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 |
---|---|---|---|---|---|---|
Returns the text field. | public Component getEditorComponent ()
{
return editor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTextFromTextField() {\r\n\t\treturn textField.getText();\r\n\t}",
"public String getText() {\n return textField.getText();\n }",
"public String getText()\n {\n return field.getText();\n }",
"public String getText() {\r\n\r\n return field.getText();\r\n\r\n }",
"public String getText() {\r\n\t\treturn this.textfield.getText();\r\n\r\n\t}",
"private String getText() {\r\n\t\treturn getJTextField().getText();\r\n\t}",
"public JTextField getTextField()\n {\n return field;\n }",
"protected Text getText() {\n \t\treturn text;\n \t}",
"protected Text getText()\r\n\t{\r\n\t\treturn text;\r\n\t}",
"public java.lang.String getText() {\n return instance.getText();\n }",
"public String getTextInput(){\r\n\t\treturn textInput.getText();\r\n\t}",
"public String getText() {\n return text.getText();\n }",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"public String getText();",
"public String getText();",
"public String getText();",
"public String getText();",
"TextField getTf();",
"String getTextValue();",
"public TextField getTextField() {\n if (textField == null) {//GEN-END:|27-getter|0|27-preInit\n // write pre-init user code here\n textField = new TextField(\"Num\\u00E9ro de carte\", null, 32, TextField.ANY);//GEN-LINE:|27-getter|1|27-postInit\n // write post-init user code here\n }//GEN-BEGIN:|27-getter|2|\n return textField;\n }",
"public String getText() {\r\n return text;\r\n }",
"public String getText(){\r\n\t\treturn text;\r\n\t}",
"@NotNull\r\n public String getText() {\r\n return text;\r\n }",
"public String getText(){\r\n return text;\r\n }",
"@Override\r\n\t\t\tpublic String getText() {\n\t\t\t\treturn text;\r\n\t\t\t}",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public static String getInputText(){\n\t\treturn textArea.getText();\n\t}",
"public java.lang.String getText() {\n \t\treturn text;\n \t}",
"public String getText() {\n return myText;\n }",
"public String getText() {\n if (!this.a_text.isEnabled())\n return null;\n\n return this.a_text.getText();\n }",
"public String getText() {\r\n return text;\r\n }",
"public String getText() {\r\n return text;\r\n }",
"public String getText() {\n return (getFieldValue(fields[0]) + \".\" + getFieldValue(fields[1]) + \".\" + getFieldValue(fields[2]) + \".\" + getFieldValue(fields[3]));\n }",
"public String getText()\n {\n String txt = super.getText();\n if(txt != null)\n return txt.trim();\n else\n return null;\n }",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"public String getText() {\r\n return this.text;\r\n }",
"public String getText() {\r\n\t\treturn text;\r\n\t}",
"public String getText() {\r\n\t\treturn text;\r\n\t}",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText()\n {\n return getComponent().getText();\n }",
"public String getValue()\r\n\t{\r\n\t\tString value = textField.getText();\r\n\t\treturn value==null || value.length()==0 ? null : value;\r\n\t}",
"public String getFieldValue() {\r\n\t\tString value = textBox.getValue();\r\n\t\t\t\r\n\t\treturn value;\r\n\t}",
"public String getText()\n {\n return (this.text);\n }",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText(){\n return input.getText().toString();\n }",
"public final String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\t\treturn text.get();\n\t\t}",
"@Override\n public String getValue() {\n if (textField != null) {\n return textField.getValue();\n } else {\n return null;\n }// end of if/else cycle\n }",
"private JTextField getVstupText() {\n\t\tif (vstupText == null) {\n\t\t\tvstupText = new JTextField();\n\t\t\tvstupText.setBounds(new Rectangle(124, 278, 300, 30));\n\t\t}\n\t\treturn vstupText;\n\t}",
"public java.lang.String getText() {\n return text_;\n }",
"public String getText_txt_Pick_Up_Text(){\r\n\t\treturn txt_Pick_Up_Text.getText();\r\n\t}",
"public final String getText() {\n return text;\n }",
"public String getValueFieldText() {\n return valueField.getText();\n }",
"private RTextField getBuildTextField() {\n if (buildTextField == null) {\n buildTextField = new RTextField();\n buildTextField.setValueAsString(\"\");\n buildTextField.setText(R_TEXT_FIELD);\n buildTextField.setEditable(false);\n buildTextField.setDisabledTextColor(Color.lightGray);\n buildTextField.setName(\"buildTextField\");\n }\n return buildTextField;\n }",
"public String getText()\r\n {\r\n return this.text;\r\n }",
"public java.lang.String getText() {\n return this.text;\n }",
"public String getText() {\n return this.text;\n }",
"public String getText() {\n return this.text;\n }",
"public String getText() {\n return this.text;\n }",
"public String getText() {\n return this.text;\n }",
"public String getText() {\n return this.text;\n }",
"public String getText() {\n return this.text;\n }",
"public String getTextValue() {\r\n return _textValue;\r\n }",
"public String text() { return text; }"
] | [
"0.84823304",
"0.83477205",
"0.82761294",
"0.8179557",
"0.8140359",
"0.7995726",
"0.7776419",
"0.76840794",
"0.7662684",
"0.76235265",
"0.75790715",
"0.7512975",
"0.7508472",
"0.7508472",
"0.7508472",
"0.7508472",
"0.7508472",
"0.7508472",
"0.7508472",
"0.7508472",
"0.75083196",
"0.75083196",
"0.75083196",
"0.75083196",
"0.7481756",
"0.74244565",
"0.7398203",
"0.73832685",
"0.7372388",
"0.7366278",
"0.7361336",
"0.73471916",
"0.73416954",
"0.73416954",
"0.73416954",
"0.73416954",
"0.73416954",
"0.73388505",
"0.73388505",
"0.73388505",
"0.7337556",
"0.7325023",
"0.7321134",
"0.73127544",
"0.7303582",
"0.7303582",
"0.7281854",
"0.7280762",
"0.72661567",
"0.72661567",
"0.72661567",
"0.72661567",
"0.72661567",
"0.72661567",
"0.72661567",
"0.7260539",
"0.7239191",
"0.7239191",
"0.7237937",
"0.7237937",
"0.7237937",
"0.7237937",
"0.7237937",
"0.7237937",
"0.7237937",
"0.7237937",
"0.7237937",
"0.7237937",
"0.7237937",
"0.7237937",
"0.7237937",
"0.7229625",
"0.7229356",
"0.7229236",
"0.72290313",
"0.72086084",
"0.72086084",
"0.72086084",
"0.72086084",
"0.72086084",
"0.72086084",
"0.72085637",
"0.7198296",
"0.7191919",
"0.7190885",
"0.71888655",
"0.717326",
"0.7163492",
"0.7163342",
"0.7148196",
"0.71368825",
"0.7128173",
"0.71256024",
"0.71133333",
"0.71133333",
"0.71133333",
"0.71133333",
"0.71133333",
"0.71133333",
"0.71087563",
"0.71048856"
] | 0.0 | -1 |
Delegates the passed ActionListener to the editor component. | public void addActionListener (ActionListener l)
{
editor.addActionListener (l);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void actionPerformed(ActionEvent e) {\n\t\tadaptee.botonEditar_actionPerformed(e);\n\t}",
"@Override\n\t public void actionPerformed(ActionEvent e){\n\t }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\tadaptee.boton1Jugador_actionPerformed(e);\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}",
"@Override\n\tpublic void actionPerformed(\n\t\t\tActionEvent e)\n\t\t{\n\t\t\t\n\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e){\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t}",
"@Override\r\n \t\tpublic void actionPerformed(ActionEvent e) {\n \t\t}",
"public void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t\t\n\t}",
"public void actionPerformed(ActionEvent e) {\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) \n\t\t{\n\t\t\t\n\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"public @Override void actionPerformed(ActionEvent ev) {\n }",
"public void actionPerformed(ActionEvent e)\n {\n }",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n\n //Simply opens a new Editor Window\n new EditorWindow().setVisible(true);\n\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) \n\t\t{\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"public void actionPerformed(ActionEvent e)\r\n\t\t{\n\t\t}",
"public void actionPerformed(ActionEvent e)\r\n\t\t{\n\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}"
] | [
"0.69861174",
"0.69370353",
"0.692837",
"0.692837",
"0.69230306",
"0.6909571",
"0.6909571",
"0.68996125",
"0.6889497",
"0.6856667",
"0.685072",
"0.685072",
"0.6847946",
"0.68425643",
"0.68425643",
"0.68425643",
"0.6833663",
"0.6825712",
"0.68246216",
"0.68235296",
"0.68235296",
"0.68235296",
"0.68235296",
"0.681899",
"0.68163437",
"0.68140143",
"0.6813552",
"0.6811651",
"0.68099463",
"0.68099463",
"0.68099463",
"0.68099463",
"0.68099463",
"0.68099463",
"0.68093216",
"0.68090373",
"0.6802031",
"0.6802031",
"0.6802031",
"0.6802031",
"0.6802031",
"0.6802031",
"0.6802031",
"0.6802031",
"0.6802031",
"0.6797984",
"0.6797984",
"0.6797984",
"0.67962",
"0.6792205",
"0.67884374",
"0.67884374",
"0.67884374",
"0.67884374",
"0.67884374",
"0.67884374",
"0.67884374",
"0.67884374",
"0.67884374",
"0.67884374",
"0.67884374",
"0.67857087",
"0.67851955",
"0.67776304",
"0.67737806",
"0.6773729",
"0.6773729",
"0.6773729",
"0.6773729",
"0.6773729",
"0.6773729",
"0.6773729",
"0.6773729",
"0.6773729",
"0.6773729",
"0.67727643",
"0.67727643",
"0.6768886",
"0.67676985",
"0.6767132",
"0.6767132",
"0.67666364",
"0.67666364",
"0.67666364",
"0.67666364",
"0.67666364",
"0.67666364",
"0.67666364",
"0.67666364",
"0.6761971",
"0.6761971",
"0.6761971",
"0.6761971",
"0.6761971",
"0.6761971",
"0.6761971",
"0.6761971",
"0.6761971",
"0.6761971",
"0.6761971"
] | 0.7547481 | 0 |
Removes the passed ActionListener from the editor component. | public void removeActionListener (ActionListener l)
{
editor.removeActionListener (l);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeActionListener(ActionListener listener) {\n\t\tactionListener = AWTEventMulticaster.remove(actionListener, listener);\n\t}",
"@Override\n\tpublic void removeActionListener(ActionListener listener) {\n\t\tlisteners.add(listener);\n\t}",
"public void removeActionListener(ActionListener listener) {\n\t\tlisteners.remove(listener);\n\t}",
"public synchronized void removeActionListener(ActionListener al) {\n actionListener = AWTEventMulticaster.remove(actionListener, al);\n }",
"public void removeListener(ActionListener listener){\n\t\tbtn.removeActionListener(listener);\n\t}",
"public synchronized void removeActionListener(java.awt.event.ActionListener listener) {\n \n myListenerList.remove(java.awt.event.ActionListener.class, listener);\n }",
"public synchronized void removeActionListener(ActionListener l) {\n\tif ((l != null) && (getAction() == l)) {\n\t setAction(null);\n\t} else {\n\t listenerList.remove(ActionListener.class, l);\n\t}\n }",
"public void removeOpenListener(ActionListener actionListener) {\r\n jOpen.removeActionListener(actionListener);\r\n }",
"public synchronized void removeActionListener(ActionListener l) {\n if (l == null) {\n return;\n }\n actionListener = AWTEventMulticaster.remove(actionListener, l);\n }",
"public void actionPerformed(ActionEvent e)\n\t{\n\t\tview.removeButton();\n\t}",
"public void removeIdentifyMatchListener(ActionListener actionListener) {\r\n jIdentifyMatch.removeActionListener(actionListener);\r\n }",
"public void removeClearDataListener(ActionListener actionListener) {\r\n jClearData.removeActionListener(actionListener);\r\n }",
"public void removeIdentifyListener(ActionListener actionListener) {\r\n jIdentify.removeActionListener(actionListener);\r\n }",
"public void removeVerifyListener(ActionListener actionListener) {\r\n jVerify.removeActionListener(actionListener);\r\n }",
"public void removeVerifyMatchListener(ActionListener actionListener) {\r\n jVerifyMatch.removeActionListener(actionListener);\r\n }",
"public synchronized void removeActionListener(ActionListener l) {\n\t\tif (actionListenerList != null && actionListenerList.contains(l))\n\t\t\tactionListenerList.remove(l);\n\t}",
"public synchronized void removeActionListener(ActionListener l) {\n\t\tif (actionListenerList != null && actionListenerList.contains(l))\n\t\t\tactionListenerList.remove(l);\n\t}",
"public void removeReleaseListener(ActionListener actionListener) {\r\n jRelease.removeActionListener(actionListener);\r\n }",
"public void removeCloseListener(ActionListener actionListener) {\r\n jClose.removeActionListener(actionListener);\r\n }",
"@Override\n\tpublic ActionListener applyListener() {\n\t\treturn null;\n\t}",
"public void removeBeginEnrollCaptureListener(ActionListener actionListener) {\r\n jBeginEnrollCapture.removeActionListener(actionListener);\r\n }",
"@Override\r\n\t\t\t\t\tpublic void removeCellEditorListener(CellEditorListener arg0) {\n\r\n\t\t\t\t\t}",
"public void removeEndCaptureListener(ActionListener actionListener) {\r\n jEndCapture.removeActionListener(actionListener);\r\n }",
"public void removeClaimListener(ActionListener actionListener) {\r\n jClaim.removeActionListener(actionListener);\r\n }",
"@Override\r\n\tpublic void removeCellEditorListener(CellEditorListener l) {\n\r\n\t}",
"public synchronized void removeCompletionListener(ActionListener l) {\n completionListeners.removeElement(l); //remove listeners\n }",
"public ActionChanger<?> removeAction(final int index) {\n final ActionChanger<?> action = actions.remove(index);\n action.setButton(null);\n return action;\n }",
"public void removeMySelectionListener(EventListener l);",
"public void removeBeginVerifyCaptureListener(ActionListener actionListener) {\r\n jBeginVerifyCapture.removeActionListener(actionListener);\r\n }",
"public void removeCheckHealthListener(ActionListener actionListener) {\r\n jCheckHealth.removeActionListener(actionListener);\r\n }",
"private void removeActionListener(Button button) {\n if (button != null && !button.getListeners().isEmpty()) {\n for (int i = 0; i < button.getListeners().toArray().length; i++) {\n button.removeActionListener((ActionListener<?>) button.getListeners().toArray()[i]);\n }\n }\n }",
"public boolean removeActionListener(ActionListener listener) {\r\n return actionListeners.remove(listener);\r\n }",
"@Override\r\n\tprotected ActionListener deleteBtnAction() {\n\t\treturn null;\r\n\t}",
"public ActionListener deletePlayerSelected() {\n return new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n controll.deletePlayerWindow();\n }\n };\n }",
"public void removeBtnAddListener(ActionListener listener)\r\n\t{\r\n\t\tbtnRemove.addActionListener(listener);\r\n\t}",
"public void removeCellEditorListener(CellEditorListener l) {\n\trealEditor.removeCellEditorListener(l);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tclear();\r\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry{\n\t\t\t\t\tdodelete();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex)\n\t\t\t\t{\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"public X removeInputMethodListener(InputMethodListener listener) {\n component.removeInputMethodListener(listener);\n return (X) this;\n }",
"public void removeOnClick(Runnable action) {\n onClick.remove(action);\n }",
"public void removeColorListener(ActionListener listener) {\r\n colorListeners = AWTEventMulticaster.remove(colorListeners, listener);\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\ttry {\n\t\t\t\t\ttextArea.getDocument().remove(0,\n\t\t\t\t\t\t\ttextArea.getDocument().getLength());\n\t\t\t\t\tstandardOut.println(\"Text area cleared\");\n\t\t\t\t} catch (BadLocationException ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"public void removeAction(Action action) {\n menuDirty = true;\n actions.remove(action);\n if (action == selectedAction) {\n if (actions.isEmpty()) {\n selectedAction = null;\n } else {\n // Selected the first element if there are any left\n selectedAction = actions.get(0);\n }\n selectedComponent = null;\n selectedLabel = null; \n }\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tthis.jmf.btnClear_actionPerformed(e);\n\t}",
"public void setCancelAction(ActionListener action) {\n\t\t\n\t}",
"public ActionChanger<?> removeAction(final ActionChanger<?> action) {\n final int index = actions.indexOf(action);\n return removeAction(index);\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tdelete();\n\t\t}",
"public synchronized void removeExceptionListener(ActionListener l) {\n exceptionListeners.removeElement(l); //remove listeners\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcancel();\n\t\t\t}",
"private void removeActionListeners() {\n for (Integer key: app.getWorkSpace().getWorkSpaceMap().keySet()) {\n removeActionListener(app.getWorkSpace().getGridCell(key));\n }\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tremoveItem(ItemPanel.this);\n\t\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n clear();\n\n }",
"@Override\n\tpublic void removeAction(int actionId) {\n\t\t\n\t}",
"public void removeDeviceDisableListener(ActionListener actionListener) {\r\n jDeviceDisable.removeActionListener(actionListener);\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdelete();\n\t\t\t}",
"public synchronized void removeEventListener(InputListener listener) {\n\t\tlisteners.remove(listener);\n\t}",
"public void removeDeviceEnableListener(ActionListener actionListener) {\r\n jDeviceEnable.removeActionListener(actionListener);\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n graph.addUndoableEdit(new DeleteUndoableEdit(graph));\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (!filmJList.isSelectionEmpty()) {\n\t\t\t\t\tOperation.removeMovie(movies, filmJList.getSelectedIndex());\n\t\t\t\t\tfilmModel.remove(filmJList.getSelectedIndex());\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\tprotected ActionListener updateBtnAction() {\n\t\treturn null;\r\n\t}",
"public void addButtonDelActionListener(ActionListener actionListener) {\n\t\tbutton_del.addActionListener(actionListener);\n\t}",
"public void removeTapListener(ActionListener e) {\n if(tapListener == null) {\n return;\n }\n tapListener.removeListener(e);\n if(!tapListener.hasListeners()) {\n tapListener = null;\n }\n }",
"public void removeActionSourceListener( ActionSourceListener l) {\n lm.removeListener(l);\n l.removeActionValueListener(this);\n }",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\tinstr.setText(\"Previous content is removed.\");\r\n\t\t\tcanvas.arr = new int[8];\r\n\t\t\tcanvas.annotations.clear();\r\n\t\t\tcanvas.repaint();\r\n\t\t}",
"default void removeListener(Runnable listener) {\n\t\tthis.getItemListeners().remove(listener);\n\t}",
"@Override\n public void removeListener() {\n this.mListener = null;\n }",
"public void buttonRemoveItem(ActionEvent actionEvent) {\n }",
"@Override\n\tpublic void removeCellEditorListener(CellEditorListener l) {\n\t\tlog.info(\"|------表格单元格编辑模型------|\\t\"+\"removeCellEditorListener\");\n\t\tSalesTicketInfoPanel.listenerList.remove(CellEditorListener.class,l);\n\t}",
"public void removeAnimatorListener(Listener aListener) { removeListener(Listener.class, aListener); }",
"public void actionPerformed(ActionEvent e) {\n\t\t\treplaceSelection(\"\");\n\t\t}",
"public void removeDocEdited(Consumer<SpanNode<T>> listener){\n docEditedListeners.remove(listener);\n }",
"public void addClearDataListener(ActionListener actionListener) {\r\n jClearData.addActionListener(actionListener);\r\n }",
"public static void removeActionEvent(long id) {\n threadActionEvents.remove(id);\n }",
"public void remove(JComponent comp) {\r\n PropertyChangeListener listener = listeners.get(comp);\r\n if (listener == null) return;\r\n \r\n comp.removePropertyChangeListener(\"enabled\", listener);\r\n listeners.remove(comp);\r\n }",
"public void buttonRemoveTab(ActionEvent actionEvent) {\n }",
"public void removeListener(T listener);",
"public synchronized void removeUndoableEditListener(UndoableEditListener l) {\n support.removeUndoableEditListener(l);\n}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tchatArea.setText(\"\");\n\t\t}",
"public void removeListSelectionListener(ListSelectionListener listener)\r\n {\r\n listSelectionListeners.remove(listener);\r\n }",
"protected abstract ActionListener getActionListener();",
"public void actionPerformed(ActionEvent e) {\n\t\t\tsetVisible(false);\n\t\t}",
"public void removeSelectionListener( final SelectionListener listener ) {\n SelectionEvent.removeListener( this, listener );\n }",
"public void actionPerformed(ActionEvent actionEvent) {\r\n canvas.setUIInteraction(false);\r\n setVisible(false);\r\n }",
"public void removeAnswerImageBtnAddListener(ActionListener listener)\r\n\t{\r\n\t\tbtnRemoveAnswerImage.addActionListener(listener);\r\n\t}",
"public void removeSpanEdited(Consumer<SpanNode<T>> listener){\n spanEditedListeners.remove(listener);\n }",
"public void removeSelectionListener(SelectionListener listener) {\n \t\tfSelectionListeners.remove(listener);\n \t}",
"public void removeSelectionTreeListener(final SelectionTreeListener listener);",
"public void removeSelectionChangedListener(\n ISelectionChangedListener listener) {\n viewer.removeSelectionChangedListener(listener);\n }",
"public void removeFormWrapListener(FormWrapListener listener);",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"void removeListener(ChangeListener<? super T> listener);",
"public Action removeAction(Object key) {\n\t\tAction action = (Action) remove(key);\n\t\tif (action != null) {\n\t\t\tactionList.remove(action);\n\t\t\tif (action instanceof ForwardingAction)\n\t\t\t\t((ForwardingAction) action)\n\t\t\t\t\t\t.removeActionListener(actionForwarder);\n\t\t}\n\t\treturn action;\n\t}",
"public void addRemoveAllItemActionListener(ActionListener actionListener) {\n\t\tbtnRemoveallitem.addActionListener(actionListener);\n\t}",
"@Override\n\tpublic void removeSelectionChangeListener(SelectionChangeListener listener) {\n\n\t}",
"public abstract void removeAction(Context context, NAAction action);",
"@Override\n\tpublic void removeSelectionListener(SelectionListener l) {\n\t\tif (listeners != null) {\n\t\t\tlisteners.remove(l);\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent ae) {\n\t setVisible(false); dispose();\n\t}",
"public void actionPerformed(ActionEvent e) {\r\n setVisible(false);\r\n dispose();\r\n }",
"@Override\n public void removeListener(InvalidationListener listener) {\n }",
"void removeHas_action(Action oldHas_action);"
] | [
"0.73096025",
"0.7288091",
"0.72166526",
"0.7215604",
"0.71901536",
"0.70568544",
"0.6997608",
"0.6965081",
"0.6840364",
"0.67820245",
"0.6755805",
"0.67318165",
"0.6727986",
"0.67175347",
"0.6702323",
"0.66944075",
"0.66944075",
"0.6692756",
"0.6614342",
"0.6597982",
"0.6590631",
"0.6560571",
"0.64698917",
"0.6428059",
"0.64202684",
"0.6350515",
"0.6344645",
"0.63365865",
"0.6334749",
"0.6325358",
"0.6312181",
"0.6308635",
"0.62762576",
"0.6270672",
"0.62348974",
"0.6153344",
"0.61480516",
"0.6122228",
"0.6115567",
"0.61106944",
"0.61101556",
"0.6093691",
"0.6080626",
"0.6071092",
"0.60539716",
"0.6023222",
"0.60049",
"0.5955109",
"0.5949042",
"0.59454334",
"0.59384865",
"0.59302306",
"0.5924905",
"0.5909773",
"0.58927244",
"0.5863923",
"0.5848439",
"0.5821631",
"0.58130246",
"0.5803689",
"0.57712924",
"0.57700616",
"0.5765203",
"0.57593817",
"0.57560706",
"0.57471305",
"0.57381886",
"0.5737551",
"0.57190585",
"0.5713583",
"0.5710056",
"0.5701077",
"0.56984675",
"0.5697078",
"0.56898",
"0.5675672",
"0.5669996",
"0.5664833",
"0.56557345",
"0.56444025",
"0.5639568",
"0.5639395",
"0.5637315",
"0.5632102",
"0.56184924",
"0.56182724",
"0.5615146",
"0.56078506",
"0.5607686",
"0.5598914",
"0.5597261",
"0.55883163",
"0.5588295",
"0.55783594",
"0.5578266",
"0.5575372",
"0.55722195",
"0.55718637",
"0.55691224",
"0.55602765"
] | 0.7999039 | 0 |
Returns the editor component's text. | public Object getItem ()
{
return editor.getText ();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAsText() {\n\t\treturn mEditor.getText();\n\t}",
"public String getText()\n {\n return getComponent().getText();\n }",
"public String getText() {\n return text.getText();\n }",
"public String getText() {\n return mTextContainer.getText();\n }",
"public String getAsText() {\n return modifiedEditor.getAsText ();\n }",
"public final String getText() {\n return text;\n }",
"public String getText() {\n\t\t\treturn text.get();\n\t\t}",
"public final String getText() {\n\t\treturn text;\n\t}",
"public java.lang.String getText() {\n return instance.getText();\n }",
"public String getText() {\n return textField.getText();\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\r\n return text;\r\n }",
"public String getText() {\r\n return text;\r\n }",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText() {\r\n\t\treturn text;\r\n\t}",
"public String getText() {\r\n\t\treturn text;\r\n\t}",
"public String getText()\n {\n return (this.text);\n }",
"public synchronized String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\r\n return text;\r\n }",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText(){\r\n\t\treturn text;\r\n\t}",
"public CharSequence getText() {\r\n return text;\r\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public JTextComponent getTextComponent() {\n\t\treturn panelVirtualKeyboard.getTextComponent();\n\t}",
"public String getText() {\n return codeBuilder != null ? codeBuilder.toString() : \"\";\n }",
"public String getText()\r\n {\r\n return this.text;\r\n }",
"public String getText () {\r\n\t\treturn (String) getStateHelper().eval(PropertyKeys.text);\r\n\t}",
"public String getText() {\n\t\treturn this.text;\n\t}",
"public String getText() {\n\t\treturn this.text;\n\t}",
"public java.lang.String getText() {\n \t\treturn text;\n \t}",
"public String getText() {\n return mText;\n }",
"public String getText() {\n return this.text;\n }",
"public String getText() {\n return this.text;\n }",
"public String getText() {\n return this.text;\n }",
"public String getText() {\n return this.text;\n }",
"public String getText() {\n return this.text;\n }",
"public String getText() {\n return this.text;\n }",
"public java.lang.String getText() {\n return text_;\n }",
"public String getText() {\n return myText;\n }",
"public String getText() {\r\n return this.text;\r\n }",
"public String getText() {\r\n\t\treturn this.textfield.getText();\r\n\r\n\t}",
"public String getText() {\n if (text == null) {\n return \"NO TEXT IN MEMORY.\";\n }\n return text.getTextPart();\n }",
"@Override\r\n\t\t\tpublic String getText() {\n\t\t\t\treturn text;\r\n\t\t\t}",
"public String getText() {\n if (!this.a_text.isEnabled())\n return null;\n\n return this.a_text.getText();\n }",
"public String getText(){\r\n return text;\r\n }",
"protected Text getText() {\n \t\treturn text;\n \t}",
"@Nullable\n final public String getText() {\n return mText;\n }",
"public java.lang.String getText() {\n return this.text;\n }",
"public String getText() {\n return mBuilder.toString();\n }",
"public String getText() {\n return str;\n }",
"public String getTextContent() {\n\t\treturn ((TextTypeImpl)_text).getStringValue();\n\t}",
"public String getTextoArea() {\n\t\treturn textArea.getText();\n\t}",
"public String getContent() {\r\n \r\n return text;\r\n }",
"protected Text getText()\r\n\t{\r\n\t\treturn text;\r\n\t}",
"public String getText();",
"public String getText();",
"public String getText();",
"public String getText();",
"public String text() {\r\n return mText;\r\n }",
"public String getText() {\n checkWidget();\n int length = OS.GetWindowTextLength(handle);\n if (length == 0)\n return \"\";\n TCHAR buffer = new TCHAR(getCodePage(), length + 1);\n OS.GetWindowText(handle, buffer, length + 1);\n return buffer.toString(0, length);\n }",
"protected final JTextComponent getComponent() {\n return editor;\n }",
"@NotNull\r\n public String getText() {\r\n return text;\r\n }",
"public String text() {\n\t\treturn text;\n\t}",
"public String getText() {\n getLock().getReadLock();\n try {\n return getTextBuffer().toString();\n } finally {\n getLock().relinquishReadLock();\n }\n }",
"public String getText() {\r\n\r\n return field.getText();\r\n\r\n }",
"private String getText() {\r\n\t\treturn getJTextField().getText();\r\n\t}",
"public String getText() {\n\t\treturn new XWPFWordExtractor(document).getText();\n\t}",
"@objid (\"d03ac21a-47cb-44d2-820d-6136f84aa408\")\r\n public String getText() {\r\n return this.text.getText();\r\n }",
"public CharSequence getText();",
"public String getTextFromTextField() {\r\n\t\treturn textField.getText();\r\n\t}",
"@Nullable\n public String getText() {\n return mText;\n }",
"public String text() { return text; }",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();"
] | [
"0.8229764",
"0.81161046",
"0.7885672",
"0.77844805",
"0.7781895",
"0.77475446",
"0.7727014",
"0.77020496",
"0.76372564",
"0.7619745",
"0.7603982",
"0.7603982",
"0.7603982",
"0.7603982",
"0.7603982",
"0.7603982",
"0.7603982",
"0.7603982",
"0.7603982",
"0.7603982",
"0.7603982",
"0.7603982",
"0.7603982",
"0.7591595",
"0.7591595",
"0.7587038",
"0.7587038",
"0.7587038",
"0.7579386",
"0.7579386",
"0.7579106",
"0.75778365",
"0.7567364",
"0.756503",
"0.756503",
"0.756503",
"0.756503",
"0.756503",
"0.756503",
"0.7562008",
"0.7557646",
"0.7553045",
"0.7553045",
"0.7553045",
"0.7553045",
"0.7553045",
"0.7550178",
"0.75116795",
"0.74936306",
"0.749058",
"0.74888825",
"0.74888825",
"0.74884605",
"0.7485622",
"0.7479338",
"0.7479338",
"0.7479338",
"0.7479338",
"0.7479338",
"0.7479338",
"0.7462824",
"0.7434155",
"0.74263775",
"0.73994",
"0.73971146",
"0.739417",
"0.73941445",
"0.7393774",
"0.7381782",
"0.73244566",
"0.7315317",
"0.73116916",
"0.7291461",
"0.729098",
"0.728236",
"0.7276064",
"0.72625476",
"0.7240909",
"0.7240909",
"0.7240909",
"0.7240909",
"0.7238493",
"0.72048146",
"0.72037596",
"0.71913743",
"0.71838534",
"0.7177365",
"0.71768934",
"0.716886",
"0.7140388",
"0.7137905",
"0.7131529",
"0.7121069",
"0.7110113",
"0.7108566",
"0.7091475",
"0.7091475",
"0.7091475",
"0.7091475",
"0.7091475",
"0.7091475"
] | 0.0 | -1 |
Sets the editor component's text. | public void setItem (Object anObject)
{
// TODO: implement (?)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setText(String text) {\r\n this.text = text;\r\n }",
"public void setText(String text) {\n mText = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\r\n\t\tthis.text = text;\r\n\t}",
"public void setText(String text)\n {\n this.text = text;\n }",
"public void setText(String text) {\n\t\tthis.text = text;\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t}",
"public void setText(String text) {\r\n\t\tthis.text= text;\r\n\t}",
"public void setText ( String text ) {\r\n\t\tgetStateHelper().put(PropertyKeys.text, text);\r\n\t\thandleAttribute(\"text\", text);\r\n\t}",
"public void setText(String text)\n\t{\n\t\tthis.text = text;\n\t}",
"public void setText(String text)\n\t{\n\t\tthis.text = text;\n\t}",
"public void setAsText(String text) throws java.lang.IllegalArgumentException {\n modifiedEditor.setAsText (text);\n }",
"public void setText(String text) {\n this.text.setText(text);\n }",
"public void setText(String text) {\r\n\r\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t\thandleConfig(\"text\", text);\n\t}",
"public void setText(String s) {\n text = s;\n }",
"public void setText(String text) {\n\t\t\n\t}",
"public void setText( String text );",
"private void setText(Text text) {\n \t\tthis.text = text;\n \t}",
"@Override\n\tpublic void setComponentText(String text) {\n\t\t\n\t}",
"public void setText(String text) {\n\t\tthis.textPane.setText(text);\n\t}",
"public void setText(String text);",
"public InputBox setText(String text) {\n\t\tthis.text = text;\n\t\tfontRenderer.reallocateText(text);\n\t\t\n\t\treturn this;\n\t}",
"public void setText(String text) {\n this.text = text;\n setChanged();\n notifyObservers();\n }",
"public void setText(String text) {\n\t\tthis.smartField.setContents(text);\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t\tupdateView();\n\t}",
"public void setText(String t) {\n\t\t\ttext.set(t);\n\t\t}",
"public void setText(String text)\n {\n getComponent().setText(text);\n invalidateSize();\n }",
"public void setText(String text) {\n mTextContainer.setText(text);\n }",
"public void setText(String text) {\n\t\ttry {\n\t\t\tdoc.remove(0, doc.getLength());\n\t\t\tdoc.insertString(0, text, PLAIN);\n\t\t} catch (BadLocationException ignore) {\n\t\t\tignore.printStackTrace();\n\t\t\teditor.setCaretPosition(0);\n\t\t}\n\t}",
"public void setText(String s) {\n this.getDocument().removeUndoableEditListener(undoableEditListener);\n super.setText(s);\n this.getDocument().addUndoableEditListener(undoableEditListener);\n }",
"public void setText(String str) { this.editText.setText(str); }",
"public void setText(String text) {\n this.textData = text;\n }",
"public void setText(String text){\n this.roomText = text;\n this.hasText = true;\n }",
"public void setInputText(String text) {\n if (mTxtContent != null) {\n mTxtContent.setText(text);\n }\n }",
"public void setText(final String text) {\n\t\tclear();\n\t\tsummaryEditorPane.setText(text);\n\t\tsummaryEditorPane.setCaretPosition(0);\n\t}",
"private void editTextEditorButton(){\n TextEditorTextfield.setText(textEditorPref);\n TextEditorDialog.setVisible(true);\n }",
"public void setText(String text) {\n\t\ttextField.setText(text);\n\t}",
"public void setText(String text) {\n this.originalText = text;\n this.a_text.setText(text);\n this.a_text.setEnabled(true);\n }",
"void setText(String text);",
"void onNewTextSet(CodeEditor editor);",
"public void setText(String text)\n\t{\n\t Change.push(new BufferNote(this));\n\t\tthis.text = text;\n\t\tChange.push(new BufferNote(this));\n\n\t\trepaint();\n\t}",
"public void setText(String text) {\n GtkEntry.setText(this, text);\n }",
"public void setText(String text)\n {\n field.setText(text);\n }",
"public void setTextComponent(JTextComponent textComponent) {\n\t\tpanelVirtualKeyboard.setTextComponent(textComponent);\n\t}",
"private void setText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n text_ = value;\n }",
"public void setText(java.lang.String newText) {\n \t\ttext = newText;\n \t}",
"public TextControl setText(String text) {\n this.text = text;\n EventBus.getSystem().publish(new ChangedEvent(ChangedEvent.StringChanged,text,TextControl.this));\n selection.clear();\n if(cursor.getIndex()-1 > getText().length()) {\n cursor.reset();\n }\n setLayoutDirty();\n setDrawingDirty();\n return this;\n }",
"public void setContent(String msg) {\n\t\tthis.textArea.setText(msg);\r\n\t}",
"public void setText(String newText) {\n\t\t_pcs.firePropertyChange(\"text\", this.text, newText); //$NON-NLS-1$\n\t\tthis.text = newText;\n\t}",
"void setText (String text);",
"@Override\n public void setText(String englishText) {\n\n }",
"public void setText(CharSequence text){\n if(text == null){\n text = \"\";\n }\n\n if(mText != null){\n mText.removeContentListener(this);\n }\n mText = new Content(text);\n mCursor = mText.getCursor();\n mCursor.setAutoIndent(mAutoIndent);\n mCursor.setLanguage(mLanguage);\n mEventHandler.reset();\n mText.addContentListener(this);\n mText.setUndoEnabled(mUndoEnabled);\n\n if(mSpanner != null){\n mSpanner.setCallback(null);\n }\n mSpanner = new TextColorProvider(mLanguage.createAnalyzer());\n mSpanner.setCallback(this);\n\n TextColorProvider.TextColors colors = mSpanner.getColors();\n colors.getSpans().clear();\n mSpanner.analyze(getText());\n\n mMaxPaintX = 0;\n mMinModifiedLine = -1;\n //requestLayout();\n\n if(mInputMethodManager != null) {\n mInputMethodManager.restartInput(this);\n }\n invalidate();\n }",
"public void setCustomText(String text) {\n\t\tthis.text = text;\n\t\tcustomUpdateView();\n\t}",
"public void updateText( String text ) {\n\t\tthis.text = text;\n\t}",
"public void setValue(String value) {\n\t\tthis.text = value;\n\t}",
"@Override\n public void setText(String text) {\n label.setText(text);\n textArea.setText(text);\n }",
"public void setText(java.lang.String text)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEXT$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEXT$0);\n }\n target.setStringValue(text);\n }\n }",
"public void setText(java.lang.String text)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEXT$18, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEXT$18);\n }\n target.setStringValue(text);\n }\n }",
"public void setText(String text) {\n if (text.equals(_text))\n return;\n\n _text = text;\n resetLayout();\n //enableCache(text != null && text.length() != 0);\n update();\n }",
"public void setText(String t) {\n\t\ttext = t;\n\t\tb.setText(t);\n\t}",
"public void setAreaText(String text) {\n description.setText(text);\n }",
"public void setWholeText(String content) {\n\t\ttextInterface().setString(content);\n\t}",
"public void setText(String aText) {\n\t\tif (aText != null) {\n\t\t\tif (aText.length() == 0) {\n\t\t\t\taText = \"Sorry, no valid SQL.\";\n\t\t\t}\n\t\t\tmEditor.setEditable(true);\n\t\t\tmEditor.setText(aText);\n\t\t\tmEditor.setEditable(false);\n\t\t}\n\t}",
"public void setText(String text) {\n this.text = text == null ? null : text.trim();\n }",
"public void setText(String text) {\n this.text = text == null ? null : text.trim();\n }",
"public void setText(String text) {\r\n this.text = text == null ? null : text.trim();\r\n }",
"public void setValue(String text) {\n\t\tthis.value = text;\n\t}",
"public void setTextEl ( Object textEl ) {\r\n\t\tgetStateHelper().put(PropertyKeys.textEl, textEl);\r\n\t\thandleAttribute(\"textEl\", textEl);\r\n\t}",
"private void setTextEditor() throws FileNotFoundException, IOException{\n String newTextEditor = TextEditorTextfield.getText(); \n \n //TODO: Include validation check to see it the file editor is proper program \n FileOutputStream out = new FileOutputStream(iniFile);\n writeValueToINI(out, \"textEditor\", newTextEditor);\n\n textEditorPref = newTextEditor;\n \n TextEditorDialog.setVisible(false);\n }",
"@Override\r\n\tpublic void setText() {\n\t\t\r\n\t}",
"public void setText(String txt)\n {\n fileName.setText(txt);\n }",
"@Override\n\tpublic void setText(String arg0) {\n\t\t\n\t}",
"public void setValue(String value)\r\n\t\t{ textField.setText(value); }",
"public void setText(final String value) {\r\n\r\n this.field.setText(value);\r\n\r\n }",
"public HBuilder setText(String text)\r\n\t\t{\r\n\t\t\th.innerText = text;\r\n\t\t\treturn this;\r\n\t\t}",
"public void setTextCodigoPoaEd(String text) { doSetText(this.$element_CodigoPoaEd, text); }",
"public void setText(String string) {\n checkWidget();\n if (string == null)\n error(SWT.ERROR_NULL_ARGUMENT);\n TCHAR buffer = new TCHAR(getCodePage(), string, true);\n OS.SetWindowText(handle, buffer);\n }",
"public Builder setText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n text_ = value;\n onChanged();\n return this;\n }",
"public Builder setText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n text_ = value;\n onChanged();\n return this;\n }",
"public Builder setText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n text_ = value;\n onChanged();\n return this;\n }",
"public void changeText(String s) {\n textArea1.setText(s);\n\n }",
"public void setText(String text) {\n\t\tcurrentTrack.setText(text);\n\t}",
"public abstract void setText(String txt);",
"@JsonSetter(\"text\")\r\n public void setText(String text) {\r\n this.text = text;\r\n }",
"public void setText(String text) {\n\t\ttextLabel.setText(text);\n\t}",
"public void setText(String text) {\n this.text = (text == null)? null: text.trim();\n }",
"public void setText(String value) {\r\n\t\tPlatform.runLater(() -> this.textfield.setText(value));\r\n\r\n\t}",
"public void setTextEn(String textEn) {\n this.textEn = textEn;\n }",
"public void setText(String text, String mediaType) {\n\t\tgetRoot().setText(text.getBytes(), mediaType);\n\t}",
"@Override\r\n\t\tpublic void setTextContent(String textContent) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public void setAsText( String pText) {\n\t\tsetValue( pText);\n\t}",
"void set(String text);",
"public void setText (String text) {\r\n\r\n\t\tif (getLength() > 0) {\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsuper.remove(0, getLength());\r\n\t\t\t} catch (BadLocationException ble) {\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (text != null) {\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsuper.insertString(0, text, null);\r\n\t\t\t} catch (BadLocationException ble) {\r\n\t\t\t}\r\n\t\t}\r\n\t}"
] | [
"0.7456827",
"0.74183446",
"0.7410928",
"0.7410928",
"0.7410928",
"0.7410928",
"0.7410928",
"0.7410928",
"0.7410928",
"0.74011415",
"0.7377033",
"0.73481315",
"0.73481315",
"0.73481315",
"0.7337715",
"0.7333951",
"0.7303068",
"0.7303068",
"0.72768176",
"0.72715664",
"0.7255467",
"0.72342306",
"0.7206701",
"0.7194231",
"0.71793175",
"0.7175673",
"0.7173365",
"0.71602005",
"0.71504915",
"0.71126413",
"0.71024495",
"0.7096311",
"0.7070913",
"0.7066986",
"0.7050817",
"0.7043972",
"0.70338815",
"0.7021559",
"0.70202565",
"0.70033216",
"0.69748336",
"0.6943726",
"0.6927901",
"0.690044",
"0.6881414",
"0.6877551",
"0.6869709",
"0.68644977",
"0.68595564",
"0.6843746",
"0.6824609",
"0.6813712",
"0.6805054",
"0.6802292",
"0.67845356",
"0.6775506",
"0.6752334",
"0.6745957",
"0.6740828",
"0.6725775",
"0.67221457",
"0.6716946",
"0.6714883",
"0.67120206",
"0.66742146",
"0.66681856",
"0.6641308",
"0.6629247",
"0.66199183",
"0.66050225",
"0.65910053",
"0.6565124",
"0.6565124",
"0.6555401",
"0.65515006",
"0.6546804",
"0.654211",
"0.6516789",
"0.65111256",
"0.6487692",
"0.6476272",
"0.6470688",
"0.646681",
"0.646586",
"0.64479625",
"0.6447817",
"0.6447817",
"0.6447817",
"0.64446986",
"0.6432605",
"0.6430046",
"0.64172804",
"0.64170134",
"0.640856",
"0.6406725",
"0.6382316",
"0.63796467",
"0.63734555",
"0.6370481",
"0.6364103",
"0.63446844"
] | 0.0 | -1 |
System.out.println("remove! offs: "+offs+" len: "+len+" index: "+selectionStartIndex); | public void remove (int offs, int len) throws BadLocationException
{
super.remove (offs, len);
if (offs < selectionStartIndex)
{
selectionStartIndex -= len;
fetchSuggestion (getContent ().getString (0, selectionStartIndex), new SimpleAttributeSet (),
getCaretPosition ());
} else
{
component.getHighlighter ().removeAllHighlights ();
super.remove (offs, getLength () - offs);
}
if (offs > selectionStartIndex)
selectionStartIndex = getLength ();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeAccessibleSelection(int i) {\n // To be fully implemented in a future release\n }",
"private void cmd_deleteSelection(){\n\t\tm_frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\t\tif (ADialog.ask(getWindowNo(), m_frame.getContainer(), \"DeleteSelection\"))\n\t\t{\t\n\t\t\tint records = deleteSelection(detail);\n\t\t\tsetStatusLine(Msg.getMsg(Env.getCtx(), \"Deleted\") + records, false);\n\t\t}\t\n\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\tbDelete.setSelected(false);\n\t\texecuteQuery();\n\t\t\n\t}",
"public void remove(int offs,int len) throws BadLocationException {\n super.remove(offs, len);\r\r\r\r\r\r\n System.out.println(\"[*********]REMOVE\");\r\r\r\r\r\r\n if(validate==false){ \r\r\r\r\r\r\n String result = m_parent.getGrp_TField_encode().getText(0,getLength()); \r\r\r\r\r\r\n System.out.println(\"je remove \"+result.length());\r\r\r\r\r\r\n if (result.length() >= m_longeur_saisie && m_longeur_saisie!=0 ) {\r\r\r\r\r\r\n System.out.println(\"+grand \"+result);\r\r\r\r\r\r\n if(m_parent.getGrp_PopMenu_popup().isVisible())\r\r\r\r\r\r\n search(result);\r\r\r\r\r\r\n }\r\r\r\r\r\r\n else\r\r\r\r\r\r\n {\r\r\r\r\r\r\n System.out.println(\"+petit \"+result); \r\r\r\r\r\r\n affichePopup(false);\r\r\r\r\r\r\n charger=false; \r\r\r\r\r\r\n m_model.setM_vector(null);\r\r\r\r\r\r\n } \r\r\r\r\r\r\n }\r\r\r\r\r\r\n else{\r\r\r\r\r\r\n affichePopup(false);\r\r\r\r\r\r\n }\r\r\r\r\r\r\n }",
"int remove(int idx);",
"void remove(int idx);",
"void clearSelection();",
"public void removeAtCursor() {\n lines.remove(cursor);\n if(cursor !=0 && cursor==lines.size())\n cursor--;\n }",
"@Override\n\tpublic void removeFromBeginning() {\n\t}",
"@Override\n\tpublic void posDelete() {\n\t\t\n\t}",
"@Override\n\tpublic void posDelete() {\n\t\t\n\t}",
"@Override\n\tpublic void posDelete() {\n\t\t\n\t}",
"public void deleteSelectedPosition() {\n if (selectedPosition != -1) {\n list.remove(selectedPosition);\n selectedPosition = -1;//after removing selectedPosition set it back to -1\n notifyDataSetChanged();\n }\n }",
"boolean remove(int pos);",
"public void removeSelection() {\n this.selection = null;\n }",
"public void removeIndex(int i) {\n // YOUR CODE HERE\n }",
"public void testLeadAnchorAfterRemove() {\n ListSelectionModel viewSelectionModel = new DefaultListSelectionModel();\n int selected = 5;\n viewSelectionModel.setSelectionInterval(selected, selected);\n assertEquals(selected, viewSelectionModel.getAnchorSelectionIndex());\n assertEquals(selected, viewSelectionModel.getLeadSelectionIndex());\n viewSelectionModel.removeIndexInterval(5, 5);\n int anchor = selected -1;\n assertTrue(viewSelectionModel.isSelectionEmpty());\n assertEquals(anchor, viewSelectionModel.getAnchorSelectionIndex());\n assertEquals(anchor, viewSelectionModel.getLeadSelectionIndex());\n \n }",
"public void testRemoveAt() {\n if (disableTestsBug347491) {\n System.out.println(getName() + \" disabled due to Bug 347491\");\n return;\n }\n if (disableTestsBug493357) {\n System.out.println(getName() + \" disabled due to Bug 493357\");\n return;\n }\n assertTrue(\"SWT.SetData not received\", setDataCalled);\n TreeViewer treeViewer = (TreeViewer) fViewer;\n // correct what the content provider is answering with\n treeViewer.getTree().update();\n offset = 1;\n treeViewer.remove(treeViewer.getInput(), 3);\n assertEquals(NUM_ROOTS - 1, treeViewer.getTree().getItemCount());\n treeViewer.setSelection(new StructuredSelection(new Object[] { \"R-0\", \"R-1\" }));\n assertEquals(2, ((IStructuredSelection) treeViewer.getSelection()).size());\n processEvents();\n assertTrue(\"expected less than \" + (NUM_ROOTS / 2) + \" but got \" + updateElementCallCount, updateElementCallCount < NUM_ROOTS / 2);\n updateElementCallCount = 0;\n // printCallbacks = true;\n // correct what the content provider is answering with\n offset = 2;\n treeViewer.remove(treeViewer.getInput(), 1);\n assertEquals(NUM_ROOTS - 2, treeViewer.getTree().getItemCount());\n processEvents();\n assertEquals(1, ((IStructuredSelection) treeViewer.getSelection()).size());\n assertEquals(1, updateElementCallCount);\n // printCallbacks = false;\n }",
"public abstract void remove(int pos) throws IndexOutOfBoundsException;",
"public void dvRemoved()\r\n/* 61: */ {\r\n/* 62:132 */ this.numDVRecords -= 1;\r\n/* 63: */ }",
"public void remove( int index ) {\n\tif (index > _lastPos)\n\t System.out.println(\"No meaningful value at index\");\n\telse {for (int i= index; i < _lastPos; i++){\n\t\t_data[i]= _data[i+1];\n\t }\n\t _size--;\n\t _lastPos--;\n\t}\n }",
"public void clearAccessibleSelection() {\n // To be fully implemented in a future release\n }",
"void remove (int offset, int size);",
"void removeGuide(int i);",
"void remove( int index );",
"@Override\r\n\tpublic void removeToIndex(int index) {\n\t}",
"void remove(int index);",
"void remove(int index);",
"void remove(int index);",
"void remove(int index);",
"private void btnEliminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarActionPerformed\n e=libCancion.getSelectedIndex();\n System.out.println(e);\n lista.remove(e); \n libCancion.setModel(lista);\n \n cancion.eliminarCancion(e);// TODO add your handling code here:\n i--;\n System.out.println(cancion.getSize());\n }",
"String delete(int pos, int count);",
"public static void deselNotes() {\r\n List<MeasureLine> selection = DataClipboard.getSelection();\r\n for(int i = DataClipboard.getSelectionLineBegin(); i < DataClipboard.getSelectionLineEnd() + 1; i++){\r\n if(selection.get(i) != null) {\r\n if (selection.get(i).size() > 0) {\r\n selection.get(i).clear();\r\n }\r\n if(selection.get(i).getVolume() < 0) {\r\n selection.set(i, null);\r\n }\r\n }\r\n }\r\n \r\n //find new line begin \r\n for(int i = DataClipboard.getSelectionLineBegin(); i < DataClipboard.getSelectionLineEnd() + 1; i++){\r\n if(selection.get(i) != null) {\r\n DataClipboard.setSelectionLineBegin(i);\r\n break;\r\n }\r\n }\r\n \r\n //find new line end \r\n for(int i = DataClipboard.getSelectionLineEnd(); i > DataClipboard.getSelectionLineBegin() - 1; i--){\r\n if(selection.get(i) != null) {\r\n DataClipboard.setSelectionLineEnd(i);\r\n break;\r\n }\r\n }\r\n }",
"@Override\n\tpublic void deleteSelected() {\n\n\t}",
"public void deleteSelection() {\n deleteFurniture(Home.getFurnitureSubList(this.home.getSelectedItems())); \n }",
"public void toDeletIndex()\n {\n try\n { \n //DefaultTableModel model=(DefaultTableModel)jt.getModel(); \n //jt.getModel();\n int num=Integer.parseInt(JOptionPane.showInputDialog(rootPane,\"Enter the row number\")); \n jtModel.removeRow(num-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted selected row number \" +num);\n }\n catch(NumberFormatException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Enter integer not alphabet\");\n } \n catch(ArrayIndexOutOfBoundsException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"This row dosent exist\");\n }\n }",
"public void remove()\n {\n list.remove(cursor);\n cursor--;\n }",
"private void toDelete() {\n if(toCount()==0)\n {\n JOptionPane.showMessageDialog(rootPane,\"No paint detail has been currently added\");\n }\n else\n {\n String[] choices={\"Delete First Row\",\"Delete Last Row\",\"Delete With Index\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"How would you like to delete data?\", \"Delete Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n jtModel.removeRow(toCount()-toCount());\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted first row\");\n }\n else if(option==1)\n {\n jtModel.removeRow(toCount()-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted last row\");\n }\n else if(option==2)\n {\n toDeletIndex();\n }\n else\n {\n \n }\n }\n }",
"void unsetBeginPosition();",
"public void delete(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //If a character is being removed from a single line\n if (characterIndex < currentText.getCharacterEdges().length - 1) {\n currentText = codeWindow.getTextLineController().backspace(currentText, characterIndex, false);\n }\n //If a newline character is being removed two lines need to be merged\n else if (lineIndex < texts.size() - 1) {\n currentText = codeWindow.getTextLineController().merge(currentText, codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex + 1), codeWindow);\n }\n //The cursors position is unchanged\n }\n }",
"public String deleteFrom(CharSequence sequence, UnicodeSet.SpanCondition spanCondition) {\n/* 137 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"protected void remove(int start, int stop) throws ArrayIndexOutOfBoundsException {\n\n if(start < 0 || stop < 0 || \n start >= message.size() || stop >= message.size()) {\n throw new ArrayIndexOutOfBoundsException();\n }\n\n String removed = \"\";\n\n for(int i=stop; i >= start; --i) {\n char temp = message.deleteAt(i);\n removed = temp + removed;\n }\n\n this.undoCommands += \"b \" + removed + \" \" + start + \"\\n\";\n }",
"public void removeNuclei() {\n int size = nucleiSelected.size();\n if (size > 0) {\n nucleiSelected.remove(size - 1);\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n decrementUpdateCount();\n }\n }",
"@Override\n\tpublic void undoCommand() {\n\t\tselectionModel.removeAllFromSelectionList();\n\t\tmodel.removeElement(device);\n\t}",
"@Override\n\tpublic void unselect() {\n\t}",
"public void remove(int index);",
"public void deleteSelected() {\r\n \t\tObject cells[] = graph.getSelectionCells();\r\n \t\tGraphModel graphmodel = graph.getModel();\r\n \r\n \t\t// If a cell is a blocking region avoid removing its edges and\r\n \t\t// select its element at the end of the removal process\r\n \t\tSet edges = new HashSet();\r\n \t\tSet<Object> select = new HashSet<Object>();\r\n \r\n \t\t// Set with all regions that can be deleted as its child were removed\r\n \t\tSet<Object> regions = new HashSet<Object>();\r\n \t\t// Set with all JmtCells that we are removing\r\n \t\tSet<Object> jmtCells = new HashSet<Object>();\r\n \r\n \t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t// for(int k=0; k<cells.length; k++){\r\n \t\t// if(cells[k] instanceof JmtEdge){\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)cells[k])))).SubOut();\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)cells[k])))).SubIn();\r\n \t\t// }\r\n \t\t//\r\n \t\t// }\r\n \t\tfor (int i = 0; i < cells.length; i++) {\r\n \t\t\tif (!(cells[i] instanceof BlockingRegion)) {\r\n \t\t\t\t// Adds edge for removal\r\n \t\t\t\tedges.addAll(DefaultGraphModel.getEdges(graphmodel, new Object[] { cells[i] }));\r\n \t\t\t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t\t\t// quando vado a eliminare un nodo, a cui collegato un arco,\r\n \t\t\t\t// vado ad incrementare o diminuire il contatore per il\r\n \t\t\t\t// pulsanteAGGIUSTATUTTO\r\n \t\t\t\t// Iterator iter = edges.iterator();\r\n \t\t\t\t// while (iter.hasNext()) {\r\n \t\t\t\t// Object next = iter.next();\r\n \t\t\t\t// if (next instanceof JmtEdge){\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)next)))).SubOut();\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)next)))).SubIn();\r\n \t\t\t\t// }\r\n \t\t\t\t//\r\n \t\t\t\t// }\r\n \t\t\t\t// Stores parents information and cell\r\n \t\t\t\tif (cells[i] instanceof JmtCell) {\r\n \t\t\t\t\tif (((JmtCell) cells[i]).getParent() instanceof BlockingRegion) {\r\n \t\t\t\t\t\tregions.add(((JmtCell) cells[i]).getParent());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tjmtCells.add(cells[i]);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\t// Adds node for selection\r\n \t\t\t\tObject[] nodes = graph.getDescendants(new Object[] { cells[i] });\r\n \t\t\t\tfor (Object node : nodes) {\r\n \t\t\t\t\tif (node instanceof JmtCell || node instanceof JmtEdge) {\r\n \t\t\t\t\t\tselect.add(node);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\t// Removes blocking region from data structure\r\n \t\t\t\tmodel.deleteBlockingRegion(((BlockingRegion) cells[i]).getKey());\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\tif (!edges.isEmpty()) {\r\n \t\t\tgraphmodel.remove(edges.toArray());\r\n \t\t}\r\n \t\t// removes cells from graph\r\n \t\tgraphmodel.remove(cells);\r\n \r\n \t\t// Checks if all children of a blocking region have been removed\r\n \t\tIterator<Object> it = regions.iterator();\r\n \t\twhile (it.hasNext()) {\r\n \t\t\tjmtCells.add(null);\r\n \t\t\tBlockingRegion region = (BlockingRegion) it.next();\r\n \t\t\tList child = region.getChildren();\r\n \t\t\tboolean empty = true;\r\n \t\t\tfor (int i = 0; i < child.size(); i++) {\r\n \t\t\t\tif (child.get(i) instanceof JmtCell && !jmtCells.contains(child.get(i))) {\r\n \t\t\t\t\tempty = false;\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tif (empty) {\r\n \t\t\t\tmodel.deleteBlockingRegion(region.getKey());\r\n \t\t\t\tgraphmodel.remove(new Object[] { region });\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// Removes cells from data structure\r\n \t\tfor (Object cell : cells) {\r\n \t\t\tif (cell instanceof JmtCell) {\r\n \t\t\t\tmodel.deleteStation(((CellComponent) ((JmtCell) cell).getUserObject()).getKey());\r\n \t\t\t} else if (cell instanceof JmtEdge) {\r\n \t\t\t\tJmtEdge link = (JmtEdge) cell;\r\n \t\t\t\tmodel.setConnected(link.getSourceKey(), link.getTargetKey(), false);\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// If no stations remains gray select and link buttons\r\n \t\tif (graph.getModel().getRootCount() == 0) {\r\n \t\t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\t\tsetConnect.setEnabled(false);\r\n \t\t\tsetSelect.setEnabled(false);\r\n \t\t}\r\n \r\n \t\t// Selects components from removed blocking regions\r\n \t\tif (select.size() > 0) {\r\n \t\t\tgraph.setSelectionCells(select.toArray());\r\n \t\t\t// Resets parent information of cells that changed parent\r\n \t\t\tit = select.iterator();\r\n \t\t\twhile (it.hasNext()) {\r\n \t\t\t\tObject next = it.next();\r\n \t\t\t\tif (next instanceof JmtCell) {\r\n \t\t\t\t\t((JmtCell) next).resetParent();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}",
"abstract void remove(int index);",
"public void remove(int index) {\n\n\t}",
"public String deleteFrom(CharSequence sequence) {\n/* 125 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void DeleteEnd(){\n\t\tsuper.cut();\n\t}",
"void unsetEndPosition();",
"public void evt_DeleteCurrent()\r\n {\r\n rh4PickFlags[0] = -1;\r\n rh4PickFlags[1] = -1;\r\n rh4PickFlags[2] = -1;\r\n rh4PickFlags[3] = -1;\r\n\r\n int oil;\r\n CObjInfo oilPtr;\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n oilPtr = rhPtr.rhOiList[oil];\r\n oilPtr.oilEventCount = rh2EventCount;\r\n oilPtr.oilListSelected = -1;\r\n oilPtr.oilNumOfSelected = 0;\r\n }\r\n }",
"private static void OnDelete(Object sender, ExecutedRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(sender); \r\n\r\n if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source)) \r\n {\r\n return;\r\n }\r\n\r\n TextEditorTyping._FlushPendingInputItems(This);\r\n\r\n // Note, that Delete and Backspace keys behave differently. \r\n ((TextSelection)This.Selection).ClearSpringloadFormatting();\r\n\r\n // Forget previously suggested horizontal position\r\n TextEditorSelection._ClearSuggestedX(This);\r\n\r\n using (This.Selection.DeclareChangeBlock()) \r\n {\r\n ITextPointer position = This.Selection.End; \r\n if (This.Selection.IsEmpty) \r\n {\r\n ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Forward); \r\n\r\n if (deletePosition == null)\r\n {\r\n // Nothing to delete. \r\n return;\r\n } \r\n\r\n if (TextPointerBase.IsAtRowEnd(deletePosition))\r\n { \r\n // Backspace and delete are a no-op at row end positions.\r\n return;\r\n }\r\n\r\n if (position is TextPointer && !IsAtListItemStart(deletePosition) &&\r\n HandleDeleteWhenStructuralBoundaryIsCrossed(This, (TextPointer)position, (TextPointer)deletePosition)) \r\n { \r\n // We are crossing structural boundary and\r\n // selection was updated in HandleDeleteWhenStructuralBoundaryIsCrossed. \r\n return;\r\n }\r\n\r\n // Selection is empty, extend selection forward to delete the following char. \r\n This.Selection.ExtendToNextInsertionPosition(LogicalDirection.Forward);\r\n } \r\n\r\n // Delete selected text.\r\n This.Selection.Text = String.Empty; \r\n }\r\n }",
"String delete(int index);",
"@FXML\n private void btnSlett() {\n int valgtIndex = tblData.getSelectionModel().getSelectedIndex();\n if (valgtIndex >=0) {\n System.out.println(tblData.getSelectionModel().getSelectedIndex());\n dRegister.removeInded(valgtIndex);\n } else {\n dialogs.showNoSelectDialog(\"Vennligst velg en komponent i tabellen\");\n }\n }",
"public int deletion() {\r\n\t\tif(isEmpty()) return -1;\r\n\t\treturn arr[cur_index--];\r\n\t}",
"public void removeRow(int ind) throws SQLException {\n/* 417 */ notSupported();\n/* */ }",
"public void clearListSelection() {\n/* 494 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void onItemUnsetSelection(AdapterView<?> parent, View view, int position);",
"public void deleteSelection() {\r\n /* Delete the node */\r\n try {\r\n deleteNode();\r\n } catch (NullPointerException e1) {\r\n }\r\n /* Delete the edge */\r\n try {\r\n deleteEdge();\r\n } catch (NullPointerException e2) {\r\n }\r\n /* Reload the scroll */\r\n scrollPane().doLayout();\r\n }",
"@Override\r\n public void selectionRemoved(ChangeEvent e) {\n\r\n }",
"public void delete() {\n\t if (input.getSelectedText() != null){\n\t input.setText(input.getText().replace(\n\t input.getSelectedText(), \"\"));}\n\t}",
"public void clearSelection() {\n\t\ttable.clearSelection();\n\t}",
"public void testRemoveIndex() {\r\n list.add(\"A\");\r\n list.add(\"B\");\r\n assertTrue(list.remove(0));\r\n assertEquals(1, list.size());\r\n list.add(\"B\");\r\n assertTrue(list.remove(0));\r\n assertEquals(1, list.size());\r\n }",
"public void removeRow(int pos) {\n\t\t//ANCA: rows need not be removed from the columns if they are removed from the subset\n\t\t//for (int i = 0; i < getNumColumns(); i++) {\n\t\t//\tgetColumn(i).removeRow(subset[pos]);\n\t\t//}\n\t\tint[] newsubset = new int[subset.length - 1];\n\n\n\t\tSystem.arraycopy(subset, 0, newsubset, 0, pos);\n\t\tSystem.arraycopy(\n\t\t\tsubset,\n\t\t\tpos + 1,\n\t\t\tnewsubset,\n\t\t\tpos,\n\t\t\tsubset.length - pos - 1);\n\t\tsubset = newsubset;\n\n\t}",
"public void testRemove() {\n try {\n test1.remove();\n }\n catch (Exception e) {\n assertTrue(e instanceof NoSuchElementException);\n }\n for (int i = 0; i < 10; i++) {\n test1.insert(new Buffer(i, rec));\n }\n Buffer test = test1.remove();\n assertEquals(9, test.getRecord(3).getKey());\n for (int i = 0; i < 9; i++) {\n test1.remove();\n }\n assertTrue(test1.isEmpty());\n }",
"public native String removeItem(Number index);",
"void erase();",
"public void clearSelection()\n\t{\n\t\tgetObject().clearSelection();\n\t\treturn;\n\t}",
"@Override\r\n\tpublic void erase() {\n\t\t\r\n\t}",
"public void removed() {\n }",
"protected void deleteSelection() {\n Iterator i = getCurrentSelection().iterator();\n while (i.hasNext()) {\n ZNode each = (ZNode) i.next();\n ZNode top = each.editor().getTop();\n ZGroup topParent = top.getParent();\n topParent.removeChild(top);\n\n fireEvent(ZGroupEvent.createNodeRemovedEvent(topParent, each, false));\n }\n }",
"public void setTextSelection(int start, int end) {\n/* 1735 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void evt_DeleteCurrentObject()\r\n {\r\n rh2EventPos.hoOiList.oilNumOfSelected -= 1;\t\t\t\t\t// Un de moins dans l'OiList\r\n if (rh2EventPrev != null)\r\n {\r\n rh2EventPrev.hoNextSelected = rh2EventPos.hoNextSelected;\r\n rh2EventPos = rh2EventPrev; // Car le courant est vire!\r\n }\r\n else\r\n {\r\n// rhPtr.rhOiList[rh2EventPosOiList].oilListSelected=rh2EventPos.hoNextSelected;\r\n rh2EventPrevOiList.oilListSelected = rh2EventPos.hoNextSelected;\r\n rh2EventPos = null;\r\n }\r\n }",
"private void testRemove() {\n System.out.println(\"------ TESTING: remove(int index) -----\");\n try{\n for(int i = 0; i < iSize; i++){\n if(iTestList.remove(0) != i)\n throw new RuntimeException(\"FAILED -> remove not working correctly\");\n }\n\n iTestList.remove(-9);\n iTestList.remove(iSize+10);\n }catch(RuntimeException e){\n System.out.println(e.getMessage());\n }\n }",
"public void deleteAt(int i) {\n if(i<0||i>this.length()-1) return;\n String oriContent = getText().toString();\n StringBuilder sBuilder = new StringBuilder(oriContent);\n sBuilder.deleteCharAt(i);\n setText(sBuilder.toString());\n }",
"public void deleteSelectedWord()\r\n {\n ArrayList al = crossword.getWords();\r\n al.remove(selectedWord);\r\n repopulateWords();\r\n }",
"public abstract void removeSelection(IContentFactory factory,\n TextAppearance appearance);",
"@Override\n public void remove(int no) throws Exception {\n \n }",
"public void performDelete() {\n \t\tif (text.getSelectionCount() > 0)\n \t\t\ttext.insert(StringStatics.BLANK);\n \t\telse {\n \t\t\t// remove the next character\n \t\t\tint pos = text.getCaretPosition();\n \t\t\tif (pos < text.getCharCount()) {\n \t\t\t\ttext.setSelection(pos, pos + 1);\n \t\t\t\ttext.insert(StringStatics.BLANK);\n \t\t\t}\n \t\t}\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}",
"public void removeSelections() {\n selectedItems.clear();\n notifyDataSetChanged();\n }",
"void positionCleared();",
"public void removeMySelectionListener(EventListener l);",
"@Override\n public void revoke() {\n\t\t\tcore(HexEditorConstants.CELL_STATUS_UNDO);\n\t\t\tif (singleCommand) {\n\t\t\t\ttable.select(row);\n\t\t\t\tcursor.setSelection(row, col + 1);\n\t\t\t}\n\t\t}",
"private void removeSelection(RectangleButton button)\n\t{\n\t\tselectedUnits.remove(cancelButtons.indexOf(button));\n\t\tcancelButtons.remove(button);\n\t\tsetSelectionLocations();\n\t}",
"public abstract void deselectAllIndexes();",
"public void setStartRemovePosition(java.lang.Short startRemovePosition) {\r\n this.startRemovePosition = startRemovePosition;\r\n }",
"public void remove(int i)\n/* 39: */ {\n/* 40:34 */ this.members.remove(i);\n/* 41: */ }",
"void onItemDelete(int position);",
"@Override\n protected void processUnselect() {\n \n }",
"public static native long RemoveAt(long lpjFbxArrayVector2, int pIndex);",
"public void clearSelection() {\n clearSelectionQuietly();\n notifySelectionChanged();\n }",
"void figureRemovedAt(Location loc);",
"private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeButtonActionPerformed\n\n AttlistTableModel tm = (AttlistTableModel) attrTable.getModel();\n \n int sel = attrTable.getSelectedRow();\n if (sel > -1) {\n tm.removeRow(sel);\n if (numRows() > 0) {\n if (sel <= numRows() - 1)\n attrTable.getSelectionModel().setSelectionInterval(sel,sel);\n else\n attrTable.getSelectionModel().setSelectionInterval(sel - 1, sel - 1);\n } else removeButton.setEnabled(false);\n }\n }",
"public java.lang.Short getStartRemovePosition() {\r\n return startRemovePosition;\r\n }",
"public void extendSelection(int index) {\n/* 107 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void unSelect() {\n /** if we had some object selected we need to delete it's Transformation Points. */\n if(this.action.isSelect() && this.curr_obj != null) {\n this.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n this.curr_obj = null;\n\n /** if we were in the middle of a text operation, we have to remove the TextBox and set the text to it's last version*/\n } else if(this.action.isText()) {\n int size = Integer.parseInt(currentFontSize.getItemText(currentFontSize.getSelectedIndex()));\n\n curr_obj = new Text(editor.getText());\n ((Text)curr_obj).setFont(currFont);\n addTextObject(curr_obj, (int)aux_obj.getX() + (int)((1.0/4.0)*size), (int)aux_obj.getY()+ (size) + (int)((1.0/4.0)*size));\n\n aux_obj = null;\n curr_obj = null;\n apanel.remove(editor);\n editor = null;\n action.setAction(Action.TEXTBOX);\n }\n }",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\tinstr.setText(\"Previous content is removed.\");\r\n\t\t\tcanvas.arr = new int[8];\r\n\t\t\tcanvas.annotations.clear();\r\n\t\t\tcanvas.repaint();\r\n\t\t}",
"void undo() {\r\n if (_moveCount > 0) {\r\n undoPosition();\r\n }\r\n }",
"void unsetBegin();"
] | [
"0.6474258",
"0.64441425",
"0.6310447",
"0.62700665",
"0.6234348",
"0.61933345",
"0.6185556",
"0.6164731",
"0.6146027",
"0.6146027",
"0.6146027",
"0.6140435",
"0.61403215",
"0.6123749",
"0.61220443",
"0.6092652",
"0.60871124",
"0.6079389",
"0.6072222",
"0.59892964",
"0.59838897",
"0.59577805",
"0.5946389",
"0.5940033",
"0.5910428",
"0.5902733",
"0.5902733",
"0.5902733",
"0.5902733",
"0.59003407",
"0.58954746",
"0.58768183",
"0.58633494",
"0.5836588",
"0.5827145",
"0.5807505",
"0.5802453",
"0.57904893",
"0.5784012",
"0.5774321",
"0.5764103",
"0.57422525",
"0.57061887",
"0.57028276",
"0.56755114",
"0.56736743",
"0.56572664",
"0.5656429",
"0.56549555",
"0.565119",
"0.56391776",
"0.5636456",
"0.56353796",
"0.5607116",
"0.560704",
"0.55919975",
"0.5591353",
"0.5590111",
"0.55703264",
"0.55613834",
"0.5546928",
"0.5546117",
"0.55428034",
"0.5540828",
"0.55389494",
"0.55338085",
"0.5528386",
"0.55270886",
"0.5522117",
"0.5516408",
"0.5514044",
"0.55062073",
"0.5496119",
"0.5493936",
"0.54919726",
"0.5487972",
"0.5485306",
"0.54839087",
"0.54791665",
"0.5472835",
"0.5465656",
"0.5464802",
"0.5462724",
"0.5449845",
"0.5448737",
"0.5447268",
"0.54448384",
"0.54398364",
"0.5435564",
"0.54281324",
"0.5427679",
"0.54236245",
"0.54212815",
"0.5420388",
"0.5418038",
"0.54102004",
"0.5409787",
"0.5408788",
"0.5402582",
"0.54004323"
] | 0.68438566 | 0 |
test if 2 board cards in connectors | private boolean isValidConnectors() {
int countBoardCardInConnectors = 0;
for (CardModel cardModel : boardModel.getCards()) {
if (connectors.contains(cardModel)) {
countBoardCardInConnectors++;
}
}
return (countBoardCardInConnectors == 2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean twoCornersWithSameColor(OthelloBitBoard board) {\r\n\t\tlong playerBoard = board.getBitBoardOf(playerColor);\r\n\t\tlong opponentBoard = board.getBitBoardOf(opponentColor);\r\n\t\treturn Long.bitCount(playerBoard & CORNER_MASK) > 1 || Long.bitCount(opponentBoard & CORNER_MASK) > 1;\r\n\t}",
"private boolean winningBoard(char[][] board){\n for(int i = 0; i < boardHeight; i++ ){\n for(int j = 0; j < boardWidth; j++) {\n\n //if white was made it to the other side\n if(board[i][j] == 'P' && i == 0){\n return true;\n }\n\n //if black has made it to the other side\n if(board[i][j] == 'p' && i == boardHeight -1){\n return true;\n }\n }\n }\n //no winners\n return false;\n }",
"private boolean winCheck(int x, int y, char symbol){\n\t\t/* Horizontal */\n\t\tif(y>=2 && board[x][y-2]==symbol && board[x][y-1]==symbol && board[x][y]==symbol)\n\t\t\treturn true;\n\t\tif(y>=1 && y+1<size && board[x][y-1]==symbol && board[x][y]==symbol && board[x][y+1]==symbol)\n\t\t\treturn true;\n\t\tif(y+2<size && board[x][y]==symbol && board[x][y+1]==symbol && board[x][y+2]==symbol)\n\t\t\treturn true;\n\t\t\n\t\t/* Vertical */\n\t\tif(x>=2 && board[x-2][y]==symbol && board[x-1][y]==symbol && board[x][y]==symbol)\n\t\t\treturn true;\n\t\tif(x>=1 && x+1<size && board[x-1][y]==symbol && board[x][y]==symbol && board[x+1][y]==symbol)\n\t\t\treturn true;\n\t\tif(x+2<size && board[x][y]==symbol && board[x+1][y]==symbol && board[x+2][y]==symbol)\n\t\t\treturn true;\n\t\t\n\t\t/* Main Diagonal */\n\t\tif(x>=2 && y>=2 && board[x-2][y-2]==symbol && board[x-1][y-1]==symbol && board[x][y]==symbol)\n\t\t\treturn true;\n\t\tif(x>=1 && x+1<size && y>=1 && y+1<size && board[x-1][y-1]==symbol && board[x][y]==symbol && board[x+1][y+1]==symbol)\n\t\t\treturn true;\n\t\tif(x+2<size && y+2<size && board[x][y]==symbol && board[x+1][y+1]==symbol && board[x+2][y+2]==symbol)\n\t\t\treturn true;\n\t\t\n\t\t/* Anti Diagonal */\n\t\tif(x>=2 && y+2<size && board[x-2][y+2]==symbol && board[x-1][y+1]==symbol && board[x][y]==symbol)\n\t\t\treturn true;\n\t\tif(x>=1 && x+1<size && y>=1 && y+1<size && board[x+1][y-1]==symbol && board[x][y]==symbol && board[x-1][y+1]==symbol)\n\t\t\treturn true;\n\t\tif(x+2<size && y>=2 && board[x][y]==symbol && board[x+1][y-1]==symbol && board[x+2][y-2]==symbol)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}",
"public boolean check2DDiagnolWinner(Cell play) {\n\t\tfor(int dim = 0; dim < board.length; dim++) { // for dim\n\t\t\tif(board[dim][0][0] == board[dim][1][1] && board[dim][1][1]==board[dim][2][2] && board[dim][2][2]==board[dim][3][3] && board[dim][3][3].equals(play)||\n\t\t\t\t\tboard[dim][0][3] == board[dim][1][2] && board[dim][1][2]==board[dim][2][1] && board[dim][2][1]==board[dim][3][0] && board[dim][3][0].equals(play)) { //for col & row || col & #-row\n\t\t\t\t//\t\t\t\tSystem.out.println(\" 3 Dimensional diagnol win by \"+play.toString()+ \" at dim=\" + dim);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\n\t}",
"public static boolean isBlackWin(char[][] board){\r\n for (int r= 0; r < 6; r++ ){\r\n for (int c = 0; c < 7; c++){\r\n if (r < 3){\r\n if (board [r][c] =='b' && board [r + 1][c] =='b' && board [r + 2][c] =='b' && board [r + 3][c] =='b' ){\r\n return true;\r\n }\r\n }\r\n if (c < 4){\r\n if (board [r][c] =='b' && board [r][c + 1] =='b' && board [r ][c + 2] =='b' && board [r][c + 3] =='b' ){\r\n return true;\r\n }\r\n }\r\n\r\n \r\n }\r\n }\r\n \r\n for (int r = 0; r < 3; r++){\r\n for (int c = 0; c < 4; c++){\r\n if (board [r][c] =='b' && board [r + 1][c +1 ] =='b' && board [r + 2][c +2] =='b' && board [r + 3][c +3 ] =='b' ){\r\n return true; }\r\n }\r\n }\r\n\r\n for (int r = 0; r < 3 ; r++){\r\n for (int c = 6; c > 2; c--){\r\n if (board [r][c] =='b' && board [r + 1][c - 1 ] =='b' && board [r + 2][c - 2] =='b' && board [r + 3][c - 3 ] =='b' ){\r\n return true; }\r\n }\r\n }\r\n return false;\r\n }",
"private void checkConnection( SquareNode a , SquareNode b ) {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tSquareEdge edgeA = a.edges[i];\n\t\t\tif( edgeA == null )\n\t\t\t\tcontinue;\n\n\t\t\tSquareNode common = edgeA.destination(a);\n\t\t\tint commonToA = edgeA.destinationSide(a);\n\t\t\tint commonToB = CircularIndex.addOffset(commonToA,1,4);\n\n\t\t\tSquareEdge edgeB = common.edges[commonToB];\n\t\t\tif( edgeB != null && edgeB.destination(common) == b ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tfail(\"Failed\");\n\t}",
"private boolean diagWin(){ \r\n\t\treturn ((checkValue (board[0][0],board[1][1],board[2][2]) == true) || \r\n\t\t\t\t(checkValue (board[0][2], board[1][1], board[2][0]) == true)); \r\n\t}",
"public boolean check2DDimWinner(Cell play) {\n\t\tfor(int row = 0; row < board.length; row++) {// for row\n\t\t\tfor(int col = 0; col < board.length; col++) {// for col\n\t\t\t\tif(board[0][row][col] == board[1][row][col] && board[1][row][col]==board[2][row][col] && board[2][row][col]==board[3][row][col] && board[3][row][col].equals(play)) \n\t\t\t\t{\n\t\t\t\t\t//\t\t\t\t\tSystem.out.println(\"Dimensional win by \"+play.toString()+ \" at row=\" + row +\" & col= \" + col);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"private static boolean areConnectedInOrder(IC ic1, int pin1, IC ic2, int pin2, ArrayList<Wire> wires, ArrayList<Resistor> resistors)\r\n {\n \r\n if(ic1.isInputPin(pin1)) return false;\r\n if(ic2.isOutputPin(pin2)) return false;\r\n \r\n int hole1 = ic1.getHoleIDOfPin(pin1), hole2 = ic2.getHoleIDOfPin(pin2);\r\n Breadboard b1 = ic1.getBase(), b2 = ic2.getBase();\r\n \r\n if(b1!=b2) return false; // FOR NOW DO NOT THINK OF MORE THAN 1 BREADBOARD: TOO COMPLICATED!\r\n \r\n return areHolesConnected(b1,hole1,hole2,wires);\r\n }",
"public boolean handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(int val1, char suit, int val2) {\n int goUpToThisNumberForI = 2;//go up to < 2 // 0 1\n if (allCards.length == 2){//only two cards\n goUpToThisNumberForI = 1;\n }\n \n for (int j = 0; j < goUpToThisNumberForI; j++) {//iterate through just the players own first two cards --\n System.out.println(\"_______\" + j);\n for (int k = j + 1; k < allCards.length; k++) {//NOT SORTED\n System.out.println(\"..........\" + j);\n if ( (allCards[j].value == val1 && allCards[k].value == val2 )|| (allCards[j].value == val2 && allCards[k].value == val1)) {//left card is v1, right card is v2\n if (suit == 'x') {//suit doesn't matter\n return true;\n } else if (allCards[j].suit == allCards[k].suit) {\n return true;\n }\n } \n\n }\n\n }\n \n \n return false;\n }",
"public boolean connected(Path p1,Path p2){\n\t\t// Checks if p1 and p2 are connected\n\t\tif(p1.getExit()==p2.getPos()&&p1.getPos()==p2.getEntry())\n\t\t\t// If the exit of the first tile is equal to the position of the second tile\n\t\t\t// AND if the entrance of the second tile is equal to the position of the first tile\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\t\n\t}",
"private static boolean isValidBoard(byte[][] board) {\n for(int columnIndex = 0; columnIndex < board.length; columnIndex++) {\n for(int rowIndex = 0; rowIndex < board[columnIndex].length; rowIndex++) {\n byte value = board[columnIndex][rowIndex];\n if((value != IBoardState.symbolOfInactiveCell) && (value != IBoardState.symbolOfEmptyCell) && (value != IBoardState.symbolOfFirstPlayer) && (value != IBoardState.symbolOfSecondPlayer)) {\n return false;\n }\n }\n }\n return true;\n }",
"private boolean doesSquareHaveLessThan2SidesMarked(Line line, Square[][] board) {\n Set<Square> attachedSquaresSet = getSquares(board, line);\n Iterator<Square> squareIterator = attachedSquaresSet.iterator();\n while (squareIterator.hasNext()) {\n if (squareIterator.next().openLines().size() <= 2)\n return false;\n }\n return true;\n }",
"private void checkCardMatch(Card card1, Card card2) {\n if(card1.getColor().getColor() == card2.getColor().getColor()){\n card1.setCardState(CardState.MATCHED);\n card2.setCardState(CardState.MATCHED);\n\n playerManager.incrementScore();\n } else{\n card1.flipCard();\n card2.flipCard();\n }\n cardsClicked = new Card[2];\n switchPlayer();\n setRandomColors();\n checkGameOver();\n }",
"public boolean winCheck(){\n for(int i=0; i<3; i++){//goes through rows\n for(int j=0; j<4; j++){//goes through columns\n if(board[i][j+3] != 0 && board[i+1][j+2] != 0 && board[i+2][j+1] != 0 && \n board[i+3][j] != 0)\n if(board[i][j+3]==(board[i+1][j+2]))\n if(board[i][j+3]==(board[i+2][j+1]))\n if(board[i][j+3]==(board[i+3][j])){\n GBoard[i][j+3].setIcon(star);\n GBoard[i+1][j+2].setIcon(star);\n GBoard[i+2][j+1].setIcon(star);\n GBoard[i+3][j].setIcon(star);\n wonYet=true;\n return true;\n }\n }\n }\n //checks for subdiagonals\n for(int i=0; i<3; i++){//goes through rows\n for(int j=0; j<4; j++){//goes through columns\n if(board[i][j] != 0 && board[i+1][j+1] != 0 && board[i+2][j+2] != 0 &&\n board[i+3][j+3] != 0)\n if(board[i][j] == (board[i+1][j+1]))\n if(board[i][j] == (board[i+2][j+2]))\n if(board[i][j] == (board[i+3][j+3])){\n GBoard[i][j].setIcon(star);\n GBoard[i+1][j+1].setIcon(star);\n GBoard[i+2][j+2].setIcon(star);\n GBoard[i+3][j+3].setIcon(star);\n wonYet=true;\n return true;\n } \n }\n }\n //check horizontals\n for(int i=0; i<6; i++){//goes through rows\n for(int j=0; j<4; j++){//goes through columns\n if(board[i][j] != 0 && board[i][j+1] != 0 && board[i][j+2] != 0 && \n board[i][j+3] != 0){\n if(board[i][j]==(board[i][j+1]))\n if(board[i][j]==(board[i][j+2]))\n if(board[i][j]==(board[i][j+3])){\n GBoard[i][j].setIcon(star);\n GBoard[i][j+1].setIcon(star);\n GBoard[i][j+2].setIcon(star);\n GBoard[i][j+3].setIcon(star);\n wonYet=true;\n return true;\n }\n }\n }\n }\n //checks for vertical wins\n for(int i=0; i<3; i++){//checks rows\n for(int j=0; j<7; j++){//checks columns\n if(board[i][j] != 0 && board[i+1][j] != 0 && board[i+2][j] != 0 && \n board[i+3][j] != 0){\n if(board[i][j]==(board[i+1][j]))\n if(board[i][j]==(board[i+2][j]))\n if(board[i][j]==(board[i+3][j])){\n GBoard[i][j].setIcon(star);\n GBoard[i+1][j].setIcon(star);\n GBoard[i+2][j].setIcon(star);\n GBoard[i+3][j].setIcon(star);\n wonYet=true;\n return true;\n }\n }\n }\n }\n return false; \n }",
"public static boolean hasTwoPair(Card[] cards) {\n\t\tint counter = 0;\n\t\tint value = 0;\n\t\tfor(int i = 0; i< cards.length; i++){\n\t\t\tfor(int j = i+1; j< cards.length; j++){\n\t\t\t\tif(cards[i].getValue() == cards[j].getValue() \n\t\t\t\t\t\t&& value !=cards[j].getValue()){\n\t\t\t\t\tcounter++;\n\t\t\t\t\tvalue = cards[j].getValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(counter>=2){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isChessOnWay(location start, location end, chess[][] board) {\n int startX = start.getX();\n int startY = start.getY();\n int endX = end.getX();\n int endY = end.getY();\n\n if(Math.abs(startX-endX) > 0){\n int step = startX < endX ? 1 : -1;\n for(int i = startX+step; i != endX ; i+=step){\n if(board[i][startY]!=null){\n return true;\n }\n }\n }\n else if(Math.abs(startY-endY) > 0){\n int step = startY < endY ? 1 : -1;\n for(int i = startY+step; i != endY; i+=step){\n if(board[startX][i]!=null){\n return true;\n }\n }\n\n }\n return false;\n\n }",
"private boolean isWin() {\n int continueCount = 1; // number of continue ticTacToees\n \t// west direction\n for (int x = xIndex - 1; x >= 0; x--) {\n Color c = isBlack ? Color.black : Color.white;\n if (getTicTacToe(x, yIndex, c) != null) {\n continueCount++;\n } \n else\n break;\n }\n \t// east direction\n for (int x = xIndex + 1; x <= ROWS; x++) {\n Color c = isBlack ? Color.black : Color.white;\n if (getTicTacToe(x, yIndex, c) != null) {\n continueCount++;\n } \n else\n break;\n }\n if (continueCount >= 3) {\n return true;\n } \n else\n continueCount = 1;\n \n \t\n \t// north direction\n for (int y = yIndex - 1; y >= 0; y--) {\n Color c = isBlack ? Color.black : Color.white;\n if (getTicTacToe(xIndex, y, c) != null) {\n continueCount++;\n } \n else\n break;\n }\n \t// south direction\n for (int y = yIndex + 1; y <= ROWS; y++) {\n Color c = isBlack ? Color.black : Color.white;\n if (getTicTacToe(xIndex, y, c) != null) {\n continueCount++;\n } \n else\n break;\n }\n if (continueCount >= 3) {\n return true;\n } \n else\n continueCount = 1;\n \n \t// northeast direction\n for (int x = xIndex + 1, y = yIndex - 1; y >= 0 && x <= COLS; x++, y--) {\n Color c = isBlack ? Color.black : Color.white;\n if (getTicTacToe(x, y, c) != null) {\n continueCount++;\n } \n else\n break;\n }\n \t// southeast direction\n for (int x = xIndex - 1, y = yIndex + 1; y <= ROWS && x >= 0; x--, y++) {\n Color c = isBlack ? Color.black : Color.white;\n if (getTicTacToe(x, y, c) != null) {\n continueCount++;\n } \n else\n break;\n }\n if (continueCount >= 3) {\n return true;\n } \n else\n continueCount = 1;\n \n \t// northwest direction\n for (int x = xIndex - 1, y = yIndex - 1; y >= 0 && x >= 0; x--, y--) {\n Color c = isBlack ? Color.black : Color.white;\n if (getTicTacToe(x, y, c) != null) {\n continueCount++;\n } \n else\n break;\n }\n \t// southwest direction\n for (int x = xIndex + 1, y = yIndex + 1; y <= ROWS && x <= COLS; x++, y++) {\n Color c = isBlack ? Color.black : Color.white;\n if (getTicTacToe(x, y, c) != null) {\n continueCount++;\n } \n else\n break;\n }\n if (continueCount >= 3) {\n return true;\n } \n else\n continueCount = 1;\n \n return false;\n }",
"public boolean check2DColWinner(Cell play) {\n\t\tfor(int dim = 0; dim < board.length; dim++) { // for dim\n\t\t\tfor(int col = 0; col < board.length; col++) { // for col\n\t\t\t\tif(board[dim][0][col] == board[dim][1][col] && board[dim][1][col]==board[dim][2][col] && board[dim][2][col]==board[dim][3][col] && board[dim][3][col].equals(play)) { \n\t\t\t\t\t//\t\t\t\t\tSystem.out.println(\"Column win by \"+play.toString()+ \" at dim=\" + dim +\" & col= \" + col);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\n\t}",
"public boolean match(BoardSpace that);",
"private boolean isRedundant( Connector connector ) {\n // Local connector\n if ( connector.getSegment().equals( getNode().getSegment() ) ) {\n Part connectingPart = connector.getInnerFlow().getLocalPart();\n return getNode().isConnectedTo( isSend(), connectingPart, getFlow().getName() );\n // external connector\n } else if ( getFlow().hasConnector() ) {\n // Tested connector is from another segment -> would lead to an external flow\n Flow flow = getFlow();\n // only a target connector (externalized connector) registers the external flows\n // external flows are to a part which is itself the target of an internal flow\n // with another (internalized) connector as source\n Connector externalizedConnector = (Connector) ( isSend() ? flow.getTarget() : connector );\n final Connector internalizedConnector = (Connector) (\n isSend()\n ? connector :\n flow.isExternal()\n ? ( (ExternalFlow) flow ).getConnector()\n : flow.getSource() );\n return CollectionUtils.exists(\n IteratorUtils.toList( externalizedConnector.externalFlows() ),\n new Predicate() {\n @Override\n public boolean evaluate( Object object ) {\n ExternalFlow externalFlow = (ExternalFlow) object;\n return externalFlow.getPart()\n .equals( internalizedConnector.getInnerFlow().getContactedPart() );\n }\n }\n );\n } else {\n return false;\n }\n }",
"public boolean checkForWinner(String player) {\r\n\t\t\r\n\t\t// check rows\r\n\t\tfor (int row = 0; row < board.length; row++) {\r\n\t\t\tint markCounter = 0;\r\n\t\t\tfor (int col = 0; col < board[row].length; col++) {\r\n\t\t\t\tif (board[row][col].getText().contains(player)) {\r\n\t\t\t\t\tmarkCounter++;\r\n\t\t\t\t}\r\n\t\t\t\telse if(! (board[row][col].getText().contains(player)) ) {\r\n\t\t\t\t\tmarkCounter = 0;\r\n\t\t\t\t}\r\n\t\t\t\tif (markCounter == connectX) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// check columns\r\n\t\tfor (int col = 0; col < 7; col++) {\r\n\t\t\tint markCounter = 0;\r\n\t\t\tfor (int row = board.length - 1; row >= 0; row--) {\r\n\t\t\t\tif(board[row][col].getText().contains(player)) {\r\n\t\t\t\t\tmarkCounter++;\r\n\t\t\t\t}\r\n\t\t\t\telse if(! (board[row][col].getText().contains(player)) ) {\r\n\t\t\t\t\tmarkCounter = 0;\r\n\t\t\t\t}\r\n\t\t\t\tif (markCounter == connectX) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * This algorithm checks the right side of the second diagonal on the board. The while loop iterates four times from bottom \r\n\t\t * to top, right to left. \r\n\t\t * The reason it only iterates four times is because after a certain point, it is impossible for a player to connect four\r\n\t\t * so the code does'nt have to check the corners.\r\n\t\t * \t\tO X X X O O O\r\n\t\t * \t\tO O X X X O O\r\n\t\t * \t\tO O O X X X O\r\n\t\t *\t\tO O O O X X X\r\n\t\t * \t\tO O O O O X X\r\n\t\t * \t\tO O O O O O X\r\n\t\t * \r\n\t\t */\r\n\t\tint diag2Count = 0;\r\n\t\tint row = board.length - 1;\r\n\t\tint col = 6;\r\n\t\tint iteration = 0;\r\n\t\tint rowPlace = row;\r\n\t\twhile (iteration < 4) {\r\n\t\t\trow = rowPlace;\r\n\t\t\tcol = 6;\r\n\t\t\twhile (row >= 0 && col >= 1) {\r\n\t\t\t\tif (board[row][col].getText().contains(currPlayer)) {\r\n\t\t\t\t\tdiag2Count++;\r\n\t\t\t\t}\r\n\t\t\t\tif (!(board[row][col].getText().contains(player))) {\r\n\t\t\t\t\tdiag2Count = 0; //If there is a chip which does not belong to a player in the sequence, the counter is reset.\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (diag2Count == connectX) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\trow--;\r\n\t\t\t\tcol--;\r\n\t\t\t}\r\n\t\t\titeration++;\r\n\t\t\trowPlace--;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Checks the left hand side of the secondary diagonal. Iterates only 3 times.\r\n\t\t * of the board.\r\n\t\t * \t\t\tX O O O O O O\r\n\t\t * \t\t\tX X O O O O O\r\n\t\t * \t\t\tX X X O O O O\r\n\t\t * \t\t\tO X X X O O O\r\n\t\t * \t\t\tO O X X X O O\r\n\t\t * \t\t\tO O O X X X O\r\n\t\t */\r\n\t\trow = board.length - 1;\r\n\t\tcol = 3;\r\n\t\titeration = 0;\r\n\t\tint colPlace = col;\r\n\t\twhile (iteration < 4) {\r\n\t\t\tcol = colPlace;\r\n\t\t\trow = board.length -1;\r\n\t\t\twhile (row >= 0 && col >= 0) {\r\n\t\t\t\tif (board[row][col].getText().contains(currPlayer)) {\r\n\t\t\t\t\tdiag2Count++;\r\n\t\t\t\t}\r\n\t\t\t\tif (!(board[row][col].getText().contains(player))) {\r\n\t\t\t\t\tdiag2Count = 0; //If there is a chip which does not belong to a player in the sequence, the counter is reset.\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (diag2Count == connectX) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\trow--;\r\n\t\t\t\tcol--;\r\n\t\t\t}\r\n\t\t\titeration++;\r\n\t\t\tcolPlace++;\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * Checks the left hand main Diagonals and iterates 3 times.\r\n\t\t * \t\t\tO O O X X X O\r\n\t\t * \t\t\tO O X X X O O\r\n\t\t * \t\t\tO X X X O O O \r\n\t\t * \t\t\tX X X O O O O\r\n\t\t * \t\t\tX X O O O O O\r\n\t\t * \t\t\tX O O O O O O\r\n\t\t * \r\n\t\t */\r\n\t\trow = 3;\r\n\t\tcol = 0;\r\n\t\trowPlace = row;\r\n\t\titeration = 0;\r\n\t\tint diagMainCounter = 0;\r\n\t\twhile (iteration < 3) {\r\n\t\t\trow = rowPlace;\r\n\t\t\tcol = 0;\r\n\t\t\twhile (row >= 0 && col <= 6) {\r\n\t\t\t\tif (board[row][col].getText().contains(currPlayer)) {\r\n\t\t\t\t\tdiagMainCounter++;\r\n\t\t\t\t}\r\n\t\t\t\tif (!(board[row][col].getText().contains(player))) {\r\n\t\t\t\t\tdiagMainCounter = 0; //If there is a chip which does not belong to a player in the sequence, the counter is reset.\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (diagMainCounter == connectX) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\trow--;\r\n\t\t\t\tcol++;\r\n\t\t\t}\r\n\t\t\titeration++;\r\n\t\t\trowPlace++;\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * Checks the right hand side of the main diagonal and iterates 4 times.\r\n\t\t * \r\n\t\t *\t\t\tO O O O O O X\r\n\t\t *\t\t\tO O O O O X X\r\n\t\t *\t\t\tO O O O X X X\r\n\t\t *\t\t\tO O O X X X O\r\n\t\t *\t\t\tO O X X X O O\r\n\t\t *\t\t\tO X X X O O O\r\n\t\t */\r\n\t\trow = board.length -1;\r\n\t\tcol = 0;\r\n\t\tcolPlace = col;\r\n\t\titeration = 0;\r\n\t\tdiagMainCounter = 0;\r\n\t\twhile (iteration < 4) {\r\n\t\t\tcol = colPlace;\r\n\t\t\trow = board.length -1;\r\n\t\t\twhile (row >= 0 && col <= 6) {\r\n\t\t\t\tif (board[row][col].getText().contains(currPlayer)) {\r\n\t\t\t\t\tdiagMainCounter++;\r\n\t\t\t\t}\r\n\t\t\t\tif (!(board[row][col].getText().contains(player))) {\r\n\t\t\t\t\tdiagMainCounter = 0; //If there is a chip which does not belong to a player in the sequence, the counter is reset.\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (diagMainCounter == connectX) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\trow--;\r\n\t\t\t\tcol++;\r\n\t\t\t}\r\n\t\t\titeration++;\r\n\t\t\tcolPlace++;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isTwoPairs(){\n \r\n List<PokerCard> pair1;\r\n List<PokerCard> pair2;\r\n \r\n //First possibility: first four cards are two pairs\r\n pair1 = cards.subList(0, 2);\r\n pair2 = cards.subList(2, 4);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(cards.size()-1).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: First two and last two cards are pairs\r\n pair1 = cards.subList(0, 2);\r\n pair2 = cards.subList(3, 5);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(2).getValue();\r\n return true;\r\n }\r\n \r\n //Third possibility: Last four cards are two pairs\r\n pair1 = cards.subList(1, 3);\r\n pair2 = cards.subList(3, 5);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(0).getValue();\r\n return true;\r\n }\r\n return false;\r\n }",
"@Override\n public boolean anotherPlayIsPossible()\n {\n \t\n List<Integer> test = cardIndexes();\n return containsSum13(test) || containsK(test);\n \n }",
"public boolean check2DRowWinner(Cell play) {\n\n\t\tfor(int dim = 0; dim < board.length; dim++) {// for dim\n\t\t\tfor(int row = 0; row < board.length; row++) { //for row\n\t\t\t\t//\t\t\t\tfor(int col = 0; col < board.length; col++) {// for col\n\n\t\t\t\tif(board[dim][row][0] == board[dim][row][1] && board[dim][row][1]==board[dim][row][2] && board[dim][row][2]==board[dim][row][3] && board[dim][row][3].equals(play)) { \n\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(\"Row win by \"+play.toString()+ \" at dim=\" + dim +\" & row= \" + row); \n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean isConnectedPort() {\n for (Tile t : getTile().getSurroundingTiles(1)) {\n if (!t.isLand() && t.isHighSeasConnected()) return true;\n }\n return false;\n }",
"@Test\n\tpublic void verifyCombosOnBoard() {\n\t\tBoard board = boardFactory.fromTextGenerateBoard(\"/boards/1LineOf3.txt\", mockGroup);\n\t\tassertFalse(board.outOfMoves());\n\n\t}",
"@Test\r\n public void testPlayer_getDumbStrategyCard_differentWinners() {\r\n player2 = new Player(\"\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n boolean differentLegalCardFound = false;\r\n Card firstDiscard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n for(int i = 0; i < 25; i++) {\r\n Card loopCard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n if(!loopCard.equals(firstDiscard)) {\r\n differentLegalCardFound = true;\r\n }\r\n }\r\n assertTrue(differentLegalCardFound);\r\n }",
"public boolean win() {\r\n\t\tfor (int n = 0; n < 3; n++) {\r\n\t\t\tfor (int m = 0; m < 7; m++) {\r\n\t\t\t\tif (board[n][m] != 'X') {\r\n\t\t\t\t\tif (board[n + 1][m] == board[n][m] && board[n + 2][m] == board[n][m]\r\n\t\t\t\t\t\t\t&& board[n + 3][m] == board[n][m]) {\r\n\t\t\t\t\t\tsquares[n][m].setText(\"X\");\r\n\t\t\t\t\t\tsquares[n + 1][m].setText(\"X\");\r\n\t\t\t\t\t\tsquares[n + 2][m].setText(\"X\");\r\n\t\t\t\t\t\tsquares[n + 3][m].setText(\"X\");\r\n\r\n\t\t\t\t\t\twinnerChip = board[n][m];\r\n\r\n\t\t\t\t\t\treturn true;\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\tfor (int n = 0; n < 6; n++) {\r\n\t\t\tfor (int m = 0; m < 4; m++) {\r\n\t\t\t\tif (board[n][m] != 'X') {\r\n\t\t\t\t\tif (board[n][m + 1] == board[n][m] && board[n][m + 2] == board[n][m]\r\n\t\t\t\t\t\t\t&& board[n][m + 3] == board[n][m]) {\r\n\t\t\t\t\t\tsquares[n][m].setText(\"X\");\r\n\t\t\t\t\t\tsquares[n][m + 1].setText(\"X\");\r\n\t\t\t\t\t\tsquares[n][m + 2].setText(\"X\");\r\n\t\t\t\t\t\tsquares[n][m + 3].setText(\"X\");\r\n\t\t\t\t\t\twinnerChip = board[n][m];\r\n\r\n\t\t\t\t\t\treturn true;\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\tfor (int n = 0; n < 3; n++) {\r\n\t\t\tfor (int m = 0; m < 4; m++) {\r\n\t\t\t\tif (board[n][m] != 'X') {\r\n\t\t\t\t\tif (board[n + 1][m + 1] == board[n][m] && board[n + 2][m + 2] == board[n][m]\r\n\t\t\t\t\t\t\t&& board[n + 3][m + 3] == board[n][m]) {\r\n\t\t\t\t\t\tsquares[n][m].setText(\"X\");\r\n\t\t\t\t\t\tsquares[n + 1][m + 1].setText(\"X\");\r\n\t\t\t\t\t\tsquares[n + 2][m + 2].setText(\"X\");\r\n\t\t\t\t\t\tsquares[n + 3][m + 3].setText(\"X\");\r\n\r\n\t\t\t\t\t\twinnerChip = board[n][m];\r\n\t\t\t\t\t\treturn true;\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\tfor (int n = 3; n < 6; n++) {\r\n\t\t\tfor (int m = 0; m < 4; m++) {\r\n\t\t\t\tif (board[n][m] != 'X') {\r\n\t\t\t\t\tif (board[n - 1][m + 1] == board[n][m] && board[n - 2][m + 2] == board[n][m]\r\n\t\t\t\t\t\t\t&& board[n - 3][m + 3] == board[n][m]) {\r\n\t\t\t\t\t\tsquares[n][m].setText(\"X\");\r\n\t\t\t\t\t\tsquares[n - 1][m + 1].setText(\"X\");\r\n\t\t\t\t\t\tsquares[n - 2][m + 2].setText(\"X\");\r\n\t\t\t\t\t\tsquares[n - 3][m + 3].setText(\"X\");\r\n\r\n\t\t\t\t\t\twinnerChip = board[n][m];\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\r\n\t}",
"public boolean validMove(ChessBoard board, Square from, Square to){\r\n // check if piece killing his ally\r\n if(to.getPiece() != null){\r\n if (to.getPiece().isBlue() == this.isBlue()) {\r\n return false;\r\n }\r\n } \r\n\r\n int x = Math.abs(from.getX() - to.getX()); \r\n int y = Math.abs(from.getY() - to.getY()); \r\n if(( x == 2 && y == 1 ) || ( x == 1 && y == 2 )){\r\n return true; \r\n }\r\n\r\n return false;\r\n }",
"protected boolean connects(R r1, R r2) {\n\t\t\treturn getPreviousOrSame(getLower(r1)).compareTo(getUpper(r2)) <= 0 ||\n\t\t\t\tgetPreviousOrSame(getLower(r2)).compareTo(getUpper(r1)) <= 0;\n\t\t}",
"public abstract boolean isConnectedInDirection(N n1, N n2);",
"public static boolean checkWinner(){\n \n if(board[0][0] == board[0][1] && board[0][1] == board[0][2] && (board[0][0] == 'x' || board [0][0] == 'o'))\n return true;\n else if(board[1][0] == board[1][1] && board[1][1] == board[1][2] && (board[1][0] == 'x' || board[1][0] == 'o'))\n return true;\n else if(board[2][0] == board[2][1] && board[2][1] == board[2][2] && (board[2][0] == 'x' || board[2][0] == 'o'))\n return true;\n else if(board[0][0] == board[1][0] && board[1][0] == board[2][0] && (board[0][0] == 'x' || board[0][0] == 'o'))\n return true;\n else if(board[0][1] == board[1][1] && board[1][1] == board[2][1] && (board[0][1] == 'x' || board[0][1] == 'o'))\n return true;\n else if(board[0][2] == board[1][2] && board[1][2] == board[2][2] && (board[0][2] == 'x' || board[0][2] == 'o'))\n return true;\n else if(board[0][0] == board[1][1] && board[1][1] == board[2][2] && (board[0][0] == 'x' || board[0][0] == 'o'))\n return true;\n else if(board[0][2] == board[1][1] && board[1][1] == board[2][0] && (board[0][2] == 'x' || board[0][2] == 'o'))\n return true;\n else\n return false;\n \n }",
"private boolean checkWinner() {\n\t\tboolean frontDiagWin = !myBoard.isEmpty(0, 0);\n\t\tchar frontDiagToken = myBoard.getCell(0, 0);\n\t\tboolean backDiagWin = !myBoard.isEmpty(0, Board.BOARD_SIZE - 1);\n\t\tchar backDiagToken = myBoard.getCell(0, Board.BOARD_SIZE - 1);\n\t\tfor (int i = 0; i < Board.BOARD_SIZE; i++) {\n\t\t\t// check Diagonals\n\t\t\tfrontDiagWin = myBoard.getCell(i, i) == frontDiagToken ? frontDiagWin\n\t\t\t\t\t: false;\n\t\t\tbackDiagWin = myBoard.getCell(i, (Board.BOARD_SIZE - 1) - i) == backDiagToken ? backDiagWin\n\t\t\t\t\t: false;\n\t\t\t// check Rows and Columns\n\t\t\tboolean rowWin = !myBoard.isEmpty(i, 0);\n\t\t\tchar startRowToken = myBoard.getCell(i, 0);\n\t\t\tboolean colWin = !myBoard.isEmpty(0, i);\n\t\t\tchar startColToken = myBoard.getCell(0, i);\n\t\t\tfor (int j = 0; j < Board.BOARD_SIZE; j++) {\n\t\t\t\trowWin = myBoard.getCell(i, j) == startRowToken ? rowWin\n\t\t\t\t\t\t: false;\n\t\t\t\tcolWin = myBoard.getCell(j, i) == startColToken ? colWin\n\t\t\t\t\t\t: false;\n\t\t\t}\n\t\t\tif (rowWin || colWin) {\n\t\t\t\tSystem.out.println(\"\\\"\"\n\t\t\t\t\t\t+ (rowWin ? startRowToken : startColToken)\n\t\t\t\t\t\t+ \"\\\" wins the game!\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tif (frontDiagWin || backDiagWin) {\n\t\t\tSystem.out.println(\"\\\"\"\n\t\t\t\t\t+ (frontDiagWin ? frontDiagToken : backDiagToken)\n\t\t\t\t\t+ \"\\\" wins the game!\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean diagonalWin(){\n\t\tint match_counter=0;\n\t\tboolean flag=false;\n\t\tfor(int row=8; row>=3;row--){\n\t\t\tfor(int column=0;column<25;column++){\n\t\t\t\tif(Board[row][column]!='\\u0000'){\n\t\t\t\t\tif(Board[row][column]!='O'){\n\t\t\t\t\t\tif(Board[row][column]==Board[row-1][column+1]&& \n\t\t\t\t\t\t Board[row-1][column+1]== Board[row-2][column+2]&&\n\t\t\t\t\t\t Board[row-2][column+2]==Board[row-3][column+3]){\n\t\t\t\t\t\t\tflag=true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tflag=false;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tif (flag == true)\n\t\t\t\tbreak;\n\t\t}\n\t\treturn flag;\t\n\t}",
"private boolean checkTopLeftDownDiag(char playerSymbol) {\n //checking the top left-bottom right diagonal\n for (int i = 0; i < N; i++) {\n if (grid[i][i].getSymbol() != playerSymbol) {\n return false;\n }\n }\n return true;\n }",
"public boolean isConnectedWith(Shapes shape){\n if(this.endShapes.length == 2){\n if(endShapes[0].equals(shape) || endShapes[1].equals(shape)){\n return true;\n }\n return false; \n }else{\n return false;\n }\n }",
"public static boolean checkDiagonal(){\nif(gamebd[0][0]==gamebd[1][1]&&gamebd[1][1]==gamebd[2][2]&&gamebd[0][0]>0)\r\n{\r\n\tif(gamebd[0][0]==player1)\r\n\t\tSystem.out.println(\"Player 1 won\");\r\n\telse\r\n\t\tSystem.out.println(\"Player 2 won\");\r\nreturn true;\t\t\r\n}\r\nif(gamebd[0][2]==gamebd[1][1]&&gamebd[1][1]==gamebd[2][0]&&gamebd[0][2]>0)\r\n{\r\n\tif(gamebd[0][2]==player1)\r\n\t\tSystem.out.println(\"Player 1 won\");\r\n\telse\r\n\t\tSystem.out.println(\"Player 2 won\");\r\n\treturn true;\t\r\n}\r\n\treturn false;\r\n}",
"public boolean isGameOver() {\n if (winner == null) {\n Piece[] diagOne = new Piece[this.size];\n Piece[] diagTwo = new Piece[this.size];\n for (int col = 0; col < _board.length; col += 1) {\n diagOne[col] = _board[col][col];\n diagTwo[col] = _board[col][this.size - 1 - col];\n if (isWinning(_board[col])) {\n alternatePlayer(currPlayer);\n winner = currPlayer;\n return true;\n }\n }\n this.transpose();\n for (int row = 0; row < _board[0].length; row += 1) {\n if (isWinning(this._board[row])) {\n this.transpose();\n alternatePlayer(currPlayer);\n winner = currPlayer;\n return true;\n }\n }\n\n this.transpose();\n\n if (isWinning(diagOne) || isWinning(diagTwo)) {\n alternatePlayer(currPlayer);\n winner = currPlayer;\n return true;\n }\n if (checkTie()) {\n return true;\n }\n }\n return false;\n }",
"public boolean validMove(ChessBoard board, Square from, Square to) {\r\n // check if piece killing his ally\r\n if(to.getPiece() != null){\r\n if (to.getPiece().isBlue() == this.isBlue()) {\r\n return false;\r\n }\r\n } \r\n\r\n int x = from.getX() - to.getX();\r\n int y = from.getY() - to.getY();\r\n \r\n if (x < 0 && Math.abs(x) == Math.abs(y) && y > 0){\r\n int j = from.getY()-1;\r\n for( int i = from.getX()+1 ; i < to.getX() ; i++){\r\n if (board.getBox(i,j).getPiece()!=null){\r\n return false;}\r\n j--;\r\n } \r\n return true;\r\n }\r\n else if(x > 0 && Math.abs(x) == Math.abs(y) && y > 0){\r\n int j = from.getY()-1;\r\n for( int i = from.getX()-1 ; i > to.getX() ; i--){\r\n if (board.getBox(i,j).getPiece()!=null){\r\n return false;}\r\n j--;\r\n }\r\n return true;\r\n }\r\n else if( x > 0 && Math.abs(x) == Math.abs(y) && y < 0){\r\n int j = from.getY()+1;\r\n for( int i = from.getX()-1 ; i > to.getX() ; i--){\r\n if (board.getBox(i,j).getPiece()!=null){\r\n return false;}\r\n j++;\r\n }\r\n return true; \r\n }\r\n else if (x < 0 && Math.abs(x) == Math.abs(y) && y < 0){\r\n int j = from.getY()+1;\r\n for( int i = from.getX()+1 ; i < to.getX() ; i++){\r\n if (board.getBox(i,j).getPiece()!=null){\r\n return false;}\r\n j++;\r\n } \r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"public boolean connected(int first, int second) {\n return find(first) == find(second);\n }",
"private boolean checkRowColWin(char symbol) {\n boolean cols, rows;\n\n for (int col = 0; col < SIZE; col++) {\n cols = true;\n rows = true;\n\n for (int row = 0; row < SIZE; row++) {\n cols &= (gameField[col][row] == symbol);\n rows &= (gameField[row][col] == symbol);\n }\n if (cols || rows) {\n return true;\n }\n }\n return false;\n }",
"public boolean diag2(){\n\tboolean trouve=false;\n\tint i=0;\n\tObject tmp='@';\n\twhile(i<5 && !trouve){\n\t\tif(gc[i][gc.length-i-1]==tmp)\n\t\t\ttrouve=true;\n\t\telse\n\t\t\ti++;\n\t}\n\treturn trouve;\n}",
"private boolean check(Board board, char symbol)\n {\n for (int i = 0; i < size; i ++)\n if (checkRow(board, i, symbol))\n return true;\n for (int i = 0; i < size; i++)\n if (checkColumn(board, i , symbol))\n return true;\n if (checkLeftDiagonal(board, symbol))\n return true;\n if (checkRightDiagonal(board, symbol))\n return false;\n return false;\n }",
"private boolean inSameSuit() {\n for (int i = 0; i < cards.length-2; i++) {\n if (cards[i].charAt(1) != cards[i + 1].charAt(1)) {\n return false;\n }\n }\n \n return true;\n }",
"private static Boolean checkForContinuousConnectivity()\n\t{\n\t\tint row=0;\n\t\tint column=0;\n\t\tBoolean floorFound=false;\n\n\t\tfor(int i=0; i<board.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j<board[i].length; j++)\n\t\t\t{\n\t\t\t\tif(board[i][j]==Cells.FLOOR)\n\t\t\t\t{\n\t\t\t\t\trow=i;\n\t\t\t\t\tcolumn=j;\n\t\t\t\t\tfloorFound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (floorFound)\n\t\t\t\tbreak;\n\t\t}\n\n\t\tfor(int i=0; i<board.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j<board[i].length; j++)\n\t\t\t{\n\t\t\t\tif(board[i][j]==Cells.FLOOR && !(_PF.canFindAWay(column, row, j, i)))\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"private boolean canAddBlueTile() {\n\t\tint soldierCount=0,queenCount=0;\n\n\n\t\tArrayList<Piece> playerPieces = Board.getInstance().getColorPieces(Game.getInstance().getCurrentPlayerColor());\n\t\tfor(Piece p:playerPieces)\n\t\t{\n\t\t\tif(p instanceof Soldier)\n\t\t\t{\n\t\t\t\tsoldierCount++;\n\t\t\t}\n\t\t\tif(p instanceof Queen)\n\t\t\t{\n\t\t\t\tqueenCount++;\n\t\t\t}\n\t\t}\n\t\treturn (soldierCount == 2 && queenCount == 1);\n\t}",
"public abstract boolean isConnected(N n1, N n2);",
"@Override\n\tpublic boolean canMove(Board board, Box start, Box end) {\n\t\tif(end.getPiece().isWhite() == this.isWhite()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tint x = Math.abs(start.getX() - end.getX());\n\t\tint y = Math.abs(start.getY() - end.getY());\n\t\treturn x * y == 2;\n\t}",
"public boolean hasTwoP(ArrayList<Card> cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tboolean retVal = false;\r\n\t\tint numPairs = 0;\r\n\t\tint counter;// counts how many of those cards are in the hand\r\n\t\tint pairVal = 0;\r\n\t\tfor (int i = 0; i <cards.size()-1; i++) {\r\n\t\t\tcounter = 1;\r\n\t\t\tfor (int j = i+1; j < cards.size(); j++) {\r\n\t\t\t\tif(cards.get(i).getValue() == cards.get(j).getValue() &&\r\n\t\t\t\t\t\tcards.get(i).getValue() != pairVal){\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tpairVal = cards.get(j).getValue();\r\n\t\t\t\t\tif(counter > 1) {\r\n\t\t\t\t\t\tnumPairs++;\r\n\t\t\t\t\t\tif (numPairs == 2) {\r\n\t\t\t\t\t\t\tretVal = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retVal;\r\n\t}",
"public boolean meWin(){\n return whitePieces.size() > blackPieces.size() && isWhitePlayer;\n }",
"private boolean colWin(){ \r\n\t\tfor (int i=0; i<3; i++){ \r\n\t\t\tif (checkValue (board[0][i], board[1][i], board[2][i]))\r\n\t\t\t\treturn true; \r\n\t\t}\r\n\t\treturn false; \r\n\t}",
"boolean connected(String descrip) {\n if (this.hasNeighbor(descrip)) {\n if (descrip.equals(\"right\")) {\n return this.neighbors.get(\"right\").left && this.right;\n }\n else if (descrip.equals(\"up\")) {\n return this.neighbors.get(\"up\").down && this.up;\n }\n else if (descrip.equals(\"down\")) {\n return this.neighbors.get(\"down\").up && this.down;\n }\n else if (descrip.equals(\"left\")) {\n return this.neighbors.get(\"left\").right && this.left;\n }\n else {\n return false;\n }\n }\n else {\n return false;\n }\n }",
"private boolean gameBoardCompareSafe(char symbol, int row, int col) {\n return row >= 0 && row < gameBoard.length && col >= 0 && col < gameBoard[0].length && gameBoard[row][col] == symbol;\n }",
"private boolean findTicTacToe(int x, int y) {\n for (Point c : ticTacToeList) {\n if (c != null && c.getX() == x && c.getY() == y)\n return true;\n }\n return false;\n }",
"public boolean validMove(ChessBoard board, Square from, Square to) {\r\n // check if piece killing his ally\r\n if(to.getPiece() != null){\r\n if (to.getPiece().isBlue() == this.isBlue()) {\r\n return false;\r\n }\r\n } \r\n\r\n int x = Math.abs(from.getX() - to.getX());\r\n int y = Math.abs(from.getY() - to.getY());\r\n if((from.getX() - to.getX()) > 0 || (from.getY() - to.getY()) > 0){\r\n if ((x == 0 && y >= 1)) {\r\n for(int i = 1; i <= y-1; i++){\r\n if(board.getBox(from.getX(), from.getY() - i).getPiece() != null){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }else if((x >= 1 && y == 0)){\r\n for(int i = 1; i <= x-1; i++){\r\n if(board.getBox(from.getX() - i, from.getY()).getPiece() != null){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n }else if((from.getX() - to.getX()) < 0 || (from.getY() - to.getY()) < 0){\r\n if (x == 0 && (from.getY() - to.getY()) <= -1) {\r\n for(int i = y-1; i > 0; i--){\r\n if(board.getBox(from.getX(), from.getY() + i).getPiece() != null){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }else if((from.getX() - to.getX()) <= -1 && y == 0){\r\n for(int i = x-1; i > 0; i--){\r\n if(board.getBox(from.getX() + i, from.getY()).getPiece() != null){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"private boolean player2Wins() {\n\n boolean p2inTriangle = false;\n int target[] = new int[]{0, 1, 2, 3, 9, 10, 11, 18, 19, 27};\n for (int i : target) {\n if (board[i] == 0)\n return false;\n if (board[i] == 2)\n p2inTriangle = true;\n }\n\n return p2inTriangle;\n }",
"boolean similarColorTo(Card c);",
"private boolean playerWonGameWithVerticalLine(Player player) {\n char playerSymbol = player.getType(); \n for (int i = 0; i < 3; i++) {\n if (boardState[0][i] == playerSymbol && boardState[1][i] == playerSymbol \n && boardState[2][i] == playerSymbol) {\n return true; \n }\n \n }\n return false; \n }",
"private boolean isCrossroad(int x, int y)\n {\n byte count = 0;\n count += x + 1 < LoadMap.MAPWIDTHINTILES ? (connectedTiles[y][x + 1] != null ? 1 : 0) : 0;\n count += x - 1 >= 0 ? (connectedTiles[y][x - 1] != null ? 1 : 0) : 0;\n count += y + 1 < LoadMap.MAPHEIGHTINTILES ? (connectedTiles[y + 1][x] != null ? 1 : 0) : 0;\n count += y - 1 >= 0 ? (connectedTiles[y - 1][x] != null ? 1 : 0) : 0;\n return count > 2;\n }",
"private static String gameStatus(char[][] board){\n\t\t\n\t\tfor (int i = 0; i < 3; i++){\n\t\t\t// check horizontal lines && vertical lines for player x\n\t\t\tif ((board[i][0] == 'X' && board[i][1] == 'X' && board[i][2] == 'X') || \n\t\t\t\t\t(board[0][i] == 'X' && board[1][i] == 'X' && board[2][i] == 'X')){\n\t\t\t\twinner = 'X';\n\t\t\t\treturn \"true\";\n\t\t\t}\n\t\t}\n\t\t//check diags for x\n\t\tif ((board[0][0] == 'X' && board[1][1] == 'X' && board[2][2] == 'X') || \n\t\t\t\t(board[0][2] == 'X' && board[1][1] == 'X' && board[2][0] == 'X')){\n\t\t\twinner = 'X';\n\t\t\treturn \"true\";\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 3 ; i++) {\n\t\t\t// check horizontal and vertical lines for player o\n\t\t\tif ((board[i][0] == 'O' && board[i][1] == 'O' && board[i][2] == 'O') || \n\t\t\t\t\t(board[0][i] == 'O' && board[1][i] == 'O' && board[2][i] == 'O')){\n\t\t\t\twinner = 'O';\n\t\t\t\treturn \"true\";\n\t\t\t}\n\t\t}\n\t\t//check diags for o\n\t\tif ((board[0][0] == 'O' && board[1][1] == 'O' && board[2][2] == 'O') || \n\t\t\t\t(board[0][2] == 'O' && board[1][1] == 'O' && board[2][0] == 'O')){\n\t\t\twinner = 'O';\n\t\t\treturn \"true\";\n\t\t}\n\n\t\t// check for tie\n\t\tint emptyCells = 9;\n\t\tfor (int i = 0; i < 3; i++){\n\t\t\tfor (int j = 0; j < 3; j++){\n\t\t\t\tif (board[i][j]!='\\0') emptyCells -= 1;\t\t\n\t\t\t}\n\t\t}\n\t\t// if all cells are filled, game is over with a tie\n\t\tif (emptyCells == 0) return \"tie\";\n\n\t\t// otherwise game is not over and return false\n\t\t//printBoard(board);\n\n\t\treturn \"false\";\n\t}",
"public static boolean checkForObviousMove(char[][] a){\r\n int rowNumber = a.length;\r\n int colNumber = a[0].length;\r\n //AI obvious to win\r\n for (int i = 0; i<rowNumber; i++){\r\n for (int j = 0; j<colNumber; j++){\r\n //check if on diagnol\r\n if (i == j && countDiag1(a, 'o')== (rowNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n if (i+j == rowNumber-1 && countDiag2(a,'o')==(rowNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n //check on a row\r\n if(countRow(a[i], 'o') == (colNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n //check on a column\r\n if(countCol(a,j,'o') == (rowNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n }\r\n }\r\n //when user obvious to win\r\n for (int i = 0; i<rowNumber; i++){\r\n for (int j = 0; j<colNumber; j++){\r\n //check if on diagnol\r\n if (i == j && countDiag1(a, 'x')== (rowNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n if (i+j == rowNumber-1 && countDiag2(a,'x')==(rowNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n //check on a row\r\n if(countRow(a[i], 'x') == (colNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n //check on a column\r\n if(countCol(a,j,'x') == (rowNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"public boolean canMove2() {\n\t\tGrid<Actor> gr = getGrid(); \n\t\tif (gr == null) {\n\t\t\treturn false; \n\t\t}\n\t\t\n\t\tLocation loc = getLocation(); \n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (!gr.isValid(next)) {\n\t\t\treturn false;\n\t\t}\n\t\tif (!gr.isValid(next2)) {\n\t\t\treturn false;\n\t\t}\n\t\tActor neighbor = gr.get(next2); \n\t\treturn (neighbor == null) || (neighbor instanceof Flower); \n\t}",
"boolean piecesContiguous(Side player) {\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n if (_pieces[i][j].side() == player) {\n boolean[][] traverse = new boolean[8][8];\n return getCount(player) == contiguousHelp(traverse, i,\n j, player);\n }\n }\n }\n\n }",
"private boolean playerWonGameWithDiagonalLine(Player player) {\n char playerSymbol = player.getType();\n if (boardState[0][0] == playerSymbol && boardState[1][1] == playerSymbol \n && boardState[2][2] == playerSymbol) {\n return true; \n } else if (boardState[0][2] == playerSymbol && boardState[1][1] == playerSymbol \n && boardState[2][0] == playerSymbol) {\n return true; \n }\n return false; \n }",
"private boolean checkPlayerOneWin()\n {\n boolean playerOneWin = false;\n \n if( board[0][0] == \"X\" && board[0][1] == \"X\" && board[0][2] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[1][0] == \"X\" && board[1][1] == \"X\" && board[1][2] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[2][0] == \"X\" && board[2][1] == \"X\" && board[2][2] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[0][0] == \"X\" && board[1][0] == \"X\" && board[2][0] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[0][1] == \"X\" && board[1][1] == \"X\" && board[2][1] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[2][0] == \"X\" && board[2][1] == \"X\" && board[2][2] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[0][0] == \"X\" && board[1][1] == \"X\" && board[2][2] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[0][2] == \"X\" && board[1][1] == \"X\" && board[2][0] == \"X\" )\n {\n playerOneWin = true;\n }\n \n return playerOneWin;\n }",
"public static boolean sameCard(Card card1, Card card2){\r\n return (card1.rank == card2.rank && card1.suit == card2.suit);\r\n }",
"public boolean getTwoTogether()\n\t{\n\t\tfor(int i = 0; i < seat.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < seat[i].length; j++)\n\t\t\t{\n\t\t\t\tif(j < seat[i].length)\n\t\t\t\t{\n\t\t\t\t\tif(seat[i][j] == false && seat[i][j+1] == false)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean canSplit() {\r\n if (cards.size() == 2 && cards.get(0).getValue().equals(cards.get(1).getValue())) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public boolean playerTwoWin()\n\t{\n\t\tif( (board[ 1 ] == \"X\") && (board[ 2 ] == \"X\") && (board[ 3 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 1 ] == \"X\") && (board[ 2 ] == \"X\") && (board[ 3 ] == \"X\") )\n\t\t\n\t\telse if( (board[ 4 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 6 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 4 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 6 ] == \"X\") ) \n\t\t\n\t\telse if( (board[ 7 ] == \"X\") && (board[ 8 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 7 ] == \"X\") && (board[ 8 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t\n\t\telse if( (board[ 1 ] == \"X\") && (board[ 4 ] == \"X\") && (board[ 7 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 1 ] == \"X\") && (board[ 4 ] == \"X\") && (board[ 7 ] == \"X\") )\n\t\t\n\t\telse if( (board[ 2 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 8 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 2 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 8 ] == \"X\") )\n\t\t\n\t\telse if( (board[ 3 ] == \"X\") && (board[ 6 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 3 ] == \"X\") && (board[ 6 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t\n\t\telse if( (board[ 1 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t}// end of if( (board[ 1 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t\n\t\telse if( (board[ 7 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 7 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t\n\t\treturn false;\n\t}",
"public boolean isTwoPair() {\n int numbersSame = 0;\n int pairs = 0;\n for (int i = 0; i < dice.length && numbersSame < 3; i++) {\n numbersSame = 0;\n for (int x = 0; x < dice.length; x++) {\n if (dice[i].getFaceValue() == dice[x].getFaceValue()) {\n numbersSame++;\n }\n }\n if (numbersSame == 2) {\n pairs++;\n }\n }\n return (pairs == 4);\n }",
"private boolean checkTwoPairs(Player player) {\n\t\t// first pair\n\t\tcheckPair(player);\n\n\t\t// doesn't qualify for 2 pairs\n\t\tif (!player.isPair()) {\n\t\t\tplayer.setPair(false);\n\t\t\treturn false;\n\t\t}\n\n\t\t// second pair\n\t\tfor (int j = 4; j > 0; j--) {\n\t\t\tif (player.getSevenCardsTempHand().get(j).getRank()\n\t\t\t\t\t.equals(player.getSevenCardsTempHand().get(j - 1).getRank())) {\n\t\t\t\tplayer.setTwoPairs(true);\n\t\t\t\tplayer.setHandRank(HandRank.TWO_PAIRS);\n\n\t\t\t\t// add second pair to the 5 cards hand\n\t\t\t\thand[2] = player.getSevenCardsTempHand().get(j);\n\t\t\t\thand[3] = player.getSevenCardsTempHand().get(j - 1);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j - 1);\n\n\t\t\t\t// add kicker\n\t\t\t\thand[4] = player.getSevenCardsTempHand().get(2);\n\t\t\t\tplayer.setFiveCardsHand(hand);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// add 3 kickers for the single pair found\n\t\thand[2] = player.getSevenCardsTempHand().get(4);\n\t\thand[3] = player.getSevenCardsTempHand().get(3);\n\t\thand[4] = player.getSevenCardsTempHand().get(2);\n\t\tplayer.setFiveCardsHand(hand);\n\n\t\treturn false;\n\t}",
"private boolean onBoard(int x, int y){\n if((x<WIDTH&&y<HEIGHT)){\n if(0<=x&&0<=y){\n return true;\n }\n return false;\n }else{\n return false;\n }\n\t}",
"@Override\n public boolean connected(Station station1, Station station2) {\n if (station1.id() >= links.length || station2.id() >= links.length) {\n return station1.id() == station2.id();\n }\n return links[station1.id()] == links[station2.id()];\n }",
"public boolean checkBoardFull() {\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (grid[i][j].getSymbol() == '-')\n return false;\n }\n }\n return true;\n }",
"private boolean isBoardFull() {\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n if (boardState[i][j] != 'X' && boardState[i][j] != 'O') {\n return false; \n }\n }\n }\n return true; \n }",
"public void checkBoard(){\n\n //check horizontally for a winner\n for(int i = 0; i < 3; i++) {\n if (boardStatus[i][0].equals(boardStatus[i][1]) && boardStatus[i][1].equals(boardStatus[i][2])) {\n if (boardStatus[i][0].equals(\"X\")) {\n winnerResults = playerOne + \" has won the game!\";\n winnerName = playerOne;\n userExists();\n\n break;\n } else {\n winnerResults = playerTwo + \" has won the game!\";\n winnerName = playerTwo;\n userExists();\n\n break;\n\n }\n }\n\n\n }\n\n //check vertically for a winner\n for(int i = 0; i < 3; i++) {\n if (boardStatus[0][i].equals(boardStatus[1][i]) && boardStatus[1][i].equals(boardStatus[2][i])) {\n if (boardStatus[0][i].equals(\"X\")) {\n winnerResults = playerOne + \" has won the game!\";\n winnerName = playerOne;\n userExists();\n\n break;\n } else {\n winnerResults = playerTwo + \" has won the game!\";\n winnerName = playerTwo;\n userExists();\n\n break;\n }\n }\n }\n\n //diagonally\n\n if((boardStatus[0][0].equals(boardStatus[1][1])) && (boardStatus[0][0].equals(boardStatus[2][2]))){\n\n if (boardStatus[0][0].equals(\"X\")) {\n winnerResults = playerOne + \" has won the game!\";\n winnerName = playerOne;\n userExists();\n\n\n }\n else {\n winnerResults = playerTwo + \" has won the game!\";\n winnerName = playerTwo;\n userExists();\n\n\n }\n\n }\n\n //diagonally\n if (boardStatus[0][2].equals(boardStatus[1][1]) && (boardStatus[0][2].equals(boardStatus[2][0]))) {\n\n if (boardStatus[0][2].equals(\"X\")) {\n winnerResults = playerOne + \" has won the game!\";\n winnerName = playerOne;\n userExists();\n\n } else {\n winnerResults = playerTwo + \" has won the game!\";\n winnerName = playerTwo;\n userExists();\n\n }\n }\n\n //If all the locations on the board have been played but no win conditions have been met\n //the game will end without a winner\n if(boardStatus[0][0] != \"a\" && boardStatus[0][1] != \"b\" && boardStatus[0][2] != \"c\" &&\n boardStatus[1][0] != \"d\" && boardStatus[1][1] != \"e\" && boardStatus[1][2] != \"f\" &&\n boardStatus[2][0] != \"g\" && boardStatus[2][1] != \"h\" && boardStatus[2][2] != \"i\"){\n NoWinnerDialog dialog = new NoWinnerDialog();\n dialog.show(getSupportFragmentManager(), \"NoWinner\");\n }\n\n\n\n\n }",
"boolean similarCard(Card c);",
"public static final boolean isTwoPair(final Card card1, final Card card2, final Card card3, final Card card4, final Card card5) throws Exception\r\n {\r\n //get an ordered list of these cards\r\n List<Card> cards = getOrderedList(card1, card2, card3, card4, card5);\r\n \r\n //total number of pairs\r\n int pairTotal = 0;\r\n \r\n //count the number of matches\r\n int count = 0;\r\n \r\n //now make sure the face values match accordingly\r\n for (int index = 1; index < cards.size(); index++)\r\n {\r\n //if the cards match increase the count\r\n if (cards.get(index - 1).hasValue(cards.get(index)))\r\n {\r\n count++;\r\n }\r\n else\r\n {\r\n //if the number of matches is a pair add to total\r\n if (count == PAIR_MATCH)\r\n pairTotal++;\r\n \r\n //reset the count\r\n count = 0;\r\n }\r\n }\r\n \r\n //if the number of matches is a pair add to total\r\n if (count == PAIR_MATCH)\r\n pairTotal++;\r\n \r\n //check if the final count of pairs matches 2\r\n return (pairTotal == 2);\r\n }",
"private boolean winGame() {\n\t\tfor(int i = 0; i < board[0].length; i++) {\n\t\t\tfor(int j = 0; j < board[1].length; j++) {\n\t\t\t\tif(board[i][j] == \"-\") {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean validMoves(AbstractBoard[] boards )\n\t{\n\t\tint x = boards[0].getSize();\n\t\tint y = boards[0].getWidth();\n\t\tint count = 1;\n\t\tint[][] Final = new int[x][y];\n\t\t\n\t\tfor( int i = 0; i < x; i++ )\n\t\t{\n\t\t\tfor( int j = 0; j < y; j++ )\n\t\t\t{\n\t\t\t\tif( i == x - 1 && j == y - 1)\n\t\t\t\t\tFinal[i][j] = -1;\n\t\t\t\telse\n\t\t\t\t\tFinal[i][j] = count++;\n\t\t\t}\n\t\t}\n\t\tAbstractBoard temp = boards[boards.length - 1];\n\t\t\n\t\tfor( int i = 0; i < x; i++ )\n\t\t{\n\t\t\tfor( int j = 0; j < y; j++ )\n\t\t\t{\n\t\t\t\tif( temp.cell(i, j) != Final[i][j] )\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif( boards.length >= 2) {\n\t\t\tint compareX, compareY;\n\t\t\tfor( int i = 0; i < boards.length - 1; i++)\n\t\t\t{\n\t\t\t\tx = boards[i].getLocationX();\n\t\t\t\ty = boards[i].getLocationY();\n\t\t\t\t\n\t\t\t\tcompareX = boards[i + 1].getLocationX();\n\t\t\t\tcompareY = boards[i + 1].getLocationY();\n\t\t\t\t\n\t\t\t\tif( Math.abs( x - compareX ) != 1 && Math.abs( x - compareX ) != 1)\n\t\t\t\t{\n\t\t\t\t\tif( x != compareX || y != compareY )\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private boolean draw(Board board)\n {\n return full(board) && !computerWin(board) && playerWin(board);\n }",
"public boolean checkForVictory() {\n // keep track of whether we have seen any pieces of either color.\n boolean anyWhitePieces = false;\n boolean anyRedPieces = false;\n // iterate through each row\n for (Row row : this.redBoard) {\n // whether we iterate through the red or white board does not matter; they contain the same pieces, just\n // in a different layout\n // iterate through each space in a row\n for (Space space : row) {\n // if there is a piece on this space\n if (space.getPiece() != null) {\n if (space.getPiece().getColor() == Piece.COLOR.RED) {\n // and if it's red, we have now seen at least one red piece\n anyRedPieces = true;\n } else if (space.getPiece().getColor() == Piece.COLOR.WHITE) {\n // and if it's white, we have now seen at least one white piece\n anyWhitePieces = true;\n }\n }\n }\n }\n // if we haven't seen any pieces of a color, then the other player has won\n if (!anyRedPieces) {\n // white player has won\n markGameAsDone(getWhitePlayer().getName() + \" has captured all the pieces.\");\n return true;\n } else if (!anyWhitePieces) {\n // red player has won\n markGameAsDone(getRedPlayer().getName() + \" has captured all the pieces.\");\n return true;\n }\n return false;\n }",
"private boolean isBoardFilled() {\n for (char[] y : board) {\n for (char xy : y) {\n if (xy == 0) {\n return false;\n }\n }\n }\n return true;\n }",
"public boolean validBish (int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {\n\t\t\n\n\t\tif (Math.abs(startRow-endRow)==Math.abs(startColumn-endColumn)) {\n\t\t\tint distanceMovedRows = startRow-endRow;\n\t\t\tint distanceMovedCols =startColumn-endColumn;\n\t\t\tif (distanceMovedRows > 0 && distanceMovedCols < 0) {\n\n\t\t\t\tint x=startRow-1;\n\t\t\t\tint y = startColumn+1;\n\t\t\t\twhile (x > endRow && y < endColumn) { \n\t\t\t\t\tif (board[x][y].getOccupyingPiece() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tx--; y++;\n\t\t\t\t}\n\t\t\t} \n\t\t\tif (distanceMovedRows > 0 && distanceMovedCols > 0) { \n\n\t\t\t\tint x=startRow-1;\n\t\t\t\tint y = startColumn-1;\n\t\t\t\twhile (x > endRow && y > endColumn) {\n\t\t\t\t\tif (board[x][y].getOccupyingPiece() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tx--; y--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (distanceMovedRows < 0 && distanceMovedCols < 0) {\n\n\t\t\t\tint x=startRow+1;\n\t\t\t\tint y = startColumn+1;\n\n\t\t\t\twhile (x < endRow && y < endColumn) {\n\t\t\t\t\tif (board[x][y].getOccupyingPiece() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tx++; y++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (distanceMovedRows < 0 && distanceMovedCols > 0) {\n\n\t\t\t\tint x=startRow+1;\n\t\t\t\tint y = startColumn-1;\n\n\t\t\t\twhile (x < endRow && y > endColumn) {\n\t\t\t\t\tif (board[x][y].getOccupyingPiece() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tx++; y--;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public static boolean isCardinal(Tile tile1, Tile tile2) {\n\t\tif (tile1.getX() == tile2.getX() || tile1.getY() == tile2.getY())\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public boolean canConnectRedstone(ym iba, int i, int j, int k, int dir)\r\n/* 24: */ {\r\n/* 25:31 */ if (dir < 0) {\r\n/* 26:31 */ return false;\r\n/* 27: */ }\r\n/* 28:33 */ IRedPowerConnectable irp = (IRedPowerConnectable)CoreLib.getTileEntity(iba, i, j, k, IRedPowerConnectable.class);\r\n/* 29:36 */ if (irp == null) {\r\n/* 30:36 */ return false;\r\n/* 31: */ }\r\n/* 32:37 */ int s = RedPowerLib.mapLocalToRot(irp.getConnectableMask(), 2);\r\n/* 33:38 */ return (s & 1 << dir) > 0;\r\n/* 34: */ }",
"public boolean equals(Board other) {\n return this.x == other.x && this.o == other.o;\n }",
"public boolean percolates() {\n if (grid.length == 1) {\n return isOpen(1, 1);\n }\n return uf.find(grid.length * grid.length) == uf.find(grid.length * grid.length + 1);\n }",
"public boolean isCheckmate()\n {\n Game g = Game.getInstance();\n\n int sum = 0;\n\n for(Piece[] p1 : g.m_board.m_pieces)\n {\n for(Piece p2 : p1)\n {\n if(p2 != null)\n {\n if(p2.m_color == this.m_color)\n {\n sum += p2.getLegalMoves().size();\n }\n }\n }\n }\n\n if(sum == 0){ return true; } else { return false; }\n }",
"public boolean fitsInBotBoard(int x, int y) {\n if (rotation) { // na vysku\n if (!(x + sizeSelected - 1 < maxN)) {\n return false;\n }\n } else { // na sirku\n if (!(y + sizeSelected - 1 < maxN)) {\n return false;\n }\n }\n\n // skontrolujem ci nebude prekrvat inu lod\n if (rotation) { // na vysku\n for (int i = 0; i < sizeSelected; i++) {\n if (boardBot[x + i][y] == GameObject.Ship) {\n return false;\n }\n }\n } else { // na sirku\n for (int i = 0; i < sizeSelected; i++) {\n if (boardBot[x][y + i] == GameObject.Ship) {\n return false;\n }\n }\n }\n\n // skontrolujem ci sa nebude dotykat inej lode\n if (rotation) { // na vysku\n for (int i = 0; i < sizeSelected; i++) {\n if ((x - 1 >= 0 && boardBot[x + i - 1][y] == GameObject.Ship) ||\n (x - 1 >= 0 && y - 1 >= 0 && boardBot[x + i - 1][y - 1] == GameObject.Ship) ||\n (y - 1 >= 0 && boardBot[x + i][y - 1] == GameObject.Ship) ||\n (x + i + 1 < maxN && y - 1 >= 0 && boardBot[x + i + 1][y - 1] == GameObject.Ship) ||\n (x + i + 1 < maxN && boardBot[x + i + 1][y] == GameObject.Ship) ||\n (x + i + 1 < maxN && y + 1 < maxN && boardBot[x + i + 1][y + 1] == GameObject.Ship) ||\n (y + 1 < maxN && boardBot[x + i][y + 1] == GameObject.Ship) ||\n (x - 1 >= 0 && y + 1 < maxN && boardBot[x + i - 1][y + 1] == GameObject.Ship)) {\n return false;\n }\n }\n } else { // na sirku\n for (int i = 0; i < sizeSelected; i++) {\n if ((x - 1 >= 0 && boardBot[x - 1][y + i] == GameObject.Ship) ||\n (x - 1 >= 0 && y - 1 >= 0 && boardBot[x - 1][y + i - 1] == GameObject.Ship) ||\n (y - 1 >= 0 && boardBot[x][y + i - 1] == GameObject.Ship) ||\n (x + 1 < maxN && y - 1 >= 0 && boardBot[x + 1][y + i - 1] == GameObject.Ship) ||\n (x + 1 < maxN && boardBot[x + 1][y + i] == GameObject.Ship) ||\n (x + 1 < maxN && y + i + 1 < maxN && boardBot[x + 1][y + i + 1] == GameObject.Ship) ||\n (y + i + 1 < maxN && boardBot[x][y + i + 1] == GameObject.Ship) ||\n (x - 1 >= 0 && y + i + 1 < maxN && boardBot[x - 1][y + i + 1] == GameObject.Ship)) {\n return false;\n }\n }\n }\n\n return true;\n }",
"public boolean isValidBoard() {\n\t\t\n\t\tif(mainSlots.size() != NUM_MAIN_SLOTS) {\n\t\t\treturn false;\n\t\t} else if ((redHomeZone != null && redHomeZone.size() != NUM_HOME_SLOTS) ||\n\t\t\t\t(greenHomeZone != null && greenHomeZone.size() != NUM_HOME_SLOTS) ||\n\t\t\t\t(yellowHomeZone != null && yellowHomeZone.size() != NUM_HOME_SLOTS) || \n\t\t\t\t(blueHomeZone != null && blueHomeZone.size() != NUM_HOME_SLOTS)) {\n\t\t\treturn false;\n\t\t} else if ((redEndZone != null && redEndZone.size() != NUM_END_SLOTS) ||\n\t\t\t\t(greenEndZone != null && greenEndZone.size() != NUM_END_SLOTS) || \n\t\t\t\t(yellowEndZone != null && yellowEndZone.size() != NUM_END_SLOTS) || \n\t\t\t\t(blueEndZone != null && blueEndZone.size() != NUM_END_SLOTS)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}",
"public abstract boolean isConnected(N n1, E e, N n2);",
"boolean gameOver() {\n return piecesContiguous(BLACK) || piecesContiguous(WHITE);\n }",
"public boolean isWin() {\n\t\t\n\t\tboolean win = true;\n\t\t\n\t\tfor(int i = 0; i < numTiles - 2; i++) {\n\t\t\twin = win && (boardConfig[i] < boardConfig[i+1]);\n\t\t}\n\t\t\n\t\twin = win && (boardConfig[numTiles - 1] == 0);\n\t\t\n\t\treturn win;\n\t}",
"private boolean computerWin(Board board)\n {\n return check(board, COMPUTER);\n }",
"public void checkCards(){\r\n if (Card1.getSource().equals(Card2.getSource())){\r\n Card1.setEnabled(false); \r\n Card2.setEnabled(false);\r\n Card1.setBackground(new Color(190, 190, 255));\r\n Card2.setBackground(new Color(190, 190, 255));\r\n Card1.setFace(true); \r\n Card2.setFace(true);\r\n if (this.isGameWon()){\r\n \t_s.stopThread();\r\n \tint[] x = _s.getTime();\r\n \tString s = \"\" + x[0] + \":\" + x[1] + \":\" + x[2] + \":\" + x[3];\r\n \tUIManager.put(\"OptionPane.background\",new ColorUIResource(0,255,0));\r\n UIManager.put(\"Panel.background\",new ColorUIResource(250,0,150));\r\n UIManager.put(\"OptionPane.messageFont\", new FontUIResource(new Font( \r\n \"Times New Roman\", Font.BOLD, 18)));\r\n JOptionPane.showMessageDialog(this, \"You win!\\n\"\r\n \t\t+ \"Your time is: \" + s +\"\\n\"\r\n \t\t\t\t+ \"You're (probably) getting better...\", \"\", -1, null);\r\n JOptionPane.showMessageDialog(this, \"Thanks for playing!\\n\"\r\n \t\t+ \"(Rhythm Heaven is a property of Nintendo and Tsunku.)\", \"\", -1, null);\r\n System.exit(0);\r\n }\r\n }\r\n\r\n else{\r\n Card1.setIcon(null); \r\n Card2.setIcon(null);\r\n }\r\n Card1 = null; \r\n Card2 = null;\r\n }",
"public boolean check3DColDiagnol(Cell play) {\n\t\tfor(int col = 0; col < board.length; col++) { // for col\n\t\t\tif(board[0][0][col] == board[1][1][col] && board[1][1][col] == board[2][2][col] && board[2][2][col] == board[3][3][col] && board[3][3][col].equals(play) ||\n\t\t\t\t\tboard[0][3][col] == board[1][2][col] && board[1][2][col] == board[2][1][col] && board[2][1][col] == board[3][0][col] && board[3][0][col].equals(play)){ // for dim & row || dim = #-row\n\t\t\t\t//\t\t\t\tSystem.out.println(\"3D column diagnol win by \"+play.toString()+ \" at col=\" + col);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\n\t}",
"private boolean isFourConnected(Utils.Player player, int x, int y, int row, int col, int count) {\n if (count >= COUNT_CELLS_FOR_WIN) {\n return true;\n }\n\n if (col < 0 || col >= mColsCount || row < 0 || row >= mRowsCount) {\n return false;\n }\n\n int result = 0;\n if (mCells[row][col].getPlayer() == player) {\n result = count + 1;\n }\n\n return isFourConnected(player, x, y, row + y, col + x, result);\n }",
"boolean isWinner() {\n if(checkTopLeftDownDiag('X') || checkTopLeftDownDiag('O')) {\n return true;\n } else if (checkBottomLeftUpDiag('X') || checkBottomLeftUpDiag('O')) {\n return true;\n } else if (checkRows('X') || checkRows('O')){\n return true;\n }\n else if (checkColumns('X') || checkColumns('O')){\n return true;\n }\n\n return false;\n }"
] | [
"0.72183764",
"0.656621",
"0.65658194",
"0.6560246",
"0.65348744",
"0.64936376",
"0.64832336",
"0.63846225",
"0.6354232",
"0.63169086",
"0.63096726",
"0.63095534",
"0.62934774",
"0.62893707",
"0.6246251",
"0.62462217",
"0.6235617",
"0.62315583",
"0.6231146",
"0.6224769",
"0.6222062",
"0.6217458",
"0.62062526",
"0.61550075",
"0.6123617",
"0.61215407",
"0.6104981",
"0.61032826",
"0.6100181",
"0.60931164",
"0.60908294",
"0.6074537",
"0.60736495",
"0.6067973",
"0.6061348",
"0.6056089",
"0.6055133",
"0.60475016",
"0.6045464",
"0.60452986",
"0.60451835",
"0.6032024",
"0.60280544",
"0.6026653",
"0.60257655",
"0.6023105",
"0.60192144",
"0.60177577",
"0.60019654",
"0.59962386",
"0.5993393",
"0.5983657",
"0.59779173",
"0.5967506",
"0.5966042",
"0.5964897",
"0.595591",
"0.59540075",
"0.5953342",
"0.594294",
"0.59397644",
"0.59351504",
"0.59324527",
"0.59295267",
"0.59241694",
"0.59192425",
"0.59138143",
"0.59116304",
"0.5911626",
"0.5908519",
"0.58981025",
"0.5889422",
"0.58811253",
"0.5874229",
"0.5864769",
"0.5856015",
"0.5852573",
"0.58483726",
"0.58405167",
"0.5836421",
"0.5832908",
"0.5832653",
"0.58287716",
"0.582265",
"0.58155036",
"0.58129454",
"0.5811644",
"0.5804735",
"0.580288",
"0.58021647",
"0.5800529",
"0.57958364",
"0.57938737",
"0.5791937",
"0.5790892",
"0.57888085",
"0.5786356",
"0.5785627",
"0.57830685",
"0.57766926"
] | 0.74016845 | 0 |
Get the subversion revision number for the root directory | public static String getRevision() {
return annotation != null ? annotation.revision() : "Unknown";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getCurrentRevision();",
"long currentRevision();",
"public String getRevision() {\n return RevisionUtils.extract(\"$Revision$\");\n }",
"public String getRevision() {\n return RevisionUtils.extract(\"$Revision: 8034 $\");\n }",
"public String getRevision() {\n\t\treturn RevisionUtils.extract(\"$Revision: 1.9 $\");\n\t}",
"@Override\n\tpublic String getRevision() {\n\t\treturn RevisionUtils.extract(\"$Revision$\");\n\t}",
"public String getRevisionNumber()\n {\n return(Util.parseRevisionNumber(revisionNumber));\n }",
"public String getRevisionNumber()\n {\n return (revisionNumber);\n }",
"public long getRevision() {\n\n return revision;\n }",
"private String getRevision() {\r\n Properties p = new Properties();\r\n try{\r\n String toolsdir = System.getProperty(Main.TOOLSDIR);\r\n File sourceProp;\r\n if (toolsdir == null || toolsdir.length() == 0) {\r\n sourceProp = new File(SdkConstants.FN_SOURCE_PROP);\r\n } else {\r\n sourceProp = new File(toolsdir, SdkConstants.FN_SOURCE_PROP);\r\n }\r\n FileInputStream fis = null;\r\n try {\r\n fis = new FileInputStream(sourceProp);\r\n p.load(fis);\r\n } finally {\r\n if (fis != null) {\r\n try {\r\n fis.close();\r\n } catch (IOException ignore) {\r\n }\r\n }\r\n }\r\n\r\n String revision = p.getProperty(PkgProps.PKG_REVISION);\r\n if (revision != null) {\r\n return revision;\r\n }\r\n } catch (FileNotFoundException e) {\r\n // couldn't find the file? don't ping.\r\n } catch (IOException e) {\r\n // couldn't find the file? don't ping.\r\n }\r\n\r\n return \"?\";\r\n }",
"public String getRevisionNumber()\n {\n return(revisionNumber);\n }",
"public int getRevision()\n {\n return encryptionDictionary.getInt( \"R\", DEFAULT_VERSION );\n }",
"public String getRevisionNumber()\n { // begin getRevisionNumber()\n // return string\n return(revisionNumber);\n }",
"public String getRevisionNumber()\n { // begin getRevisionNumber()\n // return string\n return(revisionNumber);\n }",
"public abstract String getRevision();",
"public Integer getRevision()\r\n {\r\n return (m_revision);\r\n }",
"@DISPID(59)\r\n\t// = 0x3b. The runtime will prefer the VTID if present\r\n\t@VTID(64)\r\n\tint revisionID();",
"public String getRevision() {\n return revision;\n }",
"public String getRevisionId() {\n return revisionId;\n }",
"String getWorkfileRevisionString();",
"Object getRev();",
"@DISPID(27)\r\n\t// = 0x1b. The runtime will prefer the VTID if present\r\n\t@VTID(27)\r\n\tint revisionID();",
"public RevisionID getRevision() {\r\n\t\treturn revision;\r\n\t}",
"long getVersionNumber();",
"public String getRevisionReference();",
"public abstract long getRevision(int lineNumber);",
"public String getRevision() {\n\t\treturn null;\r\n\t}",
"public static int getJavaVersion(int subindex) {\n\t\treturn version[subindex];\n\t}",
"public Long getUpgradeSubversion() {\n return this.UpgradeSubversion;\n }",
"public String getRevisionSuffix() {\n\t\tString revision = logEntry.getRevision();\n\t\treturn revision.substring(revision.lastIndexOf(\".\") + 1, revision.length());\n\t}",
"String getModuleVersionNumber();",
"public String getVersionNum();",
"@Override\n\t\tpublic String getRevision() {\n\t\t\treturn null;\n\t\t}",
"@Override\n\t\tpublic String getRevision() {\n\t\t\treturn null;\n\t\t}",
"@Override\r\n\tpublic String getRevision() {\n\t\treturn null;\r\n\t}",
"public String getVersionNumber ();",
"@Nullable\n public ObjectId getRevision() {\n return ObjectIds.copyOrNull(revision);\n }",
"public static String getBuildRevision(String... varargs) {\n\t\t// setting the default value when argument's value is omitted\n\t\tString pmaCoreURL = varargs.length > 0 ? varargs[0] : pmaCoreLiteURL;\n\t\tString url = PMA.join(pmaCoreURL, \"api/json/GetBuildRevision\");\n\t\tString version = null;\n\t\tif (PMA.debug) {\n\t\t\tSystem.out.println(url);\n\t\t}\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tHttpURLConnection con;\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tcon = (HttpsURLConnection) urlResource.openConnection();\n\t\t\t} else {\n\t\t\t\tcon = (HttpURLConnection) urlResource.openConnection();\n\t\t\t}\n\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\tString jsonString = PMA.getJSONAsStringBuffer(con).toString();\n\t\t\tif (PMA.isJSONObject(jsonString)) {\n\t\t\t\tJSONObject jsonResponse = PMA.getJSONObjectResponse(jsonString);\n\t\t\t\tif (jsonResponse.has(\"Code\")) {\n\t\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\t\tPMA.logger.severe(\"getBuildRevision failed : \" + jsonResponse.get(\"Message\"));\n\t\t\t\t\t}\n\t\t\t\t\tthrow new Exception(\"getBuildRevision failed : \" + jsonResponse.get(\"Message\"));\n\t\t\t\t} else if (jsonResponse.has(\"d\")) {\n\t\t\t\t\tversion = jsonResponse.getString(\"d\");\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tversion = jsonString.replaceAll(\"\\\"$|^\\\"\", \"\");\n\t\t\t}\n\t\t\treturn version;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tStringWriter sw = new StringWriter();\n\t\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\t\tPMA.logger.severe(sw.toString());\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Revision count for the resource. This count is set to 1 on creation and is incremented every time it is updated.\")\n\n public Integer getRevision() {\n return revision;\n }",
"public String getBranchPrefix() {\n\t\tString revisionNumber = logEntry.getRevision();\n\t\tint lastDotRev = revisionNumber.lastIndexOf(\".\");\n\t\tif (lastDotRev < 0) {\n\t\t\tVersionTreePlugin.log(IStatus.ERROR, \"Malformed revision: \"+revisionNumber);\n\t\t\treturn null;\n\t\t}\n\n\t\tString branchNumber = revisionNumber.substring(0, lastDotRev);\n\t\tint lastDotBr = branchNumber.lastIndexOf(\".\");\n\t\tif (lastDotBr > 0) {\n\t\t\tString branchPrefix = branchNumber.substring(0, lastDotBr) +\n\t\t\t\t\t\".0\" + branchNumber.substring(lastDotBr);\n\t\t\treturn branchPrefix;\n\t\t}\n\t\treturn branchNumber;\n\t}",
"public int getFileVersion() {\n\n return fileVersion;\n\n }",
"long recalculateRevision();",
"@Test\n public void revNum() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n builder.write(\"Current revision #\");\n\n // Insert a REVNUM field, which displays the document's current revision number property.\n FieldRevNum field = (FieldRevNum) builder.insertField(FieldType.FIELD_REVISION_NUM, true);\n\n Assert.assertEquals(\" REVNUM \", field.getFieldCode());\n Assert.assertEquals(\"1\", field.getResult());\n Assert.assertEquals(1, doc.getBuiltInDocumentProperties().getRevisionNumber());\n\n // This property counts how many times a document has been saved in Microsoft Word,\n // and is unrelated to tracked revisions. We can find it by right clicking the document in Windows Explorer\n // via Properties -> Details. We can update this property manually.\n doc.getBuiltInDocumentProperties().setRevisionNumber(doc.getBuiltInDocumentProperties().getRevisionNumber() + 1)/*Property++*/;\n Assert.assertEquals(\"1\", field.getResult()); //ExSkip\n field.update();\n\n Assert.assertEquals(\"2\", field.getResult());\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n Assert.assertEquals(2, doc.getBuiltInDocumentProperties().getRevisionNumber());\n\n TestUtil.verifyField(FieldType.FIELD_REVISION_NUM, \" REVNUM \", \"2\", doc.getRange().getFields().get(0));\n }",
"public int getVersion()\n {\n return info.getVersion().intValueExact();\n }",
"int getCurrentVersion();",
"public int getFileVersion() {\r\n\t\treturn this.fileVersion;\r\n\t}",
"public VCSFileProxy getFileRevision(VCSFileProxy base, String revision, String pegRevision) throws IOException {\n try {\n SvnClientFactory.checkClientAvailable(new Context(base));\n } catch (SVNClientException e) {\n return null;\n }\n if (Setup.REVISION_BASE.equals(revision)) {\n return getBaseRevisionFile(base);\n } else if (Setup.REVISION_PRISTINE.equals(revision)) {\n // should not be used, will not work with 1.7\n String name = base.getName();\n VCSFileProxy svnDir = getMetadataDir(base.getParentFile());\n if (svnDir != null) {\n VCSFileProxy text_base = VCSFileProxy.createFileProxy(svnDir, \"text-base\"); // NOI18N\n VCSFileProxy pristine = VCSFileProxy.createFileProxy(text_base, name + \".svn-base\"); // NOI18N\n if (pristine.isFile()) {\n return pristine;\n } else {\n return null;\n }\n } else {\n return null;\n }\n } else if (Setup.REVISION_CURRENT.equals(revision)) {\n return base;\n } else {\n SVNRevision svnrevision = SvnUtils.toSvnRevision(revision);\n try {\n SvnClient client = Subversion.getInstance().getClient(base);\n FileStatusCache cache = Subversion.getInstance().getStatusCache();\n InputStream in = null;\n try {\n boolean gotContent = false;\n if ((cache.getStatus(base).getStatus() & FileInformation.STATUS_VERSIONED) != 0) {\n try {\n in = client.getContent(base, svnrevision);\n gotContent = true;\n } catch (SVNClientException e) {\n if(svnrevision.getKind() != SVNRevision.Kind.number \n || !(SvnClientExceptionHandler.isFileNotFoundInRevision(e.getMessage()) || SvnClientExceptionHandler.isPathNotFound(e.getMessage()))) {\n throw e;\n }\n }\n }\n if (!gotContent) {\n if (Setup.REVISION_BASE.equals(pegRevision)) {\n try {\n // we can't contact server with BASE being peg revision\n ISVNStatus st = SvnUtils.getSingleStatus(client, base);\n if (st != null && st.getRevision() != null) {\n pegRevision = st.getRevision().toString();\n } else {\n pegRevision = SVNRevision.HEAD.toString();\n }\n } catch (SVNClientException e) {}\n }\n SVNUrl url = SvnUtils.getRepositoryUrl(base);\n if (url != null) {\n in = getInputStream(client, url, revision, pegRevision);\n } else {\n in = new ByteArrayInputStream(org.openide.util.NbBundle.getMessage(VersionsCache.class, \"MSG_UnknownURL\").getBytes(\"UTF-8\")); // NOI18N\n } \n }\n } catch (SVNClientException e) {\n if(SvnClientExceptionHandler.isFileNotFoundInRevision(e.getMessage()) ||\n SvnClientExceptionHandler.isPathNotFound(e.getMessage())) {\n in = new ByteArrayInputStream(new byte[] {});\n } else {\n throw e;\n }\n }\n return VCSFileProxy.createFileProxy(createContent(base.getName(), in));\n } catch (SVNClientException ex) {\n throw new IOException(\"Can not load: \" + base.getPath() + \" in revision: \" + revision, ex); //NOI18N\n }\n }\n }",
"public abstract double getVersionNumber();",
"public long getVersionNo() {\r\n return versionNo;\r\n }",
"@Override\n public String getCurrentRevision(String id) {\n return \"\\\"\" + documentService.getCurrentRevision(id) + \"\\\"\";\n }",
"public StrColumn getRevisionId() {\n return delegate.getColumn(\"revision_id\", DelegatingStrColumn::new);\n }",
"protected long getRevisionIdFromResponse(JsonNode response) throws JsonProcessingException {\n\t\tif(response == null) {\n\t\t\tthrow new MalformedResponseException(\"API response is null\");\n\t\t}\n\t\tJsonNode entity = null;\n\t\tif(response.has(\"entity\")) {\n\t\t\tentity = response.path(\"entity\");\n\t\t} else if(response.has(\"pageinfo\")) {\n\t\t\tentity = response.path(\"pageinfo\");\n\t\t} \n\t\tif(entity != null && entity.has(\"lastrevid\")) {\n\t\t\treturn entity.path(\"lastrevid\").asLong();\n\t\t}\n\t\tthrow new MalformedResponseException(\"The last revision id could not be found in API response\");\n\t}",
"private String getPreviousRevision(final Project project) {\n List<Measure> measures = getPreviousMeasures(project, CoreMetrics.SCM_REVISION, CoreMetrics.SCM_LAST_COMMIT_DATE);\n if (measures.size()==2) {\n for (Measure measure : measures) {\n if (measure.getMetric().equals(CoreMetrics.SCM_REVISION)) {\n return measure.getData();\n }\n }\n }\n return null;\n }",
"public static String getVersion()\n {\n return \"$Id$\";\n }",
"com.microsoft.schemas.office.x2006.digsig.STVersion xgetApplicationVersion();",
"public static String getVersion() {\n\t\t String data = \"\";\n\t\ttry {\n\t\t File myObj = new File(rootdir+\"/version.txt\");\n\t Scanner myReader = new Scanner(myObj);\n\t while (myReader.hasNextLine()) {\n\t data = myReader.nextLine();\n\t break;\n\t }\n\t myReader.close();\n\t return data;\n\t } catch (FileNotFoundException e) {\n\t \tSystem.out.println(\"An error occurred.\");\n\t \te.printStackTrace();\n\t }\n\t\treturn null;\n\t}",
"public String versionNumber (){\r\n\t\t\treturn _versionNumber;\r\n\t\t}",
"public static String getVersion() {\n\t\treturn \"0.9.4-SNAPSHOT\";\n\t}",
"public CachetVersion getVersion() {\n JsonNode rootNode = get(\"version\");\n CachetVersion version = CachetVersion.parseRootNode(rootNode);\n\nSystem.out.println(\"SSDEDBUG: version = \" + version.getVersion() + \" (latest=\" + version.isLatest() + \")\");\n return version;\n }",
"public static String revNum2branchNum(String revNum) {\r\n int[] n = RevisionNumber.parse(revNum);\r\n return RevisionNumber.getSubNumber(n, 0, n.length - 1);\r\n }",
"public VCSFileProxy getFileRevision(VCSFileProxy base, String revision) throws IOException {\n return getFileRevision(base, revision, Setup.REVISION_BASE);\n }",
"Integer getVersion();",
"public int getVersionId() {\r\n\t\tif (versionId != null) {\r\n\t\t\treturn versionId;\r\n\t\t}\r\n\t\t\r\n\t\tcreateVersion();\r\n\t\treturn versionId;\r\n\t}",
"public int[] getParsedRevision() {\n\t\tif (parsedRevision == null) {\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(logEntry.getRevision(), \".\"); //$NON-NLS-1$\n\t\t\tparsedRevision = new int[tokenizer.countTokens()];\n\t\t\tint i = 0;\n\t\t\twhile (tokenizer.hasMoreTokens()) {\n\t\t\t\tString next = tokenizer.nextToken();\n\t\t\t\tparsedRevision[i] = Integer.parseInt(next);\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\treturn parsedRevision;\n\t}",
"long getVersion();",
"long getVersion();",
"long getVersion();",
"long getVersion();",
"public int getVersionNumber() {\n return versionNumber;\n }",
"public RevisionDTO getRevision(Integer revision);",
"public Integer getVersionNo() {\r\n\t\treturn versionNo;\r\n\t}",
"public java.lang.String getRevStat() {\n return revStat;\n }",
"String buildVersion();",
"public String getMicroversionId() {\n return microversionId;\n }",
"public int getLibVersionNumber();",
"private String getBranchForRevision(SVNLogEntry logEntry) {\n @SuppressWarnings(\"unchecked\")\n Set<String> paths = logEntry.getChangedPaths().keySet();\n // Finds the common path among all those paths\n String commonPath = null;\n for (String path : paths) {\n if (commonPath == null) {\n commonPath = path;\n } else {\n int diff = StringUtils.indexOfDifference(commonPath, path);\n commonPath = StringUtils.left(commonPath, diff);\n }\n }\n // Gets the branch for this path\n if (commonPath != null) {\n return extractBranch(commonPath);\n } else {\n // No path in the revision: no branch!\n return null;\n }\n }",
"private Integer getNextRevisionVersion(Integer curVersion) {\n\n if (curVersion == null) {\n return IntDef.INT_ONE;\n }\n return curVersion + IntDef.INT_ONE;\n }",
"Long getVersion();",
"@Test\n\tpublic void getIdWithRevision() throws Exception {\n\t\tRepository repo = new FileRepository(testRepo);\n\t\tRevCommit commit = add(\"d1/f1.txt\", \"content\");\n\t\tassertNull(TreeUtils.getId(repo, Constants.MASTER, \"d2/f1.txt\"));\n\t\tassertNull(TreeUtils.getId(repo, Constants.MASTER, \"d1/f1.txt\"));\n\t\tObjectId treeId = TreeUtils.getId(repo, Constants.MASTER, \"d1\");\n\t\tassertNotNull(treeId);\n\t\tassertFalse(treeId.equals(commit.getTree()));\n\t\tassertNull(BlobUtils.getId(repo, commit, \"d1\"));\n\t\tassertFalse(treeId.equals(BlobUtils.getId(repo, commit, \"d1/f1.txt\")));\n\t}",
"public Long getVersionId() {\n return versionId;\n }",
"public long getVersion(){\n return localVersion;\n }",
"public String getVersionNumber() {\n return versionNumber;\n }",
"public FileVersion(int owner, int version, int revision) {\n this.owner = owner;\n this.version = version;\n this.revision = revision;\n }",
"private static String getCommitId(RevCommit m )\n\t{\n\t\treturn m.getId().abbreviate(10).name();\n\t}",
"@Override\r\n\tpublic BundleRevision getRevision() {\n\t\treturn null;\r\n\t}",
"public int getVersionIndex();",
"public static String getVersion()\n\t{\n\t\treturn (\"$Revision: 1.3 $\") ;\n\t}",
"public java.lang.String getLast_version() {\n return last_version;\n }",
"String getRootId();",
"String getRootId();",
"public static Version getVersion() {\r\n\t\tif (VERSION == null) {\r\n\t\t\tfinal Properties props = new Properties();\r\n\t\t\tint[] vs = { 0, 0, 0 };\r\n\t\t\tboolean stable = false;\r\n\t\t\ttry {\r\n\t\t\t\tprops.load(GoogleCalXPlugin.class.getResourceAsStream(\"/META-INF/maven/de.engehausen/googlecalx/pom.properties\"));\r\n\t\t\t\tfinal String pomVersion = props.getProperty(\"version\");\r\n\t\t\t\tstable = !pomVersion.contains(\"SNAPSHOT\");\r\n\t\t\t\tfinal StringTokenizer tok = new StringTokenizer(pomVersion, \".\");\r\n\t\t\t\tint i = 0;\r\n\t\t\t\twhile (i < 3 && tok.hasMoreTokens()) {\r\n\t\t\t\t\tfinal String str = tok.nextToken();\r\n\t\t\t\t\tfinal int cut = str.indexOf('-');\r\n\t\t\t\t\tif (cut > 0) {\r\n\t\t\t\t\t\tvs[i++] = Integer.parseInt(str.substring(0, cut));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvs[i++] = Integer.parseInt(str);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tstable = false;\r\n\t\t\t}\r\n\t\t\tVERSION = new Version(vs[0], vs[1], vs[2], stable);\r\n\t\t}\r\n\t\treturn VERSION;\r\n\t}",
"public String getSvnUrl() {\r\n return this.svnUrl;\r\n }",
"public String getVersionId() {\n return versionId;\n }",
"public java.lang.String getVersionNumber() {\n return versionNumber;\n }",
"String getLatestVersion(long padId);",
"public String getBuildVersion() {\n try {\n Properties versionFileProperties = new Properties();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(\"version.properties\");\n if (inputStream != null) {\n versionFileProperties.load(inputStream);\n return versionFileProperties.getProperty(\"version\", \"\") + \" \" + versionFileProperties.getProperty(\"timestamp\", \"\");\n }\n } catch (IOException e) {\n Logger.getLogger(OnStartup.class.getName()).log(Level.SEVERE, null, e);\n }\n return \"\";\n }",
"public long latestVersion(String namespace, String id) throws StageException;",
"public String getVersion()\n {\n return ver;\n }",
"public static String getVersion()\n\t{\n\t\treturn (\"$Revision: 1.2 $,$Date: 2006/10/26 01:35:10 $\") ;\n\t}",
"public static String getVersion()\n\t{\n\t\treturn \"$Revision: 1.2 $,$Date: 2006/11/14 06:09:22 $\";\n\t}"
] | [
"0.6944766",
"0.6814393",
"0.6576798",
"0.6461561",
"0.64478916",
"0.6428784",
"0.6426639",
"0.6380765",
"0.63756466",
"0.6333935",
"0.63242924",
"0.6320922",
"0.6308415",
"0.6308415",
"0.6293745",
"0.6272445",
"0.6271427",
"0.6252914",
"0.62282944",
"0.6208923",
"0.6129775",
"0.61293286",
"0.6128395",
"0.609892",
"0.60758567",
"0.6065164",
"0.5952841",
"0.5831819",
"0.58217466",
"0.580818",
"0.5800801",
"0.57670087",
"0.5764079",
"0.5764079",
"0.5728793",
"0.5689809",
"0.5661195",
"0.56542015",
"0.5621627",
"0.5618079",
"0.5576404",
"0.55605745",
"0.55332285",
"0.5530635",
"0.5530365",
"0.55291414",
"0.5489335",
"0.5477802",
"0.54612285",
"0.5440999",
"0.54358864",
"0.54212725",
"0.5398173",
"0.53898966",
"0.5365043",
"0.5360258",
"0.53581387",
"0.5349129",
"0.5347063",
"0.5342176",
"0.5322386",
"0.531734",
"0.5311595",
"0.5306463",
"0.5294106",
"0.5294106",
"0.5294106",
"0.5294106",
"0.5282012",
"0.5278992",
"0.52632225",
"0.52611953",
"0.52598715",
"0.5250786",
"0.52389866",
"0.5224196",
"0.5220158",
"0.5216708",
"0.5210042",
"0.52096915",
"0.51948935",
"0.51842797",
"0.5183165",
"0.5182898",
"0.51796937",
"0.517864",
"0.5174034",
"0.51626873",
"0.51567984",
"0.51567984",
"0.51398546",
"0.5122671",
"0.51168466",
"0.51047117",
"0.51046866",
"0.5094125",
"0.5083276",
"0.50765955",
"0.50724673",
"0.5069292"
] | 0.6025447 | 26 |
The date that the code was compiled. | public static String getDate() {
return annotation != null ? annotation.date() : "Unknown";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static final Date getBuildDate() { return buildDate; }",
"public static final Date getBuildDate() { return buildDate; }",
"public static String getBuildDate() {\r\n return getJarInfo(\"BuildDate\");\r\n }",
"public static String getBuildDate() {\n return mBuildDate;\n }",
"public Instant getBuildDate() {\r\n\t\treturn buildDate;\r\n\t}",
"public String getBuildTime() {\n \t\treturn buildTime;\n \t}",
"public static String getDate() {\n return getDate(System.currentTimeMillis());\n }",
"public final int getBuildTime()\n{\n\treturn _buildTime;\n}",
"private static String getDate() {\n return new SimpleDateFormat(\"yyyyMMddHHmmss\").format\n (new Date(System.currentTimeMillis()));\n }",
"public String getDate() {\n\t\treturn logInfoSplit[0] + \"_\" + logInfoSplit[1];\n\t}",
"public long getDate() {\n return date_;\n }",
"public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}",
"public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}",
"public long getDate() {\n return date_;\n }",
"public long getDate() {\n\t\treturn date;\n\t}",
"public long getDate() {\n\t\treturn date;\n\t}",
"public String Get_date() \n {\n \n return date;\n }",
"java.lang.String getDate();",
"public long getDate() {\n return date;\n }",
"public String getDate()\n\t\t{\n\t\t\treturn date;\n\t\t}",
"public static String getCurrentDate()\n\t{\n\t\treturn getDate(new Date());\n\t}",
"public String getVersion()\n\t{\n\t\treturn \"$Date$\";\n\t}",
"public long getDate() {\n return date;\n }",
"public Date getCtDate() {\n return ctDate;\n }",
"public String getDate() {\r\n\t\treturn date;\r\n\t}",
"public String getDate() {\n\t\treturn date;\n\t}",
"public String getDate() {\n\t\treturn date;\n\t}",
"String getDate();",
"String getDate();",
"public String getDate()\n {\n return day + \"/\" + month + \"/\" + year;\n }",
"public Date getExecutionDate()\n {\n return executionDate;\n }",
"private static String getDate()\n\t{\n\t\tString dateString = null;\n\t\tDate sysDate = new Date( System.currentTimeMillis() );\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yy HH:mm:ss\");\n\t\tdateString = sdf.format(sysDate);\n\t\treturn dateString;\n\t}",
"final public synchronized Date getDate() {\n return new Date(crtime) ;\n }",
"public String getDate() {\r\n return date;\r\n }",
"public static String getBuildDateMF() {\n return getBuildDateMF(getJarPathFromClassPath(getAppJarName()));\n }",
"public Date getCateCreated() {\n return cateCreated;\n }",
"public static Date date() {\n GregorianCalendar cal = new GregorianCalendar();\n return cal.getTime();\n }",
"public String getDate() {\n return date;\n }",
"@SimpleProperty(description = \"iSENSE Project Creation Date\", \n category = PropertyCategory.BEHAVIOR)\n public String ProjectDateCreated() {\n if(this.project == null || this.fields == null) {\n Log.e(\"iSENSE\", \"Couldn't get project information!\");\n return \"DNE\";\n }\n return project.timecreated;\n }",
"String getSourceUsageDateTime();",
"private String getDate()\r\n\t{\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\treturn sdf.format(cal.getTime());\r\n\t}",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n return date;\n }",
"public int getDate() {\n\t\treturn date;\n\t}",
"@Deprecated\n\tpublic static String getBuildDate() {\n\t\treturn JacobReleaseInfo.getBuildDate();\n\t}",
"protected final static String getDateStamp() {\n\n\t\treturn\n\n\t\tnew SimpleDateFormat(\"MMM d, yyyy h:mm:ss a zzz\").format(new Date());\n\n\t}",
"public int getDate() {\n return date ;\n }",
"public Date getDateCreated() {\r\n\t\t\r\n\t\t\tDate date= new Date(System.currentTimeMillis());\r\n\t\treturn date;\r\n\t}",
"public java.lang.CharSequence getSRCCOMMITDTUTC() {\n return SRC_COMMIT_DT_UTC;\n }",
"public java.lang.CharSequence getSRCCOMMITDTUTC() {\n return SRC_COMMIT_DT_UTC;\n }",
"public java.lang.CharSequence getSRCCOMMITDTUTC() {\n return SRC_COMMIT_DT_UTC;\n }",
"public Date getCurrentDate() {\n\t\treturn new Date();\n\t}",
"public String getDate() {\t\n\t\treturn mDate;\n\t}",
"public int getDate() {\n return date;\n }",
"public int getDate() {\n return date;\n }",
"public int MagicDate(){\n return month = day = year = 1;\n \n }",
"public long getDate()\r\n/* 204: */ {\r\n/* 205:309 */ return getFirstDate(\"Date\");\r\n/* 206: */ }",
"public java.lang.CharSequence getSRCCOMMITDTUTC() {\n return SRC_COMMIT_DT_UTC;\n }",
"public java.lang.CharSequence getSRCCOMMITDTUTC() {\n return SRC_COMMIT_DT_UTC;\n }",
"public java.lang.CharSequence getSRCCOMMITDTUTC() {\n return SRC_COMMIT_DT_UTC;\n }",
"public void Print_date()\n {\n \n System.out.println(\"Date: \" + date);\n }",
"public String getDate(){\n\t\treturn toString();\n\t}",
"public java.lang.String getDate() {\n return date;\n }",
"public String getDate() {\n\t\treturn this.mDate;\n\t}",
"public String getProjectDate()\n\t{\n\t\treturn m_projectDate;\n\t}",
"public static Date now()\r\n\t{\r\n\t\treturn new Date(System.currentTimeMillis());\r\n\t}",
"public Date date (){\r\n\t\t\treturn _date;\r\n\t\t}",
"public Date getCreationDate() {\n return m_module.getConfiguration().getCreationDate();\n }",
"public Date getdate() {\n\t\treturn new Date(date.getTime());\n\t}",
"public static Date getNowUtilDate()\n {\n return new Date();\n }",
"public String getDate(){\n\t\t\n\t\treturn this.date;\n\t}",
"public Date getDate() {\n\t\treturn date_;\n\t}",
"public String getCurrentDate() {\n return currentDate;\n }",
"public String getSystemDate() {\n\t\tDate date = new Date();\n\t\treturn date.toString();\n\t}",
"public String getdate() {\n\t\treturn date;\n\t}",
"public Date mo6949c() {\n try {\n Attribute attribute = this.f4352b.getSignedAttributes().get(CMSAttributes.signingTime);\n if (attribute != null) {\n return ASN1UTCTime.getInstance(attribute.getAttrValues().getObjectAt(0)).getDate();\n }\n return null;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"public String getDate() {\r\n\t\treturn this.date;\r\n\t}",
"@DISPID(15)\r\n\t// = 0xf. The runtime will prefer the VTID if present\r\n\t@VTID(21)\r\n\tjava.util.Date executionDateTime();",
"public Date getRunDate() {\n return runDate;\n }",
"public static String getCurrentDate() {\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate dateobj = new Date();\n\t\treturn df.format(dateobj);\n\t}",
"public String getDate() {\n\t\treturn this.date;\n\t}",
"public Date date() {\r\n\t\treturn date;\r\n\t}",
"public long getTime() {\n\t\treturn date.getTime();\n }",
"public String getDate() {\n\t\treturn mDate;\n\t}",
"public Date getCreDate() {\n return creDate;\n }",
"public static Date getCurrentDate() {\n return new Date();\n }",
"public Date getDateExecution() {\r\n return dateExecution;\r\n }",
"long getDate();",
"public Date date()\n\t{\n\t\treturn this.date;\n\t}",
"public String getCurrentDate() {\n return createdDate;\n }",
"public Date getDate()\n\t{\n\t\treturn date;\n\t}",
"final public long getDateTime() {\n return crtime ;\n }",
"public String getDateOfRelease() {\n return dateOfRelease;\n }",
"public Date getCssj() {\n return cssj;\n }",
"@NotNull\r\n public String getDate() {\r\n return date;\r\n }",
"public java.util.Date getDateInst(){\r\n return this.dateInst;\r\n }",
"public String getDate() {\n return this.date;\n }"
] | [
"0.75056165",
"0.75056165",
"0.747529",
"0.7317495",
"0.71982133",
"0.7096684",
"0.70921504",
"0.69865775",
"0.685602",
"0.6804749",
"0.6791724",
"0.66847694",
"0.66847694",
"0.6681836",
"0.66780114",
"0.66780114",
"0.66607565",
"0.6632672",
"0.6615517",
"0.66032624",
"0.6587476",
"0.6582011",
"0.6572411",
"0.6565931",
"0.6557378",
"0.65523374",
"0.65523374",
"0.6518209",
"0.6518209",
"0.65076476",
"0.64935684",
"0.64703625",
"0.64692736",
"0.64611804",
"0.6460851",
"0.6448714",
"0.6443215",
"0.6424316",
"0.64109266",
"0.64011925",
"0.63985157",
"0.63919866",
"0.63919866",
"0.63919866",
"0.63919866",
"0.63919866",
"0.63842577",
"0.63802236",
"0.6372875",
"0.6361838",
"0.6356624",
"0.63497",
"0.63497",
"0.63497",
"0.63485307",
"0.63287234",
"0.6326202",
"0.6326202",
"0.6325165",
"0.6324587",
"0.6319783",
"0.6319783",
"0.6319783",
"0.63179594",
"0.6312067",
"0.63102514",
"0.63075364",
"0.63030344",
"0.6290181",
"0.62859",
"0.62856567",
"0.6284703",
"0.62755024",
"0.62651837",
"0.6252923",
"0.6240458",
"0.62392044",
"0.6236422",
"0.623601",
"0.623558",
"0.62209207",
"0.62197155",
"0.6217476",
"0.62161404",
"0.6208724",
"0.62018126",
"0.6199982",
"0.61994475",
"0.6198083",
"0.6194826",
"0.61932683",
"0.61869335",
"0.61806357",
"0.61802155",
"0.6158103",
"0.6155008",
"0.61542827",
"0.6144034",
"0.6136818",
"0.6129263"
] | 0.64553374 | 35 |
The user that compiled the code. | public static String getUser() {
return annotation != null ? annotation.user() : "Unknown";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getUser();",
"@DISPID(5)\r\n\t// = 0x5. The runtime will prefer the VTID if present\r\n\t@VTID(9)\r\n\tjava.lang.String executionUser();",
"String getUser();",
"String getUser();",
"public String getUser() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"public static String getUser() {\r\n return user;\r\n }",
"public static String getUserForCurrentThread() {\r\n return userPerThread.get();\r\n }",
"public static String getUser() {\n return user;\n }",
"public static String getCurrentUser() {\n\t\treturn System.getProperty(\"user.name\");\n\t}",
"public String getCtUser() {\n return ctUser;\n }",
"public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}",
"public String getUser() {\r\n\t\treturn user;\r\n\t}",
"public String getUser() {\r\n\t\treturn user;\r\n\t}",
"public String getUser() {\n\t\treturn user;\n\t}",
"synchronized public String getUser()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getUserID();\n\t\t\t\n\t\treturn null;\n\t}",
"public String getUserCode() {\n return userCode;\n }",
"public java.lang.String getUser() {\n return user;\n }",
"private String whoAmI()\n {\n StringBuffer sb = new StringBuffer();\n sb.append(Thread.currentThread().toString());\n sb.append(\"@\");\n sb.append(Integer.toHexString(hashCode()));\n return sb.toString();\n }",
"public String getUser() {\n\t\t\treturn user;\n\t\t}",
"String whoAmI();",
"public String getUser() {\r\n return user;\r\n }",
"public String getUser() {\r\n\t\treturn _userName;\r\n\t}",
"static String getUserName() {\n return System.getProperty(\"user.name\");\n }",
"public String getUserCommand();",
"public final String mo69547a() {\n return \"user\";\n }",
"public String getUser() {\n return user;\n }",
"public String getUser() {\n return user;\n }",
"public String getUser() {\n return user;\n }",
"public String getInputUser() {\n return inputUser;\n }",
"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 }",
"private String getCurrentUserId() {\n\t\tUser currentUser = UserDirectoryService.getCurrentUser();\n \tString currentUserId = currentUser.getId();\n\t\treturn currentUserId;\n\t}",
"public final String getUser() {\n return username;\n }",
"public abstract String getUser();",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"String getUserUsername();",
"public String getUser(){\n \treturn user;\n }",
"public java.lang.String getUserCreated() {\n\t\treturn _tempNoTiceShipMessage.getUserCreated();\n\t}",
"public static String getUserDisplayName() {\r\n return getUsername();\r\n }",
"@Override\n\tpublic long getUserId() {\n\t\treturn _scienceApp.getUserId();\n\t}",
"@java.lang.Override\n public java.lang.String getUser() {\n java.lang.Object ref = user_;\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 user_ = s;\n return s;\n }\n }",
"public String getUser() {\n if(user == null)\n return \"\"; \n return user;\n }",
"public static String getOsUserName() {\n\n return System.getProperty(\"user.name\");\n }",
"public java.lang.String getUser() {\n java.lang.Object ref = user_;\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 user_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public static String getBiblioUser() {\n\t\treturn \"user\";\n\t}",
"public String getUser() {\n\treturn strUser;\n }",
"String getUserID();",
"public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}",
"public String getUser() {\n return this.user;\n }",
"public String getcCjuser() {\n return cCjuser;\n }",
"public String getcCjuser() {\n return cCjuser;\n }",
"public String getcCjuser() {\n return cCjuser;\n }",
"@Override\n\tpublic String whoami() {\n\t\treturn \"개발자\";\n\t}",
"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 synchronized static String getRew3UserId() {\n return \"userId\";\n }",
"private String getUser(String name) {\n\t\treturn null;\n\t}",
"public static String getBuiltBy() {\r\n return getJarInfo(\"Built-By\");\r\n }",
"private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}",
"public String getName() {\n return user.getName();\n }",
"public static String getLoggedUser() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\treturn auth.getName();\n\t}",
"protected String getUserCode(HttpServletRequest httpRequest) {\n\t\treturn (String) httpRequest.getAttribute(PARAM_KEY_UID);\n\t}",
"protected int getCurrentUserId() {\n return mCarUserManagerHelper.getCurrentProcessUserId();\n }",
"public String getLoggedInUser() {\n\t\treturn null;\r\n\t}",
"public String getUserSciper() {\n String sciper = \"\";\n try {\n sciper = fAuth.getCurrentUser().getDisplayName();\n } catch (NullPointerException e) {\n e.printStackTrace();\n Toast.makeText(this, R.string.toast_no_connection, Toast.LENGTH_SHORT)\n .show();\n return \"\";\n }\n return sciper;\n }",
"public java.lang.String getUser_code_descr() {\n return user_code_descr;\n }",
"public java.lang.String getUserID() {\r\n return localUserID;\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getCallingUser();",
"public String getUserNum() {\n return userNum;\n }",
"public String getUserNum() {\n return userNum;\n }",
"public String getUserNum() {\n return userNum;\n }",
"public String getUserNum() {\n return userNum;\n }",
"private long getUserTime() {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadUserTime() : 0L;\n }",
"@NonNull\n public String getUserIdentity() {\n if (mIkeTunConnParams == null) return mUserIdentity;\n\n final IkeSessionParams ikeSessionParams = mIkeTunConnParams.getIkeSessionParams();\n return getUserIdentityFromIkeSession(ikeSessionParams);\n }",
"public String getUserRealName() {\r\n return userRealName;\r\n }",
"public Object userName() {\n return this.userName;\n }",
"public String getEngineUserId()\n {\n return engineUserId;\n }",
"public String getCurrentUserName() {\n\t\treturn currentUser.getName();\n\t}",
"public String getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();"
] | [
"0.6949656",
"0.6701541",
"0.6692929",
"0.6692929",
"0.646543",
"0.64520335",
"0.6440567",
"0.6397128",
"0.63912004",
"0.63865596",
"0.6374456",
"0.63334095",
"0.63334095",
"0.6310631",
"0.6296632",
"0.62929124",
"0.62754434",
"0.626349",
"0.6252351",
"0.62427616",
"0.6229527",
"0.6221782",
"0.6211702",
"0.61893535",
"0.6156369",
"0.61219835",
"0.61219835",
"0.61219835",
"0.6104097",
"0.61034447",
"0.61034447",
"0.61034447",
"0.60760075",
"0.6054738",
"0.6034433",
"0.603243",
"0.603243",
"0.603243",
"0.60229605",
"0.60160553",
"0.5990621",
"0.59780216",
"0.59766316",
"0.5976098",
"0.597553",
"0.5959697",
"0.59499764",
"0.59480655",
"0.5927644",
"0.5924209",
"0.5920239",
"0.59009075",
"0.5880937",
"0.5880937",
"0.5880937",
"0.58799124",
"0.5875875",
"0.5875875",
"0.5875875",
"0.5843215",
"0.5834314",
"0.58321935",
"0.58226395",
"0.5820002",
"0.5814727",
"0.5811849",
"0.5808259",
"0.5798286",
"0.5795969",
"0.57903653",
"0.57825583",
"0.5776563",
"0.5775563",
"0.5775563",
"0.5775563",
"0.5775563",
"0.5773813",
"0.5773461",
"0.57653064",
"0.5755157",
"0.57460046",
"0.57333",
"0.573004",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388",
"0.5729388"
] | 0.65552884 | 4 |
Get the subversion URL for the root directory. | public static String getUrl() {
return annotation != null ? annotation.url() : "Unknown";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getRootServerBaseUrl();",
"public URL getRootDirURL() {\n\t\treturn null;\n\t}",
"private String getRootUrl(String path){\n return \"http://localhost:\" + port + \"/api/v1\" + path;\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 }",
"private String getRootUrl() {\n\t\treturn \"http://localhost:\" + port;\n\t}",
"private String getRootUrl() {\n\t\treturn \"http://localhost:\" + port;\n\t}",
"public String getSvnUrl() {\r\n return this.svnUrl;\r\n }",
"String getServerBaseURL();",
"@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 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}",
"private String baseUrl() {\n return \"http://\" + xosServerAddress + \":\" +\n Integer.toString(xosServerPort) + XOSLIB + baseUri;\n }",
"String repoUrl();",
"public abstract String getBaseURL();",
"String getServerUrl();",
"public String url() {\n return server.baseUri().toString();\n }",
"String basePath();",
"public String getBaseRepositoryUrl() {\n\t\treturn baseRepositoryUrl;\n\t}",
"public String getURL(Version version) {\n return getUrl() + version.getDocument().getDocumentURL();\n }",
"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 }",
"public String baseUrl() {\n return baseUrl;\n }",
"public String getBaseUrl()\r\n {\r\n return this.url;\r\n }",
"public String getLocalRepositoryRootFolder() {\n\t\tString userFolder = IdatrixPropertyUtil.getProperty(\"idatrix.local.reposity.root\",getRepositoryRootFolder() );\n\t\tint index = userFolder.indexOf(\"://\");\n\t\tif(index > -1 ) {\n\t\t\tuserFolder = userFolder.substring(index+3);\n\t\t}\n\t\treturn userFolder;\n\t}",
"public static String determineBaseUrl(String url) {\r\n\t\t// Determine the index of the first slash after the first period.\r\n\t\tint firstSub = url.indexOf(\"/\", url.indexOf(\".\"));\r\n\t\t\r\n\t\tif (firstSub == -1)\r\n\t\t\t// There were no sub directories included in the URL.\r\n\t\t\treturn url;\r\n\t\telse\r\n\t\t\treturn url.substring(0, firstSub);\r\n\t}",
"String rootPath();",
"Path getRootPath();",
"public static String getRootUrl(String url) {\n String u = url;\n int in = u.indexOf(\"://\");\n if (in <= 0) {\n u = \"http://\" + u;\n }\n\n try {\n URL theUrl = new URL(u);\n return theUrl.getHost();\n } catch (MalformedURLException e) {\n return u;\n }\n }",
"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 Path getRemoteRepositoryBaseDir();",
"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 makeBase(URL startingURL);",
"public String getBaseUrl()\n\t{\n\t\treturn baseUrl;\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}",
"public String getDocumentBase() {\n return getServerBase() + getContextPath() + \"/\";\n }",
"String getSourceRepoUrl();",
"public String getBaseUrl() {\n return builder.getBaseUrl();\n }",
"@Override\n\tpublic URL getBaseURL() {\n\t\tURL url = null;\n\t\tString buri = getBaseURI();\n\t\tif (buri != null) {\n\t\t\ttry {\n\t\t\t\turl = new URL(buri);\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\ttry {\n\t\t\t\t\tString docuri = document.getDocumentURI();\n\t\t\t\t\tif (docuri != null) {\n\t\t\t\t\t\tURL context = new URL(docuri);\n\t\t\t\t\t\turl = new URL(context, buri);\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t}",
"public String getBaseUrl()\n {\n return baseUrl;\n }",
"public String getBaseUrl() {\r\n return baseUrl;\r\n }",
"public String getBaseURL() {\n return baseURL;\n }",
"public String getBaseURL() {\n return baseURL;\n }",
"public static String getBaseUrl() {\n return baseUrl;\n }",
"String getInstallRoot();",
"public String getServerURI() {\n return settings.getString(\"server_url\", DEFAULT_SERVER_URL);\n }",
"VirtualDirectory getRootContents();",
"public String getRootPath() {\n return root.getPath();\n }",
"public String getServerUrl() {\n return props.getProperty(\"url\");\n }",
"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\t\treturn baseURL;\n\n\t}",
"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 }",
"public static String getServerBaseUrl() {\n if (isProductionMode()) {\n return getConfiguration().productionModeServerBaseUrl();\n }\n return getConfiguration().developmentModeServerBaseUrl();\n }",
"String getBaseUri();",
"public String getBaseUrl() {\n return (String) get(\"base_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 }",
"public URI getBaseURI() {\n Map<String, String> map = new LinkedHashMap<>();\n map.put(\"xml\", XML_NAMESPACE);\n return getLink(\"/*/@xml:base\", map);\n }",
"@Override\n\tprotected String getHttpBaseUrl() {\n\t\treturn this.properties.getHttpUrlBase();\n\t}",
"public String getApplicationURL()\n\t{\n\t\tString url=pro.getProperty(\"baseURL\");\n\t\treturn url;\n\t}",
"public String getServerUrl() {\r\n return this.fedoraBaseUrl;\r\n }",
"@Override\r\n\t\tpublic String getBaseURI()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"FullUriTemplateString baseUri();",
"public static String getModuleBaseUrl(HttpServletRequest request) {\n\t String requestedUri = request.getRequestURI();\n\t int contextEnd = request.getContextPath().length();\n\t int folderEnd = requestedUri.lastIndexOf('/') + 1;\n\t return requestedUri.substring(contextEnd, folderEnd);\n\t }",
"public String getServerUrl() {\n\t return Config.SERVER_URL;\n }",
"public static String getBaseURL() {\n\t\t\n\t\treturn (ZmailURI.getBaseURI().toString());\n\t\t\n\t}",
"String getRepositorySlugFromUrl(URL repositoryUrl) throws VersionControlException;",
"public String getRepoUrl() {\n return \"ssh://git@\" + host() + \":\" + port() + REPO_DIR;\n }",
"CreateS3VolumeRequestBuilder setRootUrl(String rootUrl);",
"public static String getURL() {\n\t return getURL(BackOfficeGlobals.ENV.NIS_USE_HTTPS, BackOfficeGlobals.ENV.NIS_HOST, BackOfficeGlobals.ENV.NIS_PORT);\n\t}",
"public Path getRepositoryBaseDir();",
"public String getSecureBaseUrl() {\n return (String) get(\"secure_base_url\");\n }",
"public String getLogonURL()\n {\n return getUnsecuredRootLocation() + configfile.logon_url;\n }",
"public String getServerUri(String namespace);",
"public void setSvnUrl(String url) {\r\n this.svnUrl = url;\r\n }",
"public String getRootPath() {\r\n return rootPath;\r\n }",
"@Override\n public String getProjectURL(ProjectPojo pojo) {\n String bomUrl = serverBean.getServerName()\n + \"/protex/ProtexIPIdentifyFolderBillOfMaterialsContainer?isAtTop=true&ProtexIPProjectId=\"\n + pojo.getProjectKey()\n + \"&ProtexIPIdentifyFileViewLevel=folder&ProtexIPIdentifyFileId=-1\";\n\n log.debug(\"Built URL for project: \" + bomUrl);\n\n return bomUrl;\n }",
"private static URI getBaseURI() {\n\t\treturn UriBuilder.fromUri(\"https://api.myjson.com/bins/aeka0\").build();\n\t}",
"java.lang.String getArtifactUrl();",
"String getRootAlias();",
"private String getBuildUrl(AbstractBuild<?, ?> build) {\n Hudson hudson = Hudson.getInstance();\n String rootUrl = hudson.getRootUrl();\n if (rootUrl == null) {\n return \"Jenkins Build #\" + build.number;\n } else {\n return hudson.getRootUrl() + build.getUrl();\n }\n }",
"public String getBaseUrl() {\n return preferences.getString(PREFERENCES_BACKEND_BASE_URL, \"http://naamataulu-backend.herokuapp.com/api/v1/\");\n }",
"private String get_url() {\n File file = new File(url);\n return file.getAbsolutePath();\n }",
"public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }",
"public String getServerUrl()\n {\n return null;\n }",
"public static String getTestSetFolderURL() {\n\n\t\treturn baseURL + login_required_string + \"/rest/domains/\" + domain + \"/projects/\" + project + \"/test-set-folders\";\n\t}",
"@Override\r\n public URI getBaseUri() {\n try{\r\n return new URI(\"http://localhost:8080/app/jpa-rs/\");\r\n } catch (URISyntaxException e){\r\n return null;\r\n }\r\n }",
"public String getServerBase() {\n HttpServletRequest request = FxJsfUtils.getRequest().getRequest();\n return \"http\" + (request.isSecure() ? \"s://\" : \"://\") + FxRequestUtils.getExternalServerName(request);\n }",
"public static String getRelativeUrl() {\n return url;\n }",
"public String getBaseUri() {\n\t\treturn baseUri;\n\t}",
"protected String getServerUrl() {\r\n\t\treturn server;\r\n\t}",
"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}",
"private String formatRootPathForDisplay(File root) {\n\t\t\tString s = root.getPath();\n\t\t\treturn s.length() > 1 && s.endsWith(\"\\\\\") ? s.substring(0, s.length() - 1) : s;\n\t\t}",
"public String getShBaseURL() {\n\n\t\treturn shBaseURL;\n\n\t}",
"public static String getBasepath() {\n\t\treturn basepath;\n\t}",
"public static String getBasepath() {\n\t\treturn basepath;\n\t}",
"IParser setServerBaseUrl(String theUrl);",
"public String getCurrUrl() {\n return driver.getCurrentUrl();\n }",
"String getRepositoryPath();",
"public static String getBaseURL(URL url) throws MalformedURLException {\n return new URL(url.getProtocol(), url.getHost(), url.getPort(), \"/\").toString();\n }",
"public String getBaseURL() {\n\t\treturn \"http://www.apple.com/itunes/charts\";\r\n\t}",
"public String getServerURL() {\n return serverURL;\n }",
"static String getBasePath(URL url) {\n\t\tString file = url.getFile().replaceAll(\"\\\\*\", \"\");\n\n\t\ttry {\n\t\t\treturn url.getPath().replaceAll(file, \"\");\n\t\t} catch (PatternSyntaxException pe) {\n\t\t\tLOG.error(pe.getMessage());\n\t\t\treturn \"\";\n\t\t}\n\n\t}"
] | [
"0.7320868",
"0.6622358",
"0.63474995",
"0.63453686",
"0.632105",
"0.632105",
"0.62867624",
"0.6282433",
"0.6077583",
"0.59545904",
"0.5888248",
"0.58281875",
"0.5826474",
"0.57968307",
"0.5763035",
"0.576151",
"0.57100207",
"0.5697264",
"0.5690275",
"0.564304",
"0.5618862",
"0.55976635",
"0.5591154",
"0.5581993",
"0.5570912",
"0.5570484",
"0.55577654",
"0.5551216",
"0.5549484",
"0.5546184",
"0.55414534",
"0.5524903",
"0.5519717",
"0.55185115",
"0.5515816",
"0.5504678",
"0.55043024",
"0.5498171",
"0.5492593",
"0.5492593",
"0.5481459",
"0.54760194",
"0.54686075",
"0.546311",
"0.5458868",
"0.54531896",
"0.54344064",
"0.54344064",
"0.5419891",
"0.54157573",
"0.5413903",
"0.54031235",
"0.53894556",
"0.538889",
"0.5368746",
"0.53660774",
"0.5355285",
"0.5345321",
"0.5341199",
"0.53158057",
"0.5304472",
"0.5297329",
"0.5292618",
"0.52915984",
"0.5275345",
"0.52694446",
"0.5258161",
"0.5237859",
"0.5235839",
"0.5217168",
"0.5209692",
"0.52067727",
"0.5205774",
"0.52044976",
"0.51967645",
"0.51887023",
"0.51798564",
"0.51720876",
"0.5162822",
"0.51603395",
"0.515715",
"0.514745",
"0.5141005",
"0.5135932",
"0.51300484",
"0.512542",
"0.51190346",
"0.5112903",
"0.51000917",
"0.509596",
"0.5086379",
"0.5084634",
"0.50797606",
"0.50797606",
"0.5072762",
"0.50725275",
"0.5066438",
"0.5065038",
"0.50585884",
"0.5044623",
"0.50421506"
] | 0.0 | -1 |
Constructing the endofstream states for a task | EndOfStreamStates(Set<SystemStreamPartition> ssps, Map<SystemStream, Integer> producerTaskCounts) {
Map<SystemStreamPartition, EndOfStreamState> states = new HashMap<>();
ssps.forEach(ssp -> {
states.put(ssp, new EndOfStreamState(producerTaskCounts.getOrDefault(ssp.getSystemStream(), 0)));
});
this.eosStates = Collections.unmodifiableMap(states);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeState() {\n Throwable th;\n String str;\n String str2;\n IOException e;\n IOException e2;\n List<AppOpsManager.PackageOps> allOps;\n Throwable th2;\n String lastPkg;\n List<AppOpsManager.PackageOps> allOps2;\n String lastPkg2;\n List<AppOpsManager.PackageOps> allOps3;\n String proxyPkg;\n synchronized (this.mFile) {\n try {\n FileOutputStream stream = this.mFile.startWrite();\n String str3 = null;\n List<AppOpsManager.PackageOps> allOps4 = getPackagesForOps(null);\n try {\n XmlSerializer out = new FastXmlSerializer();\n out.setOutput(stream, StandardCharsets.UTF_8.name());\n out.startDocument(null, true);\n out.startTag(null, \"app-ops\");\n out.attribute(null, \"v\", String.valueOf(1));\n synchronized (this) {\n try {\n int uidStateCount = this.mUidStates.size();\n for (int i = 0; i < uidStateCount; i++) {\n try {\n UidState uidState = this.mUidStates.valueAt(i);\n if (uidState.opModes != null && uidState.opModes.size() > 0) {\n out.startTag(null, WatchlistLoggingHandler.WatchlistEventKeys.UID);\n out.attribute(null, \"n\", Integer.toString(uidState.uid));\n SparseIntArray uidOpModes = uidState.opModes;\n int opCount = uidOpModes.size();\n for (int j = 0; j < opCount; j++) {\n int op = uidOpModes.keyAt(j);\n int mode = uidOpModes.valueAt(j);\n out.startTag(null, \"op\");\n out.attribute(null, \"n\", Integer.toString(op));\n out.attribute(null, \"m\", Integer.toString(mode));\n out.endTag(null, \"op\");\n }\n out.endTag(null, WatchlistLoggingHandler.WatchlistEventKeys.UID);\n }\n } catch (Throwable th3) {\n e2 = th3;\n while (true) {\n try {\n break;\n } catch (Throwable th4) {\n e2 = th4;\n }\n }\n throw e2;\n }\n }\n } catch (Throwable th5) {\n e2 = th5;\n while (true) {\n break;\n }\n throw e2;\n }\n }\n if (allOps4 != null) {\n String lastPkg3 = null;\n boolean z = false;\n int i2 = 0;\n while (i2 < allOps4.size()) {\n AppOpsManager.PackageOps pkg = allOps4.get(i2);\n if (pkg.getPackageName() == null) {\n allOps = allOps4;\n } else {\n if (!pkg.getPackageName().equals(lastPkg3)) {\n if (lastPkg3 != null) {\n try {\n out.endTag(str3, \"pkg\");\n } catch (IOException e3) {\n e = e3;\n try {\n Slog.w(TAG, \"Failed to write state, restoring backup.\", e);\n this.mFile.failWrite(stream);\n if (stream != null) {\n }\n } catch (Throwable th6) {\n th = th6;\n if (stream != null) {\n try {\n stream.close();\n } catch (IOException e4) {\n Slog.w(TAG, \"Failed to close stream: \" + e4.getMessage());\n }\n }\n throw th;\n }\n } catch (Throwable th7) {\n th = th7;\n if (stream != null) {\n }\n throw th;\n }\n }\n lastPkg3 = pkg.getPackageName();\n out.startTag(str3, \"pkg\");\n out.attribute(str3, \"n\", lastPkg3);\n }\n out.startTag(str3, WatchlistLoggingHandler.WatchlistEventKeys.UID);\n out.attribute(str3, \"n\", Integer.toString(pkg.getUid()));\n synchronized (this) {\n try {\n Ops ops = getOpsRawLocked(pkg.getUid(), pkg.getPackageName(), z, z);\n if (ops != null) {\n try {\n out.attribute(str3, \"p\", Boolean.toString(ops.isPrivileged));\n } catch (Throwable th8) {\n th2 = th8;\n }\n } else {\n out.attribute(str3, \"p\", Boolean.toString(z));\n }\n } catch (Throwable th9) {\n th2 = th9;\n while (true) {\n try {\n break;\n } catch (Throwable th10) {\n th2 = th10;\n }\n }\n throw th2;\n }\n }\n List<AppOpsManager.OpEntry> ops2 = pkg.getOps();\n int j2 = z;\n while (j2 < ops2.size()) {\n AppOpsManager.OpEntry op2 = ops2.get(j2 == true ? 1 : 0);\n out.startTag(str3, \"op\");\n out.attribute(str3, \"n\", Integer.toString(op2.getOp()));\n if (op2.getMode() != AppOpsManager.opToDefaultMode(op2.getOp())) {\n out.attribute(str3, \"m\", Integer.toString(op2.getMode()));\n }\n LongSparseArray keys = op2.collectKeys();\n if (keys == null) {\n allOps2 = allOps4;\n lastPkg = lastPkg3;\n } else if (keys.size() <= 0) {\n allOps2 = allOps4;\n lastPkg = lastPkg3;\n } else {\n int keyCount = keys.size();\n int k = 0;\n while (k < keyCount) {\n long key = keys.keyAt(k);\n int uidState2 = AppOpsManager.extractUidStateFromKey(key);\n int flags = AppOpsManager.extractFlagsFromKey(key);\n long accessTime = op2.getLastAccessTime(uidState2, uidState2, flags);\n long rejectTime = op2.getLastRejectTime(uidState2, uidState2, flags);\n long accessDuration = op2.getLastDuration(uidState2, uidState2, flags);\n String proxyPkg2 = op2.getProxyPackageName(uidState2, flags);\n int proxyUid = op2.getProxyUid(uidState2, flags);\n if (accessTime > 0 || rejectTime > 0 || accessDuration > 0) {\n proxyPkg = proxyPkg2;\n } else {\n proxyPkg = proxyPkg2;\n if (proxyPkg == null && proxyUid < 0) {\n allOps3 = allOps4;\n lastPkg2 = lastPkg3;\n k++;\n allOps4 = allOps3;\n lastPkg3 = lastPkg2;\n }\n }\n allOps3 = allOps4;\n lastPkg2 = lastPkg3;\n try {\n out.startTag(null, \"st\");\n out.attribute(null, \"n\", Long.toString(key));\n if (accessTime > 0) {\n out.attribute(null, \"t\", Long.toString(accessTime));\n }\n if (rejectTime > 0) {\n out.attribute(null, \"r\", Long.toString(rejectTime));\n }\n if (accessDuration > 0) {\n out.attribute(null, \"d\", Long.toString(accessDuration));\n }\n if (proxyPkg != null) {\n out.attribute(null, \"pp\", proxyPkg);\n }\n if (proxyUid >= 0) {\n out.attribute(null, \"pu\", Integer.toString(proxyUid));\n }\n out.endTag(null, \"st\");\n k++;\n allOps4 = allOps3;\n lastPkg3 = lastPkg2;\n } catch (IOException e5) {\n e = e5;\n Slog.w(TAG, \"Failed to write state, restoring backup.\", e);\n this.mFile.failWrite(stream);\n if (stream != null) {\n }\n }\n }\n allOps2 = allOps4;\n lastPkg = lastPkg3;\n out.endTag(null, \"op\");\n allOps4 = allOps2;\n lastPkg3 = lastPkg;\n str3 = null;\n j2++;\n }\n out.endTag(null, \"op\");\n allOps4 = allOps2;\n lastPkg3 = lastPkg;\n str3 = null;\n j2++;\n }\n allOps = allOps4;\n out.endTag(null, WatchlistLoggingHandler.WatchlistEventKeys.UID);\n lastPkg3 = lastPkg3;\n }\n i2++;\n allOps4 = allOps;\n str3 = null;\n z = false;\n }\n if (lastPkg3 != null) {\n out.endTag(null, \"pkg\");\n }\n }\n out.endTag(null, \"app-ops\");\n out.endDocument();\n this.mFile.finishWrite(stream);\n out.flush();\n if (stream != null) {\n try {\n stream.close();\n } catch (IOException e6) {\n str2 = TAG;\n str = \"Failed to close stream: \" + e6.getMessage();\n }\n }\n } catch (IOException e7) {\n e = e7;\n Slog.w(TAG, \"Failed to write state, restoring backup.\", e);\n this.mFile.failWrite(stream);\n if (stream != null) {\n try {\n stream.close();\n } catch (IOException e8) {\n str2 = TAG;\n str = \"Failed to close stream: \" + e8.getMessage();\n }\n }\n } catch (Throwable th11) {\n th = th11;\n if (stream != null) {\n }\n throw th;\n }\n } catch (IOException e9) {\n Slog.w(TAG, \"Failed to write state: \" + e9);\n return;\n }\n }\n Slog.w(str2, str);\n }",
"@Override\n\t\tpublic void getState(OutputStream output) throws Exception {\n\t\t\tsynchronized(taskListState) {\n\t Util.objectToStream(taskListState, new DataOutputStream(output));\n\t }\n\t }",
"private void saveTasks() {\n try {\n Writer writer = new Writer(new File(TASKS_FILE));\n for (Task t1: todoList.getListOfTasks()) {\n writer.write(t1);\n }\n writer.close();\n System.out.println(\"Tasks saved to file \" + TASKS_FILE);\n } catch (FileNotFoundException e) {\n System.out.println(\"Unable to save tasks to \" + TASKS_FILE);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }",
"SyncEnd createSyncEnd();",
"public void commitChanges(){\r\n try{\r\n //Record the state of unfinished set in unfinished.dat\r\n unfinishedFileOutputStream = new FileOutputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetOutputStream = new ObjectOutputStream(unfinishedFileOutputStream);\r\n unfinishedSetOutputStream.writeObject(unfinished);\r\n unfinishedSetOutputStream.close();\r\n unfinishedFileOutputStream.close();\r\n\r\n //Record the state of finished list in finished.dat\r\n finishedFileOutputStream = new FileOutputStream(FINISHED_FILE_PATH);\r\n finishedListOutputStream = new ObjectOutputStream(finishedFileOutputStream);\r\n finishedListOutputStream.writeObject(finished);\r\n finishedListOutputStream.close();\r\n finishedFileOutputStream.close();\r\n\r\n //Record the state of activities list in activities.dat\r\n activitiesFileOutputStream = new FileOutputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListOutputStream = new ObjectOutputStream(activitiesFileOutputStream);\r\n activitiesListOutputStream.writeObject(activities);\r\n activitiesListOutputStream.close();\r\n activitiesFileOutputStream.close();\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Stress in commiting changes: \" + e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }",
"public void endFlatFile() {\n }",
"private void writeToFile(ArrayList<Task> tasks) throws IOException {\r\n FileWriter fileWriter = new FileWriter(filePath);\r\n for (Task task : tasks) {\r\n Parser fileFormatter = new ParseToFileFormat(task);\r\n String taskData = fileFormatter.getFileFormat();\r\n fileWriter.write(taskData);\r\n }\r\n fileWriter.close();\r\n }",
"void endTask();",
"public void endTime() throws IOException {\n\t\t\t long finish = System.currentTimeMillis();\n\t\t\t \n\t\t\t// Cleaning:\n\t\t\t fileCleaner(\"match.log\");\n\t\t\t fileCleaner(\"max.log\");\n\t\t\t fileCleaner(\"order.log\");\n\t\t\t fileCleaner(\"xml.log\");\n\t\t\t fileCleaner(\"error.log\");\n\t\t\t fileCleaner(\"reason.log\");\n\t\t\t fileCleaner(\"finish.time\");\n\t\t\t \n\t\t\t fileWriter(\"finish.time\", convertLongToString(finish));\n\t\t\t// Scanning Test Counter record:\n\t\t\t int n = 1;\n\t\t\t if (fileExist(\"test.num\", false)) { \n\t\t\t\t if (! fileScanner(\"test.num\").equals(null)) { n = Integer.valueOf(fileScanner(\"test.num\")); }\n\t\t\t }\n\t\t\t fileWriterPrinter(\"\\n Finish: \" + getCurrentDateTimeFull());\n\t\t\t fileWriterPrinter( \" Duration: \" + testRunTime(\"start.time\", finish)); \n\t\t\t if (n > 1) { fileWriterPrinter(\" Subtotal: \" + testRunTime(\"ini.time\", finish) + \"\\n\"); }\n\t\t\t else { fileWriterPrinter(); }\n\t\t\t// Append an End Log record:\n\t\t if (fileExist(\"run.log\", false)) {\n\t\t \t fileWriter(\"run.log\", \"\\n Finish: \" + getCurrentDateTimeFull());\n\t\t \t fileWriter(\"run.log\", \" Duration: \" + testRunTime(\"start.time\", finish));\n \t if (n > 1) { fileWriter(\"run.log\", \" Subtotal: \" + testRunTime(\"ini.time\", finish)); }\n\t\t }\n }",
"boolean fileEnd();",
"private void setTOStateFinished(TCSObjectReference<TransportOrder> ref) {\n requireNonNull(ref, \"ref\");\n\n // Set the transport order's state.\n kernel.setTransportOrderState(ref, TransportOrder.State.FINISHED);\n TransportOrder order = kernel.getTCSObject(TransportOrder.class, ref);\n // If it is part of an order sequence, we should proceed to its next order.\n if (order.getWrappingSequence() != null) {\n OrderSequence seq = kernel.getTCSObject(OrderSequence.class,\n order.getWrappingSequence());\n // Sanity check: The finished order must be the next one in the sequence;\n // if it is not, something has already gone wrong.\n checkState(ref.equals(seq.getNextUnfinishedOrder()),\n \"Finished TO %s != next unfinished TO %s in sequence %s\",\n ref,\n seq.getNextUnfinishedOrder(),\n seq);\n kernel.setOrderSequenceFinishedIndex(seq.getReference(),\n seq.getFinishedIndex() + 1);\n // Get an up-to-date copy of the order sequence\n seq = kernel.getTCSObject(OrderSequence.class, seq.getReference());\n // If the sequence is complete and this was its last order, the sequence\n // is also finished.\n if (seq.isComplete() && seq.getNextUnfinishedOrder() == null) {\n kernel.setOrderSequenceFinished(seq.getReference());\n // Reset the processing vehicle's back reference on the sequence.\n kernel.setVehicleOrderSequence(seq.getProcessingVehicle(), null);\n }\n }\n }",
"public String updateTaskToFile() {\n String updatedText = Messages.EMPTY_STRING;\n for (int i = 0; i < Parser.getOrderAdded(); i++) {\n updatedText = updatedText.concat(recordedTask.get(i).getCurrentTaskType()\n + Messages.SEPARATOR + recordedTask.get(i).taskStatus()\n + Messages.SEPARATOR + recordedTask.get(i).getTaskName()) + Messages.NEW_LINE;\n }\n return updatedText;\n }",
"public void saveTasks() {\n try {\n BufferedWriter taskWriter = new BufferedWriter(new FileWriter(path));\n String tasks = \"\";\n for (Task task : TaskList.getTaskLists()) {\n tasks += task.toSaveString() + \"\\n\";\n }\n taskWriter.write(tasks);\n taskWriter.close();\n } catch (IOException e) {\n System.out.println(\"Sorry Boss, \" + e.getMessage());\n }\n }",
"@Override\n public void afterExecute(Task task, TaskState taskState) {\n String taskImpl = task.getClass().getSimpleName();\n if (taskImpl.endsWith(\"_Decorated\")) {\n taskImpl = taskImpl.substring(0, taskImpl.length() - \"_Decorated\".length());\n }\n String potentialExecutionTypeName = \"TASK_\" +\n CaseFormat.LOWER_CAMEL.converterTo(CaseFormat.UPPER_UNDERSCORE).\n convert(taskImpl);\n ExecutionType executionType;\n try {\n executionType = ExecutionType.valueOf(potentialExecutionTypeName);\n } catch (IllegalArgumentException ignored) {\n executionType = ExecutionType.GENERIC_TASK_EXECUTION;\n }\n\n List<Recorder.Property> properties = new ArrayList<Recorder.Property>();\n properties.add(new Recorder.Property(\"project\", task.getProject().getName()));\n properties.add(new Recorder.Property(\"task\", task.getName()));\n\n if (task instanceof DefaultAndroidTask) {\n String variantName = ((DefaultAndroidTask) task).getVariantName();\n if (variantName == null) {\n throw new IllegalStateException(\"Task with type \" + task.getClass().getName() +\n \" does not include a variantName\");\n }\n if (!variantName.isEmpty()) {\n properties.add(new Recorder.Property(\"variant\", variantName));\n }\n }\n\n TaskRecord taskRecord = taskRecords.get(task.getName());\n mRecorder.closeRecord(new ExecutionRecord(\n taskRecord.recordId,\n 0 /* parentId */,\n taskRecord.startTime,\n System.currentTimeMillis() - taskRecord.startTime,\n executionType,\n properties));\n }",
"public void setEnd(){\n\t\tthis.isEnd=true;\n\t}",
"void Finished(Task task, Action<TResult> lastFinishedAction);",
"@Override\n public void run () {\n try {\n int i = 0;\n String tupleString = this.inReadEnds[i].getNextString();\n while (tupleString != null && i < this.inReadEnds.length - 1){\n BMap tempStore = BMap.makeBMap(tupleString);\n mapStore = BMap.or(mapStore, tempStore);\n i++;\n tupleString = this.inReadEnds[i].getNextString();\n }\n \n BMap tempStore = BMap.makeBMap(tupleString);\n this.mapStore = BMap.or(mapStore, tempStore);\n \n this.outWriteEnd.putNextString(mapStore.getBloomFilter());\n this.outWriteEnd.close();\n } \n catch (Exception e) {\n ReportError.msg(this.getClass().getName() + \" \" + e);\n }\n }",
"public void logClose() throws IOException {\n\t\t\t\tlong finish = System.currentTimeMillis();\n\t\t\t\tString time = getCurrentDateTimeFull();\n\t\t\t\t// Scanning Failure Counter record:\n\t\t\t\tint failed = 0;\n\t\t\t\tif (fileExist(\"failed.num\", false)) { failed = Integer.valueOf(fileScanner(\"failed.num\")); }\n\t\t\t\t// Scanning Test Counter record:\n\t\t\t\tint n = 1;\n\t\t\t\tif (fileExist(\"test.num\", false)) {\n\t\t\t\t\tif (!fileScanner(\"test.num\").equals(null)) { n = Integer.valueOf(fileScanner(\"test.num\")); }\n\t\t\t\t}\n\t\t\t\tif (n > 1) {\n\t\t\t\t\t// Scanning Initialization record:\n\t\t\t\t\tString startingTime = fileScanner(\"ini.time\");\n\t\t\t\t\tlong start = convertStringToLong(startingTime);\n\t\t\t\t\tfileWriterPrinter(\"TOTAL TESTS: \" + Integer.valueOf(fileScanner(\"test.num\")));\n\t\t\t\t\tfileWriterPrinter(\" FAILED: \" + failed);\n\t\t\t\t\tfileWriterPrinter(\"TEST START: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(start));\n\t\t\t\t\tfileWriterPrinter(\"TEST FINISH: \" + time);\n\t\t\t\t\tfileWriterPrinter(\"TOTAL TIME: \" + convertTimeMillisecondsAsLongToDuration(finish - start));\n\t\t\t\t\tfileWriterPrinter();\n\t\t\t\t\t// Final Log record:\n\t\t\t\t\tif (fileExist(\"run.log\")) { \n\t\t\t\t\t\tfileWriter(\"run.log\", \"\");\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TOTAL TESTS: \" + Integer.valueOf(fileScanner(\"test.num\")));\n\t\t\t\t\t\tfileWriter(\"run.log\", \" FAILED: \" + failed);\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TEST START: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(start));\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TEST FINISH: \" + time);\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TOTAL TIME: \" + convertTimeMillisecondsAsLongToDuration(finish - start));\n\t\t\t\t\t\tfileWriter(\"run.log\", \"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Clean-up unnecessary file(s)\n\t\t\t\tfileCleaner(\"failed.num\");\n\t\t\t\tfileCleaner(\"finish.time\");\n\t\t\t\tfileCleaner(\"ini.time\");\n\t\t\t\tfileCleaner(\"start.time\");\n\t\t\t\tfileCleaner(\"stack.trace\");\n\t\t\t\tfileCleaner(\"test.num\");\n\t\t\t\tfileCleaner(\"xml.path\");\n\t\t\t}",
"public static void writeFile(ArrayList<Task> taskArrayList) throws IOException, DukeException {\n String dataPath = new File(\"saved_data/tasks.txt\").getAbsolutePath();\n StringBuilder fullString = new StringBuilder();\n\n for(Task task : taskArrayList) {\n if (task instanceof ToDo) {\n ToDo todo = (ToDo) task;\n String todoString = todo.getTypeIcon() + \"|\" + todo.isDone + \"|\"\n + todo.description + System.lineSeparator();\n fullString.append(todoString);\n } else if (task instanceof Event) {\n Event event = (Event) task;\n String eventString = event.getTypeIcon() + \"|\" + event.isDone + \"|\"\n + event.description + \"|\" + event.at + System.lineSeparator();\n fullString.append(eventString);\n } else if (task instanceof Deadline) {\n Deadline deadline = (Deadline) task;\n String deadlineString = deadline.getTypeIcon() + \"|\" + deadline.isDone + \"|\"\n + deadline.description + \"|\" + deadline.by + System.lineSeparator();\n fullString.append(deadlineString);\n } else {\n throw new DukeException();\n }\n }\n\n FileWriter fw = new FileWriter(dataPath);\n fw.write(String.valueOf(fullString));\n fw.close();\n }",
"@Override\n public void stop() throws IOException {\n ToDoData.getInstance().storeTasks();\n }",
"public void taskComplete() {\n mTasksLeft--;\n if ((mTasksLeft==0) & mHasCloRequest){\n onAllTasksCompleted();\n }\n }",
"EndEvent createEndEvent();",
"private void outputTask(Task[] taskList) throws OutputExecuteException {\n String[][] table = this.initTable(taskList.length + 1,\n MagicNumbersAndConstants.NUMBER_TASK_PROPERTIES);\n int iteration = taskList.length + 1;\n DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n table = this.initNullTaskTable(table, 1);\n\n for (int i = 1; i < iteration; i++) {\n // task should be not null\n if (taskList[i - 1] == null) {\n throw new OutputExecuteException(\n OuputExecuteMessage.EXCEPTION_NULL_TASK);\n }\n\n if (taskList[i - 1].getTitle() == null) {\n table[i][0] = \"-\";\n } else {\n table[i][0] = taskList[i - 1].getTitle();\n }\n\n if (taskList[i - 1].getCategory() == null) {\n table[i][1] = \"-\";\n } else {\n table[i][1] = taskList[i - 1].getCategory();\n }\n if (taskList[i - 1].getDescription() == null) {\n table[i][2] = \"-\";\n } else {\n table[i][2] = taskList[i - 1].getDescription();\n }\n if (taskList[i - 1].getStartDate() == null) {\n table[i][3] = \"-\";\n } else {\n table[i][3] = df.format(taskList[i - 1].getStartDate());\n }\n if (taskList[i - 1].getEndDate() == null) {\n table[i][4] = \"-\";\n } else {\n table[i][4] = df.format(taskList[i - 1].getEndDate());\n }\n if (taskList[i - 1].getLocation() == null) {\n table[i][5] = \"-\";\n } else {\n table[i][5] = taskList[i - 1].getLocation();\n }\n\n table[i][6] = String.valueOf(taskList[i - 1].getPriority());\n\n if (taskList[i - 1].getReminder() == null) {\n table[i][7] = \"-\";\n } else {\n table[i][7] = df.format(taskList[i - 1].getReminder());\n }\n\n table[i][8] = taskList[i - 1].getTaskType().toString();\n\n if (taskList[i - 1].getStatus() == true) {\n table[i][9] = \"Done\";\n } else {\n table[i][9] = \"Not Done Yet\";\n }\n }\n this.printTable(table);\n }",
"@Override\n public String toFileEntry() {\n return \"T\" + \"/next\" + super.isDone + \"/next\" + super.description;\n }",
"public abstract void buildEndSource(OutputStream out, SourceObjectDeclared o) throws IOException;",
"public void createTaskStateData() throws DataLayerException\r\n\t{\r\n\t\t// ---------------------------------------------------------------\r\n\t\t// Task States\r\n\t\t// ---------------------------------------------------------------\r\n\t\tState[] values = TaskState.State.values();\r\n\t\tfor (TaskState.State state : values)\r\n\t\t{\r\n\t\t\tTaskState taskState = createHelper.createTaskState(0);\r\n\t\t\ttaskState.setState(state);\r\n\t\t\ttaskStateDao.save(taskState);\r\n\r\n\t\t\tLOG.info(taskState.toString());\r\n\t\t}\r\n\t}",
"private void storeState() throws IOException {\n for (File outputFile : processedOutputs.keySet()) {\n if (state.outputs.get(outputFile) == null) {\n state.outputs.put(outputFile, new FileState(outputFile));\n }\n }\n\n File parent = stateFile.getParentFile();\n if (!parent.isDirectory() && !parent.mkdirs()) {\n throw new IOException(\"Could not create direcotyr \" + parent);\n }\n\n ObjectOutputStream os =\n new ObjectOutputStream(new GZIPOutputStream(new BufferedOutputStream(new FileOutputStream(\n stateFile))));\n try {\n os.writeObject(state);\n } finally {\n try {\n os.close();\n } catch (IOException e) {\n // ignore secondary exception\n }\n }\n }",
"void addDoneTask(Task task);",
"private void setFileClosed() {\n \topenFiles.pop();\n \trelativeNames.pop();\n }",
"public String getFinalState(String type) {\r\n\t\tTaskType tt = getType(type);\r\n\t\tif (tt != null && tt.finalState != null)\r\n\t\t\treturn tt.finalState;\r\n\t\treturn \"CLOSED\";\r\n\t}",
"public void task_1_write(List<MonitoredData> timeline) throws IOException {\n FileWorker.writeFile(1, timeline, 0, null, null, null);\n }",
"@Override\n public void done() {\n // Ignore if more done calls than beginTask calls or if we are still\n // in some nested beginTasks\n if (nestedBeginTasks == 0 || --nestedBeginTasks > 0) {\n return;\n }\n // Send any remaining ticks and clear out the subtask text\n double remaining = parentTicks - sentToParent;\n if (remaining > 0) {\n super.internalWorked(remaining);\n }\n //clear the sub task if there was one\n if (hasSubTask) {\n setSubTaskName(\"\"); //$NON-NLS-1$\n }\n sentToParent = 0;\n\n if (traceTimeStat) {\n long dt = System.currentTimeMillis() - t0;\n System.out.println(\"Task '\" + taskName + \"':\");\n System.out.println(\" ParentTicks: \" + parentTicks);\n System.out.println(\" Total work: \" + totalWork);\n System.out.println(\" Total time: \" + dt + \" ms\");\n System.out.println(\" Time / work unit: \" + ((double)dt / (double)totalWork) + \" ms\");\n }\n }",
"public void transactionComplete(TransactionId tid) throws IOException {\n // some code goes here\n // not necessary for proj1\\\n \t//should always commit, simply call transactionComplete(tid,true)\n \ttransactionComplete(tid, true);\n \t\n }",
"private void btnendActionPerformed(java.awt.event.ActionEvent evt) {\n if(curtask==tottask)\n return;\n while(li.hasNext())\n li.next();\n t=(Task)li.previous();\n curtask=tottask;\n //updates display and the scheduled task\n lblctask.setText(\" \"+ curtask);\n txtname.setText(t.getName());\n txtdesc.setText(t.getDescription());\n \n }",
"private void saveCompletedItemsFile()\r\n\t{\r\n\t\tFile complete = null;//New file for the completed list\r\n\t\tFileWriter fw2 = null;//Can't use the same filewriter to do both the end task and the complted products.\r\n\t\ttry{\r\n\t\t\tString completeFileName = \"reports/\" + \"CompletedItems.txt\";\r\n\t\t\tcomplete = new File(completeFileName); //Create a new text file called CompletedItems.txt\r\n\t\t\tcomplete.createNewFile(); // Make the file\r\n\t\t\tfw2 = new FileWriter(completeFileName, true); //Initialize the second filewriter\r\n\t\t\t\r\n\t\t\tArrayList<String> toWrite = mTaskBoard.getCompletedProducts(); //get the strings to write\r\n\t\t\tfor(int i = 0; i < toWrite.size(); i++) //For all the elements in toWrite\r\n\t\t\t{\r\n\t\t\t\tfw2.write(toWrite.get(i)+\"\\n\"); //Write it into the file\r\n\t\t\t\t//fw2.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t\tif(complete != null) {\r\n\t\t\t\tcomplete.delete();\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif(fw2 != null) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tfw2.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Failed to close the filewriter2!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstants.ZIP_FILE_SUFFIX;\r\n tgWriter.saveCompressed(new File(this.filename));\r\n }\r\n else\r\n {\r\n this.filename += ITraceConstants.XML_FILE_SUFFIX;\r\n tgWriter.save(new File(this.filename));\r\n }\r\n\r\n SymbolicExecutionTracerPlugin.log(Status.INFO,\r\n \"Symbolic Execution Tracer wrote \" + this.numEndStates\r\n + \" traces to \" + this.filename);\r\n }",
"String readAll(String pressNum){ // TODO - Make a chooseable way for which steps to check . Each step contains a series of checks that the user will do , only verify those checks\n // All files to write to / read from\n File listIOLog = new File(folderName + FILE_LIST_IO_LOG); // Write only the values which are different\n File listTodo = new File(folderName + \"Todosteps.txt\"); // This file have all the steps that are needed\n File completedStep = new File( folderName + FILE_LIST_STEPS_COMPLETED);\n\n\n BufferedReader fileBr = null;\n BufferedReader fileTodoBr = null;\n BufferedReader fileCompletedBr = null;\n BufferedWriter fileTodoBw = null;\n BufferedWriter fileBw = null; // Temp to used in many places\n BufferedWriter fileBwLog = null;\n BufferedWriter fileCompletedBw = null;\n\n String completed = \"Completed\";\n StringBuilder resultUser = new StringBuilder(); // Append the end result to later return it to controller and show to the user\n\n if (!reading) {\n reading = true; // Started to read the files\n try {\n fileTodoBr = new BufferedReader(new FileReader(listTodo));\n fileCompletedBr = new BufferedReader(new FileReader(completedStep));\n fileTodoBw = new BufferedWriter(new FileWriter(listTodo));\n fileBwLog = new BufferedWriter(new FileWriter(listIOLog, true));\n fileCompletedBw = new BufferedWriter(new FileWriter(completedStep, true));\n\n String fileTodo = fileTodoBr.readLine(); // Start reading\n String fileCompleted = fileCompletedBr.readLine(); // Start reading\n\n ExecutorService executor = Executors.newFixedThreadPool(util.getNumThread());\n\n CompletionService<String> completionService = new ExecutorCompletionService<>(executor); // Initialize the completion service\n\n String topicValue = \"\";\n String topicName = \"\";\n StringBuilder results = new StringBuilder();\n int counterRequest = 0; // Counter to know how many completion service where open\n int topicCounter = 0;\n Map<String, String> topicMap = new HashMap<>();\n Map<String, Integer> stepMap = new HashMap<>();\n\n List<String> completedList = new ArrayList<>(); // List of completed steps\n List<String> todoList = new ArrayList<>();\n List<String> stepList = new ArrayList<>(); // Save all the steps (Step1, Step2 ...)\n\n // File read all the completed steps and save\n while (fileCompleted != null && fileCompleted.contains(completed)) { // While the there is next line and the line contains completed\n\n completedList.add(fileCompleted);\n fileCompleted = fileCompletedBr.readLine(); // Next line\n\n } // File read end\n\n\n // Read the amount of steps needed and add them to the todolist, then save in an arraylist\n for (int stepsReading = 0 ; fileTodo != null && stepsReading < STEPS_TO_READ ; stepsReading++) { // TODO - Add check if the number isn't missing\" (1,2,3,[missing],5 ..)\n\n todoList.add(fileTodo);\n fileTodo = fileTodoBr.readLine(); // Next line\n } // File read end\n\n // Save in a list all the steps of IO\n for(String steps : todoList){ // Maybe write a method in util/interface as it will be needed for Reg\n String[] stepName = steps.trim().split(\" \"); // [0] = step number , [1] = step title , [2] = completed / not\n String step = stepName[0] + \" \" + stepName[1];\n stepList.add(step);\n }\n\n\n for(String step : stepList){\n\n String[] splitStep = step.trim().split(\" \"); // [0] = step number , [1] = step title\n String newStep = splitStep[0];\n String stepFile = SYSTAB_STEPIO_FOLDER + newStep + \"IO.text\"; // Check if it create the folder if doesn't exist\n\n File stepFileCurr = new File(pressNum + SYSTAB_STEPIO_FOLDER + \"Curr\" + newStep + \"IO.text\"); // FolderName\\StepIO\\CurrStepxIO.txt - File with value of current moment & name of systabIO\n File stepFileFresh = new File(pressNum + stepFile); // FolderName\\StepIO\\StepxIO.txt - File without value , only the name of the systabIO\n\n\n if (!stepFileCurr.exists()) { // Change file if the current still doesn't exist\n fileBr = new BufferedReader(new FileReader(stepFileFresh)); // Maybe better way ?\n } else {\n fileBr = new BufferedReader(new FileReader(stepFileCurr)); // Add exception for only file not found ?\n }\n// String[] stepName = step.trim().split(\" \"); // [0] = step number , [1] = step name\n String fileData = fileBr.readLine(); // Start reading\n\n while (fileData != null) {\n\n String[] topicDetails = fileData.trim().split(\" \"); // [0] = topic name , [1] = value , [2] = completed(only when completed)\n\n if(topicDetails.length > 2 && topicDetails[2].equals(completed)) continue; // The current topic is already completed and don't need to check again -> continue to the next topic\n\n topicName = topicDetails[0]; // Readability\n if (topicDetails.length > 1) { // -> there is a value\n topicValue = topicDetails[1]; // Readability , verify only here if it really exist\n topicMap.put(topicName,topicValue); // Save the topic name and value as my temp\n } else {\n topicMap.put(topicName,\"\"); // No topic value\n }\n\n // Start futuretask completion service -> Start process to read the SystabIO\n completionService.submit(new CallSystabIo(topicName, newStep)); // TEST\n counterRequest++;\n stepMap.put(newStep, ++topicCounter); // Save the step with the counter of how many topics there is\n\n fileData = fileBr.readLine(); // Next line\n } // No more topics to read from , continue to the next step\n\n stepFileCurr.delete(); // Delete it as all the data was read and saved , for later create a new current file with the new values\n }\n\n\n // Take results from process\n for(int i = 0 ; i < counterRequest ; i++){ // Loop through the results -> counterRequests have the number of how many request were submit to completion service\n try {\n Future<String> resultFuture = completionService.take(); // Wait for one completed task\n results.append(resultFuture.get()); // Get a completed task , results = topicName + new Value\n\n String [] endResultArr = results.toString().trim().split(\" \"); // [0] = step number . [1] = topic name , [2] = value\n String stepNumber = endResultArr[0];\n String newTopicName = endResultArr[1];\n String newValue = endResultArr[2];\n String endResult = newTopicName + \" \" + newValue;\n\n // Create the new current file with new values\n File stepFileCurr = new File(pressNum + SYSTAB_STEPIO_FOLDER + \"Curr\" + stepNumber + \"IO.text\"); // FolderName\\StepIO\\CurrStepxIO.txt - File with value of current moment & name of systabIO\n\n\n // Writes data into IOLog file - only those which aren't equal to the value of inputIO(from press) -> Done current topic check\n if (!endResultArr[2].equals(topicMap.get(endResultArr[1]))){ // Check if the new value and old value are equal , not equal -> show to user and save in log\n String timeStamp = new SimpleDateFormat(\"dd.MM.yyyy HH:mm:ss\").format(new Date());\n\n // TODO - Change the values to On / Off\n String logResult = timeStamp + \" \" + stepNumber + \" \" + endResult; // The result which the log file will save & the one which will show the user\n\n resultUser.append(logResult).append(\"\\n\"); // Append the log result to later show to the user\n\n fileBwLog.write(logResult);\n fileBwLog.newLine();\n\n fileBw = new BufferedWriter(new FileWriter(stepFileCurr));\n fileBw.write(endResult + \" \" + completed);\n fileBw.newLine();\n\n int remainTopics = stepMap.get(stepNumber) - 1; // This topic is done -> one less topic in the step\n if(remainTopics == 0){ // When the step don't have any more topics to check , it will remove from the step list and add to the completed step list\n stepList.remove(stepNumber);\n completedList.add(stepNumber);\n }\n stepMap.put(stepNumber, remainTopics);\n\n } else { // When the topic isn't complete\n fileBw = new BufferedWriter(new FileWriter(stepFileCurr));\n fileBw.write(endResult);\n fileBw.newLine();\n }\n\n\n\n\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n return \"CompletionService of SystabIO process Exception\";\n }\n }\n\n listTodo.delete(); // Delete the file to reset the list and write the remain steps\n completedStep.delete(); // Delete the file to reset the list and write the remain steps\n\n // First write all the completed steps\n for (String step: completedList){\n fileCompletedBw.write(step + \" \" + completed);\n fileCompletedBw.newLine();\n }\n // Then all the undone steps\n for (String step: stepList){\n // Write in the completed file\n fileCompletedBw.write(step + \" Undone\");\n fileCompletedBw.newLine();\n // Write in the todosteps , the next time it read only the remaining steps\n fileTodoBw.write(step);\n fileTodoBw.newLine();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Process IO Error\");\n return \"Read error IO\" + \"\\n\"; // Don't change , this return stops the flow !\n\n } finally { // Maybe something better later on ?\n reading = false; // Finish to read all\n if (fileBw != null) try {\n fileBw.close(); // Close to finish the stream and write everything\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (fileBr != null) try {\n fileBr.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (fileTodoBr != null) try {\n fileBr.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (fileBwLog != null) try {\n fileBwLog.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return resultUser.toString();\n }\n return \"No File\";\n }",
"public void save(TaskList taskings) {\n\n try {\n FileWriter fw = new FileWriter(\"./data/duke.txt\");\n for (Task task : taskings) {\n String listOfTasks = task.toString() + System.lineSeparator();\n fw.append(listOfTasks);\n }\n fw.close();\n } catch (IOException e) {\n System.out.println(\"Cannot save data to disk!\");\n e.printStackTrace();\n }\n }",
"public TaskOccurrence buildTaskOccurrenceFromTask(ReadOnlyTask task, String startDate, String endDate) {\n TaskOccurrence toBuild = new TaskOccurrence(task.getLastAppendedComponent());\n toBuild = changeStartDate(toBuild, startDate);\n toBuild = changeEndDate(toBuild, endDate);\n return toBuild;\n }",
"@Override\n\tprotected void outFinish() {\n\n\t}",
"boolean isSetStaEnd();",
"public TaskBookBuilder addUnfinishedEventTasks() {\n final Iterable<EventTask> taskList = (new TypicalEventTasks()).getEventTasks();\n final List<EventTask> toAdd = new ArrayList<EventTask>();\n TaskUnfinishedPredicate predicate = new TaskUnfinishedPredicate(referenceDateTime);\n for (EventTask eventTask : taskList) {\n if (predicate.test(eventTask)) {\n toAdd.add(eventTask);\n }\n }\n return addEventTasks(toAdd);\n }",
"@Override\n public MsgList<VLongArrayListWritable> finishFinal() {\n return null;\n }",
"public ReduceRecordWriter(ReduceTask task) throws FileNotFoundException {\n\t\traf = new RandomAccessFile(Utils.getReduceOutputFileName(task.reducerInputFileNumber, task.outputDir), \"rws\");\n\t\tf = new File(Utils.getReduceOutputFileName(task.reducerInputFileNumber, task.outputDir));\n\t}",
"@Override\r\n public void tasksFinished()\r\n {\n }",
"public void writeData(TaskList tasks) throws IOException {\n FileWriter fw = new FileWriter(file);\n String tmpTxt = \"\";\n\n if (tasks.getSize() > 0) {\n for (int i = 0; i < tasks.getSize() - 1; i++) {\n tmpTxt = tmpTxt + tasks.getDukeList().get(i).format() + \"\\n\";\n }\n tmpTxt = tmpTxt + tasks.getDukeList().get(tasks.getSize() - 1).format();\n }\n\n fw.write(tmpTxt);\n fw.close();\n }",
"public void writeState(float timer, float xPos, float yPos, Float killCount, Float pHealth, Float level, Float gravity) throws IOException {\n boolean append = false;\n FileWriter writer = null;\n try {\n writer = new FileWriter(fileName, append);\n writer.write(timer + \",\" + xPos + \",\"+ yPos + \",\" + killCount + \",\" + pHealth + \",\" + level + \",\" + gravity + \"\\n\");\n } finally {\n if (writer != null) {\n writer.close();\n }\n }\n }",
"public void creatTask(int uid,String title,String detail,int money,String type,int total_num,Timestamp end_time,String state);",
"public void run()\n\tthrows ScheduledTaskException\n{\n\tLog.customer.debug(\"%s::Start of CATMFGDWInvoicePush_FlatFile task ...\",classname);\n\n\t// Read the USPOFlagAction info from cat.dwAction.util\n\tMFGIRFlagAction = ResourceService.getString(\"cat.dwAction\", \"MFGIRFlagAction\");\n\tLog.customer.debug(\"%s::usPOFlagAction ...\", MFGIRFlagAction, classname);\n if (MFGIRFlagAction!=null && ! MFGIRFlagAction.equals(\"None\") && MFGIRFlagAction.indexOf(\"not found\")==-1)\n\t\tisCompletedFlgUpdate = false;\n\tif ( MFGIRFlagAction!=null && MFGIRFlagAction.equals(\"Completed\")&& MFGIRFlagAction.indexOf(\"not found\")==-1)\n \tisCompletedFlgUpdate = true;\n\n\tstartTime = DateFormatter.getStringValue(new ariba.util.core.Date(), \"EEE MMM d hh:mm:ss a z yyyy\", TimeZone.getTimeZone(\"CST\"));\n\tperiodenddate = DateFormatter.toYearMonthDate(Date.getNow());\n\ttry {\n\t\t File out_FlatFile = new File(flatFilePath);\n\t\t Log.customer.debug(\"%s::FilePath:%s\",classname,out_FlatFile);\n\t\t if (!out_FlatFile.exists()) {\n\t\t \tLog.customer.debug(\"%s::if file does not exit then create 1\",classname);\n\t\t\tout_FlatFile.createNewFile();\n\t\t }\n\t\t Log.customer.debug(\"%s::Creating aprint writer obj:\",classname);\n\t\t PrintWriter outPW_FlatFile = new PrintWriter(IOUtil.bufferedOutputStream(out_FlatFile), true);\n\t\t p = Base.getSession().getPartition();\n\t\t message = new FastStringBuffer();\n\t\t mailSubject = \"CATMFGDWInvoicePush_FlatFile Task Completion Status - Completed Successfully\";\n\t\t try\n\t\t {\n\t\t isHeader = false;\n\t\t // Start : SpringRelease_RSD 129 (FDD_131_4.1,4.2 / TDD_131_1.1,1.2)\n\t\t \t\t\t\t\tquery = \"select from ariba.invoicing.core.InvoiceReconciliation\"\n\t\t \t\t\t\t\t+ \" where (DWInvoiceFlag = 'InProcess' or DWInvoiceFlag = 'Processing') \"\n\t\t \t\t\t\t\t+ \"AND this NOT IN (select this from ariba.invoicing.core.InvoiceReconciliation \"\n\t\t \t\t\t\t\t+ \"where (LineItems.Amount.Amount = 0 OR LineItems.Quantity = 0) \"\n\t\t \t\t\t\t\t+ \"AND LineItems.LineType.Category = 1) \";\n \t\t\t\t\t // End : SpringRelease_RSD 129 (FDD_131_4.1,4.2 / TDD_131_1.1,1.2)\n\t\t Log.customer.debug(query);\n AQLQuery aqlquery = null;\n\t\t AQLOptions options = null;\n\t\t AQLResultCollection results = null;\n\n //String topicname = new String(\"InvoiceReconciliationPush\");\n\t\t //String eventsource = new String(\"ibm_caps_invoicereconpush\");\n\n\t\t aqlquery = AQLQuery.parseQuery(query);\n\t\t options = new AQLOptions(p);\n\t\t results = Base.getService().executeQuery(aqlquery, options);\n\t\t totalNumberOfIrs = results.getSize();\n\t\t if(results.getErrors() != null)\n\t\t \tLog.customer.debug(\"ERROR GETTING RESULTS in Results\");\n while(results.next()){\n\t\t\t\tinvrecon = (InvoiceReconciliation)(results.getBaseId(\"InvoiceReconciliation\").get());\n\t\t\t\tif(invrecon != null){\n\t\t\t\t\ttry{\n \tIrLineItem = (BaseVector)invrecon.getLineItems();\n\t\t\t\t\t\tLog.customer.debug(\"%s::Ir Line Item:%s\",classname,IrLineItem);\n\t\t\t\t\t\t// Shaila : Issue 754 : To ensure no IR with zero line item is processed\n\t\t\t\t\t\tint lineCount = invrecon.getLineItemsCount();\n\t\t\t\t\t\tLog.customer.debug(\"%s::Line Item count for IR:%s \",classname,lineCount);\n\t\t\t\t\t\tLog.customer.debug(\"%s::IR_periodenddate:%s\",classname,periodenddate);\n\t\t\t\t\t\tLog.customer.debug(\"%s::IR_datasetFacilityCode:%s\",classname,datasetFacilityCode);\n\t\t\t\t\t\t//outPW_FlatFile.write(periodenddate);\n\t\t\t\t\t\t//outPW_FlatFile.write(datasetFacilityCode);\n\t\t\t\t\t\tpartitionNumber = invrecon.getPartitionNumber();\n\t\t\t\t\t\t//String partition_name = String(partitionName);\n\t\t\t\t\t\tLog.customer.debug(\"%s::IR_Partition:%s\",classname,partitionNumber);\n\n\t\t\t\t\t\tif (partitionNumber==3){\n\t\t\t\t\t\t\t//Date pSD = (Date)invrecon.getFieldValue(\"BlockStampDate\");\n\t\t\t\t\t\t\t// Issue 215\n\t\t\t\t\t\t\t//Date pSD = (Date)invrecon.getFieldValue(\"ControlDate\");\n\t\t\t\t\t\t\tDate pSD = (Date)invrecon.getFieldValue(\"ApprovedDate\");\n\t\t\t\t\t\t\tperiodStartdate = DateFormatter.toYearMonthDate(pSD);\n\t\t\t\t\t\t\tLog.customer.debug(\"%s::Period Start Date:%s\",pSD,classname);\n\t\t\t\t\t\t\tpartitionName = \"mfg1\";\n\t\t\t\t\t\t\tihBookdate = DateFormatter.toYearMonthDate(pSD);\n\t\t\t\t\t\t\t//outPW_FlatFile.write(periodStartdate+\"~/\");\n\t\t\t\t\t\t \t//outPW_FlatFile.write(\"U9\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (lineCount > 0){\n \tint IrLineItem_vector = IrLineItem.size();\n\t\t\t\t\t\t\tfor (int i =0; i<IrLineItem_vector;i++){\n\t\t\t\t\t\t\t\tLineItem irli = (LineItem)IrLineItem.get(i);\n\t\t\t\t\t\t\t\toutPW_FlatFile.write(partitionName+\"~|\");\n\t\t\t\t\t\t\t\tirFacilityFlag = (String)invrecon.getFieldValue(\"FacilityFlag\");\n\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Ir facility flag:%s\",classname,irFacilityFlag);\n\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(irFacilityFlag)){\n\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irFacilityFlag+\"~|\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//outPW_FlatFile.write(recordType+\"~|\");\n\t\t\t\t\t\t\t\t//outPW_FlatFile.write(fileLayoutVersion+\"~|\"+\"M\"+\"~|\");\n\n\t\t\t\t\t\t\t\tirUniqueName = (String)invrecon.getFieldValue(\"UniqueName\");\n\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::irUniqueName: %s\",classname,irUniqueName);\n\t\t\t\t\t\t\t\t//Start: Q4 2013 - RSD117 - FDD 2/TDD 2\n\t\t\t\t\t\t\t\t//outPW_FlatFile.write(irUniqueName+\"~|\");\n\n\t\t\t\t\t\t\t\tString SupInvNumber = (String)invrecon.getDottedFieldValue(\"Invoice.InvoiceNumber\");\n\t\t\t\t\t\t\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile: SupInvNumber: \"+ SupInvNumber);\n\t\t\t\t\t\t\t\tint invleng = SupInvNumber.length();\n\t\t\t\t\t\t\t\tif (invleng > 35)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString SupInvNumber1 = getFormatattedTxt(SupInvNumber);\n\t\t\t\t\t\t\t\t\tint invleng1 = SupInvNumber1.length();\n\t\t\t\t\t\t\t\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile: invleng1: \"+ invleng1);\n\t\t\t\t\t\t\t\t\tString FormattedirUniqueName = getFormatattedTxt(irUniqueName, invleng1);\n\t\t\t\t\t\t\t\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile: FormattedirUniqueName: \"+ FormattedirUniqueName);\n\n\t\t\t\t\t\t\t\t\t// Writing IH-Invoice-No - 4\n\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(FormattedirUniqueName+\"~|\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString FormattedirUniqueName = getFormatattedTxt(irUniqueName, invleng);\n\t\t\t\t\t\t\t\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile: FormattedirUniqueName: \"+ FormattedirUniqueName);\n\n\t\t\t\t\t\t\t\t\t// Writing IH-Invoice-No - 4\n\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(FormattedirUniqueName+\"~|\");\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//End: Q4 2013 - RSD117 - FDD 2/TDD 2\n\n\t\t\t\t\t\t\t\t// Start : SpringRelease_RSD 129 (FDD_129_4.1 / TDD_129_1.1)\n\t\t\t\t\t\t\t\tif(invrecon.getFieldValue(\"Supplier\") != null)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tirSupplierLocation = (String)invrecon.getDottedFieldValue(\"Supplier.UniqueName\");\n\t\t\t\t\t\t\t\t\t// End : SpringRelease_RSD 129 (FDD_129_4.1 / TDD_129_1.1)\n\t\t\t\t\t\t\t\t\tif (irSupplierLocation != null){\n\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::irSupplierLocation:%s\",classname,irSupplierLocation);\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irSupplierLocation+\"~|\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t\t\tDate Ir_invDate = (Date)invrecon.getFieldValue(\"InvoiceDate\");\n\t\t\t\t\t\t\t\tif (Ir_invDate!=null){\n\t\t\t\t\t\t\t\t\tIrinvdateyymmdd = DateFormatter.toYearMonthDate(Ir_invDate);\n\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Invoice Date:%s\",classname,Irinvdateyymmdd);\n\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(Irinvdateyymmdd+\"~|\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//Log.customer.debug(\"%s::ihRecordStatus:%s\",classname,ihRecordStatus);\n\t\t\t\t\t\t\t\t//outPW_FlatFile.write(ihRecordStatus+\"~|\");\n\n\t\t\t\t\t\t\t\tMoney IrTotalcost = (Money)invrecon.getFieldValue(\"TotalCost\");\n\t\t\t\t\t\t\t\tif (IrTotalcost!=null){\n\t\t\t\t\t\t\t\t\tIrtotalcostamount = (BigDecimal)invrecon.getDottedFieldValue(\"TotalCost.Amount\");\n\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Total cost amount:%s\",classname,Irtotalcostamount);\n\t\t\t\t\t\t\t\t\tif (Irtotalcostamount!=null) {\n\t\t\t\t\t\t\t\t\t\tint Ir_tca = Irtotalcostamount.intValue();\n\t\t\t\t\t\t\t\t\t\tif (Ir_tca >= 0) {\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"01\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse if (Ir_tca < 0){\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"02\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(ihBookdate+\"~|\");\n\t\t\t\t\t\t\t\t\t\tirTotalCostCurrency = IrTotalcost.getCurrency().getUniqueName();\n\t\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(irTotalCostCurrency)){\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::TotalCost Currency:%s\",classname,irTotalCostCurrency);\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irTotalCostCurrency+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tirstngTotalCost = BigDecimalFormatter.getStringValue(Irtotalcostamount);\n\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Writing IR total cost:%s\",classname,irstngTotalCost);\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irstngTotalCost+\"~|\");\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(ihBookdate+\"~|\");\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(ihBookdate+\"~|\");\n\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t}\n irTotalInvoiceDiscountDollarAmount = (BigDecimal)invrecon.getDottedFieldValue(\"TotalInvoiceDiscountDollarAmount.Amount\");\n\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::TotalInvoiceDiscountDollarAmount:%s\",classname,irTotalInvoiceDiscountDollarAmount);\n\t\t\t\t\t\t\t\t/* if (irTotalInvoiceDiscountDollarAmount==Constants.ZeroBigDecimal) {\n\t\t\t\t\t\t\t\t\t//Log.customer.debug(\"%s::TotalInvoiceDiscountDollarAmount is:%s\",classname,TotalInvoiceDiscountDollarAmount_2);\n\t\t\t\t\t\t\t\t\t outPW_FlatFile.write(\"0000000000000.00\"+\"\\n\");\n\t\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t\tif (irTotalInvoiceDiscountDollarAmount!=null) {\n\t\t\t\t\t\t\t\t\t\tint ir_TIDDA = irTotalInvoiceDiscountDollarAmount.intValue();\n\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::TotalInvoiceDiscountDollarAmount integer value:%s\",classname,ir_TIDDA);\n\t\t\t\t\t\t\t\t\t\tif (ir_TIDDA==0){\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"0000000000000.00\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\tstrgDiscountAmount = BigDecimalFormatter.getStringValue(irTotalInvoiceDiscountDollarAmount);\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Writting the discount amount:%s\",classname,strgDiscountAmount);\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(strgDiscountAmount+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n }\n else {\n\t\t\t\t\t\t\t\t\t \tLog.customer.debug(\"%s::No value for irTotalInvoiceDiscountDollarAmount so leaving it blanck\");\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t IrLineItem2 = (InvoiceReconciliationLineItem)IrLineItem.get(i);\n\t\t\t\t\t\t\t\t\t IrnumberInCollection = IrLineItem2.getNumberInCollection();\n\t\t\t\t\t\t\t\t\t numberInCollection = IntegerFormatter.getStringValue(IrnumberInCollection);\n\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::IR number in collection:%s\",classname,numberInCollection);\n\t\t\t\t\t\t\t\t\t outPW_FlatFile.write(numberInCollection+\"~|\");\n\n\t\t\t\t\t\t\t\t\t IrLineDescritpiton = IrLineItem2.getDescription();\n\t\t\t\t\t\t\t\t\t if (IrLineDescritpiton!=null){\n\t\t\t\t\t\t\t\t\t \tLog.customer.debug(\"%s::IR_LineDescription:%s\",classname,IrLineDescritpiton);\n\t\t\t\t\t\t\t\t\t\tirDescItemNumber = IrLineDescritpiton.getItemNumber(); //what if this is blanck, right now considering blanck also as null\n\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Writing IR_LineDescription Item Number:%s\",classname,irDescItemNumber);\n\t\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(irDescItemNumber)){\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irDescItemNumber+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"K\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"0\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t//Writing item desc-15\n\t\t\t\t\t\t\t\t\t\t// Start : SpringRelease_RSD 129 (FDD_129_4.2 / TDD_129_1.2)\n\t\t\t\t\t\t\t\t\t\tString descDescription = \"\";\n\t\t\t\t\t\t\t\t\t\tString commonCCId = \"\";\n\t\t\t\t\t\t\t\t\t\tdescDescription_temp = (String)IrLineDescritpiton.getFieldValue(\"Description\");\n\t\t\t\t\t\t\t\t\t\tcommonCC = IrLineDescritpiton.getCommonCommodityCode();\n\t\t\t\t\t\t\t\t\t\tif (commonCC!=null)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tcommonCCId = (String)commonCC.getName().getPrimaryString();\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::IR Description CommodityCode UniqueName:%s\",classname,commonCCId);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::CommonCommdityCode:%s\",classname,commonCCId);\n\n\n\t\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(descDescription_temp))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::itemDescription array is:%s\",classname,descDescription_temp);\n\n\t\t\t\t\t\t\t\t\t\t char[] c_array;\n\t\t\t\t\t\t\t\t\t\t String c_string;\n\t\t\t\t\t\t\t\t\t\t byte[] c_byte_array;\n\t\t\t\t\t\t\t\t\t\t c_array = descDescription_temp.toCharArray();\n\n\t\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::itemDescription:%s\",classname,c_array);\n\t\t\t\t\t\t\t\t\t\t for (char c : c_array)\n\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t c_string = Character.toString(c);\n\n\t\t\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::itemDescription:%s\",classname,c_string);\n\n\t\t\t\t\t\t\t\t\t\t\t System.out.print(c_string);\n\t\t\t\t\t\t\t\t\t\t\t c_byte_array = c_string.getBytes();\n\n\t\t\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::itemDescription byte array:%s\",classname,c_byte_array);\n\t\t\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::itemDescription byte array length:%s\",classname,c_byte_array.length);\n\n\t\t\t\t\t\t\t\t\t\t\t if (c_byte_array.length > 1)\n\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::itemDescription byte array length > 1\",classname);\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::itemDescription:%s\",classname,c_byte_array);\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::itemDescription:%s\",classname,c_string);\n\t\t\t\t\t\t\t\t\t\t\t\t\tdescDescription_temp = commonCCId;\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Setting Description as Common commodity code:%s\",classname,descDescription_temp);\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t// End : SpringRelease_RSD 129 (FDD_129_4.2 / TDD_129_1.2)\n\n\t\t\t\t\t\t\t\t\t\t\t// Filtering Non-ASCII characters\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Description after checking bytes is:%s\",classname,descDescription_temp);\n\n\n\t\t\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(descDescription_temp))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tdescDescription = descDescription_temp.replaceAll(\"[^\\\\p{ASCII}]\", \"\");\n\t\t\t\t\t\t\t\t\t\t\t\tdescDescription = StringUtil.replaceCharByChar(descDescription,'\\r',' ');\n\t\t\t\t\t\t\t\t\t\t\t\tdescDescription = StringUtil.replaceCharByChar(descDescription,'\\t',' ');\n\t\t\t\t\t\t\t\t\t\t\t\tdescDescription = StringUtil.replaceCharByChar(descDescription,'\\n',' ');\n\t\t\t\t\t\t\t\t\t\t\t\tdescDescription = StringUtil.replaceCharByChar(descDescription,'\\'',' ');\n\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Description:%s\",classname,descDescription);\n\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(descDescription+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tirCommodityCode = IrLineDescritpiton.getCommonCommodityCode();\n\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::IR Description CommodityCode:%s\",classname,irCommodityCode);\n\t\t\t\t\t\t\t\t\t\tif (irCommodityCode!=null){\n\t\t\t\t\t\t\t\t\t\t\tccUniqueName = irCommodityCode.getUniqueName();\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::IR Description CommodityCode UniqueName:%s\",classname,ccUniqueName);\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(ccUniqueName+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdescSupplierPartNumber = IrLineDescritpiton.getSupplierPartNumber();\n\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Description_SupplierPartNumber:%s\",classname,descSupplierPartNumber);\n\t\t\t\t\t\t\t\t\t\tif(!StringUtil.nullOrEmptyOrBlankString(descSupplierPartNumber)){\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Writing Description_SupplierPartNumber:%s\",classname,descSupplierPartNumber);\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(descSupplierPartNumber+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tIrLineType = IrLineItem2.getLineType();\n\t\t\t\t\t\t\t\t\tif(IrLineType!=null){\n\t\t\t\t\t\t\t\t\t\tint category = IrLineType.getCategory();\n\t\t\t\t\t\t\t\t\t\tif (category==1){\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"01\"+\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\telse if (category==2){\n\t\t\t\t\t\t\t\t\t\t\tString irLineTypeString = (String)IrLineType.getFieldValue(\"UniqueName\");\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s:: LineType of Ir Line::%s\",classname,irLineTypeString);\n\t\t\t\t\t\t\t\t\t\t\tif(irLineTypeString.equals(\"VATCharge\")){\n\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"96\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"02\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse if (category==4){\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"05\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse if (category==8) {\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"27\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse if (category==16){\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"13\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse if (category==32) {\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"12\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\tBoolean isHaz = (Boolean)IrLineItem2.getFieldValue(\"IsHazmat\");\n\t\t\t\t\t\t\t\t\t// irHazmat = BooleanFormatter.getStringValue(IrLineItem2.getFieldValue(\"IsHazmat\"));\n\t\t\t\t\t\t\t\t\tif(isHaz != null)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t boolean irHazmatBoolean = isHaz.booleanValue();\n\t\t\t\t\t\t\t\t\t// Log.customer.debug(\"Ir Hazmat value:\",irHazmatBoolean);\n\t\t\t\t\t\t\t\t\t if(irHazmatBoolean)\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"3\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"0\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"0~|\");\n\t\t\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t\tirHazmat = BooleanFormatter.getStringValue(IrLineItem2.getFieldValue(\"IsHazmat\"));\n\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Ir Hazmat value:%s\",classname,irHazmat);\n\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(irHazmat)){\n\t\t\t\t\t\t\t\t\t\tif (irHazmat==\"true\"){\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"3\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"0\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"0~|\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t*/\n\n\n\t\t\t\t\t\t\t\t\t// Start : SpringRelease_RSD 129/131 (FDD_129_4.4 / TDD_129_1.4 / FDD_131_4.4/TDD_131_1.5)\n\t\t\t\t\t\t\t\t\t //BigDecimal irliAmount = IrLineItem2.getAmount().getAmount();\n\t\t\t\t\t\t\t\t\t BigDecimal IrLineQuantity1 = IrLineItem2.getQuantity();\n\t\t\t\t\t\t\t\t\t Log.customer.debug(\"::IR LineQuantity:\" +IrLineQuantity1);\n\t\t\t\t\t\t\t\t\t String irliQuantity = \"\";\n\n\t\t\t\t\t\t\t\t\t // Writing IL-Bill-Qty-20\n\t\t\t\t\t\t\t\t\t if (IrLineQuantity1 != null)\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tif(IrLineType!=null && IrLineType.getCategory()== 2)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"Its Tax line item passing Quantity as 1: \"+taxLineQuantity);\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(taxLineQuantity+\"~|\");\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse if (IrLineItem2.getAmount().isNegative())\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif(IrLineQuantity1.intValue() < 0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"IR LineAmount is negative and quantity is also negative no change required:\" +IrLineQuantity1);\n\t\t\t\t\t\t\t\t\t\t\t\tirliQuantity = BigDecimalFormatter.getStringValue(IrLineQuantity1);\n\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::IR LineQuantity:%s\",classname,irliQuantity);\n\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irliQuantity+\"~|\");\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tIrLineQuantity1 = IrLineQuantity1.multiply(new BigDecimal(-1));\n\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"IR LineAmount is negative hence setting LI Quantity as negative:\" +IrLineQuantity1);\n\t\t\t\t\t\t\t\t\t\t\t\tirliQuantity = BigDecimalFormatter.getStringValue(IrLineQuantity1);\n\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::IR LineQuantity:%s\",classname,irliQuantity);\n\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irliQuantity+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tirliQuantity = BigDecimalFormatter.getStringValue(IrLineQuantity1);\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::IR LineQuantity:%s\",classname,irliQuantity);\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irliQuantity+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t //End : SpringRelease_RSD 129/131 (FDD_129_4.4 / TDD_129_1.4 / FDD_131_4.4/TDD_131_1.5)\n\n\n\n\t\t\t\t\t\t\t\t\t//IrUOM = (UnitOfMeasure)IrLineDescritpiton.getUnitOfMeasure();\n\n\t\t\t\t\t\t\t\t\t// Start : SpringRelease_RSD 131 (FDD_131_4.4 / TDD_131_1.5)\n\n\t\t\t\t\t\t\t\t\t // Writing IL-Bill-Qty-Unit-Of-Measure-21\n\t\t\t\t\t\t\t\t\t //IrUOM = (UnitOfMeasure)IrLineDescritpiton.getUnitOfMeasure();\n\t\t\t\t\t\t\t\t\t String irUOM_UniqueName1 = \"\";\n\n\t\t\t\t\t\t\t\t \tif(IrLineType!=null && IrLineType.getCategory()== 2)\n\t\t\t\t\t\t\t\t \t{\n\t\t\t\t\t\t\t\t\t\t Log.customer.debug(\"Its Tax line item passing UOM as LOT: \");\n\t\t\t\t\t\t\t\t\t\t outPW_FlatFile.write(irUOM_UniqueName+\"~|\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if ( IrLineItem2.getDottedFieldValue(\"Description.UnitOfMeasure\") != null)\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t// End : SpringRelease_RSD 131 (FDD_131_4.4 / TDD_131_1.5)\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"Not tax line item\");\n\t\t\t\t\t\t\t\t\t\t\tString uOMUniqueName = (String)IrLineItem2.getDottedFieldValue(\"Description.UnitOfMeasure.UniqueName\");\n\t\t\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::uOMUniqueName 1 %s\",classname,uOMUniqueName);\n\t\t\t\t\t\t\t\t\t\t\t Object irUOM_object = \tIrLineItem2.getDottedFieldValue(\"Description.UnitOfMeasure.CAPSUnitOfMeasure\");\n\t\t\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::irUOM_object 2 %s\",classname,irUOM_object);\n\t\t\t\t\t\t\t\t\t\t\t if(irUOM_object != null)\n\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\tirUOM_UniqueName1 = irUOM_object.toString();\n\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::IR Desc UOM 3:%s\",classname,irUOM_UniqueName1);\n\t\t\t\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(irUOM_UniqueName1))\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irUOM_UniqueName1+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::irUOM_UniqueName writen ti file 4 %s\",classname,irUOM_UniqueName1);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t//\t\t\t\t\t\t\t\t\t\t\t\t\t IF CAPSUnitOfMeasure = Enpty THEN LineItems.Description.UnitOfMeasure.UniqueName\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(uOMUniqueName))\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(uOMUniqueName+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::CAPSUnitOfMeasure = Enpty 5 %s\",classname,uOMUniqueName);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t// IF CAPSUnitOfMeasure = NULL THEN LineItems.Description.UnitOfMeasure.UniqueName\n\t\t\t\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(uOMUniqueName))\n\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(uOMUniqueName+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::CAPSUnitOfMeasure = Enpty 6 %s\",classname,uOMUniqueName);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\tif (IrTotalcost!=null){\n\t\t\t\t\t\t\t\t\t\tirTotalCostCurrency = IrTotalcost.getCurrency().getUniqueName();\n\t\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(irTotalCostCurrency)){\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::TotalCost Currency:%s\",classname,irTotalCostCurrency);\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irTotalCostCurrency+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t \toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\n\n\t\t\t\t\t\t\t\t\t// Start : SpringRelease_RSD 129 (FDD_129_4.4 / TDD_129_1.4)\n\t\t\t\t\t\t\t\t\tirdecsPrice = BigDecimalFormatter.getStringValue(IrLineDescritpiton.getPrice().getAmount().abs());\n\t\t\t\t\t\t\t\t\t // End : SpringRelease_RSD 129 (FDD_129_4.4 / TDD_129_1.4)\n\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::Ir desc Price:%s\",classname,irdecsPrice);\n\t\t\t\t\t\t\t\t\t if (!StringUtil.nullOrEmptyOrBlankString(irdecsPrice)){\n\t\t\t\t\t\t\t\t\t \toutPW_FlatFile.write(irdecsPrice+\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t \toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\n\n\t\t\t\t\t\t\t\t\t // Start : SpringRelease_RSD 131 (FDD_131_4.4 / TDD_131_1.5)\n\t\t\t\t\t\t\t\t\tString irUOM_UniqueName2 = \"\";\n\n\t\t\t\t\t\t\t\t if ( IrLineItem2.getDottedFieldValue(\"Description.UnitOfMeasure\") != null)\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t if(IrLineType!=null && IrLineType.getCategory()== 2)\n\t\t\t\t\t\t\t\t\t {\n\n\t\t\t\t\t\t\t\t\t\t\t Log.customer.debug(\"Its Tax line item passing UOM as LOT: \");\n\t\t\t\t\t\t\t\t\t\t\t outPW_FlatFile.write(irUOM_UniqueName+\"~|\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t// End : SpringRelease_RSD 131 (FDD_131_4.4 / TDD_131_1.5)\n\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"Not tax line item\");\n\t\t\t\t\t\t\t\t\t\tString uOMUniqueName = (String)IrLineItem2.getDottedFieldValue(\"Description.UnitOfMeasure.UniqueName\");\n\t\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::uOMUniqueName 1 %s\",classname,uOMUniqueName);\n\t\t\t\t\t\t\t\t\t\t Object irUOM_object = \tIrLineItem2.getDottedFieldValue(\"Description.UnitOfMeasure.CAPSUnitOfMeasure\");\n\t\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::irUOM_object 2 %s\",classname,irUOM_object);\n\t\t\t\t\t\t\t\t\t\t if(irUOM_object != null)\n\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tirUOM_UniqueName2 = irUOM_object.toString();\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::IR Desc UOM 3:%s\",classname,irUOM_UniqueName2);\n\t\t\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(irUOM_UniqueName2))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irUOM_UniqueName2+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::irUOM_UniqueName writen ti file 4 %s\",classname,irUOM_UniqueName2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\t\t\t\t\t IF CAPSUnitOfMeasure = Enpty THEN LineItems.Description.UnitOfMeasure.UniqueName\n\t\t\t\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(uOMUniqueName))\n\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(uOMUniqueName+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::CAPSUnitOfMeasure = Enpty 5 %s\",classname,uOMUniqueName);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// IF CAPSUnitOfMeasure = NULL THEN LineItems.Description.UnitOfMeasure.UniqueName\n\t\t\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(uOMUniqueName))\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(uOMUniqueName+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::CAPSUnitOfMeasure = Enpty 6 %s\",classname,uOMUniqueName);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t \toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t outPW_FlatFile.write(\"1.0\"+\"~|\");\n\t\t\t\t\t\t\t\t\t irLineAmount = BigDecimalFormatter.getStringValue(IrLineItem2.getAmount().getAmount());\n\t\t\t\t\t\t\t\t\t if (!StringUtil.nullOrEmptyOrBlankString(irLineAmount)) {\n\t\t\t\t\t\t\t\t\t \tLog.customer.debug(\"%s::Ir Line Amount:%s\",classname,irLineAmount);\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irLineAmount+\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t \toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t outPW_FlatFile.write(\"00000.0000\"+\"~|\");\n\t\t\t\t\t\t\t\t\t irLineCapsCharge = (ClusterRoot)IrLineItem2.getFieldValue(\"CapsChargeCode\");\n\t\t\t\t\t\t\t\t\t if (irLineCapsCharge!=null){\n\t\t\t\t\t\t\t\t\t \tLog.customer.debug(\"%s::Ir Line caps charge code:%s\",classname,irLineCapsCharge);\n\t\t\t\t\t\t\t\t\t\tirCapsUniqueName = (String)irLineCapsCharge.getFieldValue(\"UniqueName\");\n\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Ir Line caps charge code UniqueName:%s\",classname,irCapsUniqueName);\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irCapsUniqueName+\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t \toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t irLinePoNumber = (String)invrecon.getFieldValue(\"PONumber\");\n\t\t\t\t\t\t\t\t\t if (!StringUtil.nullOrEmptyOrBlankString(irLinePoNumber)){\n\t\t\t\t\t\t\t\t\t \tLog.customer.debug(\"%s::IR Line PO Number:%s\",classname,irLinePoNumber);\n\t\t\t\t\t\t\t\t\t \toutPW_FlatFile.write(irLinePoNumber+\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t \toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t irLinePoLineNumber = IntegerFormatter.getIntValue(IrLineItem2.getFieldValue(\"POLineItemNumber\"));\n\t\t\t\t\t\t\t\t\t irLinePoLinenoString = IntegerFormatter.getStringValue(irLinePoLineNumber);\n\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::Line po Line number:%s\",classname,irLinePoLineNumber);\n\t\t\t\t\t\t\t\t\t if (!StringUtil.nullOrEmptyOrBlankString(irLinePoLinenoString) && !irLinePoLinenoString.equals(\"0\")){\n\n\t\t\t\t\t\t\t\t\t \t\tLog.customer.debug(\"%s::Ir Line Po Line Number:%s\",classname,irLinePoLinenoString);\n\t\t\t\t\t\t\t\t\t \t\t//String irLinePoLinenoString = IntegerFormatter.getStringValue(irLinePoLineNumber);\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irLinePoLinenoString+\"~|\");\n\t\t\t\t\t\t\t\t\t \t}\n\t\t\t\t\t\t\t\t\t \telse {\n\t\t\t\t\t\t\t\t\t \t\t// IF IR.LineItems. POLineItemNumber is NULL THEN SEND VALUE OF 1\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"1\"+\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t if (irLinePoNumber!=null){\n\t\t\t\t\t\t\t\t\t \tif (StringUtil.startsWithIgnoreCase(irLinePoNumber , \"C\")){\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"C\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"P\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t \toutPW_FlatFile.write(\"N\"+\"~|\");\n\t\t\t\t\t\t\t\t\t }\n\n\n\t\t\t\t\t\t\t\t\t int partitionNumber_2 = invrecon.getPartitionNumber();\n\t\t\t\t\t\t\t\t\t Log.customer.debug(\"%s::partiton number 2nd place:%s\",classname,partitionNumber_2);\n\t\t\t\t\t\t\t\t\t if (partitionNumber_2==2){\n\t\t\t\t\t\t\t\t\t \tirAccounting = IrLineItem2.getAccountings();\n\t\t\t\t\t\t\t\t\t\tif (irAccounting!=null){\n\t\t\t\t\t\t\t\t\t\t\tirSplitAccounting = (BaseVector)irAccounting.getSplitAccountings();\n\t\t\t\t\t\t\t\t\t\t\tirSplitaccSize = irSplitAccounting.size();\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Split acc size:%s\",classname,irSplitaccSize);\n\t\t\t\t\t\t\t\t\t\t\tif (irSplitaccSize > 0){\n\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug (\"%s::getting accounting facility\",classname);\n\t\t\t\t\t\t\t\t\t\t\t\tString ir_AccFac= null;\n\t\t\t\t\t\t\t\t\t\t\t\tString ir_Order_name = null;\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int j = 0; j<irSplitaccSize;j++){\n\t\t\t\t\t\t\t\t\t\t\t\t\tirSplitAccounting2 = (SplitAccounting)irSplitAccounting.get(0);\n\t\t\t\t\t\t\t\t\t\t\t\t\t//String irAccountingFacility = (String)irSplitAccounting2.getFieldValue(\"AccountingFacility\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tString irAccountingFacility = (String)irSplitAccounting2.getFieldValue(\"Facility.UniqueName\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Accounting facility:%s\",classname,irAccountingFacility);\n\t\t\t\t\t\t\t\t\t\t\t\t\tString ir_Order = (String)irSplitAccounting2.getFieldValue(\"Order\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(!StringUtil.nullOrEmptyOrBlankString(irAccountingFacility)){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Accounting facility:%s\",classname,irAccountingFacility);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tir_AccFac = irAccountingFacility+\"~|\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(irAccountingFacility+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tir_AccFac = (\"AA\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// outPW_FlatFile.write(\"~|\"+\"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (!StringUtil.nullOrEmptyOrBlankString(ir_Order)){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Accounting Order:%s\",classname,ir_Order);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tir_Order_name = ir_Order;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tir_Order_name =(\"~|\");\n }\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(ir_AccFac);\n\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(ir_Order_name);\n }\n\t\t\t\t\t\t\t\t\t\t\t else{\n\t\t\t\t\t\t\t\t\t\t\t \toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(\"~|\"+\"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t \toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t \tirAccounting = IrLineItem2.getAccountings();\n\t\t\t\t\t\t\t\t\t\tif (irAccounting!=null){\n\t\t\t\t\t\t\t\t\t\t\tirSplitAccounting = (BaseVector)irAccounting.getSplitAccountings();\n\t\t\t\t\t\t\t\t\t\t\tirSplitaccSize = irSplitAccounting.size();\n\t\t\t\t\t\t\t\t\t\t\tif (irSplitaccSize > 0){\n\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int k = 0; k<irSplitaccSize;k++){\n\t\t\t\t\t\t\t\t\t\t\t\t\tirSplitAccounting2 = (SplitAccounting)irSplitAccounting.get(0);\n\t\t\t\t\t\t\t\t\t\t\t\t\tirFacility = (ClusterRoot)irSplitAccounting2.getFieldValue(\"Facility\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (irFacility!=null){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIrFacilityUniqueName = (String)irFacility.getFieldValue(\"UniqueName\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!StringUtil.nullOrEmptyOrBlankString(IrFacilityUniqueName)){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s:: IR Facility:%s\",classname,IrFacilityUniqueName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tirFac = IrFacilityUniqueName+\"~|\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tirFac2 = IrFacilityUniqueName+\"~|\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(IrFacilityUniqueName+\"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tirFac = (\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tirFac2 = (\"AA\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(\"~|\"+\"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tirFac = (\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tirFac2 = (\"AA\"+\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tirCostCenter = (ClusterRoot)irSplitAccounting2.getFieldValue(\"CostCenter\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (irCostCenter!=null){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tirCC = (String)irCostCenter.getFieldValue(\"CostCenterCode\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!StringUtil.nullOrEmptyOrBlankString(irCC)){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s:: IR Cost Center:%s\",classname,irCC);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tirCCString = irCC+\"~|\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tirCCString = (\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tirCCString = (\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tirSubAcc = (ClusterRoot)irSplitAccounting2.getFieldValue(\"SubAccount\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (irSubAcc!=null){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tirSubAccStrng = (String)irSubAcc.getFieldValue(\"UniqueName\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!StringUtil.nullOrEmptyOrBlankString(irSubAccStrng)){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s:: IR Sub Account:%s\",classname,irSubAccStrng);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tirStrngsubacc = irSubAccStrng+\"~|\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tirStrngsubacc = (\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tirStrngsubacc = (\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tirAccount = (ClusterRoot)irSplitAccounting2.getFieldValue(\"Account\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(irAccount!=null){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tirAccCode = (String)irAccount.getFieldValue(\"AccountCode\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!StringUtil.nullOrEmptyOrBlankString(irAccCode)){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s:: IR Account code:%s\",classname,irAccCode);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tirAccCodeStrng = irAccCode+\"~|\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tirAccCodeStrng = (\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n }\n\t\t\t\t\t\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t \tirAccCodeStrng = (\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t }\n }\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irFac);\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irFac2);\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irFac);\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irCCString);\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irStrngsubacc);\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irAccCodeStrng);\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irFac);\n }\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\tirBuyerCode = (ClusterRoot)IrLineItem2.getFieldValue(\"BuyerCode\");\n\t\t\t\t\t\t\t\t\t\t\tif (irBuyerCode!=null){\n\t\t\t\t\t\t\t\t\t\t\t\tirBuyercc = (String)irBuyerCode.getFieldValue(\"BuyerCode\");\n\t\t\t\t\t\t\t\t\t\t\t\tif(!StringUtil.nullOrEmptyOrBlankString(irBuyercc)){\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s:: IR Buyer Code:%s\",classname,irBuyercc);\n\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irBuyercc);\n\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(\"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(\"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\tirLineOrder = (DirectOrder)IrLineItem2.getOrder();\n\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::IR line Purchase Order:%s\",classname,irLineOrder);\n\t\t\t\t\t\t\t\t\t\t\t\tif (irLineOrder!=null){\n\t\t\t\t\t\t\t\t\t\t\t\t\tirOrderLineItem = (ariba.purchasing.core.POLineItem)IrLineItem2.getOrderLineItem();\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Order Line Item:%s\",classname,irOrderLineItem);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (irOrderLineItem!=null){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tirPOLineBuyerCode = (ClusterRoot)irOrderLineItem.getFieldValue(\"BuyerCode\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (irPOLineBuyerCode!= null){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tirPOlinebuyercc = (String)irPOLineBuyerCode.getFieldValue(\"BuyerCode\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::Ir PO Line Buyer Code\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(irPOlinebuyercc +\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(\"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(\"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(\"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t//outPW_FlatFile.write(\"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//IsAdHoc - catalog or non catalog, Issue #269 - Dharshan\n\t\t\t\t\t\t\t\t\t\tisAdHocBoolean = true;\n\t\t\t\t\t\t\t\t\t\tisAdHoc = null;\n\t\t\t\t\t\t\t\t\t\tif (irli.getDottedFieldValue(\"IsAdHoc\") != null) {\n\t\t\t\t\t\t\t\t\t\t\tisAdHoc = (Boolean) irli.getDottedFieldValue(\"IsAdHoc\");\n\t\t\t\t\t\t\t\t\t\t\tisAdHocBoolean = BooleanFormatter.getBooleanValue(isAdHoc);\n\t\t\t\t\t\t\t\t\t\t\tLog.customer.debug(\"%s::isAdHocBoolean:%s\",classname,isAdHocBoolean);\n\t\t\t\t\t\t\t\t\t\t\tif(isAdHocBoolean == false){\n\t\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|Catalog Item:\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse {Log.customer.debug(\"%s::isAdHocBoolean is true, not catalog item\",classname);\n\t\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {Log.customer.debug(\"%s::isAdHocBoolean is null, leave blank\",classname);\n\t\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"~|\");\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\toutPW_FlatFile.write(\"\\n\");\n\n\n\n\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t totalNumberOfIrWritten++;\n\t\t\t\t\t\t\t\t\t if(isCompletedFlgUpdate) {\n\t\t\t\t\t\t\t\t\t \tLog.customer.debug(\"%s::MFGIRFlagAction is Completed setting DWInvoiceFlag ...\", classname);\n\t\t\t\t\t\t\t\t\t \tinvrecon.setFieldValue(\"DWInvoiceFlag\", \"Completed\");\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t\t\t \tLog.customer.debug(\"%s::MFGIRFlagAction is None no action req DWInvoiceFlag ...\", classname);\n\t\t\t\t\t\t\t\t\t \tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t catch(Exception e){\n\t\t\t\t\t\t\t \tLog.customer.debug(e.toString());\n\t\t\t\t\t\t\t \tnew ScheduledTaskException(\"Error : \" + e.toString(), e);\n throw new ScheduledTaskException(\"Error : \" + e.toString(), e);\n\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t //Base.getSession().transactionCommit();\n\t\t\t\t\t\t\t Log.customer.debug(\"Ending DWInvoicePush program .....\");\n\t\t\t\t\t\t\t //invrecon.setFieldValue(\"DWInvoiceFlag\", \"Completed\");\n\t\t\t\t\t\t\t //Update DWPOFlag in DO based on config\n\n\t\t\t\t\t }\n\t\t\t\t }\n }\n\t\t\tcatch(Exception e){\n\t\t\t\tLog.customer.debug(e.toString());\n\t\t\t\tnew ScheduledTaskException(\"Error : \" + e.toString(), e);\n throw new ScheduledTaskException(\"Error : \" + e.toString(), e);\n\n\t\t\t}\n\t\t\tif (outPW_FlatFile!=null){\n\t\t\t\toutPW_FlatFile.flush();\n\t\t\t\toutPW_FlatFile.close();\n\t\t\t}\n\t\t\tendTime = DateFormatter.getStringValue(new Date(), \"EEE MMM d hh:mm:ss a z yyyy\", TimeZone.getTimeZone(\"CST\"));\n //Process runDWFTP = Runtime.getRuntime().exec(\"/usr/bin/sh /msc/arb821/Server/config/java/schedule/DWFileFTP_UK.sh\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tLog.customer.debug(e.toString());\n\t\t\tmessage.append(\"Task start time : \"+ startTime);\n\t\t\tmessage.append(\"\\n\");\n\t\t\tmessage.append(\"Task end time : \" + endTime);\n\t\t\tmessage.append(\"\\n\");\n\t\t\tmessage.append(\"No of IR Written for DW : \"+ totalNumberOfIrWritten);\n\t\t\tmessage.append(\"\\n\");\n\t\t\tmessage.append(\"No of IR could not be Written :\"+ (totalNumberOfIrs - totalNumberOfIrWritten));\n\t\t\tmessage.append(\"\\n\");\n\t\t\tmessage.append(\"CATMFGDWInvoicePush_FlatFile Task Failed - Exception details below\");\n\t\t\tmessage.append(\"\\n\");\n\t\t\tmessage.append(e.toString());\n\t\t\tmailSubject = \"CATMFGDWInvoicePush_FlatFile Task Failed\";\n\t\t\tLog.customer.debug(\"%s: Inside Exception message \"+ message.toString() , classname);\n\t\t\tnew ScheduledTaskException(\"Error : \" + e.toString(), e);\n throw new ScheduledTaskException(\"Error : \" + e.toString(), e);\n\t\t}\n\t\tfinally {\n\n\t\t\t\t//Change made by Soumya begins\n\t\t\t\tLog.customer.debug(\"%s::Archive File Path:%s\",classname,archiveFileDataPath);\n\t\t\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile:Starting Copying the flat file to Archive \");\n\t\t\t\tCATFaltFileUtil.copyFile(flatFilePath, archiveFileDataPath);\n\t\t\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile:Completed Copying the flat file to Archive \");\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile:Changing file permission of Data file.\");\n\t\t\t\t\tRuntime.getRuntime().exec(\"chmod 666 \" + flatFilePath);\n\t\t\t\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile:Changed file permission of Data file.\");\n\t\t\t\t}catch (IOException e1) {\n\t\t\t\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile:Error in changing Permission. \"+ e1);\n\t\t\t\t}\n\n\t\t\t\t//Change made by Soumya end\n\n\n\t\t\tLog.customer.debug(\"%s: Inside Finally \", classname);\n\t\t\tmessage.append(\"Task start time : \"+ startTime);\n\t\t\tLog.customer.debug(\"%s: Inside Finally added start time\", classname);\n\t\t\tmessage.append(\"\\n\");\n\t\t\tmessage.append(\"Task end time : \" + endTime);\n\t\t\tmessage.append(\"\\n\");\n\t\t\tmessage.append(\"Total number of IRs to be Written : \"+ totalNumberOfIrs);\n\t\t\tmessage.append(\"\\n\");\n\t\t\tmessage.append(\"Total number of IRs Written : \"+ totalNumberOfIrWritten);\n\t\t\tmessage.append(\"\\n\");\n\t\t\tLog.customer.debug(\"%s: Inside Finally message \"+ message.toString() , classname);\n\n\t\t\t// Sending email\n\t\t\tCatEmailNotificationUtil.sendEmailNotification(mailSubject, message.toString(), \"cat.java.emails\", \"DWPushNotify\");\n\t\t\tmessage = null;\n\t\t\ttotalNumberOfIrWritten =0;\n\t\t\ttotalNumberOfIrs =0;\n\t }\n}",
"public String getEndAction() { return _endAction; }",
"@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitOrgEND(true);\r\n }",
"@Override\n public void close(TaskAttemptContext context) throws IOException,\n InterruptedException {\n mergedCanvas.write(outFile);\n outFile.close();\n }",
"public void save(List<Task> tasks) throws IOException {\n FileWriter writer = new FileWriter(path.toString());\n // Writing tasks into disk\n for (Task task : tasks) {\n String line = \"\";\n int done = task.hasDone() ? 1 : 0;\n String description = task.getDescription();\n String tag = task.getTag();\n // Saving tasks to disk in specific format\n switch (task.getType()) {\n case TODO:\n line = String.format(\"T---%d---%s---%s\", done, description, tag);\n break;\n case DEADLINE:\n case EVENT:\n int idx = description.indexOf('/');\n String activity = description.substring(0, idx - 1);\n String timing = description.substring(idx);\n line = formatTask(task, done, activity, timing, tag);\n break;\n default:\n break;\n }\n writer.write(line + \"\\n\");\n }\n writer.close();\n }",
"private void handleMarkDone()\n throws InvalidTaskDisplayedException, DuplicateTaskException {\n Status done = new Status(true);\n ArrayList<ReadOnlyTask> markDoneTasks = tracker.getTasksFromIndexes(\n model, this.toDo.split(StringUtil.STRING_WHITESPACE), done);\n model.mark(markDoneTasks, done);\n }",
"static void writeOperations(){\n \ttry{\n \t\t\n\t\t\t// Create file \n\t\t\tFileWriter fstream = new FileWriter(FILE_FILEOP);\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t \tfor (int i=0; i < operations.size(); i++){\n\t \t\tout.write(operations.get(i).getDetails() );\n\t \t}\n\t\t\t\n\t\t\t//Close the output stream\n\t\t\tout.close();\n\t\t}\n \tcatch (Exception e){//Catch exception if any\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t}\n\t\tSystem.out.print(\"Operations file written.\\n\");\n\n \t\n }",
"public void transactionComplete(TransactionId tid) throws IOException {\n // some code goes here\n // not necessary for lab1|lab2\n }",
"public void end() {\n\t\t// End runs waiting to start.\n\t\tfor ( Run r : startQueue ) {\n\t\t\tr.setState(\"dnf\");\n\t\t\tPrinter.print(\"Bib #\" + r.getBibNum() + \" Did Not Finish\");\n\t\t\tcompletedRuns.add(r);\n\t\t}\n\t\tstartQueue.clear();\n\t\t\n\t\t// End runs waiting to finish.\n\t\tfor ( Run r : finishQueue ) {\n\t\t\tr.setState(\"dnf\");\n\t\t\tPrinter.print(\"Bib #\" + r.getBibNum() + \" Did Not Finish\");\n\t\t\tcompletedRuns.add(r);\n\t\t}\n\t\tfinishQueue.clear();\n\t}",
"public void setEndAction(String anAction) { _endAction = anAction; }",
"public boolean finOut() { return (flags & FIN_OUT) != 0; }",
"@Override\n public synchronized void handleThreadRecursionHasCompleted() {\n //ensure that all branches have been explored before writing output\n this.numberOfBranchesCompleted++;\n RecursionStore.updateBranchesComplete(this.numberOfBranchesCompleted);\n if (this.numberOfBranchesCompleted != this._totalNumberOfStateTreeBranches) {\n return;\n }\n // write output file\n generateOutputAndClose();\n }",
"public static void endWrite()\r\n\t{\r\n\t\r\n\t}",
"@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public void completeTask(Long taskId, Map<String, Object> outboundTaskVars, String userId, boolean disposeKsession) {\n TaskServiceSession taskSession = null;\n try {\n taskSession = taskService.createSession();\n Task taskObj = taskSession.getTask(taskId);\n int sessionId = taskObj.getTaskData().getProcessSessionId();\n long pInstanceId = taskObj.getTaskData().getProcessInstanceId();\n if(taskObj.getTaskData().getStatus() != Status.InProgress) {\n log.warn(\"completeTask() task with following id will be changed to status of InProgress: \"+taskId);\n taskSession.taskOperation(Operation.Start, taskId, userId, null, null, null);\n eventSupport.fireTaskStarted(taskId, userId);\n }\n \n if(outboundTaskVars == null)\n outboundTaskVars = new HashMap<String, Object>(); \n \n //~~ Nick: intelligent mapping the task input parameters as the results map\n // that said, copy the input parameters to the result map\n Map<String, Object> newOutboundTaskVarMap = null;\n if (isEnableIntelligentMapping()) {\n long documentContentId = taskObj.getTaskData().getDocumentContentId();\n if(documentContentId == -1)\n throw new RuntimeException(\"completeTask() documentContent must be created with addTask invocation\");\n \n // 1) constructure a purely empty new HashMap, as the final results map, which will be mapped out to the process instance\n newOutboundTaskVarMap = new HashMap<String, Object>();\n // 2) put the original input parameters first\n newOutboundTaskVarMap.putAll(populateHashWithTaskContent(documentContentId, \"documentContent\"));\n // 3) put the user modified into the final result map, replace the original values with the user modified ones if any\n newOutboundTaskVarMap.putAll(outboundTaskVars);\n } //~~ intelligent mapping\n else {\n newOutboundTaskVarMap = outboundTaskVars;\n }\n \n ContentData contentData = this.convertTaskVarsToContentData(newOutboundTaskVarMap, null);\n taskSession.taskOperation(Operation.Complete, taskId, userId, null, contentData, null);\n eventSupport.fireTaskCompleted(taskId, userId);\n \n StringBuilder sBuilder = new StringBuilder(\"completeTask()\");\n this.dumpTaskDetails(taskObj, sBuilder);\n \n // add TaskChangeDetails to outbound variables so that downstream branches can route accordingly\n TaskChangeDetails changeDetails = new TaskChangeDetails();\n changeDetails.setNewStatus(Status.Completed);\n changeDetails.setReason(TaskChangeDetails.NORMAL_COMPLETION_REASON);\n changeDetails.setTaskId(taskId);\n newOutboundTaskVarMap.put(TaskChangeDetails.TASK_CHANGE_DETAILS, changeDetails);\n \n kSessionProxy.completeWorkItem(taskObj.getTaskData().getWorkItemId(), newOutboundTaskVarMap, pInstanceId, sessionId);\n \n if(disposeKsession)\n kSessionProxy.disposeStatefulKnowledgeSessionAndExtras(taskObj.getTaskData().getProcessSessionId());\n }catch(org.jbpm.task.service.PermissionDeniedException x) {\n rollbackTrnx();\n throw x;\n }catch(RuntimeException x) {\n rollbackTrnx();\n if(x.getCause() != null && (x.getCause() instanceof javax.transaction.RollbackException) && (x.getMessage().indexOf(\"Could not commit transaction\") != -1)) {\n String message = \"completeTask() RollbackException thrown most likely because the following task object is dirty : \"+taskId;\n log.error(message);\n throw new PermissionDeniedException(message);\n }else {\n throw x;\n }\n }catch(Exception x) {\n throw new RuntimeException(x);\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }",
"<T>void stateCompleted(T data);",
"@Override\n\tpublic void onFinal(Task task) {\n\n\t}",
"@Test\n\tpublic void addTaskOutput(){\n\t}",
"@Override\n public String toString() {\n if (timeEnd == null) {\n stop();\n }\n return task + \" in \" + (timeEnd - timeStart) + \"ms\";\n }",
"public void writeToFile(TaskList tasks) {\n try {\n FileWriter fw = new FileWriter(filePath);\n for (Task t : tasks.getListOfTasks()) {\n fw.write(t.getRecordString() + \"\\n\");\n }\n fw.close();\n } catch (IOException e) {\n System.out.println(\"Error writing to data file.\");\n }\n }",
"private static void writeFinalRuleBase (boolean printStdOut) throws IllegalArgumentException, IOException{\n \t\n \tFileSystem fs = FileSystem.get(Mediator.getConfiguration());\n \tPath textPath = new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_text.txt\");\n BufferedWriter bwText = new BufferedWriter(new OutputStreamWriter(fs.create(textPath,true)));\n FileStatus[] status = fs.listStatus(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_TMP\"));\n \tWriter writer = SequenceFile.createWriter(Mediator.getConfiguration(), \n \t\t\tWriter.file(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath())), \n \t\t\tWriter.keyClass(ByteArrayWritable.class), Writer.valueClass(FloatWritable.class));\n Reader reader;\n\t\tByteArrayWritable rule = new ByteArrayWritable();\n\t\tFloatWritable ruleWeight = new FloatWritable();\n\t\tint id = 0;\n \n bwText.write(\"\\nRULE BASE:\\n\\n\");\n if (printStdOut)\n \tSystem.out.println(\"\\nRULE BASE:\\n\");\n \t\n \t// Read all sequence files from stage 2\n \tfor (FileStatus fileStatus:status){\n \t\t\n \t\tif (!fileStatus.getPath().getName().contains(\"_SUCCESS\")){\n \t\t\n\t \t\t// Open sequence file\n\t \t\treader = new Reader(Mediator.getConfiguration(), Reader.file(fileStatus.getPath()));\n\t \n\t // Read all rules\n\t while (reader.next(rule, ruleWeight)) {\n\t \t\n\t \t// Write rule in the output sequence file\n\t \twriter.append(rule, ruleWeight);\n\t \t\n\t \tbwText.write(\"Rule (\"+id+\"): IF \");\n\t \tif (printStdOut)\n\t \t\tSystem.out.print(\"Rule (\"+id+\"): IF \");\n\t \t\n\t \t// Write antecedents\n\t \tfor (int i = 0; i < rule.getBytes().length - 2; i++){\n\t \t\t\n\t \t\tbwText.write(Mediator.getVariables()[i].getName()+\" IS \");\n\t \t\tif (printStdOut)\n\t \t\tSystem.out.print(Mediator.getVariables()[i].getName()+\" IS \");\n\t \t\tif (Mediator.getVariables()[i] instanceof NominalVariable){\n\t \t\t\tbwText.write(((NominalVariable)Mediator.getVariables()[i]).getNominalValue(rule.getBytes()[i])+\" AND \");\n\t \t\t\tif (printStdOut)\n\t \t\tSystem.out.print(((NominalVariable)Mediator.getVariables()[i]).getNominalValue(rule.getBytes()[i])+\" AND \");\n\t \t\t}\n\t \t\t\telse {\n\t \t\t\t\tbwText.write(\"L_\"+rule.getBytes()[i]+\" AND \");\n\t \t\t\t\tif (printStdOut)\n\t \t\tSystem.out.print(\"L_\"+rule.getBytes()[i]+\" AND \");\n\t \t\t\t}\n\t \t\t\n\t \t}\n\t \t\n\t \t// Write the last antecedent\n\t \tbwText.write(Mediator.getVariables()[rule.getBytes().length-2].getName()+\" IS \");\n\t \tif (printStdOut)\n\t \t\tSystem.out.print(Mediator.getVariables()[rule.getBytes().length-2].getName()+\" IS \");\n\t \tif (Mediator.getVariables()[rule.getBytes().length-2] instanceof NominalVariable){\n\t \t\tbwText.write(((NominalVariable)Mediator.getVariables()[rule.getBytes().length-2]).getNominalValue(rule.getBytes()[rule.getBytes().length-2]));\n\t \t\tif (printStdOut)\n\t \t\tSystem.out.print(((NominalVariable)Mediator.getVariables()[rule.getBytes().length-2]).getNominalValue(rule.getBytes()[rule.getBytes().length-2]));\n\t \t}\n\t \t\telse {\n\t \t\t\tbwText.write(\"L_\"+rule.getBytes()[rule.getBytes().length-2]);\n\t \t\t\tif (printStdOut)\n\t \t\tSystem.out.print(\"L_\"+rule.getBytes()[rule.getBytes().length-2]);\n\t \t\t}\n\t \t\n\t \t// Write the class and rule weight\n\t \tbwText.write(\" THEN CLASS = \"+Mediator.getClassLabel(rule.getBytes()[rule.getBytes().length-1]));\n\t \tbwText.write(\" WITH RW = \"+ruleWeight.get()+\"\\n\\n\");\n\t \tif (printStdOut){\n\t \t\tSystem.out.print(\" THEN CLASS = \"+Mediator.getClassLabel(rule.getBytes()[rule.getBytes().length-1]));\n\t \t\tSystem.out.print(\" WITH RW = \"+ruleWeight.get()+\"\\n\\n\");\n\t \t}\n\t\n\t \tid++;\n\t \t\n\t }\n\t \n\t reader.close();\n \n \t\t}\n \t\t\n \t}\n \t\n \tbwText.close();\n writer.close();\n \t\n \t// Remove temporary rule base\n \tfs.delete(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_TMP\"),true);\n \t\n }",
"@Override\n\tprotected void saveResults(){\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"_yyyy_MM_dd_HH:mm:ss\");\n\t\tDate date = new Date();\n\t\ttry(BufferedWriter bw=new BufferedWriter(new FileWriter(\"/home/daniel/results/\"+this.mAffinityType+\"/\"+this.getClass().getSimpleName()+\"/\"+MAX_TASK_AGE+\"/\"+mOutputFileName+dateFormat.format(date)))){\n\t\t\tbw.write(this.getClass().getSimpleName()+\" with max age=\"+MAX_TASK_AGE+\"\\n\");\n\t\t\tbw.write(\"Total processing time: \"+cycles+\" TU\\n\");\n\t\t\tint count=0;\n\t\t\tfor(Task t : mTasks){\n\t\t\t\tbw.write(++count + \":\");\n\t\t\t\tif(t.getmAge()>=MAX_TASK_AGE){\n\t\t\t\t\tbw.write(\"Aging used\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tbw.write(\"Aging not used\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tbw.write(\"###############################################################\\n\");\n\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t DecimalFormat df = new DecimalFormat(\"0.0\");\n\t\t\t\t\t\tbw.write(\"[\"+df.format(AFFINITY3[i][j][k])+\"]\");\n\t\t\t\t\t}\n\t\t\t\t\tbw.write(\"\\n\");\n\t\t\t\t}\n\t\t\t\tbw.write(\"###############################################################\\n\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public String toString()\n {\n\n // IF TASK IS MARKED AS COMPLETE\n if(task_completion_boolean)\n {\n // IF THERE'S NO TASK DESCRIPTION\n if(task_description.isBlank() || task_description.equals(null))\n {\n return \"*** \" + String.format(\"[%s] %s\", task_due_date, task_title);\n } // END if\n\n return \"*** \" + String.format(\"[%s] %s | %s\", task_due_date, task_title, task_description);\n } // END if\n\n /***********************************************************/\n\n // OTHERWISE, TASK IS NOT COMPLETE\n else\n {\n // IF THERE'S NO TASK DESCRIPTION\n if(task_description.isBlank() || task_description.equals(null))\n {\n return String.format(\"[%s] %s\", task_due_date, task_title);\n } // END if\n\n return String.format(\"[%s] %s | %s\", task_due_date, task_title, task_description);\n } // END else\n\n }",
"private void onFinish() {\r\n\t\t//used for create end html tags\r\n\t\tendHtmlPage(fout);\r\n\r\n\t\t//used for write every thing in html file\r\n\t\tfout.flush();\r\n\t\tfout.close();\r\n\t\t\r\n\t}",
"void reWrite(TaskList list) throws InvalidCommandException;",
"@Override\n public String stringToSave() {\n char status = this.isDone ? '1' : '0';\n DateTimeFormatter dtfDate = DateTimeFormatter.ofPattern(\"MMM dd yyyy\");\n DateTimeFormatter dtfTime = DateTimeFormatter.ISO_LOCAL_TIME;\n assert dtfDate instanceof DateTimeFormatter : \"date formatter has to be of type DateTimeFormatter\";\n assert dtfTime instanceof DateTimeFormatter : \"time formatter has to be of type DateTimeFormatter\";\n final String EVENT_STRING_TO_SAVE =\n \"E \" + \"| \" + status + \" | \" + this.description+ this.stringOfTags + \" \" + \"| \" +\n this.date.format(dtfDate) + \" \" + this.time.format(dtfTime);\n return EVENT_STRING_TO_SAVE;\n }",
"void TaskFinished(Task task) {\n\n repository.finishTask(task);\n }",
"@Override\r\n\tpublic void finishProcess() {\r\n\t\tfor (String soaFolder : this.SOA_Folders) {\r\n\t\t\tString strConfig = soaFolder;\r\n\t\t\tFile f = new File(strConfig + \"/exit\");\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"public void saveData(ArrayList<Task> tasks) {\r\n try {\r\n writeToFile(tasks);\r\n } catch (IOException exception) {\r\n ui.printIoExceptionErrorMessage(exception);\r\n }\r\n }",
"public TaskQueue(){\n this(\n new PrintWriter(System.out, true),\n new PrintWriter(System.err, true),\n DEFAULT_CONCURRENT_ACTIONS\n );\n }",
"private static void writeState(Map<Integer, Integer> currentMessages, String stateFile) throws Exception {\n\n List<String> lines = new ArrayList<>();\n for (Integer channelId: currentMessages.keySet()) {\n Integer messageId = currentMessages.get(channelId);\n String line = \"\" + channelId + \":\" + messageId;\n lines.add(line);\n //LOG.info(\"Writing line: \" + line);\n }\n\n File f = new File(stateFile);\n FileUtils.writeLines(f, null, lines);\n\n //LOG.info(\"Written\");\n }",
"protected abstract boolean end();",
"public CompletedToDoTask finish() {\n\t\treturn new CompletedToDoTask(this);\n\t}",
"ThreadEnd createThreadEnd();",
"public void quit() {\n\t\ttry {\n\t\t\tFile file = new File(\"output.txt\");\n\t\t\tFile eventFile = new File(\"events.txt\");\n\t\t\tFileWriter write = null;\n\t\t\tFileWriter eventwrite = null;\n\n\n\t\t\tif(!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t\twrite = new FileWriter(file.getAbsoluteFile());\n\t\t\t}\n\t\t\tif(!eventFile.exists()) {\n\t\t\t\teventFile.createNewFile();\n\t\t\t\teventwrite = new FileWriter(file.getAbsoluteFile());\n\t\t\t}\n\t\t\tString path = file.getAbsolutePath();\n\t\t\tString eventPath = eventFile.getAbsolutePath();\n\n\t\t\twrite = new FileWriter(path);\n\t\t\teventwrite = new FileWriter(eventPath);\n\n\t\t\tBufferedWriter writer = new BufferedWriter(write);\n\t\t\tBufferedWriter eventBWriter = new BufferedWriter(eventwrite);\n\n\n\t\t\tfor(Map.Entry<LocalDate, ArrayList<Event>> entry: map.entrySet()) {\n\t\t\t\tLocalDate d = entry.getKey();\n\t\t\t\tArrayList<Event> list = map.get(d);\n\t\t\t\tfor(int i = 0; i<list.size(); i++) {\n\t\t\t\t\tEvent e = list.get(i);\n\t\t\t\t\twriter.write(e.name + \"\\n\" );\n\t\t\t\t\teventBWriter.append(e.name + \"\\n\" );\n\t\t\t\t\twriter.write(e.sDate + \" \" + e.sTime + \" \" + e.eTime + \"\\n\");\n\t\t\t\t\teventBWriter.append(e.sDate + \" \" + e.sTime + \" \" + e.eTime + \"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\twriter.close();\n\t\t\teventBWriter.close();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n\t\tpublic void close(TaskAttemptContext context) throws IOException, InterruptedException {\n\t\t\t\n\t\t}",
"public void startFileWrite() {\r\n this.setStatus(false);\r\n this.isFileOutStarted = 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.startALG(true);\r\n } else {\r\n Thread t = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Controller.this.writeIntoFiles.setVisible(true);\r\n Controller.this.isFileWriteInUse = true;\r\n Controller.this.cw.setWritesOnlyFiles(true);\r\n Controller.this.cw.writeFile(true, true, false);\r\n }// run()\r\n });// Thread\r\n t.start();\r\n Timer timer = new Timer();\r\n timer.schedule(new ObserveProgress(timer, t), 200, 2000);\r\n this.isFileOutStarted = false;\r\n }\r\n }",
"public CompletedTask(Task task, String date)\r\n\t{\r\n\t\tsuper(task.ID, task.description, task.priority, task.order, STATUS_COMPLETE);\r\n\t\tthis.date = date;\r\n\t}",
"String endFile();",
"public interface PropertiesTask\n extends FileTask\n{\n\n /**\n * Properties file to be modified. If file does not exist it will be created.\n *\n * @param propertiesFile to be created/modified\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask setTargetFile( File propertiesFile );\n\n /**\n * Sets a property by key. If property is not present it will be added.\n *\n * @param key property key\n * @param value property value\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask setProperty( String key, String value );\n\n /**\n * Sets/adds all properties specified.\n *\n * @param properties to be added\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask setProperties( Properties properties );\n\n /**\n * Reads properties from specified properties file and add/set them.\n *\n * @param propertiesFile file containing properties\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask setProperties( File propertiesFile );\n\n /**\n * Removes a property by key.\n *\n * @param key of property to be removed\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask removeProperty( String key );\n\n /**\n * Removes all properties. If there are properties to be set, those properties will replace all eventually existing\n * properties in target file.\n *\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask removeAllProperties();\n\n}",
"public TorrentState() {\n tempDir = System.getProperty(property) + \"AStreamOfTorrents\";\n }",
"private void writeFile(TimerEntity entity) {\n final File file = fileName(entity.getTimedObjectId(), entity.getId());\n\n FileOutputStream fileOutputStream = null;\n try {\n fileOutputStream = new FileOutputStream(file, false);\n final Marshaller marshaller = factory.createMarshaller(configuration);\n marshaller.start(new OutputStreamByteOutput(fileOutputStream));\n marshaller.writeObject(entity);\n marshaller.finish();\n fileOutputStream.flush();\n fileOutputStream.getFD().sync();\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (fileOutputStream != null) {\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n logger.error(\"IOException closing file \", e);\n }\n }\n }\n }",
"void logPrgStateExec() throws FileNotFoundException, IOException;",
"public void finishTask() {\n\t\t\n\t}",
"public abstract void end();",
"@Override\n public void processTask(ActVisitor v) {\n if(v.getActivation() == v.getOriginAct())\n return;\n\n if(v.getScope() != getEndScope(v.getStartDir(), targetSynapse))\n return;\n\n if(!targetSynapse.checkLoopClosure(v))\n return;\n\n Activation currentAct = v.getActivation();\n Activation originAct = v.getOriginAct();\n\n Activation iAct = startDirection.getInput(originAct, currentAct);\n Activation oAct = startDirection.getOutput(originAct, currentAct);\n\n closeLoopIntern(v, iAct, oAct);\n }",
"@Test\n public void testToFileFormat() {\n ToDo t = new ToDo(\"test\");\n assertEquals(t.toFileFormat(), \"Ttest,false\");\n t.setDoneStatus(true);\n assertEquals(t.toFileFormat(), \"Ttest,true\");\n }",
"public void save(List<Task> changed){\n\n try {\n FileWriter fw = new FileWriter(path);\n for (int i = 0; i < changed.size(); i++) {\n\n String temp = (i+1) + \".\" + changed.get(i).list() + System.lineSeparator();\n fw.write(temp);\n }\n fw.close();\n }catch(IOException e){\n e.printStackTrace();\n }\n }",
"public void saveTaskList(TaskList taskList) throws ChandlerException {\n try {\n FileWriter fileWriter = new FileWriter(filePath);\n for (int i = 0; i < taskList.getSize(); i++) {\n Task currTask = taskList.getIndex(i);\n fileWriter.write(currTask.getSavingString());\n }\n fileWriter.close();\n } catch (IOException e) {\n throw new ChandlerException(ui.saveDataError());\n }\n }",
"private static NamedTaggedFormation _ends_in(NamedTaggedFormation tf) {\n String name = tf.getName();\n \tRotation ew = Rotation.fromAbsoluteString(\"|\");\n \tTaggedFormation result=tf;\n \tfor (Dancer d: tf.tagged(END)) {\n \t Position p = tf.location(d);\n \t // step \"in\" in east/west direction towards center line.\n \t if (ew.includes(p.facing))\n \t\tp = p.sideStep(Fraction.ONE, true);\n \t else\n \t\tp = p.forwardStep(Fraction.ONE, true);\n \t result = result.move(d, p);\n \t}\n \t// transfer name\n \treturn new NamedTaggedFormation(name, result);\n }",
"void completeCurrentLog() throws IOException;",
"private String formatTask(Task task, int done, String activity, String timing, String tag) {\n String type = task.getType() == TaskType.DEADLINE ? \"D\" : \"E\";\n return String.format(\"%s---%d---%s---%s---%s\", type, done, activity, timing, tag);\n }",
"WorkoutBatch end(boolean wasInVehicle);"
] | [
"0.5122033",
"0.50732744",
"0.50602615",
"0.49572542",
"0.49552542",
"0.49486542",
"0.4932807",
"0.491831",
"0.48510915",
"0.474434",
"0.47058773",
"0.47016895",
"0.46998477",
"0.46904007",
"0.46886533",
"0.4671981",
"0.46549606",
"0.46412182",
"0.46318248",
"0.4630204",
"0.46250933",
"0.4622219",
"0.4613097",
"0.46074498",
"0.46033216",
"0.46029487",
"0.45985264",
"0.45976618",
"0.45681098",
"0.456548",
"0.45615998",
"0.45521536",
"0.4543369",
"0.45429462",
"0.45417273",
"0.4534436",
"0.4522502",
"0.45222256",
"0.45126334",
"0.44892985",
"0.4485752",
"0.44821048",
"0.44815218",
"0.44800606",
"0.4479072",
"0.44773534",
"0.44766963",
"0.447278",
"0.44717503",
"0.44690531",
"0.44645935",
"0.44535998",
"0.4453144",
"0.4438365",
"0.4437888",
"0.44365507",
"0.44313774",
"0.44230396",
"0.4419008",
"0.4413436",
"0.4412229",
"0.44038522",
"0.43973675",
"0.43947053",
"0.43893504",
"0.43840444",
"0.43822563",
"0.43815675",
"0.437979",
"0.4375948",
"0.43707862",
"0.43672052",
"0.43667436",
"0.43664178",
"0.43630746",
"0.43598953",
"0.43572915",
"0.4357211",
"0.4355866",
"0.43452215",
"0.43447295",
"0.43366745",
"0.43285897",
"0.43270558",
"0.4325273",
"0.43230978",
"0.43213654",
"0.43198118",
"0.43197134",
"0.43187603",
"0.43175644",
"0.43167993",
"0.43161657",
"0.43161038",
"0.4315428",
"0.43131423",
"0.4306526",
"0.43026212",
"0.42981333",
"0.42963794"
] | 0.57636774 | 0 |
methode de changement de feu TODO Autogenerated method stub | private void changer() {
try {
while (true) {
Thread.sleep(1000);
vfeu1.lock();
vfeu2.lock();
if(r.feu==1)
{
//if(r.x>=100 && r.x<400)
if(r.x>=100 && r.x<200)
{
cf1.await();
}
r.img= ImageIO.read(new File("C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/route.png"));
r.img1=ImageIO.read(new File("C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/pietonvert.png"));
r.img2= ImageIO.read(new File("C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/pietonrouge.png"));
r.feu=2;
}else
{
//if(r.y>=120 && r.y<300)
if(r.y>=200 && r.y<300)
{
cf2.await();
}
r.img= ImageIO.read(new File("C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/route.png"));
r.img1=ImageIO.read(new File("C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/pietonrouge.png"));
r.img2= ImageIO.read(new File("C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/pietonvert.png"));
r.feu=1;
}
r.repaint();
vfeu1.unlock();
vfeu2.unlock();
}
} catch (InterruptedException | IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void alterar() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public void verarbeite() {\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\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\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\tpublic void recreo() {\n\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\n\tpublic void pausaParaComer() {\n\n\t}",
"public void Exterior() {\n\t\t\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void trabajar() {\n\n\t}",
"@Override\n\tpublic void yürü() {\n\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public void Ordenamiento() {\n\n\t}",
"public void setdat()\n {\n }",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void trenneVerbindung();",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}",
"protected void aktualisieren() {\r\n\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n public void salir() {\n }",
"private void remplirPrestaraireData() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void asetaTeksti(){\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n\tpublic void coba() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initVentajas() {\n\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void alRechazarOperacion() {\n }",
"public void changerJoueur() {\r\n\t\t\r\n\t}",
"void berechneFlaeche() {\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n protected void onDataChanged() {\n }",
"@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void transmetDonnee() {\n\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\n\tvoid geraDados() {\n\n\t}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void modify() {\n\t\t\n\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}",
"@Override\n public void update() {\n \n }",
"private void edit() {\n\n\t}",
"@Override\n\tpublic void acomodaVista() {\n\n\t}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}",
"public void editOperation() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void emettreOffre() {\n\t\t\r\n\t}",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }"
] | [
"0.7105412",
"0.7044518",
"0.6969061",
"0.69166267",
"0.6912323",
"0.69109434",
"0.68877155",
"0.68140817",
"0.67795485",
"0.671106",
"0.67058134",
"0.6662974",
"0.6640618",
"0.66299284",
"0.66278356",
"0.660587",
"0.65926147",
"0.6567011",
"0.6526141",
"0.651777",
"0.651777",
"0.6501302",
"0.64648384",
"0.64648384",
"0.6454142",
"0.6450428",
"0.644233",
"0.6436628",
"0.6417462",
"0.6380128",
"0.63758963",
"0.63478273",
"0.6342274",
"0.6334444",
"0.6306283",
"0.6304824",
"0.62968403",
"0.6293153",
"0.62845874",
"0.628273",
"0.6231232",
"0.6227712",
"0.62018794",
"0.6192518",
"0.61863166",
"0.61860627",
"0.6181678",
"0.6181678",
"0.61807144",
"0.61534196",
"0.61526686",
"0.6126689",
"0.61175615",
"0.6102718",
"0.61021656",
"0.6097728",
"0.60845923",
"0.60683334",
"0.60676134",
"0.60674584",
"0.6066176",
"0.60546917",
"0.6035067",
"0.60290074",
"0.60195684",
"0.6011945",
"0.6009302",
"0.6004361",
"0.60041",
"0.60041",
"0.60041",
"0.60041",
"0.60041",
"0.600036",
"0.5995749",
"0.5980067",
"0.5976304",
"0.5976304",
"0.5976304",
"0.5959451",
"0.5958288",
"0.59527344",
"0.5951254",
"0.5949494",
"0.59486353",
"0.5943929",
"0.59417176",
"0.5930933",
"0.59245515",
"0.5923048",
"0.59157676",
"0.59021014",
"0.58928204",
"0.58928204",
"0.58928204",
"0.58928204",
"0.58928204",
"0.58928204",
"0.5891116",
"0.58885634",
"0.5887793"
] | 0.0 | -1 |
faire appeler la methode changer TODO Autogenerated method stub | @Override
public void run() {
changer();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void alterar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public void verarbeite() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void changerJoueur() {\r\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"@Override\n public void alRechazarOperacion() {\n }",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"abstract void trataAltera();",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void recreo() {\n\n\t}",
"@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}",
"protected void aktualisieren() {\r\n\r\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void transmetDonnee() {\n\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"void berechneFlaeche() {\n\t}",
"@Override\r\n public void salir() {\n }",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void trabajar() {\n\n\t}",
"@Override\n\tpublic void imprimir() {\n\t\t\n\t}",
"public void actualizar() {\n\n\t}",
"public void trenneVerbindung();",
"public void asetaTeksti(){\n }",
"public void Ordenamiento() {\n\n\t}",
"@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}",
"public void modifier(){\r\n try {\r\n //affectation des valeur \r\n echeance_etudiant.setIdEcheanceEtu(getViewEtudiantInscripEcheance().getIdEcheanceEtu()); \r\n \r\n echeance_etudiant.setAnneeaca(getViewEtudiantInscripEcheance().getAnneeaca());\r\n echeance_etudiant.setNumetu(getViewEtudiantInscripEcheance().getNumetu());\r\n echeance_etudiant.setMatricule(getViewEtudiantInscripEcheance().getMatricule());\r\n echeance_etudiant.setCodeCycle(getViewEtudiantInscripEcheance().getCodeCycle());\r\n echeance_etudiant.setCodeNiveau(getViewEtudiantInscripEcheance().getCodeNiveau());\r\n echeance_etudiant.setCodeClasse(getViewEtudiantInscripEcheance().getCodeClasse());\r\n echeance_etudiant.setCodeRegime(getViewEtudiantInscripEcheance().getCodeRegime());\r\n echeance_etudiant.setDrtinscri(getViewEtudiantInscripEcheance().getInscriptionAPaye());\r\n echeance_etudiant.setDrtforma(getViewEtudiantInscripEcheance().getFormationAPaye()); \r\n \r\n echeance_etudiant.setVers1(getViewEtudiantInscripEcheance().getVers1());\r\n echeance_etudiant.setVers2(getViewEtudiantInscripEcheance().getVers2());\r\n echeance_etudiant.setVers3(getViewEtudiantInscripEcheance().getVers3());\r\n echeance_etudiant.setVers4(getViewEtudiantInscripEcheance().getVers4());\r\n echeance_etudiant.setVers5(getViewEtudiantInscripEcheance().getVers5());\r\n echeance_etudiant.setVers6(getViewEtudiantInscripEcheance().getVers6()); \r\n \r\n //modification de l'utilisateur\r\n echeance_etudiantFacadeL.edit(echeance_etudiant); \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur de modification capturée : \"+e);\r\n } \r\n }",
"@Override\n\tpublic void coba() {\n\t\t\n\t}",
"public void Exterior() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void effetCase() {\n\t\t\n\t}",
"private void edit() {\n\n\t}",
"public void editOperation() {\n\t\t\r\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic void verificar() {\n\t\tsuper.verificar();\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void actualiserAffichage();",
"@Override\r\n\tpublic void emettreOffre() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }",
"@Override\n\tpublic void desligar() {\n\t\t\n\t}",
"@Override\n\tpublic void modify() {\n\t\t\n\t}",
"@Override\n\tpublic void pausaParaComer() {\n\n\t}",
"@Override\n\tpublic void updateGerant(Gerant g) {\n\t\t\n\t}",
"@Override\n public boolean update(Revue objet) {\n return false;\n }",
"@Override\n\tpublic void chocoContraPared() {}",
"@Override\n\tpublic void acomodaVista() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tvoid geraDados() {\n\n\t}",
"@Override\r\n\tpublic void voar() {\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\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void nuevo() {\n\n\t}",
"@Override\n\tpublic void yürü() {\n\n\t}",
"public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }",
"@Override\n\tpublic void alterar(Parcela entidade) {\n\n\t}",
"void usada() {\n mazo.habilitarCartaEspecial(this);\n }",
"@Override\n\tpublic void updateEncuestaConExito() {\n\n\t}",
"protected void agregarUbicacion(){\n\n\n\n }",
"public void reiniciar() {\n // TODO implement here\n }",
"public void Tyre() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tpublic void iniciar() {\n\t\t\n\t}",
"private void remplirFabricantData() {\n\t}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"public void defender(){setModopelea(1);}",
"@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tsuper.onChange(selfChange);\n\t\t}",
"public void ouvrirListe(){\n\t\n}",
"public void setdat()\n {\n }",
"@Override\n\tpublic void moverse() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}",
"@Override\n protected void onDataChanged() {\n }",
"public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }",
"@Override\n\tpublic void salir() {\n\t\t\n\t}",
"@Override\r\n\tpublic void alterar(Telefone vo) throws Exception {\n\t\t\r\n\t}"
] | [
"0.7353673",
"0.7339584",
"0.72834885",
"0.71322876",
"0.7105825",
"0.70795083",
"0.69431156",
"0.6930113",
"0.69262344",
"0.69218594",
"0.6910437",
"0.6823489",
"0.68058556",
"0.6805822",
"0.67839754",
"0.67264074",
"0.67244256",
"0.67207503",
"0.6684952",
"0.66270506",
"0.6605416",
"0.65968996",
"0.6583855",
"0.65370494",
"0.65207183",
"0.65149033",
"0.6468706",
"0.64548403",
"0.6446322",
"0.6438055",
"0.6433372",
"0.6425604",
"0.6419493",
"0.6411781",
"0.6403777",
"0.6400147",
"0.6399781",
"0.6386309",
"0.63811266",
"0.6334919",
"0.63323873",
"0.6320942",
"0.6318317",
"0.6318317",
"0.63137215",
"0.63101673",
"0.6308202",
"0.630515",
"0.630515",
"0.6289871",
"0.62872034",
"0.628284",
"0.6276397",
"0.6261657",
"0.62589085",
"0.62552065",
"0.62263083",
"0.62232715",
"0.6215465",
"0.62136275",
"0.61721",
"0.6170992",
"0.6159671",
"0.6147129",
"0.6145908",
"0.6143778",
"0.6140275",
"0.6121389",
"0.61101645",
"0.61078626",
"0.6107642",
"0.6107642",
"0.61035174",
"0.61031544",
"0.6097045",
"0.60922945",
"0.60735416",
"0.60689753",
"0.60678315",
"0.6067201",
"0.6062449",
"0.60622203",
"0.6047137",
"0.60326886",
"0.60316855",
"0.6020633",
"0.60065687",
"0.599197",
"0.5991693",
"0.5990313",
"0.5990313",
"0.5977231",
"0.5976604",
"0.59700876",
"0.59680325",
"0.59673285",
"0.59660333",
"0.5964583",
"0.5955608",
"0.595221",
"0.5952067"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mType = getArguments() != null ? getArguments().getInt(TYPE) : 1;
switch (mType) {
case 0:
infoContent = getString(R.string.outline);
break;
case 1:
infoContent = getString(R.string.mamber);
break;
case 2:
infoContent = getString(R.string.schedule);
break;
case 3:
infoContent = getString(R.string.rest);
break;
}
} | {
"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 View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View mInfoView = (View) inflater.inflate(R.layout.layout_infopager,
container, false);
tvInfoContent = (TextView) mInfoView.findViewById(R.id.tv_meetinginfo);
return mInfoView;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
tvInfoContent.setText(infoContent);
} | {
"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 |
Post Mapping to Add new Service | @RequestMapping(value = "/restAddNewService", method = { RequestMethod.POST })
public ResponseEntity<JsonResponse<Object>> restAddNewService(
@RequestBody RestServiceMasterModel serviceMaster) {
logger.info("Method : restAddNewService starts");
logger.info("Method : restAddNewService endss");
return serviceDao.restAddNewService(serviceMaster);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract T addService(ServerServiceDefinition service);",
"void addService(ServiceInfo serviceInfo);",
"com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();",
"void addService(Long orderId, Long serviceId);",
"@RequestMapping(\"/createService1\")\n\tpublic String addService1(Service1 service1) {\n\t\tservice1Service.insertService1(service1);\n\t\treturn \"redirect:/list-service1\";\n\t}",
"public void onAdd(final ForwardEvent event) {\r\n\t\t// Get the values and validate the data\r\n\t\tfinal Textbox txtService = (Textbox) Path.getComponent(page, \"txtService\");\r\n\t\tfinal String serviceName = txtService.getValue().trim();\r\n\t\tfinal Doublebox txtCharge = (Doublebox) Path.getComponent(page, \"txtCharge\");\r\n\t\tfinal Checkbox chkHidden = (Checkbox) Path.getComponent(page, \"chkHidden\");\r\n\t\tLOGGER.debug(\"Adding new service: \" + txtService.getValue() + \"\\t\" + txtCharge.getValue());\r\n\t\tif (serviceName.length() <= 0 || txtCharge.getValue() == null) {\r\n\t\t\ttry {\r\n\t\t\t\tMessagebox.show(\"Enter the service name and charge\", \"Error in input\", Messagebox.OK, Messagebox.ERROR);\r\n\t\t\t} catch (final Exception e) {\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfinal IPaymentDAO paymentDAO = (IPaymentDAO) SpringUtil.getBean(\"paymentDAO\");\r\n\t\tif (paymentDAO.checkService(serviceName)) {\r\n\t\t\ttry {\r\n\t\t\t\tMessagebox.show(\"Service already exists\", \"Error in input\", Messagebox.OK, Messagebox.ERROR);\r\n\t\t\t} catch (final Exception e) {\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Create new service and save it\r\n\t\tfinal MasterService service = new MasterService();\r\n\t\tservice.setServiceName(txtService.getValue().trim());\r\n\t\tservice.setCharge(txtCharge.getValue());\r\n\t\tservice.setHidden(chkHidden.isChecked());\r\n\t\tpaymentDAO.addMasterService(service);\r\n\r\n\t\t// Add this new service to listmodel and invalidate the list\r\n\t\tfinal ListModelList services = (ListModelList) page.getAttribute(\"serviceslist\");\r\n\t\tservices.add(service);\r\n\t\tpage.setAttribute(\"serviceslist\", services);\r\n\t\tfinal Listbox lstservice = (Listbox) Path.getComponent(page, \"lstservice\");\r\n\t\tlstservice.setModel(services);\r\n\t\tlstservice.invalidate();\r\n\t\tLOGGER.debug(\"added service\");\r\n\t}",
"@Override\n\tpublic int addService(Service serviceDTO) {\n\t\tcom.svecw.obtr.domain.Service serviceDomain = new com.svecw.obtr.domain.Service();\n\t\tserviceDomain.setSourceId(serviceDTO.getSourceId());\n\t\tserviceDomain.setDestinationId(serviceDTO.getDestinationId());\n\t\tserviceDomain.setNoOfSeats(serviceDTO.getNoOfSeats());\n\t\tserviceDomain.setFare(serviceDTO.getFare());\n\t\tserviceDomain.setDistance(serviceDTO.getDistance());\n\t\tserviceDomain.setJourneyDate(serviceDTO.getJourneyDate());\n\t\tserviceDomain.setArrivalTime(serviceDTO.getArrivalTime());\n\t\tserviceDomain.setDepartureTime(serviceDTO.getDepartureTime());\n\t\tserviceDomain.setStatus(serviceDTO.getStatus());\n\t\treturn iServiceDAO.addService(serviceDomain);\n\t}",
"@Override\n\tpublic int addStationstoServices(Service serviceDTO) {\n\t\tcom.svecw.obtr.domain.Service serviceDomain = new com.svecw.obtr.domain.Service();\n\t\tserviceDomain.setSourceStationId(serviceDTO.getSourceStationId());\n\t\tserviceDomain.setDestinationStationId(serviceDTO.getDestinationStationId());\n\t\tserviceDomain.setServiceId(serviceDTO.getServiceId());\n\t\tSystem.out.println(serviceDTO.getServiceId());\n\t\t//System.out.println(serviceDTO.getDestinationStationId());\n\t\treturn iStationToService.addServiceToStation(serviceDomain);\n\t}",
"public void addServiceImpl(String serviceName, FileObject configFile, boolean fromWSDL);",
"@BearerAuth\n @HttpRequestHandler(paths = \"/api/v2/service/create\", methods = \"POST\")\n private void handleCreateRequest(@NonNull HttpContext context, @NonNull @RequestBody Document body) {\n var configuration = body.readObject(\"serviceConfiguration\", ServiceConfiguration.class);\n if (configuration == null) {\n // check for a provided service task\n var serviceTask = body.readObject(\"task\", ServiceTask.class);\n if (serviceTask != null) {\n configuration = ServiceConfiguration.builder(serviceTask).build();\n } else {\n // fallback to a service task name which has to exist\n var serviceTaskName = body.getString(\"serviceTaskName\");\n if (serviceTaskName != null) {\n var task = this.serviceTaskProvider.serviceTask(serviceTaskName);\n if (task != null) {\n configuration = ServiceConfiguration.builder(task).build();\n } else {\n // we got a task but it does not exist\n this.badRequest(context)\n .body(this.failure().append(\"reason\", \"Provided task is unknown\").toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n return;\n }\n } else {\n this.sendInvalidServiceConfigurationResponse(context);\n return;\n }\n }\n }\n\n var createResult = this.serviceFactory.createCloudService(configuration);\n var start = body.getBoolean(\"start\", false);\n if (start && createResult.state() == ServiceCreateResult.State.CREATED) {\n createResult.serviceInfo().provider().start();\n }\n\n this.ok(context)\n .body(this.success().append(\"result\", createResult).toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n }",
"private void registerService() {\r\n DFAgentDescription desc = new DFAgentDescription();\r\n desc.setName(getAID());\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(SERVICE_TYPE);\r\n sd.setName(SERVICE_NAME);\r\n desc.addServices(sd);\r\n try {\r\n DFService.register(this, desc);\r\n } catch (FIPAException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }",
"@PostMapping(value = \"/add\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<ServiceResult> insertTest(@RequestBody Test test) {\n return new ResponseEntity<ServiceResult>(testService.insertTest(test), HttpStatus.OK);\n }",
"public void saveService();",
"public abstract T addService(BindableService bindableService);",
"@PostMapping(\"/addPost\")\n public ResponseEntity addNewPost(@RequestBody Post post){\n postService.postNewInfo(post);\n return new ResponseEntity(HttpStatus.OK);\n }",
"public static Services addNewService(Services services) {\n services.setId(FuncValidation.getValidIdService(services,ENTER_SERVICE_ID,INVALID_SERVICE_ID));\n services.setNameOfService(FuncValidation.getValidName(ENTER_SERVICE_NAME,INVALID_NAME));\n services.setUsedArea(FuncValidation.getValidDoubleNumber(ENTER_USED_AREA, INVALID_DOUBLE_NUMBER,30.0));\n services.setRentalFee(FuncValidation.getValidDoubleNumber(ENTER_RENTAL_FEE, INVALID_RENTAL_FEE,0.0));\n services.setMaxGuest(FuncValidation.getValidIntegerNumber(ENTER_MAXIMUM_OF_GUEST,INVALID_MAX_GUEST,0,20));\n services.setRentType(FuncValidation.getValidName(ENTER_TYPE_OF_RENT,INVALID_NAME));\n return services;\n }",
"@PostMapping(\"/AddEmployee\")\r\n public Serializable addStudentService(@RequestBody Employee employee) {\r\n return admin.addEmployeeService(employee);\r\n }",
"@PostMapping(\"/AddHR\")\r\n public Serializable addHRService(@RequestBody HR hr) {\r\n return admin.addHRService(hr);\r\n }",
"net.webservicex.www.WeatherForecasts addNewWeatherForecasts();",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType.ServiceConfigurationList addNewServiceConfigurationList();",
"void putServiceNameServiceInfos(net.zyuiop.ovhapi.api.objects.services.Service param0, java.lang.String serviceName) throws java.io.IOException;",
"@Override\r\n\tpublic boolean add(ServicesDto servicesDto) {\r\n\t\ttry {\r\n\t\t\t// add the category to database table\r\n\t\t\tsessionFactory.getCurrentSession().persist(servicesDto);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void serviceAdded(ServiceDescription service) {\n System.out.println(\"service added\");\n current = service;\n //set up channel to communicate with server\n //multiple beds -> multiple channels\n channel = ManagedChannelBuilder.forAddress(service.getAddress(), service.getPort())\n .usePlaintext(true)\n .build();\n\n //To call service methods, we first need to create a stub, \n //a blocking/synchronous stub: this means that the RPC call waits for the server to respond, \n //and will either return a response or raise an exception.\n blockingStub = ProjectorGrpc.newBlockingStub(channel);\n\n activateProjector();\n //listInputs();\n\n }",
"public void addService(String serviceName, CheckBox dateOfBirth, CheckBox address, CheckBox typeOfLicense,\n CheckBox proofOfResidence, CheckBox proofOfStatus, CheckBox proofOfPhoto, double servicePrice) {\n DatabaseReference dR;\n dR = FirebaseDatabase.getInstance().getReference(\"ServiceRequests\");\n\n Service serviceRequest = new ServiceCategories(serviceName, dateOfBirth.isChecked(), address.isChecked(),\n typeOfLicense.isChecked(), proofOfResidence.isChecked(), proofOfStatus.isChecked(),\n proofOfPhoto.isChecked(), servicePrice);\n dR.child(serviceName).setValue(serviceRequest);\n\n }",
"public void registerService(String serviceName, Object service);",
"public static void addNewServices() {\n displayAddNewServicesMenu();\n processAddnewServicesMenu();\n }",
"public void saveService(){\r\n \tif(editService != null){\r\n \t\tint id = editService.getId();\r\n \t\ttry {\r\n\t \t\tif(id == 0){\r\n\t \t\t\tthis.getLog().info(\" addService()\");\r\n\t \t\t\tserviceList.addNewServiceToDB(editService.getDisplayServiceName(), editService.getServiceName(), editService.getUrl());\r\n\t \t\t}else{\r\n\t \t\t\tthis.getLog().info(\" updateService(\" + id + \")\");\r\n\t \t\t\tserviceList.updateAlgorithmParameterToDB(editService);\r\n\t \t\t}\r\n\t \t\tthis.getServiceList().populateServiceListFromDB();\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n }",
"@POST\n @Produces({ \"application/json\" })\n @CommitAfter\n public abstract Response addNew(Person person);",
"public AddFavouriteService() {\n super(\"AddFavouriteService\");\n }",
"public void addServiceImpl(String serviceName, FileObject configFile, boolean fromWSDL, String[] wscompileFeatures);",
"@GetMapping(\"/add\")\n public String add(){\n\n return \"add\";\n }",
"private void register(final ServiceReference serviceReference) {\n final SlingPostOperation service = (SlingPostOperation) this.bundleContext.getService(serviceReference);\n final PostOperationProxy proxy = new PostOperationProxy(service);\n\n final BundleContext bundleContext = serviceReference.getBundle().getBundleContext();\n final Dictionary<String, Object> props = copyServiceProperties(serviceReference);\n final ServiceRegistration reg = bundleContext.registerService(\n PostOperation.SERVICE_NAME, proxy, props);\n\n log.debug(\"Registering {}\", proxy);\n synchronized (this.proxies) {\n this.proxies.put(serviceReference, reg);\n }\n }",
"void addHasMicroService(MService newHasMicroService);",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n Service service = new Service();\r\n \r\n try {\r\n \tservice.setSvName(request.getParameter(\"svName\"));\r\n\t service.setSvPrice(Double.parseDouble(request.getParameter(\"svPrice\")));\r\n\t service.setSvDescription(request.getParameter(\"svDescription\"));\r\n\t service.setStaffID(request.getParameter(\"staffID\"));\r\n\t \r\n } catch(NumberFormatException ex){\r\n \t return; \r\n \t }\r\n \r\n dao.addService(service);\r\n \r\n\t\ttry {\r\n\t\t\trequest.setAttribute(\"service\", ServiceDAO.getServiceList());\r\n\t\t} catch (ClassNotFoundException | SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"listService.jsp\");\r\n\t\tdispatcher.forward(request, response);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service ajoutService(sn.ucad.master.assurance.bo.Service service) {\n\t\treturn serviceRepository.save(service);\r\n\t}",
"@PostMapping(value = \"/addEmployee\")\n\tpublic void addEmployee() {\n\t\tEmployee e = new Employee(\"Iftekhar Khan\");\n\t\tdataServiceImpl.add(e);\n\t}",
"public void addService() throws Throwable\r\n\t{\r\n\t\tselServicOpt.click();\r\n\t\tverifyService();\r\n\t\twdlib.waitForElement(getSelServiceBtn());\r\n\t\tselServiceBtn.click();\r\n\t\twdlib.verify(wdlib.getPageTitle(),flib.getPropKeyValue(PROP_PATH, \"ServicesPage\") , \"Services Page \");\r\n\t\tServicesPage svpage=new ServicesPage();\r\n\t\tsvpage.selectServices();\r\n\t\t\r\n\t}",
"private void insertServiceRequest() {\n Random rand = new Random();\r\n service_id = rand.nextInt(Integer.MAX_VALUE);\r\n int tokenSeed = rand.nextInt(Integer.MAX_VALUE);\r\n current_token = md5(tokenSeed + \"\");\r\n\r\n Calendar cal = Calendar.getInstance();\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\r\n String fecha = sdf.format(cal.getTime());\r\n\r\n int deliver_state = 1;\r\n\r\n int costo = (int) Math.round(destinations.get(0).total_price);\r\n\r\n ArrayList<String> param = new ArrayList<>();\r\n param.add(service_id + \"\");\r\n param.add(current_token);\r\n param.add(fecha);\r\n param.add(deliver_state + \"\");\r\n param.add(id_cliente + \"\");\r\n param.add(costo + \"\");\r\n param.add(\"0\");\r\n RestClient.get().executeCommand(\"8\", param.toString(), new Callback<Response>() {\r\n @Override\r\n public void success(Response response, retrofit.client.Response response2) {\r\n\r\n insertRoutes();\r\n }\r\n\r\n @Override\r\n public void failure(RetrofitError error) {\r\n hideOverlay();\r\n showDialog(\r\n getResources().getString(\r\n R.string.msg_serverError_title),\r\n getResources().getString(\r\n R.string.msg_serverError), false, false);\r\n }\r\n });\r\n\r\n\r\n }",
"com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType addNewListOfServiceElements();",
"net.zyuiop.ovhapi.api.objects.license.Task postServiceNameSqlServer(java.lang.String licenseId, java.lang.String version, java.lang.String serviceName) throws java.io.IOException;",
"public void serviceAdded(String serviceID, Remote service, List<?> itemList);",
"public void serviceAdded(ServiceEvent event) {\n\t\t\tLog.e(\"z\", \"added serivce: \" + event);\n\t\t}",
"@PostMapping(\"/price-definitions\")\n void addPriceDefinition(@NonNull @RequestBody NewPriceDefinitionDto dto) {\n facade.addPriceDefinition(dto);\n }",
"@RequestMapping(\"/add\")\n @ResponseBody\n public JSONObject addDepart(HttpServletRequest request , HttpServletResponse response, Map<String,Object>map){\n JSONObject jo = new JSONObject();\n try\n {\n // department.setSort(departmentService.max());\n boolean index = departmentService.add(map);\n Operationlog operationlog = new Operationlog();\n operationlogService.addLog(\"添加用户\",\"2\",request);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n jo.put(\"status\",\"1\");\n jo.put(\"code\",0);\n jo.put(\"msg\",\"ok\");\n return jo;\n }\n jo.put(\"status\",1);\n jo.put(\"code\",0);\n jo.put(\"msg\",\"ok\");\n return (JSONObject) JSONObject.toJSON(jo);\n }",
"public void createServiceRequest() {\n getMainActivity().startService(new Intent(getMainActivity(), RequestService.class));\n }",
"@HystrixCommand(fallbackMethod = \"addServiceFallback\")\n\tpublic String addService() {\n\t\treturn restTemplate.getForEntity(\"http://COMPUTE-SERVICE/add?a=10&b=20\", String.class).getBody();\n\t}",
"LinkedService.DefinitionStages.Blank define(String name);",
"com.exacttarget.wsdl.partnerapi.ObjectDefinition addNewObjectDefinition();",
"public void addService() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"service\",\n null,\n childrenNames());\n }",
"public void addService() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"service\",\n null,\n childrenNames());\n }",
"public void onSaveService(final ForwardEvent event) {\r\n\t\t// Get the listitem from the event's target (button)\r\n\t\t// parent(hbox)->parent(listcell)->parent(listitem)\r\n\t\tfinal Listitem li = (Listitem) event.getOrigin().getTarget().getParent().getParent().getParent();\r\n\t\tfinal MasterService service = (MasterService) li.getValue();\r\n\r\n\t\t// save the service\r\n\t\tfinal IPaymentDAO paymentDAO = (IPaymentDAO) SpringUtil.getBean(\"paymentDAO\");\r\n\t\tpaymentDAO.addMasterService(service);\r\n\r\n\t\t// Get the listmodel and update this service in it\r\n\t\tfinal ListModelList services = (ListModelList) page.getAttribute(\"serviceslist\");\r\n\t\tint indx = getListIndex(service, services);\r\n\t\tservices.set(indx, service);\r\n\t\tpage.setAttribute(\"serviceslist\", services);\r\n\t\tfinal Listbox lstservice = (Listbox) Path.getComponent(page, \"lstservice\");\r\n\t\tlstservice.setModel(services);\r\n\t\tlstservice.invalidate();\r\n\t\tClients.evalJavaScript(\"$.jGrowl(\\\"Successfully Saved the service\\\", {life:2000});\");\r\n\t}",
"@PostMapping(\"/add\")\n public Traveller addTraveller(@RequestBody Traveller theTraveller) {\n\n\n travelService.save(theTraveller);\n\n return theTraveller;\n }",
"public Collection<Service> createServices();",
"public void addServiceType(ServiceType serviceType){\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\tsession.beginTransaction();\n\t\tsession.saveOrUpdate(serviceType);\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t}",
"public void insert(Service servico){\n Database.servico.add(servico);\n }",
"boolean addServiceInstance(Service service, InstancePublishInfo instancePublishInfo);",
"void addHost(Service newHost);",
"Service newService();",
"@PostMapping(\"/users\")\n public User createUser(@RequestBody User user){\n return service.addAUser(user);\n\n }",
"@POST\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\n\tpublic Response addServicioDeAlojamiento(ServicioDeAlojamiento servicioDeAlojamiento) {\n\n\t\ttry{\n\t\t\tAlohAndesTransactionManager tm = new AlohAndesTransactionManager( getPath( ) );\n\t\t\ttm.addServicioDeAlojamiento(servicioDeAlojamiento);\n\t\t\treturn Response.status(200).entity(servicioDeAlojamiento).build();\n\t\t}\n\t\tcatch( Exception e )\n\t\t{\n\t\t\treturn Response.status( 500 ).entity( doErrorMessage( e ) ).build( );\n\t\t}\n\t}",
"@ResponseStatus(HttpStatus.CREATED)\r\n @PostMapping(\"/products\")\r\n public Product addProduct(@RequestBody ProductDTO productDto) {\r\n return productService.addNewProduct(productDto);\r\n }",
"public void markServiceCreate() throws JNCException {\n markLeafCreate(\"service\");\n }",
"public interface AddStudentBookOrderPackageService extends EntityService<StudentBookOrderPackage> {\n public StudentBookOrderPackage addStudentBookOrderPackage(String spotCode, String orderCodes, String logisticCode, int isNoce, String loginName)throws Exception;\n}",
"Fog_Services createFog_Services();",
"@Override\n public ResponseEntity<Void> addDoctors(@ApiParam(value = \"Doctors object that needs to be added in our application \", required = true) @Valid @RequestBody DoctorsTO doctorsTO) {\n\n doctorService.createDoctor(doctorsTO);\n return new ResponseEntity<Void>(HttpStatus.CREATED);\n }",
"public org.biocatalogue.x2009.xml.rest.ServiceDeployment addNewServiceDeployment()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.ServiceDeployment target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.ServiceDeployment)get_store().add_element_user(SERVICEDEPLOYMENT$0);\r\n return target;\r\n }\r\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();",
"default void createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateServiceMethod(), responseObserver);\n }",
"@Override\n public void doService(AdaptrisMessage msg) throws ServiceException {\n String serviceKey = createServiceKey(msg);\n String nextServiceId = valueMatcher.getNextServiceId(serviceKey, getMetadataToServiceIdMappings());\n\n if (nextServiceId == null) {\n if (isEmpty(getDefaultServiceId())) {\n throw new ServiceException(\"no ServiceId configured against key [\" + serviceKey + \"] and no default ServiceId configured\");\n }\n nextServiceId = getDefaultServiceId();\n log.debug(\"Using default ServiceId : {}\", getDefaultServiceId());\n }\n msg.setNextServiceId(nextServiceId);\n // logging is in BranchingServiceCollection\n }",
"@RequestMapping(value=\"/add\", method = RequestMethod.POST)\r\n public void addAction(@RequestBody Reservation reservation){\n reservationService.create(reservation);\r\n }",
"@PostMapping(value = \"/create\",consumes = MediaType.APPLICATION_JSON_VALUE)\n public InternationalTournaments create(@RequestBody InternationalTournaments create){\n return service.create(create);\n }",
"public void addService(Class<? extends IFloodlightService> clazz, \n\t IFloodlightService service) {\n\t\tserviceMap.put(clazz, service);\n\t}",
"public void onAddByMapPressed( ) {\n Router.Instance().changeView(Router.Views.AddWithMap);\n }",
"@PostMapping(\"/locations/addSport/{locationId}\")\n public Sport addSport(@PathVariable Integer locationId,@RequestBody Sport sport){\n\n service.addSport(locationId,sport);\n\n return sport;\n }",
"public interface MarkerService {\n @POST(\"/api/markers\")\n Call<ServerMarker> create(@Body Post2Marker post2Marker);\n\n @GET(\"/api/markers\")\n Call<ServerMarker[]> getAllMarker();\n}",
"@POST\r\n\t@Consumes(MediaType.APPLICATION_JSON)\r\n\tpublic void addNewTpa(Tpa tpa){\r\n\t}",
"<T> void registerService(\n T service,\n Class<T> serviceKlass,\n @Nullable Map<String, Function<Object, Object>> resultProcessor\n );",
"@PostMapping(value = \"/insertorderdetails\")\r\n public OrderInfo insertDummyOrder(@RequestBody OrderInfo order) \r\n\t\r\n\t{\r\n\t\treturn new OrderService().addOrder(order); //calling the service\r\n }",
"@ApiOperation(value = \"Route Post mapping to add route\", response = Route.class)\n\t@PostMapping(\"/add\")\n\tpublic ResponseEntity<RouteDto> addRoute(@RequestBody @Valid RouteEntityDto requestRoute) {\n\tRoute actualRoute = modelMapper.map(requestRoute, Route.class);\n\t\tRouteDto responseRoute = modelMapper.map(this.routeServices.addRoute(actualRoute), RouteDto.class);\n\t\treturn new ResponseEntity<>(responseRoute, HttpStatus.OK);\n\t}",
"public void addServicio(String nombre_servicio, List<String> parametros){\n\t\t\n\t\tboolean exists = false;\n\t\t//Se comprueba si ya estaba registrado dicho servicio\n\t\tfor(InfoServicio is: infoServicios){\n\t\t\tif(is.getNombre_servicio().equalsIgnoreCase(\"nombre_servicio\")){\n\t\t\t\texists = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(!exists){\n\t\t\t//Es un servicio nuevo, se registra.\n\t\t\tInfoServicio is = new InfoServicio(nombre_servicio,parametros);\n\t\t\tinfoServicios.add(is);\n\t\t}\n\t\telse{\n\t\t\t//Servicio ya registrado, no se hace nada.\n\t\t\tSystem.err.println(\"ERROR: Servicio \" + nombre_servicio + \" ya registrado para \" + this.getNombre_servidor());\n\t\t}\n\t\t\n\t}",
"public void createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getCreateServiceMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"@PostMapping(\"/costo-servicios\")\n @Timed\n public ResponseEntity<CostoServicioDTO> createCostoServicio(@RequestBody CostoServicioDTO costoServicioDTO) throws URISyntaxException {\n log.debug(\"REST request to save CostoServicio : {}\", costoServicioDTO);\n if (costoServicioDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new costoServicio cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n CostoServicioDTO result = costoServicioService.save(costoServicioDTO);\n return ResponseEntity.created(new URI(\"/api/costo-servicios/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@GetMapping(\"/service_requests/new\")\n public String newServiceRequest(Model model){\n String role = userService.getRole(userService.getCurrentUserName());\n model.addAttribute(\"role\", role);\n\n model.addAttribute(\"serviceRequest\", new ServiceRequest());\n\n return \"/forms/new_servicerequest.html\";\n }",
"public void addServiceName(String name) {\n if (name != null) {\n this.serviceNameSet.add(name);\n }\n }",
"@PostMapping(\"/addStaff\")\n\tpublic Staff addStaff(@RequestBody Staff staff) {\n\t\treturn staffService.addStaff(staff);\n\t}",
"public void addServices(Services services) {\n for(int i = 0; i < services.getServices().size(); i++) {\n this.services.add(services.getServices().get(i)); // Retrieve the name of the Service\n }\n for(int i = 0; i < services.getIndexes().size(); i++) {\n this.indexes.add(services.getIndexes().get(i)); // Retrieve the index of the Service\n }\n }",
"@Override\n\tpublic void subTypeForServiceTypeAdded(ServiceEvent arg0) {\n\n\t}",
"@PostMapping(\"reservar\")\n\tpublic ReservasEntity add(@RequestBody ReservasEntity reserva ) {\n\t\treturn reservaService.add(reserva);\n\t}",
"public static void createMappingRules(String serviceId) throws URISyntaxException {\n String metricId = \"\";\n Metrics metrics = getThreeScaleApiService().listMetric(serviceId);\n Metric metric = metrics.getMetric();\n logger.info(\"metricId name: \" + metric.getName());\n if (metric.getName().equalsIgnoreCase(\"Hits\")) {\n metricId = String.valueOf(metric.getId());\n }\n\n logger.info(\"metricId : \" + metricId);\n\n MappingRulesParameters mp = new MappingRulesParameters();\n mp.setPattern(\"/\");\n mp.setDelta(\"1\");\n mp.setMetric_id(metricId);\n mp.setHttp_method(\"POST\");\n\n MappingRule rule = getThreeScaleApiService().createMappingRules(serviceId, mp);\n logger.info(\"creating mapping result : \" + rule.getHttpMethod());\n\n //now create mapping rule for PUT under metric \"hit\"\n mp.setHttp_method(\"PUT\");\n rule = getThreeScaleApiService().createMappingRules(serviceId, mp);\n logger.info(\"creating mapping result : \" + rule.getHttpMethod());\n\n //now create mapping rule for PATCH under metric \"hit\"\n mp.setHttp_method(\"PATCH\");\n rule = getThreeScaleApiService().createMappingRules(serviceId, mp);\n logger.info(\"creating mapping result : \" + rule.getHttpMethod());\n\n //now create mapping rule for DELETE under metric \"hit\"\n mp.setHttp_method(\"DELETE\");\n rule = getThreeScaleApiService().createMappingRules(serviceId, mp);\n logger.info(\"creating mapping result : \" + rule.getHttpMethod());\n\n }",
"public void registerService(String serviceName){\n jmc.registerService(serviceName);\n }",
"com.indosat.eai.catalist.standardInputOutput.RequestType addNewRequest();",
"void insert(ServiceSegmentModel serviceSegment);",
"ServiceProblemResponse postServiceProblem(ServiceProblem serviceProblem);",
"public interface ReservationService {\n\n @POST(\"reservations/add\")\n Call<Void> addReservations(@Body Reservation reservation);\n\n @GET(\"reservations/{id}.json\")\n Call<Reservation> getReservation(@Path(\"id\") int id) ;\n\n @PUT(\"reservations/{id}.json\")\n Call<Void> editReservations(@Path(\"id\") int id,@Body Reservation reservation);\n\n\n}",
"@GetMapping(\"/\")\n public String add(){\n return \"tasks/add\";\n }",
"public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }",
"@RequestMapping(method=RequestMethod.POST, value = \"/item/{id}\", produces = \"application/json\")\n public void addItem(@RequestBody Item itemToAdd)\n {\n this.itemRepository.addItem(itemToAdd);\n }",
"public void addServiceEntriesToDD(String serviceName, String serviceEndpointInterface, String serviceEndpoint);",
"@POST\t\n\t@Path(\"/\")\n\t@Consumes(\"application/json\")\t\n\tpublic List<Site> createSite(Site newSite){\n\t\tSystem.out.println(\"help\");\n\t\treturn siteDaoObj.createSite(newSite);\t\t\n\t}"
] | [
"0.7117163",
"0.69286096",
"0.65292686",
"0.64556533",
"0.63443166",
"0.6322752",
"0.6301707",
"0.62995684",
"0.62675816",
"0.6261395",
"0.6214831",
"0.6212898",
"0.62119734",
"0.61459094",
"0.6128285",
"0.60863674",
"0.60812014",
"0.6068636",
"0.60037845",
"0.60024756",
"0.5962925",
"0.59589356",
"0.59409547",
"0.59344786",
"0.59146154",
"0.5909884",
"0.5891015",
"0.58746827",
"0.58502746",
"0.5842599",
"0.5824112",
"0.5799806",
"0.57762325",
"0.57568955",
"0.57529837",
"0.57486355",
"0.57404476",
"0.57285935",
"0.5722598",
"0.571689",
"0.5680182",
"0.5680092",
"0.5665477",
"0.56605405",
"0.5655277",
"0.56431234",
"0.56313217",
"0.5627713",
"0.56186444",
"0.56186444",
"0.5618554",
"0.55965555",
"0.5593398",
"0.5568685",
"0.55648947",
"0.5556288",
"0.5547251",
"0.5510492",
"0.5509811",
"0.5502745",
"0.5493495",
"0.5489376",
"0.5478793",
"0.5464824",
"0.5462077",
"0.5459246",
"0.54514974",
"0.5450779",
"0.54483145",
"0.54434",
"0.54339975",
"0.54240894",
"0.5396682",
"0.5381201",
"0.5377902",
"0.5375699",
"0.5370089",
"0.5369746",
"0.53615195",
"0.53595716",
"0.5348137",
"0.53429693",
"0.5342831",
"0.5341842",
"0.53386205",
"0.53308743",
"0.532358",
"0.53170776",
"0.52991474",
"0.52924186",
"0.5290962",
"0.5289868",
"0.52886105",
"0.52863586",
"0.52861094",
"0.52771944",
"0.527539",
"0.52693164",
"0.52675325",
"0.52658045"
] | 0.6623493 | 2 |
returns particular HouseKeeping Task to view/edit | @RequestMapping(value = "/viewServiceModal", method = { RequestMethod.GET })
public ResponseEntity<JsonResponse<RestServiceMasterModel>> viewServiceModal(@RequestParam("id") String id) {
logger.info("Method : viewServiceModal starts");
logger.info("Method : viewServiceModal ends");
return serviceDao.viewServiceModal(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Task getTask(Integer tid);",
"public Task getTask(String taskId) throws DaoException, DataObjectNotFoundException\r\n {\n dao = (TaskManagerDao) getDao();\r\n Task task = dao.selectTask(taskId);\r\n ResourceManager rm = (ResourceManager)Application.getInstance().getModule(ResourceManager.class);\r\n if(task!=null) {\r\n //Task task = (Task)col.iterator().next();\r\n //task.setLastModifiedBy(UserUtil.getUser(task.getLastModifiedBy()).getName());\r\n task.setAttendees(getAssignees(taskId));\r\n task.setReassignments(dao.selectReassignments(taskId));\r\n task.setResources(rm.getBookedResources(task.getId(),CalendarModule.DEFAULT_INSTANCE_ID));\r\n return task;\r\n }\r\n return null;\r\n }",
"Object getTaskId();",
"String getTaskId();",
"Task selectByPrimaryKey(String taskid);",
"ITaskView getTaskView();",
"List<Task> getTaskdetails();",
"public Task gatherTaskInfo() {\n \t\n \tString title;\n \t\n \tEditText getTitle = (EditText)findViewById(R.id.titleTextBox);\n \t//EditText itemNum = (EditText)findViewById(R.id.showCurrentItemNum);\n \t \t\n \t//gathering the task information\n \ttitle = getTitle.getText().toString();\n\n \t//validate input \n \tboolean valid = validateInput(title);\n \t\n \t//if valid input and we have the properties create a task and return it\n \tif(valid && propertiesGrabbed) {\n \t\t\n\t \t//creating a task\n\t \tTask t = new TfTask();\n\t \tt.setTitle(title);\n\t \t\n\t \t//setting the visibility enum\n\t \tif(taskVisibility.equals(\"Public\")) { \t\t\n\t \t\tt.setVisibility(Visibility.PUBLIC); \t\t\n\t \t}else{\n\t \t\tt.setVisibility(Visibility.PRIVATE); \t\t\n\t \t}\n\t \t\n\t \t//creating each individual item\n\t \taddItemsToTask(t);\n\t \t\t \t\n\t \t//set the description\n\t \tt.setDescription(taskDescription);\n\n\t \t//set the email to respond to\n\t \tt.setEmail(taskResponseString);\n\t \t\n\t \t//return the task\t \t\n\t \treturn t;\n\t \t\n \t}else{\n \t\t//task not correct\n \t\treturn null;\n \t}\n }",
"void showTodoViewToEdit(Task task);",
"public TaskSummary getTask(Long taskId){\n TaskServiceSession taskSession = null;\n try {\n taskSession = jtaTaskService.createSession();\n Task taskObj = taskSession.getTask(taskId);\n TaskSummary tSummary = new TaskSummary();\n tSummary.setActivationTime(taskObj.getTaskData().getExpirationTime());\n tSummary.setActualOwner(taskObj.getTaskData().getActualOwner());\n tSummary.setCreatedBy(taskObj.getTaskData().getCreatedBy());\n tSummary.setCreatedOn(taskObj.getTaskData().getCreatedOn());\n tSummary.setDescription(taskObj.getDescriptions().get(0).getText());\n tSummary.setExpirationTime(taskObj.getTaskData().getExpirationTime());\n tSummary.setId(taskObj.getId());\n tSummary.setName(taskObj.getNames().get(0).getText());\n tSummary.setPriority(taskObj.getPriority());\n tSummary.setProcessId(taskObj.getTaskData().getProcessId());\n tSummary.setProcessInstanceId(taskObj.getTaskData().getProcessInstanceId());\n tSummary.setStatus(taskObj.getTaskData().getStatus());\n tSummary.setSubject(taskObj.getSubjects().get(0).getText());\n return tSummary;\n }catch(RuntimeException x) {\n throw x;\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }",
"public Task getTask(String taskId, String userId) throws DaoException, DataObjectNotFoundException, SecurityException\r\n {\n dao = (TaskManagerDao) getDao();\r\n Task task = dao.selectTask(taskId,userId);\r\n if(task!=null) {\r\n // Task task = (Task)col.iterator().next();\r\n task.setAttendees(getAssignees(taskId));\r\n task.setReassignments(getReassignments(taskId));\r\n ResourceManager rm = (ResourceManager)Application.getInstance().getModule(ResourceManager.class);\r\n task.setResources(rm.getBookedResources(task.getId(),CalendarModule.DEFAULT_INSTANCE_ID)); return task;\r\n }else throw new DataObjectNotFoundException(); \r\n }",
"@Override\n public String toString() {\n return \"Task no \"+id ;\n }",
"WorkingTask getWorkingTask();",
"public String getTask(){\n\treturn task;\n}",
"List<Workflow> findByIdTask( int nIdTask );",
"_task selectByPrimaryKey(Integer taskid);",
"@Override\n public String getTask(String id) {\n JSONObject response = new JSONObject();\n try {\n ITaskInstance task = dataAccessTosca.getTaskInstance(id);\n if (task != null) {\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(id);\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n\n return response.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }",
"@RequestMapping(value = \"/get-task/{taskName}\", method = RequestMethod.GET)\r\n\tpublic Task getTask(@PathVariable(\"taskName\") String taskName) {\r\n\t\tTask dumyTask = new Task();\r\n\t\tdumyTask.setTaskName(taskName);\r\n\t\treturn dumyTask;\r\n\t}",
"public String getTaskName();",
"@SuppressWarnings(\"unchecked\")\r\n public List<UserPlanTask> UserPlanTaskEdit(long task_id) {\r\n session = sf.openSession();\r\n Transaction t = session.beginTransaction();\r\n\r\n List<UserPlanTask> EditTask = null;\r\n try {\r\n EditTask = session.createQuery(\"from UserPlanTask where taskId='\" + task_id + \"'\").list();\r\n } catch (HibernateException HE) {\r\n System.out.println(HE);\r\n }\r\n t.commit();\r\n session.close();\r\n sf.close();\r\n return EditTask;\r\n }",
"String getTaskName();",
"String getTaskName();",
"public TaskDetails getSpecificTask (int position){\n return taskList.get(position);\n }",
"@Transactional(Transactional.TxType.REQUIRES_NEW)\n public TaskDef retrieve(Long task_id) {\n return TaskDefIntegrationService.find(task_id);\n }",
"public void findClick(View v){\n String taskName = justAddedTextView.getText().toString();\n PlannerDBHandler handler = new PlannerDBHandler(this);\n\n //Task task = handler.findTask(taskName);\n }",
"@Override\r\n\tpublic ExecuteTask get(int memberId,int taskId) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask \"\r\n\t\t\t\t+ \"WHERE et_member_id = ? AND er_task_id = ?\";\r\n\t\treturn get(sql,memberId,taskId);\r\n\t}",
"static TaskDetail correspondsTo(int taskTypeRepresentation) {\n return taskDetails.get(taskTypeRepresentation);\n }",
"String getTaskId(int index);",
"@VisibleForTesting(otherwise = VisibleForTesting.NONE)\r\n LiveData<Task> getActiveTask();",
"public abstract String getTaskName();",
"ConversationalObject getTaskOwner();",
"public Task getTask(){\n return punchTask;\n }",
"public String getTask() {\n return task;\n }",
"public String getTask() {\n return task;\n }",
"@Override\n\tpublic ZgTaskEntity selectTaskInfo(Integer id,String schedulingId) {\n\t\tzgTaskDao.updateIsRead(id);\n\t\tZgTaskEntity zgTask = zgTaskDao.selectTask(id);\n\t\tif(StringUtils.isNotBlank(schedulingId)){\n\t\t\tList<Long> joinPeople = ejSchedulingPeopleDao.selectJoinPeople(schedulingId);\n\t\t\tEjSchedulingEntity ejSchedulingEntity = ejSchedulingDao.selectById(schedulingId);\n\t\t\tzgTask.setJoinPeopleList(joinPeople);\n\t\t\tzgTask.setSchedulingCompere(ejSchedulingEntity.getCompere());\n\t\t\tzgTask.setSchedulingCreateUser(ejSchedulingEntity.getCreateUser());\n\t\t}\n//\t\tzgTaskEntityVo.setId(zgTask.getId());\n//\t\tzgTaskEntityVo.setCreateTime(zgTask.getCreateTime());\n//\t\tzgTaskEntityVo.setTaskType(zgTask.getTaskType());\n//\t\tzgTaskEntityVo.setUserId(zgTask.getUserId());\n//\t\tzgTaskEntityVo.setWorkTask(zgTask.getWorkTask());\n\t\t//查询完成情况\n\t\tList<ZgTaskFinishEntity> completionList = zgTaskFinishDao.selectCompletion(id);\n\t\t//查询督办情况\n\t\tList<ZgTaskFinishEntity> rigorousList = zgTaskFinishDao.selectRigorous(id);\n\t\tzgTask.setCompletionList(completionList);\n\t\tzgTask.setRigorousList(rigorousList);\n\t\tList<ZgTaskFinishEntity> finishList = zgTaskFinishDao.selectList(new EntityWrapper<ZgTaskFinishEntity>().and(\"task_id =\"+zgTask.getId()).and(\"schedule != 0\").orderBy(\"create_time asc\"));\n\t\tif(finishList.size() > 0){\n for (ZgTaskFinishEntity zgTaskFinishEntity:finishList) {\n List<EjSchedulingFileEntity> fileList = ejSchedulingFileDao.selectList(new EntityWrapper<EjSchedulingFileEntity>().and(\"finish_id =\"+zgTaskFinishEntity.getId()));\n zgTaskFinishEntity.setFileList(fileList);\n }\n }\n\t\tzgTask.setFinishList(finishList);\n\t\treturn zgTask;\n\t}",
"public void showTask(View v) {\n String taskIdStr = txtId.getText().toString();\n if (taskIdStr.isEmpty() || taskIdStr == null) {\n Toast.makeText(this, \"Please Insert task ID\", Toast.LENGTH_LONG).show();\n } else {\n try {\n int taskId = Integer.parseInt(taskIdStr);\n TaskModel taskmodel = taskManager.getTaskById(taskId);\n txtTaskName.setText(taskmodel.getTaskName());\n txtTaskDescription.setText(taskmodel.getTaskDescription());\n } catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }\n }",
"String GetTaskName(int Catalog_ID);",
"public Task getTask() {\n Long __key = this.TaskId;\n if (task__resolvedKey == null || !task__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n TaskDao targetDao = daoSession.getTaskDao();\n Task taskNew = targetDao.load(__key);\n synchronized (this) {\n task = taskNew;\n \ttask__resolvedKey = __key;\n }\n }\n return task;\n }",
"@Override\r\n\tpublic ExecuteTask getById(int id) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask \"\r\n\t\t\t\t+ \"WHERE et_id = ?\";\r\n\t\treturn get(sql,id);\r\n\t}",
"public static ITask findWorkOnTaskById(long taskId) {\r\n Ivy ivy = Ivy.getInstance();\r\n IPropertyFilter<TaskProperty> taskFilter =\r\n ivy.session.getWorkflowContext().createTaskPropertyFilter(TaskProperty.ID, RelationalOperator.EQUAL, taskId);\r\n IQueryResult<ITask> queryResult =\r\n ivy.session.findWorkTasks(taskFilter, null, 0, 1, true,\r\n EnumSet.of(TaskState.SUSPENDED, TaskState.RESUMED, TaskState.PARKED));\r\n List<ITask> tasks = queryResult.getResultList();\r\n if (tasks != null && tasks.size() > 0) {\r\n return tasks.get(0);\r\n }\r\n return null;\r\n }",
"private Task getTask(Integer identifier) {\n Iterator<Task> iterator = tasks.iterator();\n while (iterator.hasNext()) {\n Task nextTask = iterator.next();\n if (nextTask.getIdentifier().equals(identifier)) {\n return nextTask;\n }\n }\n\n return null;\n }",
"public abstract SystemTask getTask(Project project);",
"@Override\n\tpublic Teatask getById(int taskid)\n\t{\n\t\treturn teataskMapper.getById(taskid);\n\t}",
"public Task getTask(int index) {\n return records.get(index);\n }",
"public String taskViewForm() throws ActivityNotFoundException, Exception{\n\t\tActivityInstanceUUID aiid=new ActivityInstanceUUID(uuid);\r\n\t\tActivityInstance ai=BPMModule.getInstance().getActivityInstance(aiid);\r\n\t\ttaskInstance=new SimpleActivity();\r\n\t\ttaskInstance.setRootProcessNameOrUrl(ai.getProcessDefinitionUUID().getValue());\r\n\t\tString url=BPMUtil.getUserXPTaskUrl(ai.getProcessDefinitionUUID().getValue(), ai.getActivityDefinitionUUID().getValue(),ai.getUUID().getValue(), null,null,true,true);\r\n\t\ttaskInstance.setTaskNameOrUrl(url);\r\n\t\treturn SUCCESS;\r\n\t}",
"public Task getTask(Long row_num) {\n List<Task> taskList = new ArrayList<Task>();\n Task result = new Task();\n Integer r = row_num.intValue();\n taskList = getAllTasks();\n result = taskList.get(r);\n return result;\n }",
"public ITask getTask() {\n \t\treturn task;\n \t}",
"@Override\r\n\tpublic Optional<Task> findTask(Integer taskId) {\n\t\treturn taskRepository.findById(taskId);\r\n\t}",
"private Task getTask(int tasktype, UserInfo userInfo){\n switch(tasktype){\n case Task.TASK_TYPE_BACKUP_CELLLOG:\n return new BackupCallLogTask(mContext, userInfo, BaseTask.TASK_BASETYPE_BACKUP);\n case Task.TASK_TYPE_RESTORE_CALLLOG:\n return new BackupCallLogTask(mContext, userInfo, BaseTask.TASK_BASETYPE_RESTORE);\n case Task.TASK_TYPE_BACKUP_CONTACTS:\n return new BackupContactsTask(mContext, userInfo, BaseTask.TASK_BASETYPE_BACKUP);\n case Task.TASK_TYPE_RESTORE_CONTACTS:\n return new BackupContactsTask(mContext, userInfo, BaseTask.TASK_BASETYPE_RESTORE);\n case Task.TASK_TYPE_BACKUP_SMS:\n return new BackupSmsTask(mContext, userInfo, BaseTask.TASK_BASETYPE_BACKUP);\n case Task.TASK_TYPE_RESTORE_SMS:\n return new BackupSmsTask(mContext, userInfo, BaseTask.TASK_BASETYPE_RESTORE);\n }\n return null;\n }",
"@Override\r\n\tpublic List<ExecuteTask> getByTask(int taskId) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask\"\r\n\t\t\t\t+ \" WHERE et_task_id = ?\";\r\n\t\treturn getForList(sql,taskId);\r\n\t}",
"public String editTask(TasksModel obj)\n\t{\n\t\tString memo=\"\"; \n\t\tif(obj.getMemo()!=null)\n\t\t{\n\t\t\tmemo=obj.getMemo().replaceAll(\"'\",\"`\");\n\t\t}\n\t\tobj.setMemo(memo);\n\t\t\n\t\tString commnets=\"\"; \n\t\tif(obj.getComments()!=null)\n\t\t{\n\t\t\tcommnets=obj.getComments().replaceAll(\"'\",\"`\");\n\t\t}\n\t\tobj.setComments(commnets);\n\t\t\t\n\t\tString stepsToReproduce=\"\"; \n\t\tif(obj.getTaskStep()!=null)\n\t\t{\n\t\t\tstepsToReproduce=obj.getTaskStep().replaceAll(\"'\",\"`\");\n\t\t}\n\t\tobj.setTaskStep(stepsToReproduce);\n\t\tquery=new StringBuffer();\n\t\tquery.append(\"Update tasks set customerType='\"+obj.getClientType()+\"',taskNo='\"+obj.getTaskNumber()+\"',tasktype=\"+obj.getTaskTypeId()+\",expectedDateTofinsh='\"+sdf.format(obj.getExpectedDatetofinish())+\"',reminderDate='\"+sdf.format(obj.getReminderDate())+\"',toBeReminderIn=\"+obj.getRemindIn()+\",taskName='\"+obj.getTaskName()+\"',steps='\"+obj.getTaskStep()+\"',linkid=\"+obj.getPrviousTaskLinkId()+\",customerrefKey=\"+obj.getCustomerRefKey()+\",\");\t\n\t\tquery.append(\"projectrefKey=\"+obj.getProjectKey()+\",servicerefKey=\"+obj.getSreviceId()+\",assignedUser=\"+obj.getEmployeeid()+\",ccemployeeKey=\"+obj.getCcEmployeeKey()+\",priorityrefKey=\"+obj.getPriorityRefKey()+\",estTime=\"+obj.getEstimatatedNumber()+\",memo='\"+obj.getMemo()+\"',actualTime=\"+obj.getActualNumber()+\",status=\"+obj.getStatusKey()+\",usercomments='\"+obj.getComments()+\"',hourOrDays='\"+obj.getHoursOrDays()+\"' where taskID=\"+obj.getTaskid()+\"\");\n\t\tquery.append(\" \");\n\t\treturn query.toString();\n\t}",
"public Task getTask() { return task; }",
"public TaskProvider getTaskProvider();",
"public Task getTask(int index)\n {\n return tasks.get(index);\n }",
"int getTask() {\n return task;\n }",
"public Subtask getSubtask(String task_name, int project_id) {\n try {\n Connection con = DBManager.getConnection();\n String SQL = \"SELECT subtask_id, task_name FROM subtask where task_name = ? AND project_id = ?;\";\n PreparedStatement ps = con.prepareStatement(SQL);\n ps.setString(1, task_name);\n ps.setInt(2, project_id);\n\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n int id = rs.getInt(\"subtask_id\");\n Subtask subtask = new Subtask(id, task_name, project_id);\n return subtask;\n }\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n return null;\n }",
"public int getCustTask()\n\t{\n\t\treturn task;\n\t}",
"@Override\n public String getPresentationDetails(String task) {\n try {\n ITaskInstance taskInstance = dataAccessTosca.getTaskInstance(task);\n if (taskInstance != null) {\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", taskInstance.getPresentationName());\n presentation.put(\"subject\", taskInstance.getPresentationSubject());\n presentation.put(\"description\", taskInstance.getPresentationDescription());\n return presentation.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }",
"@Override\n public JSONObject viewSalesManagerTaskByAdmin() {\n\n return in_salesmanagerdao.viewSalesManagerTaskAdmin();\n }",
"public void viewTaskDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"TasksTab\"), \"TasksTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnTaskDetails\"), \"Task Details Button\");\n\n\t}",
"public String get_task_title()\n {\n return task_title;\n }",
"@Nullable\n public Task getTask(int id) {\n Task output = null;\n\n // get a readable instance of the database\n SQLiteDatabase db = getReadableDatabase();\n if (db == null) return null;\n\n // run the query to get the matching task\n Cursor rawTask = db.rawQuery(\"SELECT * FROM Tasks WHERE id = ? ORDER BY due_date ASC;\", new String[]{String.valueOf(id)});\n\n // move the cursor to the first result, if one exists\n if (rawTask.moveToFirst()) {\n // convert the cursor to a task and assign it to our output\n output = new Task(rawTask);\n }\n\n // we're done with the cursor and database, so we can close them here\n rawTask.close();\n db.close();\n\n // return the (possibly null) output\n return output;\n }",
"@GetMapping(\"/tasks/{id}\")\n public ResponseEntity<Task> getTaskById(@PathVariable Long id){\n Task task = taskRepository.findById(id)\n .orElseThrow(() -> new ResourceNotFoundException(\"Task not found with Id of \" + id));\n return ResponseEntity.ok(task);\n }",
"public void showTaskDetail(ProntoTask prontoTask) {\n try {\n taskNameEditText.setText(prontoTask.getTitle());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n taskDescriptionEditText.setText(prontoTask.getDescription());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n int priority = prontoTask.getPriority();\n if (priority > 0){\n switch (priority){\n case Constants.PRIORITY_LOW:\n lowPriorityButton.setChecked(true);\n break;\n case Constants.PRIORITY_MEDIUM:\n mediumPriorityButton.setChecked(true);\n break;\n case Constants.PRIORITY_HIGH:\n highPriorityButton.setChecked(true);\n break;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n String formattedDueDate = TimeUtils.getReadableDateWithoutTime(prontoTask.getReminder().getDateAndTime());\n dateTextView.setText(formattedDueDate);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n String formattedDueTime = DateHelper.getTimeShort(activity, prontoTask.getReminder().getDateAndTime());\n timeTextView.setText(formattedDueTime);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n try {\n onFolderSelected(currentTask.getFolder());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //Show Tags assigned to this prontoTask\n if (currentTask.getTags() != null && currentTask.getTags().size() > 0){\n String tagText = \"\";\n for (ProntoTag prontoTag : currentTask.getTags()){\n tagText = tagText + \"#\" + prontoTag.getTagName() + \", \";\n }\n tagsTextView.setText(tagText);\n tagsTextView.setTextColor(ContextCompat.getColor(activity, R.color.primary_dark));\n tagsTextView.setTypeface(tagsTextView.getTypeface(), Typeface.BOLD);\n }\n }",
"public List<TaskMaster> retrieveTaskByProjectId(Long projectId);",
"List<Task> getAllTasks();",
"public String getOrginTaskID() {\n\t\treturn orginTaskID;\n\t}",
"public static ITask findTaskById(final long taskId) {\r\n try {\r\n return SecurityManagerFactory.getSecurityManager().executeAsSystem(new Callable<ITask>() {\r\n public ITask call() throws Exception {\r\n ITask t = null;\r\n try {\r\n TaskQuery query = TaskQuery.create().where().taskId().isEqual(taskId);\r\n t = Ivy.wf().getGlobalContext().getTaskQueryExecutor().getResults(query).get(0);\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n }\r\n return t;\r\n }\r\n });\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n return null;\r\n }\r\n }",
"public String getTaskName(){\r\n\t\treturn this.taskName;\r\n\t}",
"public Task get(int index){\n return tasks.get(index);\n }",
"net.zyuiop.ovhapi.api.objects.license.Task getServiceNameTasksTaskId(java.lang.String serviceName, long taskId) throws java.io.IOException;",
"@Test\n public void testGetMyTasks_ByOwner() throws HTException {\n\n Task t = createTask_OnePotentialOwner();\n\n List<Task> results = services.getMyTasks(\"user1\", TaskTypes.ALL,\n GenericHumanRole.ACTUAL_OWNER, null,\n new ArrayList<Status>(), null, null, null, null, 0);\n\n Assert.assertEquals(1, results.size());\n\n Task taskToCheck = results.get(0);\n\n Assert.assertEquals(t.getActualOwner(), taskToCheck.getActualOwner());\n Assert.assertEquals(Task.Status.RESERVED, taskToCheck.getStatus());\n }",
"public String getTaskType() { return \"?\"; }",
"public Task getTask() {\n return task;\n }",
"public Task getTask(String stateName) throws ProcessManagerException {\r\n Task[] tasks = getTasks();\r\n for (int i = 0; i < tasks.length; i++) {\r\n if (tasks[i].getState().getName().equals(stateName)) {\r\n return tasks[i];\r\n }\r\n }\r\n return null;\r\n }",
"public String GiveTask(){\n return \"[\" + getStatusIcon() + \"] \" + this.description;\n }",
"public List<TaskDescription> getActiveTasks();",
"public java.lang.Object getTaskID() {\n return taskID;\n }",
"public String getTask(int position) {\n HashMap<String, String> map = list.get(position);\n return map.get(TASK_COLUMN);\n }",
"WorkingSchedule getById(Long workingScheduleId);",
"public void fetchTaskDetailsFromDB() {\n TaskInfo taskInfo = TaskInfo.getOrBadRequest(userTaskUUID);\n taskParams = Json.fromJson(taskInfo.getDetails(), UniverseDefinitionTaskParams.class);\n }",
"public ArrayList<Task> retrieveTaskList() {\r\n\r\n\r\n return taskList;\r\n }",
"TbCrmTask selectByPrimaryKey(Long id);",
"public static String getTaskName1(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", 0);\n return prefs.getString(\"taskName\", \"click to edit\");\n }",
"public List<TaskMaster> retrieveAllTaskOfProject(Long projectId);",
"void refreshTaskInformation();",
"HomeWork selectByPrimaryKey(Long id);",
"public static Task fetchByPrimaryKey(long taskId) {\n\t\treturn getPersistence().fetchByPrimaryKey(taskId);\n\t}",
"@Override\r\n\tpublic List<ExecuteTask> getByType(String taskType) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask \"\r\n\t\t\t\t+ \"WHERE et_task_id IN(SELECT task_id FROM task WHERE task_type = ?)\";\r\n\t\treturn getForList(sql,taskType);\r\n\t}",
"public String showDetail(){\r\n\t\tuserRole = (Employee) request.getSession().getAttribute(\"user\");\r\n\t\tString id = request.getParameter(\"id\");\r\n\t\tapplication = iad.getApplicationById(Integer.parseInt(id));\r\n\t\tif(application.getStatus().equals(\"unsubmit\")){\r\n\t\t\ttempId = id;\r\n\t\t\trequest.setAttribute(\"tempId\",id);\r\n\t\t\tif(userRole.isAdmin()){\r\n\t\t\t\treturn \"admin_unsubmit\";\r\n\t\t\t}\r\n\t\t\treturn \"unsubmit\";\r\n\t\t}else{\r\n\t\t\treturn \"submit\";\r\n\t\t}\r\n\t}",
"@Override\n public Optional<Task> getTaskById(UUID id)\n {\n return null;\n }",
"@EventListener(condition = \"!#event.domainObject.new\")\n\tpublic void onApplicationEventLookForUpdate(DomainObjectStoreEvent<Task> event) {\n\t\tEditeTask editeTask = new EditeTask();\n\t\tediteTask.setId(UUID.randomUUID().toString());\n\t\tTask task = event.getDomainObject();\n\n\t\tfinal Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\tfinal CustomUserDetails principal = ((CustomUserDetails) authentication.getPrincipal());\n\t\tUser cs = principal.getUser();\n\t\tif (cs.getIsAdmin()) {\n\t\t\treturn;\n\t\t}\n\n\t\tSet<String> set = task.getDirtyAttributes();\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tIterator iterator1 = set.iterator();\n\t\tList<String> list = new ArrayList<>();\n\t\twhile (iterator1.hasNext()) {\n\t\t\tlist.add((String) iterator1.next());\n\t\t}\n\n\t\tif (list.size() == 1 && list.contains(\"status\")) {\n\t\t\treturn;\n\t\t}\n\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tIterator iterator = set.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tString temp = (String) iterator.next();\n\t\t\tswitch (temp) {\n\t\t\tcase \"description\":\n\t\t\t\tediteTask.setDescription((String) task.getCurrentValue(temp).get(0));\n\t\t\t\tbreak;\n\t\t\tcase \"deadline\":\n\t\t\t\tediteTask.setDeadline((LocalDateTime) task.getCurrentValue(temp).get(0));\n\t\t\t\tbreak;\n\t\t\tcase \"type\":\n\t\t\t\tediteTask.setType((TaskType) task.getCurrentValue(temp).get(0));\n\t\t\t\tbreak;\n\t\t\tcase \"project\":\n\t\t\t\tediteTask.setProject((Project) task.getCurrentValue(temp).get(0));\n\t\t\t\tbreak;\n\t\t\tcase \"taskPerformer\":\n\t\t\t\tediteTask.setTaskPerformer((User) task.getCurrentValue(temp).get(0));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tediteTask.setTaskId(task.getId());\n\t\tediteTaskRepository.save(editeTask);\n\t\tif (!cs.getIsAdmin()) {\n\t\t\ttask.setIsCheck(false);\n\t\t\ttask.setStatus(Status.CLOSED);\n\t\t} else {\n\t\t\ttask.setIsCheck(true);\n\t\t}\n\t}",
"public TaskName getTaskName() {\n return this.taskName;\n }",
"public String getTaskId() {\n return this.taskId;\n }",
"@GET(\"/task/.json\")\n Call<Map<String, Task>> getAllTasks();",
"public static String getTaskName3(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", 0);\n return prefs.getString(\"taskName3\", \"click to edit\");\n }",
"@GetMapping(\"/users/{name}/tasks\")\n public List<Task> getTaskByAssignee(@PathVariable String name){\n List<Task> allTask = taskRepository.findByAssignee(name);\n return allTask;\n }",
"com.google.cloud.aiplatform.v1.PipelineTaskDetail getTaskDetails(int index);",
"@Query(\"SELECT * FROM \" + TABLE + \" WHERE mId == :id\")\n @Nullable\n Task get(long id);",
"@Override\n\tpublic String getResult(Map<String, String> params) throws Exception {\n\t\tlong playerId = Long.valueOf(params.get(\"playerId\"));\n\t\tint taskId = Integer.parseInt(params.get(\"taskId\"));//ID\n\t\tint process = Integer.parseInt(params.get(\"process\"));\n\t\t\n\t\tGamePlayer player = WorldMgr.getPlayerFromCache(playerId);\n\t\tif (player != null && player.getPlayerState() == PlayerState.ONLINE) {\n\t\t\tRealTask task = player.getTaskInventory().getTaskInfos().get(taskId);\n\t\t\tif(task!=null){\n\t\t\t\ttask.updateProcess(process);\n\t\t\t}else{\n\t\t\t\tTaskCfg cfg = TaskTemplateMgr.getTaskCfg(taskId);\n\t\t\t\t\n\t\t\t\tif(cfg!=null){\n\t\t\t\t\tList<Integer> ids = new ArrayList<>();\n\t\t\t\t\tfor (RealTask t: player.getTaskInventory().getTaskInfos().values()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(t.getConfig().getTaskLink() == cfg.getTaskLink()){\n\t\t\t\t\t\t\tids.add(t.getInfo().getTaskId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor (int id : ids) {\n\t\t\t\t\t\tplayer.getTaskInventory().del(id);\n\t\t\t\t\t\tTaskOperateRespMsg.Builder resp = TaskOperateRespMsg.newBuilder();\n\t\t\t\t\t\tresp.setTaskId(id);\n\t\t\t\t\t\tresp.setOperate(3);\n\t\t\t\t\t\tPBMessage pkg = MessageUtil.buildMessage(Protocol.U_RESP_TASKOPERATE, resp);\n\t\t\t\t\t\tplayer.sendPbMessage(pkg);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tTaskInfo updateT = new TaskInfo();\n\t\t\t\t\tupdateT.setPlayerId(player.getPlayerId());\n\t\t\t\t\tupdateT.setProcess(0);\n\t\t\t\t\tupdateT.setTaskId(cfg.getTaskId());\n\t\t\t\t\tupdateT.setState(TaskInfo.UN_ACCEPT);\n\t\t\t\t\tupdateT.setUpdateTime(new Date());\n\t\t\t\t\tupdateT.setCreateTime(new Date());\n\t\t\t\t\tupdateT.setOp(Option.Insert);\n\t\t\t\t\tRealTask newTask = new RealTask(cfg, updateT, player);\n\t\t\t\t\tplayer.getTaskInventory().add(newTask);\n\t\t\t\t\tnewTask.doAccept();\n\t\t\t\t\tnewTask.updateProcess(process);\n\t\t\t\t\treturn HttpResult.getResult(Code.SUCCESS, \"*_*taskGm exec success*_*\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn HttpResult.getResult(Code.SUCCESS, \"*_*taskGm exec fail*_*\");\n\t}",
"public String getName()\r\n {\r\n return taskName;\r\n }"
] | [
"0.64821136",
"0.6440155",
"0.636281",
"0.6218307",
"0.61998564",
"0.61395264",
"0.61360335",
"0.6100134",
"0.60904425",
"0.6089304",
"0.6087423",
"0.60746413",
"0.60565555",
"0.5974407",
"0.5963078",
"0.5952258",
"0.5951971",
"0.5938281",
"0.59082747",
"0.5892572",
"0.5859705",
"0.5859705",
"0.5849897",
"0.5836129",
"0.58280665",
"0.5825723",
"0.5813656",
"0.58033645",
"0.58028823",
"0.5799199",
"0.5793489",
"0.5786451",
"0.5769648",
"0.5769648",
"0.57656324",
"0.5722695",
"0.5719203",
"0.57054144",
"0.57028615",
"0.567592",
"0.5665234",
"0.5661571",
"0.562378",
"0.56200725",
"0.5613936",
"0.56090534",
"0.5596695",
"0.55936235",
"0.5588717",
"0.55856305",
"0.55810595",
"0.55772376",
"0.55701244",
"0.5557191",
"0.5547802",
"0.5532207",
"0.55117625",
"0.5508675",
"0.55022496",
"0.54923534",
"0.5484079",
"0.5481617",
"0.5463708",
"0.5456778",
"0.54539454",
"0.54471284",
"0.5444453",
"0.54401165",
"0.5439424",
"0.54364663",
"0.5428054",
"0.54226714",
"0.54219055",
"0.54215276",
"0.54106885",
"0.5410213",
"0.54072064",
"0.54066813",
"0.54045486",
"0.5396115",
"0.53948444",
"0.53946954",
"0.53914845",
"0.53911257",
"0.53827935",
"0.53610337",
"0.53570676",
"0.5349866",
"0.5348666",
"0.53342783",
"0.53339815",
"0.53325313",
"0.53292334",
"0.53244686",
"0.5316951",
"0.52951616",
"0.5291792",
"0.52910846",
"0.5290417",
"0.52881294",
"0.5287451"
] | 0.0 | -1 |
Mapping from user string to field type | public static FieldType fromString(String s)
{
if (s!=null)
for (FieldType t : FieldType.values())
if (s.equalsIgnoreCase(t.name))
return t;
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface DBTypeMapper {\n public String getDBTypeName(Field field);\n}",
"private static String mapType(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"Date\";\n case INTEGER:\n return \"Integer\";\n case REAL:\n return \"Double\";\n case STRING:\n return \"String\";\n default:\n return null;\n }\n }",
"public Type getType(String f)\n {\n return getFieldTypMap().get(f);\n }",
"FieldType createFieldType();",
"FieldsType createFieldsType();",
"public void setFieldType(java.lang.String fieldType) {\n this.fieldType = fieldType;\n }",
"FieldRuleType createFieldRuleType();",
"com.google.cloud.datacatalog.FieldType getType();",
"public void setFieldType(String fieldType)\n\t{\n\t\tthis.fieldType = fieldType;\n\t}",
"String getType(FieldDef fieldDef, String key,\r\n FieldsRepository fieldsRepository);",
"private String resolveAttrType(String aType){\n\t\tif(aType == \"int\" || aType == \"Int\") return \"int\";\n\t\telse if(aType == \"String\") return \"String\";\n\t\telse if(aType == \"univ\") assertMessage(\"TODO: Map univ with Java type\");\n\t\telse if(aType == \"none\") assertMessage(\"TODO: Map none with Java type\");\n\t\telse if(aType.contains(\"seq\")) assertMessage(\"TODO: Map seqInt with Java type\");\n\n\t\treturn aType;\n\t}",
"public void setField(String fieldName, String value, Class type) {\n Field field;\n try {\n field = this.getClass().getField(fieldName);\n } catch (NoSuchFieldException e) {\n log.error(String.format(\"Data record does not have field - %s. Error: %s\", fieldName, e.getMessage()));\n return;\n }\n\n final String typeString = type.toString();\n\n if (typeString.equals(Double.class.toString())) {\n setDouble(field, value);\n } else if (typeString.equals(String.class.toString())) {\n setString(field, value);\n }\n }",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"private static Type matchType(String type) {\n if (type == null) {\n return VarcharType.VARCHAR;\n }\n\n switch (type.toLowerCase()) {\n case \"string\":\n return VarcharType.VARCHAR;\n case \"int\":\n return IntegerType.INTEGER;\n case \"bigint\":\n return BigintType.BIGINT;\n case \"double\":\n return DoubleType.DOUBLE;\n case \"boolean\":\n return BooleanType.BOOLEAN;\n case \"array<string>\":\n return new ArrayType(VarcharType.VARCHAR);\n case \"timestamp\":\n return TimestampType.TIMESTAMP;\n case \"datetime\":\n return TimestampType.TIMESTAMP;\n case \"number\":\n return DecimalType.createDecimalType(DECIMAL_DEFAULT_PRECISION, DECIMAL_DEFAULT_SCALE);\n default:\n return VarcharType.VARCHAR;\n }\n }",
"public void setType(String fieldReturnType);",
"@Override\n\tpublic String fieldConvert(String field) {\n\t\tif (!StringUtils.isEmpty(field)) {\n\t\t\tswitch (field) {\n\t\t\tcase \"code\":\n\t\t\t\treturn \"CODE\";\n\t\t\tcase \"name\":\n\t\t\t\treturn \"NAME\";\n\t\t\tcase \"createTime\":\n\t\t\t\treturn \"CREATE_TIME\";\n\t\t\tcase \"updateTime\":\n\t\t\t\treturn \"UPDATE_TIME\";\n\t\t\tdefault:\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}",
"public void setCutypeMapping(final String val);",
"void setTypeMapper (TypeMapper typeMapper);",
"public interface TypeMapper {\n public <T> T sqlToJtype(Object sqlValue, Class<T> jType);\n public <T> T jToSql(Object jValue, String sqlType);\n}",
"public abstract FieldType getTargetFieldType();",
"public void setFieldType(String str)\n {\n if (str == null || str.trim().length() == 0)\n throw new IllegalArgumentException(\n \"type must not be null or empty\");\n\n // Threshold\n if (m_strFieldType.equalsIgnoreCase(str))\n return;\n\n if (!isValidFieldType(str))\n throw new IllegalArgumentException(\n \"Invalid field type specified for search field\");\n\n if (str.length() > FIELDTYPE_LENGTH)\n throw new IllegalArgumentException(\n \"field type must not exceed \" + FIELDTYPE_LENGTH +\n \"characters\");\n\n setDirty();\n m_strFieldType = str;\n }",
"FieldType newFieldType(String id, ValueType valueType, QName name, Scope scope);",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"String provideType();",
"MappedDatatype createMappedDatatype();",
"void setType(java.lang.String type);",
"static DruidType getTypeFromMetaData(String type) {\n assert type != null;\n switch (type) {\n case \"LONG\":\n return LONG;\n case \"FLOAT\":\n return FLOAT;\n case \"DOUBLE\":\n return DOUBLE;\n case \"STRING\":\n return STRING;\n default:\n // Likely a sketch, or a type String from the aggregations field.\n return getTypeFromMetric(type);\n }\n }",
"com.google.cloud.datacatalog.FieldTypeOrBuilder getTypeOrBuilder();",
"private static final Object getFieldValue(Field field, String value) {\r\n if (String.class == field.getType()) {\r\n // for fields of type String return value as-is\r\n return value;\r\n } else {\r\n // in all other cases try to construct an object using it's class single-arg constructor\r\n return newObjectFromString(field.getType(), value);\r\n }\r\n }",
"String getTestFieldTypeId();",
"public int getFieldType(String strFieldName) {\n\treturn 0;\n}",
"io.dstore.values.IntegerValue getFieldTypeId();",
"public String getFieldTypeWithPermission(int x, int y, String user) {\n\t\tFieldType ft = fieldMap.getFieldType(x, y);\n\t\treturn ft.name();\n\t}",
"public Object getTypeValueForInternalValue(String value) {\n\t\tObject r = null;\n\t\tString prefix = value.split(getValueConcatenator())[0] + getValueConcatenator();\n\t\tEntityObject eo = getEntityObject(prefix);\n\t\tif (eo!=null) {\n\t\t\tr = eo.getTypeValueForInternalValue(value);\n\t\t}\n\t\treturn r;\n\t}",
"protected abstract String getType();",
"public String toPrimitive(String fieldType) {\n String res = \"\";\n if (fieldType.equals(\"Integer\")) { res = \"int\"; }\n else if (fieldType.equals(\"Short\")) { res = \"short\"; }\n else if (fieldType.equals(\"Long\")) { res = \"long\"; }\n else if (fieldType.equals(\"Byte\")) { res = \"byte\"; }\n else if (fieldType.equals(\"Character\")) { res = \"char\"; }\n else if (fieldType.equals(\"Float\")) { res = \"float\"; }\n else if (fieldType.equals(\"Double\")) { res = \"double\"; }\n else if (fieldType.equals(\"Boolean\")) { res = \"boolean\"; }\n else { return fieldType; }\n return res;\n }",
"public interface Field {\n\n FieldType getType();\n\n FieldCardinality getCardinality();\n\n boolean isRequired();\n\n boolean isOptional();\n\n boolean isRepeated();\n\n String getName();\n}",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"@Test\n\t@Ignore\n\tpublic void field() throws Exception {\n\t\tTypeDescriptor desc = new TypeDescriptor(getClass().getField(\"field\"));\n\t\tassertEquals(Integer.class, desc.getMapKeyTypeDescriptor().getElementType());\n\t\tassertEquals(Long.class, desc.getMapValueTypeDescriptor().getElementType());\n\t}",
"public interface IFieldEncoder<FType> {\r\n void encode(Object target,String fieldName,Object defaultValue);\r\n}",
"public static JavaDataType fromString(String type) {\r\n switch (type) {\r\n case \"String\":\r\n return STRING;\r\n case \"Integer\":\r\n return INTEGER;\r\n case \"Boolean\":\r\n return BOOLEAN;\r\n case \"Double\":\r\n return DOUBLE;\r\n case \"Float\":\r\n return FLOAT;\r\n case \"Long\":\r\n return LONG;\r\n }\r\n return null;\r\n }",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"public interface ITemplateObjectField {\n\t/**\n\t * Field Type;\n\t * \n\t * @author crazyjohn\n\t *\n\t */\n\tenum FieldType {\n\t\tSHORT, INT, LONG, FLOAT, DOUBLE, STRING, ARRAY, LIST, SET, MAP;\n\n\t\tpublic static FieldType typeOf(String fieldType) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\treturn null;\n\t\t}\n\t}\n\n\t/**\n\t * Get the field type;\n\t * \n\t * @return\n\t */\n\tpublic FieldType getType();\n\n\t/**\n\t * Get type name;\n\t * \n\t * @return\n\t */\n\tpublic String getTypeName();\n\n\t/**\n\t * Get the fieldName;\n\t * \n\t * @return\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Get the field comment;\n\t * \n\t * @return\n\t */\n\tpublic String getComment();\n}",
"private String getSqLiteType(Class<?> value){\r\n\t\tString sn = value.getSimpleName();\r\n\t\tif(sn.equalsIgnoreCase(\"String\"))\r\n\t\t\treturn \"text\";\r\n\t\tif(sn.equalsIgnoreCase(\"int\") || sn.equalsIgnoreCase(\"Integer\") || \r\n\t\t sn.equalsIgnoreCase(\"long\") || sn.equalsIgnoreCase(\"Long\") || \r\n\t\t sn.equalsIgnoreCase(\"BigDecimal\")){\r\n\t\t\treturn \"integer\";\r\n\t\t}\r\n\t\tif(sn.equalsIgnoreCase(\"double\") || sn.equalsIgnoreCase(\"Double\") || \r\n\t\t sn.equalsIgnoreCase(\"float\") || sn.equalsIgnoreCase(\"Float\")){\r\n\t\t\treturn \"integer\";\r\n\t\t}\r\n\t\tif(sn.equalsIgnoreCase(\"byte[]\") || sn.equalsIgnoreCase(\"Byte[]\")){\r\n\t\t\treturn \"blob\";\r\n\t\t}\r\n\t\tthrow new NullPointerException(\"type not found \" + sn);\r\n\t}",
"private String getPostgresTypeForAccessDataType(DataType type) {\n\t\tif (type.equals(DataType.BOOLEAN))\n\t\t\treturn \"bool\";\n\t\tif (type.equals(DataType.BINARY))\n\t\t\treturn \"int2\";\n\t\tif (type.equals(DataType.BYTE))\n\t\t\treturn \"int2\";\n\t\tif (type.equals(DataType.COMPLEX_TYPE))\n\t\t\treturn \"bit\";\n\t\tif (type.equals(DataType.DOUBLE))\n\t\t\treturn \"double precision\";\n\t\tif (type.equals(DataType.FLOAT))\n\t\t\treturn \"float4\";\n\t\tif (type.equals(DataType.GUID))\n\t\t\treturn \"character varying(255)\";\n\t\tif (type.equals(DataType.INT))\n\t\t\treturn \"int4\";\n\t\tif (type.equals(DataType.LONG))\n\t\t\treturn \"int8\";\n\t\tif (type.equals(DataType.MEMO))\n\t\t\treturn \"text\";\n\t\tif (type.equals(DataType.MONEY))\n\t\t\treturn \"numeric\";\n\t\tif (type.equals(DataType.NUMERIC))\n\t\t\treturn \"decimal(20,4)\";\n\t\tif (type.equals(DataType.OLE))\n\t\t\treturn \"bytea\";\n\t\t//\n\t\t// Note that we can't tell if its really a DATE, TIME or TIMESTAMP. So\n\t\t// users will\n\t\t// have to use the schema editor to change it as appropriate.\n\t\t//\n\t\tif (type.equals(DataType.SHORT_DATE_TIME))\n\t\t\treturn \"timestamp\";\n\t\tif (type.equals(DataType.TEXT))\n\t\t\treturn \"character varying(255)\";\n\t\treturn \"text\";\n\t}"
] | [
"0.69552064",
"0.68932134",
"0.66122067",
"0.66084015",
"0.6516554",
"0.62693363",
"0.62485844",
"0.6232236",
"0.6119401",
"0.6115821",
"0.6113755",
"0.60815555",
"0.60202104",
"0.60202104",
"0.60202104",
"0.60202104",
"0.60202104",
"0.60202104",
"0.60202104",
"0.60202104",
"0.60202104",
"0.60202104",
"0.60202104",
"0.60202104",
"0.60202104",
"0.5970789",
"0.59410936",
"0.5907648",
"0.58926153",
"0.5868454",
"0.5857734",
"0.58515054",
"0.5844505",
"0.584194",
"0.58197445",
"0.5810701",
"0.5809704",
"0.5809018",
"0.5778667",
"0.57658273",
"0.57501805",
"0.57388145",
"0.57283384",
"0.57198596",
"0.5715149",
"0.57008916",
"0.56989086",
"0.5672849",
"0.56715286",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56405526",
"0.56398106",
"0.5628291",
"0.562738",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.5626079",
"0.561651",
"0.5607022",
"0.55916506"
] | 0.60842913 | 11 |
Retrieves a suited statement input for the given statement (or statement fraction) based on the current selection. Should be extended once new statement input widgets are available. | public static FStatementInput guessStatementInput(String id, Resource s,
URI p, Value o, boolean deletable)
{
if (p!=null)
{
ReadDataManager dm = EndpointImpl.api().getDataManager();
if (dm.isObjectProperty(s,p))
return uriInput(id,s,p,o,deletable);
else if (dm.isDatatypeProperty(s,p))
return literalInput(id,s,p,o,deletable,LiteralType.TYPE_NORMAL);
}
// no suitable statement input found
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected SelectionText input() {\n return inputter;\n }",
"public static FStatementInput getStatementInput(String id, Resource s,\n URI p, Value o, boolean deletable, FieldType type, String query, \n List<Value> values, Repository rep)\n {\n FieldType internalType = type;\n if (type==FieldType.ONTOLOGY && p!=null)\n {\n ReadDataManager dm = EndpointImpl.api().getDataManager();\n if (dm.isObjectProperty(s,p))\n internalType=FieldType.INPUT_URI;\n else\n internalType=FieldType.INPUT_LITERAL;\n } \n \n \n switch (internalType)\n {\n case INPUT_LITERAL:\n return literalInput(id,s,p,o,deletable,LiteralType.TYPE_NORMAL);\n case INPUT_TEXT:\n return literalInput(id,s,p,o,deletable,LiteralType.TYPE_TEXT);\n case INPUT_LITERAL_DATE:\n return dateInput(id,s,p,o,deletable);\n case DROPDOWN:\n \treturn comboboxInput(id,s,p,o,deletable,query,values,rep);\n case INPUT_URI:\n default: \n return uriInput(id,s,p,o,deletable,query);\n }\n }",
"public String selection() {\n return inputter.selection();\n }",
"public static int getUserInput(){\r\n String input;\r\n Integer selection;\r\n while(true){\r\n try {\r\n input = JOptionPane.showInputDialog(null, \"Please enter the desired side size or press cancel for default size,\\n\"\r\n + \"you should enter a valid integer between 3 and 100.\");\r\n if (input == null) {\r\n selection = DEFAULT_SIZE;\r\n }\r\n else {\r\n selection = Integer.parseInt(input);\r\n if (selection > UPPER_BOUND) selection = UPPER_BOUND;\r\n else if (selection < LOWER_BOUND) selection = LOWER_BOUND;\r\n }\r\n break;\r\n }\r\n catch (NumberFormatException e){\r\n continue;\r\n }\r\n }\r\n return selection;\r\n \r\n }",
"private static int getUserChoice() {\n System.out.println(\"Please choose your operation: \");\n return intScanner.nextInt();\n }",
"public final SQLStatement getStatement(String statementName) {\n\t\tSQLStatement statement = (SQLStatement) this.statements\n\t\t\t\t.get(statementName);\n\t\tif (statement == null) {\n\t\t\tstatement = (SQLStatement) globalStatements.get(statementName);\n\t\t\tif (statement == null) {\n\t\t\t\tthrow new IllegalArgumentException(i18n.getString(\n\t\t\t\t\t\t\"couldntFindStat\", statementName));\n\t\t\t}\n\t\t}\n\t\treturn statement;\n\t}",
"protected abstract Optional<T> getSingleSelection();",
"private void selectOperator() {\n String query = \"\";\n System.out.print(\"Issue the Select Query: \");\n query = sc.nextLine();\n query.trim();\n if (query.substring(0, 6).compareToIgnoreCase(\"select\") == 0) {\n sqlMngr.selectOp(query);\n } else {\n System.err.println(\"No select statement provided!\");\n }\n }",
"String userInput(String question);",
"private double selectDouble(String prompt) {\n System.out.println(\"\\n\" + prompt);\n return input.nextDouble();\n }",
"public int displayMenuAndGetUserSelection(){\n view.promptInt(\"1. Create a Character\");\n view.promptInt(\"2. Update a Character\");\n view.promptInt(\"3. Display all Characters\");\n view.promptInt(\"4. Search for a Character\");\n view.promptInt(\"5. Delete a Character\");\n view.promptInt(\"6. Exit\");\n return view.promptInt(\"Select from one of the above choices\");\n }",
"public static int getUserChoice(){\r\n return Input.getInt(\"Enter 1 to add a song, 2 to display all songs, or 3 to quit the program: \");\r\n }",
"public String getUserInput(String question) {\r\n System.out.print(question);\r\n return scanner.next();\r\n }",
"public String singleSelect() throws IOException{\n\t\t int count = 0;\t\t\t\t\t\t// count variable is used for count lines in file\n\t\t Fin = new FileReader(\"Survey.txt\");// to read form text file\n\t\t \n\t\t bufferReader = new BufferedReader(Fin);\t// take contents of file in bufferReader\n\t\t\n\t\t String[] questionArray = new String[6];\n\t\t while( count != 6 ) \t\t // starting 6 lines of files contains data for single select question. so it reads only six line\n\t\t {\n\t\t\t\n\t\t\t String line = bufferReader.readLine();\n\t\t\t System.out.println(line);\n\t\t\t questionArray[count] = line;\t// questionArray holds sentence with its option of single select question\n\t\t\t \n\t\t\t count++;\n\t\t }\n\t\t int flag = 0;\n\t\t String answer = new String();\t// string ans which holds the resultant option given by the user\n while( flag == 0 )\n {\n \t answer = sc.nextLine();\n \n\t for( int i=1; i<6; i++ )\n\t {\n\t if( questionArray[i].equals(answer) )\t// check whether user select answer is available or not\n\t {\n\t \t flag = 1;\t\t\t\t\t// if yes than make flag=1\n\t \t break;\n\t }\n\t }\n\t if( flag == 0 )\n\t {\n\t System.out.println(\"Enter Valid ans\");\t // otherwise continue the loop until answer is valid\n\t \n\t }\n }\n return answer;\t\t\t// return output\n\t }",
"public String getSelectionFormula();",
"@Override\n protected Document input() {\n Decision decision = getStakeholderDecision();\n if (decision == null)\n return null;\n\n Map<String, Node> inputs = new HashMap<String, Node>();\n inputs.put(\"decision\", makeNode(decision)); //$NON-NLS-1$\n inputs.put(\"user\", makeNode(getUser())); //$NON-NLS-1$\n Document resultDoc =\n XMLUtil.makeDocFromNodes(\n CallCenterNamespaceContext.HTTP_WWW_JOELSGARAGE_COM_CALLCENTER,\n HistoryBasedScenePlayer.INPUT, inputs);\n Logger.getLogger(GetStakeholder.class).info(\"input: \" + XMLUtil.writeXML(resultDoc)); //$NON-NLS-1$\n return resultDoc;\n }",
"public SemanticConcept getSelectedInputConcept(){\n \n return this.selectedInputConcept;\n \n }",
"public void inputFraction() {\n\t\tSystem.out.println(\"Input Numerator\");\n\t\tint num = scan.nextInt();\n\t\tSystem.out.println(\"Input Denominator\");\t\n\t\tint deno = scan.nextInt();\n\t\tsetNumerator(num);\n\t\tsetDenominator(deno);\n\t}",
"public static String getWriterSelection(Connection conn){\n String validWriter = \"\";\n Scanner in = new Scanner(System.in);\n try{\n String sql = \"SELECT groupname FROM WritingGroups WHERE groupname = ?\";\n PreparedStatement pstmt = conn.prepareStatement(sql);\n \n System.out.print(\"Writer: \");\n validWriter = in.nextLine();\n pstmt.setString(1, validWriter);\n \n ResultSet rs = executeQ(conn, pstmt, false, false);\n if(!rs.next()){\n System.out.println(\"That group does not exist.\");\n validWriter = \"\";\n }\n }catch (SQLException se) {\n System.out.println(\"Invalid Group.\");\n }\n return validWriter;\n }",
"public String getUserDecision(){\n return input.nextLine();\n }",
"String getInput();",
"public InsertStatement from(SelectStatement statement) {\r\n return copyOnWriteOrMutate(\r\n b -> b.from(statement),\r\n () -> {\r\n if (fromTable != null) {\r\n throw new UnsupportedOperationException(\"Cannot specify both a source SelectStatement and a source table\");\r\n }\r\n if (!values.isEmpty()) {\r\n throw new UnsupportedOperationException(\"Cannot specify both a source SelectStatement and a set of literal field values.\");\r\n }\r\n this.selectStatement = statement;\r\n }\r\n );\r\n }",
"public int promptSeatSelect()\n\t{\n\t\t\t\t\n\t\tString tempSeatSelection = JOptionPane.showInputDialog(\"Please type 1 for a window seat or 2 for isle seat: \");\n\t\t\n\t\t//handles a cancel\n\t\tif(tempSeatSelection == null)\n\t\t{\n\t\t\tpromptExit();\n\t\t}\n\t\t\n\t\tif(!validate(tempSeatSelection))\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"You have not made a valid entry\");\n\t\t\tpromptClassSelect();\n\t\t}\n\t\t\n\t\tint seatSelection = Integer.parseInt(tempSeatSelection);\n\t\t \n\t\tif(seatSelection != 1 && seatSelection != 2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"You have not made a valid entry\");\n\t\t\tpromptSeatSelect();\n\t\t}\n\t\t\n\t\treturn seatSelection;\n\t\t\n\t}",
"public int getOfYourChoiceInput() {\n return ofYourChoiceInput;\n }",
"private static Option playerInput() {\n\t\tsc = new Scanner(System.in);\n\t\tSystem.out.println(\"Do you choose Rock(0), Paper(1) or Scissors(2)?\");\n\t\treturn Option.values()[sc.nextInt()];\n\t}",
"private Nation determineNation() {\n String selectedNation = view.getNationsTabPane()\n .getSelectionModel()\n .getSelectedItem()\n .getText()\n .toUpperCase()\n .replace(\" \", \"_\");\n\n return Nation.valueOf(selectedNation);\n }",
"org.apache.calcite.avatica.proto.Common.StatementHandle getStatement();",
"public static void getInput() {\n\t\tSystem.out.print(\"Expression y=? \");\n\t\tScanner s = new Scanner(System.in);\n\t\texpression = s.nextLine();\n\t\texpression.toLowerCase();\n\t\tSystem.out.print(\"x? \");\n\t\tx = s.nextDouble();\n\t}",
"private String getUserInput(Scanner sc) {\n\t\t\n\t\tif (sc == null) {\n\t\t\treturn null;\n\t\t}\n\n\t System.out.print(\"\\nctransfer > \");\n\t return sc.nextLine();\n\t}",
"Statement getStmt();",
"protected E getEntityByQuerry(PreparedStatement statement) throws DAOException {\n\t\tE result = null;\n\n\t\ttry (ResultSet rs = statement.executeQuery()) {\n\n\t\t\tif (rs.next())\n\t\t\t\tresult = parseEntity(rs);\n\n\t\t} catch (SQLException cause) {\n\t\t\tthrow new DAOException(cause);\n\t\t}\n\t\treturn result;\n\t}",
"public R getSingleSelection()\r\n {\r\n final ListSelectionModel lsm = jTable.getSelectionModel();\r\n if( lsm.isSelectionEmpty() == false )\r\n {\r\n final int row = lsm.getLeadSelectionIndex(); // or use .getJTable().getSelectedRow() for single or lsm.isSelectedIndex() for multiple selection\r\n if( row != Util.INVALID_INDEX )\r\n {\r\n final int xlatedRow = jTable.convertRowIndexToModel( row ); // has to be done with auto-sorter\r\n return provideRow( xlatedRow );\r\n }\r\n }\r\n\r\n return null;\r\n }",
"private static String getCountryInput(){\n System.out.println(countryPrompt);\n String s = sc.nextLine();\n while(!query.countryExists(s) && !s.equals(\"x\")){\n System.out.println(\"That country is not available. Please ensure correct spelling and capitalization\");\n System.out.println(countryPrompt);\n System.out.println(\"Enter 'x' to cancel this query\");\n s = sc.nextLine();\n }\n if(s.equals(\"x\")){\n return null;\n } else {\n return s;\n }\n\n }",
"Object getSelection();",
"public final Statement statement() throws RecognitionException {\r\n Statement result = null;\r\n\r\n int statement_StartIndex = input.index();\r\n\r\n QuestionStatement qst =null;\r\n\r\n ConditionalStatement cstmt =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 3) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:31:2: (qst= questionStatement |cstmt= conditionalStatement )\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( (LA2_0==Ident) ) {\r\n alt2=1;\r\n }\r\n else if ( (LA2_0==IfRW) ) {\r\n alt2=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 2, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt2) {\r\n case 1 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:31:4: qst= questionStatement\r\n {\r\n pushFollow(FOLLOW_questionStatement_in_statement125);\r\n qst=questionStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = qst; }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:32:4: cstmt= conditionalStatement\r\n {\r\n pushFollow(FOLLOW_conditionalStatement_in_statement137);\r\n cstmt=conditionalStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = cstmt; }\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 3, statement_StartIndex); }\r\n\r\n }\r\n return result;\r\n }",
"protected DomainObject findOne( StatementSource stmt ) {\n\t\tDomainObject obj = null;\n\t\tSQLiteDatabase db;\n\t\tCursor c = null;\n\t\ttry {\n\t\t\tUtils.Log( \"opening the database for read.\" );\n\t\t\tdb = Repository.getInstance( mContext ).getReadableDatabase();\n\t\t\tUtils.Log( stmt.sql() );\n\t\t\tc = db.rawQuery( stmt.sql(), stmt.parameters() );\n\t\t\tif ( c != null ) {\n\t\t\t\tc.moveToFirst();\n\t\t\t\tobj = load( c );\n\t\t\t}\n\t\t} catch ( SQLiteException e ) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif ( c != null ) {\n\t\t\t\tc.close();\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t}",
"private static String getPhraseInput() {\n\t\treturn getQuery(\"Query Phrase\");\n\t}",
"public int getSelection() {\n \tcheckWidget();\n \treturn selection;\n }",
"public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }",
"public String getMySelection() {\n return mySelection;\n }",
"public String getStatement() {\r\n\t\treturn statement;\r\n\t}",
"private javax.persistence.criteria.Selection<?> getCriteriaSelection(Selection selection, Root<?> from) {\n Field selectedField = (Field) selection;\n GraphQLAttributeMetadata attributeMetadata = metadata.getAttribute(selectedField.getName());\n\n return from.get(attributeMetadata.getName());\n }",
"public String getStatement();",
"public static String getSentence (Scanner input){\r\n System.out.print(\"Enter a sentence: \");\r\n String sentence = input.nextLine();\r\n return sentence; \r\n }",
"private String extractSecurityQuestion() {\n // NOTE JComboBox.getSelectedItem() will not catch keyboard edits as they are typed,\n // so JComboBox.getEditor().getItem() is used.\n String securityQuestion = ((String) securityQuestionJComboBox.getEditor().getItem()).trim();\n if (isEmpty(securityQuestion)) {\n return null;\n } else {\n return securityQuestion;\n }\n }",
"private int getChoice() throws IOException {\n\n int input;\n\n do {\n try {\n Thread.sleep(100);\n stdErr.println();\n\n stdErr.print(\"[0] Quit\\n\"\n + \"[1] Display student's information\\n\"\n + \"[2] Display student's ranking according their grade\\n\"\n + \"[3] Display student's information by thier name\\n\"\n + \"[4] Display all scholarship information\\n\"\n + \"[5] Display scholarship information according their name\\n\"\n + \"[6] Apply for scholarship\\n\"\n + \"[7] Display student's scholarship\\n\"\n + \"choice> \");\n\n stdErr.flush();\n\n input = Integer.parseInt(stdIn.readLine());\n\n stdErr.println();\n\n if (0 <= input && input <= 7) {\n break;\n } else {\n stdErr.println(\"Invalid choice: \" + input);\n }\n } catch (NumberFormatException nfe) {\n stdErr.println(nfe);\n } catch (InterruptedException e) {\n\n }\n } while (true);\n\n return input;\n }",
"private String getInput(XmlNode animationNode) {\n XmlNode node = animationNode.getChild(\"sampler\").getChildWithAttribute(\"input\", \"semantic\", \"INPUT\");\n return node.getAttribute(\"source\").substring(1);\n }",
"String getSelect();",
"String getSelect();",
"private String getChoice() {\n return searchChoiceBox.getValue();\n }",
"protected static int easyIn() {\n // ADDITIONAL CHECKS?\n int a;\n debug(\"Please enter your selection: \");\n scanner = new Scanner(System.in);\n\t\ta = scanner.nextInt();\n return a;\n }",
"public static void getInput() {\n\t\tselectOption();\n\t\tsc = new Scanner(System.in);\n\t userInput2 = sc.nextInt();\n\t \n\t switch (userInput2) {\n\t \tcase 1: System.out.print(\"Enter the number for the factorial function: \");\n\t \t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.println(\"The factorial of \" + userInput2 + \" is \" + factorial(userInput2));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 2: System.out.print(\"Enter the Fibonacci position: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.println(\"The fibonacci number at position \" + userInput2 + \" is \" + fib(userInput2));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 3: System.out.print(\"Enter the first number: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter the second number: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(\"The GCD of the numbers \" + userInput2 + \" and \" + userInput3 + \" is \" + GCD(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 4: System.out.print(\"Enter n: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter r: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(userInput2 + \" choose \" + userInput3 + \" is \" + choose(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 5: System.out.print(\"Enter n: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter k: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(\"The Josephus of \" + userInput2 + \" and \" + userInput3 + \" is \" + josephus(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 6: System.out.println(\"Ending program...\");\n \t\t\t\tSystem.exit(0);\n \t\t\t\tbreak;\n \t\tdefault: System.out.println(\"\\nPlease enter number between 1 and 6\\n\");\n\t \t\t\tgetInput();\n\t \t\t\tbreak;\n\t }\t\n\t}",
"public final QuestionStatement questionStatement() throws RecognitionException {\r\n QuestionStatement result = null;\r\n\r\n int questionStatement_StartIndex = input.index();\r\n\r\n Question qst =null;\r\n\r\n ComputedQuestion cq =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 4) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:37:2: (qst= question |cq= computedQuestion )\r\n int alt3=2;\r\n int LA3_0 = input.LA(1);\r\n\r\n if ( (LA3_0==Ident) ) {\r\n int LA3_1 = input.LA(2);\r\n\r\n if ( (LA3_1==27) ) {\r\n int LA3_2 = input.LA(3);\r\n\r\n if ( (LA3_2==StringLiteral) ) {\r\n switch ( input.LA(4) ) {\r\n case BooleanType:\r\n {\r\n int LA3_4 = input.LA(5);\r\n\r\n if ( (LA3_4==EOF||(LA3_4 >= Ident && LA3_4 <= IfRW)||LA3_4==36) ) {\r\n alt3=1;\r\n }\r\n else if ( (LA3_4==21) ) {\r\n alt3=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 3, 4, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n break;\r\n case IntegerType:\r\n {\r\n int LA3_5 = input.LA(5);\r\n\r\n if ( (LA3_5==EOF||(LA3_5 >= Ident && LA3_5 <= IfRW)||LA3_5==36) ) {\r\n alt3=1;\r\n }\r\n else if ( (LA3_5==21) ) {\r\n alt3=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 3, 5, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n break;\r\n case StringType:\r\n {\r\n int LA3_6 = input.LA(5);\r\n\r\n if ( (LA3_6==EOF||(LA3_6 >= Ident && LA3_6 <= IfRW)||LA3_6==36) ) {\r\n alt3=1;\r\n }\r\n else if ( (LA3_6==21) ) {\r\n alt3=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 3, 6, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 3, 3, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 3, 2, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 3, 1, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 3, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt3) {\r\n case 1 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:37:4: qst= question\r\n {\r\n pushFollow(FOLLOW_question_in_questionStatement162);\r\n qst=question();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = qst; }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:38:4: cq= computedQuestion\r\n {\r\n pushFollow(FOLLOW_computedQuestion_in_questionStatement174);\r\n cq=computedQuestion();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = cq; }\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 4, questionStatement_StartIndex); }\r\n\r\n }\r\n return result;\r\n }",
"protected Document getInputImpl(Decision decision) {\n if (decision == null)\n return null;\n Map<String, Node> inputs = new HashMap<String, Node>();\n inputs.put(\"decision\", makeNode(decision)); //$NON-NLS-1$\n Document resultDoc =\n XMLUtil.makeDocFromNodes(\n CallCenterNamespaceContext.HTTP_WWW_JOELSGARAGE_COM_CALLCENTER, INPUT, inputs);\n Logger.getLogger(VerifyDecision.class).info(\"input: \" + XMLUtil.writeXML(resultDoc)); //$NON-NLS-1$\n return resultDoc;\n }",
"protected abstract String statementType();",
"public Integer getSelectedSocialCondition(String socialCondition) {\n switch (socialCondition) {\n case \"Single\":\n return MoodEvent.SocialCondition.SINGLE;\n case \"Pair\":\n return MoodEvent.SocialCondition.PAIR;\n case \"Small Group\":\n return MoodEvent.SocialCondition.SMALL_GROUP;\n case \"Crowd\":\n return MoodEvent.SocialCondition.CROWD;\n default:\n return null;\n }\n }",
"private static MenuOption getRequest() \n\t{\n\t\tint request = 5;\n\t\tSystem.out.printf(\n\t\t\t\t\"%n--[ Manage My Contacts ]--%n%n%s%n%s%n%s%n%s%n%s%n\",\n\t\t\t\t\"1. Add new contact\", \"2. Delete a contact\",\n\t\t\t\t\"3. View a contact\", \"4. Display all contacts\",\n\t\t\t\t\"5. Exit program\");\n\t\ttry \n\t\t{\n\t\t\tScanner input = new Scanner(System.in);\n\t\t\tdo \n\t\t\t{\n\t\t\t\tSystem.out.printf(\"%nSelection: \");\n\t\t\t\trequest = input.nextInt();\n\t\t\t} while ((request < 1) || (request > 5));\n\t\t} catch (NoSuchElementException e) \n\t\t{\n\t\t\tSystem.err.println(\"Invalid input. Closing\");\n\t\t}\n\t\treturn choices[request - 1];\n\t}",
"private PR1Model.Shape getSelection() { return selection.get(); }",
"protected void generateSelectClause( WrqInfo wrqInfo, SQLStatementWithParams sqlStatement ) throws BindingNotFoundException\n {\n StringBuilder sql = new StringBuilder();\n List<Element> boundVariables = new LinkedList<Element>();\n\n sql.append(\"SELECT \");\n Iterator<String> it = wrqInfo.getFullSelectListBRefs().iterator();\n String concat=\"\";\n while( it.hasNext() )\n {\n WrqBindingItem bi = wrqInfo.getAllBRefAggrs().get(it.next());\n sql.append(concat);\n // We may want to not calculate this value if another bRef part of Grouping Set is on (sub)total level\n // Typical case is the caption. It could be part of the Grouping Set itself but this keeps the query simpler, see scorecard\n if( wrqInfo.reqHasGroupingFunction() && wrqInfo.getGroupingBRefs().contains(bi.getSkipForTotals()) ) {\n String[] grpFM = DatabaseCompatibility.getInstance().getCalcFktMapping(wrqQueryBuilder.getJdbcResourceName()).get(\"Grouping\");\n WrqBindingItem sftBi = wrqInfo.getAllBRefs().get(bi.getSkipForTotals());\n sql.append(\"CASE WHEN \").append(grpFM[1]).append(sftBi.getQColumnExpression()).append(grpFM[3]).append(\" = 0 THEN \");\n sql.append(bi.getQColumnExpressionWithAggr()).append(\" END \");\n } else {\n sql.append(bi.getQColumnExpressionWithAggr()).append(\" \");\n }\n sql.append( bi.getAlias() );\n concat = \", \";\n boundVariables.addAll( bi.getBoundVariables() );\n }\n sqlStatement.append(sql.toString(), boundVariables, wrqInfo.getResultingBindingSet());\n }",
"public InputSource getInputSource(String inputSource) {\n if (inputSource.equalsIgnoreCase(\"DEFAULT\")) \n return InputSource.DEFAULT;\n else if (inputSource.equalsIgnoreCase(\"USER\")) \n return InputSource.USER;\n else if (inputSource.equalsIgnoreCase(\"FILE\")) \n return InputSource.FILE;\n else if (inputSource.equalsIgnoreCase(\"NETWORK\"))\n \treturn InputSource.NETWORK;\n else \n return InputSource.ERROR;\n }",
"private String selectString(String prompt) {\n System.out.println(\"\\n\" + prompt);\n return input.next();\n }",
"public static FLiteralStatementInput literalInput(String id, Resource s, \n URI p, Value o, boolean deletable, LiteralType type)\n {\n try\n {\n Literal oLiteral=null;\n if (o!=null)\n oLiteral=(Literal)o;\n return new FLiteralStatementInput(id,s,p,oLiteral,deletable,type);\n }\n catch (ClassCastException e)\n {\n logger.warn(\"Cannot construct literal input form:\" + e.getMessage());\n return null;\n }\n }",
"public double selectCurrentBalance(int choice, String getUser);",
"public String getStatement()\n {\n return _statement;\n }",
"public Skills getChosenSkill();",
"public String getInput() {\n return this.input.substring(this.index);\n }",
"public static void userSelection(){\n\t\tint selection;\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Which program would you like to run?\");\n\t\tselection=input.nextInt();\n\n\t\tif(selection == 1)\n\t\t\tmazeUnion();\n\t\tif(selection == 2)\n\t\t\tunionPathCompression();\n\t\tif(selection == 3)\n\t\t\tmazeHeight();\n\t\tif(selection == 4)\n\t\t\tmazeSize();\n\t\tif(selection == 5)\n\t\t\tsizePathCompression();\n\t}",
"public int queryCurInputSrc() {\n int value = 0;\n Cursor cursor = mActivity.getContentResolver().query(Uri.parse(Constants.USERSETTING_SYSTEMSETTING),\n null, null, null, null);\n if (cursor != null && cursor.moveToFirst()) {\n value = cursor.getInt(cursor.getColumnIndex(Constants.ENINPUTSOURCETYPE));\n }\n if (cursor != null) {\n cursor.close();\n }\n return value;\n }",
"private AbstractSelection<?> constructSingleSelect(CriteriaBuilderImpl cb, CriteriaQueryImpl<?> q, Tree selectDef) {\n \t\t// constructor select\n \t\tif (selectDef.getType() == JpqlParser.NEW) {\n \t\t\tfinal String className = new Qualified(selectDef.getChild(0)).toString();\n \n \t\t\tfinal List<Selection<?>> childSelections = Lists.newArrayList();\n \t\t\tfinal Tree arguments = selectDef.getChild(1);\n \t\t\tfor (int i = 0; i < arguments.getChildCount(); i++) {\n \t\t\t\tfinal Tree argumentDef = arguments.getChild(i);\n \n \t\t\t\tchildSelections.add(this.getExpression(cb, q, argumentDef, null));\n \t\t\t}\n \n \t\t\ttry {\n \t\t\t\tfinal Class<?> clazz = this.metamodel.getEntityManagerFactory().getClassloader().loadClass(className);\n \t\t\t\treturn cb.construct(clazz, childSelections.toArray(new Selection[childSelections.size()]));\n \t\t\t}\n \t\t\tcatch (final ClassNotFoundException e) {\n \t\t\t\tthrow new PersistenceException(\"Cannot load class: \" + className + \", line \" + selectDef.getLine() + \":\" + selectDef.getCharPositionInLine());\n \t\t\t}\n \t\t}\n \n \t\t// object type\n \t\tif (selectDef.getType() == JpqlParser.OBJECT) {\n \t\t\tfinal String alias = selectDef.getChild(0).getText();\n \t\t\treturn this.getAliased(q, alias);\n \t\t}\n \n \t\treturn this.getExpression(cb, q, selectDef, null);\n \t}",
"public String getInput() {\r\n return getText();\r\n }",
"protected void generateFromClause( WrqInfo wrqInfo, SQLStatementWithParams sqlStatement ) throws BindingException\n {\n sqlStatement.append(\" FROM \");\n WrqBindingSet bs = wrqInfo.getResultingBindingSet();\n resolvedBindingSets.addAll(bs.getResolvedBindingSets());\n sqlStatement.append(wrqInfo.getSQLSelectWithParams()); \n }",
"private void getUserTextInput() {\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n mZipcodeInput = Integer.parseInt(mBinding.fragmentSearchZipcodeTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n mCityInput = mBinding.fragmentSearchCityTxt.getText().toString().trim();\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n mMinSurfaceInput = Utils.convertAreaAccordingToPreferences(mActivity, mBinding.fragmentSearchMinSurfaceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n mMaxSurfaceInput = Utils.convertAreaAccordingToPreferences(mActivity, mBinding.fragmentSearchMaxSurfaceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n mMinPriceInput = Utils.convertPriceAccordingToPreferences(mActivity, mBinding.fragmentSearchMinPriceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n mMaxPriceInput = Utils.convertPriceAccordingToPreferences(mActivity, mBinding.fragmentSearchMaxPriceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n mFloorsInput = Integer.parseInt(mBinding.fragmentSearchMinFloorsTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchForSaleTxt.getText()))\n mForSaleDate = Converters.dateToTimestamp(Utils.convertStringToDate(mBinding.fragmentSearchForSaleTxt.getText().toString().trim()));\n if (!TextUtils.isEmpty(mBinding.fragmentSearchSoldTxt.getText()))\n mSoldDate = Converters.dateToTimestamp(Utils.convertStringToDate(mBinding.fragmentSearchSoldTxt.getText().toString().trim()));\n }",
"protected void studyWithStudyTool() {\n regularPresenter.chooseStudyToolToStudyPrompter();\n String studyToolId = scanner.nextLine();\n if (studyToolId.equals(\"q\")) {\n return;\n }\n if (verifyRightToView(studyToolId)) {\n study(studyToolId);\n } else {\n regularPresenter.noStudyToolToStudySorrier();\n }\n }",
"String userChosen();",
"public Skills chooseSkill();",
"@Override\r\n\tpublic ISelection getSelection() {\r\n\t\t//$TODO when could this even happen?\r\n\t\tif (getViewer() == null)\r\n\t\t\treturn StructuredSelection.EMPTY;\r\n\t\treturn getViewer().getSelection();\r\n\t}",
"public void pickSandwhich() {\n includedIngredients.clear();\n if(selectSandwhich.getValue().equals(\"Chicken\")){\n includedIngredients.appendText(\"Fried Chicken\\nSpicy Sauce\\nPickles\");\n sandwhich = new Chicken();\n\n }\n\n if(selectSandwhich.getValue().equals(\"Fish\")){\n includedIngredients.appendText(\"Grilled Snapper\\nCilantro\\nLime\");\n sandwhich = new Fish();\n }\n\n if(selectSandwhich.getValue().equals(\"Beef\")){\n includedIngredients.appendText(\"Roast Beef\\nProvolone Cheese\\nMustard\");\n sandwhich = new Beef();\n }\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n }",
"public InputLayer selectInputLayer(ModelInputTypes m) {\n switch(m) {\n case GENERATEDSIN:\n return new SoundGeneration(log, model.getDegrees());\n case PRECORDEDHRIR:\n return new SoundFromFile(log, convertDegreesToPolar(model.getDegrees()));\n default: \n throw new IllegalArgumentException(\"No Model Input Type Found.\");\n }\n }",
"String getUserInput();",
"public String chooseSuit()\t{\n\t\tString choose = \"\";\n\t\tSystem.out.println(\"Choose a suit: h) hearts, d) diamonds, s) spades, c) clubs\");\n\t\tchoose = input.nextLine();\n\t\tswitch(choose.toLowerCase())\t{\n\t\tcase \"h\":\n\t\t\tchoose = \"Hearts\";\n\t\t\tbreak;\n\t\tcase \"d\":\n\t\t\tchoose = \"Diamonds\";\n\t\t\tbreak;\n\t\tcase \"s\":\n\t\t\tchoose = \"Spades\";\n\t\t\tbreak;\n\t\tcase \"c\":\n\t\t\tchoose = \"Clubs\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Try again!\");\n\t\t\tchooseSuit();\n\t\t\tbreak;\n\t\t}\n\t\treturn choose;\n\t}",
"PreparedStatement getQueryStatement(String statement) throws SQLException {\n // This will prepare the statement *every time* because queryString never equals the statement.\n // Can we just rely on the fact that the JDBC driver will optimize that out of the way?\n if (queryStatement == null || !queryString.equals(statement)) {\n JdbcUtil.closeQuietly(queryStatement);\n queryStatement = prepareStatement(sqlConnection, prepareStringStatement(statement));\n }\n return queryStatement;\n }",
"private String getPlayerChoice() {\n Scanner userInput = new Scanner(System.in); // Create a Scanner object\n System.out.println(\"Enter choice:\\nr = rock\\np = paper\\ns = scissors\\nq = quit\");\n return userInput.nextLine().toUpperCase(); \n }",
"public LetterType askWildLetterType(JFrame frame) {\n final String msg = \"What letter should this wild letter represent?\";\n final String title = \"Select wild letter type\";\n\n String response = (String) JOptionPane.showInputDialog(frame, msg,\n title, JOptionPane.QUESTION_MESSAGE, null, selectionValues,\n selectionValues[0]);\n\n for (LetterType type : LetterType.values()) {\n if (type.getName().equals(response)) {\n return type;\n }\n }\n return null;\n }",
"public abstract void selectQuestion();",
"Input createInput();",
"INPUT createINPUT();",
"public String inputSpecialized() {\n String specialized = editTextSpecial.getText().toString();\n return specialized;\n }",
"public static double getOperand(String prompt) {\n\t Scanner input = new Scanner(System.in);\t// Create a Scanner object\r\n\r\n\t System.out.print(prompt);\r\n\t double operand = input.nextDouble();\r\n\t return operand; \r\n\r\n\t }",
"public String getPrimaryKeySelectionQuery(String tableName,\n\t\t\tExpression whereClause) {\n\t\tDatabaseTable dbT = annotatedTableSchema.get(tableName);\n\t\treturn dbT.generatedPrimaryKeyQuery(whereClause.toString());\n\t}",
"public PreparedStatement getStatement() {\n return statement;\n }",
"String getSelection() {\n String topic = \"\";\n\n var br = new BufferedReader(new InputStreamReader(System.in));\n\n System.out.println(\"Enter topic: \");\n try {\n topic = br.readLine();\n } catch (IOException e) {\n System.out.println(\"Error reading console.\");\n }\n return topic;\n }",
"@Override\n\tpublic Student selectStudent(String matriculation) {\n\t\t// FIX ME\n\t\treturn (Student) users.getStudents().get(matriculation);\n\t}",
"InputPromptTransmitter getInputPromptTransmitter();",
"protected abstract void getInput();",
"public char userChoice ()\n {\n\tString c = IBIO.inputString (\"Stag, Doe, Phoenix, Horse, or Wolf? \");\n\tboolean Check = isValid (c);\n\twhile (!isValid (c))\n\t{\n\t printSlow (\"Error, invalid input.\");\n\t c = IBIO.inputString (\"Stag, Doe, Phoenix, Horse, or Wolf? \");\n\t}\n\n\n\tif (c.equalsIgnoreCase (\"Stag\") || c.equalsIgnoreCase (\"s\"))\n\t return 's';\n\telse if (c.equalsIgnoreCase (\"Doe\") || c.equalsIgnoreCase (\"d\"))\n\t return 'd';\n\telse if (c.equalsIgnoreCase (\"Phoenix\") || c.equalsIgnoreCase (\"p\"))\n\t return 'p';\n\telse if (c.equalsIgnoreCase (\"Horse\") || c.equalsIgnoreCase (\"h\"))\n\t return 'h';\n\telse\n\t return 'w';\n\n }",
"public int input1(){\n int Input1 = Integer.parseInt(numerator1.getText());\n return Input1;\n }",
"public void getGamerInput() {\n\t\ttry {\n\t\t\tsCurrentCharInput = String.format(\"%s\", (consoleInput.readLine())).toUpperCase(Locale.getDefault());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/* ************************************* */\n\t\tconsoleLog.println(\" \");\n\t\t// System.out.println(\" Quit readline \");\n\t\t/* ************************************* */\n\t\t// if (sCurrentCharInput.length() == 0)\n\t\t// continue;\n\n\t\t// if (sCurrentCharInput.contains(sAskedWord))\n\t\t// continue;\n\n\t}",
"public void getPlayerInput() {\n System.out.println(\"Enter a Command: \");\n playerInput = inputScanner.nextLine();\n }",
"public double getParam(String s) {\n switch(s) {\n case \"mu\":\n return this.mu;\n case \"lambda\":\n return this.lambda;\n case \"fbDocs\":\n return this.fbDocs;\n case \"fbTerms\":\n return this.fbTerms;\n case \"fbMu\":\n return this.fbMu;\n case \"fbOrigWeight\":\n return this.fbOrigWeight;\n default:\n throw new IllegalArgumentException\n (\"Illegal argument: IndriExpansion doesn't have argument \" + s);\n }\n }",
"public static int getStrategyChoice() {\r\n\t\tint strategy = -1;\r\n\t\tgetStrategyScanner = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Choose the strategy of your opponent:\" +\r\n\t\t\t\t\"\\n\\t(\" + RANDOM + \") - Random player\" +\r\n\t\t\t\t\"\\n\\t(\" + DEFENSIVE + \") - Defensive player\" +\r\n\t\t\t\t\"\\n\\t(\" + SIDES + \") - To-the-Sides player player\");\r\n\t\twhile (strategy != RANDOM & strategy != DEFENSIVE\r\n\t\t\t\t& strategy != SIDES) {\r\n\t\t\tstrategy=getStrategyScanner.nextInt();\r\n\t\t}\r\n\t\treturn strategy;\r\n\t}"
] | [
"0.5533671",
"0.5245862",
"0.5020471",
"0.48267677",
"0.4751867",
"0.47408003",
"0.47258526",
"0.4661734",
"0.462931",
"0.46252477",
"0.46216878",
"0.45981017",
"0.45951635",
"0.4572538",
"0.4546645",
"0.44962928",
"0.44893387",
"0.44766968",
"0.4469761",
"0.44539866",
"0.44327152",
"0.44310862",
"0.44309342",
"0.4415063",
"0.44028917",
"0.44024515",
"0.43980014",
"0.4394374",
"0.43865487",
"0.437668",
"0.43751696",
"0.43731096",
"0.43705592",
"0.4360673",
"0.435225",
"0.43519837",
"0.43454716",
"0.43423867",
"0.43401226",
"0.4335032",
"0.43326965",
"0.4331835",
"0.43281168",
"0.43268767",
"0.43220457",
"0.4315812",
"0.4297277",
"0.42970946",
"0.42970946",
"0.4287845",
"0.42869583",
"0.42855462",
"0.42738867",
"0.42716253",
"0.4264423",
"0.42594427",
"0.4258084",
"0.4246236",
"0.42455047",
"0.42417327",
"0.42369375",
"0.42318326",
"0.4231394",
"0.4231354",
"0.4229681",
"0.4228554",
"0.42166337",
"0.42124534",
"0.42116514",
"0.42073715",
"0.42068997",
"0.4205371",
"0.4203383",
"0.42013496",
"0.42003554",
"0.41995955",
"0.41959426",
"0.4195092",
"0.41882986",
"0.41845354",
"0.41824642",
"0.41816232",
"0.4180847",
"0.41715884",
"0.41637933",
"0.4160905",
"0.41586828",
"0.4156417",
"0.4155061",
"0.41547897",
"0.41525936",
"0.4149429",
"0.4143468",
"0.41427195",
"0.41399604",
"0.41356933",
"0.41335517",
"0.41315198",
"0.41289064",
"0.41256136"
] | 0.514887 | 2 |
Retrieves a statement input for the given statement (or statement fraction) and the specified field type. If type==FieldType.ONTOLOGY, the type (either FieldType.LITERAL or FieldType.URI) is inferred from the ontology (using URI as a default). | public static FStatementInput getStatementInput(String id, Resource s,
URI p, Value o, boolean deletable, FieldType type, String query,
List<Value> values, Repository rep)
{
FieldType internalType = type;
if (type==FieldType.ONTOLOGY && p!=null)
{
ReadDataManager dm = EndpointImpl.api().getDataManager();
if (dm.isObjectProperty(s,p))
internalType=FieldType.INPUT_URI;
else
internalType=FieldType.INPUT_LITERAL;
}
switch (internalType)
{
case INPUT_LITERAL:
return literalInput(id,s,p,o,deletable,LiteralType.TYPE_NORMAL);
case INPUT_TEXT:
return literalInput(id,s,p,o,deletable,LiteralType.TYPE_TEXT);
case INPUT_LITERAL_DATE:
return dateInput(id,s,p,o,deletable);
case DROPDOWN:
return comboboxInput(id,s,p,o,deletable,query,values,rep);
case INPUT_URI:
default:
return uriInput(id,s,p,o,deletable,query);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static ValueSource getValueSource(String field, Type type) {\n if (type == Type.BYTE) {\n return new ByteFieldSource(field);\n }\n if (type == Type.SHORT) {\n return new ShortFieldSource(field);\n }\n if (type == Type.INT) {\n return new IntFieldSource(field);\n }\n if (type == Type.FLOAT) {\n return new FloatFieldSource(field);\n }\n throw new IllegalArgumentException(type+\" is not a known Field Score Query Type!\");\n }",
"public static FLiteralStatementInput literalInput(String id, Resource s, \n URI p, Value o, boolean deletable, LiteralType type)\n {\n try\n {\n Literal oLiteral=null;\n if (o!=null)\n oLiteral=(Literal)o;\n return new FLiteralStatementInput(id,s,p,oLiteral,deletable,type);\n }\n catch (ClassCastException e)\n {\n logger.warn(\"Cannot construct literal input form:\" + e.getMessage());\n return null;\n }\n }",
"protected abstract String statementType();",
"private ScalarEnum getInputType(final String inputType) {\n String temp = inputType.replaceAll(\"-\", \"_\");\n INPUT_TYPE answer = Arrays.stream(\n INPUT_TYPE.values()\n )\n .filter(value -> value.name().equals(temp))\n .findFirst()\n .orElse(INPUT_TYPE.unknown);\n return answer.getScalar();\n }",
"private static IntBuffer getLineType(LineType type, IntBuffer sto, IntBuffer sts, IntBuffer ots)\n\t{\n\t\tswitch (type)\n\t\t{\n\t\t\tcase OUTSIDE_TO_SUN:\n\t\t\t\treturn ots;\n\t\t\tcase SUN_TO_OUTSIDE:\n\t\t\t\treturn sto;\n\t\t\tcase SUN_TO_SUN:\n\t\t\t\treturn sts;\n\t\t\tdefault:\n\t\t\t\tthrow new RuntimeException(\"Unexpected line type\");\n\t\t}\n\t}",
"QueryType createQueryType();",
"private static String getSqlParameter(String type) {\n switch (type) {\n case \"boolean\":\n case \"java.lang.Boolean\":\n return \"BOOLEAN\";\n case \"byte\":\n case \"java.lang.Byte\":\n return \"TINYINT\";\n case \"short\":\n case \"java.lang.Short\":\n return \"SMALLINT\";\n case \"int\":\n case \"java.lang.Integer\":\n return \"INTEGER\";\n case \"long\":\n case \"java.lang.Long\":\n return \"BIGINT\";\n case \"float\":\n case \"java.lang.Float\":\n return \"FLOAT\";\n case \"double\":\n case \"java.lang.Double\":\n return \"DOUBLE\";\n case \"byte[]\":\n case \"java.lang.Byte[]\":\n return \"BINARY\";\n case \"java.lang.String\":\n return \"VARCHAR\";\n case \"java.sql.Date\":\n return \"DATE\";\n case \"java.sql.Timestamp\":\n return \"TIMESTAMP\";\n case \"java.sql.Time\":\n return \"TIME\";\n case \"java.math.BigDecimal\":\n return \"DOUBLE\";\n default:\n if (type.contains(\"[]\")) {\n return \"ARRAY\";\n }\n\n throw new RuntimeException(\"Unknown SqlType: \" + type);\n }\n }",
"private void requestInput(RequestType type){\n inputType = type;\n inputMessage.setText(\"Input path below\");\n stage.setScene(input);\n }",
"public QueryType getType();",
"private PgStatement doGetStatementLog(PgDatabase db, DbObjType type) {\n PgStatement st = doGetStatement(db, type);\n if (st != null || !LOG.isTraceEnabled()) {\n return st;\n }\n\n if (isBuiltin() || \"postgis\".equals(schema) || type == DbObjType.FUNCTION) {\n return null;\n }\n\n // special case otherwise log is spammed by view columns\n if (type == DbObjType.COLUMN) {\n // look up relation (any)\n PgStatement rel = doGetStatement(db, DbObjType.TABLE);\n if (rel != null) {\n if (rel.getStatementType() != DbObjType.TABLE) {\n // return silently if non-table\n return null;\n }\n\n if (rel instanceof AbstractPgTable\n && !((AbstractPgTable) rel).getInherits().isEmpty()) {\n // or if inherited column\n return null;\n }\n }\n }\n\n // not a silent failure, log\n LOG.trace(\"Could not find statement for reference: {}\", this);\n return null;\n }",
"public static DataType get(String type)\n {\n return lookup.get(type);\n }",
"public void bindStmt(String type, int order) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tif (type == \"int\") {\n\t\t\ttry {\n\t\t\t\tint input = sc.nextInt();\n\t\t\t\tpstmt.setInt(order, input);\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t}\n\t\t} else if (type == \"string\") {\n\t\t\ttry {\n\t\t\t\tString input = sc.nextLine();\n\t\t\t\tpstmt.setString(order, input);\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t}\n\t\t} \n\t\tsc.close();\n\t}",
"public int getInput(final int type) throws OperationCancelledException,\n\t OperationFailedException {\n\tString label;\n\tswitch (type) {\n\tcase CHANNEL_NUMBER_INPUT:\n\t label = tr(\"Please provide a value within the range 1 to 512 inclusive.\");\n\t break;\n\tcase CHANNEL_VALUE_INPUT:\n\t label = tr(\"Please provide a value within the range 0 to 255 inclusive.\");\n\t break;\n\tdefault:\n\t throw new OperationFailedException(\"Invalid input type request.\");\n\t}\n\treturn getInput(label, type);\n }",
"public abstract Statement createSimpleStatement(int type, CodeLocation codeLoc, List<Annotation> annotations);",
"private String getQueryString(String searchType) {\n String queryString;\n\n if (searchType.equals(\"employeeId\")) {\n queryString = \"SELECT * FROM employees WHERE emp_id = ?\";\n } else if (searchType.equals(\"firstName\")) {\n queryString = \"SELECT * FROM employees WHERE first_name LIKE ?\";\n } else {\n queryString = \"SELECT * FROM employees WHERE last_name LIKE ?\";\n }\n\n\n return queryString;\n }",
"public IInputType getInputType(String inputExtension);",
"public static FStatementInput guessStatementInput(String id, Resource s,\n URI p, Value o, boolean deletable)\n {\n if (p!=null)\n {\n ReadDataManager dm = EndpointImpl.api().getDataManager();\n if (dm.isObjectProperty(s,p))\n return uriInput(id,s,p,o,deletable);\n else if (dm.isDatatypeProperty(s,p))\n return literalInput(id,s,p,o,deletable,LiteralType.TYPE_NORMAL);\n }\n \n // no suitable statement input found\n return null;\n }",
"private static StatementType getStatementType(@NotNull String statementStr) throws SyntaxException {\n\n if (OpenFileStatement.matchesString(statementStr)) {\n return StatementType.OpenFileStatement;\n }\n else if (ReadFileStatement.matchesString(statementStr)) {\n return StatementType.ReadFileStatement;\n }\n else if (CloseFileStatement.matchesString(statementStr)) {\n return StatementType.CloseFileStatement;\n }\n else if (AssignmentStatement.matchesString(statementStr))\n return StatementType.AssignmentStatement;\n else if (CompoundStatement.matchesString(statementStr)) {\n return StatementType.CompoundStatement;\n }\n else if (IfStatement.matchesString(statementStr)) {\n return StatementType.IfStatement;\n }\n else if (PrintStatement.matchesString(statementStr)) {\n return StatementType.PrintStatement;\n }\n else if (CallStatement.matchesString(statementStr)) {\n return StatementType.CallStatement;\n }\n else if (false) {\n return StatementType.LoadFunctionFromFileStatement;\n }\n else if (ReturnStatement.matchesString(statementStr)) {\n return StatementType.ReadFileStatement;\n }\n else if (NewHeapEntryStatement.matchesString(statementStr)) {\n return StatementType.NewHeapEntryStatement;\n }\n else if (WriteHeapStatement.matchesString(statementStr)) {\n return StatementType.WriteHeapStatement;\n }\n else if (WhileStatement.matchesString(statementStr)) {\n return StatementType.WhileStatement;\n } else if (ForkStatement.matchesString(statementStr)) {\n return StatementType.ForkStatement;\n } else\n throw new SyntaxException(\"Invalid syntax in: \" + statementStr);\n }",
"private static String mapResultSetGetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"getDate\";\n case INTEGER:\n return \"getInt\";\n case REAL:\n return \"getDouble\";\n case STRING:\n return \"getString\";\n default:\n return null;\n }\n }",
"public abstract TypeLiteral<?> toTypeLiteral(Type type);",
"@Override\r\n\tpublic StatementTypeInterface getType() {\r\n\t\treturn this.type;\r\n\t}",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"Document getDocument(Long documentID, Integer type) throws EntityNotFoundException;",
"public String getQueryType();",
"public String getQueryType();",
"public int getInput(final String label, final int type)\n\t throws OperationCancelledException, OperationFailedException {\n\tString title;\n\tint minVal, maxVal;\n\tswitch (type) {\n\tcase CHANNEL_NUMBER_INPUT:\n\t title = tr(\"Enter DMX Channel Number\");\n\t minVal = 1;\n\t maxVal = 512;\n\t break;\n\tcase CHANNEL_VALUE_INPUT:\n\t title = tr(\"Enter DMX Channel Value\");\n\t minVal = 0;\n\t maxVal = 255;\n\t break;\n\tdefault:\n\t throw new OperationFailedException(\"Invalid input type requested.\");\n\t}\n\tfinal Integer returned = QInputDialog.getInteger(Main.getInstance(),\n\t\ttitle, label, minVal, minVal, maxVal);\n\ttry {\n\t if (Validator.validate(returned.intValue(), type)) {\n\t\treturn returned.intValue();\n\t } else {\n\t\tthrow new OperationCancelledException(\n\t\t\t\"Operation cancelled by user\");\n\t }\n\t} catch (NullPointerException npe) { \n\t // No value returned\n\t throw new OperationCancelledException(\"Operation cancelled by user\");\n\t}\n }",
"public GTData getDocument(String ID, Type type) throws Exception {\n Get request = new Get.Builder(INDEX_NAME, ID).build();\n\n JestResult result = client.execute(request);\n GTData data = null;\n if (type.equals(Bid.class)) {\n data = result.getSourceAsObject(Bid.class);\n } else if (type.equals(Task.class)) {\n data = result.getSourceAsObject(Task.class);\n } else if (type.equals(User.class)) {\n data = result.getSourceAsObject(User.class);\n } else if (type.equals(Photo.class)) {\n data = result.getSourceAsObject(Photo.class);\n }\n Log.i(\"checkget\",data.toString());\n return data;\n\n\n }",
"private void cmdDeriveStaticType(String line) throws NoSystemException {\n Log.trace(this, line);\n if (line.length() == 0) {\n Log.error(\"Expression expected after `?'. Try `help'.\");\n return;\n }\n\n SoilPermissionLevel permissionLevel = Options.soilFromOCL;\n if (permissionLevel == SoilPermissionLevel.ALL) {\n \tOptions.soilFromOCL = SoilPermissionLevel.SIDEEFFECT_FREE_ONLY;\n }\n \n // compile query\n MSystem system = system();\n InputStream stream = new ByteArrayInputStream(line.getBytes());\n \n\t\tExpression expr = OCLCompiler.compileExpression(\n\t\t\t\tsystem.model(), \n\t\t\t\tsystem.state(),\n\t\t\t\tstream,\n\t\t\t\t\"<input>\", \n\t\t\t\tnew PrintWriter(System.err), \n\t\t\t\tsystem.varBindings());\n\t\t\n\t\tOptions.soilFromOCL = permissionLevel;\n\n // compile errors?\n if (expr == null)\n return;\n\n System.out.println(\"-> \" + expr.type());\n }",
"private StrategyType getStrategyType(String type) throws Exception {\n switch (type) {\n case \"greedy\":\n return StrategyType.GREEDY;\n case \"careful\":\n return StrategyType.CAREFUL;\n case \"tactical\":\n return StrategyType.TACTICAL;\n default:\n throw new Exception(\"Not supported type: \" + type);\n }\n }",
"public IInputType getInputTypeById(String id);",
"public TypeData getTypeData(MigrationType type);",
"@Nonnull\n @SuppressWarnings(\"unchecked\")\n public static <T extends Word> T parse(Type type, String line) {\n\n String[] parsedParts = line.split(\"[ ]*,[ ]*\");\n ArrayList<String> parts = new ArrayList<>(parsedParts.length);\n for (String part : parsedParts) {\n parts.add(part.replace('_',' '));\n }\n\n Preconditions.checkState(parts.size() > 0, \"Did not find word with attributes: {}\", line);\n LOGGER.trace(\"Parsing type={} with line={}\", type, line);\n final T word;\n switch(type) {\n case Pronoun:\n word = (T)new Pronoun(parts);\n break;\n\n case Conjunction:\n word = (T)new Conjunction(parts);\n break;\n\n case Noun:\n word = (T)new Noun(parts);\n break;\n\n case Adjective:\n word = (T)new Adjective(parts);\n break;\n\n case Verb:\n word = (T)new Verb(parts);\n break;\n\n case Adverb:\n word = (T)new Adverb(parts);\n break;\n\n case Preposition:\n word = (T)new Preposition(parts);\n break;\n\n default:\n word = (T)new Text(parts);\n }\n return word;\n }",
"public Expression getType();",
"public void setQueryType(String queryType);",
"public String getInputType() {\n\t\treturn StringUtils.upperCase(props.getProperty(ARGUMENT_INPUT_TYPE, INPUT_TYPE_XLS));\n\t}",
"int getParamType(String type);",
"@Override public void enterRead_stmt(MicroParser.Read_stmtContext ctx) {\n\t\tString txt = ctx.getText();\n\t\tString id = txt.split(\"\\\\(\")[1].split(\"\\\\)\")[0];\n\n\t\tString type = \"\";\n\t\tArrayList<List<String>> varList = st.varMap.get(\"GLOBAL\");\n\t if(varList != null){\n\t for(List<String> varData : varList){\n\t \tif(varData.get(0).equals(id)){\n\t \t\ttype = varData.get(1);\n\t \t}\n\t }\n\t }\n\n\t\tif(type.equals(\"INT\"))\n\t\t\tthis.meIRL.add(new IRNode(\"READI\", id, \"\", \"\"));\n\t\tif(type.equals(\"FLOAT\"))\n\t\t\tthis.meIRL.add(new IRNode(\"READF\", id, \"\", \"\"));\n\t}",
"public String get(Class requestor, String field, int type,\n String defaultString);",
"@Override\n public final InputStream dereference(String uri, String contentType) throws IOException {\n if(uri==null){\n return null;\n }\n UriRef reference = new UriRef(uri);\n StringBuilder query = new StringBuilder();\n query.append(\"CONSTRUCT { \");\n query.append(reference);\n query.append(\" ?p ?o } WHERE { \");\n query.append(reference);\n query.append(\" ?p ?o }\");\n\n //String format = SupportedFormat.RDF_XML;\n return SparqlEndpointUtils.sendSparqlRequest(getAccessUri(),query.toString(),contentType);\n }",
"private Query getQuery(String index, String type, String query){\r\n\t\tSearchQuery esQuery = new SearchQuery();\r\n\t\tesQuery.setIndex(this.indexName);\r\n\t\t\r\n\t\tif(StringUtils.isNotEmpty(type))\r\n\t\t\tesQuery.setType(type);\r\n\t\t\r\n\t\tesQuery.setQuery(query);\r\n\t\t\r\n\t\treturn esQuery;\t\t\r\n\t}",
"<T> T getSingleResult(Class<T> type, Query query);",
"protected IndexType getIndexType(String type)\n {\n type = type.toLowerCase();\n if (\"keys\".equals(type))\n return IndexType.KEYS;\n else if(\"custom\".equals(type))\n return IndexType.CUSTOM;\n else if(\"composites\".equals(type))\n return IndexType.COMPOSITES;\n else\n return null;\n }",
"private String getPType(String pType) {\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\treturn \"ongoing\";\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\treturn \"finished\";\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"public String get(Object requestor, String field, int type,\n String defaultString);",
"com.google.cloud.datacatalog.FieldType getType();",
"static DruidType getTypeFromMetaData(String type) {\n assert type != null;\n switch (type) {\n case \"LONG\":\n return LONG;\n case \"FLOAT\":\n return FLOAT;\n case \"DOUBLE\":\n return DOUBLE;\n case \"STRING\":\n return STRING;\n default:\n // Likely a sketch, or a type String from the aggregations field.\n return getTypeFromMetric(type);\n }\n }",
"ResultSet searchType(String type) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * \"\n \t\t\t+ \"FROM Pokemon AS P, Types AS T \"\n \t\t\t+ \"WHERE (P.Type1=T.TypeID OR P.Type2 = T.TypeID) AND \"\n \t\t\t+ \"T.name = \" + \"'\" + type + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }",
"public StaticScript type(String type) {\n this.type = type;\n return this;\n }",
"static DruidType getTypeFromMetric(String type) {\n assert type != null;\n if (type.equals(\"hyperUnique\")) {\n return HYPER_UNIQUE;\n } else if (type.equals(\"thetaSketch\")) {\n return THETA_SKETCH;\n } else if (type.startsWith(\"long\") || type.equals(\"count\")) {\n return LONG;\n } else if (type.startsWith(\"double\")) {\n return DOUBLE;\n } else if (type.startsWith(\"float\")) {\n return FLOAT;\n }\n throw new AssertionError(\"Unknown type: \" + type);\n }",
"public static Literal parseDateTime(String lex, String type) throws ParseException {\n boolean hasTimeZone = hasTimeZone(lex);\n boolean isXSDDate = XSD.date.getURI().equals(type);\n SimpleDateFormat sdf = dateFormat(hasTimeZone, isXSDDate);\n Date date = sdf.parse(lex);\n if (isXSDDate) {\n return ResourceFactory.createTypedLiteral(xsdDateFormat().format(date), XSDDatatype.XSDdate);\n } else {\n if (hasTimeZone) {\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n cal.setTime(date);\n XSDDateTime dt = new XSDDateTime(cal);\n return ResourceFactory.createTypedLiteral(dt);\n } else {\n SimpleDateFormat f = new SimpleDateFormat(\"yyyy-MM-dd'T'hh:mm:ss\");\n String lf = f.format(date);\n Literal l = ResourceFactory.createTypedLiteral(lf, XSDDatatype.XSDdateTime);\n return l;\n }\n }\n }",
"private IdmScriptDto typeToDto(IdmScriptType type, IdmScriptDto script) {\n\t\tif (script == null) {\n\t\t\tscript = new IdmScriptDto();\n\t\t}\n\t\t//\n\t\tif (type == null) {\n\t\t\treturn script;\n\t\t}\n\t\t// transform type to DTO\n\t\tscript.setCode(type.getCode());\n\t\tscript.setName(type.getName());\n\t\tscript.setCategory(type.getCategory());\n\t\tscript.setScript(type.getBody());\n\t\tscript.setDescription(type.getDescription());\n\t\t// parameter isn't implemented yet\n\t\t// script.setParameter(type.getParameters());\n\t\t// attribute TYPE from IdmScriptType isn't implemented yet.\n\t\treturn script;\n\t}",
"private TypeFieldModel parseField(JsonNode field, SchemaModel schemaModel) {\n TypeFieldModel answer = null;\n String type = getTextProperty(field, DIALOG_FIELD_TYPE);\n String inputType = getTextProperty(field, DIALOG_FIELD_INPUT_TYPE);\n String model = getTextProperty(field, DIALOG_FIELD_MODEL);\n if (type == null || model == null) {\n logger.warn(\"Field: {} does not have a property 'type' or 'model' -> ignored\", field);\n } else {\n TYPE aType = getType(type);\n switch (aType) {\n case input:\n answer = new TypeFieldModel()\n .setName(model)\n .setType(getInputType(inputType));\n break;\n case material_textarea:\n case pathbrowser:\n case object_definition_reference:\n case texteditor:\n case material_radios:\n case material_select:\n answer = new TypeFieldModel()\n .setName(model)\n .setType(ScalarEnum.String);\n break;\n case materialswitch:\n answer = new TypeFieldModel()\n .setName(model)\n .setType(ScalarEnum.Boolean);\n break;\n case collection:\n TypeModel collectionType = null;\n JsonNode fields = field.get(DIALOG_FIELDS_PROPERTY);\n if(fields.isArray()) {\n collectionType = new TypeModel(SUB_COMPONENT_TYPE, model, null);\n Iterator<JsonNode> i = fields.iterator();\n while(i.hasNext()) {\n JsonNode collectionField = i.next();\n TypeFieldModel typeField = parseField(collectionField, schemaModel);\n if(typeField != null) {\n collectionType.addField(typeField);\n }\n }\n schemaModel.addType(collectionType);\n }\n answer = new TypeFieldModel()\n .setName(model)\n .setArray(true);\n if(collectionType != null) {\n answer.setCustomType(collectionType);\n } else {\n answer.setType(ScalarEnum.String);\n }\n break;\n default:\n logger.warn(\"Unknown Type of Field: {}\", field);\n }\n }\n return answer;\n }",
"@Override\r\n\tpublic List<FundFlow> queryByIloanOrdAndType(Long iloanOrd,\r\n\t\t\tFundFlowType type) {\n\t\tFundFlow ff = new FundFlow();\r\n\t\tff.setIloanOrd(iloanOrd);\r\n\t\tff.setType(type);\r\n\t\treturn this.getHibernateDao().findByExample(ff);\r\n\t}",
"private String toJavaExpression(ValueType valueType, Type type) {\n if (valueType.getValue() != null) {\n Object value = valueType.getValue();\n String text = getTextContent(value);\n if (text == null || \"null\".equals(text)) {\n return \"null\";\n } else if (isNumber(type)) {\n return String.format(\"number(\\\"%s\\\")\", text);\n } else if (isString(type)) {\n return String.format(\"\\\"%s\\\"\", text);\n } else if (isBoolean(type)) {\n return text;\n } else if (isDate(type)) {\n return String.format(\"date(\\\"%s\\\")\", text);\n } else if (isTime(type)) {\n return String.format(\"time(\\\"%s\\\")\", text);\n } else if (isDateTime(type)) {\n return String.format(\"dateAndTime(\\\"%s\\\")\", text);\n } else if (isDurationTime(type)) {\n return String.format(\"duration(\\\"%s\\\")\", text);\n } else {\n throw new DMNRuntimeException(String.format(\"Cannot make value for input '%s' with type '%s'\", valueType, type));\n }\n } else if (valueType.getList() != null) {\n return toJavaExpression(valueType.getList().getValue(), (ListType) type);\n } else if (valueType.getComponent() != null) {\n return toJavaExpression(valueType.getComponent(), (ItemDefinitionType) type);\n }\n throw new DMNRuntimeException(String.format(\"Cannot make value for input '%s' with type '%s'\", valueType, type));\n }",
"public Type getExpressionType();",
"public List<HCLFieldTransaction> getTransactionbyType(String transactionType)\r\n\t\t\tthrows JsonProcessingException, IOException {\r\n\r\n\t\tlogger.info(\"Logger Name: getTransactionbyType() :: \" + logger.getName());\r\n\t\tlogger.debug(\"Transaction Type : getTransactionbyType() :: \" + transactionType);\r\n\t\tObjectMapper mapper = new ObjectMapper();\r\n\r\n\t\tlogger.info(\"Open Bank API URL :: getTotalAmountbyTransactionType() :: \"\r\n\t\t\t\t+ TransactionConstant.THIRD_PARTY_REST_API);\r\n\t\tJsonNode root = mapper.readTree(new URL(TransactionConstant.THIRD_PARTY_REST_API));\r\n\r\n\t\tList<HCLFieldTransaction> transactionList = new ArrayList<HCLFieldTransaction>();\r\n\r\n\t\t/* Traversing Nested JSON node to publish the relevant data */\r\n\t\ttry {\r\n\t\t\tJsonNode transactionsNodes = root.path(\"transactions\");\r\n\r\n\t\t\tfor (JsonNode transactionsNode : transactionsNodes) {\r\n\r\n\t\t\t\tHCLFieldTransaction hclFieldTransaction = new HCLFieldTransaction();\r\n\t\t\t\tJsonNode details = transactionsNode.path(\"details\");\r\n\t\t\t\thclFieldTransaction.setTransactionType(details.path(\"type\").asText());\r\n\r\n\t\t\t\t/* When transactionType is null or empty */\r\n\t\t\t\tif (transactionType == null && details.path(\"type\").isNull() == true) {\r\n\t\t\t\t\thclFieldTransaction.setId(transactionsNode.path(\"id\").asText());\r\n\r\n\t\t\t\t\tJsonNode thisAccount_Node = transactionsNode.path(\"this_account\");\r\n\t\t\t\t\thclFieldTransaction.setAccountId(thisAccount_Node.path(\"id\").asText());\r\n\r\n\t\t\t\t\tJsonNode otherAccount_Node = transactionsNode.path(\"other_account\");\r\n\t\t\t\t\thclFieldTransaction.setCounterpartyAccount(otherAccount_Node.path(\"number\").asText());\r\n\r\n\t\t\t\t\tJsonNode otherAccount_holder_Node = otherAccount_Node.path(\"holder\");\r\n\t\t\t\t\thclFieldTransaction.setCounterpartyName(otherAccount_holder_Node.path(\"name\").asText());\r\n\t\t\t\t\tJsonNode metadata = otherAccount_Node.path(\"metadata\");\r\n\t\t\t\t\thclFieldTransaction.setCounterPartyLogoPath(metadata.path(\"open_corporates_URL\").asText());\r\n\r\n\t\t\t\t\thclFieldTransaction.setTransactionType(details.path(\"type\").asText());\r\n\t\t\t\t\thclFieldTransaction.setDescription(details.path(\"description\").asText());\r\n\r\n\t\t\t\t\tJsonNode value = details.path(\"value\");\r\n\t\t\t\t\thclFieldTransaction.setInstructedAmount(value.path(\"amount\").asDouble());\r\n\r\n\t\t\t\t\thclFieldTransaction.setInstructedCurrency(value.path(\"currency\").asText());\r\n\r\n\t\t\t\t\thclFieldTransaction.setTransactionAmount(value.path(\"amount\").asDouble());\r\n\t\t\t\t\thclFieldTransaction.setTransactionCurrency(value.path(\"currency\").asText());\r\n\t\t\t\t\tlogger.debug(\"Transaction Field Row Value:: \" + hclFieldTransaction.toString());\r\n\r\n\t\t\t\t\t/* Adding specific type of transaction list into one ArrayList */\r\n\t\t\t\t\ttransactionList.add(hclFieldTransaction);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* When transactionType is not null or empty */\r\n\t\t\t\telse if (transactionType != null) {\r\n\r\n\t\t\t\t\tif (hclFieldTransaction.getTransactionType().equalsIgnoreCase(transactionType.trim())) {\r\n\r\n\t\t\t\t\t\tlogger.debug(\"Transaction Type :: \" + transactionType);\r\n\t\t\t\t\t\thclFieldTransaction.setId(transactionsNode.path(\"id\").asText());\r\n\r\n\t\t\t\t\t\tJsonNode thisAccount_Node = transactionsNode.path(\"this_account\");\r\n\t\t\t\t\t\thclFieldTransaction.setAccountId(thisAccount_Node.path(\"id\").asText());\r\n\r\n\t\t\t\t\t\tJsonNode otherAccount_Node = transactionsNode.path(\"other_account\");\r\n\t\t\t\t\t\thclFieldTransaction.setCounterpartyAccount(otherAccount_Node.path(\"number\").asText());\r\n\r\n\t\t\t\t\t\tJsonNode otherAccount_holder_Node = otherAccount_Node.path(\"holder\");\r\n\t\t\t\t\t\thclFieldTransaction.setCounterpartyName(otherAccount_holder_Node.path(\"name\").asText());\r\n\t\t\t\t\t\tJsonNode metadata = otherAccount_Node.path(\"metadata\");\r\n\t\t\t\t\t\thclFieldTransaction.setCounterPartyLogoPath(metadata.path(\"open_corporates_URL\").asText());\r\n\r\n\t\t\t\t\t\thclFieldTransaction.setTransactionType(details.path(\"type\").asText());\r\n\t\t\t\t\t\thclFieldTransaction.setDescription(details.path(\"description\").asText());\r\n\r\n\t\t\t\t\t\tJsonNode value = details.path(\"value\");\r\n\t\t\t\t\t\thclFieldTransaction.setInstructedAmount(value.path(\"amount\").asDouble());\r\n\r\n\t\t\t\t\t\thclFieldTransaction.setInstructedCurrency(value.path(\"currency\").asText());\r\n\r\n\t\t\t\t\t\thclFieldTransaction.setTransactionAmount(value.path(\"amount\").asDouble());\r\n\t\t\t\t\t\thclFieldTransaction.setTransactionCurrency(value.path(\"currency\").asText());\r\n\t\t\t\t\t\tlogger.debug(\"Transaction Field Row Value:: \" + hclFieldTransaction.toString());\r\n\r\n\t\t\t\t\t\t/* Adding specific type of transaction list into one ArrayList */\r\n\t\t\t\t\t\ttransactionList.add(hclFieldTransaction);\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\tlogger.error(\"Exception : getTransactionbyType() :: \", e);\r\n\t\t}\r\n\t\tlogger.info(\"Return value from service layer:: getTransactionbyType() :: \" + transactionList.toString());\r\n\t\treturn transactionList;\r\n\r\n\t}",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"public static double userInput(Scanner console, String type){\n double munny = console.nextDouble();\n if(type.equals(\"expense2\")){\n munny = munny * DAYS_IN_MONTH;\n }\n return munny;\n }",
"public Operation(String accountId, int type) {\n switch (type) {\n case 0:\n setType(\"Deposit\");\n break;\n case 1:\n setType(\"Withdraw\");\n break;\n case 2:\n setType(\"Deactivate\");\n break;\n case 3:\n setType(\"Activate\");\n break;\n }\n setAccount(accountId);\n Date date = new Date();\n setDate(date);\n setAmount(0);\n }",
"@SuppressWarnings(\"all\")\n static Object aiValue(final Object input, final Class<?> type) {\n return aiValue(input, type, Value::aiType, (sourceType, targetType) -> aiExecute(sourceType, targetType, input,\n (source) -> {\n /*\n * If String, check whether it's date\n */\n if (String.class != type && Ut.isDate(source.toString())) {\n /*\n * String to\n */\n return V.vDate().to(source, sourceType);\n } else {\n return input.toString();\n }\n }));\n }",
"private TYPE getType(final String type) {\n String temp = type.replaceAll(\"-\", \"_\");\n TYPE answer = Arrays.stream(\n TYPE.values()\n )\n .filter(value -> value.name().equals(temp))\n .findFirst()\n .orElse(TYPE.unknown);\n return answer;\n }",
"public String get_type_of_entity(String type_of_profile)\n\t{\n\t\tString type_of_entity=null;\n\t\n\t\t//if(type_of_profile.equals(\"executive_producer\")||type_of_profile.equals(\"line_producer\")||type_of_profile.equals(\"supervising_producer\")||type_of_profile.equals(\"co_producer\")||type_of_profile.equals(\"co_ordinating_producer\")||type_of_profile.equals(\"primary_associate_or_assistant_producer \")||type_of_profile.equals(\"secondary_associate_or_assistant_producer\")||type_of_profile.equals(\"other_associate_or_assistant_producer\")||type_of_profile.equals(\"segment_producer\")||type_of_profile.equals(\"event_producer\")|type_of_profile.equals(\"music_producer\"))\n\t\tif(type_of_profile.contains(\"producer\"))\n\t\t{\n\t\t\ttype_of_entity=\"Producer\";\n\t\t\treturn type_of_entity;\n\t\t}\n\t\t//film_director varchar(10), primary_associate_film_director varchar(10), secondary_associate_film_director varchar(10), other_associate_film_director varchar(10), casting_director varchar(10), primary_associate_casting_director varchar(10),secondary_associate_casting_director varchar(10),other_associate_casting_director varchar(10), music_director varchar(10),primary_associate_music_director varchar(10),secondary_associate_music_director varchar(10), other_associate_music_director varchar(10),\n\t\telse if(type_of_profile.contains(\"director\"))\n\t\t{\n\t\t\ttype_of_entity=\"Director\";\n\t\t\treturn type_of_entity;\n\t\t}\n\t\telse if(type_of_profile.equals(\"Academy\"))\n\t\t{\n\t\t\ttype_of_entity=\"Academy\";\n\t\t\treturn type_of_entity;\n\t\t}\n\t\t// FLAW \n\t\telse if(type_of_profile.equals(\"actor\")||type_of_profile.equals(\"model\")||type_of_profile.equals(\"dancer\")||type_of_profile.equals(\" singer\")||type_of_profile.equals(\" insrumentalist\")||type_of_profile.equals(\"composer\")||type_of_profile.equals(\"music_engineer\")||type_of_profile.equals(\"radio_or_voice_over\")||type_of_profile.equals(\" dj\")||type_of_profile.equals(\"band\")||type_of_profile.equals(\"stand_up_comedian\")||type_of_profile.equals(\"other_type_of_entity\"))\n\t\t{\n\t\t\ttype_of_entity=\"Entertainer\";\n\t\t\treturn type_of_entity;\n\t\t}\n\t\telse\n\t\t//if(type_of_profile.equals(\"Film_crew\"))\n\t\t{\n\t\t\ttype_of_entity=\"Film_crew\";\n\t\t\treturn type_of_entity;\n\t\t}\n\t\t\t\t//return type_of_entity;\n\t}",
"public String get(Class requestor, String field, int type,\n String defaultString, Object param1);",
"TypeLiteralExp createTypeLiteralExp();",
"public String get(Class requestor, String field, int type,\n String defaultString, Object param1, Object param2);",
"RelDataType getParameterRowType();",
"public String get(Class requestor, String field, int type,\n String defaultString, Object[] params);",
"@And(\"^I go to \\\"([^\\\"]*)\\\" type and select \\\"([^\\\"]*)\\\"$\") //Selecting Type & sub-Type in Create form\r\n\tpublic void selectFormType(String type,String subtype) {\r\n\t\r\n\tenduser.selectFormType(type,subtype);\r\n\t}",
"public String getComment(int commentType, Address address);",
"public String get(Object requestor, String field, int type,\n String defaultString, Object param1);",
"public String get(Object requestor, String field, int type,\n String defaultString, Object param1, Object param2);",
"public static void getStudentsAndPOST(String mySQL_query, String request_type){\r\n // Connect to a database and retieve students using a synchronised method.\r\n ArrayList<Student> studentList = DatabaseQuery.connectToDBAndQuery(mySQL_query, EchoServer_HTTP.DRIVER,\r\n EchoServer_HTTP.URL, EchoServer_HTTP.DB, EchoServer_HTTP.USER, EchoServer_HTTP.PASS); \r\n // My HTML code\r\n String html = \"HTTP/1.0 200 OK\\n\\n\";\r\n // If not found \"HTTP/1.0 404 Not Found\" and HTML code below tailored to print \"Page not found\" \r\n String html2 = readHTML(\"index_base.html\"); \r\n // Set the page's title to all\r\n html2 = insertBlock(html2, \"%request_type_title%\", request_type); \r\n // Insert the request type into the main heading, e.g. <All> Students.\r\n html2 = insertBlock(html2, \"%request_type_text%\", request_type); \r\n // Get HTML table contents \r\n String tableContents = generateTableHTML(studentList); \r\n // Populate the HTML table \r\n html2 = insertBlock(html2, \"%student_table%\", tableContents); \r\n output.write(html + html2); // Write the characters of html to the socket \r\n }",
"public final <T> T get(String url, Class<T> type) throws OnshapeException {\n return call(\"get\", url, null, buildMap(), buildMap(), type);\n }",
"public static Type1 getType1(String type) {\n Type1 typeToAdd = null;\n if (type.equals(\"grass\")) typeToAdd = Type1.Grass;\n if (type.equals(\"water\")) typeToAdd = Type1.Water;\n if (type.equals(\"fire\")) typeToAdd = Type1.Fire;\n if (type.equals(\"poison\")) typeToAdd = Type1.Poison;\n if (type.equals(\"rock\")) typeToAdd = Type1.Rock;\n if (type.equals(\"dark\")) typeToAdd = Type1.Dark;\n if (type.equals(\"psychic\")) typeToAdd = Type1.Psychic;\n if (type.equals(\"ghost\")) typeToAdd = Type1.Ghost;\n if (type.equals(\"fairy\")) typeToAdd = Type1.Fairy;\n if (type.equals(\"dragon\")) typeToAdd = Type1.Dragon;\n if (type.equals(\"flying\")) typeToAdd = Type1.Flying;\n if (type.equals(\"ground\")) typeToAdd = Type1.Ground;\n if (type.startsWith(\"fight\")) typeToAdd = Type1.Fighting;\n if (type.equals(\"electric\")) typeToAdd = Type1.Electric;\n if (type.equals(\"steel\")) typeToAdd = Type1.Steel;\n if (type.equals(\"ice\")) typeToAdd = Type1.Ice;\n if (type.equals(\"bug\")) typeToAdd = Type1.Bug;\n if (type.equals(\"normal\")) typeToAdd = Type1.Normal;\n return typeToAdd;\n }",
"Type getResultType();",
"public Account getSpecifiedAccount(String type, int accountNumber) {\r\n /*\r\n * Here is the table :\r\n * - 1 : Credit\r\n * - 2 : LineOfCredit\r\n * - 3 : Chequing\r\n * - 4 : Saving\r\n * */\r\n System.out.println(\"Accessing account...\");\r\n Account specifiedAccount;\r\n switch (type){\r\n case \"1\":\r\n specifiedAccount = credits[accountNumber-1];\r\n break;\r\n case \"2\":\r\n specifiedAccount = lineOfCredits[accountNumber-1];\r\n break;\r\n case \"3\":\r\n specifiedAccount = chequing[accountNumber-1];\r\n break;\r\n case \"4\":\r\n specifiedAccount = saving[accountNumber-1];\r\n break;\r\n default:\r\n specifiedAccount = null;\r\n break;\r\n }\r\n return specifiedAccount;\r\n }",
"public static <T extends Enum<T>> T findMatch(Class<T> type, CharSequence input) {\n return literalMatcher(type).apply(input);\n }",
"GetRecordByIdType createGetRecordByIdType();",
"StrategyType type();",
"private String saisieString(String typeChoice) {\n\t\tSystem.out.println(typeChoice);\n\t\tString persoString= sc.nextLine();\n\t\treturn persoString;\n\t}",
"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 }",
"private String genReadCode(String name, String type) {\n\n if (type.equals(\"char\")) {\n return INSTREAM_VAR_NAME + \".readChar( \" + name + \" );\";\n } else if (type.equals(\"short\")) {\n return INSTREAM_VAR_NAME + \".readShort( \" + name + \" );\";\n } else if (type.equals(\"int\")) {\n return INSTREAM_VAR_NAME + \".readInt( \" + name + \" );\";\n } else if (type.equals(\"float\")) {\n return INSTREAM_VAR_NAME + \".readFloat( \" + name + \" );\";\n } else if (type.equals(\"double\")) {\n return INSTREAM_VAR_NAME + \".readDouble( \" + name + \" );\";\n } else if (type.equals(\"std::string\")) {\n return INSTREAM_VAR_NAME + \".readString( \" + name + \" );\";\n } else if (type.equals(\"bool\")) {\n return INSTREAM_VAR_NAME + \".readBoolean( \" + name + \" );\";\n } else {\n throw new IllegalArgumentException(\"unknown primitive type=\" + type);\n }\n }",
"private int determineQueryType(String url){\n int type = RLI.LRC_QUERY_NORMAL;\n\n if(mLRCRestrictList != null){\n for ( int j = 0; j < mLRCRestrictList.length; j++ ) {\n if ( url.indexOf( mLRCRestrictList[ j ] ) != -1 ) {\n type = RLI.LRC_QUERY_RESTRICT;\n break;\n }\n }\n }\n if(mLRCIgnoreList != null){\n for ( int j = 0; j < mLRCIgnoreList.length; j++ ) {\n if ( url.indexOf( mLRCIgnoreList[ j ] ) != -1 ) {\n type = RLI.LRC_QUERY_IGNORE;\n break;\n }\n }\n }\n\n\n return type;\n }",
"FieldRuleType createFieldRuleType();",
"public String parseQueryType(String queryType){\n\t\t \tif(\"online\".equals(queryType)){\n\t\t \t\tqueryType=\"1\";\n\t\t \t}else if(\"batch\".equals(queryType)){\n\t\t \t\tqueryType=\"2\";\n\t\t \t}\n\t\t\t\treturn queryType;\n\t\t }",
"public String get(Object requestor, String field, int type,\n String defaultString, Object[] params);",
"Type getSource();",
"public __Type getQueryType() {\n return (__Type) get(\"queryType\");\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public <T> T getInstance(TypeLiteral<T> type,\n Annotation annotation) {\n return getLocator(Key.get(type, annotation)).get();\n }",
"private static Type matchType(String type) {\n if (type == null) {\n return VarcharType.VARCHAR;\n }\n\n switch (type.toLowerCase()) {\n case \"string\":\n return VarcharType.VARCHAR;\n case \"int\":\n return IntegerType.INTEGER;\n case \"bigint\":\n return BigintType.BIGINT;\n case \"double\":\n return DoubleType.DOUBLE;\n case \"boolean\":\n return BooleanType.BOOLEAN;\n case \"array<string>\":\n return new ArrayType(VarcharType.VARCHAR);\n case \"timestamp\":\n return TimestampType.TIMESTAMP;\n case \"datetime\":\n return TimestampType.TIMESTAMP;\n case \"number\":\n return DecimalType.createDecimalType(DECIMAL_DEFAULT_PRECISION, DECIMAL_DEFAULT_SCALE);\n default:\n return VarcharType.VARCHAR;\n }\n }",
"com.google.cloud.datacatalog.FieldTypeOrBuilder getTypeOrBuilder();",
"public static double getValue(Scanner userInput, String inputType, String resultType) {\n double initialValue;\n \n System.out.println(\"Convert \" + inputType + \" to \" + resultType + \".\");\n do {\n System.out.print(\"Enter \" + inputType + \": \");\n initialValue = userInput.nextDouble();\n } while (initialValue <= 0.0);\n return(initialValue);\n }",
"public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.alerttype.v1.AlertType getAlertTypeReq(AlertType alertType){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.alerttype.v1.AlertType alertTypeReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.alerttype.v1.AlertType();\n\t\t\n\t\talertTypeReq.setAlertCode( alertType.getAlertCode() );\n\t\talertTypeReq.setActionCode( alertType.getActionCode());\n\t\talertTypeReq.setDescription( alertType.getDescription() );\n\t\t\n\t\treturn alertTypeReq;\n\t}",
"private SymObject findField(Struct type, String name) {\n for (SymObject field : type.fields) {\n if (field.name.equals(name)) {\n return field;\n }\n }\n\n error(name + \" can't be find as a field\");\n return SymbolTable.OBJECT_NONE;\n }",
"GroupQueryBuilder setType(String type);",
"public abstract Statement createSimpleStatement(int type, CodeLocation codeLoc, List<Annotation> annotations, Variable assign, Value ... v);",
"InputDecl createInputDecl();",
"gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type getType();",
"public IInputType getPrimaryInputType();"
] | [
"0.5330098",
"0.5077173",
"0.47051764",
"0.4629288",
"0.4574918",
"0.45346132",
"0.4511236",
"0.45060754",
"0.44963354",
"0.44899812",
"0.44684315",
"0.4447519",
"0.4423926",
"0.44053158",
"0.43633434",
"0.43615428",
"0.43591315",
"0.43016198",
"0.42991784",
"0.42965743",
"0.42953107",
"0.42595738",
"0.42530182",
"0.42474008",
"0.42474008",
"0.4237127",
"0.42170358",
"0.42146632",
"0.42110035",
"0.4201892",
"0.42014074",
"0.41941395",
"0.4169074",
"0.41630045",
"0.41587675",
"0.41335258",
"0.41093275",
"0.41045195",
"0.41022855",
"0.41005418",
"0.40930933",
"0.40927926",
"0.4075685",
"0.4071493",
"0.40664712",
"0.40510315",
"0.40495893",
"0.40493262",
"0.40435287",
"0.40330678",
"0.40232396",
"0.40223834",
"0.40168196",
"0.40120175",
"0.40048212",
"0.40042847",
"0.40026656",
"0.39902616",
"0.3988554",
"0.39881712",
"0.39831686",
"0.39823943",
"0.39794064",
"0.39747715",
"0.39655364",
"0.39519218",
"0.39423913",
"0.39382643",
"0.39343813",
"0.39179653",
"0.39144754",
"0.39139742",
"0.39129782",
"0.39115858",
"0.39093024",
"0.39092004",
"0.3903005",
"0.3901677",
"0.38926625",
"0.38901415",
"0.38880402",
"0.38879007",
"0.38752362",
"0.38742158",
"0.38720518",
"0.38714904",
"0.38623902",
"0.38618657",
"0.386106",
"0.38560426",
"0.38558528",
"0.3855564",
"0.38461035",
"0.38425785",
"0.383993",
"0.38398418",
"0.38379583",
"0.3837886",
"0.3836827",
"0.38310444"
] | 0.5946359 | 0 |
Returns a literal input form for the given configuration. May return null if the configuration is invalid (e.g., the passed object is a URI). | public static FLiteralStatementInput literalInput(String id, Resource s,
URI p, Value o, boolean deletable, LiteralType type)
{
try
{
Literal oLiteral=null;
if (o!=null)
oLiteral=(Literal)o;
return new FLiteralStatementInput(id,s,p,oLiteral,deletable,type);
}
catch (ClassCastException e)
{
logger.warn("Cannot construct literal input form:" + e.getMessage());
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.cloud.documentai.v1beta2.InputConfig getInputConfig();",
"com.google.cloud.dialogflow.v2.InputConfig getInputConfig();",
"com.google.cloud.documentai.v1beta2.InputConfigOrBuilder getInputConfigOrBuilder();",
"com.google.cloud.dialogflow.v2.InputConfigOrBuilder getInputConfigOrBuilder();",
"InputValueDefinition createInputValueDefinition();",
"public static InputSpecification getInputSpecification() {\n\t\t\n\t\tProperties configFile = new Properties();\n\t\tInputSpecification input = new InputSpecification();\n\t\t\n\t\ttry {\n \n // THESE CALLS MUST BE SUBSTITUTED WITH THE GUI VALUES\n\t\t\t\n\t\t\tconfigFile.load(Crawler.class.getClassLoader().getResourceAsStream(\"app.properties\"));\n\t\t\t\n\t\t\tString user_field = configFile.getProperty(\"USERNAME_FIELD\");\n\t\t\tString user_value = configFile.getProperty(\"USERNAME_VALUE\");\n\t\t\tString password_field = configFile.getProperty(\"PASSWORD_FIELD\");\n\t\t\tString password_value = configFile.getProperty(\"PASSWORD_VALUE\");\n\t\t\tString submit_field = configFile.getProperty(\"SUBMIT_FIELD\");\n\t\t\tString submit_text = configFile.getProperty(\"SUBMIT_TEXT\");\n\t\t\t\n\t\t\tForm loginForm = new Form();\n\t\t\tloginForm.field(user_field).setValue(user_value);\n\t\t\tloginForm.field(password_field).setValue(password_value);\n\t\t\tinput.setValuesInForm(loginForm).beforeClickElement(submit_field).withText(submit_text);\n\t\t\t\n\t\t\t/*\n\t\t\tString textarea_field = configFile.getProperty(\"TEXTAREA_FIELD\");\n\t\t\tString textarea_text = configFile.getProperty(\"TEXTAREA_VALUE\");\n\t\t\tString quickadd_field = configFile.getProperty(\"QUICKADD_FIELD\");\n\t\t\tString quickadd_text = configFile.getProperty(\"QUICKADD_TEXT\");\n\t\t\t\n\t\t\tForm textareaForm = new Form();\n\t\t\ttextareaForm.field(textarea_field).setValue(textarea_text);\n\t\t\tinput.setValuesInForm(textareaForm).beforeClickElement(quickadd_field).withText(quickadd_text);\n\t\t\t*/\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn input;\n\t}",
"static Path getInputPath(Configuration conf) {\n String in = conf.get(MRUtils.INPUT_PATH);\n if (in == null) {\n return null;\n }\n return new Path(in);\n }",
"Object read(Object inputObject, Settings settings);",
"Input getObjetivo();",
"InputObjectTypeDefinition createInputObjectTypeDefinition();",
"@Override\n protected Document input() {\n Decision decision = getStakeholderDecision();\n if (decision == null)\n return null;\n\n Map<String, Node> inputs = new HashMap<String, Node>();\n inputs.put(\"decision\", makeNode(decision)); //$NON-NLS-1$\n inputs.put(\"user\", makeNode(getUser())); //$NON-NLS-1$\n Document resultDoc =\n XMLUtil.makeDocFromNodes(\n CallCenterNamespaceContext.HTTP_WWW_JOELSGARAGE_COM_CALLCENTER,\n HistoryBasedScenePlayer.INPUT, inputs);\n Logger.getLogger(GetStakeholder.class).info(\"input: \" + XMLUtil.writeXML(resultDoc)); //$NON-NLS-1$\n return resultDoc;\n }",
"public <T> T Get(String configName)\r\n\t{\r\n\t\t// divide path\r\n\t\tif(configName.contains(\".\"))\r\n\t\t{\r\n\t\t\tString firstName = configName.substring(0, configName.indexOf(\".\"));\r\n\t\t\tString lastName = configName.substring(configName.indexOf(\".\") + 1);\r\n\t\t\t\r\n\t\t\tConfigurations firstConfigurations = this.<Configurations>Get(firstName);\r\n\t\t\tif(firstConfigurations == null)\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn firstConfigurations.<T>Get(lastName);\r\n\t\t}\r\n\t\t\r\n\t\t// return first castable object\r\n\t\tif(configurationMap.get(configName.toLowerCase()) != null)\r\n\t\t{\r\n\t\t\tfor(Object obj : configurationMap.get(configName.toLowerCase()))\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\treturn (T) obj;\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e)\r\n\t\t\t\t{}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public ConfigurationForm getConfigForm()\n {\n return configForm;\n }",
"INPUT createINPUT();",
"String getInput();",
"public Literal getLiteral(Object literalData);",
"public static FStatementInput getStatementInput(String id, Resource s,\n URI p, Value o, boolean deletable, FieldType type, String query, \n List<Value> values, Repository rep)\n {\n FieldType internalType = type;\n if (type==FieldType.ONTOLOGY && p!=null)\n {\n ReadDataManager dm = EndpointImpl.api().getDataManager();\n if (dm.isObjectProperty(s,p))\n internalType=FieldType.INPUT_URI;\n else\n internalType=FieldType.INPUT_LITERAL;\n } \n \n \n switch (internalType)\n {\n case INPUT_LITERAL:\n return literalInput(id,s,p,o,deletable,LiteralType.TYPE_NORMAL);\n case INPUT_TEXT:\n return literalInput(id,s,p,o,deletable,LiteralType.TYPE_TEXT);\n case INPUT_LITERAL_DATE:\n return dateInput(id,s,p,o,deletable);\n case DROPDOWN:\n \treturn comboboxInput(id,s,p,o,deletable,query,values,rep);\n case INPUT_URI:\n default: \n return uriInput(id,s,p,o,deletable,query);\n }\n }",
"public T caseConfiguration(Configuration object)\n {\n return null;\n }",
"public abstract String toFORMParam();",
"public IInputType getInputType(String inputExtension);",
"ConfigModel createInstanceOfConfigModel();",
"protected Document getInputImpl(Decision decision) {\n if (decision == null)\n return null;\n Map<String, Node> inputs = new HashMap<String, Node>();\n inputs.put(\"decision\", makeNode(decision)); //$NON-NLS-1$\n Document resultDoc =\n XMLUtil.makeDocFromNodes(\n CallCenterNamespaceContext.HTTP_WWW_JOELSGARAGE_COM_CALLCENTER, INPUT, inputs);\n Logger.getLogger(VerifyDecision.class).info(\"input: \" + XMLUtil.writeXML(resultDoc)); //$NON-NLS-1$\n return resultDoc;\n }",
"@Override\n\tpublic String input() throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String input() throws Exception {\n\t\treturn null;\n\t}",
"public static Template get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tTemplate result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.GetInputDocument.GetInput getGetInput()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.GetInputDocument.GetInput target = null;\n target = (org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.GetInputDocument.GetInput)get_store().find_element_user(GETINPUT$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"Input createInput();",
"public String getInputString() {\n return inputString;\n }",
"public Form readForm(String formKey);",
"public static <T> T getInputParameterOrWorkingValue(\n FlightContext flightContext, String inputKey, String workingKey, Class<T> klass) {\n return Optional.ofNullable(flightContext.getInputParameters().get(inputKey, klass))\n .orElse(flightContext.getWorkingMap().get(workingKey, klass));\n }",
"public String inputForm() {\n return inputDataTraveler.validateData();\n }",
"@RequestMapping(value = \"getinput.htm\")\n public ModelAndView getInput() {\n ModelAndView modelAndView = new ModelAndView();\n modelAndView.addObject(\"inputentity\", new InputFormBean());\n return modelAndView;\n }",
"public XmlNsForm getElementFormDefault();",
"private String fromConfig(final Config config) {\n\n final StringBuilder errorMsg = new StringBuilder();\n\n this.enabled = true;\n if(config.hasPath(\"enabled\")){\n this.enabled = config.getBoolean(\"enabled\");\n }\n\n this.goServerHost = \"\";\n if(config.hasPath(\"server-host\")){\n this.goServerHost = config.getString(\"server-host\");\n }else{\n fieldError(errorMsg, \"server-host\");\n }\n\n this.goLogin = null;\n if (config.hasPath(\"login\")) {\n this.goLogin = config.getString(\"login\");\n }\n\n this.goPassword = null;\n if (config.hasPath(\"password\")) {\n this.goPassword = config.getString(\"password\");\n }\n\n this.goAPIToken = null;\n if (config.hasPath(\"api-token\")) {\n this.goAPIToken = config.getString(\"api-token\");\n }\n\n this.apiMsTeamsHost = \"http://localhost\";\n if(config.hasPath(\"api-msteams-host\")){\n this.apiMsTeamsHost = config.getString(\"api-msteams-host\");\n }else {\n fieldError(errorMsg, \"api-msteams-host\");\n }\n\n if(config.hasPath(\"msteams\")){\n\n ConfigList teams = config.getList(\"msteams\");\n this.msTeamsConfigList = new ArrayList<>();\n\n for(Object team : teams.unwrapped()){\n //Add new team\n MsTeamsConfig teamsConfig = new MsTeamsConfig((Map<String, Object>) team, errorMsg);\n this.msTeamsConfigList.add(teamsConfig);\n }\n }else {\n fieldError(errorMsg, \"msteams\");\n }\n\n this.displayConsoleLogLinks = true;\n if (config.hasPath(\"display-console-log-links\")) {\n displayConsoleLogLinks = config.getBoolean(\"display-console-log-links\");\n }\n\n this.displayMaterialChanges = true;\n if (config.hasPath(\"displayMaterialChanges\")) {\n displayMaterialChanges = config.getBoolean(\"displayMaterialChanges\");\n }\n\n this.processAllRules = true;\n if (config.hasPath(\"process-all-rules\")) {\n processAllRules = config.getBoolean(\"process-all-rules\");\n }\n\n this.truncateChanges = true;\n if(config.hasPath(\"truncate-changes\")) {\n truncateChanges = config.getBoolean(\"truncate-changes\");\n }\n\n if (config.hasPath(\"proxy\")) {\n Config proxyConfig = config.getConfig(\"proxy\");\n if (proxyConfig.hasPath(\"hostname\") && proxyConfig.hasPath(\"port\") && proxyConfig.hasPath(\"type\")) {\n String hostname = proxyConfig.getString(\"hostname\");\n int port = proxyConfig.getInt(\"port\");\n String type = proxyConfig.getString(\"type\").toUpperCase();\n Proxy.Type proxyType = Proxy.Type.valueOf(type);\n this.proxy = new Proxy(proxyType, new InetSocketAddress(hostname, port));\n }\n }\n\n return errorMsg.toString();\n }",
"public T caseConfiguration(Configuration object) {\n\t\treturn null;\n\t}",
"java.lang.String getFormUri();",
"private void setUrisAndLiteralsOnForm(EditConfigurationVTwo editConfiguration, VitroRequest vreq) {\n \tList<String> urisOnForm = new ArrayList<String>();\n \tList<String> literalsOnForm = new ArrayList<String>();\n \t//The URI of the node that defines the concept\n \turisOnForm.add(\"conceptNode\");\n \teditConfiguration.setUrisOnform(urisOnForm);\n \t//In case the user defines a new concept, will add a concept label\n \tliteralsOnForm.add(\"conceptLabel\");\n \teditConfiguration.setLiteralsOnForm(literalsOnForm);\n }",
"public final <T> T input(Class<T> __cl)\n\t\tthrows ClassCastException, NullPointerException\n\t{\n\t\tif (__cl == null)\n\t\t\tthrow new NullPointerException();\n\t\t\n\t\treturn __cl.cast(this.input());\n\t}",
"public String getInput() {\n return input;\n }",
"public IInputType getInputTypeById(String id);",
"public interface ParameterInput extends Input {\n\t\n\t/**\n\t * Returns the metadata of this parameter.\n\t * @return ParameterMetadata\tmetadata\n\t */\n\tpublic ParameterMetadata getMetadata();\n\t\n\t/**\n\t * Returns the parameter value of an option.\n\t * \n\t * @return Object option parameter value\n\t */\n\tpublic Object getValue();\n\t\n\t/**\n\t * Returns the File parameter value of an option.\n\t * If option's parameter type does not match with the\n\t * return type the value returned is null.\n\t * \n\t * @return File file value\n\t */\n\tpublic File getFileValue();\n\t\n\t/**\n\t * Returns the directory parameter value of an option.\n\t * If option's parameter type does not match with the\n\t * return type the value returned is null.\n\t * \n\t * @return File a directory file\n\t */\t\n\tpublic File getDirectoryValue();\n\n\t/**\n\t * Returns the String parameter value of an option.\n\t * If option's parameter type does not match with the\n\t * return type the value returned is null.\n\t * \n\t * @return String string value\n\t */\n\tpublic String getStringValue();\n\t\n\t/**\n\t * Returns the Number parameter value of an option.\n\t * If option's parameter type does not match with the\n\t * return type the value returned is null.\n\t * \n\t * @return Number value\n\t */\n\tpublic Number getNumberValue();\n\t\n}",
"protected Object getInitialInput() {\n return this;\n }",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"String getLiteral();",
"String getLiteral();",
"public interface ActionInputParameter {\n\n\tString MIN = \"min\";\n\n\tString MAX = \"max\";\n\n\tString STEP = \"step\";\n\n\tString MIN_LENGTH = \"minLength\";\n\n\tString MAX_LENGTH = \"maxLength\";\n\n\tString PATTERN = \"pattern\";\n\n\tString READONLY = \"readonly\";\n\n\t/**\n\t * Raw field value, without conversion.\n\t *\n\t * @return value\n\t */\n\tObject getValue();\n\n\t/**\n\t * Formatted field value to be used as preset value (e.g. using ConversionService).\n\t *\n\t * @return formatted value\n\t */\n\tString getValueFormatted();\n\n\t/**\n\t * Type of parameter when used in html-like contexts (e.g. Siren, Uber, XHtml)\n\t *\n\t * @return input field type\n\t */\n\tType getHtmlInputFieldType();\n\n\t/**\n\t * Set the type of parameter when used in html-like contexts (e.g. Siren, Uber, XHtml)\n\t * \n\t * @param type the {@link Type} to set\n\t */\n\tvoid setHtmlInputFieldType(Type type);\n\n\t/**\n\t * Parameter has input constraints (like range, step etc.)\n\t *\n\t * @return true for input constraints\n\t * @see #getInputConstraints()\n\t */\n\tboolean hasInputConstraints();\n\n\t/**\n\t * Gets possible values for this parameter.\n\t *\n\t * @param actionDescriptor in case that access to the other parameters is necessary to determine the possible values.\n\t * @param <T> This is the type parameter\n\t * @return possible values or empty array\n\t */\n\t<T> List<Suggest<T>> getPossibleValues(ActionDescriptor<? extends ActionInputParameter> actionDescriptor);\n\n\t/**\n\t * Establish possible values for this parameter\n\t * \n\t * @param possibleValues possible values for this parameter.\n\t */\n\tvoid setPossibleValues(List<? extends Suggest<?>> possibleValues);\n\n\t/**\n\t * Retrieve the suggest type\n\t * \n\t * @return the {@link SuggestType}\n\t */\n\tSuggestType getSuggestType();\n\n\t/**\n\t * Sets the suggest type\n\t * \n\t * @param type the {@link SuggestType} to set.\n\t */\n\tvoid setSuggestType(SuggestType type);\n\n\t/**\n\t * Parameter is an array or collection, think {?val*} in uri template.\n\t *\n\t * @return true for collection or array\n\t */\n\tboolean isArrayOrCollection();\n\n\t/**\n\t * Is this action input parameter required, based on the presence of a default value, the parameter annotations and the kind of input\n\t * parameter.\n\t *\n\t * @return true if required\n\t */\n\tboolean isRequired();\n\n\t/**\n\t * If parameter is an array or collection, the default values.\n\t *\n\t * @return values\n\t * @see #isArrayOrCollection()\n\t */\n\tObject[] getValues();\n\n\t/**\n\t * Does the parameter have a value?\n\t *\n\t * @return true if a value is present\n\t */\n\tboolean hasValue();\n\n\t/**\n\t * Name of parameter.\n\t *\n\t * @return the name of parameter.\n\t */\n\tString getParameterName();\n\n\t/**\n\t * Type of parameter.\n\t *\n\t * @return the type of parameter.\n\t */\n\tClass<?> getParameterType();\n\n\t/**\n\t * Gets input constraints.\n\t *\n\t * @return constraints where the key is one of {@link ActionInputParameter#MAX} etc. and the value is a string or number, depending on\n\t * the input constraint.\n\t * @see ActionInputParameter#MAX\n\t * @see ActionInputParameter#MIN\n\t * @see ActionInputParameter#MAX_LENGTH\n\t * @see ActionInputParameter#MIN_LENGTH\n\t * @see ActionInputParameter#STEP\n\t * @see ActionInputParameter#PATTERN\n\t * @see ActionInputParameter#READONLY\n\t */\n\tMap<String, Object> getInputConstraints();\n\n\tString getName();\n\n\tvoid setReadOnly(boolean readOnly);\n\n\tvoid setRequired(boolean required);\n\n\tParameterType getType();\n\n\tboolean isReadOnly();\n\n\tboolean isIgnored();\n\n\tvoid setValue(final Object value);\n\n}",
"public static IntegrityControlOption get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tIntegrityControlOption result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static Input getInput() {\r\n return input;\r\n }",
"public MapConfiguration getConfiguration() throws IOException,\n\t\t\tInstantiationException, IllegalAccessException {\n\n\t\tMapContext context = (MapContext) modelRepository\n\t\t\t\t.loadObject(new ResourceKey(\"Form@12\"));\n\n\t\tif (context != null) {\n\t\t\tMapConfiguration configuration = mapFactory\n\t\t\t\t\t.getConfiguration(context);\n\n\t\t\t// Retrieve context instance from configuration.\n\t\t\tcontext = configuration.getContext();\n\n\t\t\t// Reset layers\n\t\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\t\t\t\tlayer.setFilter(null);\n\t\t\t\tlayer.setHidden(true);\n\t\t\t\tlayer.setSelection(Collections.EMPTY_LIST);\n\t\t\t}\n\n\t\t\t// Add edit layer to context\n\t\t\tmapFactory.createGeometryLayer(context, GEOMETRY_LAYER_NAME, null,\n\t\t\t\t\tPoint.class, null, true, \"single\", null, null);\n\n\t\t\t// Start configuratie zoomt naar Provincie OVL\n\t\t\tFeatureMapLayer provincieLayer = (FeatureMapLayer) context\n\t\t\t\t\t.getLayer(\"provincie\");\n\t\t\tprovincieLayer.setHidden(false);\n\t\t\tProvincie provincie = (Provincie) modelRepository\n\t\t\t\t\t.getUniqueResult(modelRepository.searchObjects(\n\t\t\t\t\t\t\tnew DefaultQuery(\"Provincie\"), true, true));\n\t\t\tEnvelope envelope = GeometryUtils.getEnvelope(provincie.getGeom());\n\t\t\tcontext.setBoundingBox(envelope);\n\t\t\tsetBaseLayerName(\"tms\");\n\t\t\treturn configuration;\n\t\t}\n\n\t\treturn null;\n\t}",
"public void configure(Configuration config) throws ConfigurationException {\n\n this.inputConf = config.getChild(\"input-module\");\n this.inputName = this.inputConf.getAttribute(\"name\", this.inputHint);\n this.outputConf = config.getChild(\"output-module\");\n this.outputName = this.outputConf.getAttribute(\"name\", this.outputHint);\n this.defaultParameterName = config.getChild(\"parameter-name\").getValue(null);\n this.useGetValues = config.getChild(\"use-getValues\").getValueAsBoolean(this.useGetValues);\n }",
"String input() {\n\n try {\n\n FileReader reader = new FileReader(\"the text.txt\");\n BufferedReader bufferedReader = new BufferedReader(reader);\n StringBuilder builder = new StringBuilder();\n String line;\n\n while ((line = bufferedReader.readLine()) != null)\n builder.append(line);\n\n return builder.toString();\n\n } catch (IOException e) {\n\n System.out.println(\"Input Failure\");\n return null;\n }\n }",
"public static Optional<Expression> build(String input) throws IOException {\n ExpressionBuilder eb = new ExpressionBuilder();\n if (Calc.$.parse(Scanner.of(input), eb, true)) {\n return Optional.of(eb.get());\n } else {\n return Optional.empty();\n }\n }",
"private void readInputFormat(ConfigLinkedDocument ld, Entry<String, JsonNode> e) {\n String formatIdentifier = str(e);\n Format format = DocumentFormats.getFormat(formatIdentifier);\n if (format == null)\n throw new InvalidInputFormatConfig(\n \"Unknown input format \" + str(e) + \" in linked document \" + ld.getName());\n\n ld.setInputFormatIdentifier(formatIdentifier);\n }",
"ParameterConfiguration getParameterConfiguration(String name);",
"public static String getLexicalForm(RDFNode value) {\n if (value.isLiteral()) {\n return ((Literal) value).getLexicalForm();\n } else if (value.isURIResource()) {\n return ((Resource) value).getURI();\n } else {\n return value.toString();\n }\n }",
"public static FStatementInput guessStatementInput(String id, Resource s,\n URI p, Value o, boolean deletable)\n {\n if (p!=null)\n {\n ReadDataManager dm = EndpointImpl.api().getDataManager();\n if (dm.isObjectProperty(s,p))\n return uriInput(id,s,p,o,deletable);\n else if (dm.isDatatypeProperty(s,p))\n return literalInput(id,s,p,o,deletable,LiteralType.TYPE_NORMAL);\n }\n \n // no suitable statement input found\n return null;\n }",
"@VisibleForTesting\n static Value<?> valueToLiteralLegacy(Object value, GraphQLType type, GraphQLContext graphqlContext, Locale locale) {\n assertTrue(!(value instanceof Value), () -> \"Unexpected literal \" + value);\n if (value == null) {\n return null;\n }\n\n if (isNonNull(type)) {\n return handleNonNullLegacy(value, (GraphQLNonNull) type, graphqlContext, locale);\n }\n\n // Convert JavaScript array to GraphQL list. If the GraphQLType is a list, but\n // the value is not an array, convert the value using the list's item type.\n if (isList(type)) {\n return handleListLegacy(value, (GraphQLList) type, graphqlContext, locale);\n }\n\n // Populate the fields of the input object by creating ASTs from each value\n // in the JavaScript object according to the fields in the input type.\n if (type instanceof GraphQLInputObjectType) {\n return handleInputObjectLegacy(value, (GraphQLInputObjectType) type, graphqlContext, locale);\n }\n\n if (!(type instanceof GraphQLScalarType || type instanceof GraphQLEnumType)) {\n throw new AssertException(\"Must provide Input Type, cannot use: \" + type.getClass());\n }\n\n // Since value is an internally represented value, it must be serialized\n // to an externally represented value before converting into an AST.\n final Object serialized = serializeLegacy(type, value, graphqlContext, locale);\n\n // Others serialize based on their corresponding JavaScript scalar types.\n if (serialized instanceof Boolean) {\n return BooleanValue.newBooleanValue().value((Boolean) serialized).build();\n }\n\n String stringValue = serialized.toString();\n // numbers can be Int or Float values.\n if (serialized instanceof Number) {\n return handleNumberLegacy(stringValue);\n }\n\n if (serialized instanceof String) {\n // Enum types use Enum literals.\n if (type instanceof GraphQLEnumType) {\n return EnumValue.newEnumValue().name(stringValue).build();\n }\n\n // ID types can use Int literals.\n if (type == Scalars.GraphQLID && stringValue.matches(\"^[0-9]+$\")) {\n return IntValue.newIntValue().value(new BigInteger(stringValue)).build();\n }\n\n return StringValue.newStringValue().value(stringValue).build();\n }\n\n throw new AssertException(\"'Cannot convert value to AST: \" + serialized);\n }",
"public Object get(Object obj) throws AspException\n {\n Object queryString = QueryString.get(obj);\n if (!(queryString instanceof UndefinedValueNode)) {\n return queryString;\n }\n Object formValue = Form.get(obj);\n if (!(formValue instanceof UndefinedValueNode)) {\n return formValue;\n }\n Object serverVariable = ServerVariables.get(obj);\n if (!(serverVariable instanceof UndefinedValueNode)) {\n return serverVariable;\n }\n return Constants.undefinedValueNode;\n }",
"public static com.glority.qualityserver.model.Configuration convertToServerModel(\n com.glority.quality.model.Configuration configuration) {\n com.glority.qualityserver.model.Configuration sConfig = new com.glority.qualityserver.model.Configuration();\n\n if (configuration != null) {\n //use name field to store the id from report.\n sConfig.setName(configuration.getId());\n\n sConfig.setOs(configuration.getEnvironments().getOs());\n sConfig.setArch(configuration.getEnvironments().getArch());\n sConfig.setLanguage(configuration.getEnvironments().getLanguage());\n sConfig.setSoftwares(convertSoftwaresToXml(configuration.getSoftwares()));\n }\n return sConfig;\n }",
"public static RefinementPhases get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tRefinementPhases result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static FkCascadeActionOptions get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tFkCascadeActionOptions result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private T convert(String value)\n {\n if (value == null)\n {\n return null;\n }\n\n Object result = null;\n\n if (this.converter != null)\n {\n try\n {\n result = converter.convert(value);\n }\n catch (Exception e)\n {\n throw ExceptionUtils.throwAsRuntimeException(e);\n }\n }\n else if (String.class.equals(configEntryType))\n {\n result = value;\n }\n else if (Class.class.equals(configEntryType))\n {\n result = ClassUtils.tryToLoadClassForName(value);\n }\n else if (Boolean.class.equals(configEntryType))\n {\n Boolean isTrue = \"TRUE\".equalsIgnoreCase(value);\n isTrue |= \"1\".equalsIgnoreCase(value);\n isTrue |= \"YES\".equalsIgnoreCase(value);\n isTrue |= \"Y\".equalsIgnoreCase(value);\n isTrue |= \"JA\".equalsIgnoreCase(value);\n isTrue |= \"J\".equalsIgnoreCase(value);\n isTrue |= \"OUI\".equalsIgnoreCase(value);\n\n result = isTrue;\n }\n else if (Integer.class.equals(configEntryType))\n {\n result = Integer.parseInt(value);\n }\n else if (Long.class.equals(configEntryType))\n {\n result = Long.parseLong(value);\n }\n else if (Float.class.equals(configEntryType))\n {\n result = Float.parseFloat(value);\n }\n else if (Double.class.equals(configEntryType))\n {\n result = Double.parseDouble(value);\n }\n\n return (T) result;\n }",
"public static HydroPlantType get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tHydroPlantType result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static RDFFormat getFormatFromString(String format) throws NoValidArgumentException {\n RDFFormat result = getFormatNoException(format);\n\n if (result == null) {\n throw new NoValidArgumentException(\"Unknown language format: \" + format);\n }\n return result;\n }",
"public PortletApplicationDefinition read(String name, String contextPath,\n InputStream in) throws IOException {\n if (in == null) {\n throw new IOException(\"Cannot read from a null InputStream\");\n }\n\n PortletApplicationDefinition pad = null;\n ConfigurationHolder confHolder = new ConfigurationHolder();\n\n // read the deployment descriptor\n try {\n confHolder.processPortletDD(in);\n pad = confHolder.getPad();\n } catch (XMLStreamException | IllegalArgumentException | JAXBException e) {\n final IOException ioe = new IOException(e.getLocalizedMessage());\n ioe.initCause(e);\n throw ioe;\n }\n\n pad.setName(name);\n pad.setContextPath(contextPath);\n\n return pad;\n }",
"protected Object getObjectValue(IRI propertyIRI, Literal object) {\n IRI datatype = object.getDatatype();\n if (datatype.equals(XMLSchema.STRING) || datatype.equals(RDF.LANGSTRING)) {\n final Optional<String> language = object.getLanguage();\n if (parserConfig.getLanguageFilter() == null || !language.isPresent() || parserConfig\n .getLanguageFilter().equals(language.get())) {\n return object.stringValue() + (\n parserConfig.getGraphConf().isKeepLangTag() && language.isPresent() ? \"@\"\n + language.get()\n : \"\");\n } else {\n //filtered by lang\n return null;\n }\n } else if (typeMapsToLongType(datatype)) {\n return object.longValue();\n } else if (typeMapsToDouble(datatype)) {\n return object.doubleValue();\n } else if (datatype.equals(XMLSchema.BOOLEAN)) {\n return object.booleanValue();\n } else if (datatype.equals(XMLSchema.DATETIME)) {\n try {\n return ZonedDateTime.parse(object.stringValue());\n }catch(DateTimeParseException dtpe){\n try{\n //formatter to support the format shown int the cypher refcard (timezone but no offset)\n DateTimeFormatter neo4jZonedDateFormat = new DateTimeFormatterBuilder()\n .appendPattern(\"yyyy-MM-dd'T'HH:mm:ss\")\n .appendFraction(ChronoField.MILLI_OF_SECOND, 0, 9, true)\n .appendPattern(\"'['\").appendZoneId().appendPattern(\"']'\").toFormatter();\n return ZonedDateTime.parse(object.stringValue(), neo4jZonedDateFormat);\n }catch(DateTimeParseException dtpe2){\n try {\n return DateUtils.parseDateTime(object.stringValue());\n } catch (IllegalArgumentException e) {\n //if date cannot be parsed we return string value\n return object.stringValue();\n }\n }\n }\n }else if (datatype.equals(vf.createIRI(GEOSPARQL_NS, WKTLITERAL))) {\n try {\n return PointValue.parse(wktToCartesian(object.stringValue()));\n } catch (InvalidArgumentException e) {\n //if pointvalue cannot be parsed we return string value\n return object.stringValue();\n }\n } else if (datatype.equals(XMLSchema.DATE)) {\n try {\n return DateUtils.parseDate(object.stringValue());\n } catch (IllegalArgumentException e) {\n //if date cannot be parsed we return string value\n return object.stringValue();\n }\n } else {\n //it's a custom data type\n if (parserConfig.getGraphConf().isKeepCustomDataTypes() && !(\n parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_IGNORE\n || parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_MAP)) {\n //keep custom type as long as property is not absent from customDT list\n if (parserConfig.getGraphConf().getCustomDataTypePropList() == null || parserConfig\n .getGraphConf().getCustomDataTypePropList()\n .contains(propertyIRI.stringValue())) {\n return getValueWithDatatype(datatype, object.stringValue());\n } else {\n return object.stringValue();\n }\n }\n }\n // default\n return object.stringValue();\n }",
"public static String getStringInput() {\n Scanner in = new Scanner(System.in);\n return in.next();\n }",
"@Override\n public Data build(String input) {\n return null;\n }",
"public T caseInput(Input object) {\n\t\treturn null;\n\t}",
"com.indosat.eai.catalist.standardInputOutput.DummyInputDocument.DummyInput getDummyInput();",
"String getFromText();",
"public Object\tgetConfiguration();",
"@java.lang.Override\n public com.google.protobuf.Any getConfiguration() {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }",
"public Object resolveSPELString(String elContaining) {\r\n\t\t// if the whole thing is a single EL string, try to get the object.\r\n\t\tif (elContaining.matches(EXPRESSION_MATCHER)) {\r\n\t\t\tString resolvableElString = \r\n\t\t\t\telContaining.substring(2, elContaining.length() - 1) + \"?: null\";\r\n\t\t\tObject elResult = getBySpel(resolvableElString);\r\n\t\t\treturn elResult;\r\n\t\t} else {\r\n\t\t\t// otherwise, do string value substitution to build a value.\r\n\t\t\tString elResolvable = elContaining;\r\n\t\t\tMatcher matcher = Pattern.compile(EXPRESSION_MATCHER).matcher(elResolvable);\r\n\t\t\twhile (matcher.find()) {\r\n\t\t\t\tString elString = matcher.group();\r\n\t\t\t\tString resolvableElString = \r\n\t\t\t\t\t\telString.substring(2, elString.length() - 1) + \"?: null\";\r\n\t\t\t\tObject elResult = getBySpel(resolvableElString);\r\n\t\t\t\tString resolvedElString = elResult != null ? \r\n\t\t\t\t\ttypeConverter.convertIfNecessary(elResult, String.class) : \"\";\r\n\t\t\t\telResolvable = elResolvable.replace(elString, resolvedElString);\r\n\t\t\t}\r\n\t\t\treturn elResolvable;\r\n\t\t}\r\n\t}",
"public static RepresentacionGrafica get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tRepresentacionGrafica result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@ProviderType\npublic interface StringConstraint extends BaseConstraint, FormatConstraint {\n\n /**\n * Returns the minimum length of the data. The constraint is applicable only for field with type string\n *\n * @return minimum length of the data\n * @since com.adobe.cq.forms.core.components.models.form 0.0.1\n */\n @JsonInclude(JsonInclude.Include.NON_NULL)\n Integer getMinLength();\n\n /**\n * Returns the maximum length of the data. The constraint is applicable only for field with type string\n *\n * @return maximum length of the data\n * @since com.adobe.cq.forms.core.components.models.form 0.0.1\n */\n @JsonInclude(JsonInclude.Include.NON_NULL)\n Integer getMaxLength();\n\n /**\n * As specified in the JSON Schema specification, the regex against which the value of the field should be tested with.\n *\n * Returns the regex. The constraint is applicable only for field with type string\n *\n * @return string represented as pattern\n * @since com.adobe.cq.forms.core.components.models.form 0.0.1\n */\n default String getPattern() {\n return null;\n }\n}",
"protected final ByteSource getInput(String name) {\n try {\n if (name.equals(\"-\")) {\n return new StandardInputSource();\n } else {\n File file = new File(name);\n if (!file.exists()) {\n throw new FileNotFoundException(name);\n } else if (file.isDirectory()) {\n throw new IOException(name); // TODO Message? Exception?\n } else if (!file.canRead()) {\n throw new IOException(name); // TODO Message? Exception?\n } else {\n return Files.asByteSource(file);\n }\n }\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }",
"public static TypeOfContext get(String literal) {\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tTypeOfContext result = VALUES_ARRAY[i];\r\n\t\t\tif (result.toString().equals(literal)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static InputElement getImplAsInputElement(ContentElement element) {\n return InputElement.as(element.getImplNodelet());\n }",
"public static InitFieldConfig from(String initFieldConfigString) {\n String fieldName = null;\n String entityName = null;\n InitValue value = null;\n\n String[] equalsParts = initFieldConfigString.split(\"[=]\");\n if (equalsParts.length > 2) {\n throw new IllegalArgumentException(\"Inconsistent: found multiple '=' characters\");\n } else if (equalsParts.length == 2) {\n value = parseValueString(equalsParts[1]);\n }\n\n String[] fieldSpecs = equalsParts[0].split(\"[%]\");\n fieldName = fieldSpecs[0];\n if (fieldSpecs.length == 2) {\n entityName = fieldSpecs[1];\n } else if (fieldSpecs.length > 2) {\n throw new IllegalArgumentException(\"Inconsistent: found multiple '%' characters\");\n }\n return new AutoValue_InitFieldConfig(fieldName, entityName, value);\n }",
"public ClientLoader inputFormat(final String theInputFormat) {\r\n this.inputFormat = checkNotNull(theInputFormat, \"inputFormat is null\");\r\n return this;\r\n }",
"public static InputSpecification getPetClinicInputSpecification() {\n\t\t\n\t\tProperties configFile = new Properties();\n\t\tInputSpecification input = new InputSpecification();\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tconfigFile.load(Crawler.class.getClassLoader().getResourceAsStream(\"app.properties\"));\n\t\t\t\n\t\t\t/*\n\t\t\tString firstname_field = configFile.getProperty(\"NEW_OWNER_FIRSTNAME\");\n\t\t\tString firstname_value = configFile.getProperty(\"NEW_OWNER_FIRSTNAME_VALUE\");\n\t\t\tString lastname_field = configFile.getProperty(\"NEW_OWNER_LASTNAME\");\n\t\t\tString lastname_value = configFile.getProperty(\"NEW_OWNER_LASTNAME_VALUE\");\n\t\t\tString address_field = configFile.getProperty(\"NEW_OWNER_ADDRESS\");\n\t\t\tString address_value = configFile.getProperty(\"NEW_OWNER_ADDRESS_VALUE\");\n\t\t\tString city_field = configFile.getProperty(\"NEW_OWNER_CITY\");\n\t\t\tString city_value = configFile.getProperty(\"NEW_OWNER_CITY_VALUE\");\n\t\t\tString telephone_field = configFile.getProperty(\"NEW_OWNER_TELEPHONE\");\n\t\t\tString telephone_value = configFile.getProperty(\"NEW_OWNER_TELEPHONE_VALUE\");\n\t\t\tString submit_field = configFile.getProperty(\"SUBMIT_FIELD\");\n\t\t\tString submit_value = configFile.getProperty(\"SUBMIT_TEXT\");\n\t\t\t\n\t\t\tForm newOwner = new Form();\n\t\t\tnewOwner.field(firstname_field).setValue(firstname_value);\n\t\t\tnewOwner.field(lastname_field).setValue(lastname_value);\n\t\t\tnewOwner.field(address_field).setValue(address_value);\n\t\t\tnewOwner.field(city_field).setValue(city_value);\n\t\t\tnewOwner.field(telephone_field).setValue(telephone_value);\n\t\t\tinput.setValuesInForm(newOwner).beforeClickElement(submit_field).withText(submit_value);\n\t\t\t*/\n\t\t\t\n\t\t\tString search_field = configFile.getProperty(\"SEARCH_FIELD\");\n\t\t\tString search_value = configFile.getProperty(\"SEARCH_VALUE\");\n\t\t\tString search_button_field = configFile.getProperty(\"SEARCH_BUTTON_FIELD\");\n\t\t\tString search_button_value = configFile.getProperty(\"SEARCH_BUTTON_VALUE\");\n\t\t\t\n\t\t\tForm search = new Form();\n\t\t\tsearch.field(search_field).setValue(search_value);\n\t\t\tinput.setValuesInForm(search).beforeClickElement(search_button_field).withText(search_button_value);\n\t\t\t\n\t\t\t/*\n\t\t\tString pet_name_field = configFile.getProperty(\"PET_NAME_FIELD\");\n\t\t\tString pet_name_value = configFile.getProperty(\"PET_NAME_VALUE\");\n\t\t\tString pet_birthday_field = configFile.getProperty(\"PET_BIRTHDATE_FIELD\");\n\t\t\tString pet_birthday_value = configFile.getProperty(\"PET_BIRTHDATE_VALUE\");\n\t\t\tString pet_type_field = configFile.getProperty(\"PET_TYPE_FIELD\");\n\t\t\tString pet_type_value = configFile.getProperty(\"PET_TYPE_VALUE\");\n\t\t\tString pet_button_field = configFile.getProperty(\"PET_ADD_BUTTON_FIELD\");\n\t\t\tString pet_button_value = configFile.getProperty(\"PET_ADD_BUTTON_VALUE\");\n\t\t\t\n\t\t\tForm addPet = new Form();\n\t\t\taddPet.field(pet_name_field).setValue(pet_name_value);\n\t\t\taddPet.field(pet_birthday_field).setValue(pet_birthday_value);\n\t\t\taddPet.field(pet_type_field).setValue(pet_type_value);\t\t\t\n\t\t\tinput.setValuesInForm(addPet).beforeClickElement(pet_button_field).withText(pet_button_value);\n\t\t\t\n\t\t\tString visit_description_field = configFile.getProperty(\"VISIT_DESCRIPTION_FIELD\");\n\t\t\tString visit_description_value = configFile.getProperty(\"VISIT_DESCRIPTION_VALUE\");\n\t\t\tdescription\n\t\t\t*/\n\t\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn input;\n\t}",
"public static OtaSearchForm getInstance(Ota obj) {\r\n\t\tOtaSearchForm form = new OtaSearchForm();\r\n\t\tform.setAtticantMin(obj.getAtticant());\r\n\t\tform.setAtticantMax(obj.getAtticant());\r\n\t\tform.setChanMin(obj.getChan());\r\n\t\tform.setChanMax(obj.getChan());\r\n\t\tform.setChannelname(obj.getChannelname());\r\n\t\tform.setChannelnumber(obj.getChannelnumber());\r\n\t\tform.setChannelnumberchannelnameincluded(obj.getChannelnumberchannelnameincluded());\r\n\t\tform.setComments(obj.getComments());\r\n\t\tform.setDirection(obj.getDirection());\r\n\t\tform.setEnabled(obj.getEnabled());\r\n\t\tform.setFccinfo(obj.getFccinfo());\r\n\t\tform.setFreqMin(obj.getFreq());\r\n\t\tform.setFreqMax(obj.getFreq());\r\n\t\tform.setIdMin(obj.getId());\r\n\t\tform.setIdMax(obj.getId());\r\n\t\tform.setLangfield(obj.getLangfield());\r\n\t\tform.setListed(obj.getListed());\r\n\t\tform.setMytivoavgstrengthMin(obj.getMytivoavgstrength());\r\n\t\tform.setMytivoavgstrengthMax(obj.getMytivoavgstrength());\r\n\t\tform.setNetwork(obj.getNetwork());\r\n\t\tform.setOff(obj.getOff());\r\n\t\tform.setRecommendedantenna(obj.getRecommendedantenna());\r\n\t\tform.setRez(obj.getRez());\r\n\t\tform.setStation(obj.getStation());\r\n\t\tform.setSubchanMin(obj.getSubchan());\r\n\t\tform.setSubchanMax(obj.getSubchan());\r\n\t\tform.setTvfoolchanMin(obj.getTvfoolchan());\r\n\t\tform.setTvfoolchanMax(obj.getTvfoolchan());\r\n\t\tform.setTvfoolestsignal(obj.getTvfoolestsignal());\r\n\t\tform.setAccount(AccountSearchForm.getInstance(obj.getAccount()));\r\n\t\tform.setWatchabletablo(obj.getWatchabletablo());\r\n\t\tform.setWatchabletivo(obj.getWatchabletivo());\r\n\t\treturn form;\r\n\t}",
"com.indosat.eai.catalist.standardInputOutput.DummyInputType getInput();",
"protected T getConfigurationByCommandline() {\n\t\t\n\t\tT result = null;\n\t\t\n\t\tString[] args = this.commandLineArguments; \n\t\t\n\t\tif (args == null) {\n\t\t\tthrow new NullPointerException(\"Command line arguments have not been set in factory!\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tresult = (T) CliFactory.parseArguments(\n\t\t\t\tthis.configurationInterface, args\n\t\t\t);\n\t\t} catch (ArgumentValidationException e) {\n\t\t\tthrow new ConfigurationException(e.getMessage());\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public IConfiguration configToConvert() {\n\t\tString inputFiles = jTextFieldInputFiles.getText();\n\t\tString outputFile = jTextFieldOutputFile.getText();\n\t\tif (inputFiles.length() > 0)\n\t\t\tmodifications.insertPoolSource(inputFiles);\n\t\tif (outputFile.length() > 0)\n\t\t\tmodifications.insertPoolOutputModule(outputFile);\n\t\tif (asFragment()) {\n\t\t\tmodifications.filterAllEDSources(true);\n\t\t\tmodifications.filterAllOutputModules(true);\n\t\t}\n\t\tmodifier.modify(modifications);\n\t\treturn modifier;\n\t}",
"public String getInput1() {\n return input1;\n }",
"@Override\n public JsonNode visit(JmesPathLiteral literal, JsonNode input) {\n return literal.getValue();\n }",
"public String input() throws Exception {\r\n\t\treturn INPUT;\r\n\t}",
"public String readInput() {\n\t\treturn null;\n\t}",
"public static EstimatingTechnique get(String literal) {\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tEstimatingTechnique result = VALUES_ARRAY[i];\r\n\t\t\tif (result.toString().equals(literal)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static ProgrammingLanguage get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tProgrammingLanguage result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static VisualizationType get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tVisualizationType result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic <E> E getInputValue(FlowUnit u, FlowExec exec, String arg, Class<E> cl, boolean canBeNull) throws Exception\n\t\t{\n\t\tObject o=getInputValue(u, exec, arg);\n\t\tif(canBeNull && o==null)\n\t\t\treturn null;\n\t\telse\n\t\t\t{\n\t\t\tif(cl.isInstance(o)) //False if o is null\n\t\t\t\treturn (E)o;\n\t\t\telse\n\t\t\t\tthrow new BadTypeFlowException(\"Unsupported type, input value \"+arg);\n\t\t\t}\n\t\t\t\n\t\t}",
"public static OfbizUrlBuilder from(HttpServletRequest request) throws GenericEntityException, WebAppConfigurationException {\n Assert.notNull(\"request\", request);\n OfbizUrlBuilder builder = (OfbizUrlBuilder) request.getAttribute(\"_OFBIZ_URL_BUILDER_\");\n if (builder == null) {\n WebSiteProperties webSiteProps = WebSiteProperties.from(request);\n URL url = ConfigXMLReader.getControllerConfigURL(request.getServletContext());\n ControllerConfig config = (url != null) ? ConfigXMLReader.getControllerConfig(url, true) : null; // SCIPIO: 2017-11-18: controller now fully optional (2 change)\n // SCIPIO: Use more reliable call\n //String servletPath = (String) request.getAttribute(\"_CONTROL_PATH_\");\n String servletPath = RequestHandler.getControlPath(request);\n String contextPath = request.getContextPath();\n builder = new OfbizUrlBuilder(config, webSiteProps, servletPath, contextPath); // SCIPIO\n request.setAttribute(\"_OFBIZ_URL_BUILDER_\", builder);\n }\n return builder;\n }",
"ExpressionInOcl createExpressionInOcl();",
"public void setInput(String input) { this.input = input; }"
] | [
"0.56291515",
"0.5286935",
"0.5124574",
"0.49349955",
"0.49051479",
"0.476951",
"0.47134092",
"0.4497192",
"0.44815373",
"0.4427887",
"0.4400108",
"0.43897298",
"0.4384627",
"0.43670604",
"0.43268418",
"0.43029606",
"0.42791265",
"0.42474157",
"0.4244364",
"0.42393562",
"0.4201504",
"0.4175171",
"0.4168436",
"0.4168436",
"0.41669643",
"0.41635603",
"0.41631946",
"0.41498697",
"0.41485026",
"0.4144637",
"0.41435406",
"0.41200277",
"0.4116635",
"0.40960866",
"0.4093143",
"0.40927428",
"0.40889484",
"0.40867525",
"0.40837142",
"0.40595293",
"0.40546012",
"0.4054398",
"0.40296146",
"0.40296146",
"0.40296146",
"0.40296146",
"0.40276054",
"0.40276054",
"0.40252748",
"0.40067163",
"0.40015784",
"0.39991888",
"0.39917603",
"0.39898774",
"0.3979401",
"0.39773092",
"0.39602828",
"0.3951794",
"0.39420453",
"0.39402944",
"0.3935375",
"0.3934205",
"0.3925473",
"0.39181542",
"0.39172012",
"0.389712",
"0.38930792",
"0.3890419",
"0.38897118",
"0.3886404",
"0.38856223",
"0.38842398",
"0.38733664",
"0.38726592",
"0.38723478",
"0.38583514",
"0.3856454",
"0.3851545",
"0.3846147",
"0.38460532",
"0.38448492",
"0.3842582",
"0.38358387",
"0.38309458",
"0.38302827",
"0.3829838",
"0.38255215",
"0.3824799",
"0.3824303",
"0.3822265",
"0.38215533",
"0.38195968",
"0.38164636",
"0.38162893",
"0.38161996",
"0.3814391",
"0.38075912",
"0.3806982",
"0.38045767",
"0.37956303"
] | 0.49062198 | 4 |
Returns a literal date input form for the given configuration. May return null if the configuration is invalid (e.g., the passed object is a URI). | public static FDateStatementInput dateInput(String id, Resource s, URI p,
Value o, boolean deletable)
{
try
{
Literal oLiteral=null;
if (o!=null)
oLiteral=(Literal)o;
return new FDateStatementInput(id,s,p,oLiteral,deletable);
}
catch (ClassCastException e)
{
logger.warn("Cannot construct date literal input form:" + e.getMessage());
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DateLiteral createDateLiteral();",
"public interface DatePropertySchema {\n /**\n * Returns source date format\n * @return Source date format\n */\n DateFormat getSourceDateFormat();\n\n /**\n * Returns display date format\n * @return Display date format\n */\n DateFormat getDisplayDateFormat();\n\n /**\n * Converts a string into a date with the source date format\n * @param date A string representing a date\n * @return Date\n */\n default Date fromSource(String date) {\n try {\n return getSourceDateFormat().parse(date);\n } catch (ParseException e) {\n throw new RuntimeException(String.format(\"couldn't parse date:{0} using:{1}\", date, getSourceDateFormat()));\n }\n }\n\n /**\n * Converts a string into a date with the display date format\n * @param date A string representing a date\n * @return Date\n */\n default Date fromDisplay(String date) {\n try {\n return getDisplayDateFormat().parse(date);\n } catch (ParseException e) {\n throw new RuntimeException(String.format(\"couldn't parse date:{0} using:{1}\", date, getDisplayDateFormat()));\n }\n }\n\n /**\n * Converts a date into a string with the display date format\n * @param date A date\n * @return A string representing a date\n */\n default String toDisplay(Date date) {\n return getDisplayDateFormat().format(date);\n }\n\n /**\n * Converts a date into a string with the source date format\n * @param date A date\n * @return A string representing a date\n */\n default String toSource(Date date) {\n return getSourceDateFormat().format(date);\n }\n}",
"Date getForDate();",
"default Date fromDisplay(String date) {\n try {\n return getDisplayDateFormat().parse(date);\n } catch (ParseException e) {\n throw new RuntimeException(String.format(\"couldn't parse date:{0} using:{1}\", date, getDisplayDateFormat()));\n }\n }",
"java.lang.String getFromDate();",
"default Date fromSource(String date) {\n try {\n return getSourceDateFormat().parse(date);\n } catch (ParseException e) {\n throw new RuntimeException(String.format(\"couldn't parse date:{0} using:{1}\", date, getSourceDateFormat()));\n }\n }",
"public Date getDate(String format){\n String date = et_Date.getText().toString();\n //Date date;\n\t\ttry {\n\t\t\treturn frontFormat.parse(date);\n\t\t} catch (ParseException e) {\n\t\t\tLogM.log(getContext(), getClass(), Level.SEVERE, \"getDate(String)\", e);\n\t\t} \n return null;\n }",
"java.lang.String getStartDateYYYYMMDD();",
"@Override\n\tpublic Date getEntryDate()\n\t{\n\n\t\tString entryDateText = entryDateSpinnerEditor.getTextField().getText();\n\t\tif(entryDateText == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\ttry\n\t\t{\n\t\t\treturn DateUtils.parseDate(entryDateText);\n\t\t}\n\t\tcatch(ParseException e)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}",
"@org.jetbrains.annotations.NotNull()\n public static final java.lang.String getFormattedDate(@org.jetbrains.annotations.NotNull()\n java.util.Calendar $this$getFormattedDate, @org.jetbrains.annotations.NotNull()\n java.lang.String format) {\n return null;\n }",
"public static void valDate() {\n Scanner input = new Scanner(System.in);\n try {\n LocalDate dateObj = LocalDate.parse(date);\n } catch (DateTimeParseException ex) {\n System.err.println(\"Invalid date, please insert a valid date with pattern yyyy-MM-dd\");\n date = input.next();\n valDate();\n }\n }",
"ValuationDate getValuationDate();",
"public static HISDate valueOf(String date, String format) throws HISDateException {\r\n HISDate ret = null;\r\n String datStr = date;\r\n String formatStr = format;\r\n if (datStr != null) {\r\n // Wir haben ein Datum gegeben...\r\n datStr = format(datStr);\r\n if (datStr.toUpperCase().equals(\"TODAY\") || datStr.toUpperCase().equals(\"NOW\") || datStr.toUpperCase().equals(\"CURRENT\")) {\r\n // Schlüsselwort für aktuelles Datum !!\r\n if (formatStr != null) {\r\n logger.debug(\"Unnötige Format-Angabe für TODAY!\");\r\n }\r\n // Hole aktuelles Datum:\r\n ret = HISDate.getToday();\r\n } else {\r\n // Kein Schlüsselwort für Datum...\r\n try {\r\n // Betrachte Formatangabe:\r\n if (formatStr == null) {\r\n // Kein Format gegeben.\r\n // Muss Format aus Datumswert erraten:\r\n formatStr = HISDate.guessFormat(datStr);\r\n } else {\r\n // Schlüsselworte ersetzen oder Format validieren:\r\n formatStr = HISDate.substKeysCheckFormat(formatStr);\r\n } // endif (Formatangabe nicht null)\r\n\r\n // Wenn wir bis hierhin kommen, haben wir eine\r\n // gültige Formatangabe in Grossschrift...\r\n\r\n // Versuche jetzt, die Werte zu holen:\r\n int y = -1;\r\n int m = -1;\r\n int d = -1;\r\n String sep = formatStr.substring(3);\r\n StringTokenizer datTokenizer = new StringTokenizer(datStr, sep);\r\n for (int i = 0; i < 3; i++) {\r\n char component = formatStr.charAt(i);\r\n if (!datTokenizer.hasMoreTokens()) {\r\n if (component == 'Y') {\r\n y = HISDate.getToday().getYear();\r\n break;\r\n }\r\n }\r\n String val = datTokenizer.nextToken();\r\n switch (component) {\r\n case 'D': {\r\n d = Integer.parseInt(val);\r\n break;\r\n }\r\n case 'M': {\r\n m = ArrayUtils.indexOf(MONTH_SHORT, val);\r\n if (m < 0) {\r\n m = Integer.parseInt(val);\r\n }\r\n break;\r\n }\r\n case 'Y': {\r\n int intVal = Integer.parseInt(val);\r\n if (val.length() == 2) {\r\n // Zweistellige Jahresangaben ergänzen:\r\n if (intVal < 50) {\r\n intVal += 2000; // 2000...2049\r\n } else {\r\n intVal += 1900; // 1950...1999\r\n }\r\n }\r\n y = intVal;\r\n break;\r\n }\r\n // Andere können wegen checkFormat() nicht mehr vorkommen...\r\n } // endswitch (aktuelle Datums-Komponente)\r\n } // endfor (drei Datumskomponenten)\r\n if (datTokenizer.hasMoreTokens()) {\r\n // Fehler, es gibt mehr als zwei Separatoren !!\r\n throw new HISException(datStr + \" ist ungültiger Datumswert. Ein Datum besteht nur aus drei Komponenten!\");\r\n }\r\n\r\n // Datums-Objekt erzeugen:\r\n ret = new HISDate(y, m, d);\r\n } catch (Exception ex) {\r\n throw new HISDateException(\"Fehler beim Erzeugen eines Datums-Objekts aus \" + datStr + \": \", ex);\r\n }\r\n }\r\n }\r\n return ret;\r\n }",
"String getStartDateParam(String dateString);",
"public Date getInputDate() {\r\n\t\treturn inputDate;\r\n\t}",
"Date getDateField();",
"abstract Date getDefault();",
"String getStartDate();",
"public Date getInputDate() {\r\n return inputDate;\r\n }",
"private ARXDate(final String formatString) {\r\n if (formatString == null || formatString.equals(\"Default\")) {\r\n this.string = \"dd.MM.yyyy\";\r\n this.format = new SimpleDateFormat(string);\r\n this.locale = null;\r\n } else {\r\n this.format = new SimpleDateFormat(formatString);\r\n this.string = formatString;\r\n this.locale = null;\r\n }\r\n }",
"public abstract MarketDataBox<LocalDate> getValuationDate();",
"private static LocalDate parseLocalDate(final String input) {\n if (input.contains(\"--\") || input.contains(\"*\")) {\n return null;\n }\n return LocalDate.parse(input);\n\n }",
"Optional<Date> getBirthdate();",
"@Override\n\tpublic Date convert(String source) {\n\t\tif (StringUtils.isValid(source)) {\n\t\t\tDateFormat dateFormat;\n\t\t\tif (source.indexOf(\":\") != -1) {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t} else {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\t\t}\n\t\t\t//日期转换为严格模式\n\t\t dateFormat.setLenient(false); \n\t try {\n\t\t\t\treturn dateFormat.parse(source);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\treturn null;\n\t}",
"java.lang.String getFoundingDate();",
"public Date getUtilDate(HttpServletRequest request, String name) {\n/* 61 */ String dateStr = ServletRequestUtils.getStringParameter((ServletRequest)request, name, \"\"); try { }\n/* 62 */ catch (ParseException parseException) {} return new Date();\n/* */ }",
"java.lang.String getStartDate();",
"DateConstant createDateConstant();",
"DateFormat getSourceDateFormat();",
"private StringConverter<LocalDate> getDatePickerStringConverter() {\n try {\n return new StringConverter<LocalDate>() {\n // set the wanted pattern (format)\n String pattern = \"yyyy-MM-dd\";\n DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern(pattern);\n\n {\n // set placeholder text for the datePicker\n datePicker.setPromptText(pattern.toLowerCase());\n }\n\n @Override\n public String toString(LocalDate date) {\n if (date != null) {\n // get correctly formatted String\n return dateFormatter.format(date);\n } else {\n return \"\";\n }\n }\n\n @Override\n public LocalDate fromString(String string) {\n if (string != null && !string.isEmpty()) {\n // get correct LocalDate from String format\n return LocalDate.parse(string, dateFormatter);\n } else {\n return null;\n }\n }\n };\n } catch (Exception e) {\n logger.log(Level.SEVERE, e.toString());\n }\n return null;\n }",
"public static Event of(String input) throws DukeException {\n String[] eachWord = input.split(\"/at\");\n checkForEmptyDescription(eachWord);\n checkForEmptyDate(eachWord);\n String dateDescription = eachWord[1];\n String[] dateSplitBySpace = dateDescription.split(\" \");\n String[] dateArr = getDateArr(dateSplitBySpace);\n try {\n return getEvent(eachWord[0], dateSplitBySpace[2], dateArr);\n } catch (NumberFormatException e) {\n throw new DukeException(\"Enter the date for this event in DD/MM/YYYY HHMM format\\nEg.\"\n + Event.inputExample);\n } catch (DateTimeException e) {\n throw new DukeException(\"Invalid date inputed. Please check that the date is correct\\nEg.\"\n + Event.inputExample);\n }\n }",
"@Test(expected = NullPointerException.class)\n public void parseDateCannonicalNullInputTest() throws ParseException {\n String stringToParse = null;\n Format.parseDateCanonical(stringToParse);\n }",
"private static DateFormat getTimestampFormat(ConfigurationObject config) {\r\n // Get timestamp format to be used in the email\r\n String timestampFormatStr = Helper.getPropertyValue(config, TIMESTAMP_FORMAT_KEY, false, false);\r\n\r\n try {\r\n return new SimpleDateFormat((timestampFormatStr == null) ? DEFAULT_TIME_FORMAT : timestampFormatStr);\r\n } catch (IllegalArgumentException e) {\r\n throw new LateDeliverablesTrackerConfigurationException(\"Invaid timestamp format value.\", e);\r\n }\r\n }",
"@TypeConverter\n public static Date toDate(String value) {\n if (value == null) return null;\n\n try {\n return df.parse(value);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }",
"DateCalculator<E> getDateCalculator(String name, String holidayHandlerType);",
"java.lang.String getStartDateYYYY();",
"private DateFormatsConfig getDateFormats()\r\n {\r\n ClasspathPreferencesPersistenceManager manager = new ClasspathPreferencesPersistenceManager();\r\n InternalPreferencesIF preferences = manager.load(MantleConstants.USER_DATE_FORMAT_CONFIG_FILE_TOPIC, null, false);\r\n\r\n DateFormatsConfig config = preferences.getJAXBObject(DateFormatsConfig.class, \"DateFormatConfig\", null);\r\n\r\n return config;\r\n }",
"public Object createObject() {\n final DecimalFormat format = (DecimalFormat) super.createObject();\n if (getParameter(\"pattern\") != null) {\n format.applyPattern((String) getParameter(\"pattern\"));\n }\n if (getParameter(\"localizedPattern\") != null) {\n format.applyLocalizedPattern((String) getParameter(\"localizedPattern\"));\n }\n return format;\n }",
"CurrencyDateCalculator<E> getDefaultCurrencyDateCalculator(String ccy1, String ccy2, SpotLag spotLag);",
"public static String formatDateTime(Literal l) {\n Object val = l.getValue();\n if (val instanceof XSDDateTime) {\n boolean isDate = l.getDatatype().equals(XSDDatatype.XSDdate);\n Date date = ((XSDDateTime) val).asCalendar().getTime();\n return dateFormat(hasTimeZone(l.getLexicalForm()), isDate).format(date);\n } else {\n return null;\n }\n }",
"public String getStartDateString() {\n SimpleDateFormat format = new SimpleDateFormat(DpdInputForm.DATA_FORMAT, Locale.ENGLISH);\n return format.format(new Date(this.startDate));\n }",
"public String getStartDate();",
"Date date(LocalDate date);",
"public static String getCalendarAndThrow(Document document, String name)\n throws IllegalArgumentException, RepositoryException {\n String result;\n ValueImpl v = getValueAndThrow(document, name);\n if (v == null) {\n result = null;\n } else if (v instanceof DateValue) {\n result = ((DateValue) v).toRfc822();\n } else {\n result = v.toFeedXml();\n }\n return result;\n }",
"@Bean(name = \"dateFormatter\")\n public SimpleDateFormat dateFormatter() {\n return new SimpleDateFormat(\"dd/MM/yyyy\");\n }",
"private Date stringToDate(String datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDate d = df.parse(datum);\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (ParseException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"private LocalDate parse(String format) {\r\n\t\tString lista[] = format.split(\"/\"); // DD - MM - YYYY\r\n\t\tint dia = Integer.parseInt(lista[0]);\r\n\t\tint mes = Integer.parseInt(lista[1]);\r\n\t\tint ano = Integer.parseInt(lista[2]);\r\n\t\tLocalDate date = LocalDate.of(ano, mes, dia);\r\n\t\treturn date;\r\n\t}",
"private static LocalDate readDateFromConsole() {\n\t\tboolean validInput = false; \n\t\tLocalDate date = null; \n\t\twhile (! validInput) {\n\t\t\ttry {\n\t\t\t\tOut.print(\" Bitte Datum eingeben (tt.mm.jjjj): \");\n\t\t\t\tdate = readDate();\n\t\t\t\tvalidInput = true; \n\t\t\t} catch (Exception e) {\n\t\t\t\tOut.print(\" Falsche Datumseingabe!\");\n\t\t\t}\n\t\t}\n\t\treturn date; \n\t}",
"DateFormat getDisplayDateFormat();",
"@Override\n\tpublic java.util.Date getValidatedFrom() {\n\t\treturn _dictData.getValidatedFrom();\n\t}",
"public LocalDate getViewDate();",
"public static DateFormatConfig getDateFormat(String toformat)\r\n\t{\r\n\t\tString mName = \"getDateFormat()\";\r\n\t\tDateFormatConfig dateFormat = null;\r\n\t\t// look up in DateFormatRegistry with toformat(dateId) and it returns DateFormatConfig object\r\n\t\tDateFormatRegistry datefrmtRegistry = DateFormatRegistry.getInstance();\r\n\t\ttry\r\n\t\t{\r\n\t\t\tdateFormat = (DateFormatConfig) datefrmtRegistry.lookup(toformat);\r\n\t\t} catch (Exception e)\r\n\t\t{\r\n\t\t\tlogger.cterror(\"CTBAS00110\", e, mName);\r\n\t\t}\r\n\t\treturn dateFormat;\r\n\r\n\t}",
"java.lang.String getDate();",
"String getDate();",
"String getDate();",
"public interface DateFormatting {\n\n LocalDateTime getLDT (String s);\n\n}",
"public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}",
"Date getFechaNacimiento();",
"public void testCompareDateAndString() {\n\t\tString value = \"2012-05-08\";\r\n FormatDateField dateField = new FormatDateField();\r\n\t\tdateField.setPropertyEditor(new DateTimePropertyEditor(DateUtil.datePattern));\r\n\t\tDate date = DateUtil.convertStringToDate(value.toString());\r\n\t\tassertEquals(false, compareDateAndString(dateField.getPropertyEditor(), date, value));\r\n\t\t\r\n\t\t// 2. Date (value = \"2012-05-09\", date = 2012-05-08)\r\n\t\tvalue = \"2012-05-09\";\r\n\t\tassertEquals(true, compareDateAndString(dateField.getPropertyEditor(), date, value));\r\n\t\t\r\n\t\t// 3. DateTime (value = \"2012-05-08T00:00:00\", date = 2012-05-08T00:00:00)\r\n\t\tvalue = \"2012-05-08T00:00:00\";\r\n\t\tdateField.setPropertyEditor(new DateTimePropertyEditor(DateUtil.formatDateTimePattern));\r\n\t\tdate = DateUtil.convertStringToDate(DateUtil.dateTimePattern,value.toString());\r\n dateField.setValue(date);\r\n\t\tassertEquals(false, compareDateAndString(dateField.getPropertyEditor(), date, value));\r\n\t\t\r\n\t\t// 4. DateTime (value = \"2012-05-09T00:00:00\", date = 2012-05-08T00:00:00)\r\n\t\tvalue = \"2012-05-09T00:00:00\";\r\n\t\tassertEquals(true, compareDateAndString(dateField.getPropertyEditor(), date, value));\r\n\t\t\r\n\t\t// 5. value = date = null;\r\n\t\tassertEquals(false, compareDateAndString(dateField.getPropertyEditor(), null, null));\r\n\t\t\r\n\t\t// 6. value = null, date != null\r\n\t\tassertEquals(true, compareDateAndString(dateField.getPropertyEditor(), date, null));\r\n\t\t\r\n\t\t// 7. value != null, date = null\r\n\t\tassertEquals(true, compareDateAndString(dateField.getPropertyEditor(), null, value));\r\n\t\t\r\n\t}",
"public SimpleDateFormat() {\n\t\tthis(getDefaultPattern(), null, null, null, null, true, null);\n\t}",
"Optional<GitHubInstant> date();",
"private static Date toDate(final Object value, final String identifier) throws ParseException {\n if (value == null) {\n return null;\n }\n if (value instanceof Number) {\n return new Date(((Number) value).longValue());\n }\n final String t = (String) value;\n if (t.indexOf('-') < 0) try {\n return new Date(Long.valueOf(t));\n } catch (NumberFormatException e) {\n throw new ParseException(\"Illegal date: \" + value + \" (property:\" + identifier +\")\", e);\n }\n try {\n synchronized (JsonMetadataConstants.DATE_FORMAT) {\n return JsonMetadataConstants.DATE_FORMAT.parse((String) value);\n }\n } catch (java.text.ParseException e) {\n throw new ParseException(\"Illegal date: \" + value + \" (property:\" + identifier +\")\", e);\n }\n }",
"public static String getDate() {\n return annotation != null ? annotation.date() : \"Unknown\";\n }",
"public final Date dateValue() {\n if (calValue != null)\n return calValue.getTime();\n else\n return null;\n }",
"public static String convertDateToStandardFormat(String inComingDateformat, String date)\r\n\t{\r\n\t\tString cmName = \"DateFormatterManaager.convertDateToStandardFormat(String,String)\";\r\n\t\tString returnDate = \"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif (date != null && !date.trim().equals(\"\"))\r\n\t\t\t{\r\n\t\t\t\tif (inComingDateformat != null && !inComingDateformat.trim().equals(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(inComingDateformat);\r\n\t\t\t\t\tDate parsedDate = sdf.parse(date);\r\n\t\t\t\t\tSimpleDateFormat standardsdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\t\t\treturnDate = standardsdf.format(parsedDate);\r\n\t\t\t\t} else\r\n\t\t\t\t{\r\n\t\t\t\t\treturnDate = date;\r\n\t\t\t\t\tlogger.cterror(\"CTBAS00113\", cmName, date);\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tlogger.ctdebug(\"CTBAS00114\", cmName);\r\n\t\t\t}\r\n\t\t} catch (ParseException pe) // just in case any runtime exception occurred just return input datestr as it is\r\n\t\t{\r\n\t\t\treturnDate = date;\r\n\t\t\tlogger.cterror(\"CTBAS00115\", pe, cmName, date, inComingDateformat);\r\n\t\t}\r\n\t\treturn returnDate;\r\n\t}",
"private ARXDate() {\r\n this(\"Default\");\r\n }",
"@NotNull\r\n public String getDate() {\r\n return date;\r\n }",
"java.lang.String getEndDateYYYY();",
"@Override\n public void postConfig() {\n Locale locale = new Locale(localeLanguage, localeCountry);\n try {\n formatter = DateTimeFormatter.ofPattern(dateFormat, locale);\n } catch (IllegalArgumentException e) {\n throw new PropertyException(e,\"\",\"dateFormat\",\"dateFormat could not be parsed by DateTimeFormatter\");\n }\n }",
"@Test\n public void fieldDate() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // If we want the text in the document always to display the correct date, we can use a DATE field.\n // Below are three types of cultural calendars that a DATE field can use to display a date.\n // 1 - Islamic Lunar Calendar:\n FieldDate field = (FieldDate) builder.insertField(FieldType.FIELD_DATE, true);\n field.setUseLunarCalendar(true);\n Assert.assertEquals(\" DATE \\\\h\", field.getFieldCode());\n builder.writeln();\n\n // 2 - Umm al-Qura calendar:\n field = (FieldDate) builder.insertField(FieldType.FIELD_DATE, true);\n field.setUseUmAlQuraCalendar(true);\n Assert.assertEquals(\" DATE \\\\u\", field.getFieldCode());\n builder.writeln();\n\n // 3 - Indian National Calendar:\n field = (FieldDate) builder.insertField(FieldType.FIELD_DATE, true);\n field.setUseSakaEraCalendar(true);\n Assert.assertEquals(\" DATE \\\\s\", field.getFieldCode());\n builder.writeln();\n\n // Insert a DATE field and set its calendar type to the one last used by the host application.\n // In Microsoft Word, the type will be the most recently used in the Insert -> Text -> Date and Time dialog box.\n field = (FieldDate) builder.insertField(FieldType.FIELD_DATE, true);\n field.setUseLastFormat(true);\n Assert.assertEquals(\" DATE \\\\l\", field.getFieldCode());\n builder.writeln();\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.DATE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.DATE.docx\");\n\n field = (FieldDate) doc.getRange().getFields().get(0);\n\n Assert.assertEquals(FieldType.FIELD_DATE, field.getType());\n Assert.assertTrue(field.getUseLunarCalendar());\n Assert.assertEquals(\" DATE \\\\h\", field.getFieldCode());\n Assert.assertTrue(doc.getRange().getFields().get(0).getResult().matches(\"\\\\d{1,2}[/]\\\\d{1,2}[/]\\\\d{4}\"));\n\n field = (FieldDate) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_DATE, \" DATE \\\\u\", LocalDate.now().format(DateTimeFormatter.ofPattern(\"M/d/YYYY\")), field);\n Assert.assertTrue(field.getUseUmAlQuraCalendar());\n\n field = (FieldDate) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_DATE, \" DATE \\\\s\", LocalDate.now().format(DateTimeFormatter.ofPattern(\"M/d/YYYY\")), field);\n Assert.assertTrue(field.getUseSakaEraCalendar());\n\n field = (FieldDate) doc.getRange().getFields().get(3);\n\n TestUtil.verifyField(FieldType.FIELD_DATE, \" DATE \\\\l\", LocalDate.now().format(DateTimeFormatter.ofPattern(\"M/d/YYYY\")), field);\n Assert.assertTrue(field.getUseLastFormat());\n }",
"public Date getDate(String name, String format) {\n Object value = get(name);\n if (value instanceof Date) {\n return (Date)value;\n }\n \n if (value != null) {\n try {\n return new SimpleDateFormat(format).parse(value.toString());\n } catch (ParseException e) {\n // ignore\n }\n }\n return null;\n }",
"public Date getValidFrom();",
"@FXML\r\n\tString getDate() {\r\n\t\t\tLocalDate creditCardExpiryDate = dpCreditCardExpiryDate.getValue();\r\n\t\t\tDateTimeFormatter formattedExpiryDate = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\r\n\t\t\treturn formattedExpiryDate.format(creditCardExpiryDate);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Test\n public void nonParsableDate() throws ServletException, IOException {\n final String finalDate = \"asd\";\n final String requestId = \"1\";\n initialize(finalDate, requestId);\n servlet.doPost(request, response);\n assertEquals(\"Invalid date!\", ((Map<String, Object>) request.getAttribute(\"viewModel\")).get(\"errorMessage\"));\n }",
"protected String getDateString() {\n String result = null;\n if (!suppressDate) {\n result = currentDateStr;\n }\n return result;\n }",
"public interface Format {\n public static final String PATTERN_DATE = \"yyyy-MM-dd\";\n public static final String PATTERN_DATE_YEAR = \"yyyy\";\n}",
"private static String getDate() {\n Scanner input = new Scanner(System.in);\n\n String monthName = input.next();\n int month = monthNum(monthName);\n int day = input.nextInt();\n String date = \"'2010-\" + month + \"-\" + day + \"'\";\n return date;\n }",
"DateTimeStruct getDateTimeStruct();",
"public DateInputVerifier(String df)\n {\n super();\n sdf = new SimpleDateFormat(df);\n errmsg = new String();\n dfstr = df;\n }",
"XMLGregorianCalendar now() throws DatatypeConfigurationException {\n GregorianCalendar date = new GregorianCalendar();\n DatatypeFactory dtf = DatatypeFactory.newInstance();\n return dtf.newXMLGregorianCalendar(date);\n }",
"InputValueDefinition createInputValueDefinition();",
"LocalDate getDate();",
"public T caseDate(Date object) {\n\t\treturn null;\n\t}",
"protected static SimpleDateFormat dateFormat() {\n return dateFormat(true, false);\n }",
"Date getDateTimeField();",
"public static Date getCurrentDate(String dateType)\r\n\t{\r\n\t\tDate d = null;\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\ttry\r\n\t\t{\r\n\t\t\td = new Date(dateType, c.get(Calendar.YEAR),\r\n\t\t\t\t\tc.get(Calendar.MONTH) + 1, c.get(Calendar.DAY_OF_MONTH));\r\n\t\t} catch (BogusDataException e2)\r\n\t\t{\r\n\t\t\t// This should never happen since we're setting the m/d/y\r\n\t\t\tSystem.err.println(e2.toString());\r\n\t\t\te2.printStackTrace();\r\n\t\t}\r\n\t\treturn d;\r\n\t}",
"public static final String getDate(Date aDate,String formate) {\r\n SimpleDateFormat df = null;\r\n String returnValue = \"\";\r\n\r\n if (aDate != null) {\r\n df = new SimpleDateFormat(formate);\r\n returnValue = df.format(aDate);\r\n }\r\n\r\n return (returnValue);\r\n }",
"public LocalDate getDate(String key) {\n if (!jsonData.has(key))\n return null;\n try {\n String date = jsonData.getString(key);\n return LocalDate.parse(date, AppConst.DATE_FORMATTER);\n } catch (Exception ex) {\n return null;\n }\n }",
"@Override\n\tpublic String getDateLiteral(String isoDate) {\n\t\tString normalLiteral = super.getDateLiteral(isoDate);\n\n\t\tif (isDateOnly(isoDate)) {\n\t\t\tStringBuffer val = new StringBuffer();\n\t\t\tval.append(\"DATE(\");\n\t\t\tval.append(normalLiteral);\n\t\t\tval.append(')');\n\t\t\treturn val.toString();\n\t\t} else if (isTimeOnly(isoDate)) {\n\t\t\tStringBuffer val = new StringBuffer();\n\t\t\tval.append(\"TIME(\");\n\t\t\tval.append(normalLiteral);\n\t\t\tval.append(')');\n\t\t\treturn val.toString();\n\t\t} else if (isDateTime(isoDate)) {\n\t\t\tStringBuffer val = new StringBuffer();\n\t\t\tval.append(\"TIMESTAMP(\");\n\t\t\tval.append(normalLiteral);\n\t\t\tval.append(')');\n\t\t\treturn val.toString();\n\t\t} else {\n\t\t\treturn \"UNSUPPORTED:\" + isoDate;\n\t\t}\n\t}",
"private ARXDate(String formatString, Locale locale) {\r\n if (formatString == null || formatString.equals(\"Default\")) {\r\n this.string = \"dd.MM.yyyy\";\r\n this.format = new SimpleDateFormat(string, locale);\r\n this.locale = locale;\r\n } else {\r\n this.format = new SimpleDateFormat(formatString, locale);\r\n this.string = formatString;\r\n this.locale = locale;\r\n }\r\n }",
"private static LocalDate readDateFromArguments(String dayString, String monthString, String yearString) {\n\t\tint day = 0, month = 0, year = 0 ;\n\t\ttry{\n\t\t\tday = Integer.parseInt(dayString);\n\t\t\tmonth = Integer.parseInt(monthString);\n\t\t\tyear = Integer.parseInt(yearString);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"The dates should be in the format DD MM YY in integer numbers\");\n\t\t\texitArgumentError(); \n\t\t}\n\t\t\t\n\t\treturn LocalDate.of(year,month,day);\n\n\t}",
"public DateTimeInterpreter getDateTimeInterpreter() {\n return config.drawingConfig.getDateTimeInterpreter(getContext(), config);\n }",
"java.lang.String getToDate();",
"String getEndDateParam(String dateString);",
"public void setInputDate(Date inputDate) {\r\n this.inputDate = inputDate;\r\n }",
"private Date getFrom(RuleTypes.HistoricRequirements ph) {\n Calendar date = new GregorianCalendar();\n date.set(Calendar.HOUR_OF_DAY, 0);\n date.set(Calendar.MINUTE, 0);\n date.set(Calendar.SECOND, 0);\n date.set(Calendar.MILLISECOND, 0);\n int today;\n\n switch(ph) {\n case TODAY:\n return date.getTime();\n case YESTERDAY:\n date.add(Calendar.DAY_OF_MONTH, -1);\n return date.getTime();\n case THIS_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.MONDAY);\n return date.getTime();\n case LAST_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.MONDAY);\n date.add(Calendar.DAY_OF_MONTH, -7);\n return date.getTime();\n case THIS_MONTH:\n date.set(Calendar.DAY_OF_MONTH, date.getActualMinimum(Calendar.DAY_OF_MONTH));\n return date.getTime();\n case LAST_MONTH:\n date.set(Calendar.DAY_OF_MONTH, date.getActualMinimum(Calendar.DAY_OF_MONTH));\n date.add(Calendar.MONTH, -1);\n return date.getTime();\n case T12_HRS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -12);\n return date.getTime();\n case T24_HRS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -24);\n return date.getTime();\n case T2_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -48);\n return date.getTime();\n case T3_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -72);\n return date.getTime();\n case T4_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -96);\n return date.getTime();\n case T5_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -120);\n return date.getTime();\n case T6_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -144);\n return date.getTime();\n case T7_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -168);\n return date.getTime();\n }\n return null;\n }",
"Date getStartDate();",
"Date getStartDate();",
"Date getStartDate();",
"public Date parse (String dateAsString , String dateFormat) throws Exception ;"
] | [
"0.5316213",
"0.52554023",
"0.51532364",
"0.5043379",
"0.50409484",
"0.5011582",
"0.48998123",
"0.48351508",
"0.47874722",
"0.47866017",
"0.47654688",
"0.47608027",
"0.4701695",
"0.46358642",
"0.46224624",
"0.46183383",
"0.46119943",
"0.45936853",
"0.45885542",
"0.45822054",
"0.45764098",
"0.45681056",
"0.45625693",
"0.4556405",
"0.45544648",
"0.45409662",
"0.45399055",
"0.45298555",
"0.45296597",
"0.45201162",
"0.45145905",
"0.45082942",
"0.4506881",
"0.45064154",
"0.4454563",
"0.44395748",
"0.44381127",
"0.44376278",
"0.44285998",
"0.44278622",
"0.44143692",
"0.43953103",
"0.4374629",
"0.43666863",
"0.43593124",
"0.43589264",
"0.4352189",
"0.43518236",
"0.43303263",
"0.432569",
"0.4316682",
"0.4316384",
"0.43150443",
"0.4306116",
"0.4306116",
"0.42981434",
"0.4295653",
"0.42930534",
"0.4287542",
"0.42867678",
"0.4286658",
"0.42855442",
"0.42848727",
"0.42800775",
"0.42754155",
"0.42674696",
"0.4266609",
"0.42640224",
"0.42639968",
"0.4260197",
"0.42480847",
"0.42454368",
"0.42416954",
"0.42409152",
"0.42407292",
"0.4232389",
"0.42212248",
"0.42086276",
"0.42064303",
"0.42022565",
"0.41975123",
"0.41933766",
"0.41907427",
"0.41906542",
"0.41864103",
"0.4186271",
"0.41814768",
"0.417933",
"0.41771916",
"0.41763365",
"0.4171172",
"0.4169022",
"0.41632366",
"0.4150765",
"0.4150339",
"0.4149313",
"0.41490752",
"0.41490752",
"0.41490752",
"0.41479665"
] | 0.5273592 | 1 |
Returns a URI input form for the given configuration. May return null if the configuration is invalid (e.g., the passed object is a literal). | public static FURIStatementInput uriInput(String id, Resource s, URI p,
Value o, boolean deletable)
{
return uriInput(id,s,p,o,deletable,null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getFormUri();",
"com.google.protobuf.ByteString\n getFormUriBytes();",
"public static String substitueForURL(EditConfigurationVTwo configuration, MultiValueEditSubmission submission){\n \n List<String> entToReturnTo = new ArrayList<String>(1);\n entToReturnTo.add(configuration.getEntityToReturnTo());\n \n EditN3GeneratorVTwo n3Subber = configuration.getN3Generator();\n // Substitute in URIs from the submission\n entToReturnTo = n3Subber.subInMultiUris(submission.getUrisFromForm(), entToReturnTo); \n \n // Substitute in URIs from the scope of the EditConfiguration \n entToReturnTo = n3Subber.subInMultiUris(configuration.getUrisInScope(), entToReturnTo); \n \n //The problem is that subInURI will add < and > around URIs for the N3 syntax.\n //for the URL to return to, replace < and > from URI additions. \n return entToReturnTo.get(0).trim().replaceAll(\"<\",\"\").replaceAll(\">\",\"\"); \n }",
"private void setUrisAndLiteralsOnForm(EditConfigurationVTwo editConfiguration, VitroRequest vreq) {\n \tList<String> urisOnForm = new ArrayList<String>();\n \tList<String> literalsOnForm = new ArrayList<String>();\n \t//The URI of the node that defines the concept\n \turisOnForm.add(\"conceptNode\");\n \teditConfiguration.setUrisOnform(urisOnForm);\n \t//In case the user defines a new concept, will add a concept label\n \tliteralsOnForm.add(\"conceptLabel\");\n \teditConfiguration.setLiteralsOnForm(literalsOnForm);\n }",
"com.google.cloud.documentai.v1beta2.InputConfig getInputConfig();",
"java.lang.String getUri();",
"java.lang.String getUri();",
"static Path getInputPath(Configuration conf) {\n String in = conf.get(MRUtils.INPUT_PATH);\n if (in == null) {\n return null;\n }\n return new Path(in);\n }",
"URI uri();",
"String getUri();",
"URI getUri();",
"private URI getUri(final MMIContext context, final PrepareRequest request)\n throws URISyntaxException, MMIMessageException {\n final ContentURLType contentUrlType = request.getContentURL();\n if (contentUrlType != null) {\n final String href = contentUrlType.getHref();\n if (href != null) {\n return new URI(href);\n }\n }\n final AnyComplexType content = request.getContent();\n if (content != null) {\n return createTemporaryVoiceXmlDocumentUri(context, content);\n }\n return context.getContentURL();\n }",
"public String getUri();",
"String path(Configuration configuration);",
"default FormValidation checkURI(String value) {\r\n if (value.length() == 0) {\r\n return FormValidation\r\n .error(\"Please set an URL for the staging repository!\");\r\n }\r\n return FormValidation.ok();\r\n }",
"String getUri( );",
"FullUriTemplateString baseUri();",
"public URI getUri(String iden) {\r\n\t\tURI rtn = null;\r\n\t\tString url = null;\r\n\t\tStringBuilder strRtn = new StringBuilder(uriBuilder);\r\n\t\tif(isUri(iden)) {\r\n\t\t\tSystem.out.println(\"isUri\");\r\n\t\t\treturn valueFactory.createURI(iden);\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\turl = URLEncoder.encode(iden,\"utf-8\");\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tstrRtn.append(url);\r\n\t\t\trtn = valueFactory.createURI(strRtn.toString());\r\n\t\t\treturn rtn;\r\n\t\t}\r\n\t}",
"com.google.cloud.documentai.v1beta2.InputConfigOrBuilder getInputConfigOrBuilder();",
"private Uri computeUri(Context param1) {\n }",
"String getT_modelUri();",
"abstract String getUri();",
"public URI getRequestURI();",
"public Optional<String> getUri() {\n return Optional.ofNullable(uri);\n }",
"private String makeUrlFromInput(String bookQueryText) {\n\n // Replace white spaces with a + symbol to make it compatible to be used in the JSON\n // request URL\n bookQueryText.replaceAll(\" \", \"+\");\n\n StringBuilder urlBuilder = new StringBuilder();\n urlBuilder = urlBuilder.append(GBOOKS_REQUEST_URL_PART1)\n .append(bookQueryText)\n .append(GBOOKS_REQUEST_URL_PART2);\n\n // First encode into UTF-8, then back to a form easily processed by the API\n // This is mainly to avoid issues with spaces and other special characters in the URL\n String finalUrl = Uri.encode(urlBuilder.toString()).replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%3A\", \":\")\n .replaceAll(\"\\\\%2F\", \"/\")\n .replaceAll(\"\\\\%3F\", \"?\")\n .replaceAll(\"\\\\%26\", \"&\")\n .replaceAll(\"\\\\%3D\", \"=\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%20\", \"\\\\+\")\n .replaceAll(\"\\\\%7E\", \"~\");\n return finalUrl;\n }",
"public EngineURL getEditDocumentTemplateBuildUrl(Object biobject, IEngUserProfile profile)\r\n\tthrows InvalidOperationRequest {\r\n\t\tlogger.debug(\"IN\");\r\n\t\tBIObject obj = null;\r\n\t\ttry {\r\n\t\t\tobj = (BIObject) biobject;\r\n\t\t} catch (ClassCastException cce) {\r\n\t\t\tlogger.error(\"The input object is not a BIObject type\", cce);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tEngine engine = obj.getEngine();\r\n\t\tString url = engine.getUrl();\r\n\t\tHashMap parameters = new HashMap();\r\n\t\tString documentId = obj.getId().toString();\r\n\t\tparameters.put(\"document\", documentId);\r\n\t\tparameters.put(\"isSpagoBIDev\", \"true\");\r\n\t\tapplyLocale(parameters);\r\n\t\tapplySecurity(parameters, profile);\r\n\t\tEngineURL engineURL = new EngineURL(url, parameters);\r\n\t\tlogger.debug(\"OUT\");\r\n\t\treturn engineURL;\r\n\t}",
"private UriRef getRenderingSpecification(Resource renderletDef) {\n\t\tIterator<Triple> renderSpecIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderingSpecification, null);\n\t\tif (renderSpecIter.hasNext()) {\n\t\t\treturn (UriRef) renderSpecIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}",
"interface UriBuilderFactory {\n UriBuilder fromLink(Link link);\n\n UriBuilder fromPath(String s);\n\n UriBuilder fromUri(URI uri);\n}",
"URI createURI();",
"String getURI();",
"String getURI();",
"String getURI();",
"com.google.cloud.dialogflow.v2.InputConfig getInputConfig();",
"@Value.Default\n public String getUri() {\n\treturn \"\";\n }",
"public abstract URI getModelURI();",
"public static URL getURL(String cfgFilename) {\n File file = new File(cfgFilename);\n try {\n return file.toURI().toURL();\n } catch(MalformedURLException ex) {\n LOGGER.error(\"config failed, configFilename = \" + cfgFilename, ex);\n return null;\n }\n }",
"private URI getUri(final MMIContext context, final StartRequest request)\n throws URISyntaxException, MMIMessageException {\n final ContentURLType contentUrlType = request.getContentURL();\n if (contentUrlType != null) {\n final String href = contentUrlType.getHref();\n if (href != null && !href.isEmpty()) {\n return new URI(href);\n }\n }\n final AnyComplexType content = request.getContent();\n if (content != null) {\n return createTemporaryVoiceXmlDocumentUri(context, content);\n }\n return context.getContentURL();\n }",
"public static OfbizUrlBuilder from(HttpServletRequest request) throws GenericEntityException, WebAppConfigurationException {\n Assert.notNull(\"request\", request);\n OfbizUrlBuilder builder = (OfbizUrlBuilder) request.getAttribute(\"_OFBIZ_URL_BUILDER_\");\n if (builder == null) {\n WebSiteProperties webSiteProps = WebSiteProperties.from(request);\n URL url = ConfigXMLReader.getControllerConfigURL(request.getServletContext());\n ControllerConfig config = (url != null) ? ConfigXMLReader.getControllerConfig(url, true) : null; // SCIPIO: 2017-11-18: controller now fully optional (2 change)\n // SCIPIO: Use more reliable call\n //String servletPath = (String) request.getAttribute(\"_CONTROL_PATH_\");\n String servletPath = RequestHandler.getControlPath(request);\n String contextPath = request.getContextPath();\n builder = new OfbizUrlBuilder(config, webSiteProps, servletPath, contextPath); // SCIPIO\n request.setAttribute(\"_OFBIZ_URL_BUILDER_\", builder);\n }\n return builder;\n }",
"@NotNull URI getURI();",
"String renderURL(String path, Map<String, String[]> parameters, URLFormat wantedURLFormat) throws IllegalArgumentException;",
"@Nonnull\n @Nonempty\n public static String getURI (@Nonnull final HttpServletRequest aHttpRequest)\n {\n ValueEnforcer.notNull (aHttpRequest, \"HttpRequest\");\n\n final String sReqUrl = getRequestURI (aHttpRequest);\n final String sQueryString = aHttpRequest.getQueryString (); // d=789&x=y\n if (StringHelper.hasText (sQueryString))\n return sReqUrl + URLUtils.QUESTIONMARK + sQueryString;\n return sReqUrl;\n }",
"private String resolveAbsoluteURL(String defaultUrlContext, String urlFromConfig, String tenantDomain) throws IdentityProviderManagementServerException {\n\n if (!IdentityTenantUtil.isTenantQualifiedUrlsEnabled() && StringUtils.isNotBlank(urlFromConfig)) {\n if (log.isDebugEnabled()) {\n log.debug(\"Resolved URL:\" + urlFromConfig + \" from file configuration for default url context: \" +\n defaultUrlContext);\n }\n return urlFromConfig;\n }\n\n try {\n ServiceURLBuilder serviceURLBuilder = ServiceURLBuilder.create().setTenant(tenantDomain);\n return serviceURLBuilder.addPath(defaultUrlContext).build().getAbsolutePublicURL();\n } catch (URLBuilderException e) {\n throw IdentityProviderManagementException.error(IdentityProviderManagementServerException.class,\n \"Error while building URL: \" + defaultUrlContext, e);\n }\n }",
"String getExternalFeatureModelURI();",
"public String formURL(){\n String target = feedURL + \"?s=\" + marketInformation.getTickers().stream().reduce( (a, b) -> a + \",\" + b).get();\n // p0 is just the prices ordered the same as the request\n target += \"&f=p0\";\n return target;\n }",
"@Override\r\n public String getURI() {\r\n if (uriString == null) {\r\n uriString = createURI();\r\n }\r\n return uriString;\r\n }",
"public abstract String toFORMParam();",
"public static String getUriValue() {\n\t\treturn uriValue;\n\t}",
"@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}",
"protected String toExternalForm(URL paramURL) {\n/* 483 */ int i = paramURL.getProtocol().length() + 1;\n/* 484 */ if (paramURL.getAuthority() != null && paramURL.getAuthority().length() > 0)\n/* 485 */ i += 2 + paramURL.getAuthority().length(); \n/* 486 */ if (paramURL.getPath() != null) {\n/* 487 */ i += paramURL.getPath().length();\n/* */ }\n/* 489 */ if (paramURL.getQuery() != null) {\n/* 490 */ i += 1 + paramURL.getQuery().length();\n/* */ }\n/* 492 */ if (paramURL.getRef() != null) {\n/* 493 */ i += 1 + paramURL.getRef().length();\n/* */ }\n/* 495 */ StringBuffer stringBuffer = new StringBuffer(i);\n/* 496 */ stringBuffer.append(paramURL.getProtocol());\n/* 497 */ stringBuffer.append(\":\");\n/* 498 */ if (paramURL.getAuthority() != null && paramURL.getAuthority().length() > 0) {\n/* 499 */ stringBuffer.append(\"//\");\n/* 500 */ stringBuffer.append(paramURL.getAuthority());\n/* */ } \n/* 502 */ if (paramURL.getPath() != null) {\n/* 503 */ stringBuffer.append(paramURL.getPath());\n/* */ }\n/* 505 */ if (paramURL.getQuery() != null) {\n/* 506 */ stringBuffer.append('?');\n/* 507 */ stringBuffer.append(paramURL.getQuery());\n/* */ } \n/* 509 */ if (paramURL.getRef() != null) {\n/* 510 */ stringBuffer.append(\"#\");\n/* 511 */ stringBuffer.append(paramURL.getRef());\n/* */ } \n/* 513 */ return stringBuffer.toString();\n/* */ }",
"@Override\n\tpublic void fromConfig(ConfigurationSection config)\n\t\t\tthrows InvalidConfigurationException {\n\t\t\t\n\t\tif (!config.contains(\"type\") || !config.getString(\"type\").equals(\"arrr\")) {\n\t\t\tthrow new InvalidConfigurationException();\n\t\t}\n\t\t\n\t\tthis.desc = config.getString(\"description\", \"Arrive at the location\");\n\t\tthis.targetRange = config.getDouble(\"range\", 1.0);\n\t\tthis.destination = ((LocationState) config.get(\"destination\")).getLocation();\n\t\t\n\t}",
"public InputParameterModel createHypermediaURIs(InputParameterModel oInputParameter)\n {\n\n oInputParameter.getLinkList().add(new Link(String.format(\"%s%s\",oApplicationUri.getBaseUri(),oApplicationUri.getPath()),\"Update again InputParameter\",\"PUT\",\"Sibling\"));\n oInputParameter.getLinkList().add(new Link(String.format(\"%s%s\",oApplicationUri.getBaseUri(),oApplicationUri.getPath()),\"GET the updated InputParameter\",\"GET\",\"Sibling\"));\n oInputParameter.getLinkList().add(new Link(String.format(\"%s%s\",oApplicationUri.getBaseUri(),oApplicationUri.getPath()),\"DELETE the updated InputParameter\",\"DELETE\",\"Sibling\"));\n\n\n String oRelativePath;\n //add the child hypermedia links POST, GETL\n\n oRelativePath = String.format(\"%s/%s\",\"multiInputParameter\",oApplicationUri.getPath());\n\n oInputParameter.getLinkList().add(new Link(String.format(\"%s%s/%s\",oApplicationUri.getBaseUri(),oRelativePath,\"InputParameter\"),\"Create a new InputParameter for this InputParameter\", \"POST\", \"Child\"));\n oInputParameter.getLinkList().add(new Link(String.format(\"%s%s/%s\",oApplicationUri.getBaseUri(),oRelativePath,\"InputParameter\"),\"GET all the InputParameter of this InputParameter\", \"GET\", \"Child\"));\n\n\n //add the parent's hypermedia links POST, GETL\n //find last index of \"/\" in order to cut off to get the parent URI appropriately\n int iLastSlashIndex = String.format(\"%s%s\",oApplicationUri.getBaseUri(),oApplicationUri.getPath()).lastIndexOf(\"/\");\n oInputParameter.getLinkList().add(new Link(String.format(\"%s%s\",oApplicationUri.getBaseUri(),oApplicationUri.getPath()).substring(0, iLastSlashIndex),\"Create new InputParameter\",\"POST\",\"Parent\"));\n oInputParameter.getLinkList().add(new Link(String.format(\"%s%s\",oApplicationUri.getBaseUri(),oApplicationUri.getPath()).substring(0, iLastSlashIndex),\"Read all InputParameter of this InputParameter\",\"GET\",\"Parent\"));\n\n return oInputParameter;\n }",
"public org.apache.axis2.databinding.types.URI getAnyURI() {\n return localAnyURI;\n }",
"private String getLauncherUrlFromObjectName(String objectName) {\n if (objectName != null) {\n return objectName.replace(Constants.BPG_APP_TYPE_LAUNCHER, Constants.LAUNCHER_URL_PREFIX) +\n \".\" +\n rootDomainName;\n }\n\n throw new IllegalArgumentException(\"Null Object name cannot be processed.\");\n }",
"public Map<String, ?> toUri() {\n\t\treturn null;\n\t}",
"public EngineURL getNewDocumentTemplateBuildUrl(Object biobject, IEngUserProfile profile)\r\n\tthrows InvalidOperationRequest {\r\n\t\tlogger.debug(\"IN\");\r\n\t\tBIObject obj = null;\r\n\t\ttry {\r\n\t\t\tobj = (BIObject) biobject;\r\n\t\t} catch (ClassCastException cce) {\r\n\t\t\tlogger.error(\"The input object is not a BIObject type\", cce);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tEngine engine = obj.getEngine();\r\n\t\tString url = engine.getUrl();\r\n\t\tHashMap parameters = new HashMap();\r\n\t\tString documentId = obj.getId().toString();\r\n\t\tparameters.put(\"document\", documentId);\r\n\t\tparameters.put(\"isSpagoBIDev\", \"true\");\r\n\t\tparameters.put(\"isNewDocument\", \"true\");\r\n\t\tapplyLocale(parameters);\r\n\t\tapplySecurity(parameters, profile);\r\n\t\tEngineURL engineURL = new EngineURL(url, parameters);\r\n\t\tlogger.debug(\"OUT\");\r\n\t\treturn engineURL;\r\n\t}",
"public InputParameterModel putInputParameter()\n {\n\n return createHypermediaURIs(oSQLITEController.putInputParameter( oInputParameter));\n }",
"@Override\n public URI toUri() {\n return null;\n }",
"@Override\n protected String getAccessTokenUrl(final JsonNode inputOAuthConfiguration) {\n return TOKEN_URL;\n }",
"public URI toAnyURI(\n ){\n return toIRI();\n }",
"public String getURL() { return (String)get(\"RMShapeURL\"); }",
"public static URIElement buildURIElement(String uri) throws AmazonException{\r\n\t\tint questionIndex = uri.indexOf('?');\r\n\t\tif(questionIndex > 0){\r\n\t\t\turi = uri.substring(0, questionIndex);\r\n\t\t}\r\n\t\tString[] uriElements = uri.split(\"/\");\r\n\t\tif(uriElements.length < 4){\r\n\t\t\tthrow new AmazonException(\"InCompatible URI: \" + uri);\r\n\t\t}\r\n\t\tString context = uriElements[1];\r\n\t\tString module = uriElements[2];\r\n\t\tString command = uriElements[3];\r\n\t\tString method = \"execute\";\r\n\t\tif(uriElements.length == 5 ){\r\n\t\t\tif(uriElements[4] != null || !uriElements[4].isEmpty()){\r\n\t\t\t\tmethod = uriElements[4];\r\n\t\t\t}\r\n\t\t}\r\n\t\tint dotIndex = method.indexOf('.');\r\n\t\tif(dotIndex > 0){\r\n\t\t\tmethod = method.substring(0, dotIndex);\r\n\t\t}\r\n\t\t\r\n\t\treturn new URIElement(context, module, command, method);\r\n\t}",
"public static String encodedURI(NamedObject namedObject) {\r\n\t\tString result = null;\r\n\t\tif (namedObject != null) {\r\n\t\t\treturn encodedURI(namedObject.getURI(), namedObject.getPrefixedURI());\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private static URI GetEndpoint(String accountName) throws URISyntaxException {\n String endpoint = EndpointTemplate.replace(\"{account-name}\", accountName);\n return new URI(endpoint);\n }",
"public String getURIDefinition(String prefix) {\n\t\treturn prefixToURIMap.get(prefix);\n\t}",
"java.lang.String getResourceUri();",
"@Override\n public final InputStream dereference(String uri, String contentType) throws IOException {\n if(uri==null){\n return null;\n }\n UriRef reference = new UriRef(uri);\n StringBuilder query = new StringBuilder();\n query.append(\"CONSTRUCT { \");\n query.append(reference);\n query.append(\" ?p ?o } WHERE { \");\n query.append(reference);\n query.append(\" ?p ?o }\");\n\n //String format = SupportedFormat.RDF_XML;\n return SparqlEndpointUtils.sendSparqlRequest(getAccessUri(),query.toString(),contentType);\n }",
"com.google.cloud.dialogflow.v2.InputConfigOrBuilder getInputConfigOrBuilder();",
"public abstract String toURLParam();",
"protected UriComponentsBuilder getUriComponentsBuilder(String sbUrl) {\n\t\tUriComponentsBuilder uriBuilder = UriComponentsBuilder.fromUriString(sbUrl);\n\t\tif (swaggerUiConfig.isDisplayQueryParams() && StringUtils.isNotEmpty(swaggerUiConfig.getUrl())) {\n\t\t\tswaggerUiConfig.getConfigParameters().entrySet().stream()\n\t\t\t\t\t.filter(entry -> !SwaggerUiConfigProperties.CONFIG_URL_PROPERTY.equals(entry.getKey()))\n\t\t\t\t\t.filter(entry -> !entry.getKey().startsWith(SwaggerUiConfigProperties.URLS_PROPERTY))\n\t\t\t\t\t.filter(entry -> StringUtils.isNotEmpty((String) entry.getValue()))\n\t\t\t\t\t.forEach(entry -> uriBuilder.queryParam(entry.getKey(), entry.getValue()));\n\t\t} else if (swaggerUiConfig.isDisplayQueryParamsWithoutOauth2() && StringUtils.isNotEmpty(swaggerUiConfig.getUrl())) {\n\t\t\tswaggerUiConfig.getConfigParameters().entrySet().stream()\n\t\t\t\t\t.filter(entry -> !SwaggerUiConfigProperties.CONFIG_URL_PROPERTY.equals(entry.getKey()))\n\t\t\t\t\t.filter(entry -> !SwaggerUiConfigProperties.OAUTH2_REDIRECT_URL_PROPERTY.equals(entry.getKey()))\n\t\t\t\t\t.filter(entry -> !entry.getKey().startsWith(SwaggerUiConfigProperties.URLS_PROPERTY))\n\t\t\t\t\t.filter(entry -> StringUtils.isNotEmpty((String) entry.getValue()))\n\t\t\t\t\t.forEach(entry -> uriBuilder.queryParam(entry.getKey(), entry.getValue()));\n\t\t}\n\t\telse {\n\t\t\turiBuilder.queryParam(SwaggerUiConfigProperties.CONFIG_URL_PROPERTY, swaggerUiConfig.getConfigUrl());\n\t\t\tif (StringUtils.isNotEmpty(swaggerUiConfig.getLayout()))\n\t\t\t\turiBuilder.queryParam(SwaggerUiConfigProperties.LAYOUT_PROPERTY, swaggerUiConfig.getLayout());\n\t\t\tif (StringUtils.isNotEmpty(swaggerUiConfig.getFilter()))\n\t\t\t\turiBuilder.queryParam(SwaggerUiConfigProperties.FILTER_PROPERTY, swaggerUiConfig.getFilter());\n\t\t}\n\t\treturn uriBuilder;\n\t}",
"private Object extractParameterFromUrl(MethodParameterContext context)\n\t{\n\t\tMap<String, String> parameters = context.getPathParameters();\n\t\tIterator<String> paramIterator = parameters.values().iterator();\n\t\tList<MethodParameter<?>> methodParameters = ownerMethod.getMethodParameters();\n\n\t\tfor (int i = 0; i < paramIndex; i++)\n\t\t{\n\t\t\tMethodParameter<?> parameter = methodParameters.get(i);\n\n\t\t\tif(parameter.getAnnotationParam() == null)\n\t\t\t\tparamIterator.next();\n\t\t}\n\n\t\tif(paramIterator.hasNext())\n\t\t{\n\t\t\treturn AbstractRestResource.toObject(parameterClass, paramIterator.next(), supplier);\n\t\t}\n\n\t\treturn null;\n\t}",
"public Object getObjectInstance(\n Object object, Name name, Context context, Hashtable environment) {\n if (object instanceof Reference) {\n Reference reference = (Reference) object;\n RefAddr url = reference.get(URL_PARAMETER);\n if (url != null && url.getContent() != null) {\n try {\n return getRepository(url.getContent().toString());\n } catch (Exception e) {\n return null;\n }\n }\n }\n return null;\n }",
"protected UriComponentsBuilder getUriComponentsBuilder(String sbUrl) {\n\t\tUriComponentsBuilder uriBuilder = UriComponentsBuilder.fromUriString(sbUrl);\n\t\tif ( //\n\t\t\topenApiUiConfig.isDisplayQueryParams() && StringUtils.isNotEmpty(openApiUiConfigParameters.getUrl())\n\t\t){\n\t\t\topenApiUiConfigParameters.getConfigParameters().entrySet().stream()\n\t\t\t.filter(entry -> !OpenApiUiConfigParameters.CONFIG_URL_PROPERTY.equals(entry.getKey()))\n\t\t\t.filter(entry -> !entry.getKey().startsWith(OpenApiUiConfigParameters.URLS_PROPERTY))\n\t\t\t.filter(entry -> StringUtils.isNotEmpty((String) entry.getValue()))\n\t\t\t.forEach(entry -> uriBuilder.queryParam(entry.getKey(), entry.getValue()));\n\t\t} else if ( //\n\t\t\topenApiUiConfig.isDisplayQueryParamsWithoutOauth2() && StringUtils.isNotEmpty(openApiUiConfigParameters.getUrl())\n\t\t){\n\t\t\topenApiUiConfigParameters.getConfigParameters().entrySet().stream()\n\t\t\t.filter(entry -> !OpenApiUiConfigParameters.CONFIG_URL_PROPERTY.equals(entry.getKey()))\n\t\t\t.filter(entry -> !OpenApiUiConfigParameters.OAUTH2_REDIRECT_URL_PROPERTY.equals(entry.getKey()))\n\t\t\t.filter(entry -> !entry.getKey().startsWith(OpenApiUiConfigParameters.URLS_PROPERTY))\n\t\t\t.filter(entry -> StringUtils.isNotEmpty((String) entry.getValue()))\n\t\t\t.forEach(entry -> uriBuilder.queryParam(entry.getKey(), entry.getValue()));\n\t\t} else {\n\t\t\turiBuilder.queryParam(OpenApiUiConfigParameters.CONFIG_URL_PROPERTY, openApiUiConfigParameters.getConfigUrl());\n\t\t\tif (StringUtils.isNotEmpty(openApiUiConfigParameters.getLayout())) {\n\t\t\t\turiBuilder.queryParam(OpenApiUiConfigParameters.LAYOUT_PROPERTY, openApiUiConfigParameters.getLayout());\n\t\t\t}\n\t\t\tif (openApiUiConfigParameters.getFilter() != null) {\n\t\t\t\turiBuilder.queryParam(OpenApiUiConfigParameters.FILTER_PROPERTY, openApiUiConfigParameters.getFilter());\n\t\t\t}\n\t\t}\n\t\treturn uriBuilder;\n\t}",
"String getBaseUri();",
"@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 }",
"public String getSchemaPath(final String requestUrl) {\n // find out if we have a known route, e.g. /rules, /bnrules, etc.\n final Optional<String> match = businessObjectToJsonSchema.keySet().stream().filter(requestUrl::contains).findAny();\n\n if (match.isEmpty()) {\n logger.debug(\"Schema validation not configured for: {}\", requestUrl);\n return null; // the request has not mapping, meaning there is no schema for this request URL's payload\n }\n\n final String route = match.get();\n // find out if there are trailing elements after the base mapping (e.g. rules/<hash>). If so, we validate.\n if (requestUrl.lastIndexOf(route) >= requestUrl.lastIndexOf(\"/\")) {\n // this means we have no hash or any other trailing path components after the route. We are not validating this.\n // The payloads we are interested in are always qualified with a hash, a country, etc.\n return null;\n }\n // since there is currently only one schema per route, we can take the route as a key for the schema\n // e.g. if we have /rules/<something>, we use the same schema, no matter what <something> is.\n return businessObjectToJsonSchema.get(route);\n }",
"public String toQueryUrl() {\n StringBuilder urlBuilder = new StringBuilder();\n Set<Map.Entry<String, Object>> entrySet = params.entrySet();\n int i = entrySet.size();\n for (Map.Entry<String, Object> entry : entrySet) {\n try {\n if (null != entry.getValue()) {\n urlBuilder.append(entry.getKey()).append('=')\n .append(URLEncoder.encode(String.valueOf(entry.getValue()), DEFAULT_ENC));\n if (i > 1) {\n urlBuilder.append('&');\n }\n }\n i--;\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }\n \n return urlBuilder.toString();\n }",
"@Override\n public RefConfig getRefConfig(){\n outObject = \"getRefConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (RefConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (RefConfig) inObject;\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 }",
"protected abstract HttpUriRequest getHttpUriRequest();",
"@Nonnull\n public Optional<ResourcePath> getExposedUri();",
"public URI getAllowedConnector(Rule rule) {\n Constraint constraint = rule.getConstraint().get(0);\n String allowedConnectorAsString = constraint.getRightOperand().getValue();\n return URI.create(allowedConnectorAsString);\n }",
"String getQueryRequestUrl();",
"URIGenerator getURIGenerator();",
"protected Uri getOutputUri() {\n Uri outputUri = mOptions.outputUri;\n if (outputUri.equals(Uri.EMPTY)) {\n try {\n String ext = mOptions.outputCompressFormat == Bitmap.CompressFormat.JPEG ? \".jpg\" :\n mOptions.outputCompressFormat == Bitmap.CompressFormat.PNG ? \".png\" : \".wepb\";\n outputUri = Uri.fromFile(File.createTempFile(\"cropped\", ext, getCacheDir()));\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to create temp file for output image\", e);\n }\n }\n return outputUri;\n }",
"private ValueMap<Input, OWLValue> buildInputValueMap(Process process, String datasetURL, HashMap<String, String> bindings, OWLKnowledgeBase kb) {\n\t\tValueMap<Input, OWLValue> inputs = new ValueMap<Input, OWLValue>();\n\n\t\tString value;\n\t\tString uri;\n\t\tboolean error = false;\n\t\tfor (Input input : process.getInputs()) {\n\t\t\turi = input.getURI().toASCIIString();\n\n\t\t\tSystem.out.println(\"getting value for parameter: \" + uri);\n\n\t\t\tif (uri.contains(\"url\") || uri.contains(\"URL\")\n\t\t\t\t\t|| uri.contains(\"fileLoc\"))\n\t\t\t\tinputs.setValue(input, kb.createDataValue(datasetURL));\n\n\t\t\telse {\n\t\t\t\tvalue = bindings.get(input.getURI().toASCIIString());\n\n\t\t\t\tif (value != null)\n\t\t\t\t\tinputs.setValue(input, kb.createDataValue(value));\n\t\t\t\telse\n\t\t\t\t\terror = true;\n\t\t\t}\n\t\t}\n\n\t\tif (error)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn inputs;\n\t}",
"@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }",
"public UriDt getUrlElement() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public UriDt getUrlElement() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public UriDt getUrlElement() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public static String getLexicalForm(RDFNode value) {\n if (value.isLiteral()) {\n return ((Literal) value).getLexicalForm();\n } else if (value.isURIResource()) {\n return ((Resource) value).getURI();\n } else {\n return value.toString();\n }\n }",
"@JsonIgnore\n\tpublic String getAbsoluteURI() {\n\t\treturn path.toUri().toString();\n\t}",
"public Map<String, Object> uriToValueMap();",
"public abstract URI getOntologyTermUri ( String valueLabel, String typeLabel ) throws OntologyDiscoveryException;",
"@Property String getDocumentURI();",
"@Override\n public WikiReference parse(String str)\n {\n str = str.trim();\n String reference = null;\n String label = null;\n if (str.contains(\"|\")) {\n reference = str.substring(0, str.indexOf('|'));\n label = str.substring(str.indexOf('|') + 1);\n } else {\n reference = str;\n }\n \n // special case images ...\n if (reference.matches(PREFIX_IMAGE) || reference.matches(PREFIX_FILE)) {\n reference = reference.substring(reference.indexOf(':') + 1);\n if (label != null) {\n WikiParameters params = this.generateImageParams(label);\n if (params.getParameter(\"alt\") != null) {\n label = params.getParameter(\"alt\").getValue();\n } else {\n label = \"\";\n }\n // copy ALT attribute to TITLE attribute, cause it's more user friendly\n if (params.getParameter(\"title\") == null && \"\".equals(label)) {\n params.addParameter(\"title\", label);\n }\n return new WikiReference(reference, label, params);\n }\n return new WikiReference(reference);\n }\n\n // External link with label\n // Case: [http://mediawiki.org MediaWiki]\n WikiReference wikiReference;\n if (-1 != str.indexOf(' ') && (str.contains(\"://\") || str.matches(PREFIX_MAILTO))) {\n String link = str.substring(0, str.indexOf(' ')).trim();\n label = str.substring(str.indexOf(' ') + 1).trim();\n wikiReference = new WikiReference(link, label);\n } else {\n wikiReference = new WikiReference(reference, label);\n }\n return wikiReference;\n\n }",
"public String getAuthorizationUrl(final TrueNTHOAuthConfig config) {\n\n\tfinal String baseURL = config.getBaseAuthorizationURL();\n\n\tfinal String callback = OAuthEncoder.encode(config.getCallback());\n\n\tif (config.hasScope()) {\n\t return baseURL + String.format(SCOPED_AUTHORIZE_URL, config.getApiKey(), callback, OAuthEncoder.encode(config.getScope()));\n\t} else {\n\t return baseURL + String.format(AUTHORIZE_URL, config.getApiKey(), callback);\n\t}\n\n }",
"@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}",
"public URI getURI()\r\n/* 49: */ {\r\n/* 50: */ try\r\n/* 51: */ {\r\n/* 52: 83 */ return new URI(this.servletRequest.getScheme(), null, this.servletRequest.getServerName(), \r\n/* 53: 84 */ this.servletRequest.getServerPort(), this.servletRequest.getRequestURI(), \r\n/* 54: 85 */ this.servletRequest.getQueryString(), null);\r\n/* 55: */ }\r\n/* 56: */ catch (URISyntaxException ex)\r\n/* 57: */ {\r\n/* 58: 88 */ throw new IllegalStateException(\"Could not get HttpServletRequest URI: \" + ex.getMessage(), ex);\r\n/* 59: */ }\r\n/* 60: */ }",
"String getSpecUrl();",
"public abstract String toUrl(Object inNode);"
] | [
"0.61818147",
"0.52479494",
"0.51381373",
"0.49818",
"0.488523",
"0.47855258",
"0.47855258",
"0.4709214",
"0.4687558",
"0.46702027",
"0.46700677",
"0.46127713",
"0.45751154",
"0.45626655",
"0.45579398",
"0.45534253",
"0.45205373",
"0.45146322",
"0.44951737",
"0.44658017",
"0.4451121",
"0.44410002",
"0.443351",
"0.44244838",
"0.44215885",
"0.4415047",
"0.43864027",
"0.43794113",
"0.43737838",
"0.43337992",
"0.43337992",
"0.43337992",
"0.43284357",
"0.43221322",
"0.42836",
"0.42536494",
"0.42499578",
"0.42380428",
"0.4215853",
"0.4207266",
"0.41987354",
"0.41986927",
"0.41867816",
"0.4175115",
"0.4174554",
"0.41556603",
"0.41480616",
"0.41467017",
"0.41454592",
"0.4144718",
"0.414277",
"0.4138081",
"0.4134395",
"0.4134071",
"0.41268578",
"0.412598",
"0.4124373",
"0.41197225",
"0.41059613",
"0.41041312",
"0.40909085",
"0.4084231",
"0.40786815",
"0.40724424",
"0.40661845",
"0.40640256",
"0.40610072",
"0.4055196",
"0.4051043",
"0.4044839",
"0.40430373",
"0.403402",
"0.40289474",
"0.40241095",
"0.40173846",
"0.4009935",
"0.4005801",
"0.39956224",
"0.39933375",
"0.39917898",
"0.39905864",
"0.3987756",
"0.39769578",
"0.39767882",
"0.39766353",
"0.3972686",
"0.39701968",
"0.39701968",
"0.39701968",
"0.39677757",
"0.3967301",
"0.39603886",
"0.39562184",
"0.39545906",
"0.3953785",
"0.39394757",
"0.39382645",
"0.39363575",
"0.39361137",
"0.39357233"
] | 0.4646329 | 11 |
Returns a dropdownbased input form for the given configuration. May return null if the configuration is invalid. | public static FStatementInput comboboxInput(String id, Resource s, URI p,
Value o, boolean deletable, String query, List<Value> values, Repository rep)
{
return new FComboboxInput(id,s,p,o,deletable,query,values,rep);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConfigurationForm getConfigForm()\n {\n return configForm;\n }",
"public Component getConfigFormPanel()\n {\n if (configFormPanel == null)\n {\n Object form = configForm.getForm();\n if ((form instanceof Component) == false)\n {\n throw new ClassCastException(\"ConfigurationFrame :\"\n + form.getClass()\n + \" is not a class supported by this ui implementation\");\n }\n configFormPanel = (Component) form;\n }\n return configFormPanel;\n }",
"com.google.cloud.dialogflow.v2.InputConfig getInputConfig();",
"public Form getViewForm() throws PublicationTemplateException;",
"public String getInputFormView() {\n\t\treturn inputFormView;\n\t}",
"com.google.cloud.documentai.v1beta2.InputConfig getInputConfig();",
"public StrColumn getRecvdDepositForm() {\n return delegate.getColumn(\"recvd_deposit_form\", DelegatingStrColumn::new);\n }",
"public XmlNsForm getElementFormDefault();",
"public Form readForm(String formKey);",
"public Component buidListForm() throws BeanDAOException {\n\t\treturn new ListForm<BEAN, KEY>(this);\n\t}",
"IFormView getFormView();",
"String getFormFieldDescription();",
"@RequestMapping(value = \"getinput.htm\")\n public ModelAndView getInput() {\n ModelAndView modelAndView = new ModelAndView();\n modelAndView.addObject(\"inputentity\", new InputFormBean());\n return modelAndView;\n }",
"public Form getSearchForm() throws PublicationTemplateException;",
"public Form getPresentationForm() throws ProcessManagerException {\r\n try {\r\n Form form = getPresentationForm(\"presentationForm\");\r\n if (form != null)\r\n return form;\r\n \r\n XmlForm xmlForm = new XmlForm(processModel.getDataFolder()\r\n .toRecordTemplate(currentRole, getLanguage(), true));\r\n xmlForm.setTitle(getString(\"processManager.folder\"));\r\n return xmlForm;\r\n } catch (FormException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.PRESENTATION_FORM_UNAVAILABLE\", e);\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.PRESENTATION_FORM_UNAVAILABLE\", e);\r\n }\r\n }",
"FORM createFORM();",
"protected ILaunchConfiguration chooseConfiguration(List<ILaunchConfiguration> configList) {\r\n\t\tIDebugModelPresentation labelProvider = DebugUITools.newDebugModelPresentation();\r\n\t\tElementListSelectionDialog dialog= new ElementListSelectionDialog(getShell(), labelProvider);\r\n\t\tdialog.setElements(configList.toArray());\r\n\t\tdialog.setTitle(\"Choose an existing run configuration\"); \r\n\t\tdialog.setMessage(\"Please choose one of these compatible run configurations.\");\r\n\t\tdialog.setMultipleSelection(false);\r\n\t\tint result = dialog.open();\r\n\t\tlabelProvider.dispose();\r\n\t\tif (result == Window.OK) {\r\n\t\t\treturn (ILaunchConfiguration) dialog.getFirstResult();\r\n\t\t}\r\n\t\treturn null;\t\t\r\n\t}",
"private JTextField getJTFQtdRegistroBD()\n\t{\n\t\tif ( jTFQTdRegistroBD == null )\n\t\t{\n\t\t\tjTFQTdRegistroBD = new JTextField();\n\t\t\tjTFQTdRegistroBD.setBounds(new Rectangle(15, 50, 150, 19));\n\t\t}\n\t\treturn jTFQTdRegistroBD;\n\t}",
"private org.gwtbootstrap3.client.ui.ListDropDown get_f_ListDropDown44() {\n return build_f_ListDropDown44();\n }",
"public interface Form {\n\n\t/**\n\t * Gets the number of documents that use this Form and have been modified since a given Java date\n\t *\n\t * @param since\n\t * Date the method should compare against\n\t * @return int number of documents using this Form modified\n\t * @since org.openntf.domino 3.0.0\n\t */\n\tpublic int getModifiedNoteCount(final java.util.Date since);\n\n\t/**\n\t * Gets the XPage that this Form is set to launch on the web as ($XPageAlt field)\n\t *\n\t * @return String XPage to Form is designed to launch with on web\n\t * @since org.openntf.domino 4.5.0\n\t */\n\tpublic String getXPageAlt();\n\n\t/**\n\t * Gets the XPage that this Form is set to launch in the client as ($XPageAltClient field, if defined, else $XPageAlt)\n\t *\n\t * @return String XPage to Form is designed to launch with on client\n\t * @since org.openntf.domino 5.0.0\n\t */\n\tpublic String getXPageAltClient();\n\n\t/**\n\t * Generates a selection formula in format:\n\t *\n\t * <code>SELECT Form = \"myFormName\" | Form = \"myFormAlias\" | Form = \"myFormSecondAlias\" etc.</code>\n\t *\n\t * <p>\n\t * Continues for as many aliases as the Form has, not including aliases if none is defined.\n\t * </p>\n\t *\n\t * <p>\n\t * NOTE: Forms view in an NSF only displays the first alias of a design element, deisng element's properties box will shows all.\n\t * </p>\n\t *\n\t * @return String selection formula to access all Documents created with that Form\n\t * @since org.openntf.domino 3.0.0\n\t */\n\tpublic String getSelectionFormula();\n\n\t/**\n\t * Returns documents associated with this form\n\t *\n\t * @return Documents as a <code>NotesCollection</code>\n\t */\n\tpublic NoteCollection getNoteCollection();\n\n\t/**\n\t * Returns a Metaversal ID consisting of a replica ID of the parent database and a universal ID of this form.\n\t */\n\tpublic String getMetaversalID();\n\n}",
"public static InputSpecification getInputSpecification() {\n\t\t\n\t\tProperties configFile = new Properties();\n\t\tInputSpecification input = new InputSpecification();\n\t\t\n\t\ttry {\n \n // THESE CALLS MUST BE SUBSTITUTED WITH THE GUI VALUES\n\t\t\t\n\t\t\tconfigFile.load(Crawler.class.getClassLoader().getResourceAsStream(\"app.properties\"));\n\t\t\t\n\t\t\tString user_field = configFile.getProperty(\"USERNAME_FIELD\");\n\t\t\tString user_value = configFile.getProperty(\"USERNAME_VALUE\");\n\t\t\tString password_field = configFile.getProperty(\"PASSWORD_FIELD\");\n\t\t\tString password_value = configFile.getProperty(\"PASSWORD_VALUE\");\n\t\t\tString submit_field = configFile.getProperty(\"SUBMIT_FIELD\");\n\t\t\tString submit_text = configFile.getProperty(\"SUBMIT_TEXT\");\n\t\t\t\n\t\t\tForm loginForm = new Form();\n\t\t\tloginForm.field(user_field).setValue(user_value);\n\t\t\tloginForm.field(password_field).setValue(password_value);\n\t\t\tinput.setValuesInForm(loginForm).beforeClickElement(submit_field).withText(submit_text);\n\t\t\t\n\t\t\t/*\n\t\t\tString textarea_field = configFile.getProperty(\"TEXTAREA_FIELD\");\n\t\t\tString textarea_text = configFile.getProperty(\"TEXTAREA_VALUE\");\n\t\t\tString quickadd_field = configFile.getProperty(\"QUICKADD_FIELD\");\n\t\t\tString quickadd_text = configFile.getProperty(\"QUICKADD_TEXT\");\n\t\t\t\n\t\t\tForm textareaForm = new Form();\n\t\t\ttextareaForm.field(textarea_field).setValue(textarea_text);\n\t\t\tinput.setValuesInForm(textareaForm).beforeClickElement(quickadd_field).withText(quickadd_text);\n\t\t\t*/\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn input;\n\t}",
"private org.gwtbootstrap3.client.ui.ListDropDown get_f_ListDropDown53() {\n return build_f_ListDropDown53();\n }",
"String getFormFieldLabel();",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.privacy.dlp.v2.StoredInfoTypeConfig,\n com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder,\n com.google.privacy.dlp.v2.StoredInfoTypeConfigOrBuilder>\n getConfigFieldBuilder() {\n if (configBuilder_ == null) {\n configBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.privacy.dlp.v2.StoredInfoTypeConfig,\n com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder,\n com.google.privacy.dlp.v2.StoredInfoTypeConfigOrBuilder>(\n getConfig(), getParentForChildren(), isClean());\n config_ = null;\n }\n return configBuilder_;\n }",
"public IInputType getInputTypeById(String id);",
"InputValueDefinition createInputValueDefinition();",
"public Form getForm() throws IOException {\n if(form == null) {\n form = builder.getInstance();\n }\n return form;\n }",
"public ConfigFormDescriptor(ConfigurationForm configForm)\n {\n this.configForm = configForm;\n\n byte[] icon = null;\n\n try\n {\n icon = configForm.getIcon();\n\n configFormTitle = configForm.getTitle();\n }\n catch (Exception e)\n {\n logger.error(\"Could not load configuration form.\", e);\n }\n\n if(icon != null)\n configFormIcon = new ImageIcon(icon);\n }",
"public Form getStepForm(int index) throws ProcessManagerException {\r\n HistoryStep[] steps = currentProcessInstance.getHistorySteps();\r\n \r\n if (0 <= index && index < steps.length) {\r\n try {\r\n if (steps[index].getAction().equals(\"#question#\")\r\n || steps[index].getAction().equals(\"#response#\")) {\r\n return getQuestionForm(true);\r\n } else\r\n return processModel.getPresentationForm(steps[index].getAction(),\r\n currentRole, getLanguage());\r\n } catch (WorkflowException e) {\r\n SilverTrace.info(\"processManager\", \"sessionController\",\r\n \"processManager.ILL_DATA_STEP\", e);\r\n \r\n return null;\r\n }\r\n } else\r\n return null;\r\n }",
"public org.hyperledger.fabric.protos.token.Transaction.InputId.Builder getInputsBuilder(\n int index) {\n return getInputsFieldBuilder().getBuilder(index);\n }",
"public org.hyperledger.fabric.protos.token.Transaction.InputId.Builder getInputsBuilder(\n int index) {\n return getInputsFieldBuilder().getBuilder(index);\n }",
"public org.hyperledger.fabric.protos.token.Transaction.InputId.Builder getInputsBuilder(\n int index) {\n return getInputsFieldBuilder().getBuilder(index);\n }",
"Type getHtmlInputFieldType();",
"com.google.cloud.dialogflow.v2.InputConfigOrBuilder getInputConfigOrBuilder();",
"public MapConfiguration getConfigurationWizard() throws IOException,\n\t\t\tInstantiationException, IllegalAccessException {\n\n\t\tMapContext context = (MapContext) modelRepository\n\t\t\t\t.loadObject(new ResourceKey(\"Form@12\"));\n\n\t\tif (context != null) {\n\t\t\tMapConfiguration configuration = mapFactory\n\t\t\t\t\t.getConfiguration(context);\n\n\t\t\t// Retrieve context instance from configuration.\n\t\t\tcontext = configuration.getContext();\n\n\t\t\t// Zoek, zoom en toon de correcte lagen ahv de opgegeven zoek\n\t\t\t// parameters\n\t\t\tsearchTrajectWizard(context);\n\n\t\t\t// Aanmaken laag op probleempunt aan te duiden op de kaart\n\t\t\tGeometryListFeatureMapLayer geomLayer = (GeometryListFeatureMapLayer) mapFactory\n\t\t\t\t\t.createGeometryLayer(context, GEOMETRY_LAYER_NAME, null,\n\t\t\t\t\t\t\tPoint.class, null, true, \"single\", null, null);\n\n\t\t\tList<String> selectedBordIds = new ArrayList<String>(1);\n\t\t\t// List<String> selectedSegmentIds = new ArrayList<String>(1);\n\t\t\tList<Geometry> anderProbleemPointGeoms = new ArrayList<Geometry>(1);\n\n\t\t\tif (\"bord\".equals(probleemType)) {\n\n\t\t\t\t// context.setShowSelectControl(true);\n\t\t\t\tcontext.setShowDrawPointControl(false);\n\t\t\t\tcontext.setShowFeatureInfoControl(true);\n\n\t\t\t\t// Itereren over de lagen en de correcte lagen selecteerbaar\n\t\t\t\t// zetten\n\t\t\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\t\t\t\t\tlayer.set(\"selectable\", false);\n\n\t\t\t\t\tif (layer.getLayerId().equalsIgnoreCase(\n\t\t\t\t\t\t\ttrajectType + \"Bord\")) {\n\t\t\t\t\t\tlayer.set(\"selectable\", true);\n\t\t\t\t\t\tlayer.set(\"selectionMode\", FeatureSelectionMode.SINGLE);\n\n\t\t\t\t\t\tif (object.getProbleem() != null\n\t\t\t\t\t\t\t\t&& object.getProbleem() instanceof BordProbleem) {\n\t\t\t\t\t\t\t// Indien al een Bord geselecteerd, zoomen en Bord\n\t\t\t\t\t\t\t// tonen.\n\t\t\t\t\t\t\tBordProbleem bordProbleem = (BordProbleem) object\n\t\t\t\t\t\t\t\t\t.getProbleem();\n\n\t\t\t\t\t\t\tif (bordProbleem.getBord() != null) {\n\n\t\t\t\t\t\t\t\tBord bord = (Bord) modelRepository\n\t\t\t\t\t\t\t\t\t\t.loadObject(bordProbleem.getBord());\n\n\t\t\t\t\t\t\t\t// Set selectie Bord\n\t\t\t\t\t\t\t\tselectedBordIds.add(modelRepository\n\t\t\t\t\t\t\t\t\t\t.loadObject(bordProbleem.getBord())\n\t\t\t\t\t\t\t\t\t\t.getId().toString());\n\t\t\t\t\t\t\t\tlayer.setSelection(selectedBordIds);\n\n\t\t\t\t\t\t\t\t// Zoom naar Bord\n\t\t\t\t\t\t\t\tenvelope = GeometryUtils.getEnvelope(bord\n\t\t\t\t\t\t\t\t\t\t.getGeom());\n\t\t\t\t\t\t\t\tGeometryUtils.expandEnvelope(envelope, 0.04,\n\t\t\t\t\t\t\t\t\t\tcontext.getMaxBoundingBox());\n\t\t\t\t\t\t\t\tcontext.setBoundingBox(envelope);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlayer.setSelection(new ArrayList<String>(1));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (layer.getLayerId().equalsIgnoreCase(\n\t\t\t\t\t\t\ttrajectType.replace(\"Segment\", \"\") + \"Bord\")) {\n\t\t\t\t\t\tlayer.set(\"selectable\", true);\n\t\t\t\t\t\tlayer.set(\"selectionMode\", FeatureSelectionMode.SINGLE);\n\t\t\t\t\t\tif (object.getProbleem() != null\n\t\t\t\t\t\t\t\t&& object.getProbleem() instanceof BordProbleem) {\n\t\t\t\t\t\t\t// Indien al een Bord geselecteerd, zoomen en Bord\n\t\t\t\t\t\t\t// tonen.\n\t\t\t\t\t\t\tBordProbleem bordProbleem = (BordProbleem) object\n\t\t\t\t\t\t\t\t\t.getProbleem();\n\n\t\t\t\t\t\t\tif (bordProbleem.getBord() != null) {\n\n\t\t\t\t\t\t\t\tBord bord = (Bord) modelRepository\n\t\t\t\t\t\t\t\t\t\t.loadObject(bordProbleem.getBord());\n\n\t\t\t\t\t\t\t\t// Set selectie Bord\n\t\t\t\t\t\t\t\tselectedBordIds.add(modelRepository\n\t\t\t\t\t\t\t\t\t\t.loadObject(bordProbleem.getBord())\n\t\t\t\t\t\t\t\t\t\t.getId().toString());\n\t\t\t\t\t\t\t\tlayer.setSelection(selectedBordIds);\n\n\t\t\t\t\t\t\t\t// Zoom naar Bord\n\t\t\t\t\t\t\t\tenvelope = GeometryUtils.getEnvelope(bord\n\t\t\t\t\t\t\t\t\t\t.getGeom());\n\t\t\t\t\t\t\t\tGeometryUtils.expandEnvelope(envelope, 0.04,\n\t\t\t\t\t\t\t\t\t\tcontext.getMaxBoundingBox());\n\t\t\t\t\t\t\t\tcontext.setBoundingBox(envelope);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlayer.setSelection(new ArrayList<String>(1));\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\telse if (layer.getLayerId().contains(\"Knooppunt\")) {\n\t\t\t\t\t\tlayer.set(\"selectable\", true);\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (layer.getLayerId().equalsIgnoreCase(\n\t\t\t\t\t\t\tGEOMETRY_LAYER_NAME)) {\n\t\t\t\t\t\tlayer.setHidden(true);\n\t\t\t\t\t\t((GeometryListFeatureMapLayer) layer)\n\t\t\t\t\t\t\t\t.setGeometries(new ArrayList<Geometry>(1));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlayer.set(\"selectable\", false);\n\t\t\t\t\t\tlayer.setSelection(Collections.EMPTY_LIST);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (\"ander\".equals(probleemType)) {\n\n\t\t\t\tcontext.setShowDrawPointControl(true);\n\t\t\t\tcontext.setShowFeatureInfoControl(false);\n\n\t\t\t\t// if (trajectType.contains(\"Netwerk\")) {\n\t\t\t\t// context.setShowSelectControl(true);\n\t\t\t\t// }\n\n\t\t\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\n\t\t\t\t\t// Geometrie laag\n\t\t\t\t\tif (layer.getLayerId()\n\t\t\t\t\t\t\t.equalsIgnoreCase(GEOMETRY_LAYER_NAME)) {\n\t\t\t\t\t\tlayer.setHidden(false);\n\t\t\t\t\t\tlayer.set(\"selectable\", true);\n\t\t\t\t\t\tlayer.set(\"editable\", true);\n\n\t\t\t\t\t\tif (object.getProbleem() != null\n\t\t\t\t\t\t\t\t&& object.getProbleem() instanceof AnderProbleem) {\n\t\t\t\t\t\t\t// Indien al een AnderProbleem punt ingegeven, punt\n\t\t\t\t\t\t\t// tonen\n\t\t\t\t\t\t\tAnderProbleem anderProbleem = (AnderProbleem) object\n\t\t\t\t\t\t\t\t\t.getProbleem();\n\n\t\t\t\t\t\t\tif (anderProbleem.getGeom() instanceof Point) {\n\t\t\t\t\t\t\t\tanderProbleemPointGeoms.add(anderProbleem\n\t\t\t\t\t\t\t\t\t\t.getGeom());\n\t\t\t\t\t\t\t\tgeomLayer\n\t\t\t\t\t\t\t\t\t\t.setGeometries(anderProbleemPointGeoms);\n\t\t\t\t\t\t\t\tenvelope = GeometryUtils\n\t\t\t\t\t\t\t\t\t\t.getEnvelope(anderProbleem.getGeom());\n\t\t\t\t\t\t\t\tGeometryUtils.expandEnvelope(envelope, 0.04,\n\t\t\t\t\t\t\t\t\t\tcontext.getMaxBoundingBox());\n\t\t\t\t\t\t\t\tcontext.setBoundingBox(envelope);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgeomLayer\n\t\t\t\t\t\t\t\t\t\t.setGeometries(new ArrayList<Geometry>(\n\t\t\t\t\t\t\t\t\t\t\t\t1));\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\t// Indien NetwerkSegment laag laag op selecteerbaar zetten\n\t\t\t\t\t// else if (layer.getLayerId().equals(\n\t\t\t\t\t// LabelUtils.lowerCamelCase(trajectType.replace(\n\t\t\t\t\t// \"netwerk\", \"Netwerk\")))) {\n\t\t\t\t\t// layer.set(\"selectable\", true);\n\t\t\t\t\t// layer.set(\"selectionMode\", FeatureSelectionMode.SINGLE);\n\t\t\t\t\t//\n\t\t\t\t\t// if (object.getTraject() != null) {\n\t\t\t\t\t// // Indien al een segment geselecteerd, selectie\n\t\t\t\t\t// // blijven tonen\n\t\t\t\t\t// Traject segment = (Traject) modelRepository\n\t\t\t\t\t// .loadObject(object.getTraject());\n\t\t\t\t\t//\n\t\t\t\t\t// selectedSegmentIds.add(segment.getId().toString());\n\t\t\t\t\t// layer.setSelection(selectedSegmentIds);\n\t\t\t\t\t// envelope = GeometryUtils.getEnvelope(segment\n\t\t\t\t\t// .getGeom());\n\t\t\t\t\t// context.setBoundingBox(envelope);\n\t\t\t\t\t// } else {\n\t\t\t\t\t// layer.setSelection(new ArrayList<String>(1));\n\t\t\t\t\t// }\n\t\t\t\t\t//\n\t\t\t\t\t// }\n\n\t\t\t\t\telse if (layer.getLayerId().contains(\"Knooppunt\")) {\n\t\t\t\t\t\tlayer.set(\"selectable\", true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlayer.set(\"selectable\", false);\n\t\t\t\t\t\tlayer.setSelection(Collections.EMPTY_LIST);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn configuration;\n\t\t}\n\t\treturn null;\n\t}",
"private InputMap getInputMap(int condition) {\n if (condition == JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT) {\n return (InputMap)UIManager.get(\"Spinner.ancestorInputMap\"); }\n return null; }",
"private org.gwtbootstrap3.client.ui.ListDropDown get_f_ListDropDown71() {\n return build_f_ListDropDown71();\n }",
"@GetMapping(\"/form\")\n\tpublic String form() {\n\t\treturn \"form\";\n\t}",
"public CWE getAdministeredDosageForm() { \r\n\t\tCWE retVal = this.getTypedField(8, 0);\r\n\t\treturn retVal;\r\n }",
"public String getConfigFormTitle()\n {\n return configFormTitle;\n }",
"public NoteForm getOneAsForm(Integer id);",
"private org.gwtbootstrap3.client.ui.ListDropDown get_f_ListDropDown55() {\n return build_f_ListDropDown55();\n }",
"private org.gwtbootstrap3.client.ui.ListDropDown get_f_ListDropDown66() {\n return build_f_ListDropDown66();\n }",
"private org.gwtbootstrap3.client.ui.ListDropDown get_f_ListDropDown9() {\n return build_f_ListDropDown9();\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> \n getConfigurationFieldBuilder() {\n if (configurationBuilder_ == null) {\n configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(\n getConfiguration(),\n getParentForChildren(),\n isClean());\n configuration_ = null;\n }\n return configurationBuilder_;\n }",
"private void createInputBloodDonationForm( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n String path = req.getServletPath();\n req.setAttribute( \"path\", path );\n req.setAttribute( \"title\", path.substring( 1 ) );\n \n BloodDonationLogic logic = LogicFactory.getFor(\"BloodDonation\");\n req.setAttribute( \"bloodDonationColumnNames\", logic.getColumnNames().subList(1, logic.getColumnNames().size()));\n req.setAttribute( \"bloodDonationColumnCodes\", logic.getColumnCodes().subList(1, logic.getColumnCodes().size()));\n req.setAttribute(\"bloodGroupList\", Arrays.asList(BloodGroup.values()));\n req.setAttribute(\"rhdList\", Arrays.asList(RhesusFactor.values()));\n BloodBankLogic bloodBankLogic = LogicFactory.getFor(\"BloodBank\");\n List<String> bloodBankIDs = new ArrayList<>();\n bloodBankIDs.add(\"\");\n for (BloodBank bb : bloodBankLogic.getAll()) {\n bloodBankIDs.add(bb.getId().toString());\n }\n req.setAttribute( \"bloodBankIDs\", bloodBankIDs);\n req.setAttribute( \"request\", toStringMap( req.getParameterMap() ) );\n \n if (errorMessage != null && !errorMessage.isEmpty()) {\n req.setAttribute(\"errorMessage\", errorMessage);\n }\n //clear the error message if when reload the page\n errorMessage = \"\";\n \n req.getRequestDispatcher( \"/jsp/CreateRecord-BloodDonation.jsp\" ).forward( req, resp );\n }",
"private JTextField getTxtD() {\r\n\t\tif (txtD == null) {\r\n\t\t\ttxtD = new JTextField();\r\n\t\t\ttxtD.setLocation(new Point(117, 43));\r\n\t\t\ttxtD.setSize(new Dimension(32, 20));\r\n\t\t}\r\n\t\treturn txtD;\r\n\t}",
"public FormElementModel getFormElementModel();",
"protected SelectionText input() {\n return inputter;\n }",
"public static Keyboard getKeyboard()\r\n\t{\r\n\t\t\r\n\t\tSystem.out.println ( \"What is the brand of keyboard?\" );\r\n\t\tString brand = input.next ( );\r\n\t\tSystem.out.println ( \"What is the model of keyboard?\" );\r\n\t\tString model = input.next ( );\r\n\t\tSystem.out.println ( \"What are the types of switches?\" );\r\n\t\tString switchType = input.next( );\r\n\t\tSystem.out.println ( \"How many do you have in stock?\" );\r\n\t\tint stock = input.nextInt( );\r\n\t\tSystem.out.println ( \"What is the price?\" );\r\n\t\tdouble price = input.nextDouble( );\r\n\t\tKeyboard kb1 = new Keyboard(brand, model, switchType, stock, price);\r\n\r\n\t\treturn kb1;\r\n\t\t\r\n\t}",
"public XhtmlForm getForm(Element el) {\n\t\tReplacedElementFactory ref = getSharedContext().getReplacedElementFactory();\n\t\tif (ref != null && ref instanceof XHTMLReplacedElementFactoryImpl) {\n\t\t\treturn ((XHTMLReplacedElementFactoryImpl) ref).getForm(el);\n\t\t}\n\t\treturn null;\n\t}",
"private TextField getFieldForIndex(int selectedIndex) {\n if (selectedIndex == 0) {\n return registerFields.get(0);\n } else if (selectedIndex == 1) {\n return rouleauFields.get(0);\n } else if (selectedIndex == 2) {\n return coinageFields.get(0);\n } else {\n return billFields.get(0);\n }\n }",
"java.lang.String getFormId();",
"public <T> T Get(String configName)\r\n\t{\r\n\t\t// divide path\r\n\t\tif(configName.contains(\".\"))\r\n\t\t{\r\n\t\t\tString firstName = configName.substring(0, configName.indexOf(\".\"));\r\n\t\t\tString lastName = configName.substring(configName.indexOf(\".\") + 1);\r\n\t\t\t\r\n\t\t\tConfigurations firstConfigurations = this.<Configurations>Get(firstName);\r\n\t\t\tif(firstConfigurations == null)\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn firstConfigurations.<T>Get(lastName);\r\n\t\t}\r\n\t\t\r\n\t\t// return first castable object\r\n\t\tif(configurationMap.get(configName.toLowerCase()) != null)\r\n\t\t{\r\n\t\t\tfor(Object obj : configurationMap.get(configName.toLowerCase()))\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\treturn (T) obj;\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e)\r\n\t\t\t\t{}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public String inputForm() {\n return inputDataTraveler.validateData();\n }",
"public Form getForm() {\n if (form == null) {//GEN-END:|14-getter|0|14-preInit\n // write pre-init user code here\n form = new Form(\"Form\", new Item[] { getStringItem() });//GEN-BEGIN:|14-getter|1|14-postInit\n form.addCommand(getExitCommand());\n form.setCommandListener(this);//GEN-END:|14-getter|1|14-postInit\n // write post-init user code here\n }//GEN-BEGIN:|14-getter|2|\n return form;\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n DerivedFeatureConfig, DerivedFeatureConfig.Builder, DerivedFeatureConfigOrBuilder>\n getConfigFieldBuilder() {\n if (configBuilder_ == null) {\n configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n DerivedFeatureConfig, DerivedFeatureConfig.Builder, DerivedFeatureConfigOrBuilder>(\n getConfig(),\n getParentForChildren(),\n isClean());\n config_ = null;\n }\n return configBuilder_;\n }",
"public ImageIcon getConfigFormIcon()\n {\n return configFormIcon;\n }",
"com.google.cloud.documentai.v1beta2.InputConfigOrBuilder getInputConfigOrBuilder();",
"public form_for_bd() {\n initComponents();\n }",
"private javax.swing.JTextField getAdquiridosTF() {\n\t\tif(adquiridosTF == null) {\n\t\t\tadquiridosTF = new javax.swing.JTextField();\n\t\t\tadquiridosTF.setPreferredSize(new java.awt.Dimension(30,20));\n\t\t\tadquiridosTF.setEditable(false);\n\t\t\tadquiridosTF.setBackground(new java.awt.Color(242,242,238));\n\t\t\tadquiridosTF.setBorder(javax.swing.BorderFactory.createEmptyBorder(0,0,0,0));\n\t\t\tadquiridosTF.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\t\t\tadquiridosTF.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12));\n\t\t\tadquiridosTF.setFocusable(false);\n\t\t}\n\t\treturn adquiridosTF;\n\t}",
"private com.google.protobuf.SingleFieldBuilderV3<\n io.grafeas.v1.BuilderConfig,\n io.grafeas.v1.BuilderConfig.Builder,\n io.grafeas.v1.BuilderConfigOrBuilder>\n getBuilderConfigFieldBuilder() {\n if (builderConfigBuilder_ == null) {\n builderConfigBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n io.grafeas.v1.BuilderConfig,\n io.grafeas.v1.BuilderConfig.Builder,\n io.grafeas.v1.BuilderConfigOrBuilder>(\n getBuilderConfig(), getParentForChildren(), isClean());\n builderConfig_ = null;\n }\n return builderConfigBuilder_;\n }",
"@Override\r\n\tpublic void ConfigurationUpdated(Configuration configuration) {\n\t\t\r\n\t\twhile (form == null);\r\n\t\tform.UpdateConfiguration(configuration);\r\n\t}",
"public TideParameters getInput() {\n\n TideParameters result = new TideParameters();\n\n String input = minPepLengthTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setMinPeptideLength(Integer.valueOf(input));\n }\n input = maxPepLengthTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setMaxPeptideLength(Integer.valueOf(input));\n }\n\n input = minPrecursorMassTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setMinPrecursorMass(Double.valueOf(input));\n }\n input = maxPrecursorMassTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setMaxPrecursorMass(Double.valueOf(input));\n }\n\n result.setMonoisotopicPrecursor(monoPrecursorCmb.getSelectedIndex() == 0);\n result.setClipNtermMethionine(removeMethionineCmb.getSelectedIndex() == 0);\n\n// input = minPtmsPerPeptideTxt.getText().trim();\n// if (!input.equals(\"\")) {\n// result.setMinVariableModificationsPerPeptide(Integer.valueOf(input));\n// }\n \n input = maxPtmsPerPeptideTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setMaxVariableModificationsPerPeptide(Integer.valueOf(input));\n }\n\n input = maxVariablePtmsPerTypeTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setMaxVariableModificationsPerTypePerPeptide(Integer.valueOf(input));\n }\n\n result.setDigestionType((String) enzymeTypeCmb.getSelectedItem());\n result.setPrintPeptides(peptideListCmb.getSelectedIndex() == 0);\n result.setDecoyFormat((String) decoyFormatCombo.getSelectedItem());\n result.setRemoveTempFolders(removeTempFoldersCmb.getSelectedIndex() == 0);\n result.setKeepTerminalAminoAcids((String) keepTerminalAaCombo.getSelectedItem());\n\n input = decoySeedTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setDecoySeed(Integer.valueOf(input));\n }\n\n result.setComputeExactPValues(exactPvalueCombo.getSelectedIndex() == 0);\n result.setComputeSpScore(spScoreCombo.getSelectedIndex() == 0);\n\n input = minSpectrumMzTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setMinSpectrumMz(Double.valueOf(input));\n }\n input = maxSpectrumMzTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setMaxSpectrumMz(Double.valueOf(input));\n }\n\n input = minPeaksTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setMinSpectrumPeaks(Integer.valueOf(input));\n }\n\n result.setSpectrumCharges((String) chargesCombo.getSelectedItem());\n result.setRemovePrecursor(removePrecursorPeakCombo.getSelectedIndex() == 0);\n\n input = removePrecursorPeakToleranceTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setRemovePrecursorTolerance(Double.valueOf(input));\n }\n\n result.setUseFlankingPeaks(useFlankingCmb.getSelectedIndex() == 0);\n result.setUseNeutralLossPeaks(useNeutralLossCmb.getSelectedIndex() == 0);\n\n input = mzBinWidthTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setMzBinWidth(Double.valueOf(input));\n }\n\n input = mzBinOffsetTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setMzBinOffset(Double.valueOf(input));\n }\n\n input = numberMatchesTxt.getText().trim();\n if (!input.equals(\"\")) {\n result.setNumberOfSpectrumMatches(Integer.valueOf(input));\n }\n\n int selectedIndex = outputFormatCombo.getSelectedIndex();\n result.setTextOutput(selectedIndex == 0);\n result.setSqtOutput(selectedIndex == 1);\n result.setPepXmlOutput(selectedIndex == 2);\n result.setMzidOutput(selectedIndex == 3);\n result.setPinOutput(selectedIndex == 4);\n\n return result;\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.datafusion.v1beta1.NetworkConfig,\n com.google.cloud.datafusion.v1beta1.NetworkConfig.Builder,\n com.google.cloud.datafusion.v1beta1.NetworkConfigOrBuilder>\n getNetworkConfigFieldBuilder() {\n if (networkConfigBuilder_ == null) {\n networkConfigBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.datafusion.v1beta1.NetworkConfig,\n com.google.cloud.datafusion.v1beta1.NetworkConfig.Builder,\n com.google.cloud.datafusion.v1beta1.NetworkConfigOrBuilder>(\n getNetworkConfig(), getParentForChildren(), isClean());\n networkConfig_ = null;\n }\n return networkConfigBuilder_;\n }",
"public String getForm() {\r\n\t\treturn form;\r\n\t}",
"BuildFilterForm getEditionForm(ID branchId, String name) throws BuildFilterNotFoundException, BuildFilterNotLoggedException;",
"public void buildAndShowMenuForm() {\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .translator(MinecraftLocale::getLocaleString, session.locale())\n .title(\"gui.advancements\");\n\n List<String> rootAdvancementIds = new ArrayList<>();\n for (Map.Entry<String, GeyserAdvancement> advancement : storedAdvancements.entrySet()) {\n if (advancement.getValue().getParentId() == null) { // No parent means this is a root advancement\n builder.button(MessageTranslator.convertMessage(advancement.getValue().getDisplayData().getTitle(), session.locale()));\n rootAdvancementIds.add(advancement.getKey());\n }\n }\n\n if (rootAdvancementIds.isEmpty()) {\n builder.content(\"advancements.empty\");\n }\n\n builder.validResultHandler((response) -> {\n String id = rootAdvancementIds.get(response.clickedButtonId());\n if (!id.equals(\"\")) {\n if (id.equals(currentAdvancementCategoryId)) {\n // The server thinks we are already on this tab\n buildAndShowListForm();\n } else {\n // Send a packet indicating that we intend to open this particular advancement window\n ServerboundSeenAdvancementsPacket packet = new ServerboundSeenAdvancementsPacket(id);\n session.sendDownstreamPacket(packet);\n // Wait for a response there\n }\n }\n });\n\n session.sendForm(builder);\n }",
"public Formateur getFormateur(int indice) {\r\n\t\t\treturn formateurs.get(indice);\r\n\t}",
"public String getConfigurationField() {\n return configField;\n }",
"protected Container completeConfigurationWindow() {\n\t\treturn null;\n\t}",
"protected Configuration createConfiguration()\r\n/* 76: */ {\r\n/* 77:119 */ this.configuration_d.setNumOfIterations(Integer.parseInt(this.jTextField1.getText()));\r\n/* 78:120 */ this.configuration_d.setPopulationSize(Integer.parseInt(this.popSize_d.getText()));\r\n/* 79:121 */ ((GAConfiguration)this.configuration_d).setCrossoverThreshold(Double.valueOf(this.jTextField2.getText()).doubleValue());\r\n/* 80:122 */ ((GAConfiguration)this.configuration_d).setMutationThreshold(Double.valueOf(this.jTextField3.getText()).doubleValue());\r\n/* 81:123 */ ((GAConfiguration)this.configuration_d).setMethod((String)this.methodList_d.getSelectedItem());\r\n/* 82:124 */ return this.configuration_d;\r\n/* 83: */ }",
"public IInputType getInputType(String inputExtension);",
"@Override\n\tpublic FormContainer getFormContainer() {\n\t\treturn null;\n\t}",
"public PortletApplicationDefinition read(String name, String contextPath,\n InputStream in) throws IOException {\n if (in == null) {\n throw new IOException(\"Cannot read from a null InputStream\");\n }\n\n PortletApplicationDefinition pad = null;\n ConfigurationHolder confHolder = new ConfigurationHolder();\n\n // read the deployment descriptor\n try {\n confHolder.processPortletDD(in);\n pad = confHolder.getPad();\n } catch (XMLStreamException | IllegalArgumentException | JAXBException e) {\n final IOException ioe = new IOException(e.getLocalizedMessage());\n ioe.initCause(e);\n throw ioe;\n }\n\n pad.setName(name);\n pad.setContextPath(contextPath);\n\n return pad;\n }",
"private JComboBox getDfwjComboBox() {\r\n\t\tif (dfwjComboBox == null) {\r\n\t\t\tdfwjComboBox = new JComboBox();\r\n\t\t\tdfwjComboBox.setBackground(Color.GRAY);\r\n\t\t\tdfwjComboBox.setBounds(new Rectangle(250, 54, 60, 18));\r\n\t\t\tdfwjComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n\t\t\t\tpublic void itemStateChanged(java.awt.event.ItemEvent e) {\r\n\t\t\t\t\t// JComboBox状态的变化有两种,一是从selected到unselected还有从unselected到selected\r\n\t\t\t\t\t// 这里处理的是从unselected到selected\r\n\t\t\t\t\tif (e.getStateChange() == ItemEvent.SELECTED) {\r\n\t\t\t\t\t\t// 取消启动就打开输入用户名和密码的界面\r\n\t\t\t\t\t\tcurrentPage = 1;\r\n\t\t\t\t\t\tpageSize = 0;\r\n\t\t\t\t\t\tgetQx();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tdfwjComboBox.addItem(\"全部\");\r\n\t\t\tdfwjComboBox.addItem(\"定位\");\r\n\t\t\tdfwjComboBox.addItem(\"反位\");\r\n\t\t\tdfwjComboBox.setSelectedIndex(0);\r\n\t\t}\r\n\t\treturn dfwjComboBox;\r\n\t}",
"public Optional<ConfigurationDescriptor> getConfiguration(String configurationId) throws IoTInventoryDataManagerException;",
"public final XmlSpecialForm specialForm ()\r\n {\r\n return _value.specialForm();\r\n }",
"public GrievFormImpl getGrievForm1() {\n return (GrievFormImpl) findViewObject(\"GrievForm1\");\n }",
"@RequestMapping(method = RequestMethod.GET, value = FR_SERVICE_RESOURCE_PREFIX\n\t\t\t+ \"/crud/{applicationId}/{formId}/form/form.xhtml\")\n\t@ResponseBody\n\tpublic String getFormDefinition(@PathVariable final String applicationId, @PathVariable final String formId,\n\t\t\t@RequestParam(value = \"document\", required = false) final String documentId, final HttpServletResponse response)\n\t\t\tthrows ServletException, IOException, YFormServiceException\n\t{\n\t\tif (LOG.isDebugEnabled())\n\t\t{\n\t\t\tLOG.debug(\"getFormDefinition: applicationId=\" + applicationId + \" | formId=\" + formId\n\t\t\t\t\t+ (documentId != null ? \" | documentId=\" + documentId : \"\"));\n\t\t}\n\n\t\tYFormDefinitionData yformDefinition = null;\n\n\t\t//The source of the xhtml should be retrieved from the DB when that's available.\n\t\ttry\n\t\t{\n\t\t\tif (documentId == null)\n\t\t\t{\n\t\t\t\tyformDefinition = yFormFacade.getYFormDefinition(applicationId, formId);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tyformDefinition = yFormFacade.getYFormDefinition(documentId);\n\t\t\t}\n\t\t}\n\t\tcatch (final Exception e)\n\t\t{\n\t\t\tresponse.setStatus(HttpServletResponse.SC_NOT_FOUND);\n\t\t\treturn \"\";\n\t\t}\n\n\t\tString r = \"\";\n\n\t\tif (yformDefinition != null && yformDefinition.getContent() != null)\n\t\t{\n\t\t\tr = yformDefinition.getContent();\n\t\t}\n\t\tresponse.setHeader(ORBEON_FORM_DEFINITION_VERSION, \"\" + yformDefinition.getVersion());\n\t\treturn r;\n\t}",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.assistant.embedded.v1alpha1.ConverseConfig, com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder, com.google.assistant.embedded.v1alpha1.ConverseConfigOrBuilder> \n getConfigFieldBuilder() {\n if (configBuilder_ == null) {\n if (!(converseRequestCase_ == 1)) {\n converseRequest_ = com.google.assistant.embedded.v1alpha1.ConverseConfig.getDefaultInstance();\n }\n configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.assistant.embedded.v1alpha1.ConverseConfig, com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder, com.google.assistant.embedded.v1alpha1.ConverseConfigOrBuilder>(\n (com.google.assistant.embedded.v1alpha1.ConverseConfig) converseRequest_,\n getParentForChildren(),\n isClean());\n converseRequest_ = null;\n }\n converseRequestCase_ = 1;\n onChanged();;\n return configBuilder_;\n }",
"String getForm(String path, Descriptor desc) {\n return new ScriptBuilder()\n .l(\"getForm(paste(ifelse(is.null(server),%s.server(),server), '%s', sep=''), %s)\", \n moduleAnnot.name(), path, getGetFormParamList(desc))\n .toString();\n }",
"List<String> getInsertPanelInput();",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"List<String> getEditPanelInput();",
"private javax.swing.JTextField getAbonosAProductosTF() {\n\t\tif(abonosAProductosTF == null) {\n\t\t\tabonosAProductosTF = new javax.swing.JTextField();\n\t\t\tabonosAProductosTF.setPreferredSize(new java.awt.Dimension(130,20));\n\t\t\tabonosAProductosTF.setEditable(false);\n\t\t\tabonosAProductosTF.setBackground(new java.awt.Color(242,242,238));\n\t\t\tabonosAProductosTF.setBorder(javax.swing.BorderFactory.createEmptyBorder(0,0,0,0));\n\t\t\tabonosAProductosTF.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12));\n\t\t\tabonosAProductosTF.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n\t\t\tabonosAProductosTF.setFocusable(false);\n\t\t}\n\t\treturn abonosAProductosTF;\n\t}",
"private JTextField getJComboBoxConStr() {\r\n\t\tif (jTextFieldConStr == null) {\r\n\t\t\tjTextFieldConStr = new JTextField();\r\n\t\t\tjTextFieldConStr.setBounds(new Rectangle(90, 18, 240, 23));\r\n\t\t}\r\n\t\treturn jTextFieldConStr;\r\n\t}",
"private org.gwtbootstrap3.client.ui.ListDropDown get_f_ListDropDown20() {\n return build_f_ListDropDown20();\n }",
"public IInputType getPrimaryInputType();",
"@DefaultHandler\n public Resolution form() {\n return new ForwardResolution(MAIN_VIEW);\n }",
"@NonNull\n ElementFactory<?, ?, ?, ?> getElementFactory();",
"private static JMenu getInputMenu(final EnvironmentFrame frame, final int specialCaseForTuringConverted) {\n\t\tfinal Environment environment = frame.getEnvironment();\n\t\tfinal JMenu menu = new JMenu(\"Input\");\n\t\tfinal Serializable object = environment.getObject();\n\t\tif (UserControlParseAction.isApplicable(object)) {\n\t\t\taddItem(menu,\n\t\t\t\t\tnew UserControlParseAction((edu.duke.cs.jflap.gui.environment.GrammarEnvironment) environment));\n\t\t}\n\t\tif (GrammarAction.isApplicable(object)) {\n\t\t\taddItem(menu,\n\t\t\t\t\tnew TuringBruteParseAction((edu.duke.cs.jflap.gui.environment.GrammarEnvironment) environment));\n\t\t}\n\n\t\treturn menu;\n\t}",
"public Form getCreationForm() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getPublicationForm(creation.getName(), currentRole,\r\n getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.ERR_NO_CREATION_FORM\", e);\r\n }\r\n }",
"public void buildAndShowListForm() {\n GeyserAdvancement categoryAdvancement = storedAdvancements.get(currentAdvancementCategoryId);\n String language = session.locale();\n\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .title(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getTitle(), language))\n .content(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getDescription(), language));\n\n List<GeyserAdvancement> visibleAdvancements = new ArrayList<>();\n if (currentAdvancementCategoryId != null) {\n for (GeyserAdvancement advancement : storedAdvancements.values()) {\n boolean earned = isEarned(advancement);\n if (earned || !advancement.getDisplayData().isHidden()) {\n if (advancement.getParentId() != null && currentAdvancementCategoryId.equals(advancement.getRootId(this))) {\n String color = earned ? advancement.getDisplayColor() : \"\";\n builder.button(color + MessageTranslator.convertMessage(advancement.getDisplayData().getTitle()) + '\\n');\n\n visibleAdvancements.add(advancement);\n }\n }\n }\n }\n\n builder.button(GeyserLocale.getPlayerLocaleString(\"gui.back\", language));\n\n builder.closedResultHandler(() -> {\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n\n }).validResultHandler((response) -> {\n if (response.getClickedButtonId() < visibleAdvancements.size()) {\n GeyserAdvancement advancement = visibleAdvancements.get(response.clickedButtonId());\n buildAndShowInfoForm(advancement);\n } else {\n buildAndShowMenuForm();\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n }\n });\n\n session.sendForm(builder);\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.BooleanValue, io.dstore.values.BooleanValue.Builder, io.dstore.values.BooleanValueOrBuilder> \n getImportConfigurationFieldBuilder() {\n if (importConfigurationBuilder_ == null) {\n importConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.BooleanValue, io.dstore.values.BooleanValue.Builder, io.dstore.values.BooleanValueOrBuilder>(\n getImportConfiguration(),\n getParentForChildren(),\n isClean());\n importConfiguration_ = null;\n }\n return importConfigurationBuilder_;\n }",
"public TextInput getZweck() throws RemoteException\n {\n if (zweck != null)\n return zweck;\n \n SepaDauerauftrag t = getTransfer();\n zweck = new TextInput(getTransfer().getZweck(),HBCIProperties.HBCI_FOREIGNTRANSFER_USAGE_MAXLENGTH);\n zweck.setValidChars(HBCIProperties.HBCI_SEPA_VALIDCHARS_RELAX);\n zweck.setMandatory(true);\n if (t.isActive())\n zweck.setEnabled(getBPD().getBoolean(\"usageeditable\",true));\n return zweck;\n }",
"java.lang.String getFormName();",
"public VDU.Builder getVdusBuilder(int index) {\n return getVdusFieldBuilder().getBuilder(index);\n }",
"public Form getUpdateForm() throws PublicationTemplateException;",
"private javax.swing.JTextField getAbonadosTF() {\n\t\tif(abonadosTF == null) {\n\t\t\tabonadosTF = new javax.swing.JTextField();\n\t\t\tabonadosTF.setPreferredSize(new java.awt.Dimension(30,20));\n\t\t\tabonadosTF.setEditable(false);\n\t\t\tabonadosTF.setBackground(new java.awt.Color(242,242,238));\n\t\t\tabonadosTF.setBorder(javax.swing.BorderFactory.createEmptyBorder(0,0,0,0));\n\t\t\tabonadosTF.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12));\n\t\t\tabonadosTF.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\t\t\tabonadosTF.setFocusable(false);\n\t\t}\n\t\treturn abonadosTF;\n\t}",
"public MapConfiguration getConfiguration() throws IOException,\n\t\t\tInstantiationException, IllegalAccessException {\n\n\t\tMapContext context = (MapContext) modelRepository\n\t\t\t\t.loadObject(new ResourceKey(\"Form@12\"));\n\n\t\tif (context != null) {\n\t\t\tMapConfiguration configuration = mapFactory\n\t\t\t\t\t.getConfiguration(context);\n\n\t\t\t// Retrieve context instance from configuration.\n\t\t\tcontext = configuration.getContext();\n\n\t\t\t// Reset layers\n\t\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\t\t\t\tlayer.setFilter(null);\n\t\t\t\tlayer.setHidden(true);\n\t\t\t\tlayer.setSelection(Collections.EMPTY_LIST);\n\t\t\t}\n\n\t\t\t// Add edit layer to context\n\t\t\tmapFactory.createGeometryLayer(context, GEOMETRY_LAYER_NAME, null,\n\t\t\t\t\tPoint.class, null, true, \"single\", null, null);\n\n\t\t\t// Start configuratie zoomt naar Provincie OVL\n\t\t\tFeatureMapLayer provincieLayer = (FeatureMapLayer) context\n\t\t\t\t\t.getLayer(\"provincie\");\n\t\t\tprovincieLayer.setHidden(false);\n\t\t\tProvincie provincie = (Provincie) modelRepository\n\t\t\t\t\t.getUniqueResult(modelRepository.searchObjects(\n\t\t\t\t\t\t\tnew DefaultQuery(\"Provincie\"), true, true));\n\t\t\tEnvelope envelope = GeometryUtils.getEnvelope(provincie.getGeom());\n\t\t\tcontext.setBoundingBox(envelope);\n\t\t\tsetBaseLayerName(\"tms\");\n\t\t\treturn configuration;\n\t\t}\n\n\t\treturn null;\n\t}"
] | [
"0.5884574",
"0.5412889",
"0.48319927",
"0.47448197",
"0.47401002",
"0.47014093",
"0.46292093",
"0.46082565",
"0.46006083",
"0.45530623",
"0.4533731",
"0.45012754",
"0.44973502",
"0.44786593",
"0.446653",
"0.44633454",
"0.44375646",
"0.44218567",
"0.4416011",
"0.44156098",
"0.4408691",
"0.44032982",
"0.4376369",
"0.43721545",
"0.43593982",
"0.43564343",
"0.43325815",
"0.4330297",
"0.43269804",
"0.43173218",
"0.43173218",
"0.43173218",
"0.43037638",
"0.43000168",
"0.42812815",
"0.4277115",
"0.4259043",
"0.42520034",
"0.42345873",
"0.42341968",
"0.423014",
"0.42294148",
"0.42243937",
"0.42152888",
"0.4212422",
"0.42051953",
"0.4204876",
"0.41877845",
"0.41870627",
"0.41866627",
"0.4185804",
"0.4164211",
"0.41599667",
"0.4158485",
"0.41549617",
"0.4151639",
"0.413872",
"0.41355348",
"0.41348872",
"0.41336742",
"0.41294518",
"0.41277412",
"0.41276342",
"0.4120542",
"0.41166082",
"0.41131258",
"0.40986982",
"0.40975824",
"0.4096589",
"0.40939608",
"0.40910593",
"0.40890798",
"0.40845308",
"0.40829712",
"0.4075756",
"0.40748245",
"0.40735894",
"0.40663373",
"0.40652698",
"0.40644774",
"0.40613386",
"0.4056445",
"0.4054397",
"0.4053348",
"0.4053253",
"0.40524948",
"0.4051675",
"0.40516534",
"0.40387344",
"0.40321776",
"0.4031601",
"0.40271547",
"0.40136424",
"0.40131685",
"0.40078652",
"0.40068123",
"0.40000126",
"0.39997813",
"0.39923882",
"0.39918607",
"0.398996"
] | 0.0 | -1 |
Convenience method to save a list of input statement into a new context, while deleting old statement that have become invalid (e.g. because they have been deleted or changed in some FStatementInput field). | public static Context saveStatementInputs(Repository rep,
List<Statement> addStmts, List<Statement> remStmts,
List<Pair<Statement,Statement>> changeList,
ContextLabel contextLabel)
throws Exception
{
Context context = Context.getFreshUserContext(contextLabel);
ReadWriteDataManager dm = ReadWriteDataManagerImpl.openDataManager(rep);
RequestMapper rm = EndpointImpl.api().getRequestMapper();
// collect add and remove list arising from change list
List<Statement> remByChange = new ArrayList<Statement>();
List<Statement> addByChange = new ArrayList<Statement>();
for (Pair<Statement,Statement> pair : changeList)
{
remByChange.add(pair.fst);
addByChange.add(pair.snd);
}
// next we record the deleted/changed statements that
// have been changed by someone else in meantime
List<Statement> allRemStmts = new ArrayList<Statement>();
allRemStmts.addAll(remStmts);
allRemStmts.addAll(remByChange);
List<Statement> concurrentlyRemovedStmts = new ArrayList<Statement>();
for (Statement stmt : allRemStmts)
{
try
{
List<Statement> existingStmts =
dm.getStatements(stmt.getSubject(), stmt.getPredicate(),
stmt.getObject(), false).asList();
boolean existsInEditableContext = false;
for (Statement existingStmt : existingStmts)
{
existsInEditableContext |= dm.isEditableStatement(existingStmt);
if (existsInEditableContext)
break;
}
if (!existsInEditableContext)
concurrentlyRemovedStmts.add(stmt);
}
catch (Exception e)
{
logger.error(e.getMessage(),e);
}
}
// next we record the added statements that are already present
// (e.g., have been added by another user before)
// have been changed by someone else in meantime
List<Statement> allAddStmts = new ArrayList<Statement>();
allAddStmts.addAll(addStmts);
allAddStmts.addAll(addByChange);
List<Statement> previouslyAddedStmts = new ArrayList<Statement>();
for (Statement stmt : allAddStmts)
{
try
{
List<Statement> existingStmts =
dm.getStatements(stmt.getSubject(), stmt.getPredicate(),
stmt.getObject(), false).asList();
boolean existsInEditableContext = false;
for (Statement existingStmt : existingStmts)
{
existsInEditableContext |= dm.isEditableStatement(existingStmt);
if (existsInEditableContext)
break;
}
if (existsInEditableContext)
previouslyAddedStmts.add(stmt);
}
catch (Exception e)
{
logger.error(e.getMessage(),e);
}
}
StringBuilder concurrentErrorMessage = new StringBuilder(); // "" means no error
// now we remove the remove statements (not including the change list)...
for (Statement s : remStmts)
{
if (concurrentlyRemovedStmts.contains(s))
{
String pVal = rm.getReconvertableUri(s.getPredicate(),false);
String oVal = (s.getObject() instanceof URI) ?
rm.getReconvertableUri((URI)s.getObject(),false) : s.getObject().stringValue();
concurrentErrorMessage.append(
"<li>Value-property pair " + pVal + " -> " + oVal
+ " has been deleted/modified by another user in meantime.</li>");
}
else
dm.removeInEditableContexts(s, context);
}
// ... and add the add statements (not including the change list) ...
Set<URI> uris = new HashSet<URI>();
for (Statement s : addStmts)
{
if (previouslyAddedStmts.contains(s))
{
String pVal = rm.getReconvertableUri(s.getPredicate(),false);
String oVal = (s.getObject() instanceof URI) ?
rm.getReconvertableUri((URI)s.getObject(),false) :
((Literal)(s.getObject())).getLabel();
concurrentErrorMessage.append(
"<li>Value-property pair " + pVal + " -> " + oVal
+ " is already present (will not be added again).</li>");
}
else
{
dm.addToContext(s,context);
uris.add((URI)s.getSubject());
}
}
// ... and finally process the change list
for (Pair<Statement,Statement> change : changeList)
{
if (concurrentlyRemovedStmts.contains(change.fst))
{
String pValOld = rm.getReconvertableUri(change.fst.getPredicate(),false);
String oValOld = (change.fst.getObject() instanceof URI) ?
rm.getReconvertableUri((URI)change.fst.getObject(),false) :
((Literal)(change.fst.getObject())).getLabel();
String pValNew = rm.getReconvertableUri(change.snd.getPredicate(),false);
String oValNew = (change.snd.getObject() instanceof URI) ?
rm.getReconvertableUri((URI)change.snd.getObject(),false) :
((Literal)(change.snd.getObject())).getLabel();
concurrentErrorMessage.append(
"<li>Value-property pair <i>" + pValOld + "</i> -> <i>" + oValOld
+ "</i> has been deleted/modified by another user in meantime. "
+ "Your change to the new value-property pair <i>"
+ pValNew + "</i> -> <i>" + oValNew + "</i> will not be propagated.</li>");
}
else if (previouslyAddedStmts.contains(change.snd))
{
String pValOld = rm.getReconvertableUri(change.fst.getPredicate(),false);
String oValOld = (change.fst.getObject() instanceof URI) ?
rm.getReconvertableUri((URI)change.fst.getObject(),false) :
((Literal)(change.fst.getObject())).getLabel();
String pValNew = rm.getReconvertableUri(change.snd.getPredicate(),false);
String oValNew = (change.snd.getObject() instanceof URI) ?
rm.getReconvertableUri((URI)change.snd.getObject(),false) :
((Literal)(change.snd.getObject())).getLabel();
concurrentErrorMessage.append(
"<li>Your requested change from <i>" + pValOld + "</i> -> <i>" + oValOld
+ "</i> to <i>" + pValNew + "</i> -> <i>" + oValNew + "</i> will not be"
+ "propagated: the new value-property pair is already present in the database.</li>");
}
else
{
dm.removeInEditableContexts(change.fst, context);
dm.addToContext(change.snd,context);
uris.add((URI)change.snd.getSubject());
}
}
dm.close();
// update wiki page
// attention: order in which we update the semantic links matters
KeywordIndexAPI.removeSemanticLinks(remStmts);
KeywordIndexAPI.changeSemanticLinks(changeList);
KeywordIndexAPI.removeSemanticLinks(remByChange);
// update keyword index
try
{
for (URI u : uris)
KeywordIndexAPI.replaceKeywordIndexEntry(u);
}
catch (Exception e)
{
logger.error(e.getMessage(), e);
}
// pass warning that not everything went fine to caller
if (concurrentErrorMessage.length()>0)
{
String msg = "Parts of the requested data changes have not been stored because they are conflicting:<br>";
msg += "<ul>";
msg += concurrentErrorMessage.toString();
msg += "</ul><br>";
msg += "These changes will not take effect.<br/><br/>";
throw new Exception(msg);
}
return context;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addStatements(List<Statement> statements) throws LpException {\n outputRdf.execute((connection) -> {\n connection.add(statements);\n });\n statements.clear();\n }",
"void saveStudents(ArrayList<Student> studentList) throws SQLException {\n clearTable(\"Students\");\n Connection conn = getConnection();\n String setStatement, studentName, prefRole;\n double attendance;\n int studentID, groupID;\n for (int i = 0; i < studentList.size(); i++) {\n Student currentStudent = studentList.get(i);\n studentName = currentStudent.getName();\n prefRole = currentStudent.getPrefRole();\n attendance = currentStudent.getAttendance();\n studentID = currentStudent.getStudentID();\n groupID = currentStudent.getGroupID();\n setStatement = \"INSERT INTO Students(studentID, studentName, prefRole, attendance, groupID) VALUES ('\"\n + studentID + \"', '\"\n + studentName + \"', '\"\n + prefRole + \"', '\"\n + attendance + \"', '\"\n + groupID + \"')\";\n Statement stm = conn.createStatement();\n stm.execute(setStatement);\n }\n }",
"protected void markStatementsForDeletion(StatementDocument currentDocument,\n\t\t\tList<Statement> deleteStatements) {\n\t\tfor (Statement statement : deleteStatements) {\n\t\t\tboolean found = false;\n\t\t\tfor (StatementGroup sg : currentDocument.getStatementGroups()) {\n\t\t\t\tif (!sg.getProperty().equals(statement.getMainSnak().getPropertyId())) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tStatement changedStatement = null;\n\t\t\t\tfor (Statement existingStatement : sg) {\n\t\t\t\t\tif (existingStatement.equals(statement)) {\n\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\ttoDelete.add(statement.getStatementId());\n\t\t\t\t\t} else if (existingStatement.getStatementId().equals(\n\t\t\t\t\t\t\tstatement.getStatementId())) {\n\t\t\t\t\t\t// (we assume all existing statement ids to be nonempty\n\t\t\t\t\t\t// here)\n\t\t\t\t\t\tchangedStatement = existingStatement;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!found) {\n\t\t\t\t\tStringBuilder warning = new StringBuilder();\n\t\t\t\t\twarning.append(\"Cannot delete statement (id \")\n\t\t\t\t\t\t\t.append(statement.getStatementId())\n\t\t\t\t\t\t\t.append(\") since it is not present in data. Statement was:\\n\")\n\t\t\t\t\t\t\t.append(statement);\n\n\t\t\t\t\tif (changedStatement != null) {\n\t\t\t\t\t\twarning.append(\n\t\t\t\t\t\t\t\t\"\\nThe data contains another statement with the same id: maybe it has been edited? Other statement was:\\n\")\n\t\t\t\t\t\t\t\t.append(changedStatement);\n\t\t\t\t\t}\n\t\t\t\t\tlogger.warn(warning.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected void markStatementsForInsertion(\n\t\t\tStatementDocument currentDocument, List<Statement> addStatements) {\n\t\tfor (Statement statement : addStatements) {\n\t\t\taddStatement(statement, true);\n\t\t}\n\n\t\tfor (StatementGroup sg : currentDocument.getStatementGroups()) {\n\t\t\tif (this.toKeep.containsKey(sg.getProperty())) {\n\t\t\t\tfor (Statement statement : sg) {\n\t\t\t\t\tif (!this.toDelete.contains(statement.getStatementId())) {\n\t\t\t\t\t\taddStatement(statement, false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void edit(List<InsertObject> inserts);",
"void removeAll(Iterator<? extends Statement> statements)\r\n\t\t\tthrows ModelRuntimeException;",
"protected void applyNewStatements() {\r\n\t\tbldInfView.updateCurrentDirectory(bldInfView.getModel().getPath());\r\n\r\n\t\tapplyNewListArgumentStatements();\r\n\t\tapplyNewBlockStatements();\r\n\t}",
"protected void markStatementsForUpdate(StatementDocument currentDocument,\n\t\t\tList<Statement> addStatements, List<Statement> deleteStatements) {\n\t\tmarkStatementsForDeletion(currentDocument, deleteStatements);\n\t\tmarkStatementsForInsertion(currentDocument, addStatements);\n\t}",
"void reWrite(TaskList list) throws InvalidCommandException;",
"public void prepareUpdateAll() {\n setCallFromStatement();// Will build an SQLUpdateAllStatement\n clearStatement();// The statement is no longer require so can be released.\n super.prepareUpdateAll();\n }",
"public StatementUpdate(StatementDocument currentDocument,\n\t\t\tList<Statement> addStatements, List<Statement> deleteStatements) {\n\t\tthis.currentDocument = currentDocument;\n\t\tthis.toKeep = new HashMap<>();\n\t\tthis.toDelete = new ArrayList<>();\n\t\tmarkStatementsForUpdate(currentDocument, addStatements,\n\t\t\t\tdeleteStatements);\n\t\tthis.mapper = new DatamodelMapper(currentDocument.getEntityId().getSiteIri());\n\t}",
"public void doSave() throws Exception {\r\n\t\tif ((_listForm != null && _listForm.getDataStore() != _ds) || _mode == MODE_LIST_OFF_PAGE) {\r\n\t\t\tif (getPageDataStoresStatus() == DataStoreBuffer.STATUS_NEW) {\r\n\t\t\t\tdoCancel();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (getDataStore() != null) {\r\n\t\t\tDataStoreBuffer dsb = getDataStore();\r\n\t\t\ttry {\r\n\t\t\t\tdoDataStoreUpdate();\r\n\t\t\t} catch (DirtyDataException ex) {\r\n\t\t\t\tif (_validator != null)\r\n\t\t\t\t\t_validator.addErrorMessage(_dirtyDataError);\r\n\t\t\t} catch (DataStoreException ex) {\r\n\t\t\t\tif (_validator != null)\r\n\t\t\t\t\t_validator.addErrorMessage(ex.getMessage(), ((JspController) getPage()).getBoundComponent(_ds, ex.getColumn()), ex.getRow());\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tif (_validator != null)\r\n\t\t\t\t\t_validator.addErrorMessage(ex.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_mode == MODE_LIST_ON_PAGE) {\r\n\t\t\tif (_reloadRowAfterSave) {\r\n\t\t\t\tif (_ds instanceof DataStore)\r\n\t\t\t\t\t((DataStore)_ds).reloadRow(_ds.getRow());\r\n\t\t\t}\r\n\r\n\t\t\tif (_listForm != null && _listForm.getDataStore() != _ds) {\r\n\t\t\t\tDataStoreRow source = _ds.getDataStoreRow(_ds.getRow(), DataStoreBuffer.BUFFER_STANDARD);\r\n\t\t\t\tif (_listSelectedRow != null)\r\n\t\t\t\t\tsource.copyTo(_listSelectedRow);\r\n\t\t\t\telse {\r\n\t\t\t\t\t_listSelectedRow = _listForm.getDataStore().getDataStoreRow(_listForm.getDataStore().insertRow(), DataStoreBuffer.BUFFER_STANDARD);\r\n\t\t\t\t\tsource.copyTo(_listSelectedRow);\r\n\t\t\t\t}\r\n\t\t\t\tDataStoreBuffer dsb = _listForm.getDataStore();\r\n\t\t\t\tif (dsb != null && dsb instanceof DataStore) {\r\n\t\t\t\t\tif (_reloadRowAfterSave ) {\r\n\t\t\t\t\t\tdsb.setRowStatus(DataStoreBuffer.STATUS_NOT_MODIFIED);\r\n\t\t\t\t\t\t((DataStore)dsb).reloadRow();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tsyncListFormPage();\r\n\t\t} else\r\n\t\t\treturnToListPage(true);\r\n\t}",
"public void prepareDeleteAll() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareDeleteAll();\n }",
"public void edit(Statement oldStatement, List<Statement> newStatements) {\n\t\tlog(\"edit statement of \" + element.getWord() + \": \" +\n\t\t\t\toldStatement.getText(getDefaultLanguage()) + \" > \" +\n\t\t\t\tgetStatementsString(newStatements));\n\t\t\n\t\tsynchronized (ontology) {\n\t\t\tif (statements.contains(oldStatement)) {\n\t\t\t\tint i = statements.indexOf(oldStatement);\n\t\t\t\tstatements.remove(i);\n\t\t\t\tstatements.addAll(i, newStatements);\n\t\t\t} else {\n\t\t\t\tlog(\"error: statement is not around anymore\");\n\t\t\t\tstatements.addAll(0, newStatements);\n\t\t\t}\n\t\t\tif (ontology != null) {\n\t\t\t\tif (oldStatement instanceof Sentence) {\n\t\t\t\t\tontology.retractSentence((Sentence) oldStatement);\n\t\t\t\t}\n\t\t\t\tfor (Statement s : newStatements) {\n\t\t\t\t\tif (s instanceof Sentence) {\n\t\t\t\t\t\tontology.commitSentence((Sentence) s);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tontology.getStorage().save(element);\n\t\t\t}\n\t\t}\n\t}",
"void bulkInsertOrReplace (List<Consumption> entities);",
"public static synchronized void insertQuestions(Context context,\n\t\t\tList<ParseObject> questionsList, String tableName)\n\t\t\tthrows SQLException, NullPointerException {\n\t\tQADatabaseHelper dbHelper = QADatabaseHelper.getInstance(context);\n\t\tSQLiteDatabase db = dbHelper.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\n\t\tfor (ParseObject question : questionsList) {\n\t\t\tvalues.put(COLUMN_NAME_PRIMARY_KEY,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_PRIMARY_KEY));\n\t\t\tvalues.put(COLUMN_NAME_QUESTION,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_QUESTION));\n\t\t\tvalues.put(COLUMN_NAME_OPTION1,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_OPTION1));\n\t\t\tvalues.put(COLUMN_NAME_OPTION2,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_OPTION2));\n\t\t\tvalues.put(COLUMN_NAME_OPTION3,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_OPTION3));\n\t\t\tvalues.put(COLUMN_NAME_OPTION4,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_OPTION4));\n\t\t\tvalues.put(COLUMN_NAME_ANSWER,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_ANSWER));\n\t\t\tvalues.put(COLUMN_NAME_IS_FETCHED, 0);\n\t\t\tvalues.put(COLUMN_NAME_DIFFICULTY_LEVEL,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_DIFFICULTY_LEVEL));\n\t\t\tFormatter formatter = new Formatter();\n\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\tformatter.format(\"%tc\", calendar);\n\t\t\tformatter.close();\n\n\t\t\tDate originalDate = calendar.getTime();\n\n\t\t\tvalues.put(COLUMN_NAME_UPDATED_AT, originalDate.toString());\n\n\t\t\ttry {\n\t\t\t\tdb.replace(tableName, null, values);\n\t\t\t} catch (Exception exception) {\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tdb.close();\n\t}",
"@Override\n public int bathSave(List<T> entitys) throws Exception {\n return mapper.insertList(entitys);\n }",
"@Transactional\r\n\tprotected void removeExtraQuestionsIfAny(List<QuestionTransferObject> questiondtos) {\r\n\t\t//Method copied from FormBuilderEJB\r\n\t\t\r\n\t\tfor (QuestionTransferObject qdto : questiondtos) {\r\n\t\t\tif (qdto.getDisplayOrder() == MARK_TO_KEEP_IN_UPDATE)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\tString qSeqid = qdto.getQuesIdseq();\r\n\t\t\tlogger.debug(\"Found a question to delete: [\" + qdto.getPublicId() + \"|\" + qdto.getVersion() + \"|\" + qSeqid);\r\n\t\t\t\r\n\t\t\t//delete question\r\n\t\t\tquestionV2Dao.deleteQuestion(qdto.getQuesIdseq());\r\n\t\t\tlogger.debug(\"Done deleting question\");\r\n\t\t\t\r\n\t\t\t//delete instructions\r\n\t\t\tList instructions = this.questInstructionV2Dao.getInstructions(qSeqid);\r\n\t\t\tif (instructions != null && instructions.size() > 0) {\r\n\t\t\t\tlogger.debug(\"Deleting instructions for question...\");\r\n\t\t\t\tfor (int i = 0; i < instructions.size(); i++) {\r\n\t\t\t\t\tInstructionTransferObject instr = (InstructionTransferObject)instructions.get(i);\r\n\t\t\t\t\tthis.questInstructionV2Dao.deleteInstruction(instr.getIdseq());\r\n\t\t\t\t\tlogger.debug(\"Deleted an instruction for question\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//delete valid values\r\n\t\t\tList<String> vvIds = this.formValidValueV2Dao.getValidValueSeqidsByQuestionSeqid(qSeqid);\r\n\t\t\tif (vvIds != null) {\r\n\t\t\t\tfor (String vvid : vvIds) {\r\n\t\t\t\t\t//This calls remove_value sp which takes care of vv and instruction\r\n\t\t\t\t\tformValidValueV2Dao.deleteFormValidValue(vvid);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"private void addStatementsToBlock(Block block, List<Statement> statements) {\n\t\tfor (Statement s : statements) {\r\n\t\t\tblock.addStatement(s.makeClone());\r\n\t\t}\r\n\t}",
"List<T> saveOrUpdateList(final List<T> entitiesList);",
"public void saveAll(List list);",
"@InsertProvider(type = ReplaceListProvider.class, method = \"dynamicSQL\")\n int replaceList(List<? extends T> recordList);",
"void saveLineItemList(List<LineItem> lineItemList);",
"public void executeTransaction(List<String> sql) throws SQLException {\n try (Connection connection = getConnection()) {\n\n Statement statement = connection.createStatement();\n\n String into = \"\";\n\n //connection.setAutoCommit(false);\n for (String s : sql) {\n if (s.trim().equals((\"\")) || s.trim().startsWith(\"/*\")) {\n continue;\n }\n into += s;\n\n if (s.endsWith(\";\")) {\n statement.addBatch(into);\n into = \"\";\n }\n }\n\n statement.executeBatch();\n\n statement.close();\n\n //connection.commit();\n }\n }",
"@Override\r\n\tpublic void saveBatchSysPrivilege(List<SysPrivilege> sysPrivilegeLs) {\n\t\tsysPrivilegeDao.addBacth(sysPrivilegeLs);\r\n\t}",
"public void setStmtList(List<Stmt> list) {\n setChild(list, 0);\n }",
"protected void addStatement(Statement statement, boolean isNew) {\n\t\tPropertyIdValue pid = statement.getMainSnak().getPropertyId();\n\n\t\t// This code maintains the following properties:\n\t\t// (1) the toKeep structure does not contain two statements with the\n\t\t// same statement id\n\t\t// (2) the toKeep structure does not contain two statements that can\n\t\t// be merged\n\t\tif (this.toKeep.containsKey(pid)) {\n\t\t\tList<StatementWithUpdate> statements = this.toKeep.get(pid);\n\t\t\tfor (int i = 0; i < statements.size(); i++) {\n\t\t\t\tStatement currentStatement = statements.get(i).statement;\n\t\t\t\tboolean currentIsNew = statements.get(i).write;\n\n\t\t\t\tif (!\"\".equals(currentStatement.getStatementId())\n\t\t\t\t\t\t&& currentStatement.getStatementId().equals(\n\t\t\t\t\t\t\t\tstatement.getStatementId())) {\n\t\t\t\t\t// Same, non-empty id: ignore existing statement as if\n\t\t\t\t\t// deleted\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tStatement newStatement = mergeStatements(statement,\n\t\t\t\t\t\tcurrentStatement);\n\t\t\t\tif (newStatement != null) {\n\t\t\t\t\tboolean writeNewStatement = (isNew || !newStatement\n\t\t\t\t\t\t\t.equals(statement))\n\t\t\t\t\t\t\t&& (currentIsNew || !newStatement\n\t\t\t\t\t\t\t\t\t.equals(currentStatement));\n\t\t\t\t\t// noWrite: (newS == statement && !isNew)\n\t\t\t\t\t// || (newS == cur && !curIsNew)\n\t\t\t\t\t// Write: (newS != statement || isNew )\n\t\t\t\t\t// && (newS != cur || curIsNew)\n\n\t\t\t\t\tstatements.set(i, new StatementWithUpdate(newStatement,\n\t\t\t\t\t\t\twriteNewStatement));\n\n\t\t\t\t\t// Impossible with default merge code:\n\t\t\t\t\t// Kept here for future extensions that may choose to not\n\t\t\t\t\t// reuse this id.\n\t\t\t\t\tif (!\"\".equals(statement.getStatementId())\n\t\t\t\t\t\t\t&& !newStatement.getStatementId().equals(\n\t\t\t\t\t\t\t\t\tstatement.getStatementId())) {\n\t\t\t\t\t\tthis.toDelete.add(statement.getStatementId());\n\t\t\t\t\t}\n\t\t\t\t\tif (!\"\".equals(currentStatement.getStatementId())\n\t\t\t\t\t\t\t&& !newStatement.getStatementId().equals(\n\t\t\t\t\t\t\t\t\tcurrentStatement.getStatementId())) {\n\t\t\t\t\t\tthis.toDelete.add(currentStatement.getStatementId());\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstatements.add(new StatementWithUpdate(statement, isNew));\n\t\t} else {\n\t\t\tList<StatementWithUpdate> statements = new ArrayList<>();\n\t\t\tstatements.add(new StatementWithUpdate(statement, isNew));\n\t\t\tthis.toKeep.put(pid, statements);\n\t\t}\n\t}",
"@PutMapping(\"/updateAllDetails\")\n\tpublic void updateMultiplecourses(@Valid @RequestBody List<Courses> courseList)\n\t\t\tthrows ConstraintViolationException {\n\t\ttry {\n\t\t\tcourseService.updateMultipleDetails(courseList);\n\t\t} catch (TransactionSystemException e) {\n\t\t\tif (e.getRootCause() instanceof ConstraintViolationException) {\n\t\t\t\tConstraintViolationException constraintViolationException = (ConstraintViolationException) e\n\t\t\t\t\t\t.getRootCause();\n\t\t\t\tthrow new ConstraintViolationException(constraintViolationException.getConstraintViolations());\n\t\t\t}\n\t\t}\n\t}",
"public List<Integer> updateMultiline(String script, Object... params) {\n String[] statements = script.split(\";\");\n List<Integer> list = new ArrayList<>();\n for (String s : statements) {\n if (s.isEmpty()) continue;\n s = s.trim();\n try {\n PreparedStatement statement = connection.prepareStatement(s);\n Queries.setValues(statement, params);\n list.add(statement.executeUpdate());\n } catch (SQLException ex) {\n Logger.getLogger(SQLDataConnector.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return list;\n }",
"@Override\r\n\tpublic void visit(StmtListNode statementList) {\r\n\t\tint size = statementList.size();\r\n\t\tStmtNode stmt = null;\r\n\t\tboolean deadCode = false;\r\n\t\tboolean remove = false;\r\n\t\tfor(int i=0;i<size;i++){\r\n\t\t\tstmt = statementList.get(i);\r\n\t\t\t\r\n\t\t\t//Top frame empty? Dead code!\r\n\t\t\tif(execPathStack.isTopFrameEmpty()&&!deadCode){\r\n\t\t\t\tProblem p = Problem.ofType(ProblemId.UNREACHABLE_CODE).at(stmt)\r\n\t\t\t\t\t\t\t.raise();\r\n\t\t\t\tremove = p.wantRemove();\r\n\t\t\t\tdeadCode = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Link statements for the exec path\r\n\t\t\texecPathStack.popFrameAndConnect(stmt);\t\t\t\r\n\t\t\t\r\n\t\t\t//Check if on top\r\n\t\t\tif(isOnTop){\r\n\t\t\t\tif(!(stmt instanceof LocalVarDeclStmtNode)){\r\n\t\t\t\t\tisOnTop = false;\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\tstmt.accept(this);\r\n\t\t\t\r\n\t\t\tif(remove){\r\n\t\t\t\tstatementList.get(i);\r\n\t\t\t\tsize--;\r\n\t\t\t\ti--;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//If this was dead code, throw away the result and push an empty frame\r\n\t\tif(deadCode){\r\n\t\t\texecPathStack.popFrameAndDiscard();\r\n\t\t\texecPathStack.pushFrame();\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void addBatch(List<CardApply> list) {\n\t\tfor (CardApply cardApply : list) {\r\n\t\t\tcardApplyDao.save(cardApply);\r\n\t\t}\r\n\t}",
"public interface ModelAddRemove extends ClosableIterable<Statement>,\r\n\t\tModelWriter, Lockable {\r\n\r\n\t// ////////////\r\n\t// diffing\r\n\r\n\t/**\r\n\t * Apply the changes given by this diff <emph>in one atomic operation</emph>\r\n\t * \r\n\t * Implementations must check that all statements to be removed are still in\r\n\t * the Model. Otherwise an exception is thrown.\r\n\t * \r\n\t * First all triples to be removed are removed, then triples to be added are\r\n\t * added.\r\n\t * \r\n\t * @param diff\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid update(DiffReader diff) throws ModelRuntimeException;\r\n\r\n\t/**\r\n\t * @param statements\r\n\t * @return a Diff between this model and the statements given in the\r\n\t * iterator\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tDiff getDiff(Iterator<? extends Statement> statements)\r\n\t\t\tthrows ModelRuntimeException;\r\n\r\n\t/**\r\n\t * Removes all statements from this model.\r\n\t * \r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeAll() throws ModelRuntimeException;\r\n\r\n\t/**\r\n\t * Removes all statements contained in 'other' from this model =\r\n\t * 'difference'\r\n\t * \r\n\t * @param other\r\n\t * another RDF2GO model\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeAll(Iterator<? extends Statement> statements)\r\n\t\t\tthrows ModelRuntimeException;\r\n\r\n\t// /////////////////\r\n\t// remove\r\n\r\n\t/**\r\n\t * remove a (subject, property ,object)-statement from the model\r\n\t * \r\n\t * @param subject\r\n\t * URI or Object (= blankNode)\r\n\t * @param predicate\r\n\t * @param object\r\n\t * URI or String (=plainLiteral) or BlankNode (=blankNode) or\r\n\t * TypedLiteral or LanguageTagLiteral\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeStatement(Resource subject, URI predicate, Node object)\r\n\t\t\tthrows ModelRuntimeException;\r\n\r\n\tvoid removeStatement(Resource subject, URI predicate, String literal)\r\n\t\t\tthrows ModelRuntimeException;\r\n\r\n\t/**\r\n\t * remove a (subject, property ,literal, language tag)-statement from the\r\n\t * model\r\n\t * \r\n\t * @param subject\r\n\t * @param predicate\r\n\t * @param literal\r\n\t * @param languageTag\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeStatement(Resource subject, URI predicate, String literal,\r\n\t\t\tString languageTag) throws ModelRuntimeException;\r\n\r\n\t/**\r\n\t * remove a (subject, property ,literal, datatype)-statement from the model\r\n\t * \r\n\t * datatype often is an uri for a xml schema datatype (xsd)\r\n\t * \r\n\t * @param subject\r\n\t * @param predicate\r\n\t * @param literal\r\n\t * @param datatypeURI\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeStatement(Resource subject, URI predicate, String literal,\r\n\t\t\tURI datatypeURI) throws ModelRuntimeException;\r\n\r\n\t/**\r\n\t * remove a rdf2go-statement from the model\r\n\t * \r\n\t * @param statement\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeStatement(Statement statement) throws ModelRuntimeException;\r\n\r\n\tvoid removeStatement(String subjectURIString, URI predicate, String literal)\r\n\t\t\tthrows ModelRuntimeException;\r\n\r\n\t/**\r\n\t * remove a (subject, property ,literal, language tag)-statement from the\r\n\t * model\r\n\t * \r\n\t * @param subject\r\n\t * @param predicate\r\n\t * @param literal\r\n\t * @param languageTag\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeStatement(String subjectURIString, URI predicate,\r\n\t\t\tString literal, String languageTag) throws ModelRuntimeException;\r\n\r\n\t/**\r\n\t * remove a (subject, property ,literal, datatype)-statement from the model\r\n\t * \r\n\t * datatype often is an uri for a xml schema datatype (xsd)\r\n\t * \r\n\t * @param subject\r\n\t * @param predicate\r\n\t * @param literal\r\n\t * @param datatypeURI\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeStatement(String subjectURIString, URI predicate,\r\n\t\t\tString literal, URI datatypeURI) throws ModelRuntimeException;\r\n\r\n}",
"public void commitChanges(){\n\t\tskipRulesView.updateSkipRule();\n\t\tvalidationRulesView.updateValidationRule();\n\t\tdynamicListsView.updateDynamicLists();\n\t}",
"private void updateEntityToDeleteList() throws SQLException\r\n\t{\r\n\t\tString sql;\r\n\t\tthis.stmt = this.connection.createStatement();\r\n\t\tResultSet rs;\r\n\t\tfor (final String entityName : entityNameListDelete)\r\n\t\t{\r\n\t\t\tfinal Entity entity = new Entity();\r\n\t\t\tsql = \"select identifier,name from dyextn_abstract_metadata where NAME \"\r\n\t\t\t\t\t+ UpdateMetadataUtil.getDBCompareModifier() + \"'\" + entityName + \"'\";\r\n\t\t\trs = this.stmt.executeQuery(sql);\r\n\t\t\tif (rs.next())\r\n\t\t\t{\r\n\t\t\t\tentity.setId(rs.getLong(1));\r\n\t\t\t\tentity.setName(rs.getString(2));\r\n\t\t\t}\r\n\t\t\tfinal TableProperties tableProperties = new TableProperties();\r\n\t\t\tsql = \"select identifier from dyextn_table_properties where ABSTRACT_ENTITY_ID=\"\r\n\t\t\t\t\t+ entity.getId();\r\n\t\t\trs = this.stmt.executeQuery(sql);\r\n\r\n\t\t\tif (rs.next())\r\n\t\t\t{\r\n\t\t\t\ttableProperties.setId(rs.getLong(1));\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tentity.setTableProperties(tableProperties);\r\n\r\n\t\t\tentityToDelete.add(entity);\r\n\t\t}\r\n\t}",
"@DISPID(5) //= 0x5. The runtime will prefer the VTID if present\n @VTID(11)\n void undoCheckOutEntities(\n IList pList);",
"@Override\n\tpublic ResultMessage deleteMany(ArrayList<String> idList) {\n\t\tString sql=\"delete from paymentlist where ID=?\";\n\t\ttry {\n\t\t\tfor(int i=0;i<idList.size();i++){\n\t\t\tstmt=con.prepareStatement(sql);\n\t\t\tstmt.setString(1, idList.get(i));\n\t\t\tstmt.executeUpdate();\n\t\t\t}\n\t\t\treturn ResultMessage.Success;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn ResultMessage.NotExist;\n\t\t}\t\t\t\n\t}",
"public void saveList(List<T> ListObject) throws DaoException;",
"void commitShadowList() {\n int shadowNextIdx = 0;\n for(int i = 0, j = 0; i < nextIdx && j < shadowList.size(); i++){\n if(actualList.get(i).equals(shadowList.get(j))){\n // replace the shadow list's element with actual list's element to persist execution state\n shadowList.set(j, actualList.get(i));\n j++;\n shadowNextIdx++;\n } else if(j != 0){\n break;\n }\n }\n List<Action> tmpList = shadowList;\n shadowList = actualList;\n actualList = tmpList;\n nextIdx = shadowNextIdx;\n shadowList.clear();\n }",
"public void edit(Statement oldStatement, Statement newStatement) {\n\t\tList<Statement> newStatements = new ArrayList<Statement>();\n\t\tnewStatements.add(newStatement);\n\t\tedit(oldStatement, newStatements);\n\t}",
"@Override\n public CommandResult execute(String[] inputs, ExerciseList exerciseList,\n String filePath, WorkoutSessionStorage workoutSessionStorage,\n boolean[] hasEndedWorkoutSessions) {\n assert (inputs != null && exerciseList != null && filePath != null\n && workoutSessionStorage != null && hasEndedWorkoutSessions != null) : \"File Corrupted\";\n String result = \"\";\n try {\n int removeIndex = WorkoutSessionParser.deleteParser(inputs);\n Exercise deletedExercise = exerciseList.exerciseList.get(removeIndex - 1);\n exerciseList.exerciseList.remove(removeIndex - 1);\n workoutSessionStorage.writeToStorage(filePath, exerciseList);\n result = WorkoutSessionUi.deleteExerciseSuccess(deletedExercise);\n } catch (IOException e) {\n return new CommandResult(WorkoutSessionUi.PRINT_ERROR);\n } catch (ArrayIndexOutOfBoundsException e) {\n return new CommandResult(WorkoutSessionUi.DELETE_FORMAT_ERROR);\n } catch (IndexOutOfBoundsException e) {\n return new CommandResult(WorkoutSessionUi.DELETE_INDEX_ERROR);\n } catch (SchwarzeneggerException e) {\n return new CommandResult(WorkoutSessionUi.DELETE_FORMAT_ERROR);\n }\n return new CommandResult(result, ExecutionResult.OK);\n }",
"@Override\n public RespResult<List<SqlExecRespDto>> batchExecuteUpdate(String username, List<SqlExecReqDto> updates) {\n return null;\n }",
"void exeSAVE()\n\t{\n\t\tif (!vldDATA())\n\t\t\treturn;\t\n\t\telse \n\t\t\tsetMSG(\"\",'E');\n\t\ttry\n\t\t{\t\n\t\t\tString L_strGRPCD=\"\";\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPADD_pbst))\n\t\t\t{\n\t\t\t\tthis.setCursor(cl_dat.M_curWTSTS_pbst);\n\t\t\t\tcl_dat.M_flgLCUPD_pbst = true;\n\t\t\t\tfor(int i=0;i<tblPRTLS.getRowCount();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tblPRTLS.getValueAt(i,TB1_PRTCD).toString().trim().length()<5)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tif(tblPRTLS.getValueAt(i,TB1_CHKFL).toString().trim().equals(\"true\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tM_strSQLQRY = \"UPDATE CO_PTMST SET \";\n\t\t\t\t\t\t\tM_strSQLQRY += \" PT_GRPCD = '\" + txtGRPCD.getText().toString().trim()+\"' WHERE \";\n\t\t\t\t\t\t\tM_strSQLQRY += \" PT_PRTTP= '\"+txtPRTTP.getText().trim()+\"'\";\n\t\t\t\t\t\t\tM_strSQLQRY += \" AND PT_PRTCD = '\" + tblPRTLS.getValueAt(i,TB1_PRTCD).toString().trim()+\"'\";\n\t\t\t\t\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tthis.setCursor(cl_dat.M_curDFSTS_pbst);\n\t\t\t\ttblPRTLS.clrTABLE();\n\t\t\t\ttblGRPLS.clrTABLE();\n\t\t\t\tgetDATA();\n\t\t\t\tgetDATA1();\n\t\t\t}\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPDEL_pbst))\n\t\t\t{\n\t\t\t\tthis.setCursor(cl_dat.M_curWTSTS_pbst);\n\t\t\t\tcl_dat.M_flgLCUPD_pbst = true;\t\n\t\t\t\tfor(int i=0;i<tblGRPLS.getRowCount();i++)\n\t\t\t\t{\n\t\t\t\t\tif(tblGRPLS.getValueAt(i,TB2_PRTCD).toString().trim().length()<5)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tif(tblGRPLS.getValueAt(i,TB2_CHKFL).toString().trim().equals(\"true\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tM_strSQLQRY = \"UPDATE CO_PTMST SET \";\n\t\t\t\t\t\tM_strSQLQRY += \" PT_GRPCD = 'XXXXX' WHERE \";\n\t\t\t\t\t\tM_strSQLQRY += \" PT_PRTTP= '\"+txtPRTTP.getText().trim()+\"'\";\n\t\t\t\t\t\tM_strSQLQRY += \" AND PT_PRTCD = '\" + tblGRPLS.getValueAt(i,TB2_PRTCD).toString().trim()+\"'\";\n\t\t\t\t\t\t \n\t\t\t\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.setCursor(cl_dat.M_curDFSTS_pbst);\n\t\t\t\ttblPRTLS.clrTABLE();\n\t\t\t\ttblGRPLS.clrTABLE();\n\t\t\t\tgetDATA();\n\t\t\t\tgetDATA1();\n\t\t\t}\n\t\t\tif(cl_dat.exeDBCMT(\"exeSAVE\"))\n\t\t\t{\n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPADD_pbst))\n\t\t\t\t\tsetMSG(\" Data Saved Successfully..\",'N'); \n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPMOD_pbst))\n\t\t\t\t\tsetMSG(\" Data Modified Successfully..\",'N'); \n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPDEL_pbst))\n\t\t\t\t\tsetMSG(\"Data Deleted Successsfully ..\",'N');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPADD_pbst))\n\t\t\t\t\tsetMSG(\"Error in saving details..\",'E'); \n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPMOD_pbst))\n\t\t\t\t setMSG(\"Error in Modified Data details..\",'E'); \n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPDEL_pbst))\n\t\t\t\t\tsetMSG(\"Error in Deleting data..\",'E');\n\t\t\t}\n\t\t}\n\t\tcatch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"exeSAVE\");\n\t\t}\t\n\t}",
"public void add(Statement followingStatement, List<Statement> newStatements) {\n\n\t\t\n\t\tlog(\"add statements of \" + element.getWord() + \": \" + getStatementsString(newStatements));\n\n\t\t//synchronized (ontology) {\n\t\t\tif (statements.contains(followingStatement)) {\n\t\t\t\tstatements.addAll(statements.indexOf(followingStatement), newStatements);\n\t\t\t} else {\n\t\t\t\tif (followingStatement != null) {\n\t\t\t\t\tlog(\"error: statement is not around anymore\");\n\t\t\t\t}\n\t\t\t\tstatements.addAll(newStatements);\n\t\t\t}\n\t\t\tif (ontology != null) {\n\t\t\t\tfor (Statement s : newStatements) {\n\t\t\t\t\tif (s instanceof Sentence) {\n\t\t\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t\t\t//ym\n\t\t\t\t\t\t\n\t\t\t\t\t\t//ontology.commitSentence((Sentence) s);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tontology.getStorage().save(element);\n\t\t\t}\n\t\t//}\n\t}",
"private static void insertListsInDataBase () throws SQLException {\n //Create object ActionsWithRole for working with table role\n ActionsCRUD<Role,Integer> actionsWithRole = new ActionsWithRole();\n for (Role role : roles) {\n actionsWithRole.create(role);\n }\n //Create object ActionsWithUsers for working with table users\n ActionsCRUD<User,Integer> actionsWithUsers = new ActionsWithUsers();\n for (User user : users) {\n actionsWithUsers.create(user);\n }\n //Create object ActionsWithAccount for working with table account\n ActionsCRUD<Account,Integer> actionsWithAccount = new ActionsWithAccount();\n for (Account account : accounts) {\n actionsWithAccount.create(account);\n }\n //Create object ActionsWithPayment for working with table payment\n ActionsCRUD<Payment,Integer> actionsWithPayment = new ActionsWithPayment();\n for (Payment payment : payments) {\n actionsWithPayment.create(payment);\n }\n }",
"final public void DeleteInsertWhere() throws ParseException {\n Exp exp; Composite upd, ope; Constant uri; Values values;\n upd = Composite.create(Update.COMPOSITE);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case WITH:\n jj_consume_token(WITH);\n uri = IRIrefConst();\n upd.setWith(uri);\n break;\n default:\n jj_la1[35] = jj_gen;\n ;\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case DELETE:\n jj_consume_token(DELETE);\n exp = QuadPattern();\n ope = Composite.create(Update.DELETE); ope.setPattern(exp); upd.add(ope);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case INSERT:\n jj_consume_token(INSERT);\n exp = QuadPattern();\n ope = Composite.create(Update.INSERT); ope.setPattern(exp); upd.add(ope);\n break;\n default:\n jj_la1[36] = jj_gen;\n ;\n }\n break;\n case INSERT:\n jj_consume_token(INSERT);\n exp = QuadPattern();\n ope = Composite.create(Update.INSERT); ope.setPattern(exp); upd.add(ope);\n break;\n default:\n jj_la1[37] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n label_4:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case USING:\n ;\n break;\n default:\n jj_la1[38] = jj_gen;\n break label_4;\n }\n jj_consume_token(USING);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case Q_IRIref:\n case QNAME_NS:\n case QNAME:\n uri = IRIrefConst();\n upd.addUsing(uri);\n break;\n case NAMED:\n jj_consume_token(NAMED);\n uri = IRIrefConst();\n upd.addNamed(uri);\n break;\n default:\n jj_la1[39] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n jj_consume_token(WHERE);\n exp = GroupGraphPattern();\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case VALUES:\n values = Values();\n upd.setValues(values);\n break;\n default:\n jj_la1[40] = jj_gen;\n ;\n }\n upd.setBody(exp); astu.add(upd);\n }",
"@Override\r\n public void undoTransaction() {\n data.getStudents().remove(newStu);\r\n data.getStudents().add(stu);\r\n }",
"void insertBatch(List<TABLE41> recordLst);",
"@Override\r\n\tpublic void undo() {\n\t\tfor(IShape shape : tempList)\r\n\t\t\tshapeList.remove(shape);\r\n\t}",
"public void setEditList(List<StepModel> stepList){\n //Guardamos el tamaña de la lista a modificar\n int prevSize = this.stepModelList.size();\n //Limpiamos la lista\n this.stepModelList.clear();\n //Si la lista que me pasan por parámtro es nula, la inicializo a vacia\n if(stepList == null) stepList = new ArrayList<>();\n //Añado la lista que me pasan por parámetro a la lista vaciada\n this.stepModelList.addAll(stepList);\n //Notifico al adaptador que el rango de item se ha eliminado\n notifyItemRangeRemoved(0, prevSize);\n //Notifico que se ha insertado un nuevo rango de items\n notifyItemRangeInserted(0, stepList.size());\n }",
"@Override\n public <S extends SecurityOrder> Iterable<S> saveAll(Iterable<S> securityOrders) {\n String updateSql = \"UPDATE security_order SET account_id=?, status=?, ticker=?, size=?, \"\n + \"price=?, notes=? WHERE id=?\";\n List<Object[]> batch = new ArrayList<>();\n securityOrders.forEach(securityOrder -> {\n if (!existsById(securityOrder.getId())) {\n throw new ResourceNotFoundException(\"Security order not found:\" + securityOrder.getId());\n }\n batch.add(makeUpdateValues(securityOrder));\n });\n int[] rows = jdbcTemplate.batchUpdate(updateSql, batch);\n int totalRow = Arrays.stream(rows).sum();\n if (totalRow != batch.size()) {\n throw new IncorrectResultSizeDataAccessException(\"Number of rows \", batch.size(), totalRow);\n }\n return (Iterable<S>) findAll();\n }",
"public void prepareUpdateObject() {\n // Require modify row to prepare.\n if (getModifyRow() == null) {\n return;\n }\n\n if (hasMultipleStatements()) {\n for (Enumeration statementEnum = getSQLStatements().elements();\n statementEnum.hasMoreElements();) {\n ((SQLModifyStatement)statementEnum.nextElement()).setModifyRow(getModifyRow());\n }\n } else if (getSQLStatement() != null) {\n ((SQLModifyStatement)getSQLStatement()).setModifyRow(getModifyRow());\n }\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareUpdateObject();\n }",
"public void restoreDatabase(Transaction[] transactionList) {\n databaseHandler.cleanTransactionDatabase();\n this.transactionList.clear();\n for (Transaction transaction : transactionList) {\n addTransaction(transaction.transactionAccountNumber,\n transaction.transactionAmount,\n transaction.transactionType, transaction.transactionJournalEntry, transaction.transactionTimestamp);\n }\n }",
"public void doRevertToSaved()\n {\n super.doRevertToSaved();\n revalidateSyntax();\n }",
"protected boolean updateStringListStatement(IASTListHolder<IASTLiteralTextNode> statement,\r\n\t\t\tList<String> list,\r\n\t\t\tListIterator<String> listIterator) { \r\n\t\treturn updateListStatement(statement, list, listIterator, \r\n\t\t\t\tnew PlatformStatementListConverter());\r\n\t}",
"public void ExitStatements() {\n try {\n preparedStatement.close();\n } catch (Exception e) {\n// MessageEmergent(\"Fail ExitStatements(): \"+e.getMessage());\n }\n }",
"@Test\r\n\tpublic void testRemoveStatements()\r\n\t\tthrows Exception\r\n\t{\r\n\t\ttestAdminCon.begin();\r\n\t\ttestAdminCon.add(john, lname, johnlname, dirgraph);\r\n\t\ttestAdminCon.add(john, fname, johnfname, dirgraph);\r\n\t\ttestAdminCon.add(john, email, johnemail, dirgraph);\r\n\t\ttestAdminCon.add(john, homeTel, johnhomeTel, dirgraph);\r\n\t\ttestAdminCon.add(micah, lname, micahlname);\r\n\t\ttestAdminCon.add(micah, fname, micahfname);\r\n\t\ttestAdminCon.add(micah, homeTel, micahhomeTel);\r\n\t\ttestAdminCon.commit();\r\n\t\t\r\n\t\ttestAdminCon.setDefaultRulesets(null);\r\n\t\tStatement st1 = vf.createStatement(john, fname, johnlname);\r\n\t\r\n\t\ttestAdminCon.remove(st1);\r\n\t\t\r\n\t\tAssert.assertEquals(\"There is no triple st1 in the repository, so it shouldn't be deleted\",7L, testAdminCon.size());\r\n\t\t\r\n\t\tStatement st2 = vf.createStatement(john, lname, johnlname);\r\n\t\tassertThat(testAdminCon.hasStatement(st2, false, dirgraph), is(equalTo(true)));\r\n\t\tassertThat(testAdminCon.hasStatement(st2, true, null, dirgraph), is(equalTo(true)));\r\n\t\tassertThat(testAdminCon.hasStatement(st2, true, null), is(equalTo(false)));\r\n\t\tassertThat(testAdminCon.hasStatement(john, lname, johnlname, true, null), is(equalTo(false)));\r\n\t\tassertThat(testAdminCon.hasStatement(john, lname, johnlname, true, (Resource)null, dirgraph, dirgraph1), is(equalTo(true)));\r\n\t\tassertThat(testAdminCon.hasStatement(st2, true), is(equalTo(true)));\r\n\t\ttestAdminCon.remove(st2, dirgraph);\r\n\t\tassertThat(testAdminCon.hasStatement(st2, true, null, dirgraph), is(equalTo(false)));\r\n\t\t\r\n\t\tAssert.assertEquals(6L, testAdminCon.size());\r\n\t\t\r\n\t\ttestAdminCon.remove(john,email, null);\r\n\t\tassertThat(testAdminCon.hasStatement(john, fname, johnfname, false, dirgraph), is(equalTo(true)));\r\n\t\tassertThat(testAdminCon.hasStatement(john, fname, johnfname, false), is(equalTo(true)));\r\n\t\tassertThat(testAdminCon.hasStatement(john, fname, johnfname, false, null), is(equalTo(false)));\r\n\t\tassertThat(testAdminCon.hasStatement(john, fname, johnfname, false, null, dirgraph), is(equalTo(true)));\r\n\t\tassertThat(testAdminCon.hasStatement(john, lname, johnlname, false, dirgraph), is(equalTo(false)));\r\n\t\ttestAdminCon.remove(john,null,null);\r\n\t\t\r\n\t\tassertThat(testAdminCon.hasStatement(john, lname, johnlname, false, dirgraph), is(equalTo(false)));\r\n\t\tassertThat(testAdminCon.hasStatement(john, fname, johnfname, false, dirgraph), is(equalTo(false)));\r\n\t\tassertThat(testAdminCon.hasStatement(john, fname, johnfname, false, null, dirgraph), is(equalTo(false)));\r\n\t\tassertThat(testAdminCon.hasStatement(john, lname, johnlname, false, (Resource)null, dirgraph), is(equalTo(false)));\r\n\t\tassertThat(testAdminCon.hasStatement(micah, homeTel, johnhomeTel, false, null), is(equalTo(false)));\r\n\t\tassertThat(testAdminCon.hasStatement(micah, homeTel, micahhomeTel, false, (Resource)null), is(equalTo(true)));\r\n\t\tassertThat(testAdminCon.hasStatement(micah, homeTel, micahhomeTel, false, null), is(equalTo(true)));\r\n\t\t\r\n\t\ttestAdminCon.remove((Resource)null, homeTel,(Value) null);\r\n\t\ttestAdminCon.remove((Resource)null, homeTel, (Value)null);\r\n\t\t\r\n\t\ttestAdminCon.remove(vf.createStatement(john, lname, johnlname), dirgraph);\r\n\t\tassertThat(testAdminCon.hasStatement(john, lname, johnlname, false), is(equalTo(false)));\r\n\t\tassertThat(testAdminCon.hasStatement(john, lname, johnlname, false, dirgraph), is(equalTo(false)));\r\n\t\ttestAdminCon.add(john, fname, johnfname, dirgraph);\r\n\r\n\t\tassertThat(testAdminCon.hasStatement(john, homeTel, johnhomeTel, false, dirgraph), is(equalTo(false)));\r\n\t\tassertThat(testAdminCon.hasStatement(micah, homeTel, micahhomeTel, false), is(equalTo(false)));\r\n\t\t\r\n\t\t\r\n\t\tassertThat(testAdminCon.hasStatement(john, fname, johnfname, false, dirgraph), is(equalTo(true)));\r\n\r\n\t\ttestAdminCon.remove(john, (URI)null, (Value)null);\r\n\t\tassertThat(testAdminCon.hasStatement(john, fname, johnfname, false, dirgraph), is(equalTo(false)));\r\n\t\tassertThat(testAdminCon.isEmpty(), is(equalTo(false)));\r\n\t\t\r\n\t\ttestAdminCon.remove(null, null, micahlname);\r\n\t\tassertThat(testAdminCon.hasStatement(micah, fname, micahfname, false), is(equalTo(true)));\r\n\t\tassertThat(testAdminCon.hasStatement(micah, fname, micahfname, false, null, dirgraph), is(equalTo(true)));\r\n\t\tassertThat(testAdminCon.hasStatement(null, null, null, false, null), is(equalTo(true)));\r\n\t\tassertThat(testAdminCon.hasStatement(null, null, null, false), is(equalTo(true)));\r\n\t\tassertThat(testAdminCon.hasStatement(null, null, null, false, dirgraph), is(equalTo(false)));\r\n\t\tassertThat(testAdminCon.hasStatement(micah, fname, micahfname, false, dirgraph1, dirgraph), is(equalTo(false)));\r\n\t\ttestAdminCon.remove((URI)null, null, null);\r\n\t\tassertThat(testAdminCon.isEmpty(), is(equalTo(true)));\r\n\t\tassertThat(testAdminCon.hasStatement((URI)null, (URI)null, (Literal)null, false,(Resource) null), is(equalTo(false)));\r\n\t}",
"public static void savingCompleteSchoolData(Context context, List<SchoolModel> schoolDataList) {\n ArrayList<ContentValues> cvList = new ArrayList<>();\n for (int i = 0; i < schoolDataList.size(); i++) {\n ContentValues schoolItem = new ContentValues();\n schoolItem.put(SchoolTable.Cols.ID, schoolDataList.get(i).getId());\n schoolItem.put(SchoolTable.Cols.SCHOOL_CODE, schoolDataList.get(i).getSchool_code());\n schoolItem.put(SchoolTable.Cols.URL, schoolDataList.get(i).getUrl());\n schoolItem.put(SchoolTable.Cols.ADDED_ON, schoolDataList.get(i).getAddedon());\n schoolItem.put(SchoolTable.Cols.STATUS, schoolDataList.get(i).getStatus());\n cvList.add(schoolItem);\n }\n context.getContentResolver().bulkInsert(SchoolTable.URI, cvList.toArray(new ContentValues[cvList.size()]));\n }",
"public void saveChanges() {\n if(finalListModel.isEmpty() || finalListModel.size() < initialListModel.size() ) {\n JOptionPane.showMessageDialog(null, \"Sorry, number of buttons should be \" +\n \"equal to the number of files in final list\");\n }\n// else if((finalListModel.toString()).equals(initialListModel.toString())) {\n// JOptionPane.showMessageDialog(null, \"Sorry, make different selections as \" +\n// \"both final and initial list are same\");\n// }\n else {\n save();\n initialListModel.removeAllElements();\n for (int i = 0; i < order.getItemCount(); i++) {\n initialListModel.addElement(finalListModel.getElementAt(i));\n }\n }\n }",
"@Override\n\tpublic Integer delProjectBatch(List<ProjectInfo> projList) {\n\t\treturn sqlSession.update(\"cn.sep.samp2.project.delProjectBatch\", projList);\n\t}",
"public void insert_values_in_list_items_local_db(String AgentID, String selected_ln, int list_incr) {\n\n // non_deleted_arraylist\n ArrayList<String> non_deleted_prod_id = get_non_deleted_product_id(selected_ln, AgentID, list_incr);\n\n // define contentvalues object\n ContentValues copy_values_int_list_item = new ContentValues();\n\n // set values of list items\n copy_values_int_list_item.put(GlobalProvider.LI_List_Name, selected_ln);\n copy_values_int_list_item.put(GlobalProvider.LI_Increment,list_incr);\n copy_values_int_list_item.put(GlobalProvider.LI_Login_User_Id,AgentID);\n copy_values_int_list_item.put(GlobalProvider.LI_deleted,\"0\");\n\n // loop on array of prod ids selected by user\n for(String curr_prod_ids : product_ids_for_list){\n\n // set prod ids into contentvalues object\n copy_values_int_list_item.put(GlobalProvider.LI_Product_ID, curr_prod_ids);\n if(!non_deleted_prod_id.contains(curr_prod_ids) || non_deleted_prod_id.isEmpty()) {\n // firing query to insert into local db of list item\n Uri uri = getContentResolver().insert(GlobalProvider.CONTENT_URI_List_Item,\n copy_values_int_list_item);\n Toast.makeText(this,\n \" Added data successfully in \" + selected_ln ,Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(this,\"Product is already exists in \" + selected_ln,Toast.LENGTH_LONG).show();\n }\n }\n }",
"protected void save(T[] items) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\n\t\t\tfor (T item : items) {\n\t\t\t\tsession.save(item);\n\t\t\t}\n\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute save\");\n\t\t}\n\t}",
"public void save(List<VSTPMsg> vstpMsgList) {\n vstpMsgRepository.save(vstpMsgList);\n }",
"public JSObject execSQL(String[] statements) {\n // Open the database for writing\n // Log.d(TAG, \"*** in execSQL: \");\n JSObject retObj = new JSObject();\n SQLiteDatabase db = null;\n try {\n db = getConnection(false, secret);\n retObj = execute(db, statements);\n return retObj;\n } catch (Exception e) {\n Log.d(TAG, \"Error: execSQL failed: \", e);\n retObj.put(\"changes\", Integer.valueOf(-1));\n retObj.put(\"message\", \"Error: execSQL failed: \" + e);\n return retObj;\n } finally {\n if (db != null) db.close();\n }\n }",
"public JSObject execSQL(String[] statements) {\n // Open the database for writing\n // Log.d(TAG, \"*** in execSQL: \");\n JSObject retObj = new JSObject();\n SQLiteDatabase db = null;\n try {\n db = getConnection(false, secret);\n retObj = execute(db, statements);\n return retObj;\n } catch (Exception e) {\n Log.d(TAG, \"Error: execSQL failed: \", e);\n retObj.put(\"changes\", Integer.valueOf(-1));\n retObj.put(\"message\", \"Error: execSQL failed: \" + e);\n return retObj;\n } finally {\n if (db != null) db.close();\n }\n }",
"public JSObject execute(SQLiteDatabase db, String[] statements) throws Exception {\n JSObject retObj = new JSObject();\n try {\n for (String cmd : statements) {\n if (!cmd.endsWith(\";\")) cmd += \";\";\n db.execSQL(cmd);\n }\n retObj.put(\"changes\", dbChanges(db));\n return retObj;\n } catch (Exception e) {\n throw new Exception(\"Execute failed\");\n } finally {\n if (db != null) db.close();\n }\n }",
"public void prepareInsertObject() {\n // Require modify row to prepare.\n if (getModifyRow() == null) {\n return;\n }\n\n if (hasMultipleStatements()) {\n for (Enumeration statementEnum = getSQLStatements().elements();\n statementEnum.hasMoreElements();) {\n ((SQLModifyStatement)statementEnum.nextElement()).setModifyRow(getModifyRow());\n }\n } else if (getSQLStatement() != null) {\n ((SQLModifyStatement)getSQLStatement()).setModifyRow(getModifyRow());\n }\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareInsertObject();\n }",
"private void saveInputs(int[] inputs, int[] outputs){\n\t\tthis.inputs.add(inputs);\n\t\tthis.outputs.add(outputs);\n\t}",
"void removeStatement(Statement statement) throws ModelRuntimeException;",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement insertNewFinancialStatements(int i);",
"public void update(List<ReasonerStatementPattern> patternList) {\n\t\tList<Statement> filteredReasonerStatements = reasoner\n\t\t\t\t.filterResults(patternList);\n\t\taddNewInferences(filteredReasonerStatements);\n\t\tremoveOldInferences(filterInferencesModel(patternList),\n\t\t\t\tfilteredReasonerStatements);\n\t\tlog.debug(\"Added: \" + addCount + \", Retracted: \" + retractCount);\n\t}",
"private void updateStidsWithUserDefined(ArrayList<Tupla<Integer, ArrayList<Integer>>> stids, ArrayList<ArrayList<Boolean>> totalBlocks) {\n int contador = 0;\r\n for (int i = 0; i < totalBlocks.size(); i++) {\r\n if (!totalBlocks.get(i).isEmpty()) {\r\n for (int j = 0; j < totalBlocks.get(i).size(); j++) {\r\n if (!totalBlocks.get(i).get(j)) {\r\n deleteInStids(stids, contador);\r\n }\r\n contador++;\r\n }\r\n }\r\n }\r\n }",
"public final void entryRuleStatementList() throws RecognitionException {\r\n try {\r\n // InternalGo.g:1105:1: ( ruleStatementList EOF )\r\n // InternalGo.g:1106:1: ruleStatementList EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getStatementListRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleStatementList();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getStatementListRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\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 return ;\r\n }",
"public static void saveOrUpdateSchoolData(Context context, List<SchoolModel> schoolDataList) {\n\n if(schoolDataList!=null && schoolDataList.size()>0) {\n for (SchoolModel schoolModel : schoolDataList) {\n\n ContentResolver resolver;\n resolver = context.getContentResolver();\n ContentValues values = prepareData(schoolModel);\n\n Cursor cursor;\n String condition = SchoolTable.Cols.ID + \"= '\" + schoolModel.getId() + \"'\";\n cursor = context.getContentResolver().query(SchoolTable.URI, null, condition, null, null);\n\n if (cursor != null && cursor.getCount() != 0) {\n resolver.update(SchoolTable.URI, values, condition, null);\n } else {\n resolver.insert(SchoolTable.URI, values);\n }\n }\n }\n }",
"private void saveGeneratedSchedules() {\n if (yesNoQuestion(\"(y) Do you want to save all of them? (n) Or just a few? \")) {\n scheduleList.addSchedulesToList(activeScheduleList);\n activeScheduleList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n return;\n }\n\n System.out.println(\"How many of the schedules to add? (The rest will be cleared afterwards)\");\n int numSchedulesToAdd = obtainIntSafely(0, activeScheduleList.size(), \"That is out of bounds\");\n if (numSchedulesToAdd == activeScheduleList.size()) {\n System.out.println(\"Selected maximum Amount, adding all\");\n }\n\n for (int i = 0; i < numSchedulesToAdd; i++) {\n System.out.println(\"What is the number of the schedule to save?\");\n int schedToAdd = obtainIntSafely(1, activeScheduleList.size(), \"That is out of bounds\");\n scheduleList.addScheduleToList(activeScheduleList.get(schedToAdd - 1));\n System.out.println(\"Done\");\n }\n\n activeScheduleList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n }",
"SaveUpdateCodeListResult saveorUpdateCodeList(ManageCodeListDetailModel currentDetails) throws CodeListNotUniqueException,\n\tCodeListOidNotUniqueException, ExcelParsingException, InvalidLastModifiedDateException,\n\tValueSetLastModifiedDateNotUniqueException;",
"protected abstract void prepareStatementForUpdate(PreparedStatement updateStatement, E newEntity, E oldEntity)\n\t\t\tthrows DAOException;",
"public int updateBatch(List list){\n \tif(list==null||list.size()<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.updateBatch(\"Resourcesvalue.updateByPK\", list);\n \treturn rows;\n }",
"@Override\n\tpublic void removeStatement(UpdateContext op, Resource subj, IRI pred, Value obj, Resource... contexts)\n\t\t\tthrows SailException {\n\t\tverifyIsOpen();\n\t\tverifyIsActive();\n\t\tsynchronized (removed) {\n\t\t\tassert removed.containsKey(op);\n\t\t\tCollection<Statement> pending = removed.get(op);\n\t\t\tif (contexts == null) {\n\t\t\t\tpending.add(new WildStatement(subj, pred, obj));\n\t\t\t} else if (contexts.length == 0) {\n\t\t\t\tpending.add(new WildStatement(subj, pred, obj, wildContext));\n\t\t\t} else {\n\t\t\t\tfor (Resource ctx : contexts) {\n\t\t\t\t\tpending.add(new WildStatement(subj, pred, obj, ctx));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pending.size() % BLOCK_SIZE == 0 && !isActiveOperation()) {\n\t\t\t\tendUpdate(op);\n\t\t\t\tstartUpdate(op);\n\t\t\t}\n\t\t}\n\t}",
"public void exe(Connection conn,String sql,List<OrderDetails> detailList)throws Exception{\r\n\t\t//insert into ORDER_DETAIL(ORDER_ID,PRODUCT_ID,QUANTITY) values(?,?,?);\r\n\t\tPreparedStatement pstmt=null;\r\n\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\r\n\t\tfor(int i=0;i<detailList.size();i++){\r\n\t\t\tOrderDetails od=detailList.get(i);\r\n\t\t\tpstmt.setInt(1, od.getOrderId());\r\n\t\t\tpstmt.setInt(2, od.getProductId());\r\n\t\t\tpstmt.setInt(3, od.getQuantity());\r\n\t\t\t\r\n\t\t\tpstmt.addBatch();\r\n\t\t}\r\n\t\tpstmt.executeBatch();\r\n\t}",
"protected void setSQLStatements(Vector sqlStatements) {\n this.sqlStatements = sqlStatements;\n }",
"private void saveLocations(){\n\n final LocationsDialog frame = this;\n WorkletContext context = WorkletContext.getInstance();\n\n LocationsTableModel model = (LocationsTableModel) locationsTable.getModel();\n final HashMap<Integer, Location> dirty = model.getDirty();\n\n\n for(Integer id : dirty.keySet()) {\n Location location = dirty.get(id);\n\n\n if (!Helper.insert(location, \"Locations\", context)) {\n System.out.print(\"insert failed!\");\n }\n\n }// end for\n\n model.refresh();\n\n }",
"@Override\n\tpublic void batchCodeProcess(ArrayList<CodeBean> codeList) {\n\t\tif(logger.isDebugEnabled()){ logger.debug(\" CodeListApplicationServiceImpl : batchCodeProcess 시작 \"); }\n\t\ttry {\n\t\t\t\n\t\t\tfor (CodeBean code : codeList) {\n\t\t\t\tswitch (code.getStatus()) {\n\t\t\t\tcase \"insert\":\n\t\t\t\t\tcodeDAO.insertCode(code); \n\t\t\t\t\tbreak;\n\t\t\t\tcase \"update\":\n\t\t\t\t\tcodeDAO.updateCode(code); \n\t\t\t\t\tbreak;\n\t\t\t\tcase \"normal\":\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"delete\":\n\t\t\t\t\tcodeDAO.deleteCode(code.getDivisionCode());\t\n\t\t\t\t}\n\t\t\t\tArrayList<DetailCodeBean> DetailcodeList = code.getCodeDetailList();\n\t\t\t\tfor (DetailCodeBean codeDetailBean : DetailcodeList) {\n\t\t\t\t\tswitch (codeDetailBean.getStatus()) {\n\t\t\t\t\tcase \"insert\":\n\t\t\t\t\t\tcodeDetailDAO.insertDetailCode(codeDetailBean);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"update\":\n\t\t\t\t\t\tcodeDetailDAO.updateDetailCode(codeDetailBean);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"delete\":\n\t\t\t\t\t\tcodeDetailDAO.deleteDetailCode(codeDetailBean.getCodeNo());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (DataAccessException e) {\n\t\t\tlogger.fatal(e.getMessage());\n\n\t\t\tthrow e;\n\t\t}\n\t\tif(logger.isDebugEnabled()){ logger.debug(\" CodeListApplicationServiceImpl : batchCodeProcess 종료 \"); }\n\t}",
"protected void sequence_StatementList(ISerializationContext context, StatementList semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}",
"public JSObject execute(SQLiteDatabase db, String[] statements) throws Exception {\n JSObject retObj = new JSObject();\n try {\n for (String cmd : statements) {\n if (!cmd.endsWith(\";\")) cmd += \";\";\n db.execSQL(cmd);\n }\n retObj.put(\"changes\", uSqlite.dbChanges(db));\n return retObj;\n } catch (Exception e) {\n throw new Exception(\"Execute failed\");\n }\n }",
"@Override\r\n\tpublic int updateProductInputList(ProductInputListVO pilVO) {\n\t\treturn getSqlSession().update(productInputNameSpace+\".updateProductInputList\", pilVO);\r\n\t}",
"public int updateBatch(List list){\n \tif(list==null||list.size()<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.updateBatch(\"Rolesvalue.updateByPK\", list);\n \treturn rows;\n }",
"public synchronized void undo(){\n int index_of_last_operation = instructions.size() - 1;\n if (index_of_last_operation >= 0){\n instructions.remove(index_of_last_operation);\n }\n }",
"@Override\n\tpublic void saveWoodenRequirePending(\n\t\t\tList<WoodenRequirePendingEntity> woodenRequireList) {\n\t\t\n\t}",
"public void insertDo_Not_MissItemArray(ArrayList<GamesItemHome> argList) {\n\n deleteDoNotMissPreviousContent();\n this.getWritableDatabase().beginTransaction();\n\n for (GamesItemHome gameItem : argList) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_ID_GAME, gameItem.getID());\n initialValues.put(KEY_TITLE, gameItem.getTitle());\n initialValues.put(KEY_IMAGE, gameItem.getImage());\n initialValues.put(KEY_FEATURED_IMAGE_HOME, gameItem.getFeautred_image());\n initialValues.put(KEY_CATEGORY, gameItem.getCategory());\n initialValues.put(KEY_LINK_HOME, gameItem.getLink());\n db.insert(DATABASE_TABLE_DO_NOT_MISS, null, initialValues);\n }\n\n this.getWritableDatabase().setTransactionSuccessful();\n this.getWritableDatabase().endTransaction();\n\n }",
"public SmartList<DamageSpace> saveDamageSpaceList(SmartList<DamageSpace> damageSpaceList,Map<String,Object> options){\n\t\tObject [] lists=splitDamageSpaceList(damageSpaceList);\n\t\t\n\t\tbatchDamageSpaceCreate((List<DamageSpace>)lists[CREATE_LIST_INDEX]);\n\t\t\n\t\tbatchDamageSpaceUpdate((List<DamageSpace>)lists[UPDATE_LIST_INDEX]);\n\t\t\n\t\t\n\t\t//update version after the list successfully saved to database;\n\t\tfor(DamageSpace damageSpace:damageSpaceList){\n\t\t\tif(damageSpace.isChanged()){\n\t\t\t\tdamageSpace.incVersion();\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\treturn damageSpaceList;\n\t}",
"@Override\n\tpublic void redo() {\n\t\tfor (IShape shape : temp) {\n\t\t\tlist.delete(shape);\n\t\t}\n\t}",
"private void exeDELREC() \n\t\t{ \n\t\t try\n\t\t {\n\t\t\t \tM_strSQLQRY = \"UPDATE SA_SWMST SET\";\t\n\t\t\t\tM_strSQLQRY +=\"\tSW_STSFL='X'\";\t\n\t\t\t\tM_strSQLQRY +=\" where SW_SFTCT= '\"+hstSFTCT.get(cmbSFTCT.getSelectedItem().toString())+\"' \";\n\t\t\t\tM_strSQLQRY +=\" AND SW_SFTCD='\"+txtSFTCD.getText()+\"'\";\n\t\t\t\tM_strSQLQRY +=\" AND SW_SRLNO='\"+txtSRLNO.getText().toString()+\"'\";\n\t\t\t\tM_strSQLQRY +=\" AND SW_LICTP='\"+hstLICTP.get(cmbLICTP.getSelectedItem().toString())+\"',\";\n\t\t\t\tcl_dat.M_flgLCUPD_pbst = true;\n\t\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY ,\"setLCLUPD\");\n\t\t\t\t//System.out.println(\">>>Delete>>\"+M_strSQLQRY);\n\t\t }\n\t\t catch(Exception L_EX)\n\t\t {\n\t\t setMSG(L_EX,\"exeDELREC()\");\t\t\n\t\t }\n\t\t}",
"public abstract void save(String name, ParmID[] parmIDs,\n ParmID[] availableParmIDs);",
"@Override\n\tpublic boolean insertBatch(List<Student> list) {\n\t\ttry {\n\t\t\tfor (Student s : list) {\n\t\t\t\tsDao.insert(s);\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}",
"public void deleteBatch(List<Integer> list) {\n\t\tEmployeeExample employeeExample=new EmployeeExample();\n\t\tCriteria createCriteria = employeeExample.createCriteria();\n\t\tcreateCriteria.andEmpIdIn(list);\n\t\temployeeMapper.deleteByExample(employeeExample);\n\t}",
"public abstract List<CustomerOrder> save(Iterable<CustomerOrder> entities);",
"private void saveCommands(byte[][] commands, MessageContext[] msgCtx) {\n //if(!config.isToLog())\n //\treturn; \n if (commands.length != msgCtx.length) {\n logger.debug(\"SIZE OF COMMANDS AND MESSAGE CONTEXTS IS DIFFERENT----\");\n logger.debug(\"COMMANDS: \" + commands.length + \", CONTEXTS: \" + msgCtx.length + \" ----\");\n }\n logLock.lock();\n\n int cid = msgCtx[0].getConsensusId();\n int batchStart = 0;\n for (int i = 0; i <= msgCtx.length; i++) {\n if (i == msgCtx.length) { // the batch command contains only one command or it is the last position of the array\n byte[][] batch = Arrays.copyOfRange(commands, batchStart, i);\n MessageContext[] batchMsgCtx = Arrays.copyOfRange(msgCtx, batchStart, i);\n log.addMessageBatch(batch, batchMsgCtx, cid);\n } else {\n if (msgCtx[i].getConsensusId() > cid) { // saves commands when the cid changes or when it is the last batch\n byte[][] batch = Arrays.copyOfRange(commands, batchStart, i);\n MessageContext[] batchMsgCtx = Arrays.copyOfRange(msgCtx, batchStart, i);\n log.addMessageBatch(batch, batchMsgCtx, cid);\n cid = msgCtx[i].getConsensusId();\n batchStart = i;\n }\n }\n }\n logLock.unlock();\n }",
"public List<CustomersListSearchConditionsDTO> saveAll(List<CustomersListSearchConditionsDTO> cuListSearchConditionsDTOList);",
"void saveExpressionExperimentStatements( Collection<Characteristic> vc, ExpressionExperiment ee );",
"private void saveRecords() {\r\n// for (int i = 0; i < reviewRecords.size(); i++) {\r\n// ReviewRecords get = reviewRecords.get(i);\r\n// if (!get.toString().startsWith(\"null\")) {\r\n// Logs.e(get.toString());\r\n// }\r\n//\r\n// }\r\n\r\n SQLiteJDBC sqliteJDBC = new SQLiteJDBC(GlobalParameters.WORKING_REVIEW_DB_PATH);\r\n StringBuilder sqlTableItems = new StringBuilder();\r\n\r\n sqlTableItems.append(\" (\").append(\"StockCode\").append(\" TEXT PRIMARY KEY NOT NULL,\")\r\n .append(\"StockName\").append(\" TEXT, \")\r\n .append(\"Reference\").append(\" TEXT, \")\r\n .append(\"Methods\").append(\" TEXT, \")\r\n .append(\"ObStartDate\").append(\" TEXT, \")\r\n .append(\"Comments\").append(\" TEXT)\");\r\n\r\n// sqlTableItems.append(\" (\").append(\"StockCode\").append(\" TEXT PRIMARY KEY NOT NULL,\")\r\n// .append(\"StockName\").append(\" TEXT, \")\r\n// .append(\"Reference\").append(\" TEXT, \")\r\n// .append(\"Methods\").append(\" TEXT, \")\r\n// .append(\"ObStartDate\").append(\" TEXT, \")\r\n// .append(\"ObStartPrice\").append(\" TEXT, \")\r\n// .append(\"ObEndDate\").append(\" TEXT, \")\r\n// .append(\"ObEndPrice\").append(\" TEXT, \")\r\n// .append(\"Profit\").append(\" TEXT, \")\r\n// .append(\"Efficency\").append(\" TEXT, \")\r\n// .append(\"Comments\").append(\" TEXT)\");\r\n String tableName = \"Review\";\r\n sqliteJDBC.createTable(tableName, sqlTableItems.toString());\r\n sqliteJDBC.insertColumns(tableName, colNames, getListData());\r\n\r\n }"
] | [
"0.54586625",
"0.5352371",
"0.5275756",
"0.5252065",
"0.5205374",
"0.5137684",
"0.5132486",
"0.51065195",
"0.50995386",
"0.50392294",
"0.50187606",
"0.49659806",
"0.49655008",
"0.49226716",
"0.4915211",
"0.4874225",
"0.4861103",
"0.4851574",
"0.48218644",
"0.4805643",
"0.47822735",
"0.47782028",
"0.4768535",
"0.4761047",
"0.4756118",
"0.47520137",
"0.4731769",
"0.4728125",
"0.47227734",
"0.46751025",
"0.467446",
"0.46530074",
"0.46425292",
"0.46378717",
"0.46023262",
"0.4576043",
"0.45705938",
"0.45701453",
"0.45495576",
"0.451757",
"0.44970554",
"0.44967812",
"0.44942892",
"0.4442656",
"0.44362777",
"0.44189838",
"0.4415673",
"0.44132268",
"0.44126",
"0.44117922",
"0.4410051",
"0.43946108",
"0.437872",
"0.4372789",
"0.43670505",
"0.4364524",
"0.43633193",
"0.43628153",
"0.43610477",
"0.43581134",
"0.43567273",
"0.43529013",
"0.4320759",
"0.4320759",
"0.43119967",
"0.43102628",
"0.4307513",
"0.43066326",
"0.43054044",
"0.43033332",
"0.43020868",
"0.42994985",
"0.4299155",
"0.42959228",
"0.4284858",
"0.4284714",
"0.42800725",
"0.42774725",
"0.42764792",
"0.42757124",
"0.42742866",
"0.42736393",
"0.42720717",
"0.42676124",
"0.42650494",
"0.4261721",
"0.42607778",
"0.42562568",
"0.42440832",
"0.42431474",
"0.4242585",
"0.42387524",
"0.42378592",
"0.4232654",
"0.4232183",
"0.42299134",
"0.42287982",
"0.42243055",
"0.422321",
"0.42228746"
] | 0.6512007 | 0 |
Creates new form doimatkhau | public doimatkhau() {
initComponents();
setLocationRelativeTo(null);
txtTendangnhap.setText(sharehelper.user.getMaNV());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FORM createFORM();",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"public FormInserir() {\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}",
"private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}",
"public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }",
"@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"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 }",
"@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}",
"public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }",
"public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}",
"public FormCadastroAutomovel() {\n initComponents();\n }",
"public CrearPedidos() {\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}",
"@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }",
"public Form_soal() {\n initComponents();\n tampil_soal();\n }",
"public form_for_bd() {\n initComponents();\n }",
"public frm_tutor_subida_prueba() {\n }",
"@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}",
"public CrearDoctor() {\n initComponents();\n Image icon = Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Imagen/Logo.png\"));\n setIconImage(icon);\n// ImageIcon imgIcon = new ImageIcon(getClass().getResource(\"/Imagen/wallpaper.jpg\"));\n// Image imgEscalada = imgIcon.getImage().getScaledInstance(lbImagen.getWidth(),\n// lbImagen.getHeight(), Image.SCALE_SMOOTH);\n// Icon iconoEscalado = new ImageIcon(imgEscalada);\n// lbImagen.setIcon(iconoEscalado);\n\n this.setModal(true);\n\n jLabel8.setEnabled(false);\n jLabel9.setEnabled(false);\n txtNuevaClave.setEnabled(false);\n txtRepitaNuevaClave.setEnabled(false);\n\n this.setLocationRelativeTo(null);\n txtCOP.addKeyListener(new KeyAdapter() {\n public void keyTyped(KeyEvent e) {\n char caracter = e.getKeyChar();\n\n // Verificar si la tecla pulsada no es un digito\n if (((caracter < '0')\n || (caracter > '9'))\n && (caracter != '\\b' /*corresponde a BACK_SPACE*/)) {\n e.consume(); // ignorar el evento de teclado\n }\n }\n });\n }",
"public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }",
"public void clickCreate() {\n\t\tbtnCreate.click();\n\t}",
"public Formulario() {\n initComponents();\n }",
"public void createActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t}",
"public Ventaform() {\n initComponents();\n }",
"private void createInputBloodDonationForm( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n String path = req.getServletPath();\n req.setAttribute( \"path\", path );\n req.setAttribute( \"title\", path.substring( 1 ) );\n \n BloodDonationLogic logic = LogicFactory.getFor(\"BloodDonation\");\n req.setAttribute( \"bloodDonationColumnNames\", logic.getColumnNames().subList(1, logic.getColumnNames().size()));\n req.setAttribute( \"bloodDonationColumnCodes\", logic.getColumnCodes().subList(1, logic.getColumnCodes().size()));\n req.setAttribute(\"bloodGroupList\", Arrays.asList(BloodGroup.values()));\n req.setAttribute(\"rhdList\", Arrays.asList(RhesusFactor.values()));\n BloodBankLogic bloodBankLogic = LogicFactory.getFor(\"BloodBank\");\n List<String> bloodBankIDs = new ArrayList<>();\n bloodBankIDs.add(\"\");\n for (BloodBank bb : bloodBankLogic.getAll()) {\n bloodBankIDs.add(bb.getId().toString());\n }\n req.setAttribute( \"bloodBankIDs\", bloodBankIDs);\n req.setAttribute( \"request\", toStringMap( req.getParameterMap() ) );\n \n if (errorMessage != null && !errorMessage.isEmpty()) {\n req.setAttribute(\"errorMessage\", errorMessage);\n }\n //clear the error message if when reload the page\n errorMessage = \"\";\n \n req.getRequestDispatcher( \"/jsp/CreateRecord-BloodDonation.jsp\" ).forward( req, resp );\n }",
"public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }",
"public FrmInsertar() {\n initComponents();\n }",
"public CadastroProdutoNew() {\n initComponents();\n }",
"public KorisnikForma() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tsetBounds(100, 100, 629, 613);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJLabel lblRegistracija = new JLabel(\"Registracija !!!\");\n\t\tlblRegistracija.setFont(new Font(\"Tahoma\", Font.BOLD, 26));\n\t\tlblRegistracija.setBounds(189, 35, 306, 36);\n\t\tcontentPane.add(lblRegistracija);\n\t\t\n\t\ttfImePrezime = new JTextField();\n\t\ttfImePrezime.setBounds(425, 143, 153, 20);\n\t\tcontentPane.add(tfImePrezime);\n\t\ttfImePrezime.setColumns(10);\n\t\t\n\t\ttfUser = new JTextField();\n\t\ttfUser.setBounds(425, 207, 153, 20);\n\t\tcontentPane.add(tfUser);\n\t\ttfUser.setColumns(10);\n\t\t\n\t\ttfPass = new JTextField();\n\t\ttfPass.setBounds(425, 267, 153, 20);\n\t\tcontentPane.add(tfPass);\n\t\ttfPass.setColumns(10);\n\t\t\n\t\ttfTelefon = new JTextField();\n\t\ttfTelefon.setBounds(425, 382, 153, 20);\n\t\tcontentPane.add(tfTelefon);\n\t\ttfTelefon.setColumns(10);\n\t\tImage img2= new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\t\n\t\tJLabel lblImePrezime = new JLabel(\"Ime i prezime :\");\n\t\tlblImePrezime.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblImePrezime.setBounds(273, 143, 89, 17);\n\t\tcontentPane.add(lblImePrezime);\n\t\t\n\t\tJLabel lblzvezda = new JLabel(\"*\");\n\t\tlblzvezda.setForeground(Color.RED);\n\t\tlblzvezda.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblzvezda.setBounds(396, 144, 19, 14);\n\t\tcontentPane.add(lblzvezda);\n\t\t\n\t\tJLabel label = new JLabel(\"*\");\n\t\tlabel.setForeground(Color.RED);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel.setBounds(396, 208, 19, 14);\n\t\tcontentPane.add(label);\n\t\t\n\t\tJLabel label_1 = new JLabel(\"*\");\n\t\tlabel_1.setForeground(Color.RED);\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_1.setBounds(396, 268, 19, 14);\n\t\tcontentPane.add(label_1);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"*\");\n\t\tlabel_2.setForeground(Color.RED);\n\t\tlabel_2.setBackground(Color.WHITE);\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_2.setBounds(396, 325, 19, 14);\n\t\tcontentPane.add(label_2);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"*\");\n\t\tlabel_3.setForeground(Color.RED);\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_3.setBounds(396, 383, 19, 14);\n\t\tcontentPane.add(label_3);\n\t\t\n\t\tJLabel lblUserName = new JLabel(\"Username : \");\n\t\tlblUserName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUserName.setBounds(273, 207, 89, 17);\n\t\tcontentPane.add(lblUserName);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"* Obavezna polja za unos ! \");\n\t\tlblNewLabel.setForeground(Color.RED);\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 14));\n\t\tlblNewLabel.setBounds(375, 523, 211, 23);\n\t\tcontentPane.add(lblNewLabel);\n\t\t\n\t\tJLabel lblPass = new JLabel(\"Password :\");\n\t\tlblPass.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblPass.setBounds(273, 267, 89, 17);\n\t\tcontentPane.add(lblPass);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"Datum rodjenja : \");\n\t\tlblDate.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblDate.setBounds(273, 324, 113, 17);\n\t\tcontentPane.add(lblDate);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Telefon :\");\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_2.setBounds(273, 382, 100, 17);\n\t\tcontentPane.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblImage = new JLabel(\"\");\n\t\tImage img3 = new ImageIcon(this.getClass().getResource(\"/admin.png\")).getImage();\n\t\tlblImage.setIcon(new ImageIcon(img3));\n\t\tlblImage.setBounds(38, 82, 170, 357);\n\t\tcontentPane.add(lblImage);\n\t\t\n\t\tJButton btnSacuvaj = new JButton(\"Sacuvaj\");\n\t\tbtnSacuvaj.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tImage img4 = new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\tbtnSacuvaj.setIcon(new ImageIcon(img4));\n\t\tbtnSacuvaj.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tDateFormat df= new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\n\t\t\t\t if(tfImePrezime.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfUser.getText().length ()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfPass.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(dcDatum.getDate() == null) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfTelefon.getText().length ()==0) // Checking for empty field\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else{\n\t\t\t\ttry {\n\t\t\t\tString imePrezime = tfImePrezime.getText().toString();\n\t\t\t\tString userName = tfUser.getText().toString();\n\t\t\t\tString password = tfPass.getText().toString();\n\t\t\t\tString date =df.format(dcDatum.getDate());\n\t\t\t\tString telefon = tfTelefon.getText().toString();\n\t\t\t\t\n\t\t\t\tKontroler.getInstanca().upisiKorisnika(imePrezime,userName,password,date,telefon);\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Uspesna registracija\");\n\t\t\t\t\n\t\t\t\t}catch(Exception e1) {\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});\n\t\tbtnSacuvaj.setBounds(450, 451, 128, 23);\n\t\tcontentPane.add(btnSacuvaj);\n\t\t\n\t\tJButton btnNazad = new JButton(\"Nazad\");\n\t\tImage img5 = new ImageIcon(this.getClass().getResource(\"/nazad1.png\")).getImage();\n\t\tbtnNazad.setIcon(new ImageIcon(img5));\n\t\tbtnNazad.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tLogovanje l = new Logovanje();\n\t\t\t\tl.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnNazad.setBounds(10, 11, 105, 23);\n\t\tcontentPane.add(btnNazad);\n\t\t\n\t\tdcDatum = new JDateChooser();\n\t\tdcDatum.setBounds(425, 319, 153, 20);\n\t\tcontentPane.add(dcDatum);\n\t\t\n\t\n\t\t\n\t}",
"public TorneoForm() {\n initComponents();\n }",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"public DCrearDisco( InterfazDiscotienda id ){\r\n super( id, true );\r\n principal = id;\r\n\r\n panelDatos = new PanelCrearDisco( );\r\n panelBotones = new PanelBotonesDisco( this );\r\n\r\n getContentPane( ).add( panelDatos, BorderLayout.CENTER );\r\n getContentPane( ).add( panelBotones, BorderLayout.SOUTH );\r\n\r\n setTitle( \"Crear Disco\" );\r\n pack();\r\n }",
"public FormUtama() {\n initComponents();\n }",
"public FormularioCliente() {\n initComponents();\n }",
"public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }",
"protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }",
"public PDMRelationshipForm() {\r\n initComponents();\r\n }",
"@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}",
"public void createPersonalInfos(JFrame jFrame, ControllerAdmin controllerAdminPersonalInfos){\n JLabel jLabelAcount = new JLabel(\"Compte\");\n jLabelAcount.setBounds(20, 20, 100, 28);\n\n JLabel jLabelId = new JLabel(\"Identifiant :\");\n jLabelId.setBounds(40, 50, 300, 28);\n JTextField jTextFieldId = new JTextField(controllerAdminPersonalInfos.getUser().getId());\n jTextFieldId.setBounds(40, 80, 300, 28);\n\n JLabel jLabelLastName = new JLabel(\"Nom :\");\n jLabelLastName.setBounds(40, 110, 300, 28);\n JTextField jTextFieldLastName = new JTextField(controllerAdminPersonalInfos.getUser().getLastName());\n jTextFieldLastName.setBounds(40, 140, 300, 28);\n\n JLabel jLabelFirstName = new JLabel(\"Prenom :\");\n jLabelFirstName.setBounds(40, 170, 300, 28);\n JTextField jTextFieldFirstName = new JTextField(controllerAdminPersonalInfos.getUser().getFirstName());\n jTextFieldFirstName.setBounds(40, 200, 300, 28);\n\n JLabel jLabelEmail = new JLabel(\"Email :\");\n jLabelEmail.setBounds(40, 230, 300, 28);\n JTextField jTextFieldEmail = new JTextField(controllerAdminPersonalInfos.getUser().getEmail());\n jTextFieldEmail.setBounds(40, 260, 300, 28);\n\n JLabel jLabelPassword = new JLabel(\"Mot de passe :\");\n jLabelPassword.setBounds(40, 290, 300, 28);\n JPasswordField jPasswordFieldPassword = new JPasswordField(controllerAdminPersonalInfos.getUser().getPassword());\n jPasswordFieldPassword.setBounds(40, 320, 300, 28);\n\n JButton jButtonModifPassword = new JButton(\"Modifier le mot de passe\");\n jButtonModifPassword.setBounds(350, 320, 200, 28);\n\n //set editabilite\n jTextFieldId.setEditable(false);\n jTextFieldLastName.setEditable(false);\n jTextFieldFirstName.setEditable(false);\n jTextFieldEmail.setEditable(false);\n jPasswordFieldPassword.setEditable(false);\n\n // Ajout des element à la JFrame\n jFrame.add(jLabelAcount);\n jFrame.add(jLabelId);\n jFrame.add(jTextFieldId);\n jFrame.add(jLabelLastName);\n jFrame.add(jTextFieldLastName);\n jFrame.add(jLabelFirstName);\n jFrame.add(jTextFieldFirstName);\n jFrame.add(jLabelEmail);\n jFrame.add(jTextFieldEmail);\n jFrame.add(jLabelPassword);\n jFrame.add(jButtonModifPassword);\n jFrame.add(jPasswordFieldPassword);\n\n jButtonModifPassword.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createModifPassword(jFrame, controllerAdminPersonalInfos);\n jFrame.repaint();\n }\n });\n\n jFrame.setLayout(null);\n jFrame.setVisible(true);\n }",
"private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }",
"public frmAfiliado() {\n initComponents();\n \n }",
"private void btntambahActionPerformed(java.awt.event.ActionEvent evt) {\n\tdiaTambahKelas.pack();\n\tdiaTambahKelas.setVisible(true);\n\trefreshTableKelas();\n//\tDate date = jdWaktu.getDate();\n//\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"YYYY-MM-dd\");\n//\tString strDate = dateFormat.format(date);\n//\tif (validateKelas()) {\n//\t int result = fungsi.executeUpdate(\"insert into kelas values ('\" + txtidkls.getText() + \"', '\" + txtkls.getText() + \"', '\" + txtpertemuan.getText() + \"', '\" + strDate + \"', '\" + txtRuang.getText() + \"')\");\n//\t if (result > 0) {\n//\t\trefreshTableKelas();\n//\t }\n//\t}\n\t\n }",
"@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }",
"public ServerskaForma() {\n initComponents();\n \n \n \n }",
"public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel7 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n BTNDarseDeBaja = new javax.swing.JButton();\n jDCDate = new com.toedter.calendar.JDateChooser();\n TFAddPassword = new javax.swing.JTextField();\n LabelLevel = new javax.swing.JLabel();\n TFAddAltEmail = new javax.swing.JTextField();\n TFAddPhoneNumber = new javax.swing.JTextField();\n BTNAddPhoto = new javax.swing.JButton();\n TFAddPhoto = new javax.swing.JTextField();\n ButtonExit = new javax.swing.JButton();\n\n jLabel7.setFont(new java.awt.Font(\"Castellar\", 1, 18)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(237, 178, 0));\n jLabel7.setText(\"CREAR CUENTA\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(15, 0, 105));\n\n jPanel1.setBackground(new java.awt.Color(15, 0, 105));\n\n jLabel8.setForeground(new java.awt.Color(153, 153, 153));\n jLabel8.setText(\"____________________________\");\n\n jLabel9.setForeground(new java.awt.Color(153, 153, 153));\n jLabel9.setText(\"____________________________\");\n\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Nueva contraseña\");\n\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Nuevo correo alterno\");\n\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Fecha de nacimiento\");\n\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Nuevo teléfono\");\n\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Nueva fotografía\");\n\n jLabel10.setForeground(new java.awt.Color(153, 153, 153));\n jLabel10.setText(\"o\");\n\n jLabel11.setFont(new java.awt.Font(\"Castellar\", 1, 18)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(237, 178, 0));\n jLabel11.setText(\"Información de la cuenta\");\n\n jButton1.setBackground(new java.awt.Color(0, 153, 0));\n jButton1.setForeground(new java.awt.Color(255, 255, 255));\n jButton1.setText(\"Actualizar información\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n BTNDarseDeBaja.setBackground(new java.awt.Color(204, 0, 51));\n BTNDarseDeBaja.setForeground(new java.awt.Color(255, 255, 255));\n BTNDarseDeBaja.setText(\"Darse de baja\");\n BTNDarseDeBaja.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BTNDarseDeBajaActionPerformed(evt);\n }\n });\n\n TFAddPassword.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TFAddPasswordActionPerformed(evt);\n }\n });\n TFAddPassword.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n TFAddPasswordKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TFAddPasswordKeyTyped(evt);\n }\n });\n\n LabelLevel.setForeground(new java.awt.Color(255, 0, 0));\n\n TFAddAltEmail.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n TFAddAltEmailFocusLost(evt);\n }\n });\n TFAddAltEmail.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TFAddAltEmailKeyTyped(evt);\n }\n });\n\n TFAddPhoneNumber.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TFAddPhoneNumberKeyTyped(evt);\n }\n });\n\n BTNAddPhoto.setBackground(new java.awt.Color(18, 30, 49));\n BTNAddPhoto.setText(\"...\");\n BTNAddPhoto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BTNAddPhotoActionPerformed(evt);\n }\n });\n\n TFAddPhoto.setText(\"Seleccionar archivo\");\n TFAddPhoto.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TFAddPhotoKeyTyped(evt);\n }\n });\n\n ButtonExit.setBackground(new java.awt.Color(97, 0, 0));\n ButtonExit.setForeground(new java.awt.Color(255, 255, 255));\n ButtonExit.setText(\"Salir\");\n ButtonExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonExitActionPerformed(evt);\n }\n });\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 .addGap(79, 79, 79)\n .addComponent(jLabel11)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(TFAddPhoneNumber, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TFAddAltEmail, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jDCDate, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TFAddPassword))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(LabelLevel, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(36, 36, 36))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TFAddPhoto, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(BTNAddPhoto))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(BTNDarseDeBaja, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(0, 27, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(210, 210, 210)\n .addComponent(ButtonExit)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel11)\n .addGap(12, 12, 12)\n .addComponent(jLabel1)\n .addGap(4, 4, 4)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelLevel, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TFAddPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addGap(3, 3, 3)\n .addComponent(TFAddAltEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jDCDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(9, 9, 9)\n .addComponent(jLabel5)\n .addGap(7, 7, 7)\n .addComponent(TFAddPhoneNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel6)\n .addGap(8, 8, 8)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TFAddPhoto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(BTNAddPhoto, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(jLabel8)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(BTNDarseDeBaja)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addComponent(ButtonExit)\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 .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }",
"@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }",
"public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEditDataDiri.setVisible(false);\n txtHapusKodeTransaksi.setVisible(false);\n txtHapusQtyTransaksi.setVisible(false);\n txtHapusStokTersedia.setVisible(false);\n }",
"public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }",
"@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}",
"public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }",
"public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }",
"public FormPemilihan() {\n initComponents();\n }",
"@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}",
"public Crear() {\n initComponents();\n \n \n this.getContentPane().setBackground(Color.WHITE);\n txtaPR.setEnabled(false); \n txtFNocmbre.requestFocus();\n \n \n }",
"public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}",
"public frmAddIncidencias() {\n initComponents();\n }",
"public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }",
"public Form(){ \n\t\tsuper(tag(Form.class)); \n\t}",
"@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}",
"public DisciplinaForm() {\n initComponents();\n }",
"public Project_Create() {\n initComponents();\n }",
"@GetMapping(\"/directorForm\")\n public String addDirectors(Model model) {\n\n model.addAttribute(\"newDirector\", new Director());\n return \"directorForm\";\n }",
"@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}",
"@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}",
"public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\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 }",
"private void createForm(ArrayList<HashMap<String, String>> data) {\n\t\tLayoutInflater inflater = LayoutInflater.from(IPropertyRegistrationActivity.this);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT,\n\t\t\t\tandroid.widget.LinearLayout.LayoutParams.WRAP_CONTENT);\n\t\tparams.topMargin = 10;\n\n\t\tfields = data;\n\t\tLinearLayout layout = null;\n\t\tint len = fields.size();\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tfinal HashMap<String, String> field = fields.get(j);\n\t\t\tView fieldView = inflater.inflate(R.layout.iproperty_registration_dynamic_view_item, null);\n\n\t\t\tif (field.get(TYPE).equals(LABEL)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrLabel));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditArea));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\n\t\t\t\tif (field.get(VALUE).toString().trim().length() > 0) {\n\t\t\t\t\tedit.setText(field.get(VALUE));\n\t\t\t\t} else {\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tfinal ImageView imgMap;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditMap));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\timgMap = ((ImageView) layout.findViewById(R.id.imgMap));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.state))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getAdminArea().replace(address.getCountryName() == null ? \"\" : address.getCountryName(), \"\")\n\t\t\t\t\t\t\t\t.replace(address.getPostalCode() == null ? \"\" : address.getPostalCode(), \"\"));\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(NAME).equalsIgnoreCase(getString(R.string.city_town))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getSubAdminArea());\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\timgMap.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\teditMap = edit;\n\t\t\t\t\t\tIntent intent = new Intent(IPropertyRegistrationActivity.this, IjoomerMapAddress.class);\n\t\t\t\t\t\tstartActivityForResult(intent, GET_ADDRESS_FROM_MAP);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(SELECT)) {\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrSpin));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tfinal Spinner spn;\n\t\t\t\tspn = ((Spinner) layout.findViewById(R.id.txtValue));\n\t\t\t\tspn.setAdapter(IjoomerUtilities.getSpinnerAdapter(field));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.country))) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tString country = address.getCountryName();\n\t\t\t\t\t\tint selectedIndex = 0;\n\t\t\t\t\t\tJSONArray jsonArray = null;\n\n\t\t\t\t\t\tjsonArray = new JSONArray(field.get(OPTIONS));\n\t\t\t\t\t\tint optionSize = jsonArray.length();\n\t\t\t\t\t\tfor (int k = 0; k < optionSize; k++) {\n\t\t\t\t\t\t\tJSONObject options = (JSONObject) jsonArray.get(k);\n\n\t\t\t\t\t\t\tif (options.getString(VALUE).equalsIgnoreCase(country)) {\n\t\t\t\t\t\t\t\tselectedIndex = k;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tspn.setSelection(selectedIndex);\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tspn.setSelection(0);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getDateDialog(((IjoomerEditText) v).getText().toString(), true, new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(TIME)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getTimeDialog(((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getMultiSelectionDialog(field.get(NAME), field.get(OPTIONS), ((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (field.get(REQUIRED).equalsIgnoreCase(\"1\")) {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME) + \" *\");\n\t\t\t} else {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t}\n\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEdit)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditArea)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrSpin)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrLabel)).setVisibility(View.GONE);\n\n\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrReadOnly));\n\t\t\tlayout.setVisibility(View.VISIBLE);\n\n\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t((IjoomerEditText) layout.findViewById(R.id.txtValue)).setText(field.get(VALUE));\n\t\t\tfieldView.setTag(field);\n\t\t\tlnr_form.addView(fieldView, params);\n\t\t}\n\t}",
"public FormularioP() {\n initComponents();\n }",
"private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}",
"public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }",
"public FGlavna() {\n initComponents();\n pripremiFormu();\n }",
"private void initFormulario() {\n btnCadastro = findViewById(R.id.btnCadastro);\n editNome = findViewById(R.id.editNome);\n editEmail = findViewById(R.id.editEmail);\n editSenhaA = findViewById(R.id.editSenha);\n editSenhaB = findViewById(R.id.editSenhaB);\n chTermo = findViewById(R.id.chTermos);\n isFormOk = false;\n }",
"protected void doNew() {\n\t\tgetRegisterView().clearTableSelection();\n\t\tclear();\n\t\tenableForm(true);\n\t\tgetForm().getButton(EDIT).setEnabled(false);\n\t\tgetForm().getField(CHECK_NUMBER).requestFocus();\n\t}",
"public CreateAccount() {\n initComponents();\n selectionall();\n }",
"public CrearProductos() {\n initComponents();\n }",
"public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }",
"public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }",
"@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}",
"public FormPencarianBuku() {\n initComponents();\n kosong();\n datatable();\n textfieldNamaFileBuku.setVisible(false);\n textfieldKodeBuku.setVisible(false);\n bukuRandom();\n }",
"public form() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public FormPpal() {\n initComponents();\n setIconImage(Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(\"Imagenes/icon.png\")));\n setLocationRelativeTo(null);\n setTitle(\"Men\\372 principal\");\n setResizable(false);\n formBackUp = null;\n formBuscador = null;\n fb1 = null;\n fb2 = null;\n formListado = null;\n conn = new Conn();\n pacientesCumpleanos = new LinkedList();\n pacientesControl = new LinkedList();\n cargarCumpleanos();\n cargarControlesHoy();\n }",
"@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}",
"public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }",
"private void initFormCreateMode() {\n initSpinnerSelectionChamps();\n //TODO\n }",
"public JFrmPagoCuotaAnulacion() {\n setTitle(\"JFrmPagoCuotaAnulacion\");\n initComponents();\n }",
"public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }",
"@FXML\n public void newMedico() {\n new MedicoPaneCadastroController().abrirJanela(\"./View/MedicoPaneCadastro.fxml\", \"Novo Médico\", null);\n populaTabela();\n\n }",
"public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}",
"public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }",
"private void creerMethode() {\n if (estValide()) {\n methode = new Methode();\n methode.setNom(textFieldNom.getText());\n methode.setVisibilite(comboBoxVisibilite.getValue());\n methode.setType(comboBoxType.getValue());\n ArrayList<Parametre> temp = new ArrayList<>();\n for (Parametre parametre : parametreListView.getItems())\n temp.add(parametre);\n methode.setParametres(temp);\n close();\n }\n }",
"private void newTodo() {\r\n String myTodoName = \"Unknown\";\r\n for (Component component : panelSelectFile.getComponents()) {\r\n if (component instanceof JTextField) {\r\n if (component.getName().equals(\"Name\")) {\r\n JTextField textFieldName = (JTextField) component;\r\n myTodoName = textFieldName.getText();\r\n }\r\n }\r\n }\r\n if (myTodoName == null || myTodoName.isEmpty()) {\r\n JOptionPane.showMessageDialog(null, \"New Todo List name not entered!\");\r\n return;\r\n }\r\n myTodo = new MyTodoList(myTodoName);\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save this todoList?\",\r\n \"Save New Todolist\", JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTodo();\r\n }\r\n fileName = null;\r\n todoListGui();\r\n }",
"@RequestMapping(\"/new\")\n\tpublic String displayProjectForm(Model model) {\n\t\tProject aproject = new Project();\n\t//Iterable<Employee> employees = \tpro.getall();\n\t\n\t\tmodel.addAttribute(\"project\", aproject);\n\n\t\t//model.addAttribute(\"allEmployees\", employees);\n\t\t\n\t\t\n\t\treturn \"newproject\";\n\t\t\n\t}"
] | [
"0.73257816",
"0.7030423",
"0.6847733",
"0.6733172",
"0.6489525",
"0.644674",
"0.6390815",
"0.6368969",
"0.63140327",
"0.6297381",
"0.6296374",
"0.62864935",
"0.6269486",
"0.62609625",
"0.62596196",
"0.6233296",
"0.62209606",
"0.62007666",
"0.61961174",
"0.61890274",
"0.61779743",
"0.6164777",
"0.6163178",
"0.61198664",
"0.6079018",
"0.60766387",
"0.60750854",
"0.6062447",
"0.6054963",
"0.6043604",
"0.6037589",
"0.6026939",
"0.6023546",
"0.6017538",
"0.6002582",
"0.59941244",
"0.59862256",
"0.59795094",
"0.5950468",
"0.5930149",
"0.5929368",
"0.59220004",
"0.590958",
"0.590876",
"0.59079087",
"0.59061515",
"0.5900106",
"0.58834314",
"0.58795327",
"0.58762115",
"0.58747244",
"0.58635086",
"0.5859267",
"0.5858483",
"0.58514774",
"0.58507323",
"0.5847297",
"0.58404046",
"0.5837514",
"0.5836956",
"0.5836942",
"0.5831868",
"0.58175594",
"0.5817538",
"0.58168346",
"0.58092463",
"0.5805316",
"0.58044684",
"0.5803163",
"0.57987195",
"0.57945454",
"0.57789665",
"0.57777846",
"0.5776731",
"0.5776489",
"0.5771874",
"0.57707286",
"0.5756774",
"0.57448703",
"0.5738974",
"0.573692",
"0.5736633",
"0.5734678",
"0.5731947",
"0.5730659",
"0.5728472",
"0.57277256",
"0.5727719",
"0.5727518",
"0.5724194",
"0.5719729",
"0.57172954",
"0.57167464",
"0.57167166",
"0.571496",
"0.57138413",
"0.5704732",
"0.57030976",
"0.5702376",
"0.5692691",
"0.5691764"
] | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
txtTendangnhap = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
btnThoat = new javax.swing.JButton();
btnLuu = new javax.swing.JButton();
jLabel5 = new javax.swing.JLabel();
txtMatkhaumoi = new javax.swing.JPasswordField();
txtNhaplaimatkhaumoi = new javax.swing.JPasswordField();
txtMatkhaucu = new javax.swing.JPasswordField();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Đổi mật khẩu");
setResizable(false);
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel1.setForeground(new java.awt.Color(204, 0, 0));
jLabel1.setText("Đổi mật khẩu");
jLabel2.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
jLabel2.setText("Tên đăng nhập");
txtTendangnhap.setEditable(false);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
jLabel3.setText("Mật khẩu cũ");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
jLabel4.setText("Mật khẩu mới");
jPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, java.awt.Color.lightGray, null, null));
btnThoat.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
btnThoat.setForeground(new java.awt.Color(0, 0, 204));
btnThoat.setIcon(new javax.swing.ImageIcon(getClass().getResource("/hinh/thoat.png"))); // NOI18N
btnThoat.setText("Thoát");
btnThoat.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnThoatActionPerformed(evt);
}
});
btnLuu.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
btnLuu.setForeground(new java.awt.Color(51, 51, 255));
btnLuu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/hinh/save.png"))); // NOI18N
btnLuu.setText("Lưu");
btnLuu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnLuuActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGap(40, 40, 40)
.addComponent(btnLuu, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 78, Short.MAX_VALUE)
.addComponent(btnThoat, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(48, 48, 48))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btnThoat)
.addComponent(btnLuu))
.addContainerGap(15, Short.MAX_VALUE))
);
jLabel5.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
jLabel5.setText("Nhập lại mật khẩu mới");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(116, Short.MAX_VALUE)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(87, 87, 87))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(41, 41, 41)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jLabel3)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addGap(57, 57, 57)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(txtTendangnhap, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txtMatkhaumoi, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txtNhaplaimatkhaumoi, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 332, Short.MAX_VALUE)
.addComponent(txtMatkhaucu, javax.swing.GroupLayout.Alignment.LEADING)))
.addGroup(layout.createSequentialGroup()
.addGap(242, 242, 242)
.addComponent(jLabel1)))
.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(32, 32, 32)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(txtTendangnhap, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(txtMatkhaucu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(txtMatkhaumoi, 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(jLabel5)
.addComponent(txtNhaplaimatkhaumoi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(26, 26, 26)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(68, 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 }",
"@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 kunde() {\n initComponents();\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public FrmMenu() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public 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.732017",
"0.7291279",
"0.7291279",
"0.7291279",
"0.7286003",
"0.7249014",
"0.721411",
"0.720819",
"0.7196242",
"0.7190395",
"0.71849346",
"0.7159721",
"0.7148069",
"0.70934445",
"0.7079763",
"0.7056577",
"0.6987638",
"0.6978011",
"0.69549644",
"0.69530493",
"0.6945049",
"0.6942394",
"0.6935541",
"0.693223",
"0.6928088",
"0.6924428",
"0.69241494",
"0.691142",
"0.69106644",
"0.6893475",
"0.68921363",
"0.68898267",
"0.6889822",
"0.6888889",
"0.68830574",
"0.68813944",
"0.6881165",
"0.6877479",
"0.68752235",
"0.68747437",
"0.6871299",
"0.6859591",
"0.6856115",
"0.6855173",
"0.6855125",
"0.6854962",
"0.68530196",
"0.6852737",
"0.6852737",
"0.6843147",
"0.68370813",
"0.68366593",
"0.68283623",
"0.68281215",
"0.6825811",
"0.6823924",
"0.6823443",
"0.68169594",
"0.68156785",
"0.6809513",
"0.68092215",
"0.68091464",
"0.68080777",
"0.6806839",
"0.6802871",
"0.6795172",
"0.67944115",
"0.67920417",
"0.6790103",
"0.6789442",
"0.67882615",
"0.67874336",
"0.6782333",
"0.67663395",
"0.67655057",
"0.6765026",
"0.6756117",
"0.6755023",
"0.67517287",
"0.6751031",
"0.6743606",
"0.6738867",
"0.6737393",
"0.6735563",
"0.67327684",
"0.67275465",
"0.67266476",
"0.6719547",
"0.67160183",
"0.6713876",
"0.6713717",
"0.67084426",
"0.6706528",
"0.670407",
"0.67005676",
"0.670017",
"0.66990566",
"0.6697206",
"0.6694092",
"0.6691282",
"0.6689802"
] | 0.0 | -1 |
return the unit the user wants to convert from | public String getFromUnit() {
return this.fromUnit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return \"mm\";\n } else if (\"pixel\".equals(unit)) {\n return \"px\";\n }\n return \"\";\n }",
"String getUnit();",
"public String getUnit();",
"public String getToUnit() {\r\n return this.toUnit;\r\n }",
"public abstract double toBasicUnit(double unit);",
"private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }",
"String getUnitsString();",
"public String getUnit()\n {\n return (this.unit);\n }",
"String getUnits();",
"String getUnits();",
"String getUnits();",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n\t\tString unit;\n\t\ttry {\n\t\t\tunit = this.getString(\"unit\");\n\t\t} catch (Exception e) {\n\t\t\tunit = null;\n\t\t}\n\t\treturn unit;\n\t}",
"DefinedUnitType getDefinedUnit();",
"public String getUnit () {\n\treturn this.unit;\n }",
"public String getUnit() {\n\t\treturn unit;\n\t}",
"public String unit() {\n return this.unit;\n }",
"DefiningUnitType getDefiningUnit();",
"TimeUnit getUnit();",
"public static String units(String unit) {\n\t\tswitch (unit) {\n\t\t\tcase \"feet\":\n\t\t\t\treturn \"ft\";\n\t\t\tcase \"miles\":\n\t\t\t\treturn \"mi\";\n\t\t\tcase \"meters\":\n\t\t\t\treturn \"m\";\n\t\t\tcase \"kilometers\":\n\t\t\t\treturn \"km\";\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t}\n\t}",
"Unit getUnit();",
"public UnitTypes GetCurrentUnitType()\n {\n return MethodsCommon.GetTypeFromUnit(Unit);\n }",
"public abstract String getUnit();",
"ChronoUnit getUnit();",
"public String getUnitOfMeasure() {\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver, \"//input[@name='unitOfMeasure']/following-sibling::input[@type='text']\").getAttribute(\"value\");\r\n\t}",
"public double convert(double amount, Unit u);",
"public String getUnitsString() {\n String result = null;\n if (forVar != null) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.UNITS);\n if ((att != null) && att.isString())\n result = att.getStringValue();\n }\n return (result == null) ? units : result.trim();\n }",
"public void setUnit (String value) {\n\tthis.unit = value;\n }",
"String getBaseUnit() {\n return baseUnit;\n }",
"private String getAmountUnit(int unit) {\n switch (unit) {\n case UNIT_LITERS:\n return getResourceString(R.string.val_l);\n case UNIT_GALLONS:\n return getResourceString(R.string.val_g);\n }\n\n return \"\";\n }",
"Units getUnits();",
"public String getUnit() {\n\t\treturn(symbol);\n\t}",
"public String getUserUnitString() {\n\t\treturn NonSIext.getUnitString(userUnit);\n\t}",
"public String getUnitsString() {\n return units;\n }",
"public String getUnits() {\n return units;\n }",
"public void setUnit(String unit);",
"public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }",
"protected String getUnits()\n {\n return units;\n }",
"public String getUnits() {\n return units;\n }",
"private String getUnits(Unit units, int value) {\n if (units == Unit.FEET) {\n if (value == 1) return \" foot\";\n return \" feet\";\n }\n if (value == 1) return \" inch\";\n return \" inches\";\n }",
"public String getUnits() {\r\n\t\treturn units;\r\n\t}",
"public static UnitTypes GetUnitType(Units unit)\n {\n return MethodsCommon.GetTypeFromUnit(unit);\n }",
"public String getUnits() {\n return this.units;\n }",
"public interface Unit {\n\t/**\n\t * Convert value of this unit to u\n\t * @param amount\n\t * \t\t\t\tis value of this Unit\n\t * @param u\n\t * \t\t\tis Unit that we want to convert to\n\t * @return calculated value \n\t */\n\tpublic double convert(double amount, Unit u);\n}",
"@Updatable\n public String getUnit() {\n return unit;\n }",
"public String getUnitOfMeasurement() {\r\n\t\treturn unitOfMeasurement;\r\n\t}",
"public String getUnitnm() {\r\n return unitnm;\r\n }",
"public String getUnits() {\n\t\treturn units;\n\t}",
"private void convertInput(double input) {\n\n if (input != 0) {\n // Set standard value in meters based on selected unit\n switch (selectedUnit) {\n case \"km\":\n standard = input / 0.001;\n break;\n case \"m\":\n standard = input;\n break;\n case \"cm\":\n standard = input / 100;\n break;\n case \"mm\":\n standard = input / 1000;\n break;\n case \"μm\":\n standard = input / 1000000;\n break;\n case \"nm\":\n standard = input / 1000000000;\n break;\n case \"mi\":\n standard = input / 0.000621371;\n break;\n case \"yd\":\n standard = input / 1.09361;\n break;\n case \"ft\":\n standard = input / 3.28084;\n break;\n case \"in\":\n standard = input / 39.3701;\n break;\n default:\n standard = input;\n break;\n }\n //km\n kmTextView.setText(numberFormatter(standard * 0.001));\n //m\n mTextView.setText(numberFormatter(standard * 1));\n //cm\n cmTextView.setText(numberFormatter(standard * 100));\n //mm\n mmTextView.setText(numberFormatter(standard * 1000));\n //um\n umTextView.setText(numberFormatter(standard * 1000000));\n //nm\n nmTextView.setText(numberFormatter(standard * 1000000000));\n //mi\n miTextView.setText(numberFormatter(standard * 0.000621371));\n //yd\n ydTextView.setText(numberFormatter(standard * 1.09361));\n //ft\n ftTextView.setText(numberFormatter(standard * 3.28084));\n //in\n inTextView.setText(numberFormatter(standard * 39.3701));\n } else {\n //km\n kmTextView.setText(\"\");\n //m\n mTextView.setText(\"\");\n //cm\n cmTextView.setText(\"\");\n //mm\n mmTextView.setText(\"\");\n //um\n umTextView.setText(\"\");\n //nm\n nmTextView.setText(\"\");\n //mi\n miTextView.setText(\"\");\n //yd\n ydTextView.setText(\"\");\n //ft\n ftTextView.setText(\"\");\n //in\n inTextView.setText(\"\");\n }\n }",
"public java.lang.String getUnits() {\r\n return localUnits;\r\n }",
"public Unit getUnit() {\n\t\treturn unit;\n\t}",
"public void setUnit(String unit)\n {\n this.unit = unit;\n }",
"public abstract double fromBasicUnit(double valueJTextInsert);",
"public void setUnit(String unit) {\n this.unit = unit;\n }",
"public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum getUnit()\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(UNIT$6, 0);\n if (target == null)\n {\n return null;\n }\n return (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum)target.getEnumValue();\n }\n }",
"public int getUnitNum(){\n\t\treturn Integer.parseInt(unitNumLbl.getText());\n\t}",
"public Unit getUnit() {\n return unit;\n }",
"public String getUnitOfMeasure() {\r\n return this.unitOfMeasure;\r\n }",
"public SystemOfUnits getSystemOfUnits() {\n return SI.getInstance();\n }",
"Unit(double baseUnitConversion) {\n this.baseUnitConversion = baseUnitConversion;\n }",
"private String getDistanceUnit(int distance) {\n switch (distance) {\n case DISTANCE_KM:\n return getResourceString(R.string.val_km);\n case DISTANCE_MILES:\n return getResourceString(R.string.val_m);\n }\n\n return \"\";\n }",
"public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType xgetUnit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType)get_store().find_element_user(UNIT$6, 0);\n return target;\n }\n }",
"@Accessor(qualifier = \"Unit\", type = Accessor.Type.GETTER)\n\tpublic B2BUnitModel getUnit()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(UNIT);\n\t}",
"public String getTransferUnit() {\n\n if (transferUnit.length() > 0) {\n return transferUnit + \"/sec\";\n } else {\n return transferUnit; // default value is empty string\n }\n }",
"public byte getUnits() { return units; }",
"@javax.persistence.Column(name = \"unit\", precision = 5)\n\tpublic java.lang.String getUnit() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT);\n\t}",
"public SystemOfUnits getSystemOfUnits(String name) {\n if (name.equals(\"SI\")) return SI.getInstance();\n if (name.equals(\"UCUM\")) return UCUM.getInstance();\n return null;\n }",
"public Unit<Length> footSurveyUS() {return footSurveyUS;}",
"public String getWeightUnit() {\n return (String) get(\"weight_unit\");\n }",
"public static String convertUnitStr(Unit source_unit, Unit target_unit) \n\tthrows ArithmeticException {\n\t\tdouble f = source_unit.factor/target_unit.factor;\n\t\tdouble ls;\n\t\tif(target_unit.mksa == source_unit.mksa) {\n\t\t\tif((target_unit.mksa&_log)==0){\n\t\t\t\tdouble toAdd = (source_unit.offset-target_unit.offset)/target_unit.factor;\n\t\t\t\treturn f*((source_unit.value!=0.0)?source_unit.value:1.0)+\"*UNIT\"+((toAdd==0.0)?\"\":(toAdd<0.0)?\"\":\"+\"+toAdd);\n\t\t\t}\n\t\t\telse{\t// Convert to log scale: log(km) --> log(m)+log(k)\n\t\t\t\tif((source_unit.offset!=0)||(target_unit.offset!=0)){\n\t\t\t\t\tthrow new ArithmeticException(\"****Unit: can't convert non-standard unit \" + source_unit.symbol + \" into \" + target_unit.symbol);\n\t\t\t\t}\n\t\t\t\tf = AstroMath.log(f);\n\t\t\t\tif ((target_unit.mksa&_mag) != 0) f = -2.5*f;\n\t\t\t\treturn ((source_unit.value!=0.0)?source_unit.value+\"*\":\"\")+\"UNIT\"+((f<0.0)?\"\":\"+\")+f;\n\t\t\t}\n\t\t}\n\t\tif((target_unit.mksa&(~_LOG))!=(source_unit.mksa&(~_LOG))){\t\n\t\t\tthrow new ArithmeticException(\"****Unit: can't convert \" + source_unit.symbol + \" into \" + target_unit.symbol);\n\t\t}\n\t\t/* Convert to / from Log scale */\n\t\tif ((target_unit.mksa&_log)==0) {\t\t// Remove the log\n\t\t\tls = (source_unit.mksa&_mag)!=0?-2.5:1.;\n\t\t\treturn (source_unit.mksa&_mag)!=0?\n\t\t\t\t\tf+\"*exp(-(UNIT*\"+((source_unit.value!=0.0)?source_unit.value:1.0)*AstroMath.ln10+\")/2.5)\"\n\t\t\t\t\t:f+\"*exp(UNIT*\"+((source_unit.value!=0.0)?source_unit.value:1.0)*AstroMath.ln10+\")\";\n\t\t}\n\t\t/* The target is a log. Check whether the source is also in log scale */\n\t\tif ((source_unit.mksa&_log) != 0) {\t// Convert from log to log\n\t\t\tString toReturn = (source_unit.mksa&_mag)!=0?-0.4*((source_unit.value!=0.0)?source_unit.value:1.0)+\"*UNIT\":((source_unit.value!=0.0)?source_unit.value+\"*\":\"\")+\"UNIT\";\n\t\t\ttoReturn += AstroMath.log(f); // Target assumed to be log\n\t\t\tif((target_unit.mksa&_mag)!=0) return \"-2.5*(\"+toReturn+\")\";\t// Target is a magnitude\n\t\t\treturn toReturn;\n\t\t}\n\t\t/* The target is a log, the source is in a linear scale. */\n\t\tls = (target_unit.mksa&_mag)!=0?-2.5:1.;\n\t\treturn ls+\"*log(\"+(f*((source_unit.value!=0.0)?source_unit.value:1.0))+\"*UNIT)\";\n\t}",
"public Length getUnit() {\n return unit;\n }",
"public void setUnit(String unit) {\n\t\tthis.unit = unit;\n\t}",
"public String getUnitcd() {\r\n return unitcd;\r\n }",
"public int getUnits() {\r\n return units;\r\n }",
"@Override\n\tpublic String getUnitsString() {\n\t\treturn null;\n\t}",
"public String getDestinUnits() {\n return this.destinUnits;\n }",
"private ChronoUnit parseUnit(String unitStr) {\n unitStr = unitStr.toUpperCase();\n // If the unitStr ends with a 'S' then do nothing otherwise add a 'S' to the end\n unitStr = unitStr.charAt(unitStr.length() - 1) == 'S' ? unitStr : unitStr + \"S\";\n // Return the corresponding ChronoUnit\n switch (unitStr) {\n case \"DAYS\":\n return ChronoUnit.DAYS;\n case \"WEEKS\":\n return ChronoUnit.WEEKS;\n case \"HOURS\":\n return ChronoUnit.HOURS;\n case \"SECONDS\":\n return ChronoUnit.SECONDS;\n case \"MINUTES\":\n return ChronoUnit.MINUTES;\n }\n return ChronoUnit.DAYS;\n }",
"public static NormalTridasUnit parseUnitString(String str) throws Exception\n\t{\n\t\tstr = str.trim();\n\t\tif ((str==null) || (str.equals(\"\"))) return null;\n\t\n\t\tstr =str.toLowerCase();\n\t\t\n\t\tInteger val;\n\t\tBoolean mmDetected = false;\n\t\t\n\t\t//Remove leading fraction\n\t\tif(str.startsWith(\"1/\")){ str = str.substring(2);}\n\t\t\n\t\t// Remove 'ths'\n\t\tif(str.contains(\"ths\")){ str = str.replace(\"ths\", \"\");}\n\t\t\n\t\t// Remove 'th'\n\t\tif(str.contains(\"th\")){ str = str.replace(\"th\", \"\");}\n\t\t\n\t\t// Remove 'mm'\n\t\tif(str.contains(\"mm\"))\n\t\t{ \n\t\t\tstr = str.replace(\"mm\", \"\");\n\t\t\tmmDetected = true;\n\t\t}\n\t\tif(str.contains(\"millimet\"))\n\t\t{ \n\t\t\tstr = str.replace(\"millimetres\", \"\");\n\t\t\tstr = str.replace(\"millimeters\", \"\");\n\t\t\tstr = str.replace(\"millimetre\", \"\");\n\t\t\tstr = str.replace(\"millimeter\", \"\");\n\t\t\tmmDetected = true;\n\t\t}\n\t\t\n\t\tif(str.length()==0 && mmDetected)\n\t\t{\n\t\t\treturn NormalTridasUnit.MILLIMETRES;\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tval = Integer.parseInt(str.trim());\n\t\t} catch (NumberFormatException e)\n\t\t{\n\t\t\tthrow new Exception(\"Unable to parse units from units string\");\n\t\t}\n\t\t\n\t\tswitch(val)\n\t\t{\t\n\t\t\tcase 10: return NormalTridasUnit.TENTH_MM; \n\t\t\tcase 20: return NormalTridasUnit.TWENTIETH_MM;\n\t\t\tcase 50: return NormalTridasUnit.FIFTIETH_MM;\n\t\t\tcase 100: return NormalTridasUnit.HUNDREDTH_MM; \n\t\t\tcase 1000: return NormalTridasUnit.MICROMETRES; \n\t\t}\n\t\t\n\t\tthrow new Exception(\"Unable to parse units from units string\");\n\t}",
"public void setUnit(Length units) {\n unit = units;\n }",
"public String getUnits() {\n\t\tif (GridDialog.GRID_UNITS.containsKey(name)) {\n\t\t\treturn GridDialog.GRID_UNITS.get(name);\n\t\t}else {\n\t\t\t//for contributed grid, need to find the units from the ESRIShapefile object\n\t\t\tfor (LayerPanel layerPanel : ((MapApp)map.getApp()).layerManager.getLayerPanels()) {\n\t\t\t\tif (layerPanel.layer instanceof ESRIShapefile && ((ESRIShapefile)layerPanel.layer).equals(this)) {\n\t\t\t\t\tESRIShapefile esf = (ESRIShapefile)(layerPanel.layer);\n\t\t\t\t\treturn esf.getGridUnits();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}",
"public Units getUnitTable();",
"public void setUnits(String units) {\n this.units = units;\n }",
"public void setUnits(String units) {\n this.units = units;\n }",
"public void userInput() {\r\n System.out.println(\"You want to convert from:\");\r\n this.fromUnit = in.nextLine();\r\n System.out.print(\"to: \");\r\n this.toUnit = in.nextLine();\r\n System.out.print(\"The value is \");\r\n this.value = in.nextDouble();\r\n }",
"public String getUnitName() {\r\n return unitName;\r\n }",
"public String getUnitName() {\n return unitName;\n }",
"public String getUnitName() {\n return unitName;\n }",
"public short getResolutionUnit()\r\n\t{\r\n\t\treturn super.getShort(0);\r\n\t}",
"public static Unit getDefaultUnit() {\r\n return (Unit)getDefaultUnit(AngularMeasurement.class);\r\n }",
"public String getDurationUnit() {\n\t\treturn (String) get_Value(\"DurationUnit\");\n\t}",
"private void setupConvertDialog() {\n\t\tfinal int displayUnit = preferences.getInt(\"displayUnit\", UnitType.FOOTINCH\n\t\t\t\t.getId());\n\t\tfinal CharSequence[] unitCharSequence = UnitType\n\t\t\t\t.getCharSequenceItemsForDisplay();\n\t\tAlertDialog.Builder unitDialog = new AlertDialog.Builder(context);\n\t\tunitDialog.setTitle(context.getString(R.string.menuDisplayConvertToUnit) + \"...\");\n\t\tunitDialog.setItems(unitCharSequence,\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int item) {\n\t\t\t\t\t\tString s = (String) unitCharSequence[item];\n\t\t\t\t\t\tUnitType ut = UnitType.getUnitTypeFromDisplayFormat(s);\n\n\t\t\t\t\t\tString abbreviation = ut.getAbbreviation();\n\t\t\t\t\t\tLog.i(\"convert\", \"convert to unit: \" + abbreviation);\n\t\t\t\t\t\t// convert to specified format\n\t\t\t\t\t\t\n\t\t\t\t\t\t//expression in this case should be the entire formula in memory\n\t\t\t\t\t\t//String expression = display.get()\n\t\t\t\t\t\t//\t\t+ context.getString(R.string.equal);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//String expressionToConvert = expression + context.getString(R.string.equal);\n\t\t\t\t\t\t\n\t\t\t\t\t\texpression = \"\";\t\t\t\t\t\t\n\t\t\t\t\t\tString expressionToConvert = display.get() + context.getString(R.string.equal);\n\t\t\t\t\t\tdisplay.clear();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//Measurement result = parser.convert(expression, ut);\n\t\t\t\t\t\t\tMeasurement result = parser.convert(parser.solve(expressionToConvert), ut);\n\t\t\t\t\t\t\tif (result == null) {\n\t\t\t\t\t\t\t\tdisplay.add(context.getString(R.string.error));\n\t\t\t\t\t\t\t\tLog.e(\"convert\", \"result null for: \"\n\t\t\t\t\t\t\t\t\t\t+ expressionToConvert);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//HACK -- set display unit to correct unit\n\t\t\t\t\t\t\t\tsaveCurrentPreferences();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSharedPreferences.Editor editor = preferences.edit();\n\t\t\t\t\t\t\t\teditor = preferences.edit();\n\t\t\t\t\t\t\t\teditor.putInt(\"displayUnit\", ut.getId());\n\t\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\t\t//HACK -- set display unit to correct unit\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString printable = parser\n\t\t\t\t\t\t\t\t\t\t.getPrintableResult(result);\n\t\t\t\t\t\t\t\tdisplay.add(printable);\n\t\t\t\t\t\t\t\tLog.i(\"convert\", \"printable result: \"\n\t\t\t\t\t\t\t\t\t\t+ printable);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//HACK -- set display unit to correct unit\n\t\t\t\t\t\t\t\trestoreCurrentPreferences();\n\t\t\t\t\t\t\t\t//HACK -- set display unit to correct unit\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (ExpressionParserException epe) {\n\t\t\t\t\t\t\tshowErrorAndResetDisplay(epe.getMessage(), false);\n\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\tdisplay.add(context.getString(R.string.error));\n\t\t\t\t\t\t\tLog.e(\"convert\", \"expression: \" + expressionToConvert\n\t\t\t\t\t\t\t\t\t+ ex.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tAlertDialog alert = unitDialog.create();\n\t\talert.show();\n\t}",
"public jkt.hms.masters.business.MasStoreAirForceDepot getUnit () {\n\t\treturn unit;\n\t}",
"public void setUnit(Unit unit) {\r\n\t\tthis.unit = unit;\r\n\t}",
"public String getUnitName () {\n return unitName;\n }",
"public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}",
"Unit(String unitIn, UnitType utIn) {\n\t\tthis(new Apfloat(unitIn, APFLOATPRECISION), utIn, 1);\n\t}",
"public Unit<Angle> microradian() {return microradian;}",
"public int getUnits()\n {\n return m_cCurUnits;\n }"
] | [
"0.8126267",
"0.7846166",
"0.76446784",
"0.7582117",
"0.7440303",
"0.7414013",
"0.7373712",
"0.7360317",
"0.72994536",
"0.72994536",
"0.72994536",
"0.72398",
"0.72398",
"0.72398",
"0.7226537",
"0.7187867",
"0.7171545",
"0.7124142",
"0.7113863",
"0.70872486",
"0.7042483",
"0.70360506",
"0.70285517",
"0.70076776",
"0.69364667",
"0.69238335",
"0.68880033",
"0.6882386",
"0.68595266",
"0.6835672",
"0.6785301",
"0.6764087",
"0.67594534",
"0.67372555",
"0.6723953",
"0.6682334",
"0.66769475",
"0.66692483",
"0.6628297",
"0.66259193",
"0.65949905",
"0.65938157",
"0.656778",
"0.65523505",
"0.6545478",
"0.65379494",
"0.6536054",
"0.6495882",
"0.64949816",
"0.64895445",
"0.6482287",
"0.6479166",
"0.6448789",
"0.6442333",
"0.6429854",
"0.6410305",
"0.64037204",
"0.63905925",
"0.63710356",
"0.63596654",
"0.6326336",
"0.63221765",
"0.63112164",
"0.63057286",
"0.62917405",
"0.62900263",
"0.62884516",
"0.62769526",
"0.62574065",
"0.62497145",
"0.62427413",
"0.62351507",
"0.62206554",
"0.6207449",
"0.61985457",
"0.61932844",
"0.6187942",
"0.6153936",
"0.6145469",
"0.61425275",
"0.6135155",
"0.613103",
"0.6111029",
"0.6077057",
"0.6077057",
"0.60743713",
"0.6073251",
"0.6071987",
"0.6071987",
"0.6046762",
"0.6040762",
"0.60359937",
"0.602559",
"0.60166854",
"0.601661",
"0.6011674",
"0.60046524",
"0.59980136",
"0.5977359",
"0.59548336"
] | 0.7326883 | 8 |
return the unit the user wants to convert to | public String getToUnit() {
return this.toUnit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return \"mm\";\n } else if (\"pixel\".equals(unit)) {\n return \"px\";\n }\n return \"\";\n }",
"String getUnit();",
"public String getUnit();",
"public abstract double toBasicUnit(double unit);",
"private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }",
"public String getUnit()\n {\n return (this.unit);\n }",
"String getUnitsString();",
"String getUnits();",
"String getUnits();",
"String getUnits();",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n\t\tString unit;\n\t\ttry {\n\t\t\tunit = this.getString(\"unit\");\n\t\t} catch (Exception e) {\n\t\t\tunit = null;\n\t\t}\n\t\treturn unit;\n\t}",
"DefinedUnitType getDefinedUnit();",
"public String getUnit () {\n\treturn this.unit;\n }",
"public String unit() {\n return this.unit;\n }",
"public String getUnit() {\n\t\treturn unit;\n\t}",
"TimeUnit getUnit();",
"DefiningUnitType getDefiningUnit();",
"Unit getUnit();",
"public static String units(String unit) {\n\t\tswitch (unit) {\n\t\t\tcase \"feet\":\n\t\t\t\treturn \"ft\";\n\t\t\tcase \"miles\":\n\t\t\t\treturn \"mi\";\n\t\t\tcase \"meters\":\n\t\t\t\treturn \"m\";\n\t\t\tcase \"kilometers\":\n\t\t\t\treturn \"km\";\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t}\n\t}",
"ChronoUnit getUnit();",
"public UnitTypes GetCurrentUnitType()\n {\n return MethodsCommon.GetTypeFromUnit(Unit);\n }",
"public String getFromUnit() {\r\n return this.fromUnit;\r\n }",
"public abstract String getUnit();",
"public double convert(double amount, Unit u);",
"public String getUnitOfMeasure() {\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver, \"//input[@name='unitOfMeasure']/following-sibling::input[@type='text']\").getAttribute(\"value\");\r\n\t}",
"public String getUnitsString() {\n String result = null;\n if (forVar != null) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.UNITS);\n if ((att != null) && att.isString())\n result = att.getStringValue();\n }\n return (result == null) ? units : result.trim();\n }",
"public void setUnit (String value) {\n\tthis.unit = value;\n }",
"Units getUnits();",
"String getBaseUnit() {\n return baseUnit;\n }",
"public String getUnit() {\n\t\treturn(symbol);\n\t}",
"public String getUnits() {\n return units;\n }",
"private String getAmountUnit(int unit) {\n switch (unit) {\n case UNIT_LITERS:\n return getResourceString(R.string.val_l);\n case UNIT_GALLONS:\n return getResourceString(R.string.val_g);\n }\n\n return \"\";\n }",
"public String getUnitsString() {\n return units;\n }",
"public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }",
"public String getUserUnitString() {\n\t\treturn NonSIext.getUnitString(userUnit);\n\t}",
"public void setUnit(String unit);",
"protected String getUnits()\n {\n return units;\n }",
"public String getUnits() {\n return units;\n }",
"public String getUnits() {\r\n\t\treturn units;\r\n\t}",
"public String getUnits() {\n return this.units;\n }",
"private String getUnits(Unit units, int value) {\n if (units == Unit.FEET) {\n if (value == 1) return \" foot\";\n return \" feet\";\n }\n if (value == 1) return \" inch\";\n return \" inches\";\n }",
"@Updatable\n public String getUnit() {\n return unit;\n }",
"public String getUnitOfMeasurement() {\r\n\t\treturn unitOfMeasurement;\r\n\t}",
"public interface Unit {\n\t/**\n\t * Convert value of this unit to u\n\t * @param amount\n\t * \t\t\t\tis value of this Unit\n\t * @param u\n\t * \t\t\tis Unit that we want to convert to\n\t * @return calculated value \n\t */\n\tpublic double convert(double amount, Unit u);\n}",
"public static UnitTypes GetUnitType(Units unit)\n {\n return MethodsCommon.GetTypeFromUnit(unit);\n }",
"public String getUnits() {\n\t\treturn units;\n\t}",
"public Unit getUnit() {\n\t\treturn unit;\n\t}",
"public String getUnitOfMeasure() {\r\n return this.unitOfMeasure;\r\n }",
"public java.lang.String getUnits() {\r\n return localUnits;\r\n }",
"public String getUnitnm() {\r\n return unitnm;\r\n }",
"public void setUnit(String unit)\n {\n this.unit = unit;\n }",
"public int getUnitNum(){\n\t\treturn Integer.parseInt(unitNumLbl.getText());\n\t}",
"public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum getUnit()\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(UNIT$6, 0);\n if (target == null)\n {\n return null;\n }\n return (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum)target.getEnumValue();\n }\n }",
"public void setUnit(String unit) {\n this.unit = unit;\n }",
"@javax.persistence.Column(name = \"unit\", precision = 5)\n\tpublic java.lang.String getUnit() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT);\n\t}",
"public Unit getUnit() {\n return unit;\n }",
"public String getWeightUnit() {\n return (String) get(\"weight_unit\");\n }",
"public abstract double fromBasicUnit(double valueJTextInsert);",
"private void convertInput(double input) {\n\n if (input != 0) {\n // Set standard value in meters based on selected unit\n switch (selectedUnit) {\n case \"km\":\n standard = input / 0.001;\n break;\n case \"m\":\n standard = input;\n break;\n case \"cm\":\n standard = input / 100;\n break;\n case \"mm\":\n standard = input / 1000;\n break;\n case \"μm\":\n standard = input / 1000000;\n break;\n case \"nm\":\n standard = input / 1000000000;\n break;\n case \"mi\":\n standard = input / 0.000621371;\n break;\n case \"yd\":\n standard = input / 1.09361;\n break;\n case \"ft\":\n standard = input / 3.28084;\n break;\n case \"in\":\n standard = input / 39.3701;\n break;\n default:\n standard = input;\n break;\n }\n //km\n kmTextView.setText(numberFormatter(standard * 0.001));\n //m\n mTextView.setText(numberFormatter(standard * 1));\n //cm\n cmTextView.setText(numberFormatter(standard * 100));\n //mm\n mmTextView.setText(numberFormatter(standard * 1000));\n //um\n umTextView.setText(numberFormatter(standard * 1000000));\n //nm\n nmTextView.setText(numberFormatter(standard * 1000000000));\n //mi\n miTextView.setText(numberFormatter(standard * 0.000621371));\n //yd\n ydTextView.setText(numberFormatter(standard * 1.09361));\n //ft\n ftTextView.setText(numberFormatter(standard * 3.28084));\n //in\n inTextView.setText(numberFormatter(standard * 39.3701));\n } else {\n //km\n kmTextView.setText(\"\");\n //m\n mTextView.setText(\"\");\n //cm\n cmTextView.setText(\"\");\n //mm\n mmTextView.setText(\"\");\n //um\n umTextView.setText(\"\");\n //nm\n nmTextView.setText(\"\");\n //mi\n miTextView.setText(\"\");\n //yd\n ydTextView.setText(\"\");\n //ft\n ftTextView.setText(\"\");\n //in\n inTextView.setText(\"\");\n }\n }",
"public byte getUnits() { return units; }",
"Unit(double baseUnitConversion) {\n this.baseUnitConversion = baseUnitConversion;\n }",
"public Length getUnit() {\n return unit;\n }",
"public Unit<Length> footSurveyUS() {return footSurveyUS;}",
"@Accessor(qualifier = \"Unit\", type = Accessor.Type.GETTER)\n\tpublic B2BUnitModel getUnit()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(UNIT);\n\t}",
"public String getTransferUnit() {\n\n if (transferUnit.length() > 0) {\n return transferUnit + \"/sec\";\n } else {\n return transferUnit; // default value is empty string\n }\n }",
"public int getUnits() {\r\n return units;\r\n }",
"public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType xgetUnit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType)get_store().find_element_user(UNIT$6, 0);\n return target;\n }\n }",
"public SystemOfUnits getSystemOfUnits() {\n return SI.getInstance();\n }",
"private String getDistanceUnit(int distance) {\n switch (distance) {\n case DISTANCE_KM:\n return getResourceString(R.string.val_km);\n case DISTANCE_MILES:\n return getResourceString(R.string.val_m);\n }\n\n return \"\";\n }",
"public void setUnit(String unit) {\n\t\tthis.unit = unit;\n\t}",
"public static String convertUnitStr(Unit source_unit, Unit target_unit) \n\tthrows ArithmeticException {\n\t\tdouble f = source_unit.factor/target_unit.factor;\n\t\tdouble ls;\n\t\tif(target_unit.mksa == source_unit.mksa) {\n\t\t\tif((target_unit.mksa&_log)==0){\n\t\t\t\tdouble toAdd = (source_unit.offset-target_unit.offset)/target_unit.factor;\n\t\t\t\treturn f*((source_unit.value!=0.0)?source_unit.value:1.0)+\"*UNIT\"+((toAdd==0.0)?\"\":(toAdd<0.0)?\"\":\"+\"+toAdd);\n\t\t\t}\n\t\t\telse{\t// Convert to log scale: log(km) --> log(m)+log(k)\n\t\t\t\tif((source_unit.offset!=0)||(target_unit.offset!=0)){\n\t\t\t\t\tthrow new ArithmeticException(\"****Unit: can't convert non-standard unit \" + source_unit.symbol + \" into \" + target_unit.symbol);\n\t\t\t\t}\n\t\t\t\tf = AstroMath.log(f);\n\t\t\t\tif ((target_unit.mksa&_mag) != 0) f = -2.5*f;\n\t\t\t\treturn ((source_unit.value!=0.0)?source_unit.value+\"*\":\"\")+\"UNIT\"+((f<0.0)?\"\":\"+\")+f;\n\t\t\t}\n\t\t}\n\t\tif((target_unit.mksa&(~_LOG))!=(source_unit.mksa&(~_LOG))){\t\n\t\t\tthrow new ArithmeticException(\"****Unit: can't convert \" + source_unit.symbol + \" into \" + target_unit.symbol);\n\t\t}\n\t\t/* Convert to / from Log scale */\n\t\tif ((target_unit.mksa&_log)==0) {\t\t// Remove the log\n\t\t\tls = (source_unit.mksa&_mag)!=0?-2.5:1.;\n\t\t\treturn (source_unit.mksa&_mag)!=0?\n\t\t\t\t\tf+\"*exp(-(UNIT*\"+((source_unit.value!=0.0)?source_unit.value:1.0)*AstroMath.ln10+\")/2.5)\"\n\t\t\t\t\t:f+\"*exp(UNIT*\"+((source_unit.value!=0.0)?source_unit.value:1.0)*AstroMath.ln10+\")\";\n\t\t}\n\t\t/* The target is a log. Check whether the source is also in log scale */\n\t\tif ((source_unit.mksa&_log) != 0) {\t// Convert from log to log\n\t\t\tString toReturn = (source_unit.mksa&_mag)!=0?-0.4*((source_unit.value!=0.0)?source_unit.value:1.0)+\"*UNIT\":((source_unit.value!=0.0)?source_unit.value+\"*\":\"\")+\"UNIT\";\n\t\t\ttoReturn += AstroMath.log(f); // Target assumed to be log\n\t\t\tif((target_unit.mksa&_mag)!=0) return \"-2.5*(\"+toReturn+\")\";\t// Target is a magnitude\n\t\t\treturn toReturn;\n\t\t}\n\t\t/* The target is a log, the source is in a linear scale. */\n\t\tls = (target_unit.mksa&_mag)!=0?-2.5:1.;\n\t\treturn ls+\"*log(\"+(f*((source_unit.value!=0.0)?source_unit.value:1.0))+\"*UNIT)\";\n\t}",
"public void setUnit(Length units) {\n unit = units;\n }",
"public SystemOfUnits getSystemOfUnits(String name) {\n if (name.equals(\"SI\")) return SI.getInstance();\n if (name.equals(\"UCUM\")) return UCUM.getInstance();\n return null;\n }",
"@Override\n\tpublic String getUnitsString() {\n\t\treturn null;\n\t}",
"public String getDurationUnit() {\n\t\treturn (String) get_Value(\"DurationUnit\");\n\t}",
"public String getUnits() {\n\t\tif (GridDialog.GRID_UNITS.containsKey(name)) {\n\t\t\treturn GridDialog.GRID_UNITS.get(name);\n\t\t}else {\n\t\t\t//for contributed grid, need to find the units from the ESRIShapefile object\n\t\t\tfor (LayerPanel layerPanel : ((MapApp)map.getApp()).layerManager.getLayerPanels()) {\n\t\t\t\tif (layerPanel.layer instanceof ESRIShapefile && ((ESRIShapefile)layerPanel.layer).equals(this)) {\n\t\t\t\t\tESRIShapefile esf = (ESRIShapefile)(layerPanel.layer);\n\t\t\t\t\treturn esf.getGridUnits();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}",
"public Units getUnitTable();",
"public String getUnitcd() {\r\n return unitcd;\r\n }",
"public static NormalTridasUnit parseUnitString(String str) throws Exception\n\t{\n\t\tstr = str.trim();\n\t\tif ((str==null) || (str.equals(\"\"))) return null;\n\t\n\t\tstr =str.toLowerCase();\n\t\t\n\t\tInteger val;\n\t\tBoolean mmDetected = false;\n\t\t\n\t\t//Remove leading fraction\n\t\tif(str.startsWith(\"1/\")){ str = str.substring(2);}\n\t\t\n\t\t// Remove 'ths'\n\t\tif(str.contains(\"ths\")){ str = str.replace(\"ths\", \"\");}\n\t\t\n\t\t// Remove 'th'\n\t\tif(str.contains(\"th\")){ str = str.replace(\"th\", \"\");}\n\t\t\n\t\t// Remove 'mm'\n\t\tif(str.contains(\"mm\"))\n\t\t{ \n\t\t\tstr = str.replace(\"mm\", \"\");\n\t\t\tmmDetected = true;\n\t\t}\n\t\tif(str.contains(\"millimet\"))\n\t\t{ \n\t\t\tstr = str.replace(\"millimetres\", \"\");\n\t\t\tstr = str.replace(\"millimeters\", \"\");\n\t\t\tstr = str.replace(\"millimetre\", \"\");\n\t\t\tstr = str.replace(\"millimeter\", \"\");\n\t\t\tmmDetected = true;\n\t\t}\n\t\t\n\t\tif(str.length()==0 && mmDetected)\n\t\t{\n\t\t\treturn NormalTridasUnit.MILLIMETRES;\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tval = Integer.parseInt(str.trim());\n\t\t} catch (NumberFormatException e)\n\t\t{\n\t\t\tthrow new Exception(\"Unable to parse units from units string\");\n\t\t}\n\t\t\n\t\tswitch(val)\n\t\t{\t\n\t\t\tcase 10: return NormalTridasUnit.TENTH_MM; \n\t\t\tcase 20: return NormalTridasUnit.TWENTIETH_MM;\n\t\t\tcase 50: return NormalTridasUnit.FIFTIETH_MM;\n\t\t\tcase 100: return NormalTridasUnit.HUNDREDTH_MM; \n\t\t\tcase 1000: return NormalTridasUnit.MICROMETRES; \n\t\t}\n\t\t\n\t\tthrow new Exception(\"Unable to parse units from units string\");\n\t}",
"public short getResolutionUnit()\r\n\t{\r\n\t\treturn super.getShort(0);\r\n\t}",
"public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}",
"public String getDestinUnits() {\n return this.destinUnits;\n }",
"public String getUnitName() {\n return unitName;\n }",
"public String getUnitName() {\n return unitName;\n }",
"private ChronoUnit parseUnit(String unitStr) {\n unitStr = unitStr.toUpperCase();\n // If the unitStr ends with a 'S' then do nothing otherwise add a 'S' to the end\n unitStr = unitStr.charAt(unitStr.length() - 1) == 'S' ? unitStr : unitStr + \"S\";\n // Return the corresponding ChronoUnit\n switch (unitStr) {\n case \"DAYS\":\n return ChronoUnit.DAYS;\n case \"WEEKS\":\n return ChronoUnit.WEEKS;\n case \"HOURS\":\n return ChronoUnit.HOURS;\n case \"SECONDS\":\n return ChronoUnit.SECONDS;\n case \"MINUTES\":\n return ChronoUnit.MINUTES;\n }\n return ChronoUnit.DAYS;\n }",
"public jkt.hms.masters.business.MasStoreAirForceDepot getUnit () {\n\t\treturn unit;\n\t}",
"public String getUnitName() {\r\n return unitName;\r\n }",
"public void setUnits(String units) {\n this.units = units;\n }",
"public void setUnits(String units) {\n this.units = units;\n }",
"public void setUnit(Unit unit) {\r\n\t\tthis.unit = unit;\r\n\t}",
"public int getUnits() {\n\t\treturn units;\n\t}",
"public int getUnits()\n {\n return m_cCurUnits;\n }",
"public String getSIunit() {\n\t\tStringBuffer b = new StringBuffer(64);\n\t\ttoSI(b, 0);\n\t\treturn(\"\"+b);\n\t}",
"public String getUnitName () {\n return unitName;\n }",
"public Unit<Length> kilometre() {return kilometre;}",
"public Unit<Angle> microradian() {return microradian;}",
"public static Unit getDefaultUnit() {\r\n return (Unit)getDefaultUnit(AngularMeasurement.class);\r\n }"
] | [
"0.8193303",
"0.79507405",
"0.77497107",
"0.7617496",
"0.75329214",
"0.74850714",
"0.7455411",
"0.7412711",
"0.7412711",
"0.7412711",
"0.73598236",
"0.73598236",
"0.73598236",
"0.73383707",
"0.7258368",
"0.7248093",
"0.7245452",
"0.72442627",
"0.7207171",
"0.71632016",
"0.7126138",
"0.71120596",
"0.7071044",
"0.706816",
"0.7060622",
"0.69818443",
"0.6980834",
"0.69748145",
"0.6935412",
"0.69288623",
"0.6867216",
"0.6823258",
"0.68143415",
"0.6796685",
"0.6794785",
"0.6787908",
"0.6762527",
"0.6755917",
"0.6747665",
"0.67349976",
"0.6724184",
"0.6686835",
"0.66649014",
"0.66542107",
"0.6647983",
"0.66463846",
"0.6635457",
"0.66169363",
"0.6604457",
"0.6550228",
"0.65358275",
"0.65351754",
"0.6522827",
"0.65161645",
"0.65102005",
"0.6492786",
"0.64892846",
"0.6471199",
"0.6465983",
"0.64506215",
"0.6446742",
"0.64425755",
"0.6422484",
"0.64183885",
"0.63900477",
"0.63896465",
"0.6381325",
"0.63649374",
"0.63624203",
"0.6355755",
"0.63528734",
"0.6330011",
"0.62799937",
"0.6255475",
"0.62348676",
"0.62324154",
"0.62288123",
"0.62010443",
"0.6195588",
"0.61843324",
"0.61782205",
"0.6170243",
"0.6157539",
"0.6153658",
"0.6150712",
"0.6143083",
"0.6143083",
"0.61419845",
"0.61375123",
"0.613512",
"0.610998",
"0.610998",
"0.6104674",
"0.6093231",
"0.6092604",
"0.6089642",
"0.60835683",
"0.60705405",
"0.606938",
"0.6067636"
] | 0.771519 | 3 |
return the value the user wants to convert | public double getValue() {
return this.value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String makeConversion(String value);",
"private void convert() {\n\t\t//first we have to get the input from textField to covert it\n\t\tString input = inputText.getText(); //caz getText() returns anything in String only.\n\t\tfloat enteredTemperature = 0.0f;\n\t\ttry {\n\t\t\tenteredTemperature = Float.parseFloat(input); //converting string in float type.\n\t\t}catch (Exception e){\n\t\t\twarnUser(); // here we warn, user to enter valid temperature but the info shows value for default\n\t\t\t// we have to add retrun; to end the code here only.\n\t\t\treturn;\n\t\t}\n\t\tfloat newConvertedTemperature = 0.0f;\n\t\tif(isC_to_F_selected) //IF user selected C_to_F_Text then do this\n\t\t{\n\t\t\tnewConvertedTemperature = (enteredTemperature * 9/5) + 32;\n\t\t}else{ //IF user selected F_to_C_Text then do this\n\t\t\tnewConvertedTemperature = (enteredTemperature - 32) * 5/9;\n\t\t}\n\t\tdisplay(newConvertedTemperature);\n\t}",
"Object getConvertedValue() throws ConversionException;",
"private void convert()\n {\n if (choiceBox.getValue().equals(\"US-Dollar\"))\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double dollar = currencyConverter.euroToDollar(euro);\n txtYen.setText(DEC2FORMAT.format(dollar));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n else\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double yen = currencyConverter.euroToYen(euro);\n txtYen.setText(DEC2FORMAT.format(yen));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n }",
"public String getConvertedValue() {\r\n return convertedValue;\r\n }",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"public static void main(String[] args) {\n byte conversionType;\n String inputType = new String();\n String resultType = new String();\n double initialValue = 0.0;\n double convertedValue = 0.0;\n Scanner userInput = new Scanner(System.in);\n DecimalFormat resultFormat = new DecimalFormat(\"#.##\"); \n\n System.out.print(\"Enter 0 to convert hours to minutes.\"\n + \"\\nEnter 1 to convert days to hours.\"\n + \"\\nEnter 2 to convert minutes to hours.\"\n + \"\\nEnter 3 to convert hours to days.\\n\");\n do {\n System.out.print(\"Selection: \");\n conversionType = userInput.nextByte();\n } while (conversionType < 0 || conversionType > 3);\n switch (conversionType) {\n case 0:\n inputType = \"Hours\";\n resultType = \"Minutes\";\n initialValue = getValue(userInput, inputType, resultType);\n convertedValue = initialValue * 60.0;\n break;\n case 1:\n inputType = \"Days\";\n resultType = \"Hours\";\n initialValue = getValue(userInput, inputType, resultType);\n convertedValue = initialValue * 24.0;\n break;\n case 2:\n inputType = \"Minutes\";\n resultType = \"Hours\";\n initialValue = getValue(userInput, inputType, resultType);\n convertedValue = initialValue / 60.0;\n break;\n case 3:\n inputType = \"Hours\";\n resultType = \"Days\";\n initialValue = getValue(userInput, inputType, resultType);\n convertedValue = initialValue / 24.0;\n break;\n }\n System.out.println(resultFormat.format(initialValue) + \" \" + inputType + \" converts to \" \n + resultFormat.format(convertedValue) + \" \" + resultType);\n }",
"public void Convert() {\n value = value;\n }",
"public void convert(){\n\t\t\tJTextField[] textFieldArray = { firstTextField , secondTextField };\n\t\t\tint numberArrayToConverter = ( (firstTextField.isFocusOwner() || chooseUnitSecondBox.isFocusOwner() )) ? 0 : 1 ;\n\t\t\tString s = textFieldArray[numberArrayToConverter].getText().trim();\n\t\t\tif ( s.length() > 0 ){\n\t\t\t\tfirstTextField.setForeground(Color.BLACK);\n\t\t\t\tsecondTextField.setForeground(Color.BLACK);\n\t\t\t\ttry {\n\t\t\t\t\tdouble value = Double.valueOf(s);\n\t\t\t\t\tUnit unitFirstSelected = (Unit) chooseUnitFirstBox.getSelectedItem();\n\t\t\t\t\tUnit unitSecondSelected = (Unit) chooseUnitSecondBox.getSelectedItem();\n\t\t\t\t\tUnit[] unitArray = {unitFirstSelected , unitSecondSelected};\n\t\t\t\t\tint numberSwitch = (numberArrayToConverter == 0) ? 1 : 0 ;\n\t\t\t\t\ttextFieldArray[numberSwitch].setText( String.format(\"%.5g\", unitconverter.convert(value, unitArray[numberArrayToConverter], unitArray[numberSwitch])));\n\t\t\t\t} catch (NumberFormatException e){\n\t\t\t\t\tfirstTextField.setForeground(Color.RED);\n\t\t\t\t\tsecondTextField.setForeground(Color.RED);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"T convert(String value);",
"public void userInput() {\r\n System.out.println(\"You want to convert from:\");\r\n this.fromUnit = in.nextLine();\r\n System.out.print(\"to: \");\r\n this.toUnit = in.nextLine();\r\n System.out.print(\"The value is \");\r\n this.value = in.nextDouble();\r\n }",
"private void convertion(){\n txtBox2.setText(workin.convertText(txtBox1.getText())) ; \n }",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"private void convertInput(double input) {\n\n if (input != 0) {\n // Set standard value in meters based on selected unit\n switch (selectedUnit) {\n case \"km\":\n standard = input / 0.001;\n break;\n case \"m\":\n standard = input;\n break;\n case \"cm\":\n standard = input / 100;\n break;\n case \"mm\":\n standard = input / 1000;\n break;\n case \"μm\":\n standard = input / 1000000;\n break;\n case \"nm\":\n standard = input / 1000000000;\n break;\n case \"mi\":\n standard = input / 0.000621371;\n break;\n case \"yd\":\n standard = input / 1.09361;\n break;\n case \"ft\":\n standard = input / 3.28084;\n break;\n case \"in\":\n standard = input / 39.3701;\n break;\n default:\n standard = input;\n break;\n }\n //km\n kmTextView.setText(numberFormatter(standard * 0.001));\n //m\n mTextView.setText(numberFormatter(standard * 1));\n //cm\n cmTextView.setText(numberFormatter(standard * 100));\n //mm\n mmTextView.setText(numberFormatter(standard * 1000));\n //um\n umTextView.setText(numberFormatter(standard * 1000000));\n //nm\n nmTextView.setText(numberFormatter(standard * 1000000000));\n //mi\n miTextView.setText(numberFormatter(standard * 0.000621371));\n //yd\n ydTextView.setText(numberFormatter(standard * 1.09361));\n //ft\n ftTextView.setText(numberFormatter(standard * 3.28084));\n //in\n inTextView.setText(numberFormatter(standard * 39.3701));\n } else {\n //km\n kmTextView.setText(\"\");\n //m\n mTextView.setText(\"\");\n //cm\n cmTextView.setText(\"\");\n //mm\n mmTextView.setText(\"\");\n //um\n umTextView.setText(\"\");\n //nm\n nmTextView.setText(\"\");\n //mi\n miTextView.setText(\"\");\n //yd\n ydTextView.setText(\"\");\n //ft\n ftTextView.setText(\"\");\n //in\n inTextView.setText(\"\");\n }\n }",
"public static int getOption() {\n\t\t\n\t\tSystem.out.println(\"*** Temperature Conversion ***\");\n\t\tSystem.out.println(\"1. Celsius to Farhenheit\");\n\t\tSystem.out.println(\"2. Farhenheit to Celsius\");\n\t\tSystem.out.println(\"Enter conversion option\");\n\t\tint optionValue = sc.nextInt();\n\t\treturn optionValue;\n\t}",
"int getFromValue();",
"String getVal();",
"public String getValue2();",
"public static double getValue(Scanner userInput, String inputType, String resultType) {\n double initialValue;\n \n System.out.println(\"Convert \" + inputType + \" to \" + resultType + \".\");\n do {\n System.out.print(\"Enter \" + inputType + \": \");\n initialValue = userInput.nextDouble();\n } while (initialValue <= 0.0);\n return(initialValue);\n }",
"public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }",
"public Object getConvertedValue(FacesContext context, UIComponent component,\n String newValue) throws IOException {\n return newValue; \n }",
"public static void getPositiveAndNegativeInput() {\n Double num = getDoubleInput(\"enter the number you would like to change\");\n println(String.valueOf(positiveAndNegative(num)));\n }",
"public double Convert(String from, String to, double input) {\n\n\t\tdouble deno = valuesMap.get(from);\n\t\tdouble nume = valuesMap.get(to);\n\t\tdouble ret = (nume / deno) * input;\n\t\treturn ret;\n\t}",
"Object getValueFrom();",
"String getValueFormatted();",
"private String getResult(TextInputDialog dialog, String original){\n\t\tOptional<String> output = dialog.showAndWait();\n\t\tif(output.isPresent()){\n\t\t\ttry{\n\t\t\t\tDouble.parseDouble(output.get());\n\t\t\t}\n\t\t\tcatch(NumberFormatException nfe){\n\t\t\t\tdialog.setHeaderText(\"Invalid value!\");\n\t\t\t\treturn getResult(dialog, original);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\treturn original;\n\t\t}\n\t\treturn output.get();\n\t}",
"public double convert(double input, int from, int to) {\n \t\tdouble sqMMeter;\n \n \t\tif (from == 0) {// Squaremillimeters\n \t\t\tsqMMeter = input;\n \t\t} else if (from == 1) { // Squarecentimeters\n \t\t\tsqMMeter = input * 100;\n \t\t} else if (from == 2) {// Squarefeet\n \t\t\tsqMMeter = input * 92903;\n \t\t} else if (from == 3) { // Squareinches\n \t\t\tsqMMeter = input * 645.2;\n \t\t} else { // Squareyards\n \t\t\tsqMMeter = input * 836127;\n \t\t}\n \n \t\t\n \t\tif (to == 0) {// Squaremillimeters\n\t\t\treturn input;\n \t\t} else if (to == 1) { // Squarecentimeters\n\t\t\treturn input / 100;\n \t\t} else if (to == 2) {// Squarefeet\n\t\t\treturn input / 92903;\n \t\t} else if (to == 3) { // Squareinches\n\t\t\treturn input / 645.2;\n \t\t} else { // Squareyards\n\t\t\treturn input / 836127;\n \t\t}\n \t}",
"String value();",
"String value();",
"abstract String convertEnglishNumber(String number);",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public\t\tString\t\tgetValue()\n\t\t{\n\t\treturn(\"\" + getNormalizedValue());\n\t\t}",
"private Vote convertToVote(String input){\n if(input.equalsIgnoreCase(\"YES\") || input.equalsIgnoreCase(\"Y\"))\n return Vote.COMMIT;\n\n if(input.equalsIgnoreCase(\"NO\") || input.equalsIgnoreCase(\"N\"))\n return Vote.ABORT;\n\n return null;\n }",
"public <T> T convertGet(T value, T standard)\n\t{\n\t\treturn value != null ? value : standard;\n\t}",
"protected Object valueTranslator(Object value){\n\t\treturn value;\n\t}",
"public String transform(String value){\n return value;\n }",
"private String externalConversion() {\n int reading = ((record[19] & 255) + ((record[21] & 0x03) << 8));\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = externalConversion.eval(variables);\n\n String x = result + \"\";\n\n if(this.counter){\n x = Integer.parseInt(x) * (60/rate) + \"\";\n }\n\n return x;\n }",
"public double getConvertedValue() {\n return value;\n }",
"@Override\r\n public String convert(Long input) {\r\n return String.valueOf(input);\r\n }",
"private T convert(String value)\n {\n if (value == null)\n {\n return null;\n }\n\n Object result = null;\n\n if (this.converter != null)\n {\n try\n {\n result = converter.convert(value);\n }\n catch (Exception e)\n {\n throw ExceptionUtils.throwAsRuntimeException(e);\n }\n }\n else if (String.class.equals(configEntryType))\n {\n result = value;\n }\n else if (Class.class.equals(configEntryType))\n {\n result = ClassUtils.tryToLoadClassForName(value);\n }\n else if (Boolean.class.equals(configEntryType))\n {\n Boolean isTrue = \"TRUE\".equalsIgnoreCase(value);\n isTrue |= \"1\".equalsIgnoreCase(value);\n isTrue |= \"YES\".equalsIgnoreCase(value);\n isTrue |= \"Y\".equalsIgnoreCase(value);\n isTrue |= \"JA\".equalsIgnoreCase(value);\n isTrue |= \"J\".equalsIgnoreCase(value);\n isTrue |= \"OUI\".equalsIgnoreCase(value);\n\n result = isTrue;\n }\n else if (Integer.class.equals(configEntryType))\n {\n result = Integer.parseInt(value);\n }\n else if (Long.class.equals(configEntryType))\n {\n result = Long.parseLong(value);\n }\n else if (Float.class.equals(configEntryType))\n {\n result = Float.parseFloat(value);\n }\n else if (Double.class.equals(configEntryType))\n {\n result = Double.parseDouble(value);\n }\n\n return (T) result;\n }",
"Integer getTxtOrent();",
"public void convert(){\n afterValue = firstValue * 1000;\n }",
"public Object getConvertedValue(FacesContext facesContext, UIComponent\r\n uiComponent, Object submittedValue) throws ConverterException {\r\n\r\n // get the converter (if any) registered with this component \r\n Converter converter = null;\r\n if (uiComponent instanceof ValueHolder) {\r\n converter = ((ValueHolder) uiComponent).getConverter();\r\n }\r\n // if we didn't find a converter specifically registered with the component\r\n // then get the default converter for the type of the value binding,\r\n // if it exists\r\n ValueBinding valueBinding = uiComponent.getValueBinding(\"value\");\r\n if (converter == null && valueBinding != null) {\r\n Class valueBindingClass = valueBinding.getType(facesContext);\r\n if (valueBindingClass != null) {\r\n converter = facesContext.getApplication()\r\n .createConverter(valueBindingClass);\r\n }\r\n }\r\n\r\n if (converter != null) {\r\n return converter.getAsObject(facesContext, uiComponent,\r\n (String) submittedValue);\r\n } else if (submittedValue != null) {\r\n return (String) submittedValue;\r\n } else {\r\n return null;\r\n }\r\n }",
"String getValueFormat();",
"private String getCriterionValueValue()\n {\n return getConvertedValue(myCriterionValue.get());\n }",
"String getValue()\n {\n return value.toString();\n }",
"default T convert(final String value, final String format) {\n return convert(value);\n }",
"public double getValueFromUser(String message, boolean absolute) {\r\n\t\tString strValue = JOptionPane.showInputDialog(message);\r\n\t\tdouble value = -100;\r\n\t\ttry {\r\n\t\t\tvalue = Double.parseDouble(strValue);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// NUCLEUSINT-281 \r\n\t\t\treturn -1;\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\t// NUCLEUSINT-281\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tif (absolute) {\r\n\t\t\tif (value < InterfaceGuidelines.MINIMUM_SIZE)\r\n\t\t\t\tvalue = InterfaceGuidelines.MINIMUM_SIZE;\r\n\r\n\t\t\tif (cellForEditing.getCellY() == 0) {\r\n\t\t\t\tif (value < InterfaceGuidelines.MARGIN_TOP)\r\n\t\t\t\t\tvalue = InterfaceGuidelines.MARGIN_TOP;\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tif (value < 1)\r\n\t\t\t\tvalue = 1;\r\n\t\t\tif (value > 99)\r\n\t\t\t\tvalue = 99;\r\n\t\t}\r\n\r\n\t\treturn value;\r\n\t}",
"public int input1(){\n int Input1 = Integer.parseInt(numerator1.getText());\n return Input1;\n }",
"static String getStringValue(Object uazFactorValueObj) {\n String uazFactorValue;\n if (uazFactorValueObj instanceof Double) {\n LOGGER.trace(\"transforming a double value\");\n uazFactorValue = uazFactorValueObj.toString();\n }\n if (uazFactorValueObj instanceof Integer) {\n LOGGER.trace(\"transforming an integer value \");\n uazFactorValue = uazFactorValueObj.toString();\n } else if (uazFactorValueObj instanceof String) {\n LOGGER.trace(\"string value, no need to transform\");\n uazFactorValue = uazFactorValueObj.toString();\n } else {\n // TODO checked before entering this function!\n // LOGGER.warn(\" the type of the uaz feature for ALU is not recognized, the analysis may not be correct!\");\n LOGGER.trace(\"assuming the factor value is a string\");\n uazFactorValue = uazFactorValueObj.toString();\n }\n return uazFactorValue;\n }",
"protected Object getDefaultValue() {\r\n if (FeatureCollectionTools.isAttributeTypeNumeric((AttributeType) this.typeDropDown.getSelectedItem())) {\r\n AttributeType at = (AttributeType) this.typeDropDown.getSelectedItem();\r\n\r\n if (at.equals(AttributeType.INTEGER)) {\r\n int i = Integer.parseInt(this.defValueTextField.getText());\r\n return new Integer(i);\r\n }\r\n double d = Double.parseDouble(this.defValueTextField.getText());\r\n return new Double(d);\r\n }\r\n return this.defValueTextField.getText();\r\n }",
"String getValueText();",
"@Override\n public int getValue() {\n return Integer.parseInt(gValue.getText());\n }",
"private void outputBasedOnText(Editable s) {\n String stringValue = s.toString();\n if (stringValue.length() > 1 && stringValue.substring(stringValue.length() - 1).equals(\".\")) { // If the last char in string is \".\"\n convertInput(Double.parseDouble(stringValue.substring(0, stringValue.length() - 1)));\n } else if (!stringValue.matches(\"[-+]?\\\\d*\\\\.?\\\\d+\")) { // Check if stringValue is numeric\n convertInput(0);\n } else {\n convertInput(Double.parseDouble(stringValue));\n }\n }",
"public interface Converter {\n\n public double convert(String converterName, double value);\n}",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"abstract Object getValue (String str, ValidationContext vc) throws DatatypeException;",
"public String convert()\r\n\t{\r\n\t\treturn str;\r\n\t}",
"int getNumericalUserInput() {\n String input = userInput.next();\n int i = -1; //holds converted input\n boolean success = false;\n\n while (!success) {\n if (input.toLowerCase().equals(\"c\")) {\n i = -1;\n success = true;\n } else {\n try {\n i = Integer.parseInt(input);\n success = true;\n } catch (NumberFormatException e) {\n System.out.println(\"Invalid entry.\");\n break;\n }\n }\n }\n return i;\n }",
"String displayValue();",
"public Object convertTo(String value) {\r\n return toFont(value);\r\n }",
"@SuppressWarnings(\"all\")\n static Object aiValue(final Object input, final Class<?> type) {\n return aiValue(input, type, Value::aiType, (sourceType, targetType) -> aiExecute(sourceType, targetType, input,\n (source) -> {\n /*\n * If String, check whether it's date\n */\n if (String.class != type && Ut.isDate(source.toString())) {\n /*\n * String to\n */\n return V.vDate().to(source, sourceType);\n } else {\n return input.toString();\n }\n }));\n }",
"public int getC_Conversion_UOM_ID() \n{\nInteger ii = (Integer)get_Value(\"C_Conversion_UOM_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"private RoomType RoomTypeComboBoxValue()\r\n\t{\r\n\t\tRoomType o1 = (RoomType) rtComboBox.getSelectedItem();\r\n\t\treturn o1;\r\n\t}",
"String convertStringForStorage(String value);",
"public PromptValue getValue()\n {\n return value;\n }",
"@Override\n\tpublic Object getValue() {\n\t\tif (user != null)\n\t\t\tuser.setDefaultLocale(defaultLocaleField.getValue().toString());\n\t\t\n\t\treturn user;\n\t\t\n\t}",
"String getStringValue();",
"String getStringValue();",
"private static Number transform(Object value) {\n\t\tif (value == null) {\n\t\t\treturn Integer.valueOf(0);\n\t\t}\n\t\tif (value instanceof String) {\n\t\t\ttry {\n\t\t\t\treturn Integer.parseInt((String)value);\n\t\t\t} catch(NumberFormatException ex) {\n\t\t\t\ttry {\n\t\t\t\t\treturn Double.parseDouble((String)value);\n\t\t\t\t} catch (NumberFormatException ex2) {\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"String \" + value + \" cannot be interpreted as a number\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (!(value instanceof Double || value instanceof Integer)) {\n\t\t\tthrow new RuntimeException(value.toString() + \" cannot be interpreted as a number.\");\n\t\t}\n\t\treturn (Number)value;\n\t}",
"private int getT()\n\t{\n\t\tint numberT = Integer.parseInt(field2.getText()) ;\n\t\treturn numberT;\n\t\t\n\t}",
"public String\ngetValueString();",
"protected abstract CellValue< ? extends Comparable< ? >> convertModelCellValue(C column,\n V cell);"
] | [
"0.7082969",
"0.69562924",
"0.62936044",
"0.6170407",
"0.61566925",
"0.61381227",
"0.61381227",
"0.61381227",
"0.61381227",
"0.61381227",
"0.61381227",
"0.61381227",
"0.61381227",
"0.61381227",
"0.61381227",
"0.607115",
"0.6049937",
"0.6030006",
"0.6011591",
"0.59848976",
"0.5948375",
"0.59258145",
"0.59258145",
"0.59258145",
"0.59258145",
"0.59258145",
"0.59258145",
"0.5900508",
"0.58859134",
"0.58215886",
"0.58171356",
"0.5791412",
"0.57821643",
"0.57693905",
"0.57687503",
"0.57488835",
"0.57063913",
"0.5704205",
"0.5695859",
"0.5687217",
"0.5666127",
"0.5657431",
"0.5657431",
"0.5616494",
"0.5596081",
"0.5596081",
"0.5596081",
"0.5596081",
"0.5596081",
"0.5596081",
"0.5596081",
"0.5596081",
"0.5596081",
"0.55918515",
"0.5585379",
"0.55777204",
"0.5565623",
"0.5559624",
"0.5553158",
"0.55458057",
"0.5540554",
"0.5539477",
"0.55374783",
"0.5527635",
"0.5526488",
"0.5524581",
"0.55085355",
"0.5502891",
"0.5500175",
"0.5483634",
"0.54745036",
"0.5469432",
"0.5466378",
"0.54555714",
"0.5441313",
"0.5427586",
"0.5415758",
"0.5413279",
"0.5413279",
"0.5413279",
"0.5413279",
"0.5413279",
"0.5413279",
"0.5413279",
"0.54097956",
"0.5381588",
"0.53765106",
"0.53733975",
"0.5368413",
"0.5367058",
"0.53629214",
"0.53583574",
"0.5353515",
"0.534873",
"0.5346135",
"0.53359747",
"0.53359747",
"0.53319836",
"0.5330039",
"0.532952",
"0.53255045"
] | 0.0 | -1 |
Ask for conversion input | public void userInput() {
System.out.println("You want to convert from:");
this.fromUnit = in.nextLine();
System.out.print("to: ");
this.toUnit = in.nextLine();
System.out.print("The value is ");
this.value = in.nextDouble();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getInput();",
"String userInput(String question);",
"public static void main(String[] args) {\n byte conversionType;\n String inputType = new String();\n String resultType = new String();\n double initialValue = 0.0;\n double convertedValue = 0.0;\n Scanner userInput = new Scanner(System.in);\n DecimalFormat resultFormat = new DecimalFormat(\"#.##\"); \n\n System.out.print(\"Enter 0 to convert hours to minutes.\"\n + \"\\nEnter 1 to convert days to hours.\"\n + \"\\nEnter 2 to convert minutes to hours.\"\n + \"\\nEnter 3 to convert hours to days.\\n\");\n do {\n System.out.print(\"Selection: \");\n conversionType = userInput.nextByte();\n } while (conversionType < 0 || conversionType > 3);\n switch (conversionType) {\n case 0:\n inputType = \"Hours\";\n resultType = \"Minutes\";\n initialValue = getValue(userInput, inputType, resultType);\n convertedValue = initialValue * 60.0;\n break;\n case 1:\n inputType = \"Days\";\n resultType = \"Hours\";\n initialValue = getValue(userInput, inputType, resultType);\n convertedValue = initialValue * 24.0;\n break;\n case 2:\n inputType = \"Minutes\";\n resultType = \"Hours\";\n initialValue = getValue(userInput, inputType, resultType);\n convertedValue = initialValue / 60.0;\n break;\n case 3:\n inputType = \"Hours\";\n resultType = \"Days\";\n initialValue = getValue(userInput, inputType, resultType);\n convertedValue = initialValue / 24.0;\n break;\n }\n System.out.println(resultFormat.format(initialValue) + \" \" + inputType + \" converts to \" \n + resultFormat.format(convertedValue) + \" \" + resultType);\n }",
"String ask();",
"private void convert() {\n\t\t//first we have to get the input from textField to covert it\n\t\tString input = inputText.getText(); //caz getText() returns anything in String only.\n\t\tfloat enteredTemperature = 0.0f;\n\t\ttry {\n\t\t\tenteredTemperature = Float.parseFloat(input); //converting string in float type.\n\t\t}catch (Exception e){\n\t\t\twarnUser(); // here we warn, user to enter valid temperature but the info shows value for default\n\t\t\t// we have to add retrun; to end the code here only.\n\t\t\treturn;\n\t\t}\n\t\tfloat newConvertedTemperature = 0.0f;\n\t\tif(isC_to_F_selected) //IF user selected C_to_F_Text then do this\n\t\t{\n\t\t\tnewConvertedTemperature = (enteredTemperature * 9/5) + 32;\n\t\t}else{ //IF user selected F_to_C_Text then do this\n\t\t\tnewConvertedTemperature = (enteredTemperature - 32) * 5/9;\n\t\t}\n\t\tdisplay(newConvertedTemperature);\n\t}",
"private static void displayPrompt() {\n System.out.println(\"This program converts a temperature in degrees Celsius into\");\n System.out.println(\"a temperature in degrees Fahrenheit. Enter a temperature in\");\n System.out.print(\"degrees Celsius: \");\n }",
"public static void main(String[] args) {\n\n Solution18 obj = new Solution18();\n final Scanner scan = new Scanner(System.in);\n\n String character;\n double temp;\n String output;\n\n System.out.print(\"Enter [F] to convert Fahrenheit to Celcius \\nOr [C] to convert Celcius to Fahrenheit: \");\n character = scan.next();\n scan.nextLine();\n\n System.out.print(\"\\nPlease enter the temperature: \");\n temp = scan.nextDouble();\n\n output = character.equalsIgnoreCase(\"f\")\n ? temp + \"F in C is \" + obj.cFromF(temp)\n : temp + \"C in F is \" + obj.fFromC(temp);\n\n System.out.println(output);\n scan.close();\n\n\n }",
"private static void input(Scanner userScn)\n {\n // Prompt\n //System.out.print(\"Degree value of polynomial? (1-4): \");\n Prompt();\n\n // Sanitation logic... .next() should catch all\n if(!userScn.hasNextInt())\n {\n userScn.next();\n Prompt();\n }\n else if((d = userScn.nextInt()) > MaxDegree || d < MinDegree) // super efficient\n {\n Prompt();\n }\n else // exits with valid input\n {\n System.out.println(\"Your polynomial degree is: \" + d);\n }\n }",
"private void getInput() {\n\t\tSystem.out.println(\"****Welcome to TNEB online Payment*****\");\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter your current unit\");\r\n\t\tunit = scan.nextInt();\r\n\t}",
"String getUserInput();",
"public abstract void promptForInput(final String msg);",
"public static String getString (String ask)\r\n {\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.print(ask + \" -> \");\r\n String input = keyboard.nextLine();\r\n return input;\r\n }",
"private static Object getInput(String message, Scanner sc, Class type) throws IllegalArgumentException {\n while (true) {\n System.out.println(message);\n String in = sc.nextLine();\n if (type.equals(Integer.class)) {\n try {\n return Integer.parseInt(in, 10);\n }\n catch (NumberFormatException ex) {\n System.out.println(\"Invalid input.\");\n }\n }\n else if (type.equals(Float.class)) {\n try {\n return Float.parseFloat(in);\n }\n catch (NumberFormatException ex) {\n System.out.println(\"Invalid input.\");\n }\n }\n else if (type.equals(Boolean.class)) {\n switch (in.toLowerCase()) {\n case \"y\":\n return true;\n case \"n\":\n return false;\n default:\n System.out.println(\"You responded '\" + in + \"' - invalid, defaulting to No\");\n return false;\n }\n }\n else {\n throw new IllegalArgumentException(\"Can't convert to type \" + type.toString());\n }\n }\n }",
"public static void main( String[] args )\n {\n Scanner scanner = new Scanner(System.in);\n\n // start a loop\n while (true) {\n // Print the instructions\n System.out.println(\"Select a conversion:\\n1. Feet to Inches\\n2. Feet to Yards\\n\" \n + \"3. Feet to Miles\\n4. Meters to Miles\\n0. Quit Program\");\n\n // Declare the user selection. Default to 0\n int selection = 0;\n \n // Try to get the user input as an int\n try {\n selection = scanner.nextInt();\n } catch (Exception e) {\n // If the user messes this up, tell them they messed up\n System.out.println(\"Invalid input. Try again. [Options 0-4]\");\n\n // Get rid of the user's bad input\n scanner.next();\n\n // Start the loop over again\n continue;\n }\n \n // If the user selects 0, quit\n if ( selection == 0) {\n System.out.println( \"Loser\");\n // Get out of the loops\n break;\n }\n\n // Ask teh suer the number they want to convert\n System.out.println(\"Enter value to convert\");\n\n // Declare the number to conver.\n float num = 0f;\n\n // Try to get the user's number to convert\n try {\n num = scanner.nextFloat();\n } catch (Exception e) {\n // If the mess it up, tell them\n System.out.println(\"Invalid input. Try again. [Must be a number]\");\n\n // Get rid of the user's bad input\n scanner.next();\n\n // Back to the top of the loops\n continue;\n }\n\n // put conditional statements in \n if ( selection == 1){\n num = num * 12f;\n System.out.println(num + \" inches\");\n } else if ( selection == 2){\n num = num / 3f;\n System.out.println(num + \" yards\");\n } else if ( selection == 3){\n num = num / 5280f;\n System.out.println(num + \" miles\");\n } else if ( selection == 4){\n num = num / 1609.34f;\n System.out.println(num + \" miles\");\n } \n }\n\n scanner.close();\n }",
"String consoleInput();",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, \"us-US\");\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"private String getInput(String prompt) throws IOException {\n System.out.print(prompt);\n BufferedReader in = new BufferedReader(\n new InputStreamReader(System.in));\n return in.readLine();\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"public void getInput() {\r\n System.out.print(\"Is the car silent when you turn the key? \");\r\n setAnswer1(in.nextLine());\r\n if(getAnswer1().equals(YES)) {\r\n System.out.print(\"Are the battery terminals corroded? \");\r\n setAnswer2(in.nextLine());\r\n if(getAnswer2().equals(YES)){\r\n printString(\"Clean the terminals and try again\");\r\n }\r\n else {\r\n printString(\"The battery may be damaged.\\nReplace the cables and try again\");\r\n }\r\n\r\n }\r\n else {\r\n System.out.print(\"Does the car make a slicking noise? \");\r\n setAnswer3(in.nextLine());\r\n if(getAnswer3().equals(YES)) {\r\n printString(\"Replace the battery\");\r\n }\r\n else {\r\n System.out.print(\"Does the car crank up but fail to start? \");\r\n setAnswer4(in.nextLine());\r\n if(getAnswer4().equals(YES)) {\r\n printString(\"Check spark plug connections.\");\r\n }\r\n else{\r\n System.out.print(\"Does the engine start and then die? \");\r\n setAnswer5(in.nextLine());\r\n if(getAnswer5().equals(YES)){\r\n System.out.print(\"Does your care have fuel injection? \");\r\n setAnswer6(in.nextLine());\r\n if(getAnswer6().equals(YES)){\r\n printString(\"Get it in for service\");\r\n }\r\n else{\r\n printString(\"Check to insure the chock is opening and closing\");\r\n }\r\n }\r\n else {\r\n printString(\"This should be impossible\");\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n }",
"private Vote convertToVote(String input){\n if(input.equalsIgnoreCase(\"YES\") || input.equalsIgnoreCase(\"Y\"))\n return Vote.COMMIT;\n\n if(input.equalsIgnoreCase(\"NO\") || input.equalsIgnoreCase(\"N\"))\n return Vote.ABORT;\n\n return null;\n }",
"private void promptSpeechInput() {\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t\t\tRecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n\t\t\t\tgetString(R.string.speech_prompt));\n\t\ttry {\n\t\t\tstartActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n\t\t} catch (ActivityNotFoundException a) {\n\t\t\tToast.makeText(getActivity(),\n\t\t\t\t\tgetString(R.string.speech_not_supported),\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}\n\t}",
"protected static int easyIn() {\n // ADDITIONAL CHECKS?\n int a;\n debug(\"Please enter your selection: \");\n scanner = new Scanner(System.in);\n\t\ta = scanner.nextInt();\n return a;\n }",
"private static String getUserInput(String prompt){ \r\n Scanner in = new Scanner(System.in);\r\n System.out.print(prompt);\r\n return in.nextLine();\r\n }",
"private static int getIntReply(String prompt) {\n System.out.print(prompt + \": \");\n String input = sc.nextLine();\n if (input.charAt(0) < 48 || input.charAt(0) > 57) {\n System.out.println(\"Invalid input\");\n return -1;\n } else return Integer.parseInt(input);\n }",
"private void getConversion(final InputQuery inputQuery) {\n\n if (getActivity() == null) return;\n\n TextView Conversion = getActivity().findViewById(R.id.transliteration);\n TextView ConversionLatin = getActivity().findViewById(R.id.conversion_waapuro);\n TextView ConversionHiragana = getActivity().findViewById(R.id.conversion_hiragana);\n TextView ConversionKatakana = getActivity().findViewById(R.id.conversion_katakana);\n TextView ResultHiragana = getActivity().findViewById(R.id.Result_hiragana);\n TextView ResultKatakana = getActivity().findViewById(R.id.Result_katakana);\n TextView transliterationWaapuro = getActivity().findViewById(R.id.Result_waapuro);\n TextView transliterationModHepburn = getActivity().findViewById(R.id.Result_mod_hepburn);\n TextView transliterationNihonShiki = getActivity().findViewById(R.id.Result_nihon_shiki);\n TextView transliterationKunreiShiki = getActivity().findViewById(R.id.Result_kunrei_shiki);\n\n if (inputQuery.isEmpty()) {\n Conversion.setText(getResources().getString(R.string.EnterWord));\n ConversionLatin.setText(\"\");\n ConversionHiragana.setText(\"\");\n ConversionKatakana.setText(\"\");\n ResultHiragana.setText(\"\");\n ResultKatakana.setText(\"\");\n transliterationWaapuro.setText(\"\");\n transliterationModHepburn.setText(\"\");\n transliterationNihonShiki.setText(\"\");\n transliterationKunreiShiki.setText(\"\");\n }\n else {\n Conversion.setText(getResources().getString(R.string.transliteration));\n ConversionLatin.setText(getResources().getString(R.string.conversion_waapuro));\n ConversionHiragana.setText(getResources().getString(R.string.ConversionHiragana));\n ConversionKatakana.setText(getResources().getString(R.string.ConversionKatakana));\n\n ResultHiragana.setText(TextUtils.join(\",\\n\", inputQuery.getHiraganaUniqueConversions()));\n ResultKatakana.setText(TextUtils.join(\",\\n\", inputQuery.getKatakanaUniqueConversions()));\n transliterationWaapuro.setText(TextUtils.join(\",\\n\", inputQuery.getWaapuroUniqueConversions()));\n transliterationModHepburn.setText(TextUtils.join(\",\\n\", inputQuery.getUniqueConversionsMH()));\n transliterationNihonShiki.setText(TextUtils.join(\",\\n\", inputQuery.getUniqueConversionsNS()));\n transliterationKunreiShiki.setText(TextUtils.join(\",\\n\", inputQuery.getUniqueConversionsKS()));\n }\n }",
"INPUT createINPUT();",
"private void convert()\n {\n if (choiceBox.getValue().equals(\"US-Dollar\"))\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double dollar = currencyConverter.euroToDollar(euro);\n txtYen.setText(DEC2FORMAT.format(dollar));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n else\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double yen = currencyConverter.euroToYen(euro);\n txtYen.setText(DEC2FORMAT.format(yen));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n }",
"public static void getInput() {\n\t\tSystem.out.print(\"Expression y=? \");\n\t\tScanner s = new Scanner(System.in);\n\t\texpression = s.nextLine();\n\t\texpression.toLowerCase();\n\t\tSystem.out.print(\"x? \");\n\t\tx = s.nextDouble();\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t\n\t\tString digito1 = sc.nextLine();\n\t\tString digito2 = sc.nextLine();\n\t\tString digito3 = sc.nextLine();\n\t\tconvertir_decimal(digito1);\n\t\tconvertir_decimal(digito2);\n\t\tconvertir_decimal(digito3);\n\t\t\t\n\t\t\n\t\tsc.close();\n\t}",
"public abstract void input();",
"void requestInput();",
"public static void main(String[] args) {\n Scanner keyboard = new Scanner (System.in);\r\n\r\n double userTemp;\r\n double convertedTemperature;\r\n String input;\r\n String degreesIn;\r\n\r\n System.out.println (\" Please enter the temperature:\");\r\n input = keyboard.nextLine ();\r\n userTemp = Double.parseDouble (input);\r\n\r\n System.out.println (\"Is the temperature in [C]elsius, or [F]ahrenheit?\");\r\n degreesIn = keyboard.nextLine ();\r\n\r\n\r\n if (degreesIn.equalsIgnoreCase (\"c\")) {\r\n convertedTemperature = userTemp * 1.8 + 32;\r\n System.out.printf (\"%.1f C is %.1f F\", userTemp, convertedTemperature);\r\n } else {\r\n convertedTemperature = (userTemp - 32) / 1.8;\r\n System.out.printf (\"%.1f F is %.1f C\", userTemp, convertedTemperature);\r\n }\r\n }",
"Input createInput();",
"void askForNumber(String spieler,String playerChoices) throws IOException;",
"@Override\r\n public void getInput() { \r\n \r\n String command;\r\n Scanner inFile = new Scanner(System.in);\r\n \r\n do {\r\n \r\n this.display();\r\n \r\n command = inFile.nextLine();\r\n command = command.trim().toUpperCase();\r\n \r\n switch (command) {\r\n case \"B\":\r\n this.helpMenuControl.displayBoardHelp();\r\n break;\r\n case \"C\":\r\n this.helpMenuControl.displayComputerPlayerHelp();\r\n break;\r\n case \"G\":\r\n this.helpMenuControl.displayGameHelp();\r\n break; \r\n case \"Q\": \r\n break;\r\n default: \r\n new Connect4Error().displayError(\"Invalid command. Please enter a valid command.\");\r\n }\r\n } while (!command.equals(\"Q\")); \r\n }",
"public static int getOption() {\n\t\t\n\t\tSystem.out.println(\"*** Temperature Conversion ***\");\n\t\tSystem.out.println(\"1. Celsius to Farhenheit\");\n\t\tSystem.out.println(\"2. Farhenheit to Celsius\");\n\t\tSystem.out.println(\"Enter conversion option\");\n\t\tint optionValue = sc.nextInt();\n\t\treturn optionValue;\n\t}",
"public static void main(String[] args) {\n final int conversion = 32;\n final double CONVERSION = 1.8;\n \n double fahrenheit;\n double celsius;\n \n Scanner scan = new Scanner(System.in);\n \n System.out.println(\"Enter temperature in Fahrenheit: \");\n fahrenheit = scan.nextInt();\n \n scan.close();\n \n celsius = (fahrenheit - conversion) / CONVERSION;\n \n System.out.println(\"The temperature converted into celsius is: \" \n + celsius);\n \n System.out.println(\"Question three was called and ran sucessfully.\");\n }",
"public static void processData(){\n boolean loopOn = true;\r\n\r\n //Initialize Scanner\r\n Scanner input = new Scanner(System.in);\r\n\r\n while (loopOn) {\r\n //Prompt user for temperature\r\n System.out.println(\"Enter the temperature to convert:\");\r\n double temp = input.nextDouble();\r\n\r\n //Empty nextLine is here to \"absorb\" the /n from the previous input.\r\n input.nextLine();\r\n\r\n //Prompt user for current scale\r\n System.out.println(\"Enter the current scale of the temperature:\");\r\n String scale = input.nextLine();\r\n\r\n //Prompt user for target scale\r\n System.out.println(\"Enter the scale you want to convert the temperature to:\");\r\n String targetScale = input.nextLine();\r\n\r\n //If checkValidity returns a true value, then one of the six conversion methods will be called to run the conversion if current and target scales differ\r\n if (checkValidity(temp, scale)){\r\n //If current and target scales are the same, no method is called\r\n if (scale.equalsIgnoreCase(targetScale)){\r\n System.out.printf(\"%.2f degrees \" + scale + \" is %.2f degrees \" + scale +\"\\n\", temp, temp);\r\n }\r\n //Different methods are called depending on current and target scales\r\n else if(scale.equalsIgnoreCase(\"fahrenheit\") && targetScale.equalsIgnoreCase(\"celsius\")){\r\n System.out.printf(\"%.2f degrees Fahrenheit is %.2f degrees Celsius\\n\", temp, convertFahtoCel(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"fahrenheit\") && targetScale.equalsIgnoreCase(\"kelvin\")){\r\n System.out.printf(\"%.2f degrees Fahrenheit is %.2f degrees Kelvin\\n\", temp, convertFahtoKel(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"celsius\") && targetScale.equalsIgnoreCase(\"fahrenheit\")){\r\n System.out.printf(\"%.2f degrees Celsius is %.2f degrees Fahrenheit\\n\", temp, convertCeltoFah(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"celsius\") && targetScale.equalsIgnoreCase(\"kelvin\")){\r\n System.out.printf(\"%.2f degrees Celsius is %.2f degrees Kelvin\\n\", temp, convertCeltoKel(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"kelvin\") && targetScale.equalsIgnoreCase(\"celsius\")){\r\n System.out.printf(\"%.2f degrees Kelvin is %.2f degrees Celsius\\n\", temp, convertKeltoCel(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"kelvin\") && targetScale.equalsIgnoreCase(\"fahrenheit\")){\r\n System.out.printf(\"%.2f degrees Kelvin is %.2f degrees Fahrenheit\\n\", temp, convertKeltoFah(temp));\r\n }\r\n else {\r\n System.out.println(\"Invalid input.\");\r\n }\r\n \r\n }\r\n else { //condition if checkValidity returns a false value\r\n System.out.println(temp + \" degrees \" + scale.toUpperCase().charAt(0) + scale.substring(1) + \" is not a valid temperature\");\r\n }\r\n\r\n //Ask if user wishes to perform another temperature conversion\r\n System.out.println(\"Would you like to convert another temperature? Enter quit to exit.\");\r\n String anotherOne = input.nextLine().trim();\r\n\r\n //Set loopOn to false if user does not wish to create another sign, ending the loop.\r\n if (anotherOne.equalsIgnoreCase(\"quit\") || anotherOne.equalsIgnoreCase(\"no\") || anotherOne.equalsIgnoreCase(\"exit\")){\r\n loopOn = false;\r\n }\r\n\r\n }\r\n //Close scanner\r\n input.close();\r\n }",
"public String getUserInput(String question) {\r\n System.out.print(question);\r\n return scanner.next();\r\n }",
"public static void main(String[] args) {\r\n\t\tString romNum = checkInput();\t//Check that the input contains only Roman numerals.\r\n\t\tuserInput.close();\r\n\t\t\r\n\t\tint convNum = calcRomNum(romNum);\t//Convert the Roman numerals into an integer.\r\n\t\t\r\n\t\tSystem.out.println(\"--------------------\");\r\n\t\tSystem.out.println(convNum);\r\n\t}",
"public static void selectOption(char input) throws IOException {\n\n\t\tswitch (input) {\n\t\tcase 'l': {\n\n\t\t\tloadApplications();\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 's': {\n\n\t\t\tSystem.out.println(\"Set the Budget\");\n\t\t\tsetBudget();\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 'm': {\n\n\t\t\t\n\t\t\tmakeDecision();\n\t\t\tSystem.out.println(\"Decision made sucessfuly!\");\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 'p': {\n\n\t\t\t\n\t\t\tprint();\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 'u': {\n\n\t\t\tSystem.out.println(\"Update the application\");\n\t\t\tupdateApplication();\n\t\t\tbreak;\n\t\t}\n\t\tcase 'x': {\n\n\t\t\tSystem.out.println(\"Exiting...\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\n\t\tdefault:\n\t\t\tSystem.out.println(\"Please enter a valid input\\n**************************************\");\n\t\t\tbreak;\n\n\t\t}\n\t}",
"private void askSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n \"Hi speak something\");\n speakOut(\"Open Mic\");\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n\n }\n }",
"private void getInput() {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number\");\r\n\t\tn=scan.nextInt();\r\n\r\n\t}",
"public static void main(String[] args) {\r\n Locale.setDefault(Locale.US);\r\n Scanner input = new Scanner(System.in);\r\n int count=input.nextInt();\r\n input.nextLine();\r\n \r\n for (int i = 0; i < count; i++) {\r\n double num=input.nextDouble();\r\n String op=input.nextLine().trim();\r\n System.out.printf(\"%s\\n\",Convert(num,op));\r\n }\r\n }",
"public String getAnswer(String input)\n\t{\n\t\tString answer = \"\";\n\t\t\n\t\tanswer = JOptionPane.showInputDialog(null, input);\n\t\t\n\t\treturn answer;\n\t}",
"private void convertInput(double input) {\n\n if (input != 0) {\n // Set standard value in meters based on selected unit\n switch (selectedUnit) {\n case \"km\":\n standard = input / 0.001;\n break;\n case \"m\":\n standard = input;\n break;\n case \"cm\":\n standard = input / 100;\n break;\n case \"mm\":\n standard = input / 1000;\n break;\n case \"μm\":\n standard = input / 1000000;\n break;\n case \"nm\":\n standard = input / 1000000000;\n break;\n case \"mi\":\n standard = input / 0.000621371;\n break;\n case \"yd\":\n standard = input / 1.09361;\n break;\n case \"ft\":\n standard = input / 3.28084;\n break;\n case \"in\":\n standard = input / 39.3701;\n break;\n default:\n standard = input;\n break;\n }\n //km\n kmTextView.setText(numberFormatter(standard * 0.001));\n //m\n mTextView.setText(numberFormatter(standard * 1));\n //cm\n cmTextView.setText(numberFormatter(standard * 100));\n //mm\n mmTextView.setText(numberFormatter(standard * 1000));\n //um\n umTextView.setText(numberFormatter(standard * 1000000));\n //nm\n nmTextView.setText(numberFormatter(standard * 1000000000));\n //mi\n miTextView.setText(numberFormatter(standard * 0.000621371));\n //yd\n ydTextView.setText(numberFormatter(standard * 1.09361));\n //ft\n ftTextView.setText(numberFormatter(standard * 3.28084));\n //in\n inTextView.setText(numberFormatter(standard * 39.3701));\n } else {\n //km\n kmTextView.setText(\"\");\n //m\n mTextView.setText(\"\");\n //cm\n cmTextView.setText(\"\");\n //mm\n mmTextView.setText(\"\");\n //um\n umTextView.setText(\"\");\n //nm\n nmTextView.setText(\"\");\n //mi\n miTextView.setText(\"\");\n //yd\n ydTextView.setText(\"\");\n //ft\n ftTextView.setText(\"\");\n //in\n inTextView.setText(\"\");\n }\n }",
"public Ch12Ex1to9()\n {\n scan = new Scanner( System.in );\n }",
"public static String inputBox(String promptMsg) {\n return JOptionPane.showInputDialog(promptMsg);\n }",
"private static int getIntFromUser(String prompt)\n\t {\n\t System.out.print(prompt); // Prompt user to enter input value\n\t return input.nextInt(); // Read and return user's response\n\t }",
"public void convertNumbers(Scanner input){\n\t\tint number;\n\t\tString format = \"\";\n\t\tSystem.out.println(\"Please Enter Number (1-3999)\");\n\t\t//Number input\n\t\tnumber = input.nextInt();\n\t\tif(number < 1){\n\t \t throw new NumberFormatException(\"Please Enter Positive Numbers Only.\"); \n\t\t}else if(number > 3999){\n\t\t\tSystem.out.println(\"Please Enter Less Than or Equal 3999\");\n\t\t\tnumber = input.nextInt();\n\t\t}\n\t\tSystem.out.println(\"Please Enter Format (WORDS or ROMAN)\");\n\t\t//Format input\n\t\tformat = input.next();\n\t\t//Checking Format to convert numbers\n\t\tif(format.equalsIgnoreCase(\"WORDS\")){\n\t\t\tNumberToWords convertWord = new NumberToWords();\n\t\t\tString word = convertWord.numbersToWordsConverter(number);\n\t\t\tSystem.out.println(number+\"'s English Word is \"+'\"'+ word+'\"');\n\t\t}else if(format.equalsIgnoreCase(\"ROMAN\")){\n\t\t\tNumberToRoman convertRoman = new NumberToRoman();\n\t\t\tString roman =convertRoman.convertNumberToRomanLetters(number);\n\t\t\tSystem.out.println(number+\"'s Roman Letter is \"+'\"'+ roman+'\"');\n\t\t}else{\n\t\t\tSystem.out.print(\"Please Enter Valid Format \\n\");\n\t\t}\n\t\n\t}",
"public void input()\n\t{\n\t\t// this facilitates the output\n\t\tScanner sc = new Scanner(System.in) ; \n\t\tSystem.out.print(\"The Bike Number:- \") ;\n\t \tthis.bno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The Biker Name:- \") ; \n\t \tthis.name = new Scanner(System.in).nextLine() ; \t\n\t\tSystem.out.print(\"The Phone number:- \") ; \n\t \tthis.phno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The number of days:- \") ; \n\t \tthis.days = sc.nextInt() ; \t\n\t}",
"static void take_the_input() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\n\t\taddress = hexa_to_deci(scan.readLine());\n\t\tSystem.out.println();\n\n\t\twhile(true){\n\t\t\tprint_the_address(address);\n\t\t\tString instruction = scan.readLine();\n\t\t\tint label_size = check_for_label(instruction);\n\t\t\tinstruction = instruction.substring(label_size);\n\t\t\tmemory.put(address, instruction);\n\t\t\tif(stop_instruction(instruction))\n\t\t\t\tbreak;\n\t\t\taddress+=size_of_code(instruction);\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"DO YOU WANT TO ENTER ANY FURTHUR CODE (Y/N) : \");\n\t\tString choice = scan.readLine();\n\t\tSystem.out.println();\n\t\tif(choice.equals(\"Y\"))\n\t\t\ttake_the_input();\n\t}",
"public void checkConversion() throws IOException{\n if (amountToConvert == null) {\n FacesContext.getCurrentInstance().getExternalContext().\n redirect(\"converter.xhtml\");\n }\n }",
"public static void main (String [] args) \n {\n \n // Variables stated that will be used in the methods below.\n double inAmount;\n char menuChoice;\n // A new object called myMeasurement is created for this driver and then \n // a instance of the no-args constructor from MeasurementConverter is called as well:\n MeasurementConverter myMeasurement;\n myMeasurement = new MeasurementConverter();\n // The scanner is activated to change whatever key that is typed to a variable's number/spot\n // @param double the keyboard inserts the value typed into the Scanner.\n Scanner in = new Scanner(System.in);\n \n // A do loop is used to make sure the user repeats when the right character is stated.\n do\n {\n \n // Prints out the menu for which the user can choose one from the following to convert to other units:\n System.out.println(\" To convert inches: type i / I\" + \n \"\\n To convert feet: type f / F\" +\n \"\\n To convert yards: type y / Y\" +\n \"\\n To convert centimeters: type c / C\" +\n \"\\n To convert meters: type m / M\");\n // Changes the value given existing in menuChoice to a value that was just typed:\n // @param char takes the existing value at menuChoice and replaces it with\n // the value typed in from the user's keyboard.\n menuChoice = in.next().charAt(0);\n \n \n // Switch method that allows the user to choose a character that corresponds with \n // a certain unit type which then can be converted into other types with the use of other methods\n // from the MeasurementConverter class.\n switch (menuChoice)\n {\n // If chosen i or I, the switch statement will say this line and then\n // will activate these methods from the MeasurementConverter class.\n case 'i':\n case 'I':\n System.out.println(\"Enter an amount: \");\n inAmount = in.nextDouble();\n myMeasurement.setInches(inAmount);\n myMeasurement.getInches();\n myMeasurement.getFeet();\n myMeasurement.getYards();\n myMeasurement.getCentimeters();\n myMeasurement.getMeters();\n \n // Prints out the toString method from the measurement converter class\n // and then prompts the user whether or not they will go again:\n // @param char takes the existing value at menuChoice and replaces it with\n // the value typed in from the user's keyboard.\n System.out.println(myMeasurement.toString());\n System.out.println(\"\\n\" + \"Enter o to go again: \");\n menuChoice = in.next().charAt(0);\n break;\n \n // If chosen f or F, the switch statement will say this line and then\n // will activate these methods from the MeasurementConverter class.\n // @param double in the in Amount of a unit (feet).\n case 'f':\n case 'F':\n System.out.println(\"Enter an amount: \");\n inAmount = in.nextDouble();\n myMeasurement.setFeet(inAmount);\n myMeasurement.getInches();\n myMeasurement.getFeet();\n myMeasurement.getYards();\n myMeasurement.getCentimeters();\n myMeasurement.getMeters();\n \n // Prints out the toString method from the measurement converter class\n // and then prompts the user whether or not they will go again:\n // @param char takes the existing value at menuChoice and replaces it with\n // the value typed in from the user's keyboard.\n System.out.println(myMeasurement.toString());\n System.out.println(\"\\n\" + \"Enter o to go again: \");\n menuChoice = in.next().charAt(0);\n break;\n \n // If chosen y or Y, the switch statement will say this line and then\n // will activate these methods from the MeasurementConverter class.\n // @param double in the in Amount of a unit (yards).\n case 'y':\n case'Y':\n System.out.println(\"Enter an amount: \");\n inAmount = in.nextDouble();\n myMeasurement.setYards(inAmount);\n myMeasurement.getInches();\n myMeasurement.getFeet();\n myMeasurement.getYards();\n myMeasurement.getCentimeters();\n myMeasurement.getMeters();\n \n // Prints out the toString method from the measurement converter class\n // and then prompts the user whether or not they will go again:\n // @param char takes the existing value at menuChoice and replaces it with\n // the value typed in from the user's keyboard.\n System.out.println(myMeasurement.toString());\n System.out.println(\"\\n\" + \"Enter o to go again: \");\n menuChoice = in.next().charAt(0);\n break;\n \n // If chosen m or M, the switch statement will say this line and then\n // will activate these methods from the MeasurementConverter class.\n // @param double in the in Amount of a unit (meters).\n case 'm':\n case 'M':\n System.out.println(\"Enter an amount: \");\n inAmount = in.nextDouble();\n myMeasurement.setMeters(inAmount);\n myMeasurement.getInches();\n myMeasurement.getFeet();\n myMeasurement.getYards();\n myMeasurement.getCentimeters();\n myMeasurement.getMeters();\n \n // Prints out the toString method from the measurement converter class\n // and then prompts the user whether or not they will go again:\n // @param char takes the existing value at menuChoice and replaces it with\n // the value typed in from the user's keyboard.\n System.out.println(myMeasurement.toString());\n System.out.println(\"\\n\" + \"Enter o to go again: \");\n menuChoice = in.next().charAt(0);\n break;\n \n // If chosen c or C, the switch statement will say this line and then\n // will activate these methods from the MeasurementConverter class.\n // @param double in the in Amount of a unit (centimeters).\n case 'c':\n case 'C':\n System.out.println(\"Enter an amount: \");\n inAmount = in.nextDouble();\n myMeasurement.setCentimeters(inAmount);\n myMeasurement.getInches();\n myMeasurement.getFeet();\n myMeasurement.getYards();\n myMeasurement.getCentimeters();\n myMeasurement.getMeters();\n \n // Prints out the toString method from the measurement converter class\n // and then prompts the user whether or not they will go again:\n // @param char takes the existing value at menuChoice and replaces it with\n // the value typed in from the user's keyboard.\n System.out.println(myMeasurement.toString());\n System.out.println(\"\\n\" + \"Enter o to go again: \");\n menuChoice = in.next().charAt(0);\n break;\n \n // The default switch statement is used to let the user type in another correct letter if\n // a letter that was previously typed was not a proper character that led\n // to a switch statement.\n // @param char takes the existing value at menuChoice and replaces it with\n // the value typed in from the user's keyboard.\n default:\n System.out.println(\"Incorrect letter was typed, please try again.\");\n System.out.println(\"\\n\" + \"Enter o to try again: \");\n menuChoice = in.next().charAt(0);\n break;\n \n } //end of switch method\n // This while statement allows the user to go again if the character o is typed.\n }while (menuChoice == 'o'); // end of do method\n \n // This last statement is given when the user refuses to go again \n //by typing in a different character other than o.\n System.out.println(\" Goodbye.\");\n }",
"public static String readChoice() throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine();\n\t\tif(!(s.equals(\"Y\")||s.equals(\"y\")||s.equals(\"n\")||s.equals(\"N\"))){\n\t\t\tSystem.out.println(\"Enter either Y or N\");\n\t\t\treadChoice();\n\t\t}\n\t\treturn s;\n\t}",
"public void askForType() {\n System.out.println(\"What type of event will this be?\");\n System.out.println(\"1) Normal 2) Multi-Speaker 3) VIP\");\n }",
"private static PointCP2 getInput() throws IOException\n {\n byte[] buffer = new byte[1024]; //Buffer to hold byte input\n boolean isOK = false; // Flag set if input correct\n String theInput = \"\"; // Input information\n \n //Information to be passed to the constructor\n \n double a = 0.0;\n double b = 0.0;\n\n // Allow the user to enter the three different arguments\n for (int i = 0; i < 2; i++)\n {\n while (!(isOK))\n {\n isOK = true; //flag set to true assuming input will be valid\n \n // Prompt the user\n if (i == 0) // First argument - type of coordinates\n {\n System.out.print(\"Enter Rho value: \");\n }\n else // Second and third arguments\n {\n System.out.print(\"Enter Theta value: \");\n }\n\n // Get the user's input \n \n // Initialize the buffer before we read the input\n for(int k=0; k<1024; k++)\n \tbuffer[k] = '\\u0020'; \n \n System.in.read(buffer);\n theInput = new String(buffer).trim();\n \n // Verify the user's input\n try\n {\n if (i == 0) // First argument \n {\n a = Double.valueOf(theInput).doubleValue();\n }\n else // Second and \n { \n b = Double.valueOf(theInput).doubleValue();\n }\n }\n catch(Exception e)\n {\n \tSystem.out.println(\"Incorrect input\");\n \tisOK = false; //Reset flag as so not to end while loop\n }\n }\n\n //Reset flag so while loop will prompt for other arguments\n isOK = false;\n }\n //Return a new PointCP object\n return (new PointCP2( a, b));\n }",
"String prompt(String message) throws IOException;",
"private Integer askInt(String label){\n try{\n System.out.println(label);\n String input = in.nextLine();\n if (input.isEmpty()){\n return null;\n }\n else {\n return Integer.parseInt(input);\n }\n }\n catch(NumberFormatException e){\n return askInt(label);\n }\n }",
"String promptString();",
"protected abstract void getInput();",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tCurrencyConverter cvc = new CurrencyConverter();\n\t\t\n\t\tSystem.out.print(\"What is dollar price? \");\n\t\tFloat price = sc.nextFloat();\n\t\t\n\t\tSystem.out.print(\"How many dollar will be bought? \");\n\t\tFloat quant = sc.nextFloat();\n\t\t\n\t\tcvc.converter(price, quant);\n\t\t\n\t\tsc.close();\n\t}",
"public String validateCurrencyType(){\n\n String currencyType = null;\n int option;\n boolean isBadOption = false;\n\n do{\n try {\n LOG.info(\"Input 1 for RON or input 2 for EUR: \");\n option = IOService.getInstance().readInteger();\n\n switch (option) {\n case 1:\n currencyType = \"RON\";\n isBadOption = true;\n break;\n case 2:\n currencyType = \"EUR\";\n isBadOption = true;\n break;\n default:\n LOG.warning(\"Not a valid option.\");\n break;\n }\n } catch (InputMismatchException e){\n LOG.warning( \"Incorrect entry. Please input 1 for RON or 2 for EUR.\" );\n }\n\n } while (!isBadOption);\n\n return currencyType;\n }",
"@Override\n public void input() {\n super.input();\n Scanner sc = new Scanner(System.in);\n System.out.printf(\"Nhập số trang sách giáo khoa: \");\n amountPage = Integer.valueOf(sc.nextLine());\n System.out.printf(\"Nhập tình trạng sách giáo khoa: \");\n status = sc.nextLine();\n System.out.printf(\"Nhập số lượng mượn: \");\n amountBorrow= Integer.valueOf(sc.nextLine());\n }",
"private void checkUserInput() {\n }",
"public static void playerInput() \n\t{\n\t\t\n\t\tscanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Choose the character x or o\");\n\t\tplayerInput = scanner.next().charAt(0);\n\t\tif (playerInput == 'x' || playerInput == 'o') \n\t\t{\n\t\t\tif (playerInput == 'x') \n\t\t\t{\n\t\t\t\tcomputerInput = 'o';\n\t\t\t\tSystem.out.println(\"Player chooses x & o is assigned to computer.\\n\");\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\tcomputerInput = 'x';\n\t\t\t\tSystem.out.println(\"Player chooses o & x is assigned to computer.\\n\");\n\t\t\t\t//computerMove();\n\t\t\t}\n\t\t} \n\t\telse \n\t\t{\n\t\t\tSystem.out.println(\"Invalid Input ! Try again.\\n\");\n\t\t\tplayerInput();\n\t\t}\n\t\ttossWhoIsFirst();\n\t}",
"private void convertAmount() {\r\n\t\tSystem.out.println(\"Select the currency to convert FROM.\");\r\n\t\tString currencyCodeFrom = signalThreeLetters();\r\n\t\tif (currencyCodeFrom == null){\r\n\t\t\treturn;\r\n }\r\n\t\tSystem.out.println(\"Select the currency to convert TO.\");\r\n\t\tString currencyCodeTo = signalThreeLetters();\r\n\t\tif (currencyCodeTo == null){\r\n\t\t\treturn;\r\n }\r\n //needed if-else to check if currencies is null. As currencies.getCurrencyByCode doesn't work if currencies is initially null\r\n\t\t//also if both currencies are not in the system it will say both currencies are not in the system instead of one of them\r\n if (currencies == null){\r\n \tSystem.out.println(\"\\\"\" + currencyCodeFrom +\"\\\" and \\\"\"+ currencyCodeTo+ \"\\\" is not on the system. Returning to menu.\");\r\n \treturn;}\r\n else {Currency currencyFrom = currencies.getCurrencyByCode(currencyCodeFrom);\r\n Currency currencyTo = currencies.getCurrencyByCode(currencyCodeTo);\r\n if (currencyFrom == null & currencyTo == null){\r\n \tSystem.out.println(\"\\\"\" + currencyCodeFrom +\"\\\" and \\\"\"+ currencyCodeTo+ \"\\\" is not on the system. Returning to menu.\");\r\n \treturn;}\r\n \r\n if (currencyFrom == null) {\r\n \tSystem.out.println(\"\\\"\" + currencyCodeFrom + \"\\\" is not on the system. Returning to menu.\");\r\n \treturn;}\r\n \r\n if (currencyTo == null) {\r\n \tSystem.out.println(\"\\\"\" + currencyCodeTo + \"\\\" is not on the system. Returning to menu.\");\r\n \treturn;\r\n }\r\n System.out.println();\r\n System.out.print(\"How many \" + currencyCodeFrom + \" would you like to convert to \" + currencyCodeTo + \"? Amount: \");\r\n String amountStr = keyboardInput.getLine();\r\n Amount amount = new Amount(currencyFrom, Double.parseDouble(amountStr));\r\n System.out.println();\r\n System.out.printf(\"%.2f %s = %.2f %s\", amount.getAmount(), amount.getCurrency().getCode(), \r\n amount.getAmountIn(currencyTo), currencyTo.getCode());\r\n System.out.println(); \r\n //Next line below(line167) is invokes my overloaded method\r\n System.out.println(amount.getAmountIn(currencyTo, currencyFrom));\r\n System.out.println(); \r\n \r\n\t}\r\n}",
"private void askUser()\n { \n System.out.println(\"What is your command?\");\n\n String command = scanner.nextLine();\n commandPrompt(command);\n }",
"InputPromptTransmitter getInputPromptTransmitter();",
"private String getPlayerChoice() {\n Scanner userInput = new Scanner(System.in); // Create a Scanner object\n System.out.println(\"Enter choice:\\nr = rock\\np = paper\\ns = scissors\\nq = quit\");\n return userInput.nextLine().toUpperCase(); \n }",
"public void consoleGetOptions(){\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString input;\n\t\tint diff=0,first=0;\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.print(\"Who starts first (0-Player, 1-Computer): \");\n\t\t\t\tinput=in.readLine();\n\t\t\t\tfirst = Integer.parseInt(input);\n\t\t\t\tif (first<0 || first>1) throw new IllegalArgumentException();\n\t\t\t\tif (first==1) ttt.switchPlayer();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t}\n\t\t}while(true);\t\t\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.print(\"Enter AI level (0-Noob, 1-Normal, 2-God Mode): \");\n\t\t\t\tinput=in.readLine();\n\t\t\t\tdiff = Integer.parseInt(input);\n\t\t\t\tif (diff<0 || diff>2) throw new IllegalArgumentException();\n\t\t\t\tttt.setDifficulty(diff);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t}\n\t\t}while(true);\t\t\n\t}",
"private String selectString(String prompt) {\n System.out.println(\"\\n\" + prompt);\n return input.next();\n }",
"String askForData();",
"private void handleInput()\n {\n String instructions = \"Options:\\n<q> to disconnect\\n<s> to set a value to the current time\\n<p> to print the map contents\\n<?> to display this message\";\n System.out.println(instructions);\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n while (true) {\n String line = br.readLine();\n if (line.equals(\"q\")) {\n System.out.println(\"Closing...\");\n break;\n } else if (line.equals(\"s\")) {\n System.out.println(\"setting value cli_app to current time\");\n collabMap.set(\"cli_app\", System.currentTimeMillis());\n } else if (line.equals(\"?\")) {\n System.out.println(instructions);\n } else if (line.equals(\"p\")) {\n System.out.println(\"Map contents:\");\n for (String key : collabMap.keys()) {\n System.out.println(key + \": \" + collabMap.get(key));\n }\n }\n }\n } catch (Exception ex) {\n }\n\n if (document != null)\n document.close();\n System.out.println(\"Closed\");\n }",
"public static void main(String[] args) {\n Solution solution = new Solution();\n boolean convertString = solution.canConvertString(\"mygdwuntwkoc\", \"btydmdiatnhx\", 48);\n System.out.println(convertString);\n }",
"public void readInput()\n\t{\n\t\tString userInput;\n\t\tChoices choice;\n\t\t\n\t\tdo {\n\t\t\tlog.log(Level.INFO, \"Please give the inputs as:\\n\"\n\t\t\t\t\t+ \"ADDACCOUNT to add the account\\n\" \n\t\t\t\t\t+ \"DISPLAYALL to display all accounts\\n\"\n\t\t\t\t\t+ \"SEARCHBYACCOUNT to search by account\\n\"\n\t\t\t\t\t+ \"DEPOSIT to deposit into account\\n\"\n\t\t\t\t\t+ \"WITHDRAW to withdraw from the account\\n\"\n\t\t\t\t\t+ \"EXIT to end the application\"\n\t\t\t\t\t);\n userInput = scan.next();\n choice = Choices.valueOf(userInput);\n\n switch (choice) {\n case ADDACCOUNT : \taddAccount();\n \t\t\t\t\t\tbreak;\n \n case DISPLAYALL :\t\tdisplayAll();\n \t\t\t\t\t\tbreak;\n\n case SEARCHBYACCOUNT :\tsearchByAccount();\n \t\t\t\t\t\tbreak;\n \n case DEPOSIT :\t\t\tdepositAmount();\n \t\t\t\t\t\tbreak;\n \n case WITHDRAW :\t\t\twithDrawAmount();\n \t\t\t\t\t\tbreak;\n \n case EXIT:\t\t\t\tlog.log(Level.INFO, \"Application has ended successfully\");\n \t\t\t\t\t\tbreak;\n \n default: break;\n }\n } while(choice != Choices.EXIT);\n\t\t\n\t\tscan.close();\n\t}",
"int getNumericalUserInput() {\n String input = userInput.next();\n int i = -1; //holds converted input\n boolean success = false;\n\n while (!success) {\n if (input.toLowerCase().equals(\"c\")) {\n i = -1;\n success = true;\n } else {\n try {\n i = Integer.parseInt(input);\n success = true;\n } catch (NumberFormatException e) {\n System.out.println(\"Invalid entry.\");\n break;\n }\n }\n }\n return i;\n }",
"public static void getPositiveAndNegativeInput() {\n Double num = getDoubleInput(\"enter the number you would like to change\");\n println(String.valueOf(positiveAndNegative(num)));\n }",
"@Override\r\n\tpublic void acceptInput(String input) {\n\t\t\r\n\t}",
"public void setInput(String input) { this.input = input; }",
"private String promptForAnswer(AnswerChecker answerChecker) {\n String answer;\n while (true) {\n regularPresenter.newAnswerPrompter();\n answer = scanner.nextLine();\n if (answerChecker.isValidAnswerForm(answer)) break;\n else regularPresenter.illegalAnswerReporter();\n }\n return answer;\n }",
"private static void handleInput(int input){\n In in = new In(); \n \n int i, j;\n double x;\n \n switch(input){\n case 1: //report\n graph.report();\n break;\n case 2: //MST\n graph.mst();\n break;\n case 3: //shortest path\n //GET 2 INPUTS and pass to shortest()\n System.out.print(\"Enter from vertex: \");\n i = in.readInt();\n System.out.print(\"Enter to vertex: \");\n j = in.readInt();\n graph.shortest(i, j);\n break;\n case 4: //down\n System.out.print(\"Enter from vertex: \");\n i = in.readInt();\n System.out.print(\"Enter to vertex: \");\n j = in.readInt();\n graph.edgeDown(i, j);\n break;\n case 5: //up\n System.out.print(\"Enter from vertex: \");\n i = in.readInt();\n System.out.print(\"Enter to vertex: \");\n j = in.readInt();\n graph.edgeUp(i, j);\n break;\n case 6: //change\n System.out.print(\"Enter from vertex: \");\n i = in.readInt();\n System.out.print(\"Enter to vertex: \");\n j = in.readInt();\n System.out.print(\"Enter weight: \");\n x = in.readDouble();\n graph.changeWeight(i, j, x);\n break;\n case 7: //eulerian\n graph.eulerian();\n break;\n case 8: //quit\n System.out.println(\"Exiting...\");\n quit = true;\n break;\n default:\n //nothing -- should never get here if all input is verified\n }\n \n }",
"private void convertion(){\n txtBox2.setText(workin.convertText(txtBox1.getText())) ; \n }",
"public static void main(String[] args) { \n\t\t\nScanner scan = new Scanner(System.in) ;\n\t\t\n\t\tSystem.out.println(\"lutfen \" + \"\\\"Y\\\"\" + \" veya \" + \"\\\"N\\\"\" + \"giriniz\");\n\t\t\n\tchar input = scan.next().charAt(0)\t ;\n\t\n\tif (input == 'Y' ||input=='y') {\n\t\tSystem.out.println(\"YES\");\n\t\t\n\t} else if (input== 'N' || input == 'n') {\n\t\tSystem.out.println(\"NO\");\n\t\t\n\t} else {\n\t\tSystem.out.println(\"yanlis giris yaptiniz. lutfen tekrar deneyiniz\");\n\n\t}\n\t\n\t\n\t\n\t\n\t\n\tscan.close();\n\t\n\n\t}",
"private void takeInUserInput(){\n\t\t// only take in input when it is in the ANSWERING phase\n\t\tif(spellList.status == QuizState.Answering){\n\t\t\tspellList.setAnswer(getAndClrInput());\n\t\t\tspellList.status = QuizState.Answered;\n\t\t\tansChecker=spellList.getAnswerChecker();\n\t\t\tansChecker.execute();\n\t\t}\t\n\n\t}",
"public static int readChoice() {\n int input;\n // returns only if a correct value is given.\n do {\n System.out.print(\"Please make your choice: \");\n try { // read the integer, parse it and break.\n input = Integer.parseInt(in.readLine());\n break;\n }catch (Exception e) {\n System.out.println(\"Your input is invalid!\");\n continue;\n }//end try\n }while (true);\n return input;\n }",
"public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n System.out.print(TimeConvert(s.nextLine())); \n }",
"private void handleTextInputCallback(TextInputCallback tic)\n throws IOException {\n System.out.print(tic.getPrompt());\n System.out.flush();\n tic.setText((new BufferedReader\n (new InputStreamReader(System.in))).readLine());\n }",
"public static void main(String[] args) {\n char option;\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Welcome to MG's adventure world. Now your journey begins. Good luck!\");\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n String input = getInput(scan, \"Cc\");\n System.out.println(\"You are in a dead valley.\");\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n input = getInput(scan, \"Cc\");\n System.out.println(\"You walked and walked and walked and you saw a cave!\");\n cave();\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n input = getInput(scan, \"Cc\");\n System.out.println(\"You entered a cave!\");\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n input = getInput(scan, \"Cc\");\n System.out.println(\"Unfortunately, you ran into a GIANT!\");\n giant();\n System.out.println(\"Enter 'A' or 'a' to Attack, 'E' or 'E' to Escape, ANYTHING else is to YIELD\");\n input = getInput(scan, \"AaEe\", 10);\n System.out.println(\"Congratulations! You SURVIVED! Get your REWARD!\");\n System.out.println(\"There are three 3 tressure box in front of you! Enter the box number you want to open!\");\n box();\n input = getInput(scan);\n System.out.println(\"Hero! Have a good day!\");\n }",
"public void readInput()\n\t{\n\t\t//wrap input stream read input from user\n\t\tBufferedReader in = new BufferedReader( new InputStreamReader( System.in ));\n\t\t\n\t\t//prompt user for input\n\t\tSystem.out.println( \"Please enter a letter or type Quit to end.\");\n\t\t\n\t\ttry{\n\t\t\tString userGuess = in.readLine();\n\t\t\t\n\t\t\t//loop until the user types \"Quit\"\n\t\t\tdo{\n\t\t\t\t//invoke guessletter function with String input\n\t\t\t\thangmanGame.guessLetter(userGuess);\n\t\t\t\t//update currentGuessText\n\t\t\t\tcurrentGuessText = hangmanGame.getCurrentGuess();\n\t\t\t\t//trace out current guess\n\t\t\t\tSystem.out.println(\"Your current guess is: \" + currentGuessText);\n\t\t\t\t//update remainingStrikes\n\t\t\t\thangmanGame.numberOfRemainingStrikes();\n\t\t\t\t//trace out remaining number of strikes\n\t\t\t\tSystem.out.println(\"You currently have \" + hangmanGame);\n\t\t\t\t//invoke revealAnswer function to check over gameOver, gameWon, and getAnswer\n\t\t\t\trevealAnswer();\n\t\t\t}while ( userGuess != \"Quit\" );\n\t\t}\n\t\t//catch IOException ioe\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t//tell exception to print its error log\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}",
"public void doIt(Input in);",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint binaryNumber = sc.nextInt();\n\t\tif(binaryNumber < 0 || binaryNumber > 11111) {\n\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\treturn;\n\t\t}\n\t\tint decimalNumber = convertToDecimal(binaryNumber);\n\t\tSystem.out.println(decimalNumber==-1 ? \"Invalid Input\" : decimalNumber);\n\t\tsc.close();\n\t}",
"protected void handleInput(String input) {}",
"public static String inputChoice(String promptMsg, String[] choices) {\n String[] choicesCleaned = removeNullStrArrItems(choices);\n\n return (String) JOptionPane.showInputDialog(\n null, promptMsg,\n \"Please answer...\",\n JOptionPane.QUESTION_MESSAGE, null,\n choicesCleaned,\n choicesCleaned[0] //select first option by default\n );\n }",
"public static void main(String[] args) {\n\t\tSystem.out.print(\"Enter number for Conversion :\");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tint n = sc.nextInt();\r\n\t\tint d = 0, p = 0;\r\n\t\t\r\n\t\twhile( n > 0 )\r\n\t\t{\r\n\t\t\tint temp = n % 10;\r\n\t\t\td += temp*Math.pow(2, p);\r\n\t\t\tn = n / 10;\r\n\t\t}\r\n\t\t\r\n\t\t\tint oct[] = new int[20];\r\n\t\tint i = 0;\r\n\t\t\r\n\t\twhile( d > 0)\r\n\t\t{\r\n\t\t\tint r = d % 8;\r\n\t\t\toct[i++] = r;\r\n\t\t\td = d / 8;\r\n\t\t}\r\n\t\tSystem.out.print(\"octal number is : \");\r\n\t\tfor(int j=i-1; j>=0; j--)\r\n\t\tSystem.out.print(oct[j]);\r\n\t\t\r\n\t\t\r\n\t\tsc.close();\r\n\t}",
"private void convActionPerformed(java.awt.event.ActionEvent evt) {\n\tif(conv.getText().equals(\"To SOP\"))\n\t{\n\t\tconv.setText(\"To POS\");\n\t\tanswer.setText(expr[0]);\n\t}\n\telse\n\t{\n\t\tconv.setText(\"To SOP\");\n\t\tanswer.setText(expr[1]);\n\t}\n}",
"private static String getResponseTo(String s) { // get user input as a string\r\n\t\tSystem.out.print(s);\r\n\t\treturn (scan.nextLine());\r\n\t}"
] | [
"0.61579376",
"0.61397076",
"0.59777457",
"0.595461",
"0.59214187",
"0.59106684",
"0.58353686",
"0.57809246",
"0.57357216",
"0.56966597",
"0.56630194",
"0.56579494",
"0.5643268",
"0.56030786",
"0.5592029",
"0.55881315",
"0.55869687",
"0.5574675",
"0.5574675",
"0.5574675",
"0.5574675",
"0.55682206",
"0.5523875",
"0.55236214",
"0.55086505",
"0.5456299",
"0.5453938",
"0.544836",
"0.5434663",
"0.5432355",
"0.5432089",
"0.54291904",
"0.54099727",
"0.5404325",
"0.53980184",
"0.5396214",
"0.5388272",
"0.53870887",
"0.5372992",
"0.5368837",
"0.53685045",
"0.5365685",
"0.535822",
"0.5351419",
"0.5348718",
"0.53405714",
"0.53395694",
"0.53386486",
"0.5333559",
"0.533015",
"0.5326879",
"0.5323068",
"0.53184277",
"0.5316844",
"0.5316783",
"0.5313773",
"0.5312323",
"0.53073984",
"0.5303433",
"0.5302939",
"0.5301035",
"0.52983934",
"0.5294561",
"0.5284524",
"0.528212",
"0.5276176",
"0.5273226",
"0.52694666",
"0.5266593",
"0.52608675",
"0.5257229",
"0.525201",
"0.52494985",
"0.5247787",
"0.5246027",
"0.5244446",
"0.52322537",
"0.52315176",
"0.5231162",
"0.5229132",
"0.52263266",
"0.5196206",
"0.518833",
"0.5180855",
"0.51791024",
"0.51786816",
"0.5177369",
"0.51745623",
"0.5162461",
"0.5162144",
"0.5161977",
"0.51582587",
"0.51575446",
"0.51556885",
"0.5155181",
"0.51483953",
"0.5144707",
"0.5144409",
"0.51434785",
"0.5141052"
] | 0.6688338 | 0 |
Created by harry on 20161214. | public interface DogRepository {
void createDog(String name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\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 public void init() {\n\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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 anular() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n void init() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@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 init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\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}",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"private static void cajas() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"private void init() {\n\n\t}",
"@Override\n protected void getExras() {\n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n protected void initialize() \n {\n \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\tpublic void init() {\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"private void poetries() {\n\n\t}",
"private void m50366E() {\n }",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private void kk12() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n public void initialize() { \n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public int getSize() {\n return 1;\n }",
"public void mo6081a() {\n }",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"private void init() {\n\n\n\n }",
"public void mo55254a() {\n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"private Rekenhulp()\n\t{\n\t}"
] | [
"0.6037366",
"0.5877756",
"0.58342373",
"0.5825212",
"0.5794569",
"0.5794569",
"0.57460505",
"0.5732318",
"0.56976545",
"0.56962645",
"0.5688753",
"0.5677469",
"0.5677469",
"0.5677469",
"0.5677469",
"0.5677469",
"0.5663606",
"0.5657464",
"0.5657037",
"0.5644917",
"0.5617377",
"0.561536",
"0.5596298",
"0.5595694",
"0.5593916",
"0.55917585",
"0.5569464",
"0.5568301",
"0.5560244",
"0.5552897",
"0.55501306",
"0.55501306",
"0.55501306",
"0.55488515",
"0.55488515",
"0.55488515",
"0.5536308",
"0.5536308",
"0.5536308",
"0.5533306",
"0.5531267",
"0.5530232",
"0.5530232",
"0.5528487",
"0.5528487",
"0.55181444",
"0.5507308",
"0.5506528",
"0.55021894",
"0.549586",
"0.549133",
"0.549122",
"0.5490046",
"0.54839915",
"0.5473676",
"0.5471909",
"0.5468244",
"0.5468244",
"0.5468244",
"0.5468244",
"0.5468244",
"0.5468244",
"0.54681706",
"0.5467726",
"0.54652053",
"0.5461399",
"0.54598093",
"0.54521346",
"0.54521346",
"0.54521346",
"0.54521346",
"0.54521346",
"0.54521346",
"0.54521346",
"0.54507667",
"0.54500043",
"0.54450357",
"0.54402864",
"0.54402864",
"0.5434597",
"0.5427259",
"0.54061675",
"0.53726345",
"0.5368134",
"0.5367806",
"0.5357489",
"0.53559524",
"0.5355412",
"0.5351524",
"0.53408617",
"0.5334305",
"0.5330746",
"0.532351",
"0.5323159",
"0.5319832",
"0.5319196",
"0.53129613",
"0.5310484",
"0.530296",
"0.530296",
"0.52968764"
] | 0.0 | -1 |
This is the localhome interface for TestingEntity enterprise bean. | public interface TestingEntityLocalHome extends javax.ejb.EJBLocalHome {
/**
*
*/
test.TestingEntityLocal findByPrimaryKey(java.lang.String key) throws javax.ejb.FinderException;
/**
*
*/
test.TestingEntityLocal create(java.lang.String key) throws javax.ejb.CreateException;
TestingEntityLocal createTest1() throws CreateException;
TestingEntityLocal createTest2(String a, int b) throws CreateException, IOException;
String homeTestMethod1();
String homeTestMethod2(String a, int b) throws Exception;
Collection findByTest1() throws FinderException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface UserEntityHome extends javax.ejb.EJBLocalHome {\n\n /**\n * Creates a new <code>UserEntity</code> record in the database.\n *\n * @param userId the id of user\n * @return the newly created UserEntity\n * @throws CreateException if the new record cannot be created in the database\n */\n public UserEntity create(String userId) throws CreateException;\n\n /**\n * Returns the UserEntity identified by the primary key, which is the userid.\n * @param userId String the primary key of the UserEntity to find\n * @throws FinderException when the UserEntity with the given id cannot be found\n * @return UserEntity the user with id userId\n */\n public UserEntity findByPrimaryKey(String userId) throws FinderException;\n\n /**\n * Returns all users of the system in a Collection of UserEntity.\n *\n * <p> If there are no users in the system, the method returns an empty\n * Collection.\n *\n * @throws FinderException defined by the spec, is never thrown\n * @return Collection of all users in the system as UserEntity's. If no users\n * are found return an empty Collection\n */\n public Collection findAllUsers() throws FinderException;\n\n /**\n * Finds all users in the system assigned to the specified LD roles in the\n * specified run and returns them in a Collection of UserEntity's.\n *\n * <p>The roleids passed is a space seperated list of LD role ids to match.\n *\n * <p> If no users are found the method returns an empty Collection.\n *\n * @param runId int the id of the run the users belong to\n * @param roleId String a space seperated list of LD ids of the roles the users\n * are assigned to\n * @throws FinderException defined by the spec, is never thrown\n * @return Collection of users assigned to the specified LD role(s) in the\n * specified run as UserEntity's\n */\n public Collection findByRoleId(int runId, String roleId) throws\n FinderException;\n \n \n /**\n * Finds all users in the system assigned to the specified role instances in the\n * specified run and returns them in a Collection of UserEntity's.\n *\n * <p>The roleids passed is a space seperated list of role isntance ids to match.\n *\n * <p> If no users are found the method returns an empty Collection.\n *\n * @param runId int the id of the run the users belong to\n * @param roleInstanceIds String a space seperated list of instance ids of the roles the users\n * are assigned to\n * @throws FinderException defined by the spec, is never thrown\n * @return Collection of users assigned to the specified role instances in the\n * specified run as UserEntity's\n */\n public Collection findByRoleInstanceId(int runId, String roleInstanceIds) throws FinderException;\n\n}",
"public interface ConectorLocalHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: Conector\n\t */\n\t static final String JNDI_NAME=\"ejb/co/com/telefonica/atiempo/ejb/eb/ConectorLocalHome\";\n\t \n\tpublic co.com.telefonica.atiempo.ejb.eb.ConectorLocal create(\n\t\tjava.lang.Integer cod_conector)\n\t\tthrows javax.ejb.CreateException;\n\t/**\n\t * Finds an instance using a key for Entity Bean: Conector\n\t */\n\tpublic co.com.telefonica.atiempo.ejb.eb.ConectorLocal findByPrimaryKey(\n\t\tco.com.telefonica.atiempo.ejb.eb.ConectorKey primaryKey)\n\t\tthrows javax.ejb.FinderException;\n}",
"public interface InvoiceEntityHome\n extends javax.ejb.EJBHome\n{\n public static final String COMP_NAME=\"java:comp/env/ejb/InvoiceEntity\";\n public static final String JNDI_NAME=\"ejb/InvoiceEntity\";\n\n public com.csr.billing.ejb.InvoiceEntity create(com.csr.billing.ejb.InvoiceDTO invoice)\n throws javax.ejb.CreateException,java.rmi.RemoteException;\n\n public java.util.Collection findAll()\n throws javax.ejb.FinderException,java.rmi.RemoteException;\n\n public com.csr.billing.ejb.InvoiceEntity findByPrimaryKey(java.lang.Integer pk)\n throws javax.ejb.FinderException,java.rmi.RemoteException;\n\n}",
"public interface DatosPublicacionSTLocalHome extends javax.ejb.EJBLocalHome {\n\t\n\tpublic static final String JNDI_NAME = \"ejb/co/com/telefonica/atiempo/soltec/datos_publicacion/ejb/sb/DatosPublicacionSTLocalHome\";\n\t\n\t/**\n\t * Creates a default instance of Session Bean: DatosPublicacionST\n\t */\n\tpublic co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.soltec\n\t\t.datos_publicacion\n\t\t.ejb\n\t\t.sb\n\t\t.DatosPublicacionSTLocal create()\n\t\tthrows javax.ejb.CreateException;\n}",
"@Local\r\npublic interface AdministrativeEJBLocal extends AbstractSolaTransactionEJBLocal {\r\n\r\n List<ChangeStatusType> getChangeStatusTypes(String languageCode);\r\n\r\n List<BaUnitType> getBaUnitTypes(String languageCode);\r\n\r\n List<MortgageType> getMortgageTypes(String languageCode);\r\n\r\n List<RrrGroupType> getRRRGroupTypes(String languageCode);\r\n\r\n List<RrrType> getRRRTypes(String languageCode);\r\n\r\n BaUnit getBaUnitById(String id);\r\n\r\n Rrr getRrr(String id);\r\n\r\n BaUnit getBaUnitByCode(String nameFirstPart, String nameLastPart);\r\n\r\n BaUnit saveBaUnit(String serviceId, BaUnit baUnit);\r\n\r\n List<BaUnit> getBaUnitsByTransactionId(String transactionId);\r\n\r\n List<BaUnitRelType> getBaUnitRelTypes(String languageCode);\r\n\r\n BaUnit terminateBaUnit(String baUnitId, String serviceId);\r\n\r\n BaUnit cancelBaUnitTermination(String baUnitId);\r\n\r\n List<RrrLoc> getRrrLocsById(String locId);\r\n\r\n Moth saveMoth(Moth moth);\r\n\r\n Moth getMoth(String id);\r\n\r\n List<Moth> getMoths(String vdcCode, String mothLuj);\r\n\r\n Moth getMoth(String vdcCode, String mothLuj, String mothLujNumber);\r\n\r\n Loc saveLoc(Loc loc);\r\n\r\n Loc getLoc(String id);\r\n\r\n LocWithMoth getLocWithMoth(String id);\r\n\r\n BaUnit saveBaUnit(BaUnit baUnit);\r\n\r\n LocWithMoth getLocByPageNoAndMoth(LocSearchByMothParams searchParams);\r\n\r\n List<LocWithMoth> getLocListByPageNoAndMoth(LocSearchByMothParams searchParams);\r\n\r\n List<Loc> getLocList(String mothId);\r\n\r\n List<RestrictionReason> getRestrictionReasons(String languageCode);\r\n\r\n List<RestrictionReleaseReason> getRestrictionReleaseReasons(String languageCode);\r\n\r\n List<RestrictionOffice> getRestrictionOffices(String languageCode);\r\n\r\n List<OwnerType> getOwnerTypes(String languageCode);\r\n\r\n List<OwnershipType> getOwnershipTypes(String languageCode);\r\n\r\n List<TenancyType> getTenancyTypes(String languageCode);\r\n\r\n void deletePendingBaUnit(String baUnitId);\r\n\r\n List<Moth> searchMoths(MothSearchParams params);\r\n\r\n List<Moth> searchMothsByParts(String searchString);\r\n}",
"public interface PropertyDefEntity extends javax.ejb.EJBLocalObject {\n\n /**\n * Returns a PropertyDefDto data transfer object containing all parameters of\n * this property definition instance.\n *\n * @return PropertyDefDto the data transfer object containing all parameters of this instance\n * @see #setDto\n */\n public PropertyDefDto getDto();\n\n /**\n * Sets all data members of this property definition instance to the values\n * from the specified data transfer object.\n *\n * @param dto PropertyDefDto the data transfer object containing the new\n * parameters for this instance\n * @see #getDto\n */\n public void setDto(PropertyDefDto dto);\n\n}",
"public interface ContactHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: Contact\n\t */\n\tpublic com.vh.locker.ejb.Contact create(java.lang.Long id, java.lang.String name, java.lang.String nickName, java.lang.String phone, java.lang.String email, com.vh.locker.ejb.User anUser) throws javax.ejb.CreateException;\n\t\n /**\n\t * Finds an instance using a key for Entity Bean: Contact\n\t */\n\tpublic com.vh.locker.ejb.Contact findByPrimaryKey(java.lang.Long primaryKey) throws javax.ejb.FinderException;\n\tpublic java.util.Collection findByUser(java.lang.Long userId) throws javax.ejb.FinderException;\n}",
"public interface CSUserLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * getEntityContext\n\t */\n\tpublic javax.ejb.EntityContext getEntityContext();\n\t/**\n\t * Returns the idPassword.\n\t * @return String\n\t */\n\tpublic String getIdPassword();\n\t/**\n\t * Returns the idProfile.\n\t * @return String\n\t */\n\tpublic String getIdProfile();\n\t/**\n\t * Returns the idProfileDesc.\n\t * @return String\n\t */\n\tpublic String getIdProfileDesc();\n\t/**\n\t * Returns the idWrkr.\n\t * @return String\n\t */\n\tpublic String getIdWrkr();\n\t/**\n\t * Returns the idWrkrCreate.\n\t * @return String\n\t */\n\tpublic String getIdWrkrCreate();\n\t/**\n\t * Returns the idWrkrUpdate.\n\t * @return String\n\t */\n\tpublic String getIdWrkrUpdate();\n\t/**\n\t * Returns the myEntityCtx.\n\t * @return javax.ejb.EntityContext\n\t */\n\tpublic javax.ejb.EntityContext getMyEntityCtx();\n\t/**\n\t * Returns the tsCreate.\n\t * @return java.sql.Timestamp\n\t */\n\tpublic java.sql.Timestamp getTsCreate();\n\t/**\n\t * Returns the tsUpdate.\n\t * @return java.sql.Timestamp\n\t */\n\tpublic java.sql.Timestamp getTsUpdate();\n\t/**\n\t * Sets the idPassword.\n\t * @param idPassword The idPassword to set\n\t */\n\tpublic void setIdPassword(String idPassword);\n\t/**\n\t * Sets the idProfile.\n\t * @param idProfile The idProfile to set\n\t */\n\tpublic void setIdProfile(String idProfile);\n\t/**\n\t * Sets the idProfileDesc.\n\t * @param idProfileDesc The idProfileDesc to set\n\t */\n\tpublic void setIdProfileDesc(String idProfileDesc);\n\t/**\n\t * Sets the idWrkrUpdate.\n\t * @param idWrkrUpdate The idWrkrUpdate to set\n\t */\n\tpublic void setIdWrkrUpdate(String idWrkrUpdate);\n\t/**\n\t * Sets the tsUpdate.\n\t * @param tsUpdate The tsUpdate to set\n\t */\n\tpublic void setTsUpdate(java.sql.Timestamp tsUpdate);\n\t/**\n\t * Returns the nmWrkr.\n\t * @return String\n\t */\n\tpublic String getNmWrkr();\n\t/**\n\t * Sets the nmWrkr.\n\t * @param nmWrkr The nmWrkr to set\n\t */\n\tpublic void setNmWrkr(String nmWrkr);\n\t/**\n\t * Returns the cdPasswordStatus.\n\t * @return String\n\t */\n\tpublic String getCdPasswordStatus();\n\t/**\n\t * Sets the cdPasswordStatus.\n\t * @param cdPasswordStatus The cdPasswordStatus to set\n\t */\n\tpublic void setCdPasswordStatus(String cdPasswordStatus);\n\t/**\n\t * Returns the cdAccptWrkld.\n\t * @return String\n\t */\n\tpublic String getCdAccptWrkld();\n\t/**\n\t * Returns the nbApproval.\n\t * @return int\n\t */\n\tpublic int getNbApproval();\n\t/**\n\t * Returns the nbCompleted.\n\t * @return int\n\t */\n\tpublic int getNbCompleted();\n\t/**\n\t * Returns the nbOutstanding.\n\t * @return int\n\t */\n\tpublic int getNbOutstanding();\n\t/**\n\t * Sets the cdAccptWrkld.\n\t * @param cdAccptWrkld The cdAccptWrkld to set\n\t */\n\tpublic void setCdAccptWrkld(String cdAccptWrkld);\n\t/**\n\t * Sets the nbApproval.\n\t * @param nbApproval The nbApproval to set\n\t */\n\tpublic void setNbApproval(int nbApproval);\n\t/**\n\t * Sets the nbCompleted.\n\t * @param nbCompleted The nbCompleted to set\n\t */\n\tpublic void setNbCompleted(int nbCompleted);\n\t/**\n\t * Sets the nbOutstanding.\n\t * @param nbOutstanding The nbOutstanding to set\n\t */\n\tpublic void setNbOutstanding(int nbOutstanding);\n\t/**\n\t * Returns the byAgent.\n\t * @return boolean\n\t */\n\tpublic boolean isByAgent();\n\t/**\n\t * Returns the byControlNbr.\n\t * @return boolean\n\t */\n\tpublic boolean isByControlNbr();\n\t/**\n\t * Returns the byCounty.\n\t * @return boolean\n\t */\n\tpublic boolean isByCounty();\n\t/**\n\t * Returns the byCP.\n\t * @return boolean\n\t */\n\tpublic boolean isByCP();\n\t/**\n\t * Returns the byCustomer.\n\t * @return boolean\n\t */\n\tpublic boolean isByCustomer();\n\t/**\n\t * Returns the byDtCompleted.\n\t * @return boolean\n\t */\n\tpublic boolean isByDtCompleted();\n\t/**\n\t * Returns the byDtDue.\n\t * @return boolean\n\t */\n\tpublic boolean isByDtDue();\n\t/**\n\t * Returns the byDtReceived.\n\t * @return boolean\n\t */\n\tpublic boolean isByDtReceived();\n\t/**\n\t * Returns the byEmail.\n\t * @return boolean\n\t */\n\tpublic boolean isByEmail();\n\t/**\n\t * Returns the byIdPart.\n\t * @return boolean\n\t */\n\tpublic boolean isByIdPart();\n\t/**\n\t * Returns the byNbCase.\n\t * @return boolean\n\t */\n\tpublic boolean isByNbCase();\n\t/**\n\t * Returns the byNbDkt.\n\t * @return boolean\n\t */\n\tpublic boolean isByNbDkt();\n\t/**\n\t * Returns the byNbSSN.\n\t * @return boolean\n\t */\n\tpublic boolean isByNbSSN();\n\t/**\n\t * Returns the byNCP.\n\t * @return boolean\n\t */\n\tpublic boolean isByNCP();\n\t/**\n\t * Returns the byReferralType.\n\t * @return boolean\n\t */\n\tpublic boolean isByReferralType();\n\t/**\n\t * Returns the bySrc1.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc1();\n\t/**\n\t * Returns the bySrc2.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc2();\n\t/**\n\t * Returns the bySrc3.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc3();\n\t/**\n\t * Returns the bySrc4.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc4();\n\t/**\n\t * Returns the dirty.\n\t * @return boolean\n\t */\n\tpublic boolean isDirty();\n\t/**\n\t * Sets the byAgent.\n\t * @param byAgent The byAgent to set\n\t */\n\tpublic void setByAgent(boolean byAgent);\n\t/**\n\t * Sets the byControlNbr.\n\t * @param byControlNbr The byControlNbr to set\n\t */\n\tpublic void setByControlNbr(boolean byControlNbr);\n\t/**\n\t * Sets the byCounty.\n\t * @param byCounty The byCounty to set\n\t */\n\tpublic void setByCounty(boolean byCounty);\n\t/**\n\t * Sets the byCP.\n\t * @param byCP The byCP to set\n\t */\n\tpublic void setByCP(boolean byCP);\n\t/**\n\t * Sets the byCustomer.\n\t * @param byCustomer The byCustomer to set\n\t */\n\tpublic void setByCustomer(boolean byCustomer);\n\t/**\n\t * Sets the byDtCompleted.\n\t * @param byDtCompleted The byDtCompleted to set\n\t */\n\tpublic void setByDtCompleted(boolean byDtCompleted);\n\t/**\n\t * Sets the byDtDue.\n\t * @param byDtDue The byDtDue to set\n\t */\n\tpublic void setByDtDue(boolean byDtDue);\n\t/**\n\t * Sets the byDtReceived.\n\t * @param byDtReceived The byDtReceived to set\n\t */\n\tpublic void setByDtReceived(boolean byDtReceived);\n\t/**\n\t * Sets the byEmail.\n\t * @param byEmail The byEmail to set\n\t */\n\tpublic void setByEmail(boolean byEmail);\n\t/**\n\t * Sets the byIdPart.\n\t * @param byIdPart The byIdPart to set\n\t */\n\tpublic void setByIdPart(boolean byIdPart);\n\t/**\n\t * Sets the byNbCase.\n\t * @param byNbCase The byNbCase to set\n\t */\n\tpublic void setByNbCase(boolean byNbCase);\n\t/**\n\t * Sets the byNbDkt.\n\t * @param byNbDkt The byNbDkt to set\n\t */\n\tpublic void setByNbDkt(boolean byNbDkt);\n\t/**\n\t * Sets the byNbSSN.\n\t * @param byNbSSN The byNbSSN to set\n\t */\n\tpublic void setByNbSSN(boolean byNbSSN);\n\t/**\n\t * Sets the byNCP.\n\t * @param byNCP The byNCP to set\n\t */\n\tpublic void setByNCP(boolean byNCP);\n\t/**\n\t * Sets the byReferralType.\n\t * @param byReferralType The byReferralType to set\n\t */\n\tpublic void setByReferralType(boolean byReferralType);\n\t/**\n\t * Sets the bySrc1.\n\t * @param bySrc1 The bySrc1 to set\n\t */\n\tpublic void setBySrc1(boolean bySrc1);\n\t/**\n\t * Sets the bySrc2.\n\t * @param bySrc2 The bySrc2 to set\n\t */\n\tpublic void setBySrc2(boolean bySrc2);\n\t/**\n\t * Sets the bySrc3.\n\t * @param bySrc3 The bySrc3 to set\n\t */\n\tpublic void setBySrc3(boolean bySrc3);\n\t/**\n\t * Sets the bySrc4.\n\t * @param bySrc4 The bySrc4 to set\n\t */\n\tpublic void setBySrc4(boolean bySrc4);\n\t/**\n\t * Returns the cdApprovalRequired.\n\t * @return String\n\t */\n\tpublic String getCdApprovalRequired();\n\t/**\n\t * Sets the cdApprovalRequired.\n\t * @param cdApprovalRequired The cdApprovalRequired to set\n\t */\n\tpublic void setCdApprovalRequired(String cdApprovalRequired);\n\t/**\n\t * Returns the userEntityBean.\n\t * @return UserEntityBean\n\t */\n\tpublic UserEntityBean getUserEntityBean();\n\t/**\n\t * Sets the userEntityBean.\n\t * @param userEntityBean The userEntityBean to set\n\t */\n\tpublic void setUserEntityBean(UserEntityBean userEntityBean);\n}",
"public interface CSActsWorkerLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * Returns the cdFipsWrkr.\n\t * @return String\n\t */\n\tpublic String getCdFipsWrkr();\n\t/**\n\t * Returns the cdWrkrType.\n\t * @return String\n\t */\n\tpublic String getCdWrkrType();\n\t/**\n\t * Returns the csActsWorkerInquiry.\n\t * @return CSActsWorkerInquiry\n\t */\n\tpublic CSActsWorkerInquiry getCsActsWorkerInquiry();\n\t/**\n\t * getEntityContext\n\t */\n\tpublic javax.ejb.EntityContext getEntityContext();\n\t/**\n\t * Returns the idEmail.\n\t * @return String\n\t */\n\tpublic String getIdEmail();\n\t/**\n\t * Returns the idWrkr.\n\t * @return String\n\t */\n\tpublic String getIdWrkr();\n\t/**\n\t * Returns the idWrkrLogon.\n\t * @return String\n\t */\n\tpublic String getIdWrkrLogon();\n\t/**\n\t * Returns the myEntityCtx.\n\t * @return javax.ejb.EntityContext\n\t */\n\tpublic javax.ejb.EntityContext getMyEntityCtx();\n\t/**\n\t * Returns the nbFaxWorker.\n\t * @return String\n\t */\n\tpublic String getNbFaxWorker();\n\t/**\n\t * Returns the nbTelWorker.\n\t * @return String\n\t */\n\tpublic String getNbTelWorker();\n\t/**\n\t * Returns the nmWrkr.\n\t * @return String\n\t */\n\tpublic String getNmWrkr();\n\t/**\n\t * Returns the tmLunchEnd.\n\t * @return String\n\t */\n\tpublic String getTmLunchEnd();\n\t/**\n\t * Returns the tmLunchStart.\n\t * @return String\n\t */\n\tpublic String getTmLunchStart();\n\t/**\n\t * Returns the tmWorkEnd.\n\t * @return String\n\t */\n\tpublic String getTmWorkEnd();\n\t/**\n\t * Returns the tmWorkStart.\n\t * @return String\n\t */\n\tpublic String getTmWorkStart();\n\t/**\n\t * Sets the cdFipsWrkr.\n\t * @param cdFipsWrkr The cdFipsWrkr to set\n\t */\n\tpublic void setCdFipsWrkr(String cdFipsWrkr);\n\t/**\n\t * Sets the cdWrkrType.\n\t * @param cdWrkrType The cdWrkrType to set\n\t */\n\tpublic void setCdWrkrType(String cdWrkrType);\n\t/**\n\t * Sets the csActsWorkerInquiry.\n\t * @param csActsWorkerInquiry The csActsWorkerInquiry to set\n\t */\n\tpublic void setCsActsWorkerInquiry(CSActsWorkerInquiry csActsWorkerInquiry);\n\t/**\n\t * setEntityContext\n\t */\n\tpublic void setEntityContext(javax.ejb.EntityContext ctx);\n\t/**\n\t * Sets the idEmail.\n\t * @param idEmail The idEmail to set\n\t */\n\tpublic void setIdEmail(String idEmail);\n\t/**\n\t * Sets the idWrkr.\n\t * @param idWrkr The idWrkr to set\n\t */\n\tpublic void setIdWrkr(String idWrkr);\n\t/**\n\t * Sets the idWrkrLogon.\n\t * @param idWrkrLogon The idWrkrLogon to set\n\t */\n\tpublic void setIdWrkrLogon(String idWrkrLogon);\n\t/**\n\t * Sets the myEntityCtx.\n\t * @param myEntityCtx The myEntityCtx to set\n\t */\n\tpublic void setMyEntityCtx(javax.ejb.EntityContext myEntityCtx);\n\t/**\n\t * Sets the nbFaxWorker.\n\t * @param nbFaxWorker The nbFaxWorker to set\n\t */\n\tpublic void setNbFaxWorker(String nbFaxWorker);\n\t/**\n\t * Sets the nbTelWorker.\n\t * @param nbTelWorker The nbTelWorker to set\n\t */\n\tpublic void setNbTelWorker(String nbTelWorker);\n\t/**\n\t * Sets the nmWrkr.\n\t * @param nmWrkr The nmWrkr to set\n\t */\n\tpublic void setNmWrkr(String nmWrkr);\n\t/**\n\t * Sets the tmLunchEnd.\n\t * @param tmLunchEnd The tmLunchEnd to set\n\t */\n\tpublic void setTmLunchEnd(String tmLunchEnd);\n\t/**\n\t * Sets the tmLunchStart.\n\t * @param tmLunchStart The tmLunchStart to set\n\t */\n\tpublic void setTmLunchStart(String tmLunchStart);\n\t/**\n\t * Sets the tmWorkEnd.\n\t * @param tmWorkEnd The tmWorkEnd to set\n\t */\n\tpublic void setTmWorkEnd(String tmWorkEnd);\n\t/**\n\t * Sets the tmWorkStart.\n\t * @param tmWorkStart The tmWorkStart to set\n\t */\n\tpublic void setTmWorkStart(String tmWorkStart);\n\t/**\n\t * Returns the actsWorkerEntityBean.\n\t * @return ActsWorkerEntityBean\n\t */\n\tpublic ActsWorkerEntityBean getActsWorkerEntityBean();\n\t/**\n\t * Sets the actsWorkerEntityBean.\n\t * @param actsWorkerEntityBean The actsWorkerEntityBean to set\n\t */\n\tpublic void setActsWorkerEntityBean(ActsWorkerEntityBean actsWorkerEntityBean);\n}",
"public interface FMISComLocalHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates a default instance of Session Bean: FMISBusiness\n\t */\n\tpublic FMISComLocal create() throws javax.ejb.CreateException;\n}",
"public interface LocalHelloWorldHome extends EJBLocalHome {\n com.sunflower.ejb.LocalHelloWorld create() throws CreateException;\n}",
"public interface PersonLocal extends javax.ejb.EJBLocalObject {\r\n\t/**\r\n\t * Get accessor for persistent attribute: password\r\n\t */\r\n\tpublic java.lang.String getPassword();\r\n\t/**\r\n\t * Set accessor for persistent attribute: password\r\n\t */\r\n\tpublic void setPassword(java.lang.String newPassword);\r\n\t/**\r\n\t * Get accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic java.lang.String getFirstName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic void setFirstName(java.lang.String newFirstName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic java.lang.String getLastName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic void setLastName(java.lang.String newLastName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic java.lang.String getEmailAddress();\r\n\t/**\r\n\t * Set accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic void setEmailAddress(java.lang.String newEmailAddress);\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic java.util.Collection getTodo();\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic void setTodo(java.util.Collection aTodo);\r\n\t/**\r\n\t * This is our method to get all todos for one person\r\n\t */\r\n\tpublic java.util.Collection getTodos();\r\n\tpublic boolean isPasswordCorrect(String password);\r\n}",
"@Override\n @Test(groups = {\"Entity Factory access\"})\n public void testEntityFactory00() throws Exception {\n super.testEntityFactory00();\n }",
"public interface ForumMessageLocalHome extends EJBLocalHome {\n public ForumMessageLocal create(String title, String author,\n StringBuffer message) throws CreateException;\n\n public ForumMessageLocal findByPrimaryKey(Integer id) throws FinderException;\n}",
"public interface Bitacora_peticionLocalHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: Bitacora_peticion\n\t */\n\t static final String JNDI_NAME=\"ejb/co/com/telefonica/atiempo/ejb/eb/Bitacora_peticionLocalHome\";\n\tpublic co.com.telefonica.atiempo.ejb.eb.Bitacora_peticionLocal create(\n\t\tjava.lang.Long bipe_id)\n\t\tthrows javax.ejb.CreateException;\n\t/**\n\t * Finds an instance using a key for Entity Bean: Bitacora_peticion\n\t */\n\tpublic co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Bitacora_peticionLocal findByPrimaryKey(\n\t\tco.com.telefonica.atiempo.ejb.eb.Bitacora_peticionKey primaryKey)\n\t\tthrows javax.ejb.FinderException;\n\t/**\n\t * Creates an instance from a key for Entity Bean: Bitacora_peticion\n\t */\n\tpublic co.com.telefonica.atiempo.ejb.eb.Bitacora_peticionLocal create(\n\t\tjava.lang.Long bipe_id,\n\t\tjava.lang.Long usua_id,\n\t\tjava.sql.Timestamp bipe_fecha_inicio,\n\t\tco.com.telefonica.atiempo.ejb.eb.ActividadLocal argFk_acti_2_bipe,\n\t\tco.com.telefonica.atiempo.ejb.eb.PeticionLocal argFk_peticion)\n\t\tthrows javax.ejb.CreateException;\n\n\t/**\n\t * @param idActividad\n\t * @param object\n\t * @param idPeticion\n\t * @param idUsuario\n\t * @param date\n\t * @param object2\n\t * @param object3\n\t * @param esReversa\n\t * @return\n\t */\n\tpublic co.com.telefonica.atiempo.ejb.eb.Bitacora_peticionLocal create(\n\t\tLong idActividad,\n\t\tLong idCausa,\n\t\tLong peticion,\n\t\tLong usuaId,\n\t\tDate bipeFechaInicio,\n\t\tDate bipeFechaFin,\n\t\tString bipeObservacion,\n\t\tShort esReversa)\n\t\tthrows CreateException;\n\n\tpublic java.util.Collection findbyNumeroPeticion(java.lang.Long idPeticion) throws javax.ejb.FinderException;\n//\tpublic java.util.Collection findFechaFin(java.lang.Long idPeticion) throws javax.ejb.FinderException;\n//\n\tpublic java.util.Collection findByPetiOrden(java.lang.Long idPeticion) throws javax.ejb.FinderException;\n\tpublic Bitacora_peticionLocal findByPeticionActividad(java.lang.Long idPeticion, java.lang.Long idActividad) throws javax.ejb.FinderException;\n\tpublic Bitacora_peticionLocal findByPeticionActividadUsuario(java.lang.Long idPeticion, java.lang.Long idActividad, java.lang.Long idUsuario)\n\t\tthrows javax.ejb.FinderException;\n//\t//public Bitacora_peticionLocal findNumPeticionActividad(java.lang.Long numPeticion) throws javax.ejb.FinderException;\n//\tpublic java.util.Collection findByPeticionFechaTerminoNula(java.lang.Long nroPeticion) throws javax.ejb.FinderException;\n//\tpublic Bitacora_peticionLocal findObsPeticionActividad(java.lang.Long numeroPeticion, java.lang.Long numeroActividad)\n//\t\tthrows javax.ejb.FinderException;\n//\tpublic Bitacora_peticionLocal findByCodigoObservacionPeticion(java.lang.Long peticion) throws javax.ejb.FinderException;\n//\tpublic Bitacora_peticionLocal findByIdPeticionAndMdfTerminada(java.lang.Long idPeticion) throws javax.ejb.FinderException;\n//\t\n\tpublic java.util.Collection findbyPeticionRol(java.lang.Long idPeticion, java.lang.Long idRol) throws javax.ejb.FinderException;\n//\tpublic java.util.Collection findByPeticionActividadNoNula(java.lang.Long idPeticion, java.lang.Long idActividad) throws javax.ejb.FinderException;\n\tpublic java.util.Collection findByPeticionActividadCerrada(java.lang.Long petiNumero, java.lang.Long actId) throws javax.ejb.FinderException;\n\tpublic java.util.Collection findPreviuosActivity(java.lang.Long petiNumero)\n\t\tthrows javax.ejb.FinderException;\n\tpublic java.util.Collection findbypeticionfechafin(java.lang.Long idPeticion)\n\t\tthrows javax.ejb.FinderException;\n\tpublic java.util.Collection findByOpenAct(java.lang.Long idActividad)\n\t\tthrows javax.ejb.FinderException;\n\tpublic co.com.telefonica.atiempo.ejb.eb.Bitacora_peticionLocal findbyMaxActivity(java.lang.Long idPeticion, java.lang.Long idActividad) throws javax.ejb.FinderException;\n}",
"@Local\r\npublic interface ComercioNacionalEJBLocal {\r\n\r\n /**\r\n *\r\n * @param idCliente\r\n * @param idPuntoVenta\r\n * @return\r\n */\r\n List<ProductosXCliente> consultarProductosXCliente(Long idCliente, Long idPuntoVenta);\r\n\r\n /**\r\n *\r\n * @param solicitud\r\n * @param productosXDocumento\r\n * @param log\r\n * @return\r\n */\r\n Documento ingresarSolicitudComercioNacional(Documento solicitud, List<ProductosXDocumento> productosXDocumento, LogAuditoria log);\r\n}",
"public interface TestUserInfoService extends EntityService<TestUserInfo> {\r\n\r\n}",
"@Local\npublic interface UsersMgrLocal {\n\n String ROLE_GUEST = \"guest\";\n\n String auth(String login, String password);\n\n List<JsonPerson> getAll();\n\n JsonPerson getByUUID(String token);\n\n Staff getStaffByUUID(String token);\n\n String create(JsonPerson jsonNewPerson);\n\n boolean isLoginUsed(String login);\n\n String updateStaff(Staff newStaff, JsonPerson jsonNewPerson);\n\n void deleteStaff(Staff staff, String token);\n}",
"@Override\n @Test(groups = {\"Entity Manager access\"})\n public void testEntityManager00() throws Exception {\n super.testEntityManager00();\n }",
"public interface ResearchApplicationRemoteHome extends javax.ejb.EJBHome {\n \n \n \n /**\n *\n */\n org.tgdb.model.researchapplication.ResearchApplicationRemote findByPrimaryKey(Integer key) throws javax.ejb.FinderException, java.rmi.RemoteException;\n\n java.util.Collection findByProject(int pid) throws javax.ejb.FinderException, java.rmi.RemoteException;\n\n org.tgdb.model.researchapplication.ResearchApplicationRemote create(java.lang.String name, java.lang.String comm, int pid, int raid, TgDbCaller caller) throws javax.ejb.CreateException, java.rmi.RemoteException;\n\n Collection findByName(String name) throws javax.ejb.FinderException, java.rmi.RemoteException;\n\n Collection findByKeyword(Keyword keyword, TgDbCaller caller) throws javax.ejb.FinderException, java.rmi.RemoteException;\n \n}",
"public interface TestSessionBeanLocal\n extends javax.ejb.EJBLocalObject\n{\n\n}",
"public interface Compromiso_peticionLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * Get accessor for persistent attribute: tiag_id\n\t */\n\tpublic java.lang.Long getTiag_id();\n\t/**\n\t * Set accessor for persistent attribute: tiag_id\n\t */\n\tpublic void setTiag_id(java.lang.Long newTiag_id);\n\t/**\n\t * Get accessor for persistent attribute: id_rango\n\t */\n\tpublic java.lang.Integer getId_rango();\n\t/**\n\t * Set accessor for persistent attribute: id_rango\n\t */\n\tpublic void setId_rango(java.lang.Integer newId_rango);\n\t/**\n\t * Get accessor for persistent attribute: peti_numero\n\t */\n\tpublic java.lang.Long getPeti_numero();\n\t/**\n\t * Set accessor for persistent attribute: peti_numero\n\t */\n\tpublic void setPeti_numero(java.lang.Long newPeti_numero);\n\t/**\n\t * Get accessor for persistent attribute: codigo_pcom\n\t */\n\tpublic java.lang.String getCodigo_pcom();\n\t/**\n\t * Set accessor for persistent attribute: codigo_pcom\n\t */\n\tpublic void setCodigo_pcom(java.lang.String newCodigo_pcom);\n\t/**\n\t * Get accessor for persistent attribute: dia_especifico\n\t */\n\tpublic java.sql.Timestamp getDia_especifico();\n\t/**\n\t * Set accessor for persistent attribute: dia_especifico\n\t */\n\tpublic void setDia_especifico(java.sql.Timestamp newDia_especifico);\n\t/**\n\t * Get accessor for persistent attribute: id_tecnico\n\t */\n\tpublic java.lang.Long getId_tecnico();\n\t/**\n\t * Set accessor for persistent attribute: id_tecnico\n\t */\n\tpublic void setId_tecnico(java.lang.Long newId_tecnico);\n\t/**\n\t * Get accessor for persistent attribute: user_mac\n\t */\n\tpublic java.lang.String getUser_mac();\n\t/**\n\t * Set accessor for persistent attribute: user_mac\n\t */\n\tpublic void setUser_mac(java.lang.String newUser_mac);\n\t/**\n\t * Get accessor for persistent attribute: hora_desde\n\t */\n\tpublic java.lang.String getHora_desde();\n\t/**\n\t * Set accessor for persistent attribute: hora_desde\n\t */\n\tpublic void setHora_desde(java.lang.String newHora_desde);\n\t/**\n\t * Get accessor for persistent attribute: hora_hasta\n\t */\n\tpublic java.lang.String getHora_hasta();\n\t/**\n\t * Set accessor for persistent attribute: hora_hasta\n\t */\n\tpublic void setHora_hasta(java.lang.String newHora_hasta);\n\t/**\n\t * Get accessor for persistent attribute: codigo_agencia\n\t */\n\tpublic java.lang.String getCodigo_agencia();\n\t/**\n\t * Set accessor for persistent attribute: codigo_agencia\n\t */\n\tpublic void setCodigo_agencia(java.lang.String newCodigo_agencia);\n\t/**\n\t * Get accessor for persistent attribute: estado\n\t */\n\tpublic java.lang.Short getEstado();\n\t/**\n\t * Set accessor for persistent attribute: estado\n\t */\n\tpublic void setEstado(java.lang.Short newEstado);\n\t/**\n\t * Get accessor for persistent attribute: grse_id\n\t */\n\tpublic java.lang.Integer getGrse_id();\n\t/**\n\t * Set accessor for persistent attribute: grse_id\n\t */\n\tpublic void setGrse_id(java.lang.Integer newGrse_id);\n\t/**\n\t * Get accessor for persistent attribute: fecha\n\t */\n\tpublic java.sql.Timestamp getFecha();\n\t/**\n\t * Set accessor for persistent attribute: fecha\n\t */\n\tpublic void setFecha(java.sql.Timestamp newFecha);\n\t/**\n\t * Get accessor for persistent attribute: care_id\n\t */\n\tpublic java.lang.Integer getCare_id();\n\t/**\n\t * Set accessor for persistent attribute: care_id\n\t */\n\tpublic void setCare_id(java.lang.Integer newCare_id);\n\t/**\n\t * Get accessor for persistent attribute: usua_id\n\t */\n\tpublic java.lang.Long getUsua_id();\n\t/**\n\t * Set accessor for persistent attribute: usua_id\n\t */\n\tpublic void setUsua_id(java.lang.Long newUsua_id);\n\t/**\n\t * Get accessor for persistent attribute: id_cita_previa\n\t */\n\tpublic java.lang.Long getId_cita_previa();\n\t/**\n\t * Set accessor for persistent attribute: id_cita_previa\n\t */\n\tpublic void setId_cita_previa(java.lang.Long newId_cita_previa);\n}",
"public interface EJBLocalHome {\n\n /**\n * <p>Remove an EJB object identified by its primary key.</p>\n *\n * <p>This method can only be used by local clients of an entity bean.\n * An attempt to call this method on a session bean will result in an EJBException.</p>\n *\n * @param primaryKey - The primary key\n * @exception RemoveException - Thrown if the enterprise Bean or the container does\n * not allow the client to remove the object.\n * @exception EJBException - Thrown when the method failed due to a system-level failure.\n */\n public void remove(java.lang.Object primaryKey)\n throws RemoveException, EJBException;\n}",
"public interface AInstalarTOALocalHome extends javax.ejb.EJBLocalHome {\n\t\n\tpublic static final String JNDI_NAME = \"ejb/co/com/telefonica/atiempo/vpistbba/actividades/df/instalacion/ejb/sb/AInstalarTOALocalHome\";\t\n\n\t/**\n\t * Creates a default instance of Session Bean: AInstalarTOA\n\t */\n\tpublic co.com.telefonica.atiempo.vpistbba.actividades.df.instalacion.ejb.sb.AInstalarTOALocal create()\n\t\tthrows javax.ejb.CreateException;\n}",
"public interface ModelManagerRemoteHome extends javax.ejb.EJBHome {\n \n \n \n /**\n *\n */\n org.tgdb.model.modelmanager.ModelManagerRemote create() throws javax.ejb.CreateException, java.rmi.RemoteException;\n \n \n}",
"@Local\npublic interface LocalMaterialEJB {\n /**\n * Gets the amount of materials\n *\n * @return int\n * @throws litfitsserver.exceptions.ReadException\n */\n int countMaterials() throws ReadException;\n\n /**\n * Inserts a new material in the database\n *\n * @param material\n * @throws litfitsserver.exceptions.CreateException\n */\n void createMaterial(Material material) throws CreateException;\n\n /**\n * Edits a Material\n *\n * @param material\n * @throws litfitsserver.exceptions.UpdateException\n */\n void editMaterial(Material material) throws UpdateException;\n\n /**\n * Gets all the materials\n *\n * @return List\n * @throws litfitsserver.exceptions.ReadException\n */\n List<Material> findAllMaterials() throws ReadException;\n\n /**\n * Gets a Material by its name\n *\n * @param name\n * @return Material\n * @throws litfitsserver.exceptions.ReadException\n */\n Material findMaterial(String name) throws ReadException;\n\n /**\n * Deletes a material\n *\n * @param material\n * @throws litfitsserver.exceptions.ReadException\n * @throws litfitsserver.exceptions.DeleteException\n */\n void removeMaterial(Material material) throws ReadException, DeleteException;\n}",
"public interface EntryHome extends EJBHome {\n\n /**\n Creates an Entry entity bean.\n @param compoID the id of the compo this entry belongs to\n @param entryID the id of this entry\n @param entryName the name of this entry\n @param entryDesc description\n @param entryAuthor author of this entry\n @return entry the remote reference to the created Entry bean.\n */\n public Entry create(int compoID,\n\t\t\tint entryID,\n\t\t\tString entryName,\n\t\t\tString entryDesc,\n\t\t\tString entryAuthor) throws CreateException, RemoteException;\n\n /**\n Finds an Entry by its primary key\n @param entryID the primary key\n @return entry the Entry found\n */\n public Entry findByPrimaryKey(EntryPK pk) throws FinderException, RemoteException;\n\n /**\n Returns all the Entries in the database.\n @return enum an Enumeration with all the Entries in the database\n */\n public Enumeration findAll() throws FinderException, RemoteException;\n\n}",
"@Test\n public void testNewEntity() throws Exception {\n\n }",
"@Override\n @Test(groups = {\"EJB access\"})\n public void testEJB00() throws Exception {\n super.testEJB00();\n }",
"public void setupEntities() {\n }",
"public interface EmpSessionHome extends EJBHome {\n swforge.EmpSession create() throws RemoteException, CreateException;\n}",
"public interface InternalEntity {\n\t/**\n\t * Returns true if the entity should be visible in the entities view.\n\t * \n\t * @return\n\t */\n\tboolean isVisible();\n}",
"public interface AGenerarReciboLocalHome extends javax.ejb.EJBLocalHome {\n\t\n\tpublic static final String JNDI_NAME = \"ejb/co/com/telefonica/atiempo/vpistbba/actividades/df/configuracion/ejb/sb/AGenerarReciboLocalHome\";\n\t\n\t/**\n\t * Creates a default instance of Session Bean: AGenerarRecibo\n\t */\n\tpublic co.com.telefonica.atiempo.vpistbba.actividades.df.configuracion.ejb.sb.AGenerarReciboLocal create()\n\t\tthrows javax.ejb.CreateException;\n}",
"public void setUp() {\n entity = new Entity(BaseCareerSet.FIGHTER);\n }",
"@Override\r\n public void testGettingEntityManager() { debug(\"overriddenTestGettingEntityManager - noop\"); }",
"public interface ITestAuthorsService extends IBaseEntityManager<TestAuthors> {\n}",
"public interface EJBControllerLocalHome extends EJBLocalHome {\n public EJBControllerLocal create() \n throws CreateException;\n}",
"@Test\n public void getEmpleadoTest() {\n EmpleadoEntity entity = data.get(0);\n EmpleadoEntity resultEntity = empleadoLogic.getEmpleado(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNombreEmpleado(), resultEntity.getNombreEmpleado());\n Assert.assertEquals(entity.getNombreUsuario(), resultEntity.getNombreUsuario());\n }",
"@Local\r\npublic interface PrepaSalaireManagerLocal\r\n extends PrepaSalaireManager\r\n{\r\n\r\n\r\n}",
"public interface Entity {\n}",
"@Test\n\tpublic void testGetTableNameByEntity(){\n\t\t;\n\t}",
"@Test\n public void testGetHospedaje() {\n HospedajeEntity hospedaje = new HospedajeEntity();\n hospedaje.setId(new Long(23));\n HospedajeLugarEntity hospedajeL = new HospedajeLugarEntity();\n hospedajeL.setHospedaje(hospedaje);\n Assert.assertTrue(hospedajeL.getHospedaje().getId().equals(hospedaje.getId()));\n }",
"@Local\r\npublic interface EltSalaireDAOLocal\r\n extends EltSalaireDAO\r\n{\r\n\r\n\r\n}",
"public interface SimpleLogRemote extends javax.ejb.EJBObject, com.arexis.mugen.simplelog.SimpleLogRemoteBusiness {\n \n \n}",
"public ExpertiseEntity() {\n }",
"@Test\r\n public void testExistingEmf() {\r\n debug(\"testExistingEmf\");\r\n this.emf = initialEmf; \r\n super.testGettingEntityManager();\r\n super.testPersisting();\r\n super.testFinding();\r\n super.testQuerying();\r\n super.testGettingMetamodel();\r\n this.emf = null; \r\n }",
"public interface TestService extends ISimpleTableService<Test>{\n public String test();\n\n public List<Test> findAll();\n}",
"TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }",
"@BeforeEach\n void init() {\n\n EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(\"pu\");\n employeeDao = new EmployeeDao(entityManagerFactory);\n\n\n }",
"public interface CfgDocumentHome extends javax.ejb.EJBHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: CfgDocument\n\t */\n\t/*\n\tpublic com.hps.july.persistence.CfgDocument create(\n\t\tint document,\n\t\tcom.hps.july.persistence.Organization argOwner,\n\t\tcom.hps.july.persistence.StoragePlace argTo,\n\t\tcom.hps.july.persistence.Organization argContragent,\n\t\tcom.hps.july.persistence.StoragePlace argFrom,\n\t\tcom.hps.july.persistence.Worker argStorageManager)\n\t\tthrows javax.ejb.CreateException, java.rmi.RemoteException;\n\t*/\n\t/**\n\t * Finds an instance using a key for Entity Bean: CfgDocument\n\t */\n\tpublic com.hps.july.persistence.CfgDocument findByPrimaryKey(\n\t\tcom.hps.july.persistence.DocumentKey primaryKey)\n\t\tthrows javax.ejb.FinderException, java.rmi.RemoteException;\n\t\t\n\tpublic com.hps.july.persistence.CfgDocument create(\n\t\tint argDocument,\n\t\tInteger argOwner,\n\t\tInteger argFrom,\n\t\tInteger argTo,\n\t\tjava.sql.Date argBlankDate,\n\t\tint argBlankindex,\n\t\tString argBlankNumber,\n\t\tString argState,\n\t\tBoolean argProcessSource,\n\t\tBoolean argProcessDestination,\n\t\tint SavconfigIdOld,\n\t\tint SavconfigIdNew)\n\t\tthrows javax.ejb.CreateException, java.rmi.RemoteException;\n}",
"public interface EntityContext extends EJBContext\n{\n /**\n * Obtain a reference to the EJB local object that is currently \n * associated with the instance.\n *\n * <p> An instance of an entity enterprise Bean can call this method only\n * when the instance is associated with an EJB local object identity, i.e.\n * in the ejbActivate, ejbPassivate, ejbPostCreate, ejbRemove,\n * ejbLoad, ejbStore, and business methods.\n *\n * <p> An instance can use this method, for example, when it wants to\n * pass a reference to itself in a method argument or result.\n *\n * @return The EJB local object currently associated with the instance.\n *\n * @exception IllegalStateException if the instance invokes this\n * method while the instance is in a state that does not allow the\n * instance to invoke this method, or if the instance does not have\n * a local interface.\n */\n EJBLocalObject getEJBLocalObject() throws IllegalStateException;\n\n /**\n * Obtain a reference to the EJB object that is currently associated with \n * the instance.\n *\n * <p> An instance of an entity enterprise Bean can call this method only\n * when the instance is associated with an EJB object identity, i.e.\n * in the ejbActivate, ejbPassivate, ejbPostCreate, ejbRemove,\n * ejbLoad, ejbStore, and business methods.\n *\n * <p> An instance can use this method, for example, when it wants to\n * pass a reference to itself in a method argument or result.\n *\n * @return The EJB object currently associated with the instance.\n *\n * @exception IllegalStateException Thrown if the instance invokes this\n * method while the instance is in a state that does not allow the\n * instance to invoke this method, or if the instance does not have\n * a remote interface.\n */\n EJBObject getEJBObject() throws IllegalStateException;\n\n /**\n * Obtain the primary key of the EJB object that is currently\n * associated with this instance.\n *\n * <p> An instance of an entity enterprise Bean can call this method only\n * when the instance is associated with an EJB object identity, i.e.\n * in the ejbActivate, ejbPassivate, ejbPostCreate, ejbRemove,\n * ejbLoad, ejbStore, and business methods.\n *\n * <p><b>Note</b>: The result of this method is that same as the\n * result of getEJBObject().getPrimaryKey().\n *\n * @return The primary key currently associated with the instance.\n *\n * @exception IllegalStateException Thrown if the instance invokes this\n * method while the instance is in a state that does not allow the\n * instance to invoke this method.\n */\n Object getPrimaryKey() throws IllegalStateException;\n}",
"public interface AdminMainEntity {\n\n public static final String MAIN_ENTITY_NAME_PROPERTY = \"__adminMainEntity\";\n\n public String getMainEntityName();\n\n}",
"protected void entityInit() {}",
"@Test\n public void testNewEntity_0args() {\n // newEntity() is not implemented!\n }",
"@Local\npublic interface Horario_DisponibleFacadeLocal {\n\n /**\n * Crea el horario disponible que llega como parámetro\n * @param horario_Disponible Horario disponible a crear\n */\n void create(Horario_Disponible horario_Disponible);\n\n /**\n * Edita el horario disponible que llega como parámetro\n * @param horario_Disponible Horario disponible a editar\n */\n void edit(Horario_Disponible horario_Disponible);\n\n /**\n * Elimina el horario disponible que llega como parámetro\n * @param horario_Disponible Horario disponible a eliminar\n */\n void remove(Horario_Disponible horario_Disponible);\n\n /**\n * Retorna el horario disponible cuyo id llega como parámetro\n * @param id Id del horario disponible\n * @return horario disponible cuyo id es el que llega como parámetro\n */\n Horario_Disponible find(Object id);\n\n /**\n * Retorna una lista con todos los horarios disponibles\n * @return lista de horarios disponibles\n */\n List<Horario_Disponible> findAll();\n\n /**\n * Retorna el horario disponible cuyo código llega como parámetro\n * @param codigo Código del horario disponible\n * @return horario disponible cuyo código es el que llega como parámetro\n */\n Horario_Disponible findByCodigoEstudiante(String codigo);\n}",
"@Local\npublic interface TipoRelacionFacadeLocal {\n\n void create(TipoRelacion tipo);\n\n void edit(TipoRelacion tipo);\n\n void remove(TipoRelacion tipo);\n\n TipoRelacion find(Object id);\n\n List<TipoRelacion> findAll();\n\n List<TipoRelacion> findRange(int[] range);\n\n int count();\n\n List<TipoRelacion> findAllInOrderByNameAsc();\n}",
"@Local\r\npublic interface MatiereDltManagerLocal\r\n extends MatiereDltManager\r\n{\r\n\r\n\r\n}",
"@Test\n public void others(){\n Item item = itemService.getItem(50);\n System.out.println(item);\n\n }",
"@Local\npublic interface UserTableDao {\n\n public UserTable getForUsername(String username);\n\n public void createUser(UserTable user);\n \n public void deleteUsers();\n}",
"public interface AEntityProperty {\n}",
"@Test\n public void testEffectEntity() {\n // TODO: test EffectEntity\n }",
"public interface EnterpriseService extends GenericManager<Enterprise> {\n\n public Result saveEnterprise(Enterprise enterprise);\n\n}",
"@Local\npublic interface IGestionarUsuarioBean {\n\n\t\n\t/**\n\t * \n\t * Metodo encargado de crear un usuario y persistirlo\n\t * \n\t * @author ccastano\n\t * \n\t * @param comicNuevo informacion nueva a crear\n\t */\n\tpublic ResultadoDTO crearUsuario(UsuarioDTO UsuarioDTO)throws EntityExistsException, IllegalArgumentException;\n\n\t/**\n\t * \n\t * Metodo encargado de consultar un usuari o modificar su nombre y guardarlo\n\t * \n\t * @author ccastano\n\t * \n\t * @param comicModificar informacion nueva a modificar\n\t */\n\tpublic ResultadoDTO modificarUsuario(String id, String nombre, UsuarioDTO usuarioDTO)throws IllegalArgumentException;\n\n\t/**\n\t * \n\t * Metodo encargado de eliminar un afiliado modificarlo y guardarlo\n\t * \n\t * @author ccastano\n\t * \n\t * @param comicEliminar informacion a eliminar\n\t */\n\tpublic void ponerUsuarioInactivo(String idUsuario);\n\n\t/**\n\t * \n\t * Metodo encargado de retornar la informacion de un usuario\n\t * \n\t * @param idUsuario identificador del usuarioo a ser consultado\n\t * @return usuario Resultado de la consulta\n\t * @throws Exception si no se recibe idComic\n\t */\n\tpublic UsuarioDTO consultarUsuario(String idAfiliado);\n\n\t/**\n\t * \n\t * Metodo encargado de retornar una lista de usuarios\n\t * \n\t * @return\n\t */\n\tpublic List<UsuarioDTO> consultarUsuarios();\n\t\n\t/**\n\t * metodo encargado de validar fecha de ingreso\n\t * @param fechaIngresada\n\t * @return true si es una fecha valida, flase de lo contrario\n\t */\n\tpublic Boolean validarFecha(LocalDate fechaIngresada);\n\t\n\t/**\n\t * metodo encargado de validar si un usuario esta activo\n\t * @param idUsuario\n\t * @return true si el usuario esta activo , false de lo contrario\n\t */\n\tpublic Boolean validarUsuarioActivo(String idUsuario);\n\t\n\t\n}",
"@Override\n protected void createTestBean() {\n ProjectStatusDAOBean bean = new ProjectStatusDAOBean();\n bean.setEntityManager(getEntityManager());\n setTestBean(bean);\n }",
"protected void setUp() \r\n {\n System.out.println(\"Setting up User Test !\");\r\n \t//lProps = new Properties();\t\r\n //lProps.put(Context.INITIAL_CONTEXT_FACTORY,lContextFactory);\r\n //lProps.put(Context.PROVIDER_URL,lURL);\r\n //lProps.put(Context.URL_PKG_PREFIXES,lPrefixes);\r\n try\r\n {\r\n lProps.list(System.out);\r\n lIC = new InitialContext(lProps);\r\n //sLog.debug(\"Created Initial Context\");\r\n System.out.println(\"Created Initial Context-looking for UserHome\");\r\n Object homeObj = lIC.lookup(lJndiName);\r\n System.out.println(\"got Object!\");\r\n lHome = (UserHome) PortableRemoteObject.narrow(homeObj,UserHome.class); \r\n \r\n //lSessionHome = (PJVTProducerSessionHome) lIC.lookup(lJndiName);\r\n \r\n System.out.println(\"User Home:\"+lHome.toString());\r\n \r\n }\r\n catch(Throwable t)\r\n {\r\n t.printStackTrace();\r\n }\r\n\t}",
"@Local\r\npublic interface CiviliteManagerLocal\r\n extends CiviliteManager\r\n{\r\n\r\n\r\n}",
"@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }",
"@Remote\r\npublic interface EquCTechnoAttributeFacadeRemote {\r\n\t\r\n\tpublic void save(EquCTechnoAttribute entity);\r\n\r\n\tpublic void delete(EquCTechnoAttribute entity);\r\n\r\n\t\r\n\tpublic EquCTechnoAttribute update(EquCTechnoAttribute entity);\r\n\r\n\tpublic EquCTechnoAttribute findById(Long id);\r\n\r\n\r\n\t\r\n\tpublic List<EquCTechnoAttribute> findAll(int... rowStartIdxAndCount);\r\n}",
"@Local\npublic interface PainterServiceBeanLocal {\n\n \n // ---------------- Create ------------------\n /**\n * Persists new Painter in the DB\n *\n * @param painter new Painter Entity class\n */\n public void createPainter(Painter painter);\n\n // ------------------- Retrieve -------------------\n /**\n * Finds and returns Painter by its ID\n *\n * @param id - PK of the Object being searched\n * @return found Painter Entity\n */\n public Painter findPainter(Integer id) throws NullPointerException;\n\n // ------------------- Update ---------------------\n /**\n * Updates ae entity by merging passing parameter if detached\n *\n * @param painter Painter to update\n * @throws IllegalArgumentException when the entity has not been found\n */\n public void updatePainter(Painter painter);\n // ------------------- Delete ---------------------\n /**\n * Deletes a passed Paitner from DB\n *\n * @param id of the Painter to be deleted\n * @throws IllegalArgumentException when the entity has not been found in the DB\n */\n public void removePainter(Integer id);\n\n /**\n * assigns a Painting to a Painter\n *\n * @param findPainterById id of the Painter of the Painting\n * @param painting Painting to be assigned\n */\n void assignPainting(Painter findPainterById, Painting painting);\n\n /**\n * assigns a Painting to a Painter\n *\n * @param chosenId id of the Painter of the Painting\n * @param id id of the Painting to be assigned\n */\n void assignPainting(int chosenId, Integer id);\n \n \n /**\n * Finds all Painters stored in the DB\n *\n * @return list of painters persisted\n */\n public List<Painter> findAllPainters();\n\n /**\n * Finds all painter's id in the DB\n *\n * @return list of all IDs\n */\n public List<Integer> findAllPaintersId();\n}",
"@Override\n @Before\n public void setUp() throws Exception {\n super.setUp();\n\n entityManager = getEntityManager();\n\n logger = Logger.getLogger(getClass());\n\n instance = new UserServiceImpl();\n TestsHelper.setField(instance, \"logger\", logger);\n TestsHelper.setField(instance, \"entityManager\", entityManager);\n TestsHelper.setField(instance, \"supervisorRoleName\", supervisorRoleName);\n TestsHelper.setField(instance, \"adminRoleName\", adminRoleName);\n }",
"protected void setUp() throws Exception {\n super.setUp();\n\n TestHelper.loadConfiguration(\"config-InvoiceManagerDelegate.xml\");\n\n MockContextFactory.setAsInitial();\n\n context = new InitialContext();\n\n // creates an instance of the MockContainer\n MockContainer mockContainer = new MockContainer(context);\n\n MockUserTransaction mockTransaction = new MockUserTransaction();\n context.rebind(\"javax.transaction.UserTransaction\", mockTransaction);\n\n // creates deployment descriptor of our sample bean. MockEjb does not support XML descriptors.\n SessionBeanDescriptor invoiceManagerLocalDescriptor =\n new SessionBeanDescriptor(\"invoiceSessionBean\", InvoiceManagerLocalHome.class,\n InvoiceManagerLocal.class, InvoiceSessionBean.class);\n // Deploy operation simply creates Home and binds it to JNDI\n mockContainer.deploy(invoiceManagerLocalDescriptor);\n\n InvoiceManagerLocalHome sampleHome = (InvoiceManagerLocalHome) context.lookup(\"invoiceSessionBean\");\n\n InvoiceManagerLocal sampleService = sampleHome.create();\n\n invoiceSessionBean = (InvoiceSessionBean) ((EjbBeanAccess) sampleService).getBean();\n\n }",
"@Local\r\npublic interface BonLivraisonManagerLocal\r\n extends BonLivraisonManager\r\n{\r\n\r\n\r\n}",
"@Remote\npublic interface PassengerStatefulEJBRemote {\n\n Passenger getPassenger();\n void createPassengers(String ssn, String firstName, String lastName, Integer frequentFlyerMiles, byte[] picture, Date dateOfBirth, PassengerType passengerType, Date lastFlight);\n void pickPassenger(long id);\n void setAddress(Address address);\n void addCreditCard(CreditCard creditCard);\n void addTicket(double price, Status status);\n void checkOut();\n}",
"public abstract co.com.telefonica.atiempo.ejb.eb.EmpresaLocal getEmpresa();",
"@Local\npublic interface IndirizzoFacadeLocal {\n\n void create(Indirizzo indirizzo);\n\n void edit(Indirizzo indirizzo);\n\n void remove(Indirizzo indirizzo);\n\n Indirizzo find(Object id);\n\n List<Indirizzo> findAll();\n\n /** Restituisce tutte le stringe \"citta\" che iniziano con il parametro\n * @param subCitta la stringa da cercare\n * @return una lista di stringhe che rappresentano i nomi delle citta presenti su db\n */\n public List<String> getCitta(String subCitta);\n\n /** carica tutti i nomi della città presenti nel database\n * @return la lista dei nomi delle città sotto forma di String\n */\n public java.util.List<java.lang.String> getCitta();\n\n}",
"@Remote\r\npublic interface HrCStatitemFacadeRemote {\r\n\t/**\r\n\t * Perform an initial save of a previously unsaved HrCStatitem entity. All\r\n\t * subsequent persist actions of this entity should use the #update()\r\n\t * method.\r\n\t * \r\n\t * @param entity\r\n\t * HrCStatitem entity to persist\r\n\t * @throws RuntimeException\r\n\t * when the operation fails\r\n\t */\r\n\tpublic void save(HrCStatitem entity);\r\n\r\n\t/**\r\n\t * Delete a persistent HrCStatitem entity.\r\n\t * \r\n\t * @param entity\r\n\t * HrCStatitem entity to delete\r\n\t * @throws RuntimeException\r\n\t * when the operation fails\r\n\t */\r\n\tpublic void delete(HrCStatitem entity);\r\n\r\n\t/**\r\n\t * Persist a previously saved HrCStatitem entity and return it or a copy of\r\n\t * it to the sender. A copy of the HrCStatitem entity parameter is returned\r\n\t * when the JPA persistence mechanism has not previously been tracking the\r\n\t * updated entity.\r\n\t * \r\n\t * @param entity\r\n\t * HrCStatitem entity to update\r\n\t * @return HrCStatitem the persisted HrCStatitem entity instance, may not be\r\n\t * the same\r\n\t * @throws RuntimeException\r\n\t * if the operation fails\r\n\t */\r\n\tpublic HrCStatitem update(HrCStatitem entity);\r\n\r\n\tpublic HrCStatitem findById(Long id);\r\n\r\n\t/**\r\n\t * Find all HrCStatitem entities with a specific property value.\r\n\t * \r\n\t * @param propertyName\r\n\t * the name of the HrCStatitem property to query\r\n\t * @param value\r\n\t * the property value to match\r\n\t * @return List<HrCStatitem> found by query\r\n\t */\r\n\tpublic List<HrCStatitem> findByProperty(String propertyName, Object value);\r\n\r\n\t/**\r\n\t * Find all HrCStatitem entities.\r\n\t * \r\n\t * @return List<HrCStatitem> all HrCStatitem entities\r\n\t */\r\n\tpublic List<HrCStatitem> findAll();\r\n\r\n\t/**\r\n\t * 获得考勤合计项信息\r\n\t * \r\n\t * @param enterpriseCode\r\n\t * 企业编码\r\n\t * @param rowStartIdxAndCount\r\n\t * @return PageObject\r\n\t * @throws SQLException\r\n\t */\r\n\tpublic PageObject getStatItemList(String enterpriseCode,\r\n\t\t\tfinal int... rowStartIdxAndCount);\r\n\r\n\t/**\r\n\t * 通过合计项类型code获得合计项名称list\r\n\t * \r\n\t * @param enterpriseCode\r\n\t * @param typeCode\r\n\t * @return PageObject\r\n\t */\r\n\tpublic PageObject getStatNameList(String enterpriseCode, String typeCode);\r\n}",
"@Override\r\n public void createNewEntity(String entityName) {\n\r\n }",
"public interface TestSpace extends SecureTestEntity\n{\n /**\n * @return a reference to the space represented by this test entity.\n */\n SpaceReference getSpaceReference();\n\n /**\n * Retrieve a test entity representing a document in this space.\n * @param name name of the document.\n * @return a test document entity if found, null otherwise.\n */\n TestDocument getDocument(String name);\n\n /**\n * Retrieve a test entity representing a document in this space.\n * @param reference reference to a document.\n * @return a test document entity if found, null otherwise.\n */\n TestDocument getDocument(DocumentReference reference);\n\n /**\n * @return a collection of all test entities representing documents in this space.\n */\n Collection<TestDocument> getDocuments();\n\n /**\n * @return the alternate description for this test document.\n */\n String getDescription();\n}",
"@Override\n\tpublic void testEngine() {\n\t\t\n\t}",
"public interface Pie2NriHome extends javax.ejb.EJBHome {\ncom.hps.july.arenda.billing.Pie2Nri create() throws javax.ejb.CreateException, java.rmi.RemoteException;\n}",
"public interface Mensaje_SMS_ACSLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * Get accessor for persistent attribute: id\n\t */\n\tpublic java.lang.Long getId();\n\t/**\n\t * Set accessor for persistent attribute: id\n\t */\n\tpublic void setId(java.lang.Long newId);\n\t/**\n\t * Get accessor for persistent attribute: xml\n\t */\n\tpublic java.lang.String getXml();\n\t/**\n\t * Set accessor for persistent attribute: xml\n\t */\n\tpublic void setXml(java.lang.String newXml);\n\t/**\n\t * Get accessor for persistent attribute: peti_numero\n\t */\n\tpublic java.lang.Long getPeti_numero();\n\t/**\n\t * Set accessor for persistent attribute: peti_numero\n\t */\n\tpublic void setPeti_numero(java.lang.Long newPeti_numero);\n\t/**\n\t * Get accessor for persistent attribute: fecha_envio\n\t */\n\tpublic java.sql.Timestamp getFecha_envio();\n\t/**\n\t * Set accessor for persistent attribute: fecha_envio\n\t */\n\tpublic void setFecha_envio(java.sql.Timestamp newFecha_envio);\n\t/**\n\t * Get accessor for persistent attribute: usuario\n\t */\n\tpublic java.lang.String getUsuario();\n\t/**\n\t * Set accessor for persistent attribute: usuario\n\t */\n\tpublic void setUsuario(java.lang.String newUsuario);\n}",
"public void testGetDataForInheritance()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tspecimen.addAbstractAttribute(label);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\tAttributeInterface arivalDate = factory.createDateAttribute();\r\n\t\t\tarivalDate.setName(\"arivalDate\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(arivalDate);\r\n\r\n\t\t\t//step 2\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenA = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenA.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenA.setName(\"advanceTissueSpecimenA\");\r\n\r\n\t\t\tAttributeInterface newAttribute = factory.createIntegerAttribute();\r\n\t\t\tnewAttribute.setName(\"newAttributeA\");\r\n\t\t\tadvanceTissueSpecimenA.addAbstractAttribute(newAttribute);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenB = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenB.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenB.setName(\"advanceTissueSpecimenB\");\r\n\r\n\t\t\tAttributeInterface newAttributeB = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB.setName(\"newAttributeB\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB);\r\n\t\t\tAttributeInterface newAttributeB2 = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB2.setName(\"newAttributeB2\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB2);\r\n\r\n\t\t\tadvanceTissueSpecimenA = entityManagerInterface.persistEntity(advanceTissueSpecimenA);\r\n\t\t\tadvanceTissueSpecimenB = entityManagerInterface.persistEntity(advanceTissueSpecimenB);\r\n\r\n\t\t\t/*\r\n\t\t\t * Test getData method\r\n\t\t\t */\r\n\r\n\t\t\t//step 3\t\t\t\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(barcode, \"123456\");\r\n\t\t\tdataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-12-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\r\n\t\t\tLong recordId = entityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\tMap outputMap = entityManagerInterface.getRecordById(tissueSpecimen, recordId);\r\n\r\n\t\t\t//step 4\t\r\n\t\t\tassertEquals(4, outputMap.size());\r\n\t\t\tassertEquals(\"123456\", outputMap.get(barcode));\r\n\t\t\tassertEquals(\"specimen parent label\", outputMap.get(label));\r\n\t\t\tassertEquals(\"45\", outputMap.get(quantityInCellCount));\r\n\t\t\tassertEquals(\"11-12-1982\", outputMap.get(arivalDate));\r\n\r\n\t\t\t//step 5\t\r\n\t\t\tdataValue.clear();\r\n\t\t\tdataValue.put(barcode, \"869\");\r\n\t\t\tdataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"46\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-11-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\t\t\tdataValue.put(newAttribute, \"12\");\r\n\r\n\t\t\trecordId = entityManagerInterface.insertData(advanceTissueSpecimenA, dataValue);\r\n\r\n\t\t\toutputMap = entityManagerInterface.getRecordById(advanceTissueSpecimenA, recordId);\r\n\t\t\t//step 6\t\t\t\r\n\t\t\tassertEquals(5, outputMap.size());\r\n\t\t\tassertEquals(\"869\", outputMap.get(barcode));\r\n\t\t\tassertEquals(\"specimen parent label\", outputMap.get(label));\r\n\t\t\tassertEquals(\"46\", outputMap.get(quantityInCellCount));\r\n\t\t\tassertEquals(\"11-11-1982\", outputMap.get(arivalDate));\r\n\r\n\t\t\t//step 7\t\t\t\t\r\n\t\t\tdataValue.clear();\r\n\t\t\tdataValue.put(barcode, \"1001\");\r\n\t\t\tdataValue.put(label, \"specimen parent label new\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"411\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"01-11-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\t\t\tdataValue.put(newAttributeB, \"40\");\r\n\t\t\tdataValue.put(newAttributeB2, \"41\");\r\n\r\n\t\t\trecordId = entityManagerInterface.insertData(advanceTissueSpecimenB, dataValue);\r\n\t\t\toutputMap = entityManagerInterface.getRecordById(advanceTissueSpecimenB, recordId);\r\n\t\t\t//step 8\t\t\t\t\r\n\t\t\tassertEquals(6, outputMap.size());\r\n\t\t\tassertEquals(\"1001\", outputMap.get(barcode));\r\n\t\t\tassertEquals(\"specimen parent label new\", outputMap.get(label));\r\n\t\t\tassertEquals(\"411\", outputMap.get(quantityInCellCount));\r\n\t\t\tassertEquals(\"01-11-1982\", outputMap.get(arivalDate));\r\n\t\t\tassertEquals(\"40\", outputMap.get(newAttributeB));\r\n\t\t\tassertEquals(\"41\", outputMap.get(newAttributeB2));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"private AdminEntity() {\n \tsuper();\n\n this.emf = Persistence.createEntityManagerFactory(\"entityManager\");\n\tthis.em = this.emf.createEntityManager();\n\tthis.tx = this.em.getTransaction();\n }",
"public EntityFactoryImpl() {\n\t\tsuper();\n\t}",
"@Local\r\npublic interface AddressFacadeLocal {\r\n\t/**\r\n\t * Perform an initial save of a previously unsaved Address entity. All\r\n\t * subsequent persist actions of this entity should use the #update()\r\n\t * method.\r\n\t * \r\n\t * @param entity\r\n\t * Address entity to persist\r\n\t * @throws RuntimeException\r\n\t * when the operation fails\r\n\t */\r\n\tpublic void save(Address entity);\r\n\r\n\t/**\r\n\t * Delete a persistent Address entity.\r\n\t * \r\n\t * @param entity\r\n\t * Address entity to delete\r\n\t * @throws RuntimeException\r\n\t * when the operation fails\r\n\t */\r\n\tpublic void delete(Address entity);\r\n\r\n\t/**\r\n\t * Persist a previously saved Address entity and return it or a copy of it\r\n\t * to the sender. A copy of the Address entity parameter is returned when\r\n\t * the JPA persistence mechanism has not previously been tracking the\r\n\t * updated entity.\r\n\t * \r\n\t * @param entity\r\n\t * Address entity to update\r\n\t * @return Address the persisted Address entity instance, may not be the\r\n\t * same\r\n\t * @throws RuntimeException\r\n\t * if the operation fails\r\n\t */\r\n\tpublic Address update(Address entity);\r\n\r\n\tpublic Address findById(Integer id);\r\n\r\n\t/**\r\n\t * Find all Address entities with a specific property value.\r\n\t * \r\n\t * @param propertyName\r\n\t * the name of the Address property to query\r\n\t * @param value\r\n\t * the property value to match\r\n\t * @return List<Address> found by query\r\n\t */\r\n\tpublic List<Address> findByProperty(String propertyName, Object value);\r\n\r\n\tpublic List<Address> findByAddrStreet1(Object addrStreet1);\r\n\r\n\tpublic List<Address> findByAddrStreet2(Object addrStreet2);\r\n\r\n\tpublic List<Address> findByAddrCity(Object addrCity);\r\n\r\n\tpublic List<Address> findByAddrState(Object addrState);\r\n\r\n\tpublic List<Address> findByAddrZip(Object addrZip);\r\n\r\n\tpublic List<Address> findByAddrCoId(Object addrCoId);\r\n\r\n\t/**\r\n\t * Find all Address entities.\r\n\t * \r\n\t * @return List<Address> all Address entities\r\n\t */\r\n\tpublic List<Address> findAll();\r\n\r\n\tpublic int enterAddress(String street1, String street2, String city,\r\n\t\t\tString state, String zip, String country);\r\n\r\n\t/**\r\n\t * return id of all addresses\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic List getAllIds();\r\n}",
"@Test\r\n public void testCreate() throws Exception {\r\n PodamFactory pf=new PodamFactoryImpl();\r\n MonitoriaEntity nuevaEntity=pf.manufacturePojo(MonitoriaEntity.class);\r\n MonitoriaEntity respuestaEntity=persistence.create(nuevaEntity);\r\n Assert.assertNotNull(respuestaEntity);\r\n Assert.assertEquals(respuestaEntity.getId(), nuevaEntity.getId());\r\n Assert.assertEquals(respuestaEntity.getIdMonitor(), nuevaEntity.getIdMonitor());\r\n Assert.assertEquals(respuestaEntity.getTipo(), nuevaEntity.getTipo());\r\n \r\n \r\n }",
"@Test\n public void testGetEntityManager() {\n System.out.println(\"getEntityManager\");\n DaftarPengguna instance = new DaftarPengguna();\n EntityManager expResult = null;\n EntityManager result = instance.getEntityManager();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Local\r\npublic interface RoleFacadeLocal extends GeneralFacadeLocal<Role> {\r\n}",
"@Test\n public void testSetHospedaje() {\n HospedajeEntity hospedaje = new HospedajeEntity();\n hospedaje.setId(new Long(23));\n HospedajeLugarEntity hospedajeL = new HospedajeLugarEntity();\n hospedajeL.setHospedaje(hospedaje);\n Assert.assertTrue(hospedajeL.getHospedaje().getId().equals(hospedaje.getId()));\n }",
"public interface ITestJtaBiz {\n void insert(int id);\n}",
"@Test\n public void testGetEmf() {\n System.out.println(\"getEmf\");\n DaftarPengguna instance = new DaftarPengguna();\n EntityManagerFactory expResult = null;\n EntityManagerFactory result = instance.getEmf();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Local\r\npublic interface EventManagerLocal\r\n extends EventManager\r\n{\r\n\r\n\r\n}",
"@Local\npublic interface DbQueryBeanLocal {\n\n /**\n * Получить название профиля койки\n *\n * @param action\n * @return\n */\n String getBedProfileName(final Action action);\n\n\n /**\n * Кол-во госпитализаций в текущем году с данным диагнозом\n */\n long countAdmissionsThisYear(final Event event, final Diagnosis diagnosis);\n\n}",
"@Local\r\npublic interface ResourceRegistryDAOLocal\r\n extends ResourceRegistryDAO\r\n{\r\n\r\n\r\n}",
"@Test\n public void testGetItens() throws Exception {\n System.out.println(\"getItens\");\n Integer idOfOrcamento = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n List<Orcamentoitem> expResult = null;\n List<Orcamentoitem> result = instance.getItens(idOfOrcamento);\n assertEquals(expResult, result);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }",
"@Override\n\tpublic void initEntity() {\n\n\t}",
"public interface CatalogEntity {\r\n}",
"@Local\npublic interface CategoriaFacade {\n\n public void create(Categoria entity);\n\n public void edit(Categoria entity);\n\n public void remove(Categoria entity);\n\n public Categoria find(Object id);\n\n public List<Categoria> findAll();\n\n public List<Categoria> findRange(int[] range);\n\n public int count();\n}",
"public interface OIMBizLocal {\n \n public void localOp();\n \n public void processEvent(BusinessEvent event);\n}"
] | [
"0.671022",
"0.66476756",
"0.6635967",
"0.6620837",
"0.66038007",
"0.65720546",
"0.6566546",
"0.6505217",
"0.64540416",
"0.63923454",
"0.63433033",
"0.6323491",
"0.6286878",
"0.6280265",
"0.6270845",
"0.6199704",
"0.6186709",
"0.61557525",
"0.613579",
"0.6123724",
"0.6089756",
"0.6049036",
"0.60458004",
"0.60402644",
"0.6031956",
"0.60261667",
"0.60029036",
"0.5985354",
"0.598441",
"0.5967803",
"0.59547585",
"0.5928419",
"0.59159493",
"0.59019625",
"0.58736193",
"0.5870176",
"0.5821458",
"0.5820884",
"0.58052254",
"0.58048326",
"0.58021533",
"0.5770697",
"0.57621956",
"0.576108",
"0.5738337",
"0.57310754",
"0.57102275",
"0.5705339",
"0.5701776",
"0.5695158",
"0.5686892",
"0.5662732",
"0.5661498",
"0.565213",
"0.56371874",
"0.5631509",
"0.5624196",
"0.5623117",
"0.5612715",
"0.5612267",
"0.5612178",
"0.5605807",
"0.56044376",
"0.5604281",
"0.55963147",
"0.5586205",
"0.55797875",
"0.557881",
"0.5577735",
"0.5573728",
"0.5568153",
"0.5556577",
"0.5546452",
"0.5545374",
"0.5541384",
"0.5540731",
"0.5530001",
"0.55236673",
"0.5523195",
"0.5516595",
"0.55157334",
"0.551477",
"0.55020654",
"0.5499381",
"0.54964375",
"0.5492576",
"0.54861313",
"0.54839647",
"0.5483495",
"0.5470139",
"0.5469474",
"0.5463556",
"0.54534286",
"0.5452462",
"0.5449336",
"0.54474324",
"0.5442155",
"0.5440545",
"0.54375035",
"0.54365957"
] | 0.78037757 | 0 |
Created by vgusev on 14.04.2016. | public interface DocumentParameterRepository extends JpaRepository<DocumentParameterEntity, Long> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\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}",
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"private void init() {\n\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"private void poetries() {\n\n\t}",
"private void kk12() {\n\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n protected void initialize() \n {\n \n }",
"public void gored() {\n\t\t\n\t}",
"public void mo6081a() {\n }",
"@Override\n public void init() {}",
"private void m50366E() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\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\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\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}",
"@Override\r\n\tpublic void init() {}",
"@Override\n protected void init() {\n }",
"@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}",
"private void strin() {\n\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"Petunia() {\r\n\t\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n public void memoria() {\n \n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"private void init() {\n\n\n\n }",
"static void feladat4() {\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public Pitonyak_09_02() {\r\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n protected void getExras() {\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"protected void mo6255a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"public void mo55254a() {\n }",
"@Override\n\tprotected void initialize() {\n\t}"
] | [
"0.5896068",
"0.58895266",
"0.5670302",
"0.56325",
"0.5565991",
"0.5556839",
"0.5527284",
"0.5527284",
"0.55244744",
"0.5476952",
"0.54709053",
"0.54530734",
"0.5447845",
"0.5443813",
"0.54280734",
"0.54201615",
"0.5415817",
"0.54106694",
"0.54106694",
"0.54106694",
"0.54106694",
"0.54106694",
"0.54071647",
"0.54071647",
"0.5400926",
"0.5398991",
"0.5392532",
"0.5390172",
"0.538927",
"0.53886706",
"0.5376107",
"0.53696567",
"0.5361724",
"0.5361724",
"0.5361724",
"0.5361724",
"0.5361724",
"0.5361724",
"0.53615624",
"0.53554195",
"0.53520167",
"0.53520167",
"0.53398454",
"0.5337404",
"0.53370345",
"0.53333133",
"0.5332849",
"0.532878",
"0.52971894",
"0.52963233",
"0.5296186",
"0.52957475",
"0.52957475",
"0.52942187",
"0.52942187",
"0.52942187",
"0.52942187",
"0.52942187",
"0.52942187",
"0.52942187",
"0.52918446",
"0.52918446",
"0.52918446",
"0.52889097",
"0.52833366",
"0.5271752",
"0.52706766",
"0.52650225",
"0.52600265",
"0.52600265",
"0.52600265",
"0.5258631",
"0.525333",
"0.52508134",
"0.52508134",
"0.52508134",
"0.52470505",
"0.52453345",
"0.52361166",
"0.5232741",
"0.5231704",
"0.52273244",
"0.5222075",
"0.5220766",
"0.52192473",
"0.5214684",
"0.52139366",
"0.5213722",
"0.5210109",
"0.5208449",
"0.5195799",
"0.5193588",
"0.5193046",
"0.5189203",
"0.518048",
"0.5177323",
"0.51691765",
"0.5166989",
"0.5165299",
"0.5149182",
"0.51489806"
] | 0.0 | -1 |
Inject fields of an activity. | @SafeVarargs
public static void inject(final Activity activity, final Bundle savedInstanceState, final Class<? extends Annotation>... annotationClasses) throws KerException {
// - Retrieve object's fields.
final Field[] objectFields = KerAnnotation.retrieveAllFields(activity);
// - For each annotations.
for (final Class<? extends Annotation> kerAnnotationClass : annotationClasses) {
AbstractKerInjector kerInjector;
try {
// - Retrieve it KerInjector.
kerInjector = KerAnnotation.retrieveKerInjector(kerAnnotationClass);
// - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector.
if (kerInjector.isInjectable(activity, savedInstanceState)) {
for (final Field field : objectFields) {
if (field.isAnnotationPresent(kerAnnotationClass)) {
try {
kerInjector.inject(field, activity, savedInstanceState);
} catch (final Throwable cause) {
throw new KerException("Unable to inject field " + field.getName() + " annotated with " + kerAnnotationClass.getName(), cause);
}
}
}
}
} catch (final Throwable cause) {
throw new KerException("Unable to inject fields annotated with " + kerAnnotationClass.getName(), cause);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void inject(BaseActivity baseActivity);",
"void inject(MainActivity activity);",
"ActivityFieldData(ActivityField field) {\n\t\t\tthis.field = field;\n\t\t}",
"void inject(NyNewsActivity activity);",
"public HField(HActivity act) {\n this.act = act;\n if (act != null) {\n act.fields.add(this);\n }\n }",
"void inject(HomeActivity activity);",
"void inject(MainActivity mainActivity);",
"void inject(SplashActivity activity);",
"private void injectViews() {\n Field[] declaredFields = getClass().getDeclaredFields();\n for (Field declaredField : declaredFields) {\n if(declaredField.isAnnotationPresent(InjectView.class)) {\n declaredField.setAccessible(true);\n try {\n declaredField.set(this, findViewById(declaredField.getAnnotation(InjectView.class).value()));\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"@ForActivity\n@Component(dependencies = ApplicationComponent.class, modules = ActivityModule.class)\npublic interface ActivityComponent {\n void inject(MainActivity activity);\n\n\n void inject(MainActivity.OtherClass otherClass);\n}",
"@PerActivity\n@Subcomponent(\n modules = ActivityModule.class\n)\npublic interface AppActivityComponent extends ActivityComponent {\n\n void inject(LoadDataActivity loadDataActivity);\n\n}",
"@PerActivity\n@Component(dependencies = AppComponent.class , modules = SettingPresenterModule.class)\npublic interface SettingActivityComponent {\n void inject(SettingActivity activity);\n}",
"private void initInjectedView(Activity activity) {\n\t\tinitInjectedView(activity,activity.getWindow().getDecorView());\n\t}",
"@PerActivity\n@Component(modules = DetailModule.class, dependencies = AppComponent.class)\npublic interface DetailComponent {\n\n void inject(DetailActivity detailActivity);\n\n}",
"@Override\n\tpublic void initContext(Activity act) {\n\t\tthis._activity = act;\n\t}",
"@PerActivity\n@Component(modules = ActivityModule.class)\npublic interface ActivityComponent {\n void inject(MainActivity mainActivity);\n void inject(ColorFragment colorFragment);\n}",
"@Module\npublic interface BindingActivityModule {\n\n @ContributesAndroidInjector(modules = {ActivityModule.class})\n @PerActivity\n MainActivity contributeMainActivity();\n}",
"@ActivityScope\n@Component(modules = ActivityModule.class, dependencies = AppComponent.class)\npublic interface ActivityComponent {\n Activity getActivity();\n\n void inject(LoginActivity loginActivity);\n\n void inject(PayActivity payActivity);\n\n}",
"@ActivityScope\n@Subcomponent(\n modules = {\n EditProfileActivityModule.class\n }\n)\npublic interface EditProfileActivityComponent {\n EditProfileActivity inject(EditProfileActivity activity);\n}",
"@ActivityScope\n@Component(dependencies = ApplicationComponent.class, modules = {ActivityModule.class})\npublic interface ActivityComponent {\n\n void inject(DisplayCountriesActivity mainActivity);\n}",
"@PerActivity\n@Component(dependencies = AppComponent.class , modules = ForgetPasswordPresenterModule.class)\npublic interface ForgetPasswordActivityComponent {\n void inject(ForgetPasswordActivity activity);\n}",
"@PerActivity\n@Component(dependencies = AppComponent.class , modules = RegisterPresenterModule.class)\npublic interface RegisterActivityComponent {\n void inject(RegisterActivity activity);\n}",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class,\n modules = {ActivityModule.class,\n })\npublic interface CameraComponent {\n void inject(CameraActivity cameraActivity);\n}",
"@PerActivity\n@Component(dependencies = AppComponent.class, modules = ActivityModule.class)\npublic interface ActivityComponent {\n void inject(IndexActivity indexActivity);\n\n void inject(ContentActivity contentActivity);\n}",
"@ActivityScope\n@Component(modules = InviteFriendModule.class, dependencies = AppComponent.class)\npublic interface InviteFriendComponent {\n\n void inject(InviteFriendActivity activity);\n}",
"@PerActivity\n@Component(modules = CakeModule.class, dependencies = ApplicationComponent.class)\npublic interface CakeComponent {\n\n void inject(MainActivity activity);\n\n}",
"@PerActivity\n@Component(modules = ExamplePresenterModule.class, dependencies = AppComponent.class)\ninterface ExampleComponent {\n\n void inject(ExampleActivity exampleActivity);\n}",
"protected abstract ActivityComponent setupComponent();",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class,\n modules = { MainModule.class, ActivityModule.class })\n\npublic interface ActivityComponent {\n\n void inject(MainActivity mainActivity);\n\n\n}",
"public AccountPresenter(AccountActivity activity) {\n\t\tsuper(activity);\n\t\tthis.activity = activity;\n\t}",
"@Override\n\tpublic void setActivity(Activity pAcitivity) {\n\n\t}",
"@PerActivity\n@Component(modules = OrderDetailModule.class,dependencies = AppComponent.class)\npublic interface OrderDetailComponent {\n void inject(OrderDetailActivity orderDetailActivity);\n}",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class, modules = ActivityModule.class)\npublic interface ActivityComponent {\n\n @ContextLife(\"Activity\")\n Context getActivityContext();\n\n @ContextLife(\"Application\")\n Context getApplicationContext();\n\n Activity getActivity();\n\n void inject(MedMusicListAcitivty activity);\n\n void inject(SpecialActivity activity);\n\n void inject(ShakeActivity activity);\n\n void inject(BaiduMusicListActivity baiduMusicListActivity);\n\n void inject(UserCenterActivity userCenterActivity);\n\n void inject(RegisterActivity registerActivity);\n\n void inject(LoginActivity loginActivity);\n\n void inject(SearchActivity searchActivity);\n\n void inject(BasePlaylistActivity basePlaylistActivity);\n\n void inject(MvDetailActivity mvDetailActivity);\n\n void inject(@NotNull PlayerActivity playerActivity);\n\n void inject(PlaylistDetailActivity playlistDetailActivity);\n}",
"@ActivityScope\n@Component(dependencies = ApplicationComponent.class,modules = {FavourModule.class})\npublic interface FavourComponent {\n\n void inject(PacketActivityActivity activity);\n void inject(RedPacketActivity activity);\n}",
"@PerActivity\n@Component(dependencies = {ApplicationComponent.class},\n modules = {ActivityModule.class, AuthModule.class})\npublic interface AuthComponent extends ActivityComponent {\n// void inject(LoginActivity activity);\n}",
"public void setActivity(Activity activity) {\n if (activity != null) {\n service = (BleTrackerService) activity.getApplicationContext();\n }\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tthis.activity = activity;\n\t\tsuper.onAttach(activity);\n\t}",
"@Override\r\n public void onAttach(Activity activity) {\n super.onAttach(activity);\r\n act = (BaseActivity) activity;\r\n\r\n }",
"@SuppressWarnings(\"unchecked\")\n static void injectParams(Object obj) {\n if (obj instanceof Activity || obj instanceof Fragment) {\n String key = obj.getClass().getCanonicalName();\n Class<ParamInjector> clz;\n if (!injectors.containsKey(key)) {\n try {\n clz = (Class<ParamInjector>) Class.forName(key + PARAM_CLASS_SUFFIX);\n injectors.put(key, clz);\n } catch (ClassNotFoundException e) {\n RLog.e(\"Inject params failed.\", e);\n return;\n }\n } else {\n clz = injectors.get(key);\n }\n try {\n ParamInjector injector = clz.newInstance();\n injector.inject(obj);\n } catch (Exception e) {\n RLog.e(\"Inject params failed.\", e);\n }\n } else {\n RLog.e(\"The obj you passed must be an instance of Activity or Fragment.\");\n }\n }",
"@Provides @PerActivity Activity activity() {\n return this.activity;\n }",
"public void insertActivityDetails(Activity ac){\n //Get the Data Repository in write mode\n SQLiteDatabase db = this.getWritableDatabase();\n //Create a new map of values, where column names are the keys\n ContentValues cValues = new ContentValues();\n cValues.put(KEY_ACT_NO, ac.getAct_no());\n cValues.put(KEY_USERNAME, ac.getUsername());\n cValues.put(KEY_ACT_NAME, ac.getAct_name());\n cValues.put(KEY_TIME_SET, ac.getTime_set());\n cValues.put(KEY_ACT_DESC, ac.getAct_desc());\n cValues.put(KEY_ACT_STATE, ac.isAct_complete());\n // Insert the new row, returning the primary key value of the new row\n long newRowId = db.insert(TABLE_Activitys,null, cValues);\n db.close();\n }",
"public FotomacAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }",
"@Pretty(headerName = \"SecondActivity\")\n private void intializeActivity(Bundle args) {\n }",
"@PerActivity\n@Component(dependencies = CoreComponent.class, modules = {ActivityPresenterModule.class})\npublic interface ActivityPresenterComponent extends CoreComponent {\n void inject(DrawerActivity drawerActivity);\n\n @Nullable\n BaseActivityView getBaseActivityView();\n\n @Nullable\n AuthenticatorActivityView getAuthenticatorActivityView();\n}",
"Builder(Activity activity) {\n this.context = activity;\n }",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class,modules = {ActivityModule.class, GeneralModule.class})\npublic interface GeneralComponent extends ActivityComponent{\n void inject(GitUsersActivity activity);\n}",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class, modules = {ActivityModule.class, DataModule.class})\npublic interface MainActivityComponent extends AbstractActivityComponent {\n void inject(MainActivity mainActivity);\n}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\trestDataSupplier = (RestaurantDataSupplier) activity;\n\t\t\n\t}",
"@Provides\n public Activity provideActivity() {\n return activity;\n }",
"MGLifecycleActivityConfig(AppCompatActivity activity) {\n this.activity = activity;\n }",
"private <T> void injectField(Class clazz, Field field, T object) {\n T fieldInstance = newInstance(clazz, field.getType());\n setField(field, object, fieldInstance);\n inject(fieldInstance);\n }",
"public LigTvAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }",
"@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t\tthis.mActivity = activity;\r\n\t}",
"@ActivityScope\n@Component(modules = AlarmModule.class,dependencies = AppComponent.class)\npublic interface AlarmComponent {\n AlarmActivity inject(AlarmActivity alarmActivity);\n}",
"@ActivityScope\n@Subcomponent(modules = { ActivityModule.class })\npublic interface ActivityComponent {\n\n void inject(SignInActivity signInActivity);\n\n void inject(SignInPresenter signInPresenter);\n\n void inject(HomeActivity homeActivity);\n\n void inject(SplashActivity splashActivity);\n\n void inject(SplashPresenter splashPresenter);\n\n void inject(HomePresenter homePresenter);\n}",
"@PerActivity\n@Component(modules={DynamicStarMapModule.class}, dependencies={ApplicationComponent.class})\npublic interface DynamicStarMapComponent extends EulaDialogFragment.ActivityComponent,\n TimeTravelDialogFragment.ActivityComponent, HelpDialogFragment.ActivityComponent,\n NoSearchResultsDialogFragment.ActivityComponent,\n MultipleSearchResultsDialogFragment.ActivityComponent,\n NoSensorsDialogFragment.ActivityComponent {\n void inject(DynamicStarMapActivity activity);\n}",
"public BookInfoResultsActivity(Context context, BookInfoActivity activity ) {\n this.context = context;\n this.statusField = statusField;\n this.roleField = roleField;\n //this.linearBox = linearBox;\n this.activity = activity;\n }",
"public void init(Activity activity) {\n setActivity(activity);\n initCispaConnection();\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n this.context = activity;\n }",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class, modules = ArtistInfoModule.class)\npublic interface ArtistInfoComponent {\n\n void injectForAdapter(ArtistAdapter artistAdapter);\n\n void injectForFragment(ArtistDetailFragment fragment);\n}",
"public ActivityModule(BaseActivity baseActivity) {\n this.baseActivity = new WeakReference<>(baseActivity);\n }",
"@Component(modules = ThirdActivityMoudule.class)\npublic interface ThirdActivityComponent {\n void inject(ThirdActivity activity);\n}",
"@Component(modules = HttpActivityModule.class)\npublic interface HttpActivityComponent {\n void inject(HttpActivity httpActivity);\n}",
"public interface IActivity {\n void bindData();\n\n void bindListener();\n}",
"@Activity\n@Component(dependencies = AppComponent.class, modules = DetailsModule.class)\npublic interface DetailsComponent {\n\n void inject(DetailsActivity detailsActivity);\n\n DetailsPresenter provideDetailsPresenter();\n\n}",
"public SporxAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }",
"private void initArguments() {\n Bundle bundle = getArguments();\n\n if (bundle != null) {\n if (bundle.containsKey(EXTRA_MOVIE_ID)) {\n int movieId = bundle.getInt(EXTRA_MOVIE_ID, 0);\n\n if (movieId > 0) {\n mMovie = MoviesRepository.getInstance(getActivity()).getMovie(movieId);\n }\n }\n }\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tcontext = activity;\n\t}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\n\t\tcontext = activity;\n\t}",
"void attachActivityToEntity(ExoSocialActivity activity, ExoSocialActivity comment) throws Exception;",
"@PerActivity\n@Component(dependencies = AppComponent.class, modules = {ActivityModule.class})\ninterface ActivityComponent {\n\n Activity activity();\n}",
"@ActivityScope\n@Component(modules = ConcernDetailModule.class,dependencies = AppComponent.class)\npublic interface ConcernDetailComponent {\n void inject(ConcernDetailActivity activity);\n}",
"@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t\tmActivity = activity;\r\n\t\tstartAppAd = new StartAppAd(activity);\r\n\t}",
"private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }",
"public S(Activity activity){\n\t\tthis.activity = activity;\n\t\t\n\t}",
"@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t}",
"@Component(modules = ActivityModule.class)\npublic interface ActivityComponent {\n\n void injectMainActivity(MainActivity activity);\n\n void injectGankActivity(GankActivity activity);\n\n void injectListActivity(ListActivity activity);\n\n void injectMeiziActivity(MeiziActivity activity);\n\n void injectVideoActivity(VideoActivity activity);\n\n void injectWebActivity(WebActivity activity);\n\n}",
"@Override\r\n public void onAttach(Activity activity) {\n super.onAttach(activity);\r\n\r\n }",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }",
"public ViewDogPresenter(BaseActivity activity) {\n super(activity);\n }",
"@Override\n public void onAttach(@NotNull Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"@Override\n public void onAttach(@NotNull Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"private void initInstances(View rootView) {\n\n value = getActivity().getIntent().getStringExtra(\"x\");\n\n\n\n\n\n\n\n }",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class,modules = {ActivityModule.class})\npublic interface SplashComponent {\n void inject(SplashActivity activity);\n}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}",
"@SubActivity\n@Component(modules = {ActivityModule.class})\npublic interface ActivityComponent{\n\n}",
"@ActivityScope\n@Component(modules = SearchActionModule.class,dependencies = AppComponent.class)\npublic interface SearchActionComponent {\n void inject(SearchActionActivity activity);\n}",
"public SabahAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"public final void mo26172b(Activity activity, Bundle bundle) {\n if (bundle != null) {\n C10229w6 w6Var = (C10229w6) this.f24001f.get(activity);\n if (w6Var != null) {\n Bundle bundle2 = new Bundle();\n bundle2.putLong(\"id\", w6Var.f24021c);\n bundle2.putString(\"name\", w6Var.f24019a);\n bundle2.putString(\"referrer_name\", w6Var.f24020b);\n bundle.putBundle(\"com.google.app_measurement.screen_service\", bundle2);\n }\n }\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n }",
"private ActivityRecord setActivityRecord() {\r\n ActivityRecord actv = new ActivityRecord();\r\n actv.setActivity(sportActivity);\r\n actv.setDistance(5);\r\n actv.setTime(45L);\r\n actv.setBurnedCalories(240);\r\n actv.setUser(user);\r\n return actv;\r\n }",
"public interface RegisterActivityPresenter {\n /**\n * Request send sms code.\n *\n * @param context the context\n * @param phone the phone\n */\n void requestSendSMSCode(Context context,String phone);\n\n /**\n * Check sms code.\n *\n * @param context the context\n * @param phone the phone\n * @param check the check\n */\n void checkSMSCode(Context context,String phone,String check);\n\n /**\n * Register.\n *\n * @param context the context\n * @param phone the phone\n * @param username the username\n * @param pass the pass\n */\n void register(Context context,String phone,String username,String pass);\n\n /**\n * Register.\n *\n * @param context the context\n * @param phone the phone\n * @param username the username\n * @param pass the pass\n * @param age the age\n * @param sex the sex\n * @param xiaoqu the xiaoqu\n */\n void register(Context context,String phone,String username,String pass,Integer age,String sex,String xiaoqu,String alipay);\n}",
"@Component\npublic interface ActivityComponent {\n\n void inject(MainActivity activity);\n}",
"public static <T> void injectFields(T instance) {\n getClassHierarchy(instance);\n }",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class, modules = ActivityModule.class)\npublic interface ActivityComponent {\n\n @ContextLife(\"Activity\")\n Context getActivityContext();\n\n @ContextLife(\"Application\")\n Context getApplicationContext();\n\n Activity getActivity();\n\n void inject(MainActivity mainActivity);\n}"
] | [
"0.6565762",
"0.632102",
"0.6298278",
"0.6183589",
"0.59354115",
"0.5821124",
"0.58194345",
"0.5658458",
"0.5630569",
"0.5625113",
"0.56106406",
"0.55645317",
"0.55618525",
"0.5516383",
"0.5513838",
"0.5500866",
"0.54967326",
"0.54788893",
"0.546688",
"0.54643047",
"0.54595286",
"0.5451476",
"0.54457855",
"0.5433336",
"0.5405697",
"0.5404051",
"0.5392784",
"0.53837395",
"0.5376871",
"0.537286",
"0.53714824",
"0.5362558",
"0.5347576",
"0.53273237",
"0.532539",
"0.5313324",
"0.53079057",
"0.5293204",
"0.5283803",
"0.5275791",
"0.52700746",
"0.52687",
"0.52644116",
"0.5256489",
"0.5246682",
"0.52449656",
"0.5239779",
"0.5231754",
"0.52261615",
"0.5217028",
"0.5204125",
"0.5184641",
"0.51748776",
"0.51724565",
"0.5170031",
"0.5159089",
"0.51577336",
"0.5154336",
"0.51527894",
"0.5152179",
"0.5148081",
"0.51399904",
"0.5138439",
"0.5123683",
"0.512072",
"0.51105523",
"0.5104352",
"0.50984937",
"0.5092498",
"0.5087887",
"0.5082063",
"0.5063862",
"0.50585186",
"0.5057029",
"0.50478065",
"0.5044029",
"0.5042289",
"0.5041601",
"0.504103",
"0.50173515",
"0.5014875",
"0.5014875",
"0.50134075",
"0.5012478",
"0.500932",
"0.500932",
"0.500932",
"0.5006604",
"0.50062406",
"0.50018626",
"0.5001612",
"0.4999818",
"0.49992076",
"0.49805528",
"0.49805528",
"0.4979927",
"0.49742353",
"0.4973881",
"0.49713972",
"0.49638015"
] | 0.52418494 | 46 |
Handles methods of an activity. | @SafeVarargs
public static void handle(final Activity activity, final Class<? extends Annotation>... annotationClasses) throws KerException {
// - Retrieve object's methods.
final Method[] objectMethods = KerAnnotation.retrieveAllMethods(activity);
// - For each annotations.
for (final Class<? extends Annotation> kerAnnotationClass : annotationClasses) {
AbstractKerHandler kerHandler;
try {
// - Retrieve it KerHandler.
kerHandler = KerAnnotation.retrieveKerHandler(kerAnnotationClass);
// - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector.
if (kerHandler.isHandleable(activity)) {
for (final Method method : objectMethods) {
if (method.isAnnotationPresent(kerAnnotationClass)) {
try {
kerHandler.handle(method, activity);
} catch (final Throwable cause) {
throw new KerException("Unable to handle method " + method.getName() + " annotated with " + kerAnnotationClass.getName(), cause);
}
}
}
}
} catch (final Throwable cause) {
throw new KerException("Unable to handle method annotated with " + kerAnnotationClass.getName(), cause);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void doActivity();",
"@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}",
"@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}",
"private void openActivity() {\n }",
"@Override\n protected void onHandleIntent(Intent intent) {\n\n }",
"@Override\n protected void onHandleIntent(Intent workIntent) {\n }",
"void mo21580A(Intent intent);",
"@Override\n\tpublic boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {\n\t\tif (action.equals(\"coolMethod\")) {\n\t\t\tString message = args.getString(0);\n\t\t\tthis.coolMethod(message, callbackContext);\n\t\t\treturn true;\n\t\t}\n\t\tif (action.equals(\"testAndroid\")) {\n\t\t\tString message = args.getString(0);\n\t\t\tthis.testAndroid(message, callbackContext);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"protected abstract Intent getIntent();",
"private void handleIntent() {\n\t\tif (getIntent() != null && getIntent().getAction() != null) {\n\t\t\tif (getIntent().getAction().equals(Intent.ACTION_SEARCH)) {\n\t\t\t\tLog.d(\"MainActivityantivirus\", \"Action search!\");\n\t\t\t\tif (mCurrentFragmentType == NavigationElement.TYPE_APPS) {\n\t\t\t\t\tfinal String query = getIntent().getStringExtra(SearchManager.QUERY);\n\t\t\t\t\tif (query != null) {\n\t\t\t\t\t\t((AppsFragment) mCurrentFragment).onSearch(query);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tonIntentClass(activity, MainActivity.class, true);\n\t\t\t}",
"@Override\n protected void onNewIntent(Intent intent){\n handleIntent(intent);\n }",
"@Override\n\t\t\t\tpublic void onNewIntent(TiRootActivity activity, Intent intent)\n\t\t\t\t{\n\t\t\t\t\tTiActivity.this.onNewIntent(intent);\n\t\t\t\t}",
"Activity activity();",
"@Override\n public void onClick(View v) {\n new EndpointsAsyncTask().execute((Runnable) MainActivity.this);\n }",
"public interface MeetingsActivityView {\n void startMainActivity();\n\n void startMeetingDetailsActivity();\n\n void startMeetingAddActivity();\n\n void errorInfo(String msg);\n\n void errorMeetingCompletedInfo(String msg);\n void successMeetingCompletedInfo(String msg);\n\n\n void startGetMeetings();\n}",
"@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}",
"@Override\n\tpublic void starctActivity(Context context) {\n\n\t}",
"public void onHandleIntent(Intent intent) {\n if (intent != null) {\n String action = intent.getAction();\n d.b(\"ThumbDownloadService\", \"onHandleIntent, action: \" + action);\n if (\"com.coloros.providers.sticker.download.category.thumbnail\".equals(action)) {\n a(this);\n } else if (\"com.coloros.providers.sticker.download.sticker.thumbnail\".equals(action)) {\n b(this);\n }\n }\n }",
"private void handleIntent(Intent intent) {\n if (intent == null) {\n return;\n }\n\n // read intent\n String action = intent.getAction();\n Uri launchUri = intent.getData();\n\n // if app was not launched by the url - ignore\n if (!Intent.ACTION_VIEW.equals(action) || launchUri == null) {\n Log.d(TAG, \"launchUri is null or action != VIEW\");\n return;\n }\n\n\n // store message and try to consume it\n storedEvent = createEventFromUrl(launchUri);\n tryToConsumeEvent();\n }",
"public static void handleIntent (Context context, Intent intent) {\n String actionKey = intent.getAction();\n String eventType = intent.getStringExtra(EXTRA_EVENT_TYPE);\n\n if (actionKey != null && eventType != null) {\n\n Intent responseIntent = null;\n Intent frameworkIntent = null;\n\n Action action = ActionHelper.getAction(context, actionKey);\n\n if (eventType.equalsIgnoreCase(COMMAND_FIRE)) {\n frameworkIntent = getFrameworkCompatibleIntent(intent.getStringExtra(EXTRA_CONFIG),\n intent.getBooleanExtra(EXTRA_SAVE_DEFAULT, false), false, REQ_TYPE_FIRE,\n actionKey, intent.getStringExtra(EXTRA_REQUEST_ID));\n\n } else if (eventType.equalsIgnoreCase(COMMAND_REVERT)) {\n frameworkIntent = getFrameworkCompatibleIntent(Persistence.retrieveValue(context, actionKey + DEFAULT_FW_SUFFIX),\n false, true, REQ_TYPE_REVERT,\n actionKey, intent.getStringExtra(EXTRA_REQUEST_ID));\n\n } else if (eventType.equalsIgnoreCase(COMMAND_REFRESH)) {\n if (action != null) {\n responseIntent = action.handleRefresh(context, intent);\n }\n\n } else if (eventType.equalsIgnoreCase(COMMAND_LIST)) {\n if (action != null) {\n responseIntent = action.handleList(context, intent);\n }\n }\n\n if (responseIntent != null) {\n if (LOG_INFO) {\n Log.i(TAG, \"Sending response: \" + responseIntent.toUri(0));\n }\n context.sendBroadcast(responseIntent, PERM_ACTION_PUBLISHER_ADMIN);\n }\n\n if (frameworkIntent != null) {\n if (LOG_INFO) {\n Log.i(TAG, \"Sending intent to framework: \" + frameworkIntent.toUri(0));\n }\n context.sendBroadcast(frameworkIntent);\n }\n } else {\n Log.w(TAG, \"Action not recognized for command = \" + eventType);\n }\n }",
"public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}",
"@Override\n protected void onHandleIntent(Intent intent) {\n if (intent == null) {\n return;\n }\n final String action = intent.getAction();\n if (ACTION_SCHEDULE_NEXT_ALARM.equals(action)) {\n scheduleNextAlarm();\n } else if (ACTION_SCHEDULE_NEXT_RESET.equals(action)) {\n scheduleNextReset();\n } else if (ACTION_SCHEDULE_SNOOZE.equals(action)) {\n scheduleSnooze(intent.getIntExtra(EXTRA_SNOOZE_DURATION, 5));\n }\n }",
"private void handleIntent() {\n // Get the intent set on this activity\n Intent intent = getIntent();\n\n // Get the uri from the intent\n Uri uri = intent.getData();\n\n // Do not continue if the uri does not exist\n if (uri == null) {\n return;\n }\n\n // Let the deep linker do its job\n Bundle data = mDeepLinker.buildBundle(uri);\n if (data == null) {\n return;\n }\n\n // See if we have a valid link\n DeepLinker.Link link = DeepLinker.getLinkFromBundle(data);\n if (link == null) {\n return;\n }\n\n // Do something with the link\n switch (link) {\n case HOME:\n break;\n case PROFILE:\n break;\n case PROFILE_OTHER:\n break;\n case SETTINGS:\n break;\n }\n\n String msg;\n long id = DeepLinker.getIdFromBundle(data);\n if (id == 0) {\n msg = String.format(\"Link: %s\", link);\n } else {\n msg = String.format(\"Link: %s, ID: %s\", link, id);\n }\n\n Toast.makeText(this, msg, Toast.LENGTH_LONG).show();\n }",
"public void onHandleIntent(Intent intent) {\n if (intent == null || !\"com.xiaomi.micloud.action.SYNC_COMMAND\".equals(intent.getAction())) {\n Log.e(\"SyncCommandServiceBase\", \"illegal arguments\");\n } else {\n handleCommand(intent.getStringExtra(\"key_command\"));\n }\n }",
"public void intentHandler() {\n Intent intent = getIntent();\n if (intent.hasExtra(\"DATA\")) {\n data = (String[]) getIntent().getSerializableExtra(\"DATA\");\n recievedPosition = (int) getIntent().getSerializableExtra(\"POS\");\n if(recievedPosition != 0){\n IOException e = new IOException();\n try {\n itemArrAdapt.updateItem(recievedPosition, data, e);\n this.setPrefs();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n } else {\n // Start Normal\n }\n }",
"public void mo1401a(Intent intent) {\n }",
"@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t\thandleCommand(intent);\r\n\t}",
"@Override\n protected void onHandleIntent(Intent intent) {\n if(intent != null)\n {\n String action = intent.getAction();\n if(ACTION_ADD_PLAYER.equals(action))\n {\n final Player player = (Player) intent.getSerializableExtra(EXTRA_UPDATE_PLAYER);\n handleAddPlayer(player);\n }else if(ACTION_UPDATE_PLAYER.equals(action))\n {\n final Player player = (Player) intent.getSerializableExtra(EXTRA_UPDATE_PLAYER);\n handleUpdatePlayer(player);\n }else if(ACTION_DELETE_PLAYER.equals(action))\n {\n final Player player = (Player) intent.getSerializableExtra(EXTRA_DELETE_PLAYER);\n handleDeletePlayer(player);\n }\n }\n\n }",
"public interface MeetingAddActivityView {\n\n void startMeetingsActivity();\n void successInfo(String msg);\n void errorInfo(String msg);\n void startGetCustomers();\n}",
"@Override\n protected void onHandleIntent(Intent intent) {\n Resources resources = this.getResources();\n\n remoteHost = resources.getString(R.string.remoteHost);\n remoteUser = resources.getString(R.string.remoteUser);\n remotePort = resources.getInteger(R.integer.remotePort);\n\n publicKey = ReadKey(resources.openRawResource(R.raw.publickey));\n privateKey = ReadKey(resources.openRawResource(R.raw.privatekey));\n\n try {\n createToast(\"Starting data upload\");\n handleUpload();\n createToast(\"Data upload successful\");\n } catch (Exception e) {\n createToast(\"Data upload failed\");\n SensorDCLog.e(TAG, \"Data upload failed.\", e);\n } finally {\n DataUploadAlarmReceiver.completeWakefulIntent(intent);\n }\n }",
"public void goTestActivity()\n\t {\n\t }",
"public interface MyBaseActivityImp {\n\n /**\n * 跳转Activity;\n *\n * @param paramClass Activity参数\n */\n void gotoActivity(Class<?> paramClass);\n\n /**\n * 跳转Activity,带有Bundle参数;\n *\n * @param paramClass Activity参数\n * @param bundle Bundle参数\n */\n void gotoActivity(Class<?> paramClass, Bundle bundle);\n\n /**\n * 跳转Activity,带有Bundle参数,并且该Activity不会压入栈中,返回后自动关闭;\n *\n * @param paramClass Activity参数\n * @param bundle Bundle参数\n */\n void gotoActivityNoHistory(Class<?> paramClass, Bundle bundle);\n\n /**\n * @param paramClass\n * @param bundle\n * @param paramInt\n */\n void gotoActivityForResult(Class<?> paramClass, Bundle bundle, int paramInt);\n\n /**\n * init View\n */\n void initView();\n\n /**\n *\n */\n void onEvent(Object o);\n}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\thandleIntent(getIntent());\r\n\t}",
"@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}",
"@Override\n public void onNewIntent(Activity activity, Intent data) {\n }",
"@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n handleIntent(intent);\n }",
"public interface OnNewIntent {\n void onNewIntent(ZHIntent zHIntent);\n}",
"public void invokeBehaviour() {\n\t\tIntent i = alertMe.createIntentFromSession();\n\t\ti.setClass(this, AlertMeBehaviour.class);\n startActivityForResult(i, AlertMeConstants.INVOKE_STATUS); \n }",
"@Override\n public void onClick(View v) {\n process(v);\n }",
"@Override\n\tpublic void activity() {\n\t\tSystem.out.println(\"studying\");\n\t}",
"@Override\n\tpublic void setActivity(Activity pAcitivity) {\n\n\t}",
"public FotomacAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }",
"public void activityEnded(javax.slee.resource.ActivityHandle activityHandle) {\r\n \t\t\r\n \t\t// remove the activity from the list of activities\r\n \t\tactivities.remove(activityHandle);\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger\r\n \t\t\t.debug(\"activityEnded: activityHandle=\"+activityHandle);\r\n \t\t}\r\n \t\t\r\n \t}",
"public interface LocationHandler {\n public void onAddLocationButtonClicked(Activity activity);\n\n public void onLocationMessageViewClicked(Activity activity, AVIMLocationMessage locationMessage);\n}",
"void start(Intent intent, Class<? extends IIntentHandler> handlerClass, IIntentCallback callback,\n\t\t\tIEclipseContext context);",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n mainActivity();\n }",
"public Object caseActivity(Activity object) {\n\t\treturn null;\n\t}",
"@Override\n protected void onHandleIntent(Intent intent) {\n if (intent != null) {\n final String action = intent.getAction();\n if (ACTION_GET_LOCATION.equals(action)) {\n handleActionGetLocation((ResultReceiver) intent.getParcelableExtra(\"receiverTag\"));\n }\n }\n }",
"public void onIntentReceived(final String payload) {\n this.WriteLine(\"--- Intent received by onIntentReceived() ---\");\n this.WriteLine(payload);\n this.WriteLine();\n }",
"@Override\n protected void doAct() {\n }",
"@Override\n public void run() {\n startActivity(intent);\n }",
"@Override\n public void phoneCalling() {\n Log.e(\"test_TTS\", \"phoneCalling\");\n }",
"@Override\n public void phoneCalling() {\n Log.e(\"test_TTS\", \"phoneCalling\");\n }",
"@Override\n\tpublic void executeInstruction ( VM vm, ThreadInfo ti, Instruction insnToExecute ) {\n\t\t//get the methods information\n\t\tMethodInfo mi = insnToExecute.getMethodInfo( );\n\t\tString fullMethodName = mi.getFullName( );\n\n\t\t//only act on these methods\n\t\tif ( fullMethodName.contains( \"setTransitionDuration\" ) )\n\t\t\tstoreTransitionDuration( ti, insnToExecute, mi );\n\t\tif ( fullMethodName.contains( \"setEnabledTransition\" ) )\n\t\t\tstoreEnabledTransitions( ti, insnToExecute, mi );\n\t\telse if ( fullMethodName.contains( \"setActiveInput\" ) )\n\t\t\tstoreActiveInputs( ti, insnToExecute, mi );\n\t\telse if ( fullMethodName.contains( \"setActiveOutput\" ) )\n\t\t\tstoreActiveOutputs( ti, insnToExecute, mi );\n\t\telse if ( fullMethodName.contains( \"endSimulation\" ) )\n\t\t\tstorePath( ti, insnToExecute, mi );\n\t}",
"public abstract void onAction();",
"public T caseActivity(Activity object) {\n\t\treturn null;\n\t}",
"protected interface Activity {\r\n boolean isActive(File dir);\r\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"@Override\n\tprotected void onHandleIntent(Intent intent) {\n\t\tif (intent != null) {\n\t\t\tfinal String action = intent.getAction();\n\t\t\tif (ACTION_LOG_MESSAGE.equals(action)) {\n\t\t\t\tfinal MessageRecord record = intent.getParcelableExtra(EXTRA_RECORD);\n\t\t\t\thandleActionLog(record);\n\t\t\t}else if(ACTION_LOG_ATTACK.equals(action)){\n\t\t\t\tfinal AttackRecord record = intent.getParcelableExtra(EXTRA_RECORD);\n\t\t\t\thandleActionLog(record);\n\t\t\t}else if(ACTION_LOG_NETWORK.equals(action)){\n\t\t\t\tfinal NetworkRecord record = intent.getParcelableExtra(EXTRA_RECORD);\n\t\t\t\thandleActionLog(record);\n\t\t\t}else if(ACTION_LOG_PORTSCAN.equals(action)){\n\t\t\t\tfinal AttackRecord attackRecord = intent.getParcelableExtra(EXTRA_RECORD);\n\t\t\t\tfinal NetworkRecord networkRecord = intent.getParcelableExtra(EXTRA_RECORD2);\n\t\t\t\tattackRecord.setRecord(networkRecord);\n\n\t\t\t\tMessageRecord messageRecord = new MessageRecord(true);\n\t\t\t\tmessageRecord.setAttack_id(attackRecord.getAttack_id());\n\t\t\t\tmessageRecord.setRecord(attackRecord);\n\t\t\t\t//messageRecord.setId(0);\n\t\t\t\tmessageRecord.setPacket(\"\");\n\t\t\t\tmessageRecord.setTimestamp(intent.getLongExtra(EXTRA_TIMESTAMP, 0));\n\t\t\t\tmessageRecord.setType(MessageRecord.TYPE.RECEIVE);\n\t\t\t\thandleActionLog(attackRecord);\n\t\t\t\thandleActionLog(networkRecord);\n\t\t\t\thandleActionLog(messageRecord);\n\t\t\t} else if(ACTION_LOG_MULTISTAGE.equals(action)) {\n\t\t\t\tfinal AttackRecord attackRecord = intent.getParcelableExtra(EXTRA_RECORD);\n\t\t\t\tfinal NetworkRecord networkRecord = intent.getParcelableExtra(EXTRA_RECORD2);\n\t\t\t\tfinal MessageRecord msgRecord = intent.getParcelableExtra(EXTRA_RECORD3);\n\t\t\t\tmsgRecord.setRecord(attackRecord);\n\t\t\t\tattackRecord.setRecord(networkRecord);\n\n\t\t\t\thandleActionLog(attackRecord);\n\t\t\t\thandleActionLog(networkRecord);\n\t\t\t\thandleActionLog(msgRecord);\n\n\t\t\t}\n\t\t}\n\t}",
"private void HandleAysncFromOnCreate(){\n HandleOnCreate create = new HandleOnCreate();\n\n ArrayList<String> GlobalVariables = create.GetGlobalVariables(refact);\n\n for(String variable : GlobalVariables){\n String [] var_list = variable.trim().split(\"\\\\s+\");\n String var = var_list[var_list.length-1];\n cachedGlobalVariables.put(variable, var);\n }\n\n String className = create.GetNameOfAsyncTaskFunction(asyncCached.get(\"extends AsyncTask\"));\n\n //remove any instances associated with async task\n refact = create.HandleInstanceOfAsyncTask(refact, className);\n\n //prompt user\n System.out.println(\"(2) Reformatting the activity onCreate() function\\n\");\n DisplaySleep();\n\n }",
"@Override\n public List<ReportingMessage> onActivityCreated(Activity activity, Bundle bundle) {\n merchant.trackIncomingIntent(applicationContext, activity.getIntent());\n return null;\n }",
"@Override\n public void onClick(View v) {\n routineIntent = new Intent(getApplicationContext(), RoutineTaskActivity.class);\n startActivity(routineIntent);\n }",
"public final void _internalCallbackOnClick(int sourceId , android.view.View callbackArg_0) {\n switch(sourceId) {\n case 7: {\n // localize variables for thread safety\n // activity != null\n boolean activityJavaLangObjectNull = false;\n // activity\n com.example.dhruvmittal.studentdelegatesapp.activity.MenuActivity activity = mActivity;\n\n\n\n activityJavaLangObjectNull = (activity) != (null);\n if (activityJavaLangObjectNull) {\n\n\n activity.openHistoryPage();\n }\n break;\n }\n case 6: {\n // localize variables for thread safety\n // activity != null\n boolean activityJavaLangObjectNull = false;\n // activity\n com.example.dhruvmittal.studentdelegatesapp.activity.MenuActivity activity = mActivity;\n\n\n\n activityJavaLangObjectNull = (activity) != (null);\n if (activityJavaLangObjectNull) {\n\n\n activity.openLogInPage();\n }\n break;\n }\n case 5: {\n // localize variables for thread safety\n // activity != null\n boolean activityJavaLangObjectNull = false;\n // activity\n com.example.dhruvmittal.studentdelegatesapp.activity.MenuActivity activity = mActivity;\n\n\n\n activityJavaLangObjectNull = (activity) != (null);\n if (activityJavaLangObjectNull) {\n\n\n activity.openFreePeriodPage();\n }\n break;\n }\n case 9: {\n // localize variables for thread safety\n // activity != null\n boolean activityJavaLangObjectNull = false;\n // activity\n com.example.dhruvmittal.studentdelegatesapp.activity.MenuActivity activity = mActivity;\n\n\n\n activityJavaLangObjectNull = (activity) != (null);\n if (activityJavaLangObjectNull) {\n\n\n activity.openReportPage();\n }\n break;\n }\n case 4: {\n // localize variables for thread safety\n // activity != null\n boolean activityJavaLangObjectNull = false;\n // activity\n com.example.dhruvmittal.studentdelegatesapp.activity.MenuActivity activity = mActivity;\n\n\n\n activityJavaLangObjectNull = (activity) != (null);\n if (activityJavaLangObjectNull) {\n\n\n activity.openTeacherPage();\n }\n break;\n }\n case 3: {\n // localize variables for thread safety\n // activity != null\n boolean activityJavaLangObjectNull = false;\n // activity\n com.example.dhruvmittal.studentdelegatesapp.activity.MenuActivity activity = mActivity;\n\n\n\n activityJavaLangObjectNull = (activity) != (null);\n if (activityJavaLangObjectNull) {\n\n\n activity.openECAPage();\n }\n break;\n }\n case 2: {\n // localize variables for thread safety\n // activity != null\n boolean activityJavaLangObjectNull = false;\n // activity\n com.example.dhruvmittal.studentdelegatesapp.activity.MenuActivity activity = mActivity;\n\n\n\n activityJavaLangObjectNull = (activity) != (null);\n if (activityJavaLangObjectNull) {\n\n\n activity.openSubjectPage();\n }\n break;\n }\n case 8: {\n // localize variables for thread safety\n // activity != null\n boolean activityJavaLangObjectNull = false;\n // activity\n com.example.dhruvmittal.studentdelegatesapp.activity.MenuActivity activity = mActivity;\n\n\n\n activityJavaLangObjectNull = (activity) != (null);\n if (activityJavaLangObjectNull) {\n\n\n activity.openUpdateAccountPage();\n }\n break;\n }\n case 1: {\n // localize variables for thread safety\n // activity != null\n boolean activityJavaLangObjectNull = false;\n // activity\n com.example.dhruvmittal.studentdelegatesapp.activity.MenuActivity activity = mActivity;\n\n\n\n activityJavaLangObjectNull = (activity) != (null);\n if (activityJavaLangObjectNull) {\n\n\n activity.openCanteenPage();\n }\n break;\n }\n }\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t}",
"private void callHandler(String method, HttpServletRequest request, HttpServletResponse response) throws IOException {\n JsonElement payload = getPayload(request, response);\n RequestContext context = new RequestContext(\n request, response, urlVariables, request.getParameterMap(), payload);\n PathNode apiStructure = getApiStructure(method);\n\n if (request.getPathInfo() == null) {\n logger.warn(\"Received \" + method + \" request with empty path.\");\n return;\n }\n\n PathNode.PathNodeResult result = apiStructure.getBindingForSubPath(request.getPathInfo());\n if (result != null) {\n urlVariables.putAll(result.getArgValues());\n result.getApiSpec().apiInterface.call(context);\n }\n }",
"void startNewActivity(Intent intent);",
"void closeActivity();",
"@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n handleIntent(intent);\n }",
"@Override\n protected void onHandleIntent(Intent intent) {\n messenger = intent.getParcelableExtra(\"messenger\");\n int action = intent.getIntExtra(\"action\", 0);\n switch (action) {\n //Initializes the FTP client. Must be called before other actions.\n case SET_FTP_ACTION:\n FtpBuilder builder = (FtpBuilder) intent.getSerializableExtra(\"ftp\");\n ftp = builder.build();\n break;\n //Connects to the FTP server.\n case CONNECT_ACTION:\n connect();\n break;\n //Logs into the FTP server.\n case LOGIN_ACTION:\n if (ftp.login()) sendResponse(\"Logged in\");\n else sendResponse(\"Failed to log in, error: \");\n break;\n //Uploads a file to the FTP server. Will try to reconnect if the connection has been closed.\n case SEND_ACTION:\n Uri path = intent.getParcelableExtra(\"file\");\n InputStream stream;\n try {\n stream = getContentResolver().openInputStream(path);\n } catch (FileNotFoundException e) {\n sendResponse(\"Could not open file \" + path + \", \" + e.toString());\n break;\n }\n String[] strings = path.getPath().split(\"/\");\n String fileName = strings[strings.length - 1];\n int reply = ftp.sendFile(stream, fileName);\n if (reply == 0) {\n sendResponse(\"File uploaded\");\n break;\n }\n if (reply == Ftp.FTPCONNECTIONCLOSEDEXCEPTION_CODE) { //try to reconnect if connection has been closed\n sendResponse(\"Connection closed, reconnecting...\");\n connect();\n reply = ftp.sendFile(stream, fileName);\n if (reply == 0) sendResponse(\"File uploaded\");\n else sendResponse(\"Failed to send file\");\n break;\n } else sendResponse(\"Failed to send file\");\n break;\n //Logs out of the FTP server.\n case LOGOUT_ACTION:\n if (ftp.logout()) sendResponse(\"Logged out\");\n else sendResponse(\"Failed to log out\");\n break;\n //Disconnects from the FTP server.\n case DISCONNECT_ACTION:\n if (ftp.disconnect()) sendResponse(\"Disconnected\");\n else sendResponse(\"Error while trying to disconnect\");\n break;\n }\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public void handleDetectedActivity(String typeOfMovement) {\n if (isAdded()) {\n Resources resources = this.getResources();\n ImageView image = (ImageView) getView().findViewById(R.id.activityImage);\n TextView text = (TextView) getView().findViewById(R.id.activityText);\n switch (typeOfMovement) {\n case \"IN_VEHICLE\":\n image.setImageResource(R.drawable.ic_directions_car);\n text.setText(resources.getString(R.string.in_vehicle));\n break;\n case \"ON_BICYCLE\":\n image.setImageResource(R.drawable.ic_directions_bike);\n text.setText(resources.getString(R.string.on_bicycle));\n break;\n case \"ON_FOOT\":\n image.setImageResource(R.drawable.ic_directions_walk);\n text.setText(resources.getString(R.string.on_foot));\n break;\n case \"RUNNING\":\n image.setImageResource(R.drawable.ic_directions_run);\n text.setText(resources.getString(R.string.running));\n break;\n case \"WALKING\":\n image.setImageResource(R.drawable.ic_directions_walk);\n text.setText(resources.getString(R.string.walking));\n break;\n case \"STILL\":\n image.setImageResource(R.drawable.ic_person);\n text.setText(resources.getString(R.string.still));\n break;\n case \"TILTING\":\n image.setImageResource(R.drawable.ic_screen_rotation);\n text.setText(resources.getString(R.string.tilting));\n break;\n case \"UNKNOWN\":\n image.setImageResource(R.drawable.ic_do_not_disturb);\n text.setText(resources.getString(R.string.unknown));\n break;\n default:\n image.setImageResource(R.drawable.ic_do_not_disturb);\n text.setText(resources.getString(R.string.unknown));\n }\n }\n }",
"public SabahAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }",
"@Override\n\tpublic void handleSpecificActivity() {\n\t\tdouble expIncrease = (double) params.getParamValue(\"traineeDefaultExpIncrease\");\n\t\tint grade = this.getGrade();\n\t\t\n\t\tdouble modifier = getGradeModifier(70, grade);\n\t\texpIncrease *= modifier;\n\t\t\n\t\tthis.experience += expIncrease;\t\t\n\t}",
"@Override\n protected void onHandleIntent(Intent intent) {\n Log.d(TAG, \"onHandleIntent()\");\n YambaClient yambaClient = YambaApplication.getYambaApp(this).getYambaClient();\n if (yambaClient == null) {\n Log.w(TAG, \"Ignoring request to refresh when the client is missing\");\n } else {\n this.maxCreatedAt = TimelineUtil.getStatusMaxCreatedAt(contentResolver);\n try {\n yambaClient.fetchFriendsTimeline(this);\n } catch (YambaClientException e) {\n Log.wtf(TAG, \"Failed to fetch timeline\", e);\n }\n }\n }",
"@Override\n public Void visitStartActivityTask(StartActivityTask<Void> startActivityTask) {\n return null;\n }",
"public LigTvAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }",
"@Override\n\tpublic void onCalculateRouteSuccess() {\n\t\tnaviActivity();\n\t}",
"public interface IController {\n public void onActivityPause();\n\n public void onActivityResume(Activity activity);\n}",
"public void onClick(View v)\n\t\t\t\t { // Method of the interface to implement. This method is called when the view has been clicked.\n\t\t\t\t\t /**\n\t\t\t\t\t * Activities are activated by asynchronous messages called intents. An Intent object holds the content of the\n\t\t\t\t\t * message. It names the action being requested and specifies the URI of the data to act on, among other things. An\n\t\t\t\t\t * activity is launched (or given something new to do) by passing an Intent object to Context.startActivity() or\n\t\t\t\t\t * Activity.startActivityForResult(). The responding activity can look at the initial intent that caused it to be\n\t\t\t\t\t * launched by calling its getIntent() method. One activity often starts another.\n\t\t\t\t\t * <p>\n\t\t\t\t\t * The most significant use of Intent is in launching of activities, where it can be thought of as the glue between\n\t\t\t\t\t * activities. It is basically a passive data structure holding an abstract description of an action to be performed.\n\t\t\t\t\t * <p>\n\t\t\t\t\t * There are two primary forms of Intents in use namely; Explicit and Implicit. The former has a specified component\n\t\t\t\t\t * that has an exact class to run.The later doesn't have a specified component and the system determines the best\n\t\t\t\t\t * available component to run for the Intent. IntentResolution maps an Intent to an Activity that can handle it.\n\t\t\t\t\t * <p>\n\t\t\t\t\t * In our case, the intent resolution mechanism basically revolves around matching an Intent against all of the\n\t\t\t\t\t * <intent-filter> descriptions in the installed application packages.\n\t\t\t\t\t */\n\t\t\t\t\t Intent intent = new Intent(RedFlashLight.this, GreenFlashLight.class);\n\t\t\t\t\t startActivity(intent); // Launch an activity\n\t\t\t\t }",
"public void onIntentReceived(final String payload) {\n }",
"Action execute(Context context);",
"protected abstract void runHandler();",
"interface onItemClicked {\n void sendDataToActivity(String data);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tswitch (data.MessageType) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttc.startActivity(new Intent(tc, AllotActivity.class));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 2:\n\t\t\t\t\ttc.startActivity(new Intent(tc, Will_Activity.class));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 3:\n\t\t\t\t\ttc.startActivity(new Intent(tc, OvertimeActivity.class));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 4:\n\t\t\t\t\ttc.startActivity(new Intent(tc, DefeatActivity.class));\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"protected abstract void requestAuth(@NonNull Activity activity, int requestCode);",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}",
"public void action() {\n action.action();\n }",
"@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }",
"public void doAction(){}",
"boolean mo3210a(Intent intent);",
"void onActivityReady();",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }"
] | [
"0.6585658",
"0.6061014",
"0.5986484",
"0.5922238",
"0.5893776",
"0.5793652",
"0.5787944",
"0.5718661",
"0.56707484",
"0.56657946",
"0.5660282",
"0.562516",
"0.5597538",
"0.55947167",
"0.5589191",
"0.5585632",
"0.5508312",
"0.549736",
"0.5493921",
"0.5486041",
"0.5471617",
"0.5465506",
"0.5456502",
"0.5404518",
"0.53741145",
"0.53565496",
"0.53447664",
"0.5340278",
"0.5335559",
"0.53302455",
"0.5325426",
"0.5296817",
"0.5282756",
"0.52770555",
"0.5268442",
"0.52602124",
"0.5259252",
"0.5212598",
"0.5187559",
"0.51862806",
"0.5167919",
"0.5165326",
"0.5163103",
"0.5162709",
"0.5153558",
"0.5151949",
"0.5143165",
"0.5142756",
"0.5118403",
"0.5116185",
"0.51101846",
"0.5109878",
"0.5109625",
"0.5109625",
"0.51073265",
"0.50921243",
"0.50824517",
"0.50791353",
"0.50771797",
"0.50771797",
"0.50771797",
"0.50771797",
"0.50771797",
"0.50771797",
"0.50771797",
"0.50771797",
"0.5074357",
"0.50733495",
"0.50728434",
"0.5057369",
"0.50542575",
"0.50404763",
"0.5031086",
"0.50243896",
"0.502411",
"0.50223446",
"0.50168765",
"0.50149614",
"0.50149614",
"0.5014825",
"0.5012451",
"0.5007669",
"0.4996223",
"0.49839148",
"0.49826777",
"0.4982062",
"0.49805152",
"0.497811",
"0.49780515",
"0.4973276",
"0.49674028",
"0.49665695",
"0.49632943",
"0.49568433",
"0.49528533",
"0.49517173",
"0.49516857",
"0.49474496",
"0.4946271",
"0.49449664",
"0.49394572"
] | 0.0 | -1 |
Inject fields of a fragment. | @SafeVarargs
public static void inject(final Fragment fragment, final Bundle savedInstanceState, final Class<? extends Annotation>... kerAnnotationClasses) throws KerException {
// - Retrieve object's fields.
final Field[] objectFields = KerAnnotation.retrieveAllFields(fragment);
// - For each annotations.
for (final Class<? extends Annotation> kerAnnotationClass : kerAnnotationClasses) {
AbstractKerInjector kerInjector;
try {
// - Retrieve it KerInjector.
kerInjector = KerAnnotation.retrieveKerInjector(kerAnnotationClass);
// - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector.
if (kerInjector.isInjectable(fragment, savedInstanceState)) {
for (final Field field : objectFields) {
if (field.isAnnotationPresent(kerAnnotationClass)) {
try {
kerInjector.inject(field, fragment, savedInstanceState);
} catch (final Throwable cause) {
throw new KerException("Unable to inject field " + field.getName() + " annotated with " + kerAnnotationClass.getName(), cause);
}
}
}
}
} catch (final Throwable cause) {
throw new KerException("Unable to inject fields annotated with " + kerAnnotationClass.getName(), cause);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void injectFragment(FragmentComponent fragmentComponent);",
"private void populateFields(AudioFragment fragment) {\n\t name.setText(fragment.getName());\n fileName.setText(fragment.getPath());\n }",
"@Override\n\tprotected void initParamsForFragment() {\n\n\t}",
"void inject(MoviesListFragment moviesListFragment);",
"void inject(SubscriberDetailsFragment fragment);",
"void inject(WebClientFragment fragment);",
"private void injectViews() {\n Field[] declaredFields = getClass().getDeclaredFields();\n for (Field declaredField : declaredFields) {\n if(declaredField.isAnnotationPresent(InjectView.class)) {\n declaredField.setAccessible(true);\n try {\n declaredField.set(this, findViewById(declaredField.getAnnotation(InjectView.class).value()));\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"protected abstract FragmentComponent setupComponent();",
"@JsonDeserialize()\n@JsonSerialize()\[email protected]({\n\t\tBasicCardBodyFragment.class,\n\t\tCreatedOrderUuidBodyFragment.class,\n\t\tBasicBrandBodyFragment.class,\n\t\tEntityFragment.class,\n\t\tBrandDetailsBodyFragment.class,\n\t\tCardDetailsBodyFragment.class,\n\t\tBasicEntityFragment.class })\n/**\n * Helper class to define immutable objects of the xxxFragments to generate an immutable object. This is because\n * @Value.Immutable cannot be set on xxxFragments since they are used to extend a body which is already defined as\n * immutable\n *\n */\npublic interface FragmentHelper {\n}",
"private <T> void injectField(Class clazz, Field field, T object) {\n T fieldInstance = newInstance(clazz, field.getType());\n setField(field, object, fieldInstance);\n inject(fieldInstance);\n }",
"private void initFragmentAutoInjection() {\n BucketApplication app;\n app = (BucketApplication) getApplication();\n\n getSupportFragmentManager().registerFragmentLifecycleCallbacks(new FragmentLifecycleCallbacks() {\n @Override\n public void onFragmentAttached(FragmentManager fm, Fragment f, Context context) {\n super.onFragmentAttached(fm, f, context);\n if(f instanceof ListingFragment) {\n app.getAppComponentInjector().inject((ListingFragment) f);\n } else if (f instanceof ListingPreferencesFragment) {\n app.getAppComponentInjector().inject((ListingPreferencesFragment) f);\n }\n }\n }, false);\n }",
"private void inflateFragment(int frameID, boolean isAddProperty){\n mAddPropertyFragment = new AddPropertyFragment();\n Bundle bundle = new Bundle();\n bundle.putBoolean(\"isAddProperty\", isAddProperty);\n mAddPropertyFragment.setArguments(bundle);\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.replace(frameID, mAddPropertyFragment); // Set fragment transaction into ***frame_layout_detail***\n transaction.addToBackStack(null);\n transaction.commit();\n }",
"void inject(SubscriberListFragment fragment);",
"private void fillUpFragment() {\n try {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n sensorFragment = getSensorFragment();\n transaction.replace(R.id.sensor_frame, sensorFragment, getSensorName());\n transaction.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void initFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(R.id.contentFrame, fragment);\n transaction.commit();\n }",
"public AbsInputFieldViewController(T field, Fragment frag){\n this.mField = field;\n this.mFrag = frag;\n }",
"void fragment(String fragment);",
"void fragment(String fragment);",
"public static EditFragment newInstance(String emailField, String passwordField, String nameField) {\n EditFragment fragment = new EditFragment();\n Bundle args = new Bundle();\n args.putString(ARG_EMAILFIELD, emailField);\n args.putString(ARG_PASSWORDFIELD, passwordField);\n args.putString(ARG_NAMEFIELD, nameField);\n fragment.setArguments(args);\n return fragment;\n }",
"@Override\n public Fragment getItem(int position) {\n\n Fragment fragment = null;\n Bundle bundle = new Bundle();\n bundle.putString(\"e\", \"test\");\n switch (position) {\n case 0:\n fragment = new OriginalFragment();\n // fragment.setArguments(bundle);\n break;\n\n case 1:\n fragment = new DecodedFragment();\n fragment.setArguments(bundle);\n }\n return fragment;\n }",
"private void addFragments() {\n\n Fragment f = SideFilterFragment.newInstance();\n getFragmentManager().beginTransaction().replace(R.id.side_filter_container, f).commit();\n }",
"private void initFragments() {\n\t\tZhiBoFragment zhiBoFragment = ZhiBoFragment.newInstance(null);\n\t\tzhiBoFragment.setSquareFragmentListener(this);\n\t\tLiaotianFragment liaotianFragment = LiaotianFragment.newInstance(null);\n\t\tliaotianFragment.setSquareFragmentListener(this);\n\t\tfragments.add(zhiBoFragment);\n\t\tfragments.add(liaotianFragment);\n\t\t\n\t\t\n\t}",
"public CarModifyFragment() {\n }",
"InstrumentedType withField(FieldDescription.Token token);",
"@Override\n protected Fragment setFragment() {\n Bundle extras = getIntent().getExtras();\n String photoUrl = extras.getString(EXTRA_URL_PHOTO, \"https://www.flickr.com/images/buddyicon.gif\");\n String photoId = extras.getString(EXTRA_PHOTO_ID);\n String photoUrlNoSecret = extras.getString(EXTRA_URL_PHOTO_NO_SECRET);\n String photoUrlLarge = extras.getString(EXTRA_URL_PHOTO_LARGE);\n\n return PhotoFragment.newInstance(photoUrl, photoId, photoUrlNoSecret, photoUrlLarge);\n }",
"public interface TestInerface {\n public String name = \"asd\";\n BlankFragment qqq = null;\n}",
"@PerFragment\n@Component(dependencies = ApplicationComponent.class, modules = SignUpStaffModule.class)\npublic interface SignUpStaffComponent {\n void inject(SignUpStaffFragment signUpStaffFragment);\n}",
"private void setupFragment(Bundle savedInstanceState) {\n if (findViewById(R.id.fl_caller) != null) {\n // However, if we're being restored from a previous state,\n // then we don't need to do anything and should return or else\n // we could end up with overlapping fragments.\n if (savedInstanceState != null) {\n return;\n }\n\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fl_caller, getActiveFragment())\n .commit();\n }\n }",
"@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }",
"protected void setFragment(Fragment fragment)\n {\n Log.d(TAG, \"setFragment\");\n Bundle args = new Bundle();\n args.putInt(\"index\", itemClicked);\n fragment.setArguments(args);\n\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n fragmentTransaction.add(R.id.details_frame, fragment);\n fragmentTransaction.commit();\n frameLayout.setVisibility(View.VISIBLE);\n }",
"public RegisterFragment() {\n }",
"protected Builder<?> addLocalFieldsToBuilder(Builder<? extends Builder<?>> b) {\n this.members.forEach(m -> b.addMemberVariable(m.toBuilder()));\n return (Builder<?>) super.addLocalFieldsToBuilder(b);\n }",
"public void onFragment( Framedata fragment ) {\n\t\tlog.info( \"received fragment: \" + new String( fragment.getPayloadData().array() ) );\n\t}",
"@SuppressWarnings(\"unchecked\")\n static void injectParams(Object obj) {\n if (obj instanceof Activity || obj instanceof Fragment) {\n String key = obj.getClass().getCanonicalName();\n Class<ParamInjector> clz;\n if (!injectors.containsKey(key)) {\n try {\n clz = (Class<ParamInjector>) Class.forName(key + PARAM_CLASS_SUFFIX);\n injectors.put(key, clz);\n } catch (ClassNotFoundException e) {\n RLog.e(\"Inject params failed.\", e);\n return;\n }\n } else {\n clz = injectors.get(key);\n }\n try {\n ParamInjector injector = clz.newInstance();\n injector.inject(obj);\n } catch (Exception e) {\n RLog.e(\"Inject params failed.\", e);\n }\n } else {\n RLog.e(\"The obj you passed must be an instance of Activity or Fragment.\");\n }\n }",
"@SafeVarargs\r\n\tpublic static void inject(final android.support.v4.app.Fragment fragment, final Bundle savedInstanceState, final Class<? extends Annotation>... kerAnnotationClasses) throws KerException {\r\n\t\t// - Retrieve object's fields.\r\n\t\tfinal Field[] objectFields = KerAnnotation.retrieveAllFields(fragment);\r\n\r\n\t\t// - For each annotations.\r\n\t\tfor (final Class<? extends Annotation> kerAnnotationClass : kerAnnotationClasses) {\r\n\r\n\t\t\tAbstractKerInjector kerInjector;\r\n\r\n\t\t\ttry {\r\n\t\t\t\t// - Retrieve it KerInjector.\r\n\t\t\t\tkerInjector = KerAnnotation.retrieveKerInjector(kerAnnotationClass);\r\n\r\n\t\t\t\t// - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector.\r\n\t\t\t\tif (kerInjector.isInjectable(fragment, savedInstanceState)) {\r\n\t\t\t\t\tfor (final Field field : objectFields) {\r\n\t\t\t\t\t\tif (field.isAnnotationPresent(kerAnnotationClass)) {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tkerInjector.inject(field, fragment, savedInstanceState);\r\n\t\t\t\t\t\t\t} catch (final Throwable cause) {\r\n\t\t\t\t\t\t\t\tthrow new KerException(\"Unable to inject field \" + field.getName() + \" annotated with \" + kerAnnotationClass.getName(), cause);\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\r\n\t\t\t} catch (final Throwable cause) {\r\n\t\t\t\tthrow new KerException(\"Unable to inject fields annotated with \" + kerAnnotationClass.getName(), cause);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"protected abstract void initViewValue(final T field);",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mine, container, false);\n\n mTextView = view.findViewById(R.id.minefragment_textView);\n mTextView.setText(mParam1 + \"_fragment\");\n\n return view;\n }",
"protected abstract Fragment createFragment();",
"public PinEditFragment() {}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n\r\n View v = inflater.inflate(R.layout.fragment_halaman, container, false);\r\n\r\n TextView tv = (TextView) v.findViewById(R.id.tv_halaman);\r\n String halaman = getArguments().getString(EXTRAS);\r\n tv.setText(halaman);\r\n\r\n Log.e(TAG, \"onCreateView : Halaman Fragment\" + halaman);\r\n\r\n return v;\r\n\r\n }",
"@Override\n public void visitFieldInsn(int opcode, String owner, String name, String desc) {\n if(!isFinal(owner, name)) {\n if (isFieldRead(opcode)) {\n callBeforeGetField(opcode, owner, name, getClassName(), getMethodName(), getLastLineNumber());\n } else if(isFieldUpdate(opcode)) {\n callBeforeSetField(opcode, owner, name, Type.getType(desc), getClassName(), getMethodName(), getLastLineNumber());\n }\n }\n\n super.visitFieldInsn(opcode, owner, name, desc);\n }",
"@Override\r\n\tpublic void setFragmentTokens(Hashtable fragmentTokens) {\n\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_fragment_two, container, false);\n Bundle bundle=getArguments();\n textView1=(TextView)v.findViewById(R.id.tv1);\n textView2=(TextView)v.findViewById(R.id.tv2);\n textView3=(TextView)v.findViewById(R.id.tv3);\n textView1.setText(bundle.getString(\"a\"));\n textView2.setText(bundle.getString(\"b\"));\n textView3.setText(bundle.getString(\"c\"));\n return v;\n }",
"void insertVariableFields(String streamColumnFamily, String rowKey,\n Mutator<String> mutator,\n Map<String, String> customKeyValuePairs) {\n for (Map.Entry<String, String> stringStringEntry : customKeyValuePairs.entrySet()) {\n mutator.addInsertion(rowKey, streamColumnFamily,\n HFactory.createStringColumn(stringStringEntry.getKey(),\n stringStringEntry.getValue()));\n }\n }",
"@PerFragment\n@Component(dependencies = AppComponent.class , modules = SaleHandPresenterModule.class)\npublic interface SaleHandFragmentComponent {\n void inject(SaleHandFragment fragment);\n}",
"public void addFragment(Fragment frag, String title){\n fragments.add(frag);\n titles.add(title);\n }",
"public static <T> void injectFields(T instance) {\n getClassHierarchy(instance);\n }",
"public static PlaceholderFragment newInstance(int sectionNumber) {\r\n PlaceholderFragment fragment = new PlaceholderFragment();\r\n Bundle args = new Bundle();\r\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n args.putString(\"alb_post\",inte.getStringExtra(\"detailJSON\"));\r\n fragment.setArguments(args);\r\n return fragment;\r\n }",
"private void attachFragment(String tag){\n floatingActionButton.hide();\n if (tag == null){\n return;\n }\n\n cache.setFragmentTAG(tag);\n fragmentTAG = tag;\n fragment = SelectDataTypeFragment.newInstance(tag);\n\n makeFragmentAttach();\n\n pageTitle = getString(utils.getPageTitleID(fragmentTAG));\n setPageTitle();\n }",
"public void setFragments(Context c) {\n fragA = RecentHighscoreFragment.newInstance(0);\n fragB = RecentHighscoreFragment.newInstance(1);\n fragC = RecentHighscoreFragment.newInstance(2);\n }",
"private void setFragment(Fragment fragments) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.framelayout,fragments);\n fragmentTransaction.commit();\n }",
"@FragmentScope\n@Component(modules = NoticeFragModule.class,dependencies = AppComponent.class)\npublic interface NoticeFragComponent {\n void inject(NoticeFrag demoFrag);\n}",
"@Override\n public void onAttachFragment(Fragment fragment) {\n if (fragment instanceof FollowGoodsFragment){\n mCallEditGoodsFoolow = (CallEditGoodsFoolow) fragment;\n }else if (fragment instanceof FollowStoreFragment){\n mCallEditStoresFoolow = (CallEditStoresFoolow) fragment;\n }\n super.onAttachFragment(fragment);\n }",
"public interface FollowUpFragPresenter {\n\n /*删除评论*/\n void deleteComment(ListView list, int position, String id);\n\n /*发送评论*/\n void requestComment(HashMap<String,Object> map);\n\n /*获取列表数据*/\n void getListData(HashMap<String,Object> map);\n\n}",
"@FragmentScope\n@Component(modules = GirlModel.class)\npublic interface GirlFragmentComponent {\n\n void inject(GirlFragment girlFragment);\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 }",
"private void getFragment(Fragment fragment) {\n // create a FragmentManager\n FragmentManager fm = getFragmentManager();\n // create a FragmentTransaction to begin the transaction and replace the Fragment\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n // replace the FrameLayout with new Fragment\n fragmentTransaction.replace(R.id.fragment_layout, fragment);\n // save the changes\n fragmentTransaction.commit();\n }",
"private void initFragment(Fragment newsFragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.fl_news, newsFragment);\n transaction.commit();\n\n }",
"public static void registerFields(Multimap<String,NormalizedContentInterface> f) {\n fields = f;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_student_profile, container, false);\n ButterKnife.bind(this, view);\n ((App) activity.getApplication()).getNetComponent().inject(this);\n profilePojo = new Profile();\n activity.toolbar.setTitle(getString(R.string.my_profile));\n getProfileDetails();\n bUpdate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n StudentProfileUpdateFragment fragment = new StudentProfileUpdateFragment();\n Bundle args = new Bundle();\n args.putSerializable(Constants.PROFILE, profilePojo);\n fragment.setArguments(args);\n new FragmentUtils(getActivity()).navigateToFragment(R.id.content_main, fragment, StudentProfileUpdateFragment.TAG);\n }\n });\n return view;\n }",
"@Override\n\tpublic void visitFieldInsn(int opcode, String owner, String name, String desc) {\t\t\n\t\tclassAdapter.dependencies.addAll(Utils.getClassNamesFromFieldDesc(desc, classAdapter.ignoredClasses, modifier, Dependency.methodBodyDependency));\n\t\tmv.visitFieldInsn(opcode, owner, name, desc);\n\t}",
"@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n fragmentView = view;\n boolean hasProfile = false;\n //check si on avait des erreur ou un phone et name a ajouter\n if(args != null && !args.isEmpty()){\n try {\n if(args.containsKey(\"msg\")){\n displayErrMsg(args.getInt(\"msg\"));\n }\n if(args.containsKey(\"name\")){\n String name = args.getString(\"name\");\n if(name!= null && !name.isEmpty()){\n ((EditText)fragmentView.findViewById(R.id.userName)).setText(name);\n hasProfile = true;\n }\n }\n if(args.containsKey(\"phone\")){\n String phone = args.getString(\"phone\");\n if(phone != null && !phone.isEmpty()){\n ((EditText)fragmentView.findViewById(R.id.userPhone)).setText(phone);\n hasProfile = true;\n }\n }\n //on set le focus sur le message\n if(hasProfile){\n ((EditText)fragmentView.findViewById(R.id.userMessage)).requestFocus();\n }\n\n }catch(Exception e){\n Tracer.log(TAG, \"onViewCreated.ARGS.exception: \", e);\n }\n\n }\n\n //\n Button buttNext = fragmentView.findViewById(R.id.buttNext);\n //butt create\n buttNext.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n checkMandatoryFieldsAndCreate();\n }\n });\n\n }",
"public AddToCardFragment() {\n }",
"public PerfilFragmentPresenter(IPerfilFragmentView iPerfilFragmentView, Context context) {\n this.iPerfilFragmentView = iPerfilFragmentView;\n this.context = context;\n datosPreferencias = new DatosPreferencias(context); // carga las preferencias\n obtenerPerfil();\n obtenerMediosRecientes();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_blood_pressure, container, false);\n\n BloodPressureFragment.setBloodPressureFragment(this);\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n\n PersonsFragment personsFragment;\n\n if(mParam1.equals(\"A\")||mParam1.equals(\"B\")||mParam1.equals(\"C\")) {\n startFragmentPressureMeasurements(mParam1);\n BloodPressureActivity.getBloodPressureActivity().setTheName(mParam1,\"Πίεση\");\n }\n\n personsFragment = PersonsFragment.newInstance(\"blah\",\"blah\");\n fragmentManager.beginTransaction().add(R.id.container_pressure_top_row,personsFragment).commit();\n\n return view;\n }",
"private void setFragmentParameter(String id) {\n String fragmentParameter;\n if (id == null || id.isEmpty()) {\n fragmentParameter = \"\";\n } else {\n fragmentParameter = id;\n }\n\n UI.getCurrent().navigate(MachinesView.class, fragmentParameter);\n }",
"@Override\n public Fragment getItem(int position) {\n \t mFragment[position] = PlaceholderFragment.newInstance(position);\n return mFragment[position];\n }",
"public HeaderFragment() {}",
"@Override\n public void onFragmentAttached() {\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_top, container, false);\n\n author= (TextView)view.findViewById(R.id.author);\n title= (TextView)view.findViewById(R.id.title);\n year= (TextView)view.findViewById(R.id.year);\n\n Bundle bundle = getArguments();\n String authorText = bundle.getString(\"author\", \"\");\n String titleText = bundle.getString(\"title\", \"\");\n String yearText = bundle.getString(\"year\", \"\");\n\n\n title.setText(titleText);\n author.setText(authorText);\n year.setText(yearText);\n\n return view;\n }",
"public interface NerdMartGraph {\n void inject(NerdMartAbstractFragment fragment);\n}",
"public RegisterFragment() {\n // Required empty public constructor\n }",
"public interface FragmentCallback {\n void addFragment(int container, Class fragment, Bundle params);\n}",
"private void instanciateFragments() {\r\n connectionFragment = new ConnectionFragment();\r\n mNetworkConnectionFragment = new NetworkConnectionFragment();\r\n mMotorFragment = new MotorFragment();\r\n mProcessorFragment = new ProcessorFragment();\r\n mPWMFragment = new PWMFragment();\r\n mOrderTestFragment = new OrderTestFragment();\r\n mTestsFragment = new TestsFragment();\r\n mPositionTestFragment = new PositionTestFragment();\r\n mOrderPilotFragment = new OrderPilotFragment();\r\n mCommandPilotFragment = new CommandPilotFragment();\r\n mPositionPilotFragment = new PositionPilotFragment();\r\n mCartographerFragment = new CartographerFragment();\r\n mHistoryFragment = new HistoryFragment();\r\n }",
"private void setUpFragments() {\n fragmentList = new ArrayList<>();\n\n fragmentList.add(new PostListFragment());\n fragmentList.add(new AboutFragment());\n fragmentList.add(new LoginActivityFragment());\n\n }",
"public void set_is_fragment(boolean is_fragment) {\r\n\t\tis_fragment_ = is_fragment;\r\n\t}",
"@Override\n public Fragment getItem(int position) {\n Bundle args = new Bundle();\n AttVFragment fragment = new AttVFragment();\n args.putInt(AttVFragment.ARG_SECTION_NUMBER, position);\n fragment.setArguments(args);\n return fragment;\n }",
"public void insert(int index, String fragment);",
"public interface FragmentPresenter {\n void onViewCreated();\n void setBusId(String busId);\n void refreshClick();\n RecyclerView.Adapter getAdapter();\n}",
"private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame, fragment);\n fragmentTransaction.commit();\n\n }",
"protected void initFragment(Fragment fragment, String id, int resId) {\n getSupportFragmentManager()\n .beginTransaction()\n .add(resId, fragment, id)\n .addToBackStack(null)\n .commit();\n }",
"public interface AddFarmFragmentView extends BaseView {\n\n\n}",
"protected void setFragments(Fragment fragment1, Fragment fragment2) {\n\t\tFragmentManager fragmentManager = getFragmentManager();\n\t\tFragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\t\tfragmentTransaction.add(R.id.popular1_fragment_container, fragment1, \"popular\");\n\t\tfragmentTransaction.add(R.id.timeline1_fragment_container, fragment2, \"timeline\");\n\t\tfragmentTransaction.commit();\n\n\t}",
"protected void fillAdditionalFields(U user, Map<String, Object> map) {\n\t}",
"InstrumentedType withAuxiliaryField(FieldDescription.Token token, Object value);",
"private final void inject() {\n }",
"private void setFragment(Fragment fragment, String tag){\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n //fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n //fragmentTransaction.add(R.id.content, fragment, tag);\n fragmentTransaction.replace(R.id.content, fragment);\n fragmentTransaction.commit();\n }",
"public void createFragment() {\n\n }",
"public interface MainF4Presenter {\n void loadItem();\n\n public interface fragment{\n void updateView();\n }\n}",
"private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_layout, fragment);\n fragmentTransaction.commit();\n\n }",
"public abstract Fragment getFragment();",
"public void registerSqlFragment(Map<String, String> sqlFragmentMap) {\r\n if (Asserts.isNotNull(sqlFragmentMap)) {\r\n sqlFragments.putAll(sqlFragmentMap);\r\n }\r\n }",
"public interface NoSmokeFragmentInterface {\r\n public void setCountValue(int count);\r\n}",
"public ProfileFragment(){}",
"void putField(String fieldName, Type type, NQJVarDecl field);",
"private void weaveFragment(CtClass classToTransform) throws Exception {\n String body = String.format(\"{ %s.%s(this, this.getContext()); }\", Class.INJECTOR, Method.INJECT);\n log(\"Weaved: %s\", body);\n\n // weave into method\n mAfterBurner.beforeOverrideMethod(classToTransform, Method.ON_ATTACH, body);\n }",
"@Override\n public void attachFragment(Fragment fragment) {\n\n this.playerFragment = fragment; // Attaches the playerFragment to this class.\n\n // If the service has disconnected, the SSMusicService is restarted.\n if (!serviceBound) {\n setUpAudioService(); // Sets up the SSMusicService.\n }\n\n // Attaches the SSPlayerFragment.\n else {\n musicService.attachPlayerFragment(fragment);\n }\n }",
"@Override\n //This will handle how the fragment will display content\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle saveInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_main, container, false);\n\n FeedListView mFeedListView = new FeedListView(getActivity());\n Log.d(TAG, \"MyFragment::onCreate\");\n mFeedListView.inflate(layout);\n\n //Getting a reference to the TextView (as defined in fragment_main) and set it to a value\n Bundle bundle = getArguments();\n\n switch (bundle.getInt(\"point\")){\n case 0:\n //TODO : add tag query\n break;\n case 1:\n //TODO : add tag query\n break;\n case 2:\n //TODO : add tag query\n break;\n case 3:\n //TODO : add tag query\n break;\n default:\n }\n\n return layout;\n }",
"C3454q mo12651a(Fragment fragment, C3676k kVar);",
"void addFieldBinding( FieldBinding binding );"
] | [
"0.6224514",
"0.60213995",
"0.59066945",
"0.5896528",
"0.57742125",
"0.55081904",
"0.5508039",
"0.5498229",
"0.5391869",
"0.53811437",
"0.5374776",
"0.53067154",
"0.53027225",
"0.5272714",
"0.52552366",
"0.5191116",
"0.51443976",
"0.51443976",
"0.51397187",
"0.51127106",
"0.5106608",
"0.5067409",
"0.5039922",
"0.5018222",
"0.50138843",
"0.49942076",
"0.49877676",
"0.49588662",
"0.49421552",
"0.49376824",
"0.493259",
"0.4932444",
"0.49308723",
"0.49220085",
"0.4916744",
"0.49141106",
"0.4910785",
"0.49015662",
"0.48976487",
"0.48872554",
"0.48837218",
"0.48829493",
"0.48813373",
"0.4875022",
"0.48590505",
"0.48586288",
"0.4841829",
"0.48355135",
"0.48342514",
"0.4828396",
"0.4820257",
"0.4816165",
"0.48136336",
"0.48105693",
"0.4808818",
"0.48025903",
"0.48005646",
"0.47921947",
"0.47894278",
"0.47822422",
"0.47782964",
"0.47775546",
"0.47674373",
"0.47483397",
"0.47450766",
"0.4741863",
"0.47410586",
"0.47406545",
"0.47397527",
"0.47353268",
"0.4733611",
"0.47321123",
"0.47239324",
"0.4722368",
"0.47132292",
"0.4709998",
"0.470907",
"0.47068462",
"0.4703076",
"0.4694486",
"0.4694044",
"0.46936256",
"0.46901858",
"0.46847656",
"0.46845478",
"0.46768555",
"0.46765718",
"0.4671317",
"0.46712494",
"0.46702984",
"0.46699882",
"0.4665036",
"0.46578842",
"0.4655807",
"0.46491215",
"0.4643663",
"0.46423855",
"0.46417218",
"0.46386784",
"0.4634284"
] | 0.49480107 | 28 |
Handles methods of a fragment. | @SafeVarargs
public static void handle(final Fragment fragment, final Class<? extends Annotation>... annotationClasses) throws KerException {
// - Retrieve object's methods.
final Method[] objectMethods = KerAnnotation.retrieveAllMethods(fragment);
// - For each annotations.
for (final Class<? extends Annotation> kerAnnotationClass : annotationClasses) {
AbstractKerHandler kerHandler;
try {
// - Retrieve it KerHandler.
kerHandler = KerAnnotation.retrieveKerHandler(kerAnnotationClass);
// - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector.
if (kerHandler.isHandleable(fragment)) {
for (final Method method : objectMethods) {
if (method.isAnnotationPresent(kerAnnotationClass)) {
try {
kerHandler.handle(method, fragment);
} catch (final Throwable cause) {
throw new KerException("Unable to handle method " + method.getName() + " annotated with " + kerAnnotationClass.getName(), cause);
}
}
}
}
} catch (final Throwable cause) {
throw new KerException("Unable to handle method annotated with " + kerAnnotationClass.getName(), cause);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void handleFragmentMessage(String arg0, int arg1, Object arg2) {\n\t\t\r\n\t}",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"protected abstract void fragmentTrigger(Fragment fragment);",
"void onFragmentInteraction(String id);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);"
] | [
"0.69678944",
"0.6843415",
"0.6843415",
"0.6843415",
"0.67739606",
"0.66562164",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297",
"0.65712297"
] | 0.0 | -1 |
Inject fields of a support fragment. | @SafeVarargs
public static void inject(final android.support.v4.app.Fragment fragment, final Bundle savedInstanceState, final Class<? extends Annotation>... kerAnnotationClasses) throws KerException {
// - Retrieve object's fields.
final Field[] objectFields = KerAnnotation.retrieveAllFields(fragment);
// - For each annotations.
for (final Class<? extends Annotation> kerAnnotationClass : kerAnnotationClasses) {
AbstractKerInjector kerInjector;
try {
// - Retrieve it KerInjector.
kerInjector = KerAnnotation.retrieveKerInjector(kerAnnotationClass);
// - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector.
if (kerInjector.isInjectable(fragment, savedInstanceState)) {
for (final Field field : objectFields) {
if (field.isAnnotationPresent(kerAnnotationClass)) {
try {
kerInjector.inject(field, fragment, savedInstanceState);
} catch (final Throwable cause) {
throw new KerException("Unable to inject field " + field.getName() + " annotated with " + kerAnnotationClass.getName(), cause);
}
}
}
}
} catch (final Throwable cause) {
throw new KerException("Unable to inject fields annotated with " + kerAnnotationClass.getName(), cause);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void injectFragment(FragmentComponent fragmentComponent);",
"void inject(MoviesListFragment moviesListFragment);",
"void inject(SubscriberDetailsFragment fragment);",
"@Override\n\tprotected void initParamsForFragment() {\n\n\t}",
"private void initFragmentAutoInjection() {\n BucketApplication app;\n app = (BucketApplication) getApplication();\n\n getSupportFragmentManager().registerFragmentLifecycleCallbacks(new FragmentLifecycleCallbacks() {\n @Override\n public void onFragmentAttached(FragmentManager fm, Fragment f, Context context) {\n super.onFragmentAttached(fm, f, context);\n if(f instanceof ListingFragment) {\n app.getAppComponentInjector().inject((ListingFragment) f);\n } else if (f instanceof ListingPreferencesFragment) {\n app.getAppComponentInjector().inject((ListingPreferencesFragment) f);\n }\n }\n }, false);\n }",
"protected abstract FragmentComponent setupComponent();",
"void inject(WebClientFragment fragment);",
"void inject(SubscriberListFragment fragment);",
"private void injectViews() {\n Field[] declaredFields = getClass().getDeclaredFields();\n for (Field declaredField : declaredFields) {\n if(declaredField.isAnnotationPresent(InjectView.class)) {\n declaredField.setAccessible(true);\n try {\n declaredField.set(this, findViewById(declaredField.getAnnotation(InjectView.class).value()));\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"@JsonDeserialize()\n@JsonSerialize()\[email protected]({\n\t\tBasicCardBodyFragment.class,\n\t\tCreatedOrderUuidBodyFragment.class,\n\t\tBasicBrandBodyFragment.class,\n\t\tEntityFragment.class,\n\t\tBrandDetailsBodyFragment.class,\n\t\tCardDetailsBodyFragment.class,\n\t\tBasicEntityFragment.class })\n/**\n * Helper class to define immutable objects of the xxxFragments to generate an immutable object. This is because\n * @Value.Immutable cannot be set on xxxFragments since they are used to extend a body which is already defined as\n * immutable\n *\n */\npublic interface FragmentHelper {\n}",
"@PerFragment\n@Component(dependencies = ApplicationComponent.class, modules = SignUpStaffModule.class)\npublic interface SignUpStaffComponent {\n void inject(SignUpStaffFragment signUpStaffFragment);\n}",
"private void populateFields(AudioFragment fragment) {\n\t name.setText(fragment.getName());\n fileName.setText(fragment.getPath());\n }",
"private void fillUpFragment() {\n try {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n sensorFragment = getSensorFragment();\n transaction.replace(R.id.sensor_frame, sensorFragment, getSensorName());\n transaction.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@FragmentScope\n@Component(modules = NoticeFragModule.class,dependencies = AppComponent.class)\npublic interface NoticeFragComponent {\n void inject(NoticeFrag demoFrag);\n}",
"@PerFragment\n@Component(dependencies = AppComponent.class , modules = SaleHandPresenterModule.class)\npublic interface SaleHandFragmentComponent {\n void inject(SaleHandFragment fragment);\n}",
"public interface TestInerface {\n public String name = \"asd\";\n BlankFragment qqq = null;\n}",
"private void initFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(R.id.contentFrame, fragment);\n transaction.commit();\n }",
"private void inflateFragment(int frameID, boolean isAddProperty){\n mAddPropertyFragment = new AddPropertyFragment();\n Bundle bundle = new Bundle();\n bundle.putBoolean(\"isAddProperty\", isAddProperty);\n mAddPropertyFragment.setArguments(bundle);\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.replace(frameID, mAddPropertyFragment); // Set fragment transaction into ***frame_layout_detail***\n transaction.addToBackStack(null);\n transaction.commit();\n }",
"@FragmentScope\n@Component(modules = GirlModel.class)\npublic interface GirlFragmentComponent {\n\n void inject(GirlFragment girlFragment);\n}",
"@FragmentScoped\n@Component(dependencies = SnApiComponent.class, modules = NewsListPresenterModule.class)\npublic interface NewsListFragmentComponent {\n\n void inject(NewsListFragment newsListFragment);\n\n}",
"public interface UpdataCurrentFragment {\n void update(Bundle bundle);\n}",
"@Override\n\tprotected void setupFragmentComponent(AppComponent appComponent) {\n\t}",
"@Override\n public void attachFragment(Fragment fragment) {\n\n this.playerFragment = fragment; // Attaches the playerFragment to this class.\n\n // If the service has disconnected, the SSMusicService is restarted.\n if (!serviceBound) {\n setUpAudioService(); // Sets up the SSMusicService.\n }\n\n // Attaches the SSPlayerFragment.\n else {\n musicService.attachPlayerFragment(fragment);\n }\n }",
"@Override\n public void onFragmentAttached() {\n }",
"private void attachFragment(String tag){\n floatingActionButton.hide();\n if (tag == null){\n return;\n }\n\n cache.setFragmentTAG(tag);\n fragmentTAG = tag;\n fragment = SelectDataTypeFragment.newInstance(tag);\n\n makeFragmentAttach();\n\n pageTitle = getString(utils.getPageTitleID(fragmentTAG));\n setPageTitle();\n }",
"public interface MainF4Presenter {\n void loadItem();\n\n public interface fragment{\n void updateView();\n }\n}",
"public interface FollowUpFragPresenter {\n\n /*删除评论*/\n void deleteComment(ListView list, int position, String id);\n\n /*发送评论*/\n void requestComment(HashMap<String,Object> map);\n\n /*获取列表数据*/\n void getListData(HashMap<String,Object> map);\n\n}",
"public interface FragmentCallback {\n void addFragment(int container, Class fragment, Bundle params);\n}",
"public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}",
"private void setupFragment(Bundle savedInstanceState) {\n if (findViewById(R.id.fl_caller) != null) {\n // However, if we're being restored from a previous state,\n // then we don't need to do anything and should return or else\n // we could end up with overlapping fragments.\n if (savedInstanceState != null) {\n return;\n }\n\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fl_caller, getActiveFragment())\n .commit();\n }\n }",
"public interface AddFarmFragmentView extends BaseView {\n\n\n}",
"@FragmentScope\n@Component(dependencies = AppComponent.class,\n modules = WeiXinFragmentModule.class)\npublic interface WeiXinFragmentComponent {\n\n void inject(WeiXinFragment weiXinFragment);\n\n}",
"@PerFragment\n@Subcomponent(modules = MovieListFragmentModule.class)\npublic interface MovieListFragmentSubcomponent {\n\n void inject(MovieListFragment movieListFragment);\n}",
"@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\t if (arg0 != null) {\n\t\t\t arg0.putParcelable(\"android:support:fragments\",null);\n\t }\n\t\t super.onCreate(arg0);\n\t\t requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t setLayout();\n\t\t // 注入控件\n\t ViewUtils.inject(this);\n\t\t init(arg0);\n\t}",
"@SuppressWarnings(\"unchecked\")\n static void injectParams(Object obj) {\n if (obj instanceof Activity || obj instanceof Fragment) {\n String key = obj.getClass().getCanonicalName();\n Class<ParamInjector> clz;\n if (!injectors.containsKey(key)) {\n try {\n clz = (Class<ParamInjector>) Class.forName(key + PARAM_CLASS_SUFFIX);\n injectors.put(key, clz);\n } catch (ClassNotFoundException e) {\n RLog.e(\"Inject params failed.\", e);\n return;\n }\n } else {\n clz = injectors.get(key);\n }\n try {\n ParamInjector injector = clz.newInstance();\n injector.inject(obj);\n } catch (Exception e) {\n RLog.e(\"Inject params failed.\", e);\n }\n } else {\n RLog.e(\"The obj you passed must be an instance of Activity or Fragment.\");\n }\n }",
"@Override\n public Fragment getItem(int position) {\n\n Fragment fragment = null;\n Bundle bundle = new Bundle();\n bundle.putString(\"e\", \"test\");\n switch (position) {\n case 0:\n fragment = new OriginalFragment();\n // fragment.setArguments(bundle);\n break;\n\n case 1:\n fragment = new DecodedFragment();\n fragment.setArguments(bundle);\n }\n return fragment;\n }",
"@Override\n public void onAttachFragment(Fragment fragment) {\n if (fragment instanceof FollowGoodsFragment){\n mCallEditGoodsFoolow = (CallEditGoodsFoolow) fragment;\n }else if (fragment instanceof FollowStoreFragment){\n mCallEditStoresFoolow = (CallEditStoresFoolow) fragment;\n }\n super.onAttachFragment(fragment);\n }",
"protected void fillAdditionalFields(U user, Map<String, Object> map) {\n\t}",
"public interface NoSmokeFragmentInterface {\r\n public void setCountValue(int count);\r\n}",
"@FragmentScope\n@Component(dependencies = AppComponent.class, modules = FragmentModule.class)\npublic interface FragmentComponent {\n\n Activity getActivity();\n\n void inject(SceneFragment sceneFragment);\n void inject(AmuseFragment amuseFragment);\n\n}",
"private void initFragments() {\n\t\tZhiBoFragment zhiBoFragment = ZhiBoFragment.newInstance(null);\n\t\tzhiBoFragment.setSquareFragmentListener(this);\n\t\tLiaotianFragment liaotianFragment = LiaotianFragment.newInstance(null);\n\t\tliaotianFragment.setSquareFragmentListener(this);\n\t\tfragments.add(zhiBoFragment);\n\t\tfragments.add(liaotianFragment);\n\t\t\n\t\t\n\t}",
"private void setupFragments() {\n FragmentManager fm = getSupportFragmentManager();\n sb_frag = (StatusBar)fm.findFragmentById(R.id.statusmarket);\n\n if(sb_frag == null)\n {\n sb_frag = new StatusBar();\n fm.beginTransaction().add(R.id.statusmarket, sb_frag).commit();\n }\n sb_frag.setupInitial(currentPlayer);\n\n ai_frag = (AreaInfo) fm.findFragmentById(R.id.overviewlayout);\n\n //try find the fragment, if it doesnt exist then create it\n if (ai_frag == null) {\n //create the fragment if not exist\n ai_frag = new AreaInfo();\n fm.beginTransaction().add(R.id.overviewlayout, ai_frag).commit();\n }\n\n ai_frag.setCurrentArea(null);\n\n\n\n\n }",
"public interface SetFragmentView extends MvpBaseView {\n /**\n * 获取当前版本\n * @param versionBean\n */\n void getVersion(VersionBean versionBean);\n\n /**\n * 下载APK\n * @param o\n * @param versionBean\n * @param newVersion\n */\n void downLoadApk(File o, VersionBean versionBean, String newVersion);\n}",
"private void addFragments() {\n\n Fragment f = SideFilterFragment.newInstance();\n getFragmentManager().beginTransaction().replace(R.id.side_filter_container, f).commit();\n }",
"@PerListFragment\n@Component(modules={FragmentListModule.class}, dependencies = {AppComponent.class})\npublic interface ListFragmentComponent {\n void inject(ListFragment fragment);\n}",
"@Override\n public void onAttach(@NotNull Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"@Override\n public void onAttach(@NotNull Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"void configureSupportMapFragment(){\n supportMapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);\n }",
"@FragmentScope\n@Component(modules = GatheringModule.class, dependencies = AppComponent.class)\npublic interface GatheringComponent {\n void inject(GatheringFragment gatheringFragment);\n}",
"public interface NerdMartGraph {\n void inject(NerdMartAbstractFragment fragment);\n}",
"public RegisterFragment() {\n }",
"@Component(\n dependencies = AppComponent.class,\n modules = WeatherModule.class\n)\n@PerFragment\npublic interface WeatherComponent extends HasPresenter<WeatherPresenter> {\n void inject(WeatherFragment fragment);\n}",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class, modules = KickStarterListModule.class)\npublic interface KickStarterListComponent {\n void inject(KickStarterListFragment kickStarterListFragment);\n}",
"private void initFragment(Fragment newsFragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.fl_news, newsFragment);\n transaction.commit();\n\n }",
"private void addBaseFragment(Fragment fragment) {\n\n if (mFragmentManager == null)\n mFragmentManager = getSupportFragmentManager();\n\n FragmentTransaction mFragmentTransaction = mFragmentManager.beginTransaction();\n mFragmentTransaction.replace(R.id.content_frame, fragment, fragment.getClass().getSimpleName().toString()).commit();\n\n }",
"private void setUpFragments() {\n fragmentList = new ArrayList<>();\n\n fragmentList.add(new PostListFragment());\n fragmentList.add(new AboutFragment());\n fragmentList.add(new LoginActivityFragment());\n\n }",
"private void configureAndShowDetailFragment(){\n detailFragment = (DetailFragment) getSupportFragmentManager().findFragmentById(R.id.frame_layout_detail);\n\n if (detailFragment == null) {\n // Create new main fragment\n detailFragment = new DetailFragment();\n // Add it to FrameLayout container\n getSupportFragmentManager().beginTransaction()\n .add(R.id.frame_layout_detail, detailFragment)\n .commit();\n }\n }",
"public interface FragmentPresenter {\n void onViewCreated();\n void setBusId(String busId);\n void refreshClick();\n RecyclerView.Adapter getAdapter();\n}",
"void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);",
"protected abstract Fragment createFragment();",
"@Override\r\n\tpublic void onFragmentStart() {\n\t}",
"@Override\n protected Fragment setFragment() {\n Bundle extras = getIntent().getExtras();\n String photoUrl = extras.getString(EXTRA_URL_PHOTO, \"https://www.flickr.com/images/buddyicon.gif\");\n String photoId = extras.getString(EXTRA_PHOTO_ID);\n String photoUrlNoSecret = extras.getString(EXTRA_URL_PHOTO_NO_SECRET);\n String photoUrlLarge = extras.getString(EXTRA_URL_PHOTO_LARGE);\n\n return PhotoFragment.newInstance(photoUrl, photoId, photoUrlNoSecret, photoUrlLarge);\n }",
"@FragmentScope\n@Subcomponent( modules = MoviesFragmentModule.class )\npublic interface MoviesFragmentComponent {\n MoviesFragment inject(MoviesFragment fragment);\n}",
"public interface PersonalFragmentView extends BaseMvpView {\n\n}",
"public interface Linker {\n\n void replaceFragments(int myFragment);\n\n void setTescoProductPrices(ArrayList<String> productPrices);\n\n ArrayList<String> getTescoProductPrices();\n\n void setSuperValuProductPrices(ArrayList<String> productPrices);\n\n ArrayList<String> getSuperValuProductPrices();\n\n void setProductNames(ArrayList<String> productNames);\n\n ArrayList<String> getProductNames();\n\n}",
"void inject(HomeView homeView);",
"public abstract Fragment getFragment();",
"void onFragmentInteraction(Object ref);",
"@FragmentScope\n@Component(dependencies = AppComponent.class,modules = FragmentModule.class)\npublic interface FragmentComponent {\n Activity getActivity();\n\n void inject(HomeFragment homeFragment);\n\n void inject(NewsWebFragment newsWebFragment);\n\n void inject(MyModelFragment myModelFragment);\n}",
"public void registerSqlFragment(Map<String, String> sqlFragmentMap) {\r\n if (Asserts.isNotNull(sqlFragmentMap)) {\r\n sqlFragments.putAll(sqlFragmentMap);\r\n }\r\n }",
"public interface IOrderMagnageActivityView {\n\n /**\n * 初始化商品管理分类\n */\n void initOrderManage(List<Fragment> fragmentList);\n}",
"@Component(modules = NoticePresenterModule.class)\npublic interface NoticeComponent {\n void inject(NoticeFragment fragment);\n}",
"public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}",
"public AbsInputFieldViewController(T field, Fragment frag){\n this.mField = field;\n this.mFrag = frag;\n }",
"private <T> void injectField(Class clazz, Field field, T object) {\n T fieldInstance = newInstance(clazz, field.getType());\n setField(field, object, fieldInstance);\n inject(fieldInstance);\n }",
"public void createFragment() {\n\n }",
"@FragmentScope\n@Component(dependencies = AppComponent.class, modules = FragmentModule.class)\npublic interface FragmentComponent {\n\n Activity getActivity();\n\n void inject(NewsMainFragment newsMainFragment);\n\n void inject(NewsPagerFragment newsPagerFragment);\n\n void inject(JokeFragment jokeFragment);\n\n void inject(WechatMainFragment wechatMainFragment);\n\n void inject(LikeFragment likeFragment);\n}",
"public interface listener_for_frag {\n public void set_movie_model(movie_model s);\n}",
"@PerFragment\n//@Component(dependencies = MovieComponent.class, modules = FragmentModule.class)\n@Subcomponent(modules = FragmentModule.class)\npublic interface FragmentComponent {\n void inject(MainFragment fragment);\n void inject(MovieDetailsFragment fragment);\n void inject(SearchFragment fragment);\n void inject(OnboardingFragment fragment);\n void inject(VerticalGridFragment fragment);\n}",
"private final void inject() {\n }",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class, modules = PlayRankingModule.class)\npublic interface PlayRankingComponent {\n\n void inject(PlayRankingFragment playRankingFragment);\n}",
"private void instanciateFragments() {\r\n connectionFragment = new ConnectionFragment();\r\n mNetworkConnectionFragment = new NetworkConnectionFragment();\r\n mMotorFragment = new MotorFragment();\r\n mProcessorFragment = new ProcessorFragment();\r\n mPWMFragment = new PWMFragment();\r\n mOrderTestFragment = new OrderTestFragment();\r\n mTestsFragment = new TestsFragment();\r\n mPositionTestFragment = new PositionTestFragment();\r\n mOrderPilotFragment = new OrderPilotFragment();\r\n mCommandPilotFragment = new CommandPilotFragment();\r\n mPositionPilotFragment = new PositionPilotFragment();\r\n mCartographerFragment = new CartographerFragment();\r\n mHistoryFragment = new HistoryFragment();\r\n }",
"private static void includeExtract(IASTPreprocessorIncludeStatement include) {\n\t\tvxlFragment.append(VxlManager.includeDirective(StringProcessor.processString(include.getName().toString())));\n\t}",
"@Override\r\n\tpublic void onFragmentCreate(Bundle savedInstanceState) {\n\t}",
"public GiftCardProductQuery addFragmentReference(Fragment<GiftCardProductQuery> fragment) {\n startField(\"...\" + fragment.getName());\n return this;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n\r\n View v = inflater.inflate(R.layout.fragment_halaman, container, false);\r\n\r\n TextView tv = (TextView) v.findViewById(R.id.tv_halaman);\r\n String halaman = getArguments().getString(EXTRAS);\r\n tv.setText(halaman);\r\n\r\n Log.e(TAG, \"onCreateView : Halaman Fragment\" + halaman);\r\n\r\n return v;\r\n\r\n }",
"@Override\n public void onAttach(@NonNull final Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"@Override\n public void onAttach(@NonNull final Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"public CarModifyFragment() {\n }",
"@Override\r\n public void setFragment(FragmentManager fragmentManager) {\n\r\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }",
"protected void setFragment(Fragment fragment)\n {\n Log.d(TAG, \"setFragment\");\n Bundle args = new Bundle();\n args.putInt(\"index\", itemClicked);\n fragment.setArguments(args);\n\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n fragmentTransaction.add(R.id.details_frame, fragment);\n fragmentTransaction.commit();\n frameLayout.setVisibility(View.VISIBLE);\n }",
"@Override\n public void onAttachFragment(@NonNull Fragment fragment) {\n super.onAttachFragment(fragment);\n if(fragment.getClass() == ListFragment.class)\n lista = (ListFragment)fragment;\n else if(fragment.getClass() == DataFragment.class)\n datos = (DataFragment)fragment;\n }",
"public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}",
"public RegisterFragment() {\n // Required empty public constructor\n }",
"@FragmentScoped\n@Component(dependencies = ServiceComponent.class, modules = DetailPresenterModule.class)\npublic interface DetailPresenterComponent {\n void inject(DetailFragment detailFragment);\n}",
"public GiftCardProductQuery addProductInterfaceFragmentReference(Fragment<ProductInterfaceQuery> fragment) {\n startField(\"...\" + fragment.getName());\n return this;\n }",
"InstrumentedType withField(FieldDescription.Token token);",
"public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}",
"private void setFragment() {\r\n dataModelArrayList.clear();\r\n fm = getSupportFragmentManager();\r\n mTaskFragment = (ViewPagerAsyncTask) fm.findFragmentByTag(TAG_TASK_FRAGMENT);\r\n\r\n // If the Fragment is non-null, then it is currently being\r\n // retained across a configuration change.\r\n if (mTaskFragment == null) {\r\n mTaskFragment = new ViewPagerAsyncTask();\r\n fm.beginTransaction().add(mTaskFragment, TAG_TASK_FRAGMENT).commit();\r\n }\r\n }",
"public void resolve()\n{\n getFragment().resolveFragment();\n}"
] | [
"0.63519853",
"0.60980254",
"0.5960714",
"0.592849",
"0.58987427",
"0.58165985",
"0.57536125",
"0.56082016",
"0.55387604",
"0.55235714",
"0.5418017",
"0.5391076",
"0.5379",
"0.53552943",
"0.53215694",
"0.5294693",
"0.52902436",
"0.5250404",
"0.52341187",
"0.52292335",
"0.51641834",
"0.5153541",
"0.5149531",
"0.5141704",
"0.51413053",
"0.5113063",
"0.5110077",
"0.5106031",
"0.50926894",
"0.50922114",
"0.50862324",
"0.5080396",
"0.50730455",
"0.505911",
"0.501371",
"0.50072443",
"0.50065815",
"0.50017273",
"0.49949074",
"0.49725673",
"0.4969274",
"0.49536595",
"0.49515796",
"0.49502856",
"0.49437448",
"0.49309784",
"0.49309784",
"0.49269643",
"0.4926348",
"0.49221635",
"0.49191457",
"0.49160963",
"0.49044782",
"0.49032608",
"0.49024725",
"0.48992056",
"0.48800167",
"0.48793367",
"0.4872852",
"0.4870159",
"0.48688516",
"0.4865221",
"0.48647138",
"0.4860924",
"0.4859763",
"0.48585248",
"0.48576835",
"0.48507556",
"0.48505205",
"0.48378125",
"0.48374048",
"0.4832878",
"0.48327518",
"0.48260805",
"0.48240858",
"0.48237026",
"0.48237017",
"0.48224455",
"0.48067248",
"0.4806651",
"0.4805476",
"0.48017028",
"0.47981524",
"0.47977585",
"0.47972423",
"0.47969753",
"0.47888738",
"0.47888738",
"0.47855768",
"0.47761485",
"0.47753453",
"0.47753224",
"0.47725502",
"0.47712827",
"0.47602123",
"0.47578663",
"0.47552514",
"0.47516507",
"0.47509167",
"0.47482654",
"0.47442615"
] | 0.0 | -1 |
Handles methods of a support fragment. | @SafeVarargs
public static void handle(final android.support.v4.app.Fragment fragment, final Class<? extends Annotation>... annotationClasses) throws KerException {
// - Retrieve object's methods.
final Method[] objectMethods = KerAnnotation.retrieveAllMethods(fragment);
// - For each annotations.
for (final Class<? extends Annotation> kerAnnotationClass : annotationClasses) {
AbstractKerHandler kerHandler;
try {
// - Retrieve it KerHandler.
kerHandler = KerAnnotation.retrieveKerHandler(kerAnnotationClass);
// - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector.
if (kerHandler.isHandleable(fragment)) {
for (final Method method : objectMethods) {
if (method.isAnnotationPresent(kerAnnotationClass)) {
try {
kerHandler.handle(method, fragment);
} catch (final Throwable cause) {
throw new KerException("Unable to handle method " + method.getName() + " annotated with " + kerAnnotationClass.getName(), cause);
}
}
}
}
} catch (final Throwable cause) {
throw new KerException("Unable to handle method annotated with " + kerAnnotationClass.getName(), cause);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"void OpenFragmentInteraction();",
"void onFragmentInteraction(Object ref);",
"void onFragmentInteraction(View v);",
"void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);",
"protected abstract void fragmentTrigger(Fragment fragment);",
"@Override\r\n\tpublic void handleFragmentMessage(String arg0, int arg1, Object arg2) {\n\t\t\r\n\t}",
"@Override\n public void onFragmentInteraction(Uri uri){\n }",
"@Override\n public void onFragmentInteraction(Uri uri){\n }",
"void onFragmentInteraction(String id);",
"void onFragmentInteractionMain();",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }",
"void onFragmentInteraction(int spotId);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"@Override\n public void onFragmentInteraction(Uri uri) {\n }",
"@Override\n public void onFragmentInteraction(Uri uri) {\n }",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);",
"void onFragmentInteraction(Uri uri);"
] | [
"0.68502116",
"0.68502116",
"0.68502116",
"0.67535895",
"0.6699113",
"0.6596706",
"0.6586455",
"0.657982",
"0.654359",
"0.65124387",
"0.65124387",
"0.64855134",
"0.64233214",
"0.642108",
"0.6413755",
"0.6404145",
"0.6404145",
"0.6404145",
"0.6404145",
"0.6404145",
"0.6404145",
"0.6404145",
"0.6404145",
"0.6404145",
"0.6404145",
"0.6404145",
"0.63933647",
"0.63933647",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215",
"0.63251215"
] | 0.0 | -1 |
Retrieve annotation KerInjector from cache or instantiate it if necessary. | public static AbstractKerInjector retrieveKerInjector(final Class<? extends Annotation> annotationClass) throws InstantiationException, IllegalAccessException {
AbstractKerInjector kerInjector = null;
// - Retrieve remembered KerInjector instance if exists.
if (KerAnnotation.kerInjectorInstances.containsKey(annotationClass)) {
kerInjector = KerAnnotation.kerInjectorInstances.get(annotationClass);
}
// - Else instantiate it if necessary
else {
// - Retrieve KerInjector.
final KerInjector kerInjectorAnnotation = annotationClass.getAnnotation(KerInjector.class);
final Class<? extends AbstractKerInjector> kerInjectorClass = kerInjectorAnnotation.value();
// - Instantiate it.
kerInjector = kerInjectorClass.newInstance();
// - Remember it.
KerAnnotation.kerInjectorInstances.put(annotationClass, kerInjector);
}
return kerInjector;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized Annotator get(String name) {\n CachedAnnotator factory;\n synchronized (factories) {\n factory = this.factories.get(name);\n }\n if (factory == null) {\n throw new IllegalArgumentException(\"No annotator named \" + name);\n }\n Pair<String, String> key = Pair.makePair(name, factory.signature);\n Optional<Annotator> annotator;\n synchronized (cache) {\n annotator = Optional.ofNullable(cache.get(key)).flatMap(x -> Optional.ofNullable(x.get()));\n }\n if (!annotator.isPresent()) {\n annotator = Optional.of(factory.annotator.get());\n }\n synchronized (cache) {\n cache.put(key, new SoftReference<>(annotator.orElse(null))); // will never be null though\n }\n\n // Return\n if (annotator.isPresent()) {\n return annotator.get();\n } else {\n throw new IllegalStateException(\"Logic error in AnnotatorPool#get()\"); // should be impossible\n }\n }",
"public static AbstractKerHandler retrieveKerHandler(final Class<? extends Annotation> annotationClass) throws InstantiationException, IllegalAccessException {\r\n\t\tAbstractKerHandler kerHandler = null;\r\n\r\n\t\t// - Retrieve remembered KerInjector instance if exists.\r\n\t\tif (KerAnnotation.kerHandlerInstances.containsKey(annotationClass)) {\r\n\t\t\tkerHandler = KerAnnotation.kerHandlerInstances.get(annotationClass);\r\n\t\t}\r\n\t\t// - Else instantiate it if necessary\r\n\t\telse {\r\n\t\t\t// - Retrieve KerInjector.\r\n\t\t\tfinal KerHandler kerHandlerAnnotation = annotationClass.getAnnotation(KerHandler.class);\r\n\t\t\tfinal Class<? extends AbstractKerHandler> kerHanderClass = kerHandlerAnnotation.value();\r\n\r\n\t\t\t// - Instantiate it.\r\n\t\t\tkerHandler = kerHanderClass.newInstance();\r\n\r\n\t\t\t// - Remember it.\r\n\t\t\tKerAnnotation.kerHandlerInstances.put(annotationClass, kerHandler);\r\n\t\t}\r\n\r\n\t\treturn kerHandler;\r\n\t}",
"AnnotationProvider getClassAnnotationProvider();",
"public synchronized T get(Scope scope) {\n if (instance != null) {\n return instance;\n }\n\n if (providerInstance != null) {\n if (isProvidingSingleton) {\n instance = providerInstance.get();\n return instance;\n }\n\n return providerInstance.get();\n }\n\n if (factoryClass != null && factory == null) {\n factory = FactoryLocator.getFactory(factoryClass);\n this.isSingleton |= factory.hasSingletonAnnotation();\n this.isReleasable |= (this.isSingleton && factory.hasReleasableAnnotation());\n // gc\n factoryClass = null;\n }\n\n if (factory != null) {\n if (isSingleton) {\n instance = factory.createInstance(scope);\n\n if (!isReleasable) {\n // gc\n factory = null;\n }\n\n return instance;\n }\n\n return factory.createInstance(scope);\n }\n\n if (providerFactoryClass != null && providerFactory == null) {\n providerFactory = FactoryLocator.getFactory(providerFactoryClass);\n this.isSingleton |= providerFactory.hasSingletonAnnotation();\n this.isReleasable |= (this.isSingleton && providerFactory.hasReleasableAnnotation());\n this.isProvidingSingleton |= providerFactory.hasProvidesSingletonAnnotation();\n this.isProvidingReleasable |=\n (this.isProvidingSingleton && providerFactory.hasProvidesReleasableAnnotation());\n\n // gc\n providerFactoryClass = null;\n }\n\n if (providerFactory != null) {\n if (isSingleton) {\n providerInstance = providerFactory.createInstance(scope);\n\n if (!isReleasable) {\n // gc\n providerFactory = null;\n }\n\n if (isProvidingSingleton) {\n instance = providerInstance.get();\n return instance;\n }\n return providerInstance.get();\n }\n\n if (isProvidingSingleton) {\n instance = providerFactory.createInstance(scope).get();\n\n if (!isProvidingReleasable) {\n // gc\n providerFactory = null;\n }\n return instance;\n }\n\n return providerFactory.createInstance(scope).get();\n }\n\n throw new IllegalStateException(\n \"A provider can only be used with an instance, a provider, a factory or a provider factory. Should not happen.\");\n }",
"protected final Injector getInjector() {\n return injector;\n }",
"private static KeyStrokeMapProvider getGenerator() {\n if (generator == null) {\n try {\n String gname =\n System.getProperty(\"abbot.keystroke_map_generator\",\n \"abbot.tester.KeyStrokeMap\");\n if (gname != null) {\n generator = (KeyStrokeMapProvider)\n Class.forName(gname).newInstance();\n }\n }\n catch(Exception e) {\n Log.warn(e);\n }\n }\n return generator;\n }",
"private static Injector instance() {\n if (instance == null) {\n instance = new Injector();\n }\n \n return instance;\n }",
"public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}",
"public interface InjectorWrapper {\n\tApplicationInjector getInjector();\n}",
"void injectorClassLoader() {\n\t\t//To get the package name\n\t\tString pkgName = context.getPackageName();\n\t\t//To get the context\n\t\tContext contextImpl = ((ContextWrapper) context).getBaseContext();\n\t\t//Access to the Activity of the main thread\n\t\tObject activityThread = null;\n\t\ttry {\n\t\t\tactivityThread = Reflection.getField(contextImpl, \"mMainThread\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Get package container\n\t\tMap mPackages = null;\n\t\ttry {\n\t\t\tmPackages = (Map) Reflection.getField(activityThread, \"mPackages\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//To obtain a weak reference object, the standard reflection\n\t\tWeakReference weakReference = (WeakReference) mPackages.get(pkgName);\n\t\tif (weakReference == null) {\n\t\t\tlog.e(\"loadedApk is null\");\n\t\t} else {\n\t\t\t//Get apk need to be loaded\n\t\t\tObject loadedApk = weakReference.get();\n\t\t\t\n\t\t\tif (loadedApk == null) {\n\t\t\t\tlog.e(\"loadedApk is null\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (appClassLoader == null) {\n\t\t\t\t//Access to the original class loader\n\t\t\t\tClassLoader old = null;\n\t\t\t\ttry {\n\t\t\t\t\told = (ClassLoader) Reflection.getField(loadedApk,\n\t\t\t\t\t\t\t\"mClassLoader\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//According to the default class loader instantiate a plug-in class loader\n\t\t\t\tappClassLoader = new SyknetAppClassLoader(old, this);\n\t\t\t}\n\t\t\t//Replace the new plug-in loader loader by default\n\t\t\ttry {\n\t\t\t\tReflection.setField(loadedApk, \"mClassLoader\", appClassLoader);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private AccessTypeInjector getInjector(String classCanonicalName) {\n try {\n for (AccessTypeInjector injector : accessTypeInjectors\n .select(new AccessTypeInjector.Selector(classCanonicalName))) {\n return injector;\n }\n } catch (Exception e) {\n log.error(\"No access type injector found for class name: {}\", classCanonicalName, e);\n }\n return null;\n }",
"public synchronized Injector get() throws InjectorException {\n Injector injector = injectors.get();\n if (injector == null) {\n throw new InjectorException(\"No injector was found\");\n }\n\n return injector;\n }",
"private InjectorManager() {\n // no prepared injectors\n }",
"private Element get(final Class<? extends Annotation> annotation) {\n return new MockElement(annotation);\n }",
"@Override\n public AndroidInjector<Object> androidInjector(Class<?> cls) {\n injectIfNecessary(cls);\n\n return androidInjector;\n }",
"protected Injector createInjector() {\n FactoryFinder finder = new FactoryFinder();\n try {\n return (Injector)finder.newInstance(\"Injector\");\n } catch (NoFactoryAvailableException e) {\n return new ReflectionInjector();\n } catch (IllegalAccessException e) {\n throw new RuntimeCamelException(e);\n } catch (InstantiationException e) {\n throw new RuntimeCamelException(e);\n } catch (IOException e) {\n throw new RuntimeCamelException(e);\n } catch (ClassNotFoundException e) {\n throw new RuntimeCamelException(e);\n }\n }",
"public <T extends Annotation> T findAnnotation(final Class<T> type, final InvocationContext context) {\n final Class<?> target = ofNullable(context.getTarget())\n .flatMap(it -> UnwrappedCache.Tool.unwrap(unwrappedCache.getUnwrappedCache(), it))\n .orElseGet(() -> Class.class.cast(context.getMethod().getDeclaringClass()));\n return findAnnotation(type, manager.createAnnotatedType(target), context.getMethod());\n }",
"private Injector() {\n }",
"@SuppressWarnings({ \"null\", \"unused\" })\n @Override\n public InjectAnnotationProcessor2 createAnnotationProcessor(final AnnotatedElement element) {\n SlingObject annotation = element.getAnnotation(SlingObject.class);\n if (annotation != null) {\n return new SlingObjectAnnotationProcessor(annotation);\n }\n return null;\n }",
"protected Injector() {\n }",
"public interface AnnotationAccess\n{\n /**\n * Returns a provider for annotations on the service class and interface. This will reflect annotations defined by\n * the implementation class itself, plus annotations defined by the service interface (implementation class\n * annotations take precedence).\n * @return an AnnotationProvider instance.\n */\n AnnotationProvider getClassAnnotationProvider();\n\n /**\n * Returns a provider for annotations of a method of the class. This includes annotations on\n * the implementation method, plus annotations on the corresponding service interface method\n * (if such a method exists), with precedence on the implementation class method annotations.\n * @param methodName the name of the method.\n * @param parameterTypes the types of the parameters of the method.\n * @return an AnnotationProvider instance. * \n */\n AnnotationProvider getMethodAnnotationProvider(String methodName, Class... parameterTypes);\n\n}",
"public <T extends Annotation> T loadAnnotation(Class<T> type) {\n\t\tAnnotationMirror mirror = getAnnotation(type);\n\t\tif(mirror == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn mirror.getProxy(type);\n\t}",
"@GinModules(MyAppGinModule.class)\npublic interface MyAppGinjector extends Ginjector {\n\n String ANNOTATED_STRING_VALUE = \"abc\";\n\n MyApp getMyApp();\n\n SimpleObject getSimple();\n\n MyService getMyService();\n\n MyServiceImpl getMyServiceImpl();\n\n MyProvided getMyProvided();\n\n @Named(\"blue\") SimpleObject getSimpleBlue();\n @Named(\"red\") SimpleObject getSimpleRed();\n\n EagerObject getEagerObject();\n\n // Providers we never bound explicitly -- they should be synthesized\n // since we bound the keys directly\n Provider<SimpleObject> getSimpleProvider();\n @Named(\"blue\") Provider<SimpleObject> getSimpleBlueProvider();\n\n @MyBindingAnnotation String getAnnotatedString();\n\n MyRemoteServiceAsync getMyRemoteServiceAsync();\n}",
"private static Cache getCacheInstance() {\r\n\t\tif( cache == null ) {\r\n\t\t\ttry {\r\n\t\t\t\tCacheFactory cf = CacheManager.getInstance().getCacheFactory();\r\n\t\t\t\tcache = cf.createCache(Collections.emptyMap());\r\n\t\t\t} catch (CacheException e) {\r\n\t\t\t\tlog.log(Level.SEVERE, \"can not initialize cache\", e);\r\n\t\t\t\tcache = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cache;\r\n\t}",
"public <T> T getInstance(TypeLiteral<T> type,\n Annotation annotation) {\n return getLocator(Key.get(type, annotation)).get();\n }",
"public interface AnnotationReader\r\n{\r\n /**\r\n * Accessor for the annotations packages supported by this reader.\r\n * @return The annotations packages that will be processed.\r\n */\r\n String[] getSupportedAnnotationPackages();\r\n\r\n /**\r\n * Method to get the MetaData for a class from its annotations.\r\n * @param cls The class\r\n * @param pmd MetaData for the owning package (that this will be a child of)\r\n * @param clr ClassLoader resolver\r\n * @return The ClassMetaData (unpopulated and uninitialised)\r\n */\r\n AbstractClassMetaData getMetaDataForClass(Class cls, PackageMetaData pmd, ClassLoaderResolver clr);\r\n\r\n /**\r\n * Method to return whether this is reading in a persistence context.\r\n * @return Whether this is a persistence context\r\n */\r\n boolean isPersistenceContext();\r\n}",
"public interface PermissionService {\n\n @Caching()\n public SysPermission findByUrl(String url);\n\n}",
"@Test\n public void testLazyInstantiation()\n {\n Injector injector = GuiceInjectors.makeStartupInjectorWithModules(\n ImmutableList.of(\n new GcpMockModule()\n {\n\n @Override\n public HttpRequestInitializer mockRequestInitializer(\n HttpTransport transport,\n JsonFactory factory\n )\n {\n throw new UnsupportedOperationException(\"should not be called, because this should be lazy\");\n }\n },\n new GoogleStorageDruidModule()\n )\n );\n final GoogleStorage instance = injector.getInstance(GoogleStorage.class);\n Assert.assertSame(instance, injector.getInstance(GoogleStorage.class));\n }",
"public static synchronized IToolkitInterceptor getInstance() {\r\n return getCompositeHolder().getToolkitInterceptor();\r\n }",
"public OAuth2Manager get() {\n OAuth2Manager a = this.f30636a.mo34992a((C11818g) this.f30637b.get(), (C11766a) this.f30638c.get(), (C13325v) this.f30639d.get(), (C11125d) this.f30640e.get(), C12020b.m31668a(this.f30641f), (C11791e) this.f30642g.get(), C12020b.m31668a(this.f30643h));\n C12021c.m31671a(a, \"Cannot return null from a non-@Nullable @Provides method\");\n return a;\n }",
"public AnnotationManager getAnnotationManager() {\n\t\treturn null;\n\t}",
"@GinModules(InjectorModule.class)\npublic interface Injector extends Ginjector {\n PlaceHistoryHandler getPlaceHistoryHandler();\n MainView getAppWidget();\n}",
"static Provider<?> getProviderForExpression(Injector injector,\n String expression) {\n try {\n Class<?> type = Classes.loadClass(expression,\n JndiBindings.class.getClassLoader());\n return injector.getProvider(type);\n } catch (ClassNotFoundException e) {\n return null;\n }\n }",
"public static AnnotationIntrospector makeAnnotationIntrospector()\n {\n return new GuiceAnnotationIntrospector()\n {\n @Override\n public JacksonInject.Value findInjectableValue(AnnotatedMember m)\n {\n return null;\n }\n };\n }",
"public IProvider provider();",
"@Bean\n\t @ConditionalOnBean(TokenEnhancer.class)\n\t public TokenEnhancer jwtTokenEnhancer() {\n\t\t return new TokenJwtEnhancer();\n\t }",
"private static ProtobufMetadataManagerImpl getProtobufMetadataManager(EmbeddedCacheManager cacheManager) {\n if (cacheManager == null) {\n throw new IllegalArgumentException(\"cacheManager cannot be null\");\n }\n ProtobufMetadataManagerImpl metadataManager = (ProtobufMetadataManagerImpl) cacheManager.getGlobalComponentRegistry().getComponent(ProtobufMetadataManager.class);\n if (metadataManager == null) {\n throw new IllegalStateException(\"ProtobufMetadataManager not initialised yet!\");\n }\n return metadataManager;\n }",
"public Reflector getReflector(Class<?> type) {\n notNull(type, \"type cannot be null\");\n\n try {\n // check cache\n Reflector reflector = (Reflector)reflectorCache.get(type);\n if (reflector != null) {\n return reflector;\n }\n\n // look up factory\n ReflectorFactory factory = (ReflectorFactory)factories.get(type);\n if (factory == null) {\n // get factory class\n Class<?> clazz = (Class<?>)factoryMappings.get(type);\n if (clazz == null) {\n clazz = defaultFactoryClass;\n }\n\n // create and cache factory\n factory = (ReflectorFactory)clazz.newInstance();\n factories.put(type, factory);\n }\n\n // create and cache reflector\n reflector = factory.createReflector(type);\n reflectorCache.put(type, reflector);\n\n // return reflector\n return reflector;\n }\n catch (ReflectException e) {\n throw e;\n }\n catch (Exception e) {\n throw new ReflectException(\"failed to create reflector for type: \" + type.getName(), e);\n }\n }",
"public static QueryService getInstance() {\n\t \t// Use the service loader to load an implementation if one is available\n\t \t// Place a file called uk.ac.ox.it.ords.api.structure.service.CommentService in src/main/resources/META-INF/services\n\t \t// containing the classname to load as the CommentService implementation. \n\t \t// By default we load the Hibernate/Postgresql implementation.\n\t \t//\n\t \tif (provider == null){\n\t \t\tServiceLoader<QueryService> ldr = ServiceLoader.load(QueryService.class);\n\t \t\tfor (QueryService service : ldr) {\n\t \t\t\t// We are only expecting one\n\t \t\t\tprovider = service;\n\t \t\t}\n\t \t}\n\t \t//\n\t \t// If no service provider is found, use the default\n\t \t//\n\t \tif (provider == null){\n\t \t\tprovider = new QueryServiceImpl();\n\t \t}\n\t \t\n\t \treturn provider;\n\t }",
"public void init() {\n\t\tif (cache != null) {\n\t\t\tcache.dispose();\n\t\t\tcache = null;\n\t\t}\n\t\tcache = cacheFactory.create(CacheFactoryDirective.NoDCE, \"test\");\n\t}",
"protected void getCacheManager()\n {\n try\n {\n if ( cacheMgr == null )\n {\n cacheMgr = CompositeCacheManager.getInstance();\n\n if ( log.isDebugEnabled() )\n {\n log.debug( \" groupcache cacheMgr = \" + cacheMgr );\n }\n }\n else\n {\n if ( log.isDebugEnabled() )\n {\n log.debug( \"already got groupcache cacheMgr = \" + cacheMgr );\n }\n }\n }\n catch ( Exception e )\n {\n log.error( e );\n }\n }",
"public static Class<?> getProvider() {\n return provider;\n }",
"@objid (\"13e63a4b-fab3-4b16-b7f9-69b4d6187c94\")\n ProvidedInterface getProvider();",
"default void onDiscovery(@Nonnull A annotation, @Nonnull Class<? extends C> type) {\n }",
"@VisibleForTesting\n public IActivityManager injectIActivityManager() {\n return ActivityManager.getService();\n }",
"@Override\n\tpublic <T> T construct(Class<T> type) {\n\t\treturn injector.getInstance(type);\n\t}",
"public static KeggAccessor getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new KeggAccessor();\n\t\t}\n\t\treturn instance;\n\t}",
"static KeyExtractor.Factory fromAnnotation(Class<? extends Annotation> annotation) {\n Objects.requireNonNull(annotation, \"annotation\");\n\n Predicate<Member> predicate = m -> m instanceof AnnotatedElement\n && ((AnnotatedElement) m).isAnnotationPresent(annotation);\n\n // there can be multiple members with the same annotation\n Function<Class<?>, List<Member>> membersFn = type -> ClassScanner.of(type)\n .stream()\n .filter(predicate)\n .collect(Collectors.toList());\n\n return entityType -> {\n Objects.requireNonNull(entityType, \"entityType\");\n List<Member> members = membersFn.apply(entityType);\n if (members.isEmpty()) {\n // be strict and don't allow entities without a key\n throw new IllegalArgumentException(String.format(\"Annotation %s not found in members of %s\", annotation.getName(), entityType));\n }\n\n if (members.size() == 1) {\n return new KeyExtractors.SingleMember(entityType, members.get(0));\n }\n\n return new KeyExtractors.MultipleMembers(entityType, members);\n };\n }",
"interface Injector {\n void inject(InternalContext context, Object o);\n }",
"@Override\n\tpublic InvocationInstrumenter newInvocationInstrumenter() {\n\t\treturn AuthInfoContext.current()\n\t\t\t\t.map(LocalInstrumenter::new)\n\t\t\t\t.orElse(null);\n\t}",
"public synchronized DocumentAnalyser getAnalyserForName(String analyserName) throws AnalyserNotFoundException, AnalyserInstantiationException {\n\n\t\t//check if the analyser exist\n\t\tif (this.analyserPools.containsKey(analyserName)) {\n\t\t\t// Get pool for analyser type\n\t\t\tAnalyserPool analyserPool = analyserPools.get(analyserName);\n\n\t\t\t// return new proxy\n\t\t\treturn new AnalyserProxy(analyserPool);\n\n\t\t} else {\n\t\t\t//if not exist throw an exception\n\t\t\tthrow new AnalyserNotFoundException(\"analyser \" + analyserName + \" not found\");\n\t\t}\n\t}",
"private Object getInstance(Annotation label) throws Exception {\r\n ExtractorBuilder builder = getBuilder(label);\r\n Constructor factory = builder.getConstructor();\r\n \r\n if(!factory.isAccessible()) {\r\n factory.setAccessible(true);\r\n }\r\n return factory.newInstance(contact, label, format); \r\n }",
"public interface CacheProviders {\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<Topic>>> getTopics(Observable<List<Topic>> topics, DynamicKeyGroup nodeIdAndOffset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<Topic>>> getUserCreateTopics(Observable<List<Topic>> topics, DynamicKey offset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<Topic>>> getUserFavorites(Observable<List<Topic>> topics, DynamicKey offset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<TopicDetail>> getTopicDetail(Observable<TopicDetail> topic, DynamicKey id, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<UserDetailInfo>> getUserInfo(Observable<UserDetailInfo> user, DynamicKey id, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<News>>> getNews(Observable<List<News>> news, DynamicKeyGroup nodeIdAndOffset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<Notification>>> getNotifications (Observable<List<Notification>> notifications, DynamicKey offset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<Site>>> getSite(Observable<List<Site>> sites, DynamicKey offset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<UserInfo>>> getUserFollowing(Observable<List<UserInfo>> users, DynamicKeyGroup usernameAndOffset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<com.example.bill.epsilon.bean.topic.Reply>>> getUserReplies(Observable<List<com.example.bill.epsilon.bean.topic.Reply>> replies, DynamicKeyGroup usernameAndOffset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<TopicReply>>> getReplies(Observable<List<TopicReply>> replies, DynamicKeyGroup idAndOffset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<Node>>> readNodes(Observable<List<Node>> nodes, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<NewsNode>>> readNewsNodes(Observable<List<NewsNode>> nodes, EvictProvider evictProvider);\n}",
"private AnagramService() {\n\t}",
"public PojoCache getPojoCache();",
"public static EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}",
"@Override // javax.inject.Provider\n public Analytics get() {\n return (Analytics) Preconditions.checkNotNullFromComponent(this.a.analytics());\n }",
"public AnnotationMirror getAnnotation(Class<? extends Annotation> annotation) {\n\t\tString jvmName = ClassUtils.getJVMName(annotation);\n\t\tfor(AnnotationMirror a : getAnnotations()) {\n\t\t\tif(a.getType().getJVMName().equals(jvmName)) {\n\t\t\t\treturn a;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass) {\n\t\treturn null;\n\t}",
"protected Provider() {}",
"public ICodeReaderCache getCodeReaderCache() {\n \t\treturn null;\n \t}",
"@Override\n\t\t\tpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass) {\n\t\t\t\treturn null;\n\t\t\t}",
"Annotation getAnnotation();",
"@PostConstruct\r\n\tprivate void init()\r\n\t{\r\n\t\tSet<Method> freeMarkerMethods = classScannerService.getMethodsAnnotatedWith(FreeMarkerMethod.class);\r\n\t\t\r\n\t\tif(freeMarkerMethods == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSet<Class<?>> fmarkerClasses = new HashSet<Class<?>>();\r\n\t\t\r\n\t\tfor(Method method : freeMarkerMethods)\r\n\t\t{\r\n\t\t\tif(fmarkerClasses.contains(method.getDeclaringClass()))\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tfreeMarkerEngine.loadClass(method.getDeclaringClass());\r\n\t\t}\r\n\t}",
"public ImcacheCacheManager() {\n this(CacheBuilder.heapCache());\n }",
"private static AMetadataExtractor getExtractor(Path fileordir) {\n String ext =getFileExtension(fileordir);\n //gets class implementing extension\n Class extclass = type2extractor.get(ext);\n //set default if extension is not recognized\n if (extclass == null) extclass = DefaultMetadataExtractor.class;\n //get existing instance if it was already instantiated\n AMetadataExtractor cobj = class2extractorobj.get(extclass.getName());\n\n if (cobj==null) {\n try { //try to create class using default constructor\n //Constructor ct = extclass.getConstructor(extclass);\n AMetadataExtractor obj2 = (AMetadataExtractor) extclass.newInstance();\n class2extractorobj.put(extclass.getName(),obj2);\n return obj2;\n } catch (Exception e){\n //create default extractor\n LOG.error(\"error creating class for extension \"+ext);\n LOG.error(e.getMessage());\n e.printStackTrace();\n AMetadataExtractor obj2 = new DefaultMetadataExtractor();\n class2extractorobj.put(extclass.getName(),obj2);\n return obj2;\n }\n } else return cobj;\n }",
"public static AnagramService getInstance() {\n\t\treturn SingletonHelper.INSTANCE;\n\t}",
"public CacheStrategy getCacheStrategy();",
"public Object putCacheIfAbsent(NamedCache cache, ClassLoader loader)\n {\n if (cache.isReleased())\n {\n throw new IllegalArgumentException(\"Storing a released cache is not allowed: \" + cache.getCacheName());\n }\n\n SegmentedConcurrentMap mapByName = m_mapByName;\n\n String sCacheName = cache.getCacheName();\n Object oResult;\n Map mapByLoader;\n do\n {\n mapByLoader = (Map) mapByName.get(sCacheName);\n\n if (mapByLoader == null)\n {\n mapByLoader = new WeakHashMap();\n\n Map mapTmp = (Map) mapByName.putIfAbsent(sCacheName, mapByLoader);\n\n if (mapTmp != null)\n {\n mapByLoader = mapTmp;\n }\n }\n\n if (ScopedServiceReferenceStore.isRemoteServiceType(cache.getCacheService().getInfo().getServiceType())\n && Security.SUBJECT_SCOPED)\n {\n SubjectScopedReference scopedRef = new SubjectScopedReference();\n\n oResult = putLoaderIfAbsent(mapByLoader, loader, scopedRef);\n\n if (oResult != null)\n {\n scopedRef = (SubjectScopedReference) oResult;\n }\n\n oResult = scopedRef.putIfAbsent(cache);\n }\n else\n {\n oResult = putLoaderIfAbsent(mapByLoader, loader, cache);\n }\n }\n while (mapByName.get(sCacheName) != mapByLoader);\n\n return oResult;\n }",
"public T getIfPresent()\n\t{\n\t\treturn cache.getIfPresent(KEY);\n\t}",
"private EagerInitializationSingleton() {\n\t}",
"private ProviderLoader loadFileProvider(final cacheItem cached) {\n final File file = cached.getFirst();\n final PluginScanner second = cached.getSecond();\n return filecache.get(file, second);\n }",
"@Override\n\tpublic Object getBeanCache(String name) {\n\t\treturn null;\n\t}",
"public FXMLLoaderBuilder autoInjection(boolean autoInjection) {\n this.autoInjection = autoInjection;\n return this;\n }",
"public Extractor getInstance() throws Exception {\r\n return (Extractor)getInstance(label); \r\n }",
"VPlexApiDiscoveryManager getDiscoveryManager() {\n return _discoveryMgr;\n }",
"@Inject\n\tpublic ProviderBikes() { //has dependencies of its own that's why constructot\n\t\t\t\t\t\t\t\t\t\t//with @Inject annotation\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t\tSystem.out.println(\"Inside the constructor of the provide class\");\n\t}",
"public void preCache(Class<?> type) {\n notNull(type, \"type cannot be null\");\n\n try {\n Reflector reflector = getReflector(type);\n reflector.preCache();\n }\n catch (ReflectException e) {\n throw e;\n }\n catch (Exception e) {\n throw new ReflectException(\"failed to pre-cache accessor/mutator maps for type: \" + type.getName(), e);\n }\n }",
"public interface AopProxy {\n Object getProxy();\n\n Object getProxy(ClassLoader classLoader);\n\n}",
"Object cached(Class<?> api, ComponentContext context);",
"@VisibleForTesting\n public ActivityManagerInternal injectActivityManagerInternal() {\n return (ActivityManagerInternal) LocalServices.getService(ActivityManagerInternal.class);\n }",
"@Override\n @SuppressWarnings(\"unchecked\")\n public <A extends Annotation> Class<? extends AnnotationProcessor<A>> getAnnotationProcessorService(Class<A> annotationClass) {\n Collection<Class<?>> serviceClasses = getAnnotationProcessorServices();\n\n // Filter by generic implementation and get the one with the lowest priority value\n Optional<Class<?>> processorClass = serviceClasses.stream()\n .filter(aClass -> ReflectionUtil.isGenericImplementation(aClass, AnnotationProcessor.class, annotationClass))\n .sorted(Comparator.comparingLong(annotationProcessorServicePriorityFunction))\n .findFirst();\n\n // Make it typed (already checked in filter)\n Class<? extends AnnotationProcessor<A>> processorClassTyped = null;\n if(processorClass.isPresent()) {\n processorClassTyped = (Class<? extends AnnotationProcessor<A>>) processorClass.get();\n }\n\n return processorClassTyped;\n }",
"private ExportPkg pickProvider(ImportPkg ip) {\n if (Debug.packages) {\n Debug.println(\"pickProvider: for - \" + ip);\n }\n ExportPkg provider = null;\n for (Iterator i = ip.pkg.exporters.iterator(); i.hasNext(); ) {\n ExportPkg ep = (ExportPkg)i.next();\n tempBlackListChecks++;\n if (tempBlackList.contains(ep)) {\n tempBlackListHits++;\n continue;\n }\n if (!checkAttributes(ep, ip)) {\n if (Debug.packages) {\n Debug.println(\"pickProvider: attribute match failed for - \" + ep);\n }\n continue;\n }\n if (tempResolved.contains(ep.bpkgs.bundle)) {\n provider = ep;\n break;\n }\n if ((ep.bpkgs.bundle.state & BundleImpl.RESOLVED_FLAGS) != 0) {\n HashMap oldTempProvider = (HashMap)tempProvider.clone();\n if (checkUses(ep)) {\n provider = ep;\n break;\n } else {\n tempProvider = oldTempProvider;\n tempBlackList.add(ep);\n continue;\n }\n }\n if (ep.bpkgs.bundle.state == Bundle.INSTALLED && checkResolve(ep.bpkgs.bundle)) { \n provider = ep;\n break;\n }\n }\n if (Debug.packages) {\n if (provider != null) {\n Debug.println(\"pickProvider: \" + ip + \" - got provider - \" + provider);\n } else {\n Debug.println(\"pickProvider: \" + ip + \" - found no provider\");\n }\n }\n return provider;\n }",
"private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }",
"public interface DataInjector {\n\n DataInjector injectId(UUID id);\n DataInjector injectType(String type);\n DataInjector injectContextEntry(String name, Object value);\n\n}",
"private EagerInitializedSingleton() {\n\t}",
"private EagerInitializedSingleton() {\n\t}",
"public static synchronized OpenIDRememberMeTokenCache getCacheInstance() {\n if (rememberMeCache == null) {\n rememberMeCache = new OpenIDRememberMeTokenCache();\n }\n return rememberMeCache;\n }",
"public Framework_annotation<T> build_annotation();",
"public static JWTLoginModuleDataHolder getInstance() {\n return instance;\n }",
"public Annotation getAnnotation(Class<?> annotationClass){\n\t\tAnnotation annotation = null;\n\t\tif (annotations.containsKey(annotationClass)){\n\t\t\tannotation = annotations.get(annotationClass);\n\t\t}\n\t\treturn annotation;\n\t}",
"public static AdresseAccess getInstance() {\n return SingletonHolder.instance;\n }",
"ProviderManagerExt()\n {\n load();\n }",
"@Override\n public void postInit(KeycloakSessionFactory factory) {\n if (singleUseObjectCache == null) {\n this.singleUseObjectCache = getSingleUseObjectCache(factory.create());\n }\n }",
"@Bean(name = \"parserPoolHolder\")\n public ParserPoolHolder parserPoolHolder() {\n return new ParserPoolHolder();\n }",
"public NamedCache getCache(String sCacheName, ClassLoader loader)\n {\n Map mapByLoader = (Map) m_mapByName.get(sCacheName);\n\n if (mapByLoader != null)\n {\n synchronized (mapByLoader)\n {\n Object oHolder = mapByLoader.get(loader);\n\n if (oHolder == null || oHolder instanceof NamedCache)\n {\n return (NamedCache) oHolder;\n }\n else if (oHolder instanceof SubjectScopedReference)\n {\n return (NamedCache) ((SubjectScopedReference) oHolder).get();\n }\n else\n {\n throw new UnsupportedOperationException();\n }\n }\n }\n\n return null;\n }",
"public HotrodCacheFactory() {\n }",
"@Override\n protected Injector getInjector() {\n return Guice.createInjector(new PortalServletModule());\n }",
"private static ClassLoader getClassLoader() {\n return LoggerProviders.class.getClassLoader();\n }",
"private void getAnnotatedClass(Class<? extends Annotation> annotation, final Element element) {\n TypeElement typeElement = (TypeElement) element.getEnclosingElement();\n// String fullName = typeElement.getQualifiedName().toString();\n Map<Class<? extends Annotation>, List<Element>> classListMap = mAnnotation.get(typeElement);\n if (classListMap == null) {\n classListMap = new HashMap<>();\n ArrayList<Element> elements=new ArrayList<>();\n elements.add(element);\n classListMap.put(annotation,elements);\n mAnnotation.put(typeElement, classListMap);\n } else {\n List<Element> elements = classListMap.get(annotation);\n if (elements == null) {\n elements = new ArrayList<>();\n elements.add(element);\n classListMap.put(annotation,elements);\n mAnnotation.put(typeElement, classListMap);\n } else\n mAnnotation.get(typeElement).get(annotation).add(element);\n }\n\n// log(annotationList.size() + \"fdas\");\n }"
] | [
"0.6499522",
"0.58692396",
"0.5554944",
"0.54959387",
"0.5466436",
"0.5405287",
"0.53794736",
"0.5365053",
"0.5363696",
"0.5350872",
"0.5303627",
"0.5295622",
"0.51939905",
"0.5075521",
"0.5070067",
"0.50339997",
"0.4999602",
"0.49934635",
"0.4966386",
"0.49550378",
"0.49541378",
"0.49265027",
"0.49171686",
"0.4887048",
"0.4884101",
"0.48834544",
"0.48721588",
"0.48173788",
"0.4810876",
"0.47937497",
"0.47640505",
"0.47545794",
"0.473474",
"0.46900123",
"0.46668813",
"0.4663846",
"0.46552873",
"0.46496373",
"0.46405506",
"0.46380252",
"0.46330848",
"0.46224347",
"0.46070054",
"0.45840976",
"0.4582844",
"0.4578925",
"0.45658848",
"0.45648202",
"0.45625153",
"0.45616004",
"0.45551804",
"0.45538032",
"0.45428315",
"0.45290864",
"0.4529033",
"0.4523016",
"0.45011848",
"0.44911966",
"0.44883624",
"0.44878706",
"0.44876546",
"0.44865355",
"0.4485333",
"0.4472844",
"0.44692555",
"0.4469115",
"0.44690964",
"0.4466536",
"0.446601",
"0.44498122",
"0.4433565",
"0.44330084",
"0.44302195",
"0.44180396",
"0.44105873",
"0.44086197",
"0.44075096",
"0.4407154",
"0.4399882",
"0.43948543",
"0.43937686",
"0.4392798",
"0.4390818",
"0.4389996",
"0.4382174",
"0.43789867",
"0.43789867",
"0.43730053",
"0.43663758",
"0.4364057",
"0.43586832",
"0.43474856",
"0.43427274",
"0.43398058",
"0.43396437",
"0.43337837",
"0.43324265",
"0.43303993",
"0.43303603",
"0.43231922"
] | 0.71624964 | 0 |
Retrieve annotation KerHandler from cache or instantiate it if necessary. | public static AbstractKerHandler retrieveKerHandler(final Class<? extends Annotation> annotationClass) throws InstantiationException, IllegalAccessException {
AbstractKerHandler kerHandler = null;
// - Retrieve remembered KerInjector instance if exists.
if (KerAnnotation.kerHandlerInstances.containsKey(annotationClass)) {
kerHandler = KerAnnotation.kerHandlerInstances.get(annotationClass);
}
// - Else instantiate it if necessary
else {
// - Retrieve KerInjector.
final KerHandler kerHandlerAnnotation = annotationClass.getAnnotation(KerHandler.class);
final Class<? extends AbstractKerHandler> kerHanderClass = kerHandlerAnnotation.value();
// - Instantiate it.
kerHandler = kerHanderClass.newInstance();
// - Remember it.
KerAnnotation.kerHandlerInstances.put(annotationClass, kerHandler);
}
return kerHandler;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized Annotator get(String name) {\n CachedAnnotator factory;\n synchronized (factories) {\n factory = this.factories.get(name);\n }\n if (factory == null) {\n throw new IllegalArgumentException(\"No annotator named \" + name);\n }\n Pair<String, String> key = Pair.makePair(name, factory.signature);\n Optional<Annotator> annotator;\n synchronized (cache) {\n annotator = Optional.ofNullable(cache.get(key)).flatMap(x -> Optional.ofNullable(x.get()));\n }\n if (!annotator.isPresent()) {\n annotator = Optional.of(factory.annotator.get());\n }\n synchronized (cache) {\n cache.put(key, new SoftReference<>(annotator.orElse(null))); // will never be null though\n }\n\n // Return\n if (annotator.isPresent()) {\n return annotator.get();\n } else {\n throw new IllegalStateException(\"Logic error in AnnotatorPool#get()\"); // should be impossible\n }\n }",
"public static AbstractKerInjector retrieveKerInjector(final Class<? extends Annotation> annotationClass) throws InstantiationException, IllegalAccessException {\r\n\t\tAbstractKerInjector kerInjector = null;\r\n\r\n\t\t// - Retrieve remembered KerInjector instance if exists.\r\n\t\tif (KerAnnotation.kerInjectorInstances.containsKey(annotationClass)) {\r\n\t\t\tkerInjector = KerAnnotation.kerInjectorInstances.get(annotationClass);\r\n\t\t}\r\n\t\t// - Else instantiate it if necessary\r\n\t\telse {\r\n\t\t\t// - Retrieve KerInjector.\r\n\t\t\tfinal KerInjector kerInjectorAnnotation = annotationClass.getAnnotation(KerInjector.class);\r\n\t\t\tfinal Class<? extends AbstractKerInjector> kerInjectorClass = kerInjectorAnnotation.value();\r\n\r\n\t\t\t// - Instantiate it.\r\n\t\t\tkerInjector = kerInjectorClass.newInstance();\r\n\r\n\t\t\t// - Remember it.\r\n\t\t\tKerAnnotation.kerInjectorInstances.put(annotationClass, kerInjector);\r\n\t\t}\r\n\r\n\t\treturn kerInjector;\r\n\t}",
"private static KeyStrokeMapProvider getGenerator() {\n if (generator == null) {\n try {\n String gname =\n System.getProperty(\"abbot.keystroke_map_generator\",\n \"abbot.tester.KeyStrokeMap\");\n if (gname != null) {\n generator = (KeyStrokeMapProvider)\n Class.forName(gname).newInstance();\n }\n }\n catch(Exception e) {\n Log.warn(e);\n }\n }\n return generator;\n }",
"public Class<?> getHandler();",
"private Handler getHandler(Request request) {\n return resolver.get(request.getClass().getCanonicalName()).create();\n }",
"private static Cache getCacheInstance() {\r\n\t\tif( cache == null ) {\r\n\t\t\ttry {\r\n\t\t\t\tCacheFactory cf = CacheManager.getInstance().getCacheFactory();\r\n\t\t\t\tcache = cf.createCache(Collections.emptyMap());\r\n\t\t\t} catch (CacheException e) {\r\n\t\t\t\tlog.log(Level.SEVERE, \"can not initialize cache\", e);\r\n\t\t\t\tcache = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cache;\r\n\t}",
"public RunePouchHandler getInstance() {\n return instance == null ? instance = new RunePouchHandler(this.superClass) : instance;\n }",
"@Override\n\t\t\tpublic MessageHandler get() {\n\t\t\t\tProvider<FeedLoader> feedLoaderProvider = new Provider<FeedLoader>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic FeedLoader get() {\n\t\t\t\t\t\treturn new FeedLoader();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\treturn new RetrieveFeedMessageHandler(feedLoaderProvider, dataSource, feedEntityHandler, feedItemEntityHandler, feedRequestEntityHandler, subscriptionEntityHandler);\n\t\t\t}",
"public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}",
"public RequestHandler getRequestHandlerInstance() {\n Object obj;\n try {\n obj = klass.newInstance();\n } catch (Exception e) {\n throw new RuntimeException(\"Problem during the Given class instanciation please check your contribution\", e);\n }\n if (obj instanceof RequestHandler) {\n RequestHandler rh = (RequestHandler) obj;\n rh.init(properties);\n return rh;\n }\n\n throw new RuntimeException(\"Given class is not a \" + RequestHandler.class + \" implementation\");\n }",
"void injectorClassLoader() {\n\t\t//To get the package name\n\t\tString pkgName = context.getPackageName();\n\t\t//To get the context\n\t\tContext contextImpl = ((ContextWrapper) context).getBaseContext();\n\t\t//Access to the Activity of the main thread\n\t\tObject activityThread = null;\n\t\ttry {\n\t\t\tactivityThread = Reflection.getField(contextImpl, \"mMainThread\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Get package container\n\t\tMap mPackages = null;\n\t\ttry {\n\t\t\tmPackages = (Map) Reflection.getField(activityThread, \"mPackages\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//To obtain a weak reference object, the standard reflection\n\t\tWeakReference weakReference = (WeakReference) mPackages.get(pkgName);\n\t\tif (weakReference == null) {\n\t\t\tlog.e(\"loadedApk is null\");\n\t\t} else {\n\t\t\t//Get apk need to be loaded\n\t\t\tObject loadedApk = weakReference.get();\n\t\t\t\n\t\t\tif (loadedApk == null) {\n\t\t\t\tlog.e(\"loadedApk is null\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (appClassLoader == null) {\n\t\t\t\t//Access to the original class loader\n\t\t\t\tClassLoader old = null;\n\t\t\t\ttry {\n\t\t\t\t\told = (ClassLoader) Reflection.getField(loadedApk,\n\t\t\t\t\t\t\t\"mClassLoader\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//According to the default class loader instantiate a plug-in class loader\n\t\t\t\tappClassLoader = new SyknetAppClassLoader(old, this);\n\t\t\t}\n\t\t\t//Replace the new plug-in loader loader by default\n\t\t\ttry {\n\t\t\t\tReflection.setField(loadedApk, \"mClassLoader\", appClassLoader);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"protected Object getHandlerInternal(HttpServletRequest request) {\n String lookupPath = WebUtils.getLookupPathForRequest(request, this.alwaysUseFullPath);\n logger.debug(\"Looking up handler for: \" + lookupPath);\n return lookupHandler(lookupPath);\n }",
"private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }",
"@Override\n public void postInit(KeycloakSessionFactory factory) {\n if (singleUseObjectCache == null) {\n this.singleUseObjectCache = getSingleUseObjectCache(factory.create());\n }\n }",
"public static synchronized IToolkitInterceptor getInstance() {\r\n return getCompositeHolder().getToolkitInterceptor();\r\n }",
"protected Cache cache(RequestContext ctx) {\n String serviceId = serviceId(ctx);\n if (serviceId != null) {\n return cacheManager.getCache(serviceId);\n }\n return null;\n }",
"protected final Object lookupHandler(String urlPath) {\n Object handler = this.handlerMap.get(urlPath);\n if (handler != null) {\n return handler;\n }\n for (Iterator it = this.handlerMap.keySet().iterator(); it.hasNext(); ) {\n String registeredPath = (String) it.next();\n if (PathMatcher.match(registeredPath, urlPath)) {\n return this.handlerMap.get(registeredPath);\n }\n }\n // no match found\n return null;\n }",
"public Handler getHandler();",
"public interface PermissionService {\n\n @Caching()\n public SysPermission findByUrl(String url);\n\n}",
"public void init() {\n\t\tif (cache != null) {\n\t\t\tcache.dispose();\n\t\t\tcache = null;\n\t\t}\n\t\tcache = cacheFactory.create(CacheFactoryDirective.NoDCE, \"test\");\n\t}",
"private CacheHelper loadCacheHelper(String className)\n throws Exception {\n\n // use the context class loader to load class so that any\n // user-defined classes in WEB-INF can also be loaded.\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n Class helperClass = cl.loadClass(className);\n\n CacheHelper helper = (CacheHelper) helperClass.newInstance();\n\n return helper;\n }",
"Handler getHandler() {\n return getEcologyLooper().getHandler();\n }",
"public static synchronized INSURLHandler getINSURLHandler() {\n/* 50 */ if (insURLHandler == null) {\n/* 51 */ insURLHandler = new INSURLHandler();\n/* */ }\n/* 53 */ return insURLHandler;\n/* */ }",
"private synchronized Handler getCustomHandler( ) {\n if( (customHandler != null ) \n ||(customHandlerError) ) \n {\n return customHandler;\n }\n LogService logService = getLogService( );\n if( logService == null ) {\n return null;\n }\n String customHandlerClassName = null;\n try {\n customHandlerClassName = logService.getLogHandler( );\n\n customHandler = (Handler) getInstance( customHandlerClassName );\n // We will plug in our UniformLogFormatter to the custom handler\n // to provide consistent results\n if( customHandler != null ) {\n customHandler.setFormatter( new UniformLogFormatter(componentManager.getComponent(Agent.class)) );\n }\n } catch( Exception e ) {\n customHandlerError = true; \n new ErrorManager().error( \"Error In Initializing Custom Handler \" +\n customHandlerClassName, e, ErrorManager.GENERIC_FAILURE );\n }\n return customHandler;\n }",
"protected <T> Optional<T> getDocCache(CacheKeyOptional<T> key,\n Callable<Optional<T>> caller\n ){\n try {\n return key.cast(docOptionalCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }",
"ClassificationHandler getClassificationHandler() {\n return classificationHandler;\n }",
"public KeyDeserializer findKeyDeserializerFromAnnotation(DeserializationContext ctxt, Annotated ann) throws JsonMappingException {\n AnnotationIntrospector intr = ctxt.getAnnotationIntrospector();\n if (intr != null) {\n Object deserDef = intr.findKeyDeserializer(ann);\n if (deserDef != null) {\n return ctxt.keyDeserializerInstance(ann, deserDef);\n }\n }\n return null;\n }",
"public CacheStrategy getCacheStrategy();",
"public static PersonHandler getInstance() {\n return PersonHandler.PersonHandlerHolder.INSTANCE;\n }",
"private void initializeHandler() {\n if (handler == null) {\n handler = AwsHelpers.initSpringBootHandler(Application.class);\n }\n }",
"private Element get(final Class<? extends Annotation> annotation) {\n return new MockElement(annotation);\n }",
"public Handler getHandler() {\n return null;\n }",
"@ClientConfig(JsonMode.Function)\n\r\n\tpublic Object getHandler () {\r\n\t\treturn (Object) getStateHelper().eval(PropertyKeys.handler);\r\n\t}",
"public static KeggAccessor getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new KeggAccessor();\n\t\t}\n\t\treturn instance;\n\t}",
"public synchronized static MetaDataCache getInstance() {\r\n if (instance == null) {\r\n instance = new MetaDataCache();\r\n }\r\n return instance;\r\n }",
"public synchronized AuthenticationHandler getAuthenticationHandler()\n\t{\n\t\tif (this.authHandler != null)\n\t\t{\n\t\t\treturn this.authHandler;\n\t\t}\n\n\t\tif (getAuthenticationHandlerFactory() != null)\n\t\t{\n\t\t\t// The user has plugged in a factory. let's use it.\n\t\t\tthis.authHandler = getAuthenticationHandlerFactory().create();\n\t\t\tif (this.authHandler == null)\n\t\t\t\tthrow new NullPointerException(\"AuthenticationHandlerFactory returned a null handler\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// A placeholder.\n\t\t\tthis.authHandler = new DummyAuthenticationHandler();\n\t\t}\n\t\t\n\t\t// Return the variable, which can be null\n\t\treturn this.authHandler;\n\t}",
"public static FilterCacheFactory getInstance() {\n return instance;\n }",
"protected static KShingler getInstance() {\n return ShinglerSingleton.INSTANCE;\n }",
"public ImcacheCacheManager() {\n this(CacheBuilder.heapCache());\n }",
"public interface IBitmapCacheHandler {\n /**\n * Attempts to save given bitmap with given id to cache\n * Returns true if successful, false otherwise\n */\n boolean save(String id, Bitmap bitmap);\n\n /**\n * Attempts to load bitmap from cache according to its id\n * Returns bitmap if successful, null otherwise\n */\n Bitmap load(String id);\n\n /**\n * Clears all data\n * Returns true if successful, false otherwise\n */\n boolean clear();\n\n /**\n * Sets given handler as next\n */\n void setNext(IBitmapCacheHandler next);\n}",
"public static MappingFileEntityHandler getInstance()\n {\n MappingFileEntityHandler handler = null;\n\n if (EntityHandlerFactory.hasEntityHandlerFor(MappingFile.ENTITY_NAME, true))\n {\n handler = (MappingFileEntityHandler)EntityHandlerFactory.getHandlerFor(\n MappingFile.ENTITY_NAME, true);\n }\n else\n {\n handler = new MappingFileEntityHandler();\n EntityHandlerFactory.putEntityHandler(MappingFile.ENTITY_NAME,\n true, handler);\n }\n\n return handler;\n }",
"@Override\n public synchronized IImageLoader get(Context context) {\n if(mImageLoader == null) {\n mImageLoader = new GlideImageLoader(context);\n }\n return mImageLoader;\n }",
"Handler getHandler(final String handlerName);",
"public <T extends Annotation> T findAnnotation(final Class<T> type, final InvocationContext context) {\n final Class<?> target = ofNullable(context.getTarget())\n .flatMap(it -> UnwrappedCache.Tool.unwrap(unwrappedCache.getUnwrappedCache(), it))\n .orElseGet(() -> Class.class.cast(context.getMethod().getDeclaringClass()));\n return findAnnotation(type, manager.createAnnotatedType(target), context.getMethod());\n }",
"public Handler getHandler() {\r\n return handler;\r\n }",
"public Handler getHandler() {\r\n return handler;\r\n }",
"static KeyExtractor.Factory fromAnnotation(Class<? extends Annotation> annotation) {\n Objects.requireNonNull(annotation, \"annotation\");\n\n Predicate<Member> predicate = m -> m instanceof AnnotatedElement\n && ((AnnotatedElement) m).isAnnotationPresent(annotation);\n\n // there can be multiple members with the same annotation\n Function<Class<?>, List<Member>> membersFn = type -> ClassScanner.of(type)\n .stream()\n .filter(predicate)\n .collect(Collectors.toList());\n\n return entityType -> {\n Objects.requireNonNull(entityType, \"entityType\");\n List<Member> members = membersFn.apply(entityType);\n if (members.isEmpty()) {\n // be strict and don't allow entities without a key\n throw new IllegalArgumentException(String.format(\"Annotation %s not found in members of %s\", annotation.getName(), entityType));\n }\n\n if (members.size() == 1) {\n return new KeyExtractors.SingleMember(entityType, members.get(0));\n }\n\n return new KeyExtractors.MultipleMembers(entityType, members);\n };\n }",
"public static RequestCountForCartBundleCache getCache()\n\t{\n\t\treturn instance;\n\t}",
"public ICodeReaderCache getCodeReaderCache() {\n \t\treturn null;\n \t}",
"protected net.sf.ehcache.Ehcache getCache() {\n return cache;\n }",
"public PacketHandler getHandler(String key) {\n PacketHandler h=(PacketHandler)mHandlers.get(key);\n if (h==null)\n h=getDefaultHandler();\n return h;\n }",
"public final /* synthetic */ IInterface mo38129a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.ads.internal.cache.ICacheService\");\n if (queryLocalInterface instanceof bvz) {\n return (bvz) queryLocalInterface;\n }\n return new bwa(iBinder);\n }",
"@SuppressWarnings({ \"null\", \"unused\" })\n @Override\n public InjectAnnotationProcessor2 createAnnotationProcessor(final AnnotatedElement element) {\n SlingObject annotation = element.getAnnotation(SlingObject.class);\n if (annotation != null) {\n return new SlingObjectAnnotationProcessor(annotation);\n }\n return null;\n }",
"private static AMetadataExtractor getExtractor(Path fileordir) {\n String ext =getFileExtension(fileordir);\n //gets class implementing extension\n Class extclass = type2extractor.get(ext);\n //set default if extension is not recognized\n if (extclass == null) extclass = DefaultMetadataExtractor.class;\n //get existing instance if it was already instantiated\n AMetadataExtractor cobj = class2extractorobj.get(extclass.getName());\n\n if (cobj==null) {\n try { //try to create class using default constructor\n //Constructor ct = extclass.getConstructor(extclass);\n AMetadataExtractor obj2 = (AMetadataExtractor) extclass.newInstance();\n class2extractorobj.put(extclass.getName(),obj2);\n return obj2;\n } catch (Exception e){\n //create default extractor\n LOG.error(\"error creating class for extension \"+ext);\n LOG.error(e.getMessage());\n e.printStackTrace();\n AMetadataExtractor obj2 = new DefaultMetadataExtractor();\n class2extractorobj.put(extclass.getName(),obj2);\n return obj2;\n }\n } else return cobj;\n }",
"public interface CacheManagerAware {\n\n void setCacheManager(CacheManager cacheManager);\n}",
"AnnotationProvider getClassAnnotationProvider();",
"public T getIfPresent()\n\t{\n\t\treturn cache.getIfPresent(KEY);\n\t}",
"protected void createLookupCache() {\n }",
"Object cached(Class<?> api, ComponentContext context);",
"@Override\n public CacheAPI getCacheAPI() {\n return null;\n }",
"public PojoCache getPojoCache();",
"@Override\n public void cacheStarting(ComponentRegistry cr, Configuration cfg, String cacheName) {\n BasicComponentRegistry gcr = cr.getGlobalComponentRegistry().getComponent(BasicComponentRegistry.class);\n\n if (PROTOBUF_METADATA_CACHE_NAME.equals(cacheName)) {\n BasicComponentRegistry bcr = cr.getComponent(BasicComponentRegistry.class);\n ProtobufMetadataManagerInterceptor protobufInterceptor = new ProtobufMetadataManagerInterceptor();\n bcr.registerComponent(ProtobufMetadataManagerInterceptor.class, protobufInterceptor, true);\n bcr.addDynamicDependency(AsyncInterceptorChain.class.getName(), ProtobufMetadataManagerInterceptor.class.getName());\n bcr.getComponent(AsyncInterceptorChain.class).wired()\n .addInterceptorAfter(protobufInterceptor, EntryWrappingInterceptor.class);\n }\n\n InternalCacheRegistry icr = gcr.getComponent(InternalCacheRegistry.class).running();\n if (!icr.isInternalCache(cacheName)) {\n ProtobufMetadataManagerImpl protobufMetadataManager =\n (ProtobufMetadataManagerImpl) gcr.getComponent(ProtobufMetadataManager.class).running();\n protobufMetadataManager.addCacheDependency(cacheName);\n\n SerializationContext serCtx = protobufMetadataManager.getSerializationContext();\n RemoteQueryManager remoteQueryManager = buildQueryManager(cfg, serCtx, cr);\n cr.registerComponent(remoteQueryManager, RemoteQueryManager.class);\n }\n }",
"@Override\n public java.lang.AutoCloseable createInstance() {\n logger.info(\"Creating the Registry Handler Implementation Instance...\");\n\n DataBroker dataBrokerService = getDataBrokerDependency();\n RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();\n RegistryHandlerProvider provider = new RegistryHandlerProvider(dataBrokerService, rpcProviderRegistry);\n\n logger.info(\"Creating the Registry Handler Implementation created...\");\n\n return provider;\n }",
"public synchronized DocumentAnalyser getAnalyserForName(String analyserName) throws AnalyserNotFoundException, AnalyserInstantiationException {\n\n\t\t//check if the analyser exist\n\t\tif (this.analyserPools.containsKey(analyserName)) {\n\t\t\t// Get pool for analyser type\n\t\t\tAnalyserPool analyserPool = analyserPools.get(analyserName);\n\n\t\t\t// return new proxy\n\t\t\treturn new AnalyserProxy(analyserPool);\n\n\t\t} else {\n\t\t\t//if not exist throw an exception\n\t\t\tthrow new AnalyserNotFoundException(\"analyser \" + analyserName + \" not found\");\n\t\t}\n\t}",
"protected final Object initHandler(String beanName, String urlPath) throws ApplicationContextException {\n try {\n Object handler = getApplicationContext().getBean(beanName);\n logger.debug(\"Initializing handler [\" + handler + \"] for URL path [\" + urlPath + \"]\");\n if (handler instanceof UrlAwareHandler) {\n ((UrlAwareHandler) handler).setUrlMapping(urlPath);\n }\n return handler;\n } catch (BeansException ex) {\n // We don't need to worry about NoSuchBeanDefinitionException:\n // we should have got the name from the bean factory.\n throw new ApplicationContextException(\"Error initializing handler bean for URL mapping '\" + beanName + \"': \" + ex.getMessage(), ex);\n }\n }",
"public RequestUrlHandler() {\n // requestService = SpringContextHolder.getBean(ScfRequestService.class);\n }",
"protected abstract void runReturnAnnotationHandler();",
"@Override\n protected synchronized void subscribeActual(Observer<? super Response<T>> observer) {\n Call<T> call = originalCall.clone();\n\n try {\n for (Annotation annotation : annotations) {\n if (annotation instanceof Cache) {\n time = ((Cache) annotation).time();\n bindParams = ((Cache) annotation).bindParams();\n break;\n }\n }\n MethodFactoryAdapter adapter = new MethodFactoryAdapter(call.request(), bindParams);\n MethodFactory factory = adapter.get();\n HashMap<String, String> parseParameters = factory.parseParameters();\n String url = call.request().url().toString();\n boolean isFirst = true;\n StringBuffer buffer = new StringBuffer();\n for (HashMap.Entry<String, String> entry : parseParameters.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n if (isFirst) {\n buffer.append(\"?\").append(key).append(\"=\").append(value);\n isFirst = false;\n } else {\n buffer.append(\"&\").append(key).append(\"=\").append(value);\n }\n }\n String cacheUrl = url + buffer.toString();\n long nowTime = System.currentTimeMillis();\n fileName = cacheUrl + \"&\" + nowTime;\n\n cache = DiskLruCacheHelper.createCache(APP.app, URL_CACHE);\n String responseCacheData = DiskLruCacheHelper.readCacheToString(cache, cacheUrl);\n int indexOfTime = responseCacheData.indexOf(\"\\n\");\n String[] times = responseCacheData.substring(0, indexOfTime).split(\":\");\n responseCacheData = responseCacheData.substring(indexOfTime + 1);\n long diskCacheTime = Long.parseLong(times[1]);\n if (!TextUtils.isEmpty(responseCacheData) && diskCacheTime != -1 && nowTime - time <= diskCacheTime) {\n E e = new Gson().fromJson(responseCacheData, E.class);\n Response<T> cacheResponse = (Response<T>) Response.success(e);\n observer.onNext(cacheResponse);\n } else {\n cache.delete();\n cache = null;\n\n }\n } catch (Exception e) {\n if (cache != null && !cache.isClosed()) {\n try {\n cache.delete();\n } catch (IOException e1) {\n\n }\n call = null;\n }\n }\n\n\n CallDisposable disposable = new CallDisposable(call);\n observer.onSubscribe(disposable);\n\n boolean terminated = false;\n try {\n Response<T> response = call.execute();\n E e = (E) response.body();\n String responseData = new Gson().toJson(e);\n if (cache == null) {\n cache = DiskLruCacheHelper.createCache(APP.app, URL_CACHE);\n }\n DiskLruCacheHelper.writeStringToCache(cache, responseData, fileName);\n if (!disposable.isDisposed()) {\n observer.onNext(response);\n }\n if (!disposable.isDisposed()) {\n terminated = true;\n observer.onComplete();\n }\n } catch (Throwable t) {\n Exceptions.throwIfFatal(t);\n if (terminated) {\n RxJavaPlugins.onError(t);\n } else if (!disposable.isDisposed()) {\n try {\n observer.onError(t);\n } catch (Throwable inner) {\n Exceptions.throwIfFatal(inner);\n RxJavaPlugins.onError(new CompositeException(t, inner));\n }\n }\n }\n }",
"public CacheEntry() {\n response = null;\n }",
"public static synchronized HotspotClassLoadingMBean getHotspotClassLoadingMBean()\n/* */ {\n/* 292 */ if (hsClassMBean == null) {\n/* 293 */ hsClassMBean = new HotspotClassLoading(jvm);\n/* */ }\n/* 295 */ return hsClassMBean;\n/* */ }",
"default void onDiscovery(@Nonnull A annotation, @Nonnull Class<? extends C> type) {\n }",
"public Drawable getDrawableCache(Integer cacheKey)\n {\n synchronized (mLinkedHashMap)\n {\n Drawable image;\n // Get file from cache\n String file = mLinkedHashMap.get(cacheKey);\n if (file != null)\n {\n image = Drawable.createFromPath(file);\n Log.i(\"DiskLruCache\", \"DiskCacheHit\");\n return image;\n }\n else\n {\n // Construct existing file path\n String cacheKeyStr = String.valueOf(cacheKey);\n String existingFile = createFilePath(cacheDirectory, cacheKeyStr);\n // Get the file using the constructed file path\n assert existingFile != null;\n File existFile = new File(existingFile);\n if (existFile.exists())\n {\n // If the file exists, we will store the the key in reference list\n referenceAdd(cacheKey, existingFile);\n return Drawable.createFromPath(existingFile);\n }\n }\n return null;\n }//synchronized (mLinkedHashMap)\n }",
"protected Object lookupHandler(String urlPath, HttpServletRequest request) throws Exception\r\n\t{\n\t\tObject handler = super.lookupHandler(urlPath, request);\r\n\t\tif (handler == null)\r\n\t\t{ // 800, 如果uri直接查找不到,则匹配前面一个\r\n\t\t\tString path = urlPath.substring(0, urlPath.indexOf('/', 2));\r\n\t\t\thandler = super.lookupHandler(path, request);\r\n//\t\t\tSystem.out.println(\"path: \" + path + \":\" + handler);\r\n\t\t}\r\n\t\thandler = handler == null ? getRootHandler() : handler;\r\n//\t\tSystem.out.println(\"urlPath: \" + urlPath + \":\" + handler);\r\n\t\treturn handler;\r\n\t}",
"protected SafeHashMap.Entry instantiateEntry()\n {\n return new Entry();\n }",
"public interface UrlInterceptHandler\n{\n\n\tpublic abstract CacheManager.CacheResult service(String s, Map map);\n}",
"public void before()\n {\n adapter = context.getBean(HandlerAdapter.class);\n }",
"public Extractor getInstance() throws Exception {\r\n return (Extractor)getInstance(label); \r\n }",
"static synchronized Handler getHandler() {\n checkState();\n return sInstance.mHandler;\n }",
"private EagerInitializationSingleton() {\n\t}",
"public HotrodCacheFactory() {\n }",
"public static ViewerHandlerInterface getViewerHandler() {\n\t\treturn new ViewerHandler();\n\t}",
"public ImageLoader getImageLoader() {\n return new ImageLoader(getRequestQueue(),\n new LruBitmapCache());\n }",
"public static C2703g m4547k(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.maps.model.internal.IMarkerDelegate\");\n return queryLocalInterface instanceof C2703g ? (C2703g) queryLocalInterface : new C2705i(iBinder);\n }",
"public CabApi getApiHandler() {\n if (apiHandler == null) {\n restAdapter = new RestAdapter.Builder()\n .setEndpoint(CabApi.BASE_URL)\n .build();\n apiHandler = restAdapter.create(CabApi.class);\n }\n return apiHandler;\n }",
"private synchronized @Nullable T processAdapter(@NotNull ExtensionComponentAdapter adapter) {\n try {\n if (!checkThatClassloaderIsActive(adapter)) {\n return null;\n }\n @Nullable T instance = adapter.createInstance(componentManager);\n if (instance == null && LOG.isDebugEnabled()) {\n LOG.debug(adapter + \" not loaded because it reported that not applicable\");\n }\n return instance;\n }\n catch (ProcessCanceledException e) {\n throw e;\n }\n catch (Throwable e) {\n LOG.error(e);\n }\n return null;\n }",
"private static native void initCachedClassMap();",
"protected void getCacheManager()\n {\n try\n {\n if ( cacheMgr == null )\n {\n cacheMgr = CompositeCacheManager.getInstance();\n\n if ( log.isDebugEnabled() )\n {\n log.debug( \" groupcache cacheMgr = \" + cacheMgr );\n }\n }\n else\n {\n if ( log.isDebugEnabled() )\n {\n log.debug( \"already got groupcache cacheMgr = \" + cacheMgr );\n }\n }\n }\n catch ( Exception e )\n {\n log.error( e );\n }\n }",
"@PostConstruct\r\n\tprivate void init()\r\n\t{\r\n\t\tSet<Method> freeMarkerMethods = classScannerService.getMethodsAnnotatedWith(FreeMarkerMethod.class);\r\n\t\t\r\n\t\tif(freeMarkerMethods == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSet<Class<?>> fmarkerClasses = new HashSet<Class<?>>();\r\n\t\t\r\n\t\tfor(Method method : freeMarkerMethods)\r\n\t\t{\r\n\t\t\tif(fmarkerClasses.contains(method.getDeclaringClass()))\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tfreeMarkerEngine.loadClass(method.getDeclaringClass());\r\n\t\t}\r\n\t}",
"public interface CacheInvalidationStrategyIF {\n\t\n}",
"@PostConstruct\n\tpublic void init() {\n\t // TODO create cacheTreeMgr using HashMap or EhCache\n cacheTree = new CacheTreeHashMap();\n\t cacheTree.init();\n\t}",
"public static MetadataDispatcherQueue getInstance(){\n if(instance == null ){\n instance = new MetadataDispatcherQueue();\n }\n return instance;\n }",
"public static HttpLogKafkaHandler getKafkaHandler(String kafkaType){\t\t\n\t\treturn _kafkaHandlerList.get(kafkaType);\n\t}",
"public void init() throws CacheException {\n // no-op\n }",
"public Object putCacheIfAbsent(NamedCache cache, ClassLoader loader)\n {\n if (cache.isReleased())\n {\n throw new IllegalArgumentException(\"Storing a released cache is not allowed: \" + cache.getCacheName());\n }\n\n SegmentedConcurrentMap mapByName = m_mapByName;\n\n String sCacheName = cache.getCacheName();\n Object oResult;\n Map mapByLoader;\n do\n {\n mapByLoader = (Map) mapByName.get(sCacheName);\n\n if (mapByLoader == null)\n {\n mapByLoader = new WeakHashMap();\n\n Map mapTmp = (Map) mapByName.putIfAbsent(sCacheName, mapByLoader);\n\n if (mapTmp != null)\n {\n mapByLoader = mapTmp;\n }\n }\n\n if (ScopedServiceReferenceStore.isRemoteServiceType(cache.getCacheService().getInfo().getServiceType())\n && Security.SUBJECT_SCOPED)\n {\n SubjectScopedReference scopedRef = new SubjectScopedReference();\n\n oResult = putLoaderIfAbsent(mapByLoader, loader, scopedRef);\n\n if (oResult != null)\n {\n scopedRef = (SubjectScopedReference) oResult;\n }\n\n oResult = scopedRef.putIfAbsent(cache);\n }\n else\n {\n oResult = putLoaderIfAbsent(mapByLoader, loader, cache);\n }\n }\n while (mapByName.get(sCacheName) != mapByLoader);\n\n return oResult;\n }",
"@Override\n\tpublic Handler getHandler() {\n\t\treturn mHandler;\n\t}",
"public void preCache(Class<?> type) {\n notNull(type, \"type cannot be null\");\n\n try {\n Reflector reflector = getReflector(type);\n reflector.preCache();\n }\n catch (ReflectException e) {\n throw e;\n }\n catch (Exception e) {\n throw new ReflectException(\"failed to pre-cache accessor/mutator maps for type: \" + type.getName(), e);\n }\n }",
"public interface CacheContext {\n CacheService getCacheService();\n CacheObjectService getCacheObjectService();\n LockService getLockService();\n}",
"public <T> T getInstance(TypeLiteral<T> type,\n Annotation annotation) {\n return getLocator(Key.get(type, annotation)).get();\n }",
"public I getHandle(Worker<?, ?> sender, int latency) {\n\t\tif (sender == null)\n\t\t\tthrow new NullPointerException();\n\t\tHandle handler = new Handle(sender, recipients, constraints.get(sender));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tI handle = (I)Proxy.newProxyInstance(klass.getClassLoader(), new Class<?>[]{klass}, handler);\n\t\treturn handle;\n\t}",
"@Override\n\tpublic Handler getHandler() {\n\t\t// TODO Auto-generated method stub\n\t\treturn mHandler;\n\t}"
] | [
"0.5633673",
"0.54328823",
"0.5162971",
"0.51097536",
"0.5096907",
"0.5095082",
"0.50783753",
"0.5046085",
"0.5044629",
"0.4986095",
"0.49558577",
"0.4947938",
"0.49445406",
"0.49284193",
"0.49256608",
"0.49114835",
"0.49042767",
"0.48870322",
"0.48226157",
"0.4751732",
"0.47484598",
"0.4748078",
"0.4746273",
"0.47313246",
"0.47178409",
"0.47121334",
"0.47107354",
"0.4710609",
"0.46952066",
"0.46908757",
"0.46724752",
"0.46599513",
"0.46504688",
"0.46446025",
"0.4619136",
"0.46188715",
"0.46141607",
"0.46100852",
"0.46037892",
"0.45994785",
"0.45986792",
"0.4593801",
"0.45891073",
"0.4585723",
"0.45848238",
"0.45848238",
"0.45758802",
"0.45685905",
"0.45627493",
"0.45627204",
"0.45608512",
"0.45600066",
"0.45589507",
"0.45532623",
"0.45382702",
"0.4536716",
"0.45279747",
"0.4523646",
"0.45214963",
"0.45159072",
"0.45067078",
"0.45026955",
"0.44900897",
"0.44882324",
"0.44874144",
"0.44836116",
"0.44774306",
"0.4468027",
"0.44566774",
"0.44555476",
"0.44553697",
"0.4454629",
"0.44541395",
"0.44511285",
"0.4445732",
"0.4443975",
"0.44369423",
"0.4427595",
"0.44272953",
"0.44224387",
"0.44214064",
"0.44201288",
"0.44174522",
"0.44171125",
"0.44131604",
"0.4412328",
"0.4409795",
"0.44077155",
"0.43981257",
"0.4395926",
"0.4385967",
"0.43820435",
"0.43779144",
"0.4373598",
"0.43709114",
"0.4364728",
"0.43577513",
"0.43574423",
"0.4349792",
"0.4340749"
] | 0.68838257 | 0 |
Save instance state fields into bundle. Must be called from .onSaveInstanceState(). | public static void onSaveInstanceState(final Object object, final Bundle outState) throws KerException {
// - Retrieve all fields.
final Field[] fields = KerAnnotation.retrieveAllFields(object);
// - Save instance state fields into new bundle to avoid key conflict.
for (final Field field : fields) {
// - If field is annotated with @InstanceState.
if (field.isAnnotationPresent(InstanceState.class)) {
InstanceStateKerInjector.saveInstanceState(field, object, outState);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n // Save Instance State here\r\n }",
"@Override\r\n public void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n // Save Instance State here\r\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }",
"protected void onSaveInstanceState(Bundle instanceState) {\n super.onSaveInstanceState(instanceState);\n }",
"private void saveState(final Bundle state)\n {\n logEnter(LOG_TAG, \"saveState\", state);\n\n state.putSerializable(BUNDLE_FIELD_INSTANCE, instance);\n state.putSerializable(BUNDLE_FIELD_ENTRIES, entries);\n }",
"@Override()\n protected void onSaveInstanceState(final Bundle state)\n {\n logEnter(LOG_TAG, \"onSaveInstanceState\", state);\n\n saveState(state);\n }",
"public void onSaveInstanceState(Bundle bundle) {\n super.onSaveInstanceState(bundle);\n }",
"public void onSaveInstanceState(Bundle bundle) {\n super.onSaveInstanceState(bundle);\n }",
"public void onSaveInstanceState(Bundle bundle) {\n super.onSaveInstanceState(bundle);\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n }",
"@Override\n\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n\n\t\tsuper.onSaveInstanceState(savedInstanceState);\n\n\t\t/* save variables */\n\t\tsavedInstanceState.putLong(\"NumberOfSignalStrengthUpdates\",\n\t\t\t\tNumberOfSignalStrengthUpdates);\n\n\t\tsavedInstanceState.putLong(\"LastCellId\", LastCellId);\n\t\tsavedInstanceState.putLong(\"NumberOfCellChanges\", NumberOfCellChanges);\n\n\t\tsavedInstanceState.putLong(\"LastLacId\", LastLacId);\n\t\tsavedInstanceState.putLong(\"NumberOfLacChanges\", NumberOfLacChanges);\n\n\t\tsavedInstanceState.putLongArray(\"PreviousCells\", PreviousCells);\n\t\tsavedInstanceState.putInt(\"PreviousCellsIndex\", PreviousCellsIndex);\n\t\tsavedInstanceState.putLong(\"NumberOfUniqueCellChanges\",\n\t\t\t\tNumberOfUniqueCellChanges);\n\n\t\tsavedInstanceState.putBoolean(\"outputDebugInfo\", outputDebugInfo);\n\n\t\t/* save the trace data still in the write buffer into a file */\n\t\tsaveDataToFile(FileWriteBufferStr, \"---in save instance, \"\n\t\t\t\t+ DateFormat.getTimeInstance().format(new Date()) + \"\\r\\n\",\n\t\t\t\tcellLogFilename);\n\t\tFileWriteBufferStr = \"\";\n\n\t}",
"@Override\n public void onSaveInstanceState(Bundle savedInstanceState)\n {\n savedInstanceState.putIntArray(\"board\", tttGame.getBoard());\n savedInstanceState.putBoolean(\"turn\", tttGame.getTurn());\n savedInstanceState.putBoolean(\"mode\", tttGame.getAIMode());\n\n savedInstanceState.putInt(\"p1Count\", pOneCounter);\n savedInstanceState.putInt(\"p2Count\", pTwoCounter);\n savedInstanceState.putInt(\"pAICount\",pAICounter);\n savedInstanceState.putInt(\"tieCount\", tieCounter);\n\n boolean[] enabled = getState();\n savedInstanceState.putBooleanArray(\"state\", enabled);\n }",
"public void onSaveInstanceState(Bundle bundle) {\n bundle.putSerializable(\"MARKLIST\", this.f5382B);\n bundle.putInt(\"save_state\", this.f5435p);\n }",
"@Override\n public void onSaveInstanceState(Bundle savedInstanceState) {\n savedInstanceState.putInt(NUMEROADIVINHAR, numeroAdivinhar);\n savedInstanceState.putInt(TENTATIVAS, tentativas);\n savedInstanceState.putBoolean(VENCEU, venceu);\n savedInstanceState.putBoolean(TESTOU, testou);\n\n // Always call the superclass so it can save the view hierarchy state\n super.onSaveInstanceState(savedInstanceState);\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putString(\"NAME_KEY\", name.getText().toString());\n outState.putString(\"METHOD_KEY\", method.getText().toString());\n outState.putString(\"INGREGIENTS_KEY\", ingredients.getText().toString());\n outState.putString(\"DESCRIPTION_KEY\", description.getText().toString());\n outState.putString(\"CHEF_KEY\", chef.getText().toString());\n }",
"@Override\r\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t}",
"public void saveInstanceState(Bundle bundle) {\n /**\n * Save person data\n */\n bundle.putStringArrayList(\"personNames\", personNames);\n bundle.putStringArrayList(\"personIds\", personIds);\n ArrayList<String> selectionsStrings = new ArrayList<String>();\n for (HashSet<Integer> selections : personSelections) {\n String selectionsString = \"\";\n for (Integer s : selections) {\n selectionsString += s.toString() + \",\";\n }\n \n if (!selectionsString.equals(\"\")) {\n selectionsString = selectionsString.substring(0, selectionsString.length() - 1);\n }\n \n selectionsStrings.add(selectionsString);\n }\n bundle.putStringArrayList(\"personSelections\", selectionsStrings);\n \n /**\n * Save menu list data\n */\n bundle.putStringArrayList(\"menuItemNames\", menuItemNames);\n bundle.putDoubleArray(\"menuItemPrices\", getMenuItemPrices());\n \n bundle.putDouble(\"tax\", tax);\n bundle.putDouble(\"tip\", tip);\n \n }",
"@Override\r\n\tprotected void onSaveInstanceState(Bundle savedInstanceState) {\n\t\tsuper.onSaveInstanceState(savedInstanceState);\r\n\t}",
"@Override\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t}",
"@Override\n\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n\t savedInstanceState.putBoolean(HAS_RUN, true);\t \n\t //savedInstanceState.putParcelable(MODEL_DATA, dS);\n\t Log.i(\"MAIN\",\"Saved instances\");\n\t // Always call the superclass so it can save the view hierarchy state\n\t super.onSaveInstanceState(savedInstanceState);\n\t}",
"@Override\n\tpublic void onMySaveInstanceState(Bundle outState) {\n\t\t\n\t}",
"@Override\n\tpublic void onMySaveInstanceState(Bundle outState) {\n\t\t\n\t}",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n //outState.putInt(\"someVarA\", someVarA);\n //outState.putString(\"someVarB\", someVarB);\n }",
"@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\tLog.v(TAG, \"onSaveInstanceState()\");\n\t}",
"private void saveStateToArguments() {\n if (getView() != null)\n savedState = saveState();\n if (savedState != null) {\n Bundle b = getArguments();\n if (b != null)\n b.putBundle(\"internalSavedViewState8954201239547\", savedState);\n }\n }",
"@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t}",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putSerializable(ReportPeer.KEY_ID, mRowId);\n outState.putSerializable(ReportPeer.KEY_TASK_ID, mTaskId);\n outState.putSerializable(ReportPeer.KEY_DATE, mCalendar);\n // We don't need to save form values because this is handled\n // automatically for every View object\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n currentStateSaveToSharedPref();\n }",
"@Override\n public void onSaveInstanceState(Bundle savedInstanceState) {\n super.onSaveInstanceState(savedInstanceState);\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n Log.i(TAG, \"onSaveInstanceState()\");\n super.onSaveInstanceState(outState);\n }",
"@Override\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\tLog.i(TAG, \"onSaveInstanceState\");\n\t}",
"@Override\r\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\r\n\t}",
"@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\tLog.v(\"save\", \"here I come :) \");\n\t}",
"@Override\r\n\tpublic void onSaveInstanceState(Bundle arg0) {\n\t}",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n }",
"@Override\n public void onSaveInstanceState(Bundle savedInstanceState) {\n super.onSaveInstanceState(savedInstanceState);\n\n savedInstanceState.putBoolean(\"renewBoolean\", false);\n savedInstanceState.putDouble(\"myDouble\", 1.9);\n savedInstanceState.putInt(\"MyInt\", 1);\n savedInstanceState.putString(\"MyString\", \"Welcome back to Android\");\n // etc.\n }",
"@Override\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t}",
"@Override\n\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n super.onSaveInstanceState(savedInstanceState);\n\t}",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n /* Here we put code now to save the state */\n outState.putString(\"path\", mCurrentPhotoPath);\n outState.putString(\"caseId\", caseId.getText().toString());\n outState.putString(\"desc\", desc.getText().toString());\n outState.putString(\"imgName\", this.imgName);\n\n if (dialog != null && dialog.getUserInput() != \"\") {\n System.out.println(\"in onSvaeInstanceSteate \"+dialog.getUserInput());\n outState.putString(\"username\", dialog.getUserInput());\n }\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putString(\"TAG\", tag);\n }",
"@Override\r\n protected void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n\r\n String stateSaveHome = home.getText().toString();\r\n outState.putString(\"save_state_home\", stateSaveHome);\r\n\r\n String stateSaveVisitor = visitor.getText().toString();\r\n outState.putString(\"save_state_visitor\", stateSaveVisitor);\r\n }",
"@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\tLog.e(\"mainactivity\", \"onsaveinsstancestate\");\n\n\t}",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putSerializable(\"hm\", (Serializable) hm);\n }",
"@Override\n public void onSaveInstanceState(Bundle outState){\n // Save current booking times to outstate\n outState.putInt(BOOKING_HOUR_KEY, bookingHour);\n outState.putInt(BOOKING_MINUTE_KEY, bookingMinute);\n\n super.onSaveInstanceState(outState);\n }",
"@Override\n\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n\t\tsuper.onSaveInstanceState(savedInstanceState);\n\t\t\n\t\tsavedInstanceState.putInt(\"buttonCount\", buttonCount);\n\t\tsavedInstanceState.putIntegerArrayList(\"catCounters\", catCounters);\n\t\tsavedInstanceState.putStringArrayList(\"textArray\", textArray);\n\t\tsavedInstanceState.putString(\"layout_name\", layout_name);\n\t}",
"@Override\n protected void onSaveInstanceState(Bundle bundle) {\n super.onSaveInstanceState(bundle);\n gameView.saveInstanceState(bundle);\n }",
"@Override\n\t protected void onSaveInstanceState(Bundle outState) {\n\t super.onSaveInstanceState(outState);\n\t // save the current data, for instance when changing screen orientation\n\t outState.putSerializable(\"dataset\", mDataset);\n\t outState.putSerializable(\"renderer\", mRenderer);\n\t outState.putSerializable(\"current_series\", mCurrentSeries);\n\t outState.putSerializable(\"current_renderer\", mCurrentRenderer);\n\t }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n //ALWAYS CALL THE SUPER METHOD - To be nice!\n super.onSaveInstanceState(outState);\n Log.d(TAG, \"onSaveInstanceState\");\n\t\t/* Here we put code now to save the state */\n outState.putParcelableArrayList(\"savedList\",bag);\n\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n outState = drawer.saveInstanceState(outState);\n //add the values which need to be saved from the accountHeader to the bundle\n outState = header.saveInstanceState(outState);\n super.onSaveInstanceState(outState);\n }",
"@Override\n\tpublic void onSaveInstanceState(Bundle savedInstanceState)\n\t{\n\t\tsuper.onSaveInstanceState(savedInstanceState);\n\n\t\tsavedInstanceState.putString(\"CurSearch\", mCurSearch);\n\t\tsavedInstanceState.putString(\"CurSearchNavi\", mCurSearchNavi);\n\t\tsavedInstanceState.putBoolean(\"ToNavi\", mToNavi);\n\t\tsavedInstanceState.putInt(\"ViewingItem\", mViewingItem);\n\t}",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putBoolean(\"AppRunning\",running);\n outState.putBoolean(\"Latest\",latestOp);\n outState.putBoolean(\"Started\",started);\n outState.putInt(\"Seconds\",sec);\n outState.putInt(\"Score\",score);\n outState.putInt(\"Total\",total);\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n uiHelper.onSaveInstanceState(outState);\n }",
"@Override\n protected void onSaveInstanceState(@NonNull Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putSerializable(\"datos\", (ArrayList<Institucion>) mDatos);\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putParcelable(\"mIncome\", mIncome);\n outState.putBoolean(\"was_edited\", mWasEdited);\n outState.putString(\"camera_image_file_path\", mCameraImageFilePath);\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putBoolean(STATE_SHOWING_MAP, showingMap);\n\n if (userLatLng != null) outState.putParcelable(STATE_USER_LATLNG, userLatLng);\n if (friendLatLng != null) outState.putParcelable(STATE_FRIEND_LATLNG, friendLatLng);\n if (midLatLng != null) outState.putParcelable(STATE_MID_LATLNG, midLatLng);\n\n outState.putInt(STATE_PAGE_NUMBER, pageNumber);\n outState.putBoolean(STATE_HAS_MORE_DATA, hasMoreData);\n if (nextUrl != null) outState.putString(STATE_NEXT_URL, nextUrl);\n\n outState.putStringArrayList(STATE_SELECTED_IDS, new ArrayList<>(selectedIdsMap.keySet()));\n outState.putIntegerArrayList(STATE_SELECTED_POSITIONS, new ArrayList<>(selectedIdsMap.values()));\n }",
"@Override \n\t\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n\t\t savedInstanceState.putInt(STATE_SCORE, mCurrentScore);\n\t\t savedInstanceState.putInt(STATE_LEVEL, mCurrentLevel);\n\t\t \n\t\t // Always call the superclass so it can save the view hierarchy state \n\t\t super.onSaveInstanceState(savedInstanceState);\n\t\t}",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n outState = drawer.saveInstanceState(outState);\n //add the values which need to be saved from the accountHeader to the bundle\n outState = headerResult.saveInstanceState(outState);\n super.onSaveInstanceState(outState);\n }",
"@Override\n public void onSaveInstanceState(Bundle savedInstanceState) {\n // Save the user's current game state\n savedInstanceState.putBoolean(\"Authenticated\", authenticated);\n\n // Always call the superclass so it can save the view hierarchy state\n super.onSaveInstanceState(savedInstanceState);\n }",
"@Override\n public void onSaveInstanceState(Bundle savedInstanceState) {\n savedInstanceState.putInt(KEY_SAVED_BOOK, this.saved_book_index);\n\n // Always call the superclass so it can save the view hierarchy state\n super.onSaveInstanceState(savedInstanceState);\n }",
"@Override\n public void saveState(Bundle outBundle) {\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putString(EMAIL, emailTyped);\n outState.putString(PASSWORD, passwordTyped);\n outState.putBoolean(SIGN_IN_ENABLED, signInEnabled);\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putString(STATE_NOMBRE, \"\"+tvResultNombre.getText());\n outState.putString(STATE_EDAD, \"\"+tvResultEdad.getText());\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n //saves mEventId and the time in milliseconds by putting it in a bundle\n outState.putInt(INSTANCE_EVENT_ID, mEventId);\n outState.putLong(INSTANCE_TIME, mDueDateCalendar.getTimeInMillis());\n super.onSaveInstanceState(outState);\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save the values.\n outState.putInt(BOOK_QUANTITY, quantity);\n }",
"public void onSaveInstanceState(Bundle savedInstanceState) {\n savedInstanceState.putBoolean(REQUESTING_LOCATION_UPDATES_KEY, mRequestingLocationUpdates);\n savedInstanceState.putParcelable(LOCATION_KEY, mCurrentLocation);\n savedInstanceState.putString(LAST_UPDATED_TIME_STRING_KEY, mLastUpdateTime);\n super.onSaveInstanceState(savedInstanceState);\n }",
"public void onSaveInstanceState(Bundle savedInstanceState) {\n savedInstanceState.putBoolean(REQUESTING_LOCATION_UPDATES_KEY, mRequestingLocationUpdates);\n savedInstanceState.putParcelable(LOCATION_KEY, mCurrentLocation);\n savedInstanceState.putString(LAST_UPDATED_TIME_STRING_KEY, mLastUpdateTime);\n super.onSaveInstanceState(savedInstanceState);\n }",
"public void onSaveInstanceState(Bundle savedInstanceState) {\n savedInstanceState.putBoolean(REQUESTING_LOCATION_UPDATES_KEY, mRequestingLocationUpdates);\n savedInstanceState.putParcelable(LOCATION_KEY, mCurrentLocation);\n savedInstanceState.putString(LAST_UPDATED_TIME_STRING_KEY, mLastUpdateTime);\n super.onSaveInstanceState(savedInstanceState);\n }",
"protected void onSaveInstanceState(Bundle savedInstance) {\n\n for (int i = 0; i < numInList; i++) {\n String name = shared.getString(\"ItemName\" + Integer.toString(i), \"\");\n float price = shared.getFloat(\"ItemPrice\" + Integer.toString(i), 0);\n int quantity = shared.getInt(\"ItemQuantity\"+i, 0);\n\n savedInstance.putInt(\"quantity\"+i, quantity);\n }\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState)\n {\n super.onSaveInstanceState(outState);\n outState.putInt(\"arms\", arms.getVisibility());\n outState.putInt(\"mustache\", mustache.getVisibility());\n outState.putInt(\"nose\", nose.getVisibility());\n outState.putInt(\"shoes\", shoes.getVisibility());\n outState.putInt(\"glasses\", glasses.getVisibility());\n outState.putInt(\"eyes\", eyes.getVisibility());\n outState.putInt(\"hat\", hat.getVisibility());\n outState.putInt(\"ears\", ears.getVisibility());\n outState.putInt(\"mouth\", mouth.getVisibility());\n outState.putInt(\"eyebrows\", eyebrows.getVisibility());\n\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n outState = result.saveInstanceState(outState);\n //add the values which need to be saved from the accountHeader to the bundle\n outState = headerResult.saveInstanceState(outState);\n super.onSaveInstanceState(outState);\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putSerializable(\"device\", mDevice);\n }",
"@Override\r\n\tprotected void onSaveInstanceState(Bundle outState) {\r\n\t\tsuper.onSaveInstanceState(outState);\r\n\t\toutState.putInt(\"pos\", mPos);\r\n\t\toutState.putInt(\"showpos\", mShowPos);\r\n\t\toutState.putParcelable(ShowTable.CONTENT_ITEM_TYPE, mUri);\r\n\t}",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n\n outState.putInt(\"roundCount\", roundCount);\n outState.putInt(\"player1Points\", player1Points);\n outState.putInt(\"player2Points\", player2Points);\n outState.putBoolean(\"player1Turn\", player1Turn);\n }",
"public void onSaveInstanceState(Bundle bundle) {\n super.onSaveInstanceState(bundle);\n getDelegate().c(bundle);\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n outState.putBundle(ICICLE_KEY, mGameView.saveState());\n }",
"protected void onBSSaveInstanceState(Bundle outState) {\n\n }",
"@Override\r\n public void onSaveInstanceState(Bundle savedInstanceState) {\n super.onSaveInstanceState(savedInstanceState);\r\n // Save the user's current game state\r\n savedInstanceState.putInt(\"STEPS\", numSteps);\r\n\r\n }",
"@Override\n public void onSaveInstanceState( @NonNull Bundle outState ) {\n super.onSaveInstanceState( outState );\n mMap.onSaveInstanceState( outState );\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n Log.d(TAG, \"onSaveInstanceState:method fYred\");\n outState.putInt(\"qestion We are on\", currentq);\n }",
"@Override\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\toutState.putInt(\"data\", mData);\n\t}",
"public Parcelable onSaveInstanceState() {\n SavedState savedState = new SavedState(super.onSaveInstanceState());\n if (!(this.auk == null || this.auk.aun == null)) {\n savedState.aup = this.auk.aun.getItemId();\n }\n savedState.auq = isOverflowMenuShowing();\n return savedState;\n }",
"@Override protected Parcelable onSaveInstanceState() {\n Parcelable superState = super.onSaveInstanceState();\n SavedState ss = new SavedState(superState);\n ss.rotated = rotated;\n ss.totalSpacingDegree = totalSpacingDegree;\n ss.satelliteDistance = satelliteDistance;\n ss.measureDiff = measureDiff;\n ss.expandDuration = expandDuration;\n ss.closeItemsOnClick = closeItemsOnClick;\n return ss;\n }",
"@Override\r\n protected void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n outState.putParcelable(SAVED_ADAPTER_ITEMS, Parcels.wrap(mRoomRecyclerview.getItems()));\r\n outState.putStringArrayList(SAVED_ADAPTER_KEYS, mRoomRecyclerview.getKeys());\r\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n if (LOCATION != null) {\n outState.putParcelable(\"locatie\", LOCATION);\n }\n if (contactName != null) {\n outState.putString(\"contactName\", contactName);\n }\n if (contactNumber != null) {\n outState.putString(\"contactNumber\", contactNumber);\n }\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n mapView.onSaveInstanceState(outState);\n super.onSaveInstanceState(outState);\n }",
"public void saveState() {\n\t\tsuper.saveState();\n\t}",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n Log.i(TAG, \"OnsAveInstance\");\n super.onSaveInstanceState(outState);\n outState.putParcelable(KEY_AVATAR_BITMAP, mAvatar.getBitmap());\n\n }",
"public void onSaveInstanceState(Bundle outState) {\n if (loginState){\n save = loginFragment.getSaveInformation();\n outState.putStringArrayList(\"saveLogin\",save);\n }\n else{\n save = signUpFragment.getSaveInformation();\n outState.putStringArrayList(\"saveLogin\",save);\n }\n\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n if (mMap != null) {\n outState.putParcelable(KEY_CAMERA_POSITION, mMap.getCameraPosition());\n outState.putParcelable(KEY_LOCATION, currentLocation);\n String KEY_TAB_INDEX = \"tab_index\";\n outState.putInt(KEY_TAB_INDEX, tabLayout.getSelectedTabPosition());\n super.onSaveInstanceState(outState);\n }\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n\n // set variables\n Friend friend;\n ArrayList<String> new_names = new ArrayList<>();\n int n = friends.size();\n\n // iterate over friends and store if Friend object is not standard\n for (int i = 0; i < n; i++) {\n friend = friends.get(i);\n if (!friend.getStandard()) {\n outState.putSerializable(friend.getName(), friend);\n new_names.add(friend.getName());\n }\n }\n\n // store names of non-standard Friend objects in bundle\n outState.putStringArrayList(\"new_names\", new_names);\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n outState = result.saveInstanceState(outState);\n super.onSaveInstanceState(outState);\n }",
"@Override\n public void onSaveInstanceState(Bundle savedInstanceState) {\n savedInstanceState.putString(SAVED_STATE, \"Saved\");\n savedInstanceState.putString(SAVED_EDIT_TEXT, editText.getText().toString());\n // Always call the superclass so it can save the view hierarchy state\n super.onSaveInstanceState(savedInstanceState);\n }"
] | [
"0.8288904",
"0.8288904",
"0.82732785",
"0.82732785",
"0.82732785",
"0.82732785",
"0.82732785",
"0.82732785",
"0.82732785",
"0.7970238",
"0.79002386",
"0.7680443",
"0.7532615",
"0.7532615",
"0.7532615",
"0.7519098",
"0.7500468",
"0.7486335",
"0.74704856",
"0.7460842",
"0.7430817",
"0.74222916",
"0.74178314",
"0.7415561",
"0.74034363",
"0.73807186",
"0.7368894",
"0.7368894",
"0.7358514",
"0.73426944",
"0.73385733",
"0.7315193",
"0.7313708",
"0.7307767",
"0.7305294",
"0.7269371",
"0.7269371",
"0.72609866",
"0.725939",
"0.7258286",
"0.72562516",
"0.725546",
"0.72408104",
"0.7232644",
"0.7228149",
"0.7223203",
"0.72202903",
"0.7202054",
"0.7167017",
"0.71588296",
"0.7152488",
"0.71519727",
"0.7097472",
"0.70930964",
"0.70675105",
"0.7063368",
"0.70611686",
"0.70516264",
"0.7048136",
"0.7036768",
"0.70080435",
"0.70026267",
"0.6986643",
"0.6977294",
"0.696782",
"0.69545543",
"0.69507796",
"0.68991876",
"0.6897491",
"0.68922997",
"0.6888526",
"0.6884525",
"0.6884223",
"0.6884223",
"0.6884223",
"0.6880604",
"0.68656343",
"0.68566155",
"0.6854478",
"0.685058",
"0.68418103",
"0.68399215",
"0.6838062",
"0.6830164",
"0.6826474",
"0.68207425",
"0.68100375",
"0.68092364",
"0.677447",
"0.67686594",
"0.674516",
"0.6743935",
"0.6728567",
"0.6727504",
"0.6724868",
"0.67205864",
"0.6716994",
"0.6703081",
"0.6697816",
"0.66920304"
] | 0.69744885 | 64 |
Retrieve all fields from object. | private static Field[] retrieveAllFields(final Object object) {
Field[] fieldsArray = null;
// - Retrieve fields array from cache if exists.
if (KerAnnotation.fieldsCache.containsKey(object.getClass())) {
fieldsArray = KerAnnotation.fieldsCache.get(object.getClass());
}
// - Else get fields and cache them.
else {
// - Aggregate all annotated fields (declared, inherited, etc.).
final Set<Field> fields = new HashSet<Field>();
for (final Field field : object.getClass().getFields()) {
if (field.getAnnotations().length > 0) {
fields.add(field);
}
}
for (final Field field : object.getClass().getDeclaredFields()) {
if (field.getAnnotations().length > 0) {
fields.add(field);
}
}
// - Convert set to array.
fieldsArray = fields.toArray(new Field[0]);
// - Cache array.
KerAnnotation.fieldsCache.put(object.getClass(), fieldsArray);
}
return fieldsArray;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}",
"List<Field> getFields();",
"private void findFields() {\n for(Class<?> clazz=getObject().getClass();clazz != null; clazz=clazz.getSuperclass()) {\r\n\r\n Field[] fields=clazz.getDeclaredFields();\r\n for(Field field:fields) {\r\n ManagedAttribute attr=field.getAnnotation(ManagedAttribute.class);\r\n Property prop=field.getAnnotation(Property.class);\r\n boolean expose_prop=prop != null && prop.exposeAsManagedAttribute();\r\n boolean expose=attr != null || expose_prop;\r\n\r\n if(expose) {\r\n String fieldName = Util.attributeNameToMethodName(field.getName());\r\n String descr=attr != null? attr.description() : prop.description();\r\n boolean writable=attr != null? attr.writable() : prop.writable();\r\n\r\n MBeanAttributeInfo info=new MBeanAttributeInfo(fieldName,\r\n field.getType().getCanonicalName(),\r\n descr,\r\n true,\r\n !Modifier.isFinal(field.getModifiers()) && writable,\r\n false);\r\n\r\n atts.put(fieldName, new FieldAttributeEntry(info, field));\r\n }\r\n }\r\n }\r\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 }",
"public List<String> showFields() {\n Client client = new Client();\n Class<?> objFields = client.getClass();\n List<String> list = new ArrayList<>();\n for (Field field : objFields.getDeclaredFields()) {\n list.add(field.getName());\n }\n return list;\n }",
"private Map<String,Field> getAllFields(Class clazz) {\n return this.getAllFields(clazz, false);\n }",
"public Map<String, Object> allFields() {\n Map<String, Object> map = new HashMap<>();\n properties.forEach((key, value) -> map.put(key, value.value()));\n return map;\n }",
"java.lang.String getFields();",
"public FieldDeclaration[] getFields() {\n return m_classBuilder.getFields();\n }",
"public List<FieldObject> getFieldObjects() {\n return _fieldObjects;\n }",
"Fields fields();",
"public Map<String, Object> getFields() {\n\t\treturn fields;\n\t}",
"@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }",
"@SuppressWarnings(\"rawtypes\")\n\tpublic List getFields(){\n\t\treturn targetClass.fields;\n\t}",
"public String getFields() {\n return fields;\n }",
"public Set<Field> getFields() {\r\n \t\t// We will only consider private fields in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredFields(), source.getFields());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getFields());\r\n \t}",
"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 }",
"public List<String> retornaFields() {\n\t\treturn data.retornaFields();\n\t}",
"private static HashSet<Field> getAllFields(Class<?> cls) {\n // First, let's get all the super classes.\n HashSet<Class<?>> ancestors = getInstrumentedAncestors(cls);\n\n // Then, let's get all the fields of these classes.\n HashSet<Field> allFields = new HashSet<>();\n for (Class<?> ancestor : ancestors) {\n Collections.addAll(allFields, ancestor.getDeclaredFields());\n }\n return allFields;\n }",
"public static Hashtable getAllFieldsValuesEx(Object object)\r\n\t\t\tthrows Exception {\r\n\t\tHashtable hashtable = new Hashtable();\r\n\t\tClass classType = object.getClass();\r\n\t\tField fields[] = ReflectUtil.getAllFields(classType);\r\n\t\tfor (int i = 0; i < fields.length; i++) {\r\n\t\t\tField field = fields[i];\r\n\t\t\tString fieldName = field.getName();\r\n\t\t\tMethod getMethod = ReflectUtil.getFieldGetMethod(classType, field);\r\n\t\t\tif (getMethod != null) {\r\n\t\t\t\tObject value = getMethod.invoke(object, new Object[] {});\r\n\t\t\t\thashtable.put(fieldName, value);\r\n\t\t\t} else {\r\n\t\t\t\t// System.out.println(\"Field \" + fieldName\r\n\t\t\t\t// +\"'s value is not gotten\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn hashtable;\r\n\t}",
"public Map<String, String> getFields() {\n return fields;\n }",
"private List getMappingFieldsInternal() {\n if (fields == null) {\n fields = new ArrayList();\n }\n\n return fields;\n }",
"java.util.List<Field>\n getFieldsList();",
"public static String[][] getAllFieldsEx(Object object) throws Exception {\r\n\r\n\t\tClass classType = object.getClass();\r\n\t\tField fields[] = ReflectUtil.getAllFields(classType);\r\n\t\tString[][] fieldNameValuePair = new String[fields.length][2];\r\n\t\tfor (int i = 0; i < fields.length; i++) {\r\n\t\t\tField field = fields[i];\r\n\t\t\tString fieldName = field.getName();\r\n\t\t\tMethod getMethod = ReflectUtil.getFieldGetMethod(classType, field);\r\n\t\t\tObject value = getMethod.invoke(object, new Object[] {});\r\n\t\t\tfieldNameValuePair[i][0] = fieldName;\r\n\t\t\tfieldNameValuePair[i][1] = value.toString();\r\n\t\t}\r\n\t\treturn fieldNameValuePair;\r\n\t}",
"public List<ModelObject> readAll();",
"ISourceField[] getFields();",
"public static Field[] getAllFields(Class forClass) {\r\n\t\tfinal List<Field> fields = new ArrayList<Field>();\r\n\t\tClass aktClass = forClass;\r\n\t\twhile (!aktClass.equals(Object.class)) {\r\n\t\t\tField[] tmp = aktClass.getDeclaredFields();\r\n\t\t\tfor (Field akt : tmp) {\r\n\t\t\t\tfields.add(akt);\r\n\t\t\t}\r\n\t\t\taktClass = aktClass.getSuperclass();\r\n\t\t}\r\n\t\treturn fields.toArray(new Field[fields.size()]);\r\n\t}",
"public static Field[] getAllFields (Class c)\n\t{\n\t\tList l = new ArrayList();\n\t\taddDeclaredFields(l, c);\n\t\t\n\t\tField[] fields = new Field[l.size()];\n\t\tfields = (Field[]) l.toArray(fields);\n\t\treturn fields;\n\t}",
"java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();",
"public HashMap<String, String> getFields() {\r\n \t\treturn fields;\r\n \t}",
"public EAdList<EAdField<?>> getFields() {\r\n\t\treturn fields;\r\n\t}",
"protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }",
"com.google.protobuf.ByteString\n getFieldsBytes();",
"List<FieldNode> getFields() {\n return this.classNode.fields;\n }",
"public List<Field<T>> getFields()\r\n/* 63: */ {\r\n/* 64:84 */ return this.fields;\r\n/* 65: */ }",
"synchronized public Set<String> getFields() {\n return Collections.unmodifiableSet(new HashSet<>(fields));\n }",
"@Override\n public ArrayList<Object> getFieldsAsList() {\n if (!getParsed()) {\n parse();\n }\n if (cachedList == null) {\n cachedList = new ArrayList<Object>();\n } else {\n cachedList.clear();\n }\n for (int i = 0; i < getFields().length; i++) {\n cachedList.add(uncheckedGetField(i));\n }\n return cachedList;\n }",
"public static void getSuperFields(Class<?> clazz, ArrayList<Field> all_fields) {\n\t\tif (clazz == Object.class)\n\t\t\treturn;\n\t\t\n\t\t//Field [] element_fields_ = clazz.getFields();\n\t\tField [] element_fields = clazz.getDeclaredFields(); //clazz.getFields();\n\t\tfor (Field f: element_fields) {\n\t\t\tall_fields.add(f);\n\t\t}\n\t\tgetSuperFields(clazz.getSuperclass(), all_fields);\n\t\t\n\t\treturn;\n\t}",
"public String[] getAllFilledAnnotationFields();",
"public Enumeration getFields()\n {\n ensureLoaded();\n return m_tblField.elements();\n }",
"public abstract Set<ResolvedFieldDeclaration> getDeclaredFields();",
"public Map<String, String> getFields() {\n return null;\n }",
"public List<Field> iterateThroughAllFields() {\n\n List<Field> listOfFields = new ArrayList<Field>(fields.length * fields.length);\n // TODO: n**m complexity\n for (int i = 0; i < this.fields.length; i++) {\n for (int j = 0; j < this.fields.length; j++) {\n listOfFields.add(this.fields[i][j]);\n }\n }\n return listOfFields;\n }",
"public List getAllObjects() throws DataAccessException {\n\t\treturn mapper.getAllDepts();\n\t}",
"public List<AliasedField> getFields() {\r\n return fields;\r\n }",
"@Override\n public java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList() {\n return fields_;\n }",
"public Set<FieldInfo> getFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_atts);\n }",
"public ReactorResult<DataObject> getAllGeneralEncapsulatedObject_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT, DataObject.class);\r\n\t}",
"public static ReflectionResponse<Map<String, String>> getPrintableFields(Object object, Class<?>... toStringExceptions) {\n return getPrintableFields(object, true, toStringExceptions);\n }",
"private static void getAllFields(Class<?> clazz, ArrayList<Field> all_fields, ArrayList<Class<?>> all_classes) {\n\t\tif (clazz == Object.class)\n\t\t\treturn;\n\t\tall_classes.add(clazz);\n\t\t//Field [] element_fields_ = clazz.getFields();\n\t\tField [] element_fields = clazz.getDeclaredFields(); //clazz.getFields();\n\t\tfor (Field f: element_fields) {\n\t\t\tall_fields.add(f);\n\t\t}\n\t\tgetAllFields(clazz.getSuperclass(), all_fields, all_classes);\n\t\t\n\t\treturn;\n\t}",
"public List<AccountingLineViewField> getFields() {\n return fields;\n }",
"@Override\n public Field getFields(int index) {\n return fields_.get(index);\n }",
"public DBField[] getFields()\n {\n // Note: this method is called frequently\n if (!this.fieldArrayReady) {\n // optimize access to field array\n synchronized (this.fieldMap) {\n if (!this.fieldArrayReady) { // test again inside lock\n this.fieldArray = this.fieldMap.valueArray(DBField.class);\n this.fieldArrayReady = true;\n }\n }\n } \n return this.fieldArray;\n }",
"public List<String> getFields() {\n if (!Strings.isNullOrEmpty(fields)) {\n return Arrays.asList(fields.split(\",\"));\n } else {\n return Collections.emptyList();\n }\n }",
"public Hashtable getFields() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tif (myData.record!=null)\n\t\t{\n\t\t\tHashtable table;\n\t\t\ttry\n\t\t\t{\n\t\t\t\ttable=myData.record.getFields();\n\t\t\t\tHashtable fields=new Hashtable();\n\t\t\t\tEnumeration enumeration=table.keys();\n\t\t\t\twhile (enumeration.hasMoreElements())\n\t\t\t\t{\n\t\t\t\t\tString name=(String)enumeration.nextElement();\n\t\t\t\t\tfields.put(name,new LVObject(table.get(name)));\n\t\t\t\t}\n\t\t\t\treturn fields;\n\t\t\t}\n\t\t\tcatch (LDBException e) { setStatus(e); }\n\t\t}\n\t\telse if (myData.spec!=null)\n\t\t{\n\t\t\tHashtable table=new Hashtable();\n\t\t\tEnumeration enumeration=myData.spec.getFields().keys();\n\t\t\twhile (enumeration.hasMoreElements())\n\t\t\t\ttable.put(enumeration.nextElement(),new LVObject());\n\t\t\treturn table;\n\t\t}\n\t\treturn new Hashtable();\n\t}",
"public List<Fw> getAllFields(final Class<?> aClass) {\n\t\tList<Fw> result = new ArrayList<>();\n\t\tresult.addAll(this.getSpecialFields(aClass));\n\t\tList<Field> classFields = Arrays.asList(aClass.getDeclaredFields());\n\t\tfor (Field fld : this.getAllTheFields(aClass)) {\n\t\t\tboolean isSuperField = !classFields.contains(fld);\n\t\t\tresult.add(this.makeFw(fld, aClass, isSuperField));\n\t\t}\n\n\t\tthis.removeDoubleIdField(result);\n\t\treturn this.sortAllFields(result);\n\t}",
"public static void getFields (Class<?> clazz, List<Field> addTo)\n {\n // first get the fields of the superclass\n Class<?> pclazz = clazz.getSuperclass();\n if (pclazz != null && !pclazz.equals(Object.class)) {\n getFields(pclazz, addTo);\n }\n \n // then reflect on this class's declared fields\n Field[] fields;\n try {\n fields = clazz.getDeclaredFields();\n } catch (SecurityException se) {\n System.err.println(\"Unable to get declared fields of \" + clazz.getName() + \": \" + se);\n fields = new Field[0];\n }\n \n // override the default accessibility check for the fields\n try {\n AccessibleObject.setAccessible(fields, true);\n } catch (SecurityException se) {\n // ah well, only publics for us\n }\n \n for (Field field : fields) {\n int mods = field.getModifiers();\n if (Modifier.isStatic(mods) || Modifier.isTransient(mods)) {\n continue; // skip static and transient fields\n }\n addTo.add(field);\n }\n }",
"private List<Field> getFields() {\n try {\n List<Field> fields = ResultSetUtil.getFields(databaseName, tableName, resultSets.get(0));\n if(fields.size() != MergeFactory.MAX_QUERY_FIELD_SIZE){\n throw new SqlParserException(\"the query fields max be equals \" + MergeFactory.MAX_QUERY_FIELD_SIZE);\n }\n return fields;\n } catch (SQLException e) {\n LOG.error(\"merge resultSet error\",e);\n throw new MergeException(\"merge resultSet error\" , e);\n }\n }",
"public java.util.List<Field> getFieldsList() {\n if (fieldsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(fields_);\n } else {\n return fieldsBuilder_.getMessageList();\n }\n }",
"com.sagas.meta.model.MetaFieldData getFields(int index);",
"public abstract List<Object> getAll();",
"@Test\n public void getFieldsTest() throws ApiException {\n List<FieldDetails> response = api.getFields();\n\n // TODO: test validations\n }",
"@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn null;\n\t}",
"public ArrayList<GOlrField> getFields() {\n\n ArrayList<GOlrField> collection = new ArrayList<GOlrField>();\n\n // Plonk them all in to our bookkeeping.\n for (GOlrField field : unique_fields.values()) {\n collection.add(field);\n }\n\n return collection;\n }",
"@Override\n\tpublic void getAll() {\n\t\tfor (int i = 0; i < dto.length; i++) {\n\t\t\tSystem.out.println(dto[i]);\n\t\t}\n\n\t}",
"java.util.List<? extends com.sagas.meta.model.MetaFieldDataOrBuilder> \n getFieldsOrBuilderList();",
"public List<NamedThing> getProperties() {\n // TODO this should be changed to AnyProperty type but it as impact everywhere\n List<NamedThing> properties = new ArrayList<>();\n List<Field> propertyFields = getAnyPropertyFields();\n for (Field f : propertyFields) {\n try {\n if (NamedThing.class.isAssignableFrom(f.getType())) {\n f.setAccessible(true);\n Object fValue = f.get(this);\n if (fValue != null) {\n NamedThing se = (NamedThing) fValue;\n properties.add(se);\n } // else not initalized but this is already handled in the initProperties that must be called\n // before the getProperties\n }\n } catch (IllegalAccessException e) {\n throw new TalendRuntimeException(CommonErrorCodes.UNEXPECTED_EXCEPTION, e);\n }\n }\n return properties;\n }",
"protected Vector getUnmappedFields() {\r\n Vector fields = new Vector(1);\r\n if (isStoredInCache()) {\r\n fields.addElement(getWriteLockField());\r\n }\r\n return fields;\r\n }",
"@Override\n\tpublic void getFields(List<String> table) {\n\t\t\n\t}",
"public List<T> selectAll() {\n Logger logger = getLogger();\n List<T> objectList = new ArrayList<>();\n try (Connection connection = getConnection();\n PreparedStatement preparedStatement = connection.prepareStatement(getSelectAll())) {\n\n logger.info(\"Executing statement: \" + preparedStatement);\n ResultSet rs = preparedStatement.executeQuery();\n\n while (rs.next()) {\n T object = setObjectParams(rs);\n setObjectId(rs, object);\n objectList.add(object);\n }\n } catch (SQLException e) {\n logger.error(e.getMessage());\n }\n logger.info(\"Select all: success\");\n return objectList;\n }",
"protected ArrayList<Object> getAllFieldsAsArrayList() {\n\n\t\t// first we get all the global fields.\n\t\t// That is, ones that apply to both Sprites,Text and any other object types.\n\t\tArrayList<Object> fieldList = super.getAllFieldsAsArrayList();\n\n\t\t//then we get the dialogue specific fields\n\t\tLog.info(\"getting label specific fields for object \"+ObjectsName);\n\n\t\tif (ObjectsCurrentText==null){\n\t\t\tLog.severe(\"Text is null at this point..is there a previous error? It could be the text contains characters the paragraph object doesnt support.\");\n\t\t}\n\n\t\t// dialog data\n\t\t//\n\n\t\t//we escape all newlines\n\t\tString currentTextWithEscapedNewlines = ObjectsCurrentText.replaceAll(\"\\\\r\\\\n|\\\\r|\\\\n\",ESCAPED_NEWLINE);\t\t\n\t\tfieldList.add(currentTextWithEscapedNewlines );\t\t\n\t\t//\tfieldList.add(ObjectsCurrentText.replaceAll(\"\\n\",ESCAPED_NEWLINE) );\n\t\tfieldList.add(CSSname);\n\n\n\t\treturn fieldList;\n\n\t}",
"public FieldDescriptor[] getFields() {\n int size = attributeDescriptors.size();\n size += elementDescriptors.size();\n if (contentDescriptor != null) ++size;\n\n FieldDescriptor[] fields = new FieldDescriptor[size];\n int c = 0;\n for (int i = 0; i < attributeDescriptors.size(); i++)\n fields[c++] = (FieldDescriptor) attributeDescriptors.get(i);\n\n for (int i = 0; i < elementDescriptors.size(); i++)\n fields[c++] = (FieldDescriptor) elementDescriptors.get(i);\n\n if (contentDescriptor != null)\n fields[c] = contentDescriptor;\n\n return fields;\n }",
"@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn rolDao.readAll();\n\t}",
"public ObjectProperties getObjectProperties();",
"private String[] getDefinedFields(ObjectSet<?> pObjectSet) {\r\n\t\tString[] returnedValue = null;\r\n\t\tList<String> fieldsList = new ArrayList<String>();\r\n\t\t\r\n\t\tif (pObjectSet != null) {\r\n\t\t\tif (pObjectSet.getDataMappings().size() > 0) {\r\n\t\t\t\tfor(DataMapping mapping : pObjectSet.getDataMappings()) {\r\n\t\t\t\t\tif (!mapping.virtual && !mapping.IsCollection) {\r\n\t\t\t\t\t\tif (mapping.DataBaseDataType != Entity.DATATYPE_ENTITY) {\r\n\t\t\t\t\t\t\tfieldsList.add(mapping.DataBaseFieldName);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (fieldsList.size() > 0) {\r\n\t\t\treturnedValue = fieldsList.toArray(new String[fieldsList.size()]);\r\n\t\t}\r\n\t\t\r\n\t\treturn returnedValue;\r\n\t}",
"@Override\n public List<MappedField<?>> getAttributes() {\n return attributes;\n }",
"@Override\n\t\tpublic Map<String, Object> getAllProperties() {\n\t\t\treturn null;\n\t\t}",
"@Override\n protected List<FieldInfo> getListData()\n {\n // if is an array (we potentially will compress the array if it is\n // large)\n if (obj.isArray()) {\n return compressArrayList(obj);\n }\n else {\n List<DebuggerField> fields = obj.getFields();\n List<FieldInfo> fieldInfos = new ArrayList<FieldInfo>(fields.size());\n for (DebuggerField field : fields) {\n if (! Modifier.isStatic(field.getModifiers())) {\n String desc = Inspector.fieldToString(field);\n String value = field.getValueString();\n fieldInfos.add(new FieldInfo(desc, value));\n }\n }\n return fieldInfos;\n }\n }",
"public Map<String,String> getAllCustomFields()\n\t{\n\t\treturn getAllCustomFields( getSession().getSessionContext() );\n\t}",
"public List<Field> getAllTheFields(Class<?> aSourceClass) {\n\t\tList<Field> result = new ArrayList<Field>();\n\t\tthis.getAllFields(aSourceClass, result);\n\t\treturn result;\n\t}",
"@Nullable\n public com.commercetools.api.models.type.FieldContainer getFields() {\n return this.fields;\n }",
"@Override\n\tpublic List<ProducteurDtoRep> readAll() {\n\t\treturn null;\n\t}",
"public static Field[] getFields (Class<?> clazz)\n {\n ArrayList<Field> list = new ArrayList<Field>();\n getFields(clazz, list);\n return list.toArray(new Field[list.size()]);\n }",
"public static ReflectionResponse<Map<String, String>> getPrintableFields(Object object, boolean useToString, Class<?>... toStringExceptions) {\n Validate.notNull(object, \"object cannot be null\");\n return getPrintableFields(object, object.getClass(), useToString, toStringExceptions);\n }",
"Object getObjectField();",
"@Override\n\tpublic List<finalDataBean> findAll(String[] fields) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<String> listSearchableFields() {\n\t\tList<String> listSearchableFields = new ArrayList<String>();\n\t\tlistSearchableFields.addAll(super.listSearchableFields());\n\n\t\tlistSearchableFields.add(\"firstName\");\n\n\t\tlistSearchableFields.add(\"lastName\");\n\n\t\tlistSearchableFields.add(\"contactDetails.phone\");\n\n\t\tlistSearchableFields.add(\"contactDetails.secondaryPhone\");\n\n\t\tlistSearchableFields.add(\"contactDetails.city\");\n\n\t\treturn listSearchableFields;\n\t}",
"public List<StatefullComponent> getFields() {\n\t\treturn null;\r\n\t}",
"public List<MathVarDec> getFields() {\n return fields;\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate Set<Field> getPersistenceFields(Class<?> clz) {\n\t\tSet fields = new HashSet();\n\t\tfor (Field f : clz.getDeclaredFields()) {\n\t\t\tif (f.isAnnotationPresent(Persistence.class)) {\n\t\t\t\tf.setAccessible(true);\n\t\t\t\tfields.add(f);\n\t\t\t}\n\t\t}\n\t\treturn fields;\n\t}",
"java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList();",
"@Override\n\tprotected String getFields()\n\t{\n\t\tString fields = \" GAZOID, GAZFLD, GAZPVN, GAZTYP, GAZCLN, GAZCLS \";\n\t\treturn fields;\n\t}",
"public Map<String,String> getAllCustomFields(final SessionContext ctx)\n\t{\n\t\tMap<String,String> map = (Map<String,String>)getProperty( ctx, CUSTOMFIELDS);\n\t\treturn map != null ? map : Collections.EMPTY_MAP;\n\t}",
"public List<ResolvedFieldDeclaration> getAllFieldsVisibleToInheritors() {\n List<ResolvedFieldDeclaration> res = new LinkedList<>(this.getDeclaredFields().stream().filter(f -> f.accessSpecifier() != AccessSpecifier.PRIVATE).collect(Collectors.toList()));\n getDirectAncestors().forEach(a -> res.addAll(a.getAllFieldsVisibleToInheritors()));\n return res;\n }",
"@SimpleFunction(description = \"Get the fields in the projects as a list\")\n public YailList GetFieldsList() {\n ArrayList<String> fieldsList = new ArrayList<String>();\n for (RProjectField j : fields) {\n fieldsList.add(j.name);\n }\n return YailList.makeList(fieldsList);\n }",
"private <T> Map<String, Field> getFields(final Class<T> destinationClass) {\n final Map<String, Field> mappedFields = new HashMap<>();\n logger.trace(\"Retrieving all declared fields for class: {}\", destinationClass);\n final List<Field> declaredFields = getFields(new ArrayList<>(), destinationClass);\n\n for (Field field : declaredFields) {\n if (!field.isAnnotationPresent(Ignore.class)) {\n mapFieldName(mappedFields, field);\n }\n }\n\n return mappedFields;\n }",
"@Override\r\npublic List<Map<String, Object>> readAll() {\n\treturn detalle_pedidoDao.realAll();\r\n}",
"@Override\n public int getFieldsCount() {\n return fields_.size();\n }",
"List<Pair<String, Value>> fields();"
] | [
"0.70561177",
"0.6722709",
"0.6718249",
"0.67163825",
"0.6525172",
"0.6498672",
"0.6451415",
"0.64388156",
"0.641646",
"0.64159495",
"0.64106345",
"0.6350451",
"0.6349394",
"0.63433135",
"0.6340767",
"0.6314904",
"0.6226189",
"0.6215569",
"0.61849165",
"0.6142205",
"0.6136805",
"0.6109051",
"0.6066974",
"0.6055179",
"0.60326993",
"0.6030056",
"0.60211533",
"0.6004392",
"0.5995621",
"0.5988108",
"0.5979582",
"0.59572613",
"0.59509104",
"0.594105",
"0.5903994",
"0.5900648",
"0.5888111",
"0.5861812",
"0.585379",
"0.5845613",
"0.583849",
"0.58332205",
"0.58190984",
"0.5814306",
"0.5811303",
"0.5807663",
"0.5789646",
"0.5787551",
"0.5759605",
"0.57442737",
"0.57234836",
"0.57213277",
"0.5715437",
"0.5709314",
"0.56865734",
"0.56730795",
"0.56705123",
"0.56438494",
"0.564332",
"0.5641534",
"0.56090385",
"0.5573609",
"0.5557438",
"0.5557438",
"0.55561805",
"0.55522645",
"0.5550772",
"0.554157",
"0.5540959",
"0.55390114",
"0.5535186",
"0.5515292",
"0.5512849",
"0.54979265",
"0.5497408",
"0.54859394",
"0.5484947",
"0.54808986",
"0.5480054",
"0.5468816",
"0.5465665",
"0.5448607",
"0.54396254",
"0.5425374",
"0.5415655",
"0.5403718",
"0.5396563",
"0.5390831",
"0.5389771",
"0.53865266",
"0.538103",
"0.53785694",
"0.5370496",
"0.5368771",
"0.5365659",
"0.5364922",
"0.5360357",
"0.5355574",
"0.53418666",
"0.5340824"
] | 0.70762604 | 0 |
Retrieve all methods from object. | private static Method[] retrieveAllMethods(final Object object) {
Method[] methodsArray = null;
// - Retrieve methods array from cache if exists.
if (KerAnnotation.methodsCache.containsKey(object.getClass())) {
methodsArray = KerAnnotation.methodsCache.get(object.getClass());
}
// - Else get methods and cache them.
else {
// - Aggregate all annotated methods (declared, inherited, etc.).
final Set<Method> methods = new HashSet<Method>();
for (final Method method : object.getClass().getMethods()) {
if (method.getAnnotations().length > 0) {
methods.add(method);
}
}
for (final Method method : object.getClass().getDeclaredMethods()) {
if (method.getAnnotations().length > 0) {
methods.add(method);
}
}
// - Convert set to array.
methodsArray = methods.toArray(new Method[0]);
// - Cache array.
KerAnnotation.methodsCache.put(object.getClass(), methodsArray);
}
return methodsArray;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<IMethod> getMethods();",
"public List<IMethod> getMethods();",
"List<Method> getAllMethods();",
"ISourceMethod[] getMethods();",
"public Enumeration getMethods()\n {\n ensureLoaded();\n return m_tblMethod.elements();\n }",
"public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }",
"private void findMethods() {\n List<Method> methods = new ArrayList<Method>(Arrays.asList(getObject().getClass().getMethods()));\r\n List<Method> objectMethods = new ArrayList<Method>(Arrays.asList(Object.class.getMethods()));\r\n methods.removeAll(objectMethods);\r\n \r\n for(Method method:methods) {\r\n //does method have @ManagedAttribute annotation?\r\n if(method.isAnnotationPresent(ManagedAttribute.class) || method.isAnnotationPresent(Property.class)) {\r\n exposeManagedAttribute(method);\r\n }\r\n //or @ManagedOperation\r\n else if (method.isAnnotationPresent(ManagedOperation.class) || isMBeanAnnotationPresentWithExposeAll()){\r\n exposeManagedOperation(method); \r\n } \r\n }\r\n }",
"public MethodDeclaration[] getMethods() {\n return m_classBuilder.getMethods();\n }",
"public List<ResolvedMethodDeclaration> getAllMethods() {\n List<ResolvedMethodDeclaration> allMethods = new LinkedList<>(this.getTypeDeclaration().getDeclaredMethods());\n getDirectAncestors().forEach(a -> allMethods.addAll(a.getAllMethods()));\n return allMethods;\n }",
"public static MethodClass getMethods (){\n\t\treturn methods;\n\t}",
"public String[] getMethods() {\n\t\treturn methods;\n\t}",
"public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}",
"List<MethodNode> getMethods() {\n return this.classNode.methods;\n }",
"@XRMethod(value = \"system.listMethods\", help = \"List all method names available\")\r\n\tList<String> listMethods();",
"public Enumeration getMethodNames()\n {\n final EnumerationUnion eu = new EnumerationUnion();\n if( methods != null )\n {\n eu.add( methods.keys() );\n }\n if( ancestors != null )\n {\n final int size = ancestors.size();\n for( int i = 0; i < size; i++ )\n {\n final ScriptingClass clazz = (ScriptingClass)\n ancestors.elementAt( i );\n eu.add( clazz.getMethodNames() );\n }\n }\n try\n {\n final ScriptingClass object = getClassLoader().load( \"object\" );\n eu.add( object.getMethodNames() );\n }\n catch( ScriptingClassNotFoundException e )\n {\n }\n return eu;\n }",
"@Override\n\tpublic String[] getMethods() {\n\t\treturn null;\n\t}",
"public ArrayList<Method> getMethods() {\n\t\treturn arrayMethods;\n\t}",
"public static Method[] getAllMethods(Class forClass) {\r\n\t\tfinal List<Method> methods = new ArrayList<Method>();\r\n\t\tClass aktClass = forClass;\r\n\t\twhile (!aktClass.equals(Object.class)) {\r\n\t\t\tMethod[] tmp = aktClass.getDeclaredMethods();\r\n\t\t\tfor (Method akt : tmp) {\r\n\t\t\t\tmethods.add(akt);\r\n\t\t\t}\r\n\t\t\taktClass = aktClass.getSuperclass();\r\n\t\t}\r\n\t\treturn methods.toArray(new Method[methods.size()]);\r\n\t}",
"public abstract Set<MethodUsage> getDeclaredMethods();",
"public List<ServiceMethod> getMethodList()\n {\n return Collections.unmodifiableList(methods);\n }",
"public Set<AbstractProgramData<?>> getMethods()\n {\n return this.methods;\n }",
"java.util.List<org.mojolang.mojo.lang.FuncDecl> \n getMethodsList();",
"public static List<Method> getMethods( Class<?> klass )\r\n {\r\n return Arrays.asList( org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods( klass ) );\r\n }",
"public List<Method> getMethod_list() {\n\t\treturn arrayMethods;\n\t}",
"@Override\n public ServiceResponse listMethods(final ServiceRequest request) throws SOAPException {\n return this.soapClient.listMethods(request, this.getTargetUrl());\n }",
"@GetMapping(\"/methods\")\n @Timed\n public List<MethodsDTO> getAllMethods() {\n log.debug(\"REST request to get all Methods\");\n return methodsService.findAll();\n }",
"public static List<Map<String, Object>> getMethods(Map<String, Object> model) {\n @SuppressWarnings(\"unchecked\")\n List<Map<String, Object>> methods = (List<Map<String, Object>>) getRoot(model).get(ModelConstant.METHODS);\n return methods;\n }",
"@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }",
"public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }",
"private Map<String, MethodNode> getMethods(ClassNode cls) {\n Map<String, MethodNode> methods = new HashMap<String, MethodNode>();\n\n Map<String, Node> allAttrs = cls.getMembers();\n Iterator allAttrs_it = allAttrs.entrySet().iterator();\n while(allAttrs_it.hasNext()) {\n Map.Entry attr_entry = (Map.Entry)allAttrs_it.next();\n if(attr_entry.getValue() instanceof MethodNode) {\n String methodName = (String)attr_entry.getKey();\n MethodNode method = (MethodNode)attr_entry.getValue();\n methods.put(methodName, method);\n }\n }\n return methods;\n }",
"public List<String> getMethodList() throws CallError, InterruptedException {\n return (List<String>)service.call(\"getMethodList\").get();\n }",
"private Set<Method> getVirtualMethods()\n {\n return this.getContainer().getVirtualMethods();\n }",
"public List<PaymentEntity> getPaymentMethods() {\n return entityManager.createNamedQuery(\"getAllPaymentMethods\", PaymentEntity.class).getResultList();\n\n }",
"public TreeMap<String,CheckOutMethod>\n getMethods()\n {\n TreeMap<String,CheckOutMethod> methods = new TreeMap<String,CheckOutMethod>();\n for(String name : pVersionFields.keySet()) {\n JCollectionField field = pMethodFields.get(name);\n methods.put(name, CheckOutMethod.values()[field.getSelectedIndex()]);\n }\n return methods;\n }",
"public static Method[] getPublicMethods(Class<?> paramClass) {\n/* 107 */ if (System.getSecurityManager() == null) {\n/* 108 */ return paramClass.getMethods();\n/* */ }\n/* 110 */ HashMap<Object, Object> hashMap = new HashMap<>();\n/* 111 */ while (paramClass != null) {\n/* 112 */ boolean bool = getInternalPublicMethods(paramClass, (Map)hashMap);\n/* 113 */ if (bool) {\n/* */ break;\n/* */ }\n/* 116 */ getInterfaceMethods(paramClass, (Map)hashMap);\n/* 117 */ paramClass = paramClass.getSuperclass();\n/* */ } \n/* 119 */ return (Method[])hashMap.values().toArray((Object[])new Method[hashMap.size()]);\n/* */ }",
"public String enumerateMethods(){\n Class c = EvaluatingStudent.class; // replace this with your choice, e.g. CreatingStudent.class\n Method[] methods = c.getMethods();\n String result = \"\";\n for(int i = 0; i < methods.length; i++) {\n result += methods[i].toString() + '\\n';\n }\n return result;\n }",
"public static Method[] getInstanceMethods(Class<?> cls) {\n List<Method> instanceMethods = new ArrayList<>();\n for (Class<?> c = cls; c != null; c = c.getSuperclass()) {\n Method[] methods = c.getDeclaredMethods();\n for (Method method : methods)\n if (!Modifier.isStatic(method.getModifiers()))\n instanceMethods.add(method);\n }\n Method[] ims = new Method[instanceMethods.size()];\n for (int j = 0; j < instanceMethods.size(); j++)\n ims[j] = instanceMethods.get(j);\n return ims;\n }",
"@Override\n public List<Method> getAllUssdMethodes(String className) {\n\n Class klass = null;\n\n try {\n klass = Class.forName(className);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n List<Method> resultMethods = new ArrayList<Method>();\n if (klass == null)\n return resultMethods;\n Method[] methods = klass.getDeclaredMethods();\n\n\n for (Method method : methods) {\n method.setAccessible(true);\n if (method.isAnnotationPresent(UssdMethod.class)) {\n resultMethods.add(method);\n }\n }\n\n return resultMethods;\n }",
"public List<ResourceMethod> getResourceMethods() {\n return resourceMethods;\n }",
"public ArrayList<String> getNullMethods() {\n\t\treturn methods;\n\t}",
"public\tList<JsClass.Method>\tgetAddedMethods() {\n\t\t\n\t\treturn\tCollections.unmodifiableList(this.addedMethods);\n\t}",
"public List<String> getMethodList() throws DynamicCallException, ExecutionException {\n return (List<String>)call(\"getMethodList\").get();\n }",
"public abstract List<Object> getAll();",
"public Future<List<String>> getMethodList() throws DynamicCallException, ExecutionException {\n return call(\"getMethodList\");\n }",
"public Collection<ResourceMethod> getMethodsForPath(\n RemainingPath remainingPath) {\n // NICE results may be chached, if any method is returned.\n // The 404 case will be called rarely and produce a lot of cached data.\n final List<ResourceMethod> resourceMethods = new ArrayList<ResourceMethod>();\n for (final ResourceMethod method : this.resourceMethods) {\n final PathRegExp methodPath = method.getPathRegExp();\n if (remainingPath.isEmptyOrSlash()) {\n if (methodPath.isEmptyOrSlash()) {\n resourceMethods.add(method);\n }\n } else {\n if (methodPath.matchesWithEmpty(remainingPath)) {\n resourceMethods.add(method);\n }\n }\n }\n return resourceMethods;\n }",
"public HashMap<String, LabTest> getMethods() {\n HashMap<String, LabTest> methods = new HashMap<>();\n if (isApiAvailable(\"getMethods\")) {\n makeConnection(\"getMethods\");\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n String inputLine = null;\n StringBuilder content = new StringBuilder();\n while (true) {\n try {\n assert in != null;\n if ((inputLine = in.readLine()) == null) break;\n } catch (IOException e) {\n e.printStackTrace();\n }\n content.append(inputLine);\n }\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n String jsonstring = content.toString();\n jsonArray = new JSONArray(jsonstring);\n for (int i = 0; i < jsonArray.length(); i++) {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n JsonObject jsonObject = gson.fromJson(String.valueOf(jsonArray.get(i)), JsonObject.class);\n LabTest method = makeMethod(jsonObject);\n methods.put(method.getNameOfMethod(), method);\n }\n con.disconnect();\n }\n return methods;\n }",
"java.util.List<? extends org.mojolang.mojo.lang.FuncDeclOrBuilder> \n getMethodsOrBuilderList();",
"org.mojolang.mojo.lang.FuncDecl getMethods(int index);",
"public abstract String[] getMethodNames();",
"Iterable<T> getFunctions();",
"public static Method[] getMethodsInClassHierarchy(Class<?> clazz) {\n Method[] methods = {};\n while (clazz != null) {\n methods = (Method[]) ArrayUtils.addAll(methods, clazz.getDeclaredMethods());\n clazz = clazz.getSuperclass();\n }\n return methods;\n }",
"private static HashSet<ExpressionObjectMethod> generateExpressionObjectMethods(Dialect dialect,\r\n\t\tExpressionObject expressionobject, IJavaProject project) {\r\n\r\n\t\tHashSet<ExpressionObjectMethod> generatedmethods = new HashSet<ExpressionObjectMethod>();\r\n\r\n\t\tString classname = expressionobject.getClazz();\r\n\t\ttry {\r\n\t\t\tIType type = project.findType(classname);\r\n\t\t\tif (type != null) {\r\n\t\t\t\tfor (IMethod method: type.getMethods()) {\r\n\t\t\t\t\tif (!method.isConstructor()) {\r\n\r\n\t\t\t\t\t\tExpressionObjectMethod expressionobjectmethod = new ExpressionObjectMethod();\r\n\t\t\t\t\t\texpressionobjectmethod.setDialect(dialect);\r\n\r\n\t\t\t\t\t\t// For Java bean methods, convert the suggestion to a property\r\n\t\t\t\t\t\tString methodname = method.getElementName();\r\n\t\t\t\t\t\tint propertypoint =\r\n\t\t\t\t\t\t\t\tmethodname.startsWith(\"get\") || methodname.startsWith(\"set\") ? 3 :\r\n\t\t\t\t\t\t\t\tmethodname.startsWith(\"is\") ? 2 :\r\n\t\t\t\t\t\t\t\t-1;\r\n\r\n\t\t\t\t\t\tif (propertypoint != -1 && methodname.length() > propertypoint &&\r\n\t\t\t\t\t\t\tCharacter.isUpperCase(methodname.charAt(propertypoint))) {\r\n\r\n\t\t\t\t\t\t\tStringBuilder propertyname = new StringBuilder(methodname.substring(propertypoint));\r\n\t\t\t\t\t\t\tpropertyname.insert(0, Character.toLowerCase(propertyname.charAt(0)));\r\n\t\t\t\t\t\t\tpropertyname.deleteCharAt(1);\r\n\t\t\t\t\t\t\texpressionobjectmethod.setName(expressionobject.getName() + \".\" + propertyname);\r\n\t\t\t\t\t\t\texpressionobjectmethod.setJavaBeanProperty(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\texpressionobjectmethod.setName(expressionobject.getName() + \".\" + methodname);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tgeneratedmethods.add(expressionobjectmethod);\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\tcatch (JavaModelException ex) {\r\n\t\t\tlogError(\"Unable to locate expression object reference: \" + classname, ex);\r\n\t\t}\r\n\r\n\t\treturn generatedmethods;\r\n\t}",
"static Method[] getAllDeclaredMethods(String testsClassName) {\n\n Class<?> testsClazz = getClassObject(testsClassName);\n\n //Get all methods from file\n Method[] methods = testsClazz.getDeclaredMethods();\n\n\n if (methods.length != 0) {\n return methods;\n } else {\n log.error(\"В классе {} нет ни одного метода !\", testsClazz);\n return new Method[0];\n }\n\n\n }",
"public HashSet<SootMethod> getMethodsToExplore(int invocationLevel){\n\t\tHashSet<SootMethod> methodsToExplore = new HashSet<SootMethod>();\r\n\t\t\r\n\t\tfor (SootMethod method : tadaMethods) {\r\n\t\t\tHashSet<SootMethod> invokingMethods = getMethodsInvokingAtLevel(method, invocationLevel);\r\n\t\t\tmethodsToExplore.addAll(invokingMethods);\r\n\t\t}\r\n\t\treturn methodsToExplore;\r\n\t}",
"abstract protected Set<Method> createMethods();",
"public HashMap<String, HashMap<String, Object>> getResultsForMethods() {\n return resultsForMethods;\n }",
"public java.beans.MethodDescriptor[] getMethodDescriptors() {\n\ttry {\n\t\tjava.beans.MethodDescriptor aDescriptorList[] = {\n\t\t\tclearMethodDescriptor()\n\t\t\t,main_javalangString__MethodDescriptor()\n\t\t\t,toggleVisibilityMethodDescriptor()\n\t\t};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}",
"public AuthMethod[] getAuthMethods() {\n\t\treturn authMethods.clone();\n\t}",
"@Override\r\n\tpublic String[] getMethodNames() {\n\t\treturn this.methodNames;\r\n\t\t//未实现\r\n\t}",
"@Override\r\n\tpublic List<Method> getMethods(File f) {\n\t\tEolModule module = new EolModule();\r\n\t\treturn this.getMethods(f, module);\r\n\t}",
"public Collection<Method> getRemoveMethods() {\n Set<Method> removeMethods = new HashSet<Method>();\n\n if( ejbDesc.getType().equals(EjbSessionDescriptor.TYPE) ) {\n EjbSessionDescriptor sessionDesc = (EjbSessionDescriptor) ejbDesc;\n if( sessionDesc.isStateful() && sessionDesc.hasRemoveMethods() ) {\n\n for(EjbRemovalInfo next : sessionDesc.getAllRemovalInfo()) {\n\n MethodDescriptor mDesc = next.getRemoveMethod();\n Method m = mDesc.getMethod(ejbDesc);\n if( m == null ) {\n throw new IllegalStateException(\"Can't resolve remove method \" +\n mDesc + \" For EJB \" + sessionDesc.getName());\n }\n removeMethods.add(m);\n\n }\n\n }\n }\n\n return removeMethods;\n\n }",
"public interface Methods {\n\n /**\n * List all static methods for a given content model.\n *\n * @param cmpid Pid of the content model.\n * @param asOfTime Use the methods defined at this time (unix time in ms), or null for now.\n *\n * @return List of methods defined.\n * @throws BackendInvalidCredsException If current credentials provided are invalid.\n * @throws BackendMethodFailedException If communicating with Fedora failed.\n * @throws BackendInvalidResourceException\n * If content model doesn't exist.\n */\n public List<Method> getStaticMethods(String cmpid,\n Long asOfTime)\n throws\n BackendInvalidCredsException,\n BackendMethodFailedException,\n BackendInvalidResourceException;\n\n /**\n * List all dynamic methods for a given object.\n *\n * @param objpid Pid of the object.\n * @param asOfTime Use the methods defined at this time (unix time in ms), or null for now.\n *\n * @return List of methods defined.\n * @throws BackendInvalidCredsException If current credentials provided are invalid.\n * @throws BackendMethodFailedException If communicating with Fedora failed.\n * @throws BackendInvalidResourceException\n * If object doesn't exist.\n */\n public List<Method> getDynamicMethods(String objpid,\n Long asOfTime)\n throws\n BackendInvalidCredsException,\n BackendMethodFailedException,\n BackendInvalidResourceException;\n\n /**\n * Invoke a given method with the given parameters.\n *\n * @param pid The pid of the content model or object defining the method.\n * @param methodName The name of the method.\n * @param parameters Parameters for the method, as a map from name list of values.\n * @param asOfTime Use the methods defined at this time (unix time in ms), or null for now.\n *\n * @return Result of calling method.\n * @throws BackendInvalidCredsException If current credentials provided are invalid.\n * @throws BackendMethodFailedException If communicating with Fedora failed.\n * @throws BackendInvalidResourceException\n * If object, content model or method doesn't exist.\n */\n public String invokeMethod(String pid,\n String methodName,\n Map<String, List<String>> parameters,\n Long asOfTime)\n throws\n BackendInvalidCredsException,\n BackendMethodFailedException,\n BackendInvalidResourceException;\n}",
"public Method getMethod();",
"public static Multimap<String, Method> getMethodsMultimap( Class<?> klass )\r\n {\r\n Multimap<String, Method> methods = ArrayListMultimap.create();\r\n getMethods( klass ).forEach( method -> methods.put( method.getName(), method ) );\r\n return methods;\r\n }",
"public List<R> getAll();",
"public Collection<IFunction> getAllFunctions()\r\n\t{\r\n\t\treturn expressionRegistry.getAllFunctions();\r\n\t}",
"public static Map<Method, Method> findManagedMethods(Class<?> clazz)\n {\n Map<Method, Method> result = new HashMap<>();\n\n // gather all publicly available methods\n // this returns everything, even if it's declared in a parent\n for (Method method : clazz.getMethods()) {\n // skip methods that are used internally by the vm for implementing covariance, etc\n if (method.isSynthetic() || method.isBridge()) {\n continue;\n }\n\n // look for annotations recursively in superclasses or interfaces\n Method managedMethod = findManagedMethod(clazz, method.getName(), method.getParameterTypes());\n if (managedMethod != null) {\n result.put(method, managedMethod);\n }\n }\n\n return result;\n }",
"@Override public Iterable<JflowModel.Method> getStartMethods()\n{\n Vector<JflowModel.Method> v = new Vector<JflowModel.Method>();\n\n for (JflowMethod cm : model_master.getStartMethods()) {\n ModelMethod cs = complete_calls.get(cm);\n if (cs != null) v.add(cs);\n }\n\n return v;\n}",
"public List<BrainTreePaymentInfo> getPaymentMethods()\n\t{\n\t\treturn getPaymentMethods( getSession().getSessionContext() );\n\t}",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"public List<MethodDeclaration> getMethodDeclarations() {\n return methodDeclarations;\n }",
"public static Collection<Method> findAnnotatedMethods(\n Class<?> type,\n Class<? extends Annotation> annotation\n ) {\n\n List<Method> result = new ArrayList<>();\n\n // gather all publicly available methods\n // this returns everything, even if it's declared in a parent\n for (Method method : type.getMethods()) {\n // skip methods that are used internally by the vm for implementing covariance, etc\n if (method.isSynthetic() || method.isBridge() || isStatic(method.getModifiers())) {\n continue;\n }\n\n // look for annotations recursively in super-classes or interfaces\n Method managedMethod = findAnnotatedMethod(\n type,\n annotation,\n method.getName(),\n method.getParameterTypes()\n );\n if (managedMethod != null) {\n result.add(managedMethod);\n }\n }\n\n return result;\n }",
"public List<ResourceMethod> getSubResourceMethods() {\n return subResourceMethods;\n }",
"private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols) {\n boolean includeSuper = args.length > 0 ? args[0].isTrue() : true;\n Ruby runtime = getRuntime();\n RubyArray ary = runtime.newArray();\n Set<String> seen = new HashSet<String>();\n \n populateInstanceMethodNames(seen, ary, visibility, not, useSymbols, includeSuper);\n \n return ary;\n }",
"public List<?> getAllFuncs() throws DataAccessException {\n\t\treturn (List<?>) mapper.getAllFuncs();\r\n\t}",
"@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }",
"@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}",
"public\tList<ChangedJsMethod>\tgetChangedMethods() {\n\t\t\n\t\treturn\tCollections.unmodifiableList(this.changedMethods);\n\t}",
"public List<BrainTreePaymentInfo> getPaymentMethods(final SessionContext ctx)\n\t{\n\t\tList<BrainTreePaymentInfo> coll = (List<BrainTreePaymentInfo>)getProperty( ctx, PAYMENTMETHODS);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}",
"private void readMethodsAnnotations() {\n Method[] methods = clazz.getDeclaredMethods();\n for (Method method : methods) {\n Annotation[] annotations = method.getDeclaredAnnotations();\n for (Annotation a : annotations) {\n Class<? extends Annotation> aType = a.annotationType();\n List<Entry<Annotation>> list = entries.get(aType);\n if (list == null) {\n list = new ArrayList();\n entries.put(aType, list);\n }\n list.add(new Entry<>(method, a));\n }\n }\n }",
"@Override\r\n\tpublic List<Function> getAllFunction() {\n\t\tString hql = \"from Function\";\r\n\t\treturn (List<Function>) getHibernateTemplate().find(hql);\r\n\t}",
"String getMethod();",
"String getMethod();",
"public List<CoinbasePaymentMethod> getCoinbasePaymentMethods() throws IOException {\n\n String path = \"/v2/payment-methods\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String signature = getSignature(timestamp, path);\n showCurl(apiKey, timestamp, signature, path);\n\n return coinbase.getPaymentMethods(Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp).getData();\n }",
"public Set<ObjectLabel> getGetters() {\n if (getters == null)\n return Collections.emptySet();\n if (Options.get().isDebugOrTestEnabled())\n return Collections.unmodifiableSet(getters);\n return getters;\n }",
"Method lookupMethod(Object targetObject, String methodName) {\n Method method = null;\n for (Method m : targetObject.getClass().getMethods()) {\n if (Modifier.isPublic(m.getModifiers()) && methodName.equals(m.getName())) {\n method = m;\n break;\n }\n }\n return method;\n }",
"public List<Method> getSetterMethods(String property) {\n String methodName = getSetterMethodName(property);\n List<Method> result = new ArrayList<Method>(2);\n\n for (Method method : this.type.getMethods()) {\n if (method.getName().equals(methodName) && method.getParameterTypes().length == 1) {\n result.add(method);\n }\n }\n\n return result;\n }",
"Method getMethod();",
"Method getMethod();",
"@JsonIgnore\n public java.lang.reflect.Method getMethod() {\n return this.method;\n }",
"public List<MethodCall> searchMethods( final MethodsFilter aFilter ) {\n\t\t// Get the methods\n\t\tfinal MonitoringLogService monitoringLogService = getService( MonitoringLogService.class );\n\t\tfinal List<MethodCall> methods = monitoringLogService.getMethods( );\n\n\t\t// Filter the methods\n\t\tfinal FilterService filterService = getService( FilterService.class );\n\t\treturn methods\n\t\t\t\t.parallelStream( )\n\t\t\t\t.filter( filterService.getStringPredicate( MethodCall::getHost, aFilter.getHost( ), aFilter.isUseRegExpr( ) ) )\n\t\t\t\t.filter( filterService.getStringPredicate( MethodCall::getClazz, aFilter.getClazz( ), aFilter.isUseRegExpr( ) ) )\n\t\t\t\t.filter( filterService.getStringPredicate( MethodCall::getMethod, aFilter.getMethod( ), aFilter.isUseRegExpr( ) ) )\n\t\t\t\t.filter( filterService.getStringPredicate( MethodCall::getException, aFilter.getException( ), aFilter.isUseRegExpr( ) ) )\n\t\t\t\t.filter( filterService.getLongPredicate( MethodCall::getTraceId, aFilter.getTraceId( ) ) )\n\t\t\t\t.filter( getSearchTypePredicate( aFilter.getSearchType( ) ) )\n\t\t\t\t.filter( filterService.getAfterTimePredicate( MethodCall::getTimestamp, aFilter.getLowerDate( ), aFilter.getLowerTime( ) ) )\n\t\t\t\t.filter( filterService.getBeforeTimePredicate( MethodCall::getTimestamp, aFilter.getUpperDate( ), aFilter.getUpperTime( ) ) )\n\t\t\t\t.collect( Collectors.toList( ) );\n\t}",
"public String[] getMethods(String url) throws RemoteException{\n\t\ttry{\n\t\t//reading wsdl here...\n String wsdlFile = url+\"?wsdl\";\n \n WSDLParser parser = new WSDLParser(wsdlFile);\n\t\treturn parser.getAllMethodNames();\n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(e.getMessage());\t\n\t\t}\n\n\t\treturn null;\n\t}",
"public List<WjrMethodItem> getMethodItems() {\r\n return new ArrayList<WjrMethodItem>(methodItems.values());\r\n }",
"public\tList<JsClass.Method>\tgetRemovedMethods() {\n\t\t\n\t\treturn\tCollections.unmodifiableList(this.removedMethods);\n\t}",
"public List<Method> getMethods(File f, EolModule module) {\n\t\tList<Method> methods = new ArrayList<>();\r\n\t\tEglPreprocessorModule pm = ((EglModule)module).getPreprocessorModule();\r\n\t\tfor (Operation op : pm.getDeclaredOperations()) {\r\n\t\t\t//EolType contextClass = op.getContextType(module.getContext());\r\n\t\t\tTypeExpression contextClass = op.getContextTypeExpression();\r\n\t\t\tMethod m;\r\n\t\t\tif (contextClass!=null)\r\n\t\t\t\tm = new Method(contextClass.getName(), op.getName(), f);\r\n\t\t\telse\r\n\t\t\t\tm = new Method(null, op.getName(), f);\r\n\t\t\tmethods.add(m);\r\n\t\t}\r\n\t\treturn methods;\r\n\t}",
"private Set<ExecutableElement> getHookMethodsFromInterfaces() {\n return component\n .getInterfaces()\n .stream()\n .map(DeclaredType.class::cast)\n .map(DeclaredType::asElement)\n .map(TypeElement.class::cast)\n .flatMap(typeElement -> ElementFilter\n .methodsIn(typeElement.getEnclosedElements())\n .stream())\n .filter(method -> hasAnnotation(method, HookMethod.class))\n .peek(this::validateHookMethod)\n .collect(Collectors.toSet());\n }"
] | [
"0.7688446",
"0.7688446",
"0.76703143",
"0.71745855",
"0.7102441",
"0.7047016",
"0.6985924",
"0.69647115",
"0.6918402",
"0.68201387",
"0.6790439",
"0.67822677",
"0.67683846",
"0.6762602",
"0.67329305",
"0.66250765",
"0.66191995",
"0.6604834",
"0.65675884",
"0.65251935",
"0.6403623",
"0.6345541",
"0.6304765",
"0.6287609",
"0.62600744",
"0.6256365",
"0.6243141",
"0.6183205",
"0.6179582",
"0.6139383",
"0.6080349",
"0.60616016",
"0.60180646",
"0.60145247",
"0.5955342",
"0.5873897",
"0.58583194",
"0.5854032",
"0.5801529",
"0.5798861",
"0.5797423",
"0.57773244",
"0.5777224",
"0.57640344",
"0.5763779",
"0.5743639",
"0.57384336",
"0.57354736",
"0.5729238",
"0.5688107",
"0.5678577",
"0.56521726",
"0.5650174",
"0.5635944",
"0.56235737",
"0.5623204",
"0.56103796",
"0.56033456",
"0.5586059",
"0.558102",
"0.5580068",
"0.55658144",
"0.55643773",
"0.55291206",
"0.552393",
"0.5522911",
"0.551863",
"0.5511882",
"0.5481088",
"0.54718155",
"0.54718155",
"0.54718155",
"0.54718155",
"0.54718155",
"0.54549885",
"0.54448956",
"0.5437653",
"0.54331326",
"0.5431696",
"0.5409079",
"0.5389888",
"0.53813285",
"0.53736144",
"0.5371343",
"0.53605354",
"0.5348512",
"0.5348512",
"0.5346621",
"0.5331527",
"0.5329481",
"0.5322866",
"0.5298861",
"0.5298861",
"0.5297061",
"0.52966493",
"0.52964616",
"0.52942824",
"0.5288727",
"0.5279405",
"0.52757275"
] | 0.7741194 | 0 |
Method can be used to read a locally stored raw resource file | protected String readFile(int resourceFile) {
Context context = getContext();
if (context != null) {
try {
InputStream is = context.getResources().openRawResource(resourceFile);
return Okio.buffer(Okio.source(is)).readString(Charset.defaultCharset());
} catch (IOException e) {
Log.e(TAG, "Failed to read config", e);
}
}
return "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String readRawTextFile(int resId) {\r\n InputStream inputStream = main.getResources().openRawResource(resId);\r\n try {\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\r\n StringBuilder sb = new StringBuilder();\r\n String line;\r\n while ((line = reader.readLine()) != null) {\r\n sb.append(line).append(\"\\n\");\r\n }\r\n reader.close();\r\n return sb.toString();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }",
"private String readResource(String name) throws IOException {\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n try (InputStream in = cl.getResourceAsStream(name)) {\n return new String(EncodingUtils.readAll(in), StandardCharsets.US_ASCII);\n }\n }",
"public static String getFileFromRaw(Context context, int resId) {\n if (context == null) {\n return null;\n }\n\n StringBuilder s = new StringBuilder();\n try {\n InputStreamReader in = new InputStreamReader(context.getResources().openRawResource(resId));\n BufferedReader br = new BufferedReader(in);\n String line;\n while ((line = br.readLine()) != null) {\n s.append(line);\n }\n return s.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"static String readResource(String name) throws IOException {\n InputStream is = Server.class.getResourceAsStream(name);\n String value = new Scanner(is).useDelimiter(\"\\\\A\").next();\n is.close();\n return value;\n }",
"private static String p_readFromResource(String path) {\n StringBuffer content = new StringBuffer();\n\n InputStream istream = NamedTemplate.class.getResourceAsStream(path);\n\n if (istream != null) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(istream));\n\n try {\n String line = reader.readLine();\n while (line != null) {\n content.append(line).append(\"\\n\");\n\n line = reader.readLine();\n }\n } catch (IOException e) {\n logger.error(\"NamedTemplate: unable to read template from \" + path, e);\n }\n } else {\n return null;\n }\n\n return content.toString();\n }",
"static byte[] readResource(String name) throws IOException {\n byte[] buf = new byte[1024];\n\n InputStream in = Main.class.getResourceAsStream(name);\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n int n;\n while ((n = in.read(buf)) > 0) {\n bout.write(buf, 0, n);\n }\n try { in.close(); } catch (Exception ignored) { } \n\n return bout.toByteArray();\n }",
"public Resource load(IFile f);",
"public static String readSourceFile(String rs) throws Exception {\n Class<TestHelper> testHelperClass = TestHelper.class;\n ClassLoader classLoader = testHelperClass.getClassLoader();\n URI uri = classLoader.getResource(rs).toURI();\n byte[] bytes = Files.readAllBytes(Paths.get(uri));\n return new String(bytes, \"UTF-8\");\n }",
"public Resource load(String filename) throws MalformedURLException;",
"public byte[] readRawFile(int fileID)throws Exception{\n\t\tResources rs = context.getResources();\r\n\t\tInputStream inputStream = rs.openRawResource(fileID);\r\n\t\tByteArrayOutputStream mArrayOutputStream = new ByteArrayOutputStream();\r\n\t\tbyte [] b = new byte[1024];\r\n\t\tint length =0;\r\n\t\twhile((length=inputStream.read(b, 0, b.length))!=-1){\r\n\t\t\tmArrayOutputStream.write(b, 0, length);\r\n\t\t}\r\n\t\tif(inputStream!=null){\r\n\t\t\tinputStream.close();\r\n\t\t}\r\n\t\treturn mArrayOutputStream.toByteArray();\r\n\t}",
"public static String getRawResource(Context context, int resource) {\n String res = null;\n InputStream is = context.getResources().openRawResource(resource);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n byte[] b = new byte[1];\n try {\n while (is.read(b) != -1) {\n baos.write(b);\n }\n ;\n res = baos.toString();\n is.close();\n baos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return res;\n }",
"Resource getResource();",
"public abstract ResourceInputStream getResource(String resName, HttpServletRequest request);",
"public Resource loadFileAsResource(String fileName) {\n try {\n Path filePath = this.fileStorageLocation.resolve(fileName).normalize();\n Resource resource = new UrlResource(filePath.toUri());\n if(resource.exists()) {\n return resource;\n } else {\n throw new HubFileNotFoundException(\"File not found \" + fileName);\n }\n } catch (MalformedURLException ex) {\n throw new HubFileNotFoundException(\"File not found \" + fileName, ex);\n }\n }",
"String getResource();",
"public String loadJSONFile(int resourceIdentifier) {\n if (resourceIdentifier != 0) {\n InputStream input = getResources().openRawResource(resourceIdentifier);\n java.util.Scanner s = new java.util.Scanner(input).useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : null;\n } else {\n return null;\n }\n }",
"@Override\n public BufferedReader requestContentTxtFile(Context context) throws IOException{\n InputStream ins = context.getResources().openRawResource(R.raw.timferris);\n BufferedReader reader = new BufferedReader(new InputStreamReader(ins));\n Log.d(\"teste leitura\", \"Model return after reading has been reached\");\n\n return reader;\n }",
"public static String readResource(String fileOrResourceName) {\n\t\ttry (InputStream stream = getStream(fileOrResourceName)) {\n\t\t\tif (stream != null) {\n\t\t\t\treturn readerToText(new InputStreamReader(stream, AppConventions.CHAR_ENCODING));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Exception while reading resource {} using. Error: {}\", fileOrResourceName,\n\t\t\t\t\te.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public InputStream findResource(String filename)\n {\n InputStream resource = null;\n try\n {\n Path scriptRootPath = Files.createDirectories(getScriptRootPath(side));\n Path scriptPath = scriptRootPath.resolve(filename).toAbsolutePath();\n resource = Files.newInputStream(scriptPath, StandardOpenOption.READ);\n } catch (IOException e)\n {\n resource = super.findResource(filename);\n }\n return resource;\n }",
"@Override\n public String getContent() throws FileNotFound, CannotReadFile\n {\n Reader input = null;\n try\n {\n input = new InputStreamReader(resource.openStream());\n String content = IOUtils.toString(input).replace(\"\\r\\n\", \"\\n\");\n\n return content;\n } catch (FileNotFoundException ex)\n {\n throw new FileNotFound();\n } catch (IOException ex)\n {\n throw new CannotReadFile();\n } finally\n {\n InternalUtils.close(input);\n }\n }",
"private String getStringFromFile() throws FileNotFoundException {\n String contents;\n FileInputStream fis = new FileInputStream(f);\n StringBuilder stringBuilder = new StringBuilder();\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(fis, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n // Error occurred when opening raw file for reading.\n } finally {\n contents = stringBuilder.toString();\n }\n return contents;\n }",
"private static InputStream readFile(String path)\n\t{\n\t\tInputStream input = NativeLibraryLoader.class.getResourceAsStream(\"/\" + path);\n\t\tif (input == null)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Unable to find file: \" + path);\n\t\t}\n\t\treturn input;\n\t}",
"@Nullable\n public String readFile(String fileName) throws IOException {\n ObjectId objectId = findFile(fileName);\n if (objectId == null) {\n return null;\n }\n\n ObjectLoader obj = reader.open(objectId, Constants.OBJ_BLOB);\n byte[] raw = obj.getCachedBytes(Integer.MAX_VALUE);\n\n if (raw.length == 0) {\n return null;\n }\n return RawParseUtils.decode(raw);\n }",
"public static String getResource(String inResName) {\n\n return stringFromInputStream(getStream(inResName));\n\n }",
"public static String getRawText(Context context, int rawResId) {\n try {\n InputStream is = context.getResources().openRawResource(rawResId);\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line;\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n\n is.close();\n return sb.toString();\n } catch (Exception e) {\n return null;\n }\n }",
"private String getDataFromClassResourceFile(String file) {\n\n StringBuffer sb = new StringBuffer();\n String str = \"\";\n\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(file);\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n if (is != null) {\n while ((str = reader.readLine()) != null) {\n sb.append(str + \"\\n\");\n }\n }\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (Throwable ignore) {\n }\n }\n return sb.toString();\n\n }",
"public String loadFromFile() {\n StringBuilder sb = new StringBuilder();\n try {\n Log.d(\"DEBUG\", this.context.getPackageName());\n Log.d(\"DEBUG\", this.file);\n FileInputStream fis = context.openFileInput(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, this.encoding));\n String line;\n while(( line = br.readLine()) != null ) {\n sb.append( line );\n sb.append( '\\n' );\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n return sb.toString();\n }",
"private InputStream getFileFromResourceAsStream(String fileName) {\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n }",
"private void read() {\n\n\t\t\t\tString road=getActivity().getFilesDir().getAbsolutePath()+\"product\"+\".txt\";\n\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(road); \n\t\t\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\t\t\tint length = fis.available(); \n\t\t\t\t\tbyte [] buffer = new byte[length]; \n\t\t\t\t\tfis.read(buffer); \n\t\t\t\t\tString res1 = EncodingUtils.getString(buffer, \"UTF-8\"); \n\t\t\t\t\tfis.close(); \n\t\t\t\t\tjson(res1.toString());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t}",
"@Override\n\tpublic InputStream getResource(ResourcePackType p_195761_1_, ResourceLocation p_195761_2_) throws IOException {\n\t\treturn null;\n\t}",
"public static String readFromFile(String filename) {\n InputStream is = ResourceUtils.class.getClassLoader().getResourceAsStream(filename);\n return convertStreamToString(is);\n\n }",
"public void readFromFile() {\n\n\t}",
"protected abstract InputStream getStream(String resource);",
"private InputStream getFileFromResourceAsStream(String fileName) {\n\n // The class loader that loaded the class\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n\n }",
"public InputStream getInputStream() throws IOException {\n/* 521 */ return Minecraft.getMinecraft().getResourceManager().getResource(p_148612_0_).getInputStream();\n/* */ }",
"public FilesInputStreamLoad readFile() throws ArcException {\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\tFile toRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\tFilesInputStreamLoad filesInputStreamLoadReturned = null;\r\n\ttry {\r\n\t\tfilesInputStreamLoadReturned = new FilesInputStreamLoad (toRead);\r\n\t} catch (IOException ioReadException) {\r\n\t\tthrow new ArcException(ioReadException, ArcExceptionMessage.FILE_READ_FAILED, toRead);\r\n\t}\r\n\treturn filesInputStreamLoadReturned;\r\n }",
"private String readLicenseFromRawResource(int resourceid) {\n String license = \"\";\n BufferedReader in = new BufferedReader(new InputStreamReader(getResources().openRawResource(resourceid)));\n StringBuilder sb = new StringBuilder();\n try {\n while (true) {\n String line = in.readLine();\n if (line == null) {\n return sb.toString();\n }\n if (TextUtils.isEmpty(line)) {\n sb.append(\"\\n\\n\");\n } else {\n sb.append(line);\n sb.append(\" \");\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n return license;\n }\n }",
"public File getRessourceFile() {\r\n\t\treturn local;\r\n\t}",
"public static String readTemplate(Class c, String resourceName)\n {\n InputStream stream = c.getResourceAsStream(resourceName);\n Scanner sc = new Scanner(stream);\n String text = sc.useDelimiter(\"\\\\A\").next();\n sc.close();\n try {\n stream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return text;\n }",
"public static Resource getUserFileResource() throws IOException {\n Path tempFile = Files.createTempFile(\"upload-test-file\", \".jpg\");\n Files.write(tempFile,FileUtils.readFileToByteArray(new File(\"d:/file_test.jpg\"))); \n // \"some test content...\\nline1\\nline2\".getBytes());\n System.out.println(\"uploading: \" + tempFile);\n File file = tempFile.toFile();\n //to upload in-memory bytes use ByteArrayResource instead\n return new FileSystemResource(file);\n }",
"@Override\n public Resource load(String filename, String path) {\n S3Object s3_file = this.s3client.getObject(\n this.s3_storage_properties.getBucketName(), path + \"/\" + filename\n );\n S3ObjectInputStream file_stream = s3_file.getObjectContent();\n\n Resource resource = new InputStreamResource(file_stream);\n if (resource.exists() || resource.isReadable()) {\n Application.logger.info(\"Loaded \"+path + \"/\" + filename+\" into S3\");\n return resource;\n }\n else {\n throw new StorageFileNotFoundException(\n \"Could not read file: \" + filename);\n }\n }",
"private static String getResourcePath(String resPath) {\n URL resource = XmlReaderUtils.class.getClassLoader().getResource(resPath);\n Assert.assertNotNull(\"Could not open the resource \" + resPath, resource);\n return resource.getFile();\n }",
"@Override\n public InputStream read()\n throws EFapsException\n {\n StoreResourceInputStream in = null;\n try {\n final FileObject file = this.manager.resolveFile(this.storeFileName + VFSStoreResource.EXTENSION_NORMAL);\n if (!file.isReadable()) {\n VFSStoreResource.LOG.error(\"file for \" + this.storeFileName + \" not readable\");\n throw new EFapsException(VFSStoreResource.class, \"#####file not readable\");\n }\n in = new VFSStoreResourceInputStream(this, file);\n } catch (final FileSystemException e) {\n VFSStoreResource.LOG.error(\"read of \" + this.storeFileName + \" failed\", e);\n throw new EFapsException(VFSStoreResource.class, \"read.Throwable\", e);\n } catch (final IOException e) {\n VFSStoreResource.LOG.error(\"read of \" + this.storeFileName + \" failed\", e);\n throw new EFapsException(VFSStoreResource.class, \"read.Throwable\", e);\n }\n return in;\n }",
"public String readResource(String resourcePath) throws IOException {\n InputStream resourceStream = this.getClass().getResourceAsStream(resourcePath);\n StringBuilder builder = new StringBuilder();\n int ch;\n while ((ch = resourceStream.read()) != -1) {\n builder.append((char) ch);\n }\n return builder.toString();\n }",
"private String readDeserialize(String fileName, AssetManager assetManager) {\n StringBuffer sb = new StringBuffer();\n try {\n InputStream is = assetManager.open(fileName);\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader br = new BufferedReader(isr);\n\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n line = br.readLine();\n }\n br.close();\n isr.close();\n is.close();\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", String.format(\"File not found: %s\", e.toString()));\n } catch (IOException e) {\n Log.e(\"login activity\", String.format(\"Can not read file: %s\", e.toString()));\n }\n return sb.toString();\n }",
"public String readFromFile() throws IOException {\n return br.readLine();\n }",
"@Override\n\tpublic String readBlob() throws PersistBlobException {\n\t\tlog.debug(\"readString: \");\n\t\ttry {\n\t\t\tString contents = FileUtils.readFileToString(new File(full_file_name), \"UTF-8\");\n\t\t\tlog.debug(\"returned string: \"+contents);\n\t\t\treturn contents;\n\t\t} catch (IOException e) {\n\t\t\tthrow new PersistBlobException(\"can not read string\",e);\n\t\t}\n\n\t}",
"public Blob getResource(String relativePath) throws DocumentNotFoundException;",
"@Override\n public InputStream getInputStream(String templateName) throws IOException {\n if (templateName.contains(\"..\")) {\n throw new RuntimeException(\"templateName must not contain '..' characters\");\n }\n String templateFile = WELL_KNOWN_CONTAINER + \"/\" + templateName.replaceAll(\"^/+\", \"\"); // remove heading separator\n log.trace(\"locating template file: \" + templateFile + \"; requested template name: \" + templateName);\n try {\n Resource res = StaticResourceServlet.StaticResourceProvider.getInstance().getResource(getServletContext(), templateFile);\n if (res.notFound()) {\n throw new IOException(\"Template file not found: \" + templateName);\n }\n return new ByteArrayInputStream(res.getData());\n } catch (Exception e) {\n throw new IOException(\"Failed open template: \" + templateName, e);\n }\n }",
"private static InputStream getStream(String inResName) {\n\n ClassLoader loader = Thread.currentThread().getContextClassLoader();\n InputStream is = loader.getResourceAsStream(inResName);\n if (is == null) {\n log.error(\"Resource '\" + inResName + \"' not found in classpath\");\n }\n return is;\n\n }",
"@Override\n public InputStream readFileInternal(String _fileName) throws IOException\n { // Reads a file from the devices internal storage. Takes a filename as a parameter and throws an IOException if failed.\n return context.openFileInput(_fileName);\n }",
"public String loadJSONFromAsset() {\n String json;\n String file = \"assets/words.json\";\n\n try {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(file);\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n json = new String(buffer, \"UTF-8\");\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return json;\n }",
"abstract public InputStream retrieveContent( String path )\r\n throws Exception;",
"public static String readTextStream(String filename) throws IOException {\n StringBuffer sb = new StringBuffer();\n BufferedReader fileReader = new BufferedReader(new InputStreamReader(FileHelper.class.getClassLoader().getResourceAsStream(filename)));\n FileHelper.read(sb, fileReader);\n return sb.toString();\n }",
"java.lang.String getResourceUri();",
"private String loadTemplate(String fileName)\n throws IOException, URISyntaxException\n {\n File file = new File(resolveResourcePath(this.TEMPLATE_PATH + fileName));\n BufferedReader reader = new BufferedReader(new FileReader(file));\n \n StringBuilder builder = new StringBuilder();\n String str = reader.readLine();\n while (str != null)\n {\n builder.append(str);\n str = reader.readLine();\n }\n return builder.toString();\n }",
"private static InputStream getResourceAsStream(final String filename) throws IOException {\n\t\t// Try to load resource from jar\n\t\tInputStream stream = TextureLoader.class.getResourceAsStream(filename);\n\t\t// If not found in jar, then load from disk\n\t\tif (stream == null) {\n\t\t\treturn new BufferedInputStream( new FileInputStream(filename) );\n\t\t} else {\n\t\t\treturn stream;\n\t\t}\n\t}",
"public static String getFileInput( String resource ){\t\n\t\tString input = new String();\n\t\t\n\t\ttry { // try to catch all errors\n\t\t\t// get file path to resource\n\t\t\tString resourcePath = getResourcePath( resource );\n\t\t\t\n\t\t\t// create path object to file\n\t\t\tPath path = FileSystems.getDefault().getPath( resourcePath );\n\t\t\t\n\t\t\t// read all lines use java-7-Files to read in an efficient way\n\t\t\tList<String> inputLines = Files.readAllLines( path, Charsets.UTF_8 );\n\t\t\t\n\t\t\t// organize lines into string\n\t\t\tfor ( String line : inputLines ) {\n\t\t\t\tinput += line + \"\\n\";\n\t\t\t}\n\t\t} catch ( IllegalArgumentException iae ) { // cannot found file\n\t\t\tSystem.err.println( \"No resources found at: \" + resource );\n\t\t\tiae.printStackTrace();\n\t\t} catch ( IllegalStateException ise ) { // cannot walk through directory tree\n\t\t\tSystem.err.println( \"Cannot get resources from: \" + resource );\n\t\t\tSystem.err.println();\n\t\t\tise.printStackTrace();\n\t\t} catch ( SecurityException se ) { // absence of rights to read from file\n\t\t\tSystem.err.println( \"You need the rights to read from file: \" + resource );\n\t\t\tSystem.err.println();\n\t\t\tse.printStackTrace();\n\t\t} catch ( IOException ioe ) { // cannot read from file\n\t\t\tSystem.err.println( \"An error has occurred. Cannot read from file: \" + resource );\n\t\t\tSystem.err.println();\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\t\n\t\t// return input\n\t\treturn input;\n\t}",
"public String readFileContents(String filename) {\n return null;\n\n }",
"public String ReadFile() throws IOException {\n File file = context.getFilesDir();\n File textfile = new File(file + \"/\" + this.fileName);\n\n FileInputStream input = context.openFileInput(this.fileName);\n byte[] buffer = new byte[(int)textfile.length()];\n\n input.read(buffer);\n\n return new String(buffer);\n }",
"com.google.protobuf.ByteString\n getResourceUriBytes();",
"String getCharacterVDBResource(String resourcePath) throws Exception;",
"public static byte[] readResourceFile(String path) throws IOException {\n if (path == null) {\n throw new NullPointerException(\"argument 'path' cannot be null\");\n }\n\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n InputStream in = null;\n try {\n in = Example.class.getResourceAsStream(path);\n if (in == null) {\n throw new IOException(\"Resources not found: \" + path);\n }\n\n int byteRead = 0;\n byte[] b = new byte[8096];\n\n while ((byteRead = in.read(b)) != -1) {\n bout.write(b, 0, byteRead);\n }\n } finally {\n if (in != null) {\n try {\n in.close();\n } catch (IOException ex) {\n }\n }\n }\n\n return bout.toByteArray();\n }",
"public InputStream getInputStream()\n/* */ {\n/* 105 */ InputStream in = ResourceUtils.getResourceAsStream(this, this);\n/* */ \n/* 107 */ return in;\n/* */ }",
"public InputStream getFileFromResourceAsStream(String fileName) {\n var classLoader = getClass().getClassLoader();\n var inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n }",
"public IResource getResource();",
"public static String readString(String resource) {\n byte[]\tbytes;\n\n bytes = readBytes(resource);\n if (bytes == null)\n return null;\n\n try {\n return new String(bytes);\n }\n catch (Exception e) {\n LOGGER.log(Level.SEVERE, \"Failed to read string from resource file: \" + resource, e);\n return null;\n }\n }",
"public static String getFileContentsAsString(String filename) {\n\n // Java uses Paths as an operating system-independent specification of the location of files.\n // In this case, we're looking for files that are in a directory called 'data' located in the\n // root directory of the project, which is the 'current working directory'.\n final Path path = FileSystems.getDefault().getPath(\"Resources\", filename);\n\n try {\n // Read all of the bytes out of the file specified by 'path' and then convert those bytes\n // into a Java String. Because this operation can fail if the file doesn't exist, we\n // include this in a try/catch block\n return new String(Files.readAllBytes(path));\n } catch (IOException e) {\n // Since we couldn't find the file, there is no point in trying to continue. Let the\n // user know what happened and exit the run of the program. Note: we're only exiting\n // in this way because we haven't talked about exceptions and throwing them in CS 126 yet.\n System.out.println(\"Couldn't find file: \" + filename);\n System.exit(-1);\n return null; // note that this return will never execute, but Java wants it there.\n }\n }",
"protected abstract String getResourcePath();",
"@Override\n public InputStream open() throws IOException {\n return getClass().getClassLoader().getResourceAsStream(name);\n }",
"@Override\n public InputStream readFileExternal(String _fileName) throws IOException \n { // Reads a file saved to external storage. Takes the filename as a parameter and throws an IOException if failed.\n return new FileInputStream(externalStoragePath + _fileName);\n }",
"public static String readCachedFile(Context ctx, String filename){\n \t\treturn readCachedFile(ctx, filename, true);\n \t}",
"protected abstract InputStream getFile(final String path);",
"InputStream getAsset(String asset) throws IOException;",
"public static List<DataItem> importFromResource(Context context){\n InputStreamReader reader = null;\n InputStream inputStream = null;\n\n try {\n //Instantiate InputStream with static raw file the assign it to InputStreamReader\n inputStream = context.getResources().openRawResource(R.raw.menuitems);\n reader = new InputStreamReader(inputStream);\n //Populate DataItems class and return result\n Gson gson = new Gson();\n DataItems dataItems = gson.fromJson(reader, DataItems.class);\n return dataItems.getDataItems();\n }finally {\n //close both classes\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }\n }",
"public byte[] read(String fileReference) {\r\n log.fine(\"Starting to get File from DataRegistry...\");\r\n\r\n URI fileURI = null;\r\n try {\r\n fileURI = new URI(fileReference);\r\n } catch (URISyntaxException e1) {\r\n log.warning(\"Exception: \" + e1.getLocalizedMessage());\r\n e1.printStackTrace();\r\n }\r\n\r\n DataManagerLocal dataRegistry = null;\r\n\r\n // Binding the DataManagerLocal-Interface to the local\r\n // DataManager-Instance via JNDI.\r\n log.fine(\"Trying to get InitialContext for JNDI-Lookup...\");\r\n dataRegistry = createDataRegistry();\r\n\r\n byte[] srcFileArray = null;\r\n if (fileURI != null) {\r\n try {\r\n log.fine(\"Retrieving file from DataRegistry: \"\r\n + fileURI.toASCIIString());\r\n srcFileArray = dataRegistry.retrieveBinary(fileURI);\r\n log.fine(\"Successfully retrieved file!\");\r\n } catch (SOAPException e) {\r\n log.severe(\"Exception: \" + e.getLocalizedMessage());\r\n e.printStackTrace();\r\n }\r\n }\r\n return srcFileArray;\r\n }",
"private static InputStream get_resource_as_stream(String path, String res_name)\r\n throws InternalException {\n ClassLoader cl = IdeaHelpers.class.getClassLoader();\r\n InputStream is;\r\n if (path == null || path.trim().length() == 0) {\r\n // to avoid Warning\r\n // Do not request resource from classloader using path with leading slash\r\n is = cl.getResourceAsStream(res_name);\r\n } else {\r\n is = cl.getResourceAsStream(path + \"/\" + res_name);\r\n }\r\n if (is == null) {\r\n is = cl.getResourceAsStream(\"/\" + path + \"/\" + res_name);\r\n }\r\n if (is == null) {\r\n throw new InternalException(\"Resource not found: \" + res_name);\r\n }\r\n return is;\r\n }",
"private StringBuffer readFromFile(String src) {\n \t\tif (src == null)\n \t\t\treturn null;\n \t\tInputStream stream = null;\n \t\tStringBuffer content = new StringBuffer();\n \t\tBufferedReader reader = null;\n \t\ttry {\n \t\t\tURL url = new URL(src);\n \t\t\tstream = url.openStream();\n \t\t\t//TODO: Do we need to worry about the encoding here? e.g.:\n \t\t\t//reader = new BufferedReader(new InputStreamReader(stream,\n \t\t\t// ResourcesPlugin.getEncoding()));\n \t\t\treader = new BufferedReader(new InputStreamReader(stream));\n \t\t\twhile (true) {\n \t\t\t\tString line = reader.readLine();\n \t\t\t\tif (line == null) // EOF\n \t\t\t\t\tbreak; // done reading file\n \t\t\t\tcontent.append(line);\n \t\t\t\tcontent.append(IIntroHTMLConstants.NEW_LINE);\n \t\t\t}\n \t\t} catch (Exception exception) {\n \t\t\tLogger.logError(\"Error reading from file\", exception); //$NON-NLS-1$\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (reader != null)\n \t\t\t\t\treader.close();\n \t\t\t\tif (stream != null)\n \t\t\t\t\tstream.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tLogger.logError(\"Error closing input stream\", e); //$NON-NLS-1$\n \t\t\t\treturn null;\n \t\t\t}\n \t\t}\n \t\treturn content;\n \t}",
"public String getResourcePath();",
"private FileInputStream loadFile(String file)\n\t{\n\t\tlogger.info(\"Fetching File : \"+System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file);\n\t\ttry \n\t\t{\n\t\t\treturn(new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file));\n\t\t} catch (FileNotFoundException e) {\t\t\t\t\n\t\t\tAssert.assertTrue(file+\" file is missing\", false);\n\t\t\treturn null;\n\t\t}\n\t}",
"private List<String> readSrc(){\n //daclarations\n InputStream stream;\n List<String> lines;\n String input;\n BufferedReader reader;\n StringBuilder buf;\n\n //Inlezen van bestand\n stream = this.getClass().getResourceAsStream(RESOURCE);\n lines = new LinkedList<>();\n\n // laad de tekst in \n reader = new BufferedReader(new InputStreamReader(stream));\n buf = new StringBuilder();\n\n if(stream != null){\n try{\n while((input = reader.readLine()) != null){\n buf.append(input);\n System.out.println(input);\n lines.add(input);\n }\n } catch(IOException ex){\n System.out.println(ex);// anders schreeuwt hij in mijn gezicht:\n }\n }\n return lines;\n }",
"public static String getReleaseNotes() {\n\n try {\n //Open file\n ClassLoader classLoader = new ResourceLoader().getClass().getClassLoader();\n File file = new File(classLoader.getResource(RELEASE_NOTES).getFile());\n //Read File Content\n String content = new String(Files.readAllBytes(file.toPath()));\n return content;\n } catch (IOException ex) {\n Logger.getLogger(ResourceLoader.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n\n }",
"private static String loadFile(String path){\n try {\n\n BufferedReader reader = new BufferedReader(new FileReader(path));\n StringBuilder sb = new StringBuilder();\n\n String line;\n while((line = reader.readLine()) != null){\n sb.append(line);\n sb.append('\\n');\n }\n\n reader.close();\n return sb.toString();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"private static String readJsonFile (String fileName) {\n if (!fileName.endsWith(\".json\")){\n throw new IllegalArgumentException(\"Invalid file name\");\n }\n String jsonStr = \"\";\n try{\n isFileExistOrCreatIt(fileName);\n File jsonFile = new File(\"src//main//resources\"+\"//\"+fileName);\n Reader reader = new InputStreamReader(new FileInputStream(jsonFile),\"utf-8\");\n int ch = 0;\n StringBuffer sb = new StringBuffer();\n while((ch = reader.read())!=-1){\n sb.append((char) ch);\n }\n reader.close();\n jsonStr = sb.toString();\n return jsonStr;\n\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"String readText(FsPath path);",
"public static String load(Context context, String filename) {\n File file = new File(context.getCacheDir(), filename);\n\n // If file doesn't exist - return null\n if (!file.exists())\n return null;\n\n FileInputStream fileInputStream = null;\n DataInputStream dataInputStream = null;\n String fromFile = null;\n\n try {\n fileInputStream = new FileInputStream(file);\n dataInputStream = new DataInputStream(fileInputStream);\n\n fromFile = dataInputStream.readLine();\n } catch (Exception e) {\n } finally {\n try {\n if (dataInputStream != null)\n dataInputStream.close();\n if (fileInputStream != null)\n fileInputStream.close();\n } catch (Exception e) {\n }\n }\n return fromFile;\n }",
"private String readESMFile(String esmFile) {\n int id = plugin.getResources().getIdentifier(esmFile, \"raw\", plugin.getPackageName());\n InputStream inputStream = plugin.getResources().openRawResource(id);\n String esms = \"\";\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n try {\n String line;\n while ((line = reader.readLine()) != null) {\n esms += line + \"\\n\";\n }\n } catch (IOException ex) {\n throw new RuntimeException(\"Error in reading JSON file: \" + ex);\n } finally {\n try {\n inputStream.close();\n } catch (IOException e) {\n throw new RuntimeException(\"Error while closing input stream: \" + e);\n }\n }\n return esms;\n }",
"private String loadIptables() throws IOException {\r\n File tmpFolder = ctx.getDir(\"tmp\", Context.MODE_PRIVATE);\r\n\r\n File f = new File(tmpFolder, IPTABLES);\r\n f.setExecutable(true);\r\n f.deleteOnExit();\r\n\r\n InputStream is = ctx.getResources().openRawResource(R.raw.iptables);\r\n byte[] buff = new byte[is.available()];\r\n is.read(buff);\r\n is.close();\r\n\r\n FileOutputStream out = new FileOutputStream(f);\r\n out.write(buff);\r\n out.close();\r\n return f.getAbsolutePath();\r\n }",
"@Test\n public void in() throws IOException {\n InputStream in = getResourceAstream(\"peizhi.xml\");\n\n //InputStream in = new FileInputStream(\"G:\\\\IDEA\\\\Java_test\\\\src\\\\main\\\\resources\\\\peizhi.xml\");\n //定义一个数组相当于缓存\n byte by[]=new byte[1024];\n int n=0;\n while((n=in.read(by))!=-1)\n {\n String s=new String(by,0,n);\n System.out.println(s);\n }\n }",
"public static void reading(String fileName)\n {\n\n }",
"private String getStringFromResource(String resourcePath) {\n String str = \"\";\n ClassLoader classloader = getClass().getClassLoader();\n if (classloader == null) {\n return str;\n }\n if (logger.isTraceEnabled()) {\n URL resourceurl = classloader.getResource(resourcePath);\n logger.trace(\"URL=\" + resourceurl.toString());\n }\n InputStream instream = classloader.getResourceAsStream(resourcePath);\n if (instream == null) {\n logger.warn(\"Could not read resource from path \" + resourcePath);\n return null;\n }\n try {\n str = stringFromInputStream(instream);\n } catch (IOException ioe) {\n logger.warn(\"Could not create string from stream: \", ioe);\n return null;\n }\n return str;\n }",
"public static @CheckForNull\n StringBuffer readResource(IFile resource) {\n\ttry {\n\t String stringFromReader = IOUtils.toString(resource.getContents(), resource.getCharset());\n\t return new StringBuffer(stringFromReader);\n\t} catch (IOException e) {\n\t logger.error(\"Failed to read resource.\", e);\n\t} catch (CoreException e) {\n\t logger.error(\"Failed to obtain content of specified resource.\", e);\n\t}\n\treturn null;\n }",
"public byte[] read(String pResourceName) {\n\t\treturn null;\n\t}",
"public URL getResourceFile(String path){\n\n ClassLoader classLoader = getClass().getClassLoader();\n return classLoader.getResource(path);\n }",
"FormattedSmartPlaylist readFromFile(File file) throws JAXBException, FileNotFoundException;",
"private PcePath getPcePath(String resourceName) throws IOException {\n InputStream jsonStream = PcePathCodecTest.class\n .getResourceAsStream(resourceName);\n ObjectMapper mapper = new ObjectMapper();\n JsonNode json = mapper.readTree(jsonStream);\n assertThat(json, notNullValue());\n PcePath pcePath = pcePathCodec.decode((ObjectNode) json, context);\n assertThat(pcePath, notNullValue());\n return pcePath;\n }",
"String getFile();",
"String getFile();",
"String getFile();",
"public ResourceContent getContent() throws IOException;"
] | [
"0.7133348",
"0.6904487",
"0.686349",
"0.6814568",
"0.6736783",
"0.6517561",
"0.64734393",
"0.6462155",
"0.64418083",
"0.6438592",
"0.6433333",
"0.6402235",
"0.63634574",
"0.6358789",
"0.6337002",
"0.6333871",
"0.6305953",
"0.62435216",
"0.62194854",
"0.6187582",
"0.6161879",
"0.6155082",
"0.61489004",
"0.6146184",
"0.6145977",
"0.6139811",
"0.61175483",
"0.61162394",
"0.6110441",
"0.6092873",
"0.6085271",
"0.6084843",
"0.60828686",
"0.60686356",
"0.60580313",
"0.60194546",
"0.6016294",
"0.6011146",
"0.5975447",
"0.59552604",
"0.5952368",
"0.5942489",
"0.592785",
"0.5883282",
"0.5859866",
"0.5850209",
"0.5850054",
"0.5844045",
"0.5826402",
"0.5824784",
"0.58232427",
"0.5814127",
"0.5799529",
"0.57954395",
"0.57923126",
"0.5779312",
"0.5766967",
"0.57628506",
"0.57481414",
"0.57477915",
"0.5740118",
"0.57172203",
"0.57142633",
"0.5713058",
"0.5712929",
"0.5708501",
"0.5707164",
"0.5701746",
"0.5697331",
"0.56962454",
"0.5695603",
"0.5682034",
"0.5680014",
"0.56778336",
"0.5673784",
"0.5670307",
"0.56630665",
"0.56626093",
"0.5659259",
"0.56524885",
"0.56462413",
"0.5645408",
"0.5631048",
"0.56297505",
"0.5617549",
"0.560944",
"0.56074756",
"0.5607142",
"0.5590249",
"0.5587976",
"0.55865514",
"0.55855995",
"0.5571565",
"0.5571115",
"0.5569753",
"0.55694604",
"0.5566932",
"0.5566932",
"0.5566932",
"0.5565292"
] | 0.7056995 | 1 |
View view dans l'argument | public void onGetUserProfileClicked() throws InterruptedException {
if (mAccessToken == null) {
final Snackbar snackbar = Snackbar.make(findViewById(R.id.activity_spotify), R.string.warning_need_token, Snackbar.LENGTH_SHORT);
snackbar.getView().setBackgroundColor(ContextCompat.getColor(this, R.color.colorAccent));
snackbar.show();
return;
}
sendSearchRequest();
if(items!=null){
myAdapter.setItems(items);
trackRecyclerView.setVisibility(View.VISIBLE);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void view();",
"View mo73990a(View view);",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"public abstract String getView();",
"public String getView();",
"public String getView();",
"StableView view();",
"View createView();",
"void mo12147a(View view);",
"public abstract void viewRun();",
"@Override\n\tpublic void setView(Resultado resultado, HttpServletRequest request, HttpServletResponse response) {\n\n\t}",
"public abstract View a(Object obj);",
"public void displayData(View view) {\n\n }",
"public abstract void mo8519a(View view);",
"public void execute(View view){\n //method in view to show the choice\n }",
"public interface View_1 extends BaseView {\n\n void viewCall(String result);\n}",
"java.lang.String getView();",
"View getActiveView();",
"public void showInstruction(View view) {\n }",
"public void verHistorialCitas(View view){\n\n }",
"public interface IView {\n\n\n\n\n\n}",
"protected ReliedOnView() {}",
"void viewButton_actionPerformed(ActionEvent e) {\n doView();\n }",
"private View() {}",
"public interface View {\n}",
"public interface View {\n}",
"public abstract View mo2155b();",
"protected abstract void populateView(View v, T model);",
"void showTodoView();",
"public void in_macha(View view) {\n }",
"public void mo1637a(View view) {\n }",
"ViewMap<IBranchMapping> getView();",
"Object getViewDetails();",
"public interface View {\n\t\n\tpublic DifferenceOperators getOperator();\n\tpublic double getUtility(DistanceMetric distanceMetric);\n\tpublic double getUtility(DistanceMetric distanceMetric,\n\t\t\tboolean normalizeDistributions);\n //Added by Himos\n public double getUtilitywithfunc(DistanceMetric distanceMetric, Constants.AggregateFunctions AGF,\n\t\t\tboolean normalizeDistributions);\n\tpublic List<View> constituentViews();\n \n // public String getHighFunction(); \n\t//public View getTopDifferent();\n\n}",
"public Get setView(java.lang.String view) {\n this.view = view;\n return this;\n }",
"@Override\n\tpublic void viewItem() {\n\t\t\n\t}",
"public interface BaseView {\n\n void showTaost(String string);\n\n}",
"public void configure(T aView) { }",
"public interface View {\n\n\n /**\n * Launch the view or CLI.\n */\n void launch();\n\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 View getView() { return view; }",
"public void updateView(ClientView view);",
"public interface IViewGetter<T,V extends View> {\n V createView(Context context);\n void initView(V view, T bean);\n}",
"public View emitAsView() {\n return view;\n }",
"protected String getView() {\r\n/* 216 */ return \"/jsp/RoomView.jsp\";\r\n/* */ }",
"public interface BaseView {\n\n /**\n * 返回请求信息\n * @param value\n */\n void showReqResult(String value);\n\n}",
"ViewComponent createViewComponent();",
"@SuppressWarnings(\"unchecked\")\n\tpublic View getView(String id) {\n\t\tid =id.trim();\n\t\tt = (T) activity.findViewById(getId(id));\n\t\treturn (View)t;\n\t}",
"public String getViewParam() {\r\n\t\treturn viewParam;\r\n\t}",
"@Override\n\tpublic void staticFindViewByView() {\n\t\t\n\t}",
"void updateView();",
"void updateView();",
"public interface Viewer {\n\n int getCurrentView();\n\n}",
"public interface View{\n void setupViews();\n void onClickSubmitReview();\n void showSuccessfullReviewSubmit();\n void showErrorSubmitReview();\n }",
"public void setView(final String view) \n {\n\tthis.view = view;\n }",
"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 }",
"protected abstract void bindingView();",
"public interface CarXmlView extends BaseView {\n void showResult(String xml);\n void showError();\n void showEmpty();\n}",
"interface View extends BaseView {\n //specific methods for each view\n void onTranslation(Sentence sentence);\n }",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"private void setViews() {\n\n }",
"public void setView(View view);",
"void mo6505cu(View view);",
"void favoriteView();",
"public void ViewBookInfo(View v) {\n }",
"@Override\n public void prepareView() {\n }",
"@Override\n\t\tpublic void viewAccepted(View joiner) {\n\t\t}",
"void setView(View v);",
"ViewElement createViewElement();",
"public interface View {\n void setupViews();\n void onClickMonth();\n void onClickYear();\n void onSuccess(RevenueModel body);\n void onSuccessWithdrawl(BaseResponse body);\n void onFailure();\n void onFailureWithdrawl();\n }",
"private void changeView(){\r\n\t\t\tm.changeView(Views.GAME, gameType, game);\r\n\t}",
"public interface ITypedView<T,E> extends IView {\n void showData(T data);\n void showError(E error);\n}",
"@Override\n\tpublic void setView(View view) {\n\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"public String getView(String viewName) {\n\t\t\n\t\treturn prefix + viewName + suffix;\n\t}",
"public void register (View view)\n {\n //omer\n }",
"public Object caseView(View object) {\r\n\t\treturn null;\r\n\t}",
"ViewElement getViewElement();",
"public void initView(){}",
"public void buildDefault(View v){\r\n }",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"void updateViewFromModel();",
"public ViewIdentificator getView() {\r\n return view;\r\n }",
"public java.lang.String getView() {\n return view;\n }",
"public java.lang.String getView() {\n return view;\n }",
"public java.lang.String getView() {\n return view;\n }",
"Views getViews();",
"public abstract void prepare(View view);",
"void startView();",
"public L getViewObjectFor(final Language lang);",
"public interface IView {\n\n /**\n * Renders this IView as a visual, text or svg.\n *\n * @param model the IViewModel that this IView is using\n */\n void render(IViewModel model);\n\n void edit(IController controller);\n}",
"private void ViewActionPerformed(ActionEvent e) {\n\t}",
"public void collecTION(View view) {\n }",
"@RequestMapping(value = \"/friendlink_view.jspx\", method = RequestMethod.GET)\r\n\tpublic void view(Integer id, HttpServletRequest request, HttpServletResponse response, ModelMap model) {\r\n\t\tif (id != null) {\r\n\t\t\tcmsFriendlinkMng.updateViews(id);\r\n\t\t\tResponseUtils.renderJson(response, \"true\");\r\n\t\t} else {\r\n\t\t\tResponseUtils.renderJson(response, \"false\");\r\n\t\t}\r\n\t}",
"interface RedeemView extends BaseView {\n\n void LoadingReddemData (List<RedeemResponse> redeemResponses );\n void hide_refreshView();\n void show_errorView(boolean Isshow , String error);\n}",
"void searchView(String name);",
"ViewCreator get(String userName);",
"@Override\r\n\tpublic View getView() {\n\t\treturn super.getView();\r\n\t}"
] | [
"0.7460883",
"0.7397152",
"0.7196298",
"0.70598197",
"0.700726",
"0.700726",
"0.6883627",
"0.6861147",
"0.6856382",
"0.6835168",
"0.6742563",
"0.67126226",
"0.6661265",
"0.657405",
"0.65608853",
"0.65601087",
"0.6540197",
"0.6504869",
"0.6334089",
"0.63203716",
"0.631528",
"0.63040847",
"0.63005936",
"0.6288148",
"0.6276302",
"0.6276302",
"0.627494",
"0.62718993",
"0.6263937",
"0.62256026",
"0.62074435",
"0.6201767",
"0.61645275",
"0.61618835",
"0.6152544",
"0.61415905",
"0.6131233",
"0.6125181",
"0.6121583",
"0.61131525",
"0.6104991",
"0.61029977",
"0.6089125",
"0.6065635",
"0.6063604",
"0.60598135",
"0.6052402",
"0.605202",
"0.6045992",
"0.6033101",
"0.6031594",
"0.6031594",
"0.60250425",
"0.60233605",
"0.6017778",
"0.6016292",
"0.6016191",
"0.60124475",
"0.6011873",
"0.6011051",
"0.6011051",
"0.6010686",
"0.6004024",
"0.6003397",
"0.59994924",
"0.59982127",
"0.5998169",
"0.59961236",
"0.5995579",
"0.5985632",
"0.59844923",
"0.59749407",
"0.5972434",
"0.59671044",
"0.5955116",
"0.5955116",
"0.5953338",
"0.5951996",
"0.59488964",
"0.59476113",
"0.5944988",
"0.5940893",
"0.5939125",
"0.59378654",
"0.59357923",
"0.5935537",
"0.59302664",
"0.59302664",
"0.59302664",
"0.59267455",
"0.5923246",
"0.5907358",
"0.58976316",
"0.5896226",
"0.58909005",
"0.58906037",
"0.5889716",
"0.5888022",
"0.58867764",
"0.58840483",
"0.58760214"
] | 0.0 | -1 |
Home and log out buttons | @FXML
private void logOut() throws IOException {
App.clearManagerStatus();
App.setRoot("/tom/sros/login/logInScreen");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkToLogout() {\n logout();\n checkToHome();\n drawViewSideMenu();\n }",
"public void logout() {\n showLoginScreen();\n }",
"@Override\r\n\tpublic void onBackPressed() {\r\n\t\tsuper.onBackPressed();\r\n\t\tlogout();\r\n\t}",
"protected void userLoggedOut() {\n\t\tRuvego.userLoggedOut();\n\t\tResultsActivityMenu.userLoggedOut();\n\t\tHistory.newItem(\"homePage\");\n\t}",
"public static void logout() {\n click(MY_ACCOUNT_DROPDOWN);\n click(LOGOUT_BUTTON);\n }",
"void logout();",
"void logout();",
"private void logOut() {\n mApi.getSession().unlink();\n\n // Clear our stored keys\n clearKeys();\n // Change UI state to display logged out version\n setLoggedIn(false);\n }",
"public void LoginButton() {\n\t\t\r\n\t}",
"public String logout()\n \t{\n \t\t_session.remove(GlobalConstants.USER_KEY);\n\t\treturn \"home\";\n \t}",
"private void setupHomeButtonPanel() {\n\t\tJPanel homeButtonPanel = new JPanel();\n\t\tthis.home = new JButton(\"Log Off\");\n\t\tthis.home.setActionCommand(\"HOME\");\n\t\thomeButtonPanel.add(home);\n\t\tthis.add(homeButtonPanel, BorderLayout.SOUTH);\n\t}",
"public void logout() {\n \n }",
"public void logoffButton(View view){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}",
"private void configureBackButton(){\n Button backButton = (Button) findViewById(R.id.backButton);\n backButton.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view){\n //TODO add the code that erases saved login key\n\n //opens login page and closes home page stack\n startActivity(new Intent(homePage.this, MainActivity.class));\n finish();\n\n }\n });\n }",
"public void Logout() {\n \t\t\t\n \t\t}",
"private void backButtonAction() {\n CurrentUI.changeScene(SceneNames.LOGIN);\n }",
"public static void signOut(){\n\t\tActions action_logout = new Actions(driver);\n\t\tWebElement UI = driver.findElement(By.id(\"UserNavigationTabsContainer\"));\n\t\taction_logout.moveToElement(UI).build().perform();\n\t\tdriver.findElement(By.linkText(\"Logout\")).click();\t\n\t\tpause(500);\n\t}",
"@FXML\r\n private void handleButtonLogOut() {\r\n sessionContent.remove(\"activeId\");\r\n user = null;\r\n MobileApplication.getInstance().switchView(LOGIN_VIEW);\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\trennClient.logout();\n\t\t\t\tloginBtn.setVisibility(View.VISIBLE);\n\t\t\t\tlogoutBtn.setVisibility(View.GONE);\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n //your actions\n Main.Logout();\n }",
"private void logout() {\n Utils.showConfirmationDialogCallBack(MainActivity.this, getString(R.string.logout_sure), this);\n }",
"public void btnLogout(View view) {\n actionButton.collapse();\n\n SetSharedPreference setSharedPreference = new SetSharedPreference(this);\n // signout from app.\n setSharedPreference.setBooleanLogin(getString(R.string.boolean_login_sharedPref), \"false\");\n\n Intent intent = new Intent(this, StartupActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n finish();\n startActivity(intent);\n\n }",
"public void logout() {\n // Mengambil method clear untuk menghapus data Shared Preference\n editor.clear();\n // Mengeksekusi perintah clear\n editor.commit();\n // Membuat intent untuk berpindah halaman\n Intent intent = new Intent(context, LoginActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n context.startActivity(intent);\n }",
"public void goHome();",
"void onLogout(boolean loggedIn);",
"private void logout() {\n ((MyApplication)this.getApplication()).setLoggedIn(false);\n// Intent intent = new Intent(this, StartupActivity.class);\n// startActivity(intent);\n }",
"@Override\n public void onBackPressed() {\n logoutDialog();\n }",
"public void home() {\n\t\tUserUI ui = new UserUI();\n\t\tui.start();\n\t}",
"@Override\n\tpublic void goToLogin() {\n\t\t\n\t}",
"private void logout() {\n\t\tParseUser.logOut();\n\n\t\t// Go to the login view\n\t\tstartLoginActivity();\n\t}",
"@Then(\"^user come back to main account page and log out$\")\n public void come_back_main_account_and_log_out() throws Exception{\n userAccountPage.clickBtnBackToAccount();\n userAccountPage.clickBtnLogOut();\n }",
"public void logout() {\n\t\ttry {\n\t\t\tStage mainStage = (Stage) HomePagePane.getScene().getWindow();\n\t\t\tmainStage.close();\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/application/Main.FXML\"));\n\t\t\tAnchorPane pane = loader.load();\n\t\t\tScene scene = new Scene(pane, 700, 400);\n\t\t\tStage stage = new Stage();\n\t\t\tstage.setScene(scene);\n\t\t\tstage.show();\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}",
"public abstract void logout();",
"@FXML\n private void logout(ActionEvent event) throws IOException {\n if (CurrentUser.getInstance().getUser() != null) {\n CurrentUser.getInstance().init(null); //Logs off\n App.setRoot(\"default\");\n }\n }",
"@Override\n public void onLogoutClick() {\n session.doLogout();\n addFragment();\n }",
"void onSignOutButtonClicked();",
"@Override\r\n public void onLogout() {\n Intent loginIntent = new Intent(CreateAccount.this, MainActivity.class);\r\n startActivity(loginIntent);\r\n finish();\r\n }",
"public void redirectToHomePageNotLoggedIn() {\r\n\t\t\r\n\t\twebAppDriver.get(baseUrl);//+\"?optimizely_x8236533790=0\"\r\n\t\t/*try {\r\n\t\t\twebAppDriver.verifyElementTextContains(By.id(linkLogoutId), \"Logout\", true);\r\n\t\t\tloginAction.clickOnLogOut();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// this is just to do logout if customer is auto logged in during\r\n\t\t\t// reservation\r\n\t\t}\r\n\t\t*/\r\n\t}",
"public void logout(View v){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.clear();\n editor.apply();\n Button view = findViewById(R.id.buttonView);\n view.setVisibility(View.INVISIBLE);\n Button logout = findViewById(R.id.buttonLogout);\n logout.setVisibility(View.INVISIBLE);\n EditText username = findViewById(R.id.username);\n username.setText(\"\");\n username.setHint(\"Username\");\n username.setVisibility(View.VISIBLE);\n EditText pass = findViewById(R.id.password);\n pass.setText(\"\");\n pass.setHint(\"Password\");\n pass.setVisibility(View.VISIBLE);\n Button login = findViewById(R.id.buttonLogin);\n login.setVisibility(View.VISIBLE);\n Button createAcc = findViewById(R.id.buttonCreateAccount);\n createAcc.setVisibility(View.VISIBLE);\n TextView accountName = findViewById(R.id.accountName);\n accountName.setVisibility(View.INVISIBLE);\n notification(this.getWindow().getDecorView(),\"You have been logged out!\");\n }",
"@Override\n public void Logout() {\n\t \n }",
"private void logout() {\n\t\tgetUI().get().navigate(\"login\");\r\n\t\tgetUI().get().getSession().close();\r\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case R.id.home:\r\n startActivity(new Intent(this, welcomeActivity.class));\r\n return true;\r\n case R.id.out:\r\n signOut();\r\n Toast.makeText(getApplicationContext(), \"You have signed out!\", Toast.LENGTH_SHORT).show();\r\n startActivity(new Intent(this, LoginActivity.class));\r\n return true;\r\n case R.id.back:\r\n //startActivity(new Intent(this, welcomeActivity.class));\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"private void logoutHandler() {\n AlertDialog.Builder builder = new AlertDialog.Builder(context, android.R.style.Theme_DeviceDefault_Dialog);\n builder.setTitle(\"Logout?\");\n builder.setMessage(\"Are you sure you want to logout?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Util.setLoggedInFlag(false);\n\n HPIApp.getAppContext().stopService(new Intent(HPIApp.getAppContext(), StepService.class));\n\n Intent intent = new Intent(HomeActivity.this, SplashActivity.class);\n startActivity(intent);\n HomeActivity.this.finish();\n }\n });\n\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n builder.show();\n }",
"@Override\r\n\tpublic void logout() {\n\t\t\r\n\t}",
"public void logOutBtn(){\r\n\t\t\r\n\t\ttry{\r\n\t\t\tFXMLLoader loader = new FXMLLoader();\r\n\t\t\t\r\n\t\t\tloader.setLocation(getClass().getResource(\"/view/Login.fxml\"));\r\n\t\t\t\r\n\t\t\tAnchorPane root = (AnchorPane)loader.load();\r\n\t\t\t\r\n\t\t\tStage stage = new Stage();\r\n\t\t\t\r\n\t\t\tScene scene = new Scene(root);\r\n\t\t\t\r\n\t\t\tstage.setScene(scene);\r\n\t\t\tstage.setResizable(false);\r\n\t\t\tstage.setTitle(\"Codeflow\");\r\n\t\t\t\t\t\t\r\n\t\t\tstage.show(); // Pop-up login stage\r\n\t\t\t\r\n\t\t\tLoginController.dashboardStage.close(); // Close dashboard stage\r\n\t\t\t\r\n\t\t} catch (IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"default public void clickHome() {\n\t\tremoteControlAction(RemoteControlKeyword.HOME);\n\t}",
"private void setupBack() {\n\t\tmakeButton(\"Back\", (ActionEvent e) -> {\n\t\t\tchangeView(\"login\");\n\t\t});\n\t}",
"public void logout(){\n logger.debug(\"logout from the application\");\n driver.findElement(oLogout).click();\n new WebDriverWait(driver,10).until(\n ExpectedConditions.titleIs(\"Sign-on: Mercury Tours\"));\n\n }",
"public static void Logout(){\n\t\tloginSystem();\r\n\t\t\r\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case R.id.home:\r\n startActivity(new Intent(this, welcomeActivity.class));\r\n return true;\r\n case R.id.out:\r\n signOut();\r\n Toast.makeText(getApplicationContext(), \"You have signed out!\", Toast.LENGTH_SHORT).show();\r\n startActivity(new Intent(this, LoginActivity.class));\r\n return true;\r\n case R.id.back:\r\n //startActivity(new Intent(this, MainActivity.class));\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"public void logout() {\n\n $(logOutNavigator).click();\n driver = commonMethods.waitForElement(driver, logOffBtn);\n $(logOffBtn).click();\n $(loadingProgressIcon).should(disappear);\n }",
"private void logoutButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logoutButtonActionPerformed\n boolean isLoggedIn = uL.isLoggedIn();\n boolean isLoggedInNew = na.isLoggedIn();\n //boolean found = uL.isFound();\n if (isLoggedIn || isLoggedInNew) {\n na.setIsLoggedIn(false);\n uL.setIsLoggedIn(false);\n uL.setIsFound(false);\n dm.messageUserLoggedOut();\n } else {\n dm.messageUserNotLoggedIn();\n }\n }",
"public void ClickLogout(View view ){\n logout();\n intent = new Intent(context,LoginActivity.class);\n //remove all previous stack activities\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n }",
"private void onLogoutButtonClick() {\r\n mViewModel.logout();\r\n //Clear input fields\r\n mUsernameInput.setText(\"\");\r\n mTokenInput.setText(\"\");\r\n\r\n //Clear saved credentials\r\n FragmentActivity activity = getActivity();\r\n if (activity == null) {\r\n return;\r\n }\r\n SharedPreferences sharedPreferences = activity.getApplicationContext().getSharedPreferences(getString(R.string.key_pref_file), MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n editor.putString(getString(R.string.key_pref_username), \"\");\r\n editor.putString(getString(R.string.key_pref_token), \"\");\r\n editor.apply();\r\n }",
"private void logout(){\n ParseUser.logOut();\n removeUserFromPrefs();\n Intent intent = LandingActivity.intent_factory(this);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Log.d(\"prof\",\"log_out\");\n vibrations(1);\n logoutPopup();\n }",
"@Override\n public void performLogout(){\n }",
"public void gotoAdminLogin(){ application.gotoAdminLogin(); }",
"public void logoutButtonPushed(ActionEvent event) throws IOException\r\n {\r\n SceneChanger.setLoggedInUser(null);\r\n SceneChanger sc = new SceneChanger();\r\n sc.changeScenes(event, \"LoginView.fxml\",\"Login\");\r\n }",
"public void signOut(View view) {\r\n startActivity(new Intent(getApplicationContext(),AdminDashboard.class));\r\n }",
"@Override\n\tpublic void logout() {\n\t}",
"LogOutButtonListener(Application app) {\n application= app;\n \n }",
"@Step(\"Log out\")\n public void logOut() {\n open();\n sighOutButton.click();\n }",
"public void goHome() {\r\n\t\tif (mActivity instanceof DashboardActivity) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfinal Intent intent = new Intent(mActivity, DashboardActivity.class);\r\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\tmActivity.startActivity(intent);\r\n\r\n\t}",
"public void signOut() {\n ReusableActionsPageObjects.clickOnElement(driver, signOut, logger, \"log out.\");\n }",
"public void doLogout() {\n loggedIn = false;\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n .getExternalContext().getSession(false);\r\n session.invalidate(); \r\n String pag= \"/login.xhtml\";\r\n redireccionar(pag);\r\n }",
"public static Result logout() {\n session().clear();\n flash(\"success\", Messages.get(\"youve.been.logged.out\"));\n return GO_HOME;\n }",
"public void getLogOutButton() {\n mLogOutButton = mView.findViewById(R.id.accounts_log_out_btn);\n mLogOutButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n logOutFirebaseAccounts();\n }\n });\n }",
"private void onSignOutClicked() {\n mState.disableConnection();\n if (mState.googleApiClientIsConnected()) {\n mState.signOutGoogleGames();\n }\n\n // show sign-in button, hide the sign-out button\n status.setText(\"Login to submit your achievements!\");\n signIn.setVisibility(View.VISIBLE);\n signOut.setVisibility(View.GONE);\n achievements.setVisibility(View.GONE);\n palmares.setVisibility(View.GONE);\n mPhotoUser.setVisibility(View.GONE);\n }",
"public void gotoHome(){ application.gotoHome(); }",
"public void LogoutListener()\n {\n \tLogout.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString sql = \"UPDATE admin_login SET isLogedin = '0' WHERE isLogedin = '1'\";\n\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(card, \"You have logged Out from admin \");\n\n\t\t\t\ttry {\n\t\t\t\t\t\t\tdb.ExecuteStatement(sql);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tLoginName.setText(\"\");\n\t\t\t\t\t\t\tLoginLabel.setForeground(Color.red);//disable logout button on login\n\t\t\t\t\t\t\tLogout.setEnabled(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//enable login button on logout\n\t\t\t\t\t\t\tLogIn.setEnabled(true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Reset staff id and password here\n\t\t\t\t\t\t\t UserName.setText(\"\");\n\t\t\t\t\t\t\t Password.setText(\"\");\n\t\t\t\t\t\t\tresetPassword.setEnabled(true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t UserName.setEnabled(true);\n\t\t\t\t\t\t\t Password.setEnabled(true);\n\t\t\t\t\t} catch (SQLException e1) {}\n\t\t\t\t\n\t\t\t}\n \t\t\n \t});\n }",
"public void logOut() {\n try {\n // getGlobalNavigation().clickSignOut();\n } catch (TimeoutException e) {\n Log.log(\"logOut\", \"page loads for more than 30 seconds\", true);\n }\n }",
"public void setlogUserOut() {\n\t\tcontroller.logoutUser();\n\t\tuserMenuButton.setText(\"\");\n\t\tuserMenuButton.setStyle(\"\");\n\t\tuserMenuButton.getItems().removeAll(menu1, menu2);\n\t\tloggedinuser.setVisible(false);\n\t\tuserSettings.setVisible(false);\n\t\tloginoption.setVisible(true);\n\n\t}",
"public void goToLogIn (View view){\n }",
"private void logoutBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_logoutBtnMouseClicked\n ((AppDraftGUI) this.getRootPane().getParent()).showPanel(0);\n frameInstance.p0.username.setText(\"\");\n frameInstance.p0.password.setText(\"\");\n }",
"private void checkAccountLoggedIn()\r\n\t{\n\t\tSharedPreferences pref = this.getSharedPreferences(\"accountdata\", 0);\r\n\t\tSystem.out.println(\"Checking if an account is logged in\");\r\n\t\tif (pref.getBoolean(\"accountLoggedIn\", false))\r\n\t\t{\r\n\t\t\tloginButton.setEnabled(false);\r\n\t\t\tregisterButton.setEnabled(false);\r\n\r\n\t\t\t// Make a crouton notifying the user\r\n\t\t\tCrouton crouton = Crouton.makeText(this, this.getResources()\r\n\t\t\t\t\t.getString(R.string.activity_login_account_loggedin),\r\n\t\t\t\t\tStyle.INFO);\r\n\t\t\tConfiguration.Builder configBuild = new Configuration.Builder();\r\n\t\t\tconfigBuild.setDuration(Configuration.DURATION_INFINITE);\r\n\t\t\tcrouton.setConfiguration(configBuild.build());\r\n\t\t\tcrouton.setOnClickListener(new OnClickListener()\r\n\t\t\t{\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(View v)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Crouton clicked\");\r\n\t\t\t\t\t((LoginActivity) v.getContext()).onBackPressed();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tcrouton.show();\r\n\t\t}\r\n\t}",
"public void loggedIn(){\n Button view = findViewById(R.id.buttonView);\n view.setVisibility(View.VISIBLE);\n Button logout = findViewById(R.id.buttonLogout);\n logout.setVisibility(View.VISIBLE);\n EditText username = findViewById(R.id.username);\n username.setVisibility(View.INVISIBLE);\n EditText pass = findViewById(R.id.password);\n pass.setVisibility(View.INVISIBLE);\n Button login = findViewById(R.id.buttonLogin);\n login.setVisibility(View.INVISIBLE);\n Button createAcc = findViewById(R.id.buttonCreateAccount);\n createAcc.setVisibility(View.INVISIBLE);\n TextView accountName = findViewById(R.id.accountName);\n accountName.setVisibility(View.VISIBLE);\n accountName.setText(user);\n }",
"private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}",
"void keyHome();",
"@Override\r\n\t\t\tpublic void onLogout() {\n\t\t\t\tshowToast(\"onLogout---\");\r\n\t\t\t}",
"@Override\n public void showHomeView()\n {\n Intent homeView = new Intent(LoginActivity.this, HomeActivity.class);\n startActivity(homeView);\n }",
"private void takeUserToLoginScreenOnUnAuth() {\n Intent intent = new Intent(BaseActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }",
"public void logout() {\n updateToken(\"\");\n startActivity(new Intent(GarageListActivity.this, LoginScreenActivity.class));\n updateToken(\"\");\n finish();\n }",
"private void logout() {\n getSharedPreferences(HELP_CATEGORIES, MODE_PRIVATE).edit().clear().apply();\n getSharedPreferences(LOGIN, MODE_PRIVATE).edit().putBoolean(IS_LOGGED_IN, false).apply();\n\n OkHttpClient client = new OkHttpClient();\n Request request = new Request.Builder()\n .url(URL + \"/nuh/logout\")\n .build();\n AsyncTask.execute(() -> {\n try {\n client.newCall(request).execute();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }",
"public void logout() {\n\t\tthis.setCurrentUser(null);\n\t\tthis.setUserLoggedIn(false);\t\t\n\t}",
"public void logout(){\n\t\t\n\t\tcurrentUser.logout();\n\t\tcurrentUser = null;\n\t\tchangeViewPort(new GUI_Logout(\"\", \"\", this));\n\t}",
"@FXML\n\tprivate void handleLogin() {\n\t \n\t\t\t\ttry {\n\t\t\t\t\tmain.showHomePageOverview(username.getText(),password.getText());\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\n\t}",
"@Override\n public void doLogout() {\n\n\n Intent intent = new Intent(RestaurantMainActivity.this, WelcomeActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n }",
"public void signOutOfDD()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignOutLink();\n\t\t\n\t}",
"private void formDashboardMainButtonLogoutActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n int action = JOptionPane.showConfirmDialog(null,\n Constanta.Messages.MESSAGE_CONFIRM_LOGOUT,\n Constanta.Messages.BANNER_CONFIRM,\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n\n if (action == JOptionPane.YES_OPTION) {\n Login login = new Login();\n login.show();\n this.dispose();\n }\n } catch (HeadlessException e) {\n JOptionPane.showMessageDialog(null, Constanta.Messages.MESSAGE_ERROR + e.getMessage());\n }\n }",
"public LoginPage logUserOut() {\n if (browser.findElements(By.id(LOGOUT_BUTTON_ID)).isEmpty()) {\n throw new RuntimeException(\"Cannot log the user out because the logout button is not visible. Is user logged in?\");\n }\n\n browser.findElement(By.id(LOGOUT_BUTTON_ID)).click();\n\n LoginPage shown = new LoginPage(browser);\n shown.waitUntilPageIsOpen();\n return shown;\n }",
"public TWTRLogInButton() {}",
"public void logOut(View view) {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n }",
"private void logout() {\n userModel.setLoggedInUser(null);\n final Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n finish();\n }",
"void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }",
"void successLogout();",
"void logoff();",
"public void initializeButtons(){\n logOutButton = findViewById(R.id.bLogOut);\n logOutButton.setOnClickListener(v -> {\n displayViewModel.signOut();\n Toast.makeText(this, R.string.signed_out, LENGTH_SHORT).show();\n Intent intent = new Intent(this, LoginXActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n finish();\n });\n unPairButton = findViewById(R.id.bUnpair);\n unPairButton.setOnClickListener(view -> {\n displayViewModel.setInterval(Constants.SOS_INTERVAL);\n displayViewModel.unPair();\n logOutButton.callOnClick();\n });\n\n }",
"public void logOutOnClick(View view)\n {\n Intent mainIntent = new Intent(SettingsActivity.this, AppLoginActivity.class);\n mainIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n FirebaseAuth.getInstance().signOut();\n startActivity(mainIntent);\n finish();\n }"
] | [
"0.7193114",
"0.68393785",
"0.6757144",
"0.6703216",
"0.67013484",
"0.66759706",
"0.66759706",
"0.66225976",
"0.6622119",
"0.65699273",
"0.6562835",
"0.65067255",
"0.64554286",
"0.64536494",
"0.64517605",
"0.6445451",
"0.64430285",
"0.6421389",
"0.64096045",
"0.6402151",
"0.63788867",
"0.63762856",
"0.63739157",
"0.63671947",
"0.63567275",
"0.6345009",
"0.63430715",
"0.6328938",
"0.63151526",
"0.63116765",
"0.63004035",
"0.62751216",
"0.6270498",
"0.62649935",
"0.6260971",
"0.62557226",
"0.62482727",
"0.6247715",
"0.6241944",
"0.6229021",
"0.6227975",
"0.6213279",
"0.62127376",
"0.6208465",
"0.62057626",
"0.62053657",
"0.6177322",
"0.6159436",
"0.61586624",
"0.6144033",
"0.61438024",
"0.6143544",
"0.6141952",
"0.61346245",
"0.61274886",
"0.6126559",
"0.6126222",
"0.6126046",
"0.61248803",
"0.6107426",
"0.60991687",
"0.609519",
"0.60910976",
"0.60872626",
"0.6085576",
"0.60799354",
"0.6078939",
"0.6074721",
"0.60718715",
"0.60716915",
"0.60712415",
"0.6065772",
"0.6054532",
"0.60538274",
"0.6052847",
"0.6051163",
"0.603972",
"0.6037768",
"0.6030321",
"0.60262656",
"0.6017422",
"0.6015045",
"0.6011656",
"0.6006959",
"0.59846795",
"0.598032",
"0.59739846",
"0.5968888",
"0.59667325",
"0.59652346",
"0.59634507",
"0.59581995",
"0.5955239",
"0.5953305",
"0.5951117",
"0.594827",
"0.59462154",
"0.59461445",
"0.5942472",
"0.5930917"
] | 0.5983038 | 85 |
Distance for traveling from one vertex in the grid to another | private static int calculateManhattanDistance(Node actualNode, Node targetNode)
{
int distance = 1;
int dx = Math.abs(actualNode.getRow() - targetNode.getRow());
int dy = Math.abs(actualNode.getColumn() - targetNode.getColumn());
return distance * (dx+dy);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double estimatedDistanceToGoal(Vertex s, Vertex goal);",
"public double distance() {\n \tif (dist == -1) {\n \t\tdist = distance(vertex1, vertex2);\n \t}\n \n \treturn dist;\n }",
"public int distance(Coord coord1, Coord coord2);",
"double distance (double px, double py);",
"public static double dist (Vertex a, Vertex b){\n return Math.sqrt((b.y-a.y)*(b.y-a.y) + (b.x-a.x)*(b.x-a.x));\n }",
"public abstract double distanceFrom(double x, double y);",
"public double getDistanceTo(CoordPair dest)\r\n\t{\n\t\tif(isAdjacent(dest))\r\n\t\t\treturn 1;\r\n\t\tint rowDiff = this.row - dest.getRow();\r\n\t\tint colDiff = this.col - dest.getCol();\r\n\t\tint sumSquares = (int) (Math.pow(rowDiff,2) + Math.pow(colDiff, 2));\r\n\t\tdouble distance = Math.sqrt(sumSquares);\r\n\t\t\r\n\t\treturn distance;\r\n\t}",
"Integer distance(PathFindingNode a, PathFindingNode b);",
"private double calculateDistance(int sourceX, int sourceY, int targetX, int targetY){\n int xLength = targetX - sourceX;\n int yLength = targetY - sourceY;\n return Math.sqrt((xLength*xLength)+(yLength*yLength)); \n }",
"public double getDistance(){\r\n\t\treturn Math.sqrt(\r\n\t\t\t\t(\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterX()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterX()\r\n\t\t\t\t\t, 2 )\r\n\t )\r\n\t\t\t\t+ (\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterY()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterY()\r\n\t\t\t\t\t, 2 )\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}",
"public static double getDistance( GameObject one, GameObject two )\n {\n double deltaX = getDeltaX( one, two );\n double deltaY = getDeltaY( one, two );\n return Math.sqrt( deltaX * deltaX + deltaY * deltaY );\n }",
"double getDistance();",
"public abstract int shortestPathDistance(String vertLabel1, String vertLabel2);",
"private float distanceTo(BasicEvent event) {\n final float dx = event.x - location.x;\n final float dy = event.y - location.y;\n// return Math.abs(dx)+Math.abs(dy);\n return distanceMetric(dx, dy);\n// dx*=dx;\n// dy*=dy;\n// float distance=(float)Math.sqrt(dx+dy);\n// return distance;\n }",
"@Override\n public float distanceAdjacent(int x1, int y1, int x2, int y2) {\n float duration = 0;\n\n if (x1 == x2 || y1 == y2) {\n MapTile.Instance fromTile = getTileData(x1, y1);\n MapTile.Instance toTile = getTileData(x2, y2);\n assert fromTile != null && toTile != null;\n\n Direction move = Direction.get(x2 - x1, y2 - y1);\n\n int fromHeight = fromTile.heightOf(move);\n int toHeight = toTile.heightOf(move.inverse());\n\n // steepness\n float t1inc = (fromHeight - fromTile.getHeight()) / (TILE_SIZE / 2);\n float t2inc = (toHeight - toTile.getHeight()) / (TILE_SIZE / 2);\n\n // actual duration of walking\n float walkSpeedT1 = (1f / hypoLength(t1inc)) * walkSpeed;\n float walkSpeedT2 = (1f / hypoLength(t2inc)) * walkSpeed;\n\n // duration += walkspeed(steepness_1) * dist + walkspeed(steepness_2) * dist\n duration += (walkSpeedT1 + walkSpeedT2) * TILE_SIZE;\n\n // height difference on the sides of the tiles\n float cliffHeight = (toHeight - fromHeight) * TILE_SIZE_Z;\n\n // climbing if more than 'an acceptable height'\n if (cliffHeight > 0) {\n duration += (cliffHeight / climbSpeed);\n }\n\n } else {\n // TODO allow diagonal tracing\n Logger.WARN.print(String.format(\n \"Pathfinding (%s) asked for non-adjacent tiles (%d, %d) (%d, %d)\",\n getClass(), x1, y1, x2, y2\n ));\n\n return Float.POSITIVE_INFINITY;\n }\n\n return duration;\n }",
"private int dist(int city1, int city2){\n\t\treturn this.getGraph().getWeight(city1, city2);\n\t}",
"private double getDistance(Vector2i tile, Vector2i goal) {\n\t\t double dx = tile.getX() - goal.getX();\n\t\t double dy = tile.getY() - goal.getY();\n\t\t return Math.sqrt(dx * dx + dy *dy); //distance \n\t }",
"private int distBetween(Cell u, Cell v) {\r\n\t\t\tint dist;\r\n\t\t\tint dx = u.col - v.col;\r\n\t\t\tint dy = u.row - v.row;\r\n\t\t\tif (diagonal.isSelected()) {\r\n\t\t\t\t// with diagonal movements\r\n\t\t\t\t// calculate 1000 times the Euclidean distance\r\n\t\t\t\tdist = (int) ((double) 1000 * Math.sqrt(dx * dx + dy * dy));\r\n\t\t\t} else {\r\n\t\t\t\t// without diagonal movements\r\n\t\t\t\t// calculate Manhattan distances\r\n\t\t\t\tdist = Math.abs(dx) + Math.abs(dy);\r\n\t\t\t}\r\n\t\t\treturn dist;\r\n\t\t}",
"public double calculateDistance(LatLng other) {\n return Math.sqrt( (this.x - other.x) * (this.x - other.x) + (this.y - other.y) * (this.y - other.y) );\n }",
"public float getDistance();",
"double getDistance(int i, int j){\r\n\tdouble d = (coord[i][0]-coord[j][0])*(coord[i][0]-coord[j][0])+ (coord[i][1]-coord[j][1])*(coord[i][1]-coord[j][1]);\r\n\td = Math.sqrt(d);\r\n\treturn d;\r\n}",
"public double distance(V a, V b);",
"void calculate_distance()\n {\n \t\n \tfor(int i = 0; i<V ; i++)\n \t{\n \t\tfor(int j = 0; j<E ; j++)\n \t\t{\n \t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n \t\t}\n \t\tsp[i] = dist[i];\n \t\tx[i] = dist[i];\n \t}\n \tSystem.out.println();\n }",
"public double calcDistance(Planet p){\n\t\treturn(Math.sqrt((this.xxPos-p.xxPos)*(this.xxPos-p.xxPos)\n\t\t\t+(this.yyPos-p.yyPos)*(this.yyPos-p.yyPos)));\n\t}",
"double dist(pair p1){\n\t\tdouble dx=(p1.x-centre.x);\n\t\tdouble dy=(p1.y-centre.y);\n\t\tcount++;\n\t\treturn java.lang.Math.sqrt((dx*dx)+(dy*dy));\n\t}",
"private double getDistance(double initX, double initY, double targetX, double targetY) {\n\t\treturn Math.sqrt(Math.pow((initX - targetX), 2) + Math.pow((initY - targetY), 2));\n\t}",
"@Override\r\n\tpublic int getDistance(E src, E dst) {\r\n\t\treturn graphForWarshall.getDistance(src, dst);\r\n\t}",
"double getDistance(Point p);",
"public double calcDistance(Planet p){\n\t\t\tdouble dx = this.xxPos - p.xxPos;\n\t\t\tdouble dy = this.yyPos - p.yyPos;\n\t\treturn Math.sqrt(dx*dx + dy*dy);\n\t}",
"int getShortestDistance(V vertex);",
"double distanceTo(Point2D that) {\r\n double dx = this.x - that.x;\r\n double dy = this.y - that.y;\r\n return Math.sqrt(dx*dx + dy*dy);\r\n }",
"private double getDistance(Vector2i tile, Vector2i goal) {\r\n\t\tdouble dx = tile.getX() - goal.getX();\r\n\t\tdouble dy = tile.getY() - goal.getY();\r\n\t\treturn Math.sqrt((dx * dx) + (dy * dy));\r\n\t}",
"protected long travel() {\n\n return Math.round(((1 / Factory.VERTEX_PER_METER_RATIO) / (this.speed / 3.6)) * 1000);\n }",
"public double calcDistance(Planet p){\n\t\tdouble dx = p.xxPos - this.xxPos;\n\t\tdouble dy = p.yyPos - this.yyPos ;\n\t\treturn Math.sqrt(dx * dx + dy * dy);\n\n\t}",
"public int calcDistance(GraphNode g) {\r\n Double distance = Math.sqrt(Math.pow((g.getY() - getY()), 2) + Math.pow((g.getX() - getX()), 2));\r\n return distance.intValue();\r\n }",
"public double calcDistance (Planet pIn){\n\t\tdouble dis;\n\t\tdouble dx = xxPos - pIn.xxPos;\n\t\tdouble dy = yyPos - pIn.yyPos;\n\t\tdis = Math.sqrt(dx*dx + dy*dy);\n\t\treturn dis;\n\t}",
"public double distTo(int v){\n\t\tvalidateVertex(v);\n\t\treturn distTo[v];\n\t}",
"private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.getX(),2));\n\t}",
"private double distance() {\n\t\tdouble dist = 0;\n\t\tdist = Math.sqrt(Math.abs((xOrigin - x) * (xOrigin - x) + (yOrigin - y) * (yOrigin - y)));\n\t\treturn dist;\n\t}",
"public double distance(double x, double y);",
"public double calcDistance(Planet p){\n\t\tdouble dx=-(xxPos-p.xxPos);\n\t\tdouble dy=-(yyPos-p.yyPos);\n\t\treturn Math.sqrt(dx*dx+dy*dy);\n\t}",
"private static int calculateEuclidianDistance(Node actualNode, Node targetNode)\n\t{\n\t\t\n\t\treturn (int)Math.sqrt(Math.pow((actualNode.getRow() - targetNode.getRow()), 2) +\n\t\t\t\t\tMath.pow((actualNode.getColumn() - targetNode.getColumn()), 2));//distance*(int)Math.sqrt(dx+dy);\n\t}",
"public double getDistance(Player player) {\n\t\tdouble distanceFromPlayer1Perspective = player2.xPosition() - player1.xPosition();\n\t\tdouble distanceFromPlayer2Perspective = player1.xPosition() - player2.xPosition();\n\t\treturn player.equals(player1) ? distanceFromPlayer1Perspective : distanceFromPlayer2Perspective;\n\t}",
"public double shortestPathDist(int src, int dest);",
"public double calcDistance(Planet p){\n double sq_dis = (xxPos - p.xxPos) * (xxPos - p.xxPos) + (yyPos - p.yyPos) * (yyPos - p.yyPos);\n double distance = Math.sqrt(sq_dis);\n return distance;\n }",
"private double dist(Integer unit1, Integer unit2, StateView newstate) {\n\t\t//Creating two arrays of size 2 to store the position of the 2 units\n\t\tint[] pos1 = new int[2];\n\t\tint[] pos2 = new int[2];\n\t\t//Extracting the positional data\n\t\tpos1[0] = newstate.getUnit(unit1).getXPosition();\n\t\tpos1[1] = newstate.getUnit(unit1).getYPosition();\n\t\tpos2[0] = newstate.getUnit(unit2).getXPosition();\n\t\tpos2[1] = newstate.getUnit(unit2).getYPosition();\n\t\t//Calculating the distance\n\t\tdouble dx = Math.abs(pos1[0] - pos2[0]);\n\t\tdouble dy = Math.abs(pos1[1] - pos2[1]);\n\t\tdouble distance = Math.sqrt(Math.pow(dx, 2.0) + Math.pow(dy, 2.0));\n\t\treturn distance;\n\t}",
"double distanceSq (double px, double py);",
"double distance() {\r\n\t double dist_total = 0;\r\n\t for (int i = 0; i < index.length - 1; i++) {\r\n\t dist_total += city(i).distance(city(i + 1));\r\n\t }\r\n\t \r\n\t return dist_total;\r\n\t}",
"protected Double h(Tile from, Tile to){\r\n return (double) map.getDistance(from, to);\r\n }",
"double distanceEcl(Coord other) {\n\t\tint deltaX = x - other.x;\n\t\tint deltaY = y - other.y;\n\t\treturn sqrt(((double)deltaX * deltaX) + ((double)deltaY * deltaY));\n\t}",
"public static int dist(Location loc1, Location loc2)\n\t{\n\t\treturn Math.abs(loc1.x - loc2.x) + Math.abs(loc1.y - loc2.y);\n\t}",
"public int calculateDistance(GraphNodeAL<MapPoint> l1, GraphNodeAL<MapPoint> l2){\n double x1 = l1.data.getxCo();\n double y1 = l1.data.getyCo();\n double x2 = l2.data.getxCo();\n double y2 = l2.data.getyCo();\n double dist = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n return (int) dist;\n }",
"private int distance(Field origin, Field destination) {\n int horizontalLength = Math.abs(destination.getY() - origin.getY());\n int verticalLength = Math.abs(destination.getX() - origin.getX());\n return (horizontalLength + verticalLength)/2;\n }",
"public double distancia(Ponto p){\n double dx = Math.pow((p.x - this.x), 2);\n double dy = Math.pow((p.y - this.y), 2);\n return Math.sqrt((dx+dy));\n }",
"public static double distance(Vertex v1, Vertex v2)\n\t{\n\t\treturn Math.sqrt(Math.pow((v2.x - v1.x), 2) + Math.pow((v2.y - v1.y), 2));\n\t}",
"public abstract double getDistance(T o1, T o2) throws Exception;",
"public int getDistanceTo(int targetVertexPortNum)\n {\n return this.distances.get(convertToString(targetVertexPortNum)); // have to use the string version of the integer.\n }",
"public int getDistance(){\n if (distance == 0) {\n int tourDistance = 0;\n // Loop through our tour's cities\n for (int cityIndex=0; cityIndex < tourSize(); cityIndex++) {\n // Get city we're travelling from\n City fromCity = getCity(cityIndex);\n // City we're travelling to\n City destinationCity;\n // Check we're not on our tour's last city, if we are set our \n // tour's final destination city to our starting city\n if(cityIndex+1 < tourSize()){\n destinationCity = getCity(cityIndex+1);\n }\n else{\n destinationCity = getCity(0);\n }\n // Get the distance between the two cities\n tourDistance += fromCity.distanceTo(destinationCity);\n }\n distance = tourDistance;\n }\n return distance;\n }",
"public void getDistance() {\n projDistance = 2 * sin(toRadians(launchAngle)) * getVelocity() / 9.8 * cos(toRadians(launchAngle)) * getVelocity();\n }",
"private double getDistance() {\n\t\tfinal double h2 = 86.7;\n\t\t// h1: height of top of camera\n\t\tfinal double h1 = 17.6;\n\n\t\t// a1: angle of camera (relative to chasis)\n\t\tfinal double a1 = 36.175;\n\t\t// a2: angle of target relative to a1\n\t\tfinal double a2 = ty.getDouble(0.0);\n\n\t\t// distance: distance from camera to base of target\n\t\tfinal double distance = ((h2 - h1) / Math.tan(Math.toRadians(a1 + a2)));\n\n\t\tfinal double d = Math.sqrt(Math.pow(h2 - h1, 2) + Math.pow(distance, 2));\n\t\tSmartDashboard.putNumber(\"Py Distance\", d);\n\n\t\treturn (distance);\n\n\t}",
"public int distTo(Site s) {\n\t\treturn distTo[s.getX()][s.getY()];\n\t}",
"public Vector2 getDistance(Vector2 start, Vector2 destinatin, Vector2 offset) {\r\n if(this.grid.contains(start, offset)) {\r\n if(this.grid.contains(destinatin, offset)) {\r\n // Get Start Rectangle with scene offset\r\n Rectangle current = this.grid.getRectAtPosition(start, offset);\r\n Rectangle destination = grid.getRectAtPosition(destinatin, offset);\r\n int xA = (destination.getX() - current.getX()) / 48;\r\n int yA = (destination.getY() - current.getY()) / 48;\r\n return new Vector2(xA, yA);\r\n }\r\n }\r\n return null;\r\n }",
"public int getDistance(int row1, int col1, int row2, int col2) throws EnvironmentException\r\n\t{\r\n\t\tif(row1 < rows && row2 < rows && col1 < columns && col2 < columns &&\r\n\t\t\t\trow1 >= 0 && row2 >= 0 && col1 >= 0 && col2 >= 0)\r\n\t\t{\r\n\t\t\t//if same row, return the absolute value of column difference times 5\r\n\t\t\tif(row1 == row2)\r\n\t\t\t{\r\n\t\t\t\treturn Math.abs(col1-col2)*5;\r\n\t\t\t}\r\n\t\t\t//if same col, return the absolute value of row difference times 5\r\n\t\t\telse if(col1 == col2)\r\n\t\t\t{\r\n\t\t\t\treturn Math.abs(row1-row2)*5;\r\n\t\t\t}\r\n\t\t\t//if different rows and columns, use Pythagorean Theorem to compute distance\r\n\t\t\treturn (int)Math.sqrt(Math.pow((row1-row2)*5, 2)+Math.pow((col1-col2)*5, 2));\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthrow new EnvironmentException();\r\n\t\t}\r\n\t}",
"public int getNeighbourDistance(Vertex v1, Vertex v2){\n for(Edge edge: edges){\n if(v1 == edge.getSource() && v2 == edge.getDestination())\n return edge.getWeight();\n if(v1 == edge.getDestination() && v2 == edge.getSource())\n return edge.getWeight();\n }\n return -1;\n }",
"double getDistanceInMiles();",
"private float getDistance(SXRNode object)\n {\n float x = object.getTransform().getPositionX();\n float y = object.getTransform().getPositionY();\n float z = object.getTransform().getPositionZ();\n return (float) Math.sqrt(x * x + y * y + z * z);\n }",
"public static int getDistance(Tile from, Tile to) {\n\n\t\tif (!isOrdinal(from, to) && !isCardinal(from, to))\n\t\t\treturn -1;\n\n\t\tint distX = Math.abs(to.getX() - from.getX());\n\t\tint distY = Math.abs(to.getY() - from.getY());\n\n\t\tif (distX == distY)\n\t\t\treturn distX;\n\t\telse if (distX == 0)\n\t\t\treturn distY;\n\t\telse\n\t\t\treturn distX;\n\t}",
"private static double getDistance(final WayNodeOSM a, final WayNodeOSM b) {\n \t\tdouble latA = a.getLatitude()/180*Math.PI;\n \t\tdouble latB = b.getLatitude()/180*Math.PI;\n \t\tdouble lonDif = (b.getLongitude() - a.getLongitude())/180*Math.PI;\n \t\treturn (Math.acos((Math.sin(latA) * Math.sin(latB)) + (Math.cos(latA) * Math.cos(latB) * Math.cos(lonDif))) * 6367500);\n \t}",
"@Override\n\tpublic int getDistanceFrom(final SabrePlayer other) {\n\t\tGuard.ArgumentNotNull(other, \"other\");\n\t\t\n\t\tif (!isOnline() || !other.isOnline()) {\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\tLocation myLocation = bukkitPlayer.getLocation();\n\t\tLocation otherLocation = other.getBukkitPlayer().getLocation();\n\t\tint dx = otherLocation.getBlockX() - myLocation.getBlockX();\n\t\tint dz = otherLocation.getBlockZ() - myLocation.getBlockZ();\n\t\t\n\t\treturn (int)Math.sqrt(Math.pow(dx, 2) + Math.pow(dz, 2));\n\t}",
"private static int dist(int x1, int y1, int x2, int y2) {\n\t\treturn (int) Math.sqrt(Math.abs(((x2-x1) * (x2-x1)) + ((y2-y1) * (y2-y1))));\n\t}",
"@Test\n\tpublic void testDiagonalNeighbors() {\n\t\tPosition topLeft = new Position(0,0);\n\t\tPosition bottomRight = new Position(1,1);\n\n\t\tint distance = euclideanSquaredMetric.calculateCost(topLeft, bottomRight);\n\t\tassertEquals(2 * lateralDistanceWeight, distance);\n\n\t\tPosition topRight = new Position(0,1);\n\t\tPosition bottomLeft = new Position(1,0);\n\n\t\tdistance = euclideanSquaredMetric.calculateCost(topRight, bottomLeft);\n\t\tassertEquals(2*lateralDistanceWeight, distance);\n\n\t}",
"public int calculateDistance(String route) {\r\n if(route.length() < 2)\r\n throw new IllegalArgumentException(\"route is too short\");\r\n \r\n // find first vertex\r\n Vertex currentVertex = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == route.charAt(0)) {\r\n currentVertex = v;\r\n break;\r\n }\r\n }\r\n if(currentVertex == null) {\r\n throw new IllegalArgumentException(\"Vertex \" + route.charAt(0) + \" not found\");\r\n }\r\n \r\n int totalDistance = 0;\r\n for(int i = 1; i < route.length(); ++i) {\r\n char nextVertexName = route.charAt(i);\r\n Edge travelledEdge = currentVertex.getJoiningEdgeByName(nextVertexName);\r\n \r\n // check edge between vertices exists, and if not throw exception\r\n if(travelledEdge == null) {\r\n throw new IllegalArgumentException(\"Vertex \" + route.charAt(i) + \" not found\");\r\n }\r\n \r\n // travel edge to next vertex\r\n totalDistance += travelledEdge.getDistance();\r\n currentVertex = travelledEdge.getOppositeVertex(currentVertex);\r\n }\r\n \r\n return totalDistance;\r\n }",
"public double ComputeDistance(){ \n\t\tdouble lat1 = this.depAirportCity.getLatDegs() + (double)(this.depAirportCity.getLatMins())/60; \n\t\tdouble lon1 = this.depAirportCity.getLongDegs() + (double)(this.depAirportCity.getLongMins())/60;\n\t\tdouble lat2 = this.arrAirportCity.getLatDegs() + (double)(this.arrAirportCity.getLatMins())/60; \n\t\tdouble lon2 = this.arrAirportCity.getLongDegs() + (double)(this.arrAirportCity.getLongMins())/60;\n\t\t\n\t\tdouble distance = Haversine.getMiles(lat1, lon1, lat2, lon2);\n\t\treturn distance;\n\t}",
"private double plDist(Point2D p, Node n) {\n if (n.dir == V) {\n return Math.abs(p.x() - n.p.x());\n } else {\n return Math.abs(p.y() - n.p.y());\n }\n }",
"public double getDistance(Node start, Node end) {\n\tstartX = start.getX();\n\tstartY = start.getY();\n\tendX = end.getX();\n\tendY = end.getY();\n\n int Xsquared = (startX - endX) * (startX - endX);\n\tint Ysquared = (startY - endY) * (startY - endY);\n\n\treturn Math.sqrt(Xsquared + Ysquared);\n\t\n }",
"public static double getDistanceOnScreen(Vector2F v1, Vector2F v2) {\n\t\tfloat vector1 = v1.xPos - v2.xPos;\n\t\tfloat vector2 = v2.yPos - v2.yPos;\n\t\treturn Math.sqrt(vector1 * vector1 + vector2 * vector2);\n\t}",
"public double calcDistBetweenStops(){\n List<Location> locs = destinations.getLocationList();\r\n double totalDist = 0;\r\n for (int i = 0; i < (locs.size() - 1); i++){\r\n double distance = locs.get(i).DistanceTo(locs.get(i+1));\r\n totalDist += distance;\r\n }\r\n return totalDist;\r\n }",
"private double distance(Position pos1, Position pos2)\r\n {\r\n assert pos1 != null;\r\n assert pos2 != null;\r\n\r\n int x = Math.abs(pos1.column() - pos2.column());\r\n int y = Math.abs(pos1.line() - pos2.line());\r\n\r\n return Math.sqrt(x * x + y * y);\r\n }",
"public float getDistance(){\n\t\t\treturn s1.start.supportFinal.dot(normal);\n\t\t}",
"public double getDistance(){\n return sensor.getVoltage()*100/2.54 - 12;\n }",
"public double distance(Customer i, Customer j);",
"public final double calcDistance( Point a, Point b )\r\n {\r\n return( Math.sqrt( (Math.pow(a.y - b.y, 2)) +\r\n (Math.pow(a.x - b.x, 2)) ) );\r\n }",
"public double getDistance() { \n\t\treturn Math.pow(input.getAverageVoltage(), exp) * mul; \n\t}",
"public double getDistance() {\n\t\tdouble sum = 0;\n\t\tfor(int i = 0; i < ordering.size() - 1; i++) {\n\t\t\tsum += cost[ordering.get(i) - 1][ordering.get(i+1) - 1];\n\t\t}\n\t\treturn sum;\n\t}",
"Pair<Vertex, Double> closestVertexToPath(Loc pos);",
"private void calculateDistances() {\n for (int point = 0; point < ntree.size(); point++) {\n calculateDistances(point);\n }\n }",
"public double distanceBetweenNodes(Node from, Node to) {\n double dx = from.getX() - to.getX();\n double dy = from.getY() - to.getY();\n \n if (to.isObstacle()) { \n return Double.MAX_VALUE / 2;\n }\n else {\n return Math.sqrt((dx * dx) + (dy * dy));\n }\n }",
"public abstract double distanceTo (Object object);",
"public int dist(Position p) {\n\t\treturn Math.abs(this.x - p.x) + Math.abs(this.y - p.y);\n\t}",
"public double calculateDistance(MapLocation a, MapLocation b) {\r\n\t\treturn Math.sqrt((double) ( Math.pow((b.x - a.x),2) + Math.pow((b.y - a.y),2) ));\r\n\t}",
"public abstract double calculateDistance(double[] x1, double[] x2);",
"public double distance(AndroidDoveFlockModel otherDove)\n {\n return (Math.sqrt(Math.pow(otherDove.getX()-getX(),2) +\n Math.pow(otherDove.getY()-getY(),2)));\n }",
"private double distanceResult(double preLng, double preLat, double nextLng, double nextLat) {\n\t\treturn Math.sqrt((preLng - nextLng) * (preLng - nextLng) + (preLat - nextLat) * (preLat - nextLat));\n\t}",
"public double distance(){\n return DistanceTraveled;\n }",
"static Double Costoe(Nodo V, Nodo W){\n return Math.sqrt(Math.pow(W.getX() - V.getX(), 2) + Math.pow(W.getY() - V.getY(), 2)); \n }",
"double getSquareDistance();",
"public static double distancia(Entidade e1,Entidade e2){\r\n\t\tdouble dx = e1.getPosicaoX() - e2.getPosicaoX();\r\n\t\tdouble dy = e1.getPosicaoY() - e2.getPosicaoY();\r\n\t\tdouble d = Math.sqrt(dx*dx + dy*dy);\r\n\t\treturn d;\r\n\t}",
"private int getDist(int x, int y, int direction) {\n\t\tint Spaces = 0;\n\t\tif(direction == 0)\n\t\t{\n\t\t\t\n\t\t\tPoint nextPoint = new Point(x, y++);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x, y++);\n\t\t\t}\n\t\t}\n\t\tif(direction == 1)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x++, y);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x++, y);\n\t\t\t}\n\t\t}\n\t\tif(direction == 2)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x--, y);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x--, y);\n\t\t\t}\n\t\t}\n\t\tif(direction == 3)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x, y--);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x, y--);\n\t\t\t}\n\t\t}\n\t\treturn Spaces;\n\t}",
"private double dist(double [] v1, double [] v2){\n \t\tdouble sum=0;\n \t\tfor (int i=0; i<nDimensions; i++){\n \t\t\tdouble d = v1[i]-v2[i];\n \t\t\tsum += d*d;\n \t\t}\n \t\treturn Math.sqrt(sum);\n \t}",
"public int maxDistance(int[][] grid) {\n boolean[][] visited = new boolean[grid.length][grid[0].length]; // mark which cells have been already been visited\n Queue<int[]> queue = new LinkedList<>();\n\n //put 1 cells into queue to start with and mark then visited\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[0].length; j++) {\n if (grid[i][j] == 1) {\n queue.add(new int[]{i,j});\n visited[i][j] = true; //mark cell as visited\n }\n }\n }\n\n int distance = -1;\n int[][] directions = {{-1,0}, {0,1}, {1,0}, {0,-1}}; //all possible 4 directions\n while (!queue.isEmpty()) {\n int size = queue.size(); //since this is BFS we need to traverse level by level\n\n while (size > 0) { //iterate only till nodes in current level\n int[] pair = queue.poll();\n\n for (int[] direction : directions) { // check in all possible directions\n int x = pair[0] + direction[0];\n int y = pair[1] + direction[1];\n\n //if target cell is with in bounds and is not visited, add it to queue\n if (x >= 0 && x < grid.length && y >= 0 && y < grid[0].length && !visited[x][y]) {\n queue.add(new int[]{x,y});\n visited[x][y] = true;\n }\n }\n size--;\n }\n distance++; //increment the size only after level traversal is complete\n }\n\n //this is required because distance can be zero. This is possible if grid contains all 1's and all 1's are\n //consider level 1 as we are starting with them. So, need to return -1\n return distance == 0 ? -1 : distance;\n }",
"public int getDistance(LifeForm lf1, LifeForm lf2) throws EnvironmentException\r\n\t{\r\n\t\tint lf1Row = getLifeFormRow(lf1); //row of first lifeform\r\n\t\tint lf1Col = getLifeFormCol(lf1); //column of first lifeform\r\n\t\tint lf2Row = getLifeFormRow(lf2); //row of second lifeform\r\n\t\tint lf2Col = getLifeFormCol(lf2); //column of second lifeform\r\n\t\t\r\n\t\t//call getDistance(int row1, int col1, int row2, int col2) with LifeForm coordinates\r\n\t\treturn getDistance(lf1Row, lf1Col, lf2Row, lf2Col);\r\n\t}"
] | [
"0.68885195",
"0.68130016",
"0.67118394",
"0.6667557",
"0.6644399",
"0.6479362",
"0.64651674",
"0.64551675",
"0.6447706",
"0.64082706",
"0.6393039",
"0.63655984",
"0.63538814",
"0.6344179",
"0.6334088",
"0.6317806",
"0.62804794",
"0.6278838",
"0.6275777",
"0.62594867",
"0.6234949",
"0.6233984",
"0.61944574",
"0.6184168",
"0.61459637",
"0.61152756",
"0.6113544",
"0.6105892",
"0.6104931",
"0.6093388",
"0.6079219",
"0.60697526",
"0.60682327",
"0.6062366",
"0.6042158",
"0.60420316",
"0.60293233",
"0.602507",
"0.60163856",
"0.6014898",
"0.6013518",
"0.5983182",
"0.59818184",
"0.597872",
"0.5971566",
"0.596941",
"0.5966631",
"0.59659386",
"0.59626925",
"0.59624636",
"0.59603846",
"0.59601337",
"0.59558976",
"0.59438854",
"0.59354216",
"0.59272015",
"0.59220415",
"0.59205043",
"0.59071934",
"0.5903957",
"0.59020245",
"0.58999556",
"0.58944273",
"0.58941007",
"0.588459",
"0.58758",
"0.587428",
"0.5867181",
"0.5855101",
"0.5827589",
"0.5824838",
"0.5809797",
"0.5795573",
"0.57951605",
"0.57894313",
"0.5783116",
"0.5781244",
"0.5778115",
"0.57721436",
"0.57677585",
"0.5757723",
"0.5753361",
"0.574711",
"0.57464963",
"0.5735207",
"0.57259196",
"0.57233715",
"0.5715208",
"0.5713696",
"0.57071215",
"0.5705009",
"0.5704145",
"0.5697804",
"0.568565",
"0.5681058",
"0.5679352",
"0.56787443",
"0.5677671",
"0.56724095",
"0.5672212",
"0.5667632"
] | 0.0 | -1 |
int distance = 1; int dx = actualNode.getRow() targetNode.getRow(); dx = dx; int dy = actualNode.getColumn() targetNode.getColumn(); dy = dy; | private static int calculateEuclidianDistance(Node actualNode, Node targetNode)
{
return (int)Math.sqrt(Math.pow((actualNode.getRow() - targetNode.getRow()), 2) +
Math.pow((actualNode.getColumn() - targetNode.getColumn()), 2));//distance*(int)Math.sqrt(dx+dy);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getTargetPos();",
"double distance (double px, double py);",
"public Edge(Cell source, Cell target) {\n\n this.source = source;\n this.target = target;\n this.addedMidPoints = false;\n midLineX = new SimpleDoubleProperty(0);\n\n DoubleBinding endX = source.translateXProperty().add(source.widthProperty().divide(2.0));\n DoubleBinding endY = source.translateYProperty().add(source.heightProperty());\n\n DoubleBinding startX = target.translateXProperty().add(target.widthProperty().divide(2.0));\n DoubleBinding startY = target.translateYProperty().add(0);\n\n path = new DirectedPath(startX, startY, endX, endY);\n checkAndAddMidPoints(startY, endY);\n path.addPoint(endX, endY.add(TreeLayout.V_SPACING / 4.));\n\n source.translateXProperty().addListener((observable, oldValue, newValue) -> {\n checkAndAddMidPoints(startY, endY);\n });\n\n target.translateYProperty().addListener((observable, oldValue, newValue) -> {\n checkAndAddMidPoints(startY, endY);\n });\n\n source.translateXProperty().addListener((observable, oldValue, newValue) -> {\n checkAndAddMidPoints(startY, endY);\n });\n target.translateYProperty().addListener((observable, oldValue, newValue) -> {\n checkAndAddMidPoints(startY, endY);\n });\n\n // Change the X of the midpoints depending on whether the target is above, below, or at the same\n // level as the source\n midLineX.bind(new When(target.rowLocationProperty.subtract(source.rowLocationProperty).lessThan(0))\n .then(new When(target.columnLocationProperty.subtract(source.columnLocationProperty).greaterThan(0))\n .then(endX.add(TreeLayout.H_SPACING / 2.))\n .otherwise(new When(target.columnLocationProperty.subtract(source.columnLocationProperty).lessThan(0))\n .then(startX.add(TreeLayout.H_SPACING / 2.))\n .otherwise(startX)))\n .otherwise(new When(target.columnLocationProperty.subtract(source.columnLocationProperty).greaterThan(0))\n .then(endX.add(TreeLayout.H_SPACING / 2.))\n .otherwise(new When(target.columnLocationProperty.subtract(source.columnLocationProperty).lessThan(0))\n .then(startX.add(TreeLayout.H_SPACING / 2.))\n .otherwise(startX))));\n\n if(source.getCellType() != Cell.CellType.BOTH || target.getCellType() != Cell.CellType.BOTH){\n path.setDashed(true);\n }\n getChildren().add(path);\n\n visible = new SimpleBooleanProperty(false);\n visibleProperty().bind(source.visibleProperty().and(target.visibleProperty())\n .and(allVisible.or(visible)));\n\n source.edges.add(this);\n target.edges.add(this);\n\n }",
"Integer distance(PathFindingNode a, PathFindingNode b);",
"private float distanceTo(BasicEvent event) {\n final float dx = event.x - location.x;\n final float dy = event.y - location.y;\n// return Math.abs(dx)+Math.abs(dy);\n return distanceMetric(dx, dy);\n// dx*=dx;\n// dy*=dy;\n// float distance=(float)Math.sqrt(dx+dy);\n// return distance;\n }",
"private int distBetween(Cell u, Cell v) {\r\n\t\t\tint dist;\r\n\t\t\tint dx = u.col - v.col;\r\n\t\t\tint dy = u.row - v.row;\r\n\t\t\tif (diagonal.isSelected()) {\r\n\t\t\t\t// with diagonal movements\r\n\t\t\t\t// calculate 1000 times the Euclidean distance\r\n\t\t\t\tdist = (int) ((double) 1000 * Math.sqrt(dx * dx + dy * dy));\r\n\t\t\t} else {\r\n\t\t\t\t// without diagonal movements\r\n\t\t\t\t// calculate Manhattan distances\r\n\t\t\t\tdist = Math.abs(dx) + Math.abs(dy);\r\n\t\t\t}\r\n\t\t\treturn dist;\r\n\t\t}",
"private void mouseDownInMove()\n/* */ {\n/* 122 */ if (this.downNode < 0) return;\n/* 123 */ if (this.bn != null) this.oldPos.setLocation(this.bn.getPos(this.downNode)); else {\n/* 124 */ this.oldPos.setLocation(this.mn.getPos(this.downNode));\n/* */ }\n/* */ }",
"private double calculateDistance(int sourceX, int sourceY, int targetX, int targetY){\n int xLength = targetX - sourceX;\n int yLength = targetY - sourceY;\n return Math.sqrt((xLength*xLength)+(yLength*yLength)); \n }",
"public abstract double distanceFrom(double x, double y);",
"private static double dist(Data d, Centroid c)\r\n \t{\r\n \t\treturn Math.sqrt(Math.pow((c.Y() - d.Y()), 2) + Math.pow((c.X() - d.X()), 2));\r\n \t}",
"private double getDistance(double initX, double initY, double targetX, double targetY) {\n\t\treturn Math.sqrt(Math.pow((initX - targetX), 2) + Math.pow((initY - targetY), 2));\n\t}",
"int cellFromDistance(int d) {\n int d2 = d - GUTTER_SIZE;\n if (d2 < 0) {\n return -1;\n } else {\n d2 /= (CELL_SIZE + GUTTER_SIZE);\n int next = cellDistance(d2 + 1);\n if (next - d <= GUTTER_SIZE)\n return -1;\n else\n return d2;\n }\n }",
"private void calculateDistances() {\n for (int point = 0; point < ntree.size(); point++) {\n calculateDistances(point);\n }\n }",
"private static int diagonalDistance(int NODE1, int NODE2) {\n int dx = Math.abs((NODE1 >> 16) - (NODE2 >> 16));\n int dy = Math.abs((NODE1 & 0x00FF) - (NODE2 & 0x00FF));\n if (dx > dy)\n return 2 * (dx - dy) + 2 * dy;\n else\n return 2 * (dy - dx) + 2 * dx;\n }",
"public void move(double dist){\n VectorMovement newPositionAndLines = myGrid.addMovement(xPos, yPos, myAngle, dist, myPen);\n Point newPosition = newPositionAndLines.getPosition();\n updateUndoBuffers(newPositionAndLines.getLinesAssociatedWithMovement());\n xPos = newPosition.getMyX();\n yPos = newPosition.getMyY();\n }",
"float distTo(Sprite s) {\n return dist(_x, _y, s._x, s._y);\n }",
"private float getDistance(SXRNode object)\n {\n float x = object.getTransform().getPositionX();\n float y = object.getTransform().getPositionY();\n float z = object.getTransform().getPositionZ();\n return (float) Math.sqrt(x * x + y * y + z * z);\n }",
"public Point2D getNodePositionXY () { return n.getXYPositionMap(); }",
"private Point getDraggingXY(int ox, int oy, int dx, int dy) {\n\t\tint x, y;\n\n\t\t// if the element has a rope holder or umlenkrolle on top of its head\n\t\t// the element is higher than normal -> extraHeight\n\t\tint extraHeight = 0;\n\t\tif (this instanceof EndElement) {\n\t\t\tEndElement endElement = (EndElement) this;\n\t\t\tif (endElement.getUmlenkrolle() != null)\n\t\t\t\textraHeight = endElement.getUmlenkrolle().getHeight();\n\t\t\tif (endElement.getSeilaufhaenger() != null)\n\t\t\t\textraHeight = endElement.getSeilaufhaenger().getHeight();\n\t\t}\n\n\t\t// if the old coordinate + difference is not outside the area border it\n\t\t// is okay\n\t\t// otherwise the coordinates are set at the border\n\t\tif (ox + dx >= 1 && ox + dx <= aufzugschacht.getWidth() - 1 - getWidth())\n\t\t\tx = ox + dx;\n\t\telse if (ox + dx < 1)\n\t\t\tx = 1;\n\t\telse\n\t\t\tx = aufzugschacht.getWidth() - 1 - getWidth();\n\n\t\tif (oy + dy - extraHeight >= 1 && oy + dy <= aufzugschacht.getHeight() - 1 - getHeight())\n\t\t\ty = oy + dy;\n\t\telse if (oy + dy - extraHeight < 1)\n\t\t\ty = 1 + extraHeight;\n\t\telse\n\t\t\ty = aufzugschacht.getHeight() - 1 - getHeight();\n\n\t\treturn new Point(x, y);\n\t}",
"private double distance() {\n\t\tdouble dist = 0;\n\t\tdist = Math.sqrt(Math.abs((xOrigin - x) * (xOrigin - x) + (yOrigin - y) * (yOrigin - y)));\n\t\treturn dist;\n\t}",
"double treeNodeTargetFunctionValue(){\n\t\t\t//loop counter variable\n\t\t\tint i;\n\t\t\t\n\t\t\t//stores the cost\n\t\t\tdouble sum = 0.0;\n\n\t\t\tfor(i=0; i<this.n; i++){\n\t\t\t\t//stores the distance\n\t\t\t\tdouble distance = 0.0;\n\n\t\t\t\t//loop counter variable\n\t\t\t\tint l;\n\n\t\t\t\tfor(l=0;l<this.points[i].dimension;l++){\n\t\t\t\t\t//centroid coordinate of the point\n\t\t\t\t\tdouble centroidCoordinatePoint;\n\t\t\t\t\tif(this.points[i].weight != 0.0){\n\t\t\t\t\t\tcentroidCoordinatePoint = this.points[i].coordinates[l] / this.points[i].weight;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcentroidCoordinatePoint = this.points[i].coordinates[l];\n\t\t\t\t\t}\n\t\t\t\t\t//centroid coordinate of the centre\n\t\t\t\t\tdouble centroidCoordinateCentre;\n\t\t\t\t\tif(this.centre.weight != 0.0){\n\t\t\t\t\t\tcentroidCoordinateCentre = this.centre.coordinates[l] / this.centre.weight;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcentroidCoordinateCentre = this.centre.coordinates[l];\n\t\t\t\t\t}\n\t\t\t\t\tdistance += (centroidCoordinatePoint-centroidCoordinateCentre) * \n\t\t\t\t\t\t\t(centroidCoordinatePoint-centroidCoordinateCentre) ;\n\t\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tsum += distance*this.points[i].weight;\t\n\t\t\t}\n\t\t\treturn sum;\n\t\t}",
"private int distance(Field origin, Field destination) {\n int horizontalLength = Math.abs(destination.getY() - origin.getY());\n int verticalLength = Math.abs(destination.getX() - origin.getX());\n return (horizontalLength + verticalLength)/2;\n }",
"RowCoordinates getRowCoordinates();",
"private void expandNode() {\r\n\t\t\t// Dijkstra's algorithm to handle separately\r\n\t\t\tif (dijkstra.isSelected()) {\r\n\t\t\t\tCell u;\r\n\t\t\t\t// 11: while Q is not empty:\r\n\t\t\t\tif (graph.isEmpty()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// 12: u := vertex in Q (graph) with smallest distance in dist[]\r\n\t\t\t\t// ;\r\n\t\t\t\t// 13: remove u from Q (graph);\r\n\t\t\t\tu = graph.remove(0);\r\n\t\t\t\t// Add vertex u in closed set\r\n\t\t\t\tclosedSet.add(u);\r\n\t\t\t\t// If target has been found ...\r\n\t\t\t\tif (u.row == targetPos.row && u.col == targetPos.col) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// Counts nodes that have expanded.\r\n\t\t\t\texpanded++;\r\n\t\t\t\t// Update the color of the cell\r\n\t\t\t\tgrid[u.row][u.col] = CLOSED;\r\n\t\t\t\t// 14: if dist[u] = infinity:\r\n\t\t\t\tif (u.dist == INFINITY) {\r\n\t\t\t\t\t// ... then there is no solution.\r\n\t\t\t\t\t// 15: break;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t\t// 16: end if\r\n\t\t\t\t}\r\n\t\t\t\t// Create the neighbors of u\r\n\t\t\t\tArrayList<Cell> neighbors = createSuccesors(u, false);\r\n\t\t\t\t// 18: for each neighbor v of u:\r\n\t\t\t\tfor (Cell v : neighbors) {\r\n\t\t\t\t\t// 20: alt := dist[u] + dist_between(u, v) ;\r\n\t\t\t\t\tint alt = u.dist + distBetween(u, v);\r\n\t\t\t\t\t// 21: if alt < dist[v]:\r\n\t\t\t\t\tif (alt < v.dist) {\r\n\t\t\t\t\t\t// 22: dist[v] := alt ;\r\n\t\t\t\t\t\tv.dist = alt;\r\n\t\t\t\t\t\t// 23: previous[v] := u ;\r\n\t\t\t\t\t\tv.prev = u;\r\n\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\tgrid[v.row][v.col] = FRONTIER;\r\n\t\t\t\t\t\t// 24: decrease-key v in Q;\r\n\t\t\t\t\t\t// (sort list of nodes with respect to dist)\r\n\t\t\t\t\t\tCollections.sort(graph, new CellComparatorByDist());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// The handling of the other four algorithms\r\n\t\t\t} else {\r\n\t\t\t\tCell current;\r\n\t\t\t\tif (dfs.isSelected() || bfs.isSelected()) {\r\n\t\t\t\t\t// Here is the 3rd step of the algorithms DFS and BFS\r\n\t\t\t\t\t// 3. Remove the first state, Si, from OPEN SET ...\r\n\t\t\t\t\tcurrent = openSet.remove(0);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Here is the 3rd step of the algorithms A* and Greedy\r\n\t\t\t\t\t// 3. Remove the first state, Si, from OPEN SET,\r\n\t\t\t\t\t// for which f(Si) ≤ f(Sj) for all other\r\n\t\t\t\t\t// open states Sj ...\r\n\t\t\t\t\t// (sort first OPEN SET list with respect to 'f')\r\n\t\t\t\t\tCollections.sort(openSet, new CellComparatorByF());\r\n\t\t\t\t\tcurrent = openSet.remove(0);\r\n\t\t\t\t}\r\n\t\t\t\t// ... and add it to CLOSED SET.\r\n\t\t\t\tclosedSet.add(0, current);\r\n\t\t\t\t// Update the color of the cell\r\n\t\t\t\tgrid[current.row][current.col] = CLOSED;\r\n\t\t\t\t// If the selected node is the target ...\r\n\t\t\t\tif (current.row == targetPos.row && current.col == targetPos.col) {\r\n\t\t\t\t\t// ... then terminate etc\r\n\t\t\t\t\tCell last = targetPos;\r\n\t\t\t\t\tlast.prev = current.prev;\r\n\t\t\t\t\tclosedSet.add(last);\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// Count nodes that have been expanded.\r\n\t\t\t\texpanded++;\r\n\t\t\t\t// Here is the 4rd step of the algorithms\r\n\t\t\t\t// 4. Create the successors of Si, based on actions\r\n\t\t\t\t// that can be implemented on Si.\r\n\t\t\t\t// Each successor has a pointer to the Si, as its predecessor.\r\n\t\t\t\t// In the case of DFS and BFS algorithms, successors should not\r\n\t\t\t\t// belong neither to the OPEN SET nor the CLOSED SET.\r\n\t\t\t\tArrayList<Cell> succesors;\r\n\t\t\t\tsuccesors = createSuccesors(current, false);\r\n\t\t\t\t// Here is the 5th step of the algorithms\r\n\t\t\t\t// 5. For each successor of Si, ...\r\n\t\t\t\tfor (Cell cell : succesors) {\r\n\t\t\t\t\t// ... if we are running DFS ...\r\n\t\t\t\t\tif (dfs.isSelected()) {\r\n\t\t\t\t\t\t// ... add the successor at the beginning of the list\r\n\t\t\t\t\t\t// OPEN SET\r\n\t\t\t\t\t\topenSet.add(0, cell);\r\n\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t// ... if we are runnig BFS ...\r\n\t\t\t\t\t} else if (bfs.isSelected()) {\r\n\t\t\t\t\t\t// ... add the successor at the end of the list OPEN SET\r\n\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t// ... if we are running A* or Greedy algorithms (step 5\r\n\t\t\t\t\t\t// of A* algorithm) ...\r\n\t\t\t\t\t} else if (aStar.isSelected() || guloso.isSelected()) {\r\n\t\t\t\t\t\t// ... calculate the value f(Sj) ...\r\n\t\t\t\t\t\tint dxg = current.col - cell.col;\r\n\t\t\t\t\t\tint dyg = current.row - cell.row;\r\n\t\t\t\t\t\tint dxh = targetPos.col - cell.col;\r\n\t\t\t\t\t\tint dyh = targetPos.row - cell.row;\r\n\t\t\t\t\t\tif (diagonal.isSelected()) {\r\n\t\t\t\t\t\t\t// with diagonal movements\r\n\t\t\t\t\t\t\t// calculate 1000 times the Euclidean distance\r\n\t\t\t\t\t\t\tif (guloso.isSelected()) {\r\n\t\t\t\t\t\t\t\t// especially for the Greedy ...\r\n\t\t\t\t\t\t\t\tcell.g = 0;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcell.g = current.g + (int) ((double) 1000 * Math.sqrt(dxg * dxg + dyg * dyg));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcell.h = (int) ((double) 1000 * Math.sqrt(dxh * dxh + dyh * dyh));\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// without diagonal movements\r\n\t\t\t\t\t\t\t// calculate Manhattan distances\r\n\t\t\t\t\t\t\tif (guloso.isSelected()) {\r\n\t\t\t\t\t\t\t\t// especially for the Greedy ...\r\n\t\t\t\t\t\t\t\tcell.g = 0;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcell.g = current.g + Math.abs(dxg) + Math.abs(dyg);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcell.h = Math.abs(dxh) + Math.abs(dyh);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcell.f = cell.g + cell.h;\r\n\t\t\t\t\t\t// ... If Sj is neither in the OPEN SET nor in the\r\n\t\t\t\t\t\t// CLOSED SET states ...\r\n\t\t\t\t\t\tint openIndex = isInList(openSet, cell);\r\n\t\t\t\t\t\tint closedIndex = isInList(closedSet, cell);\r\n\t\t\t\t\t\tif (openIndex == -1 && closedIndex == -1) {\r\n\t\t\t\t\t\t\t// ... then add Sj in the OPEN SET ...\r\n\t\t\t\t\t\t\t// ... evaluated as f(Sj)\r\n\t\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t\t// Else ...\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// ... if already belongs to the OPEN SET, then ...\r\n\t\t\t\t\t\t\tif (openIndex > -1) {\r\n\t\t\t\t\t\t\t\t// ... compare the new value assessment with the\r\n\t\t\t\t\t\t\t\t// old one.\r\n\t\t\t\t\t\t\t\t// If old <= new ...\r\n\t\t\t\t\t\t\t\tif (openSet.get(openIndex).f <= cell.f) {\r\n\t\t\t\t\t\t\t\t\t// ... then eject the new node with state\r\n\t\t\t\t\t\t\t\t\t// Sj.\r\n\t\t\t\t\t\t\t\t\t// (ie do nothing for this node).\r\n\t\t\t\t\t\t\t\t\t// Else, ...\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// ... remove the element (Sj, old) from the\r\n\t\t\t\t\t\t\t\t\t// list\r\n\t\t\t\t\t\t\t\t\t// to which it belongs ...\r\n\t\t\t\t\t\t\t\t\topenSet.remove(openIndex);\r\n\t\t\t\t\t\t\t\t\t// ... and add the item (Sj, new) to the\r\n\t\t\t\t\t\t\t\t\t// OPEN SET.\r\n\t\t\t\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t// ... if already belongs to the CLOSED SET,\r\n\t\t\t\t\t\t\t\t// then ...\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t// ... compare the new value assessment with the\r\n\t\t\t\t\t\t\t\t// old one.\r\n\t\t\t\t\t\t\t\t// If old <= new ...\r\n\t\t\t\t\t\t\t\tif (closedSet.get(closedIndex).f <= cell.f) {\r\n\t\t\t\t\t\t\t\t\t// ... then eject the new node with state\r\n\t\t\t\t\t\t\t\t\t// Sj.\r\n\t\t\t\t\t\t\t\t\t// (ie do nothing for this node).\r\n\t\t\t\t\t\t\t\t\t// Else, ...\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// ... remove the element (Sj, old) from the\r\n\t\t\t\t\t\t\t\t\t// list\r\n\t\t\t\t\t\t\t\t\t// to which it belongs ...\r\n\t\t\t\t\t\t\t\t\tclosedSet.remove(closedIndex);\r\n\t\t\t\t\t\t\t\t\t// ... and add the item (Sj, new) to the\r\n\t\t\t\t\t\t\t\t\t// OPEN SET.\r\n\t\t\t\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"@Test\n\tpublic void testDiagonalNeighbors() {\n\t\tPosition topLeft = new Position(0,0);\n\t\tPosition bottomRight = new Position(1,1);\n\n\t\tint distance = euclideanSquaredMetric.calculateCost(topLeft, bottomRight);\n\t\tassertEquals(2 * lateralDistanceWeight, distance);\n\n\t\tPosition topRight = new Position(0,1);\n\t\tPosition bottomLeft = new Position(1,0);\n\n\t\tdistance = euclideanSquaredMetric.calculateCost(topRight, bottomLeft);\n\t\tassertEquals(2*lateralDistanceWeight, distance);\n\n\t}",
"double distanceSq (double px, double py);",
"public void addNode()\r\n\t{\r\n\t\tArrayList<PolygonD> objectsInScene = new ArrayList<PolygonD>();\r\n\t\tobjectsInScene.addAll(objects);\r\n\t\tobjectsInScene.add(currentShape);\r\n\t\t\r\n\t\tPointD mousePoint = new PointD(lastPointOnScreen); \r\n\t\tmousePoint.setX(mousePoint.getX() - worldCenter.getX());\r\n\t\tmousePoint.setY(mousePoint.getY() - worldCenter.getY());\r\n\t\t\r\n\t\tPolygonD nearestObject = null;\r\n\t\tDouble minDistance = 100.;//threshold for adding points\r\n\t\tint pointIndex = 0;\r\n\t\tfor(PolygonD obj : objectsInScene)\r\n\t\t\tif(obj.getVerts().size()>0){\r\n\t\t\t\tPointD p = obj.getVert(0);\r\n\t\t\t\tfor(int i = 1; i < obj.getVerts().size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"i = \"+i);\r\n\t\t\t\t\tDouble d = distanceToLine(new Vector(p, obj.getVert(i)), mousePoint);\r\n\t\t\t\t\tSystem.out.println(\"d = \"+d);\r\n\t\t\t\t\tif(d != null && d < minDistance)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(d + \"<\"+ minDistance);\r\n\t\t\t\t\t\tnearestObject = obj;\r\n\t\t\t\t\t\tminDistance = d;\r\n\t\t\t\t\t\tpointIndex = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tSystem.out.println(d + \">=\"+ minDistance);\r\n\t\t\t\t\tp = obj.getVert(i);\r\n\t\t\t\t}\r\n\t\t\t\t//handle last side\r\n\t\t\t\tDouble d = distanceToLine(new Vector(obj.getVert(0), obj.getVert(obj.getVerts().size()-1)), mousePoint);\r\n\t\t\t\tif(d != null && d < minDistance)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(d + \"<\"+ minDistance);\r\n\t\t\t\t\tnearestObject = obj;\r\n\t\t\t\t\tminDistance = d;\r\n\t\t\t\t\tpointIndex = obj.getVerts().size();\r\n\t\t\t\t\tSystem.out.println(\"i = \"+pointIndex);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(d + \">=\"+ minDistance);\r\n\t\t\t}\r\n\t\tSystem.out.println(\"minDistance \"+minDistance +\" pointIndex = \"+pointIndex);\r\n\r\n\t\tif(nearestObject != null)\r\n\t\t{\r\n\t\t\tnearestObject.getVerts().add(pointIndex, mousePoint);\r\n\t\t\tSystem.out.println(nearestObject);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcurrentShape.add(mousePoint);\r\n\t\t}\r\n\t}",
"private void diagonal(Node node, int d){\n double cost;\n if(d == 2) { //Chebyshev distance\n cost = 1;\n }\n else { //Octile distance\n cost = Math.sqrt(2);\n }\n int row1 = this.row;\n int col1 = this.col;\n int row2 = node.getRow();\n int col2 = node.getCol();\n\n int x = Math.abs(row1-row2);\n int y = Math.abs(col1-col2);\n\n this.hVal = (float)((x+y) + ((cost - 2) * (Math.min(x,y))));\n }",
"private int decreaseDistanceBetweenChildren(NodeAlignment newAlignment,\n\t\t\tList<DrawMindMap> children) {\n\t\tif (children.size() == 1) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tif (newAlignment.isVertical()) {\n\t\t\tif (children.size() == 2) {\n\t\t\t\tdouble toMove = -view.getInvXscale() * HORIZONTAL_DISTANCE_3;\n\t\t\t\tMoveGeos.moveObjects(Collections.singletonList(children.get(1).node),\n\t\t\t\t\t\tnew Coords(toMove, 0, 0), null, null, view);\n\t\t\t\treturn HORIZONTAL_DISTANCE_3;\n\t\t\t}\n\t\t} else {\n\t\t\tif (children.size() == 2) {\n\t\t\t\tdouble toMove = view.getInvYscale() * VERTICAL_DISTANCE_3;\n\t\t\t\tMoveGeos.moveObjects(Collections.singletonList(children.get(1).node),\n\t\t\t\t\t\tnew Coords(0, toMove, 0), null, null, view);\n\t\t\t\treturn VERTICAL_DISTANCE_3;\n\t\t\t} else if (children.size() == 3) {\n\t\t\t\tdouble toMove1 = view.getInvYscale() * VERTICAL_DISTANCE_4;\n\t\t\t\tdouble toMove2 = view.getInvYscale() * 2 * VERTICAL_DISTANCE_4;\n\n\t\t\t\tMoveGeos.moveObjects(Collections.singletonList(children.get(1).node),\n\t\t\t\t\t\tnew Coords(0, toMove1, 0), null, null, view);\n\t\t\t\tMoveGeos.moveObjects(Collections.singletonList(children.get(2).node),\n\t\t\t\t\t\tnew Coords(0, toMove2, 0), null, null, view);\n\t\t\t\treturn 2 * VERTICAL_DISTANCE_4;\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}",
"private double getDistance(Vector2i tile, Vector2i goal) {\n\t\t double dx = tile.getX() - goal.getX();\n\t\t double dy = tile.getY() - goal.getY();\n\t\t return Math.sqrt(dx * dx + dy *dy); //distance \n\t }",
"public int[] calcTargetCoords(char direction, int row, int col)\n {\n int tRow = row, tCol = col; // target row and column\n if (direction == 'N') {\n tRow--;\n }\n else if (direction == 'E') {\n tCol++;\n }\n else if (direction == 'S') {\n tRow++;\n }\n else if (direction == 'W') {\n tCol--;\n }\n return new int[] { tRow, tCol };\n }",
"public int getDistanceTo(int node) {\n return this.distance[node];\n }",
"private void setOriginNode() {\n double sumX = 0;\n double sumY = 0;\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point p = it.next();\n sumX += x(p);\n sumY += y(p);\n }\n _nodeOrigin[0] = sumX / _elements.size();\n _nodeOrigin[1] = sumY / _elements.size();\n }",
"public closest(){\n\t\tthis.pnt = null;\n\t}",
"protected float getDistance(float distance) {\r\n\t\treturn distance * parent.pixelsPerUnit;\r\n\t}",
"private double calcSide(int x1,int y1, int x2, int y2){\n \n double distance1 = Math.sqrt(Math.pow(x2 - x1,2) + Math.pow(y2-y1,2));\n \n return distance1;\n \n \n \n }",
"private static int calculateManhattanDistance(Node actualNode, Node targetNode) \n\t{\n\t\tint distance = 1;\n\t\t\n\t\tint dx = Math.abs(actualNode.getRow() - targetNode.getRow());\n\t\tint dy = Math.abs(actualNode.getColumn() - targetNode.getColumn());\n\t\t\n\t\treturn distance * (dx+dy);\n\t}",
"int cellDistance(int cell) {\n int d = GUTTER_SIZE;\n d += cell * (CELL_SIZE + GUTTER_SIZE);\n return d;\n }",
"double getXPosition();",
"double getDistance();",
"int distance(int parent[], int level[], int x, int y) {\n int lca = LCA(level, parent, x, y);\n return level[x] + level[y] - 2 * level[lca];\n }",
"public int getX(){ return xPosition; }",
"void calculate_distance()\n {\n \t\n \tfor(int i = 0; i<V ; i++)\n \t{\n \t\tfor(int j = 0; j<E ; j++)\n \t\t{\n \t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n \t\t}\n \t\tsp[i] = dist[i];\n \t\tx[i] = dist[i];\n \t}\n \tSystem.out.println();\n }",
"public int getManhattenDist(MapCell goal){\n\t\tint rowDist = Math.abs(position[0] - goal.getMapPosition()[0]);\n\t\tint colDist = Math.abs(position[1] - goal.getMapPosition()[1]);\t\t\n\t\treturn (rowDist+colDist);\n\t}",
"public double getTargetHorizontalOffset() {\n return getDouble(\"tx\");\n }",
"public abstract int getNodeColumnCount();",
"private double distanceToGo(StarNode node, StarNode goal) {\n double xDist = goal.getXCoord() - node.getXCoord();\n double yDist = goal.getYCoord() - node.getYCoord();\n double distToGo = Math.sqrt(xDist*xDist + yDist*yDist);\n /*************************************************************\n * This is where the new elevator stuff was added\n **************************************************************/\n// if(node.getNodeType().equals(\"STAI\")) {\n// distToGo = 4 * distToGo;// * Math.abs(Integer.parseInt(node.getFloor()) - Integer.parseInt(goal.getFloor()));\n// }\n// else if(node.getNodeType().equals(\"ELEV\")) {\n// distToGo = 0 * distToGo;// * Math.abs(Integer.parseInt(node.getFloor()) - Integer.parseInt(goal.getFloor()));\n// }\n return distToGo;\n }",
"public int getTargetPos() {\n return targetPos_;\n }",
"public int distance(Coord coord1, Coord coord2);",
"private void manhattan(Node node){\n int row1 = this.row;\n int col1 = this.col;\n int row2 = node.getRow();\n int col2 = node.getCol();\n\n int x = Math.abs(row1-row2);\n int y = Math.abs(col1-col2);\n\n this.hVal = x+y;\n }",
"@Override\n public void handle(MouseEvent event) {\n double doubleX = event.getSceneX()/cellSize;\n double doubleY = event.getSceneY()/cellSize;\n positionX = (int) doubleX;\n positionY = (int) doubleY;\n }",
"@SuppressWarnings(\"unchecked\")\r\n public void mouseReleased(MouseEvent e) {\r\n Graph<NodeData,EdgeData>.Node nearbyNode = findNearbyNode(e.getX(),e.getY());\r\n boolean work = false;\r\n switch (mode) {\r\n case ADD_EDGES:\r\n if (nodeUnderMouse != null && nearbyNode != null && nearbyNode != nodeUnderMouse) {\r\n // the user don't have to enter the distance now, the program will calculate the pixel distance\r\n canvas.graph.addEdge((new EdgeData(-1.0)),nodeUnderMouse,nearbyNode);\r\n canvas.repaint();\r\n work = true;\r\n }\r\n if (!work) {\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n break;\r\n case RMV_EDGES:\r\n if (nodeUnderMouse != null) {\r\n Graph.Edge edge = nodeUnderMouse.edgeTo(nearbyNode);\r\n if (edge != null) {\r\n canvas.graph.removeEdge(edge);\r\n canvas.repaint();\r\n work = true;\r\n }\r\n }\r\n if (!work) {\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n break;\r\n case S_PATH:\r\n if (nodeUnderMouse != null && nearbyNode != null && nodeUnderMouse != nearbyNode) {\r\n LinkedList<Graph<NodeData, EdgeData>.Edge> path = canvas.graph.distances(nodeUnderMouse, nearbyNode);\r\n (new TraversalThread(path)).execute();\r\n if (path != null && !path.isEmpty()) {\r\n instr.setText(\" The shortest distance between \"\r\n + nodeUnderMouse.getData().getText() + \" and \" + nearbyNode.getData().getText()\r\n + \" is \" + canvas.graph.distances(nodeUnderMouse).get(nearbyNode) + \".\");\r\n }\r\n work = true;\r\n }\r\n if (!work) {\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n break;\r\n case CHG_DIST:\r\n if (nodeUnderMouse != null && nearbyNode !=null){\r\n Graph<NodeData,EdgeData>.Edge edge = nodeUnderMouse.edgeTo(nearbyNode);\r\n if (edge != null) {\r\n while (!work) {\r\n try {\r\n JFrame frame = new JFrame(\"Enter a distance\");\r\n String distance = JOptionPane.showInputDialog(frame, \"Please enter the distance represented by this edge.\");\r\n edge.getData().setDistance(Double.valueOf(distance));\r\n canvas.repaint();\r\n work = true;\r\n } catch (Exception exception) {\r\n //do nothing\r\n }\r\n }\r\n }\r\n }\r\n if (!work) {\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n }\r\n }",
"public float distanceToSprite(Sprite target) { \n return distanceToXY((int)target.pos.x, (int)target.pos.y);\n }",
"@Override\n public double getDestinationX() {\n return myMovable.getDestinationX();\n }",
"private int getIdx(MouseEvent e) {\n Point p = e.getPoint();\n p.translate(-BORDER_SIZE, -BORDER_SIZE);\n int x = p.x / CELL_SIZE;\n int y = p.y / CELL_SIZE;\n if (0 <= x && x < GUI.SIZE[1] && 0 <= y && y < GUI.SIZE[1]) {\n return GUI.SIZE[1] * x + y;\n } else {\n return -1;\n }\n }",
"private void calculateGlobals() {\n if (!edge.getIncomingLinks().isEmpty()) {\n this.source = edge.getIncomingLinks().get(0);\n } else\n throw new RuntimeException(\"edge hs no source : \" + edge.getId());\n if (!edge.getOutgoingLinks().isEmpty()) {\n this.target = edge.getOutgoingLinks().get(0);\n } else\n throw new RuntimeException(\"edge hs no target : \" + edge.getId());\n\n this.sourceGeometry = source.getGeometry();\n this.targetGeometry = target.getGeometry();\n\n // get relative centers of elements\n this.sourceRelativCenterX = this.sourceGeometry.getWidth() / 2;\n this.sourceRelativCenterY = this.sourceGeometry.getHeight() / 2;\n this.targetRelativCenterX = this.targetGeometry.getWidth() / 2;\n this.targetRelativCenterY = this.targetGeometry.getHeight() / 2;\n\n // get parent adjustments\n double sourceParentAdjustmentX = 0;\n double sourceParentAdjustmentY = 0;\n LayoutingElement parent = this.source.getParent();\n while (parent != null) {\n sourceParentAdjustmentX += parent.getGeometry().getX();\n sourceParentAdjustmentY += parent.getGeometry().getY();\n parent = parent.getParent();\n }\n\n double targetParentAdjustmentX = 0;\n double targetParentAdjustmentY = 0;\n parent = this.target.getParent();\n while (parent != null) {\n targetParentAdjustmentX += parent.getGeometry().getX();\n targetParentAdjustmentY += parent.getGeometry().getY();\n parent = parent.getParent();\n }\n\n // get absolute coordinates\n double sourceAbsoluteX = this.sourceGeometry.getX() + sourceParentAdjustmentX;\n this.sourceAbsoluteY = this.sourceGeometry.getY() + sourceParentAdjustmentY;\n this.sourceAbsoluteX2 = this.sourceGeometry.getX2() + sourceParentAdjustmentX;\n this.sourceAbsoluteY2 = this.sourceGeometry.getY2() + sourceParentAdjustmentY;\n\n this.targetAbsoluteX = this.targetGeometry.getX() + targetParentAdjustmentX;\n this.targetAbsoluteY = this.targetGeometry.getY() + targetParentAdjustmentY;\n this.targetAbsoluteY2 = this.targetGeometry.getY2() + targetParentAdjustmentY;\n\n this.sourceAbsoluteCenterX = sourceAbsoluteX + this.sourceRelativCenterX;\n this.sourceAbsoluteCenterY = this.sourceAbsoluteY + this.sourceRelativCenterY;\n this.targetAbsoluteCenterX = this.targetAbsoluteX + this.targetRelativCenterX;\n this.targetAbsoluteCenterY = this.targetAbsoluteY + this.targetRelativCenterY;\n\n // layout hints\n this.sourceJoin = this.source.isJoin();\n this.sourceSplit = this.source.isSplit();\n this.targetJoin = this.target.isJoin();\n this.target.isSplit();\n this.backwards = this.sourceAbsoluteCenterX > this.targetAbsoluteCenterX;\n }",
"public float getViewDistance() { return viewDistance; }",
"@Override\n public void lastMove( PlayerMove playerMove ) {\n int row = playerMove.getCoordinate().getRow();\n int col = playerMove.getCoordinate().getCol();\n int team = playerMove.getPlayerId();\n if(row%2 == 0 && col%2 == 0){\n if(team == 1){\n Dot n1 = board.getNode(new Coordinate(row+1,col));\n Dot n2 = board.getNode(new Coordinate(row -1,col));\n n1.addNeighbor(n2);\n n2.addNeighbor(n1);\n }\n else {\n Dot n1 = board.getNode(new Coordinate(row, col + 1));\n Dot n2 = board.getNode(new Coordinate(row, col - 1));\n n1.addNeighbor(n2);\n n2.addNeighbor(n1);\n }\n }\n else{\n if(team == 1){\n Dot n1 = board.getNode(new Coordinate(row,col+1));\n Dot n2 = board.getNode(new Coordinate(row ,col-1));\n n1.addNeighbor(n2);\n n2.addNeighbor(n1);\n }\n else {\n Dot n1 = board.getNode(new Coordinate(row+1, col));\n Dot n2 = board.getNode(new Coordinate(row-1, col));\n n1.addNeighbor(n2);\n n2.addNeighbor(n1);\n }\n }\n\n }",
"private void euclidean(Node node, int d){\n int row1 = this.row;\n int col1 = this.col;\n int row2 = node.getRow();\n int col2 = node.getCol();\n\n double aSquared = Math.pow((row1-row2), 2);\n double bSquared = Math.pow((col1-col2), 2);\n\n if(d == 0) //Euclidean normal\n this.hVal = (float)Math.sqrt(aSquared+bSquared);\n else //Euclidean squared\n this.hVal = (float)(aSquared+bSquared);\n\n }",
"public double[] getTargetDistanceFromCenter()\n\t{\n\t\t// watch for no valid target, in which case give no displacement\n\t\tdouble[] distance = new double[2];\n\t\tif (currentBestTarget != null)\n\t\t{\n\t\t\t// x increases to right, but y increased downwards, so invert y\n\t\t\tdistance[0] = (currentBestTarget.centerX - IMAGE_WIDTH/2.0 ) / (IMAGE_WIDTH/2);\n\t\t\tdistance[1] = -(currentBestTarget.centerY - IMAGE_HEIGHT/2.0) / (IMAGE_HEIGHT/2);\n\t\t}\n\t\treturn distance;\n\t}",
"public double getTargetVerticalOffset() {\n return getDouble(\"ty\");\n }",
"public double getDistance(){\r\n\t\treturn Math.sqrt(\r\n\t\t\t\t(\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterX()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterX()\r\n\t\t\t\t\t, 2 )\r\n\t )\r\n\t\t\t\t+ (\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterY()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterY()\r\n\t\t\t\t\t, 2 )\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}",
"private static double calculateDistance(double dx, double dy) {\n return Math.sqrt((dx * dx) + (dy * dy));\n }",
"public int getXPos();",
"static double distanceToOrigin ( Posn p ) {\n\t// return ... p.x ... p.y ... ;\n\treturn Math.sqrt(Math.pow(p.x,2) + Math.pow(p.y,2)) ;\n }",
"public double getDistanceTo(CoordPair dest)\r\n\t{\n\t\tif(isAdjacent(dest))\r\n\t\t\treturn 1;\r\n\t\tint rowDiff = this.row - dest.getRow();\r\n\t\tint colDiff = this.col - dest.getCol();\r\n\t\tint sumSquares = (int) (Math.pow(rowDiff,2) + Math.pow(colDiff, 2));\r\n\t\tdouble distance = Math.sqrt(sumSquares);\r\n\t\t\r\n\t\treturn distance;\r\n\t}",
"public float getDistance();",
"public double distance(double x, double y);",
"@Override\n public float distanceAdjacent(int x1, int y1, int x2, int y2) {\n float duration = 0;\n\n if (x1 == x2 || y1 == y2) {\n MapTile.Instance fromTile = getTileData(x1, y1);\n MapTile.Instance toTile = getTileData(x2, y2);\n assert fromTile != null && toTile != null;\n\n Direction move = Direction.get(x2 - x1, y2 - y1);\n\n int fromHeight = fromTile.heightOf(move);\n int toHeight = toTile.heightOf(move.inverse());\n\n // steepness\n float t1inc = (fromHeight - fromTile.getHeight()) / (TILE_SIZE / 2);\n float t2inc = (toHeight - toTile.getHeight()) / (TILE_SIZE / 2);\n\n // actual duration of walking\n float walkSpeedT1 = (1f / hypoLength(t1inc)) * walkSpeed;\n float walkSpeedT2 = (1f / hypoLength(t2inc)) * walkSpeed;\n\n // duration += walkspeed(steepness_1) * dist + walkspeed(steepness_2) * dist\n duration += (walkSpeedT1 + walkSpeedT2) * TILE_SIZE;\n\n // height difference on the sides of the tiles\n float cliffHeight = (toHeight - fromHeight) * TILE_SIZE_Z;\n\n // climbing if more than 'an acceptable height'\n if (cliffHeight > 0) {\n duration += (cliffHeight / climbSpeed);\n }\n\n } else {\n // TODO allow diagonal tracing\n Logger.WARN.print(String.format(\n \"Pathfinding (%s) asked for non-adjacent tiles (%d, %d) (%d, %d)\",\n getClass(), x1, y1, x2, y2\n ));\n\n return Float.POSITIVE_INFINITY;\n }\n\n return duration;\n }",
"private Node getDistanceView() {\n\n\n Node base = new Node();\n\n base.setRenderable(distanceLayoutRenderable);\n\n Context c = this;\n // Add listeners etc here\n View eView = distanceLayoutRenderable.getView();\n eView.setOnTouchListener((v, event) -> {\n Toast.makeText(\n c, \"這應該是你想去的地方吧\", Toast.LENGTH_LONG)\n .show();\n return false;\n });\n\n return base;\n }",
"public void update() {\r\n\t\ttable.putNumber(TARGET_X_KEY, targetX);\r\n\t\ttable.putNumber(TARGET_Y_KEY, targetY);\r\n\t\ttable.putNumber(DISTANCE, distance);\r\n\t\ttable.putBoolean(IS_FOUND, targetFound);\r\n\r\n\t}",
"public PuzzleState drag(int startRow, int startColumn, int endRow, int endColumn);",
"public static double getDistance(Node a, Node b) {\n return Math.abs(a.getX() - b.getX()) + Math.abs(a.getY() - b.getY());\n }",
"public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.CHG_DIST;\r\n instr.setText(\"Drag from one node to another to change the distance on the edge.\");\r\n }",
"public abstract double distanceTo (Object object);",
"private Position positionFinder(int src, int dest) {\n int rowIndex = -1;\n for (int i = 0; i < rowList.size(); i++) {\n Node rowNode = rowList.get(i);\n if (rowNode.edge.getSource() == src) {\n rowIndex = i;\n break;\n }\n }\n\n int colIndex = -1;\n for (int i = 0; i < colList.size(); i++) {\n Node colNode = colList.get(i);\n if (colNode.edge.getSource() == dest) {\n colIndex = i;\n break;\n }\n }\n\n return new Position(rowIndex, colIndex);\n }",
"public void setDistance(float dist);",
"Node(int row,int column, boolean item)\n {\n this.row=row;\n this.column=column;\n hasitem=item;\n distance=999999; //ez most azt szimbolizalja, hogy a dijkstra algotirmus vegtelen tavolsagot hasznal.\n }",
"protected abstract Vector4d doSourceDrag(Node source,\n Vector3d pos, Vector4d copy);",
"private double distance(Position pos1, Position pos2)\r\n {\r\n assert pos1 != null;\r\n assert pos2 != null;\r\n\r\n int x = Math.abs(pos1.column() - pos2.column());\r\n int y = Math.abs(pos1.line() - pos2.line());\r\n\r\n return Math.sqrt(x * x + y * y);\r\n }",
"public int calculateH(Node destination){\n\t\tint tempH;\n\t\tint xDistance = Math.abs(x-destination.getX());\n\t\tint yDistance = Math.abs(y-destination.getY());\n\t\tif(xDistance>yDistance){\n\t\t\ttempH=14*yDistance + 10*(xDistance-yDistance);\n\t\t}\n\t\telse\n\t\t\ttempH=14*xDistance + 10*(yDistance - xDistance);\n\t\treturn tempH;\n\t}",
"private int getDist(int x, int y, int direction) {\n\t\tint Spaces = 0;\n\t\tif(direction == 0)\n\t\t{\n\t\t\t\n\t\t\tPoint nextPoint = new Point(x, y++);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x, y++);\n\t\t\t}\n\t\t}\n\t\tif(direction == 1)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x++, y);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x++, y);\n\t\t\t}\n\t\t}\n\t\tif(direction == 2)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x--, y);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x--, y);\n\t\t\t}\n\t\t}\n\t\tif(direction == 3)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x, y--);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x, y--);\n\t\t\t}\n\t\t}\n\t\treturn Spaces;\n\t}",
"Tile getPosition();",
"public void move(int distance);",
"public int distance ( Animal animal, int direction ) {\n\n\t\tif ( direction == Direction.NONE ) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tint drow = rowChange(direction), dcol = colChange(direction);\n\n\t\tint distance = 1;\n\t\ttry {\n\n\t\t\tfor ( int row = animal.getRow() + drow, col = animal.getColumn() + dcol ; at(\n\t\t\t row,\n\t\t\t col) == null ; row +=\n\t\t\t drow, col += dcol, distance++ ) {}\n\n\t\t} catch ( ArrayIndexOutOfBoundsException e ) {}\n\n\t\treturn distance;\n\t}",
"public int CalcDistance ( )\r\n\t{\r\n\t\tfor ( int i = 0; i<size; i++ )\r\n\t\t{\r\n\t\t\tfor ( int offR = 0; offR <= size/2; offR++ )\r\n\t\t\t{\r\n\t\t\t\tfor ( int c = 0; c <= size/2; c++ )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == 0 && maze [offR] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenUp() && maze [offR-1] [c].isOpenDown() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR-1] [c].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( c == 0 && maze [offR] [c].isOpenLeft() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenLeft() && maze [offR] [c-1].isOpenRight() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR] [c-1].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor ( int c = size-1; c >= size/2; c-- )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == 0 && maze [offR] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenUp() && maze [offR-1] [c].isOpenDown() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR-1] [c].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( c == size-1 && maze [offR] [c].isOpenRight() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenRight() && maze [offR] [c+1].isOpenLeft() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR] [c+1].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor ( int offR = size-1; offR >= size/2; offR-- )\r\n\t\t\t{\r\n\t\t\t\tfor ( int c = 0; c <= size/2; c++ )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == size-1 && maze [offR] [c].isOpenDown() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenDown() && maze [offR+1] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR+1] [c].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( c == 0 && maze [offR] [c].isOpenLeft() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenLeft() && maze [offR] [c-1].isOpenRight() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR] [c-1].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor ( int c = size-1; c >= size/2; c-- )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == size-1 && maze [offR] [c].isOpenDown() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenDown() && maze [offR+1] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR+1] [c].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( c == size-1 && maze [offR] [c].isOpenRight() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenRight() && maze [offR] [c+1].isOpenLeft() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR] [c+1].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn maze [currentRow] [currentCol].getDistanceToExit();\r\n\t}",
"private void mouseUpInMove()\n/* */ {\n/* 134 */ if (this.downNode < 0) { return;\n/* */ }\n/* 136 */ this.bn.setPos(this.downNode, 0, 0);\n/* 137 */ int i = this.bn.isClose(this.upPoint, 6);\n/* 138 */ if ((i != -2) || (this.upPoint.x < 0) || (this.upPoint.x > getSize().width) || (this.upPoint.y < 0) || (this.upPoint.y > getSize().height))\n/* */ {\n/* */ \n/* 141 */ this.bn.setPos(this.downNode, this.oldPos);\n/* 142 */ HelpPanel.showError(\"Too close to another node or out of border!\");\n/* */ } else {\n/* 144 */ this.bn.setPos(this.downNode, this.upPoint);\n/* */ }\n/* */ }",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"double getDistance(int i, int j){\r\n\tdouble d = (coord[i][0]-coord[j][0])*(coord[i][0]-coord[j][0])+ (coord[i][1]-coord[j][1])*(coord[i][1]-coord[j][1]);\r\n\td = Math.sqrt(d);\r\n\treturn d;\r\n}",
"public Coordinate getMoveTo();",
"public abstract Node getBoundingNode();",
"void onDrag(float elasticOffset,\n float elasticOffsetPixels,\n float rawOffset,\n float rawOffsetPixels);",
"@Override\n\tpublic int dx() {\n\t\treturn dx;\n\t}",
"private double getDistance(Vector2i tile, Vector2i goal) {\r\n\t\tdouble dx = tile.getX() - goal.getX();\r\n\t\tdouble dy = tile.getY() - goal.getY();\r\n\t\treturn Math.sqrt((dx * dx) + (dy * dy));\r\n\t}",
"void moveTo(int dx, int dy);",
"public int distTo(Site s) {\n\t\treturn distTo[s.getX()][s.getY()];\n\t}",
"public double getX() { return _width<0? _x + _width : _x; }",
"private void findNeighbour(int offset) {\n TreeNodeImpl node = (TreeNodeImpl) projectTree.getLastSelectedPathComponent();\n TreePath parentPath = projectTree.getSelectionPath().getParentPath();\n NodeList list = (NodeList) node.getParent().children();\n\n for (int i = 0; i < list.size(); ++i) {\n if (list.get(i).equals(node)) {\n if (offset > 0 && i < list.size() - offset) {\n projectTree.setSelectionPath(parentPath.pathByAddingChild(list.get(i + offset)));\n break;\n }\n if (offset < 0 && i >= offset) {\n projectTree.setSelectionPath(parentPath.pathByAddingChild(list.get(i + offset)));\n break;\n }\n }\n }\n }",
"public double getNodeStrokeDestinationWidth() {\n return (_nodeStrokeDestinationWidth);\n }",
"void method0() {\nprivate double edgeCrossesIndicator = 0;\n/** counter for additions to the edgeCrossesIndicator\n\t\t */\nprivate int additions = 0;\n/** the vertical level where the cell wrapper is inserted\n\t\t */\nint level = 0;\n/** current position in the grid\n\t\t */\nint gridPosition = 0;\n/** priority for movements to the barycenter\n\t\t */\nint priority = 0;\n/** reference to the wrapped cell\n\t\t */\nVertexView vertexView = null;\n}"
] | [
"0.6382581",
"0.6223076",
"0.60273325",
"0.59949845",
"0.59484684",
"0.5844483",
"0.5808408",
"0.5803716",
"0.577974",
"0.5727671",
"0.57017154",
"0.5678945",
"0.5651701",
"0.5624039",
"0.5619689",
"0.55691594",
"0.5560124",
"0.5550355",
"0.5548812",
"0.55461437",
"0.55293196",
"0.5519882",
"0.5519381",
"0.5515083",
"0.5512526",
"0.5512144",
"0.5511805",
"0.55110884",
"0.5509165",
"0.54721713",
"0.5470744",
"0.5456118",
"0.54551804",
"0.5453451",
"0.5448462",
"0.5441123",
"0.5422484",
"0.54166025",
"0.5415502",
"0.541481",
"0.5412267",
"0.5403677",
"0.5401998",
"0.5400634",
"0.5381755",
"0.5377863",
"0.5372384",
"0.5368518",
"0.5364145",
"0.53634787",
"0.53615505",
"0.5355396",
"0.5353486",
"0.535331",
"0.5353152",
"0.5342157",
"0.53357124",
"0.53334224",
"0.53325313",
"0.53320026",
"0.53306985",
"0.53245836",
"0.53138787",
"0.5302096",
"0.52968824",
"0.529286",
"0.52926916",
"0.52885145",
"0.5286658",
"0.52843285",
"0.52787775",
"0.5278233",
"0.52776766",
"0.5270146",
"0.5269459",
"0.5254211",
"0.52522933",
"0.5244932",
"0.52445775",
"0.52430487",
"0.5238695",
"0.5235297",
"0.52346176",
"0.52327514",
"0.5230979",
"0.52261233",
"0.5224728",
"0.52199316",
"0.52157515",
"0.5213738",
"0.5212356",
"0.520793",
"0.5206945",
"0.51962453",
"0.51935387",
"0.5192797",
"0.5191486",
"0.51832825",
"0.51831925",
"0.51829237"
] | 0.6802204 | 0 |
This method sends simple mail via HTTP. Note: This method uses MailGun(Jersey) | public static ClientResponse sendSimpleMail(String from, String[] to, String subject, String body) throws Exception{
if(from == null || from == ""){
throw new Exception("Please set email sender properly.");
}
if(to == null || to.length == 0){
throw new Exception("Please set email recipients properly.");
}
Client client = Client.create();
client.addFilter(new HTTPBasicAuthFilter("api",
"key-1xigy8-dpzbuy6euywdr2se-6yiu88d3"));
WebResource webResource =
client.resource("https://api.mailgun.net/v2/tchat.mailgun.org/messages");
MultivaluedMapImpl formData = new MultivaluedMapImpl();
// Set email sender
formData.add("from", from);
// Set email recipients.
for(int i = 0; i < to.length; i ++){
formData.add("to", to[i]);
}
// Set email subject
formData.add("subject", subject);
// Set email body
formData.add("text", body);
return webResource.type(MediaType.APPLICATION_FORM_URLENCODED).post(ClientResponse.class, formData);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void send() {\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String password = \"Oneplanner2017*\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\ttry {\n\t\t\tSession session = Session.getInstance(props,\n\t\t\t\t\t new javax.mail.Authenticator() {\n\t\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t\t}\n\t\t\t\t\t });\n\n\t\t\t\t\tMessage message = new MimeMessage(session);\n\t\t\t\t\tmessage.setFrom(new InternetAddress(\"[email protected]\"));\n\t\t\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\t\tInternetAddress.parse(\"[email protected]\"));\n\t\t\tmessage.setSubject(\"test\");\n\t\t\tmessage.setText(\"test\");\n\t\t\t\n\t\t\tTransport.send(message);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n }",
"@RequestMapping(\"/mail\")\n\tpublic String mail() throws MessagingException {\n\t\tmailsender.send(\"[email protected]\", \"A test mail\", \"body of the test mail\");\n\t\t\n\t\treturn \"mail sent by Nawaki to the localhost...........\";//result\n\t}",
"private void sendEmail() {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n\n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"This is the Subject Line!\");\n\n // Now set the actual message\n message.setText(\"This is actual message\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"@ResponseBody\n @RequestMapping(\"/sendSimpleEmail\")\n public String sendSimpleEmail() {\n SimpleMailMessage message = new SimpleMailMessage();\n\n message.setTo(MyConstants.FRIEND_EMAIL);\n message.setSubject(\"Test Simple Email\");\n message.setText(\"Hello, Im testing Simple Email\");\n\n // Send Message!\n this.emailSender.send(message);\n\n return \"Email Sent!\";\n }",
"public void sendWithDefaultMessage() {\r\n String _from = \"A78B347F656\";\r\n String _password = \"55EE29A8C\";\r\n //Get properties object\r\n Properties props = new Properties();\r\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.put(\"mail.smtp.socketFactory.class\",\r\n \"javax.net.ssl.SSLSocketFactory\");\r\n props.put(\"mail.smtp.auth\", \"true\");\r\n props.put(\"mail.smtp.port\", \"465\");\r\n //get Session \r\n Session session = Session.getInstance(props,\r\n new javax.mail.Authenticator() {\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(_from, _password);\r\n }\r\n });\r\n //compose message \r\n try {\r\n MimeMessage message = new MimeMessage(session);\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(_to));\r\n message.setSubject(\"WELCOME TO TAHDIG\");\r\n message.setContent(\"<body>\"\r\n + \"<h1>TAHDIG</h1>\"\r\n + \"<h3>Dear \" + firstName + \" \" + lastName\r\n + \"</h3><h2>Thank you for Registering on TAHDIG,</h2>\"\r\n + \"<h3>The First Meal Sharing Platform</h3>\"\r\n + \"<em>Your Username: \" + username\r\n + \"</em><br/><em>Your Password: \" + userpass\r\n + \"</em><br/><a href='http://localhost:8080/msabouri-fp/'>Click here to go to the TAHDIG service</a></body>\",\r\n \"text/html; charset=utf8\");\r\n Transport.send(message);\r\n LOG.info(\"The email was sent successfully\");\r\n } catch (MessagingException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }",
"SendEmail() {\t\n\t}",
"@Test\n public void sendMail() throws Exception {\n emailService.setApplicationContext(context);\n doReturn(aweElements).when(context).getBean(any(Class.class));\n given(mailSender.createMimeMessage()).willReturn(mimeMessage);\n given(aweElements.getLanguage()).willReturn(\"ES\");\n given(aweElements.getLocaleWithLanguage(anyString(), anyString())).willReturn(\"LOCALE\");\n ParsedEmail email = new ParsedEmail()\n .setFrom(new InternetAddress(\"[email protected]\"))\n .setTo(singletonList(new InternetAddress(\"[email protected]\")))\n .setReplyTo(singletonList(new InternetAddress(\"[email protected]\")))\n .setCc(singletonList(new InternetAddress(\"[email protected]\")))\n .setCco(singletonList(new InternetAddress(\"[email protected]\")))\n .setSubject(\"Test message\")\n .setBody(\"<div style='background-color:red;'>Test div message</div>\")\n .addAttachment(\"FileName.test\", new File(\"C:\\\\Users\\\\test\\\\Pictures\\\\Saved Pictures\\\\test.jpg\"));\n emailService.sendEmail(email);\n verify(mailSender).send(mimeMessage);\n }",
"public void sendMail(String to) throws URISyntaxException, IOException {\n final String username = \"kicsikacsacodecool\";//change accordingly\n final String password = \"codecool\";//change accordingly\n\n // Assuming you are sending email through relay.jangosmtp.net\n String host = \"relay.jangosmtp.net\";\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n // Get the Session object.\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n // Create a default MimeMessage object.\n Message message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(\"[email protected]\"));\n\n // Set To: header field of the header.\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n\n // Set Subject: header field\n message.setSubject(\"Webshop Registration\");\n\n // Now set the actual message\n message.setText(\"Welcome to the codecool webshop !!\");\n\n // Send message\n try {\n Transport.send(message);\n } catch (Exception e) {\n System.out.println(e);\n }\n\n System.out.println(\"Sent message successfully....\");\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"String sendSimpleMessageV2(String from, String fromMail, String to, String subject, String body);",
"public void sendMailMessage(MailMessage mailMessage) throws MailerException;",
"private static void testMail() throws Exception {\n\t\tUser user=new User();\n\t\tuser.setUsername(\"若水\");\n\t\tuser.setEmail(\"[email protected]\");\n\t\tMail mail=new Mail();\n\t\tboolean b=mail.sendMail(user, \"http://www.baidu.com\", \"http://www.zzuli.edu.cn\", 2);\n\t\tSystem.out.println(b);\n\t}",
"public void SendEmail(){\n //Dummy Email Bot\n String from = \"[email protected]\";\n String emailPW = \"thisiscz2002\";\n\n try{\n Session session = Session.getDefaultInstance(init(), new Authenticator(){\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(from, emailPW);\n }});\n\n // -- Create a new message --\n Message msg = new MimeMessage(session);\n\n // -- Set the FROM and fields --\n msg.setFrom(new InternetAddress(from));\n msg.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(getRecipientEmail(),false));\n\n LocalDateTime myDateObj = LocalDateTime.now();\n DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n String formattedDate = myDateObj.format(myFormatObj);\n\n msg.setSubject(getEmailSubject());\n msg.setText(getMessage());\n msg.setSentDate(new Date());\n Transport.send(msg);\n\n //System.out.println(formattedDate + \" - Message sent.\");\n }catch (MessagingException e){\n System.out.println(\"Error: \" + e);\n }\n }",
"public static boolean sendMail() throws AddressException, MessagingException {\n Session session = Session.getDefaultInstance(properties);\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n // Set the RFC 822 \"From\" header field using the\r\n // value of the InternetAddress.getLocalAddress method.\r\n \r\n\t\tmessage.setFrom(new InternetAddress(from));\r\n\t\t\r\n // Add the given addresses to the specified recipient type.\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\r\n // Set the \"Subject\" header field.\r\n message.setSubject(\"hi..!\");\r\n // Sets the given String as this part's content,\r\n // with a MIME type of \"text/plain\".\r\n message.setText(\"Hi ......\");\r\n // Send message\r\n Transport.send(message);\r\n System.out.println(\"Message Send.....\");\r\n \r\n\t\treturn true;\r\n\t}",
"private static void sendMail(String text) {\n Properties properties = System.getProperties();\n Session session = Session.getDefaultInstance(properties);\n\n //compose the message\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));\n message.setSubject(\"RAZER - AVAILABILITYT\");\n message.setText(text);\n\n // Send message\n Transport t = session.getTransport(\"smtps\");\n t.connect(\"smtp.gmail.com\", from, \"Shutting123\");\n t.sendMessage(message, message.getAllRecipients());\n log.error(\"message sent successfully....\");\n\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"@Override\n\tpublic void sendMail(Mail mail) {\n\t\t\n\t}",
"void send(String email, Locale locale);",
"public void sendEmail(\n ActionRequest actionRequest, ActionResponse actionResponse)\n throws IOException, PortletException {\n }",
"public static void sendMail(String to, String msg) throws RuntimeException, AddressException, MessagingException {\r\n Properties properties = System.getProperties();\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n properties.put(\"mail.smtp.port\", \"587\");\r\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\r\n// properties.setProperty(\"mail.smtp.host\", HOST);\r\n Session session = Session.getDefaultInstance(properties,\r\n new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(FROM, PASSWORD);\r\n }\r\n });\r\n\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n // Set From: header field of the header.\r\n message.setFrom(new InternetAddress(FROM));\r\n // Set To: header field of the header.\r\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to));\r\n // Set Subject: header field\r\n message.setSubject(\"Your confirmation code from Simple Blog register\");\r\n // Send the actual HTML message, as big as you like\r\n message.setContent(\r\n \"<h1>\" + msg + \"</h1><br/>\"\r\n + \"<h5>Please input your confirmation code to the web link:</h5>\"\r\n + \"<a href=\\\"\" + CONFIRM_URL + \"\\\">Click here</a>\",\r\n \"text/html\");\r\n\r\n // Send message \r\n Transport.send(message);\r\n System.out.println(\"message sent successfully....\");\r\n\r\n }",
"public void send(Mail email) {\n\n MailjetClient client = new MailjetClient(PUBLIC_KEY, SECRET_KEY);\n\n MailjetRequest mail =\n new MailjetRequest(Email.resource)\n .property(FROMEMAIL, \"[email protected]\")\n .property(SUBJECT, email.getSubject())\n .property(TEXTPART, email.getContent())\n .property(HTMLPART, email.getContent())\n .property(RECIPIENTS, new JSONArray().put(new JSONObject().put(\"Email\", email.getTo())));\n try {\n client.post(mail);\n } catch (MailjetException | MailjetSocketTimeoutException e) {\n }\n }",
"public static String sendEmail(String fromId,String toId, String subject, String emailBody) {\n\t\tSystem.out.println(\"Test\");\r\n\t\tCloseableHttpClient httpClient=null;\r\n\t\tBase64.Encoder encoder = Base64.getEncoder();\r\n\t\tString attachmentStr = encoder.encodeToString(subject.getBytes()); \r\n\t\ttry{\r\n\t\t\thttpClient = HttpClients.createDefault();\r\n\t\t\tHttpPost httpPost = new HttpPost(\"https://api.sendgrid.com/v3/mail/send\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\thttpPost.setHeader(\"content-type\", \"application/json\");\r\n\t\t\t//httpPost.setHeader(\"accept\", \"application/json\");\r\n\t\t\thttpPost.setHeader(\"YOUR_API_KEY\", \"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\");\r\n\t\t\thttpPost.setHeader(\"Authorization\", \"Bearer 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\");\r\n\t\t\tString jsonStr=\"{\\r\\n\" + \r\n\t\t\t\t\t\" \\\"personalizations\\\": [\\r\\n\" + \r\n\t\t\t\t\t\" {\\r\\n\" + \r\n\t\t\t\t\t\" \\\"to\\\": [\\r\\n\" + \r\n\t\t\t\t\t\" {\\r\\n\" + \r\n\t\t\t\t\t\" \\\"email\\\": \\\"\"+toId+\"\\\"\\r\\n\" + \r\n\t\t\t\t\t\" }\\r\\n\" + \r\n\t\t\t\t\t\" ],\\r\\n\" + \r\n\t\t\t\t\t\" \\\"subject\\\": \\\"\"+subject+\"\\\"\\r\\n\" + \r\n\t\t\t\t\t\" }\\r\\n\" + \r\n\t\t\t\t\t\" ],\\r\\n\" + \r\n\t\t\t\t\t\" \\\"from\\\": {\\r\\n\" + \r\n\t\t\t\t\t\" \\\"email\\\": \\\"\"+fromId+\"\\\"\\r\\n\" + \r\n\t\t\t\t\t\" },\\r\\n\" + \r\n\t\t\t\t\t\" \\\"content\\\": [\\r\\n\" + \r\n\t\t\t\t\t\" {\\r\\n\" + \r\n\t\t\t\t\t\" \\\"type\\\": \\\"text/plain\\\",\\r\\n\" + \r\n\t\t\t\t\t\" \\\"value\\\": \\\"\"+emailBody+\"\\\"\\r\\n\" + \r\n\t\t\t\t\t\" }\\r\\n\" + \r\n\t\t\t\t\t\" ],\\r\\n\" + \r\n\t\t\t\t\t\"\\\"attachments\\\":[ {\\\"content\\\":\\\"\"+attachmentStr+\"\\\", \\\"filename\\\":\\\"attachment.txt\\\", \\\"disposition\\\":\\\"attachment\\\"} ]\"+\r\n\t\t\t\t\t\"}\";\r\n\t\t\tStringEntity jsonString =new StringEntity(jsonStr);\r\n\t\t\thttpPost.setEntity(jsonString);\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t HttpResponse response = httpClient.execute(httpPost);\r\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\r\n\t\t\tString inputLine = null;\r\n\t\t\twhile ((inputLine = br.readLine()) != null) {\r\n\t\t\t\tsb.append(inputLine);\r\n\t\t\t}\r\n\t\t\thttpClient.close();\r\n\t\t\tSystem.out.println(sb.toString());\r\n\t\t\t\r\n\t\t\t//return sb.toString();\r\n\t\t}catch(Exception e){\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn \"1\";\r\n\t}",
"private void sendMail(final String mail, final String name, final String message) {\n /* new Thread(){\n public void run() {\n Properties props = System.getProperties();\n props.put(\"mail.smtps.host\",\"smtp.gmail.com\");\n props.put(\"mail.smtps.auth\",\"true\");\n Session session = Session.getInstance(props, null);\n Message msg = new MimeMessage(session);\n try {\n msg.setFrom(new InternetAddress(\"[email protected]\"));\n msg.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(\"[email protected]\", false));\n msg.setSubject(\"Yoga Mandira :: Feedback \" + System.currentTimeMillis());\n msg.setText(\"MAIL:\"+mail+\"\\nNAME:\"+name+\"\\nMESSAGE:\"+message);\n msg.setHeader(\"X-Mailer\", \"Yoga Mandira\");\n msg.setSentDate(new Date());\n SMTPTransport t =\n (SMTPTransport) session.getTransport(\"smtps\");\n t.connect(\"smtp.gmail.com\", \"[email protected]\", \"#30ija11an\");\n t.sendMessage(msg, msg.getAllRecipients());\n System.out.println(\"Response: \" + t.getLastServerResponse());\n t.close();\n }catch (AddressException e) {\n e.printStackTrace();\n } catch (SendFailedException e) {\n e.printStackTrace();\n } catch (NoSuchProviderException e) {\n e.printStackTrace();\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n }\n }.start();*/\n }",
"private void sendmailuserregister(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, ClassNotFoundException {\n String email = request.getParameter(\"email\");\n\n String to = \"yevhen@yevhen-Lenovo-ideapad-320-15ISK\";\n String from = \"wwwwnewbob@localhost\";\n String host = \"localhost\";\n\n Properties properties = System.getProperties();\n properties.setProperty(\"yevhen-Lenovo-ideapad-320-15ISK\", host);\n\n Session session = Session.getDefaultInstance(properties);\n response.setContentType(\"text/html\");\n PrintWriter out = response.getWriter();\n\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipients(Message.RecipientType.TO, String.valueOf(new InternetAddress(to)));\n message.setSubject(\"This is the Subject Line!\");\n message.setText(\"This is actual message from \" + email);\n\n logger.info(\" user.getEmail() \" + email);\n\n Transport.send(message);\n String title = \"Send Email\";\n String res = \"Sent message successfully....<a href='/bookstore/shop'>Back</a>\";\n String docType = \"<!doctype html public \\\"-//w3c//dtd html 4.0 \" + \"transitional//en\\\">\\n\";\n\n out.println(docType +\n \"<html>\\n\" +\n \"<head><title>\" + title + \"</title><head>\\n\" +\n \"<body bgcolor = \\\"#f0f0f0\\\">\\n\" +\n \"<h1 align = \\\"center\\\">\" + title + \"</h1>\\n\" +\n \"<p align = \\\"center\\\">\" + res + \"</p>\\n\" +\n \"</body>\\n\" +\n \"</html>\"\n );\n\n } catch (MessagingException mex){\n mex.printStackTrace();\n }\n\n\n }",
"public void sendMail(String to, String subject, String text);",
"public void sendEmail() {\n\t\tSystem.out.println(\"Loading session and Authenticating\");\n\t\tfinal Session session = Session.getInstance(getProtocolProporties(PROTOCOL_SEND), new Authenticator() {\n\n\t\t\t@Override\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(getProperty(\"username\"), getPassword());\n\t\t\t}\n\n\t\t});\n\t\tif(null == session) {\n\t\t\tSystem.err.println(\"Session is null, cann't proceed\");\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Authenticated, will try to send an email\");\n\n\t\ttry {\n\t\t\tfinal Message message = new MimeMessage(session) {\n\t\t\t\t//Print the message to console\n\t\t\t\t@Override\n\t\t\t\tpublic String toString() {\n\t\t\t\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"From : \").append(\"\\n\");\n\t\t\t\t\t\tfor (Address address : this.getFrom())\n\t\t\t\t\t\t\tstringBuilder.append(address).append(\"\\n\");\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"To : \").append(\"\\n\");\n\t\t\t\t\t\tfor (Address address : this.getRecipients(Message.RecipientType.TO))\n\t\t\t\t\t\t\tstringBuilder.append(address).append(\"\\n\");\n\t\t\t\t\t\tstringBuilder.append(\"Subject : \").append(\"\\n\").append(this.getSubject());\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"Sent Date : \").append(this.getSentDate());\n\t\t\t\t\t} catch (MessagingException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\treturn stringBuilder.toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\t//Get Mail field details\n\t\t\tmessage.setFrom(new InternetAddress(getProperty(\"username\")));\n\t\t\tmessage.setRecipient(Message.RecipientType.TO, new InternetAddress(getUserInput(\"to\")));\n\t\t\tmessage.setSubject(getUserInput(\"subject\"));\n\t\t\tmessage.setText(getUserInput(\"messageContent\"));\n\t\t\tmessage.setSentDate(new Date());\n\t\t\tSystem.out.println(\"Sending the mail as details below :\");\n\t\t\tSystem.out.println(message);\n\t\t\t\n\t\t\t//Send email here, this throws exception if fails\n\t\t\tTransport.send(message);\n\t\t\t\n\t\t\tSystem.out.println(\"Email Sent\");\n\t\t} catch (final MessagingException ex) {\n\t\t\tSystem.err.println(\"Error: \" + ex.getMessage());\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public void send() {\r\n String _from = \"[email protected]\";\r\n String _password = \"Ng101840\";\r\n //Get properties object\r\n Properties props = new Properties();\r\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.put(\"mail.smtp.socketFactory.class\",\r\n \"javax.net.ssl.SSLSocketFactory\");\r\n props.put(\"mail.smtp.auth\", \"true\");\r\n props.put(\"mail.smtp.port\", \"465\");\r\n //get Session \r\n Session session = Session.getInstance(props,\r\n new javax.mail.Authenticator() {\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(_from, _password);\r\n }\r\n });\r\n //compose message \r\n try {\r\n MimeMessage message = new MimeMessage(session);\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(_to));\r\n message.setSubject(subject);\r\n message.setText(this.message);\r\n Transport.send(message);\r\n LOG.info(\"The email was sent successfully\");\r\n } catch (MessagingException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }",
"void send(Email email);",
"public static void main(String [] args) throws Throwable, MessagingException {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n Properties prop = new Properties();\n\n prop.put(\"mail.smtp.auth\", true);\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.port\", \"587\");\n Session session = Session.getInstance(prop, new Authenticator() {\n \t @Override\n \t protected PasswordAuthentication getPasswordAuthentication() {\n \t return new PasswordAuthentication(\"sarowerhome\", \"tanvirj9\");\n \t }\n \t});\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(\n Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"Mail Subject\");\n\n String msg = \"This is my first email using JavaMailer\";\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(msg, \"text/html\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n }",
"public java.lang.String sendMail(java.lang.String accessToken, java.lang.String toAddresses, java.lang.String subject, java.lang.String body, java.lang.String msgFrom) throws java.rmi.RemoteException;",
"@RequestMapping(\"/test\")\n\tpublic String Mail()\n\t{\n\t\tif(useMock)//if useMock value is true then it calls mockEmaliSender else it calls SMTPEmailSender the is declare in app.properties\n\t\t{\n\t\treturn mockEmailSender.sendMail(); //call to mMockEmailSender Class\n\t\t}\n\t\telse\n\t\t{\n\t\treturn SMTPEmailSender.sendMail(); //call to SMTPEmailSender class\n\t\t}\n\t}",
"public void sendEmail(String recipient,String password);",
"@Test public void testMailer() throws Exception {\n ServerProperties properties = new ServerProperties();\n properties.setTestProperties();\n Server server = Server.newInstance(properties);\n Mailer mailer = Mailer.getInstance();\n assertTrue(\"Checking mailer\", mailer.send(\"[email protected]\", \"Test Subject\", \"TestBody\"));\n server.stop();\n }",
"@Override\n\tpublic void sendMail(Mail mail, boolean flag) {\n\t\t\n\t}",
"public static void sendMail (String email, String name, String surname) throws AddressException,MessagingException {\n \n Properties props = new Properties();\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.port\", \"587\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n\n Session session = Session.getDefaultInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\",\"progettoweb2018\");\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(email));\n message.setSubject(\"Benvenuto in Friday!\");\n message.setText(name+\" \"+surname+\", Benvenuto in Friday!\"+\n \"\\n\\n link di conferma : http://localhost:8080/Friday/confirmRegistrationServlet?email=\"+email);\n\n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"public void sendMail(String to, String cc, String bcc, String subject, String text);",
"public void sendMail(View view) {\n\n contentManager = new ContentManager(this);\n contentManager.sendEmail(helpBinding.mail.getText().toString(), new EmailListener() {\n @Override\n public void onSuccess(EmailResponse emailResponse) {\n showToast(emailResponse.getMessage());\n }\n\n @Override\n public void onFailed(String message, int responseCode) {\n showToast(message);\n }\n\n @Override\n public void startLoading(String requestId) {\n showToast(getString(R.string.sendEmail));\n }\n\n @Override\n public void endLoading(String requestId) {\n\n }\n });\n }",
"@Override\r\n public void run() {\r\n Properties smtpProperties = System.getProperties();\r\n smtpProperties.put(\"mail.smtp.port\", \"587\");\r\n smtpProperties.put(\"mail.smtp.auth\", \"true\");\r\n smtpProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n try {\r\n Session smtpSession = Session.getDefaultInstance(smtpProperties, null);\r\n MimeMessage textMessage = new MimeMessage(smtpSession);\r\n textMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(recipientNumber + \"@\" + recipientCarrierDomain));\r\n textMessage.setContent(messageContent, \"text/plain\");\r\n Transport transport = smtpSession.getTransport(\"smtp\");\r\n transport.connect(\"smtp.gmail.com\", \"[email protected]\", \"csd@VT-1872\");\r\n transport.sendMessage(textMessage, textMessage.getAllRecipients());\r\n transport.close();\r\n } catch (AddressException ae) {\r\n System.out.println(\"Email Address Exception Occurred! See: \" + ae.getMessage());\r\n } catch (MessagingException me) {\r\n System.out.println(\"Email Messaging Exception Occurred! Internet Connection Required! See: \" + me.getMessage());\r\n }\r\n }",
"public void sendEmail(){\r\n EmailService emailSvc = new EmailService(email, username, password, firstName, lastName);\r\n Thread th = new Thread(emailSvc);\r\n LOG.info(\"Starting a new thread to send the email..\");\r\n th.start();\r\n LOG.info(\"The email was sent successfully\");\r\n }",
"@RequestMapping(value =\"/sendEmail\",method = RequestMethod.GET)\n\tpublic String doSendEmail(HttpServletRequest request) {\n\t\tString recipientAddress = \"[email protected]\";\n\t\tString subject = \"sujet\";\n\t\tString message = \"salut\";\n\t\t\n\n\t\t\n\t\t// creates a simple e-mail object\n\t\tSimpleMailMessage email = new SimpleMailMessage();\n\t\temail.setTo(recipientAddress);\n\t\temail.setSubject(subject);\n\t\temail.setText(message);\n\t\t\n\t\t// sends the e-mail\n\t\tmailSender.send(email);\n\t\t\n\t\t// forwards to the view named \"Result\"\n\t\treturn \"Result\";\n\t}",
"private void sendBookingConfirmMailWithMailtrapProvider(String userEmail, String token) throws MessagingException {\n String to = userEmail;//change accordingly \n// Gmail’s SMTP account,\n\n String userName = \"91c28c9b77f112\";//from mailtrap\n String password = \"9d4d7fbf411267\";\n\n //Get the session object \n //1. sets SMTP server properties\n Properties properties = new Properties();\n properties.put(\"mail.smtp.auth\", true);\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\n properties.put(\"mail.smtp.host\", \"smtp.mailtrap.io\");\n properties.put(\"mail.smtp.port\", \"25\");\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.mailtrap.io\");\n //2. creates a new session with an authenticator\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(userName, password);\n }\n };\n\n Session session = Session.getInstance(properties, auth);\n\n //3. Creates a new e-mail message\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(\"[email protected]\"));\n InternetAddress[] toAddresses = {new InternetAddress(to)};\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\n msg.setSubject(\"Test send mail\");\n msg.setSentDate(new Date());\n msg.setText(\"Hello, this is example of sending email. ?token=\" + token);\n\n// MimeMessage message = new MimeMessage(session);\n// message.setFrom(new InternetAddress(from));\n// message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n //4. Send the message\n Transport.send(msg);\n System.out.println(\"message sent successfully....\");\n\n }",
"public final void testSendMail() throws EMagineException {\r\n\t\tCollection<Attachment> attachments = new ArrayList<Attachment>();\r\n\t\tAttachment attachment = new Attachment();\r\n\t\tattachment.setName(this.getClass().getSimpleName()+\".java\");\r\n\t\tattachment.setPath(\"TestSource/\"+this.getClass().getPackage().getName().replaceAll(\"\\\\.\", \"/\")+\"/\"+this.getClass().getSimpleName()+\".java\");\r\n\t\tattachments.add(attachment);\r\n\t\tMailManager.sendMail(\"[email protected]\", \"MailManagerTest\", \"Just a funny test\", attachments);\r\n\t}",
"void send(String emailName);",
"public String sendEmail() {\n String to = theModel.getEmail();\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from this host\n String host = \"smtp.gmail.com\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n properties.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n properties.setProperty(\"mail.smtp.auth\", \"true\");\n properties.setProperty(\"mail.smtp.port\", \"587\");\n // Get the default Session object.\n Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"itkstuadmin\");\n }\n });\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject( subject, \"text/html\");\n\n // Send the actual HTML message, as big as you like\n message.setContent( text , \"text/html\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n return \"UniLog.xhtml\";\n }",
"public void sendMail(String address, String content) {\n }",
"public String sendEmailSMTP(final SendEmailRequest request) throws Exception {\n\t\tProperties props = System.getProperties();\n\t\tprops.put(\"mail.transport.protocol\", \"smtp\");\n\t\tprops.put(\"mail.smtp.port\", Constant.PORT);\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\n\t\t// Create a Session object to represent a mail session with the specified\n\t\t// properties.\n\t\tSession session = Session.getDefaultInstance(props);\n\n\t\tString DefaultCharSet = MimeUtility.getDefaultJavaCharset();\n\n\t\t// Create a new MimeMessage object.\n\t\tMimeMessage message = new MimeMessage(session);\n\n\t\t// Add subject, from and to lines.\n\t\tmessage.setSubject(request.getEmailSubject(), \"UTF-8\");\n\t\tmessage.setFrom(new InternetAddress(request.getSenderEmailAddress(), request.getSenderName()));\n\t\tmessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(request.getRecipientEmailAddress()));\n\n\t\t// Create a multipart/alternative child container.\n\t\tMimeMultipart msg_body = new MimeMultipart(\"alternative\");\n\n\t\t// Create a wrapper for the HTML and text parts.\n\t\tMimeBodyPart wrap = new MimeBodyPart();\n\n\t\t// Define the HTML part.\n\t\tMimeBodyPart htmlPart = new MimeBodyPart();\n\t\t// Encode the HTML content and set the character encoding.\n\t\tString emailBody = \"Hello, \".concat(request.getRecipientName()).concat(\"\\r\\n\").concat(request.getEmailBody());\n\t\thtmlPart.setContent(MimeUtility.encodeText(emailBody, DefaultCharSet, \"B\"), \"text/html; charset=UTF-8\");\n\t\thtmlPart.setHeader(\"Content-Transfer-Encoding\", \"base64\");\n\n\t\t// Add the text and HTML parts to the child container.\n\t\tmsg_body.addBodyPart(htmlPart);\n\n\t\t// Add the child container to the wrapper object.\n\t\twrap.setContent(msg_body);\n\n\t\t// Create a multipart/mixed parent container.\n\t\tMimeMultipart msg = new MimeMultipart(\"mixed\");\n\n\t\t// Add the multipart/alternative part to the message.\n\t\tmsg.addBodyPart(wrap);\n\n\t\t// Define the attachment\n\t\tString attachmentUrl = request.getAttachmentUrl();\n\t\tif (null != attachmentUrl && !attachmentUrl.isEmpty()) {\n\t\t\tMimeBodyPart att = new MimeBodyPart();\n\t\t\tDataSource fds = new FileDataSource(uploadFile.saveUrlAs(attachmentUrl));\n\t\t\tatt.setDataHandler(new DataHandler(fds));\n\t\t\tatt.setFileName(fds.getName());\n\t\t\t// Add the attachment to the message.\n\t\t\tmsg.addBodyPart(att);\n\t\t\tSystem.out.println(\"Attempting to send an email through Amazon SES \" + \"using the AWS SDK for Java...\");\n\t\t}\n\n\t\t// Add the parent container to the message.\n\t\tmessage.setContent(msg);\n\n\t\t// Add a configuration set header. Comment or delete the\n\t\t// next line if you are not using a configuration set\n\t\t// msg.setHeader(\"X-SES-CONFIGURATION-SET\", CONFIGSET);\n\n\t\t// Create a transport.\n\t\tTransport transport = session.getTransport();\n\n\t\t// Send the message.\n\t\ttry {\n\t\t\tSystem.out.println(\"Sending...\");\n\n\t\t\t// Connect to Amazon SES using the SMTP username and password you specified\n\t\t\t// above.\n\t\t\ttransport.connect(Constant.HOST, Constant.SMTP_USERNAME, Constant.SMTP_PASSWORD);\n\n\t\t\t// Send the email.\n\t\t\ttransport.sendMessage(message, message.getAllRecipients());\n\n\t\t\tdynamodbService.insertData(request);\n\t\t\tSystem.out.println(\"Email sent!\");\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"The email was not sent.\");\n\t\t\tSystem.out.println(\"Error message: \" + ex.getMessage());\n\t\t} finally {\n\t\t\t// Close and terminate the connection.\n\t\t\ttransport.close();\n\t\t}\n\t\treturn Constant.SENDVERFIYSTATUS;\n\t}",
"@Test\n\tpublic void sendMailOK() throws MessagingException {\n\t\t//GreenMailUser user = greenMail.getGreenMail().setUser(to, \"username\", \"secret\");\n\t\tClassLoader classLoader = getClass().getClassLoader();\n\t\tattachment = new File(Objects.requireNonNull(classLoader.getResource(attachmentName)).getFile());\n\t\tassertEquals(0, emailService.sendEmailWithAttachment(to, subject, text, attachment).intValue());\n\t\tassertTrue(GreenMailUtil.getBody(greenMail.getReceivedMessages()[0]).contains(text));\n\t\tassertEquals(subject, greenMail.getReceivedMessages()[0].getSubject());\n\t}",
"public static void main(String[] args) throws UnknownHostException, AddressException, MessagingException {\n\t\tSystem.out.println(InetAddress.getLocalHost().getHostAddress());\n\t\tMonitoringMail mail = new MonitoringMail();\n\t\tString messageBody=\"https://\"+InetAddress.getLocalHost().getHostAddress()+ \":8080/C:/work/Selenium/LiveProjects/PageObjectModelBasics/target/surefire-reports/html/extent.html\";\n\t\tSystem.out.println(messageBody);\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody,TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}",
"@Override\n public ExtensionResult doSendMail(ExtensionRequest extensionRequest) {\n String recipient = getEasyMapValueByName(extensionRequest, \"recipient\");\n MailModel mailModel = new MailModel(recipient, \"3Dolphins SDK Mail Subject\", \"3Dolphins SDK mail content\");\n String sendMailResult = svcMailService.sendMail(mailModel);\n\n Map<String, String> output = new HashMap<>();\n output.put(OUTPUT, sendMailResult);\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }",
"public String sendEmailSDK(final SendEmailRequest request) {\n\t\ttry {\n\t\t\tString DefaultCharSet = MimeUtility.getDefaultJavaCharset();\n\n\t\t\tSession session = Session.getDefaultInstance(new Properties());\n\n\t\t\t// Create a new MimeMessage object.\n\t\t\tMimeMessage message = new MimeMessage(session);\n\n\t\t\t// Add subject, from and to lines.\n\t\t\tmessage.setSubject(request.getEmailSubject(), \"UTF-8\");\n\t\t\tmessage.setFrom(new InternetAddress(request.getSenderEmailAddress(), request.getSenderName()));\n\t\t\tmessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(request.getRecipientEmailAddress()));\n\n\t\t\t// Create a multipart/alternative child container.\n\t\t\tMimeMultipart msg_body = new MimeMultipart(\"alternative\");\n\n\t\t\t// Create a wrapper for the HTML and text parts.\n\t\t\tMimeBodyPart wrap = new MimeBodyPart();\n\n\t\t\t// Define the text part.\n\t\t\tMimeBodyPart textPart = new MimeBodyPart();\n\t\t\t// Encode the text content and set the character encoding. This step is\n\t\t\t// necessary if you're sending a message with characters outside the\n\t\t\t// ASCII range.\n\t\t\tString emailBody = \"Hello, \".concat(request.getRecipientName()).concat(\"\\r\\n\")\n\t\t\t\t\t.concat(request.getEmailBody());\n\t\t\ttextPart.setContent(MimeUtility.encodeText(emailBody, DefaultCharSet, \"B\"), \"text/plain; charset=UTF-8\");\n\t\t\ttextPart.setHeader(\"Content-Transfer-Encoding\", \"base64\");\n\n\t\t\t// Add the text and HTML parts to the child container.\n\t\t\tmsg_body.addBodyPart(textPart);\n\t\t\t// msg_body.addBodyPart(htmlPart);\n\n\t\t\t// Add the child container to the wrapper object.\n\t\t\twrap.setContent(msg_body);\n\n\t\t\t// Create a multipart/mixed parent container.\n\t\t\tMimeMultipart msg = new MimeMultipart(\"mixed\");\n\n\t\t\t// Add the parent container to the message.\n\t\t\tmessage.setContent(msg);\n\n\t\t\t// Add the multipart/alternative part to the message.\n\t\t\tmsg.addBodyPart(wrap);\n\n\t\t\t// Define the attachment\n\t\t\tString attachmentUrl = request.getAttachmentUrl();\n\t\t\tif (null != attachmentUrl && !attachmentUrl.isEmpty()) {\n\t\t\t\tMimeBodyPart att = new MimeBodyPart();\n\t\t\t\tDataSource fds = new FileDataSource(uploadFile.saveUrlAs(attachmentUrl));\n\t\t\t\tatt.setDataHandler(new DataHandler(fds));\n\t\t\t\tatt.setFileName(fds.getName());\n\t\t\t\t// Add the attachment to the message.\n\t\t\t\tmsg.addBodyPart(att);\n\t\t\t\tSystem.out.println(\"Attempting to send an email through Amazon SES \" + \"using the AWS SDK for Java...\");\n\t\t\t}\n\n\t\t\t// Instantiate an Amazon SES client, which will make the service\n\t\t\t// call with the supplied AWS credentials.\n\t\t\tAmazonSimpleEmailService client = AmazonSimpleEmailServiceClientBuilder.standard()\n\t\t\t\t\t.withRegion(Regions.US_WEST_2).build();\n\n\t\t\t// Print the raw email content on the console\n\t\t\tPrintStream out = System.out;\n\t\t\tmessage.writeTo(out);\n\n\t\t\t// Send the email.\n\t\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\t\t\tmessage.writeTo(outputStream);\n\t\t\tRawMessage rawMessage = new RawMessage(ByteBuffer.wrap(outputStream.toByteArray()));\n\n\t\t\tSendRawEmailRequest rawEmailRequest = new SendRawEmailRequest(rawMessage);\n\n\t\t\tclient.sendRawEmail(rawEmailRequest);\n\t\t\t\n\t\t\tdynamodbService.insertData(request);\n\t\t\tSystem.out.println(\"Email sent!\");\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"Email Failed\");\n\t\t\tSystem.err.println(\"Error message: \" + ex.getMessage());\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\treturn Constant.SENTSTATUS;\n\t}",
"public void sendMail() {\n String email = emailID.getText().toString();\n String subject = \"BlueBucket One-Time OTP\";\n otp=generateOTP();\n String message = \"\"+otp;\n\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }",
"public void sendMail(String to, String cc, String subject, String text);",
"private static void sendMail(String toEmail, String mailText) {\n final String username = \"[email protected]\"; //The Email of the sender.\n final String password = \"emailpassword\";\n\n //Properties of the used SMTP server.\n Properties props = new Properties();\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(username));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(toEmail));\n message.setSubject(\"New Password - Household Manager\");\n //Message to the user\n message.setText(mailText);\n\n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"public void generateAndSendEmail(EmailSendingParameters emailParameters) throws AddressException, MessagingException {\r\n \r\n\t\t//Step1\t\t\r\n\t\tSystem.out.println(\"Setup Mail Server Properties..\");\r\n\t\tmailServerProperties = System.getProperties();\r\n\t\tmailServerProperties.put(\"mail.smtp.port\", \"587\");\r\n\t\tmailServerProperties.put(\"mail.smtp.auth\", \"true\");\r\n\t\tmailServerProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t\tSystem.out.println(\"Mail Server Properties have been setup successfully..\");\r\n \r\n\t\t//Step2\r\n\t\tSystem.out.println(\"Get Mail Session..\");\r\n\t\tgetMailSession = Session.getDefaultInstance(mailServerProperties, null);\r\n\t\tgenerateMailMessage = new MimeMessage(getMailSession);\r\n\t\tgenerateMailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(emailParameters.getEmailReceiverAdress()));\r\n\t\tgenerateMailMessage.setSubject(\"Greetings from Crunchify..\");\r\n\t\tString emailBody = \"EMAIL CONTENT (with html tags)\";\r\n\t\tgenerateMailMessage.setContent(emailBody, \"text/html\");\r\n\t\tSystem.out.println(\"Mail Session has been created successfully..\");\r\n \r\n\t\t//Step3\t\t\r\n\t\tSystem.out.println(\"Get Session\tand Send mail\");\r\n\t\tTransport transport = getMailSession.getTransport(\"smtp\");\r\n\r\n\t\tSystem.out.println(\"Sending message\");\r\n\t\ttransport.connect(/*smtp.gmail.com\", emailReceiverAdress* emailReceiverPassword*/); \r\n\t\ttransport.sendMessage(generateMailMessage, generateMailMessage.getAllRecipients());\r\n\t\tSystem.out.println(\"Message sended properly\");\r\n\t\ttransport.close();\r\n\t}",
"private void sendmailcartid(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, ClassNotFoundException {\n String cardid = request.getParameter(\"cartid\");\n\n String to = \"yevhen@yevhen-Lenovo-ideapad-320-15ISK\";\n String from = \"wwwwnewbob@localhost\";\n String host = \"localhost\";\n\n Properties properties = System.getProperties();\n properties.setProperty(\"yevhen-Lenovo-ideapad-320-15ISK\", host);\n\n Session session = Session.getDefaultInstance(properties);\n response.setContentType(\"text/html\");\n PrintWriter out = response.getWriter();\n\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipients(Message.RecipientType.TO, String.valueOf(new InternetAddress(to)));\n message.setSubject(\"This is the Subject Line!\");\n message.setText(\"This is actual message from <a href=\\\"http://localhost:8080/bookstore/createpdfdoc?cartid=\" + cardid + \"\\\">Your payment</a>\");\n\n logger.info(\" user.getEmail() \" + cardid);\n\n Transport.send(message);\n String title = \"Send Email\";\n String res = \"Sent message successfully....<a href='/bookstore/shop'>Back</a>\";\n String docType = \"<!doctype html public \\\"-//w3c//dtd html 4.0 \" + \"transitional//en\\\">\\n\";\n\n out.println(docType +\n \"<html>\\n\" +\n \"<head><title>\" + title + \"</title><head>\\n\" +\n \"<body bgcolor = \\\"#f0f0f0\\\">\\n\" +\n \"<h1 align = \\\"center\\\">\" + title + \"</h1>\\n\" +\n \"<p align = \\\"center\\\">\" + res + \"</p>\\n\" +\n \"</body>\\n\" +\n \"</html>\"\n );\n\n } catch (MessagingException mex){\n mex.printStackTrace();\n }\n\n\n }",
"public void sendNewOrderAdmin(){\n final String username = \"[email protected]\";\n\n // change accordingly\n final String password = \"dcc59vez\";\n\n // Get system properties\n Properties props = new Properties();\n\n // enable authentication\n props.put(\"mail.smtp.auth\", \"true\");\n\n // enable STARTTLS\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n\n // Setup mail server\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\n // TLS Port\n props.put(\"mail.smtp.port\", \"587\");\n\n // creating Session instance referenced to\n // Authenticator object to pass in\n // Session.getInstance argument\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n //override the getPasswordAuthentication method\n protected PasswordAuthentication\n getPasswordAuthentication() {\n\n return new PasswordAuthentication(username,\n password);\n }\n });\n\n try {\n // compose the message\n // javax.mail.internet.MimeMessage class is\n // mostly used for abstraction.\n Message message = new MimeMessage(session);\n\n // header field of the header.\n message.setFrom(new InternetAddress(\"BallonkompagnietIVS\"));\n\n //Set admin email\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"New order on website\");\n\n message.setText(\"New order placed on your website\");\n\n //send Message\n Transport.send(message);\n System.out.println(\"Email sent to admin - New order\");\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"public void sendMail(String to, String cc, String bcc, String templateName, Object... parameters);",
"public void testSendEmail2()\n throws Exception\n {\n Gitana gitana = new Gitana();\n\n // authenticate\n Platform platform = gitana.authenticate(\"admin\", \"admin\");\n\n // create a domain and a principal\n Domain domain = platform.createDomain();\n DomainUser user = domain.createUser(\"test-\" + System.currentTimeMillis(), TestConstants.TEST_PASSWORD);\n user.setEmail(\"[email protected]\");\n user.update();\n\n // create an application\n Application application = platform.createApplication();\n\n // create an email provider\n EmailProvider emailProvider = application.createEmailProvider(\n JSONBuilder.start(EmailProvider.FIELD_HOST).is(\"smtp.gmail.com\")\n .and(EmailProvider.FIELD_USERNAME).is(\"[email protected]\")\n .and(EmailProvider.FIELD_PASSWORD).is(\"buildt@st11\")\n .and(EmailProvider.FIELD_SMTP_ENABLED).is(true)\n .and(EmailProvider.FIELD_SMTP_IS_SECURE).is(true)\n .and(EmailProvider.FIELD_SMTP_REQUIRES_AUTH).is(true)\n .and(EmailProvider.FIELD_SMTP_STARTTLS_ENABLED).is(true)\n .get()\n );\n\n // create an email\n Email email = application.createEmail(\n JSONBuilder.start(Email.FIELD_BODY).is(\"Here is a test body\")\n .and(Email.FIELD_FROM).is(\"[email protected]\")\n .get()\n );\n email.setToDomainUser(user);\n email.update();\n\n // send the email\n emailProvider.send(email);\n\n // check to ensure was marked as sent, along with some data\n email.reload();\n assertTrue(email.getSent());\n assertNotNull(email.dateSent());\n assertNotNull(email.getSentBy()); \n }",
"public void sendMail(String to, String templateName, Object... parameters);",
"public void sendEmail(String username, String password) throws Throwable {\r\n\t\tString emailSubject = \"Test Report on \" + new Date();\r\n\t\tString emailMsg = \"This is an automatically generated email for test run\";\r\n\t\tEmailAttachment attachment = new EmailAttachment();\r\n\t\tattachment.setPath(\"test-output/emailable-report.html\");\r\n\t\tattachment.setDisposition(EmailAttachment.ATTACHMENT);\r\n\t\tattachment.setDescription(\"Test Report\");\r\n\t\tMultiPartEmail email = new MultiPartEmail();\r\n\t\temail.setHostName(\"imap.gmail.com\");\r\n\t\temail.setSmtpPort(465);\r\n\t\temail.setAuthenticator(new DefaultAuthenticator(username, password));\r\n\t\temail.setSSLCheckServerIdentity(true);\r\n\t\temail.setSSLOnConnect(true);\r\n\t\tSystem.out.println(\"Connected to gmail..\");\r\n\t\tSystem.out.println(\"Sending mail to: \" + toEmails);\r\n\t\tSystem.out.println(\"Subject: \" + emailSubject + \"\\nEmail Body: \" + emailMsg);\r\n\t\temail.setFrom(username);\r\n\t\temail.setSubject(emailSubject);\r\n\t\temail.setMsg(emailMsg);\r\n\t\tString[] emails = toEmails.split(\",\");\r\n\t\temail.addTo(emails);\r\n\t\temail.attach(attachment);\r\n\t\temail.send();\r\n\t\tSystem.out.println(\"Email Sent..\");\r\n\t}",
"public interface SendMailService {\n /***\n * 发送邮件\n * @param to 地址\n * @param subject 主题\n * @param vmFile 模板文件\n * @param map 填充模板的数据\n */\n public void sendMailNow(String to,String subject ,String vmFile, Map<String, Object> map);\n\n /***\n * 后台发送邮件,使用不同邮件服务器\n * @param to 地址\n * @param subject 主题\n * @param vmFile 模板文件\n * @param map 填充模板的数据\n */\n public void sendMailNowByTencent(String to,String subject ,String vmFile, Map<String, Object> map);\n \n /***\n * 后台发送邮件,使用webapi\n * @param to 地址\n * @param subject 主题\n * @param vmFile 模板文件\n * @param map 填充模板的数据\n */\n public void sendMailNowBySohuWebAPI(String to,String subject ,String vmFile, Map<String, Object> map);\n \n /**\n\t * 根据指定模板发送邮件\n\t * @param toArr 收件人数组\n\t * @param subject 邮件主题\n\t * @param templateInvokeName 模板名称\n\t * @param Map<String, String[]> subMap 比如 \"%name%\": [\"Ben\", \"Joe\"],\"%money%\":[288, 497]}\n\t */\n\tpublic void sendMailNowBySohuTemplate(String[] toArr, String subject, String templateInvokeName, Map<String, String[]> subMap);\n \n\t/**\n\t * 获取模板\n\t * @param invokeName\n\t */\n public String sohuTemplateGet(String invokeName);\n \n /**\n * 新增模板\n * @param invokeName\n * @param name\n * @param html\n * @param text\n */\n public String sohuTemplateAdd(String invokeName, String name, String subject, Integer emailType, String html, String text);\n \n /**\n * 删除模板\n * @param invokeName\n */\n public String sohuTemplateDelete(String invokeName);\n \n /**\n * 更新模板\n * @param invokeName\n * @param name\n * @param html\n */\n public String sohuTemplateUpdate(String invokeName, String name, String subject, Integer emailType, String html);\n}",
"public static void main(String[] args) {\n MailAdapter mailAdapter = MailAdapter.getInstance();\n mailAdapter.sendEmail(\"[email protected]\", \"[email protected]\", \"We are doing Java\", true);\n mailAdapter.receiveEmail();\n\n }",
"public interface MailService {\n\n /**\n * 发送邮件\n * @param to\n * @param subject\n * @param content\n * @param isMultipart\n * @param isHtml\n */\n void sendEmail(String to, String subject, String content, boolean isMultipart, boolean isHtml);\n\n /**\n * 发送激活邮件\n * @param users\n * @param baseUrl\n */\n void sendActivationEmail(Users users, String baseUrl);\n\n /**\n * 发送账号创建成功邮件\n * @param users\n * @param baseUrl\n */\n void sendCreationEmail(Users users, String baseUrl);\n\n /**\n * 发送密码重置邮件\n * @param users\n * @param baseUrl\n */\n void sendPasswordResetMail(Users users, String baseUrl);\n\n /**\n * 发送邮箱验证邮件\n * @param users\n * @param baseUrl\n */\n void sendValidEmailMail(Users users, String baseUrl);\n\n /**\n * 阿里云邮箱服务\n * @param users\n * @param subject\n * @param content\n */\n void sendAliDMMail(Users users, String subject, String content);\n\n /**\n * 发送教学任务书 上传成功与不消息\n * @param users\n * @param baseUrl\n * @param msg\n */\n void sendTeachTaskMsg(Users users,String baseUrl,String msg);\n}",
"public boolean sendEmail(String recipient, String msg) {\n final String SENDGRID_API_KEY = \"SG.xxxxxx_xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxx_xxxxxxx\";\n\n if (SENDGRID_API_KEY.equals(\"SG.xxxxxx_xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxx_xxxxxxx\")) {\n System.out.println(\"You haven't added your sendgrid api key!\");\n return true;\n }\n\n // you'll need to specify your sendgrid verified sender identity for this to mail out.\n Email from = new Email(\"[email protected]\");\n String subject = \"Secret Assignment from the Elves\";\n Email to = new Email(recipient);\n Content content = new Content(\"text/plain\", msg);\n Mail mail = new Mail(from, subject, to, content);\n\n SendGrid sg = new SendGrid(SENDGRID_API_KEY);\n Request request = new Request();\n\n try {\n request.setMethod(Method.POST);\n request.setEndpoint(\"mail/send\");\n request.setBody(mail.build());\n Response response = sg.api(request);\n System.out.println(response.getStatusCode());\n System.out.println(response.getBody());\n System.out.println(response.getHeaders());\n return true;\n } catch (IOException ex) {\n System.out.println(ex.toString());\n return false;\n }\n }",
"public void send(Email email) {\n\t\t\n\t\tSimpleMailMessage message = new SimpleMailMessage(); \n\t message.setTo(email.getTo()); \n\t message.setSubject(email.getSubject()); \n\t message.setText(email.getBody());\n\t \n\t System.out.println(\"Sending Email \");\n\t \n\t javaMailSender.send(message);\n\n\t System.out.println(\"Email Sent Successfully!!\");\n\n\t}",
"public void sendSimpleEmail(String subject, String content, String toMail) {\n SimpleMailMessage message = new SimpleMailMessage();\n\n message.setTo(toMail);\n message.setSubject(subject);\n message.setText(content);\n\n\n\n // Send Message!\n this.emailSender.send(message);\n\n }",
"@Override\n public void sendEmail() {\n return;\n }",
"public Boolean sendEmail(String sender, String receiver, String subject, String body) throws Exception;",
"public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }",
"void sendCommonMail(String to, String subject, String content);",
"public static void main(String[] args) throws AddressException, MessagingException, IOException {\n MonitoringMail mail = new MonitoringMail();\n mail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, TestConfig.messageBody, TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}",
"public void sendMailReport() {\n mailService.sendMail(\"[email protected]\", \"ToDo report\",\n String.format(\"There are '%s' todo entries!\", todoListService.getAllEntries().size()));\n }",
"public String enviarcorreo(String receptor, String asunto, String mensaje, String telefono, String nombre){\ntry {final String username = \"[email protected]\";\n final String password = \"32sky4951m\";\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n /*Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });*/\n\n Session session = Session.getInstance(props, new GMailAuthenticator(username, password));\n\n try {\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(\"[email protected]\"));\n message.setSubject(asunto);\n mensaje = \"Nombre y Apellido:\" + \"<br>\" + nombre+ \"<br>\" + \"<br>\" +\n \"Correo Electronico:\" + \"<br>\" + receptor + \"<br>\" +\"<br>\" +\n \"N° de Teléfono:\" + \"<br>\" + telefono+ \"<br>\" + \"<br>\" +\n \"ASUNTO DEL MENSAE:\" +\"<br>\" + mensaje;\n message.setContent(mensaje,\"text/html; charset=utf-8\");\n\n Transport.send(message);\n\n System.out.println(\"Done\");\n respuesta=\"Su mensaje ha sido enviado\";\n } catch (MessagingException e) {\n respuesta=\"Error al enviar\";\n throw new RuntimeException(e);\n\n }\n\n} catch (Exception e) {\n respuesta=\"Error al enviar, verifique su conexión\";\n throw new RuntimeException(e);\n\n }\n\n\n return respuesta;\n }",
"public void sendregisteruser(registerDTO register) {\n MimeMessagePreparator preparator = new MimeMessagePreparator()\n {\n public void prepare(MimeMessage mimeMessage) throws Exception\n {\n mimeMessage.setRecipient(Message.RecipientType.TO, new InternetAddress(register.getEmail()));\n mimeMessage.setSubject(\"Welcome to The Indian Bus Service\");\n\n MimeMessageHelper helper = new MimeMessageHelper(mimeMessage, true);\n\n helper.setText(\"<html><body>\"\n + \"<br>\"\n + \"<h2>Hello \"+register.getFirstname()+\" \"+register.getLastname()+\"</h2>\"\n + \"<p>Welcome to <b>Indian Bus Service</b></p>\"\n + \"<br>\"\n + \"<p>Username:- \"+register.getEmail()+\"</p>\"\n + \"<p>Hope you are doing well in this lockdown.</b></p>\"\n + \"<p>Date your login : </p>'\"+new Date()+\"'</body></html>\", true);\n }\n };\n\n try {\n mailSender.send(preparator);\n }\n catch (MailException ex) {\n // simply log it and go on...\n System.err.println(ex.getMessage());\n }\n }",
"void send(String emailName, Map model, Locale locale);",
"public static void sendMail(String fromAddr,String pass,String targetAddr,String subj,String msg) {\n\n final String username = fromAddr;\n final String password = pass;\n\n Properties props = new Properties();\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(username));\n message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(targetAddr));\n message.setSubject(subj);\n message.setText(msg);\n \n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"void send(String emailName, Map model);",
"private void sendEmail(String emailAddress, String subject, String body) {\n\t\t\n\t}",
"public MainMailPage sendMail(String to, String subject, String text) {\n\tLOG.info(\"Start sendMail\\n\");\n\twritterMail(to, subject, text);\n\tsendToMail.click();\n\tcheckDialogBox();\n\treturn new MainMailPage(driver);\n }",
"private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }",
"public static boolean sendMail(Map alertMap) throws AddressException, MessagingException {\n\t\tString username = \"[email protected]\";\r\n\t\tString password = \"password4u\";\r\n\t\tPasswordAuthentication authentication = new PasswordAuthentication(username, password);\r\n\t\tAuthenticator authenticator = new Authenticator();\r\n\t\tproperties.setProperty(\"mail.smtp.submitter\", authenticator.getPasswordAuthentication().getUserName());\r\n Session session = Session.getDefaultInstance(properties);\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n // Set the RFC 822 \"From\" header field using the\r\n // value of the InternetAddress.getLocalAddress method.\r\n \r\n message.setFrom(new InternetAddress(from));\r\n // Add the given addresses to the specified recipient type.\r\n message.addRecipient(Message.RecipientType.TO,\r\n \t\t new InternetAddress((String)alertMap.get(CarPoolConstants.TO)));\r\n // Set the \"Subject\" header field.\r\n message.setSubject((String)alertMap.get(CarPoolConstants.SUBJECT));\r\n // Sets the given String as this part's content,\r\n // with a MIME type of \"text/plain\".\r\n message.setText((String)alertMap.get(CarPoolConstants.ALERT));\r\n // Send message\r\n //Transport.send(message);\r\n System.out.println(\"Message Sent.....\"+message);\r\n System.out.println(\"Mail has not been sent.. code is commented\");\r\n\t\treturn true;\r\n\t}",
"public void send(String toEmail){\n Session session = Session.getInstance(props, new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(this.username));\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(toEmail));\n message.setSubject(\"RWS TICKET SUPPORT\");\n\n BodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setText(\"Thank you for using the services of our company!\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n messageBodyPart = new MimeBodyPart();\n\n String filename = String.format(\n \"C:/Users/Ozhmegov/Desktop/t-systems/RWS/service/src/main/java/util/tickets/ticket_%s.pdf\", trainNumber\n );\n DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(String.format(\"ticket_%s.pdf\", trainNumber));\n multipart.addBodyPart(messageBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n LOG.info(\"Message sended on email: {}\", toEmail);\n } catch (MessagingException e) {\n LOG.error(\"Message not sended on email: {}\", toEmail);\n throw new EmailSenderServiceException(String.format(\"Message not sended on email: %s\", toEmail));\n }\n }",
"public interface MailService {\n void sendMail(String mailRecipients, String subject, String content);\n}",
"public void sendLink(String emailId, String otp) {\n\t\tString to = emailId;\n\n\t\t// Sender's email ID needs to be mentioned\n\t\tString from = \"[email protected]\";\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String password = \"9784261079\";// change accordingly\n\n\t\t// Assuming you are sending email through relay.jangosmtp.net\n\t\tString host = \"smtp.gmail.com\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", host);\n\t\tprops.put(\"mail.smtp.port\", \"25\");\n\n\t\t// Get the Session object.\n\t\tSession session = Session.getInstance(props,\n\t\t\t\tnew javax.mail.Authenticator() {\n\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\ttry {\n\t\t\t// Create a default MimeMessage object.\n\t\t\tMessage message = new MimeMessage(session);\n\n\t\t\t// Set From: header field of the header.\n\t\t\tmessage.setFrom(new InternetAddress(from));\n\n\t\t\t// Set To: header field of the header.\n\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\tInternetAddress.parse(to));\n\n\t\t\t// Set Subject: header field\n\t\t\tmessage.setSubject(\"Link For Magic\");\n\n\t\t\t// Now set the actual message\n\t\t\tmessage.setText(\"Welcome to Atithi::\" + otp\n\t\t\t\t\t+ \"\\n Please do not share it with anyone.\");\n\t\t\tTransport.send(message);\n\t\t} catch (MessagingException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public interface MailService {\n\n /**\n * Tell you if the mail service is enabled or not.\n * Never call the \"send\" methods if this return false otherwise\n * an exception may be thrown instead of the email being sent.\n *\n * @return true if the mail service has been enabled.\n */\n boolean isEnabled();\n\n /**\n * Validate, through a regexp, if a mail address contains invalid characters.\n * It cannot, in anyway, tell you if the email is really valid.\n *\n * @param mailAddress a not null mail address.\n * @return true if the mail address is valid.\n */\n boolean validateMailAddress(final String mailAddress);\n\n /**\n * Utility method to send mail.\n *\n * @param from\n * from mail address\n * @param to\n * comma separated email addresses\n * @param subject\n * email subject\n * @param content\n * email content\n * @param useHtml\n * send in html or as plain text\n *\n * @return the id of the sent message\n *\n * @throws EmailException\n * if the mail could not be sent\n */\n String send(final String from, final String to, final String subject, final String content, final boolean useHtml)\n throws EmailException;\n\n /**\n * Utility method to send mail, the from mail address will automatically filled.\n *\n * @param to\n * comma separated email addresses\n * @param subject\n * email subject\n * @param content\n * email content\n * @param useHtml\n * send in html or as plain text\n *\n * @return the id of the sent message\n *\n * @throws EmailException\n * if the mail could not be sent\n */\n String send(final String to, final String subject, final String content, final boolean useHtml)\n throws EmailException;\n}",
"void sendEmail(Task task, String taskTypeName, String plantName);",
"void sendHtmlMail(String to, String subject, String content);",
"public interface MailService\r\n{\r\n public static final String FROM_ADDRESS = \"[email protected]\";\r\n \r\n \r\n /**\r\n * Envoi un mail aux distinataires dont les adresses sont fournies.\r\n * \r\n * @param recipients Liste des adresses mail des destinataires (non null, non vide)\r\n * @param object Sujet du mail\r\n * @param message Message du mail\r\n * @throws IllegalArgumentException Si recipients est null ou vide\r\n * @throws MailException En cas de problème pour envoyer le mail\r\n */\r\n void sendMail(List<String> recipients, String object, String message) throws MailException;\r\n \r\n /**\r\n * Envoi un mail pour chaque distinataires dont les adresses sont fournies.\r\n * Il y a un mail d'envoyé par destinataire et non un seul mail avec tous\r\n * les destinataires en copie.\r\n * \r\n * @param recipients Liste des adresses mail des destinataires (non null, non vide)\r\n * @param object Sujet du mail\r\n * @param message Message du mail\r\n * @throws IllegalArgumentException Si recipients est null ou vide\r\n * @throws MailException En cas de problème pour envoyer le mail pour 1 ou plusieurs destinataires\r\n */\r\n void sendSeparateMail(List<String> recipients, String object, String message) throws MailException;\r\n}",
"@PostMapping(\"/sendMail\")\n\t@Timed\n\t@ResponseStatus(HttpStatus.CREATED)\n\tpublic void sentMail(@RequestBody String orderId) {\n\t\tSystem.out.println(\"Email send for Id \" + orderId);\n\t\tTransaction transaction = transactionRepository.findOneByOrderid(orderId);\n\t\tContext context = new Context();\n\t\tcontext.setVariable(\"order\", transaction.getOrderid());\n\t\tcontext.setVariable(\"email\", transaction.getEmail());\n\t\tcontext.setVariable(\"hash\", \"https://\" + CAN_NETWORK + \"etherscan.io/tx/\" + transaction.getHash());\n\t\tcontext.setVariable(\"can\", \"https://\" + CAN_NETWORK + \"etherscan.io/tx/\" + transaction.getHashethertoaccount());\n\t\tcontext.setVariable(\"amount\", transaction.getAmount() + \" CAN\");\n\t\tcontext.setVariable(BASE_URL, jHipsterProperties.getMail().getBaseUrl());\n\t\tString content = templateEngine.process(\"mail/transactionConfirm\", context);\n\t\tsendEmail(transaction.getEmail(), \"Transaction Successful\", content, false, true);\n\t\tlog.debug(\"Called sendMail\");\n\t}",
"void sendEmail(Otp otp) throws Exception {\n String text = \"Otp: \" + otp.getOtpValue();\n String from = \"\"; // Add From Email Address\n String to = \"\"; // Add To Email Address\n\n SimpleMailMessage message = new SimpleMailMessage();\n message.setFrom(from);\n message.setTo(to);\n message.setSubject(\"Otp Verification\");\n message.setText(text);\n emailSender.send(message);\n }",
"boolean sendMimeMessage(String to, String subject, String htmlContent);",
"public void getSendEmail() {\n driver.get(getBASE_URL() + getSendMailURL);\n }",
"public void sendMail(RegistrationData d) {}",
"public Historique SendMail( Historique h,String resultat ,String date,String heure) throws Exception {\n\r\n\r\n Logger log = LoggerFactory.getLogger(MailController.class);\r\n\r\n \r\n\r\n \r\n log.info(\"Spring Mail - Sending Simple Email with JavaMailSender Example\");\r\n\r\n Mail mail = new Mail();\r\n mail.setFrom(\"[email protected]\");\r\n \r\n //mail.setTo(h.get().getEmails());\r\n String [] res =h.getEmails().split(\"\\\\s\");\r\n for(int i=0; i<res.length;i++)\r\n \r\n {\r\n \tSystem.out.println(res[i]);\r\n mail.setTo(res[i]);\r\n \r\n if(resultat.equals(\"echec\"))\r\n { \t mail.setSubject(\" échec d'éxécution du test\");\r\n mail.setContent(\"Echec de test \"+h.getNom()+\" éffectué à \"+date+\"à l'heure \"+heure);}\r\n else\r\n { \t\r\n mail.setSubject(\"Retard d'éxécution du test\");\r\n mail.setContent(\"Retard d'éxecution :temps de réponse réél est \"+h.getTemps_rep_reel()+\" et le temps de réponse attendu = est:\"+h.getResultat_attendu());}\r\n emailService.sendSimpleMessage(mail);\r\n }\r\n \r\n\r\n \r\n\t\treturn null; \r\n\r\n }",
"@Override\n\tpublic boolean sendEmail() {\n\t\treturn true;\n\t}",
"public void sendMail(String to, String cc, String templateName, Object... parameters);",
"private void sendMailInit() {\r\n\t\tif(mailSender == null){\r\n\t\t\tmailSender = new JavaMailSenderImpl();\r\n\t\t\tmailSender.setHost(ConfigManager.getInstance().getString(\"mail.host\"));\r\n\t\t\tmailSender.setPort(ConfigManager.getInstance().getInt(\"mail.port\", 25));\r\n\t\t\tmailSender.setUsername(ConfigManager.getInstance().getString(\"mail.username\"));\r\n\t\t\tmailSender.setPassword(ConfigManager.getInstance().getString(\"mail.password\"));\r\n\t\t\tmailSender.setDefaultEncoding(\"utf-8\");\r\n\t\t\tlogger.info(\"HOST>>>>>>>>>>>>>>>Host=\" + mailSender.getHost() + \",Port=\"+ mailSender.getPort());\r\n\t\t\tProperties props = new Properties();\r\n\t\t\tprops.setProperty(\"mail.smtp.auth\", \"true\");\r\n\t\t\tprops.setProperty(\"mail.smtp.timeout\", \"0\");\r\n\t\t\tmailSender.setJavaMailProperties(props);\r\n\t\t\tthis.setMailSender(mailSender);\r\n\t\t}\r\n\t}",
"public static void sendSMS(Map map) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tString username = \"[email protected]\";\r\n\t\tString password = \"password4u\";\r\n\t\t Email email = new SimpleEmail();\r\n email.setHostName(host);\r\n email.setSmtpPort(25);\r\n email.setAuthenticator(new DefaultAuthenticator(username, password));\r\n //email.setTLS(true);\r\n try {\r\n \t email.setFrom(from);\r\n\t\t\r\n\t // email.setSubject((String)alertMap.get(CarPoolConstants.SUBJECT));\r\n\t //email.setMsg((String)alertMap.get(CarPoolConstants.ALERT));\r\n\t email.setSubject(\"bara\");\r\n\t email.setMsg(\"naay\");\r\n\t \r\n\t email.addTo(\"[email protected]\");//(String)alertMap.get(CarPoolConstants.TO)\r\n\t email.setDebug(true);\r\n\t //[email protected],\r\n\t email.send();\r\n } catch (EmailException e) {\r\n \t\t\t// TODO Auto-generated catch block\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n\t}",
"@GetMapping(value=\"/sendMail/{orderId}\")\n String sendMail(@PathVariable(\"orderId\")String orderId) throws Exception{\n\n OrderEntity orderList=orderService.getOrderById(orderId);\n String email = orderList.getCustomerEmail();\n orderService.sendEmail(email,orderList);\n return \"success\";\n }",
"protected void contactBuyer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tif(request.getParameter(\"buyer_id\") != null){\n\t\t\tlong buyer_id = Long.parseLong(request.getParameter(\"buyer_id\"));\n\t\t\tlong seller_id = Long.parseLong(request.getParameter(\"seller_id\"));\n\t\t\tString subject = request.getParameter(\"subject\"),\n\t\t\t\t message = request.getParameter(\"message\");\n\t\t\tif(subject == null) subject = \"\";\n\t\t\tif(message == null) message = \"\";\n\t\t\t\n\t\t\tString buyer_username = \"\",\n\t\t\t\t TO=\"\",\n\t\t\t\t seller_username=\"\",\n\t\t\t\t seller_firstname=\"\",\n\t\t\t\t seller_lastname=\"\",\n\t\t\t\t seller_email=\"\";\n\t\t\t\n\t\t\tIterator<BuyerVO> buyer_itr = BuyerDAO.getBuyerById(buyer_id).iterator();\n\t\t\twhile(buyer_itr.hasNext()){\n\t\t\t\tBuyerVO bvo = buyer_itr.next();\n\t\t\t\tbuyer_username = bvo.getUsername();\n\t\t\t\tTO = bvo.getEmail();\n\t\t\t}\n\t\t\t\n\t\t\tIterator<SellerVO> seller_itr = SellerDAO.getSellerById(seller_id).iterator();\n\t\t\twhile(seller_itr.hasNext()){\n\t\t\t\tSellerVO svo = seller_itr.next();\n\t\t\t\tseller_firstname = svo.getFirstname();\n\t\t\t\tseller_lastname = svo.getLastname();\n\t\t\t\tseller_email = svo.getEmail();\n\t\t\t}\n\t\t\t\n\t\t\tfinal String FROM = \"[email protected]\";\t// Basic details of my account\n\t\t String USERNAME = \"[email protected]\";\n\t\t String PASSWORD = \"samarthshah\";\n\t\t final String HOST = \"smtp.gmail.com\";\n\n\t\t // Get system properties\n\t Properties props = new Properties();\n\t props.put(\"mail.smtp.auth\", \"true\");\n\t props.put(\"mail.smtp.starttls.enable\", \"true\");\n\t props.put(\"mail.smtp.host\", HOST);\n\t props.put(\"mail.smtp.port\", \"587\");\n\t\t \n\t // Get the default Session object.\n\t Session msg_session = Session.getInstance(props,\n\t \t\tnew javax.mail.Authenticator() {\n\t \t\t protected PasswordAuthentication getPasswordAuthentication() {\n\t \t\t return new PasswordAuthentication(USERNAME, PASSWORD);\n\t \t\t }\n\t\t });\n\n\t\t try{\n\t\t \t// Create a default MimeMessage object.\n\t\t MimeMessage msg2buyer = new MimeMessage(msg_session);\n\n\t\t // Set From: header field of the header.\n\t\t\t\tmsg2buyer.setFrom(new InternetAddress(FROM, seller_username));\t// Shows that it is sent by sellers username\n\n\t\t // Set To: header field of the header.\n\t\t msg2buyer.setRecipient(Message.RecipientType.TO, new InternetAddress(TO));\n\t\t\t \n\t \t// Set Subject: header field\n\t\t msg2buyer.setSubject(subject);\t// Subject set by the seller.\n\t\t msg2buyer.setContent(\"<h1>Dear \"+buyer_username+\",</h1>\"\n \t\t\t\t\t\t\t\t+ \"<p>The following message is sent to you by \"+seller_firstname+\" \"+seller_lastname+\".</p><hr/>\"\n \t\t\t\t\t\t\t\t+ \"<p><strong>\"+ message +\"</strong></p><hr/>\"\n \t\t\t\t\t\t\t\t+ \"<p>Please contact him back on \"+seller_email+\"</p>\"\n \t\t\t\t\t\t\t\t+ \"<br/><p>Happy Gaming.<br/>\"\n \t\t\t\t\t\t\t\t+ \"<strong>Game-Zone Team</strong></p>\", \"text/html\");\t// The message written by seller.\n\t\t msg2buyer.saveChanges();\n\t\t Transport.send(msg2buyer); // Send message\n\t\t }\n\t\t \n\t\t catch (MessagingException mex) {\n\t\t mex.printStackTrace();\n\t\t }\n\t\t \n\t\t\tHttpSession session = request.getSession();\n\t\t\tsession.setAttribute(\"msg\", \"The message has been sent successfully.\");\n\t\t}\n\t\telse{\n\t\t\tHttpSession session = request.getSession();\n\t\t\tsession.setAttribute(\"msg\", \"Please select a buyer first!\");\n\t\t}\n\t\tresponse.sendRedirect(request.getContextPath()+\"/Seller_Buyer/seller_messageBuyer.jsp\");\n\t}",
"@Asynchronous\n public void sendSimpleEmail(String subject, String text, String ... recepients) {\n try {\n Message m = new MimeMessage(noReplySession);\n Address[] addrs = InternetAddress.parse(StringUtils.concat(recepients, \";\"), false);\n m.setRecipients(Message.RecipientType.TO, addrs);\n m.setSubject(subject);\n m.setFrom(InternetAddress.parse(\"[email protected]\", false)[0]);\n m.setText(text);\n m.setSentDate(new Date());\n Transport.send(m);\n } catch (Exception ex) {\n log.error(\"sendSimpleEmail(): failed to send message.\", ex);\n }\n }",
"public static void goSendMail(\n\t\t\tString targetMail\n\t\t\t,String subject\n\t\t\t,String mailContext\n\t\t\t) {\n\t String to = targetMail;\n\n\t // Sender's email ID needs to be mentioned\n\t String from = \"[email protected]\";\n\n\t // Assuming you are sending email from localhost\n//\t String host = \"localhost\";\n\n\t // Get system properties\n\t\t\tProperties props = new Properties();\n\t\t\t/* SMTP設定 */\n\t\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\t\t/* 啟用TLS */\n\t\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\t\t/* 設定寄件者email */\n\t\t\tprops.put(\"mail.smtp.host\", mailHost);\n\t\t\t/* 設定寄件所需的port */\n\t\t\tprops.put(\"mail.smtp.port\", mailPort);\n\n\t\t\t\n\t // Setup mail server\n//\t properties.setProperty(\"mail.smtp.host\", host);\n\n\t // Get the default Session object.\n\t Session session = Session.getDefaultInstance(props, new javax.mail.Authenticator(){\n\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\treturn new PasswordAuthentication(mailUser, mailPassword);\n\t\t\t\t}\n\t\t\t});\n\n\t try{\n\t // Create a default MimeMessage object.\n\t MimeMessage message = new MimeMessage(session);\n\t message.setContent(mailContext, \"text/html; Charset=UTF-8\");\n\n\t // Set From: header field of the header.\n\t message.setFrom(new InternetAddress(from));\n\n\t // Set To: header field of the header.\n\t message.addRecipient(Message.RecipientType.TO,\n\t new InternetAddress(to));\n\n\t // Set Subject: header field\n\t message.setSubject(subject);\n\n\t // Now set the actual message\n\t message.setText(mailContext);\n\n\t // Send message\n\t Transport.send(message);\n\t System.out.println(\"Sent message successfully....\");\n\t }catch (MessagingException mex) {\n\t mex.printStackTrace();\n\t }\n\n\t}"
] | [
"0.6855341",
"0.6796424",
"0.67919016",
"0.67129654",
"0.6704622",
"0.65124065",
"0.64766544",
"0.64753383",
"0.6441584",
"0.63933116",
"0.6387366",
"0.6366865",
"0.6327531",
"0.63160586",
"0.6297658",
"0.62864697",
"0.62849313",
"0.62633485",
"0.6233697",
"0.6214315",
"0.6210253",
"0.62069076",
"0.6203237",
"0.62004685",
"0.62000334",
"0.6198589",
"0.6192179",
"0.6172374",
"0.61676234",
"0.61575997",
"0.6132184",
"0.61036867",
"0.60880905",
"0.6071462",
"0.6063345",
"0.6062244",
"0.60596585",
"0.6056133",
"0.6009595",
"0.60093486",
"0.60051984",
"0.5991982",
"0.5991565",
"0.5983736",
"0.59653103",
"0.595573",
"0.5944163",
"0.59369457",
"0.593067",
"0.59052885",
"0.5876524",
"0.58715576",
"0.58599824",
"0.5855667",
"0.58512616",
"0.5844795",
"0.5843873",
"0.58431846",
"0.58280486",
"0.58143604",
"0.58121485",
"0.58115196",
"0.58094704",
"0.58070344",
"0.5804593",
"0.579963",
"0.5794435",
"0.5781279",
"0.577285",
"0.5770037",
"0.5758422",
"0.5752123",
"0.57492715",
"0.57416296",
"0.5741579",
"0.574149",
"0.57383317",
"0.5735243",
"0.5733642",
"0.5709873",
"0.5699521",
"0.56990695",
"0.5697478",
"0.56839633",
"0.56800145",
"0.5673056",
"0.5672762",
"0.5659908",
"0.5656563",
"0.56509274",
"0.5650884",
"0.5649207",
"0.5649037",
"0.56426835",
"0.5633277",
"0.56314206",
"0.56307715",
"0.5607731",
"0.56068647",
"0.5559022"
] | 0.69206846 | 0 |
Sending email utility function via normal port 25. Note: This method uses JavaMail | public static boolean sendMail(String from, String[] to, String host, String subject, String content) throws Exception{
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SendEmail() {\t\n\t}",
"public void sendEmail(String recipient,String password);",
"private void sendEmail() {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n\n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"This is the Subject Line!\");\n\n // Now set the actual message\n message.setText(\"This is actual message\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public void sendEmail(String[] to, String subject, String body, MailMimeType mailMimeType) throws EmailNotSendedException {\n if(emailConfig == null){\n throw new EmailNotSendedException(\"Servidor de email não está configurado\");\n }\n // Validar configuracoes de email\n ValidatorFactory validatorFactory = Validation.buildDefaultValidatorFactory();\n Validator validator = validatorFactory.getValidator();\n Set<ConstraintViolation<EmailConfig>> violations = validator.validate(emailConfig);\n if(violations.size() > 0){\n throw new EmailNotSendedException(\"Configurações de Email Incorretas ao tentar enviar\");\n }\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", emailConfig.getHost());\n props.put(\"mail.smtp.port\", emailConfig.getPort());\n if (emailConfig.getProtocol() == Protocol.TLS) {\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n }else if(emailConfig.getProtocol() == Protocol.SMTPS){\n props.put(\"mail.smtp.ssl.enable\", \"true\");\n }\n final String username = emailConfig.getLogin();\n final String password = emailConfig.getPassword();\n final String from = emailConfig.getSender();\n Authenticator authenticator = null;\n if(emailConfig.getNeedAuthentication()){\n\n props.put(\"mail.smtp.auth\", \"true\");\n authenticator = new Authenticator() {\n private PasswordAuthentication pa = new PasswordAuthentication(username, password);\n\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return pa;\n }\n };\n }\n\n Session session = Session.getInstance(props, authenticator);\n session.setDebug(emailConfig.getDebug());\n MimeMessage message = new MimeMessage(session);\n try {\n message.setFrom(new InternetAddress(from));\n InternetAddress[] address = new InternetAddress[to.length];\n\n for (int i = 0; i < to.length; i++) {\n try {\n address[i] = new InternetAddress(to[i]);\n } catch (Exception e) {\n throw new EmailNotSendedException(\"Endereço de email inválido\");\n }\n }\n message.setRecipients(Message.RecipientType.TO, address);\n message.setSubject(subject);\n message.setSentDate(new Date());\n\n Multipart multipart = new MimeMultipart(\"alternative\");\n\n MimeBodyPart bodyPart = new MimeBodyPart();\n\n switch (mailMimeType){\n case TXT:\n bodyPart.setText(body);\n break;\n case HTML:\n bodyPart.setContent(body, \"text/html\");\n break;\n default:\n bodyPart.setText(body);\n\n }\n\n multipart.addBodyPart(bodyPart);\n message.setContent(multipart);\n Transport.send(message);\n\n } catch (MessagingException ex) {\n throw new EmailNotSendedException(\"Não foi possível enviar email: \" + ex.getMessage());\n\n }\n\n }",
"private void sendEmail(String emailAddress, String subject, String body) {\n\t\t\n\t}",
"public java.lang.String sendMail(java.lang.String accessToken, java.lang.String toAddresses, java.lang.String subject, java.lang.String body, java.lang.String msgFrom) throws java.rmi.RemoteException;",
"public void SendEmail(){\n //Dummy Email Bot\n String from = \"[email protected]\";\n String emailPW = \"thisiscz2002\";\n\n try{\n Session session = Session.getDefaultInstance(init(), new Authenticator(){\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(from, emailPW);\n }});\n\n // -- Create a new message --\n Message msg = new MimeMessage(session);\n\n // -- Set the FROM and fields --\n msg.setFrom(new InternetAddress(from));\n msg.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(getRecipientEmail(),false));\n\n LocalDateTime myDateObj = LocalDateTime.now();\n DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n String formattedDate = myDateObj.format(myFormatObj);\n\n msg.setSubject(getEmailSubject());\n msg.setText(getMessage());\n msg.setSentDate(new Date());\n Transport.send(msg);\n\n //System.out.println(formattedDate + \" - Message sent.\");\n }catch (MessagingException e){\n System.out.println(\"Error: \" + e);\n }\n }",
"public Boolean sendEmail(String sender, String receiver, String subject, String body) throws Exception;",
"public static void sendMail(String to, String msg) throws RuntimeException, AddressException, MessagingException {\r\n Properties properties = System.getProperties();\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n properties.put(\"mail.smtp.port\", \"587\");\r\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\r\n// properties.setProperty(\"mail.smtp.host\", HOST);\r\n Session session = Session.getDefaultInstance(properties,\r\n new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(FROM, PASSWORD);\r\n }\r\n });\r\n\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n // Set From: header field of the header.\r\n message.setFrom(new InternetAddress(FROM));\r\n // Set To: header field of the header.\r\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to));\r\n // Set Subject: header field\r\n message.setSubject(\"Your confirmation code from Simple Blog register\");\r\n // Send the actual HTML message, as big as you like\r\n message.setContent(\r\n \"<h1>\" + msg + \"</h1><br/>\"\r\n + \"<h5>Please input your confirmation code to the web link:</h5>\"\r\n + \"<a href=\\\"\" + CONFIRM_URL + \"\\\">Click here</a>\",\r\n \"text/html\");\r\n\r\n // Send message \r\n Transport.send(message);\r\n System.out.println(\"message sent successfully....\");\r\n\r\n }",
"public static void sendEmail ( final String addr, final String subject, final String body )\n throws MessagingException {\n\n InputStream input = null;\n\n final String to = addr;\n final String from;\n final String username;\n final String password;\n final String host;\n\n final File emailFile;\n final String emailPath = System.getProperty( \"user.dir\" ) + \"/src/main/java/email.properties\";\n Scanner emailScan = null;\n\n try {\n emailFile = new File( emailPath );\n emailScan = new Scanner( emailFile );\n }\n catch ( final FileNotFoundException fnfe ) {\n emailScan = null;\n }\n\n if ( null != emailScan ) {\n emailScan.next(); // from\n from = emailScan.next();\n emailScan.next(); // username\n username = emailScan.next();\n emailScan.next(); // password\n password = emailScan.next();\n emailScan.next(); // host\n host = emailScan.next();\n emailScan.close();\n }\n else {\n final Properties properties = new Properties();\n final String filename = \"email.properties\";\n input = DBUtil.class.getClassLoader().getResourceAsStream( filename );\n if ( null != input ) {\n try {\n properties.load( input );\n }\n catch ( final IOException e ) {\n e.printStackTrace();\n }\n }\n from = properties.getProperty( \"from\" );\n username = properties.getProperty( \"username\" );\n password = properties.getProperty( \"password\" );\n host = properties.getProperty( \"host\" );\n }\n\n /*\n * Source for java mail code:\n * https://www.tutorialspoint.com/javamail_api/\n * javamail_api_gmail_smtp_server.htm\n */\n\n final Properties props = new Properties();\n props.put( \"mail.smtp.auth\", \"true\" );\n props.put( \"mail.smtp.starttls.enable\", \"true\" );\n props.put( \"mail.smtp.host\", host );\n props.put( \"mail.smtp.port\", \"587\" );\n\n final Session session = Session.getInstance( props, new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication () {\n return new PasswordAuthentication( username, password );\n }\n } );\n\n try {\n final Message message = new MimeMessage( session );\n message.setFrom( new InternetAddress( from ) );\n message.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to ) );\n message.setSubject( subject );\n message.setText( body );\n Transport.send( message );\n }\n catch ( final MessagingException e ) {\n e.printStackTrace();\n throw e;\n }\n }",
"public static void main(String [] args) throws Throwable, MessagingException {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n Properties prop = new Properties();\n\n prop.put(\"mail.smtp.auth\", true);\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.port\", \"587\");\n Session session = Session.getInstance(prop, new Authenticator() {\n \t @Override\n \t protected PasswordAuthentication getPasswordAuthentication() {\n \t return new PasswordAuthentication(\"sarowerhome\", \"tanvirj9\");\n \t }\n \t});\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(\n Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"Mail Subject\");\n\n String msg = \"This is my first email using JavaMailer\";\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(msg, \"text/html\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n }",
"public void sendEmail() {\n\t\tSystem.out.println(\"Loading session and Authenticating\");\n\t\tfinal Session session = Session.getInstance(getProtocolProporties(PROTOCOL_SEND), new Authenticator() {\n\n\t\t\t@Override\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(getProperty(\"username\"), getPassword());\n\t\t\t}\n\n\t\t});\n\t\tif(null == session) {\n\t\t\tSystem.err.println(\"Session is null, cann't proceed\");\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Authenticated, will try to send an email\");\n\n\t\ttry {\n\t\t\tfinal Message message = new MimeMessage(session) {\n\t\t\t\t//Print the message to console\n\t\t\t\t@Override\n\t\t\t\tpublic String toString() {\n\t\t\t\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"From : \").append(\"\\n\");\n\t\t\t\t\t\tfor (Address address : this.getFrom())\n\t\t\t\t\t\t\tstringBuilder.append(address).append(\"\\n\");\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"To : \").append(\"\\n\");\n\t\t\t\t\t\tfor (Address address : this.getRecipients(Message.RecipientType.TO))\n\t\t\t\t\t\t\tstringBuilder.append(address).append(\"\\n\");\n\t\t\t\t\t\tstringBuilder.append(\"Subject : \").append(\"\\n\").append(this.getSubject());\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"Sent Date : \").append(this.getSentDate());\n\t\t\t\t\t} catch (MessagingException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\treturn stringBuilder.toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\t//Get Mail field details\n\t\t\tmessage.setFrom(new InternetAddress(getProperty(\"username\")));\n\t\t\tmessage.setRecipient(Message.RecipientType.TO, new InternetAddress(getUserInput(\"to\")));\n\t\t\tmessage.setSubject(getUserInput(\"subject\"));\n\t\t\tmessage.setText(getUserInput(\"messageContent\"));\n\t\t\tmessage.setSentDate(new Date());\n\t\t\tSystem.out.println(\"Sending the mail as details below :\");\n\t\t\tSystem.out.println(message);\n\t\t\t\n\t\t\t//Send email here, this throws exception if fails\n\t\t\tTransport.send(message);\n\t\t\t\n\t\t\tSystem.out.println(\"Email Sent\");\n\t\t} catch (final MessagingException ex) {\n\t\t\tSystem.err.println(\"Error: \" + ex.getMessage());\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public void send() {\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String password = \"Oneplanner2017*\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\ttry {\n\t\t\tSession session = Session.getInstance(props,\n\t\t\t\t\t new javax.mail.Authenticator() {\n\t\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t\t}\n\t\t\t\t\t });\n\n\t\t\t\t\tMessage message = new MimeMessage(session);\n\t\t\t\t\tmessage.setFrom(new InternetAddress(\"[email protected]\"));\n\t\t\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\t\tInternetAddress.parse(\"[email protected]\"));\n\t\t\tmessage.setSubject(\"test\");\n\t\t\tmessage.setText(\"test\");\n\t\t\t\n\t\t\tTransport.send(message);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n }",
"private static void sendMail(String text) {\n Properties properties = System.getProperties();\n Session session = Session.getDefaultInstance(properties);\n\n //compose the message\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));\n message.setSubject(\"RAZER - AVAILABILITYT\");\n message.setText(text);\n\n // Send message\n Transport t = session.getTransport(\"smtps\");\n t.connect(\"smtp.gmail.com\", from, \"Shutting123\");\n t.sendMessage(message, message.getAllRecipients());\n log.error(\"message sent successfully....\");\n\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public void sendEmail(String receiver, Integer indexID){\r\n\t \r\n\t Properties props = new Properties();\r\n\t props.put(\"mail.smtp.host\", EMAIL_SERVER);\r\n\t props.put(\"mail.smtp.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t props.put(\"mail.smtp.auth\", \"true\");\r\n\t props.put(\"mail.smtp.socketFactory.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t props.put(\"mail.smtp.socketFactory.fallback\", \"false\");\r\n\t \r\n\t Session sess = Session.getInstance(props,\r\n\t\t\t new javax.mail.Authenticator() {\r\n\t\t \t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t \t\t\treturn new PasswordAuthentication(EMAIL_SENDER, PW_SENDER);\r\n\t\t \t\t}\r\n\t \t});\r\n\t \r\n\t try{ \r\n\t Message msg = new MimeMessage(sess);\r\n\t msg.setFrom(new InternetAddress(EMAIL_SENDER));\r\n\t msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(receiver));\r\n\t msg.setSubject(\"Notification regarding waitlist\");\r\n\t \r\n\t Transport.send(msg);\r\n\t System.out.println(\"Email has been send successfully!\"); \r\n\t }\r\n\t \r\n\t catch (MessagingException e){\r\n\t\t throw new RuntimeException(e);\r\n\t }\r\n\t \r\n\t \r\n\t }",
"public void sendMail(String to) throws URISyntaxException, IOException {\n final String username = \"kicsikacsacodecool\";//change accordingly\n final String password = \"codecool\";//change accordingly\n\n // Assuming you are sending email through relay.jangosmtp.net\n String host = \"relay.jangosmtp.net\";\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n // Get the Session object.\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n // Create a default MimeMessage object.\n Message message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(\"[email protected]\"));\n\n // Set To: header field of the header.\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n\n // Set Subject: header field\n message.setSubject(\"Webshop Registration\");\n\n // Now set the actual message\n message.setText(\"Welcome to the codecool webshop !!\");\n\n // Send message\n try {\n Transport.send(message);\n } catch (Exception e) {\n System.out.println(e);\n }\n\n System.out.println(\"Sent message successfully....\");\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"public void sendMail(String to, String subject, String text);",
"@Override\n public Future<EmailResult<String>> sendEmail(\n String subject,\n List<String> emailAddresses,\n String message,\n MailSettings settings,\n boolean enc) {\n if (enc) {\n settings.setPassword(encryptionService.encrypt(settings.getPassword()));\n }\n return emailThread.submit(createEmailer(subject, emailAddresses, message, message, settings));\n }",
"public void sendWithDefaultMessage() {\r\n String _from = \"A78B347F656\";\r\n String _password = \"55EE29A8C\";\r\n //Get properties object\r\n Properties props = new Properties();\r\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.put(\"mail.smtp.socketFactory.class\",\r\n \"javax.net.ssl.SSLSocketFactory\");\r\n props.put(\"mail.smtp.auth\", \"true\");\r\n props.put(\"mail.smtp.port\", \"465\");\r\n //get Session \r\n Session session = Session.getInstance(props,\r\n new javax.mail.Authenticator() {\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(_from, _password);\r\n }\r\n });\r\n //compose message \r\n try {\r\n MimeMessage message = new MimeMessage(session);\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(_to));\r\n message.setSubject(\"WELCOME TO TAHDIG\");\r\n message.setContent(\"<body>\"\r\n + \"<h1>TAHDIG</h1>\"\r\n + \"<h3>Dear \" + firstName + \" \" + lastName\r\n + \"</h3><h2>Thank you for Registering on TAHDIG,</h2>\"\r\n + \"<h3>The First Meal Sharing Platform</h3>\"\r\n + \"<em>Your Username: \" + username\r\n + \"</em><br/><em>Your Password: \" + userpass\r\n + \"</em><br/><a href='http://localhost:8080/msabouri-fp/'>Click here to go to the TAHDIG service</a></body>\",\r\n \"text/html; charset=utf8\");\r\n Transport.send(message);\r\n LOG.info(\"The email was sent successfully\");\r\n } catch (MessagingException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }",
"void send(Email email);",
"public void generateAndSendEmail(EmailSendingParameters emailParameters) throws AddressException, MessagingException {\r\n \r\n\t\t//Step1\t\t\r\n\t\tSystem.out.println(\"Setup Mail Server Properties..\");\r\n\t\tmailServerProperties = System.getProperties();\r\n\t\tmailServerProperties.put(\"mail.smtp.port\", \"587\");\r\n\t\tmailServerProperties.put(\"mail.smtp.auth\", \"true\");\r\n\t\tmailServerProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t\tSystem.out.println(\"Mail Server Properties have been setup successfully..\");\r\n \r\n\t\t//Step2\r\n\t\tSystem.out.println(\"Get Mail Session..\");\r\n\t\tgetMailSession = Session.getDefaultInstance(mailServerProperties, null);\r\n\t\tgenerateMailMessage = new MimeMessage(getMailSession);\r\n\t\tgenerateMailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(emailParameters.getEmailReceiverAdress()));\r\n\t\tgenerateMailMessage.setSubject(\"Greetings from Crunchify..\");\r\n\t\tString emailBody = \"EMAIL CONTENT (with html tags)\";\r\n\t\tgenerateMailMessage.setContent(emailBody, \"text/html\");\r\n\t\tSystem.out.println(\"Mail Session has been created successfully..\");\r\n \r\n\t\t//Step3\t\t\r\n\t\tSystem.out.println(\"Get Session\tand Send mail\");\r\n\t\tTransport transport = getMailSession.getTransport(\"smtp\");\r\n\r\n\t\tSystem.out.println(\"Sending message\");\r\n\t\ttransport.connect(/*smtp.gmail.com\", emailReceiverAdress* emailReceiverPassword*/); \r\n\t\ttransport.sendMessage(generateMailMessage, generateMailMessage.getAllRecipients());\r\n\t\tSystem.out.println(\"Message sended properly\");\r\n\t\ttransport.close();\r\n\t}",
"public void sendMail(String to, String cc, String bcc, String subject, String text);",
"public static void main(String[] args) {\n MailAdapter mailAdapter = MailAdapter.getInstance();\n mailAdapter.sendEmail(\"[email protected]\", \"[email protected]\", \"We are doing Java\", true);\n mailAdapter.receiveEmail();\n\n }",
"private static boolean emailSSL(String fromEmail, String password, String fromName, String smtpHostServer, String toEmail, String subject, String body) {\n System.out.println(\"SSLEmail Start\");\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", smtpHostServer); //SMTP Host\n props.put(\"mail.smtp.socketFactory.port\", \"465\"); //SSL Port\n props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\"); //SSL Factory Class\n props.put(\"mail.smtp.auth\", \"true\"); //Enabling SMTP Authentication\n props.put(\"mail.smtp.starttls.enable\", \"true\"); //enable STARTTLS\n props.put(\"mail.smtp.port\", \"465\"); //SMTP Port\n props.put(\"mail.debug\", \"true\");\n Authenticator auth = new Authenticator() {\n //override the getPasswordAuthentication method\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(fromEmail, password);\n }\n };\n System.out.println(\"fromEmail:\" + fromEmail);\n System.out.println(\"password:\" + password);\n Session session = Session.getDefaultInstance(props, auth);\n System.out.println(\"Session created\");\n return EmailUtil.sendEmail(fromEmail, fromName, session, toEmail, subject, body);\n// EmailUtil.sendAttachmentEmail(session, toEmail, \"SSLEmail Testing Subject with Attachment\", \"SSLEmail Testing Body with Attachment\");\n// EmailUtil.sendImageEmail(session, toEmail, \"SSLEmail Testing Subject with Image\", \"SSLEmail Testing Body with Image\");\n\n }",
"private static void sendMail(String toEmail, String mailText) {\n final String username = \"[email protected]\"; //The Email of the sender.\n final String password = \"emailpassword\";\n\n //Properties of the used SMTP server.\n Properties props = new Properties();\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(username));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(toEmail));\n message.setSubject(\"New Password - Household Manager\");\n //Message to the user\n message.setText(mailText);\n\n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"void send(String emailName);",
"@Override\r\n public void run() {\r\n Properties smtpProperties = System.getProperties();\r\n smtpProperties.put(\"mail.smtp.port\", \"587\");\r\n smtpProperties.put(\"mail.smtp.auth\", \"true\");\r\n smtpProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n try {\r\n Session smtpSession = Session.getDefaultInstance(smtpProperties, null);\r\n MimeMessage textMessage = new MimeMessage(smtpSession);\r\n textMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(recipientNumber + \"@\" + recipientCarrierDomain));\r\n textMessage.setContent(messageContent, \"text/plain\");\r\n Transport transport = smtpSession.getTransport(\"smtp\");\r\n transport.connect(\"smtp.gmail.com\", \"[email protected]\", \"csd@VT-1872\");\r\n transport.sendMessage(textMessage, textMessage.getAllRecipients());\r\n transport.close();\r\n } catch (AddressException ae) {\r\n System.out.println(\"Email Address Exception Occurred! See: \" + ae.getMessage());\r\n } catch (MessagingException me) {\r\n System.out.println(\"Email Messaging Exception Occurred! Internet Connection Required! See: \" + me.getMessage());\r\n }\r\n }",
"public void sendMail(String to, String cc, String subject, String text);",
"public static boolean sendMail() throws AddressException, MessagingException {\n Session session = Session.getDefaultInstance(properties);\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n // Set the RFC 822 \"From\" header field using the\r\n // value of the InternetAddress.getLocalAddress method.\r\n \r\n\t\tmessage.setFrom(new InternetAddress(from));\r\n\t\t\r\n // Add the given addresses to the specified recipient type.\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\r\n // Set the \"Subject\" header field.\r\n message.setSubject(\"hi..!\");\r\n // Sets the given String as this part's content,\r\n // with a MIME type of \"text/plain\".\r\n message.setText(\"Hi ......\");\r\n // Send message\r\n Transport.send(message);\r\n System.out.println(\"Message Send.....\");\r\n \r\n\t\treturn true;\r\n\t}",
"public void sendMessage() throws DLException{\n // adjust mail properties\n Properties properties = System.getProperties();\n properties.put(\"mail.smtp.port\", \"587\");\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\n properties.put(\"mail.smtp.auth\", \"true\");\n properties.setProperty(\"mail.smtp.host\", host);\n Session session = Session.getInstance(properties,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(sender, senderPassword);\n }\n });\n \n try { \n // MimeMessage object. \n MimeMessage message = new MimeMessage(session); \n \n // Set From Field: adding senders email to from field. \n message.setFrom(new InternetAddress(sender)); \n \n // Set To Field: adding recipient's email to from field. \n message.addRecipient(Message.RecipientType.TO, new InternetAddress(recipient)); \n \n // Set Subject: subject of the email \n message.setSubject(\"Reset Password Request\"); \n \n // set body of the email. \n message.setText(\"Here is your temporary password: \" + password + \"\\nIt will expire in 5 minutes.\"); \n \n // Send email. \n Transport.send(message); \n System.out.println(\"Mail successfully sent\");\n \n } catch (MessagingException mex) { \n new DLException(mex);\n System.out.println(\"Something went wrong in sending an email\");\n } \n }",
"private static boolean emailTLS(String fromEmail, String password, String fromName, String smtpHostServer, String toEmail, String subject, String body) {\n System.out.println(\"TLSEmail Start\");\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", smtpHostServer); //SMTP Host\n props.put(\"mail.smtp.port\", \"587\"); //TLS Port\n props.put(\"mail.smtp.auth\", \"true\"); //enable authentication\n props.put(\"mail.smtp.starttls.enable\", \"true\"); //enable STARTTLS\n //create Authenticator object to pass in Session.getInstance argument\n props.put(\"mail.debug\", \"true\");\n Authenticator auth = new Authenticator() {\n //override the getPasswordAuthentication method\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(fromEmail, password);\n }\n };\n Session session = Session.getInstance(props, auth);\n\n return EmailUtil.sendEmail(fromEmail, fromName, session, toEmail, subject, body);\n\n }",
"public void send() {\r\n String _from = \"[email protected]\";\r\n String _password = \"Ng101840\";\r\n //Get properties object\r\n Properties props = new Properties();\r\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.put(\"mail.smtp.socketFactory.class\",\r\n \"javax.net.ssl.SSLSocketFactory\");\r\n props.put(\"mail.smtp.auth\", \"true\");\r\n props.put(\"mail.smtp.port\", \"465\");\r\n //get Session \r\n Session session = Session.getInstance(props,\r\n new javax.mail.Authenticator() {\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(_from, _password);\r\n }\r\n });\r\n //compose message \r\n try {\r\n MimeMessage message = new MimeMessage(session);\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(_to));\r\n message.setSubject(subject);\r\n message.setText(this.message);\r\n Transport.send(message);\r\n LOG.info(\"The email was sent successfully\");\r\n } catch (MessagingException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }",
"public static void sendEmail(String host, String port, final String username, final String password, String address, \r\n String subject, String message) throws AddressException, MessagingException {\n Properties properties = new Properties();\r\n properties.put(\"mail.smtp.host\", host);\r\n properties.put(\"mail.smtp.port\", port);\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n \r\n //creates a new session with an authenticator\r\n Authenticator auth = new Authenticator() {\r\n public PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(username, password);\r\n }\r\n };\r\n \r\n Session session = Session.getInstance(properties, auth);\r\n \r\n //creates a new e-mail message\r\n Message m = new MimeMessage(session);\r\n \r\n m.setFrom(new InternetAddress(username));\r\n InternetAddress[] addresses = { new InternetAddress(address) };\r\n m.setRecipients(Message.RecipientType.TO, addresses);\r\n m.setSubject(subject);\r\n m.setSentDate(new Date());\r\n m.setText(message);\r\n \r\n //sends e-mail\r\n Transport.send(m);\r\n }",
"public void sendMailMessage(MailMessage mailMessage) throws MailerException;",
"@Test public void testMailer() throws Exception {\n ServerProperties properties = new ServerProperties();\n properties.setTestProperties();\n Server server = Server.newInstance(properties);\n Mailer mailer = Mailer.getInstance();\n assertTrue(\"Checking mailer\", mailer.send(\"[email protected]\", \"Test Subject\", \"TestBody\"));\n server.stop();\n }",
"public void sendEmail(\n ActionRequest actionRequest, ActionResponse actionResponse)\n throws IOException, PortletException {\n }",
"public void sendEmail(){\r\n EmailService emailSvc = new EmailService(email, username, password, firstName, lastName);\r\n Thread th = new Thread(emailSvc);\r\n LOG.info(\"Starting a new thread to send the email..\");\r\n th.start();\r\n LOG.info(\"The email was sent successfully\");\r\n }",
"private void SendEmail(String password, String emailTo, String staffNames)\n {\n String to = emailTo;\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"smtp.upcmail.ie\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n \n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try{\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"Password Change From Help Manager\");\n\n // Now set the actual message\n message.setText(\"Hello \"+staffNames +\", \\n\\n Your new Password is: \"+ password +\".\\n\\n Regards \\n Help Manager Team\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public static void sendEmail(String randPass) {\n\t\t// Recipient's email ID needs to be mentioned.\n\t String to = \"[email protected]\";\n\n\t // Sender's email ID needs to be mentioned\n\t String from = \"[email protected]\";\n\n\t // Get system properties\n\t Properties properties = System.getProperties();\n\t \tproperties = System.getProperties();\n\t properties.put(\"mail.smtp.auth\", \"true\");\n\t properties.put(\"mail.smtp.starttls.enable\", \"true\");\n\t properties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t properties.put(\"mail.smtp.port\", \"587\");\n\n\t // Get the default Session object.\n\t Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n\t protected PasswordAuthentication getPasswordAuthentication() {\n\t return new PasswordAuthentication(\"user\", \"pass\");\n\t }\n\t });\n\n\t try {\n\t // Create a default MimeMessage object.\n\t MimeMessage message = new MimeMessage(session);\n\n\t // Set From: header field of the header.\n\t message.setFrom(new InternetAddress(from));\n\n\t // Set To: header field of the header.\n\t message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\n\t // Set Subject: header field\n\t message.setSubject(\"Dart Password Reset\");\n\t // Now set the actual message\n\t message.setText(\"You're getting this message because you've requested to reset your password! Your new password is: \" + randPass + \" ! Don't forget it.\");\n\n\t // Send message\n\t Transport.send(message);\n\t System.out.println(\"Sent message successfully....\");\n\t } catch (MessagingException mex) {\n\t mex.printStackTrace();\n\t }\n\n\t}",
"public static void main(String[] args) throws AddressException, MessagingException, IOException {\n MonitoringMail mail = new MonitoringMail();\n mail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, TestConfig.messageBody, TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}",
"public void sendEmail(String aFromEmailAddr, String aToEmailAddr, String aSubject, String aBody) {\n\n // Here, no Authenticator argument is used (it is null).\n // Authenticators are used to prompt the user for user\n // name and password.\n Session session = Session.getDefaultInstance(getMailServerConfig(), null);\n MimeMessage message = new MimeMessage(session);\n try {\n // the \"from\" address may be set in code, or set in the\n // config file under \"mail.from\" ; here, the latter style is used\n message.setFrom(new InternetAddress(aFromEmailAddr));\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(aToEmailAddr));\n message.setSubject(aSubject);\n message.setText(aBody);\n Transport.send(message);\n } catch (MessagingException ex) {\n System.err.println(\"Cannot send email. \" + ex);\n }\n\n }",
"void send(String email, Locale locale);",
"void sendMail(String receivers) throws MessagingException;",
"public void sendEmail(String toAddr,String subject,String text){\n\t\tsendEmail(toAddr, subject, text, null);\n\t}",
"public interface IEmailProvider {\n\n void sendEmail(String[] toAddresses, String subject, String messageText);\n}",
"public static void main(String[] args) throws Exception {\n\t\tString str = \"Host:\" + InetAddress.getLocalHost() + \"<br>\";\n\t\tEnumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces();\n\t\tEnumeration<InetAddress> addresses;\n\t\twhile (en.hasMoreElements()) {\n\t\t\tNetworkInterface networkinterface = en.nextElement();\n\t\t\tstr += networkinterface.getName() + \"<br>\";\n\t\t\taddresses = networkinterface.getInetAddresses();\n\t\t\twhile (addresses.hasMoreElements()) {\n\t\t\t\tstr += addresses.nextElement().getHostAddress() + \"<br>\";\n\t\t\t}\n\t\t}\n\t\tString mailbody = str;\n\t\tEmailUtil themail = new EmailUtil();\n\t\tthemail.createMimeMessage();\n\t\tthemail.setNeedAuth(true);\n\t\tthemail.setSmtpHost(\"smtp.qq.com\");\n\t\tthemail.setSubject(\"测试\");\n\t\tthemail.setBody(mailbody);\n\t\tthemail.setTo(\"[email protected]\");\n\t\tthemail.setFrom(\"[email protected]\");\n\t\tthemail.setUserName(\"[email protected]\");\n\t\tthemail.setPassword(\"\");\n\t\tSystem.out.println(themail.sendMail() + \"===============\");\n\n\t}",
"public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }",
"public void sendPasswordEmail(String myEmail) {\n String to = myEmail;\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from this host\n String host = \"smtp.gmail.com\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n properties.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n properties.setProperty(\"mail.smtp.auth\", \"true\");\n properties.setProperty(\"mail.smtp.port\", \"587\");\n // Get the default Session object.\n Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"itkstuadmin\");\n }\n });\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"Password\");\n\n // Send the actual HTML message, as big as you like\n message.setContent(\"<p>Hello \" + theModel.getEmail() + \", your password is: \" + theModel.getPassword() + \"</p>\", \"text/html;charset=UTF-8\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public static boolean sendMailTLS(String from, String[] to, String host, String subject, String content) throws Exception{\n\t\tif(from == null || from.trim() == \"\"){\n\t\t\tthrow new Exception(\"Please set \\\"from\\\" properly\");\n\t\t}\n\t\t\n\t\tif(to == null || to.length == 0){\n\t\t\tthrow new Exception(\"Please set \\\"to\\\" properly\");\n\t\t}\n\t\t\n\t\tif(host == null || host.trim() == \"\"){\n\t\t\tthrow new Exception(\"Please set \\\"host\\\" properly\");\n\t\t}\n\t\t// User name and Password are needed when using Gmail SMTP mail server.\n\t\t// And this practice will ignore the from option set in the message.\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String pwd = \"\";\n\t\t\n\t\tProperties props = System.getProperties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", host);\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\t\t\n\t\t\n\t\tSession session = Session.getDefaultInstance(props,\n\t\t\tnew javax.mail.Authenticator() {\n\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\treturn new PasswordAuthentication(username, pwd);\n\t\t\t}\n\t\t });\n\t\t\n\t\tMimeMessage message = new MimeMessage(session);\n\t\t\n\t\ttry {\n\t\t\t// Set From: header field of the heard\n\t\t\tmessage.setFrom(new InternetAddress(\"[email protected]\"));\n\t\t\tAddress[] tos = new InternetAddress[to.length];\n\t\t\tfor(int i = 0; i < to.length; i ++){\n\t\t\t\ttos[i] = new InternetAddress(to[i]);\n\t\t\t}\n\t\t\t// Set To: header field of the header\n\t\t\tmessage.addRecipients(Message.RecipientType.TO, tos);\n\t\t\t// Set Subject: header field\n\t\t\tmessage.setSubject(subject);\n\t\t\t// Set email body content\n\t\t\tmessage.setText(content);\n\t\t\t// Send message\n\t\t\tTransport.send(message);\n\t\t\t\n\t\t} catch (AddressException e) {\n\t\t\te.printStackTrace();\n\t\t\tLOG.debug(e.getMessage());\n\t\t\treturn false;\n\t\t} catch (MessagingException e) {\n\t\t\te.printStackTrace();\n\t\t\tLOG.debug(e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t\t// Send successfully\n\t\treturn true;\n\t}",
"public static void main(String[] args) throws EmailException {\n\n\t\tString text= \"<table><tr><td>EmpId</td><td>Emp name</td><td>age</td></tr><tr><td>value</td><td>value</td><td>value</td></tr></table>\";\n\t\tEmail email=new SimpleEmail();\n\t\t//MailMessage mail = new MailMessage();\n\t\t\n\t\temail.setHostName(\"smtp.googlemail.com\");\n\t\temail.setSmtpPort(465);\n\t\temail.setAuthenticator(new DefaultAuthenticator(\"[email protected]\", \"\"));\n\t\temail.setSSL(true);\n\t\temail.setFrom(\"[email protected]\");\n\t\temail.setSubject(\"TestMail\");\n\t\temail.setMsg(text);\n\t\t\n\t\temail.addTo(\"[email protected]\");\n\t\temail.send();\n\t\t\n\t\tSystem.out.println(\"Email Sent Sucessfully\");\n\t\t\n}",
"private void sendMailInit() {\r\n\t\tif(mailSender == null){\r\n\t\t\tmailSender = new JavaMailSenderImpl();\r\n\t\t\tmailSender.setHost(ConfigManager.getInstance().getString(\"mail.host\"));\r\n\t\t\tmailSender.setPort(ConfigManager.getInstance().getInt(\"mail.port\", 25));\r\n\t\t\tmailSender.setUsername(ConfigManager.getInstance().getString(\"mail.username\"));\r\n\t\t\tmailSender.setPassword(ConfigManager.getInstance().getString(\"mail.password\"));\r\n\t\t\tmailSender.setDefaultEncoding(\"utf-8\");\r\n\t\t\tlogger.info(\"HOST>>>>>>>>>>>>>>>Host=\" + mailSender.getHost() + \",Port=\"+ mailSender.getPort());\r\n\t\t\tProperties props = new Properties();\r\n\t\t\tprops.setProperty(\"mail.smtp.auth\", \"true\");\r\n\t\t\tprops.setProperty(\"mail.smtp.timeout\", \"0\");\r\n\t\t\tmailSender.setJavaMailProperties(props);\r\n\t\t\tthis.setMailSender(mailSender);\r\n\t\t}\r\n\t}",
"public static void sendEmail(EmailSendable e, String message){\n\t\tSystem.out.println(\"Email-a bidali da: \"+message);\r\n\t}",
"void sendCommonMail(String to, String subject, String content);",
"public String sendEmail() {\n String to = theModel.getEmail();\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from this host\n String host = \"smtp.gmail.com\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n properties.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n properties.setProperty(\"mail.smtp.auth\", \"true\");\n properties.setProperty(\"mail.smtp.port\", \"587\");\n // Get the default Session object.\n Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"itkstuadmin\");\n }\n });\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject( subject, \"text/html\");\n\n // Send the actual HTML message, as big as you like\n message.setContent( text , \"text/html\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n return \"UniLog.xhtml\";\n }",
"public void sendHtmlEmail(String host, String port, final String userName,\r\n\t\t\tfinal String password, String toAddress, String subject,\r\n\t\t\tString message) throws AddressException, MessagingException {\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"mail.smtp.host\", host);\r\n\t\tproperties.put(\"mail.smtp.port\", port);\r\n\t\tproperties.put(\"mail.smtp.auth\", \"true\");\r\n\t\tproperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\r\n\t\t// creates a new session with an authenticator\r\n\t\tAuthenticator auth = new Authenticator() {\r\n\t\t\tpublic PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t\treturn new PasswordAuthentication(userName, password);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tSession session = Session.getInstance(properties, auth);\r\n\r\n\t\t// creates a new e-mail message\r\n\t\tMessage msg = new MimeMessage(session);\r\n\r\n\t\tmsg.setFrom(new InternetAddress(userName));\r\n\t\tInternetAddress[] toAddresses = { new InternetAddress(toAddress) };\r\n\t\tmsg.setRecipients(Message.RecipientType.TO, toAddresses);\r\n\t\tmsg.setSubject(subject);\r\n\t\tmsg.setSentDate(new Date());\r\n\t\t// set plain text message\r\n\t\tmsg.setContent(message, \"text/html\");\r\n\r\n\t\t// sends the e-mail\r\n\t\tTransport.send(msg);\r\n\r\n\t}",
"public static void main(String[] args) throws UnknownHostException, AddressException, MessagingException {\n\t\tSystem.out.println(InetAddress.getLocalHost().getHostAddress());\n\t\tMonitoringMail mail = new MonitoringMail();\n\t\tString messageBody=\"https://\"+InetAddress.getLocalHost().getHostAddress()+ \":8080/C:/work/Selenium/LiveProjects/PageObjectModelBasics/target/surefire-reports/html/extent.html\";\n\t\tSystem.out.println(messageBody);\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody,TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}",
"public static void sendMail(String subject, String htmlBody, String textBody, Collection<File> attachments, String recipient, String sender, List<String> cc, List<String> bcc, boolean deliveryReceipt, boolean readReceipt, String host, long port, String securityProtocol, String user, String password, boolean async) throws MessagingException, IOException\n {\n MailSender mailSender = new MailSender(_LOGGER, subject, htmlBody, textBody, attachments, recipient, sender, cc, bcc, deliveryReceipt, readReceipt, host, port, securityProtocol, user, password);\n \n if (!async)\n {\n mailSender.sendMail();\n }\n else\n {\n __SINGLE_THREAD_EXECUTOR.execute(mailSender);\n }\n }",
"String sendSimpleMessageV2(String from, String fromMail, String to, String subject, String body);",
"public static void sendMail(String fromAddr,String pass,String targetAddr,String subj,String msg) {\n\n final String username = fromAddr;\n final String password = pass;\n\n Properties props = new Properties();\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(username));\n message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(targetAddr));\n message.setSubject(subj);\n message.setText(msg);\n \n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"@RequestMapping(\"/mail\")\n\tpublic String mail() throws MessagingException {\n\t\tmailsender.send(\"[email protected]\", \"A test mail\", \"body of the test mail\");\n\t\t\n\t\treturn \"mail sent by Nawaki to the localhost...........\";//result\n\t}",
"public void sendEmail(String toAddress, String subject, String bodyText) throws MailException{\n SimpleMailMessage msg = new SimpleMailMessage();\n msg.setTo(toAddress);\n msg.setSubject(subject);\n msg.setText(bodyText);\n\n javaMailSender.send(msg);\n }",
"public void send(String toEmail){\n Session session = Session.getInstance(props, new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(this.username));\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(toEmail));\n message.setSubject(\"RWS TICKET SUPPORT\");\n\n BodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setText(\"Thank you for using the services of our company!\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n messageBodyPart = new MimeBodyPart();\n\n String filename = String.format(\n \"C:/Users/Ozhmegov/Desktop/t-systems/RWS/service/src/main/java/util/tickets/ticket_%s.pdf\", trainNumber\n );\n DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(String.format(\"ticket_%s.pdf\", trainNumber));\n multipart.addBodyPart(messageBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n LOG.info(\"Message sended on email: {}\", toEmail);\n } catch (MessagingException e) {\n LOG.error(\"Message not sended on email: {}\", toEmail);\n throw new EmailSenderServiceException(String.format(\"Message not sended on email: %s\", toEmail));\n }\n }",
"private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }",
"public void sendMail(String subject, String text)\r\n {\r\n try\r\n {\r\n Message msg = new MimeMessage(session);\r\n msg.setRecipients(Message.RecipientType.TO, receivers);\r\n msg.setSubject(subject);\r\n msg.setText(text);\r\n Transport.send(msg);\r\n System.out.println(\"Message sent to\");\r\n for(InternetAddress ad: receivers)\r\n {\r\n System.out.println(ad.toUnicodeString());\r\n }\r\n System.out.println(\"Successfully\");\r\n }\r\n catch (Exception ex)\r\n {\r\n System.out.println(\"Exception: \"+ ex);\r\n }\r\n }",
"void sendEmail(Job job, String email);",
"private static void testMail() throws Exception {\n\t\tUser user=new User();\n\t\tuser.setUsername(\"若水\");\n\t\tuser.setEmail(\"[email protected]\");\n\t\tMail mail=new Mail();\n\t\tboolean b=mail.sendMail(user, \"http://www.baidu.com\", \"http://www.zzuli.edu.cn\", 2);\n\t\tSystem.out.println(b);\n\t}",
"@Test\n public void mailNoEsmtpTest(TestContext testContext) {\n this.testContext=testContext;\n smtpServer.setDialogue(\"220 example.com\",\n \"EHLO \",\n \"502 EHLO command not understood\",\n \"HELO \",\n \"250 example.com\",\n \"MAIL FROM\",\n \"250 2.1.0 Ok\",\n \"RCPT TO\",\n \"250 2.1.5 Ok\",\n \"DATA\",\n \"354 End data with <CR><LF>.<CR><LF>\",\n \"250 2.0.0 Ok: queued as ABCDDEF0123456789\",\n \"QUIT\",\n \"221 2.0.0 Bye\");\n smtpServer.setCloseImmediately(false);\n\n testSuccess();\n }",
"public void sendMail() {\n String email = emailID.getText().toString();\n String subject = \"BlueBucket One-Time OTP\";\n otp=generateOTP();\n String message = \"\"+otp;\n\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }",
"private void sendEmail(String email, String password, String name) {\n \n String to = email;\n String from = \"[email protected]\";\n String subject = \"New Password\";\n String body = \"Dear \" + name + \",\\n\\n\" +\n \"You recently requested a password change. Here is your new password: \\n\\n\" +\n password +\n \"\\n\\nHave a great day!\\n\\n\" +\n \"Twitter Team\\n\" +\n \"Alex Foreman & Paul Brown\";\n boolean isBodyHTML = false;\n\n try\n {\n MailUtilYahoo.sendMail(to, from, subject, body, isBodyHTML);\n }\n catch (MessagingException e)\n {\n this.log(\n \"Unable to send email. \\n\" +\n \"Here is the email you tried to send: \\n\" +\n \"=====================================\\n\" +\n \"TO: \" + email + \"\\n\" +\n \"FROM: \" + from + \"\\n\" +\n \"SUBJECT: \" + subject + \"\\n\" +\n \"\\n\" +\n body + \"\\n\\n\");\n } \n }",
"public static void sendMail(String subject, String htmlBody, String textBody, String recipient, String sender, String host, long port, String securityProtocol, boolean async) throws MessagingException\n {\n sendMail(subject, htmlBody, textBody, recipient, sender, host, port, securityProtocol, null, null, async);\n }",
"public void sendMail(String address, String content) {\n }",
"private void sendEmail() {\n\n // Set up an intent object to send email and fill it out\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n\n // An array of string addresses\n String[] toAddress = new String[]{getString(R.string.email_company_contact)};\n emailIntent.putExtra(Intent.EXTRA_EMAIL, toAddress);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.email_subject));\n emailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.email_default_text));\n\n // Error handler, try to execute code\n try {\n // Starts a new screen to send email\n startActivity(Intent.createChooser(emailIntent, getString(R.string.email_prompt)));\n finish();\n } catch (android.content.ActivityNotFoundException ex) {\n // An error occurred trying to use the activity\n Toast.makeText(this,\n getString(R.string.error_send_email), Toast.LENGTH_SHORT).show();\n // Missing a finally that closes the activity?\n }\n }",
"public static void send(String smtpServer, String to, String from, String subject, String body) {\n try {\n Properties props = System.getProperties();\n\n props.put(\"mail.smtp.host\", smtpServer);\n Session session = Session.getDefaultInstance(props, null);\n\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(from));\n msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));\n\n msg.setSubject(subject);\n msg.setText(body);\n\n msg.setHeader(\"X-Mailer\", \"ezDL\");\n msg.setSentDate(new Date());\n\n Transport.send(msg);\n }\n catch (MessagingException ex) {\n logger.error(ex.getMessage(), ex);\n }\n }",
"public void sendEmail(String username, String password) throws Throwable {\r\n\t\tString emailSubject = \"Test Report on \" + new Date();\r\n\t\tString emailMsg = \"This is an automatically generated email for test run\";\r\n\t\tEmailAttachment attachment = new EmailAttachment();\r\n\t\tattachment.setPath(\"test-output/emailable-report.html\");\r\n\t\tattachment.setDisposition(EmailAttachment.ATTACHMENT);\r\n\t\tattachment.setDescription(\"Test Report\");\r\n\t\tMultiPartEmail email = new MultiPartEmail();\r\n\t\temail.setHostName(\"imap.gmail.com\");\r\n\t\temail.setSmtpPort(465);\r\n\t\temail.setAuthenticator(new DefaultAuthenticator(username, password));\r\n\t\temail.setSSLCheckServerIdentity(true);\r\n\t\temail.setSSLOnConnect(true);\r\n\t\tSystem.out.println(\"Connected to gmail..\");\r\n\t\tSystem.out.println(\"Sending mail to: \" + toEmails);\r\n\t\tSystem.out.println(\"Subject: \" + emailSubject + \"\\nEmail Body: \" + emailMsg);\r\n\t\temail.setFrom(username);\r\n\t\temail.setSubject(emailSubject);\r\n\t\temail.setMsg(emailMsg);\r\n\t\tString[] emails = toEmails.split(\",\");\r\n\t\temail.addTo(emails);\r\n\t\temail.attach(attachment);\r\n\t\temail.send();\r\n\t\tSystem.out.println(\"Email Sent..\");\r\n\t}",
"public static void main(String[] args) {\n\t\tSendEmail sendEmail = new SendEmail();\n\t\tSystem.out.println(\"Welcome\");\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Please enter your email address: \");\n\t\tString emailAddress = sc.nextLine(); //read input till enter\n\t\t\n\t\tSystem.out.println(\"Now email To: \");\n\t\tString to = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"What about the Subject: \");\n\t\tString subject = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"Finally write your email/letter: \");\n\t\tString text = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"From: \" + emailAddress);\n\t\tSystem.out.println(\"To: \" + to);\n\t\tSystem.out.println(\"Subject: \" + subject);\n\t\tSystem.out.println(\"Text: \" + text);\n\t\tString pass = \"\";\n Console console = System.console();\n if (console == null) { //BUG IN IDEs console from .readPassword\n System.out.println(\"Parece que estas usando un IDE asi que cuando escribas la contraseña SERÁ visible: \");\n pass = sc.nextLine();\n sc.close();\n }\n\t else { //Outside Eclipse IDE\n pass = new String(console.readPassword(\"Password: \"));\n\t } \n\t\tsc.close();\n\t\t\n\t\ttry {\n\t\t\tsendEmail.send(emailAddress, to, subject, text, pass);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private static void sendAttachmentEmail(Session session, String toEmail, String subject, String body) {\n try {\n MimeMessage msg = new MimeMessage(session);\n msg.addHeader(\"Content-type\", \"text/HTML; charset=UTF-8\");\n msg.addHeader(\"format\", \"flowed\");\n msg.addHeader(\"Content-Transfer-Encoding\", \"8bit\");\n msg.setFrom(new InternetAddress(\"[email protected]\", \"NoReply-JD\"));\n msg.setReplyTo(InternetAddress.parse(\"[email protected]\", false));\n msg.setSubject(subject, \"UTF-8\");\n msg.setSentDate(new Date());\n msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(toEmail, false));\n // Create the message body part\n BodyPart messageBodyPart = new MimeBodyPart();\n // Fill the message\n messageBodyPart.setText(body);\n // Create a multipart message for attachment\n Multipart multipart = new MimeMultipart();\n // Set text message part\n multipart.addBodyPart(messageBodyPart);\n // Second part is attachment\n messageBodyPart = new MimeBodyPart();\n String filename = \"abc.txt\";\n DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(filename);\n multipart.addBodyPart(messageBodyPart);\n // Send the complete message parts\n msg.setContent(multipart);\n // Send message\n Transport.send(msg);\n System.out.println(\"EMail Sent Successfully with attachment!!\");\n } catch (MessagingException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }",
"public interface EmailService {\n\n void sendEmail(String to, String attachmentName) throws MessagingException, IOException;\n}",
"@Override\n public void sendEmail() {\n return;\n }",
"@Override\n public void sendEmail(String emailBody) {\n }",
"public MainMailPage sendMail(String to, String subject, String text) {\n\tLOG.info(\"Start sendMail\\n\");\n\twritterMail(to, subject, text);\n\tsendToMail.click();\n\tcheckDialogBox();\n\treturn new MainMailPage(driver);\n }",
"public String sendEmailSMTP(final SendEmailRequest request) throws Exception {\n\t\tProperties props = System.getProperties();\n\t\tprops.put(\"mail.transport.protocol\", \"smtp\");\n\t\tprops.put(\"mail.smtp.port\", Constant.PORT);\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\n\t\t// Create a Session object to represent a mail session with the specified\n\t\t// properties.\n\t\tSession session = Session.getDefaultInstance(props);\n\n\t\tString DefaultCharSet = MimeUtility.getDefaultJavaCharset();\n\n\t\t// Create a new MimeMessage object.\n\t\tMimeMessage message = new MimeMessage(session);\n\n\t\t// Add subject, from and to lines.\n\t\tmessage.setSubject(request.getEmailSubject(), \"UTF-8\");\n\t\tmessage.setFrom(new InternetAddress(request.getSenderEmailAddress(), request.getSenderName()));\n\t\tmessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(request.getRecipientEmailAddress()));\n\n\t\t// Create a multipart/alternative child container.\n\t\tMimeMultipart msg_body = new MimeMultipart(\"alternative\");\n\n\t\t// Create a wrapper for the HTML and text parts.\n\t\tMimeBodyPart wrap = new MimeBodyPart();\n\n\t\t// Define the HTML part.\n\t\tMimeBodyPart htmlPart = new MimeBodyPart();\n\t\t// Encode the HTML content and set the character encoding.\n\t\tString emailBody = \"Hello, \".concat(request.getRecipientName()).concat(\"\\r\\n\").concat(request.getEmailBody());\n\t\thtmlPart.setContent(MimeUtility.encodeText(emailBody, DefaultCharSet, \"B\"), \"text/html; charset=UTF-8\");\n\t\thtmlPart.setHeader(\"Content-Transfer-Encoding\", \"base64\");\n\n\t\t// Add the text and HTML parts to the child container.\n\t\tmsg_body.addBodyPart(htmlPart);\n\n\t\t// Add the child container to the wrapper object.\n\t\twrap.setContent(msg_body);\n\n\t\t// Create a multipart/mixed parent container.\n\t\tMimeMultipart msg = new MimeMultipart(\"mixed\");\n\n\t\t// Add the multipart/alternative part to the message.\n\t\tmsg.addBodyPart(wrap);\n\n\t\t// Define the attachment\n\t\tString attachmentUrl = request.getAttachmentUrl();\n\t\tif (null != attachmentUrl && !attachmentUrl.isEmpty()) {\n\t\t\tMimeBodyPart att = new MimeBodyPart();\n\t\t\tDataSource fds = new FileDataSource(uploadFile.saveUrlAs(attachmentUrl));\n\t\t\tatt.setDataHandler(new DataHandler(fds));\n\t\t\tatt.setFileName(fds.getName());\n\t\t\t// Add the attachment to the message.\n\t\t\tmsg.addBodyPart(att);\n\t\t\tSystem.out.println(\"Attempting to send an email through Amazon SES \" + \"using the AWS SDK for Java...\");\n\t\t}\n\n\t\t// Add the parent container to the message.\n\t\tmessage.setContent(msg);\n\n\t\t// Add a configuration set header. Comment or delete the\n\t\t// next line if you are not using a configuration set\n\t\t// msg.setHeader(\"X-SES-CONFIGURATION-SET\", CONFIGSET);\n\n\t\t// Create a transport.\n\t\tTransport transport = session.getTransport();\n\n\t\t// Send the message.\n\t\ttry {\n\t\t\tSystem.out.println(\"Sending...\");\n\n\t\t\t// Connect to Amazon SES using the SMTP username and password you specified\n\t\t\t// above.\n\t\t\ttransport.connect(Constant.HOST, Constant.SMTP_USERNAME, Constant.SMTP_PASSWORD);\n\n\t\t\t// Send the email.\n\t\t\ttransport.sendMessage(message, message.getAllRecipients());\n\n\t\t\tdynamodbService.insertData(request);\n\t\t\tSystem.out.println(\"Email sent!\");\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"The email was not sent.\");\n\t\t\tSystem.out.println(\"Error message: \" + ex.getMessage());\n\t\t} finally {\n\t\t\t// Close and terminate the connection.\n\t\t\ttransport.close();\n\t\t}\n\t\treturn Constant.SENDVERFIYSTATUS;\n\t}",
"public void testDynamicMailto() {\r\n Map<String, String> parameters = new HashMap<String, String>();\r\n ConnectionParameters cp = new ConnectionParameters(new MockConnectionEl(parameters,\r\n \"mailto:$address?subject=$subject\"), MockDriverContext.INSTANCE);\r\n final Map<String,String> params = new HashMap<String, String>();\r\n MailConnection mc = new MailConnection(cp) {\r\n @Override\r\n protected void send(MimeMessage message) {\r\n try {\r\n assertEquals(params.get(\"address\"), message.getRecipients(Message.RecipientType.TO)[0].toString());\r\n assertEquals(\"Message. \"+params.get(\"example\"), message.getContent());\r\n assertEquals(params.get(\"subject\"), message.getSubject());\r\n } catch (Exception e) {\r\n throw new IllegalStateException(e);\r\n }\r\n\r\n }\r\n };\r\n params.put(\"address\", \"[email protected]\");\r\n params.put(\"example\", \"*example*\");\r\n params.put(\"subject\", \"Hello1\");\r\n mc.executeScript(new StringResource(\"Message. $example\"), MockParametersCallbacks.fromMap(params));\r\n params.put(\"address\", \"[email protected]\");\r\n params.put(\"subject\", \"Hello2\");\r\n mc.executeScript(new StringResource(\"Message. $example\"), MockParametersCallbacks.fromMap(params));\r\n params.put(\"address\", \"////@\");\r\n try {\r\n mc.executeScript(new StringResource(\"Message. $example\"), MockParametersCallbacks.fromMap(params));\r\n } catch (MailProviderException e) {\r\n assertTrue(\"Invalid address must be reported\", e.getMessage().indexOf(\"////@\")>=0);\r\n }\r\n\r\n\r\n }",
"private void sendBookingConfirmMailWithMailtrapProvider(String userEmail, String token) throws MessagingException {\n String to = userEmail;//change accordingly \n// Gmail’s SMTP account,\n\n String userName = \"91c28c9b77f112\";//from mailtrap\n String password = \"9d4d7fbf411267\";\n\n //Get the session object \n //1. sets SMTP server properties\n Properties properties = new Properties();\n properties.put(\"mail.smtp.auth\", true);\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\n properties.put(\"mail.smtp.host\", \"smtp.mailtrap.io\");\n properties.put(\"mail.smtp.port\", \"25\");\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.mailtrap.io\");\n //2. creates a new session with an authenticator\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(userName, password);\n }\n };\n\n Session session = Session.getInstance(properties, auth);\n\n //3. Creates a new e-mail message\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(\"[email protected]\"));\n InternetAddress[] toAddresses = {new InternetAddress(to)};\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\n msg.setSubject(\"Test send mail\");\n msg.setSentDate(new Date());\n msg.setText(\"Hello, this is example of sending email. ?token=\" + token);\n\n// MimeMessage message = new MimeMessage(session);\n// message.setFrom(new InternetAddress(from));\n// message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n //4. Send the message\n Transport.send(msg);\n System.out.println(\"message sent successfully....\");\n\n }",
"public void writterMail(String to, String subject, String text) {\n\tLOG.info(\"Start writterMail\\n\");\n\ttoMail.sendKeys(to);\n\tsubjectMail.sendKeys(subject);\n\ttextMail.sendKeys(text);\n }",
"public boolean sendMail(String toAddress, String subjectKey, String bodyText, String urlAttachment, String[] spokenLangs) {\n fromEmailAddress = fromEmailAddress.trim();\n replyToAddress = replyToAddress.trim();\n if (replyToAddress == null) replyToAddress = fromEmailAddress;\n\n Locale locale;\n if (spokenLangs == null || spokenLangs.length == 0) {\n locale = getDefaultLocale();\n } else {\n locale = Locale.forLanguageTag(spokenLangs[0]);\n }\n String subjectText = MessageSourceResourceBundle.getBundle(\"messages\", locale).getString(subjectKey);\n\n if ((toAddress == null) || (toAddress.length() <= 3)) {\n log.warn(\"failed sending email because toAdrress(\" + toAddress + \") is unvalid\");\n return false;\n }\n\n if ((fromEmailAddress == null) || (fromEmailAddress.length() == 0) || fromEmailAddress.equals(\"[email protected]\")) {\n log.warn(\"eMail not configured in application.properties - skipping sending to \" + toAddress);\n return false;\n }\n\n\n toAddress = toAddress.trim();\n\n MimeMessage mail = javaMailSender.createMimeMessage();\n try {\n log.info(\"EMailManager - sending eMail to(\" + toAddress + \") ...\");\n MimeMessageHelper helper = new MimeMessageHelper(mail, true);\n helper.setTo(toAddress);\n helper.setReplyTo(replyToAddress);\n helper.setFrom(fromEmailAddress);\n helper.setSubject(subjectText);\n helper.setText(bodyText);\n if (urlAttachment != null)\n helper.addAttachment(\"KonfettiCoupons.pdf\", new URLDataSource(new URL(urlAttachment)));\n javaMailSender.send(mail);\n log.info(\"EMailManager - OK sending eMail to(\" + toAddress + \")\");\n return true;\n } catch (MessagingException e) {\n log.warn(\"EMailManager - FAIL sending eMail to(\" + toAddress + \"): \" + e.getMessage());\n e.printStackTrace();\n } catch (MalformedURLException e) {\n log.warn(\"EMailManager - FAIL sending eMail to(\" + toAddress + \") attachementURL(\" + urlAttachment + \"): \" + e.getMessage());\n e.printStackTrace();\n } catch (Exception e) {\n log.warn(\"EMailManager - FAIL sending eMail to(\" + toAddress + \") attachementURL(\" + urlAttachment + \") mailserver(\" + Helper.getPropValues(\"spring.mail.host\") + \":\" + Helper.getPropValues(\"spring.mail.port\") + \"): \" + e.getMessage());\n e.printStackTrace();\n }\n return false;\n }",
"public static ClientResponse sendSimpleMail(String from, String[] to, String subject, String body) throws Exception{\n\t\t\n\t if(from == null || from == \"\"){\n\t\t throw new Exception(\"Please set email sender properly.\");\n\t }\n\t \n\t if(to == null || to.length == 0){\n\t\t throw new Exception(\"Please set email recipients properly.\");\n\t }\n\t \n Client client = Client.create();\n client.addFilter(new HTTPBasicAuthFilter(\"api\",\n \"key-1xigy8-dpzbuy6euywdr2se-6yiu88d3\"));\n WebResource webResource =\n client.resource(\"https://api.mailgun.net/v2/tchat.mailgun.org/messages\");\n MultivaluedMapImpl formData = new MultivaluedMapImpl();\n // Set email sender\n formData.add(\"from\", from);\n // Set email recipients.\n for(int i = 0; i < to.length; i ++){\n \t formData.add(\"to\", to[i]);\n }\n // Set email subject\n formData.add(\"subject\", subject);\n // Set email body\n formData.add(\"text\", body);\n return webResource.type(MediaType.APPLICATION_FORM_URLENCODED).post(ClientResponse.class, formData);\n\t}",
"@Asynchronous //Metodo Assíncrono para que a aplicação continue normalmente sem ficar bloqueada até que o email seja enviado \r\n\tpublic void sendEmail(Email email) {\n\t log.info(\"Email enviado por \" + email.getEmailUsuario() + \" para \" + email.getReceptor() +\" : \" + email.getMensagem());\r\n\t try {\r\n\t //Criação de uma mensagem simples\r\n\t Message message = new MimeMessage(mailSession);\r\n\t //Cabeçalho do Email\r\n\t message.setFrom(new InternetAddress(email.getEmailUsuario()));\r\n\t message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(email.getReceptor())); \r\n\t message.setSubject(email.getTitulo());\r\n\t //Corpo do email\r\n\t message.setText(email.getMensagem());\r\n\r\n\t //Envio da mensagem \r\n\t Transport.send(message);\r\n\t log.debug(\"Email enviado\");\r\n\t } catch (MessagingException e) {\r\n\t log.error(\"Erro a enviar o email : \" + e.getMessage()); }\r\n\t }",
"public static void sendEmailWithAttachments(final String address, final String subject, final String message, final ArrayList<String> attachments, final String userName, final String password)\r\n throws AddressException, MessagingException {\n Properties properties = new Properties();\r\n properties.put(\"mail.smtp.host\", host);\r\n properties.put(\"mail.smtp.port\", port);\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.user\", userName);\r\n properties.put(\"mail.password\", password);\r\n \r\n // creates a new session with an authenticator\r\n Authenticator auth = new Authenticator() {\r\n public PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(userName, password);\r\n }\r\n };\r\n Session session = Session.getInstance(properties, auth);\r\n \r\n // creates a new e-mail message\r\n Message msg = new MimeMessage(session);\r\n \r\n msg.setFrom(new InternetAddress(userName));\r\n InternetAddress[] toAddresses = { new InternetAddress(address) };\r\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\r\n msg.setSubject(subject);\r\n msg.setSentDate(new Date());\r\n \r\n // creates message part\r\n MimeBodyPart messageBodyPart = new MimeBodyPart();\r\n messageBodyPart.setContent(message, \"text/html\");\r\n \r\n // creates multi-part\r\n Multipart multipart = new MimeMultipart();\r\n multipart.addBodyPart(messageBodyPart);\r\n \r\n // adds attachments\r\n if (attachments != null && attachments.size() > 0) {\r\n for (String filePath : attachments) {\r\n MimeBodyPart attachPart = new MimeBodyPart();\r\n \r\n try {\r\n attachPart.attachFile(filePath);\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n \r\n multipart.addBodyPart(attachPart);\r\n }\r\n }\r\n \r\n // sets the multi-part as e-mail's content\r\n msg.setContent(multipart);\r\n \r\n // sends the e-mail\r\n Transport.send(msg);\r\n \r\n }",
"@Override\n\tpublic void sendMail(Mail mail) {\n\t\t\n\t}",
"public void testSendEmail2()\n throws Exception\n {\n Gitana gitana = new Gitana();\n\n // authenticate\n Platform platform = gitana.authenticate(\"admin\", \"admin\");\n\n // create a domain and a principal\n Domain domain = platform.createDomain();\n DomainUser user = domain.createUser(\"test-\" + System.currentTimeMillis(), TestConstants.TEST_PASSWORD);\n user.setEmail(\"[email protected]\");\n user.update();\n\n // create an application\n Application application = platform.createApplication();\n\n // create an email provider\n EmailProvider emailProvider = application.createEmailProvider(\n JSONBuilder.start(EmailProvider.FIELD_HOST).is(\"smtp.gmail.com\")\n .and(EmailProvider.FIELD_USERNAME).is(\"[email protected]\")\n .and(EmailProvider.FIELD_PASSWORD).is(\"buildt@st11\")\n .and(EmailProvider.FIELD_SMTP_ENABLED).is(true)\n .and(EmailProvider.FIELD_SMTP_IS_SECURE).is(true)\n .and(EmailProvider.FIELD_SMTP_REQUIRES_AUTH).is(true)\n .and(EmailProvider.FIELD_SMTP_STARTTLS_ENABLED).is(true)\n .get()\n );\n\n // create an email\n Email email = application.createEmail(\n JSONBuilder.start(Email.FIELD_BODY).is(\"Here is a test body\")\n .and(Email.FIELD_FROM).is(\"[email protected]\")\n .get()\n );\n email.setToDomainUser(user);\n email.update();\n\n // send the email\n emailProvider.send(email);\n\n // check to ensure was marked as sent, along with some data\n email.reload();\n assertTrue(email.getSent());\n assertNotNull(email.dateSent());\n assertNotNull(email.getSentBy()); \n }",
"public void sendNewOrderAdmin(){\n final String username = \"[email protected]\";\n\n // change accordingly\n final String password = \"dcc59vez\";\n\n // Get system properties\n Properties props = new Properties();\n\n // enable authentication\n props.put(\"mail.smtp.auth\", \"true\");\n\n // enable STARTTLS\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n\n // Setup mail server\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\n // TLS Port\n props.put(\"mail.smtp.port\", \"587\");\n\n // creating Session instance referenced to\n // Authenticator object to pass in\n // Session.getInstance argument\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n //override the getPasswordAuthentication method\n protected PasswordAuthentication\n getPasswordAuthentication() {\n\n return new PasswordAuthentication(username,\n password);\n }\n });\n\n try {\n // compose the message\n // javax.mail.internet.MimeMessage class is\n // mostly used for abstraction.\n Message message = new MimeMessage(session);\n\n // header field of the header.\n message.setFrom(new InternetAddress(\"BallonkompagnietIVS\"));\n\n //Set admin email\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"New order on website\");\n\n message.setText(\"New order placed on your website\");\n\n //send Message\n Transport.send(message);\n System.out.println(\"Email sent to admin - New order\");\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"private void sendMail(final String mail, final String name, final String message) {\n /* new Thread(){\n public void run() {\n Properties props = System.getProperties();\n props.put(\"mail.smtps.host\",\"smtp.gmail.com\");\n props.put(\"mail.smtps.auth\",\"true\");\n Session session = Session.getInstance(props, null);\n Message msg = new MimeMessage(session);\n try {\n msg.setFrom(new InternetAddress(\"[email protected]\"));\n msg.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(\"[email protected]\", false));\n msg.setSubject(\"Yoga Mandira :: Feedback \" + System.currentTimeMillis());\n msg.setText(\"MAIL:\"+mail+\"\\nNAME:\"+name+\"\\nMESSAGE:\"+message);\n msg.setHeader(\"X-Mailer\", \"Yoga Mandira\");\n msg.setSentDate(new Date());\n SMTPTransport t =\n (SMTPTransport) session.getTransport(\"smtps\");\n t.connect(\"smtp.gmail.com\", \"[email protected]\", \"#30ija11an\");\n t.sendMessage(msg, msg.getAllRecipients());\n System.out.println(\"Response: \" + t.getLastServerResponse());\n t.close();\n }catch (AddressException e) {\n e.printStackTrace();\n } catch (SendFailedException e) {\n e.printStackTrace();\n } catch (NoSuchProviderException e) {\n e.printStackTrace();\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n }\n }.start();*/\n }",
"public static void sendMessage(String to, String subject, String text, Inbox inbox) {\n\t\tSession session;\n\t\tProperties properties = System.getProperties();\n\t\tproperties.setProperty(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tproperties.setProperty(\"mail.smtp.auth\", \"true\");\n\t\t//properties.setProperty(\"mail.smtp.port\", \"\" + 587);\n\t\tproperties.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n\t\tsession = Session.getDefaultInstance(properties, new javax.mail.Authenticator(){\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication(){\n\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t}\n\t\t});\n\t\t\n\t\ttry {\n\t\t\tMimeMessage myMessage = new MimeMessage(session);\n\t\t\tmyMessage.setFrom(new InternetAddress(username));\n\t\t\tmyMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\t\t\tmyMessage.setSubject(subject);\n\t\t\tmyMessage.setText(text);\n\t\t\tTransport.send(myMessage);\n\t\t\tinbox.addOutgoing(to, subject, text, myMessage);\n\t\t} catch (Exception e){\n\t\t\tSystem.out.println(\"ERROR: COULD NOT SEND MAIL\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void sendMail (String email, String name, String surname) throws AddressException,MessagingException {\n \n Properties props = new Properties();\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.port\", \"587\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n\n Session session = Session.getDefaultInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\",\"progettoweb2018\");\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(email));\n message.setSubject(\"Benvenuto in Friday!\");\n message.setText(name+\" \"+surname+\", Benvenuto in Friday!\"+\n \"\\n\\n link di conferma : http://localhost:8080/Friday/confirmRegistrationServlet?email=\"+email);\n\n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"public void sendEmail(String recipient, String subject, String message) { \r\n\t\t\r\n\t Properties props = new Properties();\r\n\t props.put(mailHost, mailHostname);\r\n\t Session session = Session.getInstance(props, null);\r\n\r\n\t try {\r\n\t MimeMessage msg = new MimeMessage(session);\r\n\t msg.setFrom(username);\r\n\t msg.setRecipients(Message.RecipientType.TO,\r\n\t recipient);\r\n\t msg.setSubject(subject);\r\n\t msg.setSentDate(new Date());\r\n\t msg.setText(message);\r\n\t Transport.send(msg, username, password);\r\n\t System.out.println(\"Email has been sent\");\r\n\t } catch (MessagingException mex) {\r\n\t \tSystem.out.println(recipient);\r\n\t System.out.println(\" send failed, exception: \" + mex);\r\n\t }\r\n\r\n\t\t\r\n\t}",
"public void sendEmailWithAuth(final WatchAlertTask watchAlertTask, WatchAlertTaskQuery watchAlertTaskQuery)\r\n\t{\r\n\t\r\n\t\tString alertEmailBody = new String();\r\n\t\tString alertString = watchAlertTask.getAlertBody().getAlertString();\r\n\t\tList<MapVariableValue> nodes = watchAlertTask.getAlertBody().getAlertMapStrings();\r\n\t\tTransport trans=null;\r\n\t\tString[] stringArray = watchAlertTask.getSmtpServer().split(\":\");\r\n\t\tString smtpServer = stringArray[0];\r\n\t\tString smtpPort = new String(\"25\");\r\n\t\tif(stringArray.length == 2)\r\n\t\t\tsmtpPort = stringArray[1];\r\n\t\t\r\n\t\tif(watchAlertTask.getStoreActiveState() == 2)\r\n\t\t\talertEmailBody = WatchAlertUtils.replaceKeywords(watchAlertTask.getSendAlertEmailBody(), watchAlertTask, watchAlertTaskQuery, nodes);\r\n\t\telse\r\n\t\t\talertEmailBody = WatchAlertUtils.replaceKeywords(watchAlertTask.getClearAlertEmailBody(), watchAlertTask, watchAlertTaskQuery, nodes);\r\n\t\t\r\n\t\talertEmailBody = alertEmailBody.replaceAll(\"%MESSAGE%\", alertString);\r\n\t\t\r\n Properties props = new Properties(); \r\n props.put(\"mail.transport.protocol\", \"smtp\");\r\n props.put(\"mail.smtp.host\", smtpServer); \r\n props.put(\"mail.smtp.port\", smtpPort); \r\n props.put(\"mail.smtp.auth\", \"true\"); \r\n props.put(\"mail.debug\", \"true\"); \r\n\r\n Session session = \r\n Session.getInstance(props, new javax.mail.Authenticator() { \r\n protected PasswordAuthentication getPasswordAuthentication() { \r\n return new PasswordAuthentication(watchAlertTask.getSmtpFrom(), watchAlertTask.getSmtpPassword()); \r\n } \r\n }); \r\n\r\n try {\r\n \tMimeMessage msg = new MimeMessage(session); \r\n \tInternetAddress addressFrom = new InternetAddress(watchAlertTask.getSmtpFrom()); \r\n \tmsg.setFrom(addressFrom);\r\n \t \t\r\n \tfor(String addressstr : watchAlertTask.getRecipients())\r\n \t{\r\n\t\t\t\taddressstr = WatchAlertUtils.replaceKeywords(addressstr, watchAlertTask, watchAlertTaskQuery, nodes);\r\n\t\t\t\r\n \t\tString[] addressstr2 = addressstr.split(\":\");\r\n \t\tInternetAddress internetAddress = new InternetAddress(addressstr2[1]);\r\n \t\tif(addressstr2.length > 1)\r\n \t\t{\r\n \t\t\tif(addressstr2[0].toLowerCase().equals(\"to\"))\r\n \t\t\t\tmsg.addRecipient(MimeMessage.RecipientType.TO,internetAddress);\r\n \t\t\telse if(addressstr2[0].toLowerCase().equals(\"cc\"))\r\n \t\t\t\tmsg.addRecipient(MimeMessage.RecipientType.CC, internetAddress);\r\n \t\t\telse if(addressstr2[0].toLowerCase().equals(\"bcc\"))\r\n \t\t\t\tmsg.addRecipient(MimeMessage.RecipientType.BCC, internetAddress);\r\n \t\t\telse logger.info(\"Cannot find prefix in \\'\" +addressstr+\"\\' . Should be one of the to, cc or bcc.\");\t \t\t\t\r\n \t\t}\r\n \t\telse\r\n \t\t\tlogger.info(\"Cannot parse address \\'\" +addressstr+\"\\' . Should be in format: pefix:email@domain\");\r\n \t} \r\n \t \t\r\n \t//for(int i = 0; i< msg.getAllRecipients().length; i++)\r\n \t//\tlogger.info(\"Sending email to \" + msg.getAllRecipients()[i].toString());\r\n \t\r\n \tmsg.setSubject(watchAlertTask.getSmtpSubject()); \r\n \tmsg.setText(alertEmailBody, \"utf-8\", \"html\");\r\n \ttrans = session.getTransport(\"smtp\");\r\n \ttrans.connect(smtpServer, watchAlertTask.getSmtpFrom(), watchAlertTask.getSmtpPassword());\r\n \tmsg.saveChanges();\r\n \ttrans.sendMessage(msg, msg.getAllRecipients());\r\n \ttrans.close();\r\n \tlogger.info(\"Sent EMAIL TASK: \" + watchAlertTask.getTaskNumber()+\" with Subject: \" + watchAlertTask.getSmtpSubject() +\" and with body: \" + alertEmailBody);\r\n }\r\n catch (MessagingException mex) {\r\n \tlogger.error(mex.toString());\r\n }\r\n\t}",
"public void getSendEmail() {\n driver.get(getBASE_URL() + getSendMailURL);\n }",
"private void sendEmail(){\n String teachersEmail = tvTeachersEmail.getText().toString();\n String[] receiver = new String[1];\n receiver[0] = teachersEmail;\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_EMAIL, receiver);\n\n // opening only email clients - force sending with email\n intent.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(intent, getString(R.string.open_email_clients)));\n }",
"@Override\n\tpublic void sendMail(Mail mail, boolean flag) {\n\t\t\n\t}",
"public boolean send() {\n\t\tAuthenticator auth = new Authenticator() {\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(props.getProperty(MAIL_USER), props.getProperty(MAIL_PASSWORD));\n\t\t\t}\n\t\t};\n\n\t\tSession session = Session.getInstance(props, auth);\n\n\t\ttry {\n\t\t\tMimeMessage message = new MimeMessage(session);\n\n\t\t\tif (props.containsKey(MAIL_FROM)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_FROM));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.addFrom(addresses);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (props.containsKey(MAIL_REPLY_TO)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_REPLY_TO));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.setReplyTo(addresses);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (props.containsKey(MAIL_TO)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_TO));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.addRecipients(Message.RecipientType.TO, addresses);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (props.containsKey(MAIL_CC)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_CC));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.addRecipients(Message.RecipientType.CC, addresses);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (props.containsKey(MAIL_BCC)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_BCC));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.addRecipients(Message.RecipientType.BCC, addresses);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (props.containsKey(\"EPCX_ABSTIME\")) {\n\t\t\t\tmessage.setSentDate(Util.getDateFromAbstime(props.getProperty(\"EPCX_ABSTIME\")));\n\n\t\t\t} else if (props.containsKey(\"mail.sentdate\")) {\n\t\t\t\tmessage.setSentDate(Util.getDateFromAbstime(props.getProperty(\"mail.sentdate\")));\n\t\t\t}\n\n\t\t\t// Set subject.\n\t\t\t// Doc for setSubject method says the application must ensure that the subject does not contain any line breaks.\n\t\t\t// Need to default subject to UTF-8 as properties are Java strings, otherwise the setSubject method defaults to platform default encoding that may be an EBCDIC codepage. \n\t\t\tmessage.setSubject(props.getProperty(MAIL_SUBJECT).replaceAll(\"[\\\\n\\\\r]+\",\" \"), \"UTF-8\");\n\n\t\t\t// Create a multipart message to hold the message parts\n\t\t\tMultipart mimeMultipart = new MimeMultipart();\n\n\t\t\t// Add the mail body (content) as a message part.\n\t\t\taddBody(mimeMultipart);\n\n\t\t\t// Add the attachments as message parts to the mail.\n\t\t\taddAttachments(mimeMultipart);\n\n\t\t\tif (mimeMultipart.getCount() == 0) {\n\t\t\t\t// JavaMail requires at least a blank string to be set as the content, otherwise it will throw an exception when sending.\n\t\t\t\tmessage.setText(\"\");\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// Add the multipart to the message.\n\t\t\t\tmessage.setContent(mimeMultipart);\n\t\t\t}\n\n\t\t\t// Add todays date\n\t\t\tmessage.setSentDate(new Date());\n\n\t\t\t// Change the default classloader to work around issues documented\n\t\t\t// at site\n\t\t\t// http://blog.hpxn.net/2009/12/02/tomcat-java-6-and-javamail-cant-load-dch/\n\t\t\tClassLoader cl = Thread.currentThread().getContextClassLoader();\n\t\t\ttry {\n\t\t\t\tThread.currentThread().setContextClassLoader(Transport.class.getClassLoader());\n\n\t\t\t\t// Send the message. Note this calls the saveChanges method on\n\t\t\t\t// the message before sending.\n\t\t\t\tTransport.send(message);\n\n\t\t\t} finally {\n\t\t\t\tThread.currentThread().setContextClassLoader(cl);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tlogger.warning(Emit.messages.getString(\"MailLogFail\") + \" - \" + getMessageSummary());\n\n\t\t\te.printStackTrace();\n\n\t\t\treturn false;\n\t\t}\n\n\t\tif (logger.isLoggable(Level.INFO)) {\n\t\t\tlogger.info(Emit.messages.getString(\"MailLogSuccess\") + \" - \" + getMessageSummary());\n\t\t}\n\n\t\treturn true;\n\t}"
] | [
"0.7206358",
"0.71718776",
"0.70496666",
"0.70242417",
"0.69449335",
"0.6936204",
"0.69208217",
"0.6846941",
"0.68107384",
"0.6802411",
"0.6789111",
"0.6788783",
"0.6780264",
"0.673789",
"0.673787",
"0.6699573",
"0.66968787",
"0.6672749",
"0.66651565",
"0.66628885",
"0.6658531",
"0.659853",
"0.65927017",
"0.6584996",
"0.65848374",
"0.65799457",
"0.6556118",
"0.65560627",
"0.65521795",
"0.6548011",
"0.65415984",
"0.65184814",
"0.64984065",
"0.64888304",
"0.64600426",
"0.64382327",
"0.64233464",
"0.6402866",
"0.6398042",
"0.63887167",
"0.6384174",
"0.63633025",
"0.63561666",
"0.63512987",
"0.63434833",
"0.63408864",
"0.631193",
"0.63049924",
"0.62938094",
"0.6288774",
"0.62829405",
"0.62716407",
"0.62642103",
"0.6248347",
"0.6246664",
"0.62452304",
"0.62396425",
"0.62089324",
"0.6198409",
"0.61938536",
"0.61866957",
"0.61805457",
"0.6176247",
"0.61758155",
"0.6174945",
"0.6168147",
"0.6156928",
"0.6152684",
"0.61519873",
"0.6149188",
"0.6145618",
"0.6140158",
"0.61121774",
"0.6111213",
"0.60983384",
"0.60914475",
"0.608741",
"0.60812217",
"0.60805494",
"0.6073567",
"0.60664696",
"0.606428",
"0.60631603",
"0.6052301",
"0.6039439",
"0.60359865",
"0.6032318",
"0.60307145",
"0.6017831",
"0.60147905",
"0.6011713",
"0.6010361",
"0.60094",
"0.6008727",
"0.6007606",
"0.6007416",
"0.60038334",
"0.60013604",
"0.5997113",
"0.5992134"
] | 0.60033095 | 97 |
Sending email utility function using TLS via port 587. Note: This method uses JavaMail | public static boolean sendMailTLS(String from, String[] to, String host, String subject, String content) throws Exception{
if(from == null || from.trim() == ""){
throw new Exception("Please set \"from\" properly");
}
if(to == null || to.length == 0){
throw new Exception("Please set \"to\" properly");
}
if(host == null || host.trim() == ""){
throw new Exception("Please set \"host\" properly");
}
// User name and Password are needed when using Gmail SMTP mail server.
// And this practice will ignore the from option set in the message.
final String username = "[email protected]";
final String pwd = "";
Properties props = System.getProperties();
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.host", host);
props.put("mail.smtp.port", "587");
Session session = Session.getDefaultInstance(props,
new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, pwd);
}
});
MimeMessage message = new MimeMessage(session);
try {
// Set From: header field of the heard
message.setFrom(new InternetAddress("[email protected]"));
Address[] tos = new InternetAddress[to.length];
for(int i = 0; i < to.length; i ++){
tos[i] = new InternetAddress(to[i]);
}
// Set To: header field of the header
message.addRecipients(Message.RecipientType.TO, tos);
// Set Subject: header field
message.setSubject(subject);
// Set email body content
message.setText(content);
// Send message
Transport.send(message);
} catch (AddressException e) {
e.printStackTrace();
LOG.debug(e.getMessage());
return false;
} catch (MessagingException e) {
e.printStackTrace();
LOG.debug(e.getMessage());
return false;
}
// Send successfully
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean emailTLS(String fromEmail, String password, String fromName, String smtpHostServer, String toEmail, String subject, String body) {\n System.out.println(\"TLSEmail Start\");\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", smtpHostServer); //SMTP Host\n props.put(\"mail.smtp.port\", \"587\"); //TLS Port\n props.put(\"mail.smtp.auth\", \"true\"); //enable authentication\n props.put(\"mail.smtp.starttls.enable\", \"true\"); //enable STARTTLS\n //create Authenticator object to pass in Session.getInstance argument\n props.put(\"mail.debug\", \"true\");\n Authenticator auth = new Authenticator() {\n //override the getPasswordAuthentication method\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(fromEmail, password);\n }\n };\n Session session = Session.getInstance(props, auth);\n\n return EmailUtil.sendEmail(fromEmail, fromName, session, toEmail, subject, body);\n\n }",
"private static boolean emailSSL(String fromEmail, String password, String fromName, String smtpHostServer, String toEmail, String subject, String body) {\n System.out.println(\"SSLEmail Start\");\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", smtpHostServer); //SMTP Host\n props.put(\"mail.smtp.socketFactory.port\", \"465\"); //SSL Port\n props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\"); //SSL Factory Class\n props.put(\"mail.smtp.auth\", \"true\"); //Enabling SMTP Authentication\n props.put(\"mail.smtp.starttls.enable\", \"true\"); //enable STARTTLS\n props.put(\"mail.smtp.port\", \"465\"); //SMTP Port\n props.put(\"mail.debug\", \"true\");\n Authenticator auth = new Authenticator() {\n //override the getPasswordAuthentication method\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(fromEmail, password);\n }\n };\n System.out.println(\"fromEmail:\" + fromEmail);\n System.out.println(\"password:\" + password);\n Session session = Session.getDefaultInstance(props, auth);\n System.out.println(\"Session created\");\n return EmailUtil.sendEmail(fromEmail, fromName, session, toEmail, subject, body);\n// EmailUtil.sendAttachmentEmail(session, toEmail, \"SSLEmail Testing Subject with Attachment\", \"SSLEmail Testing Body with Attachment\");\n// EmailUtil.sendImageEmail(session, toEmail, \"SSLEmail Testing Subject with Image\", \"SSLEmail Testing Body with Image\");\n\n }",
"public void sendEmail(String recipient,String password);",
"static void sendSSLMessage(String recipients[], String subject,\n\t\t\tString message, String from, String lname, String fname,\n\t\t\tString spo2, String systolic, String diastolic, String pulse, String time) throws MessagingException {\n\n\t\tboolean debug = true;\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.host\", SMTP_HOST_NAME);\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.debug\", \"true\");\n\t\tprops.put(\"mail.smtp.port\", SMTP_PORT);\n\t\tprops.put(\"mail.smtp.socketFactory.port\", SMTP_PORT);\n\t\tprops.put(\"mail.smtp.socketFactory.class\", SSL_FACTORY);\n\t\tprops.put(\"mail.smtp.socketFactory.fallback\", \"true\");\n\n\t\tSession session = Session.getDefaultInstance(props,\n\t\t\t\tnew javax.mail.Authenticator() {\n\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\treturn new PasswordAuthentication(\"[email protected]\", \"Xiaoyu\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tsession.setDebug(debug);\n\n\t\tMessage msg = new MimeMessage(session);\n\t\tInternetAddress addressFrom = new InternetAddress(from);\n\t\tmsg.setFrom(addressFrom);\n\n\t\tInternetAddress[] addressTo = new InternetAddress[recipients.length];\n\t\tfor (int i = 0; i < recipients.length; i++) {\n\t\t\taddressTo[i] = new InternetAddress(recipients[i]);\n\t\t}\n\t\tmsg.setRecipients(Message.RecipientType.TO, addressTo);\n\t\tmsg.setSubject(subject);\n\t\t{\n\t\t\tMultipart multipart = new MimeMultipart(\"related\");\n\t\t\t{\n\t\t\t\tMultipart newMultipart = new MimeMultipart(\"alternative\");\n\t\t\t\tBodyPart nestedPart = new MimeBodyPart();\n\t\t\t\tnestedPart.setContent(newMultipart);\n\t\t\t\tmultipart.addBodyPart(nestedPart);\n\t\t\t\t{\n\t\t\t\t\tBodyPart part = new MimeBodyPart();\n\t\t\t\t\tpart.setText(\"SIS DATA:\");\n\t\t\t\t\tnewMultipart.addBodyPart(part);\n\n\t\t\t\t\tpart = new MimeBodyPart();\n\t\t\t\t\t// the first string is email context\n\t\t\t\t\tpart.setContent(\"Here is the SPO2 and Blood Pressure data(This is an automatic massage send from SIS system): LastName: \" \n\t\t\t\t\t+ lname + \" FirstName: \" + fname \n\t\t\t\t\t\t\t+ \"\\nSPO2: \" + spo2 \n\t\t\t\t\t\t\t+ \"\\nSystolic: \" + systolic\n\t\t\t\t\t\t\t+ \"\\nDiastolic: \" + diastolic\n\t\t\t\t\t\t\t+ \"\\nPulse: \" + pulse , \n\t\t\t\t\t\t\t\"text/html\");\n\t\t\t\t\tnewMultipart.addBodyPart(part);\n\t\t\t\t}\n\t\t\t}\n\t\t\tBodyPart part = new MimeBodyPart();\n\t\t\tpart.setText(\"Here is the SPO2 and Blood Pressure data(This is an automatic massage send from SIS system): LastName: \" \n\t\t\t\t\t+ lname + \" FirstName: \" + fname \n\t\t\t\t\t+ \"\\nSPO2: \" + spo2 + \" \" \n\t\t\t\t\t+ \"\\nSystolic: \" + systolic\n\t\t\t\t\t+ \"\\nDiastolic: \" + diastolic\n\t\t\t\t\t+ \"\\nPulse: \" + pulse);\n\t\t\tmultipart.addBodyPart(part);\n\t\t\tmsg.setContent(multipart);\n\t\t}\n\t\tTransport.send(msg);\n\t\tSystem.out.println(\"Sucessfully Sent mail to All Users, lol.\\n\");\n\t}",
"public java.lang.String sendMail(java.lang.String accessToken, java.lang.String toAddresses, java.lang.String subject, java.lang.String body, java.lang.String msgFrom) throws java.rmi.RemoteException;",
"private static void sendMail(String toEmail, String mailText) {\n final String username = \"[email protected]\"; //The Email of the sender.\n final String password = \"emailpassword\";\n\n //Properties of the used SMTP server.\n Properties props = new Properties();\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(username));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(toEmail));\n message.setSubject(\"New Password - Household Manager\");\n //Message to the user\n message.setText(mailText);\n\n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"public void sendMessage() throws DLException{\n // adjust mail properties\n Properties properties = System.getProperties();\n properties.put(\"mail.smtp.port\", \"587\");\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\n properties.put(\"mail.smtp.auth\", \"true\");\n properties.setProperty(\"mail.smtp.host\", host);\n Session session = Session.getInstance(properties,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(sender, senderPassword);\n }\n });\n \n try { \n // MimeMessage object. \n MimeMessage message = new MimeMessage(session); \n \n // Set From Field: adding senders email to from field. \n message.setFrom(new InternetAddress(sender)); \n \n // Set To Field: adding recipient's email to from field. \n message.addRecipient(Message.RecipientType.TO, new InternetAddress(recipient)); \n \n // Set Subject: subject of the email \n message.setSubject(\"Reset Password Request\"); \n \n // set body of the email. \n message.setText(\"Here is your temporary password: \" + password + \"\\nIt will expire in 5 minutes.\"); \n \n // Send email. \n Transport.send(message); \n System.out.println(\"Mail successfully sent\");\n \n } catch (MessagingException mex) { \n new DLException(mex);\n System.out.println(\"Something went wrong in sending an email\");\n } \n }",
"SendEmail() {\t\n\t}",
"private void SendEmail(String password, String emailTo, String staffNames)\n {\n String to = emailTo;\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"smtp.upcmail.ie\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n \n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try{\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"Password Change From Help Manager\");\n\n // Now set the actual message\n message.setText(\"Hello \"+staffNames +\", \\n\\n Your new Password is: \"+ password +\".\\n\\n Regards \\n Help Manager Team\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public void sendEmail() {\n\t\tSystem.out.println(\"Loading session and Authenticating\");\n\t\tfinal Session session = Session.getInstance(getProtocolProporties(PROTOCOL_SEND), new Authenticator() {\n\n\t\t\t@Override\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(getProperty(\"username\"), getPassword());\n\t\t\t}\n\n\t\t});\n\t\tif(null == session) {\n\t\t\tSystem.err.println(\"Session is null, cann't proceed\");\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Authenticated, will try to send an email\");\n\n\t\ttry {\n\t\t\tfinal Message message = new MimeMessage(session) {\n\t\t\t\t//Print the message to console\n\t\t\t\t@Override\n\t\t\t\tpublic String toString() {\n\t\t\t\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"From : \").append(\"\\n\");\n\t\t\t\t\t\tfor (Address address : this.getFrom())\n\t\t\t\t\t\t\tstringBuilder.append(address).append(\"\\n\");\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"To : \").append(\"\\n\");\n\t\t\t\t\t\tfor (Address address : this.getRecipients(Message.RecipientType.TO))\n\t\t\t\t\t\t\tstringBuilder.append(address).append(\"\\n\");\n\t\t\t\t\t\tstringBuilder.append(\"Subject : \").append(\"\\n\").append(this.getSubject());\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"Sent Date : \").append(this.getSentDate());\n\t\t\t\t\t} catch (MessagingException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\treturn stringBuilder.toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\t//Get Mail field details\n\t\t\tmessage.setFrom(new InternetAddress(getProperty(\"username\")));\n\t\t\tmessage.setRecipient(Message.RecipientType.TO, new InternetAddress(getUserInput(\"to\")));\n\t\t\tmessage.setSubject(getUserInput(\"subject\"));\n\t\t\tmessage.setText(getUserInput(\"messageContent\"));\n\t\t\tmessage.setSentDate(new Date());\n\t\t\tSystem.out.println(\"Sending the mail as details below :\");\n\t\t\tSystem.out.println(message);\n\t\t\t\n\t\t\t//Send email here, this throws exception if fails\n\t\t\tTransport.send(message);\n\t\t\t\n\t\t\tSystem.out.println(\"Email Sent\");\n\t\t} catch (final MessagingException ex) {\n\t\t\tSystem.err.println(\"Error: \" + ex.getMessage());\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public void sendWithDefaultMessage() {\r\n String _from = \"A78B347F656\";\r\n String _password = \"55EE29A8C\";\r\n //Get properties object\r\n Properties props = new Properties();\r\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.put(\"mail.smtp.socketFactory.class\",\r\n \"javax.net.ssl.SSLSocketFactory\");\r\n props.put(\"mail.smtp.auth\", \"true\");\r\n props.put(\"mail.smtp.port\", \"465\");\r\n //get Session \r\n Session session = Session.getInstance(props,\r\n new javax.mail.Authenticator() {\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(_from, _password);\r\n }\r\n });\r\n //compose message \r\n try {\r\n MimeMessage message = new MimeMessage(session);\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(_to));\r\n message.setSubject(\"WELCOME TO TAHDIG\");\r\n message.setContent(\"<body>\"\r\n + \"<h1>TAHDIG</h1>\"\r\n + \"<h3>Dear \" + firstName + \" \" + lastName\r\n + \"</h3><h2>Thank you for Registering on TAHDIG,</h2>\"\r\n + \"<h3>The First Meal Sharing Platform</h3>\"\r\n + \"<em>Your Username: \" + username\r\n + \"</em><br/><em>Your Password: \" + userpass\r\n + \"</em><br/><a href='http://localhost:8080/msabouri-fp/'>Click here to go to the TAHDIG service</a></body>\",\r\n \"text/html; charset=utf8\");\r\n Transport.send(message);\r\n LOG.info(\"The email was sent successfully\");\r\n } catch (MessagingException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }",
"public void sendMailMessage(MailMessage mailMessage) throws MailerException;",
"public Boolean sendEmail(String sender, String receiver, String subject, String body) throws Exception;",
"public void generateAndSendEmail(EmailSendingParameters emailParameters) throws AddressException, MessagingException {\r\n \r\n\t\t//Step1\t\t\r\n\t\tSystem.out.println(\"Setup Mail Server Properties..\");\r\n\t\tmailServerProperties = System.getProperties();\r\n\t\tmailServerProperties.put(\"mail.smtp.port\", \"587\");\r\n\t\tmailServerProperties.put(\"mail.smtp.auth\", \"true\");\r\n\t\tmailServerProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t\tSystem.out.println(\"Mail Server Properties have been setup successfully..\");\r\n \r\n\t\t//Step2\r\n\t\tSystem.out.println(\"Get Mail Session..\");\r\n\t\tgetMailSession = Session.getDefaultInstance(mailServerProperties, null);\r\n\t\tgenerateMailMessage = new MimeMessage(getMailSession);\r\n\t\tgenerateMailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(emailParameters.getEmailReceiverAdress()));\r\n\t\tgenerateMailMessage.setSubject(\"Greetings from Crunchify..\");\r\n\t\tString emailBody = \"EMAIL CONTENT (with html tags)\";\r\n\t\tgenerateMailMessage.setContent(emailBody, \"text/html\");\r\n\t\tSystem.out.println(\"Mail Session has been created successfully..\");\r\n \r\n\t\t//Step3\t\t\r\n\t\tSystem.out.println(\"Get Session\tand Send mail\");\r\n\t\tTransport transport = getMailSession.getTransport(\"smtp\");\r\n\r\n\t\tSystem.out.println(\"Sending message\");\r\n\t\ttransport.connect(/*smtp.gmail.com\", emailReceiverAdress* emailReceiverPassword*/); \r\n\t\ttransport.sendMessage(generateMailMessage, generateMailMessage.getAllRecipients());\r\n\t\tSystem.out.println(\"Message sended properly\");\r\n\t\ttransport.close();\r\n\t}",
"public void sendMail(String to) throws URISyntaxException, IOException {\n final String username = \"kicsikacsacodecool\";//change accordingly\n final String password = \"codecool\";//change accordingly\n\n // Assuming you are sending email through relay.jangosmtp.net\n String host = \"relay.jangosmtp.net\";\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n // Get the Session object.\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n // Create a default MimeMessage object.\n Message message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(\"[email protected]\"));\n\n // Set To: header field of the header.\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n\n // Set Subject: header field\n message.setSubject(\"Webshop Registration\");\n\n // Now set the actual message\n message.setText(\"Welcome to the codecool webshop !!\");\n\n // Send message\n try {\n Transport.send(message);\n } catch (Exception e) {\n System.out.println(e);\n }\n\n System.out.println(\"Sent message successfully....\");\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"public static void sendMail(String subject, String htmlBody, String textBody, Collection<File> attachments, String recipient, String sender, List<String> cc, List<String> bcc, boolean deliveryReceipt, boolean readReceipt, String host, long port, String securityProtocol, String user, String password, boolean async) throws MessagingException, IOException\n {\n MailSender mailSender = new MailSender(_LOGGER, subject, htmlBody, textBody, attachments, recipient, sender, cc, bcc, deliveryReceipt, readReceipt, host, port, securityProtocol, user, password);\n \n if (!async)\n {\n mailSender.sendMail();\n }\n else\n {\n __SINGLE_THREAD_EXECUTOR.execute(mailSender);\n }\n }",
"public static void main(String[] args) {\n\t\t//DEFINE SETTINGS HERE\n\t\tString host = \"smtp.gmail.com\";\n\t\tint port = 587;\n\t\t\n BufferedReader sysIn = new BufferedReader(new InputStreamReader(System.in)); //Read from console\n PrintStream sysOut = System.out; //Print to console\n\t\t\n SSLSocketFactory mainFactory = (SSLSocketFactory) SSLSocketFactory.getDefault(); //Get default SSL socket factory\n try {\n\t\t\t//Regular connection\n\t\t\tSocket plainSocket = new Socket(host, port);\n\t\t\tSSLSocket clientSocket = null;\n\t\t\tBufferedWriter serverWriter = new BufferedWriter(new OutputStreamWriter(plainSocket.getOutputStream())); //Write to unsec server\n BufferedReader serverReader = new BufferedReader(new InputStreamReader(plainSocket.getInputStream())); //Read from unsec server\n\t\t\t\n\t\t\tString serverInput = null; //Stores latest line from server\n String userInput = \"\"; //Stores lastest input line from user\n\t\t\tboolean connSuccess = true; //Stores connection attempt state\n\t\t\t\n\t\t\t//Check for good greeting\n\t\t\tif ((serverInput = serverReader.readLine()) == null || ! serverInput.substring(0,3).equals(\"220\")) {\n\t\t\t\t//Check if server gave 220 code\n\t\t\t\tsysOut.println(\"Secure connection to server failed. Server did not greet.\");\n\t\t\t\tconnSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Send helo to server\n\t\t\tif (connSuccess) {\n\t\t\t\tuserInput = \"HELO \" + host;\n\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\tserverWriter.newLine();\n\t\t\t\tserverWriter.flush();\n\t\t\t}\n\t\t\t\n\t\t\t//Check for good helo response\n\t\t\tif (connSuccess && ((serverInput = serverReader.readLine()) == null || ! serverInput.substring(0,3).equals(\"250\"))) {\n\t\t\t\t//If HELO failed\n\t\t\t\tsysOut.println(\"Secure connection to server failed. Bad HELO response.\");\n\t\t\t\tconnSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Send starttls to server\n\t\t\tif (connSuccess) {\n\t\t\t\tuserInput = \"STARTTLS\";\n\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\tserverWriter.newLine();\n\t\t\t\tserverWriter.flush();\n\t\t\t}\n\t\t\t\n\t\t\t//Check for good starttls response\n\t\t\tif (connSuccess && ((serverInput = serverReader.readLine()) == null || ! serverInput.substring(0,3).equals(\"220\"))) {\n\t\t\t\t//If STARTTLS failed\n\t\t\t\tsysOut.println(\"Secure connection to server failed. Bad STARTTLS response.\");\n\t\t\t\tconnSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Upgrade if good starttls response\n\t\t\tif (connSuccess) {\n\t\t\t\t//create, connect, start handshake\n\t\t\t\tclientSocket = (SSLSocket) mainFactory.createSocket(plainSocket, plainSocket.getInetAddress().getHostAddress(), plainSocket.getPort(), true); \n\t\t\t\tprintSocketInfo(clientSocket); //Print connection info\n\t\t\t\t\n\t\t\t\tserverWriter = new BufferedWriter(new OutputStreamWriter(clientSocket.getOutputStream())); //Write to server\n\t\t\t\tserverReader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); //Read from server\n\t\t\t\t\n\t\t\t\tboolean tryRead = true; //Whether to read next line from serverReader (prevents blocking on multiline SMTP responses)\n\n\t\t\t\t//The below booleans, used to successully close the connection, might be unnecessary\n\t\t\t\tboolean quitUser = false; //Whether the user has entered quit, might be unnecessary\n\t\t\t\tboolean openRead = true; //Whether serverReader is still open (serverInput != null)\n\t\t\t\tboolean openSocket = true; //Whether clientSocket is still open (clientSocket != null)\n\n\t\t\t\t//SMTP input variables\n\t\t\t\tboolean sendingData = false;\n\t\t\t\tString cmdMode = \"regular\";\n\n\t\t\t\t//Main connection loop\n\t\t\t\twhile (openSocket && openRead && !quitUser) {\n\t\t\t\t\tif (clientSocket == null) { //Break if socket is closed\n\t\t\t\t\t\topenSocket = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//Display server response/message\n\t\t\t\t\twhile (tryRead) {\n\t\t\t\t\t\tserverInput = serverReader.readLine();\n\t\t\t\t\t\tif (serverInput == null) { //If serverReader gets closed/connection broken\n\t\t\t\t\t\t\topenRead = false;\n\t\t\t\t\t\t\ttryRead = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsysOut.println(serverInput);\n\t\t\t\t\t\tif (serverInput.substring(3, 4).equals(\"-\")) { //Check if multiline response\n\t\t\t\t\t\t\ttryRead = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttryRead = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//Exit client if 221 stream close msg received\n\t\t\t\t\tif (serverInput != null && serverInput.substring(0, 3).equals(\"221\")) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//Exit client if connection lost/closed prematurely\n\t\t\t\t\tif (openSocket == false || openRead == false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//Enter data mode if data command sent and 354 confirmation received\n\t\t\t\t\tif (userInput.equalsIgnoreCase(\"data\") && serverInput.substring(0, 3).equals(\"354\")) {\n\t\t\t\t\t\tsendingData = true;\n\t\t\t\t\t\tcmdMode = \"data\";\n\t\t\t\t\t}\n\t\t\t\t\t//In data mode (multi-line) and sending data (. not entered)\n\t\t\t\t\twhile (sendingData && cmdMode.equals(\"data\")) {\n\t\t\t\t\t\tuserInput = sysIn.readLine();\n\t\t\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\t\t\tserverWriter.newLine();\n\t\t\t\t\t\tserverWriter.flush();\n\t\t\t\t\t\tif (userInput.equals(\".\")) { //End of message\n\t\t\t\t\t\t\tsendingData = false;\n\t\t\t\t\t\t\ttryRead = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//In regular command mode (single-line)\n\t\t\t\t\tif (cmdMode.equals(\"regular\")) {\n\t\t\t\t\t\tuserInput = \"\"; //Reset userInput to show prompt\n\t\t\t\t\t\t//Read user input, display prompt if blank enter, otherwise send to server\n\t\t\t\t\t\twhile (userInput.equals(\"\")) {\n\t\t\t\t\t\t\tsysOut.print(\"C: \");\n\t\t\t\t\t\t\tuserInput = sysIn.readLine();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\t\t\tserverWriter.newLine();\n\t\t\t\t\t\tserverWriter.flush();\n\t\t\t\t\t\ttryRead = true;\n\t\t\t\t\t}\n\t\t\t\t\tcmdMode = \"regular\"; //Force reset to regular mode after response-command cycle ends\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n //Clean up all connection objects\n serverWriter.close();\n serverReader.close();\n\t\t\tplainSocket.close();\n\t\t\tif (connSuccess) {\n\t\t\t\t\tclientSocket.close();\n\t\t\t}\n sysIn.close();\n sysOut.close();\n } catch (IOException e) {\n System.err.println(e.toString());\n }\n }",
"private void sendEmail(String emailAddress, String subject, String body) {\n\t\t\n\t}",
"private static void sendMail(String text) {\n Properties properties = System.getProperties();\n Session session = Session.getDefaultInstance(properties);\n\n //compose the message\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));\n message.setSubject(\"RAZER - AVAILABILITYT\");\n message.setText(text);\n\n // Send message\n Transport t = session.getTransport(\"smtps\");\n t.connect(\"smtp.gmail.com\", from, \"Shutting123\");\n t.sendMessage(message, message.getAllRecipients());\n log.error(\"message sent successfully....\");\n\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public void sendEmail(String[] to, String subject, String body, MailMimeType mailMimeType) throws EmailNotSendedException {\n if(emailConfig == null){\n throw new EmailNotSendedException(\"Servidor de email não está configurado\");\n }\n // Validar configuracoes de email\n ValidatorFactory validatorFactory = Validation.buildDefaultValidatorFactory();\n Validator validator = validatorFactory.getValidator();\n Set<ConstraintViolation<EmailConfig>> violations = validator.validate(emailConfig);\n if(violations.size() > 0){\n throw new EmailNotSendedException(\"Configurações de Email Incorretas ao tentar enviar\");\n }\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", emailConfig.getHost());\n props.put(\"mail.smtp.port\", emailConfig.getPort());\n if (emailConfig.getProtocol() == Protocol.TLS) {\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n }else if(emailConfig.getProtocol() == Protocol.SMTPS){\n props.put(\"mail.smtp.ssl.enable\", \"true\");\n }\n final String username = emailConfig.getLogin();\n final String password = emailConfig.getPassword();\n final String from = emailConfig.getSender();\n Authenticator authenticator = null;\n if(emailConfig.getNeedAuthentication()){\n\n props.put(\"mail.smtp.auth\", \"true\");\n authenticator = new Authenticator() {\n private PasswordAuthentication pa = new PasswordAuthentication(username, password);\n\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return pa;\n }\n };\n }\n\n Session session = Session.getInstance(props, authenticator);\n session.setDebug(emailConfig.getDebug());\n MimeMessage message = new MimeMessage(session);\n try {\n message.setFrom(new InternetAddress(from));\n InternetAddress[] address = new InternetAddress[to.length];\n\n for (int i = 0; i < to.length; i++) {\n try {\n address[i] = new InternetAddress(to[i]);\n } catch (Exception e) {\n throw new EmailNotSendedException(\"Endereço de email inválido\");\n }\n }\n message.setRecipients(Message.RecipientType.TO, address);\n message.setSubject(subject);\n message.setSentDate(new Date());\n\n Multipart multipart = new MimeMultipart(\"alternative\");\n\n MimeBodyPart bodyPart = new MimeBodyPart();\n\n switch (mailMimeType){\n case TXT:\n bodyPart.setText(body);\n break;\n case HTML:\n bodyPart.setContent(body, \"text/html\");\n break;\n default:\n bodyPart.setText(body);\n\n }\n\n multipart.addBodyPart(bodyPart);\n message.setContent(multipart);\n Transport.send(message);\n\n } catch (MessagingException ex) {\n throw new EmailNotSendedException(\"Não foi possível enviar email: \" + ex.getMessage());\n\n }\n\n }",
"public void sendPasswordEmail(String myEmail) {\n String to = myEmail;\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from this host\n String host = \"smtp.gmail.com\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n properties.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n properties.setProperty(\"mail.smtp.auth\", \"true\");\n properties.setProperty(\"mail.smtp.port\", \"587\");\n // Get the default Session object.\n Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"itkstuadmin\");\n }\n });\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"Password\");\n\n // Send the actual HTML message, as big as you like\n message.setContent(\"<p>Hello \" + theModel.getEmail() + \", your password is: \" + theModel.getPassword() + \"</p>\", \"text/html;charset=UTF-8\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public static void sendMail(String subject, String htmlBody, String textBody, String recipient, String sender, String host, long port, String securityProtocol, boolean async) throws MessagingException\n {\n sendMail(subject, htmlBody, textBody, recipient, sender, host, port, securityProtocol, null, null, async);\n }",
"public void send() {\r\n String _from = \"[email protected]\";\r\n String _password = \"Ng101840\";\r\n //Get properties object\r\n Properties props = new Properties();\r\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.put(\"mail.smtp.socketFactory.class\",\r\n \"javax.net.ssl.SSLSocketFactory\");\r\n props.put(\"mail.smtp.auth\", \"true\");\r\n props.put(\"mail.smtp.port\", \"465\");\r\n //get Session \r\n Session session = Session.getInstance(props,\r\n new javax.mail.Authenticator() {\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(_from, _password);\r\n }\r\n });\r\n //compose message \r\n try {\r\n MimeMessage message = new MimeMessage(session);\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(_to));\r\n message.setSubject(subject);\r\n message.setText(this.message);\r\n Transport.send(message);\r\n LOG.info(\"The email was sent successfully\");\r\n } catch (MessagingException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }",
"private void sendEmail() {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n\n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"This is the Subject Line!\");\n\n // Now set the actual message\n message.setText(\"This is actual message\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public static void sendMail(String to, String msg) throws RuntimeException, AddressException, MessagingException {\r\n Properties properties = System.getProperties();\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n properties.put(\"mail.smtp.port\", \"587\");\r\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\r\n// properties.setProperty(\"mail.smtp.host\", HOST);\r\n Session session = Session.getDefaultInstance(properties,\r\n new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(FROM, PASSWORD);\r\n }\r\n });\r\n\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n // Set From: header field of the header.\r\n message.setFrom(new InternetAddress(FROM));\r\n // Set To: header field of the header.\r\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to));\r\n // Set Subject: header field\r\n message.setSubject(\"Your confirmation code from Simple Blog register\");\r\n // Send the actual HTML message, as big as you like\r\n message.setContent(\r\n \"<h1>\" + msg + \"</h1><br/>\"\r\n + \"<h5>Please input your confirmation code to the web link:</h5>\"\r\n + \"<a href=\\\"\" + CONFIRM_URL + \"\\\">Click here</a>\",\r\n \"text/html\");\r\n\r\n // Send message \r\n Transport.send(message);\r\n System.out.println(\"message sent successfully....\");\r\n\r\n }",
"public void send() {\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String password = \"Oneplanner2017*\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\ttry {\n\t\t\tSession session = Session.getInstance(props,\n\t\t\t\t\t new javax.mail.Authenticator() {\n\t\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t\t}\n\t\t\t\t\t });\n\n\t\t\t\t\tMessage message = new MimeMessage(session);\n\t\t\t\t\tmessage.setFrom(new InternetAddress(\"[email protected]\"));\n\t\t\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\t\tInternetAddress.parse(\"[email protected]\"));\n\t\t\tmessage.setSubject(\"test\");\n\t\t\tmessage.setText(\"test\");\n\t\t\t\n\t\t\tTransport.send(message);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n }",
"public static void sendMail(String subject, String htmlBody, String textBody, String recipient, String sender, String host, long port, String securityProtocol, String user, String password, boolean async) throws MessagingException\n {\n try\n {\n String sp = StringUtils.defaultIfEmpty(securityProtocol, Config.getInstance().getValueAsString(\"smtp.mail.security.protocol\"));\n sendMail(subject, htmlBody, textBody, null, recipient, sender, null, null, false, false, host, port, sp, user, password, async);\n }\n catch (IOException e)\n {\n // Should never happen, as IOException can only be thrown where there are attachments.\n _LOGGER.error(\"Cannot send mail \" + subject + \" to \" + recipient, e);\n }\n }",
"public void sendMail(String to, String cc, String bcc, String subject, String text);",
"public void SendEmail(){\n //Dummy Email Bot\n String from = \"[email protected]\";\n String emailPW = \"thisiscz2002\";\n\n try{\n Session session = Session.getDefaultInstance(init(), new Authenticator(){\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(from, emailPW);\n }});\n\n // -- Create a new message --\n Message msg = new MimeMessage(session);\n\n // -- Set the FROM and fields --\n msg.setFrom(new InternetAddress(from));\n msg.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(getRecipientEmail(),false));\n\n LocalDateTime myDateObj = LocalDateTime.now();\n DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n String formattedDate = myDateObj.format(myFormatObj);\n\n msg.setSubject(getEmailSubject());\n msg.setText(getMessage());\n msg.setSentDate(new Date());\n Transport.send(msg);\n\n //System.out.println(formattedDate + \" - Message sent.\");\n }catch (MessagingException e){\n System.out.println(\"Error: \" + e);\n }\n }",
"public static void sendEmail ( final String addr, final String subject, final String body )\n throws MessagingException {\n\n InputStream input = null;\n\n final String to = addr;\n final String from;\n final String username;\n final String password;\n final String host;\n\n final File emailFile;\n final String emailPath = System.getProperty( \"user.dir\" ) + \"/src/main/java/email.properties\";\n Scanner emailScan = null;\n\n try {\n emailFile = new File( emailPath );\n emailScan = new Scanner( emailFile );\n }\n catch ( final FileNotFoundException fnfe ) {\n emailScan = null;\n }\n\n if ( null != emailScan ) {\n emailScan.next(); // from\n from = emailScan.next();\n emailScan.next(); // username\n username = emailScan.next();\n emailScan.next(); // password\n password = emailScan.next();\n emailScan.next(); // host\n host = emailScan.next();\n emailScan.close();\n }\n else {\n final Properties properties = new Properties();\n final String filename = \"email.properties\";\n input = DBUtil.class.getClassLoader().getResourceAsStream( filename );\n if ( null != input ) {\n try {\n properties.load( input );\n }\n catch ( final IOException e ) {\n e.printStackTrace();\n }\n }\n from = properties.getProperty( \"from\" );\n username = properties.getProperty( \"username\" );\n password = properties.getProperty( \"password\" );\n host = properties.getProperty( \"host\" );\n }\n\n /*\n * Source for java mail code:\n * https://www.tutorialspoint.com/javamail_api/\n * javamail_api_gmail_smtp_server.htm\n */\n\n final Properties props = new Properties();\n props.put( \"mail.smtp.auth\", \"true\" );\n props.put( \"mail.smtp.starttls.enable\", \"true\" );\n props.put( \"mail.smtp.host\", host );\n props.put( \"mail.smtp.port\", \"587\" );\n\n final Session session = Session.getInstance( props, new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication () {\n return new PasswordAuthentication( username, password );\n }\n } );\n\n try {\n final Message message = new MimeMessage( session );\n message.setFrom( new InternetAddress( from ) );\n message.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to ) );\n message.setSubject( subject );\n message.setText( body );\n Transport.send( message );\n }\n catch ( final MessagingException e ) {\n e.printStackTrace();\n throw e;\n }\n }",
"@Override\n public Future<EmailResult<String>> sendEmail(\n String subject,\n List<String> emailAddresses,\n String message,\n MailSettings settings,\n boolean enc) {\n if (enc) {\n settings.setPassword(encryptionService.encrypt(settings.getPassword()));\n }\n return emailThread.submit(createEmailer(subject, emailAddresses, message, message, settings));\n }",
"String sendSimpleMessageV2(String from, String fromMail, String to, String subject, String body);",
"public void setSmtpTLS(boolean value) {\n this.smtpTLS = value;\n }",
"public static void sendMail(String subject, String htmlBody, String textBody, Collection<File> attachments, String recipient, String sender, List<String> cc, List<String> bcc, boolean deliveryReceipt, boolean readReceipt, String host, long port, String securityProtocol, boolean async) throws MessagingException, IOException\n {\n String protocol = Config.getInstance().getValueAsString(\"smtp.mail.security.protocol\");\n sendMail(subject, htmlBody, textBody, attachments, recipient, sender, cc, bcc, deliveryReceipt, readReceipt, host, port, protocol, null, null, async);\n }",
"public void sendMail(String to, String subject, String text);",
"public static void sendEmail(String randPass) {\n\t\t// Recipient's email ID needs to be mentioned.\n\t String to = \"[email protected]\";\n\n\t // Sender's email ID needs to be mentioned\n\t String from = \"[email protected]\";\n\n\t // Get system properties\n\t Properties properties = System.getProperties();\n\t \tproperties = System.getProperties();\n\t properties.put(\"mail.smtp.auth\", \"true\");\n\t properties.put(\"mail.smtp.starttls.enable\", \"true\");\n\t properties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t properties.put(\"mail.smtp.port\", \"587\");\n\n\t // Get the default Session object.\n\t Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n\t protected PasswordAuthentication getPasswordAuthentication() {\n\t return new PasswordAuthentication(\"user\", \"pass\");\n\t }\n\t });\n\n\t try {\n\t // Create a default MimeMessage object.\n\t MimeMessage message = new MimeMessage(session);\n\n\t // Set From: header field of the header.\n\t message.setFrom(new InternetAddress(from));\n\n\t // Set To: header field of the header.\n\t message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\n\t // Set Subject: header field\n\t message.setSubject(\"Dart Password Reset\");\n\t // Now set the actual message\n\t message.setText(\"You're getting this message because you've requested to reset your password! Your new password is: \" + randPass + \" ! Don't forget it.\");\n\n\t // Send message\n\t Transport.send(message);\n\t System.out.println(\"Sent message successfully....\");\n\t } catch (MessagingException mex) {\n\t mex.printStackTrace();\n\t }\n\n\t}",
"public void sendEmail(String receiver, Integer indexID){\r\n\t \r\n\t Properties props = new Properties();\r\n\t props.put(\"mail.smtp.host\", EMAIL_SERVER);\r\n\t props.put(\"mail.smtp.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t props.put(\"mail.smtp.auth\", \"true\");\r\n\t props.put(\"mail.smtp.socketFactory.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t props.put(\"mail.smtp.socketFactory.fallback\", \"false\");\r\n\t \r\n\t Session sess = Session.getInstance(props,\r\n\t\t\t new javax.mail.Authenticator() {\r\n\t\t \t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t \t\t\treturn new PasswordAuthentication(EMAIL_SENDER, PW_SENDER);\r\n\t\t \t\t}\r\n\t \t});\r\n\t \r\n\t try{ \r\n\t Message msg = new MimeMessage(sess);\r\n\t msg.setFrom(new InternetAddress(EMAIL_SENDER));\r\n\t msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(receiver));\r\n\t msg.setSubject(\"Notification regarding waitlist\");\r\n\t \r\n\t Transport.send(msg);\r\n\t System.out.println(\"Email has been send successfully!\"); \r\n\t }\r\n\t \r\n\t catch (MessagingException e){\r\n\t\t throw new RuntimeException(e);\r\n\t }\r\n\t \r\n\t \r\n\t }",
"private void sendEmail(String email, String password, String name) {\n \n String to = email;\n String from = \"[email protected]\";\n String subject = \"New Password\";\n String body = \"Dear \" + name + \",\\n\\n\" +\n \"You recently requested a password change. Here is your new password: \\n\\n\" +\n password +\n \"\\n\\nHave a great day!\\n\\n\" +\n \"Twitter Team\\n\" +\n \"Alex Foreman & Paul Brown\";\n boolean isBodyHTML = false;\n\n try\n {\n MailUtilYahoo.sendMail(to, from, subject, body, isBodyHTML);\n }\n catch (MessagingException e)\n {\n this.log(\n \"Unable to send email. \\n\" +\n \"Here is the email you tried to send: \\n\" +\n \"=====================================\\n\" +\n \"TO: \" + email + \"\\n\" +\n \"FROM: \" + from + \"\\n\" +\n \"SUBJECT: \" + subject + \"\\n\" +\n \"\\n\" +\n body + \"\\n\\n\");\n } \n }",
"public void sendMail(String to, String cc, String subject, String text);",
"private void sendBookingConfirmMailWithMailtrapProvider(String userEmail, String token) throws MessagingException {\n String to = userEmail;//change accordingly \n// Gmail’s SMTP account,\n\n String userName = \"91c28c9b77f112\";//from mailtrap\n String password = \"9d4d7fbf411267\";\n\n //Get the session object \n //1. sets SMTP server properties\n Properties properties = new Properties();\n properties.put(\"mail.smtp.auth\", true);\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\n properties.put(\"mail.smtp.host\", \"smtp.mailtrap.io\");\n properties.put(\"mail.smtp.port\", \"25\");\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.mailtrap.io\");\n //2. creates a new session with an authenticator\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(userName, password);\n }\n };\n\n Session session = Session.getInstance(properties, auth);\n\n //3. Creates a new e-mail message\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(\"[email protected]\"));\n InternetAddress[] toAddresses = {new InternetAddress(to)};\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\n msg.setSubject(\"Test send mail\");\n msg.setSentDate(new Date());\n msg.setText(\"Hello, this is example of sending email. ?token=\" + token);\n\n// MimeMessage message = new MimeMessage(session);\n// message.setFrom(new InternetAddress(from));\n// message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n //4. Send the message\n Transport.send(msg);\n System.out.println(\"message sent successfully....\");\n\n }",
"public boolean sendMail(String toAddress, String subjectKey, String bodyText, String urlAttachment, String[] spokenLangs) {\n fromEmailAddress = fromEmailAddress.trim();\n replyToAddress = replyToAddress.trim();\n if (replyToAddress == null) replyToAddress = fromEmailAddress;\n\n Locale locale;\n if (spokenLangs == null || spokenLangs.length == 0) {\n locale = getDefaultLocale();\n } else {\n locale = Locale.forLanguageTag(spokenLangs[0]);\n }\n String subjectText = MessageSourceResourceBundle.getBundle(\"messages\", locale).getString(subjectKey);\n\n if ((toAddress == null) || (toAddress.length() <= 3)) {\n log.warn(\"failed sending email because toAdrress(\" + toAddress + \") is unvalid\");\n return false;\n }\n\n if ((fromEmailAddress == null) || (fromEmailAddress.length() == 0) || fromEmailAddress.equals(\"[email protected]\")) {\n log.warn(\"eMail not configured in application.properties - skipping sending to \" + toAddress);\n return false;\n }\n\n\n toAddress = toAddress.trim();\n\n MimeMessage mail = javaMailSender.createMimeMessage();\n try {\n log.info(\"EMailManager - sending eMail to(\" + toAddress + \") ...\");\n MimeMessageHelper helper = new MimeMessageHelper(mail, true);\n helper.setTo(toAddress);\n helper.setReplyTo(replyToAddress);\n helper.setFrom(fromEmailAddress);\n helper.setSubject(subjectText);\n helper.setText(bodyText);\n if (urlAttachment != null)\n helper.addAttachment(\"KonfettiCoupons.pdf\", new URLDataSource(new URL(urlAttachment)));\n javaMailSender.send(mail);\n log.info(\"EMailManager - OK sending eMail to(\" + toAddress + \")\");\n return true;\n } catch (MessagingException e) {\n log.warn(\"EMailManager - FAIL sending eMail to(\" + toAddress + \"): \" + e.getMessage());\n e.printStackTrace();\n } catch (MalformedURLException e) {\n log.warn(\"EMailManager - FAIL sending eMail to(\" + toAddress + \") attachementURL(\" + urlAttachment + \"): \" + e.getMessage());\n e.printStackTrace();\n } catch (Exception e) {\n log.warn(\"EMailManager - FAIL sending eMail to(\" + toAddress + \") attachementURL(\" + urlAttachment + \") mailserver(\" + Helper.getPropValues(\"spring.mail.host\") + \":\" + Helper.getPropValues(\"spring.mail.port\") + \"): \" + e.getMessage());\n e.printStackTrace();\n }\n return false;\n }",
"public static boolean sendMail() throws AddressException, MessagingException {\n Session session = Session.getDefaultInstance(properties);\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n // Set the RFC 822 \"From\" header field using the\r\n // value of the InternetAddress.getLocalAddress method.\r\n \r\n\t\tmessage.setFrom(new InternetAddress(from));\r\n\t\t\r\n // Add the given addresses to the specified recipient type.\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\r\n // Set the \"Subject\" header field.\r\n message.setSubject(\"hi..!\");\r\n // Sets the given String as this part's content,\r\n // with a MIME type of \"text/plain\".\r\n message.setText(\"Hi ......\");\r\n // Send message\r\n Transport.send(message);\r\n System.out.println(\"Message Send.....\");\r\n \r\n\t\treturn true;\r\n\t}",
"public static void send(String smtpServer, String to, String from, String subject, String body) {\n try {\n Properties props = System.getProperties();\n\n props.put(\"mail.smtp.host\", smtpServer);\n Session session = Session.getDefaultInstance(props, null);\n\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(from));\n msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));\n\n msg.setSubject(subject);\n msg.setText(body);\n\n msg.setHeader(\"X-Mailer\", \"ezDL\");\n msg.setSentDate(new Date());\n\n Transport.send(msg);\n }\n catch (MessagingException ex) {\n logger.error(ex.getMessage(), ex);\n }\n }",
"public static void main(String [] args) throws Throwable, MessagingException {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n Properties prop = new Properties();\n\n prop.put(\"mail.smtp.auth\", true);\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.port\", \"587\");\n Session session = Session.getInstance(prop, new Authenticator() {\n \t @Override\n \t protected PasswordAuthentication getPasswordAuthentication() {\n \t return new PasswordAuthentication(\"sarowerhome\", \"tanvirj9\");\n \t }\n \t});\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(\n Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"Mail Subject\");\n\n String msg = \"This is my first email using JavaMailer\";\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(msg, \"text/html\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n }",
"public interface SMTPClient {\n\n\t// == EXPOSED SETTINGS ===============================================================================\n\tpublic final static int CONNECTION_TIMEOUT = 1000 * 60 * 3; // 3 minutes\n\tpublic final static int CONNECTION_RETRIES = 0; // NONE\n\t\n\t/**\n\t * SMTP result codes. These will come directly from the server.\n\t */\n public static final int CODE_211 = 211;\n public static final int CODE_214 = 214;\n public static final int CODE_215 = 215;\n public static final int CODE_220 = 220;\n public static final int CODE_221 = 221;\n public static final int CODE_250 = 250;\n public static final int CODE_251 = 251;\n public static final int CODE_354 = 354;\n // Failures\n public static final int CODE_421 = 421;\n public static final int CODE_FAIL_THRESHOLD = CODE_421;\n public static final int CODE_450 = 450;\n public static final int CODE_451 = 451;\n public static final int CODE_452 = 452;\n public static final int CODE_500 = 500;\n public static final int CODE_501 = 501;\n public static final int CODE_502 = 502;\n public static final int CODE_503 = 503;\n public static final int CODE_504 = 504;\n public static final int CODE_550 = 550;\n public static final int CODE_551 = 551;\n public static final int CODE_552 = 552;\n public static final int CODE_553 = 553;\n public static final int CODE_554 = 554;\n public static final int SYSTEM_STATUS = CODE_211;\n public static final int HELP_MESSAGE = CODE_214;\n public static final int SERVICE_READY = CODE_220;\n public static final int SERVICE_CLOSING_TRANSMISSION_CHANNEL = CODE_221;\n public static final int ACTION_OK = CODE_250;\n public static final int USER_NOT_LOCAL_WILL_FORWARD = CODE_251;\n public static final int START_MAIL_INPUT = CODE_354;\n public static final int SERVICE_NOT_AVAILABLE = CODE_421;\n public static final int ACTION_NOT_TAKEN = CODE_450;\n public static final int ACTION_ABORTED = CODE_451;\n public static final int INSUFFICIENT_STORAGE = CODE_452;\n public static final int UNRECOGNIZED_COMMAND = CODE_500;\n public static final int SYNTAX_ERROR_IN_ARGUMENTS = CODE_501;\n public static final int COMMAND_NOT_IMPLEMENTED = CODE_502;\n public static final int BAD_COMMAND_SEQUENCE = CODE_503;\n public static final int COMMAND_NOT_IMPLEMENTED_FOR_PARAMETER = CODE_504;\n public static final int MAILBOX_UNAVAILABLE = CODE_550;\n public static final int USER_NOT_LOCAL = CODE_551;\n public static final int STORAGE_ALLOCATION_EXCEEDED = CODE_552;\n public static final int MAILBOX_NAME_NOT_ALLOWED = CODE_553;\n public static final int TRANSACTION_FAILED = CODE_554;\n\t\n\t// ===================================================================================================\n\t// == METHODS ==================================\n\t\n\t/**\n\t * Get client name.\n\t * @return the clients name.\n\t */\n\tpublic String getName();\n\t\n\t/**\n\t * Get the state.\n\t * @return State\n\t */\n\tpublic SMTPState getState();\n\t\n\t/**\n\t * Set the socket timeout for each connection. A timeout may be retried, depending on the value set with setSocketRetries(int).<br>\n\t * The default value is CONNECTION_TIMEOUT.\n\t * <p>\n\t * It will take effect whenever a new connection is established.\n\t * @param timeout the timeout in milliseconds.\n\t */\n\tpublic void setTimeout(int timeout);\n\t\n\t/**\n\t * Number of times a socket read will be retried after a timeout before completely giving up.<br>\n\t * The default value is CONNECTION_RETRIES.\n\t * <p>\n\t * It will take effect whenever a new operation is started.\n\t * @param retries Number of retries. Zero or a negative number is the same as no retries.\n\t */\n\tpublic void setSocketRetries(int retries);\n\t\n\t/**\n\t * Start a connection. Return a code. It will throw an ERROR is already connect, but will leave the connection intact.\n\t * @param connectAddress \n\t * @param connectPort\n\t * @return ACTION_OK if it was ok.\n\t * @throws ThingsException will always be fatal at this point.\n\t */\n\tpublic Reply connect(String connectAddress, int connectPort) throws ThingsException, InterruptedException;\n\t/**\n\t * Start a connection. Return a code.\n\t * @return The reply.\n\t * @throws ThingsException which will never happen, since we'll just abandon the bad connection.\n\t */\n\tpublic Reply\tdisconnect() throws ThingsException, InterruptedException ;\n\t\n\t/**\n\t * HELO with the hostname--no authentication. A state problem will cause a FAULT. A transmission problem is just an ERROR. It will transition to LOGIN_COMPLETE only\n\t * of the reply is an ACTION_OK.\n\t * @param hostname\n\t * @return the reply.\n\t */\n\tpublic Reply login(String hostname) throws ThingsException, InterruptedException;\n\t\n\t/**\n\t * Set the sender using MAIL FROM. It must be at LOGIN_COMPLETE.\n\t * @param senderText as a valid SMTP address.\n\t * @return A reply.\n\t * @throws ThingsException if not ready for MAIL FROM or actual transmission problem.\n\t */\n\tpublic Reply sender(String senderText) throws ThingsException, InterruptedException;\n\t\n\t/**\n\t * Set the sender using MAIL FROM. It must be at LOGIN_COMPLETE. Implementation of the DSN is up to the client. It may choose to ignore it.\n\t * @param senderText as a valid SMTP address.\n\t * @param dsn command. If null, it will be ignored.\n\t * @return A reply.\n\t * @throws ThingsException if not ready for MAIL FROM or actual transmission problem.\n\t */\n\tpublic Reply sender(String senderText, DSN dsn) throws ThingsException, InterruptedException;\t\n\t\n\t/**\n\t * Set the recipient using RCPT TO. It must be at MAILFROM_DONE.\n\t * @param recipientText as a valid SMTP address.\n\t * @return A reply.\n\t * @throws ThingsException if not ready for RCPT TO or actual transmission problem.\n\t */\n\tpublic Reply recipient(String recipientText) throws ThingsException, InterruptedException;\n\t\n\t/**\n\t * Set the recipient using RCPT TO. It must be at MAILFROM_DONE. Implementation of the DSN is up to the client. It may choose to ignore it.\n\t * @param recipientText as a valid SMTP address.\n\t * @param dsn command. If null, it will be ignored.\n\t * @return A reply.\n\t * @throws ThingsException if not ready for RCPT TO or actual transmission problem.\n\t */\n\tpublic Reply\trecipient(String recipientText, DSN dsn) throws ThingsException, InterruptedException;\n\t\n\t/**\n\t * RESET the connection. This will return the state to LOGIN_COMPLETE, as long as it has already been logged in.\n\t * @return the reply.\n\t * @throws ThingsException if the connection is made and logged in.\n\t */\n\tpublic Reply reset() throws ThingsException, InterruptedException;\n\t\n\t/**\n\t * Send DATA. It must be at RCPTTO_DONE. It will do the appropriate dot doubling and CRLF management.\n\t * @param ios Stream to send. You handle any buffering. Null entries are allowed and ignored.\n\t * @return the reply\n\t */\n\tpublic Reply sendData(InputStream... ios) throws ThingsException, InterruptedException;\n\t\n\t/**\n\t * Quit the client. This will return it to FRESH. It will never throw an exception, but may return a bad reply.\n\t * @return a reply\n\t */\n\tpublic Reply done() throws ThingsException, InterruptedException;\n\n}",
"public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }",
"public String sendEmailSMTP(final SendEmailRequest request) throws Exception {\n\t\tProperties props = System.getProperties();\n\t\tprops.put(\"mail.transport.protocol\", \"smtp\");\n\t\tprops.put(\"mail.smtp.port\", Constant.PORT);\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\n\t\t// Create a Session object to represent a mail session with the specified\n\t\t// properties.\n\t\tSession session = Session.getDefaultInstance(props);\n\n\t\tString DefaultCharSet = MimeUtility.getDefaultJavaCharset();\n\n\t\t// Create a new MimeMessage object.\n\t\tMimeMessage message = new MimeMessage(session);\n\n\t\t// Add subject, from and to lines.\n\t\tmessage.setSubject(request.getEmailSubject(), \"UTF-8\");\n\t\tmessage.setFrom(new InternetAddress(request.getSenderEmailAddress(), request.getSenderName()));\n\t\tmessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(request.getRecipientEmailAddress()));\n\n\t\t// Create a multipart/alternative child container.\n\t\tMimeMultipart msg_body = new MimeMultipart(\"alternative\");\n\n\t\t// Create a wrapper for the HTML and text parts.\n\t\tMimeBodyPart wrap = new MimeBodyPart();\n\n\t\t// Define the HTML part.\n\t\tMimeBodyPart htmlPart = new MimeBodyPart();\n\t\t// Encode the HTML content and set the character encoding.\n\t\tString emailBody = \"Hello, \".concat(request.getRecipientName()).concat(\"\\r\\n\").concat(request.getEmailBody());\n\t\thtmlPart.setContent(MimeUtility.encodeText(emailBody, DefaultCharSet, \"B\"), \"text/html; charset=UTF-8\");\n\t\thtmlPart.setHeader(\"Content-Transfer-Encoding\", \"base64\");\n\n\t\t// Add the text and HTML parts to the child container.\n\t\tmsg_body.addBodyPart(htmlPart);\n\n\t\t// Add the child container to the wrapper object.\n\t\twrap.setContent(msg_body);\n\n\t\t// Create a multipart/mixed parent container.\n\t\tMimeMultipart msg = new MimeMultipart(\"mixed\");\n\n\t\t// Add the multipart/alternative part to the message.\n\t\tmsg.addBodyPart(wrap);\n\n\t\t// Define the attachment\n\t\tString attachmentUrl = request.getAttachmentUrl();\n\t\tif (null != attachmentUrl && !attachmentUrl.isEmpty()) {\n\t\t\tMimeBodyPart att = new MimeBodyPart();\n\t\t\tDataSource fds = new FileDataSource(uploadFile.saveUrlAs(attachmentUrl));\n\t\t\tatt.setDataHandler(new DataHandler(fds));\n\t\t\tatt.setFileName(fds.getName());\n\t\t\t// Add the attachment to the message.\n\t\t\tmsg.addBodyPart(att);\n\t\t\tSystem.out.println(\"Attempting to send an email through Amazon SES \" + \"using the AWS SDK for Java...\");\n\t\t}\n\n\t\t// Add the parent container to the message.\n\t\tmessage.setContent(msg);\n\n\t\t// Add a configuration set header. Comment or delete the\n\t\t// next line if you are not using a configuration set\n\t\t// msg.setHeader(\"X-SES-CONFIGURATION-SET\", CONFIGSET);\n\n\t\t// Create a transport.\n\t\tTransport transport = session.getTransport();\n\n\t\t// Send the message.\n\t\ttry {\n\t\t\tSystem.out.println(\"Sending...\");\n\n\t\t\t// Connect to Amazon SES using the SMTP username and password you specified\n\t\t\t// above.\n\t\t\ttransport.connect(Constant.HOST, Constant.SMTP_USERNAME, Constant.SMTP_PASSWORD);\n\n\t\t\t// Send the email.\n\t\t\ttransport.sendMessage(message, message.getAllRecipients());\n\n\t\t\tdynamodbService.insertData(request);\n\t\t\tSystem.out.println(\"Email sent!\");\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"The email was not sent.\");\n\t\t\tSystem.out.println(\"Error message: \" + ex.getMessage());\n\t\t} finally {\n\t\t\t// Close and terminate the connection.\n\t\t\ttransport.close();\n\t\t}\n\t\treturn Constant.SENDVERFIYSTATUS;\n\t}",
"@Test public void testMailer() throws Exception {\n ServerProperties properties = new ServerProperties();\n properties.setTestProperties();\n Server server = Server.newInstance(properties);\n Mailer mailer = Mailer.getInstance();\n assertTrue(\"Checking mailer\", mailer.send(\"[email protected]\", \"Test Subject\", \"TestBody\"));\n server.stop();\n }",
"public static String sendPBCHTMLEmailExternal(String to[], String cc[], String bcc[], String subject, String message, String filename[]) throws EmailException{\n\t\t\n\n\t\ttry{\n\t\t\t\n\t\t\tHtmlEmail email = new HtmlEmail();\n\t\t\temail.setDebug(true);\n\t\t\temail.setHostName(\"mail.pbc.com.pk\");\n\t\t\temail.setSmtpPort(465);\n\t\t\t//email.setAuthentication(\"[email protected]\",\"smooking\");\n\t\t\temail.setAuthenticator(new DefaultAuthenticator(\"[email protected]\", \"smooking\"));\n\t\t\t//email.setTLS(true);\n\t\t\temail.setSSL(true);\n\t\t\t//email.setSSLOnConnect(true);\n\t\t\t\n\t\t\t//email.setSSLCheckServerIdentity(false);\n\t\t\t//email.setStartTLSRequired(true);\n\t\t\t\n\t\t\tfor (int i = 0; i < to.length; i++){\n\t\t\t\temail.addTo(to[i]);\n\t\t\t}\n\t\t\tif (cc != null){\n\t\t\t\tfor (int i = 0; i < cc.length; i++){\n\t\t\t\t\temail.addCc(cc[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (bcc != null){\n\t\t\t\tfor (int i = 0; i < bcc.length; i++){\n\t\t\t\t\temail.addBcc(bcc[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\temail.setFrom(\"[email protected]\", \"Theia\");\n\t\t\t\n\t\t\temail.setSubject(subject);\n\t\t\t\n\t\t\temail.setHtmlMsg(message);\n\t\t\t\n\t\t\tif (filename != null){\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < filename.length; i++){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tEmailAttachment attachment = new EmailAttachment();\n\t\t\t\t\t\tattachment.setPath(Utilities.getEmailAttachmentsPath()+\"/\"+filename[i]);\n\t\t\t\t\t\tattachment.setDisposition(EmailAttachment.ATTACHMENT);\n\t\t\t\t\t\tattachment.setDescription(filename[i]);\n\t\t\t\t\t\tattachment.setName(filename[i]);\n\t\t\t\t\t\temail.attach(attachment);\n\t\t\t\t\t}catch(Exception e1){e1.printStackTrace();}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t\treturn email.send();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t//return true;\n\t}",
"public void sendEmail(String username, String password) throws Throwable {\r\n\t\tString emailSubject = \"Test Report on \" + new Date();\r\n\t\tString emailMsg = \"This is an automatically generated email for test run\";\r\n\t\tEmailAttachment attachment = new EmailAttachment();\r\n\t\tattachment.setPath(\"test-output/emailable-report.html\");\r\n\t\tattachment.setDisposition(EmailAttachment.ATTACHMENT);\r\n\t\tattachment.setDescription(\"Test Report\");\r\n\t\tMultiPartEmail email = new MultiPartEmail();\r\n\t\temail.setHostName(\"imap.gmail.com\");\r\n\t\temail.setSmtpPort(465);\r\n\t\temail.setAuthenticator(new DefaultAuthenticator(username, password));\r\n\t\temail.setSSLCheckServerIdentity(true);\r\n\t\temail.setSSLOnConnect(true);\r\n\t\tSystem.out.println(\"Connected to gmail..\");\r\n\t\tSystem.out.println(\"Sending mail to: \" + toEmails);\r\n\t\tSystem.out.println(\"Subject: \" + emailSubject + \"\\nEmail Body: \" + emailMsg);\r\n\t\temail.setFrom(username);\r\n\t\temail.setSubject(emailSubject);\r\n\t\temail.setMsg(emailMsg);\r\n\t\tString[] emails = toEmails.split(\",\");\r\n\t\temail.addTo(emails);\r\n\t\temail.attach(attachment);\r\n\t\temail.send();\r\n\t\tSystem.out.println(\"Email Sent..\");\r\n\t}",
"public boolean mailRecuperarPassword(String nombreusuario, String password, String mail){\n\n try {\n\n// //seteamos el asunto\n// message.setSubject(\"UNDEC - Activar Cuenta Nortia UNDEC\");\n//\n// //seteamos el mensaje que vamos a enviar\n// message.setContent(\"<html>\\n\" +\n// \"<body>\\n\" +\n// \"\\nHola, usuario = \" +nombreusuario+ \",\\n su nuevo password es = \"+password+\n// \"\\n\" +\n// \"\\nUsted puede cambiar el password cuando ingrese al sistema\\n \"+\n// \n// \"Muchas Gracias\"+\n// \"</body>\\n\" +\n// \"</html>\", \"text/html\");\n// //colocamos la direccion de donde enviamos el correo\n// Address address = new InternetAddress(mail);\n// message.setFrom(address);\n// //Colocamos la direccion de la persona a enviar\n// Address send = new InternetAddress(mail,false);\n// message.addRecipient(Message.RecipientType.TO,send);\n// \n// //la persona que envia con la validacion de su cuenta.\n// Transport trans = session.getTransport(\"smtp\");\n// //Aca se autentifica que la direccion de la persona que envia sea válida\n//\n// trans.connect(\"[email protected]\",\"momomomo\");\n// trans.sendMessage(message,message.getAllRecipients());\n// trans.close();\n System.out.println(\"maiñll\");\n Email email = new Email();\n email.setFromAddress(\"Nortia UNDEC\", \"[email protected]\");\n email.addRecipient(nombreusuario, mail, RecipientType.TO);\n //email.addRecipient(agente.getApellido(), agente.getOtroemail(), RecipientType.BCC);\n email.setTextHTML(\"Hola, usuario = \"+nombreusuario+ \"su nuevo password es = \"+password +\n\n\" <br />Usted puede cambiar el password cuando ingrese al sistema <br />\" +\n\n\"Muchas Gracias\");\n System.out.println(\"-----------\"+mail);\n email.setSubject(\"UNDEC - Recuperar Password Nortia UNDEC\");\n \n // or:\n new Mailer(\"localhost\", 25, \"[email protected]\", \"sgap*9812\").sendMail(email);\n System.out.println(\"-----------enviado\");\n } catch (Exception ex) {\n\n ex.printStackTrace();\n //Si el correo tiene algun error lo retornaremos aca\n JsfUtil.addErrorMessage(ex,\"No se pudo crear el Usuario\");\n\n return false;\n\n \n }\n //Correo tuvo exito dara una salida en este punto indicando que si se envio\n return true;\n \n }",
"@Test\n public void mailNoEsmtpTest(TestContext testContext) {\n this.testContext=testContext;\n smtpServer.setDialogue(\"220 example.com\",\n \"EHLO \",\n \"502 EHLO command not understood\",\n \"HELO \",\n \"250 example.com\",\n \"MAIL FROM\",\n \"250 2.1.0 Ok\",\n \"RCPT TO\",\n \"250 2.1.5 Ok\",\n \"DATA\",\n \"354 End data with <CR><LF>.<CR><LF>\",\n \"250 2.0.0 Ok: queued as ABCDDEF0123456789\",\n \"QUIT\",\n \"221 2.0.0 Bye\");\n smtpServer.setCloseImmediately(false);\n\n testSuccess();\n }",
"void send(String email, Locale locale);",
"public void sendEmailWithAuth(final WatchAlertTask watchAlertTask, WatchAlertTaskQuery watchAlertTaskQuery)\r\n\t{\r\n\t\r\n\t\tString alertEmailBody = new String();\r\n\t\tString alertString = watchAlertTask.getAlertBody().getAlertString();\r\n\t\tList<MapVariableValue> nodes = watchAlertTask.getAlertBody().getAlertMapStrings();\r\n\t\tTransport trans=null;\r\n\t\tString[] stringArray = watchAlertTask.getSmtpServer().split(\":\");\r\n\t\tString smtpServer = stringArray[0];\r\n\t\tString smtpPort = new String(\"25\");\r\n\t\tif(stringArray.length == 2)\r\n\t\t\tsmtpPort = stringArray[1];\r\n\t\t\r\n\t\tif(watchAlertTask.getStoreActiveState() == 2)\r\n\t\t\talertEmailBody = WatchAlertUtils.replaceKeywords(watchAlertTask.getSendAlertEmailBody(), watchAlertTask, watchAlertTaskQuery, nodes);\r\n\t\telse\r\n\t\t\talertEmailBody = WatchAlertUtils.replaceKeywords(watchAlertTask.getClearAlertEmailBody(), watchAlertTask, watchAlertTaskQuery, nodes);\r\n\t\t\r\n\t\talertEmailBody = alertEmailBody.replaceAll(\"%MESSAGE%\", alertString);\r\n\t\t\r\n Properties props = new Properties(); \r\n props.put(\"mail.transport.protocol\", \"smtp\");\r\n props.put(\"mail.smtp.host\", smtpServer); \r\n props.put(\"mail.smtp.port\", smtpPort); \r\n props.put(\"mail.smtp.auth\", \"true\"); \r\n props.put(\"mail.debug\", \"true\"); \r\n\r\n Session session = \r\n Session.getInstance(props, new javax.mail.Authenticator() { \r\n protected PasswordAuthentication getPasswordAuthentication() { \r\n return new PasswordAuthentication(watchAlertTask.getSmtpFrom(), watchAlertTask.getSmtpPassword()); \r\n } \r\n }); \r\n\r\n try {\r\n \tMimeMessage msg = new MimeMessage(session); \r\n \tInternetAddress addressFrom = new InternetAddress(watchAlertTask.getSmtpFrom()); \r\n \tmsg.setFrom(addressFrom);\r\n \t \t\r\n \tfor(String addressstr : watchAlertTask.getRecipients())\r\n \t{\r\n\t\t\t\taddressstr = WatchAlertUtils.replaceKeywords(addressstr, watchAlertTask, watchAlertTaskQuery, nodes);\r\n\t\t\t\r\n \t\tString[] addressstr2 = addressstr.split(\":\");\r\n \t\tInternetAddress internetAddress = new InternetAddress(addressstr2[1]);\r\n \t\tif(addressstr2.length > 1)\r\n \t\t{\r\n \t\t\tif(addressstr2[0].toLowerCase().equals(\"to\"))\r\n \t\t\t\tmsg.addRecipient(MimeMessage.RecipientType.TO,internetAddress);\r\n \t\t\telse if(addressstr2[0].toLowerCase().equals(\"cc\"))\r\n \t\t\t\tmsg.addRecipient(MimeMessage.RecipientType.CC, internetAddress);\r\n \t\t\telse if(addressstr2[0].toLowerCase().equals(\"bcc\"))\r\n \t\t\t\tmsg.addRecipient(MimeMessage.RecipientType.BCC, internetAddress);\r\n \t\t\telse logger.info(\"Cannot find prefix in \\'\" +addressstr+\"\\' . Should be one of the to, cc or bcc.\");\t \t\t\t\r\n \t\t}\r\n \t\telse\r\n \t\t\tlogger.info(\"Cannot parse address \\'\" +addressstr+\"\\' . Should be in format: pefix:email@domain\");\r\n \t} \r\n \t \t\r\n \t//for(int i = 0; i< msg.getAllRecipients().length; i++)\r\n \t//\tlogger.info(\"Sending email to \" + msg.getAllRecipients()[i].toString());\r\n \t\r\n \tmsg.setSubject(watchAlertTask.getSmtpSubject()); \r\n \tmsg.setText(alertEmailBody, \"utf-8\", \"html\");\r\n \ttrans = session.getTransport(\"smtp\");\r\n \ttrans.connect(smtpServer, watchAlertTask.getSmtpFrom(), watchAlertTask.getSmtpPassword());\r\n \tmsg.saveChanges();\r\n \ttrans.sendMessage(msg, msg.getAllRecipients());\r\n \ttrans.close();\r\n \tlogger.info(\"Sent EMAIL TASK: \" + watchAlertTask.getTaskNumber()+\" with Subject: \" + watchAlertTask.getSmtpSubject() +\" and with body: \" + alertEmailBody);\r\n }\r\n catch (MessagingException mex) {\r\n \tlogger.error(mex.toString());\r\n }\r\n\t}",
"public void sendMail() {\n String email = emailID.getText().toString();\n String subject = \"BlueBucket One-Time OTP\";\n otp=generateOTP();\n String message = \"\"+otp;\n\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }",
"public static void sendMail(String fromAddr,String pass,String targetAddr,String subj,String msg) {\n\n final String username = fromAddr;\n final String password = pass;\n\n Properties props = new Properties();\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(username));\n message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(targetAddr));\n message.setSubject(subj);\n message.setText(msg);\n \n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"void send(Email email);",
"public MailSendObj() {\n\t\t// TODO Auto-generated constructor stub\n\t\tprops.setProperty(\"mail.transport.protocol\", \"smtp\"); // 使用的协议(JavaMail规范要求) \n props.put(\"mail.smtp.host\", \"smtp.office365.com\");\n props.put(\"mail.smtp.port\", \"587\");\n props.put(\"mail.smtp.starttls.enable\",\"true\");\n props.put(\"mail.smtp.auth\", \"true\"); \n\t\t\n\t}",
"@Override\r\n public void run() {\r\n Properties smtpProperties = System.getProperties();\r\n smtpProperties.put(\"mail.smtp.port\", \"587\");\r\n smtpProperties.put(\"mail.smtp.auth\", \"true\");\r\n smtpProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n try {\r\n Session smtpSession = Session.getDefaultInstance(smtpProperties, null);\r\n MimeMessage textMessage = new MimeMessage(smtpSession);\r\n textMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(recipientNumber + \"@\" + recipientCarrierDomain));\r\n textMessage.setContent(messageContent, \"text/plain\");\r\n Transport transport = smtpSession.getTransport(\"smtp\");\r\n transport.connect(\"smtp.gmail.com\", \"[email protected]\", \"csd@VT-1872\");\r\n transport.sendMessage(textMessage, textMessage.getAllRecipients());\r\n transport.close();\r\n } catch (AddressException ae) {\r\n System.out.println(\"Email Address Exception Occurred! See: \" + ae.getMessage());\r\n } catch (MessagingException me) {\r\n System.out.println(\"Email Messaging Exception Occurred! Internet Connection Required! See: \" + me.getMessage());\r\n }\r\n }",
"public boolean isSmtpTLS() {\n return smtpTLS;\n }",
"public boolean send() {\n\t\tAuthenticator auth = new Authenticator() {\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(props.getProperty(MAIL_USER), props.getProperty(MAIL_PASSWORD));\n\t\t\t}\n\t\t};\n\n\t\tSession session = Session.getInstance(props, auth);\n\n\t\ttry {\n\t\t\tMimeMessage message = new MimeMessage(session);\n\n\t\t\tif (props.containsKey(MAIL_FROM)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_FROM));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.addFrom(addresses);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (props.containsKey(MAIL_REPLY_TO)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_REPLY_TO));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.setReplyTo(addresses);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (props.containsKey(MAIL_TO)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_TO));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.addRecipients(Message.RecipientType.TO, addresses);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (props.containsKey(MAIL_CC)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_CC));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.addRecipients(Message.RecipientType.CC, addresses);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (props.containsKey(MAIL_BCC)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_BCC));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.addRecipients(Message.RecipientType.BCC, addresses);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (props.containsKey(\"EPCX_ABSTIME\")) {\n\t\t\t\tmessage.setSentDate(Util.getDateFromAbstime(props.getProperty(\"EPCX_ABSTIME\")));\n\n\t\t\t} else if (props.containsKey(\"mail.sentdate\")) {\n\t\t\t\tmessage.setSentDate(Util.getDateFromAbstime(props.getProperty(\"mail.sentdate\")));\n\t\t\t}\n\n\t\t\t// Set subject.\n\t\t\t// Doc for setSubject method says the application must ensure that the subject does not contain any line breaks.\n\t\t\t// Need to default subject to UTF-8 as properties are Java strings, otherwise the setSubject method defaults to platform default encoding that may be an EBCDIC codepage. \n\t\t\tmessage.setSubject(props.getProperty(MAIL_SUBJECT).replaceAll(\"[\\\\n\\\\r]+\",\" \"), \"UTF-8\");\n\n\t\t\t// Create a multipart message to hold the message parts\n\t\t\tMultipart mimeMultipart = new MimeMultipart();\n\n\t\t\t// Add the mail body (content) as a message part.\n\t\t\taddBody(mimeMultipart);\n\n\t\t\t// Add the attachments as message parts to the mail.\n\t\t\taddAttachments(mimeMultipart);\n\n\t\t\tif (mimeMultipart.getCount() == 0) {\n\t\t\t\t// JavaMail requires at least a blank string to be set as the content, otherwise it will throw an exception when sending.\n\t\t\t\tmessage.setText(\"\");\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// Add the multipart to the message.\n\t\t\t\tmessage.setContent(mimeMultipart);\n\t\t\t}\n\n\t\t\t// Add todays date\n\t\t\tmessage.setSentDate(new Date());\n\n\t\t\t// Change the default classloader to work around issues documented\n\t\t\t// at site\n\t\t\t// http://blog.hpxn.net/2009/12/02/tomcat-java-6-and-javamail-cant-load-dch/\n\t\t\tClassLoader cl = Thread.currentThread().getContextClassLoader();\n\t\t\ttry {\n\t\t\t\tThread.currentThread().setContextClassLoader(Transport.class.getClassLoader());\n\n\t\t\t\t// Send the message. Note this calls the saveChanges method on\n\t\t\t\t// the message before sending.\n\t\t\t\tTransport.send(message);\n\n\t\t\t} finally {\n\t\t\t\tThread.currentThread().setContextClassLoader(cl);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tlogger.warning(Emit.messages.getString(\"MailLogFail\") + \" - \" + getMessageSummary());\n\n\t\t\te.printStackTrace();\n\n\t\t\treturn false;\n\t\t}\n\n\t\tif (logger.isLoggable(Level.INFO)) {\n\t\t\tlogger.info(Emit.messages.getString(\"MailLogSuccess\") + \" - \" + getMessageSummary());\n\t\t}\n\n\t\treturn true;\n\t}",
"public static boolean sendMail(Map alertMap) throws AddressException, MessagingException {\n\t\tString username = \"[email protected]\";\r\n\t\tString password = \"password4u\";\r\n\t\tPasswordAuthentication authentication = new PasswordAuthentication(username, password);\r\n\t\tAuthenticator authenticator = new Authenticator();\r\n\t\tproperties.setProperty(\"mail.smtp.submitter\", authenticator.getPasswordAuthentication().getUserName());\r\n Session session = Session.getDefaultInstance(properties);\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n // Set the RFC 822 \"From\" header field using the\r\n // value of the InternetAddress.getLocalAddress method.\r\n \r\n message.setFrom(new InternetAddress(from));\r\n // Add the given addresses to the specified recipient type.\r\n message.addRecipient(Message.RecipientType.TO,\r\n \t\t new InternetAddress((String)alertMap.get(CarPoolConstants.TO)));\r\n // Set the \"Subject\" header field.\r\n message.setSubject((String)alertMap.get(CarPoolConstants.SUBJECT));\r\n // Sets the given String as this part's content,\r\n // with a MIME type of \"text/plain\".\r\n message.setText((String)alertMap.get(CarPoolConstants.ALERT));\r\n // Send message\r\n //Transport.send(message);\r\n System.out.println(\"Message Sent.....\"+message);\r\n System.out.println(\"Mail has not been sent.. code is commented\");\r\n\t\treturn true;\r\n\t}",
"public void sendNewOrderAdmin(){\n final String username = \"[email protected]\";\n\n // change accordingly\n final String password = \"dcc59vez\";\n\n // Get system properties\n Properties props = new Properties();\n\n // enable authentication\n props.put(\"mail.smtp.auth\", \"true\");\n\n // enable STARTTLS\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n\n // Setup mail server\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\n // TLS Port\n props.put(\"mail.smtp.port\", \"587\");\n\n // creating Session instance referenced to\n // Authenticator object to pass in\n // Session.getInstance argument\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n //override the getPasswordAuthentication method\n protected PasswordAuthentication\n getPasswordAuthentication() {\n\n return new PasswordAuthentication(username,\n password);\n }\n });\n\n try {\n // compose the message\n // javax.mail.internet.MimeMessage class is\n // mostly used for abstraction.\n Message message = new MimeMessage(session);\n\n // header field of the header.\n message.setFrom(new InternetAddress(\"BallonkompagnietIVS\"));\n\n //Set admin email\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"New order on website\");\n\n message.setText(\"New order placed on your website\");\n\n //send Message\n Transport.send(message);\n System.out.println(\"Email sent to admin - New order\");\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"private static void sendAttachment(String message, String subject, String to, String from) {\r\n\t\t// //variable for gmail\r\n\t\tString host = \"smtp.gmail.com\";\r\n\t\t\r\n\t\t//get the system properties \r\n\t\tProperties properties = System.getProperties();\r\n\t\tSystem.out.println(properties);\r\n\t\t //setting important information to properties object\r\n\t\t \r\n\t\t //host set \r\n\t\t properties.put(\"mail.smtp.host\",host);\r\n\t\t properties.put(\"mail.smtp.port\",465);\r\n\t\t properties.put(\"mail.smtp.ssl.enable\",\"true\");\r\n\t\t properties.put(\"mail.smtp.auth\",\"true\");\r\n\t\t \r\n\t\t //step:1 to get the session object\r\n\t\t Session session = Session.getInstance(properties, new Authenticator() {\r\n\r\n\t\t\t@Override\r\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn new PasswordAuthentication(\"[email protected]\",\"scm#2021\");\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t }); \r\n\t\t session.setDebug(true);\r\n\t\t \r\n\t\t //step:2 compose the message [text, multi media]\r\n\t\t MimeMessage mimeMessage = new MimeMessage(session);\r\n\t\t try \r\n\t\t {\r\n\t\t\t //from mail\r\n\t\t\t mimeMessage.setFrom(from);\r\n\t\t\t \r\n\t\t\t //adding recipient\r\n\t\t\t mimeMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\r\n\t\t\t \r\n\t\t\t //adding subject to message\r\n\t\t\t mimeMessage.setSubject(subject);\r\n\t\t\t \r\n\t\t\t //adding attachment to message \r\n\t\t\t String path = \"C:\\\\Users\\\\Krishna\\\\Desktop\\\\GID-6.pdf\";\r\n//\t\t\t String path = \"H:\\\\PHOTOS\\\\COLLEGE\\\\24-7-18\\\\IMG_20180724_161749_HDR.jpg\";\r\n\t\t\t \r\n\t\t\t MimeMultipart part = new MimeMultipart();\r\n\t\t\t\r\n\t\t\t MimeBodyPart fortext = new MimeBodyPart();\r\n\t\t\t MimeBodyPart forfile = new MimeBodyPart();\r\n\t\t\t \r\n\t\t\t try \r\n\t\t\t {\r\n\t\t\t\t fortext.setText(message);\r\n\t\t\t\t \r\n\t\t\t\t File file = new File(path);\r\n\t\t\t\t forfile.attachFile(file);\r\n\t\t\t\t part.addBodyPart(fortext);\r\n\t\t\t\t part.addBodyPart(forfile);\r\n\t\t\t }\r\n\t\t\t catch (Exception e) \r\n\t\t\t {\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t mimeMessage.setContent(part);\r\n\t\t\t \r\n\t\t\t //step:3 send the message using transport class\r\n\t\t\t Transport.send(mimeMessage);\r\n\t\t\t \r\n\t\t\t System.out.println(\"send message successfully..\");\r\n\t\t }\r\n\t\t catch (Exception e) \r\n\t\t {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Test(dataProvider = \"mailSendData\", dependsOnMethods = {\"testGmailloginCreds\"}, priority = 1)\n\tpublic void testGmailSendFunctionality(String to, String subject, String body, String expectedMsg) throws InterruptedException{\n\t\tlogger.info(\"TEST METHOD: \" + Thread.currentThread().getStackTrace()[1].getMethodName());\n\t\tDate date = new Date();\n\t\tsubjectTimeStamp = new Timestamp(date.getTime()).toString();\n\t\tString subjTmStmp = subject + subjectTimeStamp;\n\t\tString actualMsg = gmailPg.verifyMailSendFunctionality(to, subjTmStmp, body);\n\t\tAssert.assertEquals(actualMsg, expectedMsg, \"The actual message: '\" + actualMsg + \"' does not match the expected message: '\" + expectedMsg + \"'\");\n\t\t\n\t}",
"public Long sendEmail(String to, String subjectText, String bodyText)\n\t{\n\t\tDestination destination = new Destination().withToAddresses(new String[]{to});\n\n\t\t// Create the subject and body of the message.\n\t\tContent subject = new Content().withData(subjectText);\n\t\tContent textBody = new Content().withData(bodyText);\n\t\tBody body = new Body().withText(textBody);\n\n\t\t// Create a message with the specified subject and body.\n\t\tMessage message = new Message().withSubject(subject).withBody(body);\n\n\t\t// Assemble the email.\n\t\tSendEmailRequest request = new SendEmailRequest().withSource(FROM).withDestination(destination).withMessage(message);\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Attempting to send an email through Amazon SES by using the AWS SDK for Java...\");\n\n\t\t\t/*\n\t\t\t * The ProfileCredentialsProvider will return your [default]\n\t\t\t * credential profile by reading from the credentials file located at\n\t\t\t * (~/.aws/credentials).\n\t\t\t *\n\t\t\t * TransferManager manages a pool of threads, so we create a\n\t\t\t * single instance and share it throughout our application.\n\t\t\t */\n\t\t\tAWSCredentials credentials = null;\n\t\t\ttry {\n\t\t\t\t//credentials = new ProfileCredentialsProvider().getCredentials();\n\t\t\t\tcredentials=new BasicAWSCredentials(Constants.aws_access_key_id, Constants.aws_secret_access_key);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new AmazonClientException(\n\t\t\t\t\t\t\"Cannot load the credentials from the credential profiles file. \" +\n\t\t\t\t\t\t\t\t\"Please make sure that your credentials file is at the correct \" +\n\t\t\t\t\t\t\t\t\"location (~/.aws/credentials), and is in valid format.\",\n\t\t\t\t\t\t\t\te);\n\t\t\t}\n\n\t\t\t// Instantiate an Amazon SES client, which will make the service call with the supplied AWS credentials.\n\t\t\tAmazonSimpleEmailServiceClient client = new AmazonSimpleEmailServiceClient(credentials);\n\n\t\t\t// Choose the AWS region of the Amazon SES endpoint you want to connect to. Note that your production\n\t\t\t// access status, sending limits, and Amazon SES identity-related settings are specific to a given\n\t\t\t// AWS region, so be sure to select an AWS region in which you set up Amazon SES. Here, we are using\n\t\t\t// the US East (N. Virginia) region. Examples of other regions that Amazon SES supports are US_WEST_2\n\t\t\t// and EU_WEST_1. For a complete list, see http://docs.aws.amazon.com/ses/latest/DeveloperGuide/regions.html\n\t\t\tRegion REGION = Region.getRegion(Regions.US_WEST_2);\n\t\t\tclient.setRegion(REGION);\n\n\t\t\t// Send the email.\n\t\t\tclient.sendEmail(request);\n\t\t\tSystem.out.println(\"Email sent!\");\n\t\t\treturn 1L;\n\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"The email was not sent.\");\n\t\t\tSystem.out.println(\"Error message: \" + ex.getMessage());\n\t\t\treturn 0L;\n\t\t}\n\t}",
"@Test\n public void esmtpCheckTest(TestContext testContext) {\n this.testContext=testContext;\n smtpServer.setDialogue(\"220 example.com Esmtp\",\n \"EHLO\",\n \"250 example.com\",\n \"MAIL FROM\",\n \"250 2.1.0 Ok\",\n \"RCPT TO\",\n \"250 2.1.5 Ok\",\n \"DATA\",\n \"354 End data with <CR><LF>.<CR><LF>\",\n \"250 2.0.0 Ok: queued as ABCDDEF0123456789\",\n \"QUIT\",\n \"221 2.0.0 Bye\");\n smtpServer.setCloseImmediately(false);\n\n testSuccess();\n }",
"public void initialize()\n throws EmailApplicationException {\n final String temp = null;\n emailConfig.clear();\n\n /**\n * Required by JavaMail in order to determine the message delivery\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.transport.protocol\", \"smtp\");\n \n \n\n setHostSend(\"\");\n setPortSend(25);\n setUserSend(\"\");\n setUseSSL(false);\n\n try {\n setPasswordSend(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserSend=\" + getUserSend() + \" or PasswordSend=\" + temp + \",\\n\" +\n \"Exception info: \" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Required by JavaMail in order to determine the message retrieval\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.store.protocol\", \"pop3\");\n\n setHostRecv(\"\");\n setPortRecv(110);\n setUserRecv(\"\");\n try {\n setPasswordRecv(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserRecv=\" + getUserRecv() + \" or PasswordRecv=\" + temp + \",\\n\" +\n \"Exception info:\" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Determine whether to perform POP3 authentication before attempting\n * SMTP transfer.\n */\n setSessionAuth(false);\n\n /**\n * Prepare for SSL\n */\n// aConfiguration.setSubSection(\"SSL\");\n// try {\n// boolean recvSSL = aConfiguration.getStringParameterValue(\"Receive/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n// boolean sendSSL = aConfiguration.getStringParameterValue(\"Send/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n\n// // Set up the TrustStore\n// if (recvSSL || sendSSL) {\n\n// if (mLogger.isDebugEnabled()) {\n// System.setProperty(\"javax.net.debug\", \"all\");\n// }\n\n// // Set up the trustore\n// aConfiguration.setSubSection(\"SSL/CACerts\");\n// String trustStore = aConfiguration.getStringParameterValue(\"TrustStore\", null);\n// if (trustStore == null || trustStore.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStore is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStoreType = aConfiguration.getStringParameterValue(\"TrustStoreType\", null);\n// if (trustStoreType == null || trustStoreType.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStoreType is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStorePass = aConfiguration.getStringParameterValue(\"TrustStorePassword\", null);\n// if (trustStorePass == null || trustStorePass.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStorePassword is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// mLogger.info (\"Using TrustStore \" + trustStore + \" of type \" + trustStoreType);\n// EmailSystemProperties.setTrustStore(trustStore);\n// EmailSystemProperties.setTrustStoreType(trustStoreType);\n// EmailSystemProperties.setTrustStorePassword(trustStorePass);\n\n// // Setup receive\n// if (recvSSL) {\n// mLogger.info (\"SSL is enabled for RECEIVE; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // POP3 provider\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.class\", SSL_FACTORY);\n\n// // POP3 provider - no fallback.\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for RECEIVE.\");\n// }\n\n// // Setup send\n// if (sendSSL) {\n// mLogger.info (\"SSL is enabled for SEND; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // SMTP provider\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.class\", SSL_FACTORY);\n\n// // SMTP provider - no fallback.\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for SEND.\");\n// }\n\n// } else {\n// mLogger.debug (\"SSL is NOT enabled.\");\n// }\n\n mLogger.fine(\"EmailConfiguration.initialize() completed successfully.\");\n }",
"private static void sendAttachmentEmail(Session session, String toEmail, String subject, String body) {\n try {\n MimeMessage msg = new MimeMessage(session);\n msg.addHeader(\"Content-type\", \"text/HTML; charset=UTF-8\");\n msg.addHeader(\"format\", \"flowed\");\n msg.addHeader(\"Content-Transfer-Encoding\", \"8bit\");\n msg.setFrom(new InternetAddress(\"[email protected]\", \"NoReply-JD\"));\n msg.setReplyTo(InternetAddress.parse(\"[email protected]\", false));\n msg.setSubject(subject, \"UTF-8\");\n msg.setSentDate(new Date());\n msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(toEmail, false));\n // Create the message body part\n BodyPart messageBodyPart = new MimeBodyPart();\n // Fill the message\n messageBodyPart.setText(body);\n // Create a multipart message for attachment\n Multipart multipart = new MimeMultipart();\n // Set text message part\n multipart.addBodyPart(messageBodyPart);\n // Second part is attachment\n messageBodyPart = new MimeBodyPart();\n String filename = \"abc.txt\";\n DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(filename);\n multipart.addBodyPart(messageBodyPart);\n // Send the complete message parts\n msg.setContent(multipart);\n // Send message\n Transport.send(msg);\n System.out.println(\"EMail Sent Successfully with attachment!!\");\n } catch (MessagingException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }",
"void sendEmail(Otp otp) throws Exception {\n String text = \"Otp: \" + otp.getOtpValue();\n String from = \"\"; // Add From Email Address\n String to = \"\"; // Add To Email Address\n\n SimpleMailMessage message = new SimpleMailMessage();\n message.setFrom(from);\n message.setTo(to);\n message.setSubject(\"Otp Verification\");\n message.setText(text);\n emailSender.send(message);\n }",
"private SendMail SendMail(WebDriver driver2) {\n return null;\n }",
"void sendMail(String receivers) throws MessagingException;",
"public boolean sendEmail(String fromAddress, String[] toAddress,\n\t\t\tString lang, String subject, String body, String appName,\n\t\t\tString appRef, String refKey)\n\t{\n\t\t\n\t\ttry\n\t\t{\n\t\t\tboolean result = sendEMail(fromAddress,toAddress,null,subject,body,null);\n\t\t\taddNotification2DB(\"email\", Boolean.toString(result),\n\t\t\t\t\tStringUtils.arrayToCommaDelimitedString(toAddress), body,\n\t\t\t\t\tlang, appName, appRef, refKey, \"\", subject);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tlogger.error(\"Message sending failure : \" + ex.getMessage());\n\t\t\tex.printStackTrace();\n\t\t\taddNotification2DB(\"email\", \"ERROR\",\n\t\t\t\t\tStringUtils.arrayToCommaDelimitedString(toAddress), body,\n\t\t\t\t\tlang, appName, appRef, refKey, ex.getMessage(), subject);\n\t\t\treturn false;\n\t\t}\n\t}",
"public static void goSendMail(\n\t\t\tString targetMail\n\t\t\t,String subject\n\t\t\t,String mailContext\n\t\t\t) {\n\t String to = targetMail;\n\n\t // Sender's email ID needs to be mentioned\n\t String from = \"[email protected]\";\n\n\t // Assuming you are sending email from localhost\n//\t String host = \"localhost\";\n\n\t // Get system properties\n\t\t\tProperties props = new Properties();\n\t\t\t/* SMTP設定 */\n\t\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\t\t/* 啟用TLS */\n\t\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\t\t/* 設定寄件者email */\n\t\t\tprops.put(\"mail.smtp.host\", mailHost);\n\t\t\t/* 設定寄件所需的port */\n\t\t\tprops.put(\"mail.smtp.port\", mailPort);\n\n\t\t\t\n\t // Setup mail server\n//\t properties.setProperty(\"mail.smtp.host\", host);\n\n\t // Get the default Session object.\n\t Session session = Session.getDefaultInstance(props, new javax.mail.Authenticator(){\n\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\treturn new PasswordAuthentication(mailUser, mailPassword);\n\t\t\t\t}\n\t\t\t});\n\n\t try{\n\t // Create a default MimeMessage object.\n\t MimeMessage message = new MimeMessage(session);\n\t message.setContent(mailContext, \"text/html; Charset=UTF-8\");\n\n\t // Set From: header field of the header.\n\t message.setFrom(new InternetAddress(from));\n\n\t // Set To: header field of the header.\n\t message.addRecipient(Message.RecipientType.TO,\n\t new InternetAddress(to));\n\n\t // Set Subject: header field\n\t message.setSubject(subject);\n\n\t // Now set the actual message\n\t message.setText(mailContext);\n\n\t // Send message\n\t Transport.send(message);\n\t System.out.println(\"Sent message successfully....\");\n\t }catch (MessagingException mex) {\n\t mex.printStackTrace();\n\t }\n\n\t}",
"void sendCommonMail(String to, String subject, String content);",
"public static String sendHTMLEmailWithImage(String to[], String cc[], String bcc[], String subject, String message, String filename[]) throws EmailException{\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tHtmlEmail email = new HtmlEmail();\n\t\t\t//email.setDebug(true);\n\t\t\temail.setHostName(\"smtp.gmail.com\");\n\t\t\temail.setSmtpPort(587);\n\t\t\t//email.setAuthentication(\"[email protected]\",\"smooking\");\n\t\t\temail.setAuthenticator(new DefaultAuthenticator(\"[email protected]\",\"greencare123\"));\n\t\t\t\n\t\t\t//email.setSSLOnConnect(true);\n\t\t\t\n\t\t\t//email.setSSLCheckServerIdentity(false);\n\t\t\t\n\t\t\tfor (int i = 0; i < to.length; i++){\n\t\t\t\temail.addTo(to[i]);\n\t\t\t}\n\t\t\tif (cc != null){\n\t\t\t\tfor (int i = 0; i < cc.length; i++){\n\t\t\t\t\temail.addCc(cc[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (bcc != null){\n\t\t\t\tfor (int i = 0; i < bcc.length; i++){\n\t\t\t\t\temail.addBcc(bcc[i]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\temail.setFrom(\"[email protected]\", \"Summit Orthopaedics\");\n\n\t\t\t//email.setSSL(true);\n\t\t\t\n\t\t\temail.setSubject(subject);\n\t\t\t\n\t\t\temail.setHtmlMsg(message);\n\n\t\t//\temail.setStartTLSEnabled(true);\n\t\t\tif (filename != null){\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < filename.length; i++){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tEmailAttachment attachment = new EmailAttachment();\n\t\t\t\t\t\tattachment.setPath(\"/opt/apache-tomcat-7.0.96/webapps/final2.pdf\");\n\t\t\t\t\t\tattachment.setDisposition(EmailAttachment.ATTACHMENT);\n\t\t\t\t\t\tattachment.setDescription(filename[i]);\n\t\t\t\t\t\tattachment.setName(filename[i]);\n\t\t\t\t\t\temail.attach(attachment);\n\t\t\t\t\t}catch(Exception e1){e1.printStackTrace();}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\t\n\t\t\temail.setStartTLSEnabled(true);\n\t\t\treturn email.send();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"void send(String emailName);",
"public void sendMailToQueue(MailMessage mailMessage) throws MailerException;",
"@Test\n public void sendMail() throws Exception {\n emailService.setApplicationContext(context);\n doReturn(aweElements).when(context).getBean(any(Class.class));\n given(mailSender.createMimeMessage()).willReturn(mimeMessage);\n given(aweElements.getLanguage()).willReturn(\"ES\");\n given(aweElements.getLocaleWithLanguage(anyString(), anyString())).willReturn(\"LOCALE\");\n ParsedEmail email = new ParsedEmail()\n .setFrom(new InternetAddress(\"[email protected]\"))\n .setTo(singletonList(new InternetAddress(\"[email protected]\")))\n .setReplyTo(singletonList(new InternetAddress(\"[email protected]\")))\n .setCc(singletonList(new InternetAddress(\"[email protected]\")))\n .setCco(singletonList(new InternetAddress(\"[email protected]\")))\n .setSubject(\"Test message\")\n .setBody(\"<div style='background-color:red;'>Test div message</div>\")\n .addAttachment(\"FileName.test\", new File(\"C:\\\\Users\\\\test\\\\Pictures\\\\Saved Pictures\\\\test.jpg\"));\n emailService.sendEmail(email);\n verify(mailSender).send(mimeMessage);\n }",
"public static String sendEmail(String fromId,String toId, String subject, String emailBody) {\n\t\tSystem.out.println(\"Test\");\r\n\t\tCloseableHttpClient httpClient=null;\r\n\t\tBase64.Encoder encoder = Base64.getEncoder();\r\n\t\tString attachmentStr = encoder.encodeToString(subject.getBytes()); \r\n\t\ttry{\r\n\t\t\thttpClient = HttpClients.createDefault();\r\n\t\t\tHttpPost httpPost = new HttpPost(\"https://api.sendgrid.com/v3/mail/send\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\thttpPost.setHeader(\"content-type\", \"application/json\");\r\n\t\t\t//httpPost.setHeader(\"accept\", \"application/json\");\r\n\t\t\thttpPost.setHeader(\"YOUR_API_KEY\", \"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\");\r\n\t\t\thttpPost.setHeader(\"Authorization\", \"Bearer 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\");\r\n\t\t\tString jsonStr=\"{\\r\\n\" + \r\n\t\t\t\t\t\" \\\"personalizations\\\": [\\r\\n\" + \r\n\t\t\t\t\t\" {\\r\\n\" + \r\n\t\t\t\t\t\" \\\"to\\\": [\\r\\n\" + \r\n\t\t\t\t\t\" {\\r\\n\" + \r\n\t\t\t\t\t\" \\\"email\\\": \\\"\"+toId+\"\\\"\\r\\n\" + \r\n\t\t\t\t\t\" }\\r\\n\" + \r\n\t\t\t\t\t\" ],\\r\\n\" + \r\n\t\t\t\t\t\" \\\"subject\\\": \\\"\"+subject+\"\\\"\\r\\n\" + \r\n\t\t\t\t\t\" }\\r\\n\" + \r\n\t\t\t\t\t\" ],\\r\\n\" + \r\n\t\t\t\t\t\" \\\"from\\\": {\\r\\n\" + \r\n\t\t\t\t\t\" \\\"email\\\": \\\"\"+fromId+\"\\\"\\r\\n\" + \r\n\t\t\t\t\t\" },\\r\\n\" + \r\n\t\t\t\t\t\" \\\"content\\\": [\\r\\n\" + \r\n\t\t\t\t\t\" {\\r\\n\" + \r\n\t\t\t\t\t\" \\\"type\\\": \\\"text/plain\\\",\\r\\n\" + \r\n\t\t\t\t\t\" \\\"value\\\": \\\"\"+emailBody+\"\\\"\\r\\n\" + \r\n\t\t\t\t\t\" }\\r\\n\" + \r\n\t\t\t\t\t\" ],\\r\\n\" + \r\n\t\t\t\t\t\"\\\"attachments\\\":[ {\\\"content\\\":\\\"\"+attachmentStr+\"\\\", \\\"filename\\\":\\\"attachment.txt\\\", \\\"disposition\\\":\\\"attachment\\\"} ]\"+\r\n\t\t\t\t\t\"}\";\r\n\t\t\tStringEntity jsonString =new StringEntity(jsonStr);\r\n\t\t\thttpPost.setEntity(jsonString);\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t HttpResponse response = httpClient.execute(httpPost);\r\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\r\n\t\t\tString inputLine = null;\r\n\t\t\twhile ((inputLine = br.readLine()) != null) {\r\n\t\t\t\tsb.append(inputLine);\r\n\t\t\t}\r\n\t\t\thttpClient.close();\r\n\t\t\tSystem.out.println(sb.toString());\r\n\t\t\t\r\n\t\t\t//return sb.toString();\r\n\t\t}catch(Exception e){\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn \"1\";\r\n\t}",
"public void sendMail(String to, String cc, String bcc, String templateName, Object... parameters);",
"public SMTPEmailTransport()\n throws EmailException\n {\n this(\"localhost\");\n }",
"public String enviarcorreo(String receptor, String asunto, String mensaje, String telefono, String nombre){\ntry {final String username = \"[email protected]\";\n final String password = \"32sky4951m\";\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n /*Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });*/\n\n Session session = Session.getInstance(props, new GMailAuthenticator(username, password));\n\n try {\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(\"[email protected]\"));\n message.setSubject(asunto);\n mensaje = \"Nombre y Apellido:\" + \"<br>\" + nombre+ \"<br>\" + \"<br>\" +\n \"Correo Electronico:\" + \"<br>\" + receptor + \"<br>\" +\"<br>\" +\n \"N° de Teléfono:\" + \"<br>\" + telefono+ \"<br>\" + \"<br>\" +\n \"ASUNTO DEL MENSAE:\" +\"<br>\" + mensaje;\n message.setContent(mensaje,\"text/html; charset=utf-8\");\n\n Transport.send(message);\n\n System.out.println(\"Done\");\n respuesta=\"Su mensaje ha sido enviado\";\n } catch (MessagingException e) {\n respuesta=\"Error al enviar\";\n throw new RuntimeException(e);\n\n }\n\n} catch (Exception e) {\n respuesta=\"Error al enviar, verifique su conexión\";\n throw new RuntimeException(e);\n\n }\n\n\n return respuesta;\n }",
"private void sendMail(final String mail, final String name, final String message) {\n /* new Thread(){\n public void run() {\n Properties props = System.getProperties();\n props.put(\"mail.smtps.host\",\"smtp.gmail.com\");\n props.put(\"mail.smtps.auth\",\"true\");\n Session session = Session.getInstance(props, null);\n Message msg = new MimeMessage(session);\n try {\n msg.setFrom(new InternetAddress(\"[email protected]\"));\n msg.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(\"[email protected]\", false));\n msg.setSubject(\"Yoga Mandira :: Feedback \" + System.currentTimeMillis());\n msg.setText(\"MAIL:\"+mail+\"\\nNAME:\"+name+\"\\nMESSAGE:\"+message);\n msg.setHeader(\"X-Mailer\", \"Yoga Mandira\");\n msg.setSentDate(new Date());\n SMTPTransport t =\n (SMTPTransport) session.getTransport(\"smtps\");\n t.connect(\"smtp.gmail.com\", \"[email protected]\", \"#30ija11an\");\n t.sendMessage(msg, msg.getAllRecipients());\n System.out.println(\"Response: \" + t.getLastServerResponse());\n t.close();\n }catch (AddressException e) {\n e.printStackTrace();\n } catch (SendFailedException e) {\n e.printStackTrace();\n } catch (NoSuchProviderException e) {\n e.printStackTrace();\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n }\n }.start();*/\n }",
"public void sendEmail(){\r\n EmailService emailSvc = new EmailService(email, username, password, firstName, lastName);\r\n Thread th = new Thread(emailSvc);\r\n LOG.info(\"Starting a new thread to send the email..\");\r\n th.start();\r\n LOG.info(\"The email was sent successfully\");\r\n }",
"@Override\n public ExtensionResult doSendMail(ExtensionRequest extensionRequest) {\n String recipient = getEasyMapValueByName(extensionRequest, \"recipient\");\n MailModel mailModel = new MailModel(recipient, \"3Dolphins SDK Mail Subject\", \"3Dolphins SDK mail content\");\n String sendMailResult = svcMailService.sendMail(mailModel);\n\n Map<String, String> output = new HashMap<>();\n output.put(OUTPUT, sendMailResult);\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }",
"public void sendEmail(String toAddress, String subject, String bodyText) throws MailException{\n SimpleMailMessage msg = new SimpleMailMessage();\n msg.setTo(toAddress);\n msg.setSubject(subject);\n msg.setText(bodyText);\n\n javaMailSender.send(msg);\n }",
"public static void sendMail(String subject, String htmlBody, String textBody, String recipient, String sender) throws MessagingException\n {\n String smtpHost = Config.getInstance().getValueAsString(\"smtp.mail.host\");\n long smtpPort = Config.getInstance().getValueAsLong(\"smtp.mail.port\");\n String securityProtocol = Config.getInstance().getValueAsString(\"smtp.mail.security.protocol\");\n\n sendMail(subject, htmlBody, textBody, recipient, sender, smtpHost, smtpPort, securityProtocol, false);\n }",
"public boolean sendMail(String sender,String recipient,String ccRecipient,String bccRecipient,String subject,String body,String attachments,boolean processFailedMail)\n {\n Message msg = null;\n try\n {\n Session session = getMailSession(true);\n msg = buildMessage(session, sender, recipient, ccRecipient, bccRecipient, subject, body, attachments);\n Transport.send(msg);\n return true;\n }\n catch (Throwable th)\n {\n AlertLogger.warnLog(CLASSNAME,\"sendMail\",\"Error in sendMail\",th);\n if (msg!=null && processFailedMail)\n addFailedMail(msg,isMessageException(th));\n }\n return false;\n }",
"public boolean sendEmail(String recipient, String msg) {\n final String SENDGRID_API_KEY = \"SG.xxxxxx_xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxx_xxxxxxx\";\n\n if (SENDGRID_API_KEY.equals(\"SG.xxxxxx_xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxx_xxxxxxx\")) {\n System.out.println(\"You haven't added your sendgrid api key!\");\n return true;\n }\n\n // you'll need to specify your sendgrid verified sender identity for this to mail out.\n Email from = new Email(\"[email protected]\");\n String subject = \"Secret Assignment from the Elves\";\n Email to = new Email(recipient);\n Content content = new Content(\"text/plain\", msg);\n Mail mail = new Mail(from, subject, to, content);\n\n SendGrid sg = new SendGrid(SENDGRID_API_KEY);\n Request request = new Request();\n\n try {\n request.setMethod(Method.POST);\n request.setEndpoint(\"mail/send\");\n request.setBody(mail.build());\n Response response = sg.api(request);\n System.out.println(response.getStatusCode());\n System.out.println(response.getBody());\n System.out.println(response.getHeaders());\n return true;\n } catch (IOException ex) {\n System.out.println(ex.toString());\n return false;\n }\n }",
"public static ClientResponse sendSimpleMail(String from, String[] to, String subject, String body) throws Exception{\n\t\t\n\t if(from == null || from == \"\"){\n\t\t throw new Exception(\"Please set email sender properly.\");\n\t }\n\t \n\t if(to == null || to.length == 0){\n\t\t throw new Exception(\"Please set email recipients properly.\");\n\t }\n\t \n Client client = Client.create();\n client.addFilter(new HTTPBasicAuthFilter(\"api\",\n \"key-1xigy8-dpzbuy6euywdr2se-6yiu88d3\"));\n WebResource webResource =\n client.resource(\"https://api.mailgun.net/v2/tchat.mailgun.org/messages\");\n MultivaluedMapImpl formData = new MultivaluedMapImpl();\n // Set email sender\n formData.add(\"from\", from);\n // Set email recipients.\n for(int i = 0; i < to.length; i ++){\n \t formData.add(\"to\", to[i]);\n }\n // Set email subject\n formData.add(\"subject\", subject);\n // Set email body\n formData.add(\"text\", body);\n return webResource.type(MediaType.APPLICATION_FORM_URLENCODED).post(ClientResponse.class, formData);\n\t}",
"public void sendMessage(String to, String subject, String messageText) throws MessagingException, java.io.UnsupportedEncodingException {\n java.util.Properties props = new java.util.Properties();\n props.setProperty(\"mail.smtp.auth\", \"true\");//指定是否需要SMTP验证\n props.setProperty(\"mail.smtp.host\", smtpServer);//指定SMTP服务器\n props.put(\"mail.transport.protocol\", \"smtp\");\n Session mailSession = Session.getDefaultInstance(props);\n //mailSession.setDebug(true);//是否在控制台显示debug信息\n\n InternetAddress fromAddress = new InternetAddress(sendFromEmail);\n InternetAddress toAddress = new InternetAddress(to);\n\n MimeMessage testMessage = new MimeMessage(mailSession);\n testMessage.setFrom(fromAddress);\n testMessage.addRecipient(javax.mail.Message.RecipientType.TO, toAddress);\n testMessage.setSentDate(new java.util.Date());\n testMessage.setSubject(MimeUtility.encodeText(subject, \"utf-8\", \"B\"));\n\n testMessage.setContent(messageText, \"text/html;charset=utf-8\");\n // System.out.println(\"Message constructed\");\n\n // Step 3: Now send the message\n Transport transport = mailSession.getTransport(\"smtp\");\n transport.connect(smtpServer, sendFromEmail, password);\n transport.sendMessage(testMessage, testMessage.getAllRecipients());\n transport.close();\n\n\n }",
"public static void sendMail(String subject, String htmlBody, String textBody, Collection<File> attachments, String recipient, String sender, List<String> cc, List<String> bcc, boolean deliveryReceipt, boolean readReceipt, boolean async) throws MessagingException, IOException\n {\n String smtpHost = Config.getInstance().getValueAsString(\"smtp.mail.host\");\n long smtpPort = Config.getInstance().getValueAsLong(\"smtp.mail.port\");\n String protocol = Config.getInstance().getValueAsString(\"smtp.mail.security.protocol\");\n \n sendMail(subject, htmlBody, textBody, attachments, recipient, sender, cc, bcc, deliveryReceipt, readReceipt, smtpHost, smtpPort, protocol, null, null, async);\n }",
"public void send(String toEmail){\n Session session = Session.getInstance(props, new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(this.username));\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(toEmail));\n message.setSubject(\"RWS TICKET SUPPORT\");\n\n BodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setText(\"Thank you for using the services of our company!\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n messageBodyPart = new MimeBodyPart();\n\n String filename = String.format(\n \"C:/Users/Ozhmegov/Desktop/t-systems/RWS/service/src/main/java/util/tickets/ticket_%s.pdf\", trainNumber\n );\n DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(String.format(\"ticket_%s.pdf\", trainNumber));\n multipart.addBodyPart(messageBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n LOG.info(\"Message sended on email: {}\", toEmail);\n } catch (MessagingException e) {\n LOG.error(\"Message not sended on email: {}\", toEmail);\n throw new EmailSenderServiceException(String.format(\"Message not sended on email: %s\", toEmail));\n }\n }",
"public static void sendEmailWithAttachments(final String address, final String subject, final String message, final ArrayList<String> attachments, final String userName, final String password)\r\n throws AddressException, MessagingException {\n Properties properties = new Properties();\r\n properties.put(\"mail.smtp.host\", host);\r\n properties.put(\"mail.smtp.port\", port);\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.user\", userName);\r\n properties.put(\"mail.password\", password);\r\n \r\n // creates a new session with an authenticator\r\n Authenticator auth = new Authenticator() {\r\n public PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(userName, password);\r\n }\r\n };\r\n Session session = Session.getInstance(properties, auth);\r\n \r\n // creates a new e-mail message\r\n Message msg = new MimeMessage(session);\r\n \r\n msg.setFrom(new InternetAddress(userName));\r\n InternetAddress[] toAddresses = { new InternetAddress(address) };\r\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\r\n msg.setSubject(subject);\r\n msg.setSentDate(new Date());\r\n \r\n // creates message part\r\n MimeBodyPart messageBodyPart = new MimeBodyPart();\r\n messageBodyPart.setContent(message, \"text/html\");\r\n \r\n // creates multi-part\r\n Multipart multipart = new MimeMultipart();\r\n multipart.addBodyPart(messageBodyPart);\r\n \r\n // adds attachments\r\n if (attachments != null && attachments.size() > 0) {\r\n for (String filePath : attachments) {\r\n MimeBodyPart attachPart = new MimeBodyPart();\r\n \r\n try {\r\n attachPart.attachFile(filePath);\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n \r\n multipart.addBodyPart(attachPart);\r\n }\r\n }\r\n \r\n // sets the multi-part as e-mail's content\r\n msg.setContent(multipart);\r\n \r\n // sends the e-mail\r\n Transport.send(msg);\r\n \r\n }",
"public interface MailService {\n\n /**\n * Tell you if the mail service is enabled or not.\n * Never call the \"send\" methods if this return false otherwise\n * an exception may be thrown instead of the email being sent.\n *\n * @return true if the mail service has been enabled.\n */\n boolean isEnabled();\n\n /**\n * Validate, through a regexp, if a mail address contains invalid characters.\n * It cannot, in anyway, tell you if the email is really valid.\n *\n * @param mailAddress a not null mail address.\n * @return true if the mail address is valid.\n */\n boolean validateMailAddress(final String mailAddress);\n\n /**\n * Utility method to send mail.\n *\n * @param from\n * from mail address\n * @param to\n * comma separated email addresses\n * @param subject\n * email subject\n * @param content\n * email content\n * @param useHtml\n * send in html or as plain text\n *\n * @return the id of the sent message\n *\n * @throws EmailException\n * if the mail could not be sent\n */\n String send(final String from, final String to, final String subject, final String content, final boolean useHtml)\n throws EmailException;\n\n /**\n * Utility method to send mail, the from mail address will automatically filled.\n *\n * @param to\n * comma separated email addresses\n * @param subject\n * email subject\n * @param content\n * email content\n * @param useHtml\n * send in html or as plain text\n *\n * @return the id of the sent message\n *\n * @throws EmailException\n * if the mail could not be sent\n */\n String send(final String to, final String subject, final String content, final boolean useHtml)\n throws EmailException;\n}",
"public void sendEmail(\n ActionRequest actionRequest, ActionResponse actionResponse)\n throws IOException, PortletException {\n }",
"private static void testMail() throws Exception {\n\t\tUser user=new User();\n\t\tuser.setUsername(\"若水\");\n\t\tuser.setEmail(\"[email protected]\");\n\t\tMail mail=new Mail();\n\t\tboolean b=mail.sendMail(user, \"http://www.baidu.com\", \"http://www.zzuli.edu.cn\", 2);\n\t\tSystem.out.println(b);\n\t}",
"private boolean sendEmailMessage() {\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\tSession session = Session.getInstance(props, new javax.mail.Authenticator() {\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(USER_NAME, PASSSWORD);\n\t\t\t}\n\t\t});\n\n\t\ttry {\n\n\t\t\tMessage message = new MimeMessage(session);\n\t\t\tmessage.setFrom(new InternetAddress(FROM_ADDRESS)); // Set from address of the email\n\t\t\tmessage.setContent(msgText, \"text/html\"); // set content type of the email\n\t\t\tmessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(emailAddressTo)); // Set email\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// recipient\n\t\t\tmessage.setSubject(msgSubject); // Set email message subject\n\t\t\tTransport.send(message); // Send email message\n\n\t\t\tSystem.out.println(\"sent email successfully!\");\n\t\t\treturn true;\n\n\t\t} catch (MessagingException e) {\n//\t\t\tthrow new RuntimeException(e);\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n protected Void doInBackground(Void... params) {\n Properties prop = new Properties();\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.socketFactory.port\", \"465\");\n prop.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\n prop.put(\"mail.smtp.auth\", \"true\");\n prop.put(\"mail.smtp.port\", \"465\");\n //creating a new session\n getSession = Session.getDefaultInstance(prop,\n new javax.mail.Authenticator() {\n //checks password against the specific romeomailbot email and password we created\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(Utils.EMAIL, Utils.PASSWORD);\n }\n });\n try {\n //using mimemessage to send email\n MimeMessage mime = new MimeMessage(getSession);\n //set romaileobot address\n mime.setFrom(new InternetAddress(Utils.EMAIL));\n //set secret admirer adress\n mime.addRecipient(Message.RecipientType.TO, new InternetAddress(getEmail));\n //set subject of message\n mime.setSubject(getSubject);\n //set message\n mime.setText(getMessage);\n //send message\n Transport.send(mime);\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n return null;\n }"
] | [
"0.7616212",
"0.75193006",
"0.66890997",
"0.6684948",
"0.6633016",
"0.6528267",
"0.6462525",
"0.6419523",
"0.63834375",
"0.6351202",
"0.632388",
"0.6292778",
"0.6282716",
"0.6280291",
"0.62626594",
"0.6223264",
"0.6219323",
"0.62127286",
"0.62093616",
"0.62073046",
"0.6206942",
"0.6201552",
"0.61896694",
"0.61735755",
"0.61627275",
"0.6119295",
"0.6106594",
"0.6101399",
"0.6087784",
"0.60844576",
"0.6078153",
"0.6062429",
"0.6053102",
"0.6048922",
"0.6032909",
"0.600451",
"0.59956825",
"0.5995091",
"0.5959643",
"0.5955105",
"0.5939447",
"0.59236664",
"0.59113294",
"0.5890277",
"0.5866795",
"0.5862995",
"0.5862283",
"0.5847906",
"0.5830217",
"0.5781664",
"0.5762272",
"0.5746038",
"0.574589",
"0.57328373",
"0.5730074",
"0.572612",
"0.5710815",
"0.57091254",
"0.5704195",
"0.5703183",
"0.57025313",
"0.570136",
"0.5693838",
"0.568746",
"0.5677811",
"0.5660639",
"0.5642198",
"0.5630488",
"0.5625906",
"0.56254655",
"0.5615086",
"0.5607092",
"0.5598403",
"0.5592379",
"0.55913216",
"0.55883896",
"0.5583587",
"0.5579811",
"0.5570679",
"0.55702657",
"0.55672115",
"0.55668366",
"0.55574447",
"0.55570835",
"0.5555374",
"0.55509686",
"0.5550943",
"0.5547513",
"0.5540829",
"0.55400914",
"0.55389214",
"0.5534883",
"0.55287784",
"0.5526215",
"0.5521177",
"0.5513464",
"0.5512762",
"0.55125314",
"0.55082333",
"0.55043215"
] | 0.67947024 | 2 |
Refresh our stream info | public synchronized void setStreamDao(StreamServerDao dao) {
this.dao = dao;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"default void refreshStream() {}",
"public void refresh() {\n\tts = parent.globals.twitchAPI.getStream(this.getChannel());\n\tif (ts != null) {\n\t game = ts.getMeta_game();\n\t title = ts.getTitle();\n\t online = ts.isOnline();\n\t current_viewers = ts.getCurrent_viewers();\n\t created_at = ts.getCreated_At();\n\t updated_at = ts.getUpdated_At();\n\t upTimeHour = 0L;\n\t upTimeMinute = 0L;\n\n\t if (online) {\n\t\tcreated_at_Long = convertDate(created_at);\n\t\tcalcUpTime(created_at_Long);\n\t\tsetOnlineString(\"<html>Currently playing: \" + getGame()\n\t\t\t+ \"<br>(Online for: \" + getUpTimeHours() + \":\"\n\t\t\t+ getUpTimeMinutes() + \" hours) |\"\n\t\t\t+ \" Current Viewers: \" + getCurrent_viewers() + \"<br>\"\n\t\t\t+ getTitle() + \"</html>\");\n\t }\n\t preview = null;\n\t if (ts.getScreen_cap_url_medium() != null\n\t\t && parent.globals.showPreview) {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t try {\n\t\t\tpreview = ImageIO.read(new URL(ts\n\t\t\t\t.getScreen_cap_url_medium()));\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tboolean rw = ImageIO.write(preview, \"PNG\", bos);\n\t\t\tparent.globals.downloadedBytes += bos.toByteArray().length;\n\t\t } catch (IOException e) {\n\t\t\tif (parent.globals._DEBUG)\n\t\t\t e.printStackTrace();\n\t\t }\n\t\t if (preview != null) {\n\t\t\tbreak;\n\t\t }\n\t\t}\n\t }\n\t}\n }",
"void refreshState() {\n if (delegate instanceof AbstractStreamsConnection) {\n AbstractStreamsConnection asc = (AbstractStreamsConnection)delegate;\n apiKey = asc.getAuthorization();\n executor = asc.getExecutor();\n }\n }",
"public void syncStream() {\n JCudaDriver.cuStreamSynchronize(stream);}",
"public void syncOldStream() {\n ContextHolder.getInstance().setContext();\n JCuda.cudaStreamSynchronize(oldStream);\n/*\n if(!oldEventDestroyed) {\n JCuda.cudaStreamSynchronize(oldStream);\n JCuda.cudaStreamWaitEvent(oldStream,oldEvent,0);\n JCuda.cudaEventDestroy(oldEvent);\n oldEventDestroyed = true;\n\n }*/\n }",
"protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }",
"@Override\n\t\tpublic void onRefresh() {\n\t\t\tloadInfo(1, 0);\n\t\t}",
"private void refreshMetadata(String url) {\n Log.d(LOG_TAG, \"refreshMetadata()\");\n\n final IcyStreamMeta streamMeta = new IcyStreamMeta();\n\n //Set the url\n try {\n\n streamMeta.setStreamUrl(new URL(url));\n } catch (MalformedURLException e) {\n Log.w(LOG_TAG, \"Malformed URL: \" + url);\n return;\n }\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n\n retrieveTimer = new Timer();\n retrieveTimer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n String songTitle = \"\";\n try {\n //Refresh metadata\n streamMeta.refreshMeta();\n songTitle = new String(streamMeta.getStreamTitle().getBytes(\"ISO-8859-1\"), \"UTF-8\");\n } catch (IOException e) {\n Log.d(LOG_TAG, \"No song title info!\");\n return;\n }\n\n //Send song title to RadioPlayer Fragment\n if (songTitle.length() > 4) {\n Log.d(LOG_TAG, \"Current song: \" + songTitle);\n sendAlert(RadioPlayerFragment.SEND_TITLE, songTitle);\n }\n }\n }, 0, 1000);\n\n }\n }).start();\n\n }",
"public void syncHandle() {\n syncOldStream();\n }",
"Snapshot refresh();",
"@Override\n public void onRefresh() {\n load_remote_data();\n }",
"public void refresh() {\r\n\t\tinit();\r\n\t}",
"@Override\n public void refresh() {\n }",
"@Override public void onStreamUpdate(final Set<Long> updatedChunks) {\n }",
"public void refresh() {\n }",
"@Override\n public void refresh() {\n refresher.enqueueRefresh();\n }",
"EventChannel refresh();",
"public void refresh() {\n\t\tgetData();\n\t\trender();\n\t}",
"@Override\n public void onRefresh() {\n getData();\n }",
"public void refresh()\n {\n refresh( null );\n }",
"@Override\n\tpublic void streamingServiceListUpdate() {\n\t\t\n\t}",
"private synchronized void refresh() {\n \t\t\tlastChangeStamp = changeStamp;\n \t\t\tlastFeaturesChangeStamp = featuresChangeStamp;\n \t\t\tlastPluginsChangeStamp = pluginsChangeStamp;\n \t\t\tchangeStampIsValid = false;\n \t\t\tfeaturesChangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tfeatures = null;\n \t\t\tplugins = null;\n \t\t}",
"@Override\n\tpublic synchronized void onRefresh() {\n\t\ttry {\n\t\t\t// 此处可取当前时间,为刷新时间\n\t\t\tcurDate = new Date(System.currentTimeMillis());\n\t\t\tsdf = new SimpleDateFormat(\"MM-dd HH:mm\");\n\t\t\tif (System.currentTimeMillis() - time > 500) {\n\t\t\t\tURL = URL.substring(0, URL.lastIndexOf(\"_\") + 1);\n\t\t\t\tURL = URL + \"1.xml\";\n\t\t\t\tif (lsnb != null) {\n\t\t\t\t\tlsnb_temp.addAll(lsnb);\n\t\t\t\t\tlsnb = null;\n\t\t\t\t}\n\n\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t} else {\n\t\t\t\tToast toast = Toast.makeText(getActivity(), \"目前是最新数据!\",\n\t\t\t\t\t\tToast.LENGTH_LONG);\n\t\t\t\t// toast.getView().setBackgroundResource(R.drawable.red_toast_bg);\n\t\t\t\ttoast.getView().setPadding(20, 10, 20, 10);\n\t\t\t\ttoast.show();\n\t\t\t\tonLoadStop();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"protected void refresh() {\n\t}",
"public synchronized void refresh()\n {\n // Update the last modified time\n // This returns zero (i.e. Jan 1 1970) if the file does not exist\n this.lastModifiedTime = this.file.lastModified() / 1000;\n }",
"@Override\n public void update() {\n updateBuffs();\n }",
"@Override\n public void updateWithObservationsFromDatastreamOnly(SensingDevice sensingDevice, Datastream datastream) {\n }",
"private void refreshXML() {\n\t\t// Build a new thread to handle the request, since fetching files from\n\t\t// a remove server shouldn't block screen drawing.\n\t\tToast.makeText(\n\t\t\t\tthis,\n\t\t\t\tgetString(R.string.xml_requested_from) + \": \"\n\t\t\t\t\t\t+ PreferencesManager.getXmlUri(this), Toast.LENGTH_LONG)\n\t\t\t\t.show();\n\t\t// We use a separate runnable class instead of an anonymous inner class\n\t\t// so that when the async request is completed, it can signal the viewer\n\t\t// to toast.\n\t\tFetchThread ft = new FetchThread(this);\n\t\tft.start();\n\t}",
"protected void openStream ()\n {\n stream = Util.stream (entry, \"Holder.java\");\n }",
"@Override\n\tpublic void refresh() {\n\t\t\n\t}",
"@Override\n\tpublic void refresh() {\n\t\t\n\t}",
"@Override\n\t\tpublic void update() throws IOException {\n\t\t}",
"private void handleSourceInfoRefreshed(MediaSourceRefreshInfo mediaSourceRefreshInfo) throws ExoPlaybackException {\n long j;\n MediaSource.MediaPeriodId mediaPeriodId;\n MediaPeriodHolder playingPeriod;\n long longValue;\n MediaSource.MediaPeriodId resolveMediaPeriodIdForAds;\n if (mediaSourceRefreshInfo.source == this.mediaSource) {\n this.playbackInfoUpdate.incrementPendingOperationAcks(this.pendingPrepareCount);\n this.pendingPrepareCount = 0;\n Timeline timeline = this.playbackInfo.timeline;\n Timeline timeline2 = mediaSourceRefreshInfo.timeline;\n this.queue.setTimeline(timeline2);\n this.playbackInfo = this.playbackInfo.copyWithTimeline(timeline2);\n resolvePendingMessagePositions();\n MediaSource.MediaPeriodId mediaPeriodId2 = this.playbackInfo.periodId;\n long j2 = this.playbackInfo.periodId.isAd() ? this.playbackInfo.contentPositionUs : this.playbackInfo.positionUs;\n SeekPosition seekPosition = this.pendingInitialSeekPosition;\n if (seekPosition != null) {\n Pair<Object, Long> resolveSeekPosition = resolveSeekPosition(seekPosition, true);\n this.pendingInitialSeekPosition = null;\n if (resolveSeekPosition == null) {\n handleSourceInfoRefreshEndedPlayback();\n return;\n } else {\n longValue = ((Long) resolveSeekPosition.second).longValue();\n resolveMediaPeriodIdForAds = this.queue.resolveMediaPeriodIdForAds(resolveSeekPosition.first, longValue);\n }\n } else if (j2 == -9223372036854775807L && !timeline2.isEmpty()) {\n Pair<Object, Long> periodPosition = getPeriodPosition(timeline2, timeline2.getFirstWindowIndex(this.shuffleModeEnabled), -9223372036854775807L);\n MediaSource.MediaPeriodId resolveMediaPeriodIdForAds2 = this.queue.resolveMediaPeriodIdForAds(periodPosition.first, ((Long) periodPosition.second).longValue());\n j = !resolveMediaPeriodIdForAds2.isAd() ? ((Long) periodPosition.second).longValue() : j2;\n mediaPeriodId = resolveMediaPeriodIdForAds2;\n if (this.playbackInfo.periodId.equals(mediaPeriodId)) {\n }\n playingPeriod = this.queue.getPlayingPeriod();\n if (playingPeriod != null) {\n }\n this.playbackInfo = copyWithNewPosition(mediaPeriodId, seekToPeriodPosition(mediaPeriodId, mediaPeriodId.isAd() ? 0 : j), j);\n handleLoadingMediaPeriodChanged(false);\n } else if (timeline2.getIndexOfPeriod(mediaPeriodId2.periodUid) == -1) {\n Object resolveSubsequentPeriod = resolveSubsequentPeriod(mediaPeriodId2.periodUid, timeline, timeline2);\n if (resolveSubsequentPeriod == null) {\n handleSourceInfoRefreshEndedPlayback();\n return;\n }\n Pair<Object, Long> periodPosition2 = getPeriodPosition(timeline2, timeline2.getPeriodByUid(resolveSubsequentPeriod, this.period).windowIndex, -9223372036854775807L);\n longValue = ((Long) periodPosition2.second).longValue();\n resolveMediaPeriodIdForAds = this.queue.resolveMediaPeriodIdForAds(periodPosition2.first, longValue);\n } else {\n MediaSource.MediaPeriodId resolveMediaPeriodIdForAds3 = this.queue.resolveMediaPeriodIdForAds(this.playbackInfo.periodId.periodUid, j2);\n if (!this.playbackInfo.periodId.isAd() && !resolveMediaPeriodIdForAds3.isAd()) {\n resolveMediaPeriodIdForAds3 = this.playbackInfo.periodId;\n }\n mediaPeriodId = resolveMediaPeriodIdForAds3;\n j = j2;\n if (this.playbackInfo.periodId.equals(mediaPeriodId) || j2 != j) {\n playingPeriod = this.queue.getPlayingPeriod();\n if (playingPeriod != null) {\n while (playingPeriod.getNext() != null) {\n playingPeriod = playingPeriod.getNext();\n if (playingPeriod.info.id.equals(mediaPeriodId)) {\n playingPeriod.info = this.queue.getUpdatedMediaPeriodInfo(playingPeriod.info);\n }\n }\n }\n this.playbackInfo = copyWithNewPosition(mediaPeriodId, seekToPeriodPosition(mediaPeriodId, mediaPeriodId.isAd() ? 0 : j), j);\n } else if (!this.queue.updateQueuedPeriods(this.rendererPositionUs, getMaxRendererReadPositionUs())) {\n seekToCurrentPosition(false);\n }\n handleLoadingMediaPeriodChanged(false);\n }\n mediaPeriodId = resolveMediaPeriodIdForAds;\n j = longValue;\n if (this.playbackInfo.periodId.equals(mediaPeriodId)) {\n }\n playingPeriod = this.queue.getPlayingPeriod();\n if (playingPeriod != null) {\n }\n this.playbackInfo = copyWithNewPosition(mediaPeriodId, seekToPeriodPosition(mediaPeriodId, mediaPeriodId.isAd() ? 0 : j), j);\n handleLoadingMediaPeriodChanged(false);\n }\n }",
"public void refresh() {\n\n odp.refresh();\n\n\n }",
"@Override\n\t\tpublic synchronized void onRefresh() {\n\t\t\ttry {\n\t\t\t\t//此处可取当前时间,为刷新时间\n\t\t\t\tcurDate = new Date(System.currentTimeMillis());\n\t\t\t\tsdf = new SimpleDateFormat(\"MM-dd HH:mm\");\n\t\t\t\tif(System.currentTimeMillis()-time>500){\n\t\t\t\t\tURL = URL.substring(0, URL.lastIndexOf(\"_\")+1);\n\t\t\t\t\tURL = URL+\"1.xml\";\n\t\t\t\t\tif(lsnb != null){\n\t\t\t\t\t\tlsnb_temp.addAll(lsnb);\n\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t}else{\n\t\t\t\t\tToast toast = Toast.makeText(getActivity(), \"目前是最新数据!\", Toast.LENGTH_LONG);\n//\t\t\t\t\ttoast.getView().setBackgroundResource(R.drawable.red_toast_bg);\n\t\t\t\t\ttoast.getView().setPadding(20, 10, 20, 10);\n\t\t\t\t\ttoast.show();\n\t\t\t\t\tonLoadStop();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}",
"@Override\n\tpublic void resetStreamingNotification() {\n\t\t\n\t}",
"void refresh() {\n List<IDevice> list = Lists.newArrayList();\n// if (fan == null) {\n// ToastUtils.showShort(R.string.dev_invalid_error);\n// } else {\n// list.add(fan);\n// if (stove != null) {\n// list.add(stove);\n// }\n// }\n list = Plat.deviceService.queryDevices();\n adapter.loadData(list);\n }",
"public void refresh(){\r\n\t \t//providerMap.clear();\r\n\t \trefresh(null);\r\n\t }",
"public void refresh() {\n\t\tthis.viewer.refresh();\n\t}",
"@Override\n public void onRefresh() {\n updateListings();\n new GetDataTask().execute();\n }",
"@Override\n\tpublic void refresh() {\n\n\t}",
"public void refreshDisplayData() {\n if (useLiveDisplayUpdates && displaySection.isOpen()) {\n displayPanel.setValue(device.getDisplayData(), true);\n }\n\n }",
"public void refreshDataPacket() {\n ByteBuf buffer = PacketUtils.writePacket(getFreshFullDataPacket());\n setFullDataPacket(buffer);\n }",
"@Override\n public void onRefresh() {\n getUserOnlineStatus();\n }",
"public void refresh()\n\t{\n\t\t\tConnectivityManager connMgr = (ConnectivityManager)\n\t\t getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\t\t if (networkInfo != null && networkInfo.isConnected()) {\n\t\t // fetch data\n\t\t \tDownloadXmlTask task = new DownloadXmlTask();\n\t\t task.execute(\"http://api.androidhive.info/pizza/?format=xml\");\n\t\t \t\n\t\t\t\t\n\t\t } else {\n\t\t // display error\n\t\t \tLog.v(\"Network\", \"Error: Network is not available\");\n\t\t\t \n\t\t }\n\t}",
"protected void speedRefresh() {\r\n\t\t\ttStartTime = System.currentTimeMillis();\r\n\t\t\ttDownloaded = 0;\r\n\t\t}",
"@Override\n public void onRefresh() {\n synchronizeContent();\n }",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh() {\n/* 93 */ if (!this.initialized)\n/* 94 */ return; synchronized (this.o) {\n/* */ \n/* 96 */ this.wanService = null;\n/* 97 */ this.router = null;\n/* 98 */ this.upnpService.getControlPoint().search();\n/* */ } \n/* */ }",
"@Override\n public void onRefresh() {\n\n GetFirstData();\n }",
"@Override\n\tprotected void processPostUpdateStream(KStream<String, Event> events) {\n\n\t}",
"@Override\n public void onRefresh() {\n }",
"void refresh();",
"void refresh();",
"void refresh();",
"void refresh();",
"void refresh();",
"@Override\n\tpublic void onRefresh() {\n\t\trequestTime = 1;\n\t\trefreshFromServer(ListViewCompat.REFRESH);\n\t}",
"@Override\r\n public final void update() {\r\n\r\n logger.entering(this.getClass().getName(), \"update\");\r\n\r\n setFilterMap();\r\n\r\n logger.exiting(this.getClass().getName(), \"update\");\r\n\r\n }",
"@Override\n public void refreshDataEntries() {\n }",
"public void updateInfo() {\n\t}",
"public interface Stream {\n /**\n * The mediator of multiple Streams.\n */\n public interface StreamsMediator {\n /**\n * Allows the switching to another Stream.\n * @param streamKind The {@link StreamKind} of the stream to switch to.\n */\n default void switchToStreamKind(@StreamKind int streamKind) {}\n\n /**\n * Request the immediate refresh of the contents of the active stream.\n */\n default void refreshStream() {}\n\n /**\n * Disable the follow button, used in case of an error scenario.\n */\n default void disableFollowButton() {}\n }\n /** Called when the Stream is no longer needed. */\n default void destroy() {}\n\n /** Returns the section type for this stream. */\n @StreamKind\n int getStreamKind();\n\n /**\n * @param scrollState Previous saved scroll state to restore to.\n */\n void restoreSavedInstanceState(FeedScrollState scrollState);\n\n /**\n * Notifies that the header count has changed. Headers are views added to the Recyclerview\n * that the stream should not delete.\n *\n * @param newHeaderCount The new number of headers.\n */\n void notifyNewHeaderCount(int newHeaderCount);\n\n /**\n * @param listener A {@link ContentChangedListener} which activates when the content changes\n * while the stream is bound.\n */\n void addOnContentChangedListener(ContentChangedListener listener);\n\n /**\n * @param listener A previously added {@link ContentChangedListener} to be removed. Will no\n * longer trigger after removal.\n */\n void removeOnContentChangedListener(ContentChangedListener listener);\n\n /**\n * Allow the container to trigger a refresh of the stream.\n *\n * <p>Note: this will assume {@link RequestReason.MANUAL_REFRESH}.\n */\n void triggerRefresh(Callback<Boolean> callback);\n\n /**\n * @return Whether the placeholder is shown.\n */\n boolean isPlaceholderShown();\n\n /**\n * Called when the placeholder is shown and the first batch of articles are about to show.\n */\n void hidePlaceholder();\n\n /** Whether activity logging is enabled for this feed. */\n default boolean isActivityLoggingEnabled() {\n return false;\n }\n\n /** Whether the stream has unread content */\n default ObservableSupplier<Boolean> hasUnreadContent() {\n ObservableSupplierImpl<Boolean> result = new ObservableSupplierImpl<>();\n result.set(false);\n return result;\n }\n\n /** Returns the last content fetch time. */\n default long getLastFetchTimeMs() {\n return 0;\n }\n\n /**\n * Binds the feed to a particular view, manager, and scope.\n * When bound, the feed actively updates views and content. Assumes that whatever\n * views currently shown by manager are headers.\n * @param view The {@link RecyclerView} to which the feed is bound.\n * @param manager The {@link FeedListContentManager} to which we should make updates to.\n * @param savedInstanceState A previously saved instance state to restore to after loading\n * content.\n * @param surfaceScope The {@link FeedSurfaceScope} that is hosting the renderer.\n * @param renderer The {@link HybridListRenderer} that is rendering the feed.\n * @param reliabilityLogger Logger for feed reliability.\n * @param headerCount The number of headers in the RecyclerView that the feed shouldn't touch.\n */\n void bind(RecyclerView view, FeedListContentManager manager, FeedScrollState savedInstanceState,\n FeedSurfaceScope surfaceScope, HybridListRenderer renderer,\n @Nullable FeedReliabilityLogger reliabilityLogger, int headerCount);\n\n /**\n * Unbinds the feed. Stops this feed from updating the RecyclerView.\n *\n * @param shouldPlaceSpacer Whether this feed should place a spacer at the end to\n * prevent abrupt scroll jumps.\n * @param switchingStream Whether another feed is going to be bound right after this.\n */\n void unbind(boolean shouldPlaceSpacer, boolean switchingStream);\n\n /**\n * Whether this stream supports alternate sort options.\n */\n default boolean supportsOptions() {\n return false;\n }\n\n /**\n * Returns a value that uniquely identifies the state of the Stream's content. If this value\n * changes, then scroll state won't be restored.\n */\n String getContentState();\n\n /**\n * Interface users can implement to know when content in the Stream has changed content on\n * screen.\n */\n interface ContentChangedListener {\n /**\n * Called by Stream when content being shown has changed. This could be new cards being\n * created, the content of a card changing, etc...\n * @param feedContents the list of feed contents after the change. Null if the contents are\n * not available.\n */\n void onContentChanged(@Nullable List<FeedContent> feedContents);\n }\n}",
"@Override\n public void onRefresh() {\n }",
"abstract void refresh();",
"public void clear() {\n streams.clear();\n }",
"public void initOldStream() {\n ContextHolder.getInstance().setContext();\n if(oldStream == null) {\n /* try {\n oldStream = ContextHolder.getInstance().getOldStreamPool().borrowObject();\n } catch (Exception e) {\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n }*/\n\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n // oldEvent = new cudaEvent_t();\n // JCuda.cudaEventCreate(oldEvent);\n // oldEventDestroyed = false;\n }\n\n }",
"@Override\n public void onRefresh() {\n loadData();\n }",
"@Override\n\t\t\t\t\tpublic void onRefresh() {\n\t\t\t\t\t\tisRefreshing = true;\n\t\t\t\t\t\tsyncArticle();\n\t\t\t\t\t}",
"private void refreshEvents() {\r\n\t\ttry {\r\n\t\t\tif (SimpleSetting.ShowAlerts.getBoolean(true)) {\r\n\t\t\t\tloadUpcomingEvents();\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tRTeamLog.i(SUFFIX, \"Exception while refreshing events: %s\", e.getMessage());\r\n\t\t}\r\n\t}",
"public abstract void refresh();",
"public abstract void refresh();",
"public abstract void refresh();",
"public final void refresh() {\n // Bug fixing refresh video bug\n // (no image seen, but it is there and gets shown if you move a window\n // over the application pane or just resize the application.\n // Might be an OS video driver issue too.\n this.repaint();\n this.updateUI();\n // - Fix Refresh Bug with resizing\n this.setSize(this.getSize());\n }",
"public void refresh() {\n if (this.monitorApiKey.length() == 0) {\n return;\n }\n String params =\n String.format(\"api_key=%s&format=xml&custom_uptime_ratios=1-7-30-365\", this.monitorApiKey);\n byte[] xml = loadPageWithRetries(params);\n Match doc;\n try {\n doc = $(new ByteArrayInputStream(xml));\n } catch (SAXException | IOException e) {\n throw new CouldNotRefresh(e);\n }\n String[] customRatios = doc.find(\"monitor\").attr(\"custom_uptime_ratio\").split(\"-\");\n this.last24HoursUptimeRatio = customRatios[0];\n this.last7DaysUptimeRatio = customRatios[1];\n this.last30DaysUptimeRatio = customRatios[2];\n this.last365DaysUptimeRatio = customRatios[3];\n }",
"@Override\n public void onRefresh() {\n max_id = 0;\n populateCurrentUser();\n populateTimeline();\n }",
"public void refresh(Env env) {\n\t\trefreshed = System.currentTimeMillis();\n\t}",
"public abstract void refreshing();",
"synchronized protected void rewind() {\n\t\ttry {\n\t\t\tais.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new CCSoundException(\"JSPCMAudioRecordingStream::rewind - Error closing the stream before reload\", e);\n\t\t}\n\t\tais = CCSoundIO.getAudioInputStream(meta.fileName());\n\t}",
"public void refreshAllRssFeeds()\n {\n Vector rssContactList = new Vector();\n rssContactList = opSetPersPresence.getContactListRoot().\n getRssURLList(rssContactList);\n Iterator rssContact = rssContactList.iterator();\n while(rssContact.hasNext())\n {\n ContactRssImpl contact = (ContactRssImpl)rssContact.next();\n try\n {\n \n submitRssQuery(contact, false);\n }\n catch (Exception ex)\n {\n logger.error(\"Failed to refresh feed for \" + contact, ex);\n }\n }\n }",
"public void refreshFileInformation()\n\t\tthrows IOException, SMBException {\n\n\t\t// Get the latest file information for the file\n\n\t\tif ( m_sess instanceof DiskSession) {\n\t\t\tDiskSession diskSess = (DiskSession) m_sess;\n\n\t\t\tFileInfo fInfo = diskSess.getFileInformation( getFileName());\n\t\t\tif ( fInfo != null)\n\t\t\t\tsetFileInformation( fInfo);\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void onRefresh() {\n\r\n\t\t\t}",
"private void refreshProfile() {\n if (profile == null) {\n Source source = getCacheSource();\n boolean useCache = source == Source.CACHE;\n if (!useCache)\n loadingBar.show();\n\n ProfileUtils.downloadProfile(userId, this::onProfileRefresh, this::onProfileRefreshFail,\n profileImage, this);\n } else {\n onProfileRefresh(profile);\n profile = null; // subsequent loads should refresh the profile\n }\n\n refreshWeeklyStats();\n }",
"public void refresh(Connection conn) {\n this.initialize(conn);\n }",
"public void updateModel(Stream<Iterable> stream)\n {\n this.infos.clear();\n stream.forEach(this::getUsefulVariables);\n this.update();\n }",
"@Override\n\tprotected void getDataRefresh() {\n\t\t\n\t}",
"public void refresh() {\n try (InputStream stream = new FileInputStream(file)) {\n Map<String, String> properties = new HashMap<>();\n Properties props = new Properties();\n props.load(stream);\n for (String key : props.stringPropertyNames()) {\n properties.put(key, props.getProperty(key));\n }\n LOG.log(Level.FINEST, \"Loaded properties from \" + file);\n this.properties = properties;\n } catch (IOException e) {\n LOG.log(Level.FINEST, \"Cannot load properties from \" + file, e);\n }\n }",
"@Override\n public void update() {\n String msg = (String) topic.getUpdate(this);\n if(msg == null){\n System.out.println(this.imeRonioca + \" no new messages\");\n }else{\n System.out.println(this.imeRonioca + \" consuming message: \" + msg);\n }\n }",
"@Override\n public void onRefresh() {\n fetchNews();\n }",
"@Override\n\tpublic void onRefresh() {\n\n\t}",
"private void doRefreshConnection()\r\n\t{\r\n\t\t/* Refresh the connection to S3. */\r\n\t\ttry\r\n\t\t{\r\n\t\t\tservice = new RestS3Service(new AWSCredentials(accessKey, secretKey));\r\n\t\t}\r\n\t\tcatch (S3ServiceException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n public void onRefresh() {\n refreshData();\n }",
"private void refreshListView() {\n\t\t\tisEnd=false;\n\t\t\tlistView.setMode(Mode.PULL_FROM_START);\n\t\t\tjsonArray=new JSONArray();\n\t\t\tcurrentPage=0;\n\t\t\tgetSharePage(++currentPage);\n\t\t\t\n\t\t}",
"@Override\n public void run() {\n refreshData();\n }",
"public void refresh()\n {\n PropertyManager.getInstance().refresh();\n init(this.path);\n }",
"@Override public void run()\n {\n pauseStreaming();\n\n // Switch the current camera\n camera = newCamera;\n\n // Resume streaming on the new camera if there is one\n if (camera != null)\n {\n resumeStreaming();\n }\n }"
] | [
"0.80325735",
"0.71829486",
"0.6796979",
"0.668646",
"0.639967",
"0.63921064",
"0.62904155",
"0.6166646",
"0.60761476",
"0.59947413",
"0.5994362",
"0.5967709",
"0.5953801",
"0.5953416",
"0.59293383",
"0.5901992",
"0.5874742",
"0.58314997",
"0.5820802",
"0.5817513",
"0.57993996",
"0.57850987",
"0.57671493",
"0.5745291",
"0.5743952",
"0.5739647",
"0.57314676",
"0.572112",
"0.57192355",
"0.5718294",
"0.5718294",
"0.57120174",
"0.5711628",
"0.57050276",
"0.56976867",
"0.56839776",
"0.5675561",
"0.5668526",
"0.5653254",
"0.5646533",
"0.5637374",
"0.56186175",
"0.5607661",
"0.5601251",
"0.55974245",
"0.5588837",
"0.5586791",
"0.55799794",
"0.55799794",
"0.55799794",
"0.55799794",
"0.55799794",
"0.55799794",
"0.55799794",
"0.557822",
"0.5557676",
"0.5554628",
"0.5554086",
"0.55403304",
"0.55403304",
"0.55403304",
"0.55403304",
"0.55403304",
"0.55303144",
"0.5506227",
"0.55058956",
"0.5505575",
"0.5502153",
"0.5471271",
"0.5470576",
"0.5468454",
"0.54682636",
"0.5457313",
"0.5454889",
"0.5454053",
"0.5446608",
"0.5446608",
"0.5446608",
"0.5440391",
"0.54401064",
"0.5436521",
"0.5425912",
"0.5421841",
"0.5420981",
"0.5418905",
"0.5411747",
"0.54093206",
"0.5396829",
"0.5394705",
"0.5386423",
"0.5381767",
"0.5377874",
"0.537066",
"0.53577816",
"0.5355832",
"0.53526974",
"0.53517485",
"0.5348303",
"0.5345191",
"0.5338092",
"0.53353226"
] | 0.0 | -1 |
/ [CONSTRUCTOR MARKER BEGIN] | public ShopArticle() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"private void __sep__Constructors__() {}",
"public PSRelation()\n {\n }",
"public CyanSus() {\n\n }",
"public Pitonyak_09_02() {\r\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public Clade() {}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\r\n\tpublic void init() {}",
"private TMCourse() {\n\t}",
"@Override\n public void init() {}",
"public Self__1() {\n }",
"public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }",
"private SingleObject()\r\n {\r\n }",
"private Rekenhulp()\n\t{\n\t}",
"private Instantiation(){}",
"@Override public void init()\n\t\t{\n\t\t}",
"public Phl() {\n }",
"public CSSTidier() {\n\t}",
"public Lanceur() {\n\t}",
"public Anschrift() {\r\n }",
"public Chick() {\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}",
"public _355() {\n\n }",
"public Pasien() {\r\n }",
"public JSFOla() {\n }",
"private Road()\n\t{\n\t\t\n\t}",
"@Override\n public void init() {\n }",
"public Soil()\n\t{\n\n\t}",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\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\r\n\tpublic void init()\r\n\t{\n\t}",
"public Coche() {\n super();\n }",
"public Cohete() {\n\n\t}",
"defaultConstructor(){}",
"@Override\n public void init() {\n }",
"public void init() {\r\n\t\t// to override\r\n\t}",
"public Trening() {\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"protected abstract void construct();",
"public Method() {\n }",
"public Orbiter() {\n }",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"public void init(){}",
"public Vaccine() {\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"private CZ()\n {\n }",
"public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}",
"@Override\n void init() {\n }",
"private Cat() {\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}",
"public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }",
"public mapper3c() { super(); }",
"public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}",
"@Override\n protected void init() {\n }",
"void DefaultConstructor(){}",
"public Chauffeur() {\r\n\t}",
"public Cgg_jur_anticipo(){}",
"public Mannschaft() {\n }",
"public AirAndPollen() {\n\n\t}",
"public Spec__1() {\n }",
"private Marinator() {\n }",
"private Marinator() {\n }",
"public Parser()\n {\n //nothing to do\n }",
"private SingleObject(){}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"public Magazzino() {\r\n }",
"public Mitarbeit() {\r\n }",
"public C23317d() {\n }",
"public void init() { }",
"public void init() { }",
"public Excellon ()\n {}",
"protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}",
"public void init() {\n\t\t \r\n\t\t }",
"public RngObject() {\n\t\t\n\t}",
"public void init() {}",
"public void init() {}",
"public Person() {\n\t\t\n\t}",
"public EnsembleLettre() {\n\t\t\n\t}",
"public TTau() {}",
"public As21Id27()\n\t{\n\t\tsuper() ;\n\t}",
"public void init() {\n\t\t\n\t}",
"public Ov_Chipkaart() {\n\t\t\n\t}",
"private TAPosition()\n {\n\n }",
"private Ognl() {\n }",
"public Basic() {}",
"public Aanbieder() {\r\n\t\t}",
"public Curso() {\r\n }",
"private Bookmarks() {}",
"public Tigre() {\r\n }"
] | [
"0.8172352",
"0.78987813",
"0.7456175",
"0.7205316",
"0.7143033",
"0.7105864",
"0.7104067",
"0.70527005",
"0.70486116",
"0.700857",
"0.6994737",
"0.6972381",
"0.6970538",
"0.6964585",
"0.695927",
"0.6925603",
"0.6909102",
"0.6903267",
"0.6896547",
"0.6895573",
"0.6889378",
"0.6888119",
"0.6887649",
"0.6886905",
"0.6886905",
"0.6886905",
"0.6886905",
"0.6886905",
"0.68793744",
"0.6875924",
"0.6865154",
"0.68630314",
"0.6861096",
"0.6853069",
"0.68492883",
"0.6823123",
"0.68137735",
"0.68137735",
"0.68137735",
"0.6809327",
"0.6808743",
"0.68038064",
"0.67997706",
"0.6793",
"0.6792951",
"0.6785786",
"0.67815804",
"0.67706186",
"0.6766724",
"0.6766421",
"0.67593694",
"0.67580473",
"0.6742055",
"0.6740593",
"0.6739394",
"0.6733763",
"0.6732192",
"0.6731983",
"0.67316246",
"0.67316246",
"0.67316246",
"0.6727926",
"0.67238027",
"0.6721606",
"0.6713898",
"0.6713247",
"0.67098475",
"0.67050374",
"0.6704651",
"0.6702787",
"0.66985625",
"0.6697562",
"0.6697562",
"0.66958797",
"0.6692603",
"0.66900456",
"0.66900456",
"0.66880745",
"0.6682651",
"0.66825026",
"0.6679657",
"0.6679657",
"0.66765475",
"0.66755456",
"0.6672634",
"0.666946",
"0.6665437",
"0.6665437",
"0.6662044",
"0.66579044",
"0.66472524",
"0.66468805",
"0.66402435",
"0.66401714",
"0.6639979",
"0.663706",
"0.6636291",
"0.6635603",
"0.66338474",
"0.663249",
"0.662979"
] | 0.0 | -1 |
Constructor for primary key | public ShopArticle(java.lang.Long id) {
super(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PrimaryKey createPrimaryKey();",
"public DatasetParameterPK() {\n }",
"public ParametroPorParametroPK() {\r\n\t}",
"PrimaryKey getPrimarykey();",
"Key getPrimaryKey();",
"public TdOficioAfectacionPK() {\n }",
"PrimaryKey getPrimaryKey();",
"public DomainPK()\n {\n }",
"public LeaguePrimaryKey() {\n }",
"public TdNmResumenPK() {\n }",
"public PrimaryKey getPrimaryKey();",
"public EnvioPersonaPK() {\r\n }",
"public static Key createPrimaryKey(Number idexped, Number idbulto)\n {\n return new Key(new Object[] {idexped, idbulto});\n }",
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(String primaryKey);",
"public PaymentRecordKey() {\n super();\n }",
"private Integer newPrimaryKey( )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_NEW_PK );\n daoUtil.executeQuery( );\n Integer nKey = null;\n\n if ( daoUtil.next( ) )\n {\n nKey = daoUtil.getInt( 1 );\n }\n else\n {\n nKey = 1;\n }\n daoUtil.close( );\n\n return nKey.intValue( );\n }",
"public MarketplaceRatingPK(){\n\t}",
"public static PrimaryIndexBuilder pkIndex() {\n return new PrimaryKeyBuilderImpl();\n }",
"public void setPrimaryKey(String primaryKey) {\r\n this.primaryKey = primaryKey;\r\n }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(int primaryKey);",
"public Key()\n {\n name = \"\";\n fields = new Vector<String>();\n options = new Vector<String>();\n isPrimary = false;\n isUnique = false;\n }",
"public void setPrimaryKey(String primaryKey) {\n this.primaryKey = primaryKey;\n }",
"public void setPrimaryKey(long primaryKey) {\n this.primaryKey = primaryKey;\n }",
"public Constraint setKey( String theId) {\n\t\tmyKey = new IdDt(theId); \n\t\treturn this; \n\t}",
"Object getPrimaryKey() throws IllegalStateException;",
"public void setPrimaryKey(String primaryKey) {\r\n\t\tthis.primaryKey = primaryKey;\r\n\t}",
"private int newPrimaryKey( )\n {\n int nKey;\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_NEW_PK );\n\n daoUtil.executeQuery( );\n\n if ( daoUtil.next( ) )\n {\n nKey = daoUtil.getInt( 1 ) + 1;\n }\n else\n {\n // If the table is empty\n nKey = 1;\n }\n\n daoUtil.free( );\n\n return nKey;\n }",
"PK create(T newInstance);",
"public ProductoPk createPk() {\r\n return new ProductoPk(idProducto);\r\n }",
"private TbviajepasajeroPK getPrimaryKey(PathSegment pathSegment) {\r\n ugt.entidades.TbviajepasajeroPK key = new ugt.entidades.TbviajepasajeroPK();\r\n javax.ws.rs.core.MultivaluedMap<String, String> map = pathSegment.getMatrixParameters();\r\n java.util.List<String> idviaje = map.get(\"idviaje\");\r\n if (idviaje != null && !idviaje.isEmpty()) {\r\n key.setIdviaje(new java.lang.Integer(idviaje.get(0)));\r\n }\r\n java.util.List<String> cedulap = map.get(\"cedulap\");\r\n if (cedulap != null && !cedulap.isEmpty()) {\r\n key.setCedulap(java.lang.String.valueOf(cedulap.get(0)));\r\n }\r\n return key;\r\n }",
"public String getPrimaryKey() {\n if (primaryKey == null) primaryKey = \"id\";\n return primaryKey;\n }",
"public static Key createPrimaryKey(Number supplierId) {\n return new Key(new Object[]{supplierId});\n }",
"public void setPrimaryKey(String primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}",
"public PIEBankPlatinumKey() {\n\tsuper();\n}",
"public ListaPorMenuPK() {\r\n\t}",
"public DBRecordKey<gDBR> createKey() // <? extends DBRecord<?>>\n throws DBException\n {\n if (this.keyClass != null) {\n try {\n // this creates an empty key with no key fields\n Constructor<? extends DBRecordKey<gDBR>> kc = this.keyClass.getConstructor(new Class<?>[0]);\n return kc.newInstance(new Object[0]); // \"unchecked cast\"\n } catch (Throwable t) { // NoSuchMethodException, ...\n // Implementation error (should never occur)\n throw new DBException(\"Key Creation\", t);\n }\n }\n return null;\n }",
"boolean isPrimaryKey();",
"public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }",
"@Test\n\tpublic void testDBPrimaryKeyConstraint_1()\n\t\tthrows Exception {\n\t\tDBTable table = new DefaultDBTable(\"\");\n\t\tString name = \"\";\n\t\tboolean nameDeterministic = false;\n\t\tString columnName1 = \"\";\n\t\tString columnName2 = \"0123456789\";\n\t\tString columnName3 = \"An��t-1.0.txt\";\n\t\tString columnName4 = null;\n\n\t\tDBPrimaryKeyConstraint result = new DBPrimaryKeyConstraint(table, name, nameDeterministic, columnName1, columnName2, columnName3, columnName4);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"CONSTRAINT PRIMARY KEY (, 0123456789, An��t-1.0.txt, )\", result.toString());\n\t\tassertEquals(false, result.isNameDeterministic());\n\t\tassertEquals(\"\", result.getName());\n\t\tassertEquals(\"unique constraint\", result.getObjectType());\n\t\tassertEquals(null, result.getDoc());\n\t}",
"@Test\n\tpublic void testDBPrimaryKeyConstraint_18()\n\t\tthrows Exception {\n\t\tDBTable table = new DefaultDBTable(\"\", new DBSchema(\"\"));\n\t\tString name = \"\";\n\t\tboolean nameDeterministic = true;\n\t\tString columnName1 = \"0123456789\";\n\n\t\tDBPrimaryKeyConstraint result = new DBPrimaryKeyConstraint(table, name, nameDeterministic, columnName1);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"CONSTRAINT PRIMARY KEY (0123456789)\", result.toString());\n\t\tassertEquals(true, result.isNameDeterministic());\n\t\tassertEquals(\"\", result.getName());\n\t\tassertEquals(\"unique constraint\", result.getObjectType());\n\t\tassertEquals(null, result.getDoc());\n\t}",
"public SQLRowIdentifier() {\n\t\tsuper(EnumSQLType.SqlRowIdentifier, LENGTH);\n\t\t\n\t\tthis.page = new SQLInteger();\n\t\tthis.slot = new SQLInteger();\n\t}",
"public void setPrimaryKey(VLegalFORelPK primaryKey);",
"@Override\n\tpublic Object getPrimaryKey() {\n\t\treturn null;\n\t}",
"@Test\n\tpublic void testDBPrimaryKeyConstraint_23()\n\t\tthrows Exception {\n\t\tDBTable table = new LazyTable(new JDBCDBImporter(\"0123456789\", \"0123456789\", \"0123456789\", \"0123456789\", \"0123456789\", \"0123456789\"), (DBSchema) null, (String) null, (String) null);\n\t\tString name = \"0123456789\";\n\t\tboolean nameDeterministic = true;\n\t\tString columnName1 = \"\";\n\t\tString columnName2 = \"0123456789\";\n\t\tString columnName3 = \"An��t-1.0.txt\";\n\t\tString columnName4 = null;\n\n\t\tDBPrimaryKeyConstraint result = new DBPrimaryKeyConstraint(table, name, nameDeterministic, columnName1, columnName2, columnName3, columnName4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.NullPointerException\n\t\t// at org.databene.jdbacl.model.jdbc.LazyTable.getCatalog(LazyTable.java:130)\n\t\t// at org.databene.jdbacl.model.jdbc.LazyTable.getRealTable(LazyTable.java:256)\n\t\t// at org.databene.jdbacl.model.jdbc.LazyTable.setPrimaryKey(LazyTable.java:97)\n\t\t// at org.databene.jdbacl.model.DBPrimaryKeyConstraint.<init>(DBPrimaryKeyConstraint.java:47)\n\t\tassertNotNull(result);\n\t}",
"protected String createPrimaryKeyConstraint(TableModel table) {\r\n\t\tColumnModel[] pks = table.getPrimaryKeyColumns();\r\n\t\tString s = \"\";\r\n\t\tif (pks.length > 1) {\r\n\t\t\ts = \",\\n PRIMARY KEY(\";\r\n\t\t\tString a = \"\";\r\n\t\t\tfor (ColumnModel c : pks) {\r\n\t\t\t\tif (a.length() > 0) {\r\n\t\t\t\t\ta += \", \";\r\n\t\t\t\t}\r\n\t\t\t\ta += this.quote(c.getName());\r\n\t\t\t}\r\n\t\t\ts += a + \")\";\r\n\t\t}\r\n\t\treturn s;\r\n\t}",
"public Object generalPK() {\n\t\treturn null;\r\n\t}",
"public Key getKey() {\n\t\tString fieldvalue = getValue(\"sys_id\");\n\t\tassert fieldvalue != null;\n\t\treturn new Key(fieldvalue);\n\t}",
"@Test\n\tpublic void testDBPrimaryKeyConstraint_29()\n\t\tthrows Exception {\n\t\tDBTable table = new DefaultDBTable(\"\");\n\t\tString name = \"\";\n\t\tboolean nameDeterministic = false;\n\t\tString columnName1 = \"\";\n\n\t\tDBPrimaryKeyConstraint result = new DBPrimaryKeyConstraint(table, name, nameDeterministic, columnName1);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"CONSTRAINT PRIMARY KEY ()\", result.toString());\n\t\tassertEquals(false, result.isNameDeterministic());\n\t\tassertEquals(\"\", result.getName());\n\t\tassertEquals(\"unique constraint\", result.getObjectType());\n\t\tassertEquals(null, result.getDoc());\n\t}",
"@Override\n\tpublic Key getPk() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Key getPk() {\n\t\treturn null;\n\t}",
"@Override\n public void setPrimaryKey(long primaryKey) {\n _partido.setPrimaryKey(primaryKey);\n }",
"@Test\n\tpublic void testDBPrimaryKeyConstraint_2()\n\t\tthrows Exception {\n\t\tDBTable table = new DefaultDBTable(\"\", new DBSchema(\"\"));\n\t\tString name = \"0123456789\";\n\t\tboolean nameDeterministic = true;\n\t\tString columnName1 = \"\";\n\n\t\tDBPrimaryKeyConstraint result = new DBPrimaryKeyConstraint(table, name, nameDeterministic, columnName1);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"CONSTRAINT 0123456789 PRIMARY KEY ()\", result.toString());\n\t\tassertEquals(true, result.isNameDeterministic());\n\t\tassertEquals(\"0123456789\", result.getName());\n\t\tassertEquals(\"unique constraint\", result.getObjectType());\n\t\tassertEquals(null, result.getDoc());\n\t}",
"@Test\n\tpublic void testDBPrimaryKeyConstraint_24()\n\t\tthrows Exception {\n\t\tDBTable table = new DefaultDBTable(\"\", new DBSchema(\"\"));\n\t\tString name = \"0123456789\";\n\t\tboolean nameDeterministic = false;\n\t\tString columnName1 = \"\";\n\n\t\tDBPrimaryKeyConstraint result = new DBPrimaryKeyConstraint(table, name, nameDeterministic, columnName1);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"CONSTRAINT 0123456789 PRIMARY KEY ()\", result.toString());\n\t\tassertEquals(false, result.isNameDeterministic());\n\t\tassertEquals(\"0123456789\", result.getName());\n\t\tassertEquals(\"unique constraint\", result.getObjectType());\n\t\tassertEquals(null, result.getDoc());\n\t}",
"public void setPrimaryKey(int primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}",
"public JobID() {\n super();\n }",
"public PessoaVO(Long pk){\r\n\t\tsuper(pk);\r\n\t}",
"public PrimaryKeySpec(String aSchema, String aTable, String aField, String aCName) {\n this();\n copyPkFromValues(aSchema, aTable, aField, aCName);\n }",
"public ObjectKey getPrimaryKey()\n {\n return SimpleKey.keyFor(getNewsletterId());\n }",
"public String getPrimaryKey() {\r\n return primaryKey;\r\n }",
"@Nonnull\n protected KeyExpression buildPrimaryKey() {\n return Key.Expressions.concat(\n Key.Expressions.recordType(),\n Key.Expressions.list(constituents.stream()\n .map(c -> Key.Expressions.field(c.getName()).nest(c.getRecordType().getPrimaryKey()))\n .collect(Collectors.toList())));\n }",
"public abstract String getPrimaryKey(String tableName);",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"@Test\n\tpublic void testDBPrimaryKeyConstraint_11()\n\t\tthrows Exception {\n\t\tDBTable table = new LazyTable(new JDBCDBImporter(\"0123456789\", \"0123456789\", \"0123456789\", \"0123456789\", \"0123456789\", \"0123456789\"), (DBSchema) null, (String) null, (String) null);\n\t\tString name = \"\";\n\t\tboolean nameDeterministic = true;\n\t\tString columnName1 = \"\";\n\n\t\tDBPrimaryKeyConstraint result = new DBPrimaryKeyConstraint(table, name, nameDeterministic, columnName1);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.NullPointerException\n\t\t// at org.databene.jdbacl.model.jdbc.LazyTable.getCatalog(LazyTable.java:130)\n\t\t// at org.databene.jdbacl.model.jdbc.LazyTable.getRealTable(LazyTable.java:256)\n\t\t// at org.databene.jdbacl.model.jdbc.LazyTable.setPrimaryKey(LazyTable.java:97)\n\t\t// at org.databene.jdbacl.model.DBPrimaryKeyConstraint.<init>(DBPrimaryKeyConstraint.java:47)\n\t\tassertNotNull(result);\n\t}",
"boolean getPrimaryKey();",
"@Test\n\tpublic void testDBPrimaryKeyConstraint_19()\n\t\tthrows Exception {\n\t\tDBTable table = new DefaultDBTable(\"0123456789\", new DBSchema(\"\", new DBCatalog(\"\")));\n\t\tString name = \"0123456789\";\n\t\tboolean nameDeterministic = true;\n\t\tString columnName1 = \"0123456789\";\n\n\t\tDBPrimaryKeyConstraint result = new DBPrimaryKeyConstraint(table, name, nameDeterministic, columnName1);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"CONSTRAINT 0123456789 PRIMARY KEY (0123456789)\", result.toString());\n\t\tassertEquals(true, result.isNameDeterministic());\n\t\tassertEquals(\"0123456789\", result.getName());\n\t\tassertEquals(\"unique constraint\", result.getObjectType());\n\t\tassertEquals(null, result.getDoc());\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_phieugiahan.setPrimaryKey(primaryKey);\n\t}",
"public EntityID() {\n }",
"public Key(int type)\n {\n this.type = type;\n this.columns = new ArrayList<Column>();\n }",
"protected EquipmentTable() {\r\n\t\tsuper(NAME, PRIMARY_KEY_CONSTRAINT, null, null, GeneralHelper.getNonPrimaryColumns(COLUMNS));\r\n\t}",
"public OmOrgSrefNamePK() {\r\n\t}",
"@Override\n public String getKey()\n {\n return id; \n }",
"public DbRecord()\n {\n m_UserName = \"\";\n // Generate user's unique identifier\n m_Key = new byte[16];\n java.util.UUID guid = java.util.UUID.randomUUID();\n long itemHigh = guid.getMostSignificantBits();\n long itemLow = guid.getLeastSignificantBits();\n for( int i = 7; i >= 0; i-- )\n {\n m_Key[i] = (byte)(itemHigh & 0xFF);\n itemHigh >>>= 8;\n m_Key[8+i] = (byte)(itemLow & 0xFF);\n itemLow >>>= 8;\n }\n m_Template = null;\n }",
"@Test\n\tpublic void testDBPrimaryKeyConstraint_8()\n\t\tthrows Exception {\n\t\tDBTable table = new DefaultDBTable(\"\", new DBSchema(\"\"));\n\t\tString name = \"0123456789\";\n\t\tboolean nameDeterministic = true;\n\t\tString columnName1 = \"0123456789\";\n\n\t\tDBPrimaryKeyConstraint result = new DBPrimaryKeyConstraint(table, name, nameDeterministic, columnName1);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"CONSTRAINT 0123456789 PRIMARY KEY (0123456789)\", result.toString());\n\t\tassertEquals(true, result.isNameDeterministic());\n\t\tassertEquals(\"0123456789\", result.getName());\n\t\tassertEquals(\"unique constraint\", result.getObjectType());\n\t\tassertEquals(null, result.getDoc());\n\t}",
"public ContentKey() {}",
"public void setPrimaryKey(String primaryKey) {\n getBasicChar().setPrimaryKey(primaryKey);\n }",
"@Test\n\tpublic void testDBPrimaryKeyConstraint_13()\n\t\tthrows Exception {\n\t\tDBTable table = new DefaultDBTable(\"0123456789\", new DBSchema(\"\", new DBCatalog(\"\")));\n\t\tString name = \"\";\n\t\tboolean nameDeterministic = false;\n\t\tString columnName1 = \"\";\n\t\tString columnName2 = \"0123456789\";\n\t\tString columnName3 = \"An��t-1.0.txt\";\n\t\tString columnName4 = null;\n\n\t\tDBPrimaryKeyConstraint result = new DBPrimaryKeyConstraint(table, name, nameDeterministic, columnName1, columnName2, columnName3, columnName4);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"CONSTRAINT PRIMARY KEY (, 0123456789, An��t-1.0.txt, )\", result.toString());\n\t\tassertEquals(false, result.isNameDeterministic());\n\t\tassertEquals(\"\", result.getName());\n\t\tassertEquals(\"unique constraint\", result.getObjectType());\n\t\tassertEquals(null, result.getDoc());\n\t}",
"protected String createPKString(DbEntity entity) {\n List pk = entity.getPrimaryKey();\n\n if (pk == null || pk.size() == 0) {\n throw new CayenneRuntimeException(\n \"Entity '\" + entity.getName() + \"' has no PK defined.\");\n }\n\n StringBuffer buffer = new StringBuffer();\n buffer.append(\"CREATE PRIMARY KEY \").append(entity.getName()).append(\" (\");\n\n Iterator it = pk.iterator();\n\n // at this point we know that there is at least on PK column\n DbAttribute firstColumn = (DbAttribute) it.next();\n buffer.append(firstColumn.getName());\n\n while (it.hasNext()) {\n DbAttribute column = (DbAttribute) it.next();\n buffer.append(\", \").append(column.getName());\n }\n\n buffer.append(\")\");\n return buffer.toString();\n }",
"@Test\n\tpublic void testDBPrimaryKeyConstraint_30()\n\t\tthrows Exception {\n\t\tDBTable table = new DefaultDBTable(\"0123456789\", new DBSchema(\"\", new DBCatalog(\"\")));\n\t\tString name = \"\";\n\t\tboolean nameDeterministic = false;\n\t\tString columnName1 = \"\";\n\n\t\tDBPrimaryKeyConstraint result = new DBPrimaryKeyConstraint(table, name, nameDeterministic, columnName1);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"CONSTRAINT PRIMARY KEY ()\", result.toString());\n\t\tassertEquals(false, result.isNameDeterministic());\n\t\tassertEquals(\"\", result.getName());\n\t\tassertEquals(\"unique constraint\", result.getObjectType());\n\t\tassertEquals(null, result.getDoc());\n\t}",
"protected LocationPK() {\n super();\n }",
"public String getPrimaryKey() throws CloneNotSupportedException {\r\n\t\tString key=\"\";\r\n\t\tfor (int i = 0; i < this.state.getSizeCol(); i++) {\r\n\t\t\tfor (int j = 0; j < this.state.getSizeRow(); j++) {\r\n\t\t\t\tkey+=this.state.getValue(new Position(i,j));\r\n\t\t\t}\r\n\t\t}\r\n\t\tkey+=\"?\"+this.state.getTractor().getPosition().toString();\r\n\t\treturn key;\r\n\t}",
"public long getPrimaryKey() {\n return primaryKey;\n }"
] | [
"0.7875029",
"0.7489606",
"0.739803",
"0.7096801",
"0.70711553",
"0.69975173",
"0.69803166",
"0.69716835",
"0.6964837",
"0.69633687",
"0.69163185",
"0.67959905",
"0.6758902",
"0.6702319",
"0.6702319",
"0.6702319",
"0.6699209",
"0.65859973",
"0.6582905",
"0.65318656",
"0.6529337",
"0.652376",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.65121114",
"0.6507339",
"0.646869",
"0.64554304",
"0.6440007",
"0.6433323",
"0.63936985",
"0.6373589",
"0.6351165",
"0.630879",
"0.6299928",
"0.6296938",
"0.6293471",
"0.6288448",
"0.6270761",
"0.6257724",
"0.62434083",
"0.62414855",
"0.62291366",
"0.62212694",
"0.62169766",
"0.621116",
"0.6202717",
"0.61946255",
"0.6194046",
"0.61931163",
"0.6191176",
"0.61866844",
"0.6173761",
"0.61571634",
"0.615285",
"0.615285",
"0.61485153",
"0.6146449",
"0.61374635",
"0.6129914",
"0.61275476",
"0.61203897",
"0.6111364",
"0.61075836",
"0.61074877",
"0.61038184",
"0.6102018",
"0.6097855",
"0.60977715",
"0.60935456",
"0.60913575",
"0.6080798",
"0.60706085",
"0.60668147",
"0.60645634",
"0.6064229",
"0.6061586",
"0.6050735",
"0.6044876",
"0.60380024",
"0.60372776",
"0.60357565",
"0.60341185",
"0.60327",
"0.60230243",
"0.6022192",
"0.6021738"
] | 0.0 | -1 |
Constructor for required fields | public ShopArticle(java.lang.Long id,
com.jspgou.core.entity.Website website,
com.jspgou.cms.entity.ShopChannel channel,
java.lang.String title, java.util.Date publishTime,
java.lang.Boolean disabled) {
super(id, website, channel, title, publishTime, disabled);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Field() {\r\n\t}",
"public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }",
"public CisFieldError()\n\t{\n\t\t// required for jaxb\n\t}",
"public RequirementsRecord() {\n super(Requirements.REQUIREMENTS);\n }",
"private void fillMandatoryFields() {\n\n }",
"public AirField() {\n\n\t}",
"private FieldInfo() {\r\n\t}",
"public UserInputField() {\n }",
"public DependencyDescriptor(Field field, boolean required) {\n\t\tthis(field, required, true);\n\t}",
"public FormFieldsReport() {}",
"public FieldInfo() {\r\n \t// No implementation required\r\n }",
"public Field(String watermark,\n String showfieldname,\n String saveRequired,\n String jfunction,\n String onChange,\n String onKeyDown,\n String defaultValue,\n String type,\n String sqlValue,\n String field_name,\n String relation,\n String states,\n String relationField,\n String onClickVList,\n String jIdList,\n String name,\n String searchRequired,\n String id,\n String placeholder,\n String value,\n String fieldType,\n String onclicksummary,\n String newRecord,\n List<Field> dListArray,\n List<OptionModel> mOptionsArrayList,\n String onclickrightbutton,\n String webSaveRequired,\n String field_type) {\n\n this.watermark = watermark;\n this.showfieldname = showfieldname;\n this.saveRequired = saveRequired;\n this.jfunction = jfunction;\n this.onChange = onChange;\n this.onKeyDown = onKeyDown;\n this.defaultValue = defaultValue;\n this.type = type;\n this.sqlValue = sqlValue;\n this.field_name = field_name;\n this.relation = relation;\n this.states = states;\n this.relationField = relationField;\n this.onClickVList = onClickVList;\n this.jIdList = jIdList;\n this.name = name;\n this.searchRequired = searchRequired;\n this.id = id;\n this.placeholder = placeholder;\n this.value = value;\n this.fieldType = fieldType;\n this.onclicksummary = onclicksummary;\n this.newRecord = newRecord;\n this.dListArray = dListArray;\n this.optionsArrayList = mOptionsArrayList;\n this.onclickrightbutton = onclickrightbutton;\n this.webSaveRequired = webSaveRequired;\n this.field_type = field_type;\n\n// this( watermark, showfieldname, saveRequired, jfunction,\n// onChange, onKeyDown, defaultValue, type, sqlValue,\n// field_name, relation, states, relationField,\n// onClickVList, jIdList, name, \"\",\n// searchRequired, id, placeholder, value,\n// fieldType, onclicksummary, newRecord, \"\",\n// dListArray,mOptionsArrayList,onclickrightbutton);\n }",
"public PickUpCasualtyRequest() {\n\n // empty\n }",
"private void fillMandatoryFields_custom() {\n\n }",
"public Customer(@NotBlank(message = \"Name can't be blank\") String name, @NotBlank(message = \"Surname can't be blank\") String surname, @NotBlank(message = \"Phone can't be blank\") String phone, @NotNull(message = \"Date of birth can't be blank\") LocalDate dateOfBirth, int numberOfOffices, @NotNull(message = \"level of privilege can't be blank\") int levelOfPrivilege) {\n super(name, surname, phone, dateOfBirth);\n this.numberOfOffices = numberOfOffices;\n this.levelOfPrivilege = levelOfPrivilege;\n }",
"@Override\n\tprotected void initializeFields() {\n\n\t}",
"public FieldScrapper() \r\n {\r\n }",
"private Request() {\n initFields();\n }",
"public CpFldValidDate() { super(10018, 1); }",
"public UBERequest() {\r\n }",
"public ValidationComponent ()\n\t\t{\n\t\t}",
"public Customer()\n{\n this.firstName = \"noFName\";\n this.lastName = \"noLName\";\n this.address = \"noAddress\";\n this.phoneNumber = 0;\n this.emailAddress = \"noEmail\";\n \n}",
"private ValidationError() {\n }",
"public QBXMLRequest() {\n }",
"public StudentCourse() {\n this(\"student_course\", null);\n }",
"public JsonField() {\n }",
"private DatabaseValidationProperties() {}",
"public MyPractice()\n\t{\n\t\t//Unless we specify values all data members\n\t\t//are a zero, false, or null\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"public HLCPaymentDetails() { }",
"public Identity()\n {\n super( Fields.ARGS );\n }",
"public abstract List<String> requiredFields();",
"public IntegerField() {\r this(3, 0, 0, 0);\r }",
"public User() {\r\n this(\"\", \"\");\r\n }",
"public Validation() {\n }",
"public ModuleParams()\n\t{\n\t}",
"public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}",
"public FieldObject() {\n super(\"fields/\");\n setEnterable(true);\n }",
"private void validateConstructor () throws ModelValidationException\n\t\t\t{\n\t\t\t\t// no constructor or no arg constructor\n\t\t\t\tModel model = getModel();\n\t\t\t\tboolean hasConstr = model.hasConstructor(keyClassName);\n\t\t\t\tObject noArgConstr = \n\t\t\t\t\tmodel.getConstructor(keyClassName, Model.NO_ARGS);\n\t\t\t\tint modifiers = model.getModifiers(noArgConstr);\n\n\t\t\t\tif (hasConstr && \n\t\t\t\t\t((noArgConstr == null) || !Modifier.isPublic(modifiers)))\n\t\t\t\t{\n\t\t\t\t\tthrow new ModelValidationException(keyClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_class_constructor\", //NOI18N\n\t\t\t\t\t\tkeyClassName, getClassName()));\n\t\t\t\t}\n\t\t\t}",
"public BoletoPaymentRequest() {\n\n }",
"public InquiryLftrattribRequest()\r\n\t{\r\n\t}",
"public StudentRecord() {}",
"public Course() {\n this(\"course\", null);\n }",
"public Constructor(){\n\t\t\n\t}",
"public PaymentDetails () {\n\t}",
"public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }",
"public Employee () {\r\n lName = \"NO LAST NAME\";\r\n fName = \"NO FIRST NAME\";\r\n empID = \"NO EMPLOYEE ID\";\r\n salary = -1;\r\n }",
"public Pojo1110110(){\r\n\t}",
"@Override\n public JsonNode required(String fieldName) {\n return _reportRequiredViolation(\"Node of type %s has no fields\",\n ClassUtil.nameOf(getClass()));\n }",
"@Test\n public void constructorComplete() {\n final String NAME = \"name\";\n final String PICTURE = \"pic\";\n final Integer POSITION = 5;\n final Integer STATUS = 1;\n final CourseType courseType = new CourseType(NAME, PICTURE, POSITION, STATUS);\n\n assertNull(courseType.getId());\n assertSame(NAME, courseType.getName());\n assertSame(PICTURE, courseType.getPicture());\n assertSame(POSITION, courseType.getPosition());\n assertSame(STATUS, courseType.getStatus());\n assertNull(courseType.getCourses());\n assertNull(courseType.getAllowedDishes());\n }",
"public PersonRecord() {}",
"private Validador() {\r\n }",
"private FundInfo() {\n initFields();\n }",
"private Reqbaz() {\n super(\"reqbaz\", null);\n }",
"private Validate(){\n //private empty constructor to prevent object initiation\n }",
"public MessageRequest() {\n\t}",
"public ModuleParams() {\n }",
"private Params()\n {\n }",
"protected PricingModel() {\n }",
"private TextReader() {\n // There are no fields required to initialize\n }",
"public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }",
"public ObjectSchema() {\n }",
"public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }",
"@Test\n public void constructorSetsEmptyExtra()\n {\n //act\n ProductInfo actual = new ProductInfo();\n\n //assert\n assertEquals(\"\", Deencapsulation.getField(actual, \"extra\"));\n }",
"public RTextField() {\r\n }",
"@Test\n public void goalCustomConstructor_isCorrect() throws Exception {\n\n int goalId = 11;\n int userId = 1152;\n String name = \"Test Name\";\n int timePeriod = 1;\n int unit = 2;\n double amount = 1000.52;\n\n\n //Create goal\n Goal goal = new Goal(goalId, userId, name, timePeriod, unit, amount);\n\n // Verify Values\n assertEquals(goalId, goal.getGoalId());\n assertEquals(userId, goal.getUserId());\n assertEquals(name, goal.getGoalName());\n assertEquals(timePeriod, goal.getTimePeriod());\n assertEquals(unit, goal.getUnit());\n assertEquals(amount, goal.getAmount(),0);\n }",
"public Potencial() {\r\n }",
"public Request() {\n }",
"private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }",
"private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }",
"public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }",
"public Request(){\n\t\tthis(null, null, null);\n\t}",
"@Test\n public void purchaseCustomConstructor_isCorrect() throws Exception {\n\n int purchaseId = 41;\n int userId = 99;\n int accountId = 6541;\n double price = 99.99;\n String date = \"02/19/2019\";\n String time = \"12:12\";\n String category = \"test category\";\n String location = \"test location\";\n String comment = \"test comment\";\n\n //Create empty purchase\n Purchase purchase = new Purchase(purchaseId, userId, accountId, price, date, time, category, location, comment);\n\n // Verify Values\n assertEquals(purchaseId, purchase.getPurchaseId());\n assertEquals(userId, purchase.getUserId());\n assertEquals(accountId, purchase.getAccountId());\n assertEquals(price, purchase.getPrice(), 0);\n assertEquals(date, purchase.getDate());\n assertEquals(time, purchase.getTime());\n assertEquals(category, purchase.getCategory());\n assertEquals(location, purchase.getLocation());\n assertEquals(comment, purchase.getComment());\n }",
"public Question() {\r\n // This is the defult constructor b/c it takes no parameters\r\n firstPrompt = \"Please enter something:\";\r\n minScale = 1;\r\n maxScale = 10;\r\n secondPrompt = \"Additional comments:\";\r\n }",
"public AirAndPollen() {\n\n\t}",
"void initializeMandatorySectionFields();",
"public ValidationMessage() {\n }",
"public CalccustoRequest()\r\n\t{\r\n\t}",
"public CreditCard ()\r\n\t{\r\n\t\t\r\n\t}",
"public FundingDetails() {\n super();\n }",
"public OnlyOneFieldException() {\n this.message = ONLY_ONE_FIELD_ALLOWED_MESSAGE;\n }",
"public RequestMessage() {\r\n\t\tsuper();\r\n\t\tthis.criteria = new PersonSearchCriteria();\r\n\t\tthis.setSourceSystemID(SOURCE_SYSTEM_ID);\r\n\t\tthis.setSourceUserID(SOURCE_USER_ID);\r\n\t}",
"public BaseParameters(){\r\n\t}",
"public PSRelation()\n {\n }",
"public FieldNotFoundException() {\n }",
"public ErrorMessage() {\n\t}",
"public AvroPerson() {}",
"protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }",
"public Validacion(String descripcion) {\n super(descripcion);\n }",
"public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}",
"public Person() {\n\t\t\n\t}",
"public Student(String requiredStudentName)\n {\n studentName = requiredStudentName;\n }",
"public Partage() {\n }",
"public Parameters() {\n\t}",
"public Student(){\n firstName = \"\";\n lastName = \"\";\n bootcamp = \"\";\n id = 42;\n grade = 1.0;\n }",
"private void checkRequiredFields() {\n // check the fields which should be non-null\n if (configFileName == null || configFileName.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configFileName' should not be null.\");\n }\n if (configNamespace == null || configNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configNamespace' should not be null.\");\n }\n if (searchBundleManagerNamespace == null\n || searchBundleManagerNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'searchBundleManagerNamespace' should not be null.\");\n }\n if (entityManager == null) {\n throw new DAOConfigurationException(\n \"The 'entityManager' should not be null.\");\n }\n }",
"public ValidaCpf() {\n }",
"public TboFlightSearchRequest() {\n}",
"public ProposalSpecialReviewForm() {\r\n }"
] | [
"0.71718425",
"0.70593333",
"0.68855685",
"0.68011117",
"0.6788171",
"0.665877",
"0.6643776",
"0.65873665",
"0.65260553",
"0.6511593",
"0.6507464",
"0.6504741",
"0.6499354",
"0.6499127",
"0.6489181",
"0.6437741",
"0.6416246",
"0.6358725",
"0.6338867",
"0.6270355",
"0.62663263",
"0.62556946",
"0.6238193",
"0.62276506",
"0.6220664",
"0.6207473",
"0.6206237",
"0.6204278",
"0.6196808",
"0.61893594",
"0.6187281",
"0.6186825",
"0.6161104",
"0.6144782",
"0.6139718",
"0.6128913",
"0.611601",
"0.6112131",
"0.6110289",
"0.60815",
"0.6078185",
"0.60740966",
"0.6069644",
"0.6058821",
"0.60550433",
"0.6052316",
"0.6043621",
"0.6041452",
"0.6036001",
"0.6027981",
"0.602094",
"0.6007505",
"0.6006354",
"0.60061276",
"0.6004664",
"0.6003377",
"0.5995326",
"0.599425",
"0.5993343",
"0.59915775",
"0.5983726",
"0.5980581",
"0.59750146",
"0.5972299",
"0.59663236",
"0.5965931",
"0.59658045",
"0.59635407",
"0.59588176",
"0.59535575",
"0.5952708",
"0.5945984",
"0.59436303",
"0.5940319",
"0.59401995",
"0.5940003",
"0.5935176",
"0.5934589",
"0.5927621",
"0.5927444",
"0.5920697",
"0.59195745",
"0.5919246",
"0.5917688",
"0.5914413",
"0.59141284",
"0.59101546",
"0.5909702",
"0.590349",
"0.5902929",
"0.59023005",
"0.59008396",
"0.5900033",
"0.5896314",
"0.5896261",
"0.588807",
"0.58799213",
"0.58790374",
"0.58776593",
"0.58721083",
"0.5871662"
] | 0.0 | -1 |
Interface representing the transactions service | @Component
public interface TransactionService {
/**
* Method used to save or update a transaction object
*
* @param transaction
* The transaction to persist
* @throws Exception
* Any exception thrown saving or updating the object
*/
public void saveOrUpdate(Transaction transaction) throws Exception;
/**
* Method used to query all the transactions in the repository
*
* @return the list of all transactions in the repository
* @throws Exception
*/
public Transaction[] getTransactionsList() throws Exception;
/**
* Method used to delete a transaction from the repository
*
* @param transaction
* The transaction to remove
* @return a boolean with the result. true on success false otherwise.
* @throws Exception
*/
public boolean delete(Transaction transaction) throws Exception;
/**
* Method used to query a transaction given its id
* @param id The unique identifier of the transaction
* @return The Transaction instance
* @throws Exception
*/
public Transaction getById(String id) throws Exception;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface TransactionService {\n\n /**\n * @return TransactionManager\n */\n TransactionManager getTransactionManager();\n\n /**\n * @return UserTransaction\n */\n UserTransaction getUserTransaction();\n\n /**\n * @return default timeout in seconds\n */\n int getDefaultTimeout();\n\n /**\n * Sets timeout in seconds,\n * \n * @param seconds int\n * @throws SystemException\n */\n void setTransactionTimeout(int seconds) throws SystemException;\n\n /**\n * Enlists XA resource in transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void enlistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Delists XA resource from transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void delistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Creates unique XA transaction identifier.\n * \n * @return Xid\n */\n Xid createXid();\n\n}",
"public interface TransactionInterface {\n\n\t/**\n\t * Get metadata about the transaction, this is used when the transaction is generated on the server\n\t * @return \n\t */\n\tpublic ActH01 getActH01();\n\t\n\tpublic void setActH01(ActH01 actH01);\n\t\n\t/**\n\t * \n\t * @return Get metadata about the transaction, this comes from the client\n\t */\n\tpublic ActH01 getClientActH01();\n\t\n\tpublic void setClientActH01(ActH01 actH01);\n\t\n\t/**\n\t * Get this transactions audit id\n\t * @return\n\t */\n\tpublic int getAuditId();\n\t\n\t/**\n\t * Get this transactions action type\n\t * @return\n\t */\n\tpublic int getActionType();\n\t\n\t/**\n\t * Get this transactions xml representation\n\t * @return\n\t */\n\tpublic String getAuditXml();\n\n\tpublic void setAuditXml(String xml);\n\n\t/**\n\t * Get this transactions replication, so get all the SQL that were executed by this transaction\n\t * @return\n\t */\n\tpublic String getReplicationXml();\n\n\tpublic void setReplicationXml(String xml);\n\t\n\t/**\n\t * Classpath location for the schema/xsd this transaction must be validated against\n\t * if this is not set or invalid you WILL NOT be able to execute the transaction \n\t * @return\n\t */\n\tpublic String getSchemaLocation();\n\n\t/**\n\t * \n\t * @param session\n\t * @return\n\t * @throws TransactionException\n\t * Execute the transaction, amongst other logic the transactions\n\t * executeWrite logic will be executed\n\t */\n\tpublic TransactionInterface executeWrite() throws TransactionException;\n\n}",
"public interface TransactionDAO {\n \n String addTransaction(Long userId, String transaction) throws Exception;\n \n String showTransaction(Long userId, String transactionId) throws Exception;\n \n String listTransactions(Long userId) throws Exception;\n \n String sumTransactions(Long userId) throws Exception;\n \n}",
"public interface TransactionManager {\n\n\t/**\n\t * Start a new read only transaction.\n\t */\n\n\tStableView view();\n\n\t/**\n\t * Start a transaction for mutation.\n\t */\n\n\tMutableView begin();\n\n\t/**\n\t * Commit a previously prepared transaction for a two phase commit.\n\t *\n\t * @param tpcid\n\t * The client supplied two phase commit identifier.\n\t */\n\n\tvoid commit(String tpcid);\n\n}",
"public interface BusinessTransactionService {\n\n /**\n * This method returns the business transaction associated with the\n * supplied id.\n *\n * @param tenantId The tenant\n * @param id The id\n * @return The business transaction, or null if not found\n */\n BusinessTransaction get(String tenantId, String id);\n\n /**\n * This method returns a set of business transactions that meet the\n * supplied query criteria.\n *\n * @param tenantId The tenant\n * @param criteria The query criteria\n * @return The list of business transactions that meet the criteria\n */\n List<BusinessTransaction> query(String tenantId, BusinessTransactionCriteria criteria);\n\n /**\n * This method stores the supplied list of business transaction fragments.\n *\n * @param tenantId The tenant id\n * @param businessTransactions The business transactions\n * @throws Exception Failed to store\n */\n void storeBusinessTransactions(String tenantId, List<BusinessTransaction> businessTransactions) throws Exception;\n\n}",
"public interface IUserTransactionOperation {\n\n /**\n * Add the new invited transaction into this user's list\n * @param transaction the new invited transaction\n */\n void addInvitedTrans(ITransaction transaction, String userId);\n\n /**\n * Remove the new invited transaction into this user's list\n * @param transaction the invited transaction which is needed to be removed\n */\n void removeInvitedTrans(ITransaction transaction, String userId);\n\n /**\n * Used to receive transaction from one user.\n * @param meeting the transaction information which is used for two user.\n */\n void receiveTransaction(IMeeting meeting, String userId);\n\n\n /**\n * Used to edit the specific information about transaction.\n * @param trans the transaction information which is used for two user.\n * @param tradeItem the item which is users want to trade\n * @param time the meeting time of trading\n * @param place the meeting type of trading\n * @param tradeType the trading type of this transaction\n */\n void editTransaction(ITransaction trans, ItemInterface tradeItem, String time, String place\n , String tradeType, IUserAccount user);\n\n /**\n * Send the one way transaction information to target user.\n * @param target the user who start user want to trade with.\n * @param trans the one way transaction between this user and target user\n */\n void sendTransaction(IUserAccount target, ITransaction trans, IUserAccount user);\n\n /**\n * Confirm this transaction and change the value of confirmRealWorldTrade\n * @param trans the transaction information which is used for two user.\n */\n void confirmRealWorldTrade(IUserAccount user, ITransaction trans);\n\n /**\n * Confirm this transaction and change the value of confirmTrans\n * @param trans the transaction information which is used for two user.\n\n */\n void confirmTrans(ITransaction trans);\n\n void declineTrans(ITransaction trans) ;\n\n /**\n * Add the transaction which is confirmed into this user confirmedTransaction list\n * @param transId the transaction which is confirmed by user and he/she want to add\n */\n void addConfirmedTransaction(int transId, String userId);\n\n /**\n * Remove the transaction which is confirmed into this user confirmedTransaction list\n * @param transId the transaction which is confirmed by user and he/she want to remove\n */\n void removeConfirmedTransaction(int transId, String userId);\n\n /**\n * this method is used for targetUser to perform final confirm of the transaction.\n * @param trans the transaction need to get a final confirm.\n */\n void finalConfirm(ITransaction trans,boolean confirmation, String userId);\n\n void addUserItemRating(IUserAccount user, int ItemId, int rating);\n}",
"public interface TransactionService extends AppService<Transaction> {\n TransactionResponse transact(TransactionDTO transactionDTO);\n}",
"public interface Transaction {\n void startPurchase();\n void addTicket(int age, boolean isStudent);\n double finishPurchase();\n\n}",
"public interface TransactionDAO\n{\n public void addTransaction(Transaction transaction);\n public Transaction findById(Integer id);\n public List<Transaction> getAll();\n}",
"public interface Transaction {\n void Execute();\n}",
"public interface CustomerTransactionService {\n\t\n\t/**\n\t * Get all customer transactions in the system.\n\t * \n\t * @return collection of all cleaning transaction in the system\n\t */\n\tpublic Collection<CleaningTransaction> findAll();\n\t\n\t/**\n\t * Find a cleaning transaction by custmer's Id.\n\t * \n\t * @param id the customer's id\n\t * @return the cleaning transaction object if found, else return null\n\t */\n\tpublic CleaningTransaction findByCustomerId(Long id);\n\t\n\t/**\n\t * Find a cleaning transaction by item's Id.\n\t * \n\t * @param id the item's id\n\t * @return the cleaning transaction object if found, else return null\n\t */\n\tpublic CleaningTransaction findByItemId(Long id);\n\t\n\t/**\n\t * Find cleaning transaction(s) by due date.\n\t * \n\t * @param dueDate date to collect an item\n\t * @return collection of transactions if found, else return null\n\t */\n\tpublic Collection<CleaningTransaction> findByDueDate(String name);\n\t\n\t/**\n\t * Find cleaning transaction(s) by deposite date.\n\t * \n\t * @param depositeDate date an item was deposited\n\t * @return collection of transactions if found, else return null\n\t */\n\tpublic Collection<CleaningTransaction> findByDepositeDate(String name);\n\t\n\t/**\n\t * Get all payments for a transaction.\n\t * \n\t * @param CustomerItem object\n\t * @return collection of payment objects\n\t */\n\tpublic Collection<Payment> getPayments(CustomerItem customerItem);\n\t\n\t/**\n\t * Create new cleaning transaction.\n\t * \n\t * @param cleaning transaction object\n\t * @return the created transaction \n\t */\n\tpublic CleaningTransaction create(CleaningTransaction cleaningTransaction);\n\t\n\t/**\n\t * Update an existing cleaning transactin's information.\n\t * \n\t * @param cleaning transaction object\n\t * @return the updated cleaning transaction object\n\t */\n\tpublic CleaningTransaction update(CleaningTransaction cleaningTransaction);\n\t\n}",
"@WebService(\n name = \"ITransactionService\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ITransactionService {\n\n\n /**\n * \n * @param startDate\n * @param endDate\n * @param productId\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.TransactionResponse\n */\n @WebMethod\n @WebResult(name = \"TransactionResponse\", targetNamespace = \"\")\n @RequestWrapper(\n localName = \"getChargeBackTransactions\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetChargeBackTransactions\")\n @ResponseWrapper(\n localName = \"getChargeBackTransactionsResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetChargeBackTransactionsResponse\")\n public TransactionResponse getChargeBackTransactions(\n @WebParam(name = \"ProductId\", targetNamespace = \"\") String productId,\n @WebParam(name = \"StartDate\", targetNamespace = \"\") String startDate,\n @WebParam(name = \"EndDate\", targetNamespace = \"\") String endDate);\n\n /**\n * \n * @param startDate\n * @param endDate\n * @param productId\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.TransactionResponse\n */\n @WebMethod\n @WebResult(\n name = \"TransactionResponse\",\n targetNamespace = \"\")\n @RequestWrapper(\n localName = \"getVoidTransactions\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetVoidTransactions\")\n @ResponseWrapper(\n localName = \"getVoidTransactionsResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetVoidTransactionsResponse\")\n public TransactionResponse getVoidTransactions(\n @WebParam(name = \"ProductId\", targetNamespace = \"\") String productId,\n @WebParam(name = \"StartDate\", targetNamespace = \"\") String startDate,\n @WebParam(name = \"EndDate\", targetNamespace = \"\") String endDate);\n\n /**\n * \n * @param cancelPaymentRequest\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.TransactionStatusResponse\n */\n @WebMethod\n @WebResult(\n name = \"TransactionStatusResponse\",\n targetNamespace = \"\")\n @RequestWrapper(\n localName = \"cancelPayment\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.CancelPayment\")\n @ResponseWrapper(\n localName = \"cancelPaymentResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.CancelPaymentResponse\")\n public TransactionStatusResponse cancelPayment(\n @WebParam(\n name = \"CancelPaymentRequest\",\n targetNamespace = \"\") CancelPaymentRequest cancelPaymentRequest);\n\n /**\n * \n * @param startDate\n * @param endDate\n * @param cdeName\n * @param cdeValue\n * @param productId\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.TransactionStatusResponse\n */\n @WebMethod\n @WebResult(name = \"TransactionStatusResponse\", targetNamespace = \"\")\n @RequestWrapper(\n localName = \"getTransactionStatus\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetTransactionStatus\")\n @ResponseWrapper(\n localName = \"getTransactionStatusResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetTransactionStatusResponse\")\n public TransactionStatusResponse getTransactionStatus(\n @WebParam(name = \"ProductId\", targetNamespace = \"\") String productId,\n @WebParam(name = \"CDEName\", targetNamespace = \"\") String cdeName,\n @WebParam(name = \"CDEValue\", targetNamespace = \"\") String cdeValue,\n @WebParam(name = \"StartDate\", targetNamespace = \"\") String startDate,\n @WebParam(name = \"EndDate\", targetNamespace = \"\") String endDate);\n\n /**\n * \n * @param startDate\n * @param endDate\n * @param productId\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.TransactionResponse\n */\n @WebMethod\n @WebResult(name = \"TransactionResponse\", targetNamespace = \"\")\n @RequestWrapper(\n localName = \"getRefundTransactions\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetRefundTransactions\")\n @ResponseWrapper(\n localName = \"getRefundTransactionsResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetRefundTransactionsResponse\")\n public TransactionResponse getRefundTransactions(\n @WebParam(name = \"ProductId\", targetNamespace = \"\") String productId,\n @WebParam(name = \"StartDate\", targetNamespace = \"\") String startDate,\n @WebParam(name = \"EndDate\", targetNamespace = \"\") String endDate);\n\n /**\n * \n * @param confirmationCode\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.PaymentHistoryResponse\n */\n @WebMethod\n @WebResult(name = \"PaymentHistoryResponse\", targetNamespace = \"\")\n @RequestWrapper(\n localName = \"getPaymentHistory\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetPaymentHistory\")\n @ResponseWrapper(\n localName = \"getPaymentHistoryResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetPaymentHistoryResponse\")\n public PaymentHistoryResponse getPaymentHistory(\n @WebParam(name = \"ConfirmationCode\", targetNamespace = \"\") List<String> confirmationCode);\n\n /**\n * \n * @param startDate\n * @param endDate\n * @param productId\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.TransactionResponse\n */\n @WebMethod\n @WebResult(name = \"TransactionResponse\", targetNamespace = \"\")\n @RequestWrapper(\n localName = \"getAchReturnTransactions\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetAchReturnTransactions\")\n @ResponseWrapper(\n localName = \"getAchReturnTransactionsResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetAchReturnTransactionsResponse\")\n public TransactionResponse getAchReturnTransactions(\n @WebParam(name = \"ProductId\", targetNamespace = \"\") String productId,\n @WebParam(name = \"StartDate\", targetNamespace = \"\") String startDate,\n @WebParam(name = \"EndDate\", targetNamespace = \"\") String endDate);\n\n}",
"public void createTransaction(Transaction trans);",
"public interface UserTransactionService\r\n{\r\n\tvoid shutdown ( boolean force ) throws IllegalStateException;\r\n\t\r\n\tvoid shutdown (long maxWaitTime) throws IllegalStateException;\r\n \r\n\tvoid registerResource ( RecoverableResource resource );\r\n\r\n\tvoid removeResource ( RecoverableResource res );\r\n\r\n\tvoid registerLogAdministrator ( LogAdministrator admin );\r\n\r\n\tvoid removeLogAdministrator ( LogAdministrator admin );\r\n\r\n\tvoid registerTransactionServicePlugin ( TransactionServicePlugin listener );\r\n\r\n\tvoid removeTransactionServicePlugin ( TransactionServicePlugin listener );\r\n\r\n\tvoid init ( Properties properties ) throws SysException;\r\n\t\r\n\tvoid init() throws SysException;\r\n\r\n\tCompositeTransactionManager getCompositeTransactionManager();\r\n\r\n\r\n}",
"Transaction createTransaction();",
"public interface IndexTransaction\n{\n\tpublic static final int STATUS_ACTIVE = 0;\n\n\tpublic static final int STATUS_COMMITTED = 3;\n\n\tpublic static final int STATUS_COMMITTING = 8;\n\n\tpublic static final int STATUS_MARKED_ROLLBACK = 1;\n\n\tpublic static final int STATUS_NO_TRANSACTION = 6;\n\n\tpublic static final int STATUS_PREPARED = 2;\n\n\tpublic static final int STATUS_PREPARING = 7;\n\n\tpublic static final int STATUS_ROLLEDBACK = 4;\n\n\tpublic static final int STATUS_ROLLING_BACK = 9;\n\n\tpublic static final int STATUS_UNKNOWN = 5;\n\n\tpublic static final String[] TRANSACTION_STATUS = { \"Created\", \"Marked for Rollback\",\n\t\t\t\"Prepared\", \"Committed\", \"Rolled Back\", \"Unknown\", \"No Transaction\",\n\t\t\t\"Preparing\", \"Committing\", \"Rolling Back\" };\n\n\tpublic static final boolean[] TRANSACTION_ACTIVE = { true, false, true, false, false,\n\t\t\tfalse, false, true, false, false };\n\n\t/**\n\t * Prepare to commit this transaction, all the work is done, but all the\n\t * listeners need to be ready and able to performa commit without failure\n\t */\n\tvoid prepare() throws IndexTransactionException;\n\n\t/**\n\t * Commit the transaction and make it available to others in the cluster\n\t * \n\t * @throws IndexTransactionException\n\t */\n\tvoid commit() throws IndexTransactionException;\n\n\t/**\n\t * @throws IndexTransactionException\n\t * if the transaction is not open\n\t */\n\tvoid rollback() throws IndexTransactionException;\n\n\t/**\n\t * @return\n\t */\n\tlong getTransactionId();\n\n\t/**\n\t * @throws IndexTransactionException\n\t */\n\tvoid close() throws IndexTransactionException;\n\n\t/**\n\t * get the transaction status\n\t * \n\t * @return\n\t */\n\tint getStatus();\n\n\t/**\n\t * get an Object from the transaction, that may have been placed in the\n\t * transaction by earlier phases.\n\t * \n\t * @param key\n\t * @return\n\t */\n\tObject get(String key);\n\n\t/**\n\t * Clear an object placed in the transaction\n\t * \n\t * @param key\n\t */\n\tvoid clear(String key);\n\n\t/**\n\t * Put an object into the transaction for use in later phases\n\t * \n\t * @param key\n\t * @param obj\n\t */\n\tvoid put(String key, Object obj);\n\n\t/**\n\t * @throws IndexTransactionException\n\t */\n\tvoid open() throws IndexTransactionException;\n\n}",
"public interface TransacaoService {\n\n List<TransacaoDTO> getAll();\n List<TransacaoDTO> getByCliente(String cpf);\n TransacaoDTO salvarTransacao(CreateTransacaoDTO createTransacaoDTO);\n TransacaoDTO atualizarTransacao(Integer id, TransacaoDTO transacaoDTO);\n void deletarTransacao( Integer id);\n InputStreamResource getExtrato(String cpf) throws IOException;\n InputStreamResource getExtratoByCartao(Integer id) throws IOException;\n}",
"public interface SalesContractService extends BaseService<SalesContract> {\n int insertSalesContract(SalesContract salesContract) throws Exception;\n int deliver(SalesContract salesContract) throws Exception;\n}",
"public interface TransactionContext extends Serializable {\n\n\n class Factory {\n public static TransactionContext getInstance() {\n TransactionContext instance = TransactionContextImpl.getInstance();\n if (instance == null) {\n instance = TransactionContextImpl.newInstance();\n }\n return instance;\n }\n }\n\n void setContextData(String key, Object value);\n\n <T> T getContextData(String key, Class<T> valueType);\n\n EncodeProtocol getProtocol();\n\n String getServiceName();\n\n String getMethod();\n\n String getVersion();\n\n /** 获取option整个值(int型) */\n int getOptions();\n\n /** 判断option中二进制第index位是否为1 */\n boolean getOption(int index);\n\n int getSequence();\n\n String getCallerId();\n\n long getSessionTid();\n\n long getCallerTid();\n\n long getCalleeTid();\n\n @Deprecated\n long getUid();\n\n long getStartTime();\n\n @Deprecated\n int getConcurrentCount();\n\n String getUip();\n\n String getForwardedFor();\n\n String getProxyIP();\n\n InetAddress getCallerIP();\n\n int getCallerPort();\n\n Map<String, String> getCookie();\n\n TransactionContext setCookie(Map<String, String> cookie);\n\n TransactionContext setCookie(String key, String value);\n\n String getUserSign();\n\n TransactionContext setTimeout(long timeout);\n\n long getTimeout();\n\n String getReturnCode();\n\n void setReturnCode(String returnCode);\n\n String getReturnMessage();\n\n void setReturnMessage(String returnMessage);\n\n String getErrorGroup();\n\n void setErrorGroup(String errorGroup);\n\n String getErrorLevel();\n\n String getErrorLocation();\n\n boolean isCircuitBroken();\n\n void setCircuitBroken(boolean circuitBroken);\n\n /** 是否重试 */\n boolean isRetry();\n\n void setRetry(boolean retry);\n\n @Deprecated\n long getReceivedTime();\n\n @Deprecated\n int getCalleeTime1();\n\n @Deprecated\n int getCalleeTime2();\n\n @Deprecated\n int getSendLength();\n\n @Deprecated\n int getRecvLength();\n\n @Deprecated\n Long getMscTraceId();\n\n @Deprecated\n Long getMscSpanId();\n\n String getRemoteAddress();\n\n String getLocalAddress();\n\n String getDomain();\n}",
"public interface Transaction {\n /**\n * Transaction Code\n *\n * @return Code\n */\n String getCode();\n\n /**\n * Transaction Status\n *\n * @return Status\n */\n TransactionStatus getStatus();\n\n /**\n * Transaction Date\n * @return Date\n */\n String getDate();//@TODO change to Date?\n}",
"public interface BankAccountService\n{\n BankAccount openAccount(long accountNumber, Date timeCreated);\n\n BankAccount getAccount(long accountNumber);\n\n void deposit(long accountNumber, double amount, String description, Date time);\n\n List<Transaction> getTransactions(BankAccount bankAccount, Date startTime, Date endTime);\n\n void withdraw(long testAccountNumber, double amount, String description, Date time);\n\n List<Transaction> getAllTransactions(BankAccount bankAccount);\n\n List<Transaction> getLatestTransactions(BankAccount bankAccount, int total);\n}",
"public interface ITransaction extends Serializable {\n /**\n * Open a transaction.\n * @throws Exception exception.\n */\n void open() throws Exception;\n\n /**\n * Close the current transaction.\n * @throws Exception exception.\n */\n void close() throws Exception;\n\n /**\n * Return true if transaction is opened.\n * @return true/false.\n * @throws Exception exception.\n */\n boolean isOpened() throws Exception;\n\n /**\n * Return true if transaction is marked as rollabck.\n * @return true/false.\n * @throws Exception exception.\n */\n boolean isMarkedRollback() throws Exception;\n\n /**\n * Join current transaction.\n * @throws Exception exception.\n */\n void join() throws Exception;\n\n /**\n * Unjoin current transaction.\n * @throws Exception exception.\n */\n void unjoin() throws Exception;\n}",
"public interface TransactionBubble<T> {\n\n T doInTransaction(Session session, Injector injector);\n}",
"public interface TransactionAuditService {\n\n\n public TransactionAuditList getTransactionAudits();\n\n}",
"public interface Transactionable {\n\n void book(String fromName, String toName, BigDecimal amount) throws NoNegativeBalanceAllowedException, NoSameAccountTransfersException;\n\n}",
"public interface TransactionDemo {\n String test(String param);\n}",
"Transaction createTransaction(Settings settings);",
"interface TransactionSupport {\n\n\n /*\n * Static fields.\n */\n\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_ACTIVE}.\n */\n int STATUS_ACTIVE = 0;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_MARKED_ROLLBACK}.\n */\n int STATUS_MARKED_ROLLBACK = 1;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_PREPARED}.\n */\n int STATUS_PREPARED = 2;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_COMMITTED}.\n */\n int STATUS_COMMITTED = 3;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_ROLLEDBACK}.\n */\n int STATUS_ROLLEDBACK = 4;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_UNKNOWN}.\n */\n int STATUS_UNKNOWN = 5;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_NO_TRANSACTION}.\n */\n int STATUS_NO_TRANSACTION = 6;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_PREPARING}.\n */\n int STATUS_PREPARING = 7;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_COMMITTING}.\n */\n int STATUS_COMMITTING = 8;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_ROLLING_BACK}.\n */\n int STATUS_ROLLING_BACK = 9;\n\n\n /*\n * Method signatures.\n */\n\n\n /**\n * Returns {@code true} if JTA facilities are available.\n *\n * @return {@code true} if JTA facilities are available; {@code\n * false} otherwise\n */\n boolean isEnabled();\n\n /**\n * Returns the {@linkplain Context#isActive() active} {@link\n * Context}, if any, that supports JTA facilities at the moment of\n * invocation, or {@code null}.\n *\n * <p>Implementations of this method may, and often do, return\n * {@code null}.</p>\n *\n * <p>The {@link Context} returned by implementations of this\n * method may become active or inactive at any moment.</p>\n *\n * @return the {@link Context}, if any, that supports JTA\n * facilities, or {@code null}\n *\n * @see Context#isActive()\n */\n Context getContext();\n\n /**\n * Returns a constant indicating the current transaction status.\n *\n * <p>Implementations of this method must return {@link\n * #STATUS_NO_TRANSACTION} ({@code 6}) if JTA is not supported.</p>\n *\n * @return a JTA {@link jakarta.transaction.Status} constant\n * indicating the current transaction status\n */\n int getStatus();\n\n}",
"public interface InstrumentedTransaction extends Transaction, UserDataStorage, DataSourceMember {\n\n /**\n * Returns a unique identifier for this transaction.\n */\n String getTransactionId();\n\n /**\n * Returns the metadata-aware ConnectionProvider that is being used for connections that resulted in this\n * transaction.\n */\n InstrumentedConnectionProvider getConnectionProvider();\n\n /**\n * Returns the timestamp when this transaction began, in nanoseconds since the Unix epoch. If this transaction\n * has not yet begun (from the perspective of the database server), then this method will return zero.\n */\n long getOpenedTimestampNanos();\n\n /**\n * Returns the duration in milliseconds that this transaction has been active. If the transaction object has been\n * created but the transaction has not yet begun, then this method will return <code>-1</code>.\n */\n long getDurationNanos();\n\n /**\n * Returns the Connection currently associated with this Transaction, if one has been leased already. If there is no\n * connection attached and connected, then this method will return <code>null</code> rather than forcing the\n * acquisition of one now.\n */\n InstrumentedConnection getConnection();\n\n /**\n * Attaches a single transaction listener instance to this transaction. Whenever this transaction performs any\n * operations, it will invoke callbacks on any attached listeners.\n */\n void addTransactionListener(TransactionListener listener);\n\n /**\n * Returns the optional user data object that may have been attached to this transaction.\n */\n Object getUserData();\n\n /**\n * Attaches a custom user data object to this transaction. This user data object will be removed automatically as\n * soon as the transaction is finished.\n */\n void setUserData(Object userData);\n}",
"public interface BookCustomerService {\n public List<BookCustomerInfoQuery> query(BookCustomer customer);\n\n public BookCustomer queryOne(BookCustomer customer);\n\n public void insert(BookCustomer customer) throws Exception;\n\n\n public void deleteById(BookCustomer bookCustomer);\n\n @Transactional\n public BaseResult insertOrder(String areaId,String price,String payType,String phone,String date,String person,String startTime,String endTime) throws Exception;\n ;\n}",
"public interface TransactionStatisticService {\n\n boolean processTransaction(Transaction transaction);\n\n TransactionStatistic getSummaryTransactionStatistic();\n}",
"public static interface TransactionCallback {\n public void transactionSuccessful(Receipt r);\n public void transactionFailed();\n }",
"public interface EthTransactionPendingDao {\n\n EthTransactionPending save(EthTransactionPending ethTransactionPending);\n\n List<EthTransactionPending> getTransactions(long limit);\n\n void delete(String hash);\n}",
"public interface UserService extends Service<User> {\n\n @Transactional(isolation = Isolation.SERIALIZABLE)\n boolean addTour(long userId, long tourId);\n\n @Transactional(isolation = Isolation.SERIALIZABLE)\n boolean deleteTour(long userId, long tourId);\n\n @Transactional(isolation = Isolation.SERIALIZABLE)\n List<Tour> tourList(long userId);\n}",
"protected abstract Object getTransactionObject() throws TransactionInfrastructureException;",
"public interface TransactionManager {\n public <T,E extends Exception> T doInTransaction(UnitOfWork<T,E> unitOfWork) throws E, SQLException;\n}",
"Transaction getTransaction() { \r\n return tx;\r\n }",
"public interface CoordinatorService {\n\n\t/**\n\t * init li config\n\t *\n\t * @param tccConfig\n\t * @throws Exception\n\t */\n\tvoid start(TccConfig tccConfig) throws Exception;\n\n\t/**\n\t * save tccTransaction\n\t *\n\t * @param tccTransaction\n\t * @return id\n\t */\n\tString save(TccTransaction tccTransaction);\n\n\t/**\n\t * find by transId\n\t *\n\t * @param transId\n\t * @return TccTransaction\n\t */\n\tTccTransaction findByTransId(String transId);\n\n\t/**\n\t * remove transaction\n\t *\n\t * @param id\n\t * transaction pk\n\t * @return true success\n\t */\n\tboolean remove(String id);\n\n\t/**\n\t * update\n\t * \n\t * @param tccTransaction\n\t */\n\tvoid update(TccTransaction tccTransaction);\n\n\t/**\n\t * update TccTransaction, this is only update Participant field\n\t * \n\t * @param tccTransaction\n\t * @return rows\n\t */\n\tint updateParticipant(TccTransaction tccTransaction);\n\n\t/**\n\t * update TccTransaction status\n\t * \n\t * @param id\n\t * pk\n\t * @param status\n\t * TccActionEnum\n\t * @return rows\n\t */\n\tint updateStatus(String id, Integer status);\n\n}",
"protected abstract Transaction createAndAdd();",
"public Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;",
"public interface LocalTransaction {\n /**\n * Begins a local transaction on the userlying resource.\n */\n public void begin() throws ResourceException;\n\n /**\n * Commits a local transaction on the userlying resource.\n */\n public void commit() throws ResourceException;\n\n /**\n * Rolls back a local transaction on the userlying resource.\n */\n public void rollback() throws ResourceException;\n}",
"public Transaction(){\n\t\t\n\t\ttransactions = new HashMap<String, ArrayList<Products>>();\n\t}",
"public interface Service {\r\n\t\r\n\t public Customer createAccount(Customer c) \r\n\t\t\t throws InvalidInputException; \r\n\t public Customer getBalance(String mobile) \r\n\t\t\t throws AccountNotFoundException, InvalidInputException;\r\n\t public Customer FundTransfer\r\n\t (String fromMobile, String toMobile, double amount)\r\n throws AccountNotFoundException,InvalidInputException, InsufficientBalanceException;\r\n\t \r\n\t public Customer deposit (String mobile, double amount)\r\n\t throws AccountNotFoundException,InvalidInputException, InsufficientBalanceException;\r\n\r\n}",
"Transaction getCurrentTransaction();",
"interface Transaction {\n int BALANCE = 500;\n //Storing Balance\n Object transaction(Object input);\n}",
"public interface TransactionListener {\n enum Error {\n INSUFFICIENT_FUNDS,\n INVALID_DEST,\n NETWORK_ERROR\n }\n\n void onFailed(Error error, TransactionType type);\n\n void onPending(Transaction transaction);\n\n void onValidated(Transaction transaction);\n}",
"public Transaction getTransaction()\n {\n return transaction;\n }",
"public Transaction() {\n }",
"public TokenTransactions() {}",
"public interface TransactionService {\r\n public Map<String, Object> findByPage(Query query);\r\n}",
"void beginTransaction();",
"public static Transactions getTransactions() {\n return Transactions;\n }",
"public interface BlockChainService {\n\n BigInteger getBlockNumber() throws RuntimeException;\n\n BigInteger getGasPrice();\n\n BigInteger getBalance(String address);\n\n String sendEtherTransaction(String from, String password,String to, String amount) throws RuntimeException;\n\n String sendTextTransaction(String from, String password,String to, String data) throws RuntimeException;\n\n\n}",
"public interface TransactionSerializer extends ObjectSerializer<Transaction> {\n}",
"void startTransaction();",
"public interface TransactionBo {\n\n String save();\n}",
"public interface TransBankService {\n /**\n * 获的所有的银行\n * @return\n */\n List<TransBank> getBankList();\n\n TransBank getBank(String bankId);\n /**\n * 获得银行的信息\n * @param regionCode\n * @return\n */\n List<TransBank> getBankListByRegion(String regionCode);\n\n /**\n * 保存银行的相关信息\n * @param transBank\n */\n TransBank save(TransBank transBank);\n\n /**\n * 删除银行\n * @param bankId\n * @return\n */\n void del(String bankId);\n\n}",
"public void authorizeTransaction() {}",
"public interface ImportBaseManager {\n @Transactional\n void readFile(File file);\n\n void addUnitUser(Map<String, User> userMap, Map<String, Unit> unitMap);\n\n @Transactional\n Map<String,User> addUser(List<ImportBaseVO> vos, Map<String, Corp> unitCorpMap);\n\n @Transactional\n void addCostomerInfo(List<ImportBaseVO> vos, Map<String, Corp> customerMap, Map<String, Unit> unitMap);\n\n @Transactional\n Map<String,Corp> addCorp(List<ImportBaseVO> vos);\n\n @Transactional\n Map<String, Unit> addUnit(List<ImportBaseVO> vos, Map<String, Corp> customerMap,\n Map<String, City> provinceMap, Map<String, City> cityMap);\n\n // 保存客户公司\n Map<String,Corp> addCustomer(List<ImportBaseVO> vos);\n}",
"TransactionResponseDTO transferTransaction(TransactionRequestDTO transactionRequestDTO);",
"public interface RecustomerTableService extends Service<RecustomerTable> {\n List<RecustomerTable> selectUsers();\n\n int insertByRebackUser(RecustomerTable recustomerTable);\n}",
"public interface AccountService {\n void deposit(Account account, double amount);\n\n void withdraw(Account account, double amount) throws NotEnoughFundsException;\n\n void transfer(Account fromAccount, Account toAccount, double amount) throws NotEnoughFundsException;\n\n\n}",
"public interface TestService {\n\n void test();\n\n void testTransactions();\n\n}",
"public abstract Response makeTransfer(Transaction transaction) throws AccountNotFoundException, InsufficientFundsException;",
"public interface BaseService<T> {\n //添加单个对象\n public Integer insert (T entity) throws Exception;\n\n //修改单个对象\n public Integer update(T entity) throws Exception;\n\n //删除单个对象\n public Integer delete(T entity) throws Exception;\n\n //查询所有\n public List<T> selectAll();\n\n //查询单个对象\n public T selectById(Serializable id);\n\n //查询单个对象\n public T select(T entity);\n\n}",
"public IBankTransfert payment();",
"public interface PosWithdrawService extends GenericService<PosWithdrawRecord,String> {\n\n List<PosWithdrawRecord> selectByExampleAndPage(DataTablesPage<PosWithdrawRecord> page, BaseExample baseExample);\n\n PosWithdrawRecord getPosWithdrawRecordById(int id);\n\n void updateResult(PosWithdrawRecord posWithdrawRecord,\n String money,\n String orderLogNo,\n String lklMerchantCode,\n String lklTerminalCode);\n\n void deleteSend(int pid);\n\n void inserBatchPosWithdraw(List<PosWithdrawRecord> posWithdrawRecord);\n\n PosWithdrawRecord getCountWithdraw();\n\n List<PosWithdrawRecord> searchSendRecordList(PosWithdrawRecord posWithdrawRecord);\n\n}",
"public interface TransactionalModelController extends ModelController {\n\n OperationResult execute(ModelNode operation, ResultHandler handler, ControllerTransactionContext transaction);\n}",
"public Object getTransactionId() throws StandardException;",
"public interface TbItemServiceAnno {\n //获取所有\n List<TbItem> getAll();\n\n //根据id进行查询\n TbItem getById(Long id);\n\n //插入\n int insertObj(TbItem tbItem);\n\n //更新\n int updateObj(TbItem tbItem);\n}",
"void sendTransaction(IUserAccount target, ITransaction trans, IUserAccount user);",
"void commit(Transaction transaction);",
"public interface IPay<T> {\n\n String pay(T info);\n\n String refund(T info);\n\n String query(T info);\n\n}",
"public interface CustomerService {\n\t/**\n\t * Metodo para insertar un cliente Customer en la base de datos PostgreSQL\n\t * \n\t * @param customer - Cliente de tipo Customer\n\t */\n\tvoid insert(Customer customer);\n\n\t/**\n\t * Metodo para insertar un bloque (coleccion) de cliente Customer en la base de\n\t * datos PostgreSQL\n\t * \n\t * @param customers - Lista de clientes de tipo List<Customer>\n\t */\n\tvoid insertBatch(List<Customer> customers);\n\n\t/**\n\t * Metodo que devuelve todos los clientes Customer de la base de datos\n\t * PostgreSQL\n\t * \n\t * @return Una Lista (java.utils) de tipo List<Customer> con todos los clientes\n\t * de la base de datos PostgreSQL\n\t */\n\tList<Customer> loadAllCustomer();\n\n\t/**\n\t * Metodo que devuelve un cliente Customer a partir de su identificador\n\t * customerId\n\t * \n\t * @param customerId - Identificador del cliente de tipo Integer\n\t * @return Cliente a devolver de tipo Customer\n\t */\n\tCustomer getCustomerById(int customerId);\n\n\t/**\n\t * Metodo que devuelve el nombre String de un cliente Customer a partir de su\n\t * identificador customerId\n\t * \n\t * @param customerId - Identificador de cliente de tipo Integer\n\t * @return String - Nombre del cliente de tipo String\n\t */\n\tString getCustomerNameById(int customerId);\n\n\t/**\n\t * Metodo que devuelve el numero Integer total de clientes en la base de datos\n\t * PostgreSQL\n\t * \n\t * @return El numero total de clientes de tipo Integer\n\t */\n\tvoid getTotalNumerCustomer();\n\n\t/**\n\t * Metodo que elimina un cliente Customer de la base de datos PostgreSQL a\n\t * partir de su identificador customerId\n\t * \n\t * @param customerId - Identificador del cliente Customer de tipo Integer\n\t */\n\tvoid deleteCustomerById(int customerId);\n\n\t/**\n\t * Metodo que actualiza la informacion un cliente Customer ya existente en la\n\t * base de datos PostgreSQL\n\t * \n\t * @param customer - Cliente con la informacion a ser actualizada de tipo\n\t * Customer\n\t */\n\tvoid updateCustomerById(Customer customer);\n}",
"public interface PayService {\n\n /**\n * 支付订单\n * @param orderDTO 被支付的订单对应的orderDTO对象\n */\n PayResponse create(OrderDTO orderDTO);\n\n /**\n * 异步返回支付信息\n * @param notifyData\n */\n PayResponse notify(String notifyData);\n\n /**\n * 退款\n * @param orderDTO\n */\n RefundResponse refund(OrderDTO orderDTO);\n}",
"public boolean requestTransaction(String name,String reason,double amount){\n Transaction t1 = new Transaction(name,reason,amount);\n boolean done=t1.registertransaction();\n \n return done; \n \n}",
"@Override\n\tpublic boolean supportsTransactions() {\n\n\t\treturn false;\n\t}",
"TransactionType createTransactionType();",
"public interface TransferDataSource {\n\n // region INTERFACES\n\n interface SendMoneyCallback {\n\n void onMoneySent(boolean status);\n void onFailed();\n }\n\n interface GetTransfersCallback {\n\n void onTransfersWereObtained(List<Transfer> transfers);\n void onContactTransfersLoaded(List<ContactTransfer> contactTransfers);\n void onDataNotAvailable();\n }\n\n // endregion\n\n // region METHODS\n\n void sendMoney(String id, String authToken, double moneyValue, SendMoneyCallback callback);\n\n void getTransfers(String authToken, GetTransfersCallback callback);\n\n int deleteAllTransfers();\n\n void saveTransfers(List<Transfer> transfers);\n\n // endregion\n}",
"public interface TradeRecordManager {\n /**\n * 插入充值记录\n * @param tradeRecordDTO 订单记录对象\n * @return 充值记录ID\n * @throws UserException\n * */\n Long addTradeRecord(TradeRecordDTO tradeRecordDTO) throws UserException;\n\n /**\n * 根据用户ID查询充值记录\n * @param userId 用户编号\n * @return 更新是否成功\n * @throws UserException\n * */\n TradeRecordDTO queryTradeRecordByUserId(Long userId) throws UserException;\n\n /**\n * 查询充值记录\n * */\n List<TradeRecordDTO> queryAll() throws UserException;\n\n /**\n * 条件查询充值记录\n * */\n List<TradeRecordDTO> query(TradeRecordQTO tradeRecordQTO) throws UserException;\n\n /**\n * 查询总量\n * */\n Long totalCount(TradeRecordQTO tradeRecordQTO) throws UserException;\n\n /**\n * 通过用户ID删除充值记录\n * */\n int deleteByUserId(Long userId) throws UserException;\n\n /**\n * 通过用户ID进行更新\n * */\n int updateByUserId(Long userId, TradeRecordDO tradeRecordDO) throws UserException;\n}",
"public int startTransaction();",
"public interface TransactionRepository {\n\n Transaction save(Transaction transaction);\n\n void remove(Transaction trx);\n\n void removeByAccount(Account account);\n\n long countTransactions();\n\n long countTransactionsOfAccount(Account account);\n\n List<Transaction> findAll();\n\n List<Transaction> filterAll(TransactionFilter filter);\n\n List<Transaction> findByCategory(Category category);\n\n List<Transaction> findByAccount(Account account);\n\n List<Transaction> findByAccountAndYear(Account account, Integer year);\n\n List<Transaction> findByAccountAndCategory(Account account, Category category);\n\n List<TransactionVolume> getCategoryVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getAccountCategoryVolumes(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyCategoryVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyAccountCategoryVolumes(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyIncomingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyOutgoingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyIncomingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyOutgoingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyIncomingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyOutgoingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyIncomingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyOutgoingVolumesOfAccount(Account account, boolean includeTransfers);\n\n ValueRange<LocalDate> getTransactionOpDateRange();\n\n ValueRange<LocalDate> getTransactionOpDateRangeForYear(Integer year);\n\n ValueRange<LocalDate> getTransactionOpDateRangeForAccount(Account account);\n\n ValueRange<LocalDate> getTransactionOpDateRangeForAccountAndYear(Account account, Integer year);\n\n}",
"public Txn() {\n }",
"public interface NiveauFormationDaoService extends Serializable {\n\t/**\n\t * @return int\n\t * @throws DataAddException \n\t * @throws WebServiceDataBaseException \n\t */\n\tpublic int addNiveauFormation(NiveauFormation nf) throws DataAddException, WebServiceDataBaseException;\n\t/**\n\t * @return boolean\n\t * @throws DataUpdateException \n\t * @throws WebServiceDataBaseException \n\t */\n\tpublic boolean updateNiveauFormation(NiveauFormation nf) throws DataUpdateException,WebServiceDataBaseException;\n\t/**\n\t * @return boolean\n\t * @throws DataDeleteException \n\t * @throws WebServiceDataBaseException\n\t */\n\tpublic boolean deleteNiveauFormation(int id) throws DataDeleteException,WebServiceDataBaseException;\n\t\n\t/**\n\t * @return List<NiveauFormation>\n\t */\n\tpublic List<NiveauFormation> getNiveauxFormation();\n\t/**\n\t * @param id\n\t * @return boolean\n\t * @throws DataReactivateException\n\t * @throws WebServiceDataBaseException\n\t */\n\tpublic boolean reactivateNiveauFormation(int id) throws DataReactivateException,WebServiceDataBaseException;\n}",
"public interface RentToBuyService {\n}",
"Transaction getTransctionByTxId(String txId);",
"public interface IService {\n\n List<BusinessTransaction> getBTs(HttpClientBuilder httpClientBuilder, String endpoint) throws ServiceException;\n\n List<Node> getNodes(HttpClientBuilder httpClientBuilder, String endpoint) throws ServiceException;\n\n}",
"public interface MonitorTransaction {\n\n void success();\n\n void failure(Throwable cause);\n\n void complete();\n}",
"public Collection<Transaction> getAllTransactions();",
"public interface BalanceInfoService {\r\n\r\n\t/** The user balance Dao. */\r\n\tUserBalanceDao userBalance=null;\r\n\t\r\n\t/**\r\n\t * Gets the balance info.\r\n\t *\r\n\t * @param request the webservice request from which the function is called. \r\n\t * @param user the user \r\n\t * @return the balance info in the json format similar to the object com.mobisols.tollpayments.response.get.BalanceInfoResponse\r\n\t */\r\n\tpublic String getBalanceInfo(String request,String user);\r\n}",
"public Transaction getTransactionById(Integer id) throws MiddlewareQueryException;",
"Transaction findTransactionById(Long id);",
"public interface TransactionBatchFilter {\n\n /**\n * Filters transaction\n *\n * @param transactionBatch Iroha transaction batch\n * @return true - if the transaction should be processed, false - otherwise\n */\n boolean filter(TransactionBatch transactionBatch);\n\n}",
"public interface TransactionRunnable {\n /** Runs with transaction. */\n void runWithTransaction(SurfaceControl.Transaction t);\n }",
"public interface TransactionRepository extends CrudRepository<Transaction> {\r\n\r\n}",
"public interface onTransactionStatusChangeListener {\n public void onResponse(boolean success);\n }",
"public Transaction getById(String id) throws Exception;",
"public Transaction getTransaction() {\n return transaction;\n }",
"public interface SuperOrderService {\n List<Order> queryForSettlement(Long customerId, Long carrierId, Date startDate, Date endDate);\n\n List<Order> queryForSettlement(Long customerId, Long carrierId, List<String> vins);\n\n List<Order> queryForSettlement(Map<String, Object> map);\n\n void updateForReconciliation(List<Long> orderDetailIds, boolean isReverse);\n\n void updateForTransfer(List<Long> orderDetailIds);\n\n void updateForSettlement(List<Long> orderDetailIds);\n\n List<Order> queryList(Map<String, Object> map);\n\n PageInfo<Order> queryList(Map<String, Object> map, int pageNum, int pageSize);\n\n List<OrderDetail> queryDetailByDetailIds(List<Long> detailIds);\n\n List<OrderDetail> queryDetailByOrderId(Long orderId);\n\n @Transactional\n void oneTouchOut(Long orderId, Long carrierId);\n\n void addSectionOrder(Order order);\n\n void addOrder(Order order);\n\n @Transactional\n void update(Order order);\n\n void checkDetailForOther(List<OrderDetail> details, boolean isSameCorp);\n\n void checkDetailForIn(List<OrderDetail> details);\n\n void checkOrder(Order order);\n}",
"public interface AccountPayableService\n extends BaseService<AccountPayable, Integer>\n{\n public List<AccountPayable> getList(Event anEvent);\n}"
] | [
"0.7906487",
"0.74357164",
"0.7322861",
"0.72334623",
"0.7164705",
"0.7053927",
"0.6971372",
"0.69488376",
"0.69161206",
"0.6852949",
"0.6833227",
"0.6812153",
"0.677581",
"0.6769885",
"0.67696875",
"0.66842633",
"0.6680953",
"0.6610251",
"0.6608685",
"0.65868545",
"0.6571408",
"0.6541684",
"0.6513581",
"0.64983326",
"0.64978766",
"0.649348",
"0.64742696",
"0.643225",
"0.64270025",
"0.64237887",
"0.64190483",
"0.64063513",
"0.63807505",
"0.63255",
"0.63163877",
"0.6315432",
"0.6302566",
"0.62989724",
"0.6288762",
"0.6276342",
"0.6275944",
"0.6267871",
"0.6229516",
"0.6216873",
"0.61980134",
"0.6196305",
"0.61924225",
"0.6189547",
"0.6188989",
"0.61834556",
"0.6154574",
"0.61517423",
"0.6144897",
"0.6139247",
"0.6133176",
"0.6083545",
"0.6080043",
"0.6074582",
"0.60711837",
"0.6065526",
"0.6055428",
"0.60473996",
"0.60446256",
"0.6038519",
"0.6010155",
"0.6004572",
"0.6000841",
"0.5985829",
"0.59850913",
"0.5983018",
"0.5979561",
"0.59784484",
"0.59629136",
"0.5962905",
"0.59598637",
"0.5952515",
"0.594907",
"0.5940448",
"0.5940212",
"0.593145",
"0.5921704",
"0.59133226",
"0.59119034",
"0.59060735",
"0.5887759",
"0.58803445",
"0.58778954",
"0.5871184",
"0.5870315",
"0.5870075",
"0.58700174",
"0.5868655",
"0.5866398",
"0.5858053",
"0.58576757",
"0.5848603",
"0.5843744",
"0.5842503",
"0.58381397",
"0.5837789"
] | 0.73413455 | 2 |
Method used to save or update a transaction object | public void saveOrUpdate(Transaction transaction) throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Transaction save(Transaction transaction);",
"public void updateTransaction(Transaction trans);",
"@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\n\t}",
"@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\t\t\n\t}",
"void commit(Transaction transaction);",
"@Override\n\tpublic void saveORUpdate(T obj) throws Exception {\n\t\t\n\t}",
"public TransactionalElement<E> commit();",
"void commitTransaction();",
"void update(T obj) throws PersistException;",
"public void persist(final Object obj) throws TransactionException {\n txTemplate.execute(new TransactionCallbackWithoutResult() {\n @Override\n public void doInTransactionWithoutResult(TransactionStatus status) {\n getHibernateTemplate().saveOrUpdate(obj);\n }\n });\n }",
"@Override\n\tpublic void createTransaction(Transaction t) { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\t/* save */ \n\t\tsession.save(t);\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\t}",
"@Override\n\tpublic Transaction update(Integer transactionId, Transaction transaction) {\n\t\treturn null;\n\t}",
"public void doSave(T objectToSave) throws SQLException;",
"public void commitEntity();",
"T save(T object);",
"@Transactional\n\t@Override\n\tpublic Paradero update(Paradero t) throws Exception {\n\t\treturn paraderoRespository.save(t);\n\t}",
"void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }",
"public void storeAndCommit() {\n \tsynchronized(mDB.lock()) {\n \t\ttry {\n \t \t\tstoreWithoutCommit();\n \t \t\tcheckedCommit(this);\n \t\t}\n \t\tcatch(RuntimeException e) {\n \t\t\tcheckedRollbackAndThrow(e);\n \t\t}\n \t}\n }",
"int updateByPrimaryKey(Transaction record);",
"void save(Object entity);",
"public void save(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//session.save(obj);\n\t\tsession.persist(obj);\n\t}",
"void commit( boolean onSave );",
"public CleaningTransaction update(CleaningTransaction cleaningTransaction);",
"@Override\n public void commitTx() {\n \n }",
"public void forceCommitTx()\n{\n}",
"public void commit();",
"Entity save(Entity entity);",
"UserOrder save(UserOrder order);",
"T save(T obj);",
"T save(T entity);",
"T save(T entity);",
"T save(T entity);",
"T save(T entity) throws DataConcurrencyException, DataIntegrityViolationException;",
"public Order saveOrUpdate(Order order);",
"@Override\n\tpublic T save(T t) {\n\t\t hibernateTemplate.getSessionFactory().getCurrentSession().save(t);\n\t\treturn t;\n\t}",
"@Override\n\tpublic Transaction update(Transaction transaction) {\n\t\treturn null;\n\t}",
"<T> void saveOrUpdate(T persistentObject);",
"@Transactional(isolation=Isolation.READ_COMMITTED, \n\t\t\tpropagation=Propagation.REQUIRED,\n\t\t\trollbackFor=Exception.class)\n\tpublic void update(Object object) {\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(object);\n\t}",
"@Transactional\n\t@Override\n\tpublic Paradero save(Paradero t) throws Exception {\n\t\treturn paraderoRespository.save(t);\n\t}",
"@Override\n public void saveTransactionDetails(TransactionInfo transactionInfo) {\n repositoryService.saveTransactionDetails(transactionInfo);\n update(\"transactions\", String.class, TransactionInfo.class, LocalDateTime.now().toString(), transactionInfo);\n }",
"void save(T entity);",
"public abstract void commit();",
"T save(T t);",
"protected abstract boolean commitTxn(Txn txn) throws PersistException;",
"<T> Serializable save(T persistentObject);",
"protected abstract Transaction createAndAdd();",
"public interface TransactionBo {\n\n String save();\n}",
"public void commitTransaction() {\n\r\n\t}",
"@Transactional\n\tpublic T update(T transientObject) {\n\t\treturn this.em.merge(transientObject);\n\t}",
"int update(Purchase purchase) throws SQLException, DAOException;",
"public void commit(){\n \n }",
"E save(E entity);",
"public E saveUpdate(E entity){\n EntityTransaction transaction = entityManager.getTransaction();\n transaction.begin();\n E e = entityManager.merge(entity);\n transaction.commit();\n return e;\n }",
"public void createTransaction(Transaction trans);",
"void commit();",
"void commit();",
"public void doUpdate(T objectToUpdate) throws SQLException;",
"@Override\r\n\tpublic void save(T t) {\n\t\tgetSession().save(t);\r\n\t}",
"long save(T item) throws DaoException;",
"@Override\n\tpublic T save(T entity) {\n\t\treturn getDao().save(entity);\n\t}",
"void save(Account account);",
"Account save(Account account);",
"@Transactional(propagation = Propagation.REQUIRED)\n\tpublic ServiceResult save(final Object obj){\n\t\tServiceResult result = new ServiceResult();\n\t\tlog.debug(\"Saving :\"+obj);\n\t\ttry{\n\t\t\tdao.save(obj);\n\t\t\tresult.setResult(true);\n\t\t\tresult.setReturnObject(obj);\n\t\t} catch (Exception e){\n\t\t\tresult.setResult(false);\n\t\t\tresult.setMessage(\"Error:\"+e);\n\t\t\tlog.error(\"Error saving the object: \", e);\n\t\t}\n\t\treturn result;\n\t}",
"<T> void update(T persistentObject);",
"public void saveOrUpdatePosPay(PosPay posPay) throws DataAccessException;",
"Transaction createTransaction();",
"public <T> void update(final PersistableDataObject<T> obj) {\n txTemplate.execute(new TransactionCallbackWithoutResult() {\n @Override\n public void doInTransactionWithoutResult(TransactionStatus status) {\n getHibernateTemplate().update(obj);\n }\n });\n }",
"@Override\n\tpublic void save(T obj) throws Exception {\n\t\t\n\t}",
"@Override\n\t\tpublic boolean update(AccountTransaction t) {\n\t\t\treturn false;\n\t\t}",
"@Override\n\tpublic void persist(T obj) throws Exception {\n\t\t\n\t}",
"E update(E entiry);",
"protected abstract void doSave();",
"public void update(T object) throws SQLException;",
"public Optional<TransactionHistory> updateTransaction()\n {\n return null;\n }",
"public <T> T save(T entity);",
"T persist(T obj) throws PersistException;",
"public T doSave(T entity)\n {\n preDoSave(entity);\n session.saveOrUpdate(entity);\n postDoSave(entity);\n\n return entity;\n }",
"public void save(E entity){\n transaction.begin();\n entityManager.persist(entity);\n transaction.commit();\n }",
"CustomerOrder save(CustomerOrder customerOrder);",
"public void rollbackTx()\n\n{\n\n}",
"public void saveOrUpdate(final Object obj) {\n txTemplate.execute(new TransactionCallbackWithoutResult() {\n @Override\n public void doInTransactionWithoutResult(TransactionStatus status) {\n getHibernateTemplate().saveOrUpdate(obj);\n }\n });\n }",
"@Transactional(propagation=Propagation.REQUIRED,isolation =Isolation.REPEATABLE_READ, rollbackFor = Exception.class)\r\n public int update(Test obj) throws Exception {\r\n if(obj == null ){\r\n return 0;\r\n }\r\n List<Test> list = new ArrayList<Test>();\r\n list.add(obj);\r\n return this.update(list);\r\n }",
"protected void save(T item) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tsession.save(item);\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute save\");\n\t\t}\n\t}",
"Transaction beginTx();",
"T update(T entity);",
"T update(T entity);",
"int updateByPrimaryKey(PaymentTrade record);",
"public boolean save(New object);",
"@Override\n public int save(T entity) {\n return mapper.insert(entity);\n }",
"void beginTransaction();",
"public void saveOrUpdate(T o);",
"@Override\n\tpublic void saveEntity(T t) {\n\t\tgetSession().save(t);\n\t}",
"@Override\n public Owner save(Owner object) {\n return super.save(object);\n }",
"boolean save(Account account);",
"Transaction getCurrentTransaction();",
"public void saveTransaction(Transaction transaction) {\r\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\r\n try {\r\n org.hibernate.Transaction hbtransaction = session.beginTransaction();\r\n // don't save \"duplicate\" transactions\r\n Query q = session.createQuery (\"from finance.entity.Transaction trans WHERE trans.transdate = :transdate AND trans.amount = :amount AND trans.vendor = :vendor AND trans.account.uid = :accountuid\");\r\n q.setParameter(\"transdate\", transaction.getTransdate());\r\n q.setParameter(\"amount\", transaction.getAmount());\r\n q.setParameter(\"vendor\", transaction.getVendor());\r\n Account acct = transaction.getAccount();\r\n q.setParameter(\"accountuid\", acct.getUid());\r\n List<Transaction> transactionList = (List<Transaction>) q.list();\r\n if (transactionList.isEmpty()) {\r\n session.save(transaction);\r\n }\r\n hbtransaction.commit();\r\n } catch (Exception e) {\r\n throw e;\r\n }\r\n }",
"@Override\n\tpublic <S extends Translator> S save(S entity) {\n\t\treturn save(entity);\n\t}",
"@Override\n\tpublic BnsCash save(BnsCash obj) {\n\t\treturn cashRepository.save(obj);\n\t}",
"public abstract CustomerOrder save(CustomerOrder entity);",
"@Override\n public void rollbackTx() {\n \n }"
] | [
"0.8165712",
"0.76720905",
"0.68552643",
"0.6821677",
"0.6764621",
"0.67181534",
"0.66702485",
"0.6597593",
"0.6578086",
"0.6567748",
"0.6556693",
"0.6529947",
"0.6508145",
"0.6498044",
"0.6492363",
"0.6477015",
"0.64517194",
"0.6448424",
"0.64368427",
"0.6406253",
"0.64055943",
"0.63715726",
"0.63597786",
"0.6346264",
"0.6312383",
"0.6311069",
"0.63094115",
"0.6308955",
"0.6285375",
"0.6281264",
"0.6281264",
"0.6281264",
"0.6262183",
"0.62564385",
"0.62312526",
"0.6227807",
"0.62278056",
"0.6207798",
"0.62037814",
"0.61979073",
"0.6197032",
"0.6197",
"0.6190428",
"0.6190097",
"0.6177083",
"0.61708504",
"0.616988",
"0.61537826",
"0.61386913",
"0.6133844",
"0.61297864",
"0.6122834",
"0.611613",
"0.6115305",
"0.6111519",
"0.6111519",
"0.61031544",
"0.61018425",
"0.60961056",
"0.6094608",
"0.6089677",
"0.6087112",
"0.60846674",
"0.6079357",
"0.6079318",
"0.6078866",
"0.60705966",
"0.6068352",
"0.6066566",
"0.6063725",
"0.60604864",
"0.6050935",
"0.60295117",
"0.60230374",
"0.59944594",
"0.5993264",
"0.59906226",
"0.5985948",
"0.5982272",
"0.597733",
"0.5972479",
"0.5971451",
"0.59689236",
"0.5968744",
"0.59672093",
"0.59672093",
"0.5960067",
"0.59529006",
"0.59504324",
"0.59420425",
"0.5932507",
"0.5930449",
"0.59296274",
"0.5923744",
"0.59201413",
"0.5916064",
"0.5916041",
"0.59099114",
"0.5909038",
"0.59087944"
] | 0.76697487 | 2 |
Method used to query all the transactions in the repository | public Transaction[] getTransactionsList() throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<Transaction> getAllTransactions();",
"@Override\n\tpublic List<Transaction> getAllTransactions() { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tQuery query = session.createQuery(\"from Transaction\");\n\t\tList<Transaction> expenses = query.list();\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\n\t\treturn expenses; \n\t}",
"public List<TransactionInfo> getAll() {\n return transactions;\n }",
"@Transactional\n\tpublic Set<TransactionTable> findAllTransactions() {\n\t\t List<TransactionTable> list = new ArrayList<TransactionTable>();\n\t TypedQuery<TransactionTable> query = entityManager.createNamedQuery(\"TransactionTable.findAll\", TransactionTable.class);\n\t list = query.getResultList();\n\t Set<TransactionTable> TransactionSet = new HashSet<TransactionTable>(list);\n\t return TransactionSet;\n\t\n\t}",
"@Transactional(readOnly = true)\n public List<OrderTransactionDTO> findAll() {\n log.debug(\"Request to get all OrderTransactions\");\n return orderTransactionRepository.findAll().stream()\n .map(orderTransactionMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"public Collection<CleaningTransaction> findAll();",
"public List<Transaction> getAllTransactions(){\n Cursor cursor = fetchAllRecords();\n List<Transaction> transactions = new ArrayList<Transaction>();\n if (cursor != null){\n while(cursor.moveToNext()){\n transactions.add(buildTransactionInstance(cursor));\n }\n cursor.close();\n }\n return transactions;\n }",
"public List<Transaction> readAllTransaction() throws TransactionNotFoundException {\n\t\treturn transactionDAO.listAccountTransactionTable();\n\t}",
"public List findAll() {\n return findAll(TransactionItem.class);\n }",
"public List<Transaction> getAllTransaction() throws SQLException {\n String sql = \"SELECT * FROM LabStore.Transaction_Detail\";\n List<Transaction> transactions = new ArrayList<>();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n Transaction transaction = new Transaction();\n transaction.setId(rs.getInt(\"id\"));\n transaction.setUser(userDbManager.getUser(rs.getInt(\"uId\")));\n transaction.setPurchaseDetail(purchaseDetailDbManager\n .getPurchaseDetailById(rs.getInt(\"pdId\")));\n transaction.setCount(rs.getInt(\"count\"));\n transaction.setTime(rs.getTimestamp(\"time\"));\n transactions.add(transaction);\n }\n }\n }\n\n return transactions;\n }",
"@Override\n\tpublic List<BankTransaction> getAllTransactions() throws BusinessException {\n\t\tBankTransaction bankTransaction = null;\n\t\tList<BankTransaction> bankTransactionList = new ArrayList<>();\n\t\tConnection connection;\n\n\t\ttry {\n\t\t\tconnection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"select transaction_id, account_id, transaction_type, amount, transaction_date from dutybank.transactionss\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\t\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tbankTransaction = new BankTransaction();\n\t\t\t\tbankTransaction.setTransactionid(resultSet.getInt(\"transaction_id\"));\n\t\t\t\tbankTransaction.setAccountid(resultSet.getInt(\"account_id\"));\n\t\t\t\tbankTransaction.setTransactiontype(resultSet.getString(\"transaction_type\"));\n\t\t\t\tbankTransaction.setTransactionamount(resultSet.getDouble(\"amount\"));\n\t\t\t\tbankTransaction.setTransactiondate(resultSet.getDate(\"transaction_date\"));\n\n\t\t\t\tbankTransactionList.add(bankTransaction);\n\t\t\t} \n\t\t\t\n\t\t\tif (bankTransactionList.size() == 0) {\n\t\t\t\tthrow new BusinessException(\"There is not data to retrieve\");\n\t\t\t}\n\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tthrow new BusinessException(\"Some Error ocurred retrieving data for transactions\");\n\t\t}\n\t\t\n\t\treturn bankTransactionList;\n\t}",
"@Override\n\t\tpublic List<AccountTransaction> findAll() {\n\t\t\treturn null;\n\t\t}",
"@Override\n public List list() throws TransactionException {\n return hibernateQuery.list();\n }",
"@Transactional\npublic interface TransactionRepository extends JpaRepository<TransactionDao, Integer> {\n\n List<TransactionDao> findAll();\n}",
"public List<TransactionInfo> list() {\n LOG.debug(\"loading all transaction info\");\n try {\n return getEditor().list();\n } catch (IOException e) {\n throw new CommandExecutionException(\"error occurred while loading transactions\", e);\n }\n }",
"@Transactional(readOnly = true)\n public List<Currency> findAll() {\n log.debug(\"Request to get all Currencies\");\n return currencyRepository.findAll();\n }",
"@Override\n @Transactional(readOnly = true)\n public List<Goods> findAll() {\n log.debug(\"Request to get all Goods\");\n return goodsRepository.findAll();\n }",
"public Iterator getTransactions() {\n return (transactions.listIterator());\n }",
"@Override\n @Transactional\n public List<Contacts> findAll() {\n Session currentSession = entiyManager.unwrap(Session.class);\n\n //create the query\n\n Query<Contacts> theQuery = currentSession.createQuery(\"from Contacts\", Contacts.class);\n\n //execute query and get result list\n\n List<Contacts> contacts = theQuery.getResultList();\n\n //return the results\n\n return contacts;\n }",
"public static Transactions getTransactions() {\n return Transactions;\n }",
"public ArrayList<Transaction> getTransactions() throws SQLException {\n return transactions.getAll();\n }",
"@Transactional(readOnly = true)\n public List<UsuarioEncuesta> findAll() {\n log.debug(\"Request to get all UsuarioEncuestas\");\n return usuarioEncuestaRepository.findAll();\n }",
"@Transactional(readOnly = true)\n public List<OrderItems> findAll() {\n log.debug(\"Request to get all OrderItems\");\n return orderItemsRepository.findAll();\n }",
"@Override\n public List<Transaksi> getAll() {\n List<Transaksi> listTransaksi = new ArrayList<>();\n\n try {\n String query = \"SELECT id, date_format(tgl_transaksi, '%d-%m-%Y') AS tgl_transaksi FROM transaksi\";\n\n PreparedStatement ps = Koneksi().prepareStatement(query);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n Transaksi transaksi = new Transaksi();\n\n transaksi.setId(rs.getString(\"id\"));\n transaksi.setTglTransaksi(rs.getString(\"tgl_transaksi\"));\n\n listTransaksi.add(transaksi);\n }\n } catch (SQLException se) {\n se.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return listTransaksi;\n }",
"@Transactional(readOnly = true)\n Collection<DataRistorante> getAll();",
"public List<Transaction> readByTransactionId(int transactionId) throws TransactionNotFoundException {\n\t\treturn transactionDAO.selectByTransactionId(transactionId);\n\t}",
"@GetMapping(\"/rest\")\n\t\tpublic @ResponseBody List<Transaction> transactionsListRest() {\n\t\t\tUserDetails user = (UserDetails) SecurityContextHolder.getContext()\n\t\t\t\t\t.getAuthentication().getPrincipal();\n\t\t\tString username = user.getUsername();\n\t\t\tUser currentUser = userRepo.findByUsername(username);\n\t\t\treturn (List<Transaction>) traRepo.findByUser(currentUser);\n\t\t}",
"public static Transaction[] transactionList(){\n int countFullPosition = 0;\n for (Transaction tr:transactions) {\n if(tr != null){\n countFullPosition++;\n }\n }\n if(countFullPosition == 0)\n return new Transaction[] {};\n // throw new InternalServerException(\"TransactionList is empty\");\n Transaction[] trList = new Transaction[countFullPosition];\n int index = 0;\n for (Transaction tr:transactions) {\n if(tr != null){\n trList[index] = tr;\n index++;\n }\n }\n return trList;\n }",
"List<BusinessTransaction> query(String tenantId, BusinessTransactionCriteria criteria);",
"@Transactional(readOnly = true)\n public List<Details> findAll() {\n log.debug(\"Request to get all Details\");\n return detailsRepository.findAll();\n }",
"@Override\r\n\tpublic List<Trainee> getAll() {\n\t\treturn dao.getAll();\r\n\t}",
"private void printAllTransactions(){\n Set<Transaction> transactions = ctrl.getAllTransactions();\n transactions.stream().forEach(System.out::println);\n }",
"public List<Transaction> checkTransactions(List<Transaction> transactions) {\r\n List<Transaction> transactionList = new ArrayList<Transaction>();\r\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\r\n try {\r\n org.hibernate.Transaction hbtransaction = session.beginTransaction();\r\n for(Transaction trans : transactions) {\r\n Query q = session.createQuery (\"from finance.entity.Transaction trans WHERE trans.transdate = :transdate AND trans.amount = :amount AND trans.vendor = :vendor AND trans.account.uid = :accountuid\");\r\n q.setParameter(\"transdate\", trans.getTransdate());\r\n q.setParameter(\"amount\", trans.getAmount());\r\n q.setParameter(\"vendor\", trans.getVendor());\r\n Account acct = trans.getAccount();\r\n q.setParameter(\"accountuid\", acct.getUid());\r\n List<Transaction> foundTransactions = (List<Transaction>) q.list();\r\n if (foundTransactions.isEmpty()) {\r\n transactionList.add(trans);\r\n }\r\n }\r\n hbtransaction.commit();\r\n } catch (Exception e) {\r\n throw e;\r\n }\r\n return transactionList;\r\n }",
"@Override\n @Transactional(readOnly = true)\n public List<Mock> findAll() {\n log.debug(\"Request to get all Mocks\");\n return mockRepository.findAll();\n }",
"@Override\n @Transactional(readOnly = true)\n public List<OrdreDTO> findAll() {\n log.debug(\"Request to get all Ordres\");\n return ordreRepository.findAll().stream()\n .map(ordreMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"@GET(\"points-transaction-history?expand=translations&sort=-created_at\")\n Call<HistoryExchangeResponse> getTransactionHistoryAll();",
"public List<Buy> getAll() throws PersistException;",
"public interface TransactionRepository {\n\n Transaction save(Transaction transaction);\n\n void remove(Transaction trx);\n\n void removeByAccount(Account account);\n\n long countTransactions();\n\n long countTransactionsOfAccount(Account account);\n\n List<Transaction> findAll();\n\n List<Transaction> filterAll(TransactionFilter filter);\n\n List<Transaction> findByCategory(Category category);\n\n List<Transaction> findByAccount(Account account);\n\n List<Transaction> findByAccountAndYear(Account account, Integer year);\n\n List<Transaction> findByAccountAndCategory(Account account, Category category);\n\n List<TransactionVolume> getCategoryVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getAccountCategoryVolumes(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyCategoryVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyAccountCategoryVolumes(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyIncomingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyOutgoingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyIncomingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyOutgoingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyIncomingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyOutgoingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyIncomingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyOutgoingVolumesOfAccount(Account account, boolean includeTransfers);\n\n ValueRange<LocalDate> getTransactionOpDateRange();\n\n ValueRange<LocalDate> getTransactionOpDateRangeForYear(Integer year);\n\n ValueRange<LocalDate> getTransactionOpDateRangeForAccount(Account account);\n\n ValueRange<LocalDate> getTransactionOpDateRangeForAccountAndYear(Account account, Integer year);\n\n}",
"public List<Transaction> getTransactions() throws SQLException {\n\t\tList<Transaction> result = new ArrayList<>();\n\t\tStatement statement = conn.createStatement();\n\t\ttry (ResultSet resultSet = statement.executeQuery(\"select Date, Amount, Category, Type from transaction\")) {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tresult.add(new Transaction(resultSet.getDate(1), resultSet.getDouble(2), resultSet.getString(3), resultSet.getString(4)));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public List<TodoItemEntity> findAll(){\n return todoItemRepository.findAll();\n }",
"@Transactional(readOnly = true)\n\t@Override\n\tpublic List<T> findAll() {\n\t\treturn (List<T>) registroDao.findAll();\n\t}",
"@Repository\npublic interface TransactionCrudRepository extends CrudRepository<Transaction , Long> {\n\n public List<Transaction> findAll();\n public List<Transaction> findAllByUserId(Long userId);\n}",
"public List<Transaction> getAllDepositTransactions(int start, int numOfRows) throws MiddlewareQueryException;",
"@Transactional(readOnly = true)\n public List<ActivityEstimationDTO> findAll() {\n log.debug(\"Request to get all ActivityEstimations\");\n return activityEstimationRepository.findAll().stream()\n .map(activityEstimationMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"@Transactional(readOnly = true)\n public Observable<List<E>> findAll() {\n return Observable.create(inSource -> {\n try {\n final List<E> theEntitiesList = mRepository.findAll();\n inSource.onNext(theEntitiesList);\n inSource.onComplete();\n } catch (final Exception theException) {\n inSource.onError(theException);\n }\n });\n }",
"public List<Item> getAll() {\r\n List<Item> list = new ArrayList<Item>();\r\n //Transaction trans = null;\r\n Session session = HibernateUtil.getSessionFactory().openSession();\r\n\r\n try {\r\n //trans = session.beginTransaction();\r\n\r\n list = session.createQuery(\"from Item\").list();\r\n\r\n //trans.commit();\r\n } catch (HibernateException e) {\r\n //if (trans != null) { trans.rollback(); }\r\n e.printStackTrace();\r\n } finally {\r\n //session.flush();\r\n session.close();\r\n }\r\n return list;\r\n }",
"@Override\n @Transactional(readOnly = true)\n public List<SintomaDTO> findAll() {\n log.debug(\"Request to get all Sintomas\");\n return sintomaRepository.findAll().stream()\n .map(sintomaMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"@Override\n @Transactional(readOnly = true)\n public List<OperationDTO> findAll() {\n log.debug(\"Request to get all Operations\");\n return operationRepository.findAll().stream()\n .map(operationMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"@Transactional(readOnly = true) \r\n public List<OsiMenuEntriesDTO> findAll() {\r\n log.debug(\"Request to get all OsiMenuEntries\");\r\n /* List<OsiMenuEntriesDTO> result = osiMenuEntriesRepository.findAll().stream()\r\n .map(osiMenuEntriesMapper::osiMenuEntriesToOsiMenuEntriesDTO)\r\n .collect(Collectors.toCollection(LinkedList::new));\r\n\r\n return result;*/\r\n return null;\r\n }",
"Map retrievePreparedTransactions();",
"public long countAllDepositTransactions() throws MiddlewareQueryException;",
"@Transactional(readOnly = true)\n public List<HarnaisDTO> findAll() {\n log.debug(\"Request to get all Harnais\");\n return harnaisRepository.findAll().stream()\n .map(harnaisMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Customer> getCustomerFindAll() {\n return em.createNamedQuery(\"Customer.findAll\", Customer.class).getResultList();\n }",
"@Override\n @Transactional(readOnly = true)\n public List<DepositoryInfoDTO> findAll() {\n log.debug(\"Request to get all DepositoryInfos\");\n return depositoryInfoRepository.findAll().stream()\n .map(depositoryInfoMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"@Transactional(readOnly = true)\n public List<Ticket> findAll() {\n log.debug(\"Request to get all Tickets\");\n List<Ticket> result = ticketRepository.findAll();\n\n return result;\n }",
"@Override\n public List<T> getAll() throws SQLException {\n\n return this.dao.queryForAll();\n\n }",
"@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}",
"List<TransportEntity> getAllEntityOfQuery();",
"public List<TreateWait> queryAll() {\n\t\tQuery query = Query.query(Criteria.where(\"id\").exists(true));\n\t\treturn treateWaitDao.queryList(query);\n\t\t\n\t}",
"@Override\n @Transactional(readOnly = true)\n public List<PomocniMaterijal> findAll() {\n log.debug(\"Request to get all PomocniMaterijals\");\n return pomocniMaterijalRepository.findAll();\n }",
"public java.util.List<SitbMoneyCollection> findAll();",
"@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }",
"public ArrayList<Transaction> getActiveTransactions() throws SQLException {\n return transactions.getCurrent();\n }",
"@Transactional\npublic interface EbillsTransactionRepository extends JpaRepository<EbillspayTransaction,Integer>,EbillsTransactionCustomRepo {\n\n List<EbillspayTransaction> findUnsharedTransactions();\n\n @Query(\"SELECT t FROM BaseTransaction t WHERE t.sessionId= ?1 \")\n List<BaseTransaction> findBySessionId(String sessionId);\n}",
"@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }",
"@Transactional(readOnly = true)\n public List<TipoSituacao> findAll() {\n log.debug(\"Request to get all TipoSituacaos\");\n return tipoSituacaoRepository.findAll();\n }",
"protected ArrayList<Transaction> refreshTransactions() {\r\n\t\ttry {\r\n\t\t\tHttpResponse response = serverAccess.getAllTransactionsResponse();\r\n\t\t\tif (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {\r\n\t\t\t\tString transactionsJson = EntityUtils.toString(response.getEntity());\r\n\t\t\t\tGson gson = new GsonBuilder().create();\r\n\t\t\t\tTransaction[] transactionArray = gson.fromJson(transactionsJson, Transaction[].class);\r\n\t\t\t\tArrayList<Transaction> transactionList = new ArrayList<Transaction>(Arrays.asList(transactionArray));\r\n\t\t\t\ttxtError.setText(\"\");\r\n\t\t\t\treturn transactionList;\r\n\t\t\t} else {\r\n\t\t\t\ttxtError.setText(EntityUtils.toString(response.getEntity()) + \" (Fehler: \"\r\n\t\t\t\t\t\t+ response.getStatusLine().getStatusCode() + \")\");\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\ttxtError.setText(\"Server nicht verfügbar\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public List<Transaction> readByAccountId(int accountId) throws TransactionNotFoundException {\n\t\treturn transactionDAO.selectByAccountId(accountId);\n\t}",
"List<T> getAll() throws PersistException;",
"@SuppressWarnings(\"unchecked\")\n @Transactional(readOnly = true, propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED)\n public List<Reservations> getAll() {\n Session s = sessionFactory.getCurrentSession();\n Query hql = s.createQuery(\"From Reservations\");\n return hql.list();\n }",
"public long countAllUncommittedTransactions() throws MiddlewareQueryException;",
"public List<Tutores> readAllJPQL() throws SecurityException{ \n String sql=\"Select tu from Tutores tu\";\n \n Query q=em.createQuery(sql); \n return q.getResultList();\n }",
"public Set<Transaction> getTransactionsByLotId(Integer id) throws MiddlewareQueryException;",
"@Transactional(readOnly = true)\n public List<OrderDto> findAll() {\n var orders = repository.findOrdersWithProducts();\n return orders.stream().map(order -> new OrderDto(order)).collect(Collectors.toList());\n }",
"public long countAllWithdrawalTransactions() throws MiddlewareQueryException;",
"private Collection<StorableTransaction> getTransactionList(Object body) {\r\n Collection<StorableTransaction> txs = new ArrayList<>();\r\n JsonObject data = (JsonObject) body;\r\n data.getJsonArray(ID_COLLECTION).forEach(json -> {\r\n StorableTransaction tx = Serializer.unpack((JsonObject) json, StorableTransaction.class);\r\n tx.setTimestamp(timestampFrom(data.getLong(ID_TIME)));\r\n txs.add(tx);\r\n });\r\n return txs;\r\n }",
"@Override\n\tpublic List<BankTransaction> getAllTransactionsById(int account_id) throws BusinessException {\n\t\tList<BankTransaction> bankTransactionList = new ArrayList<>();\n\t\tBankTransaction transaction = null;\n\t\tConnection connection;\n\t\ttry {\n\t\t\tconnection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"select transaction_id, account_id, transaction_type, amount, transaction_date from dutybank.transactions where account_id=?\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\t\t\tpreparedStatement.setInt(1, account_id);\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile (resultSet.next()) {\n\t\t\t\ttransaction = new BankTransaction();\n\t\t\t\ttransaction.setTransactionid(resultSet.getInt(\"transaction_id\"));\n\t\t\t\ttransaction.setAccountid(resultSet.getInt(\"account_id\"));\n\t\t\t\ttransaction.setTransactiontype(resultSet.getString(\"transaction_type\"));\n\t\t\t\ttransaction.setTransactionamount(resultSet.getDouble(\"amount\"));\n\t\t\t\ttransaction.setTransactiondate(resultSet.getDate(\"transaction_date\"));\n\n\t\t\t\t\n\t\t\t\tbankTransactionList.add(transaction);\n\n\t\t\t\t\n\t\t\t} \n\t\t\t\n\t\t\tif (bankTransactionList.size() == 0) {\n\t\t\t\tthrow new BusinessException(\"No data for accounts\");\n\t\t\t}\n\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tthrow new BusinessException(\"Some exception retrieving tha data has occurred in transactions\");\n\t\t}\n\t\treturn bankTransactionList;\n\t}",
"@Override\n\tpublic List<Transaction> findByTranDate(String tranDate) {\n\t\treturn transactionRepository.findByTranDate(tranDate);\n\t}",
"public lnrpc.Rpc.TransactionDetails getTransactions(lnrpc.Rpc.GetTransactionsRequest request) {\n return blockingUnaryCall(\n getChannel(), getGetTransactionsMethod(), getCallOptions(), request);\n }",
"public List<CustomerPurchase> getAll() throws SQLException;",
"public List<Account> queryAll() {\n\t\treturn null;\n\t}",
"public Collection findAll() throws InfrastructureException {\r\n\t\tCollection col;\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"findAll ini\");\r\n\t\t\tcol = getHibernateTemplate().find(\"from Trasllat as tdi order by tdi.id\");\t\t\t\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"findAll failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"findAll fin\");\r\n\t\treturn col;\r\n\t}",
"@Override\r\n\tpublic List<SalesDto> queryAllSales() {\n\t\treturn salesMapper.queryAllSales();\r\n\t}",
"public java.util.List<LdPublisher> delegateGetListAllTx() {\r\n return getMyDao().getListAll();\r\n }",
"@Override\n\t@Transactional\n\tpublic List<Satelite> findAll() {\n\t\treturn (List<Satelite>) sateliteRepository.findAll();\n\t}",
"@Override\r\n\tpublic List<Transaction> getTransactions() {\n\t\treturn null;\r\n\t}",
"@Override\n\t@Transactional\n\tpublic List<Customer> getAll() {\n\t\tList<Customer> loadAll = hibernateTemplate.loadAll(Customer.class);\n\t\treturn loadAll;\n\t}",
"public List<Transaction> listAllTransactionsByUserId( int userId){\n\t\t\n\t\t//String queryStr = \"SELECT trans FROM Transaction trans JOIN FETCH trans.\"\n\t\t\n\t\t\n\t\t\n\t\t\n\t\treturn null;\n\t\t\n\t}",
"public interface TransactionService {\r\n public Map<String, Object> findByPage(Query query);\r\n}",
"public com.google.common.util.concurrent.ListenableFuture<lnrpc.Rpc.TransactionDetails> getTransactions(\n lnrpc.Rpc.GetTransactionsRequest request) {\n return futureUnaryCall(\n getChannel().newCall(getGetTransactionsMethod(), getCallOptions()), request);\n }",
"@Override\n\tpublic List findAll()\n\t{\n\t\treturn teataskMapper.findAll();\n\t}",
"@Transactional(readOnly = true)\n public List<ChocolateDTO> findAll() {\n log.debug(\"Request to get all Chocolates\");\n return chocolateRepository.findAll().stream()\n .map(chocolateMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"@java.lang.Override\n public int getTransactionsCount() {\n return transactions_.size();\n }",
"@Override\n @Transactional(readOnly = true)\n public List<CatCarburantDTO> findAll() {\n log.debug(\"Request to get all CatCarburants\");\n return catCarburantRepository.findAll().stream()\n .map(catCarburantMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"public Cursor fetchAllTransactionsForAccount(long accountID){\n\t\treturn fetchAllTransactionsForAccount(getAccountUID(accountID));\n\t}",
"public List<Payment> findAll(){\n\t\treturn paymentRepository.findAll();\n\t}",
"@Transactional(readOnly = true)\n public List<AlterationPriceDTO> findAll() {\n log.debug(\"Request to get all AlterationPrices\");\n List<AlterationPriceDTO> result = alterationPriceRepository.findAll().stream()\n .map(alterationPriceMapper::alterationPriceToAlterationPriceDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n return result;\n }",
"@Repository\npublic interface TransactionRepository extends CrudRepository<TransactionEntity, Long> {\n Optional<TransactionEntity> findByTxnId(String txnId);\n\n List<TransactionEntity> findByUid(String uid);\n}",
"@Transactional(readOnly = true) \n public List<Heater> findAll() {\n log.debug(\"Request to get all Heaters\");\n List<Heater> result = heaterRepository.findAll();\n return result;\n }",
"@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}"
] | [
"0.77800095",
"0.7666414",
"0.7517002",
"0.74684906",
"0.7325992",
"0.7254811",
"0.7180022",
"0.71563584",
"0.71222913",
"0.6989398",
"0.69589037",
"0.6807083",
"0.66745013",
"0.6670393",
"0.66678065",
"0.66208225",
"0.6518128",
"0.64715666",
"0.6464156",
"0.6458902",
"0.644345",
"0.634465",
"0.6341664",
"0.6334653",
"0.6308971",
"0.63088834",
"0.6302487",
"0.62940234",
"0.6287605",
"0.62610537",
"0.62518054",
"0.62329566",
"0.62243354",
"0.62099195",
"0.6208801",
"0.6196137",
"0.61903626",
"0.6186263",
"0.6181379",
"0.61429054",
"0.6134639",
"0.61289364",
"0.61261386",
"0.61074555",
"0.6107045",
"0.6104335",
"0.6103903",
"0.61009926",
"0.6091864",
"0.6087303",
"0.6072992",
"0.60712117",
"0.60593057",
"0.60516727",
"0.60494655",
"0.60182697",
"0.60180986",
"0.6016663",
"0.60117716",
"0.6004032",
"0.60028493",
"0.6001812",
"0.599945",
"0.5992194",
"0.5989182",
"0.59863377",
"0.59781975",
"0.59759855",
"0.5972614",
"0.5966673",
"0.59604645",
"0.5953268",
"0.5952145",
"0.5949074",
"0.59461296",
"0.59240556",
"0.5923107",
"0.5914271",
"0.5899341",
"0.5898327",
"0.58965355",
"0.58951604",
"0.587946",
"0.58750474",
"0.5870867",
"0.5867498",
"0.58576334",
"0.58445084",
"0.58424544",
"0.58384013",
"0.5837649",
"0.5826383",
"0.58232594",
"0.5823222",
"0.58223355",
"0.5817141",
"0.5815293",
"0.5810374",
"0.5809961",
"0.5809334"
] | 0.66449785 | 15 |
Method used to delete a transaction from the repository | public boolean delete(Transaction transaction) throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deleteTransactionById(int id);",
"@Override\n\tpublic void deleteTransaction(Transaction transaction) {\n\n\t}",
"@Override\n\tpublic void delete(Integer transactionId) {\n\n\t}",
"public void deleteTransaction() {\n\t\tconn = MySqlConnection.ConnectDb();\n\t\tString sqlDelete = \"delete from Account where transactionID = ?\";\n\t\ttry {\n\t\t\t\n\t\t\tps = conn.prepareStatement(sqlDelete);\n\t\t\tps.setString(1, txt_transactionID.getText());\n\t\t\tps.execute();\n\n\t\t\tUpdateTransaction();\n\t\t} catch (Exception e) {\n\t\t}\n\t}",
"int deleteByExample(TransactionExample example);",
"@Test(groups = \"Transactions Tests\", description = \"Delete transaction\")\n\tpublic void deleteTransaction() {\n\t\tMainScreen.clickAccountItem(\"Income\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Salary\");\n\t\tTransactionsScreen.clickOptionsBtnFromTransactionItem(\"Bonus\");\n\t\tTransactionsScreen.clickDeleteTransactionOption();\n\t\tTransactionsScreen.clickOptionsBtnFromTransactionItem(\"Bonus\");\n\t\tTransactionsScreen.clickDeleteTransactionOption();\n\t\tTransactionsScreen.transactionItens(\"Edited Transaction test\").shouldHave(size(0));\n\t\ttest.log(Status.PASS, \"Transaction successfully deleted\");\n\n\t\t//Testing if there no transaction in the 'Double Entry' account and logging the result to the report\n\t\treturnToHomeScreen();\n\t\tMainScreen.clickAccountItem(\"Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Current Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Cash in Wallet\");\n\t\tTransactionsScreen.transactionItens(\"Bonus\").shouldHave(size(0));\n\t\ttest.log(Status.PASS, \"Transaction successfully deleted from the 'Double Entry' account\");\n\n\t}",
"@DeleteMapping(\"/{id}\")\n\tpublic Transaction deleteTransactionById(@PathVariable Long id) {\n\t\tTransaction deletedTransaction = null;\n\t\t\n\t\ttry {\n\t\t\tdeletedTransaction = transactionService.deleteTransactionById(id);\n\t\t} \n\t\tcatch (TransactionNotFoundException e) {\n\t\t\tthrow new TransactionNotFoundException(id);\n\t\t}\n\t\tcatch (UserDoesNotOwnResourceException e) {\n\t\t\tthrow new UserDoesNotOwnResourceException();\n\t\t}\n\t\t\n\t\treturn deletedTransaction;\n\t}",
"private void deleteTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n boolean isDebtValid = true;\n if(mDbHelper.getCategory(mTransaction.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) { // Borrow\n List<Debt> debts = mDbHelper.getAllDebts();\n\n Double repayment = 0.0, borrow = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) { // Repayment\n repayment += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) { // Borrow\n borrow += debt.getAmount();\n }\n }\n\n if(borrow - mTransaction.getAmount() < repayment) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_delete_invalid));\n }\n }\n\n if(isDebtValid) {\n mDbHelper.deleteTransaction(mTransaction.getId());\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());\n }\n\n cleanup();\n\n // Return to FragmentListTransaction\n getFragmentManager().popBackStackImmediate();\n LogUtils.logLeaveFunction(Tag);\n }\n }",
"@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }",
"@Override\n\t\tpublic boolean delete(AccountTransaction t, int id) {\n\t\t\treturn false;\n\t\t}",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete ProjectTransactionRecord : {}\", id);\n projectTransactionRecordRepository.delete(id);\n }",
"@Override\n\t@Transactional\n\tpublic void deleteFundTransaction(Long fundTransactionId) throws InstanceNotFoundException {\n\t\tlogger.debug(\">>deleteFundTransaction\");\n\t\tfundTransactionDao.remove(fundTransactionId);\n\t\tlogger.debug(\"deleteFundTransaction>>\");\n\t}",
"public void deleteAllTransactions();",
"@Transactional\n\t@Override\n\tpublic void delete(T entity) {\n\t\tregistroDao.delete((Registro) entity);\n\t\t\n\t}",
"@Test\n\tpublic void deleteItemTest() {\n\t\tInteger associatedAccountId_1 = 1;\n\t\tString type_1 = \"deposit\";\n\t\tString date_1 = \"2018-04-03\";\n\t\tInteger amount_1 = 100;\n\t\tString description_1 = \"This is test transaction number one\";\n\t\tTransaction testDeleteTransaction_1 = new Transaction();\n\t\ttestDeleteTransaction_1.setAssociatedAccountId(associatedAccountId_1);\n\t\ttestDeleteTransaction_1.setType(type_1);\n\t\ttestDeleteTransaction_1.setDate(date_1);\n\t\ttestDeleteTransaction_1.setAmount(amount_1);\n\t\ttestDeleteTransaction_1.setDescription(description_1);\n\t\ttransacRepoTest.saveItem(testDeleteTransaction_1);\t\t\n\t\t\n\t\t//should now be 1 transaction in the repo\t\t\n\t\tArrayList<Transaction> transList = transacRepoTest.getItemsFromAccount(associatedAccountId_1);\n\t\tassertEquals(transList.size(), 1);\n\t\t\t\n\t\ttransacRepoTest.deleteItem(associatedAccountId_1);\n\n\t\t//should now be 0 transactions in the repo\n\t\ttransList = transacRepoTest.getItemsFromAccount(associatedAccountId_1);\n\t\tassertEquals(transList.size(), 0);\n\t\t\n\t}",
"public int delegateDeleteTx(LdPublisher entity) {\r\n assertEntityNotNullAndHasPrimaryKeyValue(entity);\r\n filterEntityOfDelete(entity);\r\n assertEntityOfDelete(entity);\r\n return getMyDao().delete(entity);\r\n }",
"@Override\n public Nary<Void> applyWithTransactionOn(TransactionContext transactionContext) {\n String deleteHql = \"DELETE FROM \" + persistentType.getName() + \" WHERE id = :deletedId\";\n Session session = transactionContext.getSession();\n Query deleteQuery = session.createQuery(deleteHql);\n deleteQuery.setParameter(\"deletedId\", deletedId);\n int affectedRows = deleteQuery.executeUpdate();\n if(affectedRows != 1){\n LOG.debug(\"Deletion of {}[{}] did not affect just 1 row: {}\", persistentType, deletedId, affectedRows);\n }\n // No result expected from this operation\n return Nary.empty();\n }",
"public void delete() throws EntityPersistenceException {\n\n }",
"public boolean deleteTransaction(User user, long transactionId) {\n Optional<Transaction> optional = transactionDAO.findById(user, transactionId);\n if(optional.isPresent()) {\n Transaction transaction = optional.get();\n Budget budget = transaction.getBudget();\n budget.setActual(budget.getActual() - transaction.getAmount());\n transactionDAO.delete(transaction);\n return true;\n }\n return false;\n }",
"private void deleteTransaction()\n {\n System.out.println(\"Delete transaction with the ID: \");\n\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());\n ctrl.deleteTransaction(id);\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n\n }",
"@Override\n\tpublic void delete(OrderStatus t) throws Exception {\n\t\tsessionFactory.getCurrentSession().delete(t);\n\t}",
"public void delete(Long id) {\n log.debug(\"Request to delete OrderTransaction : {}\", id);\n orderTransactionRepository.deleteById(id);\n }",
"@Override\n\tpublic Object delete(Map<String, Object> params) throws Exception {\n\t\treturn bankService.delete(params);\n\t}",
"@Transactional\n\t@Override\n\tpublic void delete(Prenotazione prenotazione) {\n\t\tthis.prenotazioneRepository.delete(prenotazione);\n\t\t\n\t}",
"public void delete(Contract entity) {\n\r\n\t}",
"public void delete() throws Exception\n {\n dao.delete(this);\n }",
"boolean delete(Account account);",
"@Transactional\n\t@Override\n\tpublic void deleteById(Integer id) throws Exception {\n\t\tparaderoRespository.deleteById(id);\n\t}",
"boolean delete(T entity) throws Exception;",
"void delete(T entity);",
"void delete(T entity);",
"void rollbackTransaction();",
"@Transactional\n\t@Override\n\tpublic void deleteById(Integer id) throws Exception {\n\t\tprimaryRepository.deleteById(id);\n\t}",
"public long delete(Entity entity){\r\n\t\ttry {\r\n\t\t\tthis.prepareFields(entity, true);\r\n\t\t\tString tableName = this.getTableName();\r\n\t\t\tTransferObject to = new TransferObject(\r\n\t\t\t\t\t\ttableName,\r\n\t\t\t\t\t\tprimaryKeyTos,\r\n\t\t\t\t\t\tfieldTos, \r\n\t\t\t\t\t\tTransferObject.DELETE_TYPE);\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\treturn transactStatements(to);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public void delete(T entity) throws Exception{\n\t\tem.remove(entity);\n\t}",
"void delete(int entityId);",
"void rollback(Transaction transaction);",
"@Transactional\n\t@Override\n\tpublic String delete(Detail t) {\n\t\treturn null;\n\t}",
"Boolean delete(T entity);",
"void delete(Entity entity);",
"@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}",
"int deleteByPrimaryKey(Long navigationId);",
"@Transactional\r\n public void deleteCommande(Integer theId) {\n \tcommandeDao.deleteById(theId);\r\n }",
"@Transactional\n\t@Override\n\tpublic void deleteById(Integer entityId) {\n\t\tregistroDao.deleteById(entityId);\n\t}",
"public long delete(long id) throws Exception\n\t{\n\t\tthis.updateStatus(id, SETTConstant.TransactionStatus.DELETED);\n\t\treturn id;\n\t}",
"public int delete(GenericEntity entity) throws GenericEntityException {\n SQLProcessor sqlP = new AutoCommitSQLProcessor(helperName);\n\n try {\n return deleteImpl(entity, sqlP.getConnection());\n } catch (GenericDataSourceException e) {\n sqlP.rollback();\n throw new GenericDataSourceException(\"Exception while deleting the following entity: \" + entity.toString(), e);\n } finally {\n closeSafely(entity, sqlP);\n }\n }",
"public void delete(HrJBorrowcontract entity);",
"@Override\r\n\t@Transactional\r\n\tpublic void deleteById(Long id) {\n\t\tordenRepository.deleteById(id);\r\n\t}",
"public Order delete(Order order);",
"@Test(dependsOnMethods = \"update\")\n public void delete()throws Exception{\n repository.delete(id);\n OwnerRegion delete = repository.findOne(id);\n Assert.assertNull(delete);\n }",
"@Override\n\t@Transactional\n\tpublic T delete(T entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\thibernateTemplate.delete(entity);\n\t\treturn entity;\n\t}",
"boolean deleteInstrument(T instrument) throws DaoException, InstrumentNotFoundException;",
"@Override\r\n\t@Transactional\r\n\tpublic void delete(FmtEstado fmtestado){\r\n\t\t\r\n\t}",
"int deleteByExample(PaymentTradeExample example);",
"@Override\n @LogMethod\n public void delete(long id) throws InventoryException {\n T entity = repository.getByKey(id);\n repository.delete(entity);\n }",
"@Override\r\n\tpublic void delete(T entity) throws Exception {\n\t\ttry {\r\n\t\t\tthis.getcurrentSession().delete(entity);\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"删除\" + entity.getClass().getName() + \"实例失败\", e);\r\n\t\t}\r\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteById(Integer id) throws Exception {\n\t\tdetalleCarritoRepository.deleteById(id);\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteById(int id) throws Exception {\n\t\tclienteRepository.deleteById(id);\n\t}",
"public void deleteTransaction(int id) throws SQLException {\n String sql = \"DELETE FROM LabStore.Transaction_Detail WHERE id = ?\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, id);\n preStmt.executeUpdate();\n }\n }",
"public <T> boolean delete(T entity);",
"protected void delete(Object entity) {\r\n try {\r\n entityManager.getTransaction().begin();\r\n entityManager.remove(entity);\r\n entityManager.getTransaction().commit();\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao remover Entidade \" + e.getMessage());\r\n }\r\n }",
"@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }",
"int deleteByPrimaryKey(String taxregcode);",
"public void delete(T entity) {\n\t\tsessionFactory.getCurrentSession().delete(entity);\n\t}",
"public void delete(Employee employee){\n employeeRepository.delete(employee);\n }",
"@Transactional\n\t@Override\n\tpublic boolean deleteSalesorder(SalesorderModel salesorder)\n\t\t\tthrows Exception {\n\t\treturn false;\n\t}",
"void delete(Object entity);",
"public TransactionObj removeTransaction(TransactionObj Transaction){\n\t\treturn removeTransaction(Transaction.sTransactionID);\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteById(Integer id) throws Exception {\n\t\tclienteRepository.deleteById(id);\n\t}",
"@Override\n\tpublic void delete(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.delete(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}",
"@Override\n\tpublic void delete(T entity) {\n\t\tbaseDaoImpl.delete(entity);\n\t}",
"@Override\n\tpublic void delete(T entity) {\n\t\tbaseDaoImpl.delete(entity);\n\t}",
"@Transactional\n\tpublic void delete(Long id_interesado) {\n\t\tinteresadoDao.deleteById(id_interesado);\n\t\t\n\t}",
"public T delete(T t) {\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tString query = createDelete(t);\n\t\ttry {\n\t\t\tconnection = ConnectionDB.getConnection();\n\t\t\tstatement = connection.prepareStatement(query);\n\t\t\tstatement.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, type.getName() + \"DAO:Delete \" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionDB.close(statement);\n\t\t\tConnectionDB.close(connection);\n\t\t}\n\t\treturn null;\n\t}",
"public void delete(Contract contract) {\n contract_dao.delete(contract);\n }",
"@Test\n @WithMockUser(username = \"employee\", roles = {\"EMPLOYEE\"})\n public void deleteTransactionById() throws Exception {\n\n when(transactionService.getTransactionById(99)).thenReturn(transaction);\n this.mvc.perform(delete(\"/transactions/99\").contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().is(200));\n }",
"@Override\r\n\tpublic void delete(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().delete(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}",
"@Override\r\n\tpublic void delete(int idStrumento) {\n\t\tstrumentoRepository.delete(idStrumento);\r\n\t}",
"@Override\n public void delete(Long id) throws Exception {\n\n }",
"@Transactional\n\t@Override\n\tpublic void deleteById(Integer id) throws Exception {\n\t\tpersonaRepository.deleteById(id);\n\t}",
"@Override\n @Transactional\n public void delete(long id) {\n productoDao.deleteById(id);\n }",
"@Override\n\tpublic void delete(T t) {\n\t\thibernateTemplate.delete(t);\n\t}",
"@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}",
"public boolean deleteTransaction(String uid){\n return deleteRecord(getID(uid));\n\t}",
"public void deleteEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}",
"public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}",
"@Override\r\n\t@Transactional\r\n\tpublic Result deleteEntity(UacUser t) {\n\t\tResult result = new Result();\r\n\t\tt = userDao.getEntity(UacUser.class, t.getId());\r\n\t\tif(t!=null){\r\n\t\t\tuserDao.deleteEntity(t);\r\n\t\t\tresult.setRetCode(0);\r\n\t\t\tresult.setRetMsg(true);\r\n\t\t\tresult.setRetData(1);\r\n\t\t}else{\r\n\t\t\tresult.setRetCode(1001);\r\n\t\t\tresult.setRetMsg(false);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Override\n\tpublic boolean delete(int id) throws RepositoryException {\n\t\treturn false;\n\t}",
"@Override\n public E delete(final E entity) {\n LOG.info(\"[delete] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.remove(entity);\n LOG.info(\"[delete] End\");\n return entity;\n }",
"@Override\n\tpublic void delete(Audit entity) {\n\t\t\n\t}",
"@Override\n public boolean delete(String idTransaksi) {\n try {\n String query = \"DELETE FROM transaksi WHERE id = ?\";\n\n PreparedStatement ps = Koneksi().prepareStatement(query);\n ps.setString(1, idTransaksi);\n\n if (ps.executeUpdate() > 0) {\n return true;\n }\n } catch (SQLException se) {\n se.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return false;\n }",
"void deleteEntityById(Long id);",
"public void delete(E entity) {\n Session session = DAOUtils.getSession();\n Transaction trans = session.beginTransaction();\n\n session.delete(entity);\n\n trans.commit();\n }",
"public abstract void delete() throws ArchEException;",
"@Override\n\tpublic void delete(T entity) {\n\t}",
"void deleteBet(Account account, int id, BigDecimal amount) throws DAOException;",
"public void delete(IQuery query) throws SQLException;",
"@Delete({\n \"delete from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int deleteByPrimaryKey(Long id);",
"@Override\r\n\t@Transactional\r\n\tpublic void delete(Integer id) {\n\t\tdao.deleteById(id);\r\n\t\t\r\n\t}",
"@Transactional\n void remove(DataRistorante risto);"
] | [
"0.79462165",
"0.7804939",
"0.7610173",
"0.731402",
"0.70601654",
"0.6941219",
"0.69250786",
"0.68349963",
"0.68264383",
"0.66569763",
"0.66345865",
"0.6630984",
"0.66108036",
"0.65864164",
"0.65823734",
"0.6579998",
"0.6506575",
"0.6500226",
"0.64907575",
"0.6449208",
"0.64073503",
"0.6387119",
"0.6350424",
"0.6343258",
"0.63373727",
"0.63224065",
"0.630225",
"0.6292271",
"0.6273529",
"0.627218",
"0.627218",
"0.6258129",
"0.6252177",
"0.624421",
"0.62309563",
"0.62272185",
"0.62200093",
"0.6211852",
"0.6191225",
"0.61827105",
"0.61781657",
"0.61439085",
"0.61386395",
"0.61331177",
"0.6132167",
"0.61256015",
"0.6115111",
"0.61091036",
"0.6100743",
"0.6093019",
"0.6087433",
"0.6082215",
"0.6072379",
"0.6059795",
"0.6057993",
"0.6046181",
"0.6042595",
"0.604112",
"0.60410815",
"0.60256886",
"0.60227466",
"0.60223025",
"0.60184973",
"0.6015458",
"0.6014081",
"0.6010673",
"0.60105747",
"0.6010026",
"0.60071313",
"0.6002628",
"0.60023004",
"0.60023004",
"0.5998195",
"0.5985446",
"0.5981879",
"0.5981707",
"0.5978899",
"0.59776604",
"0.59768754",
"0.5976657",
"0.59743625",
"0.5971149",
"0.59680855",
"0.5967536",
"0.59674096",
"0.59586424",
"0.59561414",
"0.5956092",
"0.59556645",
"0.5951354",
"0.59492326",
"0.5949168",
"0.594172",
"0.5932737",
"0.59319174",
"0.5928941",
"0.5925943",
"0.59186864",
"0.59167254",
"0.591575"
] | 0.8003089 | 0 |
Method used to query a transaction given its id | public Transaction getById(String id) throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Transaction get(String id) throws Exception;",
"public Transaction getTransactionById(Integer id) throws MiddlewareQueryException;",
"Transaction getTransctionByTxId(String txId);",
"Transaction findTransactionById(Long id);",
"Transaction selectByPrimaryKey(Long id);",
"BusinessTransaction get(String tenantId, String id);",
"public Optional<Transaction> findTransactionById(int id);",
"public Transaction getTransactionById(int id) throws SQLException {\n String sql = \"SELECT * FROM LabStore.Transaction_Detail WHERE id = ?\";\n Transaction transaction = new Transaction();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, id);\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n transaction.setId(id);\n transaction.setUser(userDbManager.getUser(rs.getInt(\"uId\")));\n transaction.setPurchaseDetail(purchaseDetailDbManager\n .getPurchaseDetailById(rs.getInt(\"pdId\")));\n transaction.setCount(rs.getInt(\"count\"));\n transaction.setTime(rs.getTimestamp(\"time\"));\n }\n }\n }\n\n return transaction;\n }",
"@RequestMapping(value = \"/transactionservice/transaction/{transaction_id}\", method=RequestMethod.GET, produces = \"application/json\")\n\t@ResponseBody\n\tpublic Transaction getTransaction(@PathVariable long transaction_id) {\n\t\tif(transactions.size() > transaction_id) {\n\t\t\treturn transactions.get((int) transaction_id);\n\t\t} else {\n\t\t\tthrow new TransactionNotFoundException(transaction_id);\n\t\t}\n\t}",
"public Transaction getTransaction(int id){\n return accSystem.get(id);\n }",
"@GetMapping(\"/{id}\")\n\tpublic Transaction getTransactionById(@PathVariable Long id) {\n\t\tTransaction transaction = null;\n\t\t\n\t\ttry {\n\t\t\ttransaction = transactionService.getTransactionById(id);\n\t\t}\n\t\tcatch (TransactionNotFoundException e) {\n\t\t\tthrow new TransactionNotFoundException(id);\n\t\t}\n\t\tcatch (UserDoesNotOwnResourceException e) {\n\t\t\tthrow new UserDoesNotOwnResourceException();\n\t\t}\n\t\t\n\t\treturn transaction;\n\t}",
"@Override\n\tpublic Transaction findTransactionById(int id) {\n\t\treturn null;\n\t}",
"String getTransactionID();",
"Purchase retrieve(Long id) throws SQLException, DAOException;",
"public TransactionObj getTransaction(String sID){\n\t\treturn hmTransaction.get(sID);\n\t}",
"@GetMapping(\"/rest/{id}\")\n\t\tpublic @ResponseBody Optional<Transaction> findTranscationRest(@PathVariable(\"id\") Long transactionId) {\n\t\t\tUserDetails user = (UserDetails) SecurityContextHolder.getContext()\n\t\t\t\t\t.getAuthentication().getPrincipal();\n\t\t\tString username = user.getUsername();\n\t\t\tUser currentUser = userRepo.findByUsername(username);\n\t\t\tList<Transaction> transactions = traRepo.findByUser(currentUser);\n\t\t\tfor(int i = 0; i < transactions.size(); i++) {\n\t\t\t\tif(transactions.get(i).getId() == transactionId) {\n\t\t\t\t\ttransactionId = transactions.get(i).getId();\n\t\t\t\t\treturn traRepo.findById(transactionId);\n\t\t\t\t\t\n\t\t\t\t} \n\t\t\t}\n\t\t\treturn Optional.empty();\n\t\t}",
"public static void getUserTransactions(String id) {\n APICalls invocations = getRetrofitEngine().create(APICalls.class);\n Call<UserTransactionsDAO> call = invocations.getUserTransactions();\n call.enqueue(new retrofit2.Callback<UserTransactionsDAO>() {\n @Override\n public void onResponse(Call<UserTransactionsDAO> call, Response<UserTransactionsDAO> response) {\n BankCraftApplication.getInstance().getEventBus().post(new GetUserTransactionsResponseEvent(response.body()));\n }\n\n @Override\n public void onFailure(Call<UserTransactionsDAO> call, Throwable t) {\n BankCraftApplication.getInstance().getEventBus().post(new GetUserTransactionsResponseEvent(t.getMessage()));\n }\n });\n }",
"T queryForId(ID id) throws SQLException, DaoException;",
"public Transaction getTransaction(String transactionId) throws LedgerException {\n Iterator<Map.Entry<Integer, Block>> blocks = listBlocks();\n\n // Check committed Blocks\n while( blocks.hasNext() ) {\n Block block = blocks.next().getValue();\n Transaction transaction = block.getTransaction(transactionId);\n\n // Transaction was found\n if (transaction != null) {\n return transaction;\n }\n }\n\n throw new LedgerException(\"get transaction\", \"Transaction \" + transactionId + \" does not exist.\");\n }",
"java.lang.String getTxId();",
"public Transaction findTransaction(long transactionId) {\n log.trace(\"findTransaction {}\", transactionId);\n TransactionEntity entity = transactionRepository.findOne(transactionId);\n if (entity == null) {\n throw new NotFoundException(\"not found\");\n }\n\n Transaction transaction = new Transaction();\n transaction.setAmount(entity.getAmount());\n transaction.setType(entity.getType());\n if (entity.getParent() != null) {\n transaction.setParentId(entity.getParent().getId());\n }\n return transaction;\n }",
"public CustomerPurchase getById(Integer id) throws SQLException;",
"public TransactionItem find(Long id) {\n return (TransactionItem)find(TransactionItem.class, id);\n }",
"public TransactionItem get(Long id) {\n return (TransactionItem)get(TransactionItem.class, id);\n }",
"DangerMerchant selectByPrimaryKey(Integer id);",
"PaymentTrade selectByPrimaryKey(String id);",
"public void getSingleTransQuery(HashMap<String, String> params) {\n\t\tID = params.get(\"transactionID\");\n\t\tREPORT_START = params.get(\"reportStart\");\n\t\tREPORT_END = params.get(\"reportEnd\");\n\t\tEXCLUDE_ERRORS = params.get(\"excludeErrors\");\n\t\tAPI = \"stq\";\n\t}",
"@Override\n\tpublic BankTransaction retrieveTransaction(int account_id) throws BusinessException {\n\t\tBankTransaction transaction = null;\n\t\tConnection connection;\n\t\ttry {\n\t\t\tconnection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"select transaction_id, account_id, transaction_type, amount, transaction_date from dutybank.transactions where account_id=?\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\t\t\tpreparedStatement.setInt(1, account_id);\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\tif (resultSet.next()) {\n\t\t\t\ttransaction = new BankTransaction();\n\t\t\t\ttransaction.setTransactionid(resultSet.getInt(\"transaction_id\"));\n\t\t\t\ttransaction.setAccountid(resultSet.getInt(\"account_id\"));\n\t\t\t\ttransaction.setTransactiontype(resultSet.getString(\"transaction_type\"));\n\t\t\t\ttransaction.setTransactionamount(resultSet.getDouble(\"amount\"));\n\t\t\t\ttransaction.setTransactiondate(resultSet.getDate(\"transaction_date\"));\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tthrow new BusinessException(\"Some Internal Error Occurred!\");\n\t\t\t}\n\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tthrow new BusinessException(\"Some exception has occurred while fetching transactions\");\n\t\t}\n\t\treturn transaction;\n\t}",
"@Override\n\t\tpublic AccountTransaction findById(int id) {\n\t\t\treturn null;\n\t\t}",
"public TransactionDetailResp transaction_show(String txId) throws Exception {\n String s = main(\"transaction_show\", \"[{\\\"txid\\\":\\\"\" + txId +\"\\\"}]\");\n return JsonHelper.jsonStr2Obj(s, TransactionDetailResp.class);\n }",
"String getTransactionId();",
"String getTransactionId();",
"@Test\n public void retrieveTransactionTest() throws ApiException {\n Long loanId = null;\n Long transactionId = null;\n GetSelfLoansLoanIdTransactionsTransactionIdResponse response = api.retrieveTransaction(loanId, transactionId);\n\n // TODO: test validations\n }",
"long getTxid();",
"UUID getTransactionId();",
"public <T> PersistableDataObject<T> queryById(final Serializable id) {\n PersistableDataObject<T> retVal = txTemplate\n .execute(new TransactionCallback<PersistableDataObject<T>>() {\n @Override\n @SuppressWarnings(\"unchecked\")\n public PersistableDataObject<T> doInTransaction(\n TransactionStatus status) {\n return (PersistableDataObject<T>) getHibernateTemplate()\n .get(daoClass, id);\n }\n });\n return retVal;\n }",
"NjOrderWork2 selectByPrimaryKey(String id);",
"@GET\n @Path(\"{id}\")\n @Produces(\"application/hal+json\")\n public Response get(@PathParam(\"regNo\") String regNo, @PathParam(\"accountNo\") String accountNo, @PathParam(\"id\") String id) {\n Optional<Transaction> transaction = admin.findTransaction(regNo, accountNo, id);\n if (transaction.isPresent()) {\n CacheControl cc = new CacheControl();\n cc.setMaxAge(24 * 60 * 60);\n return Response.ok(entityBuilder.buildTransactionJson(transaction.get(), uriInfo)).cacheControl(cc).build();\n } else {\n return Response.status(Response.Status.NOT_FOUND).build();\n }\n }",
"public List<Transaction> readByTransactionId(int transactionId) throws TransactionNotFoundException {\n\t\treturn transactionDAO.selectByTransactionId(transactionId);\n\t}",
"Payment selectByPrimaryKey(Long id);",
"public Object getTransactionId() throws StandardException;",
"Account selectByPrimaryKey(String id);",
"public long getTransactionId();",
"@Override\n\tpublic Transaction read(int id) {\n\t\treturn null;\n\t}",
"AlipayInfo selectByPrimaryKey(String id);",
"R_dept_trade selectByPrimaryKey(Integer id);",
"PurchasePayment selectByPrimaryKey(Long id);",
"CmstTransfdevice selectByPrimaryKey(String objId);",
"public BookingInfoEntity getBookingById(int id, Transaction transaction) {\n BookingInfoEntity bookingInfoEntity = null;\n\n if (transaction.getPaymentMode().equalsIgnoreCase(\"UPI\") ||\n transaction.getPaymentMode().equalsIgnoreCase(\"CARD\") ) {\n Optional<BookingInfoEntity> optionalBookingInfoEntity = bookingRepository.findById(id);\n if (!optionalBookingInfoEntity.isPresent()) {\n throw new BookingIDNotFoundException(\"Invalid Booking Id\");\n } else {\n bookingInfoEntity = optionalBookingInfoEntity.get();\n transaction.setBookingId(bookingInfoEntity.getBookingId());\n\n //Call PaymentService Api\n transaction = callPaymentServiceApi(transaction);\n bookingInfoEntity.setTransactionId(transaction.getTransactionId());\n bookingInfoEntity = bookingRepository.save(bookingInfoEntity);\n try {\n \t\t\trunProducer(1, bookingInfoEntity.toString());\n \t\t} catch (InterruptedException e) {\n \t\t\te.printStackTrace(); //Internally throw 500 error\n \t\t}\n }\n } else {\n throw new InvalidPaymentModeException(\"Invalid mode of payment\");\n }\n return bookingInfoEntity;\n }",
"public Account queryById(Integer id) {\n\t\treturn accountDao.queryById(id);\n\t}",
"Transaction getCurrentTransaction();",
"public int getTransactionId() {\n return transactionId;\n }",
"public Transaction(String transactionID){\n\t\tString sql = \"SELECT * FROM mak213_bank1017.transaction \"; \n\t\tsql += \"WHERE transactionID = '\" + transactionID + \"'\"; \n\t\tSystem.out.println(sql);\n\t\tDbUtilities db = new MySqlUtilities();\n\t\ttry {\n\t\t\tResultSet rs = db.getResultSet(sql); \n\t\t\twhile(rs.next()){\n\t\t\t\tthis.transactionID = rs.getString(\"transactionID\");\n\t\t\t\tthis.accountID = rs.getString(\"accountID\");\n\t\t\t\tthis.type = rs.getString(\"type\");\n\t\t\t\tthis.amount = rs.getDouble(\"amount\");\n\t\t\t\tthis.balance = rs.getDouble(\"balance\");\n\t\t\t\tthis.transactionDate = new Date();\n\t\t\t}\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tErrorLogger.log(\"Could not retrieve transaction data\");\n\t\t\tErrorLogger.log(ex.getMessage());\n\t\t\t\n\t\t}\n\t\ttry {\n\t\t\tdb.closeDbConnection();\n\t\t} catch (SQLException e) {\n\t\t\tErrorLogger.log(\"Could not close connection\");\n\t\t\te.printStackTrace();\n\t\t} \n\n\t}",
"public Vector<TransactionItem> getTransactionItem(int transactionId)\n\t{\n\t\tVector<TransactionItem> y= new Vector<TransactionItem>(); \n\t\tVector<TransactionItem> item= new Vector<TransactionItem>(); \n\t\tConnect con=Connect.getConnection();\n\t\tcon.executeQuery(\"USE sudutmeong\");\n\t\tResultSet rs = con.executeQuery(\"SELECT * FROM TransactionItem\");\n\n\t\ttry {\n\n\t\t\twhile(rs.next()) {\n\t\t\t\tTransactionItem x=new TransactionItem();\n\t\t\t\tx.setTransactionId(rs.getInt(\"TransactionId\"));\n\t\t\t\tx.setProductId(rs.getInt(\"productId\"));\n\t\t\t\tx.setQuantity(rs.getInt(\"quantity\"));\n\t\t\t\ty.add(x);\n\n\t\t\t}\n\t\t\n\t\t\tfor(int i=0;i<y.size();i++)\n\t\t\t{\n\t\t\t\tint id=y.get(i).getTransactionId();\n\t\t\t\tif(id==transactionId)\n\t\t\t\t{\n\t\t\t\t\tTransactionItem x=new TransactionItem();\n\t\t\t\t\tx.setTransactionId(y.get(i).getTransactionId());\n\t\t\t\t\tx.setProductId(y.get(i).getProductId());\n\t\t\t\t\tx.setQuantity(y.get(i).getQuantity());\n\t\t\t\t\titem.add(x);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn item;\n\t}",
"@Override\r\n\tpublic Transaction getTran(int tranNo) throws Exception {\n\t\treturn tranDao.selectTran(tranNo);\r\n\t}",
"public String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n return transactionId;\n }",
"public Set<Transaction> getTransactionsByLotId(Integer id) throws MiddlewareQueryException;",
"public String getTransactionID() {\n\t return this.transactionID;\n\t}",
"Tourst selectByPrimaryKey(String id);",
"public String getTransactionId() {\n return this.transactionId;\n }",
"public int getTransactionID() {\r\n return transactionID;\r\n }",
"public Object queryByID(Class<?> tableClass, Serializable id) throws Exception;",
"public SsoAuthDO query(Integer id) throws DataAccessException;",
"public long getTransactionid() {\n return transactionid;\n }",
"public CleaningTransaction findByItemId(Long id);",
"BusinessRepayment selectByPrimaryKey(String id);",
"Abum selectByPrimaryKey(String id);",
"FinanceAccount selectByPrimaryKey(Integer id);",
"EtpBase selectByPrimaryKey(String id);",
"public void deleteTransactionById(int id);",
"Contract findById(int id);",
"NjProductTaticsRelation selectByPrimaryKey(String id);",
"@Override\r\n\tpublic XftPayment get(Integer id) {\n\t\treturn xftPaymentMapper.selectByPrimaryKey(id);\r\n\t}",
"CGcontractCredit selectByPrimaryKey(Integer id);",
"public String getTransactionId()\n\t{\n\t\treturn transactionId;\n\t}",
"TradeItem getTradeItem(long id);",
"Long getAmount(Integer id) throws Exception;",
"@Transactional(readOnly = true)\n public Optional<OrderTransactionDTO> findOne(Long id) {\n log.debug(\"Request to get OrderTransaction : {}\", id);\n return orderTransactionRepository.findById(id)\n .map(orderTransactionMapper::toDto);\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }",
"CusBankAccount selectByPrimaryKey(Integer id);",
"public long getTransactionID() {\r\n return transactionID;\r\n }",
"Transaction getTransaction() { \r\n return tx;\r\n }",
"public Long getTransactionId() {\n return this.transactionId;\n }",
"CartDO selectByPrimaryKey(Integer id);",
"@Override\n\tpublic MarketTransaction findMarketTransaction(int id) {\n\t\treturn null;\n\t}",
"public BankThing retrieve(String id);",
"TempletLink selectByPrimaryKey(String id);",
"IntegralExchange selectByPrimaryKey(Integer id);",
"@Override\n @LogMethod\n public T get(long id) throws InventoryException {\n \tInventoryHelper.checkPositive(id, \"id\");\n T entity = repository.getByKey(id);\n InventoryHelper.checkEntityExist(entity, id);\n return entity;\n }",
"protected String getTransactionId() {\n return transactionId;\n }",
"public List<TransactionDetails> getDetailsforInternalTransfer(String transactionId) {\n\t\tString sql=\"Select * from transaction where id=?\";\n\t\tList<TransactionDetails> list=jdbcTemplate.query(sql,new Object[] {transactionId}, new TransactionDetailMapper() );\n\t\treturn list;\n\t\t\n\t}",
"@Transactional(readOnly = true)\n DataRistorante getByID(String id);",
"public Treatment consultarTratamiento(int id){\n Treatment tratamiento = null;\n String[] campos = {\"_id\",\"fecha\",\"tipoTratamiento\",\"hora\"};\n String[] args = {Integer.toString(id)};\n Cursor c = db.query(\"tratamiento\",campos,\"_id=?\",args,null,null,null);\n if(c.moveToFirst()){\n\n do{\n tratamiento = new Treatment(c.getInt(0),c.getString(1),c.getString(2));\n tratamiento.setHora(c.getString(3));\n }while(c.moveToNext());\n\n }\n return tratamiento;\n }",
"public void queryTransactionDetail(){\n System.out.println(\"-----find transaction detail by condition-----\");\n System.out.println(\"--press enter to skip the input--\");\n String sql = \"select * from TransactionContains join Merchandise on TransactionContains.ProductID = Merchandise.ProductID where TransactionID=\";\n System.out.print(\"TransactionID: \");\n String unuse=scanner.nextLine();\n String id=scanner.nextLine();\n sql+=id;\n try {\n //System.out.println(sql);\n result = statement.executeQuery(sql);\n int cnt=0;\n while (result.next()) {\n cnt++;\n System.out.println(\"\\n=== No.\"+cnt+\" ===\");\n System.out.println(\"transaction id: \"+result.getInt(\"TransactionID\"));\n System.out.println(\"product id: \"+result.getInt(\"ProductID\"));\n System.out.println(\"product name: \"+result.getString(\"ProductName\"));\n System.out.println(\"actual price: \"+result.getDouble(\"ActualPrice\"));\n }\n System.out.println(\"Total rows: \"+cnt);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"MVoucherDTO selectByPrimaryKey(String id);",
"DataSync selectByPrimaryKey(Integer id);",
"public String getTransactionId() {\n\t\treturn transactionId;\n\t}"
] | [
"0.8080376",
"0.80371237",
"0.7682883",
"0.74950206",
"0.7388086",
"0.70403045",
"0.7011927",
"0.6927342",
"0.6915032",
"0.68868655",
"0.6763721",
"0.6683997",
"0.6680529",
"0.66607064",
"0.65631545",
"0.6552138",
"0.6523013",
"0.64996004",
"0.64631236",
"0.64603215",
"0.64203",
"0.6418568",
"0.6414735",
"0.6413394",
"0.6405641",
"0.63987976",
"0.63864034",
"0.63649654",
"0.63356525",
"0.6325633",
"0.6324133",
"0.6324133",
"0.6282967",
"0.62826514",
"0.6229303",
"0.6212825",
"0.61914116",
"0.6169444",
"0.6156987",
"0.6137253",
"0.61295986",
"0.6114739",
"0.6108952",
"0.6086395",
"0.6073653",
"0.6057315",
"0.6045609",
"0.60412335",
"0.6035765",
"0.60256255",
"0.6005704",
"0.6001843",
"0.5988886",
"0.5986248",
"0.5922835",
"0.59074295",
"0.59074295",
"0.5905337",
"0.5887598",
"0.58798903",
"0.58744544",
"0.5874139",
"0.58728784",
"0.5868188",
"0.5860604",
"0.5846574",
"0.58460337",
"0.58439445",
"0.58399266",
"0.57929283",
"0.57895523",
"0.5787763",
"0.57862437",
"0.57829654",
"0.57675153",
"0.5764719",
"0.57596093",
"0.57539654",
"0.5752608",
"0.5744168",
"0.5744168",
"0.5744073",
"0.5742146",
"0.57353616",
"0.57267797",
"0.5726548",
"0.57194674",
"0.57048947",
"0.5700491",
"0.5691994",
"0.56902975",
"0.56875956",
"0.56826437",
"0.5682563",
"0.5680321",
"0.56569684",
"0.5644165",
"0.5641789",
"0.5635019",
"0.5629733"
] | 0.8082125 | 0 |
Created by nguyenvanhien on 4/2/18. | public interface VideoApiInterface {
@GET("playlists?part=snippet&maxResults=50&key="+ Const.API_KEY+"&channelId="+Const.CHANNEL_ID_EN)
Call<ChannelInfoResult> getChannelInfoResult();
@GET("playlistItems?part=snippet&maxResults=20")
Call<PlayListItem> getListVideoPlayList(@Query("playlistId") String playlistID, @Query("key") String key);
@GET("videos")
Call<VideoStatistic> getVideoStatistic(@Query("id") String videoID,
@Query("key") String key,
@Query("part") String part);
@GET("channels?part=snippet&id="+Const.CHANNEL_ID_EN
+"&fields=items%2Fsnippet%2Fthumbnails&key="+Const.API_KEY)
Call<Channel> getChannelAvatar();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n void init() {\n }",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@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\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"@Override\n public void init() {\n\n }",
"@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\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void init() {}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void initialize() { \n }",
"@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}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"public void mo38117a() {\n }",
"private static void cajas() {\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}",
"private void init() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"private void poetries() {\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n public void initialize() {\n \n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\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 super.init();\n\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\n public void init() {\n }",
"private void strin() {\n\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"Petunia() {\r\n\t\t}",
"public void mo55254a() {\n }"
] | [
"0.6368937",
"0.62061405",
"0.6164499",
"0.6142676",
"0.6070071",
"0.6066352",
"0.6066352",
"0.6004845",
"0.59985393",
"0.59908307",
"0.59872603",
"0.5957051",
"0.5935659",
"0.5916255",
"0.59106326",
"0.5890362",
"0.58833086",
"0.5882045",
"0.58806425",
"0.58615744",
"0.5854882",
"0.58539385",
"0.58539385",
"0.5848527",
"0.58431685",
"0.5832714",
"0.5826856",
"0.5826856",
"0.5826856",
"0.5826856",
"0.5826856",
"0.5826856",
"0.58157986",
"0.58157986",
"0.58157986",
"0.58157986",
"0.58157986",
"0.5810565",
"0.5777246",
"0.57767355",
"0.57767355",
"0.5760028",
"0.5760028",
"0.5757293",
"0.5744529",
"0.5740344",
"0.57173914",
"0.5709544",
"0.5708795",
"0.57087564",
"0.57087564",
"0.57087564",
"0.570869",
"0.570869",
"0.570869",
"0.5702677",
"0.5695194",
"0.5694583",
"0.5691222",
"0.56898075",
"0.5678988",
"0.56687766",
"0.56675845",
"0.5667223",
"0.5667223",
"0.5667223",
"0.5666592",
"0.5642706",
"0.5641474",
"0.5636929",
"0.5634375",
"0.5633983",
"0.5621836",
"0.5617909",
"0.5617893",
"0.5616669",
"0.5614887",
"0.56100404",
"0.5607091",
"0.5607091",
"0.56061906",
"0.5589363",
"0.55841017",
"0.55798024",
"0.5573305",
"0.5567628",
"0.5567628",
"0.5567628",
"0.5562949",
"0.55610114",
"0.55610114",
"0.5543098",
"0.553101",
"0.5530915",
"0.5530915",
"0.5515743",
"0.551258",
"0.55037314",
"0.5503124",
"0.55022615",
"0.5502062"
] | 0.0 | -1 |
Called when onTabSelected and onTabReselcted are called to handle which fragment to launch when each tab is selected. | public void tabSelected(TabLayout.Tab tab) {
clearBackstack();
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
if (tab.getPosition() == 0) {
transaction.replace(R.id.home_page_frame_layout, HomeFragment.newInstance(user));
} else if (tab.getPosition() == 1) {
transaction.replace(R.id.home_page_frame_layout, WallsFragment.newInstance(user));
} else if (tab.getPosition() == 2) {
transaction.replace(R.id.home_page_frame_layout, ProjectsFragment.newInstance(user));
} else if (tab.getPosition() == 3) {
transaction.replace(R.id.home_page_frame_layout, UserInfoFragment.newInstance(user));
}
transaction.addToBackStack(null);
transaction.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n Fragment fragment3 = null;\n Fragment fragment1 = null;\n Fragment fragment2 = null;\n switch (tab.getPosition()) {\n case 0:\n // The first is Selected\n if(fragment1 == null) {\n fragment1 = new SelectedFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment1).commit();\n break;\n case 1:\n // The second is Search\n if(fragment2 == null){\n fragment2 = new AllFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment2).commit();\n break;\n case 2:\n // The third is My City\n if(fragment3 == null){\n fragment3 = new NearbyFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment3).commit();\n break;\n default:\n break;\n }\n }",
"@Override\n protected void onResumeFragments() {\n\n Logger.INSTANCE.LogV(\"LifeCycle\", \"Main.onResumeFragments\");\n\n super.onResumeFragments();\n mOnResumeFragmentsCalled = true;\n\n if (mHandleOpenDocError) {\n handleOpenDocError();\n mHandleOpenDocError = false;\n } else if (mHandleLastTabClosed) {\n handleLastTabClosed();\n mHandleLastTabClosed = false;\n } else if (mTabbedHostBundle != null) {\n startTabHostFragment(mTabbedHostBundle);\n mTabbedHostBundle = null;\n } else if (mNavigationDrawerView != null && mNavigationDrawerView.getMenu() != null) {\n MenuItem menuItem = null;\n if (isFirstTimeRun()) {\n mIsFirstTimeRunConsumed = false; // consumed\n menuItem = mNavigationDrawerView.getMenu().findItem(R.id.item_file_list);\n } else if (mProcessedFragmentViewId != MENU_ITEM_NONE) {\n menuItem = mNavigationDrawerView.getMenu().findItem(mProcessedFragmentViewId);\n }\n if (menuItem != null) {\n selectNavigationItem(menuItem);\n }\n }\n\n if (mReturnFromSettings) {\n mReturnFromSettings = false;\n if (mProcessedFragmentViewId == R.id.item_viewer) {\n if (PdfViewCtrlTabsManager.getInstance().getLatestViewedTabTag(this) != null) {\n startTabHostFragment(null);\n }\n }\n }\n }",
"@Override\n public void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n if (tab.getPosition() == 1) {\n HomeFragment homeFragment = (HomeFragment)getSupportFragmentManager()\n .findFragmentByTag(\"android:switcher:\"+viewPager.getId()+\":\"+tab.getPosition());\n homeFragment.init();\n }\n }",
"@Override\n public void onSelected(List<View> tabViews, int position) {\n }",
"@Override\n public void onTabSelected(TabLayout.Tab tab) {\n if (tab.getIcon() != null)\n tab.getIcon().setColorFilter(getApplicationContext().getResources().getColor(R.color.colorIconSelected), PorterDuff.Mode.SRC_IN);\n\n // set the current page position\n current_page = tab.getPosition();\n\n // if the current page is the ListMatesFragment, remove the searchView\n if(mToolbar_navig_utils!=null){\n if(current_page==2)\n mToolbar_navig_utils.getSearchView().setVisibility(View.GONE);\n else\n mToolbar_navig_utils.getSearchView().setVisibility(View.VISIBLE);\n }\n\n // refresh title toolbar (different according to the page selected)\n if(mToolbar_navig_utils !=null)\n mToolbar_navig_utils.refresh_text_toolbar();\n\n // Disable pull to refresh when mapView is displayed\n if(tab.getPosition()==0)\n swipeRefreshLayout.setEnabled(false);\n else\n swipeRefreshLayout.setEnabled(true);\n }",
"@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\r\n\t\t// on tab selected\r\n\t\t// showing respected fragment view at view pager\r\n\t\tviewPager.setCurrentItem(tab.getPosition());\r\n\t}",
"@Override\n public void onTabChanged(String tabId) {\n FragmentManager fragmentManager = TabMainActivity.this.getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n int position = fragmentTabHost.getCurrentTab();\n for (int i = 0; i < list.size(); i++) {\n if (position == i) {\n transaction.show(list.get(i));\n } else {\n transaction.hide(list.get(i));\n }\n }\n transaction.commit();\n//\t viewPage.setCurrentItem(position);\n }",
"@Override\n\tpublic void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n\t\tmCurrentTabPosition = tab.getPosition();\n\n\t\tif (mCurrentTabPosition == 1) {\n\t\t\tmFavoriteFragment = mSectionsPagerAdapter.getItem(tab.getPosition());\n\t\t\tfragmentTransaction.attach(mFavoriteFragment);\n\n\t\t\tif (mFavoriteFragment.getView() != null) {\n\t\t\t\t((ListView) mFavoriteFragment.getView().findViewById(android.R.id.list)).setAdapter(createSentenceArrayAdapter(mFavoriteFragment.getActivity().getBaseContext(), mTempFavoriteList));\n\t\t\t}\n\n\t\t\tif (mOptionsMenu != null) {\n\t\t\t\tinvalidateOptionsMenu();\n\t\t\t\tgetMenuInflater().inflate(R.menu.menu_sentence_favorite, mOptionsMenu);\n\t\t\t}\n\t\t} else if (mCurrentTabPosition == 0) {\n\t\t\tmSentenceFragment = mSectionsPagerAdapter.getItem(tab.getPosition());\n\t\t\tfragmentTransaction.attach(mSentenceFragment);\n\n\t\t\tif (mOptionsMenu != null) {\n\t\t\t\tinvalidateOptionsMenu();\n\t\t\t\tgetMenuInflater().inflate(R.menu.menu_sentence, mOptionsMenu);\n\t\t\t}\n\t\t}\n\n\t\tmViewPager.setCurrentItem(mCurrentTabPosition);\n\t}",
"public void onTabReselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n }",
"public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft)\n {\n // Check if the fragment is already initialized\n if (mFragment == null)\n {\n // If not, instantiate and add it to the activity\n mFragment = Fragment.instantiate(mActivity, mClass.getName());\n ft.add(android.R.id.content, mFragment, mTag);\n }\n else\n {\n // If it exists, simply attach it in order to show it\n ft.attach(mFragment);\n }\n\n if(mTag.equals(MiNoteConstants.NOTES_TAB))\n {\n createNotes(true);\n\n isNoteTabSelected = true;\n\n if(areNoteButtonCreated)\n {\n makeNoteButtonsInvisible();\n }\n }\n else if(mTag.equals(MiNoteConstants.EVENTS_TAB))\n {\n createNotes(false);\n\n isNoteTabSelected = false;\n\n if(areNoteButtonCreated)\n {\n makeNoteButtonsInvisible();\n }\n }\n }",
"@Override\n \t\t\tpublic void onTabSelected(\n \t\t\t\t\tcom.actionbarsherlock.app.ActionBar.Tab tab,\n \t\t\t\t\tandroid.support.v4.app.FragmentTransaction ft) {\n \t\t\t\tmViewPager.setCurrentItem(tab.getPosition());\n \t\t\t}",
"@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\t if (mFragment == null) {\r\n\t\t // If not, instantiate and add it to the activity\r\n\t\t mFragment = Fragment.instantiate(mActivity, mClass.getName());\r\n\t\t ft.add(android.R.id.content, mFragment, mTag);\r\n\t\t } else {\r\n\t\t // If it exists, simply attach it in order to show it\r\n\t\t ft.show(mFragment);//选择的时候,让之前隐藏的显示出来\r\n\t\t }\r\n\r\n\t}",
"@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\r\n\t\tviewPager.setCurrentItem(tab.getPosition());\r\n\r\n\t}",
"@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\n\t\tmAdapter.notifyDataSetChanged();\n\t\tviewPager.setCurrentItem(tab.getPosition());\n\t\n\t}",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n }",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n viewPager.setCurrentItem(tab.getPosition());\n }",
"void onMainFragmentSelectListner(View view);",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }",
"@Override\r\n public void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\r\n }",
"public void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t // Check if the fragment is already initialized\n\t \tmActivity.invalidateOptionsMenu();\n\t if (mFragment == null) {\n\t // If not, instantiate and add it to the activity\n\t mFragment = Fragment.instantiate(mActivity, mClass.getName());\n\t ft.add(android.R.id.content, mFragment, mTag);\n\t } else {\n\t // If it exists, simply attach it in order to show it\n\t ft.attach(mFragment);\n\t }\n\t }",
"@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n\t}",
"@Override\n public void onTabSelected(TabLayout.Tab tab) {\n mViewPager.setCurrentItem(tabLayout.getSelectedTabPosition());\n }",
"@Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }",
"@Override\r\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\r\n\t}",
"@Override\n public void onTabSelected(ActionBar.Tab tab,\n FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }",
"@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tvp.setCurrentItem(tab.getPosition());\n\t}",
"@Override\n\tpublic void onPageSelected(int position) {\n\t\tselectTab(position);\n\t}",
"public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) {\n }",
"@Override\n\t\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\t\n\t\t}",
"@Override\n public void onTabReselected(TabLayout.Tab tab) {}",
"@Override\r\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\r\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n\n if(tab.getPosition() == 2 && !jsonData.equals(\"\") && !integratedUpdated) {\n carCheckIntegratedFragment.letsEnterModifyMode();\n integratedUpdated = true;\n }\n\n if(tab.getPosition() == 1 && !jsonData.equals(\"\") && !frameUpdated) {\n carCheckFrameFragment.letsEnterModifyMode();\n frameUpdated = true;\n }\n }",
"@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction arg1) {\n\t\tviewPager.setCurrentItem(tab.getPosition());\n\n\t}",
"@Override\n\tpublic void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t\ttab.setIcon(mAppSectionsPagerAdapter.getPageIconSelected(tab.getPosition()));\n\n\t}",
"@SuppressLint(\"NewApi\") @Override\n public void onTabReselected(android.app.ActionBar.Tab tab,\n FragmentTransaction ft) {\n }",
"@Override\n public void onTabSelected(TabLayout.Tab tab) {\n\n viewPager.setCurrentItem(tab.getPosition());\n }",
"void onTabReselected(int position);",
"@Override\n public void onPageSelected(int position) {\n mViewPager.setCurrentItem(position);\n selectTab(position);\n }",
"public void launchCurrentFragment(){\n mBottomNavigationView.setSelectedItemId(mCurrentSelectedFragment);\n try {\n FragmentIntent fragmentIntent = new FragmentIntent(getFragmentClassFromId(mCurrentSelectedFragment));\n startFragment(fragmentIntent);\n\n } catch (FragmentIntent.InValidIntentException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\r\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) {\n }",
"@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}",
"@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}",
"@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}",
"@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}",
"@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}",
"@Override\n\tpublic void onTabReselected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\n\t}",
"@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tandroid.app.FragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}",
"@Override\n\tpublic void onTabReselected(Tab arg0, FragmentTransaction arg1) {\n\n\t}",
"@Override\r\n\t\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t}",
"@Override\n public void onPageSelected(int position) {\n tabHost.setSelectedNavigationItem(position);\n }",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n \tint pos = tab.getPosition();\n mViewPager.setCurrentItem(pos);\n String result = null;\n \n Log.i(TAG, \"onTabSelected: \" + pos + \"\\r\\n\");\n\n\t\tString sCmds[] = {\n\t\t \t\"/system/bin/dumpsys media.audio_policy\",\n\t\t\t\"/system/bin/dumpsys media.audio_flinger\",\n\t\t\t\"/system/bin/dumpsys audio\",\n\t\t\t\"/system/bin/cat /proc/asound/cards\",\n\t\t\t\"/system/bin/getevent /dev/input/event10\"};\n\t\n\t\tif(mRunners[pos]!=null && !mRunners[pos].isAlive()){\n\t\t\tmSectionsPagerAdapter.clearText(pos);\n\t\t\tmRunners[pos].exit();\n\t\t\tLog.i(TAG, \"Recreate the worker Thread\");\n\t\t}else\n\t\t\tLog.i(TAG, \"Create the worker Thread\");\n\t\t\n\t\tmRunners[pos] = new CmdRunner(sCmds[pos], pos);\n\t\tmRunners[pos].start();\n }",
"@Override\r\n\t\tpublic void onTabReselected(Tab tab, android.app.FragmentTransaction ft) {\n\t\t}",
"@Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }",
"public void onTabReselected(Tab tab, android.app.FragmentTransaction ft) {\n }",
"public void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t }",
"@Override\r\n\tpublic void onTabReselected(Tab arg0,\r\n\t\t\tandroid.support.v4.app.FragmentTransaction arg1) {\n\r\n\t}",
"@Override\r\n\t\t\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\r\n\t\t\t}",
"@Override\n public void onTabSelected(TabLayout.Tab tab) {\n\n this.mPager.setCurrentItem(tab.getPosition());\n }",
"public void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\t\tft.setCustomAnimations(R.animator.fragment_slide_left_enter,\n\t\t\t\t\tR.animator.fragment_slide_right_exit);\n\n\t\t\tif (mFragment == null) {\n\t\t\t\tmFragment = Fragment.instantiate(mActivity, mClass.getName(),\n\t\t\t\t\t\tmArgs);\n\t\t\t\tft.add(android.R.id.content, mFragment, mTag);\n\t\t\t} else {\n\t\t\t\tft.attach(mFragment);\n\t\t\t}\n\t\t\tmCurrentFragment = (FlingFragment) mFragment;\n\t\t}",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {\n mTabPager.setCurrentItem(tab.getPosition());\n // jumpFlag = true;\n }",
"@Override\n public void onPageSelected(int position) {\n setPage(tabLayout, position);\n }",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n \t\n \tFragment fragment;\n \t\n \tif (tab.getPosition() == 0)\n \t\tfragment = new FragmentDraw();\n \telse if (tab.getPosition() == 1)\n \t\tfragment = new FragmentPlayback();\n \telse\n \t\tthrow new NotImplementedException();\n \t\n getFragmentManager()\n \t\t.beginTransaction()\n .replace(R.id.container, fragment)\n .commit();\n }",
"@Override\n\tpublic void onTabChange() {\n\t}",
"@Override\n public void onTabChanged(LinearLayout selectedTab, int selectedIndex, int oldIndex) {\n Toast.makeText(MainActivity.this,\"Tab \"+ selectedIndex+\" Selected.\",Toast.LENGTH_SHORT).show();\n }",
"@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tft.replace(R.id.fragment_container, fragment);\n\n\t}",
"void onTabSelectionChanged(int tabIndex);",
"@Override\n public void onNavigationDrawerItemSelected(int position) {\n if(fragmentManager == null){\n fragmentManager = getFragmentManager();\n }\n JoneBaseFragment fragment;\n String fragmentTag;\n switch (position){\n case 0:\n fragmentTag = JoneMainFragment.class.getName();\n// fragment = new JoneMainFragment();\n if(fragmentManager.findFragmentByTag(fragmentTag) == null){\n fragment = new JoneMainFragment();\n }else {\n fragment = (JoneBaseFragment) fragmentManager.findFragmentByTag(fragmentTag);\n }\n break;\n case 1:\n fragmentTag = AllAppsFragment.class.getName();\n if(fragmentManager.findFragmentByTag(fragmentTag) == null){\n fragment = new AllAppsFragment();\n }else {\n fragment = (JoneBaseFragment) fragmentManager.findFragmentByTag(fragmentTag);\n }\n break;\n case 2:\n fragmentTag = DeviceInfoFragment.class.getName();\n if(fragmentManager.findFragmentByTag(fragmentTag) == null){\n fragment = new DeviceInfoFragment();\n }else {\n fragment = (JoneBaseFragment) fragmentManager.findFragmentByTag(fragmentTag);\n }\n break;\n case 3:\n fragmentTag = AboutFragment.class.getName();\n if(fragmentManager.findFragmentByTag(fragmentTag) == null){\n fragment = new AboutFragment();\n }else {\n fragment = (JoneBaseFragment) fragmentManager.findFragmentByTag(fragmentTag);\n }\n break;\n default:\n fragmentTag = PlaceholderFragment.class.getName();\n if(fragmentManager.findFragmentByTag(fragmentTag) == null){\n fragment = PlaceholderFragment.newInstance(position);\n }else {\n fragment = (JoneBaseFragment) fragmentManager.findFragmentByTag(fragmentTag);\n }\n break;\n }\n JoneBaseFragment.switchFragment(fragmentManager, R.id.container, currentFragment, fragment, fragmentTag);\n currentFragment = fragment;\n }",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\treturn;\n\t}",
"@Override\n public void onResume() {\n super.onResume();\n //atualizar Listas\n onTabSelected(getActionBar().getSelectedTab(), null);\n }",
"@Override\n public void onTabSelected(TabLayout.Tab tab) {\n super.onTabSelected(tab);\n switch(tab.getPosition())\n {\n case 0:\n searchView.setQueryHint(\"Search Devices...\");\n break;\n\n case 1:\n searchView.setQueryHint(\"Search Actions...\");\n break;\n\n// case 2:\n// searchView.setQueryHint(\"Search Alerts...\");\n// break;\n }\n }",
"@Override\r\n\t\t\tpublic void onTabChanged(String tabId) {\n\t\t\t\tFragmentManager manager = getFragmentManager();\r\n\t\t\t\tshowFragment = (ShowFragment) manager\r\n\t\t\t\t\t\t.findFragmentByTag(ShowFragment.TAG);\r\n\t\t\t\taddRecordFrag = (AddRecordFrag) manager\r\n\t\t\t\t\t\t.findFragmentByTag(AddRecordFrag.TAG);\r\n\t\t\t\tchartShowFrag = (ChartShowFrag) manager\r\n\t\t\t\t\t\t.findFragmentByTag(ChartShowFrag.TAG);\r\n\t\t\t\tfTransaction = manager.beginTransaction();\r\n\t\t\t\tif (showFragment != null) {\r\n\t\t\t\t\tfTransaction.detach(showFragment);\r\n\t\t\t\t}\r\n\t\t\t\tif (addRecordFrag != null) {\r\n\t\t\t\t\tfTransaction.detach(addRecordFrag);\r\n\t\t\t\t}\r\n\t\t\t\tif (chartShowFrag != null) {\r\n\t\t\t\t\tfTransaction.detach(chartShowFrag);\r\n\t\t\t\t}\r\n\t\t\t\tif (tabId.equalsIgnoreCase(ShowFragment.TAG)) {\r\n\t\t\t\t\tsetShow();\r\n\t\t\t\t\tcurrent = SHOW;\r\n\t\t\t\t} else if (tabId.equalsIgnoreCase(AddRecordFrag.TAG)) {\r\n\t\t\t\t\tsetAddRecord();\r\n\t\t\t\t\tcurrent = ADD;\r\n\t\t\t\t} else if (tabId.equalsIgnoreCase(ChartShowFrag.TAG)) {\r\n\t\t\t\t\tsetChartShow();\r\n\t\t\t\t\tcurrent = CHART;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tswitch (current) {\r\n\t\t\t\t\tcase SHOW:\r\n\t\t\t\t\t\tsetShow();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase ADD:\r\n\t\t\t\t\t\tsetAddRecord();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase CHART:\r\n\t\t\t\t\t\tsetChartShow();\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\tfTransaction.commit();\r\n\t\t\t}",
"@Override\r\n\tpublic void onFragmentStart() {\n\t}",
"@Override\n public void onTabSelected(Tab tab, FragmentTransaction fragmentTransaction) {\n viewPager.setCurrentItem(tab.getPosition());\n\n // If the favorites tab is selected, remove any items that have been unfavorited.\n if (tab.getPosition() == TAB_FAVORITES) {\n SectionsPagerAdapter adapter = (SectionsPagerAdapter) viewPager.getAdapter();\n TalkListFragment fragment = (TalkListFragment) adapter.getItem(TAB_FAVORITES);\n fragment.removeUnfavoritedItems();\n }\n }",
"@Override\r\n\t\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\t\tif (mFragment == null) {\r\n\t\t\t\t// If not, instantiate and add it to the activity\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putString(\"mode\", mTag);\r\n\t\t\t\tbundle.putSerializable(\"setDate\", mDate);\r\n\r\n\t\t\t\tmFragment = Fragment.instantiate(mActivity, mClass.getName(),\r\n\t\t\t\t\t\tbundle);\r\n\r\n\t\t\t\tft.add(android.R.id.content, mFragment, mTag);\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// If it exists, simply attach it in order to show it\r\n\t\t\t\tft.attach(mFragment);\r\n\t\t\t}\r\n\r\n\t\t}",
"private void applyListener(){\n mBottomNavigationView.setOnNavigationItemSelectedListener((MenuItem item) -> {\n int id = item.getItemId();\n\n for (Pair<FragmentNav, String> pair : mFragmentNavsHolder) {\n if (pair.first.getNavigationItem() == id) {\n super.loadFragment(pair, FRAME_ID);\n break;\n }\n }\n return true;\n });\n }",
"@Override\n public void onTabSelected(TabLayout.Tab tab) {\n Fragment fragment = null;\n switch (tab.getPosition()) {\n case 0:\n fragment = new FirstFragment();\n break;\n case 1:\n fragment = new SecondFragment();\n //flipCard();\n break;\n case 2:\n fragment = new ThirdFragment();\n break;\n }\n\n flipCard(fragment);\n //FragmentManager fm = getSupportFragmentManager();\n //FragmentTransaction ft = fm.beginTransaction();\n //ft.replace(R.id.simpleFrameLayout, fragment);\n //ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n //ft.commit();\n }",
"@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tft.replace(R.id.stationsFragmentContainer, this.fragment);\n\t\treturn;\n\t}",
"public void onTabSelected(Tab tab, android.app.FragmentTransaction ft) {\n FragmentTransaction sft = mActivity.getSupportFragmentManager().beginTransaction();\n // Check if the fragment is already initialized\n MainActivity.tab = tab.getPosition();\n switch (tab.getPosition()) {\n case 0:\n // My List\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"My List\" + \"</font>\"));\n break;\n \n case 1:\n // Favorites\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Favorites \" + \"</font>\"));\n break;\n \n case 2:\n // Search\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Search\" + \"</font>\"));\n break;\n\n case 3:\n // Recipes\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Recipes\" + \"</font>\"));\n break;\n\n default:\n break;\n }\n if (mFragment == null) {\n // If not, instantiate and add it to the activity\n mFragment = Fragment.instantiate(mActivity, mClass.getName());\n sft.add(mfragmentContainerId, mFragment, mTag);\n } else {\n // If it exists, simply attach it in order to show it\n sft.attach(mFragment);\n }\n sft.commit();\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(1)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[1]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(1);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public void tabSelected();",
"@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(2)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[2]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(2);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}"
] | [
"0.757194",
"0.7381795",
"0.7302053",
"0.72937596",
"0.7285902",
"0.72739327",
"0.7095124",
"0.7069965",
"0.70156854",
"0.70057577",
"0.6998301",
"0.6991818",
"0.6983568",
"0.69743854",
"0.69633716",
"0.6958157",
"0.69563264",
"0.695622",
"0.69499767",
"0.69499767",
"0.69499767",
"0.69499767",
"0.69499767",
"0.69499767",
"0.69499767",
"0.69499767",
"0.69499767",
"0.69380546",
"0.6934448",
"0.6931419",
"0.6927804",
"0.6927386",
"0.69148195",
"0.6912505",
"0.6908864",
"0.6899133",
"0.6885717",
"0.6883177",
"0.6877358",
"0.6874549",
"0.6874549",
"0.6867971",
"0.6867971",
"0.6867971",
"0.68602",
"0.6854508",
"0.68507975",
"0.68438286",
"0.6840566",
"0.68313",
"0.68291426",
"0.6823707",
"0.6817706",
"0.68095106",
"0.68095106",
"0.68095106",
"0.68095106",
"0.68095106",
"0.68025404",
"0.6788812",
"0.6788812",
"0.6788812",
"0.6788812",
"0.6788812",
"0.67774796",
"0.6776887",
"0.6771399",
"0.67534864",
"0.67528135",
"0.67525905",
"0.6727972",
"0.6723907",
"0.6715424",
"0.6712934",
"0.67035806",
"0.6699766",
"0.6683183",
"0.6681142",
"0.6658697",
"0.6632935",
"0.6612632",
"0.6598057",
"0.6592529",
"0.658854",
"0.6585794",
"0.65813357",
"0.657534",
"0.6568013",
"0.6567382",
"0.6506622",
"0.6501769",
"0.6494385",
"0.64870465",
"0.64552456",
"0.6447141",
"0.6429085",
"0.64251375",
"0.64069706",
"0.6384884",
"0.6355519"
] | 0.6769116 | 67 |
On back pressed method created to exit application instead of hitting the login page. Checks to see if there are no items in the backstack (indicitive of being back at the Home Activity). If that is the case, it exits the application. It also sets the tab selected to the Home tab if the backstack is at one. | @Override
public void onBackPressed() {
if (getSupportFragmentManager().getBackStackEntryCount() == 0) {
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
finish();
} else if (getSupportFragmentManager().getBackStackEntryCount() == 1) {
TabLayout.Tab tab = tabLayout.getTabAt(0);
tab.select();
getSupportFragmentManager().popBackStack();
} else {
getSupportFragmentManager().popBackStack();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onBackPressed() {\n\t\tIntent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n System.exit(0);\n\t}",
"@Override\n public void onBackPressed() {\n\n Intent homeIntent = new Intent(Intent.ACTION_MAIN);\n homeIntent.addCategory( Intent.CATEGORY_HOME );\n homeIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}",
"@Override\r\n\tpublic void onBackPressed(){\r\n\t\tLog.d(TAG, \"Back Button Pushed\");\r\n\t\tIntent goHomeIntent = new Intent(Intent.ACTION_MAIN);\r\n\t\tgoHomeIntent.addCategory(Intent.CATEGORY_HOME);\r\n\t\tgoHomeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\tstartActivity(goHomeIntent);\r\n\t}",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tIntent i = new Intent(getApplicationContext(), Tab.class);\n\t\tstartActivity(i);\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tIntent homeIntent = new Intent(Intent.ACTION_MAIN);\n\t\thomeIntent.addCategory(Intent.CATEGORY_HOME);\n\t\thomeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tstartActivity(homeIntent);\n\t}",
"@Override\n public void onBackPressed() {\n Intent i = new Intent(StockAdjustmentList.this, ActivityHomeScreen.class);\n startActivity(i);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n finish();\n }",
"@Override\n public void onBackPressed()\n {\n if(backButtonCount >= 1)\n {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n else\n {\n Toast.makeText(this, \"Press the back button once again to close the application.\", Toast.LENGTH_SHORT).show();\n backButtonCount++;\n }\n }",
"@Override\n public void onBackPressed() {\n \t\n \tif(this.backIndex==0)\n \t{\n \t\tif(this.presentFeatureCode.equals(\"MAINMENU\"))\n \t\t{\n \t\t\tAlertDialog.Builder adb_4=new AlertDialog.Builder(Home.this);\n \t Log.v(\"Track21\", \"Clicked1\");\n \t adb_4.setTitle(\"Exit\");\n \t Log.v(\"Track31\", \"Clicked2\");\n \t adb_4.setMessage(\"Log Out?\");\n \t adb_4.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n \t {\n \t public void onClick(DialogInterface paramDialogInterface, int paramInt)\n \t {\n \t \t Intent myIntent = new Intent(Home.this, SignIn.class);\n \t startActivity(myIntent);\n \t finish();\n \t }\n \t });\n \t adb_4.setNegativeButton(\"No\", new DialogInterface.OnClickListener()\n \t {\n \t public void onClick(DialogInterface paramDialogInterface, int paramInt)\n \t {\n \t \t /*Intent myIntent = new Intent(SetUp.this, SetUp.class);\n \t SetUp.this.startActivity(myIntent);\n \t finish();*/\n \t paramDialogInterface.dismiss();\n \t Log.v(\"backIndex in Home cancelled Going Back =\", \"\" + backIndex);\n \t }\n \t });\n \t \n \t adb_4.show();\n \t\t}\n \t\telse\n \t\t{\n\t \t\tIntent intent_=new Intent(Home.this, Home.class);\n\t \t intent_.putExtra(\"keyy\", Home.this.keyy);\n\t\t startActivity(intent_);\n\t\t finish();\n \t\t}\n \t}\n \telse\n \t{\n \t\tIntent intent_=new Intent(Home.this, Home.class);\n \t intent_.putExtra(\"keyy\", Home.this.keyy);\n \t\t\n\t startActivity(intent_);\n\t finish();\n \t}\n }",
"private void onBack() {\n\t\tIntent startMain = new Intent(Intent.ACTION_MAIN);\r\n\t\tstartMain.addCategory(Intent.CATEGORY_HOME);\r\n\t\tstartMain.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); // //FLAG_ACTIVITY_NEW_TASK\r\n\t\tstartActivity(startMain);\r\n\t}",
"@Override\n\tpublic void onBackPressed() {\n \t//Reference: http://stackoverflow.com/questions/11495188/how-to-put-application-to-background\n \t//; last accessed: 14 April 2015, answer by: JavaCoderEx\n \tIntent i = new Intent(Intent.ACTION_MAIN);\n i.addCategory(Intent.CATEGORY_HOME);\n startActivity(i); \n }",
"@Override\n public void onBackPressed(){\n Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.fragment_container);\n\n if (fragment instanceof HomeFragment || fragment instanceof UploadFragment\n || fragment instanceof ProfileFragment || fragment instanceof HistoryFragment) {\n Intent homeIntent = new Intent(Intent.ACTION_MAIN);\n homeIntent.addCategory( Intent.CATEGORY_HOME );\n homeIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n } else\n super.onBackPressed();\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t\n\t\tremoveClickList();\n\t\tfinish();\n\t}",
"@Override\n public void onBackPressed() {\n backToHome();\n }",
"public void Exit() {\r\n \tsuper.onBackPressed();\r\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(BillofLandingActivity.this, HomeActivity.class);\n startActivity(intent);\n finish();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tIntro.gubunView = 0;\n\t\tIntent i = new Intent(getApplicationContext(), Tab.class);\n\t\tstartActivity(i);\n\t\tfinish();\n\t}",
"private void backPressHandling() {\r\n FragmentManager manager = getSupportFragmentManager();\r\n if (manager.getBackStackEntryCount() <= 1) {\r\n finish();\r\n } else {\r\n manager.popBackStack();\r\n }\r\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tthis.finish();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, WorkSpace.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.putExtra(\"Close this app\", true);\n startActivity(intent);\n finish();\n }",
"@Override\n public void onBackPressed() {\n confirmExit();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tthis.finish();\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tIntent i = new Intent(WelcomeActivity.this, MainActivity.class);\r\n\t\tWelcomeActivity.this.finish();\r\n\t\tstartActivity(i);\r\n\t\tsuper.onBackPressed();\r\n\r\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tMapViewerFragment mapViewerFragment = (MapViewerFragment) getFragmentManager()\n\t\t\t\t.findFragmentByTag(\"map\");\n\t\tif (mapViewerFragment != null && mapViewerFragment.isVisible() && mapViewerFragment.onBackPressed()) {\n\t\t\treturn;\n\t\t}\n\n\t\tint backStackEntries = getFragmentManager().getBackStackEntryCount();\n\t\tif (backStackEntries == 0) {\n\t\t\tif (getLeftDrawerList().getCheckedItemPosition() == 0) {\n\t\t\t\tif (mExitToast != null && mExitToast.getView().isShown()) {\n\t\t\t\t\tfinish();\n\t\t\t\t} else {\n\t\t\t\t\tmExitToast = Toast.makeText(this, \"Press back again to exit\", Toast.LENGTH_SHORT);\n\t\t\t\t\tmExitToast.show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdisplayHome();\n\t\t\t}\n\t\t} else {\n\t\t\tsuper.onBackPressed();\n\t\t}\n\t}",
"@Override\n public void onBackPressed() {\n if (getFragmentManager().getBackStackEntryCount() == 0) {\n finish();\n } else {\n getFragmentManager().popBackStack();\n }\n }",
"@Override\r\n\tpublic void onBackPressed() {\r\n\t\tsuper.onBackPressed();\r\n\t\tlogout();\r\n\t}",
"@Override\n public void onBackPressed() {\n this.finish();\n }",
"public void goToHomePage() {\n super.onBackPressed();\n }",
"public void onExit() {\n Intent homeIntent = new Intent(Intent.ACTION_MAIN);\n homeIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n homeIntent.addCategory(Intent.CATEGORY_HOME);\n startActivity(homeIntent);\n finish();\n }",
"public static void goBack() {\n\t\tif (touchGUI.getTouchModel().getGuiModel().isDialogShown()) {\n\t\t\ttouchGUI.getTouchModel().getGuiModel().closeActiveDialog();\n\t\t} else {\n\t\t\t// else go to last view in history\n\t\t\tif (!appWidget.goBack()) {\n\t\t\t\t// if history is empty -> close app\n\t\t\t\tphoneGap.exitApp();\n\t\t\t}\n\t\t}\n\n\t\tlaf.updateUndoSaveButtons();\n\t\ttouchGUI.updateViewSizes();\n\t}",
"@Override\n public void onBackPressed() {\n showQuitDialog();\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tif (isMenuShowing) {\r\n\t\t\thideMenu();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tsuper.onBackPressed();\r\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\n\t\tnavigatetoAppointmentsListingScreen(\"false\");\n\t}",
"@Override\n public void onBackPressed() {\n if (mViewPager.getCurrentItem() == 0) {\n // If the user is currently looking at the first step, allow the system to handle the\n // Back button. This calls finish() on this activity and pops the back stack.\n moveTaskToBack(true);\n } else {\n // Otherwise, select the previous step.\n mViewPager.setCurrentItem(mViewPager.getCurrentItem() - 1);\n }\n }",
"@Override\n\t\tpublic void onBackPressed() {\n\t\t\tIntent homeScreenIntent = new Intent(ActivityDeleteDeliveryList.this, ActivityAdminHomeScreen.class);\n\t\t\thomeScreenIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\tstartActivity(homeScreenIntent);\n\t\t\tfinish();\t\t\t\t\t\n\t\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tIntent i = new Intent(this, MainActivity.class);\r\n\t\tstartActivity(i);\r\n\t}",
"@Override\n public void onBackPressed() {\n pageStack.pop();\n //Will go back to Start page if on first page\n if (pageStack.isEmpty()) {\n super.onBackPressed();\n }\n else {\n loadPage(pageStack.pop());\n }\n }",
"@Override public void onBackPressed() {\n boolean handled = container.onBackPressed();\n if (!handled) {\n finish();\n }\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\t Intent intent3=new Intent(LoginActivity.this,MainActivity.class);\n\t\t\tstartActivity(intent3);\n\t\t\t\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\n\t\tboolean exit = mPreferences.getBoolean(Key.CB_EXIT, true);\n\t\t// If no confirmation required or user pressing for second time, then\n\t\t// exit app.\n\t\tif (exit && !mExitTrue) {\n\t\t\tmExitTrue = true;\n\t\t\tmToastExit = Toast.makeText(cxt,\n\t\t\t\t\tgetResources().getString(R.string.confirm_exit_msg),\n\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\tmToastExit.show();\n\t\t\tnew Timer(\"cancelExit\").schedule(new TimerTask() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tHome.this.mExitTrue = false;\n\t\t\t\t}\n\t\t\t}, 2000);\n\t\t} else {\n\t\t\tif (mToastExit != null) {\n\t\t\t\tmToastExit.cancel();\n\t\t\t}\n\t\t\tsuper.onBackPressed();\n\t\t}\n\t}",
"@Override\n public void onBackPressed() {\n if(inRestaurantMenu||inDropDetail||inOtherFragment||inPastOrder||inProcessOrder) {\n FragmentManager fm = getSupportFragmentManager();\n for(int i = 0; i < fm.getBackStackEntryCount(); ++i) {\n fm.popBackStack();\n }\n loadHomeFragment();\n }\n else if(inPickDetail||inCompleteDetail) {\n getSupportFragmentManager().popBackStack();\n }else {\n super.onBackPressed();\n }\n\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tstartActivity(new Intent(getApplicationContext(),\tLauncher.class));\n\t}",
"public void onBackPressed() {\n\n Intent i = new Intent(Saved_Address.this, User_Profile.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}",
"public void onBackPressed() {\n // do nothing. We want to force user to stay in this activity and not drop out.\n }",
"@Override\n\tpublic void onBackPressed()\n\t{\n\t\tUtilidades.Aplicativo.minizarAplicativo(this);\n\t\t\n\t\t\n\t\t\n//\t\tIntent intent = new Intent(Intent.ACTION_MAIN);\n//\t\tintent.addCategory(Intent.CATEGORY_HOME);\n//\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n//\t\tstartActivity(intent);\n//\t\tgetApplicationContext().startActivity(intent);\n\t}",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tIntent intent = new Intent(GameModeActivity.this, MenuActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n public void onBackPressed()\n {\t\n \t//Return tu login activity\n \tif(mlv.getUsersView())\n \t\tthis.finish();\n \telse\n \t{\n \t\t//Return to users view\n \t\tmlv.activateUsersView(); \t\t\n \t}\n }",
"@Override\n\tpublic void onBackStackChanged() {\n\t\t// the root fragment is the first one\n\t\tfinal int entryCount = getSupportFragmentManager().getBackStackEntryCount();\n\t\tif(entryCount == 1){\n\t\t\tmActionBar.setTitle(R.string.app_name);\n\t\t\tmActionBar.setDisplayHomeAsUpEnabled(false);\n\t\t}else if(entryCount == 0){\n\t\t\t// no fragment in stack, so destroy the activity\n\t\t\tfinish();\n\t\t}\n\t}",
"public boolean onBackPressed(){\n if (viewPager.getCurrentItem() == 0) {\n return true;\n }else {\n //If any other tab is open, then switch to first tab\n viewPager.setCurrentItem(0);\n return false;\n }\n }",
"@Override\n public void onBackPressed() {\n\n finish();\n }",
"public void onBackPressed() {\n startActivity(new Intent(NewaccountActivity.this, MainActivity.class));\n }",
"@Override\n public void onBackPressed() {\n if (drawerLayout.isDrawerOpen(GravityCompat.START)) {\n drawerLayout.closeDrawer(GravityCompat.START);\n } else {\n //super.onBackPressed();\n //back button goes to homepage\n Intent intent = new Intent(this, HomePageActivity.class);\n startActivity(intent);\n }\n }",
"@Override\n public boolean onSupportNavigateUp() {\n super.onBackPressed();\n\n //Do this to indicate the user is not leaving the quiz, but only leaving the activity..\n //So don't submit the quiz..\n SharedPreferences.Editor e=quizPrefs.edit();\n e.putInt(\"exit\",0);\n e.apply();\n return true;\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\treturn;\n\t}",
"protected void goBack() {\r\n\t\tfinish();\r\n\t}",
"private void backToMain() {\n // https://stackoverflow.com/questions/5446565\n // Checks to see if they are still on this activity\n if (getWindow().getDecorView().getRootView().isShown()) {\n onBackPressed();\n }\n }",
"public void onBackPressed() {\n AlertDialog.Builder ald=new AlertDialog.Builder(Home.this);\r\n ald.setTitle(\"Do you want to Exit\")\r\n .setPositiveButton(\" YES \", new DialogInterface.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(DialogInterface arg0, int arg1) {\r\n Intent in=new Intent(Intent.ACTION_MAIN);\r\n in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n in.addCategory(Intent.CATEGORY_HOME);\r\n startActivity(in);\r\n }\r\n })\r\n .setNegativeButton(\" NO \", new DialogInterface.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(DialogInterface arg0, int arg1) {\r\n\r\n }\r\n });\r\n\r\n AlertDialog al=ald.create();\r\n al.show();\r\n\r\n }",
"private void configureBackButton(){\n Button backButton = (Button) findViewById(R.id.backButton);\n backButton.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view){\n //TODO add the code that erases saved login key\n\n //opens login page and closes home page stack\n startActivity(new Intent(homePage.this, MainActivity.class));\n finish();\n\n }\n });\n }",
"@Override\r\n public void onBackPressed() {\r\n \t// Handle the back button click event such that if user \r\n \t// is performing an IMCI or CCM assessment then a confirmation dialog \r\n \t// will be displayed to confirm that the user wishes to exit the \r\n \t// patient assessment\r\n \texitAssessmentDialogHandler();\r\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tnew AlertDialog.Builder(this)\n\t .setTitle(\"Exit Application\")\n\t .setMessage(\"Are you sure you want to exit?\")\n\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int which) { \n\t // continue with delete\n\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_MAIN);\n\t\t\t intent.addCategory(Intent.CATEGORY_HOME);\n\t\t\t startActivity(intent);\n\t\t\t\n\t \t\n\t }\n\t })\n\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int which) { \n\t // do nothing\n\t \t\n\t }\n\t })\n\t .show();\n\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}",
"public void GoBack()\n {\n //Open Home activity\n Intent intent = new Intent(getApplicationContext(), homeActivity.class);\n startActivity(intent);\n }",
"@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"public void onBackPressed()\n {\n hideSystemUI(activity);\n }",
"@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n finish();\n startActivity(new Intent(getApplicationContext(), MainActivity.class));\n }",
"@Override\npublic boolean onKeyDown(int keyCode, KeyEvent event) {\n //Handle the back button\n if(keyCode == KeyEvent.KEYCODE_BACK) {\n //Ask the user if they want to quit\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(R.string.quit)\n .setMessage(R.string.really_quit)\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n //Stop the activity\n Login.this.finish();\n }\n\n })\n .setNegativeButton(\"no\", null)\n .show();\n\n return true;\n }\n else {\n return super.onKeyDown(keyCode, event);\n }\n\n}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t finish();\n\t}",
"@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Closing app!\")\n .setMessage(\"Are you sure you want to exit the application?\")\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // If user chooses to quit, clear activity call stack and remove all active tasks.\n if (getIntent().getExtras() != null && getIntent().getExtras().getBoolean(\"EXIT\", false)) {\n setResult(0);\n finishAndRemoveTask();\n } else {\n finishAndRemoveTask();\n }\n }\n\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }",
"private void goBackToWelcome(){\n\t\tsetResult(RESULT_OK);\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\t\n\t\tif (arrHistory.size() != 0) {\n \tString viewName = arrHistory.get(arrHistory.size() -1);\n \tObject obj = arrHistoryObj.get(arrHistoryObj.size() -1);\n \t\n \tif (viewName.equals(\"PhotoDetailView\")) {\n \t\t((PhotoDetailView)obj).onBack();\n \t}\n \tif (viewName.equals(\"SubmitView\")) {\n \t\t((SubmitView)obj).onClose();\n \t}\n }\n\t\telse {\n\t\t\t\n\t\t\tAlertDialog.Builder dialog = new AlertDialog.Builder(this);\n\t\t\tdialog.setTitle(getResources().getString(R.string.do_you_want_to_exit_this_app));\n\t\t\tdialog.setPositiveButton(getResources().getString(R.string.NO), new DialogInterface.OnClickListener() {\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t\tdialog.cancel();\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tdialog.setNegativeButton(getResources().getString(R.string.YES), new DialogInterface.OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\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}\n\t\t\t});\n\t\t\t\n\t\t\tdialog.show();\n\n\t\t}\n\t}",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"public void onBackPressed() {\n Intent intent=new Intent(SignUpActivity.this,HomeActivity.class);\n startActivity(intent);\n overridePendingTransition(0,0);\n finish();\n }",
"@Override\n\t\tpublic boolean handleBackPressed() {\n\t\t\treturn false;\n\t\t}",
"@Override\n public void onBackPressed() {\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Do you want to exit the application?\");\n builder.setCancelable(true);\n builder.setNegativeButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n builder.setPositiveButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n AlertDialog ad = builder.create();\n ad.show();\n }",
"protected void onBackKey() {\n if (!mUi.onBackKey()) {\n WebView subwindow = mTabControl.getCurrentSubWindow();\n if (subwindow != null) {\n if (subwindow.canGoBack()) {\n subwindow.goBack();\n } else {\n dismissSubWindow(mTabControl.getCurrentTab());\n }\n } else {\n goBackOnePageOrQuit();\n }\n }\n }",
"@Override\n public void onBackPressed() {\n return;\n }",
"@Override\n public void onBackPressed() {\n return;\n }"
] | [
"0.7617004",
"0.7504795",
"0.7488055",
"0.7368004",
"0.73320085",
"0.73320085",
"0.7329668",
"0.72930014",
"0.72401655",
"0.72084224",
"0.720625",
"0.7200829",
"0.713777",
"0.7117332",
"0.711003",
"0.711003",
"0.7072678",
"0.7072433",
"0.70593417",
"0.7023776",
"0.70208484",
"0.69991904",
"0.69882566",
"0.69882566",
"0.6987894",
"0.69869554",
"0.69770753",
"0.697529",
"0.6957087",
"0.6947844",
"0.6947844",
"0.6947844",
"0.6938688",
"0.6936786",
"0.6925038",
"0.6919769",
"0.6914755",
"0.6895724",
"0.68899465",
"0.6887314",
"0.6881753",
"0.6878733",
"0.6874106",
"0.6870108",
"0.68672526",
"0.6862055",
"0.68374246",
"0.6836548",
"0.68319273",
"0.6831071",
"0.68294334",
"0.68282086",
"0.6819827",
"0.68167365",
"0.68166065",
"0.68136495",
"0.6811822",
"0.6811822",
"0.6801278",
"0.679612",
"0.6784196",
"0.67822397",
"0.67815703",
"0.6778769",
"0.67750174",
"0.6765426",
"0.675752",
"0.67519236",
"0.67470795",
"0.6745551",
"0.6742917",
"0.6738438",
"0.67379147",
"0.6736351",
"0.67114013",
"0.67097604",
"0.67080075",
"0.67080075",
"0.67080075",
"0.67080075",
"0.67080075",
"0.67080075",
"0.67080075",
"0.670731",
"0.6706774",
"0.6695482",
"0.6690186",
"0.668991",
"0.66713315",
"0.66694576",
"0.6668387",
"0.6663147",
"0.6663147",
"0.6663147",
"0.6653026",
"0.6652568",
"0.664978",
"0.66496086",
"0.6646302",
"0.6646302"
] | 0.7866581 | 0 |
Method to clear the backstack. Used to ensure fragments are not building up. Called each time a tab is changed. | private void clearBackstack() {
FragmentManager manager = getSupportFragmentManager();
if (manager.getBackStackEntryCount() > 0) {
FragmentManager.BackStackEntry first = manager.getBackStackEntryAt(0);
manager.popBackStack(first.getId(), FragmentManager.POP_BACK_STACK_INCLUSIVE);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public FragmentUtil clearBackStack() {\n if (fragmentManager.getBackStackEntryCount() > 0) {\n FragmentManager.BackStackEntry first = fragmentManager.getBackStackEntryAt(0);\n fragmentManager.popBackStack(first.getId(), FragmentManager.POP_BACK_STACK_INCLUSIVE);\n }\n return this;\n }",
"public void clearNavigationStackToRoot() {\n clearNavigationStackToPosition(mConfig.minStackSize);\n }",
"public void resetStack() {\n\t\tmCurrentViewIndex = 0;\n\t\tremoveAllViewsInLayout();\n\t\trequestLayout();\n\t}",
"public void clearHistory() {\n historyStack.clear();\n lastTransition = null;\n }",
"protected void clear() {\n \twhile (!stack.empty()) {\n \t\tstack.pop();\n \t}\n \tcurrent = 0;\n \tshow(current);\n }",
"public void clearSceneStack() {\n moduleCSM.clearSceneStack();\n }",
"@Override\n\tpublic void reset() {\n\t\tstack.clear();\n\t}",
"public void clearStack() {\n\n\t\tNode<T> current = getTopNode();\n\n\t\twhile (current != null) {\n\t\t\tpop();\n\t\t\tcurrent = current.nextNode;\n\t\t}\n\n\t\tSystem.out.println(\"\\n*****************\");\n\t\tSystem.out.println(\" STACK CLEARED!! \");\n\t\tSystem.out.println(\"*****************\");\n\t}",
"public void clear() {\n for(;topIndex > -1;topIndex--)\n stack[topIndex] = null;\n }",
"void clear() {\n stacks.clear();\n }",
"public void clear(){\n nameTab.getChildren().clear();\n tabContent.getChildren().clear();\n tabs.clear();\n }",
"@Override\n\tpublic void onBackStackChanged() {\n\t\t// the root fragment is the first one\n\t\tfinal int entryCount = getSupportFragmentManager().getBackStackEntryCount();\n\t\tif(entryCount == 1){\n\t\t\tmActionBar.setTitle(R.string.app_name);\n\t\t\tmActionBar.setDisplayHomeAsUpEnabled(false);\n\t\t}else if(entryCount == 0){\n\t\t\t// no fragment in stack, so destroy the activity\n\t\t\tfinish();\n\t\t}\n\t}",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n\t\t/*BBFaqList.clear();\n\t\tBBSplList.clear();\n\t\tLRAFaqList.clear();\n\t\tH4H6FaqList.clear();*/\n }",
"private void resetFragment() {\n\t\tFragment fragment = hMapTabs.get(mSelectedTab).get(0);\n\t\thMapTabs.get(mSelectedTab).clear();\n\t\thMapTabs.get(mSelectedTab).add(fragment);\n\t\tFragmentManager manager = getSupportFragmentManager();\n\t\tFragmentTransaction ft = manager.beginTransaction();\n\t\tft.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n\t\tft.replace(R.id.realtabcontent, fragment);\n\t\tft.commit();\n\n\t\tshouldDisplayHomeUp();\n\n\t}",
"public void clear() {\n // super.clear(); BUG: fix me\n if (tokenStack != null) {\n tokenStack.clear();\n }\n }",
"public void clear() {\n history.clear();\n position = -1;\n }",
"public void setHistoryCleared() {\n\n // If jelly bean or above.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n\n // Finish all activities on\n // the current stack.\n activity.finishAffinity();\n } else {\n activity.finish();\n }\n }",
"private void clearAllState() {\n // Clear all layout records and views\n mLayoutRecords.clear();\n removeAllViews();\n\n // Reset to the top of the grid\n resetStateForGridTop();\n\n // Clear recycler because there could be different view types now\n mRecycler.clear();\n }",
"public void popAllStacks(){\n // if top is lost then all elements are lost.\n top = null;\n }",
"public void\t\tremoveAll()\n\t{\n\t\ttab.clear();\n\t}",
"private void clearRedoStack() {\n\t\tredoStack.clear();\n\t}",
"@SubL(source = \"cycl/stacks.lisp\", position = 1928) \n public static final SubLObject clear_stack(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n _csetf_stack_struc_num(stack, ZERO_INTEGER);\n _csetf_stack_struc_elements(stack, NIL);\n return stack;\n }",
"public void clear() {\n this.top = null;\n }",
"public void clear()\r\n {\r\n // Create the tables stack and add the top level\r\n tables.clear();\r\n tables.add( new HashMap<String,T>() );\r\n \r\n // Ditto with the counts\r\n counts.clear();\r\n counts.add( 0 ); \r\n }",
"public void clearAll()\n\t{\n\t\tClearMarks();\n\t\tpop = null;\n\t\tpopSequence = null;\n\t\ti1.killRoi();\n\t\tic.removeMouseListener(this);\n\t\tic.removeKeyListener(this);\n\t\tStackWindow sw1 = new StackWindow(i1, ic);\n\t\ti1.setWindow(sw1);\n\t\tdispose();\n\t}",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n overridePendingTransition(R.anim.swipeback_stack_to_front,\n R.anim.swipeback_stack_right_out);\n viewPager.removeAllViews();\n viewPager.destroyDrawingCache();\n viewPager = null;\n\n GalleryFragment.recyclerView.getAdapter().notifyDataSetChanged();\n\n System.gc();\n\n }",
"protected void reset() {\n\t\tpush();\n\n\t\t// Clearen, en niet opnieuw aanmaken, om referenties elders\n\t\t// in het programma niet corrupt te maken !\n\t\tcurves.clear();\n\t\tselectedCurves.clear();\n\t\thooveredCurves.clear();\n\t\tselectedPoints.clear();\n\t\thooveredPoints.clear();\n\t\tselectionTool.clear();\n\t}",
"@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tgetActivity().getActionBar().removeAllTabs();\n\t\tmyContext.getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);\n\t}",
"public void clearTheStack() {\n int size = expStack.size();\n for (int i = size - 1; i >= 0; i--) {\n String str = expStack.get(i);\n if (!str.equals(\"(\")) {\n postFix.add(str);\n }\n }\n }",
"public void clearBrowsingHistory()\n {\n\t this.browseHistory = null;\n }",
"public void clearAllStacks() {\n\t\tfor (CardStack stack : cardStacks) {\n\t\t\tstack.clearCards();\n\t\t}\n\t}",
"public final void reset(){\n\t\tthis.undoStack = new GameStateStack();\n\t\tthis.redoStack = new GameStateStack();\n\t\t\n\t\tthis.currentBoard = currentRules.createBoard(currentSize);\n\t\tthis.currentRules.initBoard(currentBoard, currentInitCells, currentRandom);\n\t}",
"public void reset()\n {\n pages.clear();\n ePortfolioTitle = \"\";\n selectedPage = null;\n }",
"public final void clearScenes() {\n scenes.clear();\n activeScene = null;\n }",
"protected void clearToBack()\n {\n\tGraphics g = getGraphics();\n\tsetRenderColor(g,getBackground());\n\trenderFilledRect(g,0,0,width,height);\n }",
"public void clear() {\n mMenuItems.clear();\n mModelList.clear();\n mActionViewLayout.clear();\n }",
"protected void stackEmptyButton() {\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tstack.pop();\n \t\tif (stack.empty()) {\n \t\t\tenter();\n \t}\n \t}\n }",
"public void clearStateHistory() throws ProvisioningException {\n StateHistoryUtils.clearStateHistory(home, log);\n }",
"@Override\n\tpublic void removeAllTabs() {\n\t\t\n\t}",
"public void clear() {\n clearIntentHistory();\n mInitialNavigationType = NAVIGATION_TYPE_NONE;\n mIsOnEffectiveRedirectChain = false;\n mLastCommittedEntryIndexBeforeStartingNavigation = 0;\n mShouldNotOverrideUrlLoadingUntilNewUrlLoading = false;\n }",
"protected void clearNavigationStackToPosition(int stackPosition) {\n mStackManager.clearNavigationStackToPosition(this, mState, stackPosition);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t\n\t\tremoveClickList();\n\t\tfinish();\n\t}",
"public void Clean()\n\t{\n\t\tstorage.clear();\n\t}",
"public void reset(){\r\n \tif (blank != null){\r\n \t\tblank.clear();\r\n \t}\r\n \tif (blankNode != null){\r\n \t\tblankNode.clear();\r\n \t}\r\n }",
"@Override\n public void onBackPressed() {\n \n BaseFragment contentFragment = getContentFragment();\n if (contentFragment == null) {\n finish();\n return;\n }\n FragmentType contentFragmentType = FragmentType.getFragmentFor(contentFragment.getClass());\n while (true) {\n if (! getSupportFragmentManager().popBackStackImmediate()) {\n finish();\n return;\n }\n \n BaseFragment current = getContentFragment();\n if (current == null) {\n finish();\n return;\n }\n \n FragmentType currentFragmentType = FragmentType.getFragmentFor(current.getClass());\n if (currentFragmentType != contentFragmentType) {\n break;\n }\n }\n \n updateNavigationVisibility();\n }",
"public void deleteStack(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // if stack is present\n topOfStack=-1;\n arr=null;\n System.out.println(\"Stack deleted successfully\");\n }",
"public void reset()\r\n\t{\r\n\t\tthis.num.clear();\r\n\t\t\r\n\t\tfor (StackObserver<T> o : observers )\r\n\t\t\to.onStackReset();\r\n\t\t\r\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\n\t\tsuper.onBackPressed();\n\t\tmArrayListData.clear();\n\t\toverridePendingTransition(R.anim.pull_in_right, R.anim.push_out_left);\n\t}",
"public synchronized void reset()\n\t{\n\t\tthis.snapshots.clear();\n\t\tthis.selfPositions.clear();\n\t}",
"@Override\n public void onBackPressed() {\n\n if (getSupportFragmentManager().getBackStackEntryCount() == 0) {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n finish();\n } else if (getSupportFragmentManager().getBackStackEntryCount() == 1) {\n TabLayout.Tab tab = tabLayout.getTabAt(0);\n tab.select();\n getSupportFragmentManager().popBackStack();\n } else {\n getSupportFragmentManager().popBackStack();\n }\n }",
"public void popAll()\r\n {\n this.top = null;\r\n }",
"public void clearScreen()\n {\n showText(\"\", 150, 175);\n List objects = getObjects(null);\n if(objects != null)\n {\n removeObjects(objects);\n }\n }",
"public void clear () {\n\t\treset();\n\t}",
"public void clearChildren() {\r\n this.children = null;\r\n }",
"@Override\n public void onBackPressed() {\n pageStack.pop();\n //Will go back to Start page if on first page\n if (pageStack.isEmpty()) {\n super.onBackPressed();\n }\n else {\n loadPage(pageStack.pop());\n }\n }",
"@Override\n\tpublic void onTabChange() {\n\t\tthis.reset();\n\t}",
"@Override\n public void onBackPressed(){\n\n int count = prevFragments.size();\n if(drawerLayout.isDrawerOpen(drawerListLeft)){\n\n drawerLayout.closeDrawer(drawerListLeft);\n\n } else if(drawerLayout.isDrawerOpen(drawerListRight)){\n\n drawerLayout.closeDrawer(drawerListRight);\n\n }else if (count > 1) {\n //super.onBackPressed();\n //additional code\n int last = fragmentsVisitedName.size() - 2;\n prevFragments.pop();\n\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Fragment fragment = prevFragments.peek();\n getSupportActionBar().setTitle(fragmentsVisitedName.get(last));\n fragmentTransaction.replace(R.id.container, fragment);\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n //fragment.onResume();\n\n\n fragmentsVisitedName.remove(last + 1);\n\n }\n }",
"public void clear()\n\t\t{ while (!children.isEmpty()) remove(children.get(0)); }",
"public void reset()\n {\n \tthis.heapFiles.clear();\n }",
"private void hideBackStackFragments() {\n int entryCount = mFragmentManager.getBackStackEntryCount();\n FragmentTransaction ft = mFragmentManager.beginTransaction();\n for (int i = 0; i < entryCount; i++) {\n FragmentManager.BackStackEntry entry = mFragmentManager.getBackStackEntryAt(i);\n Fragment frag = mFragmentManager.findFragmentByTag(entry.getName());\n ft.hide(frag);\n }\n ft.commit();\n }",
"public void clear() {\n root = null;\n }",
"public void clear() {\n root = null;\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tIntro.gubunView = 0;\n\t\tIntent i = new Intent(getApplicationContext(), Tab.class);\n\t\tstartActivity(i);\n\t\tfinish();\n\t}",
"@Override\n public void onBackPressed() {\n if (getFragmentManager().getBackStackEntryCount() == 0) {\n finish();\n } else {\n getFragmentManager().popBackStack();\n }\n }",
"void clearHistoryData();",
"public void popAll() {\n\n top = null;\n }",
"public void clearChildFrames();",
"public static void reset() {\n parentNameToBlockStubs.clear();\n parentNameToParentBlocks.clear();\n }",
"protected void emptyHistory() {\n //点击单聊右上角的小人图标进入好友详情,在ChatFragment(子类)中重写\n }",
"private static void clear() {\n Context context = Leanplum.getContext();\n if (context != null) {\n SharedPreferences.Editor editor = context.getSharedPreferences(\n \"__leanplum__\", Context.MODE_PRIVATE).edit();\n if (editor != null) {\n editor.clear();\n editor.apply();\n }\n\n editor = context.getSharedPreferences(\"__leanplum_push__\", Context.MODE_PRIVATE).edit();\n if (editor != null) {\n editor.clear();\n editor.apply();\n }\n }\n }",
"@Override\n protected void clear(JFrame frame){\n frame.getContentPane().removeAll();\n }",
"public void clear()\n\t{\n\t\tthis.getChildren().clear();\n\t}",
"@Override\n public void onDestroy(){\n super.onDestroy();\n\n //Previous fragment has no toolbar\n// setToolbarVisibility(false);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\tif (!onLargeScreen) {\n\t\t\tFragment lessonFragment = (Fragment) fm\n\t\t\t\t\t.findFragmentById(R.id.fragmentContainer);\n\t\t\tif (lessonFragment != null) {\n\t\t\t\tfm.beginTransaction().remove(lessonFragment).commit();\n\t\t\t}\n\t\t\tfinish();\n\t\t} else {\n\t\t\t// on large screen,\n\t\t\t// if lessonFragment showing first press of back button will remove the\n\t\t\t// fragment\n\t\t\t// the next press will finish activity\n\t\t\tfm.popBackStackImmediate();\n\t\t\tif (fm.getBackStackEntryCount() == 0) {\n\t\t\t\tfinish();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// still going so lessonListFragment still exists, turn off high light\n\t\t\tlessonListFragment.turnOffSelectedHightlight();\n\t\t}\n\t}",
"public void removeAllTabs() {\n\t\tmTabLayout.removeAllViews();\n\t\tif (mTabSpinner != null) {\n\t\t\t((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged();\n\t\t}\n\t\tif (mAllowCollapse) {\n\t\t\trequestLayout();\n\t\t}\n\t}",
"@Override\n public void onBackPressed() {\n // Do nothing\n }",
"public void reset() {\n this.state = null;\n }",
"public void closeAllScreens() {\n fragmentManager.popBackStack(null, POP_BACK_STACK_INCLUSIVE);\n screenCount = 0;\n }",
"public void clear() {\n tree.clear();\n }",
"@Override\n public void onBackPressed() {\n if(inRestaurantMenu||inDropDetail||inOtherFragment||inPastOrder||inProcessOrder) {\n FragmentManager fm = getSupportFragmentManager();\n for(int i = 0; i < fm.getBackStackEntryCount(); ++i) {\n fm.popBackStack();\n }\n loadHomeFragment();\n }\n else if(inPickDetail||inCompleteDetail) {\n getSupportFragmentManager().popBackStack();\n }else {\n super.onBackPressed();\n }\n\n }",
"public void clear() {\r\n\t\troot = null;\r\n\t\tsize = 0;\r\n\t}",
"public void clear() {\r\n\t\tremoveAll();\r\n\t\tdrawBackGround();\r\n\t\tclearEntries();\r\n\t\t\r\n\t}",
"private void backPressHandling() {\r\n FragmentManager manager = getSupportFragmentManager();\r\n if (manager.getBackStackEntryCount() <= 1) {\r\n finish();\r\n } else {\r\n manager.popBackStack();\r\n }\r\n }",
"public void erase()\n {\n this.top = null;\n }",
"public void clearPressed() {\n PresentationCtrl.getInstance().clearHistory();\n refreshPressed();\n }",
"public void clear() {\n root = null;\n size = 0;\n }",
"public void clear() {\n root = null;\n size = 0;\n }",
"public void reset() {\n this.setIndex(0);\n }",
"public void reset(){\n\t\tthis.currentIndex = 0;\n\t}",
"@Override\n public void reset() {\n setActive(false);\n if (tablePane != null) {\n tablePane.removeAll();\n }\n table = null;\n tablePane = null;\n }",
"public void clear(){\n\t\tclear(0);\n\t}",
"@Override\r\n\tpublic void reset() {\r\n\t\tpilots.clear();\r\n\t\tcabinCrew.clear();\r\n\r\n\t}",
"void clear()\n\t{\n\t\tfront = null;\n\t\tback = null;\n\t\tcursor = null;\n\t\tlength = 0;\n\t\tindex = -1;\n\t}",
"@Override\n\tpublic void clear() {\n\t\tsize = 0;\n\t\troot = null;\n\t}",
"private void clearAndHide()\n\t{\n\t\ttabbedPane.removeAll();\n\t\tcount = 0;\n\t\thide();\n\t}",
"void clearCurrent();",
"public void clear() {\n\t\tstate = null;\n\t}",
"public void onDestroy() {\n super.onDestroy();\n Bottomtabs.gps = false;\n Bottomtabs.type = \"\";\n }",
"@Override\n public void clear() {\n size = 0;\n root = null;\n }",
"public void clear() {\n\t\troot.left = null;\n\t\troot.right = null;\n\t\troot = null;\n\t\tsize = 0;\n\t}"
] | [
"0.725517",
"0.7185404",
"0.7177948",
"0.71306264",
"0.7055329",
"0.6986625",
"0.69632816",
"0.69132483",
"0.68621397",
"0.6853506",
"0.6727451",
"0.65097374",
"0.64233196",
"0.6399504",
"0.6300336",
"0.62713265",
"0.6253929",
"0.6188482",
"0.6182834",
"0.61665624",
"0.61602604",
"0.6157101",
"0.6126256",
"0.61157775",
"0.60724086",
"0.60364",
"0.5981416",
"0.5980359",
"0.5973851",
"0.5967852",
"0.59527296",
"0.5948005",
"0.5941031",
"0.593977",
"0.59270746",
"0.5922906",
"0.5921773",
"0.58954394",
"0.5892293",
"0.5886471",
"0.58744955",
"0.583264",
"0.582613",
"0.57941234",
"0.57895225",
"0.5779951",
"0.5777536",
"0.5774244",
"0.5758807",
"0.57498765",
"0.57241786",
"0.57083637",
"0.5704263",
"0.5704228",
"0.5702326",
"0.57015795",
"0.5691992",
"0.56898314",
"0.5689294",
"0.56821954",
"0.56792027",
"0.56792027",
"0.5677476",
"0.5675101",
"0.56724524",
"0.56705177",
"0.56694883",
"0.56641144",
"0.5662947",
"0.56613666",
"0.5656714",
"0.5654234",
"0.56527865",
"0.5650814",
"0.56475955",
"0.56456333",
"0.5634418",
"0.5630984",
"0.5628547",
"0.56282693",
"0.5623974",
"0.5617906",
"0.5616124",
"0.56130075",
"0.5611909",
"0.56045336",
"0.56045336",
"0.55990916",
"0.5591444",
"0.558081",
"0.55798525",
"0.55777717",
"0.5577593",
"0.55774266",
"0.55773324",
"0.5574164",
"0.5572688",
"0.5572275",
"0.5571085",
"0.55684394"
] | 0.8138909 | 0 |
Adds the menu item that holds the exit icon to the toolbar. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.activity_home_menu, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private MenuItem getJMenuItemExit() {\r\n if (jMenuItemExit == null) {\r\n jMenuItemExit = new MenuItem();\r\n //jMenuItemExit.setIcon(IconMgr.getExit());\r\n jMenuItemExit.setLabel(\"Exit\");\r\n jMenuItemExit.addActionListener(new java.awt.event.ActionListener() {\r\n\r\n public void actionPerformed(java.awt.event.ActionEvent e) {\r\n //WorkDayPlanner.getInstance().exitProgram();\r\n }\r\n });\r\n }\r\n return jMenuItemExit;\r\n }",
"private JMenuItem getExitMenuItem() {\n if (exitMenuItem == null) {\n exitMenuItem = new JMenuItem();\n exitMenuItem.setText(\"Exit\");\n exitMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }\n });\n }\n return exitMenuItem;\n }",
"@FXML\n private void exitMenuItem() {\n\n // Exit the entire application\n Platform.exit();\n }",
"private JMenuItem getExitMenuItem() {\n\t\tif (exitMenuItem == null) {\n\t\t\texitMenuItem = new JMenuItem();\n\t\t\texitMenuItem.setText(\"Exit\");\n\t\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn exitMenuItem;\n\t}",
"private JMenuItem getExitMenuItem() {\n\t\tif (exitMenuItem == null) {\n\t\t\texitMenuItem = new JMenuItem();\n\t\t\texitMenuItem.setText(\"Exit\");\n\t\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn exitMenuItem;\n\t}",
"public void exitToMenu()\n {\n exitToMenuFlag = true;\n }",
"public Exit()\n {\n super(\"Exit\");\n putValue(Action.NAME, \"Exit\");\n IconSetter iconSetter = new IconSetter(\"/config/images/exiticon.gif\");\n Icon icon = iconSetter.getIcon();\n putValue(Action.SMALL_ICON, icon);\n putValue(Action.ACCELERATOR_KEY,\n KeyStroke.getKeyStroke('Q',\n Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));\n putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_Q));\n }",
"private void addMenuItems() {\n PopupMenu popup = new PopupMenu();\n MenuItem defaultItem = new MenuItem(\"Exit\");\n \n defaultItem.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n System.out.println(\"Exiting...\");\n System.exit(0);\n }\n });\n \n popup.add(defaultItem);\n \n this.trayicon.setPopupMenu(popup);\n }",
"public Component exitButton() {\n exitButton = new JButton(\"Exit\");\n setFocusable(false);\n return exitButton;\n }",
"public void setExitMenuItem(JMenuItem exitMenuItem) {\n this.exitMenuItem = exitMenuItem;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==R.id.action_exit2){\n\t\t\tSysutil mSysUtil= new Sysutil(MainGroupActivity.this); \n mSysUtil.exit(); \n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"private void addExitMenuItem(JMenu fileMenu) {\n JMenuItem exitItem = new JMenuItem(\"Exit\");\n fileMenu.add(exitItem);\n exitItem.addActionListener(e -> System.exit(0));\n }",
"public JMenuItem getExitMenuItem() {\n return exitMenuItem;\n }",
"public ExitAction() {\n super(tr(\"Exit\"), \"exit\", tr(\"Exit the application.\"),\n Shortcut.registerShortcut(\"system:menuexit\", tr(\"Exit\"), KeyEvent.VK_Q, Shortcut.GROUP_MENU), true);\n putValue(\"help\", ht(\"/Action/Exit\"));\n }",
"private void exitItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitItemActionPerformed\n System.exit(0);\n }",
"private JMenuItem getMniExit() {\r\n\t\tif (mniExit == null) {\r\n\t\t\tmniExit = new JMenuItem();\r\n\t\t\tmniExit.setText(\"Exit\");\r\n\t\t\tmniExit.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn mniExit;\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuItem item = menu.add(0,1,0, \"exit\");\n\t\treturn true;\n\t}",
"public JMenuItem createFileExitItem(){\n\t\tJMenuItem item = new JMenuItem(\"Exit\");\n\t\tclass MenuItemListener implements ActionListener{\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tActionListener listener = new MenuItemListener();\n\t\titem.addActionListener(listener);\n\t\treturn item;\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t// check the ID of the ActionBar item the user click\n\t\tif(item.getItemId()==R.id.action_exit) {\n\t\t\t// pop up an dialog box with title, message\n\t\t\t// and two buttons\n\t\t\tnew AlertDialog.Builder(MainActivity.this)\n\t\t\t.setTitle(R.string.app_name)\n\t\t\t.setMessage(R.string.are_you_sure_you_want_to_quit_)\n\t\t\t.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// finish is to kill this current activity\n\t\t\t\t\tfinish();\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t})\n\t\t\t// null in the \n\t\t\t.setNegativeButton(R.string.cancel, null)\n\t\t\t.show();\n\t\t\t\n\t\t}\t\t\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"public JMenuItem createFileExitItem()\n {\n JMenuItem item = new JMenuItem(\"Exit\");\n class MenuItemListener implements ActionListener\n {\n public void actionPerformed(ActionEvent event)\n {\n System.exit(0);\n }\n }\n ActionListener listener = new MenuItemListener();\n item.addActionListener(listener);\n return item;\n }",
"MenuItem getMenuItemClose();",
"private JMenuItem getMiExit() {\n\t\tif (miExit == null) {\n\t\t\tmiExit = new JMenuItem();\n\t\t\tmiExit.setText(\"��k��\");\n\t\t\tmiExit.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tclose(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn miExit;\n\t}",
"public void exitMenu(){\n }",
"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 }",
"@OptionsItem(R.id.add_icon)\n void menuAddButton() {\n Intent intent = new Intent(this, FoodWizardPagerActivity.class);\n startActivity(intent);\n finish(); // kill the current activity\n }",
"public void initExitBtn(){\n FontIcon homeIcon = new FontIcon(\"fa-sign-out\");\n homeIcon.setIconSize(30);\n homeIcon.setIconColor(new Color(1,1,1,1));\n signOutBtn.setGraphic(homeIcon);\n signOutBtn.setOnMouseEntered(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n homeIcon.setIconColor(Color.web(\"#dcd7d7\"));\n }\n });\n signOutBtn.setOnMousePressed(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n homeIcon.setIconColor(Color.web(\"#a59d9d\"));\n }\n });\n signOutBtn.setOnMouseExited(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n homeIcon.setIconColor(Color.web(\"#ffffff\"));\n }\n });\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch (id) {\n case R.id.action_settings:\n break;\n case R.id.action_exit:\n exit();\n break;\n default:\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"public JButton getExitButton() {\n\t\treturn exitButton;\n\t}",
"@FXML\n void exitAddWindow() {\n drawMenuElements(false);\n window.setTitle(\"Timelines: Menu\");\n\n toggleMenuButtonVisibility(true);\n cancelTimelineButton.setVisible(false);\n cancelEventButton.setVisible(false);\n\n resetAddWindowFields();\n }",
"public ItemActionExit() {\n }",
"private BaseButton getQuitToMainMenuButton(){\n\t\tfinal BaseButton button = new MenuButton(QUIT_TO_MAIN_MENU);\n\t\tbutton.addListener(new ClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void clicked(final InputEvent event, final float x, final float y) {\n\t\t\t\tquitToMainMenu();\n\t\t\t}\n\t\t\t\n\t\t});\n\t\treturn button;\n\t}",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home: //id of back arrow set by android\n finish();\n break;\n\n default:\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"private void exitJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitJMenuItemActionPerformed\n System.exit(0);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId() == R.id.action_exit) {\n\t\t\tParkingSlotApplication.Instence().onTerminate();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t\t\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_settings) {\n\t\t\tAlertDialog.Builder build = new AlertDialog.Builder(this);\n\t\t\tbuild.setTitle(\"系统提示\").setMessage(\"确定要退出吗?\");\n\t\t\tbuild.setPositiveButton(\"确定\",\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\tProjectExit.getInstance().exit();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\tbuild.setNegativeButton(\"取消\",\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\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}\n\t\t\t\t\t}).show();\n\n\t\t}\n\t\treturn true;\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n\t\tpublic void closeMenu() {\n\t\t}",
"private void exitAction() {\n\t}",
"@Override\r\n public int getToolbarIconResId(){\r\n return android.R.drawable.ic_menu_close_clear_cancel;\r\n }",
"public void addExitActionListener(ActionListener actionListener) {\n\t\tbtnExit.addActionListener(actionListener);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_quit:\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item){\n\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == R.id.setting){\n return true;\n }\n if(id == R.id.exit){\n Intent startMain = new Intent(Intent.ACTION_MAIN);\n startMain.addCategory(Intent.CATEGORY_HOME);\n startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(startMain);\n System.exit(0);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"public void mouseClicked(MouseEvent e) {\n\t\t\tif(e.getSource()==exit){\n\t\t\t\tm.jumpTomanagerMenuUI();\t\t\t\n\t\t\t}\n\t\t\trepaint();\n\t\t}",
"private void quitJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_quitJMenuItemActionPerformed\n // TODO add your handling code here:\n System.exit(0);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"private void menu_ExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_ExitActionPerformed\n System.exit(0);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n finish();\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase MENU_PWD_BACK:\n\t\t\tbreak;\n\t\tcase MENU_HELP:\n\t\t\tbreak;\n\t\tcase MENU_EXIT:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n if (item.getItemId() == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"public void setExitButton(JButton exitButton) {\n\t\tthis.exitButton = exitButton;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.mnuMain:\n startActivity(new Intent(getApplicationContext(), MainMenuActivity.class));\n return true;\n case R.id.mnuExit:\n finish();\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_toolbar, menu);\n bedMenuItem = menu.findItem(R.id.action_log_out);\n if (name.equals(\"\") || name.equals(\"empty\"))\n this.finish();\n else{\n bedMenuItem.setTitle(\"Log out \");\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_add:\n return true;\n case R.id.action_clear:\n mViewMaster.toolbarClear();\n return true;\n case R.id.action_save:\n mViewMaster.saveDialog();\n return true;\n case android.R.id.home:\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if(item.getItemId()==android.R.id.home)\n finish();\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if(id==android.R.id.home)\n {\n quitActivity();\n return true;\n }\n if (id == R.id.action_settings) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n // finish the activity\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n // finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n\n finish();\n\n }\n\n return super.onOptionsItemSelected(item);\n }",
"private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n // finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n // finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"public ActionListener exitSelected() {\n return new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }\n };\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n } return super.onOptionsItemSelected(item); }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home)\n {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@FXML\n void exitDeleteWindow() {\n\n// lists Elements in default mode\n drawMenuElements(false);\n\n// adds all main buttons, removes confirm and cancel buttons for delete\n toggleMenuButtonVisibility(true);\n toggleDeleteButtonVisibility(false);\n\n// creates a message for the user\n setMessage(\"Exited Delete Mode without deleting elements\", false);\n window.setTitle(\"Timelines: Menu\");\n }",
"private void shopExitButtonClicked() {\n finish();\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_signout) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Are you sure you want\\n to signout?\");\n builder.setCancelable(false);\n builder.setPositiveButton(\"Sign Out\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n signOut();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n Dialog dialog = builder.create();\n dialog.show();\n\n }\n else if(id == R.id.action_exit){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Are you sure you want\\n to exit?\");\n builder.setCancelable(false);\n builder.setPositiveButton(\"Exit\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n finishAffinity();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n Dialog dialog = builder.create();\n dialog.show();\n\n }\n\n return super.onOptionsItemSelected(item);\n }",
"public void showExit();",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n\n return super.onOptionsItemSelected(item);\n }"
] | [
"0.6945937",
"0.6762034",
"0.67317474",
"0.67296064",
"0.67296064",
"0.66337794",
"0.66278005",
"0.6539365",
"0.65091217",
"0.6509024",
"0.6504939",
"0.64732844",
"0.6439851",
"0.6405807",
"0.6367855",
"0.6358021",
"0.6345205",
"0.6335289",
"0.63321805",
"0.63178647",
"0.6307877",
"0.6285516",
"0.627595",
"0.624819",
"0.62361956",
"0.6189589",
"0.6133778",
"0.61094636",
"0.60925716",
"0.60866404",
"0.6067364",
"0.60657376",
"0.6064585",
"0.6050586",
"0.60332084",
"0.6029639",
"0.6025291",
"0.5983945",
"0.59705746",
"0.5970361",
"0.5968276",
"0.5950906",
"0.5884417",
"0.5845937",
"0.5845937",
"0.5841908",
"0.58351207",
"0.5810298",
"0.580179",
"0.57999754",
"0.57896113",
"0.57849616",
"0.57849616",
"0.57843953",
"0.57843953",
"0.5780612",
"0.5780153",
"0.5780007",
"0.5779522",
"0.57721156",
"0.57693666",
"0.57495165",
"0.5747938",
"0.5747117",
"0.57470804",
"0.57440585",
"0.5743281",
"0.573992",
"0.5739767",
"0.57378936",
"0.57378936",
"0.57159775",
"0.57143384",
"0.5709843",
"0.57029194",
"0.5696813",
"0.56961477",
"0.56950486",
"0.56950486",
"0.56931686",
"0.56927586",
"0.5692475",
"0.5692475",
"0.5692475",
"0.5691294",
"0.56800455",
"0.5679982",
"0.5670472",
"0.5670305",
"0.5669421",
"0.5669421",
"0.566923",
"0.5664371",
"0.5664355",
"0.5664355",
"0.5664355",
"0.5664355",
"0.5664355",
"0.5664355",
"0.5664355",
"0.5664355"
] | 0.0 | -1 |
When the exit icon is selected, launch the login activity. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == R.id.activity_home_logout_icon) {
Intent intent = new Intent(this, LoginActivity.class);
startActivity(intent);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void run() {\n\n Intent intent = new Intent(Launcher.this, Login.class);\n startActivity(intent);\n finish();\n }",
"private void returnToLoginActivity() {\n Intent returnToLogin = new Intent(this, Login.class);\n startActivity(returnToLogin);\n finish();\n }",
"public void openActivity(){\n Intent intent = new Intent();\n if(bopenLogin)\n {\n intent = new Intent(Splashscreen.this, Login.class);\n }\n else\n {\n intent = new Intent(Splashscreen.this, MainActivity.class);\n }\n startActivity(intent);\n finish();\n }",
"@Override\n public void navigateToLogin() {\n startActivity(new Intent(this, LoginActivity.class));\n finish();\n }",
"@Override\n public void run() {\n Intent i = new Intent(activity_splash.this, login_activity.class);\n startActivity(i);\n finish();\n }",
"@Override\n public void run() {\n Intent mainIntent = new Intent(SplashActivity.this, LoginActivity.class);\n startActivity(mainIntent);\n finish();\n\n }",
"private void goLogin(){\n Intent intent = new Intent(Menu.this, MainActivity.class);\n startActivity(intent);\n }",
"private void goToLoginScreen()\n {\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n }",
"@Override\r\n public void run() {\n\r\n if(id_user.equals(\"default\")) {\r\n\r\n\r\n Intent home = new Intent(SplashScreen.this, Login.class);\r\n startActivity(home);\r\n finish();\r\n\r\n }else{\r\n Intent home = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(home);\r\n finish();\r\n }\r\n\r\n }",
"@Override\r\n public void run() {\r\n Intent i = new Intent(SplashScreen.this, TelaLogin.class);\r\n startActivity(i);\r\n finish();\r\n }",
"public void onClick(DialogInterface dialog, int which) {\n Intent newIntent = new Intent(Settingsprofile.this, LoginActivity.class);\n finishAffinity();\n startActivity(newIntent);\n }",
"private void goToLoginPage() {\n\n startActivity(new Intent(this,LoginActivity.class));\n finish();\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n switch (item.getItemId()) {\n\n case R.id.action_logout:\n Intent intent = new Intent(MainActivity.this, LoginActivity.class);\n startActivity(intent);\n finish();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n\n\n }",
"@Override\n public void run(){\n Intent homeIntent = new Intent(MainActivity.this,login_page.class);//splashes to the login page.\n startActivity(homeIntent);\n finish();\n }",
"private void takeUserToLoginScreenOnUnAuth() {\n Intent intent = new Intent(BaseActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }",
"private void SignIn() {\n startActivity(new Intent(MainActivity.this, HomeScreenActivityFragments.class));\n finish();\n }",
"@Override\n public void run() {\n\n\n\n if (login_user){\n\n startActivity(new Intent(SplashActivity.this,HomeActivity.class));\n finish();\n\n } else if (login_agent){\n startActivity(new Intent(SplashActivity.this,AgentDashboardActivity.class));\n finish();\n }else {\n startActivity(new Intent(SplashActivity.this,LangActivity.class));\n finish();\n\n }\n\n }",
"public void goLoginActivity()\n {\n Intent intent = new Intent(this, LoginActivity.class);\n this.startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n finish();\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"You have successfully logout\",\n Toast.LENGTH_LONG).show();\n SplashActivity.editor.remove(\"loginTest\");\n SplashActivity.editor.commit();\n Intent sendToLoginandRegistration = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(sendToLoginandRegistration);\n }",
"public void onLoginClick(View view) {\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n startActivity(intent);\n }",
"private void launchLogIn() {\n\t\tfinal Intent i = new Intent(this, LogInActivity.class);\n\t\tstartActivity(i);\n\t}",
"public void loginPressed(View view) {\n startActivity(new Intent(this, Login.class));\n }",
"private void Login()\n {\n Intent loginIntent = new Intent (LoginActivity.this, VVPActivity.class);\n startActivity(loginIntent);\n finish();\n }",
"protected void launchSignIn()\r\n {\r\n \tIntent i = new Intent(this, LoginActivity.class);\r\n \tstartActivity(i);\r\n }",
"@Override\n public void run() {\n Intent mainIntent = new Intent(getApplicationContext(), Login_state_checker.class);\n startActivity(mainIntent);\n finish();\n }",
"public void onLoginClickedListener(View view) {\n startActivity(new Intent(this, LoginActivity.class));\n }",
"@Override\r\n public void onLogout() {\n Intent loginIntent = new Intent(CreateAccount.this, MainActivity.class);\r\n startActivity(loginIntent);\r\n finish();\r\n }",
"@Override\n public void run() {\n if (session.isLoggedIn()) {\n Intent i = new Intent(Splash.this, MainActivity.class);\n startActivity(i);\n finish();\n }\n else if(!session.isLoggedIn()){\n Intent i = new Intent(Splash.this, RepRegistration.class);\n startActivity(i);\n finish();\n }\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n AtyMain.actionStart(AtyLoginOrRegister.this, \"\");\n //Intent intent = new Intent(this, AtyMain.class);\n //startActivity(intent);\n finish();\n }",
"@Override\n public void onClick(View view) {\n Intent loginIntent = new Intent(MainActivity.this, LoginActivity.class);\n startActivity(loginIntent);\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tstartActivity(new Intent(SplashActivity.this, LoginActivity.class));\n\t\t\t\t//redictToActivity(SplashActivity.this, MainActivity.class, null);\n\t\t\t\tfinish();\n\t\t\t}",
"public void launchLoginActivity() throws IOException {\n TokenSaver.setRemember(this,\"\");\n TokenSaver.setToken(this,\"\");\n startActivity(new Intent(this, LoginActivity.class));\n finish();\n }",
"@Override\n public void onSignInClicked() {\n Prefs.setSignedIn(true);\n // Proceed to Main and finish\n proceedToMainActivityAndFinish();\n }",
"public void returnToLogin() {\n // Ako smo kliknuli na Login, kreiramo Intent za\n // prijelaz na Login aktivnost\n Intent i = new Intent(this, LoginActivity.class);\n // U slucaju povratka na Login zelimo izbrisati \"povijest\" navigiranja,\n // tako da nas \"Back\" gumb ne vrati prethodnu aktivnost\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // Prelazimo na Login aktivnost\n startActivity(i);\n // Zavrsavamo trenutnu aktivnost i oslobadjamo resurse\n finish();\n }",
"private void goLoginSignupActivity() {\n Intent intent = new Intent(this, LoginSignupActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }",
"public void run() {\n Intent intent = new Intent(IndexActivity.this, LoginActivity.class);\n startActivity(intent);\n finish();\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case R.id.home:\r\n startActivity(new Intent(this, welcomeActivity.class));\r\n return true;\r\n case R.id.out:\r\n signOut();\r\n Toast.makeText(getApplicationContext(), \"You have signed out!\", Toast.LENGTH_SHORT).show();\r\n startActivity(new Intent(this, LoginActivity.class));\r\n return true;\r\n case R.id.back:\r\n //startActivity(new Intent(this, MainActivity.class));\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(Admin2Home.this, AdminLogin.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tAdmin2Home.this.finish();\n\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent iv = new Intent(HomeActivity.this, LoginActivity.class);\n startActivity(iv);\n overridePendingTransition(R.animator.anim_15_appear, R.animator.anim_2_fadeout);\n finish();\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case R.id.home:\r\n startActivity(new Intent(this, welcomeActivity.class));\r\n return true;\r\n case R.id.out:\r\n signOut();\r\n Toast.makeText(getApplicationContext(), \"You have signed out!\", Toast.LENGTH_SHORT).show();\r\n startActivity(new Intent(this, LoginActivity.class));\r\n return true;\r\n case R.id.back:\r\n //startActivity(new Intent(this, welcomeActivity.class));\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"private void launchLoginScreen() {\n NavGraphDirections.GotoLoginUrlGlobalAction action = gotoLoginUrlGlobalAction(authenticatorUtils.buildAuthUrl());\n\n navController.navigate(action);\n }",
"public void onClick(DialogInterface dialog, int which) {\n goToLogin();\n }",
"@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tsetResult(RC_LOGIN, null);\n\t\t\t\tfinish();\n\t\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n // Select the help event, logout event or default event.\n switch (id) {\n case R.id.action_help:\n // Display a help documentation for the login activity.\n\n // When successfully handling a menu item, return true.\n return true;\n case R.id.action_db_admin_login:\n // Initialize the intent to the login activity.\n Intent dbSimulationIntent = new Intent(this,\n BankDatabaseSimulationActivity.class);\n\n // Clear the top activities in the activity stack. We don't have to do it,\n // since we can only login as DB admin at the login activity. After login,\n // there would be only bank database simulation activity. Once the\n // simulation is finished, we can go back to the login activity.\n\n // dbSimulationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n // Redirect the bank database admin to the db simulation activity.\n startActivity(dbSimulationIntent);\n\n // When successfully handling a menu item, return true.\n return true;\n case R.id.action_logout:\n // Initialize the intent to the login activity.\n Intent loginIntent = new Intent(this, LoginActivity.class);\n\n // Clear the top activities in the task stack and loop back to login\n // activity.\n loginIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n // Redirect the user the login activity.\n startActivity(loginIntent);\n\n // When successfully handling a menu item, return true.\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public void onClick(View v) {\n LoginActivity.this.finish();\n }",
"public void onSignInPressed(View view) {\n Intent intent = new Intent(CreateAccountActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }",
"public void onSignInPressed(View view) {\n Intent intent = new Intent(CreateAccountActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }",
"@Override\n public void onClick(View v) {\n if (v.equals(findViewById(R.id.sendToLogin))) {\n startActivity(new Intent(getApplicationContext(), Login.class));\n finish();\n }\n }",
"public void returnToLogin(View view){\r\n startActivity(new Intent(SignUpActivity.this, LoginActivity.class));\r\n finish();\r\n }",
"@Override\n public void run() {\n isLoggedin = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getBoolean(\"loggedIn\",Boolean.FALSE);\n if(isLoggedin.equals(Boolean.TRUE)){\n Intent mainIntent = new Intent(Splash.this,MainActivity.class);\n Splash.this.startActivity(mainIntent);\n }\n else{\n Intent mainIntent = new Intent(Splash.this,Login.class);\n Splash.this.startActivity(mainIntent);}\n Splash.this.finish();\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tIntent intent = new Intent(getApplicationContext(),LoginActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tdissmissDilog();\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == R.id.logout) {\n Intent i = new Intent(getApplicationContext(), FingerprintActivity.class);\n startActivity(i);\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"private void toLoginActivity(){\n\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tMApplication app = (MApplication) getApplication();\n\t\tapp.addLoginAcitivity(this);\n\t}",
"@Override\n public void onClick(View arg0) {\n Intent login = new Intent(getApplicationContext(), LoginActivity.class);\n login.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(login);\n finish();\n }",
"public void onClick(View v) {\n Intent myIntent = new Intent(Start.this, Login.class);\n Start.this.startActivity(myIntent);\n }",
"private void goToLogin()\n {\n Intent intent = new Intent(getActivity(), Login_Page.class);\n getActivity().startActivity(intent);\n }",
"public void moveActivityToLogin() {\n Intent intent = new Intent(MainActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n finishWithNextActivity(LoginActivity.class);\n\n }",
"public void exit() {\n Intent intent = new Intent(this, MainActivity.class);\n this.startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent result = new Intent(ForgetActivity.this, LoginActivity.class);\n\t\t\t\tstartActivity(result);\n\t\t\t\tfinish();\n\t\t\t}",
"@Override\n public void run() {\n Intent intent = new Intent(MainActivity.this,login.class);\n startActivity(intent);\n\n }",
"public void logOut(){\n Intent intent=new Intent( getApplicationContext(), Login.class );\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity( intent );\n progressDialog.dismiss();\n finish();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(HomeScreen.this, LoginAndRegistrion.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}",
"private void openLogoutActivity() {\n Intent intent = new Intent(this, FaceDetectionActivity.class);\n intent.putExtra(\"IS_FROM_LOGIN\", false);\n startActivityForResult(intent, LOGOUT_REQUEST);\n }",
"public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}",
"@Override\n public void run() {\n\n if (isSignedUp && isLoggedIn) {\n Intent mainIntent = new Intent(Activity_Splash.this, Activity_HomePage.class);\n Activity_Splash.this.startActivity(mainIntent);\n }else{\n Intent mainIntent = new Intent(Activity_Splash.this, Activity_Login.class);\n Activity_Splash.this.startActivity(mainIntent);\n }\n Activity_Splash.this.finish();\n }",
"private void logout() {\n ((MyApplication)this.getApplication()).setLoggedIn(false);\n// Intent intent = new Intent(this, StartupActivity.class);\n// startActivity(intent);\n }",
"@Override\r\n public void run() {\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(i);\r\n finish();\r\n }",
"@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR1)\n @Override\n public void finish() {\n loginPresenter.toFinish();\n }",
"public void BackToLogin(View v){\n\t\tIntent intent = new Intent(this, MainActivity.class);\n\t\tstartActivity(intent);\n\t}",
"private void checkToLogin() {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivityForResult(intent, ConstantValue.LOG_IN_CODE);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tBaseActivityUtil.startActivity(MainActivity.this, LoginActivity.class, false);\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View view) {\n finish();\n startActivity(new Intent(RegisterActivity.this, LoginActivity.class));\n }",
"public void onClick(View view) {\n\t\t\t\t\t \t\t HashMap<String, String> twitterUser = session.getLoginType(); \n\t\t\t\t\t \t\t String loginType = twitterUser.get(SessionManager.KEY_LOGIN_TYPE);\t\t\t\t \t\t \n\t\t\t\t\t \t\t if(loginType.equalsIgnoreCase(\"facebook\")){\n\t\t\t\t\t \t\t \t // Close Registration View\n\t\t\t\t\t\t \tIntent i = new Intent(getApplicationContext(),MainActivity.class);\n\t\t\t\t\t\t\t\t startActivity(i);\n\t\t\t\t\t\t\t\t finish();\n\t\t\t\t\t \t\t }\t\n\t\t\t\t\t \t\t else{\n\t\t\t\t\t \t\t \t finish();\n\t\t\t\t\t \t\t }\t\n\t\t\t\t }",
"private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}",
"private void onMainMenuLogin() {\n Intent intent = new Intent(this, MainMenu.class);\n intent.putExtra(Constants.SHOWNOTIFICATION, isNotification);\n startActivity(intent);\n }",
"private void ToAnother() {\n\t\t\n\t\tiv_menu_icon = (ImageView)findViewById(R.id.iv_menu_icon);\n\t intent = new Intent(this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\t\n\t}",
"public void voltarLogin(View view){\n finish();\n }",
"@Override\r\n public void onClick(View v) {\n Intent i = new Intent(LoginActivty.this, SignupActivity.class);\r\n startActivity(i);\r\n finish();\r\n\r\n\r\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent result = new Intent(RegistActivity.this, LoginActivity.class);\n\t\t\t\tstartActivity(result);\n\t\t\t\tfinish();\n\t\t\t}",
"@Override\r\n\t\t public void run() {\n\t\t Intent i = new Intent(SplashScreen.this, MainMenuActivity.class);\r\n\t\t startActivity(i);\r\n\t\t \r\n\t\t //Menyelesaikan Splashscreen\r\n\t\t finish();\r\n\t\t }",
"@Override\n public void run() {\n System.out.println(\"sessionManager.isLoggedIn()\" + sessionManager.isLoggedIn());\n if (sessionManager.isLoggedIn()) {\n i = new Intent(getApplicationContext(), MainActivity.class);\n i.putExtra(\"activity\",\"Launch\");\n startActivity(i);\n } else {\n i = new Intent(getApplicationContext(), LoginActivity.class);\n i.putExtra(\"Name\",\"Launch\");\n startActivity(i);\n }\n finish();\n }",
"private void openSignIn() {\n Intent openSignInActivity = new Intent(this, SignInActivity.class);\n openSignInActivity.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(openSignInActivity);\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n FirebaseAuth.getInstance().signOut();\n startActivity(new Intent(MainActivity.this, Login.class));\n finish();\n }",
"private void redirectLoginScreen() {\n Log.d(TAG, \"redirectLoginScreen: redirecting to login screen.\");\n Intent intent = new Intent(Register.this, LogIn.class);\n startActivity(intent);\n finish();\n }",
"@Override\n public void run() {\n Intent i = new Intent(SplashScreenActivity.this, MainActivity.class);\n startActivity(i);\n finish();\n }",
"public void signInUser(){\n Intent intent = new Intent(this, AuthUiActivity.class);\n startActivity(intent);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n int id = item.getItemId();\n\n if (id == R.id.homebutton) {\n\n Intent intent = new Intent(StoreListContractsActivity.this, MainActivity.class );\n\n startActivity(intent); finish();\n\n // return true;\n }\n\n\n\n if (id == R.id.logoutbutton){\n startActivity(new Intent(this,Login.class));\n }\n\n if (id == R.id.backbutton){\n startActivity(new Intent(this,MainActivity.class));\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(CreateList.this, Login.class);\n activity.startActivity(intent);\n }",
"public void onClickExit(View view) {\n BYPASS_LOGIN = false;\n\n //finish activity\n super.finish();\n\n //close all activities\n ActivityCompat.finishAffinity(this);\n\n //log out of google play services\n super.signOut();\n }",
"private void returnLogin(){\n Intent intent = new Intent(getContext(), MainActivity.class);\n startActivity(intent);\n getFragmentManager().beginTransaction().remove(this).commit();\n }",
"@Override\n public void run() {\n startActivity(new Intent(SplashActivity.this, MainActivity3.class));\n //Close the current welcome page after the jump\n SplashActivity.this.finish();\n }",
"public void checkLogin(){\n // Check login status\n if(!this.isLoggedIn()){\n Intent i = new Intent(mContext, LoginActivity.class);\n // Closing all the Activities\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n mContext.startActivity(i);\n }\n }",
"@Override\n public void run() {\n Intent i = new Intent(Splash.this, MainActivity.class);\n startActivity(i);\n finish();\n }",
"public void logout() {\n showLoginScreen();\n }",
"public void onClick(View arg0) {\n \tloginScreen.setTextColor(Color.GRAY);\n finish();\n }",
"private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(EnterActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}",
"@OnClick(R.id.buttonLogin)\n void login()\n {\n UtilsMethods.hideSoftKeyboard(this);\n if (from.equals(Keys.FROM_FIND_JOB))\n {\n\n Intent intent = new Intent(this, LoginSignUpSeekerActivity.class);\n intent.putExtra(Keys.CLICKED_EVENT, Keys.CLICKED_EVENT_LOGIN);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }\n else\n {\n Intent intent = new Intent(this, LoginSignUpRecruiterActivity.class);\n intent.putExtra(Keys.CLICKED_EVENT, Keys.CLICKED_EVENT_LOGIN);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }\n }",
"@Override\n public void run() {\n Intent intent = new Intent(SplashScreenActivity.this, MainActivity.class);\n startActivity(intent);\n finish();\n }"
] | [
"0.729332",
"0.7255043",
"0.72144425",
"0.719292",
"0.7180867",
"0.7123712",
"0.7091007",
"0.70392394",
"0.70168537",
"0.70102507",
"0.69907796",
"0.6926743",
"0.69126844",
"0.6909514",
"0.6892081",
"0.687371",
"0.68690866",
"0.68443453",
"0.6788821",
"0.6699966",
"0.66998017",
"0.6698636",
"0.6697696",
"0.6695743",
"0.6683814",
"0.6679703",
"0.6675932",
"0.66718376",
"0.6671711",
"0.6669653",
"0.66178465",
"0.66108084",
"0.65983266",
"0.65875745",
"0.6580803",
"0.65707296",
"0.65308684",
"0.6518344",
"0.64980114",
"0.64950514",
"0.6492887",
"0.6485866",
"0.6485499",
"0.6485408",
"0.6483571",
"0.64755213",
"0.6469341",
"0.6469341",
"0.64676374",
"0.64525163",
"0.644487",
"0.64406914",
"0.6436471",
"0.6435475",
"0.6431594",
"0.6425753",
"0.64178956",
"0.6415563",
"0.64135295",
"0.6410614",
"0.63956255",
"0.6394812",
"0.63947886",
"0.63882136",
"0.63859445",
"0.6385301",
"0.6376809",
"0.6372157",
"0.6370779",
"0.6361358",
"0.63578063",
"0.6351104",
"0.63485706",
"0.6347965",
"0.63375545",
"0.63260055",
"0.6323969",
"0.6320894",
"0.63195854",
"0.63090575",
"0.6305515",
"0.63002825",
"0.63001484",
"0.6299914",
"0.6291775",
"0.62834156",
"0.6278946",
"0.62763083",
"0.62515676",
"0.62457067",
"0.62440825",
"0.624164",
"0.6230358",
"0.62244916",
"0.6224185",
"0.6216255",
"0.6214528",
"0.62121844",
"0.6210542",
"0.6206845"
] | 0.6742663 | 19 |
Create a JobBuilder with which to define a JobDetail. | public static JobBuilder newJob() {
return new JobBuilder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JobBuilder() {\r\n job = new Job();\r\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"private Builder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n super(other);\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder() {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder();\n }",
"private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }",
"private Job(com.google.protobuf.GeneratedMessage.ExtendableBuilder<cb.Careerbuilder.Job, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public static JobBuilder newJob(Class<? extends Job> jobClass) {\n JobBuilder b = new JobBuilder();\n b.ofType(jobClass);\n return b;\n }",
"private JobDetail createJobDetail(SchedulerJobEntity schedulerEntity) throws Exception {\n\n\t\tJobDetail jobDetail = null;\n\t\tJobDataMap jobDataMap = createJobDataMap(schedulerEntity.getJobName(), schedulerEntity.getInvokeParam());\n\n\t\tClass<? extends Job> cls = jobRegistry.findJobByName(schedulerEntity.getJobGroup()).orElseThrow();\n\t\t\n\t\tjobDetail = JobBuilder.newJob(cls)\n\t\t\t\t.withIdentity(schedulerEntity.getJobName(), schedulerEntity.getJobGroup()).setJobData(jobDataMap)\n\t\t\t\t.requestRecovery().build();\n\t\t\n\t\treturn jobDetail;\n\t}",
"public JobDetail build() {\n return null;\n }",
"WithCreate withProperties(JobDetails properties);",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final IJobDetail jobDetail)\n {\n final JobKey k = jobDetail.getKey ();\n if (k.getName () == null)\n throw new IllegalArgumentException (\"The given job has not yet had a name assigned to it.\");\n m_aJobKey = k;\n return this;\n }",
"JobResponse create(Context context);",
"JobResponse create();",
"private Builder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.localId)) {\n this.localId = data().deepCopy(fields()[1].schema(), other.localId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.serviceId)) {\n this.serviceId = data().deepCopy(fields()[2].schema(), other.serviceId);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.args)) {\n this.args = data().deepCopy(fields()[3].schema(), other.args);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.inputs)) {\n this.inputs = data().deepCopy(fields()[4].schema(), other.inputs);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.outputs)) {\n this.outputs = data().deepCopy(fields()[5].schema(), other.outputs);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.timestamp)) {\n this.timestamp = data().deepCopy(fields()[6].schema(), other.timestamp);\n fieldSetFlags()[6] = true;\n }\n }",
"public Job build() {\r\n return job;\r\n }",
"protected JobConf createJobConf() \n {\n return new JobConf();\n }",
"interface WithProperties {\n /**\n * Specifies the properties property: Specifies the job properties.\n *\n * @param properties Specifies the job properties.\n * @return the next definition stage.\n */\n WithCreate withProperties(JobDetails properties);\n }",
"public Trigger buildJobTrigger(JobDetail jobDetail) {\n\t\tint retriesAmount = jobDetail.getJobDataMap().getIntValue(RetryJob.AMOUNT_RETRIES_KEY);\n\t\tint delay = RetryService.INITIAL_DELAY * (int) Math.pow(RetryService.EXPONENTIAL_BASE, (retriesAmount - 1));\n\t\tDate fireDate = new Date(System.currentTimeMillis() + delay);\n\t\tlog.info(\"Building job with delay \" + delay + \" seconds \" + fireDate);\n\t\treturn TriggerBuilder.newTrigger()\n .forJob(jobDetail)\n .withIdentity(jobDetail.getKey().getName(), \"retry-email-triggers\")\n .withDescription(\"Retry Send Email Trigger\")\n .startAt(fireDate)\n .withSchedule(SimpleScheduleBuilder.simpleSchedule().withMisfireHandlingInstructionFireNow())\n .build();\n }",
"public JobBuilder ofType(Class<? extends Job> jobClazz) {\n this.jobClass = jobClazz;\n return this;\n }",
"public interface CreateUserMiniJobsSpecBuilder {\n\t\tCreateUserMiniJobsSpecBuilder setMiniJobId(\n\t\t\tString userMiniJobId, int miniJobId);\n \n\t\tCreateUserMiniJobsSpecBuilder setBaseDmgReceived(\n\t\t\tString userMiniJobId, int baseDmgReceived);\n \n\t\tCreateUserMiniJobsSpecBuilder setDurationMinutes(\n\t\t\tString userMiniJobId, int durationMinutes);\n\n\t\tCreateUserMiniJobsSpecBuilder setUserMonsterIds(\n\t\t\tString userMiniJobId, Set<String> userMonsterIds);\n \n\t\tCreateUserMiniJobsSpecBuilder setTimeStarted(\n\t\t\tString userMiniJobId, Date timeStarted);\n \n\t\tCreateUserMiniJobsSpecBuilder setTimeCompleted(\n\t\t\tString userMiniJobId, Date timeCompleted);\n }",
"interface WithConstraints {\n /**\n * Specifies constraints.\n * @param constraints Constraints associated with the Job\n * @return the next definition stage\n */\n WithCreate withConstraints(JobBasePropertiesConstraints constraints);\n }",
"@Override\n\tpublic PdiJobWrapper createJob(String jobFile, String[] args) {\n\t\ttry {\n\t\t\tLOGGER.info(\"Creating job based upon \" + jobFile);\n\t\t\tJobMeta jobMeta = new JobMeta(this.getLogWriter(), jobFile, null, null);\n\t\t\tJob job = new Job(this.getLogWriter(), this.getStepLoader(), null, jobMeta);\n\t\t\tjob.getJobMeta().setArguments(args);\n\n\t\t\t// setup internal and external variables of job\n\t\t\tjob.initializeVariablesFrom(null);\n\t\t\tjob.getJobMeta().setInternalKettleVariables(job);\n\t\t\tjob.copyParametersFrom(job.getJobMeta());\n\t\t\tjob.activateParameters();\n\t\t\treturn new PdiJob324(job);\n\t\t} catch (KettleException e) {\n\t\t\tthrow new PdiException(e);\n\t\t}\n\t}",
"JobClient createJobClient();",
"public static Job create(long jobId) {\n\t\treturn getPersistence().create(jobId);\n\t}",
"public PersonJobBuilderDFB works(){\n return new PersonJobBuilderDFB(person);\n }",
"public BNHaystackLearnStructureJob() {}",
"public JobBuilder withDescription(String jobDescription) {\n this.description = jobDescription;\n return this;\n }",
"private synchronized void createJob\n\t\t(Channel theChannel)\n\t\t{\n\t\t// Create Job Frontend proxy object for the channel.\n\t\tJobFrontendRef frontend =\n\t\t\tnew JobFrontendProxy (myChannelGroup, theChannel);\n\t\ttheChannel.info (frontend);\n\n\t\t// Create job information record.\n\t\tJobInfo jobinfo = getJobInfo (frontend);\n\n\t\t// Start lease timers.\n\t\tjobinfo.renewTimer.start\n\t\t\t(Constants.LEASE_RENEW_INTERVAL,\n\t\t\t Constants.LEASE_RENEW_INTERVAL);\n\t\tjobinfo.expireTimer.start\n\t\t\t(Constants.LEASE_EXPIRE_INTERVAL);\n\t\t}",
"public Builder(RecognitionJobOptions options) {\n callbackUrl = options.callbackUrl;\n events = options.events;\n resultsTtl = options.resultsTtl;\n userToken = options.userToken;\n }",
"public JDK8TriggerBuilder <T> forJob (final JobKey keyOfJobToFire)\n {\n m_aJobKey = keyOfJobToFire;\n return this;\n }",
"@Bean\n\tpublic JobDetailFactoryBean reminderPublicationJob(){\n\t\tJobDetailFactoryBean factory = new JobDetailFactoryBean();\n\t\tfactory.setJobClass(ReminderPublicationJob.class);\n\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\tmap.put(\"reminderServicePub\", appContext.getBean(\"reminderService\") );\n\t\tmap.put(\"adminServicePub\", appContext.getBean(\"adminService\") );\n\t\tfactory.setJobDataAsMap(map);\n\t\tfactory.setName(\"reminderPublicationJob\");\n\t\tfactory.setDurability(true);\n\t\treturn factory;\n\t}",
"@Bean\n\tpublic void jobOneDetail() throws SchedulerException {\n\t\tJobDataMap jobDataMap = new JobDataMap();\n\t\tjobDataMap.put(\"jobLauncher\", jobLauncher);\n\t\tjobDataMap.put(\"jobLocator\", jobLocator);\n\n\t\tJobDetail job = JobBuilder.newJob(SimpleJob.class).withIdentity(\"demoJobOne\").setJobData(jobDataMap)\n\t\t\t\t.storeDurably().build();\n\t\tTrigger trigger = TriggerBuilder.newTrigger().forJob(job).withIdentity(\"jobOneTrigger\")\n\t\t\t\t.withSchedule(SimpleScheduleBuilder.simpleSchedule().withIntervalInHours(5).repeatForever()).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(job, trigger);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Regular employees\n\t\t * on monthly basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Regular = new JobDataMap();\n\t\tpayrollJobParam4Regular.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Regular.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Regular.put(\"empType\", \"Regular\");\n\t\tJobDetail payrollJob4Regular = JobBuilder.newJob(PayrollCalculationJob.class).withIdentity(\"payrollJob4Regular\")\n\t\t\t\t.setJobData(payrollJobParam4Regular).storeDurably().build();\n\t\tTrigger payrollTrigger4Regular = TriggerBuilder.newTrigger().forJob(payrollJob4Regular)\n\t\t\t\t.withIdentity(\"payrollTrigger4Regular\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 1 1/1 ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Regular, payrollTrigger4Regular);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Internship\n\t\t * employees on weekly[Saturday] basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Internship = new JobDataMap();\n\t\tpayrollJobParam4Internship.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Internship.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Internship.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Internship = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Internship\").setJobData(payrollJobParam4Internship).storeDurably().build();\n\t\tTrigger payrollTrigger4Internship = TriggerBuilder.newTrigger().forJob(payrollJob4Internship)\n\t\t\t\t.withIdentity(\"payrollTrigger4Internship\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 ? * SAT *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Internship, payrollTrigger4Internship);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Contract employees\n\t\t * on daily basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Contract = new JobDataMap();\n\t\tpayrollJobParam4Contract.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Contract.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Contract.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Contract = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Contract\").setJobData(payrollJobParam4Contract).storeDurably().build();\n\t\tTrigger payrollTrigger4Contract = TriggerBuilder.newTrigger().forJob(payrollJob4Contract)\n\t\t\t\t.withIdentity(\"payrollTrigger4Contract\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 1/1 * ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Contract, payrollTrigger4Contract);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Freelancer\n\t\t * employees on hourly basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Freelancer = new JobDataMap();\n\t\tpayrollJobParam4Freelancer.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Freelancer.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Freelancer.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Freelancer = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Freelancer\").setJobData(payrollJobParam4Freelancer).storeDurably().build();\n\t\tTrigger payrollTrigger4Freelancer = TriggerBuilder.newTrigger().forJob(payrollJob4Freelancer)\n\t\t\t\t.withIdentity(\"payrollTrigger4Freelancer\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0/1 1/1 * ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Freelancer, payrollTrigger4Freelancer);\n\n\t}",
"public static JobDetails newInstance(String param1, String param2) {\n JobDetails fragment = new JobDetails();\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 }",
"interface WithCreate\n extends DefinitionStages.WithLocation,\n DefinitionStages.WithTags,\n DefinitionStages.WithProperties,\n DefinitionStages.WithClientTenantId {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n JobResponse create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n JobResponse create(Context context);\n }",
"public JobBuilder withIdentity(JobKey jobKey) {\n this.key = jobKey;\n return this;\n }",
"public Job newJob() throws IOException {\n return newJob(outputDir, getConfiguration(), attempt0);\n }",
"public JobConf createJobConf(byte id)\r\n\t\tthrows IOException\r\n\t{\r\n\t\t// preparing to create the new job, write the job conf\r\n\t\t\r\n\t\tthis.id = id;\r\n\t\t\r\n\t\tif ( this.tupleConstraint!=null)\r\n\t\t\tthis.conf.set(this.id+\".tuple.criteria\", SerializableUtil.serializeToBase64(this.tupleConstraint));\r\n\t\t\r\n\t\tStringBuffer schemaStr = new StringBuffer();\r\n\t\tIterator<String> it = this.getSchema().iterator();\r\n\t\twhile( it.hasNext() )\r\n\t\t{\r\n\t\t\tschemaStr.append(it.next());\r\n\t\t\tif( it.hasNext() )\r\n\t\t\t\tschemaStr.append(\",\");\r\n\t\t}\r\n\t\tthis.conf.set(this.id+\".schema\", schemaStr.toString());\r\n\t\t\r\n\t\t// setup computed columns, if any\r\n\t\tif( this.computedColumns!=null && this.computedColumns.size()>0 )\r\n\t\t{\r\n\t\t\tthis.conf.set(this.id+\".computed.columns\", SerializableUtil.serializeToBase64(this.computedColumns));\r\n\t\t}\r\n\t\t\r\n\t\t// setup id to name mapping\r\n\t\tString mapping = this.getID()+\";\"+this.getName();\r\n\t\t\r\n\t\tconf.set(ConfigureConstants.DATASET_ID_TO_NAME_MAPPING, mapping);\r\n\t\t\r\n\t\treturn new JobConf(this.conf);\r\n\t}",
"public cb.Careerbuilder.Job.Builder addJobsBuilder() {\n return getJobsFieldBuilder().addBuilder(\n cb.Careerbuilder.Job.getDefaultInstance());\n }",
"public JobInfo(Class<? extends Job> jobclass) {\n\t\tthis.jobclass = jobclass;\n\t}",
"public JobBuilder id(int id) {\r\n job.setId(id);\r\n return this;\r\n }",
"public ConversionJob createJob(ConfigProperties cprop){\n\t\tConversionJobFactory cjf = new ConversionJobFactory(cprop);\n\t\t//add new job with proj.id as name\n\t\tjlog.info(\"Create Job \"+cprop.getProperty(\"PROJ.id\"));\n\t\treturn cjf.getConversionJobInstance();\n\t\t//jobs.put(cprop.getProperty(\"PROJ.id\"),tjf.getInstance());\n\n\t}",
"@Override\n protected Object createJobInstance(TriggerFiredBundle bundle) throws Exception {\n Object jobInstance = super.createJobInstance(bundle);\n autowireCapableBeanFactory.autowireBean(jobInstance);\n return jobInstance;\n }",
"private Trigger createSimpleJob(SchedulerJobEntity schedulerEntity, JobDetail jobDetail) throws ParseException {\n\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tDate date = df.parse(schedulerEntity.getStartTime());\n\n\t\tSimpleScheduleBuilder simpleScheduleBuilder = null;\n\n\t\tif (schedulerEntity.getRepeatCount() >= 0) {\n\t\t\t\n\t\t\tsimpleScheduleBuilder = SimpleScheduleBuilder.simpleSchedule()\n\t\t\t\t\t.withRepeatCount(schedulerEntity.getRepeatCount())\n\t\t\t\t\t.withIntervalInMilliseconds(schedulerEntity.getRepeatTime());\n\t\t\t\n\t\t} else {\n\t\t\tsimpleScheduleBuilder = SimpleScheduleBuilder.simpleSchedule().repeatForever()\n\t\t\t\t\t.withIntervalInMilliseconds(schedulerEntity.getRepeatTime());\n\t\t}\n\n\t\treturn TriggerBuilder.newTrigger().withIdentity(schedulerEntity.getJobName(), schedulerEntity.getJobGroup())\n\t\t\t\t.forJob(jobDetail).usingJobData(jobDetail.getJobDataMap()).startAt(date)\n\t\t\t\t.withDescription(schedulerEntity.getJobName()).withSchedule(simpleScheduleBuilder).build();\n\t}",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public JobRunResourceIdInner() {\n }",
"public Job loadJob(MetaInfo metaInfo) throws IOException {\n return new CompletedJob(conf, metaInfo.getJobIndexInfo().getJobId(),\n metaInfo.getHistoryFile(), false, metaInfo.getJobIndexInfo().getUser(),\n metaInfo.getConfFile(), aclsMgr);\n }",
"private AgendaItemDefinition(Builder builder) {\r\n \tthis.id = builder.getId();\r\n \tthis.agendaId = builder.getAgendaId();\r\n \tthis.ruleId = builder.getRuleId();\r\n \tthis.subAgendaId = builder.getSubAgendaId();\r\n \tthis.whenTrueId = builder.getWhenTrueId();\r\n \tthis.whenFalseId = builder.getWhenFalseId();\r\n \tthis.alwaysId = builder.getAlwaysId();\r\n this.versionNumber = builder.getVersionNumber();\r\n\r\n \tif (builder.getRule() != null) { this.rule = builder.getRule().build(); }\r\n \tif (builder.getSubAgenda() != null) { this.subAgenda = builder.getSubAgenda().build(); }\r\n \tif (builder.getWhenTrue() != null) { this.whenTrue = builder.getWhenTrue().build(); }\r\n \tif (builder.getWhenFalse() != null) { this.whenFalse = builder.getWhenFalse().build(); }\r\n \tif (builder.getAlways() != null) { this.always = builder.getAlways().build(); }\r\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final String jobName)\n {\n m_aJobKey = new JobKey (jobName, null);\n return this;\n }",
"private Construct(Builder builder) {\n super(builder);\n }",
"public Builder() { }",
"public Builder setJobIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"public cb.Careerbuilder.Job.Builder getJobsBuilder(\n int index) {\n return getJobsFieldBuilder().getBuilder(index);\n }",
"private ObjectReference(Builder builder) {\n super(builder);\n }",
"private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }",
"public JobPayload(UUID id, UUID jobId, Employee author, int version, String details, Date submissionDate) {\n this.id = id;\n this.jobId = jobId;\n this.author = author;\n this.version = version;\n this.details = details;\n this.submissionDate = submissionDate;\n }",
"@FunctionalInterface\n public interface Builder {\n BuildingModel build(int x, int y, int angle, int floor);\n }",
"interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next definition stage\n */\n WithCreate withJobPreparation(JobPreparation jobPreparation);\n }",
"public AbstractJob(){\n \n }",
"public void createJob(String jobRecruiterUsername, String title, String description, int salary, String location, ArrayList<String> category, ArrayList<String> skillsets)\n {\n Job job = new Job();\n job.setJobRecruiterUsername(jobRecruiterUsername);\n job.setTitle(title);\n job.setDescription(description);\n job.setSalary(salary);\n job.setLocation(location);\n job.setCategory(category);\n job.setSkillsets(skillsets);\n \n jobList.add(job);\n }",
"public static com.dj.model.avro.LargeObjectAvro.Builder newBuilder(com.dj.model.avro.LargeObjectAvro.Builder other) {\n return new com.dj.model.avro.LargeObjectAvro.Builder(other);\n }",
"public Job() {\n }",
"public Job() {\n }",
"public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }",
"public Builder() {\n\t\t}",
"public JobBean() {\n }",
"public Builder() {\n }",
"private Employee(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final String jobName, final String jobGroup)\n {\n m_aJobKey = new JobKey (jobName, jobGroup);\n return this;\n }",
"public Job() {\n\t\t\t\n\t\t}",
"public JobBuilder name(String name) {\r\n job.setName(name);\r\n return this;\r\n }",
"public PersonAddressBuilderDFB(PersonDFB person){\n //only one person we are building up but need a reference to it in every sub builder\n this.person = person;\n }",
"public void construct(){\n\t\tbuilder.buildPart1();\n\t\tbuilder.buildPart2();\n\t\tbuilder.retrieveResult();\n\t}",
"public Builder(){\n }",
"@Bean\n\tpublic JobDetailFactoryBean searchCandidatesJob(){\n\t\tJobDetailFactoryBean factory = new JobDetailFactoryBean();\n\t\tfactory.setJobClass(SearchCandidatesJob.class);\n\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\tmap.put(\"searchCandidatesService\", appContext.getBean(\"searchCandidatesService\") );\n\t\tmap.put(\"adminServiceSC\", appContext.getBean(\"adminService\") );\n\t\tfactory.setJobDataAsMap(map);\n\t\tfactory.setName(\"searchCandidatesJob\");\n\t\tfactory.setDurability(true);\n\t\treturn factory;\n\t}",
"public Builder clearJobId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n jobId_ = getDefaultInstance().getJobId();\n onChanged();\n return this;\n }",
"public Job(int jobID, String username, String company, String industry,\n String title, Double salary, boolean isAvailable) {\n super(username, company, industry);\n this.jobID = jobID;\n this.title = title;\n this.salary = salary;\n this.isAvailable = isAvailable;\n }",
"@Bean\n JobBuilderFactory jobBuilderFactory(JobRepository jobRepository) {\n return new JobBuilderFactory(jobRepository);\n }",
"public interface JobManager {\n void startJob(JobConfig<String, JsonRecord> name);\n}",
"private DataObject(Builder builder) {\n super(builder);\n }",
"private Builder() {}",
"@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public Job(int id) {\n this.id = id;\n }",
"public WaitingProfile constructWaitingProfile(Barge barge, int currentTime) {\r\n\t\t /*if(Port.eventsToExcel.equals(\"Yes\")){\r\n\t\t\t Port.stats.addEvent(currentTime, barge.bargeNumber, (barge.toString()+ \" asked Terminal \" + this.toString()+\r\n\t\t\t\t\t \" for appoints \"+\r\n\t\t\t\t\t \" ||appointements= \" +this.appointmentsToString()));\r\n\t\t\t }*/\r\n\t\t \r\n\t\t \r\n\t\treturn new WaitingProfile(this, barge, currentTime);\r\n\t}",
"private B(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static LinkBuilder builder() {\n return new LinkBuilder();\n }",
"public Order(Builder builder) {\r\n this.id = builder.id;\r\n this.orderDate = builder.orderDate;\r\n //this.orderLine = builder.orderLine;\r\n }",
"private JarDetails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Job() {\r\n\t\tSystem.out.println(\"Constructor\");\r\n\t}",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }"
] | [
"0.7035215",
"0.69101906",
"0.6736769",
"0.66714156",
"0.6663996",
"0.65563124",
"0.6481591",
"0.64394426",
"0.6341753",
"0.6316524",
"0.63118464",
"0.619786",
"0.6055948",
"0.5974234",
"0.59307057",
"0.569504",
"0.5643474",
"0.5622442",
"0.5599858",
"0.5582905",
"0.5570945",
"0.5561462",
"0.55538803",
"0.55163133",
"0.546593",
"0.54294646",
"0.54054004",
"0.5322228",
"0.52954495",
"0.5290511",
"0.5287442",
"0.52862966",
"0.5266622",
"0.5245308",
"0.5206035",
"0.5180344",
"0.5170807",
"0.5162443",
"0.51611817",
"0.5151305",
"0.5127379",
"0.5120225",
"0.5115936",
"0.5106866",
"0.5095304",
"0.5095304",
"0.5095304",
"0.5082789",
"0.5082789",
"0.5039004",
"0.50257415",
"0.50242704",
"0.5020406",
"0.50153744",
"0.49894166",
"0.49810702",
"0.49780568",
"0.49779204",
"0.49764195",
"0.49705833",
"0.49651805",
"0.49638662",
"0.49571428",
"0.4954499",
"0.49517938",
"0.49486",
"0.49486",
"0.49356797",
"0.49350148",
"0.49286",
"0.4902906",
"0.4902726",
"0.49027175",
"0.49027175",
"0.49027175",
"0.49013895",
"0.49008018",
"0.4886428",
"0.48856124",
"0.4884885",
"0.48813614",
"0.48800194",
"0.48795953",
"0.48778656",
"0.4877479",
"0.48765436",
"0.48727334",
"0.48685807",
"0.48651862",
"0.48537856",
"0.4852482",
"0.48450866",
"0.48435467",
"0.48384053",
"0.48374084",
"0.48361766",
"0.48346093",
"0.4833742",
"0.4833742",
"0.4833742"
] | 0.7345417 | 0 |
Create a JobBuilder with which to define a JobDetail, and set the class name of the Job to be executed. | public static JobBuilder newJob(Class<? extends Job> jobClass) {
JobBuilder b = new JobBuilder();
b.ofType(jobClass);
return b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JobBuilder() {\r\n job = new Job();\r\n }",
"public JobBuilder ofType(Class<? extends Job> jobClazz) {\n this.jobClass = jobClazz;\n return this;\n }",
"public static JobBuilder newJob() {\n return new JobBuilder();\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final IJobDetail jobDetail)\n {\n final JobKey k = jobDetail.getKey ();\n if (k.getName () == null)\n throw new IllegalArgumentException (\"The given job has not yet had a name assigned to it.\");\n m_aJobKey = k;\n return this;\n }",
"private Job(com.google.protobuf.GeneratedMessage.ExtendableBuilder<cb.Careerbuilder.Job, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public JobInfo(Class<? extends Job> jobclass) {\n\t\tthis.jobclass = jobclass;\n\t}",
"private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }",
"private Builder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n super(other);\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"public JobDetail build() {\n return null;\n }",
"public JobBuilder name(String name) {\r\n job.setName(name);\r\n return this;\r\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"private JobDetail createJobDetail(SchedulerJobEntity schedulerEntity) throws Exception {\n\n\t\tJobDetail jobDetail = null;\n\t\tJobDataMap jobDataMap = createJobDataMap(schedulerEntity.getJobName(), schedulerEntity.getInvokeParam());\n\n\t\tClass<? extends Job> cls = jobRegistry.findJobByName(schedulerEntity.getJobGroup()).orElseThrow();\n\t\t\n\t\tjobDetail = JobBuilder.newJob(cls)\n\t\t\t\t.withIdentity(schedulerEntity.getJobName(), schedulerEntity.getJobGroup()).setJobData(jobDataMap)\n\t\t\t\t.requestRecovery().build();\n\t\t\n\t\treturn jobDetail;\n\t}",
"JobResponse create();",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder() {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder();\n }",
"JobResponse create(Context context);",
"public Builder setTargetJobNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n targetJobName_ = value;\n onChanged();\n return this;\n }",
"WithCreate withProperties(JobDetails properties);",
"public AbstractJob(){\n \n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final String jobName)\n {\n m_aJobKey = new JobKey (jobName, null);\n return this;\n }",
"public Trigger buildJobTrigger(JobDetail jobDetail) {\n\t\tint retriesAmount = jobDetail.getJobDataMap().getIntValue(RetryJob.AMOUNT_RETRIES_KEY);\n\t\tint delay = RetryService.INITIAL_DELAY * (int) Math.pow(RetryService.EXPONENTIAL_BASE, (retriesAmount - 1));\n\t\tDate fireDate = new Date(System.currentTimeMillis() + delay);\n\t\tlog.info(\"Building job with delay \" + delay + \" seconds \" + fireDate);\n\t\treturn TriggerBuilder.newTrigger()\n .forJob(jobDetail)\n .withIdentity(jobDetail.getKey().getName(), \"retry-email-triggers\")\n .withDescription(\"Retry Send Email Trigger\")\n .startAt(fireDate)\n .withSchedule(SimpleScheduleBuilder.simpleSchedule().withMisfireHandlingInstructionFireNow())\n .build();\n }",
"public Builder setTargetJobName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n targetJobName_ = value;\n onChanged();\n return this;\n }",
"public Builder setJobId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"public Job build() {\r\n return job;\r\n }",
"void setJobName(String jobName);",
"public Job() {\n }",
"public Job() {\n }",
"public BNHaystackLearnStructureJob() {}",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final String jobName, final String jobGroup)\n {\n m_aJobKey = new JobKey (jobName, jobGroup);\n return this;\n }",
"public Job loadJob(MetaInfo metaInfo) throws IOException {\n return new CompletedJob(conf, metaInfo.getJobIndexInfo().getJobId(),\n metaInfo.getHistoryFile(), false, metaInfo.getJobIndexInfo().getUser(),\n metaInfo.getConfFile(), aclsMgr);\n }",
"public void createJob(String jobRecruiterUsername, String title, String description, int salary, String location, ArrayList<String> category, ArrayList<String> skillsets)\n {\n Job job = new Job();\n job.setJobRecruiterUsername(jobRecruiterUsername);\n job.setTitle(title);\n job.setDescription(description);\n job.setSalary(salary);\n job.setLocation(location);\n job.setCategory(category);\n job.setSkillsets(skillsets);\n \n jobList.add(job);\n }",
"public Job() {\r\n\t\tSystem.out.println(\"Constructor\");\r\n\t}",
"public void scheduleJob() {\n JobInfo.Builder builder = null;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n builder = new JobInfo.Builder(mJobId++, mServiceComponent);\n builder.setMinimumLatency(1000);\n builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY);\n // Extras, work duration.\n PersistableBundle extras = new PersistableBundle();\n extras.putLong(WORK_DURATION_KEY, Long.valueOf(1) * 1000);\n extras.putString(\"gsonData\", gsonDataa);\n extras.putInt(\"servicetype\", 1);\n builder.setExtras(extras);\n // Schedule job\n Log.d(TAG, \"Scheduling job\");\n JobScheduler tm = (JobScheduler) getSystemService(Context.JOB_SCHEDULER_SERVICE);\n tm.schedule(builder.build());\n\n }\n\n\n\n }",
"public schedulerJob() {\n }",
"public ConversionJob createJob(ConfigProperties cprop){\n\t\tConversionJobFactory cjf = new ConversionJobFactory(cprop);\n\t\t//add new job with proj.id as name\n\t\tjlog.info(\"Create Job \"+cprop.getProperty(\"PROJ.id\"));\n\t\treturn cjf.getConversionJobInstance();\n\t\t//jobs.put(cprop.getProperty(\"PROJ.id\"),tjf.getInstance());\n\n\t}",
"public Job() {\n\t\t\t\n\t\t}",
"public void setJob(String job) {\n this.job = job;\n }",
"@Bean\n\tpublic void jobOneDetail() throws SchedulerException {\n\t\tJobDataMap jobDataMap = new JobDataMap();\n\t\tjobDataMap.put(\"jobLauncher\", jobLauncher);\n\t\tjobDataMap.put(\"jobLocator\", jobLocator);\n\n\t\tJobDetail job = JobBuilder.newJob(SimpleJob.class).withIdentity(\"demoJobOne\").setJobData(jobDataMap)\n\t\t\t\t.storeDurably().build();\n\t\tTrigger trigger = TriggerBuilder.newTrigger().forJob(job).withIdentity(\"jobOneTrigger\")\n\t\t\t\t.withSchedule(SimpleScheduleBuilder.simpleSchedule().withIntervalInHours(5).repeatForever()).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(job, trigger);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Regular employees\n\t\t * on monthly basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Regular = new JobDataMap();\n\t\tpayrollJobParam4Regular.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Regular.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Regular.put(\"empType\", \"Regular\");\n\t\tJobDetail payrollJob4Regular = JobBuilder.newJob(PayrollCalculationJob.class).withIdentity(\"payrollJob4Regular\")\n\t\t\t\t.setJobData(payrollJobParam4Regular).storeDurably().build();\n\t\tTrigger payrollTrigger4Regular = TriggerBuilder.newTrigger().forJob(payrollJob4Regular)\n\t\t\t\t.withIdentity(\"payrollTrigger4Regular\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 1 1/1 ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Regular, payrollTrigger4Regular);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Internship\n\t\t * employees on weekly[Saturday] basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Internship = new JobDataMap();\n\t\tpayrollJobParam4Internship.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Internship.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Internship.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Internship = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Internship\").setJobData(payrollJobParam4Internship).storeDurably().build();\n\t\tTrigger payrollTrigger4Internship = TriggerBuilder.newTrigger().forJob(payrollJob4Internship)\n\t\t\t\t.withIdentity(\"payrollTrigger4Internship\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 ? * SAT *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Internship, payrollTrigger4Internship);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Contract employees\n\t\t * on daily basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Contract = new JobDataMap();\n\t\tpayrollJobParam4Contract.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Contract.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Contract.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Contract = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Contract\").setJobData(payrollJobParam4Contract).storeDurably().build();\n\t\tTrigger payrollTrigger4Contract = TriggerBuilder.newTrigger().forJob(payrollJob4Contract)\n\t\t\t\t.withIdentity(\"payrollTrigger4Contract\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 1/1 * ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Contract, payrollTrigger4Contract);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Freelancer\n\t\t * employees on hourly basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Freelancer = new JobDataMap();\n\t\tpayrollJobParam4Freelancer.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Freelancer.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Freelancer.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Freelancer = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Freelancer\").setJobData(payrollJobParam4Freelancer).storeDurably().build();\n\t\tTrigger payrollTrigger4Freelancer = TriggerBuilder.newTrigger().forJob(payrollJob4Freelancer)\n\t\t\t\t.withIdentity(\"payrollTrigger4Freelancer\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0/1 1/1 * ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Freelancer, payrollTrigger4Freelancer);\n\n\t}",
"public interface JobManager {\n void startJob(JobConfig<String, JsonRecord> name);\n}",
"private void produceWorker(Class<? extends WorkerWatch> jobClass, String groupName, Long queueTaskId) \n throws SchedulerException \n {\n JobDetail jobDetail = org.quartz.JobBuilder.newJob(jobClass)\n .usingJobData(\"queueTaskId\", queueTaskId)\n .withIdentity(jobClass.getName() + \"-\" + queueTaskId, groupName + \"Workers-\"+queueTaskId)\n .build();\n\n SimpleTrigger trigger = (SimpleTrigger)newTrigger()\n .withIdentity(jobClass.getName() + \"-\" + queueTaskId, groupName + \"Workers-\"+queueTaskId)\n .startNow()\n .withSchedule(simpleSchedule()\n .withMisfireHandlingInstructionNextWithExistingCount()\n .withIntervalInSeconds(1)\n .withRepeatCount(0))\n .build();\n\n Scheduler sched = new StdSchedulerFactory().getScheduler(\"AgaveConsumerTransferScheduler\");\n if (!sched.isStarted()) {\n sched.start();\n }\n \n log.debug(\"Assigning \" + jobClass.getSimpleName() + \" \" + queueTaskId + \" for processing\");\n \n sched.scheduleJob(jobDetail, trigger);\n }",
"@Override\n public String getType() {\n return Const.JOB;\n }",
"public JDK8TriggerBuilder <T> forJob (final JobKey keyOfJobToFire)\n {\n m_aJobKey = keyOfJobToFire;\n return this;\n }",
"JobClient createJobClient();",
"@Override\n\tpublic PdiJobWrapper createJob(String jobFile, String[] args) {\n\t\ttry {\n\t\t\tLOGGER.info(\"Creating job based upon \" + jobFile);\n\t\t\tJobMeta jobMeta = new JobMeta(this.getLogWriter(), jobFile, null, null);\n\t\t\tJob job = new Job(this.getLogWriter(), this.getStepLoader(), null, jobMeta);\n\t\t\tjob.getJobMeta().setArguments(args);\n\n\t\t\t// setup internal and external variables of job\n\t\t\tjob.initializeVariablesFrom(null);\n\t\t\tjob.getJobMeta().setInternalKettleVariables(job);\n\t\t\tjob.copyParametersFrom(job.getJobMeta());\n\t\t\tjob.activateParameters();\n\t\t\treturn new PdiJob324(job);\n\t\t} catch (KettleException e) {\n\t\t\tthrow new PdiException(e);\n\t\t}\n\t}",
"@Override\n protected Object createJobInstance(TriggerFiredBundle bundle) throws Exception {\n Object jobInstance = super.createJobInstance(bundle);\n autowireCapableBeanFactory.autowireBean(jobInstance);\n return jobInstance;\n }",
"public static Job create(long jobId) {\n\t\treturn getPersistence().create(jobId);\n\t}",
"public Job(int id) {\n this.id = id;\n }",
"public JobBuilder withDescription(String jobDescription) {\n this.description = jobDescription;\n return this;\n }",
"public interface CreateUserMiniJobsSpecBuilder {\n\t\tCreateUserMiniJobsSpecBuilder setMiniJobId(\n\t\t\tString userMiniJobId, int miniJobId);\n \n\t\tCreateUserMiniJobsSpecBuilder setBaseDmgReceived(\n\t\t\tString userMiniJobId, int baseDmgReceived);\n \n\t\tCreateUserMiniJobsSpecBuilder setDurationMinutes(\n\t\t\tString userMiniJobId, int durationMinutes);\n\n\t\tCreateUserMiniJobsSpecBuilder setUserMonsterIds(\n\t\t\tString userMiniJobId, Set<String> userMonsterIds);\n \n\t\tCreateUserMiniJobsSpecBuilder setTimeStarted(\n\t\t\tString userMiniJobId, Date timeStarted);\n \n\t\tCreateUserMiniJobsSpecBuilder setTimeCompleted(\n\t\t\tString userMiniJobId, Date timeCompleted);\n }",
"public Job(int id, String name, Recruiter recruiter, int fee, String category)\n {\n this.id = id;\n this.name = name;\n this.recruiter = recruiter;\n this.fee = fee;\n this.category = category;\n }",
"public Builder(RecognitionJobOptions options) {\n callbackUrl = options.callbackUrl;\n events = options.events;\n resultsTtl = options.resultsTtl;\n userToken = options.userToken;\n }",
"@Override\n public String getTypeName() {\n return job_name;\n }",
"protected JobConf createJobConf() \n {\n return new JobConf();\n }",
"public AutomaticJob() {\r\n \r\n }",
"public void setJobInfo(String jobInfo) {\n this.jobInfo = jobInfo;\n }",
"java.lang.String getTargetJobName();",
"private Builder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.localId)) {\n this.localId = data().deepCopy(fields()[1].schema(), other.localId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.serviceId)) {\n this.serviceId = data().deepCopy(fields()[2].schema(), other.serviceId);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.args)) {\n this.args = data().deepCopy(fields()[3].schema(), other.args);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.inputs)) {\n this.inputs = data().deepCopy(fields()[4].schema(), other.inputs);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.outputs)) {\n this.outputs = data().deepCopy(fields()[5].schema(), other.outputs);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.timestamp)) {\n this.timestamp = data().deepCopy(fields()[6].schema(), other.timestamp);\n fieldSetFlags()[6] = true;\n }\n }",
"public Job newJob() throws IOException {\n return newJob(outputDir, getConfiguration(), attempt0);\n }",
"public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}",
"@Override\n public Void run() throws Exception {\n Callable<Job> jobCreator = ReflectionUtils.newInstance(jobConfig.getJobCreator(), jobConfiguration);\n Job job = jobCreator.call();\n job.submit();\n\n // Blocking mode is only for testing\n if(waitForCompletition) {\n job.waitForCompletion(true);\n }\n\n // And generate event with further job details\n EventRecord event = getContext().createEventRecord(\"job-created\", 1);\n Map<String, Field> eventMap = ImmutableMap.of(\n \"tracking-url\", Field.create(job.getTrackingURL()),\n \"job-id\", Field.create(job.getJobID().toString())\n );\n event.set(Field.create(eventMap));\n getContext().toEvent(event);\n return null;\n }",
"public void addJob(Class<? extends Job> jobClass) {\n CronExp cronExp = (CronExp) jobClass.getAnnotation(CronExp.class);\n addJob(cronExp.value(), jobClass);\n }",
"java.lang.String getJobId();",
"public JobBean() {\n }",
"@Bean\n\tpublic JobDetailFactoryBean searchCandidatesJob(){\n\t\tJobDetailFactoryBean factory = new JobDetailFactoryBean();\n\t\tfactory.setJobClass(SearchCandidatesJob.class);\n\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\tmap.put(\"searchCandidatesService\", appContext.getBean(\"searchCandidatesService\") );\n\t\tmap.put(\"adminServiceSC\", appContext.getBean(\"adminService\") );\n\t\tfactory.setJobDataAsMap(map);\n\t\tfactory.setName(\"searchCandidatesJob\");\n\t\tfactory.setDurability(true);\n\t\treturn factory;\n\t}",
"public JobBuilder status(String status) {\r\n job.setStatus(status);\r\n return this;\r\n }",
"@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}",
"private synchronized void createJob\n\t\t(Channel theChannel)\n\t\t{\n\t\t// Create Job Frontend proxy object for the channel.\n\t\tJobFrontendRef frontend =\n\t\t\tnew JobFrontendProxy (myChannelGroup, theChannel);\n\t\ttheChannel.info (frontend);\n\n\t\t// Create job information record.\n\t\tJobInfo jobinfo = getJobInfo (frontend);\n\n\t\t// Start lease timers.\n\t\tjobinfo.renewTimer.start\n\t\t\t(Constants.LEASE_RENEW_INTERVAL,\n\t\t\t Constants.LEASE_RENEW_INTERVAL);\n\t\tjobinfo.expireTimer.start\n\t\t\t(Constants.LEASE_EXPIRE_INTERVAL);\n\t\t}",
"public JobBuilder withIdentity(JobKey jobKey) {\n this.key = jobKey;\n return this;\n }",
"public JobBuilder id(int id) {\r\n job.setId(id);\r\n return this;\r\n }",
"public JobBuilder withIdentity(String name) {\n key = new JobKey(name, null);\n return this;\n }",
"public JobID() {\n super();\n }",
"public Job(int jobID, String username, String company, String industry,\n String title, Double salary, boolean isAvailable) {\n super(username, company, industry);\n this.jobID = jobID;\n this.title = title;\n this.salary = salary;\n this.isAvailable = isAvailable;\n }",
"private Trigger createSimpleJob(SchedulerJobEntity schedulerEntity, JobDetail jobDetail) throws ParseException {\n\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tDate date = df.parse(schedulerEntity.getStartTime());\n\n\t\tSimpleScheduleBuilder simpleScheduleBuilder = null;\n\n\t\tif (schedulerEntity.getRepeatCount() >= 0) {\n\t\t\t\n\t\t\tsimpleScheduleBuilder = SimpleScheduleBuilder.simpleSchedule()\n\t\t\t\t\t.withRepeatCount(schedulerEntity.getRepeatCount())\n\t\t\t\t\t.withIntervalInMilliseconds(schedulerEntity.getRepeatTime());\n\t\t\t\n\t\t} else {\n\t\t\tsimpleScheduleBuilder = SimpleScheduleBuilder.simpleSchedule().repeatForever()\n\t\t\t\t\t.withIntervalInMilliseconds(schedulerEntity.getRepeatTime());\n\t\t}\n\n\t\treturn TriggerBuilder.newTrigger().withIdentity(schedulerEntity.getJobName(), schedulerEntity.getJobGroup())\n\t\t\t\t.forJob(jobDetail).usingJobData(jobDetail.getJobDataMap()).startAt(date)\n\t\t\t\t.withDescription(schedulerEntity.getJobName()).withSchedule(simpleScheduleBuilder).build();\n\t}",
"public void setJobName(String JobName) {\n this.JobName = JobName;\n }",
"public Builder clearTargetJobName() {\n bitField0_ = (bitField0_ & ~0x00000020);\n targetJobName_ = getDefaultInstance().getTargetJobName();\n onChanged();\n return this;\n }",
"public PersonJobBuilderDFB works(){\n return new PersonJobBuilderDFB(person);\n }",
"public void addNewJob(String jobId, String shipTo, String shipperContact, String paymentDue){\n JobInfo job = new JobInfo(shipTo,\n shipperContact,\n paymentDue,\n address,\n String.valueOf(latitude),\n String.valueOf(longitude));\n Map<String, Object> postValues = job.toMap();\n Map<String, Object> childUpdates = new HashMap<>();\n childUpdates.put(\"deliverybot/jobs/\" + jobId + \"/info\", postValues);\n firebaseDatabaseReference.updateChildren(childUpdates);\n\n if (selectedDriver.isEmpty())\n firebaseDatabaseReference.child(\"deliverybot/jobs/\" + jobId + \"/status\").setValue(\"Unassigned\");\n else\n firebaseDatabaseReference.child(\"deliverybot/jobs/\" + jobId + \"/status\").setValue(\"Assigned\");\n firebaseDatabaseReference.child(\"deliverybot/jobs/\" + jobId + \"/driver\").setValue(selectedDriver);\n\n // Add route information to firebase\n Route route = new Route(address,\n String.valueOf(latitude),\n String.valueOf(longitude),\n selectedDriver);\n Map<String, Object> postRouteUpdate = route.toMap();\n Map<String, Object> routeChildUpdates = new HashMap<>();\n routeChildUpdates.put(\"deliverybot/routes/\" + jobId, postRouteUpdate);\n firebaseDatabaseReference.updateChildren(routeChildUpdates);\n String toastMessage = getResources().getString(R.string.job_creation_toast);\n Toast.makeText(getApplicationContext(), toastMessage, Toast.LENGTH_LONG).show();\n finish();\n }",
"public void setJobName(String jobName) {\n this.jobName = jobName;\n }",
"public void setJobName(String jobName) {\n this.jobName = jobName;\n }",
"public void setJobName(String jobName) {\n this.jobName = jobName;\n }",
"@Bean\n\tpublic JobDetailFactoryBean reminderPublicationJob(){\n\t\tJobDetailFactoryBean factory = new JobDetailFactoryBean();\n\t\tfactory.setJobClass(ReminderPublicationJob.class);\n\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\tmap.put(\"reminderServicePub\", appContext.getBean(\"reminderService\") );\n\t\tmap.put(\"adminServicePub\", appContext.getBean(\"adminService\") );\n\t\tfactory.setJobDataAsMap(map);\n\t\tfactory.setName(\"reminderPublicationJob\");\n\t\tfactory.setDurability(true);\n\t\treturn factory;\n\t}",
"public Job getJob();",
"public Builder setJobIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"public TriggerEchoJob() {\n\t}",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public Builder setJobIDTarget(long value) {\n bitField0_ |= 0x00000010;\n jobIDTarget_ = value;\n onChanged();\n return this;\n }",
"public interface IJobshelper {\n\n\t/**\n\t * Can do some initialization for task like file location, Emailer list, Emailer\n\t * message etc This is used to set some configuration for this Job and should be\n\t * using some properties file so that each Job could use specific configuration\n\t * \n\t * @throws JobExecutionException\n\t */\n\tpublic void initialJobContext(String configFileName) throws JobExecutionException;\n\n}",
"public JobManager(){\n //Initialize the job manager for use of the system\n }",
"public String getJobId();",
"private Job newJob(Path dir, Configuration configuration,\n String taskAttemptId) throws IOException {\n Job job = Job.getInstance(configuration);\n Configuration conf = job.getConfiguration();\n conf.set(MRJobConfig.TASK_ATTEMPT_ID, taskAttemptId);\n enableManifestCommitter(conf);\n FileOutputFormat.setOutputPath(job, dir);\n return job;\n }",
"public static JobDetails newInstance(String param1, String param2) {\n JobDetails fragment = new JobDetails();\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 }",
"interface WithProperties {\n /**\n * Specifies the properties property: Specifies the job properties.\n *\n * @param properties Specifies the job properties.\n * @return the next definition stage.\n */\n WithCreate withProperties(JobDetails properties);\n }",
"AgentPolicyBuilder setJobPriority(JobPriority jobPriority);",
"public JobPayload(UUID id, UUID jobId, Employee author, int version, String details, Date submissionDate) {\n this.id = id;\n this.jobId = jobId;\n this.author = author;\n this.version = version;\n this.details = details;\n this.submissionDate = submissionDate;\n }",
"public Job(String username, String password, String company, String industry,\n String title, Double salary) {\n super(username, password, company, industry);\n this.title = title;\n this.salary = salary;\n this.isAvailable = false;\n }",
"void joinJob(long jobId, long joinJobId);",
"private JarDetails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public JobRunResourceIdInner() {\n }",
"interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next definition stage\n */\n WithCreate withJobPreparation(JobPreparation jobPreparation);\n }",
"public static void createNewJob(BotUI botUI, String partner, String task,\n\t\t\tString cronExpression) {\n\t\tdisplayAndWriteLog(partner + \"- \" + task + \": createNewJob\");\n\t\ttry {\n\n\t\t\tJobDataMap jobDataMap = new JobDataMap();\n\t\t\tjobDataMap.put(\"partner\", partner);\n\t\t\tjobDataMap.put(\"task\", task);\n\n\t\t\tdisplayAndWriteLog(partner + \": createNewJob 2\");\n\n\t\t\tMessageObservable observable = new MessageObservable();\n\t\t\tobservable.addObserver(botUI);\n\t\t\tjobDataMap.put(\"observable\", observable);\n\n\t\t\tdisplayAndWriteLog(partner + \": createNewJob 3\");\n\n\t\t\tJobDetail job = JobBuilder\n\t\t\t\t\t.newJob(ScreeningJob.class)\n\t\t\t\t\t.withIdentity(\n\t\t\t\t\t\t\tpartner.toUpperCase() + \"_\" + task.toUpperCase(),\n\t\t\t\t\t\t\t\"GROUP_01\").usingJobData(jobDataMap).build();\n\n\t\t\tdisplayAndWriteLog(partner + \": createNewJob 4\");\n\n\t\t\tTrigger trigger = TriggerBuilder\n\t\t\t\t\t.newTrigger()\n\t\t\t\t\t.withIdentity(\n\t\t\t\t\t\t\tpartner.toUpperCase() + \"_\" + task.toUpperCase(),\n\t\t\t\t\t\t\t\"GROUP_01\")\n\t\t\t\t\t.withSchedule(\n\t\t\t\t\t\t\tCronScheduleBuilder.cronSchedule(cronExpression))\n\t\t\t\t\t.build();\n\n\t\t\tdisplayAndWriteLog(partner + \": scheduler is null: \"\n\t\t\t\t\t+ (scheduler == null));\n\n\t\t\tif (scheduler == null) {\n\t\t\t\tscheduler = new StdSchedulerFactory().getScheduler();\n\t\t\t\tscheduler.start();\n\t\t\t\tdisplayAndWriteLog(partner + \": scheduler start\");\n\t\t\t}\n\t\t\tscheduler.scheduleJob(job, trigger);\n\n\t\t} catch (SchedulerException e) {\n\t\t\tSystem.out.println(\"SchedulerException: \" + e.toString());\n\t\t\tScreeningJob.displayAndWriteLogError(e);\n\t\t}\n\t}"
] | [
"0.6803583",
"0.67708474",
"0.66423094",
"0.64709634",
"0.63646793",
"0.62701184",
"0.59766066",
"0.59263057",
"0.5926194",
"0.5878908",
"0.5855434",
"0.5853052",
"0.5764336",
"0.573245",
"0.56549746",
"0.56493807",
"0.5639793",
"0.56252587",
"0.5602499",
"0.5557777",
"0.55249566",
"0.5489747",
"0.5463574",
"0.54358834",
"0.5407459",
"0.53986025",
"0.53986025",
"0.5395506",
"0.53784156",
"0.53685045",
"0.53578436",
"0.535718",
"0.53475744",
"0.5340904",
"0.533563",
"0.53216714",
"0.5313443",
"0.5302115",
"0.52867734",
"0.5266362",
"0.5241507",
"0.52364796",
"0.5204459",
"0.52037376",
"0.51939696",
"0.51768696",
"0.5169756",
"0.5169134",
"0.51588374",
"0.51555586",
"0.5142867",
"0.51425606",
"0.5141193",
"0.5138669",
"0.5131033",
"0.5122416",
"0.5113337",
"0.5110079",
"0.5095095",
"0.50625426",
"0.5057514",
"0.5041514",
"0.50235844",
"0.5011203",
"0.50087106",
"0.50042903",
"0.49994296",
"0.49959046",
"0.4989995",
"0.49843952",
"0.4979458",
"0.497906",
"0.49777988",
"0.49737722",
"0.4964428",
"0.4957849",
"0.49561998",
"0.49469617",
"0.49469617",
"0.49469617",
"0.49436817",
"0.49367082",
"0.49328718",
"0.49274442",
"0.49218756",
"0.4912912",
"0.48955044",
"0.48922366",
"0.48860684",
"0.48813602",
"0.48685974",
"0.48628712",
"0.48551318",
"0.4854951",
"0.48511407",
"0.4838967",
"0.48352528",
"0.48251316",
"0.4823043",
"0.48223054"
] | 0.65355015 | 3 |
Produce the JobDetail instance defined by this JobBuilder. | public JobDetail build() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Job build() {\r\n return job;\r\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder() {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder();\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"public UpdateJobDetails details() {\n return this.details;\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"private JobDetail createJobDetail(SchedulerJobEntity schedulerEntity) throws Exception {\n\n\t\tJobDetail jobDetail = null;\n\t\tJobDataMap jobDataMap = createJobDataMap(schedulerEntity.getJobName(), schedulerEntity.getInvokeParam());\n\n\t\tClass<? extends Job> cls = jobRegistry.findJobByName(schedulerEntity.getJobGroup()).orElseThrow();\n\t\t\n\t\tjobDetail = JobBuilder.newJob(cls)\n\t\t\t\t.withIdentity(schedulerEntity.getJobName(), schedulerEntity.getJobGroup()).setJobData(jobDataMap)\n\t\t\t\t.requestRecovery().build();\n\t\t\n\t\treturn jobDetail;\n\t}",
"public String getJobInfo() {\n return jobInfo;\n }",
"public static JobBuilder newJob() {\n return new JobBuilder();\n }",
"public Dsjob getJobObject() { return job; }",
"JobDetails properties();",
"public Job getJob();",
"private Builder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n super(other);\n }",
"public Job getJob(){\n return job;\n }",
"public JobBuilder() {\r\n job = new Job();\r\n }",
"JobResponse create();",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getJobId() != null)\n sb.append(\"JobId: \").append(getJobId()).append(\",\");\n if (getJobStatus() != null)\n sb.append(\"JobStatus: \").append(getJobStatus());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\r\n\tpublic T getJob() {\n\t\treturn super.getJob();\r\n\t}",
"private Job(com.google.protobuf.GeneratedMessage.ExtendableBuilder<cb.Careerbuilder.Job, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"JobResponse create(Context context);",
"@Override\n public Job getJobPOJO() {\n return jobUnproxied;\n }",
"public JobInfo(Class<? extends Job> jobclass) {\n\t\tthis.jobclass = jobclass;\n\t}",
"private Builder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.localId)) {\n this.localId = data().deepCopy(fields()[1].schema(), other.localId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.serviceId)) {\n this.serviceId = data().deepCopy(fields()[2].schema(), other.serviceId);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.args)) {\n this.args = data().deepCopy(fields()[3].schema(), other.args);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.inputs)) {\n this.inputs = data().deepCopy(fields()[4].schema(), other.inputs);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.outputs)) {\n this.outputs = data().deepCopy(fields()[5].schema(), other.outputs);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.timestamp)) {\n this.timestamp = data().deepCopy(fields()[6].schema(), other.timestamp);\n fieldSetFlags()[6] = true;\n }\n }",
"public String getJob() {\n return job;\n }",
"private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final IJobDetail jobDetail)\n {\n final JobKey k = jobDetail.getKey ();\n if (k.getName () == null)\n throw new IllegalArgumentException (\"The given job has not yet had a name assigned to it.\");\n m_aJobKey = k;\n return this;\n }",
"@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}",
"public String getJobDescription() {\r\n return jobDescription;\r\n }",
"public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}",
"WithCreate withProperties(JobDetails properties);",
"public String getJobDesc()\n\t{\n\t\treturn jobDesc;\n\t}",
"public PersonJobBuilderDFB works(){\n return new PersonJobBuilderDFB(person);\n }",
"public String getJob_description() {\r\n return job_description;\r\n }",
"JobResponseInner innerModel();",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public AgendaProgress build()\n {\n return this.object;\n }",
"public JSONObject handleGetJobDetail(String jobId) {\n MapReduceState state;\n try {\n state = MapReduceState.getMapReduceStateFromJobID(ds, JobID.forName(jobId));\n } catch (EntityNotFoundException e) {\n throw new IllegalArgumentException(\"Couldn't find MapReduce for id:\" + jobId, e);\n }\n return state.toJson(true);\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getJobId() != null)\n sb.append(\"JobId: \").append(getJobId()).append(\",\");\n if (getDestination() != null)\n sb.append(\"Destination: \").append(getDestination()).append(\",\");\n if (getResourceType() != null)\n sb.append(\"ResourceType: \").append(getResourceType()).append(\",\");\n if (getStatus() != null)\n sb.append(\"Status: \").append(getStatus()).append(\",\");\n if (getCreationTimestamp() != null)\n sb.append(\"CreationTimestamp: \").append(getCreationTimestamp()).append(\",\");\n if (getLastUpdatedTimestamp() != null)\n sb.append(\"LastUpdatedTimestamp: \").append(getLastUpdatedTimestamp()).append(\",\");\n if (getFailureReason() != null)\n sb.append(\"FailureReason: \").append(getFailureReason());\n sb.append(\"}\");\n return sb.toString();\n }",
"public JobDataMap getJobDataMap() {\n if (jobDataMap == null) {\n jobDataMap = new JobDataMap();\n }\n return jobDataMap;\n }",
"public interface Job {\n\n /** unique id for this job that is used as a reference in the service methods */\n String getId();\n\n /** job executor identification that has acquired this job and is going to execute it */\n String getLockOwner();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null. */\n Date getDueDate();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null.\n * @deprecated call {@link #getDueDate()} instead */\n @Deprecated\n Date getDuedate();\n\n /** exception that occurred during the last execution of this job. The transaction \n * of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n String getException();\n\n /** number of retries left. This is only decremented when an exception occurs during job \n * execution. The transaction of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n int getRetries();\n\n /** indicates if this job should be executed separate from any other job \n * in the same process instance */\n boolean isExclusive();\n\n /** the related execution */\n Execution getExecution();\n\n /** the related process instance */\n Execution getProcessInstance();\n\n Date getLockExpirationTime();\n\n}",
"public interface JobResponse {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the location property: The geo-location where the resource lives.\n *\n * @return the location value.\n */\n String location();\n\n /**\n * Gets the tags property: Resource tags.\n *\n * @return the tags value.\n */\n Map<String, String> tags();\n\n /**\n * Gets the systemData property: SystemData of ImportExport Jobs.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the properties property: Specifies the job properties.\n *\n * @return the properties value.\n */\n JobDetails properties();\n\n /**\n * Gets the identity property: Specifies the job identity details.\n *\n * @return the identity value.\n */\n IdentityDetails identity();\n\n /**\n * Gets the region of the resource.\n *\n * @return the region of the resource.\n */\n Region region();\n\n /**\n * Gets the name of the resource region.\n *\n * @return the name of the resource region.\n */\n String regionName();\n\n /**\n * Gets the name of the resource group.\n *\n * @return the name of the resource group.\n */\n String resourceGroupName();\n\n /**\n * Gets the inner com.azure.resourcemanager.storageimportexport.fluent.models.JobResponseInner object.\n *\n * @return the inner object.\n */\n JobResponseInner innerModel();\n\n /** The entirety of the JobResponse definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate {\n }\n /** The JobResponse definition stages. */\n interface DefinitionStages {\n /** The first stage of the JobResponse definition. */\n interface Blank extends WithResourceGroup {\n }\n /** The stage of the JobResponse definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the user\n * subscription.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the JobResponse definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithLocation,\n DefinitionStages.WithTags,\n DefinitionStages.WithProperties,\n DefinitionStages.WithClientTenantId {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n JobResponse create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n JobResponse create(Context context);\n }\n /** The stage of the JobResponse definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location Specifies the supported Azure location where the job should be created.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location Specifies the supported Azure location where the job should be created.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }\n /** The stage of the JobResponse definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Specifies the tags that will be assigned to the job..\n *\n * @param tags Specifies the tags that will be assigned to the job.\n * @return the next definition stage.\n */\n WithCreate withTags(Object tags);\n }\n /** The stage of the JobResponse definition allowing to specify properties. */\n interface WithProperties {\n /**\n * Specifies the properties property: Specifies the job properties.\n *\n * @param properties Specifies the job properties.\n * @return the next definition stage.\n */\n WithCreate withProperties(JobDetails properties);\n }\n /** The stage of the JobResponse definition allowing to specify clientTenantId. */\n interface WithClientTenantId {\n /**\n * Specifies the clientTenantId property: The tenant ID of the client making the request..\n *\n * @param clientTenantId The tenant ID of the client making the request.\n * @return the next definition stage.\n */\n WithCreate withClientTenantId(String clientTenantId);\n }\n }\n /**\n * Begins update for the JobResponse resource.\n *\n * @return the stage of resource update.\n */\n JobResponse.Update update();\n\n /** The template for JobResponse update. */\n interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithCancelRequested,\n UpdateStages.WithState,\n UpdateStages.WithReturnAddress,\n UpdateStages.WithReturnShipping,\n UpdateStages.WithDeliveryPackage,\n UpdateStages.WithLogLevel,\n UpdateStages.WithBackupDriveManifest,\n UpdateStages.WithDriveList {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n JobResponse apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n JobResponse apply(Context context);\n }\n /** The JobResponse update stages. */\n interface UpdateStages {\n /** The stage of the JobResponse update allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Specifies the tags that will be assigned to the job.\n *\n * @param tags Specifies the tags that will be assigned to the job.\n * @return the next definition stage.\n */\n Update withTags(Object tags);\n }\n /** The stage of the JobResponse update allowing to specify cancelRequested. */\n interface WithCancelRequested {\n /**\n * Specifies the cancelRequested property: If specified, the value must be true. The service will attempt to\n * cancel the job. .\n *\n * @param cancelRequested If specified, the value must be true. The service will attempt to cancel the job.\n * @return the next definition stage.\n */\n Update withCancelRequested(Boolean cancelRequested);\n }\n /** The stage of the JobResponse update allowing to specify state. */\n interface WithState {\n /**\n * Specifies the state property: If specified, the value must be Shipping, which tells the Import/Export\n * service that the package for the job has been shipped. The ReturnAddress and DeliveryPackage properties\n * must have been set either in this request or in a previous request, otherwise the request will fail. .\n *\n * @param state If specified, the value must be Shipping, which tells the Import/Export service that the\n * package for the job has been shipped. The ReturnAddress and DeliveryPackage properties must have been\n * set either in this request or in a previous request, otherwise the request will fail.\n * @return the next definition stage.\n */\n Update withState(String state);\n }\n /** The stage of the JobResponse update allowing to specify returnAddress. */\n interface WithReturnAddress {\n /**\n * Specifies the returnAddress property: Specifies the return address information for the job..\n *\n * @param returnAddress Specifies the return address information for the job.\n * @return the next definition stage.\n */\n Update withReturnAddress(ReturnAddress returnAddress);\n }\n /** The stage of the JobResponse update allowing to specify returnShipping. */\n interface WithReturnShipping {\n /**\n * Specifies the returnShipping property: Specifies the return carrier and customer's account with the\n * carrier..\n *\n * @param returnShipping Specifies the return carrier and customer's account with the carrier.\n * @return the next definition stage.\n */\n Update withReturnShipping(ReturnShipping returnShipping);\n }\n /** The stage of the JobResponse update allowing to specify deliveryPackage. */\n interface WithDeliveryPackage {\n /**\n * Specifies the deliveryPackage property: Contains information about the package being shipped by the\n * customer to the Microsoft data center..\n *\n * @param deliveryPackage Contains information about the package being shipped by the customer to the\n * Microsoft data center.\n * @return the next definition stage.\n */\n Update withDeliveryPackage(DeliveryPackageInformation deliveryPackage);\n }\n /** The stage of the JobResponse update allowing to specify logLevel. */\n interface WithLogLevel {\n /**\n * Specifies the logLevel property: Indicates whether error logging or verbose logging is enabled..\n *\n * @param logLevel Indicates whether error logging or verbose logging is enabled.\n * @return the next definition stage.\n */\n Update withLogLevel(String logLevel);\n }\n /** The stage of the JobResponse update allowing to specify backupDriveManifest. */\n interface WithBackupDriveManifest {\n /**\n * Specifies the backupDriveManifest property: Indicates whether the manifest files on the drives should be\n * copied to block blobs..\n *\n * @param backupDriveManifest Indicates whether the manifest files on the drives should be copied to block\n * blobs.\n * @return the next definition stage.\n */\n Update withBackupDriveManifest(Boolean backupDriveManifest);\n }\n /** The stage of the JobResponse update allowing to specify driveList. */\n interface WithDriveList {\n /**\n * Specifies the driveList property: List of drives that comprise the job..\n *\n * @param driveList List of drives that comprise the job.\n * @return the next definition stage.\n */\n Update withDriveList(List<DriveStatus> driveList);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n JobResponse refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n JobResponse refresh(Context context);\n}",
"@Bean\n\tpublic void jobOneDetail() throws SchedulerException {\n\t\tJobDataMap jobDataMap = new JobDataMap();\n\t\tjobDataMap.put(\"jobLauncher\", jobLauncher);\n\t\tjobDataMap.put(\"jobLocator\", jobLocator);\n\n\t\tJobDetail job = JobBuilder.newJob(SimpleJob.class).withIdentity(\"demoJobOne\").setJobData(jobDataMap)\n\t\t\t\t.storeDurably().build();\n\t\tTrigger trigger = TriggerBuilder.newTrigger().forJob(job).withIdentity(\"jobOneTrigger\")\n\t\t\t\t.withSchedule(SimpleScheduleBuilder.simpleSchedule().withIntervalInHours(5).repeatForever()).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(job, trigger);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Regular employees\n\t\t * on monthly basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Regular = new JobDataMap();\n\t\tpayrollJobParam4Regular.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Regular.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Regular.put(\"empType\", \"Regular\");\n\t\tJobDetail payrollJob4Regular = JobBuilder.newJob(PayrollCalculationJob.class).withIdentity(\"payrollJob4Regular\")\n\t\t\t\t.setJobData(payrollJobParam4Regular).storeDurably().build();\n\t\tTrigger payrollTrigger4Regular = TriggerBuilder.newTrigger().forJob(payrollJob4Regular)\n\t\t\t\t.withIdentity(\"payrollTrigger4Regular\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 1 1/1 ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Regular, payrollTrigger4Regular);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Internship\n\t\t * employees on weekly[Saturday] basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Internship = new JobDataMap();\n\t\tpayrollJobParam4Internship.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Internship.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Internship.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Internship = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Internship\").setJobData(payrollJobParam4Internship).storeDurably().build();\n\t\tTrigger payrollTrigger4Internship = TriggerBuilder.newTrigger().forJob(payrollJob4Internship)\n\t\t\t\t.withIdentity(\"payrollTrigger4Internship\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 ? * SAT *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Internship, payrollTrigger4Internship);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Contract employees\n\t\t * on daily basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Contract = new JobDataMap();\n\t\tpayrollJobParam4Contract.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Contract.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Contract.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Contract = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Contract\").setJobData(payrollJobParam4Contract).storeDurably().build();\n\t\tTrigger payrollTrigger4Contract = TriggerBuilder.newTrigger().forJob(payrollJob4Contract)\n\t\t\t\t.withIdentity(\"payrollTrigger4Contract\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 1/1 * ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Contract, payrollTrigger4Contract);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Freelancer\n\t\t * employees on hourly basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Freelancer = new JobDataMap();\n\t\tpayrollJobParam4Freelancer.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Freelancer.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Freelancer.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Freelancer = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Freelancer\").setJobData(payrollJobParam4Freelancer).storeDurably().build();\n\t\tTrigger payrollTrigger4Freelancer = TriggerBuilder.newTrigger().forJob(payrollJob4Freelancer)\n\t\t\t\t.withIdentity(\"payrollTrigger4Freelancer\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0/1 1/1 * ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Freelancer, payrollTrigger4Freelancer);\n\n\t}",
"java.lang.String getJobId();",
"public String getJobProperty() {\r\n return jobProperty;\r\n }",
"public Job loadJob(MetaInfo metaInfo) throws IOException {\n return new CompletedJob(conf, metaInfo.getJobIndexInfo().getJobId(),\n metaInfo.getHistoryFile(), false, metaInfo.getJobIndexInfo().getUser(),\n metaInfo.getConfFile(), aclsMgr);\n }",
"public String getJobId();",
"@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}",
"public JobPayload(UUID id, UUID jobId, Employee author, int version, String details, Date submissionDate) {\n this.id = id;\n this.jobId = jobId;\n this.author = author;\n this.version = version;\n this.details = details;\n this.submissionDate = submissionDate;\n }",
"public JobId job() { return Objects.requireNonNull(job, \"production revisions have no associated job\"); }",
"@Bean\n\tpublic JobDetailFactoryBean reminderPublicationJob(){\n\t\tJobDetailFactoryBean factory = new JobDetailFactoryBean();\n\t\tfactory.setJobClass(ReminderPublicationJob.class);\n\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\tmap.put(\"reminderServicePub\", appContext.getBean(\"reminderService\") );\n\t\tmap.put(\"adminServicePub\", appContext.getBean(\"adminService\") );\n\t\tfactory.setJobDataAsMap(map);\n\t\tfactory.setName(\"reminderPublicationJob\");\n\t\tfactory.setDurability(true);\n\t\treturn factory;\n\t}",
"@Override\n public Void run() throws Exception {\n Callable<Job> jobCreator = ReflectionUtils.newInstance(jobConfig.getJobCreator(), jobConfiguration);\n Job job = jobCreator.call();\n job.submit();\n\n // Blocking mode is only for testing\n if(waitForCompletition) {\n job.waitForCompletion(true);\n }\n\n // And generate event with further job details\n EventRecord event = getContext().createEventRecord(\"job-created\", 1);\n Map<String, Field> eventMap = ImmutableMap.of(\n \"tracking-url\", Field.create(job.getTrackingURL()),\n \"job-id\", Field.create(job.getJobID().toString())\n );\n event.set(Field.create(eventMap));\n getContext().toEvent(event);\n return null;\n }",
"interface WithProperties {\n /**\n * Specifies the properties property: Specifies the job properties.\n *\n * @param properties Specifies the job properties.\n * @return the next definition stage.\n */\n WithCreate withProperties(JobDetails properties);\n }",
"public Long getJobID() {\n return jobID;\n }",
"@Override\n public AsyncJob getJob() {\n final AsyncJob job = s_jobMgr.getAsyncJob(_job.getId());\n return job;\n }",
"protected JobConf createJobConf() \n {\n return new JobConf();\n }",
"private JobInfo getJobInfo\n\t\t(JobFrontendRef frontend)\n\t\t{\n\t\tfinal JobFrontendRef fe = frontend;\n\t\tJobInfo jobinfo = myFrontendToJobMap.get (frontend);\n\t\tif (jobinfo == null)\n\t\t\t{\n\t\t\tjobinfo = new JobInfo\n\t\t\t\t(/*jobnum */ myNextJobNumber ++,\n\t\t\t\t /*state */ JobInfo.State.WAITING,\n\t\t\t\t /*stateTime*/ System.currentTimeMillis(),\n\t\t\t\t /*username */ null,\n\t\t\t\t /*Nn */ 0,\n\t\t\t\t /*Np */ 0,\n\t\t\t\t /*Nt */ 0,\n\t\t\t\t /*count */ 0,\n\t\t\t\t /*backend */ null,\n\t\t\t\t /*cpus */ null,\n\t\t\t\t /*nodeCount*/ 0,\n\t\t\t\t /*frontend */ fe,\n\t\t\t\t /*renewTimer*/\n\t\t\t\t\tmyLeaseTimerThread.createTimer (new TimerTask()\n\t\t\t\t\t\t{\n\t\t\t\t\t\tpublic void action (Timer theTimer)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\trenewTimeout (theTimer, fe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable exc)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tmyLog.log (exc);\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 /*expireTimer*/\n\t\t\t\t\tmyLeaseTimerThread.createTimer (new TimerTask()\n\t\t\t\t\t\t{\n\t\t\t\t\t\tpublic void action (Timer theTimer)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\texpireTimeout (theTimer, fe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable exc)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tmyLog.log (exc);\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 /*jobTimer*/\n\t\t\t\t\tmyLeaseTimerThread.createTimer (new TimerTask()\n\t\t\t\t\t\t{\n\t\t\t\t\t\tpublic void action (Timer theTimer)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tjobTimeout (theTimer, fe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable exc)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tmyLog.log (exc);\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\tmyFrontendToJobMap.put (frontend, jobinfo);\n\t\t\t}\n\t\treturn jobinfo;\n\t\t}",
"private void getLinkDetailsForJob() throws IGCException {\n final String methodName = \"getLinkDetailsForJob\";\n String jobRid = job.getId();\n log.debug(\"Retrieving link details for job: {}\", jobRid);\n IGCSearch igcSearch = new IGCSearch(\"link\");\n igcSearch.addProperties(DataStageConstants.getLinkSearchProperties());\n IGCSearchCondition condition = new IGCSearchCondition(\"job_or_container\", \"=\", jobRid);\n IGCSearchConditionSet conditionSet = new IGCSearchConditionSet(condition);\n igcSearch.addConditions(conditionSet);\n ItemList<Link> links = igcRestClient.search(igcSearch);\n buildMap(linkMap, igcRestClient.getAllPages(null, links));\n }",
"public String getJobId() {\n\t\treturn this.jobId;\n\t}",
"public AbstractJob(){\n \n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The identifier of the job\")\n\n public String getJob() {\n return job;\n }",
"@GET\n @Path(\"{jobId}/jobDetails\")\n @Produces(APPLICATION_JSON)\n public JobInfoDetailsUI getJobDetails(@PathParam(\"jobId\") String jobId, @QueryParam(\"detailLevel\") @DefaultValue(\"0\") int detailLevel, @QueryParam(\"attempt\") @DefaultValue(\"1\") int attempt) throws JobResourceNotFoundException, NamespaceException {\n JobDetails jobDetails;\n UserBitShared.QueryProfile profile = null;\n final JobInfoDetailsUI jobInfoDetailsUI;\n // AttemptIndex will be required to get Index of LastAttempt of a Job which has most suitable information of JobDetails and Profile information\n int attemptIndex = attempt - 1;\n try {\n jobInfoDetailsUI = new JobInfoDetailsUI();\n JobDetailsRequest detailRequest = JobDetailsRequest.newBuilder()\n .setJobId(JobProtobuf.JobId.newBuilder().setId(jobId).build())\n .setUserName(securityContext.getUserPrincipal().getName())\n .setProvideResultInfo(true)\n .build();\n jobDetails = jobService.getJobDetails(detailRequest);\n } catch (JobNotFoundException e) {\n throw JobResourceNotFoundException.fromJobNotFoundException(e);\n }\n\n try {\n final String username = securityContext.getUserPrincipal().getName();\n QueryProfileRequest request = QueryProfileRequest.newBuilder()\n .setJobId(JobProtobuf.JobId.newBuilder()\n .setId(jobDetails.getJobId().getId())\n .build())\n .setAttempt(attemptIndex)\n .setUserName(username)\n .build();\n profile = jobService.getProfile(request);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n jobDetails = ObfuscationUtils.obfuscate(jobDetails);\n profile = ObfuscationUtils.obfuscate(profile);\n\n return jobInfoDetailsUI.of(jobDetails, profile, catalogServiceHelper, reflectionServiceHelper, namespaceService, detailLevel, attemptIndex);\n }",
"public JobDetail getJob(int jobId) \r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tSession session = sessionfactory.openSession();\r\n\t\t\tJobDetail jobDetail = (JobDetail) session.get(JobDetail.class, jobId);\r\n\t\t\tsession.close();\r\n\t\t\treturn jobDetail;\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception Info: \"+e);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public String getJobName() {\n return this.JobName;\n }",
"@Override\n\tpublic String getJobName() {\n\t\treturn model.getJobName();\n\t}",
"public Job currentJob() {\n \t\treturn currentJob;\n \t}",
"public String getJobName() {\n return this.mJob;\n }",
"public int getJobId() ;",
"public JobPayload()\n {\n \n }",
"public String getJobName() {\n return this.jobName;\n }",
"public JobRunResourceIdInner() {\n }",
"@Bean\n\tpublic JobDetailFactoryBean searchCandidatesJob(){\n\t\tJobDetailFactoryBean factory = new JobDetailFactoryBean();\n\t\tfactory.setJobClass(SearchCandidatesJob.class);\n\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\tmap.put(\"searchCandidatesService\", appContext.getBean(\"searchCandidatesService\") );\n\t\tmap.put(\"adminServiceSC\", appContext.getBean(\"adminService\") );\n\t\tfactory.setJobDataAsMap(map);\n\t\tfactory.setName(\"searchCandidatesJob\");\n\t\tfactory.setDurability(true);\n\t\treturn factory;\n\t}",
"@ApiModelProperty(required = true, value = \"JobId of associated job\")\n public String getJobId() {\n return jobId;\n }",
"public JobOrder getJob() {\n\t\tif (job == null) {\n\t\t\tsetJob(findJobOrder(getPlacement().getJobOrder().getId()));\n\t\t}\n\t\treturn job;\n\t}",
"public JobBuilder withIdentity(JobKey jobKey) {\n this.key = jobKey;\n return this;\n }",
"public Job newJob() throws IOException {\n return newJob(outputDir, getConfiguration(), attempt0);\n }",
"public long getJobIDTarget() {\n return jobIDTarget_;\n }",
"public String getJobID() {\n\t\t\treturn JobID;\n\t\t}",
"public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}",
"public Job(int id) {\n this.id = id;\n }",
"public ObservableList<Job> getJobData() {\n return jobData;\n }",
"public String getJobId() {\n return jobId;\n }",
"JobConf getJobConf() {\n return jobConf;\n }",
"@Override\n public String build() {\n final Result result = build.getResult();\n\n // Prepare title\n final String title = String.format(\"Job: %s Status: %s\", getJobName(), result != null ? result.toString() : \"None\");\n // Prepare text\n final String text = String.format(\"%s %s %s [View](%s)\", ICON_STATUS.get(build.getResult()), getCause(),\n getTime(), getUrl());\n\n // Prepare message for attachments\n final JsonObject msg = new JsonObject();\n msg.addProperty(\"text\", text);\n msg.addProperty(\"color\", ifSuccess() ? \"#228a00\" : \"#8B0000\");\n msg.addProperty(\"title\", title);\n\n // Prepare attachments\n final JsonArray attachments = new JsonArray();\n attachments.add(msg);\n\n // Prepare final json\n final JsonObject json = new JsonObject();\n json.addProperty(\"username\", \"Jenkins\");\n json.add(\"attachments\", attachments);\n\n return json.toString();\n }",
"@Override\n public String getType() {\n return Const.JOB;\n }",
"public String getJobName() {\n return jobName;\n }",
"public String getJobName() {\n return jobName;\n }",
"public long getJobIDTarget() {\n return jobIDTarget_;\n }",
"public static JobBuilder newJob(Class<? extends Job> jobClass) {\n JobBuilder b = new JobBuilder();\n b.ofType(jobClass);\n return b;\n }",
"@Override\n\tpublic PdiJobWrapper createJob(String jobFile, String[] args) {\n\t\ttry {\n\t\t\tLOGGER.info(\"Creating job based upon \" + jobFile);\n\t\t\tJobMeta jobMeta = new JobMeta(this.getLogWriter(), jobFile, null, null);\n\t\t\tJob job = new Job(this.getLogWriter(), this.getStepLoader(), null, jobMeta);\n\t\t\tjob.getJobMeta().setArguments(args);\n\n\t\t\t// setup internal and external variables of job\n\t\t\tjob.initializeVariablesFrom(null);\n\t\t\tjob.getJobMeta().setInternalKettleVariables(job);\n\t\t\tjob.copyParametersFrom(job.getJobMeta());\n\t\t\tjob.activateParameters();\n\t\t\treturn new PdiJob324(job);\n\t\t} catch (KettleException e) {\n\t\t\tthrow new PdiException(e);\n\t\t}\n\t}",
"interface WithConstraints {\n /**\n * Specifies constraints.\n * @param constraints Constraints associated with the Job\n * @return the next definition stage\n */\n WithCreate withConstraints(JobBasePropertiesConstraints constraints);\n }",
"public Job() {\r\n\t\tSystem.out.println(\"Constructor\");\r\n\t}",
"public JobBuilder withDescription(String jobDescription) {\n this.description = jobDescription;\n return this;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getCreatedAt() != null)\n sb.append(\"CreatedAt: \").append(getCreatedAt()).append(\",\");\n if (getDomainId() != null)\n sb.append(\"DomainId: \").append(getDomainId()).append(\",\");\n if (getEndedAt() != null)\n sb.append(\"EndedAt: \").append(getEndedAt()).append(\",\");\n if (getFailureDetails() != null)\n sb.append(\"FailureDetails: \").append(getFailureDetails()).append(\",\");\n if (getJobId() != null)\n sb.append(\"JobId: \").append(getJobId()).append(\",\");\n if (getJobName() != null)\n sb.append(\"JobName: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getJobProgress() != null)\n sb.append(\"JobProgress: \").append(getJobProgress()).append(\",\");\n if (getJobStatus() != null)\n sb.append(\"JobStatus: \").append(getJobStatus());\n sb.append(\"}\");\n return sb.toString();\n }",
"java.lang.String getTargetJobName();",
"public void setJobInfo(String jobInfo) {\n this.jobInfo = jobInfo;\n }",
"public JobID() {\n super();\n }",
"public BNHaystackLearnStructureJob() {}",
"com.google.protobuf.ByteString\n getJobIdBytes();",
"public JobData(Job job,\n JobContext jContext,\n TaskAttemptContext tContext,\n ManifestCommitter committer) {\n this.job = job;\n this.jContext = jContext;\n this.tContext = tContext;\n this.committer = committer;\n conf = job.getConfiguration();\n }"
] | [
"0.692324",
"0.68894076",
"0.68417495",
"0.65761304",
"0.65742475",
"0.65152335",
"0.64612395",
"0.63820463",
"0.63428944",
"0.62572926",
"0.6247791",
"0.6175251",
"0.61708736",
"0.6143163",
"0.61303616",
"0.6078188",
"0.6036592",
"0.6021522",
"0.6020073",
"0.5959473",
"0.59311247",
"0.59072185",
"0.59059995",
"0.5898552",
"0.58506566",
"0.5811764",
"0.5791827",
"0.57336843",
"0.5712726",
"0.5669684",
"0.5611259",
"0.56062835",
"0.5575015",
"0.5569938",
"0.5569938",
"0.5569938",
"0.5556153",
"0.55313414",
"0.5510708",
"0.5490687",
"0.548824",
"0.5485055",
"0.5477917",
"0.5475697",
"0.5460571",
"0.54601395",
"0.5457308",
"0.5454834",
"0.5443871",
"0.542595",
"0.5417829",
"0.54153264",
"0.54040337",
"0.5404032",
"0.540046",
"0.53667235",
"0.5349644",
"0.5325038",
"0.5321505",
"0.53068143",
"0.5296932",
"0.5291095",
"0.52790934",
"0.5275854",
"0.5263783",
"0.52627933",
"0.5261927",
"0.5249255",
"0.52341825",
"0.5233523",
"0.5208549",
"0.5208154",
"0.519353",
"0.5190399",
"0.51901907",
"0.5187675",
"0.5186743",
"0.5182417",
"0.5180877",
"0.51801544",
"0.51711506",
"0.5169869",
"0.51683116",
"0.51660544",
"0.51618356",
"0.51600385",
"0.51600385",
"0.5156508",
"0.51516724",
"0.51504",
"0.5136517",
"0.5135151",
"0.5124764",
"0.51175636",
"0.5085877",
"0.5080787",
"0.5075755",
"0.5073532",
"0.5067696",
"0.50676286"
] | 0.74849373 | 0 |
Use a JobKey with the given name and default group to identify the JobDetail. If none of the 'withIdentity' methods are set on the JobBuilder, then a random, unique JobKey will be generated. | public JobBuilder withIdentity(String name) {
key = new JobKey(name, null);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JobBuilder withIdentity(String name, String group) {\n key = new JobKey(name, group);\n return this;\n }",
"public JobBuilder withIdentity(JobKey jobKey) {\n this.key = jobKey;\n return this;\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final IJobDetail jobDetail)\n {\n final JobKey k = jobDetail.getKey ();\n if (k.getName () == null)\n throw new IllegalArgumentException (\"The given job has not yet had a name assigned to it.\");\n m_aJobKey = k;\n return this;\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final String jobName, final String jobGroup)\n {\n m_aJobKey = new JobKey (jobName, jobGroup);\n return this;\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> withIdentity (final String name, final String group)\n {\n m_aTriggerKey = new TriggerKey (name, group);\n return this;\n }",
"private static String createNewJobid(V2JobDefinition jobDefinition, NamedJobs namedJobs) throws InvalidNamedJobException {\n final NamedJobs.JobIdForSubmit jobIdForSubmit = namedJobs.getJobIdForSubmit(jobDefinition.getName(), jobDefinition);\n return jobIdForSubmit.getJobId();\n }",
"public static JobID generate() {\n return new JobID();\n }",
"private String generateExecutableIDKey(int jobID, int subJobID) {\n\t\treturn jobID +\"/\" + subJobID;\n\t}",
"public JDK8TriggerBuilder <T> forJob (final JobKey keyOfJobToFire)\n {\n m_aJobKey = keyOfJobToFire;\n return this;\n }",
"String getLongNameKey();",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final String jobName)\n {\n m_aJobKey = new JobKey (jobName, null);\n return this;\n }",
"public String createCacheKey() {\n return \"organization.\" + userEmail;\n }",
"public JobID() {\n super();\n }",
"private JobDetail createJobDetail(SchedulerJobEntity schedulerEntity) throws Exception {\n\n\t\tJobDetail jobDetail = null;\n\t\tJobDataMap jobDataMap = createJobDataMap(schedulerEntity.getJobName(), schedulerEntity.getInvokeParam());\n\n\t\tClass<? extends Job> cls = jobRegistry.findJobByName(schedulerEntity.getJobGroup()).orElseThrow();\n\t\t\n\t\tjobDetail = JobBuilder.newJob(cls)\n\t\t\t\t.withIdentity(schedulerEntity.getJobName(), schedulerEntity.getJobGroup()).setJobData(jobDataMap)\n\t\t\t\t.requestRecovery().build();\n\t\t\n\t\treturn jobDetail;\n\t}",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"public JobBuilder() {\r\n job = new Job();\r\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"GroupQueryBuilder setKey(String key);",
"public JobBuilder id(int id) {\r\n job.setId(id);\r\n return this;\r\n }",
"public JobDetail build() {\n return null;\n }",
"public AbstractTrigger(String name, String group, String jobName, String jobGroup) {\n setName(name);\n setGroup(group);\n setJobName(jobName);\n setJobGroup(jobGroup);\n }",
"public static JobBuilder newJob() {\n return new JobBuilder();\n }",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public Builder setJobId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"public void setOverrideGroupKey(String overrideGroupKey) {\n this.overrideGroupKey = overrideGroupKey;\n groupKey = groupKey();\n }",
"public GroupTrainerCacheKey<Void> key() {\n return key;\n }",
"Optional<BuildCacheKey> getKey();",
"private Job(com.google.protobuf.GeneratedMessage.ExtendableBuilder<cb.Careerbuilder.Job, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private Builder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n super(other);\n }",
"java.lang.String getJobId();",
"private synchronized int generateJobID() {\n\t\t/* generate JobID */\n\t\tint jobID = lastJobID;\n\t\tlastJobID += 1;\n\t\treturn jobID;\n\t}",
"public static com.opentext.bn.converters.avro.entity.ContentKey.Builder newBuilder(com.opentext.bn.converters.avro.entity.ContentKey.Builder other) {\n return new com.opentext.bn.converters.avro.entity.ContentKey.Builder(other);\n }",
"public Trigger buildJobTrigger(JobDetail jobDetail) {\n\t\tint retriesAmount = jobDetail.getJobDataMap().getIntValue(RetryJob.AMOUNT_RETRIES_KEY);\n\t\tint delay = RetryService.INITIAL_DELAY * (int) Math.pow(RetryService.EXPONENTIAL_BASE, (retriesAmount - 1));\n\t\tDate fireDate = new Date(System.currentTimeMillis() + delay);\n\t\tlog.info(\"Building job with delay \" + delay + \" seconds \" + fireDate);\n\t\treturn TriggerBuilder.newTrigger()\n .forJob(jobDetail)\n .withIdentity(jobDetail.getKey().getName(), \"retry-email-triggers\")\n .withDescription(\"Retry Send Email Trigger\")\n .startAt(fireDate)\n .withSchedule(SimpleScheduleBuilder.simpleSchedule().withMisfireHandlingInstructionFireNow())\n .build();\n }",
"WithMembers withExistingJobAgent(String resourceGroupName, String serverName, String jobAgentName);",
"public JobBuilder name(String name) {\r\n job.setName(name);\r\n return this;\r\n }",
"public static String specifyGroup() {\n return holder.format(\"specifyGroup\");\n }",
"@Test\n public void testDefault()\n {\n final GroupImpl.Builder builder = new GroupImpl.Builder();\n\n final Group testSubject = builder.build();\n\n assertThat(testSubject.getGroupID(), equalTo(0));\n assertThat(testSubject.getCategoryID(), equalTo(0));\n assertThat(testSubject.getGroupName(), equalTo(EMPTY_STRING));\n assertThat(testSubject.getDescription(), equalTo(EMPTY_STRING));\n assertThat(testSubject.getIconID(), equalTo(0));\n assertThat(testSubject.isPublished(), equalTo(false));\n assertThat(testSubject.isUseBasePrice(), equalTo(false));\n assertThat(testSubject.isFittableNonSingleton(), equalTo(false));\n assertThat(testSubject.isAnchored(), equalTo(false));\n assertThat(testSubject.isAnchorable(), equalTo(false));\n assertThat(testSubject.isAllowRecycler(), equalTo(false));\n assertThat(testSubject.isAllowManufacture(), equalTo(false));\n assertThat(testSubject.isAllowManufacture(), equalTo(false));\n }",
"@Override\n\tpublic String resumeJob(String jobName, String jobGroup) throws SchedulerException {\n\n\t\tJobKey jobKey = new JobKey(jobName, jobGroup);\n\t\tJobDetail jobDetail = scheduler.getJobDetail(jobKey);\n\t\tif (jobDetail == null) {\n\t\t\treturn \"fail\";\n\t\t} else {\n\t\t\tscheduler.resumeJob(jobKey);\n\t\t\treturn \"success\";\n\t\t}\n\t}",
"public Builder clearJobId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n jobId_ = getDefaultInstance().getJobId();\n onChanged();\n return this;\n }",
"protected abstract String getJobSubmitId();",
"@Test\n\tpublic void getIdTest() {\n\t\tAssert.assertEquals(DEFAULT_ID, getDefaultKey().getId());\n\t}",
"private Builder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.localId)) {\n this.localId = data().deepCopy(fields()[1].schema(), other.localId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.serviceId)) {\n this.serviceId = data().deepCopy(fields()[2].schema(), other.serviceId);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.args)) {\n this.args = data().deepCopy(fields()[3].schema(), other.args);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.inputs)) {\n this.inputs = data().deepCopy(fields()[4].schema(), other.inputs);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.outputs)) {\n this.outputs = data().deepCopy(fields()[5].schema(), other.outputs);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.timestamp)) {\n this.timestamp = data().deepCopy(fields()[6].schema(), other.timestamp);\n fieldSetFlags()[6] = true;\n }\n }",
"public void setJOB_ID(BigDecimal JOB_ID) {\r\n this.JOB_ID = JOB_ID;\r\n }",
"public static com.opentext.bn.converters.avro.entity.ContentKey.Builder newBuilder(com.opentext.bn.converters.avro.entity.ContentKey other) {\n return new com.opentext.bn.converters.avro.entity.ContentKey.Builder(other);\n }",
"public DefaultJobSelectionStrategy() {\n }",
"public Builder key(String key) {\n this.key = key;\n return this;\n }",
"public static GroupKey getGroupKey(int groupId) {\n return new DefaultGroupKey((Integer.toString(groupId)).getBytes());\n }",
"@Test\n public void testGroupBookingsReportJob() throws Exception {\n Job allocJob = new AllocationScraperJob();\n allocJob.setStatus( JobStatus.completed );\n dao.insertJob( allocJob );\n\n // setup a job to find reservations with more than X guests\n Job j = new GroupBookingsReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Override\r\n protected Text generateGroupKey(IntermediateData tmo)\r\n {\n String line = ((Text) tmo.getData()).toString();\r\n String[] tokens = line.split(Main.INPUT_SPLIT);\r\n String groupkey = tokens[0];\r\n return new Text(groupkey);\r\n }",
"public void setGroupKey(String GroupKey) {\n this.GroupKey = GroupKey;\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-06 12:50:58.282 -0400\", hash_original_method = \"2053F7A68C82ABE32C2AF1BAEC4B5064\", hash_generated_method = \"ADA06475869C2F7BC91A27631CA3BF7E\")\n \npublic PrintJobId getId() {\n return mCachedInfo.getId();\n }",
"public Builder setJobIDTarget(long value) {\n bitField0_ |= 0x00000010;\n jobIDTarget_ = value;\n onChanged();\n return this;\n }",
"private static OmKeyInfo buildOmKeyInfo(String volume,\n String bucket,\n String key,\n String fileName,\n long objectID,\n long parentObjectId) {\n return new OmKeyInfo.Builder()\n .setBucketName(bucket)\n .setVolumeName(volume)\n .setKeyName(key)\n .setFileName(fileName)\n .setReplicationConfig(\n StandaloneReplicationConfig.getInstance(\n HddsProtos.ReplicationFactor.ONE))\n .setObjectID(objectID)\n .setParentObjectID(parentObjectId)\n .build();\n }",
"@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}",
"public String getOverrideGroupKey() {\n return overrideGroupKey;\n }",
"public String getJobId();",
"WithCreate withProperties(JobDetails properties);",
"public interface Job {\n\n /** unique id for this job that is used as a reference in the service methods */\n String getId();\n\n /** job executor identification that has acquired this job and is going to execute it */\n String getLockOwner();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null. */\n Date getDueDate();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null.\n * @deprecated call {@link #getDueDate()} instead */\n @Deprecated\n Date getDuedate();\n\n /** exception that occurred during the last execution of this job. The transaction \n * of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n String getException();\n\n /** number of retries left. This is only decremented when an exception occurs during job \n * execution. The transaction of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n int getRetries();\n\n /** indicates if this job should be executed separate from any other job \n * in the same process instance */\n boolean isExclusive();\n\n /** the related execution */\n Execution getExecution();\n\n /** the related process instance */\n Execution getProcessInstance();\n\n Date getLockExpirationTime();\n\n}",
"public JobID(long lowerPart, long upperPart) {\n super(lowerPart, upperPart);\n }",
"interface WithJobAgent {\n /**\n * Specifies resourceGroupName, serverName, jobAgentName.\n * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal\n * @param serverName The name of the server\n * @param jobAgentName The name of the job agent\n * @return the next definition stage\n */\n WithMembers withExistingJobAgent(String resourceGroupName, String serverName, String jobAgentName);\n }",
"@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}",
"public JIssueGroup() {\n this(DSL.name(\"issue_group\"), null);\n }",
"interface WithExperimentName {\n /**\n * Specifies experimentName.\n * @param experimentName Describe the experiment information of the job\n * @return the next definition stage\n */\n WithCreate withExperimentName(String experimentName);\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The identifier of the job\")\n\n public String getJob() {\n return job;\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> withIdentity (final TriggerKey triggerKey)\n {\n m_aTriggerKey = triggerKey;\n return this;\n }",
"public String getGroupKey() {\n return groupKey;\n }",
"long getJobIDTarget();",
"protected String generateLockId() {\n return AkkaUtils.nextId();\n }",
"private static OmKeyInfo buildOmKeyInfo(String volume,\n String bucket,\n String key,\n String fileName,\n long objectID,\n long parentObjectId,\n long dataSize) {\n return new OmKeyInfo.Builder()\n .setBucketName(bucket)\n .setVolumeName(volume)\n .setKeyName(key)\n .setFileName(fileName)\n .setReplicationConfig(\n StandaloneReplicationConfig.getInstance(\n HddsProtos.ReplicationFactor.ONE))\n .setObjectID(objectID)\n .setParentObjectID(parentObjectId)\n .setDataSize(dataSize)\n .build();\n }",
"private Builder(com.opentext.bn.converters.avro.entity.ContentKey.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.keyName)) {\n this.keyName = data().deepCopy(fields()[0].schema(), other.keyName);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.keyValue)) {\n this.keyValue = data().deepCopy(fields()[1].schema(), other.keyValue);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.keyType)) {\n this.keyType = data().deepCopy(fields()[2].schema(), other.keyType);\n fieldSetFlags()[2] = true;\n }\n }",
"protected static String buildJobName(String jobIdInput) {\n String jobId = jobIdInput.replace(\"_\", \"-\");\n int[] invalidChars = jobId\n .chars()\n .filter(c -> c != '-' && !StringUtils.isAlphanumeric(String.valueOf((char) c)))\n .toArray();\n for (int invalidChar : invalidChars) {\n jobId = jobId.replace(((char) invalidChar), '-');\n }\n jobId = jobId.toLowerCase();\n boolean jobIdWithInvalidChars = !jobIdInput.equals(jobId);\n\n String jobName = (\"opencga-job-\" + jobId);\n if (jobName.length() > 63 || jobIdWithInvalidChars && jobName.length() > (63 - 8)) {\n // Job Id too large. Shrink it!\n // NOTE: This shrinking MUST be predictable!\n jobName = jobName.substring(0, 27)\n + \"-\" + DigestUtils.md5Hex(jobIdInput).substring(0, 6).toLowerCase() + \"-\"\n + jobName.substring(jobName.length() - 27);\n } else if (jobIdWithInvalidChars) {\n jobName += \"-\" + DigestUtils.md5Hex(jobIdInput).substring(0, 6).toLowerCase();\n }\n return jobName;\n }",
"public PaymentRecordKey(String recordId, String ordersId, String buildDay) {\n this.recordId = recordId;\n this.ordersId = ordersId;\n this.buildDay = buildDay;\n }",
"public Job(int id) {\n this.id = id;\n }",
"public Job(int id, String name, Recruiter recruiter, int fee, String category)\n {\n this.id = id;\n this.name = name;\n this.recruiter = recruiter;\n this.fee = fee;\n this.category = category;\n }",
"void setJobName(String jobName);",
"public String getJobID() {\n\t\t\treturn JobID;\n\t\t}",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder clearId() {\n id = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"private Builder(com.opentext.bn.converters.avro.entity.ContentKey other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.keyName)) {\n this.keyName = data().deepCopy(fields()[0].schema(), other.keyName);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.keyValue)) {\n this.keyValue = data().deepCopy(fields()[1].schema(), other.keyValue);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.keyType)) {\n this.keyType = data().deepCopy(fields()[2].schema(), other.keyType);\n fieldSetFlags()[2] = true;\n }\n }",
"default String resolve(\n final String group,\n final String key,\n final String defaultValue\n )\n {\n Map<String, Map<String, String>> data = getData();\n return null != data && null != data.get(group) && null != data.get(group).get(key)\n ? data.get(group).get(key)\n : defaultValue;\n }",
"AsyncJob getPseudoJob(long accountId, long userId);",
"private void runWithJobId() {\n if (jobName.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NAME);\n return;\n }\n if (numJobsToDelete.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NUMBER_OF_JOBS);\n return;\n }\n if (daysOld.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_DAYS_OLD);\n return;\n }\n response.setPayload(requestDeletion(ImmutableSet.of(jobId.get()), true /* verbose */));\n }",
"public static Key getKey(String campusId, String buildingId) {\n\t\tKey campusKey = Campus.getKey(campusId);\n\t\tlong id = Long.parseLong(buildingId);\n\t\tKey buildingKey = KeyFactory.createKey(campusKey, ENTITY_KIND, id);\n\t\treturn buildingKey;\n\t}",
"public String getFullJobName() {\n return jobGroup + \".\" + jobName;\n }",
"@Override\n public final ModelMessage setDefaultId(final String newDefaultId) {\n super.setDefaultId(newDefaultId);\n return this;\n }",
"default String getKey() {\n return key(getClassName(), getName());\n }",
"public JobId job() { return Objects.requireNonNull(job, \"production revisions have no associated job\"); }",
"public JobBuilder withDescription(String jobDescription) {\n this.description = jobDescription;\n return this;\n }",
"public Job add(String jobName, Job group) {\n assert this != group;\n\n for (Stage s : group.stages.values()) {\n Stage copy = s.clone();\n copy.name = jobName + \".\" + s.name;\n add(copy);\n }\n\n for (Connection c : group.connections) {\n Connection copy = c.clone();\n copy.input.setStageName(jobName + \".\" + copy.input.getStageName());\n\n for (ConnectionEndPoint output : copy.outputs) {\n output.setStageName(jobName + \".\" + output.getStageName());\n }\n\n connections.add(copy);\n }\n return this;\n }",
"public void setGroup(String group) {\n if (group != null && group.trim().length() == 0) {\n throw new IllegalArgumentException(\n \"Group name cannot be an empty string.\");\n }\n\n if(group == null) {\n group = Scheduler.DEFAULT_GROUP;\n }\n\n this.group = group;\n this.key = null;\n }",
"public Builder clearJobIDTarget() {\n bitField0_ = (bitField0_ & ~0x00000010);\n jobIDTarget_ = -1L;\n onChanged();\n return this;\n }",
"public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}",
"public Long getJobID() {\n return jobID;\n }",
"@Test\n public void parameterTest () throws SchedulerException, InterruptedException {\n // define the job and tie it to our SimpleJob class\n JobDetail job = JobBuilder.newJob(DataParseJob.class)\n .withIdentity(\"dataParseJob\", \"group2\") // name \"dataParseJob\", group \"group2\"\n .usingJobData(\"jobSays\", \"Hello World!\")\n .usingJobData(\"myFloatValue\", 3.141f)\n .build();\n\n // Trigger the job to run now, and then repeat every 40 seconds\n Trigger trigger = TriggerBuilder.newTrigger()\n .withIdentity(\"trigger2\", \"group2\")\n .startNow()\n .withSchedule(SimpleScheduleBuilder.simpleSchedule()\n .withIntervalInSeconds(10)\n .repeatForever())\n .build();\n\n // Tell quartz to schedule the job using our trigger\n scheduler.scheduleJob(job, trigger);\n\n // make quartz keep going\n while(true) {\n Thread.sleep(3000);\n }\n }",
"@DefaultMessage(\"Locking record for Update...\")\n @Key(\"gen.lockForUpdate\")\n String gen_lockForUpdate();",
"private Trigger createSimpleJob(SchedulerJobEntity schedulerEntity, JobDetail jobDetail) throws ParseException {\n\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tDate date = df.parse(schedulerEntity.getStartTime());\n\n\t\tSimpleScheduleBuilder simpleScheduleBuilder = null;\n\n\t\tif (schedulerEntity.getRepeatCount() >= 0) {\n\t\t\t\n\t\t\tsimpleScheduleBuilder = SimpleScheduleBuilder.simpleSchedule()\n\t\t\t\t\t.withRepeatCount(schedulerEntity.getRepeatCount())\n\t\t\t\t\t.withIntervalInMilliseconds(schedulerEntity.getRepeatTime());\n\t\t\t\n\t\t} else {\n\t\t\tsimpleScheduleBuilder = SimpleScheduleBuilder.simpleSchedule().repeatForever()\n\t\t\t\t\t.withIntervalInMilliseconds(schedulerEntity.getRepeatTime());\n\t\t}\n\n\t\treturn TriggerBuilder.newTrigger().withIdentity(schedulerEntity.getJobName(), schedulerEntity.getJobGroup())\n\t\t\t\t.forJob(jobDetail).usingJobData(jobDetail.getJobDataMap()).startAt(date)\n\t\t\t\t.withDescription(schedulerEntity.getJobName()).withSchedule(simpleScheduleBuilder).build();\n\t}",
"public Builder(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n } else {\n this.name = name;\n this.id = UUID.randomUUID();\n }\n }",
"@Bean\n\tpublic void jobOneDetail() throws SchedulerException {\n\t\tJobDataMap jobDataMap = new JobDataMap();\n\t\tjobDataMap.put(\"jobLauncher\", jobLauncher);\n\t\tjobDataMap.put(\"jobLocator\", jobLocator);\n\n\t\tJobDetail job = JobBuilder.newJob(SimpleJob.class).withIdentity(\"demoJobOne\").setJobData(jobDataMap)\n\t\t\t\t.storeDurably().build();\n\t\tTrigger trigger = TriggerBuilder.newTrigger().forJob(job).withIdentity(\"jobOneTrigger\")\n\t\t\t\t.withSchedule(SimpleScheduleBuilder.simpleSchedule().withIntervalInHours(5).repeatForever()).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(job, trigger);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Regular employees\n\t\t * on monthly basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Regular = new JobDataMap();\n\t\tpayrollJobParam4Regular.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Regular.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Regular.put(\"empType\", \"Regular\");\n\t\tJobDetail payrollJob4Regular = JobBuilder.newJob(PayrollCalculationJob.class).withIdentity(\"payrollJob4Regular\")\n\t\t\t\t.setJobData(payrollJobParam4Regular).storeDurably().build();\n\t\tTrigger payrollTrigger4Regular = TriggerBuilder.newTrigger().forJob(payrollJob4Regular)\n\t\t\t\t.withIdentity(\"payrollTrigger4Regular\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 1 1/1 ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Regular, payrollTrigger4Regular);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Internship\n\t\t * employees on weekly[Saturday] basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Internship = new JobDataMap();\n\t\tpayrollJobParam4Internship.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Internship.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Internship.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Internship = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Internship\").setJobData(payrollJobParam4Internship).storeDurably().build();\n\t\tTrigger payrollTrigger4Internship = TriggerBuilder.newTrigger().forJob(payrollJob4Internship)\n\t\t\t\t.withIdentity(\"payrollTrigger4Internship\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 ? * SAT *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Internship, payrollTrigger4Internship);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Contract employees\n\t\t * on daily basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Contract = new JobDataMap();\n\t\tpayrollJobParam4Contract.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Contract.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Contract.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Contract = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Contract\").setJobData(payrollJobParam4Contract).storeDurably().build();\n\t\tTrigger payrollTrigger4Contract = TriggerBuilder.newTrigger().forJob(payrollJob4Contract)\n\t\t\t\t.withIdentity(\"payrollTrigger4Contract\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 1/1 * ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Contract, payrollTrigger4Contract);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Freelancer\n\t\t * employees on hourly basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Freelancer = new JobDataMap();\n\t\tpayrollJobParam4Freelancer.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Freelancer.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Freelancer.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Freelancer = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Freelancer\").setJobData(payrollJobParam4Freelancer).storeDurably().build();\n\t\tTrigger payrollTrigger4Freelancer = TriggerBuilder.newTrigger().forJob(payrollJob4Freelancer)\n\t\t\t\t.withIdentity(\"payrollTrigger4Freelancer\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0/1 1/1 * ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Freelancer, payrollTrigger4Freelancer);\n\n\t}",
"@Override\n default String getKey(){\n return key();\n }",
"public static SuperCompanyCreate buildSuperCompanyCreate(UUID configurationId, String groupTemplate) {\n\t\tString name = \"ZYX_\" + PersonalInfoGenerator.generateOrcName() + \" Of \"\n\t\t\t\t+ PersonalInfoGenerator.generateOrcName();\n\t\treturn SuperCompanyCreate.builder().address(buildRandomAddress())\n\t\t\t\t.backofficeResetPasswordUrl(\"admin.glide.\" + name + \".com/#/reset-password/{resetPasswordToken}\")\n\t\t\t\t.capital(randInt(0, 999999)).configurationId(configurationId)\n\t\t\t\t.durationAfterTripToAllowLockUnlock(ThreadLocalRandom.current().nextLong(0, 20))\n\t\t\t\t.email(name + \"@\" + name + \".com\").employerCertificateRequired(false)\n\t\t\t\t.employerCertificateUrl(\"https://\" + name + \".com\")\n\t\t\t\t.endBookingDamageReportMandatory(RandomUtils.nextBoolean())\n\t\t\t\t.fiscalNumber(String.valueOf(randInt(100, 99999)) + PersonalInfoGenerator.generateName(5))\n\t\t\t\t.identityDocumentRequired(false).invoiceDelegate(RandomUtils.nextBoolean())\n\t\t\t\t.invoiceLabel(\"A\" + randInt(1000, 99999)).legalForm(\"Legal form: \" + name).name(name + \" Hoard Faction\")\n\t\t\t\t.phoneNumber(buildRandomFrPhoneNumber()).secondaryEmail(name + \"@\" + name + \".fr\")\n\t\t\t\t.secondaryPhoneNumber(buildRandomFrPhoneNumber())\n\t\t\t\t.startBookingDamageReportMandatory(RandomUtils.nextBoolean()).templateGroup(groupTemplate)\n\t\t\t\t.termsOfSubscriptionUrl(\"https://subscription-\" + name + \".com\")\n\t\t\t\t.termsOfUseUrl(\"https://terms-\" + name + \".com\").useExternalInvoiceSystem(RandomUtils.nextBoolean())\n\t\t\t\t.websiteConfirmSubscriptionUrl(\n\t\t\t\t\t\t\"www.glide.\" + name + \".com/#/validate-account/{confirmSubscriptionToken}\")\n\t\t\t\t.websiteResetPasswordUrl(\"www.glide.\" + name + \".com/#/reset-password/{resetPasswordToken}\").build();\n\t}",
"java.lang.String getTargetJobName();"
] | [
"0.72158694",
"0.66913605",
"0.5728085",
"0.5715184",
"0.52555007",
"0.5103393",
"0.5102803",
"0.4844269",
"0.48359352",
"0.47809696",
"0.4756596",
"0.4718378",
"0.4708219",
"0.47070962",
"0.46622178",
"0.46301386",
"0.46287453",
"0.46215516",
"0.46097144",
"0.4573254",
"0.45672747",
"0.45651627",
"0.45378652",
"0.45308235",
"0.4528965",
"0.45222095",
"0.45065585",
"0.44874793",
"0.44871062",
"0.44767877",
"0.44747084",
"0.44515878",
"0.445033",
"0.4429659",
"0.442866",
"0.4421229",
"0.44195682",
"0.44156024",
"0.44144475",
"0.44091323",
"0.43903306",
"0.438931",
"0.43871433",
"0.4375279",
"0.4355234",
"0.4328735",
"0.43273562",
"0.43032208",
"0.42912054",
"0.4285052",
"0.42767572",
"0.42713445",
"0.42695975",
"0.42670697",
"0.4262798",
"0.42587838",
"0.42511633",
"0.42504075",
"0.42480677",
"0.4247511",
"0.4240639",
"0.42343268",
"0.42305818",
"0.4228757",
"0.4228284",
"0.4222552",
"0.42185307",
"0.42162186",
"0.42143366",
"0.42134726",
"0.42063802",
"0.42037925",
"0.42003462",
"0.4199879",
"0.4197078",
"0.41711396",
"0.41644788",
"0.4160727",
"0.41589513",
"0.4154017",
"0.41529143",
"0.41448674",
"0.41379824",
"0.4135536",
"0.41338757",
"0.41295776",
"0.4123599",
"0.4121797",
"0.41215423",
"0.41190124",
"0.41141644",
"0.41133288",
"0.41093513",
"0.41028088",
"0.4098845",
"0.4093299",
"0.40925527",
"0.40904292",
"0.40892795",
"0.4087422"
] | 0.6499617 | 2 |
Use a JobKey with the given name and group to identify the JobDetail. If none of the 'withIdentity' methods are set on the JobBuilder, then a random, unique JobKey will be generated. | public JobBuilder withIdentity(String name, String group) {
key = new JobKey(name, group);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JobBuilder withIdentity(JobKey jobKey) {\n this.key = jobKey;\n return this;\n }",
"public JobBuilder withIdentity(String name) {\n key = new JobKey(name, null);\n return this;\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final String jobName, final String jobGroup)\n {\n m_aJobKey = new JobKey (jobName, jobGroup);\n return this;\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final IJobDetail jobDetail)\n {\n final JobKey k = jobDetail.getKey ();\n if (k.getName () == null)\n throw new IllegalArgumentException (\"The given job has not yet had a name assigned to it.\");\n m_aJobKey = k;\n return this;\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> withIdentity (final String name, final String group)\n {\n m_aTriggerKey = new TriggerKey (name, group);\n return this;\n }",
"private static String createNewJobid(V2JobDefinition jobDefinition, NamedJobs namedJobs) throws InvalidNamedJobException {\n final NamedJobs.JobIdForSubmit jobIdForSubmit = namedJobs.getJobIdForSubmit(jobDefinition.getName(), jobDefinition);\n return jobIdForSubmit.getJobId();\n }",
"public static JobID generate() {\n return new JobID();\n }",
"private String generateExecutableIDKey(int jobID, int subJobID) {\n\t\treturn jobID +\"/\" + subJobID;\n\t}",
"String getLongNameKey();",
"public JDK8TriggerBuilder <T> forJob (final JobKey keyOfJobToFire)\n {\n m_aJobKey = keyOfJobToFire;\n return this;\n }",
"private JobDetail createJobDetail(SchedulerJobEntity schedulerEntity) throws Exception {\n\n\t\tJobDetail jobDetail = null;\n\t\tJobDataMap jobDataMap = createJobDataMap(schedulerEntity.getJobName(), schedulerEntity.getInvokeParam());\n\n\t\tClass<? extends Job> cls = jobRegistry.findJobByName(schedulerEntity.getJobGroup()).orElseThrow();\n\t\t\n\t\tjobDetail = JobBuilder.newJob(cls)\n\t\t\t\t.withIdentity(schedulerEntity.getJobName(), schedulerEntity.getJobGroup()).setJobData(jobDataMap)\n\t\t\t\t.requestRecovery().build();\n\t\t\n\t\treturn jobDetail;\n\t}",
"public String createCacheKey() {\n return \"organization.\" + userEmail;\n }",
"GroupQueryBuilder setKey(String key);",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final String jobName)\n {\n m_aJobKey = new JobKey (jobName, null);\n return this;\n }",
"public JobID() {\n super();\n }",
"private synchronized int generateJobID() {\n\t\t/* generate JobID */\n\t\tint jobID = lastJobID;\n\t\tlastJobID += 1;\n\t\treturn jobID;\n\t}",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public Builder setJobId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"public JobBuilder id(int id) {\r\n job.setId(id);\r\n return this;\r\n }",
"public GroupTrainerCacheKey<Void> key() {\n return key;\n }",
"public AbstractTrigger(String name, String group, String jobName, String jobGroup) {\n setName(name);\n setGroup(group);\n setJobName(jobName);\n setJobGroup(jobGroup);\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"java.lang.String getJobId();",
"public void setGroupKey(String GroupKey) {\n this.GroupKey = GroupKey;\n }",
"public Builder key(String key) {\n this.key = key;\n return this;\n }",
"public JobID(long lowerPart, long upperPart) {\n super(lowerPart, upperPart);\n }",
"private Job(com.google.protobuf.GeneratedMessage.ExtendableBuilder<cb.Careerbuilder.Job, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private Builder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n super(other);\n }",
"public JobBuilder() {\r\n job = new Job();\r\n }",
"public void setJOB_ID(BigDecimal JOB_ID) {\r\n this.JOB_ID = JOB_ID;\r\n }",
"@Test\n public void testGroupBookingsReportJob() throws Exception {\n Job allocJob = new AllocationScraperJob();\n allocJob.setStatus( JobStatus.completed );\n dao.insertJob( allocJob );\n\n // setup a job to find reservations with more than X guests\n Job j = new GroupBookingsReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"WithCreate withProperties(JobDetails properties);",
"public JobDetail build() {\n return null;\n }",
"@Override\n\tpublic String resumeJob(String jobName, String jobGroup) throws SchedulerException {\n\n\t\tJobKey jobKey = new JobKey(jobName, jobGroup);\n\t\tJobDetail jobDetail = scheduler.getJobDetail(jobKey);\n\t\tif (jobDetail == null) {\n\t\t\treturn \"fail\";\n\t\t} else {\n\t\t\tscheduler.resumeJob(jobKey);\n\t\t\treturn \"success\";\n\t\t}\n\t}",
"protected abstract String getJobSubmitId();",
"public Builder clearJobId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n jobId_ = getDefaultInstance().getJobId();\n onChanged();\n return this;\n }",
"public JobBuilder name(String name) {\r\n job.setName(name);\r\n return this;\r\n }",
"public static JobBuilder newJob() {\n return new JobBuilder();\n }",
"public Trigger buildJobTrigger(JobDetail jobDetail) {\n\t\tint retriesAmount = jobDetail.getJobDataMap().getIntValue(RetryJob.AMOUNT_RETRIES_KEY);\n\t\tint delay = RetryService.INITIAL_DELAY * (int) Math.pow(RetryService.EXPONENTIAL_BASE, (retriesAmount - 1));\n\t\tDate fireDate = new Date(System.currentTimeMillis() + delay);\n\t\tlog.info(\"Building job with delay \" + delay + \" seconds \" + fireDate);\n\t\treturn TriggerBuilder.newTrigger()\n .forJob(jobDetail)\n .withIdentity(jobDetail.getKey().getName(), \"retry-email-triggers\")\n .withDescription(\"Retry Send Email Trigger\")\n .startAt(fireDate)\n .withSchedule(SimpleScheduleBuilder.simpleSchedule().withMisfireHandlingInstructionFireNow())\n .build();\n }",
"public String getJobId();",
"WithMembers withExistingJobAgent(String resourceGroupName, String serverName, String jobAgentName);",
"@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}",
"public PaymentRecordKey(String recordId, String ordersId, String buildDay) {\n this.recordId = recordId;\n this.ordersId = ordersId;\n this.buildDay = buildDay;\n }",
"private void runWithJobId() {\n if (jobName.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NAME);\n return;\n }\n if (numJobsToDelete.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NUMBER_OF_JOBS);\n return;\n }\n if (daysOld.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_DAYS_OLD);\n return;\n }\n response.setPayload(requestDeletion(ImmutableSet.of(jobId.get()), true /* verbose */));\n }",
"private Builder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.localId)) {\n this.localId = data().deepCopy(fields()[1].schema(), other.localId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.serviceId)) {\n this.serviceId = data().deepCopy(fields()[2].schema(), other.serviceId);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.args)) {\n this.args = data().deepCopy(fields()[3].schema(), other.args);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.inputs)) {\n this.inputs = data().deepCopy(fields()[4].schema(), other.inputs);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.outputs)) {\n this.outputs = data().deepCopy(fields()[5].schema(), other.outputs);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.timestamp)) {\n this.timestamp = data().deepCopy(fields()[6].schema(), other.timestamp);\n fieldSetFlags()[6] = true;\n }\n }",
"public static Key getKey(String campusId, String buildingId) {\n\t\tKey campusKey = Campus.getKey(campusId);\n\t\tlong id = Long.parseLong(buildingId);\n\t\tKey buildingKey = KeyFactory.createKey(campusKey, ENTITY_KIND, id);\n\t\treturn buildingKey;\n\t}",
"public static GroupKey getGroupKey(int groupId) {\n return new DefaultGroupKey((Integer.toString(groupId)).getBytes());\n }",
"public Job(int id, String name, Recruiter recruiter, int fee, String category)\n {\n this.id = id;\n this.name = name;\n this.recruiter = recruiter;\n this.fee = fee;\n this.category = category;\n }",
"@Override\r\n protected Text generateGroupKey(IntermediateData tmo)\r\n {\n String line = ((Text) tmo.getData()).toString();\r\n String[] tokens = line.split(Main.INPUT_SPLIT);\r\n String groupkey = tokens[0];\r\n return new Text(groupkey);\r\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-06 12:50:58.282 -0400\", hash_original_method = \"2053F7A68C82ABE32C2AF1BAEC4B5064\", hash_generated_method = \"ADA06475869C2F7BC91A27631CA3BF7E\")\n \npublic PrintJobId getId() {\n return mCachedInfo.getId();\n }",
"private static OmKeyInfo buildOmKeyInfo(String volume,\n String bucket,\n String key,\n String fileName,\n long objectID,\n long parentObjectId) {\n return new OmKeyInfo.Builder()\n .setBucketName(bucket)\n .setVolumeName(volume)\n .setKeyName(key)\n .setFileName(fileName)\n .setReplicationConfig(\n StandaloneReplicationConfig.getInstance(\n HddsProtos.ReplicationFactor.ONE))\n .setObjectID(objectID)\n .setParentObjectID(parentObjectId)\n .build();\n }",
"@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}",
"private static OmKeyInfo buildOmKeyInfo(String volume,\n String bucket,\n String key,\n String fileName,\n long objectID,\n long parentObjectId,\n long dataSize) {\n return new OmKeyInfo.Builder()\n .setBucketName(bucket)\n .setVolumeName(volume)\n .setKeyName(key)\n .setFileName(fileName)\n .setReplicationConfig(\n StandaloneReplicationConfig.getInstance(\n HddsProtos.ReplicationFactor.ONE))\n .setObjectID(objectID)\n .setParentObjectID(parentObjectId)\n .setDataSize(dataSize)\n .build();\n }",
"public Job add(String jobName, Job group) {\n assert this != group;\n\n for (Stage s : group.stages.values()) {\n Stage copy = s.clone();\n copy.name = jobName + \".\" + s.name;\n add(copy);\n }\n\n for (Connection c : group.connections) {\n Connection copy = c.clone();\n copy.input.setStageName(jobName + \".\" + copy.input.getStageName());\n\n for (ConnectionEndPoint output : copy.outputs) {\n output.setStageName(jobName + \".\" + output.getStageName());\n }\n\n connections.add(copy);\n }\n return this;\n }",
"public String getGroupKey() {\n return groupKey;\n }",
"public Job(int id) {\n this.id = id;\n }",
"public String getJobID() {\n\t\t\treturn JobID;\n\t\t}",
"long getJobIDTarget();",
"public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}",
"public Builder setJobIDTarget(long value) {\n bitField0_ |= 0x00000010;\n jobIDTarget_ = value;\n onChanged();\n return this;\n }",
"void joinJob(long jobId, long joinJobId);",
"public String generateKey(long duration) throws Exception;",
"public interface Job {\n\n /** unique id for this job that is used as a reference in the service methods */\n String getId();\n\n /** job executor identification that has acquired this job and is going to execute it */\n String getLockOwner();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null. */\n Date getDueDate();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null.\n * @deprecated call {@link #getDueDate()} instead */\n @Deprecated\n Date getDuedate();\n\n /** exception that occurred during the last execution of this job. The transaction \n * of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n String getException();\n\n /** number of retries left. This is only decremented when an exception occurs during job \n * execution. The transaction of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n int getRetries();\n\n /** indicates if this job should be executed separate from any other job \n * in the same process instance */\n boolean isExclusive();\n\n /** the related execution */\n Execution getExecution();\n\n /** the related process instance */\n Execution getProcessInstance();\n\n Date getLockExpirationTime();\n\n}",
"protected String generateLockId() {\n return AkkaUtils.nextId();\n }",
"Optional<BuildCacheKey> getKey();",
"public Long getJobID() {\n return jobID;\n }",
"public static com.opentext.bn.converters.avro.entity.ContentKey.Builder newBuilder(com.opentext.bn.converters.avro.entity.ContentKey.Builder other) {\n return new com.opentext.bn.converters.avro.entity.ContentKey.Builder(other);\n }",
"protected void appendId(final ToStringBuilder builder) {\r\n // RAS\r\n }",
"protected static String buildJobName(String jobIdInput) {\n String jobId = jobIdInput.replace(\"_\", \"-\");\n int[] invalidChars = jobId\n .chars()\n .filter(c -> c != '-' && !StringUtils.isAlphanumeric(String.valueOf((char) c)))\n .toArray();\n for (int invalidChar : invalidChars) {\n jobId = jobId.replace(((char) invalidChar), '-');\n }\n jobId = jobId.toLowerCase();\n boolean jobIdWithInvalidChars = !jobIdInput.equals(jobId);\n\n String jobName = (\"opencga-job-\" + jobId);\n if (jobName.length() > 63 || jobIdWithInvalidChars && jobName.length() > (63 - 8)) {\n // Job Id too large. Shrink it!\n // NOTE: This shrinking MUST be predictable!\n jobName = jobName.substring(0, 27)\n + \"-\" + DigestUtils.md5Hex(jobIdInput).substring(0, 6).toLowerCase() + \"-\"\n + jobName.substring(jobName.length() - 27);\n } else if (jobIdWithInvalidChars) {\n jobName += \"-\" + DigestUtils.md5Hex(jobIdInput).substring(0, 6).toLowerCase();\n }\n return jobName;\n }",
"@Nonnull\n static ImageKey of(@Nonnull String groupId, @Nonnull String imageId, int width, int height) {\n return UIInternal.get()._ImageKey_of(groupId, imageId, width, height);\n }",
"public String getGroupKey() {\n StringWriter sw = new StringWriter();\n writeGroupKey(sw);\n return sw.toString();\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The identifier of the job\")\n\n public String getJob() {\n return job;\n }",
"public void setOverrideGroupKey(String overrideGroupKey) {\n this.overrideGroupKey = overrideGroupKey;\n groupKey = groupKey();\n }",
"AsyncJob getPseudoJob(long accountId, long userId);",
"public Builder setJobIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> withIdentity (final TriggerKey triggerKey)\n {\n m_aTriggerKey = triggerKey;\n return this;\n }",
"public static com.opentext.bn.converters.avro.entity.ContentKey.Builder newBuilder(com.opentext.bn.converters.avro.entity.ContentKey other) {\n return new com.opentext.bn.converters.avro.entity.ContentKey.Builder(other);\n }",
"void setJobName(String jobName);",
"public static SuperCompanyCreate buildSuperCompanyCreate(UUID configurationId, String groupTemplate) {\n\t\tString name = \"ZYX_\" + PersonalInfoGenerator.generateOrcName() + \" Of \"\n\t\t\t\t+ PersonalInfoGenerator.generateOrcName();\n\t\treturn SuperCompanyCreate.builder().address(buildRandomAddress())\n\t\t\t\t.backofficeResetPasswordUrl(\"admin.glide.\" + name + \".com/#/reset-password/{resetPasswordToken}\")\n\t\t\t\t.capital(randInt(0, 999999)).configurationId(configurationId)\n\t\t\t\t.durationAfterTripToAllowLockUnlock(ThreadLocalRandom.current().nextLong(0, 20))\n\t\t\t\t.email(name + \"@\" + name + \".com\").employerCertificateRequired(false)\n\t\t\t\t.employerCertificateUrl(\"https://\" + name + \".com\")\n\t\t\t\t.endBookingDamageReportMandatory(RandomUtils.nextBoolean())\n\t\t\t\t.fiscalNumber(String.valueOf(randInt(100, 99999)) + PersonalInfoGenerator.generateName(5))\n\t\t\t\t.identityDocumentRequired(false).invoiceDelegate(RandomUtils.nextBoolean())\n\t\t\t\t.invoiceLabel(\"A\" + randInt(1000, 99999)).legalForm(\"Legal form: \" + name).name(name + \" Hoard Faction\")\n\t\t\t\t.phoneNumber(buildRandomFrPhoneNumber()).secondaryEmail(name + \"@\" + name + \".fr\")\n\t\t\t\t.secondaryPhoneNumber(buildRandomFrPhoneNumber())\n\t\t\t\t.startBookingDamageReportMandatory(RandomUtils.nextBoolean()).templateGroup(groupTemplate)\n\t\t\t\t.termsOfSubscriptionUrl(\"https://subscription-\" + name + \".com\")\n\t\t\t\t.termsOfUseUrl(\"https://terms-\" + name + \".com\").useExternalInvoiceSystem(RandomUtils.nextBoolean())\n\t\t\t\t.websiteConfirmSubscriptionUrl(\n\t\t\t\t\t\t\"www.glide.\" + name + \".com/#/validate-account/{confirmSubscriptionToken}\")\n\t\t\t\t.websiteResetPasswordUrl(\"www.glide.\" + name + \".com/#/reset-password/{resetPasswordToken}\").build();\n\t}",
"public void setIdentifierKey(java.lang.String param) {\r\n localIdentifierKeyTracker = true;\r\n\r\n this.localIdentifierKey = param;\r\n\r\n\r\n }",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder clearId() {\n id = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"public JGroupHelper(String groupIdentifier) {\n\t\ttry {\n\t\t\tchannel = new JChannel();\n\t\t\tchannel.setReceiver(new JGroupEventHandler());\n\t\t\tchannel.connect(groupIdentifier, null, 0);\n\t\t\tchannel.getState(null, 0);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\t//Runtime exception with info for use in debugging\n\t\t\tthrow new RuntimeException(ex.getMessage());\n\t\t}\n\t}",
"public static String specifyGroup() {\n return holder.format(\"specifyGroup\");\n }",
"private String getStringKey(long rawKey) {\n int cardinality = _cardinalities[0];\n StringBuilder groupKeyBuilder = new StringBuilder(_dictionaries[0].getStringValue((int) (rawKey % cardinality)));\n rawKey /= cardinality;\n for (int i = 1; i < _numGroupByExpressions; i++) {\n groupKeyBuilder.append(GroupKeyGenerator.DELIMITER);\n cardinality = _cardinalities[i];\n groupKeyBuilder.append(_dictionaries[i].getStringValue((int) (rawKey % cardinality)));\n rawKey /= cardinality;\n }\n return groupKeyBuilder.toString();\n }",
"@Override\n public String getKey()\n {\n return id; \n }",
"public String getGroupKey() {\n return this.GroupKey;\n }",
"public Builder(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n } else {\n this.name = name;\n this.id = UUID.randomUUID();\n }\n }",
"public Large_Employee(\n String mex_code,\n String givenName,\n String surName,\n int employeeID,\n String jobName) {\n this.employeeID = employeeID;\n this.mex_code = mex_code;\n this.givenName = givenName;\n this.surName = surName;\n this.name = givenName +\" \"+surName;\n this.jobName = jobName;\n }",
"public static Object $OpenId(Object $job) {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public Key<Project> getKey(){ return Key.create(Project.class, id); }",
"public void setJobInfo(String jobInfo) {\n this.jobInfo = jobInfo;\n }",
"GroupQueryBuilder addAssociatedUser(String key);",
"private Builder(com.opentext.bn.converters.avro.entity.ContentKey.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.keyName)) {\n this.keyName = data().deepCopy(fields()[0].schema(), other.keyName);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.keyValue)) {\n this.keyValue = data().deepCopy(fields()[1].schema(), other.keyValue);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.keyType)) {\n this.keyType = data().deepCopy(fields()[2].schema(), other.keyType);\n fieldSetFlags()[2] = true;\n }\n }",
"interface WithExperimentName {\n /**\n * Specifies experimentName.\n * @param experimentName Describe the experiment information of the job\n * @return the next definition stage\n */\n WithCreate withExperimentName(String experimentName);\n }",
"public void setGroup(String group) {\n if (group != null && group.trim().length() == 0) {\n throw new IllegalArgumentException(\n \"Group name cannot be an empty string.\");\n }\n\n if(group == null) {\n group = Scheduler.DEFAULT_GROUP;\n }\n\n this.group = group;\n this.key = null;\n }",
"public JobBuilder withDescription(String jobDescription) {\n this.description = jobDescription;\n return this;\n }",
"public Object getKey() { return name; }",
"@Override\n\tpublic SchedulerJobEntity deleteJob(SchedulerJobEntity jobEntity) throws SchedulerException, GenericSchedulerException {\n\n\t\tJobKey jobKey = new JobKey(jobEntity.getJobName(), jobEntity.getJobGroup());\n\t\tJobDetail jobDetail = scheduler.getJobDetail(jobKey);\n\t\tif (jobDetail == null) {\n\t\t\tthrow new GenericSchedulerException(\"jobDetail cannot be found\");\n\t\t} else if (!scheduler.checkExists(jobKey)) {\n\t\t\tthrow new GenericSchedulerException(\"jobKey does not exist\");\n\t\t} else {\n\t\t\tscheduler.deleteJob(jobKey);\n\t\t\tschedulerRepository.deleteById(jobEntity.getId());\n\n\t\t\treturn jobEntity;\n\t\t}\n\t}",
"public String getFullJobName() {\n return jobGroup + \".\" + jobName;\n }"
] | [
"0.6766192",
"0.65225846",
"0.5807958",
"0.57421976",
"0.53525686",
"0.52415645",
"0.5149045",
"0.5041763",
"0.49868667",
"0.49121538",
"0.49086562",
"0.4818272",
"0.47425324",
"0.4694084",
"0.46828097",
"0.46193507",
"0.461849",
"0.46179634",
"0.4586826",
"0.45848238",
"0.45753834",
"0.4549963",
"0.4535243",
"0.4527532",
"0.45144862",
"0.44685137",
"0.4462568",
"0.4461144",
"0.44529292",
"0.4452816",
"0.44492742",
"0.4447272",
"0.4431158",
"0.44297743",
"0.44285917",
"0.4413895",
"0.44130376",
"0.44085425",
"0.44081384",
"0.4395024",
"0.4373008",
"0.43553245",
"0.43545747",
"0.43538573",
"0.4350292",
"0.43420437",
"0.4327602",
"0.43255478",
"0.4321352",
"0.43134183",
"0.4305667",
"0.43050167",
"0.4301693",
"0.42988488",
"0.4295421",
"0.4295097",
"0.42927402",
"0.42905295",
"0.42732367",
"0.42632058",
"0.42625216",
"0.42615604",
"0.4257944",
"0.4250449",
"0.42471886",
"0.42437732",
"0.42427087",
"0.42370456",
"0.42358893",
"0.42326665",
"0.42282417",
"0.42219105",
"0.42180425",
"0.4216956",
"0.42137152",
"0.42089996",
"0.41995582",
"0.41984722",
"0.41945025",
"0.4177969",
"0.41739532",
"0.41632643",
"0.4161137",
"0.41580862",
"0.4157382",
"0.4148733",
"0.4138741",
"0.41344637",
"0.41322926",
"0.41258547",
"0.4120088",
"0.41028857",
"0.41020548",
"0.41018337",
"0.40945572",
"0.40894738",
"0.40719396",
"0.40655103",
"0.4063699",
"0.4062588"
] | 0.7414792 | 0 |
Use a JobKey to identify the JobDetail. If none of the 'withIdentity' methods are set on the JobBuilder, then a random, unique JobKey will be generated. | public JobBuilder withIdentity(JobKey jobKey) {
this.key = jobKey;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JobBuilder withIdentity(String name) {\n key = new JobKey(name, null);\n return this;\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final IJobDetail jobDetail)\n {\n final JobKey k = jobDetail.getKey ();\n if (k.getName () == null)\n throw new IllegalArgumentException (\"The given job has not yet had a name assigned to it.\");\n m_aJobKey = k;\n return this;\n }",
"public static JobID generate() {\n return new JobID();\n }",
"public JobID() {\n super();\n }",
"public JDK8TriggerBuilder <T> forJob (final JobKey keyOfJobToFire)\n {\n m_aJobKey = keyOfJobToFire;\n return this;\n }",
"private String generateExecutableIDKey(int jobID, int subJobID) {\n\t\treturn jobID +\"/\" + subJobID;\n\t}",
"public JobBuilder withIdentity(String name, String group) {\n key = new JobKey(name, group);\n return this;\n }",
"private synchronized int generateJobID() {\n\t\t/* generate JobID */\n\t\tint jobID = lastJobID;\n\t\tlastJobID += 1;\n\t\treturn jobID;\n\t}",
"public Long getJobID() {\n return jobID;\n }",
"public String getJobID() {\n\t\t\treturn JobID;\n\t\t}",
"public JobBuilder() {\r\n job = new Job();\r\n }",
"public void setJOB_ID(BigDecimal JOB_ID) {\r\n this.JOB_ID = JOB_ID;\r\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The identifier of the job\")\n\n public String getJob() {\n return job;\n }",
"public Builder clearJobId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n jobId_ = getDefaultInstance().getJobId();\n onChanged();\n return this;\n }",
"@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}",
"public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}",
"public JobBuilder id(int id) {\r\n job.setId(id);\r\n return this;\r\n }",
"public Job(int id) {\n this.id = id;\n }",
"private Job(com.google.protobuf.GeneratedMessage.ExtendableBuilder<cb.Careerbuilder.Job, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public JobDetail build() {\n return null;\n }",
"private static String createNewJobid(V2JobDefinition jobDefinition, NamedJobs namedJobs) throws InvalidNamedJobException {\n final NamedJobs.JobIdForSubmit jobIdForSubmit = namedJobs.getJobIdForSubmit(jobDefinition.getName(), jobDefinition);\n return jobIdForSubmit.getJobId();\n }",
"public JobId job() { return Objects.requireNonNull(job, \"production revisions have no associated job\"); }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public Trigger buildJobTrigger(JobDetail jobDetail) {\n\t\tint retriesAmount = jobDetail.getJobDataMap().getIntValue(RetryJob.AMOUNT_RETRIES_KEY);\n\t\tint delay = RetryService.INITIAL_DELAY * (int) Math.pow(RetryService.EXPONENTIAL_BASE, (retriesAmount - 1));\n\t\tDate fireDate = new Date(System.currentTimeMillis() + delay);\n\t\tlog.info(\"Building job with delay \" + delay + \" seconds \" + fireDate);\n\t\treturn TriggerBuilder.newTrigger()\n .forJob(jobDetail)\n .withIdentity(jobDetail.getKey().getName(), \"retry-email-triggers\")\n .withDescription(\"Retry Send Email Trigger\")\n .startAt(fireDate)\n .withSchedule(SimpleScheduleBuilder.simpleSchedule().withMisfireHandlingInstructionFireNow())\n .build();\n }",
"public JobID(long lowerPart, long upperPart) {\n super(lowerPart, upperPart);\n }",
"private synchronized int generateExecutableID(int jobID) {\n\t\treturn generateExecutableID(jobID, 0);\n\t}",
"public static JobBuilder newJob() {\n return new JobBuilder();\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final String jobName)\n {\n m_aJobKey = new JobKey (jobName, null);\n return this;\n }",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder clearId() {\n id = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"public Builder setJobIDTarget(long value) {\n bitField0_ |= 0x00000010;\n jobIDTarget_ = value;\n onChanged();\n return this;\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> withIdentity (final TriggerKey triggerKey)\n {\n m_aTriggerKey = triggerKey;\n return this;\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-06 12:50:58.282 -0400\", hash_original_method = \"2053F7A68C82ABE32C2AF1BAEC4B5064\", hash_generated_method = \"ADA06475869C2F7BC91A27631CA3BF7E\")\n \npublic PrintJobId getId() {\n return mCachedInfo.getId();\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final String jobName, final String jobGroup)\n {\n m_aJobKey = new JobKey (jobName, jobGroup);\n return this;\n }",
"private void runWithJobId() {\n if (jobName.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NAME);\n return;\n }\n if (numJobsToDelete.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NUMBER_OF_JOBS);\n return;\n }\n if (daysOld.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_DAYS_OLD);\n return;\n }\n response.setPayload(requestDeletion(ImmutableSet.of(jobId.get()), true /* verbose */));\n }",
"private JobDetail createJobDetail(SchedulerJobEntity schedulerEntity) throws Exception {\n\n\t\tJobDetail jobDetail = null;\n\t\tJobDataMap jobDataMap = createJobDataMap(schedulerEntity.getJobName(), schedulerEntity.getInvokeParam());\n\n\t\tClass<? extends Job> cls = jobRegistry.findJobByName(schedulerEntity.getJobGroup()).orElseThrow();\n\t\t\n\t\tjobDetail = JobBuilder.newJob(cls)\n\t\t\t\t.withIdentity(schedulerEntity.getJobName(), schedulerEntity.getJobGroup()).setJobData(jobDataMap)\n\t\t\t\t.requestRecovery().build();\n\t\t\n\t\treturn jobDetail;\n\t}",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"protected abstract String getJobSubmitId();",
"public Builder setJobId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"public void setJobInfo(String jobInfo) {\n this.jobInfo = jobInfo;\n }",
"public Builder clearJobIDTarget() {\n bitField0_ = (bitField0_ & ~0x00000010);\n jobIDTarget_ = -1L;\n onChanged();\n return this;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public void setJobNumber(java.lang.String jobNumber) {\r\n this.jobNumber = jobNumber;\r\n }",
"public Job(String JobID, int RunTime) {\n\t\t\tthis.JobID = JobID;\n\t\t\tthis.RunTime = RunTime;\n\t\t}",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"java.lang.String getJobId();",
"public Builder key(String key) {\n this.key = key;\n return this;\n }",
"public void setJobNum(int jobNum)\n\t{\n\t\tthis.jobNum = jobNum;\n\t}",
"public void setJob(String job) {\n this.job = job;\n }",
"long getJobIDTarget();",
"@ApiModelProperty(required = true, value = \"JobId of associated job\")\n public String getJobId() {\n return jobId;\n }",
"public BigDecimal getJOB_ID() {\r\n return JOB_ID;\r\n }",
"public Builder setJobIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"public String getJobId();",
"private Builder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.localId)) {\n this.localId = data().deepCopy(fields()[1].schema(), other.localId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.serviceId)) {\n this.serviceId = data().deepCopy(fields()[2].schema(), other.serviceId);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.args)) {\n this.args = data().deepCopy(fields()[3].schema(), other.args);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.inputs)) {\n this.inputs = data().deepCopy(fields()[4].schema(), other.inputs);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.outputs)) {\n this.outputs = data().deepCopy(fields()[5].schema(), other.outputs);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.timestamp)) {\n this.timestamp = data().deepCopy(fields()[6].schema(), other.timestamp);\n fieldSetFlags()[6] = true;\n }\n }",
"private Builder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n super(other);\n }",
"public JobPayload(UUID id, UUID jobId, Employee author, int version, String details, Date submissionDate) {\n this.id = id;\n this.jobId = jobId;\n this.author = author;\n this.version = version;\n this.details = details;\n this.submissionDate = submissionDate;\n }",
"private synchronized RunningJobImpl get(final String jobIdentifier) {\n final RunningJobImpl result = this.jobs.get(jobIdentifier);\n if (null == result) {\n throw new RuntimeException(\"Trying to get a RunningJob that is unknown: \" + jobIdentifier);\n }\n return result;\n }",
"public interface Job {\n\n /** unique id for this job that is used as a reference in the service methods */\n String getId();\n\n /** job executor identification that has acquired this job and is going to execute it */\n String getLockOwner();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null. */\n Date getDueDate();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null.\n * @deprecated call {@link #getDueDate()} instead */\n @Deprecated\n Date getDuedate();\n\n /** exception that occurred during the last execution of this job. The transaction \n * of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n String getException();\n\n /** number of retries left. This is only decremented when an exception occurs during job \n * execution. The transaction of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n int getRetries();\n\n /** indicates if this job should be executed separate from any other job \n * in the same process instance */\n boolean isExclusive();\n\n /** the related execution */\n Execution getExecution();\n\n /** the related process instance */\n Execution getProcessInstance();\n\n Date getLockExpirationTime();\n\n}",
"protected synchronized int generateSubJobID(int jobID) throws GrpcException {\n\t\tInteger intSubJobID = (Integer)(mapNConnectBack.get(new Integer(jobID)));\n\t\tif (intSubJobID == null) {\n\t\t\tthrow new NgInitializeGrpcHandleException (\"specified Ninf-G Executable does not exist.\");\n\t\t}\n\t\tint subJobID = intSubJobID.intValue();\n\t\tmapNConnectBack.put(new Integer(jobID), new Integer(subJobID + 1));\n\n\t\tInteger intNJobs = (Integer)(mapNJobs.get(new Integer(jobID)));\n\t\tint nJobs = intNJobs.intValue();\n\t\tif (subJobID >= nJobs) {\n\t\t\tthrow new NgInitializeGrpcHandleException (\"invalid subjob ID request.\");\n\t\t}\n\t\treturn subJobID;\n\t}",
"String getLongNameKey();",
"public String getJobId() {\n\t\treturn this.jobId;\n\t}",
"public long getJobIDTarget() {\n return jobIDTarget_;\n }",
"public BasketItemBuilder() {\n generateRandomId();\n }",
"public JobInfo(Class<? extends Job> jobclass) {\n\t\tthis.jobclass = jobclass;\n\t}",
"public void setProfileKey( Long profileKey ) {\n this.profileKey = profileKey;\n }",
"@Override\n public String getTypeID() {\n return job_id;\n }",
"public JobRunResourceIdInner() {\n }",
"public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}",
"public static Object $OpenId(Object $job) {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public String createCacheKey() {\n return \"organization.\" + userEmail;\n }",
"Optional<BuildCacheKey> getKey();",
"public Large_Employee(\n String mex_code,\n String givenName,\n String surName,\n int employeeID,\n String jobName) {\n this.employeeID = employeeID;\n this.mex_code = mex_code;\n this.givenName = givenName;\n this.surName = surName;\n this.name = givenName +\" \"+surName;\n this.jobName = jobName;\n }",
"public long getJobIDTarget() {\n return jobIDTarget_;\n }",
"public Job(int jobID, String username, String company, String industry,\n String title, Double salary, boolean isAvailable) {\n super(username, company, industry);\n this.jobID = jobID;\n this.title = title;\n this.salary = salary;\n this.isAvailable = isAvailable;\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder() {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder();\n }",
"private synchronized int generateExecutableID(int jobID, int subJobID){\n\t\t/* generate executableID from jobID and subJobID */\n\t\tint executableID = lastExecutableID;\n\t\tlastExecutableID += 1;\n\n\t\t/* register into map */\n\t\tpropExecutableID.put(generateExecutableIDKey(jobID, subJobID),\n\t\t\t\t\t\t\tnew Integer(executableID));\n\n\t\treturn executableID;\t\t\n\t}",
"@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}",
"public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }",
"Job(int id, int time) {\n this.id = id;\n this.time = time;\n }",
"AsyncJob getPseudoJob(long accountId, long userId);",
"protected void appendId(final ToStringBuilder builder) {\r\n // RAS\r\n }",
"public static JobBuilder newJob(Class<? extends Job> jobClass) {\n JobBuilder b = new JobBuilder();\n b.ofType(jobClass);\n return b;\n }",
"long getJobIDSource();",
"@Override\n\tpublic HomeModel getByKey(IKeyBuilder<String> keyBuilder,\n\t\t\tHomeContext context) {\n\t\treturn null;\n\t}",
"@Override\n public String getKey()\n {\n return id; \n }",
"public void setKey( Long key ) {\n this.key = key ;\n }",
"public PaymentRecordKey(String recordId, String ordersId, String buildDay) {\n this.recordId = recordId;\n this.ordersId = ordersId;\n this.buildDay = buildDay;\n }",
"WithCreate withProperties(JobDetails properties);",
"private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }",
"public void setJobID(int jobId) {\n\t\tthis.jobsId.add(jobId);\n\t}",
"public Job build() {\r\n return job;\r\n }",
"public JobBuilder withDescription(String jobDescription) {\n this.description = jobDescription;\n return this;\n }",
"protected String generateLockId() {\n return AkkaUtils.nextId();\n }",
"@PostMapping(\"/job-bids\")\n @Timed\n public ResponseEntity<JobBid> createJobBid(@RequestBody JobBid jobBid) throws URISyntaxException {\n log.debug(\"REST request to save JobBid : {}\", jobBid);\n if (jobBid.getId() != null) {\n throw new BadRequestAlertException(\"A new jobBid cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n JobBid result = jobBidRepository.save(jobBid);\n jobBidSearchRepository.save(result);\n return ResponseEntity.created(new URI(\"/api/job-bids/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@DISPID(1)\r\n\t// = 0x1. The runtime will prefer the VTID if present\r\n\t@VTID(7)\r\n\tint jobID();",
"public void setLockKey( Long lockKey ) {\n this.lockKey = lockKey;\n }",
"@Override\n\tpublic void setJobId(long jobId) {\n\t\tmodel.setJobId(jobId);\n\t}"
] | [
"0.65828735",
"0.60729533",
"0.597207",
"0.58295363",
"0.58215135",
"0.5781257",
"0.5635309",
"0.5465893",
"0.54519814",
"0.5405208",
"0.5401346",
"0.53996587",
"0.5369609",
"0.53593254",
"0.53368384",
"0.5318115",
"0.5282527",
"0.52479386",
"0.52269787",
"0.52163845",
"0.5208846",
"0.5176082",
"0.5160214",
"0.5084141",
"0.50651574",
"0.5061507",
"0.50364625",
"0.5031221",
"0.50160617",
"0.5005648",
"0.49991593",
"0.49927336",
"0.49840242",
"0.49797517",
"0.4973421",
"0.49694356",
"0.49673676",
"0.49658203",
"0.4957649",
"0.49456242",
"0.49331492",
"0.49208832",
"0.49208832",
"0.49208832",
"0.4913377",
"0.49131972",
"0.4903867",
"0.489774",
"0.48953372",
"0.48903048",
"0.48899528",
"0.48868874",
"0.4880352",
"0.4840316",
"0.48381987",
"0.48368013",
"0.48250318",
"0.48202464",
"0.481123",
"0.48100057",
"0.47981974",
"0.4789584",
"0.47838742",
"0.4775909",
"0.4775028",
"0.47740796",
"0.47719255",
"0.47705886",
"0.4770435",
"0.4767701",
"0.47662756",
"0.47641608",
"0.47588497",
"0.47550654",
"0.47512004",
"0.47442296",
"0.4718033",
"0.471244",
"0.4695287",
"0.4676894",
"0.46579",
"0.4657144",
"0.46299073",
"0.4628006",
"0.46246046",
"0.46126556",
"0.46085072",
"0.46070012",
"0.46041477",
"0.46036232",
"0.46022505",
"0.45904866",
"0.45894068",
"0.45858446",
"0.45855835",
"0.45828196",
"0.45781592",
"0.45710358",
"0.45694914",
"0.45652694"
] | 0.78575927 | 0 |
Set the given (humanmeaningful) description of the Job. | public JobBuilder withDescription(String jobDescription) {
this.description = jobDescription;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setJobDesc(String jobDesc)\n\t{\n\t\tthis.jobDesc = Toolbox.trim(jobDesc, 4);\n\t}",
"public void setJobDescription(String jobDescription) {\r\n this.jobDescription = jobDescription;\r\n }",
"public void setJob_description(String job_description) {\r\n this.job_description = job_description;\r\n }",
"public void setSrcJobDescription(String value) {\r\n setAttributeInternal(SRCJOBDESCRIPTION, value);\r\n }",
"public void setDescription(java.lang.String value) {\n this.description = value;\n }",
"public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }",
"public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }",
"public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String value) {\r\n this.description = value;\r\n }",
"void setDescription(java.lang.String description);",
"public void edit_task_description(String description)\n {\n task_description = description;\n }",
"public void setDescription(final String description);",
"protected void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(final String description) {\n this.description = description;\n }",
"protected void setDescription(final String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String value) {\n this.description = value;\n }",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\n \tthis.description = description;\n }",
"public void setDescription(String description) {\r\n\t\tif (this.compareFields(this.description, description)) {\r\n\t\t\tthis.fireUpdatePendingChanged(true);\r\n\t\t}\r\n\t\tthis.description = description != null ? description.trim() : null;\r\n\t}",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}",
"void setDescription(final String description);",
"public void setDescription(final String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(String description)\n {\n this.description = description.trim();\n }",
"public void setDescription(java.lang.String description)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESCRIPTION$8);\r\n }\r\n target.setStringValue(description);\r\n }\r\n }",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n this.updated = new Date();\n }",
"public void setDescription(String description) {\n if (description == null) {\n throw new IllegalArgumentException(\"Description is missing\");\n }\n this.description = description;\n }",
"public void setDescription(java.lang.Object description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESCRIPTION$14);\n }\n target.setStringValue(description);\n }\n }",
"public void setDescription(String Description) {\n this.Description = Description;\n }",
"public void setDescription(java.lang.String description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESCRIPTION$2);\n }\n target.setStringValue(description);\n }\n }",
"public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void setDescription( String description )\n {\n this.description = description;\n }",
"public void setDescription( String description )\n {\n this.description = description;\n }",
"public void setDescription( String description )\n {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }"
] | [
"0.7767648",
"0.7668904",
"0.7424661",
"0.718079",
"0.71464324",
"0.7138141",
"0.7138141",
"0.7138141",
"0.7137604",
"0.7131872",
"0.7129118",
"0.7126032",
"0.7124781",
"0.71210897",
"0.7119776",
"0.71164995",
"0.71164554",
"0.71164554",
"0.71164554",
"0.71164554",
"0.71164554",
"0.71164554",
"0.71164554",
"0.71163666",
"0.7109177",
"0.70950097",
"0.7094422",
"0.7094422",
"0.7094422",
"0.7094422",
"0.7094422",
"0.7089874",
"0.7088977",
"0.70845747",
"0.7084348",
"0.7084348",
"0.7084348",
"0.7084348",
"0.7084348",
"0.7084348",
"0.7084348",
"0.7084348",
"0.7084348",
"0.7078715",
"0.7073216",
"0.7070619",
"0.7068082",
"0.70646536",
"0.70614094",
"0.705612",
"0.70530593",
"0.7050614",
"0.70503616",
"0.7045109",
"0.7045109",
"0.7045109",
"0.7045109",
"0.7045109",
"0.7045109",
"0.7045109",
"0.7045109",
"0.7045109",
"0.7045109",
"0.7045109",
"0.7045109",
"0.7045109",
"0.7044195",
"0.7044195",
"0.7044195",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332",
"0.7040332"
] | 0.0 | -1 |
Set the class which will be instantiated and executed when a Trigger fires that is associated with this JobDetail. | public JobBuilder ofType(Class<? extends Job> jobClazz) {
this.jobClass = jobClazz;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setClass_(String newValue);",
"public void setClass (\r\n String strClass) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"void setClassType(String classType);",
"public void setClassToInstantiate(Class<? extends T> classToInstantiate) {\r\n this.classToInstantiate = classToInstantiate;\r\n }",
"ClassInstanceCreationExpression getClass_();",
"public CronJobTrigger() {\n init();\n }",
"public void setClass(String sClass) {\n\t\t\tsRuleClassName = sClass;\n\t\t}",
"public void SetAsClass () throws java.io.IOException, com.linar.jintegra.AutomationException;",
"public void setClassName(String className) { this.className=className; }",
"public void setTaskClass(String taskClass) {\n\t\tthis.taskClass = taskClass;\n\t}",
"public JobInfo(Class<? extends Job> jobclass) {\n\t\tthis.jobclass = jobclass;\n\t}",
"public void setValueClass(Class<? extends Type> valueClass) {\n this.valueClass = valueClass;\n }",
"public void setClazz(String clazz);",
"public PgEventTrigger() {\n this(\"pg_event_trigger\", null);\n }",
"protected void setJavaClass(Class type) {\n this._class = type;\n }",
"public void setClass(UmlClass c) {\n\t\tlogicalClass = c;\n\t}",
"public TriggerEchoJob() {\n\t}",
"public void setCallbackHandlerClass(String callbackHandlerClass) {\n this.callbackHandlerClass = callbackHandlerClass;\n LOG.fine(\"Setting callbackHandlerClass: \" + callbackHandlerClass);\n }",
"public void setBaseClass(Class<?> baseClass)\n {\n this.baseClass = baseClass;\n }",
"void setClassOfService(ClassOfService serviceClass);",
"public void setDefiningType(Class cls) {\n _class = cls;\n }",
"private void processClass(String classType ) {\n\t\tif ( classType.equals(\"CommandLineTool\") ) {\n\t\t\t\tCOMMAND_LINE_TOOL = new CommandLineTool();\n\t\t}\n\t}",
"Object getClass_();",
"Object getClass_();",
"public Target setActionClass(Class<?> action) {\n this.action = action;\n return this;\n }",
"public void setFileClass(Class<?> fileClass)\r\n {\r\n sFileClass = fileClass;\r\n }",
"@Override\r\n\t\tpublic void setClassName(String className)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"@IcalProperty(pindex = PropertyInfoIndex.CLASS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setClassification(final String val) {\n classification = val;\n }",
"public TriggerCondition() {\n this(METRIC_HEAPUSG, 95);\n }",
"public TargetClass() {\n super();\n }",
"@Transient\r\n\tpublic Class<?> getClassType() {\r\n\t\treturn TrackerTableChangeLog.class;\r\n\t}",
"public void setClassType(String classType) {\n\t\t\t\n\t\t\tfor(E_ClassType c : E_ClassType.values())\n\t\t\t{\n\t\t\t\tif(c.toString().equals(classType))\n\t\t\t\t{\n\t\t\t\t\tthis.classType = E_ClassType.valueOf(classType);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.classType = E_ClassType.Tourists;\n\t\t\t\n\t\t}",
"public void setObjectClass(Class objectClass) {\n this.objectClass = objectClass;\n }",
"protected String getTargetClassName() {\r\n return m_targetClassName;\r\n }",
"public void setDriverClass(String driverClass) throws PropertyVetoException {\n\t\tthis.dataSource.setDriverClass(driverClass);\n\t}",
"public void setElementClass(Class newValue) {\r\n\t\tthis.elementClass = newValue;\r\n\t}",
"public void setHandler( Class<?> exceptionClass, ExceptionHandler thisHandler )\n {\n handlers.put( exceptionClass, thisHandler );\n }",
"public abstract void onTrigger();",
"@Override\n protected Object createJobInstance(TriggerFiredBundle bundle) throws Exception {\n Object jobInstance = super.createJobInstance(bundle);\n autowireCapableBeanFactory.autowireBean(jobInstance);\n return jobInstance;\n }",
"public String getEventClass() {\n return eventClass;\n }",
"protected MetadataClass getTargetClass() {\r\n return m_targetClass;\r\n }",
"public void setClassName(String className) {\n this.className = className;\n }",
"public void setCandidateType(Class cls) {\n _candidate = cls;\n }",
"public String getTaskClass() {\n\t\treturn this.taskClass;\n\t}",
"void setMeasurementControllerClassName(String className);",
"public void setClassifcation(String _classifcation)\r\n\t{\r\n\t\tthis._classifcation=_classifcation;\r\n\t}",
"public final void mT__275() throws RecognitionException {\r\n try {\r\n int _type = T__275;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:276:8: ( 'set-class=' )\r\n // InternalSpringConfigDsl.g:276:10: 'set-class='\r\n {\r\n match(\"set-class=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"@Override\n\tpublic String getClassName() {\n\t\treturn _changesetEntry.getClassName();\n\t}",
"public void setTrigger(Trigger trigger) {\n \t\tthis.trigger = trigger;\n \t\tif (this.trigger == null)\n \t\t\tthis.trigger = Trigger.NONE;\n \t}",
"public void setObjectClass(String objectClass) {\n this.objectClass = objectClass;\n }",
"void setReceiversImpl(java.lang.Class clazz);",
"public void setStaticType(Class type);",
"void setMainClass(Class<?> mainClass);",
"public void setFClass(String fClass) {\n\t\t\tthis.fClass = fClass;\n\t\t}",
"public void setDataClass(Class<?> clazz) {\n\t\t\n\t}",
"public JavaFileWriter setGeneratorClass(final Class<?> generatorClass) {\n this.generatorClass = generatorClass;\n return this;\n }",
"public void setClassname(String classname) {\n this.classname = classname;\n }",
"public void setClazzName(String clazz);",
"public void setExtClass(Class clas){\n\t\t\n\t\tthis.clas = clas;\n\t}",
"public Class<T> getTargetClass() {\n\t\treturn targetClass;\n\t}",
"@Override\r\n\tpublic String getEventClass() {\n\t\treturn null;\r\n\t}",
"public void setClassName(String className) {\n this.className = className;\n }",
"public void setClassName(String className) {\n this.className = className;\n }",
"public void setClassName(String className) {\n this.className = className;\n }",
"<T extends NotificationJobTrigger> NotificationJobProcessor<T> createJobProcessor(NotificationJobContext jobContext, T jobTrigger);",
"public LogJobEventAttribute(TriggerJobDO job)\n {\n super(GenomeAttributeType.JobEvent, getEventString(buildEvent(job)));\n }",
"public void setJobObserver(JobObserver jO) {\n\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public void setRecordListener(String rlClassName)\n {\n String utn = this.getUntranslatedTableName();\n\n /* clear? */\n if (StringTools.isBlank(rlClassName)) {\n this.setRecordListener((DBRecordListener<gDBR>)null);\n return;\n }\n\n /* load class */\n Class<?> rlClass;\n try {\n rlClass = Class.forName(rlClassName);\n if (!DBRecordListener.class.isAssignableFrom(rlClass)) {\n Print.logError(\"Not a DBRecordListener class: \" + rlClassName);\n return;\n }\n } catch (ClassNotFoundException cnfe) {\n Print.logError(\"DBRecordListener(\"+utn+\") class not found: \" + rlClassName);\n return;\n } catch (Throwable th) {\n Print.logException(\"Error instantiating DBRecordListener(\"+utn+\") class\", th);\n return;\n }\n\n /* instantiate/set */\n DBRecordListener<gDBR> rcdListner;\n try {\n Print.logDebug(\"DBRecordListener(\"+utn+\"): \" + StringTools.className(rlClass));\n rcdListner = (DBRecordListener<gDBR>)rlClass.newInstance(); // Unchecked cast\n } catch (ClassCastException cce) {\n Print.logError(\"Not a DBRecordListener class: \" + rlClassName);\n return;\n } catch (Throwable th) {\n Print.logException(\"Error instantiating DBRecordListener(\"+utn+\") class\", th);\n return;\n }\n\n /* set */\n this.setRecordListener(rcdListner);\n\n }",
"public JDK8TriggerBuilder <T> forJob (final JobKey keyOfJobToFire)\n {\n m_aJobKey = keyOfJobToFire;\n return this;\n }",
"public void setPropertyClass(Integer propertyClass)\r\n\t{\r\n\t\tthis.propertyClass = propertyClass;\r\n\t}",
"public void setJavaClass(java.lang.String javaClass)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(JAVACLASS$24);\r\n }\r\n target.setStringValue(javaClass);\r\n }\r\n }",
"protected TriggerFactory getTriggerFactory() {\n\t\treturn this.triggerFactory;\n\t}",
"Class<?> getTargetClass();",
"public Class<? extends T> getClassToInstantiate() {\r\n return classToInstantiate;\r\n }",
"TriggerType createTriggerType();",
"public void setTargetType(Class<?> targetType)\n/* */ {\n/* 257 */ this.targetType = (targetType != null ? ResolvableType.forClass(targetType) : null);\n/* */ }",
"public void setClass(String godClass)\r\n {\r\n this.mGodClass = godClass;\r\n }",
"public void setClassObject(Object obj)\n\n {\n\n this.classObject = obj;\n\n }",
"public void setEventClass(String eventClass) {\n this.eventClass = eventClass == null ? null : eventClass.trim();\n }",
"public void setEntityClass(final Class<T> entityClass)\n\t{\n\t\tthis.entityClass = entityClass;\n\t}",
"public BaseSLBean(Class<T> entityClass){\n this.entityClass = entityClass;\n }",
"public Class getReferenceClass(GenerationContext genContext) {\r\n return resolveClass(genContext);\r\n }",
"@Override\n\tpublic String typeKey() {\n\t return \"class\";\n\t}",
"public void setBaseClass(String baseClass) {\n\t\tthis.baseQualifiedClassName = baseClass;\n\n\t\tint lastDotIdx = baseQualifiedClassName.lastIndexOf('.');\n\t\tbasePackage = baseQualifiedClassName.substring(0, lastDotIdx);\n\t\tbaseSimpleClassName = baseQualifiedClassName.substring(lastDotIdx + 1);\n\t}",
"public AutomaticJob() {\r\n \r\n }",
"@DISPID(135)\r\n\t// = 0x87. The runtime will prefer the VTID if present\r\n\t@VTID(130)\r\n\tjava.lang.String triggerType();",
"public void setObjectClass(final Class<? extends DBObject> aClass) {\n setObjectFactory(objectFactory.update(aClass));\n }",
"public abstract GrapesNotification newAutoInstance(AbstractBuild<?, ?> build);",
"@objid (\"59808615-06b0-48b7-a027-38d78fc10bd5\")\n void setReferencedClassName(String value);",
"@Override\n\tprotected Class<?> getBeanClass(Element element) {\n\t\treturn ProcessorEventMulticaster.class;\n\t}",
"public void setClassName(String name)\n {\n _className = name;\n }",
"protected void sequence_AT_DEFINE_DefinitionTrigger_TRIGGER(ISerializationContext context, DefinitionTrigger semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"public AutoBundleClassCreatorProxy(Elements elementUtils, TypeElement classElement) {\n super(elementUtils, classElement);\n isActivity = ProcessorUtil.isActivity(classElement);\n }",
"public String getClassName() { return className; }",
"public PgClass() {\n this(DSL.name(\"pg_class\"), null);\n }",
"public String getClassName(){\n\t\treturn targetClass.name;\n\t}",
"public InterceptorType<T> setInterceptorClass(String interceptorClass)\n {\n childNode.getOrCreate(\"interceptor-class\").text(interceptorClass);\n return this;\n }",
"public void setBeanClass(Class<?> beanClass) {\r\n this.beanClass = beanClass;\r\n }",
"public String getType() {\n\t\treturn \"class\";\n\t}",
"public schedulerJob() {\n }"
] | [
"0.5824554",
"0.5335707",
"0.5328143",
"0.53255576",
"0.5291459",
"0.5194713",
"0.51891917",
"0.5144995",
"0.51408345",
"0.5081686",
"0.50788975",
"0.50528914",
"0.50066423",
"0.49950704",
"0.49944264",
"0.49940157",
"0.499268",
"0.49895346",
"0.4971476",
"0.49515152",
"0.4948535",
"0.49426413",
"0.49311772",
"0.49311772",
"0.49187654",
"0.4909201",
"0.48889586",
"0.48743364",
"0.48494673",
"0.48390353",
"0.48302177",
"0.48233962",
"0.48162717",
"0.4813461",
"0.48127884",
"0.48113707",
"0.4810443",
"0.48082164",
"0.47832486",
"0.47770333",
"0.47617367",
"0.47584996",
"0.47506213",
"0.4745476",
"0.4743481",
"0.4733878",
"0.47291183",
"0.47172552",
"0.47134727",
"0.47061652",
"0.47019467",
"0.4699037",
"0.46961054",
"0.46931136",
"0.4686968",
"0.4682685",
"0.46789038",
"0.46715802",
"0.46708804",
"0.4662608",
"0.4653153",
"0.46515784",
"0.46515784",
"0.46515784",
"0.46510193",
"0.46425354",
"0.46396086",
"0.4637598",
"0.46319896",
"0.4631182",
"0.46272913",
"0.46264294",
"0.4613852",
"0.461203",
"0.46031088",
"0.4590449",
"0.45826584",
"0.4576605",
"0.45759913",
"0.45645374",
"0.45616388",
"0.45590538",
"0.45573723",
"0.4553884",
"0.45360738",
"0.45355615",
"0.45255202",
"0.45238954",
"0.45232105",
"0.45228907",
"0.45217714",
"0.45144966",
"0.45112976",
"0.45078707",
"0.4502473",
"0.4498827",
"0.4494897",
"0.44888088",
"0.44832045",
"0.44788992"
] | 0.51220536 | 9 |
Instructs the Scheduler whether or not the Job should be reexecuted if a 'recovery' or 'failover' situation is encountered. If not explicitly set, the default value is false. | public JobBuilder requestRecovery() {
this.shouldRecover = true;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setToReschedule(boolean b) {\n this.toReschedule = b;\n }",
"public JobBuilder requestRecovery(boolean jobShouldRecover) {\n this.shouldRecover = jobShouldRecover;\n return this;\n }",
"public void setRestartable(boolean isRestartable) {}",
"public void setRelaunched(boolean value) {\n this.relaunched = value;\n }",
"public void setRecoveryAttempt(Boolean recoveryAttempt) {\n this.recoveryAttempt = recoveryAttempt;\n }",
"public boolean isAutoRollback () {\n return autoRollback;\n }",
"@Override\n\t\tpublic boolean isRetry() { return false; }",
"@Override\n\tpublic void setDownLoad_AutoRecover(Boolean paramBoolean)\n\t{\n\n\t}",
"@Override\n\t\tpublic boolean isRetry() { return true; }",
"void setRecalculate(boolean recalculate);",
"@Override\n public boolean onStopJob(JobParameters job) {\n return true;\n }",
"public boolean isJob() {\n return false;\n }",
"@Override\n\t\tpublic void setWasRetried(boolean wasRetried) {\n\t\t\t\n\t\t}",
"public boolean willRetry() {\n return willRetry;\n }",
"private void markNeedRestartADBServer() {\n Log.d(\"mark mNeedRestartAdbServer to true\");\n mNeedRestartAdbServer = true;\n mStatus = STATUS.FINISHED;\n notifyResultObserver();\n return;\n }",
"@Override\n\tpublic boolean getDownLoad_AutoRecover()\n\t{\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isJobRunning() {\n\t\treturn false;\n\t}",
"public boolean shouldRetryOnTimeout() {\r\n return configuration.shouldRetryOnTimeout();\r\n }",
"@Override\n public boolean onStopJob(JobParameters params) {\n return false;\n }",
"public void setRetriggerMode( RetriggerMode retriggerMode );",
"public boolean isRetry();",
"protected final boolean rescheduleTaskIfNecessary(Object task) {\n if (this.running) {\n try {\n doRescheduleTask(task);\n } catch (RuntimeException ex) {\n logRejectedTask(task, ex);\n this.pausedTasks.add(task);\n }\n return true;\n } else if (this.active) {\n this.pausedTasks.add(task);\n return true;\n } else {\n return false;\n }\n }",
"public boolean isRelaunched() {\n return relaunched;\n }",
"void setIgnoreForRecovery(boolean value) {\n ignoreForRecovery = value;\n }",
"public void setRunWhenInitilizing(boolean value) {\n\t\trunWhenInitilizing = value;\n\t}",
"public boolean shouldExecute()\n {\n if (this.runDelay <= 0)\n {\n if (!this.theRaider.world.getGameRules().getBoolean(\"mobGriefing\"))\n {\n return false;\n }\n\n this.currentTask = -1;\n this.wantsToReapStuff = true;\n }\n\n return super.shouldExecute();\n }",
"public boolean needsResend(){\n return this.getNumNetworkCopies()-this.replicationDegree<0;\n }",
"public abstract boolean isScheduled();",
"public void standby() throws SchedulerException {\n this.quartzPlugin.getScheduler().standby();\n }",
"public void setWorking(boolean working) {}",
"public final boolean unblockAndStartScheduler() {\n\n\t\tunblockStartAndStopOperations();\n\t\treturn startScheduler();\n\n\t}",
"abstract boolean shouldTaskActivate();",
"public void setAutoRollback (boolean autoRollback) {\n this.autoRollback = autoRollback;\n }",
"public void setIsTemplateJob(boolean isTemplateJob) {\n this.isTemplateJob = isTemplateJob;\n }",
"public void setForceFormulaRecalculation(boolean arg0) {\n\n\t}",
"public boolean isRepairMode() {\n return false;\n }",
"@Override\n public boolean shouldExecute()\n {\n if (theEntity.getAITarget() == null && theEntity.isBurning())\n {\n return false;\n }\n else\n {\n if (theEntity.isRearingFirstTick()) // only set the first tick that is rearing\n {\n return true; \n }\n else\n {\n return false;\n }\n } \n }",
"public boolean isRestart() {\n\tboolean ret = false;\n\tif (getParameterValue(\"genie.restart\").toLowerCase().startsWith(\"c\")) {\n\t ret = true;\n\t}\n\treturn ret;\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAutoStandBy() {\n\t\tboolean flag = oTest.checkAutoStandBy();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"protected void beforeJobExecution() {\n\t}",
"public Boolean getRecoveryAttempt() {\n return recoveryAttempt;\n }",
"@JsonProperty(\"enable_remount_on_resume\")\n@ApiModelProperty(example = \"true\", value = \"When a Virtual Instance is resumed, it will remount all collections that were mounted when the Virtual Instance was suspended.\")\n public Boolean isEnableRemountOnResume() {\n return enableRemountOnResume;\n }",
"public void setReRouting() {\r\n\t\tthis.reRouting = true;\r\n\t}",
"public boolean isRetried ()\r\n {\r\n return hasFailed () && retried_;\r\n }",
"@Updatable\n public Boolean getAutoRepair() {\n return autoRepair;\n }",
"static public void falsifyProcessingJobs()\n {\n processingJobs = false;\n }",
"@DISPID(40)\r\n\t// = 0x28. The runtime will prefer the VTID if present\r\n\t@VTID(39)\r\n\tboolean checkpointRestartEnabled();",
"public boolean getForceFormulaRecalculation() {\n\t\treturn false;\n\t}",
"public void setAllowRecalcs(boolean b) {\n \t\tallowRecalcs = b;\n \t}",
"@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}",
"public boolean dependsOn(IJob job);",
"@Override\n\t\tpublic boolean shouldContinueExecuting() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\tpublic boolean isScheduled();",
"public boolean isScheduled();",
"@Override\n public boolean onStopJob(JobParameters job) {\n Log.d(LOG_TAG, \"Sync job stopped\");\n return true;\n }",
"default boolean pollOnExecutionFailed() {\n return false;\n }",
"public boolean isAutoStart()\n {\n return false;\n }",
"private boolean switchFailoverWithDNS() throws Throwable {\n \t// switch failover\n \t// ping from master\n \t// switch failback\n \t// ping from master\n \treturn (setupAPCScript() &&\n \t\t\tpingFromMaster(hostname) &&\n \t\t\tapcCommand(1, \"Off\") &&\n \t\t\tpingFromMaster(hostname) &&\n \t\t\tapcCommand(1, \"On\") &&\n \t\t\tpingFromMaster(hostname));\n\t}",
"@Override\n public boolean onStopJob(com.firebase.jobdispatcher.JobParameters job) {\n // If mBackgroundTask is valid, cancel it\n //Return true to signify the job should be retried\n if (mBackgroundTask != null) mBackgroundTask.cancel(true);\n return true;\n }",
"@Override\n public void setRecoveryMode(boolean isForInitialization) throws IOException {\n synchronized(this) {\n if (this.isDrainingDone) {\n // when there is no outstanding splitlogtask after master start up, we already have up to \n // date recovery mode\n return;\n }\n }\n if (this.watcher == null) {\n // when watcher is null(testing code) and recovery mode can only be LOG_SPLITTING\n synchronized(this) {\n this.isDrainingDone = true;\n this.recoveryMode = RecoveryMode.LOG_SPLITTING;\n }\n return;\n }\n boolean hasSplitLogTask = false;\n boolean hasRecoveringRegions = false;\n RecoveryMode previousRecoveryMode = RecoveryMode.UNKNOWN;\n RecoveryMode recoveryModeInConfig =\n (isDistributedLogReplay(conf)) ? RecoveryMode.LOG_REPLAY : RecoveryMode.LOG_SPLITTING;\n\n // Firstly check if there are outstanding recovering regions\n try {\n List<String> regions = ZKUtil.listChildrenNoWatch(watcher, watcher.recoveringRegionsZNode);\n if (regions != null && !regions.isEmpty()) {\n hasRecoveringRegions = true;\n previousRecoveryMode = RecoveryMode.LOG_REPLAY;\n }\n if (previousRecoveryMode == RecoveryMode.UNKNOWN) {\n // Secondly check if there are outstanding split log task\n List<String> tasks = listSplitLogTasks();\n if (!tasks.isEmpty()) {\n hasSplitLogTask = true;\n if (isForInitialization) {\n // during initialization, try to get recovery mode from splitlogtask\n int listSize = tasks.size();\n for (int i = 0; i < listSize; i++) {\n String task = tasks.get(i);\n try {\n byte[] data =\n ZKUtil.getData(this.watcher, ZKUtil.joinZNode(watcher.splitLogZNode, task));\n if (data == null) continue;\n SplitLogTask slt = SplitLogTask.parseFrom(data);\n previousRecoveryMode = slt.getMode();\n if (previousRecoveryMode == RecoveryMode.UNKNOWN) {\n // created by old code base where we don't set recovery mode in splitlogtask\n // we can safely set to LOG_SPLITTING because we're in master initialization code\n // before SSH is enabled & there is no outstanding recovering regions\n previousRecoveryMode = RecoveryMode.LOG_SPLITTING;\n }\n break;\n } catch (DeserializationException e) {\n LOG.warn(\"Failed parse data for znode \" + task, e);\n } catch (InterruptedException e) {\n throw new InterruptedIOException();\n }\n }\n }\n }\n }\n } catch (KeeperException e) {\n throw new IOException(e);\n }\n\n synchronized (this) {\n if (this.isDrainingDone) {\n return;\n }\n if (!hasSplitLogTask && !hasRecoveringRegions) {\n this.isDrainingDone = true;\n this.recoveryMode = recoveryModeInConfig;\n return;\n } else if (!isForInitialization) {\n // splitlogtask hasn't drained yet, keep existing recovery mode\n return;\n }\n\n if (previousRecoveryMode != RecoveryMode.UNKNOWN) {\n this.isDrainingDone = (previousRecoveryMode == recoveryModeInConfig);\n this.recoveryMode = previousRecoveryMode;\n } else {\n this.recoveryMode = recoveryModeInConfig;\n }\n }\n }",
"public void setWorking() {\n working = true;\n }",
"public boolean isReloadIfFailed() {\r\n\t\treturn mReloadIfFailed;\r\n\t}",
"public boolean shouldExecute() {\n if (this.runDelay <= 0) {\n if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(bean.world, bean)) {\n return false;\n }\n\n this.currentTask = -1;\n if(plantAndCollect)\n this.hasFarmItem = ((EntityWorkBean)bean).isFarmItemInInventory();\n else this.hasFarmItem = false;\n this.wantsToReapStuff = true; //this.villager.wantsMoreFood();\n }\n\n return super.shouldExecute();\n }",
"public boolean isSetRecovery() {\n return this.recovery != null;\n }",
"synchronized boolean ignoreForRecovery() {\n return ignoreForRecovery;\n }",
"public boolean requiresImmediateRetry() {\n return currentItemState == ItemProcessingState.IMMEDIATE_RETRY;\n }",
"private static void restartIfAutomaticOn(Context context) {\n Timber.i(\"method=restartIfAutomaticOn marker=RestartingTripDetectionServiceForAutomaticDetection\");\n //TODO Check if add restart to preferences\n //if (PreferencesManager.getInstance(context).getAutomatictTrackingSwitchState()) {\n startStartTripService(context, null);\n //}\n }",
"public void setRestartingConnectorsRequired(boolean restartingConnectorsRequired) {\n this.restartingConnectorsRequired = restartingConnectorsRequired;\n }",
"@Override\n public boolean onStopJob(JobParameters jobParameters) {\n Log.d(TAG, \"Job cancelled before being completed.\");\n jobCancelled = true;\n boolean needsReschedule = isWorking;\n jobFinished(jobParameters, needsReschedule);\n return needsReschedule;\n }",
"private boolean shouldApply() {\n return nextRandomInt() >= unappliedJobCutoff;\n }",
"public boolean syncRollbackPhase() {\n return syncRollbackPhase;\n }",
"public boolean isReexporting() {\n return reexport;\n }",
"public boolean abortOnFristJobFailure() {\n return mFailOnFirstError;\n }",
"@Override\n\tprotected boolean on_trigger_activated(String trigger_name) {\n\t\treturn false;\n\t}",
"@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}",
"@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}",
"boolean shouldRescore() {\n return false;\n }",
"@VTID(40)\n void setRequireManualUpdate(\n boolean rhs);",
"@Override\n\tpublic boolean isScheduled() {\n\t\treturn model.isScheduled();\n\t}",
"@Override\n\tpublic boolean isRented() {\n\t\treturn false;\n\t}",
"public void setToGridPermanently(){\n this.isPermanent = true;\n }",
"public boolean isSuspendedRelocateSupported() {\r\n return suspendedRelocateSupported;\r\n }",
"public void setRunnning(boolean bool) {\n\t\trunning = bool;\n\t}",
"private boolean processReload(boolean isDefault) {\n\t\tcleanDatabase();\n\n\t\t// reload desktop first\n\t\tboolean res = reloadDesktop(isDefault);\n\t\t\n// reloadHotseat();\n\t\treturn res;\n\t}",
"@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}",
"boolean hasBackupSchedule();",
"@Override\n\tpublic boolean renew() {\n\t\treturn false;\n\t}",
"@Override\n public final boolean doIt() throws JobException {\n tasks = new LinkedHashMap<TaskKey,TaskJob>();\n prepareTasks();\n (new MergeJob()).startJob();\n return true;\n }",
"public boolean isResumed()\n {\n return isResumed;\n }",
"boolean isForceRM();",
"public boolean isScheduled(){\n //System.out.println(\"nextrun: \" + nextrun.getTime() + \" nu: \" + System.currentTimeMillis());\n if (nextrun != null){\n long next = nextrun.getTime();\n \n return next < System.currentTimeMillis();\n }else{\n //null => instance has never run before & should run asap\n return true;\n }\n }",
"protected boolean upgradeLocks() {\n \t\treturn false;\n \t}",
"public void setReloadIfFailed(boolean reloadIfFailed) {\r\n\t\tthis.mReloadIfFailed = reloadIfFailed;\r\n\t}",
"@Override\n\tpublic boolean onJobError(ApiJob job) {\n\t\treturn false;\n\t}",
"@Override\n public void beforeJob(JobExecution jobExecution) {\n super.beforeJob(jobExecution);\n }",
"void rescheduleAJob(String oldTriggerName, String oldTriggerGroup, Trigger newTrigger);",
"public void setRecoveryRetries(int retries);",
"private void configureAutomaticRefresh(boolean force) {\n PendingIntent intent = automaticRefreshPendingIntent(PendingIntent.FLAG_NO_CREATE);\n //If the user has enabled the automatic refresh\n if (userPreferences.refreshAutomaticallyInBackground().get()) {\n if (intent == null || force) {\n intent = automaticRefreshPendingIntent(0);\n final long period;\n //In DEBUG mode, the period is fixed to 30 second\n if (DEBUG && DEBUG_FIXED_PERIOD > 0)\n period = DEBUG_FIXED_PERIOD;\n else\n period = userPreferences.timeInMSBetweenChecks().get();\n if (DEBUG)\n Log.d(TAG, \"Configuring AlarmManager to automatically trigger refresh operation. Period in seconds : \" + (period / 1000L));\n alarmManager.setInexactRepeating(\n AlarmManager.ELAPSED_REALTIME_WAKEUP,\n 0L,\n period,\n intent\n );\n } else {\n if (DEBUG)\n Log.d(TAG, \"AlarmManager already configured to trigger automatic refresh operation.\");\n }\n }\n }",
"public boolean isForceAsSlave() {\n return this.forceAsSlave;\n }"
] | [
"0.63057286",
"0.6143532",
"0.6099385",
"0.59625524",
"0.5925032",
"0.5884677",
"0.57888293",
"0.5735029",
"0.57081205",
"0.5604855",
"0.55846226",
"0.5569655",
"0.556474",
"0.5560236",
"0.5555274",
"0.55540746",
"0.5540493",
"0.5537144",
"0.55348766",
"0.5534494",
"0.55295503",
"0.54996437",
"0.5417485",
"0.5416865",
"0.53682035",
"0.5352986",
"0.53403026",
"0.53296167",
"0.5302437",
"0.5296977",
"0.5279241",
"0.52766776",
"0.5259375",
"0.5246849",
"0.52461237",
"0.5245937",
"0.52366376",
"0.52321804",
"0.52277666",
"0.5225757",
"0.5220255",
"0.5212829",
"0.5207436",
"0.5207042",
"0.5206681",
"0.5200485",
"0.5196471",
"0.51936936",
"0.5193093",
"0.5191209",
"0.51760185",
"0.5166476",
"0.51470876",
"0.514264",
"0.51423025",
"0.51351964",
"0.5127738",
"0.51259106",
"0.5116923",
"0.51162213",
"0.51058227",
"0.51002353",
"0.5098878",
"0.50957805",
"0.50946856",
"0.50938195",
"0.5089635",
"0.5082704",
"0.5081246",
"0.5075395",
"0.5072133",
"0.50646913",
"0.50564724",
"0.50530285",
"0.50372756",
"0.50372756",
"0.5036193",
"0.50249493",
"0.5019988",
"0.5013388",
"0.50107753",
"0.5002639",
"0.49850985",
"0.4981322",
"0.49788436",
"0.49788436",
"0.4973461",
"0.49634507",
"0.49589032",
"0.49578676",
"0.49485558",
"0.49482054",
"0.4946995",
"0.4940055",
"0.493394",
"0.4928193",
"0.49023354",
"0.49023104",
"0.4897239",
"0.48942423"
] | 0.6089098 | 3 |
Instructs the Scheduler whether or not the Job should be reexecuted if a 'recovery' or 'failover' situation is encountered. If not explicitly set, the default value is false. | public JobBuilder requestRecovery(boolean jobShouldRecover) {
this.shouldRecover = jobShouldRecover;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setToReschedule(boolean b) {\n this.toReschedule = b;\n }",
"public void setRestartable(boolean isRestartable) {}",
"public JobBuilder requestRecovery() {\n this.shouldRecover = true;\n return this;\n }",
"public void setRelaunched(boolean value) {\n this.relaunched = value;\n }",
"public void setRecoveryAttempt(Boolean recoveryAttempt) {\n this.recoveryAttempt = recoveryAttempt;\n }",
"public boolean isAutoRollback () {\n return autoRollback;\n }",
"@Override\n\t\tpublic boolean isRetry() { return false; }",
"@Override\n\tpublic void setDownLoad_AutoRecover(Boolean paramBoolean)\n\t{\n\n\t}",
"@Override\n\t\tpublic boolean isRetry() { return true; }",
"void setRecalculate(boolean recalculate);",
"@Override\n public boolean onStopJob(JobParameters job) {\n return true;\n }",
"public boolean isJob() {\n return false;\n }",
"@Override\n\t\tpublic void setWasRetried(boolean wasRetried) {\n\t\t\t\n\t\t}",
"public boolean willRetry() {\n return willRetry;\n }",
"private void markNeedRestartADBServer() {\n Log.d(\"mark mNeedRestartAdbServer to true\");\n mNeedRestartAdbServer = true;\n mStatus = STATUS.FINISHED;\n notifyResultObserver();\n return;\n }",
"@Override\n\tpublic boolean getDownLoad_AutoRecover()\n\t{\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isJobRunning() {\n\t\treturn false;\n\t}",
"public boolean shouldRetryOnTimeout() {\r\n return configuration.shouldRetryOnTimeout();\r\n }",
"@Override\n public boolean onStopJob(JobParameters params) {\n return false;\n }",
"public void setRetriggerMode( RetriggerMode retriggerMode );",
"public boolean isRetry();",
"protected final boolean rescheduleTaskIfNecessary(Object task) {\n if (this.running) {\n try {\n doRescheduleTask(task);\n } catch (RuntimeException ex) {\n logRejectedTask(task, ex);\n this.pausedTasks.add(task);\n }\n return true;\n } else if (this.active) {\n this.pausedTasks.add(task);\n return true;\n } else {\n return false;\n }\n }",
"void setIgnoreForRecovery(boolean value) {\n ignoreForRecovery = value;\n }",
"public boolean isRelaunched() {\n return relaunched;\n }",
"public void setRunWhenInitilizing(boolean value) {\n\t\trunWhenInitilizing = value;\n\t}",
"public boolean shouldExecute()\n {\n if (this.runDelay <= 0)\n {\n if (!this.theRaider.world.getGameRules().getBoolean(\"mobGriefing\"))\n {\n return false;\n }\n\n this.currentTask = -1;\n this.wantsToReapStuff = true;\n }\n\n return super.shouldExecute();\n }",
"public boolean needsResend(){\n return this.getNumNetworkCopies()-this.replicationDegree<0;\n }",
"public abstract boolean isScheduled();",
"public void standby() throws SchedulerException {\n this.quartzPlugin.getScheduler().standby();\n }",
"public void setWorking(boolean working) {}",
"public final boolean unblockAndStartScheduler() {\n\n\t\tunblockStartAndStopOperations();\n\t\treturn startScheduler();\n\n\t}",
"abstract boolean shouldTaskActivate();",
"public void setAutoRollback (boolean autoRollback) {\n this.autoRollback = autoRollback;\n }",
"public void setIsTemplateJob(boolean isTemplateJob) {\n this.isTemplateJob = isTemplateJob;\n }",
"public boolean isRepairMode() {\n return false;\n }",
"public void setForceFormulaRecalculation(boolean arg0) {\n\n\t}",
"@Override\n public boolean shouldExecute()\n {\n if (theEntity.getAITarget() == null && theEntity.isBurning())\n {\n return false;\n }\n else\n {\n if (theEntity.isRearingFirstTick()) // only set the first tick that is rearing\n {\n return true; \n }\n else\n {\n return false;\n }\n } \n }",
"public boolean isRestart() {\n\tboolean ret = false;\n\tif (getParameterValue(\"genie.restart\").toLowerCase().startsWith(\"c\")) {\n\t ret = true;\n\t}\n\treturn ret;\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAutoStandBy() {\n\t\tboolean flag = oTest.checkAutoStandBy();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"protected void beforeJobExecution() {\n\t}",
"public Boolean getRecoveryAttempt() {\n return recoveryAttempt;\n }",
"@JsonProperty(\"enable_remount_on_resume\")\n@ApiModelProperty(example = \"true\", value = \"When a Virtual Instance is resumed, it will remount all collections that were mounted when the Virtual Instance was suspended.\")\n public Boolean isEnableRemountOnResume() {\n return enableRemountOnResume;\n }",
"public boolean isRetried ()\r\n {\r\n return hasFailed () && retried_;\r\n }",
"public void setReRouting() {\r\n\t\tthis.reRouting = true;\r\n\t}",
"@Updatable\n public Boolean getAutoRepair() {\n return autoRepair;\n }",
"static public void falsifyProcessingJobs()\n {\n processingJobs = false;\n }",
"@DISPID(40)\r\n\t// = 0x28. The runtime will prefer the VTID if present\r\n\t@VTID(39)\r\n\tboolean checkpointRestartEnabled();",
"public void setAllowRecalcs(boolean b) {\n \t\tallowRecalcs = b;\n \t}",
"public boolean getForceFormulaRecalculation() {\n\t\treturn false;\n\t}",
"@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}",
"public boolean dependsOn(IJob job);",
"@Override\n\t\tpublic boolean shouldContinueExecuting() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\tpublic boolean isScheduled();",
"public boolean isScheduled();",
"@Override\n public boolean onStopJob(JobParameters job) {\n Log.d(LOG_TAG, \"Sync job stopped\");\n return true;\n }",
"default boolean pollOnExecutionFailed() {\n return false;\n }",
"private boolean switchFailoverWithDNS() throws Throwable {\n \t// switch failover\n \t// ping from master\n \t// switch failback\n \t// ping from master\n \treturn (setupAPCScript() &&\n \t\t\tpingFromMaster(hostname) &&\n \t\t\tapcCommand(1, \"Off\") &&\n \t\t\tpingFromMaster(hostname) &&\n \t\t\tapcCommand(1, \"On\") &&\n \t\t\tpingFromMaster(hostname));\n\t}",
"public boolean isAutoStart()\n {\n return false;\n }",
"@Override\n public void setRecoveryMode(boolean isForInitialization) throws IOException {\n synchronized(this) {\n if (this.isDrainingDone) {\n // when there is no outstanding splitlogtask after master start up, we already have up to \n // date recovery mode\n return;\n }\n }\n if (this.watcher == null) {\n // when watcher is null(testing code) and recovery mode can only be LOG_SPLITTING\n synchronized(this) {\n this.isDrainingDone = true;\n this.recoveryMode = RecoveryMode.LOG_SPLITTING;\n }\n return;\n }\n boolean hasSplitLogTask = false;\n boolean hasRecoveringRegions = false;\n RecoveryMode previousRecoveryMode = RecoveryMode.UNKNOWN;\n RecoveryMode recoveryModeInConfig =\n (isDistributedLogReplay(conf)) ? RecoveryMode.LOG_REPLAY : RecoveryMode.LOG_SPLITTING;\n\n // Firstly check if there are outstanding recovering regions\n try {\n List<String> regions = ZKUtil.listChildrenNoWatch(watcher, watcher.recoveringRegionsZNode);\n if (regions != null && !regions.isEmpty()) {\n hasRecoveringRegions = true;\n previousRecoveryMode = RecoveryMode.LOG_REPLAY;\n }\n if (previousRecoveryMode == RecoveryMode.UNKNOWN) {\n // Secondly check if there are outstanding split log task\n List<String> tasks = listSplitLogTasks();\n if (!tasks.isEmpty()) {\n hasSplitLogTask = true;\n if (isForInitialization) {\n // during initialization, try to get recovery mode from splitlogtask\n int listSize = tasks.size();\n for (int i = 0; i < listSize; i++) {\n String task = tasks.get(i);\n try {\n byte[] data =\n ZKUtil.getData(this.watcher, ZKUtil.joinZNode(watcher.splitLogZNode, task));\n if (data == null) continue;\n SplitLogTask slt = SplitLogTask.parseFrom(data);\n previousRecoveryMode = slt.getMode();\n if (previousRecoveryMode == RecoveryMode.UNKNOWN) {\n // created by old code base where we don't set recovery mode in splitlogtask\n // we can safely set to LOG_SPLITTING because we're in master initialization code\n // before SSH is enabled & there is no outstanding recovering regions\n previousRecoveryMode = RecoveryMode.LOG_SPLITTING;\n }\n break;\n } catch (DeserializationException e) {\n LOG.warn(\"Failed parse data for znode \" + task, e);\n } catch (InterruptedException e) {\n throw new InterruptedIOException();\n }\n }\n }\n }\n }\n } catch (KeeperException e) {\n throw new IOException(e);\n }\n\n synchronized (this) {\n if (this.isDrainingDone) {\n return;\n }\n if (!hasSplitLogTask && !hasRecoveringRegions) {\n this.isDrainingDone = true;\n this.recoveryMode = recoveryModeInConfig;\n return;\n } else if (!isForInitialization) {\n // splitlogtask hasn't drained yet, keep existing recovery mode\n return;\n }\n\n if (previousRecoveryMode != RecoveryMode.UNKNOWN) {\n this.isDrainingDone = (previousRecoveryMode == recoveryModeInConfig);\n this.recoveryMode = previousRecoveryMode;\n } else {\n this.recoveryMode = recoveryModeInConfig;\n }\n }\n }",
"@Override\n public boolean onStopJob(com.firebase.jobdispatcher.JobParameters job) {\n // If mBackgroundTask is valid, cancel it\n //Return true to signify the job should be retried\n if (mBackgroundTask != null) mBackgroundTask.cancel(true);\n return true;\n }",
"public void setWorking() {\n working = true;\n }",
"public boolean isReloadIfFailed() {\r\n\t\treturn mReloadIfFailed;\r\n\t}",
"public boolean shouldExecute() {\n if (this.runDelay <= 0) {\n if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(bean.world, bean)) {\n return false;\n }\n\n this.currentTask = -1;\n if(plantAndCollect)\n this.hasFarmItem = ((EntityWorkBean)bean).isFarmItemInInventory();\n else this.hasFarmItem = false;\n this.wantsToReapStuff = true; //this.villager.wantsMoreFood();\n }\n\n return super.shouldExecute();\n }",
"public boolean isSetRecovery() {\n return this.recovery != null;\n }",
"synchronized boolean ignoreForRecovery() {\n return ignoreForRecovery;\n }",
"public boolean requiresImmediateRetry() {\n return currentItemState == ItemProcessingState.IMMEDIATE_RETRY;\n }",
"private static void restartIfAutomaticOn(Context context) {\n Timber.i(\"method=restartIfAutomaticOn marker=RestartingTripDetectionServiceForAutomaticDetection\");\n //TODO Check if add restart to preferences\n //if (PreferencesManager.getInstance(context).getAutomatictTrackingSwitchState()) {\n startStartTripService(context, null);\n //}\n }",
"public void setRestartingConnectorsRequired(boolean restartingConnectorsRequired) {\n this.restartingConnectorsRequired = restartingConnectorsRequired;\n }",
"@Override\n public boolean onStopJob(JobParameters jobParameters) {\n Log.d(TAG, \"Job cancelled before being completed.\");\n jobCancelled = true;\n boolean needsReschedule = isWorking;\n jobFinished(jobParameters, needsReschedule);\n return needsReschedule;\n }",
"private boolean shouldApply() {\n return nextRandomInt() >= unappliedJobCutoff;\n }",
"public boolean syncRollbackPhase() {\n return syncRollbackPhase;\n }",
"public boolean isReexporting() {\n return reexport;\n }",
"public boolean abortOnFristJobFailure() {\n return mFailOnFirstError;\n }",
"@Override\n\tprotected boolean on_trigger_activated(String trigger_name) {\n\t\treturn false;\n\t}",
"@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}",
"@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}",
"boolean shouldRescore() {\n return false;\n }",
"@VTID(40)\n void setRequireManualUpdate(\n boolean rhs);",
"@Override\n\tpublic boolean isScheduled() {\n\t\treturn model.isScheduled();\n\t}",
"@Override\n\tpublic boolean isRented() {\n\t\treturn false;\n\t}",
"public void setToGridPermanently(){\n this.isPermanent = true;\n }",
"public boolean isSuspendedRelocateSupported() {\r\n return suspendedRelocateSupported;\r\n }",
"public void setRunnning(boolean bool) {\n\t\trunning = bool;\n\t}",
"private boolean processReload(boolean isDefault) {\n\t\tcleanDatabase();\n\n\t\t// reload desktop first\n\t\tboolean res = reloadDesktop(isDefault);\n\t\t\n// reloadHotseat();\n\t\treturn res;\n\t}",
"@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}",
"boolean hasBackupSchedule();",
"@Override\n\tpublic boolean renew() {\n\t\treturn false;\n\t}",
"public boolean isResumed()\n {\n return isResumed;\n }",
"@Override\n public final boolean doIt() throws JobException {\n tasks = new LinkedHashMap<TaskKey,TaskJob>();\n prepareTasks();\n (new MergeJob()).startJob();\n return true;\n }",
"public boolean isScheduled(){\n //System.out.println(\"nextrun: \" + nextrun.getTime() + \" nu: \" + System.currentTimeMillis());\n if (nextrun != null){\n long next = nextrun.getTime();\n \n return next < System.currentTimeMillis();\n }else{\n //null => instance has never run before & should run asap\n return true;\n }\n }",
"boolean isForceRM();",
"protected boolean upgradeLocks() {\n \t\treturn false;\n \t}",
"public void setReloadIfFailed(boolean reloadIfFailed) {\r\n\t\tthis.mReloadIfFailed = reloadIfFailed;\r\n\t}",
"@Override\n\tpublic boolean onJobError(ApiJob job) {\n\t\treturn false;\n\t}",
"@Override\n public void beforeJob(JobExecution jobExecution) {\n super.beforeJob(jobExecution);\n }",
"public void setRecoveryRetries(int retries);",
"void rescheduleAJob(String oldTriggerName, String oldTriggerGroup, Trigger newTrigger);",
"private void configureAutomaticRefresh(boolean force) {\n PendingIntent intent = automaticRefreshPendingIntent(PendingIntent.FLAG_NO_CREATE);\n //If the user has enabled the automatic refresh\n if (userPreferences.refreshAutomaticallyInBackground().get()) {\n if (intent == null || force) {\n intent = automaticRefreshPendingIntent(0);\n final long period;\n //In DEBUG mode, the period is fixed to 30 second\n if (DEBUG && DEBUG_FIXED_PERIOD > 0)\n period = DEBUG_FIXED_PERIOD;\n else\n period = userPreferences.timeInMSBetweenChecks().get();\n if (DEBUG)\n Log.d(TAG, \"Configuring AlarmManager to automatically trigger refresh operation. Period in seconds : \" + (period / 1000L));\n alarmManager.setInexactRepeating(\n AlarmManager.ELAPSED_REALTIME_WAKEUP,\n 0L,\n period,\n intent\n );\n } else {\n if (DEBUG)\n Log.d(TAG, \"AlarmManager already configured to trigger automatic refresh operation.\");\n }\n }\n }",
"public boolean isForceAsSlave() {\n return this.forceAsSlave;\n }"
] | [
"0.63056177",
"0.60992384",
"0.60886997",
"0.59615046",
"0.59270054",
"0.58837426",
"0.57884985",
"0.57365197",
"0.57076865",
"0.5603285",
"0.5583023",
"0.5568682",
"0.556479",
"0.55604726",
"0.55554396",
"0.55549353",
"0.5539909",
"0.55371356",
"0.55340683",
"0.553328",
"0.5529912",
"0.54994565",
"0.54185003",
"0.5416105",
"0.5369626",
"0.5352673",
"0.5339737",
"0.5331082",
"0.53034437",
"0.52977085",
"0.527931",
"0.52784854",
"0.5258295",
"0.5246608",
"0.52459645",
"0.52443373",
"0.5235205",
"0.5231501",
"0.5229089",
"0.52247673",
"0.52219063",
"0.5211945",
"0.5206524",
"0.52065223",
"0.5206389",
"0.51996434",
"0.5197792",
"0.51924866",
"0.51919705",
"0.519034",
"0.51754075",
"0.51658636",
"0.51481277",
"0.51439965",
"0.5141061",
"0.51358986",
"0.51287466",
"0.5127528",
"0.5117357",
"0.5115382",
"0.5106189",
"0.50997263",
"0.50984704",
"0.5097485",
"0.5095569",
"0.50936747",
"0.5090279",
"0.50838596",
"0.50798845",
"0.5074126",
"0.50714374",
"0.5062404",
"0.5055043",
"0.50538576",
"0.50369155",
"0.50369155",
"0.50345844",
"0.5025042",
"0.50207174",
"0.5012372",
"0.50102246",
"0.5002799",
"0.4985819",
"0.49813378",
"0.4978448",
"0.4978448",
"0.49748215",
"0.49618813",
"0.49582613",
"0.49572545",
"0.49486715",
"0.49482056",
"0.49469396",
"0.49393517",
"0.493268",
"0.49265018",
"0.49031508",
"0.49006057",
"0.4897791",
"0.48943672"
] | 0.61431444 | 1 |
Recursive method to handle subfolders | public static void addToZip(String path, ZipOutputStream myZip, File f) throws FileNotFoundException, IOException{
if(f.isDirectory()){
for(File subF : f.listFiles()){
addToZip(path + File.separator + f.getName() , myZip, subF);
}
}
else {
ZipEntry e = new ZipEntry(path + File.separator + f.getName());
myZip.putNextEntry(e);
try (InputStream is = new FileInputStream(f.getAbsolutePath())) {
IOUtils.copyLarge(is, myZip);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void recurseOverFolder(final File folder) {\n File[] files = folder.listFiles();\n if (files == null) {\n return;\n }\n\n // Check each path and recurse if it's a folder, handle if it's a file\n for (final File fileEntry : files) {\n if (fileEntry.isDirectory()) {\n recurseOverFolder(fileEntry);\n } else {\n handleFile(fileEntry);\n }\n }\n }",
"@Test\n public void testGetSubDirectories() {\n System.out.println(\"getSubDirectories from a folder containing 2 subdirectories\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"+fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"\n +fSeparator+\"Entries\";\n \n FilesDao instance = new FilesDao();\n File entriesFile = new File(path);\n File subFolder;\n String[] children = entriesFile.list();\n File[] expResult = new File[entriesFile.list().length];\n \n for(int i=0;i<entriesFile.list().length;i++)\n {\n subFolder = new File(path+fSeparator+children[i]);\n if(subFolder.isDirectory())\n expResult[i] = subFolder; \n }\n \n File[] result = instance.getSubDirectories(path);\n \n assertArrayEquals(expResult, result);\n }",
"protected abstract String childFolderPath();",
"private static void findAllFilesRecurse(File root, ArrayList<File> files, boolean recurse) {\n\t\tFile[] rootContents = root.listFiles();\n\t\tif (rootContents == null) {\n\t\t\tfiles.add(root);\n\t\t} else {\n\t\t\tfor (File f : rootContents) {\n\t\t\t\t// if it is a file or do not go deeper\n\t\t\t\tif (f.isFile() || !recurse) {\n\t\t\t\t\tfiles.add(f);\n\t\t\t\t} else if (recurse) { // directory\n\t\t\t\t\tfindAllFilesRecurse(f, files, true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void setRecursive(boolean recursive)\n { this.recursive=recursive;\n }",
"public void setSubfolders(boolean subfolders) {\n this.subfolders = subfolders;\n }",
"public void recursiveList(String path) {\n Directory tDir = Directory.getDir(path);\n if (tDir == null) {\n str += \"Error: the input path \" + path + \" does not exist!\\n\";\n } else if (tDir.getSubContent().isEmpty()) {\n str += tDir.getName() + \"\\n\";\n } else {\n str += tDir.getName() + \":\";\n indentation += \"\\t\";\n for (int i = 0; i < tDir.getSubContent().size(); i++) {\n str += indentation;\n recursiveList(tDir.getSubContent().get(i).getAbsolutePath());\n }\n indentation = indentation.substring(0, indentation.length() - 1);\n }\n }",
"private static ArrayList<File> getFilesFromSubfolders(String directoryName, ArrayList<File> files) {\n\n File directory = new File(directoryName);\n\n // get all the files from a directory\n File[] fList = directory.listFiles();\n for (File file : fList) {\n if (file.isFile() && file.getName().endsWith(\".json\")) {\n files.add(file);\n } else if (file.isDirectory()) {\n getFilesFromSubfolders(file.getAbsolutePath(), files);\n }\n }\n return files;\n }",
"private static LinkedList<String> addAllSubDirs(File dir, LinkedList<String> list) {\n\t\tString [] dirListing = dir.list();\n\t\tfor (String subDirName : dirListing) {\n\t\t\tFile subdir = new File(dir.getPath() + System.getProperty(\"file.separator\") + subDirName);\n\t\t\tif (subdir.isDirectory()) {\n\t\t\t\tif (containsJavaFiles(subdir))\n\t\t\t\t\tlist.add(subdir.getPath());\n\t\t\t\tlist = addAllSubDirs(subdir, list);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"public folderize() {\n }",
"public static void runFolders(File srcDir, String strSkinFolderName, String _relativePath,\n String folderContentType) {\n\n String relativePath = _relativePath;\n\n File[] list = srcDir.listFiles();\n\n for (int i = 0; i < list.length; i++) {\n File fileItem = list[i];\n if (fileItem.isDirectory()) {\n String prevRelativePath = new String(relativePath);\n relativePath += \"/\" + fileItem.getName();\n runFolders(fileItem, strSkinFolderName, relativePath, folderContentType);\n relativePath = prevRelativePath;\n } else {\n try {\n if (log4j.isDebugEnabled())\n log4j.debug(list[i] + \" Parent: \" + fileItem.getParent() + \" getName() \"\n + fileItem.getName() + \" canonical: \" + fileItem.getCanonicalPath());\n if (folderContentType == \"RTL\") {\n count++;\n modifySkin(list[i]);\n } else if (folderContentType == \"LTR\") {\n count++;\n }\n } catch (Exception e) {\n log4j.error(\"IOException: \" + e);\n }\n }\n }\n }",
"private List<DMTFile> listFilesRecursive(String path) {\n\t\tList<DMTFile> list = new ArrayList<DMTFile>();\n\t\tDMTFile file = getFile(path); //Get the real file\n\t\t\n\t\tif (null != file ){ //It checks if the file exists\n\t\t\tif (! file.isDirectory()){\n\t\t\t\tlist.add(file);\n\t\t\t} else {\n\t\t\t\tDMTFile[] files = listFilesWithoutConsoleMessage(file.getPath());\n\t\t\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\t\t\tDMTFile childFile = files[x];\t\t \n\t\t\t\t\tif (childFile.isDirectory()){\n\t\t\t\t\t\tlist.addAll(listFilesRecursive(childFile.getPath()));\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.add(childFile);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"private void processFolders(List<File> folderList, java.io.File parentFolder) {\n // process each folder to see if it needs to be updated;\n for (File f : folderList) {\n String folderName = f.getTitle();\n java.io.File localFolder = new java.io.File(parentFolder, folderName);\n Log.e(\"folder\",localFolder.getAbsolutePath());\n if (!localFolder.exists())\n localFolder.mkdirs();\n getFolderContents(f, localFolder);\n }\n }",
"public GlobFileSet recurse()\n\t\t{\n\t\tm_recurse = true;\n\t\treturn (this);\n\t\t}",
"public boolean getSubfolders() {\n return this.subfolders;\n }",
"@Override\n public void printAllSubFilesAndFolders(String folderPath) {\n Path file = new File(folderPath).toPath();\n // boolean exists = Files.exists(file); // Check if the file exists\n boolean isDirectory = Files.isDirectory(file); // Check if it's a directory\n boolean isFile = Files.isRegularFile(file); // Check if it's a regular file\n if (isDirectory) {\n System.out.println(\"cd \"+file+\" %d\");\n System.out.println( System.getProperty(file.toString()));\n } else if (isFile) {\n System.out.println(\"dir\");\n }\n }",
"IStorageService subFolder(String path);",
"protected abstract String[] getBaseFolders();",
"private void addFolder(){\n }",
"public static void builtTree\n ( ArrayList<DefaultMutableTreeNode> treeArray , \n int recursion , DefaultMutableTreeNode selected , \n boolean enableDirs , boolean enableFiles )\n {\n int m;\n if (recursion<0) { m = DEFAULT_RECURSION_LIMIT; }\n else { m = recursion; }\n for ( int k=0; k<m; k++ )\n {\n boolean request = false;\n // Start cycle for entries\n int n = treeArray.size();\n for ( int i=0; i<n; i++ )\n {\n DefaultMutableTreeNode x1 = treeArray.get(i);\n // Support selective mode, skip if not selected\n if ( (selected != null) & ( selected != x1 ) ) continue;\n // Analyse current entry, skip if already handled\n ListEntry x2 = (ListEntry)x1.getUserObject();\n if ( x2.handled == true ) continue;\n request = true;\n x2.failed = false;\n // Start handling current entry\n String x3 = x2.path;\n File file1 = new File( x3 );\n boolean exists1 = file1.exists();\n boolean directory1=false;\n if (exists1) { directory1 = file1.isDirectory(); }\n // Handling directory: make list of childs directories/files\n if ( exists1 & directory1 )\n {\n String[] list = file1.list();\n int count=0;\n if ( list != null ) count = list.length;\n for ( int j=0; j<count; j++ )\n {\n String s1 = list[j];\n String s2 = x3+\"/\"+s1;\n File file2 = new File(s2);\n boolean dir = file2.isDirectory();\n if ( ( enableDirs & dir ) | ( enableFiles & !dir ) )\n {\n ListEntry y1 = \n new ListEntry ( s1, \"\", s2, false, false );\n DefaultMutableTreeNode y2 = \n new DefaultMutableTreeNode( y1 );\n treeArray.add( y2 );\n x1.add( y2 );\n x1.setAllowsChildren( true ); // this entry is DIRECTORY\n }\n }\n }\n // Handling file: read content\n if ( exists1 & !directory1 )\n {\n int readSize = 0;\n //\n StringBuilder data = new StringBuilder(\"\");\n FileInputStream fis;\n byte[] array = new byte[BUFFER_SIZE];\n try \n { \n fis = new FileInputStream(file1);\n readSize = fis.read(array); \n fis.close();\n }\n catch ( Exception e ) \n // { data = \"N/A : \" + e; x2.failed=true; }\n { data.append( \"N/A : \" + e ); x2.failed = true; }\n char c1;\n for (int j=0; j<readSize; j++)\n { \n c1 = (char)array[j];\n // if ( (c1=='\\n') | (c1=='\\r') ) { data = data + \" \"; }\n if ( ( c1 == '\\n' ) | (c1 == '\\r' ) ) { data.append( \" \" ); }\n else \n { \n if ( ( c1 < ' ' )|( c1 > 'z' ) ) { c1 = '_'; }\n // data = data + c1;\n data.append( c1 );\n }\n }\n x2.name2 = data.toString();\n x2.leaf = true;\n x1.setAllowsChildren( false ); // this entry is FILE\n }\n // End cycle for entries\n x2.handled = true;\n }\n // End cycle for recursion\n if (request==false) break;\n }\n }",
"private static void zipSubFolder(ZipOutputStream out, File folder,\n\t\t\tint basePathLength) throws IOException {\n\n\t\tFile[] fileList = folder.listFiles();\n\t\tBufferedInputStream origin = null;\n\t\tfor (File file : fileList) {\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tzipSubFolder(out, file, basePathLength);\n\t\t\t} else {\n\t\t\t\tbyte data[] = new byte[BUFFER_SIZE];\n\t\t\t\tString unmodifiedFilePath = file.getPath();\n\t\t\t\tString relativePath = unmodifiedFilePath\n\t\t\t\t\t\t.substring(basePathLength);\n\t\t\t\tLog.i(\"ZIP SUBFOLDER\", \"Relative Path : \" + relativePath);\n\t\t\t\tFileInputStream fi = new FileInputStream(unmodifiedFilePath);\n\t\t\t\torigin = new BufferedInputStream(fi, BUFFER_SIZE);\n\t\t\t\tZipEntry entry = new ZipEntry(relativePath);\n\t\t\t\tout.putNextEntry(entry);\n\t\t\t\tint count;\n\t\t\t\twhile ((count = origin.read(data, 0, BUFFER_SIZE)) != -1) {\n\t\t\t\t\tout.write(data, 0, count);\n\t\t\t\t}\n\t\t\t\torigin.close();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void run() {\n String whichFiles = \"'\" + languageFolder.getId() + \"' in parents and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET;\n List<File> files = getContents(whichFiles);\n \n prune(localLanguageFolder, files);\n processFolders(files, localLanguageFolder);\n }",
"@Override\n\tpublic void run() {\n\t\tif (!mainDir.isDirectory()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// inserisco il nome della cartella principale.\n\t\tproduceDirPath(mainDir.getName());\n\t\t\n\t\t// navigo ricorsivamente.\n\t\twalkDir(mainDir);\n\t}",
"private static List<File> listChildFiles(File dir) throws IOException {\n\t\t List<File> allFiles = new ArrayList<File>();\n\t\t \n\t\t File[] childFiles = dir.listFiles();\n\t\t for (File file : childFiles) {\n\t\t if (file.isFile()) {\n\t\t allFiles.add(file);\n\t\t } else {\n\t\t List<File> files = listChildFiles(file);\n\t\t allFiles.addAll(files);\n\t\t }\n\t\t }\n\t\t return allFiles;\n\t\t }",
"protected void modifyOnGithubRecursive(GHRepository repo, GHContent content,\n String branch, String img, String tag) throws IOException {\n if (content.isFile() && content.getDownloadUrl() != null) {\n modifyOnGithub(content, branch, img, tag, \"\");\n } else if(content.isDirectory()) {\n for (GHContent newContent : repo.getDirectoryContent(content.getPath(), branch)) {\n modifyOnGithubRecursive(repo, newContent, branch, img, tag);\n }\n } else {\n // The only other case is if we have a file, but content.getDownloadUrl() is null\n log.info(\"Skipping submodule {}\", content.getName());\n }\n }",
"private void browseUsersFolders(Path path) {\n try (DirectoryStream<Path> streamUserDir = Files.newDirectoryStream(path)) {\n for (Path userDir : streamUserDir) {\n // recursive deletion if userDir not modified anymore\n if (checkDeletion(userDir)) {\n logger.log(Level.INFO, \"Deletion started for: \"\n + userDir.getFileName());\n FilesHelper.deleteFolder(userDir);\n }\n\n // if modified and exists, then check inside\n if (Files.exists(userDir)) {\n browseApplicationsFolders(userDir);\n }\n }\n } catch (Exception ex) {\n logger.log(Level.ERROR, \"Cannot get directory list\", ex);\n }\n }",
"@Test\n public void testMkdirMultipleDirectoriesRelativePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"directory1\", \"directory2\"};\n String[] path2 = {\"directory1/subDirectory1\", \"directory2/subDirectory2\"};\n try {\n myTree.mkdir(path1);\n myTree.mkdir(path2);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2/subDirectory2\"), true);\n }",
"boolean isRecursive();",
"public static void listOfFiles(File dirPath){\n\t\tFile filesList[] = dirPath.listFiles();\r\n \r\n\t\t// For loop on each item in array \r\n for(File file : filesList) {\r\n if(file.isFile()) {\r\n System.out.println(file.getName());\r\n } else {\r\n \t // Run the method on each nested folder\r\n \t listOfFiles(file);\r\n }\r\n }\r\n }",
"private List<File> getFileList(File root){\n\t List<File> returnable = new ArrayList<File>();\n\t if(root.exists()){\n\t\t for(File currentSubFile : root.listFiles()){\n\t\t\t if(currentSubFile.isDirectory()){\n\t\t\t\t returnable.addAll(getFileList(currentSubFile));\n\t\t\t } else {\n\t\t\t\t returnable.add(currentSubFile);\n\t\t\t }\n\t\t }\n\t }\n\t return returnable;\n }",
"private List<PSActionMenu> structureActions(Map<String, List<PSActionMenu>> folderActions)\n {\n boolean alwaysShowSubmenu = true;\n String skipFolders = PSServer.getProperty(SERVER_PROP_SKIP_FOLDERS);\n if (skipFolders != null)\n alwaysShowSubmenu = skipFolders.trim().equalsIgnoreCase(\"false\");\n List<PSActionMenu> retList = new ArrayList<>();\n List<PSActionMenu> thisLevelActions = folderActions.get(\"\");\n\n // add all without any further path\n if (thisLevelActions != null)\n {\n retList.addAll(thisLevelActions);\n alwaysShowSubmenu = (thisLevelActions.size() > 0);\n }\n // split out the first part of the path\n Map<String, List<String>> pathSplit = new HashMap<>();\n for (String path : folderActions.keySet())\n {\n if (path.length() > 0)\n {\n String left;\n String right;\n if (!path.contains(\"/\"))\n {\n left = path;\n right = \"\";\n }\n else\n {\n left = path.substring(0, path.indexOf(\"/\"));\n right = path.substring(path.indexOf(\"/\") + 1);\n }\n List<String> rights = pathSplit.get(left);\n if (rights == null)\n {\n rights = new ArrayList<>();\n pathSplit.put(left, rights);\n }\n rights.add(right);\n }\n }\n\n // loop through each direct subfolder\n Set<String> folders = pathSplit.keySet();\n\n for (String folder : folders)\n {\n Map<String, List<PSActionMenu>> submenuActions = new HashMap<>();\n // create a modified action map stripping off the first part of the\n // path\n for (String right : pathSplit.get(folder))\n {\n String testPath = folder;\n if (right.length() > 0)\n testPath += \"/\" + right;\n submenuActions.put(right, folderActions.get(testPath));\n }\n\n // recursive call to get results from next level\n List<PSActionMenu> subResult = structureActions(submenuActions);\n // if more than one direct subfolder with the same name create new\n // submenu\n // if only one add it directly to current level.\n\n if (folders.size() > 1 || alwaysShowSubmenu)\n {\n PSActionMenu subMenu = new PSActionMenu(\"sub-\" + folder, folder, PSMenuAction.TYPE_MENU, \"\",\n PSMenuAction.HANDLER_CLIENT, 0);\n subMenu.setChildren(subResult);\n retList.add(subMenu);\n }\n else\n {\n retList.addAll(subResult);\n }\n }\n\n Collections.sort(retList, actionComparator);\n return retList;\n }",
"@Override\r\n public List<Folder> getAllFolder() {\n return folderRepository.findAll();\r\n }",
"private ObservableList<TreeItem<Path>> buildChildren() {\r\n if (Files.isDirectory(getValue())) {\r\n try {\r\n\r\n return Files.list(getValue())\r\n .map(FileTreeItem::new)\r\n .collect(Collectors.toCollection(() -> FXCollections.observableArrayList()));\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return FXCollections.emptyObservableList();\r\n } \r\n }\r\n\r\n return FXCollections.emptyObservableList();\r\n }",
"private Pane createSubTree(int level, File directory) {\n\t\tVBox dirNameBox = new VBox();\n\t\t\n\t\tdouble maxPaneHeight = 0;\n\t\tdouble totalArea = 0;\n\t\tdouble totalPanesHeight = 0;\n\t\tdouble totalPanesWidth = 0;\n\n\t\tArrayList<Pane> panes = new ArrayList<Pane>();\n\t\t\n\t\t// Add label\n\t\tLabel newLabel = new Label(directory.getName());\n\t\tnewLabel.setFont(Font.font(\"System\", FontWeight.BOLD, 8.0f));\n\t\t//newLabel.setBackground(new Background(new BackgroundFill(Color.CORNFLOWERBLUE, CornerRadii.EMPTY, Insets.EMPTY)));\n\n\t\t//nodes.add(newLabel);\t\t\n\t\tdirNameBox.getChildren().add(newLabel);\n\t\t\n\t\t\n\t\tPane dirPane;\n\t\tif (level % 2 == 0) {\n\t\t\tdirPane = new VBox();\n\t\t\t// Setting the spacing between the nodes\n\t\t\t((VBox)dirPane).setSpacing(gap);\n\t\t\t((VBox)dirPane).setAlignment(Pos.TOP_LEFT); \t\t\n\t\t} else {\n\t\t\tdirPane = new HBox();\n\t\t\t// Setting the spacing between the nodes\n\t\t\t((HBox)dirPane).setSpacing(gap);\n\t\t\t((HBox)dirPane).setAlignment(Pos.TOP_LEFT); \t\t\n\t\t}\n\t\tdirNameBox.getChildren().add(dirPane);\n\t\t\n\t\t\t\t\n\t\tint numSubDirs = 0;\n\t\tString[] subFilesAndDirectories = directory.list(new FilenameFilter() {\n\t\t public boolean accept(File dir, String name) {\n\t\t \tif (fileExtensionFilter == null || fileExtensionFilter.length == 0 ) {\n\t\t \t\t// No Filter defined\n\t\t \t\treturn true;\n\t\t \t} else {\n\t\t\t \t// check if file extension is in the list of allowed extensions\n\t\t\t return Arrays.stream(fileExtensionFilter).anyMatch(FilenameUtils.getExtension(name.toLowerCase())::equals);\n\t\t \t}\n\t\t };\n\t\t});\t\n\n\t\tfor (String fileOrDirectoryName : subFilesAndDirectories) {\n\t\t\t\n\t\t\tFile fileOrDirectory = new File(directory, fileOrDirectoryName);\n\t\t\t\n\t\t\tif (fileOrDirectory.isDirectory()) {\n\t\t\t\tpanes.add(createSubTree(level++, fileOrDirectory));\n\t\t\t\tnumSubDirs++;\n\t\t\t} else {\n\t\t\t\tif (showFiles) {\n\t\t\t\t\tpanes.add(createFilePane(fileOrDirectory));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tdirNameBox.setSpacing(0);\n\t\t\n\t\tif (usePadding) {dirPane.setPadding(new Insets(gap,gap,gap,gap));}\n\t\t\n\t\tdirNameBox.setPadding(new Insets(1,1,1,1));\n\n\t\t//flowPane.autosize();\n\t\t\n\t\t// Alignments\n\t\tdirNameBox.setAlignment(Pos.TOP_LEFT); \n\n\t\tif (showRandomDirectoryBackgroundColor) {\n\t\t\tdirNameBox.setStyle(\"-fx-background-color: rgba(\" + (randomizer.nextInt(155) + 100) +\n\t\t\t\t\t\", \" + (randomizer.nextInt(155) + 100) + \", \" + (randomizer.nextInt(155) + 100) + \", \" +\n\t\t\t\t\t1 + \"); -fx-background-radius: 10;\");\n\t\t} else {\n//\t\t\tvBox.setStyle(\"-fx-background-color: rgba(\" + 255 + \", \" + 255 + \", \" + 255 + \", \" + 0\n//\t\t\t\t\t+ \"); -fx-background-radius: 10; \" + (showBorder ? \"-fx-border-color: gray\" : \"\")\n//\t\t\t);\n\t\t\tdirNameBox.setStyle(\"-fx-background-color: rgba(\" + 240 + \", \" + 240 + \", \" + 240 + \", \" + 1\n\t\t\t\t\t+ \"); -fx-background-radius: 10; \" + (showBorder ? \"-fx-border-color: gray\" : \"\")\n\t\t\t);\n\n\t\t}\n\n\t\tdirPane.setStyle(\"-fx-background-color: rgba(\" + 255 + \", \" + 255 + \", \" + 255 + \", \" + 0.5f\n\t\t\t\t+ \"); -fx-background-radius: 10; \" // + (showBorder ? \"-fx-border-color: blue; -fx-border-style: dotted;\" : \"\")\n\t\t);\n\n\t\t\n\t\t// Retrieving the childrens list of the parent pane\n\t\tObservableList<Node> list = dirPane.getChildren();\n\t\t\n\t\t// Adding all the nodes to the parent pane\n\t\tfor (Pane pane : panes) {\n\n\t\t\tlist.add(pane);\n\t\t\t\n\t\t\tdouble currentHeight = \n\t\t\t\t\t(pane instanceof VBox ? ((VBox)pane).getPrefHeight() + \n\t\t\t\t\t\t\t\t\t\t\t\t(showBorder ? 2 : 0) /*top + bottom border*/ + \n\t\t\t\t\t\t\t\t\t\t\t\t(usePadding ? 2 * gap : 0) /*padding*/ \n\t\t\t\t\t: (pane instanceof Pane ? ((Pane)pane).getPrefHeight() : 12 /*label*/)\n\t\t\t);\n\t\t\tdouble currentWidth = \n\t\t\t\t\t(pane instanceof HBox ? ((HBox)pane).getPrefHeight() + \n\t\t\t\t\t\t\t\t\t\t\t\t(showBorder ? 2 : 0) /*top + bottom border*/ + \n\t\t\t\t\t\t\t\t\t\t\t\t(usePadding ? 2 * gap : 0) /*padding*/ \n\t\t\t\t\t: (pane instanceof Pane ? ((Pane)pane).getPrefWidth() : 12 /*label*/)\n\t\t\t);\n\t\t\tmaxPaneHeight = Math.max(maxPaneHeight, currentHeight);\n\t\t\ttotalPanesHeight += currentHeight;\n\t\t\ttotalPanesWidth += currentWidth;\n\t\t\ttotalArea += pane.getPrefHeight() * pane.getPrefWidth();\n//\t\t\tSystem.out.println((p instanceof FlowPane ? \"Folder\" : \"File\") + \": \" + ((Label)p.getChildren().get(0)).getText() + \n//\t\t\t\t\t\" p.PrefHeight: \" + p.getPrefHeight() + \" p.PrefWidth: \" + p.getPrefWidth() + \n//\t\t\t\t\t\" p.Height: \" + p.getHeight() + \" p.Width: \" + p.getWidth() +\n//\t\t\t\t\t(p instanceof FlowPane ? \" p.PrefWrap: \" + ((FlowPane)p).getPrefWrapLength() : \"\") +\n//\t\t\t\t\t\" totalHeight: \" + totalPanesHeight);\n\t\t}\n\t\t\t\n\t\t// height of squared total area\n\t\tdouble areaHeight = Math.sqrt(totalArea) * transformFactor;\n\t\tdouble prefHeight = Math.max(areaHeight, maxPaneHeight);\n\t\t\n\t\tprefHeight = Math.min(totalPanesHeight, areaHeight);\n\t\t\n//\t\t// Setting preferred heights\n//\t\t((VBox)dirPane).setPrefHeight(\n//\t\t\t\ttotalPanesHeight\n//\t\t\t\t+ (panes.size() - 1) * gap /*gaps*/\n//\t\t\t\t// + 2 /*border*/\n//\t\t); \t\n\t\t\n//\t\tvBox.setPrefWrapLength(flowPane.getPrefWrapLength() + \n//\t\t\t\t12 /*label height*/ + \n//\t\t\t\t(showBorder ? 2 : 0) /*border around childFlowPane*/ +\n//\t\t\t\t(usePadding ? 2 * gap : 0) /*padding*/\n//\t\t\t\t);\n\n\t\t\t\n\t\tbindTooltip(dirNameBox, tooltip);\n\t\tbindTooltip(dirPane,tooltip);\n\t\tbindTooltip(newLabel, tooltip);\n\n\t\treturn dirNameBox;\n\t}",
"protected List <WebFile> getSourceDirChildFiles()\n{\n // Iterate over source dir and add child packages and files\n List children = new ArrayList();\n for(WebFile child : getFile().getFiles()) {\n if(child.isDir() && child.getType().length()==0)\n addPackageDirFiles(child, children);\n else children.add(child);\n }\n \n return children;\n}",
"@Override\n\t\tpublic List<? extends IObject> getChildren() {\n\t\t\tif (!this.hasChildren()) {\n\t\t\t\treturn new ArrayList<>();\n\t\t\t}\n\t\t\tIterator<IFolder> subfolders = this.folder.subfolder();\n\t\t\treturn Lists.transform(ImmutableList.copyOf(subfolders), new Function<IFolder, FolderTreeObject>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic FolderTreeObject apply(IFolder input) {\n\t\t\t\t\treturn new FolderTreeObject(input, FolderTreeObject.this.rootFolder);\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"public LinkedList<ApfsDirectory> getSubDirectories() {\n LinkedList<ApfsDirectory> subDirectories = new LinkedList<ApfsDirectory>();\n for(ApfsElement apfse: children) {\n if(apfse.isDirectory())\n subDirectories.add((ApfsDirectory) apfse);\n }\n return subDirectories;\n }",
"private static void createTree(TreeItem<FilePath> rootItem) throws IOException {\n\n try (DirectoryStream<Path> directoryStream = Files\n .newDirectoryStream(rootItem.getValue().getPath())) {\n\n for (Path path : directoryStream) {\n TreeItem<FilePath> newItem = new TreeItem<FilePath>(new FilePath(path));\n newItem.setExpanded(true);\n\n rootItem.getChildren().add(newItem);\n\n if (Files.isDirectory(path)) {\n createTree(newItem);\n }\n }\n } catch (AccessDeniedException ignored) {\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"public String recursivelyTraverse(IDirectory currentDir) {\r\n ArrayList<DirectoryTreeNode> contents =\r\n ((Directory) currentDir).getContents();\r\n ArrayList<IDirectory> subDirectories =\r\n ((Directory) currentDir).getSubDirectories();\r\n String resultList = \"\";\r\n\r\n if (contents.isEmpty()) {\r\n return resultList + \"\\n\";\r\n } else {\r\n // prints the names of the sub directories and the files\r\n for (DirectoryTreeNode content : contents) {\r\n resultList += content.getName() + \"\\n\";\r\n }\r\n resultList += \"\\n\";\r\n for (IDirectory subDir : subDirectories) {\r\n resultList += subDir.getName() + \":\\n\";\r\n resultList += this.recursivelyTraverse(subDir);\r\n }\r\n resultList += \"\\n\";\r\n }\r\n return resultList;\r\n }",
"public boolean isRecursive() {\n return mIsRecursive;\n }",
"private String preferredSubFolder(final String path) {\n final File file = new File(path);\n if (file.isDirectory()) {\n for (final String subdir : SUBDIRS) {\n final File sd = new File(file, subdir);\n if (sd.isDirectory()) {\n return path + File.separator + subdir;\n }\n }\n }\n return path;\n }",
"@Test\n public void testMkdirOneDirectoryRelativePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"directory1/subDirectory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"A already exists or a path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n }",
"public List <WebFile> getChildFiles()\n{\n if(_type==FileType.SOURCE_DIR) return getSourceDirChildFiles();\n return _file.getFiles();\n}",
"private ArrayList<char[]> subdirectoriesToFiles(ArrayList<char[]> currentList, ArrayList<char[]> fullFileList) throws IOException {\t\t\n\t\tfor (File file: currentList) {\n\t\t\tif (isJavaFile(file)) \n\t\t\t\tfullFileList.add(file);\n\t\t\telse if (file.isDirectory()){\n\t\t\t\t$.log(file.toString());\n\t\t\t\tsubdirectoriesToFiles(file.getAbsolutePath(), fullFileList);\n\t\t\t}\n\t\t\telse if (isJarFile(file))\n\t\t\t\tsubdirectoriesToFiles(jarToFile(file), fullFileList);\n\t\t}\n\t\treturn fullFileList;\n\t}",
"@Test\n public void testGetDirectoryList() {\n System.out.println(\"getDirectoryList for existing folder with subfolders\");\n String entriesPath = folder.toString();\n FilesDao instance = new FilesDao();\n String[] expResult = new String[4];\n expResult[0]=\"EmptyFolder\";\n expResult[1]=\"Images\";\n expResult[2]=\"Texts\";\n expResult[3]=\"Videos\";\n Arrays.sort(expResult);\n String[] result;\n try{\n result = instance.getDirectoryList(entriesPath);\n Arrays.sort(result);\n }catch(EntryException ex){\n result = null;\n }\n \n assertArrayEquals(expResult, result);\n }",
"@Override\r\n\tpublic String globFilesDirectories(String[] args) {\r\n\t\treturn globHelper(args);\r\n\t}",
"public void addDirectories( File base ) {\n if( base.isDirectory() ) {\n repository.add( base );\n File[] files = base.listFiles();\n\n for( int i = 0; i < files.length; i++ ) {\n addDirectories( files[i] );\n }\n }\n }",
"boolean isFolder();",
"@Override\n public boolean isDir() { return true; }",
"private DirectoryObjects getDirectory(String path, DirectoryObjects current) {\n\t\tif (path.lastIndexOf(\"/\") == 0) {\n\t\t\treturn current;// done\n\t\t} else {\n\t\t\t// parse directories...\n\t\t\tArrayList<String> direcs = new ArrayList<>();\n\t\t\tString temp = path;\n\t\t\tboolean cont = true;\n\t\t\ttemp = temp.substring(1);\n\t\t\twhile (temp.length() > 1 && cont) {\n\n\t\t\t\t// add the substring to the list of directories that need to be\n\t\t\t\t// checked and/or created\n\t\t\t\tdirecs.add(temp.substring(0, temp.indexOf(\"/\")));\n\t\t\t\t// if there are more \"/\"s left, repeat\n\t\t\t\tif (temp.contains(\"/\")) {\n\t\t\t\t\ttemp = temp.substring(temp.indexOf(\"/\") + 1);\n\t\t\t\t}\n\t\t\t\t// else break out of the loop\n\t\t\t\telse {\n\t\t\t\t\tcont = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// do one last check to see if there are any extra characters left\n\t\t\tif (temp.length() > 0) {\n\t\t\t\t// there is still something left\n\t\t\t\tdirecs.add(temp);\n\t\t\t}\n\n\t\t\t// go through each directory, checking if it exists. if not, create\n\t\t\t// the directory and repeat.\n\t\t\tDirectoryObjects l = current;\n\n\t\t\tfor (String p : direcs) {\n\n\t\t\t\tif (l.getDirectoryByName(p) != null) {\n\t\t\t\t\tl = l.getDirectoryByName(p);\n\t\t\t\t} else {\n\t\t\t\t\t// instead of creating a new directory, we just throw an\n\t\t\t\t\t// exception\n\t\t\t\t\treturn l;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn l;\n\n\t\t}\n\n\t}",
"public String getFolders()\r\n\t{\r\n\t\tIrUser user = userService.getUser(userId, false);\r\n\t\tif( !item.getOwner().equals(user) && !user.hasRole(IrRole.ADMIN_ROLE) && \r\n\t\t\t\t!institutionalCollectionPermissionHelper.isInstitutionalCollectionAdmin(user, genericItemId))\r\n\t\t{\r\n\t\t return \"accessDenied\";\r\n\t\t}\r\n\t\tif(parentFolderId != null && parentFolderId > 0)\r\n\t\t{\r\n\t\t folderPath = userFileSystemService.getPersonalFolderPath(parentFolderId);\r\n\t\t}\r\n\t\t\r\n\t\tCollection<PersonalFolder> myPersonalFolders = userFileSystemService.getPersonalFoldersForUser(userId, parentFolderId);\r\n\t\t\r\n\t\tCollection<PersonalFile> myPersonalFiles = userFileSystemService.getPersonalFilesInFolder(userId, parentFolderId);\r\n\t\t\r\n\t fileSystem = new LinkedList<FileSystem>();\r\n\t \r\n\t for(PersonalFolder o : myPersonalFolders)\r\n\t {\r\n\t \tfileSystem.add(o);\r\n\t }\r\n\t \r\n\t for(PersonalFile o: myPersonalFiles)\r\n\t {\r\n\t \tfileSystem.add(o);\r\n\t }\r\n\t \r\n\t FileSystemSortHelper sortHelper = new FileSystemSortHelper();\r\n\t sortHelper.sort(fileSystem, FileSystemSortHelper.TYPE_DESC);\r\n\t return SUCCESS;\r\n\t \r\n\t}",
"public interface TreeNode {\n Collection<TreeNode> getChildren();\n boolean isDirectory();\n}",
"@Test\n public void testMkdirMultipleDirectoriesRelativePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"directory2\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 or directory2 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2\"), true);\n }",
"public void testSubSubChildPathName() throws Exception\n {\n VFSContext context = getVFSContext(\"complex\");\n VirtualFileHandler root = context.getRoot();\n VirtualFileHandler child = context.getChild(root, \"subfolder/subsubfolder/subsubchild\");\n assertEquals(\"subfolder/subsubfolder/subsubchild\", child.getPathName());\n VirtualFileHandler parent = context.getChild(root, \"subfolder/subsubfolder\");\n List<VirtualFileHandler> children = parent.getChildren(false);\n // Filter out an .svn stuff since this is run from the source tree\n Iterator<VirtualFileHandler> iter = children.iterator();\n while( iter.hasNext() )\n {\n child = iter.next();\n if( child.getName().endsWith(\".svn\") )\n iter.remove();\n }\n assertEquals(\"subfolder/subsubfolder has one child\", 1, children.size());\n child = children.get(0);\n assertEquals(\"subfolder/subsubfolder/subsubchild\", child.getPathName());\n }",
"@Test\n public void testLsDirectoryAndFileRSub() {\n FileTree myTree = new FileTree();\n String[] paths = {\"file\", \"file/file1\", \"file/file2\", \"file/file1/file3\"};\n try {\n myTree.mkdir(paths);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"Could not create directory\");\n }\n String result = \"\";\n try {\n myTree.makeFile(\"fileA\");\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"could not create file\");\n }\n try {\n myTree.cd(\"/file/file1\");\n } catch (NotDirectoryException e) {\n fail(\"could not cd into directory\");\n }\n try {\n myTree.makeFile(\"fileB\");\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"could not create file\");\n }\n try {\n myTree.cd(\"/file/file1/file3\");\n } catch (NotDirectoryException e) {\n fail(\"could not cd into directory\");\n }\n try {\n myTree.makeFile(\"fileC\");\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"could not create file\");\n }\n try {\n myTree.cd(\"/\");\n } catch (NotDirectoryException e) {\n fail(\"could not cd into directory\");\n }\n String[] empty_path = {};\n try {\n result = myTree.ls(true, empty_path);\n } catch (InvalidPathException e1) {\n fail(\"Could not find the directories\");\n }\n\n assertEquals(result, \"Path at /: \\nfile\\nfileA\\nPath at /file: \"\n + \"\\nfile1\\nfile2\\nPath at /file/file1: \\nfile3\\nfileB\\nPath at \"\n + \"/file/file1/file3: \\nfileC\\nPath at /file/file2: \\n\");\n }",
"public ScanResult getFilesRecursively() {\n\n final ScanResult scanResult = new ScanResult();\n try {\n Files.walkFileTree(this.basePath, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n if (!attrs.isDirectory() && PICTURE_MATCHER.accept(file.toFile())) {\n scanResult.addEntry(convert(file));\n System.out.println(file.toFile());\n }\n return FileVisitResult.CONTINUE;\n }\n });\n } catch (IOException e) {\n // intentional fallthrough\n }\n\n return new ScanResult();\n }",
"String folderPath();",
"public String getSubDirs() {\n return subDirs;\n }",
"public static List<CMSFile> getFolderChildren(String path){\n return CMSFile.find(\"name NOT LIKE '\" + path + \"%/%' and name like '\" + path + \"%'\").fetch();\n }",
"private void iterateOverDefinitionDirectories() {\n\tfor (short repoIndex = Constants.gshMaxRepoDepth; repoIndex > Constants.gshZero; repoIndex--) {\n\t if (repoIndex == Constants.gshMaxRepoDepth) {\n\t\tif (mbJrestRepositoryRead == false) {\n\t\t mfDefinitionFile = new File(msPathToJrestRepo);\n\n\t\t mLogger.debug(String.format(Exceptions.gsJrestCurrentScanningFolder,\n\t\t\t msPathToJrestRepo));\n\n\t\t /*\n\t\t * loadDefinitions to be executed here only in the case of mbJrestRepositoryRead\n\t\t * being false and (repoIndex == Constants.gshMaxRepoDepth).\n\t\t */\n\t\t loadDefinitions(repoIndex);\n\t\t}// if (mbJrestRepositoryRead == false)\n\t } else {\n\t\tmLogger.debug(String.format(Exceptions.gsJrestCurrentScanningFolder,\n\t\t\tmsPathToDefinitionFiles));\n\n\t\tmfDefinitionFile = new File(msPathToDefinitionFiles);\n\n\t\tloadDefinitions(repoIndex);\n\t }// if (mbJrestRepositoryRead == false)\n\t}// for (short repoIndex = Constants.gshMaxRepoDepth; ... )\n }",
"private static boolean checkifdirmatches(NodeBase node, DefaultMutableTreeNode tnode, String name){\n if(node instanceof Directory){\n \n if(node.getName().equalsIgnoreCase(name))\n return true;\n }\n Enumeration children = tnode.children();\n while(children.hasMoreElements()){\n \n DefaultMutableTreeNode nextElement = (DefaultMutableTreeNode)children.nextElement();\n NodeBase chuserObject = (NodeBase)nextElement.getUserObject();\n \n if(checkifdirmatches(chuserObject, nextElement, name))\n return true;\n \n }\n \n return false; \n }",
"public static List<File> goFolder(File file) {\n File[] files = file.listFiles();\n for (File f : files) {\n if (!f.isDirectory()) {\n if (isCondition(f)) {\n fileList.add(f);\n }\n } else {\n goFolder(f);\n }\n }\n return fileList;\n }",
"protected abstract String[] getFolderList() throws IOException;",
"@Test\n public void testMkdirMultipleDirectoriesAbsolutePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"/directory1\", \"/directory2\"};\n String[] path2 = {\"/directory1/subDirectory1\", \"/directory2/subDirectory2\"};\n try {\n myTree.mkdir(path1);\n myTree.mkdir(path2);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2/subDirectory2\"), true);\n }",
"@Test\n public void testMkdirMultipleDirectoriesMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"directory1\", \"/directory2\"};\n String[] path2 = {\"directory1/subDirectory1\", \"/directory2/subDirectory2\"};\n try {\n myTree.mkdir(path1);\n myTree.mkdir(path2);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2/subDirectory2\"), true);\n }",
"private static void recorrerDirectorios(File[] ficheros, \n\t\t\tint indice, String texto) {\n\t\tif (indice <= ficheros.length - 1) {\n\t\t\tif (ficheros[indice].isDirectory()) {\n\t\t\t\t// si es directorio\n\t\t\t\tFile nuevo = new File(ficheros[indice].getPath());\n\t\t\t\tFile[] tabla = nuevo.listFiles();\n\t\t\t\trecorrerFicheros(tabla, 0, texto);\n\t\t\t\trecorrerDirectorios(tabla, 0, texto);\n\t\t\t\tindice++;\n\t\t\t\trecorrerDirectorios(ficheros, indice, texto);\n\t\t\t} else {\n\t\t\t\tindice++;\n\t\t\t\trecorrerDirectorios(ficheros, indice, texto);\n\t\t\t}\n\t\t}\n\t}",
"public static List<String> getDirectories(String startDir, Object... varargs) {\n\t\t// setting the default values when arguments' values are omitted\n\t\tString sessionID = null;\n\t\t// we can either choose to have a non recursive call, a complete recursive call\n\t\t// or a recursive call to a certain depth, in the last case we use an integer to\n\t\t// define\n\t\t// depth\n\t\t// the following three variables intend to implement this\n\t\tBoolean recursive = false;\n\t\tInteger integerRecursive = 0;\n\t\tString booleanOrInteger = \"\";\n\t\tif (varargs.length > 0) {\n\t\t\tif (!(varargs[0] instanceof String) && varargs[0] != null) {\n\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\tPMA.logger.severe(\"getDirectories() : Invalid argument\");\n\t\t\t\t}\n\t\t\t\tthrow new IllegalArgumentException(\"...\");\n\t\t\t}\n\t\t\tsessionID = (String) varargs[0];\n\t\t}\n\t\tif (varargs.length > 1) {\n\t\t\tif ((!(varargs[1] instanceof Integer) && !(varargs[1] instanceof Boolean)) && (varargs[1] != null)) {\n\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\tPMA.logger.severe(\"getDirectories() : Invalid argument\");\n\t\t\t\t}\n\t\t\t\tthrow new IllegalArgumentException(\"...\");\n\t\t\t}\n\t\t\tif (varargs[1] instanceof Boolean) {\n\t\t\t\trecursive = (Boolean) varargs[1];\n\t\t\t\tbooleanOrInteger = \"boolean\";\n\t\t\t}\n\t\t\tif (varargs[1] instanceof Integer) {\n\t\t\t\tintegerRecursive = (Integer) varargs[1];\n\t\t\t\trecursive = ((Integer) varargs[1]) > 0 ? true : false;\n\t\t\t\tbooleanOrInteger = \"integer\";\n\t\t\t}\n\t\t}\n\n\t\t// Return a list of sub-directories available to sessionID in the startDir\n\t\t// directory\n\t\tsessionID = sessionId(sessionID);\n\t\tString url = apiUrl(sessionID, false) + \"GetDirectories?sessionID=\" + PMA.pmaQ(sessionID) + \"&path=\"\n\t\t\t\t+ PMA.pmaQ(startDir);\n\t\tif (PMA.debug) {\n\t\t\tSystem.out.println(url);\n\t\t}\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tHttpURLConnection con;\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tcon = (HttpsURLConnection) urlResource.openConnection();\n\t\t\t} else {\n\t\t\t\tcon = (HttpURLConnection) urlResource.openConnection();\n\t\t\t}\n\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\tString jsonString = PMA.getJSONAsStringBuffer(con).toString();\n\t\t\tList<String> dirs;\n\t\t\tif (PMA.isJSONObject(jsonString)) {\n\t\t\t\tJSONObject jsonResponse = PMA.getJSONObjectResponse(jsonString);\n\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\tif (jsonResponse.has(\"Code\")) {\n\t\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\t\tPMA.logger.severe(\"get_directories to \" + startDir + \" resulted in: \"\n\t\t\t\t\t\t\t\t+ jsonResponse.get(\"Message\") + \" (keep in mind that startDir is case sensitive!)\");\n\t\t\t\t\t}\n\t\t\t\t\tthrow new Exception(\"get_directories to \" + startDir + \" resulted in: \"\n\t\t\t\t\t\t\t+ jsonResponse.get(\"Message\") + \" (keep in mind that startDir is case sensitive!)\");\n\t\t\t\t} else if (jsonResponse.has(\"d\")) {\n\t\t\t\t\tJSONArray array = jsonResponse.getJSONArray(\"d\");\n\t\t\t\t\tdirs = new ArrayList<>();\n\t\t\t\t\tfor (int i = 0; i < array.length(); i++) {\n\t\t\t\t\t\tdirs.add(array.optString(i));\n\t\t\t\t\t}\n\t\t\t\t\t// return dirs;\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tJSONArray jsonResponse = PMA.getJSONArrayResponse(jsonString);\n\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\tdirs = new ArrayList<>();\n\t\t\t\tfor (int i = 0; i < jsonResponse.length(); i++) {\n\t\t\t\t\tdirs.add(jsonResponse.optString(i));\n\t\t\t\t}\n\t\t\t\t// return dirs;\n\t\t\t}\n\n\t\t\t// we test if call is recursive, and if yes to which depth\n\t\t\tif (recursive) {\n\t\t\t\tfor (String dir : getDirectories(startDir, sessionID)) {\n\t\t\t\t\tif (booleanOrInteger.equals(\"boolean\")) {\n\t\t\t\t\t\tdirs.addAll(getDirectories(dir, sessionID, recursive));\n\t\t\t\t\t}\n\t\t\t\t\tif (booleanOrInteger.equals(\"integer\")) {\n\t\t\t\t\t\tdirs.addAll(getDirectories(dir, sessionID, integerRecursive - 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn dirs;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tStringWriter sw = new StringWriter();\n\t\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\t\tPMA.logger.severe(sw.toString());\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}",
"public void listFilesAndFilesSubDirectories(String directoryName) throws IOException{\n File directory = new File(directoryName);\n //get all the files from a directory\n System.out.println(\"List of Files and file subdirectories in: \" + directory.getCanonicalPath());\n File[] fList = directory.listFiles();\n for (File file : fList){\n if (file.isFile()){\n System.out.println(file.getAbsolutePath());\n } else if (file.isDirectory()){\n listFilesAndFilesSubDirectories(file.getAbsolutePath());\n }\n }\n }",
"boolean hasRecursive();",
"@Override\r\n\tpublic String[] listFolders() throws FileSystemUtilException {\r\n\t\t// getting all the files and folders in the given file path\r\n\t\tString[] files = listFiles();\r\n\t\tList foldersList = new ArrayList();\r\n\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t// all the folder are ends with '/'\r\n\t\t\tif (files[i].endsWith(\"/\") && isValidString(files[i])) {\r\n\t\t\t\tfoldersList.add(files[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString[] folders = new String[foldersList.size()];\r\n\t\t// getting only folders from returned array of files and folders\r\n\t\tfor (int i = 0; i < foldersList.size(); i++) {\r\n\t\t\tfolders[i] = foldersList.get(i).toString();\r\n\t\t}\r\n\t\treturn folders;\r\n\r\n\t}",
"static void walkTheDir(){ \n\t try (Stream<Path> paths = Files.walk(Paths.get(\"/ownfiles/tullverketCert/source\"))) {\n\t \t paths\n\t \t .filter(Files::isRegularFile)\n\t \t //.forEach(System.out::println);\n\t \t .forEach( e ->{\n\t \t \t\tSystem.out.println(e);\n\t \t \t\tSystem.out.println(e.getParent());\n\t \t \t\t\n\t \t \t});\n\t \t \n \t}catch (Exception e) { \n\t System.out.println(\"Exception: \" + e); \n\t } \n\t }",
"public abstract List<String> getDirs( );",
"public boolean\tisDirectory() {\r\n\t\treturn true ;\r\n\t}",
"private void addPackageDirFiles(WebFile aDir, List aList)\n{\n boolean hasNonPkgFile = false;\n for(WebFile child : aDir.getFiles())\n if(child.isDir() && child.getType().length()==0)\n addPackageDirFiles(child, aList);\n else hasNonPkgFile = true;\n if(hasNonPkgFile || aDir.getFileCount()==0) aList.add(aDir);\n}",
"private static void buildDir (File dir) \n\t\tthrows Exception\n\t{\n\t\tFile[] contents = dir.listFiles();\n\t\tfor (int i = 0; i < contents.length; i++) {\n\t\t\tFile file = contents[i];\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tbuildDir(file);\n\t\t\t} else if (file.getName().endsWith(\".xml\")) {\n\t\t\t\tbuildFile(file);\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException {\r\n\t\tPath path = Paths.get(userHome+\"/Files/questions/animals\");\r\n\t\tboolean myBoolean = Files.walk(path)\r\n\t\t\t\t// will not compile\r\n\t\t\t\t// filter expect a Predicate and not a BiPredicate\r\n\t\t\t\t// and isDirectory belongs to Files not to Path\r\n\t\t\t\t//.filter((p,a) -> a.isDirectory() && !path.equals(p))//w1\r\n\t\t\t\t.findFirst().isPresent();//w2\r\n\t\tSystem.out.println(myBoolean ? \"No Sub-directory\" : \"Has Sub-directory\");\r\n\t\t\t\t\r\n\t}",
"private static void traverse(Path path, ArrayList<Path> fileArray) {\r\n try (DirectoryStream<Path> listing = Files.newDirectoryStream(path)) {\r\n for (Path file : listing) {\r\n if (file.toString().toLowerCase().endsWith(\".txt\")) {\r\n fileArray.add(file);\r\n } else if (Files.isDirectory(file)) {\r\n traverse(file, fileArray);\r\n }\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Invalid path: \" + path);\r\n }\r\n }",
"private ArrayList<String> checkSubDir(ArrayList<String> paths) {\n ArrayList<String> finalPaths;\n finalPaths = (ArrayList<String>) paths.clone();\n for (int i = 0; i < paths.size(); i++) {\n if (!checkValidity(paths.get(i))) {\n finalPaths.remove(paths.get(i));\n continue;\n }\n for (int j = i + 1; j < paths.size(); j++)\n if (paths.get(j).contains(paths.get(i))) {\n finalPaths.remove(paths.get(j));\n }\n }\n return finalPaths;\n }",
"public Document getDirectoryStructure(String folder,\n\t\t\tint recursion_level, boolean absolutePath)\n\t\t\tthrows FileNotFoundException, DOMException, RemoteFileSystemException, VomsException {\n\n\t\toutput = getDocBuilder().newDocument();\n\t\tElement root = output.createElement(\"Files\");\n\t\t\n\t\tif (absolutePath) {\n\t\t\troot.setAttribute(\"absolutePath\", \"true\");\n\t\t} else {\n\t\t\troot.setAttribute(\"absolutePath\", \"false\");\n\t\t}\n\t\troot.setAttribute(\"name\", \"fs_root\");\n\t\t\n\t\toutput.appendChild(root);\n\t\t\n\t\tif (\"/\".equals(folder)) {\n\t\t\tfor (MountPoint mp : user.getAllMountPoints()) {\n\t\t\t\tElement mp_element = output.createElement(\"MountPoint\");\n\t\t\t\tif (absolutePath) {\n\t\t\t\t\tmp_element.setAttribute(\"path\", mp.getRootUrl());\n\t\t\t\t\tmp_element.setAttribute(\"name\", mp.getRootUrl());\n\t\t\t\t} else {\n\t\t\t\t\tmp_element.setAttribute(\"path\", mp.getMountpoint());\n\t\t\t\t\tmp_element.setAttribute(\"name\", mp.getMountpoint().substring(1));\n\t\t\t\t}\n\t\t\t\tif ( recursion_level > 1 ) \n\t\t\t\t\tbuildDirectoryStructure(mp_element, mp, absolutePath, 1, recursion_level);\n\t\t\t\troot.appendChild(mp_element);\n\t\t\t}\n\t\t} else {\n\t\t\tMountPoint mp = null;\n\t\t\tif ( folder.startsWith(\"/\") ) {\n\t\t\t\tmp = user.getResponsibleMountpointForUserSpaceFile(folder);\n\t\t\t} else {\n\t\t\t\tmp = user.getResponsibleMountpointForAbsoluteFile(folder);\n\t\t\t}\n\t\t\tElement root_element = null;\n//\t\t\tif ( mp != null ) {\n//\t\t\t\troot_element = output.createElement(\"MountPoint\");\n//\t\t\t\tif (absolutePath) {\n//\t\t\t\t\troot_element.setAttribute(\"path\", mp.getRootUrl());\n//\t\t\t\t\troot_element.setAttribute(\"name\", mp.getRootUrl());\n//\t\t\t\t} else {\n//\t\t\t\t\troot_element.setAttribute(\"path\", mp.getMountpoint());\n//\t\t\t\t\troot_element.setAttribute(\"name\", mp.getMountpoint().substring(1));\n//\t\t\t\t\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t\tbuildDirectoryStructure(root_element, mp, absolutePath, 0, recursion_level);\n//\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\troot_element = createElement(user.aquireFile(folder), absolutePath, mp);\n\t\t\t\t} catch (FileSystemException e) {\n\t\t\t\t\tthrow new RemoteFileSystemException(\"Could not aquire file: \"+folder+\": \"+e.getMessage());\n\t\t\t\t}\n\t\t\t\tbuildDirectoryStructure(root_element, mp, absolutePath, 1, recursion_level);\n//\t\t\t}\n\t\t\troot.appendChild(root_element);\n\t\t\t\t\n\t\t}\n\n\t\treturn output;\n\t}",
"private static void traverse(ItemInfo rootItem, List<ItemInfo> results, int depth, String extraAttributes) throws Exception {\n Objects.requireNonNull(extraAttributes);\n\n final Collection<ItemInfo> children = new ArrayList<>();\n\n// final URL itemURL\n// = UriBuilder\n// .fromUri(rootItem.href.replace(\" \", \"%20\"))\n// .queryParam(\"attributes\", extraAttributes)\n// .build()\n// .toURL();\n\n final HttpURLConnection getItemConnection = (HttpURLConnection) rootItem.href.openConnection();\n getItemConnection.setConnectTimeout(PlatformTools.getDefaultConnectionTimeoutms());\n getItemConnection.setReadTimeout(PlatformTools.getDefaultReadTimeoutms());\n getItemConnection.setRequestProperty(\"Accept\", \"application/hal+json\");\n\n final int itemStatus = getItemConnection.getResponseCode();\n if (HttpURLConnection.HTTP_OK == itemStatus) {\n final String rawItemPageResults = PlatformTools.getContent(getItemConnection);\n final JSONObject itemResult = JSONObject.fromObject(rawItemPageResults);\n results.add(new ItemInfo(itemResult, depth));\n\n final JSONObject embedded = (JSONObject) itemResult.get(\"_embedded\");\n JSONObject collection = null;\n if (null != embedded) {\n collection = (JSONObject) embedded.get(\"loc:collection\");\n }\n // The item to traverse is a folder:\n if (null != collection) {\n // Get the items of the folder pagewise:\n JSONObject embeddedItems = (JSONObject) collection.get(\"_embedded\");\n if (null != embeddedItems) {\n do {\n final Object itemsObject = embeddedItems.get(\"loc:item\");\n if (null != itemsObject) {\n if (itemsObject instanceof JSONArray) {\n final JSONArray items = (JSONArray) itemsObject;\n\n final Collection<ItemInfo> itemPage = new ArrayList<>(items.size());\n for (final Object item : items) {\n final JSONObject folderItem = (JSONObject) item;\n itemPage.add(new ItemInfo(folderItem, depth + 1));\n }\n children.addAll(itemPage);\n } else {\n children.add(new ItemInfo((JSONObject) itemsObject, depth + 1));\n }\n }\n\n final JSONObject linkToNextPage = (JSONObject) collection.getJSONObject(\"_links\").get(\"next\");\n if (null != linkToNextPage) {\n final HttpURLConnection itemNextPageConnection = (HttpURLConnection) new URL(linkToNextPage.getString(\"href\").replace(\" \", \"%20\")).openConnection();\n itemNextPageConnection.setConnectTimeout(PlatformTools.getDefaultConnectionTimeoutms());\n itemNextPageConnection.setReadTimeout(PlatformTools.getDefaultReadTimeoutms());\n itemNextPageConnection.setRequestProperty(\"Accept\", \"application/hal+json\");\n\n final int itemNextPageStatus = itemNextPageConnection.getResponseCode();\n if (HttpURLConnection.HTTP_OK == itemNextPageStatus) {\n final String rawNextItemPageResults = PlatformTools.getContent(itemNextPageConnection);\n collection = JSONObject.fromObject(rawNextItemPageResults);\n embeddedItems = (JSONObject) collection.get(\"_embedded\");\n } else {\n collection = null;\n }\n } else {\n collection = null;\n }\n } while (null != collection && null != embeddedItems);\n }\n }\n\n for (final ItemInfo item : children) {\n if (item.hasChildren) {\n traverse(item, results, depth + 1, extraAttributes);\n }\n }\n\n for (final ItemInfo item : children) {\n if (!item.hasChildren) {\n results.add(item);\n }\n }\n } else {\n LOG.log(Level.INFO, \"Get item failed for item <{0}>. -> {1}\", new Object[] {rootItem.href, PlatformTools.getContent(getItemConnection)});\n }\n }",
"@Override\r\n public void dirToPath(String[] arr) {\n\r\n }",
"@Override\r\n\tpublic String globMultiLevel(String[] args) {\r\n\t\treturn globHelper(args);\r\n\t}",
"private void listAllClasses(List<Path> foundFiles, Path root) {\r\n if (root.toFile().isFile()) {\r\n foundFiles.add(root);\r\n } else {\r\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(root, filter)) {\r\n for (Path path : stream) {\r\n if (Files.isDirectory(path)) {\r\n listAllClasses(foundFiles, path);\r\n } else {\r\n foundFiles.add(path);\r\n }\r\n }\r\n } catch (AccessDeniedException e) {\r\n logger.error(\"Access denied to directory {}\", root, e);\r\n } catch (IOException e) {\r\n logger.error(\"Error while reading directory {}\", root, e);\r\n }\r\n }\r\n }",
"public void createSubDirData() {\n\t\tFile f = new File(getPFDataPath());\n\t\tf.mkdirs();\n\t}",
"public static void findStructureFiles() {\n\t\tstructureFiles = new LinkedList<File>();\n\t\tLinkedList<File> unexploredDirectories = new LinkedList<File>();\n\t\tFile baseDir = new File(\"structures\");\n\t\t\n\t\tif (baseDir.exists() && baseDir.isDirectory()) {\n\t\t\t// load base directory's files\n\t\t\trecursiveFindStructureFiles(baseDir, unexploredDirectories);\n\t\t\t\n\t\t\t// load sub-directories' files, breadth-first\n\t\t\twhile (!unexploredDirectories.isEmpty()) {\n\t\t\t\trecursiveFindStructureFiles(unexploredDirectories.pop(), unexploredDirectories);\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new IllegalStateException(\"Unable to locate structures folder.\");\n\t\t}\n\t}",
"@Test\n public void testCdRelativePathOneDeepToMultiDeep() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"directory2\" , \"/directory2/directory3\", \n \"/directory2/directory3/directory4\"};\n try {\n myTree.mkdir(path1);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n try {\n myTree.cd(\"directory2\");\n myTree.cd(\"directory3/directory4\");\n } catch (NotDirectoryException e) {\n fail(\"Could not change to the directory\");\n }\n assertEquals(\"/directory2/directory3/directory4\", myTree.pwd());\n }",
"private void recursiveCreateChildren(IFolder parentFolder, int depth) throws CoreException {\n \t\t//create TREE_WIDTH files\n \t\tfor (int i = 0; i < TREE_WIDTH; i++) {\n \t\t\tIFile file = parentFolder.getFile(createString(10));\n \t\t\tfile.create(new ByteArrayInputStream(createBytes(5000)), IResource.NONE, getMonitor());\n \t\t}\n \t\tif (depth <= 0)\n \t\t\treturn;\n \t\t//create TREE_WIDTH folders\n \t\tfor (int i = 0; i < TREE_WIDTH; i++) {\n \t\t\tIFolder folder = parentFolder.getFolder(createString(6));\n \t\t\tfolder.create(IResource.NONE, true, getMonitor());\n \t\t\trecursiveCreateChildren(folder, depth - 1);\n \t\t}\n \t}",
"public void isfolder(File findfile){\n\t\tif(findfile.isDirectory()){\n\t\t\tSystem.out.println(findfile + \"is a directory\");\n\t\t\tString[] directoryContents = findfile.list();\n\t\t\tfor(int i = 0; i < directoryContents.length; i++){\n\t\t\t\tFile newpath = new File(findfile + \"/\" + directoryContents[i]);\n\t\t\t\tisfolder(newpath);\n\t\t\t\t\t\t\n\t\t\t}\n\t\t}else{\n\t\t\tHashmappDemo.addtoHashMap(findfile);\n\t\t}\n\t\t\n\t}",
"protected void recursiveInitialize(List<JoinPath> joinPaths, Object rootObj) throws OgnlException\n {\n\n Map<String, Object> joinPathMap = new HashMap<String, Object>();\n Map<String, Object> flatIndex = new HashMap<String, Object>();\n HashMap parentMap = new HashMap();\n parentMap.put(\"alias\",\"this\");\n parentMap.put(\"joinType\", JoinType.LEFT_JOIN);\n joinPathMap.put(\"this\", parentMap);\n flatIndex.put(\"this\", parentMap);\n\n for (JoinPath joinPath : joinPaths)\n {\n if(StringUtils.isBlank(joinPath.alias))\n {\n //kalo kosong lewati\n/*\n String[] pathArray = joinPath.path.split(\"[.]\");\n HashMap mapMember = new HashMap();\n mapMember.put(\"joinType\", joinPath.joinType);\n String key = pathArray[pathArray.length - 1];\n if(flatIndex.get(key)!=null)//ada alias kembar tolak !!\n {\n throw new RuntimeException(\"Alias dari Join Path :\"+key+\" terdefinisi lebih dari sekali\");\n }\n flatIndex.put(key, mapMember);\n*/\n }\n else\n {\n HashMap mapMember = new HashMap();\n mapMember.put(\"joinType\", joinPath.joinType);\n String key = joinPath.alias;\n if(flatIndex.get(key)!=null)//ada alias kembar tolak !!\n {\n throw new RuntimeException(\"Alias dari Join Path :\"+key+\" terdefinisi lebih dari sekali\");\n }\n flatIndex.put(key, mapMember);\n }\n }\n for (JoinPath joinPath : joinPaths)\n {\n String[] pathArray = joinPath.path.split(\"[.]\");\n if(pathArray.length>1)\n {\n //gabung alias ke pathnya\n //cari parent\n Map mapParent = (Map) flatIndex.get(pathArray[0]);\n if(mapParent==null)\n continue;\n //cari alias child\n Map mapChild;\n //ambil dari alias dari looping atas\n if(StringUtils.isNotBlank(joinPath.alias))\n {\n mapChild = (Map) flatIndex.get(joinPath.alias);\n }\n else\n {\n mapChild = (Map) flatIndex.get(pathArray[1]);\n }\n mapParent.put(pathArray[1], mapChild);\n }\n else\n {\n //gabung alias ke pathnya\n //cari parent -- this\n Map mapParent = (Map) flatIndex.get(\"this\");\n if(mapParent==null)\n continue;\n //cari alias child\n Map mapChild;\n //ambil dari alias dari looping atas\n if(StringUtils.isNotBlank(joinPath.alias))\n {\n mapChild = (Map) flatIndex.get(joinPath.alias);\n }\n else\n {\n mapChild = (Map) flatIndex.get(pathArray[0]);\n }\n mapParent.put(pathArray[0], mapChild);\n }\n }\n if(cleanUp((Map<String, Object>) joinPathMap.get(\"this\")))\n {\n if (Collection.class.isAssignableFrom(rootObj.getClass()))\n {\n for (Object rootObjIter : ((Collection) rootObj))\n {\n recursiveInitialize((Map<String, Object>) joinPathMap.get(\"this\"), rootObjIter, true);\n }\n }\n else\n {\n recursiveInitialize((Map<String, Object>) joinPathMap.get(\"this\"), rootObj, false);\n }\n }\n }",
"public void directorySearch(File dir, String target)\n\t{\n\t\tif(!(dir.isDirectory()))\n\t\t{\n\t\t\t//If file is not a directory, throw the exception.\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tif(count == maxFiles)\n\t\t{\n\t\t\t//If count is equal to maxFiles, throw the exception.\n\t\t\t//If it doesn't then this will act as a base case to\n\t\t\t//the recursion. \n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Put all the sub directories in an array. \n\t\t\tFile[] file = dir.listFiles();\n\t\t\t\n\t\t\t//Print out the path and the file directory list \n\t\t\tSystem.out.println(dir.getPath() + \": \" + dir.listFiles());\n\t\t\t\n\t\t\t//Go through each of the file length\n\t\t\tfor(int i = 0; i < file.length; i++)\n\t\t\t{\n\t\t\t\t//Get the file name \n\t\t\t\tSystem.out.println(\" -- \" + file[i].getName());\n\t\t\t\t\n\t\t\t\t//If the file name is the target, then add it to the \n\t\t\t\t//stack and return\n\t\t\t\tif(file[i].getName().equals(target))\n\t\t\t\t{\n\t\t\t\t\t//If the item inside the file is the target.\n\t\t\t\t\tcount++;\n\t\t\t\t\tfileList.add(file[i].getPath());\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//If its a directory, then recurse.\n\t\t\t\tif(file[i].isDirectory())\n\t\t\t\t{\n\t\t\t\t\tdirectorySearch(file[i], target);\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (NullPointerException e)\n\t\t{\n\t\t\t//If the File[] is null then catch this exception.\n\t\t\treturn;\n\t\t}\n\t}",
"@Test\n public void testMkdirOneDirectoryAbsolutePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"/directory1\", \"/directory1/subDirectory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"A already exists or a path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n }",
"@RequestMapping(\"/web/**\")\n\tpublic String allFolders() {\n\t System.out.println(\"In /web/**\");\n\t return \"success\";\n\t}",
"public ArrayList<FolderDTO> templateGetFoldersByParent(Long idParent)\n\t{\n\t\tArrayList<FolderDTO> returnList = new ArrayList<>();\n\t\tFolderDAO dao = new FolderDAO();\n\t\tCollection<Folder> folderSub = dao.getByParent(idParent);\n\t\t\n\t\tfor(Folder folder:folderSub){\n\t\t\tFolderDTO folderDto = new FolderDTO();\n\t\t\tfolderDto.setId(folder.getId());\n\t\t\tfolderDto.setTitle(folder.getTitle());\n\t\t\treturnList.add(folderDto);\n\t\t}\n\t\t\n\t\treturn returnList;\n\t}",
"private void listDirectories (Directory currentDirectory) {\n currentDirectory.printSubDirectories(\"DIRS : \");\n }",
"@Override\n public boolean accept(File pathname) {\n\n if(pathname.isDirectory()) {\n \n String subDir = this.getRelativePath(pathname.getPath());\n \n if(subDir != null) {\n\n PageList subList = new PageList(this);\n \n // populates this list\n subList.setDir(subDir);\n\n this.addAll(subList);\n }\n }else{\n \n boolean accept = this.acceptFilename(pathname.getName());\n \n if(accept) {\n this.addFile(pathname);\n }\n }\n \n return false;\n }",
"@Override\n protected List<String> compute() {\n List<String> fileNames = new ArrayList<>();\n\n // FolderProcessor tasks to store the sub-tasks that are going to process the sub-folders stored inside folder.\n List<FolderProcessor> subTasks = new ArrayList<>();\n\n // Get the content of the folder.\n File file = new File(path);\n File content[] = file.listFiles();\n\n //For each element in the folder, if there is a subfolder, create a new FolderProcessor object\n //and execute it asynchronously using the fork() method.\n for (int i = 0; i < content.length; i++) {\n if (content[i].isDirectory()) {\n FolderProcessor task = new FolderProcessor(content[i].getAbsolutePath(), extension);\n task.fork();\n subTasks.add(task);\n } else {\n //Otherwise, compare the extension of the file with the extension you are looking for using the checkFile() method\n //and, if they are equal, store the full path of the file in the list of strings declared earlier.\n\n if (checkFile(content[i].getName())) {\n fileNames.add(content[i].getAbsolutePath());\n }\n }\n }\n\n //If the list of the FolderProcessor sub-tasks has more than 50 elements,\n //write a message to the console to indicate this circumstance.\n if (subTasks.size() > 50) {\n System.out.printf(\"%s: %d tasks ran.\\n\", file.getAbsolutePath(), subTasks.size());\n }\n\n // Add the results from the sub-tasks.\n addResultsFrommSubTasks(fileNames, subTasks);\n\n return fileNames;\n }",
"private void FindFiles(Path findPath)\n {\n\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(findPath))\n {\n\n for (Path thisPath : stream)\n {\n File file = new File(thisPath.toString());\n\n if (file.isDirectory())\n {\n dirCount++;\n\n if (HasMatch(thisPath.toString(), lineIncludePattern, lineExcludePattern))\n {\n dirLineMatchCount++;\n\n System.out.println(thisPath.toAbsolutePath().toString() + \",directory,none\");\n }\n\n if (HasMatch(thisPath.toString(), dirIncludePattern, dirExcludePattern))\n {\n dirMatchCount++;\n folderLevel++;\n //indentBuffer = String.join(\"\", Collections.nCopies(folderLevel * 3, \" \"));\n indentBuffer = \"\";\n\n //System.out.println(indentBuffer + thisPath.toString() + \" ...\");\n FindFiles(thisPath.toAbsolutePath());\n\n folderLevel--;\n //indentBuffer = String.join(\"\", Collections.nCopies(folderLevel * 3, \" \"));\n }\n }\n else\n {\n fileCount++;\n\n if (HasMatch(thisPath.getParent().toString(), lineIncludePattern, lineExcludePattern))\n {\n fileLineMatchCount++;\n\n System.out.println(thisPath.getParent().toString() + \",\" + thisPath.getFileName() + \",none\");\n }\n\n if (HasMatch(thisPath.toString(), fileIncludePattern, fileExcludePattern))\n {\n fileMatchCount++;\n\n File refFile;\n if (doReplace)\n {\n refFile = new File(thisPath.toString() + \"_bak\");\n file.renameTo(refFile);\n\n //System.out.println(indentBuffer + thisPath.toString());\n Scan(refFile.toPath().toAbsolutePath().toString(),thisPath.toAbsolutePath().toString());\n }\n else\n {\n //System.out.println(indentBuffer + thisPath.toString());\n Scan(file.toPath().toAbsolutePath().toString(),thisPath.toAbsolutePath().toString());\n }\n\n }\n }\n }\n }\n catch (Exception e)\n {\n System.err.format(\"Exception occurred trying to read '%s'.\", findPath);\n e.printStackTrace();\n }\n\n }",
"public LevelOrderIterator(File rootNode) throws FileNotFoundException {\n\t\t// TODO 1\n\t\tfileQueue = new Queue<>();\n\t\tQueue<File> temp = new Queue<>();\n\t\t// Queue<File> tempTemp = new Queue<>();\n\t\tif (!rootNode.exists()) throw new FileNotFoundException();\n\t\tfileQueue.enqueue(rootNode);\n\t\t//temp.enqueue(rootNode);\n\t\tFile[] files = rootNode.listFiles();\n\t\tif (files == null) return;\n\t\tArrays.sort(files);\n\t\tfor (File f : files) {\n\t\t\ttemp.enqueue(f);\n\t\t}\n\t\twhile (!temp.isEmpty()) {\n\t\t\tif (temp.peek().isDirectory()){\n\t\t\t\tFile[] dir = temp.peek().listFiles();\n\t\t\t\tif (dir == null) {\n\t\t\t\t\tfileQueue.enqueue(temp.dequeue());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tArrays.sort(dir);\n\t\t\t\tfor (File f : dir) {\n\t\t\t\t\ttemp.enqueue(f);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tfileQueue.enqueue(temp.dequeue());\n\t\t}\n//\t\tfor (File f : files) {\n//\t\t\tfileQueue.enqueue(f);\n//\t\t\tif (f.isDirectory()){\n//\t\t\t\tFile[] filesTemp = f.listFiles();\n//\t\t\t\tif (filesTemp == null) continue;\n//\t\t\t\tArrays.sort(filesTemp);\n//\t\t\t\tfor (File g : filesTemp) {\n//\t\t\t\t\ttemp.enqueue(g);\n//\t\t\t\t\tif (f.isDirectory()){\n//\t\t\t\t\t\tFile[] filesTempTemp = f.listFiles();\n//\t\t\t\t\t\tif (filesTempTemp == null) continue;\n//\t\t\t\t\t\tArrays.sort(filesTempTemp);\n//\t\t\t\t\t\tfor (File h : filesTempTemp)\n//\t\t\t\t\t\t\ttempTemp.enqueue(h);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n//\t\twhile(!temp.isEmpty())\n//\t\t\tfileQueue.enqueue(temp.dequeue());\n//\t\twhile(!tempTemp.isEmpty())\n//\t\t\tfileQueue.enqueue(tempTemp.dequeue());\n\t}",
"private void tarFolder( String parent, String path, TarOutputStream out ) \n throws IOException \n {\n BufferedInputStream origin = null;\n File f = new File( path );\n String files[] = f.list();\n if (files == null) \n {\n files = new String[1];\n files[0] = f.getName();\n }\n parent = ( ( parent == null ) ? ( f.isFile() ) ? \"\" \n : f.getName() + \"/\" : parent + f.getName() + \"/\" );\n for (int i = 0; i < files.length; i++) \n {\n File fe = f;\n byte data[] = new byte[BUFFER];\n \n if (f.isDirectory()) {\n fe = new File( f, files[i] );\n }\n \n if (fe.isDirectory()) {\n String[] fl = fe.list();\n if (fl != null && fl.length != 0)\n tarFolder( parent, fe.getPath(), out );\n else \n {\n TarEntry entry = new TarEntry( fe, parent + files[i] + \"/\" );\n out.putNextEntry( entry );\n }\n continue;\n }\n FileInputStream fi = new FileInputStream( fe );\n origin = new BufferedInputStream( fi );\n TarEntry entry = new TarEntry( fe, parent + files[i] );\n out.putNextEntry( entry );\n int count;\n //int bc=0;\n while ( (count=origin.read(data)) != -1 ) \n {\n out.write( data, 0, count );\n //bc+=count;\n }\n //System.out.println(\"Wrote \"+bc+\" bytes from \"+files[i]+\" to out\");\n out.flush();\n origin.close();\n }\n }",
"public boolean isRecursive ()\n {\n return m_bRecursive;\n }",
"private void updateAllFoldersTreeSet() throws MessagingException {\n\n Folder[] allFoldersArray = this.store.getDefaultFolder().list(\"*\");\n TreeSet<Folder> allFoldersTreeSet =\n new TreeSet<Folder>(new FolderByFullNameComparator());\n\n for(int ii = 0; ii < allFoldersArray.length; ii++) {\n\n allFoldersTreeSet.add(allFoldersArray[ii]);\n }\n\n this.allFolders = allFoldersTreeSet;\n }"
] | [
"0.64152664",
"0.6254774",
"0.62151146",
"0.6040673",
"0.6018732",
"0.5967609",
"0.59432626",
"0.5939062",
"0.58492696",
"0.57759243",
"0.57693595",
"0.5742291",
"0.57074636",
"0.57030857",
"0.5686308",
"0.5677033",
"0.56172246",
"0.55810744",
"0.55668217",
"0.5565922",
"0.5558472",
"0.55516803",
"0.5542125",
"0.5541634",
"0.55160505",
"0.55120254",
"0.55020326",
"0.5486381",
"0.5451386",
"0.545125",
"0.5432099",
"0.5429667",
"0.54158723",
"0.5399262",
"0.538284",
"0.5369115",
"0.5364518",
"0.53641295",
"0.53583884",
"0.53520584",
"0.5343559",
"0.5338155",
"0.5316835",
"0.5306003",
"0.53023434",
"0.52954507",
"0.5292534",
"0.52889156",
"0.5264359",
"0.526066",
"0.5259502",
"0.5256827",
"0.52531207",
"0.5250311",
"0.5242743",
"0.5242073",
"0.5236006",
"0.5230326",
"0.52301615",
"0.5216289",
"0.5213488",
"0.52097064",
"0.5203882",
"0.52021545",
"0.519924",
"0.5189327",
"0.51823616",
"0.51739115",
"0.5169338",
"0.516128",
"0.51556355",
"0.51468104",
"0.51392496",
"0.5130354",
"0.5122608",
"0.5122361",
"0.51106614",
"0.51041156",
"0.5089287",
"0.5088674",
"0.5085457",
"0.5083066",
"0.5078161",
"0.50778794",
"0.50778073",
"0.5075358",
"0.50629306",
"0.5054888",
"0.5052211",
"0.5042868",
"0.50392103",
"0.50384",
"0.5032441",
"0.5024816",
"0.5024211",
"0.5020361",
"0.5017647",
"0.50160927",
"0.50110143",
"0.5010596",
"0.5008452"
] | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.view_task_by_name, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent i = new Intent(this,MainActivity.class);
startActivity(i);
} | {
"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 |
Check bullets with enemies | private static void checkCollisions() {
ArrayList<Entity> bulletsArray = bullets.entities;
ArrayList<Entity> enemiesArray = enemies.entities;
for (int i = 0; i < bulletsArray.size(); ++i) {
for (int j = 0; j < enemiesArray.size(); ++j) {
if (j < 0) {
continue;
}
if (i < 0) {
break;
}
Entity currentBullet = bulletsArray.get(i);
Entity currentEnemy = enemiesArray.get(j);
if (Collision.boxBoxOverlap(currentBullet, currentEnemy)) {
++player.hiScore;
if (currentBullet.collided(currentEnemy)) {
--i;
}
if (currentEnemy.collided(currentBullet)) {
--j;
}
}
}
}
textHiScore.setString("HISCORE:" + player.hiScore);
// Check players with bonuses
ArrayList<Entity> bonusArray = bonus.entities;
for (int i = 0; i < bonusArray.size(); ++i) {
Entity currentBonus = bonusArray.get(i);
if (Collision.boxBoxOverlap(player, currentBonus)) {
if (currentBonus.collided(player)) {
--i;
player.collided(currentBonus);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void enemyShoot()\r\n\t{\r\n\t\tfor (Enemy enemies : enemy)\r\n\t\t{\r\n\t\t\tif (enemies.getHasFired())\r\n\t\t\t{\r\n\t\t\t\tBullet enemyPew = enemies.shoot();\r\n\t\t\t\tif (enemyPew != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.add(enemyPew);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void trackBullets(){\n for (int i = 0; i < bullets.size(); i++){\n Bullet tempBullet = bullets.get(i);\n //update the position of the bullets\n tempBullet.update();\n tempBullet.drawBullet();\n //check if the bullet hit the boundary, remove the bullet from the list of the bullet\n if(tempBullet.detectBound()){\n bullets.remove(i);\n continue;\n }\n //detect if the bullet hit the boss and cause the damage if yes\n if(tempBullet.hitObject(Main.boss) && Main.boss.alive){\n Main.boss.decreaseHealth(attack);\n tempBullet.drawHit();\n bullets.remove(i);\n if(Main.boss.health <= 0){\n Main.boss.alive = false;\n Main.boss.deadTime = millis();\n Main.score += 100;\n }\n }\n //detect if the bullet hit the enemy and cause the damage if yes\n for(int j = 0; j < Main.enemies.size(); j++){\n Enemy tempEnemy = Main.enemies.get(j);\n if(tempBullet.hitObject(tempEnemy) && tempEnemy.alive){\n tempBullet.drawHit();\n tempEnemy.decreaseHealth(attack);\n // if enemy is totally hitted, wait one 1s, and then removed\n if(tempEnemy.health <= 0){\n tempEnemy.alive = false;\n tempEnemy.deadTime = millis();\n }\n bullets.remove(i);\n break;\n }\n }\n }\n }",
"private void UpdateBullets()\n\t {\n\t for(int i = 0; i < BulletList.size(); i++)\n\t {\n\t Bullet bullet = BulletList.get(i);\n\t \n\t // Move the bullet.\n\t bullet.Update();\n\t \n\t // checks if the bullet has it left the screen\n\t if(bullet.HasLeftScreen()){\n\t BulletList.remove(i);\n\t \n\t continue;\n\t }\n\t \n\t // checks if the bullet hit the enemy\n\t Rectangle BulletRectangle = new Rectangle((int)bullet.xCoord, (int)bullet.yCoord, bullet.BulletImage.getWidth(), bullet.BulletImage.getHeight());\n\t // Go trough all enemies.\n\t for(int j = 0; j < EnemyList.size(); j++)\n\t {\n\t Enemy eh = EnemyList.get(j);\n\n\t \n\t Rectangle EnemyRectangel = new Rectangle(eh.xCoord, eh.yCoord, eh.EnemyHelicopterImage.getWidth(), eh.EnemyHelicopterImage.getHeight());\n\n\t // Checks whether the the bullet has hit the enemy\n\t if(BulletRectangle.intersects(EnemyRectangel))\n\t {\n\t // Bullet hit the enemy so we reduce his health.\n\t eh.Health -= Bullet.DamagePower;\n\t \n\t // Bullet was also destroyed so we remove it.\n\t BulletList.remove(i);\n\t \n\t \n\t }\n\t }\n\t }\n\t }",
"void checkCol() {\n Player player = gm.getP();\n int widthPlayer = (int) player.getImg().getWidth();\n int heightPlayer = (int) player.getImg().getHeight();\n Bullet dummyBuullet = new Bullet();\n int widthBullet = (int) dummyBuullet.getImg().getWidth();\n int heightBullet = (int) dummyBuullet.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n // the bullet must be an enemy bullet\n if (bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the bullet location is inside the rectangle of player\n if ( Math.abs( bullet.getX() - player.getX() ) < widthPlayer / 2\n && Math.abs( bullet.getY() - player.getY() ) < heightPlayer / 2 ) {\n // 1) destroy the bullet\n // 2) decrease the life of a player\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n bullet.setActive(false);\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n break;\n }\n }\n }\n // 2'nd case\n // the enemy is hit with player bullet\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n if (!bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the player bullet location is inside the rectangle of enemy\n if (Math.abs(enemy.getX() - bullet.getX()) < (widthBullet / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - bullet.getY()) < (heightBullet / 2 + heightEnemy / 2)) {\n // 1) destroy the player bullet\n // 2) destroy the enemy\n if (destroyedEnemy % 3 == 0 && destroyedEnemy != 0) onlyOnce = 0;\n destroyedEnemy++;\n gm.increaseScore();\n enemy.setActive(false);\n\n\n if(enemy.hTitanium()) {\n gm.getTitaniumList()[gm.getTitaniumIndex()].setX(enemy.getX());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setY(enemy.getY());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setActive(true);\n gm.increaseTitaniumIndex();\n }\n\n if(enemy.hBonus()) {\n \tgm.getBonusList()[gm.getBonusIndex()].setX(enemy.getX());\n \tgm.getBonusList()[gm.getBonusIndex()].setY(enemy.getY());\n \tgm.getBonusList()[gm.getBonusIndex()].setActive(true);\n \tgm.increaseBonusIndex();\n }\n bullet.setActive(false);\n break;\n }\n }\n }\n }\n }\n\n // 3'rd case\n // the player collided with enemy ship\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n // the condition when the enemy rectangle is inside the rectangle of player\n if (Math.abs(enemy.getX() - player.getX()) < (widthPlayer / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - player.getY()) < (heightPlayer / 2 + heightEnemy / 2)) {\n // 1) destroy the enemy\n // 2) decrease the player's life\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n enemy.setActive(false);\n\n break;\n }\n }\n }\n\n for (Bonus bonus : gm.getBonusList()) {\n if (bonus.isActive()) {\n int widthBonus = (int) bonus.getImg().getWidth();\n int heightBonus = (int) bonus.getImg().getHeight();\n if (Math.abs(bonus.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(bonus.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n bonus.setActive(false);\n if (bonus.getType() == 1) {\n if (player.getLives() < player.getMaxLives()) {\n player.setLives(player.getLives() + 1);\n }\n }\n else{\n superAttack = 1;\n }\n }\n }\n }\n\n for (Titanium titanium : gm.getTitaniumList()) {\n if (titanium.isActive()) {\n int widthBonus = (int) titanium.getImg().getWidth();\n int heightBonus = (int) titanium.getImg().getHeight();\n if (Math.abs(titanium.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(titanium.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n titanium.setActive(false);\n gm.getP().increaseTitanium();\n }\n }\n }\n\n }",
"boolean testBulletExplode(Tester t) {\n return t.checkExpect(\n new Bullet(2, Color.PINK, new MyPosn(50, 50), new MyPosn(0, -8), 1).explode(),\n new ConsLoGamePiece(new Bullet(4, Color.PINK, new MyPosn(50, 50), new MyPosn(8, 0), 2),\n new ConsLoGamePiece(new Bullet(4, Color.PINK, new MyPosn(50, 50), new MyPosn(-8, 0), 2),\n this.mt)))\n && t.checkExpect(\n new Bullet(4, Color.PINK, new MyPosn(100, 100), new MyPosn(0, 4), 2).explode(),\n new ConsLoGamePiece(\n new Bullet(6, Color.PINK, new MyPosn(100, 100), new MyPosn(4, 0), 3),\n new ConsLoGamePiece(\n new Bullet(6, Color.PINK, new MyPosn(100, 100), new MyPosn(-2, 3), 3),\n new ConsLoGamePiece(\n new Bullet(6, Color.PINK, new MyPosn(100, 100), new MyPosn(-2, -3), 3),\n this.mt))))\n && t.checkExpect(\n new Bullet(2, Color.PINK, new MyPosn(50, 50), new MyPosn(0, -8), -1).explode(),\n new MtLoGamePiece());\n }",
"public void checkCollision(){\n\r\n for(int i = 0; i < enemies.size(); i++){\r\n \r\n // Player and Enemy collision\r\n \r\n if(collide(this.player, enemies.get(i)) && this.player.isVisible() && enemies.get(i).isVisible()){\r\n System.out.println(\"Collide\");\r\n this.player.setHealth(this.player.getHealth() - 100);\r\n }\r\n\r\n // Player and Enemy bullet collision\r\n \r\n for(int j =0; j < enemies.get(i).getBullets().size(); j++){\r\n\r\n if(collide(this.player, enemies.get(i).getBullets().get(j)) && this.player.isVisible() && enemies.get(i).getBullets().get(j).isVisible()){\r\n\r\n enemies.get(i).getBullets().get(j).setVisible(false);\r\n this.player.setHealth(this.player.getHealth() - enemies.get(i).getBullets().get(j).getDamage());\r\n\r\n }\r\n }\r\n\r\n }\r\n //time = DEFAULT_TIME_DELAY;\r\n// }\r\n\r\n\r\n\r\n for(int i = 0; i < player.getBullets().size(); i++){\r\n\r\n\r\n // Player bullet and enemy collision\r\n\r\n for(int j = 0; j < enemies.size(); j++) {\r\n if (collide(enemies.get(j), player.getBullets().get(i)) && enemies.get(j).isVisible() && player.getBullets().get(i).isVisible()) {\r\n\r\n if (enemies.get(j).getHealth() < 0) {\r\n enemies.get(j).setVisible(false);\r\n score.addScore(100);\r\n }\r\n\r\n enemies.get(j).setHealth(enemies.get(j).getHealth() - player.getBullets().get(i).getDamage());\r\n // enemies.get(j).setColor(Color.RED);\r\n player.getBullets().get(i).setVisible(false);\r\n\r\n\r\n }\r\n }\r\n\r\n\r\n // Boss collision & player bullet collision\r\n\r\n if(collide(player.getBullets().get(i), this.boss1) && player.getBullets().get(i).isVisible() && boss1.isVisible()){\r\n\r\n if(boss1.getHealth() < 0){\r\n boss1.setVisible(false);\r\n score.addScore(1000);\r\n state = STATE.WIN;\r\n }\r\n this.boss1.setHealth(this.boss1.getHealth() - player.getBullets().get(i).getDamage());\r\n // this.boss1.setHealth(0);\r\n player.getBullets().get(i).setVisible(false);\r\n\r\n }\r\n\r\n }\r\n\r\n // Bullet vs Bullet Collision\r\n\r\n for(int k = 0 ; k < player.getBullets().size(); k++){\r\n\r\n if(player.getBullets().get(k).isVisible()) {\r\n for (int i = 0; i < enemies.size(); i++) {\r\n\r\n if(enemies.get(i).isVisible()) {\r\n for (int j = 0; j < enemies.get(i).getBullets().size(); j++) {\r\n\r\n if (collide(player.getBullets().get(k), enemies.get(i).getBullets().get(j)) && enemies.get(i).getBullets().get(j ).isVisible()) {\r\n\r\n\r\n System.out.println(\"bullets colliding\");\r\n\r\n player.getBullets().get(k).setVisible(false);\r\n enemies.get(i).getBullets().get(j).setColor(Color.yellow);\r\n enemies.get(i).getBullets().get(j).deflect(this.player.getX() + this.player.getW()/2, this.player.getY() + this.player.getH()/2);\r\n\r\n player.getBullets().add(enemies.get(i).getBullets().get(j));\r\n\r\n enemies.get(i).getBullets().remove(enemies.get(i).getBullets().get(j)); //removes bullet\r\n\r\n\r\n k++;\r\n j--;\r\n //enemies.get(i).getBullets().get(j).setVisible(false);\r\n }\r\n }\r\n }\r\n }\r\n\r\n\r\n for(int i = 0; i < boss1.getBullets().size(); i++) {\r\n\r\n\r\n if (collide(player.getBullets().get(k), boss1.getBullets().get(i)) && boss1.getBullets().get(i).isVisible()) {\r\n\r\n System.out.println(\"boss bullets colliding\");\r\n player.getBullets().get(k).setVisible(false);\r\n boss1.getBullets().get(i).setColor(Color.yellow);\r\n boss1.getBullets().get(i).deflect(this.player.getX() + this.player.getW()/2, this.player.getY() + this.player.getH()/2);\r\n player.getBullets().add(boss1.getBullets().get(i));\r\n boss1.getBullets().remove(boss1.getBullets().get(i));\r\n k++;\r\n i--;\r\n\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Boss bullet and player collision\r\n\r\n for(Bullet b : boss1.getBullets() ){\r\n\r\n\r\n if(collide(player, b) && player.isVisible() && b.isVisible()){\r\n b.setVisible(false);\r\n player.setHealth(player.getHealth() - b.getDamage());\r\n }\r\n }\r\n\r\n\r\n // Power up collision\r\n\r\n for(PowerUp p : powerUps){\r\n\r\n if(collide(player, p) && p.isVisible()){\r\n\r\n p.executeEffect(this.player);\r\n p.setVisible(false);\r\n }\r\n }\r\n\r\n\r\n\r\n // Deleting out of bound bullets\r\n for(int i = 0; i < player.getBullets().size(); i++){\r\n if(player.getBullets().get(i).getY() < 0 || player.getBullets().get(i).getY() > GameWorld.SCREEN_H ||\r\n player.getBullets().get(i).getX()< 0 || player.getBullets().get(i).getX() > GameWorld.SCREEN_W) {\r\n\r\n player.getBullets().remove(player.getBullets().get(i));\r\n }\r\n }\r\n\r\n }",
"public void detectCollisionPerBullet() {\n//\t\tfor (Bullet bullet : bulletList) {\n\t\tfor (int i=0; i<bulletList.size(); i++) {\n\t\t\tBullet bullet = bulletList.get(i);\n\t\t\tif (bullet != null && !bullet.isDead()) {\n\t\t\t\tdetectCollision(bullet);\n\t\t\t}\n\t\t}\n\t}",
"boolean testDrawBullet(Tester t) {\n return t.checkExpect(bullet1.draw(), new CircleImage(2, OutlineMode.SOLID, Color.pink))\n && t.checkExpect(bullet2.draw(), new CircleImage(2, OutlineMode.SOLID, Color.pink));\n }",
"boolean testIsTouchingBulletBullet(Tester t) {\n return t.checkExpect(bullet3.isTouchingBullet(bullet6), false)\n && t.checkExpect(bullet6.isTouchingBullet(bullet6), false);\n }",
"public void trackBullets(){\n // bossbullet control, if it hit the bound, remove the bullet\n for(int i = 0; i < bossBullets.size(); i++){\n Bullet tempBullet = bossBullets.get(i);\n tempBullet.update();\n tempBullet.drawBullet();\n // print (tempBullet.posX, tempBullet.posY,'\\n');\n if(tempBullet.detectBound()){\n bossBullets.remove(i);\n continue;\n }\n\n if(tempBullet.hitObject(Main.player) && !Main.player.invincible){\n Main.player.decreaseHealth(1);\n Main.player.posX = width / 2;\n Main.player.posY = height * 9 / 10;\n Main.player.invincible = true;\n Main.player.invincibleTime = millis();\n }\n\n }\n }",
"public void checkCollision()\r\n\t{\r\n\t\t//for Bullets against Avatar and Enemy\r\n\t\tfor(int bulletIndex = 0; bulletIndex < bullets.size(); bulletIndex++)\r\n\t\t{\r\n\t\t\tBullet b = bullets.get(bulletIndex);\r\n\t\t\tif (b instanceof AvatarBullet)\r\n\t\t\t{\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tboolean collided = false;\r\n\t\t\t\tfor (int enemyIndex = 0; enemyIndex < enemy.size(); enemyIndex++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy e = enemy.get(enemyIndex);\r\n\t\t\t\t\tif(((AvatarBullet) b).collidedWith(e))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\t\tenemy.remove(enemyIndex);\r\n\t\t\t\t\t\tenemyIndex --;\r\n\t\t\t\t\t\tcollided = true;\r\n\t\t\t\t\t\tint score = getScore()+1;\r\n\t\t\t\t\t\tsetScore(score);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (b instanceof EnemyBullet)\r\n\t\t\t{\r\n\t\t\t\tif (((EnemyBullet) b).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\tint health = Avatar.getLives()-1;\r\n\t\t\t\t\tavatar.setLives(health);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int platformIndex = 0; platformIndex < platforms.size(); platformIndex++)\r\n\t\t{\r\n\t\t\tPlatforms p = platforms.get(platformIndex);\r\n\t\t\tif (p instanceof Platforms)\r\n\t\t\t{\r\n\t\t\t\t//boolean collided = false;\r\n\t\t\t\t//Avatar a = avatar.get(enemyIndex);\r\n\t\t\t\tif(((Platforms) p).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(false);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void checkForBulletCollisions() {\r\n\t\tbulletMoveOffScreen();\r\n\t\tbulletCollisionWithObject();\r\n\t}",
"private void checkBulletWallCollision() {\n\t\tArrayList<Missile> heroMissiles = hero.getMissiles();\n\t\tArrayList<Missile> hero2Missile = computer.getMissiles();\n\n\t\tdouble x1Wall, y1Wall, x2Wall, y2Wall, x1Bullet, y1Bullet, x2Bullet, y2Bullet;\n\t\tboolean left, right, top, bottom;\n\n\t\t// tank 1 bullets and wall collision\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m1 = heroMissiles.get(i);\n\t\t\tif (m1 == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tRectangle r2b = m1.getBounds();\n\t\t\tfor (int j = 0; j < wallArray.size(); j++) {\n\t\t\t\tWall w1 = wallArray.get(j);\n\t\t\t\tRectangle r2w = w1.getBounds();\n\n\t\t\t\tx1Wall = r2w.getMinX();\n\t\t\t\ty1Wall = r2w.getMinY();\n\t\t\t\tx2Wall = r2w.getMaxX();\n\t\t\t\ty2Wall = r2w.getMaxY();\n\n\t\t\t\tx1Bullet = r2b.getMinX();\n\t\t\t\ty1Bullet = r2b.getMinY();\n\t\t\t\tx2Bullet = r2b.getMaxX();\n\t\t\t\ty2Bullet = r2b.getMaxY();\n\n\t\t\t\tleft = (x2Bullet < x1Wall);\n\t\t\t\tright = (x2Wall < x1Bullet);\n\t\t\t\ttop = (y2Bullet < y1Wall);\n\t\t\t\tbottom = (y2Wall < y1Bullet);\n\n\t\t\t\tif ((left && !right && top && !bottom) || (!left && right && top && !bottom)\n\t\t\t\t\t\t|| (left && !right && !top && bottom) || (!left && right && !top && bottom)) {\n\t\t\t\t} else if (left && !right && !top && !bottom) {\n\t\t\t\t\tdouble leftDist = x1Wall - x2Bullet;\n\t\t\t\t\tif (leftDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && right && !top && !bottom) {\n\t\t\t\t\tdouble rightDist = x1Bullet - x2Wall;\n\t\t\t\t\tif (rightDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && top && !bottom) {\n\t\t\t\t\tdouble topDist = y1Wall - y2Bullet;\n\t\t\t\t\tif (topDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && !top && bottom) {\n\t\t\t\t\tdouble bottomDist = y1Bullet - y2Wall;\n\t\t\t\t\tif (bottomDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// tank 2 bullets and wall collision\n\t\tfor (int i = 0; i < hero2Missile.size(); i++) {\n\t\t\tMissile m1 = hero2Missile.get(i);\n\t\t\tif (m1 == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tRectangle r2b = m1.getBounds();\n\t\t\tfor (int j = 0; j < wallArray.size(); j++) {\n\t\t\t\tWall w1 = wallArray.get(j);\n\t\t\t\tRectangle r2w = w1.getBounds();\n\n\t\t\t\tx1Wall = r2w.getMinX();\n\t\t\t\ty1Wall = r2w.getMinY();\n\t\t\t\tx2Wall = r2w.getMaxX();\n\t\t\t\ty2Wall = r2w.getMaxY();\n\n\t\t\t\tx1Bullet = r2b.getMinX();\n\t\t\t\ty1Bullet = r2b.getMinY();\n\t\t\t\tx2Bullet = r2b.getMaxX();\n\t\t\t\ty2Bullet = r2b.getMaxY();\n\n\t\t\t\tleft = (x2Bullet < x1Wall);\n\t\t\t\tright = (x2Wall < x1Bullet);\n\t\t\t\ttop = (y2Bullet < y1Wall);\n\t\t\t\tbottom = (y2Wall < y1Bullet);\n\n\t\t\t\tif ((left && !right && top && !bottom) || (!left && right && top && !bottom)\n\t\t\t\t\t\t|| (left && !right && !top && bottom) || (!left && right && !top && bottom)) {\n\t\t\t\t} else if (left && !right && !top && !bottom) {\n\t\t\t\t\tdouble leftDist = x1Wall - x2Bullet;\n\t\t\t\t\tif (leftDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && right && !top && !bottom) {\n\t\t\t\t\tdouble rightDist = x1Bullet - x2Wall;\n\t\t\t\t\tif (rightDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && top && !bottom) {\n\t\t\t\t\tdouble topDist = y1Wall - y2Bullet;\n\t\t\t\t\tif (topDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && !top && bottom) {\n\t\t\t\t\tdouble bottomDist = y1Bullet - y2Wall;\n\t\t\t\t\tif (bottomDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"boolean testIsTouchingILoGamePieceBullet(Tester t) {\n return t.checkExpect(bullet9.isTouching(los3), true)\n && t.checkExpect(bullet1.isTouching(los3), false)\n && t.checkExpect(bullet9.isTouching(lob3), false);\n }",
"public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }",
"public void drawBullets(){\n if(!world.getPlayer().getWeapon().getBullets().isEmpty()) {\n for (Bullet b : world.getPlayer().getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y * ppuY,\n b.SIZE * ppuX, b.SIZE * ppuY);\n }\n }\n if(!world.getEnemies().isEmpty()) {\n for(Enemy e: world.getEnemies()){\n if(!e.getWeapon().getBullets().isEmpty()){\n for (Bullet b : e.getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }\n }\n if(!world.getBullets().isEmpty()) {\n for(Bullet b : world.getBullets()){\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }",
"HitEnemy checkHits(@NotNull List<Bullet> bullets, Bitmap hitEnemyImage) {\n for (Bullet b : bullets) {\n int enemyXCoordinate = x();\n int enemyYCoordinate = y();\n int enemyWidth = this.getBitmap().getWidth();\n int enemyHeight = this.getBitmap().getHeight();\n\n int bulletXCoordinate = b.x();\n int bulletYCoordinate = b.y();\n int bulletWidth = b.getBitmap().getWidth();\n int bulletHeight = b.getBitmap().getHeight();\n\n // Standard rectangular bitmap intersection formula\n // (Good enough up to +/- the corner pixels, which are not\n // noticeable in the game)\n if (enemyXCoordinate + enemyWidth >= bulletXCoordinate\n && bulletXCoordinate + bulletWidth >= enemyXCoordinate\n && enemyYCoordinate + enemyHeight >= bulletYCoordinate\n && bulletYCoordinate + bulletHeight >= enemyYCoordinate) {\n b.markForRemoval();\n this.markForRemoval();\n\n return new HitEnemy(this.x(), this.y() - 34, hitEnemyImage);\n }\n }\n\n return null;\n }",
"boolean testMoveBullet(Tester t) {\n return t.checkExpect(bullet1.move(),\n new Bullet(2, Color.PINK, new MyPosn(250, 292), new MyPosn(0, -8), 1))\n && t.checkExpect(bullet2.move(),\n new Bullet(2, Color.PINK, new MyPosn(650, 650), new MyPosn(50, 50), 1));\n }",
"boolean testIsTouchingBullet(Tester t) {\n return t.checkExpect(\n this.bullet9.isTouching(new Bullet(7, Color.PINK, new MyPosn(1, 150), this.p7, 2)), false)\n && t.checkExpect(bullet3.isTouching(ship4), true)\n && t.checkExpect(bullet3.isTouching(ship5), true)\n && t.checkExpect(bullet3.isTouching(ship6), true)\n && t.checkExpect(bullet3.isTouching(ship7), true)\n && t.checkExpect(bullet1.isTouching(ship7), false)\n && t.checkExpect(bullet1.isTouching(ship8), false)\n && t.checkExpect(bullet4.isTouching(ship9), true)\n && t.checkExpect(bullet5.isTouching(ship9), false);\n }",
"@Override\r\n\tpublic void onCollisionWithBullet() {\n\t\t\r\n\t}",
"public void update(){\n\n // advance player and entity loader\n player.advance();\n entityloader.advance();\n\n // if the player is shooting\n if (player.isShooting){\n player.nextBullet--;\n if (player.nextBullet < 0){\n audioloader.play(\"plshoot\"); // play audio\n for (int i = -1; i <= 1; ++i){\n playerBullets.add(new Projectile<RectangleHitbox>(player.getCenterX(), player.getCenterY(), 500, 0, 270 + 2.5 * i, 0, 0, false, 1.5, true, 0,\n player.bulletSprite.getRectangleHitbox(player.bulletSize), player.bulletSprite.img.getScaledInstance(player.bulletSize, player.bulletSize, 1), 0, 0, this));\n } \n player.nextBullet = (int)(FPS / player.bulletsPerSecond);\n }\n }\n\n // Player bullets\n for (Projectile<RectangleHitbox> bullet : playerBullets){\n if (bullet.advance()){\n nextPlayerBullets.add(bullet);\n }\n }\n playerBullets.clear();\n for (Projectile<RectangleHitbox> bullet : nextPlayerBullets){\n playerBullets.add(bullet);\n }\n nextPlayerBullets.clear();\n\n // Circle Enemies\n for (Projectile<CircleHitbox> enemy : circleEnemies){\n if (player.invulnerableTime <= 0 && enemy.getHitbox().intersects(player.getHitbox())){\n loseLife();\n }\n if (!enemy.isBullet){ // if enemy is not a bullet, check if it is being hit by player bullets\n boolean hit = false; // each enemy can only be hit once each frame\n for (Projectile<RectangleHitbox> bullet : playerBullets){\n hit |= bullet.getHitbox().intersects(enemy.getHitbox());\n if (hit)\n break;\n }\n if (hit){\n enemy.damageTaken += enemy.originalLifetime * enemy.percentDamage;\n }\n }\n if (enemy.advance()){ // if enemy lifetime is not up\n nextCircleEnemies.add(enemy); // add to next frame\n } else if (enemy.id != 0) { // if lifetime is up\n // tell entity loader enemy with that id is removed\n entityloader.setUnactive(enemy.id);\n }\n }\n circleEnemies.clear();\n for (Projectile<CircleHitbox> enemy : nextCircleEnemies){ // swap nextCircleEnemies with circleEnemies\n circleEnemies.add(enemy);\n }\n nextCircleEnemies.clear();\n\n // Rectangle Enemies\n for (Projectile<RectangleHitbox> enemy : rectangleEnemies){\n if (player.invulnerableTime <= 0 && enemy.getHitbox().intersects(player.getHitbox())){\n loseLife();\n }\n if (enemy.advance()){ // if enemy lifetime is not up\n nextRectangleEnemies.add(enemy); // add to next frame\n } else if (enemy.id != 0) { // if lifetime is up\n // tell entity loader enemy with that id is removed\n entityloader.setUnactive(enemy.id);\n }\n }\n rectangleEnemies.clear();\n for (Projectile<RectangleHitbox> enemy : nextRectangleEnemies){ // swap nextRectangleEnemies with rectangleEnemies\n rectangleEnemies.add(enemy);\n }\n nextRectangleEnemies.clear();\n\n }",
"public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }",
"private void enemiesWillShoot(Graphics2D g2d, GameState state) {\n if (numOfRenderShoot == 75) {\n numOfRenderShoot = 0;\n for (int i = 0; i < state.getEnemyTanks().size(); i++) {\n if (state.getEnemyTanks().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyTanks().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyTanks().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyTanks().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyMissiles().add(new EnemyMissile(this, state, 10\n , state.getEnemyTanks().get(i)));\n state.getEnemyMissiles().get(state.getEnemyMissiles().size() - 1).missileDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n for (int i = 0; i < state.getEnemyCars().size(); i++) {\n if (state.getEnemyCars().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyCars().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyCars().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyCars().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyBullets().add(new EnemyBullet(this, state, 20\n , state.getEnemyCars().get(i)));\n state.getEnemyBullets().get(state.getEnemyBullets().size() - 1).bulletDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n for (int i = 0; i < state.getEnemyWallTurrets().size(); i++) {\n if (state.getEnemyWallTurrets().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyWallTurrets().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyWallTurrets().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyWallTurrets().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyWallTurretMissiles().add(new EnemyWallTurretMissile(this, state, 15\n , state.getEnemyWallTurrets().get(i)));\n state.getEnemyWallTurretMissiles().get(state.getEnemyWallTurretMissiles().size() - 1).missileDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n\n for (int i = 0; i < state.getEnemyTurrets().size(); i++) {\n if (state.getEnemyTurrets().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyTurrets().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyTurrets().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyTurrets().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyHomingMissiles().add(new EnemyHomingMissile(this, state, 15\n , state.getEnemyTurrets().get(i)));\n state.getEnemyHomingMissiles().get(state.getEnemyHomingMissiles().size() - 1).missileDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n }\n for (EnemyMissile enemyMissile : state.getEnemyMissiles()) {\n enemyMissile.paint(g2d, state);\n }\n for (EnemyBullet enemyBullet : state.getEnemyBullets()) {\n enemyBullet.paint(g2d, state);\n }\n for (EnemyWallTurretMissile enemyWallTurretMissile : state.getEnemyWallTurretMissiles()) {\n enemyWallTurretMissile.paint(g2d, state);\n }\n for (EnemyHomingMissile enemyHomingMissile : state.getEnemyHomingMissiles()) {\n enemyHomingMissile.paint(g2d, state);\n }\n }",
"private void intersectBulletWithEnemy(Entity bullet, Entity enemy){\n\n //TODO implement health/damage system for enemies\n room.removeEntity(enemy);\n room.getEntityManager().removeEntity(enemy);\n\n //delete the bullet\n room.getEntityManager().removeEntity(bullet);\n ((WeaponComponent) player.getComponent(ComponentType.WEAPON)).getBullets().removeEntity(bullet);\n\n }",
"public static void checkAvatarBulletCollision(List<Node> aB, Node fE, Node sE, Node tE, Node foE, Node fiE, Node siE, Node seE, Node eiE, Node niE, Node tenE, Node eleE, Node tweE, Node thE, Node fouE, Node fifE, Pane p)\r\n\t{\r\n\t\tfor(Node avatarBullet : aB)\r\n\t\t{\r\n\t\t\tif(fE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\t//remove enemy\r\n\t\t\t\tfE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(fE);\r\n\t\t\t\tsetEnemyOne(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(sE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\tsE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(sE);\r\n\t\t\t\tsetEnemyTwo(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(tE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\ttE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(tE);\r\n\t\t\t\tsetEnemyThree(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(foE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\tfoE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(foE);\r\n\t\t\t\tsetEnemyFour(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(fiE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\tfiE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(fiE);\r\n\t\t\t\tsetEnemyFive(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(siE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\tsiE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(siE);\r\n\t\t\t\tsetEnemyFive(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(seE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\tseE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(seE);\r\n\t\t\t\tsetEnemyFive(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(eiE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\teiE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(eiE);\r\n\t\t\t\tsetEnemyFive(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(niE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\tniE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(niE);\r\n\t\t\t\tsetEnemyFive(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(tenE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\ttenE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(tenE);\r\n\t\t\t\tsetEnemyFive(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(eleE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\teleE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(eleE);\r\n\t\t\t\tsetEnemyFive(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(tweE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\ttweE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(tweE);\r\n\t\t\t\tsetEnemyFive(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(thE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\tthE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(thE);\r\n\t\t\t\tsetEnemyFive(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(fouE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\tfouE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(fouE);\r\n\t\t\t\tsetEnemyFive(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t\tif(fifE.getBoundsInParent().intersects(avatarBullet.getBoundsInParent()))\r\n\t\t\t{\r\n\t\t\t\tfifE.setTranslateX(-200);\r\n\t\t\t\tp.getChildren().remove(fifE);\r\n\t\t\t\tsetEnemyFive(true);\r\n\t\t\t\tplayerScore++;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void shoot(ArrayList<Bullet> alienBullets)\r\n\t{\r\n\t\t//do nothing usually\r\n\t}",
"boolean testPlaceBullet(Tester t) {\n return t.checkExpect(bullet1.place(this.em),\n em.placeImageXY(new CircleImage(2, OutlineMode.SOLID, Color.PINK), 250, 300))\n && t.checkExpect(bullet2.place(this.em),\n em.placeImageXY(new CircleImage(2, OutlineMode.SOLID, Color.PINK), 600, 600));\n }",
"boolean testBulletExplodeAcc(Tester t) {\n return t.checkExpect(\n new Bullet(2, Color.PINK, new MyPosn(50, 50), new MyPosn(0, -8), 1).explodeAcc(1, 0),\n new ConsLoGamePiece(new Bullet(4, Color.PINK, new MyPosn(50, 50), new MyPosn(8, 0), 2),\n new ConsLoGamePiece(new Bullet(4, Color.PINK, new MyPosn(50, 50), new MyPosn(-8, 0), 2),\n this.mt)))\n && t.checkExpect(\n new Bullet(2, Color.PINK, new MyPosn(50, 50), new MyPosn(0, -8), 1).explodeAcc(1, 1),\n new ConsLoGamePiece(new Bullet(4, Color.PINK, new MyPosn(50, 50), new MyPosn(-8, 0), 2),\n this.mt))\n && t.checkExpect(new Bullet().explodeAcc(3, 8), new MtLoGamePiece());\n }",
"private void multiBulletFire() {\n\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 50, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t}",
"private static void checkForEnemies() throws GameActionException {\n //No need to hijack code for structure\n if (rc.isWeaponReady()) {\n // basicAttack(enemies);\n HQPriorityAttack(enemies, attackPriorities);\n }\n \n //Old splash damage code\n //Preserve because can use to improve current splash damage code\n //But not so simple like just checking directions, since there are many more \n //locations to consider hitting.\n /*if (numberOfTowers > 4) {\n //can do splash damage\n RobotInfo[] enemiesInSplashRange = rc.senseNearbyRobots(37, enemyTeam);\n if (enemiesInSplashRange.length > 0) {\n int[] enemiesInDir = new int[8];\n for (RobotInfo info: enemiesInSplashRange) {\n enemiesInDir[myLocation.directionTo(info.location).ordinal()]++;\n }\n int maxDirScore = 0;\n int maxIndex = 0;\n for (int i = 0; i < 8; i++) {\n if (enemiesInDir[i] >= maxDirScore) {\n maxDirScore = enemiesInDir[i];\n maxIndex = i;\n }\n }\n MapLocation attackLoc = myLocation.add(directions[maxIndex],5);\n if (rc.isWeaponReady() && rc.canAttackLocation(attackLoc)) {\n rc.attackLocation(attackLoc);\n }\n }\n }//*/\n \n }",
"private void bulletCollisionWithObject() {\r\n\t\tif(bullet != null) {\r\n\t\t\tGObject collider = getElementAt(bullet.getX() -1 , bullet.getY() + 1);\r\n\t\t\tif (dragon1 != null && collider == dragon1) {\r\n\t\t\t\thit(dragon1);\r\n\t\t\t}\r\n\t\t\tif(dragon2 != null && collider == dragon2) {\r\n\t\t\t\thit(dragon2);\r\n\t\t\t}\r\n\t\t\tif(mehran != null && collider == mehran && bullet.getY() > mehran.getY() + mehran.getHeight() / 2.0) {\r\n\t\t\t\thit(mehran);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }",
"public boolean hit(Bullet bullet) {\n //System.out.println(\"A golyo nem csapodott meg be semmibe.\");\n return false;\n }",
"private void checkExplosionKill() {\n\t\t\n\t\texplosion.expand();\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tif (explosion.detectDownwardCollision(a.getX(), a.getY())) {\n\t\t\t\t\ta.setVisibility(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"boolean testIsTouchingBulletShip(Tester t) {\n return t.checkExpect(ship4.isTouchingBullet(bullet6), true)\n && t.checkExpect(ship5.isTouchingBullet(bullet6), true)\n && t.checkExpect(ship6.isTouchingBullet(bullet6), true)\n && t.checkExpect(ship7.isTouchingBullet(bullet6), true)\n && t.checkExpect(ship7.isTouchingBullet(bullet7), false)\n && t.checkExpect(ship8.isTouchingBullet(bullet7), false);\n }",
"public void tick()\n{\n y+=speed;\n\n for(int i=0; i<game.ea.size(); i++)\n {\n EntityA tempEnt= game.ea.get(i);\n if(Physics.Coliision(this,tempEnt))\n {\n c.removeEntity(tempEnt); //zeby po trafieniu znikal pocisk\n c.removeEntity(this);\n game.setEnemy_killed(game.getEnemy_killed()+1);\n\n }\n }\n\n/*\n* If Enemy is out of bounds player get - points\n* and loses some stamina.\n*\n* Enemies are removed from list after disapears\n */\n\n if(y>(App.getHEIGHT()-20)*2)\n {\n App.addHealth(-10);\n App.addPOINTS(-3);\n c.removeEntity(this);\n }\n\n anim.runAnimation();\n\n /*\n * If App is not in game state it doesn't\n * need to have any enemies\n */\n\n if(App.State != App.STATE.GAME)\n {\n delEnemies();\n\n }\n}",
"boolean testIsTouchingShipBullet(Tester t) {\n return t.checkExpect(bullet3.isTouchingShip(ship12), true)\n && t.checkExpect(bullet3.isTouchingShip(ship13), true)\n && t.checkExpect(bullet3.isTouchingShip(ship14), true)\n && t.checkExpect(bullet3.isTouchingShip(ship15), true)\n && t.checkExpect(bullet1.isTouchingShip(ship15), false)\n && t.checkExpect(bullet1.isTouchingShip(ship16), false);\n }",
"boolean bulletGrow(Tester t) {\n return t.checkExpect(this.bullet2.grow(), 4) && t.checkExpect(this.bullet4.grow(), 8);\n }",
"public void shoot() {\n\n //DOWN\n if (moveDown && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveDown && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n } else if (moveDown && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveDown && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //UP\n else if (moveUp && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveUp && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //LEFT \n else if (moveLeft && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n }\n\n //RIGHT\n else if (moveRight && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveRight && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } //STANDING STILL\n \n \n if (shootDown && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), 5 * this.getBulletSpeedMulti());\n } else if (shootUp && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), -5 * this.getBulletSpeedMulti());\n\n } else if (shootLeft && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n } else if (shootRight && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n }\n }",
"private void killBullet() {\r\n this.dead = true;\r\n }",
"public void enemySpawner(){\n\t\tif (spawnFrame >= spawnTime){\n\t\t\tfor(int i =0;i<enemies.size();i++){\n\t\t\t\tif (!enemies.get(i).getInGame()){\n\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy);\n\t\t\t\t\tbreak;\n\t\t\t\t\t/*if (enemies.get(i).getNum()==1){\n\t\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (enemies.get(i).getNum()==2){\n\t\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy2);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (enemies.get(i).getNum()==3){\n\t\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy3);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tspawnFrame=0;\n\t\t} else{\n\t\t\tspawnFrame+=1;\n\t\t}\n\t}",
"public int fire(ArrayList<Enemy> enemies) {\n\t\tint coins = 0;\n\t\tint index = 0;\n\t\tboolean findIt = true;\n\t\t//looking for the first rat\n\t\twhile (!(enemies.get(index) instanceof Rat) || enemies.get(index).getPosition() > position) {\n\t\t\tindex++;\n\t\t\tif (index >= enemies.size()) {\n\t\t\t\tfindIt = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (findIt) {\n\t\t\tEnemy e = enemies.get(index);\n\t\t\te.hit(new Slingshot(position));\n\t\t\tSystem.out.println(type + position + \" hit \" + e.getType() + e.getPosition() + \".\\nEnemy's health is \" + e.getHealth());\n\t\t\tif (e.getHealth() <= 0) {\n\t\t\t\tenemies.remove(e);\n\t\t\t\tcoins += e.getCoins();\n\t\t\t}\n\t\t}\n\t\t//looking for the first lizard\n\t\telse {\n\t\t\tindex = 0;\n\t\t\tfindIt = true;\n\t\t\twhile (!(enemies.get(index) instanceof Lizard) || enemies.get(index).getPosition() > position) {\n\t\t\t\tindex++;\n\t\t\t\tif (index >= enemies.size()) {\n\t\t\t\t\tfindIt = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (findIt) {\n\t\t\t\tEnemy e = enemies.get(index);\n\t\t\t\te.hit(new Slingshot(position));\n\t\t\t\tSystem.out.println(type + position + \" hit \" + e.getType() + e.getPosition() + \".\\nEnemy's health is \" + e.getHealth());\n\t\t\t\tif (e.getHealth() <= 0) {\n\t\t\t\t\tenemies.remove(e);\n\t\t\t\t\tcoins += e.getCoins();\n\t\t\t\t}\n\t\t\t}\n\t\t\t//looking for the first elephant\n\t\t\telse {\n\t\t\t\tindex = 0;\n\t\t\t\tfindIt = true;\n\t\t\t\twhile (!(enemies.get(index) instanceof Elephant) || enemies.get(index).getPosition() > position) {\n\t\t\t\t\tindex++;\n\t\t\t\t\tif (index >= enemies.size()) {\n\t\t\t\t\t\tfindIt = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (findIt) {\n\t\t\t\t\tEnemy e = enemies.get(index);\n\t\t\t\t\te.hit(new Slingshot(position));\n\t\t\t\t\tSystem.out.println(type + position + \" hit \" + e.getType() + e.getPosition() + \".\\nEnemy's health is \" + e.getHealth());\n\t\t\t\t\tif (e.getHealth() <= 0) {\n\t\t\t\t\t\tenemies.remove(e);\n\t\t\t\t\t\tcoins += e.getCoins();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn coins;\n\t}",
"boolean testPlaceAllAccBullets(Tester t) {\n return t.checkExpect(this.lob3.placeAllAcc(this.em),\n em.placeImageXY(bullet1.draw(), 250, 300).placeImageXY(bullet8.draw(), 50, 50)\n .placeImageXY(bullet9.draw(), 50, 50))\n && t.checkExpect(\n this.lob1.placeAllAcc(\n this.em.placeImageXY(bullet8.draw(), 50, 50).placeImageXY(bullet9.draw(), 50, 50)),\n em.placeImageXY(bullet1.draw(), 250, 300).placeImageXY(bullet8.draw(), 50, 50)\n .placeImageXY(bullet9.draw(), 50, 50))\n && t.checkExpect(this.mt.placeAllAcc(new WorldScene(400, 800)), new WorldScene(400, 800));\n }",
"void checkPositions() {\n //check if any bullets have hit any asteroids\n for (int i = 0; i < bullets.size(); i++) {\n for (int j = 0; j < asteroids.size(); j++) {\n if (asteroids.get(j).checkIfHit(bullets.get(i).pos)) {\n shotsHit++;\n bullets.remove(i);//remove bullet\n score +=1;\n break;\n }\n }\n }\n //check if player has been hit\n if (immortalityTimer <=0) {\n for (int j = 0; j < asteroids.size(); j++) {\n if (asteroids.get(j).checkIfHitPlayer(position)) {\n playerHit();\n }\n }\n }\n }",
"void fireBullet() {\n\r\n\t\tif (count > 0)\r\n\t\t\treturn;\r\n\t\t// ...and if all the bullets aren't currently in use...\r\n\t\tint slot = getAvailableBullet();\r\n\t\tif (slot < 0)\r\n\t\t\treturn;\r\n\t\t// ...then launch a new bullet\r\n\t\tbullets[slot].setLocation(locX, locY);\r\n\t\tbullets[slot].setDirection(angle);\r\n\t\tbullets[slot].reset();\r\n\t\t// Reset the timer\r\n\t\tcount = RELOAD;\r\n\t}",
"public void collision() {\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).tick();\n\n if (friendlyBullets.get(i).getImgY() <= 40) {\n friendlyBullets.get(i).bulletImage.delete();\n friendlyBullets.remove(friendlyBullets.get(i));\n i--;\n continue;\n }\n\n for (int j = 0; j < enemies.size(); j++) {\n\n if (friendlyBullets.get(i).getHitbox().intersects(enemies.get(j).getHitbox())) {\n\n friendlyBullets.get(i).hit();\n friendlyBullets.remove(friendlyBullets.get(i));\n i--;\n\n enemies.get(j).hit();\n\n if (enemies.get(j).getHp() <= 0) {\n enemies.remove(enemies.get(j));\n score.setScore(50);\n j--;\n }\n //end this loop\n j = enemies.size();\n }\n }\n\n }\n\n ///////////////////////////////////////////////////////////////////////////////////////\n\n\n // Enemy out of bounds\n for (int i = 0; i < enemies.size(); i++) {\n\n enemies.get(i).tick();\n\n // Out of bounds\n if (enemies.get(i).getEnemyImage().getY() >= 750) {\n enemies.get(i).getEnemyImage().delete();\n enemies.remove(enemies.get(i));\n\n if (enemies.size() > 1) {\n i--;\n }\n }\n }\n\n\n //////////////////////////////////////////////////////////////////////////\n\n //powerUps out of bounds and collision with spaceships\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).tick();\n\n if (powerUps.get(i).getImgY() >= 745) {\n\n powerUps.get(i).powerUpImage.delete();\n powerUps.remove(powerUps.get(i));\n\n i--;\n continue;\n }\n\n for (int j = 0; j < spaceShips.size(); j++) {\n\n if (spaceShips.get(j).getHitbox().intersects(powerUps.get(i).getHitbox())) {\n\n\n spaceShips.get(j).powerUp(powerUps.get(i).getPowerUpType());\n powerUps.get(i).hit();\n powerUps.remove(powerUps.get(i));\n\n //if it collides with one leave the for loop\n i--;\n j = spaceShips.size();\n }\n }\n\n }\n\n }",
"public void gettingAttacked(HitByBulletEvent e) {\r\n\t\tif (gotTarget) {\r\n\t\t\tfor (int i = 0; i < enemyTracker.getEnemyList().size(); i++) {\r\n\t\t\t\tif (enemyTracker.getEnemyList().get(i).getName().equals(e.getName()) && (!e.getName().equals(radarTarget.getName()))) {\r\n\t\t\t\t\t\tmrRobot.sendMessage(5, \"2\");\r\n\t\t\t\t\t\tradarTarget = enemyTracker.getEnemyList().get(getIndexForEnemy(e.getName()));\r\n\t\t\t\t\t\ttargetTracking.get(getIndexForName(mrRobot.getName())).updateTarget(radarTarget);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\r\n public void testCheckCollisionBulletsBlocks() {\r\n\r\n ArrayList<Bullet> bullets = new ArrayList<>();\r\n bullets.add(new Bullet(10, 10, 0, true));\r\n assertEquals(bullets.get(0).vis, true);\r\n CollisionUtility.checkCollisionBulletsBlocks(bullets, inblocks);\r\n assertEquals(bullets.get(0).vis, false);\r\n assertEquals(inblocks.get(0).vis, false);\r\n inblocks.add(new Steel(20, 20));\r\n bullets.add(new Bullet(20, 20, 0, false));\r\n CollisionUtility.checkCollisionBulletsBlocks(bullets, inblocks);\r\n assertEquals(bullets.get(1).vis, false);\r\n assertEquals(inblocks.get(1).vis, true);\r\n\r\n }",
"boolean testRemoveOffscreenBullets(Tester t) {\n return t.checkExpect(lob3.removeOffscreen(100, 100),\n new ConsLoGamePiece(bullet9, new ConsLoGamePiece(bullet8, mt)))\n && t.checkExpect(lob3.removeOffscreen(300, 300), lob3)\n && t.checkExpect(lob3.removeOffscreen(500, 500), lob3)\n && t.checkExpect(mt.removeOffscreen(0, 0), mt);\n }",
"public void defensive_act()\r\n\t{\r\n\t\tBullet closestBullet = IMAGINARY_BULLET;\r\n\t//\tBullet secondClosestBullet = IMAGINARY_BULLET;\r\n\t\t\r\n\t\tActor machines;\r\n\t\tEnumeration<Actor> opponent = ((MachineInfo)data.get(TankFrame.PLAYER_1)).getHashtable().elements();\r\n\t\twhile(opponent.hasMoreElements())\r\n\t\t{\r\n\t\t\tmachines = (Actor) opponent.nextElement();\r\n\t\t\tif(machines instanceof Bullet)\r\n\t\t\t{\r\n\t\t\t\tif(machines.getPoint().distance(getPoint()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t{\r\n\t\t\t\t\tclosestBullet = (Bullet)machines;\r\n\t\t\t\t\tLine2D aim = new Line2D.Double(getCenterX(), getCenterY(), closestBullet.getPosX(), closestBullet.getPosY() );\r\n\t\t\t\t\tSystem.out.println(aim.getP1().distance(aim.getP2()));\r\n\t\t\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t\t\taimAndShoot(aim);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t/*\tif(machines.getPoint().distance(getPoint()) > secondClosestBullet.getPoint().distance(getPoint()) \r\n\t\t\t\t\t&& machines.getPoint().distance(getPoint()) < closestBullet.getPoint().distance(getPoint()))\r\n\t\t\t\t\tsecondClosestBullet = (Bullet)machines;*/\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Find the line\r\n\t\t */\r\n\t\t/*if(!closestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), closestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(getCenterX(), getCenterY(), (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\t/*bulletPath = new Line2D(getRightPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\tbulletPath = new Line2D(getPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);*/\r\n\t\t\t\r\n\t\t//}\r\n\t/*\tif(!secondClosestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), secondClosestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t}*/\r\n\r\n\t}",
"boolean testIsOffScreenBullet(Tester t) {\n return t.checkExpect(bullet1.isOffScreen(0, 0), true)\n && t.checkExpect(bullet2.isOffScreen(1000, 1000), false)\n && t.checkExpect(bullet1.isOffScreen(250, 300), false);\n }",
"public static boolean checkVictory(){\n\t\tboolean victory = true;\n\t\t\n\t\tfor (int i = 0; i < enemyList.length && victory; i++) {\n\t\t\tif (enemyList[i].isAlive()) {\n\t\t\t\tvictory = false;\n\t\t\t}\n\t\t}\n\t\treturn victory;\n\t}",
"void collisionDetection() {\n\t\tfor (int a = 0; a < botsList.size(); a++) {\r\n\t\t\tfor (int b = 0; b < botsList.size(); b++) {\r\n\r\n\t\t\t\tif (a == b) // Avoid checking if bot hits itself.\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\ttime = System.currentTimeMillis();\r\n\t\t\t\tif (time - botsList.get(a).enemy_last_detected > botsList.get(a).enemy_detect_timeout) {\r\n\t\t\t\t\tfor (int i = 0; i > botsList.get(b).bullets.size(); i++) {\r\n\t\t\t\t\t\tif (colides(botsList.get(a), botsList.get(b).bullets.get(i)))\r\n\t\t\t\t\t\t\tbotsList.get(a).loseLife();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (botsList.get(0).detect.intersects(botsList.get(1).body.getFrame())) {\r\n\t\t\tbotsList.get(0).enemyDetected(botsList.get(1).body);\r\n\t\t\tbot_1_detect = false;\r\n\t\t\tbot_1_detected = System.currentTimeMillis();\r\n\t\t}\r\n\t\tif (System.currentTimeMillis() - bot_1_detected > bot_1_detect_timeout)\r\n\t\t\tbot_1_detect = true;\r\n\t\t// and now same for bot 2\r\n\t\tif (botsList.get(1).detect.intersects(botsList.get(0).body.getFrame())) {\r\n\t\t\tbotsList.get(1).enemyDetected(botsList.get(0).body);\r\n\t\t\tbot_2_detect = false;\r\n\t\t\tbot_2_detected = System.currentTimeMillis();\r\n\t\t}\r\n\t\tif (System.currentTimeMillis() - bot_2_detected > bot_2_detect_timeout)\r\n\t\t\tbot_2_detect = true;\r\n\r\n\t\t// Bullets collision\r\n\t\t// See if bot_n hits the other bot with a bullet\r\n\t\tfor (int mainB = 0; mainB < botsList.size(); mainB++) {\r\n\t\t\tfor (int secB = 0; secB < botsList.size(); secB++) {\r\n\r\n\t\t\t\tif (secB == mainB)\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\t// if player_2 collides with player 1's bullets\r\n\t\t\t\tfor (int i = 0; i < botsList.get(mainB).bullets.size(); i++) {\r\n\t\t\t\t\tif (colides(botsList.get(secB), botsList.get(mainB).bullets.get(i))) {\r\n\t\t\t\t\t\tSystem.out.println(\"Bot \" + 2 + \" intersects bullet nš \" + i);\r\n\t\t\t\t\t\tbotsList.get(mainB).bullets.remove(i);\r\n\t\t\t\t\t\tbotsList.get(secB).loseLife();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if player_1 collides with player 2's bullets\r\n\t\tfor (int i = 0; i < botsList.get(1).bullets.size(); i++) {\r\n\t\t\tif (colides(botsList.get(0), botsList.get(1).bullets.get(i))) {\r\n\t\t\t\tSystem.out.println(\"Bot \" + 2 + \" intersects bullet nš \" + i);\r\n\t\t\t\tbotsList.get(1).bullets.remove(i);\r\n\t\t\t\tbotsList.get(0).loseLife();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public boolean check(double xDelt,double yDelt) {\r\n \tBounds pBound= player1.player.getBoundsInParent();\r\n \t\r\n \tfor( Node object: enemy1.hostileG.getChildren()) {\r\n \t\t\r\n \t\tif(object.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())){\r\n \t\t\teHealth -= inventory.getpDamage();\r\n \t\t\tpHealth -= 1;\r\n\r\n \t\t\tSystem.out.println(\"eHealth \"+ eHealth);\r\n \t\t\tSystem.out.println(\"pHealth \"+ pHealth);\r\n \t\t\t\r\n \t\t\t//\"Deaths of the sprites\"\r\n \t\t\tif(pHealth <=0) {\r\n \t\t\t\tlayout.getChildren().remove(player1.player);\r\n \t\t\t\tSystem.out.println(\"You died!\");\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(eHealth <=0) {\r\n \t\t\t\tlayout.getChildren().remove(enemy1.enemy);\r\n \t\t\t\tenemy1.enemy.setLayoutX(-10000);\r\n \t\t\t\tenemy1.enemy.setLayoutY(-10000);\r\n \t\t\t}\r\n \t\treturn false;\r\n \t\t}\r\n }\r\n \t\r\n \tfor( Node object: map1.walls.getChildren()) {\r\n \t\tif(object.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())) return false;\r\n \t}\r\n \t\r\n \tfor( Node chest: map1.chests.getChildren()) {\r\n \tif(chest.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())){\r\n \t\tmap1.chests.getChildren().remove(chest);\r\n \t chestchose=inventory.getchestchose();\r\n \t \r\n \t if(chestchose==1) {\r\n \t \tinventory.sworda.setVisible(true);\r\n \t \tinventory.setpDamage(3);\r\n \t }\r\n \t if(chestchose==2) {\r\n \t \tinventory.healthbag.setVisible(true);\r\n \t }\r\n \t \r\n \t return false;\r\n \t} \r\n }\t\r\n \t\r\n return true;\r\n }",
"boolean testOnTick(Tester t) {\n return t\n .checkExpect(new NBullets(0).onTickTester(), new NBullets(new MtLoGamePiece(),\n new MtLoGamePiece(), 0, 0, 1))\n && t.checkExpect(new NBullets(lob2, los3, 8, 12, 23, new Random(2)).onTickTester(),\n new NBullets(\n new ConsLoGamePiece(\n new Bullet(2, Color.PINK, new MyPosn(250, 292), new MyPosn(0, -8), 1),\n new ConsLoGamePiece(\n new Bullet(4, Color.PINK, new MyPosn(51, 50), new MyPosn(1, 0), 2),\n new ConsLoGamePiece(\n new Bullet(4, Color.PINK, new MyPosn(51, 50), new MyPosn(-1, 0), 2),\n new MtLoGamePiece()))),\n new ConsLoGamePiece(new Ship(10, Color.CYAN, new MyPosn(4, 239), new MyPosn(4, 0)),\n new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(496, 248), new MyPosn(-4, 0)),\n new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(50, 200), new MyPosn(50, 50)),\n new MtLoGamePiece()))),\n 8, 14, 24))\n && t.checkExpect(new NBullets(lob5, los3, 8, 12, 23, new Random(2)).onTickTester(),\n new NBullets(new MtLoGamePiece(), new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(4, 239), new MyPosn(4, 0)),\n new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(496, 248), new MyPosn(-4, 0)),\n new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(51, 50), new MyPosn(1, 0)),\n new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(51, 50), new MyPosn(1, 0)),\n new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(50, 200), new MyPosn(50, 50)),\n new MtLoGamePiece()))))),\n 8, 12, 24));\n }",
"public void shoot(){\n // boss bullete attract to player\n int bulletPosX = PApplet.parseInt(posX + (speed * cos(angle)));\n int bulletPosY = (int)(posY + hei / 2);\n float bulletAngle = atan2(Main.player.posY - bulletPosY, Main.player.posX - bulletPosX);\n int bulletVelX = (int)(8 * cos(bulletAngle));\n int bulletVelY = (int)(8 * sin(bulletAngle));\n bossBullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,1,attack));\n }",
"public void checkForDeath()\n {\n Bullet2 bullet2 = new Bullet2(getVelocity(), getRotation());\n myWorld2 world = (myWorld2)getWorld();\n Zombie2 zombie = new Zombie2();\n \n if (isTouching(Bullet2.class))\n {\n health -= bullet2.damage;\n \n if(health < 0)\n {\n world.score(2);\n world.removeObject(this);\n } \n }\n else if (getX() == 900) \n {\n world.score(-1);\n world.removeObject(this);\n } \n }",
"public boolean shoot() {\n if (!isReloading && System.currentTimeMillis() - previousShotTime > shootInterval * 1000 && ammoRemaining > 0) {\n\n previousShotTime = System.currentTimeMillis();\n\n ammoRemaining--;\n audioPlayer.setSpatial(holder);\n audioPlayer.playOnce();\n // score -= 50;\n Vec2 angle = Vec2\n .Vector2FromAngleInDegrees(transform.getGlobalRotation().getAngleInDegrees() - 90 + (Math.random() * spread * 2 - spread));\n\n Vec2 spawnPosition = transform.getWorldPosition();\n\n Projectile p = new Projectile(spawnPosition,\n Vec2\n .Vector2FromAngleInDegrees(\n transform.getGlobalRotation().getAngleInDegrees() - 90 + (Math.random() * spread * 2 - spread)),\n new Sprite(projectilePath));\n p.setSpeed(speed);\n p.setSource(holder);\n p.getCollider().addInteractionLayer(\"Block\");\n p.getCollider().addInteractionLayer(\"Hittable\");\n p.getCollider().addInteractionLayer(\"Walk\");\n p.setOnCollisionListener(other -> {\n if (other.getGameObject() instanceof Player && other.getGameObject() != holder) {\n Player player = (Player) other.getGameObject();\n player.hit(alteredDmg);\n if (GameEngine.DEBUG) {\n System.out.println(\"Bullet Hit \" + other.getName());\n }\n p.destroy();\n\n// player.destroy();\n } else if (other.getGameObject() instanceof Enemy) {\n Enemy e = ((Enemy) other.getGameObject());\n e.hit(alteredDmg);\n if (!e.isAlive()) { // CHeck if enemy survived\n ((Player) p.getSource()).killedEnemy();\n }\n p.destroy();\n } else if (other.getTag() == \"Block\") {\n p.destroy();\n }\n\n });\n return true;\n } else if(ammoRemaining <= 0){\n reloadWeapon();\n return false;\n }else\n return false;\n }",
"public void tick(){\r\n scoreKeep++;\r\n if(scoreKeep >= 500){\r\n scoreKeep = 0;\r\n hud.setLevel(hud.getLevel()+1);\r\n // continuous addition of enemies at each new level\r\n if(game.diff == 0) {\r\n \tif((hud.getLevel() >= 2 && hud.getLevel() <= 3)||(hud.getLevel() >= 7 && hud.getLevel() <= 9))\r\n \thandler.addObject(new BasicEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.BasicEnemy, handler));\r\n if(hud.getLevel() == 4 || hud.getLevel() == 6)\r\n handler.addObject(new FastEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.FastEnemy, handler));\r\n if(hud.getLevel() == 5)\r\n \thandler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n if(hud.getLevel() == 10){\r\n handler.clearEnemies();\r\n handler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n handler.addObject(new BossEnemy((Game.width/2)-48, -100, ID.BossEnemy, handler));\r\n }\r\n }else if(game.diff == 1) {\r\n \tif((hud.getLevel() >= 2 && hud.getLevel() <= 3)||(hud.getLevel() >= 7 && hud.getLevel() <= 9))\r\n \thandler.addObject(new HardEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.BasicEnemy, handler));\r\n if(hud.getLevel() == 4 || hud.getLevel() == 6)\r\n handler.addObject(new FastEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.FastEnemy, handler));\r\n if(hud.getLevel() == 5)\r\n \thandler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n if(hud.getLevel() == 10){\r\n handler.clearEnemies();\r\n handler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n handler.addObject(new BossEnemy((Game.width/2)-48, -100, ID.BossEnemy, handler));\r\n }\r\n }\r\n }\r\n }",
"void smallgunHandler() {\n for (Sprite smb: smBullets) {\n \n smb.display();\n if(usingCoil){\n smb.forward(120);\n }else{\n smb.forward(40);\n }\n\n }\n}",
"public void drawEnemies(){\n for (Object e : world.getEnemies()) {\n Enemy enemy = (Enemy) e;\n if (enemy instanceof EnemyPistol) {\n spriteBatch.draw(enemyPistolTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyAwp){\n spriteBatch.draw(enemyAWPTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyStalker){\n spriteBatch.draw(enemyStalkerTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyBoss){\n spriteBatch.draw(enemyBossTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }\n }\n }",
"public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }",
"private void updateEnemies()\n\t \n\t {\n\t for(int i = 0; i < EnemyList.size(); i++)\n\t {\n\t \t//get and update enemy for the enemy list\n\t Enemy eh = EnemyList.get(i);\n\t eh.Update();\n\t \n\t //checks for enemy and player crashes \n\t Rectangle playerRectangel = new Rectangle(pl.xCoord, pl.yCoord, pl.PlayerImage.getWidth(), pl.PlayerImage.getHeight());\n\t Rectangle enemyRectangel = new Rectangle(eh.xCoord, eh.yCoord, eh.EnemyHelicopterImage.getWidth(), eh.EnemyHelicopterImage.getHeight());\n\t if(playerRectangel.intersects(enemyRectangel)){\n\t \n\t \t//set player health to zero\n\t \tpl.Health = 0;\n\t \n\t // Remove helicopter from the list.\n\t EnemyList.remove(i);\n\t \n\t //creates new explosion coordinates \n\t enExplosionX = eh.xCoord; \n\t enExplosionY = eh.yCoord; \n\t plExplosionX = pl.xCoord+120;\n\t plExplosionY = pl.yCoord;\n\t GameOn = false;\n\t \n\t }\n\t \n\t // Check health.\n\t if(eh.Health <= 0){\n\t \n\t // Increase the number of destroyed enemies and removes a helicopter froma list.\n\t DestroyedEnemies++;\n\t \n\t \n\t if(DestroyedEnemies == 10)\n\t {\n\t \t//WinsState = true; \n\t \t\n\t }\n\t EnemyList.remove(i);\n\t \n\t }\n\t \n\t // If the current enemy has left the scree it is removed from the list and the number of runAwayEnemies is increased.\n\t if(eh.HasLeftScreen())\n\t {\n\t \tEnemyList.remove(i);\n\t RunAwayEnemies++;\n\t }\n\t \n\t if(RunAwayEnemies > 5)\n\t {\n\t \tGameOn = false; \n\t \t\n\t }\n\t }\n\t \n\t }",
"boolean testExplodeTouchers(Tester t) {\n return t.checkExpect(new MtLoGamePiece().explodeTouchers(lob3), new MtLoGamePiece())\n && t.checkExpect(lob3.explodeTouchers(lob2), new ConsLoGamePiece(\n new Bullet(2, Color.PINK, new MyPosn(50, 50), new MyPosn(1, 0), 1),\n new ConsLoGamePiece(new Bullet(2, Color.PINK, new MyPosn(50, 50), new MyPosn(1, 0), 1),\n new ConsLoGamePiece(\n new Bullet(2, Color.PINK, new MyPosn(250, 300), new MyPosn(0, -8), 1),\n new MtLoGamePiece()))))\n && t.checkExpect(los3.explodeTouchers(los2),\n new ConsLoGamePiece(new Ship(10, Color.CYAN, new MyPosn(50, 50), new MyPosn(1, 0)),\n new ConsLoGamePiece(new Ship(10, Color.CYAN, new MyPosn(50, 50), new MyPosn(1, 0)),\n new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(0, 150), new MyPosn(50, 50)),\n new MtLoGamePiece()))))\n && t.checkExpect(los3.explodeTouchers(lob3),\n new ConsLoGamePiece(new Ship(10, Color.CYAN, new MyPosn(0, 150), new MyPosn(50, 50)),\n new MtLoGamePiece()))\n && t.checkExpect(lob3.explodeTouchers(los2), new ConsLoGamePiece(\n new Bullet(2, Color.PINK, new MyPosn(250, 300), new MyPosn(0, -8), 1),\n new ConsLoGamePiece(new Bullet(4, Color.PINK, new MyPosn(50, 50), new MyPosn(1, 0), 2),\n new ConsLoGamePiece(new Bullet(4, Color.PINK, this.p1, new MyPosn(-1, 0), 2),\n new ConsLoGamePiece(\n new Bullet(4, Color.PINK, new MyPosn(50, 50), new MyPosn(1, 0), 2),\n new ConsLoGamePiece(\n new Bullet(4, Color.PINK, this.p1, new MyPosn(-1, 0), 2),\n new MtLoGamePiece()))))));\n }",
"private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}",
"void updateEnemies() {\n getEnemies().forEach(e -> {\n if (!e.isAlive()) {\n e.die();\n SoundPlayer.play(SoundPlayer.enemyDestroyed);\n }\n });\n objectsInMap.removeIf(o -> o instanceof Enemy && !(((Enemy) o).isAlive()));//Removing Dead Enemies\n getEnemies().forEach(e -> e.setTarget(objectsInMap.stream().filter(p -> p.identifier.contains(\"PlayerTank0.\") &&\n p.isBlocking && ((Tank) p).isVisible()).collect(Collectors.toList())));//Giving Possible target to enemies to decide\n }",
"public void tick() {\n\t\tif (Math.abs(disToPlayerX()) > Math.abs(disToPlayerY())) {\r\n\t\t\tif (disToPlayerX()<0) {\r\n\t\t\t\tx -= speed;\t//moves enemy to the left\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tx += speed; //moves enemy to the right\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (disToPlayerY()<0) {\r\n\t\t\t\ty-=speed; //moves enemy up\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ty+=speed; //moves enemy down\r\n\t\t\t}\r\n\t\t}\r\n\t\tenemyRectangle.setLocation((int)x,(int) y); //updates hitbox of enemy\r\n\r\n\t\t//checks all enemies and see if they run into player\r\n\t\tfor (int i=0;i<c.getEnemys().size();i++) {\r\n\t\t\tif (enemyRectangle.getBounds().intersects(player.getRectangle().getBounds())) {\r\n\t\t\t\tkillEnemy(); //removes the enemy\r\n\t\t\t\tPlayer.health -=10; //removes 10 health\r\n\t\t\t\tbreak; //doesn't work without this BREAK. DO NOT REMOVE\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//checks all bullets if they hit an enemy\r\n\t\tfor (int i = 0;i<c.getBullets().size();i++) {\r\n\t\t\tif (enemyRectangle.getBounds().intersects(c.getBullets().get(i).getRect().getBounds())) {\r\n\t\t\t\tkillEnemy(); //removes enemy\r\n\t\t\t\tc.removeBullet(c.getBullets().get(i)); //removes the bullet\r\n\t\t\t\tPlayer.score += 50; //adds 50 to the score\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void onHitByBullet() {\r\n\t\t// Move ahead 100 and in the same time turn left papendicular to the bullet\r\n\t\tturnAheadLeft(100, 90 - hitByBulletBearing);\r\n\t}",
"boolean testOnTickTester(Tester t) {\n return t\n .checkExpect(new NBullets(0).onTickTester(), new NBullets(new MtLoGamePiece(),\n new MtLoGamePiece(), 0, 0, 1, new Random()))\n && t.checkExpect(new NBullets(lob2, los3, 8, 12, 23, new Random(2)).onTickTester(),\n new NBullets(\n new ConsLoGamePiece(\n new Bullet(2, Color.PINK, new MyPosn(250, 292), new MyPosn(0, -8), 1),\n new ConsLoGamePiece(\n new Bullet(4, Color.PINK, new MyPosn(51, 50), new MyPosn(1, 0), 2),\n new ConsLoGamePiece(\n new Bullet(4, Color.PINK, new MyPosn(51, 50), new MyPosn(-1, 0), 2),\n new MtLoGamePiece()))),\n new ConsLoGamePiece(new Ship(10, Color.CYAN, new MyPosn(4, 239), new MyPosn(4, 0)),\n new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(496, 248), new MyPosn(-4, 0)),\n new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(50, 200), new MyPosn(50, 50)),\n new MtLoGamePiece()))),\n 8, 14, 24, new Random()))\n && t.checkExpect(new NBullets(lob5, los3, 8, 12, 23, new Random(2)).onTickTester(),\n new NBullets(new MtLoGamePiece(),\n new ConsLoGamePiece(new Ship(10, Color.CYAN, new MyPosn(4, 239), new MyPosn(4, 0)),\n new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(496, 248), new MyPosn(-4, 0)),\n new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(51, 50), new MyPosn(1, 0)),\n new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(51, 50), new MyPosn(1, 0)),\n new ConsLoGamePiece(new Ship(10, Color.CYAN, new MyPosn(50, 200),\n new MyPosn(50, 50)), new MtLoGamePiece()))))),\n 8, 12, 24, new Random()));\n }",
"void update() {\n for (int i = 0; i < bullets.size(); i++) {//if any bullets expires remove it\n if (bullets.get(i).off) {\n bullets.remove(i);\n i--;\n }\n }\n move();//move everything\n checkPositions();//check if anything has been shot or hit\n }",
"@Override\n public void attack(){\n int xBullet=0,yBullet=0;\n switch(direction){\n case 0:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()*3/4);\n break;\n case 1:\n xBullet=(int)(x+Sprite.python_left.getWidth()*3/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 2:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 3:\n xBullet=(int)(x+Sprite.python_left.getWidth()/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n }\n PythonBullet pythonBullet=new PythonBullet(xBullet,yBullet,board,Player.PLAYER_SPEED*1.5);\n pythonBullet.setDirection(direction);\n board.addBullets(pythonBullet);\n\n }",
"void check_missile_collisions() {\n for (int i = ship.missiles.size()-1; i >= 0; i --) {\n Missile missile = ship.missiles.get(i);\n for (int j = aliens.size()-1; j >= 0; j --) {\n Alien alien = aliens.get(j);\n boolean hit = alien.checkMissileCollisions(missile);\n if (hit) {\n alien_destroyed_audio.play();\n\n // Move the missile off-screen to be deleted by delete_missiles()\n missile.moveOffScreen();\n\n // Update the score, speed up remaining aliens, remove the alien\n update_score(alien.points);\n Alien.speed_up();\n alien_audio_intervals = (long) (500000000 - (100000000 * Alien.alien_speed));\n ImageView alien_image_view = alien_image_views.get(j);\n game_pane.getChildren().remove(alien_image_view);\n alien_image_views.remove(j);\n aliens.remove(alien);\n break;\n }\n }\n }\n\n // Check if any alien missiles hit the ship\n for (int i = Alien.missiles.size()-1; i >= 0; i --) {\n Missile missile = Alien.missiles.get(i);\n // Only check missiles that have reached the y-coordinate of the player\n if (missile.y_position+missile.missile_height >= ship.y_position) {\n boolean hit = ship.checkMissileCollisions(missile);\n if (hit) {\n ship_destroyed_clip.play();\n\n // Player loses a life\n lives -= 1;\n lives_text.setText(\"Lives: \" + lives);\n\n // Ship and missiles not respawn/removed for last life so that player can see how they died\n if (lives > 0){\n // Move the missile off-screen, deleted by delete_missiles()\n missile.moveOffScreen();\n ship_respawn();\n }\n break;\n }\n }\n }\n }",
"@Override\n\tpublic void loadEnemies() {\n\t\t\n\t}",
"public static boolean checkEnemyBulletCollision(List<Node> eB, Node a, List<Node> sP, List<Node> mP)\r\n\t{\r\n\t\tfor(Node enemyBullet : eB)\r\n\t\t{\r\n\t\t\tfor (Node staticPlat : sP)\r\n\t\t\t{\r\n\t\t\t\tfor (Node movingPlat : mP)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (staticPlat.getBoundsInParent().intersects(a.getBoundsInParent()) && enemyBullet.getBoundsInParent().intersects(a.getBoundsInParent()) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (enemyBullet.getBoundsInParent().intersects(a.getBoundsInParent()) && movingPlat.getBoundsInParent().intersects(a.getBoundsInParent()))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"protected void check_turn(List<CollisionObject> collidables) {\n //Firing rays\n\n //select an area of 180 degrees (pi radians)\n boolean turn = true;\n Vector2 start_point = get_ray_fire_point();\n for (int ray = 0; ray <= number_of_rays; ray++) {\n\n if (turn) {\n ray--;\n float ray_angle = sprite.getRotation() + ((ray_angle_range / (number_of_rays / 2)) * ray);\n turn = false;\n } else {\n float ray_angle = sprite.getRotation() - ((ray_angle_range / (number_of_rays / 2)) * ray);\n turn = true;\n }\n\n float ray_angle = ((ray_angle_range / number_of_rays) * ray) + sprite.getRotation();\n\n for (float dist = 0; dist <= ray_range; dist += ray_step_size) {\n\n double tempx = (Math.cos(Math.toRadians(ray_angle)) * dist) + (start_point.x);\n double tempy = (Math.sin(Math.toRadians(ray_angle)) * dist) + (start_point.y);\n //check if there is a collision hull (other than self) at (tempx, tempy)\n for (CollisionObject collideable : collidables) {\n if (collideable.isShown() &&\n ((Obstacle) collideable).getSprite().getY() > sprite.getY() - 200 &&\n ((Obstacle) collideable).getSprite().getY() < sprite.getY() + 200 &&\n ((Obstacle) collideable).getSprite().getX() > sprite.getX() - 200 &&\n ((Obstacle) collideable).getSprite().getX() < sprite.getX() + 200)\n for (Shape2D bound : collideable.getBounds().getShapes()) {\n if (bound.contains((float) tempx, (float) tempy)) {\n // Determines which side the ai should turn to\n if (turn) {\n turn(-1);\n return;\n } else {\n turn(1);\n return;\n }\n\n }\n }\n\n }\n }\n }\n }",
"boolean testPlaceAllBullets(Tester t) {\n return t.checkExpect(this.lob3.placeAll(this.em),\n em.placeImageXY(bullet1.draw(), 250, 300).placeImageXY(bullet8.draw(), 50, 50)\n .placeImageXY(bullet9.draw(), 50, 50))\n && t.checkExpect(this.mt.placeAll(this.em), this.em);\n }",
"public void fireBullet(){\n\t\tBullet bullet = new Bullet(ship);\n\t\tbullets.add(bullet);\n\t\tsoundMan.playBulletSound();\n\t}",
"public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }",
"public void onBulletHit(BulletHitEvent event) {\n RobotReference hitRobot;\n hitRobot = robots.get(event.getName());\n\n if (hitRobot.isTeammate()) {\n setTurnRight(90);\n setAhead(400);\n setChargerTarget();\n }\n }",
"private void checkForDeaths() {\n Iterator<Entity> entityIter = this.entities.iterator();\n\n //geht alle teilnehmer durch\n while ( entityIter.hasNext() ) {\n Entity entity = entityIter.next();\n\n //und entfernt sie wenn sie tot sind aus der liste und der engine\n if ( this.combatMapper.get(entity).curHealth <= 0 ) {\n entityIter.remove();\n\n //alle actions der entity entfernen, können ja nichts machen wenn sie tot sind\n Iterator<IAction> actionIter = this.actions.iterator();\n\n while ( actionIter.hasNext() ) {\n if ( actionIter.next().getOwner().equals(entity) ) {\n actionIter.remove();\n }\n }\n\n this.combatExp += this.combatMapper.get(entity).level * 5; //TODO\n\n EventSystem.getInstance().commitEvent(new Event(EventSystem.EventType.KILL_EVENT, entity));\n\n this.combatSystem.getEngine().removeEntity(entity);\n }\n }\n }",
"private void checkVictory()\n {\n if(throne.getEnemyHealth() <= 0)\n {\n System.out.println(\"Congrats! The land is now free from all chaos and destruction. You are now very rich and wealthy. Yay\");\n alive = false;\n }\n }",
"private void clearBullet()\n {\n if(playerBullets.size() > 0)\n {\n for(int i = 0; i < playerBullets.size(); ++i)\n {\n int x = playerBullets.get(i).getRectangle().centerX(), y = playerBullets.get(i).getRectangle().centerY();\n if (y <= 0 || y >= Constants.SCREEN_HEIGHT || x <= 0 || x >= Constants.SCREEN_WIDTH)\n {\n playerBullets.remove(i);\n --i;\n SFX_Manager.impact();\n }\n }\n }\n if(enemyBullets.size() > 0)\n {\n for(int i = 0; i < enemyBullets.size(); ++i)\n {\n int x = enemyBullets.get(i).getRectangle().centerX(), y = enemyBullets.get(i).getRectangle().centerY();\n if (y <= 0 || y >= Constants.SCREEN_HEIGHT || x <= 0 || x >= Constants.SCREEN_WIDTH)\n {\n enemyBullets.remove(i);\n --i;\n SFX_Manager.impact();\n }\n }\n }\n }",
"public void checkHits() {\n\t\t// your code here\n\t\tfor (int i = 0; i < enemyX.length; i++) {\n\t\t\tif (distance((int)xI, (int)yI, enemyX[i], enemyY[i]) <= DIAM_ENEMY/2 + DIAM_LAUNCHER/2) {\n\t\t\t}\n\t\t}\n\t}",
"private void removeDeadEnemies() {\n ArrayList<Entity> deadEnemies = getAllEnemiesDead();\n if (deadEnemies.size() > 0) {\n for (Entity enemy : deadEnemies) {\n enemiesInCombat.remove(enemy);\n }\n }\n isStillInCombat();\n }",
"public void playEnemy(){\n // System.out.println(\"staaaaaaaaaaaaaaaaaaaaar\"+character.getBlock());\n for(int i = 0 ; i < enemyController.getSize() ; i++){\n if (! enemies.get(i).isDead())\n effectHandler.playEnemy( i );\n }\n for( int i = 0 ; i < enemyController.getSize() ; i++){\n if (! enemies.get(i).isDead())\n effectHandler.endEnemyTurn(i);\n }\n\n }",
"public static boolean checkOverlap(Bullet aBullet, Enemy e) {\n\t\tRect enemyRect = e.getDstRect();\n\t\t\n\t\tint bulletX = (int) aBullet.getBulletX();\n\t\tint bulletY = (int) aBullet.getBulletY();\n\t\t\n\t\treturn enemyRect.contains(bulletX, bulletY);\n\t}",
"void garbageCollector() {\n Enemy ETR = null;\n Sprite BTR = null;\n Medkit MTR = null;\n for (Enemy e: enemies) {\n if (e.eTank.getX() < -100) {\n ETR = e;\n }\n }\n for (Sprite c: smBullets) {\n if (c.getX() > width + 100) {\n BTR = c;\n }\n if (c.getY() > height + 100) {\n BTR = c;\n }\n if (c.getX() < -100) {\n BTR = c;\n }\n if (c.getY() < -100) {\n BTR = c;\n }\n }\n \n for (Medkit med : health) {\n if (med.timer <= 0) {\n MTR = med;\n }\n }\n //gets rid of bullets that went off-screen\n if (BTR != null) {\n smBullets.remove(BTR);\n println(\"Deleted bullet\");\n }\n if (ETR != null) {\n enemies.remove(ETR);\n }\n //Medkits to despawn\n if (MTR != null) {\n health.remove(MTR);\n }\n}",
"public void onHitByBullet(HitByBulletEvent e) {\n\t\t// Paramos tudo o que estamos fazendo.\n\t\tstop();\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\n\t\t// Giramos a arma na direção do disparo\n\t\tdouble turnGunAmt = Utils.normalRelativeAngleDegrees(e.getBearing() + getHeading() - getGunHeading());\n\t\tturnGunRight(turnGunAmt);\n\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\t\tback(400); // Recuamos\n\t}",
"private void iterateEnemyShots() {\n\t\tfor (Shot s : enemyShotList) {\n\t\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\t\tfor(Invader a : row) {\n\t\t\t\t\ta.shouldAttack(s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public boolean IsBullet()\r\n {\r\n return this.isBullet;\r\n }",
"private void shoot(boolean canShoot, java.util.List<Enemy> enemiesInVicinity) {\n if (canShoot) {\n shotEnemy = null;\n if (!enemiesInVicinity.isEmpty()){\n boolean shotEnamies = shootAt(enemyWithLowestHealth(enemiesInVicinity));\n if (shotEnamies) resetCooldown();\n }\n }\n }",
"private void handleCollisions() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tcheckInvaderDeath(a);\n\t\t\t\tcheckPlayerDeath(a);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Shot s : enemyShotList) {\n\t\t\t\n\t\t\tif (s.detectDownwardCollision(player.getX(), player.getY())) {\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcollectPowerUp(armorPiercing);\n\t\tcollectPowerUp(explosive);\n\t}",
"public void checkItem() {\n Entity t = BombermanGame.checkCollisionItem(this.rectangle);\n if (t instanceof SpeedItem) {\n speed ++;\n ((SpeedItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof FlameItem) {\n flame = true;\n ((FlameItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof BombItem) {\n max_bomb ++;\n ((BombItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof Portal) {\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n }",
"private void ShootListener() {\n shoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (presenter.canShoot()) {\n shoot(presenter.getBullet());\n presenter.checkLastBullet();\n }\n\n }\n });\n }",
"public void draw() {\n if (you.health() > 0 | lives >= 0) {\n if (aliens.isEmpty()) {\n win();\n }\n if (you.health() <= 0 & lives >= 0) {\n die();\n }\n \n you.act();\n \n if (fire & you.getWeapon() == Weapon.WEAPON_GOD) {\n for (Dot d : you.fire()) {\n this.moreBullets(d);\n }\n }\n for (Dot d : lazers){d.update(); d.draw(page);}\n for (Dot d : bullets) {d.update(); d.draw(page);}\n for (Alien loop : aliens) {\n loop.act();\n if (Math.random() > .993) {\n for (Dot d : loop.fire())\n lazers.add(d);\n }\n loop.draw(page);\n }\n \n if (collisionCheck() | fl) {\n flash();\n fl = !fl;\n }\n \n int index1 = 0, index2 = 0, size1 = bullets.size(), size2 = aliens.size();\n for (Alien al : aliens) {\n index2 = 0;\n while (index2 < size1) {\n if (al.collide(bullets.get(index2))) {\n bullets.remove(index2);\n size1--;\n score += 10;\n }\n index2++;\n }\n }\n\n index1 = 0; size1 = aliens.size();\n while (index1 < size1) {\n if (aliens.get(index1).health() <= 0) {\n aliens.remove(index1);\n index1--;\n size1--;\n score += 25;\n }\n index1++;\n }\n \n for (Dot d : lazers) {\n if (d.getX() < 0 | d.getX() > 512 | d.getY() < 0 | d.getY() > 496) {\n d.deactivate();\n }\n }\n index1 = 0; size1 = lazers.size();\n while (index1 < size1) {\n if (!lazers.get(index1).isActive()) {\n lazers.remove(index1);\n size1--;\n index1--;\n }\n index1++;\n }\n \n for (Dot d : bullets) {\n if (d.getX() < 0 | d.getX() > 512 | d.getY() < 0 | d.getY() > 512) {\n d.deactivate();\n }\n }\n index1 = 0; size1 = bullets.size();\n while (index1 < size1) {\n if (!bullets.get(index1).isActive()) {\n bullets.remove(index1);\n size1--;\n index1--;\n }\n index1++;\n }\n \n for (int i = 0; i < lives; i++) {\n page.drawImage(you.getImage(), i*20, 496, 16, 16, null);\n }\n page.setColor(Color.white);\n page.drawString(\"\" + you.health(), 420, 509);\n page.drawString(\"\" + score, 450, 509);\n you.draw(page);\n }\n else {\n lose();\n }\n }",
"public void checkIfAlive()\n {\n if(this.health<=0)\n {\n targetable=false;\n monstersWalkDistanceX=0;\n monstersWalkDistanceY=0;\n this.health=0;\n new TextureChanger(this,0);\n isSelected=false;\n if(monsterType==1)\n {\n visible=false;\n }\n if(gaveResource==false) {\n int gameResource = Board.gameResources.getGameResources();\n Board.gameResources.setGameResources(gameResource + resourceReward);\n gaveResource=true;\n }\n }\n }",
"public void update(float delta) {\n rangeTimer++;//update bullet distance\n //delete bullet if hit collison or met ranged\n if (rangeTimer == RANGE) {\n bullet.setShoot(false);\n rangeTimer = 0;\n } else {\n //update bullet timings\n bullet.updateTimer(delta);\n //make bullet go to p x y - follows player to increase difficulty\n if (this.bullet.x < playerX + 1.5) {\n this.bullet.x += Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.x >playerX + 1.5) {\n this.bullet.x -= Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.y < playerY + 0.5) {\n this.bullet.y += Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.y > playerY + 1.5) {\n this.bullet.y -= Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n }\n }",
"public void collisionVS() {\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).tick();\n\n if (enemyBullets.get(i).getImgY() >= 750 || enemyBullets.get(i).getImgY() <= 40) {\n\n enemyBullets.get(i).bulletImage.delete();\n enemyBullets.remove(enemyBullets.get(i));\n i--;\n continue;\n }\n\n for (int j = 0; j < spaceShips.size(); j++) {\n\n if (spaceShips.get(j).getHitbox().intersects(enemyBullets.get(i).getHitbox())) {\n\n spaceShips.get(j).hit();\n enemyBullets.get(i).hit();\n enemyBullets.remove(enemyBullets.get(i));\n\n if (spaceShips.get(j).getHp() <= 0) {\n spaceShips.remove(spaceShips.get(j));\n }\n\n //if it collides with one leave the for loop\n i--;\n j = spaceShips.size();\n }\n }\n }\n\n //////////////////////////////////////////////////////////////////////////////////////////////\n\n // SPACESHIPS WITH ENEMIES AND ENEMY BULLETS\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).tick();\n\n // WITH ENEMIES\n for (int j = 0; j < enemies.size(); j++) {\n if (spaceShips.get(i).getHitbox().intersects(enemies.get(j).getHitbox())) {\n\n spaceShips.get(i).hit();\n enemies.get(j).hit(20);\n enemies.remove(enemies.get(j));\n\n if (spaceShips.get(i).getHp() <= 0) {\n spaceShips.remove(spaceShips.get(i));\n }\n\n //if it collides with one leave the for loop\n j = enemies.size();\n }\n }\n }\n }",
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t// Bullet //\r\n\t\t////////////\r\n\t\tArrayList msDOWN = GameCraft.getBulletDOWN();\r\n\t\tfor (int i = 0; i < msDOWN.size(); i++) {\r\n\t\t\tBulletDOWN m = (BulletDOWN) msDOWN.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveDOWN();\r\n\t\t\telse msDOWN.remove(i);\r\n\t\t}\r\n\r\n\t\tArrayList msUP = GameCraft.getBulletUP();\r\n\t\tfor (int i = 0; i < msUP.size(); i++) {\r\n\t\t\tBulletUP m = (BulletUP) msUP.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveUP();\r\n\t\t\telse msUP.remove(i);\r\n\t\t}\r\n\r\n\t\tArrayList msLEFT = GameCraft.getBulletLEFT();\r\n\t\tfor (int i = 0; i < msLEFT.size(); i++) {\r\n\t\t\tBulletLEFT m = (BulletLEFT) msLEFT.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveLEFT();\r\n\t\t\telse msLEFT.remove(i);\r\n\t\t}\r\n\r\n\t\tArrayList msRIGHT = GameCraft.getBulletRIGHT();\r\n\t\tfor (int i = 0; i < msRIGHT.size(); i++) {\r\n\t\t\tBulletRIGHT m = (BulletRIGHT) msRIGHT.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveRIGHT();\r\n\t\t\telse msRIGHT.remove(i);\r\n\t\t}\r\n\t\t\r\n\t\tArrayList msEnemys = GameCraft.getEnemys();\r\n\t\tif(moveamount >= 150){\r\n\t\t\tfor (int i = 0; i < msEnemys.size(); i++) {\r\n\t\t\t\tEnemys m = (Enemys) msEnemys.get(i);\r\n\t\t\t\tif (m.isVisible()){\r\n\t\t\t\t\tm.moveMe();\r\n\t\t\t\t}else{ \r\n\t\t\t\t\tmsEnemys.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmoveamount = 0;\r\n\t\t}\r\n\t\tmoveamount++;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(int a = 0; a < msDOWN.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletDOWN bdown = (BulletDOWN) msDOWN.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bdown.getX();\r\n\t\t\t\tint ybul = bdown.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int a = 0; a < msRIGHT.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletRIGHT bright = (BulletRIGHT) msRIGHT.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bright.getX();\r\n\t\t\t\tint ybul = bright.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int a = 0; a < msLEFT.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletLEFT bleft = (BulletLEFT) msLEFT.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bleft.getX();\r\n\t\t\t\tint ybul = bleft.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor(int a = 0; a < msUP.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletUP bup = (BulletUP) msUP.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bup.getX();\r\n\t\t\t\tint ybul = bup.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tEnemy 500 500\r\n\t\tBullet 510 510\r\n\t\t510 < 500 && 480 < 500 || 500 > 510 && 500 > 480\r\n\t\t500 > 320 && 500 > 380\r\n\t\t\r\n\t\t*/\r\n\t\t\r\n\t\t////////////\r\n\t\t// Bullet //\r\n\t\t////////////\r\n\t\tGameCraft.move();\r\n\t\trepaint(); \r\n\t}",
"public void shoot(GraphicsContext graphicsContext) {\n TankBullet bullet = new TankBullet(new FixedCoordinates(getCoordinates().getX() + 17, getCoordinates().getY() + 100), gameEnded, graphicsContext);\n bullet.draw(graphicsContext);\n CoordinatesCache.getInstance().getEnemyBullets().add(bullet);\n }"
] | [
"0.7260405",
"0.72117364",
"0.72009933",
"0.7118246",
"0.70830727",
"0.7050179",
"0.6932839",
"0.6895384",
"0.6869319",
"0.6768387",
"0.6725435",
"0.6695145",
"0.66459095",
"0.6641551",
"0.6628493",
"0.6615633",
"0.6611975",
"0.6555639",
"0.6536821",
"0.6528446",
"0.6513718",
"0.650665",
"0.6505853",
"0.648777",
"0.648039",
"0.6470845",
"0.64595485",
"0.6451943",
"0.6422516",
"0.6414726",
"0.6375901",
"0.6352073",
"0.63319343",
"0.62858164",
"0.62695986",
"0.6212448",
"0.62122387",
"0.6203748",
"0.61900234",
"0.61869913",
"0.6178385",
"0.6177954",
"0.61729896",
"0.61631775",
"0.61593467",
"0.61587805",
"0.61477274",
"0.61395025",
"0.61353964",
"0.6129949",
"0.6128758",
"0.6122499",
"0.61151505",
"0.6108054",
"0.6107543",
"0.60996723",
"0.6074324",
"0.6058862",
"0.6056139",
"0.60540605",
"0.6044575",
"0.6035481",
"0.60217947",
"0.6020405",
"0.60203266",
"0.60017467",
"0.6000227",
"0.59977216",
"0.59818554",
"0.5959799",
"0.59578866",
"0.594718",
"0.5939351",
"0.59349424",
"0.5925357",
"0.59238833",
"0.59187376",
"0.5900086",
"0.5889339",
"0.58774483",
"0.58646756",
"0.5863648",
"0.5857758",
"0.5851883",
"0.584991",
"0.58490556",
"0.58481455",
"0.5841097",
"0.5834882",
"0.58314645",
"0.581281",
"0.58095163",
"0.580518",
"0.58042216",
"0.5798905",
"0.57889026",
"0.5786468",
"0.57808346",
"0.57649124",
"0.5761139"
] | 0.6225541 | 35 |
Allow the function to create an optimized call based on the values of the actual arguments | @Override
public Expression fixArguments(Expression... arguments) {
if (arguments[1] instanceof StringLiteral && arguments[2] instanceof StringLiteral) {
staticMap = buildMap(((StringLiteral) arguments[1]).getValue(), ((StringLiteral) arguments[2]).getValue());
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int a(String paramString, float paramFloat1, float paramFloat2, int paramInt)\r\n/* 234: */ {\r\n/* 235:243 */ return a(paramString, paramFloat1, paramFloat2, paramInt, true);\r\n/* 236: */ }",
"public String a(String paramString, int paramInt)\r\n/* 512: */ {\r\n/* 513:512 */ return a(paramString, paramInt, false);\r\n/* 514: */ }",
"protected void a(int paramInt1, int paramInt2, boolean paramBoolean, yz paramyz) {}",
"private int a(String paramString, int paramInt1, int paramInt2, int paramInt3, int paramInt4, boolean paramBoolean)\r\n/* 416: */ {\r\n/* 417:413 */ if (this.l)\r\n/* 418: */ {\r\n/* 419:414 */ int i1 = a(c(paramString));\r\n/* 420:415 */ paramInt1 = paramInt1 + paramInt3 - i1;\r\n/* 421: */ }\r\n/* 422:417 */ return b(paramString, paramInt1, paramInt2, paramInt4, paramBoolean);\r\n/* 423: */ }",
"private void a(String paramString, int paramInt1, int paramInt2, int paramInt3, boolean paramBoolean)\r\n/* 578: */ {\r\n/* 579:581 */ List<String> localList = c(paramString, paramInt3);\r\n/* 580:582 */ for (String str : localList)\r\n/* 581: */ {\r\n/* 582:583 */ a(str, paramInt1, paramInt2, paramInt3, this.q, paramBoolean);\r\n/* 583:584 */ paramInt2 += this.a;\r\n/* 584: */ }\r\n/* 585: */ }",
"public static void main( String[] args )\n {\n long t = System.currentTimeMillis();\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n \n \n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n \n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n \n \n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n foo(\"x\", \"y\", \"z\");\n System.out.println(\"Var Args ::: \"+(System.currentTimeMillis() - t));\n \n t = System.currentTimeMillis();\n \n String temp = \"X\"+\"Y\"+\"Z\";\n \n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n \n \n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n \n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n \n \n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n fab(temp);\n \n System.out.println(\"String Concatenation ::: \"+(System.currentTimeMillis() - t));\n \n foo(\"x\", new String[] { \"y\", \"z\"});\n\n }",
"void gen() {\n int argCount = args.length;\r\n assert (argCount <= X86.argRegs.length);\r\n // If indirect jump through a register, make\r\n // sure this is not an argument register that\r\n // we're about to overwrite!\r\n X86.Operand call_target = null;\r\n if (ind) {\r\n\tif (tgt instanceof Reg) {\r\n\t call_target = env.get(tgt);\r\n\t assert (call_target != null); // dead value surely isn't used as a source\r\n\t for (int i = 0; i < argCount; i++)\r\n\t if (call_target.equals(X86.argRegs[i])) {\r\n\t X86.emitMov(X86.Size.Q,call_target,tempReg2);\r\n\t call_target = tempReg2;\r\n\t break;\r\n\t }\r\n\t} else // tgt instanceof Global \r\n\t call_target = new X86.AddrName(((Global)tgt).toString());\r\n }\r\n // Move arguments into the argument regs.\r\n // First do parallel move of register sources.\r\n X86.Reg src[] = new X86.Reg[argCount];\r\n X86.Reg dst[] = new X86.Reg[argCount];\r\n boolean moved[] = new boolean[argCount]; // initialized to false\r\n int n = 0;\r\n for (int i = 0; i < argCount; i++) {\r\n\tIR.Src s = args[i];\r\n\tif (s instanceof Reg) {\r\n\t X86.Operand rand = env.get((Reg) s);\r\n\t if (rand instanceof X86.Reg) {\r\n\t src[n] = (X86.Reg) rand;\r\n\t dst[n] = X86.argRegs[i];\r\n\t n++;\r\n\t moved[i] = true; \r\n\t }\r\n\t}\r\n }\r\n new X86.ParallelMover(n,src,dst,tempReg1).move();\r\n // Now handle any immediate sources.\r\n for (int i = 0; i < argCount; i++) \r\n\tif (!moved[i]) {\r\n\t X86.Operand r = args[i].gen_source_operand(true,X86.argRegs[i]);\r\n\t X86.emitMov(X86.Size.Q,r,X86.argRegs[i]);\r\n\t}\r\n if (ind) {\r\n\tX86.emit1(\"call *\", call_target);\r\n } else\r\n\tX86.emit1(\"call\", new X86.GLabel((((Global)tgt).toString())));\r\n if (rdst != null) {\r\n\tX86.Reg r = rdst.gen_dest_operand();\r\n\tX86.emitMov(X86.Size.Q,X86.RAX,r);\r\n }\r\n }",
"public void a(String paramString, int paramInt1, int paramInt2, int paramInt3, int paramInt4)\r\n/* 569: */ {\r\n/* 570:573 */ e();\r\n/* 571:574 */ this.q = paramInt4;\r\n/* 572:575 */ paramString = d(paramString);\r\n/* 573: */ \r\n/* 574:577 */ a(paramString, paramInt1, paramInt2, paramInt3, false);\r\n/* 575: */ }",
"public CALL(Exp f, ExpList a) {func=f; args=a;}",
"T call( @Nonnull final Object... args );",
"public static void call(Object... o) {\r\n\t\t// to prevent the compiler to prune the Object\r\n\t}",
"@Override\n protected BDDState handleFunctionCallEdge(\n CFunctionCallEdge cfaEdge,\n List<CExpression> args,\n List<CParameterDeclaration> params,\n String calledFunction)\n throws UnsupportedCodeException {\n BDDState newState = state;\n\n // var_args cannot be handled: func(int x, ...) --> we only handle the first n parameters\n assert args.size() >= params.size();\n\n for (int i = 0; i < params.size(); i++) {\n\n // make variable (predicate) for param, this variable is not global\n final String varName = params.get(i).getQualifiedName();\n final CType targetType = params.get(i).getType();\n final Partition partition = varClass.getPartitionForParameterOfEdge(cfaEdge, i);\n final Region[] var =\n predmgr.createPredicate(\n varName,\n targetType,\n cfaEdge.getSuccessor(),\n bvComputer.getBitsize(partition, targetType),\n precision);\n final Region[] arg =\n bvComputer.evaluateVectorExpression(\n partition, args.get(i), targetType, cfaEdge.getSuccessor(), precision);\n newState = newState.addAssignment(var, arg);\n }\n\n return newState;\n }",
"@Value.Parameter\n OptionalInt optimize();",
"public void a(long arg16, double arg18, double arg20) {\n }",
"public int a(String paramString, int paramInt1, int paramInt2, int paramInt3)\r\n/* 239: */ {\r\n/* 240:247 */ return a(paramString, (float)paramInt1, (float)paramInt2, paramInt3, false);\r\n/* 241: */ }",
"public abstract Result mo5059a(Params... paramsArr);",
"public abstract Value apply(List<Value> args, Node location);",
"public static void main(String[] args) {\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 3, 4, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 3, 5, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 3, 4, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 3, 5, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 5, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 5, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(6, 6, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(6, 6, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 3, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(7, 7, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(7, 7, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 4, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 4, true, null)));\n measureTime(()->checkInterruptSequential(4, 4, 3, false));\n measureTime(()->checkInterruptSequential(4, 4, 3, true));\n }",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public static void call(int paramInt1, int paramInt2, long paramLong1, long paramLong2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)\n/* */ {\n/* */ try\n/* */ {\n/* 71 */ if ((MainMemory.getI32(paramInt6) <= 0) && (paramLong2 != 0L)) {\n/* */ break label38;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ label38:\n/* */ \n/* */ \n/* */ \n/* 87 */ switch (paramInt2) {\n/* */ case 11: \n/* */ break label482;\n/* */ break;\n/* */ case 12: \n/* */ break label457;\n/* */ break;\n/* */ case 20: \n/* */ break label432;\n/* */ break;\n/* */ case 21: \n/* */ break label407;\n/* */ break;\n/* */ case 30: break label382;\n/* */ break; case 31: break label357;\n/* */ break; case 40: break label332;\n/* */ break; case 41: break label307;\n/* */ break; case 81: break label282;\n/* */ break; case 42: break label257;\n/* */ break; case 82: break; }\n/* 107 */ ffgpfd.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label257:\n/* */ \n/* 114 */ ffgpfe.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label282:\n/* */ \n/* 121 */ ffgpfjj.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label307:\n/* */ \n/* 128 */ ffgpfj.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label332:\n/* */ \n/* 135 */ ffgpfuj.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label357:\n/* */ \n/* 142 */ ffgpfk.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label382:\n/* */ \n/* 149 */ ffgpfuk.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label407:\n/* */ \n/* 156 */ ffgpfi.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label432:\n/* */ \n/* 163 */ ffgpfui.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label457:\n/* */ \n/* 170 */ ffgpfsb.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label482:\n/* */ \n/* 177 */ ffgpfb.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ \n/* 184 */ MainMemory.setI32(paramInt6, 410);\n/* */ \n/* */ \n/* */ label520:\n/* */ \n/* */ \n/* 190 */ return;\n/* */ }\n/* */ finally {}\n/* */ }",
"private void prepareMethodsToInstrument(\r\n\t\t\tboolean useInlinedVersion,\r\n\t\t\tboolean useCaller, // Compressor.compress\r\n\t\t\tboolean useCallee1, // CodeTable.of\r\n\t\t\tboolean useCallee2, // CodeTable.set\r\n\t\t\tboolean useCallee3, // HashTable.clear\r\n\t\t\tboolean useCallee4, // HashTable.hsize\r\n\t\t\tboolean useCallee5, // HashTable.of_hash\r\n\t\t\tboolean useCallee6, // HashTable.set_hash\r\n\t\t\tboolean useCallee7, // Compressor.clblock\r\n\t\t\tboolean useCallee8, // Compressor.output\r\n\t\t\tboolean useCallee9, // InputBuffer.readByte\r\n\t\t\tboolean useCalleeA, // Compressor.getMaxCode\r\n\t\t\tboolean useCalleeB, // OutputBuffer.writeByte\r\n\t\t\tboolean useCalleeC, // OutputBuffer.writeBytes\r\n\t\t\tString packageName,\r\n\t\t\tList<MethodDescriptor> methodsToInstrument\r\n\t\t) {\r\n\t\tMethodDescriptor caller = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor\", //Compressor is not an inner class! thus, do not try Compress$Compressor!\r\n\t\t\t\t\"public void compress()\",\r\n\t\t\t\tMethodDescriptor.IS_VARIANT,\r\n\t\t\t\tMethodDescriptor.IS_COUNTED_SEPARATELY\r\n\t\t\t\t); \r\n\t\tcaller.setContext(new UUID(System.currentTimeMillis(),System.currentTimeMillis()));\r\n\t\t\r\n\t\tMethodDescriptor callee1 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".CodeTable\", \r\n\t\t\t\t\"public int of(int i)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcallee1.setContext(caller.getContext());\r\n\t\t\r\n\t\tMethodDescriptor callee2 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".CodeTable\", \r\n\t\t\t\t\"public void set(int i, int v)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcallee2.setContext(caller.getContext());\r\n\t\t\r\n\t\tMethodDescriptor callee3;\r\n\t\tif(useInlinedVersion){\r\n\t\t\tcallee3 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".HashTable\", \r\n\t\t\t\t\"public void clear()\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,//\"size\" always 69001... \r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}else{\r\n\t\t\tcallee3 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor$HashTable\", \r\n\t\t\t\t\"public void clear()\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,//\"size\" always 69001...\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}\r\n\t\tcallee3.setContext(caller.getContext());\r\n\r\n\t\tMethodDescriptor callee4;\r\n\t\tif(useInlinedVersion){\r\n\t\t\tcallee4 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".HashTable\", \r\n\t\t\t\t\"public int hsize()\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}else{\r\n\t\t\tcallee4 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor$HashTable\", \r\n\t\t\t\t\"public int hsize()\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}\r\n\t\tcallee4.setContext(caller.getContext());\r\n\t\t\r\n\t\tMethodDescriptor callee5;\r\n\t\tif(useInlinedVersion){\r\n\t\t\tlog.error(\"Inlined version of callee6 still with a problematic method name of\");\r\n\t\t\tcallee5 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".HashTable\", \r\n\t\t\t\t\"public int of(int i)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}else{\r\n\t\t\tcallee5 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor$HashTable\", \r\n\t\t\t\t\"public int of_hash(int i)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}\r\n\t\tcallee5.setContext(caller.getContext());\r\n\t\t\r\n\t\tMethodDescriptor callee6;\r\n\t\tif(useInlinedVersion){\r\n\t\t\tlog.error(\"Inlined version of callee6 still with a problematic method name set\");\r\n\t\t\tcallee6 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".HashTable\", \r\n\t\t\t\t\"public void set(int i, int v)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}else{\r\n\t\t\tcallee6 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor$HashTable\", \r\n\t\t\t\t\"public void set_hash(int i, int v)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}\r\n\t\tcallee6.setContext(caller.getContext());\r\n\t\t\r\n\t\tMethodDescriptor callee7 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor\", \r\n\t\t\t\t\"public void clBlock()\",\r\n\t\t\t\tMethodDescriptor.IS_VARIANT,\r\n\t\t\t\tMethodDescriptor.IS_COUNTED_SEPARATELY\r\n\t\t\t\t); //I had an error here\r\n\t\tcallee7.setContext(caller.getContext());\r\n\t\t\r\n\t\tSystem.err.println(\"Callee 8 (Compressor.output) not inlined - may be a scalability issue (see prepareMethodsToInstrument)\");\r\n\t\tMethodDescriptor callee8 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor\", \r\n\t\t\t\t\"public void output(int code)\",\r\n\t\t\t\tMethodDescriptor.IS_VARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcallee8.setContext(caller.getContext());\r\n\t\t\r\n\t\tSystem.err.println(\"Callee 9 (InputBuffer.readByte) not inlined - may be a scalability issue (see prepareMethodsToInstrument)\");\r\n\t\tMethodDescriptor callee9 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".InputBuffer\",\r\n\t\t\t\t\"public int readByte()\",\r\n\t\t\t\tMethodDescriptor.IS_VARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcallee9.setContext(caller.getContext());\r\n\t\t\t\t\r\n\t\t//called from Compressor.output, implemented in Compressor's superclass (CompBase)\r\n\t\t//does not call other methods\r\n\t\tlog.warn(\"For instrumenting getMaxCode: replaced Compressor with CompBase, but only in prepareMethodsToInstrument\");\r\n\t\tMethodDescriptor calleeA = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".CompBase\",\r\n\t\t\t\t\"public int getMaxCode()\",//TODO inherited but not overwritten method!!!\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcalleeA.setContext(caller.getContext());\r\n\t\t\t\t\r\n\t\t//called from Compressor.output\r\n\t\t//does not call other methods\r\n\t\tMethodDescriptor calleeB = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".OutputBuffer\",\r\n\t\t\t\t\"public void writeByte(byte c)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcalleeB.setContext(caller.getContext());\r\n\t\t\t\t\r\n\t\t//called from Compressor.output\r\n\t\t//does not call other methods\r\n\t\tMethodDescriptor calleeC = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".OutputBuffer\",\r\n\t\t\t\t\"public void writebytes(byte[] buf, int n)\",\r\n\t\t\t\tMethodDescriptor.IS_VARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcalleeC.setContext(caller.getContext());\r\n\t\t\t\t\r\n\t\tif(useCaller){\r\n\t\t\tmethodsToInstrument.add(caller);\r\n\t\t}\r\n\t\tif(useCallee1){\r\n\t\t\tmethodsToInstrument.add(callee1);\r\n\t\t}\r\n\t\tif(useCallee2){\r\n\t\t\tmethodsToInstrument.add(callee2);\r\n\t\t}\r\n\t\tif(useCallee3){\r\n\t\t\tmethodsToInstrument.add(callee3);\r\n\t\t}\r\n\t\tif(useCallee4){\r\n\t\t\tmethodsToInstrument.add(callee4);\r\n\t\t}\r\n\t\tif(useCallee5){\r\n\t\t\tmethodsToInstrument.add(callee5);\r\n\t\t}\r\n\t\tif(useCallee6){\r\n\t\t\tmethodsToInstrument.add(callee6);\r\n\t\t}\r\n\t\tif(useCallee7){\r\n\t\t\tmethodsToInstrument.add(callee7);\r\n\t\t}\r\n\t\tif(useCallee8){\r\n\t\t\tmethodsToInstrument.add(callee8);\r\n\t\t}\r\n\t\tif(useCallee9){\r\n\t\t\tmethodsToInstrument.add(callee9);\r\n\t\t}\r\n\t\tif(useCalleeA){\r\n\t\t\tmethodsToInstrument.add(calleeA);\r\n\t\t}\r\n\t\tif(useCalleeB){\r\n\t\t\tmethodsToInstrument.add(calleeB);\r\n\t\t}\r\n\t\tif(useCalleeC){\r\n\t\t\tmethodsToInstrument.add(calleeC);\r\n\t\t}\r\n\t}",
"@Override\n public int fun(int a, int b) {\n return a + b + 1;\n }",
"public void b(int paramInt1, int paramInt2) {}",
"public void b(int paramInt1, int paramInt2) {}",
"static void perform_call(String passed){\n\t\tint type = type_of_call(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcall_without_condition(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"protected SqlCall autoFixSqlCall(ScriptVariable variable) throws ParamReplaceException {\n SqlOperator sqlOperator = sqlCall.getOperator();\n List<SqlNode> operandList = new ArrayList<>();\n\n SqlKind kind = sqlCall.getOperator().kind;\n\n switch (kind) {\n case GREATER_THAN:\n case GREATER_THAN_OR_EQUAL:\n reduceVariableToMin(variable);\n replaceVariable(sqlCall, variable);\n operandList.addAll(sqlCall.getOperandList());\n break;\n case LESS_THAN:\n case LESS_THAN_OR_EQUAL:\n reduceVariableToMax(variable);\n replaceVariable(sqlCall, variable);\n operandList.addAll(sqlCall.getOperandList());\n break;\n case EQUALS:\n sqlOperator = SqlStdOperatorTable.IN;\n replaceVariable(sqlCall, variable);\n operandList.addAll(sqlCall.getOperandList());\n break;\n case NOT_EQUALS:\n sqlOperator = SqlStdOperatorTable.NOT_IN;\n replaceVariable(sqlCall, variable);\n operandList.addAll(sqlCall.getOperandList());\n break;\n case LIKE:\n SqlLikeOperator likeOperator = (SqlLikeOperator) sqlCall.getOperator();\n if (likeOperator.isNegated()) {\n sqlOperator = SqlStdOperatorTable.AND;\n operandList = variable.getValues().stream().map(val -> {\n ArrayList<SqlNode> operands = new ArrayList<>();\n operands.add(sqlCall.getOperandList().get(0));\n operands.add(new SqlSimpleStringLiteral(val));\n return SqlNodeUtils\n .createSqlBasicCall(SqlStdOperatorTable.NOT_LIKE, operands);\n }).collect(Collectors.toList());\n } else {\n sqlOperator = SqlStdOperatorTable.OR;\n operandList = variable.getValues().stream().map(val -> {\n ArrayList<SqlNode> operands = new ArrayList<>();\n operands.add(sqlCall.getOperandList().get(0));\n operands.add(new SqlSimpleStringLiteral(val));\n return SqlNodeUtils\n .createSqlBasicCall(SqlStdOperatorTable.LIKE, operands);\n }).collect(Collectors.toList());\n }\n break;\n default:\n replaceVariable(sqlCall, variable);\n operandList.addAll(sqlCall.getOperandList());\n break;\n }\n return SqlNodeUtils.createSqlBasicCall(sqlOperator, operandList);\n }",
"public void a(int paramInt1, int paramInt2, float paramFloat)\r\n/* 23: */ {\r\n/* 24:22 */ a(0, 0, this.l, this.m, -12574688, -11530224);\r\n/* 25: */ \r\n/* 26:24 */ a(this.q, this.a, this.l / 2, 90, 16777215);\r\n/* 27:25 */ a(this.q, this.f, this.l / 2, 110, 16777215);\r\n/* 28: */ \r\n/* 29:27 */ super.a(paramInt1, paramInt2, paramFloat);\r\n/* 30: */ }",
"<T extends Formula> T replaceArgs(T f, List<Formula> args);",
"public void a(float paramFloat, int paramInt)\r\n/* 15: */ {\r\n/* 16:132 */ bsu.z().N().a(bvo.a);\r\n/* 17:133 */ bub.a(0, 0, 128.0F, 0.0F, 16, 16, 256.0F, 256.0F);\r\n/* 18: */ }",
"private void initFixedArgs() {\n\t\t\n\t\t// Fetch arguments and convert to integer\n\t\tObject[] args = this.getArguments();\n\t\t\n\t\t// Assign values\n\t\tcoords = new Point((int) args[coordsXI], (int) args[coordsYI]);\n\t\tspots = (int) args[regularSpotsI] + (int) args[luxurySpotsI] + (int) args[handicapSpotsI];\n\t\tregularSpots = (int) args[regularSpotsI];\n\t\tluxurySpots = (int) args[luxurySpotsI];\n\t\thandicapSpots = (int) args[handicapSpotsI];\n\t\thourlyCost = (int) args[fixedHourlyCostI];\n\t\tluxuryCostPercent = (int) args[fixedLuxuryCostPercentI];\n\t}",
"OUT apply(IN argument);",
"void speedUp(int a);",
"public void call(T arg);",
"public int a(String paramString, float paramFloat1, float paramFloat2, int paramInt, boolean paramBoolean)\r\n/* 244: */ {\r\n/* 245:251 */ cjm.enableAlphaTest();\r\n/* 246:252 */ e();\r\n/* 247: */ int i1;\r\n/* 248:256 */ if (paramBoolean)\r\n/* 249: */ {\r\n/* 250:257 */ i1 = b(paramString, paramFloat1 + 1.0F, paramFloat2 + 1.0F, paramInt, true);\r\n/* 251:258 */ i1 = Math.max(i1, b(paramString, paramFloat1, paramFloat2, paramInt, false));\r\n/* 252: */ }\r\n/* 253: */ else\r\n/* 254: */ {\r\n/* 255:260 */ i1 = b(paramString, paramFloat1, paramFloat2, paramInt, false);\r\n/* 256: */ }\r\n/* 257:263 */ return i1;\r\n/* 258: */ }",
"@Override\r\n\tpublic int call(int a, int b) {\n\t\treturn a+b;\r\n\t}",
"abstract protected void doMyOptimization(TransactionId tid, ParallelQueryPlan plan);",
"public abstract int calculate(int a, int b);",
"public String a(String paramString, int paramInt, boolean paramBoolean)\r\n/* 517: */ {\r\n/* 518:516 */ StringBuilder localStringBuilder = new StringBuilder();\r\n/* 519:517 */ int i1 = 0;\r\n/* 520:518 */ int i2 = paramBoolean ? paramString.length() - 1 : 0;\r\n/* 521:519 */ int i3 = paramBoolean ? -1 : 1;\r\n/* 522:520 */ int i4 = 0;\r\n/* 523:521 */ int i5 = 0;\r\n/* 524:523 */ for (int i6 = i2; (i6 >= 0) && (i6 < paramString.length()) && (i1 < paramInt); i6 += i3)\r\n/* 525: */ {\r\n/* 526:524 */ char c1 = paramString.charAt(i6);\r\n/* 527:525 */ int i7 = a(c1);\r\n/* 528:527 */ if (i4 != 0)\r\n/* 529: */ {\r\n/* 530:528 */ i4 = 0;\r\n/* 531:530 */ if ((c1 == 'l') || (c1 == 'L')) {\r\n/* 532:531 */ i5 = 1;\r\n/* 533:532 */ } else if ((c1 == 'r') || (c1 == 'R')) {\r\n/* 534:533 */ i5 = 0;\r\n/* 535: */ }\r\n/* 536: */ }\r\n/* 537:535 */ else if (i7 < 0)\r\n/* 538: */ {\r\n/* 539:536 */ i4 = 1;\r\n/* 540: */ }\r\n/* 541: */ else\r\n/* 542: */ {\r\n/* 543:538 */ i1 += i7;\r\n/* 544:539 */ if (i5 != 0) {\r\n/* 545:540 */ i1++;\r\n/* 546: */ }\r\n/* 547: */ }\r\n/* 548:544 */ if (i1 > paramInt) {\r\n/* 549: */ break;\r\n/* 550: */ }\r\n/* 551:548 */ if (paramBoolean) {\r\n/* 552:549 */ localStringBuilder.insert(0, c1);\r\n/* 553: */ } else {\r\n/* 554:551 */ localStringBuilder.append(c1);\r\n/* 555: */ }\r\n/* 556: */ }\r\n/* 557:555 */ return localStringBuilder.toString();\r\n/* 558: */ }",
"public interface DeBruijnOptimiserArgs extends AssemblerArgs {\n\n GenericDeBruijnOptimiserArgs getDeBruijnOptimiserArgs();\n\n void setDeBruijnOptimiserArgs(GenericDeBruijnOptimiserArgs args);\n}",
"public FireflyOptimization(){\n this(25, 1000);\n }",
"private void copyParameters(Code32 code, SSAValue[] opds) {\r\n//\t\tboolean dbg = true;\r\n\t\t// information about the src registers for parameters of a call to a method \r\n\t\tint[] srcGPR = new int[maxNofParam];\t\r\n\t\tint[] srcGPRcount = new int[maxNofParam];\r\n\t\tint[] srcEXTR = new int[maxNofParam];\r\n\t\tboolean[] srcEXTRtype = new boolean[maxNofParam];\r\n\t\tint[] srcEXTRcount = new int[maxNofParam];\r\n\t\tint[] slotGPR = new int[maxNofParam];\r\n\t\tint[] slotEXTR = new int[maxNofParam];\r\n\r\n\t\tint indexGPR = 0, indexEXTR = 0;\r\n\t\tfor (int k = 0; k < maxNofParam; k++) {\r\n\t\t\tsrcGPR[k] = -1; srcGPRcount[k] = 0; srcEXTR[k] = -1; srcEXTRtype[k] = false; srcEXTRcount[k] = 0; slotGPR[k] = -1; slotEXTR[k] = -1;\r\n\t\t}\r\n\r\n\t\t// get info about in which register parameters are located\r\n\t\t// parameters which go onto the stack are treated equally, their stack slot is noted\r\n\t\tfor (int k = 0, kGPR = 0, kEXTR = 0; k < opds.length; k++) {\r\n\t\t\tint type = opds[k].type & ~(1<<ssaTaFitIntoInt);\r\n\t\t\tif (type == tLong) {\r\n\t\t\t\tsrcGPR[kGPR + paramStartGPR] = opds[k].regLong;\r\n\t\t\t\tsrcGPR[kGPR + 1 + paramStartGPR] = opds[k].reg;\r\n\t\t\t\tif (kGPR > paramEndGPR - paramStartGPR) {slotGPR[kGPR] = indexGPR; indexGPR++;}\r\n\t\t\t\tkGPR++;\r\n\t\t\t\tif (kGPR > paramEndGPR - paramStartGPR) {slotGPR[kGPR] = indexGPR; indexGPR++;}\r\n\t\t\t\tkGPR++;\r\n\t\t\t} else if (type == tFloat || type == tDouble) {\r\n\t\t\t\tsrcEXTR[kEXTR + paramStartEXTR] = opds[k].reg;\r\n\t\t\t\tsrcEXTRtype[kEXTR + paramStartEXTR] = type == tFloat;\r\n\t\t\t\tif (kEXTR > paramEndEXTR - paramStartEXTR) {slotEXTR[kEXTR + paramStartEXTR] = indexEXTR; indexEXTR += 2;}\r\n\t\t\t\tkEXTR++;\r\n\t\t\t} else {\r\n\t\t\t\tsrcGPR[kGPR + paramStartGPR] = opds[k].reg;\r\n\t\t\t\tif (kGPR > paramEndGPR - paramStartGPR) {slotGPR[kGPR] = indexGPR; indexGPR++;}\r\n\t\t\t\tkGPR++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (dbg) {\r\n\t\t\tStdStreams.vrb.print(\"\\tsrcGPR = \");\r\n\t\t\tfor (int k = paramStartGPR; srcGPR[k] != -1; k++) StdStreams.vrb.print(srcGPR[k] + \",\"); \r\n\t\t\tStdStreams.vrb.print(\"\\tsrcGPRcount = \");\r\n\t\t\tfor (int k = 0; k < maxNofParam; k++) StdStreams.vrb.print(srcGPRcount[k] + \",\"); \r\n\t\t\tStdStreams.vrb.println();\r\n\t\t\tStdStreams.vrb.print(\"\\tsrcEXTR = \");\r\n\t\t\tfor (int k = paramStartEXTR; srcEXTR[k] != -1; k++) StdStreams.vrb.print(srcEXTR[k] + \",\"); \r\n\t\t\tStdStreams.vrb.print(\"\\tsrcEXTRtype = \");\r\n\t\t\tfor (int k = paramStartEXTR; srcEXTR[k] != -1; k++) StdStreams.vrb.print(srcEXTRtype[k] + \",\"); \r\n\t\t\tStdStreams.vrb.print(\"\\tsrcEXTRDcount = \");\r\n\t\t\tfor (int k = 0; k < maxNofParam; k++) StdStreams.vrb.print(srcEXTRcount[k] + \",\"); \r\n\t\t\tStdStreams.vrb.println();\r\n\t\t\tStdStreams.vrb.print(\"\\tslotGPR = \");\r\n\t\t\tfor (int k = 0; k < maxNofParam; k++) StdStreams.vrb.print(slotGPR[k] + \",\"); \r\n\t\t\tStdStreams.vrb.println();\r\n\t\t\tStdStreams.vrb.print(\"\\tslotEXTR = \");\r\n\t\t\tfor (int k = 0; k < maxNofParam; k++) StdStreams.vrb.print(slotEXTR[k] + \",\"); \r\n\t\t\tStdStreams.vrb.println();\r\n\t\t}\r\n\r\n\t\t// count register usage\r\n\t\tint i = paramStartGPR;\r\n\t\twhile (srcGPR[i] != -1) {\r\n\t\t\tif (srcGPR[i] <= topGPR) srcGPRcount[srcGPR[i]]++;\r\n\t\t\ti++;\r\n\t\t}\r\n\t\ti = paramStartEXTR;\r\n\t\twhile (srcEXTR[i] != -1) {\r\n\t\t\tif (srcEXTR[i] <= topEXTR) {\r\n\t\t\t\tif (srcEXTRtype[i]) srcEXTRcount[srcEXTR[i]/2]++;\r\n\t\t\t\telse srcEXTRcount[srcEXTR[i]]++;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tif (dbg) {\r\n\t\t\tStdStreams.vrb.print(\"\\tsrcGPR = \");\r\n\t\t\tfor (int k = paramStartGPR; srcGPR[k] != -1; k++) StdStreams.vrb.print(srcGPR[k] + \",\"); \r\n\t\t\tStdStreams.vrb.print(\"\\tsrcGPRcount = \");\r\n\t\t\tfor (int k = 0; k < maxNofParam; k++) StdStreams.vrb.print(srcGPRcount[k] + \",\"); \r\n\t\t\tStdStreams.vrb.println();\r\n\t\t\tStdStreams.vrb.print(\"\\tsrcEXTR = \");\r\n\t\t\tfor (int k = paramStartEXTR; srcEXTR[k] != -1; k++) StdStreams.vrb.print(srcEXTR[k] + \",\"); \r\n\t\t\tStdStreams.vrb.print(\"\\tsrcEXTRtype = \");\r\n\t\t\tfor (int k = paramStartEXTR; srcEXTR[k] != -1; k++) StdStreams.vrb.print(srcEXTRtype[k] + \",\"); \r\n\t\t\tStdStreams.vrb.print(\"\\tsrcEXTRDcount = \");\r\n\t\t\tfor (int k = 0; k < maxNofParam; k++) StdStreams.vrb.print(srcEXTRcount[k] + \",\"); \r\n\t\t\tStdStreams.vrb.println();\r\n\t\t}\r\n\t\t\r\n\t\t// handle move to itself\r\n\t\ti = paramStartGPR;\r\n\t\twhile (srcGPR[i] != -1) {\r\n\t\t\tif (srcGPR[i] == i) srcGPRcount[i]--;\r\n\t\t\ti++;\r\n\t\t}\r\n\t\ti = paramStartEXTR;\r\n\t\twhile (srcEXTR[i] != -1) {\r\n\t\t\tif (srcEXTRtype[i]) {\r\n\t\t\t\tif (srcEXTR[i] / 2 == i) srcEXTRcount[i]--;\r\n\t\t\t} else {\r\n\t\t\t\tif (srcEXTR[i] == i) srcEXTRcount[i]--;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tif (dbg) {\r\n\t\t\tStdStreams.vrb.print(\"\\tsrcGPR = \");\r\n\t\t\tfor (int k = paramStartGPR; srcGPR[k] != -1; k++) StdStreams.vrb.print(srcGPR[k] + \",\"); \r\n\t\t\tStdStreams.vrb.print(\"\\tsrcGPRcount = \");\r\n\t\t\tfor (int n = 0; n < maxNofParam; n++) StdStreams.vrb.print(srcGPRcount[n] + \",\"); \r\n\t\t\tStdStreams.vrb.println();\r\n\t\t\tStdStreams.vrb.print(\"\\tsrcEXTR = \");\r\n\t\t\tfor (int k = paramStartEXTR; srcEXTR[k] != -1; k++) StdStreams.vrb.print(srcEXTR[k] + \",\"); \r\n\t\t\tStdStreams.vrb.print(\"\\tsrcEXTRtype = \");\r\n\t\t\tfor (int k = paramStartEXTR; srcEXTR[k] != -1; k++) StdStreams.vrb.print(srcEXTRtype[k] + \",\"); \r\n\t\t\tStdStreams.vrb.print(\"\\tsrcEXTRDcount = \");\r\n\t\t\tfor (int k = 0; k < maxNofParam; k++) StdStreams.vrb.print(srcEXTRcount[k] + \",\"); \r\n\t\t\tStdStreams.vrb.println();\r\n\t\t}\r\n\r\n\t\t// move registers \r\n\t\tboolean done = false;\r\n\t\twhile (!done) {\r\n\t\t\ti = paramStartGPR; done = true;\r\n\t\t\twhile (srcGPR[i] != -1) {\r\n\t\t\t\tif (i > paramEndGPR) {\t// copy to stack\r\n\t\t\t\t\tif (srcGPRcount[i] == 0) { // check if not done yet\r\n\t\t\t\t\t\tif (dbg) StdStreams.vrb.println(\"\\tGPR: parameter \" + (i-paramStartGPR) + \" from register R\" + srcGPR[i] + \" to stack slot \" + slotGPR[i]);\r\n\t\t\t\t\t\tif (srcGPR[i] >= 0x100) {\t// copy from stack slot to stack (into parameter area)\r\n\t\t\t\t\t\t\tcreateLSWordImm(code, armLdr, condAlways, scratchReg, stackPtr, code.localVarOffset + 4 * (srcGPR[i] - 0x100), 1, 1, 0);\r\n\t\t\t\t\t\t\tcreateLSWordImm(code, armStr, condAlways, scratchReg, stackPtr, paramOffset + slotGPR[i]*4, 1, 1, 0);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcreateLSWordImm(code, armStr, condAlways, srcGPR[i], stackPtr, paramOffset + slotGPR[i]*4, 1, 1, 0);\r\n\t\t\t\t\t\t\tsrcGPRcount[srcGPR[i]]--; \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsrcGPRcount[i]--; \r\n\t\t\t\t\t\tdone = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\t// copy to register\r\n\t\t\t\t\tif (srcGPRcount[i] == 0) { // check if register no longer used for parameter\r\n\t\t\t\t\t\tif (dbg) StdStreams.vrb.println(\"\\tGPR: parameter \" + (i-paramStartGPR) + \" from register R\" + srcGPR[i] + \" to R\" + i);\r\n\t\t\t\t\t\tif (srcGPR[i] >= 0x100) {\t// copy from stack\r\n\t\t\t\t\t\t\tcreateLSWordImm(code, armLdr, condAlways, i, stackPtr, code.localVarOffset + 4 * (srcGPR[i] - 0x100), 1, 1, 0);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcreateDataProcMovReg(code, armMov, condAlways, i, srcGPR[i], noShift, 0);\r\n\t\t\t\t\t\t\tsrcGPRcount[srcGPR[i]]--; \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsrcGPRcount[i]--; \r\n\t\t\t\t\t\tdone = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ti++; \r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tdone = false;\r\n\t\twhile (!done) {\r\n\t\t\ti = paramStartEXTR; done = true;\r\n\t\t\twhile (srcEXTR[i] != -1) {\r\n\t\t\t\tif (i > paramEndEXTR) {\t// copy to stack\r\n\t\t\t\t\tif (srcEXTRtype[i]) {\t// floats\r\n\t\t\t\t\t\tif (srcEXTRcount[i] == 0) { // check if not done yet\r\n\t\t\t\t\t\t\tif (dbg) StdStreams.vrb.println(\"\\tEXTR: parameter \" + (i-paramStartEXTR) + \" from register S\" + srcEXTR[i] + \" to stack slot \" + (indexGPR + slotEXTR[i]));\r\n\t\t\t\t\t\t\tif (srcEXTR[i] >= 0x100) {\t// copy from stack slot to stack (into parameter area)\r\n\t\t\t\t\t\t\t\tcreateLSExtReg(code, armVldr, condAlways, scratchRegEXTR0, stackPtr, code.localVarOffset + 4 * (srcEXTR[i] - 0x100), true);\r\n\t\t\t\t\t\t\t\tcreateLSExtReg(code, armVstr, condAlways, scratchRegEXTR0, stackPtr, paramOffset + (slotEXTR[i]+indexGPR)*4, true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcreateLSExtReg(code, armVstr, condAlways, srcEXTR[i], stackPtr, paramOffset + (slotEXTR[i]+indexGPR)*4, true);\r\n\t\t\t\t\t\t\t\tsrcEXTRcount[srcEXTR[i]/2]--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsrcEXTRcount[i]--; \r\n\t\t\t\t\t\t\tdone = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // doubles\r\n\t\t\t\t\t\tif (srcEXTRcount[i] == 0) { // check if not done yet\r\n\t\t\t\t\t\t\tif (dbg) StdStreams.vrb.println(\"\\tEXTR: parameter \" + (i-paramStartEXTR) + \" from register D\" + srcEXTR[i] + \" to stack slot \" + (indexGPR + slotEXTR[i]));\r\n\t\t\t\t\t\t\tif (srcEXTR[i] >= 0x100) {\t// copy from stack slot to stack (into parameter area)\r\n\t\t\t\t\t\t\t\tcreateLSExtReg(code, armVldr, condAlways, scratchRegEXTR0, stackPtr, code.localVarOffset + 4 * (srcEXTR[i] - 0x100), false);\r\n\t\t\t\t\t\t\t\tcreateLSExtReg(code, armVstr, condAlways, scratchRegEXTR0, stackPtr, paramOffset + (slotEXTR[i]+indexGPR)*4, false);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcreateLSExtReg(code, armVstr, condAlways, srcEXTR[i], stackPtr, paramOffset + (slotEXTR[i]+indexGPR)*4, false);\r\n\t\t\t\t\t\t\t\tsrcEXTRcount[srcEXTR[i]]--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsrcEXTRcount[i]--; \r\n\t\t\t\t\t\t\tdone = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\t// copy to register\r\n\t\t\t\t\tif (srcEXTRtype[i]) {\t// floats\r\n\t\t\t\t\t\tif (srcEXTRcount[i] == 0) { // check if register no longer used for parameter\r\n\t\t\t\t\t\t\tif (dbg) StdStreams.vrb.println(\"\\tEXTR: parameter \" + (i-paramStartEXTR) + \" from register S\" + srcEXTR[i] + \" to S\" + (i*2));\r\n\t\t\t\t\t\t\tif (srcEXTR[i] >= 0x100) {\t// copy from stack\r\n\t\t\t\t\t\t\t\tcreateLSExtReg(code, armVldr, condAlways, i, stackPtr, code.localVarOffset + 4 * (srcEXTR[i] - 0x100), true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcreateFPdataProc(code, armVmov, condAlways, i*2, 0, srcEXTR[i], true);\r\n\t\t\t\t\t\t\t\tsrcEXTRcount[srcEXTR[i]/2]--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsrcEXTRcount[i]--; \r\n\t\t\t\t\t\t\tdone = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // doubles\r\n\t\t\t\t\t\tif (srcEXTRcount[i] == 0) { // check if register no longer used for parameter\r\n\t\t\t\t\t\t\tif (dbg) StdStreams.vrb.println(\"\\tEXTR: parameter \" + (i-paramStartEXTR) + \" from register D\" + srcEXTR[i] + \" to D\" + i);\r\n\t\t\t\t\t\t\tif (srcEXTR[i] >= 0x100) {\t// copy from stack\r\n\t\t\t\t\t\t\t\tcreateLSExtReg(code, armVldr, condAlways, i, stackPtr, code.localVarOffset + 4 * (srcEXTR[i] - 0x100), false);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcreateFPdataProc(code, armVmov, condAlways, i, 0, srcEXTR[i], false);\r\n\t\t\t\t\t\t\t\tsrcEXTRcount[srcEXTR[i]]--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsrcEXTRcount[i]--; \r\n\t\t\t\t\t\t\tdone = false;\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\ti++; \r\n\t\t\t}\r\n\t\t}\r\n\t\tif (dbg) {\r\n\t\t\tStdStreams.vrb.print(\"\\tsrcGPR = \");\r\n\t\t\tfor (int k = paramStartGPR; srcGPR[k] != -1; k++) StdStreams.vrb.print(srcGPR[k] + \",\"); \r\n\t\t\tStdStreams.vrb.print(\"\\tsrcGPRcount = \");\r\n\t\t\tfor (int n = 0; n < maxNofParam; n++) StdStreams.vrb.print(srcGPRcount[n] + \",\"); \r\n\t\t\tStdStreams.vrb.println();\r\n\t\t\tStdStreams.vrb.print(\"\\tsrcEXTR = \");\r\n\t\t\tfor (int k = paramStartEXTR; srcEXTR[k] != -1; k++) StdStreams.vrb.print(srcEXTR[k] + \",\"); \r\n\t\t\tStdStreams.vrb.print(\"\\tsrcEXTRtype = \");\r\n\t\t\tfor (int k = paramStartEXTR; srcEXTR[k] != -1; k++) StdStreams.vrb.print(srcEXTRtype[k] + \",\"); \r\n\t\t\tStdStreams.vrb.print(\"\\tsrcEXTRDcount = \");\r\n\t\t\tfor (int k = 0; k < maxNofParam; k++) StdStreams.vrb.print(srcEXTRcount[k] + \",\"); \r\n\t\t\tStdStreams.vrb.println();\r\n\t\t}\r\n\r\n\t\t// resolve cycles\r\n\t\tif (dbg) StdStreams.vrb.println(\"\\tresolve cycles\");\r\n\t\tdone = false;\r\n\t\twhile (!done) {\r\n\t\t\ti = paramStartGPR; done = true;\r\n\t\t\twhile (srcGPR[i] != -1) {\r\n\t\t\t\tint src = -1;\r\n\t\t\t\tif (srcGPRcount[i] == 1) {\r\n\t\t\t\t\tsrc = i;\r\n\t\t\t\t\tcreateDataProcMovReg(code, armMov, condAlways, scratchReg, srcGPR[i], noShift, 0);\r\n\t\t\t\t\tif (dbg) StdStreams.vrb.println(\"\\tGPR: from register \" + srcGPR[i] + \" to \" + scratchReg);\r\n\t\t\t\t\tsrcGPRcount[srcGPR[i]]--;\r\n\t\t\t\t\tdone = false;\r\n\t\t\t\t}\r\n\t\t\t\tboolean done1 = false;\r\n\t\t\t\twhile (!done1) {\r\n\t\t\t\t\tint k = paramStartGPR; done1 = true;\r\n\t\t\t\t\twhile (srcGPR[k] != -1) {\r\n\t\t\t\t\t\tif (srcGPRcount[k] == 0 && k != src) {\r\n\t\t\t\t\t\t\tcreateDataProcMovReg(code, armMov, condAlways, k, srcGPR[k], noShift, 0);\r\n\t\t\t\t\t\t\tif (dbg) StdStreams.vrb.println(\"\\tGPR: from register \" + srcGPR[k] + \" to \" + k);\r\n\t\t\t\t\t\t\tsrcGPRcount[k]--; srcGPRcount[srcGPR[k]]--; \r\n\t\t\t\t\t\t\tdone1 = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tk++; \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (src != -1) {\r\n\t\t\t\t\tcreateDataProcMovReg(code, armMov, condAlways, src, scratchReg, noShift, 0);\r\n\t\t\t\t\tif (dbg) StdStreams.vrb.println(\"\\tGPR: from register \" + scratchReg + \" to \" + src);\r\n\t\t\t\t\tsrcGPRcount[src]--;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tdone = false;\r\n\t\twhile (!done) {\r\n\t\t\ti = paramStartEXTR; done = true;\r\n\t\t\twhile (srcEXTR[i] >= 0) {\r\n\t\t\t\tint src = -1;\r\n\t\t\t\tif (srcEXTRcount[i] == 1) {\r\n\t\t\t\t\tsrc = i;\r\n\t\t\t\t\tif (dbg) {\r\n\t\t\t\t\t\tStdStreams.vrb.println(\"prepare\");\r\n\t\t\t\t\t\tif (srcEXTRtype[i]) StdStreams.vrb.println(\"\\tEXTR: from register S\" + srcEXTR[i] + \" to S\" + scratchRegEXTR0);\r\n\t\t\t\t\t\telse StdStreams.vrb.println(\"\\tEXTR: from register D\" + srcEXTR[i] + \" to D\" + scratchRegEXTR0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcreateFPdataProc(code, armVmov, condAlways, scratchRegEXTR0, 0, srcEXTR[i], srcEXTRtype[i]);\r\n\t\t\t\t\tif (srcEXTRtype[i]) srcEXTRcount[srcEXTR[i]/2]--;\r\n\t\t\t\t\telse srcEXTRcount[srcEXTR[i]]--;\r\n\t\t\t\t\tdone = false;\r\n\t\t\t\t}\r\n\t\t\t\tboolean done1 = false;\r\n\t\t\t\twhile (!done1) {\r\n\t\t\t\t\tint k = paramStartEXTR; done1 = true;\r\n\t\t\t\t\twhile (srcEXTR[k] >= 0) {\r\n\t\t\t\t\t\tif (srcEXTRcount[k] == 0 && k != src) {\r\n\t\t\t\t\t\t\tif (dbg) {\r\n\t\t\t\t\t\t\t\tStdStreams.vrb.println(\"k=\"+k);\r\n\t\t\t\t\t\t\t\tif (srcEXTRtype[k]) StdStreams.vrb.println(\"\\tEXTR: from register S\" + srcEXTR[k] + \" to S\" + k*2);\r\n\t\t\t\t\t\t\t\telse StdStreams.vrb.println(\"\\tEXTR: from register D\" + srcEXTR[k] + \" to D\" + k);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (srcEXTRtype[k]) createFPdataProc(code, armVmov, condAlways, k*2, 0, srcEXTR[k], srcEXTRtype[k]);\r\n\t\t\t\t\t\t\telse createFPdataProc(code, armVmov, condAlways, k, 0, srcEXTR[k], srcEXTRtype[k]);\r\n\t\t\t\t\t\t\tsrcEXTRcount[k]--; \r\n\t\t\t\t\t\t\tif (srcEXTRtype[k]) srcEXTRcount[srcEXTR[k]/2]--;\r\n\t\t\t\t\t\t\telse srcEXTRcount[srcEXTR[k]]--;\r\n\t\t\t\t\t\t\tdone1 = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tk++; \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (src >= 0) {\r\n\t\t\t\t\tif (dbg) {\r\n\t\t\t\t\t\tStdStreams.vrb.println(\"cleanup\");\r\n\t\t\t\t\t\tif (srcEXTRtype[i]) StdStreams.vrb.println(\"\\tEXTR: from register S\" + scratchRegEXTR0 + \" to S\" + src*2);\r\n\t\t\t\t\t\telse StdStreams.vrb.println(\"\\tEXTR: from register D\" + scratchRegEXTR0 + \" to D\" + src);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (srcEXTRtype[i]) createFPdataProc(code, armVmov, condAlways, src*2, 0, 0, srcEXTRtype[i]);\r\n\t\t\t\t\telse createFPdataProc(code, armVmov, condAlways, src, 0, 0, srcEXTRtype[i]);\r\n\t\t\t\t\tsrcEXTRcount[src]--;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (dbg) StdStreams.vrb.println(\"\\tdone\");\r\n\t}",
"public int b(String paramString, int paramInt)\r\n/* 588: */ {\r\n/* 589:589 */ return this.a * c(paramString, paramInt).size();\r\n/* 590: */ }",
"abstract /*package*/ Object executeRVMFunction(Function func, IValue[] posArgs, Map<String,IValue> kwArgs);",
"public void method_2259(String param1, double param2, double param4, double param6, int param8, double param9, double param11, double param13, double param15) {\r\n // $FF: Couldn't be decompiled\r\n }",
"g(int paramInt) {\n/* 14364 */ this.a = (Interpolator)new DecelerateInterpolator();\n/* 14365 */ this.b = paramInt;\n/* 14366 */ this.c = this.b + 500;\n/* */ }",
"public interface IMostSpecificOverloadDecider\n{\n OverloadRankingDto inNormalMode(\n WorkItemDto workItemDto, List<OverloadRankingDto> applicableOverloads, List<ITypeSymbol> argumentTypes);\n\n //Warning! start code duplication, more or less the same as in inNormalMode\n List<OverloadRankingDto> inSoftTypingMode(\n WorkItemDto workItemDto, List<OverloadRankingDto> applicableOverloads);\n}",
"public /* synthetic */ f(java.lang.String r16, java.lang.String r17, java.lang.String r18, com.ss.android.ugc.aweme.base.model.UrlModel r19, int r20, int r21, java.util.List r22, java.lang.String r23, java.lang.String r24, java.util.List r25, java.util.List r26, int r27, int r28, kotlin.jvm.internal.DefaultConstructorMarker r29) {\n /*\n r15 = this;\n r0 = r28\n r1 = r0 & 1\n if (r1 == 0) goto L_0x000a\n java.lang.String r1 = \"\"\n r3 = r1\n goto L_0x000c\n L_0x000a:\n r3 = r16\n L_0x000c:\n r1 = r0 & 2\n if (r1 == 0) goto L_0x0014\n java.lang.String r1 = \"\"\n r4 = r1\n goto L_0x0016\n L_0x0014:\n r4 = r17\n L_0x0016:\n r1 = r0 & 4\n if (r1 == 0) goto L_0x001e\n java.lang.String r1 = \"\"\n r5 = r1\n goto L_0x0020\n L_0x001e:\n r5 = r18\n L_0x0020:\n r1 = r0 & 64\n if (r1 == 0) goto L_0x002a\n java.util.List r1 = kotlin.collections.CollectionsKt.emptyList()\n r9 = r1\n goto L_0x002c\n L_0x002a:\n r9 = r22\n L_0x002c:\n r1 = r0 & 128(0x80, float:1.794E-43)\n if (r1 == 0) goto L_0x0034\n java.lang.String r1 = \"\"\n r10 = r1\n goto L_0x0036\n L_0x0034:\n r10 = r23\n L_0x0036:\n r1 = r0 & 256(0x100, float:3.59E-43)\n if (r1 == 0) goto L_0x003e\n java.lang.String r1 = \"\"\n r11 = r1\n goto L_0x0040\n L_0x003e:\n r11 = r24\n L_0x0040:\n r1 = r0 & 512(0x200, float:7.175E-43)\n if (r1 == 0) goto L_0x004a\n java.util.List r1 = kotlin.collections.CollectionsKt.emptyList()\n r12 = r1\n goto L_0x004c\n L_0x004a:\n r12 = r25\n L_0x004c:\n r1 = r0 & 1024(0x400, float:1.435E-42)\n if (r1 == 0) goto L_0x0056\n java.util.List r1 = kotlin.collections.CollectionsKt.emptyList()\n r13 = r1\n goto L_0x0058\n L_0x0056:\n r13 = r26\n L_0x0058:\n r0 = r0 & 2048(0x800, float:2.87E-42)\n if (r0 == 0) goto L_0x005f\n r0 = -1\n r14 = -1\n goto L_0x0061\n L_0x005f:\n r14 = r27\n L_0x0061:\n r2 = r15\n r6 = r19\n r7 = r20\n r8 = r21\n r2.<init>(r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.commerce.preview.footprint.f.<init>(java.lang.String, java.lang.String, java.lang.String, com.ss.android.ugc.aweme.base.model.UrlModel, int, int, java.util.List, java.lang.String, java.lang.String, java.util.List, java.util.List, int, int, kotlin.jvm.internal.DefaultConstructorMarker):void\");\n }",
"protected abstract Boolean applicable(Map<String, Object> parameters);",
"public void b(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5)\n/* */ {\n/* 1904 */ if ((paramInt5 < 0) || (paramInt5 >= 10)) {\n/* 1905 */ this.O.remove(Integer.valueOf(paramInt1));\n/* */ } else {\n/* 1907 */ mj localmj = (mj)this.O.get(Integer.valueOf(paramInt1));\n/* */ \n/* 1909 */ if ((localmj == null) || (localmj.b() != paramInt2) || (localmj.c() != paramInt3) || (localmj.d() != paramInt4)) {\n/* 1910 */ localmj = new mj(paramInt1, paramInt2, paramInt3, paramInt4);\n/* 1911 */ this.O.put(Integer.valueOf(paramInt1), localmj);\n/* */ }\n/* */ \n/* 1914 */ localmj.a(paramInt5);\n/* 1915 */ localmj.b(this.E);\n/* */ }\n/* */ }",
"public abstract String generate(Object... args);",
"public static MethodCallExpression call(Method method, Expression argument0, Expression argument1, Expression argument2, Expression argument3, Expression argument4) { throw Extensions.todo(); }",
"@Test\n\tpublic void testSumOverFunctionEvaluatingArguments() {\n\t\trunTest(2, false, \"sum({{(on f in Boolean -> 0..3) product({{(on X in Boolean) f(not X or X) : true }}) : true }})\", \"40\");\n\t}",
"int foo(int a, int b);",
"public int a(alq paramalq, int paramInt1, int paramInt2, fn paramfn)\r\n/* 120: */ {\r\n/* 121:137 */ int i = 0;\r\n/* 122: */ amj localamj;\r\n/* 123: */ int k;\r\n/* 124:138 */ for (int j = 0; j < this.a.length; j++)\r\n/* 125: */ {\r\n/* 126:139 */ localamj = this.a[j];\r\n/* 127:140 */ if (localamj != null) {\r\n/* 128:143 */ if ((paramalq == null) || (localamj.b() == paramalq)) {\r\n/* 129:146 */ if ((paramInt1 <= -1) || (localamj.i() == paramInt1)) {\r\n/* 130:149 */ if ((paramfn == null) || (cy.a(paramfn, localamj.o(), true)))\r\n/* 131: */ {\r\n/* 132:153 */ k = paramInt2 <= 0 ? localamj.b : Math.min(paramInt2 - i, localamj.b);\r\n/* 133:154 */ i += k;\r\n/* 134:155 */ if (paramInt2 != 0)\r\n/* 135: */ {\r\n/* 136:156 */ this.a[j].b -= k;\r\n/* 137:157 */ if (this.a[j].b == 0) {\r\n/* 138:158 */ this.a[j] = null;\r\n/* 139: */ }\r\n/* 140:160 */ if ((paramInt2 > 0) && (i >= paramInt2)) {\r\n/* 141:161 */ return i;\r\n/* 142: */ }\r\n/* 143: */ }\r\n/* 144: */ }\r\n/* 145: */ }\r\n/* 146: */ }\r\n/* 147: */ }\r\n/* 148: */ }\r\n/* 149:165 */ for (j = 0; j < this.b.length; j++)\r\n/* 150: */ {\r\n/* 151:166 */ localamj = this.b[j];\r\n/* 152:167 */ if (localamj != null) {\r\n/* 153:170 */ if ((paramalq == null) || (localamj.b() == paramalq)) {\r\n/* 154:173 */ if ((paramInt1 <= -1) || (localamj.i() == paramInt1)) {\r\n/* 155:176 */ if ((paramfn == null) || (cy.a(paramfn, localamj.o(), false)))\r\n/* 156: */ {\r\n/* 157:180 */ k = paramInt2 <= 0 ? localamj.b : Math.min(paramInt2 - i, localamj.b);\r\n/* 158:181 */ i += k;\r\n/* 159:182 */ if (paramInt2 != 0)\r\n/* 160: */ {\r\n/* 161:183 */ this.b[j].b -= k;\r\n/* 162:184 */ if (this.b[j].b == 0) {\r\n/* 163:185 */ this.b[j] = null;\r\n/* 164: */ }\r\n/* 165:187 */ if ((paramInt2 > 0) && (i >= paramInt2)) {\r\n/* 166:188 */ return i;\r\n/* 167: */ }\r\n/* 168: */ }\r\n/* 169: */ }\r\n/* 170: */ }\r\n/* 171: */ }\r\n/* 172: */ }\r\n/* 173: */ }\r\n/* 174:193 */ if (this.f != null)\r\n/* 175: */ {\r\n/* 176:194 */ if ((paramalq != null) && (this.f.b() != paramalq)) {\r\n/* 177:195 */ return i;\r\n/* 178: */ }\r\n/* 179:197 */ if ((paramInt1 > -1) && (this.f.i() != paramInt1)) {\r\n/* 180:198 */ return i;\r\n/* 181: */ }\r\n/* 182:200 */ if ((paramfn != null) && (!cy.a(paramfn, this.f.o(), false))) {\r\n/* 183:201 */ return i;\r\n/* 184: */ }\r\n/* 185:204 */ j = paramInt2 <= 0 ? this.f.b : Math.min(paramInt2 - i, this.f.b);\r\n/* 186:205 */ i += j;\r\n/* 187:206 */ if (paramInt2 != 0)\r\n/* 188: */ {\r\n/* 189:207 */ this.f.b -= j;\r\n/* 190:208 */ if (this.f.b == 0) {\r\n/* 191:209 */ this.f = null;\r\n/* 192: */ }\r\n/* 193:211 */ if ((paramInt2 > 0) && (i >= paramInt2)) {\r\n/* 194:212 */ return i;\r\n/* 195: */ }\r\n/* 196: */ }\r\n/* 197: */ }\r\n/* 198:217 */ return i;\r\n/* 199: */ }",
"public boolean a(ahb paramahb, Random paramRandom, asv paramasv)\n/* */ {\n/* 1434 */ a(paramahb, paramasv, 0, 0, 0, 4, 1, 4, ajn.bj, ajn.bj, false);\n/* */ \n/* 1436 */ a(paramahb, paramasv, 0, 2, 0, 4, 5, 4, ajn.a, ajn.a, false);\n/* */ \n/* */ \n/* 1439 */ a(paramahb, paramasv, 4, 2, 0, 4, 5, 4, ajn.bj, ajn.bj, false);\n/* 1440 */ a(paramahb, paramasv, 4, 3, 1, 4, 4, 1, ajn.bk, ajn.bk, false);\n/* 1441 */ a(paramahb, paramasv, 4, 3, 3, 4, 4, 3, ajn.bk, ajn.bk, false);\n/* */ \n/* 1443 */ a(paramahb, paramasv, 0, 2, 0, 0, 5, 0, ajn.bj, ajn.bj, false);\n/* */ \n/* 1445 */ a(paramahb, paramasv, 0, 2, 4, 3, 5, 4, ajn.bj, ajn.bj, false);\n/* 1446 */ a(paramahb, paramasv, 1, 3, 4, 1, 4, 4, ajn.bk, ajn.bj, false);\n/* 1447 */ a(paramahb, paramasv, 3, 3, 4, 3, 4, 4, ajn.bk, ajn.bj, false);\n/* */ int j;\n/* 1449 */ if (this.b) {\n/* 1450 */ i = a(2);\n/* 1451 */ j = a(3, 3);int k = b(3, 3);\n/* 1452 */ if (paramasv.b(j, i, k)) {\n/* 1453 */ this.b = false;\n/* 1454 */ a(paramahb, paramasv, paramRandom, 3, 2, 3, a, 2 + paramRandom.nextInt(4));\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 1459 */ a(paramahb, paramasv, 0, 6, 0, 4, 6, 4, ajn.bj, ajn.bj, false);\n/* */ \n/* */ \n/* 1462 */ for (int i = 0; i <= 4; i++) {\n/* 1463 */ for (j = 0; j <= 4; j++) {\n/* 1464 */ b(paramahb, ajn.bj, 0, i, -1, j, paramasv);\n/* */ }\n/* */ }\n/* */ \n/* 1468 */ return true;\n/* */ }",
"private String vmCode(ArrayList<String> accessArgs, int size, ArrayList<SystemType> signature) {\n\n if(kind == Kind.Expr) {\n // result = className(args); pc += size\n return String.format(\"%s = %s; pc += %d;\", accessArgs.get(accessArgs.size() - 1),\n call(accessArgs, size, signature), size);\n }\n\n if(kind == Kind.Bool) {\n return String.format(\"pc = %s ? %s : %s;\",\n call(accessArgs, size, signature),\n accessArgs.get(accessArgs.size() - 2), accessArgs.get(accessArgs.size() - 1));\n }\n\n // eg jumps. They know best.\n return call(accessArgs, size, signature);\n }",
"public final com.iqoption.fragment.c.a.a.j apply(kotlin.Pair<java.lang.Double, java.lang.Integer> r15) {\n /*\n r14 = this;\n r0 = \"<name for destructuring parameter 0>\";\n kotlin.jvm.internal.i.f(r15, r0);\n r0 = r15.bnj();\n r0 = (java.lang.Number) r0;\n r7 = r0.doubleValue();\n r15 = r15.bnk();\n r15 = (java.lang.Integer) r15;\n r0 = r14.dhw;\n r0 = r0.getInstrumentType();\n r0 = com.iqoption.util.j.ae(r0);\n r1 = com.iqoption.app.managers.tab.TabHelper.IM();\n r2 = \"TabHelper.instance()\";\n kotlin.jvm.internal.i.e(r1, r2);\n r1 = r1.Jd();\n r2 = r14.dhw;\n r2 = r2.getInstrumentType();\n r3 = com.iqoption.core.data.model.InstrumentType.FX_INSTRUMENT;\n r9 = 0;\n if (r2 != r3) goto L_0x0051;\n L_0x0037:\n r2 = com.iqoption.app.managers.feature.a.Il();\n r1 = r1.expInterval;\n r1 = r2.get(r1);\n r1 = (java.lang.Double) r1;\n if (r1 == 0) goto L_0x0051;\n L_0x0045:\n r1 = (java.lang.Number) r1;\n r1 = r1.doubleValue();\n r1 = com.iqoption.util.j.P(r1);\n r0[r9] = r1;\n L_0x0051:\n r1 = r0[r9];\n r0 = java.lang.Double.valueOf(r1);\n r0 = com.iqoption.util.j.r(r0);\n r10 = com.iqoption.app.helpers.a.Gs();\n r1 = r14.dhw;\n r1 = r1.getActiveId();\n r2 = r14.dhw;\n r2 = r2.getInstrumentType();\n r1 = r10.a(r1, r2);\n r2 = com.iqoption.core.microservices.f.a.a.a.bzg;\n r2 = r2.g(r1);\n r3 = com.iqoption.core.microservices.f.a.a.a.bzg;\n r1 = r3.d(r1);\n r11 = 0;\n if (r1 == 0) goto L_0x00ad;\n L_0x007e:\n if (r2 != 0) goto L_0x0081;\n L_0x0080:\n goto L_0x00ad;\n L_0x0081:\n if (r15 != 0) goto L_0x0084;\n L_0x0083:\n goto L_0x008f;\n L_0x0084:\n r3 = r15.intValue();\n if (r3 != 0) goto L_0x008f;\n L_0x008a:\n r1 = com.iqoption.util.ab.e(r2, r1);\n goto L_0x00ab;\n L_0x008f:\n r3 = com.iqoption.asset.c.a.axy;\n r4 = r14.dhw;\n r4 = r4.getPrecision();\n r5 = r1.doubleValue();\n r12 = r2.doubleValue();\n r1 = r3;\n r2 = r4;\n r3 = r5;\n r5 = r12;\n r1 = r1.a(r2, r3, r5, r7);\n r1 = java.lang.Double.valueOf(r1);\n L_0x00ab:\n r3 = r1;\n goto L_0x00ae;\n L_0x00ad:\n r3 = r11;\n L_0x00ae:\n r1 = r14.dhu;\n r2 = r14.dhw;\n r5 = r1.P(r2);\n r1 = r14.dhw;\n r1 = r1.getInstrumentType();\n r1 = r1.isOption();\n r2 = \"minInvest\";\n if (r1 == 0) goto L_0x00e8;\n L_0x00c4:\n r15 = r14.dhw;\n r15 = r15.ahR();\n if (r15 != 0) goto L_0x00cd;\n L_0x00cc:\n goto L_0x00dd;\n L_0x00cd:\n r15 = r14.dhw;\n r15 = r15.ahR();\n r15 = 100 - r15;\n r15 = java.lang.Integer.valueOf(r15);\n r11 = com.iqoption.core.util.af.i(r15);\n L_0x00dd:\n r15 = new com.iqoption.fragment.c.a.a.b;\n kotlin.jvm.internal.i.e(r0, r2);\n r15.<init>(r0, r3, r11, r5);\n r15 = (com.iqoption.fragment.c.a.a.j) r15;\n goto L_0x012e;\n L_0x00e8:\n r1 = r14.dhw;\n r1 = r1.getInstrumentType();\n r4 = r14.dhw;\n r4 = r4.getActiveId();\n r4 = java.lang.Integer.valueOf(r4);\n r1 = r10.a(r1, r4);\n if (r1 == 0) goto L_0x010b;\n L_0x00fe:\n r4 = r14.dhu;\n r1 = r1.air();\n r1 = r4.a(r1);\n if (r1 == 0) goto L_0x010b;\n L_0x010a:\n goto L_0x0112;\n L_0x010b:\n r1 = 2131886971; // 0x7f12037b float:1.9408536E38 double:1.053292113E-314;\n r1 = com.iqoption.core.d.getString(r1);\n L_0x0112:\n r6 = r1;\n kotlin.jvm.internal.i.e(r0, r2);\n if (r15 != 0) goto L_0x0119;\n L_0x0118:\n goto L_0x011f;\n L_0x0119:\n r1 = r15.intValue();\n if (r1 == 0) goto L_0x0120;\n L_0x011f:\n r9 = 1;\n L_0x0120:\n if (r9 == 0) goto L_0x0124;\n L_0x0122:\n r4 = r15;\n goto L_0x0125;\n L_0x0124:\n r4 = r11;\n L_0x0125:\n r15 = new com.iqoption.fragment.c.a.a.a;\n r1 = r15;\n r2 = r0;\n r1.<init>(r2, r3, r4, r5, r6);\n r15 = (com.iqoption.fragment.c.a.a.j) r15;\n L_0x012e:\n return r15;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.fragment.c.b.a$h.apply(kotlin.Pair):com.iqoption.fragment.c.a.a.j\");\n }",
"private static void a(c paramc, c.a parama, SparseArray<a> paramSparseArray, boolean paramBoolean1, boolean paramBoolean2) {\n \n public static void a(c paramc, SparseArray<a> paramSparseArray, boolean paramBoolean) {\n int i = paramc.b.size();\n for (byte b1 = 0; b1 < i; b1++)\n a(paramc, (c.a)paramc.b.get(b1), paramSparseArray, false, paramBoolean); \n }\n \n static void a(f paramf1, f paramf2, boolean paramBoolean1, a<String, View> parama, boolean paramBoolean2) {\n ab ab;\n if (paramBoolean1) {\n ab = paramf2.W();\n } else {\n ab = ab.W();\n } \n if (ab != null) {\n int i;\n ArrayList arrayList1 = new ArrayList();\n ArrayList arrayList2 = new ArrayList();\n byte b1 = 0;\n if (parama == null) {\n i = 0;\n } else {\n i = parama.size();\n } \n while (b1 < i) {\n arrayList2.add(parama.b(b1));\n arrayList1.add(parama.c(b1));\n b1++;\n } \n if (paramBoolean2) {\n ab.a(arrayList2, arrayList1, null);\n return;\n } \n ab.b(arrayList2, arrayList1, null);\n } \n }\n \n private static void a(l paraml, int paramInt, a parama, View paramView, a<String, String> parama1) {\n if (paraml.n.a()) {\n ViewGroup viewGroup = (ViewGroup)paraml.n.a(paramInt);\n } else {\n paraml = null;\n } \n if (paraml == null)\n return; \n f f2 = parama.a;\n f f1 = parama.d;\n s s1 = a(f1, f2);\n if (s1 == null)\n return; \n boolean bool1 = parama.b;\n boolean bool2 = parama.e;\n ArrayList arrayList2 = new ArrayList();\n ArrayList arrayList3 = new ArrayList();\n Object object3 = a(s1, f2, bool1);\n Object object2 = b(s1, f1, bool2);\n Object object4 = a(s1, paraml, paramView, parama1, parama, arrayList3, arrayList2, object3, object2);\n if (object3 == null && object4 == null && object2 == null)\n return; \n Object object1 = object2;\n object2 = a(s1, object1, f1, arrayList3, paramView);\n ArrayList arrayList1 = a(s1, object3, f2, arrayList2, paramView);\n a(arrayList1, 4);\n Object object5 = a(s1, object3, object1, object4, f2, bool1);\n if (object5 != null) {\n a(s1, object1, f1, object2);\n ArrayList arrayList = s1.a(arrayList2);\n s1.a(object5, object3, arrayList1, object1, object2, object4, arrayList2);\n s1.a(paraml, object5);\n s1.a(paraml, arrayList3, arrayList2, arrayList, parama1);\n a(arrayList1, 0);\n s1.a(object4, arrayList3, arrayList2);\n } \n }\n \n static void a(l paraml, ArrayList<c> paramArrayList1, ArrayList<Boolean> paramArrayList2, int paramInt1, int paramInt2, boolean paramBoolean) {\n if (paraml.l < 1)\n return; \n SparseArray sparseArray = new SparseArray();\n int i;\n for (i = paramInt1; i < paramInt2; i++) {\n c c1 = (c)paramArrayList1.get(i);\n if (((Boolean)paramArrayList2.get(i)).booleanValue()) {\n b(c1, sparseArray, paramBoolean);\n } else {\n a(c1, sparseArray, paramBoolean);\n } \n } \n if (sparseArray.size() != 0) {\n View view = new View(paraml.m.g());\n int j = sparseArray.size();\n for (i = 0; i < j; i++) {\n int k = sparseArray.keyAt(i);\n a a1 = a(k, paramArrayList1, paramArrayList2, paramInt1, paramInt2);\n a a2 = (a)sparseArray.valueAt(i);\n if (paramBoolean) {\n a(paraml, k, a2, view, a1);\n } else {\n b(paraml, k, a2, view, a1);\n } \n } \n } \n }\n \n private static void a(s params, ViewGroup paramViewGroup, f paramf, View paramView, ArrayList<View> paramArrayList1, Object paramObject1, ArrayList<View> paramArrayList2, Object paramObject2, ArrayList<View> paramArrayList3) { z.a(paramViewGroup, new Object(paramObject1, params, paramView, paramf, paramArrayList1, paramArrayList2, paramArrayList3, paramObject2)); }\n \n private static void a(s params, Object paramObject, f paramf, ArrayList<View> paramArrayList) {\n if (paramf != null && paramObject != null && paramf.u && paramf.K && paramf.Y) {\n paramf.i(true);\n params.b(paramObject, paramf.t(), paramArrayList);\n z.a(paramf.R, new Object(paramArrayList));\n } \n }\n \n private static void a(s params, Object paramObject1, Object paramObject2, a<String, View> parama, boolean paramBoolean, c paramc) {\n if (paramc.r != null && !paramc.r.isEmpty()) {\n ArrayList arrayList;\n if (paramBoolean) {\n arrayList = paramc.s;\n } else {\n arrayList = arrayList.r;\n } \n View view = (View)parama.get((String)arrayList.get(0));\n params.a(paramObject1, view);\n if (paramObject2 != null)\n params.a(paramObject2, view); \n } \n }\n \n private static void a(a<String, String> parama1, a<String, View> parama2) {\n for (int i = parama1.size() - 1; i >= 0; i--) {\n if (!parama2.containsKey((String)parama1.c(i)))\n parama1.d(i); \n } \n }\n \n static void a(ArrayList<View> paramArrayList, int paramInt) {\n if (paramArrayList == null)\n return; \n for (int i = paramArrayList.size() - 1; i >= 0; i--)\n ((View)paramArrayList.get(i)).setVisibility(paramInt); \n }\n \n private static void a(ArrayList<View> paramArrayList, a<String, View> parama, Collection<String> paramCollection) {\n for (int i = parama.size() - 1; i >= 0; i--) {\n View view = (View)parama.c(i);\n if (paramCollection.contains(r.k(view)))\n paramArrayList.add(view); \n } \n }\n \n private static boolean a(s params, List<Object> paramList) {\n int i = paramList.size();\n for (byte b1 = 0; b1 < i; b1++) {\n if (!params.a(paramList.get(b1)))\n return false; \n } \n return true;\n }\n \n private static a<String, View> b(s params, a<String, String> parama, Object paramObject, a parama1) {\n if (parama.isEmpty() || paramObject == null) {\n parama.clear();\n return null;\n } \n paramObject = parama1.d;\n a a1 = new a();\n params.a(a1, paramObject.t());\n ArrayList arrayList = parama1.f;\n if (parama1.e) {\n paramObject = paramObject.W();\n arrayList = arrayList.s;\n } else {\n paramObject = paramObject.X();\n arrayList = arrayList.r;\n } \n a1.a(arrayList);\n if (paramObject != null) {\n paramObject.a(arrayList, a1);\n int i;\n for (i = arrayList.size() - 1; i >= 0; i--) {\n String str = (String)arrayList.get(i);\n paramObject = (View)a1.get(str);\n if (paramObject == null) {\n parama.remove(str);\n } else if (!str.equals(r.k(paramObject))) {\n str = (String)parama.remove(str);\n parama.put(r.k(paramObject), str);\n } \n } \n } else {\n parama.a(a1.keySet());\n } \n return a1;\n }\n \n private static Object b(s params, f paramf, boolean paramBoolean) {\n Object object;\n if (paramf == null)\n return null; \n if (paramBoolean) {\n object = paramf.A();\n } else {\n object = object.B();\n } \n return params.b(object);\n }\n \n private static Object b(s params, ViewGroup paramViewGroup, View paramView, a<String, String> parama, a parama1, ArrayList<View> paramArrayList1, ArrayList<View> paramArrayList2, Object paramObject1, Object paramObject2) {\n f f1 = parama1.a;\n f f2 = parama1.d;\n if (f1 != null) {\n Object object;\n if (f2 == null)\n return null; \n boolean bool = parama1.b;\n if (parama.isEmpty()) {\n object = null;\n } else {\n object = a(params, f1, f2, bool);\n } \n a a1 = b(params, parama, object, parama1);\n if (parama.isEmpty()) {\n object = null;\n } else {\n paramArrayList1.addAll(a1.values());\n } \n if (paramObject1 == null && paramObject2 == null && object == null)\n return null; \n a(f1, f2, bool, a1, true);\n if (object != null) {\n Rect rect = new Rect();\n params.a(object, paramView, paramArrayList1);\n a(params, object, paramObject2, a1, parama1.e, parama1.f);\n paramObject2 = rect;\n if (paramObject1 != null) {\n params.a(paramObject1, rect);\n paramObject2 = rect;\n } \n } else {\n paramObject2 = null;\n } \n z.a(paramViewGroup, new Object(params, parama, object, parama1, paramArrayList2, paramView, f1, f2, bool, paramArrayList1, paramObject1, paramObject2));\n return object;\n } \n return null;\n }\n \n public static void b(c paramc, SparseArray<a> paramSparseArray, boolean paramBoolean) {\n if (!paramc.a.n.a())\n return; \n for (int i = paramc.b.size() - 1; i >= 0; i--)\n a(paramc, (c.a)paramc.b.get(i), paramSparseArray, true, paramBoolean); \n }\n \n private static void b(l paraml, int paramInt, a parama, View paramView, a<String, String> parama1) {\n if (paraml.n.a()) {\n ViewGroup viewGroup = (ViewGroup)paraml.n.a(paramInt);\n } else {\n paraml = null;\n } \n if (paraml == null)\n return; \n f f1 = parama.a;\n f f2 = parama.d;\n s s1 = a(f2, f1);\n if (s1 == null)\n return; \n boolean bool1 = parama.b;\n boolean bool2 = parama.e;\n Object object3 = a(s1, f1, bool1);\n Object object2 = b(s1, f2, bool2);\n ArrayList arrayList3 = new ArrayList();\n ArrayList arrayList1 = new ArrayList();\n Object object4 = b(s1, paraml, paramView, parama1, parama, arrayList3, arrayList1, object3, object2);\n if (object3 == null && object4 == null && object2 == null)\n return; \n ArrayList arrayList2 = a(s1, object2, f2, arrayList3, paramView);\n if (arrayList2 == null || arrayList2.isEmpty())\n object2 = null; \n s1.b(object3, paramView);\n Object object1 = a(s1, object3, object2, object4, f1, parama.b);\n if (object1 != null) {\n arrayList3 = new ArrayList();\n s1.a(object1, object3, arrayList3, object2, arrayList2, object4, arrayList1);\n a(s1, paraml, f1, paramView, arrayList1, object3, arrayList3, object2, arrayList2);\n s1.a(paraml, arrayList1, parama1);\n s1.a(paraml, object1);\n s1.a(paraml, arrayList1, parama1);\n } \n }\n}",
"void method_114(int var1, int var2);",
"protected abstract boolean a(axz paramaxz, long paramLong, int paramInt1, int paramInt2, double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4, double paramDouble5, BitSet paramBitSet);",
"public Rule call()\n \t{\n \t\treturn sequence(id(),\n \t\t\t\tfirstOf(\n \t\t\t\tsequence(enforcedSequence(PAR_L, optional(args()), PAR_R), optional(closure())), //params & opt. closure\n \t\t\t\tclosure())); // closure only\n \t}",
"public abstract void generateForce(String args[]);",
"@Override\n\tpublic void javaMethodBaseWithTwoParams(long longParam, double doubleParam) {\n\t\t\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tMethodOverloading m = new MethodOverloading();\r\n\t\tm.sum();\r\n\t\tm.sum(15, 15);\r\n\t\t\r\n\t}",
"public class_1036 method_2126(class_689 param1, double param2, double param4, double param6, float param8, boolean param9, boolean param10) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public abstract boolean a(e parame, b paramb, int paramInt1, int paramInt2);",
"public void a(alq paramalq, int paramInt, boolean paramBoolean1, boolean paramBoolean2)\r\n/* 70: */ {\r\n/* 71: 88 */ amj localamj = h();\r\n/* 72: 89 */ int i = paramBoolean1 ? a(paramalq, paramInt) : c(paramalq);\r\n/* 73: 90 */ if ((i >= 0) && (i < 9))\r\n/* 74: */ {\r\n/* 75: 91 */ this.c = i;\r\n/* 76: 92 */ return;\r\n/* 77: */ }\r\n/* 78: 95 */ if ((!paramBoolean2) || (paramalq == null)) {\r\n/* 79: 96 */ return;\r\n/* 80: */ }\r\n/* 81: 99 */ int j = j();\r\n/* 82:100 */ if ((j >= 0) && (j < 9)) {\r\n/* 83:101 */ this.c = j;\r\n/* 84: */ }\r\n/* 85:105 */ if ((localamj == null) || (!localamj.v()) || (a(localamj.b(), localamj.h()) != this.c))\r\n/* 86: */ {\r\n/* 87:106 */ int k = a(paramalq, paramInt);\r\n/* 88: */ int m;\r\n/* 89:108 */ if (k >= 0)\r\n/* 90: */ {\r\n/* 91:109 */ m = this.a[k].b;\r\n/* 92:110 */ this.a[k] = this.a[this.c];\r\n/* 93: */ }\r\n/* 94: */ else\r\n/* 95: */ {\r\n/* 96:112 */ m = 1;\r\n/* 97: */ }\r\n/* 98:114 */ this.a[this.c] = new amj(paramalq, m, paramInt);\r\n/* 99: */ }\r\n/* 100: */ }",
"public static void main(String[] args) {\n\t\tint[] arr = {1,4,5,6,7,8,100,200,300,400,500,1000,2000,3000,4000,5000,6000,7000,8000};\n\t\tint target = 1;\n\t\tSystem.out.println(helper(arr, target));\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tCompleOverloadDemo1 obj = new CompleOverloadDemo1();\r\n\t\t\r\n\t\tobj.add(1, 3); \t\t\t\t\t\t\t\t\t\t//Calling first function with 2 parameters\r\n\t\tobj.add(3.2, 3);\t\t\t\t\t\t\t\t\t//Calling second function with 2 different type of parameters\r\n\t\tobj.add(2, 3, 1);\t\t\t\t\t\t\t\t\t//Calling third function with 3 parameters\r\n\t\tobj.add(3, 3.4);\t\t\t\t\t\t\t\t\t//Calling Forth function with 2 different type of parameters in different order\r\n\r\n\t}",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"abstract Function get(Object arg);",
"public static void main(String[] args) {\n\t\tMethodOverloading7.add(1, 2, 3);\n\t\tMethodOverloading7.add(1, 2l, 3l);\n\t\tMethodOverloading7.add(1, 2, 3l);\n\t}",
"@Test public void dynFuncCall() {\n check(\"let $sum :=\" +\n \" function($seq) {\" +\n \" let $go :=\" +\n \" function($seq, $acc, $go) {\" +\n \" if(empty($seq)) then $acc\" +\n \" else $go(tail($seq), $acc + head($seq), $go)\" +\n \" }\" +\n \" return $go($seq, 0, $go)\" +\n \" }\" +\n \"return $sum(1 to 100000)\",\n\n 5000050000L,\n\n empty(Util.className(FuncItem.class) + \"//\" + Util.className(DynFuncCall.class) +\n \"[@tailCall eq 'false']\")\n );\n }",
"WasmCallInstruction( FunctionName name, int javaCodePos, int lineNumber, @Nonnull TypeManager types, boolean needThisParameter ) {\n this( name, javaCodePos, lineNumber, types, needThisParameter, null );\n }",
"public abstract long a(long j2, long j3);",
"public static MethodCallExpression call(Method method, Expression argument0, Expression argument1, Expression argument2, Expression argument3) { throw Extensions.todo(); }",
"public abstract int compute(int i1, int i2);",
"boolean method_103(int var1, int var2);",
"public interface BasicOperator {\n public double compute(double... args);\n}",
"class_1034 method_112(ahb var1, String var2, int var3, int var4, int var5);",
"public void b(fn paramfn)\r\n/* 241: */ {\r\n/* 242:254 */ paramfn.a(\"xTile\", (short)this.c);\r\n/* 243:255 */ paramfn.a(\"yTile\", (short)this.d);\r\n/* 244:256 */ paramfn.a(\"zTile\", (short)this.e);\r\n/* 245:257 */ oa localoa = (oa)atr.c.c(this.f);\r\n/* 246:258 */ paramfn.a(\"inTile\", localoa == null ? \"\" : localoa.toString());\r\n/* 247:259 */ paramfn.a(\"shake\", (byte)this.b);\r\n/* 248:260 */ paramfn.a(\"inGround\", (byte)(this.a ? 1 : 0));\r\n/* 249:262 */ if (((this.h == null) || (this.h.length() == 0)) && ((this.g instanceof ahd))) {\r\n/* 250:263 */ this.h = this.g.d_();\r\n/* 251: */ }\r\n/* 252:265 */ paramfn.a(\"ownerName\", this.h == null ? \"\" : this.h);\r\n/* 253: */ }",
"private static int benchmarkedMethod() {\n return 3;\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"private void createOptimizationFunction() {\n \t\tobjective = \"min:\"; //$NON-NLS-1$\n \t\tSet s = slice.entrySet();\n \t\tfor (Iterator iterator = s.iterator(); iterator.hasNext();) {\n \t\t\tMap.Entry entry = (Map.Entry) iterator.next();\n \t\t\tHashMap conflictingEntries = (HashMap) entry.getValue();\n \t\t\tif (conflictingEntries.size() <= 1) {\n \t\t\t\tobjective += \" 1 \" + getVariable((IInstallableUnit) conflictingEntries.values().iterator().next()); //$NON-NLS-1$\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tList toSort = new ArrayList(conflictingEntries.values());\n \t\t\tCollections.sort(toSort);\n \t\t\tint weight = toSort.size();\n \t\t\tfor (Iterator iterator2 = toSort.iterator(); iterator2.hasNext();) {\n \t\t\t\tobjective += \" \" + weight-- + \" \" + getVariable((IInstallableUnit) iterator2.next()); //$NON-NLS-1$//$NON-NLS-2$\n \t\t\t}\n \t\t}\n \t\tobjective += \" ;\"; //$NON-NLS-1$\n \t}",
"public ars(arr paramarr, int paramInt1, int paramInt2)\r\n/* 10: */ {\r\n/* 11:25 */ this.c = paramInt1;\r\n/* 12:26 */ this.d = paramInt2;\r\n/* 13:27 */ arr.a(paramarr).a(this.a, paramInt1 << 4, paramInt2 << 4, 16, 16);\r\n/* 14:28 */ arr.a(paramarr).a(this.b, paramInt1 << 4, paramInt2 << 4, 16, 16, false);\r\n/* 15: */ }",
"protected void a(int paramInt1, int paramInt2, boolean paramBoolean, EntityPlayer paramahd) {}",
"public static boolean betterFuncMatch(final FuncInfo P, final FuncInfo Q,\n final FuncInfo callSig, final Object[] args) {\n Debug.Assert((args == null) || (args.length == callSig.numArgs()));\n Debug.Assert(callSig.numArgs() >= P.numRequiredArgs());\n Debug.Assert(callSig.numArgs() >= Q.numRequiredArgs());\n Debug.Assert(callSig.numArgs() <= P.numArgs());\n Debug.Assert(callSig.numArgs() <= Q.numArgs());\n\n boolean atLeastOneArgPbetterQ = false;\n\n for (int a = 0; a < callSig.numArgs(); a++) {\n\n final TypeSpec fromArgType = callSig.getParamTypes()[a];\n final Value fromArg = (args != null) ? new Value(args[a]) : null;\n final TypeSpec argPType = P.getParamTypes()[a];\n final TypeSpec argQType = Q.getParamTypes()[a];\n\n final int c = betterConversion(fromArgType, argPType, argQType,\n fromArg);\n\n final boolean PbetterQ = (c > 0);\n final boolean PworseQ = (c < 0);\n if (PworseQ) {\n return false;\n }\n if (PbetterQ) {\n atLeastOneArgPbetterQ = true;\n }\n\n }\n\n return atLeastOneArgPbetterQ;\n }",
"protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke paramMethodToInvoke, Object paramObject1, Object paramObject2) {\n }",
"protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke paramMethodToInvoke, Object paramObject1, Object paramObject2) {\n }",
"public void a(List<cvm> paramList)\r\n/* 73: */ {\r\n/* 74: 79 */ b();\r\n/* 75: */ \r\n/* 76: 81 */ a.info(\"Reloading ResourceManager: \" + b.join(Iterables.transform(paramList, new cvu(this))));\r\n/* 77: 88 */ for (cvm localcvm : paramList) {\r\n/* 78: 89 */ a(localcvm);\r\n/* 79: */ }\r\n/* 80: 92 */ c();\r\n/* 81: */ }",
"@Override\n public String getCustomFunctionInvocation(String functionName, int argumentCount) {\n if (argumentCount == 0) {\n return \"OPERATOR('\" + functionName + \"',''\";\n }\n\n return \"OPERATOR('\" + functionName + \"',\";\n }",
"public void a(cvk paramcvk)\r\n/* 76: */ {\r\n/* 77: 95 */ c();\r\n/* 78: */ }",
"public R visit(Call n) {\n R _ret=null;\n // System.out.println(\"checking1\");\n n.f0.accept(this);\n simple_exp=0;\n String s1 = (String)n.f1.accept(this);\n simple_exp=0;\n n.f2.accept(this);\n coming_from_param=1;\n //System.out.println(s1);\n String s3 = (String)n.f3.accept(this);\n int temp = new_temp++;\n \n String [] tokens = params.split(\" \");\n\n \n //System.out.println(\"checking \"+params);\n \n int i=0;\n while(i<tokens.length)\n {\n\t if(!tokens[i].equals(\"TEMP\"))\n\t {\n\t \t int temp1 = new_temp++;\n\t \t System.out.println(\"MOVE TEMP \"+temp1+\" \"+tokens[i] +\" \");\n\t \t tokens[i]=\"TEMP \"+temp1;\n\t \t i++;\n\t }\n\t else\n\t i=i+2;\n }\n params = \"\";\n for(i=0;i<tokens.length;i++)\n \t params = params+tokens[i]+\" \"; \n \n \n System.out.println(\"MOVE TEMP \"+temp+\" CALL \"+s1+ \" ( \"+params+\" ) \");\n n.f4.accept(this);\n coming_from_param=0;\n return (R)(\"TEMP \"+temp);\n }",
"@Override\r\n\tpublic ImproveResult preImprove(FGFusionContext arg0, String arg1, OpsComplexus arg2, RecordComplexus arg3) {\n\t\treturn null;\r\n\t}",
"@NeverInline\n public void foo(Object obj, int argumentUnused) {\n B.foo(obj);\n }",
"public void a(float paramFloat)\r\n/* 498: */ {\r\n/* 499:508 */ paramFloat /= 4.0F;\r\n/* 500:509 */ if (paramFloat < 1.0F) {\r\n/* 501:510 */ paramFloat = 1.0F;\r\n/* 502: */ }\r\n/* 503:512 */ for (int i = 0; i < this.b.length; i++) {\r\n/* 504:513 */ if ((this.b[i] != null) && ((this.b[i].b() instanceof ajn)))\r\n/* 505: */ {\r\n/* 506:514 */ this.b[i].a((int)paramFloat, this.d);\r\n/* 507:515 */ if (this.b[i].b == 0) {\r\n/* 508:516 */ this.b[i] = null;\r\n/* 509: */ }\r\n/* 510: */ }\r\n/* 511: */ }\r\n/* 512: */ }",
"public bcm a(World paramaqu, int paramInt)\r\n/* 17: */ {\r\n/* 18: 37 */ return null;\r\n/* 19: */ }",
"private static Object invoke(CompileResult compileResult, BIRNode.BIRFunction function, String functionName,\n Object[] args, Class<?>[] paramTypes) {\n assert args.length == paramTypes.length;\n\n Object[] jvmArgs = populateJvmArgumentArrays(args);\n\n Object jvmResult;\n PackageManifest packageManifest = compileResult.packageManifest();\n String funcClassName = JarResolver.getQualifiedClassName(packageManifest.org().toString(),\n packageManifest.name().toString(),\n packageManifest.version().toString(),\n getClassName(function.pos.lineRange().fileName()));\n\n try {\n Class<?> funcClass = compileResult.getClassLoader().loadClass(funcClassName);\n Method method = getMethod(functionName, funcClass);\n Function<Object[], Object> func = a -> {\n try {\n return method.invoke(null, a);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(\"Error while invoking function '\" + functionName + \"'\", e);\n } catch (InvocationTargetException e) {\n Throwable t = e.getTargetException();\n if (t instanceof BLangTestException) {\n throw ErrorCreator.createError(StringUtils.fromString(t.getMessage()));\n }\n if (t instanceof io.ballerina.runtime.api.values.BError) {\n throw ErrorCreator.createError(StringUtils.fromString(\n \"error: \" + ((io.ballerina.runtime.api.values.BError) t).getPrintableStackTrace()));\n }\n if (t instanceof StackOverflowError) {\n throw ErrorCreator.createError(StringUtils.fromString(\"error: \" +\n \"{ballerina}StackOverflow {\\\"message\\\":\\\"stack overflow\\\"}\"));\n }\n throw ErrorCreator.createError(StringUtils.fromString(\"Error while invoking function '\" +\n functionName + \"'\"), e);\n }\n };\n\n Scheduler scheduler = new Scheduler(false);\n FutureValue futureValue = scheduler.schedule(jvmArgs, func, null, null, new HashMap<>(),\n PredefinedTypes.TYPE_ANY, \"test\",\n new StrandMetadata(ANON_ORG, DOT, DEFAULT_MAJOR_VERSION.value, functionName));\n scheduler.start();\n if (futureValue.panic instanceof RuntimeException) {\n throw new BLangTestException(futureValue.panic.getMessage(),\n futureValue.panic);\n }\n jvmResult = futureValue.result;\n } catch (ClassNotFoundException | NoSuchMethodException e) {\n throw new RuntimeException(\"Error while invoking function '\" + functionName + \"'\", e);\n }\n\n return jvmResult;\n }",
"@Override\n\tpublic void setOptimizeGet(boolean arg0) {\n\n\t}",
"abstract public void execute(FunctionContext context) throws Exception;",
"ParameterizedWithThisOp(int a , double d, char c, String str )\n {\n this.a = a;\n this.d = d;\n this.c = c;\n this.str = str;\n }"
] | [
"0.5894024",
"0.58564913",
"0.5807681",
"0.57815963",
"0.57625616",
"0.5740794",
"0.57020754",
"0.55254716",
"0.5485548",
"0.54076445",
"0.5375442",
"0.53492117",
"0.53470826",
"0.530828",
"0.5274477",
"0.5256128",
"0.5251995",
"0.51956636",
"0.5181616",
"0.51312804",
"0.51196265",
"0.51057583",
"0.51000714",
"0.51000714",
"0.50902766",
"0.50684536",
"0.5062111",
"0.5045725",
"0.5044347",
"0.50416917",
"0.5041373",
"0.5018312",
"0.50056547",
"0.5002543",
"0.49800962",
"0.4977167",
"0.49759367",
"0.49735644",
"0.49609056",
"0.49584335",
"0.4956627",
"0.49521556",
"0.49450502",
"0.49430445",
"0.4938611",
"0.49285677",
"0.49277744",
"0.4924261",
"0.48949543",
"0.48922503",
"0.48852968",
"0.48839724",
"0.48705256",
"0.48638567",
"0.48630077",
"0.48586425",
"0.48316735",
"0.48309118",
"0.48197743",
"0.48194572",
"0.48079297",
"0.48070693",
"0.48068634",
"0.4800668",
"0.4798634",
"0.4790058",
"0.47695157",
"0.47650993",
"0.4760834",
"0.47581092",
"0.47573256",
"0.47548524",
"0.4751064",
"0.47507995",
"0.47416702",
"0.47414395",
"0.47289798",
"0.4728253",
"0.47230464",
"0.47216618",
"0.47185448",
"0.4711879",
"0.47080833",
"0.4707067",
"0.470133",
"0.46998534",
"0.4698847",
"0.46881372",
"0.46881372",
"0.46871015",
"0.46869487",
"0.46831322",
"0.46814665",
"0.468134",
"0.4679237",
"0.46776208",
"0.46717143",
"0.46715355",
"0.46648374",
"0.46637723",
"0.46604759"
] | 0.0 | -1 |
Get the translation map built at compile time if there is one | public IntToIntMap getStaticMap() {
return staticMap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, Constant> getConstantMap();",
"@InterfaceAudience.Public\n Mapper compileMap(String source, String language);",
"Map<String, Defines> getDefinesMap();",
"private void genLoadMapCode(String name, String keyClassSimpleName, String valueClassSimpleName, boolean valueIsPersistable) {\n\n int tabLevel = 1;\n String tabs = tabs(tabLevel);\n\n String keyCppType = cppType(keyClassSimpleName);\n String valueCppType = cppType(valueClassSimpleName);\n\n String mapType = \"std::map< \" + keyCppType + \", \" + valueCppType + \" >\";\n\n load.println(\"\\t// \" + mapType + \" this->\" + name);\n genDebug(load, \"\\tstd::cout << \\\"load \" + mapType + \" \" + name + \"\\\" << std::endl;\");\n\n String vVarName = \"v\" + \"_\" + name;\n String lenVarName = vVarName + \"_length\";\n\n // read the length of the map\n load.println(tabs + \"int \" + lenVarName + \";\");\n\n load.println();\n load.println(tabs + INSTREAM_VAR_NAME + \".readInt(\" + lenVarName + \");\");\n\n genDebugDumpValue(load, lenVarName, tabs);\n\n load.println(tabs + mapType + \"& \" + vVarName + \" = this->\" + name + \";\");\n\n // initialize & pre-allocate the map\n // load.println( tabs + vVarName + \".reserve( \" + lenVarName + \" );\");\n\n load.println();\n load.println(tabs + \"for( int i = 0; i < \" + lenVarName + \"; i++ ){\");\n\n tabs = tabs(++tabLevel);\n\n // load key\n String keyVarName = vVarName + \"_key\";\n load.println(tabs + keyCppType + \" \" + keyVarName + \";\");\n load.println(tabs + genReadCode(keyVarName, keyCppType));\n\n // load value\n String valueVarName = vVarName + \"_value\";\n load.println(tabs + valueCppType + \" \" + valueVarName + \";\");\n\n if (valueIsPersistable) {\n load.println(tabs + valueVarName + \".load( \" + INSTREAM_VAR_NAME + \" );\");\n } else {\n load.println(tabs + genReadCode(valueVarName, valueCppType));\n }\n\n // add the new pair to the map\n load.println(tabs + vVarName + \".insert( std::make_pair( \" + keyVarName + \", \" + valueVarName + \" ));\");\n\n tabs = tabs(--tabLevel);\n load.println(tabs + \"}\");\n }",
"public Map<Locale, T> getAvailableLocalesAndTranslatables() {\n Map<Locale, T> returnMap = new HashMap<Locale, T>();\n List<T> items = (List<T>) MongoEntity.getDs().find(this.getClass(), \"reference\", this.reference).asList();\n\n if (items != null && !items.isEmpty()) {\n for (T item : items) {\n returnMap.put(item.language, item);\n }\n }\n return returnMap;\n }",
"public Map<String, String> findTranslationMap(String mapName)\n {\n if (mapName.startsWith(\"pattern_map:\"))\n mapName = mapName.substring(\"pattern_map:\".length());\n\n if (transMapMap.containsKey(mapName))\n return (transMapMap.get(mapName));\n\n return null;\n }",
"public FlatMapDTO handleTranslation() {\n return translations;\n }",
"public String loadTranslationMap(String translationMapSpec)\n {\n return(this.loadTranslationMap(null, translationMapSpec));\n }",
"public Map<String,String> getCompilerDefine(Configuration config)\n {\n \tMap<String,String> list = config.getCompilerDefine();\n return list;\n }",
"protected Map initDefaultLookupMap(HttpServletRequest request) {\r\n\t\tMap lookupMap = new HashMap();\r\n\t\tthis.keyMethodMap = this.getKeyMethodMap();\r\n\r\n\t\tModuleConfig moduleConfig = (ModuleConfig) request\r\n\t\t\t\t.getAttribute(Globals.MODULE_KEY);\r\n\r\n\t\tMessageResourcesConfig[] mrc = moduleConfig\r\n\t\t\t\t.findMessageResourcesConfigs();\r\n\r\n\t\t// Look through all module's MessageResources\r\n\t\tfor (int i = 0; i < mrc.length; i++) {\r\n\t\t\tMessageResources resources = this.getResources(request, mrc[i]\r\n\t\t\t\t\t.getKey());\r\n\r\n\t\t\t// Look for key in MessageResources\r\n\t\t\tIterator iter = this.keyMethodMap.keySet().iterator();\r\n\t\t\twhile (iter.hasNext()) {\r\n\t\t\t\tString key = (String) iter.next();\r\n\t\t\t\tString text = resources.getMessage(Locale.ENGLISH, key);\r\n\r\n\t\t\t\t// Found key and haven't added to Map yet, so add the text\r\n\t\t\t\tif ((text != null) && !lookupMap.containsKey(text)) {\r\n\t\t\t\t\tlookupMap.put(text, key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn lookupMap;\r\n\t}",
"protected String loadTranslationMap(Properties indexProps, String translationMapSpec)\n {\n if (translationMapSpec.length() == 0)\n return null;\n\n String mapName = null;\n String mapKeyPrefix = null;\n if (translationMapSpec.startsWith(\"(\")\n && translationMapSpec.endsWith(\")\"))\n {\n // translation map entries are in passed Properties object\n mapName = translationMapSpec.replaceAll(\"[\\\\(\\\\)]\", \"\");\n mapKeyPrefix = mapName;\n loadTranslationMapValues(indexProps, mapName, mapKeyPrefix);\n }\n else\n {\n // translation map is a separate file\n String transMapFname = null;\n if (translationMapSpec.contains(\"(\")\n && translationMapSpec.endsWith(\")\"))\n {\n String mapSpec[] = translationMapSpec.split(\"(//s|[()])+\");\n transMapFname = mapSpec[0];\n mapName = mapSpec[1];\n mapKeyPrefix = mapName;\n }\n else\n {\n transMapFname = translationMapSpec;\n mapName = translationMapSpec.replaceAll(\".properties\", \"\");\n mapKeyPrefix = \"\";\n }\n\n if (findTranslationMap(mapName) == null)\n loadTranslationMapValues(transMapFname, mapName, mapKeyPrefix);\n }\n\n return mapName;\n }",
"public MapAssembly getMap() {\n return map;\n }",
"public EnumMap<?, SerializableString> internalMap()\n/* */ {\n/* 100 */ EnumMap<?, SerializableString> result = this._asMap;\n/* 101 */ if (result == null)\n/* */ {\n/* 103 */ Map<Enum<?>, SerializableString> map = new LinkedHashMap();\n/* 104 */ for (Enum<?> en : this._values) {\n/* 105 */ map.put(en, this._textual[en.ordinal()]);\n/* */ }\n/* 107 */ result = new EnumMap(map);\n/* */ }\n/* 109 */ return result;\n/* */ }",
"private void loadTranslationMapValues(String transMapName, String mapName, String mapKeyPrefix)\n {\n Properties props = null;\n props = PropertiesUtils.loadProperties(propertyFilePaths, transMapName);\n logger.debug(\"Loading Custom Map: \" + transMapName);\n loadTranslationMapValues(props, mapName, mapKeyPrefix);\n }",
"public Map<String, I18nizableText> getVariablesDescriptions();",
"private TypeMapper getTypeMapper() {\n\t\tif (JjsUtils.closureStyleLiteralsNeeded(this.options)) {\n\t\t\treturn new ClosureUniqueIdTypeMapper(jprogram);\n\t\t}\n\t\tif (this.options.useDetailedTypeIds()) {\n\t\t\treturn new StringTypeMapper(jprogram);\n\t\t}\n\t\treturn this.options.isIncrementalCompileEnabled()\n\t\t\t\t? compilerContext.getMinimalRebuildCache().getTypeMapper()\n\t\t\t\t: new IntTypeMapper();\n\t}",
"private VariableMap getParamMappingAsVariableMap() {\n paramValueEncodings.put(fileNameToIndex.keySet().toString(), \" FileNames\");\n paramValueEncodings.put(functionNameToIndex.keySet().toString(), \" FunctionNames\");\n paramValueEncodings.put(typeToIndex.keySet().toString(), \" Types\");\n\n VariableMap preInversedMap = new VariableMap(paramValueEncodings);\n ImmutableMap<String, String> inversedMap = preInversedMap.getNewNameToOriginalNameMap();\n return new VariableMap(inversedMap);\n }",
"boolean hasMappings() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: android.icu.impl.coll.CollationDataBuilder.hasMappings():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.hasMappings():boolean\");\n }",
"String build(final YandexMap yandexMap);",
"@SuppressWarnings(\"unchecked\")\n\tpublic void translate(){\n\t\tnodeSigs();\n\t\tedgeSigs();\n\t\tpre_source_valid();\n\t\tList<Object> constraints = new ArrayList<Object>();\n\t\tconstraints.addAll(hash.keySet());\n\t\tfor (int i = 0; i < constraints.size() ; i++) {\n\t\t\tfor (int j = i + 1; j < constraints.size() ; j++) {\n\t\t\t\tObject iter = constraints.get(i), iter1 = constraints.get(j);\n\t\t\t\tObject[] overlap = findOverlap(iter, iter1);\n\t\t\t\tif(overlap == null) continue;\n\t\t\t\talloycommands.add(new Object[]{iter, iter1});\n\t\t\t\tbuffer.append(\"run{(\" + hash.get(iter) + \"[] and not \" + hash.get(iter1) + \"[]) or (not \" + hash.get(iter) + \"[] and \" + hash.get(iter1) + \"[])} for 0 but \");\n\t\t\t\tList<Node> nodes = (List<Node>) overlap[0];\n\t\t\t\tList<Arrow> edges = (List<Arrow>) overlap[1];\n\t\t\t\tList<String> strings = new ArrayList<String>();\n\t\t\t\tfor(Node in : nodes){\n\t\t\t\t\tstrings.add(nodeSig(in));\n\t\t\t\t}\n\t\t\t\tfor(Arrow ie : edges){\n\t\t\t\t\tstrings.add(edgeSig(ie));\n\t\t\t\t}\n\t\t\t\tbuffer.append(\"5 \" + strings.get(0));\n\t\t\t\tfor (int k = 1; k < strings.size(); k++) {\n\t\t\t\t\tbuffer.append(\", 5 \" + strings.get(k));\n\t\t\t\t}\n\t\t\t\tbuffer.append(LINE);\n\t\t\t}\n\t\t}\n//\t\tif(check == null)\n//\t\t\tbuffer.append(\"run {}\");\n//\t\telse\n//\t\t\ttranslate(check, \"check\");\n//\t\tbuffer.append(\" for 5\");\n\t\t\t\n\t}",
"private BuildTranslations () {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"private static List<String> getJavasSourceCodeFiels(Map<String,Object> map){\r\n \t\t\r\n \t\t\r\n \t\tSystem.out.println(\"............\");\r\n \t\tLinkedList<String> list = new LinkedList<String>();\r\n \t\tfor(String key : map.keySet()){\r\n \t\t\tObject o = map.get(key);\r\n \r\n \t\t\t//package...\r\n \t\t\tif(o instanceof IPackageFragment){\r\n \t\t\t\t//System.out.println(\"Package --> \" + key);\r\n \t\t\t\tkey = key.substring(0,key.indexOf('[')).trim();\r\n \t\t\t\tkey = PACKAGE + \"(\" + key + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t\t//class...\r\n \t\t\tif(o instanceof ICompilationUnit){\r\n \t\t\t\t//System.out.println(\"Class --> \" + key);\r\n \t\t\t\tString classname = key.substring(0,key.indexOf('[')).trim();\r\n \t\t\t\tString packagename = key.substring(key.indexOf(PACKAGE),key.indexOf('\\n',key.indexOf(PACKAGE)));\r\n \t\t\t\tkey = CLASS_WITH_MEMBERS + \"(\" + packagename + \",\" + classname + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}//method\r\n \t\t\tif(o instanceof IMethod){\r\n \t\t\t\tSystem.out.println(\"Methode --> \" + key);\r\n \t\t\t\tkey = METHOD + \"(\" + getQueryFromMethod((IMethod)o) + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(o instanceof IField){\r\n \t\t\t\tSystem.out.println(\"Attribut --> \" + key);\r\n \t\t\t\tkey = FIELD + \"(\" + getQueryFromField((IField)o) + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn list;\r\n \t\t\r\n \t\t\r\n \t\t/*\r\n \t\tfor(String key : map.keySet()){\r\n \t\t\tObject o = map.get(key);\r\n \t\t\t//if(o instanceof ISourceAttribute)\r\n \t\t\t\t//System.out.println(\"attribute\");\r\n \t\t\t//if(o instanceof ISourceMethod)\r\n \t\t\t\t//System.out.println(\"methode\");\r\n \t\t\tif(o instanceof IPackageFragment) \r\n \t\t\t\tSystem.out.println(\"Package\");\r\n \t\t\tif(o instanceof ICompilationUnit)\r\n \t\t\t\tSystem.out.println(\"sour code file\");\r\n \t\t\t\t\r\n \t\t\t//\"oldquery or class('voller packagename', klassenname)\"\r\n \t\t\t\t\r\n \t\t\t\t\r\n \t\t\tif(o instanceof IField)\r\n \t\t\t\tSystem.out.println(\"Attribut\");\r\n \t\t\tif(o instanceof IType)\r\n \t\t\t\tSystem.out.println(\"classe also class ... in einem file\");\r\n \t\t\tif(o instanceof IMethod)\r\n \t\t\t\tSystem.out.println(\"Methode\");\r\n \t\t\tif(o instanceof IPackageFragmentRoot) \r\n \t\t\t\tSystem.out.println(\"jar package / src Ordner\");\r\n \t\t\tif(o instanceof IProject)\r\n \t\t\t\tSystem.out.println(\"Projekt Ordner\");\r\n \t\t\tif(o instanceof IClassFile)\r\n \t\t\t\tSystem.out.println(\"ClassFile\");\r\n \t\t\tif(o instanceof IAdaptable) //trieft auch auf viele ander sachen zu\r\n \t\t\t\tSystem.out.println(\"Libaraycontainer\");\r\n \t\t\tif(o instanceof IFile)\r\n \t\t\t\tSystem.out.println(\"file\"); //je nach ausgewlter ansicht knnen file auch *.java datein sein\r\n \t\t\tif(o instanceof IFolder)\r\n \t\t\t\tSystem.out.println(\"folder\");\r\n \t\t\tSystem.out.println(o.getClass());\r\n \t\t\t\r\n \t\r\n \t\t}\r\n \t\treturn null;\r\n \t\t*/\r\n \t}",
"private void fillEntryLangMap(String p_termbaseId) throws Exception\n {\n Connection c = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n try\n {\n c = ConnectionPool.getConnection();\n ps = c.prepareStatement(TERM_ENTRY_LANG_QUERY);\n ps.setLong(1, Long.valueOf(p_termbaseId).longValue());\n rs = ps.executeQuery();\n m_map = new TreeMap();\n while (rs.next())\n {\n Long cid = new Long(rs.getLong(1));\n String name = rs.getString(2);\n HashSet set = (HashSet) m_map.get(cid);\n if (set == null)\n {\n set = new HashSet();\n m_map.put(cid, set);\n }\n set.add(name);\n }\n }\n finally\n {\n ConnectionPool.silentClose(rs);\n ConnectionPool.silentClose(ps);\n ConnectionPool.silentReturnConnection(c);\n }\n }",
"String getMapCode();",
"protected void buildMappings(android.icu.impl.coll.CollationData r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.icu.impl.coll.CollationDataBuilder.buildMappings(android.icu.impl.coll.CollationData):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.buildMappings(android.icu.impl.coll.CollationData):void\");\n }",
"private void initMessages() {\n\t\tthis.languagesMessagesMap = new HashMap<String, Map<String, String>>();\n\n\t\tBufferedReader reader = null;\n\t\treader = initMessagesReader(reader);\n\t\tif (reader == null) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tList<Map<String, String>> languagesMessagesList = readMessagesHeaderWithLanguages(reader);\n\n\t\t\tStringTokenizer st;\n\t\t\tString line;\n\n\t\t\t// load all messages\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t// skip empty line\n\t\t\t\tif (line.trim().length() == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tline = line.replace(\"\\\";\\\"\", \"\\\"\\t\\\"\").replaceFirst(\";$\", \"\");\n\t\t\t\tst = new StringTokenizer(line, \"\\t\");\n\n\t\t\t\t// read key\n\t\t\t\tString key = Tools.removeQuotas(st.nextToken());\n\t\t\t\tint index = 0;\n\n\t\t\t\t// read all messages for the key\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\tif (index == languagesMessagesList.size()) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tString message = Tools.removeQuotas(st.nextToken());\n\t\t\t\t\tlanguagesMessagesList.get(index).put(key, message);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlog.error(\"Error reading messages file\", e);\n\t\t} finally {\n\t\t\tIOUtils.closeQuietly(reader);\n\t\t}\n\t}",
"public void createDictionary() \n {\n dictionary = new HashMap<String, Map<String, String>>();\n \n addTranslations(\n \"EN\", // Language code\n \"OK\", \"Ok\",\n \"UPDATE\", \"Update\",\n \"OPEN\", \"Open\",\n \"CLOSE\", \"Close\",\n \"CANCEL\", \"Cancel\",\n \"MESSAGES\", \"Messages\",\n \"NO_MESSAGES_TO_DISPLAY\", \"No messages to display\",\n \"EVALUATE\", \"Evaluate\",\n \"RUN\", \"Run\",\n \"RUN_AS_ACTIVITY\", \"Run Activity\",\n \"OPEN_SCRIPT\", \"Open script\",\n \"START_SERVER\", \"Start server\",\n \"STOP_SERVER\", \"Stop server\",\n \"SHOW_MESSAGES\", \"Messages\",\n \"UPDATE_APP_SCRIPTS\", \"Update\",\n \"THIS_WILL_OVERWRITE_ALL_APP_SCRIPTS\", \"This will overwrite all application scripts!\",\n \"ENTER_FILE_OR_URL\", \"Enter file or url:\",\n \"UPDATE_APP_SCRIPTS_DONE\", \"Update complete!\",\n \"UPDATE_APP_SCRIPTS_DONE_RESTART\", \"Restart the application to make changes take effect\",\n \"QUIT_APP\", \"Quit\",\n \"CLOSE\", \"Close\",\n \"BE_KIND\", \"Be kind\",\n \"BE_KIND_MESSAGE\", \"Be a kind person\"\n );\n }",
"InternationalString createInternationalString(Map<Locale,String> strings);",
"java.util.Map<java.lang.String, java.lang.String>\n getVarsMap();",
"Map<String, String> mo14888a();",
"public Map getValidatorMap();",
"Map<String, Equation> compile(File file) throws IOException;",
"public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }",
"public static HashMap<String, String> getLangs() {\r\n\t\t// search for it\r\n\t\tHashMap<String, String> names = new HashMap<String, String>();\r\n\t\tnames.put(\"de\", \"Deutsch (integriert) - German (included)\");\r\n\r\n\t\t// load all files from this dir\r\n\t\tfor (File f : new File(YAamsCore.programPath, \"lang\").listFiles()) {\r\n\t\t\tif (f.isDirectory() && new File(f, \"info.xml\").canRead()) {\r\n\t\t\t\tHashMap<String, String> data = (HashMap<String, String>) FileHelper.loadXML(new File(f, \"info.xml\"));\r\n\t\t\t\tnames.put(f.getName(), data.get(\"title\"));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn names;\r\n\t}",
"public Map<String, Object> getVariables();",
"ILoLoString translate();",
"public boolean getUsePrecompiled();",
"public ILoLoString translate() {\n return new MtLoLoString(); \n }",
"public Map loadCharacterMap() {\n loadMaps();\n return characterMap;\n }",
"public String translate(Program p)\r\n\t{\r\n\t\tString headers= \"#include \\\"lcpl_runtime.h\\\" \\n\";\r\n\t\t\r\n\t\t/* static data : strings used in the program */\r\n\t\tString stringConstants;\r\n\t\t_GlobalStringRuntime gsr = new _GlobalStringRuntime();\r\n\t\tgsr.searchProgramForStrings(p);\r\n\t\tstringConstants = gsr.getStringCode();\r\n\t\t\r\n\t\t/* object layouts: pointer to RTTI followed by attributes */\r\n\t\tString objectLayouts;\r\n\t\t_Object_Layout ol = new _Object_Layout();\r\n\t\tol.generateObjectLayoutCode(p);\r\n\t\tobjectLayouts =ol.getObjLayoutCode();\r\n\t\t\r\n\t\t/* static data : class names, as strings */\r\n\t\tString classNames;\r\n\t\t_ClassName cn = new _ClassName();\r\n\t\tcn.generateClassNames(p);\r\n\t\tclassNames = cn.getClassNameCode();\r\n\t\t\r\n\t\t/* constructors */\r\n\t\tString constructorDeclarations;\r\n\t\t_ConstructDeclarations cd = new _ConstructDeclarations();\r\n\t\tcd.generateConstructDecl(p);\r\n\t\tconstructorDeclarations = cd.getConstructDeclCode();\r\n\t\t\r\n\t\t/* declaration of methods */\r\n\t\tString methodDeclarations;\r\n\t\t_MethodDeclarations md = new _MethodDeclarations();\r\n\t\tmd.generateMethodDeclCode(p);\r\n\t\tmethodDeclarations = md.getMethodDeclCode();\r\n\t\t\r\n\t\t/* runtime type information (RTTI) - class name, class size, parent class, vtable */\r\n\t\tString vtables;\r\n\t\t_RTTI_Layout rtti = new _RTTI_Layout();\r\n\t\trtti.generateLayoutCode(p);\r\n\t\tvtables = rtti.getLayoutCode();\r\n\t\t\r\n\t\t/* definitions of methods in the program, including constructors */\r\n\t\tString constructors;\r\n\t\t//\"void Main_init(struct TMain *self){ IO_init((struct TIO*)self); } \\n\";\r\n\t\t_ClassInit ci = new _ClassInit(rtti.vt, gsr.getLiterals());\r\n\t\tci.generateMethodsCode(p, rtti.getSortedClassesList());\r\n\t\tconstructors = ci.getInitMethodsCode();\r\n\t\t\r\n\t\tString startup= \"void startup(void) { struct TMain *main=__lcpl_new(&RMain); M4_Main_main(main); } \\n\";\r\n\t\tSystem.out.println(headers+stringConstants+objectLayouts+classNames+constructorDeclarations+methodDeclarations+vtables+constructors+startup);\r\n\t\t//System.out.println(stringConstants);\r\n\t\t/*\r\n\t\tSystem.out.println(\"=======headers========\");\r\n\t\tSystem.out.println(headers);\r\n\t\tSystem.out.println(\"=======stringConstanf========\");\r\n\t\tSystem.out.println(stringConstants);\r\n\t\tSystem.out.println(\"=======objectLayou========\");\r\n\t\tSystem.out.println(objectLayouts);\r\n\t\tSystem.out.println(\"=======classnames========\");\r\n\t\tSystem.out.println(classNames);\r\n\t\tSystem.out.println(\"=======constructDecl========\");\r\n\t\tSystem.out.println(constructorDeclarations);\r\n\t\tSystem.out.println(\"=======methodDecl========\");\r\n\t\tSystem.out.println(methodDeclarations);\r\n\t\tSystem.out.println(\"=======vtables========\");\r\n\t\tSystem.out.println(vtables);\r\n\t\tSystem.out.println(\"=======constructors========\");\r\n\t\tSystem.out.println(constructors);\r\n\t\tSystem.out.println(\"=======startup========\");\r\n\t\tSystem.out.println(startup);*/\r\n\t\treturn headers+stringConstants+objectLayouts+classNames+constructorDeclarations+methodDeclarations+vtables+constructors+startup;\r\n\t\t\r\n\t}",
"public Map<String, Function> getGlobalFnMap() {\n return getGlobalFnMap(DEFAULT_LOCALE);\n }",
"public String getTranslation(String language_code, String key)\n {\n // Modified by Terry 20131127\n // Original:\n // return (DictionaryCache.getTranslationText(language_code,key));\n return (DictionaryCache.getTranslationText(getASPManager(),language_code,key));\n // Modified end\n }",
"public Map<String, Object> getDirectives();",
"private static HashMap<String, String> initMapping()\n {\n HashMap<String, String> typeMapping = new HashMap<String, String>();\n\n typeMapping.put(\"boolean\", \"boolean\");\n typeMapping.put(\"float\", \"float\");\n typeMapping.put(\"double\", \"double\");\n typeMapping.put(\"byte\", \"byte\");\n typeMapping.put(\"unsignedByte\", \"short\");\n typeMapping.put(\"short\", \"short\");\n typeMapping.put(\"unsignedShort\", \"int\");\n typeMapping.put(\"int\", \"int\");\n typeMapping.put(\"integer\", \"java.math.BigDecimal\");\n typeMapping.put(\"positiveInteger\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedInt\", \"java.math.BigInteger\");\n typeMapping.put(\"long\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedLong\", \"java.math.BigDecimal\");\n typeMapping.put(\"decimal\", \"java.math.BigDecimal\");\n typeMapping.put(\"string\", \"String\");\n typeMapping.put(\"hexBinary\", \"byte[]\");\n typeMapping.put(\"base64Binary\", \"byte[]\");\n typeMapping.put(\"dateTime\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"time\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"date\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonthDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYear\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYearMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"duration\", \"javax.xml.datatype.Duration\");\n typeMapping.put(\"NOTATION\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"QName\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"anyURI\", \"String\");\n typeMapping.put(\"Name\", \"String\");\n typeMapping.put(\"NCName\", \"String\");\n typeMapping.put(\"negativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"NMTOKEN\", \"String\");\n typeMapping.put(\"nonNegativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"nonPositiveInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"normalizedString\", \"String\");\n typeMapping.put(\"token\", \"String\");\n typeMapping.put(\"any\", \"Object\");\n\n return typeMapping;\n }",
"@Override\n\tpublic Map loadMap() {\n\t\ttry {\n\t\t\treturn XMLDeserialiser.loadMap();\n\t\t} catch (XMLException e) {\n\t\t\tPopup.showInformation(\"Le fichier choisi n'est pas un plan valide.\");\n\t\t\treturn null;\n\t\t} catch (NoFileChosenException e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public interface Translator\n{\n Locale SWEDISH = Locale.forLanguageTag(\"sv\");\n\n List<Locale> supportedLanguages();\n Map<Locale, List<Locale>> supportedDirections();\n Translation translate(Translation message);\n String pageTranslationURL(String sourceURL, Translation message);\n}",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Basic/Targets.cpp\", line = 828,\n old_source = \"${LLVM_SRC}/llvm/tools/clang/lib/Basic/Targets.cpp\", old_line = 773,\n FQN=\"(anonymous namespace)::WebAssemblyOSTargetInfo::getStaticInitSectionSpecifier\", NM=\"_ZNK12_GLOBAL__N_123WebAssemblyOSTargetInfo29getStaticInitSectionSpecifierEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.basic/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/Basic/Targets.cpp -nm=_ZNK12_GLOBAL__N_123WebAssemblyOSTargetInfo29getStaticInitSectionSpecifierEv\")\n //</editor-fold>\n /*lowered*/public final /*const*/char$ptr/*char P*/ getStaticInitSectionSpecifier() /*const*//* final*/ {\n return $(\".text.__startup\");\n }",
"FontMapperImpl() {\n/* 55 */ this.substitutes.put(\"Courier\", \n/* 56 */ Arrays.asList(new String[] { \"CourierNew\", \"CourierNewPSMT\", \"LiberationMono\", \"NimbusMonL-Regu\" }));\n/* 57 */ this.substitutes.put(\"Courier-Bold\", \n/* 58 */ Arrays.asList(new String[] { \"CourierNewPS-BoldMT\", \"CourierNew-Bold\", \"LiberationMono-Bold\", \"NimbusMonL-Bold\" }));\n/* */ \n/* 60 */ this.substitutes.put(\"Courier-Oblique\", \n/* 61 */ Arrays.asList(new String[] { \"CourierNewPS-ItalicMT\", \"CourierNew-Italic\", \"LiberationMono-Italic\", \"NimbusMonL-ReguObli\" }));\n/* */ \n/* 63 */ this.substitutes.put(\"Courier-BoldOblique\", \n/* 64 */ Arrays.asList(new String[] { \"CourierNewPS-BoldItalicMT\", \"CourierNew-BoldItalic\", \"LiberationMono-BoldItalic\", \"NimbusMonL-BoldObli\" }));\n/* */ \n/* 66 */ this.substitutes.put(\"Helvetica\", \n/* 67 */ Arrays.asList(new String[] { \"ArialMT\", \"Arial\", \"LiberationSans\", \"NimbusSanL-Regu\" }));\n/* 68 */ this.substitutes.put(\"Helvetica-Bold\", \n/* 69 */ Arrays.asList(new String[] { \"Arial-BoldMT\", \"Arial-Bold\", \"LiberationSans-Bold\", \"NimbusSanL-Bold\" }));\n/* */ \n/* 71 */ this.substitutes.put(\"Helvetica-Oblique\", \n/* 72 */ Arrays.asList(new String[] { \"Arial-ItalicMT\", \"Arial-Italic\", \"Helvetica-Italic\", \"LiberationSans-Italic\", \"NimbusSanL-ReguItal\" }));\n/* */ \n/* 74 */ this.substitutes.put(\"Helvetica-BoldOblique\", \n/* 75 */ Arrays.asList(new String[] { \"Arial-BoldItalicMT\", \"Helvetica-BoldItalic\", \"LiberationSans-BoldItalic\", \"NimbusSanL-BoldItal\" }));\n/* */ \n/* 77 */ this.substitutes.put(\"Times-Roman\", \n/* 78 */ Arrays.asList(new String[] { \"TimesNewRomanPSMT\", \"TimesNewRoman\", \"TimesNewRomanPS\", \"LiberationSerif\", \"NimbusRomNo9L-Regu\" }));\n/* */ \n/* 80 */ this.substitutes.put(\"Times-Bold\", \n/* 81 */ Arrays.asList(new String[] { \"TimesNewRomanPS-BoldMT\", \"TimesNewRomanPS-Bold\", \"TimesNewRoman-Bold\", \"LiberationSerif-Bold\", \"NimbusRomNo9L-Medi\" }));\n/* */ \n/* */ \n/* 84 */ this.substitutes.put(\"Times-Italic\", \n/* 85 */ Arrays.asList(new String[] { \"TimesNewRomanPS-ItalicMT\", \"TimesNewRomanPS-Italic\", \"TimesNewRoman-Italic\", \"LiberationSerif-Italic\", \"NimbusRomNo9L-ReguItal\" }));\n/* */ \n/* */ \n/* 88 */ this.substitutes.put(\"Times-BoldItalic\", \n/* 89 */ Arrays.asList(new String[] { \"TimesNewRomanPS-BoldItalicMT\", \"TimesNewRomanPS-BoldItalic\", \"TimesNewRoman-BoldItalic\", \"LiberationSerif-BoldItalic\", \"NimbusRomNo9L-MediItal\" }));\n/* */ \n/* */ \n/* 92 */ this.substitutes.put(\"Symbol\", Arrays.asList(new String[] { \"Symbol\", \"SymbolMT\", \"StandardSymL\" }));\n/* 93 */ this.substitutes.put(\"ZapfDingbats\", Arrays.asList(new String[] { \"ZapfDingbatsITC\", \"Dingbats\", \"MS-Gothic\" }));\n/* */ \n/* */ \n/* */ \n/* 97 */ for (String baseName : Standard14Fonts.getNames()) {\n/* */ \n/* 99 */ if (!this.substitutes.containsKey(baseName)) {\n/* */ \n/* 101 */ String mappedName = Standard14Fonts.getMappedFontName(baseName);\n/* 102 */ this.substitutes.put(baseName, copySubstitutes(mappedName));\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 110 */ String ttfName = \"/org/apache/pdfbox/resources/ttf/LiberationSans-Regular.ttf\";\n/* 111 */ InputStream ttfStream = FontMapper.class.getResourceAsStream(ttfName);\n/* 112 */ if (ttfStream == null)\n/* */ {\n/* 114 */ throw new IOException(\"Error loading resource: \" + ttfName);\n/* */ }\n/* 116 */ TTFParser ttfParser = new TTFParser();\n/* 117 */ this.lastResortFont = ttfParser.parse(ttfStream);\n/* */ }\n/* 119 */ catch (IOException e) {\n/* */ \n/* 121 */ throw new RuntimeException(e);\n/* */ } \n/* */ }",
"private Map<Integer, MessageEncoder> initialiseMap() {\n Map<Integer, MessageEncoder> composerMap = new HashMap<>();\n composerMap.put(AC35MessageType.BOAT_ACTION.getCode(), new BoatActionEncoder());\n composerMap.put(AC35MessageType.REQUEST.getCode(), new RequestEncoder());\n composerMap.put(AC35MessageType.COLOUR.getCode(), new ColourEncoder());\n\n return Collections.unmodifiableMap(composerMap);\n }",
"public Translator() {\n\t\tdictionary = new Dictionary();\n\t}",
"private static void createTypeMap() {\n\n }",
"Map<String, String> getDirectives();",
"Map<String, String> getDirectives();",
"Map<String, String> getDirectives();",
"Map<Class<?>, Object> yangAugmentedInfoMap();",
"Map<Class<?>, Object> yangAugmentedInfoMap();",
"private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}",
"public Map instantiateBackingMap(String sName);",
"public abstract String getLocalizationKey();",
"private ModuleMapper() {\n mapper = new HashMap<String, String>();\n mapper.put(\"accounts\", \"Accounts\");\n mapper.put(\"acl_actions\", \"ACLActions\");\n mapper.put(\"acl_roles\", \"ACLRoles\");\n mapper.put(\"bugs\", \"Bugs\");\n mapper.put(\"calls\", \"Calls\");\n mapper.put(\"campaign_log\", \"CampaignLog\");\n mapper.put(\"campaign_trkrs\", \"CampaignTrackers\");\n mapper.put(\"campaigns\", \"Campaigns\");\n mapper.put(\"cases\", \"Cases\");\n mapper.put(\"contacts\", \"Contacts\");\n mapper.put(\"currencies\", \"Currencies\");\n mapper.put(\"document_revisions\", \"DocumentRevisions\");\n mapper.put(\"documents\", \"Documents\");\n mapper.put(\"eapm\", \"EAPM\");\n mapper.put(\"email_addresses\", \"EmailAddresses\");\n mapper.put(\"email_marketing\", \"EmailMarketing\");\n mapper.put(\"email_templates\", \"EmailTemplates\");\n mapper.put(\"emailman\", \"EmailMan\");\n mapper.put(\"emails\", \"Emails\");\n mapper.put(\"inbound_email\", \"InboundEmail\");\n mapper.put(\"job_queue\", \"SchedulersJobs\");\n mapper.put(\"leads\", \"Leads\");\n mapper.put(\"meetings\", \"Meetings\");\n mapper.put(\"notes\", \"Notes\");\n mapper.put(\"oauth_consumer\", \"OAuthKeys\");\n mapper.put(\"oauth_tokens\", \"OAuthTokens\");\n mapper.put(\"opportunities\", \"Opportunities\");\n mapper.put(\"project\", \"Project\");\n mapper.put(\"project_task\", \"ProjectTask\");\n mapper.put(\"prospect_lists\", \"ProspectLists\");\n mapper.put(\"prospects\", \"Prospects\");\n mapper.put(\"releases\", \"Releases\");\n mapper.put(\"roles\", \"Roles\");\n mapper.put(\"saved_search\", \"SavedSearch\");\n mapper.put(\"schedulers\", \"Schedulers\");\n mapper.put(\"sugarfeed\", \"SugarFeed\");\n mapper.put(\"tasks\", \"Tasks\");\n mapper.put(\"users\", \"Users\");\n }",
"SourceMap getSourceMap() {\n return this.sourceMap;\n }",
"public static Map<String, String> getMapping() {\n\t\treturn ThreadContext.getMapping();\n\t}",
"private void LoadCoreValues()\n\t{\n\t\tString[] reservedWords = \t{\"program\",\"begin\",\"end\",\"int\",\"if\",\"then\",\"else\",\"while\",\"loop\",\"read\",\"write\"};\n\t\tString[] specialSymbols = {\";\",\",\",\"=\",\"!\",\"[\",\"]\",\"&&\",\"||\",\"(\",\")\",\"+\",\"-\",\"*\",\"!=\",\"==\",\"<\",\">\",\"<=\",\">=\"};\n\t\t\n\t\t//Assign mapping starting at a value of 1 for reserved words\n\t\tfor (int i=0;i<reservedWords.length;i++)\n\t\t{\n\t\t\tcore.put(reservedWords[i], i+1);\n\t\t}\n\t\t//Assign mapping for special symbols\n\t\tfor (int i=0; i<specialSymbols.length; i++)\n\t\t{\t\n\t\t\tcore.put(specialSymbols[i], reservedWords.length + i+1 );\n\t\t}\n\t}",
"@Override\r\n\tpublic Integer[] getDynamicMapVariables() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Integer[] getDynamicMapVariables() {\n\t\treturn null;\r\n\t}",
"private Map<String, C0148k> m471c() {\n HashMap hashMap = new HashMap();\n try {\n Class.forName(\"com.google.android.gms.ads.AdView\");\n C0148k kVar = new C0148k(\"com.google.firebase.firebase-ads\", \"0.0.0\", \"binary\");\n hashMap.put(kVar.mo326a(), kVar);\n C0135c.m449h().mo273b(\"Fabric\", \"Found kit: com.google.firebase.firebase-ads\");\n } catch (Exception unused) {\n }\n return hashMap;\n }",
"public interface Mapper {\n /**\n * execute the mapping\n * @param owner owner object\n * @param map map to map to\n * @param packageIsKey if the package is to be the key for the map\n * @throws BuildException in case of emergency\n */\n void execute(ProjectComponent owner, HashMap map, boolean packageIsKey) throws BuildException;\n}",
"public static CharSequence translateUsingMap(StringValue in, IntToIntMap map) {\n UnicodeString us = in.getUnicodeString();\n int len = us.uLength();\n FastStringBuffer sb = new FastStringBuffer(len);\n for (int i = 0; i < len; i++) {\n int c = us.uCharAt(i);\n int newchar = map.get(c);\n if (newchar == Integer.MAX_VALUE) {\n // character not in map, so is not to be translated\n newchar = c;\n }\n if (newchar != -1) {\n sb.appendWideChar(newchar);\n }\n // else no action, delete the character\n }\n return sb;\n }",
"private void verifyCustomMethodsAndTransMaps()\n {\n for (String key : fieldMap.keySet())\n {\n String fieldMapVal[] = fieldMap.get(key);\n String indexType = fieldMapVal[1];\n String indexParm = fieldMapVal[2];\n String mapName = fieldMapVal[3];\n\n if (indexType.startsWith(\"custom\"))\n verifyCustomMethodExists(indexType, indexParm);\n\n // check that translation maps are present in transMapMap\n if (mapName != null && findTranslationMap(mapName) == null)\n {\n// System.err.println(\"Error: Specified translation map (\" + mapName + \") not found in properties file\");\n logger.error(\"Specified translation map (\" + mapName + \") not found in properties file\");\n throw new IllegalArgumentException(\"Specified translation map (\" + mapName + \") not found in properties file\");\n }\n }\n }",
"public boolean isBuilt()\r\n {\r\n return (dbMap != null);\r\n }",
"public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}",
"boolean hasLanguageConstant();",
"@Override\n public Translate copy() {\n Translate copy = (Translate) SystemFunction.makeFunction(getFunctionName().getLocalPart(), getRetainedStaticContext(), getArity());\n copy.staticMap = staticMap;\n return copy;\n }",
"private String getTranslation(String language, String id)\n {\n Iterator<Translation> translations = mTranslationState.iterator();\n \n while (translations.hasNext()) {\n Translation translation = translations.next();\n \n if (translation.getLang().equals(language)) {\n Iterator<TranslationText> texts = translation.texts.iterator();\n \n while (texts.hasNext()) {\n TranslationText text = texts.next();\n \n if (text.getId().equals(id)) {\n text.setUsed(true);\n return text.getValue();\n }\n }\n }\n }\n \n return \"[Translation Not Available]\";\n }",
"public boolean isBuilt()\n {\n return (dbMap != null);\n }",
"public boolean isBuilt()\n {\n return (dbMap != null);\n }",
"private java.util.Map<java.lang.String, java.lang.Object> collectInformation() {\n /*\n // Method dump skipped, instructions count: 418\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ironsource.mediationsdk.utils.GeneralPropertiesWorker.collectInformation():java.util.Map\");\n }",
"private static String[] getMapStrings(boolean desc) {\n\n\n\n ArrayList list = new ArrayList();\n Locale locale = Locale.getDefault();\n String name = locale.toString();\n if (desc)\n name = \"locale=\" + name;\n list.add(0, name);\n\n String os = \"-\" + getOSType();\n if (desc)\n os = \" (os=\" + System.getProperty(\"os.name\")\n + \", \" + System.getProperty(\"os.version\") + \")\";\n name += os;\n list.add(0, name);\n\n // Allow the invoker to override the keyStrokeMap to support\n // case where you are working on a remote machine with a different\n // local or platform.\n \n String override = System.getProperty(\"abbot.keyStrokeMap\");\n if (override!=null) {\n list.add(0, override);\n }\n \n \n /*\n String vm = System.getProperty(\"java.version\");\n name += \" vm=\" + vm;\n list.add(0, name);\n String version = System.getProperty(\"os.version\");\n name += \" version=\" + version;\n list.add(0, name);\n String arch = System.getProperty(\"os.arch\");\n name += \" arch=\" + arch;\n list.add(0, name);\n */\n return (String[])list.toArray(new String[list.size()]);\n }",
"protected static Map<String, List<String>> mapOptions(\n Map<Scope.Builder.COMPILER, List<String>> options) {\n return options\n .entrySet()\n .stream()\n .collect(Collectors.toMap(e -> COMPILER_OPTIONS_MAP.get(e.getKey()), Map.Entry::getValue));\n }",
"public Map<String, String> configurationReplacementMapPhase1() {\n Map<String, String> tomcatInstanceReplacementMap = new HashMap<>();\n tomcatInstanceReplacementMap.put(TOMCAT_INSTANCE_UUID_TAG, tomcatInstanceUUID);\n tomcatInstanceReplacementMap.put(TOMCAT_INSTANCE_NAME_TAG, instanceName);\n tomcatInstanceReplacementMap.put(TOMCAT_ENVIRONMENT_NAME_TAG, environmentName);\n tomcatInstanceReplacementMap.put(TOMCAT_VERSION_TAG, tomcatVersion);\n\n tomcatInstanceReplacementMap.put(TOMCAT_PRIMARY_PORT_TAG, primaryPort.toString());\n tomcatInstanceReplacementMap.put(TOMCAT_PRIMARY_PORT_PROTOCOL_TAG, protocolPrimaryPort);\n tomcatInstanceReplacementMap.put(TOMCAT_SHUTDOWN_PORT_TAG, shutdownPort.toString());\n tomcatInstanceReplacementMap.put(TOMCAT_AJP_PORT_TAG, ajpPort.toString());\n\n tomcatInstanceReplacementMap.put(TOMCAT_SECURE_PORT_TAG, (securePort==null)?\"18443\":securePort.toString());\n tomcatInstanceReplacementMap.put(TOMCAT_SECURE_PORT_PROTOCOL_TAG, protocolSecurePort);\n tomcatInstanceReplacementMap.put(TOMCAT_KEYSTORE_TAG, keystoreSourceFilename);\n tomcatInstanceReplacementMap.put(TOMCAT_KEYSTORE_CREDENTIALS_TAG, keystoreCredentials);\n \n /**\n * Return the Map for Replacement Phase.\n */\n return tomcatInstanceReplacementMap;\n }",
"public final Map<String, String> m11969a() {\n Map<String, String> c = zzsl.m11979a(\"gms:phenotype:phenotype_flag:debug_disable_caching\", false) ? m11967c() : this.f10172f;\n if (c == null) {\n synchronized (this.f10171e) {\n c = this.f10172f;\n if (c == null) {\n c = m11967c();\n this.f10172f = c;\n }\n }\n }\n if (c != null) {\n return c;\n }\n return Collections.emptyMap();\n }",
"private static Map generateCharacterMappings() {\n Log.debug(\"Generating default character mappings\");\n Map map = new HashMap();\n Iterator iter = keycodes.keySet().iterator();\n while (iter.hasNext()) {\n Object key = iter.next();\n map.put(keycodes.get(key), key);\n }\n return map;\n }",
"private List<Map.Entry<String, Pattern>> addPatterns (String syntax, List<Map.Entry<String, Pattern>> translations) {\n var resources = ResourceBundle.getBundle(syntax);\n for (var key : Collections.list(resources.getKeys())) {\n var regex = resources.getString(key);\n translations.add(new AbstractMap.SimpleEntry<>(key,\n Pattern.compile(regex, Pattern.CASE_INSENSITIVE)));\n }\n return translations;\n }",
"private void ini_Translations()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_Translations\");\r\n\t\tnew Translation(\"data\", FileType.Internal);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tTranslation.LoadTranslation(\"data/lang/en-GB/strings.ini\");\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public GoogleTranslateMeta() {\n\n // add a cool description\n addDescription(\"used as a general template\");\n\n // add dependencies if necessary\n // addDependency(\"com.twelvemonkeys.common\", \"common-lang\", \"3.1.1\");\n\n setAvailable(false);\n setCloudService(true);\n\n addCategory(\"translation\", \"programming\");\n \n addDependency(\"com.google.cloud\", \"google-cloud-translate\", \"2.2.0\");\n addDependency(\"com.google.auth\", \"google-auth-library-credentials\", \"1.3.0\");\n\n }",
"private void translateInstructions() {\n Map<String, String> translations = new HashMap<String, String>() {{\n put(\"go\", \"pojdi\");\n put(\"left\", \"levo\");\n put(\"right\", \"desno\");\n put(\"straight\", \"naravnost\");\n put(\" on unnamed road\", \"\");\n put(\"on\", \"na\");\n put(\"turn\", \"zavij\");\n put(\"continue\", \"nadaljuj\");\n put(\"stay\", \"ostani\");\n put(\"north\", \"severno\");\n put(\"east\", \"vzhodno\");\n put(\"south\", \"južno\");\n put(\"west\", \"zahodno\");\n put(\"northeast\", \"severnovzhodno\");\n put(\"southeast\", \"jugovzhodno\");\n put(\"southwest\", \"jugozahodno\");\n put(\"northwest\", \"servernozahodno\");\n }};\n\n String regex = \"(?i)\\\\b(go|left|right|straight| on unnamed road|on|turn|continue|stay|\" +\n \"north|east|south|west|northeast|southeast|southwest|northwest)\\\\b\";\n\n Pattern pattern = Pattern.compile(regex);\n StringBuffer stringBuffer;\n Matcher matcher;\n\n for (RoadNode node : mRoad.mNodes) {\n String instructions = node.mInstructions;\n stringBuffer = new StringBuffer();\n matcher = pattern.matcher(instructions);\n\n while (matcher.find()) {\n matcher.appendReplacement(stringBuffer, translations.get(matcher.group().toLowerCase()));\n }\n matcher.appendTail(stringBuffer);\n\n node.mInstructions = stringBuffer.toString();\n }\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public final ClassMap getUsedClassMap()\n {\n return useClassMap;\n }",
"public interface LocalizationService {\n\n /**\n *\n * @param locale - the languge that we like to present\n * @return\n */\n Map<String, String> getAllLocalizationStrings(Locale locale);\n\n /**\n * @param prefix - show all strings which start with thr prefix\n * @param locale - the languge that we like to present\n * @return\n */\n// Map<String, String> getAllLocalizationStringsByPrefix(String prefix, Locale locale);\n\n\n /**\n * @param key - the specific key\n * @param locale - the language that we like to present\n * @return\n */\n String getLocalizationStringByKey(String key, Locale locale);\n\n /**\n * Get the default system locale\n * @return\n */\n Locale getDefaultLocale();\n\n /**\n * Get evidence name\n * @param evidence\n * @return\n */\n String getIndicatorName(Evidence evidence);\n\n\n String getAlertName(Alert alert);\n\n Map<String,Map<String, String>> getMessagesToAllLanguages();\n}",
"public Map<String, I18nizableText> getFunctionsDescriptions();",
"void mo3504a(C0505cw cwVar, Map<String, String> map);",
"T get(GlobalVariableMap globalVariableMap);",
"public Map<String, Object> getTransitiveBindings() {\n // Can't use ImmutableMap.Builder because it doesn't allow duplicates.\n LinkedHashMap<String, Object> env = new LinkedHashMap<>();\n env.putAll(Starlark.UNIVERSE);\n env.putAll(predeclared);\n env.putAll(globals);\n return env;\n }",
"private Map<String, Object> collectGlobals() {\n ImmutableMap.Builder<String, Object> envBuilder = ImmutableMap.builder();\n MethodLibrary.addBindingsToBuilder(envBuilder);\n Runtime.addConstantsToBuilder(envBuilder);\n return envBuilder.build();\n }",
"boolean hasI18();",
"void setCompiled(CompilationUnitDeclaration cud,\n Map<String, String> binaryTypeToSourceFileMap) {\n assert (state == State.FRESH || state == State.ERROR);\n this.cud = cud;\n fileNameRefs = computeFileNameRefs(cud, binaryTypeToSourceFileMap);\n state = State.COMPILED;\n }",
"public TransliterationManager()\n\t{\n\t\tmap = new HashMap<String, ITransliterator>();\n\t\tcodings = new HashSet<String>();\n\t}",
"int[] translate() {\n int[] ans = new int[6];\n ans[0] = registers[CPU.IF_ID[0]];\n ans[1] = (CPU.IF_ID[4] == 0 ? CPU.IF_ID[3] : registers[CPU.IF_ID[1]]);\n ans[2] = registers[CPU.IF_ID[2]];\n ans[3] = CPU.IF_ID[2];\n ans[4] = CPU.IF_ID[4];\n ans[5] = CPU.IF_ID[3];\n CPU.alu.used = true;\n ufile = false;\n return ans;\n }",
"String getLocalization();",
"private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }"
] | [
"0.6154153",
"0.6125999",
"0.54533005",
"0.5368475",
"0.53635716",
"0.5298882",
"0.52586013",
"0.5241988",
"0.52027434",
"0.5147884",
"0.51379484",
"0.51211065",
"0.51029587",
"0.50971967",
"0.5024627",
"0.50187606",
"0.5003566",
"0.4987699",
"0.49875492",
"0.4961658",
"0.49444053",
"0.4929665",
"0.4921174",
"0.49125564",
"0.49003103",
"0.4868643",
"0.48670298",
"0.4866115",
"0.48516917",
"0.4819333",
"0.4797569",
"0.47961357",
"0.47855303",
"0.47824606",
"0.47782114",
"0.47676238",
"0.4765631",
"0.47461683",
"0.474373",
"0.47387072",
"0.47372192",
"0.4736169",
"0.47309878",
"0.4713793",
"0.4696473",
"0.46900225",
"0.46851048",
"0.46812463",
"0.46680856",
"0.4667338",
"0.46583122",
"0.4645992",
"0.4645992",
"0.4645992",
"0.4641099",
"0.4641099",
"0.46389025",
"0.46296206",
"0.46289867",
"0.4598722",
"0.45976865",
"0.45941132",
"0.4578428",
"0.45782328",
"0.45782328",
"0.45751143",
"0.45651415",
"0.456402",
"0.4561018",
"0.45606413",
"0.4558966",
"0.45547086",
"0.45500064",
"0.45428208",
"0.45343742",
"0.45343742",
"0.45332563",
"0.45331416",
"0.45254886",
"0.4517724",
"0.45166495",
"0.45156953",
"0.4514133",
"0.45119768",
"0.451181",
"0.44994682",
"0.4497395",
"0.44958198",
"0.44933978",
"0.44860083",
"0.44816166",
"0.44805375",
"0.44789144",
"0.44766995",
"0.44657353",
"0.446448",
"0.4463331",
"0.44627038",
"0.4454835",
"0.4454404"
] | 0.45879242 | 62 |
Perform the translate function | public static CharSequence translate(StringValue sv0, StringValue sv1, StringValue sv2) {
// if any string contains surrogate pairs, expand everything to 32-bit characters
if (sv0.containsSurrogatePairs() || sv1.containsSurrogatePairs() || sv2.containsSurrogatePairs()) {
return translateUsingMap(sv0, buildMap(sv1, sv2));
}
// if the size of the strings is above some threshold, use a hash map to avoid O(n*m) performance
if (sv0.getStringLength() * sv1.getStringLength() > 1000) {
// Cut-off point for building the map based on some simple measurements
return translateUsingMap(sv0, buildMap(sv1, sv2));
}
CharSequence cs0 = sv0.getStringValueCS();
CharSequence cs1 = sv1.getStringValueCS();
CharSequence cs2 = sv2.getStringValueCS();
String st1 = cs1.toString();
FastStringBuffer sb = new FastStringBuffer(cs0.length());
int s2len = cs2.length();
int s0len = cs0.length();
for (int i = 0; i < s0len; i++) {
char c = cs0.charAt(i);
int j = st1.indexOf(c);
if (j < s2len) {
sb.cat(j < 0 ? c : cs2.charAt(j));
}
}
return sb;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ILoLoString translate();",
"private void translate()\r\n\t{\r\n\t\tLocale locale = Locale.getDefault();\r\n\t\t\r\n\t\tString language = locale.getLanguage();\r\n\t\t\r\n\t\ttranslate(language);\r\n\t}",
"void translate(Sentence sentence);",
"String translate(String text, String fromLanguage, String toLanguage) throws TranslationException;",
"Object translate( Object source );",
"public void translate() {\n\t\twhile (!inputBuffer.endOfBuffer()) {\n\t\t\tMsgChar get = inputBuffer.getChar();\n\t\t\tif (get == null) continue;\n\t\t\tif (inputBuffer.isEndOfSentence()) {\n\t\t\t\toutputBuffer.markEndOfSentence();\n\t\t\t} else if (inputBuffer.isEndOfWord()) {\n\t\t\t\toutputBuffer.markEndOfWord();\n\t\t\t} else {\n\t\t\t\toutputBuffer.putChar(get.convert());\n\t\t\t}\n\t\t}\n\t\tinputBuffer.getReader().close();\n\t\toutputBuffer.close();\n\t}",
"public ILoLoString translate() {\n return this.ribosome(new MtLoString(), new MtLoLoString(), false); \n }",
"public abstract WordEntry manualTranslate(String text, String from, String to);",
"abstract void translate(double x, double y, double z);",
"public void translate() {\n for (Ball b: balls) {\n b.translate(balls);\n }\n }",
"public abstract WordEntry autoTranslate(String text, String to);",
"public void translate(int i, int j) {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic void translate(){\n\t\tnodeSigs();\n\t\tedgeSigs();\n\t\tpre_source_valid();\n\t\tList<Object> constraints = new ArrayList<Object>();\n\t\tconstraints.addAll(hash.keySet());\n\t\tfor (int i = 0; i < constraints.size() ; i++) {\n\t\t\tfor (int j = i + 1; j < constraints.size() ; j++) {\n\t\t\t\tObject iter = constraints.get(i), iter1 = constraints.get(j);\n\t\t\t\tObject[] overlap = findOverlap(iter, iter1);\n\t\t\t\tif(overlap == null) continue;\n\t\t\t\talloycommands.add(new Object[]{iter, iter1});\n\t\t\t\tbuffer.append(\"run{(\" + hash.get(iter) + \"[] and not \" + hash.get(iter1) + \"[]) or (not \" + hash.get(iter) + \"[] and \" + hash.get(iter1) + \"[])} for 0 but \");\n\t\t\t\tList<Node> nodes = (List<Node>) overlap[0];\n\t\t\t\tList<Arrow> edges = (List<Arrow>) overlap[1];\n\t\t\t\tList<String> strings = new ArrayList<String>();\n\t\t\t\tfor(Node in : nodes){\n\t\t\t\t\tstrings.add(nodeSig(in));\n\t\t\t\t}\n\t\t\t\tfor(Arrow ie : edges){\n\t\t\t\t\tstrings.add(edgeSig(ie));\n\t\t\t\t}\n\t\t\t\tbuffer.append(\"5 \" + strings.get(0));\n\t\t\t\tfor (int k = 1; k < strings.size(); k++) {\n\t\t\t\t\tbuffer.append(\", 5 \" + strings.get(k));\n\t\t\t\t}\n\t\t\t\tbuffer.append(LINE);\n\t\t\t}\n\t\t}\n//\t\tif(check == null)\n//\t\t\tbuffer.append(\"run {}\");\n//\t\telse\n//\t\t\ttranslate(check, \"check\");\n//\t\tbuffer.append(\" for 5\");\n\t\t\t\n\t}",
"public void translate(int x, int y);",
"public interface Translator {\n\t/**\n\t * Make text translation.\n\t * @param text source text for translation.\n\t * @param from source language code.\n\t * @param to target language code.\n\t * @return list of translated words from text.\n\t */\n\tList<String> translate(String text, String from, String to);\n}",
"String[] translate(String[] input);",
"void onTranslation(Sentence sentence);",
"@Override\n public String translate(Function function) {\n throw new UnsupportedOperationException();\n }",
"public ILoLoString translate() {\n return new MtLoLoString(); \n }",
"public void translate(int x, int y){\n a.translate(x, y);\n b.translate(x, y);\n c.translate(x, y);\n }",
"public void translate(float theX, float theY) {\n\t}",
"public String translate(String words) {\n String[] sentence = words.split(\" \");\n //go through each element\n for (int i = 0; i < sentence.length; i++) {\n //if the dictionary contains the word\n if (hm.containsKey(sentence[i])) {\n //change it out with the new translated one\n sentence[i] = hm.get(sentence[i]) + \" (\" + sentence[i] + \")\";\n }\n }\n\n //Build the sentence back together\n String text = \"\";\n\n for (int i = 0; i < sentence.length; i++) {\n text += sentence[i] + \" \";\n }\n\n return text;\n\n /*if(amITranslating) {\n return text;\n } else {\n return words;\n }*/\n\n\n }",
"@Test\n\tpublic void test$TR() {\n\t\tassertEquals(\"FOO\", $TRANSLATE(\"foo\", \"abcdefghijklmnopqrstuvwxyz\", \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"));\n\t\t\n\t\t\n\t\t// no 3rd param should remove those characters\n\t\tassertEquals(\"ad\", $TRANSLATE(\"abcd\", \"bc\"));\n\t\t\n\t\t// uneven numbers of target and replacement values\n\t\tassertEquals(\"123d\", $TRANSLATE(\"abcd\", \"abc\",\"123\"));\n\t\tassertEquals(\"123\", $TRANSLATE(\"abcd\", \"abcd\",\"123\"));\n\t\tassertEquals(\"123d\", $TRANSLATE(\"abcd\", \"abc\",\"1234\"));\n\t}",
"public String translate(String input, String direction) throws Exception {\n\t\tString[] lines = input.split(\"\\n\");\n\t\tString trans = \"\";\n\t\tfor (int j = 0; j < lines.length; j++) {\n\t\t\tString[] words = lines[j].split(\" \");\n\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\ttrans = trans.concat(dictionary.translate(words[i], direction) + \" \");\n\t\t\t}\n\t\t\ttrans = trans.concat(\"\\n\");\n\t\t}\n\t\treturn trans;\n\t}",
"private void Trans(String s) {\n }",
"public void translate(float x, float y);",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtTranslate.setEnabled(false);\r\n\t\t\t\tbtTranslate.setText(\"正在翻译..\");\r\n\t\t\t\tString re = Languages.translate(taResult.getText());\r\n\t\t\t\tif(\"\"==re || null==re){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\ttaTranslate.setText(re);\r\n\t\t\t\tbtTranslate.setEnabled(true);\r\n\t\t\t\tbtTranslate.setText(\"翻译\");\r\n\t\t\t}",
"public void translate(int x, int y)\r\n\t{\r\n\t\t// g.translate(x,y);\r\n\t\t// System.err.println(\"not translate int x: \" + x + \" y:\" + y );\r\n\t}",
"public interface Translator\r\n{\r\n /** given the source, translate and return the translation\r\n * @param source\r\n * @return the translated version of the object \r\n */\r\n Object translate( Object source );\r\n}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tTranslater translater = new Translater();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tString data = dataText.getText();\n\t\t\t\t\tString presentes = presentesText.getText();\n\t\t\t\t\tString ausentes = ausentesText.getText();\n\t\t\t\t\tString ausentesJusti = ausentesJustiText.getText();\n\t\t\t\t\tString atrasos = atrasosText.getText();\n\t\t\t\t\tString atrasosJusti = atrasosJustiText.getText();\n\t\t\t\t\tString presidente = presidenteText.getText();\n\t\t\t\t\tString ateiro = ateiroText.getText();\n\t\t\t\t\tString ata = ataMesmo.getText();\n\t\t\t\t\t\n\t\t\t\t\ttranslater.traduzir(data, presentes, ausentes, ausentesJusti, atrasos, atrasosJusti, presidente, ateiro, ata);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"T translate(final String stringRepresentation);",
"public void translateImplementation( Code code );",
"private void translateInstructions() {\n Map<String, String> translations = new HashMap<String, String>() {{\n put(\"go\", \"pojdi\");\n put(\"left\", \"levo\");\n put(\"right\", \"desno\");\n put(\"straight\", \"naravnost\");\n put(\" on unnamed road\", \"\");\n put(\"on\", \"na\");\n put(\"turn\", \"zavij\");\n put(\"continue\", \"nadaljuj\");\n put(\"stay\", \"ostani\");\n put(\"north\", \"severno\");\n put(\"east\", \"vzhodno\");\n put(\"south\", \"južno\");\n put(\"west\", \"zahodno\");\n put(\"northeast\", \"severnovzhodno\");\n put(\"southeast\", \"jugovzhodno\");\n put(\"southwest\", \"jugozahodno\");\n put(\"northwest\", \"servernozahodno\");\n }};\n\n String regex = \"(?i)\\\\b(go|left|right|straight| on unnamed road|on|turn|continue|stay|\" +\n \"north|east|south|west|northeast|southeast|southwest|northwest)\\\\b\";\n\n Pattern pattern = Pattern.compile(regex);\n StringBuffer stringBuffer;\n Matcher matcher;\n\n for (RoadNode node : mRoad.mNodes) {\n String instructions = node.mInstructions;\n stringBuffer = new StringBuffer();\n matcher = pattern.matcher(instructions);\n\n while (matcher.find()) {\n matcher.appendReplacement(stringBuffer, translations.get(matcher.group().toLowerCase()));\n }\n matcher.appendTail(stringBuffer);\n\n node.mInstructions = stringBuffer.toString();\n }\n }",
"private static void translate(String input, FileWriter write) throws IOException {\n\t\tStringBuilder translation = new StringBuilder();\n\t\tFileReader inputString = new FileReader(input);\n\t\t\n\t\tchar read;\n\t\t\n\t\t//loops till the end\n\t\twhile((read = (char)(inputString.read())) != (char)-1) {\n\t\t\tint searchChar = 0;\n\t\t\t//finds the character that is currently being read in the results array\n\t\t\twhile(((Character)results[searchChar][0]) != ((Character)read)) {\n\t\t\t\tsearchChar++;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\ttranslation.append((String)results[searchChar][1]);\n\t\t}\n\t\tinputString.close();\n\t\twrite.write(translation.toString());\n\t}",
"public void translate(Point p){\n a.translate(p);\n b.translate(p);\n c.translate(p);\n }",
"public abstract List<CostSequence> translate(DeltaSubstitution delta, EnvTranslation env, String carrierValue, CostSequence cost);",
"private void translate(String input)\r\n/* 270: */ {\r\n/* 271:229 */ if (input.trim().isEmpty())\r\n/* 272: */ {\r\n/* 273:230 */ Mark.err(new Object[] {\"IMPACT produced nothing to translate\" });\r\n/* 274:231 */ return;\r\n/* 275: */ }\r\n/* 276:233 */ this.things.clear();\r\n/* 277:234 */ this.triples.clear();\r\n/* 278:235 */ this.previousTriple = null;\r\n/* 279:236 */ this.previousTriples.clear();\r\n/* 280: */ \r\n/* 281:238 */ String[] sentences = input.trim().split(\"\\\\)\\\\.\");\r\n/* 282:240 */ for (String s : sentences)\r\n/* 283: */ {\r\n/* 284:241 */ s = s.trim();\r\n/* 285:242 */ Mark.say(new Object[] {\"Sentence:\", s });\r\n/* 286: */ try\r\n/* 287: */ {\r\n/* 288:244 */ String[] parts = s.split(\"\\\\(\");\r\n/* 289:245 */ ThingTimeTriple triple = constructGenesisAction(parts[0].trim(), parts[1].trim());\r\n/* 290:246 */ this.triples.add(triple);\r\n/* 291:247 */ this.tripleList.clear();\r\n/* 292:248 */ this.tripleList.addAll(this.triples);\r\n/* 293: */ }\r\n/* 294: */ catch (Exception e)\r\n/* 295: */ {\r\n/* 296:252 */ Mark.say(new Object[] {\"Blew out trying to process IMPACT result,\", s });\r\n/* 297: */ \r\n/* 298:254 */ e.printStackTrace();\r\n/* 299: */ }\r\n/* 300: */ }\r\n/* 301: */ }",
"URI translate(URI original);",
"private static void translate(Sequence seq) {\n int frame;\n if(seq.getFrameWithLongestORF()==2){\n frame =0;\n }\n else if (seq.getFrameWithLongestORF()==0){\n //** TEst annomalies??? this frame produces the best aa\n frame = 0;\n }\n else if (seq.getFrameWithLongestORF()==1){\n frame = 2;\n }\n else if(seq.getFrameWithLongestORF()==3){\n frame = 0;\n compliment(seq);\n }\n else if(seq.getFrameWithLongestORF()==4){\n frame = 1;\n compliment(seq);\n }\n else{\n frame = 2;\n compliment(seq);\n }\n String temp = seq.getRawSeq();\n StringBuilder finalreturn = new StringBuilder();\n String codon;\n for (int i = frame; i < seq.getLength() - 2; i+=3) {\n codon = temp.substring(i, i+3);\n if(codon.contains(\"N\") || codon.contains(\"n\")){\n finalreturn.append(\"^\");\n }\n else {\n finalreturn.append(codonsMap.get(codon));\n }\n }\n seq.setTranslatedAA(finalreturn.toString());\n }",
"GWTJahiaNodeProperty translate(GWTJahiaNodeProperty property, GWTJahiaItemDefinition definition, String srcLanguage, String destLanguage, String siteUUID) throws GWTJahiaServiceException;",
"public String translate(String dataValueToTranslate) {\n\t\t\n\t\tString dataValue = dataValueToTranslate;\n\t\tif (!dataValueToTranslate.isEmpty()) {\n\t\t\t// Translation goes here\t\t\t\n\t\t}\n\t\treturn dataValue;\n\t}",
"private void updateTranslated() {\r\n\r\n\tfloat[] dp = new float[3];\r\n\tTools3d.subtract(p, _p, dp);\r\n\r\n\tfor (int i = 0; i < npoints * 3; i+= 3) {\r\n\t // translate by adding the amount local origin has moved by\r\n\t ps[i] += dp[0];\r\n\t ps[i + 1] += dp[1];\r\n\t ps[i + 2] += dp[2];\r\n\t}\r\n\t\r\n\t// reset bounding box and clear dirty flag\r\n\tbox.setBB();\r\n\tdirtyT = false;\r\n\r\n\t// finally\r\n\t_p[0] = p[0];\r\n\t_p[1] = p[1];\r\n\t_p[2] = p[2];\r\n }",
"void TranslateToTurkish() {\n // Check wheter the device language is English\n if(Locale.getDefault().getDisplayLanguage() == \"en\"){ // Don't do anything if it is English\n }\n else { // Translate to device language (For now just Turkish)\n final Handler textViewHandler = new Handler();\n new AsyncTask<Void, Void, Void>() {\n @Override\n protected Void doInBackground(Void... params) {\n TranslateOptions options = TranslateOptions.newBuilder()\n .setApiKey(googleApiKey)\n .build();\n Translate translate = options.getService();\n final Translation translation =\n translate.translate(textToSpeechInputText,\n Translate.TranslateOption.targetLanguage(\"tr\"));\n textViewHandler.post(new Runnable() {\n @Override\n public void run() {\n Log.d(\"Translated text:\", translation.getTranslatedText().toString());\n textToSpeechInputText = translation.getTranslatedText().toString();\n Log.d(\"Output\", textToSpeechInputText);\n //Speak of the result\n Speak(textToSpeechInputText);\n state = 2; // Turn state to speaking the result\n }\n });\n return null;\n }\n }.execute();\n }\n }",
"public void translateText(View view)\n {\n\n Intent i = new Intent(HomeScreen.this, transIt.class);\n startActivity(i);\n\n }",
"public String transform(String text){\n for(int i=0; i<transforms.length; i++)\n {\n if(transforms[i].contains(\"fromabbreviation\")){\n text = textTransformerAbbreviation.fromAbbreviation(text);\n }\n if(transforms[i].contains(\"toabbreviation\")){\n text = textTransformerAbbreviation.toAbbreviation(text);\n }\n if(transforms[i].contains(\"inverse\")){\n text = textTransformerInverse.inverse(text);\n }\n if(transforms[i].contains(\"upper\")){\n text = textTransformerLetterSize.upper(text);\n }\n if(transforms[i].contains(\"lower\")){\n text = textTransformerLetterSize.lower(text);\n }\n if(transforms[i].contains(\"capitalize\")) {\n text = textTransformerLetterSize.capitalize(text);\n }\n if(transforms[i].contains(\"latex\")){\n text = textTransformerLatex.toLatex(text);\n }\n if(transforms[i].contains(\"numbers\")){\n text = textTransformerNumbers.toText(text);\n }\n if(transforms[i].contains(\"repetitions\")){\n text = textTransformerRepetition.deleteRepetitions(text);\n }\n logger.debug(\"Text after \" + (i+1) + \" transform: \" + text);\n }\n\n logger.debug(\"Final form: \" + text);\n return text;\n }",
"public void postTranslate(float tx, float ty, float tz) {\n float[] t = {\n 1, 0, 0, tx,\n 0, 1, 0, ty,\n 0, 0, 1, tz,\n 0, 0, 0, 1};\n \n matrix = mulMM(matrix, t);\n }",
"public String translate(String text) {\n StringBuilder builder = new StringBuilder();\n char [] from = text.toCharArray();\n char [] to = new char[from.length];\n final char upper = (char)table.length;\n for(int i = 0; i < from.length; i++) {\n char c = from[i];\n if (c < upper) {\n c = table[c];\n }\n to[i] = c;\n }\n return new String(to);\n }",
"public interface TransFactory {\n public Object translate(Object obj, String type);\n}",
"public void translate() {\n\t\tif(!init)\r\n\t\t\treturn; \r\n\t\ttermPhraseTranslation.clear();\r\n\t\t// document threshold: number of terms / / 8\r\n//\t\tdocThreshold = (int) (wordKeyList.size() / computeAvgTermNum(documentTermRelation) / 8.0);\r\n\t\t//\t\tuseDocFrequency = true;\r\n\t\tint minFrequency=1;\r\n\t\temBkgCoefficient=0.5;\r\n\t\tprobThreshold=0.001;//\r\n\t\titerationNum = 20;\r\n\t\tArrayList<Token> tokenList;\r\n\t\tToken curToken;\r\n\t\tint j,k;\r\n\t\t//p(w|C)\r\n\r\n\t\tint[] termValues = termIndexList.values;\r\n\t\tboolean[] termActive = termIndexList.allocated;\r\n\t\ttotalCollectionCount = 0;\r\n\t\tfor(k=0;k<termActive.length;k++){\r\n\t\t\tif(!termActive[k])\r\n\t\t\t\tcontinue;\r\n\t\t\ttotalCollectionCount +=termValues[k];\r\n\t\t}\r\n\t\t\r\n\t\t// for each phrase\r\n\t\tint[] phraseFreqKeys = phraseFrequencyIndex.keys;\r\n\t\tint[] phraseFreqValues = phraseFrequencyIndex.values;\r\n\t\tboolean[] states = phraseFrequencyIndex.allocated;\r\n\t\tfor (int phraseEntry = 0;phraseEntry<states.length;phraseEntry++){\r\n\t\t\tif(!states[phraseEntry]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (phraseFreqValues[phraseEntry] < minFrequency)\r\n\t\t\t\tcontinue;\r\n\t\t\ttokenList=genSignatureTranslation(phraseFreqKeys[phraseEntry]); // i is phrase number\r\n\t\t\tfor (j = 0; j <tokenList.size(); j++) {\r\n\t\t\t\tcurToken=(Token)tokenList.get(j);\r\n\t\t\t\tif(termPhraseTranslation.containsKey(curToken.getIndex())){\r\n\t\t\t\t\tIntFloatOpenHashMap old = termPhraseTranslation.get(curToken.getIndex());\r\n\t\t\t\t\tif(old.containsKey(phraseFreqKeys[phraseEntry])){\r\n\t\t\t\t\t\tSystem.out.println(\"aha need correction\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\told.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight()); //phrase, weight\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tIntFloatOpenHashMap newPhrase = new IntFloatOpenHashMap();\r\n\t\t\t\t\tnewPhrase.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight());\r\n\t\t\t\t\ttermPhraseTranslation.put(curToken.getIndex(), newPhrase);\r\n\t\t\t\t}\r\n\t\t\t\t//\t\t\t\toutputTransMatrix.add(i,curToken.getIndex(),curToken.getWeight());\r\n\t\t\t\t//\t\t\t\toutputTransTMatrix.add(curToken.getIndex(), i, curToken.getWeight());\r\n\t\t\t\t//TODO termPhrase exists, create PhraseTerm\r\n\t\t\t}\r\n\t\t\ttokenList.clear();\r\n\t\t}\r\n\r\n\t}",
"@Test\n public void shouldTranslateWithRegionalVariant() {\n List<String> sentence = Arrays.asList(\"it\", \"is\", \"cold\");\n String result = \"\";\n for (String token : sentence) {\n result += manager.message(Locale.CANADA_FRENCH, token, token) + \" \";\n }\n assertEquals(\"Il fait frette \", result);\n }",
"public void translateTransform(Vector3f trans) {\r\n\t\tm[0][0] = 1.0f; m[0][1] = 0.0f; m[0][2] = 0.0f; m[0][3] = trans.x;\r\n\t\tm[1][0] = 0.0f; m[1][1] = 1.0f; m[1][2] = 0.0f; m[1][3] = trans.y;\r\n\t\tm[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = 1.0f; m[2][3] = trans.z;\r\n\t\tm[3][0] = 0.0f; m[3][1] = 0.0f; m[3][2] = 0.0f; m[3][3] = 1.0f;\r\n\r\n\t}",
"public static String translate(String langFrom, String langTo, String text) throws IOException {\n requestStatus=false;\n translateStatus.setValue(true);\n String urlStr = \"https://script.google.com/macros/s/AKfycbw2qKkvobro8WLNZUKi2kGwGwEO4W8cBavcKqcuCIGhGBBtVts/exec\" +\n \"?q=\" + URLEncoder.encode(text, \"UTF-8\")\n + \"&target=\" + langTo +\n \"&source=\" + langFrom;\n URL url = new URL(urlStr);\n StringBuilder response = new StringBuilder();\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n\n count++;\n //System.out.println(count);\n if (con.getResponseCode() == 200) {\n requestStatus=true;\n translateStatus.setValue(false);\n //System.out.println(count + \" OK\");\n }\n BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n String inputLine;\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n return response.toString();\n }",
"public void translate(double x, double y, double z){\n \n \tMatrix trans = new Matrix();\n \ttrans.identity();\n \ttrans.set(1,4,x);\n \ttrans.set(2,4,y);\n \ttrans.set(3,4,x);\n \tthis.leftMultiply(trans);\n\n /* this doesn't work yet\n this.temp.identity();\n temp.set(1,4,x);\n temp.set(2,4,y);\n temp.set(3,4,x);\n this.leftMultiply(temp); */\n }",
"public interface Translator {\n Observable<String> translate(String input, Language toLanguage);\n}",
"public static void main(String[] args) throws Exception {\n // Can only call 100 requests per hour\n GoogleTranslator A = new GoogleTranslator();\n String result = A.translateSingleWord(\"en\", \"vi\", \"abaca\");\n System.out.println(result);\n\n }",
"public interface Translator\n{\n Locale SWEDISH = Locale.forLanguageTag(\"sv\");\n\n List<Locale> supportedLanguages();\n Map<Locale, List<Locale>> supportedDirections();\n Translation translate(Translation message);\n String pageTranslationURL(String sourceURL, Translation message);\n}",
"private void translate()\r\n {\r\n for(int x = 0;x<14;x++)\r\n {\r\n pack.add(new Card(sPack.get(x)));\r\n }\r\n \r\n }",
"@Override\n public void translate(double x, double y, double z) {\n GL11.glTranslated(x, y, z);\n }",
"public void translate(float x, float y) {\n multiply(\n 1F, 0F, 0F, x,\n 0F, 1F, 0F, y,\n 0F, 0F, 1F, 0F,\n 0F, 0F, 0F, 1F\n );\n }",
"public interface Translator {\n\n LaunchConfiguration translateCreateRequest(CreateRequest request, Caller caller)\n throws CannotTranslateException;\n\n _VM translateVM(ReservationDescription.Instance instance,\n Caller caller,\n int launchIndex) throws CannotTranslateException;\n\n NIC[] createNics(ReservationDescription.Instance instance);\n\n State translateStateCode(int stateCode)\n throws CannotTranslateException;\n\n VM[] translateReservationInstances(ReservationDescription desc, Caller caller)\n throws CannotTranslateException;\n\n void updateVM(_VM vm, ReservationDescription.Instance instance)\n throws CannotTranslateException;\n}",
"@Override\r\n\tpublic void translate(float vx, float vy) {\n\t\t\r\n\t}",
"String translateEnglishToDothraki(String englishText) throws Exception\n\t{\n\t\tString urlHalf1 = \"https://api.funtranslations.com/translate/dothraki.json?text=\";\n\t\tString url = urlHalf1 + englishText;\n\n\t\tJsonParser parser = new JsonParser();\n\n\t\tString jsonData = getJsonData(url);\n\n\t\tJsonElement jsonTree = parser.parse(jsonData);\n\n\t\tString translation = \"\";\n\n\t\tif (jsonTree.isJsonObject())\n\t\t{\n\t\t\tJsonObject treeObject = jsonTree.getAsJsonObject();\n\n\t\t\tJsonElement contents = treeObject.get(\"contents\");\n\n\t\t\tif (contents.isJsonObject())\n\t\t\t{\n\t\t\t\tJsonObject contentsObject = contents.getAsJsonObject();\n\n\t\t\t\tJsonElement translateElement = contentsObject.get(\"translated\");\n\n\t\t\t\ttranslation = translateElement.getAsString();\n\t\t\t}\n\t\t}\n\n\t\treturn translation;\n\t}",
"private String translateDataToBn(String keyword, String[] array_bn, String[] array_en){\n HashMap<String, String> hashMap = new HashMap<String, String>();\n\n for(int i=0;i<array_en.length;i++) {\n hashMap.put(array_en[i], array_bn[i]);\n }\n\n //Finding the English Value using Bangla Keywords from each entrySet.\n for (Map.Entry<String, String> entry :\n hashMap.entrySet()) {\n if (entry.getKey().equals(keyword)) {\n keyword = entry.getValue();\n break;\n }\n\n }\n\n Log.d(\"Surah\",\"Keyword Translated: \"+keyword);\n\n return keyword;\n }",
"public void translate( Vector3f t )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.set( t );\n\t\tmat.mul( opMat );\n\t}",
"public void translate(double Tx, double Ty, double Tz) {\r\n\t\tthis.set(MatrixMult(this, getTranslateInstance(Tx, Ty, Tz)));\r\n\t}",
"private String doDrTranslate(String pDrCode) {\n\n byte[] aCode = pDrCode.getBytes();\n String aDrCode = pDrCode;\n\n if (aCode.length == 5 && !mFacility.matches(\"BHH|PJC|MAR|ANG\")) {\n int i;\n for (i = 1; i < aCode.length; i++) {\n if ((i == 1 || i == 2) && (aCode[i] < 'A' || aCode[i] > 'Z')) { // Check for \"aa\" part of format\n aDrCode = k.NULL ;\n } else if ((i == 3 || i == 4 || i==5) && (aCode[i] < '0' || aCode[i] > '9')) { // Check for \"nnn\" part of format\n aDrCode = k.NULL ;\n }\n }\n return pDrCode;\n\n } else {\n if (mFacility.equalsIgnoreCase(\"SDMH\")) {\n CodeLookUp aSDMHDrTranslate = new CodeLookUp(\"Dr_Translation.table\", \"SDMH\", mEnvironment);\n aDrCode = aSDMHDrTranslate.getValue(pDrCode);\n\n if (aDrCode.length() == 5 ) {\n aDrCode = k.NULL;\n }\n } else if (mFacility.equalsIgnoreCase(\"CGMC\")) {\n if (! pDrCode.equalsIgnoreCase(\"UNK\")) {\n aDrCode = k.NULL ;\n }\n } else if (mFacility.equalsIgnoreCase(\"ALF\")) {\n aDrCode = k.NULL ;\n } else {\n //covers eastern health systems\n aDrCode = pDrCode;\n }\n }\n return aDrCode;\n\n }",
"private String translate(Translatable str, Locale locale) {\n\t\t\n\t\tif (\"\".equals(str.getMsgid())) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tString baseName = this.cfg.getString(\"formatter.locale.basename\", \"Messages\");\n\n\t\tI18n i18n = I18nFactory.getI18n(this.getClass(), baseName, locale);\n\n\t\tif (!\"\".equals(str.getMsgctx()) && str.getMsgctx() != null) {\n\t\t\treturn i18n.trc(str.getMsgid(), str.getMsgctx());\n\t\t} else {\t\t\t\n\t\t\treturn i18n.tr(str.getMsgid());\n\t\t}\n\n\t}",
"private Program translateMove (String s){\n switch (s) {\n case \"U Turn\":\n setSprite(\"./assets/cards/u-turn.png\");\n return Program.U;\n case \"Rotate Left\":\n setSprite(\"./assets/cards/r-left.png\");\n return Program.LEFT;\n case \"Rotate Right\":\n setSprite(\"./assets/cards/r-right.png\");\n return Program.RIGHT;\n case \"Back Up\":\n setSprite(\"./assets/cards/back-up.png\");\n return Program.BACK;\n case \"Move 1\":\n setSprite(\"./assets/cards/move.png\");\n return Program.MOVE1;\n case \"Move 2\":\n setSprite(\"./assets/cards/move.png\");\n return Program.MOVE2;\n case \"Move 3\":\n setSprite(\"./assets/cards/move.png\");\n return Program.MOVE3;\n default:\n throw new IllegalArgumentException(\"Invalid program: \" + s);\n }\n }",
"String getTransformedText();",
"public interface TranslateResultListener {\n void onResult(String result);\n}",
"public static String translate(String label) {\n return getSession().translate(label);\n }",
"public static Transform translate(Vector2f translate) {\n\t\treturn transpose(1.0f, 0.0f, translate.x, 0.0f, 1.0f, translate.y);\n\t}",
"public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }",
"static Posn translate ( Posn p, double dx, double dy ) {\n\t// return .... ;\n\t// Take stock\n\t// return ... p ... dx ... dy ; // <- We know this from Posn p\n\t// return new Posn ( ... p.x ... p.y ... dx ... dy ); // <- We know this from Posn translate\n\t// return new Posn ( ... p.x ... p.y ... dx ... dy, ... p.x ... p.y ... dx ... dy );\t\n\treturn new Posn ( p.x + dx, p.y + dy );\t\n }",
"public abstract String getTrans();",
"public QueryTranslationResult simpleTranslateQuery(ZQuery passedQuery,\r\n DataNode currNode) {\n DataSourceDescriptor desc = currNode.getDataSourceDescriptor();\r\n\r\n if (currNode.isLeafNode()) {\r\n //passedQuery = NodeQueryUtils.getMappedQuery(passedQuery, currNode, false);\r\n }\r\n\r\n SelectTranslationResult selectClause = simpleTranslateSelect(passedQuery,\r\n currNode);\r\n FromTranslationResult fromClause = simpleTranslateFrom(passedQuery,\r\n currNode);\r\n if (selectClause.participatesInTranslation == false\r\n || fromClause.participatesInTranslation == false) {\r\n return null;\r\n /*\r\n * TODO: Throw an exception. A query should always participate in\r\n * translation, otherwise it should not have been passed to this\r\n * datasource. In vertically distributed databases there will be\r\n * cases when only id's are in select clause.\r\n */\r\n }\r\n ZQuery res = new ZQuery();\r\n res.addSelect(selectClause.select);\r\n res.addFrom(fromClause.from);\r\n ZExpression where = (ZExpression) passedQuery.getWhere();\r\n if (where != null) {\r\n WhereTranslationResult whereClause = simpleTranslateZExpression(\r\n (ZExpression) passedQuery.getWhere(), currNode);\r\n if (whereClause.participatesInTranslation) {\r\n res.addWhere(whereClause.exp);\r\n }\r\n }\r\n\r\n QueryTranslationResult queryResult = transformUtility.new QueryTranslationResult();\r\n queryResult.participatesInTranslation = true; // a complete query should always participate in translation\r\n queryResult.query = res;\r\n return queryResult;\r\n }",
"private void translateBtnActionPerformed(ActionEvent evt) {\r\n if(switchBtnState == 1) {\r\n assemblyreader = new mipstoc.read.CodeReader(inputTxtArea.getText());\r\n mipstoc.lexer.Lexer lex = new mipstoc.lexer.Lexer(assemblyreader);\r\n mipstoc.parser.Parser parser = new mipstoc.parser.Parser(lex);\r\n try {\r\n parser.program();\r\n outputTxtArea.setText(mipstoc.parser.Parser.output);\r\n mipstoc.parser.Parser.output = \"\";\r\n }\r\n catch(Error e) {\r\n \tToolkit.getDefaultToolkit().beep();\r\n \tJOptionPane.showMessageDialog(panel, e.toString(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n else {\r\n \ttry {\r\n \t\tctomips.reader.ReadFile reader = new ctomips.reader.ReadFile(inputTxtArea.getText());\r\n \tctomips.lexer.LexInter li = new ctomips.lexer.LexInter();\r\n \tctomips.asm.Assembly ass = new ctomips.asm.Assembly(li);\r\n \tctomips.lexer.Lexer lex = new ctomips.lexer.Lexer(reader);\r\n \tctomips.parser.Parser parser = new ctomips.parser.Parser(lex, ass);\r\n \tctomips.inter.Node.labels = 0;\r\n \tctomips.lexer.Lexer.line = 1;\r\n \tparser.program();\r\n \tass.program();\r\n \toutputTxtArea.setText(ass.assembStr);\r\n \tctomips.parser.Parser.output = \"\";\r\n \t}\r\n \tcatch(IOException ie) {\r\n \t\t\r\n \t}\r\n \tcatch(Error e) {\r\n \t\tToolkit.getDefaultToolkit().beep();\r\n \t\tJOptionPane.showMessageDialog(panel, e.toString(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n \t}\r\n }\r\n }",
"protected abstract ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy);",
"@Override\n\tpublic Paragraph translateText(String freetext, boolean include) {\n\t\treturn null;\n\t}",
"public void translate( double[] d ) {\n setValid( false );\n position.translate( d );\n }",
"void setTranslation(int objIndex,Vector3f trans){\n look[objIndex].setTranslation(trans);\n usedTrans.set(objIndex);\n }",
"public void translateTo(PriceEvent event, long sequence, String msg) {\n\t\t}",
"@Test\n\tpublic void predFuncTest() \n\t{\n\t\tPath filePath = Paths.get(\"src/test/testfile/test.txt\");\n\t\tScanner scanner;\n\t\ttry {\n\t\t\tscanner = new Scanner(filePath);\n\t\t\tTranslator translator = new Translator();\n\t\t\tList<String> startCodons = new ArrayList<String>();\n\t\t\tstartCodons.add(\"ATG\");\n\t\t\tList<List<String>> result = translator.translation(scanner.next(), startCodons );\n\t\t\tfor(List<String> r : result){\n\t\t\t\tfor(String s : r){\n\t\t\t\t\tif(scanner.hasNext()){\n\t\t\t\t\t\tassertEquals(s, scanner.next());\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfail();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t \n\n\t\t} catch (IOException e) {\n\t\t\tfail(e.getLocalizedMessage());\n\t\t}\n\t}",
"public void doLocalization() {\r\n\t\tdoLocalization(0);\r\n\t\t//do localization like it's in the corner 0\r\n\t\tnavigation.turnTo(0);\r\n\t}",
"protected StringTranslator() {\n\n String from = \"-_\";\n String to = \"%/\";\n translationMap = new HashMap<Character, Character>();\n\n if (from.length() != to.length())\n throw new IllegalArgumentException(\"The from and to strings must be of the same length\");\n\n for (int i = 0; i < from.length(); i++)\n translationMap.put(from.charAt(i), to.charAt(i));\n }",
"public FlatMapDTO handleTranslation() {\n return translations;\n }",
"public void translate( float x, float y )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.set( new Vector3f( x, y, 0 ) );\n\t\tmat.mul( opMat );\n\t}",
"@Override\n\tpublic void transformarse() throws ErrorNoCumpleReqTrans, ErrorNoHayMasTrans {\n\n\t}",
"public void translate( float x, float y, float z )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.set( new Vector3f( x, y, z ) );\n\t\tmat.mul( opMat );\n\t}",
"private void SolveTranslation(){\n\n int Cursor=0;\n Pattern pt = Pattern.compile(\"\\\"(.*?)\\\"\");\n Matcher matcher = pt.matcher(Input);\n while(matcher.find()){\n this.Undone[Cursor++] = matcher.group();\n //System.out.println(Undone[Cursor-1]);\n }\n Input = matcher.replaceAll(\"CCC\");\n }",
"public PointData translate(PointData data) {\n return data;\n }",
"public abstract QueryContainer translateQuery(QueryContainer query)\n\t\t\tthrows Exception;",
"public boolean isTranslateAble() {\n \treturn model.isTranslateAble();\n }",
"public abstract String resolveText(Locale locale, String key, Serializable[] arguments);",
"List<GWTJahiaNodeProperty> translate(List<GWTJahiaNodeProperty> properties, List<GWTJahiaItemDefinition> definitions, String srcLanguage, String destLanguage, String siteUUID) throws GWTJahiaServiceException;",
"void localizationChaneged();",
"public void translate(float x, float y, float z) {\n Matrix.translateM(mModelMatrix, 0, x, y, z);\n }",
"public static String translate(Context context, String input) {\n StringBuilder output = new StringBuilder(\"\");\n Locale currentLocale = new Locale(LanguageChange.getUserLocale(context));\n\n if (input != null && !\"\".equals(input)) {\n int j = 1;\n boolean capitalFlag = false;\n\n for (int i = 0; i < input.length(); i = i + j) {\n\n // Case there are at least 3 more symbols\n if (input.substring(i).length() > 2) {\n capitalFlag = Character.isUpperCase(input.charAt(i))\n || Character.isUpperCase(input.charAt(i + 1))\n || Character.isUpperCase(input.charAt(i + 2));\n\n String latinSymbol = \"\" + input.charAt(i)\n + input.charAt(i + 1) + input.charAt(i + 2);\n latinSymbol = latinSymbol.toLowerCase(currentLocale);\n String cyrillicSymbol = translatorMap.get(latinSymbol);\n\n if (cyrillicSymbol == null) {\n capitalFlag = Character.isUpperCase(input.charAt(i))\n || Character.isUpperCase(input.charAt(i + 1));\n\n latinSymbol = \"\" + input.charAt(i)\n + input.charAt(i + 1);\n latinSymbol = latinSymbol.toLowerCase(currentLocale);\n cyrillicSymbol = translatorMap.get(latinSymbol);\n\n if (cyrillicSymbol == null) {\n latinSymbol = \"\" + input.charAt(i);\n cyrillicSymbol = translatorMap.get(latinSymbol);\n\n if (cyrillicSymbol == null) {\n output.append(latinSymbol);\n j = 1;\n } else {\n output.append(cyrillicSymbol);\n j = 1;\n }\n } else {\n if (capitalFlag) {\n output.append(cyrillicSymbol\n .toUpperCase(currentLocale));\n } else {\n output.append(cyrillicSymbol);\n }\n j = 2;\n }\n } else {\n if (capitalFlag) {\n output.append(cyrillicSymbol\n .toUpperCase(currentLocale));\n } else {\n output.append(cyrillicSymbol);\n }\n j = 3;\n }\n // Case there are 2 more symbols\n } else if (input.substring(i).length() == 2) {\n capitalFlag = Character.isUpperCase(input.charAt(i))\n || Character.isUpperCase(input.charAt(i + 1));\n\n String latinSymbol = \"\" + input.charAt(i)\n + input.charAt(i + 1);\n latinSymbol = latinSymbol.toLowerCase(currentLocale);\n String cyrillicSymbol = translatorMap.get(latinSymbol);\n\n if (cyrillicSymbol == null) {\n latinSymbol = \"\" + input.charAt(i);\n cyrillicSymbol = translatorMap.get(latinSymbol);\n\n if (cyrillicSymbol == null) {\n output.append(latinSymbol);\n j = 1;\n } else {\n output.append(cyrillicSymbol);\n j = 1;\n }\n } else {\n if (capitalFlag) {\n output.append(cyrillicSymbol\n .toUpperCase(currentLocale));\n } else {\n output.append(cyrillicSymbol);\n }\n j = 2;\n }\n // Case there is 1 more symbol\n } else if (input.substring(i).length() == 1) {\n String latinSymbol = \"\" + input.charAt(i);\n String cyrillicSymbol = translatorMap.get(latinSymbol);\n\n if (cyrillicSymbol == null) {\n output.append(latinSymbol);\n j = 1;\n } else {\n output.append(cyrillicSymbol);\n j = 1;\n }\n }\n }\n }\n\n return output.toString();\n }",
"@FXML\n public void translation(){\n double x = Double.parseDouble(translation_x.getText());\n double y = Double.parseDouble(translation_y.getText());\n double z = Double.parseDouble(translation_z.getText());\n\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n t1.getTetraeder()[0].setPoint(A[0]+x,A[1]+y,A[2]+z);\n t1.getTetraeder()[1].setPoint(B[0]+x,B[1]+y,B[2]+z);\n t1.getTetraeder()[2].setPoint(C[0]+x,C[1]+y,C[2]+z);\n t1.getTetraeder()[3].setPoint(D[0]+x,D[1]+y,D[2]+z);\n\n redraw();\n }",
"public String transform(String input);",
"public static String translate(String word) {\n\t\t// Method variables.\n\t\tint vowelIndex = 0;\n\t\tint wordLength = word.length();\n\t\tString pigLatin = \"\";\n\n\t\t// Loop through the word marking at what point the first vowel is.\n\t\tfor (int i = 0; i < wordLength; i++) {\n\t\t\t// Gets the char at i and sets it to lower case for comparing to vowels.\n\t\t\tchar letter = Character.toLowerCase(word.charAt(i));\n\n\t\t\t// If a letter of a word equals a vowel break loop\n\t\t\tif (letter == 'a' || letter == 'e' || letter == 'i' || letter == 'o' || letter == 'u') {\n\t\t\t\tvowelIndex = i; // Set the value of firstVowel the index of the character in the word.\n\t\t\t\tbreak; // Exit loops\n\t\t\t}\n\n\t\t}\n\n\t\t// Rearrange word into Pig Latin.\n\t\t// First test if it starts with a vowel\n\t\tif (vowelIndex == 0) {\n\t\t\tpigLatin = word + \"way\"; // Put way on end of any word starting with a vowel.\n\t\t} else {\n\t\t\t// Create substring of characters to add to the end of the word.\n\t\t\tString toEnd = word.substring(0, vowelIndex);\n\t\t\t\n\t\t\t// Create a substring of the new start of the word.\n\t\t\tString newStart = word.substring(vowelIndex, wordLength);\n\n\t\t\t// Combine both substrings together and add ay.\n\t\t\tpigLatin = newStart + toEnd + \"ay\";\n\t\t}\n\n\t\treturn pigLatin.toUpperCase(); // returns the word translated into Pig Latin\n\t}"
] | [
"0.7884242",
"0.7366065",
"0.7306463",
"0.7230869",
"0.7006027",
"0.69546956",
"0.6862497",
"0.680748",
"0.67817837",
"0.67369",
"0.66213584",
"0.6570019",
"0.64511997",
"0.64255595",
"0.6401662",
"0.638451",
"0.6380401",
"0.63608944",
"0.6359555",
"0.6351185",
"0.6292856",
"0.6227596",
"0.61814517",
"0.6170527",
"0.6157454",
"0.6129959",
"0.61258656",
"0.61124194",
"0.61079764",
"0.6105187",
"0.60798055",
"0.6072303",
"0.6063682",
"0.6063306",
"0.60604197",
"0.6055783",
"0.60405004",
"0.6022513",
"0.60159254",
"0.6000198",
"0.59999585",
"0.59935945",
"0.5984651",
"0.59013736",
"0.58862597",
"0.58668655",
"0.5831044",
"0.5816089",
"0.5800581",
"0.57995176",
"0.57675487",
"0.5766236",
"0.57436943",
"0.57322896",
"0.572685",
"0.5720534",
"0.5713969",
"0.5701876",
"0.5692113",
"0.5689378",
"0.56857646",
"0.568013",
"0.564301",
"0.5629719",
"0.56094444",
"0.56040263",
"0.5601596",
"0.55877805",
"0.5583979",
"0.557289",
"0.5551494",
"0.5534189",
"0.5529719",
"0.5523556",
"0.55189186",
"0.55128855",
"0.54794157",
"0.54789317",
"0.54775107",
"0.5459946",
"0.54404324",
"0.54330236",
"0.54293716",
"0.54231894",
"0.5421953",
"0.54109377",
"0.5404172",
"0.5399231",
"0.5398483",
"0.53967935",
"0.5394468",
"0.5390765",
"0.5366082",
"0.5331064",
"0.5328798",
"0.5327323",
"0.53248537",
"0.53244656",
"0.5316548",
"0.5311537",
"0.530226"
] | 0.0 | -1 |
Implement the translate() function using an index built at compile time | public static CharSequence translateUsingMap(StringValue in, IntToIntMap map) {
UnicodeString us = in.getUnicodeString();
int len = us.uLength();
FastStringBuffer sb = new FastStringBuffer(len);
for (int i = 0; i < len; i++) {
int c = us.uCharAt(i);
int newchar = map.get(c);
if (newchar == Integer.MAX_VALUE) {
// character not in map, so is not to be translated
newchar = c;
}
if (newchar != -1) {
sb.appendWideChar(newchar);
}
// else no action, delete the character
}
return sb;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ILoLoString translate();",
"Object translate( Object source );",
"public void translate(int i, int j) {\n\t\t\n\t}",
"void translate(Sentence sentence);",
"public interface Translator {\n\t/**\n\t * Make text translation.\n\t * @param text source text for translation.\n\t * @param from source language code.\n\t * @param to target language code.\n\t * @return list of translated words from text.\n\t */\n\tList<String> translate(String text, String from, String to);\n}",
"@SuppressWarnings(\"unchecked\")\n\tpublic void translate(){\n\t\tnodeSigs();\n\t\tedgeSigs();\n\t\tpre_source_valid();\n\t\tList<Object> constraints = new ArrayList<Object>();\n\t\tconstraints.addAll(hash.keySet());\n\t\tfor (int i = 0; i < constraints.size() ; i++) {\n\t\t\tfor (int j = i + 1; j < constraints.size() ; j++) {\n\t\t\t\tObject iter = constraints.get(i), iter1 = constraints.get(j);\n\t\t\t\tObject[] overlap = findOverlap(iter, iter1);\n\t\t\t\tif(overlap == null) continue;\n\t\t\t\talloycommands.add(new Object[]{iter, iter1});\n\t\t\t\tbuffer.append(\"run{(\" + hash.get(iter) + \"[] and not \" + hash.get(iter1) + \"[]) or (not \" + hash.get(iter) + \"[] and \" + hash.get(iter1) + \"[])} for 0 but \");\n\t\t\t\tList<Node> nodes = (List<Node>) overlap[0];\n\t\t\t\tList<Arrow> edges = (List<Arrow>) overlap[1];\n\t\t\t\tList<String> strings = new ArrayList<String>();\n\t\t\t\tfor(Node in : nodes){\n\t\t\t\t\tstrings.add(nodeSig(in));\n\t\t\t\t}\n\t\t\t\tfor(Arrow ie : edges){\n\t\t\t\t\tstrings.add(edgeSig(ie));\n\t\t\t\t}\n\t\t\t\tbuffer.append(\"5 \" + strings.get(0));\n\t\t\t\tfor (int k = 1; k < strings.size(); k++) {\n\t\t\t\t\tbuffer.append(\", 5 \" + strings.get(k));\n\t\t\t\t}\n\t\t\t\tbuffer.append(LINE);\n\t\t\t}\n\t\t}\n//\t\tif(check == null)\n//\t\t\tbuffer.append(\"run {}\");\n//\t\telse\n//\t\t\ttranslate(check, \"check\");\n//\t\tbuffer.append(\" for 5\");\n\t\t\t\n\t}",
"String[] translate(String[] input);",
"public abstract WordEntry manualTranslate(String text, String from, String to);",
"String translate(String text, String fromLanguage, String toLanguage) throws TranslationException;",
"public interface Translator\r\n{\r\n /** given the source, translate and return the translation\r\n * @param source\r\n * @return the translated version of the object \r\n */\r\n Object translate( Object source );\r\n}",
"abstract void translate(double x, double y, double z);",
"public void translate() {\n\t\tif(!init)\r\n\t\t\treturn; \r\n\t\ttermPhraseTranslation.clear();\r\n\t\t// document threshold: number of terms / / 8\r\n//\t\tdocThreshold = (int) (wordKeyList.size() / computeAvgTermNum(documentTermRelation) / 8.0);\r\n\t\t//\t\tuseDocFrequency = true;\r\n\t\tint minFrequency=1;\r\n\t\temBkgCoefficient=0.5;\r\n\t\tprobThreshold=0.001;//\r\n\t\titerationNum = 20;\r\n\t\tArrayList<Token> tokenList;\r\n\t\tToken curToken;\r\n\t\tint j,k;\r\n\t\t//p(w|C)\r\n\r\n\t\tint[] termValues = termIndexList.values;\r\n\t\tboolean[] termActive = termIndexList.allocated;\r\n\t\ttotalCollectionCount = 0;\r\n\t\tfor(k=0;k<termActive.length;k++){\r\n\t\t\tif(!termActive[k])\r\n\t\t\t\tcontinue;\r\n\t\t\ttotalCollectionCount +=termValues[k];\r\n\t\t}\r\n\t\t\r\n\t\t// for each phrase\r\n\t\tint[] phraseFreqKeys = phraseFrequencyIndex.keys;\r\n\t\tint[] phraseFreqValues = phraseFrequencyIndex.values;\r\n\t\tboolean[] states = phraseFrequencyIndex.allocated;\r\n\t\tfor (int phraseEntry = 0;phraseEntry<states.length;phraseEntry++){\r\n\t\t\tif(!states[phraseEntry]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (phraseFreqValues[phraseEntry] < minFrequency)\r\n\t\t\t\tcontinue;\r\n\t\t\ttokenList=genSignatureTranslation(phraseFreqKeys[phraseEntry]); // i is phrase number\r\n\t\t\tfor (j = 0; j <tokenList.size(); j++) {\r\n\t\t\t\tcurToken=(Token)tokenList.get(j);\r\n\t\t\t\tif(termPhraseTranslation.containsKey(curToken.getIndex())){\r\n\t\t\t\t\tIntFloatOpenHashMap old = termPhraseTranslation.get(curToken.getIndex());\r\n\t\t\t\t\tif(old.containsKey(phraseFreqKeys[phraseEntry])){\r\n\t\t\t\t\t\tSystem.out.println(\"aha need correction\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\told.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight()); //phrase, weight\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tIntFloatOpenHashMap newPhrase = new IntFloatOpenHashMap();\r\n\t\t\t\t\tnewPhrase.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight());\r\n\t\t\t\t\ttermPhraseTranslation.put(curToken.getIndex(), newPhrase);\r\n\t\t\t\t}\r\n\t\t\t\t//\t\t\t\toutputTransMatrix.add(i,curToken.getIndex(),curToken.getWeight());\r\n\t\t\t\t//\t\t\t\toutputTransTMatrix.add(curToken.getIndex(), i, curToken.getWeight());\r\n\t\t\t\t//TODO termPhrase exists, create PhraseTerm\r\n\t\t\t}\r\n\t\t\ttokenList.clear();\r\n\t\t}\r\n\r\n\t}",
"public ILoLoString translate() {\n return this.ribosome(new MtLoString(), new MtLoLoString(), false); \n }",
"public interface Translator\n{\n Locale SWEDISH = Locale.forLanguageTag(\"sv\");\n\n List<Locale> supportedLanguages();\n Map<Locale, List<Locale>> supportedDirections();\n Translation translate(Translation message);\n String pageTranslationURL(String sourceURL, Translation message);\n}",
"public interface TransFactory {\n public Object translate(Object obj, String type);\n}",
"public String translate(String text) {\n StringBuilder builder = new StringBuilder();\n char [] from = text.toCharArray();\n char [] to = new char[from.length];\n final char upper = (char)table.length;\n for(int i = 0; i < from.length; i++) {\n char c = from[i];\n if (c < upper) {\n c = table[c];\n }\n to[i] = c;\n }\n return new String(to);\n }",
"public void translate(int x, int y);",
"public abstract List<CostSequence> translate(DeltaSubstitution delta, EnvTranslation env, String carrierValue, CostSequence cost);",
"public abstract WordEntry autoTranslate(String text, String to);",
"private static void translate(String input, FileWriter write) throws IOException {\n\t\tStringBuilder translation = new StringBuilder();\n\t\tFileReader inputString = new FileReader(input);\n\t\t\n\t\tchar read;\n\t\t\n\t\t//loops till the end\n\t\twhile((read = (char)(inputString.read())) != (char)-1) {\n\t\t\tint searchChar = 0;\n\t\t\t//finds the character that is currently being read in the results array\n\t\t\twhile(((Character)results[searchChar][0]) != ((Character)read)) {\n\t\t\t\tsearchChar++;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\ttranslation.append((String)results[searchChar][1]);\n\t\t}\n\t\tinputString.close();\n\t\twrite.write(translation.toString());\n\t}",
"public ILoLoString translate() {\n return new MtLoLoString(); \n }",
"@Override\n public String translate(Function function) {\n throw new UnsupportedOperationException();\n }",
"private void translate()\r\n\t{\r\n\t\tLocale locale = Locale.getDefault();\r\n\t\t\r\n\t\tString language = locale.getLanguage();\r\n\t\t\r\n\t\ttranslate(language);\r\n\t}",
"public interface Translator {\n\n LaunchConfiguration translateCreateRequest(CreateRequest request, Caller caller)\n throws CannotTranslateException;\n\n _VM translateVM(ReservationDescription.Instance instance,\n Caller caller,\n int launchIndex) throws CannotTranslateException;\n\n NIC[] createNics(ReservationDescription.Instance instance);\n\n State translateStateCode(int stateCode)\n throws CannotTranslateException;\n\n VM[] translateReservationInstances(ReservationDescription desc, Caller caller)\n throws CannotTranslateException;\n\n void updateVM(_VM vm, ReservationDescription.Instance instance)\n throws CannotTranslateException;\n}",
"public void translateImplementation( Code code );",
"@Test\n\tpublic void test$TR() {\n\t\tassertEquals(\"FOO\", $TRANSLATE(\"foo\", \"abcdefghijklmnopqrstuvwxyz\", \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"));\n\t\t\n\t\t\n\t\t// no 3rd param should remove those characters\n\t\tassertEquals(\"ad\", $TRANSLATE(\"abcd\", \"bc\"));\n\t\t\n\t\t// uneven numbers of target and replacement values\n\t\tassertEquals(\"123d\", $TRANSLATE(\"abcd\", \"abc\",\"123\"));\n\t\tassertEquals(\"123\", $TRANSLATE(\"abcd\", \"abcd\",\"123\"));\n\t\tassertEquals(\"123d\", $TRANSLATE(\"abcd\", \"abc\",\"1234\"));\n\t}",
"public String translate(String words) {\n String[] sentence = words.split(\" \");\n //go through each element\n for (int i = 0; i < sentence.length; i++) {\n //if the dictionary contains the word\n if (hm.containsKey(sentence[i])) {\n //change it out with the new translated one\n sentence[i] = hm.get(sentence[i]) + \" (\" + sentence[i] + \")\";\n }\n }\n\n //Build the sentence back together\n String text = \"\";\n\n for (int i = 0; i < sentence.length; i++) {\n text += sentence[i] + \" \";\n }\n\n return text;\n\n /*if(amITranslating) {\n return text;\n } else {\n return words;\n }*/\n\n\n }",
"GWTJahiaNodeProperty translate(GWTJahiaNodeProperty property, GWTJahiaItemDefinition definition, String srcLanguage, String destLanguage, String siteUUID) throws GWTJahiaServiceException;",
"Builder addTranslator(String value);",
"public int translateNamespace(int index) {\n if (m_translateTable != null && index < m_translateTable.length) {\n return m_translateTable[index];\n } else {\n return index;\n }\n }",
"void setTranslation(int objIndex,Vector3f trans){\n look[objIndex].setTranslation(trans);\n usedTrans.set(objIndex);\n }",
"private void translateInstructions() {\n Map<String, String> translations = new HashMap<String, String>() {{\n put(\"go\", \"pojdi\");\n put(\"left\", \"levo\");\n put(\"right\", \"desno\");\n put(\"straight\", \"naravnost\");\n put(\" on unnamed road\", \"\");\n put(\"on\", \"na\");\n put(\"turn\", \"zavij\");\n put(\"continue\", \"nadaljuj\");\n put(\"stay\", \"ostani\");\n put(\"north\", \"severno\");\n put(\"east\", \"vzhodno\");\n put(\"south\", \"južno\");\n put(\"west\", \"zahodno\");\n put(\"northeast\", \"severnovzhodno\");\n put(\"southeast\", \"jugovzhodno\");\n put(\"southwest\", \"jugozahodno\");\n put(\"northwest\", \"servernozahodno\");\n }};\n\n String regex = \"(?i)\\\\b(go|left|right|straight| on unnamed road|on|turn|continue|stay|\" +\n \"north|east|south|west|northeast|southeast|southwest|northwest)\\\\b\";\n\n Pattern pattern = Pattern.compile(regex);\n StringBuffer stringBuffer;\n Matcher matcher;\n\n for (RoadNode node : mRoad.mNodes) {\n String instructions = node.mInstructions;\n stringBuffer = new StringBuffer();\n matcher = pattern.matcher(instructions);\n\n while (matcher.find()) {\n matcher.appendReplacement(stringBuffer, translations.get(matcher.group().toLowerCase()));\n }\n matcher.appendTail(stringBuffer);\n\n node.mInstructions = stringBuffer.toString();\n }\n }",
"public void translate(float x, float y);",
"@InterfaceAudience.Public\n Mapper compileMap(String source, String language);",
"private String translateDataToBn(String keyword, String[] array_bn, String[] array_en){\n HashMap<String, String> hashMap = new HashMap<String, String>();\n\n for(int i=0;i<array_en.length;i++) {\n hashMap.put(array_en[i], array_bn[i]);\n }\n\n //Finding the English Value using Bangla Keywords from each entrySet.\n for (Map.Entry<String, String> entry :\n hashMap.entrySet()) {\n if (entry.getKey().equals(keyword)) {\n keyword = entry.getValue();\n break;\n }\n\n }\n\n Log.d(\"Surah\",\"Keyword Translated: \"+keyword);\n\n return keyword;\n }",
"URI translate(URI original);",
"public static Translate[] createTranslators( String text )\n {\n StringTokenizer st = new StringTokenizer( text );\n int count = st.countTokens();\n Translate[] translators = new Translate[ count ];\n for ( int i = 0; i < count; i++ )\n {\n String temp = st.nextToken();\n StringTokenizer st2 = new StringTokenizer( temp, \"()\" );\n String name = st2.nextToken();\n String[] parms = null;\n if ( st2.hasMoreTokens() )\n {\n temp = st2.nextToken();\n StringTokenizer st3 = new StringTokenizer( temp, \",\" );\n int parmCount = st3.countTokens();\n parms = new String[ parmCount ];\n for ( int j = 0; j < parmCount; j++ )\n {\n parms[ j ] = st3.nextToken();\n }\n }\n else\n {\n parms = new String[ 0 ];\n }\n \n try\n {\n if ( name.indexOf( '.' ) == -1 )\n {\n name = \"com.hifiremote.jp1.translate.\" + name;\n }\n \n Class< ? > cl = Class.forName( name );\n Class< ? extends Translate > cl2 = cl.asSubclass( Translate.class );\n Class< ? >[] classes =\n {\n String[].class\n };\n Constructor< ? extends Translate > ct = cl2.getConstructor( classes );\n Object[] ctParms =\n {\n parms\n };\n translators[ i ] = ct.newInstance( ctParms );\n }\n catch ( Exception e )\n {\n System.err.println( \"TranslatorFactory couldn't create an instance of \" + name );\n e.printStackTrace( System.err );\n }\n }\n return translators;\n }",
"public interface Translator {\n Observable<String> translate(String input, Language toLanguage);\n}",
"public void translate() {\n for (Ball b: balls) {\n b.translate(balls);\n }\n }",
"public void translate(int x, int y){\n a.translate(x, y);\n b.translate(x, y);\n c.translate(x, y);\n }",
"public int translate(CharSequence input, int index, Writer out) throws IOException {\n/* 82 */ int seqEnd = input.length();\n/* */ \n/* 84 */ if (input.charAt(index) == '&' && index < seqEnd - 2 && input.charAt(index + 1) == '#') {\n/* 85 */ int entityValue, start = index + 2;\n/* 86 */ boolean isHex = false;\n/* */ \n/* 88 */ char firstChar = input.charAt(start);\n/* 89 */ if (firstChar == 'x' || firstChar == 'X') {\n/* 90 */ start++;\n/* 91 */ isHex = true;\n/* */ \n/* */ \n/* 94 */ if (start == seqEnd) {\n/* 95 */ return 0;\n/* */ }\n/* */ } \n/* */ \n/* 99 */ int end = start;\n/* */ \n/* 101 */ while (end < seqEnd && ((input.charAt(end) >= '0' && input.charAt(end) <= '9') || (input\n/* 102 */ .charAt(end) >= 'a' && input.charAt(end) <= 'f') || (input\n/* 103 */ .charAt(end) >= 'A' && input.charAt(end) <= 'F'))) {\n/* 104 */ end++;\n/* */ }\n/* */ \n/* 107 */ boolean semiNext = (end != seqEnd && input.charAt(end) == ';');\n/* */ \n/* 109 */ if (!semiNext) {\n/* 110 */ if (isSet(OPTION.semiColonRequired)) {\n/* 111 */ return 0;\n/* */ }\n/* 113 */ if (isSet(OPTION.errorIfNoSemiColon)) {\n/* 114 */ throw new IllegalArgumentException(\"Semi-colon required at end of numeric entity\");\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ try {\n/* 120 */ if (isHex) {\n/* 121 */ entityValue = Integer.parseInt(input.subSequence(start, end).toString(), 16);\n/* */ } else {\n/* 123 */ entityValue = Integer.parseInt(input.subSequence(start, end).toString(), 10);\n/* */ } \n/* 125 */ } catch (NumberFormatException nfe) {\n/* 126 */ return 0;\n/* */ } \n/* */ \n/* 129 */ if (entityValue > 65535) {\n/* 130 */ char[] chars = Character.toChars(entityValue);\n/* 131 */ out.write(chars[0]);\n/* 132 */ out.write(chars[1]);\n/* */ } else {\n/* 134 */ out.write(entityValue);\n/* */ } \n/* */ \n/* 137 */ return 2 + end - start + (isHex ? 1 : 0) + (semiNext ? 1 : 0);\n/* */ } \n/* 139 */ return 0;\n/* */ }",
"T translate(final String stringRepresentation);",
"public void translate(int x, int y)\r\n\t{\r\n\t\t// g.translate(x,y);\r\n\t\t// System.err.println(\"not translate int x: \" + x + \" y:\" + y );\r\n\t}",
"public String translate(String input, String direction) throws Exception {\n\t\tString[] lines = input.split(\"\\n\");\n\t\tString trans = \"\";\n\t\tfor (int j = 0; j < lines.length; j++) {\n\t\t\tString[] words = lines[j].split(\" \");\n\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\ttrans = trans.concat(dictionary.translate(words[i], direction) + \" \");\n\t\t\t}\n\t\t\ttrans = trans.concat(\"\\n\");\n\t\t}\n\t\treturn trans;\n\t}",
"public void translate() {\n\t\twhile (!inputBuffer.endOfBuffer()) {\n\t\t\tMsgChar get = inputBuffer.getChar();\n\t\t\tif (get == null) continue;\n\t\t\tif (inputBuffer.isEndOfSentence()) {\n\t\t\t\toutputBuffer.markEndOfSentence();\n\t\t\t} else if (inputBuffer.isEndOfWord()) {\n\t\t\t\toutputBuffer.markEndOfWord();\n\t\t\t} else {\n\t\t\t\toutputBuffer.putChar(get.convert());\n\t\t\t}\n\t\t}\n\t\tinputBuffer.getReader().close();\n\t\toutputBuffer.close();\n\t}",
"Builder addTranslator(Person value);",
"public static Transform translate(Vector2f translate) {\n\t\treturn transpose(1.0f, 0.0f, translate.x, 0.0f, 1.0f, translate.y);\n\t}",
"public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }",
"public void translate(float theX, float theY) {\n\t}",
"static Posn translate ( Posn p, double dx, double dy ) {\n\t// return .... ;\n\t// Take stock\n\t// return ... p ... dx ... dy ; // <- We know this from Posn p\n\t// return new Posn ( ... p.x ... p.y ... dx ... dy ); // <- We know this from Posn translate\n\t// return new Posn ( ... p.x ... p.y ... dx ... dy, ... p.x ... p.y ... dx ... dy );\t\n\treturn new Posn ( p.x + dx, p.y + dy );\t\n }",
"int getTranslationField();",
"protected abstract ModelNode translate(final ModelNode parentAssertion, final NestedPolicy policy);",
"public static void main(String[] args) throws Exception {\n // Can only call 100 requests per hour\n GoogleTranslator A = new GoogleTranslator();\n String result = A.translateSingleWord(\"en\", \"vi\", \"abaca\");\n System.out.println(result);\n\n }",
"void onTranslation(Sentence sentence);",
"private static void translate(Sequence seq) {\n int frame;\n if(seq.getFrameWithLongestORF()==2){\n frame =0;\n }\n else if (seq.getFrameWithLongestORF()==0){\n //** TEst annomalies??? this frame produces the best aa\n frame = 0;\n }\n else if (seq.getFrameWithLongestORF()==1){\n frame = 2;\n }\n else if(seq.getFrameWithLongestORF()==3){\n frame = 0;\n compliment(seq);\n }\n else if(seq.getFrameWithLongestORF()==4){\n frame = 1;\n compliment(seq);\n }\n else{\n frame = 2;\n compliment(seq);\n }\n String temp = seq.getRawSeq();\n StringBuilder finalreturn = new StringBuilder();\n String codon;\n for (int i = frame; i < seq.getLength() - 2; i+=3) {\n codon = temp.substring(i, i+3);\n if(codon.contains(\"N\") || codon.contains(\"n\")){\n finalreturn.append(\"^\");\n }\n else {\n finalreturn.append(codonsMap.get(codon));\n }\n }\n seq.setTranslatedAA(finalreturn.toString());\n }",
"public abstract QueryContainer translateQuery(QueryContainer query)\n\t\t\tthrows Exception;",
"void setBioAssemblyTrans(int bioAssemblyIndex, int[] inputChainIndices, double[] inputTransform, String name);",
"private static void translate2string(InstrCode instr, StringBuilder destStr) throws Exception {\r\n\t\tint idx = instr.instrIdx;\r\n\r\n\t\tif( idx < 10 ) {\r\n\t\t\tdestStr.append(idx);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tidx -= 10;\r\n\r\n\t\tif( idx < 26 ) {\r\n\t\t\tdestStr.append((char)(97 + idx)); // small letter\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tidx -= 26;\r\n\r\n\t\tif( idx < 26 ) {\r\n\t\t\tdestStr.append((char)(65 + idx)); // big letter\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tidx -= 26;\r\n\r\n\t\t// TODO< encode instruction with special signs >\r\n\t\tthrow new Exception(\"NOT IMPLEMENTED - TODO\");\r\n\t}",
"public Substitute(){\n key = new byte[256];\n inverse = new byte[256];\n int[] intermediate = new int[256];\n for(int i = 1; i < 257; i++){\n int index = (int) (Math.random() * 256); //Generate random index between 0 and 255\n while(intermediate[index] != 0) //If that index already has a value, generate another random index\n index = (int) (Math.random() * 256);\n intermediate[index] = i; //Place value of i into generated location\n }\n for(int i = 0; i < intermediate.length; i++)\n key[i] = (byte) (intermediate[i] - 129); //Subtract 129 from each location so all values are from -128 to 127\n\n for(int i = 0; i < key.length; i++){ //Create the inverse mapping\n int index = key[i] + 128; //Location is adding 128 to what's stored in key array\n inverse[index] = (byte) (i - 128); //What's placed in that location is the value of i subtracted by 128\n }\n }",
"public QueryTranslationResult simpleTranslateQuery(ZQuery passedQuery,\r\n DataNode currNode) {\n DataSourceDescriptor desc = currNode.getDataSourceDescriptor();\r\n\r\n if (currNode.isLeafNode()) {\r\n //passedQuery = NodeQueryUtils.getMappedQuery(passedQuery, currNode, false);\r\n }\r\n\r\n SelectTranslationResult selectClause = simpleTranslateSelect(passedQuery,\r\n currNode);\r\n FromTranslationResult fromClause = simpleTranslateFrom(passedQuery,\r\n currNode);\r\n if (selectClause.participatesInTranslation == false\r\n || fromClause.participatesInTranslation == false) {\r\n return null;\r\n /*\r\n * TODO: Throw an exception. A query should always participate in\r\n * translation, otherwise it should not have been passed to this\r\n * datasource. In vertically distributed databases there will be\r\n * cases when only id's are in select clause.\r\n */\r\n }\r\n ZQuery res = new ZQuery();\r\n res.addSelect(selectClause.select);\r\n res.addFrom(fromClause.from);\r\n ZExpression where = (ZExpression) passedQuery.getWhere();\r\n if (where != null) {\r\n WhereTranslationResult whereClause = simpleTranslateZExpression(\r\n (ZExpression) passedQuery.getWhere(), currNode);\r\n if (whereClause.participatesInTranslation) {\r\n res.addWhere(whereClause.exp);\r\n }\r\n }\r\n\r\n QueryTranslationResult queryResult = transformUtility.new QueryTranslationResult();\r\n queryResult.participatesInTranslation = true; // a complete query should always participate in translation\r\n queryResult.query = res;\r\n return queryResult;\r\n }",
"protected StringTranslator() {\n\n String from = \"-_\";\n String to = \"%/\";\n translationMap = new HashMap<Character, Character>();\n\n if (from.length() != to.length())\n throw new IllegalArgumentException(\"The from and to strings must be of the same length\");\n\n for (int i = 0; i < from.length(); i++)\n translationMap.put(from.charAt(i), to.charAt(i));\n }",
"public void translate(double x, double y, double z){\n \n \tMatrix trans = new Matrix();\n \ttrans.identity();\n \ttrans.set(1,4,x);\n \ttrans.set(2,4,y);\n \ttrans.set(3,4,x);\n \tthis.leftMultiply(trans);\n\n /* this doesn't work yet\n this.temp.identity();\n temp.set(1,4,x);\n temp.set(2,4,y);\n temp.set(3,4,x);\n this.leftMultiply(temp); */\n }",
"public void postTranslate(float tx, float ty, float tz) {\n float[] t = {\n 1, 0, 0, tx,\n 0, 1, 0, ty,\n 0, 0, 1, tz,\n 0, 0, 0, 1};\n \n matrix = mulMM(matrix, t);\n }",
"public void translate(int x, int y, int z) {\n\t\tfor (int v = 0; v < vertexCount; v++) {\n\t\t\tvertexX[v] += x;\n\t\t\tvertexY[v] += y;\n\t\t\tvertexZ[v] += z;\n\t\t}\n\t}",
"String translateNumberGroup(int index, String number) throws NumberReaderException;",
"private void setTranslationKey(String name) {\n\t\t\r\n\t}",
"private void translate(String input)\r\n/* 270: */ {\r\n/* 271:229 */ if (input.trim().isEmpty())\r\n/* 272: */ {\r\n/* 273:230 */ Mark.err(new Object[] {\"IMPACT produced nothing to translate\" });\r\n/* 274:231 */ return;\r\n/* 275: */ }\r\n/* 276:233 */ this.things.clear();\r\n/* 277:234 */ this.triples.clear();\r\n/* 278:235 */ this.previousTriple = null;\r\n/* 279:236 */ this.previousTriples.clear();\r\n/* 280: */ \r\n/* 281:238 */ String[] sentences = input.trim().split(\"\\\\)\\\\.\");\r\n/* 282:240 */ for (String s : sentences)\r\n/* 283: */ {\r\n/* 284:241 */ s = s.trim();\r\n/* 285:242 */ Mark.say(new Object[] {\"Sentence:\", s });\r\n/* 286: */ try\r\n/* 287: */ {\r\n/* 288:244 */ String[] parts = s.split(\"\\\\(\");\r\n/* 289:245 */ ThingTimeTriple triple = constructGenesisAction(parts[0].trim(), parts[1].trim());\r\n/* 290:246 */ this.triples.add(triple);\r\n/* 291:247 */ this.tripleList.clear();\r\n/* 292:248 */ this.tripleList.addAll(this.triples);\r\n/* 293: */ }\r\n/* 294: */ catch (Exception e)\r\n/* 295: */ {\r\n/* 296:252 */ Mark.say(new Object[] {\"Blew out trying to process IMPACT result,\", s });\r\n/* 297: */ \r\n/* 298:254 */ e.printStackTrace();\r\n/* 299: */ }\r\n/* 300: */ }\r\n/* 301: */ }",
"@Override\r\n\tpublic void translate(float vx, float vy) {\n\t\t\r\n\t}",
"public void translate(Point p){\n a.translate(p);\n b.translate(p);\n c.translate(p);\n }",
"int[] translate() {\n int[] ans = new int[6];\n ans[0] = registers[CPU.IF_ID[0]];\n ans[1] = (CPU.IF_ID[4] == 0 ? CPU.IF_ID[3] : registers[CPU.IF_ID[1]]);\n ans[2] = registers[CPU.IF_ID[2]];\n ans[3] = CPU.IF_ID[2];\n ans[4] = CPU.IF_ID[4];\n ans[5] = CPU.IF_ID[3];\n CPU.alu.used = true;\n ufile = false;\n return ans;\n }",
"public static String translate(String langFrom, String langTo, String text) throws IOException {\n requestStatus=false;\n translateStatus.setValue(true);\n String urlStr = \"https://script.google.com/macros/s/AKfycbw2qKkvobro8WLNZUKi2kGwGwEO4W8cBavcKqcuCIGhGBBtVts/exec\" +\n \"?q=\" + URLEncoder.encode(text, \"UTF-8\")\n + \"&target=\" + langTo +\n \"&source=\" + langFrom;\n URL url = new URL(urlStr);\n StringBuilder response = new StringBuilder();\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n\n count++;\n //System.out.println(count);\n if (con.getResponseCode() == 200) {\n requestStatus=true;\n translateStatus.setValue(false);\n //System.out.println(count + \" OK\");\n }\n BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n String inputLine;\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n return response.toString();\n }",
"private void translateID(Tree tree, int registerIndex) {\n\t\tString name = tree.toString();\n\t\ttranslateIDAddress(tree, registerIndex); // Charge l'adresse de ID dans le registre\n\t\tthis.writer.writeFunction(String.format(\"LDW R%d, (R%d) // Chargement de la valeur de \\\"%s\\\" dans un registre\", registerIndex, registerIndex, name ));\n\t}",
"public void translate(float x, float y) {\n multiply(\n 1F, 0F, 0F, x,\n 0F, 1F, 0F, y,\n 0F, 0F, 1F, 0F,\n 0F, 0F, 0F, 1F\n );\n }",
"public String transform(String text){\n for(int i=0; i<transforms.length; i++)\n {\n if(transforms[i].contains(\"fromabbreviation\")){\n text = textTransformerAbbreviation.fromAbbreviation(text);\n }\n if(transforms[i].contains(\"toabbreviation\")){\n text = textTransformerAbbreviation.toAbbreviation(text);\n }\n if(transforms[i].contains(\"inverse\")){\n text = textTransformerInverse.inverse(text);\n }\n if(transforms[i].contains(\"upper\")){\n text = textTransformerLetterSize.upper(text);\n }\n if(transforms[i].contains(\"lower\")){\n text = textTransformerLetterSize.lower(text);\n }\n if(transforms[i].contains(\"capitalize\")) {\n text = textTransformerLetterSize.capitalize(text);\n }\n if(transforms[i].contains(\"latex\")){\n text = textTransformerLatex.toLatex(text);\n }\n if(transforms[i].contains(\"numbers\")){\n text = textTransformerNumbers.toText(text);\n }\n if(transforms[i].contains(\"repetitions\")){\n text = textTransformerRepetition.deleteRepetitions(text);\n }\n logger.debug(\"Text after \" + (i+1) + \" transform: \" + text);\n }\n\n logger.debug(\"Final form: \" + text);\n return text;\n }",
"public abstract String resolveText(Locale locale, String key, Serializable[] arguments);",
"private void Trans(String s) {\n }",
"List<GWTJahiaNodeProperty> translate(List<GWTJahiaNodeProperty> properties, List<GWTJahiaItemDefinition> definitions, String srcLanguage, String destLanguage, String siteUUID) throws GWTJahiaServiceException;",
"public abstract Key translateKey(Key key) throws InvalidKeyException;",
"@Test\n public void shouldTranslateWithRegionalVariant() {\n List<String> sentence = Arrays.asList(\"it\", \"is\", \"cold\");\n String result = \"\";\n for (String token : sentence) {\n result += manager.message(Locale.CANADA_FRENCH, token, token) + \" \";\n }\n assertEquals(\"Il fait frette \", result);\n }",
"public static void main(String[] args) {\n String document = \"Ich programmiere gern in Java\";\n// String document = \"Me gusta programar en java\";\n String language = \"german\";\n DictionaryFactory dictionaryFactory = createFactoryByLanguage(language);\n Dictionary dict = dictionaryFactory.getDictionary();\n System.out.println(translateDocument(document, dict));\n }",
"public static void translate(Double[] vector, Double[] translateVector) {\r\n for(int i = 0; i < vector.length; i++){\r\n vector[i] += translateVector[i];\r\n }\r\n }",
"private void translateElements (){\n translate(heading, \"LOGIN_BANNER\");\n translate(typeAndMonthTab, \"TYPE\");\n translate(ScheduleTab, \"CONTACT\");\n translate(LocationTab, \"LOCATION\");\n translate(aidTableColumn, \"ID\");\n translate(titleTableColumn, \"TITLE\");\n translate(descriptionTableColumn, \"DESCRIPTION\");\n translate(typeTableColumn, \"TYPE\");\n translate(startTableColumn, \"START_DATE\");\n translate(endTableColumn, \"END_DATE\");\n translate(cuidTableColumn, \"CUSTOMER_ID\");\n translate(rTypeTotalTableColumn, \"TOTAL\");\n translate(rTypeTableColumn, \"TYPE\");\n translate(rMonthTableColumn, \"MONTH\");\n translate(backButton, \"BACK\");\n translate(headTitle, \"REPORTS\");\n }",
"public static String translate(String label) {\n return getSession().translate(label);\n }",
"@Override\n public void translate(double x, double y, double z) {\n GL11.glTranslated(x, y, z);\n }",
"public static Entity translate(Frame frame)\r\n/* 54: */ {\r\n/* 55:65 */ return (Entity)frame.getThing().clone();\r\n/* 56: */ }",
"T getTranslation(DO obj, @NotNull Language language);",
"private BuildTranslations () {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"private void translate()\r\n {\r\n for(int x = 0;x<14;x++)\r\n {\r\n pack.add(new Card(sPack.get(x)));\r\n }\r\n \r\n }",
"private void updateTranslated() {\r\n\r\n\tfloat[] dp = new float[3];\r\n\tTools3d.subtract(p, _p, dp);\r\n\r\n\tfor (int i = 0; i < npoints * 3; i+= 3) {\r\n\t // translate by adding the amount local origin has moved by\r\n\t ps[i] += dp[0];\r\n\t ps[i + 1] += dp[1];\r\n\t ps[i + 2] += dp[2];\r\n\t}\r\n\t\r\n\t// reset bounding box and clear dirty flag\r\n\tbox.setBB();\r\n\tdirtyT = false;\r\n\r\n\t// finally\r\n\t_p[0] = p[0];\r\n\t_p[1] = p[1];\r\n\t_p[2] = p[2];\r\n }",
"public void translateParents(final ArrayList<Integer> indexMapping) {\n for (int i = 0; i < this.parents.size(); i++) {\n this.parents.set(i, indexMapping.indexOf(this.parents.get(i)));\n }\n }",
"public void translateTransform(Vector3f trans) {\r\n\t\tm[0][0] = 1.0f; m[0][1] = 0.0f; m[0][2] = 0.0f; m[0][3] = trans.x;\r\n\t\tm[1][0] = 0.0f; m[1][1] = 1.0f; m[1][2] = 0.0f; m[1][3] = trans.y;\r\n\t\tm[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = 1.0f; m[2][3] = trans.z;\r\n\t\tm[3][0] = 0.0f; m[3][1] = 0.0f; m[3][2] = 0.0f; m[3][3] = 1.0f;\r\n\r\n\t}",
"public FlatMapDTO handleTranslation() {\n return translations;\n }",
"public static List<String> translate(String srcText, String srcLang, String targetLang)\r\n throws IOException {\r\n return translate(srcText, srcLang, targetLang, DEFAULT_TRANSLATE_MODE, DEFAULT_CHARSET);\r\n }",
"Builder addInLanguage(Text value);",
"public void translate( float x, float y, float z )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.set( new Vector3f( x, y, z ) );\n\t\tmat.mul( opMat );\n\t}",
"private char translateChar(char[] mapping, char character)\n { if (character==' ') return character;\n\n int lower = lowerKeyCodeMapping.indexOf(character);\n int upper = upperKeyCodeMapping.indexOf(character);\n\n int mapValue = lower;\n if (lower<0) mapValue = upper;\n if (mapValue<0) return '\\0';\n return mapping[mapValue];\n }",
"public interface IDocumentVectorizer extends IComponent {\n \n public IRealVector vectorize(String text) throws Exception;\n public void setVectors(IWordToVectorMap wvmap);\n \n}",
"private String translateExpression(PropertyExpression e) {\n if (e.getObjectExpression() instanceof BinaryExpression) {\n BinaryExpression be = (BinaryExpression) e.getObjectExpression();\n if (be.getOperation().getText().equals(\"[\")) {\n String left = translateExpression(be.getLeftExpression());\n if (left.equals(inputName)) {\n return withInputSuffix(e.getPropertyAsString()) + \"[\" + translateExpression(be.getRightExpression()) + \"]\";\n }\n }\n }\n\n\n String obj = translateExpression(e.getObjectExpression());\n //TODO fix for \"not in main case\"\n //if (obj.equals(outputName) && shaderType.equals(\"vs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(outputName)) return withOutputSuffix(e.getPropertyAsString());\n //TODO fix for \"not in main case\"\n //if (obj.equals(inputName) && shaderType.equals(\"fs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(inputName)) return withInputSuffix(e.getPropertyAsString());\n //if (obj.equals(outputName)) return e.getPropertyAsString();\n //if (obj.equals(inputName)) return e.getPropertyAsString();\n if (obj.equals(\"\")) return e.getPropertyAsString();\n if ((e.getObjectExpression() instanceof BinaryExpression)) return \"(\" + obj + \").\" + e.getPropertyAsString();\n return obj + \".\" + e.getPropertyAsString();\n }",
"public static String LangLabel(int X,int Y){\n \n if ( inicializovane == false){constructor();}\n \n String SlovoDaloSlovo = \"empty\";\n switch (X) {\n case 1: \n SlovoDaloSlovo=SK.get(Y);\n break;\n case 2:\n SlovoDaloSlovo=CZ.get(Y);\n break;\n case 3:\n SlovoDaloSlovo=EN.get(Y);\n break;\n }\n return SlovoDaloSlovo;\n}",
"protected void buildFastLatinTable(android.icu.impl.coll.CollationData r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: android.icu.impl.coll.CollationDataBuilder.buildFastLatinTable(android.icu.impl.coll.CollationData):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.buildFastLatinTable(android.icu.impl.coll.CollationData):void\");\n }"
] | [
"0.68947065",
"0.64633685",
"0.61601466",
"0.6150505",
"0.6098126",
"0.6071854",
"0.599841",
"0.59942156",
"0.59810704",
"0.5869697",
"0.58622533",
"0.58390373",
"0.5733231",
"0.57302296",
"0.5706861",
"0.5687478",
"0.5680829",
"0.5665859",
"0.5658602",
"0.56097734",
"0.55816954",
"0.55414337",
"0.553904",
"0.55025965",
"0.54674083",
"0.5424318",
"0.5420166",
"0.5415689",
"0.5393121",
"0.5376596",
"0.53687006",
"0.5305341",
"0.529586",
"0.52453494",
"0.52430165",
"0.51992667",
"0.51741135",
"0.5169612",
"0.51664203",
"0.5140839",
"0.5123893",
"0.5115078",
"0.5114296",
"0.5096864",
"0.5088992",
"0.5071799",
"0.5068435",
"0.5052593",
"0.5049853",
"0.50227475",
"0.50103104",
"0.4992235",
"0.4983119",
"0.49334097",
"0.49203733",
"0.4913932",
"0.49075034",
"0.49073803",
"0.49030644",
"0.48948634",
"0.48909533",
"0.4885763",
"0.4884835",
"0.4869625",
"0.4859948",
"0.48528224",
"0.484499",
"0.48262927",
"0.4816191",
"0.4792",
"0.47825202",
"0.47759113",
"0.47749025",
"0.4773866",
"0.4768344",
"0.47588375",
"0.4747313",
"0.47338393",
"0.47311315",
"0.47283775",
"0.47241515",
"0.4717804",
"0.47081894",
"0.46954188",
"0.46831486",
"0.46810824",
"0.46764514",
"0.46719268",
"0.46702126",
"0.46679792",
"0.46669224",
"0.46649575",
"0.46567333",
"0.46514168",
"0.46473858",
"0.46457192",
"0.4634082",
"0.46278387",
"0.46264273",
"0.4623961"
] | 0.50607115 | 47 |
Make a copy of this SystemFunction. This is required only for system functions such as regex functions that maintain state on behalf of a particular caller. | @Override
public Translate copy() {
Translate copy = (Translate) SystemFunction.makeFunction(getFunctionName().getLocalPart(), getRetainedStaticContext(), getArity());
copy.staticMap = staticMap;
return copy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public FunctionLibrary copy() {\n return this;\n }",
"public Closure copy_function(){\n Closure newClosure = new Closure(this.getParent(), this.getNode());\n newClosure.isFunction = this.isFunction;\n newClosure.returning = this.returning;\n newClosure.belongObject = this.belongObject;\n return newClosure;\n }",
"public Function clone();",
"public State dup (State self)\n {\n if (self == null)\n return null;\n\n State copy = new State ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.address = self.address;\n copy.addressPort = self.addressPort;\n copy.generation = self.generation;\n copy.max_version = self.max_version;\n copy.extra = new VersionedMap (self.extra);\n return copy;\n }",
"public static void copyConstructor(){\n\t}",
"@Override\n\tpublic function copy() {\n\t\tMonom M=new Monom(this.get_coefficient(),this.get_power());\n\t\t\n\t\treturn M;\n\t}",
"@Override\r\n\tpublic DistributionSystemSetupTimes clone() {\r\n\t\tfinal DistributionSystemSetupTimes clone=new DistributionSystemSetupTimes();\r\n\t\tclone.setData(this);\r\n\r\n\t\treturn clone;\r\n\t}",
"Prototype makeCopy();",
"public void copy() {\n\n\t}",
"public State copy() {\n State that = new State(this.registers.length);\n for (int i=0; i<this.registers.length; ++i) {\n Object a = this.registers[i];\n if (a == null) continue;\n if (!(a instanceof Set))\n that.registers[i] = a;\n else\n that.registers[i] = NodeSet.FACTORY.makeSet((Set)a);\n }\n if(TRACE_REGISTERS) System.out.println(\"Copying state \" + Arrays.asList(that.registers));\n return that;\n }",
"public abstract SoftwareLight copy();",
"public Object clone() {\n\t\treturn(new FileSystem(_device, _mount, _type));\n\t}",
"static void setCopying(){isCopying=true;}",
"protected FunctionExecutionContext(final FunctionExecutionContext copyFrom) {\n super(copyFrom);\n }",
"@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}",
"public Object clone() {\n AggregateSymbol copy = new AggregateSymbol(getName(), getAggregateFunction(), isDistinct(), LanguageObject.Util.deepClone(getArgs()));\n if (orderBy != null) {\n copy.setOrderBy(orderBy.clone());\n }\n if (condition != null) {\n copy.setCondition((Expression) condition.clone());\n }\n copy.isWindowed = this.isWindowed;\n copy.type = this.type;\n copy.setFunctionDescriptor(getFunctionDescriptor());\n return copy;\n }",
"public CFExp deepCopy(){\r\n return this;\r\n }",
"public Function[] getFunctionSet() {\n Function[] copyFunctionSet = new Function[functionSet.length];\n for(int i = 0; i < functionSet.length; i++){\n copyFunctionSet[i] = functionSet[i].softClone();\n }\n return copyFunctionSet;\n }",
"public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }",
"protected Shingle copy() {\n return new Shingle(this);\n }",
"public SoPickedPoint \ncopy() \n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPickedPoint newCopy = new SoPickedPoint(this);\n return newCopy;\n}",
"@Override\r\n\tpublic LogicalValue copy() {\r\n\t\treturn new Pointer(target);\r\n\t}",
"public TurtleState copy() {\n\t\treturn new TurtleState(position.copy(), direction.copy(), color, shift);\n\t}",
"@Override\n public MiniMover64RNG copy() {\n return new MiniMover64RNG(state);\n }",
"static void setNotCopying(){isCopying=false;}",
"private final State copy( State state)\n {\n State copy = new State();\n copy.index = counter++;\n copy.stackOps = Arrays.copyOf( state.stackOps, state.stackOps.length);\n copy.gotos = Arrays.copyOf( state.gotos, state.gotos.length);\n itemSetMap.put( copy, itemSetMap.get( state));\n return copy;\n }",
"public Object clone() {\n SPProgram prog = (SPProgram)super.clone();\n\n if (_piInfo != null) {\n prog._piInfo = (PIInfo)_piInfo.clone();\n }\n\n return prog;\n }",
"public Function( Function base )\n {\n name = base.name;\n gid = base.gid;\n if ( base.data != null )\n data = new Hex( base.data );\n notes = base.notes;\n upgrade = base.upgrade;\n serial = base.serial;\n keyflags = base.keyflags;\n if ( base.icon != null )\n// icon = new RMIcon( base.icon );\n icon = base.icon; // *** not sure why it needed to be copied\n }",
"public JsonFactory copy()\n/* */ {\n/* 324 */ _checkInvalidCopy(JsonFactory.class);\n/* */ \n/* 326 */ return new JsonFactory(this, null);\n/* */ }",
"public Ping dup (Ping self)\n {\n if (self == null)\n return null;\n\n Ping copy = new Ping ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.digest = new ArrayList <State> (self.digest);\n return copy;\n }",
"public StateInfo copy() {\n return new StateInfo(this);\n }",
"public void dup() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->dup() unimplemented!\\n\");\n }",
"public SymbolTable copy() {\n\t\tSymbolTable st = new SymbolTable();\n\t\tst.var = (HashMap<String, Variable>) var.clone();\n\t\tst.name = new HashMap<String, NameSSA>();\n\t\tfor (String n : name.keySet()) {\n\t\t\tst.name.put(n, (NameSSA) name.get(n).clone());\n\t\t}\n\t\treturn st;\n\t}",
"private void selfClone() {\n stroke = stroke.clone();\n }",
"public StackManipulation cached() {\n return new Cached(this);\n }",
"public Object clone() {\n FileTransfer ft = new FileTransfer();\n ft.mLogicalFile = new String(this.mLogicalFile);\n ft.mFlags = (BitSet) this.mFlags.clone();\n ft.mTransferFlag = this.mTransferFlag;\n ft.mSize = this.mSize;\n ft.mType = this.mType;\n ft.mJob = new String(this.mJob);\n ft.mPriority = this.mPriority;\n ft.mURLForRegistrationOnDestination = this.mURLForRegistrationOnDestination;\n ft.mMetadata = (Metadata) this.mMetadata.clone();\n ft.mVerifySymlinkSource = this.mVerifySymlinkSource;\n // the maps are not cloned underneath\n\n return ft;\n }",
"private FunctionBasis(FunctionBasis existing) {\n\t this.fs = existing.fs;\n\t setParameters(new double[existing.getNumberOfParameters()]);\n\t}",
"private SystemValue(final String nm, final Object obj, final Field field, final Consumer<V> method) {\n\t super(nm, Type.SYSTEM, false);\n\n\t object = obj;\n\t getField = field;\n\t setMethod = method;\n\t}",
"public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }",
"public java.lang.Object clone() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: gov.nist.javax.sip.header.SIPDate.clone():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.clone():java.lang.Object\");\n }",
"@Override\n public LocalStore<V> copy() {\n return this;\n }",
"public static BindState copyOf(BindState pState) {\n return new BindState(pState.stateOnLastFunctionCall, pState.localDefs, pState.globalDefs);\n }",
"@Override\n\tpublic Manager copy() {\n\t\treturn new Fire();\n\t}",
"public Tree<K, V> copy() {\n\t\tTree<K, V> copy = EmptyTree.getInstance(), t = this;\n\t\treturn copy(t, copy);\n\t}",
"@Override\n public AbstractRelic makeCopy() {\n return new SpiritualRecovery();\n }",
"@Override\n public GlobalDecl clone() {\n return new GlobalDecl(this);\n }",
"@Override\n public LineSymbolizer<R> clone() {\n final var clone = (LineSymbolizer<R>) super.clone();\n clone.selfClone();\n return clone;\n }",
"public abstract LambdaTerm deepCopy();",
"@Override\n public GraphicsState clone(\n )\n {\n GraphicsState clone;\n {\n // Shallow copy.\n try\n {clone = (GraphicsState)super.clone();}\n catch(CloneNotSupportedException e)\n {throw new RuntimeException(e);} // NOTE: It should never happen.\n\n // Deep copy.\n /* NOTE: Mutable objects are to be cloned. */\n clone.ctm = (AffineTransform)ctm.clone();\n clone.tlm = (AffineTransform)tlm.clone();\n clone.tm = (AffineTransform)tm.clone();\n }\n return clone;\n }",
"StackManipulation cached();",
"public CopyBuilder copy() {\n return new CopyBuilder(this);\n }",
"public O copy() {\n return value();\n }",
"public Object clone() {\n\t\tSymbolTable st = new SymbolTable();\n\t\tst.var = (HashMap<String, Variable>) var.clone();\n\t\tst.name = new HashMap<String, NameSSA>();\n\t\tfor (String n : name.keySet()) {\n\t\t\tst.name.put(n, (NameSSA) name.get(n).clone());\n\t\t}\n\t\tst.save = (Stack<HashMap<String, ?>>) save.clone();\n\t\treturn st;\n\t}",
"public Dispatchable copy() {\n return this;\n }",
"@Override\n\tpublic Automaton clone() {\n\t\tAutomaton a;\n\t\t// Try to create a new object.\n\t\ttry {\n\t\t\ta = getClass().newInstance();\n\t\t} catch (final Throwable e) {\n\t\t\t// Well golly, we're sure screwed now!\n\t\t\tlogger.error(\"Warning: clone of automaton failed: {}\", e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t\ta.setEnvironmentFrame(getEnvironmentFrame());\n\n\t\t// Copy over the states.\n\t\tfinal HashMap<State, State> map = new HashMap<>(); // Old states to new\n\t\t// states.\n\t\tstates.forEach(state -> {\n\t\t\tfinal State newState = new State(state.getID(), new Point(state.getPoint()), a);\n\t\t\tnewState.setLabel(state.getLabel());\n\t\t\tnewState.setName(state.getName());\n\t\t\tmap.put(state, newState);\n\t\t\ta.addState(newState);\n\t\t\tif (this instanceof MooreMachine) {\n\t\t\t\t((MooreMachine) a).setOutput(newState, ((MooreMachine) this).getOutput(state));\n\t\t\t}\n\t\t});\n\n\t\tfinalStates.forEach(state -> {\n\t\t\ta.addFinalState(map.get(state));\n\t\t});\n\n\t\ta.setInitialState(map.get(getInitialState()));\n\n\t\t// Copy over the transitions.\n\n\t\tstates.forEach(state -> {\n\t\t\tfinal State from = map.get(state);\n\t\t\tgetTransitionsFromState(state).forEach(transition -> {\n\t\t\t\tfinal State to = map.get(transition.getToState());\n\t\t\t\tSystem.err.println(\"Transition name: \" + transition.toString());\n\t\t\t\tfinal Transition toBeAdded = transition.clone();\n\t\t\t\ttoBeAdded.setFromState(from);\n\t\t\t\ttoBeAdded.setToState(to);\n\t\t\t\tSystem.err.println(\"toBeAdded is null: \" + (toBeAdded == null));\n\t\t\t\tSystem.err.println(\"toBeAdded.from is null: \" + (toBeAdded.getFromState() == null));\n\t\t\t\tSystem.err.println(\"toBeAdded.to is null: \" + (toBeAdded.getToState() == null));\n\t\t\t\ta.addTransition(toBeAdded);\n\t\t\t});\n\t\t});\n\n\t\tfinal List<Note> notes = getNotes();\n\t\tfinal List<Note> copyNotes = a.getNotes();\n\t\tcheckArgument(notes.size() == copyNotes.size());\n\n\t\tIntStream.range(0, notes.size()).forEach(i -> {\n\t\t\ta.addNote(new Note(notes.get(i).getAutoPoint(), notes.get(i).getText()));\n\t\t\tcopyNotes.get(i).setView(notes.get(i).getView());\n\t\t});\n\t\t// Should be done now!\n\t\treturn a;\n\t}",
"public Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}",
"@Override\n public LogStateColumn copy() {\n LogStateColumn newXCol = new LogStateColumn();\n copy(this, newXCol);\n return newXCol;\n }",
"public WorldState clone ()\n\t{\n\t\tWorldState clone = new WorldState();\n\t\tclone.copy(this);\n\t\treturn clone;\n\t}",
"public Expression deepCopy()\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}",
"T copy();",
"@Override\r\n public Serializable createStaticState() {\r\n return this.m_func.createStaticState();\r\n }",
"private LinkgrabberFilterRule getCurrentCopy() {\r\n LinkgrabberFilterRule ret = this.rule.duplicate();\r\n save(ret);\r\n return ret;\r\n }",
"public LogFramework copy() {\r\n\t\tLogFramework copy = new LogFramework();\r\n\t\tcopy.importSettings(this);\r\n\t\treturn copy;\r\n\t}",
"Object clone();",
"Object clone();",
"public AgwCslOper clone() {\n return (AgwCslOper)cloneContent(new AgwCslOper());\n }",
"protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }",
"protected T copy() {\n\n // Initialize.\n T copy = null;\n\n try {\n\n // Create an instance of this entity class.\n copy = this.entityClass.newInstance();\n\n // Create a copy.\n copy.setCreateTime(this.getCreateTime());\n copy.setId(this.getId());\n copy.setModifyTime(this.getModifyTime());\n }\n catch (IllegalAccessException e) {\n // Ignore.\n }\n catch (InstantiationException e) {\n // Ignore.\n }\n\n return copy;\n }",
"public Hello dup (Hello self)\n {\n if (self == null)\n return null;\n\n Hello copy = new Hello ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.ipaddress = self.ipaddress;\n copy.mailbox = self.mailbox;\n copy.groups = new ArrayList <String> (self.groups);\n copy.status = self.status;\n copy.headers = new VersionedMap (self.headers);\n return copy;\n }",
"public fUML.Semantics.Classes.Kernel.Value new_() {\n return new RealPlusFunctionBehaviorExecution();\n }",
"public Object clone(){\n \t\n \treturn this;\n \t\n }",
"public Memoable copy()\n {\n return new Zuc256Engine(this);\n }",
"public AgwCslOper cloneShallow() {\n return (AgwCslOper)cloneShallowContent(new AgwCslOper());\n }",
"public AccessPath copy() {\n HashMap m = new HashMap();\n IdentityHashCodeWrapper ap = IdentityHashCodeWrapper.create(this);\n AccessPath p = new AccessPath(this._field, this._n, this._last);\n m.put(ap, p);\n this.copy(m, p);\n return p;\n }",
"public Object clone() {\n return this.copy();\n }",
"@Override\n\tpublic OnlineRegression copyNew() {\n\t\tBayesianLinearRegression copy = new BayesianLinearRegression(dimension, this.prioriMeans, prioriPrecision);\n\t\tcopy.weights = this.weights.copyNew();\n\t\tcopy.covariance = this.covariance.copyNew();\n\t\tcopy.b = this.b.copyNew();\n\t\tcopy.numTrainedInstances = this.numTrainedInstances;\n\t\treturn copy;\n\t}",
"public void Duplicate()\n {\n\n tacc2 = tacc.clone();\n px2 = px.clone();\n py2 = py.clone();\n pz2 = pz.clone();\n\n tgyro2 = tgyro.clone();\n\n accx2 = accx.clone();\n accy2 = accy.clone();\n accz2 = accz.clone();\n\n lng2 = lng.clone();\n lat2 = lat.clone();\n }",
"@Override\n\tpublic DataType copy() throws BugTrap {\n\t\tInputFile file = new InputFile(this.pathName);\n\t\tfile.value = this.value;\n\t\treturn file;\n\t}",
"public Scm clone()\n {\n try\n {\n Scm copy = (Scm) super.clone();\n\n if ( copy.locations != null )\n {\n copy.locations = new java.util.LinkedHashMap( copy.locations );\n }\n\n return copy;\n }\n catch ( java.lang.Exception ex )\n {\n throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()\n + \" does not support clone()\" ).initCause( ex );\n }\n }",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public SimpleStyle copy() {\n\t\tSimpleStyle simpleStyle = new SimpleStyle();\n\t\tcopyIn(simpleStyle);\n\t\treturn simpleStyle;\n\t}",
"public Square copy() {\n\t\tSquare s = new Square(x,y);\n\t\ts.z = z;\n\t\ts.c = new Color(c.getRGB());\n\t\treturn s;\n\t}",
"public Gateway copyChanges() {\n Gateway copy = new Gateway();\n copy.mergeChanges(this);\n copy.resetChangeLog();\n return copy;\n }",
"public Function() {\r\n //y = 0;\r\n //I am asked for the same task at clear(); so I typed my reset code there,\r\n //and just called the method here to make things easier.\r\n clear(); \r\n\t}",
"@Override public T clone() {\n T x = (T)super.clone();\n x.setCompleter(this); // Set completer, what used to be a final field\n x._topLocal = false; // Not a top job\n x._nleft = x._nrite = null;\n x. _left = x. _rite = null;\n x._fs = _fs;\n x._profile = null; // Clone needs its own profile\n x.setPendingCount(0); // Volatile write for completer field; reset pending count also\n return x;\n }",
"protected abstract VerifiableSensorOperation doClone();",
"public Feature copy() {\n\t\tFeature ret = new AbbeelFeature();\n\t\treturn ret;\n\t}",
"Function createFunction();",
"public QPenaltyFunction clone() {\n\t\ttry {\n\t\t\treturn (QPenaltyFunction) super.clone();\n\t\t} catch (CloneNotSupportedException 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}",
"private FunctionUtils() {\n }",
"public Address copy() {\n\t\tAddress copy = new Address(this.street, this.city, this.state, this.zipCode);\n\t\treturn copy;\n\t}",
"@Override\n public AbstractRelic makeCopy() {\n return new Compendium();\n }",
"public abstract State clone();",
"public Object cloner() {\n return cloner((Sommet)origine.cloner(), (Sommet)destination.cloner());\n }",
"public AcGlobalLinuxTimeZonePolicy getCopy()\n {\n return (AcGlobalLinuxTimeZonePolicy)super.getCopy();\n }",
"public abstract Instance duplicate();",
"public Whisper dup (Whisper self)\n {\n if (self == null)\n return null;\n\n Whisper copy = new Whisper ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.content = self.content.duplicate ();\n return copy;\n }"
] | [
"0.6966108",
"0.65365946",
"0.6002989",
"0.5770314",
"0.5618613",
"0.5576614",
"0.5554241",
"0.55121315",
"0.544483",
"0.53272825",
"0.5322077",
"0.5320126",
"0.53134483",
"0.5300734",
"0.52944726",
"0.5263325",
"0.52477264",
"0.5214391",
"0.5168646",
"0.5151985",
"0.51475954",
"0.514389",
"0.5143547",
"0.51373506",
"0.512148",
"0.51028883",
"0.5095662",
"0.5093179",
"0.50833714",
"0.5077827",
"0.50721794",
"0.50580525",
"0.5055351",
"0.504335",
"0.5035025",
"0.5026327",
"0.5014737",
"0.49977306",
"0.49947572",
"0.4994141",
"0.49940437",
"0.49915805",
"0.4990387",
"0.49897417",
"0.49880698",
"0.49837744",
"0.4958914",
"0.49272802",
"0.49192154",
"0.4916267",
"0.4909415",
"0.48992515",
"0.4888163",
"0.48777035",
"0.4874547",
"0.48718646",
"0.4868881",
"0.4857181",
"0.48565218",
"0.48538077",
"0.48525006",
"0.4849202",
"0.48450494",
"0.48380503",
"0.48380503",
"0.4835605",
"0.4831603",
"0.4826071",
"0.48115686",
"0.4808278",
"0.4803036",
"0.48005855",
"0.47998533",
"0.47926712",
"0.47864598",
"0.47860372",
"0.47855428",
"0.4776516",
"0.47676507",
"0.47671703",
"0.47671703",
"0.47671703",
"0.47671703",
"0.47659972",
"0.4763261",
"0.4757246",
"0.4737027",
"0.47339115",
"0.4733226",
"0.47304606",
"0.47231963",
"0.47192198",
"0.46908832",
"0.4689514",
"0.46860772",
"0.46675974",
"0.46632293",
"0.46629235",
"0.46550283",
"0.46486077"
] | 0.7241237 | 0 |
methods in interface doesn't have a body | public double getArea(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }",
"public interface a {\n void a();\n }",
"public interface a {\n void a();\n }",
"interface C34503a {\n void bMl();\n }",
"@Override\n public boolean isInterface() { return false; }",
"public void method_1()\n {\n System.out.println(\"Interface method.\");\n }",
"public void interfaceMethod() {\n\t\tSystem.out.println(\"overriden method from interface\");\t\t\r\n\t}",
"public interface Pasticcere {\r\n //No attributes\r\n public void accendiForno();\r\n}",
"public interface IBibliotheque {\n\t// Start of user code (user defined attributes for IBibliotheque)\n\n\t// End of user code\n\n\t/**\n\t * Description of the method listeDesEmpruntsEnCours.\n\t */\n\tpublic void listeDesEmpruntsEnCours();\n\n\t// Start of user code (user defined methods for IBibliotheque)\n\n\t// End of user code\n\n}",
"interface I {}",
"interface A {\n void a();\n}",
"public interface i {\n}",
"public interface b {\n void a();\n }",
"public interface b {\n void a();\n }",
"public interface AInterface {\n\n public void say();\n\n}",
"public void testCreateEmptyInterfaceMethod() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setBody(\";\\n\");\n assertSourceEquals(\"source code incorrect\", \"public void foo();\\n\", method.getContents());\n }",
"public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}",
"public interface i {\n int a();\n\n boolean b();\n\n void c();\n}",
"public interface test {\n void test();\n}",
"interface Hi {\n // MUST BE IMPLEMENTED IN IMPLEMENTING CLASS!!\n void Okay(String q);\n}",
"public interface C11859a {\n void bvs();\n }",
"public interface C22486a {\n void bGQ();\n\n void cMy();\n }",
"private void withMethodBody(){\n\t\tSystem.out.print(\"This is without abstract \");\n\t\t}",
"public interface IFlyAminal {\n void fly();\n}",
"private static interface Base {\n\n public void foo();\n }",
"public interface Zrada\n{\n void accuse();\n}",
"public interface b {\n int a();\n }",
"public interface AnInterface {\n void f();\n\n void g();\n\n void h();\n}",
"public interface IFruit {\n\n void say();\n}",
"public interface A {\n void f();\n}",
"private void display3(){\n\t\tSystem.out.println(\"Private Method inside interface\");\n\t}",
"public interface Interface {\n void doSomething();\n void somethingElse(String arg);\n}",
"interface Test4{\r\n\tpublic void m1();\r\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public interface MyInterface {\n public void m1();\n public void m2();\n public void m3();\n public void m4();\n\n}",
"public void hello(){\n\t\tSystem.out.println(\"hello Interface\\n\");\n\t}",
"interface InWriter { // In interface class, all methods are abstract. (You can't specify the body)\n // public abstract void write(); By default all methods are public and abstract\n void write();\n}",
"public interface ViewBinhLuan {\n void DangBinhLuanThanhCong();\n void DangBinhLuanThatBai();\n}",
"public interface br {\n void mo4110a();\n}",
"public interface Hello {\n\n String hello();\n}",
"public interface C11922a {\n void bvR();\n }",
"public interface SampleA {\n void operation1();\n void operation2();\n}",
"interface IFly {\n void fly();\n}",
"public interface B\n{\n String foo();\n}",
"public interface FlyBehevour {\n void fly();\n}",
"public interface Hello {\n String sayHello();\n}",
"public interface a {\n }",
"public interface f {\n void a();\n}",
"public interface EmptyInterface {}",
"public interface BInf {\n\n void hello();\n\n}",
"public interface IPresenterHienThiSanPhamTheoDanhMuc {\n void LayDanhSachSP_theoMaLoai(int masp,boolean kiemtra);\n}",
"interface InterfaceDemo {\n int age =0; //接口中变量都是公开静态常量\n String name =null;\n abstract void aa();\n\n public abstract void display(); //接口中方法都是抽象的\n}",
"@Override\n\tpublic boolean isImplemented() {\n\t\treturn false;\n\t}",
"public interface HelloWorld {\n void sayHelloWorld();\n}",
"public interface d {\n void a();\n}",
"interface Sayable{ \n void say(); \n}",
"public interface ITire {\n\n /**\n * 轮胎\n */\n void tire();\n}",
"@Override\n\tpublic void method4() {\n\t\tSystem.out.println(\"Hello from MyInterface1 method4() \");\n\t}",
"public interface brr {\n void a(Object obj);\n}",
"@Override\n\tpublic void subtract() {\n\t\tSystem.out.println(\"This is an implementation of an interface\");\n\t}",
"public interface m {\n void a(boolean z);\n}",
"interface A {\n int summ(int x, int y);\n}",
"public interface Ave {\n\n public void voar();\n\n}",
"public interface IDeneme {\n \n void dene();\n}",
"public interface b {\n}",
"public interface b {\n}",
"interface U {\n public void A() ;\n public void B() ;\n public void C() ;\n}",
"public interface A {\n default void oi(){\n System.out.println(\"Dentro do oi de A\");\n }\n}",
"interface I{\n\n public void m1();\n public void m2();\n default void m3(){\n System.out.println(\"Default methods in interface\");\n }\n}",
"abstract interface I1 {\n public abstract void m1();\n}",
"protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)\n {\n this.symbolTable = symbolTable;\n this.m = m;\n this.stream = stream;\n if (m.comment () != null)\n m.comment ().generate (\" \", stream);\n stream.print (\" \");\n writeMethodSignature ();\n stream.println (\";\");\n }",
"interface Interface1 {\n\tpublic void getA();\n\n\tpublic void printA();\n}",
"public void myExtraMethod_login() {\n\tSystem.out.println(\"this is my method that i added to this class and not from interface. This is login\");\n}",
"default void display1(){\n\t\tSystem.out.println(\"Default Method inside interface\");\n\t}",
"interface Lengthy {}",
"public interface Citizen {\n public abstract void sayHello();\n}",
"interface A9 {\r\n void test(int i, String s1); //test method is taking some argument\r\n}",
"public interface B extends A {\n void b();\n}",
"public interface IFaci {\n}",
"public interface aqi {\n void a(int i, int i2, PhoneFavoriteSquareTileView phoneFavoriteSquareTileView);\n\n void b(int i, int i2, PhoneFavoriteSquareTileView phoneFavoriteSquareTileView);\n\n void q();\n\n void r();\n}",
"public interface ch\n{\n\n public abstract void a(bv bv, p p, h h, long l, int i, int j, \n IMediaItem imediaitem);\n}",
"interface InterfaceA {\n\tint a = 5;\n\tvoid show();\n\tint display();\n}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"default void defaultMethod() {\n System.out.println(\"from InterfaceA, default method...\");\n }",
"public interface AdditionalOperations extends Statements {\n}",
"public interface Pracujacy {\r\n void pracuj();\r\n}",
"public interface C0069a {\n void a();\n }",
"public interface Tigari {\npublic void printDetalii();\n}",
"interface a {\n int aadd();\n int sub();\n}",
"public interface HowToGo {\n void reachRome();\n}",
"public interface a extends IInterface {\n}",
"public interface eit {\n}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"public interface Service {\n void method1();\n void method2();\n}",
"public interface IService {\n void methodA();\n void methodB();\n void methodC();\n}",
"public interface Igual extends ComplexInstruction\n{\n}",
"public interface SourceAble {\n public void method1();\n\n public void method2();\n}",
"public interface I_ParametersLoaded\n{\n public void ParametersLoaded();\n}",
"interface A{\n void show();\n}",
"public interface i {\n void D(String str);\n\n void H();\n\n void L(String str);\n\n void b0(Response response);\n\n void c(List<DomainExpired> list);\n\n void h(Map<String, List<ExtendedMail>> map);\n\n void p(ApiError apiError);\n}",
"public interface se {\n void a(List<POI> list);\n\n boolean a();\n\n void b();\n\n boolean c();\n\n List<POI> d();\n\n POI e();\n\n POI f();\n}"
] | [
"0.70310414",
"0.70279855",
"0.70279855",
"0.7019117",
"0.6991274",
"0.6974614",
"0.6943519",
"0.6914708",
"0.69096667",
"0.6834076",
"0.6831706",
"0.6823186",
"0.6819997",
"0.6819997",
"0.6813797",
"0.6800636",
"0.679974",
"0.6772522",
"0.67633396",
"0.6681153",
"0.6673311",
"0.6666375",
"0.6635664",
"0.66187453",
"0.6616324",
"0.66110706",
"0.6605082",
"0.660431",
"0.6568295",
"0.65548617",
"0.65481627",
"0.65386",
"0.6535053",
"0.653041",
"0.6525301",
"0.65236515",
"0.65186036",
"0.65035206",
"0.6497991",
"0.6495941",
"0.64907503",
"0.649007",
"0.6487923",
"0.64838713",
"0.64668304",
"0.64661604",
"0.6463585",
"0.64493155",
"0.6439247",
"0.6437805",
"0.6433591",
"0.6431943",
"0.64252895",
"0.64088744",
"0.6400586",
"0.6399894",
"0.63987195",
"0.6397215",
"0.6395215",
"0.6388317",
"0.6379572",
"0.63596964",
"0.6356691",
"0.63517827",
"0.6343785",
"0.6343785",
"0.633993",
"0.6332427",
"0.6327291",
"0.63262516",
"0.63210446",
"0.6307361",
"0.630676",
"0.6305666",
"0.63042253",
"0.6301754",
"0.63004875",
"0.62983745",
"0.62893647",
"0.628906",
"0.62733644",
"0.62643164",
"0.62614816",
"0.6261355",
"0.6255628",
"0.6255281",
"0.6251469",
"0.62475896",
"0.62435704",
"0.62408787",
"0.6240089",
"0.6238622",
"0.6238484",
"0.6238135",
"0.6235682",
"0.62277234",
"0.6227122",
"0.62255305",
"0.62250465",
"0.6216078",
"0.6213933"
] | 0.0 | -1 |
nothing to be done. | public void componentHidden(ComponentEvent 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 public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\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\t\tprotected void run() {\n\t\t\t\r\n\t\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\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void baocun() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private void poetries() {\n\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"public void mo4359a() {\n }",
"protected void mo6255a() {\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"void berechneFlaeche() {\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"private void strin() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"private static void iterator() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"private final void i() {\n }",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tprotected void execute() {\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"private void test() {\n\n\t}",
"@Override\r\n\tprotected void processExecute() {\n\r\n\t}",
"private void init() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"private void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public void method_4270() {}",
"public void mo6081a() {\n }",
"private void m50366E() {\n }",
"private Singletion3() {}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}",
"@Override\n\tpublic void processing() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void prepare() {\n\t\t\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\n protected void init() {\n }",
"protected boolean func_70814_o() { return true; }",
"private void offer() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void done() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n protected void execute() {\n \n }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void processInit() {\n\r\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }"
] | [
"0.65938824",
"0.65493727",
"0.6546731",
"0.65278786",
"0.64548033",
"0.6426877",
"0.6380367",
"0.63456506",
"0.63330287",
"0.63117945",
"0.62731594",
"0.62697214",
"0.62693346",
"0.62693346",
"0.6251446",
"0.6249716",
"0.6249716",
"0.620533",
"0.61531216",
"0.6138579",
"0.61116433",
"0.61013275",
"0.60904044",
"0.60903144",
"0.6086529",
"0.6073127",
"0.60589296",
"0.6052411",
"0.60428035",
"0.6037798",
"0.6037798",
"0.60345525",
"0.60323745",
"0.60149604",
"0.60102",
"0.59846586",
"0.59768945",
"0.5973492",
"0.5970402",
"0.5970402",
"0.59626585",
"0.5953586",
"0.5953586",
"0.5941767",
"0.5936057",
"0.59287703",
"0.5918322",
"0.5904764",
"0.5902704",
"0.5900995",
"0.5892778",
"0.58809096",
"0.58598244",
"0.5856813",
"0.5840761",
"0.5835154",
"0.58275",
"0.5820766",
"0.5814875",
"0.5805121",
"0.5795372",
"0.5792158",
"0.5790337",
"0.5790337",
"0.5788916",
"0.57861996",
"0.5783222",
"0.57749224",
"0.5773009",
"0.5773009",
"0.5773009",
"0.5773009",
"0.5773009",
"0.5773009",
"0.5773009",
"0.57691306",
"0.57678455",
"0.5765157",
"0.5764861",
"0.5764474",
"0.5763777",
"0.5759965",
"0.575515",
"0.5754791",
"0.5753608",
"0.5752126",
"0.5751675",
"0.5746849",
"0.5746849",
"0.5746849",
"0.5732333",
"0.57313675",
"0.57205063",
"0.5714114",
"0.57124096",
"0.57122976",
"0.5712034",
"0.57107157",
"0.570967",
"0.570967",
"0.570967"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Collection<? extends GrantedAuthority> getAuthorities() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
String input = "( 1 + ( ( 2 + 3 ) ( 4 5 ) ) )"; | public static void main(String[] args) {
String input = "( ( 1 + sqrt ( 5 ) ) / 2 )";
Stack<String> ops = new Stack<String>();
Stack<Double> vals = new Stack<Double>();
String[] temps = input.split(" ");
for (String temp : temps) {
if (temp.equals("(")) ;
else if (temp.equals("+")) ops.push(temp);
else if (temp.equals("-")) ops.push(temp);
else if (temp.equals("*")) ops.push(temp);
else if (temp.equals("/")) ops.push(temp);
else if (temp.equals("sqrt")) ops.push(temp);
else if (temp.equals(")")){
String op = ops.pop();
double v = vals.pop();
if (op.equals("+")) v = vals.pop() + v;
else if (op.equals("-")) v = vals.pop() - v;
else if (op.equals("*")) v = vals.pop() * v;
else if (op.equals("/")) v = vals.pop() / v;
else if (op.equals("sqrt")) v = Math.sqrt(v);
vals.push(v);
}else {
vals.push(Double.parseDouble(temp));
}
}
System.out.println(vals.pop());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int evaluateExpression(String expression) {\r\n // Create operandStack of ints to store operands\r\n Stack<Integer> operandStack = new Stack<>();\r\n \r\n // Create operatorStack of characters to store operators\r\n Stack<Character> operatorStack = new Stack<>();\r\n \r\n // Insert Blanks\r\n expression = insertBlanks(expression);\r\n \r\n // Extract operands and operators by splitting around blanks\r\n String[] tokens = expression.split(\" \");\r\n \r\n /* Phase 1: Scan tokens\r\n Enhanced for loop, puts every element of tokens in token each time\r\n Like writing token = tokens[i] every time\r\n */\r\n for (String token: tokens) { \r\n if(token.length() == 0) // It's a blank\r\n continue; // Go to the while loop\r\n else if (token.charAt(0) == '+' || token.charAt(0) == '-') {\r\n // process all +, -, *, / in the top of the operator stack\r\n while (!operatorStack.isEmpty() && // While stack isn't empty\r\n (operatorStack.peek() == '+' || // and has an operator on top\r\n operatorStack.peek() == '-' || // Like if you had (2 * 3) + 5 \r\n operatorStack.peek() == '*' || // Or if you had (2 - 3) + 5, do that last no matter what b/c +- is lowest priority\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n // After processing the all the previous operations, push the +- operator onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '*' || token.charAt(0) == '/') {\r\n // Proess all *, / in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '*' ||\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the * or / onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '^') {\r\n // Proess all ^ in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the ^ onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if(token.trim().charAt(0) == '(') {\r\n operatorStack.push('(');\r\n } \r\n else if(token.trim().charAt(0) == ')') {\r\n while(operatorStack.peek() != '(') {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n operatorStack.pop(); // pop\r\n }\r\n else {\r\n operandStack.push(new Integer(token));\r\n }\r\n }\r\n // Phase two: process everything left over\r\n while (!operatorStack.isEmpty()) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n return operandStack.pop(); \r\n }",
"public static String evaluate( String expr ) \n {\n\tString[] arr = expr.split(\"\\\\s+\");\n\tLLStack<String> nums = new LLStack<String>();\n\tLLStack<String> noClose = new LLStack<String>();\n\tint op = 0;\n\n\tfor(String i : arr){ \n\t if(i.equals(\")\")){ //when you reach the closing parenthesis\n\t\tString top = noClose.pop(); //start going through this part of the expression\n\t\tnums.push(i); //add ( to stack for unload\n\t\t\n\t\twhile(!top.equals(\"(\")){ //until you reach the (, where the expression ends\n\t\t\t \n\t\t if(top.equals(\"+\")) op = 1;\n\t\t else if(top.equals(\"-\")) op = 2;\n\t\t else if(top.equals(\"*\")) op = 3;\n\n\t\t else nums.push(top); //if it's not an operand\n\n\t\t top = noClose.pop();\n\t\t}\n\n\t\tnoClose.push(unload(op, nums));\n\t }\n\t \n\t else noClose.push(i); //pushed into a stack of what's in this ()\n \n\t}//end of for loop \n \n\treturn noClose.peek();\n }",
"public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }",
"public int calculate(String s) {\n Deque<Integer> stack = new ArrayDeque<>();\n\n // Init\n int result = 0; // For the on-going result\n int sign = 1; // 1 means positive, -1 means negative\n int operand = 0;\n\n // 1 + 2 + 1\n // The tricky part is that we find an operator/sign first, then we know\n // the operand after that. We save the sign first, and when we evaluate the\n // expression so far, we use that sign.\n\n // Go through the expression string character by character.\n // Evaluate to the left when we find '+', '-', ')', or end of loop.\n // We use a stack when we find parenthesis.\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (Character.isDigit(c)) {\n // Form operand, since it could be more than one digit.\n operand = 10 * operand + (c - '0');\n } else if (c == '+') {\n // We can evaluate the expression to the left,\n // with result, sign, operand\n result += sign * operand;\n // Save the recently encountered '+' sign\n sign = 1;\n // Reset operand\n operand = 0;\n } else if (c == '-') {\n // We can evaluate the expression to the left,\n result += sign * operand;\n // Save the '-' sign.\n sign = -1;\n operand = 0;\n } else if (c == '(') {\n // Push the result so far and sign onto the stack, for later use.\n // We push the result first, then sign in the stack.\n stack.push(result);\n stack.push(sign);\n // Reset result, sign, and operand, as if new evaluation begins for the new\n // sub-expression\n result = 0;\n sign = 1;\n operand = 0;\n } else if (c == ')') {\n // We can evaluate the sub-expression to the left.\n result += sign * operand;\n // Now that we know the sub-expression ended, we can also evaluate to the left.\n // First we take the sign out of the stack, and then add the result we saved\n // before to the result of the sub-expression.\n result *= stack.pop();\n result += stack.pop();\n // Reset sign and operand.\n sign = 1;\n operand = 0;\n }\n }\n\n // We need to evaluate again.\n result += sign * operand;\n\n return result;\n }",
"public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}",
"public static int calculate1(String s) {\n\t\tList<String> tokens = tokenize(s);\n\t\tint sign = 1;\n\t\tint res = 0;\n\t\tStack<Integer> st = new Stack<Integer>();\n\t\tfor(String token: tokens) {\n\t\t\ttoken = token.trim();\n\t\t\tif(token.equals(\"+\"))\n\t\t\t\tsign = 1;\n\t\t\telse if(token.equals(\"-\"))\n\t\t\t\tsign = -1;\n\t\t\telse if(token.equals(\"(\")) {\n\t\t\t\tst.push(res);\n\t\t\t\tst.push(sign);\n\t\t\t\tres = 0;\n\t\t\t\tsign = 1;\n\t\t\t} else if(token.equals(\")\")) {\n\t\t\t\tres = st.pop() * res + st.pop();\n\t\t\t} else {\n\t\t\t\tres += sign*Integer.parseInt(token);\n\t\t\t}\n\t\t}\n\t\treturn res;\n }",
"public static void main(String[] args) {\n String str = \"(ed(et(oc))el)\";\n// String str = \"(abcd)\";\n str = \"ta()usw((((a))))\";\n//\n //le(et(oc))de\n //le(etco)de\n// String[] arr = str.split(\"\\\\(\");\n// System.out.println(Arrays.toString(arr));\n Solution solution = new Solution();\n System.out.println(solution.reverseParentheses(str));\n }",
"public static int calculate2(String s) {\n\t\tStack<Character> operators = new Stack<Character>();\n\t\tStack<Integer> operands = new Stack<Integer>();\n\t\t\n\t\tList<String> tokens = tokenize(s);\n\t\tfor (String token : tokens) {\n\t\t\ttoken = token.trim();\n\t\t\tif (!Character.isDigit(token.charAt(0))) {\n\t\t\t\tchar op = token.charAt(0);\n\t\t\t\tif (op == '+' || op == '-' || op == '*' || op == '/') {\n\t\t\t\t\twhile (!operators.empty() && priority(op) <= priority(operators.peek()))\n\t\t\t\t\t\teval(operators.pop(), operands);\n\t\t\t\t\toperators.push(op);\n\t\t\t\t} else if (op == '(')\n\t\t\t\t\toperators.push(op);\n\t\t\t\telse {\n\t\t\t\t\twhile (!operators.empty()) {\n\t\t\t\t\t\tchar tmp = operators.pop();\n\t\t\t\t\t\tif (tmp == '(')\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\teval(tmp, operands);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\toperands.push(Integer.parseInt(token));\n\t\t}\n\t\twhile(! operators.empty())\n\t\t\teval(operators.pop(), operands);\n\t\treturn operands.pop();\n\t}",
"public int calculate_2(String s) {\n if ((s == null) || (s.length() == 0)) return 0;\n int i = 0;\n int j = 0;\n s = s.replace(\" \", \"\");\n String val = \"\";\n boolean ifStop = true;\n while (i < s.length()) {\n if ((s.charAt(i) == '+') || (s.charAt(i) == '-') || (s.charAt(i) == '*')\n || (s.charAt(i) == '/')) {\n j = i;\n ifStop = false;\n break;\n } else {\n val = val + s.charAt(i);\n }\n i++;\n }\n if (ifStop) return Integer.parseInt(val);\n while (j < s.length()) {\n char op = s.charAt(j);\n if (op == ' ') {\n j++;\n continue;\n }\n if ((op == '+') || (op == '-')) {\n int nextOperator = calculate(s.substring(j + 1, s.length()));\n // System.out.println(nextOperator);\n if (op == '+') return (Integer.parseInt(val) + nextOperator);\n else if (op == '-') return (Integer.parseInt(val) - nextOperator);\n j++;\n } else {\n i = j + 1;\n String anotherval = \"\";\n ifStop = true;\n while (i < s.length()) {\n if ((s.charAt(i) == '+') || (s.charAt(i) == '-') || (s.charAt(i) == '*')\n || (s.charAt(i) == '/')) {\n j = i;\n ifStop = false;\n break;\n } else {\n anotherval = anotherval + s.charAt(i);\n }\n i++;\n }\n if (op == '*')\n val = Integer.parseInt(val) * Integer.parseInt(anotherval) + \"\";\n else if (op == '/')\n val = Integer.parseInt(val) / Integer.parseInt(anotherval) + \"\";\n\n if (ifStop)\n return Integer.parseInt(val);\n }\n }\n return Integer.parseInt(val);\n }",
"public static String getrp(String s){\n char[] arr = s.toCharArray();\n int len = arr.length;\n String out = \"\";\n\n for(int i = 0; i < len; i++){\n char ch = arr[i];\n if(ch == ' ') continue;\n\n // if is operand, add to\n // the output stream directly\n if(ch >= '0' && ch <= '9') {\n out+=ch;\n continue;\n }\n\n //if is '(', push to the stack directly\n if(ch == '(') op.push(ch);\n\n //if is '+' or '-', pop the operator\n // from the stack until '(' and add to\n // the output stream\n //push the operator to the stack\n if(ch == '+' || ch == '-'){\n while(!op.empty() && (op.peek() != '('))\n out+=op.pop();\n op.push(ch);\n continue;\n }\n\n //if is '*' or '/', pop the operator stack and\n // add to the output stream\n // until lower priority or '('\n //push the operator to the stack\n if(ch == '*' || ch == '/'){\n while(!op.empty() && (op.peek() == '*' || op.peek() == '/'))\n out+=op.pop();\n op.push(ch);\n continue;\n }\n\n //if is ')' pop the operator stack and\n // add to the output stream until '(',\n // pop '('\n if(ch == ')'){\n while(!op.empty() && op.peek() != '(')\n out += op.pop();\n op.pop();\n continue;\n }\n }\n while(!op.empty()) out += op.pop();\n return out;\n }",
"public static Expr parse(String str) {\r\n\t\tExprBinary at = new ExprBinary(null, null); // the root of the tree\r\n\t\tStringBuilder opstore = new StringBuilder(); // stores operator characters\r\n\t\tStringBuilder adder = new StringBuilder(); // stores value characters\r\n\t\tboolean text = false; // whether inside of a string\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tboolean add = (c != '\\\\'); // whether to add the char to adder. ignore escape char\r\n\t\t\tboolean leftSide = (opstore.length() == 0); // whether on the left side of the binary expression (before the operator)\r\n\t\t\tString adderStr = adder.toString();\r\n\t\t\tString opStr = opstore.toString();\r\n\r\n\t\t\tif (c == '\"') { // string\r\n\t\t\t\tif (i == 0 || str.charAt(i - 1) != '\\\\') {\r\n\t\t\t\t\ttext = !text; // ignore string contents\r\n\t\t\t\t}\r\n\t\t\t} else if (!text) {\r\n\t\t\t\tif (c == ' ') {\r\n\t\t\t\t\tadd = false; // ignore spaces\r\n\t\t\t\t} else if (c == '(') { // grouping or function\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tString contents = str.substring(i + 1, closeIndex);\r\n\t\t\t\t\tExpr group; // the expression denoted by the parentheses group\r\n\r\n\t\t\t\t\tif (i > 0 && (!isReserved(str.charAt(i - 1)) || str.charAt(i - 1) == ')')) { // function\r\n\t\t\t\t\t\tif (adderStr.isEmpty()) { // function reference call ... func()()\r\n\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(null, contents); // a reference call is only a parameter group, null name\r\n\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t} else { // function call\r\n\t\t\t\t\t\t\tif (adderStr.startsWith(\".\")) { // function sub call ... func().subfunc()\r\n\t\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t\t} else { // standalone function ... func()\r\n\t\t\t\t\t\t\t\tif (Character.toString(adderStr.charAt(0)).equals(Operator.REF.op)) { // @func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprFuncRef(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\t} else { // func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprCall(adderStr, contents);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // parenthetical grouping\r\n\t\t\t\t\t\tchar cc = (adderStr.length() == 1 ? adderStr.charAt(0) : 0); // operator before parenthesis ... !()\r\n\t\t\t\t\t\tif (isReserved(cc)) { // operation on the group\r\n\t\t\t\t\t\t\tgroup = new ExprUnary(Operator.get(Character.toString(cc)), parse(contents));\r\n\t\t\t\t\t\t} else { // ignore character, not an operator\r\n\t\t\t\t\t\t\tgroup = parse(contents);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// add to tree\r\n\t\t\t\t\tif (leftSide) at.setLeft(group);\r\n\t\t\t\t\telse at.setRight(group);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (c == '{') { // array initializer ... {}\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tExpr arr = new ExprArray(str.substring(i + 1, closeIndex), adderStr);\r\n\r\n\t\t\t\t\tif (adderStr.length() == 1 && isReserved(adderStr.charAt(0))) {\r\n\t\t\t\t\t\t// unary op done on array initializer ... !{}\r\n\t\t\t\t\t\tarr = new ExprUnary(Operator.get(Character.toString(adderStr.charAt(0))), arr);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (leftSide) at.setLeft(arr);\r\n\t\t\t\t\telse at.setRight(arr);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (isOp(c)) { // operator\r\n\t\t\t\t\t// add value used in operation to tree\r\n\t\t\t\t\tif (!adderStr.isEmpty()) {\r\n\t\t\t\t\t\tif (leftSide) { // ex: adderStr + ___\r\n\t\t\t\t\t\t\tat.setLeft(parseValue(adderStr));\r\n\t\t\t\t\t\t} else { // ex: (___ + adderStr) + ___\r\n\t\t\t\t\t\t\tat.setRight(parseValue(adderStr));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (opStr.equals(\"\") || (i > 0 && isOp(str.charAt(i - 1)))) { // accumulate operator from adjacent operator characters (ex: != consists of ! and =)\r\n\t\t\t\t\t\tif (!(adderStr.isEmpty() && (opStr + c).equals(\"-\")) && (Operator.get(opStr + c) != null || (opStr.isEmpty() && isOp(c)))) {// if the operator exists, then it is an operator character\r\n\t\t\t\t\t\t\tif (opStr.equals(\"-\") && c == '-') { // this and the above line handle negatives and double negatives\r\n\t\t\t\t\t\t\t\topStr = \"+\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topStr += c;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // existing operator operation must be added to tree ... in \"(a + b) * c\", \"(a+b)\" must be abstracted-out so we get \"x * c\"\r\n\t\t\t\t\t\tint endIndex = i + 1; // end index of operator\r\n\r\n\t\t\t\t\t\t// get entire operator if operator is more than 1 character long\r\n\t\t\t\t\t\tfor (int i2 = endIndex; i2 < str.length(); i2++) {\r\n\t\t\t\t\t\t\tif (isOp(str.charAt(i2))) endIndex++;\r\n\t\t\t\t\t\t\telse break;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tOperator nextOp = Operator.get(str.substring(i, endIndex)); // second (right-most) operator\r\n\t\t\t\t\t\tat.op = Operator.get(opStr); // first (left-most) operator\r\n\r\n\t\t\t\t\t\t// group values in operation by operator precedence\r\n\t\t\t\t\t\tint p1 = precedence(nextOp); // right-most op\r\n\t\t\t\t\t\tint p2 = precedence(at.op); // left-most op\r\n\r\n\t\t\t\t\t\tif (p1 > p2) { // group around the right-most op\r\n\t\t\t\t\t\t\tExprBinary right = new ExprBinary(at, nextOp);\r\n\t\t\t\t\t\t\tright.setLeft(at.right());\r\n\r\n\t\t\t\t\t\t\tat.setRight(right);\r\n\t\t\t\t\t\t\tat = right;\r\n\r\n\t\t\t\t\t\t} else if (p1 < p2) { // group around the left-most op\r\n\t\t\t\t\t\t\tExprBinary last = at;\r\n\t\t\t\t\t\t\tExprBinary match = at.parent();\r\n\r\n\t\t\t\t\t\t\t// correctly add to the binary tree based on precedence of operators\r\n\t\t\t\t\t\t\twhile (match instanceof ExprBinary && p1 < (p2 = precedence(((ExprBinary) match).op))) {\r\n\t\t\t\t\t\t\t\tlast = match;\r\n\t\t\t\t\t\t\t\tmatch = match.parent();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tExprBinary tr = new ExprBinary(match, nextOp);\r\n\t\t\t\t\t\t\ttr.setLeft(last);\r\n\r\n\t\t\t\t\t\t\tif (match != null) {\r\n\t\t\t\t\t\t\t\tif (last == match.right()) match.setRight(tr);\r\n\t\t\t\t\t\t\t\telse match.setLeft(tr);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tat = tr;\r\n\r\n\t\t\t\t\t\t} else { // group from left to right (equal operator precedence)\r\n\t\t\t\t\t\t\tExprBinary left = new ExprBinary(at, at.op); // group existing values into left node, add right to open right node spot\r\n\t\t\t\t\t\t\tleft.setLeft(at.left());\r\n\t\t\t\t\t\t\tleft.setRight(at.right());\r\n\r\n\t\t\t\t\t\t\tat.op = nextOp;\r\n\t\t\t\t\t\t\tat.setLeft(left);\r\n\t\t\t\t\t\t\tat.setRight(null);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\topStr = nextOp.op;\r\n\t\t\t\t\t\ti = endIndex - 1;\r\n\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// store valid value characters\r\n\t\t\tif (add) {\r\n\t\t\t\tadder.append(c);\r\n\r\n\t\t\t\t// if this is the last character, then add the stored value to the tree.\r\n\t\t\t\t// otherwise, would be incorrectly ignored because there is no next operator\r\n\t\t\t\tif (i + 1 == str.length()) {\r\n\t\t\t\t\tif (opstore.length() == 0) {\r\n\t\t\t\t\t\tat.setLeft(parseValue(adder.toString()));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tat.setRight(parseValue(adder.toString()));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// initialize binary tree operator if not done so already\r\n\t\tif (at.op == null) {\r\n\t\t\tat.op = Operator.get(opstore.toString());\r\n\t\t}\r\n\r\n\t\t// after traversing the tree to some point, we need to get back to root so we can return the entire tree\r\n\t\twhile (at.parent() != null) {\r\n\t\t\tat = (ExprBinary) at.parent();\r\n\t\t}\r\n\r\n\t\t// the expression may not actually be a binary operation\r\n\t\tif (at.op == null && at.right() == NULL) {\r\n\t\t\tif (at.left() == NULL) return NULL; // the expression is empty\r\n\t\t\treturn at.left(); // the expression is a single value/unary-operation\r\n\t\t}\r\n\r\n\t\treturn at;\r\n\t}",
"public String evaluate(ArrayList<String> expression)\n {\n Stack<String> Values = new Stack<String>(), Operations = new Stack<String>();\n\n for (int i = 0; i < expression.size(); i++)\n\t\t{\n\t\t\tif (expression.get(i).equals(\"(\"))\n Operations.push(expression.get(i));\n else if (expression.get(i).equals(\")\"))\n {\n while (Operations.peek().equals(\"(\"))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.pop();\n }\n else if (expression.get(i).equals(\"+\") || expression.get(i).equals(\"-\") || expression.get(i).equals(\"*\") || expression.get(i).equals(\"/\"))\n {\n while (!Operations.empty() && precedence(expression.get(i), Operations.peek()))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.push(expression.get(i));\n }\n\t\t\telse\n\t\t\t{\n\t\t\t\tValues.push(expression.get(i));\n\t\t\t}\n }\n while (!Operations.empty())\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n return Values.pop();\n }",
"public int calculate(String s) {\n \n int sum = 0;\n int sign = 1;\n \n Stack<Integer> stack = new Stack<>();\n for(int i=0; i < s.length(); i++) {\n char ch = s.charAt(i);\n \n if(Character.isDigit(ch)) { // eg-> 312 +\n \n int val = 0;\n while(i < s.length() && Character.isDigit(s.charAt(i))) {\n val = val*10 + (s.charAt(i)-'0');\n i++;\n }\n i--;\n val *= sign;\n sum += val;\n sign = +1;\n \n } else if(ch == '(') {\n stack.push(sum);\n stack.push(sign);\n sum = 0;\n sign = +1;\n } else if(ch == ')') {\n sum *= stack.pop();\n sum += stack.pop();\n } else if(ch == '-') {\n sign *= -1;\n }\n }\n return sum;\n }",
"@Test\n\tpublic void parenthesses_should_notbalanced_expr()\n\t{\n\t\tString result=\"\";String expr=\"\";\n\t\t\n\t\texpr=\"(a+b(a+c)\";\n\t\t result=com.bridgelabz.util.DataStructure.BalanaceParenthes(expr);\n\t\tassertTrue(\"not balanced\", result!=\"balaced\");\n\t}",
"public static int evaluate(String expression) {\n\n\t\tchar[] tokens = expression.toCharArray();\n\t\t// Stack for numbers: 'values'\n\t\tStack<Integer> values = new Stack<Integer>();\n\t\t// Stack for Operators: 'operators'\n\t\tStack<Character> operators = new Stack<Character>();\n\n\t\tfor (int i = 0; i < tokens.length; i++) {\n\t\t\t// Current token is a whitespace, skip it\n\t\t\tif (tokens[i] == ' ')\n\t\t\t\tcontinue;\n\t\t\t// Current token is a number, push it to stack for numbers\n\t\t\tif (tokens[i] >= '0' && tokens[i] <= '9') {\n\t\t\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\t\t\t// There may be more than one digits in number\n\t\t\t\twhile (i < tokens.length && tokens[i] >= '0' && tokens[i] <= '9') {\n\t\t\t\t\tstringBuffer.append(tokens[i++]);\n\t\t\t\t}\n\t\t\t\tvalues.push(Integer.parseInt(stringBuffer.toString()));\n\t\t\t i--;\n\t\t\t} else if (tokens[i] == '(') {\n\t\t\t // Current token is an opening brace, push it to 'operators'\n\t\t\t\toperators.push(tokens[i]);\n\t\t\t} else if (tokens[i] == ')') {\n\t\t\t // Closing brace encountered, solve entire brace\n\t\t\t\twhile (operators.peek() != '(') {\n\t\t\t\t values.push(applyOperation(operators.pop(), values.pop(), values.pop()));\n\t\t\t }\n\t\t\t\toperators.pop();\n\t\t\t} else if (tokens[i] == '+' || tokens[i] == '-' ||tokens[i] == '*' || tokens[i] == '/') {\n\t\t\t // Current token is an operator.\n\t\t\t\twhile (!operators.empty() && hasPrecedence(tokens[i], operators.peek())) {\n\t\t\t\t values.push(applyOperation(operators.pop(), values.pop(),values.pop()));\n\t\t\t // System.out.println(values.peek());\n\t\t\t }\n\t\t\t\t// Push current token to 'operators'.\n\t\t\t\toperators.push(tokens[i]);\n\t\t\t}\n\t\t}\n\t\t// Entire expression has been parsed at this point, apply remaining operators to remaining values\n\t\twhile (!operators.empty()) {\n\t\t\tvalues.push(applyOperation(operators.pop(), values.pop(), values.pop()));\n\t\t}\n\t\t// Top of 'values' contains result, return it\n\t\treturn values.pop();\n\t}",
"int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}",
"private String removeOuterBrackets(String expr) {\r\n int openPos = expr.indexOf(BRACKET_OPEN);\r\n if (openPos == -1) {\r\n throw new IllegalArgumentException(\"No opening bracket\");\r\n }\r\n \r\n int closePos = expr.lastIndexOf(BRACKET_CLOSE);\r\n if (closePos == -1) {\r\n throw new IllegalArgumentException(\"No closing bracket\");\r\n }\r\n \r\n String before = expr.substring(0, openPos);\r\n String middle = expr.substring(openPos + 1, closePos);\r\n String after = expr.substring(closePos + 1, expr.length());\r\n \r\n return before + middle + after;\r\n }",
"public int calculate(String s) {\n if ((s == null) || (s.length() == 0)) return 0;\n int i = 0;\n int j = 0;\n s = s.replace(\" \", \"\");\n String val = \"\";\n int prevVal = 0;\n Stack<Integer> stack = new Stack<Integer>();\n while ((i < s.length()) && (j < s.length())) {\n char ch = s.charAt(i);\n if ((ch == '+') || (ch == '-')) {\n Integer top = null;\n if ( ! stack.isEmpty()) top = stack.peek();\n if (top != null) {\n int topValue = top.intValue();\n if ((topValue == '+') || (topValue == '-') && (stack.size() >= 2)) {\n stack.pop();\n Integer op = stack.pop();\n if (val.length() > 0) {\n if (topValue == '+') stack.push(Integer.parseInt(val) + op.intValue());\n else stack.push(op.intValue() - Integer.parseInt(val));\n }\n }\n }\n else if (val.length() > 0) stack.push(Integer.parseInt(val));\n stack.push((int) ch);\n val = \"\";\n i++;\n } else if ((ch == '*') || (ch == '/')) {\n prevVal = Integer.parseInt(val);\n val = \"\";\n j = i + 1;\n while (j < s.length()) {\n char ch_next = s.charAt(j);\n if ((ch_next == '+') || (ch_next == '-') || (ch_next == '*') || (ch_next == '/')) {\n i = j;\n break;\n } else {\n val = val + ch_next;\n }\n j++;\n }\n if (val.length() > 0) {\n if (ch == '*') val = (Integer.parseInt(val) * prevVal) + \"\";\n else val = (prevVal / Integer.parseInt(val)) + \"\";\n prevVal = 0;\n }\n } else {\n val = val + ch;\n i++;\n }\n }\n if (val.length() > 0) {\n stack.push(Integer.parseInt(val));\n }\n int res = 0;\n while ( ! stack.isEmpty()) {\n int op_2 = stack.pop();\n res = op_2;\n if (stack.size() >= 2) {\n int op = stack.pop();\n int op_1 = stack.pop();\n if (op == '+') stack.push(op_2 + op_1);\n else stack.push(op_1 - op_2);\n\n }\n }\n return res;\n }",
"public static void main(String[] args) {\n String s = \"(ed(et(oc))el)\";\n// String s = \"a(bcdefghijkl(mno)p)q\";\n System.out.println(reverseParentheses(s));\n }",
"public static void parseLine(String input){\r\n\t\tfor(int i = 0;i<input.length();i++){\r\n\t\t\t\r\n\t\t\tString currentChar = parseChar(input,i);\r\n\t\t\ti+=currentChar.length()-1; //skip past all integer characters if there are any\r\n\t\t\t\r\n\t\t\tif(checkOperand(currentChar)){\r\n\t\t\t\texpressionTree.treeStack.push(new Node(currentChar));\r\n\t\t\t}else if(checkOperator(currentChar)){\r\n\t\t\t\tNode node = new Node(currentChar);\r\n\t\t\t\t\r\n\t\t\t\tif(!expressionTree.treeStack.empty()){\r\n\t\t\t\t\tnode.rightNode = (Node) expressionTree.treeStack.peek();\r\n\t\t\t\t\tnode.rightNode.parentNode = node;\r\n\t\t\t\t\texpressionTree.treeStack.pop();\r\n\t\t\t\t}\r\n\t\t\t\tif(!expressionTree.treeStack.empty()){\r\n\t\t\t\t\tnode.leftNode = (Node) expressionTree.treeStack.peek();\r\n\t\t\t\t\tnode.leftNode.parentNode = node;\r\n\t\t\t\t\texpressionTree.treeStack.pop();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\texpressionTree.treeStack.push(node);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"ParenthesisExpr createParenthesisExpr();",
"private Expression parseParen(Tokenizer in) {\n\t\tExpression expr = parseExpr(in,OperatorLevel.lowest);\n\t\tToken expectParen = in.next();\n\t\tif (expectParen.type != Token.TokenType.CLOSE_PARENTHESIS)\n\t\t\tthrow new SyntaxError(\"Expected ) got: '\" + expectParen + \"'\" + expectParen.generateLineChar());\n\t\treturn expr;\n\t}",
"private List<String> parse(String str) {\n List<String> res = new ArrayList<>();\n int par = 0;\n StringBuilder sb = new StringBuilder();\n for(char c: str.toCharArray()){\n if(c == '('){\n par++;\n }\n if(c == ')'){\n par--;\n }\n if(par == 0 && c == ' '){\n res.add(new String(sb));\n sb = new StringBuilder();\n }else{\n sb.append(c);\n }\n }\n if(sb.length() > 0){\n res.add(new String(sb));\n }\n return res;\n }",
"private final String RemoveExtraBrackets(String expression) {\r\n String newExpression = expression;\r\n int openParanthesis = 0;\r\n int closeParanthesis = 0;\r\n if ((expression.startsWith(\"(\") && expression.endsWith(\")\"))) {\r\n for (int i = 0; (i \r\n < (expression.length() - 1)); i++) {\r\n String charExpression = expression.substring(i, 1);\r\n if (charExpression.equals(\"(\")) {\r\n openParanthesis++;\r\n }\r\n else if (charExpression.equals(\")\")) {\r\n closeParanthesis++;\r\n }\r\n \r\n }\r\n \r\n if (((openParanthesis - 1) \r\n == closeParanthesis)) {\r\n newExpression = expression.substring(1, (expression.length() - 2));\r\n }\r\n \r\n }\r\n \r\n return newExpression;\r\n }",
"public String transformInfixToPostfix(String input) {\n\n List<String> outputQueue = new LinkedList<>();\n\n Stack<Operation> operationStack = new Stack<>();\n final String[] splitedEquation = input.split(\" \");\n for (String token : splitedEquation) {\n if (isOperator(token)) {\n OperatorParser operatorParser = new OperatorParser(outputQueue, operationStack,\n token).invoke();\n outputQueue = operatorParser.getOutputQueue();\n operationStack = operatorParser.getOperationStack();\n } else {\n outputQueue = addImmutable(outputQueue, token);\n }\n }\n\n outputQueue = addOperationsToOutputQueue(outputQueue, operationStack);\n\n return Stream.of(outputQueue)\n .collect(Collectors.joining(\" \"));\n }",
"public int calculate2(String s) {\n Stack<Integer> stack = new Stack<>();\n char sign = '+';\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if(Character.isDigit(c)) {\n int tmp = 0;\n while (i < s.length() && Character.isDigit(s.charAt(i))) {\n tmp = tmp * 10 + s.charAt(i) - '0';\n i++;\n }\n while(i < s.length() && s.charAt(i) == ' '){i++;}\n if (sign == '+' || sign == '-' || sign == '*' || sign == '/' || i == s.length() - 1) {\n if (sign == '+') {\n stack.push(tmp);\n } else if (sign == '-') {\n stack.push(-tmp);\n } else if (sign == '*') {\n stack.push(stack.pop() * tmp);\n } else if (sign == '/') {\n stack.push(stack.pop() / tmp);\n }\n if(i < s.length()){\n sign = s.charAt(i);\n }\n }\n }\n }\n int res = 0;\n while (!stack.isEmpty()) {\n res += stack.pop();\n }\n return res;\n }",
"public static Expression parse(String exp) {\n\t\texp = exp.replace(\" \", \"\");\r\n\t\tchar[] cs = exp.toCharArray();\r\n\t\tint i = 0;\r\n\t\twhile (i < cs.length && !Operator.validOp(cs[i])) {\r\n\t\t\t++i;\r\n\t\t}\r\n\t\tif (i == cs.length)\r\n\t\t\treturn new Expression(Token.parse(exp));\r\n\t\telse {\r\n\t\t\t//to preserve order of operations here, flip order accordingly\r\n\t\t\t//if the operator is * or /\r\n\t\t\treturn new Expression(\r\n\t\t\t\t\tExpression.parse(exp.substring(0,i)),\r\n\t\t\t\t\t(Operator)Token.parse(cs[i]),\r\n\t\t\t\t\tExpression.parse(exp.substring(i+1, exp.length()))\r\n\t\t\t);\r\n\t\t}\r\n\t}",
"private static String fixKleene(String reg) {\n int ind, beg, len;\n String expr;\n\n do {\n ind = reg.indexOf('*');\n if (ind != -1 && reg.charAt(ind - 1) == QUOTE)\n ind = 0;\n } while(ind == 0);\n\n while (ind >= 1) {\n char character = reg.charAt(ind - 1);\n if (character == ')') {\n beg = reg.substring(0, ind).lastIndexOf(\"(\");\n expr = reg.substring(beg + 1, ind - 1);\n len = expr.length();\n if (expr.contains(\"|\")) {\n if (ind + len + 2 < reg.length()\n && reg.substring(ind + 1, ind + 1 + len + 2).equals(\"(\" + expr + \")\")) {\n replace(reg, ind, '+');\n removeChars(reg, ind + 1, len + 2);\n }\n if (ind - (2 + len) * 2 >= 0\n && reg.substring(ind - (2 + len) * 2, ind - 2 - len).equals(\n \"(\" + expr + \")\")) {\n replace(reg, ind, '+');\n removeChars(reg, ind - (2 + len) * 2, len + 2);\n }\n } else {\n if (ind + len < reg.length()\n && reg.substring(ind + 1, ind + 1 + len).equals(expr)) {\n replace(reg, ind, '+');\n removeChars(reg, ind + 1, len);\n }\n if (ind - 2 - len * 2 >= 0\n && reg.substring(ind - 2 - len * 2, ind - 2 - len).equals(expr)) {\n replace(reg, ind, '+');\n removeChars(reg, ind - 2 - len * 2, len);\n }\n }\n } else if (reg.charAt(ind - 1) == QUOTE) {\n if (ind + 2 < reg.length() && reg.charAt(ind + 2) == character\n && reg.charAt(ind + 1) == QUOTE) {\n reg = replace(reg, ind, '+');\n reg = removeChars(reg, ind + 1, 2);\n }\n if (ind - 2 * 2 >= 0 && reg.charAt(ind - 2 - 1) == character\n && reg.charAt(ind - 2 * 2) == QUOTE) {\n reg = replace(reg, ind, '+');\n reg = removeChars(reg, ind - 2, 2);\n }\n } else {\n if (ind + 1 < reg.length() && reg.charAt(ind + 1) == character) {\n reg = replace(reg, ind, '+');\n reg = removeChars(reg, ind + 1, 1);\n }\n if (ind - 2 >= 0 && reg.charAt(ind - 2) == character) {\n reg = replace(reg, ind, '+');\n reg = removeChars(reg, ind - 2, 1);\n }\n }\n ind = reg.indexOf('*', ind + 1);\n }\n return reg;\n }",
"private static String getPostfix(String s) {\n\t\tif(s.length() == 0){\n\t\t\treturn null;\n\t\t}\n\t\tString[] expression = s.split(\" \");\n\t\tStack stack = new Stack();\n\t\tString result = null;\n\t\tfor(int i = 0; i<expression.length;i++){\n\t\t\tString temp = expression[i];\n\t\t\tif(temp.equals(\"+\") || temp.equals(\"-\") || temp.equals(\"*\") || temp.equals(\"/\") || temp.equals(\"%\")){\n\t\t\t\twhile(!stack.isEmpty() && hasHigherPriority(stack.top(),temp)){\n\t\t\t\t\tif(result == null){\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Expression is not infix\");\n\t\t\t\t\t}\n\t\t\t\t\tresult = result + stack.pop();\n\t\t\t\t}\n\t\t\t\tstack.push(temp);\n\t\t\t}else{\n\t\t\t\tif(result == null){\n\t\t\t\t\tresult = temp;\n\t\t\t\t}else{\n\t\t\t\t\tresult = result + temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\twhile(!stack.isEmpty()){\n\t\t\tresult = result + stack.pop();\n\t\t}\n\t\treturn result;\n\t}",
"public String convertPostfix(String string){\r\n\r\n \t\tStack<Character> operatorStack = new Stack<Character>();\r\n\r\n \t\tStringBuffer postfix = new StringBuffer();\r\n\r\n \t\tCharacter topOperator;\r\n\t\tfor (int i = 0; i < string.length(); i++) {\r\n\t\t\tchar c = string.charAt(i);\r\n\r\n\t\t\tif (Character.isDigit(c)) {\r\n\t\t\t\tpostfix.append(c);\r\n\r\n\r\n\r\n\t\t\t\t// fixing bug to test next character before adding a space\r\n\t\t\t\t// if next character is not a digit add a space\r\n\t\t\t\tif (i + 1 >= string.length() || !Character.isDigit(string.charAt(i + 1)))\r\n\t\t\t\t\tpostfix.append(\" \");\r\n\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\t\r\n \t\t\t\tswitch(c){\r\n \t\t\t\t /////// add a minus to stack without a space\r\n \t\t\t\t\tcase'!':\r\n \t\t\t\t boolean Debug = true;\r\n\r\n\t\t\t\t\tif (Debug)\r\n\t\t\t\t\t\tSystem.out.println(\"Bugs\");\r\n\r\n\t\t\t\t\tpostfix.append('-');\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n \t\t\t\t\tbreak;\r\n \r\n \t\t\t\t\t\r\n \t\t\t\tcase '^':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase '.':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase '+':\r\n \t\t\t\tcase '-':\r\n \t\t\t\tcase '*':\r\n \t\t\t\tcase '/':\r\n \t\t\t\t\twhile (!operatorStack.isEmpty () &&\r\n \t\t\t\t\t\t\tgetPrecedence(c) <= getPrecedence(operatorStack.peek()))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tpostfix.append(operatorStack.peek() + \" \");\r\n \t\t\t\t\t\toperatorStack.pop();\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t}\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n\r\n \t\t\t\tcase '(':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n\r\n \t\t\t\tcase ')': \r\n\t\t\t\t\ttopOperator = operatorStack.pop();\r\n\t\t\t\t\twhile ((topOperator != '(') && !operatorStack.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpostfix.append(topOperator);\r\n\t\t\t\t\t\tpostfix.append(\" \");\r\n\t\t\t\t\t\ttopOperator = operatorStack.pop();\r\n\t\t\t\t\t}// end while\r\n\r\n\t\t\t\t\t/* if(!operatorStack.isEmpty() && operatorStack.peek().equals('(')){\r\n\t\t operatorStack.pop(); // pop/remove left parenthesis \r\n\t\t }*/\r\n\t\t\t\t\tbreak;\r\n \t\t\t\tdefault:\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} \r\n\t\t/*\r\n\t\t * popping off any final operators\r\n\t\t */\r\n \t\t\twhile (!operatorStack.isEmpty())\r\n \t\t\t{\r\n \t\t\t\ttopOperator = operatorStack.pop();\r\n \t\t\t\tpostfix.append(topOperator + \" \");\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t\treturn postfix.toString();\r\n\r\n \t\t}",
"public static int exp(String str) {\n\t\tif(str == null || str.length() == 0) return -1;\n\t\t\n\t\tSet<Character> set = new HashSet();\n\t\tset.add('+');\n\t\tset.add('-');\n\t\tset.add('*');\n\t\tset.add('/');\n\t\t\n\t\tStack<Integer> operands = new Stack();\n\t\tStack<Character> operators = new Stack();\n\t\t\n\t\tint current = 0;\n\t\tfor(char c : str.toCharArray()) {\n\t\t\tif( c >= '0' && c <= '9') {\n\t\t\t\toperands.push(Integer.valueOf(c));\n\t\t\t}\n\t\t\telse if(c == '(') {\n\t\t\t\toperands.push(current);\n\t\t\t\tcurrent = 0;\n\t\t\t} else if (set.contains(c)) {\n\t\t\t\toperators.push(c);\n\t\t\t} else if( c == ')') {\n\t\t\t\t\n\t\t\t\tif(!operators.isEmpty()) {\n\t\t\t\t\tchar op = operators.pop();\n\t\t\t\t\tif(op == '+') {\n\t\t\t\t\t\tcurrent += operands.pop();\n\t\t\t\t\t\tcurrent += operands.pop();\n\t\t\t\t\t\t\n\t\t\t\t\t} else if(op == '-') {\n\t\t\t\t\t\tcurrent -= operands.pop();\n\t\t\t\t\t\tcurrent -= operands.pop();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\toperands.push(current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn current;\n\t}",
"void calc_next(String re)\r\n\t{\r\n\t\tint i,j,k;\r\n\t\tnext=new int[re.length()];\r\n\t\tfor (i=0; i<re.length(); ++i)\r\n\t\t{\r\n\t\t\tif (re.charAt(i)=='(')\r\n\t\t\t{\r\n\t\t\t\tk=0;\r\n\t\t\t\tj=i;\r\n\t\t\t\twhile (true)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (re.charAt(j)=='(')\r\n\t\t\t\t\t\t++k;\r\n\t\t\t\t\tif (re.charAt(j)==')')\r\n\t\t\t\t\t\t--k;\r\n\t\t\t\t\tif (k==0)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t++j;\r\n\t\t\t\t}\r\n\t\t\t\tnext[i]=j;\r\n\t\t\t}\r\n\t\t\telse next[i]=i;\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tString str = \"32+5*2-40/3\";\r\n\t\t/*\r\n\t\tPattern p = Pattern.compile(\"(([0-9]+)(\\\\+\\\\-\\\\*\\\\/)?)+\");\r\n\t\tMatcher m = p.matcher(str);\r\n\t\tSystem.out.println(m.find());\r\n\t\tSystem.out.println(m.groupCount());\r\n\t\tSystem.out.println(m.group(1));\r\n\t\tSystem.out.println(m.group(2));\r\n\t\tSystem.out.println(m.group(3));\r\n\t\t*/\r\n\t\tString[] sub = str.split(\"\\\\+|\\\\-|\\\\*|\\\\/\");\r\n\t\tfor(String s : sub) {\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void recursion(final String expression, int countOperation) {\n int numberOfOperations=0;\n String operationString=expression.replace(\" \",\"\");\n for (int i=0; i<operationString.length()-1; i++)\n {\n if(expression.substring(i,i+1).matches(\"\\\\+\")\n ||operationString.substring(i,i+1).matches(\"\\\\-\")\n ||operationString.substring(i,i+1).matches(\"\\\\*\")\n ||operationString.substring(i,i+1).matches(\"/\")\n ||operationString.substring(i,i+1).matches(\"\\\\^\")\n ||operationString.substring(i,i+1).matches(\"i\")\n ||operationString.substring(i,i+1).matches(\"a\")\n ||operationString.substring(i,i+1).matches(\"o\"))\n {\n numberOfOperations++;\n }\n }\n String result;\n int count=0;\n if (operationString.substring(0,1).equals(\"(\"))\n {\n int start=1;\n int end=0;\n count=1;\n while (count<operationString.length() && start!=end)\n {\n String temp=operationString.substring(count,count+1);\n if (temp.equals(\"(\"))\n {\n start++;\n }\n if (temp.equals(\")\"))\n {\n end++;\n }\n count++;\n }\n }\n if (count!=operationString.length() && !operationString.substring(0,1).equals(\"(\"))\n {\n //разбиваем выражения на подвыражения\n List<String> symbols=new ArrayList<>();\n for (int i=0; i<operationString.length()-1;)\n {\n String temp=operationString.substring(i,i+1);\n if (\"+-*/^\".contains(temp))\n {\n symbols.add(temp);\n i++;\n }\n if(temp.equals(\"s\") || temp.equals(\"t\") || temp.equals(\"c\"))\n {\n symbols.add(operationString.substring(i,i+3));\n i=i+3;\n }\n if (temp.matches(\"\\\\d\"))\n {\n int k=i+1;\n StringBuilder sb=new StringBuilder(temp);\n while (k<operationString.length()&&(operationString.substring(k,k+1).matches(\"\\\\d\")||operationString.substring(k,k+1).matches(\"\\\\.\")))\n {\n sb.append(operationString.substring(k,k+1));\n k++;\n }\n i=k;\n symbols.add(new String(sb));\n }\n if (temp.equals(\"(\"))\n {\n int start=1;\n int end=0;\n int k=i+1;\n while(k<operationString.length() && start!=end)\n {\n if (operationString.substring(k,k+1).equals(\"(\"))\n {\n start++;\n }\n if(operationString.substring(k,k+1).equals(\")\"))\n {\n end++;\n }\n k++;\n }\n PrintStream oldOut=System.out;\n String recTemp;\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n PrintStream ps=new PrintStream(baos);\n System.setOut(ps);\n recursion(operationString.substring(i,k),++countOperation);\n recTemp=baos.toString();\n System.setOut(oldOut);\n symbols.add(recTemp);\n i=k;\n }\n }\n\n for (int i=0; i<symbols.size(); i++)\n {\n if (symbols.get(i).startsWith(\"s\"))\n {\n symbols.set(i,\"\"+Math.sin(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n if (symbols.get(i).startsWith(\"t\"))\n {\n symbols.set(i,\"\"+Math.tan(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n if (symbols.get(i).startsWith(\"c\"))\n {\n symbols.set(i,\"\"+Math.cos(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n }\n for (int i=0; i<symbols.size();)\n {\n if (symbols.get(i).equals(\"^\"))\n {\n symbols.set(i-1, Math.pow(Double.parseDouble(symbols.get(i - 1)), Double.parseDouble(symbols.get(i + 1))) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n i++;\n }\n for (int i=0; i<symbols.size();)\n {\n if (symbols.get(i).equals(\"/\"))\n {\n symbols.set(i-1, Double.parseDouble(symbols.get(i - 1))/Double.parseDouble(symbols.get(i + 1)) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n if (symbols.get(i).equals(\"*\"))\n {\n symbols.set(i-1, Double.parseDouble(symbols.get(i - 1))*Double.parseDouble(symbols.get(i + 1)) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n i++;\n }\n for (int i=0; i<symbols.size(); i++)\n {\n if (symbols.get(i).equals(\"-\"))\n {\n symbols.set(i,\"-\"+symbols.remove(i+1));\n }\n if (symbols.get(i).equals(\"+\"))\n {\n symbols.remove(i);\n i--;\n }\n }\n double answer=0;\n for (String s:symbols)\n {\n answer=answer+Double.parseDouble(s);\n }\n result=answer+\"\";\n countOperation--;\n }\n else\n {\n //отбрасываем начальные и конечные скобки\n operationString=operationString.substring(1,operationString.length()-1);\n PrintStream oldOut=System.out;\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n PrintStream ps=new PrintStream(baos);\n System.setOut(ps);\n recursion(operationString,++countOperation);\n result=baos.toString();\n System.setOut(oldOut);\n }\n if (countOperation==0)\n {\n System.out.println(result+\" \"+numberOfOperations);\n }\n else\n {\n System.out.println(result);\n }\n }",
"public synchronized double parseExpression() throws InvalidExpressionException { // parse expression within parentheses\r\n\t\tdouble value = parseSubExpression();\r\n\t\twhile (true) {\r\n\t\t\tignorWhiteSpace();\r\n\t\t\tif (singleChar == '+') { // in case of addition\r\n\t\t\t\tnextChar();\r\n\t\t\t\tvalue = value + parseSubExpression();\r\n\t\t\t} else if (singleChar == '-') { // in case of subtraction\r\n\t\t\t\tnextChar();\r\n\t\t\t\tvalue = value - parseSubExpression();\r\n\t\t\t} else {\r\n\t\t\t\treturn value;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private String evaluate(String expression) {\n String separators = \"()*+/-\";\n String result;\n // Stack for using in algorithm\n Stack<String> stackOperations = new Stack<String>();\n // Stack for RPN - reverse polish notation\n Stack<String> stackRPN = new Stack<String>();\n // Stack for evaluating answer\n Stack<String> stackTemp = new Stack<String>();\n //splitting expression into tokens\n StringTokenizer stringTokenizer = new StringTokenizer(updateUnaryMinus(expression), separators, true);\n\n while (stringTokenizer.hasMoreTokens()) {\n String token = stringTokenizer.nextToken();\n if (isNumber(token)) {\n stackRPN.push(token);\n } else if (isOpenBracket(token)) {\n stackOperations.push(token);\n } else if (isCloseBracket(token)) {\n while (!isOpenBracket(stackOperations.lastElement())) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.pop();\n } else if (isOperator(token)) {\n while (!stackOperations.empty() && isOperator(stackOperations.lastElement())\n && getPrecedence(stackOperations.lastElement()) > getPrecedence(token)) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.push(token);\n }\n }\n while (!stackOperations.empty()) {\n stackRPN.push(stackOperations.pop());\n }\n Collections.reverse(stackRPN);\n\n // Evaluation if RPN expression\n while (!stackRPN.empty()) {\n if (isNumber(stackRPN.lastElement())) stackTemp.push(stackRPN.pop());\n else stackTemp.push(makeOperation(stackRPN.pop(), stackTemp.pop(), stackTemp.pop()));\n }\n result = stackTemp.pop();\n return result;\n }",
"String performCalculation(String str) {\n // will get all numbers and store it to `numberStr`\n String numberStr[] = str.replaceAll(\"[+*/()-]+\", \" \").split(\" \");\n // will get all operators and store it to `operatorStr`\n String operatorStr[] = str.replaceAll(\"[0-9()]+\", \"\").split(\"\");\n\n int total = Integer.parseInt(numberStr[0]);\n\n for (int i = 0; i < operatorStr.length; i++) {\n switch (operatorStr[i]) {\n case \"+\":\n total += Integer.parseInt(numberStr[i + 1]);\n break;\n case \"-\":\n total -= Integer.parseInt(numberStr[i + 1]);\n break;\n case \"*\":\n total *= Integer.parseInt(numberStr[i + 1]);\n break;\n case \"/\":\n total /= Integer.parseInt(numberStr[i + 1]);\n break;\n }\n\n if (i + 2 >= operatorStr.length)\n continue; // if meets the last operands already\n numberStr[i + 1] = String.valueOf(total);\n\n }\n return String.valueOf(total);\n }",
"private static String infixToPostfix(String expression)\r\n {\r\n String result = \"\";\r\n char current_char = ' ';\r\n int index = 0;\r\n StackInterface<Character> operand_stack = new ArrayStack<>();\r\n switch(stack_type)\r\n {\r\n case(\"vector\"):\r\n operand_stack = new VectorStack<>();\r\n break;\r\n \r\n case(\"linked\"):\r\n operand_stack = new LinkedListStack<>();\r\n break;\r\n }\r\n\r\n //iterates through every character and puts them in the stack or the result accordingly\r\n while(index < expression.length())\r\n {\r\n current_char = expression.charAt(index);\r\n switch(current_char)\r\n {\r\n //checks if the character is an operand and if so checks if it should pop the previous input or not\r\n case '+': case '-': case '*': case '/':\r\n if(!operand_stack.isEmpty())\r\n {\r\n while(!operand_stack.isEmpty() && getOperandImportance(current_char) <= getOperandImportance(operand_stack.peek()))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.push(current_char);\r\n }\r\n else\r\n {\r\n operand_stack.push(current_char);\r\n }\r\n break;\r\n\r\n //exponents are always pushed onto the stack\r\n case '^':\r\n operand_stack.push(current_char);\r\n break;\r\n\r\n //if an open delimiter is there, we add it to the stack\r\n case '(': case '{': case '[':\r\n operand_stack.push(current_char);\r\n break;\r\n \r\n //if the delimiter is closing we pop until we find the open equivalent\r\n case ')': case '}': case ']':\r\n while(operand_stack.peek() != delimiterEquivalent(current_char))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.pop();\r\n break;\r\n\r\n case ' ':\r\n break;\r\n\r\n default: \r\n result += current_char;\r\n break;\r\n }\r\n index++;\r\n }\r\n\r\n //pops everything left in the stack to the result at the end\r\n while(!operand_stack.isEmpty())\r\n {\r\n result += operand_stack.pop();\r\n }\r\n\r\n return result;\r\n }",
"public static List<Element> Exp2Rpn(String expression) {\r\n\t\tList<String> tokenList = tokenize(expression);\r\n\t\tList<Element> rpn = new LinkedList<Element>();\r\n\t\tStack<Element> stack = new Stack<Element>();\r\n\r\n\t\tfor (String token : tokenList) {\r\n\t\t\tElement currentElement = string2Element(token);\r\n\r\n\t\t\tif (currentElement.isOperator()) {\r\n\t\t\t\twhile (!stack.empty() && precedence(stack.peek(), currentElement) == 1) {\r\n\t\t\t\t\trpn.add(stack.pop());\r\n\t\t\t\t}\r\n\t\t\t\tstack.push(currentElement);\r\n\t\t\t} else if (currentElement.isNumber()) {\r\n\t\t\t\trpn.add(currentElement);\r\n\t\t\t} else if (currentElement.isLeftParenthesis()) {\r\n\t\t\t\tstack.push(currentElement);\r\n\t\t\t} else if (currentElement.isRightParenthesis()) {\r\n\t\t\t\twhile (!stack.peek().isLeftParenthesis()) {\r\n\t\t\t\t\trpn.add(stack.pop());\r\n\t\t\t\t}\r\n\t\t\t\tstack.pop(); // pops '('\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile (!stack.empty()) {\r\n\t\t\trpn.add(stack.pop());\r\n\t\t}\r\n\r\n\t\treturn rpn;\r\n\t}",
"public void convertInfixToPostfix() {\n\t\t// Create operator stack\n\t\tStack<String> op_stack = new Stack<String>();\n\n\t\t// Prepare the input string\n\t\tprepareInput();\n\t\t\n\t\t// Split the expression \n\t\tString[] tokens = input.split(\"(?<=[^\\\\.a-zA-Z\\\\d])|(?=[^\\\\.a-zA-Z\\\\d])\");\n\t\t\n\t\t//For each token\n\t\tfor (String t : tokens) {\n\t\t\t// If the token is empty, skip it\n\t\t\tif(t.equals(\"\") || t.equals(\" \")) continue;\n\t\t\t\n\t\t\t// If operator (o1)\n\t\t\tif (Operator.isOperator(t)) {\n\n\t\t\t\t// While there is an operator (o2) an the stack and\n\t\t\t\t// (o1 is left associative AND o2 precedence is higher or equal to o1 precedence)\n\t\t\t\t// OR\n\t\t\t\t// (o1 is right associative AND o2 precedence is higher than o1 precedence)\n\t\t\t\twhile (!op_stack.empty()\n\t\t\t\t\t\t&& Operator.isOperator(op_stack.peek())\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.LEFT) && Operator.comparePrec(op_stack.peek(), t) >= 0) \n\t\t\t\t\t\t\t|| \n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.RIGHT) && Operator.comparePrec(op_stack.peek(), t) > 0)\n\t\t\t\t\t\t )\n\t\t\t\t ) \n\t\t\t\t{\n\t\t\t\t\t// add o2 to the output\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Push o1 on to the stack.\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\"(\")) {\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\")\")) {\n\t\t\t\t// While there is not a left parenthesis, add the top token from the stack to the output\n\t\t\t\twhile (!op_stack.peek().equals(\"(\")) {\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\n\t\t\t\t// Pop out the left parenthesis\n\t\t\t\top_stack.pop();\n\t\t\t\t\n\t\t\t\t// While there is a function on the top of the stack, add it to the output\n\t\t\t\tif(!op_stack.empty() && Function.isFunction(op_stack.peek())) output.add(op_stack.pop());\n\t\t\t}\n\t\t\telse if(Function.isFunction(t)){\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\t\t\telse if(isNumeric(t) || isVariable(t)){\n\t\t\t\toutput.add(t);\n\t\t\t}\n\t\t}\n\n\t\t// Finally empty the stack, by adding all remaining tokens to the output.\n\t\twhile (!op_stack.empty()) {\n\t\t\toutput.add(op_stack.pop());\n\t\t}\n\t}",
"public static ArrayList<String> makePostV(String s){\r\n String sD = s+\"$\";\r\n Stack<String> st1 = new Stack<String>();//Operators and parenthesis are stored temporarily on string stack \"st1\"\r\n ArrayList<String> postV = new ArrayList<String>();\r\n int p=0;//Pointer for each character in the expression; Gets incremented \r\n \r\n while(p<s.length()){\r\n int count = 0;//Count for making sure only one of the following \"if\"s are executed in one iteration \r\n String s1=Character.toString(sD.charAt(p));\r\n \r\n String sNext = Character.toString(sD.charAt(p+1));\r\n if(Character.toString(s1.charAt(s1.length()-1)).matches(\"[a-zA-Z].*\")||Character.toString(s1.charAt(s1.length()-1)).matches(\"-?\\\\d+(\\\\.\\\\d+)?\")){\r\n while(!sNext.matches(\".*[-+*/^%$()].*\")){\r\n p++;\r\n s1=s1+sNext;\r\n sNext=Character.toString(sD.charAt(p+1));\r\n }\r\n }\r\n \r\n //For identifiers in the expression \r\n if((s1.matches(\"[a-zA-Z].*\"))&&count==0){postV.add(s1);count++;}\r\n \r\n //For numerical values given directly in the expression\r\n if(s1.matches(\"-?\\\\d+(\\\\.\\\\d+)?\")&&count==0){postV.add(s1);count++;}\r\n \r\n //For parenthesis in the expression\r\n if((s1.equals(\"(\")||s1.equals(\")\"))&&count==0){ \r\n if(s1.equals(\"(\")){st1.push(\"(\");}\r\n if(s1.equals(\")\")){\r\n while(!st1.peek().equals(\"(\")&&!st1.empty()){String currOp = st1.pop();postV.add(currOp);}\r\n st1.pop();\r\n }count++;\r\n } \r\n \r\n //For operators in the expression\r\n if(s1.equals(\"+\")||s1.equals(\"-\")||s1.equals(\"%\")||s1.equals(\"/\")||s1.equals(\"*\")||s1.equals(\"^\")){ \r\n if(st1.empty()&&count==0){st1.push(s1);count++;}\r\n \r\n if(!st1.empty()&&count==0){\r\n if(st1.peek().equals(\"(\")){st1.push(s1);count++;} \r\n \r\n String s2=st1.peek();\r\n char op1 = s2.charAt(0);\r\n char op2=s1.charAt(0); \r\n \r\n if(count==0){\r\n while((precedenceLevel(op1)>=precedenceLevel(op2))&&!st1.empty()){\r\n String currOp=st1.pop(); \r\n postV.add(currOp);\r\n if(!st1.empty()&&st1.peek().equals(\"(\")){break;}\r\n if(!st1.empty()){s2=st1.peek();op1 = s2.charAt(0);}\r\n } st1.push(s1);count++; \r\n }\r\n \r\n if((precedenceLevel(op1)<precedenceLevel(op2))&&count==0){\r\n st1.push(s1);\r\n count++;\r\n } \r\n } \r\n } \r\n p++; \r\n }\r\n \r\n //At the end pops operators if remained in the stack\r\n while(!st1.empty()){\r\n String currOp=st1.pop();\r\n postV.add(currOp);\r\n } \r\n return postV;//Returns the postfix expression\r\n }",
"public int evaluate(String expression) {\n\t\tStack oPSt = new Stack();\n\t\tfor (int i = 0; i < expression.length(); i++) {\n\t\t\tString x = expression.substring(i, i + 1);\n\t\t\tStringBuilder longIntegers = new StringBuilder();\n\t\t\tif (x.equals(\" \"))\n\t\t\t\tcontinue;\n\t\t\telse {\n\t\t\t\tint counter = 0;\n\t\t\t\twhile (counter + i < expression.length()\n\t\t\t\t\t\t&& !expression.substring(i + counter, i + counter + 1).equals(\" \")) {\n\t\t\t\t\tlongIntegers.append(expression.substring(i + counter, i + 1 + counter));\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t\ti = i + counter;\n\t\t\t}\n\t\t\tx = longIntegers.toString();\n\t\t\tif (isNum(x)) {\n\t\t\t\toPSt.push(Float.parseFloat(x));\n\t\t\t} else if (x.equals(\"*\") || x.equals(\"+\") || x.equals(\"/\") || x.equals(\"-\")) {\n\t\t\t\tFloat num1 = (Float) oPSt.pop(), num2 = (Float) oPSt.pop();\n\t\t\t\tif (x.equals(\"+\"))\n\t\t\t\t\toPSt.push(num1 + num2);\n\t\t\t\telse if (x.equals(\"*\"))\n\t\t\t\t\toPSt.push(num1 * num2);\n\t\t\t\telse if (x.equals(\"/\"))\n\t\t\t\t\toPSt.push(num2 / num1);\n\t\t\t\telse\n\t\t\t\t\toPSt.push(num2 - num1);\n\t\t\t} else\n\t\t\t\tthrow new RuntimeException(\"Invalid Input\");\n\n\t\t}\n\t\tif (oPSt.size() == 0)\n\t\t\treturn 0;\n\t\treturn (int)Math.round((Float) oPSt.pop());\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\twhile(sc.hasNext()){\r\n\t\t\tString str = sc.nextLine();\r\n\t\t\tStack<String> digit = new Stack<>();\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\tchar ch;\r\n\t\t\tboolean isHasOperator = false;\r\n\t\t\tboolean isLegal = true;\r\n\t\t\tint len = str.length();\r\n\t\t\tint i = 0;\r\n\t\t\twhile(i<len){\r\n\t\t\t\tch = str.charAt(i);\r\n\t\t\t\tswitch (ch) {\r\n\t\t\t\tcase '[':\r\n\t\t\t\tcase '{':\r\n\t\t\t\tcase '(':\r\n\t\t\t\tcase '+':\r\n\t\t\t\tcase '-':\r\n\t\t\t\tcase '*':\r\n\t\t\t\tcase '/':\r\n\t\t\t\t\tdigit.push(ch+\"\");\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase ']':\r\n\t\t\t\tcase '}':\r\n\t\t\t\tcase ')':\r\n\t\t\t\t\tString second = null;\r\n\t\t\t\t\twhile(digit.size()>1){\r\n\t\t\t\t\t\t//!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")\r\n\t\t\t\t\t\tif(!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")&&!digit.peek().equals(\")\")\r\n\t\t\t\t\t\t\t\t&&!digit.peek().equals(\"]\")&&!digit.peek().equals(\"}\")&&!digit.peek().equals(\"+\")&&!digit.peek().equals(\"-\")&&!digit.peek().equals(\"*\")&&!digit.peek().equals(\"/\")){\r\n\t\t\t\t\t\t\tsecond = digit.pop();\r\n\t\t\t\t\t\t\tif (digit.size()>0&&(digit.peek().equals(\"+\")||digit.peek().equals(\"-\")||digit.peek().equals(\"*\")||digit.peek().equals(\"/\"))) {\r\n\t\t\t\t\t\t\t\tisHasOperator = true;\r\n\t\t\t\t\t\t\t\tdigit.pop();\r\n\t\t\t\t\t\t\t\tif (digit.size()>0) {\r\n\t\t\t\t\t\t\t\t\tsecond = digit.pop();\r\n\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\tisLegal = false;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tisLegal = false;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tString first = digit.pop();\r\n\t\t\t\t\t\tif (digit.size()>0&&!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")) {\r\n\t\t\t\t\t\t\tif (digit.peek().equals(\"+\")||digit.peek().equals(\"-\")||digit.peek().equals(\"*\")||digit.peek().equals(\"/\")) {\r\n\t\t\t\t\t\t\t\tisHasOperator = true;\r\n\t\t\t\t\t\t\t\tdigit.pop();\r\n\t\t\t\t\t\t\t\tif (isHasOperator&&!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")&&!digit.peek().equals(\")\")\r\n\t\t\t\t\t\t\t\t\t\t&&!digit.peek().equals(\"]\")&&!digit.peek().equals(\"}\")&&!digit.peek().equals(\"+\")&&!digit.peek().equals(\"-\")&&!digit.peek().equals(\"*\")&&!digit.peek().equals(\"/\")) {\r\n\t\t\t\t\t\t\t\t\tsecond = digit.pop();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (second==null) {\r\n\t\t\t\t\t\tisLegal = false;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tdigit.pop();\r\n\t\t\t\t\t\tdigit.push(second);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbuffer.append(ch);\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\twhile(i<len&&ch!='+'&&ch!='-'&&ch!='*'&&ch!='/'&&ch!='['&&ch!='{'&&ch!='('&&ch!=')'&&ch!=']'&&ch!='}'){\r\n\t\t\t\t\t\tch = str.charAt(i);\r\n\t\t\t\t\t\tbuffer.append(ch);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdigit.push(buffer.toString());\r\n\t\t\t\t\tbuffer.setLength(0);\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif (!isLegal) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (digit.size()==1&&!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")) {\r\n\t\t\t\t\r\n\t\t\t}else {\r\n\t\t\t\tisLegal = false;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(isLegal);\r\n\t\t}\r\n\t}",
"public int evalPostfixExpression(String[] input) {\r\n\t\tStack<Integer> result = new Stack<Integer>();\r\n\t\tint num = 0;\r\n\t\tfor (String s: input) {\r\n\t\t\ttry {\r\n\t\t\t\tnum = Integer.parseInt(s);\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\tint y = result.pop();\r\n\t\t\t\tint x = result.pop();\r\n\t\t\t\tif (s.equals(\"+\"))\r\n\t\t\t\t\tnum = x + y;\r\n\t\t\t\telse if (s.equals(\"-\"))\r\n\t\t\t\t\tnum = x - y;\r\n\t\t\t\telse if (s.equals(\"*\"))\r\n\t\t\t\t\tnum = x * y;\r\n\t\t\t\telse if (s.equals(\"/\"))\r\n\t\t\t\t\tnum = x / y;\r\n\t\t\t}\r\n\t\t\tresult.push(num);\r\n\t\t}\r\n\t\treturn result.pop();\r\n\t}",
"@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}",
"public int eval(String expression) {\n String token;\n // The 3rd argument is true to indicate that the delimiters should be used\n // as tokens, too. \n this.tokenizer = new StringTokenizer(expression, DELIMITERS, true);\n\n //initialized with # operator, used as bogus to compare priorities and detect end of operatorStack.\n operatorStack.push(new PoundOperator());\n\n //Checks whether there are more tokens to be pushed in stacks\n while (this.tokenizer.hasMoreTokens()) {\n // filter out spaces\n if (!(token = this.tokenizer.nextToken()).equals(\" \")) {\n // check if token is an operand\n if (Operand.check(token)) {\n operandStack.push(new Operand(token));\n\n } else {\n if (!Operator.check(token)) {\n System.out.println(\"*****invalid token******\");\n System.exit(1);\n }\n\n //Gets a newOperator it matches from hashmap.\n Operator newOperator = Operator.getToken(token);\n\n //Processes only, when there is greater priority in stack and there are no '('\n while (operatorStack.peek().priority() >= newOperator.priority() && !newOperator.equals(Operator.getToken(\"(\"))) {\n\n //If the token read is ), then there is already '(' which is inserted in the operator stack.\n if (token.equals(\")\")) {\n //Perform until, the '(' is on top of the stack.\n while (!operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n\n }\n\n //If '(' found on top, pop and break, to continue to read more takens\n if (operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n operatorStack.pop();\n break;\n }\n\n } \n //if ')' not found, it means either its in '(' or there are no parenthesis\n else {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n }\n }\n //Pushes the operator, when the operator!=')'\n if (!newOperator.equals(Operator.getToken(\")\"))) {\n operatorStack.push(newOperator);\n }\n }\n }\n }\n // No more tokens to be read. All the tokens are in stacks, gets processed.\n if (!this.tokenizer.hasMoreTokens()) {\n //Keeps processing, until it reaches #\n while (operatorStack.size() != 1) {\n Operator oldOpr = operatorStack.pop();\n //Checks if there are operand left to be used,\n if (!operandStack.empty()) {\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n } else {\n System.exit(1);\n }\n }\n }\n // Returns, the final result\n return operandStack.pop().getValue();\n }",
"public static String infixToPostfix(String input) {\r\n\t\tStack<Object> infixStack = new Stack<>();\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean digitPreviously = false;\r\n\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tchar temp = input.charAt(i);\r\n\r\n\t\t\t// CASE 1 : handling digits\r\n\t\t\tif (priority(temp) < 0) {\r\n\t\t\t\tsb.append(temp);\r\n\t\t\t\tdigitPreviously = true;\r\n\t\t\t// CASE 2 : handling (, )\r\n\t\t\t} else if (priority(temp) == 0) {\r\n\t\t\t\tif (temp == '(') {\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tdigitPreviously = false;\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboolean foundOpener = false;\r\n\t\t\t\t\twhile (!infixStack.empty()) {\r\n\t\t\t\t\t\tif ((char)infixStack.peek() == '(') {\r\n\t\t\t\t\t\t\tfoundOpener = true;\r\n\t\t\t\t\t\t\tinfixStack.pop();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tchar top = (char)infixStack.pop();\r\n\t\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t\t\tsb.append(top);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdigitPreviously = true;\t\r\n\t\t\t\t\tif (!foundOpener) {\r\n\t\t\t\t\t\t// invalid case : different number of ( and )\r\n\t\t\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// CASE 3 : handling operators\r\n\t\t\telse if (priority(temp) > 0) {\r\n\t\t\t\tif (infixStack.empty()) {\r\n\t\t\t\t\tif (!digitPreviously && temp == '-') {\r\n\t\t\t\t\t\ttemp = '~';\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t} else {\r\n\t\t\t\t\twhile (!infixStack.empty()) {\r\n\t\t\t\t\t\tif (!digitPreviously && temp == '-') {\r\n\t\t\t\t\t\t\ttemp = '~';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (priority((char)infixStack.peek()) < priority(temp) || temp == '^' || temp == '~') {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tchar top = (char)infixStack.pop();\r\n\t\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t\t\tsb.append(top);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t}\r\n\t\t\t\tdigitPreviously = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// pop remaining chars\r\n\t\twhile (!infixStack.empty()) {\r\n\t\t\tchar temp = (char)infixStack.pop();\r\n\t\t\tif (temp == '(') {\r\n\t\t\t\t// invalid case : different number of ( and )\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(' ');\r\n\t\t\t\tsb.append(temp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn sb.toString();\r\n\t}",
"public String expressionExpand(String s) {\n if (s == null) {\n return \"\";\n }\n Stack<StringBuilder> stk = new Stack<>();\n stk.push(new StringBuilder());\n for (int i = 0; i < s.length(); i++) {\n if (Character.isDigit(s.charAt(i))) {\n int j = i + 1;\n while (j < s.length() && Character.isDigit(s.charAt(j))) {\n j++;\n }\n String num = s.substring(i, j);\n stk.push(new StringBuilder(num));\n stk.push(new StringBuilder());\n i = j; // skip [\n } else if (Character.isLetter(s.charAt(i))) {\n stk.peek().append(s.charAt(i));\n } else if (s.charAt(i) == ']') {\n StringBuilder next = stk.pop();\n int num = Integer.valueOf(stk.pop().toString());\n while (num > 0) {\n stk.peek().append(next);\n num--;\n }\n }\n }\n return stk.pop().toString();\n }",
"@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}",
"public String eval(String input)\n\t{\n\t\ttry\n\t\t{\n\t\tProgramRule ptmp = new ProgramRule(this.value);\n\t\tString res = \"\";\n\t\tres = ptmp.transform(input);\n\t\t//recursively evaluate the children nodes.\n\t\tfor(ParseTreeNode ptn: this.children)\n\t\t{\n\t\t\tptn.eval(input);\n\t\t}\n\t\tthis.tmpEval = res;\n\t\treturn res;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static void main(String[] args) {\n String s=\"[()]{}{[()()]()}\";\n char s1[]=s.toCharArray();\n Stack<Character> a=new Stack<>();\n \n for (int i = 0; i < s.length(); i++) {\n \t char x=s.charAt(i);\n// \t if(a.isEmpty()) {\n// \t\t a.push(x);\n// \t }\n \t \n\t\tif(x=='{'||x=='['||x=='('){\n\t\t\ta.push(x);\n\t\t}\n\t\telse if(x=='}'||x==']'||x==')'&& !a.isEmpty()) {\n//\t\t\tif(a.peek()=='}'||a.peek()==']'||a.peek()==')')\n\t\t\ta.pop();\n\t\t}\n\t}\n System.out.println(a.toString());\n if(a.isEmpty()) {\n \t System.out.println(\"balanced\");\n }\n else\n {\n \t System.out.println(\"Unbalanced\"); \t \n }\n\t}",
"public static String parseExpressionForOperator(String expression) {\n int space = expression.indexOf(\" \");\n String frac1 = expression.substring(0, space);\n String operator = expression.substring(space + 1, space + 2);\n return operator;\n }",
"public int solution(String S){\n if(S.length() == 0) return 1;\n if(S.length() % 2 != 0) return 0;\n\n // new Stack<Character>()\n Stack<Character> stack = new Stack<>();\n // scan the string (just one pass)\n for(int i=0; i< S.length(); i++){\n // note: push \"its pair\"\n if( S.charAt(i) == '(' ){\n stack.push(')');\n }\n else if( S.charAt(i) == '[' ){\n stack.push(']');\n }\n else if( S.charAt(i) == '{' ){\n stack.push('}');\n }\n // pop and check\n else if( S.charAt(i) == ')' || S.charAt(i) == ']' || S.charAt(i) == '}'){\n // important: check if the stack is empty or not (be careful)\n if(stack.isEmpty()){\n return 0;\n }\n else{\n if(stack.pop() != S.charAt(i)){ // not a pair\n return 0;\n }\n }\n }\n }\n // note: check if the stack is empty or not\n if(stack.isEmpty())\n return 1;\n return 0;\n\n }",
"static boolean findDuplicateparenthesis(String s) {\n\t\tStack<Character> Stack = new Stack<>();\r\n\t\tfor(int i=0;i<s.length();i++)\r\n\t\t{\r\n\t\t if(s.charAt(i)!=')')\r\n\t\t {\r\n\t\t Stack.push(s.charAt(i));\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t int top= Stack.pop();\r\n\t\t int count=0;\r\n\t\t while(top!='(')\r\n\t\t {\r\n\t\t top= Stack.pop();\r\n\t\t count++;\r\n\t\t }\r\n\t\t if(count<1)\r\n\t\t {\r\n\t\t return true;\r\n\t\t }\r\n\t\t }\r\n\t\t}\r\n\t\treturn false;\r\n\r\n\t\r\n\t}",
"private static String fixBrackets(String reg) {\n while (reg.contains(\"()*\"))\n reg = removeChars(reg, reg.indexOf(\"()*\"), \"()*\".length());\n\n int i = reg.indexOf(\"(\");\n do {\n if (reg.charAt(i) == '(') {\n int j = 1;\n boolean leave = false;\n boolean removeBracket = true;\n do {\n if (reg.charAt(i + j) == '(') {\n bracketStack.push(i);\n bracketRemove.push(removeBracket);\n i = i + j;\n j = 1;\n removeBracket = true;\n } else if (reg.charAt(i + j) == ')') {\n if (removeBracket) {\n if (j == 2 && reg.contains(String.valueOf(QUOTE)))\n leave = false;\n else if (j > 2 && i + j + 1 < reg.length()\n && reg.charAt(i + j + 1) == '*') {\n i = i + j + 1;\n leave = true;\n }\n if (!leave) {\n reg = removeChars(reg, i + j, 1);\n reg = removeChars(reg, i, 1);\n if (bracketStack.size() > 0) {\n i = bracketStack.pop();\n removeBracket = bracketRemove.pop();\n j = 1;\n } else\n leave = true;\n }\n } else {\n if (bracketStack.size() > 0) {\n j = i + j + 1;\n i = bracketStack.pop();\n j = j - i;\n removeBracket = bracketRemove.pop();\n } else {\n i = i + j;\n leave = true;\n }\n }\n } else if (reg.charAt(i + j) == '|' && reg.charAt(i + j - 1) != QUOTE) {\n removeBracket = false;\n j++;\n } else\n j++;\n } while (!leave);\n }\n i++;\n } while (i < reg.length());\n\n return reg;\n }",
"public static ArrayDeque<String> parseSingle (String inputString) {\n\n //using ArrayDeque here since it does everything and is flexible. Could do a linkedList though..?\n ArrayDeque inputQueue = new ArrayDeque<String>();; //input queue. not sure if i really need this\n ArrayDeque outputQueue = new ArrayDeque<String>();//output queue\n ArrayDeque operatorStack = new ArrayDeque<String>(); //operator stack\n\n //remove spaces\n inputString = inputString.replaceAll(\"\\\\s+\", \"\");\n\n String inputArray[] = inputString.split(\"(?<==>|&|~|\\\\/|<=>)|(?==>|&|~|\\\\/|<=>)\"); //TODO build this regex dynamically from Connective enum\n for (String inputElement: inputArray) {\n inputQueue.add(inputElement);\n }\n\n //convert to rpn form\n //don't worry about parentheses, do later as part of research\n while (!inputQueue.isEmpty()) {\n //check if element is a operator\n if (isOperator((String)inputQueue.peekFirst())) {\n\n //add operator to stack if empty\n if (operatorStack.isEmpty()) {\n operatorStack.addLast(inputQueue.pollFirst());\n\n //while there is an operator on the operatorStack with greater precedence than the current pop that one\n } else if (compare((String)inputQueue.peekFirst(), (String)operatorStack.peekLast()) <= 0) {\n outputQueue.add(operatorStack.pollLast());\n continue; //need to restart loop since may be operatorStack.size() > 1\n } else {\n operatorStack.addLast(inputQueue.pollFirst());\n }\n //operands\n } else {\n outputQueue.add(inputQueue.pollFirst());\n }\n }\n\n //once inputQueue is empty need to finish draining the operators\n while (!operatorStack.isEmpty()) {\n outputQueue.add(operatorStack.pollLast());\n }\n\n //TODO: maybe convert proposition symbol to Horn form\n\n return (outputQueue);\n }",
"public static String produceAnswer(String input) {\n // TODO: Implement this function to produce the solution to the input\n \n // Parsing one line of input\n int space = input.indexOf(\" \"); // find the index of the first space\n String operandOne = input.substring(0, space); // substring of beginning to space before operator\n \n String newString1 = input.substring(space + 1, input.length());\n int space2 = newString1.indexOf(\" \"); // find the index of the second space\n String operator = newString1.substring(0, space2); // operator is between the first space and the second space\n \n String newString2 = newString1.substring(space2, newString1.length());\n String operandTwo = newString2.substring(space2, newString2.length()); // substring of space after operator to the end\n \n \n // Multiple operations\n while (operandTwo.indexOf(\" \") > 0) {\n int space3 = operandTwo.indexOf(\" \");\n String value = operandTwo.substring(0, space3);\n String new_String3 = operandTwo.substring(space3 + 1, operandTwo.length());\n int space4 = new_String3.indexOf(\" \");\n String operator2 = new_String3.substring(space4 - 1, space4);\n operandTwo = new_String3.substring(space4 + 1, new_String3.length());\n String new_equation = operandOne + \" \" + operator + \" \" + value;\n operandOne = produceAnswer(new_equation);\n operator = operator2;\n }\n \n // Parsing fractions: Operand 1\n String whole1 = operandOne; // hi_\n String num1 = \"\";\n String denom1 = \"\";\n int slash1 = operandOne.indexOf(\"/\");\n \n if (slash1 > 0) {\n int underscore1 = operandOne.indexOf(\"_\");\n if (underscore1 > 0) {\n whole1 = operandOne.substring(0, underscore1);\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n } else {\n whole1 = \"0\";\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n }\n \n } else {\n num1 = \"0\";\n denom1 = \"1\";\n }\n \n // Parsing fractions: Operand 2\n String whole2 = operandTwo;\n String num2 = \"\";\n String denom2 = \"\";\n int slash2 = operandTwo.indexOf(\"/\");\n \n if (slash2 > 0) {\n int underscore2 = operandTwo.indexOf(\"_\");\n if (underscore2 > 0) {\n whole2 = operandTwo.substring(0, underscore2);\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n } else {\n whole2 = \"0\";\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n }\n \n } else {\n num2 = \"0\";\n denom2 = \"1\";\n }\n \n \n // change strings to integers\n int intwhole1 = Integer.parseInt(whole1);\n int intnum1 = Integer.parseInt(num1);\n int intdenom1 = Integer.parseInt(denom1);\n \n int intwhole2 = Integer.parseInt(whole2);\n int intnum2 = Integer.parseInt(num2);\n int intdenom2 = Integer.parseInt(denom2);\n \n // convert to improper fraction\n intnum1 += intdenom1 * Math.abs(intwhole1);\n if (intwhole1 < 0) {\n intnum1 *= -1;\n }\n \n intnum2 += intdenom2 * Math.abs(intwhole2);\n if (intwhole2 < 0) {\n intnum2 *= -1;\n }\n \n int finalnum = 0;\n int finaldenom = 0;\n int finalwhole = 0;\n \n // if denominator equals 0, quit\n if (intdenom1 == 0 || intdenom2 == 0) {\n return \"Invalid\";\n }\n \n // if operator is incorrect, quit\n if (operator.length() > 1) {\n return \"Invalid\";\n }\n \n // addition calculation\n // multiply whole values to fraction to get a common denominator\n if (operator.equals(\"+\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 + intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // subtraction calculation\n if (operator.equals(\"-\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 - intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // multiplication calculation\n if (operator.equals(\"*\")) {\n finalnum = intnum1 * intnum2;\n finaldenom = intdenom1 * intdenom2;\n if (intnum1 == 0 || intnum2 == 0) {\n return 0 + \"\";\n }\n }\n \n // division calculation\n if (operator.equals(\"/\")) {\n finalnum = intnum1 * intdenom2;\n finaldenom = intdenom1 * intnum2;\n }\n \n // make numerator negative instead of the denominator\n if (finaldenom < 0 && finalnum > 0) {\n finaldenom *= -1;\n finalnum *= -1;\n }\n \n // convert to mixed fraction if numerator is positive\n while (finalnum / finaldenom >= 1) {\n finalnum -= finaldenom;\n finalwhole += 1;\n }\n \n // convert to mixed fraction if numerator is negative\n while (finalnum / finaldenom <= -1) {\n finalnum += finaldenom;\n finalwhole -= 1;\n }\n \n // remove signs from numerator and denominator if there is a whole number\n if (finalwhole != 0) {\n finalnum = Math.abs(finalnum);\n finaldenom = Math.abs(finaldenom);\n }\n \n // reduce fraction\n int gcd = 1;\n for (int i = 1; i <= Math.abs(finalnum) && i <= Math.abs(finaldenom); i++) {\n if (finalnum % i == 0 && finaldenom % i == 0)\n gcd = i;\n }\n finalnum /= gcd;\n finaldenom /= gcd;\n \n // final output\n if (finalwhole == 0) {\n if (finalnum == 0) {\n return \"0\";\n } else {\n return finalnum + \"/\" + finaldenom;\n }\n } else if (finalnum == 0 || finaldenom == 1) {\n return finalwhole + \"\";\n } else {\n return finalwhole + \"_\" + finalnum + \"/\" + finaldenom;\n }\n }",
"public static String infixToPostfix(String regex) {\n String postfix = new String();\n\n Stack<Character> stack = new Stack<>();\n\n String formattedRegEx = formatRegEx(regex);\n\n for (Character c : formattedRegEx.toCharArray()) {\n switch (c) {\n case '(': {\n stack.push(c);\n break;\n }\n case ')': {\n while (!stack.peek().equals('(')) {\n postfix += stack.pop();\n }\n stack.pop();\n break;\n }\n default: {\n while (stack.size() > 0) {\n Character topChar = stack.peek();\n\n Integer topCharPrecedence = getPrecedence(topChar);\n Integer actualCharPrecedence = getPrecedence(c);\n\n if (topCharPrecedence >= actualCharPrecedence) {\n postfix += stack.pop();\n } else {\n break;\n }\n }\n stack.push(c);\n break;\n }\n }\n }\n while (stack.size() > 0) {\n postfix += stack.pop();\n }\n\n return postfix;\n }",
"static String infixToPostfix(String txt) \n\t{\n\t\tString postfix = new String(\"\");\n Stack<Character> stack = new Stack<>();\n \n for (int i = 0; i<txt.length(); ++i)\n {\n char c = txt.charAt(i);\n \n // Ist das eingescannte Zeichen c ein Operand, addiere es zur Ausgabe hinzu\n if (Character.isLetterOrDigit(c)) \n {\n \tpostfix += c;\n }\n \n \n // Ist das eingescannte Zeichen c eine offene Klammer, lege es auf den Stapel\n else if (c == '(') \n {\n \tstack.push(c);\n }\n \n // Ist das eingescannte Zeichen c eine schließende Klammer, pop es aus dem Stapel bis eine öffnende Klammer erscheint\n else if (c == ')')\n {\n while (!stack.isEmpty() && stack.peek() != '(') \n {\n \tpostfix += stack.pop();\n stack.pop();\n } \n }\n else //falls es ein Operator ist\n {\n while (!stack.isEmpty() && precedence(c) < precedence(stack.peek()))\n {\n postfix += stack.pop();\n }\n stack.push(c);\n }\n }\n \n // pop all the operators from the stack\n while (!stack.isEmpty())\n {\n postfix += stack.pop();\n }\n return postfix;\n\n\t}",
"public static String[] convertToPos(String[] string) {\n\n\t\tHashMap<String, Integer> operator = new HashMap<String, Integer>();\n\t\toperator.put(\"*\", 2);\n\t\toperator.put(\"/\", 2);\n\t\toperator.put(\"+\", 1);\n\t\toperator.put(\"-\", 1);\n\t\toperator.put(\"(\", 3);\n\t\toperator.put(\")\", 0);\n\n\t\tStack<String> evaluationStack = new Stack<String>();\n\t\tStack<String> operatorStack = new Stack<String>();\n\n\t\tfor (int i = 0; i < string.length; i++) {\n\t\t\tif (!(operator.containsKey(string[i]))) {\n\t\t\t\tevaluationStack.push(string[i]);\n\t\t\t} else {\n\t\t\t\tint precedence = operator.get(string[i]);\n\t\t\t\tif (!operatorStack.isEmpty()) {\n\t\t\t\t\tif (operator.get(operatorStack.peek()) >= precedence) {\n\t\t\t\t\t\tif (!(operatorStack.peek().equals(\"(\") || operatorStack.peek().equals(\")\") || operatorStack.peek().equals(\"(\")))\n\t\t\t\t\t\t\tevaluationStack.push(operatorStack.pop());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toperatorStack.push(string[i]);\n\t\t\t}\n\t\t}\n\n\t\twhile (!operatorStack.isEmpty()) {\n\t\t\tif (!((operatorStack.peek().equals(\")\") || operatorStack.peek().equals(\"(\")))) {\n\t\t\t\tevaluationStack.push(operatorStack.pop());\n\t\t\t} else {\n\t\t\t\toperatorStack.pop();\n\t\t\t}\n\t\t}\n\t\t\n\t\tString str[] = new String[evaluationStack.size()];\n\n\t\tint c = str.length - 1;\n\t\twhile (!evaluationStack.isEmpty()) {\n\t\t\tstr[c] = evaluationStack.pop();\n\t\t\tc--;\n\t\t}\n\n\t\treturn str;\n\n\t}",
"private static String convertToPostfix(String str) {\n Stack<Character> stack = new Stack<>();\n StringBuilder postfix = new StringBuilder();\n\n\n for (int index = 0; index < str.length(); index++) {\n char c = str.charAt(index);\n\n //if c is a digit, an algebraic variable, a dot, or blank (String formatting helper) it is added to\n //the postfix expression\n if ( Character.isLetterOrDigit(c) || c == '.' || c == ' ' ) {\n postfix.append(c);\n\n //if c is a left parenthesis it is added to the stack and a blank (string format helper) is appended\n //to postfix expression.\n } else if ( c == '(' ) {\n stack.push(c);\n postfix.append(\" \");\n\n //if c is an operator the stack is pop and added to the postfix expression only if c's precedence is\n // smaller or equal to the topmost operator in the stack. Otherwise, c is just added to the stack\n } else if ( isOperator(c) ) {\n while (!stack.isEmpty() && precedence(c) <= precedence(stack.peek()) ) {\n postfix.append(stack.pop()).append(\" \");\n }\n stack.push(c);\n\n //if c is a right parenthesis and the stack is not empty, the stack is then popped and added to the\n //postfix expression until a left parenthesis is encountered. If there is no left parenthesis then an\n //exception is thrown with a misplaced parenthesis statement\n } else if ( c == ')') {\n boolean hasLeftParenthesis = false;\n while ( !stack.isEmpty() ) {\n char popped = stack.pop();\n if ( popped == '(' ) {\n hasLeftParenthesis = true;\n break;\n } else {\n postfix.append(popped).append(\" \");\n }\n }//end of inner-loop\n if ( !hasLeftParenthesis ) {\n throw new ArithmeticException(\"Misplaced parenthesis\");\n }\n }\n }//end of for-loop\n\n //If stack is not empty, the stack is then popped and added to the postfix expression. If a left parenthesis is\n //found then an exception is thrown with a misplaced parenthesis statement;\n while (!stack.isEmpty()) {\n if (stack.peek() == '(') {\n throw new ArithmeticException(\"Misplaced parenthesis\");\n }\n postfix.append(stack.pop()).append(\" \");\n }\n\n //String is trimmed, double spaces are replaced by single spaces, and returned\n return postfix.toString().trim().replaceAll(\" \", \" \");\n }",
"public static void main(String[] args) {\n System.out.println(solution(\"1 + 2\"));\n System.out.println(solution(\"1 * 2 + 3\"));\n System.out.println(solution(\"1 + 2 * 3\"));\n System.out.println(solution(\"1 + 2 * 3 - 4 / 2 + 6 / 2 - 7\"));\n\n System.out.println(solution(\"1 + 2 * (3 * (1 + 2))\"));\n }",
"public String convert(ArithmeticExpression expression)\n {\n String expressionString = expression.getExpression();\n String convertedExpression = \"\";\n Stack<String> OpStack = new Stack<>();\n\n int startIndex = 0;\n while(startIndex < expressionString.length())\n {\n if(isOperand(nextToken(expressionString,startIndex)))\n {\n convertedExpression += nextToken(expressionString,startIndex);\n convertedExpression += \" \";\n\n }\n if(Brackets.isLeftBracket(nextToken(expressionString,startIndex)))\n {\n OpStack.push(nextToken(expressionString,startIndex));\n }\n if(Brackets.isRightBracket(nextToken(expressionString,startIndex)))\n {\n String topOp = OpStack.pop();\n while(!Brackets.isLeftBracket(topOp))\n {\n convertedExpression += topOp;\n convertedExpression += \" \";\n topOp = OpStack.pop();\n }\n }\n if(Operator.isOperator(nextToken(expressionString,startIndex)))\n {\n Operator temp = Operator.of(nextToken(expressionString,startIndex));\n if(OpStack.isEmpty())\n {\n OpStack.push(nextToken(expressionString, startIndex));\n }\n else\n {\n Operator topOp = Operator.of(OpStack.peek());\n while (topOp.getRank() <= temp.getRank())\n {\n convertedExpression += OpStack.pop();\n convertedExpression += \" \";\n topOp = Operator.of(OpStack.peek());\n }\n OpStack.push(nextToken(expressionString, startIndex));\n\n }\n }\n if(isOperand(nextToken(expressionString,startIndex)))\n startIndex += nextToken(expressionString,startIndex).length();\n else\n startIndex++;\n }\n while(!OpStack.isEmpty())\n {\n convertedExpression += OpStack.pop();\n convertedExpression += \" \";\n }\n return convertedExpression;\n }",
"public String processInfix(char[] input) {\n String result = \"\"; //Initialize the string. This will be the postfix formatted input.\n\n for (int i = 0; i < input.length; i++) {\n\n //If it is a digit it is sent straight to the result\n if (Character.isDigit(input[i])) {\n result += input[i];\n }\n\n //If it is an open bracket it is pushed into the stack.\n else if (input[i] == '(') {\n s.push(input[i]);\n }\n\n //If it is a closed bracket, all items in the stack are popped until an open bracket is found.\n //Both brackets are then discarded\n else if (input[i] == ')') {\n\n while (!s.isEmpty() && (char)s.top() != '(') {\n result += (char)s.pop();\n }\n\n if (!s.isEmpty() && (char)s.top() != '(') {\n System.out.println(\"Invalid Expression. A '(' character must be followed by a ')' in the Expression.\");\n } else {\n s.pop(); //get rid of ( from the eq.\n }\n }\n\n //Else it must be an operand...\n else {\n //loop checks:\n // 1. that the stack is not empty and\n // 2. that the current token is less or equal in priority to the one on the top of the stack\n // If it both are true then the operator is sent to the result\n while(!s.isEmpty() && getPriority(input[i]) <= getPriority((char)s.top())){\n result += (char)s.pop();\n }\n s.push(input[i]);\n }\n }\n\n //Pop the remainder of the stack to the result\n while(!s.isEmpty()){\n result += (char)s.pop();\n }\n\n return result;\n }",
"private String compute(String str) {\n String array[];\n array=str.split(\" \");\n Stack<Double> s=new Stack<Double>();\n Double a=Double.parseDouble(array[0]);\n s.push(a);\n for(int i=1;i<array.length;i++) {\n if(i%2==1) {\n if(array[i].compareTo(\"+\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n s.push(b);\n }\n if(array[i].compareTo(\"-\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n s.push(-b);\n }\n if(array[i].compareTo(\"*\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n\n double c=s.pop();\n\n c*=b;\n s.push(c);\n\n\n }\n if(array[i].compareTo(\"/\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n\n double c=s.peek();\n s.pop();\n c/=b;\n s.push(c);\n\n\n }\n }\n }\n double sum=0;\n while(!s.isEmpty()) {\n sum+=s.pop();\n\n }\n String result=String.valueOf(sum);\n return result;\n }",
"protected String getParenthesesContent(String expression, int begin) {\r\n\t\t\r\n\t\tStack<Character> stack = new Stack<>();\r\n\t\tfor(int end = begin;end < expression.length(); end++) {\r\n\t\t\tCharacter c = expression.charAt(end);\r\n\t\t\tif(c == '(') {\r\n\t\t\t\tstack.push('(');\r\n\t\t\t} else if(c == ')') {\r\n\t\t\t\tstack.pop();\r\n\t\t\t\tif(stack.empty()) {\r\n\t\t\t\t\treturn expression.substring(begin+1, end);\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\t\t\r\n\t}",
"double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }",
"double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }",
"public static int expression()\r\n {\r\n //get the start state of this term\r\n int r,t1,f1;\r\n t1=r=term();\r\n\r\n //if there is no more input, we are done\r\n if(index>expression.length()-1)\r\n {\r\n return r;\r\n }\r\n\r\n //if this is concatenation\r\n if(expression.charAt(index)=='.'||isVocab(expression.charAt(index))||expression.charAt(index)=='\\\\'\r\n ||expression.charAt(index)=='['||expression.charAt(index)=='(')\r\n {\r\n //get the start state of this expression and\r\n //update next1 and next2\r\n int t2,cur;\r\n cur=state-1;\r\n t2=expression();\r\n if(stateList.get(cur).getNext1()==stateList.get(cur).getNext2())\r\n {\r\n stateList.get(cur).setNext1(t2);\r\n }\r\n stateList.get(cur).setNext2(t2);\r\n\r\n }\r\n\r\n //if there is no more input, we are done\r\n if(index>=expression.length())\r\n {\r\n return r;\r\n }\r\n\r\n //if this is alternation\r\n if(expression.charAt(index)=='|')\r\n {\r\n //if there is nothing after '|', it is a invalid expression\r\n index++;\r\n if(index>expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n //create a branch state,set the nex1 of the branch state to the term\r\n //so a|b and a|b|c both work\r\n int t2;\r\n f1=state-1;\r\n\r\n state st=new state(state,\"BR\",t1,-1);\r\n stateList.add(st);\r\n r=state;\r\n state++;\r\n\r\n //get the start state of this expression\r\n t2=expression();\r\n\r\n //update the branch state's next2 to the start state of the expression\r\n stateList.get(f1+1).setNext2(t2);\r\n\r\n //update term's next1 and next2\r\n if(stateList.get(f1).getNext1()==stateList.get(f1).getNext2())\r\n {\r\n stateList.get(f1).setNext1(state);\r\n }\r\n stateList.get(f1).setNext2(state);\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n return r;\r\n }",
"public static String infixToPostfix(String expression) {\n if (expression.contains(\" \"))\n {\n String newExpression = expression.replaceAll(\" \", \"\");\n expression = newExpression;\n }\n\n // Check for correct parentheses placement\n int lp = 1, rp = 0;\n String errorMessage = \"\";\n for (int i = 1; i < expression.length(); i++)\n {\n if (expression.charAt(i) == '(') lp++;\n if (expression.charAt(i) == ')') rp++;\n\n if (lp == rp && i < expression.length()-1)\n {\n // Error extra parentheses\n errorMessage = \"Error: Extra parentheses\";\n return errorMessage;\n }\n else if (lp < rp)\n {\n // Error misplaced closing parentheses\n errorMessage = \"Error: Misplaced closing parentheses\";\n return errorMessage;\n }\n else if (lp > rp && i == expression.length()-1)\n {\n // Error missing closing parentheses\n errorMessage = \"Error: Missing closing parentheses\";\n return errorMessage;\n }\n }\n\n // Add implied multiplication\n String impliedMulOptions = \"123456789.)\";\n for (int i = 1; i < expression.length(); i++)\n {\n char c = expression.charAt(i);\n String prevChar = \"\";\n prevChar += expression.charAt(i-1);\n if (c == '(')\n {\n if (impliedMulOptions.contains(prevChar))\n {\n String pre = expression.substring(0, i);\n String post = expression.substring(i);\n expression = pre + '*' + post;\n }\n }\n\n // Also check for multiple subtraction signs can convert\n if (c == '-')\n {\n if (c == prevChar.charAt(0))\n {\n String pre = expression.substring(0, i-1);\n String post = expression.substring(i+1);\n if (expression.charAt(i-2) == '(')\n {\n expression = pre + post;\n i--;\n }\n else expression = pre + '+' + post;\n }\n }\n }\n\n // Handle functions within the expression\n while (expression.contains(\"s\") || expression.contains(\"c\") || expression.contains(\"t\") || expression.contains(\"l\")) {\n if (expression.charAt(0) == 'E') return expression;\n expression = functionPresent(expression);\n }\n\n\n // ----- Create RPN -----\n // Variables to store results\n Stack<String> rpn = new Stack<String>();\n Stack<String> stack = new Stack<String>();\n\n // Define all operators possible in the question\n String operators = \"^*/+-()\";\n\n for (int pos = 0; pos < expression.length(); pos++) {\n char c = expression.charAt(pos);\n\n // If a number, find the end of it and add to stack\n if (Character.isDigit(c)) {\n int endpos = 0;\n for (int i = pos; i < expression.length(); i++) {\n char seekChar = expression.charAt(i);\n if (Character.isDigit(seekChar) || seekChar == '.') {\n continue;\n } else {\n endpos = i;\n break;\n }\n }\n rpn.push(expression.substring(pos, endpos));\n pos = endpos - 1;\n continue;\n }\n\n // If a negative number, find end of it and add to stack\n if (c == '-' && operators.contains(expression.substring(pos-1, pos)))\n {\n int endpos = 0;\n for (int i = pos; i < expression.length(); i++) {\n char seekChar = expression.charAt(i);\n if (Character.isDigit(seekChar) || seekChar == '.' || seekChar == '-') {\n continue;\n } else {\n endpos = i;\n break;\n }\n }\n rpn.push(expression.substring(pos, endpos));\n pos = endpos - 1;\n continue;\n }\n\n // If opening a set of parentheses, push it to stack.\n if (c == '(') {\n stack.push(\"(\");\n continue;\n }\n\n // If closing a set of parentheses, pop to rpn until opening parentheses occurs.\n if (c == ')') {\n while (!stack.isEmpty() && stack.peek() != \"(\") {\n rpn.push(stack.pop());\n }\n // Once we hit the open parentheses, pop it and exit loop\n stack.pop();\n continue;\n }\n\n // When an operand has been found\n else {\n while (!stack.isEmpty() && pemdas(c) <= pemdas(stack.peek())) {\n rpn.push(stack.pop());\n }\n String operandString = new String();\n operandString += c;\n stack.push(operandString);\n }\n\n }\n\n // ----- Solve RPN -----\n // Grab the RPN from the stack and turn it into an array to access it properly\n String[] rpnArray = new String[rpn.size()];\n for (int i = rpn.size() - 1; i > -1; i--) {\n rpnArray[i] = rpn.pop();\n }\n\n // If array is just one number, return it\n if (rpnArray.length == 1) return rpnArray[0];\n\n\n\n // Create stack for solving the problem\n Stack<String> solvingStack = new Stack<String>();\n\n for (int i = 0; i < rpnArray.length; i++) {\n // If it is a number, add to stack\n if (!operators.contains(rpnArray[i])) {\n solvingStack.push(rpnArray[i]);\n continue;\n }\n else if (rpnArray[i].charAt(0) == '-' && rpnArray[i].length() > 1)\n {\n solvingStack.push(rpnArray[i]);\n continue;\n }\n // Otherwise we do the math\n else\n {\n // Popping B first because of subtraction, division, and exponent\n double b = Double.parseDouble(solvingStack.pop());\n double a = Double.parseDouble(solvingStack.pop());\n int operator = operators.indexOf(rpnArray[i]);\n double result = 0;\n String resultStr = new String();\n switch (operator) {\n // Exponent\n case 0:\n result = Math.pow(a, b);\n break;\n\n // Multiplication\n case 1:\n result = (a * b);\n break;\n\n // Division\n case 2:\n if (b == 0) return \"Error: Cannot divide by zero\";\n result = (a / b);\n break;\n\n // Addition\n case 3:\n result = (a + b);\n break;\n\n // Subtraction\n case 4:\n result = (a - b);\n break;\n }\n resultStr += result;\n solvingStack.push(resultStr);\n }\n }\n\n\n //double answer = Double.parseDouble(solvingStack.pop());\n return solvingStack.pop();\n }",
"public static int longestValidParentheses3(String str) {\n\t\tint max = 0;\n\t\tStack<Integer> stack = new Stack<Integer>();\n\t\tstack.push(-1);//先前最远的不可匹配的位置,\n\t\tint i = -1;\n// for(int i = 0;i < str.length();i++){\n\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\tchar ch = str.charAt(j);\n\t\t\tif (ch != '(' && ch != ')') {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (ch == '(') {\n\t\t\t\tstack.push(i);//不进行匹配,那么它就是先前最远的不可匹配的位置,\n\t\t\t} else {\n\t\t\t\tstack.pop();//闭起眼睛,匹配先前不可匹配的字符,\n\t\t\t\tif (stack.empty()) {\n\t\t\t\t\tstack.push(i);//如果栈为空,说明其实没有什么可以进行匹配的,所以当前就是新的最近的不可匹配的位置\n\t\t\t\t} else {\n\t\t\t\t\t//如果栈不为空,说明有可以进行匹配的,并且匹配完成,那么匹配的字符串长度为 i-stack.peek()\n\t\t\t\t\tif (i - stack.peek() > max) {\n\t\t\t\t\t\tSystem.out.printf(\"start:end %d:%d \\n\", stack.peek() + 1, i);\n\t\t\t\t\t}\n\t\t\t\t\tmax = Math.max(i - stack.peek(), max);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}",
"public String solveExpression(String expression) {\n Calculator calculator = new Calculator();\n ExpressionRootFinder rootFinder = new ExpressionRootFinder();\n if (rootFinder.isExpressionContainsInnerExpressions(expression)) {\n while (rootFinder.isExpressionContainsInnerExpressions(expression)) {\n String rootExpression = rootFinder.findRoot(expression);\n expression = expression.replace(\"(\" + rootExpression + \")\",\n calculator.calculate(rootExpression) + \"\");\n }\n String result = calculator.calculate(expression) + \"\";\n LOGGER.info(\"A complex expression was solved. Expression: \" + expression + \" Result: \" + result);\n return result;\n } else {\n String result = calculator.calculate(expression) + \"\";\n LOGGER.info(\"A simple expression was solved. Expression: \" + expression + \" Result: \" + result);\n return result;\n }\n }",
"public static String calculateStringEquation(String equation){\r\n //\"(17*(8-7/7))^2+7-3*-6*s90\"\r\n //Validity Check\r\n String numberSymbols = \"-.0123456789\";\r\n String operators = \"*/+^√sdfzcv\";\r\n \r\n //Replace alternate symbols\r\n equation = equation.replace(\",\", \".\");\r\n equation = equation.replace(\"x\", \"*\");\r\n equation = equation.replace(\"%\", \"/100\");\r\n equation = equation.replace(\"\\\\\", \"/\");\r\n \r\n //Insert + in front of -\r\n int c = 1;\r\n String newEquation = \"\" + equation.charAt(0);//Doesnt need to add + to begin\r\n while (c < equation.length()) {\r\n if (equation.charAt(c) == '-' && !operators.contains(\"\"+equation.charAt(c-1))) {\r\n newEquation += \"+\";\r\n }\r\n newEquation += equation.charAt(c);\r\n c++;\r\n }\r\n equation = newEquation;\r\n \r\n\r\n\r\n\r\n //Convert everything to double (eg 2 -> 2.0)\r\n c = 0;\r\n newEquation = \"\";\r\n boolean inNum = false;\r\n while (c < equation.length()) {\r\n if (numberSymbols.indexOf(equation.charAt(c)) != -1) {\r\n if (!inNum) {//Doesnt re read when going over more difficult numbers eg 2342\r\n newEquation += findNextNumber(equation, c-1);//opIndex is the index before next\r\n inNum = true;\r\n }\r\n }else{\r\n inNum = false;\r\n newEquation += equation.charAt(c);\r\n }\r\n c++;\r\n }\r\n equation = newEquation;\r\n //Brackets\r\n while(equation.contains(\"(\") || equation.contains(\")\")) {\r\n int openIndex = equation.indexOf(\"(\");\r\n int openBrackets = 1;\r\n int closedBrackets = 0;\r\n int closeIndex = openIndex + 1;\r\n\r\n while (openBrackets != closedBrackets) {\r\n if (equation.charAt(closeIndex) == '(') {\r\n openBrackets++;\r\n }\r\n if (equation.charAt(closeIndex) == ')') {\r\n closedBrackets++;\r\n }\r\n closeIndex++;\r\n }\r\n\r\n //Rewrite equation and sub in new value\r\n newEquation = \"\";//Reused\r\n if (openIndex != 0) {\r\n newEquation += equation.substring(0, openIndex);\r\n }\r\n newEquation += calculateStringEquation(equation.substring(openIndex+1, closeIndex-1));\r\n if (closeIndex != equation.length()-1) {\r\n newEquation += equation.substring(closeIndex);\r\n }\r\n equation = newEquation;\r\n }\r\n \r\n //Check order\r\n boolean test = checkStringFormula(equation);\r\n if (checkStringFormula(equation)) {\r\n //Trig (Typically in brackets)\r\n while (equation.contains(\"s\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"s\"));\r\n equation = equation.replace(\"s\" + num1, \"\" + (Math.sin(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"d\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"d\"));\r\n equation = equation.replace(\"d\" + num1, \"\" + (Math.cos(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"f\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"f\"));\r\n equation = equation.replace(\"f\" + num1, \"\" + (Math.tan(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"z\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"z\"));\r\n equation = equation.replace(\"z\" + num1, \"\" + Math.toDegrees(Math.asin(num1)));\r\n }\r\n while (equation.contains(\"c\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"c\"));\r\n equation = equation.replace(\"c\" + num1, \"\" + Math.toDegrees(Math.acos(num1)));\r\n }\r\n while (equation.contains(\"v\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"v\"));\r\n equation = equation.replace(\"v\" + num1, \"\" + Math.toDegrees(Math.atan(num1)));\r\n }\r\n //Exponents\r\n while (equation.contains(\"^\")) {\r\n int opIndex = equation.indexOf(\"^\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n ans = 1;\r\n }else{\r\n for (int i = 0; i < num2-1; i++) {\r\n ans*=ans;\r\n }\r\n if (num2 < 0) {\r\n ans = 1/ans;\r\n }\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Roots\r\n while (equation.contains(\"√\")) {\r\n int opIndex = equation.indexOf(\"√\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n throw new ArithmeticException(\"Math error\");\r\n }else{\r\n ans = Math.pow(num2, 1/num1);\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Division\r\n while (equation.contains(\"/\")) {\r\n int opIndex = equation.indexOf(\"/\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n throw new java.lang.ArithmeticException();\r\n }else{\r\n ans = num1/num2;\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Multiplication\r\n while (equation.contains(\"*\")) {\r\n int opIndex = equation.indexOf(\"*\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans;//Need num1 for replace\r\n\r\n ans = num1*num2;\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Addition\r\n while (equation.contains(\"+\")) {\r\n int opIndex = equation.indexOf(\"+\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans;//Need num1 for replace\r\n\r\n ans = num1+num2;\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n\r\n return equation;\r\n }else{\r\n throw new AssertionError(\"Incorrect Format\");\r\n }\r\n }",
"public String evaluate(String statement) {\n // TODO: Implement the logic here\n\n if (statement == null | statement == \"\"){\n return null;\n }\n\n String addition = \"+\";\n String substraction = \"-\";\n String multiplication = \"*\";\n String division = \"/\";\n String leftbracket = \"(\";\n String rightbracket = \")\";\n\n Stack<String> temporaryStack = new Stack<>();\n Stack<String> inputStack = new Stack<>();\n Stack<String> outputStack = new Stack<>();\n Stack<String> stackOperators = new Stack<>();\n Stack<String> reverseStack = new Stack<>();\n Stack<Double> computingStack = new Stack<>();\n\n String crutch = \"crutch\";\n stackOperators.push(crutch);\n inputStack.push(crutch);\n\n Double leftNumber;\n Double rightNumber;\n Double outResult;\n int stackCounter = 1;\n int reverseCounter = 0;\n\n String solution;\n\n if (statement.contains(\",\") | statement.contains(\"..\") | statement.contains(\"//\")| statement.contains(\"**\") | statement.contains(\"++\") |\n statement.contains(\"--\")) {\n return null;\n }\n\n//преобразование выражения в обратную польскую нотацию\n StringTokenizer stTok = new StringTokenizer(statement, \"+-*/()\", true);\n while (stTok.hasMoreTokens()) {\n temporaryStack.push(stTok.nextToken());\n stackCounter++;\n }\n while (!temporaryStack.isEmpty()){\n inputStack.push(temporaryStack.peek());\n temporaryStack.pop();\n }\n\n for (int i=1; i<stackCounter; i++){\n if (Character.isDigit(inputStack.peek().charAt(0))){\n outputStack.push(inputStack.peek());\n inputStack.pop();\n }\n else if (stackOperators.peek().equals(crutch) && (inputStack.peek().equals(addition) |\n inputStack.peek().equals(substraction) | inputStack.peek().equals(multiplication) |\n inputStack.peek().equals(division))){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(addition) | inputStack.peek().equals(substraction)){\n while (stackOperators.peek().equals(addition) | stackOperators.peek().equals(substraction) |\n stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(multiplication) | inputStack.peek().equals(division)){\n while (stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(leftbracket)){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(rightbracket)){\n while (!stackOperators.peek().equals(leftbracket)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n if (stackOperators.peek().equals(crutch)){\n return null;\n }\n inputStack.pop();\n stackOperators.pop();\n }\n }\n while (!stackOperators.peek().equals(crutch)){\n if (stackOperators.peek().equals(leftbracket) | stackOperators.peek().equals(rightbracket)){\n return null;\n } else {\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n\n }\n while (!outputStack.isEmpty()){\n reverseStack.push(outputStack.peek());\n outputStack.pop();\n reverseCounter++;\n }\n\n//вычисление выражения\n for (int i=0; i<reverseCounter; i++){\n if (Character.isDigit(reverseStack.peek().charAt(0))) {\n computingStack.push(Double.parseDouble(reverseStack.peek()));\n }\n else if (reverseStack.peek().equals(addition)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber + rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(substraction)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber - rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(multiplication)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber * rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(division)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n if (rightNumber!=0){\n outResult = leftNumber / rightNumber;\n computingStack.push(outResult);\n } else\n return null;\n }\n reverseStack.pop();\n }\n\n DecimalFormat myFormatter = new DecimalFormat(\"#.####\");\n String format = myFormatter.format(computingStack.peek());\n\n solution = format.replace( ',', '.');\n\n return solution;\n }",
"public int calculate(String s) {\n final int len = s.length();\n final List<Object> notations = new ArrayList<>();\n final Stack<Operator> operatorStack = new Stack<>();\n for (int i = 0; i < len; i++) {\n final char ch = s.charAt(i);\n\n // case1: AS Space\n if (ch == SPACE) continue;\n \n // case2: AS operator\n Operator operator = Operator.parse(ch);\n if (operator != null) {\n while (!operatorStack.isEmpty() && operatorStack.peek().priority >= operator.priority) {\n notations.add(operatorStack.pop());\n }\n operatorStack.add(operator);\n continue;\n }\n\n // case3: AS integer\n int num = ch - '0';\n\n while (i + 1 < len && isDigit(s.charAt(i + 1))) {\n i++;\n num = num * 10 + (s.charAt(i) - '0');\n }\n notations.add(num);\n }\n // \n while (!operatorStack.isEmpty()) notations.add(operatorStack.pop());\n\n final Stack<CalculateFrame> stack = new Stack<>();\n Integer result = 0;\n for (int i = notations.size() - 1; i >= 0; i--) {\n final Object obj = notations.get(i);\n\n if (obj instanceof Operator) {\n stack.add(new CalculateFrame((Operator)obj));\n } else {\n result = (Integer)obj;\n \n\n while (!stack.isEmpty()) {\n stack.peek().setArg(result);\n if (!stack.peek().canCalculate()) break;\n\n result = stack.pop().calculate();\n }\n }\n }\n\n return result;\n }",
"private String toReversePolishNotation(String expr) {\n\t\tString output = \"\";\n\t\tStack<String> operatorStack = new Stack<String>();\n\n\t\tfor(String token : expr.split(\"\\\\s+\")) {\n\t\t\tif(isNumber(token)) {\n\t\t\t\toutput += token + \" \";\n\t\t\t}\n\t\t\telse if(isMatrix(token)) {\n\t\t\t\toutput += token + \" \";\n\t\t\t}\n\t\t\telse if(isOperator(token)) {\n\t\t\t\tint precidenceToken = getPrecidence(token);\n\t\t\t\tint precidenceNext;\n\t\t\t\twhile(!operatorStack.isEmpty()) {\n\t\t\t\t\tprecidenceNext = getPrecidence(operatorStack.peek());\n\t\t\t\t\tif(precidenceNext >= precidenceToken) output += operatorStack.pop() + \" \";\n\t\t\t\t\telse break;\n\t\t\t\t}\n\t\t\t\toperatorStack.push(token);\n\t\t\t}\n\t\t\telse if(token.equals(\"(\")) {\n\t\t\t\toperatorStack.push(token);\n\t\t\t}\n\t\t\telse if(token.equals(\")\")) {\n\t\t\t\twhile(!operatorStack.peek().equals(\"(\")) output += operatorStack.pop() + \" \";\n\t\t\t\toperatorStack.pop();\n\t\t\t}\n\t\t\telse throw new IllegalArgumentException(INVALID_CHARACTER_MESSAGE);\n\t\t}\n\t\twhile(!operatorStack.isEmpty()) output += operatorStack.pop() + \" \";\n\n\t\treturn output;\n\t}",
"public Expression makeExpression(String input) {\n\t\tmyInput = input;\n\t\tmyCurrentPosition = 0; // NEW LINE\n\t\tExpression result = parseExpression(new HashMap<String, Expression>());\n\t\tskipWhiteSpace();\n\t\tif (notAtEndOfString()) {\n\t\t\tthrow new ParserException(\n\t\t\t\t\t\"Unexpected characters at end of the string: \"\n\t\t\t\t\t\t\t+ myInput.substring(myCurrentPosition),\n\t\t\t\t\tParserException.Type.EXTRA_CHARACTERS);\n\t\t}\n\t\treturn result;\n\t}",
"public static boolean isBalanced(String str) {\n int count = 0;\n\n for (int i = 0; i < str.length() && count >= 0; i++) {\n if (str.charAt(i) == '(')\n count++;\n else if (str.charAt(i) == ')')\n count--;\n }\n\n return count == 0;\n}",
"private static String[] parseParenthesis(final String token) throws TagException {\r\n String[] tokenArray = null;\r\n if (token != null && token.length() > 0) {\r\n final TagOptionSingleton option = TagOptionSingleton.getInstance();\r\n String tempOpen;\r\n String open = \"\";\r\n final String close;\r\n int openIndex = token.length();\r\n int tempIndex;\r\n final int closeIndex;\r\n final Iterator iterator = option.getOpenParenthesisIterator();\r\n\r\n // find first parenthesis\r\n while (iterator.hasNext()) {\r\n tempOpen = (String) iterator.next();\r\n tempIndex = token.indexOf(tempOpen);\r\n if (tempIndex >= 0 && tempIndex < openIndex) {\r\n openIndex = tempIndex;\r\n open = tempOpen;\r\n }\r\n }\r\n\r\n // we have a parenthesis\r\n if (openIndex >= 0 && openIndex < token.length()) {\r\n close = option.getCloseParenthesis(open);\r\n closeIndex = TagUtility.findMatchingParenthesis(token, openIndex);\r\n if (closeIndex < 0) {\r\n throw new TagException(\"Unmatched parenthesis in \\\"\" + token + \"\\\" at position : \" + openIndex);\r\n }\r\n tokenArray = new String[5];\r\n tokenArray[0] = open;\r\n tokenArray[1] = close;\r\n tokenArray[2] = token.substring(0, openIndex);\r\n tokenArray[3] = token.substring(openIndex + open.length(), closeIndex);\r\n tokenArray[4] = token.substring(closeIndex + close.length());\r\n }\r\n }\r\n return tokenArray;\r\n }",
"public static int Evaluate(String post){\n\t\tObjectStack postfix =new ObjectStack();\n\t\t\n\t\tfor (int i = 0; i < post.length(); i++) {\n\t\t\tchar ch = post.charAt(i);\n\t\t\tif (ch >= '0' && ch <= '9') {\n\t\t\t\tint number = ch - '0';\n\t\t\t\tpostfix.push(number);\n\t\t\t} else if ((ch == '*' || ch == '/' || ch == '+' || ch == '-' || ch == '^')) {\n\t\t\t\tint top2 = (Integer) postfix.pop();\n\t\t\t\tint top1 = (Integer) postfix.pop();\n\t\t\t\tchar operator = ch;\n\t\t\t\tif (operator == '+')\n\t\t\t\t\tpostfix.push(top1 + top2);\n\t\t\t\telse if (operator == '-')\n\t\t\t\t\tpostfix.push(top1 - top2);\n\t\t\t\telse if (operator == '*')\n\t\t\t\t\tpostfix.push(top1 * top2);\n\t\t\t\telse if (operator == '/')\n\t\t\t\t\tpostfix.push(top1 / top2);\n\t\t\t\telse if (operator == '^')\n\t\t\t\t\tpostfix.push((int) Math.pow(top1, top2));\n\t\t\t}\n\t\t}\n\t\treturn (Integer) postfix.pop();\n\t\n}",
"public List<String> removeInvalidParentheses(String s) {\n Set<String> visited = new HashSet<>();\n List<String> ans = new ArrayList<>();\n\n Queue<String> queue = new LinkedList<>();\n visited.add(s);\n queue.offer(s);\n\n while (!queue.isEmpty() && ans.isEmpty()) {\n List<String> curSteps = new ArrayList<>();\n int size = queue.size();\n\n while (size > 0) {\n curSteps.add(queue.poll());\n size--;\n }\n\n for(String cur : curSteps) {\n\n if (isValid(cur)) {\n ans.add(cur);\n }\n\n for(int i = 0; i < cur.length(); i++) { // remove ith char\n String next = cur.substring(0, i) + cur.substring(i + 1);\n if (!visited.contains(next)) {\n visited.add(next);\n queue.offer(next);\n }\n }\n }\n }\n\n return ans;\n }",
"public static void main(String[] args) throws IOException {\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n char[] s = f.readLine().toCharArray();\n int cnt = 0;\n int other = 0;\n for(char i: s) {\n if(i == '(') {\n cnt++;\n } else if(i == ')') {\n cnt--;\n } else {\n other++;\n }\n }\n if(other > cnt) {\n out.println(-1);\n } else {\n int[] res = new int[other];\n Arrays.fill(res, 1);\n res[other-1] += cnt-other;\n int idx = 0;\n boolean flag = false;\n cnt = 0;\n for(char i: s) {\n if(i == '(') {\n cnt++;\n } else if(i == ')') {\n if(cnt == 0) {\n flag = true;\n break;\n }\n cnt--;\n } else {\n if(cnt < res[idx]) {\n flag = true;\n break;\n }\n cnt -= res[idx];\n idx++;\n }\n }\n if(flag || cnt != 0) {\n out.println(-1);\n } else {\n for(int i: res) {\n out.println(i);\n }\n }\n }\n f.close();\n out.close();\n }",
"public static String produceAnswer(String input)\r\n { \r\n // TODO: Implement this function to produce the solution to the input\r\n\t\tint space = input.indexOf(' ');\r\n String value1 = input.substring(0, space);\r\n\t\tString value2 = input.substring(space + 3, input.length());\r\n\t\tString operator = input.substring(space, space + 3);\r\n\t\tif (value1.contains(\"_\"))\r\n\t\t{\r\n\t\t\tString newValue1 = convertMixedNumber(value1);\r\n\t\t\tif (value2.contains(\"_\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertMixedNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse if (value2.contains(\"/\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = value2;\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertWholeNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\telse if (value1.contains(\"/\"))\r\n\t\t{\r\n\t\t\tString newValue1 = value1;\r\n\t\t\tif (value2.contains(\"_\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertMixedNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse if (value2.contains(\"/\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = value2;\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertWholeNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\tString newValue1 = convertWholeNumber(value1);\r\n\t\t\tif (value2.contains(\"_\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertMixedNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse if (value2.contains(\"/\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = value2;\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertWholeNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif (input.contains(\" / \"))\r\n\t\t{\r\n\t\t int slash = input.indexOf('/');\r\n\t\t int slash2 = input.indexOf('/', slash + 1);\r\n\t\t int slash3 = input.indexOf('/', slash2 + 1);\r\n\t\t space = input.indexOf(' ');\r\n\t\t int num1 = Integer.parseInt(input.substring(0, slash));\r\n\t\t int denom1 = Integer.parseInt(input.substring(slash + 1, space));\r\n\t\t int num2 = Integer.parseInt(input.substring(space + 3, slash3));\r\n\t\t int denom2 = Integer.parseInt(input.substring(slash3 + 1, input.length()));\r\n\t\t if (num2 < 0)\r\n\t\t {\r\n\t\t\t num2 = num2 * -1;\r\n\t\t\t denom2 = denom2 * -1;\r\n\t\t\t int numerator = num1 * denom2;\r\n\t\t\t int denominator = denom1 * num2;\r\n\t\t\t String Answer = numerator + \"/\" + denominator;\r\n\t\t\t return reduceAnswer(Answer);\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t int numerator = num1 * denom2;\r\n\t\t int denominator = denom1 * num2;\r\n\t\t String Answer = numerator + \"/\" + denominator;\r\n\t\t return reduceAnswer(Answer);\r\n\t\t }\r\n\t\t}\r\n\t\telse {\r\n\t\t int slash = input.indexOf('/');\r\n\t int slash2 = input.indexOf('/', slash + 1);\r\n\t space = input.indexOf(' ');\r\n\t\t int num1 = Integer.parseInt(input.substring(0, slash));\r\n\t int denom1 = Integer.parseInt(input.substring(slash + 1, space));\r\n\t int num2 = Integer.parseInt(input.substring(space + 3, slash2));\r\n\t int denom2 = Integer.parseInt(input.substring(slash2 + 1, input.length()));\r\n\t if (input.contains(\" + \"))\r\n {\r\n \t int numerator1 = num1 * denom2;\r\n \t int numerator2 = num2 * denom1;\r\n \t int finalNumerator = numerator1 + numerator2;\r\n \t int denominator = denom2 * denom1;\r\n \t String Answer = finalNumerator + \"/\" + denominator;\r\n \t return reduceAnswer(Answer);\r\n \t\t\r\n }\r\n else if (input.contains(\" - \"))\r\n {\r\n \tint numerator1 = num1 * denom2;\r\n \tint numerator2 = num2 * denom1;\r\n \tint finalNumerator = numerator1 - numerator2;\r\n \tint denominator = denom2 * denom1;\r\n \tString Answer = finalNumerator + \"/\" + denominator;\r\n \treturn reduceAnswer(Answer);\r\n }\r\n else if (input.contains(\" * \"))\r\n {\r\n \tint numerator = num1 * num2;\r\n \tint denominator = denom1 * denom2;\r\n \tString Answer = numerator + \"/\" + denominator;\r\n \treturn reduceAnswer(Answer);\r\n }\r\n else\r\n {\r\n \tString error = \"Error: Invalid user input\";\r\n \treturn error; \r\n }\r\n\t}\r\n }",
"public void operator(String str) {\n if (!(emptyStack()) && (OperatorOperand.operatorPrecedence(str)\n <= OperatorOperand.operatorPrecedence(expStack.lastElement()))) {\n String stackTop = expStack.lastElement();\n while ((!(stackTop.equals(\"(\"))) || (OperatorOperand.operatorPrecedence(str)\n <= OperatorOperand.operatorPrecedence(expStack.lastElement()))) {\n postFix.add(stackTop);\n expStack.pop();\n if (!(emptyStack())) {\n stackTop = expStack.lastElement();\n continue;\n }\n break;\n }\n }\n expStack.push(str);\n }",
"public List<String> removeInvalidParentheses(String s) {\n int leftCount = 0;\n int rightCount = 0;\n int openCount = 0;\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if ( c == '(') leftCount++;\n if ( c == ')') {\n if (leftCount > 0) leftCount--;\n else rightCount++;\n }\n }\n Set<String> res = new HashSet<>();\n dfs(s, leftCount, rightCount, 0, 0, new StringBuilder(), res);\n return new ArrayList<String>(res);\n }",
"@Test\r\n\tpublic void testParseOperator() {\r\n\r\n\t\t// find the number of operators in the input\r\n\r\n\t\tint add = 0;\r\n\t\tint minus = 0;\r\n\t\tint multiply = 0;\r\n\t\tint divide = 0;\r\n\t\tString input = \"a = 5\\nb = a - 1\\nc = a + (b / 2 * 4)\";\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (input.charAt(i) == '+')\r\n\t\t\t\tadd++;\r\n\t\t\tif (input.charAt(i) == '-')\r\n\t\t\t\tminus++;\r\n\t\t\tif (input.charAt(i) == '*')\r\n\t\t\t\tmultiply++;\r\n\t\t\tif (input.charAt(i) == '/')\r\n\t\t\t\tdivide++;\r\n\t\t}\r\n\r\n\t\t// Enter the code\r\n\r\n\t\tdriver.findElement(By.name(\"code[code]\")).sendKeys(input);\r\n\r\n\t\t// Look for the \"Parse\" button and click\r\n\r\n\t\tdriver.findElements(By.name(\"commit\")).get(1).click();\r\n\r\n\t\t// Check that there contains corresponding quantity of operators\r\n\r\n\t\ttry {\r\n\t\t\tWebElement code = driver.findElement(By.tagName(\"code\"));\r\n\t\t\tString res = code.getText();\r\n\t\t\tint add1 = 0, minus1 = 0, multiply1 = 0, divide1 = 0;\r\n\t\t\tfor (int i = 0; i < res.length(); i++) {\r\n\t\t\t\tif (res.charAt(i) == '+')\r\n\t\t\t\t\tadd1++;\r\n\t\t\t\tif (res.charAt(i) == '-')\r\n\t\t\t\t\tminus1++;\r\n\t\t\t\tif (res.charAt(i) == '*')\r\n\t\t\t\t\tmultiply1++;\r\n\t\t\t\tif (res.charAt(i) == '/')\r\n\t\t\t\t\tdivide1++;\r\n\t\t\t}\r\n\t\t\tassertEquals(add, add1);\r\n\t\t\tassertEquals(minus, minus1);\r\n\t\t\tassertEquals(multiply, multiply1);\r\n\t\t\tassertEquals(divide, divide1);\r\n\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"public String infixToPostfix(String expression) {\n\t\tStack oPSt = new Stack();\n\t\tStack Sign = new Stack();\n\t\tStringBuilder PFE = new StringBuilder();\n\t\tString n = \"\";\n\t\t// flag -> marks adding new operator to the stack with or without removing the\n\t\t// previous one\n\t\tboolean flag = true;\n\t\t//negflag -> if (true) previous character was operator thus next(-) is negative sign\n\t\t//\t\t\t if (false) previous character was operand thus next (-) is operator\n\t\tboolean negflag = true; \n\t\tint counter = 0; // expresses number of open parenthesis at the moment and if it matches the\n\t\t// counter inside Sign Stack it means that the Sign was changed at this Counter\n\t\tString open = \"(\", closed = \")\";\n\t\tfor (int i = 0; i < expression.length(); i++) {\n\t\t\tString x = expression.substring(i, i + 1);\n\t\t\tStringBuilder longIntegers = new StringBuilder();\n\t\t\tif (x.equals(\"-\") && !expression.substring(i + 1, i + 2).equals(\" \")) {\n\t\t\t\tif(negflag) {\n\t\t\t\tif (n.equals(\"\"))\n\t\t\t\t\tn = \"-\";\n\t\t\t\telse\n\t\t\t\t\tn = \"\";\n\t\t\t\tSign.push(counter);\n\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tint counter2 = 0;\n\t\t\t\twhile (counter2 + i < expression.length()\n\t\t\t\t\t\t&& (isChar(expression.substring(i + counter2, i + counter2 + 1))\n\t\t\t\t\t\t\t\t|| isNum(expression.substring(i + counter2, i + counter2 + 1)))\n\t\t\t\t\t\t&& isNotOperator(expression.substring(i + counter2, i + counter2 + 1))) {\n\t\t\t\t\tlongIntegers.append(expression.substring(i + counter2, i + 1 + counter2));\n\t\t\t\t\tcounter2++;\n\t\t\t\t}\n\t\t\t\ti = i + counter2;\n\t\t\t\tif (counter2 > 0) {\n\t\t\t\t\ti--;\n\t\t\t\t\tx = longIntegers.toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// end of taking the expression\n\n\t\t\t// testing the expression\n\n\t\t\t// if the char. is an open parenthesis\n\t\t\tif (x.equals(open)) {\n\t\t\t\toPSt.push(x);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\t// if the char is a close parenthesis\n\t\t\telse if (x.equals(closed)) {\n\t\t\t\tif (counter == 0)\n\t\t\t\t\tthrow new RuntimeException(\"Invalid Input: Redundant \\\")\\\" \");\n\t\t\t\twhile (!((String) oPSt.peek()).equals(open)) {\n\t\t\t\t\tPFE.append(\" \");\n\t\t\t\t\tPFE.append(oPSt.pop());\n\t\t\t\t}\n\t\t\t\toPSt.pop();\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\t// checks if char was an operator\n\t\t\telse if (x.equals(\"*\") || x.equals(\"+\") || x.equals(\"/\") || x.equals(\"-\")) {\n\t\t\t\tnegflag = true;\n\t\t\t\twhile (!oPSt.isEmpty() && !((String) oPSt.peek()).equals(\"(\")) {\n\t\t\t\t\t// see which character has higher precedence\n\t\t\t\t\tflag = highOrLow(((String) oPSt.peek()).charAt(0), x.charAt(0));\n\t\t\t\t\tif (flag)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\telse {\n\t\t\t\t\t\tPFE.append(\" \");\n\t\t\t\t\t\tPFE.append(oPSt.pop());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toPSt.push(x);\n\t\t\t}\n\t\t\t// if the char is space then check if the previous was space to avoid having two\n\t\t\t// spaces after each other\n\t\t\t// if the char was a new space/wasn't a space then it's definitely a\n\t\t\t// number/variable and will be pushed to PFE\n\t\t\telse if (!x.equals(\" \") || (PFE.length() > 0 && (char) PFE.charAt(PFE.length() - 1) != ' ')) {\n\t\t\t\tPFE.append(\" \");\n\t\t\t\tif (!x.equals(\" \")) {\n\t\t\t\t\tnegflag = false;\n\t\t\t\t\tPFE.append(n + x);\n\t\t\t}else \n\t\t\t\t\tPFE.append(x);\n\t\t\t\t\n\t\t\t}\n\t\t\twhile (!Sign.isEmpty() && counter == (int) Sign.peek()) {\n\t\t\t\tif (n.equals(\"\"))\n\t\t\t\t\tn = \"-\";\n\t\t\t\telse\n\t\t\t\t\tn = \"\";\n\t\t\t\tSign.pop();\n\t\t\t}\n\t\t}\n\t\t// add all the operator remaining in stack to the PFE except if '(' was found\n\t\t// then there's an runtime exception\n\t\twhile (!oPSt.isEmpty()) {\n\t\t\tif (((String) oPSt.peek()).equals(\"(\"))\n\t\t\t\tthrow new RuntimeException(\"Invalid Input : Redundant \\\"(\\\" \");\n\t\t\tPFE.append(\" \");\n\t\t\tPFE.append(oPSt.pop());\n\t\t}\n\t\t// replace any two consecutive spaces with only one\n\t\tint i = 0;\n\t\twhile (PFE.charAt(i) == ' ' && i < PFE.length() - 1) {\n\t\t\tPFE.deleteCharAt(i);\n\t\t}\n\t\tfor (i = 0; i < PFE.length() - 1; i++) {\n\t\t\tif (PFE.charAt(i) == ' ' && PFE.charAt(i + 1) == ' ') {\n\t\t\t\tPFE.deleteCharAt(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\treturn PFE.toString();\n\n\t}",
"public String parsePrefixToPostfix(String exp) throws SyntaxError {\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n //parser accepts user input into exp\n \tScanner parser = new Scanner(exp);\n int element;\n String operator;\n String entity;\n String postfixExpression = \"\"; \n String firstOperand, secondOperand;\n int result = 0;\n \n //tokenize prefix string and set up 2 stacks\n Stack<String> operandStack = new Stack<String>();\n Stack<String> reverseOperatorStack = new Stack<String>();\n //while statement to push onto the reversal stack if there are more tokens\n while (parser.hasNext()) {\n entity = parser.next();\n // unless there is a space\n if (!entity.equals(\" \"))\n reverseOperatorStack.push(entity);\n }\n try { \n \t// while statement to pop to reversal stack if it is not empty\n \twhile (!reverseOperatorStack.isEmpty()) {\n //peek to retrieve the token at the top of the stack\n \t\tentity = reverseOperatorStack.peek();\n \t\t//pop to take the token off the stack\n\t reverseOperatorStack.pop();\n\t \n\t // if it is an operand\n\t if (Character.isDigit(entity.charAt(0))) {\n\t \t//push token onto the operand stack\n\t \toperandStack.push(entity);\n\t }\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t \t\t|| entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop first operand off the stack\n\t \tfirstOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop second operand off the stack\n\t secondOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the 2 operands followed by the operator \n\t String miniExpression = firstOperand + \" \" + secondOperand + \" \" + entity;\n\t //push the string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n \t}\n \t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n throw new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the postfix expression off the stack\n postfixExpression = operandStack.peek();\n operandStack.pop();\n //return postfix - holding the converted expression\n return postfixExpression; \n }",
"private static final String toExpr(String s) {\n\t\tchar[] b = s.toCharArray();\n\t\tint i;\n\t\tfor (i=0; (i<b.length) && Character.isLetter(b[i]); i++) ;\n\t\tif (i<b.length) return(\"(\" + s + \")\");\n\t\treturn(s) ;\t\t// Just letters\n\t}",
"public List<String> removeInvalidParentheses(String s) {\r\n List<String> result = new ArrayList<>();\r\n if (s == null) {\r\n return result;\r\n }\r\n Queue<String> queue = new LinkedList<>();\r\n Set<String> invalid = new HashSet<>();\r\n queue.offer(s);\r\n while (!queue.isEmpty()) {\r\n int size = queue.size();\r\n for (int i = 0; i < size; i++) {\r\n String cur = queue.poll();\r\n if (isValid(cur)) {\r\n result.add(cur);\r\n continue;\r\n } else {\r\n for (int j = 0; j < cur.length(); j++) {\r\n if (cur.charAt(j) != '(' && cur.charAt(j) != ')') {\r\n continue;\r\n }\r\n invalid.add(cur);\r\n String sub = cur.substring(0, j) + cur.substring(j + 1);\r\n if (invalid.add(sub)) {\r\n queue.offer(sub);\r\n }\r\n }\r\n }\r\n }\r\n if (result.size() != 0) {\r\n break;\r\n }\r\n }\r\n return result;\r\n }",
"public ExpressionSolver(String s)\n\t{\n\t\tString[] ray = s.split(\" \");\n\t\tList<String> list = Arrays.asList(ray);\n\t\tfor (int i = 0; i < list.size()-1; i++) {\n\t\t\tif ( ray[i] == \"*\") {\n\t\t\t\tlist.remove(i + 1);\n\t\t\t\tlist.remove(i - 1);\n\t\t\t\tlist.set(i,Integer.parseInt(list.get(i-1)) * Integer.parseInt(list.get(i+1)) );\n\t\t\t}\n\t\t\tif ( ray[i] == \"/\") {\n\t\t\t\tlist.remove(i + 1);\n\t\t\t\tlist.remove(i - 1);\n\t\t\t\tlist.set(i,Integer.parseInt(list.get(i-1)) * Integer.parseInt(list.get(i+1)) );\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < list.size()-1; j++) {\n\t\t\tif (ray[j] == \"+\") {\n\t\t\t\tlist.remove(j + 1);\n\t\t\t\tlist.remove(j - 1);\n\t\t\t\tlist.set(j,Integer.parseInt(list.get(j-1)) * Integer.parseInt(list.get(j+1)) );\n\t\t\t}\n\t\t\tif ( ray[j] == \"-\") {\n\t\t\t\tlist.remove(j + 1);\n\t\t\t\tlist.remove(j - 1);\n\t\t\t\tlist.set(j,Integer.parseInt(list.get(j-1)) * Integer.parseInt(list.get(j+1)) );\n\t\t\t}\n\t\t}\n\t}",
"public static void assignCompoundTokens(ArrayList<String>scan){\n\nfor(int i=0;i<scan.size();i++){\n if( isUnaryPostOperator( scan.get(i) ) ){\n \n if(isNumber(scan.get(i-1))||isVariableString(scan.get(i-1))){ \n int index=i-1;\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\ni=j+1;\n }//end if\n\n else if(isClosingBracket(scan.get(i-1))){\n int index=MBracket.getComplementIndex(false, i-1, scan);\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\n i=j+1;\n }\n \n \n \n }\n \n \n \n}\n\n\n\n}",
"@Test\r\n public void test() {\r\n assertEquals(Arrays.asList(\"()()()\", \"(())()\"), removeInvalidParentheses(\"()())()\"));\r\n assertEquals(Arrays.asList(\"(a)()()\", \"(a())()\"), removeInvalidParentheses(\"(a)())()\"));\r\n assertEquals(Arrays.asList(\"\"), removeInvalidParentheses(\")(\"));\r\n }",
"private int parseExpression(Queue<String> exp) {\n int value = parseTerm(exp);\n while (exp.peek().equals(\"+\") || exp.peek().equals(\"-\")) {\n String op = exp.dequeue().getData().toString();\n if (op.equals(\"+\")) {\n value = value + parseTerm(exp);\n } else {\n value = value - parseTerm(exp);\n }\n }\n return value;\n }",
"private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }",
"private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }",
"public String parsePostfixToPrefix(String exp) throws SyntaxError {\n \t// throws error message if there is no expression entered\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n Scanner parser = new Scanner(exp);\n String entity;\n //tokenize the string containing the postfix expression\n Stack<String> operandStack = new Stack<String>();\n String firstOperand, secondOperand;\n // try-catch to validate data has been entered\n try {\n\t \t//while there are more tokens\n \t\twhile (parser.hasNext()) {\n\t entity = parser.next();\n\t // if it is a space, skip it\n\t if (entity.equals(\" \"));\n\t // if it is a operand, push it onto the operand stack\n\t if (Character.isDigit(entity.charAt(0)))\n\t operandStack.push(entity);\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t || entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop operand 1 off the operand stack\n\t \tsecondOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop operand 2 off the operand stack\n\t firstOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the operator followed by 2 operands\n\t String miniExpression = entity + \" \" + firstOperand + \" \" + secondOperand;\n\t //push the miniExpression string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n\t }\n\t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n \tthrow new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the prefix expression off the operand stack\n String prefix = operandStack.peek();\n operandStack.pop();\n //return prefix - holding the converted expression\n return prefix;\n }",
"public static int longestValidParentheses2(String str) {\n\t\tint max = 0;\n\t\tStack<Integer> stack = new Stack<Integer>();\n\t\tstack.push(-1);//先前最远的不可匹配的位置,\n\t\tint i = -1;\n// for(int i = 0;i < str.length();i++){\n\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\tchar ch = str.charAt(j);\n\t\t\tif (ch == ' ') {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (ch == '(') {\n\t\t\t\tstack.push(i);//不进行匹配,那么它就是先前最远的不可匹配的位置,\n\t\t\t} else {\n\t\t\t\tstack.pop();//闭起眼睛,匹配先前不可匹配的字符,\n\t\t\t\tif (stack.empty()) {\n\t\t\t\t\tstack.push(i);//如果栈为空,说明其实没有什么可以进行匹配的,所以当前就是新的最近的不可匹配的位置\n\t\t\t\t} else {\n\t\t\t\t\t//如果栈不为空,说明有可以进行匹配的,并且匹配完成,那么匹配的字符串长度为 i-stack.peek()\n\t\t\t\t\tif (i - stack.peek() > max) {\n\t\t\t\t\t\tSystem.out.printf(\"start:end %d:%d \\n\", stack.peek() + 1, i);\n\t\t\t\t\t}\n\t\t\t\t\tmax = Math.max(i - stack.peek(), max);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}",
"public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }",
"public String fractionAddition1(String expression) {\n Scanner s = new Scanner(expression).useDelimiter(\"/|(?=[-+])\");\n long num = 0, den = 1;\n while (s.hasNext()) {\n long a = s.nextLong(), b = s.nextLong();\n num = num * b + a * den;\n den *= b;\n }\n long gcd = gcd(num, den);\n return (num / gcd) + \"/\" + (den / gcd);\n }"
] | [
"0.62129414",
"0.61423755",
"0.6111149",
"0.6093907",
"0.60633767",
"0.6030796",
"0.59966016",
"0.5985803",
"0.59422314",
"0.59169483",
"0.59055233",
"0.5904571",
"0.58944887",
"0.5832513",
"0.5805359",
"0.57608896",
"0.57368004",
"0.57337916",
"0.57141775",
"0.5705507",
"0.5689388",
"0.5665988",
"0.5660184",
"0.5627965",
"0.56272876",
"0.559416",
"0.5541639",
"0.5541398",
"0.553261",
"0.5531611",
"0.5518152",
"0.55096835",
"0.5495395",
"0.54867184",
"0.5484562",
"0.5475989",
"0.5461295",
"0.5461208",
"0.5459936",
"0.54544944",
"0.54495406",
"0.5447733",
"0.5445534",
"0.5439471",
"0.5431327",
"0.5428109",
"0.5427637",
"0.54252386",
"0.5421342",
"0.5415938",
"0.5399519",
"0.539348",
"0.53914404",
"0.538611",
"0.53847456",
"0.53837276",
"0.537282",
"0.5372728",
"0.5357824",
"0.53532976",
"0.5341105",
"0.53398085",
"0.5337085",
"0.53195214",
"0.5312643",
"0.5309228",
"0.52993476",
"0.52993476",
"0.52904814",
"0.52773446",
"0.52722734",
"0.52686304",
"0.52590054",
"0.52553403",
"0.5250713",
"0.52470994",
"0.52465624",
"0.52332133",
"0.5232102",
"0.5229415",
"0.5228209",
"0.5225652",
"0.5224999",
"0.52224725",
"0.522011",
"0.5213296",
"0.5210318",
"0.5206101",
"0.52030575",
"0.5201857",
"0.5200275",
"0.5197901",
"0.51973",
"0.5192236",
"0.51888263",
"0.5170265",
"0.51692283",
"0.51683193",
"0.51678437",
"0.51625884"
] | 0.6073092 | 4 |
Lo sobreescribo para que pueda haber 2 que nos puedan servir | public static void generarFicheroJSON(App aplicacion) throws IOException {
ObjectMapper mapeador = new ObjectMapper();
mapeador.configure(SerializationFeature.INDENT_OUTPUT, true);
// Escribe en un fichero JSON el objeto que le pasamos
mapeador.writeValue(new File("./aplicaciones/" + aplicacion.getNombre() + ".json"), aplicacion);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void somaVezes(){\n qtVezes++;\n }",
"private void m27461a() {\n if (this.f25303r >= 2) {\n if (this.f25303r % 2 == 0) {\n this.f25303r++;\n }\n this.f25304s = this.f25303r + 2;\n this.f25305t = this.f25304s / 2;\n return;\n }\n throw new ArithmeticException(\"Wheel's visible item count can not be less than 2!\");\n }",
"public synchronized int getCountTwo() {\n return count.incrementAndGet();\n }",
"public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }",
"public void processarJogada(int resultadoDado1, int resultadoDado2, boolean PagamentoPrisao) throws Exception {\n\n\n if ((isResultadoDadoValido(resultadoDado1)) && (isResultadoDadoValido(resultadoDado2))) {\n\n if(bankruptcy && !listaJogadores.get(vez).ifRollAvaliable()){\n\n throw new Exception(\"Player can't roll dice when trying to avoid bankruptcy\");\n }\n\n if (!this.jogadorTerminouAVez() == true) {\n this.terminarAVez();// Prepara proxima jogada e coloca terminou vez para true\n\n }\n if (resultadoDado1 == resultadoDado2 && this.RegraJogadaDupla == true) {\n this.repete = true;\n this.duplasAcumuladas++;\n print(\"Repete foi ativado\");\n } else if (resultadoDado1 != resultadoDado2 && this.RegraJogadaDupla == true) {\n this.duplasAcumuladas = 0;\n this.repete = false;\n print(\"Repete foi desativado\");\n }\n\n\n if (this.duplasAcumuladas == 3 && this.RegraJogadaDupla == true) {\n adicionaNaPrisao(listaJogadores.get(jogadorAtual()));\n this.DeslocarJogador(jogadorAtual(), 10);\n this.duplasAcumuladas = 0;\n while (listaJogadoresNaPrisao.contains(listaJogadores.get(jogadorAtual()).getNome())) {\n PrepareNextJogada();\n }\n } else if (PagamentoPrisao == true) {\n this.pagarSaidaDaPrisao();\n pagouPrisaoRecentemente = true;\n this.repete = false;\n } else if (PagamentoPrisao == false) {\n if (this.repete == false) {\n this.terminarAVez();\n this.iniciarNovaVez();//coloca terminouVez para false\n }\n this.moverJogadorDaVez(resultadoDado1, resultadoDado2);\n this.repete = false;\n }\n\n\n this.print(\"Jogador \" + this.jogadorAtual());\n this.print(\"\\tEstá em \" + this.posicoes[this.jogadorAtual()]);\n this.print(\"\\tvai andar \" + (resultadoDado1 + resultadoDado2) + \" casas.\");\n\n\n\n }\n\n\n }",
"public void hallarPerimetroIsosceles() {\r\n this.perimetro = 2*(this.ladoA+this.ladoB);\r\n }",
"@Override\r\n\tpublic int numCurrentsToAdd() {\n\t\treturn 2;\r\n\t}",
"private void poetries() {\n\n\t}",
"public void distribuirAportes2(){\n\n if(comprobanteSeleccionado.getAporteorganismo().floatValue() > 0f){\n comprobanteSeleccionado.setAportecomitente(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad().add(comprobanteSeleccionado.getAporteorganismo())));\n }\n }",
"public static void main(String[] args) {\n int v1[] = new int[50];\r\n int v2[] = new int[50];\r\n int posicao_v2 = 0;\r\n int quantidade_divisores = 0;\r\n //preenche o vetor de 1 a 50 \r\n for (int i = 0; i < 50; i++) {\r\n v1[i] = i + 1;\r\n\r\n }\r\n \r\n \r\n //procura numero primos no vetor\r\n for (int i = 0; i < v1.length; i++) {\r\n //testar se v1[i] e um numero primo\r\n //Um número é divisível por outro quando o resto da divisão entre os dois é igual a zero\r\n quantidade_divisores = 0;\r\n //calcula a quatidade de divisores\r\n for (int j = 0; j < v1[i]; j++) {\r\n if (v1[i] % v1[j] == 0) {\r\n quantidade_divisores++;\r\n //sera divisivel\r\n }\r\n }\r\n if (quantidade_divisores == 2 ){\r\n //e primo \r\n v2[posicao_v2] = v1[i];\r\n posicao_v2++;\r\n }\r\n \r\n \r\n \r\n\r\n }\r\n for (int i = 0; i < 50; i++) {\r\n System.out.print(v1[i]+\" \");\r\n \r\n }\r\n System.out.println();\r\n for (int i = 0; i < 50; i++) {\r\n if (v2[i] > 0) {\r\n System.out.print(\"v1{\");\r\n System.out.print(v2[i]+\" , }\");\r\n }\r\n \r\n \r\n \r\n }\r\n \r\n System.out.println();\r\n }",
"public void test() {\n\t\tCount2Suspend c2s = new Count2Suspend();\n\n\t\t// first tick\n\t\tc2s.doTick(c2s.t);\n\t\tassertEquals(c2s.b0.isPresent(), ABSENT);\n\t\tassertEquals(c2s.b1.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c0.isPresent(), ABSENT);\n\t\t// second tick\n\t\tc2s.doTick();\n\t\tassertEquals(c2s.b0.isPresent(), ABSENT);\n\t\tassertEquals(c2s.b1.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c0.isPresent(), ABSENT);\n\t\t// third tick\n\t\tc2s.doTick(c2s.t);\n\t\tassertEquals(c2s.b0.isPresent(), PRESENT);\n\t\tassertEquals(c2s.b1.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c0.isPresent(), ABSENT);\n\t\t// fourth tick\n\t\tc2s.doTick(c2s.t, c2s.inhib);\n\t\tassertEquals(c2s.b0.isPresent(), ABSENT);\n\t\tassertEquals(c2s.b1.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c0.isPresent(), ABSENT);\n\t\t// fifth tick\n\t\tc2s.doTick();\n\t\tassertEquals(c2s.b0.isPresent(), PRESENT);\n\t\tassertEquals(c2s.b1.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c0.isPresent(), ABSENT);\n\t\t// sixth tick\n\t\tc2s.doTick(c2s.t, c2s.reset);\n\t\tassertEquals(c2s.b0.isPresent(), ABSENT);\n\t\tassertEquals(c2s.b1.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c0.isPresent(), ABSENT);\n\t\t// seventh tick\n\t\tc2s.doTick();\n\t\tassertEquals(c2s.b0.isPresent(), ABSENT);\n\t\tassertEquals(c2s.b1.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c0.isPresent(), ABSENT);\n\t\t// eighth tick\n\t\tc2s.doTick(c2s.t);\n\t\tassertEquals(c2s.b0.isPresent(), PRESENT);\n\t\tassertEquals(c2s.b1.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c0.isPresent(), ABSENT);\n\t\t// ninth tick\n\t\tc2s.doTick(c2s.t, c2s.inhib);\n\t\tassertEquals(c2s.b0.isPresent(), ABSENT);\n\t\tassertEquals(c2s.b1.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c0.isPresent(), ABSENT);\n\t\t// tenth tick\n\t\tc2s.doTick(c2s.t);\n\t\tassertEquals(c2s.b0.isPresent(), ABSENT);\n\t\tassertEquals(c2s.b1.isPresent(), PRESENT);\n\t\tassertEquals(c2s.c.isPresent(), ABSENT);\n\t\tassertEquals(c2s.c0.isPresent(), PRESENT);\n\t}",
"public void venceuRodada () {\n this.pontuacaoPartida++;\n }",
"@Test\r\n public void testLongTermStorageGetItemCount2()\r\n {\r\n testLongTermStorage.addItem(item2, testLongTermStorage.getCapacity() / item2.getVolume());\r\n testLongTermStorage.resetInventory();\r\n assertEquals(\"The counter is wrong\", BASE_VALUE, testLongTermStorage.getItemCount(item2.getType()));\r\n }",
"private void vuoronToinenHeitto() {\n while (heittojaJaljella == 2) {\n if (tulosLaitettu) {\n break;\n }\n try {\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n System.out.println(\"Ei ole heitetty tai laitettu tulosta\");\n }\n }\n }",
"private void cpu_jogada(){\n\n for(i=0;i<8;i++){\n for(j=0;j<8;j++){\n if(matriz[i][j] == jd2){\n // verificarAtaque(i,j,jd2);\n //verificarAtaque as posssibilidades de\n // ataque : defesa : aleatorio\n //ataque tem prioridade 1 - ve se tem como comer quem ataca\n //defesa tem prioridade 2 - ou movimenta a peca que esta sob ataque ou movimenta a outa para ajudar\n //aleatorio nao tem prioridade -- caso nao esteja sob ataque ou defesa\n }\n }\n }\n }",
"@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }",
"public void iniciar(){\nSystem.out.println(\"El primer contador comenzara en el número 0\");\ncontador=0;\nSystem.out.println(\"El segundo contador comenzara en el número 100\");\ncontador2=100;}",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }",
"public void PrepareNextJogada() {\n if (vez == listaJogadores.size() - 1) {\n vez = 0;\n\n } else {\n vez++;\n }\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private int getLatestWickets() {\n // return 2 for simplicity\n return 2;\n }",
"public void aumentaInSitu(){\n if(quantidade_in_situ<quantidade_disponivel)\n quantidade_in_situ++;\n else\n return;\n }",
"protected void dopositiveClick2() {\n\n }",
"static void soustraire() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\tint nb1, nb2, resultat;\n\t\tnb1 = lireNombreEntier();\n\t\tnb2 = lireNombreEntier();\n\t\tresultat = nb1 - nb2;\n\t\tSystem.out.println(\"\\n\\t\" + nb1 + \" - \" + nb2 + \" = \" + resultat);\n\t}",
"@Override\n protected int getNumRepetitions() {\n return 1;\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic int selectCount2(Object ob) {\n\t\treturn 0;\n\t}",
"@Test\n public void getScoreTwo() {\n this.reset();\n this.bps.startGame(this.fullDeck, false, 7, 1);\n assertEquals(185, this.bps.getScore());\n this.bps.remove(6, 2, 6, 6);\n assertEquals(172, this.bps.getScore());\n }",
"private void incrementarPuntaje(int puntos) {\n // TODO implement here\n }",
"private void incWaiters()\r\n/* 443: */ {\r\n/* 444:530 */ if (this.waiters == 32767) {\r\n/* 445:531 */ throw new IllegalStateException(\"too many waiters: \" + this);\r\n/* 446: */ }\r\n/* 447:533 */ this.waiters = ((short)(this.waiters + 1));\r\n/* 448: */ }",
"public void setSecond(int count){\n this.second = count;\n }",
"public Instrucoes2op(){\n\t\tmmm1 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do primeiro operando\n\t\tmmm2 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do segundo operando \n\t\trrr1 = \"\";\n\t\trrr2 = \"\";\t\n\t}",
"public void CobrarImpuestosReducidos(){\n\t\tif(sueldoBruto>=BASE_MINIMA_IMPUESTOS && sueldoBruto<IMPUESTO_SUP){\n\t\t\tsueldoNeto=sueldoBruto-(sueldoBruto*PAGA_IMPUESTOS_MIN);\n\t\t\ttipoImpuesto=\"Ha pagado el 20% de impuestos\";\n\t\t}\n\t}",
"public void testCasillasJugador2( )\n {\n setupEscenario2( );\n int tamanho = casillasJugador2.size( );\n int casilla;\n int i = 0;\n while( i < tamanho )\n {\n casilla = ( ( Integer )casillasJugador2.get( i ) ).intValue( );\n assertEquals( marcaJugador2, triqui.obtenerMarcaCasilla( casilla ) );\n i++;\n }\n }",
"public void soin() {\n if (!autoriseOperation()) {\n return;\n }\n if (tamagoStats.getXp() >= 2) {\n incrFatigue(-3);\n incrHumeur(3);\n incrFaim(-3);\n incrSale(-3);\n incrXp(-2);\n\n if (tamagoStats.getPoids() == 0) {\n incrPoids(3);\n } else if (tamagoStats.getPoids() == TamagoStats.POIDS_MAX) {\n incrPoids(-3);\n }\n\n setEtatPiece(Etat.NONE);\n tamagoStats.setEtatSante(Etat.NONE);\n\n setChanged();\n notifyObservers();\n }\n }",
"public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }",
"private void addTwoNumbers() {\n\t\t\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"public void subirNivelAtaque(){\n\tif(contadorNivel==5){\n\t nivelAtaque++;\n\t System.out.println(\"El ataque \"+obtenerNombreAtaque()+\" ha subido de nivel\");\n\t contadorNivel=0;\n\t dano+=5;\n\t} else {\n\t nivelAtaque=nivelAtaque;\n\t}\n }",
"boolean testCounter2(Tester t) {\n\t\treturn t.checkExpect(c1.get(), 0) // Test 1\r\n\t\t\t\t&& t.checkExpect(c2.get(), 2) // Test 2\r\n\t\t\t\t&& t.checkExpect(c1.get() == c1.get(), false) // Test 3\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), true) // Test 4\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), true) // Test 5\r\n\t\t\t\t&& t.checkExpect(c1.get() == c1.get(), false) // Test 6\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), false); // Test 7\r\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"@Override\n public int contarHojas(){\n return (super.contarHojas());\n }",
"@Override\n public void run() {\n try {\n evenSemaphore.acquire();\n while (true) {\n if(count % 2 != 0){\n System.out.println(Thread.currentThread().getName() + \" 奇数 \" + count);\n count++;\n if (count > 20) {\n return;\n }\n evenSemaphore.release();\n oddSemaphore.acquire();\n TimeUnit.SECONDS.sleep(1);\n }\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void mostrarVideojuegosNumeradosPorOrdenDeRegistro()\n {\n int posicActual = 0;\n while (posicActual < listaDeVideojuegos.size()) {\n System.out.println((posicActual+1) + \". \" + listaDeVideojuegos.get(posicActual).getDatosVideojuego());\n posicActual++;\n }\n }",
"@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }",
"public void incEts() {\n ets++;\n }",
"void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) continue;\n int yy = ((y+j)+taille)%taille;\n if (grille[xx][yy].vivante) nbVivantes++;\n }\n }\n if (nbVivantes<=1 || nbVivantes>=4) {vientDeChanger = (vivante==true); vivante = false;}\n if (nbVivantes==3) {vientDeChanger = (vivante==false); vivante = true;}\n }",
"public void obterDados() {\r\n\r\n\t\tidade = Integer.parseInt(JOptionPane.showInputDialog(\"Informe a idade\"));\r\n\t\taltura = Double.parseDouble(JOptionPane.showInputDialog(\"Informe a altura\"));\r\n\t\tpeso = Double.parseDouble(JOptionPane.showInputDialog(\"Informe o peso\"));\r\n\t\t\r\n\t\tjogCadastrados ++;\r\n totalaltura += altura;\r\n\r\n\t}",
"@Override\n\tpublic long unidadesComida() {\n\t\treturn 3;\n\t}",
"private void handleIndivisible() {\n\t\n}",
"private static void teste02 () {\n\t\tEstoque e = Estoque.find(1);\n\t\tlog.debug(\"Estoque encontrado.\");\n\n\t\te.setPreco(new Float(10));\n\t\te.update();\n\n\t\tlog.debug(\"Estoque atualizado.\");\n\t}",
"public void tick(){\n oilLevel --;\n maintenance --;\n happiness --;\n health --;\n boredom ++;\n }",
"private void inicializarConexoesDaSegundaCamada() {\n conexoesSegundaCamada = new double[numeroNeuroniosPrimeiraCamada + 1];\n for (int i = 0; i < conexoesSegundaCamada.length; i++) {\n conexoesSegundaCamada[i] = Math.random();\n //conexoesSegundaCamada[i] = 1.0;\n }\n }",
"public void CobrarImpuestosAmpliado(){\n\t\tif(sueldoBruto>=IMPUESTO_SUP){\n\t\t\tsueldoNeto=sueldoBruto-(sueldoBruto*PAGA_IMPUESTOS_MAX);\n\t\t\ttipoImpuesto=\"Ha pagado el 30% de impuestos\";\n\t\t}\n\t}",
"public int probabilidadesHastaAhora(){\n return contadorEstados + 1;\n }",
"@Test //loop test 2 passes\n\tpublic void testLoop2pass() {\n\t\t//create an inn, add two items, and simulate one day\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"+5 Dexterity Vest\", 10, 20));\n\t\tinn.setItem(new Item(\"Sulfuras, Hand of Ragnaros\", 0, 80));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the second set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(1).getQuality();\n\t\t\n\t\t//assert quality remains the same\n\t\tassertEquals(\"Failed quality for Sulfuras\", 80, quality);\n\t}",
"private static void menuno(int menuno2) {\n\t\t\r\n\t}",
"public int getTwoHeads() \n {\n return numTwoHeads; \n }",
"private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}",
"public Ej_varclase1() {\n\t\t//contador++; \n\t\tcontador = contador + 1;\n\t\t\n\t}",
"private void incrementUsageCount() {\n usageCount++;\n }",
"public void eduque() {\n if (!autoriseOperation()) {\n return;\n }\n incrXp(2);\n incrFatigue(1);\n incrHumeur(1);\n\n setChanged();\n notifyObservers();\n }",
"private void decWaiters()\r\n/* 451: */ {\r\n/* 452:537 */ this.waiters = ((short)(this.waiters - 1));\r\n/* 453: */ }",
"@Test\n\tpublic void peorCasoOrderAndSelectTest() {\n\t\tint longitud = 16;\n\t\tInteger[] conjunto = new Integer[longitud];\n\t\tfor (int i = 0; i < conjunto.length; i++)\n\t\t\tconjunto[i] = 1; \n\t\tint k = longitud - 1;\n\t\tassertEquals(new Integer(15), buscador.buscarEstadisticoDeOrdenK(conjunto, k));\n\t}",
"private void moverJogadorDaVez(int dado1, int dado2) throws Exception {\n // System.out.println(\"moverJogadorDaVez\" + dado1 + \" , \" + dado2);\n\n print(\"\\ttirou nos dados: \" + dado1 + \" , \" + dado2);\n int valorDados = dado1 + dado2;\n\n int jogador = this.jogadorAtual();\n\n boolean ValoresIguais = false;\n\n\n //preciso saber se o jogador vai passar pela posição 40, o que significa\n //ganhar dinheiro\n this.completouVolta(jogador, valorDados);\n\n if (dado1 == dado2) {\n ValoresIguais = true;\n } else {\n ValoresIguais = false;\n }\n\n //movendo à posição\n this.moverJogadorAPosicao(jogador, valorDados, ValoresIguais);\n this.print(\"\\tAtual dinheiro antes de ver a compra:\" + this.listaJogadores.get(jogador).getDinheiro());\n this.print(\"\\tVai até a posição \" + this.posicoes[jogador]);\n\n //vendo se caiu na prisao\n if (this.posicoes[this.jogadorAtual()] == 30 && this.prisao == true) {\n adicionaNaPrisao(listaJogadores.get(jogadorAtual()));\n DeslocarJogador(jogador, 10);\n listaJogadores.get(jogadorAtual()).adicionarComandoPay();\n }\n\n\n\n Lugar lugar = this.tabuleiro.get(this.posicoes[jogador] - 1);//busca em -1, pois eh um vetor\n\n\n if (this.isCompraAutomatica()) {\n this.realizarCompra(jogador, lugar);\n }\n\n if (!this.posicaoCompravel(this.posicoes[jogador])) {\n this.print(\"\\t\" + lugar.getNome() + \" não está à venda!\");\n\n\n String nomeDono = (String) Donos.get(this.posicoes[jogador]);\n //não cobrar aluguel de si mesmo\n if (!nomeDono.equals(this.listaJogadores.get(this.jogadorAtual()).getNome())) {\n\n if (this.isUmJogador(nomeDono)) {\n Jogador possivelDono = this.getJogadorByName(nomeDono);\n\n if (this.isPosicaoFerrovia(this.posicoes[jogador])) {\n this.print(\"\\tO dono eh \" + possivelDono.getNome());\n if (!lugar.estaHipotecada()) {\n this.pagarFerrovia(possivelDono.getId(), jogador, 25, lugar.getNome());\n }\n } else {\n\n this.print(\"\\tO dono eh \" + possivelDono.getNome());\n int valorAluguel = 0;\n if (this.posicoes[this.jogadorAtual()] != 12 && this.posicoes[this.jogadorAtual()] != 28) {\n valorAluguel = this.tabuleiro.getLugarPrecoAluguel(this.posicoes[jogador]);\n\n } else {\n if (possivelDono.getQuantidadeCompanhias() == 1) {\n valorAluguel = 4 * valorDados;\n\n }\n if (possivelDono.getQuantidadeCompanhias() == 2) {\n valorAluguel = 10 * valorDados;\n\n }\n }\n if (!lugar.estaHipotecada()) {\n this.pagarAluguel(possivelDono.getId(), jogador, valorAluguel, lugar.getNome());\n }\n\n }\n\n }\n }\n\n }\n\n\n this.pagarEventuaisTaxas(jogador);\n\n if ((this.posicoes[this.jogadorAtual()] == 2 || this.posicoes[jogadorAtual()] == 17 || this.posicoes[jogadorAtual()] == 33) && cards == true) {\n realizaProcessamentoCartaoChest();\n }\n\n if ((this.posicoes[this.jogadorAtual()] == 7 || this.posicoes[jogadorAtual()] == 22 || this.posicoes[jogadorAtual()] == 36) && cards == true) {\n realizaProcessamentoCartaoChance();\n }\n\n\n\n\n this.print(\"\\tAtual dinheiro depois:\" + this.listaJogadores.get(jogador).getDinheiro());\n\n\n\n }",
"@Override\n\tpublic void count() {\n\t\t\n\t}",
"@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}",
"private void vuoronKaikkiHeitotHeitetty() {\n while (heittojaJaljella < 1) {\n if (tulosLaitettu) {\n break;\n }\n try {\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n System.out.println(\"Ei ole laitettu tulosta\");\n }\n }\n }",
"public void realizaProcessamentoCartaoChance() throws Exception {\n if (indiceChance == 1) {\n DeslocarJogador(jogadorAtual(), 40);\n this.listaJogadores.get(jogadorAtual()).addDinheiro(200);\n\n } else if (indiceChance == 2) {\n DeslocarJogador(jogadorAtual(), 24);\n } else if (indiceChance == 3) {\n if (this.posicoes[this.jogadorAtual()] == 40 || this.posicoes[this.jogadorAtual()] > 11) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(200);\n }\n DeslocarJogador(jogadorAtual(), 11);\n\n\n } else if (indiceChance == 4) {\n if (this.posicoes[this.jogadorAtual()] < 12 || this.posicoes[this.jogadorAtual()] > 28) {\n DeslocarJogador(jogadorAtual(), 12);\n } else {\n DeslocarJogador(jogadorAtual(), 28);\n }\n } else if (indiceChance == 5 || indiceChance == 16) {\n if (this.posicoes[jogadorAtual()] < 5 || this.posicoes[jogadorAtual()] > 35) {\n DeslocarJogador(jogadorAtual(), 5);\n } else if (this.posicoes[jogadorAtual()] < 15) {\n DeslocarJogador(jogadorAtual(), 15);\n } else if (this.posicoes[jogadorAtual()] < 25) {\n DeslocarJogador(jogadorAtual(), 25);\n } else if (this.posicoes[jogadorAtual()] < 35) {\n DeslocarJogador(jogadorAtual(), 35);\n }\n\n int jogador = this.jogadorAtual();\n Lugar lugar = this.tabuleiro.get(this.posicoes[jogador] - 1);\n String nomeDono = (String) Donos.get(this.posicoes[jogador]);\n if (this.isUmJogador(nomeDono)) {\n Jogador possivelDono = this.getJogadorByName(nomeDono);\n if (this.isPosicaoFerrovia(this.posicoes[jogador])) {\n this.print(\"\\tO dono eh \" + possivelDono.getNome());\n }\n this.pagarFerrovia(possivelDono.getId(), jogador, 50, lugar.getNome());\n }\n\n } else if (indiceChance == 6) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(50);\n } else if (indiceChance == 7) {\n DeslocarJogador(jogadorAtual(), this.posicoes[jogadorAtual()] - 3);\n this.pagarEventuaisTaxas(jogadorAtual());\n } else if (indiceChance == 8) {\n DeslocarJogador(jogadorAtual(), 10);\n adicionaNaPrisao(listaJogadores.get(jogadorAtual()));\n\n } else if (indiceChance == 9) {\n int GastosRua = this.listaJogadores.get(jogadorAtual()).getQuantidadeDeCasas() * 25;\n GastosRua = GastosRua + this.listaJogadores.get(jogadorAtual()).getQuantidadeDeHoteis() * 10;\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(GastosRua);\n } else if (indiceChance == 10) {\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(15);\n } else if (indiceChance == 11) {\n\n this.listaJogadores.get(jogadorAtual()).ganharCartaoSaidaDePrisao(\"chance\");\n this.cardChancePrisaoEmPosse = true;\n } else if (indiceChance == 12) {\n if (this.posicoes[this.jogadorAtual()] > 5) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(200);\n }\n DeslocarJogador(jogadorAtual(), 5);\n if (this.posicoes[this.jogadorAtual()] > 5) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(200);\n }\n } else if (indiceChance == 13) {\n DeslocarJogador(jogadorAtual(), 39);\n } else if (indiceChance == 14) {\n int debito = numeroDeJogadores * 50 - 50;\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(debito);\n for (int i = 0; i < numeroDeJogadores; i++) {\n if (i != jogadorAtual()) {\n this.listaJogadores.get(i).addDinheiro(50);\n }\n }\n } else if (indiceChance == 15) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(150);\n }\n\n\n\n if (indiceChance < 16) {\n indiceChance++;\n } else {\n indiceChance = 1;\n }\n }",
"private void asserEquals(int esperado, int resultado) {\n\t\t\r\n\t}",
"public void toilette() {\n if (!autoriseOperation()) {\n return;\n }\n incrSale(-3);\n incrHumeur(1);\n incrXp(1);\n\n setChanged();\n notifyObservers();\n }",
"private static void afisareSubsecventaMaxima() {\n afisareSir(citireSir().SecvMax());\n }",
"public void ferdig(){\n antallTelegrafister--;\n }",
"public void gagne()\r\n\t{\r\n\t\tthis.nbVictoires++;\r\n\t}",
"@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }",
"@Test\n\tpublic void mejorCasoOrderAndSelectTest() {\n\t\t// TODO!\n\t\tint longitud = 16;\n\t\tInteger[] conjunto = new Integer[longitud];\n\t\tfor (int i = 0; i < conjunto.length / 2; i++)\n\t\t\tconjunto[i] = 1;\n\t\tfor (int i = conjunto.length / 2; i < conjunto.length; i++)\n\t\t\tconjunto[i] = 2;\n\t\tint k = longitud - 1;\n\t\tassertEquals(new Integer(2), buscador.buscarEstadisticoDeOrdenK(conjunto, k));\n\t}",
"public static void proveraServisa() {\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje racunate vreme sledeceg servisa:\");\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tUtillMethod.proveraServisaVozila(Main.getVozilaAll().get(redniBroj));\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}",
"@Override\n public void run() {\n try {\n evenSemaphore.acquire();\n while (true) {\n\n if(count % 2 == 0){\n System.out.println(Thread.currentThread().getName() + \" 偶数 \" + count);\n count++;\n if (count > 20) {\n return;\n }\n oddSemaphore.release();\n evenSemaphore.acquire();\n TimeUnit.SECONDS.sleep(1);\n }\n if (count > 20) {\n break;\n }\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void accionAtaques(int i) throws SQLException{\r\n if(turno ==0){\r\n if(pokemon_activo1.getCongelado() == false || pokemon_activo1.getDormido() == false){\r\n if(pokemon_activo1.getConfuso() == true && (int)(Math.random()*100) > 50){\r\n// inflingirDaño(pokemon_activo1.getMovimientos()[i], pokemon_activo1, pokemon_activo1);\r\n// System.out.println(\"El pokemon se ha hecho daño a si mismo!\");\r\n// try {\r\n// creg.guardarRegistroSimulacion(\"El pokemon se ha hecho daño a si mismo\");\r\n// } catch (IOException ex) {\r\n// Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n// }\r\n }\r\n else{\r\n inflingirDaño(pokemon_activo1.getMovimientos()[i], pokemon_activo2, pokemon_activo1);\r\n if(pokemon_activo2.getVida_restante() <= 0){\r\n pokemon_activo2.setVida_restante(0);\r\n pokemon_activo2.setDebilitado(true);\r\n JOptionPane.showMessageDialog(this.vc, \"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\", \"Debilitado\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\");\r\n try {\r\n creg.guardarRegistroSimulacion(\"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(condicionVictoria(getEquipo1(), getEquipo2()) == true){\r\n JOptionPane.showMessageDialog(this.vc, \"El Ganador de este Combate es:\"+ entrenador1.getNombre(), \"Ganador\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Ganador de este Combate es:\"+ entrenador1.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"El Ganador de este Combate es:\"+ entrenador1.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.dispose();\r\n vpc.dispose();\r\n combate.setGanador(entrenador1);\r\n combate.setPerdedor(entrenador2);\r\n termino = true;\r\n if(esLider == true){\r\n cmed.ganoCombate();\r\n }\r\n }\r\n else if(getEquipo2()[0].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[0]; \r\n }\r\n else if(getEquipo2()[1].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[1]; \r\n }\r\n else if(getEquipo2()[2].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[2]; \r\n }\r\n else if(getEquipo2()[3].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[3]; \r\n }\r\n else if(getEquipo2()[4].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[4]; \r\n }\r\n else if(getEquipo2()[5].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[5]; \r\n }\r\n vc.setjL_nombrepokemon2(pokemon_activo2.getPseudonimo());\r\n vc.setjL_especie2(pokemon_activo2.getNombre_especie());\r\n vc.setjL_Nivel2(pokemon_activo2.getNivel());\r\n \r\n }\r\n va.setVisible(false);\r\n vc.setjL_Turno_actual(entrenador2.getNombre());\r\n vc.setjL_vida_actual1(pokemon_activo1.getVida_restante(), pokemon_activo1.getVida());\r\n vc.setjL_vida_actual2(pokemon_activo2.getVida_restante(), pokemon_activo2.getVida());\r\n if(tipo_simulacion == 1){\r\n JOptionPane.showMessageDialog(this.vc, \"Turno\"+\" \"+entrenador2.getNombre(), \"Tu Turno\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"Turno\"+\" \"+entrenador2.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"Turno\"+\" \"+entrenador2.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.turnoJugador2();\r\n this.turno = 1;\r\n }\r\n else if(tipo_simulacion == 2){\r\n if(termino==false){\r\n turnoSistema();\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n System.out.println(\"El pokemon no puede atacar\");\r\n try {\r\n creg.guardarRegistroSimulacion(\"El pokemon no puede atacar\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if((int)(Math.random()*3) == 1){ //1/3 de probabilidad de desactivar el efecto\r\n pokemon_activo1.setCongelado(false);\r\n pokemon_activo1.setDormido(false);\r\n }\r\n }\r\n \r\n }\r\n else if(turno ==1){\r\n if(pokemon_activo2.getCongelado() == false || pokemon_activo2.getDormido() == false){\r\n if(pokemon_activo2.getConfuso() == true && (int)(Math.random()*100) > 50){\r\n// inflingirDaño(pokemon_activo2.getMovimientos()[i], pokemon_activo2, pokemon_activo2);\r\n// System.out.println(\"El pokemon se ha hecho daño a si mismo!\");\r\n// try {\r\n// creg.guardarRegistroSimulacion(\"El pokemon se ha hecho daño a si mismo!\");\r\n// } catch (IOException ex) {\r\n// Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n// }\r\n }\r\n else{\r\n inflingirDaño(pokemon_activo2.getMovimientos()[i], pokemon_activo1, pokemon_activo2);\r\n if(pokemon_activo1.getVida_restante() <= 0){\r\n pokemon_activo1.setVida_restante(0);\r\n pokemon_activo1.setDebilitado(true);\r\n JOptionPane.showMessageDialog(this.vc, \"El Pokemon: \"+ pokemon_activo1.getPseudonimo()+\" se ha Debilitado\", \"Debilitado\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Pokemon: \"+ pokemon_activo1.getPseudonimo()+\" se ha Debilitado\");\r\n try {\r\n creg.guardarRegistroSimulacion(\"El Pokemon: \"+ pokemon_activo1.getPseudonimo()+\" se ha Debilitado\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(condicionVictoria(getEquipo1(), getEquipo2()) == true){\r\n JOptionPane.showMessageDialog(this.vc, \"El Ganador de este Combate es:\"+ entrenador2.getNombre(), \"Ganador\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Ganador de este Combate es:\"+ entrenador2.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"El Ganador de este Combate es:\"+ entrenador2.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.dispose();\r\n vpc.dispose();\r\n combate.setGanador(entrenador2);\r\n combate.setPerdedor(entrenador1);\r\n }\r\n else if(getEquipo1()[0].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[0]; \r\n }\r\n else if(getEquipo1()[1].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[1]; \r\n }\r\n else if(getEquipo1()[2].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[2]; \r\n }\r\n else if(getEquipo1()[3].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[3]; \r\n }\r\n else if(getEquipo1()[4].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[4]; \r\n }\r\n else if(getEquipo1()[5].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[5]; \r\n }\r\n vc.setjL_nombrepokemon1(pokemon_activo1.getPseudonimo());\r\n vc.setjL_especie1(pokemon_activo1.getNombre_especie());\r\n vc.setjL_Nivel1(pokemon_activo1.getNivel());\r\n }\r\n va.setVisible(false);\r\n vc.setjL_Turno_actual(entrenador1.getNombre());\r\n vc.setjL_vida_actual1(pokemon_activo1.getVida_restante(), pokemon_activo1.getVida());\r\n vc.setjL_vida_actual2(pokemon_activo2.getVida_restante(), pokemon_activo2.getVida());\r\n JOptionPane.showMessageDialog(this.vc, \"Turno\"+\" \"+entrenador1.getNombre(), \"Tu Turno\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"Turno\"+\" \"+entrenador1.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"Turno\"+\" \"+entrenador1.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.turnoJugador1();\r\n this.turno = 0;\r\n }\r\n }\r\n else {\r\n System.out.println(\"El pokemon no puede atacar\");\r\n try {\r\n creg.guardarRegistroSimulacion(\"El pokemon no puede atacar\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if((int)(Math.random()*3) == 1){ //1/3 de probabilidad de desactivar el efecto\r\n pokemon_activo2.setCongelado(false);\r\n pokemon_activo2.setDormido(false);\r\n }\r\n }\r\n }\r\n setLabelEstados(1);\r\n setLabelEstados(0); \r\n \r\n }",
"public void aumentarIntentos() {\r\n this.intentos += 1;\r\n }",
"public void acaba() \n\t\t{\n\t\t\tsigo2 = false;\n\t\t}",
"@Test\n\tpublic void completeHires()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getNoOfCompleteHires() == 2);\n\t}",
"@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }",
"private void aumentarPilha() {\n this.pilhaMovimentos++;\n }",
"@Test\n\tpublic void testPrimeActionnaireSecondaire(){\n\t\tassertEquals(1000, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 2));\n\t\tassertEquals(1500, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 3));\n\t\tassertEquals(2000, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 4));\n\t\tassertEquals(2500, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 5));\n\t\tassertEquals(3000, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 6));\n\t\tassertEquals(3000, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 8));\n\t\tassertEquals(3000, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 10));\n\t\tassertEquals(3500, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 11));\n\t\tassertEquals(3500, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 15));\n\t\tassertEquals(3500, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 20));\n\t\tassertEquals(4000, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 21));\n\t\tassertEquals(4000, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 22));\n\t\tassertEquals(4000, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 30));\n\t\tassertEquals(4500, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 31));\n\t\tassertEquals(4500, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 33));\n\t\tassertEquals(4500, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 40));\n\t\tassertEquals(5000, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 41));\n\t\tassertEquals(5000, TypeChaine.primeActionnaireSecondaire(TypeChaine.SACKSON, 42));\n\n\t\t// cas categorie hotel = 2\n\t\tassertEquals(1500, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 2));\n\t\tassertEquals(2000, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 3));\n\t\tassertEquals(2500, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 4));\n\t\tassertEquals(3000, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 5));\n\t\tassertEquals(3500, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 6));\n\t\tassertEquals(3500, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 8));\n\t\tassertEquals(3500, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 10));\n\t\tassertEquals(4000, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 11));\n\t\tassertEquals(4000, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 15));\n\t\tassertEquals(4000, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 20));\n\t\tassertEquals(4500, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 21));\n\t\tassertEquals(4500, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 22));\n\t\tassertEquals(4500, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 30));\n\t\tassertEquals(5000, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 31));\n\t\tassertEquals(5000, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 33));\n\t\tassertEquals(5000, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 40));\n\t\tassertEquals(5500, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 41));\n\t\tassertEquals(5500, TypeChaine.primeActionnaireSecondaire(TypeChaine.HYDRA, 42));\n\n\t\t// cas categorie hotel = 3\n\t\tassertEquals(2000, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 2));\n\t\tassertEquals(2500, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 3));\n\t\tassertEquals(3000, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 4));\n\t\tassertEquals(3500, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 5));\n\t\tassertEquals(4000, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 6));\n\t\tassertEquals(4000, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 8));\n\t\tassertEquals(4000, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 10));\n\t\tassertEquals(4500, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 11));\n\t\tassertEquals(4500, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 15));\n\t\tassertEquals(4500, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 20));\n\t\tassertEquals(5000, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 21));\n\t\tassertEquals(5000, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 22));\n\t\tassertEquals(5000, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 30));\n\t\tassertEquals(5500, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 31));\n\t\tassertEquals(5500, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 33));\n\t\tassertEquals(5500, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 40));\n\t\tassertEquals(6000, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 41));\n\t\tassertEquals(6000, TypeChaine.primeActionnaireSecondaire(TypeChaine.PHOENIX, 42));\n\t}",
"@Override\n\tpublic void verVehiculosDisponibles() {\n\t\tif(getCapacidad() > 0) {\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 1 \" + \" Carro disponible, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 0 \" + \" Carro disponibles, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}\n\t\t\n\t}",
"public int enfrentarJugadores(int J1, int J2) {\n if ((J1 == 0 && J2 == 2) || (J1 == 1 && J2 == 0) || (J1 == 2 && J2 == 1)) {\n return 1;\n } else if ((J2 == 0 && J1 == 2) || (J2 == 1 && J1 == 0) || (J2 == 2 && J1 == 1)) {\n return 2;\n } else {\n return 0;\n }\n }",
"private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}",
"public void split(){\n\t\tamountOfShares = amountOfShares*2;\n\t}",
"private int pasarMilisegundoASegundo( long milisegundos )\n {\n return (int)(milisegundos/MILISEGUNDOS_EN_SEGUNDO);\n }",
"@Override\n\tpublic void step2() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tString[] horasSesiones = {};\r\n\t\tSala sala = new Sala(\"Tiburon\", horasSesiones, 9, 5);\r\n\r\n\t\tsala.incluirSesion(\"20:00\");\r\n\r\n\t\t/*for (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);*/\r\n\t//\tsala.borrarSesion(\"15:00\"); // no hace nada\r\n\t\t//sala.borrarSesion(\"20:00\");\r\n\r\n\t\tfor (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);\r\n\r\n\t\t// necesitamos la ventanilla para mostrar el estado de la sesion\r\n\t\tVentanillaVirtualUsuario ventanilla = new VentanillaVirtualUsuario(null, true);\r\nSystem.out.println(sala.sesiones.size());\r\nSystem.out.print(sala.getEstadoSesion(1));\r\n\t\tsala.comprarEntrada(1, 2, 1);\r\n\t\tsala.comprarEntrada(1, 9, 3);\r\n\r\n\t\tint idVenta = sala.getIdEntrada(1, 9, 3);\r\n\r\n\t\tSystem.out.println(\"Id de venta es:\" + idVenta);\r\n\r\n\t\tButacasContiguas butacas = sala.recomendarButacasContiguas(1, 1);\r\n\r\n\t\tsala.comprarEntradasRecomendadas(1, butacas);\r\n\r\n\t\tint idVenta1 = sala.getIdEntrada(1, butacas.getFila(), butacas.getColumna());\r\n\r\n\t\tsala.recogerEntradas(idVenta1, 1);\r\n\r\n\t\tventanilla.mostrarEstadoSesion(sala.getEstadoSesion(1));\r\n\r\n\t\tSystem.out.println(\"No. de butacas disponibles: \" + sala.getButacasDisponiblesSesion(1));\r\n\r\n\t\tSystem.out.println(\"Tickets :\" + sala.recogerEntradas(idVenta, 1));\r\n\r\n\t\tSystem.out.println(\"Tickets recomendados:\" + sala.recogerEntradas(idVenta1, 1));\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t//sala.incluirSesion(\"10:56\");\r\n\t\t//sala.incluirSesion(\"10:57\");\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t/*{\r\n\t\t\tfor (int i = 0; i < sala.getHorasDeSesionesDeSala().length; i++) {\r\n\t\t\t\tSystem.out.println(sala.getHorasDeSesionesDeSala()[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t}*/\r\n\t\t\r\n\t}",
"@Test\n\tpublic void testMultiplica2Enteros0() {\n\t\tdouble resultado= Producto.multiplica2enteros(100, 0);\n\t\tdouble esperado= 0;\n\t\t\n\t\tassertEquals(esperado, resultado);\n\t}",
"@Override\n public void setExperiencia(){\n experiencia1=Math.random()*50*nivel;\n experiencia=experiencia+experiencia1;\n subida();\n }",
"public static void secondOne() {\n\t\tObject[] option = { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"reset\" };\n\t\telipse = JOptionPane.showOptionDialog(frame, \"are these doors to a farm? or are you just high?\", \"be prepared\",\n\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, icon, option, option[9]);\n\t\thighDoors();\n\t}",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"private static void findLongCommSubs() {\n\n for(Player player : inputPlayersList){\n player.setLongCommSubsCounter(LongCommSubsForTwoStrings(player.getTicketNumber(), winningNumber).length());\n }\n }",
"public void AumentarVictorias() {\r\n\t\tthis.victorias_actuales++;\r\n\t\tif (this.victorias_actuales >= 9) {\r\n\t\t\tthis.TituloNobiliario = 3;\r\n\t\t} else if (this.victorias_actuales >= 6) {\r\n\t\t\tthis.TituloNobiliario = 2;\r\n\t\t} else if (this.victorias_actuales >= 3) {\r\n\t\t\tthis.TituloNobiliario = 1;\r\n\t\t} else {\r\n\t\t\tthis.TituloNobiliario = 0;\r\n\t\t}\r\n\t}",
"private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }",
"private void method_2242() {\r\n this.field_1824.method_6863(0);\r\n this.field_1824.method_6861(false);\r\n this.field_1824.method_6859(0);\r\n this.field_1824.method_6857(false);\r\n }"
] | [
"0.5736543",
"0.57320935",
"0.5704976",
"0.5690255",
"0.5674139",
"0.56074405",
"0.5551834",
"0.55507714",
"0.55464464",
"0.55111235",
"0.5467763",
"0.54418194",
"0.54378337",
"0.5436592",
"0.54252845",
"0.54124737",
"0.54115915",
"0.5408649",
"0.5392849",
"0.5382969",
"0.53524727",
"0.5338939",
"0.5325196",
"0.5318952",
"0.53120804",
"0.5308468",
"0.53076005",
"0.52867955",
"0.52786386",
"0.52700967",
"0.52693206",
"0.5266226",
"0.52507746",
"0.52443165",
"0.5238982",
"0.52347875",
"0.52271724",
"0.52144116",
"0.52101517",
"0.52070177",
"0.52034515",
"0.520296",
"0.5197897",
"0.5194121",
"0.5186148",
"0.5185966",
"0.51726305",
"0.5169195",
"0.5169021",
"0.51610166",
"0.5160736",
"0.51524025",
"0.51499593",
"0.51413006",
"0.5140329",
"0.51364875",
"0.5130496",
"0.51295",
"0.5129314",
"0.5124099",
"0.51226014",
"0.5121621",
"0.5117878",
"0.511445",
"0.51143134",
"0.51138866",
"0.51110595",
"0.5109802",
"0.51031035",
"0.50971174",
"0.50932753",
"0.50904346",
"0.5085264",
"0.508521",
"0.5084792",
"0.50845116",
"0.5081131",
"0.5077547",
"0.50703347",
"0.5068579",
"0.50679725",
"0.50671315",
"0.5063883",
"0.5058755",
"0.505762",
"0.50462925",
"0.50426745",
"0.504266",
"0.5040215",
"0.5040159",
"0.50395066",
"0.503857",
"0.5038532",
"0.50350106",
"0.50346875",
"0.5030596",
"0.5027977",
"0.5027652",
"0.50251967",
"0.5023651",
"0.50226384"
] | 0.0 | -1 |
Common Css Resources. This will hold structural css values. | interface CommonCssResource extends CssResource {
/**
* Generic container .
* @return the css class for a generic container
*/
String genericContainer();
/**
* @return
*/
String lassoPanel();
/**
* @return
*/
String lassoElement();
/**
* Generic container padding.
* @return
*/
int genericContainerPaddingPx();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected ResourceReference getCSS()\n\t{\n\t\treturn CSS;\n\t}",
"public String getCss() {\n return clean(css);\n }",
"private void loadStyles() {\n ShowcaseResources.INSTANCE.showcaseCss().ensureInjected();\n RoundedCornersResource.INSTANCE.roundCornersCss().ensureInjected();\n }",
"public interface Style extends CssResource {\n\n /**\n * The style for the panel that contains\n * the whole user record\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecord();\n\n /**\n * The style for the name of the user\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String nameLabel();\n\n /**\n * The style for the username of the user\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabel();\n\n /**\n * The style for the user avatar image\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImage();\n\n /**\n * The style for the remove image\n *\n * @author Johannes Gryffenberg <[email protected]>\n * @since 26 Feb 2013\n *\n * @return The name of the compiled style\n */\n String removeImageStyle();\n\n /**\n * The style for the user record when it is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecordSelected();\n\n /**\n * The style for the username when the record is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabelSelected();\n\n /**\n * The style for the avatar when the record is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImageSelected();\n }",
"public static String getCSS()\n {\n \treturn \"table.relations \"+\n\t\t \"{ \" +\n\t\t\t\" margin: 1em 1em 1em 2em;\" +\n\t\t\t\" border-collapse: collapse;\" +\n\t\t\t\" width:90%;\" +\n\t\t \"}\" +\n\t\t\"table.relations td\" + \n\t\t\"{\" +\n\t\t\" border-left: 1px solid #C1DAD7;\" +\n\t\t\"\tborder-right: 1px solid #C1DAD7;\" +\n\t\t\"\tborder-bottom: 1px solid #C1DAD7;\" +\n\t\t\"\tbackground: #fff;\" +\n\t\t\"\tpadding: 6px 6px 6px 12px;\" +\n\t\t\"\tcolor: #6D929B;\" +\n\t\t\"}\" +\n\t\t\"table.relations th\" + \n\t\t\"{\" +\n\t\t\"\tfont: bold 10px \\\"Trebuchet MS\\\", Verdana, Arial, Helvetica,\" +\n\t\t\"\tsans-serif;\" +\n\t\t\"\tcolor: #003399;\" +\n\t\t\"\tborder-right: 1px solid #C1DAD7;\" +\n\t\t\"\tborder-left: 1px solid #C1DAD7;\" +\n\t\t\"\tborder-bottom: 1px solid #C1DAD7;\" +\n\t\t\"\tborder-top: 1px solid #C1DAD7;\" +\n\t\t\"\tletter-spacing: 2px;\" +\n\t\t\"\ttext-transform: uppercase;\" +\n\t\t\"\ttext-align: left;\" +\n\t\t\"\tpadding: 3px 3px 3px 6px;\" +\n\t\t\"\tbackground: #B0C4DE;\" +\n\t\t\"}\";\n }",
"private void loadCssForThisClass() {\n\t\tString className = getClass().getName();\n\t\tString cssPath = className.replace(\".\", \"/\") + \".css\";\n\t\tURL cssUrl = getClass().getClassLoader().getResource(cssPath);\n\t\tloadCss(cssUrl);\n\n\t\t// System.out.println(\"CSS:\\n\" + getCssContent(cssUrl) );\n\t}",
"public static interface Style extends CssResource {\r\n\r\n\t\t/**\r\n\t\t * Applied to buttons.\r\n\t\t */\r\n\t\tString button();\r\n\r\n\t\t/**\r\n\t\t * Applied to disabled buttons.\r\n\t\t */\r\n\t\tString disabledButton();\r\n\r\n\t\t/**\r\n\t\t * Applied to the details text.\r\n\t\t */\r\n\t\tString pageDetails();\r\n\r\n\t\tString pageDetails2();\r\n\t\t\r\n\t\tString imogPagerLayout();\r\n\t}",
"private void addCss() {\n StyleLink jqueryLink = new StyleLink(\"http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css\");\n page.addHeader(jqueryLink);\n StyleLink jqueryTooltipLink = new StyleLink(\"/css/jquery.ui.tooltip.css\");\n page.addHeader(jqueryTooltipLink);\n StyleLink cssLink = new StyleLink(\"/css/lockss-new.css\");\n page.addHeader(cssLink);\n }",
"private String getCSS() {\r\n StringBuffer css = new StringBuffer();\r\n css.append(\"<style type='text/css'>\");\r\n css.append(\"<!--\");\r\n css.append(\"\tA.pagina:link, A.pagina:visited, A.pagina:active, A.pagina:hover {\");\r\n css.append(\"\t\tFONT-SIZE: 10pt;\");\r\n css.append(\"\t\tFONT-FAMILY: verdana;\");\r\n css.append(\"\t\tFONT-STYLE: normal;\");\r\n css.append(\"\t\tFONT-WEIGHT: bold;\");\r\n css.append(\"\t\tTEXT-DECORATION: none ;\");\r\n css.append(\"\t}\");\r\n css.append(\"\tA.pagina:link {\");\r\n css.append(\"\t\tCOLOR: #0039ba;\");\r\n css.append(\"\t}\");\r\n css.append(\"\tA.pagina:visited {\");\r\n css.append(\"\t\tCOLOR: #6c8bc3;\");\r\n css.append(\"\t}\");\r\n css.append(\"\tA.pagina:active {\");\r\n css.append(\"\t\tCOLOR: #ff6d00;\");\r\n css.append(\"\t}\");\r\n css.append(\"\tA.pagina:hover {\");\r\n css.append(\"\t\tCOLOR: #ff6d00;\");\r\n css.append(\"\t}\");\r\n css.append(\"\tTR.pagina{\");\r\n css.append(\"\t\tFONT-FAMILY: verdana;\");\r\n css.append(\"\t\tFONT-SIZE: 10pt;\");\r\n css.append(\"\t\tFONT-WEIGHT: bold;\");\r\n css.append(\"\t\tTEXT-ALIGN: center;\");\r\n css.append(\"\t\tCOLOR: gray;\");\r\n css.append(\"\t}\");\r\n css.append(\"-->\");\r\n css.append(\"</style>\");\r\n return (css.toString());\r\n }",
"public BlockUIThemedCSS()\n\t{\n\t\t//No config required\n\t}",
"private void processCss() throws MalformedURLException, IOException {\r\n\r\n\t\tcssList = fullList.extractAllNodesThatMatch(new NodeClassFilter(\r\n\t\t\t\tTagNode.class), true);\r\n\t\tthePageCss = new HashMap<String, String>();\r\n\r\n\t\tfor (SimpleNodeIterator nodeIter = cssList.elements(); nodeIter\r\n\t\t\t\t.hasMoreNodes();) {\r\n\t\t\tTagNode tempNode = (TagNode) nodeIter.nextNode();\r\n\t\t\tString tagText = tempNode.getAttribute(\"type\");\r\n\r\n\t\t\tif ((tagText != null) && (tagText.contains(\"text/css\"))) {\r\n\r\n\t\t\t\tif (tempNode instanceof StyleTag) {\r\n\t\t\t\t\tprocessImportTypeCss(tempNode);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tprocessLinkTypeCss(tempNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public String getPageStyle()\n {\n if (this.pageStyle == null) {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<style type='text/css'>\\n\");\n sb.append(\" a:hover { color:#00CC00; }\\n\");\n sb.append(\" h1 { font-family:Arial; font-size:16pt; white-space:pre; }\\n\");\n sb.append(\" h2 { font-family:Arial; font-size:14pt; white-space:pre; }\\n\");\n sb.append(\" h3 { font-family:Arial; font-size:12pt; white-space:pre; }\\n\");\n sb.append(\" h4 { font-family:Arial; font-size:10pt; white-space:pre; }\\n\");\n sb.append(\" form { margin-top:0px; margin-bottom:0px; }\\n\");\n sb.append(\" body { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" td { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" input { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" input:focus { background-color: #FFFFC9; }\\n\");\n sb.append(\" select { font-size:7pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" select:focus { background-color: #FFFFC9; }\\n\"); \n sb.append(\" textarea { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" textarea:focus { background-color: #FFFFC9; }\\n\"); \n sb.append(\" .\"+CommonServlet.CSS_TEXT_INPUT+\" { border-width:2px; border-style:inset; border-color:#DDDDDD #EEEEEE #EEEEEE #DDDDDD; padding-left:2px; background-color:#FFFFFF; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_TEXT_READONLY+\" { border-width:2px; border-style:inset; border-color:#DDDDDD #EEEEEE #EEEEEE #DDDDDD; padding-left:2px; background-color:#E7E7E7; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_CONTENT_FRAME[1]+\" { padding:5px; width:300px; border-style:double; border-color:#555555; background-color:white; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_CONTENT_MESSAGE+\" { padding-top:5px; font-style:oblique; text-align:center; }\\n\");\n sb.append(\"</style>\\n\");\n this.pageStyle = sb.toString();\n } \n return this.pageStyle;\n }",
"StyleValue getCSSValue();",
"private void writeCss(HttpServletRequest request,\n HttpServletResponse response) throws IOException, QuickFixException {\n AuraContext context = Aura.getContextService().getCurrentContext();\n response.setCharacterEncoding(AuraBaseServlet.UTF_ENCODING);\n List<String> namespaces = Lists.newArrayList(context.getPreloads());\n DefinitionService definitionService = Aura.getDefinitionService();\n Client.Type type = Aura.getContextService().getCurrentContext().getClient().getType();\n Mode mode = context.getMode();\n StringBuffer sb = new StringBuffer();\n \n for (String ns : namespaces) {\n String key = type.name() + \"$\" + ns;\n \n String nsCss = !mode.isTestMode() ? cssCache.get(key) : null;\n if (nsCss == null) {\n DefDescriptor<ThemeDef> matcher = definitionService.getDefDescriptor(String.format(\"css://%s.*\", ns),\n ThemeDef.class);\n Set<DefDescriptor<ThemeDef>> descriptors = definitionService.find(matcher);\n List<ThemeDef> nddefs = new ArrayList<ThemeDef>();\n \n sb.setLength(0);\n for(DefDescriptor<ThemeDef> descriptor : descriptors){\n //\n // This could use the generic routine above except for this brain dead little\n // gem.\n //\n if(!descriptor.getName().toLowerCase().endsWith(\"template\")){\n ThemeDef def = descriptor.getDef();\n if(def != null){\n nddefs.add(def);\n }\n }\n }\n \n context.setPreloading(true);\n Appendable tmp = mode.isTestMode() ? response.getWriter() : sb;\n preloadSerialize(nddefs, ThemeDef.class, tmp);\n if (!mode.isTestMode()) {\n nsCss = sb.toString();\n cssCache.put(key, nsCss);\n }\n }\n \n if (nsCss != null) {\n \tresponse.getWriter().append(nsCss);\n }\n }\n }",
"private String cssFileForHtml() {\r\n\t\treturn \"<style>table, td, th {\"\r\n\t\t\t\t+ \"border: 1px solid #ddd;\"\r\n\t\t\t\t+ \"text-align: left;}\"\r\n\t\t\t\t+ \"table {\"\r\n\t\t\t\t+ \"border-collapse: collapse;\"\r\n\t\t\t\t+ \"width: 100%;}\"\r\n\t\t\t\t+ \"th, td {\"\r\n\t\t\t\t+ \"padding: 10px;\"\r\n\t\t\t\t+ \"color:#000000;\"\r\n\t\t\t\t+ \"font-family: 'Roboto', sans-serif;}td{\"\r\n\t\t\t\t+ \"font-size: smaller;}\"\r\n\t\t\t\t+ \"th{background-color:#EEEEEE;color:#000000;}tr{background-color:#FFFFFF;}\"\r\n\t\t\t\t+ \"tr:hover{background-color:#EEEEEE}</style>\";\r\n\t}",
"public abstract String getDefaultStylesheet ();",
"private void init()\n\t{\n\t\tResourceReference css = getCSS();\n\t\tif (css != null)\n\t\t{\n\t\t\tadd(HeaderContributor.forCss(css.getScope(), css.getName()));\n\t\t}\n\t}",
"@Override\n public String getCSSStyle() {\n return null;\n }",
"public String getCurrentcss() {\n return clean(currentcss);\n }",
"@Override\n protected String getStyle() {\n return App.getInstance().getThemeCssFileName();\n\n }",
"public interface Style extends CssResource {\n\t\t/**\n\t\t * Returns tabTyle\n\t\t */\n\t\tString tabStyle();\n\t}",
"public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() {\n\n return ListView.getClassCssMetaData();\n }",
"public interface Css extends CssResource {\n String button();\n }",
"@Override public String getUserAgentStylesheet() {\r\n return getClass().getResource(\"switch.css\").toExternalForm();\r\n }",
"public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }",
"private void initStyles() {\n for (int i = 0; i < getChildCount(); i++) {\n initStyle(getChildAt(i));\n }\n }",
"@Override\n public Resources getResources() {\n //Set font size, language\n return super.getResources();\n }",
"public BigDecimal getCssr() {\n return cssr;\n }",
"private static String getStyleSheet() {\n\t\tif (fgStyleSheet == null)\n\t\t\tfgStyleSheet= loadStyleSheet();\n\t\tString css= fgStyleSheet;\n\t\tif (css != null) {\n\t\t\tFontData fontData= JFaceResources.getFontRegistry().getFontData(PreferenceConstants.APPEARANCE_JAVADOC_FONT)[0];\n\t\t\tcss= HTMLPrinter.convertTopLevelFont(css, fontData);\n\t\t}\n\n\t\treturn css;\n\t}",
"public abstract String getStyle();",
"String getCssFilter();",
"public void getStyles() {\n\t\tvisit(mElement);\n\t}",
"@Override\n public void initStyle() {\n\t// NOTE THAT EACH CLASS SHOULD CORRESPOND TO\n\t// A STYLE CLASS SPECIFIED IN THIS APPLICATION'S\n\t// CSS FILE\n \n // FOR CHANGING THE ITEMS INSIDE THE EDIT TOOLBAR\n editToolbarPane.getStyleClass().add(CLASS_EDITTOOLBAR_PANE);\n \n mapNameLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n mapName.getStyleClass().add(CLASS_MAPNAME_TEXTFIELD);\n backgroundColorLabel.getStyleClass().add(CLASS_LABEL);\n borderColorLabel.getStyleClass().add(CLASS_LABEL);\n borderThicknessLabel.getStyleClass().add(CLASS_LABEL);\n zoomLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n borderThicknessSlider.getStyleClass().add(CLASS_BORDER_SLIDER);\n mapZoomingSlider.getStyleClass().add(CLASS_ZOOM_SLIDER);\n buttonBox.getStyleClass().add(CLASS_PADDING);\n // FIRST THE WORKSPACE PANE\n workspace.getStyleClass().add(CLASS_BORDERED_PANE);\n }",
"@Override\n public StyleSheet getCSSStyleSheet() {\n if (styleSheet == null) {\n if (getType().equals(WebXConstants.CSS_MIME_TYPE)) {\n WebXDocumentImpl doc = (WebXDocumentImpl) getOwnerDocument();\n CSSEngine e = doc.getCSSEngine();\n String text = \"\";\n Node n = getFirstChild();\n if (n != null) {\n StringBuffer sb = new StringBuffer();\n while (n != null) {\n if (n.getNodeType() == Node.CDATA_SECTION_NODE\n || n.getNodeType() == Node.TEXT_NODE)\n sb.append(n.getNodeValue());\n n = n.getNextSibling();\n }\n text = sb.toString();\n }\n ParsedURL burl = null;\n String bu = getBaseURI();\n if (bu != null) {\n burl = new ParsedURL(bu);\n }\n String media = getAttributeNS(null, WEBX_MEDIA_ATTRIBUTE);\n styleSheet = e.parseStyleSheet(text, burl, media);\n addEventListenerNS(XMLConstants.XML_EVENTS_NAMESPACE_URI,\n \"DOMCharacterDataModified\",\n domCharacterDataModifiedListener,\n false,\n null);\n }\n }\n return styleSheet;\n }",
"String getSkinCssPath(DynamicSkinInstanceData data);",
"public static ColorScheme getColorProperties() {\n \n return BASE_PROPERTIES;\n }",
"public void setCss(String css) {\n this.css = css;\n }",
"public HTMLLinkElement getElementElcss() { return this.$element_Elcss; }",
"public List<HTMLConfigComponent> getStylingList() {\n return stylingList;\n }",
"public abstract interface SummaryConstants\n{\n public static final Font FONT = new Font(\"Verdana\", 1, 12);\n public static final Color BACKGROUND_COLOR = new Color(205, 220, 242);\n public static final Color FOREGROUND_COLOR = new Color(6, 22, 157);\n}",
"public void styleFinder() {\n switch (style) {\n case BLACK_TANK -> styleImage = BLACK_TANK_IMAGE;\n case SAND_TANK -> styleImage = SAND_TANK_IMAGE;\n case RED_TANK -> styleImage = RED_TANK_IMAGE;\n case BLUE_TANK -> styleImage = BLUE_TANK_IMAGE;\n case GREEN_TANK -> styleImage = GREEN_TANK_IMAGE;\n case BLACK_INVINCIBLE_TANK -> styleImage = BLACK_INVINCIBLE_TANK_IMAGE;\n case SAND_INVINCIBLE_TANK -> styleImage = SAND_INVINCIBLE_TANK_IMAGE;\n case RED_INVINCIBLE_TANK -> styleImage = RED_INVINCIBLE_TANK_IMAGE;\n case BLUE_INVINCIBLE_TANK -> styleImage = BLUE_INVINCIBLE_TANK_IMAGE;\n case GREEN_INVINCIBLE_TANK -> styleImage = GREEN_INVINCIBLE_TANK_IMAGE;\n }\n }",
"@Override\n\tprotected NSArray<String> additionalCSSFiles() {\n\t\treturn new NSMutableArray<String>( new String[] { \"modalbox.css\" } );\n\t}",
"public void setAll()\r\n\t{\r\n\t\tthis.coderVersion = CaTIESProperties.getValue(\"caties.coder.version\");\r\n\t\tthis.gateHome = CaTIESProperties.getValue(\"caties.gate.home\");\r\n\t\tthis.creoleUrlName = CaTIESProperties.getValue(\"caties.creole.url.name\");\r\n\t\tthis.caseInsensitiveGazetteerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.case.insensitive.gazetteer.url.name\");\r\n\t\tthis.caseSensitiveGazetteerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.case.sensitive.gazetteer.url.name\");\r\n\t\tthis.sectionChunkerUrlName = CaTIESProperties.getValue(\"caties.section.chunker.url.name\");\r\n\t\tthis.conceptFilterUrlName = CaTIESProperties.getValue(\"caties.concept.filter.url.name\");\r\n\t\tthis.negExUrlName = CaTIESProperties.getValue(\"caties.neg.ex.url.name\");\r\n\t\tthis.conceptCategorizerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.concept.categorizer.url.name\");\r\n\t}",
"@org.junit.Test\n public void css()\n {\n assertEquals(\"empty\", \"\", Encodings.toCSSString(\"\"));\n assertEquals(\"simple\", \"simple\", Encodings.toCSSString(\"simple\"));\n assertEquals(\"spaces\", \"justatest\", Encodings.toCSSString(\"just a test\"));\n assertEquals(\"special\", \"a\", Encodings.toCSSString(\"&*%$#a%#!@()\"));\n }",
"@Source(\"SearchBoxUserRecord.css\")\n Style searchBoxUserRecordStyle();",
"public static String getCssString(XMLDataObject xml) {\n\n //Style string\n StringBuilder styleString = new StringBuilder();\n\n //Get the list of properties\n List<XMLDataObject> objects = xml.getList(\"property\");\n\n //Loop through properties to get the style\n for (XMLDataObject object : objects) {\n\n String value = object.getTextContent();\n String name = object.getString(\"@name\");\n\n if (STYLE_TO_CSS.containsKey(name)) {\n name = STYLE_TO_CSS.get(name);\n styleString.append(name).append(\":\").append(value).append(\";\");\n }\n }\n\n String css = styleString.toString();\n return (css.length() == 0) ? null : css;\n }",
"protected void init() {\r\n\t\tgetPage().addWgtCSS(\"standard/jquery-ui.css\");\r\n\t\tgetPage().addWgtCSS(\"standard/ui.jqgrid.css\");\r\n\t\tgetPage().addControllerJS( JSResourceProcessor.GRID_JS );\r\n\t}",
"abstract protected AbstractCSSStyleSheet getUserNormalStyleSheet();",
"Map<String, String> styles(String group);",
"Style getStyle();",
"public String getDefaultCssFile() {\n return mDefaultCssFile;\n }",
"String getMobileCSSFile() throws FndException\n {\n return configfile.mobilecssfile;\n }",
"private String retrieveCssData(String urlStr) throws MalformedURLException,\r\n\t\t\tIOException {\r\n\t\t// retrieve the image from the webpage and put it in\r\n\t\t// HashMap\r\n\t\tURL url = new URL(urlStr);\r\n\t\tBufferedReader cssData = new BufferedReader(new InputStreamReader(url\r\n\t\t\t\t.openConnection().getInputStream()));\r\n\t\tString cssStr = \"\";\r\n\t\tString tempStr;\r\n\t\twhile ((tempStr = cssData.readLine()) != null) {\r\n\t\t\tcssStr += (tempStr + \"\\n\");\r\n\t\t}\r\n\t\tcssData.close();\r\n\t\treturn cssStr;\r\n\t}",
"public List<CssMetaData<? extends Styleable, ?>> getControlCssMetaData() {\n\n return this.getWrappedControl().getControlCssMetaData();\n }",
"private void initDefaultAttrs() {\n DisplayMetrics dm = getResources().getDisplayMetrics();\n textSize = (int) TypedValue.applyDimension(\n TypedValue.COMPLEX_UNIT_SP, DEFAULT_TEXT_SIZE_SP, dm);\n iconSize = (int) TypedValue.applyDimension(\n TypedValue.COMPLEX_UNIT_DIP, DEFAULT_ICON_SIZE_DP, dm);\n }",
"public ArrayList<Resource> getStaticInfo() {\n\t\tArrayList<Resource> resources = new ArrayList<Resource>();\n\n\t\t// ~~~ CPU\n\t\tResource cpuResource = new Resource();\n\t\tcpuResource.setResourceType(ResourceType.CPU);\n\t\tcpuResource.setName(clientStaticInfo.getCPUVendor() + \" CPU\");\n\n\t\tAttribute cpuSpeedAttribute = new Attribute();\n\t\tcpuSpeedAttribute.setAttributeType(AttributeType.CPUSpeed);\n\t\tcpuSpeedAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getCPUSpeed()));\n\t\tcpuSpeedAttribute.setDate(new Date());\n\t\tcpuResource.addAttribute(cpuSpeedAttribute);\n\n\t\tresources.add(cpuResource);\n\t\t// ~~~ RAM\n\t\tResource ramResource = new Resource();\n\t\tramResource.setResourceType(ResourceType.RAM);\n\t\tramResource.setName(\"RAM\");\n\n\t\tAttribute ramTotalAttribute = new Attribute();\n\t\tramTotalAttribute.setAttributeType(AttributeType.TotalMemory);\n\t\tramTotalAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getRAMInfo()));\n\t\tramTotalAttribute.setDate(new Date());\n\t\tramResource.addAttribute(ramTotalAttribute);\n\n\t\tresources.add(ramResource);\n\t\t// ~~~ OS\n\t\tResource osResource = new Resource();\n\t\tosResource.setResourceType(ResourceType.OS);\n\t\tosResource.setName(clientStaticInfo.getOSInfo());\n\n\t\tresources.add(osResource);\n\t\t// ~~~ SStorage\n\t\tResource sstorageResource = new Resource();\n\t\tsstorageResource.setResourceType(ResourceType.SStorage);\n\t\tsstorageResource.setName(\"SSTORAGE\");\n\n\t\tAttribute sstorageTotalAttribute = new Attribute();\n\t\tsstorageTotalAttribute.setAttributeType(AttributeType.TotalStorage);\n\t\tsstorageTotalAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getSStorageInfo()));\n\t\tsstorageTotalAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageTotalAttribute);\n\n\t\tresources.add(sstorageResource);\n\n\t\treturn resources;\n\t}",
"public String toString() {\n \t\treturn getCssText();\n \t}",
"public Assets() {\n\t\tinit();\n\t}",
"public abstract int getLayoutResources();",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Set the DPI when rendering CSS. Defaults to 96 but can be set with Prince 9.0 and up.\")\n @JsonProperty(JSON_PROPERTY_CSS_DPI)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public Integer getCssDpi() {\n return cssDpi;\n }",
"public void ardublockStyling(Document doc) {\n\t\tif (styleList != null) {\n\t\t\tXPathFactory factory = XPathFactory.newInstance();\n\t\t\tfor (String[] style : styleList) {\n\t\t\t\tXPath xpath = factory.newXPath();\n\t\t\t\ttry {\n\t\t\t\t\t// XPathExpression expr = xpath.compile(\"//BlockGenus[@name[starts-with(.,\\\"Tinker\\\")]]/@color\");\n\t\t\t\t\tXPathExpression expr = xpath.compile(style[0]);\n\t\t\t\t\tNodeList bgs = (NodeList) expr.evaluate(doc, XPathConstants.NODESET);\n\t\t\t\t\tfor (int i = 0; i < bgs.getLength(); i++) {\n\t\t\t\t\t\tNode bg = bgs.item(i);\n\t\t\t\t\t\tbg.setNodeValue(style[1]);\n\t\t\t\t\t\t// bg.setAttribute(\"color\", \"128 0 0\");\n\t\t\t\t\t}\n\t\t\t\t} catch (XPathExpressionException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public interface StyleSource {\n /**\n * Returns the appropriate style for the given style-group and style-name, or {@code null} if missing.\n *\n * @param group the group\n * @param name the style name\n * @return the style\n */\n @Nullable\n String get(String group, String name);\n\n /**\n * Set a specific style in a style-group.\n *\n * @param group the group\n * @param name the style name\n * @param style the style to set\n */\n void set(String group, String name, String style);\n\n /**\n * Remove all styles for given style-group.\n *\n * @param group the group\n */\n void remove(String group);\n\n /**\n * Remove a specific style from style-group.\n *\n * @param group the group\n * @param name the style name to remove\n */\n void remove(String group, String name);\n\n /**\n * Clear all styles.\n */\n void clear();\n\n /**\n * Returns configured style-group names.\n *\n * @return Immutable collection.\n */\n Iterable<String> groups();\n\n /**\n * Returns configured styles for given style-group.\n *\n * @param group the style group\n * @return Immutable map.\n */\n Map<String, String> styles(String group);\n}",
"abstract protected AbstractCSSStyleSheet getUserImportantStyleSheet();",
"public String toCSS(){\n return new StringBuilder()\n .append(\"display:\")\n .append(this.toString().replace(\"_\", \"-\"))\n .append(\";\").toString();\n }",
"public ImmutableList<String> getRequiredCssNamespaces() {\n return requiredCssNamespaces;\n }",
"public interface WidgetColors {\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_ENCLOSURE_BG = new Color(40, 40, 40);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_BG = new Color(60, 60, 60);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_FG = new Color(180, 180, 180);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_SELECTION_BG = new Color(80, 0, 0);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_SELECTION_FG = new Color(240, 240, 240);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_NON_FOCUS = new Color(70, 70, 70);\n\t/**\n\t * \n\t */\n\tpublic static final Color HEADER_COLOR = new Color(20, 20, 20, 230);\n\t/**\n\t * \n\t */\n\tpublic static final Color PROPERTIES_BACKGROUND = Color.LIGHT_GRAY;\n\t/**\n\t * \n\t */\n\tpublic static final Color TEXT_COLOR = new Color(210, 210, 210);\n\n}",
"public static String getColorsV()\n {\n Container v = new Container();\n //mal uso del try/catch con streams\n try\n {\n Stream<String> stream = Files.lines( Paths.get( PATHROOT, \"colors2.txt\" ) );\n stream.forEach( x -> v.c = x );\n }\n catch ( Exception e )\n {\n }\n return v.c;\n }",
"@Override\n public String getCSSClass() {\n return null;\n }",
"private String doCss() throws IOException {\n String outputLine;\n File path = new File(\"src/main/resources/app.css\");\n FileReader fileReader = new FileReader(path);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n outputLine = \"HTTP/1.1 200 OK\\r\\n\"\n + \"Content-Type: text/css \\r\\n\"\n + \"\\r\\n\";\n String inputLine;\n while ((inputLine=bufferedReader.readLine()) != null){\n outputLine += inputLine + \"\\n\";\n }\n return outputLine;\n }",
"public void apply() {\n\n\t\tfinal Multimap<Element, StyleApplication> elementMatches = ArrayListMultimap.create();\n\n\t\tfinal CSSOMParser inlineParser = new CSSOMParser();\n\t\tinlineParser.setErrorHandler( new ExceptionErrorHandler() );\n\n\t\t// factor in elements' style attributes\n\t\tnew NodeTraversor( new NodeVisitor() {\n\t\t\t@Override\n\t\t\tpublic void head( Node node, int depth ) {\n\t\t\t\tif ( node instanceof Element && node.hasAttr( \"style\" ) ) {\n\t\t\t\t\t// parse the CSS into a CSSStyleDeclaration\n\t\t\t\t\tInputSource input = new InputSource( new StringReader( node.attr( \"style\" ) ) );\n\t\t\t\t\tCSSStyleDeclaration declaration = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdeclaration = inlineParser.parseStyleDeclaration( input );\n\t\t\t\t\t} catch ( IOException e ) {\n\t\t\t\t\t\t// again, this should never happen, cuz we're just reading from a string\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tnode.removeAttr( \"style\" );\n\t\t\t\t\telementMatches.put( ((Element) node), new InlineStyleApplication( declaration ) );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void tail( Node node, int depth ) {}\n\t\t}).traverse( htmlDocument.body() );\n\n\t\t// compute which rules match which elements\n\t\tCSSRuleList rules = styleSheet.getCssRules();\n\t\tfor ( int i = 0; i < rules.getLength(); i++ ) {\n\t\t\tif ( rules.item( i ) instanceof CSSStyleRule) {\n\t\t\t\tCSSStyleRuleImpl rule = (CSSStyleRuleImpl) rules.item( i );\n\t\t\t\t// for each selector in the rule... (separated by commas)\n\t\t\t\tfor ( int j = 0; j < rule.getSelectors().getLength(); j++ ) {\n\t\t\t\t\tSelector selector = rule.getSelectors().item( j );\n\t\t\t\t\tElements matches = null;\n\t\t\t\t\tmatches = htmlDocument.select( selector.toString() );\n\t\t\t\t\t// for each matched element....\n\t\t\t\t\tfor ( Element match: matches ) {\n\t\t\t\t\t\telementMatches.put( match, new RuleStyleApplication( selector, rule.getStyle() ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tMap<Element, CSSStyleDeclaration> inlinedStyles = new HashMap<Element, CSSStyleDeclaration>();\n\n\t\t// calculate overrides\n\t\tfor ( Element element : elementMatches.keySet() ) {\n\t\t\tCSSStyleDeclaration properties = new CSSStyleDeclarationImpl();\n\t\t\tList<StyleApplication> matchedRules = new ArrayList<StyleApplication>( elementMatches.get( element ) );\n\t\t\tCollections.sort( matchedRules, orderBySpecificity );\n\t\t\tfor ( StyleApplication matchedRule : matchedRules ) {\n\t\t\t\tCSSStyleDeclaration cssBlock = matchedRule.getCssBlock();\n\t\t\t\tfor ( int i = 0; i < cssBlock.getLength(); i++ ) {\n\t\t\t\t\tString propertyKey = cssBlock.item( i );\n\t\t\t\t\tCSSValue propertyValue = cssBlock.getPropertyCSSValue( propertyKey );\n\t\t\t\t\t// TODO: !important\n\t\t\t\t\tproperties.setProperty( propertyKey, propertyValue.getCssText(), \"\" );\n\t\t\t\t}\n\t\t\t}\n\t\t\tinlinedStyles.put(element, properties);\n\t\t}\n\n\t\t// apply to DOM\n\t\tfor ( Map.Entry<Element, CSSStyleDeclaration> entry : inlinedStyles.entrySet() ) {\n\t\t\tentry.getKey().attr( \"style\", entry.getValue().getCssText() );\n\t\t}\n\n\t}",
"CommonProperties getProperties();",
"private void readStyles() {\n table.clearSelection();\n\n styles.getReadWriteLock().writeLock().lock();\n styles.clear();\n if (styleDir.getText().length() > 0) {\n addStyles(styleDir.getText(), true);\n }\n styles.getReadWriteLock().writeLock().unlock();\n\n selectLastUsed();\n }",
"@Override\n\t\tpublic AbstractCSSStyleSheet getSheet() {\n\t\t\tif (needsUpdate) {\n\t\t\t\tString type = getAttribute(\"type\");\n\t\t\t\tif (!\"text/css\".equalsIgnoreCase(type) && type.length() != 0) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tdefinedSheet = parseEmbeddedStyleSheet(definedSheet, getTextContent().trim(), getAttribute(\"title\"),\n\t\t\t\t\t\tgetAttribute(\"media\"), this);\n\t\t\t\tif (definedSheet != null) {\n\t\t\t\t\tneedsUpdate = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn definedSheet;\n\t\t}",
"public static void loadStyleSheet()\n {\n StyleManager.getInstance().addUserAgentStylesheet(ResourceLoader.loadComponent(USER_AGENT_STYLESHEET));\n }",
"private void initColours() {\n colourArray = Utilities.get2dResourceArray(getContext(), \"colour\");\n\n // A means to save colour configuration when screen is rotated between games.\n if (colourSet == null) {\n // Set new colour pairing.\n colourSet = new ColourSet();\n }\n\n // Set View colours\n mGameLoop.setColour(colourSet.primarySet);\n setToolbarColour(colourSet.primaryColourDark);\n mAltBackground.setBackgroundColor(colourSet.primaryColour);\n mTempToolbar.setBackgroundColor(colourSet.primaryColourDark);\n mFab.setBackgroundTintList(ColorStateList.valueOf(colourSet.secondaryColour));\n mWorldScore.setBackgroundColor(colourSet.getPrimaryColour(COLOUR_LOCATION_SCORE));\n }",
"private CommonConfigBean(){\n\t\tsuper();\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\tFile fXmlFile = new File(PathTool.getAbsolute(RELATIVE_FILE_PATH));\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\t\t\t\n\t\t\t//optional, but recommended\n\t\t\t//read this - http://stackoverflow.com/questions/13786607/normalization-in-dom-parsing-with-java-how-does-it-work\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\tSystem.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n\t NodeList nList = doc.getElementsByTagName(\"param\");\n\t params = new HashMap<>();\n\t for (int temp = 0; temp < nList.getLength(); temp++) {\n\t Node nodo = nList.item(temp);\n\t System.out.println(\"Elemento:\" + nodo.getNodeName());\n\t if (nodo.getNodeType() == Node.ELEMENT_NODE) {\n\t Element element = (Element) nodo;\n\t params.put(element.getAttribute(\"name\"), element.getAttribute(\"value\"));\n\t }\n\t }\n\t\t\t\n\t\t\t\n\t\t } catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t }\n\t}",
"String getValueOfCssProperty(String propertyName);",
"public List<Element> getHeadElements() {\n if (headElements == null) { \n // Get the head elements from the super implementation \n headElements = super.getHeadElements(); \n\n CssImport cssImport = new CssImport(\"/css/admin.css\"); \n headElements.add(cssImport); \n } \n return headElements; \n }",
"public void getElementStats() throws IOException {\n\t\tfor(int i=1; i<=12; i++) {\n\t\tString styleBody = OR.modelStyle + i + OR.modelStyelNum;\n\t\tWebElement style = Net.findElement(By.xpath(styleBody));\n\t\tDimension styleSize = style.getSize();\n\t\tSystem.out.println(\"Size of the webelement on page: \" + styleSize);\n\t\tPoint local = style.getLocation();\n\t\tSystem.out.println(\"Location of webelement on page: \" + local);\n\t\tImageUtil img = new ImageUtil();\n\t\timg.getElementImage(Net, style, i+\". \" + \"StyleBody\");\n\t\t\n\t\t\n\t\t}\t\n\t}",
"protected Stylesheet stylesheet () {\n return SimpleStyles.newSheet();\n }",
"public void style() {\n\n\t\tfinal ArrayList<String> cssClasses = new ArrayList<>();\n\t\tif (!this.styles.isEmpty()) {\n\t\t\tthis.styles.forEach(s -> {\n\t\t\t\tcssClasses.add(s.getCss());\n\t\t\t});\n\t\t}\n\n\t\t// replace the cell styles with the new set\n\t\tthis.add(AttributeModifier.replace(\"class\", StringUtils.join(cssClasses, \" \")));\n\t}",
"protected static Style getStyle(XMLDataObject xml) {\n\n Style style = new Style();\n style.setName(xml.getString(\"@name\"));\n style.setValue(getCssString(xml));\n\n return style;\n }",
"private ECSDefaults ()\n {\n try\n { \n // if the ecs.properties system property is set, use that\n String props=System.getProperty(\"ecs.properties\");\n if (props==null)\n {\n resource = ResourceBundle.getBundle(\"org.apache.ecs.ecs\");\n } else {\n resource = new java.util.PropertyResourceBundle(new java.io.FileInputStream(props));\n }\n\n // set up variables\n filter_state = new Boolean(resource.getString(\"filter_state\")).booleanValue();\n filter_attribute_state = new Boolean(resource.getString(\"filter_attribute_state\")).booleanValue();\n attribute_equality_sign = resource.getString(\"attribute_equality_sign\").charAt(1);\n begin_start_modifier = resource.getString(\"begin_start_modifier\").charAt(1);\n end_start_modifier = resource.getString(\"end_start_modifier\").charAt(1);\n begin_end_modifier = resource.getString(\"begin_end_modifier\").charAt(1);\n end_end_modifier = resource.getString(\"end_end_modifier\").charAt(1);\n attribute_quote_char = resource.getString(\"attribute_quote_char\").charAt(0);\n attribute_quote = new Boolean(resource.getString(\"attribute_quote\")).booleanValue();\n end_element = new Boolean(resource.getString(\"end_element\")).booleanValue();\n codeset = resource.getString(\"codeset\");\n position = Integer.parseInt(resource.getString(\"position\"));\n case_type = Integer.parseInt(resource.getString(\"case_type\"));\n start_tag = resource.getString(\"start_tag\").charAt(0);\n end_tag = resource.getString(\"end_tag\").charAt(0);\n pretty_print = new Boolean(resource.getString(\"pretty_print\")).booleanValue();\n\n }\n catch(Exception e)\n {\n System.err.println(\"The following error preventing \" + \n \"ecs.properties being loaded:\");\n System.err.println(e.toString());\n }\n }",
"private void setupAllSpecialLayoutViewsToChangeBackgroundColor(){\n allSpecialLayoutViewsToChangeBackgroundColor = new ArrayList<>();\n allSpecialLayoutViewsToChangeBackgroundColor.add(radianDataNegSym);\n allSpecialLayoutViewsToChangeBackgroundColor.add(radianDivBar);\n allSpecialLayoutViewsToChangeBackgroundColor.add(cosDataNegSym);\n allSpecialLayoutViewsToChangeBackgroundColor.add(cosineDivBar);\n allSpecialLayoutViewsToChangeBackgroundColor.add(sinDataNegSym);\n allSpecialLayoutViewsToChangeBackgroundColor.add(sineDivBar);\n allSpecialLayoutViewsToChangeBackgroundColor.add(tanDataNegSym);\n allSpecialLayoutViewsToChangeBackgroundColor.add(tangentDivBar);\n }",
"public void initProperties() {\n propAssetClass = addProperty(AssetComponent.PROP_CLASS, \"MilitaryOrganization\");\n propAssetClass.setToolTip(PROP_CLASS_DESC);\n propUniqueID = addProperty(AssetComponent.PROP_UID, \"UTC/RTOrg\");\n propUniqueID.setToolTip(PROP_UID_DESC);\n propUnitName = addProperty(AssetComponent.PROP_UNITNAME, \"\");\n propUnitName.setToolTip(PROP_UNITNAME_DESC);\n propUIC = addProperty(PROP_UIC, \"\");\n propUIC.setToolTip(PROP_UIC_DESC);\n }",
"public interface LibraryConstant {\n\n public interface LanguageConstant {\n\n public static String JAVA=\"JAVA\";\n public static String C=\"C\";\n public static String CPP=\"C++\";\n }\n\n public interface StyleConstant {\n\n //pre-defined Styles\n\n public static final String NORMAL=\"NORMAL\";\n public static final String BOLD=\"BOLD\";\n public static final String ITALIC=\"ITALIC\";\n public static final String UNDERLINE=\"UNDERLINE\";\n public static final String SUPERSCRIPT=\"SUPERSCRIPT\";\n public static final String SUBSCRIPT=\"SUBSCRIPT\";\n\n\n }\n}",
"private void setCss(String cssFile) {\n _scene.getStylesheets().clear();\n _scene.getStylesheets().add(getClass().getResource(cssFile).toExternalForm());\n }",
"private void defaultStyle() {\n\t\t//idField.setStyle(\"\");\n\t\tproductNameField.setStyle(\"\");\n\t\tinvField.setStyle(\"\");\n\t\tpriceField.setStyle(\"\");\n\t\tmaxField.setStyle(\"\");\n\t\tminField.setStyle(\"\");\n\t}",
"public CSGStyle(AppTemplate initApp) {\r\n // KEEP THIS FOR LATER\r\n app = initApp;\r\n\r\n // LET'S USE THE DEFAULT STYLESHEET SETUP\r\n super.initStylesheet(app);\r\n\r\n // INIT THE STYLE FOR THE FILE TOOLBAR\r\n app.getGUI().initFileToolbarStyle();\r\n\r\n // AND NOW OUR WORKSPACE STYLE\r\n initTAWorkspaceStyle();\r\n }",
"public PanelCssManager(ClientDatabaseProxy db) {\n db_ = db;\n initComponents();\n modelServerList_ = new DefaultListModel();\n updateServerList();\n }",
"public DefaultTheme() {\r\n //sets up alpha values for a nicer look\r\n p1.a = 0.85f;\r\n p2.a = 0.85f;\r\n p3.a = 0.85f;\r\n\r\n s1.a = 0.85f;\r\n s2.a = 0.85f;\r\n s3.a = 0.85f;\r\n }",
"public Date getCssj() {\n return cssj;\n }",
"public String getStyles() {\n return getState().styles;\n }",
"private void initCodeStyling() {\n\t\tboolean codeStyling = Boolean.valueOf(preferences.getProperty(\"codeStyling.enable\")).booleanValue();\n\t\tHashMap<String, Color> colorsMap = new HashMap<String, Color>();\n\t\tVector<String> keywords = null;\n\n\t\t// perform this only if code styling syntax coloring is enabled\n\t\tif (codeStyling) {\n\t\t\tint r = 0, g = 0, b = 0;\n\n\t\t\t// load colors from preferences file and store them in the\n\t\t\t// colors map\n\t\t\tr = Integer.parseInt(preferences.getProperty(\"normal.color.r\"));\n\t\t\tg = Integer.parseInt(preferences.getProperty(\"normal.color.g\"));\n\t\t\tb = Integer.parseInt(preferences.getProperty(\"normal.color.b\"));\n\t\t\tcolorsMap.put(\"normalColor\", new Color(r, g, b));\n\t\t\tr = Integer.parseInt(preferences.getProperty(\"numbers.color.r\"));\n\t\t\tg = Integer.parseInt(preferences.getProperty(\"numbers.color.g\"));\n\t\t\tb = Integer.parseInt(preferences.getProperty(\"numbers.color.b\"));\n\t\t\tcolorsMap.put(\"numbersColor\", new Color(r, g, b));\n\t\t\tr = Integer.parseInt(preferences.getProperty(\"string.color.r\"));\n\t\t\tg = Integer.parseInt(preferences.getProperty(\"string.color.g\"));\n\t\t\tb = Integer.parseInt(preferences.getProperty(\"string.color.b\"));\n\t\t\tcolorsMap.put(\"stringColor\", new Color(r, g, b));\n\t\t\tr = Integer.parseInt(preferences.getProperty(\"keywords.color.r\"));\n\t\t\tg = Integer.parseInt(preferences.getProperty(\"keywords.color.g\"));\n\t\t\tb = Integer.parseInt(preferences.getProperty(\"keywords.color.b\"));\n\t\t\tcolorsMap.put(\"keywordsColor\", new Color(r, g, b));\n\t\t\tr = Integer.parseInt(preferences.getProperty(\"comments.color.r\"));\n\t\t\tg = Integer.parseInt(preferences.getProperty(\"comments.color.g\"));\n\t\t\tb = Integer.parseInt(preferences.getProperty(\"comments.color.b\"));\n\t\t\tcolorsMap.put(\"commentsColor\", new Color(r, g, b));\n\t\t\tr = Integer.parseInt(preferences.getProperty(\"braceMatching.color.r\"));\n\t\t\tg = Integer.parseInt(preferences.getProperty(\"braceMatching.color.g\"));\n\t\t\tb = Integer.parseInt(preferences.getProperty(\"braceMatching.color.b\"));\n\t\t\tcolorsMap.put(\"braceMatchingColor\", new Color(r, g, b));\n\n\t\t\t// keywords are specified in the preferences file as comma\n\t\t\t// separated, so after getting them from the preferences file\n\t\t\t// the property is tokenized and added to a keywords vector\n\t\t\tkeywords = new Vector<String>();\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(preferences.getProperty(\"keywords\"), \";\");\n\t\t\twhile (tokenizer.hasMoreTokens())\n\t\t\t\tkeywords.addElement(tokenizer.nextToken());\n\n\t\t\tcodeDocument = new CodeDocument(codeStyling, colorsMap, keywords);\n\t\t\ttextPane.setDocument(codeDocument);\n\t\t}\n\t}",
"public PXStylesheetParser() {\n this(null);\n }",
"@Override\n\tpublic DocumentCSSStyleSheet getStyleSheet() {\n\t\tif (mergedStyleSheet == null) {\n\t\t\tmergeStyleSheets();\n\t\t}\n\t\treturn mergedStyleSheet;\n\t}",
"protected Map<String, Object> getSharedVariables(VitroRequest vreq) {\n \n Map<String, Object> map = new HashMap<String, Object>();\n \n Portal portal = vreq.getPortal();\n // Ideally, templates wouldn't need portal id. Currently used as a hidden input value\n // in the site search box, so needed for now.\n map.put(\"portalId\", portal.getPortalId());\n \n String siteName = portal.getAppName();\n map.put(\"siteName\", siteName);\n map.put(\"title\", getTitle(siteName));\n \n String themeDir = getThemeDir(portal);\n UrlBuilder urlBuilder = new UrlBuilder(portal);\n \n map.put(\"urls\", getUrls(themeDir, urlBuilder)); \n \n // This value will be available to any template as a path for adding a new stylesheet.\n // It does not contain the context path, because the methods to generate the href\n // attribute from the string passed in by the template automatically add the context path.\n map.put(\"themeStylesheetDir\", themeDir + \"/css\");\n \n map.put(\"stylesheets\", getStylesheetList(themeDir));\n map.put(\"scripts\", getScriptList(themeDir));\n \n addDirectives(map);\n \n return map;\n }",
"public CssBorderWidth() {\n }",
"public static XSSFCellStyle baseStyle(XSSFWorkbook wb) {\n\t\t// Define color palette\n\t\tcmBg = new XSSFColor(new java.awt.Color(33, 150, 243, 0)); // #2196F3\n\t\ttdBg = new XSSFColor(new java.awt.Color(139, 195, 74, 0)); // #8BC34A\n\t\ttpBg = new XSSFColor(new java.awt.Color(255, 193, 7, 0)); // #FFC107\n\t\tccEtBg = new XSSFColor(new java.awt.Color(244, 67, 54, 0)); // #F44336\n\t\tsiBg = new XSSFColor(new java.awt.Color(0, 117, 169, 0));\n\t\tasrBg = new XSSFColor(new java.awt.Color(50, 117, 108, 0));\n\n\t\tdateBg = new XSSFColor(new java.awt.Color(189, 189, 189, 0)); // #BDBDBD\n\t\tweekNumBg = new XSSFColor(new java.awt.Color(224, 224, 224, 0)); // #E0E0E0\n\t\tholidaysBg = new XSSFColor(new java.awt.Color(255, 87, 34, 0)); // #FF5722\n\n\t\t// create font\n\t\tFont font = wb.createFont();\n\t\tfont.setFontHeightInPoints((short) 11);\n\t\tfont.setFontName(\"Arial\");\n\t\tfont.setColor(IndexedColors.BLACK.getIndex());\n\t\tfont.setBold(false);\n\t\tfont.setItalic(false);\n\n\t\t// Create cell style\n\t\tXSSFCellStyle cellStyle = wb.createCellStyle();\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setVerticalAlignment(VerticalAlignment.CENTER);\n\t\tcellStyle.setWrapText(true); // Set wordwrap\n\n\t\t// Setting font to style\n\t\tcellStyle.setFont(font);\n\n\t\treturn cellStyle;\n\t}",
"private void initDefaults() {\n _nodeFadeSourceColor = _defNodeFadeSourceColor;\n _nodeFadeDestinationColor = _defNodeFadeDestinationColor;\n\n _nodeStrokeSourceColor = _defNodeStrokeSourceColor;\n _nodeStrokeDestinationColor = _defNodeStrokeDestinationColor;\n\n _nodeStrokeSourceWidth = _defNodeStrokeSourceWidth;\n _nodeStrokeDestinationWidth = _defNodeStrokeDestinationWidth;\n\n _supportEdgeFadeSourceColor = _defSupportEdgeFadeSourceColor;\n _supportEdgeFadeDestinationColor = _defSupportEdgeFadeDestinationColor;\n\n _refuteEdgeFadeSourceColor = _defRefuteEdgeFadeSourceColor;\n _refuteEdgeFadeDestinationColor = _defRefuteEdgeFadeDestinationColor;\n\n _edgeStrokeSourceWidth = _defEdgeStrokeSourceWidth;\n _edgeStrokeDestinationWidth = _defEdgeStrokeDestinationWidth;\n\n _curvedLines = _defCurvedLines;\n\n _manualBackgroundColor = _defManualBackgroundColor;\n\n _realTimeSliderResponse = _defRealTimeSliderResponse;\n }"
] | [
"0.69603217",
"0.611482",
"0.6075924",
"0.59903866",
"0.5902254",
"0.58850676",
"0.5879329",
"0.5877936",
"0.5844037",
"0.58318",
"0.5816516",
"0.5744936",
"0.5710376",
"0.56645536",
"0.5663728",
"0.56516695",
"0.5613743",
"0.55166584",
"0.5504591",
"0.54129076",
"0.53427505",
"0.53179914",
"0.53056806",
"0.5210944",
"0.5206884",
"0.5163419",
"0.51446605",
"0.51200825",
"0.51105464",
"0.51021224",
"0.5087569",
"0.5075267",
"0.5074533",
"0.5061731",
"0.50567394",
"0.50195587",
"0.50052625",
"0.5003749",
"0.49729377",
"0.49591812",
"0.49567118",
"0.4955222",
"0.4944295",
"0.4940493",
"0.49388263",
"0.49270844",
"0.4926198",
"0.49221927",
"0.4917726",
"0.49093246",
"0.49059016",
"0.48677063",
"0.48648334",
"0.48624045",
"0.486042",
"0.48553804",
"0.4849339",
"0.48477998",
"0.484279",
"0.4835675",
"0.48034132",
"0.48031333",
"0.47941622",
"0.47791538",
"0.4776747",
"0.4757502",
"0.47358978",
"0.47344032",
"0.47107965",
"0.46751434",
"0.4670917",
"0.46630576",
"0.46620414",
"0.4661677",
"0.46604055",
"0.46539712",
"0.46473625",
"0.46472165",
"0.46432307",
"0.4639208",
"0.46387613",
"0.46363905",
"0.4634527",
"0.46269095",
"0.4597133",
"0.45875257",
"0.45575708",
"0.4545568",
"0.4534398",
"0.4533905",
"0.451872",
"0.45131573",
"0.45113897",
"0.45109093",
"0.45101982",
"0.45041534",
"0.45004055",
"0.4485515",
"0.4472912",
"0.4469918"
] | 0.64357954 | 1 |
Test will be executed on all different event store implementations. | @LabeledParameterized.Parameters
public static List<Object[]> parameters() {
List<Object[]> modes = Lists.newArrayList();
for (TypeOfEventStore typeOfEventStore : TypeOfEventStore.values()) {
modes.add(Objects.o(typeOfEventStore));
}
return modes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testNear()\n {\n String sName = \"near-client-listener\";\n generateEvents(sName);\n checkEvents(true, false);\n }",
"@Test\n public void testNearFront()\n {\n String sName = \"near-front-listener\";\n generateEvents(sName);\n checkEvents(true, false);\n }",
"@Test\n\tpublic void sholdHaveEvents(){\n\t\tcalendar.addEvent(new Event(\"event0\", date0, date1, true),user);\n\t\tcalendar.addEvent(new Event(\"event0\", date1, date1, false), user);\n\t\tassertEquals(calendar.getAllEvents(user).size(), 2);\n\t\t\n\t}",
"public void testCustomEventListener() throws Exception\n {\n checkEventTypeRegistration(CUSTOM_EVENT_BUILDER, \"\");\n }",
"@Test\n public void testAddEventListener() {\n List<SimulatorEventListener> eventListeners = eventDispatcher.getSimulatorEventListeners();\n assertTrue(eventListeners.size() == 0);\n SimulatorEventListener listener = new SimulatorEventListener() {\n\n\n public void onNewMessage(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onMatchingScenario(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseBuilt(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseSent(Exchange exchange, Conversation conversation) {\n\n }\n };\n eventDispatcher.addSimulatorEventListener(listener);\n assertTrue(eventListeners.size() == 1);\n }",
"@Ignore(\"QuantityEvent query\")\r\n @Test\r\n public void testStoreInventory() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:idpat:sgtin:0614141.107340.*\";\r\n XmlQuantityEventType event = dbHelper.getQuantityEventByEpcClass(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(STORE_INVENTORY_XML);\r\n\r\n event = dbHelper.getQuantityEventByEpcClass(epcToCheck);\r\n Assert.assertNotNull(event);\r\n }",
"@Test\n public void testNearBack()\n {\n String sName = \"near-back-listener\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"@Override\n\tpublic void testEngine() {\n\t\t\n\t}",
"@Test\n public void eventFilterTest() {\n // TODO: test eventFilter\n }",
"private void setUpEventManager() {\n // Register the actionEventListener1 to MockUndoableAction class\n eventManager.addActionEventListener(actionEventListener1, MockAddClassDiagramAction.class);\n // Register the actionEventListener2 to all Action class\n eventManager.addActionEventListener(actionEventListener2);\n // Register the actionEventListener3 to simple Action Class\n eventManager.addActionEventListener(actionEventListener3, Action.class);\n\n // Register the validators to UndoableAction.class\n eventManager.addEventValidator(successEventValidator, UndoableAction.class);\n // Register the validators to all Action class\n eventManager.addEventValidator(modifiedEventValidator);\n // Register the validators to simple Action Class\n eventManager.addEventValidator(deniedEventValidator, Action.class);\n\n // Register the gUIEventListener1 to 'RedoChangesEvent'\n eventManager.addGUIEventListener(gUIEventListener1, RedoChangesEvent.class);\n // Register the gUIEventListener2 to all EventObject\n eventManager.addGUIEventListener(gUIEventListener2);\n // Register the gUIEventListener3 to 'UndoChangesEvent'\n eventManager.addGUIEventListener(gUIEventListener3, UndoChangesEvent.class);\n }",
"@Test\n public void testOrgApacheFelixEventadminImplEventAdminProperties() {\n // TODO: test OrgApacheFelixEventadminImplEventAdminProperties\n }",
"@Test\n public void testDistBoth()\n {\n generateEvents(\"dist-both-test\");\n checkEvents(true, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"@Test\n public void testGetInstance() {\n assertNotNull(eventDispatcher);\n }",
"@Test\n public void testFindAll_Event_Job() {\n // more or less tested in testFindEntity_Event_Job()\n }",
"@Test\n public void testOverflowClient()\n {\n String sName = \"local-overflow-client\";\n generateEvents(sName);\n checkEvents(true, false);\n }",
"@Test(timeout = 10000)\n public void testEvents() throws Exception {\n EventReader reader = new EventReader(new DataInputStream(new ByteArrayInputStream(getEvents())));\n HistoryEvent e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(JOB_PRIORITY_CHANGED));\n Assert.assertEquals(\"ID\", getJobid().toString());\n e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(JOB_STATUS_CHANGED));\n Assert.assertEquals(\"ID\", getJobid().toString());\n e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(TASK_UPDATED));\n Assert.assertEquals(\"ID\", getTaskid().toString());\n e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(REDUCE_ATTEMPT_KILLED));\n Assert.assertEquals(TestEvents.taskId, getTaskid().toString());\n e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(JOB_KILLED));\n Assert.assertEquals(\"ID\", getJobid().toString());\n e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(REDUCE_ATTEMPT_STARTED));\n Assert.assertEquals(TestEvents.taskId, getTaskid().toString());\n e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(REDUCE_ATTEMPT_FINISHED));\n Assert.assertEquals(TestEvents.taskId, getTaskid().toString());\n e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(REDUCE_ATTEMPT_KILLED));\n Assert.assertEquals(TestEvents.taskId, getTaskid().toString());\n e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(REDUCE_ATTEMPT_KILLED));\n Assert.assertEquals(TestEvents.taskId, getTaskid().toString());\n e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(REDUCE_ATTEMPT_STARTED));\n Assert.assertEquals(TestEvents.taskId, getTaskid().toString());\n e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(REDUCE_ATTEMPT_FINISHED));\n Assert.assertEquals(TestEvents.taskId, getTaskid().toString());\n e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(REDUCE_ATTEMPT_KILLED));\n Assert.assertEquals(TestEvents.taskId, getTaskid().toString());\n e = reader.getNextEvent();\n Assert.assertTrue(e.getEventType().equals(REDUCE_ATTEMPT_KILLED));\n Assert.assertEquals(TestEvents.taskId, getTaskid().toString());\n reader.close();\n }",
"@Test\n public void testLocalClient()\n {\n generateEvents(\"local-client\");\n checkEvents(true, false);\n }",
"public void testEventAdditionalTypes() throws Exception\n {\n checkEventTypeRegistration(EVENT_TYPE_BUILDER,\n \"testTree -> MOUSE, testTree -> CHANGE\");\n }",
"@Test\n public void triggeredForCatalogItemTest() {\n // TODO: test triggeredForCatalogItem\n }",
"@Test\n public void testRwbmInternalBoth()\n {\n generateEvents(\"dist-rwbm-internal-both\");\n checkEvents(true, true);\n }",
"public void testEvent001() throws Exception {\n // clear all events in the eventfactory\n //EventFactory.clearEvents();\n //assertEquals(\"factory should not have any event\", 0, EventFactory.getEventSize());\n\n this.b.start();\n\n // expect emit of the following events:\n // org/osgi/service/web/DEPLOYING the web extender has spotted the web application bundle and is starting it.\n // org/osgi/service/web/DEPLOYED the web extender has finished starting the web application bundle. Formatted: Bullets and Numbering\n // wait a few seconds to make sure events are delivered.\n int count = 0;\n Event eventPrevious = null;\n Event eventCurrent = null;\n while(eventCurrent == null && count < WAITCOUNT) {\n eventCurrent = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw1\", \"org/osgi/service/web/DEPLOYED\");\n\t\t\tSleep.sleep(1000 * OSGiTestCaseProperties.getScaling());\n count++;\n }\n\n assertEquals(\"event factory size should be 2\", 2, EventFactory.getEventSize());\n eventPrevious = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw1\", \"org/osgi/service/web/DEPLOYING\");\n assertNotNull(eventPrevious);\n assertNotNull(eventCurrent);\n\n long startingTime = (Long)eventPrevious.getProperty(EventConstants.TIMESTAMP);\n long startedTime = (Long)eventCurrent.getProperty(EventConstants.TIMESTAMP);\n\n assertEquals(\"org/osgi/service/web/DEPLOYING\", eventPrevious.getTopic());\n assertEquals(\"org.osgi.test.cases.webcontainer.tw1\", (String)eventPrevious.getProperty(EventConstants.BUNDLE_SYMBOLICNAME));\n assertEquals(this.b.getBundleId(), eventPrevious.getProperty(EventConstants.BUNDLE_ID));\n assertEquals(this.b, eventPrevious.getProperty(EventConstants.BUNDLE));\n assertEquals(this.b.getVersion(), eventPrevious.getProperty(EventConstants.BUNDLE_VERSION));\n assertEquals(this.b.getHeaders().get(\"Web-ContextPath\"), (String)eventPrevious.getProperty(\"context.path\"));\n assertNotNull(startingTime);\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE));\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE_ID));\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME));\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE_VERSION));\n\n assertEquals(\"org/osgi/service/web/DEPLOYED\", eventCurrent.getTopic());\n assertEquals(\"org.osgi.test.cases.webcontainer.tw1\", (String)eventCurrent.getProperty(EventConstants.BUNDLE_SYMBOLICNAME));\n assertEquals(this.b.getBundleId(), eventCurrent.getProperty(EventConstants.BUNDLE_ID));\n assertEquals(this.b, eventCurrent.getProperty(EventConstants.BUNDLE));\n assertEquals(this.b.getVersion(), eventCurrent.getProperty(EventConstants.BUNDLE_VERSION));\n assertEquals(this.b.getHeaders().get(\"Web-ContextPath\"), (String)eventPrevious.getProperty(\"context.path\"));\n assertNotNull(startedTime);\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE));\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE_ID));\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME));\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE_VERSION));\n\n // the extender information should be the same\n\n assertTrue(startedTime >= startingTime);\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE), eventCurrent.getProperty(EXTENDER_BUNDLE));\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE_ID), eventCurrent.getProperty(EXTENDER_BUNDLE_ID));\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME), eventCurrent.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME));\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE_VERSION), eventCurrent.getProperty(EXTENDER_BUNDLE_VERSION));\n\n eventPrevious = null;\n eventCurrent = null;\n\n\n this.b.stop();\n // emit the following events:\n // org/osgi/service/web/UNDEPLOYING the web extender is stopping the web application bundle.\n // org/osgi/service/web/UNDEPLOYED a web extender has stopped the web application bundle.\n // wait a few seconds to make sure events are delivered.\n count = 0;\n while(eventCurrent == null && count < WAITCOUNT) {\n \teventCurrent = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw1\", \"org/osgi/service/web/UNDEPLOYED\");\n\t\t\tSleep.sleep(1000 * OSGiTestCaseProperties.getScaling());\n count++;\n }\n eventPrevious = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw1\", \"org/osgi/service/web/UNDEPLOYING\");\n assertNotNull(eventPrevious);\n assertNotNull(eventCurrent);\n assertEquals(\"org/osgi/service/web/UNDEPLOYING\", eventPrevious.getTopic());\n assertEquals(\"org/osgi/service/web/UNDEPLOYED\", eventCurrent.getTopic());\n assertTrue((Long)eventPrevious.getProperty(EventConstants.TIMESTAMP) >= startedTime);\n assertTrue((Long)eventCurrent.getProperty(EventConstants.TIMESTAMP) >= (Long)eventPrevious.getProperty(EventConstants.TIMESTAMP));\n }",
"@Test\n public void testDispatchEvent(){\n\n final SampleClass sample = new SampleClass();\n\n assertEquals(\"\", sample.getName());\n\n eventDispatcher.addSimulatorEventListener(new SimulatorEventListener(){\n\n public void onNewMessage(Exchange exchange, Conversation conversation) {\n sample.setName(\"Modified\");\n }\n\n public void onMatchingScenario(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseBuilt(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseSent(Exchange exchange, Conversation conversation) {\n \n }\n });\n\n eventDispatcher.dispatchEvent(SimulatorEventType.NEW_MESSAGE, null, null);\n\n assertEquals(\"Modified\",sample.getName());\n }",
"@Test\n public void testDistBm()\n {\n generateEvents(\"dist-bm-test\");\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"@Test public void shouldDoSomething() {\n manager.initialize();\n\n // validate that addListener was called\n verify(database).addListener(any(ArticleListener.class));\n }",
"@Test\n public void testDistOverflowFront()\n {\n String sName = \"dist-overflow-front\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"@Test\n public void testRwbmBoth()\n {\n generateEvents(\"dist-rwbm-both\");\n checkEvents(true, true);\n }",
"public void testEventManager_Accuracy() {\n assertNotNull(\"Test method for 'EventManager(ActionManager)' failed.\", eventManager);\n }",
"@Test\r\n public void testEvent() {\n Event event = new Event();\r\n }",
"@Test\n public void testSingleEvent() throws Exception {\n String processId = \"test\";\n deploy(new ProcessDefinition(processId, Arrays.<AbstractElement>asList(\n new StartEvent(\"start\"),\n new SequenceFlow(\"f1\", \"start\", \"gw1\"),\n new InclusiveGateway(\"gw1\"),\n new SequenceFlow(\"f2\", \"gw1\", \"ev\"),\n new IntermediateCatchEvent(\"ev\", \"ev\"),\n new SequenceFlow(\"f3\", \"ev\", \"gw2\"),\n new InclusiveGateway(\"gw2\"),\n new SequenceFlow(\"f4\", \"gw2\", \"end\"),\n new EndEvent(\"end\")\n )));\n\n // ---\n\n String key = UUID.randomUUID().toString();\n getEngine().start(key, processId, null);\n\n // ---\n\n getEngine().resume(key, \"ev\", null);\n\n // ---\n\n assertActivations(key, processId,\n \"start\",\n \"f1\",\n \"gw1\",\n \"f2\",\n \"ev\",\n \"f3\",\n \"gw2\",\n \"f4\",\n \"end\");\n assertNoMoreActivations();\n }",
"@Test\n\tvoid testOnAddToOrder() {\n\t}",
"public interface StoreManager {\n ConfigurationStore getConfigurationStore();\n EventStore getEventStore();\n}",
"@Test\n public void testReplicatedBoth()\n {\n generateEvents(\"repl-both-test\");\n checkEvents(true, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"@Test\n public void launchesEventhandlerUpdatelastmodificationTest() {\n // TODO: test launchesEventhandlerUpdatelastmodification\n }",
"@Test\n\tpublic void testSaveEvent() {\n\t\tEvent em = new Event();\n\t\tem.setDate(new Date());\n\t\tem.setName(\"JohnDeere Event13\");\n\t\tem.setTitle(\"No Title\");\n\t\tfor(int i=0;i<10;i++){\n\t\t\t/*Event e = new Event();\n\t\t\te.setDate(new Date());\n\t\t\te.setName(\"name\"+i);\n\t\t\te.setTitle(\"tile\"+i);\n\t\t\te.getEventList().add(em);\n\t\t\tem.getEventList().add(e);*/\n\t\t\tPeople p = new People();\n\t\t\tp.setName(\"Name\"+i);\n\t\t\tp.getEventList().add(em);\n\t\t\tem.getPeopleList().add(p);\n//\t\t\tpList.add(p);\n\t\t\t\n\t\t}\n//\t\tem.setPeopleList(pList);\n//\t\teventService.insert(em);\n\t\ter.save(em);\n\t\t// fail(\"Not yet implemented\");\n\t}",
"@Test\n public void testDistOverflowBack()\n {\n String sName = \"dist-overflow-back\";\n generateTwoEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"@Test\n public void testLocalBm()\n {\n generateEvents(\"local-bm\");\n checkEvents(false, true);\n\n }",
"@Override\r\n @Test(expected = UnsupportedOperationException.class)\r\n public void testPutWithEventPublisher() {\n super.testPutWithEventPublisher();\r\n }",
"@Test\n public void testDistClient()\n {\n generateEvents(\"dist-client-test\");\n checkEvents(true, false);\n }",
"@Test\n void showStoreHistorySuccess() {\n Integer productID1 = store.getProductID(\"computer\");\n tradingSystem.AddProductToCart(EconnID,storeID, productID1,5);\n tradingSystem.subscriberPurchase(EuserId, EconnID, \"123456\",\"4\",\"2022\",\"123\",\"123456\",\"Rager\",\"Beer Sheva\",\"Israel\",\"123\");\n List<DummyShoppingHistory> list = store.ShowStoreHistory();\n assertEquals(list.size(), 1);\n assertTrue(list.get(0).getProducts().get(0).getProductName().equals(\"computer\"));\n }",
"@BeforeEach\r\n\tvoid setUp() throws Exception {\r\n\t\t\r\n\t\tprice=new Price(990.0, 1760.0);\r\n\t\tclassification= new Classification(\"Sport\", \"Tennis\");\r\n\t\tevent= new Event(\"Abierto\", \"17AZvbG62X1NsqR\", \"https://www.ticketmaster.com.mx/abierto-mexicano-de-tenis-miercoles-acapulco-guerrero-03-17-2021/event/140058FF8A8F176F\",\"2021-03-17\" , \"18:00:00\",classification , price);\r\n\t\tevent1= new Event(\"Abierto\", \"17AZvbG62X1NsqR\", \"https://www.ticketmaster.com.mx/abierto-mexicano-de-tenis-miercoles-acapulco-guerrero-03-17-2021/event/140058FF8A8F176F\",\"2021-03-23\" , \"18:00:00\",classification , price);\r\n\t\tevents.set(0, event);\r\n\t\tevents.set(1, event1);\r\n\t\tStato = new State(\"Monterrey\", 403, events );\r\n\t}",
"public void testHandleActionEvent_UndoChangesEvent_Accuracy()\n throws Exception {\n setUpEventManager();\n\n UndoChangesEvent undoChangesEvent = new UndoChangesEvent(undoableAction2, new String());\n\n // Handle the event, actionEventListener1 and actionEventListener2 should be notified\n eventManager.handleActionEvent(undoChangesEvent);\n\n // 'undoableAction1' should be handled\n Pair<UndoChangesEvent, UndoableAction> performRecord\n = new Pair<UndoChangesEvent, UndoableAction>(undoChangesEvent, undoableAction1);\n // actionEventListener1 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getUndoPerformedRecords().contains(performRecord));\n // actionEventListener2 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getUndoPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getUndoPerformedRecords().contains(performRecord));\n\n // 'undoableAction2' should also be handled\n performRecord = new Pair<UndoChangesEvent, UndoableAction>(undoChangesEvent, undoableAction2);\n // actionEventListener1 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getUndoPerformedRecords().contains(performRecord));\n // actionEventListener2 should be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getUndoPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getUndoPerformedRecords().contains(performRecord));\n\n // 'undoableAction3' should not be handled\n performRecord = new Pair<UndoChangesEvent, UndoableAction>(undoChangesEvent, undoableAction3);\n // actionEventListener1 should be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getUndoPerformedRecords().contains(performRecord));\n // actionEventListener2 should be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getUndoPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getUndoPerformedRecords().contains(performRecord));\n }",
"public void testHandleActionEvent_RedoChangesEvent_Accuracy()\n throws Exception {\n setUpEventManager();\n actionManager.undoActions(undoableAction1);\n\n RedoChangesEvent redoChangesEvent = new RedoChangesEvent(undoableAction2, new String());\n //actionManager.undoActions(undoableAction3);\n // Handle the event, actionEventListener1 and actionEventListener2 should be notified\n eventManager.handleActionEvent(redoChangesEvent);\n\n // 'undoableAction1' should be handled\n Pair<RedoChangesEvent, UndoableAction> performRecord\n = new Pair<RedoChangesEvent, UndoableAction>(redoChangesEvent, undoableAction1);\n // actionEventListener1 should not be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getRedoPerformedRecords().contains(performRecord));\n // actionEventListener2 should be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getRedoPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getRedoPerformedRecords().contains(performRecord));\n\n // 'undoableAction2' should also be handled\n performRecord = new Pair<RedoChangesEvent, UndoableAction>(redoChangesEvent, undoableAction2);\n // actionEventListener1 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getRedoPerformedRecords().contains(performRecord));\n // actionEventListener2 should be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getRedoPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getRedoPerformedRecords().contains(performRecord));\n\n // 'undoableAction3' should not be handled\n performRecord = new Pair<RedoChangesEvent, UndoableAction>(redoChangesEvent, undoableAction3);\n // actionEventListener1 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getRedoPerformedRecords().contains(performRecord));\n // actionEventListener2 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getRedoPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getRedoPerformedRecords().contains(performRecord));\n }",
"@Override\n protected void setUp() throws Exception {\n super.setUp();\n events = new ArrayList<>();\n accounts = new ArrayList<>();\n attending = new ArrayList<>();\n\n for (int i = 0; i < NUM; i++) {\n Event e = makeRandomEvent();\n DBManager.addEvent(e);\n Event e2 = DBManager.getEventById(e.eid);\n assertTrue(e.equals(e2));\n events.add(e);\n\n Account a = makeRandomAccount();\n DBManager.addAccount(a);\n Account a2 = DBManager.getAccountById(a.getUid());\n assertTrue(a.equals(a2));\n accounts.add(a);\n }\n }",
"@Test\n public void testRwbmInternal()\n {\n generateEvents(\"dist-rwbm-internal-test\");\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"public void setEventStore(EventStore eventStore) {\n this.eventStore = eventStore;\n }",
"@Test\n public void testReplicatedBm()\n {\n generateEvents(\"repl-bm-test\");\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"@Test\r\n\tpublic void Event() {\n\t\tString message = \"\";\r\n\t\tList<Object[]> myList = new ArrayList<Object[]>();\r\n\r\n\t\tmyList.add(new Object[] { \"nn\", \"artist\", \"not null\" });\r\n\t\tmyList.add(new Object[] { \"s\", \"venue\", null });\r\n\t\tmyList.add(new Object[] { \"s\", \"date\", null });\r\n\t\tmyList.add(new Object[] { \"i\", \"attendees\", 0 });\r\n\t\tmyList.add(new Object[] { \"s\", \"description\", \"\" });\r\n\r\n\t\tfor (Object[] li : myList) {\r\n\t\t\tmessage = String.format(\"initial value for %s should be %s\\n\",\r\n\t\t\t\t\tli[1], li[2]);\r\n\t\t\ttry {\r\n\t\t\t\tswitch (li[0].toString()) {\r\n\t\t\t\tcase \"i\":\r\n\t\t\t\tcase \"s\":\r\n\t\t\t\t\tassertEquals(\r\n\t\t\t\t\t\t\tgetPrivateField(toTest, li[1].toString()).get(\r\n\t\t\t\t\t\t\t\t\ttoTest), li[2], message);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"nn\":\r\n\t\t\t\t\tassertNotNull(getPrivateField(toTest, li[1].toString())\r\n\t\t\t\t\t\t\t.get(toTest), message);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"@Test\n public void testComAdobeCqWcmLaunchesImplLaunchesEventHandlerProperties() {\n // TODO: test ComAdobeCqWcmLaunchesImplLaunchesEventHandlerProperties\n }",
"@Test\n public void testDistOverflow()\n {\n String sName = \"dist-overflow-top\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"public interface EventStore extends EventSource, EventSink {\n\n\t/**\n\t * Sorts the the events with the provided comparator.\n\t * \n\t * @param events\n\t * the events to be sorted\n\t * @return the sorted events\n\t */\n\tdefault List<Event> sort(List<Event> events, Comparator<Event> cmp) {\n\t\tCollections.sort(events, cmp);\n\t\treturn events;\n\t}\n\n}",
"@Test\n public void testAddEventConvinienceMethodWithCustomEventProvider() {\n calendar.setEventProvider(new ContainerEventProvider(new com.vaadin.v7.data.util.BeanItemContainer<BasicEvent>(BasicEvent.class)));\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n BasicEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n List<CalendarEvent> events = calendar.getEvents(start, end);\n Assert.assertEquals(1, events.size());\n Assert.assertEquals(events.get(0).getCaption(), event.getCaption());\n Assert.assertEquals(events.get(0).getDescription(), event.getDescription());\n Assert.assertEquals(getStart(), event.getStart());\n }",
"@Test\n public void dispatchToBaseTypes() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n final List<Object> objectHandlerReceived = new ArrayList<>();\n Object objectHandler = new Object() {\n @Subscriber\n public void onEvent(Object event) {\n objectHandlerReceived.add(event);\n }\n };\n\n final List<Comparable<?>> comparableHandlerReceived = new ArrayList<>();\n Object comparableHandler = new Object() {\n @Subscriber\n public void onEvent(Comparable<?> event) {\n comparableHandlerReceived.add(event);\n }\n };\n\n final List<CharSequence> charSequenceHandlerReceived = new ArrayList<>();\n Object charSequenceHandler = new Object() {\n @Subscriber\n public void onEvent(CharSequence event) {\n charSequenceHandlerReceived.add(event);\n }\n };\n\n final List<CharSequence> stringHandlerReceived = new ArrayList<>();\n Object stringHandler = new Object() {\n @Subscriber\n public void onEvent(String event) {\n stringHandlerReceived.add(event);\n }\n };\n eventBus.register(objectHandler);\n eventBus.register(charSequenceHandler);\n eventBus.register(stringHandler);\n eventBus.register(comparableHandler);\n\n eventBus.post(\"event 1\");\n assertThat(objectHandlerReceived, is(asList(\"event 1\")));\n assertThat(comparableHandlerReceived, is(asList(\"event 1\")));\n assertThat(charSequenceHandlerReceived, is(asList(\"event 1\")));\n assertThat(stringHandlerReceived, is(asList(\"event 1\")));\n\n eventBus.post(Integer.MAX_VALUE);\n assertThat(objectHandlerReceived, is(asList(\"event 1\", Integer.MAX_VALUE)));\n assertThat(comparableHandlerReceived, is(asList(\"event 1\", Integer.MAX_VALUE)));\n assertThat(charSequenceHandlerReceived, is(asList(\"event 1\")));\n assertThat(stringHandlerReceived, is(asList(\"event 1\")));\n }",
"protected void setUp() throws Exception {\r\n super.setUp();\r\n this.testedInstances = new AbstractPhaseHandlerSubclass[1];\r\n this.testedInstances[0] = new AbstractPhaseHandlerSubclass(TestDataFactory.NAMESPACE);\r\n }",
"@Test\n public void testReplicatedClient()\n {\n generateEvents(\"repl-client-test\");\n checkEvents(true, false);\n }",
"@Test\n public void testDuoEventComplex() throws Exception {\n JavaDelegate taskA = mock(JavaDelegate.class);\n getServiceTaskRegistry().register(\"taskA\", taskA);\n \n JavaDelegate taskB = mock(JavaDelegate.class);\n getServiceTaskRegistry().register(\"taskB\", taskB);\n \n JavaDelegate taskC = mock(JavaDelegate.class);\n getServiceTaskRegistry().register(\"taskC\", taskC);\n \n // ---\n \n String processId = \"test\";\n deploy(new ProcessDefinition(processId, Arrays.<AbstractElement>asList(\n new StartEvent(\"start\"),\n new SequenceFlow(\"f1\", \"start\", \"gw1\"),\n new InclusiveGateway(\"gw1\"),\n\n new SequenceFlow(\"f2\", \"gw1\", \"t1\"),\n new ServiceTask(\"t1\", ExpressionType.DELEGATE, \"${taskA}\"),\n new SequenceFlow(\"f3\", \"t1\", \"ev1\"),\n new IntermediateCatchEvent(\"ev1\", \"ev1\"),\n new SequenceFlow(\"f4\", \"ev1\", \"gw2\"),\n\n new SequenceFlow(\"f5\", \"gw1\", \"t2\"),\n new ServiceTask(\"t2\", ExpressionType.DELEGATE, \"${taskB}\"),\n new SequenceFlow(\"f6\", \"t2\", \"ev2\"),\n new IntermediateCatchEvent(\"ev2\", \"ev2\"),\n new SequenceFlow(\"f7\", \"ev2\", \"gw2\"),\n\n new InclusiveGateway(\"gw2\"),\n new SequenceFlow(\"f8\", \"gw2\", \"t3\"),\n new ServiceTask(\"t3\", ExpressionType.DELEGATE, \"${taskC}\"),\n new SequenceFlow(\"f9\", \"t3\", \"end\"),\n new EndEvent(\"end\")\n )));\n\n // ---\n\n String key = UUID.randomUUID().toString();\n getEngine().start(key, processId, null);\n getEngine().resume(key, \"ev1\", null);\n getEngine().resume(key, \"ev2\", null);\n \n // ---\n \n verify(taskA, times(1)).execute(any(ExecutionContext.class));\n verify(taskB, times(1)).execute(any(ExecutionContext.class));\n verify(taskC, times(1)).execute(any(ExecutionContext.class));\n }",
"@Test\n public void test02SendEvents() throws Exception{\n Event event1 = restService.registerEvent(createEvent(\"ACCOUNTS\", createMap(Object.class, \"date\", \"Yesterday\")));\n assertNotNull(event1.getId());\n Event event2 = restService.registerEvent(createEvent(\"TRANSACTIONS\", createMap(Object.class, \"date\", \"Yesterday\")));\n assertNotNull(event2.getId());\n Event event3 = restService.registerEvent(createEvent(\"PRODUCTS\", createMap(Object.class, \"date\", \"Yesterday\")));\n assertNotNull(event3.getId());\n Event event4 = restService.registerEvent(createEvent(\"ACCOUNTS\", createMap(Object.class, \"date\", \"Today\")));\n assertNotNull(event4.getId());\n Event event5 = restService.registerEvent(createEvent(\"TRANSACTIONS\", createMap(Object.class, \"date\", \"Today\")));\n assertNotNull(event5.getId());\n Event event6 = restService.registerEvent(createEvent(\"PRODUCTS\", createMap(Object.class, \"date\", \"Today\")));\n assertNotNull(event6.getId());\n Event event7 = restService.registerEvent(createEvent(\"ACCOUNTS\", createMap(Object.class, \"date\", \"Tomorrow\", \"premise\", \"PC2\")));\n assertNotNull(event7.getId());\n Event event8 = restService.registerEvent(createEvent(\"TRANSACTIONS\", createMap(Object.class, \"date\", \"Tomorrow\", \"premise\", \"PC2\")));\n assertNotNull(event8.getId());\n Event event9 = restService.registerEvent(createEvent(\"PRODUCTS\", createMap(Object.class, \"date\", \"Tomorrow\", \"premise\", \"PC2\")));\n assertNotNull(event9.getId());\n delay(10);\n\n //yesterday events\n List<CallbackData> list = restService.findCallbackInstancesBy(event1.getId(), null, null, null, 0, 0);\n// assertEquals(5, list.size());\n assertEquals(4, list.size());\n list = restService.findCallbackInstancesBy(event2.getId(), null, null, null, 0, 0);\n assertEquals(1, list.size());\n list = restService.findCallbackInstancesBy(event3.getId(), null, null, null, 0, 0);\n assertEquals(4, list.size());\n //today\n list = restService.findCallbackInstancesBy(event4.getId(), null, null, null, 0, 0);\n assertEquals(4, list.size());\n list = restService.findCallbackInstancesBy(event5.getId(), null, null, null, 0, 0);\n assertEquals(1, list.size());\n list = restService.findCallbackInstancesBy(event6.getId(), null, null, null, 0, 0);\n assertEquals(4, list.size());\n //premise\n list = restService.findCallbackInstancesBy(event7.getId(), null, null, null, 0, 0);\n assertEquals(5, list.size());\n list = restService.findCallbackInstancesBy(event8.getId(), null, null, null, 0, 0);\n assertEquals(2, list.size());\n list = restService.findCallbackInstancesBy(event9.getId(), null, null, null, 0, 0);\n assertEquals(5, list.size());\n\n //Event status check\n EventEntity evt = eventRepo.eventById(Long.parseLong(event1.getId()));\n assertEquals(evt.getStatus(), Constants.EVENT_INSTANCE_STATUS_PROCESSED);\n assertEquals(evt.getId(), Long.parseLong(event1.getId()));\n\n }",
"@BeforeEach\n void setUp() {\n\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n genericDao = new GenericDao(Event.class);\n }",
"@Test\n public void testEquals() throws StoreException {\n System.out.println(\"equals\");\n boolean expResult = false;\n boolean result = instance.equals(new Object());\n assertEquals(result, expResult);\n\n assertEquals(instance.equals(Store.getInstance()), true);\n }",
"private void fireEvents() {\n\n if (clockTickCount % clockTicksTillWorkloadChange == 0) {\n clockEventPublisher.fireTriggerWorkloadHandlerEvent(clockTickCount, intervalDurationInMilliSeconds);\n }\n\n // if (clockTickCount % clockTicksTillScalingDecision == 0) {\n // clockEventPublisher.fireTriggerAutoScalerEvent(clockTickCount,\n // intervalDurationInMilliSeconds);\n // }\n\n clockEventPublisher.fireClockEvent(clockTickCount, intervalDurationInMilliSeconds);\n\n // INfrastruktur\n if (clockTickCount % clockTicksTillPublishInfrastructureState == 0) {\n clockEventPublisher.fireTriggerPublishInfrastructureStateEvent(clockTickCount,\n intervalDurationInMilliSeconds);\n\n }\n\n // Queue\n if (clockTickCount % clockTicksTillPublishQueueState == 0) {\n\n clockEventPublisher.fireTriggerPublishQueueStateEvent(clockTickCount, intervalDurationInMilliSeconds);\n }\n\n }",
"private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }",
"@Test\r\n\tpublic void driverRatioMuseumsWithStore() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateRatioMuseumsWithStore((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}",
"@Test\r\n public void testShipOrder() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sgtin:0614141.107343.1\";\r\n XmlTransactionEventType event = dbHelper.getTransactionEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(SHIP_ORDER_XML);\r\n\r\n event = dbHelper.getTransactionEventByEpc(epcToCheck);\r\n Assert.assertNotNull(event);\r\n }",
"@Test\n public void testDefaultCategorizationUsingDefaultEventListener()\n throws Exception {\n makeSomeDocuments();\n closeSession();\n \n // wait for the default core event listener to finish\n Framework.getLocalService(EventService.class).waitForAsyncCompletion();\n \n // check the language categorization\n openSession();\n f2 = session.getDocument(f2.getRef());\n // folderish documents are not processed by default\n assertEquals(null, f2.getPropertyValue(\"dc:language\"));\n \n file1 = session.getDocument(file1.getRef());\n file2 = session.getDocument(file2.getRef());\n note1 = session.getDocument(note1.getRef());\n \n assertEquals(\"en\", file1.getPropertyValue(\"dc:language\"));\n assertEquals(\"asia/Viet_Nam\", file1.getPropertyValue(\"dc:coverage\"));\n assertEquals(Arrays.asList(\"human sciences/history\",\n \"daily life/tourism\"),\n Arrays.asList((String[]) file1.getPropertyValue(\"dc:subjects\")));\n \n assertEquals(\"fr\", file2.getPropertyValue(\"dc:language\"));\n assertEquals(\"europe/France\", file2.getPropertyValue(\"dc:coverage\"));\n \n // TODO: handle the string content of Note document too\n assertEquals(null, note1.getPropertyValue(\"dc:language\"));\n }",
"@Test\n\tpublic void testGetAvailableEvents() {\n\n\t\tArrayList<Object[]> showEvents = new ArrayList<Object[]>();\n\n\t\ttry {\n\t\t\trequest = new MockHttpServletRequest(\"GET\", \"/displayEvent.htm\");\n\t\t\t\n\t\t\tcontroller.getAvailableEvents(request, response);\t\t\n\t\t\t\n\t\t\tshowEvents = eventDao.showAllEvents();\n\t\t\t\n\t\t} catch (Exception exception) {\t\t\t\n\t\t\tfail(\"Exception\");\n\t\t}\n\t\tassertEquals(showEvents.size() > 0, true);\n\t}",
"public void testStore() {\n\t\tSearchDocument sdocument = new SearchDocument();\r\n\t\tsdocument.setLuceneId(2);\r\n\t\t/**\r\n\t\t * Pay particular attenction: the property menuId is a foreign key. \r\n\t\t * FOREIGN KEY(co_menuid) REFERENCES co_menus(co_menuid)\r\n\t\t */\t\t\r\n\t\tsdocument.setMenuId(Menu.MENUID_PERSONAL);\r\n\t\tsdocument.setIndex(\"testIndex\");\r\n\t\tassertTrue(\"Unable to store\", dao.store(sdocument));\r\n\r\n\t\t// Check database status\r\n\t\tsdocument = dao.findByMenuId(Menu.MENUID_PERSONAL);\r\n\t\tassertNotNull(sdocument);\r\n\t\tassertEquals(Menu.MENUID_PERSONAL, sdocument.getMenuId());\r\n\t}",
"@Test(groups = { \"Owner:Sunil\", \"Priority:1\"})\n public void NotificationsUserEventsReadSingleTest() throws Exception\n {\n JSONObject course1 = new JSONObject();\n JSONObject course2 = new JSONObject();\n JSONObject gradeMetadata = new JSONObject() ;\n\n course1.put(\"courseName\",\"english101\");\n course1.put(\"courseId\",\"101\");\n course2.put(\"courseName\",\"science101\");\n course2.put(\"courseId\",\"101\");\n\n JSONArray courses = new JSONArray();\n courses.add(course1);\n courses.add(course2);\n\n gradeMetadata.put(\"pointsReceived\",\"100\");\n\n JSONObject eventModelObject = new JSONObject();\n eventModelObject.put(\"courses\",courses);\n eventModelObject.put(\"gradeMetaData\",gradeMetadata);\n\n // Setting appType, productType, eventType, notificationsRecieved, Author.\n notificationUserEventsCollection = new NotificationUserEventsCollection();\n notificationUserEventsCollection.setAppType(DataGenerator.generateRandomString(10, 20, RANDOM));\n notificationUserEventsCollection.setProductType(DataGenerator.generateRandomString(10, 20, RANDOM));\n notificationUserEventsCollection.setEventType(notificationUserEventsCollection.getAppType() + DataGenerator.generateRandomString(10, 20, RANDOM));\n notificationUserEventsCollection.setAuthorId(DataGenerator.generateRandomString(10, 20, RANDOM));\n notificationUserEventsCollection.setRecipientId(DataGenerator.generateRandomString(10, 20, RANDOM));\n notificationUserEventsCollection.setEventModel(eventModelObject);\n\n //posting a single notification.\n NotificationsUserEventsPostContext notificationsUserEventsPostContext = notificationsContextFactory.getCreateNotificationsUserEventsPostContext(notificationUserEventsCollection);\n notificationsUserEventsPostContext.setAuthorizationToken(\"1234\");\n notificationsUserEventsPostContext.setRequestContentType(\"application/json\");\n notificationsUserEventsPostContext.setNewNotificationsUserEventsCollection(notificationUserEventsCollection);\n history.push(injector.getInstance(NotificationsUserEventsPostExecutionDriver.class).execute(notificationsUserEventsPostContext));\n\n \n //reading the single posted notification.\n NotificationsUserEventsReadContext notificationsUserEventsReadContext = notificationsContextFactory.getCreateNotificationsUserEventsReadContext(notificationUserEventsCollection);\n notificationsUserEventsReadContext.setAuthorizationToken(\"1234\");\n notificationsUserEventsReadContext.setRequestContentType(\"application/json\");\n notificationsUserEventsReadContext.setExpectedNotificationsUserEvent(notificationUserEventsCollection);\n notificationsUserEventsReadContext.setUserEventId(notificationsUserEventsPostContext.getReturnedNotificationsUserEventsCollection().getId());\n history.push(injector.getInstance(NotificationsUserEventsReadExecutionDriver.class).execute(notificationsUserEventsReadContext));\n }",
"public static void testLowLevelApi() {\n StreamTask task = new StreamTask() {\n @Override\n public void process(IncomingMessageEnvelope envelope, MessageCollector collector, TaskCoordinator coordinator) throws Exception {\n }\n };\n\n TestApplication.TaskTest app = TestApplication.create(task, new MapConfig());\n app.addInputStream(\"queuing.PageViewEvent\", CollectionStream.of(ImmutableMap.of(\n \"1\", \"PageView1\",\n \"2\", \"PageView2\"\n )));\n app.addOutputStream(\"queuing.MyPageViewEvent\", CollectionStream.empty());\n\n TaskAssert.that(\"queuing.MyPageViewEvent\").contains(ImmutableMap.of(\n \"1\", \"PageView1\",\n \"2\", \"PageView2\"\n ));\n \n app.run();\n }",
"@Test\n public void testDefaultCategorizationUsingServiceAPI() throws Exception {\n EventServiceAdmin eventServiceAdmin = Framework.getService(EventServiceAdmin.class);\n eventServiceAdmin.setListenerEnabledFlag(\n \"documentCategorizationSyncListener\", false);\n \n // let us create some documents\n makeSomeDocuments();\n f2 = session.getDocument(f2.getRef());\n file1 = session.getDocument(file1.getRef());\n file2 = session.getDocument(file2.getRef());\n note1 = session.getDocument(note1.getRef());\n\n assertEquals(null, f2.getPropertyValue(\"dc:language\"));\n assertEquals(null, file1.getPropertyValue(\"dc:language\"));\n assertEquals(null, file1.getPropertyValue(\"dc:coverage\"));\n assertEquals(null, file2.getPropertyValue(\"dc:language\"));\n assertEquals(null, note1.getPropertyValue(\"dc:language\"));\n \n // run the engine again, this time all the documents should be processed\n List<DocumentModel> updatedDocuments = service.updateCategories(Arrays.asList(\n file1, file2, note1, f2));\n assertEquals(3, updatedDocuments.size());\n \n assertEquals(\"en\", file1.getPropertyValue(\"dc:language\"));\n assertEquals(\"asia/Viet_Nam\", file1.getPropertyValue(\"dc:coverage\"));\n \n assertEquals(\"fr\", file2.getPropertyValue(\"dc:language\"));\n assertEquals(\"europe/France\", file2.getPropertyValue(\"dc:coverage\"));\n \n // TODO: handle the string content of Note document too\n assertEquals(null, note1.getPropertyValue(\"dc:language\"));\n \n // folderish documents are ignored by the categorizers\n assertEquals(null, f2.getPropertyValue(\"dc:language\"));\n }",
"@Test\n void getAllSuccess() {\n List<Event> events = genericDao.getAll();\n assertEquals(5, events.size());\n }",
"@Test\n public void testStreamEventsShouldNotReturnDuplicateTokens() throws InterruptedException {\n newTestSubject(0, 1000, 1000, EmbeddedEventStoreTest.OPTIMIZE_EVENT_CONSUMPTION);\n Stream mockStream = Mockito.mock(Stream.class);\n Iterator mockIterator = Mockito.mock(Iterator.class);\n Mockito.when(mockStream.iterator()).thenReturn(mockIterator);\n Mockito.when(storageEngine.readEvents(ArgumentMatchers.any(TrackingToken.class), ArgumentMatchers.eq(false))).thenReturn(mockStream);\n Mockito.when(mockIterator.hasNext()).thenAnswer(new EmbeddedEventStoreTest.SynchronizedBooleanAnswer(false)).thenAnswer(new EmbeddedEventStoreTest.SynchronizedBooleanAnswer(true));\n Mockito.when(mockIterator.next()).thenReturn(new org.axonframework.eventhandling.GenericTrackedEventMessage(new GlobalSequenceTrackingToken(1), EventStoreTestUtils.createEvent()));\n TrackingEventStream stream = testSubject.openStream(null);\n TestCase.assertFalse(stream.hasNextAvailable());\n testSubject.publish(EventStoreTestUtils.createEvent());\n // give some time consumer to consume the event\n Thread.sleep(200);\n // if the stream correctly updates the token internally, it should not find events anymore\n TestCase.assertFalse(stream.hasNextAvailable());\n }",
"@Test\n public void collectWeaponEventTest() {\n match.getGameBoard().weaponCardsSetup(new WeaponsDeck());\n List<Coordinates> path = new ArrayList<>();\n path.add(new Coordinates(1,2));\n List<WeaponCardClient> weaponCards = new ArrayList<>();\n weaponCards = match.getGameBoard().getWeaponCardsOnMap().get(new Coordinates(2,2));\n\n try {\n PowerUpsDeck powerUpsDeck = new PowerUpsDeck();\n List<PowerUpCardClient> powerUpCardClients = new ArrayList<>();\n for(int i = 0; i < 3; i++) {\n powerUpCardClients.add(new PowerUpCardClient(powerUpsDeck.drawCard()));\n }\n WeaponCollectionEvent collectPlayEvent = new WeaponCollectionEvent(0, \"tony\", path, weaponCards.get(0), null, powerUpCardClients);\n turnController.handleEvent(collectPlayEvent);\n } catch(URISyntaxException e) {\n e.printStackTrace();\n } catch(HandlerNotImplementedException e) {\n e.printStackTrace();\n }\n assertFalse(match.getGameBoard().getWeaponCardsOnMap().get(new Coordinates(2,2)).contains(weaponCards.get(0)));\n assertEquals(new Coordinates(1,2), match.getGameBoard().getPlayerPosition(first).getCoordinates());\n }",
"@Test\n public void testRemoveEventConvinienceMethodWithCustomEventProvider() {\n calendar.setEventProvider(new ContainerEventProvider(new com.vaadin.v7.data.util.BeanItemContainer<BasicEvent>(BasicEvent.class)));\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n BasicEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n List<CalendarEvent> events = calendar.getEvents(start, end);\n Assert.assertEquals(1, events.size());\n // Remove event\n calendar.removeEvent(event);\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n }",
"@Test\n void sendEvents() {\n // Arrange\n final String messageId = UUID.randomUUID().toString();\n final SendOptions options = new SendOptions().setPartitionId(PARTITION_ID);\n final EventHubProducerAsyncClient producer = toClose(builder.buildAsyncProducerClient());\n final List<EventData> events = TestUtils.getEvents(NUMBER_OF_EVENTS, messageId);\n final PartitionProperties information = producer.getPartitionProperties(PARTITION_ID).block();\n\n assertNotNull(information, \"Should receive partition information.\");\n\n final EventPosition position = EventPosition.fromSequenceNumber(information.getLastEnqueuedSequenceNumber());\n final EventHubConsumerAsyncClient consumer = toClose(builder\n .consumerGroup(EventHubClientBuilder.DEFAULT_CONSUMER_GROUP_NAME)\n .buildAsyncConsumerClient());\n\n // Act\n StepVerifier.create(producer.send(events, options))\n .expectComplete()\n .verify(TIMEOUT);\n\n // Assert\n logger.info(\"Waiting to receive events.\");\n StepVerifier.create(consumer.receiveFromPartition(PARTITION_ID, position)\n .filter(x -> TestUtils.isMatchingEvent(x, messageId)).take(NUMBER_OF_EVENTS))\n .expectNextCount(NUMBER_OF_EVENTS)\n .expectComplete()\n .verify(TIMEOUT);\n }",
"@Test\n public void handleSavvyTaskerChangedEvent_exceptionThrown_eventRaised() throws IOException {\n Storage storage = new StorageManager(new XmlAddressBookStorageExceptionThrowingStub(\"dummy\"), new JsonUserPrefsStorage(\"dummy\"));\n EventsCollector eventCollector = new EventsCollector();\n storage.handleSavvyTaskerChangedEvent(new SavvyTaskerChangedEvent(new SavvyTasker()));\n assertTrue(eventCollector.get(0) instanceof DataSavingExceptionEvent);\n }",
"public void testHandleActionEvent_SimpleActionEvent_Accuracy()\n throws Exception {\n setUpEventManager();\n\n ActionEvent actionEvent = new ActionEvent(undoableAction1, new String());\n // Handle the event, actionEventListener1 and actionEventListener2 should be notified\n eventManager.handleActionEvent(actionEvent);\n\n // The validation result is EventValidation.EVENT_MODIFIED\n Pair<EventObject, EventValidation> performRecord = new Pair<EventObject, EventValidation>(actionEvent,\n EventValidation.EVENT_MODIFIED);\n // actionEventListener1 should be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getPerformedRecords().contains(performRecord));\n // actionEventListener2 should be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getPerformedRecords().contains(performRecord));\n }",
"@Test\n\tpublic void shouldSendCorrectEvent() {\n\t\tUdpSender udpSender = Mockito.spy(UdpSender.class);\n\t\tEvent event = new Event(EVENT_GENERIC);\n\t\tUdpEventSender target = new UdpEventSender();\n\t\ttarget.setUdpSender(udpSender);\n\n\t\ttarget.send(event);\n\n\t\tMockito.verify(udpSender).sendTo(EVENT_GENERIC);\n\t}",
"@BeforeClass\n public void setUp() throws Exception {\n HiveConf conf = new HiveConf();\n conf.set(\"hive.exec.post.hooks\", \"\");\n conf.set(\"hive.metastore.event.listeners\", \"\");\n\n SessionState ss = new SessionState(conf);\n ss = SessionState.start(ss);\n SessionState.setCurrentSessionState(ss);\n\n // Initialize 'driverWithNoHook' with HS2 hook disabled and HMS hook disabled.\n driverWithNoHook = new Driver(conf);\n\n super.setUp();\n }",
"public interface TestSessionsUpdatedEventHandler extends EventHandler {\n void onTestSessionsUpdated(TestSessionsUpdatedEvent event);\n}",
"@Before\n public void setUp() {\n LOG.info(\"===========================================================\");\n module1 = context.mock(Module.class, \"module1\");\n module2 = context.mock(Module.class, \"module2\");\n managerListener = context.mock(ModuleLifecycleManagerListener.class);\n listener = context.mock(ModuleLifecycleListener.class);\n peerGroup = context.mock(PeerGroup.class);\n id = IDFactory.newModuleClassID();\n pgx = new PeerGroupException(\"Hardcoded test exception\");\n\n manager = new ModuleLifecycleManager<Module>();\n manager.addModuleLifecycleManagerListener(managerListener);\n manager.addModuleLifecycleListener(listener);\n }",
"public void testWriteOrders() throws Exception {\n }",
"@Test\r\n public void test() throws QueryException, IOException\r\n {\r\n EasyMockSupport support = new EasyMockSupport();\r\n\r\n EventManager eventManager = createEventManager(support);\r\n TimeManager timeManager = createTimeManager(support);\r\n AnimationManager animationManager = createAnimationManager(support);\r\n List<PlatformMetadata> testData = New.list(createMetadata());\r\n OrderParticipantKey expectedUAVKey = support.createMock(OrderParticipantKey.class);\r\n OrderParticipantKey expectedVideoKey = support.createMock(OrderParticipantKey.class);\r\n OrderManagerRegistry orderRegistry = createOrderRegistry(support, expectedUAVKey, expectedVideoKey, 1);\r\n Toolbox toolbox = createToolbox(support, eventManager, timeManager, animationManager, testData, orderRegistry, 1);\r\n\r\n DataTypeInfo videoLayer = createVideoLayer(support, expectedVideoKey);\r\n OSHImageQuerier querier = createQuerier(support, videoLayer, 1);\r\n List<DataTypeInfo> linkedLayer = New.list(videoLayer);\r\n\r\n DataTypeInfo uavLayer = createUAVDataType(support, expectedUAVKey, 1);\r\n\r\n GenericSubscriber<Geometry> receiver = createReceiver(support);\r\n\r\n support.replayAll();\r\n\r\n AerialImageryTransformer transformer = new AerialImageryTransformer(toolbox, querier, uavLayer, linkedLayer);\r\n transformer.addSubscriber(receiver);\r\n transformer.open();\r\n\r\n myListener.activeTimeSpansChanged(null);\r\n\r\n support.verifyAll();\r\n }",
"@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}",
"public StoreTest() {\n }",
"@Test\n public void testRecordProvidedServices() {\n for (int i = 0; i < 10; i++) {\n presenter.onRecordProvidedService();\n }\n Assert.assertEquals(10, view.getManageRecordProvidedServicesClicks());\n }",
"public void setUp() {\n _notifier = new EventNotifier();\n _doc = new DefinitionsDocument(_notifier);\n }",
"@Test\n public void contextLoads() {\n\n ServicosProdutos inserir = new ServicosProdutos() {\n @Override\n public ItemProduto inserir() {\n return super.inserir();\n }\n };\n\n ServicosProdutos listar = new ServicosProdutos() {\n @Override\n public ItemProduto listar() {\n return super.listar();\n }\n };\n\n\n\n ServicosProdutos alterar = new ServicosProdutos() {\n @Override\n public ItemProduto alterar() {\n return super.alterar();\n }\n };\n\n ServicosProdutos deletar = new ServicosProdutos() {\n @Override\n public ItemProduto deletar() {\n return super.deletar();\n }\n };\n\n\n\n }",
"protected void setUp() throws Exception {\n super.setUp();\n TestHelper.loadConfig();\n actionManager = new ActionManager();\n\n // Setup the undoActions\n actionManager.executeAction(undoableAction1);\n actionManager.executeAction(undoableAction2);\n actionManager.executeAction(undoableAction3);\n\n eventManager = new EventManager(actionManager);\n }",
"@Test\n public void testCreateEvent () throws InterruptedException\n {\n onView(withId(R.id.event_name_add_event)).perform(typeText(eventName), ViewActions.closeSoftKeyboard());\n // Wait function\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n\n // Test for add event location\n onView(withId(R.id.event_location_add_event)).perform(typeText(eventLocation), ViewActions.closeSoftKeyboard());\n // Wait function\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n // Test for STATIC event\n onView(withId(R.id.type_of_event_add_event)).perform(click());\n onView(withText(\"STATIC\")).perform(click());\n // Wait function\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n // Test for event color\n onView(withId(R.id.color_dropdown_add_event)).perform(click());\n onView(withText(\"ORANGE\")).perform(click());\n // Wait function\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n\n // Test for event start time\n onView(withId(R.id.start_time_add_event)).perform(click());\n onView(isAssignableFrom(TimePicker.class)).perform(setTime(11, 30));\n // Wait function\n onView(withText(\"OK\")).perform(click());\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n // Test for event end time\n onView(withId(R.id.end_time_add_event)).perform(click());\n onView(isAssignableFrom(TimePicker.class)).perform(setTime(15, 30));\n // Wait function\n onView(withText(\"OK\")).perform(click());\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n // Test for event end date\n onView(withId(R.id.end_date_add_event)).perform(click());\n onView(isAssignableFrom(DatePicker.class)).perform(setDate(2016,03, 20));\n // Wait function\n onView(withText(\"OK\")).perform(click());\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n\n // Test for add event description\n onView(withId(R.id.notes_add_event)).perform(typeText(eventNotes), ViewActions.closeSoftKeyboard());\n // Wait function\n synchronized (this)\n {\n Thread.sleep((long) 1000);\n }\n\n // Test for floating button - finished creating event\n onView(withId(R.id.fab_finished_event)).perform(click());\n synchronized (this) {\n Thread.sleep((long) 10000);\n }\n }",
"public void testAddActionEventListener2_Accuracy() {\n eventManager.addActionEventListener(actionEventListener1);\n eventManager.addActionEventListener(actionEventListener2);\n eventManager.addActionEventListener(actionEventListener3);\n\n Map<Class, Set<ActionEventListener>> map = (Map<Class, Set<ActionEventListener>>)\n getPrivateField(EventManager.class, eventManager, \"actionEventListeners\");\n // Check all the validators have been added correctly\n assertTrue(\"Test method for 'EventManager.addActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, null, actionEventListener1));\n assertTrue(\"Test method for 'EventManager.addActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, null, actionEventListener2));\n assertTrue(\"Test method for 'EventManager.addActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, null, actionEventListener3));\n }",
"@Test\n public void testAddEventConvinienceMethod() {\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n BasicEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n List<CalendarEvent> events = calendar.getEvents(start, end);\n Assert.assertEquals(1, events.size());\n Assert.assertEquals(events.get(0).getCaption(), event.getCaption());\n Assert.assertEquals(events.get(0).getDescription(), event.getDescription());\n Assert.assertEquals(getStart(), event.getStart());\n }",
"@Override\n public void testIterationStart(LoopIterationEvent event) {\n }",
"@BeforeMethod\n public void setUp() {\n\n this.dummyAdapterEvent = new DummyAdapterEvent(STRING_TO_MATCH, INT_TO_MATCH);\n }",
"@Before\n public void setup() {\n context.build().resource(OAK_INDEX).commit();\n context.registerService(Scheduler.class,scheduler);\n context.registerService(RequireAem.class,requireAem,\"distribution\",\"classic\");\n\n ScheduleOptions options = mock(ScheduleOptions.class);\n lenient().when(scheduler.NOW()).thenReturn(options);\n lenient().when(scheduler.schedule(any(), any())).thenAnswer((InvocationOnMock invocation) -> {\n EnsureOakIndexJobHandler handler = invocation.getArgument(0);\n handler.run();\n return true;\n });\n\n context.registerService(ChecksumGenerator.class, new ChecksumGeneratorImpl());\n \n ensureOakIndexManagerProperties = new HashMap<>();\n ensureOakIndexManagerProperties.put(\"properties.ignore\", null);\n \n }",
"@Test\r\n public void testPickOrder() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sgtin:0614141.107341.1\";\r\n XmlObjectEventType event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(PICK_ORDER_XML);\r\n\r\n event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n assertNotNull(event);\r\n }",
"@Before\n\tpublic void setUp() throws Exception {\n\t\tscenario = getTac().useScenario(SimpleStoreScenario.class);\n\t\tcatalogPersister = getTac().getPersistersFactory().getCatalogTestPersister();\n\t\ttaxCode = getTac().getPersistersFactory().getTaxTestPersister().getTaxCode(TaxTestPersister.TAX_CODE_GOODS);\n\t}",
"@Test\r\n public void testJoePublisher() {\n if (!isExistPublisher(TckPublisher.getJoePublisherId())) {\r\n saveJoePublisher();\r\n deleteJoePublisher();\r\n }\r\n }",
"@Test\n public void testWithBeanItemContainer() {\n // Create a container to use as a datasource\n Indexed container = ContainerDataSourceTest.createTestBeanItemContainer();\n // Set datasource\n calendar.setContainerDataSource(container);\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n cal.setTime(getStart());\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Test the all events are returned\n List<CalendarEvent> events = calendar.getEventProvider().getEvents(start, end);\n Assert.assertEquals(container.size(), events.size());\n // Test that a certain range is returned\n cal.setTime(getStart());\n end = cal.getTime();\n events = calendar.getEventProvider().getEvents(start, end);\n Assert.assertEquals(6, events.size());\n }",
"@Test\n public void orgApacheFelixEventadminRequireTopicTest() {\n // TODO: test orgApacheFelixEventadminRequireTopic\n }",
"@Test\n public void testSetEbXmlEventListener() {\n System.out.println(\"setEbXmlEventListener\");\n instance.setEbXmlEventListener(ebXmlEventListener);\n }",
"@Test\n public void dispatchToMultipleObjects() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n final List<String> object1Received = new ArrayList<>();\n Object object1 = new Object() {\n @Subscriber\n public void onStringEvent(String event) {\n object1Received.add(event);\n }\n };\n\n final List<String> object2Received = new ArrayList<>();\n Object object2 = new Object() {\n @Subscriber\n public void onStringEvent(String event) {\n object2Received.add(event);\n }\n };\n\n eventBus.register(object1);\n eventBus.register(object2);\n\n eventBus.post(\"event 1\");\n eventBus.post(\"event 2\");\n\n // both subscribers should receive all items\n assertThat(object1Received, is(asList(\"event 1\", \"event 2\")));\n assertThat(object2Received, is(asList(\"event 1\", \"event 2\")));\n }",
"@Test\n public void testIAEForAddListener() {\n try {\n final Registrar<Object> testSubject = onCreateTestSubject();\n testSubject.addListener(null);\n fail(\"IAE was not thrown\");\n } catch (IllegalArgumentException e) {\n // okay\n }\n }"
] | [
"0.6589902",
"0.65857536",
"0.6523968",
"0.65052426",
"0.6503679",
"0.6395596",
"0.629879",
"0.6285401",
"0.6263819",
"0.62360865",
"0.61729306",
"0.61521226",
"0.6134045",
"0.6090984",
"0.60864514",
"0.60727745",
"0.60699266",
"0.6052486",
"0.6049852",
"0.6049368",
"0.60493046",
"0.6039287",
"0.6038771",
"0.60383195",
"0.60365003",
"0.6026038",
"0.60051835",
"0.6002212",
"0.5970765",
"0.5966004",
"0.5942679",
"0.59141487",
"0.59128886",
"0.5888752",
"0.5876652",
"0.5871632",
"0.586155",
"0.5850668",
"0.58464897",
"0.58343416",
"0.5768643",
"0.5752509",
"0.57491285",
"0.57445323",
"0.57439464",
"0.57364136",
"0.5734865",
"0.5702688",
"0.5685862",
"0.56853354",
"0.56806993",
"0.56523806",
"0.56490475",
"0.5628504",
"0.56280786",
"0.56241566",
"0.56199306",
"0.5618076",
"0.55953443",
"0.55896217",
"0.5578371",
"0.557658",
"0.55757713",
"0.55687416",
"0.5564657",
"0.5557754",
"0.55501235",
"0.5546368",
"0.554529",
"0.55398303",
"0.5524956",
"0.55226094",
"0.55150884",
"0.5514095",
"0.551327",
"0.5505409",
"0.55046797",
"0.5504634",
"0.5502177",
"0.5496511",
"0.5489263",
"0.54868746",
"0.5484254",
"0.54803264",
"0.54781985",
"0.54762083",
"0.54681665",
"0.546035",
"0.5453176",
"0.5451289",
"0.54425895",
"0.5439097",
"0.5438098",
"0.5434325",
"0.5432779",
"0.54321194",
"0.5430579",
"0.54300976",
"0.5429466",
"0.5427618",
"0.54255706"
] | 0.0 | -1 |
Created by mac on 2017/11/30. | @Singleton
@Component(modules = UserModule.class, dependencies = FlowerComponent.class)
public interface UserComponent {
User getUser();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"private static void cajas() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"public void mo6081a() {\n }",
"private void kk12() {\n\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"@Override\n public int describeContents() { return 0; }",
"private Platform() {\n\t\t\n\t}",
"private NativeSupport() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"private void init() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void mo38117a() {\n }",
"zzang mo29839S() throws RemoteException;",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public static void main(String args[]) throws Exception\n {\n \n \n \n }",
"protected void mo6255a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public void mo21877s() {\n }",
"public void mo4359a() {\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 void init() {\n\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 bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"zzafe mo29840Y() throws RemoteException;",
"private void init() {\n\n\n\n }",
"private void poetries() {\n\n\t}",
"public static void main(String[]args) {\n\t\n\t\t\n\n}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private final zzgy zzgb() {\n }",
"public final void mo91715d() {\n }",
"zzana mo29855eb() throws RemoteException;",
"@Override\n void init() {\n }",
"private void strin() {\n\n\t}",
"private MApi() {}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"private void initialize() {\n\t\t\n\t}",
"public void mo21785J() {\n }",
"private void init() {\n }",
"@Override\n public void init() {\n }",
"public void mo115190b() {\n }",
"public void mo12628c() {\n }",
"public void m23075a() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void mo21825b() {\n }",
"void gotMyMac();",
"public void gored() {\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}",
"private void m50367F() {\n }",
"void m1864a() {\r\n }",
"@Override\n public void memoria() {\n \n }",
"public void identify() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public abstract void mo56925d();",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"static void feladat9() {\n\t}",
"@Override\n public void initialize() { \n }",
"public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"public void mo97908d() {\n }",
"public void baocun() {\n\t\t\n\t}",
"public void mo21779D() {\n }",
"public void mo21878t() {\n }",
"private Unescaper() {\n\n\t}",
"public void mo12930a() {\n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override public int describeContents() { return 0; }",
"public void mo21781F() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private FlyWithWings(){\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"public void mo21782G() {\n }",
"static void feladat7() {\n\t}",
"@Override\n public void init() {}",
"@Override\n protected void init() {\n }"
] | [
"0.5874334",
"0.5614142",
"0.5576991",
"0.5548285",
"0.55383754",
"0.5455551",
"0.5437004",
"0.53962076",
"0.53789496",
"0.53704685",
"0.5365575",
"0.53563464",
"0.53556013",
"0.5341569",
"0.53349024",
"0.5334605",
"0.53293526",
"0.53278774",
"0.5307214",
"0.53033",
"0.52936184",
"0.5291199",
"0.5284462",
"0.52839005",
"0.52815807",
"0.52815807",
"0.52815807",
"0.52815807",
"0.52815807",
"0.52815807",
"0.52815807",
"0.5270238",
"0.52666086",
"0.52666086",
"0.52666086",
"0.52666086",
"0.52666086",
"0.52666086",
"0.52630514",
"0.52630514",
"0.5259457",
"0.52592075",
"0.524085",
"0.52389085",
"0.5229398",
"0.5213921",
"0.5212054",
"0.5208454",
"0.5204389",
"0.52018",
"0.51820683",
"0.5180345",
"0.5180345",
"0.5179406",
"0.51781124",
"0.51621556",
"0.51617515",
"0.5158221",
"0.5155579",
"0.51538235",
"0.5153101",
"0.51526415",
"0.5135797",
"0.51355946",
"0.5130856",
"0.5128577",
"0.5125673",
"0.5125673",
"0.512383",
"0.51211566",
"0.51163113",
"0.5115749",
"0.5115296",
"0.5104479",
"0.5103337",
"0.51018333",
"0.51010174",
"0.5100644",
"0.50979155",
"0.5091791",
"0.509161",
"0.5084267",
"0.5081427",
"0.5080172",
"0.5072546",
"0.50713235",
"0.507064",
"0.507064",
"0.507064",
"0.507064",
"0.507064",
"0.5061755",
"0.50586116",
"0.50578403",
"0.5057226",
"0.50485116",
"0.50485116",
"0.50408846",
"0.504049",
"0.5040484",
"0.5036125"
] | 0.0 | -1 |
unicamente se invoca esta accion para actualizar los parametros de fechas. | public String actionBuscar(){
return "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void actualizarAsistencia(Asistencia asistencia);",
"public void actualizar() {\n\n\t}",
"private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }",
"@Override\n\tpublic void updateEncuestaConExito() {\n\n\t}",
"void actualizar(Prestamo prestamo);",
"void actualizarValorCambioInformacion(Integer codigoCompania, Long codigoFactura, String valorCambioInformacion, String userId)throws SICException;",
"public void processActualizar() {\n }",
"public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}",
"public void actualizarFechaComprobantes() {\r\n if (utilitario.isFechasValidas(cal_fecha_inicio.getFecha(), cal_fecha_fin.getFecha())) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n utilitario.addUpdate(\"tab_tabla1,tab_tabla2\");\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales\");\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Rango de fechas no válidas\", \"\");\r\n }\r\n\r\n }",
"public void atualizar() {\n System.out.println(\"Metodo atualizar chamado!\");\n setR1(0);\n setR2(0);\n setR3(0);\n setN(0);\n\n //context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Atualizado!\", \"\"));\n }",
"@Override\n public void actualizarPropiedad(Propiedad nuevaPropiedad) {\n int numFinca = nuevaPropiedad.getNumFinca();\n String modalidad = nuevaPropiedad.getModalidad();\n double area = nuevaPropiedad.getAreaTerreno();\n double metro = nuevaPropiedad.getValorMetroCuadrado();\n double fiscal = nuevaPropiedad.getValorFiscal();\n String provincia = nuevaPropiedad.getProvincia();\n String canton = nuevaPropiedad.getCanton();\n String distrito = nuevaPropiedad.getDistrito();\n String dirExacta = nuevaPropiedad.getDirExacta();\n String estado = nuevaPropiedad.getEstado();\n String tipo = nuevaPropiedad.getTipo();\n System.out.println(nuevaPropiedad.getFotografias().size());\n double precio = nuevaPropiedad.getPrecio();\n try {\n bdPropiedad.manipulationQuery(\"UPDATE PROPIEDAD SET MODALIDAD = '\" + modalidad + \"', AREA_TERRENO \"\n + \"= \" + area + \", VALOR_METRO = \" + metro + \", VALOR_FISCAL = \"+ fiscal + \", PROVINCIA = '\" \n + provincia + \"', CANTON = '\" + canton + \"' , DISTRITO = '\" + distrito + \"', DIREXACTA = '\" \n + dirExacta + \"', ESTADO = '\" + estado + \"', PRECIO = \" + precio + \" WHERE ID_PROPIEDAD = \" \n + numFinca);\n bdPropiedad.manipulationQuery(\"DELETE FROM FOTOGRAFIA_PROPIEDAD WHERE ID_PROPIEDAD = \" + numFinca);\n bdPropiedad.insertarFotografias(nuevaPropiedad);\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void abrir(String name, String rfc, Double sueldo, Double aguinaldo2,// Ya esta hecho es el vizualizador\r\n\t\t\tDouble primav2, Double myH2, Double gF, Double sGMM2, Double hip, Double donat, Double subR,\r\n\t\t\tDouble transp, String NivelE, Double colegiatura2) {\r\n\t\tthis.nombre=name;//\r\n\t\tthis.RFC=rfc;//\r\n\t\tthis.SueldoM=sueldo;//\r\n\t\tthis.Aguinaldo=aguinaldo2;//\r\n\t\tthis.PrimaV=primav2;//\r\n\t\tthis.MyH=myH2;//\r\n\t\tthis.GatsosFun=gF;//\r\n\t\tthis.SGMM=sGMM2;//\r\n\t\tthis.Hipotecarios=hip;//\r\n\t\tthis.Donativos=donat;//\r\n\t\tthis.SubRetiro=subR;//\r\n\t\tthis.TransporteE=transp;//\r\n\t\tthis.NivelE=NivelE;//\r\n\t\tthis.Colegiatura=colegiatura2;//\r\n\t\t\r\n\t\tthis.calculo(this.nombre, this.RFC, this.SueldoM, this.Aguinaldo, this.PrimaV,this.MyH,this.GatsosFun,\r\n\t\t\t\tthis.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura);\r\n\t\t\r\n\t\tpr.Imprimir(this.nombre, this.RFC, this.SueldoM,this.IngresoA,this.Aguinaldo,this.PrimaV,this.MyH,this.GatsosFun,this.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura,this.AguinaldoE,this.AguinaldoG,this.PrimaVE,this.PrimaVG,this.TotalIngresosG,this.MaxDedColeg,this.TotalDedNoRetiro,this.DedPerm,this.MontoISR,this.CuotaFija,this.PorcExced,this.PagoEx,this.Total);\r\n\t\t\r\n\t}",
"public void actualizar();",
"ParqueaderoEntidad actualizar(ParqueaderoEntidad parqueadero);",
"void actualizarCampania(GestionPrecioDTO campania, UserDto user);",
"void actualizarCampania(GestionPrecioDTO campania, String user);",
"private void almacenarFallos() {\n BaseDatos bd = new BaseDatos(this);\n// Log.i(\"FALLOS\",\"Nmero de fallos final: \"+fallos);\n bd.updatePalabra(palabraActual.getId(),fallos);\n\n bd.close();\n }",
"public static void alteraFac() {\n\t\tString nome, novaInfo = \"\";\n\t\tScanner sc = new Scanner(System.in);\n\t\tint check = 0;\n\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o nome da faculdade:\");\n\t\t\tnome = sc.nextLine();\n\t\t\tif(verificarLetras(nome) && nome.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tSystem.out.println(\"\\nQual dos campos pretende alterar?\\n1- Morada\\n2- Numero de contacto\\n3- Email de contacto\");\n\t\tString op = sc.nextLine();\n\t\t\n\t\tswitch(op) {\n\t\t\tcase \"1\":\n\t\t\t\tSystem.out.println(\"\\nInsira a nova morada:\");\n\t\t\t\tnovaInfo = sc.nextLine();\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.println(\"Insira o numero de contacto:\\n\");\n\t\t\t\t\tnovaInfo = sc.nextLine();\n\t\t\t\t\tif(verificarNumeros(novaInfo) && novaInfo.length()<= 9) {\n\t\t\t\t\t\tif (Integer.parseInt(novaInfo) > 0) {\n\t\t\t\t\t\t\tcheck = 1;\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\tSystem.out.println(\"\\nO numero so pode conter 9 digitos\");\n\t\t\t\t\t}\n\t\t\t\t}while(check==0);\n\t\t\t\tcheck = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tSystem.out.println(\"Insira o email:\\n\");\n\t\t\t\tnovaInfo = sc.nextLine();\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tString msgServer = \"\";\n\t\t\n\t\tcheck = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tmsgServer = rmiserver.alterarFac(nome, op, novaInfo);\n\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI alteraFac\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t}",
"public void AtualizaPassageiro(String nome, String NovoCpf, String cpfPrimario) {\n\n\t\ttry {\n\n\t\t\t// Meu cpf é a chjave\n\t\t\t// setando nome\n\n\t\t\tstmt = con.prepareStatement(\" update Passageiro set nome= ? where cpf= ? \");\n\t\t\tstmt.setString(1, nome);\n\t\t\tstmt.setString(2, cpfPrimario);\n\t\t\tstmt.executeUpdate();\n\n\t\t\t// setando cpf\n\n\t\t\tstmt = con.prepareStatement(\" update Passageiro set cpf= ? where cpf= ? \");\n\t\t\tstmt.setString(1, NovoCpf);\n\t\t\tstmt.setString(2, cpfPrimario);\n\t\t\tstmt.executeUpdate();\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Passageiro Alterado com sucesso!!\");\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\n\t\t\tSystem.out.println(\"Erro ao atualizar passageiro!\");\n\t\t\tJOptionPane.showMessageDialog(null, \"-Erro ao atualizar o passageiro \");\n\t\t\tJOptionPane.showMessageDialog(null, \"certifique se de inserir um CPF VALIDO(15 CARACTERES)\t \");\n\t\t}\n\n\t}",
"void establecerPuntoFM(int pos){\n this.emisoraFMActual = pos;\n }",
"public void alterarVencimentoFatura(Fatura fatura) throws ErroRepositorioException ;",
"private void correctParameter(){\n \tint ifObtuse;\r\n \tif(initialState.v0_direction>90)ifObtuse=1;\r\n \telse ifObtuse=0;\r\n \tdouble v0=initialState.v0_val;\r\n \tdouble r0=initialState.r0_val;\r\n \tdouble sintheta2=Math.sin(Math.toRadians(initialState.v0_direction))*Math.sin(Math.toRadians(initialState.v0_direction));\r\n \tdouble eccentricityMG=Math.sqrt(center.massG*center.massG-2*center.massG*v0*v0*r0*sintheta2+v0*v0*v0*v0*r0*r0*sintheta2);\r\n \tdouble cosmiu0=-(v0*v0*r0*sintheta2-center.massG)/eccentricityMG;\r\n \tpe=(v0*v0*r0*r0*sintheta2)/(center.massG+eccentricityMG);\r\n \tap=(v0*v0*r0*r0*sintheta2)/(center.massG-eccentricityMG);\r\n \tsemimajorAxis=(ap+pe)/2;\r\n \tsemiminorAxis=Math.sqrt(ap*pe);\r\n \tsemifocallength=(ap-pe)/2;\r\n \tSystem.out.println(semimajorAxis+\",\"+semiminorAxis+\",\"+semifocallength);\r\n \teccentricity=eccentricityMG/center.massG;\r\n \tperiod=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));\r\n \trotate=(360-Math.toDegrees(Math.acos(cosmiu0)));\r\n \torbitCalculator.angleDelta=(Math.toDegrees(Math.acos(cosmiu0))+360);\r\n \trotate=rotate+initialState.r0_direction;\r\n \t\r\n \tif(ifObtuse==1) {\r\n \t\tdouble rbuf=rotate;\r\n \t\trotate=initialState.r0_direction-rotate;\r\n \t\torbitCalculator.angleDelta+=(2*rbuf-initialState.r0_direction);\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate>360)rotate=rotate-360;\r\n \t\telse break;\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate<0)rotate=rotate+360;\r\n \t\telse break;\r\n \t}\r\n \t/*\r\n \tpe=initialState.r0_val;\r\n rotate=initialState.r0_direction;\r\n ap=(initialState.v0_val*initialState.v0_val*pe*pe)/(2*center.massG-initialState.v0_val*initialState.v0_val*pe);\r\n peSpeed=initialState.v0_val;\r\n apSpeed=(2*center.massG-initialState.v0_val*initialState.v0_val*pe)/(initialState.v0_val*pe);\r\n if(ap<pe){\r\n double lf=ap;ap=pe;pe=lf;\r\n lf=apSpeed;apSpeed=peSpeed;peSpeed=lf;\r\n }\r\n semimajorAxis=(ap+pe)/2;\r\n semifocallength=(ap-pe)/2;\r\n semiminorAxis=Math.sqrt(ap*pe);\r\n eccentricity=semifocallength/semimajorAxis;\r\n period=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));*/\r\n }",
"public void ModificarPrestamo(PrestamoFila pf) {\n this.conexion.ConectarBD();\n String consulta = \"update prestamos set IdSocio = ?, IdLibro = ?, FechaInicio = ?, FechaFin = ? where IdPrestamo = ?\";\n try {\n this.pstm = this.conexion.getConexion().prepareStatement(consulta);\n //Indicamos los parametros del update\n this.pstm.setInt(1, pf.getIdSocio());\n this.pstm.setInt(2, pf.getIdLibro());\n this.pstm.setDate(3, new java.sql.Date(pf.getFechaInicio().getTime()));\n this.pstm.setDate(4, new java.sql.Date(pf.getFechaFin().getTime()));\n this.pstm.setInt(5, pf.getIdPrestamo());\n //Ejecutamos la consulta\n int res = pstm.executeUpdate();\n } catch (SQLException e) { \n throw new MisException(\"Error al modificar un Prestamo.\\n\"+e.toString());\n \n } catch (Exception e) {\n throw new MisException(\"Error.\\n\"+e.toString());\n \n }\n \n //Desconectamos de la BD\n this.conexion.DesconectarBD(); \n }",
"@Override\n\tpublic void procesar() throws WrongValuesException, ExcEntradaInconsistente {\n\n\t}",
"public void btnActualizarSecuencia()\r\n/* 653: */ {\r\n/* 654:727 */ AutorizacionDocumentoSRI autorizacionDocumentoSRI = null;\r\n/* 655:728 */ PuntoDeVenta puntoDeVenta = AppUtil.getPuntoDeVenta();\r\n/* 656: */ try\r\n/* 657: */ {\r\n/* 658:731 */ if (puntoDeVenta != null) {\r\n/* 659:732 */ autorizacionDocumentoSRI = this.servicioDocumento.cargarDocumentoConAutorizacion(getFacturaProveedorSRI().getDocumento(), puntoDeVenta, this.facturaProveedorSRI\r\n/* 660:733 */ .getFechaEmisionRetencion());\r\n/* 661: */ }\r\n/* 662:735 */ String numero = this.servicioSecuencia.obtenerSecuencia(getFacturaProveedorSRI().getDocumento().getSecuencia(), this.facturaProveedorSRI\r\n/* 663:736 */ .getFechaEmisionRetencion());\r\n/* 664: */ \r\n/* 665:738 */ this.facturaProveedorSRI.setNumeroRetencion(numero);\r\n/* 666:739 */ this.facturaProveedorSRI.setAutorizacionRetencion(autorizacionDocumentoSRI.getAutorizacion());\r\n/* 667: */ }\r\n/* 668: */ catch (ExcepcionAS2 e)\r\n/* 669: */ {\r\n/* 670:741 */ addErrorMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()) + e.getMessage());\r\n/* 671: */ }\r\n/* 672: */ }",
"private void escoger(){\n partida.escoger(ficha1,ficha2);\n ficha1=null;\n ficha2=null;\n this.ok=partida.ok;\n }",
"public void prepararPago(){\n pago = (float) 0.00;\n nuevoSaldo = (float) 0.00;\n intereses = (float) 0.00;\n mora = (float) 0.00;\n pagoValido = false;\n }",
"public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }",
"public void actualizar() {\n\n try {\n\n servtpDocumento.actualizarTipoDocumento(tipoDocumento);\n req = RequestContext.getCurrentInstance();\n req.execute(\"PF('dialogoTpDocuActualizar').hide();\");//Cierra el dialogo para actualizar\n req = null;\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Actualizado\", \"Exitoso\");\n\n } catch (Exception e) {\n MensajesFaces.error(\"Error\", \"detalle\" + e);\n\n }\n\n }",
"private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }",
"void actualizarFacturaEstado(Integer codigoCompania, Long codigoFacturaEsatado, String userId, Boolean inactivarFacturaEstado);",
"public void actualizar(){\n\t\tif( EventoTeclado.pause ){\n\t\t\tgame.pauseAll();\n\t\t\tpause.setVisible(game.isPaused());\n\t\t}\n\t\tgame.jugar();\n\t\tmoverPlataformas();\n\t\tactualizarContadores();\n\t\tactualizarNombrePoder();\n\t\t \t\n\t}",
"private void RealizarAccion() {\n if (ValidarCampos()) {\n\n persona.setPrimerNombre(txtPrimerNombre.getText());\n persona.setSegundoNombre(txtSegundoNombre.getText());\n persona.setPrimerApellido(txtPrimerApellido.getText());\n persona.setSegundoApellido(txtSegundoApellido.getText());\n persona.setTelefono(txtTelefono.getText());\n persona.setCedula(txtCedula.getText());\n persona.setCorreo(txtCorreo.getText());\n persona.setDireccion(txtDireccion.getText());\n\n empleado.setFechaInicio(dcFechaInicio.getDate());\n empleado.setSalario(Double.parseDouble(txtSalario.getText()));\n empleado.setCargo(txtCargo.getText());\n empleado.setUsuarioByUserModificacion(SessionHelper.usuario);\n empleado.setFechaModificacion(new Date());\n empleado.setRegAnulado(false);\n\n switch (btnAction.getText()) {\n case \"Guardar\":\n int maxid = personaBean.MaxId() + 1;\n persona.setIdPersona(maxid);\n\n Dbcontext.guardar(persona);\n\n empleado.setIdEmpleado(maxid);\n empleado.setPersona(persona);\n empleado.setUsuarioByUserCreacion(SessionHelper.usuario);\n empleado.setFechaCreacion(new Date());\n\n Dbcontext.guardar(empleado);\n break;\n\n case \"Actualizar\":\n\n Dbcontext.actualizar(persona);\n\n Dbcontext.actualizar(empleado);\n break;\n }\n if (ifrRegistroEmpleados.isActive) {\n ifrRegistroEmpleados.CargarTabla();\n }\n\n Mensajes.OperacionExitosa(this);\n dispose();\n } else {\n Mensajes.InformacionIncompleta(this);\n }\n }",
"private void cargarFichaLepra_convivientes() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void frenar() {\n\t\tvelocidadActual = 0;\n\t}",
"void actualizarEstadoFactura(Integer codigoCompania, String userId, String estado, Long... codigosFacturaEstado);",
"public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Parametres\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_Param();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}",
"public void editPAParameters() {\r\n \t\tdialogFactory.getDialog(new ParametricAnalysisPanel(model, model, model, this), \"Define What-if analysis parameters\");\r\n \t}",
"private void btnActualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActualizarActionPerformed\n boolean respuesta = false;\n int id =Integer.parseInt(this.txtCodigoPlatDia.getText());\n String valor = this.txtValueModified.getText();\n String atributo = \"\";\n switch (this.cbxTypeModified.getSelectedIndex()) {\n case 1: atributo = \"PDIA_NOMBRE\"; break;\n case 2: atributo = \"PDIA_DESCRIPCION\"; break;\n case 3: atributo = \"PDIA_ENTRADA\"; break;\n case 4: atributo = \"PDIA_PRINCIPIO\"; break;\n case 5: atributo = \"PDIA_BEBIDA\"; break;\n case 6: atributo = \"PDIA_CARNE\"; break;\n case 7: atributo = \"PDIA_PRECIO\"; break;\n default: break;\n }\n if(atributo.equals(\"PDIA_PRECIO\")){\n if(!Utilities.isNumeric(valor)){\n JOptionPane.showMessageDialog(null, \"el precio debe contener valores numericos, VERIFIQUE\");\n return;\n }\n }\n try {\n respuesta = this.servicioRestaurante.updatePlatoDia(id, atributo, valor);\n if(!respuesta){\n JOptionPane.showMessageDialog(null, \"verifique los datos, ITEM NO ENCONTRADO\");\n }else{\n this.listar();\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"ha fallado el servicio, intentelo de nuevo\");\n }\n this.txtCodigoPlatDia.setText(null);\n this.cbxTypeModified.setSelectedIndex(0);\n this.txtValueModified.setText(null);\n this.btnActualizar.setEnabled(false);\n }",
"public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Fen_Param\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_Param();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}",
"public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }",
"private void remplirFabricantData() {\n\t}",
"public Final_parametre() {\r\n\t}",
"private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void actualizar(DycpCompensacionDTO compensacion) throws SIATException {\n try {\n List<Object> params = new ArrayList<Object>();\n boolean comma = false;\n StringBuilder valoresSettear = new StringBuilder();\n\n if (compensacion.getDyccEstadoCompDTO() != null) {\n valoresSettear.append(\" IDESTADOCOMP = ?\");\n params.add(compensacion.getDyccEstadoCompDTO().getIdEstadoComp());\n comma = Boolean.TRUE;\n }\n\n if (compensacion.getDyccAprobadorDTO() != null) {\n if (comma) {\n valoresSettear.append(\",\");\n }\n valoresSettear.append(\" NUMEMPLEADOAPROB = ?\");\n params.add(compensacion.getDyccAprobadorDTO().getNumEmpleado());\n }\n\n String sentencia = \" UPDATE DYCP_COMPENSACION SET \" + valoresSettear.toString() + \" WHERE NUMCONTROL = ?\";\n log.info(\"sentencia ->\" + sentencia);\n\n params.add(compensacion.getNumControl());\n\n Object[] p = new Object[params.size()];\n int i = ConstantesDyCNumerico.VALOR_0;\n\n for (Object o : params) {\n p[i] = o;\n log.info(\"parametro en update compensacion ->\" + o + \"<-\");\n i++;\n }\n\n jdbcTemplateDYC.update(sentencia, p);\n } catch (Exception dae) {\n log.error(ConstantesDyC1.TEXTO_1_ERROR_DAO + dae.getMessage() + ConstantesDyC1.TEXTO_3_ERROR_DAO +\n ExtractorUtil.ejecutar(compensacion) + ConstantesDyC1.TEXTO_8_CAUSAS + dae);\n throw new SIATException(dae);\n }\n }",
"@Override\n public void alRechazarOperacion() {\n }",
"public static void asignarFuncionCeroParametros(Token id) {\t \n\t\ttablafunc1.put(id.image, 0);\n\t\tSystem.out.println(\"Se guardo la funcion '\" + id.image + \"' sin parametros \");\n\t}",
"protected void aktualisieren() {\r\n\r\n\t}",
"void actualizar(Espacio espacio);",
"private void modi() { \n try {\n cvo.getId_cliente();\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.actualizar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Modificado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para Modificar registro!\");\n }\n }",
"void setParameters() {\n\t\t\n\t}",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\tif (e.getSource() == barra.btnuevo\r\n\t\t\t\t\t|| e.getSource() == barra.btmodifi) {\r\n\t\t\t\tif (e.getSource() == barra.btnuevo) {\r\n\t\t\t\t\ttfrif.setText(\"\");\r\n\t\t\t\t\ttfrazon.setText(\"\");\r\n\t\t\t\t\ttfdireccion.setText(\"\");\r\n\t\t\t\t\ttftelefono.setText(\"\");\r\n\t\t\t\t\ttfcorreo.setText(\"\");\r\n\t\t\t\t\tcbCiudad.setSelectedItem(-1);\r\n\t\t\t\t\tultimo = actual;\r\n\t\t\t\t\tactual = new Facturacion();\r\n\t\t\t\t}\r\n\t\t\t\tbarra.Edicion();\r\n\t\t\t\ttfrif.grabFocus();\r\n\r\n\t\t\t\ttfrif.setEditable(true);\r\n\t\t\t\ttfrazon.setEditable(true);\r\n\t\t\t\ttfdireccion.setEditable(true);\r\n\t\t\t\ttftelefono.setEditable(true);\r\n\t\t\t\ttfcorreo.setEditable(true);\r\n\t\t\t\tcbCiudad.setEditable(true);\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btgrabar) {\r\n\t\t\t\tif (tfrif.getText().trim().equals(\"\")\r\n\t\t\t\t\t\t|| tfrazon.getText().trim().equals(\"\")\r\n\t\t\t\t\t\t|| tfdireccion.getText().trim().equals(\"\")) {\r\n\t\t\t\t\tJOptionPane\r\n\t\t\t\t\t\t\t.showMessageDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\t\"Debe completar todos los Datos del Persona\\nIngreso de Nuevo Persona\");\r\n\t\t\t\t\ttfrif.grabFocus();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tactual.setRif(tfrif.getText().trim());\r\n\t\t\t\t\tactual.setRazon(tfrazon.getText().trim());\r\n\t\t\t\t\tactual.setDireccion(tfdireccion.getText().trim());\r\n\t\t\t\t\tactual.setTelefono(tftelefono.getText().trim());\r\n\t\t\t\t\tactual.setFacCiudad(ModCiudad.getElemento(cbCiudad.getSelectedIndex()));\r\n\t\t\t\t\tactual.setFacOficina(principal.ofic);\r\n\t\t\t\t\tif (cbCiudad.getSelectedIndex()>-1)\r\n\t\t\t\t\t\tactual.setFacCiudad(ModCiudad.getElemento(cbCiudad.getSelectedIndex()));\r\n\t\t\t\t\tactual.setCorreo(tfcorreo.getText().trim());\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSession sesion = principal.fabrica.getCurrentSession();\r\n\t\t\t\t\t\tsesion.beginTransaction();\r\n\t\t\t\t\t\tsesion.saveOrUpdate(actual);\r\n\t\t\t\t\t\tsesion.getTransaction().commit();\r\n\t\t\t\t\t} catch (HibernateException e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\"btGrabar!!!Errores de Base de Datos!!!\\n\" + e2\r\n\t\t\t\t\t\t\t\t\t\t+ \" \", \"Database Error!\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * if (pac!=null) { JOptionPane.showMessageDialog(new\r\n\t\t\t\t\t * JFrame(),\r\n\t\t\t\t\t * \"Número de Cédula ya existe!!!\",\"Database Error!\"\r\n\t\t\t\t\t * ,JOptionPane.ERROR_MESSAGE); tfcedula.grabFocus(); }\r\n\t\t\t\t\t */\r\n\t\t\t\t\tbarra.Consulta();\r\n\t\t\t\t\tif (cierra)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tAdminFactura.setFacturacion(actual);\r\n\t\t\t\t\t\tcerrarventana();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// refreshPersona();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btcancel) {\r\n\t\t\t\tif (cierra)\r\n\t\t\t\t{\r\n//\t\t\t\t\tAdminFactura.setFacturacion(actual); corregido el 12/01/2012 estaba dando error, ya que si cancela la ventana no debe grabar nada en AdminFactura.setFacturacion()\r\n\t\t\t\t\tcerrarventana();\r\n\t\t\t\t}\r\n\t\t\t\tif (buscando) {\r\n\t\t\t \tlbbuscando.setText(\"\");\r\n\t\t\t\t\tbuscando = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (actual.equals(new Persona())) actual = ultimo;\r\n\t\t\t\tbarra.Consulta();\r\n\t\t\t\trefreshFacturacion();\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btbuscar) {\r\n\t\t\t\tbarrabusca();\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btanteri) {\r\n\t\t\t\tif (buscando){\r\n\t\t\t\t\tif (tfrif.isEditable()){\r\n\t\t\t\t\t\tbuscar();\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\tactual = busqueda.get(puntero>0?--puntero:puntero);\r\n\t\t\t\t\t\tSystem.out.println(\"\"+puntero+\"/\"+busqueda.size());\r\n\t\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tFacturacion per = null;\r\n\t\t\t\t\tint text = actual.getCodigo();\r\n\t\t\t\t\tString q = \"from Facturacion where CodOficina = \"+principal.ccodoff+\" and codigo < :text order by codigo desc\";\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSession sesion = principal.fabrica.getCurrentSession();\r\n\t\t\t\t\t\tsesion.beginTransaction();\r\n\t\t\t\t\t\tQuery queryResult = sesion\r\n\t\t\t\t\t\t\t\t.createQuery(q);\r\n\t\t\t\t\t\tqueryResult.setInteger(\"text\", text);\r\n\t\t\t\t\t\tqueryResult.setMaxResults(1);\r\n\t\t\t\t\t\tper = (Facturacion) queryResult.uniqueResult();\r\n\t\t\t\t\t\tsesion.getTransaction().commit();\r\n\t\t\t\t\t} catch (HibernateException e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\"btAnterior!!!Errores de Base de Datos!!!\\n\" + e2 + \" \"\r\n\t\t\t\t\t\t\t\t\t\t+ text, \"Database Error!\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (per != null) {\r\n\t\t\t\t\t\tactual = per;\r\n\t\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btsiguie) {\r\n\t\t\t\tif (buscando){\r\n\t\t\t\t\tif (tfrif.isEditable()){\r\n\t\t\t\t\t\tbuscar();\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\tactual = busqueda.get(puntero<busqueda.size()-1?++puntero:puntero);\r\n\t\t\t\t\t\tSystem.out.println(\"\"+puntero+\"/\"+busqueda.size());\r\n\t\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tFacturacion per = null;\r\n\t\t\t\t\tint text = actual.getCodigo();\r\n\t\t\t\t\tString q = \"from Facturacion where CodOficina = \"+principal.ccodoff+\" and codigo > :text order by codigo asc\";\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSession sesion = principal.fabrica.getCurrentSession();\r\n\t\t\t\t\t\tsesion.beginTransaction();\r\n\t\t\t\t\t\tQuery queryResult = sesion\r\n\t\t\t\t\t\t\t\t.createQuery(q);\r\n\t\t\t\t\t\tqueryResult.setInteger(\"text\", text);\r\n\t\t\t\t\t\tqueryResult.setMaxResults(1);\r\n\t\t\t\t\t\tper = (Facturacion) queryResult.uniqueResult();\r\n\t\t\t\t\t\tsesion.getTransaction().commit();\r\n\t\t\t\t\t} catch (HibernateException e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\"btsiguie!!!Errores de Base de Datos!!!\\n\" + e2 + \" \"\r\n\t\t\t\t\t\t\t\t\t\t+ text, \"Database Error!\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (per != null) {\r\n\t\t\t\t\t\tactual = per;\r\n\t\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (e.getSource() == barra.btultimo) {\r\n\t\t\t\tif (buscando)\r\n\t\t\t\t{\r\n\t\t\t\t\tpuntero = busqueda.size()-1;\r\n\t\t\t\t\tif (tfrif.isEditable()){\r\n\t\t\t\t\t\tbuscar();\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\tactual = busqueda.get(puntero);\r\n\t\t\t\t\t\tSystem.out.println(\"\"+puntero+\"/\"+busqueda.size());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tactual = obtenerUltimo();\r\n\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btsalir) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t}",
"public void actualizar(Especialiadad espe,JTextField txtcodigo){\r\n\t\r\n\t\t\tConnection con = null;\r\n\t\t\tStatement stmt=null;\r\n\t\t\tint result=0;\r\n\t\t\t//stmt=con.prepareStatement(\"UPDATE Especialiadad \"\r\n\t\t\t//\t\t+ \"SET Nombre =? )\"\r\n\t\t\t\t//\t+ \"WHERE Codigo = \r\n\t\t\t\r\n try\r\n {\r\n \tcon = ConexionBD.getConnection();\r\n \t stmt = con.createStatement();\r\n \t\t // result = stmt.executeUpdate();\r\n\r\n } catch (Exception e) {\r\n \t\t e.printStackTrace();\r\n \t\t} finally {\r\n \t\t\tConexionBD.close(con);\r\n \t\t}\r\n\t\r\n\t}",
"public void actualizarImagenConError() {\n\t\tentidadGrafica.actualizarImagenConError(this.valor);\n\t}",
"private void actualizarCampos(){\n obtenerPreguntasConRespuestas();\n actualizarRespuestasActuales();\n \n _opcionMultiple.actualizarPregunta(obtenerPregunta());\n _opcionMultiple.actualizarOpcion1(\"<html>\"+_respuestasActuales.get(0).getRespuesta()+\"</html>\");\n _opcionMultiple.actualizarOpcion2(\"<html>\"+_respuestasActuales.get(1).getRespuesta()+\"</html>\");\n _opcionMultiple.actualizarOpcion3(\"<html>\"+_respuestasActuales.get(2).getRespuesta()+\"</html>\");\n _opcionMultiple.actualizarOpcion4(\"<html>\"+_respuestasActuales.get(3).getRespuesta()+\"</html>\");\n \n if(_respuestaUsuario.size()>_posicion){\n _opcionMultiple.limpiarSelecciones();\n int numeroRespuesta = _respuestasActuales.indexOf(_respuestaUsuario.get(_posicion));\n _opcionMultiple.selecionarOpcion(numeroRespuesta);\n }else{\n _opcionMultiple.limpiarSelecciones();\n }\n }",
"public void fitParams (RJGUIController.XferFittingMod xfer) {\n\n\t\t// Get sequence-specific parameters\n\n\t\tRange aRange = xfer.x_aValRangeParam;\n\t\tint aNum = xfer.x_aValNumParam;\n\t\t//validateRange(aRange, aNum, \"a-value\");\n\t\tRange pRange = xfer.x_pValRangeParam;\n\t\tint pNum = xfer.x_pValNumParam;\n\t\t//validateRange(pRange, pNum, \"p-value\");\n\t\tRange cRange = xfer.x_cValRangeParam;\n\t\tint cNum = xfer.x_cValNumParam;\n\t\t//validateRange(cRange, cNum, \"c-value\");\n\t\t\t\t\t\n\t\tdouble mc = xfer.x_mcParam;\n\t\t\t\t\t\t\t\t\t\n\t\tdouble b = xfer.x_bParam;\n\n\t\t// Save the sequence-specific parameters for possible use in analyst options\n\n\t\tfetch_fcparams.seq_spec_params = new SeqSpecRJ_Parameters (\n\t\t\tb,\n\t\t\taRange.getLowerBound(),\n\t\t\taRange.getUpperBound(),\n\t\t\taNum,\n\t\t\tpRange.getLowerBound(),\n\t\t\tpRange.getUpperBound(),\n\t\t\tpNum,\n\t\t\tcRange.getLowerBound(),\n\t\t\tcRange.getUpperBound(),\n\t\t\tcNum\n\t\t);\n\n\t\t// Magnitude of completeness info\n\t\t\t\t\t\t\n\t\tdouble mCat;\n\n\t\tMagCompFn magCompFn;\n\n\t\t// If doing time-dependent magnitude of completeness\n\t\t\t\t\t\n\t\tif (xfer.x_timeDepMcParam) {\n\n\t\t\tdouble f = xfer.x_fParam;\n\t\t\t\t\t\t\n\t\t\tdouble g = xfer.x_gParam;\n\t\t\t\t\t\t\n\t\t\tdouble h = xfer.x_hParam;\n\t\t\t\t\t\t\n\t\t\tmCat = xfer.x_mCatParam;\n\n\t\t\tmagCompFn = MagCompFn.makePageOrConstant (f, g, h);\n\t\t\t\t\t\t\n\t\t\tcur_model = new RJ_AftershockModel_SequenceSpecific(get_cur_mainshock(), get_cur_aftershocks(), mCat, magCompFn, b,\n\t\t\t\t\txfer.x_dataStartTimeParam, xfer.x_dataEndTimeParam,\n\t\t\t\t\taRange.getLowerBound(), aRange.getUpperBound(), aNum,\n\t\t\t\t\tpRange.getLowerBound(), pRange.getUpperBound(), pNum,\n\t\t\t\t\tcRange.getLowerBound(), cRange.getUpperBound(), cNum);\n\n\t\t// Otherwise, time-independent magnitude of completeness\n\n\t\t} else {\n\t\t\t\t\t\t\n\t\t\tmCat = mc;\n\n\t\t\tmagCompFn = MagCompFn.makeConstant();\n\n\t\t\tcur_model = new RJ_AftershockModel_SequenceSpecific(get_cur_mainshock(), get_cur_aftershocks(), mc, b,\n\t\t\t\t\txfer.x_dataStartTimeParam, xfer.x_dataEndTimeParam,\n\t\t\t\t\taRange.getLowerBound(), aRange.getUpperBound(), aNum,\n\t\t\t\t\tpRange.getLowerBound(), pRange.getUpperBound(), pNum,\n\t\t\t\t\tcRange.getLowerBound(), cRange.getUpperBound(), cNum);\n\t\t}\n\n\t\t// Save the magnitude-of-completeness parameters for possible use in analyst options\n\n\t\tSearchMagFn magSample = aafs_fcparams.mag_comp_params.get_fcn_magSample();\t// the original value\n\t\tSearchRadiusFn radiusSample = fetch_fcparams.mag_comp_params.get_fcn_radiusSample();\n\t\tSearchMagFn magCentroid = aafs_fcparams.mag_comp_params.get_fcn_magCentroid();\t// the original value\n\t\tSearchRadiusFn radiusCentroid = fetch_fcparams.mag_comp_params.get_fcn_radiusCentroid();\n\n\t\tfetch_fcparams.mag_comp_params = new MagCompPage_Parameters (\n\t\t\tmCat,\n\t\t\tmagCompFn,\n\t\t\tmagSample.makeForAnalystMagCat (mCat),\n\t\t\tradiusSample,\n\t\t\tmagCentroid.makeForAnalystMagCat (mCat),\n\t\t\tradiusCentroid\n\t\t);\n\n\t\t// Make the Bayesian model if possible\n\t\t\t\t\t\n\t\tbayesianModel = null;\n\t\tif (genericModel != null) {\n\t\t\tif (RJ_AftershockModel_Bayesian.areModelsEquivalent(cur_model, genericModel))\n\t\t\t\tbayesianModel = new RJ_AftershockModel_Bayesian(cur_model, genericModel);\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Could not create Bayesian model as sequence specifc and \"\n\t\t\t\t\t\t+ \"generic models are not equivalent\");\n\t\t}\n\n\t\t// Save the catalog parameters (we should already have these values)\n\n\t\tcat_dataStartTimeParam = xfer.x_dataStartTimeParam;\n\t\tcat_dataEndTimeParam = xfer.x_dataEndTimeParam;\n\t\tcat_mcParam = xfer.x_mcParam;\n\t\tcat_bParam = xfer.x_bParam;\n\n\t\treturn;\n\t}",
"@Override\n\tpublic void actualizarLinComClienImp(LineaComercialClienteImportacionDTO linComCliImpDTO)throws SICException{\n\t\ttry {\n\t\t\tLogeable.LOG_SICV2.info(\"Metodo actualizarLinComClienImp \");\n\t\t\tLogeable.LOG_SICV2.info(\"Parametros : \");\n\t\t\tLogeable.LOG_SICV2.info(\"userId : \"+linComCliImpDTO.getUserId());\n\t\t\tLogeable.LOG_SICV2.info(\"estado : \"+linComCliImpDTO.getEstado());\n\t\t\tLogeable.LOG_SICV2.info(\"codigoLineaComercial : \"+ linComCliImpDTO.getId().getCodigoLineaComercial());\n\t\t\tLogeable.LOG_SICV2.info(\"codigoClienteImportacion : \"+ linComCliImpDTO.getId().getCodigoClienteImportacion());\n\t\t\t\n\t\t\tStringBuilder query = new StringBuilder();\n\t\t\tQuery update;\n\t\t\t\t\n\t\t\thibernateH.getHibernateSession().clear();\n\t\t\t\t\n\t\t\tquery.append(\"update \").append(LineaComercialClienteImportacionDTO.class.getName()).append(\" d \")\n\t\t\t\t.append(\" set \")\n\t\t\t\t.append(\" d.fechaModificacion = CURRENT_TIMESTAMP, \")\n\t\t\t\t.append(\" d.estado = :pEstado, \")\n\t\t\t\t.append(\"d.idUsuarioModificacion = :pUsuarioModificacion \");\n\t\t\t\n\t\t\tquery.append(\" where \")\n\t\t\t\t.append(\" d.id.codigoLineaComercial = :pCodigoLineaComercial \");\n\t\t\t\n\t\t\tif(linComCliImpDTO.getId().getCodigoClienteImportacion() != null){\n\t\t\t\tquery.append(\" and d.id.codigoClienteImportacion = :pCodigoClienteImportacion \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" and d.estado = :pEstadoDiferente \");\n\t\t\t}\n\t\t\t\n\t\t\tupdate = hibernateH.getHibernateSession().createQuery(query.toString());\n\t\t\t\n\t\t\tupdate.setString(\"pUsuarioModificacion\", linComCliImpDTO.getUserId());\n\t\t\tupdate.setString(\"pEstado\",linComCliImpDTO.getEstado());\n\t\t\tupdate.setLong(\"pCodigoLineaComercial\", linComCliImpDTO.getId().getCodigoLineaComercial());\n\t\t\tif(linComCliImpDTO.getId().getCodigoClienteImportacion() != null){\n\t\t\t\tupdate.setLong(\"pCodigoClienteImportacion\",linComCliImpDTO.getId().getCodigoClienteImportacion());\n\t\t\t}else{\n\t\t\t\tupdate.setString(\"pEstadoDiferente\",(SICConstantes.ESTADO_ACTIVO_NUMERICO.equals(linComCliImpDTO.getEstado())?SICConstantes.ESTADO_INACTIVO_NUMERICO:SICConstantes.ESTADO_ACTIVO_NUMERICO));\n\t\t\t}\n\t\t\tupdate.executeUpdate();\t\n\t\t\t\n\t\t\t\n\t\t} catch (SICException e) {\n\t\t\tthrow new SICException(\"Error actualizarLinComClienImp: \",e);\n\t\t}\n\t}",
"@Action\n public void fecharTela()\n {\n try\n {\n float valor = sv.nfMoeda.parse( ftfEncaminhado.getText() ).floatValue();\n if ( valor < 0 )\n {\n JOptionPane.showMessageDialog( sv.getComponent(), \"O valor encaminhado não pode ser negativo. Tente novamente.\", \"Resultados\", JOptionPane.WARNING_MESSAGE );\n ftfEncaminhado.setText( \"\" );\n ftfEncaminhado.grabFocus();\n }\n else\n {\n bOk.grabFocus();\n jornada.setEncaminhamento( valor );\n bd.realizarEncaminhamento( valor );\n }\n }\n catch ( ParseException ex )\n {\n JOptionPane.showMessageDialog( sv.getComponent(), \"Valor informado inválido. Tente novamente.\", \"Resultados\", JOptionPane.WARNING_MESSAGE );\n Logger.getLogger( TelaResultadoJornada.class.getName() ).log( Level.SEVERE, null, ex );\n }\n catch ( SQLException e )\n {\n JOptionPane.showMessageDialog( sv.getComponent(), \"Erro ao escrever valor encaminhado no banco de dados. Informe ao responsável.\", \"Resultados\", JOptionPane.WARNING_MESSAGE );\n }\n\n // Rotina de fechamento:\n int resposta = JOptionPane.showConfirmDialog( painelPrincipal,\n \"Confirma o encaminhameto de \" + ftfEncaminhado.getText() + \" para a matriz?\",\n \"Resultados\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE );\n\n if ( resposta == JOptionPane.YES_OPTION )\n {\n resposta = JOptionPane.showConfirmDialog( painelPrincipal,\n \"Os dados de quantidade e valor vendido de cada produto foram anotados?\",\n \"Resultados\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE );\n\n if ( resposta == JOptionPane.YES_OPTION )\n {\n try\n {\n bd.setEncaminhamento( jornada );\n float novoCaixa = jornada.getCaixaFinal() - jornada.getEncaminhamento();\n sv.sugerirCaixaInicial( novoCaixa );\n dispose();\n }\n catch ( SQLException ex )\n {\n JOptionPane.showMessageDialog( painelPrincipal,\n \"Erro ao gravar valor encaminhado no banco de dados. Informe o responsável.\",\n \"Resultados\",\n JOptionPane.WARNING_MESSAGE);\n Logger.getLogger( TelaResultadoJornada.class.getName() ).log( Level.SEVERE, null, ex );\n } \n }\n }\n }",
"public void actualizarFinalizacionConvocatorias()\r\n\t{\r\n\t\tint numeroconvocatorias = 0;//numero de convocatorias en la BD\r\n\t\tList convocatorias = null;\r\n\t\ttry\r\n {\r\n Conector conector = new Conector();\r\n conector.iniciarConexionBaseDatos();\r\n convocatorias= ConvocatoriaBD.listar(conector);\r\n conector.terminarConexionBaseDatos();\r\n }\r\n catch (Exception e)\r\n\t\t{\r\n \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 if(convocatorias != null)\r\n {\r\n \tnumeroconvocatorias = convocatorias.size();\r\n }\r\n for (int i = 0; i < numeroconvocatorias; i++)\r\n\t\t{\r\n\t\t\tConvocatoria convocatoriaaux = (Convocatoria)convocatorias.get(i);\r\n\t\t\tString fechafinal = convocatoriaaux.getFechafinal();\r\n\t\t\tString horafinal = convocatoriaaux.getHorafinal();\r\n\t\t\tboolean esvigente = fechaVigente(fechafinal, horafinal);\r\n\t\t\tif(esvigente == false)\r\n\t\t\t{\r\n\t\t\t\tconvocatoriaaux.setFinalizada(\"Si\");\r\n\t\t\t\ttry \r\n\t \t\t{\r\n\t \t\t\tConector conector = new Conector();\r\n\t \t\t\tconector.iniciarConexionBaseDatos();\r\n\t \t\t\tConvocatoriaBD.actualizar(convocatoriaaux, conector);\r\n\t \t\t\tconector.terminarConexionBaseDatos();\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\t}\r\n\t\t}\r\n\t}",
"void actualizarFacturaEstadoImpuesto(Integer codigoCompania, Long codigoFacturaEstado, String userId, String estadoFacturaEstado) throws SICException;",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public void actualiza(){\r\n //pregunto si se presiono una tecla de dirección\r\n if(bTecla) {\r\n int iX = basPrincipal.getX();\r\n int iY = basPrincipal.getY();\r\n if(iDir == 1) {\r\n iY -= getHeight() / iMAXALTO;\r\n }\r\n if(iDir == 2) {\r\n iX += getWidth() / iMAXANCHO;\r\n }\r\n if(iDir == 3) {\r\n iY += getHeight() / iMAXALTO;\r\n }\r\n if(iDir == 4) {\r\n iX -= getWidth() / iMAXANCHO;\r\n }\r\n //limpio la bandera\r\n bTecla = false;\r\n \r\n //asigno posiciones en caso de no salirme\r\n if(iX >= 0 && iY >= 0 && iX + basPrincipal.getAncho() <= getWidth()\r\n && iY + basPrincipal.getAlto() <= getHeight()) {\r\n basPrincipal.setX(iX);\r\n basPrincipal.setY(iY);\r\n } \r\n }\r\n \r\n //Muevo los chimpys\r\n for(Base basChimpy : lklChimpys) {\r\n basChimpy.setX(basChimpy.getX() - iAceleracion);\r\n }\r\n \r\n //Muevo los diddys\r\n for(Base basDiddy : lklDiddys) {\r\n basDiddy.setX(basDiddy.getX() + iAceleracion);\r\n }\r\n\r\n }",
"private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }",
"public RespuestaBD modificarRegistro(int codigoFlujo, int secuencia, int servicioInicio, int accion, int codigoEstado, int servicioDestino, String nombreProcedimiento, String correoDestino, String enviar, String mismoProveedor, String mismomismoCliente, String estado, int caracteristica, int caracteristicaValor, int caracteristicaCorreo, String metodoSeleccionProveedor, String indCorreoCliente, String indHermana, String indHermanaCerrada, String indfuncionario, String usuarioModificacion) {\n/* 437 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* */ try {\n/* 440 */ String s = \"update wkf_detalle set servicio_inicio=\" + servicioInicio + \",\" + \" accion=\" + accion + \",\" + \" codigo_estado=\" + codigoEstado + \",\" + \" servicio_destino=\" + ((servicioDestino == 0) ? \"null\" : Integer.valueOf(servicioDestino)) + \",\" + \" nombre_procedimiento='\" + nombreProcedimiento + \"',\" + \" correo_destino='\" + correoDestino + \"',\" + \" enviar_solicitud='\" + enviar + \"',\" + \" ind_mismo_proveedor='\" + mismoProveedor + \"',\" + \" ind_mismo_cliente='\" + mismomismoCliente + \"',\" + \" estado='\" + estado + \"',\" + \" caracteristica=\" + ((caracteristica == 0) ? \"null\" : (\"\" + caracteristica)) + \",\" + \" valor_caracteristica=\" + ((caracteristicaValor == 0) ? \"null\" : (\"\" + caracteristicaValor)) + \",\" + \" caracteristica_correo=\" + ((caracteristicaCorreo == 0) ? \"null\" : (\"\" + caracteristicaCorreo)) + \",\" + \" metodo_seleccion_proveedor=\" + ((metodoSeleccionProveedor.length() == 0) ? \"null\" : (\"'\" + metodoSeleccionProveedor + \"'\")) + \",\" + \" ind_correo_clientes=\" + ((indCorreoCliente.length() == 0) ? \"null\" : (\"'\" + indCorreoCliente + \"'\")) + \",\" + \" enviar_hermana=\" + ((indHermana.length() == 0) ? \"null\" : (\"'\" + indHermana + \"'\")) + \",\" + \" enviar_si_hermana_cerrada=\" + ((indHermanaCerrada.length() == 0) ? \"null\" : (\"'\" + indHermanaCerrada + \"'\")) + \",\" + \" ind_cliente_inicial=\" + ((indfuncionario.length() == 0) ? \"null\" : (\"'\" + indfuncionario + \"'\")) + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \"\" + \" where\" + \" codigo_flujo=\" + codigoFlujo + \" and secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 465 */ rta = this.dat.executeUpdate2(s);\n/* */ }\n/* 467 */ catch (Exception e) {\n/* 468 */ e.printStackTrace();\n/* 469 */ Utilidades.writeError(\"FlujoDetalleDAO:modificarRegistro \", e);\n/* 470 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 472 */ return rta;\n/* */ }",
"@Override\n\tpublic void pausaParaComer() {\n\n\t}",
"public void actualizarValorCambioInformacionDeshacerNotaIngresoConsolidado(Integer codigoCompania, Long codigoFacturaNotaIngreso, String codigoUsuario)throws SICException;",
"@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }",
"private void commitApuesta() {\n\t\tif(tipo != -1){\n\t\t\tmodelo.setDestLogin(ModeloApuestas.DEST_APOSTUBERRI);\n\t\t\tmodelo.setApuestaInProgress(apostado.get(), tipo);\n\t\t\tif(!myController.isScreenLoaded(\"login\")){\n\t\t\t\tmyController.loadScreen(ScreensFramework.Login, ScreensFramework.Login_FXML);\n\t\t\t}\n\t\t\tmyController.setScreenOverlay(\"login\");\n\t\t}\n\t\t\n\t\t\n\t}",
"public void actualizar() {\n\t\testado = EstadoValidacion.SIN_VALIDAR;\n\t}",
"public void setParameters(Map<String, String> param) {\n\n // check the occurrence of required parameters\n if(!(param.containsKey(\"Indri:mu\") && param.containsKey(\"Indri:lambda\"))){\n throw new IllegalArgumentException\n (\"Required parameters for IndriExpansion model were missing from the parameter file.\");\n }\n\n this.mu = Double.parseDouble(param.get(\"Indri:mu\"));\n if(this.mu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:mu\") + \", mu is a real number >= 0\");\n\n this.lambda = Double.parseDouble(param.get(\"Indri:lambda\"));\n if(this.lambda < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:lambda\") + \", lambda is a real number between 0.0 and 1.0\");\n\n if((param.containsKey(\"fb\") && param.get(\"fb\").equals(\"true\"))) {\n this.fb = \"true\";\n\n this.fbDocs = Integer.parseInt(param.get(\"fbDocs\"));\n if (this.fbDocs <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbDocs\") + \", fbDocs is an integer > 0\");\n\n this.fbTerms = Integer.parseInt(param.get(\"fbTerms\"));\n if (this.fbTerms <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbTerms\") + \", fbTerms is an integer > 0\");\n\n this.fbMu = Integer.parseInt(param.get(\"fbMu\"));\n if (this.fbMu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbMu\") + \", fbMu is an integer >= 0\");\n\n this.fbOrigWeight = Double.parseDouble(param.get(\"fbOrigWeight\"));\n if (this.fbOrigWeight < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbOrigWeight\") + \", fbOrigWeight is a real number between 0.0 and 1.0\");\n\n if (param.containsKey(\"fbInitialRankingFile\") && param.get(\"fbInitialRankingFile\") != \"\") {\n this.fbInitialRankingFile = param.get(\"fbInitialRankingFile\");\n try{\n this.initialRanking = readRanking();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n if (param.containsKey(\"fbExpansionQueryFile\") && param.get(\"fbExpansionQueryFile\") != \"\")\n this.fbExpansionQueryFile = param.get(\"fbExpansionQueryFile\");\n }\n }",
"public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }",
"public void actualizarProyectosFinanciados() {\r\n\t\t\r\n\t\tDouble financiacion;\r\n\t\tfor(Proyecto p: this.proyectos) {\r\n\t\t\tif(p.getEstadoProyecto()== EstadoProyecto.PENDIENTEFINANCIACION) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfinanciacion = CCGG.getGateway().getAmountGranted( p.getIdSeguimientoSistemaFinanciacion() );\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(financiacion > 0) {\r\n\t\t\t\t\t\tp.financiarProyecto(financiacion);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tp.rechazarProyecto(\"El sistema de financiacion ha denegado la financiacion del proyecto\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch ( NullPointerException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} catch ( Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Campo campoDataInizio;\n Campo campoDataFine;\n Campo campoConto;\n Date dataIniziale;\n Date dataFinale;\n int numPersone;\n ContoModulo modConto;\n\n\n String titolo = \"Esecuzione addebiti fissi\";\n AddebitoFissoPannello pannello;\n Date dataInizio;\n Pannello panDate;\n Campo campoStato;\n Filtro filtro;\n int codConto;\n int codCamera;\n\n\n try { // prova ad eseguire il codice\n\n /* recupera dati generali */\n modConto = Albergo.Moduli.Conto();\n codConto = this.getCodConto();\n codCamera = modConto.query().valoreInt(Conto.Cam.camera.get(), codConto);\n numPersone = CameraModulo.getNumLetti(codCamera);\n\n /* crea il pannello servizi e vi registra la camera\n * per avere l'anteprima dei prezzi*/\n pannello = new AddebitoFissoPannello();\n this.setPanServizi(pannello);\n pannello.setNumPersone(numPersone);\n this.setTitolo(titolo);\n\n// /* regola date suggerite */\n// dataFinale = Progetto.getDataCorrente();\n// dataInizio = Lib.Data.add(dataFinale, -1);\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(nomeDataIni);\n campoDataInizio.decora().obbligatorio();\n// campoDataInizio.setValore(dataInizio);\n\n campoDataFine = CampoFactory.data(nomeDataFine);\n campoDataFine.decora().obbligatorio();\n// campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = CampoFactory.comboLinkSel(nomeConto);\n campoConto.setNomeModuloLinkato(Conto.NOME_MODULO);\n campoConto.setLarScheda(180);\n campoConto.decora().obbligatorio();\n campoConto.decora().etichetta(\"conto da addebitare\");\n campoConto.setUsaNuovo(false);\n campoConto.setUsaModifica(false);\n\n /* inizializza e assegna il valore (se non inizializzo\n * il combo mi cambia il campo dati e il valore si perde)*/\n campoConto.inizializza();\n campoConto.setValore(this.getCodConto());\n\n /* filtro per vedere solo i conti aperti dell'azienda corrente */\n campoStato = modConto.getCampo(Conto.Cam.chiuso.get());\n filtro = FiltroFactory.crea(campoStato, false);\n filtro.add(modConto.getFiltroAzienda());\n campoConto.getCampoDB().setFiltroCorrente(filtro);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.creaBordo(\"Periodo da addebitare\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(campoConto);\n\n this.addPannello(panDate);\n this.addPannello(this.getPanServizi());\n\n this.regolaCamera();\n\n /* recupera la data iniziale (oggi) */\n dataIniziale = AlbergoLib.getDataProgramma();\n\n /* recupera la data di partenza prevista dal conto */\n modConto = ContoModulo.get();\n dataFinale = modConto.query().valoreData(Conto.Cam.validoAl.get(),\n this.getCodConto());\n\n /* recupera il numero di persone dal conto */\n numPersone = modConto.query().valoreInt(Conto.Cam.numPersone.get(),\n this.getCodConto());\n\n /* regola date suggerite */\n campoDataInizio = this.getCampo(nomeDataIni);\n campoDataInizio.setValore(dataIniziale);\n\n campoDataFine = this.getCampo(nomeDataFine);\n campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = this.getCampo(nomeConto);\n campoConto.setAbilitato(false);\n\n /* regola la data iniziale di riferimento per l'anteprima dei prezzi */\n Date data = (Date)campoDataInizio.getValore();\n this.getPanServizi().setDataPrezzi(data);\n\n /* regola il numero di persone dal conto */\n this.getPanServizi().setNumPersone(numPersone);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"public void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);",
"@Override\n\tpublic void acelerar() {\n\t\t// TODO Auto-generated method stub\n\t\t\t\tvelocidadActual += 40;\n\t\t\t\tif(velocidadActual>250) {\n\t\t\t\t\tvelocidadActual = 250;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdepositoActual -= 10;\n\t\t\t\tSystem.out.println(\"Velocidad del ferrari: \"+velocidadActual);\n\t}",
"@Override\n\t\tpublic void afectarPorTormentaPsionica(double coeficiente) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void afectarPorTormentaPsionica(double coeficiente) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void afectarPorTormentaPsionica(double coeficiente) {\n\t\t\t\n\t\t}",
"public void reversarComprobante() {\r\n if (tab_tabla1.getTotalFilas() > 0) {\r\n String ide_cnccc_anular = tab_tabla1.getValor(\"ide_cnccc\");\r\n // realizo el asiento de reversa\r\n con.reversar(ide_cnccc_anular, \"Asiento de reversa de la transaccion num: \" + ide_cnccc_anular, con);\r\n String ide_cnccc_nuevo = con.getTab_cabecera().getValor(\"ide_cnccc\");\r\n if (ide_cnccc_nuevo != null && !ide_cnccc_nuevo.isEmpty()) {\r\n // cambio el estado de libro bancos a anulado\r\n utilitario.getConexion().agregarSqlPantalla(\"update tes_cab_libr_banc set ide_teelb=1 where ide_cnccc=\" + ide_cnccc_anular);\r\n // consulto si tiene Documentos por Pagar\r\n TablaGenerica tab_cxp_cab_fact = utilitario.consultar(\"select * from cxp_cabece_factur where ide_cnccc=\" + ide_cnccc_anular);\r\n if (tab_cxp_cab_fact.getTotalFilas() > 0) {\r\n // cambio elestado a anulado de la factura\r\n utilitario.getConexion().agregarSqlPantalla(\"update cxp_cabece_factur set ide_cpefa=1 where ide_cnccc=\" + ide_cnccc_anular);\r\n cls_cuentas_x_pagar cxp = new cls_cuentas_x_pagar();\r\n // reverso la transaccion CxP\r\n cxp.reversar(ide_cnccc_nuevo, tab_cxp_cab_fact.getValor(0, \"ide_cpcfa\"), \"Reversa CxP de fact. num:\" + tab_cxp_cab_fact.getValor(0, \"numero_cpcfa\") + \" y asiento num:\" + ide_cnccc_anular, null);\r\n // hago reversa de inventario\r\n TablaGenerica tab_inv_cab_inv = utilitario.consultar(\"select * from inv_cab_comp_inve where ide_cnccc=\" + ide_cnccc_anular);\r\n if (tab_inv_cab_inv.getTotalFilas() > 0) {\r\n cls_inventario inv = new cls_inventario();\r\n inv.reversar_menos(ide_cnccc_nuevo, tab_inv_cab_inv.getValor(0, \"ide_cnccc\"), \"Reversa de comprobante num:\" + ide_cnccc_anular);\r\n }\r\n }\r\n\r\n boolean boo_asiento_costos = false;\r\n String ide_asiento_costos = \"-1\";\r\n // consulto si tiene CXC\r\n\r\n TablaGenerica tab_cxc_cab_fact = utilitario.consultar(\"select * from cxc_cabece_factura where ide_cnccc=\" + ide_cnccc_anular);\r\n if (tab_cxc_cab_fact.getTotalFilas() > 0) {\r\n // cambio elestado a anulado de la factura cxc si tiene\r\n utilitario.getConexion().agregarSqlPantalla(\"update cxc_cabece_factura set ide_ccefa=1 where ide_cnccc=\" + ide_cnccc_anular);\r\n cls_cuentas_x_cobrar cxc = new cls_cuentas_x_cobrar();\r\n //cxc.reversar(ide_cnccc_nuevo, tab_cxc_cab_fact.getValor(0, \"ide_cccfa\"), \"Reversa CxP de fact. num:\" + tab_cxc_cab_fact.getValor(0, \"secuencial_cccfa\") + \" y asiento num:\" + ide_cnccc_anular);\r\n TablaGenerica tab_inv_cab_inv = utilitario.consultar(\"select * from inv_cab_comp_inve where ide_incci in ( \"\r\n + \"select ide_incci from inv_det_comp_inve where ide_cccfa=\" + tab_cxc_cab_fact.getValor(0, \"ide_cccfa\") + \" GROUP BY ide_incci)\");\r\n if (tab_inv_cab_inv.getTotalFilas() > 0) {\r\n cls_inventario inv = new cls_inventario();\r\n // reverso inventario\r\n inv.reversar_mas(ide_cnccc_nuevo, tab_inv_cab_inv.getValor(0, \"ide_cnccc\"), \"Reversa de comprobante num:\" + ide_cnccc_anular);\r\n // reverso el comprobante de costos\r\n boo_asiento_costos = true;\r\n ide_asiento_costos = tab_inv_cab_inv.getValor(0, \"ide_cnccc\");\r\n }\r\n }\r\n\r\n utilitario.getConexion().guardarPantalla();\r\n tab_tabla1.setFilaActual(con.getTab_cabecera().getValor(\"ide_cnccc\"));\r\n tab_tabla1.ejecutarSql();\r\n if (boo_asiento_costos == true) {\r\n con.limpiar();\r\n con.reversar(ide_asiento_costos, \"Asiento de reversa asiento costos de la transaccion num: \" + ide_cnccc_anular, con);\r\n utilitario.getConexion().guardarPantalla();\r\n }\r\n }\r\n }\r\n }",
"public void actualizarImagen() {\n\t\tentidadGrafica.actualizarImagen(this.valor);\n\t}",
"public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }",
"public void modifier(){\r\n try {\r\n //affectation des valeur \r\n echeance_etudiant.setIdEcheanceEtu(getViewEtudiantInscripEcheance().getIdEcheanceEtu()); \r\n \r\n echeance_etudiant.setAnneeaca(getViewEtudiantInscripEcheance().getAnneeaca());\r\n echeance_etudiant.setNumetu(getViewEtudiantInscripEcheance().getNumetu());\r\n echeance_etudiant.setMatricule(getViewEtudiantInscripEcheance().getMatricule());\r\n echeance_etudiant.setCodeCycle(getViewEtudiantInscripEcheance().getCodeCycle());\r\n echeance_etudiant.setCodeNiveau(getViewEtudiantInscripEcheance().getCodeNiveau());\r\n echeance_etudiant.setCodeClasse(getViewEtudiantInscripEcheance().getCodeClasse());\r\n echeance_etudiant.setCodeRegime(getViewEtudiantInscripEcheance().getCodeRegime());\r\n echeance_etudiant.setDrtinscri(getViewEtudiantInscripEcheance().getInscriptionAPaye());\r\n echeance_etudiant.setDrtforma(getViewEtudiantInscripEcheance().getFormationAPaye()); \r\n \r\n echeance_etudiant.setVers1(getViewEtudiantInscripEcheance().getVers1());\r\n echeance_etudiant.setVers2(getViewEtudiantInscripEcheance().getVers2());\r\n echeance_etudiant.setVers3(getViewEtudiantInscripEcheance().getVers3());\r\n echeance_etudiant.setVers4(getViewEtudiantInscripEcheance().getVers4());\r\n echeance_etudiant.setVers5(getViewEtudiantInscripEcheance().getVers5());\r\n echeance_etudiant.setVers6(getViewEtudiantInscripEcheance().getVers6()); \r\n \r\n //modification de l'utilisateur\r\n echeance_etudiantFacadeL.edit(echeance_etudiant); \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur de modification capturée : \"+e);\r\n } \r\n }",
"public void getFactorPoliticaConv(ReformaTributariaInput reformaTributaria)throws Exception {\n Connection conn = null;\n CallableStatement call = null;\n \n try {\n\n conn = this.getConnection();\n //Deudas que forman parte de la propuesta, pero no son propias del contribuyente\n call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.Status_Contribuyente(?,?,?,?)}\");\n call.setLong(1,reformaTributaria.getRutContribuyente().intValue());/*Rut Contribuyente */\n call.registerOutParameter(2, OracleTypes.INTEGER);/*Comportamiento*/\n call.registerOutParameter(3, OracleTypes.INTEGER);/*Embargo*/\n call.registerOutParameter(4, OracleTypes.INTEGER);/*Mipe*/\n \n \n call.execute();\n\n\n reformaTributaria.setComportamientoConvenio(new Integer(call.getObject(2).toString()));\n int garantia = Integer.parseInt(call.getObject(3).toString());\n int pyme = Integer.parseInt(call.getObject(4).toString());\n \n //System.out.println(\"-------garantia-------- \"+garantia);\n //System.out.println(\"-------pyme-------- \"+pyme);\n \n \n //reformaTributaria.setTieneGarantia(tieneGarantia)(new Integer(call.getObject(3).toString()));\n //reformaTributaria.setBeneficioPyme(new Integer(call.getObject(4).toString()));\n if (garantia==1){\n \t reformaTributaria.setTieneGarantia(new Boolean(true));\n }else{\n \t reformaTributaria.setTieneGarantia(new Boolean(false));\n }\n\n if (pyme==1){\n \t reformaTributaria.setBeneficioPyme(new Boolean(true));\n }else{\n \t reformaTributaria.setBeneficioPyme(new Boolean(false));\n }\n \n \n call.close(); \n \n }catch (Exception e) {\n e.printStackTrace();\n }\n finally{\n this.closeConnection();\n }\n\t\t\n }",
"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}",
"@Override\n\tprotected void setParameterValues() {\n\t}",
"public void actualizarPodio() {\r\n\t\tordenarXPuntaje();\r\n\t\tint tam = datos.size();\r\n\t\traizPodio = datos.get(tam-1);\r\n\t\traizPodio.setIzq(datos.get(tam-2));\r\n\t\traizPodio.setDer(datos.get(tam-3));\r\n\t}",
"public void modifica(DTOAcreditacionGafetes acreGafete) throws Exception ;",
"@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }",
"@Override\r\n\tpublic void actualizar(int id_evento_vista, Object datos) {\r\n\t\t//Borra lo anterior\r\n \t\r\n \t jFormattedTextFieldPiso.setText(\"\");\r\n jFormattedTextFieldNumero.setText(\"\");\r\n jFormattedTextFieldTipo.setText(\"\");\r\n \r\n\t\t\r\n\t\tif(id_evento_vista == EventoVista.ALTA_HABITACION_EXITO){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Se ha creado la Habitacion con exito\", \"Nuevo Habitacion\", JOptionPane.INFORMATION_MESSAGE);\t\t\r\n\t\t}\t\r\n\t\r\n\t\telse if (id_evento_vista == EventoVista.ALTA_HABITACION_FALLO){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"ERROR!! Ha ocurrido un error con la BD\", \"Nuevo Habitacion\", JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void alterar(Telefone vo) throws Exception {\n\t\t\r\n\t}",
"public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }",
"public void actualizarActividad (Actividad act) {\r\n String query = \"UPDATE actividad SET identificacion_navegate = \\\"\" + act.getIdentificacionNavegante() \r\n + \"\\\", numero_matricula = \\\"\" + act.getNumeroMatricula() \r\n + \"\\\", fecha = \\\"\" + act.getFecha() \r\n + \"\\\", hora = \\\"\" + act.getHora() \r\n + \"\\\", destino = \\\"\" + act.getDestino() \r\n + \"\\\" WHERE id_salida = \\\"\" + act.getIdentificacionSalida() + \"\\\"\";\r\n try {\r\n Statement st = con.createStatement();\r\n st.executeUpdate(query);\r\n st.close();\r\n JOptionPane.showMessageDialog(null, \"Actividad actualizada\", \"Operación exitosa\", JOptionPane.INFORMATION_MESSAGE);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n }",
"@Override\r\n /* OSINE791 - RSIS1 - Inicio */\r\n //public ExpedienteDTO asignarOrdenServicio(ExpedienteDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO) throws ExpedienteException{\r\n public ExpedienteGSMDTO asignarOrdenServicio(ExpedienteGSMDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO,String sigla) throws ExpedienteException{\r\n LOG.error(\"asignarOrdenServicio\");\r\n ExpedienteGSMDTO retorno=expedienteDTO;\r\n try{\r\n //cambiarEstado expediente \r\n \tExpedienteGSMDTO expedCambioEstado=cambiarEstadoProceso(expedienteDTO.getIdExpediente(),expedienteDTO.getPersonal().getIdPersonal(),expedienteDTO.getPersonal().getIdPersonal(),expedienteDTO.getPersonal().getIdPersonal(),expedienteDTO.getEstadoProceso().getIdEstadoProceso(),null,usuarioDTO);\r\n LOG.info(\"expedCambioEstado:\"+expedCambioEstado);\r\n //update expediente\r\n PghExpediente registroDAO = crud.find(expedienteDTO.getIdExpediente(), PghExpediente.class);\r\n registroDAO.setDatosAuditoria(usuarioDTO);\r\n if(expedienteDTO.getTramite()!=null){\r\n registroDAO.setIdTramite(new PghTramite(expedienteDTO.getTramite().getIdTramite()));\r\n }else if(expedienteDTO.getProceso()!=null){\r\n registroDAO.setIdProceso(new PghProceso(expedienteDTO.getProceso().getIdProceso()));\r\n }\r\n if(expedienteDTO.getObligacionTipo()!=null){\r\n registroDAO.setIdObligacionTipo(new PghObligacionTipo(expedienteDTO.getObligacionTipo().getIdObligacionTipo()));\r\n }\r\n if(expedienteDTO.getObligacionSubTipo()!=null && expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()!=null){\r\n registroDAO.setIdObligacionSubTipo(new PghObligacionSubTipo(expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()));\r\n }\r\n registroDAO.setIdUnidadSupervisada(new MdiUnidadSupervisada(expedienteDTO.getUnidadSupervisada().getIdUnidadSupervisada()));\r\n crud.update(registroDAO);\r\n //inserta ordenServicio\r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.registrar(expedienteDTO.getIdExpediente(), \r\n expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), expedienteDTO.getOrdenServicio().getEstadoProceso().getIdEstadoProceso(), \r\n /* OSINE791 - RSIS1 - Inicio */\r\n //codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO);\r\n codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,sigla);\r\n /* OSINE791 - RSIS1 - Fin */\r\n LOG.info(\"OrdenServicioDTO:\"+OrdenServicioDTO.getNumeroOrdenServicio());\r\n //busca idPersonalDest\r\n PersonalDTO personalDest=null;\r\n List<PersonalDTO> listPersonalDest=null;\r\n if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)){\r\n listPersonalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null));\r\n }else if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)){\r\n listPersonalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa()));\r\n }\r\n if(listPersonalDest==null || listPersonalDest.isEmpty() || listPersonalDest.get(0).getIdPersonal()==null){\r\n throw new ExpedienteException(\"La Empresa Supervisora no tiene un Personal asignado\",null);\r\n }else{\r\n personalDest=listPersonalDest.get(0);\r\n }\r\n //inserta historico Orden Servicio\r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistorico=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstado=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistorico.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstado:\"+historicoEstado);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n retorno=ExpedienteGSMBuilder.toExpedienteDto(registroDAO);\r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n }catch(Exception e){\r\n LOG.error(\"error en asignarOrdenServicio\",e);\r\n ExpedienteException ex = new ExpedienteException(e.getMessage(), e);\r\n throw ex;\r\n }\r\n return retorno;\r\n }",
"public void actualizarPorTipoIdentificacion()\r\n/* 686: */ {\r\n/* 687:755 */ cargarListaTipoComprobanteSRI();\r\n/* 688:756 */ cargarListaCreditoTributarioSRI();\r\n/* 689: */ }",
"@Override\n\tpublic void alterar(Parcela entidade) {\n\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public void llenarCafetera() {\n\t\tthis.setCantidadActual(this.get_capacidadMaxima());\n\t}",
"private void ActualizaPosicionesFondos() {\n xFondo-=10; //Es el cursor de la posición\n xFondoBase-=10; //Aqui se puede implementar metodo de modificacion de velocidad de fondo.\n xFondoApoyo-=10;\n if (xFondo == -texturaFondoBase.getWidth()){\n xFondoBase = xFondoApoyo+texturaFondoApoyo.getWidth();\n cambiosFondo++;\n }\n if (xFondo == -(texturaFondoApoyo.getWidth()+texturaFondoBase.getWidth())) {\n xFondoApoyo = xFondoBase+texturaFondoBase.getWidth();\n cambiosFondo++;\n }\n }",
"@ConfigOperation\n @Order(50)\n protected void execChangedValue() throws ProcessingException {\n }",
"@Override\r\n\tpublic void funcionalidad(boolean aceptado) {\r\n\t\tif (aceptado) {\r\n\t\t\tbtn_guardar.removeAll();\r\n\t\t\tbtn_cancelar.removeAll();\r\n\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\tbtn_crear.setVisible(true);\r\n\r\n\t\t\tif (validarDatos()) {\r\n\t\t\t\t// Actualizar miOferta\r\n\t\t\t\tmiOferta.setDescripcion(txArea_descripcion.getText());\r\n\t\t\t\tmiOferta.setLugar(txField_lugar.getText());\r\n\t\t\t\tmiOferta.setExperiencia(Float.parseFloat(txField_experiencia.getText()));\r\n\t\t\t\tmiOferta.setContrato(((Contrato) combo_contrato.getSelectedItem()));\r\n\t\t\t\tmiOferta.setSalarioMax(Integer.parseInt(txField_sueldoMax.getText()));\r\n\t\t\t\tmiOferta.setSalarioMin(Integer.parseInt(txField_sueldoMin.getText()));\r\n\t\t\t\tmiOferta.setAspectosImprescindibles(txArea_aspectosImpres.getText());\r\n\t\t\t\tmiOferta.setAspectosAValorar(txArea_aspectosValorar.getText());\r\n\t\t\t\tmiOferta.setConocimientos(pa_conocimientos.getConocimientosAnadidos());\r\n\t\t\t}\r\n\r\n\t\t\ttry {\r\n\t\t\t\tUtilidadesBD.actualizarOferta(miOferta);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n public void atualizarFuncionario(Funcionario funcionario) throws Exception {\n rnFuncionario.atualizar(funcionario);\r\n }"
] | [
"0.62460756",
"0.6231654",
"0.6220934",
"0.6144811",
"0.6130315",
"0.60432714",
"0.5998797",
"0.59964603",
"0.5954546",
"0.59532547",
"0.5940867",
"0.5937215",
"0.5913365",
"0.5913209",
"0.5905096",
"0.5844176",
"0.5835814",
"0.582254",
"0.5820767",
"0.57696253",
"0.57695",
"0.576855",
"0.57682204",
"0.57626975",
"0.57592696",
"0.5740518",
"0.57330847",
"0.5718503",
"0.5713679",
"0.56812906",
"0.5679032",
"0.5676689",
"0.5676141",
"0.56580573",
"0.5649341",
"0.56343234",
"0.5633937",
"0.56278217",
"0.56169444",
"0.56139064",
"0.56037307",
"0.55854404",
"0.5580415",
"0.5579787",
"0.5570508",
"0.5569997",
"0.5562095",
"0.5555118",
"0.55439776",
"0.5538183",
"0.55350035",
"0.5530808",
"0.5529889",
"0.5528991",
"0.5522451",
"0.5512558",
"0.55084693",
"0.5505227",
"0.55036926",
"0.55028987",
"0.549853",
"0.54913133",
"0.549008",
"0.5486472",
"0.5483238",
"0.5474826",
"0.5467192",
"0.54636425",
"0.546148",
"0.5448602",
"0.5445942",
"0.54456824",
"0.544292",
"0.5434382",
"0.54253966",
"0.54245645",
"0.54245645",
"0.54245645",
"0.541529",
"0.5414528",
"0.5407335",
"0.5400983",
"0.53978246",
"0.5397507",
"0.5390245",
"0.5387535",
"0.5385988",
"0.5381012",
"0.53779674",
"0.53778785",
"0.5377794",
"0.5375117",
"0.53742456",
"0.53733456",
"0.5369507",
"0.53641695",
"0.5363347",
"0.5347643",
"0.5347303",
"0.5346144",
"0.53440714"
] | 0.0 | -1 |
Un bean inyectado debe tener sus metodos accesores: | public void setBeanLogin(BeanLogin beanLogin) {
this.beanLogin = beanLogin;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ObjetosBeans() {\n this.init();\n }",
"public ClasificacionBean() {\r\n }",
"public AsignacionCamaBean() {\r\n bussinessFacade = new BussinessFacade();\r\n apoderadoFacade = new ApoderadoFacade();\r\n especialidadFacade = new EspecialidadFacade();\r\n asignacionCama = new AsignacionCama();\r\n camaFacade = new CamaFacade();\r\n asignacionCamaFacade = new AsignacionCamaFacade();\r\n ingresoHospitalizadosFacade = new IngresoHospitalizadosFacade();\r\n estadoPacienteFacade = new EstadoPacienteFacade();\r\n tipoCamaFacade = new TipoCamaFacade();\r\n ih = new IngresoHospitalizados();\r\n }",
"public clientesBean() {\n this.clie = new Clientes();\n }",
"public ListarInscritosManagedBean() {\n this.member1Service = new Member1Service();\n }",
"public GrlFornecedorNovoBean()\n {\n fornecedor = getInstanciaFornecedor();\n }",
"public FuncionarioBean() {\n }",
"public PersonaBean() {\n domicilio = new Domicilio();\n telefono = new Telefono();\n correoElectronico = new CorreoElectronico();\n persona = new Persona();\n this.tipoOperacion = \"Alta\";\n\n }",
"public DonusturucuBean() {\n }",
"protected AccessionSessionBean getgermplasm$AccessionSessionBean() {\n return (AccessionSessionBean) getBean(\"germplasm$AccessionSessionBean\");\n }",
"@PostConstruct\n\tpublic void inicializar() {\n\t}",
"public AtributoAsientoBean() {\n }",
"public GestorAhorcadoManagedBean() {\r\n ahorcado = new Ahorcado();\r\n }",
"public RegistroBean() {\r\n }",
"@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n seguimientoController = context.getApplication().evaluateExpressionGet(context, \"#{seguimientoController}\", SeguimientoController.class);\n programaAnoController = context.getApplication().evaluateExpressionGet(context, \"#{programaAnoController}\", ProgramaAnoController.class);\n }",
"public UsuariosBean() {\n }",
"@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n seqTurnoController = context.getApplication().evaluateExpressionGet(context, \"#{turnoController}\", TurnoController.class);\n seqPessoaController = context.getApplication().evaluateExpressionGet(context, \"#{pessoaController}\", PessoaController.class);\n seqEscolaController = context.getApplication().evaluateExpressionGet(context, \"#{escolaController}\", EscolaController.class);\n seqAnoController = context.getApplication().evaluateExpressionGet(context, \"#{anoController}\", AnoController.class);\n }",
"public PerfilActBean() {\r\n }",
"@Local\npublic interface IGestionarUsuarioBean {\n\n\t\n\t/**\n\t * \n\t * Metodo encargado de crear un usuario y persistirlo\n\t * \n\t * @author ccastano\n\t * \n\t * @param comicNuevo informacion nueva a crear\n\t */\n\tpublic ResultadoDTO crearUsuario(UsuarioDTO UsuarioDTO)throws EntityExistsException, IllegalArgumentException;\n\n\t/**\n\t * \n\t * Metodo encargado de consultar un usuari o modificar su nombre y guardarlo\n\t * \n\t * @author ccastano\n\t * \n\t * @param comicModificar informacion nueva a modificar\n\t */\n\tpublic ResultadoDTO modificarUsuario(String id, String nombre, UsuarioDTO usuarioDTO)throws IllegalArgumentException;\n\n\t/**\n\t * \n\t * Metodo encargado de eliminar un afiliado modificarlo y guardarlo\n\t * \n\t * @author ccastano\n\t * \n\t * @param comicEliminar informacion a eliminar\n\t */\n\tpublic void ponerUsuarioInactivo(String idUsuario);\n\n\t/**\n\t * \n\t * Metodo encargado de retornar la informacion de un usuario\n\t * \n\t * @param idUsuario identificador del usuarioo a ser consultado\n\t * @return usuario Resultado de la consulta\n\t * @throws Exception si no se recibe idComic\n\t */\n\tpublic UsuarioDTO consultarUsuario(String idAfiliado);\n\n\t/**\n\t * \n\t * Metodo encargado de retornar una lista de usuarios\n\t * \n\t * @return\n\t */\n\tpublic List<UsuarioDTO> consultarUsuarios();\n\t\n\t/**\n\t * metodo encargado de validar fecha de ingreso\n\t * @param fechaIngresada\n\t * @return true si es una fecha valida, flase de lo contrario\n\t */\n\tpublic Boolean validarFecha(LocalDate fechaIngresada);\n\t\n\t/**\n\t * metodo encargado de validar si un usuario esta activo\n\t * @param idUsuario\n\t * @return true si el usuario esta activo , false de lo contrario\n\t */\n\tpublic Boolean validarUsuarioActivo(String idUsuario);\n\t\n\t\n}",
"@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n oferenteController = context.getApplication().evaluateExpressionGet(context, \"#{oferenteController}\", OferenteController.class);\n expedienteprocesoController = context.getApplication().evaluateExpressionGet(context, \"#{expedienteprocesoController}\", ExpedienteprocesoController.class);\n }",
"Object getBean();",
"private RepositorioOrdemServicoHBM() {\n\n\t}",
"public editarUsuarioBean() {\r\n }",
"public CalificacionBean() {\n }",
"@Override\r\n\tprotected void criarNovoBean() {\r\n\t\tcurrentBean = new MarcaOsEntity();\r\n\t}",
"public UIUserLogginMangementBean() {\n }",
"public CarAccessBean () {\n super();\n }",
"@PostConstruct\n public void init() {\n super.setFacade(ejbFacadeFacturaIngreso);\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 }",
"ComponentBean getBean();",
"public CrudCasinosBean() {\r\n }",
"public ProductosBean() {\r\n }",
"public ModificarPerfilBean() {\r\n }",
"@PostConstruct\r\n public void leerListaUsuarios() {\r\n listaUsuarios.addAll(usuarioFacadeLocal.findAll());\r\n }",
"public interface BeanAutowired {\n}",
"public userBean() {\r\n }",
"public ContactoFormBean() {\r\n setContexto();\r\n }",
"void register(final Bean bean);",
"private AggregatorBeanAssistant() { }",
"public ProduitManagedBean() {\r\n\t\tthis.produit = new Produit();\r\n//\t\tthis.categorie = new Categorie();\r\n\t}",
"public PessoaService(){\n\t\n\t\tApplicationContext context =SpringUtil.getContext();\n\t\tdb = context.getBean(PessoaRepository.class);\n\t\t\n\t}",
"public AccountManagerBean() {\n account = new Account();\n staff = new Staff();\n student = new Student();\n role = new Role();\n }",
"public ProductoListarBean() {\r\n }",
"@Override\n public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"public ListUserBean(){\n \n }",
"@PostConstruct\r\n\tpublic void init(){\r\n\t\tcom = new Comentarios();\r\n\t\tlistComentarios = comDao.getComentarios();\r\n\t}",
"@PostConstruct\n public void CargarTimbresMasivosBean() {\n try {\n objectContext = cargarComponenteAjaxObjectContext();\n loggerApp = objectContext.getConfigApp().loggerApp;\n cargarTimbresMasivosObjectContext = new CargarTimbresMasivosObjectContext(getRequestFaces(), getResponseFaces());\n if (objectContext != null) {\n init();\n }\n } catch (Exception ex) {\n abrirModal(\"SARA\", \"Error\", ex);\n }\n }",
"public PacienteBean() {\r\n paciente = new Paciente();\r\n logueado = new Usuario();\r\n //datospersonales = new HelperDatosPersonales();\r\n this.resultado = \"\";\r\n pacienteSeleccionado = false;\r\n \r\n // Carga session\r\n faceContext=FacesContext.getCurrentInstance();\r\n httpServletRequest=(HttpServletRequest)faceContext.getExternalContext().getRequest();\r\n if(httpServletRequest.getSession().getAttribute(\"Usuario\") != null)\r\n {\r\n logueado = (Usuario)httpServletRequest.getSession().getAttribute(\"Usuario\");\r\n }\r\n \r\n if(httpServletRequest.getSession().getAttribute(\"Centro\") != null)\r\n {\r\n //logueadoCentro = (Centro)httpServletRequest.getSession().getAttribute(\"Centro\");\r\n CentroID = Integer.parseInt(httpServletRequest.getSession().getAttribute(\"Centro\").toString());\r\n }\r\n }",
"@PostConstruct\n public void loadData()\n {\n try \n {\n usu = new RhUsuario();\n \n rol = new RhRol();\n \n uc = new UsuController();\n \n usuList = uc.findAll(usu);\n \n encrypter = new Encryption();\n } \n catch (Exception ex) \n {\n Logger.getLogger(UsuarioManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public DebtorsAgingBean() {\n }",
"@PostConstruct\r\n public void inicializar() {\r\n try {\r\n anioDeclaracion = 0;\r\n existeDedPatente = false;\r\n deducciones = false;\r\n detaleExoDedMul = new ArrayList<String>();\r\n activaBaseImponible = 0;\r\n verBuscaPatente = 0;\r\n inicializarValCalcula();\r\n datoGlobalActual = new DatoGlobal();\r\n patenteActual = new Patente();\r\n patenteValoracionActal = new PatenteValoracion();\r\n verPanelDetalleImp = 0;\r\n habilitaEdicion = false;\r\n numPatente = \"\";\r\n buscNumPat = \"\";\r\n buscAnioPat = \"\";\r\n catDetAnio = new CatalogoDetalle();\r\n verguarda = 0;\r\n verActualiza = 0;\r\n verDetDeducciones = 0;\r\n verBotDetDeducciones = 0;\r\n listarAnios();\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public FinPagamentosListagemBean()\n {\n }",
"public ClienteBean() {\n }",
"public FacturaBean() {\n }",
"public EditorialBean() {\r\n editorialDAOImp = new EditorialDAOImp();\r\n editorial = new Editorial();\r\n }",
"public ClasseBean() {\r\n }",
"public ClasseBean() {\r\n }",
"public LoginBean() {\r\n \r\n \r\n }",
"public TestManageBean() {\n }",
"public interface ParametroListarService {\n\t\n\t/**\n\t * Listar parametros.\n\t * Fecha: 22/08/2013\n\t *\n\t * @param idPanel the id panel\n\t * @throws Exception the exception\n\t */\n\tpublic void listarParametros(String idPanel) throws Exception;\n\t\n\t/**\n\t * Eliminar parametro.\n\t * Fecha: 22/08/2013\n\t *\n\t * @throws Exception the exception\n\t */\n\tpublic void eliminarParametro() throws Exception;\n\t\n\t/**\n\t * Limpiar lista parametro.\n\t * Fecha: 22/08/2013\n\t *\n\t * @throws Exception the exception\n\t */\n\tpublic void limpiarListaParametro() throws Exception;\n\n\t/**\n\t * Obtiene bean listar parametro.\n\t * Fecha: 22/08/2013\n\t *\n\t * @return bean listar parametro\n\t */\n\tpublic BeanListarParametro getBeanListarParametro();\n\n\t/**\n\t * Establece el bean listar parametro.\n\t *\n\t * @param beanListarParametro el new bean listar parametro\n\t */\n\tpublic void setBeanListarParametro(BeanListarParametro beanListarParametro);\n\n}",
"@PostConstruct\n\tpublic void inicia() {\n\t\t\n\t\tinicializaBD();\n\t\tcontrolPrincipal.inicia();\n\t}",
"public Echeance_etudiantBean() {\r\n echeance_etudiant = new EcoEcheanceEtudiant();\r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance(); \r\n }",
"@Override\n public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }",
"protected PersonSessionBean getadmin$PersonSessionBean() {\n return (PersonSessionBean) getBean(\"admin$PersonSessionBean\");\n }",
"RoomstlogBean()\n {\n }",
"public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }",
"protected void accionUsuario() {\n\t\t\r\n\t}",
"public CampingBean() {\n }",
"public ShoppingCartBean(){\n super();\n }",
"public loginBean() {\n }",
"public AdmissionsBean() {\n }",
"@Override\n public void onPutBeansRaised() {\n }",
"public DelZadBean() {\n }",
"@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}",
"public UserBean() {\n }",
"public UserBean() {\n }",
"@Override\n protected void beforeOpen(HttpServletRequest request, ActionForm form)\n \t\tthrows Exception {\n \tsuper.beforeOpen(request, form);\n \tLong id = RequestUtils.getLongParameter(\"id\", -1);\n \tif(id != -1){\n \t\trequest.setAttribute(\"bean\", this.getService().load(id));\n \t}\n }",
"public BookingBean() {\n }",
"public ContactoBean() {\n nombres = \"\";\n apellidos = \"\";\n email = \"\";\n asunto = \"\";\n mensaje = \"\";\n }",
"public TiposDocumentosBean(){\r\n }",
"public MainSessionBean() {\r\n init();\r\n }",
"public EquipmentSetAccessBean () {\n super();\n }",
"public PeopleBean() {\n\n }",
"@PostConstruct\n public void SolicitudCajaCHMB() {\n long a = System.currentTimeMillis();\n try {\n System.out.println(\"@PostConstruct SolicitudCajaCHMB\");\n usuarioLogin = (UsuarioBean) new MaristaUtils().sesionObtenerObjeto(\"usuarioLogin\");\n getSolicitudCajaCHBean();\n TipoConceptoService conceptoCategoriaService = BeanFactory.getTipoConceptoService();\n getTipoConceptoBean();\n listaTipoConceptoBean = conceptoCategoriaService.obtenerTipoConcepto();\n\n ConceptoUniNegService conceptoUniNegService = BeanFactory.getConceptoUniNegService();\n getListaConceptoUniNegBean();\n\n listaConceptoUniNegBean = conceptoUniNegService.obtenerConceptoUniNegPorUni(usuarioLogin.getPersonalBean().getUnidadNegocioBean().getUniNeg());\n// listaConceptoUniNegBean = conceptoUniNegService.obtenerConceptoUniNegActivos();\n\n UniNegUniOrgService uniNegUniOrgService = BeanFactory.getUniNegUniOrgService();\n getListaUnidadOrganicaBean();\n listaUnidadOrganicaBean = uniNegUniOrgService.obtenerUniOrgPorUniNeg(usuarioLogin.getPersonalBean().getUnidadNegocioBean().getUniNeg());\n\n TipoSolicitudService tipoSolicitudService = BeanFactory.getTipoSolicitudService();\n getListaTipoSolicitudBean();\n listaTipoSolicitudBean = tipoSolicitudService.obtenerSolGenCajaCH(MaristaConstantes.TIP_SOL_GEN, MaristaConstantes.A_RENDIR, usuarioLogin.getPersonalBean().getUnidadNegocioBean().getUniNeg());\n for (TipoSolicitudBean lista : listaTipoSolicitudBean) {\n System.out.println(\"tip \" + lista.getNombre());\n if (lista.getNombre().equals(MaristaConstantes.TIP_SOL_GEN)) {\n lista.setNombre(MaristaConstantes.TIP_SOL_GEN + \" - \" + \"Pago Proveedores \");\n }\n break;\n }\n\n CentroResponsabilidadService centroResponsabilidadService = BeanFactory.getCentroResponsabilidadService();\n getListaCentroResponsabilidadBean();\n listaCentroResponsabilidadBean = centroResponsabilidadService.obtenerCentroResponsabilidad();\n PlanContableService planContableService = BeanFactory.getPlanContableService();\n listaPlanContableBean = planContableService.obtenerPlanContable();\n CodigoService codigoService = BeanFactory.getCodigoService();\n getListTipoMoneda();\n listTipoMoneda = codigoService.obtenerPorTipo(new TipoCodigoBean(MaristaConstantes.TIP_MON));\n// getListTipoSolicitud();\n// listTipoSolicitud = codigoService.obtenerPorTipo(new TipoCodigoBean(MaristaConstantes.TIP_STA_CCH));\n\n getListTipoPrioridad();\n listTipoPrioridad = codigoService.obtenerPorTipo(new TipoCodigoBean(MaristaConstantes.TIP_PRIORIDAD));\n\n //Validar perfil gestor solicitudes\n PerfilService perfilService = BeanFactory.getPerfilService();\n getListaPerfilBean();\n listaPerfilBean = perfilService.obtenerUsarioPerfil(usuarioLogin);\n for (int i = 0; i < listaPerfilBean.size(); i++) {\n if (listaPerfilBean.get(i).getNombre().equals(MaristaConstantes.GESTOR_SOLI)) {\n this.flgGestorSoli = true;\n this.flgMostarListSoli = false;\n break;\n } else {\n this.flgGestorSoli = false;\n this.flgMostarListSoli = true;\n }\n }\n// if (this.flgGestorSoli == false) {\n solicitudCajaCHBean.setNombreSolicitante(usuarioLogin.getPersonalBean().getNombreCompleto());\n solicitudCajaCHBean.setPersonalBean(usuarioLogin.getPersonalBean());\n\n// }\n cargarUniOrgUniNeg();\n\n getListTipoStatusSolCajaCh();\n fechaActual = new GregorianCalendar();\n getSolicitudCajaCHBean().setFechaSol(fechaActual.getTime());\n getSolicitudCajaCHFiltroBean().setFechaInicio(fechaActual.getTime());\n getSolicitudCajaCHFiltroBean().setFechaFin(fechaActual.getTime());\n listTipoStatusSolCajaCh = codigoService.obtenerPorTipo(new TipoCodigoBean(MaristaConstantes.TIP_STA_CCH));\n getSolicitudCajaCHFiltroBean().setUnidadNegocioBean(usuarioLogin.getPersonalBean().getUnidadNegocioBean());\n getSolicitudCajaCHFiltroBean().setCreaPor(usuarioLogin.getUsuario());\n listaTipoDistribucionCRBean = codigoService.obtenerPorTipo(new TipoCodigoBean(\"TipoDistribucionCR\"));\n dualCentroResponsabilidadBean = new DualListModel<>(listaCentroResponsabilidadBean, getListaCentroResponsabilidadBeanB());\n listaTipoCajaChica = codigoService.funcionObtenerPorTipo(new TipoCodigoBean(MaristaConstantes.TIPO_CAJACH));\n\n CodigoBean codigoPrioridad = new CodigoBean();\n codigoPrioridad = codigoService.obtenerPorCodigo(new CodigoBean(0, \"Media\", new TipoCodigoBean(MaristaConstantes.TIP_PRIORIDAD)));\n getSolicitudCajaCHBean().setTipoPrioridadBean(codigoPrioridad);\n setIdTipoSol(\"COL\");\n solicitudCajaCHBean.setIdTipoSolicitante(idTipoSol);\n changeTipo(\"soli\");\n getListaSolicitudCajaDocEgresoBean();\n// Double i = 0.00;\n } catch (Exception ex) {\n new MensajePrime().addErrorGeneralMessage();\n GLTLog.writeError(this.getClass(), ex);\n }\n long b = System.currentTimeMillis();\n System.out.println(\"time out: \" + (b - a));\n }",
"public LoginBean() {\r\n }",
"@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }",
"@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }",
"@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }",
"@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }",
"@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }",
"@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }",
"public RhSubsidioBean ()\n {\n }",
"public EmployeBean() {\r\n\t\tpersonneFactory = new PersonneFactoryImpl();\r\n\t\tinitFields();\r\n\t\tidHotel = 0L;\r\n\t\tLOGGER.info(\"<=============== EmployeBean Initialization ===============>\");\r\n\t}",
"@PostConstruct\n\tpublic void init(){\n\t\tmedicamentos = new ArrayList<Medicamento>();\n\t\tif (getUsuario().getPermissao().contains(\"ROLE_PECUARISTA\")) {\n\t\t\tmedicamentos = medicamentoFacade.medicamentosUsuario(getUsuario());\n\t\t}else {\n\t\t\tmedicamentos = medicamentoFacade.medicamentosUsuario(systemSessionMB.getFazenda().getPecuarista());\n\t\t}\n\t}",
"@PostConstruct\n\tpublic void init() {\t\t\n\t\tsql = new String (\"select * from ip_location_mapping order by ip_from_long ASC\");\n\t\tipLocationMappings = jdbcTemplate.query(sql, new IpLocationMappingMapper());\n\t\t\n\t\t//print all beans initiated by container\n\t\t\t\tString[] beanNames = ctx.getBeanDefinitionNames();\n\t\t\t\tSystem.out.println(\"鎵�浠eanNames涓暟锛�\"+beanNames.length);\n\t\t\t\tfor(String bn:beanNames){\n\t\t\t\t\tSystem.out.println(bn);\n\t\t\t\t}\n\n\t}",
"public ISeeYouBean() {\n }",
"public DroitBean() {\n formdroit=new ProfilMenuItem();\n selectdroit=new ProfilMenuItem();\n dataListdroit=new ArrayList<>();\n }",
"public final void setBean(String bean) {\n this.bean = bean;\n }",
"public PonenciaBean() {\r\n controlador= new PonenciaAutorJpaController(JPAUtil.getEntityManagerFactory());\r\n controladorPonencia= new PonenciaJpaController(JPAUtil.getEntityManagerFactory());\r\n controladorEvento= new EventoJpaController(JPAUtil.getEntityManagerFactory());\r\n controladorTrabajoInvestigacion= new TrabajoInvestigacionJpaController(JPAUtil.getEntityManagerFactory());\r\n \r\n ponenciaModificar= new Ponencia(0, \"\", new Date());\r\n ponenciaAgregar= new Ponencia(0, \"\", new Date());\r\n ponencias= new ArrayList<>();\r\n eventos= new ArrayList<>();\r\n trabajos= new ArrayList<>();\r\n String temp = ((HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getParameter(\"identificacion\");\r\n identificacionInvestigador=Integer.parseInt(temp);\r\n \r\n eventos= controladorEvento.findEventoEntities();\r\n trabajos=controladorTrabajoInvestigacion.findTrabajoInvestigacionEntities();\r\n List<PonenciaAutor> listaPonenciaAutor = controlador.findPonenciaAutorEntities();\r\n for(PonenciaAutor pa: listaPonenciaAutor){\r\n if(pa.getInvestigadorIdentificacion().getIdentificacion()== identificacionInvestigador){\r\n ponencias.add(pa.getPonenciaId());\r\n }\r\n }\r\n }",
"public StaffBean() {\n try {\n username = SessionController.getInstance().getUser((HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false));\n genders = GBEnvironment.getInstance().getCatalog(GB_CommonStrConstants.CT_GENDER).getAllCatalog();\n id_types= GBEnvironment.getInstance().getCatalog(GB_CommonStrConstants.CT_IDTYPE).getAllCatalog();\n charge_up();\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(28), null);\n }\n }"
] | [
"0.67885864",
"0.6753143",
"0.66331255",
"0.6515144",
"0.64472336",
"0.6316342",
"0.62900364",
"0.6286029",
"0.6280223",
"0.6263608",
"0.6246748",
"0.6182919",
"0.6173254",
"0.6171869",
"0.61608994",
"0.61510515",
"0.6147977",
"0.6141526",
"0.6132975",
"0.61144954",
"0.61101454",
"0.60949624",
"0.6088376",
"0.6088139",
"0.6079277",
"0.6071988",
"0.6071643",
"0.6032874",
"0.60303485",
"0.6017051",
"0.6014768",
"0.6006487",
"0.59957",
"0.5989343",
"0.59869164",
"0.598066",
"0.5980106",
"0.5975662",
"0.597308",
"0.5963393",
"0.5948165",
"0.5939904",
"0.59395194",
"0.59303594",
"0.5920695",
"0.59189326",
"0.5897433",
"0.5888935",
"0.58852386",
"0.587946",
"0.5879406",
"0.58786255",
"0.58777773",
"0.58711654",
"0.5868598",
"0.5867248",
"0.58438706",
"0.58438706",
"0.58184046",
"0.58010715",
"0.5795847",
"0.5790677",
"0.57877165",
"0.57865566",
"0.57822746",
"0.5768582",
"0.576624",
"0.57650596",
"0.5761822",
"0.57598555",
"0.57592607",
"0.5754069",
"0.5743239",
"0.57369035",
"0.5731312",
"0.5728906",
"0.5728906",
"0.5728841",
"0.5728069",
"0.57251984",
"0.57229257",
"0.5722706",
"0.5717517",
"0.5714964",
"0.57149327",
"0.5706193",
"0.57031196",
"0.57031196",
"0.57031196",
"0.57031196",
"0.57031196",
"0.57031196",
"0.56989294",
"0.56974685",
"0.5683138",
"0.5679744",
"0.5671324",
"0.56513315",
"0.564489",
"0.5634716",
"0.56304884"
] | 0.0 | -1 |
Created by hanjiewu on 2016/5/25. | public interface UserService {
User createUser(User user);
void changePassword(long userId, String newPassword);
void correlationRoles(long userId, long... roleIds);
void uncorrelationRoles(long userId, long... roleIds);
User findByUserName(String username);
Set<String> findRoles(String username);
Set<String> findPermissions(String username);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\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 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\tprotected void interr() {\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n void init() {\n }",
"@Override\n public void init() {\n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"private void init() {\n\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"public void mo38117a() {\n }",
"@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 void gored() {\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\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\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\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\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"private void kk12() {\n\n\t}",
"private void strin() {\n\n\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\n public void initialize() { \n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private void init() {\n\n\n\n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"Petunia() {\r\n\t\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public void mo55254a() {\n }",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void init() {\n\n super.init();\n\n }"
] | [
"0.6129035",
"0.60189277",
"0.59667987",
"0.59204185",
"0.5913503",
"0.5913503",
"0.5885699",
"0.58248067",
"0.57793957",
"0.5762363",
"0.57565176",
"0.5739903",
"0.5739855",
"0.5728188",
"0.5726994",
"0.571949",
"0.57132936",
"0.56900996",
"0.5683022",
"0.567632",
"0.5667321",
"0.5662831",
"0.5662831",
"0.56601685",
"0.56601685",
"0.56601685",
"0.56601685",
"0.56601685",
"0.56532335",
"0.5631546",
"0.5626443",
"0.5602376",
"0.5598323",
"0.55952543",
"0.55940795",
"0.55802125",
"0.55773807",
"0.5564282",
"0.5562319",
"0.5562319",
"0.55572414",
"0.555659",
"0.555659",
"0.555659",
"0.5554113",
"0.5553238",
"0.5553238",
"0.5553238",
"0.5543337",
"0.5543337",
"0.5543337",
"0.5538711",
"0.5538711",
"0.5532629",
"0.55286515",
"0.5525442",
"0.5525442",
"0.5525442",
"0.5525442",
"0.5525442",
"0.5525442",
"0.55098724",
"0.5502409",
"0.54879785",
"0.5487949",
"0.5478723",
"0.54786",
"0.5476",
"0.54759413",
"0.5471644",
"0.5453568",
"0.5449217",
"0.54472345",
"0.5446017",
"0.5446017",
"0.5446017",
"0.5446017",
"0.5446017",
"0.5446017",
"0.5446017",
"0.5442785",
"0.54339784",
"0.54301476",
"0.54234546",
"0.5419043",
"0.5415271",
"0.5414092",
"0.5409849",
"0.5402965",
"0.5401225",
"0.5392017",
"0.5391959",
"0.5386208",
"0.5384821",
"0.538213",
"0.5379437",
"0.5375195",
"0.5370952",
"0.5346228",
"0.5336823",
"0.5333009"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.