query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
3afe00f6d50611cbf07beb8101a8ef8f
this version of appendList will only insert the given delimiter if it exists in the original text
[ { "docid": "fc0731c65e62e2aeada304a8f1f1c271", "score": "0.51406664", "text": "public Builder appendList( List<? extends Tree> list, TokenType delimiter, boolean includeSpaceAfterDelimiter ) {\n if( list.isEmpty() ) {\n return this;\n }\n\n // append first tree and any leading comments\n append( list.get( 0 ) );\n\n for( int idx = 1; idx < list.size(); idx++ ) {\n Tree element = list.get( idx );\n\n if( delimiter == TokenType.NEWLINE ) {\n // ensure that at least one newline separates elements of the list\n appendNewlines( input.getFirstTokenIndex( element ), 1 );\n } else {\n // if delimiter exists before current element, append it as well as any leading comments\n append(delimiter, input.getFirstTokenIndex(element));\n }\n\n if( includeSpaceAfterDelimiter ) {\n append(SPACE);\n }\n\n // now append the current element and any leading comments\n append( element );\n }\n\n return this;\n }", "title": "" } ]
[ { "docid": "c36c3bdc64ebf37289bede597e483ad9", "score": "0.6247272", "text": "void insertions(String s, List<String> currentList, boolean wordsOnly);", "title": "" }, { "docid": "d129edd8bb4a5b7b46f1c972771b5872", "score": "0.5849778", "text": "private void separateString(String string, char delimiter, ArrayList<String> list) {\n\t\tint startString = 0;\n\t\tint endString = 0;\n\t\t\n\t\twhile(!(endString >= string.length())) {\n\t\t\t\n\t\t\twhile(endString != (string.length()) && string.charAt(endString) != INPUT_DELIMITER) {\n\t\t\t\t++endString;\n\t\t\t}\n\t\t\tlist.add(string.substring(startString, endString));\n\t\t\tstartString = ++endString;\n\t\t}\n\t}", "title": "" }, { "docid": "d1ddeb8aa71298f29dd917fb67951da4", "score": "0.5813036", "text": "public Builder appendList( List<? extends Tree> list, TokenType delimiter ) {\n return appendList( list, delimiter, false );\n }", "title": "" }, { "docid": "62c737957adbb11dcdcbb4d3c25811d7", "score": "0.57120085", "text": "protected abstract String delimiter();", "title": "" }, { "docid": "6157bda31f4a3da184e83bb95dd82f9b", "score": "0.5473926", "text": "private static String join(final List<String> list, final String delim) {\r\n if (list == null || list.isEmpty()) return \"\";\r\n \r\n final StringBuilder sb = new StringBuilder();\r\n for (final String s : list) sb.append(s + delim);\r\n sb.delete(sb.length() - delim.length(), sb.length());\r\n \r\n return sb.toString();\r\n }", "title": "" }, { "docid": "e1244091c44854cb4c008e2684368341", "score": "0.5319875", "text": "private static String putNewDelimiter(String message, String regularExpression){\n \t// To do: Make this work properly...\n \tString newDelimiter = String.valueOf(message.charAt(2));\n \treturn (regularExpression = \"[,\\\\n\" + newDelimiter + \"]\");\n }", "title": "" }, { "docid": "a0a49101c176185dfe1361f3dc73a47d", "score": "0.53029263", "text": "private void addToken(List<String> list, String tok) {\n/* 662 */ if (StringUtils.isEmpty(tok)) {\n/* 663 */ if (isIgnoreEmptyTokens()) {\n/* */ return;\n/* */ }\n/* 666 */ if (isEmptyTokenAsNull()) {\n/* 667 */ tok = null;\n/* */ }\n/* */ } \n/* 670 */ list.add(tok);\n/* */ }", "title": "" }, { "docid": "5bc46914c32da6a1cb0c773eb5786b63", "score": "0.5290695", "text": "@Override\n public void insertString(int startIndex,\n String insertTxt,\n AttributeSet attributeset) throws BadLocationException\n {\n if (insertTxt != null && !insertTxt.isEmpty())\n {\n String s1 = getText(0, startIndex);\n String s2 = getMatch(s1 + insertTxt);\n int newStartIndex = (startIndex + insertTxt.length()) - 1;\n\n if ((!isOnlyFromList && s2 == null) || noAutoComp)\n {\n super.insertString(startIndex, insertTxt, attributeset);\n }\n else\n {\n if (isOnlyFromList && s2 == null)\n {\n s2 = getMatch(s1);\n newStartIndex--;\n }\n\n super.remove(0, getLength());\n super.insertString(0, s2, attributeset);\n setSelectionStart(newStartIndex + 1);\n setSelectionEnd(getLength());\n }\n }\n }", "title": "" }, { "docid": "26d213db37bdb8e5ce00f6e041e73163", "score": "0.5252228", "text": "public Builder appendList( List<Tree> list, String delimiter ) {\n if( list.isEmpty() ) {\n return this;\n }\n\n // append first tree and any leading comments\n append( list.get( 0 ) );\n\n for( int idx = 1; idx < list.size(); idx++ ) {\n output.append( delimiter );\n\n // append tree and any leading comments\n append( list.get( idx ) );\n }\n\n return this;\n }", "title": "" }, { "docid": "0274e5cd50be78fba3f7e9cc8e8f0388", "score": "0.5234148", "text": "public static String listStringConcat(List<String> list, String delimiter) {\n StringBuilder builder = new StringBuilder();\n boolean first = true;\n for (String item : list) {\n if (TextUtils.isEmpty(item)) continue;\n if (!first) builder.append(delimiter);\n builder.append(item);\n first = false;\n }\n return builder.toString();\n }", "title": "" }, { "docid": "e3fa6ed65953f5c562927af265b0dc69", "score": "0.5233628", "text": "void setDelimiter(String delim);", "title": "" }, { "docid": "c2170510a5780ee2c60bfeb1b6a2ed3b", "score": "0.5211556", "text": "public void insertions(String s, List<String> currentList, boolean wordsOnly ) {\n\t \n\t\tfor(int index = 0; index <= s.length(); index++){\n\t\t\tfor(int charCode = (int)'a'; charCode <= (int)'z'; charCode++) {\n\t\t\n\t\t\t\tStringBuffer sb = new StringBuffer(s);\n\t\t\t\tsb.insert(index, (char)charCode);\n\n\t\t\t\tif(!currentList.contains(sb.toString()) && \n\t\t\t\t\t\t(!wordsOnly||dict.isWord(sb.toString())) &&\n\t\t\t\t\t\t!s.equals(sb.toString())) {\n\t\t\t\t\tcurrentList.add(sb.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e68c381beae897dade3d72b74110e5ff", "score": "0.5198201", "text": "public static void setDefaultListDelimiter(char delimiter)\r\n {\r\n AbstractConfiguration.defaultListDelimiter = delimiter;\r\n }", "title": "" }, { "docid": "9f8522d8399f64d15fe2f4aa66809b90", "score": "0.51417893", "text": "public void replace_with_iterator(char before, char after) throws IOException {\n ListIterator<Character> listIterator = list.listIterator();\n while (listIterator.hasNext()){\n char value = listIterator.next();\n if(value == before)\n listIterator.set(after);\n }\n writeToFile();\n }", "title": "" }, { "docid": "89478c101172f04cda994f25721b8b37", "score": "0.5120755", "text": "public static List<Doc> punctuate(Doc separator, List<Doc> docs) {\n List<Doc> output = Lists.newArrayList();\n for (int i = 0; i < docs.size(); i++) {\n if (i < docs.size() - 1) {\n output.add(docs.get(i).add(separator));\n } else {\n output.add(docs.get(i));\n }\n }\n return output;\n }", "title": "" }, { "docid": "bc09ceb41daa21dd78e5bce7d48cd352", "score": "0.5115922", "text": "@Override\r\n public void insertString(int offs, String str, AttributeSet a) throws BadLocationException {\r\n if (autoCompletionList == null) {\r\n super.insertString(offs, str, a);\r\n return;\r\n }\r\n String currentText = getText(0, getLength());\r\n String prefix = currentText.substring(0, offs);\r\n autoCompletionList.applyFilter(prefix+str);\r\n if (autoCompletionList.getFilteredSize()>0) {\r\n // there are matches. Insert the new text and highlight the\r\n // auto completed suffix\r\n //\r\n String matchingString = autoCompletionList.getFilteredItem(0).getValue();\r\n remove(0,getLength());\r\n super.insertString(0,matchingString,a);\r\n \r\n // highlight from end to insert position\r\n //\r\n setCaretPosition(getLength());\r\n moveCaretPosition(offs + str.length());\r\n } else {\r\n // there are no matches. Insert the new text, do not highlight\r\n //\r\n String newText = prefix + str;\r\n remove(0,getLength());\r\n super.insertString(0,newText,a);\r\n setCaretPosition(getLength());\r\n }\r\n }", "title": "" }, { "docid": "d08c88119d0b3aae5dc8ba31bcaef7f9", "score": "0.5092012", "text": "public void append(List<String> other) {\n\t\tfor(String s : other) {\n\t\t\tcontents.add(s);\n\t\t}\n\t}", "title": "" }, { "docid": "d4c6bdb9ff79e2386ef5e885e1f47ddc", "score": "0.50847447", "text": "public void insert(String content, int pos) {\r\n\t\tif(pos < dataSize+1) {\r\n\t\t\tfor(int i = dataSize; i > pos; i--) {\r\n\t\t\t\tlist[i] = list[i-1];\r\n\t\t\t}\r\n\t\t\tlist[pos-1] = content;\r\n\t\t\tdataSize++;\r\n\t\t}\r\n\t\telse if(pos == dataSize+1) {\r\n\t\t\tString[] temp = new String[list.length + MAXSIZE];\r\n\t\t\tfor(int i = top; i < dataSize; i++) {\r\n\t\t\t\tlist[i] = temp[i];\r\n\t\t\t}\r\n\t\t\ttemp[pos-1] = content;\r\n\t\t\tdataSize++;\r\n\t\t\tlist = temp;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d8e7de9cf7f4b70b2da5e6f244b348d3", "score": "0.507339", "text": "@Override\r\n public void add(String text) {\n String[] newWordsArray = text\r\n .trim()\r\n .replaceAll(\" +\", \" \")\r\n .replaceAll(\"\\n\", \" \")\r\n .replaceAll(\"\\t\", \" \")\r\n .split(\" \");\r\n\r\n int fal = wordsLinkedList.size(); //determines length of firstArray\r\n int sal = newWordsArray.length; //determines length of secondArray\r\n String[] result = new String[fal + sal]; //resultant array of size first array and second array\r\n System.arraycopy(wordsLinkedList.toArray(), 0, result, 0, fal);\r\n System.arraycopy(newWordsArray, 0, result, fal, sal);\r\n\r\n wordsLinkedList = Arrays.asList(result);\r\n }", "title": "" }, { "docid": "e45b24c1c84ae70555a87adc3045064f", "score": "0.5068899", "text": "public void setListDelimiter(char listDelimiter)\r\n {\r\n this.listDelimiter = listDelimiter;\r\n }", "title": "" }, { "docid": "354834be2152ebfc1f4986a67be40b97", "score": "0.5047205", "text": "public void addAtEnd( String str );", "title": "" }, { "docid": "c1cda7052b15abc603e58d8431617fa8", "score": "0.503774", "text": "public static String join(String delim, List<?> lst) {\r\n StringBuilder ret = new StringBuilder();\r\n for (int i = 0, len = lst.size(); i < len; ++i) {\r\n ret.append(lst.get(i));\r\n if (i < len - 1) {\r\n ret.append(delim);\r\n }\r\n }\r\n return ret.toString();\r\n }", "title": "" }, { "docid": "0c2e9163e92794fad18802a16c0e2f3a", "score": "0.50163555", "text": "void addDocumentSeparator() {\n add(-1, (byte) -1, null, Tokenizer.TF_SEPARATOR_DOCUMENT);\n }", "title": "" }, { "docid": "b400f15ee63073f11bdf48396b0b85db", "score": "0.49989715", "text": "public static String join(List<String> words, String deliminator) {\n // If the list exists and it's not empty\n if (words != null && !words.isEmpty()) {\n // Create new string\n String joined = \"\";\n\n // Join words in it with added deliminator\n for (String word : words)\n joined += word + deliminator;\n\n // Remove the last deliminator\n joined = joined.substring(0, joined.length() - deliminator.length());\n\n // Return resulting string\n return joined;\n }\n\n // If there's something wrong with the list - throw an exception\n else {\n throw new IllegalArgumentException(\"List is null or empty\");\n }\n }", "title": "" }, { "docid": "e8447fac28679c765526c555c6c723f4", "score": "0.49740905", "text": "void addAppend(String append);", "title": "" }, { "docid": "70e8fcdecd173102b7d583f35dba7ed5", "score": "0.49709854", "text": "ILoString insertInOrder(String eti);", "title": "" }, { "docid": "8dbd102b121e7b9efa0672f6f5d4e019", "score": "0.49613696", "text": "public void insert(String text) {\n this.insert(text.toCharArray(), 0);\n }", "title": "" }, { "docid": "532376dfc8c9af0bc6ac90bf58a6d420", "score": "0.49188566", "text": "@Override\n\tpublic void append(String text) {\n\t\tsuper.append(text);\n\t\tthis.setCaretPosition(this.getCaretPosition()+text.length());\n\t}", "title": "" }, { "docid": "929c9a90c1772be3c4cb7212ad8440ce", "score": "0.4916311", "text": "@Test\n public void testListDelimiterHandling() throws ConfigurationException {\n final INIConfiguration config = new INIConfiguration();\n config.setListDelimiterHandler(new DefaultListDelimiterHandler(','));\n config.addProperty(\"list\", \"a,b,c\");\n config.addProperty(\"listesc\", \"3\\\\,1415\");\n final String output = saveToString(config);\n final INIConfiguration config2 = setUpConfig(output);\n assertEquals(Arrays.asList(\"a\", \"b\", \"c\"), config2.getList(\"list\"));\n assertEquals(\"3,1415\", config2.getString(\"listesc\"));\n }", "title": "" }, { "docid": "b59f822c295621ba6da61faeeaaee33f", "score": "0.49034917", "text": "private void addLine(List<String> columns, char separator, char quote) throws IOException {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor (int i = 0; i < columns.size(); i++) {\r\n\t\t\tString column = columns.get(i);\r\n\t\t\tString text = String.valueOf(quote);\r\n\t\t\tif (column.contains(text)) {\r\n\t\t\t\tcolumn = column.replace(text, text + text);\r\n\t\t\t}\r\n\t\t\tif (i != 0) {\r\n\t\t\t\tsb.append(separator);\r\n\t\t\t}\r\n\t\t\tsb.append(quote);\r\n\t\t\tsb.append(column);\r\n\t\t\tsb.append(quote);\r\n\t\t}\r\n\t\tsb.append(LINE_SEPARATOR);\r\n\t\tstream.write(sb.toString().getBytes(charset));\r\n\t\tnumberLine++;\r\n\t\tif (flushLine != 0 && numberLine % flushLine == 0) {\r\n\t\t\tstream.flush();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bff4d141f8526381398d0b51d86d5c54", "score": "0.4892033", "text": "public static String addTokens(final String toAdd, final String toAddTo, final String delimiter)\r\n {\r\n if (toAdd == null)\r\n {\r\n return toAddTo;\r\n }\r\n Assertions.assertNotNull(delimiter, \"delimiter\");\r\n\r\n // create token list from toAdd\r\n Set<String> toAddTokenSet = new LinkedHashSet<>();\r\n StringTokenizer tokenizer = new StringTokenizer(toAdd, delimiter);\r\n while (tokenizer.hasMoreTokens())\r\n {\r\n toAddTokenSet.add(tokenizer.nextToken());\r\n }\r\n\r\n // remove tokens from toAddTokenList which are already present in toAddTo\r\n if (toAddTo != null)\r\n {\r\n tokenizer = new StringTokenizer(toAddTo, delimiter);\r\n while (tokenizer.hasMoreTokens())\r\n {\r\n String token = tokenizer.nextToken();\r\n toAddTokenSet.remove(token);\r\n }\r\n }\r\n\r\n // first make sure using string builder is worth while\r\n if (toAddTokenSet.isEmpty())\r\n {\r\n return toAddTo;\r\n }\r\n // add tokens from tokenList\r\n StringBuilder result;\r\n if (toAddTo == null)\r\n {\r\n result = new StringBuilder();\r\n }\r\n else\r\n {\r\n result = new StringBuilder(toAddTo);\r\n }\r\n for (String toAddToken : toAddTokenSet)\r\n {\r\n if (result.length() > 0)\r\n {\r\n result.append(delimiter);\r\n }\r\n result.append(toAddToken);\r\n }\r\n return result.toString();\r\n }", "title": "" }, { "docid": "5d993ec5f47c7acc479c3f9190bab66b", "score": "0.48790696", "text": "public void insertAfter(List<E> toInsert, E point);", "title": "" }, { "docid": "21dd5333857f7870f8f54e88d8b97a20", "score": "0.48789194", "text": "@Test\n public void testAppendDelimiters() {\n key.append(\"key..\").append(\"test\").append(\".\");\n key.append(\".more\").append(\"..tests\");\n assertEquals(\"key...test.more...tests\", key.toString());\n }", "title": "" }, { "docid": "1bbb9dc39764365e2f5fbfc8299fd9fd", "score": "0.4870027", "text": "public static String join(String delimiter, String... data) {\n final StringBuilder sb = new StringBuilder();\n for (int i = 0; i < data.length; i++) {\n sb.append(data[i]);\n if (i >= data.length - 1) {\n break;\n }\n sb.append(delimiter);\n }\n return sb.toString();\n }", "title": "" }, { "docid": "c6e2b122a02a38c2ef5654cf699e325d", "score": "0.48552766", "text": "public void add2WordList(String word) throws SpiderException;", "title": "" }, { "docid": "1c4cd5a991bed3c4a10ef2045c013675", "score": "0.48529857", "text": "public void setDelimiter(char delimiter)\n { _delimiter=delimiter;\n }", "title": "" }, { "docid": "6224a515c2c1d46d02abb59d497cf3f3", "score": "0.4851004", "text": "public void append(Item t, int pos) \r\n\t{\r\n\t\t//markers\r\n\t\tNode curr = head;\r\n\t\tNode prev = head;\r\n\t\t\r\n\t\t//update info\r\n\t\tlength++;\r\n\t\tcharCount += countChars(((Line) t.getData()).getContext());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tNode n = new Node(t);\r\n\t\t\r\n\t\tif(seek(pos) == null) \r\n\t\t{\r\n\t\t\t//assign markers\r\n\t\t\tcurr = tail;\r\n\t\t\tprev = tail;\r\n\t\t\t\r\n\t\t\t//fix linkage, tail is the new node.\r\n\t\t\tcurr.setNext(n);\r\n\t\t\tn.setPrev(curr);\r\n\t\t\ttail = n;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t\r\n\t\t\t//assign markers for an inbetween element.\r\n\t\t\tcurr = seek(pos);\r\n\t\t\tprev = curr.getPrev();\r\n\t\t\t\r\n\t\t\r\n\t\t\t//node linkage\r\n\t\t\tn.setPrev(prev);\r\n\t\t\tn.setNext(curr);\r\n\t\t\t\r\n\t\t\t//list linkage\r\n\t\t\tcurr.setPrev(n);\r\n\t\t\tprev.setNext(n);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f8477b2b383c788c134e10d3afa7b56b", "score": "0.48462656", "text": "public void setDelimiter( Delimiter delimiter ) {\n d = delimiter;\n }", "title": "" }, { "docid": "649cd6cca30462ca32c88032c4b35e10", "score": "0.48425612", "text": "@Override\n public void add(String text) {\n String[] words = text.trim().split(\"\\\\s+\");\n Collections.addAll(wordsLinkedList, words);\n }", "title": "" }, { "docid": "2c10d3b04f664ca2740ed487ec629b3e", "score": "0.48378503", "text": "protected void setListSeparator(BufferedReader in) throws Exception {\n in.mark(7168);\n String sample;\n while ((sample = in.readLine()) != null) {\n if (sample.startsWith(\"#\") || sample.startsWith(\"%\") || sample.startsWith(\"*\")) {\n String listSeperator = sample.substring(1, 2);\n LOG.debug(\"FOUND SEPARATOR: \" + listSeperator);\n this.listSeparator = listSeperator;\n break;\n }\n }\n in.reset();\n }", "title": "" }, { "docid": "a7f2fe31a770667f4940c2ee3e73d1c6", "score": "0.48222476", "text": "public static String join(ArrayList s, String delimiter) {\n\t\tif (s.size() == 0) return \"\";\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tIterator iterator = s.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tbuffer.append(iterator.next());\n\t\t\tif (iterator.hasNext()) {\n\t\t\t\tbuffer.append(delimiter);\n\t\t\t}\n\t\t}\n\t\treturn buffer.toString();\n\t}", "title": "" }, { "docid": "c87c757927d1d4e338a4e2c95a194d52", "score": "0.48162705", "text": "private final void addToTokens(Token t){\n\t\tif(inRef){ // handle references\n\t\t\tif(firstRef){ // delimiter whole references from each other\n\t\t\t\tfirstRef = false;\n\t\t\t\tt.setPositionIncrement(REFERENCE_GAP);\n\t\t\t}\n\t\t\treferences.add(t);\n\t\t\treturn;\n\t\t}\n\t\tif(!options.relocationParsing){\n\t\t\ttokens.add(t);\n\t\t\treturn;\n\t\t}\n\t\t// and now, relocation parsing:\n\t\tif((templateLevel > 0 || inImageCategoryInterwiki) && keywordTokens < FIRST_SECTION_GAP){\n\t\t\tnonContentTokens.add(t);\n\t\t\treturn;\n\t\t} else if(t.getPositionIncrement() == FIRST_SECTION_GAP){\n\t\t\tboolean first = true;\n\t\t\tfor(Token tt : nonContentTokens){\n\t\t\t\tif(first){\n\t\t\t\t\ttt.setPositionIncrement(FIRST_SECTION_GAP);\n\t\t\t\t\tfirst = false;\n\t\t\t\t}\n\t\t\t\ttokens.add(tt); // re-add nonconent tokens\n\t\t\t}\n\t\t\tif(!first){\n\t\t\t\tnonContentTokens.clear();\n\t\t\t\tt.setPositionIncrement(PARAGRAPH_GAP);\n\t\t\t\tkeywordTokens += PARAGRAPH_GAP;\n\t\t\t}\n\t\t}\n\t\ttokens.add(t);\n\t}", "title": "" }, { "docid": "bf16503667a6eac3c7f251a867822945", "score": "0.4808084", "text": "public String createSingleQuoteDelimitedListValue(List<String> values);", "title": "" }, { "docid": "bed5ff0cff6b778cac70b60dc550067d", "score": "0.4802308", "text": "public void addNewLine(String data)\n\t{\n\t\t//If the list is empty, make the data the head of the list\n\t\tNode curr;\n\t\tif(head == null)\n\t\t{\n\t\t\tcurr = new Node(data);\n\t\t\thead = curr;\n\t\t}\n\t\t//Otherwise add the string as a node to the front of the list.\n\t\telse\n\t\t{\n\t\t\tcurr = new Node(data, head);\n\t\t\thead = curr;\n\t\t}\n\t}", "title": "" }, { "docid": "dd87ddd97453a308ecab1b4e005b9cb9", "score": "0.48012847", "text": "@Override\n public void prepareList(String listString) {}", "title": "" }, { "docid": "6852b204fd977d530568f21d72befefc", "score": "0.47929284", "text": "protected void addToList(ArrayList<String> list, String str){\n\t\tif(!list.contains(str)){\n\t\t\tString[] parts = str.split(\"\\\\.\");\n\t\t\tif(database.containsKey(parts[0]) &&\n\t\t\t\t(parts.length==1 || (parts.length==2 && database.get(parts[0]).containsKey(parts[1])))){\n\t\t\t\tlist.add(str);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d1f93d918adeb029356ce3875886bad3", "score": "0.4788323", "text": "public PeriodFormatterBuilder appendSeparatorIfFieldsBefore(String paramString)\r\n/* */ {\r\n/* 672 */ return appendSeparator(paramString, paramString, null, true, false);\r\n/* */ }", "title": "" }, { "docid": "c3329203ff24b4bdab060fcaeea370c6", "score": "0.47680762", "text": "private int updateDelimPositions() {\n while (lastSelectedDelimeterIndex >= 0 && delimPos[lastSelectedDelimeterIndex] < pos) {\n if (pos + delim[lastSelectedDelimeterIndex].length() >= subject.length()) {\n // if this delimeter could not fit anymore in the string\n delimNoLongerPresent(lastSelectedDelimeterIndex);\n } else {\n delimPos[lastSelectedDelimeterIndex] =\n subject.indexOf(delimStr[lastSelectedDelimeterIndex], pos);\n if (delimPos[lastSelectedDelimeterIndex] == -1) {\n delimNoLongerPresent(lastSelectedDelimeterIndex);\n }\n }\n\n // Ok, now we assume that all delims are now updated and present, need to find\n // nearest\n if (delimLength == 0) {\n return -1;\n }\n\n lastSelectedDelimeterIndex = indexOfNearestDelimeter(delimPos);\n }\n return lastSelectedDelimeterIndex;\n }", "title": "" }, { "docid": "0dbbf1a786bf163045efb7fe1ce577bc", "score": "0.47680357", "text": "private String insert ( String in, String original, int position){\r\n\t\tString newString = original.substring(0,position) + in;\r\n\t\tnewString += original.substring(position, original.length());\r\n\t\treturn newString;\r\n\t}", "title": "" }, { "docid": "16e37543c195ad08f0a987c1d8e4d875", "score": "0.47674957", "text": "private void insertRec(char [] c, int pos, int stop)\r\n\t{\r\n\t\tif (pos < stop) \r\n\t\t{\r\n\t\t\tlastC.next = new CNode(c[pos]);\r\n\t\t\tlastC = lastC.next;\t\r\n\t\t\tinsertRec(c, ++pos, stop);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "455373c483ca96558333444c7919f637", "score": "0.4766659", "text": "public void setDelimiter(String delimiter) {\n this.delimiter = delimiter;\n }", "title": "" }, { "docid": "33582df085aab6debf26c3479991cc35", "score": "0.47649688", "text": "@Deprecated\r\n public static void setDelimiter(char delimiter)\r\n {\r\n setDefaultListDelimiter(delimiter);\r\n }", "title": "" }, { "docid": "ba4d29253fc0402c9709a1950434e6a9", "score": "0.4763467", "text": "public PeriodFormatterBuilder appendSeparatorIfFieldsAfter(String paramString)\r\n/* */ {\r\n/* 652 */ return appendSeparator(paramString, paramString, null, false, true);\r\n/* */ }", "title": "" }, { "docid": "04850fd1bce339b3b7b826973a6c76c5", "score": "0.4751296", "text": "public void setDelimiter(String delim) {\n delimiter = delim;\n }", "title": "" }, { "docid": "1a271f13829ae13ad5fa14f02389dcb1", "score": "0.47450888", "text": "public void add_with_iterator(int position,String nameWillBeAdded) throws IOException {\n\n char [] charArray = convertStringToCharArray(nameWillBeAdded);\n ListIterator<Character> listIterator = list.listIterator();\n for(int i = 0; i< position - 1; i++){\n listIterator.next();\n }\n for (char c : charArray) {\n listIterator.add(c);\n }\n writeToFile();\n }", "title": "" }, { "docid": "9bd051f825c85fc2d967170000c5e819", "score": "0.4743207", "text": "public static void main(String[] args) throws FileNotFoundException {\n Scanner iFile = new Scanner(new File(\"input.txt\"));\n ArrayList<String> stringArrayList= new ArrayList<>();\n\n while(iFile.hasNext()){\n stringArrayList.add(iFile.next());\n }\n System.out.println(stringArrayList);\n\n int initialArraySize = stringArrayList.size();\n for(int i = 0; i < initialArraySize; i++){\n stringArrayList.add(i*2, \"~\");\n }\n System.out.println(stringArrayList);\n\n while(stringArrayList.contains(\"~\")){\n stringArrayList.remove(\"~\");\n }\n System.out.println(stringArrayList);\n }", "title": "" }, { "docid": "a6da6765f9a9f2c4f37e68aa6562efd8", "score": "0.47414836", "text": "protected void addSeparator ()\n {\n separator = new WebSeparator ( StyleId.comboboxSeparator.at ( comboBox ) );\n comboBox.add ( separator );\n }", "title": "" }, { "docid": "49f0bf568585305435036a78b1bf0e37", "score": "0.4739947", "text": "public static String join(List<String> p_sStrList, String p_sDelimiter) {\n\t\tStringBuilder sb=new StringBuilder();\n\t\tfor (int i=0; i<p_sStrList.size(); i++) {\n\t\t\tString sCurrStr = p_sStrList.get(i);\n\t\t\tif (i>0)\n\t\t\t\tsb.append(p_sDelimiter);\n\t\t\tsb.append(sCurrStr);\n\t\t}\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "a3961448c9b16b873fccb63e1faf0a29", "score": "0.47387856", "text": "private void insertRec(String str, int pos, int stop)\r\n\t{\r\n\t\tif (pos < stop) \r\n\t\t{\r\n\t\t\tlastC.next = new CNode(str.charAt(pos));\r\n\t\t\tlastC = lastC.next;\t\r\n\t\t\tinsertRec(str, ++pos, stop);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b6b1a2830ec43baf73ff639417eb00ab", "score": "0.4738717", "text": "public void setDelimiter(String delimiter) {\r\n\t\tthis.delimiter = delimiter;\r\n\t}", "title": "" }, { "docid": "1ced866873327c5bd4beae28c2c367f1", "score": "0.47371182", "text": "private static String createDelimiterPattern() {\n /*\n * We want to tokenise the input, but also keep the delimiters in the token stream. This uses regex lookahead\n * and lookbehind to do that.\n *\n * Handcrafting a parser would be more efficient in terms of computering, but less efficient in terms of my\n * time, and it's not the point of this exercise.\n */\n\n return Arrays.stream(new String[]{\" \", \"+\", \"-\", \"/\", \"*\", \")\", \"(\"})\n .map(token -> String.format(WITH_DELIMITER, token))\n .collect(Collectors.joining(\"|\"));\n }", "title": "" }, { "docid": "082c50cfa7a15cee7c5cf0da9f0b8ce0", "score": "0.47371167", "text": "public void replace_without_iterator(char before, char after) throws IOException {\n for (int i = 0; i< list.size(); ++i){\n if(before == list.get(i))\n list.set(i,after);\n }\n writeToFile();\n }", "title": "" }, { "docid": "f1c4b9fa702338f9e827cf764e641571", "score": "0.47302696", "text": "public void setDelimiter( String delimiter )\n {\n this.delimiter = delimiter;\n }", "title": "" }, { "docid": "566628ae471332fb036c1f7920f5db59", "score": "0.47274932", "text": "public PeriodFormatterBuilder appendSeparator(String paramString)\r\n/* */ {\r\n/* 632 */ return appendSeparator(paramString, paramString, null, true, true);\r\n/* */ }", "title": "" }, { "docid": "4837af4c29213c6e5afd930bf91d59d2", "score": "0.47267303", "text": "void insertAfter(int data){\n\n\t\t// if iterator is at end of the list, and it is defined\n\t\t// call append\n\t\tif (index == len - 1 && index != -1) \n\t\t\tthis.append(data);\n\t\t// else, if the length is greater than 0 and index > 0, \n\t\t// insert a new node after iterator/cursor \n\t\telse if (this.length() > 0 && this.index() >= 0) {\n\n\t\t\tNode temp = new Node(data); \n\t\t\t\t\t\t\t\t\t\t// failed here 3 times\n\n\t\t\ttemp.next = iterator.next; \n\t\t\titerator.next.prev = temp; \n\t\t\ttemp.prev = iterator; \n\t\t\titerator.next = temp;\n\n\t\t\tlen++; \n\n\t\t} else // else cursor is undefined, so throw exception \n\t\tthrow new RuntimeException(\"Error, List is empty\" +\n\t\t\t\" or cursor is off end.\"); \n\t}", "title": "" }, { "docid": "4a11af4e3ff49abfccf96a2976d684c0", "score": "0.47243127", "text": "public void append(final String text) {\n\t\tappend(new KStringItem(null, text));\n\t}", "title": "" }, { "docid": "6b980fe6ef45a3acb70078aacef78133", "score": "0.47141814", "text": "private void addEntriesByDelimiter( String[] entries ) {\n if ( entries == null || entries.length == 0 )\n return ;\n String delimiter = logType.getColumnDelimiter();\n ArrayList rowsToAdd = new ArrayList();\n\n for ( int i = 0; i < entries.length; i++ ) {\n String entry = entries[ i ];\n String[] rowdata = entry.split( delimiter );\n ArrayList toShow = new ArrayList();\n boolean hasContent = false;\n for ( int j = 0; j < rowdata.length; j++ ) {\n if ( showColumns.get( j ) ) {\n if ( rowdata[ j ] != null && rowdata[ j ].length() > 0 )\n hasContent = true;\n toShow.add( rowdata[ j ] );\n }\n }\n if ( hasContent )\n rowsToAdd.add( toShow );\n }\n\n if ( rowsToAdd.size() > 0 )\n model.addRows( rowsToAdd );\n }", "title": "" }, { "docid": "d1b6fc852a7a1204997183b297bf6054", "score": "0.47044027", "text": "boolean isDelimiter(CharSequence buffer, int pos);", "title": "" }, { "docid": "2b96a92416b25b4bbd0e3b254a9a82e6", "score": "0.47039014", "text": "private String joinStrings(String sep, List<String> ss) {\n StringBuilder sb = new StringBuilder();\n for (String s : ss) {\n if (sb.length() > 0) {\n sb.append(sep);\n }\n sb.append(s);\n }\n return sb.toString();\n }", "title": "" }, { "docid": "1c36abbfa40130bba0309b2097e49ff0", "score": "0.46986693", "text": "public static StringBuilder append(StringBuilder sb, Iterator<?> it, String trailingDelim) {\r\n while (it.hasNext()) {\r\n sb.append(it.next().toString()).append(trailingDelim);\r\n }\r\n return sb;\r\n }", "title": "" }, { "docid": "68fa51be510896118c074fc2a8109d8e", "score": "0.46919343", "text": "private void prepareAddition()\n {\n if (builder.length() > 0)\n {\n builder.append(\" OR \"); //$NON-NLS-1$\n }\n }", "title": "" }, { "docid": "14b4c2313b5d3e40c9a62830badd6caa", "score": "0.46906516", "text": "protected abstract void appendText(String text) ;", "title": "" }, { "docid": "c1d31658688e2659553603c75bb75aac", "score": "0.46897238", "text": "public static String merge(String[] items, char delimiter) {\n\t\tif(AssertUtils.isEmpty(items)) {\n\t\t\treturn StringUtils.EMPTY_STRING;\n\t\t}\n\n\t\tStringBuilder builder = new StringBuilder(1024);\n\t\tfor(int index = 0; index < items.length; index++) {\n\t\t\tif(index > 0) {\n\t\t\t\tbuilder.append(delimiter);\n\t\t\t}\n\n\t\t\tbuilder.append(items[index]);\n\t\t}\n\n\t\treturn builder.toString();\n\t}", "title": "" }, { "docid": "41d30708c08b304eaccec2b5c9f01f21", "score": "0.46841708", "text": "public static String processList(String sourceCode, List<String> list,\n String sep) {\n String temp = StringUtils.trimToEmpty(sourceCode);\n\n while (true) {\n Matcher matcher;\n\n if ((matcher = Pattern.compile(Regex.TYPE).matcher(temp)).find()) {\n String s = matcher.group();\n list.add(s);\n temp = trimTarget(temp, s);\n } else {\n throw new ParseSyntaxException(Util.class, sourceCode);\n }\n\n if (temp.startsWith(sep)) {\n temp = trimTarget(temp, sep);\n continue;\n } else {\n break;\n }\n }\n\n return StringUtils.trimToEmpty(temp);\n }", "title": "" }, { "docid": "458debce667dc182df5395ef653677e6", "score": "0.46839282", "text": "public void insert (String item, position pos){\n node newLink = new node();\n newLink.item = item;\n counter++;\n if( isEmpty()==true){//what to insert if empty\n first = newLink;\n last = newLink;\n current = newLink;\n currentPosition = 0;\n }\n else if( current.next == null && pos == position.FOLLOWING){//insert as the last position\n last.next= newLink;\n newLink.prev= last;\n last = newLink;\n current = last;\n currentPosition = counter - 1;\n }\n else if( current.prev == null && pos == position.PREVIOUS){//inserting as previous to front of list\n first.prev = newLink;\n newLink.next = first;\n first = newLink;\n current = first;\n currentPosition = 0;\n }\n else if( pos == position.PREVIOUS){//insert as previoussomewhere in the array (not front) \n newLink.prev = current.prev;\n current.prev.next = newLink;\n newLink.next = current;\n current.prev = newLink;\n\t current = newLink;\n }\n else if( pos == position.FIRST){//insert in front\n first.prev = newLink;\n\t newLink.next = first;\n\t first = newLink;\n\t current = first;\n currentPosition = 0;\n }\n else if( pos == position.FOLLOWING){//insert following\n newLink.next = current.next;\n current.next.prev = newLink;\n newLink.prev = current;\n current.next = newLink;\n current = newLink;\n currentPosition++;\n }\n else if( pos == position.LAST){//inserting at the very end of list\n last.next= newLink;\n newLink.prev= last;\n\t last = newLink;\n\t current = last;\n currentPosition = counter - 1;\n } \n }", "title": "" }, { "docid": "0c392b08a061b820e18000b845b2a72b", "score": "0.4677082", "text": "public void insertBefore(List<E> toInsert, E point);", "title": "" }, { "docid": "1ac5a5bee9a8ddde14bd8019f634a1dc", "score": "0.46729335", "text": "public PeriodFormatterBuilder appendSeparator(String paramString1, String paramString2, String[] paramArrayOfString)\r\n/* */ {\r\n/* 724 */ return appendSeparator(paramString1, paramString2, paramArrayOfString, true, true);\r\n/* */ }", "title": "" }, { "docid": "7572740a1ed9fa14dedec05f8f3b28b8", "score": "0.46678308", "text": "private void addLineToList(String line) {\n super.add(line);\n }", "title": "" }, { "docid": "283b7587270bc18eeb070572690c2116", "score": "0.46659335", "text": "public void insert(String word);", "title": "" }, { "docid": "770b0ae5efde5a86ada67defe5c54f42", "score": "0.46647966", "text": "@Override\n\tpublic Long linsert(String s, LIST_POSITION list_position, String s1, String s2) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6a1992ceac6c69ac4facbc3bc7fad48b", "score": "0.46517062", "text": "public PeriodFormatterBuilder appendSeparator(String paramString1, String paramString2)\r\n/* */ {\r\n/* 697 */ return appendSeparator(paramString1, paramString2, null, true, true);\r\n/* */ }", "title": "" }, { "docid": "ffb58b2a115a7fb8cb490a26e0b957eb", "score": "0.46428975", "text": "public void addSplit(String columnHeader, String delimiter) throws Exception{\n\n\t\t// error if column does not exist\n\t\tif(headers.indexOf(columnHeader) == -1){\n\t\t\tthrow new Exception(\"Cannot clean nonexistent column \" + columnHeader);\n\t\t}\n\n\t\t// error if delimiter is unsupported\n\t\tif(ArrayUtils.indexOf(UNSUPPORTED_SPLIT_DELIMITERS, delimiter) > -1){\t\t\t\n\t\t\tthrow new Exception(\"Cannot yet support splitting on delimiter \" + delimiter);\n\t\t}\n\t\t// error if there is already a split on this column\n\t\tif(columnsToSplit.get(columnHeader) != null){\n\t\t\tthrow new Exception(\"Already splitting column using \" + columnsToSplit.get(columnHeader) + \", cannot add another split\");\n\t\t}\n\n\t\t// add the split\n\t\tcolumnsToSplit.put(columnHeader, delimiter);\n\t}", "title": "" }, { "docid": "942f20e3b9e9813169d70f706c966dd8", "score": "0.46396044", "text": "public void add_without_iterator(int position,String nameWillBeAdded) throws IOException {\n\n char [] charArray = convertStringToCharArray(nameWillBeAdded);\n for(int i = 0; i< nameWillBeAdded.length(); i++){\n list.add(position - 1, charArray[i]);\n position++;\n }\n writeToFile();\n }", "title": "" }, { "docid": "0dd3e46c61d59183169a921680f490c2", "score": "0.46338046", "text": "public void insertLine() {\n list.get(cursorRow).add(cursorCol, c);\n\n // Removes a char from the list\n list.get(cursorRow).removeLast();\n\n\n // Updates the list with displayable characters\n for(int i= cursorCol; i < 40; i++){\n display.displayChar((Character) list.get(cursorRow).get(i), cursorRow, i);\n }\n\n display.displayCursor(' ', cursorRow, cursorCol);\n\n // If cursor on the end of column, increment the row.\n if (cursorCol == 39 && cursorRow == 19) {\n } else {\n cursorCol++;\n if (cursorCol >= CharacterDisplay.WIDTH) {\n cursorCol = 0;\n cursorRow++;\n }\n }\n }", "title": "" }, { "docid": "f62f1253b3483bd20e6409f7739bb2b1", "score": "0.4632382", "text": "public static String merge(String[] items, String delimiter) {\n\t\tif(AssertUtils.isEmpty(items)) {\n\t\t\treturn StringUtils.EMPTY_STRING;\n\t\t}\n\n\t\tboolean addDelimiter = AssertUtils.isNotEmpty(delimiter);\n\n\t\tStringBuilder builder = new StringBuilder(1024);\n\t\tfor(int index = 0; index < items.length; index++) {\n\t\t\tif(addDelimiter) {\n\t\t\t\tif(index > 0) {\n\t\t\t\t\tbuilder.append(delimiter);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbuilder.append(items[index]);\n\t\t}\n\n\t\treturn builder.toString();\n\t}", "title": "" }, { "docid": "20a530b9799c1ba92f0b2ac88679ba49", "score": "0.46290016", "text": "private void addFiltered(Pattern filter, String key, ArrayList<String> data) {\n\t\tArrayList<String> list = new ArrayList<>();\n\t\tfor (String s : data) {\n\t\t\tMatcher matcher = filter.matcher(s);\n\t\t\tif (matcher.matches()) {\n\t\t\t\tlist.add(matcher.group(1).trim());\n\t\t\t}\n\t\t}\n\t\tif (list.size() > 0)\n\t\t\tput(key, list);\n\t}", "title": "" }, { "docid": "b271bd7cc4af294062f1fb5e66e7e97c", "score": "0.46268973", "text": "public default ThenMatcher<A> thenDelimit(final OperationMatcher<A> pattern,\n\t\t\tfinal PatternMatcher<A> delimiter) {\n\t\treturn thenDelimit(pattern, delimiter, (str, syn, inherit) -> syn);\n\t}", "title": "" }, { "docid": "03078145a4f449615ac7b2d371f5cfe7", "score": "0.46246198", "text": "@Test\n public void testListDelimiterHandlingInList() throws ConfigurationException {\n final String data = INI_DATA + \"[sectest]\" + LINE_SEPARATOR + \"list = 3\\\\,1415,pi,\\\\\\\\Test\\\\,5\" + LINE_SEPARATOR;\n final INIConfiguration config = setUpConfig(data);\n final INIConfiguration config2 = setUpConfig(saveToString(config));\n final List<Object> list = config2.getList(\"sectest.list\");\n assertEquals(Arrays.asList(\"3,1415\", \"pi\", \"\\\\Test,5\"), list);\n }", "title": "" }, { "docid": "3acd24c186bd67510f20f281084c923f", "score": "0.46210754", "text": "public void insert(String item);", "title": "" }, { "docid": "4defeb489d81e933474544de1516aeae", "score": "0.46162716", "text": "public void add( String newName, ListADT<String> newList );", "title": "" }, { "docid": "72dfd8da6f59da8b603aa193323d3048", "score": "0.46100363", "text": "public void merge(ArrayList<String> data, int firstIndex, int leftSegmentSize, int rightSegmentSize);", "title": "" }, { "docid": "8ff5730bb17888be96f3b1c56f7789ce", "score": "0.46040127", "text": "void substitution(String s, List<String> currentList, boolean wordsOnly);", "title": "" }, { "docid": "d85bdb59b97fc8a99ec1169b1dec2c83", "score": "0.45996612", "text": "@Test\n public void not_recommendend_way_to_split_list() throws IOException {\n var input = \"\"\"\n select *\n from table(\n mdsys.stringlist('this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values'));\n \"\"\";\n var actual = formatter.format(input);\n // the first formatter results produces wrong indents for subsequent lines\n // and A4 might split the lines at the wrong position for subsequent formatter calls\n var expected = \"\"\"\n select *\n from table(\n mdsys.stringlist('this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list',\n 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string',\n 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is',\n 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values',\n 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some',\n 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with',\n 'some', 'values'));\n \"\"\";\n assertEquals(expected, actual);\n // a second formatter call fixes the indent, but adds unwanted line breaks.\n // this is an expected result.\n // fixing that would require a correct indent calculation in A4, which would requires a lot of code duplication.\n var actual2 = formatter.format(actual);\n var expected2 = \"\"\"\n select *\n from table(\n mdsys.stringlist('this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list',\n 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string',\n 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is',\n 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values',\n 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some',\n 'values', 'this', 'is', 'a', 'string', 'list', 'with', 'some', 'values', 'this', 'is', 'a', 'string', 'list',\n 'with',\n 'some', 'values'));\n \"\"\";\n assertEquals(expected2, actual2);\n }", "title": "" }, { "docid": "8be13efeace2b412e8bc4cd468297cc9", "score": "0.4596932", "text": "public void setDelimiter(char delimiter) {\r\n this.delimiter = delimiter;\r\n }", "title": "" }, { "docid": "ff1f908d5cea8f5257c9b9755aabf03b", "score": "0.45951593", "text": "public void insertString(int offs, String str, AttributeSet a) throws BadLocationException {\n // fields don't want to have multiple lines. We may provide a\n // field-specific\n // model in the future in which case the filtering logic here will no\n // longer\n // be needed.\n Object filterNewlines = getProperty(\"filterNewlines\");\n if ((filterNewlines instanceof Boolean) && filterNewlines.equals(Boolean.TRUE)) {\n if ((str != null) && (str.indexOf('\\n') >= 0)) {\n StringBuilder filtered = new StringBuilder(str);\n int n = filtered.length();\n for (int i = 0; i < n; i++) {\n if (filtered.charAt(i) == '\\n') {\n filtered.setCharAt(i, ' ');\n }\n }\n str = filtered.toString();\n }\n }\n super.insertString(offs, str, a);\n }", "title": "" }, { "docid": "90f436343d0c3d8521b6e03a2e512748", "score": "0.45696276", "text": "public static String listToString (List<String> oList, String separator,\r\n int separatorFrPos) {\r\n StringBuffer sb = new StringBuffer();\r\n for (int i = 0; i < oList.size(); i++) {\r\n if (i > separatorFrPos) {\r\n sb.append(separator);\r\n }\r\n sb.append(oList.get(i));\r\n }\r\n return sb.toString();\r\n }", "title": "" }, { "docid": "600ec1611af86a69d02ffe87468eed7f", "score": "0.45684984", "text": "void setSeparator(String sep);", "title": "" }, { "docid": "976b9536be7df6cf2c1f83cfafb1bf4c", "score": "0.45653215", "text": "private int addNewListBlock(char[] data) {\n // remember where we store the data\n int oldIndex = curIndex;\n // first store the length of the data\n // we split the int that represents the length into to chars\n int l = data.length+2;\n char[] lAsChars = Utils.int2TwoChars(l);\n addChars(lAsChars);\n addChars(zeroChars);\n addChars(data);\n // after storing, the new index is now moved by the length of the data\n // plus the two chars where we store the length\n curIndex += data.length+4;\n return oldIndex; \n }", "title": "" }, { "docid": "05699d667f1b818c11ee91cabb3e2635", "score": "0.45643365", "text": "protected static int writeDelimiters(final Writer w, final String fieldSeparator, final String encodingCharacters, final HL7Delimiters d, int last) throws IOException {\n if (fieldSeparator == null) {\n w.write(Escaper.getFieldSeparator(d));\n } else {\n w.write(fieldSeparator);\n }\n //int last = 1;\n //last = addField(w, encodingCharacters, last, 2); // Don't want this escaped\n if (encodingCharacters != null) {\n w.write(encodingCharacters);\n }\n return 2;\n }", "title": "" }, { "docid": "265c82200e249be9cbce49597eedbbf4", "score": "0.4553085", "text": "private final void addToken(boolean foundNonLetter){\n\t\tif(length!=0){\n\t\t\tif(options.highlightParsing && glueLength != 0){\n\t\t\t\t// we collected some glue, flush\n\t\t\t\tExtToken t = makeGlueToken();\n\t\t\t\tif(t != null)\n\t\t\t\t\taddToTokens(t);\n\t\t\t\tglueLength = 0;\n\t\t\t}\n\t\t\tif(numberToken && (buffer[length-1]=='.' || buffer[length-1]==',')){\n\t\t\t\tlength--; // strip trailing . and , in numbers\n\t\t\t\tif(options.highlightParsing){\n\t\t\t\t\tglueStart = cur; // we know glueLength will be 0\n\t\t\t\t\tglueBuffer[glueLength++] = buffer[length];\n\t\t\t\t}\n\t\t\t}\n\t\t\t// decompose token, maintain alias if needed\n\t\t\tdecompLength = 0;\n\t\t\taliasLength = -1;\n\t\t\tboolean addToAlias;\n\t\t\tboolean addDecomposed = false;\n\t\t\tboolean allUpperCase = true;\n\t\t\tboolean titleCase = true;\t\t\t\n\t\t\tboolean split = false; // if more tokens should be produced, e.g. joe's -> joe + s\n\t\t\tfor(int i=0;i<length;i++){\n\t\t\t\tif(decomposer.isCombiningChar(buffer[i])){\n\t\t\t\t\taddDecomposed = true;\n\t\t\t\t\tcontinue; // skip \n\t\t\t\t}\n\t\t\t\tif(!Character.isUpperCase(buffer[i]) && buffer[i]!='.' && !isApostrophe(buffer[i]))\n\t\t\t\t\tallUpperCase = false;\n\t\t\t\tif(i == 0 && !Character.isUpperCase(buffer[i]))\n\t\t\t\t\ttitleCase = false;\n\t\t\t\taddToAlias = true;\n\t\t\t\tif( ! options.exactCase )\n\t\t\t\t\tcl = Character.toLowerCase(buffer[i]);\n\t\t\t\telse{\n\t\t\t\t\tcl = buffer[i];\n\t\t\t\t\t// check additional (uppercase) character aliases\n\t\t\t\t\tif(cl == 'Ä' ){\n\t\t\t\t\t\taddToTokenAlias(\"Ae\");\n\t\t\t\t\t\taddToAlias = false;\n\t\t\t\t\t} else if(cl == 'Ö'){\n\t\t\t\t\t\taddToTokenAlias(\"Oe\");\n\t\t\t\t\t\taddToAlias = false;\n\t\t\t\t\t} else if(cl == 'Ü'){\n\t\t\t\t\t\taddToTokenAlias(\"Ue\");\n\t\t\t\t\t\taddToAlias = false;\n\t\t\t\t\t} else if(cl == 'Ñ'){\n\t\t\t\t\t\taddToTokenAlias(\"Nh\");\n\t\t\t\t\t\taddToAlias = false;\n\t\t\t\t\t} else if(cl == 'Å'){\n\t\t\t\t\t\taddToTokenAlias(\"Aa\");\n\t\t\t\t\t\taddToAlias = false;\n\t\t\t\t\t} else if(cl == 'Ø'){\n\t\t\t\t\t\taddToTokenAlias(\"O\");\n\t\t\t\t\t\taddToAlias = false;\n\t\t\t\t\t} else if(cl == 'Æ'){\n\t\t\t\t\t\taddToTokenAlias(\"AE\");\n\t\t\t\t\t\taddToAlias = false;\n\t\t\t\t\t} else if(cl == 'Œ'){\n\t\t\t\t\t\taddToTokenAlias(\"OE\");\n\t\t\t\t\t\taddToAlias = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// special alias transliterations ä -> ae, etc ... \n\t\t\t\tif(cl == 'ä' ){\n\t\t\t\t\taddToTokenAlias(\"ae\");\n\t\t\t\t\taddToAlias = false;\n\t\t\t\t} else if(cl == 'ö'){\n\t\t\t\t\taddToTokenAlias(\"oe\");\n\t\t\t\t\taddToAlias = false;\n\t\t\t\t} else if(cl == 'ü'){\n\t\t\t\t\taddToTokenAlias(\"ue\");\n\t\t\t\t\taddToAlias = false;\n\t\t\t\t} else if(cl == 'ß'){\n\t\t\t\t\taddToTokenAlias(\"ss\");\n\t\t\t\t\taddToAlias = false;\n\t\t\t\t} else if(cl == 'ñ'){\n\t\t\t\t\taddToTokenAlias(\"nh\");\n\t\t\t\t\taddToAlias = false;\n\t\t\t\t} else if(cl == 'å'){\n\t\t\t\t\taddToTokenAlias(\"aa\");\n\t\t\t\t\taddToAlias = false;\n\t\t\t\t} else if(cl == 'ø'){\n\t\t\t\t\taddToTokenAlias(\"o\");\n\t\t\t\t\taddToAlias = false;\n\t\t\t\t} else if(cl == 'æ'){\n\t\t\t\t\taddToTokenAlias(\"ae\");\n\t\t\t\t\taddToAlias = false;\n\t\t\t\t} else if(cl == 'œ'){\n\t\t\t\t\taddToTokenAlias(\"oe\");\n\t\t\t\t\taddToAlias = false;\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\t// delete ' marks from words, add as aliases\n\t\t\t\tif(isApostrophe(cl)){\n\t\t\t\t\taddToTokenAlias(\"\");\n\t\t\t\t\taddToAlias = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// split around dots in aliases\n\t\t\t\tif(!options.noTokenization && (cl=='.' && !numberToken)){\n\t\t\t\t\tsplit = true;\n\t\t\t\t\t//addToTokenAlias(\"\");\n\t\t\t\t\t//addToAlias = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!options.noTokenization && isTrailing(cl)){\n\t\t\t\t\taddToTokenAlias(\"\");\n\t\t\t\t\taddToAlias = false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\tdecomp = decompose(cl);\n\t\t\t\t// no decomposition\n\t\t\t\tif(decomp == null){\n\t\t\t\t\tif(decompLength<decompBuffer.length)\n\t\t\t\t\t\tdecompBuffer[decompLength++] = cl;\n\t\t\t\t\tif(addToAlias && aliasLength>=0 && aliasLength<aliasBuffer.length)\n\t\t\t\t\t\taliasBuffer[aliasLength++] = cl;\n\t\t\t\t} else{\n\t\t\t\t\taddDecomposed = true; // there are differences to the original version \n\t\t\t\t\tfor(decompi = 0; decompi < decomp.length; decompi++){\n\t\t\t\t\t\tif(decompLength<decompBuffer.length)\n\t\t\t\t\t\t\tdecompBuffer[decompLength++] = decomp[decompi];\n\t\t\t\t\t\tif(addToAlias && aliasLength>=0 && aliasLength<aliasBuffer.length)\n\t\t\t\t\t\t\taliasBuffer[aliasLength++] = decomp[decompi];\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tif(templateLevel == 0 && tableLevel == 0)\n\t\t\t\tkeywordTokens+=gap; // inc by gap (usually 1, can be more before paragraphs and sections)\n\t\t\t\n\t\t\t// add exact token\n\t\t\tToken exact;\n\t\t\tif(options.exactCase)\n\t\t\t\texact = makeToken(new String(buffer, 0, length), start, start + length,true);\n\t\t\telse\n\t\t\t\texact = makeToken(new String(buffer, 0, length).toLowerCase(), start, start + length,true);\n\t\t\texact.setPositionIncrement(gap);\n\t\t\tif(gap != 1)\n\t\t\t\tgap = 1; // reset token gap\n\t\t\tif(!options.noCaseDetection){\t\n\t\t\t\tif(allUpperCase)\n\t\t\t\t\texact.setType(\"upper\");\n\t\t\t\telse if(titleCase)\n\t\t\t\t\texact.setType(\"titlecase\");\n\t\t\t}\n\t\t\t// detect hyphenation (takes precedence over case detection)\n\t\t\tif(cur+1<textLength && text[cur]=='-' && (Character.isLetterOrDigit(text[cur+1]) || decomposer.isCombiningChar(text[cur+1])))\n\t\t\t\texact.setType(\"with_hyphen\");\n\t\t\t\n\t\t\taddToTokens(exact);\n\t\t\t\n\t\t\t// extra uppercase token, prevent exact-matches for titles\n\t\t\tif(options.extraUpperCaseToken && allUpperCase){\n\t\t\t\tToken t = makeToken(new String(buffer, 0, length), start, start + length, false);\n\t\t\t\tt.setPositionIncrement(0);\n\t\t\t\tt.setType(exact.type());\n\t\t\t\taddToTokens(t);\n\t\t\t}\n\t\t\t \n\t\t\tif(!options.noAliases){\n\t\t\t\t// add decomposed token to stream\n\t\t\t\tif(decompLength!=0 && addDecomposed){\n\t\t\t\t\tToken t = makeToken(new String(decompBuffer, 0, decompLength), start, start + length, false);\n\t\t\t\t\tt.setPositionIncrement(0);\n\t\t\t\t\tt.setType(exact.type() + \"-decomposed\");\n\t\t\t\t\taddToTokens(t);\n\t\t\t\t}\n\t\t\t\t// add alias (if any) token to stream\n\t\t\t\tif(aliasLength>0){\n\t\t\t\t\tToken t = makeToken(new String(aliasBuffer, 0, aliasLength), start, start + length, false);\n\t\t\t\t\tt.setPositionIncrement(0);\n\t\t\t\t\tt.setType(exact.type() + \"-aliased\");\n\t\t\t\t\taddToTokens(t);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// split buffer around non-letter chars, add all as aliases\n\t\t\tif(split && options.split){\n\t\t\t\tint start=-1;\n\t\t\t\tfor(int i=0;i<decompLength+1;i++){\n\t\t\t\t\tboolean sp = i==decompLength || decompBuffer[i]=='.';\n\t\t\t\t\tif(!sp && start==-1){\n\t\t\t\t\t\tstart = i;\n\t\t\t\t\t} else if(sp && start!=-1){\n\t\t\t\t\t\tToken t = makeToken(new String(decompBuffer, start, i-start), start, start + length, false);\n\t\t\t\t\t\tt.setPositionIncrement(0);\n\t\t\t\t\t\tt.setType(exact.type());\n\t\t\t\t\t\taddToTokens(t);\n\t\t\t\t\t\tstart = -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlength = 0;\n\t\t\tnumberToken = false;\n\t\t\t\n\t\t}\n\t\t// keep track of \"glue\"\n\t\tif(options.highlightParsing && foundNonLetter){\t\t\n\t\t\tif(glueLength == 0)\n\t\t\t\tglueStart = cur;\n\t\t\tif(glueLength < glueBuffer.length){\n\t\t\t\tglueBuffer[glueLength++] = c; \n\t\t\t}\n\t\t}\n\t\tif(lastImgLinkCatWord)\n\t\t\tlastImgLinkCatWord = false; // always reset\n\t}", "title": "" } ]
226d65541f0f141a9ab717fcb8f31050
the buildpanel method adds a lable text field, and a button to a panel
[ { "docid": "9e3168f5baeda7065b7c327a9a708a9d", "score": "0.73737687", "text": "private void buildPanel ()\n\n {\n //create a lable to display instructions\n messageLabel_gallons =\n new JLabel (\"Enter number of gallons\");\n gallonsTextField = new JTextField (10);\n\n\n //create label to display instructinos\n messageLabel_miles =\n new JLabel (\"Enter number of miles\");\n milesTextField = new JTextField (10);\n\n //create a button with the captions \"Calculate\".\n\n mpgButton = new JButton (\"Calculate MPG\");\n mpgButton.addActionListener (new CalculateMPG());\n //adding items to panel\n\n panel = new JPanel ();\n panel.add (messageLabel_gallons);\n panel.add (gallonsTextField);\n panel.add (messageLabel_miles);\n panel.add (milesTextField);\n panel.add (mpgButton);\n\n }", "title": "" } ]
[ { "docid": "31b5e012bf45a7595a8f72458dbd5d7c", "score": "0.79907525", "text": "private void buildPanel(){\r\n\t\t//Create a label to display instructions\r\n\t\tmessageLabel=new JLabel(\"Enter a distance\"+\"in kilometters\");\r\n\t\t//create a textfield 10 characters wide\r\n\t\tkiloTextField=new JTextField(10);\r\n\t\t//create a new button\r\n\t\tcalcButton=new JButton(\"Calculate\");\r\n\t\t\r\n\t\t//Create a JPanel object and let the panel\r\n\t\t//field reference it\r\n\t\tpanel =new JPanel();\r\n\t\t//add the label, text, and button\r\n\t\tpanel.add(messageLabel);\r\n\t\tpanel.add(kiloTextField);\r\n\t\tpanel.add(calcButton);}", "title": "" }, { "docid": "6ec6659e89829e9d96ba3f6e05cfce97", "score": "0.78259027", "text": "private void buildPanel(){\n message = new JLabel(\"Enter your mail \" +\"\");\n\n // Create a text field 10 characters wide.\n nameField = new JTextField(10);\n\n // Create a button with the caption \"sign in\".\n okButton = new JButton(\"sign In\");\n\n // Add an action listener to the button.\n\n \n // Add the label, text field, and button\n // components to the panel.\n \n okButton.setBackground(Color.red);\n okButton.setForeground(Color.yellow);\n \n \n // Add action listeners to the radio buttons.\n \n panel = new JPanel();\n \n panel.add(message);\n panel.add(nameField);\n panel.add(okButton);\n \n \n }", "title": "" }, { "docid": "e2302347daa1d4b26af3310e394dfb2c", "score": "0.76487523", "text": "private void buildPanel() {\n\t\tkilometersLabel = new JLabel(\"Kilometer: \");\n\t\tkilometersTextField = new JTextField(5); // texField de tamano 5 //columns \n\n\t\tconvertButton = new JButton(\"Convert\");\n\t\tconvertButton.setMnemonic(KeyEvent.VK_C);\n\n\t\tresetButton = new JButton(\"Reset\");\n\t\tresetButton.setMnemonic(KeyEvent.VK_R);\n\n\t\tmilesLabel = new JLabel(\"Miles:\");\n\t\tmilesTextField = new JTextField(5);\n\t\t// no se puedeeditar // no se puede tampoco entra en el focus,cuando de con tab \n\t\tmilesTextField.setEditable(false);\n\t\tmilesTextField.setFocusable(false);\n\n\t\tconvertButton.addActionListener(new ButtonListener());\n\t\tresetButton.addActionListener(new ButtonListener());\n\n\t\tmainPanel = new JPanel();\n\t\tmainPanel.add(kilometersLabel);\n\t\tmainPanel.add(kilometersTextField);\n\t\tmainPanel.add(convertButton);\n\t\tmainPanel.add(resetButton);\n\t\tmainPanel.add(milesLabel);\n\t\tmainPanel.add(milesTextField);\n\n\n\t}", "title": "" }, { "docid": "379e4ad6496316bf4a215c05185458cd", "score": "0.76033586", "text": "private void buildAddPanel() {\n\t\taddLibraryTable.setText(0, 0, \"ID:\");\n\t\taddLibraryTable.setText(1, 0, \"Name:\");\n\t\taddLibraryTable.setText(2, 0, \"Branch:\");\n\t\taddLibraryTable.setText(3, 0, \"Phone:\");\n\t\taddLibraryTable.setText(4, 0, \"Address:\");\n\t\taddLibraryTable.setText(5, 0, \"City:\");\n\t\taddLibraryTable.setText(6, 0, \"PostCode:\");\n\t\taddLibraryTable.setText(7, 0, \"Latitude:\");\n\t\taddLibraryTable.setText(8, 0, \"Longitude:\");\n\n\t\taddLibraryTable.setWidget(0, 1, inputLibraryID);\n\t\taddLibraryTable.setWidget(1, 1, inputLibraryName);\n\t\taddLibraryTable.setWidget(2, 1, inputLibraryBranch);\n\t\taddLibraryTable.setWidget(3, 1, inputLibraryPhone);\n\t\taddLibraryTable.setWidget(4, 1, inputLibraryAddress);\n\t\taddLibraryTable.setWidget(5, 1, inputLibraryCity);\n\t\taddLibraryTable.setWidget(6, 1, inputLibraryPostCode);\n\t\taddLibraryTable.setWidget(7, 1, inputLibraryLat);\n\t\taddLibraryTable.setWidget(8, 1, inputLibraryLon);\n\t\t\n\t\t// Move cursor focus to ALL input box.\n\t\tinputLibraryID.setFocus(true);\n\t\t\n\t\t// Listen for mouse events on the Add button\n\t\taddLibraryButton.addClickHandler(new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\taddLibrary();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// TODO Listen for mouse event on the Load button\n\t\tloadLibraryButton.addClickHandler(new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tSystem.out.println(\"load library is click\");\n\t\t\t\ttabLibraries.clear();\n\t\t\t\t//addToDataStore();\n\t\t\t\t// loadLibraries();\n\t\t\t}\n\t\t});\n\t\t\t\t\n\t}", "title": "" }, { "docid": "a34152fa3283d19ecc37fa2539b0ff86", "score": "0.76017237", "text": "private void buildButtonPanel()\r\n\t\t{\n\t\t}", "title": "" }, { "docid": "7f4953349d742ecbe0189a142e8ab92f", "score": "0.7250088", "text": "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tthis.add(firstButton);\n\t\tthis.add(firstTextField);\n\t\tthis.setBackground(Color.BLUE);\n\t}", "title": "" }, { "docid": "3d4c34c21b68045664148d9525cebeeb", "score": "0.72196615", "text": "private void buildBottomPanel() {\n\t\tbuttonPanel = new JPanel();\n\n\t\t// Create the buttons\n\t\tbuttonStore = new JButton(\"Store\");\n\t\tbuttonRestore = new JButton(\"Restore\");\n\n\t\tlabelStatus = new JLabel(\"Status:\");\n\t\tlabelCurrentStatus = new JLabel(\"\");\n\t\t\n\t\tlabelFileName = new JLabel(\"Filename:\");\n\t\ttextFileName = new JTextField(10);\n\n\t\t// Add the buttons to the button panel\n\t\tbuttonPanel.add(buttonStore);\n\t\tbuttonPanel.add(buttonRestore);\n\t\tbuttonPanel.add(labelFileName);\n\t\tbuttonPanel.add(textFileName);\n\t\t\n\t\tbuttonPanel.add(labelStatus);\n\t\tbuttonPanel.add(labelCurrentStatus);\n\n\t}", "title": "" }, { "docid": "e67e2fc2135e91036b98ff9ac5bfa065", "score": "0.71861213", "text": "public void buildDataPanel() {\n\n titlePanel = new JPanel();\n buttonPanel = new JPanel();\n dataGlobalPanel = new JPanel();\n\n scriptDescription = scriptDescription.replaceFirst(\"-- \", \"\");\n\n // Localized titles and labels\n scrName = titles.getString(\"ScrName\");\n defSelVals = titles.getString(\"DefSelVals\");\n\n JTextArea title1 = new JTextArea(scriptDescription);\n title1.setFont(new Font(\"Helvetica\", Font.PLAIN, 20));\n title1.setEditable(false);\n JTextArea title2 = new JTextArea(scrName + scriptName);\n title2.setFont(new Font(\"Helvetica\", Font.PLAIN, 16));\n title2.setEditable(false);\n JTextArea title3 = new JTextArea(defSelVals);\n title3.setForeground(DIM_BLUE); // Dim blue\n title3.setEditable(false);\n titlePanel.setLayout(new BoxLayout(titlePanel, BoxLayout.PAGE_AXIS));\n titlePanel.setAlignmentX(Box.LEFT_ALIGNMENT);\n titlePanel.add(title1);\n titlePanel.add(title2);\n titlePanel.add(title3);\n\n title1.setBackground(titlePanel.getBackground());\n title2.setBackground(titlePanel.getBackground());\n title3.setBackground(titlePanel.getBackground());\n\n // Build a panel with input fields with labels\n // -------------------------------------------\n buildInputPanel();\n\n // Build button row\n buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.LINE_AXIS));\n buttonPanel.setAlignmentX(Box.LEFT_ALIGNMENT);\n buttonPanel.add(returnButton);\n buttonPanel.add(Box.createRigidArea(new Dimension(20, 0)));\n buttonPanel.add(refreshOrigButton);\n buttonPanel.add(Box.createRigidArea(new Dimension(20, 0)));\n buttonPanel.add(refreshEnteredButton);\n buttonPanel.add(Box.createRigidArea(new Dimension(20, 0)));\n buttonPanel.add(enterButton);\n\n // buttonPanel.setSize(100, 50);\n buttonPanel.add(Box.createRigidArea(new Dimension(0, 60)));\n\n // Set blank message initially\n message = new JLabel(\" \");\n\n try {\n dataPanel = new JPanel();\n layout = new GroupLayout(dataPanel);\n dataPanel.setLayout(layout);\n\n // Arrange panels in group layout\n layout.setAutoCreateGaps(true);\n layout.setAutoCreateContainerGaps(true);\n layout.setHorizontalGroup(layout.createSequentialGroup().addGroup(\n layout.createParallelGroup(LEADING).addComponent(titlePanel)\n .addComponent(inputPanel).addComponent(buttonPanel).addComponent(message)));\n layout.setVerticalGroup(layout.createSequentialGroup().addGroup(\n layout.createSequentialGroup().addComponent(titlePanel).addComponent(inputPanel)\n .addComponent(buttonPanel).addComponent(message)));\n\n scrollPaneData = new JScrollPane(dataGlobalPanel);\n scrollPaneData.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 10));\n scrollPaneData.setBackground(dataPanel.getBackground());\n\n dataGlobalPanel.add(dataPanel);\n dataContentPane = getContentPane();\n dataContentPane.add(scrollPaneData);\n\n // Window height is a variable depending on number of input fields\n // i. e. the size of the marker array list or number of question marks\n // in the SQL statement.\n dataPanelHeight = markerArrayList.size() * (txtFldHeight + 20) + 260;\n\n } catch (IllegalArgumentException iae) {\n System.out.println(iae.getLocalizedMessage());\n }\n }", "title": "" }, { "docid": "649779b4cf24eb51a49ca3c99b46f1fb", "score": "0.7165272", "text": "private void initPanelComponent()\r\n\t{\r\n\t\tm_Panel = new JPanel();\r\n\t\tm_Panel.setVisible(true);\r\n\r\n\t\tm_tfNombre = new JTextField();\r\n\t\tm_tfNombre.setVisible(true);\r\n\t\tm_tfNombre.setColumns(10);\r\n\t\t\r\n\t\tm_jlNombre = new JLabel(\"Nombre de usuario:\");\r\n\t\tm_jlNombre.setVisible(true);\r\n\t\t\r\n\t\tm_btnRegistrarUsuario = new JButton(\"Registar usuario\");\r\n\t\tm_btnRegistrarUsuario.setVisible(true);\r\n\t\tm_btnRegistrarUsuario.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\r\n\t\t\t{\r\n\t\t\t\tanadirUsuario();\r\n\t\t\t}\r\n\t\t});\r\n\t\tm_Panel.add(m_jlNombre);\r\n\t\tm_Panel.add(m_tfNombre);\r\n\t\tm_Panel.add(m_btnRegistrarUsuario);\r\n\t}", "title": "" }, { "docid": "e8704de133600e423756889ac3f66a72", "score": "0.71314645", "text": "public Panel newPanel() {\r\n\t\t\r\n\t\tthis.obtenDatosSesion();\r\n\t\tif (panel == null) {\r\n\t\t\tmensaje = (CIDAQmensajes) GWT.create(CIDAQmensajes.class);\r\n\r\n\t\t\tinicializaForm();\r\n\t\t\tfinal Button submitBtn = new Button(Constantes.BUSCAR,\r\n\t\t\t\t\tnew ButtonListenerAdapter() {\r\n\t\t\t\t\t\tpublic void onClick(final Button button, EventObject e) {\r\n\r\n\t\t\t\t\t\t\tif (valida()) {\r\n\t\t\t\t\t\t\t\tinicializaBusqueda();\r\n\t\t\t\t\t\t\t currentPage = 1;\r\n\t\t\t\t\t\t\t totalRows = 0;\r\n\t\t\t\t\t\t\t\tobtenDatosGrid();\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\r\n\t\t\tfinal Button limpiarBtn = new Button(mensaje.msgBTNLIMPIAR(),\r\n\t\t\t\t\tnew ButtonListenerAdapter() {\r\n\t\t\t\t\t\tpublic void onClick(final Button button, EventObject e) {\r\n\r\n\t\t\t\t\t\t\t limpiaPantalla();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\tPanel wrapperPanelboton = new Panel();\r\n\t\t\tPanel panelSuperior = new Panel();\r\n\t\t\tpanelSuperior.setWidth(300);\r\n\t\t\twrapperPanelboton.setLayout(new HorizontalLayout(20));\r\n\r\n\t\t\twrapperPanelboton.setBodyStyle(Constantes.panBackGroundColor);\r\n\t\t\twrapperPanelboton.add(panelSuperior);\r\n\t\t\twrapperPanelboton.add(submitBtn);\r\n\t\t\twrapperPanelboton.add(limpiarBtn);\r\n\t\t\t\r\n\r\n\t\t\tfieldSet.add(wrapperPanelboton);\r\n\t\t\tformPanel.add(fieldSet);\r\n\r\n\t\t\tinicializaGrid();\r\n\t\t\tbottomToolbar.addButton(this.recBtnExportar = new ToolbarButton(\r\n\t\t\t\t\tConstantes.EXPORTAR, new ButtonListenerAdapter() {\r\n\t\t\t\t\t\tpublic void onClick(Button button, EventObject e) {\r\n\t\t\t\t\t\t\texportar();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}));\r\n\t\t\tthis.recBtnExportar.disable();\r\n\t\t\trecBtnExportar.setId(Constantes.BTN_RCP_EXPORTAR);\r\n\r\n\t\t\t/*bottomToolbar.addButton(this.recBtnImprimir = new ToolbarButton(\r\n\t\t\t\t\tConstantes.IMPRIMIR, new ButtonListenerAdapter() {\r\n\t\t\t\t\t\tpublic void onClick(Button button, EventObject e) {\r\n\t\t\t\t\t\t\timprimir();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}));\r\n\r\n\t\t\tthis.recBtnImprimir.disable();\r\n\t\t\trecBtnImprimir.setId(Constantes.BTN_RCP_IMPRIMIR);\r\n\t\t\tthis.recBtnImprimir.setVisible(false);*/\r\n\t\t//\tgridBusqueda.setTopToolbar(topToolbar);\r\n\r\n\t\t\tpanel = new Panel();\r\n\t\t\tpanel.setId(\"activePanelR\");\r\n\t\t\tpanel.setBorder(false);\r\n\t\t\tpanel.add(formPanel);\r\n\t\t\tpanel.add(panelInterno);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.obtenEmpresas();\r\n\t\t}\r\n\t\tUtilerias.aplicarSeguridad();\r\n\t\tpanel.setVisible(false);\r\n\t\treturn panel;\r\n\t}", "title": "" }, { "docid": "9ee010ed774609050c1e627ea47f6059", "score": "0.71121305", "text": "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tthis.setBackground(aColor);\n\t\tthis.add(textPane3);\n\t\tthis.add(textPane2);\n\t\tthis.add(textPane);\n\t\tthis.setSize(1000, 600);\n\t\tthis.add(sortIntButton);\n\t\tthis.add(sortABCButton);\n\t\tthis.add(sortDoubleButton);\n\t\tthis.add(sortGuiButton);\n\t\tthis.add(sortArrayButton);\n\t\tthis.add(searchButton);\n\t\tthis.add(quickButton);\n\t\tthis.add(inputField);\n\t\tthis.add(unsortedLabel);\n\t\tthis.add(sortedLabel);\n\t\tthis.add(timeLabel);\n\t\ttextPane.setBackground(Color.LIGHT_GRAY);\n\t\ttextPane2.setBackground(Color.LIGHT_GRAY);\n\t\ttextPane3.setBackground(Color.LIGHT_GRAY);\n\t\tunsortedLabel.setForeground(Color.YELLOW);\n\t\tsortedLabel.setForeground(Color.YELLOW);\n\t\ttimeLabel.setForeground(Color.YELLOW);\n\n\t\tinputField.setBackground(Color.WHITE);\n\n\t}", "title": "" }, { "docid": "328aaf60fa2aaef0810b189ab3806635", "score": "0.71045136", "text": "public AddPanel() {\n initComponents();\n }", "title": "" }, { "docid": "cccf6223bc827ea765fdb40107fc1841", "score": "0.70600533", "text": "public void buildAccessJPanel() {\n form = new CustomForm(new Row[]{Row.NAME,Row.PASSWORD,Row.CONFIRM},\"Save New Name\", e -> handleButton());\n\n add(form,customConstraint(0,1,0,1.0));\n changeDisplay(true);\n }", "title": "" }, { "docid": "d6494f9a6fc9462637f9535f286abe69", "score": "0.70365137", "text": "private JPanel createAddPanel() {\n\t\tpnlAdd = new JPanel(new BorderLayout());\n\t\tJPanel panel = new JPanel(new GridLayout(8, 0));\n\t\tJPanel pnlName = new JPanel();\n\t\tpnlName.setLayout(new GridLayout(1, 0));\n\t\ttxfFirst = new HintTextField(\"First Name\");\n\t\ttxfFirst.setColumns(8);\n\t\ttxfMiddle = new HintTextField(\"Middle Name\");\n\t\ttxfMiddle.setColumns(8);\n\t\ttxfLast = new HintTextField(\"Last Name\");\n\t\ttxfLast.setColumns(8);\n\t\tpnlName.add(txfFirst);\n\t\tpnlName.add(txfMiddle);\n\t\tpnlName.add(txfLast);\n\n\t\ttxfEmail = new HintTextField(\"E-mail\");\n\t\ttxfUWNetID = new HintTextField(\"UWNetID\");\n\n\t\tJPanel pnlDegree = new JPanel();\n\t\tList<Degree> degrees = null;\n\t\ttry {\n\t\t\tdegrees = DegreeDB.getDegrees();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (degrees != null) {\n\t\t\tcmbDegree = new JComboBox<Object>(degrees.toArray());\n\t\t}\n\t\tpnlDegree.add(new JLabel(\"Program\"));\n\t\tpnlDegree.add(cmbDegree);\n\n\t\ttxtfTransfer = new HintTextField(\"Transfer College\");\n\t\ttxtfTransfer.setColumns(25);\n\n\t\tpnlDegree.add(new JLabel(\"Transfer College\"));\n\t\tpnlDegree.add(txtfTransfer);\n\n\t\tJPanel pnlButton = new JPanel();\n\t\tbtnAddStudent = new JButton(\"Add\");\n\t\tbtnAddStudent.addActionListener(this);\n\t\tpnlButton.add(btnAddStudent);\n\t\t\n\t\tJPanel titlePane = new JPanel();\n\t\ttitlePane.setBackground(MainGUI.UW_PURPLE);\n\t\tJLabel titleLabel = new JLabel(\"Add Student\");\n\t\ttitleLabel.setFont(MainGUI.UW_BIG_FONT);\n\t\ttitleLabel.setForeground(Color.WHITE);\n\t\ttitlePane.add(titleLabel);\n\t\t\n\t\tpanel.add(titlePane);\n\t\tpanel.add(pnlName);\n\t\tpanel.add(txfEmail);\n\t\tpanel.add(txfUWNetID);\n\t\tpanel.add(pnlDegree);\n\t\tpanel.add(createGPAPanel());\n\t\tpanel.add(createGraudationDatePanel());\n\t\tpanel.add(pnlButton);\n\n\t\tpnlAdd.add(panel, BorderLayout.CENTER);\n\t\treturn pnlAdd;\n\t}", "title": "" }, { "docid": "e137723e5cdb6ee9faed1f301acbd4fc", "score": "0.69706184", "text": "public JPanel createAddPanel() {\n\t\tJPanel inputPanel = new JPanel();\n\t\tJLabel usernameLabel = new JLabel(\"Username:\");\n\t\tusername = new JTextField(10);\n\t\tJLabel userIDLabel = new JLabel(\"UserID:\");\n\t\tuserID = new JTextField(10);\n\t\t\n\t\tinputPanel.add(usernameLabel);\n\t\tinputPanel.add(username);\n\t\tinputPanel.add(userIDLabel);\n\t\tinputPanel.add(userID);\n\t\t\n\t\tadd = new JButton(\"Add User\");\n\t\tadd.addActionListener(this);\n\t\tJPanel buttonHolder = new JPanel();\n\t\tbuttonHolder.add(add);\n\t\t\n\t\tJPanel addPanel = new JPanel();\n\t\taddPanel.add(inputPanel, BorderLayout.CENTER);\n\t\taddPanel.add(buttonHolder, BorderLayout.EAST);\n\t\t\n\t\treturn addPanel;\n\t}", "title": "" }, { "docid": "86d608bb1b99e56fcb527d799a286c4f", "score": "0.6938821", "text": "@Override\n protected JPanel buildControls() {\n pnl = super.buildControls();\n return pnl;\n }", "title": "" }, { "docid": "444a8054e399d53a90447e825a4249f7", "score": "0.69254136", "text": "public void addplayerinfopanel(){\n\t\t\n\t\t//Add Buttons\n\t statusbutton = new JButton(piconline);\n\t statusbutton.setBorder(BorderFactory.createEmptyBorder());\n\t statusbutton.setContentAreaFilled(false);\n\t editbutton = new JButton(piceditbutton);\n\t editbutton.setBorder(BorderFactory.createEmptyBorder());\n\t editbutton.setContentAreaFilled(false);\n\n\t //Add Labels\t \n avatar = new JLabel();\n avatar.setIcon(picavatar);\n playername = new JLabel(\"Player\");\n playername.setForeground(Color.white);\n playername.setFont(model.blackbold);\n playerlastonline = new JLabel(\"Last Login: 8/3/2013\");\n playerlastonline.setFont(model.blacksmall);\n playerlastonline.setForeground(Color.white);\n \n\t\t//Add Elements to Panel\n\t\tplayerinfopanel = new JPanel(new MigLayout());\n\t\tplayerinfopanel.setOpaque(false);\t\t \t\n playerinfopanel.add(playername,\"wrap, align 50% 50%, gap top 30px\"); \n playerinfopanel.add(playerlastonline,\"wrap, align 50% 50%, gap top 5px\"); \n playerinfopanel.add(statusbutton, \"wrap, align 50% 50%, gap top 20px\");\n playerinfopanel.add(editbutton,\"align 50% 50%, gap top 5px\");\n \n\t}", "title": "" }, { "docid": "6239c0fdfd678efce30ee8f59b704f77", "score": "0.6902848", "text": "public AddEditButtonPanel() {\n initComponents();\n initActionState();\n initButtonAction();\n initIcons();\n }", "title": "" }, { "docid": "483b5e68dfa92ac29fabcb363b325406", "score": "0.6883487", "text": "Panel buildMenuPanel()\n\t{\n\t\tminIntensityCB.setValue(true);\n\t\tcontrolIntensityCB.setValue(true);\n\t\ttreatmentIntensityCB.setValue(true);\n\t\tcontrolPmaCB.setValue(true);\n\t\ttreatmentPmaCB.setValue(true);\n\t\tmaxPValueCB.setValue(true);\n\t\tratioCB.setValue(true);\n\t\tlowerRatioCB.setValue(true);\n\t\tupperRatioCB.setValue(true);\n\n\t\tupperRatioCB.setValue(false,true);\n\t\tminIntensityCB.setValue(false,true);\n\t\tcontrolPmaCB.setValue(false,true);\n\t\ttreatmentPmaCB.setValue(false,true);\n\n\t\tVerticalPanel panel = new VerticalPanel();\n\n\t\t//panel.add(buildHorizontalPanel(new Label(\"Compare\"),compareToLabel,new Label(\"to: \")));\n\t\tpanel.add(buildHorizontalPanel(new Label(\"Compare\"),controlsLB,new Label(\"to: \"),treatmentsLB));\n\t\t//panel.add(containerPanel);\n\n\t\tpanel.add(new HTML(\"<hr>\"));\n\t\tpanel.add(buildHorizontalPanel(new Label(\"Intensity type: \"), intensityType));\n\n\t\tpanel.add(new HTML(\"<hr>\"));\n\n\t\tpanel.add(minIntensityCB);\n\t\tpanel.add(buildHorizontalPanel(controlIntensityCB, controlIntensityTB, controlPmaCB,controlPmaLB));\n\t\tpanel.add(buildHorizontalPanel(minIntensityOperationAnd,minIntensityOperationOr));\n\t\tpanel.add(buildHorizontalPanel(treatmentIntensityCB, treatmentIntensityTB, treatmentPmaCB,treatmentPmaLB));\n\n\t\tpanel.add(new HTML(\"<hr>\"));\n\n\t\tpanel.add(buildHorizontalPanel(maxPValueCB,maxPValueTB));\n\n\t\tpanel.add(new HTML(\"<hr>\"));\n\n\t\tpanel.add(ratioCB);\n\t\tpanel.add(buildHorizontalPanel(lowerRatioCB, lowerRatioTB));\n\t\tpanel.add(new Label(\"or\"));\n\t\tpanel.add(buildHorizontalPanel(upperRatioCB, upperRatioTB));\n\n\t\tpanel.add(submitSearchButton);\n\t\tpanel.setStylePrimaryName(\"selectionPanel\");\n\n\t\treturn panel;\n\t}", "title": "" }, { "docid": "cbd3a3a2092a0e79862bc6e8cd28eb97", "score": "0.6866962", "text": "private void addToPanel(){\n\tadd(jpnlDatos);\n\tadd(jpnlClase);\n\tjpnlClase.add(jcboBusquedaSeccion);\n jpnlClase.add(jbtnBuscarSseccion);\n \n jtxtCampoBusqueda = new JTextField();\n jtxtCampoBusqueda.setBounds(210, 35, 120, 20);\n jpnlClase.add(jtxtCampoBusqueda);\n jtxtCampoBusqueda.setColumns(10);\n jpnlDatos.add(scrollPane);\n\t\t\n }", "title": "" }, { "docid": "5657c72d628b4df671e26ff3f7401c78", "score": "0.6858848", "text": "private void createComponents() {\n\n\t\tpnlContent = new JPanel();\n\t\tpnlContent.add(createSearchPanel());\n\t\tlblWarning = new JLabel();\n\t\tlblWarning.setForeground(Color.RED);\n\t\tlblWarning.setFont(new Font(\"Arial\", Font.ITALIC, 12));\n\t\tadd(pnlContent, BorderLayout.CENTER);\n\t\tadd(createButtonPanel(), BorderLayout.NORTH);\n\t\tadd(lblWarning, BorderLayout.SOUTH);\n\t}", "title": "" }, { "docid": "1381c3081a271072ed54de48129d8ecf", "score": "0.6834855", "text": "private void buildFrame()\r\n\t{\r\n\t\tModuleButton curentButton;\r\n\t\tJPanel curentPanel;\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS));\r\n\t\t\r\n\t\t\r\n\t\t/*module buttons*/\r\n\t\tfor(int i = 0 ; i < moduleList.size() ; ++i)\r\n\t\t{\r\n\t\t\tcurentPanel = new JPanel();\r\n\t\t\tcurentPanel.setLayout(new BoxLayout(curentPanel, BoxLayout.LINE_AXIS));\r\n\t\t\tcurentButton = new ModuleButton(moduleList.get(i).getName());\r\n\t\t\taddActionListener(curentButton,moduleList.get(i));\r\n\t\t\tcurentPanel.add(curentButton);\r\n\t\t\tpanel.add(curentPanel);\r\n\r\n\t\t}\r\n\t\t\r\n\t\tgetContentPane().add(panel);\r\n\t\t\r\n\t\trepaint();\r\n\t}", "title": "" }, { "docid": "928029d541240ea0019a909983b5eeab", "score": "0.68301845", "text": "protected void buildInputPanel() {\n // Fill input fields with default values from marker parameters\n txtFlds = new JTextField[markerArrayList.size()];\n int idx = 0;\n try {\n // Create input fields - from marker parameters\n for (idx = 0; idx < markerArrayList.size(); idx++) {\n txtFlds[idx] = new JTextField(markerArrayList.get(idx)[MARKER_VALUE_INDEX]);\n txtFlds[idx].setFont(new Font(\"Monospaced\", Font.PLAIN, 14));\n }\n // Create description labels for input fields - from marker parameters\n fldLbls = new JLabel[markerArrayList.size()];\n for (idx = 0; idx < markerArrayList.size(); idx++) {\n fldLbls[idx] = new JLabel(markerArrayList.get(idx)[MARKER_TEXT_INDEX]);\n fldLbls[idx].setFont(new Font(\"Monospaced\", Font.PLAIN, 14));\n }\n\n inputPanel = new JPanel();\n gridBagLayout = new GridBagLayout();\n inputPanel.setLayout(gridBagLayout);\n\n gbc = new GridBagConstraints();\n // Place labels and input fields to columns in the input data panel\n gbc.insets = new Insets(5, 5, 5, 5);\n gbc.gridy = 0;\n gbc.gridx = 0;\n for (int i = 0; i < markerArrayList.size(); i++) {\n txtFlds[i].setMinimumSize(new Dimension(100, txtFldHeight));\n // txtFlds[i].setMaximumSize(new Dimension(100, txtFldHeigth));\n // txtFlds[i].setPreferredSize(new Dimension(100, txtFldHeigth));\n gbc.gridy++;\n gbc.gridx = 0;\n gbc.anchor = GridBagConstraints.WEST;\n inputPanel.add(fldLbls[i], gbc);\n gbc.gridx = 1;\n gbc.anchor = GridBagConstraints.WEST;\n inputPanel.add(txtFlds[i], gbc);\n gbc.gridx = 2;\n gbc.anchor = GridBagConstraints.EAST;\n // JLabel emptyLabel = new JLabel(\n // \"* *\");\n // inputPanel.add(emptyLabel, gbc);\n // gbc.fill = GridBagConstraints.HORIZONTAL;\n }\n inputPanel.setAlignmentX(LEFT_ALIGNMENT);\n } catch (Exception e) {\n System.out.println(orderErr + idx + \", \" + e.getClass() + \" \" + e.getLocalizedMessage());\n }\n }", "title": "" }, { "docid": "17a2d7431e8b7b1cbb775aa7a9ba8dc6", "score": "0.68178177", "text": "public void addComponentsToPanels() {\n mainPanel.add(Box.createRigidArea(new Dimension(100, 0))); // Empty space between components\n mainPanel.add(titleLabel);\n mainPanel.add(Box.createRigidArea(new Dimension(50, 0))); // Empty space between components\n mainPanel.add(logoutButton);\n mainPanel.add(Box.createRigidArea(new Dimension(10, 0)));\n mainPanel.add(calendarButton);\n mainPanel.add(Box.createRigidArea(new Dimension(10, 0)));\n mainPanel.add(cPatientDoctorButton);\n mainPanel.add(Box.createRigidArea(new Dimension(10, 0)));\n mainPanel.add(bookingButton);\n mainPanel.add(Box.createRigidArea(new Dimension(10, 0)));\n mainPanel.add(patientButton);\n mainPanel.add(scrollPane);\n }", "title": "" }, { "docid": "315782e6a69782f96bcd8d5f14a7ce83", "score": "0.68053377", "text": "public JComponent buildPanel() {\n initComponents();\n Component machineryPane = new JScrollPane(machineryCommentArea);\n Component inspectionPane = new JScrollPane(inspectionCommentArea);\n\n FormLayout layout = new FormLayout(\n \"right:max(40dlu;pref), 3dlu, 70dlu, 7dlu, \"\n + \"right:max(40dlu;pref), 3dlu, 70dlu\",\n \"p, 3dlu, p, 3dlu, p, 3dlu, p, 9dlu, \"\n + \"p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p\");\n layout.setRowGroups(new int[][] { { 3, 13, 15, 17 } });\n \n PanelBuilder builder = new PanelBuilder(layout);\n builder.setDefaultDialogBorder();\n\n CellConstraints cc = new CellConstraints();\n int row = 1;\n\n builder.addSeparator(\"Shaft\", cc.xyw (1, row++, 7));\n row++;\n \n builder.addLabel(\"Identifier\", cc.xy (1, row));\n builder.add(identifierField, cc.xy (3, row++));\n row++;\n\n builder.addLabel(\"Power\", cc.xy (1, row));\n builder.add(powerField, cc.xy (3, row));\n builder.addLabel(\"Speed\", cc.xy (5, row));\n builder.add(speedField, cc.xy (7, row++));\n row++;\n\n builder.addLabel(\"Material\", cc.xy (1, row));\n builder.add(materialComboBox, cc.xy (3, row));\n builder.addLabel(\"Ice Class\", cc.xy (5, row));\n builder.add(iceClassComboBox, cc.xy (7, row++));\n row++;\n\n builder.addSeparator(\"Comments\", cc.xyw (1, row++, 7));\n row++;\n \n builder.addLabel(\"Machinery\", cc.xy (1, row));\n builder.add(machineryPane, cc.xywh(3, row++, 5, 3, \"f, f\"));\n row += 3;\n\n builder.addLabel(\"Inspection\", cc.xy (1, row));\n builder.add(inspectionPane, cc.xywh(3, row++, 5, 3, \"f, f\"));\n \n return builder.getPanel();\n }", "title": "" }, { "docid": "5af34b1839b68992f0eafa1a0e0132bb", "score": "0.6790746", "text": "public void addaboutpanel(){\n\n\t\trealname = new JLabel(\"Name:\");\n\t\trealname.setFont(model.blacknormal);\n\t\trealname.setForeground(Color.white);\n\t\tprogram = new JLabel(\"Program:\");\n\t\tprogram.setFont(model.blacknormal);\n\t\tprogram.setForeground(Color.white);\n\t\tdescription = new JLabel(\"Description:\");\n\t\tdescription.setFont(model.blacknormal);\n\t\tdescription.setForeground(Color.white);\n\t\t\n\t\taboutbar = new JLabel(\"ABOUT ME\");\n\t aboutbar.setFont(model.sidebold);\n\t aboutbar.setForeground(Color.white);\n\t \n\t JPanel aboutlist = new JPanel(new MigLayout());\n\t aboutlist.setOpaque(false);\n\t aboutlist.add(realname,\"wrap\");\n\t aboutlist.add(program,\"wrap\");\n\t aboutlist.add(description);\n\t\t\n\t\t//Add Elements to Panel\n\t aboutpanel = new ImagePanel(new ImageIcon(\"assets/images/Blue_Box.png\").getImage());\n aboutpanel.setLayout(new MigLayout());\n aboutpanel.add(aboutbar,\"gap left 10px, wrap\");\n aboutpanel.add(aboutlist,\"width :10px, height :120px\");\n \n\t}", "title": "" }, { "docid": "0de7898abbb87dd70ef4d8ec56c043f3", "score": "0.67521816", "text": "private void customizePanel()\n {\n //---//Helper panel for locating the button (back to main menu)\n JPanel btn_helper_panel = new JPanel();\n\n btn_helper_panel.setLayout(new BorderLayout());\n btn_helper_panel.add(backToMenu, BorderLayout.WEST);\n\n //---//Helper panel for locating the text are on the help panel.\n JPanel txt_help_panel = new JPanel();\n\n txt_help_panel.setLayout(new GridBagLayout());\n txt_help_panel.setBackground(Color.WHITE);\n txt_help_panel.add(about_txt);\n\n //adding components to the panel\n this.add(txt_help_panel, BorderLayout.CENTER);\n this.add(btn_helper_panel, BorderLayout.SOUTH);\n }", "title": "" }, { "docid": "3bebfd065261b989acd6fc397c69448a", "score": "0.674211", "text": "@Override\n @Nullable\n protected JComponent createCustomPanel() {\n this.projectButtonPanel = new JButton(\"Get Projects\");\n this.projectButtonPanel.addActionListener(e -> {\n final Map<String, String> projectNames = updateProjectNamesInCombo();\n if (!projectNames.isEmpty() && projectAreaTextField.getText().isEmpty()) {\n final Set<Map.Entry<String, String>> entries = projectNames.entrySet();\n final Map.Entry<String, String> next = entries.iterator().next();\n final String projectName = next.getKey();\n myRepository.updateProjectId(projectName);\n }\n });\n\n\n\n this.projectLabel = new JBLabel(\"Project area:\", 4);\n final String projectArea = this.myRepository.getProjectArea();\n this.projectAreaLabel=new JBLabel(\"\");\n\n this.projectAreaTextField = new TextFieldWithAutoCompletion<>(this.myProject, new TextFieldWithAutoCompletionListProvider<>(Collections.emptyList()) {\n @Override\n protected @NotNull\n String getLookupString(@NotNull IProjectArea iProjectArea) {\n return iProjectArea.getName();\n }\n }, true, projectArea);\n this.installListener(projectAreaTextField);\n\n if (myRepository.hasParameters()) {\n ApplicationManager.getApplication().executeOnPooledThread(() -> {\n final Map<String, String> stringStringMap = updateProjectNamesInCombo();\n RTCTasksRepositoryEditor.this.projectNames = stringStringMap;\n final String projectAreaName = myRepository.getProjectArea();\n updateProjectId(projectAreaName);\n final String uuid = RTCTasksRepositoryEditor.this.projectNames.get(projectAreaName);\n this.projectAreaLabel.setText(uuid);\n });\n } else {\n this.projectNames = Collections.emptyMap();\n this.projectAreaLabel.setText(\"\");\n }\n return FormBuilder.createFormBuilder()\n .addComponent(projectButtonPanel)\n .addLabeledComponent(\"Project area:\", this.projectAreaTextField)\n .addLabeledComponent(\"UUID:\",projectAreaLabel)\n .getPanel();\n }", "title": "" }, { "docid": "405f27daa9517063f8061f890d2ba895", "score": "0.67367667", "text": "private void buildButtonPanel()\r\n {\r\n buttonPanel = new JPanel();\r\n buttonPanel.setLayout(new GridLayout(6, 1));\r\n\r\n //create buttons\r\n calcButton = new JButton(\"Calculate Charges\");\r\n exitButton = new JButton(\"Exit\");\r\n\r\n\r\n //blank panel for spacing the top\r\n buttonPanel.add(new JPanel());\r\n //add calculate button\r\n buttonPanel.add(calcButton);\r\n //add exit button\r\n buttonPanel.add(exitButton);\r\n // blank panel for spacing the bottom\r\n buttonPanel.add(new JPanel());\r\n\r\n //add action handlers\r\n JoesAutoHandler handler = new JoesAutoHandler(this);\r\n calcButton.addActionListener(handler);\r\n exitButton.addActionListener(handler);\r\n buttonPanel.add(calcButton);\r\n buttonPanel.add(exitButton);\r\n }", "title": "" }, { "docid": "8ab32769b03a692259003a3cc998fc6b", "score": "0.6708432", "text": "void createUI() {\n\t\tsuper.setTitle(\"Book\");\r\n\t\tp1 = new Panel();\r\n\t\tp1.add(insert = new JButton(\"insert\"));\r\n\t\tp1.add(delete = new JButton(\"delete\"));\r\n\t\tp1.add(print = new JButton(\"print\"));\r\n\t\tp1.add(looking = new JButton(\"looking\"));\r\n\t\tp1.add(quit = new JButton(\"quit\"));\r\n\t\tadd(p1, BorderLayout.SOUTH);\r\n\r\n\t\tp2 = new Panel();\r\n\t\tp2.setLayout(new GridLayout(1, 3));\r\n\t\tp2.add(new JLabel(\"책 제목\"));\r\n\t\tp2.add(msg = new TextField());\r\n\t\tadd(p2, BorderLayout.NORTH);\r\n\t\tadd(output = new TextArea(15, 40));\r\n\t\tSystem.out.println(msg.getText());\r\n\t\toutput.setFont(new Font(\"Serif\", 1, 24));\r\n\r\n\t\tsetSize(500,300);\r\n\t\tsetVisible(true);\r\n\r\n\t\tinsert.addActionListener(this);\r\n\t\tdelete.addActionListener(this);\r\n\t\tprint.addActionListener(this);\r\n\t\tlooking.addActionListener(this);\r\n\t\tquit.addActionListener(this);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tmsg.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\toutput.append(msg.getText() + \"\\n\");\r\n\t\t\t\tmsg.setText(\"\");\r\n\t\t\t\tSystem.out.println(output.getText());\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "6815b9312524503c484b2d4ccd6e57c0", "score": "0.6706381", "text": "protected JPanel createPanel(){\n\t\tint m = state.getMaxSeq();\n\t\tint n = state.getMaxSim();\n\n\t\ttableInfo = new JPanel(new GridBagLayout());\n\t\tc3 = new GridBagConstraints();\n\t\tauctionTable = new JPanel(new GridBagLayout());\n\t\tc = new GridBagConstraints();\n\n\t\tnamingGrid = new JPanel(new GridBagLayout());\n\t\tc2 = new GridBagConstraints();\n\n\t\tinst = new JTextArea(getTextFor(\"auctionInst.txt\"));\n\t\tinst.setEditable(false);\n\t\tinst.setFont(new Font(\"Ariel\", Font.BOLD, 13));\n\n\t\tauctionTable.setName(\"Auctions\");\n\t\tauctionButtons = new JButton[n][m];\n\t\taddButtons = new JButton[4];\n\n\t\t//create a button for each auction slot\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor(int j = 0; j<m; j++){\n\t\t\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\t\t\tc.gridx = j;\n\t\t\t\tc.gridy = i+1;\n\t\t\t\tc.weightx = .5;\n\t\t\t\tauctionButtons[i][j] = new JButton(\"?\");\n\t\t\t\tauctionButtons[i][j].addActionListener(new AuctionButtonListner());\n\t\t\t\tauctionButtons[i][j].setActionCommand(Integer.toString((i*m) +j));\n\t\t\t\t//System.out.println((i*m) +j);\n\t\t\t\tauctionButtons[i][j].setBackground(Color.lightGray);\n\t\t\t\tauctionTable.add(auctionButtons[i][j], c);\n\t\t\t}\n\n\t\t}\n\t\tJLabel seqLabel = new JLabel(\"Sequential Auctions\");\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\t//c.anchor = GridBagConstraints.ABOVE_BASELINE;\n\t\tc.ipady = 20; //make this component tall\n\t\tc.weightx = 0.0;\n\t\tc.gridwidth = m;\n\t\tc.gridx = n/2 -1;\n\t\tc.gridy = n+1;\n\t\tauctionTable.add(seqLabel, c);\n\t\tc.ipady = 60;\n\t\tc.gridy =0;\n\t\tauctionTable.add(new JLabel(\"Auction Schedule\"), c);\n\n\t\t//int numItems = 6;\n\n\t\tc2.gridx=0;\n\t\tc2.gridy = 0;\n\t\tnamingGrid.add(new JLabel(\" Auction Type\"), c2);\n\t\tc2.gridx=1;\n\t\tc2.gridy = 0;\n\t\t//namingGrid.add(new JLabel(\"Item Name\"), c2);\n\t\t//c2.gridx=2;\n\t\t//c2.gridy = 0;\n\t\tnamingGrid.add(new JLabel(\" \"), c2);\n\n\t\tc2.anchor = GridBagConstraints.EAST;\n\t\tJLabel[] labels = new JLabel[4];\n\n\t\t//creates a button for each auction type and adds appropriate action listeners\n\t\tfor(int k=1;k<=4;k++){\n\t\t\tString auctName = \"\";\n\t\t\tswitch(k){\n\t\t\t\tcase 1: auctName = \" 1st Price Sealed Bid \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: auctName = \" 2nd Price Sealed Bid \";\n\t\t\t\tbreak;\n\t\t\t\tcase 3: auctName = \" Ascending \";\n\t\t\t\tbreak;\n\t\t\t\tcase 4: auctName = \" Descending \";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\taddButtons[k-1]=new JButton(\"add\");\n\t\t\taddButtons[k-1].setActionCommand(Integer.toString(k));\n\t\t\taddButtons[k-1].addActionListener(new AddButtonListener());\n\t\t\tColor col = Color.gray;\n\t\t\tswitch(k){\n\n\t\t\tcase 1: col = new Color(34, 139, 34);\n\n\t\t\t\tbreak;\n\t\t\tcase 2: col = new Color(255, 140, 0);\n\n\t\t\t\tbreak;\n\t\t\tcase 3: col = new Color(30, 144, 255);\n\n\t\t\t\tbreak;\n\t\t\tcase 4: col = new Color(138, 43, 226);\n\n\t\t\t\tbreak;\n\n\t\t}\n\t\t\taddButtons[k-1].setBackground(col);\n\t\t\tlabels[k-1] = new JLabel(auctName);\n\t\t\tlabels[k-1].setLabelFor(addButtons[k-1]);\n\n\t\t\t//c2.gridwidth = 1000; //next-to-last\n\t\t\tc2.fill = GridBagConstraints.HORIZONTAL; //reset to default\n\t\t\tc2.weightx = 0.0; //reset to default\n\t\t\tc2.gridx = 0;\n\t\t\tc2.gridy = k;\n\t\t\tnamingGrid.add(labels[k-1], c2);\n\n\t\t\t//c2.gridwidth = GridBagConstraints.RELATIVE; //end row\n\t\t\tc2.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tc2.weightx = 1.0;\n\t\t\tc2.gridx = 1;\n\t\t\tc2.gridy = k;\n\t\t\t//namingGrid.add(textfields[k-1], c2);\n\n\t\t\t//c2.gridwidth = GridBagConstraints.REMAINDER; //end row\n\t\t\t//c2.fill = GridBagConstraints.HORIZONTAL;\n\t \t//c2.weightx = 1.0;\n\t \t//c2.gridx = 2;\n\t \t//c2.gridy = k;\n\t \tnamingGrid.add(addButtons[k-1], c2);\n\n\t\t}\n\n\t\tString labelSA = \"<html>\" + \"Simultaneous\" + \"<br>\" + \"Auctions\" + \"</html>\";\n\t\tJLabel labelSim = new JLabel(labelSA);\n\t\tc3.gridwidth = 3;\n\t\tc3.gridx = 0;\n\t\tc3.gridy = 0;\n\t\ttableInfo.add(inst, c3);\n\t\tc3.gridwidth = 1;\n\t\tc3.gridy = 1;\n\t\ttableInfo.add(labelSim, c3);\n\t\tc3.gridx = 1;\n\t\ttableInfo.add(auctionTable, c3);\n\t\tc3.gridx = 2;\n\t\t//tableInfo.add(itemNums);\n\t\ttableInfo.add(namingGrid, c3);\n\n\t\treturn tableInfo;\n\t}", "title": "" }, { "docid": "134582f344a6951360eba628c140263b", "score": "0.6704717", "text": "private void setupControlPanel ()\r\n\t{\r\n\t\tm_controlPanel = new JPanel (new MigLayout (\"wrap 2, fillx\", \"[align center]\", \"\"));\r\n\t\tm_controlPanel.setBackground (UIConstants.GEOPOD_GREEN);\r\n\r\n\t\taddLimitRollControls ();\r\n\t\taddChartDomainControls ();\r\n\t\taddDebugControls ();\r\n\t\taddUserNameControls ();\r\n\t\taddFlightLogControls ();\r\n\t\taddClearFlightLogButton ();\r\n\t}", "title": "" }, { "docid": "190e720b6958f58501bd0b1e4a2d1498", "score": "0.6701589", "text": "private void setupControlPanel()\r\n {\r\n controlPanel.setLayout(new BoxLayout(controlPanel, WIDTH));\r\n controlPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\r\n controlPanel.add(titlePanel);\r\n controlPanel.add(checkboxPanelContainer);\r\n controlPanel.add(buttonPanel);\r\n }", "title": "" }, { "docid": "b71fcfb3f181790cb0e441da620e8c57", "score": "0.6676941", "text": "@Override\n\tpublic void addComponent() {\n\t\ttop.add(titleLabel);\n\t\tmain.add(top,BorderLayout.NORTH);\n\t\t\n\t\t//Center\n\t\tcenter.add(sp);\n\t\tmain.add(center,BorderLayout.CENTER);\n\t\t\n\t\t//Bottom\n\t\t//Bottom1\n\t\tchoosePanel.add(chooseLabel);\n\t\tchoosePanel.add(chooseTxt);\n\t\tbottom1.add(choosePanel);\n\t\t\n\t\t//Bottom2\n\t\tbottom2.add(btnTake);\n\t\tbottom.add(bottom1);\n\t\tbottom.add(bottom2);\n\t\t\n\t\t\n\t\tmain.add(bottom,BorderLayout.SOUTH);\n\t\tadd(main);\n\t}", "title": "" }, { "docid": "f02aa82fe8c07cb009c38d48893be900", "score": "0.66663563", "text": "public PatientPanel()\n\t{\t\n\t\tthis.setLayout(new BorderLayout());\n\t\t\n\t\t// Construct Form Panel of Spring layout\n\t\tJPanel formPanel = new JPanel();\n\t\tSpringLayout layout = new SpringLayout();\n\t\tformPanel.setLayout(layout);\n\t\t\n\t\t// Construct all label and text fields for the form panel\n\t\tpatientData = new HashMap<>();\n\t\tfor (int i = 0; i < LABEL_LIST.length; i++)\n\t\t{\n\t\t\tJLabel label = new JLabel(LABEL_LIST[i], JLabel.TRAILING);\n\t\t\tformPanel.add(label);\n\t\t\tJTextField textField = new JTextField(20);\n\t\t\tlabel.setLabelFor(textField);\n\t\t\tformPanel.add(textField);\n\t\t\t\n\t\t\tpatientData.put(LABEL_LIST[i], textField);\n\t\t}\n\t\t\n\t\tSpringUtilities.makeCompactGrid(formPanel, \n\t\t\t\t\t\t\t\t\t\tLABEL_LIST.length, 2, \t// # of rows, # of columns\n\t\t\t\t\t\t\t\t\t\t5, 5,\t\t\t\t\t// Initial x and y coordinates\n\t\t\t\t\t\t\t\t\t\t5, 5);\t\t\t\t\t// Padding between labels and textfield\n\t\n\t\tthis.add(formPanel, BorderLayout.WEST);\n\t\t\n\t\t// Create button panel\n\t\tJPanel buttonPanel \t= new JPanel();\n\t\tbuttonPanel.setLayout(new FlowLayout());\n\t\tedit \t \t= new JButton(\"Edit\");\t\n\t\tdelete\t\t= new JButton(\"Delete\");\n\t\tvisits \t\t= new JButton(\"Visits\");\n\t\texit\t \t= new JButton(\"Exit\");\n\t\t\n\t\tbuttonPanel.add(edit);\n\t\tbuttonPanel.add(delete);\n\t\tbuttonPanel.add(visits);\n\t\tbuttonPanel.add(exit);\n\t\t\n\t\tthis.add(buttonPanel, BorderLayout.SOUTH);\n\t\t\n\t\tJTextArea textarea = new JTextArea(20, 20);\n\t\ttextarea.setLineWrap(true);\n\t\tJLabel label = new JLabel(\"Notes\");\n\t\tlabel.setLabelFor(textarea);\n\t\tJPanel panel1 = new JPanel();\n\t\tpanel1.setLayout(new BorderLayout());\n\t\tpanel1.setSize(textarea.getWidth() ,this.getHeight() / 2);\n\t\tpanel1.add(label, BorderLayout.NORTH);\n\t\tpanel1.add(textarea, BorderLayout.CENTER);\n\t\tpatientData.put(\"Notes\" , textarea);\n\t\t\n\t\tthis.setEditable(false);\n\t\tthis.add(panel1, BorderLayout.EAST);\n\t}", "title": "" }, { "docid": "6a5994dda81a3c61c0a0cf2d62a1ab77", "score": "0.6665884", "text": "protected JPanel createControlPanel() {\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\n\t\tGridBagLayout gridbag = new GridBagLayout();\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.gridwidth = GridBagConstraints.REMAINDER; // end row\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\n\t\tJPanel panel = new JPanel(gridbag);\n\t\tpanel.setBorder(new TitledBorder(\"Control\"));\n\n\t\tmAddAndOperBtn = makeButton(panel, \"Add AND\", gridbag, c);\n\t\tmAddOROperBtn = makeButton(panel, \"Add OR\", gridbag, c);\n\t\tmAddCondBtn = makeButton(panel, \"Add Condition\", gridbag, c);\n\t\tmRemoveBtn = makeButton(panel, \"Remove\", gridbag, c);\n\t\tmainPanel.add(panel, BorderLayout.NORTH);\n\n\t\tmAddCondBtn.setEnabled(true);\n\t\tmAddAndOperBtn.setEnabled(true);\n\t\tmAddOROperBtn.setEnabled(true);\n\t\tmRemoveBtn.setEnabled(false);\n\n\t\tmAddCondBtn.addActionListener(new AbstractAction() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tDBWhereOperator parent = getParentForInsert();\n\t\t\t\t// if (parent != null || mModel.getSize() == 0) {\n\t\t\t\tif (mModel.getSize() == 0) {\n\t\t\t\t\tString tableName = (String) mTablesCombobox.getItemAt(0);\n\t\t\t\t\tString fieldName = (String) mFieldsCombobox.getItemAt(0);\n\t\t\t\t\tDBWhereCondition cond = new DBWhereCondition(parent,\n\t\t\t\t\t\t\ttableName, fieldName, DataType.STR);\n\t\t\t\t\tDSTableFieldIFace fieldIFace = DBUIUtils.getFieldByName(\n\t\t\t\t\t\t\tmSchema, tableName, fieldName);\n\t\t\t\t\tif (fieldIFace != null) {\n\t\t\t\t\t\tcond.setDataType(fieldIFace.getDataType());\n\t\t\t\t\t}\n\t\t\t\t\taddNewItem(parent, cond);\n\t\t\t\t\tgenerateAndSetWhereText();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tmAddAndOperBtn.addActionListener(new AbstractAction() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddOperator(DBWhereOperator.AND_OPER);\n\t\t\t}\n\t\t});\n\n\t\tmAddOROperBtn.addActionListener(new AbstractAction() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddOperator(DBWhereOperator.OR_OPER);\n\t\t\t}\n\t\t});\n\n\t\tmRemoveBtn.addActionListener(new AbstractAction() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint inx = mList.getSelectedIndex();\n\t\t\t\tif (inx != -1) {\n\t\t\t\t\tDBWhereIFace item = (DBWhereIFace) mModel.getElementAt(inx);\n\n\t\t\t\t\t// First remove the item from its parent\n\t\t\t\t\tDBWhereIFace parent = item.getParent();\n\t\t\t\t\tif (parent != null) {\n\t\t\t\t\t\tif (parent.isOperator()\n\t\t\t\t\t\t\t\t&& parent instanceof DBWhereOperator) // safety\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checks\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// (should\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// NEVER\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// fail)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t((DBWhereOperator) parent).remove(item);\n\t\t\t\t\t\t\tif (item.isOperator()\n\t\t\t\t\t\t\t\t\t&& item instanceof DBWhereOperator) {\n\t\t\t\t\t\t\t\t((DBWhereOperator) parent)\n\t\t\t\t\t\t\t\t\t\t.remove(((DBWhereOperator) item)\n\t\t\t\t\t\t\t\t\t\t\t\t.getClosure());\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// Now remove it from the List Model\n\t\t\t\t\tmModel.remove(item);\n\t\t\t\t\tmList.clearSelection();\n\t\t\t\t\tgenerateAndSetWhereText();\n\n\t\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t// valueChanged(null);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\treturn mainPanel;\n\t}", "title": "" }, { "docid": "664ee2a96f61f12e437397dabb10df7a", "score": "0.66379184", "text": "public JPanel createTextField()\r\n\t{\r\n\t\tfield=new JTextField();\r\n\t\tfield.addActionListener(listener);\r\n\t\t\r\n\t\tJPanel panel=new JPanel();\r\n\t\tfield.setPreferredSize(new Dimension(100,20));\r\n\t\tpanel.add(field);\r\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(),\"Full Name\"));\r\n\t\t\r\n\t\treturn panel;\r\n\t}", "title": "" }, { "docid": "fc3b955a5b80196317c81a8f465c4ba2", "score": "0.6637811", "text": "private void createPnl(){\n setPnl(clipPnl);\n setImage();\n addClippyTxt();\n setSpeechImg();\n addBtn();\n addField();\n clipPnl.setBackground(getBgColor());\n }", "title": "" }, { "docid": "e657217e198c94f21a5d389d009dbf79", "score": "0.6634048", "text": "public CheckerboardPanel() {\n this.add(this.label);\n }", "title": "" }, { "docid": "316d610157320a262b7595eeecddd59b", "score": "0.66288185", "text": "private void createPanel()\n\t{\n\t\treportPanel = new JPanel();\n\t\treportPanel.setLayout(new GridLayout(reportNameLabels.length, 2, 10, 10));\n\t}", "title": "" }, { "docid": "804147dd36864405f47cea02ffdc0fcf", "score": "0.6626321", "text": "protected void buildPanel() {\r\n\r\n\t\t// creating the animations chooser\r\n\t\tanimationsChooserPanel = new AnimationsChooser(this,\r\n\t\t\t\tobjectType == ItemObject.ANIMATION ? true : false,\r\n\t\t\t\tjwidgetManager);\r\n\r\n\t\t// getting the labels\r\n\t\tString noAnimationMessage = \"\";\r\n\r\n\t\ttry {\r\n\r\n\t\t\tif (objectType == ItemObject.ANIMATION) {\r\n\r\n\t\t\t\tnoAnimationMessage = ResourcesManager.bundle\r\n\t\t\t\t\t\t.getString(\"label_nortdaanimations\");\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tnoAnimationMessage = ResourcesManager.bundle\r\n\t\t\t\t\t\t.getString(\"label_nortdaactions\");\r\n\t\t\t}\r\n\r\n\t\t\tpropertiesLabel = ResourcesManager.bundle\r\n\t\t\t\t\t.getString(\"rtdaanim_propertyLabel\");\r\n\t\t\tenumChildrenLabel = ResourcesManager.bundle\r\n\t\t\t\t\t.getString(\"rtdaanim_enumChildrenLabel\");\r\n\t\t\tanalogicChildrenLabel = ResourcesManager.bundle\r\n\t\t\t\t\t.getString(\"rtdaanim_analogicChildrenLabel\");\r\n\t\t\tviewChildrenLabel = ResourcesManager.bundle\r\n\t\t\t\t\t.getString(\"rtdaanim_viewChildrenLabel\");\r\n\t\t} catch (Exception ex) {\r\n\t\t}\r\n\r\n\t\tnoAnimationMessageJLabel = new JLabel(noAnimationMessage);\r\n\t\tnoAnimationMessageJLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\r\n\t\t// handling the panel containing all the other widgets\r\n\t\tallPanel.setDividerLocation(130);\r\n\t\tallPanel.setDividerSize(3);\r\n\t\tallPanel.setOneTouchExpandable(false);\r\n\t\tallPanel.setBorder(new EmptyBorder(0, 0, 0, 0));\r\n\r\n\t\t// handling the right panel\r\n\t\trightPanel.setLayout(new BoxLayout(rightPanel, BoxLayout.X_AXIS));\r\n\r\n\t\t// adding the animations chooser panel\r\n\t\tallPanel.setLeftComponent(animationsChooserPanel);\r\n\r\n\t\t// the children panel\r\n\t\tchildrenPanel.setLayout(new BorderLayout(0, 0));\r\n\t\tJScrollPane scrollpane = new JScrollPane(childrenTable);\r\n\t\tscrollpane.getViewport().setBackground(childrenTable.getBackground());\r\n\t\tscrollpane.setBorder(new EmptyBorder(0, 0, 0, 0));\r\n\t\tscrollpane\r\n\t\t\t\t.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\tscrollpane\r\n\t\t\t\t.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\tchildrenPanel.add(scrollpane, BorderLayout.CENTER);\r\n\r\n\t\t// creating the buttons panel for the children table\r\n\t\tcreateChildrenButtonsPanel();\r\n\t\tchildrenPanel.add(childrenButtonsPanel, BorderLayout.SOUTH);\r\n\r\n\t\t// creating the properties panel\r\n\t\tpropertiesPanel.setLayout(new BoxLayout(propertiesPanel,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpropertiesPanel.setBorder(new TitledBorder(propertiesLabel));\r\n\r\n\t\tscrollpane = new JScrollPane(propertiesTable);\r\n\t\tscrollpane.getViewport().setBackground(propertiesTable.getBackground());\r\n\t\tscrollpane.setBorder(new EmptyBorder(0, 0, 0, 0));\r\n\t\tscrollpane\r\n\t\t\t\t.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\tscrollpane\r\n\t\t\t\t.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\tpropertiesPanel.add(scrollpane, BorderLayout.CENTER);\r\n\r\n\t\tallPanel.setRightComponent(rightPanel);\r\n\t\tallPanel.setPreferredSize(new Dimension(640, 340));\r\n\t}", "title": "" }, { "docid": "d48e020f28dc9a7759ec59ef906de258", "score": "0.6622114", "text": "private void createInput(String panelName, JTextField tempField, JPanel mainPanel) {\n JPanel tempPanel = new JPanel(new GridLayout(1,2));\n JLabel tempLabel = new JLabel(panelName + \": \", SwingConstants.CENTER);\n tempPanel.add(tempLabel);\n tempPanel.add(tempField);\n mainPanel.add(tempPanel);\n }", "title": "" }, { "docid": "ec56883dea40b39ce1bbd39871751a22", "score": "0.662111", "text": "public void buildGUI() {\n\t\tContainer container = getContentPane();\n\t\tcontainer.setLayout(new FlowLayout());\n\t\t\n\t\t/*\n\t\t * 3. ADD COMPONENTS TO THE CONTAINER\n\t\t */\n\t\tcreateLabel(container);\n\t\tcreateText(container);\n\t\tcreateButton(container);\n\t}", "title": "" }, { "docid": "1ddf824d1bfc2cc148303d27a3eb9961", "score": "0.66181356", "text": "private void buildImagePanel() {\r\n\t// Create a panel.\r\n\tJPanel panel1 = new JPanel();\r\n\t\r\n// Create a label. \r\n\tJLabel label1 = new JLabel(\"PEACE\");\r\n\t\r\n// Add the label to the panel. \r\n\tpanel1.add(label1);\r\n}", "title": "" }, { "docid": "06577bffbaca45ea8417fdfc4c48dcd3", "score": "0.66172814", "text": "private void buildButtonPanel() { \r\n// Create a panel.\r\n\tJPanel panel2 = new JPanel();\r\n\t\r\n// Create a button.\r\n\tJButton button1 = new JButton(\"Click me!\");\r\n\t\r\n// Register an action listener with the button.\r\n\tbutton1.addMouseListener(null);\r\n// Add the button to the panel. \r\n\tpanel2.add(button1);\r\n}", "title": "" }, { "docid": "5723bded019c163052b24f9b1036e646", "score": "0.65960383", "text": "private void createFieldPanel()\r\n \t{\n field = new JPanel();\r\n field.setBounds(50,50,250,200);\r\n \r\n //Create the card and add them.\r\n card1 = new GamePanel();\r\n field.add(card1);\r\n }", "title": "" }, { "docid": "a5d980aee132c97b734d09af3d4758e5", "score": "0.65920824", "text": "public JPanel createPanel() throws SyntaxErrorException{\n \n //declares a reference to JPanel\n JPanel panel = null;\n \n //creates a reference to LayoutMananger\n LayoutManager layout = null;\n \n //declares a reference to TokenAndLexeme \n TokenAndLexeme tokenAndLexeme;\n \n //Check if the user has specified the Layout syntax \n if(lexer.peek().getToken().equals(Token.LAYOUT)){\n \n //move to into the Layout tokenAndLexemeAndLexeme\n //to see layout type\n lexer.nextTokenAndLexeme();\n \n //checkc the layout type and create a new layout (Flow or Grid)\n //by the calling the createGridLayout() or createFlowLayout()\n if(lexer.peek().getToken().equals(Token.GRID)){\n \n layout = (createGridLayout());\n \n \n }else if (lexer.peek().getToken().equals(Token.FLOW)){\n \n layout = (createFlowLayout());\n \n } \n \n //create a new panel and pass the specified layout type\n //into the constructor\n panel = new JPanel(layout);\n \n \n //check if the user has specified any widgets to be add in the panel\n //add all the specified widgets and add it to the panel.\n while(!lexer.peek().getToken().equals(Token.END)){\n tokenAndLexeme = lexer.nextTokenAndLexeme();\n\n //check the widget type, calls the widget's method and add it\n //to the panel\n if(tokenAndLexeme.getToken().equals(Token.BUTTON)||\n tokenAndLexeme.getToken().equals(Token.TEXTFIELD)||\n tokenAndLexeme.getToken().equals(Token.LABEL)||\n tokenAndLexeme.getToken().equals(Token.GROUP) ||\n tokenAndLexeme.getToken().equals(Token.PANEL)){\n \n\n \n switch (tokenAndLexeme.getToken()){\n case BUTTON:\n panel.add(createButton());\n break;\n case TEXTFIELD :\n panel.add(createTextField());\n break;\n case LABEL :\n panel.add(createLabel());\n break;\n case GROUP :\n ButtonGroup group = new ButtonGroup();\n createRadioGroup(panel, group);\n break;\n case PANEL :\n //recursively calls the createPanel method\n panel.add(createPanel());\n break;\n }//switch ends\n\n }//if ends\n \n }//while ends\n \n //make sure that the panel's components terminates with the END token\n //else exception is thrown\n if(lexer.peek().getToken().equals(Token.END)){\n\n lexer.nextTokenAndLexeme();\n \n //check to make sure the END token is followed by a SEMI_COLON\n if(!lexer.peek().getToken().equals(Token.SEMI_COLON))\n throw new SyntaxErrorException(\"The keyword \\\"END\\\" followed by a SEMI_COLON (;) is needed to terminate Panel \");\n }else\n throw new SyntaxErrorException(\"SyntaxErrorException :The JPanel must be Termited with \\\" END \\\" followed by a SEMI-COLON\\\";\\\" \");\n \n\n }// if ends\n \n //return the panel object\n return panel;\n \n }", "title": "" }, { "docid": "cf809a4c01bb4609dd72b22dd725f06e", "score": "0.65772086", "text": "public void CreateFormPanel() {\n\t\tDimension dim = getPreferredSize();\n\t\tdim.width = 250;\n\t\tsetPreferredSize(dim);\n\n\t\t// Setting the labels\n\t\tnameLabel = new JLabel(\"Name: \");\n\t\tnumberLabel = new JLabel(\"Number: \");\n\t\tidLabel = new JLabel(\"ID: \");\n\t\taddressLabel = new JLabel(\"Address: \");\n\t\t// Creating Text Fields to enter the data about the customer\n\t\t// Set the length also\n\t\tnameField = new JTextField(10);\n\t\tnumberField = new JTextField(10);\n\t\taddressField = new JTextField(10);\n\t\t// Submit button\n\t\tsubmitBtn = new JButton(\"Submit\");\n\t\t// Adding an listener for when the button is clicked\n\t\tsubmitBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// Taking in the text within the information fields\n\t\t\t\t// This data is then stored within local variables\n\t\t\t\tString name = nameField.getText();\n\t\t\t\tString number = numberField.getText();\n\t\t\t\tString address = addressField.getText();\n\n\t\t\t\t// Sending the data to the createCustomer method in shop\n\t\t\t\t// Where the new customer will be added to the customer array\n\t\t\t\t// list\n\t\t\t\tCustomerFormEvent ev = new CustomerFormEvent(this, name,\n\t\t\t\t\t\tnumber, address);\n\n\t\t\t\tif (customerFormListener != null) {\n\t\t\t\t\tcustomerFormListener.formEventOccurred(ev);\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\n\t\t// Creating a border around the Create Customer form panel to make it\n\t\t// stand out\n\t\tBorder innerBorder = BorderFactory.createTitledBorder(\"Add Customer\");\n\t\tBorder outerBorder = BorderFactory.createEmptyBorder(5, 5, 5, 5);\n\t\tsetBorder(BorderFactory.createCompoundBorder(outerBorder, innerBorder));\n\n\t\t// Using GridBagLayout for the panel\n\t\tsetLayout(new GridBagLayout());\n\n\t\tGridBagConstraints gc = new GridBagConstraints();\n\n\t\t// /////// First row ////////\n\n\t\t// Setting the positions for the labels and text fields\n\t\tgc.gridy = 0;\n\n\t\tgc.weightx = 1;\n\t\tgc.weighty = .1;\n\n\t\tgc.gridx = 0;\n\t\t// Setting the size of the labels and text fields to there initial size\n\t\tgc.fill = GridBagConstraints.NONE;\n\t\t// Setting the label\n\t\tgc.anchor = GridBagConstraints.LINE_END;\n\t\tgc.insets = new Insets(0, 0, 0, 5);\n\t\tadd(nameLabel, gc);\n\n\t\t// Setting the text field\n\t\tgc.gridx = 1;\n\t\tgc.gridy = 0;\n\t\tgc.anchor = GridBagConstraints.LINE_START;\n\t\tgc.insets = new Insets(0, 0, 0, 0);\n\t\tadd(nameField, gc);\n\n\t\t// /////// Second row ////////\n\n\t\t// Increasing gridy by one each row will allow the Labels and text\n\t\t// fields to line up perfectly\n\t\t// underneath each other\n\t\tgc.gridy++;\n\n\t\tgc.weightx = 1;\n\t\tgc.weighty = .1;\n\n\t\tgc.gridx = 0;\n\t\tgc.anchor = GridBagConstraints.LINE_END;\n\t\tgc.insets = new Insets(0, 0, 0, 5);\n\t\tadd(numberLabel, gc);\n\n\t\tgc.gridx = 1;\n\t\tgc.anchor = GridBagConstraints.LINE_START;\n\t\tgc.insets = new Insets(0, 0, 0, 0);\n\t\tadd(numberField, gc);\n\n\t\t// /////// Third row /////////\n\n\t\tgc.gridy++;\n\n\t\tgc.weightx = 1;\n\t\tgc.weighty = .1;\n\n\t\tgc.gridx = 0;\n\t\tgc.anchor = GridBagConstraints.LINE_END;\n\t\tgc.insets = new Insets(0, 0, 0, 5);\n\t\tadd(addressLabel, gc);\n\n\t\tgc.gridx = 1;\n\t\tgc.anchor = GridBagConstraints.LINE_START;\n\t\tgc.insets = new Insets(0, 0, 0, 0);\n\t\tadd(addressField, gc);\n\n\t\t// /////// Fifth row ////////\n\n\t\t// Adding the button at the end underneath everything else\n\t\tgc.gridy++;\n\n\t\tgc.weightx = 1;\n\t\tgc.weighty = 2;\n\n\t\tgc.gridx = 1;\n\t\tgc.anchor = GridBagConstraints.FIRST_LINE_START;\n\t\tadd(submitBtn, gc);\n\t}", "title": "" }, { "docid": "40f02f5130a3e53202ac9a4bd9a52f4e", "score": "0.6571734", "text": "private void createUI(){\n createLabels();\n createTextFields();\n createButtons();\n setErrorFieldPosition();\n }", "title": "" }, { "docid": "b887ffee620a416aa39b5e5f86fae085", "score": "0.65707403", "text": "private void initComponents() {\n\t\tjava.awt.GridBagConstraints gridBagConstraints;\n\n\t\tmainPanel = new javax.swing.JPanel();\n\t\ttitle = new javax.swing.JLabel();\n\t\ttitleLabel = new javax.swing.JLabel();\n\t\ttitleField = new javax.swing.JTextField();\n\t\tminSumLabel = new javax.swing.JLabel();\n\t\tminSumField = new javax.swing.JTextField();\n\t\tmaxSumLabel = new javax.swing.JLabel();\n\t\tmaxSumField = new javax.swing.JTextField();\n\t\tperiodLabel = new javax.swing.JLabel();\n\t\tperiodField = new javax.swing.JTextField();\n\t\tpercentLabel = new javax.swing.JLabel();\n\t\tpercentField = new javax.swing.JTextField();\n\t\tdescrLabel = new javax.swing.JLabel();\n\t\taddButton = new javax.swing.JButton();\n\t\tdescrScrollPane = new javax.swing.JScrollPane();\n\t\tdescrText = new javax.swing.JTextArea();\n\t\tstatusPanel = new javax.swing.JPanel();\n\t\tstatusLabel = new javax.swing.JLabel();\n\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\t\tsetTitle(\"Регистрация в системе Кредитный Менеджер\");\n\t\tsetBounds(new java.awt.Rectangle(0, 0, 0, 0));\n\t\tsetPreferredSize(new java.awt.Dimension(600, 600));\n\t\tsetLocation(360, 100);\n\t\tgetContentPane().setLayout(new java.awt.GridBagLayout());\n\n\t\tmainPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\t\tmainPanel.setToolTipText(\"\");\n\t\tmainPanel.setMaximumSize(new java.awt.Dimension(450, 300));\n\t\tmainPanel.setMinimumSize(new java.awt.Dimension(450, 300));\n\t\tmainPanel.setPreferredSize(new java.awt.Dimension(580, 300));\n\t\tmainPanel.setRequestFocusEnabled(false);\n\t\tmainPanel.setLayout(new java.awt.GridBagLayout());\n\n\t\ttitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n\t\ttitle.setText(\"<html><h3>Добавление кредитной программы</h3></html>\");\n\t\ttitle.setToolTipText(\"\");\n\t\ttitle.setPreferredSize(new java.awt.Dimension(460, 25));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 1;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(title, gridBagConstraints);\n\n\t\ttitleLabel.setLabelFor(titleField);\n\t\ttitleLabel.setText(\"Название\");\n\t\ttitleLabel.setToolTipText(\"Введите название кредитной программы\");\n\t\ttitleLabel.setMaximumSize(new java.awt.Dimension(90, 25));\n\t\ttitleLabel.setMinimumSize(new java.awt.Dimension(90, 25));\n\t\ttitleLabel.setName(\"\"); // NOI18N\n\t\ttitleLabel.setPreferredSize(new java.awt.Dimension(150, 25));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 2;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(titleLabel, gridBagConstraints);\n\n\t\ttitleField.setToolTipText(\"Введите название кредитной программы\");\n\t\ttitleField.setMaximumSize(new java.awt.Dimension(120, 25));\n\t\ttitleField.setMinimumSize(new java.awt.Dimension(120, 25));\n\t\ttitleField.setName(\"\"); // NOI18N\n\t\ttitleField.setPreferredSize(new java.awt.Dimension(130, 25));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 2;\n\t\tgridBagConstraints.gridy = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.weightx = 1.0;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(titleField, gridBagConstraints);\n\n\t\tminSumLabel.setLabelFor(minSumField);\n\t\tminSumLabel.setText(\"Мин. сумма\");\n\t\tminSumLabel.setToolTipText(\"Минимальная сумма кредита\");\n\t\tminSumLabel.setMaximumSize(new java.awt.Dimension(90, 25));\n\t\tminSumLabel.setMinimumSize(new java.awt.Dimension(90, 25));\n\t\tminSumLabel.setPreferredSize(new java.awt.Dimension(150, 25));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 3;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(minSumLabel, gridBagConstraints);\n\n\t\tminSumField.setToolTipText(\"Минимальная сумма кредита\");\n\t\tminSumField.setMaximumSize(new java.awt.Dimension(120, 25));\n\t\tminSumField.setMinimumSize(new java.awt.Dimension(120, 25));\n\t\tminSumField.setPreferredSize(new java.awt.Dimension(130, 25));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 2;\n\t\tgridBagConstraints.gridy = 3;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.weightx = 1.0;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(minSumField, gridBagConstraints);\n\n\t\tmaxSumLabel.setLabelFor(maxSumField);\n\t\tmaxSumLabel.setText(\"Макс. сумма\");\n\t\tmaxSumLabel.setToolTipText(\"Максимальная сумма кредита\");\n\t\tmaxSumLabel.setMaximumSize(new java.awt.Dimension(90, 25));\n\t\tmaxSumLabel.setMinimumSize(new java.awt.Dimension(90, 25));\n\t\tmaxSumLabel.setPreferredSize(new java.awt.Dimension(150, 25));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 4;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(maxSumLabel, gridBagConstraints);\n\n\t\tmaxSumField.setToolTipText(\"Максимальная сумма кредита\");\n\t\tmaxSumField.setPreferredSize(new java.awt.Dimension(130, 25));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 2;\n\t\tgridBagConstraints.gridy = 4;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.weightx = 1.0;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(maxSumField, gridBagConstraints);\n\n\t\tperiodLabel.setLabelFor(periodField);\n\t\tperiodLabel.setText(\"Период, мес\");\n\t\tperiodLabel.setToolTipText(\"На сколько месяцев дается кредит\");\n\t\tperiodLabel.setMaximumSize(new java.awt.Dimension(90, 25));\n\t\tperiodLabel.setMinimumSize(new java.awt.Dimension(90, 25));\n\t\tperiodLabel.setPreferredSize(new java.awt.Dimension(150, 25));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 5;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(periodLabel, gridBagConstraints);\n\n\t\tperiodField.setToolTipText(\"На сколько месяцев дается кредит\");\n\t\tperiodField.setPreferredSize(new java.awt.Dimension(130, 25));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 2;\n\t\tgridBagConstraints.gridy = 5;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.weightx = 1.0;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(periodField, gridBagConstraints);\n\n\t\tpercentLabel.setLabelFor(percentField);\n\t\tpercentLabel.setText(\"Процентная ставка\");\n\t\tpercentLabel.setToolTipText(\"Процентная ставка по кредиту\");\n\t\tpercentLabel.setMaximumSize(new java.awt.Dimension(90, 25));\n\t\tpercentLabel.setMinimumSize(new java.awt.Dimension(90, 25));\n\t\tpercentLabel.setPreferredSize(new java.awt.Dimension(150, 25));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 6;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(percentLabel, gridBagConstraints);\n\n\t\tpercentField.setToolTipText(\"Процентная ставка по кредиту\");\n\t\tpercentField.setMaximumSize(new java.awt.Dimension(120, 25));\n\t\tpercentField.setMinimumSize(new java.awt.Dimension(120, 25));\n\t\tpercentField.setPreferredSize(new java.awt.Dimension(130, 25));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 2;\n\t\tgridBagConstraints.gridy = 6;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.weightx = 1.0;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(percentField, gridBagConstraints);\n\n\t\tdescrLabel.setText(\"Описание\");\n\t\tdescrLabel.setToolTipText(\"Описание кредитной программы\");\n\t\tdescrLabel.setMaximumSize(new java.awt.Dimension(90, 25));\n\t\tdescrLabel.setMinimumSize(new java.awt.Dimension(90, 25));\n\t\tdescrLabel.setPreferredSize(new java.awt.Dimension(150, 25));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 7;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(descrLabel, gridBagConstraints);\n\n\t\taddButton.setText(\"Добавить\");\n\t\taddButton.setMargin(new java.awt.Insets(10, 10, 10, 10));\n\t\taddButton.setPreferredSize(new java.awt.Dimension(137, 25));\n\t\taddButton.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\taddButtonActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 2;\n\t\tgridBagConstraints.gridy = 8;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);\n\t\tmainPanel.add(addButton, gridBagConstraints);\n\n\t\tdescrScrollPane.setBorder(javax.swing.BorderFactory.createEmptyBorder(\n\t\t\t\t2, 2, 2, 2));\n\n\t\tdescrText.setColumns(20);\n\t\tdescrText.setRows(5);\n\t\tdescrText.setToolTipText(\"Описание кредитной программы\");\n\t\tdescrText.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\t\tdescrText.setMargin(new java.awt.Insets(0, 0, 0, 0));\n\t\tdescrScrollPane.setViewportView(descrText);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 2;\n\t\tgridBagConstraints.gridy = 7;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n\t\tmainPanel.add(descrScrollPane, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 0;\n\t\tgetContentPane().add(mainPanel, gridBagConstraints);\n\n\t\tstatusPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\t\tstatusPanel.setPreferredSize(new java.awt.Dimension(580, 200));\n\t\tstatusPanel.setLayout(new java.awt.GridLayout(1, 1));\n\n\t\tstatusLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n\t\tstatusPanel.add(statusLabel);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 1;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;\n\t\tgridBagConstraints.weightx = 1.0;\n\t\tgridBagConstraints.weighty = 1.0;\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 2, 5, 2);\n\t\tgetContentPane().add(statusPanel, gridBagConstraints);\n\n\t\ttitleField.setInputVerifier(new titleFieldVerifier());\n\t\tminSumField.setInputVerifier(new minSumFieldVerifier());\n\t\tmaxSumField.setInputVerifier(new maxSumVerifier());\n\t\tperiodField.setInputVerifier(new periodFieldVerifier());\n\t\tpercentField.setInputVerifier(new percentFieldVerifier());\n\t\tdescrText.setInputVerifier(new descrTextVerifier());\n\n\t\tpack();\n\t}", "title": "" }, { "docid": "bd4ea40b6fded5ebc0d008b63b2d9224", "score": "0.65699387", "text": "protected void addControls()\r\n\t{\r\n\t\tsetLayout(new GridLayout(4,6));\r\n\r\n\t\tdepthField = addField(\"Depth of well\"\t\t\t,function.getDepth());\r\n\t\tfnWidthField = addField(\"Gaussian width\"\t\t\t,eqn.width);\r\n\t\tdtField = addField(\"dt\"\t\t\t\t\t\t,dt);\r\n\t\twidthField = addField(\"Width of well\"\t\t\t,function.getWidth());\r\n\t\tfnStartField = addField(\"Gaussian posn\"\t\t\t,eqn.x0);\r\n\t\tdxField = addField(\"dx\"\t\t\t\t\t\t,intWidth/steps);\r\n\t\tnWellsField = addField(\"Number of wells\"\t\t\t,function.getWellCount());\r\n\t\tenergyField = addField(\"Energy\"\t\t\t\t\t,eqn.getEnergy());\r\n\t\tintWidthField = addField(\"Interval width\"\t\t\t,intWidth);\r\n\r\n\t\tdxField.setEditable(false);\r\n\t\tdtField.setEditable(false);\r\n\r\n\t\tanimButton = addButton(\"Start\");\r\n\t\t//add(stepButton);\r\n\t\tresetButton = addButton(\"Reset\");\r\n\t\tquadBox = addCheckbox(\"Quadratic pot.\",false);\r\n\r\n\t\tadd(statusLabel);\r\n\t}", "title": "" }, { "docid": "22015b5f29aa79c5211e3a45e265bd0e", "score": "0.6569053", "text": "public Panel createPanel() {\n panel.setContent(panelContent);\n panelContent.addComponent(createInfo());\n panelContent.addComponent(resultsTab);\n\n panelContent.setMargin(true);\n panelContent.setSpacing(true);\n\n\n return panel;\n }", "title": "" }, { "docid": "9aa728ba7baf83e3b125fb2fb81043fb", "score": "0.65678644", "text": "private void $$$setupUI$$$() {\n createUIComponents();\n emploeeAddPanel = new JPanel();\n emploeeAddPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(10, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JLabel label1 = new JLabel();\n label1.setText(\"Name:\");\n emploeeAddPanel.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n nametextField = new JTextField();\n emploeeAddPanel.add(nametextField, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n depLabel = new JLabel();\n depLabel.setText(\"Department:\");\n emploeeAddPanel.add(depLabel, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n departmentTextField = new JTextField();\n emploeeAddPanel.add(departmentTextField, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n ageLabel = new JLabel();\n ageLabel.setText(\"Age:\");\n emploeeAddPanel.add(ageLabel, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n agetextField = new JTextField();\n emploeeAddPanel.add(agetextField, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n phoneLabel = new JLabel();\n phoneLabel.setText(\"Phone:\");\n emploeeAddPanel.add(phoneLabel, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n emploeeAddPanel.add(phonetextField, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n positionlabel = new JLabel();\n positionlabel.setText(\"Position:\");\n emploeeAddPanel.add(positionlabel, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n genderLabel = new JLabel();\n genderLabel.setText(\"Gender:\");\n emploeeAddPanel.add(genderLabel, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n femaleRadioButton = new JRadioButton();\n femaleRadioButton.setSelected(false);\n femaleRadioButton.setText(\"Female\");\n emploeeAddPanel.add(femaleRadioButton, new com.intellij.uiDesigner.core.GridConstraints(6, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n otherRadioButton = new JRadioButton();\n otherRadioButton.setText(\"Other\");\n emploeeAddPanel.add(otherRadioButton, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n addButton = new JButton();\n addButton.setText(\"Add\");\n emploeeAddPanel.add(addButton, new com.intellij.uiDesigner.core.GridConstraints(9, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n emploeeAddPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(8, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n PositionComboBox = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"\");\n defaultComboBoxModel1.addElement(\"Trainee\");\n defaultComboBoxModel1.addElement(\"Junior\");\n defaultComboBoxModel1.addElement(\"Middle\");\n defaultComboBoxModel1.addElement(\"Senior\");\n defaultComboBoxModel1.addElement(\"Lead\");\n defaultComboBoxModel1.addElement(\"Head\");\n defaultComboBoxModel1.addElement(\"PM\");\n PositionComboBox.setModel(defaultComboBoxModel1);\n emploeeAddPanel.add(PositionComboBox, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n maleRadioButton = new JRadioButton();\n maleRadioButton.setSelected(true);\n maleRadioButton.setText(\"Male\");\n emploeeAddPanel.add(maleRadioButton, new com.intellij.uiDesigner.core.GridConstraints(5, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n ButtonGroup buttonGroup;\n buttonGroup = new ButtonGroup();\n buttonGroup.add(maleRadioButton);\n buttonGroup.add(femaleRadioButton);\n buttonGroup.add(otherRadioButton);\n }", "title": "" }, { "docid": "523bc3bed4f6d47f9b786bf5e7c65983", "score": "0.6552869", "text": "@AutoGenerated\n\tprivate Panel buildFormPanel() {\n\t\tformPanel = new Panel();\n\t\tformPanel.setImmediate(false);\n\t\tformPanel.setWidth(\"100.0%\");\n\t\tformPanel.setHeight(\"100.0%\");\n\t\t\n\t\t// verticalLayout_1\n\t\tverticalLayout_1 = buildVerticalLayout_1();\n\t\tformPanel.setContent(verticalLayout_1);\n\t\t\n\t\treturn formPanel;\n\t}", "title": "" }, { "docid": "663becace84a68af8fbebf3ebead6b38", "score": "0.6545829", "text": "public CreateAllPanel() {\n initComponents();\n }", "title": "" }, { "docid": "d3dced245a68274f2a9a7640a179ccae", "score": "0.6542502", "text": "private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel13 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n tfProjectName = new javax.swing.JTextField();\n jButton7 = new javax.swing.JButton();\n tfTaskName = new javax.swing.JTextField();\n jButton8 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n tfProjectLocation = new javax.swing.JTextField();\n this.tfProjectLocation.setText(sourceLocation.getPath());\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel13, org.openide.util.NbBundle.getMessage(WLMVisualPanel1.class, \"WLMVisualPanel1.jLabel13.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(WLMVisualPanel1.class, \"WLMVisualPanel1.jLabel5.text\")); // NOI18N\n\n tfProjectName.setText(org.openide.util.NbBundle.getMessage(WLMVisualPanel1.class, \"WLMVisualPanel1.tfProjectName.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jButton7, org.openide.util.NbBundle.getMessage(WLMVisualPanel1.class, \"WLMVisualPanel1.jButton7.text\")); // NOI18N\n\n tfTaskName.setText(org.openide.util.NbBundle.getMessage(WLMVisualPanel1.class, \"WLMVisualPanel1.tfTaskName.text\")); // NOI18N\n tfTaskName.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tfTaskNameActionPerformed(evt);\n }\n });\n tfTaskName.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n tfTaskNameKeyReleased(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jButton8, org.openide.util.NbBundle.getMessage(WLMVisualPanel1.class, \"WLMVisualPanel1.jButton8.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(WLMVisualPanel1.class, \"WLMVisualPanel1.jLabel1.text\")); // NOI18N\n\n tfProjectLocation.setText(org.openide.util.NbBundle.getMessage(WLMVisualPanel1.class, \"WLMVisualPanel1.tfProjectLocation.text\")); // NOI18N\n tfProjectLocation.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tfProjectLocationActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel13)\n .add(jLabel5)\n .add(jLabel1))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1Layout.createSequentialGroup()\n .add(tfProjectLocation, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 387, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jButton7))\n .add(tfProjectName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jPanel1Layout.createSequentialGroup()\n .add(tfTaskName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 131, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jButton8)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(75, 75, 75)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(tfTaskName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jButton8)\n .add(jLabel5))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel13)\n .add(tfProjectName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel1)\n .add(jButton7)\n .add(tfProjectLocation, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(80, Short.MAX_VALUE))\n );\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(33, 33, 33)\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(34, Short.MAX_VALUE))\n );\n }", "title": "" }, { "docid": "8ee63649618a6b3d1222fb362717c614", "score": "0.65365726", "text": "public ButtonFrame() {\n\n\t setTitle(\"SunStream Loan Calculator v2.0\");\n\t setSize(900, 900);\n\t ButtonPanel panel = new ButtonPanel();\n\t panel.add(new JLabel(\"Enter your loan amount:\"));\n\t inputField = new JTextField(40);\n\t panel.add(inputField);\n\n\t add(panel, BorderLayout.CENTER);\n\t }", "title": "" }, { "docid": "add65d4fc4c31de5269ce134472c6fcd", "score": "0.65338963", "text": "private static void setButtonPanel()\r\n\t{\r\n\t\tGridLayout grid = new GridLayout(1,3, 30, 0);\r\n\t\tJPanel panel = new JPanel(grid);\r\n\t\t\r\n\t\tSaveAppointmentDialogEventHandler hnd = new SaveAppointmentDialogEventHandler();\r\n\t\t\r\n\t\tsaveBtn.addActionListener(hnd);\r\n\t\tbackBtn.addActionListener(hnd);\r\n\t\texitBtn.addActionListener(hnd);\r\n\t\t\r\n\t\tpanel.add(saveBtn);\r\n\t\tpanel.add(backBtn);\r\n\t\tpanel.add(exitBtn);\r\n\t\t\r\n\t\tcp.add(panel, labelConstants);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "451d37078d6e0359991ad152d759d0f6", "score": "0.6531795", "text": "private void initComponents() {\n pnlData = new JPanel();\n JButton btnBack = new JButton();\n lblTitle = new JLabel();\n taProfileInfo = new JTextArea();\n pnlAdmin = new JPanel();\n JButton btnAdmChgStud = new JButton();\n JButton btnAdmChgOwn = new JButton();\n JButton btnEnrollments = new JButton();\n pnlChgProfData = new JPanel();\n JButton btnUpdName = new JButton();\n tfName = new JTextField();\n tfAddr = new JTextField();\n JLabel lblAddress = new JLabel();\n JLabel lblName = new JLabel();\n JButton btnBack2 = new JButton();\n JButton btnUpdAddr = new JButton();\n lblError = new JLabel();\n lblSuccess = new JLabel();\n pnlChgStudData = new JPanel();\n tfYr = new JTextField();\n JLabel lblYr = new JLabel();\n tfGroup = new JTextField();\n JLabel lblGroup = new JLabel();\n JButton btnUpdYr = new JButton();\n JButton btnUpdGr = new JButton();\n\n //======== this ========\n setResizable(false);\n setMinimumSize(new Dimension(450, 450));\n Container contentPane = getContentPane();\n contentPane.setLayout(null);\n\n //======== pnlData ========\n {\n\n // JFormDesigner evaluation mark\n pnlData.setBorder(new javax.swing.border.CompoundBorder(\n new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),\n \"\", javax.swing.border.TitledBorder.CENTER,\n javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12),\n java.awt.Color.red), pnlData.getBorder())); pnlData.addPropertyChangeListener(e -> {if(\"border\".equals(e.getPropertyName()))throw new RuntimeException();});\n\n pnlData.setLayout(null);\n\n //---- btnBack ----\n btnBack.setText(\"Back\");\n btnBack.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n btnBack.addActionListener(this::btnBackActionPerformed);\n pnlData.add(btnBack);\n btnBack.setBounds(50, 365, 65, btnBack.getPreferredSize().height);\n\n //---- lblTitle ----\n lblTitle.setFont(new Font(\"Segoe UI\", Font.PLAIN, 20));\n lblTitle.setMinimumSize(new Dimension(100, 20));\n lblTitle.setText(\" \");\n pnlData.add(lblTitle);\n lblTitle.setBounds(95, 50, 225, lblTitle.getPreferredSize().height);\n\n //---- taProfileInfo ----\n taProfileInfo.setFont(new Font(\"Times New Roman\", Font.PLAIN, 18));\n taProfileInfo.setEditable(false);\n pnlData.add(taProfileInfo);\n taProfileInfo.setBounds(45, 120, 340, 145);\n\n //======== pnlAdmin ========\n {\n pnlAdmin.setVisible(false);\n pnlAdmin.setLayout(null);\n\n //---- btnAdmChgStud ----\n btnAdmChgStud.setText(\"Change Student Data\");\n btnAdmChgStud.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n btnAdmChgStud.addActionListener(e -> {\n\t\t\tbtnAdmChgStudActionPerformed(e);\n\t\t\tbtnAdmChgStudActionPerformed(e);\n\t\t});\n pnlAdmin.add(btnAdmChgStud);\n btnAdmChgStud.setBounds(10, 10, 195, 40);\n\n //---- btnAdmChgOwn ----\n btnAdmChgOwn.setText(\"Change Own Data\");\n btnAdmChgOwn.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n btnAdmChgOwn.addActionListener(this::btnAdmChgOwnActionPerformed);\n pnlAdmin.add(btnAdmChgOwn);\n btnAdmChgOwn.setBounds(10, 70, 195, 40);\n\n { // compute preferred size\n Dimension preferredSize = new Dimension();\n for(int i = 0; i < pnlAdmin.getComponentCount(); i++) {\n Rectangle bounds = pnlAdmin.getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = pnlAdmin.getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n pnlAdmin.setMinimumSize(preferredSize);\n pnlAdmin.setPreferredSize(preferredSize);\n }\n }\n pnlData.add(pnlAdmin);\n pnlAdmin.setBounds(220, 270, 215, 125);\n\n //---- btnEnrollments ----\n btnEnrollments.setText(\"Enrollments\");\n btnEnrollments.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n btnEnrollments.addActionListener(this::btnEnrollmentsActionPerformed);\n pnlData.add(btnEnrollments);\n btnEnrollments.setBounds(45, 295, 125, 36);\n\n { // compute preferred size\n Dimension preferredSize = new Dimension();\n for(int i = 0; i < pnlData.getComponentCount(); i++) {\n Rectangle bounds = pnlData.getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = pnlData.getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n pnlData.setMinimumSize(preferredSize);\n pnlData.setPreferredSize(preferredSize);\n }\n }\n contentPane.add(pnlData);\n pnlData.setBounds(0, 0, 445, 420);\n\n //======== pnlChgProfData ========\n {\n pnlChgProfData.setVisible(false);\n pnlChgProfData.setLayout(null);\n\n //---- btnUpdName ----\n btnUpdName.setText(\"Update\");\n btnUpdName.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n btnUpdName.addActionListener(this::btnUpdNameActionPerformed);\n pnlChgProfData.add(btnUpdName);\n btnUpdName.setBounds(225, 75, 80, btnUpdName.getPreferredSize().height);\n pnlChgProfData.add(tfName);\n tfName.setBounds(30, 80, 170, tfName.getPreferredSize().height);\n pnlChgProfData.add(tfAddr);\n tfAddr.setBounds(30, 160, 295, tfAddr.getPreferredSize().height);\n\n //---- lblAddress ----\n lblAddress.setText(\"Address\");\n lblAddress.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n pnlChgProfData.add(lblAddress);\n lblAddress.setBounds(30, 130, 55, lblAddress.getPreferredSize().height);\n\n //---- lblName ----\n lblName.setText(\"Name\");\n lblName.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n pnlChgProfData.add(lblName);\n lblName.setBounds(35, 55, 55, lblName.getPreferredSize().height);\n\n //---- btnBack2 ----\n btnBack2.setText(\"Back\");\n btnBack2.addActionListener(this::btnBack2ActionPerformed);\n pnlChgProfData.add(btnBack2);\n btnBack2.setBounds(new Rectangle(new Point(35, 10), btnBack2.getPreferredSize()));\n\n //---- btnUpdAddr ----\n btnUpdAddr.setText(\"Update\");\n btnUpdAddr.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n btnUpdAddr.addActionListener(this::btnUpdAddrActionPerformed);\n pnlChgProfData.add(btnUpdAddr);\n btnUpdAddr.setBounds(345, 155, 80, 36);\n\n //---- lblError ----\n lblError.setForeground(new Color(255, 51, 51));\n lblError.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n pnlChgProfData.add(lblError);\n lblError.setBounds(135, 15, 295, 20);\n\n //---- lblSuccess ----\n lblSuccess.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\n pnlChgProfData.add(lblSuccess);\n lblSuccess.setBounds(170, 45, 240, 20);\n\n { // compute preferred size\n Dimension preferredSize = new Dimension();\n for(int i = 0; i < pnlChgProfData.getComponentCount(); i++) {\n Rectangle bounds = pnlChgProfData.getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = pnlChgProfData.getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n pnlChgProfData.setMinimumSize(preferredSize);\n pnlChgProfData.setPreferredSize(preferredSize);\n }\n }\n contentPane.add(pnlChgProfData);\n pnlChgProfData.setBounds(0, 5, 450, 200);\n\n //======== pnlChgStudData ========\n {\n pnlChgStudData.setVisible(false);\n pnlChgStudData.setLayout(null);\n pnlChgStudData.add(tfYr);\n tfYr.setBounds(25, 45, 115, 24);\n\n //---- lblYr ----\n lblYr.setText(\"Year\");\n lblYr.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n pnlChgStudData.add(lblYr);\n lblYr.setBounds(25, 20, 45, 20);\n pnlChgStudData.add(tfGroup);\n tfGroup.setBounds(25, 125, 170, 24);\n\n //---- lblGroup ----\n lblGroup.setText(\"Group\");\n lblGroup.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n pnlChgStudData.add(lblGroup);\n lblGroup.setBounds(25, 95, 55, 20);\n\n //---- btnUpdYr ----\n btnUpdYr.setText(\"Update\");\n btnUpdYr.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n btnUpdYr.addActionListener(this::btnUpdYrActionPerformed);\n pnlChgStudData.add(btnUpdYr);\n btnUpdYr.setBounds(155, 40, 80, 36);\n\n //---- btnUpdGr ----\n btnUpdGr.setText(\"Update\");\n btnUpdGr.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n btnUpdGr.addActionListener(this::btnUpdGrActionPerformed);\n pnlChgStudData.add(btnUpdGr);\n btnUpdGr.setBounds(215, 120, 80, 36);\n\n { // compute preferred size\n Dimension preferredSize = new Dimension();\n for(int i = 0; i < pnlChgStudData.getComponentCount(); i++) {\n Rectangle bounds = pnlChgStudData.getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = pnlChgStudData.getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n pnlChgStudData.setMinimumSize(preferredSize);\n pnlChgStudData.setPreferredSize(preferredSize);\n }\n }\n contentPane.add(pnlChgStudData);\n pnlChgStudData.setBounds(0, 205, 450, 215);\n\n { // compute preferred size\n Dimension preferredSize = new Dimension();\n for(int i = 0; i < contentPane.getComponentCount(); i++) {\n Rectangle bounds = contentPane.getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = contentPane.getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n contentPane.setMinimumSize(preferredSize);\n contentPane.setPreferredSize(preferredSize);\n }\n pack();\n setLocationRelativeTo(getOwner());\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "title": "" }, { "docid": "49097d323b3cc0da341886a0e09c1e9d", "score": "0.6530661", "text": "private JPanel createFieldspanel(){\n inputPanel= new JPanel();\n inputPanel.setLayout((new GridLayout(0,2,5,5)));\n\n lblFirstname = new JLabel(\"First name\");\n inputPanel.add(lblFirstname);\n txtFirstName = new JTextField();\n inputPanel.add(txtFirstName);\n\n lblLastName = new JLabel(\"Last name\");\n inputPanel.add(lblLastName);\n txtLastName= new JTextField();\n inputPanel.add(txtLastName);\n\n lblHeight = new JLabel(\"Height\");\n inputPanel.add(lblHeight);\n txtHeight= new JTextField();\n inputPanel.add(txtHeight);\n\n lblWeight = new JLabel(\"Weight\");\n inputPanel.add(lblWeight);\n txtWeight= new JTextField();\n inputPanel.add(txtWeight);\n\n lblBirthdate = new JLabel(\"Date of Birth (YYYY-MM-DD)\");\n inputPanel.add(lblBirthdate);\n txtBirthdate= new JTextField();\n inputPanel.add(txtBirthdate);\n\n lblSex = new JLabel(\"Sex (M/F)\");\n inputPanel.add(lblSex);\n txtSex= new JTextField();\n inputPanel.add(txtSex);\n\n lblPosition = new JLabel(\"Position:\");\n inputPanel.add(lblPosition);\n txtPosition= new JTextField();\n inputPanel.add(txtPosition);\n\n lblHireDate = new JLabel(\"Date Hired: (YYYY-MM-DD)\");\n inputPanel.add(lblHireDate);\n txtHireDate= new JTextField();\n inputPanel.add(txtHireDate);\n\n return inputPanel;\n }", "title": "" }, { "docid": "336f6b288e32dee685d2b6d7643d1be3", "score": "0.65279436", "text": "void addPaneltoFrame(Container container)\n\t{\n\t\tcontainer.setLayout(new BoxLayout(container, BoxLayout.Y_AXIS));\n\t\tcontainer.add(this);\n\t\tlabel = new JLabel(\"N for new game; S to serve; Q to quit.\");\n\t\tcontainer.add(label);\n\t}", "title": "" }, { "docid": "38f392044f162d384e754875237b7573", "score": "0.6526271", "text": "private void initComponents() {\n panel7 = new JPanel();\r\n label109 = new JLabel();\r\n textField83 = new JTextField();\r\n label112 = new JLabel();\r\n textField84 = new JTextField();\r\n label113 = new JLabel();\r\n textField85 = new JTextField();\r\n label114 = new JLabel();\r\n textField86 = new JTextField();\r\n label115 = new JLabel();\r\n textField87 = new JTextField();\r\n label116 = new JLabel();\r\n textField88 = new JTextField();\r\n label117 = new JLabel();\r\n textField89 = new JTextField();\r\n label118 = new JLabel();\r\n textField90 = new JTextField();\r\n label119 = new JLabel();\r\n textField91 = new JTextField();\r\n label122 = new JLabel();\r\n textField92 = new JTextField();\r\n label123 = new JLabel();\r\n textField93 = new JTextField();\r\n label124 = new JLabel();\r\n textField94 = new JTextField();\r\n label34 = new JLabel();\r\n button14 = new JButton();\r\n button15 = new JButton();\r\n\r\n //======== this ========\r\n Container contentPane = getContentPane();\r\n\r\n //======== panel7 ========\r\n {\r\n panel7.setBackground(new Color(255, 204, 204));\r\n panel7.setBorder (new javax. swing. border. CompoundBorder( new javax .swing .border .TitledBorder (\r\n new javax. swing. border. EmptyBorder( 0, 0, 0, 0) , \"JF\\u006frmDes\\u0069gner \\u0045valua\\u0074ion\"\r\n , javax. swing. border. TitledBorder. CENTER, javax. swing. border. TitledBorder. BOTTOM\r\n , new java .awt .Font (\"D\\u0069alog\" ,java .awt .Font .BOLD ,12 )\r\n , java. awt. Color. red) ,panel7. getBorder( )) ); panel7. addPropertyChangeListener (\r\n new java. beans. PropertyChangeListener( ){ @Override public void propertyChange (java .beans .PropertyChangeEvent e\r\n ) {if (\"\\u0062order\" .equals (e .getPropertyName () )) throw new RuntimeException( )\r\n ; }} );\r\n\r\n //---- label109 ----\r\n label109.setText(\"\\u0646\\u0627\\u0645 \\u062f\\u0648\\u0631\\u0647 \\u0622\\u0645\\u0648\\u0632\\u0634\\u06cc:\");\r\n label109.setForeground(Color.black);\r\n label109.setFont(new Font(\"B Zar\", Font.PLAIN, 20));\r\n\r\n //---- textField83 ----\r\n textField83.setHorizontalAlignment(SwingConstants.CENTER);\r\n textField83.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n\r\n //---- label112 ----\r\n label112.setText(\"\\u062a\\u0627\\u0631\\u06cc\\u062e \\u0634\\u0631\\u0648\\u0639 \\u062f\\u0648\\u0631\\u0647:\");\r\n label112.setForeground(Color.black);\r\n label112.setFont(new Font(\"B Zar\", Font.PLAIN, 20));\r\n\r\n //---- textField84 ----\r\n textField84.setHorizontalAlignment(SwingConstants.CENTER);\r\n textField84.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n\r\n //---- label113 ----\r\n label113.setText(\"\\u062a\\u0627\\u0631\\u06cc\\u062e \\u067e\\u0627\\u06cc\\u0627\\u0646 \\u062f\\u0648\\u0631\\u0647:\");\r\n label113.setForeground(Color.black);\r\n label113.setFont(new Font(\"B Zar\", Font.PLAIN, 20));\r\n\r\n //---- textField85 ----\r\n textField85.setHorizontalAlignment(SwingConstants.CENTER);\r\n textField85.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n\r\n //---- label114 ----\r\n label114.setText(\"\\u0637\\u0648\\u0644 \\u062f\\u0648\\u0631\\u0647 \\u0622\\u0645\\u0648\\u0632\\u0634\\u06cc:\");\r\n label114.setForeground(Color.black);\r\n label114.setFont(new Font(\"B Zar\", Font.PLAIN, 20));\r\n\r\n //---- textField86 ----\r\n textField86.setHorizontalAlignment(SwingConstants.CENTER);\r\n textField86.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n\r\n //---- label115 ----\r\n label115.setText(\"\\u0645\\u062c\\u0631\\u06cc \\u062f\\u0648\\u0631\\u0647 \\u0622\\u0645\\u0648\\u0632\\u0634\\u06cc:\");\r\n label115.setForeground(Color.black);\r\n label115.setFont(new Font(\"B Zar\", Font.PLAIN, 20));\r\n\r\n //---- textField87 ----\r\n textField87.setHorizontalAlignment(SwingConstants.CENTER);\r\n textField87.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n\r\n //---- label116 ----\r\n label116.setText(\"\\u0645\\u062f\\u0631\\u0633 \\u062f\\u0648\\u0631\\u0647:\");\r\n label116.setForeground(Color.black);\r\n label116.setFont(new Font(\"B Zar\", Font.PLAIN, 20));\r\n\r\n //---- textField88 ----\r\n textField88.setHorizontalAlignment(SwingConstants.CENTER);\r\n textField88.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n\r\n //---- label117 ----\r\n label117.setText(\"\\u0634\\u0645\\u0627\\u0631\\u0647 \\u0645\\u062c\\u0648\\u0632 \\u0645\\u062c\\u0631\\u06cc:\");\r\n label117.setForeground(Color.black);\r\n label117.setFont(new Font(\"B Zar\", Font.PLAIN, 20));\r\n\r\n //---- textField89 ----\r\n textField89.setHorizontalAlignment(SwingConstants.CENTER);\r\n textField89.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n\r\n //---- label118 ----\r\n label118.setText(\"\\u062a\\u0627\\u0631\\u06cc\\u062e \\u0635\\u062f\\u0648\\u0631 \\u0645\\u062c\\u0648\\u0632:\");\r\n label118.setForeground(Color.black);\r\n label118.setFont(new Font(\"B Zar\", Font.PLAIN, 20));\r\n\r\n //---- textField90 ----\r\n textField90.setHorizontalAlignment(SwingConstants.CENTER);\r\n textField90.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n\r\n //---- label119 ----\r\n label119.setText(\"\\u0633\\u0627\\u0632\\u0645\\u0627\\u0646 :\");\r\n label119.setForeground(Color.black);\r\n label119.setFont(new Font(\"B Zar\", Font.PLAIN, 20));\r\n\r\n //---- textField91 ----\r\n textField91.setHorizontalAlignment(SwingConstants.CENTER);\r\n textField91.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n\r\n //---- label122 ----\r\n label122.setText(\"\\u062a\\u0627\\u0631\\u06cc\\u062e \\u0622\\u0632\\u0645\\u0648\\u0646 \\u067e\\u0627\\u06cc\\u0627\\u0646 \\u062f\\u0648\\u0631\\u0647:\");\r\n label122.setForeground(Color.black);\r\n label122.setFont(new Font(\"B Zar\", Font.PLAIN, 20));\r\n\r\n //---- textField92 ----\r\n textField92.setHorizontalAlignment(SwingConstants.CENTER);\r\n textField92.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n\r\n //---- label123 ----\r\n label123.setText(\"\\u067e\\u0631\\u0648\\u0627\\u0646\\u0647 \\u0627\\u0634\\u062a\\u063a\\u0627\\u0644 \\u0645\\u062f\\u0631\\u0633 :\");\r\n label123.setForeground(Color.black);\r\n label123.setFont(new Font(\"B Zar\", Font.PLAIN, 20));\r\n\r\n //---- textField93 ----\r\n textField93.setHorizontalAlignment(SwingConstants.CENTER);\r\n textField93.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n\r\n //---- label124 ----\r\n label124.setText(\"\\u0634\\u0645\\u0627\\u0631\\u0647 \\u062f\\u0648\\u0631\\u0647:\");\r\n label124.setForeground(Color.black);\r\n label124.setFont(new Font(\"B Zar\", Font.PLAIN, 20));\r\n\r\n //---- textField94 ----\r\n textField94.setHorizontalAlignment(SwingConstants.CENTER);\r\n textField94.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n\r\n //---- label34 ----\r\n label34.setText(\"\\u0627\\u0646\\u062c\\u0627\\u0645 \\u0634\\u062f!!\");\r\n label34.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n label34.setForeground(new Color(255, 51, 51));\r\n label34.setVisible(false);\r\n\r\n //---- button14 ----\r\n button14.setText(\"\\u0648\\u06cc\\u0631\\u0627\\u06cc\\u0634\");\r\n button14.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n button14.setBackground(Color.black);\r\n button14.setForeground(new Color(255, 153, 153));\r\n button14.addActionListener(e-> actionPerformed14(e));\r\n\r\n\r\n //---- button15 ----\r\n button15.setText(\"\\u0644\\u063a\\u0648\");\r\n button15.setFont(new Font(\"Segoe UI\", Font.PLAIN, 16));\r\n button15.setBackground(Color.black);\r\n button15.setForeground(new Color(255, 153, 153));\r\n button15.addActionListener(e-> actionPerformed15(e));\r\n\r\n GroupLayout panel7Layout = new GroupLayout(panel7);\r\n panel7.setLayout(panel7Layout);\r\n panel7Layout.setHorizontalGroup(\r\n panel7Layout.createParallelGroup()\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addContainerGap(79, Short.MAX_VALUE)\r\n .addGroup(panel7Layout.createParallelGroup()\r\n .addGroup(GroupLayout.Alignment.TRAILING, panel7Layout.createSequentialGroup()\r\n .addGroup(panel7Layout.createParallelGroup()\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addGroup(panel7Layout.createParallelGroup(GroupLayout.Alignment.LEADING, false)\r\n .addComponent(textField91, GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE)\r\n .addComponent(textField94, GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE))\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(panel7Layout.createParallelGroup()\r\n .addComponent(label124)\r\n .addComponent(label119)))\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addGroup(panel7Layout.createParallelGroup(GroupLayout.Alignment.LEADING, false)\r\n .addComponent(textField85, GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)\r\n .addComponent(textField88, GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE))\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(panel7Layout.createParallelGroup()\r\n .addComponent(label116)\r\n .addComponent(label113))))\r\n .addGap(136, 136, 136)\r\n .addGroup(panel7Layout.createParallelGroup(GroupLayout.Alignment.LEADING, false)\r\n .addGroup(GroupLayout.Alignment.TRAILING, panel7Layout.createSequentialGroup()\r\n .addComponent(textField93)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(label123))\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addComponent(textField84, GroupLayout.PREFERRED_SIZE, 150, GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(label112))\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addGap(121, 121, 121)\r\n .addComponent(label34))\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addGroup(panel7Layout.createParallelGroup()\r\n .addComponent(textField90, GroupLayout.PREFERRED_SIZE, 144, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(textField87, GroupLayout.Alignment.TRAILING, GroupLayout.PREFERRED_SIZE, 144, GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(panel7Layout.createParallelGroup()\r\n .addComponent(label118)\r\n .addComponent(label115))))\r\n .addGap(94, 94, 94)\r\n .addGroup(panel7Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)\r\n .addGroup(panel7Layout.createParallelGroup()\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addGap(6, 6, 6)\r\n .addComponent(textField83, GroupLayout.PREFERRED_SIZE, 144, GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(label109))\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addGap(7, 7, 7)\r\n .addComponent(textField92, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(label122))\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addGap(12, 12, 12)\r\n .addComponent(textField86, GroupLayout.PREFERRED_SIZE, 138, GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(label114)))\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addComponent(textField89, GroupLayout.PREFERRED_SIZE, 137, GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(label117)\r\n .addGap(13, 13, 13)))\r\n .addGap(82, 82, 82))\r\n .addGroup(GroupLayout.Alignment.TRAILING, panel7Layout.createSequentialGroup()\r\n .addComponent(button15, GroupLayout.PREFERRED_SIZE, 144, GroupLayout.PREFERRED_SIZE)\r\n .addGap(226, 226, 226)\r\n .addComponent(button14, GroupLayout.PREFERRED_SIZE, 144, GroupLayout.PREFERRED_SIZE)\r\n .addGap(372, 372, 372))))\r\n );\r\n panel7Layout.setVerticalGroup(\r\n panel7Layout.createParallelGroup()\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addGap(80, 80, 80)\r\n .addGroup(panel7Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n .addComponent(label109)\r\n .addComponent(label112)\r\n .addComponent(textField83, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(label113)\r\n .addComponent(textField85, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(textField84, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE))\r\n .addGap(80, 80, 80)\r\n .addGroup(panel7Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n .addComponent(label115)\r\n .addComponent(label114)\r\n .addComponent(textField86, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(textField87, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(label116)\r\n .addComponent(textField88, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE))\r\n .addGap(80, 80, 80)\r\n .addGroup(panel7Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n .addComponent(label117)\r\n .addComponent(textField90, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(label118)\r\n .addComponent(textField89, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(label119)\r\n .addComponent(textField91, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE))\r\n .addGroup(panel7Layout.createParallelGroup()\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(label34)\r\n .addGap(14, 14, 14))\r\n .addGroup(panel7Layout.createSequentialGroup()\r\n .addGap(80, 80, 80)\r\n .addGroup(panel7Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n .addComponent(label123)\r\n .addComponent(label124)\r\n .addComponent(label122)\r\n .addComponent(textField92, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(textField94, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(textField93, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 89, Short.MAX_VALUE)\r\n .addGroup(panel7Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n .addComponent(button14, GroupLayout.PREFERRED_SIZE, 34, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(button15, GroupLayout.PREFERRED_SIZE, 34, GroupLayout.PREFERRED_SIZE))\r\n .addGap(65, 65, 65))))\r\n );\r\n }\r\n\r\n GroupLayout contentPaneLayout = new GroupLayout(contentPane);\r\n contentPane.setLayout(contentPaneLayout);\r\n contentPaneLayout.setHorizontalGroup(\r\n contentPaneLayout.createParallelGroup()\r\n .addComponent(panel7, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n contentPaneLayout.setVerticalGroup(\r\n contentPaneLayout.createParallelGroup()\r\n .addComponent(panel7, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n pack();\r\n setLocationRelativeTo(getOwner());\r\n // JFormDesigner - End of component initialization //GEN-END:initComponents\r\n }", "title": "" }, { "docid": "f335fc97e3ef700f7bccfd5a9706d19d", "score": "0.6519867", "text": "private void initializeButtonPanel() {\n _buttonPanel.add(_addButton) ;\n _buttonPanel.add(_editButton) ;\n _buttonPanel.add(_deleteButton) ;\n // TODO maybe later\n // _buttonPanel.add(new JLabel(\"View Dates As : \")) ;\n // _jComboBox = new JComboBox(TimeZone.getValues()) ;\n // _buttonPanel.add(_jComboBox) ;\n _mainPanel.add(_buttonPanel, BorderLayout.NORTH) ;\n \n _addButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n addButtonActionPerformed() ;\n }\n }) ;\n\n _editButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n editButtonActionPerformed() ;\n }\n }) ;\n\n _deleteButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n deleteButtonActionPerformed() ;\n }\n }) ;\n\n }", "title": "" }, { "docid": "6e36b196eafd0cfc19762e94b376f18b", "score": "0.65190256", "text": "private void initComponents() {\n createUIComponents();\n\n\n //======== this ========\n setName(\"this\");\n\n //---- title ----\n title.setText(\"Congratulazioni: la tua prenotazione \\u00e8 completata\");\n title.setName(\"title\");\n\n //---- label2 ----\n label2.setText(\"Puoi pagare i prodotti prenotati in cassa fornendo il numero di prenotazione\");\n label2.setName(\"label2\");\n\n //---- label3 ----\n label3.setText(\"Numero prenotazione\");\n label3.setHorizontalAlignment(SwingConstants.RIGHT);\n label3.setName(\"label3\");\n\n //---- numeroPrenotazione ----\n numeroPrenotazione.setName(\"numeroPrenotazione\");\n\n //---- label7 ----\n label7.setText(\"Se desideri puoi lasciare un acconto e saldare il totale quando avrai i prodotti\");\n label7.setName(\"label7\");\n\n //---- totaleLabel ----\n totaleLabel.setText(\"Totale\");\n totaleLabel.setName(\"totaleLabel\");\n\n //---- accontoLabel ----\n accontoLabel.setText(\"Acconto\");\n accontoLabel.setName(\"accontoLabel\");\n\n //---- totale ----\n totale.setHorizontalAlignment(SwingConstants.CENTER);\n totale.setName(\"totale\");\n\n //---- acconto ----\n acconto.setHorizontalAlignment(SwingConstants.CENTER);\n acconto.setName(\"acconto\");\n\n //---- label4 ----\n label4.setText(\"Ti ringraziamo per aver scelto di utilizzare i nostri sistemi automatici.\");\n label4.setName(\"label4\");\n\n //---- button1 ----\n button1.setText(\"Chiudi\");\n button1.setName(\"button1\");\n button1.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n endActionPerformed(e);\n }\n });\n\n PanelBuilder builder = new PanelBuilder(new FormLayout(\n \"[15dlu,default], $lcgap, 100dlu, $lcgap, default:grow, $lcgap, [75dlu,default], $lcgap, default:grow, $lcgap, 100dlu, $lcgap, [15dlu,default]\",\n \"15dlu, $lgap, [20dlu,default], 5dlu, fill:15dlu, $lgap, fill:20dlu, 5dlu, 3*(15dlu, $lgap), [30dlu,default]:grow, $lgap, [35dlu,default], $lgap, 16dlu\"), this);\n\n builder.add(title, CC.xywh( 3, 3, 9, 1, CC.CENTER, CC.FILL ));\n builder.add(label2, CC.xywh( 3, 5, 9, 1, CC.CENTER, CC.FILL ));\n builder.add(label3, CC.xywh( 3, 7, 3, 1, CC.FILL , CC.DEFAULT));\n builder.add(numeroPrenotazione, CC.xy ( 7, 7));\n builder.add(label7, CC.xywh( 3, 9, 9, 1, CC.CENTER, CC.FILL ));\n builder.add(totaleLabel, CC.xy ( 3, 11, CC.CENTER, CC.FILL));\n builder.add(accontoLabel, CC.xy (11, 11, CC.CENTER, CC.FILL));\n builder.add(totale, CC.xy ( 3, 13, CC.FILL, CC.FILL));\n builder.add(acconto, CC.xy (11, 13, CC.FILL, CC.FILL));\n builder.add(label4, CC.xywh( 3, 15, 9, 1, CC.CENTER, CC.FILL ));\n builder.add(button1, CC.xy ( 7, 17, CC.FILL, CC.FILL));\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "title": "" }, { "docid": "504701a92f259a61cc2e2e7a978fbb6f", "score": "0.6513634", "text": "private JPanel createAddEmployOptionSubPanle() {\n\t\tJPanel panel = new JPanel(new GridLayout(5, 2));\n\t\ttxtfEmpEmployer = new HintTextField(\"Employer\");\n\t\ttxtfEmpEmployer.setColumns(25);\n\t\ttxtfEmpPosition = new HintTextField(\"Job Position\");\n\t\ttxtfEmpPosition.setColumns(25);\n\t\ttxtfEmpSalary = new HintTextField(\"Salary\");\n\t\ttxtfEmpSalary.setColumns(25);\n\t\ttxtfEmpComment = new HintTextField(\"Comment\");\n\t\ttxtfEmpComment.setColumns(25);\n\n\t\tJPanel datePanel = new JPanel();\n\t\tInteger[] monthList = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };\n\t\tcmbEmpFromM = new JComboBox<Object>(monthList);\n\t\tDate theDate = new Date();\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy\");\n\t\tInteger[] years = new Integer[10];\n\t\tyears[0] = Integer.parseInt(formatter.format(theDate));\n\t\tfor (int i = 1; i < 10; i++) {\n\t\t\tyears[i] = years[0] + i;\n\t\t}\n\t\tcmbEmpFromY = new JComboBox<Object>(years);\n\t\tdatePanel.add(new JLabel(\"From:\"));\n\t\tdatePanel.add(cmbEmpFromM);\n\t\tdatePanel.add(cmbEmpFromY);\n\n\t\ttxtfEmpComment.setEnabled(false);\n\t\ttxtfEmpEmployer.setEnabled(true);\n\t\ttxtfEmpPosition.setEnabled(true);\n\t\ttxtfEmpSalary.setEnabled(true);\n\t\tcmbEmpFromM.setEnabled(true);\n\t\tcmbEmpFromY.setEnabled(true);\n\t\thasEmployment = true;\n\n\t\tpanel.add(new JLabel(\"Employer:\"));\n\t\tpanel.add(txtfEmpEmployer);\n\t\tpanel.add(new JLabel(\"Position:\"));\n\t\tpanel.add(txtfEmpPosition);\n\t\tpanel.add(new JLabel(\"Salary:\"));\n\t\tpanel.add(txtfEmpSalary);\n\t\tpanel.add(new JLabel(\"Date From:\"));\n\t\tpanel.add(datePanel);\n\t\tpanel.add(new JLabel(\"Comment\"));\n\t\tpanel.add(txtfEmpComment);\n\t\treturn panel;\n\t}", "title": "" }, { "docid": "67d738350ea7fac675e4ff2a4de011a0", "score": "0.65120244", "text": "private void mainPanel() {\n\t\t// Create the Panel\n\t\tmPanel = new JPanel();\n\t\tmPanel.setBorder(BorderFactory.createTitledBorder(\"Add an item to the list\"));\n\t\tmPanel.setSize(400, 415);\n\t\tFlowLayout layout = new FlowLayout();\n\t\tmPanel.setLayout(layout);\n\n\t\t// Create the text field to enter a list item\n\t\ttxtItem = new JTextField(21);\n\t\ttxtUserLogin = new JTextField(15);\n\n\t\t// Add the text field and a save button to the panel\n\t\tmPanel.add(lblUserLogin);\n\t\tmPanel.add(txtUserLogin);\n\t\tmPanel.add(btnOpenUserWindow);\n\t\tmPanel.add(lblItemDesc);\n\t\tmPanel.add(txtItem);\n\n\t\t// Create a list model and a list\n\t\tlistModel = new DefaultListModel();\n\t\tlist1 = new JList(listModel);\n\t\tlist1.setVisibleRowCount(15);\n\t\tJScrollPane scrollPane = new JScrollPane(list1);\n\t\tscrollPane.setVisible(true);\n\t\tscrollPane.setBorder(BorderFactory.createTitledBorder(\"To-Do List\"));\n\n\t\t// Creates a delete button\n\t\tdeleteButton = new JButton(\"Delete Item\");\n\n\t\t// Adds the list model, list, and delete button to the panel\n\t\tmPanel.add(scrollPane);\n\t\tmPanel.add(deleteButton);\n\t\tmPanel.add(btnMainSave);\n\t}", "title": "" }, { "docid": "b5c0e18b5eba66f0452959e414013389", "score": "0.65018636", "text": "private JPanel makeControlPanel() {\n\n\t\tJPanel panel = new JPanel(new FlowLayout(FlowLayout.LEADING));\n\t\tJButton refreshButton = new JButton(\"Refresh Check prices\");\n\t\trefreshButton.setFocusPainted(false);\n\t\trefreshButton.addActionListener(this::refreshButtonClicked);\n\t\tpanel.add(refreshButton);\n\t\treturn panel;\n\t}", "title": "" }, { "docid": "a5ba50e38e5f389cf92521774a41db4a", "score": "0.6498948", "text": "public void createMainPanel()\r\n\t{\r\n\t\tJPanel brandPanel=createComboBox();\r\n\t\tJPanel sizePanel=createCheckBoxes();\r\n\t\tJPanel typePanel=createRadioButtons();\r\n\t\tJPanel fieldPanel=createTextField();\r\n\t\tJPanel resultsPanel=createTextArea();\r\n\t\tJPanel donePanel=createJButton();\r\n\t\t\r\n\t\t/*Orders the component panels to display them in\r\n\t\t the correct order\r\n\t\t */\r\n\t\tJPanel mainPanel=new JPanel();\r\n\t\tmainPanel.setLayout(new GridLayout(3,1));\r\n\t\tmainPanel.add(fieldPanel);\r\n\t\tmainPanel.add(brandPanel);\r\n\t\tmainPanel.add(sizePanel);\r\n\t\tmainPanel.add(typePanel);\r\n\t\tmainPanel.add(donePanel);\r\n\t\tmainPanel.add(resultsPanel);\r\n\t\t\r\n\t\t//Adds the main panel to the frame.\r\n\t\tadd(mainPanel, BorderLayout.SOUTH);\r\n\t}", "title": "" }, { "docid": "d4d8ae7217fa7667e765fedb28e295b2", "score": "0.64973086", "text": "private void createNorth() {\n\t\tnorthPanel = new FormPanel();\r\n\t\tnorthPanel.setPadding(0);\r\n\t\tnorthPanel.setLayout(new BorderLayout());\r\n\t\tnorthPanel.setStyleAttribute(\"direction\", direction);\r\n//\t\tnorthPanel.setHeading(orderConstants.orderData());\r\n\t\tnorthPanel.setHeaderVisible(false);\r\n\t\tnorthPanel.setBorders(false);\r\n\t\tnorthPanel.setBodyBorder(false);\r\n\t\tnorthPanel.setFrame(true);\r\n\t\t\r\n\t\tHBoxLayout hBoxLayout = (HBoxLayout)ComponentsFactory.getHBoxLayout();\r\n\t\thBoxLayout.setHBoxLayoutAlign(HBoxLayoutAlign.TOP);\r\n//*\t\t\r\n//\t\tBoxLayoutPack pack = (LocaleInfo.getCurrentLocale().isRTL())? BoxLayoutPack.END : BoxLayoutPack.START;\r\n//\t\thBoxLayout.setPack(pack);\r\n/*/\t\thBoxLayout.setPack(BoxLayoutPack.CENTER);\r\n//*/\r\n\t\thBoxLayout.setPadding(new Padding(0, 5, 0, 0));\r\n\t\tpanelPanel = new ContentPanel(hBoxLayout);\r\n\t\tpanelPanel.setHeading(orderConstants.orderData());\r\n\t\tpanelPanel.setHeaderVisible(false);\r\n\t\tpanelPanel.setBorders(false);\r\n\t\tpanelPanel.setBodyBorder(false);\r\n\t\t\r\n\t\tFormPanel panel1 = new FormPanel( );\r\n\t\tpanel1.setHeaderVisible(false);\r\n\t\tpanel1.setLabelAlign(LabelAlign.TOP);\r\n\t\tpanel1.setBorders(false);\r\n\t\tpanel1.setBodyBorder(false);\r\n\t\tpanel1.setPadding(5);\r\n\t\tpanel1.setStyleAttribute(\"direction\", direction);\r\n\t\tFormData fData = new FormData(\"90%\");\r\n\t\t\r\n\t\tHBoxLayoutData hData = new HBoxLayoutData();\r\n\t\t\r\n\t\tpurchasingOrderNo = new TextField<String>();\r\n\t\tpurchasingOrderNo.setFieldLabel(orderConstants.purchasingOrderNo());\r\n\t\tpurchasingOrderNo.setName(PurchasingOrderModelBean.PURCHASING_ORDER_NO);\r\n\t\tadd(panel1, purchasingOrderNo, fData);\r\n\t\t\r\n\t\tadd(panelPanel, panel1, hData);\r\n\t\t\r\n\t\tpanel1 = new FormPanel( );\r\n\t\tpanel1.setHeaderVisible(false);\r\n\t\tpanel1.setLabelAlign(LabelAlign.TOP);\r\n\t\tpanel1.setLabelSeparator(\"\");\r\n\t\tpanel1.setBorders(false);\r\n\t\tpanel1.setBodyBorder(false);\r\n\t\tpanel1.setPadding(5);\r\n\t\tpanel1.setWidth(30);\r\n\t\tpanel1.setStyleAttribute(\"direction\", direction);\r\n\t/*\t\r\n\t\tversionNo = new TextField<String>();\r\n//\t\tversionNo.setFieldLabel(orderConstants.quotationNo());\r\n\t\tversionNo.setName(PurchasingOrderModelBean.VERSION_NO);\r\n\t\tadd(panel1, versionNo, fData);\r\n\t\t\r\n\t\tadd(panelPanel, panel1, hData);\r\n\t*/\t\r\n\t\tpanel1 = new FormPanel( );\r\n\t\tpanel1.setHeaderVisible(false);\r\n\t\tpanel1.setLabelAlign(LabelAlign.TOP);\r\n\t\tpanel1.setBorders(false);\r\n\t\tpanel1.setBodyBorder(false);\r\n\t\tpanel1.setPadding(5);\r\n\t\tpanel1.setStyleAttribute(\"direction\", direction);\r\n\t\t\r\n\t\tquotationNo = new TextField<String>();\r\n\t\tquotationNo.setFieldLabel(orderConstants.quotationNo());\r\n\t\tquotationNo.setName(PurchasingOrderModelBean.QUOTATION_NO);\r\n\t\tadd(panel1, quotationNo, fData);\r\n\t\t\r\n\t\tadd(panelPanel, panel1, hData);\r\n\t\t\r\n\t\tpanel1 = new FormPanel();\r\n\t\tpanel1.setHeaderVisible(false);\r\n\t\tpanel1.setLabelAlign(LabelAlign.TOP);\r\n\t\tpanel1.setBorders(false);\r\n\t\tpanel1.setBodyBorder(false);\r\n\t\tpanel1.setPadding(5);\r\n\t\tpanel1.setStyleAttribute(\"direction\", direction);\r\n\t\t\r\n\t\torderType = new TextField<String>();\r\n\t\torderType.setFieldLabel(orderConstants.purchasingOrderType());\r\n\t\torderType.setAllowBlank(false);\r\n\t\torderType.setName(PurchasingOrderModelBean.PURCHASING_ORDER_TYPE);\r\n\t\tadd(panel1, orderType, fData);\r\n\t\t\r\n\t\tadd(panelPanel, panel1, hData);\r\n\t\t\r\n\t\tpanel1 = new FormPanel();\r\n\t\tpanel1.setHeaderVisible(false);\r\n\t\tpanel1.setLabelAlign(LabelAlign.TOP);\r\n\t\tpanel1.setBorders(false);\r\n\t\tpanel1.setBodyBorder(false);\r\n\t\tpanel1.setPadding(5);\r\n\t\tpanel1.setStyleAttribute(\"direction\", direction);\r\n\t\t\r\n\t\tcreationDate = new DateField();\r\n\t\tcreationDate.setStyleAttribute(\"direction\", \"ltr\");\r\n\t\tcreationDate.getPropertyEditor().setFormat(DateTimeFormat.getFormat(\"dd-MM-yyyy\"));\r\n\t\tcreationDate.setFieldLabel(orderConstants.creationDate());\r\n\t\tcreationDate.setName(PurchasingOrderModelBean.CREATION_DATE);\r\n\t\tadd(panel1, creationDate, fData);\r\n\t\t\r\n\t\tadd(panelPanel, panel1, hData);\r\n\t\t\r\n\t\tpanel1 = new FormPanel();\r\n\t\tpanel1.setHeaderVisible(false);\r\n\t\tpanel1.setLabelAlign(LabelAlign.TOP);\r\n\t\tpanel1.setBorders(false);\r\n\t\tpanel1.setBodyBorder(false);\r\n\t\tpanel1.setPadding(5);\r\n\t\tpanel1.setStyleAttribute(\"direction\", direction);\r\n\t\t\r\n\t\tstatus = new TextField<String>();\r\n\t\tstatus.setFieldLabel(orderConstants.state());\r\n\t\tstatus.setName(PurchasingOrderModelBean.PURCHASING_ORDER_STATUS);\r\n\t\tadd(panel1, status, fData);\r\n\t\t\r\n\t\tadd(panelPanel, panel1, hData);\r\n\t\t\r\n\t\tComponentsFactory.handleRtlOrder(panelPanel);\r\n\t\t\r\n\t\tadd(northPanel, panelPanel, new BorderLayoutData(LayoutRegion.NORTH, 50));\r\n\t\t\r\n\t\thBoxLayout = (HBoxLayout)ComponentsFactory.getHBoxLayout();\r\n\t\thBoxLayout.setHBoxLayoutAlign(HBoxLayoutAlign.TOP);\r\n//*\t\t\r\n//\t\tpack = (LocaleInfo.getCurrentLocale().isRTL())? BoxLayoutPack.END : BoxLayoutPack.START;\r\n//\t\thBoxLayout.setPack(pack);\r\n/*/\t\thBoxLayout.setPack(BoxLayoutPack.CENTER);\r\n//*/\r\n\t\thBoxLayout.setPadding(new Padding(0, 5, 0, 0));\r\n\t\tpanelPanel = new ContentPanel(hBoxLayout);\r\n\t\tpanelPanel.setHeading(orderConstants.orderData());\r\n\t\tpanelPanel.setHeaderVisible(false);\r\n\t\tpanelPanel.setBorders(false);\r\n\t\tpanelPanel.setBodyBorder(false);\r\n\t\t\r\n\t\tpanel1 = new FormPanel( );\r\n\t\tpanel1.setHeaderVisible(false);\r\n\t\tpanel1.setLabelAlign(LabelAlign.TOP);\r\n\t\tpanel1.setBorders(false);\r\n\t\tpanel1.setBodyBorder(false);\r\n\t\tpanel1.setPadding(5);\r\n\t\tpanel1.setStyleAttribute(\"direction\", direction);\r\n\t\t\t\r\n\t\temployeeNameField = new TextField<String>();\r\n\t\temployeeNameField.setFieldLabel(orderConstants.employeeName());\r\n//\t\temployeeNameField.setName(PurchasingOrderModelBean.SUPPLIER_NAME);\r\n\t\tadd(panel1, employeeNameField, fData);\r\n\t\t\r\n\t\tadd(panelPanel, panel1, hData);\r\n\t\t\r\n\t\tpanel1 = new FormPanel( );\r\n\t\tpanel1.setHeaderVisible(false);\r\n\t\tpanel1.setLabelAlign(LabelAlign.TOP);\r\n\t\tpanel1.setBorders(false);\r\n\t\tpanel1.setBodyBorder(false);\r\n\t\tpanel1.setPadding(5);\r\n\t\tpanel1.setStyleAttribute(\"direction\", direction);\r\n\t\t\t\r\n\t\tsupplier = new TextField<String>();\r\n\t\tsupplier.setFieldLabel(orderConstants.supplier());\r\n\t\tsupplier.setName(PurchasingOrderModelBean.SUPPLIER_NAME);\r\n\t\tadd(panel1, supplier, fData);\r\n\t\t\r\n\t\tadd(panelPanel, panel1, hData);\r\n\t\t\r\n\t\tpanel1 = new FormPanel( );\r\n\t\tpanel1.setHeaderVisible(false);\r\n\t\tpanel1.setLabelAlign(LabelAlign.TOP);\r\n\t\tpanel1.setBorders(false);\r\n\t\tpanel1.setBodyBorder(false);\r\n\t\tpanel1.setPadding(5);\r\n\t\tpanel1.setStyleAttribute(\"direction\", direction);\r\n\t\t\t\r\n\t\tsupplierCode = new TextField<String>();\r\n\t\tsupplierCode.setFieldLabel(orderConstants.supplierCode());\r\n\t\tsupplierCode.setName(PurchasingOrderModelBean.SUPPLIER_CODE);\r\n\t\tadd(panel1, supplierCode, fData);\r\n\t\t\r\n\t\tadd(panelPanel, panel1, hData);\r\n\t\t\r\n\t\tpanel1 = new FormPanel( );\r\n\t\tpanel1.setHeaderVisible(false);\r\n\t\tpanel1.setLabelAlign(LabelAlign.TOP);\r\n\t\tpanel1.setBorders(false);\r\n\t\tpanel1.setBodyBorder(false);\r\n\t\tpanel1.setPadding(5);\r\n\t\tpanel1.setStyleAttribute(\"direction\", direction);\r\n\t\t\r\n\t\tcountry = new TextField<String>();\r\n\t\tcountry.setFieldLabel(orderConstants.country());\r\n\t\tcountry.setName(PurchasingOrderModelBean.COUNTRY);\r\n\t\tadd(panel1, country, fData);\r\n\t\t\r\n\t\tadd(panelPanel, panel1, hData);\r\n\t\t\r\n\t\tpanel1 = new FormPanel( );\r\n\t\tpanel1.setHeaderVisible(false);\r\n\t\tpanel1.setLabelAlign(LabelAlign.TOP);\r\n\t\tpanel1.setBorders(false);\r\n\t\tpanel1.setBodyBorder(false);\r\n\t\tpanel1.setPadding(5);\r\n\t\tpanel1.setStyleAttribute(\"direction\", direction);\r\n\t\t\r\n\t\tcurrencyType = new TextField<String>();\r\n\t\tcurrencyType.setFieldLabel(orderConstants.currency());\r\n\t\tcurrencyType.setName(PurchasingOrderModelBean.CURRENCY_TYPE);\r\n\t\tadd(panel1, currencyType, fData);\r\n\t\t\r\n\t\tadd(panelPanel, panel1, hData);\r\n\t\t\r\n\t\tpanel1 = new FormPanel( );\r\n\t\tpanel1.setHeaderVisible(false);\r\n\t\tpanel1.setLabelAlign(LabelAlign.TOP);\r\n\t\tpanel1.setBorders(false);\r\n\t\tpanel1.setBodyBorder(false);\r\n\t\tpanel1.setPadding(5);\r\n\t\tpanel1.setStyleAttribute(\"direction\", direction);\r\n\t\t\r\n\t\tcurrencyPrice = new TextField<String>();\r\n\t\tcurrencyPrice.setFieldLabel(orderConstants.currencyPrice());\r\n\t\tcurrencyPrice.setName(PurchasingOrderModelBean.CURRENCY_PRICE);\r\n\t\tpanel1.add(currencyPrice, fData);\r\n\t\t\r\n\t\tadd(panelPanel, panel1, hData);\r\n\t\t\r\n\t\tComponentsFactory.handleRtlOrder(panelPanel);\r\n\t\t\r\n//\t\tComponentsFactory.handleRtlOrder(panelPanel);\r\n\t\t\r\n\t\tnorthPanel.add(panelPanel, new BorderLayoutData(LayoutRegion.SOUTH, 50));\r\n\t}", "title": "" }, { "docid": "0e5a8083baa618d06a92eb0aab8311f1", "score": "0.649555", "text": "private void initComponents() {\n\n bottomPanel = new javax.swing.JPanel();\n newMassageTextFieldLabel = new javax.swing.JLabel();\n space = new javax.swing.Box.Filler(new java.awt.Dimension(3, 0), new java.awt.Dimension(4, 0), new java.awt.Dimension(3, 32767));\n newMessageTextField = new org.jdesktop.swingx.JXTextField();\n\n setLayout(new java.awt.BorderLayout());\n\n bottomPanel.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 2, 2, 2));\n bottomPanel.setLayout(new javax.swing.BoxLayout(bottomPanel, javax.swing.BoxLayout.LINE_AXIS));\n\n newMassageTextFieldLabel.setLabelFor(newMessageTextField);\n org.openide.awt.Mnemonics.setLocalizedText(newMassageTextFieldLabel, org.openide.util.NbBundle.getMessage(NbLiveTopComponent.class, \"NbLiveTopComponent.newMassageTextFieldLabel.text\")); // NOI18N\n bottomPanel.add(newMassageTextFieldLabel);\n bottomPanel.add(space);\n\n newMessageTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n postMessageAction(evt);\n }\n });\n bottomPanel.add(newMessageTextField);\n\n add(bottomPanel, java.awt.BorderLayout.SOUTH);\n }", "title": "" }, { "docid": "9076354c7352cb487b0b355c01bcbc9f", "score": "0.64943796", "text": "private void addComponents() {\n\t\tsackConvert = new SBButton(\"convert.png\", \"convert.png\", \"Display one (1) sack\");\r\n\r\n\t\tedit = new SoyButton(\"Edit\");\r\n\t\tint fieldsCtr = 0, numFieldsCtr = 0, labelsCtr = 0;\r\n\r\n\t\tfor (int i = 0, x = 5, y = 0; i < num; i++, y += y3) {\r\n\r\n\t\t\tif (i == 3) {// 4\r\n\t\t\t\tx += 230;\r\n\t\t\t\ty = 0;\r\n\t\t\t}\r\n\r\n\t\t\tif (i == 7) {\r\n\t\t\t\tx += 230;\r\n\t\t\t\ty = 0;\r\n\t\t\t}\r\n\r\n\t\t\tif (i < 2) {\r\n\t\t\t\tfields.add(new EditFormField(100));\r\n\t\t\t\tlabels.add(new FormLabel(Tables.productFormLabel[i]));\r\n\r\n\t\t\t\tfields.get(fieldsCtr).setBounds(x, y1 + y, 170, 25);\r\n\t\t\t\tlabels.get(labelsCtr).setBounds(x, y2 + y, 170, 15);\r\n\r\n\t\t\t\tfieldsCtr++;\r\n\t\t\t\tlabelsCtr++;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (i >= 3 && i <= 7) {\r\n\t\t\t\tnumfields.add(new SimpleNumericField(10, \" \"));\r\n\t\t\t\tlabels.add(new FormLabel(Tables.productFormLabel[i]));\r\n\r\n\t\t\t\tnumfields.get(numFieldsCtr).setBounds(x, y1 + y, 170, 25);\r\n\t\t\t\tlabels.get(labelsCtr).setBounds(x, y2 + y, 170, 15);\r\n\r\n\t\t\t\tnumFieldsCtr++;\r\n\t\t\t\tlabelsCtr++;\r\n\r\n\t\t\t\tif (i == 5) {\r\n\t\t\t\t\tsackConvert.setBounds(x + 130, y2 + y - 3, 16, 16);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (i == 2)\r\n\t\t\t\tcbox1.setBounds(x, y1 + y, 170, 25);\r\n\t\t\tif (i == 9)\r\n\t\t\t\tcbox2.setBounds(x, y1 + y, 170, 25);\r\n\r\n\t\t\tif (i == 8) {\r\n\r\n\t\t\t\tcategory.setBounds(x, y1 + y, 170, 25);\r\n\r\n\t\t\t\tlabels.add(new FormLabel(Tables.productFormLabel[i]));\r\n\t\t\t\tlabels.get(labelsCtr).setBounds(x, y2 + y, 120, 15);\r\n\r\n\t\t\t\tlabelsCtr++;\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * if(i==4 || i == 9){ //x=0; //y+=70; y=0; x+=230; }\r\n\t\t\t */\r\n\t\t\t// 3,4,8,9,11\r\n\r\n\t\t}\r\n\r\n\t\tedit.setBounds(367, 348, 80, 30);\r\n\r\n\t\terror.setBounds(515, 325, 250, 22);\r\n\r\n\t\tfor (int i = 0; i < numfields.size(); i++)\r\n\t\t\tformPanel.add(numfields.get(i));\r\n\r\n\t\tfor (int i = 0; i < fields.size(); i++)\r\n\t\t\tformPanel.add(fields.get(i));\r\n\r\n\t\tfor (int i = 0; i < labels.size(); i++) {\r\n\t\t\tformPanel.add(labels.get(i));\r\n\t\t}\r\n\r\n\t\tedit.addMouseListener(new MouseAdapter() {\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\r\n\t\t\t\tif (isValidated() && hasValidInputs()) {\r\n\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\tproduct.setName(fields.get(0).getText());\r\n\t\t\t\t\t\tproduct.setDescription(fields.get(1).getText());\r\n\t\t\t\t\t\tproduct.setKilosPerSack(Double.parseDouble(numfields.get(0).getText()));\r\n\r\n\t\t\t\t\t\tproduct.setQuantity(Double.parseDouble(numfields.get(1).getText()), Double.parseDouble(numfields.get(2).getText()));\r\n\t\t\t\t\t\t// product.setQuantityOnDisplay(Double.parseDouble(numfields.get(3).getText()),\r\n\t\t\t\t\t\t// Double.parseDouble(numfields.get(4).getText()));\r\n\r\n\t\t\t\t\t\tdouble pricePerSack = Double.parseDouble(numfields.get(3).getText());\r\n\t\t\t\t\t\tdouble pricePerKilo = Double.parseDouble(numfields.get(4).getText());\r\n\r\n\t\t\t\t\t\t// check if price is the same with old\r\n\t\t\t\t\t\tif (pricePerSack != product.getCurrentPricePerSack() || pricePerKilo != product.getCurrentPricePerKilo()) {\r\n\t\t\t\t\t\t\tproduct.addPrice(new Price(product, new Date(), pricePerSack, pricePerKilo));\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tproduct.setAvailable(cbox1.isSelected());\r\n\t\t\t\t\t\tproduct.setCategory((Category) category.getSelectedItem());\r\n\r\n\t\t\t\t\t\tManager.getInstance().getProductManager().updateProduct(product);\r\n\r\n\t\t\t\t\t\tupdate();\r\n\t\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else\r\n\t\t\t\t\terror.setToolTip(msg);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\ttry {\r\n\t\t\tList<Category> cats = Manager.getInstance().getProductManager().getCategories();\r\n\r\n\t\t\tfor (Category cat : cats) {\r\n\t\t\t\tcategory.addItem(cat);\r\n\t\t\t}\r\n\t\t} catch (Exception e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tpriceHistory.setBounds(20, 12, 16, 16);\r\n\r\n\t\tpanel.add(priceHistory);\r\n\t\tscrollpane.setBounds(750, 365, 50, 35);\r\n\r\n\t\tadd(edit);\r\n\t\tadd(scrollpane);\r\n\r\n\t\t// formPanel.add(sackConvert);\r\n\t\tformPanel.add(cbox1);\r\n\t\tformPanel.add(cbox2);\r\n\t\tformPanel.add(category);\r\n\r\n\t\tadd(error);\r\n\r\n\t\tscrollPane.setViewportView(formPanel);\r\n\t\tscrollPane.setOpaque(false);\r\n\t\tscrollPane.getViewport().setOpaque(false);\r\n\t\tscrollPane.setBorder(BorderFactory.createEmptyBorder());\r\n\r\n\t\tscrollPane.setBounds(80, 20, 650, 310);\r\n\r\n\t\tadd(scrollPane);\r\n\t}", "title": "" }, { "docid": "8f5845244154f736c5bd8804d1e9fb9d", "score": "0.6484986", "text": "public void createControlPanel() {\r\n control_panel = new ControllerPanel(client, this);\r\n }", "title": "" }, { "docid": "db34e8ff814715bfcee4faea255da122", "score": "0.6477422", "text": "public WorkArra() {\r\n\t\tsetType(Type.UTILITY);\r\n\t\tsetTitle(\"\\u5DE5\\u4F5C\\u53D8\\u66F4\");\r\n\t\tsetBounds(600, 300, 230, 242);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tcontentPane.setLayout(new BorderLayout(0, 0));\r\n\t\tsetContentPane(contentPane);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tcontentPane.add(panel, BorderLayout.CENTER);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"\\u6559\\u5E08\\u7F16\\u53F7:\");\r\n\t\tlabel.setFont(new Font(\"微软雅黑\", Font.PLAIN, 16));\r\n\t\t\r\n\t\tJLabel label_1 = new JLabel(\"\\u5DE5\\u4F5C:\");\r\n\t\tlabel_1.setFont(new Font(\"微软雅黑\", Font.PLAIN, 16));\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setColumns(10);\r\n\t\tGroupLayout gl_panel = new GroupLayout(panel);\r\n\t\tgl_panel.setHorizontalGroup(\r\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\r\n\t\t\t\t\t.addContainerGap()\r\n\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.LEADING, false)\r\n\t\t\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addComponent(label)\r\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t\t.addComponent(textField, GroupLayout.PREFERRED_SIZE, 111, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 68, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t\t.addComponent(textField_1)))\r\n\t\t\t\t\t.addContainerGap(38, Short.MAX_VALUE))\r\n\t\t);\r\n\t\tgl_panel.setVerticalGroup(\r\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\r\n\t\t\t\t\t.addGap(19)\r\n\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)\r\n\t\t\t\t\t\t.addComponent(label)\r\n\t\t\t\t\t\t.addComponent(textField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\r\n\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)\r\n\t\t\t\t\t\t.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addComponent(textField_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t.addContainerGap(123, Short.MAX_VALUE))\r\n\t\t);\r\n\t\tpanel.setLayout(gl_panel);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tcontentPane.add(panel_1, BorderLayout.SOUTH);\r\n\t\t\r\n\t\tSubmit = new JButton(\"\\u63D0\\u4EA4\");\r\n\t\tSubmit.setFont(new Font(\"黑体\", Font.PLAIN, 18));\r\n\t\tpanel_1.add(Submit);\r\n\t\tSubmit.addActionListener(this);\r\n\t\tCancel = new JButton(\"\\u53D6\\u6D88\");\r\n\t\tCancel.setFont(new Font(\"黑体\", Font.PLAIN, 18));\r\n\t\tpanel_1.add(Cancel);\r\n\t\tCancel.addActionListener(this);\r\n\t}", "title": "" }, { "docid": "d0920467ec69e4c27828c2c4c545806e", "score": "0.6475115", "text": "public void inputPanel() {\r\n input = new JPanel();\r\n input.setBounds(20, 315, 700, 185);\r\n input.setLayout(null);\r\n input.setBorder(BorderFactory.createEtchedBorder());\r\n add(input);\r\n\r\n countryName = new JLabel(\"Country Name\");\r\n countryName.setFont(new Font(\"Dialog\", Font.BOLD, 12));\r\n totalDeaths = new JLabel(\"Total Deaths\");\r\n totalDeaths.setFont(new Font(\"Dialog\", Font.BOLD, 12));\r\n totalRecovered = new JLabel(\"Total Recovered\");\r\n totalRecovered.setFont(new Font(\"Dialog\", Font.BOLD, 12));\r\n activeCases = new JLabel(\"Active Cases\");\r\n activeCases.setFont(new Font(\"Dialog\", Font.BOLD, 12));\r\n seriousCritical = new JLabel(\"Serious Critical\");\r\n seriousCritical.setFont(new Font(\"Dialog\", Font.BOLD, 12));\r\n totalTests = new JLabel(\"Total Tests\");\r\n totalTests.setFont(new Font(\"Dialog\", Font.BOLD, 12));\r\n population = new JLabel(\"Population\");\r\n population.setFont(new Font(\"Dialog\", Font.BOLD, 12));\r\n\r\n cN = new JTextField();\r\n tD = new JTextField();\r\n tR = new JTextField();\r\n aC = new JTextField();\r\n sC = new JTextField();\r\n tT = new JTextField();\r\n pP = new JTextField();\r\n\r\n countryName.setBounds(20, 5, 150, 50);\r\n totalDeaths.setBounds(20, 45, 150, 50);\r\n totalRecovered.setBounds(20, 85, 150, 50);\r\n activeCases.setBounds(20, 125, 150, 50);\r\n seriousCritical.setBounds(370, 5, 150, 50);\r\n totalTests.setBounds(370, 45, 150, 50);\r\n population.setBounds(370, 85, 150, 50);\r\n\r\n cN.setBounds(170, 20, 150, 25);\r\n tD.setBounds(170, 60, 150, 25);\r\n tR.setBounds(170, 100, 150, 25);\r\n aC.setBounds(170, 140, 150, 25);\r\n sC.setBounds(520, 20, 150, 25);\r\n tT.setBounds(520, 60, 150, 25);\r\n pP.setBounds(520, 100, 150, 25);\r\n\r\n input.add(countryName);\r\n input.add(totalDeaths);\r\n input.add(totalRecovered);\r\n input.add(activeCases);\r\n input.add(seriousCritical);\r\n input.add(totalTests);\r\n input.add(population);\r\n\r\n input.add(cN);\r\n input.add(tD);\r\n input.add(tR);\r\n input.add(aC);\r\n input.add(sC);\r\n input.add(tT);\r\n input.add(pP);\r\n }", "title": "" }, { "docid": "d36fb097b1e06acc1f4daceac3fc9389", "score": "0.64711004", "text": "abstract protected JPanel createPanel();", "title": "" }, { "docid": "bd1fb6bcd2040b048ac5444d6c2ba69f", "score": "0.64565015", "text": "private void addPanel() \r\n {\r\n \tall = new JCheckBox(\"All trajs\");\r\n \tall.setVisible(true);\r\n \tall.addItemListener(new java.awt.event.ItemListener() {\r\n\t\t\tpublic void itemStateChanged(java.awt.event.ItemEvent e) {\r\n//\t\t\t\ticanvas.showAllTrajs(all.isSelected());\r\n\t\t\t\ticanvas.repaint();\r\n\t\t\t}\r\n\t\t});\r\n \tbutton = new Button(\"Show Trajs\");\r\n \tbutton.addActionListener(this);\r\n \tadd(button);\r\n add(all);\r\n pack();\r\n// Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\r\n// Point loc = getLocation();\r\n// Dimension size = getSize();\r\n// if (loc.y+size.height>screen.height)\r\n// getCanvas().zoomOut(0, 0);\r\n }", "title": "" }, { "docid": "434be905b9a317d22bddb9b3eb456dcc", "score": "0.6453828", "text": "@Override public JPanel createPanel(BuenoProjectCreationControl ctrl,BuenoProjectProps props)\n{\n NewActions cact = new NewActions(ctrl,props);\n\n SwingGridPanel pnl = new SwingGridPanel();\n pnl.beginLayout();\n JTextField srcfld = pnl.addFileField(\"Source Directory\",props.getFile(SRC_DIR),\n\t JFileChooser.DIRECTORIES_ONLY,cact,cact);\n props.put(SRC_FIELD,srcfld);\n pnl.addSeparator();\n\n return pnl;\n}", "title": "" }, { "docid": "fd59082fd7afd6ecb855d53a4f3f545c", "score": "0.6452063", "text": "private void buildEmptyPanel()\n\t{\n\t\tJLabel emptyLabel = new JLabel( \"\");\n\t\temptyLabel.setSize( new Dimension( ParamEditResources.PARAM_COLUMN_WIDTH * 2 , EMPTY_LABEL_HEIGHT ) );\n\n\t\tJLabel name = new JLabel();\n\t\tname.setText( \"\" );\n\t\tname.setPreferredSize( new Dimension( ParamEditResources.PARAM_COLUMN_WIDTH * 2 - NODE_WIDTH, NAME_LABEL_HEIGHT ));\n\t\tname.setFont( GUIResources.BASIC_FONT_12 );\n\t\tname.setHorizontalAlignment( SwingConstants.CENTER );\n\n\t\tJPanel namePanel = new JPanel();\n\t\tnamePanel.setLayout(new BoxLayout( namePanel, BoxLayout.X_AXIS));\n\t\tnamePanel.add( Box.createRigidArea( new Dimension( 5, 0 ) ) );\n\t\tnamePanel.add( Box.createHorizontalGlue() );\n\t\tnamePanel.add( name );\n\t\tnamePanel.add( Box.createHorizontalGlue() );\n\n\t\temptyPanel = new JPanel();\n\t\temptyPanel.add( Box.createRigidArea( new Dimension( 0, 5 ) ) );\n\t\temptyPanel.add( namePanel );\n\t\temptyPanel.add( Box.createRigidArea( new Dimension( 0, 5 ) ) );\n\t\temptyPanel.add( emptyLabel );\n\t}", "title": "" }, { "docid": "39ab806a16e573b12f3aeb38e7215720", "score": "0.6448027", "text": "public AddNewRecipePanel() {\n initComponents();\n }", "title": "" }, { "docid": "0be433c2f65dacfe62707d7bcdb88b6d", "score": "0.6439072", "text": "private FlowPanel buildDescriptionPanel()\n {\n Label descLabel1 = new Label(\"A variety of help and support documentation can be found on the \");\n Anchor anchor = new Anchor(\"Eureka Streams\", getEurekaStreamsUrl(), \"_blank\");\n Label descLabel2 = new Label(\"website.\");\n \n descLabel1.addStyleName(\"header-description-component\");\n anchor.addStyleName(\"header-description-component\");\n descLabel2.addStyleName(\"header-description-component\");\n \n FlowPanel panel = new FlowPanel();\n panel.add(descLabel1);\n panel.add(anchor);\n panel.add(descLabel2);\n \n panel.addStyleName(\"documentation-bullet\");\n return panel;\n }", "title": "" }, { "docid": "369b9c690009fe81c109dc0801886efb", "score": "0.6434362", "text": "protected void makeWidgets() {\n String locText;\n GridBagLayout gridbag = new GridBagLayout();\n GridBagConstraints c = new GridBagConstraints();\n\n setLayout(gridbag);\n locText = i18n.get(CoordPanel.class, \"border\", \"Decimal Degrees\");\n setBorder(new TitledBorder(new EtchedBorder(), locText));\n\n locText = i18n.get(CoordPanel.class, \"latlabel\", \"Latitude: \");\n JLabel latlabel = new JLabel(locText);\n c.gridx = 0;\n c.gridy = 0;\n gridbag.setConstraints(latlabel, c);\n add(latlabel);\n\n latitude = new JTextField(10);\n c.gridx = 1;\n c.gridy = 0;\n gridbag.setConstraints(latitude, c);\n add(latitude);\n\n locText = i18n.get(CoordPanel.class, \"lonlabel\", \"Longitude: \");\n JLabel lonlabel = new JLabel(locText);\n c.gridx = 0;\n c.gridy = 1;\n gridbag.setConstraints(lonlabel, c);\n add(lonlabel);\n\n longitude = new JTextField(10);\n c.gridx = 1;\n c.gridy = 1;\n gridbag.setConstraints(longitude, c);\n add(longitude);\n }", "title": "" }, { "docid": "0404d85e01a73e872cffe72ddb052d3b", "score": "0.6424602", "text": "private void initNewRecordPropPanelControls()\n {\n // set layout\n setLayout(new GridBagLayout());\n GridBagConstraints gbc = new GridBagConstraints();\n\n // Name\n WslLabel lbl = new WslLabel(TextOrSubmenuPropertiesPanel.LABEL_NAME.getText());\n gbc.anchor = GridBagConstraints.NORTHWEST;\n gbc.insets.left = GuiConst.DEFAULT_INSET;\n gbc.insets.top = GuiConst.DEFAULT_INSET;\n gbc.anchor = GridBagConstraints.NORTHWEST;\n gbc.weightx = 0.2;\n gbc.gridx = 0;\n gbc.gridy = 0;\n add(lbl, gbc);\n gbc.gridx = 1;\n gbc.weightx = 0.8;\n gbc.insets.right = GuiConst.DEFAULT_INSET;\n add(_txtName, gbc);\n addMandatory(TextOrSubmenuPropertiesPanel.MANDATORY_NAME.getText(), _txtName);\n\n // Description\n lbl = new WslLabel(TextOrSubmenuPropertiesPanel.LABEL_DESCRIPTION.getText());\n gbc.insets.right = 0;\n gbc.gridx = 0;\n gbc.gridy = 1;\n add(lbl, gbc);\n gbc.gridx = 1;\n gbc.insets.right = GuiConst.DEFAULT_INSET;\n add(_txtDescription, gbc);\n\n // DataStore\n lbl = new WslLabel(ActionPropertiesPanel.LABEL_DATASTORE.getText());\n gbc.insets.right = 0;\n gbc.gridx = 0;\n gbc.gridy = 2;\n add(lbl, gbc);\n gbc.gridx = 1;\n gbc.insets.right = GuiConst.DEFAULT_INSET;\n add(_cmbDataStore, gbc);\n _cmbDataStore.addActionListener(this);\n\n // DataView\n lbl = new WslLabel(ActionPropertiesPanel.LABEL_DATAVIEW.getText());\n gbc.insets.right = 0;\n gbc.gridx = 0;\n gbc.gridy = 3;\n add(lbl, gbc);\n gbc.gridx = 1;\n gbc.insets.right = GuiConst.DEFAULT_INSET;\n gbc.insets.bottom = GuiConst.DEFAULT_INSET;\n gbc.weighty = 1;\n gbc.gridheight = GridBagConstraints.REMAINDER;\n add(_cmbDataView, gbc);\n _cmbDataView.addActionListener(this);\n // note, special handling for combo mandatories in hasData\n addMandatory(MANDATORY_DATAVIEW.getText(), _cmbDataView);\n }", "title": "" }, { "docid": "f807c6fe5335650af97d3e3350267317", "score": "0.642282", "text": "private void addPanels()\r\n {\r\n add(new StartPanel(), \"Start\");\r\n add(new MathOperationsPanel(), \"MathOperations\");\r\n }", "title": "" }, { "docid": "f4a23699d089006d3d5c08529bb71086", "score": "0.6422477", "text": "public static void buildLayout() {\n\t\tusernameField = new TextField(\"Username\");\n\t\tusernameField.setValue(\"anhmnguy@cisco.fts.ts4svc\");\n\t\tpasswordField = new PasswordField(\"Password\");\n\t\tloginButton = new Button(\"Login\");\n\t\tLabel message = new Label (\"Last Step: Please sign into your destination environment.\");\n\t\tmessage.addStyleName(\"label\");\n\t\taddEnterKeyActionToPasswordField(passwordField); \n\t\t\n\t\tlayout.addStyleName(\"layoutCenter\");\n\t\tlayout.addComponent(message);\n\t\tlayout.addComponent(usernameField);\n\t\tlayout.addComponent(passwordField);\n\t\tlayout.addComponent(loginButton);\n\n\t}", "title": "" }, { "docid": "b717b5fecd7b489a46fd7a1c6e0873eb", "score": "0.6415172", "text": "public DVDMaintPanelAddPane () {\r\n\t\t{\tthis.setLayout(new GridLayout(2,2));\r\n\r\n\t\t\tmediaCatlog = new Catalogue();\r\n\t\t\tmediaList = mediaCatlog.getMediaList();\r\n\r\n\t\t\t//add first\r\n\t\t\taddDVDNameJLabel = new JLabel(\"DVD Name\");\r\n\t\t\taddDVDNameJText = new JTextField(15);\r\n\r\n\t\t\taddDVDAlbumArtistLabel = new JLabel(\"DVD Artist\");\r\n\t\t\taddDVDDirectorJText = new JTextField(15);\r\n\r\n\t\t\taddDVDGenreLabel = new JLabel(\"Genre\");\r\n\t\t\taddDVDGenreCombo = new JComboBox<String>();\r\n\t\t\tloadComboValues(addDVDGenreCombo);\r\n\t\t\t\r\n\t\t\taddDVDAlbumCopies = new JLabel(\"Copies Owned\");;\r\n\t\t\taddDVDCopiesJText = new JTextField(15);\r\n\t\t\t\r\n\t\t\taddDVDDrurationJText= new JTextField(15);\r\n\t\t\taddDVDDurationLabel= new JLabel(\"Duration\");\r\n\t\r\n\t\t\ttopLeftOuter = new JPanel(new GridLayout(1, 1,10,10));\r\n\t\t\ttopLeftGrid = new JPanel(new GridLayout(6, 1, 20, 20));\r\n\t\t\t\r\n\t\t\ttopLeftGrid.add(addDVDNameJLabel);\r\n\t\t\ttopLeftGrid.add(addDVDNameJText);\r\n\t\t\ttopLeftGrid.add(addDVDAlbumArtistLabel);\r\n\t\t\ttopLeftGrid.add(addDVDDirectorJText);\r\n\t\t\ttopLeftGrid.add(addDVDDurationLabel);\r\n\t\t\ttopLeftGrid.add(addDVDDrurationJText);\r\n\t\t\ttopLeftGrid.add(addDVDGenreLabel);\r\n\t\t\ttopLeftGrid.add(addDVDGenreCombo);\r\n\t\t\ttopLeftGrid.add(addDVDAlbumCopies);\r\n\t\t\ttopLeftGrid.add(addDVDCopiesJText);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttopLeftOuter.add(topLeftGrid);\r\n\t\t\ttopLeftOuter.add(new JLabel(\" \"));\r\n\t\t\tthis.add(add(topLeftOuter));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\tBorder x;\r\n\t\t\taddCompForBorder\r\n\t\t\t*/\r\n\t\t\ttopRightBorder = new JPanel(new BorderLayout());\r\n\t\t\t\r\n\t\t\ttopRight1 = new JPanel(new FlowLayout(FlowLayout.LEFT));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttopRight2 = new JPanel(new GridLayout(3, 2, 0, 20 ));\r\n\t\t\ttopRightInsert= new JPanel(new FlowLayout(FlowLayout.CENTER));\r\n\t\t\ttopRightcenterMainPanel= new JPanel(new GridLayout(2,1));\r\n\t\t\ttopRightcenterMainPanel.add(topRight1);\r\n\t\t\ttopRightcenterMainPanel.add(topRight2);\r\n\t\t\ttopRightBorder.add(topRightInsert, BorderLayout.SOUTH);\r\n\t\t\ttopRightBorder.add(topRightcenterMainPanel, BorderLayout.CENTER);\r\n\t\t\t//centerMainPanel.add(topRightBorder);\r\n\t\t\tthis.add(topRightBorder);\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//\taddJListTrack.addListSelectionListener(listener);\r\n\t\t\taddJButtonAddDVD = new JButton(\"Add \");\r\n\t\t\taddJButtonAddDVD.addActionListener(this);\r\n\r\n\t\t\tbottomLeftBorder = new JPanel(new BorderLayout());\r\n\t\t\tbottomLeftBorder.add(Styles.bufferButton(addJButtonAddDVD), BorderLayout.NORTH);\r\n\t\t\t\r\n\t\t\tthis.add(bottomLeftBorder);\r\n\t\t\t\r\n\t\t\tbottomRight = new JPanel(new GridLayout(1, 1));\r\n\t\t\t//bottomRight.add();\r\n\t\t\r\n\r\n\t\t\tthis.add(new JPanel(new FlowLayout()).add(bottomRight));\r\n\t\r\n\t\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "title": "" }, { "docid": "3e526bac953fdeb9cad53544ad4d7b1c", "score": "0.6406619", "text": "private void $$$setupUI$$$() {\r\n panel = new JPanel();\r\n panel.setLayout(new GridLayoutManager(5, 3, new Insets(0, 0, 0, 0), -1, -1));\r\n panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10), null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$(null, -1, -1, panel.getFont()), null));\r\n b_start_host = new JButton();\r\n b_start_host.setIcon(new ImageIcon(getClass().getResource(\"/server.png\")));\r\n b_start_host.setText(\"Host Game\");\r\n b_start_host.setToolTipText(\"Host a game\");\r\n panel.add(b_start_host, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n b_start_join = new JButton();\r\n b_start_join.setIcon(new ImageIcon(getClass().getResource(\"/link.png\")));\r\n b_start_join.setText(\"Join Game\");\r\n b_start_join.setToolTipText(\"Join a game\");\r\n panel.add(b_start_join, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n b_settings = new JButton();\r\n b_settings.setIcon(new ImageIcon(getClass().getResource(\"/settings.png\")));\r\n b_settings.setText(\"Settings\");\r\n b_settings.setToolTipText(\"Open the settings\");\r\n panel.add(b_settings, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n b_exit = new JButton();\r\n b_exit.setIcon(new ImageIcon(getClass().getResource(\"/logout.png\")));\r\n b_exit.setText(\"Exit\");\r\n b_exit.setToolTipText(\"Exit the application\");\r\n panel.add(b_exit, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer1 = new Spacer();\r\n panel.add(spacer1, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final Spacer spacer2 = new Spacer();\r\n panel.add(spacer2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n gameName = new JLabel();\r\n gameName.setIcon(new ImageIcon(getClass().getResource(\"/ship.png\")));\r\n gameName.setText(\"BattleShip game v.0.0.1\");\r\n panel.add(gameName, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n }", "title": "" }, { "docid": "42756312ce496201c75da45c17f7c860", "score": "0.64023143", "text": "private void setTopPanelComponents(){\n\n\t\ttopPanel = new JPanel();\n\t\ttopPanel.setBackground(Color.WHITE);\n\t\tpanelBeforeThisPanel.add(topPanel, BorderLayout.NORTH);\n\t\ttopPanel.setPreferredSize(new Dimension(0, 70));\n\t\ttopPanel.setLayout(null);\n\t\t\n\t\tJLabel paySlipLabel = new JLabel(\"BILECO PAYSLIP \");\n\t\tpaySlipLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tpaySlipLabel.setBounds(211, 4, 130, 14);\n\t\ttopPanel.add(paySlipLabel);\n\t\t{\n\t\t\tnameLabel = new JLabel(\"Name: \");\n\t\t\tnameLabel.setBounds(10, 24, 46, 14);\n\t\t\ttopPanel.add(nameLabel);\n\t\t}\n\t\t\n\t\tnameTextField = new JTextField();\n\t\tnameTextField.setText(\"Paul Alvin V. Sacedor\\r\\n\");\n\t\tnameTextField.setEditable(false);\n\t\tnameTextField.setBounds(52, 21, 149, 20);\n//\t\tnameTextField.setFont(font);\n\t\ttopPanel.add(nameTextField);\n\t\tnameTextField.setColumns(10);\n\t\t\n\t\tJLabel periodLabel = new JLabel(\"Period:\");\n\t\tperiodLabel.setBounds(340, 21, 74, 14);\n\t\ttopPanel.add(periodLabel);\n\t\t\n\t\tperiodTextField = new JTextField();\n\t\tperiodTextField.setText(\"March 1-15, 2017\");\n\t\tperiodTextField.setEditable(false);\n\t\tperiodTextField.setColumns(10);\n\t\tperiodTextField.setBounds(415, 18, 123, 20);\n//\t\tperiodTextField.setFont(font);\n\t\ttopPanel.add(periodTextField);\n\t\t\n\t\tJLabel idLabel = new JLabel(\"ID: \");\n\t\tidLabel.setBounds(10, 52, 46, 14);\n\t\ttopPanel.add(idLabel);\n\t\t\n\t\tidTextField = new JTextField();\n\t\tidTextField.setText(\"2018-PVS-0001\");\n\t\tidTextField.setEditable(false);\n\t\tidTextField.setColumns(10);\n\t\tidTextField.setBounds(52, 49, 149, 20);\n//\t\tidTextField.setFont(font);\n\t\ttopPanel.add(idTextField);\n\t\t\n\t\tJLabel departmentLabel = new JLabel(\"Department:\");\n\t\tdepartmentLabel.setBounds(340, 49, 74, 14);\n\t\ttopPanel.add(departmentLabel);\n\t\t\n\t\tdepartmentTextField = new JTextField();\n\t\tdepartmentTextField.setText(\"OGMMMM\");\n\t\tdepartmentTextField.setEditable(false);\n\t\tdepartmentTextField.setColumns(10);\n\t\tdepartmentTextField.setBounds(415, 46, 123, 20);\n//\t\tdepartmentTextField.setFont(font);\n\t\ttopPanel.add(departmentTextField);\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "21ab1338bb5aa15b19955574453e60e3", "score": "0.63987106", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString str = text.getText();\n\t\t\t\tJButton test = new JButton(str);\n\t\t\t\tpanel2.add(test);\n\t\t\t\tpanel2.revalidate();\n\t\t\t}", "title": "" }, { "docid": "7b3183483227d11c6677378cc9c99856", "score": "0.63946426", "text": "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n lblTitle = new JLabel();\n lblTitle.setText(\"Label\");\n mainPanel.add(lblTitle, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n txbData = new JFormattedTextField();\n mainPanel.add(txbData, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n btnDone = new JButton();\n btnDone.setText(\"Button\");\n mainPanel.add(btnDone, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "title": "" }, { "docid": "83f52240850fe46222a97986ff8d3a96", "score": "0.6394391", "text": "private void initComponents() {\n pnlCreate = new javax.swing.JPanel();\n lblProbeKey = new javax.swing.JLabel();\n txtProbeKey = new javax.swing.JTextField();\n checkboxAutoAssign = new javax.swing.JCheckBox();\n lblProbeName = new javax.swing.JLabel();\n txtProbeName = new javax.swing.JTextField();\n btnAdd = new javax.swing.JButton();\n headerPanelCreate = new org.jax.mgi.mtb.gui.MXHeaderPanel();\n lblCounterstain = new javax.swing.JLabel();\n lblProbeType = new javax.swing.JLabel();\n lblSupplierAddress = new javax.swing.JLabel();\n lblTarget = new javax.swing.JLabel();\n txtTarget = new javax.swing.JTextField();\n lblURL = new javax.swing.JLabel();\n lblSupplierName = new javax.swing.JLabel();\n lblSupplierURL = new javax.swing.JLabel();\n txtURL = new javax.swing.JTextField();\n txtSupplierName = new javax.swing.JTextField();\n txtSupplierURL = new javax.swing.JTextField();\n txtCounterstain = new javax.swing.JTextField();\n txtProbeType = new javax.swing.JTextField();\n txtSupplierAddress = new javax.swing.JTextField();\n lblNote = new javax.swing.JLabel();\n jspNote = new javax.swing.JScrollPane();\n txtareaNote = new javax.swing.JTextArea();\n btnSave = new javax.swing.JButton();\n btnCancel = new javax.swing.JButton();\n pnlEdit = new javax.swing.JPanel();\n jspData = new javax.swing.JScrollPane();\n tblData = new javax.swing.JTable();\n headerPanelEdit = new org.jax.mgi.mtb.gui.MXHeaderPanel();\n\n pnlCreate.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n lblProbeKey.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/jax/mgi/mtb/ei/resources/img/Key16.png\")));\n lblProbeKey.setText(\"Probe Key\");\n\n txtProbeKey.setColumns(10);\n txtProbeKey.setEditable(false);\n\n checkboxAutoAssign.setSelected(true);\n checkboxAutoAssign.setText(\"Auto Assign\");\n checkboxAutoAssign.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n checkboxAutoAssign.setMargin(new java.awt.Insets(0, 0, 0, 0));\n checkboxAutoAssign.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n checkboxAutoAssignActionPerformed(evt);\n }\n });\n\n lblProbeName.setText(\"Probe Name\");\n\n btnAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/jax/mgi/mtb/ei/resources/img/Add16.png\")));\n btnAdd.setText(\"Add\");\n btnAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAddActionPerformed(evt);\n }\n });\n\n headerPanelCreate.setDrawSeparatorUnderneath(true);\n headerPanelCreate.setText(\"Create Probe\");\n\n lblCounterstain.setText(\"Counterstain\");\n\n lblProbeType.setText(\"Type\");\n\n lblSupplierAddress.setText(\"Supplier Address\");\n\n lblTarget.setText(\"Target\");\n\n lblURL.setText(\"URL\");\n\n lblSupplierName.setText(\"Supplier Name\");\n\n lblSupplierURL.setText(\"Supplier URL\");\n\n lblNote.setText(\"Note\");\n\n txtareaNote.setColumns(20);\n txtareaNote.setRows(3);\n jspNote.setViewportView(txtareaNote);\n\n org.jdesktop.layout.GroupLayout pnlCreateLayout = new org.jdesktop.layout.GroupLayout(pnlCreate);\n pnlCreate.setLayout(pnlCreateLayout);\n pnlCreateLayout.setHorizontalGroup(\n pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(headerPanelCreate, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1007, Short.MAX_VALUE)\n .add(pnlCreateLayout.createSequentialGroup()\n .addContainerGap()\n .add(pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(lblNote)\n .add(lblSupplierAddress)\n .add(lblProbeType)\n .add(lblCounterstain)\n .add(lblProbeKey)\n .add(lblProbeName))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(pnlCreateLayout.createSequentialGroup()\n .add(pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\n .add(txtSupplierAddress)\n .add(txtProbeType)\n .add(txtCounterstain)\n .add(org.jdesktop.layout.GroupLayout.LEADING, pnlCreateLayout.createSequentialGroup()\n .add(txtProbeKey, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(checkboxAutoAssign)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(btnAdd))\n .add(org.jdesktop.layout.GroupLayout.LEADING, txtProbeName))\n .add(94, 94, 94)\n .add(pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, lblTarget)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, lblURL)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, lblSupplierName)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, lblSupplierURL))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(txtSupplierURL, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 333, Short.MAX_VALUE)\n .add(txtSupplierName)\n .add(txtURL)\n .add(txtTarget)))\n .add(jspNote))\n .addContainerGap(15, Short.MAX_VALUE))\n );\n\n pnlCreateLayout.linkSize(new java.awt.Component[] {txtCounterstain, txtProbeName, txtProbeType, txtSupplierAddress, txtSupplierName, txtSupplierURL, txtTarget, txtURL}, org.jdesktop.layout.GroupLayout.HORIZONTAL);\n\n pnlCreateLayout.setVerticalGroup(\n pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(pnlCreateLayout.createSequentialGroup()\n .add(headerPanelCreate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(8, 8, 8)\n .add(pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(lblProbeKey)\n .add(txtProbeKey, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(checkboxAutoAssign)\n .add(btnAdd))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(lblProbeName)\n .add(lblTarget)\n .add(txtProbeName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(txtTarget, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(lblCounterstain)\n .add(lblURL)\n .add(txtCounterstain, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(txtURL, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(lblProbeType)\n .add(lblSupplierName)\n .add(txtProbeType, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(txtSupplierName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(lblSupplierAddress)\n .add(lblSupplierURL)\n .add(txtSupplierAddress, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(txtSupplierURL, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(pnlCreateLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(lblNote)\n .add(jspNote, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n btnSave.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/jax/mgi/mtb/ei/resources/img/Save16.png\")));\n btnSave.setText(\"Save\");\n btnSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSaveActionPerformed(evt);\n }\n });\n\n btnCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/jax/mgi/mtb/ei/resources/img/Close16.png\")));\n btnCancel.setText(\"Cancel\");\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelActionPerformed(evt);\n }\n });\n\n pnlEdit.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n tblData.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n jspData.setViewportView(tblData);\n\n headerPanelEdit.setDrawSeparatorUnderneath(true);\n headerPanelEdit.setText(\"Edit Probes\");\n\n org.jdesktop.layout.GroupLayout pnlEditLayout = new org.jdesktop.layout.GroupLayout(pnlEdit);\n pnlEdit.setLayout(pnlEditLayout);\n pnlEditLayout.setHorizontalGroup(\n pnlEditLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(pnlEditLayout.createSequentialGroup()\n .add(10, 10, 10)\n .add(jspData, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 987, Short.MAX_VALUE)\n .add(10, 10, 10))\n .add(headerPanelEdit, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1007, Short.MAX_VALUE)\n );\n pnlEditLayout.setVerticalGroup(\n pnlEditLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(pnlEditLayout.createSequentialGroup()\n .add(headerPanelEdit, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(8, 8, 8)\n .add(jspData, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, pnlEdit, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, pnlCreate, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(layout.createSequentialGroup()\n .add(btnSave)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(btnCancel)))\n .addContainerGap())\n );\n\n layout.linkSize(new java.awt.Component[] {btnCancel, btnSave}, org.jdesktop.layout.GroupLayout.HORIZONTAL);\n\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .add(pnlCreate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(pnlEdit, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(btnCancel)\n .add(btnSave))\n .addContainerGap())\n );\n }", "title": "" }, { "docid": "fd738f2baf4a4cd203e4c0b645b4265d", "score": "0.6391227", "text": "public managerPanel() {\n initComponents();\n employeeReportDisplay.setEditable(false);employeeReportDisplay.setLineWrap(true);\n foodReportDisplay.setEditable(false);foodReportDisplay.setLineWrap(true);\n positionChoice.setEditable(false);addCategory.setEditable(false);editCategory.setEditable(false);\n addEmployeeInfo.setEditable(false);removeEmployeeInfo.setEditable(false);\n addEmployeeInfo.setLineWrap(true);removeEmployeeInfo.setLineWrap(true);\n addFoodInfo.setEditable(false);editFoodInfo.setEditable(false);removeFoodInfo.setEditable(false);\n addFoodInfo.setLineWrap(true); editFoodInfo.setLineWrap(true); removeFoodInfo.setLineWrap(true);\n editFoodDescription.setLineWrap(true);addFoodDescription.setLineWrap(true);\n editCategory.setEnabled(false); editFoodPrice.setEnabled(false); editFoodDescription.setEnabled(false);\n editTimeToCook.setEnabled(false);availability.setEnabled(false);\n }", "title": "" }, { "docid": "35860b3d6a1815181eb4fc34c4319e6f", "score": "0.6389804", "text": "private void creacionPanel() {\r\n //inicializa el panel\r\n panel = new JPanel();\r\n //Desactiva los layouts predeterminados del pnale\r\n panel.setLayout(null);\r\n //Se agrega el panel al Jframe\r\n panel.setBackground(Color.lightGray);\r\n this.getContentPane().add(panel);\r\n //Se crea la etiqueta\r\n JLabel label = new JLabel(\" ¡BIENVENIDO! \");\r\n //Se establece la posicion en el eje X y Y, se estable el tamaño del ancho y alto\r\n label.setBounds(650, 10, 100, 10);\r\n //se agrega la etiqueta al panel\r\n panel.add(label);\r\n }", "title": "" }, { "docid": "ff51039a8d739f65a759a0e30b0fb89a", "score": "0.63893247", "text": "public void addfriendpanel(){\n\t\t\n\t\tfriendarea = new JTextArea();\n\t\tfriendarea.setOpaque(false);\n\t\tfriendarea.setFont(model.blacknormal);\n\t\tfriendarea.setForeground(Color.white);\n\t\tfriendscroll = new JScrollPane(friendarea);\n\t\tfriendscroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tfriendscroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tfriendscroll.setOpaque(false);\n\t\tfriendscroll.setBorder(BorderFactory.createEmptyBorder());\n\t\tfriendscroll.getViewport().setOpaque(false);\n\t\tfriendscroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\n\t\t//Label\n\t\tfriendbar = new JLabel(\"FRIEND LIST\");\n\t friendbar.setFont(model.sidebold);\n\t friendbar.setForeground(Color.white);\n\t addfriendbutton = new JButton(\"+\");\n\t addfriendbutton.setFont(model.blackbold);\n\t addfriendbutton.setForeground(Color.GREEN);\n\t addfriendbutton.setBorder(BorderFactory.createEmptyBorder());\n\t addfriendbutton.setContentAreaFilled(false);\n\t removefriendbutton = new JButton(\"-\");\n\t removefriendbutton.setFont(model.blackbold);\n\t removefriendbutton.setForeground(Color.RED);\n\t removefriendbutton.setBorder(BorderFactory.createEmptyBorder());\n\t removefriendbutton.setContentAreaFilled(false);\n\t blockbutton = new JButton(\"Block List\");\n\t blockbutton.setFont(model.blacksmall);\n\t blockbutton.setForeground(Color.white);\n\t blockbutton.setBorder(BorderFactory.createEmptyBorder());\n\t blockbutton.setContentAreaFilled(false);\n\t invitesbutton = new JButton(\"Invites\");\n\t invitesbutton.setFont(model.blacksmall);\n\t invitesbutton.setForeground(Color.white);\n\t invitesbutton.setBorder(BorderFactory.createEmptyBorder());\n\t invitesbutton.setContentAreaFilled(false);\n\t \n\t JPanel friendbuttons = new JPanel(new MigLayout());\n\t friendbuttons.setOpaque(false);\n\t friendbuttons.add(friendbar, \"gap right\");\n\t friendbuttons.add(addfriendbutton,\"gap left 10px\");\n\t friendbuttons.add(removefriendbutton,\"gap left 10px\");\n\t friendbuttons.add(invitesbutton,\"gap left 50px\");\n\t friendbuttons.add(blockbutton,\"gap left 20px\");\n\t \n\t\t//Add Elements to Panel\n\t friendpanel = new ImagePanel(new ImageIcon(\"assets/images/Blue_Box.png\").getImage());\n friendpanel.setLayout(new MigLayout());\n\t\tfriendpanel.setOpaque(false);\n\t\tfriendpanel.add(friendbuttons,\"wrap,gap top -20px\");\n friendpanel.add(friendscroll, \"width :400px, height :800px\"); \n\t\t\n\t}", "title": "" }, { "docid": "ccbc43cae4e46918c28bd0ec92bcb2ab", "score": "0.6384268", "text": "private void setUpPanel() {\n\n panel = new JPanel();\n panel.setLayout(new GridLayout(1, 1, 8, 8));\n\n textArea = new JTextArea();\n textArea.setLineWrap(true);\n textArea.setWrapStyleWord(true);\n textArea.setBorder(BorderFactory.createBevelBorder(1));\n textArea.setForeground(Color.BLACK);\n textArea.setFont(new Font(\"Source Code Pro\", Font.PLAIN, 14));\n textArea.setEditable(false);\n\n for (String data : metadataParsed) {\n\n textArea.append(data + \"\\n\");\n }\n\n scrollPane = new JScrollPane(textArea);\n scrollPane.setPreferredSize(new Dimension(500, 300));\n scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\n panel.add(scrollPane);\n this.add(panel);\n }", "title": "" }, { "docid": "818fbfaf914c60a4a84e6994164b4777", "score": "0.63812035", "text": "public void buttonPanel() {\r\n add = new JButton(\"Save\");\r\n reset = new JButton(\"Reset\");\r\n back = new JButton(\"Back\");\r\n add.setFont(new Font(\"Dialog\", Font.BOLD, 14));\r\n reset.setFont(new Font(\"Dialog\", Font.BOLD, 14));\r\n back.setFont(new Font(\"Dialog\", Font.BOLD, 14));\r\n\r\n button = new JPanel();\r\n button.setBounds(20, 525, 700, 75);\r\n button.setLayout(null);\r\n button.setBorder(BorderFactory.createEtchedBorder());\r\n add(button);\r\n\r\n add.setBounds(100, 20, 100, 30);\r\n reset.setBounds(300, 20, 100, 30);\r\n back.setBounds(500, 20, 100, 30);\r\n\r\n button.add(add);\r\n button.add(reset);\r\n button.add(back);\r\n\r\n add.addActionListener(this);\r\n reset.addActionListener(this);\r\n back.addActionListener(this);\r\n }", "title": "" }, { "docid": "3212adcf292dfa456b82508ffb8a49d4", "score": "0.6378265", "text": "public BNParameterPanel(String [] fieldNames) {\r\n\t\t\t//Conversion File Panel\r\n\t\t\tJPanel convPanel = new JPanel(new GridBagLayout());\r\n\t\t\tconvPanel.setBackground(Color.white);\r\n\t\t\tconvPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), \"Annotation Conversion File\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, font, Color.black));\r\n\t\t\tuseAnnBox = new JCheckBox(\"use annotation converter\", false);\r\n\t\t\tuseAnnBox.setActionCommand(\"use-converter-command\");\r\n\t\t\tuseAnnBox.addActionListener(listener);\r\n\t\t\tuseAnnBox.setBackground(Color.white);\r\n\t\t\tuseAnnBox.setFocusPainted(false);\r\n\t\t\tuseAnnBox.setEnabled(false);\r\n\t\t\tconverterFileField = new JTextField(30);\r\n\t\t\tconverterFileField.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.lightGray, Color.gray));\r\n\t\t\tconverterFileField.setEnabled(false);\r\n\t\t\tconverterFileField.setBackground(Color.lightGray);\r\n\t\t\tbrowserButton = new JButton(\"File Browser\");\r\n\t\t\tbrowserButton.setActionCommand(\"converter-file-browser-command\");\r\n\t\t\tbrowserButton.setFocusPainted(false);\r\n\t\t\tbrowserButton.setPreferredSize(new Dimension(150, 25));\r\n\t\t\tbrowserButton.setSize(150, 25);\r\n\t\t\tbrowserButton.addActionListener(listener);\r\n\t\t\tbrowserButton.setEnabled(false);\r\n\t\t\tJLabel converterNotAvailableLabel = new JLabel(\"Annotation conversion is not yet available\");\r\n\t\t\tconverterNotAvailableLabel.setForeground(Color.red);\r\n\t\t\tfileLabel = new JLabel(\"File :\");\r\n\t\t\tfileLabel.setEnabled(false);\r\n\t\t\tconvPanel.add(converterNotAvailableLabel,\tnew GridBagConstraints(0,0,2,1,0.0,0.0, GridBagConstraints.EAST, GridBagConstraints.VERTICAL, new Insets(0,0,10,5), 0,0));\r\n\t\t\tconvPanel.add(useAnnBox, \t\t\t\t\tnew GridBagConstraints(0,1,3,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.BOTH,new Insets(0,15,15,0),0,0));\r\n\t\t\tconvPanel.add(fileLabel, \t\t\t\t\tnew GridBagConstraints(0,2,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.BOTH,new Insets(0,15,15,0),0,0));\r\n\t\t\tconvPanel.add(this.browserButton, \t\t\tnew GridBagConstraints(0,3,3,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.VERTICAL,new Insets(0,15,0,0),0,0));\r\n\t\t\tconvPanel.add(this.converterFileField, \t\tnew GridBagConstraints(1,2,2,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.BOTH,new Insets(0,15,15,0),0,0));\r\n\t\t\t//Annotation file panel\r\n\t\t\tJPanel annPanel = new JPanel(new GridBagLayout());\r\n\t\t\tannPanel.setBackground(Color.white);\r\n\t\t\tannPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), \"Gene Annotation / Gene Ontology Linking Files\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, font, Color.black));\r\n\t\t\tJLabel filesLabel = new JLabel(\"Files: \");\r\n\t\t\tannVector = new Vector();\r\n\t\t\tannFileList = new JList(new DefaultListModel());\r\n\t\t\tannFileList.setCellRenderer(new ListRenderer());\r\n\t\t\tannFileList.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\r\n\t\t\tJScrollPane annPane = new JScrollPane(annFileList);\r\n\r\n\t\t\tJButton annButton = new JButton(\"Add Files\");\r\n\t\t\tannButton.setActionCommand(\"ann-file-browser-command\");\r\n\t\t\tannButton.addActionListener(listener);\r\n\t\t\tannButton.setFocusPainted(false);\r\n\t\t\tannButton.setPreferredSize(new Dimension(150, 25));\r\n\t\t\tannButton.setSize(150, 25);\r\n\t\t\tremoveButton = new JButton(\"Remove Selected\");\r\n\t\t\tremoveButton.setActionCommand(\"remove-ann-file-command\");\r\n\t\t\tremoveButton.addActionListener(listener);\r\n\t\t\tremoveButton.setFocusPainted(false);\r\n\t\t\tremoveButton.setPreferredSize(new Dimension(150, 25));\r\n\t\t\tremoveButton.setSize(150, 25);\r\n\t\t\tremoveButton.setEnabled(false);\r\n\r\n\t\t\tJPanel fillPanel = new JPanel();\r\n\t\t\tfillPanel.setBackground(Color.white);\r\n\t\t\t//disabling annotation loading until feature is available\r\n\t\t\tJLabel annPanelNotAvailable = new JLabel(\"GO Annotation Linking is not yet available.\");\r\n\t\t\tannPanelNotAvailable.setForeground(Color.red);\r\n\t\t\tannButton.setEnabled(false);\r\n\t\t\tannPane.setEnabled(false);\r\n\t\t\tfilesLabel.setForeground(Color.gray);\r\n\t\t\tannPanel.add(annPanelNotAvailable,\t\tnew GridBagConstraints(0,0,2,1,0.0,0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0,0,0,0), 0,0));\r\n\t\t\tannPanel.add(fillPanel, \t\t\t\tnew GridBagConstraints(0,1,1,1,0.0,0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0,0,0,0), 0,0));\r\n\t\t\tannPanel.add(annButton, \t\t\t\tnew GridBagConstraints(1,1,1,1,0.0,0.0, GridBagConstraints.EAST, GridBagConstraints.VERTICAL, new Insets(0,0,10,5), 0,0));\r\n\t\t\tannPanel.add(removeButton, \t\t\t\tnew GridBagConstraints(2,1,1,1,0.0,0.0, GridBagConstraints.CENTER, GridBagConstraints.VERTICAL, new Insets(0,5,10,0), 0,0));\r\n\t\t\tannPanel.add(filesLabel,\t\t\t \tnew GridBagConstraints(0,2,1,1,0.0,0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0,0,0,0), 0,0));\r\n\t\t\tannPanel.add(annPane, \t\t\t\t\tnew GridBagConstraints(1,2,2,1,0.0,1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0,0,0,0), 0,0));\r\n\t\t\t//sep = System.getProperty(\"file.separator\");\r\n\t\t\tFile file = new File(getBaseFileLocation()+\"/Data/Convert/\");\r\n\t\t\tString tempPath = file.getPath();\r\n\t\t\tVector fileVector = new Vector();\r\n\t\t\tfileList = new JList(fileVector);\r\n\t\t\tif(file.exists()){\r\n\t\t\t\tString [] listFileNames = file.list();\r\n\t\t\t\tfor(int i = 0; i < listFileNames.length; i++){\r\n\t\t\t\t\tFile tempFile = new File(tempPath+BNConstants.SEP+listFileNames[i]);\r\n\t\t\t\t\tif(tempFile.isFile())\r\n\t\t\t\t\t\tfileVector.add(listFileNames[i]);\r\n\t\t\t\t}\r\n\t\t\t\tif(fileVector.size() > 0){\r\n\t\t\t\t\tconverterFileField.setText(tempPath+BNConstants.SEP+((String)fileVector.elementAt(0)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tminClusterSizeField = new JTextField(5);\r\n\t\t\tminClusterSizeField.setText(\"5\");\r\n\t\t\tJPanel contentPanel = new JPanel(new GridBagLayout());\r\n\t\t\tJPanel bnFilePanel = new JPanel(new GridBagLayout());\r\n\t\t\tthis.setLayout(new GridBagLayout());\r\n\t\t\t//annotKeyPanel = new AnnotKeyPanel(fieldNames);\r\n\r\n\t\t\t// this.add(annotKeyPanel, new GridBagConstraints(0,0,1,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.BOTH,new Insets(0,0,0,0),0,0));\r\n\t\t\tthis.add(convPanel, new GridBagConstraints(0,1,1,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.BOTH,new Insets(0,0,0,0),0,0));\r\n\t\t\tthis.add(annPanel, new GridBagConstraints(0,2,1,1,1.0,1.0,GridBagConstraints.CENTER,GridBagConstraints.BOTH,new Insets(0,0,0,0),0,0));\r\n\t\t}", "title": "" }, { "docid": "ddcb7c60edae88512b721442878ad594", "score": "0.63752604", "text": "public void buildScorePanel() \r\n\t{\r\n\t\t//Create the score panel\r\n\t\tscore = new JPanel();\r\n\t\t\r\n\t\t//Create the grid layout\r\n\t\tscore.setLayout(new GridLayout(1,3));\r\n\t\t\t\r\n\r\n\t\t//Create 3 panels\r\n\t\tJPanel panel1 = new JPanel();\r\n\t\tJPanel panel2 = new JPanel();\r\n\t\tJPanel panel3 = new JPanel();\r\n\t\t\t\r\n\r\n\t\t//Add the labels to the panels.\r\n\t\tmineDisplay = new JLabel(\"Mines Remaining\");\r\n\t\tminesLeft = new JTextField(10);\r\n\t\tminesLeft.setText(Integer.toString(gameField.minesRemaining()));\r\n\t\tminesLeft.setEditable(false);;\r\n\t\t\t\r\n\t\tpanel1.add(mineDisplay);\r\n\t\tpanel2.add(minesLeft);\r\n\t\t\r\n\t\t//Add the new game button\r\n\t\treset = new JButton(\"New Game\");\r\n\t\tpanel3.add(reset);\r\n\t\t\t\r\n\t\t//Add the panels to the grid.\r\n\t\tscore.add(panel1);\r\n\t\tscore.add(panel2);\r\n\t\tscore.add(panel3);\r\n\t\t\t\r\n\t\t//Add a border around the panel\r\n\t\tscore.setBorder(BorderFactory.createLoweredBevelBorder());\r\n\t\t}", "title": "" }, { "docid": "98dfcb6d6ff04c1d09e9aabda93c36c3", "score": "0.637382", "text": "public NewJPanel() {\n initComponents();\n }", "title": "" }, { "docid": "a4789beab1fc07e2caffab85a6ae2b35", "score": "0.6372958", "text": "private void setupPanel(JScrollPane listScrollPane, JButton addButton) {\n //Create a panel that uses BoxLayout.\n JPanel buttonPane = new JPanel();\n buttonPane.setLayout(new BoxLayout(buttonPane,\n BoxLayout.LINE_AXIS));\n buttonPane.add(removeButton);\n buttonPane.add(Box.createHorizontalStrut(5));\n buttonPane.add(new JSeparator(SwingConstants.VERTICAL));\n buttonPane.add(Box.createHorizontalStrut(5));\n buttonPane.add(entryTitle);\n buttonPane.add(addButton);\n buttonPane.add(saveButton);\n buttonPane.add(loadButton);\n buttonPane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));\n\n add(listScrollPane, BorderLayout.CENTER);\n add(buttonPane, BorderLayout.PAGE_END);\n }", "title": "" }, { "docid": "7a020360ede80d8c8c6dc1970973f334", "score": "0.6372844", "text": "private void addProducttoPanel(JPanel panel, String name, Image image, String description, double price, String category, JButton button){\n\t\tpanel.setLayout(new BorderLayout());\n\t\tJPanel linefirst = new JPanel(new GridLayout(2,1));\n\t\tJPanel nameCate = new JPanel(new BorderLayout());\n\t\t\n\t\tnameCate.add(new JLabel(name), BorderLayout.LINE_START);\n\t\tnameCate.add(new JLabel(category), BorderLayout.LINE_END);\n\t\tlinefirst.add(nameCate);\n\t\tJTextField textdes = new JTextField(5);\n\t\t\n\t\ttextdes.setText(description);\n\t\t\n\t\t\n\t\tlinefirst.add(textdes);\n\t\t\n\t\t\n\t\tJPanel linelast = new JPanel(new GridLayout(1,2));\n\t\tlinelast.add(new JLabel(\"$\"+Double.toString(price)));\n\t\t\n\t\t\n\t\t\n\t\tlinelast.add(button);\n\t\t\n\t\tpanel.add(linefirst, BorderLayout.PAGE_START);\n\t\tpanel.add(new JLabel(new ImageIcon(\"profile.png\")), BorderLayout.CENTER);\n\t\tpanel.add(linelast, BorderLayout.PAGE_END);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" } ]
9167850b38ad688fe6bd70bd23962175
To wait until element not exist till explicit time
[ { "docid": "c9cc4b08c8b86f9b4e9db7d9e4fd9abc", "score": "0.0", "text": "public static boolean isElementNotExist(BaseElement eLocator) {\n\t\treturn isElementNotExist(eLocator, EXPLICIT_WAIT_TIME);\n\t}", "title": "" } ]
[ { "docid": "9d9fcaf37fa1716b8f76e13a8697ae83", "score": "0.73204947", "text": "public void waitForElementToBeNotPresent(final By\n element, WebDriver driver) {\n long s = System.currentTimeMillis();\n new WebDriverWait(driver, this.explicitWaitDefault)\n .until(ExpectedConditions.not(ExpectedConditions.presenceOfAllElementsLocatedBy(element)));\n }", "title": "" }, { "docid": "6adf13d756ba5e8721be80b6fa41d2d5", "score": "0.7316954", "text": "protected WebElement waitForElement(WebElement element) {\n WebElement find;\n WebDriverWait wait = new WebDriverWait(driver, 10);\n find = wait.until(ExpectedConditions.visibilityOf(element));\n return find;\n }", "title": "" }, { "docid": "f3d9a83c2c60bdd318d8f5d2bdef0a32", "score": "0.72912383", "text": "public static void waitForElement(WebDriver driver, WebElement element) {\n\t\t\n\t\ttry{\n\t\tWebDriverWait wait = new WebDriverWait(driver, 30);\n wait.until(ExpectedConditions.visibilityOf(element));\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n \n\t}catch (Exception e){\n\t\t\n\t}\n\t\t\n\t}", "title": "" }, { "docid": "0c1e0266652ca1046a71cda1c9457321", "score": "0.71779656", "text": "public void waitForElementPresent (WebDriver driver, WebElement element) {\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t\twait.until(ExpectedConditions.visibilityOf(element));\r\n\t}", "title": "" }, { "docid": "24939b29d0da98792032917ab2496a5b", "score": "0.70897543", "text": "public static void waitForElementToBeInvisible(By by , long time){\n WebDriverWait wait = new WebDriverWait(driver ,time);\n wait.until(ExpectedConditions.invisibilityOfAllElements()); }", "title": "" }, { "docid": "0130e1982b4a3f80b8f0eed85f0b754a", "score": "0.7084681", "text": "public static WebElement waitForElement(WebDriver driver, WebElement element, long sec){\n\t\tWebDriverWait wait = new WebDriverWait(driver, sec);\n\t\treturn wait.until(ExpectedConditions.visibilityOf(element));\n\t\t\n\t}", "title": "" }, { "docid": "966b6358c312900fbf43962665b1ccd8", "score": "0.70416075", "text": "public void waitElementIsVisible(WebElement element) {\n \tWebDriverWait wait = new WebDriverWait(driver, 10); \n \twait.until(ExpectedConditions.visibilityOf(element));\n }", "title": "" }, { "docid": "8ca165a3f71be023dc28a4d82ec95d3b", "score": "0.70393056", "text": "public void waitForElement(WebElement element, int timeout){\n\t\tWebDriverWait wait = new WebDriverWait(webDriver,timeout);\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t}", "title": "" }, { "docid": "aaf9ac367a3f45ccf78b9ace2a812709", "score": "0.6994688", "text": "public void waitUntilElementIsVisible(WebElement element) {\n\t\tWebDriverWait wait = new WebDriverWait(wdriver, 70);\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t}", "title": "" }, { "docid": "1489287682fa13ac79293f62d2aa8064", "score": "0.6975709", "text": "public void waitUntilPresent(WebElement elementBy, int timeOut) {\r\n//\t\t\tgetDriverWaitInstance(timeOut).until(ExpectedConditions.presenceOfElementLocated(elementBy));\r\n\t\t}", "title": "" }, { "docid": "b87ea38457fc8993bf3f0577982fdd65", "score": "0.6941695", "text": "protected void waitForElementNotDisplay(By locator) {\n try{\n new WebDriverWait(webDriver, 3).until(ExpectedConditions.visibilityOfElementLocated(locator));\n }catch (TimeoutException e) {\n LogWriter.write(this.getClass(), Loggable.Level.INFO, \"Element is not displayed.\");\n }\n }", "title": "" }, { "docid": "93e2f1e155e5e2815352722546a405b6", "score": "0.6930412", "text": "void waitUntilNotExists(@ElementType String elementType, @ElementName String elementName, @TechnicalLocator String filePath);", "title": "" }, { "docid": "e80c15173b84f755cdb9b05fffcd2b93", "score": "0.69296235", "text": "static public void waitUtilElementVisible(WebElement element, int timeout) { \r\n\t long start = System.currentTimeMillis(); \r\n\t boolean isDisplayed = false; \r\n\t while (!isDisplayed && ((System.currentTimeMillis() - start) < timeout * 1000)) { \r\n\t isDisplayed = (element == null)? false : element.isDisplayed(); \r\n\t } \r\n\t if (!isDisplayed){ \r\n\t throw new ElementNotVisibleException(\"the element is not visible in \" + timeout + \"seconds!\");\r\n\t }\t \r\n\t }", "title": "" }, { "docid": "01460ca14469f7766fa3517627461257", "score": "0.692786", "text": "static public void waitUtilElementVisible(WebElement element) { \r\n\t waitUtilElementVisible(element, MAX_WAIT_FOR_ELEMENT); \r\n\t }", "title": "" }, { "docid": "cf95a4038b39116422ea815a2063cd4c", "score": "0.68861717", "text": "public MobileElement waitForElementPresent(MobileElement element, int sec,\n\t\t\tString elementName) throws Exception {\n\t\tMobileElement ele = null;\n\t\tif (sec == 0)\n\t\t\tsec = 10;\n\n\t\tfor (int i = 0; i < sec; i++) {\n\t\t\ttry {\n\t\t\t\tif (element.isDisplayed()) {\n\t\t\t\t\tele = element;\n\t\t\t\t\twait(1);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\twait(1);\n\t\t\t}\n\t\t\tif (i == (sec - 1)) {\n\t\t\t\textentLogs.error( \"Verify element\",\n\t\t\t\t\t\t\"Expected element(s) NOT found :\" + elementName);\n\t\t\t\t// extentLogs.error(\"Verify element\",\n\t\t\t\t// \"Expected element(s) NOT found :\" + elementName);\n\n\t\t\t\tthrow new Exception(\"Expected element(s) NOT found\");\n\t\t\t}\n\t\t}\n\t\treturn ele;\n\t}", "title": "" }, { "docid": "58cbe047c5c71a19c048e7c187fe5a8e", "score": "0.6874153", "text": "public void ExplictWaitForElementotAvailable(WebElement ele, WebDriver driver) {\n\n\t\twait = new WebDriverWait(driver, Long.parseLong(Variables.WAIT_TIME));\n\t\twait.until(ExpectedConditions.visibilityOf(ele));\n\t}", "title": "" }, { "docid": "19c797d271f087f1e78df18d860f43c5", "score": "0.68728507", "text": "public synchronized void elementToBeVisisbleWait(WebElement element) {\n\t\tgetWebdiverWaitInstance().until(ExpectedConditions.visibilityOf(element));\n\t}", "title": "" }, { "docid": "64ae4f49363738fd7651d722089c570c", "score": "0.6832194", "text": "public void waitForVisibilityOfElement() throws Exception {\n\t\tWebDriverWait wait = new WebDriverWait(this.wb_driver, WaitTimeConstants.WAIT_TIME_SMALL);\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(this.webDriverBy));\n\t}", "title": "" }, { "docid": "63fdc35449b98c68e4c41e429fc5e6b9", "score": "0.68148786", "text": "public void waitForElementPresent(By byElement) {\r\n\t\tfinal By element = byElement;\r\n\t\t(new WebDriverWait(driver, DEFAULTTIMEOUT)).ignoring(StaleElementReferenceException.class)\r\n\t\t\t\t.until(new ExpectedCondition<WebElement>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic WebElement apply(WebDriver d) {\r\n\t\t\t\t\t\treturn d.findElement(element);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t}", "title": "" }, { "docid": "2d390a2db4f466a5e0cae5d2dfe7e29a", "score": "0.68006706", "text": "@Override\n\tpublic void waitVanished() {\n\t\telement().waitVanished();\n\t}", "title": "" }, { "docid": "529facd76df2849483d1293a1217a8f4", "score": "0.67942536", "text": "private boolean waitForElementVisible(WebElement element){\n try {\n WebDriverWait wait = new WebDriverWait(driver, 10);\n wait.until(ExpectedConditions.visibilityOf(element));\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "title": "" }, { "docid": "39b7420d936db8a4942c3c3f850e31f0", "score": "0.6792526", "text": "public static void waitForElementBeVisible(WebElement element, int time)\n\t{\n\tWebDriverWait wait=new WebDriverWait(driver, time);\n\twait.until(ExpectedConditions.invisibilityOf(element));\n\n\t}", "title": "" }, { "docid": "b8cddc65d46cba58021cbbae7fb4c210", "score": "0.67870367", "text": "public void waitForVisibility(By by){\n try {\n wait.until(ExpectedConditions.visibilityOfElementLocated(by));\n }catch(Exception e){\n System.out.println(\"Element not visible in stipulated time frame\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "bb54b27f842cf368ee8e1cb7dc9e9a3a", "score": "0.6785573", "text": "public static void waitForElement(long unit){\n\t\ttry {\n\t\t\tThread.sleep(unit);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3d41b018e7148b342c091bdfbed84872", "score": "0.67840356", "text": "public void waitForElemenent( By element, String elementName) throws Exception{\n\t\t//int waitTime = Integer.parseInt( config.getProperty(\"ElementSyncTimeOut\"));\n\t\t//\tMobileElement ele = null;\n\t\ttry{\n\t\t\tWebDriverWait wait = new WebDriverWait( sdriver, 60);\n\t\t\t//\twait.until(ExpectedConditions.visibilityOf(sdriver.findElement(element)));\n\t\t\tnew WebDriverWait( sdriver, 10).until(ExpectedConditions.presenceOfElementLocated(element));\n\n\t\t\t//extentReportsLog(true, String.format(\"Waited For element for %d Sec\", waitTime));\n\n\t\t}\n\t\tcatch(Exception e){\n\t\t\t//\textentReportsLog(false, \"Element Not Found \\n\"+ e.getMessage() );\n\t\t\textentLogs.error( \"Verify element\",\n\t\t\t\t\t\"Expected element(s) NOT found :\" + elementName);\n\t\t\tthrow new Exception (\"Wait element Exception\");\n\t\t}\n\t}", "title": "" }, { "docid": "6e131fc318b01080cd62b007fbc43920", "score": "0.6770914", "text": "public static void waitUntil(long time, By locator) {\n\t\tWebDriverWait wait = new WebDriverWait(driver, time);\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\t}", "title": "" }, { "docid": "e9eb7710cbef58106d84c0924857e714", "score": "0.67526233", "text": "public static void waitForElementVisible(By by, long time) {\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.visibilityOfElementLocated(by)); }", "title": "" }, { "docid": "41232baee48cfaf6381a504f3ab0e69c", "score": "0.6752147", "text": "private static void waitElement(final WebElement webElement) {\n final WebDriver driver = DriverManager.getInstance().getDriver();\n final WebDriverWait wait = new WebDriverWait(driver, Environment.getInstance().getTimeout());\n wait.until(ExpectedConditions.elementToBeClickable(webElement));\n }", "title": "" }, { "docid": "082f45ff8ed7e72206e56c661409acb3", "score": "0.6734462", "text": "void waitForLoadingIndicator(By identifier) {\n elementDoesNotExist(identifier);\n }", "title": "" }, { "docid": "e566f00dffe8e273aa815980a9516a92", "score": "0.6731474", "text": "protected void waitForElement(ExpectedCondition expectedCondition, WebElement element) throws ElementNotVisibleInUIException {\n try {\n LOGGER.trace(\">> waitForElement()\");\n waitTime = new WebDriverWait(driver, ELEMENT_WAIT);\n waitTime.until(expectedCondition);\n } catch (Exception e) {\n LOGGER.error(\"-- Error in waiting for element\");\n throw new ElementNotVisibleInUIException(\"Element is not visible in UI\");\n }\n LOGGER.trace(\"<< waitForElement()\");\n }", "title": "" }, { "docid": "2008e215063f834112cb1981d280a9d7", "score": "0.672264", "text": "void waitUntilExists(@ElementType String elementType, @ElementName String elementName, @TechnicalLocator String filePath);", "title": "" }, { "docid": "ca6b7f7dce3c09938ededa417f03e0c3", "score": "0.670857", "text": "public MobileElement waitForElement(MobileElement element, int sec,\n\t\t\tString elementName) throws Exception {\n\t\tMobileElement ele = null;\n\t\tif (sec == 0)\n\t\t\tsec = 10;\n\n\t\tfor (int i = 0; i < sec; i++) {\n\t\t\ttry {\n\t\t\t\tif (element.isDisplayed()) {\n\t\t\t\t\tele = element;\n\t\t\t\t\twait(1);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\twait(1);\n\t\t\t}\n\t\t\tif (i == (sec - 1)) {\n\t\t\t\textentLogs.error( \"Verify element\",\n\t\t\t\t\t\t\"Expected element(s) NOT found :\" + elementName);\n\t\t\t\t// extentLogs.error(\"Verify element\",\n\t\t\t\t// \"Expected element(s) NOT found :\" + elementName);\n\n\t\t\t\tthrow new Exception(\"Expected element(s) NOT found\");\n\t\t\t}\n\t\t}\n\t\treturn ele;\n\t}", "title": "" }, { "docid": "70021c689708647ac77608b0556d26f2", "score": "0.67050266", "text": "public boolean syncPresent(WebDriver driver, int timeout) {\r\n\t\tboolean found = false;\r\n\t\tdouble loopTimeout = 0;\r\n\t\tBy locator = getElementLocator();\r\n\t\tloopTimeout = timeout * 10;\r\n\t\tTestReporter.interfaceLog(\"::<i> Syncing to element [ <b>@FindBy: \"\r\n\t\t\t\t+ getElementLocatorInfo()\r\n\t\t\t\t+ \"</b> ] to be <b>PRESENT</b> in DOM within [ \" + timeout\r\n\t\t\t\t+ \" ] seconds.</i>\");\r\n\r\n\t\tfor (double seconds = 0; seconds < loopTimeout; seconds += 1) {\r\n\t\t\tif (webElementPresent(driver, locator)) {\r\n\t\t\t\tfound = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(100);\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!found) {\r\n\t\t\tdateAfter = new java.util.Date();\r\n\t\t\tTestReporter.interfaceLog(\"<i>Element [<b>@FindBy: \"\r\n\t\t\t\t\t+ getElementLocatorInfo()\r\n\t\t\t\t\t+ \" </b>] is not <b>PRESENT</b> on the page after [ \"\r\n\t\t\t\t\t+ (dateAfter.getTime() - date.getTime()) / 1000.0\r\n\t\t\t\t\t+ \" ] seconds.</i>\");\r\n\t\t\tthrow new RuntimeException(\"Element [ @FindBy: \"\r\n\t\t\t\t\t+ getElementLocatorInfo()\r\n\t\t\t\t\t+ \" ] is not PRESENT on the page after [ \"\r\n\t\t\t\t\t+ (dateAfter.getTime() - date.getTime()) / 1000.0\r\n\t\t\t\t\t+ \" ] seconds.\");\r\n\t\t}\r\n\t\treturn found;\r\n\t}", "title": "" }, { "docid": "f4817682b99359d8e4b84544d691d02c", "score": "0.67035186", "text": "public static boolean waitUntilElementVisiable(WebElement element)\n {\n try{\n WebDriverWait wait = new WebDriverWait(driver, 20);\n wait.until(ExpectedConditions.visibilityOf(element));\n // element found, return true\n return true;\n }catch (Exception ex){\n // element not found, return false\n return false;\n }\n }", "title": "" }, { "docid": "d5cc17b896ca77a94fb79059170bed63", "score": "0.67034084", "text": "public static MobileElement waitForElementPresent(MobileElement element,\n\t\t\tint sec) throws Exception{\n\t\tMobileElement ele = null;\n\t\tif (sec == 0)\n\t\t\tsec = 1;\n\t\tfor (int i = 0; i < sec; i++){\n\t\t\ttry{\n\t\t\t\tif (element.isDisplayed()){\n\t\t\t\t\tele = element;\n\t\t\t\t\twait(1);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}catch (Exception ex){\n\t\t\t\twait(1);\n\t\t\t}\n\t\t\tif (i == (sec - 1)){\n\t\t\t\textentLogs.fail(driver, \"waitForElementPresent\",\n\t\t\t\t\t\t\"Expected element(s) NOT found : \");\n\t\t\t\t// extentReportsLog(false, \"Expected element(s) NOT found : \" +\n\t\t\t\t// elementName);\n\t\t\t\tthrow new Exception(\"Expected element(s) NOT found\");\n\t\t\t}\n\t\t}return ele;\n\t}", "title": "" }, { "docid": "24931136371e5361867aaf723103ed78", "score": "0.6676129", "text": "public void waitForNotVisible(final long time) throws WidgetException {\n\t\ttry {\n\t\t\twaitForCommand(new ITimerCallback() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean execute() throws WidgetException {\n\t\t\t\t\treturn !isVisible();\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic String toString() {\n\t\t\t\t\treturn \"Waiting for element with locator: \" + locator + \" to not be visible\";\n\t\t\t\t}\n\t\t\t}, time);\n\t\t} catch (Exception e) {\n\t\t\tthrow new WidgetException(\"Error while waiting for element to be not visible\", locator, e);\n\t\t}\n\t}", "title": "" }, { "docid": "40fadef1e67d1c610e25bb578e8513f4", "score": "0.66747916", "text": "public WebElement wait(WebElement element) {\n\n return wait.until(ExpectedConditions.visibilityOf(element));\n }", "title": "" }, { "docid": "7aede6c6d03804d31a175c73290023c8", "score": "0.66724825", "text": "@Override\r\n\tpublic boolean syncPresent(WebDriver driver) {\r\n\t\tboolean found = false;\r\n\t\tdouble loopTimeout = 0;\r\n\t\tBy locator = getElementLocator();\r\n\t\tloopTimeout = TestEnvironment.getDefaultTestTimeout() * 10;\r\n\t\tTestReporter.interfaceLog(\"<i> Syncing to element [ <b>@FindBy: \"\r\n\t\t\t\t+ getElementLocatorInfo()\r\n\t\t\t\t+ \"</b> ] to be <b>PRESENT</b> in DOM within [ \"\r\n\t\t\t\t+ TestEnvironment.getDefaultTestTimeout() + \" ] seconds.</i>\");\r\n\t\tfor (double seconds = 0; seconds < loopTimeout; seconds += 1) {\r\n\t\t\tif (webElementPresent(driver, locator)) {\r\n\t\t\t\tfound = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(100);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!found) {\r\n\t\t\tdateAfter = new java.util.Date();\r\n\t\t\tTestReporter.interfaceLog(\"<i>Element [<b>@FindBy: \"\r\n\t\t\t\t\t+ getElementLocatorInfo()\r\n\t\t\t\t\t+ \" </b>] is not <b>PRESENT</b> on the page after [ \"\r\n\t\t\t\t\t+ (dateAfter.getTime() - date.getTime()) / 1000.0\r\n\t\t\t\t\t+ \" ] seconds.</i>\");\r\n\t\t\tthrow new RuntimeException(\"Element [ @FindBy: \"\r\n\t\t\t\t\t+ getElementLocatorInfo()\r\n\t\t\t\t\t+ \" ] is not PRESENT on the page after [ \"\r\n\t\t\t\t\t+ (dateAfter.getTime() - date.getTime()) / 1000.0\r\n\t\t\t\t\t+ \" ] seconds.\");\r\n\t\t}\r\n\t\treturn found;\r\n\t}", "title": "" }, { "docid": "a790a79e6cef83fa8bebc78a74eddda6", "score": "0.66685015", "text": "public WebElement waitForElement(By locator, int secsToWait) {\n WebElement find;\n WebDriverWait wait = new WebDriverWait(driver, secsToWait);\n find = wait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n return find;\n }", "title": "" }, { "docid": "e9bc5b013e5069fa24818251ae5df714", "score": "0.66519576", "text": "public void waitUntilElementPresent(By by)throws Exception\n\t{\n\t\ttry\n\t\t{\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, 20);\n\t\t\t \n\t\t\twait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(by));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "title": "" }, { "docid": "1955d07a6bbf30cf3bcd07c7bcf99fb2", "score": "0.66414636", "text": "public static void waitForElementVisible(By by, long time) {\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(by));\n\n }", "title": "" }, { "docid": "e87c49afa68d3acb1e960188494e7fc4", "score": "0.6601789", "text": "protected WebElement waitForElementIsVisible(WebElement element, int timeToWait) {\n wait = new WebDriverWait(driver, timeToWait);\n try {\n wait.until(ExpectedConditions.visibilityOf(element));\n } catch (TimeoutException e) {\n logger.error(\"WebElement \" + element +\" is not visible\");\n }\n return element;\n }", "title": "" }, { "docid": "9b993a3e53734bb5dea72de3794cf191", "score": "0.66003746", "text": "public void waitForElementVisibility(WebDriver driver, WebElement element) {\n\t\tWebDriverWait wait = new WebDriverWait(driver, 20);\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t}", "title": "" }, { "docid": "077cc72e5b4e4a6be64ddc9e82896a5b", "score": "0.65855616", "text": "public void waitUntilRblAccountValElementIsVisible(WebElement element) {\n\t\tWebDriverWait wait = new WebDriverWait(wdriver, 150);\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t}", "title": "" }, { "docid": "482135aaf626b4d44148fac89ccd76f2", "score": "0.656501", "text": "public void waitUntilElementIsInvisible(String xpath) {\n\t\tWebDriverWait wait = new WebDriverWait(wdriver, 60);\n\t\twait.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(xpath)));\n\t}", "title": "" }, { "docid": "23932f2faa58a04c09138606de013ffc", "score": "0.6563642", "text": "public static void waitForInvisibility(WebElement element) {\n\t\tgetWaitObject().until(ExpectedConditions.invisibilityOf(element)); \n\t}", "title": "" }, { "docid": "524c136c96a6980721fa9f231c4fa706", "score": "0.65553176", "text": "public void waitForElementToBeVisible(WebDriver driver,WebElement element) {\n \t WebDriverWait wait=new WebDriverWait(driver,20);\n \t wait.until(ExpectedConditions.visibilityOf(element));\n \t \n }", "title": "" }, { "docid": "0e9e35c05e7abd1135a0b04f91dade61", "score": "0.6514039", "text": "public static WebElement isElementPresnt(WebDriver driver, String xpath, int time) {\n\t\tWebElement ele = null;\n\n\t\tfor (int i = 0; i < time; i++) {\n\t\t\ttry {\n\t\t\t\tele = driver.findElement(By.xpath(xpath));\n\t\t\t\tbreak;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.out.println(\"Waiting for element to appear on DOM\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ele;\n\n\t}", "title": "" }, { "docid": "52780d4703f3e5fa2642e58fe146e0c0", "score": "0.6509406", "text": "public static void waitForTheElementInvisibility(WebDriver driver, int timeUnits, By webElementName) {\r\n Wait<WebDriver> wait = new FluentWait<WebDriver>(driver).withTimeout(timeUnits, TimeUnit.SECONDS)\r\n .pollingEvery(2, TimeUnit.SECONDS).ignoring(NoSuchElementException.class);\r\n wait.until(ExpectedConditions.invisibilityOfElementLocated(webElementName));\r\n }", "title": "" }, { "docid": "1548ce6acf8f3fa6c3774394c5d5e718", "score": "0.65087223", "text": "public static void waitForVisibility(WebElement element) {\n\t\tgetWaitObject().until(ExpectedConditions.visibilityOf(element)); \n\t}", "title": "" }, { "docid": "d718b755cb7be33ab617556ad08de183", "score": "0.6485394", "text": "public static void waitForElement(WebDriver driver,WebElement element){\r\n\t\tSystem.out.println(\"I M IN WAIT class\");\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\t// System.out.println(\"start of wait at time:::\"+startTime);\r\n\t\t WebDriverWait wait = new WebDriverWait(driver, 120);\r\n\t\t wait.until(ExpectedConditions.elementToBeClickable(element));\r\n\t\tlong endTime = System.currentTimeMillis();\r\n\t // System.out.println(\"end of wait at time:::\"+endTime);\r\n\t System.out.println(\"Total time wait:::\"+(endTime - startTime));\r\n\t \r\n\t \t}", "title": "" }, { "docid": "1a8bf3c61b8fd65e651d733747d37a22", "score": "0.64740056", "text": "boolean elementDoesNotExist(By identifier) {\n if (!elementExists(identifier)) {\n return true;\n }\n else {\n wait.until(invisibilityOfElementLocated(identifier));\n }\n return false;\n }", "title": "" }, { "docid": "2fe9f8f6f43468d7b085c3d84d51fd53", "score": "0.6437613", "text": "public boolean waitForElement(String element, int timeout){\r\n \tWebDriverWait wait = new WebDriverWait(driver, timeout);\r\n \tlog.info(\"Waiting \" + timeout + \" seconds for \" + element + \" to be visible.\");\r\n \ttry{\r\n \t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(pro.getProperty(element))));\r\n \t\treturn true;\r\n \t}\r\n \tcatch(Exception e){\r\n \t\tlog.info(e.getMessage());\r\n \t\treturn false;\r\n \t}\r\n\t\t\r\n }", "title": "" }, { "docid": "0d0f0184a9b6e1af085aa75357e9fb09", "score": "0.64344317", "text": "public boolean waitForVisibility(By targetElement) {\n try {\n Wait wait = new FluentWait(driver)\n .withTimeout(Duration.ofSeconds(timeOut))\n .pollingEvery(Duration.ofSeconds(1))\n .ignoring(NoSuchElementException.class)\n .ignoring(StaleElementReferenceException.class);\n// WebDriverWait wait = new WebDriverWait(driver, timeOut);\n wait.until(ExpectedConditions.visibilityOfElementLocated(targetElement));\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "title": "" }, { "docid": "62a8a3efa27308ef35b6b0be6250508f", "score": "0.64230174", "text": "private void implicitwait(long time, TimeUnit unit) {\n\t\tdriver.manage().timeouts().implicitlyWait(time, unit);\n\t}", "title": "" }, { "docid": "24b9929f4926a548266af0766a247cb3", "score": "0.6421706", "text": "public void waitForPageToLoad() {\n\t\tBy locator = By.xpath(\"//span[text()='Please wait...')]\");\n\t\tWebDriverWait wait = new WebDriverWait(driver, 180, 1);\n\t\ttry {\n\t\t\tsleep(.5);\n\t\t\twait.until(ExpectedConditions.invisibilityOfElementLocated(locator));\n\t\t\treturn;\n\t\t} catch (Exception e) {\n\t\t}\n\n\t}", "title": "" }, { "docid": "eea985abbc506f135c483b2c6770fab4", "score": "0.6420535", "text": "public void waitUntilNotVisible(WebElement elementBy, int timeOut) {\r\n\t\tgetDriverWaitInstance(timeOut).until(ExpectedConditions.invisibilityOf(elementBy));\r\n\t}", "title": "" }, { "docid": "283d691d42bc28bb9e2771f55611865d", "score": "0.64135593", "text": "public void waitUntilElementIsClickable(WebElement element) {\n\t\tWebDriverWait wait = new WebDriverWait(wdriver, 60);\n\t\twait.until(ExpectedConditions.elementToBeClickable(element));\n\t}", "title": "" }, { "docid": "89bfc0a27b319b429c052ad3ed754fb1", "score": "0.64079213", "text": "public static boolean waitForTheElementVisible(WebDriver driver, int timeUnits, By webElementName) {\r\n try {\r\n WebDriverWait wait = new WebDriverWait(driver, timeUnits);\r\n wait.until(ExpectedConditions.visibilityOfElementLocated(webElementName));\r\n return true;\r\n } catch (Exception e) {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "2d42a923d11634eed6768bf2bd85fd79", "score": "0.6398978", "text": "public void waitForLoadingImage() {\n if (element.isElementPresent(\n By.xpath(\"//div[contains(@style,'visibility: visible')]\" +\n \"//img[contains(@src,'loader')]\"))) {\n long t = System.currentTimeMillis();\n long end = t + (Integer.parseInt(envDataConfig.getTimeout()) * 1000);\n while (System.currentTimeMillis() < end) {\n if (element.isElementPresent(\n By.xpath(\"//div[contains(@style,'visibility: hidden')]\" +\n \"//img[contains(@src,'loader')]\"))) {\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "2670252e60e98c02cf1c5a9738864835", "score": "0.6392445", "text": "public static void waitForelementClickable(By by, long time) {\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.elementToBeClickable(by)); }", "title": "" }, { "docid": "5451ef329fcb6a4d3c86ce84a8771af1", "score": "0.63881654", "text": "public static void waitForElementToLoad(Selenium selenium, String elementId)\r\n\t\t\tthrows InterruptedException {\r\n\t\tint i = 0;\r\n\t\twhile (!selenium.isElementPresent(elementId)) {\r\n\t\t\ti++;\r\n\t\t\tThread.sleep(3000);\r\n\t\t\tif (i == 9) {\r\n\t\t\t\tAssert.fail(\"Time out :-CounldNotFind the Element With ID : \"+elementId);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9e808e2aedeaa93a2f009d1ccc5ddef7", "score": "0.6385561", "text": "@Override\n\tpublic void waitDisplayed() {\n\t\telement().waitDisplayed();\n\t}", "title": "" }, { "docid": "d3cfb4731c319733e6140317d2bf7e11", "score": "0.63848907", "text": "public void waitForElementsToBeInvisible(final\n WebElement element, final WebDriver driver) {\n final long s = System.currentTimeMillis();\n new WebDriverWait(driver, this.explicitWaitDefault)\n .until(ExpectedConditions.invisibilityOf(element)\n );\n }", "title": "" }, { "docid": "a1e0015b5258b6d9bee01a34255ec75c", "score": "0.6384824", "text": "public void implicitlyWait() {\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n }", "title": "" }, { "docid": "be57bbfc184059ba70e2b75fa8d92bae", "score": "0.6380619", "text": "public WebElement explicitlyWait(WebElement elem, int waitTime) {\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, waitTime);\n\t\t\twait.pollingEvery(Duration.ofMillis(pollingRate));\n\t\t\treturn wait.until(ExpectedConditions.visibilityOf(elem));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Failed waiting for an element\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "762179cc879c278ab72f3a589e306986", "score": "0.63496083", "text": "public WebElement waitforelementtoappear(WebElement element) {\n\n WebDriverWait wait = new WebDriverWait(getDriver(), 10);\n\n highLightElement(element);\n return wait.until(ExpectedConditions.elementToBeClickable(element));\n\n }", "title": "" }, { "docid": "c12832bd3469a4bf92100209fb4b8b7e", "score": "0.63219297", "text": "public void waitForElementToBeVisible(final WebElement\n element, final WebDriver driver) {\n long s = System.currentTimeMillis();\n new WebDriverWait(driver,\n this.explicitWaitDefault).until(ExpectedConditions.visibilityOf(element));\n }", "title": "" }, { "docid": "6f892fb3c61b8eacc1137200a97b3c64", "score": "0.6316335", "text": "public void waitForElementVisible(By locator) {\n\t\tWebElement webelement = getElement(locator);\n\t\twait.until(ExpectedConditions.visibilityOf(webelement));\n\t}", "title": "" }, { "docid": "3c326712367b64d1cb1bfcf2f00944b3", "score": "0.6307331", "text": "protected WebElement waitUntilElementVisibleRet(WebElement webElement, int timeOutInSec){\n WebDriverWait wait = new WebDriverWait(driver, timeOutInSec);\n return wait.until(ExpectedConditions.visibilityOf(webElement));\n }", "title": "" }, { "docid": "6f49b477506e116328bb6fb2b36dc5f1", "score": "0.6277445", "text": "@Override\r\n\tpublic void waitForElementPresent(By Locator) {\r\n\t\ttry {\r\n\t\t\twait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(Locator));\r\n\t\t\t\r\n\t\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(\"some excepted/error occured while waiting for the element \" + Locator.toString());\r\n\t\t\t}\r\n\t\t\r\n\t\t}", "title": "" }, { "docid": "d411ee54a4661cdb73b55d62b75dedf4", "score": "0.6271072", "text": "public void waitElementRefreshing(WebElement webElement) {\n DriverManager.getWebDriverWait().until(ExpectedConditions.visibilityOf(webElement));\n WebDriverWait webDriverWait = new WebDriverWait(DriverManager.getWebDriver(), 10);\n webDriverWait.until(webDriver -> {\n String oldValue = webElement.getText();//берем старое значение целевого поля\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String newValue = webElement.getText();//получаем новое значение целевого поля\n return newValue.equals(oldValue);//если значение не равны ждем\n });\n }", "title": "" }, { "docid": "b72c3c15c260bff52251c2fa3cc9a02b", "score": "0.6267059", "text": "public void waitForElementToBeInvisible(final By locator,\n final WebDriver driver) {\n long s = System.currentTimeMillis();\n new WebDriverWait(driver, this.explicitWaitDefault)\n .until(ExpectedConditions.invisibilityOfElementLocated(locator));\n }", "title": "" }, { "docid": "9d63bd2f4e29e442f0f40c85b669e73f", "score": "0.6254941", "text": "public void waitForAjaxToLoad() {\n\t\tStopwatch sw = Stopwatch.createStarted();\n\t\tString style = null;\n\t\tdo {\n\t\t\tsleep(.5);\n\t\t\tWebElement element = driver.findElement(By.linkText(\"Identity Manager\"));\n\t\t\tstyle = element.getAttribute(\"style\");\n\t\t\tif (null != style && (!\"cursor: wait;\".equals(style))) {\n\t\t\t\tsleep(1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t} while (sw.elapsed(TimeUnit.MILLISECONDS) < (30 * 1000));\n\t\tsw.stop();\n\t}", "title": "" }, { "docid": "7af286d8e3a9e82b86cec3e943914392", "score": "0.6252562", "text": "public void waitUntilVisible(WebElement elementBy, int timeOut) {\r\n\t\tgetDriverWaitInstance(timeOut).until(ExpectedConditions.visibilityOf(elementBy));\r\n\t}", "title": "" }, { "docid": "fd24120ceaa33d81fa13286604247e08", "score": "0.62521136", "text": "public void waitForVisible(final long time) throws WidgetException {\n\t\ttry {\n\t\t\twaitForCommand(new ITimerCallback() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean execute() throws WidgetException {\n\t\t\t\t\treturn isVisible();\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic String toString() {\n\t\t\t\t\treturn \"Waiting for element with locator: \" + locator + \" to be visible\";\n\t\t\t\t}\n\t\t\t}, time);\n\t\t} catch (Exception e) {\n\t\t\tthrow new WidgetException(\"Error while waiting for element to be visible\", locator, e);\n\t\t}\n\t}", "title": "" }, { "docid": "8ae951fdf8b0d843d66b722f5e49a908", "score": "0.6231877", "text": "public void waitElementIsClickable(WebElement element) {\n \tWebDriverWait wait = new WebDriverWait(driver, 10); \n \twait.until(ExpectedConditions.elementToBeClickable(element));\n }", "title": "" }, { "docid": "238e5bc8fadde2312ca7869590105b74", "score": "0.6231017", "text": "public void wait_until_loader_is_invisible() throws InterruptedException {\n\t\tString res;\r\n\t\ttry {\r\n\t\t\tres = pages.Utill().find(\"ctl00_UpdateProgress1\").getCssValue(\"display\");\r\n\t\t} catch (StaleElementReferenceException e) {\r\n\t\t\tThread.sleep(1000);\r\n\t\t\tres = pages.Utill().find(\"ctl00_UpdateProgress1\").getCssValue(\"display\");\r\n\t\t}\r\n\t\twhile (res.equals(\"block\")) {\r\n\t\t\tThread.sleep(200);\r\n\t\t\tres = pages.Utill().find(\"ctl00_UpdateProgress1\").getCssValue(\"display\");\r\n\t\t\tif (!(res.equals(\"block\"))) {\r\n\t\t\t\t// System.out.println(\"end time\"+java.time.LocalTime.now());\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\t// System.out.println(res);\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8229657443361db01d097755622c4e8f", "score": "0.62203413", "text": "@Override\r\n\tpublic boolean hasWait() {\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "242d5cf47531f1e839d75f2d2028e730", "score": "0.62198013", "text": "public static WebElement explicitWait (String locator) {\n\t\tBy element=By.linkText(locator);\n\t\tWebDriverWait wait=new WebDriverWait(driver, 30);\n\t\tWebElement visibilElement = wait.until(ExpectedConditions.visibilityOfElementLocated(element)); \n\t\treturn visibilElement;\n\t}", "title": "" }, { "docid": "8f4d86110847c01731a98179a6c58a4f", "score": "0.6203089", "text": "public boolean waitElementToBeDisplayed(final By by) {\n boolean wait = false;\n if (by == null)\n return wait;\n try {\n wait = new WebDriverWait(driver, timeout)\n .until(new ExpectedCondition<Boolean>() {\n public Boolean apply(WebDriver d) {\n return d.findElement(by).isDisplayed();\n }\n });\n } catch (Exception e) {\n System.out.println(driver.findElement(by).toString() + \" is not displayed\");\n }\n return wait;\n }", "title": "" }, { "docid": "133eaf2bd301fb54d1ddabbc4230602e", "score": "0.6193092", "text": "public void waitTillVisible(WebElement locator, int timeout) {\n\n\t\tWebDriverWait wait = new WebDriverWait(driver, timeout);\n\t\twait.until(ExpectedConditions.visibilityOf(locator));\n\n\t}", "title": "" }, { "docid": "1bb9e320ca82d0cc3bb7b1323e7101f7", "score": "0.619082", "text": "@Override\r\n\tpublic void waitToElementBeVisible(WebElement... element) {\n\t}", "title": "" }, { "docid": "949d2b6fd2487c2e90594cfd0fb9b214", "score": "0.61769795", "text": "public static boolean isElementPresent(WebElement elementName, int timeout) {\n\t\ttry {\n\t\t\t// duration.setTime(100, TimeUnit.MILLISECONDS);\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, timeout);\n\t\t\twait.until(ExpectedConditions.visibilityOf(elementName));\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t} finally {\n\t\t\t// duration.setTime(time, unit);\n\t\t}\n\n\t}", "title": "" }, { "docid": "d85b625a529d4c55502cbb9aee9df038", "score": "0.61752725", "text": "public void waitUntilLoadingOverlayDisappears() {\n try {\n WebDriverWait wait = new WebDriverWait(Driver.get(), 10);\n wait.until(ExpectedConditions.invisibilityOf(loadingOverlay));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "92ab46b689b94b355eca3b7bf8d23b8b", "score": "0.6171447", "text": "public void explicitWaitForValidationErrorMessageAppear() {\n\t\tWebDriverWait wait = new WebDriverWait(driver, 5);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(validationErrorMessage));\n\t}", "title": "" }, { "docid": "6d80ae85c069e6daf602a2e49eece1fc", "score": "0.61586934", "text": "public void waitForJobsToLoad()\n {\n WebDriverWait wait = new WebDriverWait(driver, 2000);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector(\"#jobs-container > div:nth-child(1) > div:nth-child(2) > div > div:nth-child(1) > div > div > div\")));\n }", "title": "" }, { "docid": "18d1f44bb6171dd60e23839d59f2f27b", "score": "0.6151711", "text": "private void waitForLoad () {\n waitForVisibilityOfElementByXpath(spinnerXPath);\n waitForInvisibilityOfElementByXpath(spinnerXPath);\n }", "title": "" }, { "docid": "ae2585e4890b40b023af81347437af27", "score": "0.61497873", "text": "private boolean isElementPresent(WebElement selectteam) {\n\treturn false;\n}", "title": "" }, { "docid": "fc7fc6daf0f4537055738e855227e20c", "score": "0.61472446", "text": "@SuppressWarnings(\"deprecation\")\n\tpublic void isLoaded(WebElement element) throws Error {\n\t\tnew FluentWait<WebDriver>(driver)\n\t\t.withTimeout(30, TimeUnit.SECONDS)\n\t\t.pollingEvery(1, TimeUnit.SECONDS)\n\t\t.ignoring(NoSuchElementException.class)\n\t\t.ignoring(StaleElementReferenceException.class)\n\t\t.until(new Function<WebDriver, Boolean>() {\n\t\t\t@Override\n\t\t\tpublic Boolean apply(WebDriver webDriver) {\n\t\t\t\treturn element != null && element.isDisplayed();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "ab060ea1158a53fa5b50eab95fe477c6", "score": "0.6138224", "text": "protected void assertElementsIsVisible (WebElement webElement, int timeOutInSec, String mess){\n try {\n this.waitUntilElementVisibleRet(webElement, timeOutInSec);\n }catch (TimeoutException e){\n throw new AssertionError(mess);\n }\n }", "title": "" }, { "docid": "c5591e0df5ce8fb48798e3d5841bcb8f", "score": "0.6125811", "text": "public static WebElement waitForExpectedElement(AppiumDriver driver, final By locator, int time) {\n\tWebDriverWait wait = new WebDriverWait(driver, time);\n\treturn wait.until(ExpectedConditions.presenceOfElementLocated(locator));\n}", "title": "" }, { "docid": "c1bb6aaf140af1fd2c867ac19423b7a9", "score": "0.6125615", "text": "public static void forAlterPresent(long time) {\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.alertIsPresent());\n\n }", "title": "" }, { "docid": "5391b7d64d49e27935d6d4d26b67c19f", "score": "0.6116581", "text": "public boolean isElementDisplayed(WebElement element, int seconds)\n\t{\n\t\tboolean isDisplayed=false;\n\t\ttry {\n\t\t\tWebDriverWait wait=new WebDriverWait(TestGlobals.driver(),seconds);\n\t\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t\t\tisDisplayed=true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tlog.error(\"element is not displayed even after waiting time\");\n\t\t}\n\t\treturn isDisplayed;\n\t\t\n\t}", "title": "" }, { "docid": "3da9969080544dc21866f7faa93aa07c", "score": "0.6114356", "text": "public static void waitUntilElementLoadsAndIsClickable(By by, long time) {\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.elementToBeClickable(by));\n }", "title": "" }, { "docid": "702f63b396839d4fa0cf132084c82613", "score": "0.6112514", "text": "public static void waitForElementToDisappear(String dataTestId) {\n\t\tSupplier<Boolean> elementPresenseChecker = () -> GeneralUIUtils.isElementPresent(dataTestId);\n\t\tFunction<Boolean, Boolean> verifier = isElementPresent -> !isElementPresent;\n\t\tFunctionalInterfaces.retryMethodOnResult(elementPresenseChecker, verifier);\n\n\t}", "title": "" }, { "docid": "a81eff5ec34fbe0afa92dda747bb84fa", "score": "0.6112392", "text": "public void method1() throws InterruptedException {\n\n Thread.sleep(10);\n //Wait.until(ExpectedConditions.visibilityOf());\n demo_Ele.click();\n\n }", "title": "" }, { "docid": "5835f49417daaf70594202f28a46ed10", "score": "0.61010295", "text": "private void imitationWait() {\n try {\n Thread.sleep((long) (Math.random() * 1000));\n } catch (InterruptedException e) {\n log.error(e);\n }\n }", "title": "" }, { "docid": "464df597868314460fe1a9c229608fa4", "score": "0.6088116", "text": "public boolean isElementPresent(int count)throws Exception {\n\t\twb_driver.manage().timeouts().implicitlyWait(count, TimeUnit.SECONDS);\n\t\tboolean present = true;\n\t\tif(this.get().size() == 0){\n\t\t\tpresent = false;\n\t\t}\n\t\twb_driver.manage().timeouts().implicitlyWait(WaitTimeConstants.WAIT_TIME_LONG, TimeUnit.SECONDS);\n\t\treturn present;\n\t}", "title": "" }, { "docid": "3461d9cee1018f6862adf13ae428342d", "score": "0.60876036", "text": "public void waitForElementPresentByID(String Id) {\r\n\r\n\t\twaitForElementPresent(By.id(Id));\r\n\r\n\t}", "title": "" }, { "docid": "d87db01276fb7c6740d977bd4435895c", "score": "0.6083159", "text": "public static void waitForAlertPresent(long time) {\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.alertIsPresent()); }", "title": "" } ]
9a2c364be4ff06e6043d84421afafa3e
Called when there is a database version mismatch meaning that the version of the database on disk needs to be upgraded to the current version
[ { "docid": "9fb359554ba0c9be42fdaa2d906735b6", "score": "0.61002284", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n Log.w(\"DroidMazeDbAdapter\", \"Upgrading from version \"+ oldVersion +\" to \"+ newVersion +\", which will destroy all old data\");\n if (mDatastore.onDatastoreUpgrade(db, oldVersion, newVersion)) {\n return ;\n }\n // Upgrade the existing database to conform to the new version. Multiple previous versions can be handled by comparing _oldVersion and _newVersion values\n db.execSQL(SQL_GAMEPLAYERPROFILE_DROP_TABLE);\n // The simplest case is to drop the old table and create a new one.\n // Create a new one.\n onCreate(db);\n }", "title": "" } ]
[ { "docid": "6ed40678ccd9d785f43eac8d845fe98d", "score": "0.69513613", "text": "private boolean internalUpgrade( int latestVersion )\n throws DBUpgradeException\n {\n\n ResultSet rs = null;\n Statement statement = null;\n\n try\n {\n sqlexec.getConnection().setAutoCommit( false );\n\n int version = getVersion( latestVersion );\n int toVersion = version + 1;\n\n if ( version == latestVersion )\n {\n //no more upgrade to do\n return true;\n }\n\n DBUpgrade upgrade = this.getUpgrader( version, toVersion );\n\n try\n {\n log.info( \"Database Upgrade: \" + config.getDialect() + \":\" + upgrade );\n upgrade.upgradeDB( sqlexec, config.getDialect() );\n }\n catch ( Exception e )\n {\n log.error( e );\n sqlexec.rollbackQuietly();\n throw new DBUpgradeException( \"Failed to upgrade from version: \" + version + \" to \" + toVersion, e );\n }\n\n statement = this.getConnection().createStatement();\n\n rs = statement.executeQuery( \"SELECT distinct(\" + config.getVersionColumnName() + \") FROM \"\n + config.getVersionTableName() );\n\n if ( !rs.next() )\n {\n sqlexec.rollbackQuietly();\n throw new DBUpgradeException( \"Unable to look up version info in database after upgrade\" );\n }\n else\n {\n int currentDBVersion = rs.getInt( 1 );\n\n if ( currentDBVersion != toVersion )\n {\n sqlexec.rollbackQuietly();\n throw new DBUpgradeException( \"Version in database is: \" + currentDBVersion\n + \" which is not corrected incremented after upgrading from: \" + currentDBVersion );\n }\n }\n\n //all good\n sqlexec.commit();\n }\n catch ( SQLException e )\n {\n //more likely version table was not created during the first upgrade at version 0\n sqlexec.rollbackQuietly();\n throw new DBUpgradeException( \"Failed to upgrade due to database exception\", e );\n }\n finally\n {\n DbUtils.closeQuietly( rs );\n DbUtils.closeQuietly( statement );\n }\n\n return false;\n }", "title": "" }, { "docid": "11fde25e0937e5015f2ab8575d790c9a", "score": "0.69160575", "text": "@Override\n\t\tpublic void onDowngrade(\n\t\t\t\tSQLiteDatabase db,\n\t\t\t\tint oldVersion,\n\t\t\t\tint newVersion) {\n\t\t}", "title": "" }, { "docid": "11fde25e0937e5015f2ab8575d790c9a", "score": "0.69160575", "text": "@Override\n\t\tpublic void onDowngrade(\n\t\t\t\tSQLiteDatabase db,\n\t\t\t\tint oldVersion,\n\t\t\t\tint newVersion) {\n\t\t}", "title": "" }, { "docid": "f61bf221e123b8d0c4d5a41e6fb3aa4b", "score": "0.68580294", "text": "public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "66353e88eb72be1f0c3df0cd25e02417", "score": "0.6731548", "text": "public static void incrementDatabaseVersion(){\n DATABASE_VERSION++;\n }", "title": "" }, { "docid": "e8891ffd063b605010fcd1bcb821ae92", "score": "0.6691076", "text": "@Override\n public void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "e8891ffd063b605010fcd1bcb821ae92", "score": "0.6691076", "text": "@Override\n public void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "42d6c4547201c817cb57e023df83e4f1", "score": "0.6667227", "text": "@Override\n public void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "f5445ec8c27e3fc02a70801ad7d3a710", "score": "0.66586417", "text": "@Override\r\n\t\t\t\t\tpublic void onUpgrade(DbManager db, int oldVersion, int newVersion)\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "title": "" }, { "docid": "7b9c8cb15473d8faf4c7f029b48880d8", "score": "0.6557039", "text": "@Override\n public void onDowngrade(SQLiteDatabase dbDowngrade, int oldVersion, int newVersion) {\n dbDowngrade.setVersion(oldVersion);\n }", "title": "" }, { "docid": "80fa438e7e47645fa3b1b0a84e95707c", "score": "0.65175664", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n Log.d(Main.LOGTAG, \"Upgrade database \" + oldVersion + \",\" + newVersion);\n /*try {\n\t\t} catch (SQLException e) {\n\t\t\tLog.e(DatabaseHelper.class.getName(), \"Can't drop databases\", e);\n\t\t\tthrow new RuntimeException(e);\n\t\t}*/\n }", "title": "" }, { "docid": "da2814dcce6102745bc90a9841200daf", "score": "0.646139", "text": "static void upgrade(SQLiteDatabase db, int oldDatabaseVersion, int newDatabaseVersion) {\n\t\tLogger.debug(TAG, \"Upgrading Course table from version \"+oldDatabaseVersion+\" to \"+newDatabaseVersion);\n\t\t\n\t\tfinal int oldTableSchemaVersion = oldDatabaseVersion & SCHEMA_MASK;\n\t\tfinal int newTableSchemaVersion = newDatabaseVersion & SCHEMA_MASK;\n\n\t\t/*\n\t\t * TODO add if blocks like this if(oldTableSchemaVersion ==\n\t\t * INITIAL_SCHEMA) upgradeFromInitialSchema(newTableSchemaVersion); //do\n\t\t * the actual upgrade else throw new NotImplementedError(\n\t\t * \"The schema has changed but there was now upgrade routine implemented\"\n\t\t * )\n\t\t */\n\n\t\tdrop(db);\n\t\tcreate(db);\n\t}", "title": "" }, { "docid": "bdfa36b7ddb2901748ddae54bc0d7faf", "score": "0.64383024", "text": "@Override\n public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n onCreate(db);\n }", "title": "" }, { "docid": "416387db10e16b4d93364f9eca98289b", "score": "0.64376074", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (oldVersion < newVersion) {\n Log.w(GsbSQLiteOpenHelper.class.getName(), \"upgrade GSB DB \" + oldVersion + \" to \" + newVersion);\n // db.execSQL(\"DROP DATABASE IF EXISTS \" + DB_NAME);\n this.context.deleteDatabase(DB_NAME);\n copyDataBase();\n\n }\n\n\n }", "title": "" }, { "docid": "c42778418b716ca8700d81103ef320e4", "score": "0.6423356", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVer, int newVer) {\n }", "title": "" }, { "docid": "d9c0b060cbdafe389c92665d2451b974", "score": "0.639732", "text": "public void upgradeDatabase(Configuration configuration) {\n\t\tif (configuration.getMonitoringVersion() == null || configuration.getMonitoringVersion().isEmpty()) {\n\t\t\tconfiguration.setMonitoringVersion(\"2.1\");\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tupdate(\"update monit_check set condition_value = condition\");\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif(configuration.getMonitoringVersion().equals(\"2.2\")) {\n\t\t\t// this was error\n\t\t\tconfiguration.setMonitoringVersion(\"2.1\");\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif (configuration.getMonitoringVersion().equals(\"2.1\")) {\n\t\t\tconfiguration.setDefaultSpiderCheckInterval(60);\n\t\t\tconfiguration.setDefaultSendEmails(true);\n\t\t\tconfiguration.setMonitoringVersion(\"2.1.1\");\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif (configuration.getMonitoringVersion().equals(\"2.1.1\")) {\n\t\t\tconfiguration.setMonitoringVersion(\"2.1.2\");\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif (configuration.getMonitoringVersion().equals(\"2.1.2\")) {\n\t\t\tconfiguration.setInfoMessage(\"Please don't monitor my websites (like javavids.com and sitemonitoring.sourceforge.net). Lot's of people started doing it and effectively DDOSed them. If you monitor them anyway, your IP address will be blocked!\");\n\t\t\tconfiguration.setUserAgent(\"sitemonitoring http://sitemonitoring.sourceforge.net\");\n\t\t\tconfiguration.setMonitoringVersion(\"2.1.3\");\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif (configuration.getMonitoringVersion().equals(\"2.1.3\")) {\n\t\t\tconfiguration.setMonitoringVersion(\"2.1.4\");\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif (configuration.getMonitoringVersion().equals(\"2.1.4\")) {\n\t\t\tconfiguration.setMonitoringVersion(\"2.1.6\");\n\t\t\tconfiguration.setDefaultSendEmails(true);\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif (configuration.getMonitoringVersion().equals(\"2.1.6\")) {\n\t\t\tconfiguration.setMonitoringVersion(\"2.1.7\");\n\t\t\tconfiguration.setEmailFrom(configuration.getAdminEmail());\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif (configuration.getMonitoringVersion().equals(\"2.1.7\")) {\n\t\t\tconfiguration.setMonitoringVersion(\"2.1.8\");\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif (configuration.getMonitoringVersion().equals(\"2.1.8\")) {\n\t\t\tconfiguration.setMonitoringVersion(\"2.1.9\");\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif (configuration.getMonitoringVersion().equals(\"2.1.9\")) {\n\t\t\tconfiguration.setMonitoringVersion(\"2.1.10\");\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif (configuration.getMonitoringVersion().equals(\"2.1.10\")) {\n\t\t\tconfiguration.setMonitoringVersion(\"2.1.11\");\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif (configuration.getMonitoringVersion().equals(\"2.1.11\")) {\n\t\t\tconfiguration.setMonitoringVersion(\"2.1.12\");\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t\tif (configuration.getMonitoringVersion().equals(\"2.1.12\")) {\n\t\t\tconfiguration.setMonitoringVersion(\"2.1.13\");\n\t\t\tconfigurationService.saveExcludingPassword(configuration);\n\t\t\tconfiguration = configurationService.find();\n\t\t}\n\t}", "title": "" }, { "docid": "ba6132947679ef1a0c4e20cfc411f0df", "score": "0.63734484", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n if(oldVersion == 1 && newVersion == 2){\n // Upgrade the database\n }\n }", "title": "" }, { "docid": "38083a1332d69c85035efa94b94d4a7e", "score": "0.63663036", "text": "@Override\n public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n onUpgrade(db, oldVersion, newVersion);\n\n }", "title": "" }, { "docid": "94c3ec1b4c3423c21ac875cb73433cac", "score": "0.6366198", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n\n Log.i(LOG_TAG, \"onUpgrade\");\n //GenericDBUpgradeHelper upgrader = new GenericDBUpgradeHelper(this);\n // dropTables(connectionSource);\n // after we drop the old databases, we create the new ones\n // onCreate(db, connectionSource);\n int curVer = oldVersion;\n while (curVer < newVersion) {\n curVer++;\n switch (curVer) {\n case 2: {\n // Upgrade from V1 to V2\n //upgrader.upgradeFromVersion1to2();\n break;\n }\n case 3: {\n // Upgrade from V2 to V3\n break;\n }\n case 4: {\n // Upgrade from V3 to V4\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "b46022139473ebe4b9ed908b7d6d9b0f", "score": "0.63197744", "text": "public Boolean onDatastoreUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n return false;\n }", "title": "" }, { "docid": "00cdaccc42853a2e24bd8bdbed2e212d", "score": "0.63015944", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource,\n\t\t\tint oldVersion, int newVersion) {\n\t\ttry {\n\t\t\tif(init)\n\t\t\t\treturn;\n\t\t\t\n\t\t\tLog.i(GlobalVar.TAG, \"数据库版本更新 oldVersion:\"+oldVersion+\" newVersion:\"+newVersion);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "c10f4776a717c24244da6f93a0dd3750", "score": "0.6280561", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n Log.e(\"\", \"oldVersion:\"+oldVersion+\"---->\"+\"newVersion:\"+newVersion);\n /**\n * GC850.CN.GAP.V03.00.04\n * DB->1001\n * Insert Fall Table\n */\n// if(oldVersion == 1 & newVersion == 1001){\n// if(!(tabIsExist(db, TABLE_851001.TABLE_NAME))){\n// db.execSQL(TABLE_851001.SQL_CREATE_TABLE);\n// TABLE_851001(db);\n// }\n// if(!(tabIsExist(db, TABLE_851301.TABLE_NAME))){\n// db.execSQL(TABLE_851301.SQL_CREATE_TABLE);\n// TABLE_851301(db);\n// }\n// if(!(tabIsExist(db, TABLE_851302.TABLE_NAME))){\n// db.execSQL(TABLE_851302.SQL_CREATE_TABLE);\n// TABLE_851302(db);\n// }\n// if(!(tabIsExist(db, TABLE_851303.TABLE_NAME))){\n// db.execSQL(TABLE_851303.SQL_CREATE_TABLE);\n// TABLE_851303(db);\n// }\n// if(!(tabIsExist(db, TABLE_851303.TABLE_NAME))){\n// db.execSQL(TABLE_851303.SQL_CREATE_TABLE);\n// TABLE_851303(db);\n// }\n// }\n }", "title": "" }, { "docid": "0b7c13585b4b93a1ae9f0a979914c0c7", "score": "0.6271494", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (oldVersion >= newVersion)\n return;\n\n if (oldVersion == 1) {\n Log.d(\"New Version\", \"Data can be upgraded\");\n }\n\n Log.d(\"Sample Data\", \"onUpgrade : \" + newVersion);\n }", "title": "" }, { "docid": "1b4651683cb1d463b4800f892cd42739", "score": "0.62613034", "text": "public int getDatabaseVersion();", "title": "" }, { "docid": "af2106bae54e9f90c8ac2557e28f2857", "score": "0.62596583", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tsuper.onDowngrade(db, oldVersion, newVersion);\n\t\t\n\t}", "title": "" }, { "docid": "57a2e84d268bc66131b1c1b99b514b44", "score": "0.62494653", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (onUpgradeTriggered.compareAndSet(false, true)) {\n new DatabaseConverterController().onUpgrade(db, oldVersion, newVersion);\n }\n }", "title": "" }, { "docid": "83d0906d9f2a3200a3180d8a947078a3", "score": "0.6222632", "text": "private static void upgradeFromV5ToV6(SQLiteDatabase db) {\n outcomeTableProvider.upgradeOutcomeTableRevision1To2(db);\n }", "title": "" }, { "docid": "644d5b6bef0339a87d2f674360605b16", "score": "0.62225676", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n // The database is still at version 1, so there's nothing to do be done here.\n }", "title": "" }, { "docid": "644d5b6bef0339a87d2f674360605b16", "score": "0.62225676", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n // The database is still at version 1, so there's nothing to do be done here.\n }", "title": "" }, { "docid": "644d5b6bef0339a87d2f674360605b16", "score": "0.62225676", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n // The database is still at version 1, so there's nothing to do be done here.\n }", "title": "" }, { "docid": "644d5b6bef0339a87d2f674360605b16", "score": "0.62225676", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n // The database is still at version 1, so there's nothing to do be done here.\n }", "title": "" }, { "docid": "72ddf6242cd75b305cd39a52558cd588", "score": "0.62108827", "text": "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tLog.v(\"TOY_EXPLOIT\", \"OnUpgrade\");\r\n\t}", "title": "" }, { "docid": "69cd81cf6093fb09fea00dc930a2d2f7", "score": "0.6176668", "text": "private void upgradeTo(SQLiteDatabase db, int version) {\n switch (version) {\n case 1:\n createFirstTable(db);\n break;\n default:\n throw new IllegalStateException(\"Don't know how to upgrade to \" + version);\n }\n }", "title": "" }, { "docid": "74b35a28da0dc6b79dde5242aafd8cd2", "score": "0.61641806", "text": "public void setDBVersion(String DBVersion) {\n this.DBVersion = DBVersion;\n }", "title": "" }, { "docid": "0008bca61d94c9b6acbd848ab996e0cd", "score": "0.6146181", "text": "public void checkpointDB() throws DatabaseException;", "title": "" }, { "docid": "e60a8fd514a087288052b9e6cd19d605", "score": "0.61333746", "text": "public String getDBVersion();", "title": "" }, { "docid": "6be98542ab7290f16abbd39892b6246b", "score": "0.61137366", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (oldVersion != DATABASE_VERSION)\n return; // Invalid downgrade command\n DATABASE_VERSION = newVersion;\n// db.execSQL(SQL_DELETE_ENTRIES);\n onCreate(db);\n }", "title": "" }, { "docid": "c765db685c3577ef8954268a4d54b6b3", "score": "0.61115575", "text": "public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n onUpgrade(db, oldVersion, newVersion);\n }", "title": "" }, { "docid": "c8ae993f6a562f1fa10971e0b213ee01", "score": "0.60880244", "text": "public static void upgradeTable(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (GalleryDBProvider.ACTIVATE_ALL_LOGS) {\n Log.d(LOG_TAG, \"Channels | upgradeTable start\");\n }\n\n if (oldVersion < newVersion) {\n Log.i(LOG_TAG, \"Upgrading from version \" + oldVersion + \" to \" + newVersion\n + \", data will be lost!\");\n\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME + \";\");\n createTable(db);\n return;\n }\n\n\n if (oldVersion != newVersion) {\n throw new IllegalStateException(\"Error upgrading the database to version \"\n + newVersion);\n }\n\n if (GalleryDBProvider.ACTIVATE_ALL_LOGS) {\n Log.d(LOG_TAG, \"Channels | upgradeTable end\");\n }\n }", "title": "" }, { "docid": "f2ede7f85247bb2786133cc06fe43683", "score": "0.6061641", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n try {\n Log.i(DatabaseHelper.class.getName(), \"onUpgrade\");\n TableUtils.dropTable(connectionSource, Order.class, true);\n TableUtils.dropTable(connectionSource, Account.class, true);\n TableUtils.dropTable(connectionSource, Course.class, true);\n TableUtils.dropTable(connectionSource, Live.class, true);\n TableUtils.dropTable(connectionSource, Notice.class, true);\n TableUtils.dropTable(connectionSource, ResourceShare.class, true);\n TableUtils.dropTable(connectionSource, LocalCourse.class, true);\n TableUtils.dropTable(connectionSource, Chapter.class, true);\n TableUtils.dropTable(connectionSource, Reference.class, true);\n\n\n // after we drop the old databases, we create the new ones\n onCreate(db, connectionSource);\n } catch (SQLException e) {\n Log.e(DatabaseHelper.class.getName(), \"Can't drop databases\", e);\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "9314804f784d0a1d5cf3490e158b8848", "score": "0.6055951", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tLog.i(\"BDD\",\"onUpdate\");\n\t\t\n\t}", "title": "" }, { "docid": "c057028fdb77b73837593896a2a1e226", "score": "0.6051347", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase database,\n\t\t\tConnectionSource connectionSource, int oldVersion, int newVersion) {\n\t\t\n\t}", "title": "" }, { "docid": "a13c6d56e329ec23019f3414e4269471", "score": "0.60428756", "text": "public void onUpgrade(SQLiteDatabase db, int oldVerseion, int newVersion){\n Log.v(TAG, \":: Attempting to upgrade the Db\");\n\n Log.v(TAG, \"<<>> DELETING THE CURRENT DB <<>> \" + DATABASE_NAME + \" \" + Contract_Issue.IssueEntry.TABLE_NAME + \" v- \" + DATABASE_VERSION);\n db.execSQL(SQL_DELETE_ENTRIES);\n Log.v(TAG, \"<<>> Creating a NEW DB at version '\" + DATABASE_VERSION + \"' <<>>\");\n //db.execSQL(SQL_CREATE_ENTRIES);\n onCreate(db);\n }", "title": "" }, { "docid": "1e4f88520ea9c466ba0c527808ca761b", "score": "0.60423297", "text": "void onMigrate(int toVersion);", "title": "" }, { "docid": "94b2c208537b586e026bcc409e395024", "score": "0.60311234", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n try {\n Log.i(DBHelper.class.getName(), \"onUpgrade\");\n TableUtils.dropTable(connectionSource, Auditorium.class, true);\n TableUtils.dropTable(connectionSource, Calendar.class, true);\n TableUtils.dropTable(connectionSource, ConfigOption.class, true);\n TableUtils.dropTable(connectionSource, Discipline.class, true);\n TableUtils.dropTable(connectionSource, Lesson.class, true);\n TableUtils.dropTable(connectionSource, LessonLogEvent.class, true);\n TableUtils.dropTable(connectionSource, Ring.class, true);\n TableUtils.dropTable(connectionSource, Student.class, true);\n TableUtils.dropTable(connectionSource, StudentGroup.class, true);\n TableUtils.dropTable(connectionSource, StudentsInGroups.class, true);\n TableUtils.dropTable(connectionSource, Teacher.class, true);\n TableUtils.dropTable(connectionSource, TeacherForDiscipline.class, true);\n // after we drop the old databases, we create the new ones\n onCreate(db, connectionSource);\n } catch (SQLException e) {\n Log.e(DBHelper.class.getName(), \"Can't drop databases\", e);\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "3c842115dc5a9602d48d545519fb9b88", "score": "0.6024086", "text": "private void initDB(DatabaseManager dbMan, SnapshotManager snapMan) throws DatabaseException {\n if (snapVersionDB == null)\n try {\n snapVersionDB = dbMan.createDatabase(SNAP_VERSIONS_DB_NAME, 1);\n } catch (BabuDBException exc) {\n \n if (exc.getErrorCode() == ErrorCode.DB_EXISTS)\n try {\n snapVersionDB = dbMan.getDatabase(SNAP_VERSIONS_DB_NAME);\n } catch (BabuDBException exc2) {\n throw new DatabaseException(exc2);\n }\n \n // if a replication failure occurred, wait and retry\n // else if (exc.getErrorCode() == ErrorCode.REPLICATION_FAILURE)\n // {\n //\n // Logging.logMessage(\n // Logging.LEVEL_INFO,\n // Category.storage,\n // this,\n // \"could not initialize database because of a replication failure: %s, will retry after %d ms\",\n // exc.toString(), RETRY_PERIOD);\n //\n // try {\n // Thread.sleep(RETRY_PERIOD);\n // initDB(dbMan, snapMan);\n // } catch (InterruptedException e1) {\n // }\n //\n // }\n \n else\n throw new DatabaseException(exc);\n }\n \n assert (snapVersionDB != null);\n \n try {\n \n Transaction txn = dbMan.createTransaction();\n txn.createDatabase(VERSION_DB_NAME, 3);\n \n // if the creation succeeds, set the version number to the current\n // MRC DB version\n byte[] verBytes = ByteBuffer.wrap(new byte[4]).putInt((int) VersionManagement.getMrcDataVersion()).array();\n txn.insertRecord(VERSION_DB_NAME, VERSION_INDEX, VERSION_KEY.getBytes(), verBytes);\n dbMan.executeTransaction(txn);\n \n } catch (BabuDBException e) {\n \n if (e.getErrorCode() == ErrorCode.DB_EXISTS) {\n \n Database verDB = null;\n try {\n verDB = dbMan.getDatabase(VERSION_DB_NAME);\n } catch (BabuDBException e1) {\n throw new DatabaseException(e1);\n }\n \n // database already exists\n if (Logging.isDebug())\n Logging.logMessage(Logging.LEVEL_DEBUG, Category.storage, this, \"database loaded from '%s'\",\n config.getBaseDir());\n \n try {\n \n // retrieve the database version number\n byte[] verBytes = verDB.lookup(VERSION_INDEX, VERSION_KEY.getBytes(), null).get();\n int ver = ByteBuffer.wrap(verBytes).getInt();\n \n // check the database version number\n if (ver != VersionManagement.getMrcDataVersion()) {\n \n String errMsg = \"Wrong database version. Expected version = \"\n + VersionManagement.getMrcDataVersion() + \", version on disk = \" + ver;\n \n Logging.logMessage(Logging.LEVEL_CRIT, this, errMsg);\n if (VersionManagement.getMrcDataVersion() > ver)\n Logging.logMessage(\n Logging.LEVEL_CRIT,\n this,\n \"Please create an XML dump with the old MRC version and restore the dump with this MRC, or delete the database if the file system is no longer needed.\");\n \n throw new DatabaseException(errMsg, ExceptionType.WRONG_DB_VERSION);\n }\n \n } catch (Exception exc) {\n Logging.logMessage(Logging.LEVEL_CRIT, this,\n \"The MRC database is either corrupted or outdated. The expected database version for this server is \"\n + VersionManagement.getMrcDataVersion());\n throw new DatabaseException(exc);\n }\n \n // initialize all volumes\n initVolumes(dbMan, snapMan);\n \n }\n \n else\n throw new DatabaseException(e);\n \n } finally {\n initialized.set(true);\n }\n }", "title": "" }, { "docid": "bff1e9562fc533249d6a09968e94d2fc", "score": "0.60240674", "text": "@Impure\n @Override\n public void onUpgrade(@Nonnull SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "ac9061c1d356d956acee7fa2ae2db3f2", "score": "0.60202295", "text": "@Override\n public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion)\n {\n db.execSQL(\"DROP TABLE IF EXISTS '\" + TABLE_MESSAGES + \"'\");\n db.execSQL(\"DROP TABLE IF EXISTS '\" + TABLE_SETTINGS + \"'\");\n db.execSQL(\"DROP TABLE IF EXISTS '\" + TABLE_NOTIFICATIONS + \"'\");\n // Creating tables again\n onCreate(db);\n }", "title": "" }, { "docid": "45b2951df80a1ffbe75e1bcfacf655e2", "score": "0.6018411", "text": "public static void upgradeTable(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (GalleryDBProvider.ACTIVATE_ALL_LOGS) {\n Log.d(LOG_TAG, \"GalleryImages | upgradeTable start\");\n }\n\n if (oldVersion < newVersion) {\n Log.i(LOG_TAG, \"Upgrading from version \" + oldVersion + \" to \" + newVersion\n + \", data will be lost!\");\n\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME + \";\");\n createTable(db);\n return;\n }\n\n\n if (oldVersion != newVersion) {\n throw new IllegalStateException(\"Error upgrading the database to version \"\n + newVersion);\n }\n\n if (GalleryDBProvider.ACTIVATE_ALL_LOGS) {\n Log.d(LOG_TAG, \"GalleryImages | upgradeTable end\");\n }\n }", "title": "" }, { "docid": "ca63123f6d3de7cc45479d745ad1f033", "score": "0.5993265", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tSystem.out.println(\"onUpgrade\");\n\t}", "title": "" }, { "docid": "916979e2a173c55d87a4f5178a22ee46", "score": "0.59855396", "text": "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t}", "title": "" }, { "docid": "6f7cdfee6af0fb3c9492ca40e5b66921", "score": "0.5970698", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "12471f6dd6fc5d65e64593cb59b0cc2b", "score": "0.5969582", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n }", "title": "" }, { "docid": "12471f6dd6fc5d65e64593cb59b0cc2b", "score": "0.5969582", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n }", "title": "" }, { "docid": "442ecf6be286f2276db124ae760a0248", "score": "0.5963044", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n Log.w(\"SQLite\", \"Updating from version \" + oldVersion + \" to version \" + newVersion);\n }", "title": "" }, { "docid": "477add3bc695f0c209aaf31fe738ccf6", "score": "0.5962838", "text": "@Test\n public void checkDatabaseVersion() {\n Context context = ApplicationProvider.getApplicationContext();\n db = new DatabaseHelper(context);\n qDb = new QuizDatabaseHelper(context);\n assertEquals(db.getReadableDatabase().getVersion(), 1);\n assertEquals(qDb.getReadableDatabase().getVersion(), 1);\n }", "title": "" }, { "docid": "e2288e628bc215456ea4b72e4b212a3e", "score": "0.5961023", "text": "@Override\n\tpublic void downgrade(EOEditingContext arg0, ERXMigrationDatabase arg1)\n\t throws Throwable\n\t{\n\n\t}", "title": "" }, { "docid": "2a627a7b19d98b9ec94b035a4060d76a", "score": "0.59583735", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n // Later put code to update DB\n }", "title": "" }, { "docid": "6b19a726da1af5526f680f481c4cab36", "score": "0.5955701", "text": "@Override\n public void checkVersion() {\n // Does nothing. (Version is always compatible since it's in memory)\n }", "title": "" }, { "docid": "d91f48915398c8179400703cfe7b956d", "score": "0.59425855", "text": "protected void verifyOldVersionsCleaned() throws Exception {\n boolean retry;\n\n try {\n runVacuumSync();\n\n // Check versions.\n retry = !checkOldVersions(false);\n }\n catch (Exception e) {\n U.warn(log(), \"Failed to perform vacuum, will retry.\", e);\n\n retry = true;\n }\n\n if (retry) { // Retry on a stable topology with a newer snapshot.\n awaitPartitionMapExchange();\n\n waitMvccQueriesDone();\n\n runVacuumSync();\n\n checkOldVersions(true);\n }\n }", "title": "" }, { "docid": "a966e7f7cc8205e277909ecb7a76c3c4", "score": "0.59420705", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tLog.w(\"DB >>> \", \"Upgrading database from version \" + oldVersion\n\t\t\t\t+ \" to \" + newVersion + \", which will destroy all old data\");\n\t}", "title": "" }, { "docid": "9cacdb4d054fd6c50ff1bfcb2e7fc732", "score": "0.5923352", "text": "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)\n\t\t{\n\t\t}", "title": "" }, { "docid": "e82186c1bdd5f263f0f45023eb45c61c", "score": "0.5914646", "text": "com.google.cloud.alloydb.v1alpha.DatabaseVersion getSupportedDbVersions(int index);", "title": "" }, { "docid": "f2746ec34c2a5f9354d95f747da0ae83", "score": "0.5913457", "text": "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t\t\t//drop tables\n\t\t\tdb.execSQL(\"drop table if exists \"+ TABLE_NAME_CLIENT);\n\t\t\tdb.execSQL(\"drop table if exists \"+ TABLE_NAME_TRANSACTION_DETAIL);\n\t\t\tdb.execSQL(\"drop table if exists \"+ TABLE_NAME_APPDATA);\t\t\t\t\n\t\t\t\n\t\t\t//create databases again\n\t\t\tthis.onCreate(db);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c944eefc9b8ba35e0a8ac8817c38f752", "score": "0.5909508", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)\n {\n TDLog.Log( TDLog.LOG_DB, \"onUpgrade old \" + oldVersion + \" new \" + newVersion );\n switch ( oldVersion ) {\n case 16:\n db.execSQL( \"ALTER TABLE calibs ADD COLUMN coeff BLOB\" );\n case 17:\n db.execSQL( \"ALTER TABLE calibs ADD COLUMN error REAL default 0\" );\n db.execSQL( \"ALTER TABLE calibs ADD COLUMN max_error REAL default 0\" );\n db.execSQL( \"ALTER TABLE calibs ADD COLUMN iterations INTEGER default 0\" );\n case 18:\n db.execSQL( \"ALTER TABLE calibs ADD COLUMN algo INTEGER default 1\" );\n case 23:\n db.execSQL( \"ALTER TABLE devices ADD COLUMN nickname TEXT default \\\"\\\"\" );\n case 24:\n db.execSQL( \"ALTER TABLE calibs ADD COLUMN stddev REAL default 0\" );\n case 25:\n case 26:\n /* current version */\n default:\n break;\n }\n }", "title": "" }, { "docid": "016a4a558b0ae98cd0d7d1e53ecaaf92", "score": "0.5900479", "text": "@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\r\n }", "title": "" }, { "docid": "bea05111158636407fa8e3df887fd537", "score": "0.59001964", "text": "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "bea05111158636407fa8e3df887fd537", "score": "0.59001964", "text": "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "bea05111158636407fa8e3df887fd537", "score": "0.59001964", "text": "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "6db60c44bf63be1055ecbf30a7d75831", "score": "0.5890276", "text": "@Override\n\t\t public void onUpgrade(SQLiteDatabase db, int oldVersion, \n\t\t int newVersion) \n\t\t { }", "title": "" }, { "docid": "926173f36626e18a8632272b4eebc18d", "score": "0.5883917", "text": "@Override\n\tpublic void onUpgrade(\n\t\t\tSQLiteDatabase db,\n\t\t\tConnectionSource connectionSource,\n\t\t\tint oldVersion,\n\t\t\tint newVersion) {\n\t\t// TODO: Alter appropriate database tables\n\t\tLog.i(LOG_TAG, \"onUpgrade\");\n\t}", "title": "" }, { "docid": "60cd407dd88eff1a5daf025c938b4103", "score": "0.587935", "text": "@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "90f89c537ba4007b93900f1afa27494a", "score": "0.58667845", "text": "@Override\n \tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n \t\t\n \t}", "title": "" }, { "docid": "eec8bcf8f0748b4e2588794ceb6ca82e", "score": "0.5839911", "text": "public static void upgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\trecreate(db);\t\r\n\t}", "title": "" }, { "docid": "64e4a21751c971b42e952afc01d1b96a", "score": "0.5834269", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n try {\n TableUtils.dropTable(connectionSource, TypeInfo.class, true);\n TableUtils.dropTable(connectionSource, StationInfo.class, true);\n // after we drop the old databases, we create the new ones\n onCreate(db, connectionSource);\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "cb97818147c6d8bbaf42568c1946ff04", "score": "0.583368", "text": "@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\r\n\r\n }", "title": "" }, { "docid": "f7764c87450f78c2afc898e3c1f89aa8", "score": "0.5823175", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "f7764c87450f78c2afc898e3c1f89aa8", "score": "0.5823175", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "f7764c87450f78c2afc898e3c1f89aa8", "score": "0.5823175", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "f7764c87450f78c2afc898e3c1f89aa8", "score": "0.5823175", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "f7764c87450f78c2afc898e3c1f89aa8", "score": "0.5823175", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "f7764c87450f78c2afc898e3c1f89aa8", "score": "0.5823175", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "f7764c87450f78c2afc898e3c1f89aa8", "score": "0.5823175", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "f7764c87450f78c2afc898e3c1f89aa8", "score": "0.5823175", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "f7764c87450f78c2afc898e3c1f89aa8", "score": "0.5823175", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "f7764c87450f78c2afc898e3c1f89aa8", "score": "0.5823175", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "f7764c87450f78c2afc898e3c1f89aa8", "score": "0.5823175", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "1ebe5718774b4c95bc9ee5d1f0ee565c", "score": "0.5823149", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}", "title": "" }, { "docid": "1ebe5718774b4c95bc9ee5d1f0ee565c", "score": "0.5823149", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}", "title": "" }, { "docid": "1ebe5718774b4c95bc9ee5d1f0ee565c", "score": "0.5823149", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}", "title": "" }, { "docid": "1ebe5718774b4c95bc9ee5d1f0ee565c", "score": "0.5823149", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}", "title": "" }, { "docid": "1ebe5718774b4c95bc9ee5d1f0ee565c", "score": "0.5823149", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}", "title": "" }, { "docid": "1ebe5718774b4c95bc9ee5d1f0ee565c", "score": "0.5823149", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}", "title": "" }, { "docid": "1ebe5718774b4c95bc9ee5d1f0ee565c", "score": "0.5823149", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}", "title": "" }, { "docid": "1ebe5718774b4c95bc9ee5d1f0ee565c", "score": "0.5823149", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}", "title": "" }, { "docid": "1ebe5718774b4c95bc9ee5d1f0ee565c", "score": "0.5823149", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}", "title": "" }, { "docid": "674c68728adcae73a9649bb3eaa8e475", "score": "0.5822043", "text": "@Override\n\t\tpublic void onUpgrade(\n\t\t\t\tSQLiteDatabase db,\n\t\t\t\tint oldVersion,\n\t\t\t\tint newVersion) {\n\t\t}", "title": "" }, { "docid": "71c22e2b40809fb9cfeb55f6f0597114", "score": "0.5819745", "text": "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource,\n\t\t\tint oldVersion, int newVersion) {\n\t\ttry {\n\t\t\tLog.i(DatabaseHelper.class.getName(), \"onUpgrade\");\n\t\t\tTableUtils.dropTable(connectionSource, Timeline.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Baby.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, ActiveOperation.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Breast.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, ChangeDiaper.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Drink.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Feed.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Formula.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Health.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, HelpCenter.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Learn.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, MilkingBreast.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Pain.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Purchase.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Hospital.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Tooth.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Vaccine.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Vitamin.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Growth.class, true);\n\t\t\t// after we drop the old databases, we create the new ones\n\t\t\tonCreate(db, connectionSource);\n\t\t} catch (SQLException e) {\n\t\t\tLog.e(DatabaseHelper.class.getName(), \"Can't drop databases\", e);\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "bc1684d2d04cd569d5449a2937067f41", "score": "0.5817667", "text": "@Override\r\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\tLog.i(LOG_TAG, \"Database version changed sqlite will be upgraded and changes will be lost\");\r\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\r\n\t\t\tonCreate(db);\r\n }", "title": "" }, { "docid": "91f68f400697cf04cb6fd8f73a731aa7", "score": "0.5815575", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion,\n int newVersion) {\n }", "title": "" } ]
3a75541de40705e2248846b2cbcb431e
Creates the icon url
[ { "docid": "a16e40e5fd969012849a1e48522bbf1a", "score": "0.7309979", "text": "private String getIconURL(String icon) {\n return BASE_IMAGE_URL + icon + BASE_IMAGE_URL_EXTENSION;\n }", "title": "" } ]
[ { "docid": "4a90588740e9895ae3f606cb0317c890", "score": "0.7736767", "text": "String getIconUrl();", "title": "" }, { "docid": "7395e8c63a88dd26bb9815b20ff6015c", "score": "0.7145029", "text": "Uri getSourceIconUri();", "title": "" }, { "docid": "9b42415cfc42617560faf3fef7eefabe", "score": "0.6853266", "text": "@Override\n\tpublic String getUrlIcon() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6d140e8026a8dd3c2c5a4486543cbebc", "score": "0.66932863", "text": "Icon icon();", "title": "" }, { "docid": "8b5b40c9b4f98000f276150ff9df47f6", "score": "0.6692888", "text": "String getIcon();", "title": "" }, { "docid": "b4d4928c3ed8534fdccdfe2706acff82", "score": "0.66060644", "text": "public static HtmlTag iconLink() {\n\t\tHtmlTag tag = new HtmlTag(\"link\") {\n\t\t\tprotected boolean needEndTag() {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\t\ttag.addAttribute(\"rel\", \"icon\");\n\t\ttag.addAttribute(\"type\", \"image/x-icon\");\n\t\ttag.addAttribute(\"href\", \"favicon.ico\");\n\t\treturn tag;\n\t}", "title": "" }, { "docid": "c4a219a62f2d0fb1a2392b1a200f363e", "score": "0.64593965", "text": "public String getIconUrl() {\n return iconUrl;\n }", "title": "" }, { "docid": "c4a219a62f2d0fb1a2392b1a200f363e", "score": "0.64593965", "text": "public String getIconUrl() {\n return iconUrl;\n }", "title": "" }, { "docid": "32aa91382c0055fcc7299a66e022b793", "score": "0.643436", "text": "protected abstract Icon icon ();", "title": "" }, { "docid": "d3ee1b666d7605cd14a28f2fdaa260f6", "score": "0.63765794", "text": "private ImageIcon generateIcon(String type) {\n\t\tif (type.equals(\"\")) {\n\t\t\treturn null;\n\t\t} else if (type.equals(\"red\")) {\n\t\t\treturn new ImageIcon(this.getClass().getResource(\"/images/red.png\"));\n\t\t} else if (type.equals(\"yellow\")) {\n\t\t\treturn new ImageIcon(this.getClass().getResource(\"/images/yellow.png\"));\n\t\t} else if (type.equals(\"green\")) {\n\t\t\treturn new ImageIcon(this.getClass().getResource(\"/images/green.png\"));\n\t\t} else if (type.equals(\"blank\")) {\n\t\t\treturn new ImageIcon(this.getClass().getResource(\"/images/blank.png\"));\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "a2d456ae661da22b5eec23b362c5f561", "score": "0.6361622", "text": "Icon getIcon();", "title": "" }, { "docid": "a2d456ae661da22b5eec23b362c5f561", "score": "0.6361622", "text": "Icon getIcon();", "title": "" }, { "docid": "c37f01c824411787da6ad2dacaed0c52", "score": "0.63463515", "text": "protected Widget createIcon ()\n {\n return null;\n }", "title": "" }, { "docid": "980a6ec822eb89d9261608fb50b8e3e4", "score": "0.6255517", "text": "public String getIcon();", "title": "" }, { "docid": "3b1f34f20b6040bbe044aa522183b09b", "score": "0.62405604", "text": "public java.lang.String getIcon(){\n return localIcon;\n }", "title": "" }, { "docid": "08b51734b589d8c7554e7fa4fd755a79", "score": "0.6230391", "text": "public int SetIcon(String a_url){\n // Initialize resource ID\n int resourceID = 0;\n\n // Switch method to parse the URL of an achievement object icon\n switch (a_url){\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/71/716038a99395c8ce4a936d2b110e5ea491817689.png?4.56\":\n resourceID = R.drawable.crushenemies;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/13/13d8e8a2ef5c94ea1d71a8f84099cde45fb8999a.png?4.56\":\n resourceID = R.drawable.bodiesfloor;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/ed/ed2c99c5517f550fb7f9a5a0639db96553e64d86.png?4.56\":\n resourceID = R.drawable.logpld;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/bf/bf16585169850ca46ecd9d3e3a946b8ae8547733.png?4.56\":\n resourceID = R.drawable.logmnk;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/fc/fc3fcef14dc06a4995c6c3c33099c2e375c7a6e9.png?4.56\":\n resourceID = R.drawable.logpld;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/64/648453ce341355f946adc7aea017c32eb5b68e09.png?4.56\":\n resourceID = R.drawable.logdrg;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/af/af32e79d064c849b0af8716d408e2a389c4d4a83.png?4.56\":\n resourceID = R.drawable.logbrd;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/a8/a81f3fc18baa1fc9cf3c0a5dbb65d677c2b26ab1.png?4.56\":\n resourceID = R.drawable.lognin;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/59/5952281933e401e95c899e3f526154f2fcf7aef1.png?4.56\":\n resourceID = R.drawable.logwhm;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/05/058a5823cbf62cffce0c0440a8aa4b18ef53fc8c.png?4.56\":\n resourceID = R.drawable.logsmn;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/12/12893813a3497f9d5096e5ebdd68715b711bf441.png?4.56\":\n resourceID = R.drawable.logblm;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/f9/f9eb0a43cb351d63722abe103a86591b7fce1c83.png?4.56\":\n resourceID = R.drawable.fateachieve;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/dc/dc5ad3ef107c45c4040375a526a87531858fe680.png?4.56\":\n resourceID = R.drawable.datedestiny;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/d2/d24bb569ff04d813bf7f19d6ccdf1906699cd02f.png?4.56\":\n resourceID = R.drawable.buddies;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/ef/ef1fe5228816143c4b1c37832fa4ea911da2a144.png?4.56\":\n resourceID = R.drawable.strangers;\n break;\n case \"https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/b5/b5f99a1cb360775812dbc2870ca8286b567d1764.png?4.56\":\n resourceID = R.drawable.tanklesspld;\n break;\n default:\n resourceID = 0;\n }\n\n // Returns the appropriate resource ID\n return resourceID;\n\n }", "title": "" }, { "docid": "6dc4652e69ef61aabb5ac39aba21661f", "score": "0.622834", "text": "@Override\n\tpublic URL getIconURL() {\n\t\treturn appConfig == null ? getClass().getResource(\"/icons/imagej-256.png\") : appConfig.getIconURL();\n\t}", "title": "" }, { "docid": "c3a6a7fe27a4707ede9254f58160f602", "score": "0.62008256", "text": "private void addIcon(ShortcutInfoCompat.Builder builder) {\n if (mediaID > 0) {\n if (bitmap != null) {\n // Use bitmap as Icon\n builder.setIcon(IconCompat.createWithAdaptiveBitmap(bitmap));\n } else if(backupIcon != null) {\n builder.setIcon(backupIcon);\n } else if (backupBitmap != null) {\n builder.setIcon(IconCompat.createWithAdaptiveBitmap(backupBitmap));\n } else if (backupResourceID > 0) {\n builder.setIcon(IconCompat.createWithResource(context, backupResourceID));\n } else {\n Log.e(getClass().getSimpleName(), \"Media download failed and no backup specified. Using Wilson Logo\");\n builder.setIcon(IconCompat.createWithResource(context, R.drawable.icon));\n }\n } else if (icon != null) {\n builder.setIcon(icon);\n } else if (bitmap != null) {\n builder.setIcon(IconCompat.createWithAdaptiveBitmap(bitmap));\n } else if (resourceID > 0) {\n builder.setIcon(IconCompat.createWithResource(context, resourceID));\n } else {\n Log.e(getClass().getSimpleName(), \"No icon specified. Using Wilson logo\");\n builder.setIcon(IconCompat.createWithResource(context, R.drawable.icon));\n }\n }", "title": "" }, { "docid": "8eb2e71fee43b4a656f7096d13c2c125", "score": "0.617758", "text": "ImageDescriptor getAntIconImageDescriptor() {\r\n \ttry {\r\n \t\tURL installURL = getDescriptor().getInstallURL();\r\n \t\tURL url = new URL(installURL,ANT_ICON_RELATIVE_PATH);\r\n \t\treturn ImageDescriptor.createFromURL(url);\r\n \t} catch (MalformedURLException e) {\r\n \t\treturn null;\r\n \t}\r\n }", "title": "" }, { "docid": "d2af833eae599ff9dca4451c590bdd43", "score": "0.6146595", "text": "private ImageViewButton createIcon(String type, String tooltip) {\r\n\t\tImageViewButton imageView = new ImageViewButton();\r\n\t\timageView.getStyleClass().add(type + \"-icon\");\r\n\t\timageView.setPickOnBounds(true);\r\n\t\tTooltip.install(imageView, new Tooltip(tooltip));\r\n\t\treturn imageView;\r\n\t}", "title": "" }, { "docid": "e01054cbc5d45ce32ffc9979f72a0f2a", "score": "0.6131433", "text": "public String getIconURL() {\n return mIconURL;\n }", "title": "" }, { "docid": "4d2618e3f80c78646714d728e8c8b29e", "score": "0.6125742", "text": "public static native String libvlc_renderer_item_icon_uri(libvlc_renderer_item_t p_item);", "title": "" }, { "docid": "dc71941ce83fc846c581a38a562d1ba3", "score": "0.6120854", "text": "public String toIconHtml()\r\n\t{\r\n\t\treturn \"<img class=\\\"edit_button\\\" src=\\\"\" + getIcon() + \"\\\" title=\\\"\" + getLabel() + \"\\\" onclick=\\\"\"\r\n\t\t\t\t+ this.getJavaScriptAction() + \"\\\">\";\r\n\t\t// <img class=\"edit_button\" src=\"generated-res/img/recordview.png\"\r\n\t\t// title=\"view record\" alt=\"edit${offset}\"\r\n\t\t// onClick=\"setInput('${screen.name}_form','_self','','${screen.name}','recordview','iframe'); document.forms.${screen.name}_form.__offset.value='${offset}'; document.forms.${screen.name}_form.submit();\">${readonly}</label>\r\n\t}", "title": "" }, { "docid": "29e64ac815be43e5fefb154668565a0e", "score": "0.61071575", "text": "protected abstract String imageLink();", "title": "" }, { "docid": "5d2017eed1d26cd27bd545596cb0bc4e", "score": "0.6097793", "text": "protected void buildIcon() throws IllegalActionException, NameDuplicationException {\n\t\tnode_icon = new EditorIcon(this, \"_icon\");\n\t\t_circle = new EllipseAttribute(node_icon, \"_circle\");\n\t\t_circle.centered.setToken(\"true\");\n\t\t_circle.width.setToken(\"20\");\n\t\t_circle.height.setToken(\"20\");\n\t\t_circle.fillColor.setToken(this.iconColor);\n\t\t_circle.lineColor.setToken(\"{0.0, 0.0, 0.0, 1.0}\");\n\t\tnode_icon.setPersistent(false);\n\t}", "title": "" }, { "docid": "8a3d6d6c25d81e4644f9bbcc3c39c861", "score": "0.6090085", "text": "public String getIconURL()\n {\n return null;\n }", "title": "" }, { "docid": "695bf4ea60ddefd9079809019d8556d8", "score": "0.6088452", "text": "String getIconName();", "title": "" }, { "docid": "8dd7ed8567ca05b2c4a5a5116bc434a3", "score": "0.60877013", "text": "Drawable getSourceIcon();", "title": "" }, { "docid": "d81cd551552bfe2dd0a9c8b7143d8f66", "score": "0.60870045", "text": "@Override\r\n public ImageIcon icon() {\r\n return tweeter.icon();\r\n }", "title": "" }, { "docid": "754b10e829c47e9bf46c541c2b5c6f68", "score": "0.6086064", "text": "public URIContainer getIcon()\n {\n return _icon;\n }", "title": "" }, { "docid": "93f62024dbd30df5b5b0a206a16f88dd", "score": "0.6055285", "text": "void setIcon(){\n URL pathIcon = getClass().getResource(\"/sigepsa/icono.png\");\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.createImage(pathIcon);\n setIconImage(img);\n }", "title": "" }, { "docid": "6ac3afe46f6f68162a3bb26165832e02", "score": "0.6026253", "text": "@Override\n\tpublic String getUrl() {\n\t\treturn \"http://scoreapp.freeiz.com/img/\"+getName()+\".png\";\n\t}", "title": "" }, { "docid": "5499a06916c697ce18c28729cdf315dd", "score": "0.60018194", "text": "Uri getIconUri(String drawableId);", "title": "" }, { "docid": "d3d35e861ba8dc96a174a998717606cc", "score": "0.59454983", "text": "public String getImageLink();", "title": "" }, { "docid": "38893c81e4f96b4696b5f50370a3b6f9", "score": "0.5940203", "text": "@Override\n public void setIconURI(String sURL) {\n ((IGeoPoint) this.getRenderable()).setIconURI(sURL);\n }", "title": "" }, { "docid": "eeac0a54df8d78569c54baada07d516f", "score": "0.592938", "text": "public URL getIconURL() {\n\t\t\tif (desc != null) {\r\n\t\t\t\treturn desc.getSmallIconURL();\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "023bd59b6280df4a5f347a9a5609bef0", "score": "0.592531", "text": "@Override\n public String getIconURI() {\n return ((IGeoPoint) this.getRenderable()).getIconURI();\n }", "title": "" }, { "docid": "9f26148f35a8d19a35d207beca1f9543", "score": "0.5916847", "text": "public String getIconHtml()\r\n\t{\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn \"<img src=\\\"\" + this.getIcon() + \"\\\"/>\";\r\n\t}", "title": "" }, { "docid": "19560629d4b8358e8666dd08fd305852", "score": "0.5907875", "text": "public abstract Image getIcon();", "title": "" }, { "docid": "b051906d3217b18522bc48052a51248e", "score": "0.5885667", "text": "Drawable getIcone();", "title": "" }, { "docid": "54d8e9a429784cd7546273d2dda283c3", "score": "0.58738726", "text": "public static Image getIcon() {\n\t\treturn ICON;\n\t}", "title": "" }, { "docid": "129a136438c8ccee6dd7c9ab50f3c07a", "score": "0.5863451", "text": "Icon suggestIconFor(Resource r);", "title": "" }, { "docid": "b17134c5bbc245408a003e60c223f0df", "score": "0.5863121", "text": "public void setIconUrl(String iconUrl) {\n this.iconUrl = iconUrl;\n }", "title": "" }, { "docid": "b17134c5bbc245408a003e60c223f0df", "score": "0.5863121", "text": "public void setIconUrl(String iconUrl) {\n this.iconUrl = iconUrl;\n }", "title": "" }, { "docid": "d657110772abd024b5a838fc48a5e767", "score": "0.5853266", "text": "public String getIconURL(int preferredSize)\n {\n return getIconURL();\n }", "title": "" }, { "docid": "63a81c493b3bfc40cddeed61cc0e89ea", "score": "0.5852337", "text": "private void addExcelIcon(Button button) {\n\n Image icon = new Image(MainApp.class.getResource(\"/images/excel-icon.png\").toString(),40, 40, false, false);\n button.setGraphic( new ImageView(icon));\n\n }", "title": "" }, { "docid": "761eecb4343cb9556061fb2c982eedb0", "score": "0.5849385", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"wayamba-university1111111.jpg\")));\n\n }", "title": "" }, { "docid": "acb12ca2c28142c580fe8dc42a815f0e", "score": "0.58427423", "text": "public String getIcon(){\r\n\t\treturn icon;\r\n\t}", "title": "" }, { "docid": "d91339a76b70df26e4130709e38ec5ee", "score": "0.58292645", "text": "public static void makeIconViewCommand()\n \t{\n \t\tCell curCell = WindowFrame.needCurCell();\n \t\tif (curCell == null) return;\n \t\tif (!curCell.isSchematic())\n \t\t{\n \t\t\tJOptionPane.showMessageDialog(TopLevel.getCurrentJFrame(),\n \t\t\t\t\"The current cell must be a schematic in order to generate an icon\",\n \t\t\t\t\t\"Icon creation failed\", JOptionPane.ERROR_MESSAGE);\n \t\t\treturn;\n \t\t}\n \n \t\t// see if the icon already exists and issue a warning if so\n \t\tCell iconCell = curCell.iconView();\n \t\tif (iconCell != null)\n \t\t{\n \t\t\tint response = JOptionPane.showConfirmDialog(TopLevel.getCurrentJFrame(),\n \t\t\t\t\"Warning: Icon \" + iconCell.describe(true) + \" already exists. Create a new version?\");\n \t\t\tif (response != JOptionPane.YES_OPTION) return;\n \t\t}\n makeIconViewNoGUI(curCell, false, false);\n }", "title": "" }, { "docid": "493bd54679a60cd5c9d9e06db4823165", "score": "0.5821011", "text": "private ImageIcon identificar_apariencia(ClsCarta carta)\n{ \n ImageIcon icono= new ImageIcon(getClass().getResource(\"/Vista/imagenes/\"+carta.nombre()+\".png\"));\n \n return icono;\n}", "title": "" }, { "docid": "23f2974814098f28d5d3a9a9ff1a3491", "score": "0.58060706", "text": "String getImageLink() {\n return PRE_PATH + this.imageName;\n }", "title": "" }, { "docid": "2b458b221e03f28743d01e2b50816d0d", "score": "0.5802734", "text": "public void setIcon(String iconImage);", "title": "" }, { "docid": "2805ae41f6689d06f6e2117b2321d06c", "score": "0.5789849", "text": "protected static ImageIcon createImageIcon(String path) {\n// java.net.URL imgURL = JProxyOptPanel.class.getResource(path);\n// if (imgURL != null) {\n// System.out.println(imgURL + \"____\" + path);\n// return new ImageIcon(imgURL);\n// } else {\n// System.err.println(\"couldn't find file:\" + path);\n// return null;\n// }\n ImageIcon icon = new ImageIcon(path);\n return icon;\n }", "title": "" }, { "docid": "00ce0289315e8aeb7c506d15055d9108", "score": "0.57864964", "text": "private Icon getIcon(SummaryReportMessage.Type type) {\r\n switch (type) {\r\n case SUCCESS:\r\n return GUIUtilities.loadIcon(context.getProperty(\"report.item.success.icon.small\"));\r\n case ERROR:\r\n return GUIUtilities.loadIcon(context.getProperty(\"report.item.error.icon.small\"));\r\n case WARNING:\r\n return GUIUtilities.loadIcon(context.getProperty(\"report.item.warning.icon.small\"));\r\n case INFO:\r\n return GUIUtilities.loadIcon(context.getProperty(\"report.item.plain.icon.small\"));\r\n default:\r\n return GUIUtilities.loadIcon(context.getProperty(\"report.item.plain.icon.small\"));\r\n }\r\n }", "title": "" }, { "docid": "0f31782d4013ee66f5d7d6f83b1f1d4d", "score": "0.57846683", "text": "MaterialIcon getIcon();", "title": "" }, { "docid": "b86f52e00fcec905f43aadcae79faec1", "score": "0.5773916", "text": "@Override\r\n public String getShortLinkWithIcon() {\r\n \r\n return this.getGuiSubject().getShortLinkWithIcon();\r\n }", "title": "" }, { "docid": "84868d80941a869e9cc8c0c92c83df62", "score": "0.57683516", "text": "public void setMenuIconUrl(String value) {\n setAttributeInternal(MENUICONURL, value);\n }", "title": "" }, { "docid": "752a18eddd5e98a52d166e696957b832", "score": "0.5765445", "text": "public void getInicialIcon(){\n String path=\"/Monsters/\";\n \n \n path = path.concat(\"espalda_baraja.jpg\");\n URL url = getClass().getResource(path);\n this.carta.setIcon(new ImageIcon(url));\n }", "title": "" }, { "docid": "bba6973a14e9e72d9a11fd3fc33faf8b", "score": "0.5761029", "text": "public void setIcon(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localIconTracker = true;\n } else {\n localIconTracker = true;\n \n }\n \n this.localIcon=param;\n \n\n }", "title": "" }, { "docid": "203f496d742fcb7cb1a31f6f58b007a1", "score": "0.57607245", "text": "protected String iconResource () {\n return \"/org/netbeans/core/resources/frames/editor.gif\"; // NOI18N\n }", "title": "" }, { "docid": "106ec02f01bafad54154df5e4b149075", "score": "0.57453907", "text": "@Override\n public Resource getIcon() {\n return getResource(ComponentConstants.ICON_RESOURCE);\n }", "title": "" }, { "docid": "a7a7f347b751691e075d2f8150bacbb0", "score": "0.57258296", "text": "public static Icon createIcon() {\n final double width = 30;\n PPath pathNode = new PPath( new Line2D.Double( 0, 0, width, 0 ) );\n pathNode.setStroke( STROKE );\n pathNode.setStrokePaint( STROKE_COLOR );\n Image image = pathNode.toImage();\n return new ImageIcon( image );\n }", "title": "" }, { "docid": "b3f59ea0d8e1bca6fcd8a2973d80c38d", "score": "0.57171047", "text": "public String getIcon()\r\n\t{\r\n\t\treturn icon;\r\n\t}", "title": "" }, { "docid": "c6a6c35745c2b9aaa98568b3d06b43f2", "score": "0.57143867", "text": "public static String getIconsDirectory()\n {\n return \"images\" + getFileSeparator() + \"icons\";\n }", "title": "" }, { "docid": "7f4c50b71b76163031c2c131b730503d", "score": "0.5713675", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/pic/fluocell_icon.png\"))); //genaration of fluocll icon\n }", "title": "" }, { "docid": "5d6951b48ece3c1a297d73d55b8b0009", "score": "0.5709748", "text": "@Override\n\tprotected int getWindowIconResourceId() {\n\t\treturn R.drawable.ic_launcher;\n\t}", "title": "" }, { "docid": "5554d7ee6ab181680f635e175248d61f", "score": "0.57065827", "text": "@Override\n public String getImagePath() {\n// return super.getImagePath();\n return \"static/images/blue_beijing.png\";\n }", "title": "" }, { "docid": "3ffca3973d9a45140f63899859947916", "score": "0.56970674", "text": "protected static ImageIcon createImageIcon(String path) {\n\t\tlog.log(Level.INFO, \"Creates the icon for the tab display\");\n\t\tImage imgURL = Toolkit.getDefaultToolkit().getImage(\"images/icon.png\");\n\t\tif (imgURL != null) {\n\t\t\treturn new ImageIcon(imgURL);\n\t\t} else {\n\t\t\tSystem.err.println(\"Couldn't find file: \" + path);\n\t\t\treturn null;\n\t\t}\n\n\t}", "title": "" }, { "docid": "c7c7cad973c5bebd5000d98da866386a", "score": "0.56948274", "text": "private void generateURL(){\n url=URL_TEMPLATE;\n }", "title": "" }, { "docid": "a4ab10edbb2e9a52be90d7dfe52a5cab", "score": "0.56919795", "text": "private static Icon getIcon(String type) {\n\t\treturn Icons.get(\"hdd.png\");\n\t}", "title": "" }, { "docid": "1d481e8cfb948f2d403537b327b687f2", "score": "0.56758183", "text": "@Override\n public String getTexture() {\n return \"stingIcon\";\n }", "title": "" }, { "docid": "58218db82e3f635d09d4c09bb41de538", "score": "0.5674983", "text": "public ImageIcon getIcon() {\n return fileTypeLauncher.getIcon();\n }", "title": "" }, { "docid": "06fe7c49fd7960ca3025cf29a4e5c127", "score": "0.5664715", "text": "public String getIconFileName() {\r\n return dir().exists() ? ICON_PATH : null;\r\n }", "title": "" }, { "docid": "a8816be5146b7d08971398e48af5d51a", "score": "0.56645083", "text": "public String getIconId();", "title": "" }, { "docid": "05a516005436a1f37317d2cdc7771491", "score": "0.56599635", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Icones/shop.png\")));\n }", "title": "" }, { "docid": "a5488abe46019ce679f7044c75ae3bf2", "score": "0.565657", "text": "Icon getCustomIcon(PropertyMap config, Icon defaultIcon);", "title": "" }, { "docid": "db644fd60166ab3c67a87aa268cbac3b", "score": "0.56550616", "text": "private void createIcons() {\n // Sets the Image for white player pieces\n wRook = new ImageIcon(\"./src/chess/wRook.png\");\n wBishop = new ImageIcon(\"./src/chess/wBishop.png\");\n wQueen = new ImageIcon(\"./src/chess/wQueen.png\");\n wKing = new ImageIcon(\"./src/chess/wKing.png\");\n wPawn = new ImageIcon(\"./src/chess/wPawn.png\");\n wKnight = new ImageIcon(\"./src/chess/wKnight.png\");\n //Sets the Image for black player pieces\n bRook = new ImageIcon(\"./src/chess/bRook.png\");\n bBishop = new ImageIcon(\"./src/chess/bBishop.png\");\n bQueen = new ImageIcon(\"./src/chess/bQueen.png\");\n bKing = new ImageIcon(\"./src/chess/bKing.png\");\n bPawn = new ImageIcon(\"./src/chess/bPawn.png\");\n bKnight = new ImageIcon(\"./src/chess/bKnight.png\");\n }", "title": "" }, { "docid": "97f7c99d892e2121e7a03270b94aae7b", "score": "0.5652875", "text": "IconAliasMap build();", "title": "" }, { "docid": "d5d1ff6b87913eeffc619cb8f0aa67e4", "score": "0.5637807", "text": "public String getIcon() {\n return icon;\n }", "title": "" }, { "docid": "d5d1ff6b87913eeffc619cb8f0aa67e4", "score": "0.5637807", "text": "public String getIcon() {\n return icon;\n }", "title": "" }, { "docid": "d5d1ff6b87913eeffc619cb8f0aa67e4", "score": "0.5637807", "text": "public String getIcon() {\n return icon;\n }", "title": "" }, { "docid": "3e58ffc1b55c43e3986d84655bbdec08", "score": "0.5637021", "text": "private void addIcons()\r\n\t{\r\n\t\tnewButton = new JButton(images.newImageIcon);\r\n\t\tnewButton.setPreferredSize(new Dimension(40, 40));\r\n\t\topenButton = new JButton(images.openImageIcon);\r\n\t\topenButton.setPreferredSize(new Dimension(40, 40));\r\n\t\tsaveButton = new JButton(images.saveImageIcon);\r\n\t\tsaveButton.setPreferredSize(new Dimension(40, 40));\r\n\t\texportButton = new JButton(images.exportImageIcon);\r\n\t\texportButton.setPreferredSize(new Dimension(40, 40));\r\n\t\texitButton = new JButton(images.quitImageIcon);\r\n\t\texitButton.setPreferredSize(new Dimension(40, 40));\r\n\t}", "title": "" }, { "docid": "cdd67957d8b144eb5ceffc9dbf13423c", "score": "0.5634161", "text": "GivenIconAliasBuilder given(ApplicationIconAffiliated iconType);", "title": "" }, { "docid": "0e9f22a3eae96a2facd4145fd27d107f", "score": "0.5630685", "text": "public Icon getActionIcon();", "title": "" }, { "docid": "7412043d6d9f6be96f2b3abec789cf23", "score": "0.5621082", "text": "private String getImage(RequestGetImage requestGetImage) {\n String url;\n if (requestGetImage.isDownloadable()) {\n url = getFileServer() + \"nzh/image/\"\n + \"?imageId=\" + requestGetImage.getImageId()\n + \"&downloadable=\" + requestGetImage.isDownloadable()\n + \"&hashCode=\" + requestGetImage.getHashCode();\n } else {\n url = getFileServer() + \"nzh/image/\"\n + \"?imageId=\" + requestGetImage.getImageId()\n + \"&hashCode=\" + requestGetImage.getHashCode();\n }\n return url;\n }", "title": "" }, { "docid": "8d3975984813091048dff6adc04454ab", "score": "0.5604066", "text": "public String getIcon() {\r\n\t\treturn icon;\r\n\t}", "title": "" }, { "docid": "8ec328bd0eaac040fee026d4e81c1b3c", "score": "0.5600787", "text": "public String getShortLinkWithIconAndPath() {\r\n \r\n return this.getGuiSubject().getShortLinkWithIcon();\r\n }", "title": "" }, { "docid": "0087169e599d45dc9aaa0cb058c25574", "score": "0.5599344", "text": "GwtIconLabel()\n\t\t{\n\t\t\tsuper(Document.get().createElement(\"i\"));\n\t\t}", "title": "" }, { "docid": "5bb1d4e28212fed285719ad996ee7ea6", "score": "0.5599271", "text": "public String getIcon() {\n\t\treturn icon;\n\t}", "title": "" }, { "docid": "5bb1d4e28212fed285719ad996ee7ea6", "score": "0.5599271", "text": "public String getIcon() {\n\t\treturn icon;\n\t}", "title": "" }, { "docid": "41917e187a6bbcff5a5154f96b10ad5d", "score": "0.55967987", "text": "Image getIcon(int type);", "title": "" }, { "docid": "e6e79699c38d2b7ce953eca25933d94d", "score": "0.5596644", "text": "public Builder icon(String icon) {\n this.icon = icon;\n return this;\n }", "title": "" }, { "docid": "ccd232ae50f68aa042370d21da052265", "score": "0.55965185", "text": "protected abstract String getDefaultIconClass();", "title": "" }, { "docid": "217df31e2ccdc3fd9e4a13c7495a4e07", "score": "0.5588033", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/com/edsonrczarneski/icones/logo_escola_favicon.png\")));\n }", "title": "" }, { "docid": "e87be3887a1c5bc4a739ab1751d24b6d", "score": "0.5586407", "text": "public String getMenuIconUrl() {\n return (String)getAttributeInternal(MENUICONURL);\n }", "title": "" }, { "docid": "a84fa11f9b04970d79b33a095bf2e36a", "score": "0.5585252", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"kwanza tukule icon.png\")));\n }", "title": "" }, { "docid": "50f69ad06fdb3545af77123cd0c93023", "score": "0.55688214", "text": "private void createIcons(){\r\n\t\t\t\r\n\t\t\tString theme = this.eltern.getTheme();\r\n\t\t\t\r\n\t\t\t//verzeichnis zum Ordner in dem sich die Icons befinden\r\n\t\t\tString verzeichnis = \"icons\"+File.separator+theme+File.separator;\r\n\t\t\t\r\n\t\t\ticonAmmo = new ImageIcon(verzeichnis+\"ammo.png\");\r\n\t\t\ticonDestruction = new ImageIcon(verzeichnis+\"destruction.gif\");\r\n\t\t\ticonGameOver = new ImageIcon(verzeichnis+\"gameover.gif\");\r\n\t\t\ticonObstacle = new ImageIcon(verzeichnis + \"obstacle.gif\");\r\n\t\t\ticonOpponent = new ImageIcon(verzeichnis + \"opponent.gif\");\r\n\t\t\ticonPlayer = new ImageIcon(verzeichnis + \"player.gif\");\r\n\t\t\ticonPlayer1 = new ImageIcon(verzeichnis + \"player1.gif\");\r\n\t\t\ticonPlayer2 = new ImageIcon(verzeichnis + \"player2.gif\");\r\n\t\t\ticonPlayer3 = new ImageIcon(verzeichnis + \"player3.gif\");\r\n\t\t\ticonPlayer4 = new ImageIcon(verzeichnis + \"player4.gif\");\r\n\t\t\ticonPlayer6 = new ImageIcon(verzeichnis + \"player6.gif\");\r\n\t\t\ticonPlayer7 = new ImageIcon(verzeichnis + \"player7.gif\");\r\n\t\t\ticonPlayer8 = new ImageIcon(verzeichnis + \"player8.gif\");\r\n\t\t\ticonPlayer9 = new ImageIcon(verzeichnis + \"player9.gif\");\r\n\t\t\ticonPlayerLost = new ImageIcon(verzeichnis + \"loss.gif\");\r\n\t\t\ticonVortex = new ImageIcon(verzeichnis + \"vortex.gif\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "89d37ec7310fc7fcc9d003ecb032a14d", "score": "0.55667144", "text": "private void createIcons() {\n //create new ImageIcons \n shopper = new ImageIcon(\"shoppingbag.png\");\n cookie = new ImageIcon(\"cookie.png\");\n path = new ImageIcon(\"path.png\");\n wall = new ImageIcon(\"wall.png\");\n watermelon = new ImageIcon(\"watermelon.png\");\n tangerine = new ImageIcon(\"tangerine.jpg\");\n strawberry = new ImageIcon(\"strawberry.png\");\n kiwi = new ImageIcon(\"kiwi.jpeg\");\n\n //add icons to imgIcons list\n imgIcons.add(shopper);\n imgIcons.add(cookie);\n imgIcons.add(path);\n imgIcons.add(wall);\n imgIcons.add(watermelon);\n imgIcons.add(tangerine);\n imgIcons.add(strawberry);\n imgIcons.add(kiwi);\n }", "title": "" }, { "docid": "413f535abb761cbf6cbfa552860d6a70", "score": "0.55623233", "text": "public SDImage getIcon();", "title": "" }, { "docid": "8a8420a7a21a1709b52c48ef449c65a6", "score": "0.5560853", "text": "public String icon() {\n return this.icon;\n }", "title": "" } ]
ebb856ab6df8120679933f73a404f346
Does this biller authenticators
[ { "docid": "09ea478b65329e2ec639861bdcfd90ce", "score": "0.0", "text": "public List<String> getAuthenticators() {\n return authenticators;\n }", "title": "" } ]
[ { "docid": "e75f39a0399b74fa5fbd161032151b67", "score": "0.6507813", "text": "boolean hasAuthSteam();", "title": "" }, { "docid": "a6c8ad7bcb0701d3a0ce278524df9526", "score": "0.64039063", "text": "boolean hasAuth();", "title": "" }, { "docid": "a6c8ad7bcb0701d3a0ce278524df9526", "score": "0.64039063", "text": "boolean hasAuth();", "title": "" }, { "docid": "a6c8ad7bcb0701d3a0ce278524df9526", "score": "0.64039063", "text": "boolean hasAuth();", "title": "" }, { "docid": "43ab26da3ef9000f78412b9d1ff7cad5", "score": "0.61840594", "text": "@Override\n public void authenticate() {}", "title": "" }, { "docid": "3de259e19e7ddccf181c8f3537307e88", "score": "0.61805874", "text": "private boolean authenicate(){\n boolean login_is_good = false;\n\n\n\n return login_is_good;\n }", "title": "" }, { "docid": "fd7ec7c7ae359aa2ce3e6adb74891087", "score": "0.6126059", "text": "private boolean authenticate(String username, byte[] pw) {\n // TODO\n return true;\n }", "title": "" }, { "docid": "2b45a31b4f63b7f8d99b4619db266a99", "score": "0.61177546", "text": "@Override\n public boolean authenticate(String authToken) {\n \tfor (String token : tokenList) {\n \t\tif (token.equals(authToken)) {\n \t\t\treturn true;\n \t\t}\n \t}\n \treturn false;\n }", "title": "" }, { "docid": "4447a9fdf471780f97c5c226ec23418d", "score": "0.61045766", "text": "Authentication authentication();", "title": "" }, { "docid": "74039de01703bf229b6f832c3e6f7174", "score": "0.60629576", "text": "boolean getDoAuthentication();", "title": "" }, { "docid": "298549acde518137394109e6be629fb3", "score": "0.6052967", "text": "public boolean isSecured();", "title": "" }, { "docid": "befe49c2da106721e998c2267b0ef4e2", "score": "0.60169905", "text": "boolean hasAuthCode();", "title": "" }, { "docid": "54818e0214b39b9e74a1552939ee7edb", "score": "0.5992863", "text": "public boolean isAuthenticated() {\n Ratatxt.AppKey appKey = getAppKey();\n return !(appKey.getToken() == null || appKey.getToken().isEmpty());\n }", "title": "" }, { "docid": "f141bc83ed917438522b58cbc8906eab", "score": "0.59924084", "text": "public boolean isAuthenticated()\n\t{\n\t\treturn verified;\n\t}", "title": "" }, { "docid": "b6b9a3e0afa17a9dad17dbe829d6c9e1", "score": "0.5986145", "text": "public boolean authenticate() { \n\t\tDropboxAPI.Config config = getConfig();\n\t\tString keys[] = LoginAsyncTask.getKeys(mContext);\n\t\tif (keys != null) {\n\t\t\tconfig = authenticateToken(keys[0], keys[1], config);\n\t if (config != null) {\n\t return true;\n\t }\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fb484d9673ab4990872b9b2817b68809", "score": "0.5974898", "text": "private boolean validateAuthToken(byte[] receiveBuffer, short receivingDataOffset, short receivingDataLength,\n\t\t\t\t\t\t\t\t\t byte[] tempBuffer, short tempBufferOffset) { Here's where we would validate the passed-in |authToken| to assure ourselves\n\t\t// that it comes from the e.g. biometric hardware and wasn't made up by an attacker.\n\t\t//\n\t\t// However this involves calculating the MAC which requires access to the to\n\t\t// a pre-shared key which we don't have...\n\t\t//\n\t\tif (mCryptoManager.getStatusFlag(CryptoManager.FLAG_TEST_CREDENTIAL)) {\n\t\t\treturn true;\n\t\t}\n\t\t//TODO this need to revisit, currently hardcoded pre-shared key is used which need to get from provision or keymaster.\n\t\tmCBORDecoder.init(receiveBuffer, receivingDataOffset, receivingDataLength);\n\t\tmCBORDecoder.readMajorType(CBORBase.TYPE_ARRAY);\n\t\tshort totalLen = 0;\n\t\tbyte intSize = mCBORDecoder.getIntegerSize(); //challenge\n\t\ttotalLen += ICUtil.readUInt(mCBORDecoder, tempBuffer, (short)(tempBufferOffset + totalLen + LONG_SIZE - intSize));\n\t\tintSize = mCBORDecoder.getIntegerSize(); //secureUserId\n\t\ttotalLen += ICUtil.readUInt(mCBORDecoder, tempBuffer, (short)(tempBufferOffset + totalLen + LONG_SIZE - intSize));\n\t\tintSize = mCBORDecoder.getIntegerSize(); //authenticatorId\n\t\ttotalLen += ICUtil.readUInt(mCBORDecoder, tempBuffer, (short)(tempBufferOffset + totalLen + LONG_SIZE - intSize));\n\t\tintSize = mCBORDecoder.getIntegerSize(); //hardwareAuthenticatorType\n\t\ttotalLen += ICUtil.readUInt(mCBORDecoder, tempBuffer, (short)(tempBufferOffset + totalLen + LONG_SIZE - intSize));\n\t\tintSize = mCBORDecoder.getIntegerSize(); //timeStamp\n\t\ttotalLen += ICUtil.readUInt(mCBORDecoder, tempBuffer, (short)(tempBufferOffset + totalLen + LONG_SIZE - intSize));\n\t\tshort macOffset = totalLen;\n\t\tshort macLen = mCBORDecoder.readByteString(tempBuffer, (short)(tempBufferOffset + macOffset));//mac\n\n\t\t// If mac length is zero then token is empty.\n\t\tif (macLen == 1 && tempBuffer[macOffset] == (byte)0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tbyte[] preSharedKey = mCryptoManager.getPresharedHmacKey();\n\t\treturn mCryptoManager.hmacVerify(\n\t\t\t\tpreSharedKey, (short)0, (short)preSharedKey.length, //pre-shared key\n\t\t\t\ttempBuffer, tempBufferOffset, totalLen, //data\n\t\t\t\ttempBuffer, macOffset, macLen); //mac\n\t}", "title": "" }, { "docid": "eea61a8fc9d9b405fb029be3493d6e79", "score": "0.59701824", "text": "public boolean isAuthenticationForced();", "title": "" }, { "docid": "7150544da5ff30e14796c60e61ab6cbf", "score": "0.59587693", "text": "public boolean authenticate() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"select * from user_master where login_id = '\");\r\n\t\tsb.append(loginId+\"' and password='\"+password+\"' and\");\r\n\t\tsb.append(\" branch_id=\"+brCode );\r\n\t\t\r\n\t return Utils.checkIfEntryExists(sb.toString());\r\n\t}", "title": "" }, { "docid": "247ff9b197093597a31329f353e22ea7", "score": "0.59543556", "text": "boolean verify() {\n return true;\n }", "title": "" }, { "docid": "c73667b80765f22e58f9a128987815f9", "score": "0.59497046", "text": "private boolean isAuthenticated()\n\t{\n\t\t//TODO : Write a real authentication check\n\t\treturn loggedin;\n\t}", "title": "" }, { "docid": "59aae51f7b9b522edebf9a1a9ca4dfb6", "score": "0.5912214", "text": "boolean verify();", "title": "" }, { "docid": "53efc45e6a2cb4276f824531fd50c8fe", "score": "0.58751744", "text": "boolean hasBIsSecure();", "title": "" }, { "docid": "9defc21200caf12303312aeab586a68d", "score": "0.5869016", "text": "private boolean authenticate() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tclientPublicKey = (PublicKey) in.readObject();\t\t\t\t// 1. Receive Client's PublicKey.\r\n\r\n\t\t\tif(!users.contains(clientPublicKey)) return false;\t\t\t// 2. Check if the supposed client is registered.\r\n\t\t\tserverPublicKey = users.get(clientPublicKey).getPublic();\t// 3. Lookup Server's PublicKey for the client.\r\n\t\t\t\r\n\t\t\tout.writeObject(serverPublicKey);\t// 4. Send the server's public key for the given client to the client.\r\n\t\t\t\r\n\t\t\tString randomString = randString();\t// 5. Generate a random string for authentication.\r\n\t\t\t\r\n\t\t\t// 6. Encrypt the message.\r\n\t\t\tbyte[] encryptedMessage = Security.encrypt(clientPublicKey, new Message(randomString).getBytes()); \r\n\t\t\t\r\n\t\t\t// 7. create a new packet.\r\n\t\t\tPacket randText = new Packet(serverPublicKey, clientPublicKey, encryptedMessage);\t\t \r\n\t\t\t\r\n\t\t\t// 8. Send the packet to the client.\r\n\t\t\tout.writeObject(randText); \t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t// 9. Decrypt the packet and create a new message.\r\n\t\t\tMessage reSentMessage = new Message(Security.decrypt(users.get(clientPublicKey).getPrivate(), ((Packet) in.readObject()).data));\r\n\t\t\t\r\n\t\t\t// 10. Check the original string with the decrypted string for authentication.\r\n\t\t\tif(!randomString.equals(reSentMessage.getText())) return false; \r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "3187c04d89fa0e551c399ff084476bb7", "score": "0.5845314", "text": "boolean isAuthenticationChallenge(Client client, Request request, Response response);", "title": "" }, { "docid": "5823eed7885d5ca30281b8096ebcfc44", "score": "0.58423156", "text": "boolean hasAuthMessage();", "title": "" }, { "docid": "b223f16b7faf0c2f4e1f9c54b52a84e9", "score": "0.58359843", "text": "default boolean isSatisfyAuthenticatorPrerequisites(HttpServletRequest request, AuthenticationContext context)\n throws AuthenticationFailedException {\n return true;\n }", "title": "" }, { "docid": "61d59ccfd57e7979d620f87199f254c3", "score": "0.58342814", "text": "@Override\n public void run() {\n authenticate(true);\n }", "title": "" }, { "docid": "d0d26b9f148964b08d20f70372ad1f58", "score": "0.58164024", "text": "public boolean isSecret();", "title": "" }, { "docid": "a2855ae67284b261a1ca4f1e1f0667e8", "score": "0.5813599", "text": "boolean hasRecryptAccount();", "title": "" }, { "docid": "a20ed2f164a16393751603618525fe1f", "score": "0.5811003", "text": "public boolean verify()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fec23e98795477c3f9a1c2eff2dea511", "score": "0.5772533", "text": "boolean hasAuthProtocol();", "title": "" }, { "docid": "4661e24f386adf7e0207fae09cc7c3c8", "score": "0.5744447", "text": "boolean hasAuthPassword();", "title": "" }, { "docid": "954f2b4404afed08283ff6997fa74de1", "score": "0.5732452", "text": "@Override\n public boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info) {\n return false;\n }", "title": "" }, { "docid": "8d71715af5bf6dc68cdf1c50ccea8df3", "score": "0.57202", "text": "private void processAuthCheck(Request request) {\n \n // Clear previous authentication\n processAuthReset();\n \n // Check for valid session\n try {\n String id = StringUtils.defaultString(request.getSessionId());\n Session session = Session.find(ctx.getStorage(), id);\n if (session != null) {\n Session.activeSession.set(session);\n session.updateAccessTime();\n session.validate(request.getRemoteAddr(),\n request.getHeader(\"User-Agent\"));\n if (!StringUtils.isEmpty(session.userId())) {\n SecurityContext.auth(session.userId());\n }\n }\n } catch (Exception e) {\n LOG.info(ip(request) + e.getMessage());\n }\n \n // Check for authentication response\n try {\n if (SecurityContext.currentUser() == null) {\n Dict authData = request.getAuthentication();\n if (authData != null) {\n processAuthResponse(request, authData);\n }\n }\n } catch (Exception e) {\n LOG.info(ip(request) + e.getMessage());\n }\n }", "title": "" }, { "docid": "50283ea3d96cb83d66c9bc226173b271", "score": "0.570774", "text": "private boolean isAuthorised(){\n\t\tif (this.getRequestedCommandName().toUpperCase() != \"AUTHORIZE\")\n\t\t{\n\t\t\tboolean auth = SecurityManager.getInstance().isAuthorized(macAddress);\n\t\t\tif(!auth)\n\t\t\t{\n\t\t\t\t//TODO: log\n\t\t\t}\n\t\t\treturn auth;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "842587e9307389a1f6bf1f1bdb2274fa", "score": "0.5696546", "text": "public abstract boolean verify();", "title": "" }, { "docid": "113508b18a8876e569874d773391635a", "score": "0.5680228", "text": "String getAuthMethod();", "title": "" }, { "docid": "a21cc3f76578386e8db3eecd120595ba", "score": "0.5679917", "text": "public void authenticate() {\n\t\thosebirdAuth = new OAuth1(consumerKey, consumerSecret, token, secret);\n\t}", "title": "" }, { "docid": "e9b2b0018f76f175255c838c3c649221", "score": "0.5677503", "text": "private static boolean[] authenticate(Scanner scanner) {\n\t\t\n\t\tConfigurationService.getInstance();\n\t\t\t\n\t\tSystem.out.println(\"Please enter your login : \");\n\t\tString login = scanner.nextLine();\n\t\tSystem.out.println(\"Please enter your password : \");\n\t\tString password = scanner.nextLine();\n\t\tuser.setUser(login);\n\t\treturn LoginValidate.getInstance().validateLogin(login, password);\n\t}", "title": "" }, { "docid": "802ab5046ccdb38cfcf278729582d52d", "score": "0.5666286", "text": "boolean authenticate(String name, String password);", "title": "" }, { "docid": "d86884460c42e5faac19995e2e6964c3", "score": "0.5663532", "text": "protected int authOverhead() {\n return 0;\n }", "title": "" }, { "docid": "f96d88ffd1793c1238c990e6a208accc", "score": "0.565492", "text": "public void alg_INIT(){\nGrant.value=false;\nTokenOut.value=true;\nSystem.out.println(\"init head, grant false, token true\");\n\n}", "title": "" }, { "docid": "cd87836a4e435f20a37865cbc262f81a", "score": "0.56520194", "text": "boolean isSecret ();", "title": "" }, { "docid": "9771cc4a0d99154602e8ab9a5172083d", "score": "0.56306154", "text": "private boolean isAuthenticated()\n {\n return SecurityContextHolder.getContext().getAuthentication() != null;\n }", "title": "" }, { "docid": "0e4e303d18f65dd05263e82a3dda17af", "score": "0.56147826", "text": "void authenticate() throws IOException;", "title": "" }, { "docid": "715daa867f35a65995507836eb8c90a8", "score": "0.560745", "text": "private boolean authenticatedAgainstThirdPartySystem() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "398c882ccab22024cf383316cce7acad", "score": "0.5603214", "text": "public boolean checkAuthorize(int i, Object obj) {\n if (isAuthValid()) {\n f a2 = f.a((Platform) this);\n a2.a(this.a, this.b);\n a2.a(this.c);\n a2.a(this.db.getToken(), this.db.get(\"name\"), this.db.getUserId(), this.db.get(\"openkey\"));\n return true;\n }\n innerAuthorize(i, obj);\n return false;\n }", "title": "" }, { "docid": "343ceb226237433b4304d6d283860238", "score": "0.5572292", "text": "private boolean isAuthorizedToAccess(String protocolNumber) {\n boolean isAuthorized = true;\n //don't think the following is necessary... since html controls won't show unless user has authority \n // UserSession userSession = GlobalVariables.getUserSession();\n // if (userSession != null) {\n // // TODO : this is a quick hack for KC 3.1.1 to provide authorization check for dwr/ajax call. dwr/ajax will be replaced by\n // // jquery/ajax in rice 2.0\n // isAuthorized = ActionHelper.hasAssignCmtSchedPermission(userSession.getPrincipalName(), protocolNumber);\n // } else {\n // // TODO : it seemed that tomcat has this issue intermittently ?\n // LOG.info(\"Attention: dwr/ajax STILL does not have session \");\n // }\n return isAuthorized;\n }", "title": "" }, { "docid": "2dee18ff2d83e13105a6f99c245de3bb", "score": "0.5528167", "text": "boolean hasAuthorization();", "title": "" }, { "docid": "e7872c5ed0bf6f87fa8355bd1d4ab6b8", "score": "0.552516", "text": "@Override\r\n\tpublic boolean authenticate(HttpServletResponse response) throws IOException, ServletException {\n\t\treturn request.authenticate(response);\r\n\t}", "title": "" }, { "docid": "10963b71948af1976e8c40a77ce4bb6c", "score": "0.55250764", "text": "private boolean accountValidator() {\n // TODO add your handling code here:\n boolean isAuthorized = false;\n try {\n // To get directory \n saveDir = System.getProperty(\"user.dir\") + \"\\\\src\\\\localdb\\\\\";\n // To get the username nad password\n String tempUser = txtUsername.getText();\n String tempPass = String.valueOf(txtPassword.getPassword());\n // To rename original book.txt to book.bak\n File librariantext = new File(saveDir + \"librarian.txt\");\n // To check if clientBak.txt is present or not\n if (!librariantext.exists()){\n librariantext.createNewFile();\n }\n // This is to instantiate the file opened earlier\n Scanner inputFile = new Scanner(librariantext);\n // This array is to contain all lines\n String[] matchedID;\n // This is only for debugging!\n // boolean itWorked = false;\n // Read lines from the file until no more are left.\n while (inputFile.hasNext())\n {\n // This is for debugging only!\n // JOptionPane.showMessageDialog(null, \"In loop\");\n // Read the next line.\n String lEntry = inputFile.nextLine();\n // Split the line by using the delimiter \":\" (semicolon) and store into array.\n matchedID = lEntry.split(\":\");\n // Check if the read line has current book ID\n if (tempUser.equals(matchedID[1]) && tempPass.equals(matchedID[2])) {\n isAuthorized = true;\n lID = matchedID[0].replace(\"LIB\", \"\");\n username = matchedID[1];\n }\n }\n // Close the clientBak.txt reader\n inputFile.close();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex);\n\n }\n return isAuthorized;\n }", "title": "" }, { "docid": "ad5e9b57c7c13156141d49a6b3902cb7", "score": "0.5519305", "text": "private boolean isAuthenticUser() throws InterruptedException {\n\t\tSystem.out.println(\"User login complete\");\n\t\tThread.sleep(1000);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1bce52bbbe85eae5e0f4b612c4afe13c", "score": "0.5499184", "text": "boolean hasAuthUsername();", "title": "" }, { "docid": "e544f32b188cd93d0762b0e03bf91ee3", "score": "0.5492671", "text": "public boolean isSecuredOnly();", "title": "" }, { "docid": "02e6b5ba4f3bcca1ac97262c817c254c", "score": "0.549046", "text": "public Boolean isAuthorized()\r\n\t{\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "4ba42a8161e3725e203da7a69b36cd28", "score": "0.549005", "text": "public boolean isIncerToken(){\n return INCER_TOKEN == this.incerToken;\n }", "title": "" }, { "docid": "25b4a156d660729ace066763bfd4430b", "score": "0.5483549", "text": "public boolean authenticate(ConnectionConfiguration configuration);", "title": "" }, { "docid": "4fe14161780715224bf9e77eb9b5da91", "score": "0.54793817", "text": "boolean authenticate(UserAuthenticateDTO s);", "title": "" }, { "docid": "bebc5a62a9ec91a51ba1b7d28c3950e7", "score": "0.54788125", "text": "public boolean CheckAuthenticate(String uname,String upass ){\n Authenticate auth = new Authenticate();\n try {\n //starts asychronus task to make sure user is valid\n Pair<String, Integer> s = auth.execute(new Pair<String, String>(uname, upass)).get();\n //stores the user id obtained\n UserID = s.second;\n //return whether or not the username and password is valid\n return s.first.equals(\"true\");\n }\n catch (InterruptedException e )\n {\n return false;\n }catch (ExecutionException b ) {\n return false;\n }\n }", "title": "" }, { "docid": "828bb8e039dc50b234ee8b6d0b336363", "score": "0.5473084", "text": "AuthConfig apply();", "title": "" }, { "docid": "f59dd6c72f33392d6b83b3cfa185f4b2", "score": "0.5462424", "text": "public boolean hasAuth() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "b312dfbb0449393960d5b9561cad08d2", "score": "0.54586935", "text": "public void verify()\n\t{\n\t\tverified = true;\n\t}", "title": "" }, { "docid": "9bdfad2a340f9e9ed9f962dcc2207f87", "score": "0.5456661", "text": "private boolean checkAuthorization(Header clientAuth) {\n // TODO Auto-generated method stub\n BasicScheme scheme;\n try {\n scheme = new BasicScheme(\"basic realm=test\");\n String expectedAuthString = scheme.authenticate(credentials, null, null);\n return expectedAuthString.equals(clientAuth.getValue());\n } catch (MalformedChallengeException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (AuthenticationException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return false;\n }", "title": "" }, { "docid": "e2be2a9e88626a665ce9bc64ea2c3075", "score": "0.54482573", "text": "boolean hasAppAuth();", "title": "" }, { "docid": "e2be2a9e88626a665ce9bc64ea2c3075", "score": "0.54482573", "text": "boolean hasAppAuth();", "title": "" }, { "docid": "e2be2a9e88626a665ce9bc64ea2c3075", "score": "0.54482573", "text": "boolean hasAppAuth();", "title": "" }, { "docid": "e2be2a9e88626a665ce9bc64ea2c3075", "score": "0.54482573", "text": "boolean hasAppAuth();", "title": "" }, { "docid": "e3e44a981ae175781d145e97eda1170e", "score": "0.54410636", "text": "public void onValidSDK() {\n System.out.println(\"success! we are authenticated with BioDigital!\");\n }", "title": "" }, { "docid": "50e5ae095a05cc886a061c3ca2d09c26", "score": "0.54257196", "text": "private void authenticator() {\r\n\t\tAuthenticator.setDefault(new Authenticator() {\r\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t\treturn new PasswordAuthentication(accessKey, secretKey.toCharArray());\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "90b46f214ca4fbdff12ecb915db02b69", "score": "0.5424531", "text": "public boolean getUseAuthsrc() {return useAuthsrc;}", "title": "" }, { "docid": "986b56e2d31da21a1de01aeb2d7110d7", "score": "0.54206616", "text": "void verify();", "title": "" }, { "docid": "c2800a5d1268349802cfa7828c6edaa0", "score": "0.5420594", "text": "boolean getBIsSecure();", "title": "" }, { "docid": "96775d95af7037070488c46c8ac3d7d2", "score": "0.5419634", "text": "public boolean authenticateOwnerPassword(String ownerPassword) {\n byte[] encryptionKey = calculateOwnerPassword(ownerPassword, \"\", true);\n byte[] decryptedO = null;\n try {\n String tmp = encryptionDictionary.getBigO();\n byte[] bigO = new byte[tmp.length()];\n for (int i = 0; i < tmp.length(); i++) {\n bigO[i] = (byte) tmp.charAt(i);\n }\n if (encryptionDictionary.getRevisionNumber() == 2) {\n SecretKeySpec key = new SecretKeySpec(encryptionKey, \"RC4\");\n Cipher rc4 = Cipher.getInstance(\"RC4\");\n rc4.init(Cipher.DECRYPT_MODE, key);\n decryptedO = rc4.doFinal(bigO);\n } else {\n byte[] indexedKey = new byte[encryptionKey.length];\n decryptedO = bigO;\n for (int i = 19; i >= 0; i--) {\n for (int j = 0; j < indexedKey.length; j++) {\n indexedKey[j] = (byte) (encryptionKey[j] ^ (byte) i);\n }\n SecretKeySpec key = new SecretKeySpec(indexedKey, \"RC4\");\n Cipher rc4 = Cipher.getInstance(\"RC4\");\n rc4.init(Cipher.ENCRYPT_MODE, key);\n decryptedO = rc4.update(decryptedO);\n }\n }\n } catch (NoSuchAlgorithmException ex) {\n logger.log(Level.FINE, \"NoSuchAlgorithmException.\", ex);\n } catch (IllegalBlockSizeException ex) {\n logger.log(Level.FINE, \"IllegalBlockSizeException.\", ex);\n } catch (BadPaddingException ex) {\n logger.log(Level.FINE, \"BadPaddingException.\", ex);\n } catch (NoSuchPaddingException ex) {\n logger.log(Level.FINE, \"NoSuchPaddingException.\", ex);\n } catch (InvalidKeyException ex) {\n logger.log(Level.FINE, \"InvalidKeyException.\", ex);\n }\n String tmpUserPassword = \"\";\n for (byte aDecryptedO : decryptedO) {\n tmpUserPassword += (char) aDecryptedO;\n }\n boolean isValid = authenticateUserPassword(tmpUserPassword);\n if (isValid) {\n userPassword = tmpUserPassword;\n this.ownerPassword = ownerPassword;\n }\n return isValid;\n }", "title": "" }, { "docid": "b256e1582b9d0e483ebcaffac2846e43", "score": "0.5418", "text": "boolean hasProtectedKeys();", "title": "" }, { "docid": "284a3a3a6aa97cabb31f3e37ba8ebd63", "score": "0.5417116", "text": "public boolean isAuthorized( String authInfo ) {\n String credentials = new String(\n Base64.getDecoder().decode( authInfo ),\n Charset.forName( \"UTF-8\" )\n );\n\n // The string is the key:value pair username:password\n String[] tokens = credentials.split( \":\" );\n\n // TODO: implement this\n return verifyPassword(tokens[0],tokens[1]);\n }", "title": "" }, { "docid": "f5784d976deed281248c4212d94208ad", "score": "0.54141647", "text": "public boolean isVerified(){\r\n return verified;\r\n }", "title": "" }, { "docid": "0c8323179bc9126ab874b7be00970a1b", "score": "0.54132086", "text": "@Override\n public boolean authenticate() {\n try {\n HttpClient httpclient = new DefaultHttpClient();\n List<NameValuePair> nameValuePairs = new ArrayList<>(7);\n nameValuePairs.add(new BasicNameValuePair(FIELDS.USER, userName));\n nameValuePairs.add(new BasicNameValuePair(FIELDS.PASSWORD, password));\n nameValuePairs.add(new BasicNameValuePair(\"remember\", \"on\"));\n nameValuePairs.add(new BasicNameValuePair(\"act\", \"1\"));\n\n\n HttpPost httppost = new HttpPost(LOGIN_URL);\n httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs,UTF_8));\n httppost.setHeader(new BasicHeader(\"Content-type\" , \"application/x-www-form-urlencoded\"));\n\n\n HttpResponse response = httpclient.execute(new HttpHost(HOST),httppost);\n\n StatusLine statusLine = response.getStatusLine();\n\n if(statusLine.getStatusCode() == HttpStatus.SC_OK){\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n\n response.getEntity().writeTo(out);\n String responseString = out.toString();\n if(!parseLoginHTML(responseString)){\n return false;\n }\n Header[] headers = response.getHeaders(FIELDS.SET_COOKIE);\n // This will find out cookie\n setCookieFromHeader(headers);\n out.close();\n return true;\n //..more logic\n } else{\n //Closes the connection.\n response.getEntity().getContent().close();\n throw new IOException(statusLine.getReasonPhrase());\n }\n }catch (Exception e){\n Log.i(TAG,\"exception\");\n e.printStackTrace();\n return false;\n }\n }", "title": "" }, { "docid": "bcca770737c9c741e8233f16ad7a74a0", "score": "0.54113024", "text": "boolean authenticate(String username, String password);", "title": "" }, { "docid": "5826d04cbf49213cd8911af80afbe284", "score": "0.54079235", "text": "public /*synchronized*/ boolean getAuthenticationAttempted() {\n return authnAttempted;\n }", "title": "" }, { "docid": "0eb29338c776d302ab29b99217121e92", "score": "0.54062486", "text": "Map<String, String> verify(String token);", "title": "" }, { "docid": "fffac311c9e692456f9b9ba42521fabe", "score": "0.54040766", "text": "private void isAuthenticate() {\n if (isSharedPreferenceHaveValue()) {\n if (isUserCredentailCorrect()) {\n Intent intent = new Intent(LoginActivity.this, HomeActivity.class);\n startActivity(intent);\n finish();\n } else {\n Toast.makeText(this, \"Credentials not correct\", Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(this, \"Shared Preference have no value\", Toast.LENGTH_SHORT).show();\n }\n\n }", "title": "" }, { "docid": "1981b9c1ad70a05811c9249afd1a500b", "score": "0.54029167", "text": "AuthenticationGateway getUserAuthentication(UserDoc.Session.Authorization authorizationType);", "title": "" }, { "docid": "0a40be30d334024c14f164083191f839", "score": "0.53902197", "text": "public abstract boolean isClassAuthenticated(Class<?> clazz);", "title": "" }, { "docid": "f34012ea1b5c2a17e37b2070ab78acad", "score": "0.5387538", "text": "boolean shouldVerifyHashes() {\n return verifyHashes;\n }", "title": "" }, { "docid": "8283591efa4639016065ad7a06d3d971", "score": "0.53851736", "text": "@Test\n\tpublic void testCustomVerification() {\n\t\tlogin(\"classpath:shiro-authorizer.ini\", \"zhang\", \"123\");\n\t\t// 判断拥有权限:user:create\n\t\tAssert.assertTrue(subject().isPermitted(\"+user+10\"));\n\t\t// 判断 拥有权限:user:update and user:delete\n//\t\tAssert.assertTrue(subject().isPermittedAll(\"user:update\",\"user:delete\"));\n//\t\t// 判断没有权限:user:view\n//\t\tAssert.assertTrue(subject().isPermitted(\"user:view\"));\n//\t\t\n//\t\tList<Permission> perms = new ArrayList<Permission>();\n//\t\tperms.add(new WildcardPermission(\"user:view\"));\n//\t\t\n//\t\tboolean[] bls = subject().isPermitted(perms);\n//\t\tfor(boolean bl : bls) {\n//\t\t\tPrint.print(bl);\n//\t\t}\n//\t\tbls = subject().hasRoles(Arrays.asList(\"role3\",\"role2\"));\n//\t\tfor(boolean bl : bls) {\n//\t\t\tPrint.print(bl);\n//\t\t}\n\t}", "title": "" }, { "docid": "f95c240fa1a46d643ed586b271658553", "score": "0.5378682", "text": "public boolean detectAndWaitForAuthentication() {\n boolean detected = false;\n synchronized (mAuthenticationLock) {\n do {\n if (bAuthenticating == true)\n detected = true;\n try {\n mAuthenticationLock.wait(1000);\n } catch (InterruptedException e) {\n }\n }\n while (bAuthenticating == true);\n }\n if (bAuthenticating == true)\n return true;\n\n return detected;\n }", "title": "" }, { "docid": "c04c60028d88ff88673296751ef1855b", "score": "0.5377686", "text": "public boolean hasAuth() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "0cc129bb8fd2db8580fb3d607ee96586", "score": "0.53748566", "text": "public abstract boolean isComponentAuthenticated(Component component);", "title": "" }, { "docid": "28ebd678e504e569fdbb5f1a5b3c48e1", "score": "0.53735554", "text": "boolean hasLogin();", "title": "" }, { "docid": "28ebd678e504e569fdbb5f1a5b3c48e1", "score": "0.53735554", "text": "boolean hasLogin();", "title": "" }, { "docid": "aad2dca8a24aeaba50beb40654981a59", "score": "0.53672683", "text": "String authenticate(AuthRequestDto request);", "title": "" }, { "docid": "9cf9b0f38c15e3405a75910c22d0e078", "score": "0.53661114", "text": "private boolean basicAuthRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {\n Keycloak kc = null;\n kc = Keycloak.getInstance(context, keycloakMasterRealm, keycloakUsername, keycloakPassword, keycloakClientId);\n ClientsResource clientsResource = kc.realm(keycloakRealm).clients();\n\n Map<String, String> allClients = new HashMap<>();\n ClientResource cr = null;\n CredentialRepresentation credentialRep = null;\n String clientId = null;\n for (ClientRepresentation clientRepresentation : clientsResource.findAll()) {\n // we exclude some keycloak clients.\n clientId = clientRepresentation.getClientId();\n if (clientId.equals(keycloakClientId) || clientId.equals(\"security-admin-console\")\n || clientId.equals(\"account\") || clientId.equals(\"realm-management\") || clientId.equals(\"broker\")) {\n continue;\n }\n\n cr = clientsResource.get(clientRepresentation.getId());\n credentialRep = cr.getSecret();\n\n allClients.put(clientRepresentation.getClientId(), credentialRep.getValue());\n }\n\n int responseStatus = 0;\n ErrorResponse errorResponse = null;\n\n try {\n String[] credentials = authenticationToken.handleBasicAuthRequest(request, allClients);\n log.debug(\"Basic Authentication ok\");\n // saves the credentials so that those can be accessible later.\n if (userAccountService instanceof UserAccountServiceImpl) {\n UserAccountServiceImpl userAccount = (UserAccountServiceImpl) userAccountService;\n userAccount.setClientId(credentials[0]);\n }\n return true;\n } catch (AuthorizationServiceException e) {\n HttpMessageErrorCode msg = e.getHttpMessageErrorCode();\n\n errorResponse = new ErrorResponse(msg.getEvaluatedMessage(), msg.getNumber());\n errorResponse.setError(UNAUTHORIZED);\n responseStatus = msg.getHttpCode();\n }\n return createJSONResponse(response, errorResponse, responseStatus);\n }", "title": "" }, { "docid": "b355a99d50046275817b88ba9d174a3c", "score": "0.53660256", "text": "@Before(unless={\"resetPassword\",\"linkToResetPassword\",\"forgotEmail\",\"signupUser\",\"logoutUser\"})\n\t\n\tpublic static void authentify(){\n\t\tif(Cache.get(session.getAuthenticityToken())!=null){\n\t\t\tSystem.out.println(\"Logging in: \"+session.getAuthenticityToken());\n\t\t\t//User has already logged in\n\t\t\tCache.set(session.getAuthenticityToken(), Cache.get(session.getAuthenticityToken()));\n\t\t\t//Render index page\n\t\t\tMainSystemController.renderIndexPage();\n\t\t}\n\t}", "title": "" }, { "docid": "a73922fe7777fb75b6464fce3d91028f", "score": "0.5365619", "text": "private boolean checkPwnedStatus() throws AuthLoginException {\n String ssa = CollectionHelper.getMapAttr(options, \"specificAttribute\");\n\n // Get property from bundle\n String new_hdr = bundle.getString(\"pwnedauth-ui-login-header\");\n substituteHeader(STATE_AUTH, new_hdr);\n\n\n String pwnedString = haveIBeenPwned();\n if (pwnedString == \"\") { return false; }\n else \n {\n debug.message(\"PwnedAuth : result from service : \" + pwnedString);\n\n // Parse JSON response into object map\n ObjectMapper mapper = new ObjectMapper();\n List<Map<String,Object>> userData = null;\n try {\n userData = mapper.readValue(pwnedString, mapper.getTypeFactory().constructCollectionType(List.class, Map.class));\n } catch (IOException e) {\n debug.error(\"IOException \" + e.getMessage());\n };\n\n // Construct JavaScript warning + Pwned table\n String p1 = \"<div class=\\\"well\\\"><table class=\\\"table table-bordered table-striped\\\"><tbody><tr><th>Name</th><th>Breach date</th></tr>\";\n for (int i=0; i < userData.size(); i++) {\n p1 = p1 + \"<tr><td>\" + (String)userData.get(i).get(\"Title\") + \"</td><td>\" + (String)userData.get(i).get(\"BreachDate\") + \"</td></tr>\";\n }\n String pwnedOutputScript = p1 + \"</tbody></table></div>\";\n\n String warningMsg = \"Your email address (<strong>\" + userMail + \"</strong>) has been associated with an incident where data has been illegally accessed by hackers and then released publicly. Visit <strong><a href=\\\"https://haveibeenpwned.com\\\" target=\\\"_blank\\\">https://haveibeenpwned.com</a></strong> for a full description of the detected breach. Below is a summary of the breaches associated with your email address.\";\n String clientScript = \"$(document).ready(function(){\" +\n \"$('#loginButton_0').attr('value','Continue');\" +\n \"strUI='<div class=\\\"alert alert-danger\\\"><strong>Warning </strong>\" +\n warningMsg +\n \"</div>\" +\n pwnedOutputScript +\n \"';\" +\n \"$('#callback_0').prepend(strUI);\" +\n \"});\";\n\n\n replaceCallback(STATE_AUTH, 0, new ScriptTextOutputCallback(clientScript));\n replaceCallback(STATE_AUTH, 1, new HiddenValueCallback(\"callback_1\"));\n\n return true; \n }\n }", "title": "" }, { "docid": "9712dfeae340e282e0cf967aa2d89aa6", "score": "0.53539515", "text": "NacosUser authenticate(HttpServletRequest httpServletRequest) throws AccessException;", "title": "" }, { "docid": "1a9be07489ea9cf9f6914fc276d24f53", "score": "0.5350116", "text": "private void checkUserLogin(HttpServletRequest req, HttpServletResponse resp) {\n\t\t\r\n\t}", "title": "" }, { "docid": "b580829786c657cb7e1fb3d1fc1cdf17", "score": "0.53487325", "text": "@Override\n\tpublic boolean authorized() {\n\t\t\n\t\t\n\t\treturn false;\n\t\t\n\t}", "title": "" }, { "docid": "87aa8822b4695366ef90667e112cc88d", "score": "0.5340517", "text": "void validCredentials();", "title": "" }, { "docid": "75561295666d3c24795b8b2dc20ec438", "score": "0.5335823", "text": "@SuppressLint({\"DefaultLocale\", \"NewApi\"})\n public final boolean dRl() {\n AppMethodBeat.m2504i(10514);\n if (!C16167a.dRe().isInit()) {\n C44476d.m80486w(\"Soter.TaskAuthentication\", \"soter: not initialized yet\", new Object[0]);\n mo70642b(new C16163a(14));\n AppMethodBeat.m2505o(10514);\n return true;\n } else if (C16167a.dRe().dRc()) {\n Assert.assertTrue(VERSION.SDK_INT >= 16);\n this.AvS = (String) C16167a.dRe().dRg().get(this.gOW, \"\");\n if (C24321g.isNullOrNil(this.AvS)) {\n C44476d.m80486w(\"Soter.TaskAuthentication\", \"soter: request prepare auth key scene: %d, but key name is not registered. Please make sure you register the scene in init\", new Object[0]);\n mo70642b(new C16163a(15, String.format(\"auth scene %d not initialized in map\", new Object[]{Integer.valueOf(this.gOW)})));\n AppMethodBeat.m2505o(10514);\n return true;\n } else if (!C40997a.aua(this.AvS)) {\n C44476d.m80486w(\"Soter.TaskAuthentication\", \"soter: auth key %s not exists. need re-generate\", this.AvS);\n mo70642b(new C16163a(12, String.format(\"the auth key to scene %d not exists. it may because you haven't prepare it, or user removed them already in system settings. please prepare the key again\", new Object[]{Integer.valueOf(this.gOW)})));\n AppMethodBeat.m2505o(10514);\n return true;\n } else if (this.AwB == null && C24321g.isNullOrNil(this.tWZ)) {\n C44476d.m80486w(\"Soter.TaskAuthentication\", \"soter: challenge wrapper is null!\", new Object[0]);\n mo70642b(new C16163a(16, \"neither get challenge wrapper nor challenge str is found in request parameter\"));\n AppMethodBeat.m2505o(10514);\n return true;\n } else {\n Context context = (Context) this.AwD.get();\n if (context == null) {\n C44476d.m80486w(\"Soter.TaskAuthentication\", \"soter: context instance released in preExecute\", new Object[0]);\n mo70642b(new C16163a(17));\n AppMethodBeat.m2505o(10514);\n return true;\n } else if (!C44473a.m80472iU(context).hasEnrolledFingerprints()) {\n C44476d.m80486w(\"Soter.TaskAuthentication\", \"soter: user has not enrolled any fingerprint in system.\", new Object[0]);\n mo70642b(new C16163a(18));\n AppMethodBeat.m2505o(10514);\n return true;\n } else if (C40997a.m71101iT(context)) {\n C44476d.m80486w(\"Soter.TaskAuthentication\", \"soter: fingerprint sensor frozen\", new Object[0]);\n mo70642b(new C16163a(25, \"Too many failed times\"));\n AppMethodBeat.m2505o(10514);\n return true;\n } else if (this.AwE == null) {\n C44476d.m80486w(\"Soter.TaskAuthentication\", \"soter: did not pass cancellation obj. We suggest you pass one\", new Object[0]);\n this.AwE = new C40987a();\n AppMethodBeat.m2505o(10514);\n return false;\n } else {\n if (this.AwC == null) {\n C44476d.m80486w(\"Soter.TaskAuthentication\", \"hy: we strongly recommend you to check the final authentication data in server! Please make sure you upload and check later\", new Object[0]);\n }\n AppMethodBeat.m2505o(10514);\n return false;\n }\n }\n } else {\n C44476d.m80486w(\"Soter.TaskAuthentication\", \"soter: not support soter\", new Object[0]);\n mo70642b(new C16163a(2));\n AppMethodBeat.m2505o(10514);\n return true;\n }\n }", "title": "" }, { "docid": "24090011b6425545c0211e32eef1dca9", "score": "0.5330916", "text": "public boolean isValidLogin() {\r\n\t\tif (!http.canAuthenticate())\r\n\t\t\treturn false;\r\n\t\ttry {\r\n\t\t\tTwitter_Account ta = new Twitter_Account(this);\r\n\t\t\tUser u = ta.verifyCredentials();\r\n\t\t\treturn true;\r\n\t\t} catch (TwitterException.E403 e) {\r\n\t\t\treturn false;\r\n\t\t} catch (TwitterException.E401 e) {\r\n\t\t\treturn false;\r\n\t\t} catch (TwitterException e) {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9d214c03b1dac675a5fb21f33a37eded", "score": "0.5325108", "text": "java.lang.String getAuth();", "title": "" } ]
b05622e97ae2b445c69e29d2277a4180
This method returns a string representation of the color in the form "RRGGBB" where RR, GG, and BB are the red, green and blue component values expressed as hexidecimal digits.
[ { "docid": "5a6391107a0ffe1b9dd4a33ad2bed388", "score": "0.7936969", "text": "public String toString()\n {\n String redStr; // red component hex value as a string\n String greenStr; // green component hex value as a string\n String blueStr; // blue component hex value as a string\n\n redStr = Integer.toHexString(this.red);\n if (redStr.length() == 1)\n redStr = \"0\" + redStr;\n greenStr = Integer.toHexString(this.green);\n if (greenStr.length() == 1)\n greenStr = \"0\" + greenStr;\n blueStr = Integer.toHexString(this.blue);\n if (blueStr.length() == 1)\n blueStr = \"0\" + blueStr;\n return \"#\" + redStr + greenStr + blueStr;\n }", "title": "" } ]
[ { "docid": "98d8564e37fd512b1dc8b28fcf5cacbb", "score": "0.7701162", "text": "public String getHexString()\n\t{\n\t\tString rrggbb = \"\";\n\t\tint v0;\n\t\tint v1;\n\t\tString hex0;\n\t\tString hex1;\n\t\tv0 = myRed.getShade() / 16;\n\t\tv1 = myRed.getShade() % 16;\n\t\thex0 = decimalToHex(v0);\n\t\thex1 = decimalToHex(v1);\n\t\trrggbb += hex0 + hex1;\n\t\t\n\t\tv0 = myGreen.getShade() / 16;\n\t\tv1 = myGreen.getShade() % 16;\n\t\thex0 = decimalToHex(v0);\n\t\thex1 = decimalToHex(v1);\n\t\trrggbb += hex0 + hex1;\n\t\t\n\t\tv0 = myBlue.getShade() / 16;\n\t\tv1 = myBlue.getShade() % 16;\n\t\thex0 = decimalToHex(v0);\n\t\thex1 = decimalToHex(v1);\n\t\trrggbb += hex0 + hex1;\n\t\t\n\t\treturn rrggbb;\n\t}", "title": "" }, { "docid": "45f26c2b0fcad65b87fcb13b2a7e4496", "score": "0.76500154", "text": "public String getColorString() {\n return colorToHexString(getColor());\n }", "title": "" }, { "docid": "0a64e8ccd6a37deae17310beaee4dacf", "score": "0.76497304", "text": "public static String figColorStr() {\n\t\tString s;\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor (int i=0; i<3; i++) {\r\n\t\t\ts = String.valueOf(curColor[i]);\r\n\t\t\tfor (int j = 0; j<s.length(); j++) {\r\n\t\t\t\tsb.append(\"\\\\x3\"+s.charAt(j));\r\n\t\t\t}\r\n\t\t\tif (i<2) {\r\n\t\t\t\tsb.append(\"\\\\x3B\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "4de089bd7b4de88fee8ebd66b8cbe931", "score": "0.7601337", "text": "public String toString() {\r\n String rs=Integer.toString(red,16),gs=Integer.toString(green,16),bs=Integer.toString(blue,16);\r\n return (rs.length()==1?\"0\"+rs:rs)+(gs.length()==1?\"0\"+gs:gs)+(bs.length()==1?\"0\"+bs:bs);\r\n }", "title": "" }, { "docid": "4741f5019660862c685e79b6d70efc25", "score": "0.75736874", "text": "@Override\r\n\tpublic String toString() {\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\treturn sb.append(\"(\").append(color).append(\")\").toString();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8250d6a93a3804ba65bad5519f2c722e", "score": "0.73220605", "text": "public String toString() {\n switch (this) {\n case RED: return \"Red \";\n case BLUE: return \"Blue \";\n case GREEN: return \"Green \";\n case YELLOW: return \"Yellow \";\n case NONE: return \"\";\n default: throw new IllegalStateException(\"Invalid color\");\n }\n }", "title": "" }, { "docid": "b5de2de752334f56c3133fbe8baa1edf", "score": "0.72624654", "text": "public String toString() {\r\n return \"(\" + red + \",\" + green + \",\" + blue + \",\" + alpha + \")\";\r\n }", "title": "" }, { "docid": "6fa5dabaed5141b7c15ab530b87fe71c", "score": "0.7214504", "text": "public static String makeRGBString(Color c) {\n\t\treturn c.getRed() + \"-\" + c.getGreen() + \"-\" + c.getBlue();\r\n\t}", "title": "" }, { "docid": "6dd6b69523daed4c817bf286f356ab33", "score": "0.7183245", "text": "public String getColorString() {\n return color;\n }", "title": "" }, { "docid": "2b92bea3c7f8f73754b7f32d4272daec", "score": "0.7158632", "text": "public static String getColorFormat(Color color){\r\n\t\treturn String.format( \"#%02X%02X%02X\",\r\n\t (int)( color.getRed() * 255 ),\r\n\t (int)( color.getGreen() * 255 ),\r\n\t (int)( color.getBlue() * 255 ) );\r\n\t}", "title": "" }, { "docid": "dc772b8bd79a500772eb405873adba75", "score": "0.71057564", "text": "private String getHexFromRGB(RGB color) {\n\t\tint r = color.red;\n\t\tint g = color.green;\n\t\tint b = color.blue;\n\t\tString s = StringUtils.rightPad(Integer.toHexString(r), 2, \"0\") + StringUtils.rightPad(Integer.toHexString(g), 2, \"0\") + StringUtils.rightPad(Integer.toHexString(b), 2, \"0\");\n\t\treturn \"#\" + s.toUpperCase(); //$NON-NLS-1$ //$NON-NLS-2$\n\t}", "title": "" }, { "docid": "ccb08a25e15b03de0fe205861db4529a", "score": "0.7022414", "text": "public String toHex()\n {\n return Integer.toHexString(getRed())+\n Integer.toHexString(getGreen())+\n Integer.toHexString(getBlue());\n }", "title": "" }, { "docid": "ebaa43fd4e21148b4a4886ae9bc1ea61", "score": "0.6980968", "text": "public String toString() {\n\t\tif(this.checkColor()) {\n\t\t\treturn \"bN \";\n\t\t}\n\t\treturn \"wN \";\n\t}", "title": "" }, { "docid": "3b242d38a5600be00cef19582908507e", "score": "0.69513845", "text": "public String toString() {\n\t\tString resultado = nombre + \"-\" + color;\n\t\treturn resultado;\n\t}", "title": "" }, { "docid": "649e5660caf365bea79b661731452027", "score": "0.69237447", "text": "public String toString() {\n return \" red: \" + this.red + \" blue: \" + this.blue + \" and green: \" + this.green;\n }", "title": "" }, { "docid": "031bff53ce3616d559dfb4f288a07b24", "score": "0.692374", "text": "public static String getHexColorValue(int r, int g, int b) {\r\n\t\tjava.awt.Color color = new java.awt.Color(r, g, b);\r\n\t\tString hexa = Integer.toHexString(color.getRGB() & 0x00ffffff);\r\n\t\treturn (\"#\" + \"000000\".substring(hexa.length()) + hexa.toUpperCase());\r\n\t}", "title": "" }, { "docid": "f70a5dcb565709bc78a6fde4f988e87f", "score": "0.68766546", "text": "public static String formatColor(final double r, final double g, final double b) {\n if(r<0 || g<0 || b<0 || r>1 || g>1 || b>0) {\n throw new RuntimeException(\"All components must be between 0 and 1 inclusive\");\n }\n final StringBuilder sb = new StringBuilder();\n final int red = (int)r*255;\n final int green = (int)g*255;\n final int blue = (int)b*255;\n \n sb.append(\"#\").append(hex(red)).append(hex(green)).append(hex(blue));\n return sb.toString();\n }", "title": "" }, { "docid": "3696a3de7632ffba00cd18cc985ba062", "score": "0.6862432", "text": "public static final String toHTMLColor(Color c) {\n int color = c.getRGB();\n color |= 0xff000000;\n String s = Integer.toHexString(color);\n return s.substring(2);\n }", "title": "" }, { "docid": "8840263be50017fd2dd9d1cfa2b8643a", "score": "0.6850481", "text": "private String colorToHex(Color color) {\n return Integer.toHexString(color.getRGB()).substring(2);\n }", "title": "" }, { "docid": "74b2eff3cef2d527d923ac1ac276fdc2", "score": "0.6849653", "text": "java.lang.String getColor();", "title": "" }, { "docid": "c9ce8c66ab0d34b2515802533bcbd2d5", "score": "0.6774293", "text": "private String getColorStr(Color clr) {\n\n String colStr = \"\";\n\n if (clr != null) {\n String tem = clr.toString(); // java.awt.Color[r=0,g=255,b=255]\n colStr = tem.substring(tem.indexOf(\"[\") + 1, tem.indexOf(\"]\"));\n }\n\n return colStr;\n }", "title": "" }, { "docid": "100aed11a91271107c70916da495ab52", "score": "0.6762849", "text": "public static String makeHexString(Color c) {\n\t\treturn \"#\" + Integer.toHexString(c.getRed()) + Integer.toHexString(c.getGreen())\r\n\t\t\t\t+ Integer.toHexString(c.getBlue());\r\n\t}", "title": "" }, { "docid": "ab89afa42c27cbdeb8c60418b8c3d31e", "score": "0.67491955", "text": "public static String generateHexColor() {\n Random random;\n int randomNumber;\n random = new Random();\n randomNumber = random.nextInt(MAX_COLOR * MAX_COLOR * MAX_COLOR);\n return String.format(\"#%06x\", randomNumber);\n }", "title": "" }, { "docid": "bb405d378017b9b93058449d98d57b6a", "score": "0.66616917", "text": "public String GetColour(){\n String colour = \"\";\n switch(colorCode){\n case 'R':\n colour = \"Red\";\n break;\n case 'G':\n colour = \"Green\";\n break;\n case 'B':\n colour = \"Blue\";\n break;\n default:\n colour = \"Invalid Code\";\n }\n return colour;\n }", "title": "" }, { "docid": "d466f05b1f9ee292add64bfaf885d322", "score": "0.6648409", "text": "public String getColor()\n {\n return colorString;\n }", "title": "" }, { "docid": "e1b8e3a8120c42eafb69d1fac4dd97c3", "score": "0.65773624", "text": "public String toString() {\r\n return getClass().getName() + \"[color=\" + color + (italic ? \",italic\" : \"\") + (bold ? \",bold\" : \"\") + \"]\";\r\n }", "title": "" }, { "docid": "b8d44aacd4c7f0f858627ce2ba2d28c7", "score": "0.6562304", "text": "public static String colorToHexString(Color color) {\n if(color == null)\n return \"\";\n return String.format(\"#%02x%02x%02x\", color.getRed(), color.getGreen(), color.getBlue());\n }", "title": "" }, { "docid": "36fe647323b580943afe281d06fd610a", "score": "0.6550741", "text": "private static String hex(final int colour) {\n final String hex = Integer.toHexString(colour);\n if(hex.length()<2) {\n return \"0\" + hex;\n } else {\n return hex;\n }\n }", "title": "" }, { "docid": "4783952d07642cd1c16c639d8d929840", "score": "0.6489591", "text": "String getColor();", "title": "" }, { "docid": "1ac5b4d002e957c4385cf83782845dd4", "score": "0.64842623", "text": "public String getColourAsString() {\n return colour;\n }", "title": "" }, { "docid": "2a40af07d99290a28e8ede3fe0664dc7", "score": "0.6481206", "text": "@Override\r\n public String getTextValue() { \r\n return \"R:\" + red + \" G:\" + green + \" B:\" + blue + \" A:\" + alpha;\r\n }", "title": "" }, { "docid": "57ec3b2fb90dbd7789ed8f838a76fd1e", "score": "0.64810663", "text": "public static String ColorToHex(Color pColor)\n {\n return String.format( \"#%02X%02X%02X\",\n (int)( pColor.getRed() * 255 ),\n (int)( pColor.getGreen() * 255 ),\n (int)( pColor.getBlue() * 255 ) );\n }", "title": "" }, { "docid": "7e6fec4e726e6bda4bfffb0c75310c3a", "score": "0.64484024", "text": "public static String getHTMLColor(final Color color) {\n if (color == null) {\n return null;\n }\n\n final int r = color.getRed();\n final int g = color.getGreen();\n final int b = color.getBlue();\n return String.format(\"#%02x%02x%02x\", r, g, b);\n }", "title": "" }, { "docid": "9079f45d160e30c22a723292f2158a9a", "score": "0.64006543", "text": "public String getColor() {\n\t\treturn this.color.name();\n\t}", "title": "" }, { "docid": "389dad2aafffd2efe10c3f3e74a34139", "score": "0.6322813", "text": "public String getColorRgb() {\n return colorRgb;\n }", "title": "" }, { "docid": "feafc8d2561f3096329c6f26bfdf7b30", "score": "0.63227636", "text": "public String toString(){\r\n return Character.toLowerCase(this.getColor().charAt(0)) + \"K\";\r\n }", "title": "" }, { "docid": "af7f973bd708578f1ef378a4481de525", "score": "0.62799674", "text": "public String getBeeColor(){\n String tempColor = this.dataManager.get(BEE_COLOR);\n if (tempColor.isEmpty()){\n return \"#FFFFFF\";\n } else {\n return this.dataManager.get(BEE_COLOR);\n }\n }", "title": "" }, { "docid": "41fbe89f28d8c1a543762b78b385590b", "score": "0.62602884", "text": "public static String getHexFromRGB(int encodedRGBColorCode) {\n String decodedHexColourCode = String.format(\"#%02X%02X%02X\", Color.red(encodedRGBColorCode), Color.green(encodedRGBColorCode), Color.blue(encodedRGBColorCode));\n return decodedHexColourCode;\n }", "title": "" }, { "docid": "79c4bd59cca7e8bc7abcd12c164efc16", "score": "0.62087697", "text": "public String toString() {\r\n String c;\r\n if (color == Color.RED) {\r\n c = \"red\";\r\n } else {\r\n c = \"black\";\r\n }\r\n String s = \"\" + suit + value + \" is a \" + c + \" card and isFound is \" + isFound;\r\n return s;\r\n }", "title": "" }, { "docid": "5404c471d3b05960c15a1b2720286795", "score": "0.62020624", "text": "public String toString() {\n\n return \"I got a new color with \" + this.saturation + \" Contrast\";\n }", "title": "" }, { "docid": "44d006e721e70e3b090c875d8deb313d", "score": "0.6147663", "text": "public Color getColor() {\r\n return ColorUtils.decodeHtmlColor(toString());\r\n }", "title": "" }, { "docid": "53f424e896113b8292b00e19e49fde83", "score": "0.6126963", "text": "public String getColor();", "title": "" }, { "docid": "53f424e896113b8292b00e19e49fde83", "score": "0.6126963", "text": "public String getColor();", "title": "" }, { "docid": "8ce6439d8dbc56275fdca055fdf6c3cb", "score": "0.61244965", "text": "public static String getColor(String name) {\n String code = toMD5(name);\n return code == null || code.length() < 32 ? null : \"#\" + code.substring(0, 6);\n }", "title": "" }, { "docid": "9e0d058e28c547080e176a6e60a932e0", "score": "0.6123871", "text": "@Override\r\n public String toString()\r\n {\r\n return (super.toString() + \"\\t\" + getMyColor().toString());\r\n }", "title": "" }, { "docid": "33cb51ef5ba352bd4630897b07e2de80", "score": "0.61224097", "text": "public String getColor(Role r) {\n\t\tif(r.getColor() != null)\n\t\t\treturn \"RGBA: (\" + r.getColor().getRed() + \", \" + r.getColor().getBlue() + \", \" + r.getColor().getGreen() + \", \" + r.getColor().getAlpha() + \")\";\n\t\treturn \"Default color.\";\n\t}", "title": "" }, { "docid": "193cf72c35bdd53416e23e28fe141594", "score": "0.61039543", "text": "private String coloredCardColor(CardColor color){\n String sign = \"█ \";\n switch (color){\n case BLUE:\n return ColorCli.BLUE.paint(sign);\n case GREEN:\n return ColorCli.GREEN.paint(sign);\n case PURPLE:\n return ColorCli.PURPLE.paint(sign);\n case YELLOW:\n return ColorCli.YELLOW.paint(sign);\n default:\n return sign;\n }\n }", "title": "" }, { "docid": "142bc7c965b3a79bfd141c9ebc8db365", "score": "0.6090579", "text": "@Override\n\t/**\n\t * Tostring the colours to format that can be used by the texture manager\n\t * \n\t * @return String the string reposition of colour\n\t * \n\t */\n\tpublic String toString() {\n\t\tString s = super.toString();\n\t\treturn s.substring(0, 1) + s.substring(1).toLowerCase();\n\t}", "title": "" }, { "docid": "82a6e59dc112229209708e6258ce3f42", "score": "0.60785186", "text": "public final String getColor() {\n return this.color;\n }", "title": "" }, { "docid": "1aa57009b2043a39f91211f41ec9d766", "score": "0.6076298", "text": "public String getColorNum() {\n return (String) getAttributeInternal(COLORNUM);\n }", "title": "" }, { "docid": "4d202fed7b99476278bc9ac14aea5402", "score": "0.6073942", "text": "public String toString() {\n\t\tString texto = String.format(\"{Radio: %.2f; Color: %s}\",getRadio(),getColor());\n\t\treturn texto;\n\t}", "title": "" }, { "docid": "d0bb2f897d7137a1ae3e7ad7e9c6ae29", "score": "0.6070521", "text": "String getColorCombo() {\n return \"Color: (\" + this.redCode + \", \" + this.greenCode\n + \", \" + this.blueCode + \")\";\n }", "title": "" }, { "docid": "2e16a2ecaa2142b160bba41021c384f2", "score": "0.6067746", "text": "public String getGuitarColor() {\n\t\t// Is the guitar red?\n\t\tif (guitarColor == Color.red) {\n\t\t\treturn \"Red\";\n\t\t}\n\t\t// Is the guitar black?\n\t\tif (guitarColor == Color.black) {\n\t\t\treturn \"Black\";\n\t\t}\n\t\t// Is the guitar blue?\n\t\tif (guitarColor == Color.blue) {\n\t\t\treturn \"Blue\";\n\t\t}\n\t\t// Is the guitar green?\n\t\tif (guitarColor == Color.green) {\n\t\t\treturn \"Green\";\n\t\t}\n\n\t\t// Guitar is a color we haven't seen before; return the Java representation of the color.\n\t\treturn guitarColor.toString();\n\t}", "title": "" }, { "docid": "a926bf9f4508ebaa88c17809b93b8e97", "score": "0.60581815", "text": "public String getColor()\n {\n return color;\n }", "title": "" }, { "docid": "aebf0492e6429d0f3ef3b70cde83d801", "score": "0.60579634", "text": "public String getColor() {\n return color;\n }", "title": "" }, { "docid": "aebf0492e6429d0f3ef3b70cde83d801", "score": "0.60579634", "text": "public String getColor() {\n return color;\n }", "title": "" }, { "docid": "aebf0492e6429d0f3ef3b70cde83d801", "score": "0.60579634", "text": "public String getColor() {\n return color;\n }", "title": "" }, { "docid": "49585dd96d86554ea740c2ce1ac6d9a7", "score": "0.6052996", "text": "public String getColor() {\n\t\treturn color;\n\t}", "title": "" }, { "docid": "49585dd96d86554ea740c2ce1ac6d9a7", "score": "0.6052996", "text": "public String getColor() {\n\t\treturn color;\n\t}", "title": "" }, { "docid": "49585dd96d86554ea740c2ce1ac6d9a7", "score": "0.6052996", "text": "public String getColor() {\n\t\treturn color;\n\t}", "title": "" }, { "docid": "49585dd96d86554ea740c2ce1ac6d9a7", "score": "0.6052996", "text": "public String getColor() {\n\t\treturn color;\n\t}", "title": "" }, { "docid": "49585dd96d86554ea740c2ce1ac6d9a7", "score": "0.6052996", "text": "public String getColor() {\n\t\treturn color;\n\t}", "title": "" }, { "docid": "49585dd96d86554ea740c2ce1ac6d9a7", "score": "0.6052996", "text": "public String getColor() {\n\t\treturn color;\n\t}", "title": "" }, { "docid": "59265df635497efd36044931a0451885", "score": "0.60501236", "text": "public String getColor() {\r\n return color;\r\n }", "title": "" }, { "docid": "59265df635497efd36044931a0451885", "score": "0.60501236", "text": "public String getColor() {\r\n return color;\r\n }", "title": "" }, { "docid": "596ed06670fa95a9a6d33a70a2cc5ee7", "score": "0.6045688", "text": "public Color getTextColor() {\n int r = getRed();\n int g = getGreen();\n int b = getBlue();\n if (r > 240 || g > 240) {\n return Color.black;\n } else {\n return Color.white;\n }\n }", "title": "" }, { "docid": "88bbd2acaf879c30bad153041dfd07bb", "score": "0.6038373", "text": "@Override\r\n\tpublic String getcolorName() {\n\t\treturn \"Blue\";\r\n\t}", "title": "" }, { "docid": "11731418c980984551cc782b8a76564b", "score": "0.6029298", "text": "public String getColorName() {\n return colorName;\n }", "title": "" }, { "docid": "96087454fc895699ff53a82e7f3ef890", "score": "0.60116684", "text": "public static String toHex(RGB rgb) {\n\t\tif (rgb == null)\n\t\t\treturn \"000000\";\n\t\treturn String.format(\"%02x%02x%02x\", rgb.red, rgb.green, rgb.blue);\n\t}", "title": "" }, { "docid": "c2c474f878c1bab716dfea23bdccde00", "score": "0.6000513", "text": "public final static String encodeColor(final Color color) {\n\n\t\treturn ColorSet.encodeColor(color);\n\t}", "title": "" }, { "docid": "9910bae01cc0115461c411de1e4ccf3e", "score": "0.5981786", "text": "public String getColor() {\n\r\n\t\treturn this.color;\r\n\t}", "title": "" }, { "docid": "7bc053ee82a8e642592bd730dcfe3812", "score": "0.5976749", "text": "public String stringOutput() {\r\n\t\tString output = \"\";\t\t\r\n\t\tif (isRed) { \r\n\t\t\toutput = \"red\";\r\n\t\t} else {\r\n\t\t\toutput = \"yellow\";\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "title": "" }, { "docid": "b8b94cc94abd498a2ae34fa060ca9cec", "score": "0.59708923", "text": "com.google.protobuf.ByteString\n getColorBytes();", "title": "" }, { "docid": "50c830962aa6de473419b39c1d6124e4", "score": "0.5960258", "text": "@Override\n public String toString() {\n StringBuilder b = new StringBuilder();\n b.append(toHexString(ref[0]));\n b.append(toHexString(ref[1]));\n return b.toString();\n }", "title": "" }, { "docid": "a6469b513f595caa8068f1585b8ba386", "score": "0.5953933", "text": "public Color getColor(){\r\n return Color.rgb(Red,Green,Blue);\r\n }", "title": "" }, { "docid": "f05f14db9eec6c3f9d933fd4bd39c8ad", "score": "0.59414095", "text": "public final String getColorName(final Color c) {\n if (Color.BLUE.equals(c)) {\n return \"BLUE\";\n } else if (Color.YELLOW.equals(c)) {\n return \"JAUNE\";\n } else if (Color.RED.equals(c)) {\n return \"RED\";\n } else if (Color.PINK.equals(c)) {\n return \"ROSE\";\n } else if (Color.GREEN.equals(c)) {\n return \"VERT\";\n } else if (Color.CYAN.equals(c)) {\n return \"CYAN\";\n } else if (Color.MAGENTA.equals(c)) {\n return \"VIOLET\";\n } else if (Color.GRAY.equals(c)) {\n return \"GRIS\";\n }\n return \"BRUN\";\n }", "title": "" }, { "docid": "067ed632be67df6b4a4f0987571933fe", "score": "0.59020126", "text": "@Override\n public String toString(){\n if (col == Color.WHITE){\n return \"♝\";\n } else {\n return \"♗\";\n }\n }", "title": "" }, { "docid": "cd3ba7126d6d89750cb38a044166583d", "score": "0.58954126", "text": "public String getColorCode() {\n return colorCode;\n }", "title": "" }, { "docid": "719dc02de01f660f6cb676154aaf6564", "score": "0.5882047", "text": "public String getColor() {\r\n\t\treturn getAttribute(\"color\", \"black\");\r\n\t}", "title": "" }, { "docid": "2b2a897f5e232de6be60acdc8e00ea81", "score": "0.58775127", "text": "@Override\n\tpublic String getColor() {\n\t\treturn \"Black\";\n\t}", "title": "" }, { "docid": "e46deaee682b9375ee5ae1458ed43007", "score": "0.58742815", "text": "public String getColor()\n {\n return this.color;\n }", "title": "" }, { "docid": "ba888948b724004f9b218585be69f9ec", "score": "0.58690244", "text": "public static String convertColor(String color){\n return \"#\" + color.substring(6) + color.substring(0,6);\n }", "title": "" }, { "docid": "5363f7e34e28e580b7e8c1c697e524c7", "score": "0.58676517", "text": "public String getColor() {\n\t\treturn this.color;\n\t}", "title": "" }, { "docid": "64a87e1a2da794583a1d51f837270d1c", "score": "0.58651036", "text": "public String toString(){\n\t\t\n\t\tString symbol = getValue();\n\t\tsymbol = symbol.replace(\"\\r\", \"#r\"); \t// Carriage Return Character\n\t\tsymbol = symbol.replace(\"\\n\", \"#n\");\t// New Line Character\n\t\tsymbol = symbol.replace(\"\\t\", \"#t\");\t// Tab Character\t\n\t\t\n\t\treturn symbol;\n\t}", "title": "" }, { "docid": "b6547c4eaeb880cca9750445a9430160", "score": "0.58611697", "text": "@Override\r\n\tpublic String getColor() {\n\t\treturn \"Black\";\r\n\t}", "title": "" }, { "docid": "b1626af4ca8b04b6bc636d066351e52a", "score": "0.58389246", "text": "private String buildInformation(int color)\r\n\t{\r\n\t\t//conversion for red, green, blue\r\n\t\tint r = Color.red(color);\r\n\t\tint g = Color.green(color);\r\n\t\tint b = Color.blue(color);\r\n\t\t\r\n\t\t//conversion to floats for HSV\r\n\t\tfloat[] hsv;\r\n\t\thsv = new float[3];\r\n\t\tColor.colorToHSV(color, hsv);\r\n\t\tint h = (int)hsv[0];\r\n\t\tint s = (int)(hsv[1]*100.0f);\r\n\t\tint v = (int)(hsv[2]*100.0f);\r\n\t\t\r\n\t\t//build the string\r\n\t\tStringBuilder strInfo = new StringBuilder();\r\n\t\tString hexString=String.format(\"#%X\", color);\r\n\t\t\r\n\t\thexString=String.copyValueOf(hexString.toCharArray());\r\n\t\tstrInfo.append(\"Hex: \"+hexString+\"\\n\");\r\n\t\tstrInfo.append(\"R: \"+r+\" G: \"+g+\" B: \"+b+\"\\n\");\r\n\t\tstrInfo.append(\"H: \"+h+\" S: \"+s+\" V: \"+v);\r\n\t\t\r\n\t\treturn strInfo.toString();\r\n\t}", "title": "" }, { "docid": "71221e47788ebd8960f6ff796f185473", "score": "0.5838108", "text": "public Paint getColor() {\n String colorString=properties.get(\"color\").getValue();\n int r=Integer.parseInt(colorString.substring(1,3), 16); \n int g=Integer.parseInt(colorString.substring(3,5), 16); \n int b=Integer.parseInt(colorString.substring(5,7), 16);\n Paint color=new Color(r,g,b);\n return color;\n }", "title": "" }, { "docid": "2f95a3a4a19eed17aa46599455c166aa", "score": "0.58328336", "text": "public static String getColorText(Color c, String text) throws ColorNotExistedException{\n\t\tif(c.equals(Color.ORANGE)){ \n\t\t\treturn \"\\u001b[1;37m\\u001b[43m\"+text+\"\\u001b[47m\\u001b[0m\";\n\t\t}else if(c.equals(Color.GREEN)){\n\t\t\treturn \"\\u001b[1;37m\\u001b[42m\"+text+\"\\u001b[47m\\u001b[0m\";\n\t\t}else if(c.equals(Color.PURPLE)){\n\t\t\treturn \"\\u001b[1;37m\\u001b[45m\"+text+\"\\u001b[47m\\u001b[0m\";\n\t\t}else if(c.equals(Color.WHITE)){\n\t\t\treturn \"\\u001b[1;37m\\u001b[47m\"+text+\"\\u001b[47m\\u001b[0m\";\n\t\t}else if(c.equals(Color.BLUE)){\n\t\t\treturn \"\\u001b[1;37m\\u001b[44m\"+text+\"\\u001b[47m\\u001b[0m\";\n\t\t}else if(c.equals(Color.RED)){\n\t\t\treturn \"\\u001b[1;37m\\u001b[41m\"+text+\"\\u001b[47m\\u001b[0m\";\n\t\t}else if(c.equals(Color.BLACK)){\n\t\t\treturn \"\\u001b[1;37m\\u001b[40m\"+text+\"\\u001b[47m\\u001b[0m\";\n\t\t}else{\n\t\t\tthrow new ColorNotExistedException(\"this color does not exist\");\n\t\t}\n\t}", "title": "" }, { "docid": "0ec59d66f256975d2d52f39b7c53cc93", "score": "0.58160985", "text": "public String toString(){\n \tString temp = \"\";\n \tdouble x = getPoint().getX();\n \tdouble y = getPoint().getY();\n \tif (color.equals(Color.RED)){\n \t\ttemp = \"Red, Location: \"+ x+\" \"+y;\n \t}\n \telse if (color.equals(Color.GREEN)){\n \t\ttemp = \"Green, Location: \"+ x+\" \"+y;\n \t}\n \telse{\n \t\ttemp = \"Blue, Location: \"+ x+\" \"+y;\n \t}\n return \"Color: \"+ temp+ \"\\n\";\n }", "title": "" }, { "docid": "52d9d57e1a515df0fdfb2f12ebc71ca9", "score": "0.58133256", "text": "public String getColor(){\n return color;\n }", "title": "" }, { "docid": "17786c25efa596cd852206dd8b6962fc", "score": "0.5801974", "text": "ReversiColor getColor();", "title": "" }, { "docid": "32ef7b0bd65382bd131f3735ecbb62fe", "score": "0.57956314", "text": "public String getColor() {\n return (String) getAttributeInternal(COLOR);\n }", "title": "" }, { "docid": "786b5565f6c2a200b24bbe73e006b2b4", "score": "0.578487", "text": "@Override\r\n public String toString() {\r\n \r\n StringBuilder sb = new StringBuilder(\"Pattern: \");\r\n for(byte value:this.getData()) {\r\n sb.append(String.format(\"%02X \", value & 0xFF));\r\n } \r\n \r\n return sb.toString();\r\n }", "title": "" }, { "docid": "e50a2ff1059bdc3255b6887bdb5ed72e", "score": "0.5778891", "text": "public static int getColorEncoding(int red, int green, int blue) {\n return Color.rgb(red, green, blue);\n }", "title": "" }, { "docid": "6903c932db63d1c19c8bf63531a0fde3", "score": "0.57780606", "text": "public Color getRubberbandColor() {\r\n return new Color(0x33, 0x33, 0x99);\r\n }", "title": "" }, { "docid": "3249739b253511ecd7bb0f9560cddafc", "score": "0.5761056", "text": "public String toString(){\n\t\tif (this.isSpecial()){\n\t\t\tif (this.isWild()){\n\t\t\t\tif (this.isWildDrawFour()){\n\t\t\t\t\treturn \"wild draw four card\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\treturn \"wild card\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (this.isDrawTwo()){\n\t\t\t\treturn this.getColor()+\" draw two\";\n\t\t\t}\n\t\t\telse if (this.isReverse()){\n\t\t\t\treturn this.getColor()+\" reverse\";\n\t\t\t}\n\t\t\telse if (this.isSkip){\n\t\t\t\treturn this.getColor()+\" skip\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn \"this shouldn't happen\";\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\treturn this.getColor()+\" \"+this.getNumber();\n\t\t}\n\t}", "title": "" }, { "docid": "2b4cebc0ff74fd6db5a4e46188a9863d", "score": "0.5755762", "text": "public String toString() {\n String result = \"\";\n for (int i = 0; i < pieces.length; i++) {\n for (int j = 0; j < pieces[i].length; j++) {\n if (pieces[i][j] == PieceColor.BLUE)\n result += \"(\" + boardVals[i][j] + \")\\t\";\n else if (pieces[i][j] == PieceColor.GREEN)\n result += \"<\" + boardVals[i][j] + \">\\t\";\n else\n result += boardVals[i][j] + \"\\t\";\n }\n result += \"\\n\";\n }\n result += \"(#) = Blue; <#> = Green; # = Blank\";\n return result;\n }", "title": "" }, { "docid": "49bcb8632944f724bb5eb526ce410b29", "score": "0.5730066", "text": "public String toString() {\n\t\treturn \"Created on: \" + dateCreated + \"\\nColor: \" + color + \"\\nFilled: \" + filled;\t\n\t}", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.5688584", "text": "Color getColor();", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.5688584", "text": "Color getColor();", "title": "" } ]
841d3b717677ecbac8e85bec32778f77
Convierte un String UTF8 a ISO88591
[ { "docid": "e868ce58176cc109188c0f551a0266c7", "score": "0.6909108", "text": "public static String utf8ToIso(String uft8String) {\n return uft8String\n .replace(\"á\", \"&#225;\")\n .replace(\"�\", \"&#193;\")\n .replace(\"é\", \"&#233;\")\n .replace(\"É\", \"&#201;\")\n .replace(\"í\", \"&#237;\")\n .replace(\"�\", \"&#205;\")\n .replace(\"ó\", \"&#243;\")\n .replace(\"Ó\", \"&#211;\")\n .replace(\"ú\", \"&#250;\")\n .replace(\"Ú\", \"&#218;\")\n .replace(\"ñ\", \"&#241;\")\n .replace(\"Ñ\", \"&#209;\");\n }", "title": "" } ]
[ { "docid": "64ed13b9c7afacc03d7ba1e4e2c75877", "score": "0.7376169", "text": "private String toUTF8EncodedString(final String str) {\n byte[] bytes = str.getBytes(Charset.forName(\"ISO_8859_1\"));\n return new String(bytes, Charset.forName(\"UTF-8\"));\n }", "title": "" }, { "docid": "b113a612ec12895b21067f9c5a3c2d8e", "score": "0.702593", "text": "public static String transcodeUTF8(String original) {\n try {\n byte raw[] = original.getBytes(\"8859_1\");\n return new String(raw, 0, raw.length, \"UTF-8\");\n } catch (java.io.UnsupportedEncodingException e) {\n throw new OntopiaRuntimeException(e);\n }\n }", "title": "" }, { "docid": "241245fa25339fcd0704210e96bdecc4", "score": "0.6773298", "text": "public static byte[] encodeISO(String string) {\n\t return string.getBytes(Charset.forName(\"ISO-8859-1\"));\n\t}", "title": "" }, { "docid": "d13ea6dcdaa29808aabd348593c6b419", "score": "0.6472595", "text": "public static Byte[] encodeISO(String string, int length) {\n\t byte[] temp = string.getBytes(Charset.forName(\"ISO-8859-1\"));\n\t byte[] result = new byte[length];\n\n\t \n\t for(int i = 0; i < temp.length; i++) {\n\t \tresult[i] = temp[i];\n\t }\n\t \n\t for(int i = temp.length; i < length; i++) {\n\t \tresult[i] = (byte) 0x0;\n\t }\n\t \n\t Byte[] resultConvert = new Byte[result.length];\n \t\n \tfor(int i = 0; i < result.length; i++){\n \t\tresultConvert[i] = (Byte)result[i];\n \t}\n \t\n\t return resultConvert;\n\t}", "title": "" }, { "docid": "4d604dbf5946f75c3248ecf50524f528", "score": "0.6438152", "text": "public static byte[] encodeISOByte(String string, int length) {\n\t byte[] temp = string.getBytes(Charset.forName(\"ISO-8859-1\"));\n\t byte[] result = new byte[length];\n\t \n\t \n\t if(length > temp.length){\n\t\t for(int i = 0; i < temp.length; i++) {\n\t\t \tresult[i] = temp[i];\n\t\t }\n \t}\n\t else{\n\t \tfor(int i = 0; i < length; i++) {\n\t\t \tresult[i] = temp[i];\n\t\t }\n\t }\n\t \n\t for(int i = temp.length; i < length; i++) {\n\t \tresult[i] = (byte) 0x0;\n\t }\n\t \n \tLog.i(\"Resultat\", result + \"\");\n\t return result;\n\t}", "title": "" }, { "docid": "9c992061552da9407233a32deb96a6f3", "score": "0.636999", "text": "@Ignore\n @Test\n public void testUTF8Decoder() throws IOException {\n \n CharsetDecoder decoder =\n Charset.forName(\"UTF8\").newDecoder().onMalformedInput(CodingErrorAction.REPORT);\n URL url = CharsetDecoderTest.class.getResource(\"iso8859-1.txt\");\n String s = IOUtils.toString(url, \"UTF-8\");\n byte[] b = s.getBytes(Charset.forName(\"UTF8\"));\n String s2;\n// decoder.decode(new ByteBuffer(b));\n s2 = StringUtils.toString(b, \"UTF8\");\n System.out.println(s2);\n }", "title": "" }, { "docid": "440f2cc3e40f6b39a19d972c8e950f16", "score": "0.6335036", "text": "private static String big5toUtf8(String s) {\n String str = null;\n try {\n// new String(str1.getBytes(encoding1),encoding2);\n str= new String(s.getBytes(),\"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n return str;\n }", "title": "" }, { "docid": "7f72558c284c8a6c7f2abe534846a80d", "score": "0.6193629", "text": "public static String convertToUTF8(String s) {\n return new String(s.getBytes(Charset.forName(\"UTF-8\")));\n }", "title": "" }, { "docid": "8fb4eb5f800e1b3a8e9728a2e890a8a1", "score": "0.6116852", "text": "public static String transcode(String original, String encoding) throws java.io.UnsupportedEncodingException {\n byte raw[] = original.getBytes(\"8859_1\");\n return new String(raw, 0, raw.length, encoding);\n }", "title": "" }, { "docid": "dea6fe0f42bdb4e8752e01ede366ef8c", "score": "0.60905904", "text": "byte [] EncodeToUTF8(String string)\n {\n ByteBuffer byteBuffer = StandardCharsets.UTF_8.encode(string);\n byte [] buff = new byte [byteBuffer.remaining()];\n byteBuffer.get(buff, 0, buff.length);\n return buff;\n }", "title": "" }, { "docid": "71db8b42f70cec2c69354bc20aa27e17", "score": "0.6001804", "text": "public static String convertFromUTF8(String s) {\n String out = null;\n\n Logger.debug(\"system encoding\", System.getProperty(\"file.encoding\"));\n\n try {\n out = new String(s.getBytes(System.getProperty(\"file.encoding\")), Charset.forName(\"UTF-8\"));\n } catch (java.io.UnsupportedEncodingException e) {\n return null;\n }\n\n return out;\n }", "title": "" }, { "docid": "5e8d928c2683e886d52f36db854e2423", "score": "0.59914017", "text": "public static byte[] utf8encode( String s )\n {\n try\n {\n return s.getBytes( \"UTF-8\" ); //$NON-NLS-1$\n }\n catch ( UnsupportedEncodingException e )\n {\n return s.getBytes();\n }\n }", "title": "" }, { "docid": "946b3bea1ae44500d2177c406f48631a", "score": "0.5934965", "text": "public String getCharacterEncoding (){\n\t String charset = getParameter (\";charset=\", ctype);\n\t return (charset != null)? charset : \"iso-8859-1\";\n\t}", "title": "" }, { "docid": "0f3546bfcdb15d555fa5d76224a4688a", "score": "0.59263945", "text": "public static String decodeISO(byte[] bytes) {\n\t return new String(bytes, Charset.forName(\"ISO-8859-1\"));\n\t}", "title": "" }, { "docid": "5f0a83643c2af9b19c32ec8934926403", "score": "0.587362", "text": "public static InputSource createUTF8InputSource(String xml) throws UnsupportedEncodingException\r\n {\r\n return new InputSource(new ByteArrayInputStream(xml.getBytes(\"UTF-8\")));\r\n }", "title": "" }, { "docid": "e74082cbbc746fa89f0e56db71b60ddd", "score": "0.5867591", "text": "public static AztecCode encode(String data) {\n return encode(data.getBytes(StandardCharsets.ISO_8859_1));\n }", "title": "" }, { "docid": "b6e48c2b1750229afeb25d641588c97f", "score": "0.5834982", "text": "private static String gb2312toUtf8(String s) {\n String str = null;\n try {\n str= new String(s.getBytes(),\"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n return str;\n }", "title": "" }, { "docid": "dc6d657df07e47bbf387a050ba6dc764", "score": "0.5720257", "text": "private static final byte[] toUTF8String(String s)\n {\n try (ByteArrayOutputStream bytes = new ByteArrayOutputStream())\n {\n DataOutputStream stream = new DataOutputStream(bytes);\n stream.writeUTF(s);\n return bytes.toByteArray();\n }\n catch (Exception e)\n {\n throw new BailoutException(e, \"UTF-8 encoding failed: %s\", s);\n }\n }", "title": "" }, { "docid": "6f433e266b97af4c0543e4e74ff2fd1d", "score": "0.56366813", "text": "public static String utf8HexEncode(String s) {\n if (s == null) {\n return null;\n }\n byte[] utf8;\n try {\n utf8 = s.getBytes(UTF_8);\n } catch (UnsupportedEncodingException x) {\n throw new RuntimeException(x);\n }\n return hexEncode(utf8);\n }", "title": "" }, { "docid": "9180f81d1db53e88036a257bf6509546", "score": "0.5524419", "text": "@Test\n public void convertCharset() throws Exception {\n final String string = \"UTF-8\";\n assertConversion(java.nio.charset.Charset.class, string, java.nio.charset.Charset.forName(string));\n }", "title": "" }, { "docid": "1c12e5ee51be8fa4a03bf7cc60460ba6", "score": "0.550931", "text": "public static String getContent(InputStream in, String encoding) throws IOException{ \n\t\tencoding = encoding == null ? \"UTF-8\" : encoding;\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbyte[] buf = new byte[8192];\n\t\tint len = 0;\n\t\twhile ((len = in.read(buf)) != -1) {\n\t\t baos.write(buf, 0, len);\n\t\t}\n\t\tString body = new String(baos.toByteArray(),encoding);\n\t\tString decodedToISO88591 = unescapeJava(body);\n\t\t// System.out.println(body);\n\t\treturn decodedToISO88591;\n\t}", "title": "" }, { "docid": "92e2cc6e23b0403858d3dcdb76970a15", "score": "0.54891485", "text": "public static final String getEncoding(){ return \"utf-8\"; }", "title": "" }, { "docid": "9b43a767972fed271c52172e310a9c8b", "score": "0.54818445", "text": "public String GB2Uni(String GB) {\n\t\ttry {\n\t\t if (GB==null)\n\t\t {\n\t\t\t\treturn \"\";\n\t\t }\n\t\t\tGB=GB.trim();\n\t\t\tbyte[] tmp = GB.getBytes(\"8859_1\"); //you must change the byte code\n\t\t String result = new String(tmp);\n\t\t return result;\n\t\t} \n\t\tcatch(java.io.UnsupportedEncodingException e) {\n\t\t\tSystem.out.println(\"CommonFunction.GB2Uni UnsupportedEncodingException\"+e);\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "9f030e16d9c149c4e6aaf0fbe2544084", "score": "0.5432555", "text": "public static String newStringUsAscii(byte[] bytes)\n/* */ {\n/* 86 */ return newString(bytes, StandardCharsets.US_ASCII);\n/* */ }", "title": "" }, { "docid": "83bc98318a3e9e71b982157acebb875f", "score": "0.5424349", "text": "private static String guessAppropriateEncoding(CharSequence contents) {\n for (int i = 0; i < contents.length(); i++) {\n if (contents.charAt(i) > 0xFF) {\n return \"UTF-8\";\n }\n }\n return null;\n }", "title": "" }, { "docid": "83bc98318a3e9e71b982157acebb875f", "score": "0.5424349", "text": "private static String guessAppropriateEncoding(CharSequence contents) {\n for (int i = 0; i < contents.length(); i++) {\n if (contents.charAt(i) > 0xFF) {\n return \"UTF-8\";\n }\n }\n return null;\n }", "title": "" }, { "docid": "96661810e6c99e9681e323a770f51004", "score": "0.5407548", "text": "private static String _utf8toString(byte[] bytes) throws CharacterCodingException, UnsupportedEncodingException {\n\t\treturn _byteArrayToString(bytes, \"UTF-8\");\n\t}", "title": "" }, { "docid": "bdc12284ce1324b6e030ddb932186c87", "score": "0.53902745", "text": "public EnsureEncoding() {\n this(TRY_ENC_UTF8_ISO88591_UTF16LE_UTF16BE);\n }", "title": "" }, { "docid": "0151e7867bb150670c62d387b49c8834", "score": "0.53698707", "text": "public String encode(String charset, byte[] data) throws Exception;", "title": "" }, { "docid": "66e3ce36d232bcaed1f32e20d88730cd", "score": "0.5369394", "text": "public COERIA5String (String value, int size) throws UnsupportedEncodingException\n {\n super (value.getBytes(\"US-ASCII\"), size, size); // convert the string into ascii bytes\n\n }", "title": "" }, { "docid": "a894bf47cfb4f8172fd51a8767ca8ec6", "score": "0.5319524", "text": "public static String enc(String unencodedString) {\n\t\ttry {\n\t\t\treturn URLEncoder.encode(unencodedString, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t} // UTF-8 is never unsupported\n\t\treturn null;\n\t}", "title": "" }, { "docid": "be0ae3af1dee0c38b07f8a04fb01174e", "score": "0.53187877", "text": "public String getCharacterEncoding();", "title": "" }, { "docid": "dcb96afac98c80d4c733fc0ed7ff04f3", "score": "0.53135014", "text": "Charset getEncoding();", "title": "" }, { "docid": "e6ffb63315e3f4bcffd198839d3b48bc", "score": "0.5307824", "text": "public static boolean isValidUTF8(final String input) {\r\n\t\r\n\t/*\r\n\t@SuppressWarnings(\"unused\")\r\n\tbyte[] myBytes = null;\r\n\r\n\ttry {\r\n\t myBytes = input.getBytes(Constantes.CHARSET_OUTPUT.toString());\r\n\t} catch (UnsupportedEncodingException e) {\r\n\t return false;\r\n\t}\r\n\r\n\treturn true;\r\n\t*/\r\n\treturn true;\r\n }", "title": "" }, { "docid": "26e3f597adea022b8d63b146c4e2029d", "score": "0.5290983", "text": "public static String TransformEncoding(String param)\r\n\t{\r\n\t\treturn param.replaceAll(\"\\\\%20\", \"+\").replaceAll(\"\\\\!\", \"%21\").replaceAll(\"\\\\'\", \"%27\").replaceAll(\"\\\\(\", \"%28\").replaceAll(\"\\\\)\", \"%29\").replaceAll(\"\\\\~\", \"%7E\");\r\n\t}", "title": "" }, { "docid": "8d8533e1c9dffc80312b74d8d4fbf726", "score": "0.52515876", "text": "private String getResult(InputStream is)\n\t{\n\t\ttry{\n\t\t BufferedReader reader = new BufferedReader(new InputStreamReader(is,\"iso-8859-1\"),8);\n\t\t StringBuilder sb = new StringBuilder();\n\t\t String line = null;\n\t\t while ((line = reader.readLine()) != null) {\n\t\t sb.append(line + \"\\n\");\n\t\t }\n\t\t is.close();\n\t\t \n\t\t result=sb.toString();\n\t\t}catch(Exception e){\n\t\t Log.e(\"log_tag\", \"Error converting result \"+e.toString());\n\t\t}\n\t\t\n\t\treturn result;\t\n\t}", "title": "" }, { "docid": "4a4c81c92a8205a91f1a5f2ca2c9ec3c", "score": "0.52491736", "text": "private static String sniffCharacterEncoding(byte[] content) {\n\t\tint length = content.length < CHUNK_SIZE ? content.length : CHUNK_SIZE;\n\n\t\t// We don't care about non-ASCII parts so that it's sufficient\n\t\t// to just inflate each byte to a 16-bit value by padding.\n\t\t// For instance, the sequence {0x41, 0x82, 0xb7} will be turned into\n\t\t// {U+0041, U+0082, U+00B7}.\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = new String(content, 0, length, Charset.forName(\"ASCII\")\n\t\t\t\t\t.toString());\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// code should never come here, but just in case...\n\t\t\treturn null;\n\t\t}\n\n\t\tMatcher metaMatcher = metaPattern.matcher(str);\n\t\tString encoding = null;\n\t\tif (metaMatcher.find()) {\n\t\t\tMatcher charsetMatcher = charsetPattern.matcher(metaMatcher\n\t\t\t\t\t.group(1));\n\t\t\tif (charsetMatcher.find())\n\t\t\t\tencoding = new String(charsetMatcher.group(1));\n\t\t}\n\n\t\treturn encoding;\n\t}", "title": "" }, { "docid": "1117b266f6f5830c463a13904a2a1c9c", "score": "0.5230579", "text": "private byte[] getUtf8Bytes(String sourceStr) throws UnsupportedEncodingException {\n return new String(sourceStr.getBytes(), \"UTF-8\").getBytes();\n }", "title": "" }, { "docid": "122a58d5311d6a64a80000b34a0a4e3c", "score": "0.52278006", "text": "String getInputEncoding();", "title": "" }, { "docid": "df053ee87e44fd8e9ade33a93d73d861", "score": "0.5215431", "text": "@Override\n public String getCharacterEncoding() {\n return \"UTF-8\"; // You should know the actual encoding.\n }", "title": "" }, { "docid": "158acbce395ff8c2af746d68af8c129e", "score": "0.5190918", "text": "protected final Charset getCharset() {\n return mediaType == null || mediaType.getCharsetParameter() == null\n ? StandardCharsets.ISO_8859_1\n : mediaType.getCharsetParameter();\n }", "title": "" }, { "docid": "7cb1d0925fcee5bdf08ec31e4cd6ddab", "score": "0.51822835", "text": "@Test\n public void Utf8Test() throws Exception {\n File xmlFile = getClassPathFile(UTF8);\n String xmlString = FileUtils.readFileToString(xmlFile, \"UTF-8\");\n Document doc = DocumentHelper.parseText(xmlString);\n String message = doc.valueOf(bodyXPath);\n assertTrue(message.equals(ESCAPED));\n }", "title": "" }, { "docid": "a6048a8279d4af6edb9b6a12791e1a71", "score": "0.5176718", "text": "public static String encodeBase64(String data) {\n byte[] bytes = null;\n try {\n bytes = data.getBytes(\"ISO-8859-1\");\n } catch (UnsupportedEncodingException uee) {\n log.error(uee);\n }\n return encodeBase64(bytes);\n }", "title": "" }, { "docid": "1db4d09a33653f732906b37cdb29a1a5", "score": "0.5166321", "text": "public String toString() {\n return \"ByteToCharConverter: \"+getCharacterEncoding();\n }", "title": "" }, { "docid": "f2ab65586f825598f7f75acf4ec2be34", "score": "0.51634276", "text": "private String encodeString(String value)\n\t//throws UnsupportedEncodingException\n\t{\n\t\treturn StringEscapeUtils.escapeXml(value);\n\t}", "title": "" }, { "docid": "c6cdc30269a59bf6b9fb056523dfacc4", "score": "0.5161802", "text": "public void parse(final InputStream in) throws IOException, SAXException, UnsupportedEncodingException {\n this.parse(in, \"ISO-8859-1\");\n }", "title": "" }, { "docid": "0954003fbcbfaaef76289f45cc921ce1", "score": "0.5154116", "text": "String getContentEncoding();", "title": "" }, { "docid": "7a866a01282d44dceb3e798356c673f7", "score": "0.51535594", "text": "public static String newStringUtf8(byte[] bytes)\n/* */ {\n/* 98 */ return newString(bytes, StandardCharsets.UTF_8);\n/* */ }", "title": "" }, { "docid": "91b9353e56742dc08e08d55ab51b045b", "score": "0.5148485", "text": "protected final String encode(String s, String encoding) {\n return TextUtilities.convert(s, encoding, getConn().getTextEncoding());\n }", "title": "" }, { "docid": "85921f44435aba7acf6146fbb48d8b88", "score": "0.51482147", "text": "Charset getTcpEncoding();", "title": "" }, { "docid": "6e1af6a6d3f05c7f233e39b567c6f055", "score": "0.5136259", "text": "public static Object encodeString(String stringToBeEncoded, String charset, boolean isMimeSpecific) {\n try {\n byte[] encodedValue;\n if (isMimeSpecific) {\n encodedValue = Base64.getMimeEncoder().encode(stringToBeEncoded.getBytes(charset));\n } else {\n encodedValue = Base64.getEncoder().encode(stringToBeEncoded.getBytes(charset));\n }\n return StringUtils.fromString(new String(encodedValue, StandardCharsets.ISO_8859_1));\n } catch (UnsupportedEncodingException e) {\n return Utils.createBase64Error(DECODING_ERROR, e.getMessage(), isMimeSpecific);\n }\n }", "title": "" }, { "docid": "0c6d473e587e5040beb3fcd1f2aeeee7", "score": "0.51267844", "text": "public void setCharacterEncoding(String encoding) \n throws UnsupportedEncodingException {\n // Test the encoding is valid\n new String(\"\".getBytes(\"8859_1\"), encoding);\n // Getting here means we're valid, so set the encoding\n this.encoding = encoding;\n }", "title": "" }, { "docid": "45245b236704d2c352e3bad8ff558137", "score": "0.51255864", "text": "String getEncoding();", "title": "" }, { "docid": "45245b236704d2c352e3bad8ff558137", "score": "0.51255864", "text": "String getEncoding();", "title": "" }, { "docid": "f9c87d206cb05a28439dd2abbd42d707", "score": "0.5121062", "text": "public void guessEncoding()\n {\n String encoding = \"UTF-8\";\n InputStream in = null;\n try\n {\n in = getInputStream();\n if (in != null)\n {\n Charset charset = services.getMimetypeService().getContentCharsetFinder().getCharset(in, getMimetype());\n encoding = charset.name();\n }\n }\n finally\n {\n try\n {\n if (in != null)\n {\n in.close();\n }\n }\n catch (IOException ioErr)\n {\n }\n }\n setEncoding(encoding);\n }", "title": "" }, { "docid": "34c47ba5401cd72a128a1d95db9d5ae1", "score": "0.5095914", "text": "private static String getCharSetEncoding(String contentType) {\n int index = contentType.indexOf(HTTPConstants.CHAR_SET_ENCODING);\n if(index == -1) { //Charset encoding not found in the contect-type header\n //Using the default UTF-8\n return MessageContext.DEFAULT_CHAR_SET_ENCODING;\n }\n\n //If there are spaces around the '=' sign\n int indexOfEq = contentType.indexOf(\"=\", index);\n //There can be situations where \"charset\" is not the last parameter of the Content-Type header\n int indexOfSemiColon = contentType.indexOf(\";\", indexOfEq);\n String value;\n if (indexOfSemiColon > 0) {\n value = (contentType.substring(indexOfEq + 1, indexOfSemiColon));\n } else {\n value = (contentType.substring(indexOfEq + 1, contentType.length()))\n .trim();\n }\n\n //There might be \"\" around the value - if so remove them\n value = value.replaceAll(\"\\\"\", \"\");\n\n if(\"null\".equalsIgnoreCase(value)){\n return null;\n }\n\n return value.trim();\n\n }", "title": "" }, { "docid": "02eb5eaf740bd28801087659e00b725d", "score": "0.503347", "text": "void printUtf8(String string);", "title": "" }, { "docid": "12905deeaeeddae13451718b4b2c17ef", "score": "0.50257", "text": "private static String convertStreamToString(InputStream is) {\n String line = \"\";\n StringBuilder total = new StringBuilder();\n try {\n\n try {\n BufferedReader rd = new BufferedReader(new InputStreamReader(is, \"iso-8859-1\"), 8);\n while ((line = rd.readLine()) != null) {\n total.append(line);\n }\n } catch (Exception e) {\n System.out.println(\"Stream Exception\");\n }\n\n } catch (Exception e) {\n Log.e(\"log_tag\", \"Error converting result \" + e.toString());\n\n }\n return total.toString();\n }", "title": "" }, { "docid": "1af13499d48322e4f4cae7bb2cd792ed", "score": "0.5017849", "text": "private static String m28025a(String str, String str2) {\n if (str2 == null) {\n try {\n return URLEncoder.encode(str, \"ISO-8859-1\");\n } catch (UnsupportedEncodingException e) {\n throw new IllegalArgumentException(e);\n }\n } else if (str2.equals(\"null_encoding\")) {\n return str;\n } else {\n return URLEncoder.encode(str, str2);\n }\n }", "title": "" }, { "docid": "d38a12e6d511deb83891164eb755d3c1", "score": "0.5008498", "text": "public static String encode(final String string) {\n try {\n return URLEncoder.encode(string, \"UTF-8\");\n } catch (final UnsupportedEncodingException e) {\n // UTF-8 should *never* throw this\n throw new UndeclaredThrowableException(e);\n }\n }", "title": "" }, { "docid": "447ece8993737f4c9f2c359e8d4fb21d", "score": "0.50032425", "text": "static public Reader asUTF8(InputStream in) {\n if ( JenaRuntime.runUnder(JenaRuntime.featureNoCharset) )\n return new InputStreamReader(in) ;\n return new InputStreamReader(in, utf8);\n }", "title": "" }, { "docid": "e40cc50b13b01598319fe78e1b075d16", "score": "0.49912405", "text": "public TerminalBuilder encoding(String encoding) throws UnsupportedCharsetException {\n/* 164 */ return encoding((encoding != null) ? Charset.forName(encoding) : null);\n/* */ }", "title": "" }, { "docid": "9642d5823a5d806042f2e595f370d1b7", "score": "0.49836215", "text": "public static byte[] getStr8(String data) throws TankException, UnsupportedEncodingException {\n return getStr8(data.getBytes(\"ASCII\"));\n }", "title": "" }, { "docid": "ca3d887234f1664ab8366b89116f624e", "score": "0.49521655", "text": "private static String parseCharset(String contentType) {\n if (contentType != null) {\n String[] params = contentType.split(\",\");\n for (int i = 1; i < params.length; i++) {\n String[] pair = params[i].trim().split(\"=\");\n if (pair.length == 2) {\n if (pair[0].equals(\"charset\")) {\n return pair[1];\n }\n }\n }\n }\n return \"UTF-8\";\n }", "title": "" }, { "docid": "94da5b51b43b2b7850ae07a21863b764", "score": "0.49514073", "text": "public void setCharacterEncoding(String charset) {\n \r\n }", "title": "" }, { "docid": "e3625244eca67d404ee2337f036b9e95", "score": "0.4944174", "text": "public static String readWholeFileAsUTF8(String filename) throws IOException {\n InputStream in = new FileInputStream(filename) ;\n return readWholeFileAsUTF8(in) ;\n }", "title": "" }, { "docid": "4548872dc57092715cdb81714651b7a7", "score": "0.49405333", "text": "public static ByteToCharConverter getConverter(String encoding)\n throws UnsupportedEncodingException {\n Object cvt;\n cvt = Converters.newConverter(Converters.BYTE_TO_CHAR, encoding);\n return (ByteToCharConverter)cvt;\n }", "title": "" }, { "docid": "b8ad95ca335570753d3b945a5af9bfab", "score": "0.49400678", "text": "public String getCharSetEncoding() {\n return format.getCharSetEncoding();\n }", "title": "" }, { "docid": "96ba99c10960fd0cee1a2b91fe21c3ca", "score": "0.49291614", "text": "public String toString(String enc) throws UnsupportedEncodingException {\n return new String(toByteArray(), enc);\n }", "title": "" }, { "docid": "06bb96597546313c2e1432371f27410a", "score": "0.4928866", "text": "private static String _byteArrayToString(byte[] bytes, String charsetName) throws CharacterCodingException, UnsupportedEncodingException {\n//\t\thttp://www.exampledepot.com/egs/java.nio.charset/ConvertChar.html\n\t\t\n\t\t// Note that <code>new String(bytes, charsetName)</code> is not useful because: \n\t\t// \"The behavior of this constructor when the given bytes are not valid in the \n\t\t// given charset is unspecified.\"\n\t\t\n\t\tCharset charset = Charset.forName(charsetName);\n\n\t\tCharsetDecoder decoder = charset.newDecoder();\n\t\tdecoder\n\t\t\t.onMalformedInput(CodingErrorAction.REPORT)\n\t\t\t.onUnmappableCharacter(CodingErrorAction.REPORT)\n\t\t;\n\t\t\n\t\tByteBuffer bbuf = ByteBuffer.wrap(bytes);\n\t\tCharBuffer cbuf = decoder.decode(bbuf);\n\t\tString str = cbuf.toString();\n\t\treturn str;\n\t}", "title": "" }, { "docid": "49c41ffaa21caddc20135f4ec2dc079f", "score": "0.49228776", "text": "public static void main(String[] args) throws UnsupportedEncodingException {\n\t\tString s = \"Java小虫子\";\n\t\t//以默认字符集编码\n\t\tbyte[] bys = s.getBytes();\n\t\t//[74, 97, 118, 97, -27, -80, -113, -24, -103, -85, -27, -83, -112]\n\t\tSystem.out.println(Arrays.toString(bys));\n\t\t//以GBK进行编码\n\t\tbyte[] bys1 = s.getBytes(\"GBK\");\n\t\t//[74, 97, 118, 97, -48, -95, -77, -26, -41, -45]\n\t\tSystem.out.println(Arrays.toString(bys1));\n\t\t\n\t\t//以默认字符集进行解码\n\t\tString s1 = new String(bys);\n\t\tSystem.out.println(s1);\n\t\t\n\t\t//以GBK进行解码\n\t\tString s2 = new String(bys1,\"gbk\");\n\t\tSystem.out.println(s2);\n\t\t//注意:在进行编码和解码的时候,一定要保持一致,不然会出现乱码\n\t}", "title": "" }, { "docid": "bab9e6cfc0f1b4ec24dfefbd6c27162d", "score": "0.49201897", "text": "private static String codec(String in)\n {\n if ( in == null )\n {\n return null;\n }\n int n = 0x13;\n char[] ca = in.toCharArray();\n for (int i = 0; i < ca.length; i++)\n {\n ca[i] = (char) (ca[i] ^ (n + (i & 0x7)));\n }\n return new String(ca);\n }", "title": "" }, { "docid": "07d67e39f90a6230d765a7ef62233e0b", "score": "0.4885224", "text": "@Impure\n public void encodeString01(char value) throws EXCEPTION;", "title": "" }, { "docid": "0c4aa47dbe534bb348cc662f72698b61", "score": "0.48740333", "text": "public CharacterCodingException() { }", "title": "" }, { "docid": "2edc804e982b193bd7a2f268ce7c9529", "score": "0.48690802", "text": "public static InputStream convertStringToInputStream(String string, String charSet) throws UnsupportedEncodingException {\n return new ByteArrayInputStream(string.getBytes(charSet));\n }", "title": "" }, { "docid": "d6b4f875c0c59325d71c965a854a0aa0", "score": "0.48686343", "text": "public static InputSource createUTF8InputSource(Node node) throws UnsupportedEncodingException, TransformerException\r\n {\r\n return createUTF8InputSource(DOMUtil.getXMLStringFragmentFromNode(node));\r\n }", "title": "" }, { "docid": "44c39d22103587d5ab4c88f24706703d", "score": "0.48616573", "text": "public abstract String b(Charset charset);", "title": "" }, { "docid": "07fedf0d13ac3ddb7f8c84a88922e418", "score": "0.48576578", "text": "@Override\n\tpublic String getCharacterEncoding() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1ea800f2d76e00b85705bf2431b2f510", "score": "0.4854927", "text": "public void convertToUTF8(String filePath) throws IOException {\n log.debug(\"Converting file {} to UTF-8\", filePath);\n Path replaceFilePath = Paths.get(filePath);\n byte[] contentArray = Files.readAllBytes(replaceFilePath);\n\n Charset charset = detectCharset(contentArray);\n log.debug(\"Detected charset for file {} is {}\", filePath, charset.name());\n\n String fileContent = new String(contentArray, charset);\n\n Files.writeString(replaceFilePath, fileContent, StandardCharsets.UTF_8);\n }", "title": "" }, { "docid": "a34db2828f1e4be70f7d073fdab46308", "score": "0.48500574", "text": "private static String _encode(String s)\n {\n StringBuffer encodedS = new StringBuffer(s.length());\n \n // Search for characters to encode\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n \n // Encode special characters\n String encodedC = null;\n if (c == '&') { encodedC = \"&amp;\"; }\n else if (c == '<') { encodedC = \"&lt;\"; }\n else if (c == '\\r') { encodedC = \"&#13;\"; }\n else if (c == '\\n') { encodedC = \"&#10;\"; }\n else if (c == '\\t') { encodedC = \"&#9;\"; }\n else if (c == '>') { encodedC = \"&gt;\"; }\n else if (c == '\"') { encodedC = \"&quot;\"; }\n else if (c == '\\'') { encodedC = \"&apos;\"; }\n \n // Append to the buffer\n if (encodedC != null) { encodedS.append(encodedC); }\n else { encodedS.append(c); }\n }\n \n // Return the encoded string\n if (encodedS != null) { return encodedS.toString(); }\n return s;\n }", "title": "" }, { "docid": "5e4b4fab756440b1f64720956b71d803", "score": "0.48451594", "text": "@Test\n public void Utf8LinuxTest() throws Exception {\n File xmlFile = getClassPathFile(UTF8);\n String xmlString = FileUtils.readFileToString(xmlFile, LINUX_ENCODING);\n Document doc = DocumentHelper.parseText(xmlString);\n String message = doc.valueOf(bodyXPath);\n assertTrue(message.equals(ESCAPED));\n }", "title": "" }, { "docid": "64d4222c73e3a6b63177547863c89c6a", "score": "0.4843497", "text": "private ByteBuffer encodeString(String message) {\n try {\n return ByteBuffer.wrap(message.getBytes(DarkstarConstants.MESSAGE_CHARSET));\n } catch (UnsupportedEncodingException e) {\n logger.severe(\"Required character set \" + DarkstarConstants.MESSAGE_CHARSET + \" not found\" + e);\n return null;\n }\n }", "title": "" }, { "docid": "2be56dfe8e55bd90ee79f239f6474bbe", "score": "0.4838551", "text": "public static String encode(String string) {\n return new String(encode(string.getBytes()));\n }", "title": "" }, { "docid": "de04a2b524383a203f04348928caa2eb", "score": "0.48379993", "text": "public String getContentEncoding ();", "title": "" }, { "docid": "7c67ae5ad8c2c26a07db1fcb8addbf12", "score": "0.48349833", "text": "ByteToUnicodeConverterStream (String s)\n {\n reader_ = new java.io.StringReader (s);\n }", "title": "" }, { "docid": "089a8f449b0257eea60e54955877a598", "score": "0.4833183", "text": "public String convertToASCII(String text) {\n return text.replaceAll(\"[ãâàáä]\", \"a\")\n .replaceAll(\"[êèéë]\", \"e\")\n .replaceAll(\"[îìíï]\", \"i\")\n .replaceAll(\"[õôòóö]\", \"o\")\n .replaceAll(\"[ûúùü]\", \"u\")\n .replaceAll(\"[ÃÂÀÁÄ]\", \"A\")\n .replaceAll(\"[ÊÈÉË]\", \"E\")\n .replaceAll(\"[ÎÌÍÏ]\", \"I\")\n .replaceAll(\"[ÕÔÒÓÖ]\", \"O\")\n .replaceAll(\"[ÛÙÚÜ]\", \"U\")\n .replace('ç', 'c')\n .replace('Ç', 'C')\n .replace('ñ', 'n')\n .replace('Ñ', 'N');\n }", "title": "" }, { "docid": "3cb2f622337fb2414af853c23f59471f", "score": "0.4828508", "text": "protected static String removeNonUtf8CompliantCharacters(final String text) {\n if (null == text) {\n return null;\n }\n StringBuilder sb = null; //initialised on the first replacement\n for (int i = 0; i < text.length(); i++) {\n int ch = text.codePointAt(i);\n // remove any characters outside the valid UTF-8 range as well as all control characters\n // except tabs and new lines\n //NOTE: rewesten (2012-11-21) replaced the original check with the one\n // found at http://blog.mark-mclaren.info/2007/02/invalid-xml-characters-when-valid-utf8_5873.html\n if (!((ch == 0x9) ||\n (ch == 0xA) ||\n (ch == 0xD) ||\n ((ch >= 0x20) && (ch <= 0xD7FF)) ||\n ((ch >= 0xE000) && (ch <= 0xFFFD)) ||\n ((ch >= 0x10000) && (ch <= 0x10FFFF)))){\n if(sb == null){\n sb = new StringBuilder(text);\n }\n sb.setCharAt(i, ' ');\n }\n }\n return sb == null ? text : sb.toString();\n }", "title": "" }, { "docid": "d1c8cac625536bbf9a88630c40605406", "score": "0.48258248", "text": "private static String convertASCII(String decryptedInASCIInoFill) {\n StringBuilder converted = new StringBuilder();\n\n for (int i = 0; i < decryptedInASCIInoFill.length() / 8; i++) {\n\n int a = Integer.parseInt(decryptedInASCIInoFill.substring(8 * i, (i + 1) * 8), 2);\n converted.append((char) (a));\n }\n return (converted.toString());\n }", "title": "" }, { "docid": "e83aebf02d71d4e023cb032167cdf64a", "score": "0.48236713", "text": "public static String readWholeFileAsUTF8(InputStream in) throws IOException\n {\n Reader r = new BufferedReader(asUTF8(in),1024) ;\n return readWholeFileAsUTF8(r) ;\n }", "title": "" }, { "docid": "0f0642c815c42d6b9d88cdc7670de639", "score": "0.48191702", "text": "public static String stripBadEncodingCharacters(String data)\n\t{\n\t\t// Note: these characters become two characters in the String - the first is 56256 0xDBC0 or 55304 0xD808 and the second varies, but is 56xxx\n\n\t\tif (data == null) return data;\n\n\t\t// quick check for any strange characters\n\t\tif ((data.indexOf(56256) == -1) && (data.indexOf(55304) == -1)) return data;\n\n\t\tStringBuilder buf = new StringBuilder(data);\n\t\tint len = buf.length() - 1;\n\t\tfor (int i = 0; i < len; i++)\n\t\t{\n\t\t\tchar c = buf.charAt(i);\n\t\t\tif ((c == 56256) || (c == 55304))\n\t\t\t{\n\t\t\t\tbuf.setCharAt(i, ' ');\n\t\t\t\ti++;\n\t\t\t\tbuf.setCharAt(i, ' ');\n\t\t\t}\n\t\t}\n\n\t\treturn buf.toString();\n\t}", "title": "" }, { "docid": "f484591728978609802adf48998a9167", "score": "0.48125827", "text": "@Override\n\tpublic void setCharacterEncoding(String env)\n\t\t\tthrows UnsupportedEncodingException {\n\n\t}", "title": "" }, { "docid": "dd4c1fafa3c40fabbdcba9325a5df242", "score": "0.4810927", "text": "private static String encode(final String stringToEncode) {\n try {\n return URLEncoder.encode(stringToEncode, UTF8_CHARSET);\n } catch (UnsupportedEncodingException ex) {\n throw new RuntimeException(ex);\n }\n }", "title": "" }, { "docid": "ed777d2d3288fda7dd030fe0858599c9", "score": "0.4802973", "text": "public static Collection<String> isUtf8(byte[] bytes) throws Exception {\n\t\t\n\t\t// check it can be decoded assuming UTF-8:\n\t\tString str = _utf8toString(bytes);\n\t\t// TODO probably, we should just do the above check, and only do the remaining\n\t\t// stuff in case we get an exception.\n\t\t\n\t\tif ( log.isDebugEnabled() ) {\n\t\t\tint len = Math.min(50, str.length());\n\t\t\tlog.debug(\"isUtf8: basic test OK: \" +str.subSequence(0, len));\n\t\t}\n\t\t\n\t\tCollection<String> charsets = detector.detectCharset(bytes);\n\t\t\n\t\tif ( charsets == null || charsets.size() == 0 ) {\n\t\t\t// just return null, so OK. The following is to drastic a result given that the\n\t\t\t// conversion above was succesful\n\t\t\treturn null; // OK\n\t\t\t// NO: throw new Exception(\"Cannot determine the charset of the given contents\");\n\t\t}\n\t\t\n\t\tif ( charsets.contains(\"UTF-8\") || charsets.contains(\"ASCII\") ) {\n\t\t\treturn null; // OK\n\t\t}\n\t\t\n\t\t// some previous version had this check instead of the containment ones above:\n//\t\tString charset = charsets.iterator().next();\n//\t\tif ( \"UTF-8\".equalsIgnoreCase(charset) || \"ASCII\".equalsIgnoreCase(charset) ) {\n//\t\t\treturn null; // OK\n//\t\t}\n\n\t\t// we give up - return the charsets.\n\t\tif ( log.isDebugEnabled() ) {\n\t\t\tlog.debug(\"isUtf8: WARN: basic conversion ok but detected charsets did not include \" +\n\t\t\t\t\t\"UTF-8 or ASCII) !!\");\n\t\t}\n\t\treturn charsets;\n\t}", "title": "" }, { "docid": "570c2b5831466b149cb0b289a05468cc", "score": "0.4800862", "text": "public static String ascii2Native(String str) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint begin = 0;\n\t\tint index = str.indexOf(\"\\\\u\");\n\t\twhile (index != -1) {\n\t\t\tsb.append(str.substring(begin, index));\n\t\t\tsb.append(ascii2Char(str.substring(index, index + 6)));\n\t\t\tbegin = index + 6;\n\t\t\tindex = str.indexOf(\"\\\\u\", begin);\n\t\t}\n\t\tsb.append(str.substring(begin));\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "e93d5650ec7aae3d4ae07fcd6839c5e4", "score": "0.47970882", "text": "public static String utf8decode( byte[] b )\n {\n try\n {\n return new String( b, \"UTF-8\" ); //$NON-NLS-1$\n }\n catch ( UnsupportedEncodingException e )\n {\n return new String( b );\n }\n }", "title": "" }, { "docid": "1a54c6be37e4eef48d837242d5da5d7c", "score": "0.47912988", "text": "private static String decode(String s) {\n if (!(s.contains(\"%\") || s.contains(\"+\")))\n return s;\n StringBuilder buf = new StringBuilder(s.length());\n boolean utf8 = false;\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (c == '+') {\n buf.append(' ');\n } else if (c != '%') {\n buf.append(c);\n } else {\n try {\n int val = Integer.parseInt(s.substring(++i, (++i) + 1), 16);\n if ((val & 0x80) != 0)\n utf8 = true;\n buf.append((char) val);\n } catch (IndexOutOfBoundsException ioobe) {\n break;\n } catch (NumberFormatException nfe) {\n break;\n }\n }\n }\n if (utf8) {\n try {\n return new String(buf.toString().getBytes(\"ISO-8859-1\"), \"UTF-8\");\n } catch (UnsupportedEncodingException uee) {}\n }\n return buf.toString();\n }", "title": "" }, { "docid": "47fa70c49bc382f836653240a81f73a5", "score": "0.4783123", "text": "public String toString(String encoding) throws UnsupportedEncodingException {\n return baos.toString(encoding);\n }", "title": "" }, { "docid": "1cb5f57d79f80aad6e33e8864a1eb31e", "score": "0.4777222", "text": "static public String stripEncoding(String in){\n String str = null;\n if(in.contains(\"=?\") && in.contains(\"?=\")){\n String encoding;\n String charset;\n String encodedText;\n String match;\n Matcher m = p.matcher(in);\n while(m.find()){\n match = m.group(0);\n charset = m.group(1);\n encoding = m.group(2);\n encodedText = m.group(3);\n Log.v(TAG, \"Matching:\" + match +\"\\nCharset: \"+charset +\"\\nEncoding : \" +encoding\n + \"\\nText: \" + encodedText);\n if(encoding.equalsIgnoreCase(\"Q\")){\n //quoted printable\n Log.d(TAG,\"StripEncoding: Quoted Printable string : \" + encodedText);\n str = new String(quotedPrintableToUtf8(encodedText,charset));\n in = in.replace(match, str);\n }else if(encoding.equalsIgnoreCase(\"B\")){\n // base64\n try{\n\n Log.d(TAG,\"StripEncoding: base64 string : \" + encodedText);\n str = new String(Base64.decode(encodedText.getBytes(charset),\n Base64.DEFAULT), charset);\n Log.d(TAG,\"StripEncoding: decoded string : \" + str);\n in = in.replace(match, str);\n }catch(UnsupportedEncodingException e){\n Log.e(TAG, \"stripEncoding: Unsupported charset: \" + charset);\n }catch (IllegalArgumentException e){\n Log.e(TAG,\"stripEncoding: string not encoded as base64: \" +encodedText);\n }\n }else{\n Log.e(TAG, \"stripEncoding: Hit unknown encoding: \"+encoding);\n }\n }\n }\n return in;\n }", "title": "" }, { "docid": "8baa7d2be9bfdc52b4f23c988a2cd6ae", "score": "0.4771573", "text": "public String convertStreamToString(InputStream is) {\n\t\tScanner s = new Scanner(is, \"utf-8\");\n\t\ts.useLocale(Locale.getDefault());\n\t\ttry {\n\t\t\ts.useDelimiter(\"\\\\A\");\n\t\t\treturn s.next();\n\t\t} finally {\n\t\t\ts.close();\n\t\t}\n\t}", "title": "" }, { "docid": "060570dc256d12a649a00d73ae02b7b3", "score": "0.4769547", "text": "IEncodingProvider getEncodingProvider();", "title": "" } ]
cc3891be1e90bd88f8465f17227e61e5
output a file as a receipt
[ { "docid": "dca084100db35daef2b23e2984baeaee", "score": "0.567236", "text": "private void printFile(String string) throws IOException\r\n {\r\n String file = \"order.txt\";\r\n FileWriter fw = new FileWriter(file);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n PrintWriter outFile = new PrintWriter(bw);\r\n outFile.print(string);\r\n outFile.close();\r\n }", "title": "" } ]
[ { "docid": "982ca9fbbf81eed8f2b4b6572c443f51", "score": "0.7026077", "text": "public void printReceipt() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(\"receipt.txt\");\n\n\t\t\t//Write login time\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd MMM yyyy\");\n\t\t\tout.println(df.format(loginTime));\n\t\t\tout.println(\"\\n\\n\");\n\n\t\t\t//Write all activities\n\t\t\tfor (Account acc : accounts) {\n\t\t\t\tfor (Activity activ : acc.getActivities()) {\n\t\t\t\t\tout.println(activ + \"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Terminate connection with file\n\t\t\tout.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "adca3deda7dd5d3520e9ea908cac8144", "score": "0.61425734", "text": "public static void closeReceipt(String title, File file) {\n\t\tScanner reader = null;\n\t\tPrintWriter printer = null;\n\t\tString toPrint = \"\";\n\t\ttry {\n\t\t\treader = new Scanner(file);\n\t\t\tif (!title.equalsIgnoreCase(\"OPEN\")) {\n\t\t\t\treader.nextLine();\n\t\t\t}\n\t\t\ttoPrint += title;\n\t\t\twhile (reader.hasNextLine()) {\n\t\t\t\ttoPrint += \"\\n\" + reader.nextLine();\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Error reading\");\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tprinter = new PrintWriter(file);\n\t\t\tprinter.println(toPrint);\n\t\t\tprinter.flush();\n\t\t\tprinter.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Error printing\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "225949de6c1175c2c4e398fde824cad0", "score": "0.61405396", "text": "public TotalRevenueFileOutput(){\n totalRevenue = new Amount();\n try{\n fileOutput = new PrintWriter(new FileWriter(\"total-revenue.txt\"), true);\n }\n catch (IOException exception){\n System.out.println(\"Could not print to a file.\");\n exception.printStackTrace();\n }\n }", "title": "" }, { "docid": "7850f6bfc2e060ca7aae87c9d95801e9", "score": "0.59948736", "text": "public static void writeToTextFile(List<Ingredient> shoppingList, String fileName, String generated) throws Exception {\n var out = new PrintWriter(new OutputStreamWriter(new FileOutputStream(fileName, false) ,\n StandardCharsets.UTF_8));\n\n out.println(\"Shopping List generated on \" + generated + \"\\n\");\n\n for (Ingredient i: shoppingList){\n\n String quantityName = i.getQuantityName();\n double quantityInGrams = i.getQuantityInGrams();\n double quantityRatio = (quantityInGrams / i.getSingleQuantityInGrams());\n\n //for formatting quantity amounts\n DecimalFormat df = new DecimalFormat(\"#.#\");\n DecimalFormat df2 = new DecimalFormat(\"#\");\n\n if (quantityRatio > 1){\n quantityName = quantityName + \"s\";\n }\n\n out.println( i.getName() + \" ( \" + df2.format(quantityInGrams) + \" grams / \" +\n df.format(quantityRatio) + \" \" + quantityName + \")\");\n\n }\n\n\n\n }", "title": "" }, { "docid": "575bbac48bb82590e23ddaa495159c32", "score": "0.5893474", "text": "@Override\n\tpublic void printReceipt() {\n\t\t\n\t}", "title": "" }, { "docid": "56e99e14937315916946f9ccaaf75817", "score": "0.58663625", "text": "public File printFileCreation();", "title": "" }, { "docid": "1e63bd88d28c00467a51f5fc7daa0e0f", "score": "0.58573604", "text": "public void recordFile(Order order, ShoppingStore myStore) {\n\t\tdouble totalProductDiscount = 0;\n\n\t\ttry {\n\t\t\tfileWriter = new FileWriter(filePath);\n\t\t\t out = new BufferedWriter(fileWriter);\n\n\t\t\tout.write(\"###################################################################\");\n\t\t\tout.newLine();\n\t\t\tout.write(\" YOUR ORDER\");\n\t\t\tout.newLine();\n\t\t\tout.write(\"###################################################################\");\n\t\t\tout.newLine();\n\t\t\tout.newLine();\n\n\t\t\tout.write(\"PURCHASED PRODUCTS: \");\n\t\t\tout.newLine();\n\t\t\tout.newLine();\n\t\t\tdouble subTotal = 0;\n\t\t\tProduct[] productsInOrder = order.getProductsInOrder();\n\t\t\tfor (int i = 0; i < order.getNoOfProductsInOrder(); i++) {\n\t\t\t\tout.write(\"Product : \" + productsInOrder[i].getProductId()\n\t\t\t\t\t\t+ \" - \" + productsInOrder[i].getProductName());\n\t\t\t\tout.newLine();\n\t\t\t\t;\n\n\t\t\t\tout.write(\"Cost : Rs\"\n\t\t\t\t\t\t+ (productsInOrder[i].getProductPrice() * productsInOrder[i]\n\t\t\t\t\t\t\t\t.getQuantity()) + \" (\"\n\t\t\t\t\t\t+ productsInOrder[i].getQuantity() + \" X \"\n\t\t\t\t\t\t+ productsInOrder[i].getProductPrice() + \")\");\n\t\t\t\tsubTotal += (productsInOrder[i].getProductPrice() * productsInOrder[i]\n\t\t\t\t\t\t.getQuantity());\n\t\t\t\tout.newLine();\n\n\t\t\t}\n\t\t\tout.newLine();\n\t\t\tout.newLine();\n\t\t\tout.write(\"APPLIED PROMOTIONS/DISCOUNTS : \");\n\t\t\tout.newLine();\n\t\t\tout.newLine();\n\n\t\t\t fileReader = new FileReader(productPromoFilePath);\n\t\t\t bufferedReader = new BufferedReader(fileReader);\n\t\t\tString line = \"\";\n\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\n\t\t\t\tString[] stringArray = line.split(\",\");\n\t\t\t\tStringTokenizer tokens = new StringTokenizer(stringArray[2],\n\t\t\t\t\t\t\";\");\n\t\t\t\tHashMap<Integer, Promotion> hashMap = null;\n\t\t\t\tif (stringArray[0].equals(\"ProductFixedAmountPromotion\")) {\n\t\t\t\t\tout.write(\"Promotion : Rs.\" + stringArray[1] + \" OFF on \");\n\t\t\t\t\thashMap = new HashMap<Integer, Promotion>();\n\t\t\t\t\twhile (tokens.hasMoreTokens()) {\n\t\t\t\t\t\tInteger productId = Integer.parseInt(tokens.nextToken());\n\t\t\t\t\t\tout.write(myStore.getProductName(productId) + \" [Code:\"+ productId + \"],\");\n\t\t\t\t\t\thashMap.put(productId, new Promotion(stringArray[0],\n\t\t\t\t\t\t\t\tDouble.parseDouble(stringArray[1])));\n\t\t\t\t\t}\n\n\t\t\t\t\tout.newLine();\n\n\t\t\t\t} else if (stringArray[0]\n\t\t\t\t\t\t.equals(\"ProductFixedPercentPromotion\")) {\n\t\t\t\t\tout.write(\"Promotion : \" + stringArray[1] + \" % OFF on \");\n\t\t\t\t\thashMap = new HashMap<Integer, Promotion>();\n\t\t\t\t\twhile (tokens.hasMoreTokens()) {\n\t\t\t\t\t\tInteger productId = Integer.parseInt(tokens.nextToken());\n\t\t\t\t\t\tout.write(myStore.getProductName(productId) + \" [Code:\"+ productId + \"],\");\n\t\t\t\t\t\thashMap.put(productId, new Promotion(stringArray[0],\n\t\t\t\t\t\t\t\tDouble.parseDouble(stringArray[1])));\n\t\t\t\t\t}\n\t\t\t\t\tout.newLine();\n\n\t\t\t\t}\n\t\t\t\tdouble discount = 0;\n\t\t\t\tfor (int i = 0; i < productsInOrder.length; i++) {\n\t\t\t\t\tif (hashMap.containsKey(productsInOrder[i].getProductId())) {\n\t\t\t\t\t\tdiscount += (hashMap.get(productsInOrder[i].getProductId()).getDiscount() * productsInOrder[i].getQuantity());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout.write(\"Discount : Rs.\" + discount);\n\t\t\t\tout.newLine();\n\t\t\t\ttotalProductDiscount += discount;\n\t\t\t\tout.newLine();\n\n\t\t\t}\n\n\t\t\tout.write(\"Promotion : \" + order.getAppliedOrderPromotion());\n\t\t\tout.newLine();\n\t\t\tout.write(\"Discount : Rs.\" + order.getOrderDiscount() + \"\\n\\n\");\n\t\t\tout.newLine();\n\t\t\tout.newLine();\n\n\t\t\tout.write(\"SubTotal : Rs.\" + subTotal);\n\t\t\tout.newLine();\n\t\t\tout.write(\"Product Level Discounts : Rs.\" + totalProductDiscount);\n\t\t\tout.newLine();\n\t\t\tout.write(\"Order Level Discounts : Rs.\" + order.getOrderDiscount());\n\t\t\tout.newLine();\n\t\t\tout.write(\"Total Discounts : Rs.\"+ (order.getOrderDiscount() + totalProductDiscount));\n\t\t\tout.newLine();\n\t\t\tout.write(\"Total : Rs.\"+ (subTotal - (order.getOrderDiscount() + totalProductDiscount)));\n\t\t\tout.newLine();\n\t\t\tout.newLine();\n\t\t\tout.write(\"THANK YOU FOR SHOPPING !\");\n\t\t\tout.flush();\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}", "title": "" }, { "docid": "e0f8bf032a4107a29da6d5603473d360", "score": "0.5845831", "text": "private void printToFile() {\n if (ReportOptions.type.equals(\n ReportOptions.ReportType.ALL)) {\n try {\n \n printToStreamAll(new FileWriter(ReportOptions.fleName + \".txt\"));\n \n } catch (Exception ex) {\n \n }\n }\n else {\n \n }\n }", "title": "" }, { "docid": "6c4aa055c044b26d84e5a55692526d8d", "score": "0.57838583", "text": "public void receiptPrintingFunction() throws IOException, SQLException {\n Random r = new Random();\n int low = 1881;\n int high = 1938;\n int result = r.nextInt(high-low) + low;\n String receiptNumber = Integer.toString(result);\n FileWriter writer = new FileWriter(new File(\"C:\\\\Users\\\\Vahap\\\\Desktop\\\\Epos\", \"receipt\"+receiptNumber+\".txt\"));\n\n\n try{\n\n\n //CUSTOMER DETAILS SQL\n Connection customerOrderConnection = getConnection();\n PreparedStatement sumOfProducts = customerOrderConnection.prepareStatement(\"SELECT SUM(productPrice) as sum_total FROM `customerorder`\");\n ResultSet rsSum = sumOfProducts.executeQuery();\n\n //CUSTOMER ORDER\n Statement st = customerOrderConnection.createStatement();\n ResultSet rs = st.executeQuery(\"SELECT productName, productPrice FROM `customerorder`\");\n ResultSetMetaData rsmd = rs.getMetaData();\n int columnsNumber = rsmd.getColumnCount();\n\n writer.write(\"############################ Order Number: \" + receiptNumber + \" ############################\");\n writer.write(\"\\n\");\n writer.write(\"\\n\");\n writer.write(\" OLLIES KEBAB SUTTON\");\n writer.write(\"\\n\");\n writer.write(\" SUTTON STATION, HIGH ST, SM1 1DE\");\n writer.write(\"\\n\");\n writer.write(\" 020 8642 5050\");\n writer.write(\"\\n\");\n writer.write(\"\\n\");\n writer.write(\" ########## CUSTOMER DETAILS ##########\");\n writer.write(\"\\n\");\n writer.write(\"\\n\");\n\n writer.write(\" FIRST NAME: \" + staticNameLabel.getText());\n writer.write(\"\\n\");\n\n writer.write(\" LAST NAME: \" + staticLastNameLabel.getText());\n writer.write(\"\\n\");\n\n writer.write(\" ADDRESS LINE: \" + staticAddressLineLabel.getText());\n writer.write(\"\\n\");\n\n writer.write(\" POST CODE: \" + staticPostCodeLabel.getText());\n writer.write(\"\\n\");\n\n writer.write(\" MOBILE NUMBER: \" + staticNumberLabel.getText());\n writer.write(\"\\n\");\n\n writer.write(\"\\n\");\n writer.write(\" ########## ORDER TYPE: DELIVERY ##########\");\n writer.write(\"\\n\");\n writer.write(\"+-----------------+--------------------+\\n\");\n writer.write(\"| Item Name | Price |\\n\");\n writer.write(\"+-----------------+--------------------+\\n\");\n writer.write(\"\\n\");\n while (rs.next()) {\n for(int i = 1 ; i <= columnsNumber; i++){\n writer.write(rs.getString(i) + \" \"); //Print one element of a row\n }\n writer.write(\"\\n\");//Move to the next line to print the next row.\n }\n\n if(rsSum.next()){\n String sumString = rsSum.getString(\"sum_total\");\n writer.write(\" +---------------------+\\n\");\n writer.write(\" | TOTAL: £\"+sumString+\" |\\n\");\n writer.write(\" +---------------------+\\n\");\n writer.write(\"\\n\");\n writer.write(\"############################################################################\");\n }\n\n writer.flush();\n writer.close();\n sumOfProducts.close();\n rsSum.close();\n rs.close();\n\n }catch (Exception e){System.out.println(e);}\n\n }", "title": "" }, { "docid": "9dbec0ba2c7850cf8841821cfe256518", "score": "0.5775816", "text": "public String writeInvoice() {\n String output = \"\" + customer;\n output += \"\\n\\nProject Number:\\t\" + pNumber;\n output += \"\\nProject Name:\\t\" + pName;\n output += \"\\nFinalized Date:\\t\" + finalizedDate;\n output += \"\\n\\nTotal Charge:\\t\\t\" + totalCharge;\n output += \"\\nPaid To Date:\\t\\t\" + paidToDate;\n output += \"\\nCHARGE OUTSTANDING: \" + (totalCharge - paidToDate);\n\n return output;\n }", "title": "" }, { "docid": "6f9e707245e6f20fc63a285fc4c3df20", "score": "0.57678044", "text": "private void saveReceiptList()\n\t{\n\t\tPrintWriter listWriter = null;\n\t\ttry\n\t\t{\n\t\t\tlistWriter = new PrintWriter(RECEIPT_LIST);\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t\tfor(int count = 0; count < listModel.getSize(); count++)\n\t\t\tlistWriter.println(listModel.getElementAt(count));\n\t\tlistWriter.close();\n\t}", "title": "" }, { "docid": "b18130aff5a040f180c0d168b56ad54f", "score": "0.5728692", "text": "public void netascii() {\n StringBuilder contents = new StringBuilder();\n try {\n BufferedReader input = new BufferedReader(new FileReader(fileName));\n try {\n String line = null; //not declared within while loop\n while (( line = input.readLine()) != null){\n if(line.contains(\"\\r\\n\")) {\n //do nothing\n }\n else if(line.contains(\"\\n\")) {\n line.replace(\"\\n\", \"\\r\\n\");\n }\n else if(line.contains(\"\\r\")) {\n line.replace(\"\\n\", \"\\r\\n\");\n }\n contents.append(line);\n contents.append(System.getProperty(\"line.separator\"));\n }\n\n }\n finally {\n input.close();\n }\n }\n catch (IOException ex){\n ex.printStackTrace();\n }\n String fileContents = contents.toString();\n FileOutputStream fout; \n\n try {\n fout = new FileOutputStream ((fileName));\n new PrintStream(fout).println (fileContents);\n fout.close(); \n }\n // Catches any error conditions\n catch (IOException e) {\n System.err.println (\"Unable to write to file\");\n sendErrorMessage(4, \"Illegal TFTP Operation\");\n }\n\n }", "title": "" }, { "docid": "6497bc08768c24c11edb903ab222e62d", "score": "0.57210237", "text": "public void createReport(String file) { \n Realtor realtor;\n Property property;\n String realtorLicense;\n String propertyLicense;\n int i = 0;\n RealtorNode realtorNode;\n \n \n File outputFile = null; \n PrintWriter fileOut = null;\n \n \n outputFile = new File(file);\n \n\n try {\n fileOut = new PrintWriter(outputFile);\n }\n \n catch (IOException e) {\n System.err.println(\"Input/Output exception for \" + outputFile \n + \"\\n\" + e);\n System.exit(1);\n }\n \n realtorNode = realtorLogImpl.getTop();\n while (realtorNode.getNextNode() != null) {\n realtor = realtorNode.getRealtor();\n realtorLicense = realtor.getMyLicense();\n fileOut.println(realtor.getMyLicense() + \" \" \n + realtor.getMyLastName() + \", \" \n + realtor.getMyFirstName() + \"\\n\");\n\n propertyLog = propertyLogImpl.getPropertyLog();\n Iterator it = propertyLog.iterator();\n while (it.hasNext()) {\n property = (Property) it.next();\n propertyLicense = property.getMyRealitorLicense();\n if (propertyLicense.equals(realtorLicense)) {\n fileOut.print(\" \" + property.getMyMLS() \n + \" \"\n + property.getMyAdress() + \" \" \n + property.getMyNumBed() + \"/\" \n + property.getMyNumBath() + \" $ \" \n + property.getMyAskingPrice() + \" \"); \n if (property.isSold()) {\n fileOut.print(\"SOLD\");\n }\n fileOut.println(\"\\n \" \n + property.getMyCity() + \", \" \n + property.getMyState() + \" \" \n + property.getMyZip() + \"\\n\");\n }\n }\n realtorNode = realtorNode.getNextNode();\n fileOut.println(\" Number of property listings for realtor: \" \n + propertyLogImpl.numberOfProperties(realtorLicense));\n fileOut.println(\" Total sales value of property listings for \"\n + \"realtor: $ \" + propertyLogImpl.totalPropertyValue(\n realtorLicense) +\"\\n\");\n }\n fileOut.println(\"Total number of property listings for all realtors = \"\n + propertyLogImpl.getNumProperties());\n fileOut.println(\"Total sales value of property listings for realtors = \"\n + \"$ \" + propertyLogImpl.totalPropertyValue());\n \n System.out.println(\"Report is complete --- located in file:\" + \n file);\n fileOut.close(); \n }", "title": "" }, { "docid": "beb2ef8be9fe200d0878939c59e53c0f", "score": "0.5678244", "text": "@Override\n public void displayReceipt() {\n System.out.print(data);\n }", "title": "" }, { "docid": "aed93213a462ccf512064fc6693eed55", "score": "0.56724596", "text": "protected void writeFile() {\n byte[] serializedValue = null;\n\n final KafkaProtobufSerializer serializer = new KafkaProtobufSerializer(schemaRegistry);\n\n final String topic = props.getProperty(\"Topic\");\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(new File(\"doc2.dat\"));\n for (long i = 101; i <= 110; i++) {\n PaymentOuterClass.Payment payment =\n PaymentOuterClass.Payment.newBuilder()\n .setId(Long.toString(i))\n .setAmount(1000.00d)\n .build();\n serializedValue = serializer.serialize(topic, payment);\n if (serializedValue != null) {\n System.out.print(\"Serialized value: \");\n System.out.write(serializedValue);\n System.out.println();\n }\n fos.write(serializedValue);\n fos.write(\"======\".getBytes());\n\n System.out.println(\"Wrote data to the file\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n fos.close();\n } catch (IOException e) { }\n }\n }", "title": "" }, { "docid": "b342a56282c7c12f663676a09fa7cd54", "score": "0.56610876", "text": "public File export(){\r\n File output = new File(\"Decks\"+File.separator+deckName+\".deck\");\r\n ArrayList<String> lines = new ArrayList<>();\r\n lines.add(deckClass.name());\r\n for(Card c : deck){\r\n lines.add(c.name);\r\n }\r\n try {\r\n FileWriter fw = new FileWriter(output, false);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n for (String s : lines) {\r\n bw.write(s);\r\n System.out.println(\"writing... \" + s);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return output;\r\n }", "title": "" }, { "docid": "18cbce3f27b853b8ce3ab9f815e9a85c", "score": "0.5646912", "text": "private String writeToRecipeFile() { \n \ttry(FileWriter fw = new FileWriter(\"Recipes2.txt\", true);\n \t\t BufferedWriter bw = new BufferedWriter(fw);\n \t\t PrintWriter out = new PrintWriter(bw))\n \t\t{\n \t\t out.println(fileWriterText);\n \t\t nextIndexCount++;\n \t\t return \"Recipe Created Successfully\";\n \t\t \n \t\t //more code\n \t\t \n \t\t} catch (IOException e) {\n \t\t \n \t\t\treturn \"Recipe not Created\";\n \t\t}\n }", "title": "" }, { "docid": "b6b43e5bdbc3b2de45510ff7d4a3060a", "score": "0.56432545", "text": "public void printTo(String filename)\r\n {\r\n \ttry{\r\n \tFile fl=new File(filename);\r\n \t if(!fl.exists())\r\n \t {\r\n \t \tfl.createNewFile();\r\n \t \t\r\n \t }\r\n \t\tFileWriter filewriter = new FileWriter(fl);\r\n\t PrintWriter writer=new PrintWriter(filewriter);\r\n\t writer.write(print);\r\n\t \twriter.flush();\r\n\t \twriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n \t \r\n }", "title": "" }, { "docid": "3a3a0d1807ad118129ffaa4110be265c", "score": "0.56257457", "text": "public static void produceOutputs(String fileName) throws Exception\n {\n FileWriter fw = new FileWriter(fileName + \".out\");\n fw.write(deliveries.size() + \"\\n\");\n for(int i = 0; i < deliveries.size(); i++)\n {\n Delivery current = deliveries.get(i);\n fw.write(current.orders + current.order_list + \"\\n\");\n }\n fw.close();\n }", "title": "" }, { "docid": "0ed997d30e3c5ea63fd8e1be72d3e49c", "score": "0.56249934", "text": "public static void closeReceipt(String title, File file, String approve) {\n\t\tScanner reader = null;\n\t\tPrintWriter printer = null;\n\t\tString toPrint = \"\";\n\t\ttry {\n\t\t\treader = new Scanner(file);\n\t\t\tif (!title.equalsIgnoreCase(\"OPEN\")) {\n\t\t\t\treader.nextLine();\n\t\t\t}\n\t\t\ttoPrint += title;\n\t\t\twhile (reader.hasNextLine()) {\n\t\t\t\ttoPrint += \"\\n\" + reader.nextLine();\n\n\t\t\t}\n\t\t\tif (approve != null && !approve.equals(\"\")) {\n\t\t\t\ttoPrint += \"\\n\" + Tools.toMoney(approve)\n\t\t\t\t\t\t+ ReceiptPanel.manualTab(Tools.toMoney(approve))\n\t\t\t\t\t\t+ \"Approved\";\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Error reading\");\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tprinter = new PrintWriter(file);\n\t\t\tprinter.println(toPrint);\n\t\t\tprinter.flush();\n\t\t\tprinter.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Error printing\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "5e192af5966ee4026afd1b2a3167808d", "score": "0.5594345", "text": "public void writeFile() {\n\t\ttry {\n\t\t\tFile writeFile = new File(\"Inventory.txt\");\n\t\t\tFileWriter fw = new FileWriter(writeFile);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\n\t\t\tString writeLine = \"line\";\n\t\t\tfor(int indx = 0; indx < inventory.size(); indx++) {\n\t\t\t\tif(inventory.get(indx) != null) {\n\t\t\t\t\tbw.write(\"Serial: \"+inventory.get(indx).getSerialNumber());\n\t\t\t\t\tbw.newLine();\n\t\t\t\t\tbw.write(\"Type: \"+inventory.get(indx).getType());\n\t\t\t\t\tbw.newLine();\n\t\t\t\t\tbw.write(\"Brand: \"+inventory.get(indx).getBrand());\n\t\t\t\t\tbw.newLine();\n\t\t\t\t\tbw.newLine();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tbw.close();\n\t\t\t\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Something terrible went wrong :( \");\n\t\t}\n\t}", "title": "" }, { "docid": "f5de0b8cd8979a5c30f5cc1ad89c9975", "score": "0.55881774", "text": "private void emailEreceipt(BusIfc bus, ArrayList<String> fileAdditions) throws PrintableDocumentException\r\n {\r\n PrintingCargo cargo = (PrintingCargo)bus.getCargo();\r\n TenderableTransactionIfc trans = cargo.getTransaction();\r\n\r\n POSUIManagerIfc ui = (POSUIManagerIfc)bus.getManager(UIManagerIfc.TYPE);\r\n // get the UIModel\r\n DataInputBeanModel model = (DataInputBeanModel)ui.getModel(POSUIManagerIfc.ERECEIPT_EMAIL_SCREEN);\r\n // get the email id from model.\r\n String email = (String)model.getValue(\"email\");\r\n\r\n ParameterManagerIfc pm = (ParameterManagerIfc)bus.getManager(ParameterManagerIfc.TYPE);\r\n // read the email subject from parameter\r\n String[] subject = cargo.getReceiptText(pm, \"eReceiptSubject\");\r\n StringBuilder completeSubect = new StringBuilder();\r\n for (String i : subject)\r\n {\r\n completeSubect.append(i).append(\" \");\r\n }\r\n // read the email text from parameter\r\n String[] message = cargo.getReceiptText(pm, \"eReceiptText\");\r\n StringBuilder completeMsg = new StringBuilder();\r\n for (String i : message)\r\n {\r\n \t // NDE START - Add functionality to allow HTML in e-receipt text\r\n\t \t try \r\n\t \t {\r\n\t \t\t i = i.replaceAll(\"&amp;\", \"&\"); // replace all encoded ampersands with &\r\n\t \t\t i = i.replaceAll(\"&gt;\", \">\"); // Replace all encoded greater thans with >\r\n\t \t\t i = i.replaceAll(\"&lt;\", \"<\"); // Replace all encoded less thans with <\r\n\t \t\t i = i.replaceAll(\"&quot;\", \"\\\"\"); // Replace all encoded double quotes with \"\r\n\t \t }\r\n\t \t\tcatch (PatternSyntaxException pe)\r\n\t \t\t{\r\n\t \t\t\tthrow new PrintableDocumentException(\"Unable to decode html for e-receipt.\", pe);\r\n\t }\r\n\t finally\r\n\t {\r\n\t }\r\n \t // NDE END - Add functionality to allow HTML in e-receipt text\r\n completeMsg.append(i).append(\"\\n\");\r\n }\r\n // read the mail server host from application.properties\r\n String host = Gateway.getProperty(\"application\", \"mail.smtp.host\", \"\");\r\n // read the mail server port from application.properties\r\n String port = Gateway.getProperty(\"application\", \"mail.smtp.port\", \"\");\r\n // read the eReceipt sender email id from from application.properties\r\n String user = Gateway.getProperty(\"application\", \"mail.ereceipt.sender\", \"\");\r\n // read the email server timeout from application.properties\r\n String mailServerTimeout = Gateway.getProperty(\"application\", \"mail.smtp.timeout\", \"1000\");\r\n // read the email server connection timeout from application.properties\r\n String mailServerConnectionTimeout = Gateway.getProperty(\"application\", \"mail.smtp.connection.timeout\", \"1000\");\r\n\r\n // create the eReceipt pdf file name from transaction id\r\n ArrayList<String> fileNames = new ArrayList<String>();\r\n for(String addition: fileAdditions)\r\n {\r\n fileNames.add(trans.getTransactionID() + addition + \".pdf\");\r\n }\r\n\r\n String[] fileList = new String[fileNames.size()];\r\n fileNames.toArray(fileList);\r\n\r\n // create EmailInfo object with all email information.\r\n EmailInfo info = new EmailInfo(host, port, mailServerConnectionTimeout, mailServerTimeout, user, email, fileList,\r\n completeSubect.toString(), completeMsg.toString());\r\n try\r\n {\r\n // send the Email.\r\n \t //System.out.println(\"Before SendEmail.send not called\");\r\n // SendEmail.send(info);\r\n // System.out.println(\"After SendEmail.send not called\");\r\n // NDE send 2nd email\r\n // System.out.println(\"Before sendEmail\");\r\n \t sendEmail(info);\r\n //System.out.println(\"After sendEmail\");\r\n \r\n }\r\n catch (Exception e)\r\n {\r\n throw new PrintableDocumentException(\"Unable to email pdf receipt.\", e);\r\n }\r\n finally\r\n {\r\n for(String fileName: fileNames)\r\n {\r\n // delete the pdf file if exists.\r\n File pdfFile = new File(fileName);\r\n if (pdfFile.exists())\r\n {\r\n pdfFile.delete();\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2f7d3bec5e1bf7a6ba91760190c886f9", "score": "0.5580545", "text": "public void printReceipt() {\n\t\tStringBuffer emailContent = new StringBuffer();\n\t\tString todaysDate = new Date().toString();\n\t\t\n\t\tSystem.out.println(\"---------------------------- MyShopping Cart Receipt -----------------------------\");\n\t\temailContent.append(\"---------------------------- MyShopping Cart Receipt -----------------------------\");\n\t\temailContent.append('\\n');\n\t\temailContent.append('\\n');\n\n\t\tfor (ReceiptItems item : receiptItemsList) {\n\t\t\tSystem.out.print(item.quantity);\n\t\t\tSystem.out.println(item.name + \" : \" + item.totalCost);\n\t\t\temailContent.append(item.name + \" : \" + item.totalCost);\n\t\t\temailContent.append('\\n');\n\t\t}\n\n\t\tSystem.out.println(\"\\nSales Taxes:\\t\"\n\t\t\t\t+ new BigDecimal(Double.toString(grandSalesTaxesTotal)).setScale(2,\n\t\t\t\t\t\tBigDecimal.ROUND_HALF_EVEN));\n\t\temailContent.append(\"\\nSales Taxes:\\t\"\n\t\t\t\t+ new BigDecimal(Double.toString(grandSalesTaxesTotal)).setScale(2,\n\t\t\t\t\t\tBigDecimal.ROUND_HALF_EVEN));\n\t\temailContent.append('\\n');\n\t\n\t\temailContent.append(\"---------------------------- Total Payment Due -----------------------------\");\n\t\temailContent.append('\\n');\n\t\tSystem.out.println(\"Total:\\t\"\n\t\t\t\t+ new BigDecimal(Double.toString(grandOverallTotal)).setScale(2,\n\t\t\t\t\t\tBigDecimal.ROUND_HALF_EVEN));\n\t\temailContent.append(\"Total:\\t\"\n\t\t\t\t+ new BigDecimal(Double.toString(grandOverallTotal)).setScale(2,\n\t\t\t\t\t\tBigDecimal.ROUND_HALF_EVEN));\n\t\t\n\t\tSystem.out.println(\"\\nPrinted on: \" + todaysDate);\n\t\temailContent.append(\"\\nPrinted on: \" + todaysDate);\n\t\temailContent.append('\\n');\n\t\temailContent.append('\\n');\n\t\tSystem.out.println(\"--------------------------Thank You-----------------------------\");\n\t\temailContent.append(\"--------------------------Thank You-----------------------------\");\n\t\tMail.messenger(emailContent.toString());\n\t\tcart.emptyCart();\n\t}", "title": "" }, { "docid": "54712eb47ac8a5184310aaa5bc813e90", "score": "0.5539847", "text": "public void writeToFile(String fileName){\n PrintWriter fileWrite;\n try {\n fileWrite = new PrintWriter(new BufferedWriter(new FileWriter(fileName, true)));\n \n fileWrite.println();\n fileWrite.println(\"type = \"+ \"\\\"journal\\\"\");\n fileWrite.println(\"callnumber = \"+ \"\\\"\"+this.getCallNumber()+\"\\\"\");\n fileWrite.println(\"title = \"+ \"\\\"\"+this.getTitle()+\"\\\"\");\n fileWrite.println(\"organization = \"+ \"\\\"\"+this.getOrganization()+\"\\\"\");\n fileWrite.println(\"year = \"+ \"\\\"\"+this.getYear()+\"\\\"\");\n \n fileWrite.close();\n } catch (IOException ex) {\n System.out.println(\"Error! Writing into file failed!\");\n }\n }", "title": "" }, { "docid": "c7930906b2ed6c5677c37397c635cd17", "score": "0.55325073", "text": "private void emailNote() {\n\n Uri uri = Uri.fromFile(myFile);\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.putExtra(Intent.EXTRA_EMAIL, \"\");\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"PDF Report\");\n // emailIntent.putExtra(Intent.EXTRA_TEXT, ViewAllAccountFragment.selectac+\" PDF Report\");\n emailIntent.setType(\"application/pdf\");\n emailIntent.putExtra(Intent.EXTRA_STREAM, uri);\n startActivity(Intent.createChooser(emailIntent, \"Send email using:\"));\n }", "title": "" }, { "docid": "b55f275020df83d0c8d520c344b0be24", "score": "0.55263215", "text": "void displayReceipt();", "title": "" }, { "docid": "da6213adb0d51f342954b51c0746a958", "score": "0.5525305", "text": "public String write() {\n String output = pNumber;\n output += \"\\n\"+pName;\n output += \"\\n\"+bType;\n output += \"\\n\"+pAddress;\n output += \"\\n\"+erfNumber;\n output += \"\\n\"+totalCharge;\n output += \"\\n\"+paidToDate;\n output += \"\\n\"+deadline;\n output += \"\\n\"+finalized;\n output += \"\\n\"+finalizedDate;\n output += \"\\n\" + architect.write();\n output += \"\\n\" + contractor.write();\n output += \"\\n\" + customer.write();\n \n return output;\n }", "title": "" }, { "docid": "1e3b48057de144e17b2bc7c0125eef33", "score": "0.5520552", "text": "private void writetoFile( hapCResult result, String fileName, boolean appendSigIndex ) throws IOException\n\t{\n\t\tString output = result.getOutput(); \n\t\tif ( appendSigIndex )\n\t\t{\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tsb.append(Integer.toString(params.getSigTestingIndex()));\n\t\t\tsb.append(\":\");\n\t\t\tsb.append(output);\n\t\t\toutput = sb.toString();\n\t\t}\n\t\t\n\t\tFile freport = new File(fileName);\t \n\t\tif ( freport.exists() )\n\t\t{\n\t\t\tFileWriter fw = new FileWriter(fileName,true);\n\t\t\tfw.write(output + \"\\n\");\n\t\t\tfw.close();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tPrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(freport)), true);\n\t\t\tpw.println(output);\n\t\t\tpw.close();\n\t\t}\n\t}", "title": "" }, { "docid": "1b7c17da6aaecd7311eec0326dd06636", "score": "0.5519732", "text": "public void generateBill(Order o, String cn, String pn, double price, int quantity) throws FileNotFoundException, DocumentException {\n StringBuilder path = new StringBuilder();\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"HH_mm_ss\");\n LocalDateTime now = LocalDateTime.now();\n String data = dtf.format(now);\n path.append(\"C:\\\\Users\\\\Denis\\\\Desktop\\\\Assignment3_Order_Management\\\\Bills\\\\BILL_Client_\");\n path.append(cn);\n path.append(\"_Product_\");\n path.append(pn);\n path.append(data);\n path.append(\".pdf\");\n Document document = new Document();\n PdfWriter.getInstance(document, new FileOutputStream(path.toString()));\n document.open();\n Font font1 = FontFactory.getFont(FontFactory.COURIER, 18, Font.BOLD, BaseColor.BLACK);\n Font font2 = FontFactory.getFont(FontFactory.COURIER, 14, BaseColor.BLACK);\n String para1 = \"BILL\";\n StringBuilder para2 = new StringBuilder();\n para2.append(\"Order Number: \"+getID(o));\n StringBuilder para3 = new StringBuilder();\n para3.append(\"Client: \" + cn);\n StringBuilder para4 = new StringBuilder();\n para4.append(\"Product: \" + pn);\n StringBuilder para5 = new StringBuilder();\n para5.append(\"Quantity: \" + quantity);\n StringBuilder para6 = new StringBuilder();\n para6.append(\"Total price:\" + price);\n Paragraph paragraph1 = new Paragraph(para1, font1);\n Paragraph paragraph2 = new Paragraph(para2.toString(), font2);\n Paragraph paragraph3 = new Paragraph(para3.toString(), font2);\n Paragraph paragraph4 = new Paragraph(para4.toString(), font2);\n Paragraph paragraph5 = new Paragraph(para5.toString(), font2);\n Paragraph paragraph6 = new Paragraph(para6.toString(), font2);\n document.add(paragraph1);\n document.add(paragraph2);\n document.add(paragraph3);\n document.add(paragraph4);\n document.add(paragraph5);\n document.add(paragraph6);\n document.close();\n }", "title": "" }, { "docid": "afc3154d5e1d4dc5afdb8b427b662d67", "score": "0.551835", "text": "public void prettyPrintFile(){\n\t\tString fileContent = \"\";\n\n\t\tfor (Command com : finishedCommands) {\n\t\t\tif( com.toHex() == null ){\n\t\t\t\tfileContent = fileContent + \"\t\t\t\t\t\t\" + com.getOriginalLine() + \"\\n\";\n\t\t\t} else {\n\t\t\t\tString hexAddress = checkBits(8,getHex(checkBits(32,getBinary(com.getRow()*4))));\n\t\t\t\tfileContent = fileContent + \"0x\"+hexAddress + \"\t\" + \"0x\"+com.toHex() +\n\t\t\t\t\t\t\"\t\" + com.getOriginalLine() + \"\\n\";\n\t\t\t}\n\t\t}\n\t\tfileContent = fileContent + \"\\nSymbols \\n\";\n\t\tfor (String label : lableAddress.keySet()) {\n\t\t\tString hexAddress = checkBits(8,getHex(checkBits(32,getBinary(lableAddress.get(label)))));\n\t\t\tfileContent = fileContent + label + \"\t\" +\"0x\"+ hexAddress + \"\\n\";\n\t\t}\n\n\t\ttry {\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(prettyPrint));\n\t\t\twriter.write(fileContent);\n\t\t\twriter.close();\n\t\t} catch (IOException e) {}\n\n\t}", "title": "" }, { "docid": "751d0acd96d90ef01a65202588126c07", "score": "0.5502933", "text": "void writeoneline(String filename1, String filename2) throws IOException{\n\t\tBufferedReader file= new BufferedReader( new FileReader( filename1 ) );\n\t\t\n\t\tString line= null;\n\t\t//send message\n\t\tSystem.out.println(\"Sending message to the server...\");\n\t\t\n\t\twhile( (line= file.readLine()) != null ){\n\t\t\t String onebyone = line;\n output.println(onebyone);\n\t\t}\n\t\tfile.close();\n\t\t\n\t\t// open the file for reading\n\t\tPrintWriter file2= new PrintWriter( new BufferedWriter( new FileWriter(filename2) ) );\n\t\tString line2 = input.readLine();\n\t\t//receive a message\n\t\t//String response = input.readLine();\n\t\tif(line2.isEmpty())\n\t\t\tSystem.out.println(\"(server did not reply with a message)\");\n\t\telse{\n\t\t\tSystem.out.println(\"Writing to file...:\");\t\n\t\t\t//String line= null;\n\t\t\t\n\t\t\tfile2.println( line2 );\n\t\t\tfile2.close();\n\t\t}\n\t\tSystem.out.println(\"Done!\");\n\t}", "title": "" }, { "docid": "0ebba0e48cc4f857f43536ecf9b2fc00", "score": "0.5466219", "text": "public static void doAppendix(PrintWriter out)\n throws IOException {\n out.println(\" <br><br>\");\n out.println(\" </td>\");\n out.println(\" <td style=\\\"vertical-align: top; horizontal-align: left; width: 50px;\\\"></td>\");\n out.println(\" </tr>\");\n out.println(\" <tr style=\\\"vertical-align: bottom;\\\">\");\n out.println(\" <td style=\\\"vertical-align: top; width: 10px; background-color: rgb(0, 0, 0);\\\"><br>\");\n out.println(\" </td>\");\n out.println(\" <td style=\\\"vertical-align: middle; width: 130px; background-color: rgb(0, 0, 0); text-align: center; color: rgb(255, 255, 255);\\\">\");\n out.println(\" VL-e SP 2.5<br>\");\n out.println(\" <small><small>Kruislaan 403<br>1098 SJ, Amsterdam</></small></small></td>\");\n out.println(\" <td style=\\\"vertical-align: top; width: 7px; background-color: rgb(102, 102, 102);\\\"><br>\");\n out.println(\" </td>\");\n out.println(\" <td style=\\\"vertical-align: top; width: 50px;\\\"><br>\");\n out.println(\" </td>\");\n out.println(\" <td style=\\\"vertical-align: middle; text-align: left;\\\">\");\n out.println(\" <small>Copyright &copy; 2005-2008. UvA and Contributors. All rights reserved.</small><br>\");\n out.println(\" <img src=\\\"resources/line_light.gif\\\" border=\\\"0\\\" height=\\\"3\\\" width=\\\"100%\\\">\");\n out.println(\" <img src=\\\"resources/vle_sticker.png\\\" width=\\\"340\\\" height=\\\"56\\\"> \");\n out.println(\" </td>\");\n out.println(\" <td style=\\\"vertical-align: top; horizontal-align: left; width: 50px;\\\"></td>\");\n out.println(\" </tr>\");\n out.println(\" </tbody>\");\n out.println(\" </table>\");\n out.println(\" </body>\");\n out.println(\"</html>\");\n }", "title": "" }, { "docid": "91638fdcea4db2e7e61aa1c1f72d7354", "score": "0.5464082", "text": "void fileline(String filename) throws IOException{\n\t\tBufferedReader file= new BufferedReader( new FileReader( filename ) );\n\t\t\n\t\t// read the contents and output it to stdout\n\t\tString line= null;\n\t\t//send message\n\t\tSystem.out.println(\"Sending message to the server...\");\n\t\t\n\t\twhile( (line= file.readLine()) != null ){\n\t\t\t String onebyone = line;\n output.println(onebyone);\n\t\t}\n\t\tfile.close();\n\t\t\n\t\t//receive a message\n\t\tString response = input.readLine();\n\t\tif(response.isEmpty())\n\t\t\tSystem.out.println(\"(server did not reply with a message)\");\n\t\telse{\n\t\t\tSystem.out.println(\"Server response:\");\n\t\t\t\n\t\t\tSystem.out.println(response);\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "3cf8f3db20858265818943047f2a9823", "score": "0.5455986", "text": "public String printReceipt() {\n\t\tString receipt = \"\";\n\n\t\tfor (Item item : itemList) {\n\t\t\treceipt += (item.printItem() + \"\\n\");\n\t\t}\n\n\t\treceipt += \"Total sales tax = \" + decimalFormat.format(totalSalesTax) + \"\\n\";\n\t\treceipt += \"Total amount = \" + decimalFormat.format(totalAmount) + \"\\n\";\n\n\t\treturn receipt;\n\t}", "title": "" }, { "docid": "3559916d0da39edf69ec13f434ad790e", "score": "0.5450631", "text": "public void output() {\n\t\ttry {\n\t\t\toutput = new PrintWriter(new File(\"outputASCII.txt\"), \"UTF-8\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"ERROR: Cannot open file outputASCII.txt\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\toutput.println(out);\n\t\toutput.close();\n\t}", "title": "" }, { "docid": "31d4cf7a4833eb4cc6df1df358340ec2", "score": "0.54448307", "text": "private void outputFile() throws IOException {\n \tString url = request.getUrl();\n \t\n \t// Message line\n \toutToClient.writeBytes(\"HTTP/1.0 200 Document Follows\\r\\n\");\n \t\n \t// Date\n \tSimpleDateFormat rfc1123format = new SimpleDateFormat(\"EEE, d MMM yyyy HH:mm:ss 'GMT'\", Locale.US);\n\t\trfc1123format.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\tCalendar calendar = Calendar.getInstance();\t\t\n\t outToClient.writeBytes(\"Date: \" + rfc1123format.format(calendar.getTime()) + \"\\r\\n\");\n\t \n\t // Server\n\t outToClient.writeBytes(\"Server: \" + request.getServer() + \"\\r\\n\");\n\t // Content-Type\n\t if (url.endsWith(\".jpg\")) {\n\t outToClient.writeBytes(\"Content-Type: image/jpeg\\r\\n\");\n\t }\n\t else if (url.endsWith(\".gif\")) {\n\t outToClient.writeBytes(\"Content-Type: image/gif\\r\\n\");\n\t }\n\t else if (url.endsWith(\".html\") || url.endsWith(\".htm\")) {\n\t outToClient.writeBytes(\"Content-Type: text/html\\r\\n\");\n\t }\n\t else {\n\t outToClient.writeBytes(\"Content-Type: text/plain\\r\\n\");\n\t }\n\t // Last-Modified\n\t outToClient.writeBytes(\"Last-Modified: \" + rfc1123format.format(requestedFile.lastModified()) + \"\\r\\n\");\n\t \n\t // Content-Length + content\t \n\t \n\t String cached = server.getFromCache(url);\n\n\t // If in cache\n\t if(cached != null) {\n\t \tint numOfBytes = cached.length();\n\t \toutToClient.writeBytes(\"Content-Length: \" + numOfBytes + \"\\r\\n\");\n\t \toutToClient.writeBytes(\"\\r\\n\");\n\t outToClient.writeBytes(cached);\n\t return;\n\t }\n\t // If not in cache\n\t int numOfBytes = (int)requestedFile.length();\n\t outToClient.writeBytes(\"Content-Length: \" + numOfBytes + \"\\r\\n\");\n \toutToClient.writeBytes(\"\\r\\n\");\n \t// <file content>\n\t FileInputStream fis = new FileInputStream (requestedFile);\n\t byte[] fileInBytes = new byte[numOfBytes];\n\t fis.read(fileInBytes);\n\t outToClient.write(fileInBytes, 0, numOfBytes);\n\t server.updateCache(url, new String(fileInBytes));\n\t fis.close();\n\t}", "title": "" }, { "docid": "84522753d84cfb6b7d6dde1269d61dc2", "score": "0.54357827", "text": "public void writeOutFile (String line) {\n\t\tSystem.out.println(line);\n\t\twriter.write(line);\n\t\twriter.write(System.lineSeparator());\n\t}", "title": "" }, { "docid": "a40c8dd5118d3d78ceea25b4aa184840", "score": "0.54305756", "text": "public void printReceipt() {\n\t\taf=DataStore.af;\n\t\tprintreceipt=af.getPrintReceiptInstance();\n\t\tdataStore=af.getDataStoreInstance();\n\t\tprintreceipt.printReceipt(dataStore);\n\t}", "title": "" }, { "docid": "ca37cefe6c3d0d17f63929b5ddada863", "score": "0.54205906", "text": "private void saveFile(String product) {\n\t\tFileWriter fw = null;\n\t\t\n\t\ttry{\n\t\t\tfw = new FileWriter(this.filename, true);\n\t\t\tfw.append(product);\n\t\t\tfw.append(\"\\n\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\tfw.flush();\n\t\t\t\tfw.close();\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\n\t\t\n\t}", "title": "" }, { "docid": "f4301e66ef235c573caf18eb3bcd5199", "score": "0.54181963", "text": "public void generateReceipt() {\r\n\t\tStringBuilder headersb = new StringBuilder();\r\n\t\theadersb.append(\"Receipt\\n\");\r\n\t\tif(this.currentMember != null) {\r\n\t\t\theadersb.append(\"Member Name: \" + MemberDatabase.REGISTERED_MEMBERS.get(this.currentMember).getName());\r\n\t\t\theadersb.append(\"\\nMember Number: \" + this.currentMember);\r\n\t\t\theadersb.append(\"\\nMember Points: \" + MemberDatabase.REGISTERED_MEMBERS.get(this.currentMember).getPoints() + \"\\n\\n\");\r\n\t\t}\r\n\t\tfor(int i = 0; i < headersb.length(); i++) this.station.printer.print(headersb.charAt(i));\r\n\t\tfor(int i = 0; i < headersb.length(); i++) {\r\n\t\t\tif (!(Character.isWhitespace(headersb.charAt(i)))) {\r\n\t\t\t\t--this.inkLeft;\r\n\t\t\t\tif (this.inkLeft <= 100) {\r\n\t\t\t\t\tthis.lowInk = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(BarcodedItem item : scannedItems) {\r\n\t\t\tBarcode barcode = item.getBarcode();\r\n\t\t\tBarcodedProduct product = this.productDatabase.get(barcode);\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tString description = product.getDescription();\r\n\t\t\tsb.append(description);\r\n\t\t\tsb.append(\"\\t\");\r\n\t\t\tint padnum = 15 - description.length();\r\n\t\t\tif(padnum > 0) {\r\n\t\t\t\tchar[] pad = new char[padnum];\r\n\t\t\t\tArrays.fill(pad, ' ');\r\n\t\t\t\tsb.append(pad).append(product.getPrice());\r\n\t\t\t}\r\n\t\t\tfor(int i = 0; i < sb.length(); i++) this.station.printer.print(sb.charAt(i));\r\n\t\t\tfor(int i = 0; i < sb.length(); i++) {\r\n\t\t\t\tif (!(Character.isWhitespace(sb.charAt(i)))) {\r\n\t\t\t\t\t--this.inkLeft;\r\n\t\t\t\t\tif (this.inkLeft <= 100) {\r\n\t\t\t\t\t\tthis.lowInk = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.station.printer.print('\\n');\r\n\t\t\tcheckLowPaper();\r\n\t\t}\r\n\t\tfor(PLUCodedItem item : pluItems) {\r\n\t\t\tPriceLookupCode plc = item.getPLUCode();\r\n\t\t\tPLUCodedProduct product = this.pluProductDatabase.get(plc);\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tString description = product.getDescription();\r\n\t\t\tsb.append(description);\r\n\t\t\tsb.append(\"\\t\");\r\n\t\t\tint padnum = 15 - description.length();\r\n\t\t\tif(padnum > 0) {\r\n\t\t\t\tchar[] pad = new char[padnum];\r\n\t\t\t\tArrays.fill(pad, ' ');\r\n\t\t\t\tsb.append(pad).append(product.getPrice());\r\n\t\t\t}\r\n\t\t\tfor(int i = 0; i < sb.length(); i++) this.station.printer.print(sb.charAt(i));\r\n\t\t\tfor(int i = 0; i < sb.length(); i++) {\r\n\t\t\t\tif (!(Character.isWhitespace(sb.charAt(i)))) {\r\n\t\t\t\t\t--this.inkLeft;\r\n\t\t\t\t\tif (this.inkLeft <= 100) {\r\n\t\t\t\t\t\tthis.lowInk = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.station.printer.print('\\n');\r\n\t\t\tcheckLowPaper();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tString bagsUsed = \"Bags used: \";\r\n\t\tString total = \"Sub Total: \";\r\n\t\tString AmountPaid = \"Amount Paid: \";\r\n\t\tsb.append('\\n');\r\n\t\tcheckLowPaper();\r\n\t\tsb.append(bagsUsed);\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(this.numberOfBags);\r\n\t\tsb.append('\\n');\r\n\t\tcheckLowPaper();\r\n\t\tsb.append(total);\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(this.total);\r\n\t\tsb.append('\\n'); \r\n\t\tcheckLowPaper();\r\n\t\tsb.append(AmountPaid);\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(this.amountEntered);\r\n\t\tsb.append(\"\\n\");\r\n\t\tcheckLowPaper();\r\n\t\tsb.append(\"Change Due: \");\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(this.amountEntered.subtract(this.total));\r\n\t\tfor(int i = 0; i < sb.length(); i++) this.station.printer.print(sb.charAt(i));\r\n\t\tfor(int i = 0; i < sb.length(); i++) {\r\n\t\t\tif (!(Character.isWhitespace(sb.charAt(i)))) {\r\n\t\t\t\t--this.inkLeft;\r\n\t\t\t\tif (this.inkLeft <= 100) {\r\n\t\t\t\t\tthis.lowInk = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.station.printer.cutPaper();\r\n\t\tthis.receipt = this.station.printer.removeReceipt();\r\n\t}", "title": "" }, { "docid": "44f1ded5bf643685c5b004748030345f", "score": "0.5412838", "text": "public String FinishOrderAndPrint() throws IOException \n\t{\n\t\tdouble taxAmount;\n\t\tfinishOrder.append(\"Date: \" + date + \"\\n\\n\");\n\t\tfinishOrder.append(\"Number of line items: \" + numTransactions + \"\\n\\n\");\n\t\tfinishOrder.append(\"Item# / ID / Title / Price / Qty / Disc % / Subtotal\\n\\n\");\n\t\tfinishOrder.append(printOrder() + \"\\n\\n\");\n\t\tfinishOrder.append(\"Order Subtotal: $\" + String.format(\"%.2f\", subtotal) + \"\\n\\n\");\n\t\tfinishOrder.append(\"Tax rate: 6%\\n\\n\");\n\t\ttaxAmount = total - subtotal;\n\t\tfinishOrder.append(\"Tax Amount: $\" + String.format(\"%.2f\", taxAmount) + \"\\n\\n\");\n\t\tfinishOrder.append(\"Order total: $\" + String.format(\"%.2f\", total) + \"\\n\\n\");\n\t\tfinishOrder.append(\"Thanks for shopping at Nile Dot Com!\");\n\t\t\n\t\tprintFinalTransactionList();\n\t\t\n\t\treturn finishOrder.toString();\n\t}", "title": "" }, { "docid": "9839b49628321ea70bfaeb5cf621e97a", "score": "0.5410667", "text": "private void getFileResult(HttpServletRequest request, HttpServletResponse response, Enrichment app) throws IOException {\r\n\t\tString filename = request.getParameter(\"filename\");\r\n\t\tString backgroundType = request.getParameter(\"backgroundType\");\r\n\t\tArrayList<EnrichedTerm> results = app.enrich(backgroundType);\r\n\t\t\r\n\t\t// Headers needed to trigger a download instead of opening in browser\r\n\t\tresponse.setHeader(\"Pragma\", \"public\");\r\n\t\tresponse.setHeader(\"Expires\", \"0\");\r\n\t\tresponse.setHeader(\"Cache-Control\", \"must-revalidate, post-check=0, pre-check=0\");\r\n\t\tresponse.setContentType(\"application/octet-stream\");\r\n\t\tresponse.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"\" + filename + \".txt\\\"\");\t\t\r\n\t\tresponse.setHeader(\"Content-Transfer-Encoding\", \"binary\");\r\n\t\t\r\n\t\tFileUtils.write(response.getWriter(), Enrichment.HEADER, results);\r\n\t}", "title": "" }, { "docid": "099d9f3f029e60af974fd9407beeaa39", "score": "0.5396264", "text": "public void printToFile(PrintStream output) {\n for (ItemOrder itemOrder : list) {\n //values of objects are output with \",\" to separate them and linebreak between each individual object\n output.println(itemOrder.getName() + \",\" + itemOrder.getQuantity() + \",\" + itemOrder.getPrice());\n }\n }", "title": "" }, { "docid": "c7317336495a63c8cce8e93626da1198", "score": "0.53957146", "text": "void generateInvoiceFile(String huanhuanOrderFileUri,\n String aliOrderFileUri,\n String invoiceFileUri);", "title": "" }, { "docid": "edfa93801ba2f4c446772068cf6ffe4c", "score": "0.53947914", "text": "private void printOutputs(){\n\n // Tries to write the order's output form to the order output\n // file\n try {\n BufferedWriter outWriter = new BufferedWriter(\n new FileWriter(outputFile));\n outWriter.write(orderOutputString);\n outWriter.close();\n }catch(IOException e){\n System.err.println(\"Output file could not be created \" +\n \"for order form.\");\n }\n\n // Prints the message with details about the successful order to the\n // console for the user to see.\n System.out.println(consoleOutputString);\n }", "title": "" }, { "docid": "d23c933150fee03c2b8aa0f666fa202d", "score": "0.53728485", "text": "public void printToFile(String filepath)\n\t{\n\t}", "title": "" }, { "docid": "641221238881bfb07bc44e1e6187915f", "score": "0.5371694", "text": "public void writeToFile() {\n try {\n FileWriter outputFile = new FileWriter(filePath);\n outputFile.write(output);\n outputFile.close();\n System.out.println(\"Successfully wrote to file.\");\n } \n catch (IOException e) {\n System.out.println(\"An error occurred.\");\n }\n }", "title": "" }, { "docid": "59af14e571170f02ef330f7684e97af9", "score": "0.53671795", "text": "public OutputStream openOutputStream(CabFileEntry file) {\r\n File output_file;\r\n FileOutputStream output_stream;\r\n String filename, complete_filename;\r\n\r\n // Convert filename to use local separator convention\r\n filename = convertFilenameToSystemSeparator(file.getName());\r\n\r\n output_file = new File(filename);\r\n \r\n if (false && output_file.isAbsolute()) {\r\n System.out.println(\r\n \" ** Not extracting file with absolute pathname: \" + filename\r\n );\r\n return null;\r\n }\r\n\r\n // Display the (converted) filename\r\n System.out.println(\" \" + file.getName());\r\n\r\n // Get the complete filename (with output directory prefix)\r\n if (output_directory != null)\r\n complete_filename = output_directory + File.separator + filename;\r\n else\r\n complete_filename = filename;\r\n\r\n // Open file for output\r\n output_file = new File(complete_filename);\r\n\r\n try {\r\n output_stream = new FileOutputStream(output_file);\r\n }catch (IOException ioe) {\r\n //\r\n // Couldn't create the output stream; it could be that the\r\n // directories don't exist for it, so create them and try again\r\n //\r\n String parent_dir_name = output_file.getParent();\r\n\r\n if (parent_dir_name == null) {\r\n return null;\r\n }else{\r\n File parent_dir = new File(parent_dir_name);\r\n \r\n if (parent_dir != null)\r\n parent_dir.mkdirs();\r\n }\r\n\r\n try {\r\n output_stream = new FileOutputStream(output_file);\r\n }catch (IOException ioe2) {\r\n System.out.println(\r\n \"IOException opening output file \" + complete_filename\r\n );\r\n return null;\r\n }\r\n }\r\n return output_stream;\r\n }", "title": "" }, { "docid": "34956253eb44de384ea47963886118a7", "score": "0.53659135", "text": "public final void printCompleteReceipt() {\r\n receipt.printReceipt();\r\n }", "title": "" }, { "docid": "4038f78eb34ddce5377b5df258be7aa5", "score": "0.5356363", "text": "private void outputFile(String fileName, HttpServletResponse response) {\n\t\ttry {\n\t\t\tFile file = new File(fileName);\n\t\t\tInputStream in;\n\t\t\tin = new FileInputStream(file);\n\t\t\tresponse.setContentType(\"text/csv\");\n\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment; filename=\" + file.getName());\n\t\t\tresponse.setHeader(\"Content-Length\", String.valueOf(file.length()));\n\t\t\tFileCopyUtils.copy(in, response.getOutputStream());\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "9a8f04fdc91b5f25d6baae3c4620093d", "score": "0.53517747", "text": "public void writeFile() {\n key = generateSecretKey();\n\n try {\n FileOutputStream fileOutputStream = new FileOutputStream(\"Moneytor.txt\", true);\n fileOutputStream.write(key.getBytes());\n fileOutputStream.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "69272a627338302d2674a0863c07526c", "score": "0.53496915", "text": "void writeToFile(){\n String theData = AllVariables.bodyOfCycle + \"\\n\" + AllVariables.coinType + \"\\n\" + AllVariables.tyreType + \"\\n\";\n for (int i=0; i<AllVariables.unlockedBar.size(); i++)\n theData += AllVariables.unlockedBar.get(i)+\"#\";\n theData += \"\\n\";\n\n for (int i=0; i<AllVariables.unlockedCoin.size(); i++)\n theData += AllVariables.unlockedCoin.get(i)+\"#\";\n theData += \"\\n\";\n\n for (int i=0; i<AllVariables.unlockedWheel.size(); i++)\n theData += AllVariables.unlockedWheel.get(i)+\"#\";\n theData += \"\\n\";\n\n lockUnlockFile.writeString(theData, false);\n }", "title": "" }, { "docid": "ea1de26af17be78dc2259b769374b8cc", "score": "0.5327254", "text": "public String toFile() {\r\n // review rating\r\n // review date\r\n String str = rating + \"\\n\"\r\n + date + \"\\n\";\r\n return str;\r\n }", "title": "" }, { "docid": "021d19f533edd7513b6ac08284fb8dfb", "score": "0.5319701", "text": "void filecommunicate(String filename) throws IOException{\n\t\tBufferedReader file= new BufferedReader( new FileReader( filename ) );\n\t\t\n\t\t// read the contents and output it to stdout\n\t\tString line= null;\n\t\t//send message\n\t\tSystem.out.println(\"Sending message to the server...\");\n\t\t\n\t\twhile( (line= file.readLine()) != null ){\n\t\t\t String onebyone = line;\n output.println(onebyone);\n\t\t}\n\t\tfile.close();\n\t\t\n\t\t//receive a message\n\t\tString response = input.readLine();\n\t\tif(response.isEmpty())\n\t\t\tSystem.out.println(\"(server did not reply with a message)\");\n\t\telse{\n\t\t\tSystem.out.println(\"Server response:\");\n\t\t\tSystem.out.println(response);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "037b069cc9dbf01225d170b2694e7374", "score": "0.5318805", "text": "OutputStream out();", "title": "" }, { "docid": "43235a42f4bdbb8df56b4d533aa9fba7", "score": "0.53156203", "text": "public void file (OrderReceipt r) {\n\t\tthis.receiptList.add(r);\n\t\tthis.totalEarnings = totalEarnings + r.getPrice();\n\t}", "title": "" }, { "docid": "db4d1c5524b82209fd4ac301a494e4c3", "score": "0.53116924", "text": "public File writeToFile() {\n\t\tFileParser fileParser = new FileParser(this.inputFileName);\n\n\t\t// Get the list of actual account numbers from input file\n\t\tList<String> actualAccountNumbers = fileParser.performFileParsing();\n\n\t\t// Checksum validator\n\t\tAccountNumberValidator acNumValidator = new AccountNumberValidator();\n\t\tFile outputFile = null;\n\n\t\ttry {\n\t\t\toutputFile = new File(this.outputFileName);\n\t\t\tif (!outputFile.exists()) {\n\t\t\t\toutputFile.createNewFile();\n\t\t\t}\n\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(outputFile));\n\n\t\t\t// validate the results before writing and add comments\n\t\t\tfor (String actualAccountNum : actualAccountNumbers) {\n\t\t\t\tif (actualAccountNum.contains(\"?\")) {\n\t\t\t\t\tbw.write(actualAccountNum);\n\t\t\t\t\tbw.write(\" \");\n\t\t\t\t\tbw.write(\"ILL\");\n\t\t\t\t\tbw.write(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tif (acNumValidator.isValidAccountNumber(actualAccountNum)) {\n\t\t\t\t\t\tbw.write(actualAccountNum);\n\t\t\t\t\t\tbw.write(\"\\n\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbw.write(actualAccountNum);\n\t\t\t\t\t\tbw.write(\" \");\n\t\t\t\t\t\tbw.write(\"ERR\");\n\t\t\t\t\t\tbw.write(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tbw.close();\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"Error while writing file.Details:\\n\");\n\t\t\tioe.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error. Details:\\n\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn outputFile;\n\t}", "title": "" }, { "docid": "3f47838712b75ea3de1c0c4f8cffa902", "score": "0.53043693", "text": "public void prtReceipt();", "title": "" }, { "docid": "e3baad88b61133c573d8906baf8b1a41", "score": "0.5296298", "text": "@Override\n public String printIntoFile() {\n String writeToFile;\n writeToFile = TUTORIAL_FILE_SYMBOL + SEPARATOR + isOver + SEPARATOR + moduleCode\n + SEPARATOR + this.date + SEPARATOR + this.time + SEPARATOR + venue\n + SEPARATOR + getAdditionalInformationCount();\n if (getAdditionalInformationCount() != 0) {\n int i;\n for (i = 0; i < getAdditionalInformationCount(); i++) {\n writeToFile = writeToFile + SEPARATOR + getAdditionalInformationElement(i);\n }\n }\n return writeToFile;\n }", "title": "" }, { "docid": "fcbe25a3824b0fa9464f6913eb447ab0", "score": "0.5294168", "text": "public void createFulfilledOutput(){\n StringBuilder consoleBuilder = new StringBuilder();\n StringBuilder fileBuilder = new StringBuilder();\n\n consoleBuilder.append(\"\\n\");\n consoleBuilder.append(\"Order successful.\");\n consoleBuilder.append(\"\\n\");\n // Construction for the message that will be printed to the console\n if(itemsOrdered.length == 1){\n // Provides proper grammar if only one component was purchased.\n consoleBuilder.append(\"Purchased component: \");\n consoleBuilder.append(itemsOrdered[0]);\n\n } else if(itemsOrdered.length == 2){\n // Provides proper grammar if exactly two components were purchased\n consoleBuilder.append(\"Purchased components: \");\n consoleBuilder.append(itemsOrdered[0]);\n consoleBuilder.append(\" and \");\n consoleBuilder.append(itemsOrdered[1]);\n\n } else{\n // Provides proper grammar if three or more components were\n // purchased.\n consoleBuilder.append(\"Purchased components: \");\n for(int i = 0; i<itemsOrdered.length -1; i++){\n consoleBuilder.append(itemsOrdered[i]);\n consoleBuilder.append(\", \");\n }\n consoleBuilder.append(\"and \");\n consoleBuilder.append(itemsOrdered[itemsOrdered.length-1]);\n\n }\n\n // Construction for the String that will be written into the order\n // output file containing details about the order.\n consoleBuilder.append(\" for $\");\n consoleBuilder.append(orderCost);\n consoleOutputString = consoleBuilder.toString();\n\n fileBuilder.append(\"SCM Order Form\");\n fileBuilder.append(\"\\n\\n\");\n fileBuilder.append(\"Faculty Name: \");\n fileBuilder.append(\"\\n\");\n fileBuilder.append(\"Contact: \");\n fileBuilder.append(\"\\n\");\n fileBuilder.append(\"Date: \");\n fileBuilder.append(\"\\n\\n\");\n fileBuilder.append(\"Original Request: \");\n fileBuilder.append(originalRequest);\n fileBuilder.append(\"\\n\\n\");\n fileBuilder.append(\"Items Ordered:\");\n\n // Lists the items that were purchased to fulfill the user's order\n for (String s : itemsOrdered) {\n fileBuilder.append(\"\\n\");\n fileBuilder.append(\" ID: \");\n fileBuilder.append(s);\n }\n fileBuilder.append(\"\\n\\n\");\n fileBuilder.append(\"Total price of order: $\");\n fileBuilder.append(orderCost);\n\n // Saves the string that was printed to the order form for\n // future reference.\n orderOutputString = fileBuilder.toString();\n\n printOutputs();\n }", "title": "" }, { "docid": "b9d95036f4cb5ddc38dde9934e32a8aa", "score": "0.5287664", "text": "public static int sellTickets(int numberOfTickets, boolean logTransactionsToFile) {\n PrintWriter fileWriter = null;\n File outputFile = null;\n if (logTransactionsToFile) {\n try {\n outputFile = getFileFromUser(\"Where is the input file? \", false, true);\n fileWriter = new PrintWriter(outputFile);\n }\n catch (java.lang.Exception err) {\n System.out.println(\"There was a problem writing to your file\");\n }\n }\n int desiredQuantity = 0;\n int buyers = 0;\n while(numberOfTickets > 0) {\n System.out.println(\"Remaining Tickets: \" + numberOfTickets);\n // Get number of tickets wanted by customer\n System.out.print(\"How many tickets would you like to purchase? \");\n desiredQuantity = keyboardReader.nextInt();\n \n // Check to see if there are enough tickets for this purchase\n if(desiredQuantity > numberOfTickets) {\n System.out.println(\"There are only \" + numberOfTickets + \" tickets remaining. \");\n }\n // Check to see if purchase exceeds customers quota\n else if(desiredQuantity > 4) {\n System.out.println(\"You can only buy up to 4 tickets. \");\n }\n else if (desiredQuantity < 1) {\n System.out.println(\"You must buy at least one ticket\");\n }\n // Complete transaction\n else {\n numberOfTickets = numberOfTickets - desiredQuantity;\n buyers++;\n if (logTransactionsToFile) {\n try {\n fileWriter.printf(\"Buyer #%d bought %d ticket\", buyers, desiredQuantity);\n if (desiredQuantity != 1) {\n fileWriter.print(\"s\");\n }\n fileWriter.println();\n }\n catch (java.lang.Exception err) {\n System.out.println(\"There was a problem writing to your file\");\n }\n }\n }\n }\n if (logTransactionsToFile) {\n fileWriter.close();\n // Reread the log file to the user\n Scanner fileReader;\n try {\n fileReader = new Scanner(outputFile);\n while(fileReader.hasNext()) {\n System.out.println(fileReader.nextLine());\n }\n }\n catch (java.lang.Exception err) {\n System.out.println(\"There was a problem reading from the file\");\n }\n }\n return buyers;\n }", "title": "" }, { "docid": "e15f4bc5eb03a1cf678b4aeecc6ea3ba", "score": "0.5284637", "text": "static void writeAnswers(String fileName, String outputAns){\n try\n {\n PrintWriter writer = new PrintWriter(\"generatedQuestions/\"+fileName+\".txt\", \"UTF-8\");\n writer.println(outputAns);\n System.out.println();\n System.out.println(\"########## \" + fileName + \".txt Successfully Generated ##########\");\n System.out.println();\n writer.close();\n\n }\n catch (FileNotFoundException | UnsupportedEncodingException ex) \n {\n System.out.println(\"File not found\");\n }\n }", "title": "" }, { "docid": "cbe78e235b499ddf3ea8cb9a66f522c4", "score": "0.52755547", "text": "public static void main(String[] args) throws Exception {\n\n PrintWriter writer = new PrintWriter(\"example.txt\");\n\n // calc.add(60);\n\n writer.print(\"one line \");\n writer.println(\"same line\");\n writer.println(\"another line\");\n writer.println(\"last line\");\n\n writer.close();\n\n System.out.println(\"File written\");\n }", "title": "" }, { "docid": "818752876bd2d7e5374b1761dae9be8f", "score": "0.52717966", "text": "private void exportFile() {\n FileDialog dlg = new FileDialog(shell, SWT.OPEN);\n dlg.setText(\"Export To File\");\n dlg.setFilterNames(FILTER_NAMES);\n dlg.setFilterExtensions(FILTER_EXTS);\n String fn = dlg.open();\n if (fn != null) {\n try {\n BufferedWriter out = new BufferedWriter(new FileWriter(fn));\n StringBuilder s = new StringBuilder();\n if (inEditMode) {\n s.append(removeSoftReturns(headerTF.getText()));\n s.append(\"\\n\\n\");\n }\n s.append(removeSoftReturns(textEditor.getText()));\n int eolIndex = s.indexOf(\"\\n\");\n int ddhhmmIndex = s.indexOf(\"DDHHMM\");\n if ((ddhhmmIndex > 0) && (ddhhmmIndex < eolIndex)) {\n s.replace(ddhhmmIndex, ddhhmmIndex + 6, \"000000\");\n }\n out.append(s);\n out.close();\n } catch (IOException e1) {\n statusHandler.handle(Priority.PROBLEM,\n \"Error retrieving metatdata\", e1);\n }\n }\n }", "title": "" }, { "docid": "d85a1517c8d308b9d813264e6f2dff91", "score": "0.5258028", "text": "private void createFile(String filename) {\n File file = new File(MainActivity.this.getFilesDir(), filename);\n\n String newline = \"\\n\";\n\n // now write 1 through 10\n try {\n FileOutputStream outputStream;\n outputStream = openFileOutput(filename, Context.MODE_PRIVATE);\n\n // wrap OutputStream with PrintStream just so you can\n // pass your string data without encoding to bytes code\n PrintStream printStream = new PrintStream(outputStream);\n\n for (int i = 0; i < 10; i++) {\n // write a number then a new line character\n printStream.print(i + 1);\n printStream.print(newline);\n\n Thread.sleep(300);\n\n // update the progress bar\n publishProgress((i + 1) * 10);\n }\n outputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "0f3d5899a829820b6f584679debb6e74", "score": "0.525746", "text": "public static void writeDecryptionToFile(String inputFileName, String outputFileName, int shift) \n\t{\n \n\t\tString contents = getFileContents(inputFileName);\n\t\tString decryptedText = decryptString(contents, shift);\n\t\tBufferedWriter writeFile;\n\t\t\n\t\ttry \n\t\t{\n\t\t\twriteFile = new BufferedWriter(new FileWriter(outputFileName));\n\t\t\twriteFile.write(decryptedText);\n\t\t\twriteFile.close();\n\t\t}\n\t\t\n\t\tcatch (Exception ex) \n\t\t{\n\t\t\tSystem.out.println(\"\\nAn error occured writing to the file!\");\n\t\t}\n\t}", "title": "" }, { "docid": "0846de3a922d66098465d91df7dc4757", "score": "0.5257163", "text": "public static void main(String[] args) throws IOException \n\t{\n\t\tFile file=new File(\"desktop://file1.txt\");\n\t\tboolean status=file.createNewFile();\n\t\tif(status) {\n\t\t\tSystem.out.println(\"file created\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"file not created\");\n\t\t}\n\t\t//using FileoutputStream\n\t\tString str=\"Hello evryone\";\n\t\tFileOutputStream fout=new FileOutputStream(\"d:/file1.txt\");\n\t\tfout.write(str.getBytes());\n\t\tfout.close();\n\t\t\n\t\t//create file using java.nio.io.file\n\t\tList<String> lines =Arrays.asList(\"line1\",\"line2\");\n\t\tFiles.write(Paths.get(\"d:/file3.txt\"),lines,StandardCharsets.UTF_8,\n\t\t\t\tStandardOpenOption.CREATE,StandardOpenOption.APPEND);\n\t\t\n\n\t}", "title": "" }, { "docid": "b0a83360aaafdd89a1ee503e8c0c80a8", "score": "0.52570575", "text": "private void writeToDisk() {\n try {\n Files.write(Paths.get(this.outputLocation), this.cypherText);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "b724546dcc3d326fa32cf4378206b505", "score": "0.5235261", "text": "public void writeOrder(PrintWriter pw) {\n // get a vector of line items\n Iterator<Fields> iter = _lineItemList.iterator();\n Fields item = Fields.empty();\n // set total to zero\n int total = getTotal();\n\n while (iter.hasNext()) {\n item = iter.next();\n \n // calculate total for line item\n int unitPrice = item.firstIntValueFor(\"unitPrice\");\n int quantity = item.firstIntValueFor(\"quantity\");\n String productID = item.firstValueFor(\"productID\");\n String imageID = item.firstValueFor(\"imageID\");\n int lineItemTotal = unitPrice * quantity;\n \n pw.println(\"Begin Line Item\");\n pw.println(\"Product = \" + productID);\n pw.println(\"Image = \" + imageID);\n pw.println(\"Quantity = \" + quantity);\n pw.println(\"Total = \" + lineItemTotal);\n pw.println(\"End Line Item\");\n }\n pw.println(\"Order total = \" + total);\n }", "title": "" }, { "docid": "7101d6deeea9afc8c480ace3e62d14e7", "score": "0.52087617", "text": "public void emailFile(File file){\n }", "title": "" }, { "docid": "cef095c13bd4ad6c647d6e948853da76", "score": "0.5202459", "text": "public void export() throws FileNotFoundException {\n\t\t// filename curr datetime\n\t\tString fileName = new SimpleDateFormat(\"yyyyMMddHHmm'.txt'\").format(new Date());\n\t\tPrintStream out = new PrintStream(new FileOutputStream(\"Quiz-\"+fileName));\n\t\tSystem.setOut(out);\n\t\tint i=1;\n\t\tfor (Question q : this.questions){\n\t\t\tSystem.out.println(\"-----------------------------------------\");\n\t\t\tSystem.out.println(\"Question\" +i++ + \":\");\n\t\t\tq.display();\n\t\t\t}\n\t}", "title": "" }, { "docid": "0ca58cb89fd7ec7fc068ca0aa3b920c3", "score": "0.5201404", "text": "public void writeTo(File file) throws IOException;", "title": "" }, { "docid": "dcf672717e44ff705651cc9ef361b4c2", "score": "0.51991534", "text": "public static void outputFile(ArrayList<AddressBook> aBook) throws Exception{\n String filename = \"output.txt\";\n FileWriter fwriter = new FileWriter(filename); \n PrintWriter outputFile = new PrintWriter(fwriter);\n \n for(int i = 0; i < aBook.size(); i++){\n \n outputFile.println(aBook.get(i).firstName+ \" \"+ aBook.get(i).lastName);\n outputFile.println(aBook.get(i).association);\n outputFile.println(aBook.get(i).birthday);\n outputFile.println(aBook.get(i).streetAddress);\n outputFile.println(aBook.get(i).city+ \",\"+ aBook.get(i).state+ \" \"+\n aBook.get(i).zipCode);\n outputFile.println(aBook.get(i).phoneNumber);\n \n }\n System.out.print(\"\\nFile Write successful!\");\n outputFile.close();\n System.out.print(\"\\n\"+ filename+ \" is closed.\\n\\n\");\n }", "title": "" }, { "docid": "64dc090af4c54633a8484ce05057ab34", "score": "0.5196274", "text": "public static void main(String[] args) throws Exception {\r\n\r\n\t\tString SRC = \"C:/Users/krichandran/Documents/inv_withprint_css.html\";\r\n\t\t// String SRC2 = \"C:/Users/krichandran/Desktop/pinacle.html.txt\";\r\n\r\n\t\tString DEST = \"C:/Users/krichandran/Documents/aabbccdd.pdf\";\r\n\t\t// String DEST2 = \"C:/Users/krichandran/Documents/testinvoice2.pdf\";\r\n\t\t\r\n\t\tString manipulatedDestination = \"C:/Users/krichandran/Documents/manipulated_aabbccdd.pdf\";\r\n\r\n\t\tString mergeDest = \"C:/Users/krichandran/Documents/Merger.pdf\";\r\n\r\n\t\tbyte[] instream;\r\n\t\tbyte[] tempstream;\r\n\t\tLinkedList<byte[]> ops = new LinkedList<byte[]>();\r\n\t\t\r\n\t\ttry {\r\n\r\n\t\t\ttempstream = Files.readAllBytes(Paths.get(SRC));\r\n\t\t\tSystem.out.println(\"Writing to \" + DEST);\r\n\r\n\t\t\t//export(tempstream);\r\n\t\t\t\r\n\t\t\tMap<String,Object> pdfFileCarrier = PDFExporter.exportGAPInvoice(tempstream);\r\n\t\t\t\r\n\t\t\tPdfDocument pdfout = (PdfDocument) pdfFileCarrier.get(\"PdfDocument\");\r\n\t\t\tbyte[] bytearrstream = (byte[]) pdfFileCarrier.get(\"ByteArrayStream\");\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"File Output Contents :: \" + bytearrstream.length + \" contents :: \" + new String(bytearrstream,\"utf-8\"));\r\n\t\t\t\r\n\t\t\tFileOutputStream pdf = new FileOutputStream(DEST);\r\n\t\t\tpdf.write(bytearrstream);\r\n\t\t\tpdf.close();\r\n\t\t\t\r\n\t\t//\tmanipulatePdf(DEST,manipulatedDestination);\r\n\t\t\t\r\n\t\t\tManipulatePdf(DEST,manipulatedDestination);\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "f8271975832902473ecfb2310268cbd8", "score": "0.51910573", "text": "private void saveFile(final String filename, final PaginaWeb pw) {\n\n try {\n // Creating a File object that represents the disk file.\n PrintStream o = new PrintStream(new File(filename + EXTENSION));\n PrintStream console = System.out;\n\n System.setOut(o);\n\n pw.escriuPagina();\n\n System.setOut(console);\n\n log.info(\"The report has been saved\");\n\n } catch (IOException ex) {\n\n log.error(\"IOException when saving the report\", ex);\n }\n }", "title": "" }, { "docid": "aa7d46a48043364b83cd48cde92c5863", "score": "0.5190826", "text": "public void write(PrintWriter out)\n throws IOException\n {\n out.print(\"<!NOTATION \");\n out.print(name);\n out.print(\" \");\n externalID.write(out);\n out.println(\">\");\n }", "title": "" }, { "docid": "4d73fc5204c4f7ea50510f016f3c7c21", "score": "0.51895225", "text": "private void downloadFile(String f) {\n\t\ttry {\n\t\t\tfout.writeObject(new Mensaje_Pedir_Fichero(nombre, socket.getInetAddress().getHostAddress(), f));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "ec2abfae19a3356e4d3fcc5fb674cae9", "score": "0.5186298", "text": "protected void createOutputFileLocalRepair() {\n \ttry{\n \t // Create file \n \t FileWriter fstream = new FileWriter(\"localRepair.txt\");\n \t BufferedWriter out = new BufferedWriter(fstream);\n \t //for each unit\n \t for(int i=0; i < lrunit.size();i++){\n \t \t//append total unit number, unit number, unit number, total path cost, optimal path cost, cycles\n \t \tout.append(lrunit.size() + \"\\t\"+(i+1)+\"\\t\" + (i+1) + \"\\t\" +(lrunit.get(i).getTotalPathLength())+ \"\\t\" + lrunit.get(i).getOptimalLength()+\"\\t\"+lrunit.get(i).getCycles()+\"\\n\");\n\t\t\t}\n \t //close file\n \t out.close();\n\t }catch (Exception e){\n\t \t//Catch exception if any\n\t \tSystem.err.println(\"Error: \" + e.getMessage());\n\t }\n\t}", "title": "" }, { "docid": "084e3fc0273d044d42eb3a6e3606da82", "score": "0.51849324", "text": "public void printinvoice(Sales sales, CompanyInfoDao companyinfo,LedgerDao ledgerDao, HttpServletRequest request)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tHttpSession session = request.getSession();\t\r\n\t\t\tString currentUser = \"\";\r\n\t\t\tif(session != null){\r\n\t\t\t\tcurrentUser = session.getAttribute(\"username\").toString();\r\n\t\t\t}\t\r\n\t\t\t\t\t\r\n\t\t\tWriter wri = new FileWriter(currentUser+\"_Invoice.txt\");\r\n\t\t\twri = new BufferedWriter(wri);\r\n\t\t\tPrintWriter out = new PrintWriter(wri);\r\n\t\t\tCompanyInfo Compnayadd = companyinfo.listCompanyInfo().get(0);\r\n\t\t\tout.write(font_bold_on);\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(String.format(\"%35s\", Compnayadd.getCompanyName())+\"\\n\");\r\n\t\t\tout.write(font_bold_off);\r\n\t\t\tout.write(String.format(\"%46s\", Compnayadd.getCompanyAddress())+\"\\n\");\r\n\t\t\tout.write(String.format(\"%30s\", Compnayadd.getCity()));\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(String.format(\"%30s\",\"Ph:\"+Compnayadd.getPhone()));\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(String.format(\"%59s\",\"-----------------------------------------------------------\"));\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tString customername = sales.getCustomerName();\r\n\t\t\tDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\t String salesDate = formatter.format(sales.getSalesDate());\r\n\t\t\tif(!sales.getCustomerName().equals(\"walk_in\"))\r\n\t\t\t{\r\n\t\t\t\t List<Ledger> customerAdd = ledgerDao.searchLedger(customername);\r\n\t\t\t\t out.write(font_bold_on);\r\n\t\t\t\t if(sales.getFormType().equalsIgnoreCase(\"Sales\")){\r\n\t\t\t\t\t //out.write(String.format(\"%30s\",\"To:\"+customerAdd.get(0).getLedgerName()));\r\n\t\t\t\t\t out.write(String.format(\"%30s\",\"Invoice\"));\r\n\t\t\t\t }else{\r\n\t\t\t\t\t out.write(String.format(\"%30s\",\"Estimate\"));\r\n\t\t\t\t }\r\n\t\t\t\t out.write(font_bold_off);\r\n\t\t\t\t out.write(\"\\n\");\r\n\t\t\t\tif(customerAdd.get(0).getAddress1()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tout.write(String.format(\"%33s\", customerAdd.get(0).getAddress1()));\r\n\t\t\t\t\tout.write(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\tif(customerAdd.get(0).getCity()!=null)\r\n\t\t\t\t{\r\n\t\t\t\tout.write(String.format(\"%33s\",customerAdd.get(0).getCity()));\t\r\n\t\t\t\tout.write(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t if(sales.getFormType().equalsIgnoreCase(\"Sales\")){\r\n\t\t\t\t\t/* out.write(String.format(\"%35s\",\"TO:\"+sales.getWalkIn_Name()));\r\n\t\t\t\t\t out.write(\"\\n\");\r\n\t\t\t\t\t out.write(String.format(\"%35s\", sales.getWalkIn_City()));\r\n\t\t\t\t\t out.write(\"\\n\"); */\r\n\t\t\t\t\t out.write(font_bold_on);\r\n\t\t\t\t\t out.write(String.format(\"%30s\",\"Invoice\")+\"\\n\");\r\n\t\t\t\t\t out.write(font_bold_off);\r\n\t\t\t\t }else{\r\n\t\t\t\t\t out.write(String.format(\"%30s\",\"Estimate\"));\r\n\t\t\t\t\t out.write(\"\\n\");\r\n\t\t\t\t }\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tout.write(String.format(\"%18s %35s\",\"Rate : \"+sales.getBullionRate(),\"Date : \"+salesDate)+\"\\n\");\r\n\t\t\tout.write(String.format(\"%60s\",\"-----------------------------------------------------------\\n\"));\r\n\t\t\tout.write(String.format(\"%4s %4s %15s %4s %5s %5s %5s %8s\",\"\",\"Item\",\"Pcs\",\"Wt.\",\"V.A\",\"M.C\",\"Stn/Rt\",\"Amount\"));\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(String.format(\"%60s\",\"-----------------------------------------------------------\\n\"));\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\tout.write(String.format(\"%4s %-15s %2s %7.3f %3.0f %5.0f %5.0f %10.2f\",\"\",sales.getCategoryName(),sales.getTotalPieces(),sales.getGrossWeight(),sales.getValueAdditionCharges().setScale(0),sales.getMcByGrams(),sales.getStoneCost(),sales.getAmountAfterLess())+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tif(sales.getGrossWeight1().signum()!=0.000)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tout.write(String.format(\"%4s %-15s %2s %7.3f %3.0f %5.0f %5.0f %10.2f\",\"\",sales.getCategoryName1(),sales.getTotalPieces1(),sales.getGrossWeight1(),sales.getValueAdditionCharges1().setScale(0),sales.getMcByGrams1(),sales.getStoneCost1(),sales.getAmountAfterLess1())+\"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(sales.getGrossWeight2().signum()!=0.000)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tout.write(String.format(\"%4s %-15s %2s %7.3f %3.0f %5.0f %5.0f %10.2f\",\"\",sales.getCategoryName2(),sales.getTotalPieces2(),sales.getGrossWeight2(),sales.getValueAdditionCharges2().setScale(0),sales.getMcByGrams2(),sales.getStoneCost2(),sales.getAmountAfterLess2())+\"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(sales.getGrossWeight3().signum()!=0.000)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tout.write(String.format(\"%4s %-15s %2s %7.3f %3.0f %5.0f %5.0f %10.2f\",\"\",sales.getCategoryName3(),sales.getTotalPieces3(),sales.getGrossWeight3(),sales.getValueAdditionCharges3().setScale(0),sales.getMcByGrams3(),sales.getStoneCost3(),sales.getAmountAfterLess3())+\"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(sales.getGrossWeight4().signum()!=0.000)\r\n\t\t\t\t{\r\n\t\t\t\t\tout.write(String.format(\"%4s %-15s %2s %7.3f %3.0f %5.0f %5.0f %10.2f\",\"\",sales.getCategoryName4(),sales.getTotalPieces4(),sales.getGrossWeight4(),sales.getValueAdditionCharges4().setScale(0),sales.getMcByGrams4(),sales.getStoneCost4(),sales.getAmountAfterLess4())+\"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tout.write(String.format(\"%60s\",\"-----------------------------------------------------------\\n\"));\r\n\t\t\t\r\n\t\t\tBigDecimal cashamount=new BigDecimal(\"0.00\");\r\n\t\t\tBigDecimal voucheramount=new BigDecimal(\"0.00\");\r\n\t\t\tBigDecimal balanceAmount=new BigDecimal(\"0.00\");\r\n\t\t\tBigDecimal checkAmount=new BigDecimal(\"0.00\");\r\n\t\t\tBigDecimal cardAmount=new BigDecimal(\"0.00\");\r\n\t\t\t\r\n\t\t\tcashamount=sales.getCashAmount();\r\n\t\t\tvoucheramount=sales.getVoucherAmount();\r\n\t\t\tbalanceAmount=sales.getBalToPay();\r\n\t\t\tcheckAmount=sales.getChequeAmount();\r\n\t\t\tcardAmount=sales.getCalCardAmount();\r\n\t\t\tout.write(String.format(\"%18s %25s\",\"TOTAL\",sales.getBillAmount())+\"\\n\");\r\n\t\t\tif(sales.getTax().signum()!=0.00)\r\n\t\t\t{\r\n\t\t\t\tout.write(String.format(\"%18s %25s\",\"VAT TAX 1(+)%\",sales.getTax())+\"\\n\");\t\r\n\t\t\t}\r\n\t\t\tout.write(String.format(\"%18s %25s\",\"TOTAL AMOUNT\",sales.getBillAmount())+\"\\n\");\r\n\t\t\tif(sales.getExchangeAmount().signum()!=0.00)\r\n\t\t\t{\r\n\t\t\t\tout.write(String.format(\"%18s %25s\",\"PURCHASE No:\"+sales.getExchangeBillNo(),sales.getExchangeAmount())+\"\\n\");\t\r\n\t\t\t}\r\n\t\t\tif(sales.getSalesOrderAmount().signum()!=0.00)\r\n\t\t\t{\r\n\t\t\t\tout.write(String.format(\"%18s %25s\",\"SAL.ORDER ADVANCE NO:\"+sales.getSalesOrderID(),sales.getSalesOrderAmount())+\"\\n\");\t\r\n\t\t\t}\r\n\t\t\tif(sales.getSSCardAmount().signum()!=0.00)\r\n\t\t\t{\r\n\t\t\t\tout.write(String.format(\"%18s %25s\",\"SAVING SCHEME CARD NO:\"+sales.getSSCardNo(),sales.getSSCardAmount())+\"\\n\");\t\r\n\t\t\t}\r\n\t\t\tif(cashamount.signum()>0)\r\n\t\t\t{\r\n\t\t\t\tout.write(String.format(\"%18s %25s\",\"RECEIVED CASH:\",cashamount.setScale(2, RoundingMode.HALF_UP))+\"\\n\");\t\r\n\t\t\t}\r\n\t\t\tif(voucheramount.signum()>0)\r\n\t\t\t{\r\n\t\t\t\tout.write(String.format(\"%18s %25s\",\"AMOUNT RECEIVED VOUCHER:\",voucheramount.setScale(2, RoundingMode.HALF_UP))+\"\\n\");\t\r\n\t\t\t}\r\n\t\t\tif(checkAmount.signum()>0)\r\n\t\t\t{\r\n\t\t\t\tout.write(String.format(\"%18s %25s\",\"BANK AMOUNT:\",checkAmount.setScale(2, RoundingMode.HALF_UP))+\"\\n\");\t\r\n\t\t\t}\r\n\t\t\tif(cardAmount.signum()>0)\r\n\t\t\t{\r\n\t\t\t\tout.write(String.format(\"%18s %25s\",\"CARD AMOUNT:\",cardAmount.setScale(2, RoundingMode.HALF_UP))+\"\\n\");\t\r\n\t\t\t}\r\n\t\t\tif(balanceAmount.signum()>0)\r\n\t\t\t{\r\n\t\t\t\tout.write(String.format(\"%18s %25s\",\"BALANCE AMOUNT:\",balanceAmount.setScale(2, RoundingMode.HALF_UP))+\"\\n\");\t\r\n\t\t\t}\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(font_bold_on);\r\n\t\t\tout.write(String.format(\"%4s %35s\",\"\",\"Rs.\"+sales.getBillAmount())+\"\\n\");\r\n\t\t\tout.write(String.format(\"%4s %35s\",\"\",number.convert(sales.getBillAmount())+\"\\n\"));\r\n\t\t\tout.write(font_bold_off);\r\n\t\t\tout.write(String.format(\"%9s\",\"-----------------------------------------------------------\\n\"));\r\n\t\t\tout.write(String.format(\"%4s %25s\",\"\",\"*\"+dateFormat.format(cal.getTime())+\"/\"+sales.getSalesTypeId()+\"\\n\"));\r\n\t\t\tout.write(String.format(\"%4s %35s\",\"\",\"SUBJECT TO SALES ON APPROVAL\")+\"\\n\");\r\n\t\t\tout.write(String.format(\"%4s %35s\",\"\",\"THANK U VISIT AGAIN & AGAIN!!!\\n\"));\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.flush();\r\n\t\t\tout.close();\r\n\t\t\tgetPrinterService(sales.getSalesTypeId(),currentUser+\"_Invoice.txt\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"InvoicePrint:\"+e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "661df22f86fa8898979708f1826328ee", "score": "0.5181784", "text": "public void downloadFile() {\n\t\tsendMessage(\"DWLD\");\n\t\ttry {\n\t\t\tSystem.out.println(\"Enter name of file to be downloaded: \");\n\t\t\t\n\t\t\t// get filename of file to be downloaded\n\t\t\tuploadScanner = new Scanner(System.in);\n\t\t\tString filename = uploadScanner.next().trim();\n\t\t\t\n\t\t\t// get length of filename\n\t\t\tint filenameLength = filename.length();\n\t\t\t\n\t\t\t// send filename length as a 32 bit int\n\t\t\tout.writeInt(filenameLength);\n\t\t\t\n\t\t\t// send the filename\n\t\t\tout.writeUTF(filename);\n\t\t\t\n\t\t\t// receive size of file if exists, else -1 as an int from server\n\t\t\tint size = in.readInt();\n\t\t\tif (size == -1) {\n\t\t\t\tSystem.out.println(\"File does not exist.\");\n\t\t\t\t// server found that file does not exist\n\t\t\t\n\t\t\t\t// back to listening state\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"File exists with size: \" + size + \" bytes.\");\n\t\t\t\t// file exists, decode size and receive/ write file with same name\n\t\t\t\t\n\t\t\t\t// receive file\n\t\t\t\tbyte[] mybytearray = new byte[size];\n\t\t\t\t\n\t\t\t\tlong startTime = System.nanoTime();\n\n\t\t\t FileOutputStream fos = new FileOutputStream(\"./Client/files/\" + filename);\n\t\t\t \n\t\t\t BufferedOutputStream bos = new BufferedOutputStream(fos);\n\t\t\t System.out.println(\"Receiving file...\");\n\t\t\t InputStream input = client.getInputStream();\n\n\t\t\t\tint bytesRead = input.read(mybytearray, 0, mybytearray.length);\n\t\t\t int current = bytesRead;\n\t\t\t do {\n\t\t \t\tbytesRead = input.read(mybytearray, current, (mybytearray.length - current));\n\t\t \t\tif (bytesRead >= 0) {\n\t\t \t\t\tcurrent += bytesRead;\n\t\t \t\t}\n\t\t\t } while (current < size);\n\t\t\t \n\t\t\t // write file\n\t\t\t System.out.println(\"Writing file...\");\n\t\t\t bos.write(mybytearray, 0, current);\n\t\t\t bos.close();\n\t\t\t \n\t\t\t long endTime = System.nanoTime();\n\t\t\t\tlong duration = (endTime - startTime) / 1000000;\n\t\t\t\tSystem.out.println(\"Received \" + size + \" bytes in \" + duration + \" ms.\");\n\t\t\t\t\n\t\t\t System.out.println(\"Download complete.\\n\");\n\t\t\t\t// back to listening state\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "90d3097ff0830639bf1f8d9f2b3b1a07", "score": "0.5179736", "text": "public void output_midi(String filename) {\n\t\tWrite.midi(p, filename);\n\t}", "title": "" }, { "docid": "67dd48c0409c67e3ba42f174fe457654", "score": "0.5176265", "text": "public void downloadOutputFile(HttpServletRequest request,\r\n HttpServletResponse response) throws Exception\r\n {\r\n User loggedInUser = (User)SecurityContextHolder.getContext()\r\n .getAuthentication().getPrincipal();\r\n // Find the name of the service and the instance that the user is\r\n // interested in. The URL pattern is\r\n // /G-Rex/serviceName/instances/instanceID/outputs/path/to/file\r\n GRexServiceInstance instance = this.getServiceInstance(request.getRequestURI());\r\n if (!instance.canBeReadBy(loggedInUser))\r\n {\r\n // TODO: how do we get this sent to the client, avoiding the servlet\r\n // container's interception?\r\n response.setStatus(HttpServletResponse.SC_FORBIDDEN);\r\n return;\r\n }\r\n \r\n String filePath = this.getFilePath(request.getRequestURI());\r\n File fileToDownload = new File(instance.getWorkingDirectory(), filePath);\r\n \r\n /* Check that the file exists and can be downloaded. The client should\r\n *not try to download this file unless both are true.\r\n The file is ready to be downloaded if it is append-only, if the job\r\n * it is associated with has finished or if output to the file has finished.\r\n */\r\n OutputFile opFile = instance.getMasterJob().getOutputFile(filePath);\r\n if (opFile == null || !opFile.isReadyForDownload())\r\n {\r\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\r\n return;\r\n }\r\n \r\n // Set the content-length in the file header if this is not a stream, \r\n // if the instance has finished or if output to the file has finished\r\n if (!opFile.isAppendOnly() || instance.isFinished() || opFile.isOutputFinished())\r\n {\r\n // Why won't setContentLength() accept a long integer?\r\n response.setContentLength((int)opFile.getLengthBytes());\r\n }\r\n // TODO: set the MIME type correctly (how?)\r\n \r\n // Now output the file to the client. This logic works for both\r\n // \"live\" streams and static files.\r\n log.debug(\"Started reading from \" + opFile.getFile().getName());\r\n InputStream in = null;\r\n OutputStream out = null;\r\n try\r\n {\r\n in = new FileInputStream(opFile.getFile());\r\n out = response.getOutputStream();\r\n byte[] buf = new byte[1024];\r\n int len, maxlen;\r\n boolean done = false;\r\n boolean isOutputFinished = false;\r\n boolean reportedError=false;\r\n do // Loop until the file is finished and the file has been read completely\r\n {\r\n // Make sure our view of the instance is up to date\r\n instance = this.instancesStore.getServiceInstanceById(instance.getId());\r\n //done = instance.isFinished();\r\n \r\n /*\r\n * Check list of finished files\r\n */\r\n //SortedSet<OutputFile> outputFinished = this.jobRunnerFactory.getRunnerForInstance(instance).getOutputFinished();\r\n //isOutputFinished = outputFinished.contains(opFile);\r\n //isOutputFinished = this.jobRunnerFactory.getRunnerForInstance(instance).isOutputFinished(opFile);\r\n isOutputFinished = opFile.isOutputFinished();\r\n if (isOutputFinished ==true)\r\n log.debug(\"Output to \" + opFile.getFile().getName() + \" has finished. Reading to end of file...\");\r\n \r\n done = ( isOutputFinished || instance.isFinished() );\r\n \r\n // Even if the file or the instance have finished we make sure we've read\r\n // the entire file\r\n while ((len = in.read(buf)) >= 0)\r\n {\r\n out.write(buf, 0, len);\r\n out.flush();\r\n }\r\n \r\n // We've now reached EOF, but if the instance is still running,\r\n // we'll pause and carry on\r\n if (!done)\r\n {\r\n try { Thread.sleep(2000); } catch (InterruptedException ie) {}\r\n }\r\n else {\r\n log.debug(\"Finished reading \" + opFile.getFile().getName());\r\n }\r\n } while (!done);\r\n \r\n /* Now delete the file. Deletion should really be initiated by the client */\r\n //log.debug(\"Deleting file \" + opFile.getFile().getName());\r\n if (!opFile.getFile().delete())\r\n log.error(\"Error deleting file \" + opFile.getFile().getName());\r\n }\r\n catch(FileNotFoundException fnfe)\r\n {\r\n // TODO: how do we get this sent to the client, avoiding the servlet\r\n // container's interception?\r\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\r\n }\r\n catch(IOException ioe)\r\n {\r\n // This is most likely to happen if the client disconnects unexpectedly\r\n log.error(\"Error downloading file \" + filePath, ioe);\r\n // TODO: report this to the client?\r\n }\r\n finally\r\n {\r\n try\r\n {\r\n if (in != null) in.close();\r\n if (out != null) out.close();\r\n }\r\n catch (IOException ioe)\r\n {\r\n // Unlikely to happen and we don't really care anyway\r\n }\r\n }\r\n }", "title": "" }, { "docid": "1bb2ac021fe04b7240cb358224ebf49d", "score": "0.5165593", "text": "public static void main(String[] args) throws Exception{\n PrintWriter ps = new PrintWriter( new FileOutputStream(new File(\"file/out\")), true);\n ps.write(\"ABCDCCCC\");\n ps.print(true);\n ps.print(17);\n ps.print(\"will---00000090909\");\n\n// ps.println();// 要配合着 autoFlush:true, 才有用\n// ps.format(\"\");// 要配合着 autoFlush:true, 才有用\n// ps.flush(); // 这个就不用说了...\n// ps.close();\n }", "title": "" }, { "docid": "db1bd402adece1aa84d8689462b63122", "score": "0.51620156", "text": "public void printFourInchOldPurchase(Purchase purchase, CompanyInfoDao companyinfo,LedgerDao ledgerDao, HttpServletRequest request)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tHttpSession session = request.getSession();\t\r\n\t\t\tString currentUser = \"\";\r\n\t\t\tif(session != null){\r\n\t\t\t\tcurrentUser = session.getAttribute(\"username\").toString();\r\n\t\t\t}\t\r\n\t\t\t\t\t\r\n\t\t\tWriter wri = new FileWriter(currentUser+\"_OldPurchaseInvoice.txt\");\r\n\t\t\twri = new BufferedWriter(wri);\r\n\t\t\tPrintWriter out = new PrintWriter(wri);\r\n\t\t\tCompanyInfo Compnayadd = companyinfo.listCompanyInfo().get(0);\r\n\t\t\tout.write(font_bold_on);\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(String.format(\"%28s\", Compnayadd.getCompanyName())+\"\\n\");\r\n\t\t\tout.write(font_bold_off);\r\n\t\t\t/*String CompanyAddress1 = Compnayadd.getCompanyAddress();\r\n\t\t\tString CompanyAddress2 = Compnayadd.getCompanyAddress();\r\n\t\t\t\r\n\t\t\tif(CompanyAddress1.length() > 35){\r\n\t\t\t\tCompanyAddress1 = CompanyAddress1.substring(0,35);\r\n\t\t\t\tout.write(String.format(\"%38s\", Compnayadd.getCompanyAddress().substring(0,CompanyAddress1.lastIndexOf(\" \"))+\"\\n\"));\r\n\t\t\t\t\r\n\t\t\t\twhile(CompanyAddress2.length() < 70){\r\n\t\t\t\t\tCompanyAddress2 = CompanyAddress2 + \" \"; \r\n\t\t\t\t}\r\n\t\t\t\tCompanyAddress2 = CompanyAddress2.substring(CompanyAddress1.lastIndexOf(\" \"),70);\r\n\t\t\t\tout.write(String.format(\"%35s\", CompanyAddress2)+\"\\n\");\r\n\t\t\t}else{\r\n\t\t\t\tout.write(String.format(\"%36s\", Compnayadd.getCompanyAddress())+\"\\n\");\t\r\n\t\t\t}\r\n\t\t\t//out.write(String.format(\"%46s\", Compnayadd.getCompanyAddress())+\"\\n\");\r\n\t\t\tout.write(String.format(\"%20s\", Compnayadd.getCity()));\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(String.format(\"%24s\",\"Ph:\"+Compnayadd.getPhone()));\r\n\t\t\tout.write(\"\\n\");*/\r\n\t\t\tout.write(String.format(\"%59s\",\"-----------------------------------------------------------\"));\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tString customername =purchase.getSupplierName();\r\n\t\t\tDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\t String purchaseDate = formatter.format(purchase.getPurchaseDate());\r\n\t\t\tif(!customername.equals(\"Walk-in\"))\r\n\t\t\t{\r\n\t\t\t\t List<Ledger> customerAdd = ledgerDao.searchLedger(customername);\r\n\t\t\t\t out.write(font_bold_on);\r\n\t\t\t\t if(purchase.getPurchaseType().equalsIgnoreCase(\"Purchase\") && (purchase.getItemCode().equalsIgnoreCase(\"IT100005\") || purchase.getItemCode().equalsIgnoreCase(\"IT100010\") || purchase.getBullionType().equalsIgnoreCase(\"Old Gold Coin\") || purchase.getBullionType().equalsIgnoreCase(\"Old Silver Coin\") || purchase.getBullionType().equalsIgnoreCase(\"Old Gold Pure Bullion\") || purchase.getBullionType().equalsIgnoreCase(\"Old Silver Pure Bullion\")))\r\n\t\t\t\t {\r\n\t\t\t\t\t out.write(String.format(\"%30s\",\"Estimate Old Purchase\")+\"\\n\");\r\n\t\t\t\t\t out.write(String.format(\"%2s\",\"To:\"+customerAdd.get(0).getLedgerName()));\r\n\t\t\t\t\t \r\n\t\t\t\t }else{\r\n\t\t\t\t\t out.write(String.format(\"%30s\",\"Estimate Old Purchase\"));\r\n\t\t\t\t }\r\n\t\t\t\t out.write(font_bold_off);\r\n\t\t\t\t out.write(\"\\n\");\r\n\t\t\t\tif(customerAdd.get(0).getAddress1()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tout.write(String.format(\"%5s\", customerAdd.get(0).getAddress1()));\r\n\t\t\t\t\tout.write(\"\\n\"); \r\n\t\t\t\t}\r\n\t\t\t\tif(customerAdd.get(0).getCity()!=null)\r\n\t\t\t\t{\r\n\t\t\t\tout.write(String.format(\"%4s\",customerAdd.get(0).getCity()));\t\r\n\t\t\t\tout.write(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t \r\n\t\t\t\tif(purchase.getPurchaseType().equalsIgnoreCase(\"Purchase\") && (purchase.getItemCode().equalsIgnoreCase(\"IT100005\") || purchase.getItemCode().equalsIgnoreCase(\"IT100010\") || purchase.getBullionType().equalsIgnoreCase(\"Old Gold Coin\") || purchase.getBullionType().equalsIgnoreCase(\"Old Silver Coin\") || purchase.getBullionType().equalsIgnoreCase(\"Old Gold Pure Bullion\") || purchase.getBullionType().equalsIgnoreCase(\"Old Silver Pure Bullion\")))\r\n\t\t\t\t\t/* out.write(String.format(\"%35s\",\"TO:\"+sales.getWalkIn_Name()));\r\n\t\t\t\t\t out.write(\"\\n\");\r\n\t\t\t\t\t out.write(String.format(\"%35s\", sales.getWalkIn_City()));\r\n\t\t\t\t\t out.write(\"\\n\"); */\r\n\t\t\t\t\t out.write(font_bold_on);\r\n\t\t\t\t\t out.write(String.format(\"%30s\",\"Estimate Old Purchase\")+\"\\n\");\r\n\t\t\t\t\t out.write(font_bold_off);\t\t \r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tBigDecimal lessPercent;\r\n\t\t\tif(purchase.getLess().equalsIgnoreCase(\"per\")){\r\n\t\t\t\tlessPercent = purchase.getLessValue();\r\n\t\t\t}else{\r\n\t\t\t\tlessPercent = purchase.getLessValue2();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tBigDecimal lessGrams;\r\n\t\t\tif(purchase.getLess().equalsIgnoreCase(\"grams\")){\r\n\t\t\t\tlessGrams = purchase.getLessValue();\r\n\t\t\t}else{\r\n\t\t\t\tlessGrams = purchase.getLessValue2();\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tout.write(String.format(\"%15s\",\"RATE : \"+purchase.getRate())+\"\\n\");\r\n\t\t\tout.write(String.format(\"%10s %15s\",\"DATE : \"+purchaseDate,\"TIME :\"+purchase.getCurrentTime())+\"\\n\");\r\n\t\t\tout.write(String.format(\"%60s\",\"-----------------------------------------------------------\\n\"));\r\n\t\t\tout.write(String.format(\"%1s %10s %4s %7s %6s\",\"\",\"JewelName\",\"Wt\",\"Dust\",\"Less \"+lessPercent+\"%\")); \r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(String.format(\"%60s\",\"-----------------------------------------------------------\\n\"));\r\n\t\t\t\r\n\t\t\tString jewelName = purchase.getBullionType();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\tif(jewelName.equalsIgnoreCase(\"Gold Exchange\")){\r\n\t\t\t\tjewelName = \"Old Gold\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(jewelName.equalsIgnoreCase(\"Silver Exchange\")){\r\n\t\t\t\tjewelName = \"Old Silver\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(jewelName.length() > 12){\r\n\t\t\t\tjewelName = jewelName.substring(0, 12);\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\tout.write(String.format(\"%1s %-10s %3.3f %3.3f %2.3f\",\"\",jewelName ,purchase.getGrossWeight(),purchase.getStoneWeight(), lessGrams)+\"\\n\");\r\n\t\t\t\t\t\t\t\r\n\t\t\tout.write(String.format(\"%60s\",\"-----------------------------------------------------------\\n\"));\r\n\t\t\t\t\t\t\r\n\t\t\tout.write(String.format(\"%22s %10s\",\"PURCHASE AMOUNT\",purchase.getPurchaseAmount())+\"\\n\"); \r\n\t\t\tif(purchase.getVatAmount().signum()!=0.00)\r\n\t\t\t{\r\n\t\t\t\tout.write(String.format(\"%22s %10s\",\"VAT Amount\",purchase.getVatAmount())+\"\\n\");\t \r\n\t\t\t}\r\n\t\t\tout.write(String.format(\"%22s %10s\",\"NET AMOUNT\", purchase.getTotalAmount())+\"\\n\");\r\n\t\t\t\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(font_bold_on);\t\t\r\n\t\t\tString ConvertedValue = number.convert(purchase.getTotalAmount())+\" ONLY.\";\r\n\t\t\tString ConvertedLine1 = ConvertedValue;\r\n\t\t\tString ConvertedLine2 = ConvertedValue; \r\n\t\t\t\r\n\t\t\tif(ConvertedLine1.length() > 35){ \r\n\t\t\t\tConvertedLine1 = ConvertedLine1.substring(0,35);\r\n\t\t\t\tout.write(String.format(\"%2s\", ConvertedValue.substring(0,ConvertedLine1.lastIndexOf(\" \"))+\"\\n\"));\r\n\t\t\t\t\r\n\t\t\t\twhile(ConvertedLine2.length() < 70){\r\n\t\t\t\t\tConvertedLine2 = ConvertedLine2 + \" \";\r\n\t\t\t\t}\r\n\t\t\t\tConvertedLine2 = ConvertedLine2.substring(ConvertedLine1.lastIndexOf(\" \"),70);\r\n\t\t\t\tout.write(String.format(\"%2s\", ConvertedLine2)+\"\\n\");\r\n\t\t\t}else{\r\n\t\t\t\tout.write(String.format(\"%2s\", ConvertedValue)+\"\\n\");\t\r\n\t\t\t}\r\n\t\t\tout.write(font_bold_off);\r\n\t\t\tout.write(String.format(\"%9s\",\"---------------------------------------------------------\\n\"));\r\n\t\t\t//out.write(String.format(\"%4s %25s\",\"\",\"*\"+dateFormat.format(cal.getTime())+\"/\"+sales.getSalesTypeId()+\"\\n\"));\t\t\t\r\n\t\t\tout.write(String.format(\"%4s %30s\",\"\",\"THANK U VISIT AGAIN & AGAIN!!!\\n\"));\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.write(\"\\n\");\r\n\t\t\tout.flush();\r\n\t\t\tout.close();\r\n\t\t\tgetPrinterService(purchase.getPurchseInvoice(), currentUser+\"_OldPurchaseInvoice.txt\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"InvoicePrint:\"+e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "88d1cdb12266f70816e7dc026813b1bc", "score": "0.5158954", "text": "public void saveFile(File file)\r\n/* 238: */ {\r\n/* 239: */ try\r\n/* 240: */ {\r\n/* 241:193 */ FileOutputStream os = new FileOutputStream(file);\r\n/* 242:194 */ PrintStream ps = new PrintStream(os);\r\n/* 243: */ \r\n/* 244:196 */ writecomment(ps, \"\", this.filecomment);\r\n/* 245:197 */ savetag(ps, this.contents, null, \"\");\r\n/* 246: */ \r\n/* 247:199 */ ps.close();\r\n/* 248: */ }\r\n/* 249: */ catch (IOException e)\r\n/* 250: */ {\r\n/* 251:201 */ e.printStackTrace();\r\n/* 252: */ }\r\n/* 253: */ }", "title": "" }, { "docid": "9ec40b172a57eb259c49602c1aa45943", "score": "0.5157894", "text": "private static void getFile() {\n try {\n connection.getFile(storFile, storSize, storAppend); // Store File\n output = \"+Saved \" + storFile.getName(); // Write Response\n } catch (IOException e) {\n output = \"-Couldn't save because of an I/O error\";\n }\n // Reset File parameters\n storFile = null;\n storSize = 0;\n storAppend = false;\n }", "title": "" }, { "docid": "6a260dc8ceb909677e304be3eb997b37", "score": "0.51522607", "text": "public void store ()\r\n {\r\n\tString print = \"\";\r\n\t//if file is not found, \"No file found\" will be displayed onto screen\r\n\ttry\r\n\t{\r\n\t PrintWriter pw = new PrintWriter (new FileWriter (\"Customer Data.txt\")); //create new PrintWriter object\r\n\t //adds customer record onto the string variable and writes each line individually onto the file\r\n\t for (int i = 0 ; i <= index ; i++)\r\n\t {\r\n\t\tprint = cr [i].getFirstName () + \"/\" + cr [i].getLastName () + \"/\" + cr [i].getAddress () + \"/\" + cr [i].getTelephone () + \"/\" + cr [i].getAge () + \"/\" + cr [i].getIncome ();\r\n\t\tpw.println (print);\r\n\t }\r\n\r\n\t pw.close (); //closes file\r\n\t}\r\n\tcatch (IOException e)\r\n\t{\r\n\t JOptionPane.showMessageDialog (null, \"No file found\");\r\n\t}\r\n\r\n\tSystem.exit (0); //exit program\r\n }", "title": "" }, { "docid": "dc9a3b98b69b4c8a8161a1199f0cebb9", "score": "0.51508474", "text": "public String generateReceipt(){\n return \"Payment ID: \" + paymentID + \"\\nPayment Date: \" + date.toString()\n + \"\\nPayment Amount: \" + paymentTotal;\n\n }", "title": "" }, { "docid": "1b68bf1b883e420d47dbdae7bc39ef9f", "score": "0.515069", "text": "private void exportFile(int size) {\n\n //Create JFileChooser Object\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setApproveButtonText(\"Save\");\n //set mode to view files and directories\n fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n //set USER DESKTOP as the opening directory\n fileChooser.setCurrentDirectory(new File(System.getProperty(\"user.home\") + \"\\\\Desktop\"));\n int returnValue = fileChooser.showOpenDialog(null); //get returned value\n //if returned value equals APPROVE_OPTION\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n File selectedFile = fileChooser.getSelectedFile(); //get selected file\n String filePath = selectedFile.getAbsolutePath(); //get selected path\n\n //check if file already exist\n File xmlFile = new File(filePath + \".v\");\n if (xmlFile.exists()) {\n int response = JOptionPane.showConfirmDialog(null, //\n \"File already exists, Do you want to replace it ?\", //\n \"Confirm\", JOptionPane.YES_NO_OPTION, //\n JOptionPane.QUESTION_MESSAGE);\n if (response != JOptionPane.YES_OPTION) {\n return;\n }\n }\n\n try {\n //write output verilog file\n OmegaScriptBuilder builder = new OmegaScriptBuilder(size);\n builder.generateScript();\n\n PrintWriter out = new PrintWriter(filePath + \".v\");\n out.println(builder.getScript());\n out.close();\n } catch (FileNotFoundException ex) {\n JOptionPane.showMessageDialog(null, \"Unkown Error Occured, Please try again later\");\n }\n }\n }", "title": "" }, { "docid": "d3e3ce524ee1beba787df68a68cf892d", "score": "0.5150216", "text": "public String formatToFile() {\n return String.format(\"%s;%s;%d;%d;%s;%s;%c\", super.getIsbn(), super.getCallNumber(), super.getAvailable(),\n super.getTotal(), super.getTitle(), super.getAuthors(), super.getFormatToSave());\n }", "title": "" }, { "docid": "5d94945ecfcdcc892b0d77e91763c1e9", "score": "0.5149244", "text": "public void toFile(File file){\n String contents;\n\n if(file.exists()){\n try{\n file.delete();\n file.createNewFile();\n }\n catch(IOException ex){\n ex.printStackTrace();\n }\n }\n \n contents = toString();\n \n try(FileWriter fwriter = new FileWriter(file)){\n fwriter.write(contents);\n }\n catch(IOException ex){\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "06e7ee6b276148b8b0c2d1a71eaaab7e", "score": "0.51360494", "text": "public static void updatesFile(Object args) throws IOException{\n\t\tDMComponent dm = (DMComponent) args;\n\t\tFile textFile = new File(\"src/reports.txt\");\n\t\tBufferedWriter out = new BufferedWriter(new FileWriter(textFile));\n\t\ttry {\n\t\t\tout.write(dm.toFile());\n\t\t} finally {\n\t\t out.close();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "20b3f3d17654d02bbef87715763c9aa7", "score": "0.51337194", "text": "public static void writeToOrderFile(ArrayList<Drug> medicinesInOrder,ArrayList<Integer> quantityOfMedicinesInOrder) {\r\n\t\t\r\n\t\t/* Informing the two list of the class with the daily orders information which are being saved in a file. */\r\n\t\t\r\n\t\tPrescriptionOrdersTemporalBase.readFromOrderFile();\r\n\t\t\r\n\t\tString fileName = \"History For Prescription.txt\";\r\n\t\t\r\n\t\t/* Adding medicines from the an order in the daily orders list. \r\n\t\t * If a medicine exists in the daily orders list the method is changing the bought quantity of this medicine. */\r\n\t\t\r\n\t\tfor(int i=0;i<medicinesInOrder.size();i++) {\r\n\t\t\t\r\n\t\t\tPrescriptionOrdersTemporalBase.addMedicineInTheListOfMedicinesFromAllTheDailyOrders(medicinesInOrder.get(i), quantityOfMedicinesInOrder.get(i));\r\n\t\t}\t\t\r\n\t\t\r\n\t\t/* Informing the file which saves the daily orders information with the updates of the daily orders list. */\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t String textToBeWritten = \"\";\r\n\t\t \r\n\t\t textToBeWritten = date + \"\\n\\n\";\r\n\t\t for(int i = 0;i<medicines.size();i++) \r\n\t\t \ttextToBeWritten += (medicines.get(i).getId() + \" \" + medicines.get(i).getName() + \r\n\t\t \t\t\t\t\t\t\" \" + String.valueOf(quantityOfMedicines.get(i)) + \"\\n\");\r\n\t\t \r\n\t\t FileWriter fw = new FileWriter(fileName,false); //the true will append the new data\r\n\t\t fw.write(textToBeWritten);\t\t\t\t\t\t //appends the string to the file\r\n\t\t fw.close();\r\n\t\t \r\n\t\t}\r\n\t\t\r\n\t\tcatch(IOException ioe)\r\n\t\t{\r\n\t\t System.err.println(\"IOException: \" + ioe.getMessage());\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8937e458d78f218b7807a4b12090f589", "score": "0.5130527", "text": "@Description(\"Path of the file to write to.\")\n @Validation.Required\n String getOutput();", "title": "" }, { "docid": "180a6d88c463b826b6a14348aadaec77", "score": "0.5126954", "text": "public void saveOrders(String filename) {\n try {\n FileWriter fw = new FileWriter(filename);\n\n SimpleDateFormat dFormatter = new SimpleDateFormat(\"MM/dd/yy\");\n\n fw.write(\"CustomerID\\tLastName\\tAddress\\tCity\\tState\\tZipCode\\t\");\n fw.write(\"OrderID\\tPaid?\\tOrderDate\\tPickupDate\\tBakeryItemID\\t\");\n fw.write(\"BakeryItemName\\tBakeryItemCategory\\tQuantity\\tPrice\\t\");\n fw.write(\"Total\\tDiscountUsedOnOrder\\tTotalDue\\t\");\n fw.write(\"AvailableDiscout\\tCurrentLoyalty\\n\");\n\n for (Order o : getOrderList()) {\n\n Integer customerID = o.getCustomerID();\n Customer customer = getCustomerRoll().getCustomer(customerID);\n\n fw.write(customerID.toString());\n fw.write(\"\\t\");\n fw.write(customer.getLastName());\n fw.write(\"\\t\");\n fw.write(customer.getAddress());\n fw.write(\"\\t\");\n fw.write(customer.getCity());\n fw.write(\"\\t\");\n fw.write(customer.getState());\n fw.write(\"\\t\");\n fw.write(customer.getZipCode().toString());\n fw.write(\"\\t\");\n fw.write(o.getOrderID().toString());\n fw.write(\"\\t\");\n fw.write(o.paid() ? \"Yes\" : \"No\");\n fw.write(\"\\t\");\n fw.write(dFormatter.format(o.getOrderDate()));\n fw.write(\"\\t\");\n fw.write(dFormatter.format(o.getPickUpDate()));\n fw.write(\"\\t\");\n fw.write(o.getItem().getItemID().toString());\n fw.write(\"\\t\");\n fw.write(o.getItem().getItemName());\n fw.write(\"\\t\");\n fw.write(o.getItem().getCategory());\n fw.write(\"\\t\");\n fw.write(o.getQuantity().toString());\n fw.write(\"\\t\");\n fw.write(Double.toString(o.getItem().getPrice()));\n fw.write(\"\\t\");\n fw.write(Double.toString(o.getTotal()));\n fw.write(\"\\t\");\n fw.write(Double.toString(o.getDiscountUsedOnOrder()));\n fw.write(\"\\t\");\n fw.write(Double.toString(o.getTotalDue()));\n fw.write(\"\\t\");\n fw.write(Double.toString(o.getAvailableDiscount()));\n fw.write(\"\\t\");\n fw.write(Double.toString(o.getLoyaltyAtTimeOfOrder()));\n fw.write(\"\\n\");\n }\n fw.flush();\n fw.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n System.out.print(\"[ERROR] Coudl not save Orders\");\n }\n }", "title": "" }, { "docid": "426f436311ede0455d63152fed6bdc6a", "score": "0.5124073", "text": "public void saveToFile(File file)\n {\n FileWriter output;\n StringBuilder buffer = new StringBuilder();\n Messages messages = installData.getMessages();\n String header = messages.get(\"ShortcutPanel.textFile.header\");\n\n String newline = System.getProperty(\"line.separator\", \"\\n\");\n\n try\n {\n output = new FileWriter(file);\n }\n catch (Throwable exception)\n {\n return;\n }\n\n /*\n Break the header down into multiple lines based on '\\n' line breaks.\n */\n int nextIndex;\n int currentIndex = 0;\n do\n {\n nextIndex = header.indexOf(\"\\\\n\", currentIndex);\n\n if (nextIndex > -1)\n {\n buffer.append(header.substring(currentIndex, nextIndex));\n buffer.append(newline);\n currentIndex = nextIndex + 2;\n }\n else\n {\n buffer.append(header.substring(currentIndex, header.length()));\n buffer.append(newline);\n }\n }\n while (nextIndex > -1);\n\n buffer.append(SEPARATOR_LINE);\n buffer.append(newline);\n buffer.append(newline);\n\n for (ShortcutData data : shortcuts)\n {\n buffer.append(messages.get(\"ShortcutPanel.textFile.name\"));\n buffer.append(data.name);\n buffer.append(newline);\n\n buffer.append(messages.get(\"ShortcutPanel.textFile.location\"));\n\n switch (data.type)\n {\n case Shortcut.DESKTOP:\n {\n buffer.append(messages.get(\"ShortcutPanel.location.desktop\"));\n break;\n }\n\n case Shortcut.APPLICATIONS:\n {\n buffer.append(messages.get(\"ShortcutPanel.location.applications\"));\n break;\n }\n\n case Shortcut.START_MENU:\n {\n buffer.append(messages.get(\"ShortcutPanel.location.startMenu\"));\n break;\n }\n\n case Shortcut.START_UP:\n {\n buffer.append(messages.get(\"ShortcutPanel.location.startup\"));\n break;\n }\n }\n\n buffer.append(newline);\n\n buffer.append(messages.get(\"ShortcutPanel.textFile.description\"));\n buffer.append(data.description);\n buffer.append(newline);\n\n buffer.append(messages.get(\"ShortcutPanel.textFile.target\"));\n buffer.append(data.target);\n buffer.append(newline);\n\n buffer.append(messages.get(\"ShortcutPanel.textFile.command\"));\n buffer.append(data.commandLine);\n buffer.append(newline);\n\n buffer.append(messages.get(\"ShortcutPanel.textFile.iconName\"));\n buffer.append(data.iconFile);\n buffer.append(newline);\n\n buffer.append(messages.get(\"ShortcutPanel.textFile.iconIndex\"));\n buffer.append(data.iconIndex);\n buffer.append(newline);\n\n buffer.append(messages.get(\"ShortcutPanel.textFile.work\"));\n buffer.append(data.workingDirectory);\n buffer.append(newline);\n\n buffer.append(newline);\n buffer.append(SEPARATOR_LINE);\n buffer.append(newline);\n buffer.append(newline);\n }\n\n try\n {\n output.write(buffer.toString());\n }\n catch (Throwable ignored)\n {\n }\n finally\n {\n try\n {\n output.flush();\n output.close();\n files.add(file.getPath());\n }\n catch (Throwable exception)\n {\n // not really anything I can do here, maybe should show a dialog that\n // tells the user that installDataGUI might not have been saved completely!?\n }\n }\n }", "title": "" }, { "docid": "d3fe86c34a6c7e863d75364b9cac54f6", "score": "0.5122721", "text": "protected void toFile(java.io.File f) throws java.io.IOException{\n return; //TODO codavaj!!\n }", "title": "" }, { "docid": "ef5f90c335055381c9882a58cb5ac216", "score": "0.5112557", "text": "private void writeOut() throws IOException {\r\n\t\t// Create a string buffer\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\r\n// for (int i = 0; i < save_res.size(); i++) {\r\n// buffer.append(i);\r\n// buffer.append(\" \");\r\n// buffer.append(save_res.get(i).get(i+1));\r\n// if(i != save_res.size() -1){\r\n// buffer.append(System.lineSeparator());\r\n// }\r\n// }\r\n\r\n\r\n\t\t// append the prefix\r\n\t\tfor (int i = 0; i < huiSets.size(); i++) {\r\n\t\t\tbuffer.append(huiSets.get(i).itemset);\r\n\t\t\t// append the utility value\r\n\t\t\tbuffer.append(\"#UTIL: \");\r\n\t\t\tbuffer.append(huiSets.get(i).fitness);\r\n\t\t\tif(i != huiSets.size() -1){\r\n\t\t\t\tbuffer.append(System.lineSeparator());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// write to file\r\n\t\twriter.write(buffer.toString());\r\n\t}", "title": "" }, { "docid": "2994a87d313614c0f6f49127536add59", "score": "0.51119095", "text": "public static void writefile(String anything) throws FileNotFoundException {\n\t\t Scanner add= new Scanner(System.in); \n\t \t\n\t\t String addthings = \"\"; // for all the items\n\t\t String things=\"\";//for the new items\n\t\t\twhile (!things.equals(\"exit\")) {\n System.out.println(\"Type what you want\"\n\t\t\t\t\t + \"\\nType 'exit' to exit\"); \n\t\t things=add.nextLine().trim(); //allow user to write what they want to add with price\n\t\t if(things.equalsIgnoreCase(\"exit\")){\n\t\t \t break;\n\t\t \t }\n\t\t addthings+=\"\\n\"+things; // print line first coz already has previous line, in case print an extra line\n\t\t\t}\n\t\t // System.out.println(addthings);\n\t\t \n//\t\t Scanner readLine = new Scanner(new File(\"log.txt\")); //read file\n//\t\t\tString currentLine=\"\";\n//\t\t\twhile (readLine.hasNextLine()){\n//\t\t\t\tcurrentLine += readLine.nextLine();\n//\t\t\t\tif (readLine.hasNextLine())\n//\t\t\t\t\tcurrentLine += \"\\n\";\n//\t\t\t}\n//\t\t\t \n//\t\t\treadLine.close();\n\t\t\t\n\t\t\tPrintStream output = new PrintStream(new File(\"log.txt\")); \n\t\t\toutput.print(addthings); //add items to the file\n\t\t\toutput.close();// to print out into the files\t\t} \n\t}", "title": "" }, { "docid": "f63f46f52f85a436203be0c68b239ee3", "score": "0.5109937", "text": "@Description(\"Path of the file to write to\")\n @Required\n String getOutput();", "title": "" } ]
b6ae63f67698b8ba486716d5d9ec553e
Returns the frequencies of all characters in s.
[ { "docid": "f26cfe270f9dab893709bac3b912a4e9", "score": "0.8109498", "text": "public static int[] frequency(String s) {\n\t\tint[] freq = new int[codex_size];\n\t\tfor (char c: s.toCharArray()) {\n\t\t\tfreq[c]++;\n\t\t}\n\t\treturn freq;\n\t}", "title": "" } ]
[ { "docid": "d0ae9b87150c4c323c53a2f2a6f43c09", "score": "0.7567473", "text": "public int frequency(String s) {\n if(s == null) return 0;\n return frequency(root, s.toCharArray(), 0);\n }", "title": "" }, { "docid": "529833afd254afa9d43cdf1cc04cf13c", "score": "0.7541992", "text": "public static String frequencySort(String s) {\n\t\tint[] chars = new int[256];\n\t\tfor(char c:s.toCharArray()){\n\t\t\tchars[c]++;\n\t\t}\n\t\tHashMap<Integer, List<Character>> charsmap = new HashMap<>();\n\t\tfor(int i = 0;i<chars.length; i++){\n\t\t\tif(chars[i]>0){\n\t\t\t\tcharsmap.putIfAbsent(chars[i], new ArrayList<Character>());\n\t\t\t\tcharsmap.get(chars[i]).add((char)i);\n\t\t\t}\n\t\t}\n\t\t//now create stringbuilder to create the string with all chars\n\t\tStringBuilder sb = new StringBuilder();\n\t\t//iterate through end to have the largest count at the beginning of result string\n\t\tfor(int i=s.length(); i>0;i--){\n\t\t\tif(charsmap.containsKey(i)){\n\t\t\t\tfor(char c:charsmap.get(i)){\n\t\t\t\t\t//append all the characters with their count\n\t\t\t\t\tint count = 0;\n\t\t\t\t\twhile(count<i){\n\t\t\t\t\t\tsb.append(c);\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "622b80198f87c05a6ea8ee5cc3e9f93d", "score": "0.7072073", "text": "public static int[] lettersFrequency(String c) {\n int[] t = new int[26];\n Arrays.fill(t, 0);\n c = c.toLowerCase();\n for(int i = 0; i < c.length(); i++) {\n char k = c.charAt(i);\n t[Shift.getPos(k)]++;\n }\n return t;\n }", "title": "" }, { "docid": "8ad729f43077aa57c69ee4a815a588bc", "score": "0.6989209", "text": "public static void freqOfEachChar (String str) {\n String checked = \"\";\n for(int i=0; i < str.length(); i++) {\n if(!checked.contains(\"\" + str.charAt(i))) {\n int freq = freqOfChar(str, str.charAt(i));\n System.out.println(str.charAt(i) + \" - \" + freq);\n checked += str.charAt(i) + \" \";\n }\n }\n\n }", "title": "" }, { "docid": "fa227094cf0878a53acb9400447b9a41", "score": "0.6905324", "text": "public static String FrequencyOfChars(String str){\n String NonDup = Library.RemoveDuplicates(str);\n String result = \"\"; // this will contain the frequency of chars\n for (int i = 0 ; i < NonDup.length(); i++){\n String ch = \"\"+NonDup.charAt(i);\n int num = Library.Frequency(str,ch);\n result += ch +num;\n }\n return result;\n }", "title": "" }, { "docid": "eda26ddded31a9248dcc976568a7f267", "score": "0.6873422", "text": "static void printCharFrequencies(String str) {\n\n int [] count = new int[26]; // All values are zeros.\n\n //Increment the value of the array element based on char.\n for(int i = 0; i < str.length(); i++ ) {\n //First Char : g ASCII number is 103 - 97 () : count[6] increased to 1\n count[str.charAt(i)-'a']++;\n }\n\n for(int i = 0; i < count.length; i++) {\n if(count[i] > 0)\n //Print the char and frequency if char frequency more than 0\n System.out.println(\" \"+(char)(i+'a')+\" --> \"+count[i]);\n }\n\n }", "title": "" }, { "docid": "e80093eb17a0fbc502570e86ca30785d", "score": "0.6481063", "text": "private Map<Character, Integer> getCharacterFrequencies(String text) {\n\n // Ignore case. We need only deal with uppercase letters now, after this line.\n text = text.toUpperCase();\n\n // TODO Initialize the frequencies map to an appropriate concrete instance\n Map<Character, Integer> frequencies = new TreeMap<>();\n\n\n // Loop through all characters in the given string\n for (char c : text.toCharArray()) {\n\n // If c is alphanumeric...\n if ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z')) {\n\n // TODO If the map already contains c as a key, increment its value by 1.\n // TODO Otherwise, add it as a new key with the initial value of 1.\n if (frequencies.containsKey(c)) {\n frequencies.put(c, frequencies.get(c) + 1);\n } else {\n frequencies.put(c, 1);\n }\n }\n\n // TODO BONUS: Add any missing keys to the map\n // (i.e. loop through all characters from A-Z and 0-9. If that character doesn't appear in the text,\n // add it as a key here with frequency 0).\n for (char x = '0'; x <= '9'; x++) {\n if (!frequencies.containsKey(x))\n frequencies.put(x, 0);\n }\n for (char x = 'A'; x <= 'Z'; x++) {\n if (!frequencies.containsKey(x))\n frequencies.put(x, 0);\n\n }\n\n } return frequencies;\n }", "title": "" }, { "docid": "13094f414d708457f0dabc3a1c315dc1", "score": "0.64577144", "text": "private int getFrequency(double[] freq, String data) {\r\n\t\tint numOfChars = 0 ;\r\n\t\tfor(int i = 0; i < data.length(); i++) {\r\n\t\t\tif(freq[data.charAt(i)-48] == 0) {\r\n\t\t\t\tnumOfChars++ ;\r\n\t\t\t}\r\n\t\t\tfreq[data.charAt(i)-48] ++ ;\r\n\t\t}\r\n\t\treturn numOfChars;\r\n\t}", "title": "" }, { "docid": "fcbbe60a19aeb5bcf032538053367539", "score": "0.6438613", "text": "public int[] count(String n) {\n\t\tint[] count_array = new int[256];\n\t\tSystem.out.println(\"\" + Arrays.toString(count_array));\n\t\tchar[] char_array = n.toLowerCase().toCharArray();\n\t\t\n\t\t// count the appearance of each character.\n\t\tfor(char c : char_array) {\n\t\t\tcount_array[c]++;\n\t\t}\n\t\t\n\t\treturn count_array;\n\t}", "title": "" }, { "docid": "93d8b135d1b45ee26cfdbabe52f6b701", "score": "0.64343727", "text": "public static HashMap<Character, Integer> getCharFrequencyTable (\n String message) {\n HashMap<Character, Integer> charFrequencyTable = new HashMap<\n Character, Integer>();\n \n for (char c : message.toCharArray()) {\n if (charFrequencyTable.containsKey(c)) {\n int cFrequency = charFrequencyTable.get(c);\n charFrequencyTable.put(c, cFrequency + 1);\n }\n else {\n charFrequencyTable.put(c, 1);\n }\n }\n \n return charFrequencyTable;\n }", "title": "" }, { "docid": "9e5eb9fe4425b9f4ed4f41454bceb95e", "score": "0.63832486", "text": "public HashMap count_frequence(){\n\t\tHashMap<Character, Double> map = new HashMap<Character, Double>();\n\t\tString sb1 = this.sb.toString().toUpperCase().trim();\n\t\tint total = 0;\n\t\tfor(char c: sb1.toCharArray()){\n\t\t\tif(c != ' ' && c != ' ' && (c >= 'A' && c <= 'Z')){\n\t\t\t\ttotal ++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tfor(char c: sb1.toCharArray()){\n\t\t\tint counter = 0;\n\t\t\t//test if the char was already added into the map\n\t\t\t//public boolean map.containsKey(valueOfAKey)\n\t\t\tif(c != ' ' && c != ' ' && (c >= 'A' && c <= 'Z')){\n\t\t\t\tif(!map.containsKey(c)){\n\t\t\t\t\t//System.out.println(c); \n\t\t\t\t\tfor(char ch : sb1.toCharArray()){\n\t\t\t\t\t\tif(ch == c){\n\t\t\t\t\t\t\tcounter ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(counter);\n\t\t\t\t\tmap.put(c, (double)counter*100/total);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn map;\n\t}", "title": "" }, { "docid": "f460bac35c17cd8b9078631749664518", "score": "0.6330627", "text": "public int getFrequency(char c) {\n return -1; // TODO implement\n }", "title": "" }, { "docid": "49a5dcbf5e51f62f349b702e2b502c38", "score": "0.6328573", "text": "public int getFrequency(String word);", "title": "" }, { "docid": "9418745b62e210e5c4ec89ae6d8f68b1", "score": "0.6319668", "text": "public static Character mostFrequentChar(String s) {\n\t\tMap<Character, Integer> freqMap = new HashMap<>();\n\t\ts.chars().forEach(ch -> {\n\t\t\tfreqMap.merge((char)ch, 1, Integer::sum);\n\t\t});\n\t\treturn freqMap.entrySet().stream().max(Entry.comparingByValue()).get().getKey();\n\t}", "title": "" }, { "docid": "622ee3ca7c5df0d0ce7cd44ad66f67d7", "score": "0.6262682", "text": "private Map<Character, Integer> computeFrequencyMap(String text) {\n\t\t\n\t\tchar[] string = text.toCharArray();\n\t\tSet<Character> alphabet = new HashSet<Character>();\n\t\tMap<Character, Integer> map = new HashMap<Character,Integer>();\n\t\t\n\t\tfor (char c : string){\n\t\t\t\n\t\t\tif (!alphabet.isEmpty()){\n\t\t\t\tif (alphabet.contains(c)){\n\t\t\t\t\tmap.put(c, map.get(c)+1); //update the frequency integer, by 1, for character c in the map.\n\t\t\t\t} else { //character is not in the set.\n\t\t\t\t\talphabet.add(c);\n\t\t\t\t\tmap.put(c, 1);\n\t\t\t\t}\n\t\t\t} else { //set is empty, add character.\n\t\t\t\talphabet.add(c);\n\t\t\t\tmap.put(c, 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*for (char c : map.keySet()){\n\t\t\tSystem.out.println(\"Character: \"+c+\"-\"+map.get(c));\n\t\t}*/\n\t\t\n\t\treturn map;\n\t}", "title": "" }, { "docid": "052e325a57edad340a3e8ecbcdbd8e48", "score": "0.62368035", "text": "public static void count(String str) {\n\t\tMap<Character, Integer> charCountMap = new HashMap<Character, Integer>();\n\t\t\n\t\t// Convert given string to char array\n\t\tchar[] charArray = str.toUpperCase().toCharArray();\n\t\t\n\t\t// checking each char in charArray\n\t\tfor(char c: charArray) {\n\t\t\tif (charCountMap.containsKey(c)) {\n\t\t\t\tcharCountMap.put(c, charCountMap.get(c) + 1);\n\t\t\t} else {\n\t\t\t\tcharCountMap.put(c, 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (char c: charCountMap.keySet()) {\n\t\t\tif (charCountMap.get(c) > 1) {\n\t\t\t\tSystem.out.println(c + \" : \" + charCountMap.get(c));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//System.out.println(charCountMap);\n\t\t\n\t}", "title": "" }, { "docid": "3cfd3159fbf4ec139975e4d824caf690", "score": "0.62281567", "text": "private static int score(String s) {\n int score = 0;\n for (char c : s.toCharArray()) {\n score += c - 64;\n }\n return score;\n }", "title": "" }, { "docid": "94bb60ad872a7687935d89c08a9d917a", "score": "0.6205547", "text": "private static int[] buildCharFrequencyTable(String phrase){\n int[] table = new int[26];\n for (char c : phrase.toCharArray()){\n int x = getCharNumber(c);\n if (x != -1){\n table[x]++;\n }\n }\n return table;\n }", "title": "" }, { "docid": "74e86fdb85712a899147e148ec116ba8", "score": "0.61370766", "text": "static String frequencyPrint(String s) {\n\n HashMap<String, Integer> map = new HashMap<String, Integer>();\n\n\n String[] words1 = s.split(\"\\\\s+\");\n for (int i = 0; i < words1.length; i++){\n String word = words1[i];\n if (!map.containsKey(word)){\n map.put(word, 1);\n }\n else{\n map.put(word, map.get(word) + 1);\n }\n\n }\n\n //sort through map by value\n //QUESTION: WHAT IS THE BIG O OF THAT? O(NlogN)\n Map<String, Integer> sortedMap =\n map.entrySet().stream()\n .sorted((k1, k2) -> -k1.getValue().compareTo(k2.getValue()))\n .collect(Collectors.toMap(Entry::getKey, Entry::getValue,\n (e1, e2) -> e1, LinkedHashMap::new));\n\n\n //put everything from the sorted map and add it to result\n\n String result = \"\";\n for (String key: sortedMap.keySet()) {\n result = String.join(\"\", Collections.nCopies(map.get(key), key+\" \"))+result;\n }\n\n return result;\n }", "title": "" }, { "docid": "c8d8f5ca8afec7236b01b8d7563db489", "score": "0.6090682", "text": "private static String solution_HashMap(String s) {\n StringBuilder sb= new StringBuilder();\n Map<Character,Integer> charCountMap=new HashMap<>();\n\n for(int i=0;i<s.length();i++)\n {\n char ch=s.charAt(i);\n charCountMap.put(ch,charCountMap.getOrDefault(ch,0)+1);\n }\n charCountMap.entrySet().stream()\n .sorted(Map.Entry.<Character,Integer> comparingByValue().reversed())\n .forEach(record ->{\n Character key =record.getKey();\n int value=record.getValue();\n\n for(int i=0;i<value;i++)\n {\n sb.append(key);\n }\n });\n return sb.toString();\n }", "title": "" }, { "docid": "74b1e99150f0b70b405b62c4f90b172d", "score": "0.60842556", "text": "private static int encodeLength(String s)\n {\n char[] a = s.toCharArray();\n\n char lastChar = a[0];\n int count = 1, size = 0;\n for(int i = 1; i < a.length; ++i)\n {\n if(a[i] == lastChar)\n {\n count++;\n }\n else\n {\n size += 1 + String.valueOf(count).length();\n count = 1;\n lastChar = a[i];\n }\n }\n size += 1 + String.valueOf(count).length();\n return size;\n }", "title": "" }, { "docid": "600af9e7d31087407947ce778d981ef1", "score": "0.60677624", "text": "public static void countOccurence()\n\t{\n\t\tString str=\"Hello World\";\n\t\tHashMap<Character, Integer> mapcount=new HashMap<>();\n\t\t\n\t\tfor(Character c:str.toCharArray())\n\t\t{\n\t\t\tif(mapcount.containsKey(c))\n\t\t\t{\n\t\t\t\tmapcount.put(c, mapcount.get(c)+1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmapcount.put(c,1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(mapcount);\n\t}", "title": "" }, { "docid": "f997448aaa95e14da89a879692a833d6", "score": "0.6036546", "text": "public static int[] findNumsOfRepetitionsv2(String s, char[] c) {\n int[] sums = new int[c.length]; // 1\n HashMap<Character, Integer> map = new HashMap<>(); // 1\n for (int i = 0; i < s.length(); i++) { // 1, n+1, n\n if (!map.containsKey(s.charAt(i))) { // n\n map.put(s.charAt(i), 1); // n\n } else {\n int sum = map.get(s.charAt(i));\n map.put(s.charAt(i), sum+1);\n }\n }\n for (int j = 0; j < c.length; j++) {\n int sum;\n if(!map.containsKey(c[j])) {\n sums[j] = 0;\n } else {\n sums[j] = map.get(c[j]);\n }\n }\n return sums;\n }", "title": "" }, { "docid": "449ed7a2dbfec1485d9b5fc5976fbe3b", "score": "0.60285646", "text": "public void getFreqencyHashMap(){\n\t\tHashMap<Character, Double> map = new HashMap<Character, Double>();\n\t\tmap = this.count_frequence();\n\t\tSystem.out.println(\"----------------------------------------\");\n\t\tSystem.out.println(\"Table de frequence:\");\n\t\tfor (char ch: map.keySet()){\n\n String key = Character.toString(ch);\n String value = map.get(ch).toString(); \n System.out.println(key + \" \" + value + \" %\"); \n\t\t} \n\t}", "title": "" }, { "docid": "98530a424ad66b25c28e2e2846be24a8", "score": "0.60182923", "text": "public static int frequency(String str, char ch) {\n char[] arr = str.toCharArray();\n\n int count = 0;\n for (char each : arr) {\n if (each == ch) {\n count++;\n }\n }\n return count;\n }", "title": "" }, { "docid": "12e8808ba199ba3bb165535fbbb0a908", "score": "0.6000911", "text": "public static int getNumberOfConsonants(String s) {\r\n\t\treturn getNumberOfLetters(s) - getNumberOfVowels(s);\r\n\t}", "title": "" }, { "docid": "a74a571cda7fc61d87397fe06a7db5b7", "score": "0.5991583", "text": "public void countLetterFrequency(String text){\n\t\tfor(char c : text.toCharArray()){\n\t\t\tString s = String.valueOf(c).toLowerCase();\n\t\t\tif(letterMap.containsKey(s)){\t//Have already set all the keys\n\t\t\t\tletterMap.get(s).incrementFreq();\n\t\t\t\tnrOfLetters++;\t//Only interested in words\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3d5a35e0cce336cb32804d8522661323", "score": "0.59869903", "text": "public int[] getCharCount(String a) {\n int rst[] = new int[128];\n\n for (int i=0; i<a.length(); i++) {\n int c = a.charAt(i);\n rst[c]++;\n }\n\n return rst;\n }", "title": "" }, { "docid": "b5e7486cf69892700803587bb8dfb260", "score": "0.59831053", "text": "public int[] returnTotalFrequency(){\r\n return totalCharFrequency;\r\n }", "title": "" }, { "docid": "5770a67ec9a354c3738125982c5e37ce", "score": "0.59762335", "text": "public LetterFrequencies()\n\t{\n\t\t//initialize alphabet array with letters\n\t\talphabet = new char [SIZE];\n\t\tfor (int i = 0; i < SIZE; i++)\n\t\t\talphabet[i] = (char)('A' + i);\n\t\t\n\t\t//create alphabetCounts array and initialize to 0's\n\t\talphabetCounts = new int[alphabet.length];\n\t\tfor(int j = 0; j<alphabet.length; j++)\n\t\t\talphabetCounts[j] = 0;\n\t\t\n\t\tfreq = \"\";//initialize string to empty\n\t\t\n\t\ttotChars = 0;//initialize to 0\n\t}", "title": "" }, { "docid": "2d7c1391bfff627fe4385dfbbf6a7f70", "score": "0.59319955", "text": "public static void letterCount(String[] s, int[] count) {\n\t\t// Implement this function\n\n\t\tint counter;\n\t\t\n\t\tif (s == null) {\t\t\t\t//if the string is initially null\n\n\t\t} else {\n\t\t\tfor (int j = 0; j < s.length; j++) { \t// search the length of the\n\t\t\t\t\t\t\t\t\t\t\t\t\t// array, outer most loop\n\t\t\t\t\t\t\t\t\n\t\t\t\tif (s[j] == null) { \t\t\t\t// for the strings with null\n\n\t\t\t\t} else {\n\n\t\t\t\t\tfor (int k = 0; k < s[j].length(); k++) {\t\t// searches through the letters of each word at each index\n\t\t\t\t\t\tcounter = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// create another variable to search for the Upper case version of each character\n\t\t\t\t\t\tfor (char character = 'a', charUpper = 'A'; character <= 'z'; character++, charUpper++, counter++) { // if characters match\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// increment the counter associated with the letters (a-z)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (s[j].charAt(k) == character || s[j].charAt(k) == charUpper) {\n\t\t\t\t\t\t\t\tcount[counter] += 1;\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2cc903e2e7430b5bbf18ca0ffbd864bb", "score": "0.5925873", "text": "public int getFrequency(String word, Passage p){return 0;}", "title": "" }, { "docid": "6269ad93c86cd13d85660cbc4b619ded", "score": "0.5915595", "text": "public static void wordCount(String[] ss) {\n Tokenizer t = new Tokenizer(ss[2]);\n ArrayList<Character> count = new ArrayList<>(0);\n for (int i = 0; i < ss[2].length(); i++) {\n if (ss[2].charAt(i) == ('/')) {\n count.add(ss[2].charAt(i));\n }\n }\n System.out.println(t.allTokens('/'));\n System.out.println(\"There are \" + (count.size() + 1 )+ \" words in your text\");\n }", "title": "" }, { "docid": "966a39e51f6abc3551381cfdea36226e", "score": "0.5915417", "text": "public int[] countOccurrences(String message){\n String alph = \"abcdefghijklmnopqrstuvwxyz\";\n int[] counts = new int[26];\n for (int k=0; k<message.length(); k++){\n char ch = Character.toLowerCase(message.charAt(k));\n int dex = alph.indexOf(ch);\n if (dex != -1){\n counts[dex] += 1;\n } \n }\n return counts;\n }", "title": "" }, { "docid": "01e05e7511fc97c453e11142ba4f1670", "score": "0.58950174", "text": "public int numDecodings(String s)\n {\n return tabulation(s);\n }", "title": "" }, { "docid": "ccf29bcef093712e3edf2a5e70683bae", "score": "0.5844638", "text": "public int firstUniqChar(String s) {\n \n int[] freq = new int[26];\n for (int i =0; i <s.length();i++){\n freq[s.charAt(i)- 'a']++;\n }\n for (int i =0 ; i<s.length() ; i++){\n if (freq[s.charAt(i)- 'a'] == 1) return i;\n }\n return -1;\n }", "title": "" }, { "docid": "88bdf35d8b798ea971c43a356d33349b", "score": "0.5837465", "text": "public static int countCharacters(String s) {\n\t\treturn s.length();\n\t}", "title": "" }, { "docid": "258e85c82b3bf1f8889d5ccb2ed86d11", "score": "0.5823649", "text": "public static void main(String[] args) {\n\t\tint ar[]=new int[256];\n\t\tString s=\"test test\";\n\t\tchar[] ch=s.toCharArray();\n\t\t\n\t\tHashSet<Character> hs = new HashSet<>();\n\t\t\n\t\tfor(char c:ch) {\n\t\t\tar[c]++;\n\t\t\ths.add(c);\n\t\t}\n\t\tfor(char c:hs) {\n\t\t\tSystem.out.println(\"Character = \"+c+\" and count = \"+ar[c]);\n\t\t}\n\n\t}", "title": "" }, { "docid": "4d61c9ff8a1d189bb57cdba453f3095f", "score": "0.5805818", "text": "public long freq(String gram);", "title": "" }, { "docid": "5e36e22622e6652a1d64fd2c2f184d68", "score": "0.5798732", "text": "public List<Integer> findAnagrams(String s, String p) {\n List<Integer> res = new ArrayList<>();\n if(s.length() == 0 || s == null || p.length() > s.length()){\n return res;\n }\n Map<Character, Integer> charFreq = new HashMap<>();\n //Build an HashMap containing the count of each char in the p string\n for(char c : p.toCharArray()){\n charFreq.put(c, charFreq.getOrDefault(c,0) + 1);\n }\n \n int start = 0;\n int end = 0;\n int count = charFreq.size();\n \n while(end < s.length()){\n char c = s.charAt(end);\n //Decrement the counter of each char for each char you insert in the sliding window\n if(charFreq.containsKey(c)){\n charFreq.put(c, charFreq.get(c) - 1);\n if(charFreq.get(c) == 0){\n count--;\n }\n }\n end++;\n \n while(count == 0){\n char ch = s.charAt(start);\n //Increment the counter of each char for each char you remove from the sliding window\n if(charFreq.containsKey(ch)){\n charFreq.put(ch, charFreq.get(ch) +1);\n if(charFreq.get(ch) > 0){\n count++;\n }\n }\n if(end - start == p.length()){\n res.add(start);\n }\n start++;\n } \n }\n return res;\n }", "title": "" }, { "docid": "e1906be89ed142e586f440293ff6d26a", "score": "0.5798626", "text": "static int countingValleys(int n, String s) {\n\n char[] cs = s.toCharArray();\n int valC = 0;\n int mouC = 0;\n int depth = 0;\n for (int i = 0; i < n; i++) {\n int curDepth = depth;\n if(cs[i] == 'D'){\n depth -= 1;\n }else if(cs[i] == 'U'){\n depth +=1;\n }\n if(curDepth == 0 && depth<0){\n valC++;\n }else if(curDepth ==0 && depth>0){\n mouC++;\n }\n }\n return valC;\n\n }", "title": "" }, { "docid": "3e27b4cc4e7a310651eef9cf15165c93", "score": "0.5774929", "text": "public static void main(String[] args) {\n\t\tString string = \"srinivasulu\";//o/p 1r1n2va2\n\t\tchar[] cha = string.toCharArray();\n\t\tint count=1;\n\t\tMap<Character, Integer> map = new LinkedHashMap<>();\n\t\tfor (int i = 0; i < cha.length; i++) {\n\t\t\tif (map.containsKey(cha[i])) {\n\t\t\t\tmap.put(cha[i], map.get(cha[i]) + 1);\n\t\t\t} else {\n\t\t\t\tmap.put(cha[i], 1);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < cha.length; i++) {\n\t\t\tif (map.containsKey(cha[i])) {\n\t\t\t\tif (map.get(cha[i])>1) {\n\t\t\t\t\t int s=map.get(cha[i]);\n\t\t\t\t\tcha[i]=(char)(s+'0');\n\t\t\t\t\t//count++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n System.out.println(map);\n System.out.println(cha);\n\t}", "title": "" }, { "docid": "b848ada4b0f819609b23066651b86bf0", "score": "0.57658595", "text": "static int count(int n, String s) { // DU\n int previousPosition;\n int position = 0;\n int valley = 0;\n for (char tp : s.toCharArray()) {\n previousPosition = position;\n if (tp == 'U') {\n position += 1;\n } else if (tp == 'D') {\n position -= 1;\n }\n\n if (position == 0 && previousPosition < 0) {\n valley++;\n }\n }\n return valley;\n }", "title": "" }, { "docid": "fff67df3417bcd90c24fe1587af26d29", "score": "0.57645696", "text": "public static int getNumberOfLetters(String s) {\r\n\t\tint numberOfLetters=0;\r\n\t\tfor (int i =0; i<s.length(); i++){\r\n\t\t\tif(Character.isLetter(s.charAt(i))){\r\n\t\t\t\tnumberOfLetters++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn numberOfLetters;\r\n\t}", "title": "" }, { "docid": "bf1f87cfddc4aa13b5d4e7e096982cd8", "score": "0.57603025", "text": "public static Hashtable<Character, Integer> countOccurrences(String str) {\n\t\tHashtable<Character, Integer> table = new Hashtable<Character, Integer>();\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tCharacter c = str.charAt(i);\n\t\t\tif (table.containsKey(c)) {\n\t\t\t\tInteger oldVal = table.get(c);\n\t\t\t\tInteger newVal = oldVal+1;\n\t\t\t\ttable.replace(c, newVal);\n\t\t\t} else {\n\t\t\t\ttable.put(c,1);\n\t\t\t}\n\t\t}\n\t\treturn table;\n\t}", "title": "" }, { "docid": "afe04b35b894d1ba1bda108cd1cb9e07", "score": "0.5756756", "text": "public static String frequencySort(String str) {\n Map<Character, Integer> map = new HashMap<>();\n for (char c : str.toCharArray()) {\n map.put(c, map.getOrDefault(c, 0) + 1);\n }\n\n // let's create Priority queue and insert all characters\n PriorityQueue<Character> priorityQueue =\n new PriorityQueue<>((a, b) -> map.get(b) - map.get(a));\n priorityQueue.addAll(map.keySet());\n\n // now generate string based on frequency\n StringBuilder sb = new StringBuilder();\n while (!priorityQueue.isEmpty()) {\n char curr = priorityQueue.remove();\n for (int i = 0; i < map.get(curr); i++) {\n sb.append(curr);\n }\n }\n return sb.toString();\n }", "title": "" }, { "docid": "8f1f866b91e39723081796bc357bba71", "score": "0.5728571", "text": "public int hash(String s){\n\t\tint num = 0;\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tnum = (num + power(3, i)* s.charAt(i)) % TableSize;\n\t\t}\n\t\treturn num;\n\t}", "title": "" }, { "docid": "e0e1f026cd47a8f4d0366fe2158ab4ba", "score": "0.56974065", "text": "static void firstRepeated(String input) {\n char[] freq = new char[256];\n for (int i = 0; i < input.length(); i++) {\n freq[input.charAt(i)]++;\n }\n\n for (int i = 0; i < 256; i++) {\n if (freq[i] > 0) {\n System.out.println(\"[\" + (char) (i) + \"] = \" + (int)freq[i]);\n }\n }}", "title": "" }, { "docid": "9d6267376d0140cc8aa28518b5399e93", "score": "0.5697246", "text": "private static Map<Character, Integer> makeMap(String s){\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n for(Character c : s.toCharArray()){\n Integer num = map.get(c); \n if(num != null){\n map.put(c, num+1);\n }else{\n map.put(c, 1);\n }\n }\n return map;\n }", "title": "" }, { "docid": "13897d15ea86809e14aae491dc9363d8", "score": "0.569378", "text": "public List<Integer> findAnagrams(String s, String p) {\n\n int[] frequencyAnagram = new int['z' - 'a' + 1];\n int[] currentFrequency = new int['z' - 'a' + 1];\n for (char c : p.toCharArray()) {\n frequencyAnagram[c - 'a'] += 1;\n }\n\n int left = 0;\n int len = p.length();\n ArrayList<Integer> result = new ArrayList();\n for (int i = 0; i < s.length(); i++) {\n currentFrequency[s.charAt(i) - 'a'] += 1;\n if (i - left + 1 == len) {\n if (Arrays.equals(frequencyAnagram, currentFrequency)) {\n result.add(left);\n }\n currentFrequency[s.charAt(left) - 'a'] -= 1;\n left += 1;\n }\n }\n return result;\n }", "title": "" }, { "docid": "7a64c4dd2f5b25223379a8470f60210b", "score": "0.56916004", "text": "int getFrequency();", "title": "" }, { "docid": "3ed9bb09f3cae200e454a1e584bdd194", "score": "0.5683359", "text": "private static void countCharacterOccurence(String str){\n \n HashMap<Character, Integer> characterMap = new HashMap<Character, Integer>(); // Creating the hash map\n \n for (int i=0; i<str.length(); i++){\n char c = str.charAt(i);\n if (characterMap.containsKey(c)){ // If this character already exists in the hash map\n characterMap.put(c, characterMap.get(c)+1);\n }\n else{ // if this is the first occurence of the character\n \n characterMap.put(c, 1); // Initializing character's occurence as 1 \n }\n }\n \n System.out.print(\"Compressed version: \");\n for (HashMap.Entry<Character, Integer> entry: characterMap.entrySet()){\n System.out.print(entry.getKey()+ \"\" + entry.getValue());\n }\n System.out.println(\"\");\n \n \n }", "title": "" }, { "docid": "7506b7ba50e7f96fa5faeb87e534390b", "score": "0.5671636", "text": "static void characterCount(String inputString) {\n HashMap<Character, Integer> myMap = new HashMap<>();\n\n // Converting the give String to a char array\n char[] strArray = inputString.toCharArray();\n\n // Check each character in the String\n\n for (char c : strArray) {\n // Here I check if the char is a letter\n if (Character.isLetter(c)) {\n // Here I check if the my map contains a char\n if (myMap.containsKey(c)) {\n myMap.put(c, myMap.get(c) + 1);\n } else {\n // If the char is not present in the map\n myMap.put(c, 1);\n }\n }\n }\n // Printing my map\n // and sorting the map\n // Using a lambda expression\n myMap.entrySet()\n .stream().sorted((x, y) -> Integer.compare(y.getValue(), x.getValue()))\n .forEach(entry -> {\n\n String myPattern = new String(new char[entry.getValue()*2]).replace(\"\\0\", \"#\");\n\n if (myPattern.length() > 20) {\n System.out.println(\" Too many '#' \");\n } else {\n System.out.println(entry.getKey() + \":\" + entry.getValue() + \" \" + myPattern);\n }\n\n });\n }", "title": "" }, { "docid": "72099d13f4d28a9832170eaf2dc96c8d", "score": "0.56711364", "text": "static int countingValleys(int n, String s) {\n int count = 0;\n String lastCount;\n int valleys = 0;\n for (String string : s.split(\"\")) {\n if (string.equals(\"U\")) {\n count++;\n lastCount = string;\n } else {\n count--;\n lastCount = string;\n }\n if (count == 0 && lastCount.equals(\"U\")) {\n valleys++;\n }\n }\n return valleys;\n }", "title": "" }, { "docid": "b41c5ebd3dbfbaad2c178424b74b6d84", "score": "0.56674117", "text": "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tMap<Character,Integer> result=new TreeMap();\n\t\tCountCharacter c=new CountCharacter();\n\t\tSystem.out.println(\"Enter the input:\");\n\t\tString str=sc.nextLine();\n char [] arr=new char[str.length()];\n arr=str.toCharArray();\n result=c.countChars(arr);\n for(Map.Entry<Character, Integer> i:result.entrySet())\n {\n \tSystem.out.println(i.getKey()+\" is repeated \"+i.getValue()+\" times\");\n }\n sc.close();\n\t}", "title": "" }, { "docid": "264ddfa642949b929f85dc77bea993d3", "score": "0.56670135", "text": "public int firstUniqChar(String s) {\n // frequency count\n for(int i=0; i<s.length(); i++) {\n ch[s.charAt(i)]++;\n }\n \n for(int i=0; i<s.length(); i++) {\n if(ch[s.charAt(i)]==1) return i;\n }\n \n return -1;\n }", "title": "" }, { "docid": "10546ed65a9e76f6763f7fbe0cac1ede", "score": "0.5660299", "text": "public static void getCharCount(String str){\n\n Map<Character, Integer> hashMap = new LinkedHashMap<>();\n\n for (char c : str.toCharArray()){\n //if (!String.valueOf(c).isBlank()) {\n hashMap.put(c, hashMap.containsKey(c) ? hashMap.get(c) + 1 : 1);\n //}\n }\n\n /*for (Map.Entry<Character, Integer> entry : hashMap.entrySet()){\n System.out.println(entry.getKey() + \"=\" + entry.getValue());\n }*/\n\n System.out.println(str + \": \" + hashMap);\n }", "title": "" }, { "docid": "92c3e06846691fb767aa7754d155171c", "score": "0.5650228", "text": "public int numDecodings(String s) {\n long[] ways = new long[s.length() + 1];\n ways[0] = 1;\n ways[1] = getNumDecodings(s.charAt(0));\n for (int i = 2; i < ways.length; i++) {\n ways[i] += (ways[i - 1] * getNumDecodings(s.charAt(i - 1))) % M;\n ways[i] += (ways[i - 2] * getNumDecodings(s.charAt(i - 2), s.charAt(i - 1))) % M;\n }\n return (int) (ways[s.length()] % M);\n }", "title": "" }, { "docid": "8a1551e304b2e5450ab2bed33e4380b5", "score": "0.56448877", "text": "public static frequency convertExampleFrequency (String s) {\r\n if (s != null && !s.trim().equalsIgnoreCase(\"\"))\r\n return frequency.valueOf(s);\r\n else return DEFAULT_EXAMPLE_FREQ;\r\n }", "title": "" }, { "docid": "68907f56ef28685017a8a136bc836069", "score": "0.56416345", "text": "public int titleToNumber(String s) {\n\t\t//In case if null pointer\n\t\tif (s.length() == 0 || s == null)\n\t\t\treturn 0;\n\t\tint total = 0;\n\t\t//loop s to get every char and calculate \n\t\tfor (int i = 0, j = s.length(); i < s.length(); i++, j--) {\n\t\t\ttotal += (int) (Math.pow(26, j - 1)) * ((int) (s.charAt(i) - 'A' + 1));\n\t\t}\n\n\t\treturn total;\n\t}", "title": "" }, { "docid": "cbf673017c68eb65708c206842ef5442", "score": "0.5634446", "text": "private Map<Character, Integer> returnEachOccurrences(String input) {\n\n\t\tMap<Character, Integer> output= new HashMap<Character, Integer>();\n\t\tchar[] charArray = input.toLowerCase().toCharArray();\n\t\tfor (char c : charArray) {\n\t\t\toutput.put(c, output.getOrDefault(c, 0)+1);\n\n\n\t\t}\n\n\n\n\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "49a4297bb424df7d2468e61889eafcd3", "score": "0.5629226", "text": "public List<Integer> partitionLabels(String S) {\n HashMap<Character, Integer> charsToCount = new HashMap<>();\n for(char ch : S.toCharArray()) {\n charsToCount.put(ch, charsToCount.getOrDefault(ch, 0) + 1);\n }\n\n List<Integer> res = new ArrayList<>();\n HashSet<Character> invalid = new HashSet<>();\n int len = 0;\n\n for (int i = 0; i < S.length(); i++) {\n char curr = S.charAt(i);\n charsToCount.put(curr, charsToCount.get(curr) - 1);\n len++;\n if(charsToCount.get(curr) > 0) invalid.add(curr);\n else invalid.remove(curr);\n\n if(invalid.size() == 0) {\n res.add(len);\n len = 0;\n }\n }\n\n return res;\n }", "title": "" }, { "docid": "457b7ea023d8700447237e8762d4acba", "score": "0.5621058", "text": "private int frequency(Node node, char[] arr, int i) {\n if(node == null) return 0;\n if(i == arr.length) return node.frequency;\n return frequency(node.get(arr[i]), arr, i+1);\n }", "title": "" }, { "docid": "f2ff152d165efcfb387aa7cbfbe02040", "score": "0.5612878", "text": "private static void charCountHashMap(String input) {\n HashMap<Character, Integer> countCharMap = new LinkedHashMap<>();\n char[] charArray = input.toCharArray();\n for (int i = 0; i < charArray.length; i++) {\n char ch = input.charAt(i);\n if (countCharMap.containsKey(ch)) {\n countCharMap.put(ch, countCharMap.get(ch) + 1);\n } else\n countCharMap.put(ch, 1);\n }\n\n Iterator<Character> charIterator = countCharMap.keySet().iterator();\n while (charIterator.hasNext()) {\n char ch = charIterator.next();\n System.out.print(ch + \"=\" + countCharMap.get(ch) + \" \");\n }\n\n }", "title": "" }, { "docid": "6668f41f54b2ea486416b4e17dfa415b", "score": "0.56073755", "text": "public int numMatchingSubseq(String S, String[] words) {\r\n Queue<String>[] map = new LinkedList[26];\r\n for (int i=0; i<26; ++i){\r\n map[i] = new LinkedList<>();\r\n }\r\n\r\n for (String word : words){\r\n char init = word.charAt(0);\r\n map[init-'a'].add(word);\r\n }\r\n\r\n int count=0;\r\n for (char c : S.toCharArray()){\r\n Queue<String> sub = map[c-'a'];\r\n int size = sub.size();\r\n for (int i=0; i<size; ++i){\r\n String cur = sub.poll();\r\n if (cur.length()==1) count++;\r\n else {\r\n map[cur.charAt(1)-'a'].add(cur.substring(1));\r\n }\r\n }\r\n }\r\n return count;\r\n }", "title": "" }, { "docid": "55148bb8c4894bb7979cdc0d2914c70e", "score": "0.5598862", "text": "public int scoreOf(String s) {\n int wordLength = s.length();\n if (dict.contains(s)) {\n if (wordLength >= 8) {\n return 11;\n }\n if (wordLength == 7) {\n return 5;\n }\n if (wordLength == 6) {\n return 3;\n }\n if (wordLength == 5) {\n return 2;\n }\n if (wordLength >= 3) {\n return 1;\n }\n }\n return 0;\n }", "title": "" }, { "docid": "48b380f4cf80d9ea177860643b5935fd", "score": "0.5591395", "text": "public int numDecodings(String s) {\r\n var result = new int[1];\r\n nextStep(s, 0, result);\r\n return result[0];\r\n }", "title": "" }, { "docid": "26c49c10abc90e08109c8ace5955d976", "score": "0.5589912", "text": "public static void groupWordsByFirstCharacter(Stream<String> stream) {\r\n Map<Character, Long> hashMap = stream.map(q -> q.toUpperCase()).flatMap(str -> Stream.of(str.split(\"\\\\s+\")))\r\n .collect(Collectors.groupingBy(str -> str.charAt(0), Collectors.counting()));\r\n System.out.println(hashMap);\r\n stream.close();\r\n }", "title": "" }, { "docid": "75964e97a4c6d3a17aeea29eaf90645b", "score": "0.55888635", "text": "static int countingValleys(int n, String s) {\n \tint result = 0, tempResult = 0;\n \tint up = 1, down = -1, curr = 0;\n \tfor(int i = 0; i < n; i++) {\n \t\tif(s.charAt(i) == 'U')\n \t\t\tcurr += up;\n \t\telse if(s.charAt(i) == 'D')\n \t\t\tcurr += down;\n \t\tif(curr == -1)\n \t\t\ttempResult = 1;\n \t\tif(curr == 1)\n \t\t\ttempResult = 0;\n \t\tif(curr == 0 && i != 0)\n \t\t\tresult += tempResult;\n \t}\n \treturn result;\n }", "title": "" }, { "docid": "038e54a2b3f286631a0febbfe1b370f5", "score": "0.5575013", "text": "public static int computeHash(String s){\n int [] key=new int[s.length()];\n int d= s.length()-1;\n for (int j=0; j<s.length();j++){\n int f=(int)Math.pow(31,d);\n key[j] = s.charAt(j)*f;\n d--;\n }\n int k=s.length()-1;\n int sum=0;\n while(k>=0){\n sum+=key[k];\n k--;\n }\n return sum;\n }", "title": "" }, { "docid": "e378197fe151bfdbfa524ff53c25bb76", "score": "0.5571351", "text": "public static ArrayList<Integer> countCharacters(String[] stringOfChars, int[] multiplesArray) {\n\t\tint multiple = 0;\n\t\tString tempChars = \"\";\n\t\t\n\t\tfor(int i = 0; i < stringLength; i++){\n\t\t\tmultiple = multiplesArray[i];\n\t\t\ttempChars = stringOfChars[i];\n\t\t Map<Character, Integer> charMap = new HashMap<Character, Integer>();\t\n\t\t\tchar[] stringToCharArray = tempChars.toCharArray();\n\n\t\t for (char value: stringToCharArray) {\n\n\t\t \tif (Character.isLetterOrDigit(value) || Character.isSpaceChar(value) || Character.isDefined(value)) {\n\t\t if (charMap.containsKey(value)) {\n\t\t charMap.put(value, charMap.get(value) + 1);\n\t\t } else {\n\t\t charMap.put(value, 1);\n\t\t }\n\t\t }\n\t\t }\n\t\t System.out.println(charMap);\n\t\t \n\t\t int count = 0; \n\t\t for(Integer value: charMap.values()) {\n\t\t \t if (value % multiple == 0) {\n\t\t \t count++;\n\t\t \t }\n\t\t }\n\t\t actualMultipleCount.add(count);\n\t\t}\n\t return actualMultipleCount;\n\t}", "title": "" }, { "docid": "4a32e2ecc2bd44d814eb0609bb62152a", "score": "0.5556604", "text": "public void findNumOfOccurences(){\n\t\t\n\t\tfor(int i=0; i<terms.length; i++){\n\t\t\t\n\t\t\ttermToFrequency.put(terms[i], 0);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<terms.length; i++){\n\t\t\t\n\t\t\ttermToFrequency.put(terms[i], (termToFrequency.get(terms[i]) + 1));\n\t\t}\n\t}", "title": "" }, { "docid": "bfdace60c30947b66a163e5699361a04", "score": "0.5555316", "text": "public static void main(String[] args) {\nchar[] chars=createArray();\r\nSystem.out.println(\"The lowercase letter are: \");\r\nint[]counts=countLetters(chars);\r\nSystem.out.println();\r\nSystem.out.println(\"The occurrences of each letter are:\");\r\ndisplayCounts(counts);\r\n\t}", "title": "" }, { "docid": "7686cbeba21f37bda272b661c606b44a", "score": "0.5550456", "text": "public int getFrequency(String word) throws IllegalArgumentException;", "title": "" }, { "docid": "0c93a1c3487a51221570d566fd344382", "score": "0.555026", "text": "public static HashMap<String, Integer> counted (String toCount){\n toCount = toCount.toLowerCase();\n\n //splits the string into an array to be analyzed\n String[] toBeCounted = toCount.split(\"\");\n\n //creates empty hashmap to store counts\n HashMap<String, Integer> counted = new HashMap<String, Integer>();\n\n //loop through the array\n for (String i : toBeCounted){\n //ignores non-alphabetical characters\n if(i.matches(\"^[a-z]*$\")) {\n //if it isn't there, add it with a count of 0.\n counted.putIfAbsent(i, 0);\n //replace key value pair with updated value.\n counted.replace(i, counted.get(i) + 1);\n }\n }\n //return the hashMap with results\n return counted;\n }", "title": "" }, { "docid": "ffce8a2d6768bf8f36482bad144a7b41", "score": "0.5549718", "text": "public int hash(String s)\n {\n int index = 0;\n int sum = 0;\n while(index < s.length())\n {\n sum += (int) s.charAt(index);\n index++;\n }\n return (int) Math.pow(sum, 3);\n }", "title": "" }, { "docid": "aeae1878e98077043f9d8a7dfab8ebde", "score": "0.5533912", "text": "public static void main(String[] args) {\n\t\tString s = \"aabbasccujcccajcc\";\n\t\tchar a;\n\t\t//char[] ch =s.toCharArray();\n\t\tHashMap<Character, Integer> map = new HashMap<Character, Integer>();\n\t\tfor(int i=0;i<s.length();i++) {\n\t\t\ta = s.charAt(i);\n\t\t\tif(map.containsKey(a)) {\n\t\t\t\tmap.put(a, map.get(a)+1);\n\t\t\t}else {\n\t\t\t\tmap.put(a, 1);\n\t\t\t}\n\t\t}\n\t\tchar maximumchar = 0;\n\t\tint maximumcount=0;\n\t\tSet<Entry<Character, Integer>> myset = map.entrySet();\n\t\tfor(Entry<Character, Integer> entrylist:myset) {\n\t\t\tif(entrylist.getValue()>maximumcount) {\n\t\t\t\tmaximumcount = entrylist.getValue();\n\t\t\t\tmaximumchar = entrylist.getKey();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maximumchar+\" is displayed in String at \"+maximumcount+\" times\");\n\t}", "title": "" }, { "docid": "70b5bad36b1595a5c1dd3de89dc08b38", "score": "0.55285317", "text": "private void printFrequencies (Map < Character, Integer > frequencies){\n\n System.out.println(\"Char:\\tFrequencies:\");\n System.out.println(\"--------------------\");\n\n // TODO Loop through the entire map and print out all the characters (keys)\n // TODO and their frequencies (values) in a table.\n\n for (char keys : frequencies.keySet()) {\n Integer values = frequencies.get(keys);\n\n System.out.println(\"Key: \" + keys + \",Values \" + values.intValue());\n\n }\n }", "title": "" }, { "docid": "bf45f9c47ab87eb5b8df6ecd6ac68fe2", "score": "0.5524791", "text": "public static int sherlockAndAnagrams(String s) {\n\t\tint count = 0;\n\t\tMap<String, Integer> map = new HashMap<>();\n\t\tfor (int i = 0; i < s.length(); i++) {\n\n\t\t\tif (i == 0) {\n\t\t\t\tmap.put(s.substring(0, i + 1), 1);\n\t\t\t} else {\n\t\t\t\tfor (int j = 0; j <= i; j++) {\n\t\t\t\t\tString str = sortString(s.substring(j, i + 1));\n\n\t\t\t\t\tif (map.containsKey(str)) {\n\t\t\t\t\t\tcount += map.get(str);\n\t\t\t\t\t}\n\n\t\t\t\t\tmap.put(str, map.get(str) != null ? map.get(str) + 1 : 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "73feb078d29dcc70f22b4733f6abf12e", "score": "0.55235624", "text": "public String printFrequency(int[] frequency, int totalCharacter){\r\n String str = \"|\";\r\n\r\n for(int i = 0; i < 26; i++){\r\n //Creates the string that holds all the values of the characters\r\n str = str + ((char) (i + 65)) + \": \" + frequency[i] + \", \" + (frequency[i] * 100 / totalCharacter) + \"%|\";\r\n }\r\n\r\n return str;\r\n }", "title": "" }, { "docid": "b04a29802ae135a705a6a8549d2b9df4", "score": "0.5522886", "text": "static int countingValleys(int n, String s) {\r\n if(s.length() == 0 ) return 0;\r\n int vCnt =0;\r\n int total = 0;\r\n \r\n for(int i=0; i<s.length(); i++){\r\n \r\n if(s.charAt(i) == 'U'){\r\n vCnt++;\r\n System.out.println(i + \". Up, count: \" + vCnt);\r\n \r\n }\r\n else if(s.charAt(i) == 'D'){\r\n vCnt--;\r\n if(vCnt == -1)\r\n total++;\r\n System.out.println(i + \". Down, count: \" + vCnt + \" Total Valleys: \" + total);\r\n \r\n } \r\n }\r\n return total;\r\n }", "title": "" }, { "docid": "45ce9dabb364105e4f6886699208a29b", "score": "0.54934585", "text": "public static void main(String[] args) {\n\r\n\t\tString str = \"welcome to chennai\";\r\n\t\tint count = 0;\r\n\t\tchar[] charArr = str.toCharArray();\r\n\t\tint length = charArr.length;\r\n\r\n\t\tfor (int i = 0; i < length; i++)\r\n\t\t\tif (charArr[i] == 'e')\r\n\t\t\t\tcount += 1;\r\n\r\n\t\tSystem.out.println(\"No. of occurances of the character 'e' is : \" + count);\r\n\r\n\t}", "title": "" }, { "docid": "88ec3d695cc2e0de510b0248a609d7b1", "score": "0.5485154", "text": "public static int findNumsOfRepetitions(String s, char c) {\n int sum = 0; // 1\n for (int i = 0; i < s.length(); i++) { // 1, n + 1, n\n if (s.charAt(i) == c) { // n\n sum++; // n\n }\n }\n return sum; // 1\n }", "title": "" }, { "docid": "9d4cb7ddc47e7ababc5d64af5f441e4a", "score": "0.54839706", "text": "public long freq(String gram1, String gram2);", "title": "" }, { "docid": "a45035894846766107d354ad636967e3", "score": "0.54792047", "text": "public int characterReplacement(String s, int k) {\n int ws=0, mostFreqCharSeenInWindow=0, maxLen=0;\n int[] freq = new int[26];\n for(int we=0; we<s.length(); we++) {\n final int ch = s.charAt(we) - 'A';\n freq[ch]++;\n mostFreqCharSeenInWindow = Math.max(mostFreqCharSeenInWindow, freq[ch]);\n if((we-ws+1) - mostFreqCharSeenInWindow > k) {\n freq[s.charAt(ws)-'A']--;\n ws++;\n }\n maxLen = Math.max(maxLen, (we-ws)+1);\n }\n return maxLen;\n }", "title": "" }, { "docid": "461dec2c3c6d4d674ecd6b3bdbc27f9c", "score": "0.54762983", "text": "private void recordTermFreqs(String[] strings){\n \n //sort strings using sortStrings() \n sortStrings(strings);\n \n //count the number of occurrences of each distinct token\n int numDistinctTokens=1;\n for(int i=0; i<strings.length-1; i++){\n if(strings[i].compareTo(strings[i+1])!=0){\n numDistinctTokens++;\n }\n }\n \n //create array of length numDistinctTokens to store terms\n this.terms=new Term[numDistinctTokens];\n \n //create counter\n int count=0;\n \n //create initial start\n int start=0;\n \n //loop through distinct tokens\n for(int currentDistinctToken=0; currentDistinctToken<numDistinctTokens; currentDistinctToken++){\n \n //if the strings are the same, update the count\n while(start+count<strings.length && strings[start].compareTo(strings[start+count])==0){\n count++;\n }\n \n //create term\n this.terms[currentDistinctToken]=new Term(strings[start],count);\n \n //update start\n start=start+count;\n \n //reset count\n count=0; \n \n }\n }", "title": "" }, { "docid": "6555774010b04c9fb7e33beae8e75984", "score": "0.5466585", "text": "public static void main(String[] args) {\n\n\t\tint j = 0,q,i,count;\n\t\tString s;\n\t\tlong sum;\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tq=sc.nextInt();\n\t\twhile(q>0)\n\t\t{\n\t\t\ts=sc.next();\t\n\t\t\tint n=s.length();\n\t\t\tint previous=-1;\n\t\t\tsum=0;\n\t\t\tcount=0;\n\t\t\t\n\t\t\tint a[]=new int[26];\n\t\t\tfor(i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tif(previous!=-1 && count==26)\n\t\t\t\t\tsum=sum+previous;\n\t\t\t\telse if(previous!=-1 && count<26)\n\t\t\t\t{\n\t\t\t\t\tfor(j=j+1;j<n;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a[s.charAt(j)-97]==0)\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\ta[s.charAt(j)-97]++;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(count==26)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsum=sum+n-j;\n\t\t\t\t\t\t\tprevious=n-j;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcount=0;\n\t\t\t\t\ta=new int[26];\n\t\t\t\t\tfor(j=i;j<n;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a[s.charAt(j)-97]==0)\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\ta[s.charAt(j)-97]++;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(count==26)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsum=sum+n-j;\n\t\t\t\t\t\t\tprevious=n-j;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta[s.charAt(i)-97]--;\n\t\t\t\tif(a[s.charAt(i)-97]==0)\n\t\t\t\t\tcount--;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\n\t\t\tq--;\n\t\t}\n\t}", "title": "" }, { "docid": "7752f9b954b331610c87d7ecac7ced38", "score": "0.54519856", "text": "static long substrCount(int n, String s) {\n long [] [] dp = new long[n][n];\n long count = 0;\n for (int i = 0; i < n; i++) {\n char c1 = s.charAt(i);\n for (int j = 0; j < n; j++) {\n char c2 = s.charAt(j);\n if(c1 == c2) {\n dp[i][j] = 1 + ((i > 0 && j < n-1) ? dp[i-1][j+1] : 0);\n }\n //verifying size of special\n if (dp[i][j] > 2 && dp[i][j] != dp[i-1][j]){\n count++;\n }\n if (dp[i][j] == 2 && s.charAt(i) == s.charAt(i-1) && dp[i][j] != dp[i-1][j]) {\n count++;\n }\n }\n }\n return count + n;\n }", "title": "" }, { "docid": "dbedc55cb4847a2962f0aeff41531502", "score": "0.54464394", "text": "int countingValleys(int n, String s) {\r\n int valleyCount = 0;\r\n int level = 0;\r\n for (int i = 0; i < n; ++i) {\r\n if (s.charAt(i) == 'U') {\r\n ++level;\r\n if (level == 0) {\r\n ++valleyCount;\r\n }\r\n } else {\r\n --level;\r\n }\r\n }\r\n return valleyCount;\r\n }", "title": "" }, { "docid": "afffde9ad33590ab0bc2a6bdd035cf16", "score": "0.544499", "text": "static int countingValleys(int n, String s) {\n char[] steps = s.toCharArray();\n int level = 0;\n int previousLevel = 0;\n int numberOfValleys = 0;\n for (char step : steps) {\n previousLevel = level;\n if (step == 'U') level++;\n else level--;\n if(level == 0 && previousLevel == -1) numberOfValleys++;\n }\n return numberOfValleys;\n\n }", "title": "" }, { "docid": "378beeece14ac46b5e8ccea5f6affdd3", "score": "0.54389787", "text": "int getStringsCount();", "title": "" }, { "docid": "0fb7811a1a482bcbd5f30517d7ef0ac3", "score": "0.54364496", "text": "public static int[] findNumsOfRepetitionsv1(String s, char[] c) {\n int[] sums = new int[c.length]; // 1\n for (int i = 0; i < s.length(); i++) { // 1, n + 1, n\n for (int j = 0; j < c.length; j++) { // n, n*m + 1, n*m\n if (s.charAt(i) == c[j]) { // n*m\n sums[j] = sums[j] + 1; // n*m\n }\n }\n }\n return sums; // 1\n }", "title": "" }, { "docid": "8d63d937bce3d2926b2f673901314bbf", "score": "0.5425621", "text": "public static int getNumCountElements(String s, ArrayList<String> ss) {\n\t\tint count = 0;\n\t\tfor(String sss: ss) {\n\t\t\tif(sss.equals(s)) count++;\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "64841488f6f974eb24a84cfe4cbfb73c", "score": "0.5416849", "text": "public int getFrequency(String word, String classification);", "title": "" }, { "docid": "116cd68376eac2a16814d7516fa59842", "score": "0.54138595", "text": "public int numDistinct(String s, String t) {\r\n int[] result = new int[]{ 0 };\r\n if (s.length() >= t.length()) {\r\n nextSubsequences(s, 0, 0, t, result);\r\n }\r\n return result[0];\r\n }", "title": "" }, { "docid": "b93361d112b3d8bdc7e8cdafb0a9aadd", "score": "0.541306", "text": "public int sherlockAndAnagrams(String s) {\r\n\r\n\t\tList<String> subStrings = new ArrayList<String>();\r\n\r\n\t\tint count = 0;\r\n\r\n\t\t// find all substrings\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tfor (int j = i + 1; j <= s.length(); j++) {\r\n\t\t\t\tString ss = s.substring(i, j);\r\n\t\t\t\tchar[] chArr = ss.toCharArray();\r\n\t\t\t\t// subStrings.add(new String(chArr));\r\n\r\n\t\t\t\tArrays.sort(chArr);\r\n\t\t\t\tString sortedStr = new String(chArr);\r\n\t\t\t\tsubStrings.add(sortedStr);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(subStrings);\r\n\t\tCollections.sort(subStrings);\r\n\t\tSystem.out.println(subStrings);\r\n\r\n\t\tfor (int i = 0; i < subStrings.size(); i++) {\r\n\t\t\tfor (int j = i + 1; j < subStrings.size(); j++) {\r\n\t\t\t\tif (subStrings.get(i).equals(subStrings.get(j))) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count;\r\n\r\n\t}", "title": "" }, { "docid": "a87a82feadf7ad8c5a01bbbd0ed7ce37", "score": "0.5411912", "text": "public static void main(String[] args) {\n\t\tString x;\r\n\t\tint i,count=0;\r\n\t\tint freq;\r\n\t\tchar temp='z';\r\n\t\tString temp1 = \"\";\r\n\t\tint max=0;\r\n\t\tchar store='x';\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tx = scan.nextLine();\r\n\t\tchar[] arr = x.toCharArray();\r\n\t\tArrays.sort(arr);\r\n\t\tx=Arrays.toString(arr);\r\n\t\t//System.out.println(String.valueOf(arr));\r\n\t\tfor(i=0;i<arr.length;i++)\r\n\t\t{\r\n\t\t\tfreq=setFreq(arr[i], arr);\r\n\t\t\t//System.out.println(freq);\r\n\t\t\tif(max<freq && store!=arr[i])\r\n\t\t\t{\r\n\t\t\t\tmax=freq;\r\n\t\t\t\ttemp=arr[i];\r\n\t\t\t\ttemp1=\"\"+temp;\r\n\t\t\t\t//temp1+=temp;\r\n\t\t\t\tcount=0;\r\n\t\t\t}\r\n\t\t\telse if(max==freq && store!=arr[i])\r\n\t\t\t{\r\n\t\t\t\t//max=freq;\r\n\t\t\t\ttemp1+=arr[i];\r\n\t\t\t\tcount=1;\r\n\t\t\t}\r\n\t\t\tstore=arr[i];\r\n\t\t}\r\n\t\tif(count==0)\r\n\t\t{\r\n\t\t\tSystem.out.println(temp);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(i=0;i<temp1.length();i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(temp1.charAt(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\tscan.close();\r\n\t}", "title": "" }, { "docid": "fe7f170ffad9e139d45fbd4bf5c1228b", "score": "0.5405859", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString str = sc.next();\r\n\t\tsubsASCII(str, \"\");\r\n\t\tint r=count(str);\r\n System.out.println();\r\n System.out.print(r);\r\n \r\n \r\n\r\n\t}", "title": "" }, { "docid": "d1b7c6d1d511abd1c9c8a74f8c3fd671", "score": "0.539944", "text": "public int numDecodings(String s) {\n if (s.isEmpty()) {\n return 0;\n }\n return numDecodings(s, 0);\n }", "title": "" }, { "docid": "888c692390410957b22b4aacbcfded5a", "score": "0.5382767", "text": "public int countBinarySubstrings(String s) {\n int[] dp = new int[s.length()];\n int numofprev = 0;\n int numofcur = 0;\n for(int i = 0; i < s.length(); i++){\n char cur = s.charAt(i);\n if(i != 0 && cur != s.charAt(i-1)){\n dp[i] = dp[i-1]+1;\n numofprev = numofcur;\n numofcur = 1;\n }else if(i != 0 && cur == s.charAt(i-1)){\n numofcur++;\n if(numofcur <= numofprev){\n dp[i] = dp[i-1]+1;\n }else{\n dp[i] = dp[i-1];\n }\n }else if(i == 0){\n numofcur++;\n }\n }\n return dp[s.length()-1];\n }", "title": "" } ]
c4572a4922ce78d3e35fa0f4c1becbeb
Return the project group of the project.
[ { "docid": "1cd642f8a8c0f74874c888f2947da031", "score": "0.67142713", "text": "ProjectGroup getProjectGroupByProject( Project project )\n throws ContinuumObjectNotFoundException;", "title": "" } ]
[ { "docid": "fde98178437cc0fc7ab36ebf08c338a1", "score": "0.7492636", "text": "public String getGroup() {\n return group;\n }", "title": "" }, { "docid": "895431f5dcd46f875043b9820c98b343", "score": "0.7428593", "text": "public String getGroup() {\n\t\treturn group;\n\t}", "title": "" }, { "docid": "5a14a8fe2128c4be299ba9fa1c3366a9", "score": "0.74089295", "text": "public String getGroup() {\r\n\t\treturn group;\r\n\t}", "title": "" }, { "docid": "25255d7fc8333360c05c5d10eafb3bed", "score": "0.73285884", "text": "public java.lang.String getGroup() {\r\n return group;\r\n }", "title": "" }, { "docid": "ff0b0d84bacc04719496ec997d21a545", "score": "0.72701174", "text": "public String getGroup() {\n return this.group;\n }", "title": "" }, { "docid": "b4eb70a2977d4beaa875ef963e947ad0", "score": "0.725019", "text": "public String getGroup() {\n return selectedGroup;\n }", "title": "" }, { "docid": "e494502059a89542093b5665b644a3d4", "score": "0.7246878", "text": "public String getGroupname() {\r\n return groupname;\r\n }", "title": "" }, { "docid": "6ba7f30c219be06097e7fde7de97d849", "score": "0.72002864", "text": "Project getByResourceGroup(String resourceGroupName, String projectName);", "title": "" }, { "docid": "ab47d321888a49c7326fc80b567dc316", "score": "0.7141482", "text": "public String getGroup(){\n return group;\n }", "title": "" }, { "docid": "38718da916df837f3ea4b52406f6f407", "score": "0.69359285", "text": "public String getProject() {\n return project;\n }", "title": "" }, { "docid": "b7e88d4227aea4136ee681e7fcd64ee4", "score": "0.69300485", "text": "public Group getGroup() {\n\t\treturn group;\n\t}", "title": "" }, { "docid": "a446dd5158fea9b40eec18cece1d31d3", "score": "0.69009763", "text": "public String getGroupPath() {\n return groupPath;\n }", "title": "" }, { "docid": "b05297d01d49cef3d91ad6362087f364", "score": "0.687448", "text": "public String getProject() {\n return project;\n }", "title": "" }, { "docid": "cee1dcfa33fc2f2ed9412e8b37a4e2d1", "score": "0.68648815", "text": "public java.lang.String getGroup() {\n java.lang.Object ref = group_;\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 group_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "dadd5635b974cfd4a3afa7c694198513", "score": "0.6843656", "text": "public String getProject() {\n return project;\n }", "title": "" }, { "docid": "f048dc9fb526b019cccfd41648f87329", "score": "0.68432766", "text": "public java.lang.String getGroup() {\n java.lang.Object ref = group_;\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 group_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "4417d929ae10fec916116fd3646e9c8a", "score": "0.6833851", "text": "public int getGroup()\n {\n return this.group;\n }", "title": "" }, { "docid": "94d0f7b8dfdee5b0ca3c485ee497856b", "score": "0.6827776", "text": "public String getGroupid() {\n return groupid;\n }", "title": "" }, { "docid": "c5acd92ffbc28e4de7fe5929ae9c6044", "score": "0.67989933", "text": "public String getGroupCode() {\n return groupCode;\n }", "title": "" }, { "docid": "c5acd92ffbc28e4de7fe5929ae9c6044", "score": "0.67989933", "text": "public String getGroupCode() {\n return groupCode;\n }", "title": "" }, { "docid": "3507e1f7683c0291bda1ac5b9d37d352", "score": "0.6798331", "text": "public Group getGroup() {\n return g;\n }", "title": "" }, { "docid": "4eadf4e0024e1b7b65a0d5853dbbb185", "score": "0.6782209", "text": "public Group getGroup() {\n return cGroup;\n }", "title": "" }, { "docid": "4eadf4e0024e1b7b65a0d5853dbbb185", "score": "0.6782209", "text": "public Group getGroup() {\n return cGroup;\n }", "title": "" }, { "docid": "4ef23bc0e9b7f74f27a33f595aa8d973", "score": "0.67219025", "text": "public String getGroup()\n/* */ {\n/* 196 */ return this.group;\n/* */ }", "title": "" }, { "docid": "62983efb98171966174d24ef6f8b7524", "score": "0.67124724", "text": "public String getProject() {\n return this.project;\n }", "title": "" }, { "docid": "3465393b9648ced9d7b3863a4c7c8c2f", "score": "0.6712374", "text": "public Group getGroup_1_0_3() { return cGroup_1_0_3; }", "title": "" }, { "docid": "7e257add9d10370019040edcb063e487", "score": "0.6698028", "text": "public String getGroupCode()\n\t{\n\t\treturn groupCode;\n\t}", "title": "" }, { "docid": "8917741ae4e4697805469d1aa35c8ba2", "score": "0.6697531", "text": "public String getGroup() {\n return null;\n }", "title": "" }, { "docid": "682941a21859a4d1cd800f79d8fad0f8", "score": "0.66942585", "text": "public String getGroupCode() {\n\t\treturn groupCode;\n\t}", "title": "" }, { "docid": "c15722046952bf3ac36700ec7e586994", "score": "0.66798", "text": "Collection<ProjectGroup> getAllProjectGroups();", "title": "" }, { "docid": "eacbbbbf0ddc1258eb8bc415d403cf8c", "score": "0.6679409", "text": "@JsonProperty(\"group\")\n public String getGroup() {\n return object.getGroup();\n }", "title": "" }, { "docid": "d0f322b3291b71299253a3b133e8a96b", "score": "0.6674217", "text": "public Group group() {\n return this.group;\n }", "title": "" }, { "docid": "a75f7034b9e98c07d2f391a4c70ad717", "score": "0.6672363", "text": "public String getGroupId() {\n return groupId;\n }", "title": "" }, { "docid": "a75f7034b9e98c07d2f391a4c70ad717", "score": "0.6672363", "text": "public String getGroupId() {\n return groupId;\n }", "title": "" }, { "docid": "3e87b0e7d64c11452b886d9f96b831d0", "score": "0.6655043", "text": "public int groupId() {\n return groupId;\n }", "title": "" }, { "docid": "b6d8b41e57ec97c9d4dcc8fa604e3612", "score": "0.66535866", "text": "public int getGroup() { return group; }", "title": "" }, { "docid": "dafc719f89b00930129da5a94b408e27", "score": "0.66312945", "text": "public int getIdGroup() {\n return idGroup;\n }", "title": "" }, { "docid": "bc1654577895cf25104c4a7a3fea9a17", "score": "0.6626644", "text": "@Override\n\t\tpublic java.lang.String getGroup() {\n\t\t\tjava.lang.Object ref = group_;\n\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\tgroup_ = s;\n\t\t\t\treturn s;\n\t\t\t} else {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" }, { "docid": "f74614ee97738c8c8aba8386a8ff0827", "score": "0.6617349", "text": "public Group getGroup() { return cGroup; }", "title": "" } ]
337b3895d0a3d5c6cd50f2f5c36c0f7a
Override to focus text or button.
[ { "docid": "c23869a8677fa667f51bad72fdf4a2c9", "score": "0.7289784", "text": "public void requestFocus()\n {\n if (isShowTextField()) getTextField().requestFocus();\n else getButton().requestFocus();\n }", "title": "" } ]
[ { "docid": "95fc6605e9c2a9d631968e0c8702d4c5", "score": "0.7735343", "text": "@Override\r\n\tpublic void setFocus() {\r\n\t}", "title": "" }, { "docid": "95fc6605e9c2a9d631968e0c8702d4c5", "score": "0.7735343", "text": "@Override\r\n\tpublic void setFocus() {\r\n\t}", "title": "" }, { "docid": "c76bfe85da89ddbfbeda87080def133e", "score": "0.7675045", "text": "@Override\n\tpublic void setFocus() {\n\n\t}", "title": "" }, { "docid": "c76bfe85da89ddbfbeda87080def133e", "score": "0.7675045", "text": "@Override\n\tpublic void setFocus() {\n\n\t}", "title": "" }, { "docid": "c76bfe85da89ddbfbeda87080def133e", "score": "0.7675045", "text": "@Override\n\tpublic void setFocus() {\n\n\t}", "title": "" }, { "docid": "c76bfe85da89ddbfbeda87080def133e", "score": "0.7675045", "text": "@Override\n\tpublic void setFocus() {\n\n\t}", "title": "" }, { "docid": "c76bfe85da89ddbfbeda87080def133e", "score": "0.7675045", "text": "@Override\n\tpublic void setFocus() {\n\n\t}", "title": "" }, { "docid": "c76bfe85da89ddbfbeda87080def133e", "score": "0.7675045", "text": "@Override\n\tpublic void setFocus() {\n\n\t}", "title": "" }, { "docid": "c76bfe85da89ddbfbeda87080def133e", "score": "0.7675045", "text": "@Override\n\tpublic void setFocus() {\n\n\t}", "title": "" }, { "docid": "c76bfe85da89ddbfbeda87080def133e", "score": "0.7675045", "text": "@Override\n\tpublic void setFocus() {\n\n\t}", "title": "" }, { "docid": "ba08421763e7e371ad5038f27c0ebd4e", "score": "0.7670624", "text": "@Override\n\tpublic void setFocus() {\n\t}", "title": "" }, { "docid": "57aaa5068be0864041d96d4698d92427", "score": "0.76551026", "text": "@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8c241e4172d43e5f0d378b2d5cb9763c", "score": "0.7648399", "text": "public void setFocus() {\n \n }", "title": "" }, { "docid": "04397f53421481aca9e72ae590301070", "score": "0.7639524", "text": "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "title": "" }, { "docid": "04397f53421481aca9e72ae590301070", "score": "0.7639524", "text": "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "title": "" }, { "docid": "260d78880b299b41a6da1941a583ebca", "score": "0.7631692", "text": "@Override\n\tpublic void setFocus()\n\t{\n\n\t}", "title": "" }, { "docid": "cffdd7d04e42620aef03e8a4d15ea53f", "score": "0.76229936", "text": "@Override\n \tpublic void setFocus() {\n \t}", "title": "" }, { "docid": "a495480b14c6a3f363e42fa806def278", "score": "0.7588217", "text": "@Override\n\tpublic void setFocus() {\n\t\t\n\n\t}", "title": "" }, { "docid": "efeadc74b2fc440446432879669461e6", "score": "0.75808567", "text": "@Override\n \tpublic void setFocus() {\n \t\t\n \t}", "title": "" }, { "docid": "5c84f7b6c2a24d437ffdde04120aba86", "score": "0.7447327", "text": "Control setFocus();", "title": "" }, { "docid": "abb01965a9f9b2cb5a03a19355f9d28e", "score": "0.7442721", "text": "public void setFocus() {\n\n\t}", "title": "" }, { "docid": "72e8bef620428d2de6a423c10b638903", "score": "0.7423454", "text": "public void setFocus() {\n\t}", "title": "" }, { "docid": "961488d2ff964407992a779fc4a9bc68", "score": "0.74138266", "text": "public void setFocus();", "title": "" }, { "docid": "abeee8bef1cfafae4af30f538c14fdd4", "score": "0.7402469", "text": "public abstract void requestFocus();", "title": "" }, { "docid": "ffb194852d4eeebe058cb7074cd0bbd1", "score": "0.730407", "text": "@Override\n public void setFocus() {\n // Do nothing.\n }", "title": "" }, { "docid": "6ef1360da1dae5612095ed42599654a3", "score": "0.72747934", "text": "public abstract void initialFocus();", "title": "" }, { "docid": "86d4ead427f6f9c1b8e5835d752a47c2", "score": "0.715604", "text": "public void focus();", "title": "" }, { "docid": "4a30d4c6c6e9d7ff76c582ce9eb125cf", "score": "0.71483016", "text": "public void setFocus(){\n this.requestFocus();\n }", "title": "" }, { "docid": "3f04aa7361b0bbbb5396ebd6604f9dcb", "score": "0.7117364", "text": "@Override\n\tpublic void focus(boolean change) {\n\t\tif(button == null || !isFocusable()) {\n\t\t\treturn;\n\t\t}\n\n\t\tsetFocused(change);\n\t}", "title": "" }, { "docid": "da5e139ef8fef7bb4e03f5e3d574ad78", "score": "0.7063967", "text": "public void setFocus() {\n\t\t// instance.focus();\n\t}", "title": "" }, { "docid": "c6fd9bb3ec548ef7a6e743c039923866", "score": "0.70059675", "text": "@Override\n\t\tpublic void setFocus(boolean focus) {\n\n\t\t}", "title": "" }, { "docid": "20d514425d2af18382e8004869f0dd8c", "score": "0.69912773", "text": "@Override\n public void setFocus() {\n viewer.getControl().setFocus();\n }", "title": "" }, { "docid": "20d514425d2af18382e8004869f0dd8c", "score": "0.69912773", "text": "@Override\n public void setFocus() {\n viewer.getControl().setFocus();\n }", "title": "" }, { "docid": "37c1ab819ca9b70ed2300341a2c64cfb", "score": "0.6947004", "text": "public void focus(){\r\n \tcontinueButton.setFocus(true);\r\n }", "title": "" }, { "docid": "d4fe1b0e24e6776ecadc270ae2477110", "score": "0.6872995", "text": "public void requestFocus()\n/* */ {\n/* 7428 */ requestFocusHelper(false, true);\n/* */ }", "title": "" }, { "docid": "7ee45219ce92193aa1edd69a250b8995", "score": "0.6867081", "text": "@Override\r\n protected void doSetFocus() {\r\n if (contents == directEditText && directEditText != null) {\r\n directEditText.selectAll();\r\n directEditText.setFocus();\r\n checkSelection();\r\n checkDeleteable();\r\n checkSelectable();\r\n\r\n } else {\r\n spawnEditorButton.setFocus();\r\n\r\n // add a FocusListener to the button\r\n spawnEditorButton.addFocusListener(getButtonFocusListener());\r\n }\r\n }", "title": "" }, { "docid": "211f5fa8c3a881d8d4289e5619e18213", "score": "0.685397", "text": "public void initFocus() {\r\n\t\t\trequestFocus();\r\n\t\t}", "title": "" }, { "docid": "211f5fa8c3a881d8d4289e5619e18213", "score": "0.685397", "text": "public void initFocus() {\r\n\t\t\trequestFocus();\r\n\t\t}", "title": "" }, { "docid": "6a0ee130ce608d5793627dbf0e652987", "score": "0.6834667", "text": "@Override\n\tpublic void setFocus()\n\t{\n\t\tthis.viewer.getControl().setFocus();\n\t}", "title": "" }, { "docid": "f2bb107d20bd0f39515beeca240bab6d", "score": "0.6832795", "text": "public void setFocus() {\n\t//\tviewer.getControl().setFocus();\n\t}", "title": "" }, { "docid": "c65b2caf1195851d6314de714465dc29", "score": "0.6804909", "text": "public void focus() {\n view.setFocus();\n }", "title": "" }, { "docid": "98a658575475371ba022db29189176d6", "score": "0.68007886", "text": "public void setFocus()\r\n {\r\n mViewer.getControl().setFocus();\r\n }", "title": "" }, { "docid": "9ff5bfacb03bf1b01eb382c542815704", "score": "0.6795577", "text": "public void setFocus() {\n \t\tviewer.getControl().setFocus();\n \t}", "title": "" }, { "docid": "9ff5bfacb03bf1b01eb382c542815704", "score": "0.6795577", "text": "public void setFocus() {\n \t\tviewer.getControl().setFocus();\n \t}", "title": "" }, { "docid": "748a4298653eae7b382341d7238f1864", "score": "0.6780423", "text": "public void focus() {\n\t\tframe.get_txt_idaplicacion().requestFocusInWindow();\n\t}", "title": "" }, { "docid": "d36b2badf93bab76640ae29c2b6aa6ee", "score": "0.6772807", "text": "@Override\n public boolean isFocused() {\n return true;\n }", "title": "" }, { "docid": "974b112c377c355b2f77642797e1ad99", "score": "0.6748634", "text": "public void setFocus() {\r\n\t\tviewer.getControl().setFocus();\r\n\t}", "title": "" }, { "docid": "74d0e11d8095d9b8c92e4a5632c5e2f2", "score": "0.6727348", "text": "@Override\n\tpublic void focus() {\n\t\tif (renderer != null && renderer.isEditing()) {\n\t\t\trenderer.focusToFirstEditor();\n\t\t}\n\t}", "title": "" }, { "docid": "89b8cdd8b1d15525ba4f5add9de84167", "score": "0.6725045", "text": "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "title": "" }, { "docid": "89b8cdd8b1d15525ba4f5add9de84167", "score": "0.6725045", "text": "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "title": "" }, { "docid": "89b8cdd8b1d15525ba4f5add9de84167", "score": "0.6725045", "text": "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "title": "" }, { "docid": "89b8cdd8b1d15525ba4f5add9de84167", "score": "0.6725045", "text": "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "title": "" }, { "docid": "89b8cdd8b1d15525ba4f5add9de84167", "score": "0.6725045", "text": "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "title": "" }, { "docid": "62b50a64eed9a67885e7840fd982fca7", "score": "0.6682988", "text": "public void requestFocus() { getWindow().requestFocus(); }", "title": "" }, { "docid": "df76b89bae9d3b8a165be07e28656b4b", "score": "0.6621664", "text": "@Override\n\t\t\t\t\tpublic void onFocusChange(View arg0, boolean arg1) {\n\t\t\t\t\t\tsetFocus(editInput);\n\t\t\t\t\t}", "title": "" }, { "docid": "16c815cbf8e9a4a76bd502e348738b52", "score": "0.6580604", "text": "@Override\n public boolean isFocusable() {\n return true;\n }", "title": "" }, { "docid": "b5cdcb02b182be410f6d628646bc5c71", "score": "0.6579125", "text": "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tfocus.setFocus();\n\t\t\t}", "title": "" }, { "docid": "429929a9df0e4fd0ec64450689ed8f9f", "score": "0.65438706", "text": "Focus createFocus();", "title": "" }, { "docid": "6eaa823a523cb3e6343e02a37a697336", "score": "0.65279466", "text": "@Override\n public void addFocusAction(GralWidget widgetInfo, GralUserAction action, String sCmdEnter,\n String sCmdRelease)\n {\n \n }", "title": "" }, { "docid": "b228f8746ca2e0ce368a2f0fad47dda3", "score": "0.65240675", "text": "void autofocus();", "title": "" }, { "docid": "f21904c2bc5d19641804e1a94330b0c9", "score": "0.65152043", "text": "@Override\n\tpublic boolean isFocused() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f21904c2bc5d19641804e1a94330b0c9", "score": "0.65152043", "text": "@Override\n\tpublic boolean isFocused() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4d16de95cfd47b5379c00bfd17835543", "score": "0.6501707", "text": "void setFieldFocus();", "title": "" }, { "docid": "cfea090c599c1cfd0727db5cac514db1", "score": "0.6493281", "text": "@Focus\r\n\tpublic void setFocus() {\r\n\t\tthis.searchBox.setFocus();\r\n\t}", "title": "" }, { "docid": "797827fde7ebf6c13947435f3ed656c5", "score": "0.64390683", "text": "public void focus() {\n getRoot().requestFocus();\n }", "title": "" }, { "docid": "3c8494eb8118ce4245bbd14bff1a53f8", "score": "0.63774586", "text": "public void focus() {\r\n if (username.getText().trim().length() > 0) {\r\n password.setFocus(true);\r\n } else {\r\n username.setFocus(true);\r\n }\r\n }", "title": "" }, { "docid": "27ddfe3000c867545d6d656d877399a0", "score": "0.63723534", "text": "public void requestFocus()\n/* */ {\n/* 9588 */ Component.this.requestFocus();\n/* */ }", "title": "" }, { "docid": "1a85c924e9df445a08a91bd18737f214", "score": "0.63656825", "text": "@Override\n public void onFocusChange(View view, boolean b) {\n }", "title": "" }, { "docid": "52ff946c12b41759eaf003c0ee55cf2a", "score": "0.6365032", "text": "public void focus(){\n\t\tframe.get_txt_idusuario().requestFocusInWindow();\n\t}", "title": "" }, { "docid": "4865ff659592e0485802cc1b7734ce78", "score": "0.630663", "text": "void requestFocusOnState() {\n txtState.requestFocus();\n }", "title": "" }, { "docid": "a63c1ffc397fa73f121f4d2d55470d00", "score": "0.6295947", "text": "public void resetFocus() {\n this.focus = getRootFocus();\n }", "title": "" }, { "docid": "0aad620abc4783376866ba1cb3966ea0", "score": "0.62933135", "text": "public void setFocus(ILocated located);", "title": "" }, { "docid": "fe9effd054df19f17f793faf9d9d0f0d", "score": "0.62813133", "text": "public void setFocus() \n {\n txtLogIn.requestFocus();\n }", "title": "" }, { "docid": "c37a60663e3281fed89d1a4f4983628e", "score": "0.62803715", "text": "public void setFocus() {\n if (!verifyCode) {\n if (textViewer != null) {\n textViewer.getTextWidget().setFocus();\n }\n } else {\n if (tableControl != null) {\n tableControl.setFocus();\n }\n }\n }", "title": "" }, { "docid": "cb25c31d1dc894c4ff0a161b77703e0a", "score": "0.6268156", "text": "protected void setFocusState() {\r\n\t\tinputPanel.addStyleName(\"focusState\");\r\n\t\tinputPanel.removeStyleName(\"emptyState\");\r\n\t\tinputPanel.removeStyleName(\"errorState\");\r\n\t}", "title": "" }, { "docid": "27d0a47ce2071f849a0e7485729491cf", "score": "0.62531966", "text": "public void requestFocusGUI() {\n\t\t\n\t}", "title": "" }, { "docid": "694c7c0a9aff2b89254b9b65f0770a91", "score": "0.62340665", "text": "protected void setFocus(UIComponent uiComponent) {\n pushJavaScript(getComponentForJS(uiComponent) + \".focus();\");\n }", "title": "" }, { "docid": "6bb449eee2e31c6497ae48a2c1667adc", "score": "0.6233414", "text": "public void requestFocusForplugsTextField() {\n\t\tplugsTextField.requestFocusInWindow();\n\t}", "title": "" }, { "docid": "61e3851b2fd267f9352e0c62958c2162", "score": "0.6231022", "text": "protected void getFocus()\n {\n mouseOver(findAndWait(DASHLET_CONTAINER_PLACEHOLDER));\n }", "title": "" }, { "docid": "ed2929bf3ad49438ebf7148a4d7ff754", "score": "0.6196969", "text": "protected abstract Component getFirstFocus();", "title": "" }, { "docid": "f525e065baae93b670261b6241e363df", "score": "0.6185658", "text": "public void setFocusMode(String value) {\n/* 2046 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "683848b1369789f6e8ec7b254f0a1036", "score": "0.61758256", "text": "public void requestFocusToTernaryPhone() {\n txtPhone3.requestFocus();\n }", "title": "" }, { "docid": "9fcb574507edfdfc937fa4e28e7a57f6", "score": "0.61631936", "text": "public ILocated getFocus();", "title": "" }, { "docid": "d059f057a42a7ad6f5490fc6af04e407", "score": "0.61555403", "text": "@SimpleEvent\n void GotFocus();", "title": "" }, { "docid": "d3cd9720776446dbcce2dc0706d6bb67", "score": "0.61549586", "text": "public void setFocus() {\r\n // select the whole resource name.\r\n resourceNameField.setSelection(0, resourceNameField.getText().length());\r\n resourceNameField.setFocus();\r\n }", "title": "" }, { "docid": "d61820b1fb884e5e9002bbe499aa0c7b", "score": "0.6153909", "text": "@Override\n protected void onAttachedToWindow() {\n requestFocus();\n super.onAttachedToWindow();\n }", "title": "" }, { "docid": "19e01f84693ec577ef81f9bb6bcc1766", "score": "0.6138685", "text": "@Override\n public GralWidget addFocusAction(String sName, GralUserAction action, String sCmdEnter,\n String sCmdRelease)\n {\n return null;\n }", "title": "" }, { "docid": "9b2751947766389bb67318ac2065d6bc", "score": "0.61323214", "text": "public void focus(String[] params) {\n }", "title": "" }, { "docid": "c87ae1aceb31ec591997c179d893d82c", "score": "0.611616", "text": "String getOnFocus();", "title": "" }, { "docid": "970a1acee319be634f38adb9873e7f83", "score": "0.60933", "text": "public boolean setFocus()\n \t{\n \t\t// For us, we focus on the combo box, where the user types commands.\n \t\tm_CommandCombo.setFocus() ;\n \t\t\n \t\treturn true ;\n \t}", "title": "" }, { "docid": "b044a33b2185d3cc4ea1c23a808b151b", "score": "0.6091556", "text": "private void setFocus(){\n\t\tdialog.addWindowListener(new WindowAdapter(){\n\t\t\t@Override\n\t\t\tpublic void windowOpened(WindowEvent event){\n\t\t\t\tnameFieldRequestFocus();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "904784667318fb8efb3bdef497e214f9", "score": "0.60848105", "text": "public void requestFocus () {\n list.requestFocus();\n }", "title": "" }, { "docid": "8bfaf7da69c4fb95ba369bb0cac4de43", "score": "0.6084028", "text": "public String getCommand(){\n return \"IncSpecFocus\";//super.getCommand();\n }", "title": "" }, { "docid": "facf560fecf0f9601f38869e0a26ff34", "score": "0.60613245", "text": "public void setFocusBorder(Border focusBorder){\r\n\t\tthis.focusBorder = focusBorder;\r\n\t\teditButton.setBorder( focusBorder );\r\n\t}", "title": "" }, { "docid": "41433a5d66f97e0a6fb81adf38f38fb8", "score": "0.6058543", "text": "public void applyTextFieldFocusAction(Scene screen, TextField textField) {\n\t\tscreen.setOnMousePressed(event -> {\n\t\t\tif (!textField.equals(event.getSource())) {\n\t\t\t\ttextField.getParent().requestFocus();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "5b7f3b59a04b1c29e5249386599328d9", "score": "0.6053948", "text": "public void requestFocusToPrimaryPhone() {\n txtPhone1.requestFocus();\n }", "title": "" }, { "docid": "153493078cffba5455409ff6d3efd6bd", "score": "0.6049823", "text": "public void focusComponent(GUIComponent c) {\n getView(c).requestFocus();\n getView(c).restoreFocus();\n }", "title": "" }, { "docid": "7605dbe6ad68bf3ef9e6a513eda4db7b", "score": "0.60484356", "text": "public void requestFocus()\n\t{\n\t\tif (OSType.getOSType() == OSType.MacOS)\n\t\t{\n\t\t\tOSXUtil.requestFocus();\n\t\t}\n\n\t\tframe.requestFocus();\n\t\tgiveClientFocus();\n\t}", "title": "" }, { "docid": "7093bb3c7045f9b2d99dad299737dd5e", "score": "0.60382104", "text": "@Override\n public void addNotify() {\n super.addNotify();\n requestFocus();\n }", "title": "" }, { "docid": "1346578063b8a458e29d6f72120d0f21", "score": "0.60302997", "text": "@Test\n public void focus() {\n focusImpl.focus(e);\n }", "title": "" } ]
f9ef49b1d673a1410631a620ce5d173a
repeated .wire.Value args = 1;
[ { "docid": "385d6a59a43dacfb89c1c46baa0ebe2c", "score": "0.4761299", "text": "int getArgsCount();", "title": "" } ]
[ { "docid": "7cc50f7c08830c584e16faad657d3882", "score": "0.7258729", "text": "godot.wire.Wire.Value getArgs(int index);", "title": "" }, { "docid": "ab7e67bb73550f9bc8ebce2018ea71b3", "score": "0.57480764", "text": "java.util.List<godot.wire.Wire.Value> \n getArgsList();", "title": "" }, { "docid": "1f98f4c819f32b54692b3e1f0c5dadd1", "score": "0.5717414", "text": "@Override\n public int getNumberArguments() {\n return 1;\n }", "title": "" }, { "docid": "14aa93b44aa6414fe9eb25e20848f687", "score": "0.5659248", "text": "AstroArg unpack(Astro litChars);", "title": "" }, { "docid": "9268591864520b60617adaa4647e3399", "score": "0.5605724", "text": "void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);", "title": "" }, { "docid": "8dce141e8f82e239a46a68df85ed8093", "score": "0.5571621", "text": "@java.lang.Override\n public godot.wire.Wire.Value getArgs(int index) {\n return args_.get(index);\n }", "title": "" }, { "docid": "3f81296cb06b04f7b2a9b6f10f7727f5", "score": "0.55710185", "text": "godot.wire.Wire.Value getData();", "title": "" }, { "docid": "3e268083f5b188216133e29b069f3fa8", "score": "0.55425614", "text": "godot.wire.Wire.ValueOrBuilder getArgsOrBuilder(\n int index);", "title": "" }, { "docid": "b9937529b81e5f8c8148725a5d0b56e9", "score": "0.54381335", "text": "Astro bag(AstroArg args);", "title": "" }, { "docid": "f5b7b00cfaeb5a919382d827fef4ede9", "score": "0.5426649", "text": "int mo5866a(State state, String... strArr);", "title": "" }, { "docid": "ba06132bdf22de7e17aa0e5714f594f8", "score": "0.5423193", "text": "com.google.protobuf.ByteString getArguments(int index);", "title": "" }, { "docid": "e92da1ce9ee9b5c6bb0635a5907d940c", "score": "0.5397097", "text": "godot.wire.Wire.ValueOrBuilder getDataOrBuilder();", "title": "" }, { "docid": "9313cbf5173a5bf12dad94f4c60c05f6", "score": "0.5290647", "text": "Object[] args();", "title": "" }, { "docid": "bc501ac3220ab9f7a34d636a997278f7", "score": "0.52314556", "text": "@java.lang.Override\n public java.util.List<godot.wire.Wire.Value> getArgsList() {\n return args_;\n }", "title": "" }, { "docid": "f76e5aa8fc9ade53c21f7fc57fb6f67e", "score": "0.523141", "text": "public Recv_args() {\r\n\t\tsuper();\r\n\t\trecv_args = new BRecv_args();\r\n\t}", "title": "" }, { "docid": "9a4ede73efd64445e8f5cf933fa055ee", "score": "0.51820123", "text": "@Override\n public int getArgLength() {\n return 4;\n }", "title": "" }, { "docid": "11134bdea39a717b9cb271c00d3ad155", "score": "0.51262105", "text": "public String visit(MessageSend n, LLVMRedux argu) throws Exception {\n int i=0;\n String primex_res = n.f0.accept(this, argu);\n Function f = scopeSearch(u.getRegType(primex_res)).getFunction(n.f2.accept(this, argu));\n\n ArrayList<String> localArgList;\n //bitcast\n String bitcast = u.getReg();\n u.println(bitcast+\" = bitcast i8* \"+primex_res+\" to i8***\");\n //load bitcasted to new reg (vtable)\n String load = u.getReg();\n u.println(load+\" = load i8**, i8*** \"+bitcast);\n //getelemntptr from above reg and the functoffset\n String gepr = u.getReg();\n u.println(gepr+\" = getelementptr i8*, i8** \"+load+\", i32 \"+f.offset);\n //get actual funct ptr load new ptr i8* above ptr\n String loader2 = u.getReg();\n u.println(loader2+\" = load i8*, i8** \"+gepr);\n //String functId = ;\n String bitcast2 = u.getReg();\n //if has only one argument copy paste command below without comma and closed parentheses\n if(f.arguments.size()==0){\n u.println(bitcast2+\" = bitcast i8* \"+loader2+\" to \"+u.javaTypeToLLVMType(f.returnType)+\"(i8*)*\");\n }else{\n u.print(bitcast2+\" = bitcast i8* \"+loader2+\" to \"+u.javaTypeToLLVMType(f.returnType)+\"(i8*, \");\n //else c&c c&v comm above & loop\n for (Variable v: f.arguments){\n u.simpleInlinePrint(u.javaTypeToLLVMType(v.type));\n if (!(i==f.arguments.size()-1))u.simpleInlinePrint(\", \");\n i++;\n }\n u.simplePrint(\")*\");\n }\n\n argStack.add(new ArrayList<>());\n argStackIndex++;\n n.f4.accept(this, argu);\n String rvalue= u.getReg(f.returnType);\n if(f.arguments.size()==0){\n u.println(rvalue+\" = call \"+u.javaTypeToLLVMType(f.returnType)+\" \"+bitcast2+\"(i8* \"+primex_res+\")\");\n }else{\n\n u.print(rvalue+\" = call \"+u.javaTypeToLLVMType(f.returnType)+\" \"+bitcast2+\"(i8* \"+primex_res+\", \");\n localArgList = argStack.get(argStackIndex);\n for (i=0;i<f.arguments.size();i++){\n u.simpleInlinePrint(u.javaTypeToLLVMType(f.arguments.get(i).type)+\" \"+localArgList.get(i));\n if (!(i==f.arguments.size()-1))u.simpleInlinePrint(\", \");\n }\n u.simplePrint(\")\");\n }\n\n argStackIndex--;\n argStack.remove(argStack.size()-1);\n return rvalue;\n }", "title": "" }, { "docid": "fc4572f9c221ddfb6899d73eda573315", "score": "0.51230586", "text": "void emit(int i) {}", "title": "" }, { "docid": "956add62ae7893bf4e6f975e53ce1033", "score": "0.51024705", "text": "void method_52(Message var1);", "title": "" }, { "docid": "b10fc83d42e4c2b6cd86b1b180933e88", "score": "0.5088459", "text": "@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "da7ee32e4aef2c565afca23aa41690e9", "score": "0.5087152", "text": "public Object[] getArguments() { return args;}", "title": "" }, { "docid": "819504a5c4c6ee900862c9857b6399b5", "score": "0.50703704", "text": "public void messageHandle(int[] cubeletValues);", "title": "" }, { "docid": "3e4e9794340dfffd863d0fcddf8283c3", "score": "0.50667286", "text": "void send(StrictBitVector messageZero, StrictBitVector messageOne);", "title": "" }, { "docid": "d7c8e167c266a86c796a2f1aa0a8f60c", "score": "0.5065744", "text": "@Override\n public void onContinueWithArgumentRequest(ContinueWithArgumentRequest ind) {\n\n }", "title": "" }, { "docid": "4dd06e0714ce71c559f2bd6513049700", "score": "0.50478923", "text": "public void varArg(int ... i) {\n System.out.println(\"Multi arg method\");\n }", "title": "" }, { "docid": "604e59bbe5a95f9b00dd6f6a2e9755df", "score": "0.5037532", "text": "com.google.protobuf.ByteString\n\t\tgetArgBytes();", "title": "" }, { "docid": "8a4654ea60b7cbad64b3fcfa10125825", "score": "0.50320834", "text": "AstroArg seq(AstroArg first,\n AstroArg second,\n AstroArg third,\n AstroArg fourth);", "title": "" }, { "docid": "099ed693225ea870e17e7404c8778ab7", "score": "0.5030264", "text": "public int getTypeArgumentIndex() {\n/* 440 */ return this.value & 0xFF;\n/* */ }", "title": "" }, { "docid": "7bc7c56cf987b07d890ccf8af0e29fa2", "score": "0.5028927", "text": "private void genArgRepMutantGen(MethodCallExpr me,Expression ex,int pos){\n\n MethodCallExpr mutantMulti = me.clone();\n BinaryExpr binaryExpr2 = new BinaryExpr(ex,ex, BinaryExpr.Operator.MULTIPLY);\n mutantMulti.setArgument(pos,binaryExpr2);\n outputToFile(me,mutantMulti);\n }", "title": "" }, { "docid": "15138abd8943770d80ebe7783a74fb96", "score": "0.5022658", "text": "public Sock( /*int n , int ar[]*/)\n{\n\t//this.n=n;\n\t//this.ar=ar;\n}", "title": "" }, { "docid": "8470512d901f2cfd9e2ebdadb0fc0c6d", "score": "0.5020156", "text": "AstroArg seq(AstroArg first, AstroArg second, AstroArg third);", "title": "" }, { "docid": "766cbd4b8ee66bf039ec0c08dc963247", "score": "0.5015971", "text": "@java.lang.Override\n public godot.wire.Wire.ValueOrBuilder getArgsOrBuilder(\n int index) {\n return args_.get(index);\n }", "title": "" }, { "docid": "7ff0425a18fb4910bcd6d88286cefef3", "score": "0.49845773", "text": "public EmbeddedChannel(ChannelHandler... handlers) {\n/* 100 */ this(EmbeddedChannelId.INSTANCE, handlers);\n/* */ }", "title": "" }, { "docid": "1bdb0ef7ad534125bfacfc90ef24fd41", "score": "0.49824747", "text": "Astro tuple(AstroArg args);", "title": "" }, { "docid": "47aa1656408d7f022dd8e0069b5d0a19", "score": "0.49771023", "text": "public CALL(Exp f, ExpList a) {func=f; args=a;}", "title": "" }, { "docid": "8ac6ea2dc14cbb782fc8e095b3eacbfc", "score": "0.49685177", "text": "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "title": "" }, { "docid": "673d7f75ba8108dd2db5d1106ca21cfe", "score": "0.49633133", "text": "MyArg(int value){\n this.value = value;\n }", "title": "" }, { "docid": "58442f4048afabbe63bddac8a29cae7d", "score": "0.49560654", "text": "void mo23214a(Message message);", "title": "" }, { "docid": "ddb0fca7c5d531abebc329b270278dc7", "score": "0.4950933", "text": "public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}", "title": "" }, { "docid": "4abbca442fbb2a4506d7f49cb0afdf8d", "score": "0.4926413", "text": "public interface Icmd {\n void excute(Object... params);\n}", "title": "" }, { "docid": "09da2b486d93129c57d34f34d1efeec8", "score": "0.49207553", "text": "public void receiveGeneratedData(byte[] arg0) {\n\t}", "title": "" }, { "docid": "d740ec0bac3f9c80e9bed07347990f22", "score": "0.49079493", "text": "public static void test() {\n\t\tbyte[] get = makeACommandByte(1,(byte) 0x01, (byte) 0x03);\n\t\tfor (int i = 0; i < get.length; i++) {\n\t\t}\n\t}", "title": "" }, { "docid": "b0845c254ce3e433ed6c63dffc93aafb", "score": "0.49036402", "text": "public interface IProcessor {\n\n Object onMsgHandle(int cmdId, Object... arg);\n}", "title": "" }, { "docid": "622a2b2bb537b8b5c8ae950af5a9f32c", "score": "0.48918647", "text": "@Override\n\tpublic void run(String... args) throws Exception {\n\t\tsender.send();\n\t\tsender.send(123);\n\t}", "title": "" }, { "docid": "288e77a7c1b83f76bffe9e46cc3ed651", "score": "0.48894954", "text": "public abstract Result mo5059a(Params... paramsArr);", "title": "" }, { "docid": "7d25f678a42c7c6e0d58843803da7b8d", "score": "0.4883969", "text": "netty.framework.messages.TestMessage.TestRequest getRequest();", "title": "" }, { "docid": "dee44834f7a9a63211f40a364ec3b896", "score": "0.48812816", "text": "uicargs createuicargs();", "title": "" }, { "docid": "a4d6ddcfcc26f863795889565c4b20a8", "score": "0.4880152", "text": "public Recv_args(String arg1, String arg2) {\r\n\t\tsuper();\r\n\t\trecv_args = new BRecv_args(arg1, arg2);\r\n\t}", "title": "" }, { "docid": "8256deeebd6ff4b64e0b7508f9f819ec", "score": "0.48791578", "text": "public abstract int mo12577RQ(int i);", "title": "" }, { "docid": "d63981b0e012a31361fe87eb6282fa56", "score": "0.4876354", "text": "org.tensorflow.proto.framework.FullTypeDef getArgs(int index);", "title": "" }, { "docid": "14852439610e02ea7e7577da1c73db6e", "score": "0.48617467", "text": "public static void main(String [] args) {\n\t\tFlux<Integer> reactiveStream = Flux.range(1, 5).log();\n\n\t\t//now we subscribe to the to this stream to consume the generated values \n\t\treactiveStream.subscribe();\n\n\t\t//using the take approach we can say to flux that just take a specific number of events in the stream.\n\t\t//the take method also cancel the stream after 3 events\n\t\treactiveStream = Flux.range(1, 5).log().take(3);\n\n\t\t//now we subscribe to the to this stream to consume the generated values \n\t\treactiveStream.subscribe();\n\t\t\n //with this approach the stream will complete this is because we observe the output of using take() instead of what was requested by this method.\n\t\treactiveStream = Flux.range(1, 5).take(3).log();\n\t\t\n\t\t//now we subscribe to the to this stream to consume the generated values \n\t\treactiveStream.subscribe();\n\n\t}", "title": "" }, { "docid": "e4f0ad6f96a266721dc9a5cd3a38d52d", "score": "0.48615623", "text": "static public void main(String[] args){\n IA ia = new UberComponent(); IA ia2 = (IA) ia; ia2.SayHello(\",\");\n //--------------------- Check For Symmetry\n IB ia3 = (IB) ia; ia2 = (IA) ia3; ia2.SayHello(\",\"); ia3.SayHello2(\",\");\n //----------- Check For Transitivity\n IC ia4 = (IC) ia3; IA ia5 = (IA) ia4; ia5.SayHello(\",\"); a4.SayHello3(\"m\");\n }", "title": "" }, { "docid": "cd18d1ca043c197f03dbeb642bddd3d2", "score": "0.48613694", "text": "@Parameters\n\tpublic static Collection<ByteBuf> getParams(){\n\t\tByteBuf full = Unpooled.buffer(128);\n\t\tfull.writeInt(0);\n\t\tfull.writeInt(1);\n\t\t\n\t\tByteBuf ill = Unpooled.buffer(128);\n\t\till.writeInt(10);\n\t\t\n\t\treturn Arrays.asList(new ByteBuf[] {\n\t\t\tfull,\n\t\t\till,\n\t\t\tUnpooled.buffer(128),\n\t\t\tnull,\n\t\t});\n\t}", "title": "" }, { "docid": "ee9bdeeaffd167b0a7225b9600ee3f08", "score": "0.48593354", "text": "public static void main(String[] args) {\n\t\tProduce p = new Produce();\n\t\tp.get();\n\t\tp.put();\n\t\tp.send();\n\t}", "title": "" }, { "docid": "fdc990ec65ff1e792f75dd6a9dca9418", "score": "0.4819359", "text": "public static void main(String[] args) {\n\t\tfor (int i = 0; i < 3; i++)\n\t\t\tcreateEndpoint(Webhook.startingDestinationsPort + i);\n\t}", "title": "" }, { "docid": "10c0986d3c553c15d55e246560567da9", "score": "0.4814891", "text": "void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException;", "title": "" }, { "docid": "354c26e9d90dac38a45d1d88c5fa9c4f", "score": "0.4813388", "text": "public int method_4108(Channel var1) {\n return 0;\n }", "title": "" }, { "docid": "6bebcdd8d9f5bc59b0111fd3a81cef3f", "score": "0.48118252", "text": "@java.lang.Override\n public java.util.List<? extends godot.wire.Wire.ValueOrBuilder> \n getArgsOrBuilderList() {\n return args_;\n }", "title": "" }, { "docid": "f72dd7db65e598404ed80dc6fb507dc5", "score": "0.48052493", "text": "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "title": "" }, { "docid": "f72dd7db65e598404ed80dc6fb507dc5", "score": "0.48052493", "text": "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "title": "" }, { "docid": "5511247c9177015c7b95057ba41dd681", "score": "0.47922793", "text": "public byte[] getArgument() {\n return argument;\n }", "title": "" }, { "docid": "c73f2bec06ea7cee9720fba33ba845a9", "score": "0.47811732", "text": "public void passValue() {\n }", "title": "" }, { "docid": "f02f13b36380bb658cd6769e9d64e34c", "score": "0.47805986", "text": "public static void main(String[] args) {\n\r\n\t\tOperate op=SimpleFactory.getOperate(\"*\");\r\n\t\t\r\n\t\top.number1=1;\r\n\t\top.number2=3;\r\n\t\tSystem.out.println(op.getResult());\r\n\t}", "title": "" }, { "docid": "e289357e0e4fcb0297b4826e3e75a466", "score": "0.4780538", "text": "public void add1() {\r\n value++;\r\n }", "title": "" }, { "docid": "c5561d74892b228ef1b49060f03e1993", "score": "0.47724208", "text": "public int size(){return chain.length+apargs.length+akargs.size();}", "title": "" }, { "docid": "8f14e338d1183ace2929b21e62efc08b", "score": "0.47678962", "text": "@Override\n\tpublic void receive() {\n\t}", "title": "" }, { "docid": "6dc324c2552c31ac0d5726876ecd1209", "score": "0.47668025", "text": "CompositionBuilder<T> setRepeat1(int repeats);", "title": "" }, { "docid": "ef4d9b7de75b775cd38a732a876335d5", "score": "0.47568092", "text": "public godot.wire.Wire.Value getArgs(int index) {\n if (argsBuilder_ == null) {\n return args_.get(index);\n } else {\n return argsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "6ccee9712e1c670464b9c42df41e3ee9", "score": "0.47558516", "text": "static int size_of_call(String passed){\n\t\treturn 3;\n\t}", "title": "" }, { "docid": "a0bdbad2e2d19a74034bf62af282e0fd", "score": "0.47545543", "text": "void mo80456b(Message message);", "title": "" }, { "docid": "f33dd107249c16a2a466ce1eacfcde3e", "score": "0.47540185", "text": "public static void main(String[] args) {\n Integer[] r1 = pickTwo(1, 2, 3);\n r1[0] = 5;\n\n\n }", "title": "" }, { "docid": "3beea3f1f3b5895b9185e9d11da131ba", "score": "0.47510687", "text": "public String visit(MessageSend n, MethodType argu) {\r\n\r\n //argu.SetTransferedArg();\r\n String temp1 = n.f0.accept(this, argu);\r\n this.callCounter++;\r\n String classType = this.callMap.get(callCounter);\r\n //String classType = argu.getThisType();\r\n //argu.CleanTransferedArg();\r\n //System.out.println(classType);\r\n\r\n n.f2.accept(this, argu);\r\n Integer vtableOffset = methodOffsets.get(classType + \".\" + n.f2.f0.toString())/8;\r\n\r\n emit(\"; \" + classType + \".\" + n.f2.f0.toString() + \" \" + \": \" + vtableOffset.toString() + \"\\n\");\r\n String temp2 = newTemp();\r\n emit(temp2 + \" = bitcast \" + temp1 + \" to i8***\\n\");\r\n String temp3 = newTemp();\r\n emit(temp3 + \" = load i8**, i8*** \" + temp2 + \"\\n\");\r\n String temp4 = newTemp();\r\n String temp5 = newTemp();\r\n String temp6 = newTemp();\r\n String temp7 = newTemp();\r\n emit(temp4 + \" = getelementptr i8*, i8** \" + temp3 + \", i32 \" + vtableOffset + \"\\n\");\r\n emit(temp5 + \"= load i8*, i8** \" + temp4 + \"\\n\");\r\n\r\n\r\n emit(temp6 + \" = bitcast i8* \" + temp5 + \" to \" + typeConverter(symbolTable.classes.get(classType).methods.get(n.f2.f0.toString()).returnType) + \" (i8*\");\r\n for(String arg : symbolTable.classes.get(classType).methods.get(n.f2.f0.toString()).arguments.keySet()){\r\n emit(\", \" + typeConverter(symbolTable.classes.get(classType).methods.get(n.f2.f0.toString()).arguments.get(arg)[0]));\r\n }\r\n emit(\")*\\n\");\r\n\r\n n.f4.accept(this, argu);\r\n\r\n emit(temp7 + \" = call \" + typeConverter(symbolTable.classes.get(classType).methods.get(n.f2.f0.toString()).returnType) + \" \" + temp6 + \"(\" + temp1);\r\n for(String arg : argu.tempCallArgumentsCodeG.values()){\r\n emit(\", \" + arg);\r\n }\r\n\r\n\r\n argu.tempCallArgumentsCodeG.clear();\r\n /*\r\n %_4 = bitcast i8* %_3 to i8***\r\n %_5 = load i8**, i8*** %_4\r\n %_6 = getelementptr i8*, i8** %_5, i32 0\r\n %_7 = load i8*, i8** %_6\r\n %_8 = bitcast i8* %_7 to i1 (i8*,i32)*\r\n\t %_9 = call i1 %_8(i8* %_3, i32 16)\r\n */\r\n\r\n emit(\")\\n\");\r\n\r\n return typeConverter(symbolTable.classes.get(classType).methods.get(n.f2.f0.toString()).returnType) + \" \" + temp7;\r\n }", "title": "" }, { "docid": "a69e302adc9302814d4d5a210ec84929", "score": "0.47450766", "text": "java.util.List<? extends godot.wire.Wire.ValueOrBuilder> \n getArgsOrBuilderList();", "title": "" }, { "docid": "fc779bdad5d7cc8d86061f57d98552a4", "score": "0.47314253", "text": "public interface MessageInputChannel extends\r\n Channel<MessageInput, MessageInputChannelAPI>, OneDimensional, MessageCallback {\r\n\r\n}", "title": "" }, { "docid": "6b671957462342a8cb486e11779baa4b", "score": "0.47260442", "text": "public abstract int mo12584RX(int i);", "title": "" }, { "docid": "02bf467a87e094ccd7e0e1b9d9d91171", "score": "0.47233787", "text": "public interface WireloopReward extends RewardInterface {\n /** steps don't cost anything\n * \n * @return constant zero */\n static WireloopReward freeSteps() {\n return (s, a, n) -> RealScalar.ZERO;\n }\n\n /** steps are more expensive than reward along x\n * \n * @return constant zero */\n static WireloopReward constantCost() {\n return (s, a, n) -> RealScalar.of(-1.4); // -1.2\n }\n\n /***************************************************/\n static Scalar id_x(Tensor state) {\n return state.Get(0);\n }\n}", "title": "" }, { "docid": "3bf60d350fd397697d9528717bf5f6d2", "score": "0.47219867", "text": "@Incoming(\"multiplyVariants\")\n @Outgoing(\"wrapSseEvent\")\n public ProcessorBuilder<String, String> multiply() {\n // Multiply to 3 variants of same message\n return ReactiveStreams.<String>builder()\n .flatMap(o ->\n ReactiveStreams.of(\n // upper case variant\n o.toUpperCase(),\n // repeat twice variant\n o.repeat(2),\n // reverse chars 'tnairav'\n new StringBuilder(o).reverse().toString())\n );\n }", "title": "" }, { "docid": "e94a5e2ae76091e26e6e870c7ea974a9", "score": "0.4714921", "text": "public void setArgs(String[] args) {\n this.args = args;\n }", "title": "" }, { "docid": "352b201dc9d26065bc94c2fcb8c678dc", "score": "0.47093973", "text": "public Builder addAllArgs(\n java.lang.Iterable<? extends godot.wire.Wire.Value> values) {\n if (argsBuilder_ == null) {\n ensureArgsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, args_);\n onChanged();\n } else {\n argsBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "5e48d9feb6dc37f00655861cd73075fe", "score": "0.4707472", "text": "public BackwardCommand() {\n setNumParams(NUM_PARAMS);\n }", "title": "" }, { "docid": "23475aab169c8d3103daf3e4b887bdf7", "score": "0.4706056", "text": "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getElementList();", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.46985438", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "58980295a86515d713db63a2bffdf0d0", "score": "0.4695656", "text": "void onSomething(org.jboss.netty.buffer.ChannelBuffer buffer);", "title": "" }, { "docid": "9e40b5aefe091c81afcda39ba96c97ec", "score": "0.4694291", "text": "public static void main( String[] args ) throws UnirestException, InterruptedException\n {\n AirControl Air = new AirControl();\n Air.SetAll(147,\"on\",\"22\",\"off\",\"fraco\");\n Air.GetParams(197);\n //number:3 -> auto\n //number:2 -> fraco\n //number:1 -> medio\n //number:0 -> forte\n }", "title": "" }, { "docid": "d3a96b663e58510131fc1eb2dadca5f2", "score": "0.46903917", "text": "void send(Pack pack) { testing_pack = pack; }", "title": "" }, { "docid": "9fc0b481e85dcf939a932a2b6903e9c2", "score": "0.468904", "text": "public static void main(String[] args) {\n\n\t\t\n\t\tbyte b=3;\n\t\tshort s=34;\n\t\tint i=125;\n\t\t\n\t}", "title": "" }, { "docid": "84fea694d91f5a8baab87e93430bbea8", "score": "0.46880668", "text": "public Builder addArguments(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureArgumentsIsMutable();\n arguments_.add(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9179954452becc15eb9b0236e602963f", "score": "0.46876934", "text": "public java.lang.Object[] getArgs() {\n return args;\n }", "title": "" }, { "docid": "63e160b7cfd5ae79090b3c924869ea6b", "score": "0.46859476", "text": "@Test\n public void testListen_0args() throws Exception {\n System.out.println(\"listen\");\n instance.listen();\n }", "title": "" }, { "docid": "3e5d168815bd8b2fbe480d129f086d99", "score": "0.46808523", "text": "OpFunctionArgAgregate createOpFunctionArgAgregate();", "title": "" }, { "docid": "659267a7e23dba7f136e58f6d33339f2", "score": "0.46789703", "text": "Object[] getArguments();", "title": "" }, { "docid": "659267a7e23dba7f136e58f6d33339f2", "score": "0.46789703", "text": "Object[] getArguments();", "title": "" }, { "docid": "e6e4a5bf300d9b9dc2b3e63c0d30d1f0", "score": "0.4678283", "text": "public interface ControlSequence {\n byte[] getCommand();\n}", "title": "" }, { "docid": "4c408982b3551bec84755b41f1f6fdff", "score": "0.4677836", "text": "AstroArg seq(AstroArg first, AstroArg second);", "title": "" }, { "docid": "98b222a990574113276c4f0034ccf388", "score": "0.46685863", "text": "public void sendMessage(BaseComponent... components) {}", "title": "" }, { "docid": "05e16234b612d8c0880bed3c2d09b221", "score": "0.46666053", "text": "public static void main(String[] args) {\n\t\tshiftValues();\n\t}", "title": "" } ]
0baa35ad341542da0e3f4c10dbea5ea9
clase que contiene los procedimientos que se utilizan mediante jpa para gestionar a "categorias"
[ { "docid": "9ea407775a5d69352e75aa4c7180dfb8", "score": "0.59891236", "text": "@Repository\npublic interface RepositorioCategoria extends JpaRepository<Categoria, Long>{\n \n Categoria findByNombre(String nombre);\n \n @Procedure\n void sp_i_categoria(String nombre, String descripcion);\n \n \n @Query(value = \"SELECT * FROM categoria\", nativeQuery = true)\n List<Categoria> seleccionacategorias();\n \n}", "title": "" } ]
[ { "docid": "718e074ecf63d454b7829df57f879276", "score": "0.64428073", "text": "public interface CategorieService {\n\n /**\n * Save a categorie.\n *\n * @param categorie the entity to save\n * @return the persisted entity\n */\n Categorie save(Categorie categorie);\n\n /**\n * Get all the categories.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<Categorie> findAll(Pageable pageable);\n\n /**\n * Get all the Categorie with eager load of many-to-many relationships.\n *\n * @return the list of entities\n */\n Page<Categorie> findAllWithEagerRelationships(Pageable pageable);\n \n /**\n * Get the \"id\" categorie.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Optional<Categorie> findOne(Long id);\n\n /**\n * Delete the \"id\" categorie.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}", "title": "" }, { "docid": "843a5a1f5bd0bb54be5536e9c8d01905", "score": "0.6375065", "text": "@SuppressWarnings(\"unchecked\")\r\n\t\tprivate void gestionarObjCat(){\r\n\t\t\tfor (EmpleadoConceptoPago empleadoConceptoPago : empleadoConceptoPagos) {\r\n\t\t\t\tif(empleadoConceptoPago.isSeleccionar()){\r\n\t\t\t\t\tEmpleadoConceptoPago nuevoEmConceptoPago= new EmpleadoConceptoPago();\r\n\t\t\t\t\tnuevoEmConceptoPago.setEmpleadoPuesto(empleadoPuesto);\r\n\t\t\t\t\tnuevoEmConceptoPago.setObjCodigo(empleadoConceptoPago.getObjCodigo());\r\n\t\t\t\t\tnuevoEmConceptoPago.setCategoria(empleadoConceptoPago.getCategoria());\r\n\t\t\t\t\tnuevoEmConceptoPago.setMonto(empleadoConceptoPago.getMonto());\r\n\t\t\t\t\tnuevoEmConceptoPago.setUsuAlta(usuarioLogueado.getCodigoUsuario());\r\n\t\t\t\t\tnuevoEmConceptoPago.setFechaAlta(new Date());\r\n\t\t\t\t\tem.persist(nuevoEmConceptoPago);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "2b8f1572d8b2c234a59f4f18d9226024", "score": "0.63434905", "text": "public CategoriaBean() {\r\n categoriaDao = new CategoriaDaoImp();\r\n }", "title": "" }, { "docid": "a39942c837571356d3c20b2c5ade0cec", "score": "0.6190834", "text": "public List<CategoriaDTO> obtenerCategorias() {\n \ttry {\n \t\treturn catDAO.obtenerCategorias();\n \t} catch (DAOExcepcion e) {\n \t\treturn null;\n \t}\n }", "title": "" }, { "docid": "6fb836248b0c17acc427baec2ec01c72", "score": "0.61673635", "text": "public CategoriaService() {\n\n\t\tthis.categoriaDAO = new CategoriaDAO();\n\t}", "title": "" }, { "docid": "533e94a5689ff923e00b062550332f2a", "score": "0.6136168", "text": "public List<CategoryEntity> obtenerCategories(){\r\n List<CategoryEntity> categories = persistence.findAll();\r\n return categories;\r\n }", "title": "" }, { "docid": "796d0f3dee1498222a83f0cec1eeffbf", "score": "0.60647595", "text": "public static List<Categorie> getCategories(){\n EntityManager em = emf.createEntityManager();\n TypedQuery<Categorie> query = em.createQuery(\"Select c from Categorie c\",Categorie.class);\n return query.getResultList();\n }", "title": "" }, { "docid": "eb726506872ffe4bc6617442fdc59641", "score": "0.6000881", "text": "public void cargarClasesDemanda() {\n\n ClaseDemanda cd;\n List<IPersistente> persistentes = new ArrayList<IPersistente>();\n\n cd = new ClaseDemanda();\n cd.setClase(\"Clase A\");\n cd.setNumeroClase(1);\n cd.setL(2);\n persistentes.add(cd);\n\n cd = new ClaseDemanda();\n cd.setClase(\"Clase B\");\n cd.setNumeroClase(2);\n cd.setL(4.5);\n persistentes.add(cd);\n\n cd = new ClaseDemanda();\n cd.setClase(\"Clase C\");\n cd.setNumeroClase(3);\n cd.setL(5);\n persistentes.add(cd);\n\n persistir(persistentes);\n }", "title": "" }, { "docid": "73f8f78f82adbbbd888566fd9f8835ad", "score": "0.5982847", "text": "@Override\n\tpublic List<CategoriaComida> findAll() {\n\t\treturn (List<CategoriaComida>) categoriaComidaDao.findAll();\n\t}", "title": "" }, { "docid": "e3e52f51278024723793220e887a6406", "score": "0.5973633", "text": "public static void main(String[] args) {\n EntityManager manager1 = JPAUtil.createEntityManager();\n \n// JPAUtil.beginTransaction();\n GenericDAO dao = new GenericDAO(manager1, Cultura.class);\n// Cultura cultura = new Cultura();\n// cultura.setNome(\"Alface\");\n// cultura.setCategoria(\"Hortaliça\");\n// cultura.setDescricao(\"Qualidade A\");\n//// \n// Cultura c = (Cultura)dao.findByName(\"Feijão\").get(0);\n// System.out.println(\"Cultura recuperada: \"+c);\n// \n// Setor setor = new Setor();\n// setor.setComprimento(12.00);\n// setor.setLargura(5);\n// setor.setDescricao(\"Cultivo de cereais\");\n// setor.setNome(\"MauMau\");\n// setor.setCultura(c);\n//// \n// Ambiente a = new Ambiente();\n// a.setLuminosity(300f);\n// a.setRecordDate(new Timestamp(new Date().getTime()));\n// a.setTemperature(20f);\n// \n// \n \n// dao.save(setor);\n// \n// ArrayList<Cultura> lista = (ArrayList<Cultura>) dao.findAll();\n// \n// for (Cultura e : lista) {\n// System.out.println(\"Cultura: \"+e.getNome());\n// }\n \n Usuario user = (Usuario) dao.authenticate(\"mauricio\", \"85b46260dceeabc219d3ea85e8beb8f8\");\n \n System.out.println(user);\n// //Busca por um setor especifico\n// Setor s = (Setor) dao.getByID(62L);\n// \n// // Adiciona o ambiente no setor\n// s.getAmbientes().add(a);\n// s.setNome(\"Leguminosas\");\n// \n//// manager.persist(setor); \n// //Atualiza o setor\n// \n// dao.update(s);\n//// manager.getTransaction().commit();\n//// \n//// \n// \n// \n// \n// \n// for (Iterator it = dao.findAll().iterator(); it.hasNext();) {\n// Setor setorx = (Setor) it.next();\n// System.out.println(setorx.toString());\n// }\n// \n// //dao.delete(s);\n// JPAUtil.commit();\n// \n// \n\n \n// ControllerInvoker invoker = new ControllerInvoker();\n// \n// Command cmd = new StartSystemCommand();\n// \n// invoker.storeAndExecuteCommand(cmd);\n \n// Communicator comm = new BluetoothCommunicator();\n// comm.initialize();\n// comm.write(0);\n// \n// try {\n// Thread.sleep(5000);\n// } catch (InterruptedException ex) {\n// Logger.getLogger(Teste.class.getName()).log(Level.SEVERE, null, ex);\n// }\n// comm.write(2);\n \n }", "title": "" }, { "docid": "6c78a23a00189c3ce9d9280fe7e63df8", "score": "0.59505683", "text": "@PostConstruct\n\tpublic void cargar(){ \n\t\tthis.tarea = new TareaEntidad();\n\t\tCompetenciaDatos cd = new CompetenciaDatos();\n\t\tthis.competencias = cd.consultarCompetencias();\n//\t\tSelectItemGroup g1 = new SelectItemGroup(\"Competencias\");\n//\t\tSelectItem[] si = new SelectItem[competencias.size()];\n//\t\tint i=0;\n//\t\tfor(CompetenciaEntidad c : competencias){\n//\t\t\tsi[i] = new SelectItem(c.getId()+\"\",c.getCompetencia());\n//\t\t\ti++;\n//\t\t}\n// g1.setSelectItems(si);\n// this.competencias = new ArrayList<SelectItem>();\n// this.competencias.add(g1);\n\t}", "title": "" }, { "docid": "abb6c8fd626d6772c6b7d33f0712becf", "score": "0.59262806", "text": "public List<Articolo> findAllByCategoria(Categoria categoriaInstance) throws Exception;", "title": "" }, { "docid": "c02752549ca123e72f31c3cdf8ab2b88", "score": "0.59136105", "text": "@Test\r\n\t@Transactional\r\n\tpublic void consultarPiezasPorCategoria() {\r\n\t\tthis.piezaPersistida1.setCategoria(\"PREMIUM\");\r\n\t\tthis.piezaPersistida2.setCategoria(\"PREMIUM\");\r\n\t\t\r\n\t\tassertList(this.dao.findByCategoria(\"PREMIUM\"), this.piezaPersistida1,this.piezaPersistida2);\r\n\t}", "title": "" }, { "docid": "c968cd151088c1c2a12b8c901a1f6606", "score": "0.59088445", "text": "@PostConstruct\r\n\t\tpublic void init() {\r\n\t\t\t\r\n\t\t\tUsuario ad = new Usuario(\"WEB_Manager\",\"54678932R\",\"manager@yahoo.es\",\"672243775\",\"12345\",\"ROLE_USER\",\"ROLE_ADMIN\");\r\n\t\t\t\r\n\t\t\tUsuario u1 = new Usuario(\"Damian Ortiz Barahona\",\"50574692D\",\"demn007@gmail.com\",\"648799392\",\"67890\",\"ROLE_USER\");\r\n\t\t\t\r\n\t\t\tUsuario u2 = new Usuario(\"Paula Rodriguez de Zoluaga\",\"73263327S\",\"prr.zoluaga@wanadoo.com\",\"64537872\",\"123456\", \"ROLE_USER\");\r\n\t\t\t\r\n\t\t\tUsuario u3 = new Usuario(\"Benedicto tercero\",\"59563719W\",\"benedict@plus.com\",\"634522718\",\"1234567\",\"ROLE_USER\"); \r\n\t\t\r\n\t\t\t/*Insertamos 2 coches*/\r\n\t\t\t\r\n\t\t\tCoche c1 = new Coche(\"0830DTJ\", \"OPEL\",\"ASTRA GTC\",\"NEGRO\",\"no\",3,30.000,2009,12000.00);\r\n\t\t\tCoche c2 = new Coche(\"2052GCP\", \"CITROEN\",\"C4\",\"BLANCO\",\"techo solar\",5,10.000,2011,15000.00);\r\n\t\t\t\r\n\t\t\t/*Persisto a los usuarios*/\r\n\t\t\t\r\n\t\t\tusuarioRepository.save(ad);\r\n\t\t\tusuarioRepository.save(u1);\r\n\t\t\tusuarioRepository.save(u2);\r\n\t\t\t\r\n\t\t\t\r\n\t /*Persisto los coches */\r\n\t\t\t\r\n\t\t\tcocheRepository.save(c1);\r\n\t\t\tcocheRepository.save(c2);\r\n\t\t\t\r\n\t\t\t/*Creamos anuncios y los asignamos a los usuarios*/\r\n\t\t\t\r\n\t\t\tAnuncio a1 = new Anuncio(\"Damian Ortiz\",\"Opel Astra GTC de oprotunidad\",\"coche en prefecto estado\",12000.00);\r\n\t\t\tAnuncio a2 = new Anuncio(\"Paula\",\"Citroen C4\",\"Vendo monovolumen\",15000.00);\r\n\t\t\ta1.setUsuario(u1);\r\n\t\t\ta2.setUsuario(u2);\r\n\t\t\ta1.setCoche(c1);\r\n\t\t\ta2.setCoche(c2);\r\n\t\t\t\r\n\t\t\t/*Creamor una oferta de compra */\r\n\t\t\t\r\n\t\t\tOfertaCompra comp1 = new OfertaCompra(\"17/03/2019\", 10.000);\r\n\t\t\tcomp1.setCoche(c1);\r\n\t\t\tcomp1.setUsuario(u3);\r\n\t\t\t\r\n\t\t\tofertaCompraRepository.save(comp1);\r\n\t\t\t\r\n\t\t\t/*Creamos una venta */\r\n\t\t\t\r\n\t\t\tVenta venta1 = new Venta(\"18/03/2019\", 10.000);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tventa1.setVendedor(u1);\r\n\t\t\tventa1.setComprador(u3);\r\n\t\t\t\t\t\t\r\n\t\t\tventa1.setCoche(c1);\r\n\t\t\t\r\n\t\t\t//Persisto los anuncios p1,p2,p3\r\n\t\t\trepository.save(a1);\r\n\t\t\trepository.save(a2);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t//Persisto las ventas de los usuarios\r\n\t\t\t\r\n\t\t\tventaRepository.save(venta1);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "f98a1c1ff483e2048864b873c6ef5070", "score": "0.58824515", "text": "public desempenoBajoBean() {\r\n createCategoryModel();\r\n }", "title": "" }, { "docid": "c1f35122d44265dc0e772a3076422f08", "score": "0.5873238", "text": "public ArrayList<Producto> findAllByCategoria(Categoria categoria);", "title": "" }, { "docid": "49dde75196edf4bdf439e83c431e8b7b", "score": "0.58707505", "text": "private void crearClasesSQL ()\n\t{\n\t\tsqlVisitante = new SQLVisitante(this);\n\t\tsqlVisita = new SQLVisita(this);\n\t\tsqlUtil = new SQLUtil(this);\n\t\tsqlEspacio = new SQLEspacio(this);\n\t\tsqlCentroComercial = new SQLCentroComercial(this);\n\t\tsqlTipoVisitante = new SQLTipoVisitante(this);\n\t\tsqlLocalComercial = new SQLLocalComercial(this);\n\t\tsqlEstadoVisitante = new SQLEstadoVisitante(this);\n\t\tsqlEstadoEspacio = new SQLEstadoEspacio(this);\n\t}", "title": "" }, { "docid": "c499653d4b9cbf72cb128a8ee9dbe4df", "score": "0.5858549", "text": "@Local\r\npublic interface CategoryFacade {\r\n\t public Collection<?> listAllCategories();\r\n\t public void addCategory(String name, String description, SuperadministratorJPA superadministrator);\r\n\t public void updateCategory(int id, String name, String description, SuperadministratorJPA superadministrator);\r\n\t public CategoryJPA showCategory(int id);\r\n\t public Collection<?> listAllSuperadministradors();\r\n\t public SuperadministratorJPA showAdministrador(int id);\r\n\r\n}", "title": "" }, { "docid": "1d17391d7d2e34c78d0d292f420e3322", "score": "0.5830514", "text": "@Override\n\tpublic ArrayList<BeanControldeProduccion> listarOrdenServicioCategoria(\n\t\t\tMap<String, Object> parametros) throws DataAccessException {\n\t\tSystem.out.println(\"Obtener datos de la grilla por la categoria de la orden de servicio\");\n\t\tListar_ordenservicio_categorias sp = new Listar_ordenservicio_categorias(getDsPrueba());\n\t\treturn sp.executeProcedure(parametros);\n\t}", "title": "" }, { "docid": "da7a8533037ac7c11d0e3ad068350701", "score": "0.58155125", "text": "public interface CategorieService {\n void saveCategorie(Categorie categorie);\n Categorie getCategorieByName(long id);\n Categorie getCategorieByName(String name);\n List<Categorie> getAllCategories();\n List<Categorie> getCategorieByFamilly(String familly);\n void updateCategorie(Categorie categorie);\n void deleteCategorie(Categorie categorie);\n}", "title": "" }, { "docid": "68831749823742f2030af41e8872055a", "score": "0.57749546", "text": "public interface ProductoRepository extends CrudRepository<Producto, Integer>{\n\t/**\n\t * M&eacute;todo para encontrar una todos los Producto que tengan la Categoria recibido\n\t * @param categoria - categoria de la que se quieren sacar los productos\n\t * @see Categoria\n\t * @return La lista de pedidos de encontrada\n\t * */\n\tpublic ArrayList<Producto> findAllByCategoria(Categoria categoria);\n}", "title": "" }, { "docid": "dd159032e21a7442712a893d5444d3dc", "score": "0.5768881", "text": "public void buscaSubCategorias() {\n\t\tRequestContext.getCurrentInstance().execute(\"$('#formCnfirma').hide();\");\n\t\tReferenciaLogica objLogica = new ReferenciaLogica();\n\t\ttry {\n\t\t\t// Logica para el mapa de subcategorias\n\t\t\tList<ReferenciaEntity> listRefe = objLogica.obtieneReferenciasXcate(idCate);\n\t\t\tthis.listaMapSubCate = null;\n\t\t\tif (listRefe != null) {\n\t\t\t\tfor (ReferenciaEntity referencia : listRefe) {\n\t\t\t\t\tif (this.listaMapSubCate == null) {\n\t\t\t\t\t\tthis.listaMapSubCate = new LinkedHashMap<>();\n\t\t\t\t\t}\n\t\t\t\t\tthis.listaMapSubCate.put(referencia.getDescripcion(), referencia.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Logica para el mapa de marcas\n\t\t\tMarcaLogica objLogM = new MarcaLogica();\n\t\t\tList<MarcaEntity> listaMarcas = objLogM.consultaMarcasXCategoria(idCate);\n\t\t\tif (listaMarcas != null) {\n\t\t\t\tlistaMapMarca = null;\n\t\t\t\tfor (MarcaEntity marca : listaMarcas) {\n\t\t\t\t\tif (listaMapMarca == null) {\n\t\t\t\t\t\tthis.listaMapMarca = new LinkedHashMap<>();\n\t\t\t\t\t}\n\t\t\t\t\tthis.listaMapMarca.put(marca.getDescripcion(), marca.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "e18f1b656f89fbf2170eb3d292637842", "score": "0.57498777", "text": "public void ListarCombos(){\r\n // MascotaPorClienteDao mascotaPorClienteDao=new MascotaPorClienteDao();\r\n PersonalDao personaldao= new PersonalDao();\r\n MascotaDao mascotaDao=new MascotaDao();\r\n ClienteDao clientedao= new ClienteDao();\r\n TipoAtencionDao tipoAtencionDao=new TipoAtencionDao();\r\n \r\n listarPersonal= personaldao.listarPersonal();\r\n listaclientes= clientedao.listarCliente();\r\n listamascotas=mascotaDao.listarMascotas();\r\n listartipoatencion=tipoAtencionDao.listarTipoAtencion();\r\n // listaMascota=mascotaPorClienteDao.listarMascotaPorClientes();\r\n \r\n }", "title": "" }, { "docid": "6b7de37a8a24a9db2bf84ce66b073ec2", "score": "0.57146394", "text": "public interface PathogenesisDAO extends JpaDao<Pathogenesis> {\n\n\t/**\n\t * JPQL Query - findPathogenesisByDescribContaining\n\t *\n\t */\n\tpublic Set<Pathogenesis> findPathogenesisByDescribContaining(String describ) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByDescribContaining\n\t *\n\t */\n\tpublic Set<Pathogenesis> findPathogenesisByDescribContaining(String describ, int startResult, int maxRows) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByTypeContaining\n\t *\n\t */\n\tpublic Set<Pathogenesis> findPathogenesisByTypeContaining(String type) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByTypeContaining\n\t *\n\t */\n\tpublic Set<Pathogenesis> findPathogenesisByTypeContaining(String type, int startResult, int maxRows) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByDescrib\n\t *\n\t */\n\tpublic Set<Pathogenesis> findPathogenesisByDescrib(String describ_1) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByDescrib\n\t *\n\t */\n\tpublic Set<Pathogenesis> findPathogenesisByDescrib(String describ_1, int startResult, int maxRows) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByPathogenesisField\n\t *\n\t */\n\tpublic Set<Pathogenesis> findPathogenesisByPathogenesisField(String pathogenesisField) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByPathogenesisField\n\t *\n\t */\n\tpublic Set<Pathogenesis> findPathogenesisByPathogenesisField(String pathogenesisField, int startResult, int maxRows) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByType\n\t *\n\t */\n\tpublic Set<Pathogenesis> findPathogenesisByType(String type_1) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByType\n\t *\n\t */\n\tpublic Set<Pathogenesis> findPathogenesisByType(String type_1, int startResult, int maxRows) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findAllPathogenesiss\n\t *\n\t */\n\tpublic Set<Pathogenesis> findAllPathogenesiss() throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findAllPathogenesiss\n\t *\n\t */\n\tpublic Set<Pathogenesis> findAllPathogenesiss(int startResult, int maxRows) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByPrimaryKey\n\t *\n\t */\n\tpublic Pathogenesis findPathogenesisByPrimaryKey(Integer id) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByPrimaryKey\n\t *\n\t */\n\tpublic Pathogenesis findPathogenesisByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisById\n\t *\n\t */\n\tpublic Pathogenesis findPathogenesisById(Integer id_1) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisById\n\t *\n\t */\n\tpublic Pathogenesis findPathogenesisById(Integer id_1, int startResult, int maxRows) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByPathogenesisFieldContaining\n\t *\n\t */\n\tpublic Set<Pathogenesis> findPathogenesisByPathogenesisFieldContaining(String pathogenesisField_1) throws DataAccessException;\n\n\t/**\n\t * JPQL Query - findPathogenesisByPathogenesisFieldContaining\n\t *\n\t */\n\tpublic Set<Pathogenesis> findPathogenesisByPathogenesisFieldContaining(String pathogenesisField_1, int startResult, int maxRows) throws DataAccessException;\n\n}", "title": "" }, { "docid": "65a64c284ef4b719cc4de746309eebbc", "score": "0.5713506", "text": "@Override\n\tpublic CategoriaContenido agregarCategoriaDeContenido(CategoriaContenido categoriaContenido) {\n\t\t new CategoriaContenidoJpaController().create(categoriaContenido);\n\t\t return categoriaContenido;\n\t}", "title": "" }, { "docid": "05667522809e398fdedbba35559288da", "score": "0.5687454", "text": "public interface ICategoriaService {\r\n\r\n\tpublic List<Categoria> obtenerCategorias();\r\n\t\r\n\tpublic Categoria crearCategoria(Categoria categoria);\r\n\t\r\n}", "title": "" }, { "docid": "a4f46d874d3551587bf0e49652fb4d70", "score": "0.56752425", "text": "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CategoryRepository extends JpaRepository<Category, Long> {\n\n Set<Category> findAllByParentCategory(Category category);\n\n}", "title": "" }, { "docid": "3c5ab13d065ad35f0b475d934b9d7871", "score": "0.56626934", "text": "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CategoryRepository extends JpaRepository<Category, Long>, JpaSpecificationExecutor<Category> {\n\n /*获取分类左侧导航*/\n @Query(value = \"SELECT c.id AS firstid,c.name AS firstidName from category c WHERE c.parent_id=0 and c.deleted=0\",nativeQuery = true)\n public List<Map<String,String>> getRootCategory();\n\n /*获取二级和三级分类*/\n @Query(value = \"SELECT b.id AS secondid, b. NAME AS secondName, c.id AS thirdid, c.parent_id AS parentid, IFNULL(c.target,\\\"\\\") AS target, IFNULL(c.target_type,\\\"\\\") AS target_type, IFNULL(c. NAME, \\\"\\\") AS thirdName, IFNULL(c.image, \\\"\\\") AS logo FROM category a, category b, category c WHERE a.id = b.parent_id AND b.id = c.parent_id AND c.deleted = 0 AND a.id =?1\",nativeQuery = true)\n public List<Map<String,String>> getSubCategory(Long id);\n\n}", "title": "" }, { "docid": "f7363b03400bbb844eb79466ce2c4ee5", "score": "0.56492865", "text": "public List<OfertaForm> obtenerOfertasByCategoria(String pais,String idcategoria, String idempresa) {\r\n String sql=\"select oferta.* from tbl_pais pais, tbl_departamento depto, tbl_ciudad ciudad, tbl_ofertalaboral oferta,\\n\" +\r\n\" TBL_CATEGORIAEMPRESA cemp, TBL_PUESTOTRABAJO puesto\\n\" +\r\n\" where UPPER(nombrepais)= UPPER(?) \\n\" +\r\n\" and pais.idpais=depto.idpais \\n\" +\r\n\" and ciudad.iddepartamento=depto.IDDEPARTAMENTO \\n\" +\r\n\" and oferta.idciudad= ciudad.idciudad\\n\" +\r\n\" and cemp.IDCATEGORIA=?\\n\" +\r\n\" and cemp.IDCATEGORIA= puesto.IDCATEGORIA\\n\" +\r\n\" and puesto.IDPUESTOTRABAJO= oferta.IDPUESTOTRABAJO\\n\" +\r\n\" and oferta.idempresa=?\\n\" +\r\n\" and oferta.estadoofertalaboral='A'\";\r\n Query q = getEntityManager().createNativeQuery(sql, TblOfertalaboral.class);\r\n q.setParameter(1, pais);\r\n q.setParameter(2, idcategoria);\r\n q.setParameter(3, new BigInteger(idempresa));\r\n List<TblOfertalaboral> listaEntity;\r\n List<OfertaForm> listaEntityForm;\r\n\r\n try {\r\n listaEntity = q.getResultList();\r\n if (listaEntity.isEmpty()) {\r\n listaEntityForm = new ArrayList<OfertaForm>();\r\n } else {\r\n listaEntityForm = this.entityToDtoList(listaEntity, new OfertaForm());\r\n }\r\n } catch (Exception ex) {\r\n listaEntityForm = new ArrayList<OfertaForm>();\r\n }\r\n\r\n return listaEntityForm;\r\n }", "title": "" }, { "docid": "d79a4527dfa61da9901a660b6c3a951b", "score": "0.56465787", "text": "@Override\n\tpublic CategoriaSitio agregarCategoriaDeSitio(CategoriaSitio categoriaSitio) {\n\t\t new CategoriaSitioJpaController().create(categoriaSitio);\n\t\t return categoriaSitio;\n\t}", "title": "" }, { "docid": "2e65d17c08eea9253c6afce7c8b97088", "score": "0.5645836", "text": "public Categories obtenirCategorie(){\n return OutilUtilities.categorieJpa.findCategories(id);\n }", "title": "" }, { "docid": "2dc19a9f5e983c6a951f351437b6bcf2", "score": "0.5636185", "text": "public List<ComentarioEntity> getComentarios() \r\n {\r\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todos las Comentarios\");\r\n // Note que, por medio de la inyección de dependencias se llama al método \"findAll()\" que se encuentra en la persistencia.\r\n List<ComentarioEntity> Comentarios = persistence.findAll();\r\n LOGGER.log(Level.INFO, \"Termina proceso de consultar todas las Comentarios\");\r\n return Comentarios;\r\n }", "title": "" }, { "docid": "74c9d76cce4a0f37fa26831f173c14e6", "score": "0.5634494", "text": "@Override\r\n\tpublic List<CategoriaRutaDTO> getCategorias() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "657bb1a1e45fffdca1a62efde821885f", "score": "0.5615063", "text": "public Categoria(){\n\t\tthis.init();\n\t}", "title": "" }, { "docid": "0e7fc5b265dd1c445cdaca9fccc93d4c", "score": "0.5613096", "text": "@PostConstruct\n public void llenar(){\n if(lista != null){\n this.lista=tipoPost.findAll();\n }else {\n this.lista=Collections.EMPTY_LIST;\n }\n }", "title": "" }, { "docid": "805ef721e35da64cff8d4ff1c94ed052", "score": "0.5611919", "text": "public interface ShoppingListCategoryDAO {\n \n /**\n * Metodo che ritorna tutte le categorie di lista della spesa\n * @return list contenente tutte le liste della spesa presenti nel db\n */\n public List getAllShoppingListCategories();\n \n /**\n * Metodo che ritorna le liste in base alle categorie di lista \n * @param LCID intero che rappresenta la categoria di lista \n * @return la lista in base alla categoria di lista della spesa\n */\n public ShoppingListCategory getShoppingListCategory(int LCID); \n \n /**\n * Metodo che ritorna le categorie di lista in base all'email passata come parametro\n * @param email stringa che rappresenta l'email dell'utente \n * @return list contenente l'insieme delle liste trovate\n */\n public List getShoppingListCategoriesByEmail(String email);\n \n /**\n * Metodo che crea la categoria di lista della spesa\n * @param shoppingListCategory oggetto list category passato in input\n * @return stringa che rappresenta l'ID della categoria di lista della spesa \n */\n public String createShoppingListCategory(ShoppingListCategory shoppingListCategory);\n \n /**\n * Metodo che modifica la categoria di lista \n * @param shoppingListCategory oggetto shopping list da modificare\n * @return booleano settato a 1 se la modifica ha avuto successo\n */\n public boolean updateShoppingListCategory(ShoppingListCategory shoppingListCategory);\n \n /**\n * Metodo che elimina una categoria di lista della spesa \n * @param shoppingListCategory oggetto da eliminare\n * @return booleano settato a 1 se l'eliminazione ha avuto successo\n */\n public boolean deleteShoppingListCategory(ShoppingListCategory shoppingListCategory);\n \n}", "title": "" }, { "docid": "b5eea790c29c70f7bcab15b83c3da2ed", "score": "0.560683", "text": "public List<CargosModel> getListaCargos(){\n \n List<CargosModel>lista = new ArrayList<>();\n \n try {\n managerFactory = new ConexaoJpa().getConexao(\"assembleia\");\n entityManager = managerFactory.createEntityManager();\n\n entityManager.getTransaction().begin();\n Query query = entityManager.createQuery(\"SELECT cm from CargosModel as cm\", CargosModel.class);\n lista = query.getResultList();\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Erro ao tentar recuperar lista de cargos\\n\" + e, \"Error\", JOptionPane.ERROR_MESSAGE);\n } finally {\n entityManager.close();\n managerFactory.close();\n }\n\n return lista;\n \n }", "title": "" }, { "docid": "41d2ecc5bb506e18034eed62ab22fa3f", "score": "0.5605884", "text": "@ProviderType\npublic interface CategoryPersistence extends BasePersistence<Category> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link CategoryUtil} to access the category persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t * Caches the category in the entity cache if it is enabled.\n\t *\n\t * @param category the category\n\t */\n\tpublic void cacheResult(Category category);\n\n\t/**\n\t * Caches the categories in the entity cache if it is enabled.\n\t *\n\t * @param categories the categories\n\t */\n\tpublic void cacheResult(java.util.List<Category> categories);\n\n\t/**\n\t * Creates a new category with the primary key. Does not add the category to the database.\n\t *\n\t * @param categoryId the primary key for the new category\n\t * @return the new category\n\t */\n\tpublic Category create(long categoryId);\n\n\t/**\n\t * Removes the category with the primary key from the database. Also notifies the appropriate model listeners.\n\t *\n\t * @param categoryId the primary key of the category\n\t * @return the category that was removed\n\t * @throws NoSuchCategoryException if a category with the primary key could not be found\n\t */\n\tpublic Category remove(long categoryId) throws NoSuchCategoryException;\n\n\tpublic Category updateImpl(Category category);\n\n\t/**\n\t * Returns the category with the primary key or throws a <code>NoSuchCategoryException</code> if it could not be found.\n\t *\n\t * @param categoryId the primary key of the category\n\t * @return the category\n\t * @throws NoSuchCategoryException if a category with the primary key could not be found\n\t */\n\tpublic Category findByPrimaryKey(long categoryId)\n\t\tthrows NoSuchCategoryException;\n\n\t/**\n\t * Returns the category with the primary key or returns <code>null</code> if it could not be found.\n\t *\n\t * @param categoryId the primary key of the category\n\t * @return the category, or <code>null</code> if a category with the primary key could not be found\n\t */\n\tpublic Category fetchByPrimaryKey(long categoryId);\n\n\t/**\n\t * Returns all the categories.\n\t *\n\t * @return the categories\n\t */\n\tpublic java.util.List<Category> findAll();\n\n\t/**\n\t * Returns a range of all the categories.\n\t *\n\t * <p>\n\t * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to <code>QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>CategoryModelImpl</code>.\n\t * </p>\n\t *\n\t * @param start the lower bound of the range of categories\n\t * @param end the upper bound of the range of categories (not inclusive)\n\t * @return the range of categories\n\t */\n\tpublic java.util.List<Category> findAll(int start, int end);\n\n\t/**\n\t * Returns an ordered range of all the categories.\n\t *\n\t * <p>\n\t * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to <code>QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>CategoryModelImpl</code>.\n\t * </p>\n\t *\n\t * @param start the lower bound of the range of categories\n\t * @param end the upper bound of the range of categories (not inclusive)\n\t * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t * @return the ordered range of categories\n\t */\n\tpublic java.util.List<Category> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Category>\n\t\t\torderByComparator);\n\n\t/**\n\t * Returns an ordered range of all the categories.\n\t *\n\t * <p>\n\t * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to <code>QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>CategoryModelImpl</code>.\n\t * </p>\n\t *\n\t * @param start the lower bound of the range of categories\n\t * @param end the upper bound of the range of categories (not inclusive)\n\t * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t * @param useFinderCache whether to use the finder cache\n\t * @return the ordered range of categories\n\t */\n\tpublic java.util.List<Category> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Category>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);\n\n\t/**\n\t * Removes all the categories from the database.\n\t */\n\tpublic void removeAll();\n\n\t/**\n\t * Returns the number of categories.\n\t *\n\t * @return the number of categories\n\t */\n\tpublic int countAll();\n\n}", "title": "" }, { "docid": "ea99522be2a14cff806768f53660d7b5", "score": "0.55978054", "text": "public interface CategoriaService {\n Collection<CategoriaModel> listar();\n Collection<SelectItem> combo();\n CategoriaModel obtener(Long id);\n}", "title": "" }, { "docid": "c35a08fc4eb9c3db51466d94aa51be35", "score": "0.55899864", "text": "public interface ContentCategoryService {\n List<EUTreeNode> getCategoryList(Long parentId);\n TaotaoResult insertContentCategory(Long parentId, String name);\n TaotaoResult deleteContentCategory(Long parentId, Long id);\n TaotaoResult updateContentCategory(Long id, String name);\n}", "title": "" }, { "docid": "c3abdc3dd61e3d3f3f68118e23ab15cb", "score": "0.5588935", "text": "ProjetoDAO getProjetoDAO();", "title": "" }, { "docid": "493f12b9def3b2e0f0fa8cdb2324ff67", "score": "0.55829805", "text": "@Override\n public List<CategoryEntity> getAllCategoriesOrderedByName() {\n }", "title": "" }, { "docid": "88c69d8e43dc1e9df33dec85655c21e1", "score": "0.5578476", "text": "public List<Category> findAllCategory();", "title": "" }, { "docid": "7f0b41c03f9c9c4e8fecbd078603a081", "score": "0.5571775", "text": "private void cargarCategoriasPadre() throws Exception {\n //Primero quito todas las categorias y las vuelvo a llenar\n categoriasPadre.removeAllItems();\n //Recojo una lista de categorias\n List<Categoria> cats = controller.listarCategorias();\n\n //La primera categoria es NONE, osea que no hay categoria\n categoriasPadre.addItem(new Categoria(NONE_CODE, java.util.ResourceBundle.getBundle(\"lang/lenguajes\").getString(\"NONE\"), null));\n //Y relleno las categorias padre si hay\n for (Categoria categoria : cats) {\n categoriasPadre.addItem(categoria);\n }\n }", "title": "" }, { "docid": "c99eb6672859714c852257f12ba13c7a", "score": "0.55658025", "text": "@Override\n\tpublic CategoriaDAO getCategoriaDAO() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "301d7397bd6e6f3454606292ca7b0671", "score": "0.5561559", "text": "@Override\n\tpublic List<Produit> getListeProduits(int idCategorie) {\n\t\tTypedQuery<Produit> q = (TypedQuery<Produit>) entityManager.createNamedQuery(\"Produit.findAll\",Produit.class);\n\t\tList<Produit> produits = (List<Produit>) q.getResultList().stream().filter(p->p.getCategorie().getId()==idCategorie).collect(Collectors.toList());\n\t\t\n\t\treturn produits;\n\t}", "title": "" }, { "docid": "fcf51630e919b1e6faa378572851db53", "score": "0.5558387", "text": "DiagramaClasesCompletoFactory getDiagramaClasesCompletoFactory();", "title": "" }, { "docid": "ffa53c44217f4d18f1388d1090722654", "score": "0.55520684", "text": "@Local\npublic interface DAOPantalla {\n\n\t/**\n\t * Metodo que obtiene todas las pantallas, realizando la consulta en la base\n\t * de datos\n\t *\n\t * @param sessionBean\n\t * Un objeto de tipo ArchitechSessionBean\n\t * @return Un objeto de tipo BeanPantallaRespuesta\n\t */\n\tpublic BeanPantallaRespuesta obtenerTodasPantallas(\n\t\t\tArchitechSessionBean sessionBean);\n\n\t/**\n\t * @param sessionBean\n\t * Un objeto de tipo ArchitechSessionBean\n\t * @param idGrupo\n\t * El id del grupo a buscar\n\t * @return Un objeto de tipo BeanPantallaRespuesta\n\t */\n\tpublic BeanPantallaRespuesta obtenerPantallasPorGrupo(\n\t\t\tArchitechSessionBean sessionBean, String idGrupo);\n\n\t/**\n\t * @param sessionBean\n\t * Un objeto de tipo ArchitechSessionBean\n\t * @param idPantalla\n\t * El id de la pantalla a buscar\n\t * @return Un objeto de tipo BeanPantallaRespuesta\n\t */\n\tpublic BeanPantallaRespuesta obtenerPantallaPorId(\n\t\t\tArchitechSessionBean sessionBean, String idPantalla);\n\n\t/**\n\t * @param sessionBean\n\t * Un objeto de tipo ArchitechSessionBean\n\t * @param pantalla\n\t * Un objeto de tipo BeanPantalla, el cual contiene los elementos\n\t * a modificar\n\t * @return Un objeto de tipo BeanPantallaRespuesta\n\t */\n\tpublic BeanPantallaRespuesta modificarPantalla(\n\t\t\tArchitechSessionBean sessionBean, BeanPantalla pantalla);\n\n\t/**\n\t * @param sessionBean\n\t * Un objeto de tipo ArchitechSessionBean\n\t * @param pantalla\n\t * Un objeto de tipo BeanPantalla, con los datos a almacenar en\n\t * la base de datos\n\t * @return Un objeto de tipo BeanPantallaRespuesta\n\t */\n\tpublic BeanPantallaRespuesta altaPantalla(ArchitechSessionBean sessionBean,\n\t\t\tBeanPantalla pantalla);\n\n\t/**\n\t * @param sessionBean\n\t * Un objeto de tipo ArchitechSessionBean\n\t * @param idPantalla\n\t * El id de la pantalla que sera eliminada\n\t * @return Un objeto de tipo BeanPantallaRespuesta\n\t */\n\tpublic BeanPantallaRespuesta borrarPantalla(\n\t\t\tArchitechSessionBean sessionBean, String idPantalla);\n\n\t/**\n\t * @param sessionBean\n\t * Un objeto de tipo ArchitechSessionBean\n\t * @param idModulo\n\t * El id del modulo al que pertenece el usuario para obtener las\n\t * pantallas\n\t * @param grupos\n\t * los grupos para identificar pantallas disponibles\n\t * @return Un objeto de tipo BeanPantallaRespuesta\n\t */\n\tpublic BeanPantallaRespuesta obtenerPantallasPorGruposModulo(\n\t\t\tArchitechSessionBean sessionBean, String idModulo, String[] grupos);\n\n}", "title": "" }, { "docid": "ce339a5c305af2f86dcba9e29765adf8", "score": "0.55509377", "text": "@Override\n\tpublic List<Cat_contac> listar() {\n\t\treturn dao.findAll();\n\t}", "title": "" }, { "docid": "58d54cd112420ef2a8ee77f8ff96223e", "score": "0.55502665", "text": "@Repository\npublic interface CategoryRepository extends JpaRepository<Category, Long> {\n\n}", "title": "" }, { "docid": "e837e503e1535045092d652fbe1639ab", "score": "0.55492175", "text": "SucursalRepository() {\n\t\tsucursales = new HashMap<String, Sucursal>();\n\t}", "title": "" }, { "docid": "342f7433c699cb06616c7984233b5ede", "score": "0.5542594", "text": "List<Category> findAll();", "title": "" }, { "docid": "342f7433c699cb06616c7984233b5ede", "score": "0.5542594", "text": "List<Category> findAll();", "title": "" }, { "docid": "342f7433c699cb06616c7984233b5ede", "score": "0.5542594", "text": "List<Category> findAll();", "title": "" }, { "docid": "67b6791e8a3dc3a2aadd6ec114fc8c3f", "score": "0.5542241", "text": "public interface CategoryDao {\n\n public List<CategoryEntity> findAll();\n}", "title": "" }, { "docid": "9ecde3335362b68e027a9ed3fa6d235c", "score": "0.554159", "text": "public interface CategoryRepository extends JpaRepository<GameCategory, Long> {\n\n\n}", "title": "" }, { "docid": "40009bf58e5fe0df656954f9aa1ae2d7", "score": "0.55411905", "text": "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //DetalleGrupoActivoFijo\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tDetalleGrupoActivoFijo entity = new DetalleGrupoActivoFijo();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=DetalleGrupoActivoFijoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=DetalleGrupoActivoFijoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,DetalleGrupoActivoFijoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//ActivosFijos.DetalleGrupoActivoFijo.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseDetalleGrupoActivoFijo(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "title": "" }, { "docid": "0ac86cadf18c12bc40bc7c6d9a4274e7", "score": "0.5539055", "text": "public ArticuloBean() {\r\n proveedor = new FacProveedor();\r\n articulo = new FacArticulo();\r\n proveedorArticulo = new FacProveedorArticulo();\r\n articuloDetalle = new AudDetEstadoFinan();\r\n cargarCombos();\r\n cargarDependencias();\r\n }", "title": "" }, { "docid": "8e68c40edb4a229a04e3950fb6e31b58", "score": "0.55371964", "text": "@PostConstruct\r\n\tpublic void PreparaPesquisa() {\r\n\t\ttry {\r\n\t\t\t//FabricaConexao fabrica = new FabricaConexao();\r\n\t\t\t//Connection conexao = fabrica.fazerConexao();\r\n\r\n\t\t\tPesquisadorDAO dao = new PesquisadorDAO();\r\n\t\t\tthis.listaPesquisadores = dao.listarTodos();\r\n\r\n\t\t\t//fabrica.fecharConexao();\r\n\r\n\t\t\tpesquisadores = new ListDataModel<Pesquisador>(listaPesquisadores);\r\n\t\t\t\r\n\t\t\tAtualizarListaUsuarioParaPesquisadores();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tJSFUtil.adicionarMensagemErro(e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4ed6b21271dd688d8947b71b4c91fb06", "score": "0.5525099", "text": "@Repository\npublic interface ArtikelRepository extends JpaRepository<Artikel, Long> {\n\n /**\n * Bemerkungen:\n * 1. rot unterstrichenen Stern ignorieren - JPA wird erwartet, es soll aber native sein -> funktioniert trotzdem\n * 2. Methoden brauchen keine Zugriffsmodifikatoren, weil sie IMMER public sind\n *\n */\n\n// @Query(value = \"SELECT * FROM ARTIKEL\", nativeQuery = true)\n// List<Artikel> putOutMuch();\n//\n//\n// // Artikel nach Name (verwendet in ArtikelController)\n// @Query(value = \"SELECT * FROM ARTIKEL WHERE LOWER(ARTIKEL_NAME) = Lower(:artikelName)\", nativeQuery = true)\n// List<Artikel> putOutArticlesPerName(@Param(\"artikelName\") String artikelName);\n\n\n // Artikel pro Bestellung\n @Query(value = \"SELECT * FROM ARTIKEL, BESTELLUNG WHERE ARTIKEL.BESTELLUNG_ID_BESTELLUNG = :idBestellung \", nativeQuery = true)\n List<Artikel> putOutArticlePerOrder(Long idBestellung);\n\n\n\n // Artikel pro Datum\n @Query(value = \"SELECT * FROM ARTIKEL WHERE LOWER(BESTELLUNG.DATE) = LOWER(:dateBestellung)\", nativeQuery = true)\n List<Artikel> articlePerDate(Date dateBestellung);\n\n\n}", "title": "" }, { "docid": "faf784f7da78d0f1a0be5b782a08ee04", "score": "0.55202657", "text": "public interface IProbaRepository extends IRepository<Integer,Proba> {\r\n Iterable<String> getDenumiri();\r\n Iterable<String> getCategorii();\r\n int getIDProba(String denumire, String categorie);\r\n}", "title": "" }, { "docid": "5227ef21b57b3b57d01c1d7e53a8806f", "score": "0.5516976", "text": "public Categoria() {\n id = -1;\n nome = \"\";\n selecionavel = true;\n idSuperCategoria = -1;\n slug = \"\";\n }", "title": "" }, { "docid": "23f86c2e6a1555cea04d82b4b3c7ca63", "score": "0.5501702", "text": "public interface AdministradorDeContratante {\n /**\n * Método para registrar Contratantes en la base de datos\n * @param contratante objeto con la información del contratante que se va insertar\n * @throws SQLException\n * @throws ClassNotFoundException\n */\n public void registrarContratante(Contratante contratante) throws SQLException, ClassNotFoundException;\n\n /**\n * Método que trae todos los contratantes de la base de datos\n * @return Lista con todos los contratantes de la base de datos\n * @throws SQLException\n * @throws ClassNotFoundException\n */\n public List<Contratante>obtenerContratantes() throws SQLException, ClassNotFoundException;\n\n /**\n * Método que trae el contratista pertenciente al contratnte y al contrato\n * @param idContratante identificador de contratante al que pertenece el contrista\n * @param idContrato al que pertenece el contratista\n * @return lista Con el contratista ligado al contrato\n * @throws SQLException\n * @throws ClassNotFoundException\n */\n public List<Contratista>contratistaPorContratante(int idContratante, int idContrato) throws SQLException, ClassNotFoundException;\n\n /**\n * Método para traer los contratistas del Contratante busc ado\n * @param idContratante identificador del contratante para traer los Contratistas\n * @return listado con todos los contratistas pertenecientes al contratante\n * @throws SQLException\n * @throws ClassNotFoundException\n */\n public List<Contratista>contratistaPorContratante(int idContratante) throws SQLException, ClassNotFoundException;\n\n /**\n * Método que trae los contratistas que pertenezcan a la categoria\n * @param idContrato identificador del contrato al que pertence el contratista\n * @param idCategoria identificador de la categoria dentro del software\n * @return Lista con los contratistas que pertenecen a la categoria y al contrato correpondiente\n * @throws SQLException\n * @throws ClassNotFoundException\n */\n public List<Contratista>contratistaPorCategoria( int idContrato,int idCategoria) throws SQLException, ClassNotFoundException;\n\n /**\n * Método que trae todos los requisitos cumplidos por el contratista\n * @param idContratista identificador del contratista que le aplicaron los requisitos\n * @param idCategoria identificador de la categoria a la que pertence el contratista\n * @param idContratante identificador del contratante al cual pertenece el contratista\n * @return Listado con los requisitos cumplidos por el contratista\n * @throws SQLException\n * @throws ClassNotFoundException\n */\n public List<RequisitoObligatorio> requisitosCumplidos(int idContratista,int idCategoria,int idContratante)throws SQLException, ClassNotFoundException;\n\n /**\n * Método que trae todos los requisitos no cumplidos por el contratista\n * @param idContratista identificador del contratista que le aplicaron los requisitos\n * @param idCategoria identificador de la categoria a la que pertence el contratista\n * @param idContratante identificador del contratante al cual pertenece el contratista\n * @return Listado con los requisitos no cumplidos por el contratista\n * @throws SQLException\n * @throws ClassNotFoundException\n */\n public List<RequisitoObligatorio> requisitosNoCumplidos(int idContratista,int idCategoria,int idContratante)throws SQLException, ClassNotFoundException;\n\n /**\n * Método que trae todos los requisitos Extras cumplidos por el contratista\n * @param idContratista identificador del contratista que le aplicaron los requisitos\n * @param idCategoria identificador de la categoria a la que pertence el contratista\n * @param idContratante identificador del contratante al cual pertenece el contratista\n * @return Listado con los requisitos extras cumplidos por el contratista\n * @throws SQLException\n * @throws ClassNotFoundException\n */\n public List<RequisitoExtra> requisitosExtrasCumplidos(int idContratista,int idCategoria,int idContratante)throws SQLException, ClassNotFoundException;\n\n /**\n * Método que trae todos los requisitos Extras no cumplidos por el contratista\n * @param idContratista identificador del contratista que le aplicaron los requisitos\n * @param idCategoria identificador de la categoria a la que pertence el contratista\n * @param idContratante identificador del contratante al cual pertenece el contratista\n * @return Listado con los requisitos extras no cumplidos por el contratista\n * @throws SQLException\n * @throws ClassNotFoundException\n */\n public List<RequisitoExtra> requisitosExtrasNoCumplidos(int idContratista,int idCategoria,int idContratante)throws SQLException, ClassNotFoundException;\n\n /**\n * Método para registrar un servicio para selección\n * @param servicioAContratar objeto con la información del servicio a contratar\n * @throws SQLException\n * @throws ClassNotFoundException\n */\n public void registrarServicioAContratar(ServicioAContratar servicioAContratar)throws SQLException,ClassNotFoundException;\n\n /**\n * Método pra traer todos los servicios por contratante\n * @param idContratante identificador de contratante al cual pertenecen los servicios\n * @return todos los servicios pertenecientes al contratante\n * @throws SQLException\n * @throws ClassNotFoundException\n */\n public List<ServicioAContratar>obtenerTodosLosServicios(int idContratante)throws SQLException,ClassNotFoundException;\n\n /**\n * Método pra traer todos los servicios por contratante , además del Contratista\n * @param idContratante identificador de contratante al cual pertenecen los servicios\n * @return todos los servicios pertenecientes al contratante con el contratista asociado\n * @throws SQLException\n * @throws ClassNotFoundException\n */\n public List<ServicioAContratar>obtenerTodosLosServiciosConContratista(int idContratante)throws SQLException,ClassNotFoundException;\n\n}", "title": "" }, { "docid": "f848a844ba4be8a6eca4e3dad1189d88", "score": "0.5500716", "text": "public void setCategoria(String categoria) {\n this.categoria = categoria;\n }", "title": "" }, { "docid": "0b40128515648533481a694e5dbed25a", "score": "0.54931694", "text": "@Override\n\tpublic List<Categorias> mostrarNombreCategorias3() throws SQLException {\n\n\t\tlistaCat = new ArrayList<>();\n\t\t\n\t\tlistaCat = pRepo.mostrarNombreCategorias3();\n\n\t\treturn listaCat;\n\n\t}", "title": "" }, { "docid": "97330a18248512428e7cf10b687b7bd3", "score": "0.5487156", "text": "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //NumeroPatronal\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tNumeroPatronal entity = new NumeroPatronal();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=NumeroPatronalDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=NumeroPatronalDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,NumeroPatronalDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Nomina.NumeroPatronal.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseNumeroPatronal(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "title": "" }, { "docid": "b41528df910009d14565d095225050d9", "score": "0.5481166", "text": "public interface GenericoOCRComercialDAO extends DAO { \n\n\t/**\n\t * Metodo que devuelve Lista de Proceso de Carga proveniente del OCR Comercial\n\t * @param fuenteDatos\n\t * @param params\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic List getListProcesoCarga(ConexionOCRWrapper conexionOCRWrapper, Map params) throws Exception;\n\t\n\t/**\n\t * Metodo que devuelve Lista de Proceso de Carga Cupon proveniente del OCR Comercial\n\t * @param fuenteDatos\n\t * @param params\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic List getListProcesoCargaCupon(ConexionOCRWrapper conexionOCRWrapper, Map params) throws Exception;\n\t\n}", "title": "" }, { "docid": "2701e066c7b29b99cab92015e747bed7", "score": "0.5477725", "text": "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n \n //Creo las relaciones posibles y las agrego tanto a la base de datos como a la lista de pruebas.\n for(int j = 0; j <= 9; j++) {\n ComentarioEntity comentario = factory.manufacturePojo(ComentarioEntity.class);\n ImagenEntity imagen = factory.manufacturePojo(ImagenEntity.class);\n AutorEntity autor = factory.manufacturePojo(AutorEntity.class);\n AreaDeConocimientoEntity area = factory.manufacturePojo(AreaDeConocimientoEntity.class);\n CursoEntity curso = factory.manufacturePojo(CursoEntity.class);\n \n em.persist(comentario);\n em.persist(imagen);\n em.persist(autor);\n em.persist(area);\n em.persist(curso);\n \n comentarios.add(comentario);\n imagenes.add(imagen);\n autores.add(autor);\n areas.add(area);\n cursos.add(curso);\n }\n \n //Agrego las relaciones al documento.\n for(int i = 0; i < 3; i++) {\n DocumentoEntity entity = factory.manufacturePojo(DocumentoEntity.class);\n \n List<ComentarioEntity> comentariosDocumento = new ArrayList<>();\n List<ImagenEntity> imagenesDocumento = new ArrayList<>();\n List<AutorEntity> autoresDocumento = new ArrayList<>();\n List<AreaDeConocimientoEntity> areasDocumento = new ArrayList<>();\n List<CursoEntity> cursosDocumento = new ArrayList<>();\n \n for(int k = i; k <= 9 ; k = k+3){\n comentariosDocumento.add(comentarios.get(k));\n imagenesDocumento.add(imagenes.get(k));\n autoresDocumento.add(autores.get(k));\n areasDocumento.add(areas.get(k));\n cursosDocumento.add(cursos.get(k));\n }\n //Se las relaciono a el documento y lo persisto todo junto\n entity.setComentarios(comentariosDocumento);\n entity.setImagenes(imagenesDocumento);\n entity.setAutores(autoresDocumento);\n entity.setAreas(areasDocumento);\n entity.setCursos(cursosDocumento);\n \n em.persist(entity);\n data.add(entity);\n }\n //Se pueblan los datos que se van a probar en la prueba de crear.\n //por lo tanto no se agregan a ninguna entidad, solo se persisten y se agregan a las listas.\n for(int l = 0; l < 3; l++){\n ComentarioEntity comentario = factory.manufacturePojo(ComentarioEntity.class);\n ImagenEntity imagen = factory.manufacturePojo(ImagenEntity.class);\n AutorEntity autor = factory.manufacturePojo(AutorEntity.class);\n AreaDeConocimientoEntity area = factory.manufacturePojo(AreaDeConocimientoEntity.class);\n CursoEntity curso = factory.manufacturePojo(CursoEntity.class);\n \n em.persist(comentario);\n em.persist(imagen);\n em.persist(autor);\n em.persist(area);\n em.persist(curso);\n \n comentariosCreate.add(comentario);\n imagenesCreate.add(imagen);\n autoresCreate.add(autor);\n areasCreate.add(area);\n cursosCreate.add(curso);\n }\n \n //Se pueblan los datos que se van a probar en la prueba de actualizar.\n //por lo tanto no se agregan a ninguna entidad, solo se persisten y se agregan a las listas.\n for(int l = 0; l < 3; l++){\n ComentarioEntity comentario = factory.manufacturePojo(ComentarioEntity.class);\n ImagenEntity imagen = factory.manufacturePojo(ImagenEntity.class);\n AutorEntity autor = factory.manufacturePojo(AutorEntity.class);\n AreaDeConocimientoEntity area = factory.manufacturePojo(AreaDeConocimientoEntity.class);\n CursoEntity curso = factory.manufacturePojo(CursoEntity.class);\n \n em.persist(comentario);\n em.persist(imagen);\n em.persist(autor);\n em.persist(area);\n em.persist(curso);\n \n comentariosUpdate.add(comentario);\n imagenesUpdate.add(imagen);\n autoresUpdate.add(autor);\n areasUpdate.add(area);\n cursosUpdate.add(curso);\n }\n }", "title": "" }, { "docid": "67517f1453355b8458c6566cb2a556cf", "score": "0.5471811", "text": "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //TipoGastoProdu\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tTipoGastoProdu entity = new TipoGastoProdu();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=TipoGastoProduDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=TipoGastoProduDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelperSinIdGenerated.buildSqlGeneralGetEntitiesJDBC(entity,TipoGastoProduDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Produccion.TipoGastoProdu.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseTipoGastoProdu(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "title": "" }, { "docid": "451743214982e924ae2dfa1d4bb5799f", "score": "0.54712886", "text": "@RequestMapping(method=RequestMethod.GET)\n\tpublic ResponseEntity<List<CategoriaDTO>> findAll() {\n\t\tList<Categoria> categorias = categoriaService.findAll();\n\t\tList<CategoriaDTO> listCat = categorias.stream().map(obj -> new CategoriaDTO(obj)).collect(Collectors.toList()); \n\t\treturn ResponseEntity.ok().body(listCat);\n\t}", "title": "" }, { "docid": "3d80804a61aa998605da9f25897c6fdc", "score": "0.54702055", "text": "@Override\n public List<Richiesta> cercaProposteLavoro(String categoria, String zona, String email, String stato) {\n List<Richiesta> listaRichieste = em.createNamedQuery(\"Proposte di lavoro per categoria e zona ad un manutente\", Richiesta.class)\n .setParameter(\"categoria\", categoria)\n .setParameter(\"zona\", zona)\n .setParameter(\"email\", email)\n .setParameter(\"stato\", stato)\n .getResultList();\n return listaRichieste;\n }", "title": "" }, { "docid": "2da0ce5e2d52ae606c4e4682d0ca7164", "score": "0.54662436", "text": "Page<Categorie> findAll(Pageable pageable);", "title": "" }, { "docid": "88bca27c276e37cbed79eb86950b3de5", "score": "0.5457885", "text": "@Repository\npublic interface CategoryRepository extends JpaRepository<Category, Integer> {\n}", "title": "" }, { "docid": "fbd8e6cd23ce9ac95c64458f143f7358", "score": "0.54480934", "text": "@PostConstruct\n public void LeerListaDetalleVenta(){\n listaDetalleventa.addAll(detalleventaFacadeLocal.findAll());\n }", "title": "" }, { "docid": "72735143db3f569eec227972b2ea0100", "score": "0.5438714", "text": "@Override\n\tpublic List<Productos> listarPoductosGeneral() throws Exception {\n\t\tcn.abrir();\n\t\tList<Productos> lista2 = null;\n\t\ttry {\n\t\t\t\n\t\t\tQuery q1 = cn.em.createQuery(\"select a from Productos a\");\n\t\t\tlista2 = q1.getResultList();\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tcn.cerrar();\n\t\t}\n\t\treturn lista2;\n\t}", "title": "" }, { "docid": "4ca5664446c897336f3bfe292cea0cf3", "score": "0.54352134", "text": "@Override\n\tpublic List<Categorias> mostrarNombreCategorias1() throws SQLException {\n\n\t\tlistaCat = new ArrayList<>();\n\t\t\n\t\tlistaCat = pRepo.mostrarNombreCategorias1();\n\n\t\treturn listaCat;\n\n\t}", "title": "" }, { "docid": "97a7b50afe23a1bafb7f74cb05c70584", "score": "0.54280597", "text": "public java.util.List<Category> findAll();", "title": "" }, { "docid": "98cd82f77177ab2a563653490778fa9f", "score": "0.54226863", "text": "public CategoriaTablaCategoria() {\n }", "title": "" }, { "docid": "c6397f1e2ea2867333a15cef6428c916", "score": "0.54191834", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ConceptoDTO> getProductos(Long idSolicitud){\r\n\t\tList<ConceptoDTO> lista = null;\r\n\t\ttry{\r\n\t\t\tList<Object[]> listaAux = (List<Object[]>)entityManager.\r\n\t\t\t\t\t \t\tcreateNativeQuery(\" SELECT [codigo_articulo], [nombre] \" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" FROM [SCORING_PRODUCION].[dbo].[detalle_cp] \" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" WHERE cotizacion_pedido_concepto_id in (\" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" SELECT [system_id] \" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" FROM [SCORING_PRODUCION].[dbo].[cotizacion_pedido_concepto] \" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" WHERE [cotizacion_pedido_negocio_id]\tin ( \" +\r\n\t\t\t\t\t\t\t \t\t\t\t\"\t\t\t SELECT [system_id] \" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" FROM [SCORING_PRODUCION].[dbo].[cotizacion_pedido_negocio] \" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" WHERE cotizacion_pedido_id in (\" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" SELECT [system_id] \" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" FROM [SCORING_PRODUCION].[dbo].[cotizacion_pedido] \" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" WHERE [cot_ped_cab_id] in (\" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" SELECT [system_id] \" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" \t\t\t\t\t FROM [SCORING_PRODUCION].[dbo].[cotizacion_pedido_cabecera] \" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" WHERE solicitud_id=:idSolicitud )\" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" )\" +\r\n\t\t\t\t\t\t\t \t\t\t\t\" )\" +\r\n\t\t\t\t\t\t\t \t\t\t\t\") \")\r\n .setParameter(\"idSolicitud\",idSolicitud)\r\n .getResultList();\r\n\t\t\tif(listaAux != null){\r\n\t\t\t\tlista = new ArrayList<ConceptoDTO>(0);\r\n\t\t\t\tfor(Object[] array : listaAux){\r\n\t\t\t\t\tif(array != null){\r\n\t\t\t\t\t\tConceptoDTO objeto = new ConceptoDTO();\r\n\t\t\t\t\t\tif(array[0] != null){\r\n\t\t\t\t\t\t\tobjeto.setCodigo(array[0].toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(array[1] != null){\r\n\t\t\t\t\t\t\tobjeto.setDescripcion(modificarTexto(array[1].toString()));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tlista.add(objeto);\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\t\r\n\t\t\tlog.error(\"Error, al persister el objeto de venta puntual. #0\", e.getMessage());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "title": "" }, { "docid": "674d6b47736013d84190eed15130aad6", "score": "0.5418077", "text": "@Override\n\tpublic void obtenerPrecalculados() {\n\t\t\n\t}", "title": "" }, { "docid": "321c27275c006fbb7e39249daf82f8f8", "score": "0.5413517", "text": "public static MeuResultSet getCategorias () throws Exception\n {\n MeuResultSet resultado = null; //Cria uma variável de retorno em MeuResultSet.\n\n try\n {\n String sql;\n\n sql = \"SELECT * \" +\n \"FROM PpCategoria\"; //Guarda os comandos.\n\n BDSQLServer.COMANDO.prepareStatement (sql);\n\n resultado = (MeuResultSet)BDSQLServer.COMANDO.executeQuery (); //Guarda os resultados no MeuResultSet\n }\n catch (SQLException erro) //Se falhar...\n {\n throw new Exception (\"Erro ao recuperar as categorias!\");\n }\n\n return resultado; //Retorna os resultados\n }", "title": "" }, { "docid": "04c8c189fa65623b0ed20ce7162b4914", "score": "0.54130214", "text": "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //DetalleActivoFijo\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tDetalleActivoFijo entity = new DetalleActivoFijo();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=DetalleActivoFijoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=DetalleActivoFijoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,DetalleActivoFijoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//ActivosFijos.DetalleActivoFijo.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseDetalleActivoFijo(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "title": "" }, { "docid": "913e73af66d33ba5c2a50a7f23b3c731", "score": "0.54074997", "text": "@SuppressWarnings(\"unused\")\n@Repository\npublic interface FormacionAcademicaRepository extends JpaRepository<FormacionAcademica, Long>, JpaSpecificationExecutor<FormacionAcademica> {\n\n}", "title": "" }, { "docid": "115a1c49599f5b1d355d066816fbd2c6", "score": "0.54072183", "text": "public abstract List<Categoria> listar();", "title": "" }, { "docid": "115a1c49599f5b1d355d066816fbd2c6", "score": "0.54072183", "text": "public abstract List<Categoria> listar();", "title": "" }, { "docid": "2018669cd260bd47b6a22fa12735c1aa", "score": "0.5405489", "text": "public PedidoCad() {\n this.sdcTituloTelaCad = UtlMsg.msg(\"tituloTabela.Pedido\");\n this.clientes = JpaAllEntities.listAll(Cliente.class);\n this.itemsClientes = this.convertClientes(this.clientes);\n this.tabelaConfigPricipalCad = new TabelaConfig(classePrinciapalCad);\n \n List<Coluna> colunas = new ArrayList<Coluna>();\n List listRegPrincial = JpaAllEntities.listAll(classePrinciapalCad);\n \n Field[] fields = classePrinciapalCad.getDeclaredFields();\n for (int i = 0; i < fields.length; i++) {\n Field field = fields[i];\n AuxCadastroConsulta a = field.getAnnotation(AuxCadastroConsulta.class);\n if(a != null && a.listaConsulta())\n {\n colunas.add(new Coluna(UtlMsg.msg(\n \"label.\" + tabelaConfigPricipalCad.getClasseTabela().getSimpleName() + \".short.\" +\n field.getName()), field.getName())); \n }\n }\n \n this.tabelaConfigPricipalCad.setColunasTabela(colunas);\n this.tabelaConfigPricipalCad.setQtdPaginas(new Integer(listRegPrincial.size()/10));\n this.tabelaConfigPricipalCad.setListaRegistros(listRegPrincial);\n }", "title": "" }, { "docid": "31bbf1c15181810fc799052f0051b5d3", "score": "0.540457", "text": "@Override\r\n\tpublic List<Category> getAllCategory() {\n\t\t Transaction transaction = null;\r\n\t try (Session session = HibernateUtil.getSessionFactory().openSession()) {\r\n\t transaction = session.beginTransaction();\r\n\r\n\t CriteriaBuilder builder = session.getCriteriaBuilder();\r\n\t CriteriaQuery<Object[]> query = builder.createQuery(Object[].class);\r\n\t Root<Category> root = query.from(Category.class);\r\n\t query.multiselect(root.get(\"categoryid\"),root.get(\"categoryname\"));\r\n\t Query<Object[]> q=session.createQuery(query);\r\n\t List<Object[]> list=q.getResultList();\r\n\t for (Object[] objects : list) {\r\n\t System.out.println(\"Category Id : \"+objects[0]);\r\n\t System.out.println(\"Category Name : \"+objects[1]);\r\n\t }\r\n\t \r\n\t transaction.commit();\r\n\t } catch (Exception e) {\r\n\t e.printStackTrace();\r\n\t if (transaction != null) {\r\n\t transaction.rollback();\r\n\t }\r\n\t }\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4de4075e3bbb676f6a685aaef8865675", "score": "0.5402578", "text": "public interface TdExpCuentasBancariaDAO extends JdbcDataService {\n /**\n * Find TdExpCuentasBancarias entity by its identifier or primary key value.\n *\n * @param id identifier or primary key\n * @return TdExpCuentasBancarias\n */\n @FindById(TdExpCuentasBancarias.class)\n TdExpCuentasBancarias getById(gob.shcp.sireh.domain.jdbc.TdExpCuentasBancariaPK id);\n \n /**\n * Get all TdExpCuentasBancarias entities limited by a maximum number of elements.\n *\n * @return Collection of TdExpCuentasBancarias\n */\n @FindAll(TdExpCuentasBancarias.class)\n List<TdExpCuentasBancarias> findAll();\n \n /**\n * Make persistence of TdExpCuentasBancarias entities. If its identifier or primary key is null then create else update.\n *\n * @param entity TdExpCuentasBancarias\n */\n @Save\n void save(TdExpCuentasBancarias entity);\n \n /**\n * Remove TdExpCuentasBancarias entities.\n *\n * @param entity TdExpCuentasBancarias\n */\n @Delete\n void delete(TdExpCuentasBancarias entity);\n\n\n /**\n * Find the first TdExpCuentasBancarias entity that matches the condition 'where ctaTipo is equals to'.\n *\n * @param ctaTipo java.lang.String\n * @return TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"CTA_TIPO=?\")\n TdExpCuentasBancarias getByCtaTipo(java.lang.String ctaTipo);\n\n /**\n * Find all TdExpCuentasBancarias entities that matches the condition 'where ctaTipo is equals to'.\n *\n * @param ctaTipo java.lang.String\n * @return Collection of TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"CTA_TIPO=?\")\n List<TdExpCuentasBancarias> findByCtaTipo(java.lang.String ctaTipo);\n\n /**\n * Find the first TdExpCuentasBancarias entity that matches the condition 'where fecModifico is equals to'.\n *\n * @param fecModifico java.util.Date\n * @return TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"FEC_MODIFICO=?\")\n TdExpCuentasBancarias getByFecModifico(java.util.Date fecModifico);\n\n /**\n * Find all TdExpCuentasBancarias entities that matches the condition 'where fecModifico is equals to'.\n *\n * @param fecModifico java.util.Date\n * @return Collection of TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"FEC_MODIFICO=?\")\n List<TdExpCuentasBancarias> findByFecModifico(java.util.Date fecModifico);\n\n /**\n * Find the first TdExpCuentasBancarias entity that matches the condition 'where idBanco is equals to'.\n *\n * @param idBanco java.lang.String\n * @return TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"ID_BANCO=?\")\n TdExpCuentasBancarias getByIdBanco(java.lang.String idBanco);\n\n /**\n * Find all TdExpCuentasBancarias entities that matches the condition 'where idBanco is equals to'.\n *\n * @param idBanco java.lang.String\n * @return Collection of TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"ID_BANCO=?\")\n List<TdExpCuentasBancarias> findByIdBanco(java.lang.String idBanco);\n\n /**\n * Find the first TdExpCuentasBancarias entity that matches the condition 'where idStatus is equals to'.\n *\n * @param idStatus java.lang.String\n * @return TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"ID_STATUS=?\")\n TdExpCuentasBancarias getByIdStatus(java.lang.String idStatus);\n\n /**\n * Find all TdExpCuentasBancarias entities that matches the condition 'where idStatus is equals to'.\n *\n * @param idStatus java.lang.String\n * @return Collection of TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"ID_STATUS=?\")\n List<TdExpCuentasBancarias> findByIdStatus(java.lang.String idStatus);\n\n /**\n * Find the first TdExpCuentasBancarias entity that matches the condition 'where usuario is equals to'.\n *\n * @param usuario java.lang.String\n * @return TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"USUARIO=?\")\n TdExpCuentasBancarias getByUsuario(java.lang.String usuario);\n\n /**\n * Find all TdExpCuentasBancarias entities that matches the condition 'where usuario is equals to'.\n *\n * @param usuario java.lang.String\n * @return Collection of TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"USUARIO=?\")\n List<TdExpCuentasBancarias> findByUsuario(java.lang.String usuario);\n\n /**\n * Find the first TdExpCuentasBancarias entity that matches the condition 'where ctaClabe is equals to'.\n *\n * @param ctaClabe java.lang.String\n * @return TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"CTA_CLABE=?\")\n TdExpCuentasBancarias getByCtaClabe(java.lang.String ctaClabe);\n\n /**\n * Find all TdExpCuentasBancarias entities that matches the condition 'where ctaClabe is equals to'.\n *\n * @param ctaClabe java.lang.String\n * @return Collection of TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"CTA_CLABE=?\")\n List<TdExpCuentasBancarias> findByCtaClabe(java.lang.String ctaClabe);\n\n /**\n * Find the first TdExpCuentasBancarias entity that matches the condition 'where ctaDoctoRef is equals to'.\n *\n * @param ctaDoctoRef java.lang.String\n * @return TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"CTA_DOCTO_REF=?\")\n TdExpCuentasBancarias getByCtaDoctoRef(java.lang.String ctaDoctoRef);\n\n /**\n * Find all TdExpCuentasBancarias entities that matches the condition 'where ctaDoctoRef is equals to'.\n *\n * @param ctaDoctoRef java.lang.String\n * @return Collection of TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"CTA_DOCTO_REF=?\")\n List<TdExpCuentasBancarias> findByCtaDoctoRef(java.lang.String ctaDoctoRef);\n\n /**\n * Find the first TdExpCuentasBancarias entity that matches the condition 'where ctaNumero is equals to'.\n *\n * @param ctaNumero java.math.BigDecimal\n * @return TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"CTA_NUMERO=?\")\n TdExpCuentasBancarias getByCtaNumero(java.math.BigDecimal ctaNumero);\n\n /**\n * Find all TdExpCuentasBancarias entities that matches the condition 'where ctaNumero is equals to'.\n *\n * @param ctaNumero java.math.BigDecimal\n * @return Collection of TdExpCuentasBancarias\n */\n @FindByCondition(value=TdExpCuentasBancarias.class, condition=\"CTA_NUMERO=?\")\n List<TdExpCuentasBancarias> findByCtaNumero(java.math.BigDecimal ctaNumero);\n}", "title": "" }, { "docid": "aec264a6ceb09971aa3a4bf9fc6a522b", "score": "0.53961027", "text": "public static void main(String[] args) {\n EntityManagerFactory fabrica = Persistence.createEntityManagerFactory(\"HibernateJpaPU\");\n EntityManager em = fabrica.createEntityManager();\n\n //Variables de ayuda \n CriteriaBuilder cb = em.getCriteriaBuilder();\n List<Alumno> alumnos = null;\n\n //Por default los queries son tipo lazy\n //es decir no levantan las relaciones\n //Left Join con API Criteria\n //Query 1\n System.out.println(\"\\nQuery 1\");\n CriteriaQuery<Alumno> qb1 = cb.createQuery(Alumno.class);\n Root<Alumno> c1 = qb1.from(Alumno.class);\n c1.join(\"domicilio\", JoinType.LEFT);\n c1.join(\"contacto\", JoinType.LEFT);\n \n alumnos = em.createQuery(qb1).getResultList();\n imprimirAlumnos(alumnos);\n\n //Query 2\n System.out.println(\"\\nQuery 2\");\n //Definimos el query \n CriteriaQuery<Alumno> qb2 = cb.createQuery(Alumno.class);\n //Definimos la raiz del query\n Root<Alumno> c2 = qb2.from(Alumno.class);\n //Especificamos el join\n Join<Alumno, Domicilio> dom = c2.join(\"domicilio\");\n //De manera opcional agregamos la restriccion usando el join \n qb2.where(cb.equal(dom.<Integer>get(\"idDomicilio\"), 1));\n //Definimos un Entity Graph para especificar el Fetch join\n EntityGraph<Alumno> fetchGraph = em.createEntityGraph(Alumno.class);\n //Especificamos la relación a levantar de manera eager (anticipada)\n fetchGraph.addSubgraph(\"domicilio\");\n //loadgraph agrega lo definimo más lo que ya se especificó en la clase de entidad\n //fetchgraph ignora lo definido en la clase de entidad y agrega solo lo nuevo\n em.createQuery(qb2).setHint(\"javax.persistence.loadgraph\", fetchGraph);\n\n TypedQuery<Alumno> q2 = em.createQuery(qb2);\n alumnos = q2.getResultList();\n imprimirAlumnos(alumnos);\n\n // Query 3\n System.out.println(\"\\nQuery 3\");\n CriteriaQuery<Alumno> qb3 = cb.createQuery(Alumno.class);\n Root<Alumno> c3 = qb3.from(Alumno.class);\n Join<Alumno, Domicilio> domicilio = c3.join(\"domicilio\");\n Join<Alumno, Contacto> contacto = c3.join(\"contacto\");\n List<Predicate> conditions = new ArrayList();\n Integer idAlumno = 1;\n conditions.add(cb.equal(c3.get(\"idAlumno\"), idAlumno));\n conditions.add(cb.isNotNull(domicilio.get(\"calle\")));\n conditions.add(cb.isNotNull(contacto.get(\"telefono\")));\n\n TypedQuery<Alumno> q3 = em.createQuery(\n qb3\n .select(c3)\n .where(conditions.toArray(new Predicate[]{}))\n .orderBy(cb.asc(c3.get(\"idAlumno\")))\n .distinct(true)\n );\n\n imprimirAlumnos(q3.getResultList());\n }", "title": "" }, { "docid": "56519554d6103d3a41ec76cc39682ad3", "score": "0.5395513", "text": "@PostConstruct\n public void init() {\n\n //Setando a primeira aba como ativa\n this.i = 0;\n\n //Desabilitando a aba editar\n this.desabilitado = true;\n\n atendimento = new Atendimento();\n if (atendimentoStatus == null) {\n atendimentoStatus = AtendimentoStatus.values();\n }\n\n if (dtInicioAtendimento == null || dtFimAtendimento == null || dtMax == null) {\n dtInicioAtendimento = new Date();\n dtFimAtendimento = new Date();\n dtMax = new Date();\n }\n\n model = new LazyDataModel<Atendimento>() {\n\n private static final long serialVersionUID = 1L;\n\n @Override\n public List<Atendimento> load(int posicaoPrimeiraLinha, int maximoPorPagina, String ordernarPeloCampo, SortOrder ordernarAscOuDesc, Map<String, Object> filtros) {\n\n String ordenacao = ordernarAscOuDesc.toString();\n\n if (SortOrder.UNSORTED.equals(ordernarAscOuDesc)) {\n ordenacao = SortOrder.ASCENDING.toString();\n }\n\n mapCriteriosBusca.put(\"posicaoPrimeiraLinha\", posicaoPrimeiraLinha);\n mapCriteriosBusca.put(\"maximoPorPagina\", maximoPorPagina);\n mapCriteriosBusca.put(\"ordernarPeloCampo\", ordernarPeloCampo);\n mapCriteriosBusca.put(\"ordenacao\", ordenacao);\n mapCriteriosBusca.put(\"dtInicio\", dtInicioAtendimento);\n mapCriteriosBusca.put(\"dtFim\", dtFimAtendimento);\n mapCriteriosBusca.put(\"id\",id);\n mapCriteriosBusca.put(\"status\", status);\n\n if (cliente != null) {\n if (cliente.getId() != null) {\n mapCriteriosBusca.put(\"cliente\", cliente);\n }\n }\n\n if (atendente != null) {\n if (atendente.getId() != null) {\n mapCriteriosBusca.put(\"atendente\", atendente);\n }\n }\n\n if (getRowCount() <= 0 || (filtros != null && !filtros.isEmpty())) {\n setRowCount(atendimentos.countAll(filtros));\n }\n\n // quantidade a ser exibida em cada página \n setPageSize(maximoPorPagina);\n \n List<Atendimento> temp = atendimentos.buscaPorPaginacao(mapCriteriosBusca, filtros);\n\n totalAtendimento = temp.size();\n \n return temp;\n }\n\n };\n }", "title": "" }, { "docid": "a124eca3a623c4b6dae6c162732c8bf1", "score": "0.539401", "text": "public interface CotizacionesDao {\r\n\t/**\r\n\t * Consulta los contactos de una institucion\r\n\t * @return valores generales para llenado de combo\r\n\t */\r\n\tpublic List<LlenaComboValoresDto> consultarContactosInst(int noInstitucion);\r\n\t\r\n\t/**\r\n\t * Obtiene los contratos de una institucion\r\n\t * @param noInstitucion\r\n\t * @return\r\n\t */\r\n\tpublic List <ContratoInstitucionDto> consultarContratos (int noInstitucion);\r\n\t\r\n\t/**\r\n\t * Obtiene la divisa asociada a un Tipo Valor\r\n\t * @param idTipoValor\r\n\t * @return id de la divisa\r\n\t */\r\n\tpublic String consultarDivisaTV(String idTipoValor);\r\n\t\r\n\t/**\r\n\t * Valida si existe una cotizacion del plazo para un tipo valor de una institucion en la fecha dada\r\n\t * @param plazo\r\n\t * @param tipoValor\r\n\t * @param idInstitucion\r\n\t * @param fecha (dd/mm/yyyy)\r\n\t * @return true si existe la cotizacion; false en otro caso\r\n\t */\r\n\tpublic boolean validarCotizacion(int plazo, String tipoValor, int idInstitucion, Date fecha);\r\n\t\r\n\t/**\r\n\t * Inserta la cotizacion de tasa\r\n\t * @param cotizacion\r\n\t */\r\n\tpublic void insertarCotizacion (CotizacionDto cotizacion);\r\n\t\r\n\t/**\r\n\t * Obtiene los datos para generar el reporte de cotizaciones\r\n\t * @param fecha\r\n\t * @param noEmpresa\r\n\t */\r\n\tpublic List<Map<String, Object>> consultarRepCotizaciones (String fecha, int noEmpresa);\r\n\t\r\n}", "title": "" }, { "docid": "bdb73586cffdc4d0ec0af9c88600d4ec", "score": "0.539183", "text": "private void loadCategories() {\n\t}", "title": "" }, { "docid": "28770b82212bafc6f55fd6cb8077c487", "score": "0.53903717", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<CondicionTipoSolicitudRango> getCondicionTipoSolicitudRango(LcredTipoSolicitud tipo, Canal canal,TiempoMontoType tiempoMonto, Medicion medicion){\r\n\t\tlog.debug(\"lo que viene\");\r\n\t\tList<MedicionCanalRango> listaMedicionCanalRangos=null;\r\n\t\tList<CondicionTipoSolicitudRango> listaCondiciones = new ArrayList<CondicionTipoSolicitudRango>(0);\r\n\t\ttry{\r\n\t\t\ttry{\r\n\t\t\t\tif(canal != null && medicion != null){\r\n\t\t\t\t\tlistaMedicionCanalRangos = (List<MedicionCanalRango>)\r\n\t\t\t\t\t\t\tentityManager.createQuery(\" select m from MedicionCanalRango m \" +\r\n\t\t\t\t\t\t\t\t \" where m.medicion.systemId=:medicion \" +\r\n\t\t\t\t\t\t\t\t \" and m.canal.systemId=:canal \" +\r\n\t\t\t\t\t\t\t\t \" and m.tiempoMontoType=:tiempoMonto \" +\r\n\t\t\t\t\t\t\t\t \" and m.disabled=0 \")\r\n\t\t\t\t\t\t\t\t .setParameter(\"medicion\", medicion.getSystemId())\r\n\t\t\t\t\t\t\t\t .setParameter(\"canal\", canal.getSystemId())\r\n\t\t\t\t\t\t\t\t .setParameter(\"tiempoMonto\", tiempoMonto)\r\n\t\t\t\t\t\t\t\t .getResultList();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(medicion != null){\r\n\t\t\t\t\tlistaMedicionCanalRangos = (List<MedicionCanalRango>)\r\n\t\t\t\t\tentityManager.createQuery(\" select m from MedicionCanalRango m \" +\r\n\t\t\t\t\t\t\t \" where m.medicion.systemId=:medicion \" +\r\n\t\t\t\t\t\t\t \" and m.tiempoMontoType=:tiempoMonto \" +\r\n\t\t\t\t\t\t\t \" and m.disabled=0 \")\r\n\t\t\t\t\t\t\t .setParameter(\"medicion\", medicion.getSystemId())\r\n\t\t\t\t\t\t\t .setParameter(\"tiempoMonto\", tiempoMonto)\r\n\t\t\t\t\t\t\t .getResultList();\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tlog.error(\"Error, al sacar la mediciones. #0\", e.getMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\r\n\t\t\tif(listaMedicionCanalRangos != null && listaMedicionCanalRangos.size() > 0){\r\n\t\t\t\tList<CondicionTipoSolicitudRango>\r\n\t\t\t\t\tlista = (List<CondicionTipoSolicitudRango>)\r\n\t\t\t\t\tentityManager.createQuery(\" select ctsr from CondicionTipoSolicitudRango ctsr \" +\r\n\t\t\t\t\t\t\t\t\t\t\t \" where ctsr.tipoSolicitud.codTipoSolicitud=:tipo\" +\r\n\t\t\t\t\t\t\t\t\t\t\t \" and ctsr.medicionCanalRango in (:rango)\" )\r\n\t\t\t\t\t\t\t\t\t\t\t .setParameter(\"tipo\", tipo.getCodTipoSolicitud())\r\n\t\t\t\t\t\t\t\t\t\t\t .setParameter(\"rango\", listaMedicionCanalRangos)\r\n\t\t\t\t\t\t\t\t\t\t\t .getResultList();\r\n\t\t\t\t\r\n\t\t\t\tif(lista != null && lista.size() > 0){\r\n\t\t\t\t\tlistaCondiciones = new ArrayList<CondicionTipoSolicitudRango>();\r\n\t\t\t\t\tfor(CondicionTipoSolicitudRango objeto : lista ){\r\n\t\t\t\t\t\tif(objeto != null){\r\n\t\t\t\t\t\t\tlistaCondiciones.add(objeto);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tlistaCondiciones = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\tlog.error(\"Error, al realizar la consulta en la matriz de CondicionTipoSolicitudRango. #0\", e.getMessage());\r\n\r\n\t\t}\r\n\t\treturn listaCondiciones;\r\n\t}", "title": "" }, { "docid": "0b0e43b1dc244cb72b11edccb475fd9f", "score": "0.5389251", "text": "public void crearElementosCargados(Proyecto proyecto, Concepto concepto, ArrayList<Instancia> listaInstancia, ArrayList<Glosario> listaGlosario){ Listo\n//\t\tValidar que existe concepto Listo\n//\t\tValidar que los atributos estan relacionados al concepto\n//\t\tCrear instancia y asociar los atributos de instancia\n\t\t\n//\t\tValidar que existe proyecto\n\t\tProyectoDAO proyectoDAO = (ProyectoDAO) context.getBean(\"proyectoDAO\");\n\t\ttry {\n\t\t\t\n\t\t\tproyecto = proyectoDAO.verProyecto(proyecto.getIdProyecto());\n\t\t\tif(proyecto != null){\n\t\t\t\tGlosarioDAO glosarioDAO = (GlosarioDAO) context.getBean(\"glosarioDAO\");\n\t\t\t\tlogger.debug(\"concepto.getIdGlosario() \"+concepto.getIdGlosario());\n\t\t\t\tGlosario glosario = glosarioDAO.verGlosario(concepto.getIdGlosario());\n\t\t\t\tif(glosario != null){\n\t\t\t\t\tAtributoInstanciaDAO atributoInstanciaDAO = (AtributoInstanciaDAO) context.getBean(\"atributoInstanciaDAO\");\n\t\t\t\t\tArrayList<AtributoInstancia> atributoInstancia = atributoInstanciaDAO.listarAtributoInstanciaDadoIdGlosarioConcepto(concepto.getIdGlosario());\n\t\t\t\t\tTipoGlosario tipoGlosario = new TipoGlosario();\n\t\t\t\t\ttipoGlosario.setId(8);\n\t\t\t\t\tGlosario glosarioAux;\n\t\t\t\t\tInstancia instanciaAux;\n\t\t\t\t\tif(atributoInstancia.size() > 0){\n\t\t\t\t\t\tif(listaInstancia.size() == listaGlosario.size()){\n\t\t\t\t\t\t\tInstanciaDAO instanciaDAO = (InstanciaDAO) context.getBean(\"instanciaDAO\");\n\t\t\t\t\t\t\tfor(int i=0;i<listaInstancia.size();i++){\n\t\t\t\t\t\t\t\tlogger.debug(\"**** instancia \"+(i+1));\n\t\t\t\t\t\t\t\tlogger.debug(\"nombre: \"+listaGlosario.get(i).getNombre());\n\t\t\t\t\t\t\t\tlogger.debug(\"descripcion: \"+listaGlosario.get(i).getDescripcion());\n\t\t\t\t\t\t\t\tlogger.debug(\"Instancia: \"+listaInstancia.get(i).getDefinicion().toString());\n//\t\t\t\t\t\t\t\tCrear el glosario\n\t\t\t\t\t\t\t\tlistaGlosario.get(i).setTipoGlosario(tipoGlosario);\n\t\t\t\t\t\t\t\tglosarioAux = glosarioDAO.crearGlosario(proyecto.getIdProyecto(), listaGlosario.get(i));\n\t\t\t\t\t\t\t\tlogger.debug(\"El idGlosarioCreado:\"+glosarioAux.getId());\n\t\t\t\t\t\t\t\tif(!glosarioAux.getId().equalsIgnoreCase(\"\")){\n//\t\t\t\t\t\t\t\t\tAgregar propiedades a instancia\n\t\t\t\t\t\t\t\t\tlistaInstancia.get(i).setIdGlosario(Integer.parseInt(glosarioAux.getId()));\n\t\t\t\t\t\t\t\t\tlistaInstancia.get(i).setIdGlosarioConceptoRelacion(concepto.getIdGlosario());\n\t\t\t\t\t\t\t\t\tinstanciaAux = instanciaDAO.crearInstancia(listaInstancia.get(i));\t\n\t\t\t\t\t\t\t\t\tlogger.debug(\"El idInstanciaCreada es \"+instanciaAux.getIdGlosario());\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tlogger.error(\"El idGlosarioCreado:\"+glosario.getId()+\" es vacio\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tlogger.debug(\"listas con logitud diferentes\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlogger.debug(\"concepto no tiene atributo de instancia asociado\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tlogger.debug(\"ID glosario con error\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tlogger.debug(\"ID proyecto con error\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "e45ba357399665d6f3d62392ad5c05fc", "score": "0.5382238", "text": "@ApiOperation(\"Obtém a lista de categorias\")\n @GetMapping\n public List<CategoriaListagem> lista () {\n return categoriaService.listar();\n }", "title": "" }, { "docid": "4807c4aa5bb54c7aa62a25b2e54c5fde", "score": "0.5380398", "text": "@Override\n public List<CategoryEntity> getCategoriesByBrand(String brandId) {\n }", "title": "" }, { "docid": "a7980fcf4fd5fcf502ba9699582ea411", "score": "0.53766453", "text": "@Override\n\tpublic List<Categorias> mostrarNombreCategorias2() throws SQLException {\n\n\t\tlistaCat = new ArrayList<>();\n\t\t\n\t\tlistaCat = pRepo.mostrarNombreCategorias2();\n\n\t\treturn listaCat;\n\n\t}", "title": "" }, { "docid": "798dcd2b8d1c4bffb0a83347ca9fff53", "score": "0.537303", "text": "public CategoriaEntity mapperCategoriaDTOEntity(CategoriaDTO categoriaDTO){\n CategoriaEntity categoria = new CategoriaEntity();\n categoria.setTitulo(categoriaDTO.getTitulo().toUpperCase());\n categoria.setFechaCreacion(util.fechaActual());\n categoria.setEstado(Estado.ACTIVO);\n return categoria;\n }", "title": "" }, { "docid": "044582fa3a82f74764337766be702253", "score": "0.5371964", "text": "private void cargarCategoriasPadre(Categoria categoria) throws Exception {\n //Primero quito todas las categorias y las vuelvo a llenar\n categoriasPadre.removeAllItems();\n //Recojo una lista de categorias\n List<Categoria> cats = controller.listarCategorias();\n\n //La primera categoria es NONE, osea que no hay categoria\n categoriasPadre.addItem(new Categoria(NONE_CODE, java.util.ResourceBundle.getBundle(\"lang/lenguajes\").getString(\"NONE\"), null));\n //Y relleno las categorias padre si hay\n for (Categoria category : cats) {\n if (categoria.getId() != category.getId()) {\n categoriasPadre.addItem(category);\n }\n }\n }", "title": "" }, { "docid": "bb774c018f2b67745404deee46b85619", "score": "0.5359637", "text": "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //ParametroConta\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tParametroConta entity = new ParametroConta();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=ParametroContaDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=ParametroContaDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,ParametroContaDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Contabilidad.ParametroConta.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseParametroConta(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "title": "" } ]
c1a1dcd095ea7dfa034bc30056aa5f44
Returns the OWL Ontology that imports the whole ontology network addressed by this input source.
[ { "docid": "b3fcc407bede25713a2f411d9daf4a31", "score": "0.62556946", "text": "O getRootOntology();", "title": "" } ]
[ { "docid": "3091428c4f4889565dc5d19f2cb7015c", "score": "0.68636733", "text": "public interface OntologyInputSource<O,P> {\n\n /**\n * Gets the ontology network resulting from the transitive closure of import statements on the root\n * ontology. Useful for implementations with a custom management of ontology loading.\n * \n * @return the import closure of the root ontology.\n */\n Set<O> getImports(boolean recursive);\n\n /**\n * Returns the IRI by dereferencing which it should be possible to obtain the ontology. This method is\n * supposed to return null if the ontology lives in-memory and was not or is not going to be stored\n * publicly.\n * \n * @return the physical location for this ontology source, or null if unknown.\n */\n IRI getPhysicalIRI();\n\n /**\n * Returns the OWL Ontology that imports the whole ontology network addressed by this input source.\n * \n * @return the ontology network root.\n */\n O getRootOntology();\n\n String getStorageKey();\n\n P getTriplesProvider();\n\n /**\n * Determines if a physical IRI is known for this ontology source. Note that an anonymous ontology may\n * have been fetched from a physical location, just as a named ontology may have been stored in memory and\n * have no physical location.\n * \n * @return true if a physical location is known for this ontology source.\n */\n boolean hasPhysicalIRI();\n\n /**\n * Determines if a root ontology that imports the entire network is available.\n * \n * @return true if a root ontology is available, false otherwise.\n */\n boolean hasRootOntology();\n\n}", "title": "" }, { "docid": "b8d413b8c87422e176f174a3d4b071dd", "score": "0.65837896", "text": "public String getOntology() {\n return ontology;\n }", "title": "" }, { "docid": "f58f4bc98b0d1ba78ee9bc8776a238ca", "score": "0.64005053", "text": "public OWLOntology getOntology(IRI ontIRI) {\n OWLOntology ont = manager.getOntology(ontIRI);\n return ont;\n }", "title": "" }, { "docid": "cdc83b177bc3274778ff89089472d2de", "score": "0.63203245", "text": "public InputStream getOntologyDocument() throws IOException;", "title": "" }, { "docid": "a270ec12ca86b64a19865cc8bb91f6ca", "score": "0.61650056", "text": "public OWLOntologyManager getOwlOntologyManager() {\n return owlOntologyManager;\n }", "title": "" }, { "docid": "9065e34ecf0047f3fe2e7796755c02f5", "score": "0.59234077", "text": "public static OntModel getModel() throws IOException {\n if (Config.model!=null)\n return model;\n else \n {\n String filename=\"resources/ieee_taxo_v2_rdf.owl\";\n IO io=new IO();\n io.setFilename(filename);\n model = io.read();\n }\n return model;\n }", "title": "" }, { "docid": "e7f9e6b53c763aeef378e5002033101a", "score": "0.5853066", "text": "public OWLOntology getRootOntology() {\n return rootOntology;\n }", "title": "" }, { "docid": "bd6b4ca5c890ce51ff14aab5ae0953cf", "score": "0.5825258", "text": "public IRI getRootIRI() {\n //OntologyIRIMappingNotFoundException(IRI ontologyIRI) \n if (rootOntology == null) {\n throw new java.lang.NullPointerException(\"baseOntology\");\n }\n return rootOntology.getOntologyID().getOntologyIRI();\n }", "title": "" }, { "docid": "a5162beab8d32ef6ab99cda43c62df82", "score": "0.5790404", "text": "public static Ontology getInstance() {\n\t\treturn theInstance;\n\t}", "title": "" }, { "docid": "1eeb1e830e3f7f5a41e9895758031e21", "score": "0.57422274", "text": "public OWLOntology loadOntologyByPrefix(String prefix, boolean importToRoot) throws OWLException {\n if (iriMapper == null) {\n return null;\n }\n IRI ontIRI = prefixes.get(prefix);\n OWLOntology ont = null;\n if (ontIRI != null) {\n IRI docIRI = iriMapper.getDocumentIRI(ontIRI);\n if (docIRI != null) { \n try {\n ont = loadOntology(docIRI, prefix, importToRoot);\n } catch (FileNotFoundException ex) {\n logger.info(\"No ontology found for \"+ontIRI);\n throw new OWLOntologyStorageException(\"No ontology found for \"+ontIRI);\n }\n }\n }\n return ont;\n }", "title": "" }, { "docid": "6ea07fc928694f24cd2bb750cf9884be", "score": "0.5726124", "text": "IRI getPhysicalIRI();", "title": "" }, { "docid": "348249e20ba851950b5eee675a3a19c0", "score": "0.57065624", "text": "public OWLOntology getOntology(String prefix) {\n IRI iri = prefixes.get(prefix);\n if (iri != null) {\n return getOntology(iri);\n }\n return null;\n }", "title": "" }, { "docid": "4306771b71a1d8dcd0189e30af27cc3c", "score": "0.5656289", "text": "public static Ontology fpOntology() {\n return FPO.fpOntology(GDNNS.FM.URI);\n }", "title": "" }, { "docid": "add537edb302ef7aae8d4780d512a035", "score": "0.56259984", "text": "public OWLOntology loadOntology(IRI docIRI, String prefix, boolean importToRoot) throws FileNotFoundException, OWLException {\n OWLOntology ontology;\n try {\n ontology = manager.loadOntologyFromOntologyDocument(docIRI);\n IRI ontIRI = ontology.getOntologyID().getOntologyIRI();\n if (rootOntology == null) {\n rootOntology = ontology;\n rootOntologyIRI = docIRI;\n } else if (importToRoot) {\n OWLImportsDeclaration imports = Ontology.instance().getDataFactory().getOWLImportsDeclaration(ontIRI);\n Ontology.instance().getManager().applyChange(new RemoveImport(Ontology.instance().getRootOntology(), imports));\n Ontology.instance().getManager().applyChange(new AddImport(Ontology.instance().getRootOntology(), imports));\n }\n if (prefix != null) {\n setPrefix(prefix,ontIRI);\n }\n } catch (OWLOntologyCreationException ex) {\n //logger.error(\"Loading ontology\",ex);\n throw ex;\n }\n return ontology;\n }", "title": "" }, { "docid": "647dd8d9d7d0647d93850f8ab3f7da91", "score": "0.5594142", "text": "public OntModel loadOntology(String filename) throws FileNotFoundException, IOException {\n\t\tFileInputStream stream;\t\t\t//A stream from the file\n\t\tOntModel returnValue;\n\n\t\tSystem.out.print(\"Loading \\\"\" + filename + \"\\\"...\");\n\t\tstream = new FileInputStream(filename);\n\t\treturnValue = ModelFactory.createOntologyModel();\n\t\treturnValue.read(stream,null);\n\t\tstream.close();\n\t\tSystem.out.println(\" Done.\");\n\n\t\treturn returnValue;\n\t}", "title": "" }, { "docid": "2b93ceddbf166cf3928f5f0543fd4fa2", "score": "0.5588805", "text": "public OWLOntology initializeFromOWL(String ontFilePath) throws FileNotFoundException, OWLException {\n if (rootOntology != null) {\n logger.info(\"restarting ontology with \" + ontFilePath);\n reset();\n }\n OWLOntology ont = loadOntology(ontFilePath, config.get(\"coreOntology\"), true);\n startReasoner(); \n setDefaultPrefixes();\n \n return ont;\n }", "title": "" }, { "docid": "d4c2a7cc6316a68b1274ea21bac0567e", "score": "0.5586712", "text": "public static OwlSaxHandler parseOntology(InputStream ont) throws ParserConfigurationException, SAXException, IOException{\n OwlSaxHandler handler = null;\n handler = new OwlSaxHandler();\n getDefaultInstance().parse(ont, handler);\n return handler;\n }", "title": "" }, { "docid": "18260779a22faff77a66a211788dc0a8", "score": "0.55424756", "text": "public void processOntology(String ont) throws OWLException, FileNotFoundException {\n boolean added = false;\n \n for (Map.Entry<String, String> prefix : config.getPrefixes().entrySet()) {\n if (added == false && prefix.getKey().equals(ont)) {\n loadOntologyByPrefix(ont, true);\n added = true;\n }\n if (added == false && prefix.getValue().equals(ont)) {\n loadOntologyByPrefix(prefix.getKey(), true);\n added = true;\n }\n }\n \n //At this point we know we don't have a matching prefix or iri in the system\n //Now we determine if it's a file iri or an iri\n if (added == false) {\n if (ont.startsWith(\"http:\")) {\n \n } else if (ont.startsWith(\"file:\")) {\n String ontFile = ont.replace(\"file:\", \"\");\n String filePath = System.getProperty(\"user.dir\");\n filePath = filePath.concat(\"/\");\n filePath = filePath.concat(ontFile);\n \n if (filePath.toLowerCase(Locale.US).endsWith(\".owl\") || filePath.toLowerCase(Locale.US).endsWith(\".xml\")) {\n Path fp = Paths.get(ontFile);\n String fileName = fp.getFileName().toString(); \n fileName = fileName.replace(\".owl\", \"\");\n fileName = fileName.replace(\".xml\", \"\");\n Ontology.instance().loadOntology(ontFile, fileName, true); \n } else if (filePath.toLowerCase(Locale.US).endsWith(\".ttl\")) {\n //We'll need to create a prefix from the filename and then import it\n Path fp = Paths.get(ontFile);\n String fileName = fp.getFileName().toString(); \n fileName = fileName.replace(\".ttl\", \"\");\n Ontology.instance().loadOntology(ontFile, fileName, true);\n } else {\n logger.warn(\"Unable to load ontology reference, unsupported file type \" + ont);\n //We can't currently support this file format\n } \n } else {\n //We aren't able to load this, skipping\n logger.warn(\"Unable to load ontology reference \" + ont);\n }\n }\n }", "title": "" }, { "docid": "d3a5c79142bbc658ada2007bc8ed404d", "score": "0.5535867", "text": "public OWLOntology loadOntology(String filePath, String prefix, boolean importToRoot) throws FileNotFoundException, OWLException {\n File ontFile = new File(filePath);\n if (!ontFile.exists()) {\n logger.info(filePath + \" not found.\");\n throw new FileNotFoundException(filePath);\n }\n IRI docIRI = IRI.create(ontFile); \n return this.loadOntology(docIRI, prefix, importToRoot);\n }", "title": "" }, { "docid": "88faaafb399395e3288b4d65ac9a5507", "score": "0.5486135", "text": "protected static final Ontology fpOntology(String local) {\n return ModelFactory.createOntologyModel().createOntology(local);\n }", "title": "" }, { "docid": "f69316e1654f00d44efb5575f49cd086", "score": "0.54551125", "text": "private OntologyInputSource oisForScope(final String uri){\n /*\n\t\t * The scope factory needs an OntologyInputSource as input for the core\n\t\t * ontology space. We want to use the dbpedia ontology as core ontology\n\t\t * of our scope.\n\t\t */\n\t\tOntologyInputSource ois = new OntologyInputSource() {\n\n\t\t\t@Override\n\t\t\tpublic boolean hasRootOntology() {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean hasPhysicalIRI() {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic OWLOntology getRootOntology() {\n\n\t\t\t\tInputStream inputStream;\n\t\t\t\ttry {\n\t\t\t\t\t/*\n\t\t\t\t\t * The input stream for the dbpedia ontology is obtained\n\t\t\t\t\t * through the dereferencer component.\n\t\t\t\t\t */\n\t\t\t\t\tinputStream = dereferencer.resolve(uri);\n\t\t\t\t\tOWLOntologyManager manager = OWLManager.createOWLOntologyManager();\n\t\t\t\t\treturn manager.loadOntologyFromOntologyDocument(inputStream);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\tlog.error(\"Cannot load the ontology \"+uri, e);\n\t\t\t\t} catch (OWLOntologyCreationException e) {\n\t\t\t\t\tlog.error(\"Cannot load the ontology \"+uri, e);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Cannot load the ontology \"+uri, e);\n\t\t\t\t}\n\t\t\t\t/** If some errors occur **/\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic IRI getPhysicalIRI() {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\n return ois;\n }", "title": "" }, { "docid": "a3bf42acdb464beeacd68ffe312d44d9", "score": "0.5385388", "text": "public static OntModel loadOntology(String path) {\r\n\t\tSystem.out.print(\"Loading ontology...\");\r\n\t\tOntModel ont = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM);\r\n\t\tont.read(path);\r\n\t\tSystem.out.println(\"OK\");\r\n\t\treturn ont;\r\n\t}", "title": "" }, { "docid": "3997fe66ae39438d22434cbc63d08289", "score": "0.53830534", "text": "public OWLOntology initialize(OntologyConfig cfg) throws FileNotFoundException, OWLException {\n if (rootOntology != null) {\n logger.info(\"restarting ontology\");\n reset();\n }\n \n config = cfg;\n setDefaultPrefixes();\n setConfigPrefixes(); \n OWLOntology coreOnt = initializeOntology();\n loadAdditionalOntologies();\n startReasoner();\n \n return coreOnt;\n }", "title": "" }, { "docid": "43084a159b543612b7e2ac416d346da6", "score": "0.53720367", "text": "public static OwlSaxHandler parseOntology(File ont) throws ParserConfigurationException, SAXException, IOException{\n OwlSaxHandler handler = null;\n handler = new OwlSaxHandler();\n getDefaultInstance().parse(ont, handler);\n return handler;\n }", "title": "" }, { "docid": "3e275f41cb06525010cda70940eb4b79", "score": "0.53143984", "text": "private JenaOWLModel cargaOntologias(String ontologia, String directorioRep)\n {\n try {\n\t\t\t\n\t\tBufferedReader reader = null;\n try{\n reader = new BufferedReader(new FileReader(ontologia));\n } catch(java.io.IOException e) {\n\t\t\t\tSystem.out.println(e);//$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t}\n //jenaModel = null;\n try {\n jenaModel = ProtegeOWL.createJenaOWLModel();\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\t\t\t\t }\n LocalFolderRepository rep = new LocalFolderRepository(new File(directorioRep)); //$NON-NLS-1$\n jenaModel.getRepositoryManager().addGlobalRepository(rep); //$NON-NLS-1$ \n try {\n jenaModel.load(reader, null);\n } catch (Exception ex) {\n\t\t\t\t\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\t\t\t\t }\n\t} catch (Exception e) { System.out.println(\"Exception al cargar la ontologia: \" + e);\t}\n return(jenaModel);\n }", "title": "" }, { "docid": "f8f6b436b2a920c397d6414c8bf6e0ea", "score": "0.5287246", "text": "CyNetwork getNetwork();", "title": "" }, { "docid": "f0f1d2750be62e062a61cf36cee3dc27", "score": "0.52508754", "text": "public OWLAPITaxonomyMakerExtended(String uri, boolean useImports){\n\t\t\t\n\t\t OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); \n\t\t\ttry {\n\t\t\t\tontology = manager.loadOntology(IRI.create(uri));\n\t\t\t} catch (OWLOntologyCreationException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t owlAPIManager = new OWLAPIManager(ontology, useImports);\n\t\t}", "title": "" }, { "docid": "b9fa73c88ba917be74df1b940aa2b716", "score": "0.5248489", "text": "public IGraph loadNetwork() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b60e5cf9200401cf470921864a1c7006", "score": "0.5244588", "text": "@Override\n\t\t\tpublic Set<OWLOntology> getOntologies() {\n\t\t\t\tSet<OWLOntology> ontologies = new HashSet<OWLOntology>();\n\t\t\t\tOntologySpace sessionSpace = scope.getSessionSpace(sessionIRI);\n\t\t\t\tontologies.addAll(sessionSpace.getOntologies());\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * We add to the set the graph containing the metadata generated by previous\n\t\t\t\t * enhancement engines. It is important becaus we want to menage during the refactoring\n\t\t\t\t * also some information fron that graph.\n\t\t\t\t * As the graph is provided as a Clerezza MGraph, we first need to convert it to an OWLAPI\n\t\t\t\t * OWLOntology.\n\t\t\t\t * There is no chance that the mGraph could be null as it was previously controlled by the JobManager\n\t\t\t\t * through the canEnhance method and the computeEnhancement is always called iff the former returns true. \n\t\t\t\t */\n\t\t\t\tOWLOntology fiseMetadataOntology = OWLAPIToClerezzaConverter.clerezzaMGraphToOWLOntology(mGraph);\n\t\t\t\tontologies.add(fiseMetadataOntology);\n\t\t\t\treturn ontologies;\n\t\t\t}", "title": "" }, { "docid": "41f85853ab48e33d03525d39d7b1fc1c", "score": "0.5231201", "text": "public OntologyConfig getConfig() {\n return config;\n }", "title": "" }, { "docid": "214b71d8482907fcca432685444a6333", "score": "0.52219903", "text": "public List<SrampOntology> getOntologies() throws SrampException;", "title": "" }, { "docid": "c63dffb92b36384294ae025d4682ed67", "score": "0.520377", "text": "public OWLOntology createOntology(LoadOnto importOrPaste, URL axiomaUrl, int newVersion) throws OWLOntologyCreationException {\n //File axFile = null;\n //URL axUrl = null;\n if (importOrPaste == LoadOnto.PASTE && axiomaUrl == null) {\n throw new IllegalArgumentException(\"The ontology axiom's url must be provided when pasting the axioms into an existing ontology.\");\n }\n OWLOntology earsOnto = null;\n /*if (importOrPaste == LoadOnto.PASTE && (scopeMap.containsKey(ScopeMap.Scope.BASE) || scopeMap.containsKey(ScopeMap.Scope.STATIC))) { //if the axioms should be pasted and I'm being run on the ontology server (http://ontologies.ef-ears.eu).\n axFile = FileUtils.lastFileName(OntologyConstants.ONTO_AXIOM_SERVER_PATH, \"xml\");\n try {\n //axiomaticOntologyFileurl = Thread.currentThread().getContextClassLoader().getResource(ONTO_AXIOM_PATH);\n\n axUrl = Paths.get(axFile.getCanonicalPath()).toUri().toURL();\n\n } catch (IOException ex) {\n throw new OWLOntologyCreationException(\"Base ontology axiom owl file not found on local filesystem\", ex);\n }\n /*} else if (importOrPaste == LoadOnto.PASTE && !scopeMap.containsKey(ScopeMap.Scope.BASE)) { //if the axioms should be pasted and I'm being run away from the ontology server (http://ontologies.ef-ears.eu).\n throw new IllegalArgumentException(\"Ontology axioms must be imported when not run on the ontology server (http://ontologies.ef-ears.eu).\");*/\n /* } else { //If the axioms should be imported && I'm being run away from or on the ontology server http://ontologies.ef-ears.eu\n\n axUrl = retriever.getLatestOntologyAxiomUrl();\n // axFile = new File(axUrl.getPath());\n //File axiomaticOntologyFile= EARSOntologyRetriever.\n }*/\n if (axiomaUrl != null) {\n IRI axiomaticOntologyIri;\n try {\n axiomaticOntologyIri = getIRIfromURL(axiomaUrl);\n } catch (URISyntaxException ex) {\n throw new OWLOntologyCreationException(\"Couldn't retrieve the ontology axiom owl file from the ears ontology server.\", ex);\n }\n //EARSOntologyRetriever retriever = new EARSOntologyRetriever();\n\n //OWLOntology baseOnto = manager.loadOntology(axiomaticOntologyIri);\n OWLDataFactory factory = this.manager.getOWLDataFactory();\n if (importOrPaste == LoadOnto.PASTE) { //paste\n earsOnto = manager.loadOntology(axiomaticOntologyIri);\n } else { //import\n earsOnto = manager.createOntology();\n //write the owl:imports\n OWLImportsDeclaration importDeclaraton = factory.getOWLImportsDeclaration(IRI.create(axiomaUrl));\n this.manager.applyChange(new AddImport(earsOnto, importDeclaraton));\n }\n\n writeOntologyMetadata(this.manager, earsOnto, this.fullName, this.scopeMap, newVersion);\n\n //write the individuals\n try {\n saveParameters(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving parameters: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving parameters: \", e);\n }\n\n try {\n saveToolCategories(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving tool categories: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving tool categories: \", e);\n }\n\n try {\n saveTools(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving tools: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving tools: \", e);\n }\n\n try {\n saveVessels(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving vessels: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving vessels: \", e);\n }\n\n try {\n saveProcesses(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving processes: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving processes: \", e);\n }\n\n try {\n saveActions(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving actions: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving actions: \", e);\n }\n\n try {\n saveProperties(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving properties: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving properties: \", e);\n }\n\n try {\n saveProcessActions(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving process-actions: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving process-actions: \", e);\n }\n\n try {\n saveGenericEvents(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving generic events: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving generic events: \", e);\n }\n\n try {\n saveSpecificEvents(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving specific events: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving specific events: \", e);\n }\n\n try {\n saveSubjects(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving subjects: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving subjects: \", e);\n }\n\n try {\n saveHarbours(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving harbours: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving harbours: \", e);\n }\n try {\n saveSeaAreas(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving sea areas: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving sea areas: \", e);\n }\n try {\n saveOrganisations(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving organisations: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving organisations: \", e);\n }\n try {\n saveCountries(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving countries: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving countries: \", e);\n }\n try {\n saveProjects(earsOnto);\n } catch (Exception e) {\n reportError(\"Failed in saving projects: \" + e.getMessage(), e);\n throw new OWLOntologyCreationException(\"Failed in saving countries: \", e);\n }\n }\n return earsOnto;\n }", "title": "" }, { "docid": "bcbc6bf2eb4e993b4384f7bd3e666f65", "score": "0.519853", "text": "public OntModel loadOntModel() {\n\t\treturn loadOntModel(new File(fOntModelPath).listFiles());\n\t}", "title": "" }, { "docid": "a85ceeb6174222d8b312bf44a2eaccac", "score": "0.5174244", "text": "protected abstract void loadOntology(IProgressMonitor monitor);", "title": "" }, { "docid": "2e13964b9073a583438639e11fc8378f", "score": "0.5173771", "text": "public void loadAdditionalOntologies() throws OWLException, FileNotFoundException {\n ArrayList ontArr = config.getAdditionalOntologies(); \n for (Object ontArrObj : ontArr) {\n processOntology((String) ontArrObj);\n }\n }", "title": "" }, { "docid": "26fc62807abdf6d1cd84ea8a73013af6", "score": "0.5167453", "text": "private synchronized XSDSchema getExternalSchema()\n {\n if (schema == null)\n {\n Map typeDeclarationAttributes = getParent().getAllAttributes();\n String namespaceURI = StructuredTypeRtUtils.parseNamespaceURI(xRef);\n String url = alternateLocation == null ? location : alternateLocation;\n try\n {\n\n schema = StructuredTypeRtUtils.getSchema(url, namespaceURI, typeDeclarationAttributes);\n if (trace.isDebugEnabled())\n {\n trace.debug(\"Loaded schema from location: \" + url);\n }\n }\n catch (IOException e)\n {\n if (!url.equals(location))\n {\n // try to load from external url\n try\n {\n schema = StructuredTypeRtUtils.getSchema(location, namespaceURI, typeDeclarationAttributes);\n if (trace.isDebugEnabled())\n {\n trace.debug(\"Loaded schema from location: \" + location);\n }\n }\n catch (IOException e1)\n {\n // TODO handle\n }\n }\n }\n StructuredTypeRtUtils.patchAnnotations(schema, getExternalAnnotations());\n }\n return schema;\n }", "title": "" }, { "docid": "cf06e7f0dfa6d05f6204f7ab4217f6e5", "score": "0.51503485", "text": "public Ontology(String ontologyFileLocation){\n\t\tOWLOntologyManager manager = OWLManager.createOWLOntologyManager();\n File file = new File(ontologyFileLocation);\n // Now load the local copy\n try {\n\t\t\tonto = manager.loadOntologyFromOntologyDocument(file);\n\t\t} catch (OWLOntologyCreationException e) {\n\t\t\te.printStackTrace();\n\t\t\tonto = null;\n\t\t}\n Set<OWLClass> allClasses = onto.getClassesInSignature(true);\n for(OWLClass c : allClasses) {\n \tif(c.isTopEntity()){\n \t\tthis.root=c;\n \t\tbreak;\n \t}\n }\n \n if(this.root==null) System.err.println(\"[YaSemIR]: ERROR: No root class found!!!\");\n else System.err.println(\"[YaSemIR]: Warning: no root class given, using \"+this.root);\n \n System.err.println(\"[YaSemIR]: Loaded ontology: \" + onto+ \" with root class \"+this.root);\n\t}", "title": "" }, { "docid": "7360a140799a5f8da1525cd888a4b90f", "score": "0.5103042", "text": "public void setOntology(String ontology) {\n this.ontology = ontology;\n }", "title": "" }, { "docid": "6b1e7ba31bf4a8fcddb19baee1c54438", "score": "0.5081182", "text": "private Badges getSynonymsFromModel() throws JAXBException,\r\n\t\t\tMalformedURLException, URISyntaxException {\r\n\t\tJAXBContext jaxbContext = JAXBContext.newInstance(Badges.class);\r\n\t\tURL resource = getClass().getResource(\"genres.moviemanager\").toURI()\r\n\t\t\t\t.toURL();\r\n\t\tUnmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\r\n\t\tBadges repo = (Badges) jaxbUnmarshaller.unmarshal(resource);\r\n\t\treturn repo;\r\n\t}", "title": "" }, { "docid": "6be99c2e2f32ea5a0bf6bad34ea08e74", "score": "0.5059295", "text": "private Ontology() {}", "title": "" }, { "docid": "5ca1650dcf20d9a88700d678a9fa8d26", "score": "0.5056738", "text": "public OwlClass getRoot() {\n \tverifyEndState();\n \treturn owlThing;\n\t}", "title": "" }, { "docid": "dd105223fe157a647a42fcc52c519a18", "score": "0.5052713", "text": "public RDFModel loadRDFModel(String repo, String ontology) throws Exception{\n\t\tARTModelFactorySesame2Impl factImpl = new ARTModelFactorySesame2Impl(); \n\t\t \n\t\t// a model configuration is created for the Sesame2 implementation. Note that there are two contraints here: \n\t\t// first it has been created from a Sesame2 model factory \n\t\t// the configuration is a \"parameters bundle\" especially suited for \"non persisting\" \"in-memory\" sesame repositories. \n\t\tSesame2ModelConfiguration modelConf = \n\t\t factImpl.createModelConfigurationObject(Sesame2NonPersistentInMemoryModelConfiguration.class); \n\t\t \n\t\t\n\t\t \n\t\t// a factory is created in the usual way. Note that it is possible to contrain the factory to only \n\t\t// accept configurations of a given type. This is useful for static code to lessen chances of \n\t\t// configuration misuse. The java generics constraint is however erased at runtime \n\t\tOWLArtModelFactory<Sesame2ModelConfiguration> fact = OWLArtModelFactory.createModelFactory(factImpl); \n\t\t\n\t\t// the third argument here passed to the loadXXXModel method specifies that the configuration created above will \n\t\t// be used to determine the nature of the model being created\n\t\tOWLModel model = fact.loadOWLModel(\"http://wine\", repo, modelConf);\n\t\t\n\t\tmodel.addRDF(new File(ontology), \"\", RDFFormat.RDFXML, NodeFilters.MAINGRAPH);\n\t\t\n\t\treturn model;\n\t}", "title": "" }, { "docid": "b15dbc3be6d433722b811a139dada063", "score": "0.5047496", "text": "public static Optional ontology(Ontology ontology)\n\t{\n\t\treturn new TermEnumeratorBuilder().ontology(ontology);\n\t}", "title": "" }, { "docid": "e5320ea4de3f89f15789536b0e706347", "score": "0.49307916", "text": "public final Neuron getFromNeuron() {\r\n return fromNeuron;\r\n }", "title": "" }, { "docid": "21ef39cd013069cd1fb9fbc4d3d550ff", "score": "0.4919759", "text": "protected void queryOntology(){\n\t\tString queryString = \"PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\r\n\t\t\"PREFIX owl:<http://www.w3.org/2002/07/owl#>\" +\r\n\t\t\"SELECT ?class \" +\r\n\t\t\"WHERE { \" +\r\n\t\t\"?class rdf:type owl:Class \" +\r\n\t\t\" }\";\r\n\r\n\t\t//returns all subclass relationships between owl classes \r\n\t\t// *** each class is shown as a subclass of itself as well as its superclass!?!?!\r\n\t\tString queryString2 = \"PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> \" +\r\n\t\t\"PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\r\n\t\t\"PREFIX owl:<http://www.w3.org/2002/07/owl#>\" +\r\n\t\t\"SELECT ?classA ?classB \" +\r\n\t\t\"WHERE { \" +\r\n\t\t\"?classA rdf:type owl:Class \" +\r\n\t\t\"{ \" +\r\n\t\t\"?classB rdf:type owl:Class \" +\r\n\t\t\"} \" +\r\n\t\t\"{ \" +\r\n\t\t\"?classA rdfs:subClassOf ?classB \" +\r\n\t\t\"} \" +\r\n\t\t\"}\";\r\n\r\n\t\t//DOESNT WORK: ** WANT TO -> return all functional properties for owl classes in the ontology\r\n\t\t//the \"subRegion\" property is a functional property\r\n\t\tString queryString3 = \"PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\r\n\t\t\"PREFIX owl:<http://www.w3.org/2002/07/owl#>\" +\r\n\t\t\"SELECT ?class ?property \" +\r\n\t\t\"WHERE { \" +\r\n\t\t\"{ \" +\r\n\t\t\"?property rdf:type owl:FunctionalProperty .\" +\r\n\t\t\"} \" +\r\n\t\t\"UNION \" +\r\n\t\t\"{ \" +\r\n\t\t\"?class rdf:type owl:Class .\" +\r\n\t\t\"} \"+\r\n\t\t\" }\";\r\n\r\n\t\t//TRYING to return the property associated with the \"Country\" owl class\r\n\t\t// -- as is, returns the subRegion property and null for the class, no matter what is put in place of country\r\n\t\tString queryString4 = \"PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\r\n\t\t\"PREFIX owl:<http://www.w3.org/2002/07/owl#>\" +\r\n\t\t\"PREFIX ucd: <http://www.srg.ucd.ie/photo_ontologies.owl#>\" +\r\n\t\t\"SELECT ?property ?class \" +\r\n\t\t\"WHERE { \" +\r\n\t\t\"{ \" +\r\n\t\t\"?property rdf:type owl:FunctionalProperty . \" +\r\n\t\t\"} \" +\r\n\t\t\"UNION \" +\r\n\t\t\"{ \"+ \r\n\t\t\"?class owl:Class ucd:Country . \" +\r\n\t\t\"} \" +\r\n\t\t\"} \";\r\n\r\n\r\n\t\t//test query that just returns all the types in the ontology\r\n\t\tString queryStringTest = \"PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\r\n\t\t\"SELECT ?type \" +\r\n\t\t\"WHERE { \" +\r\n\t\t\"?x rdf:type ?type \" +\r\n\t\t\"}\";\r\n\r\n\t\t//create a query object using the query string\r\n\t\tQuery query = QueryFactory.create(queryString4);\r\n\r\n\t\t//execute the query and obtain the results\r\n\t\tQueryExecution qe = QueryExecutionFactory.create(query, model);\r\n\t\tResultSet results = qe.execSelect();\r\n\t\tfor(; results.hasNext();){\r\n\t\t\tQuerySolution solution = results.nextSolution();\r\n\t\t\tSystem.out.println(\"solution: \" +solution.toString());\r\n\t\t}\r\n\r\n\r\n\r\n\t\t//output query results\r\n//\t\tResultSetFormatter.out(System.out, results, query);\r\n\r\n\t\t//free up resources used running the query\r\n\t\tqe.close();\r\n\r\n\t}", "title": "" }, { "docid": "3c88cef95f175697113b4c8f1336607e", "score": "0.48982963", "text": "public RDFService getRDFService();", "title": "" }, { "docid": "ee484f227ef2da7bb2fe7b050572910f", "score": "0.48809397", "text": "public Ontology getAlignedOntology() {\n\t\treturn alignedOntology;\n\t}", "title": "" }, { "docid": "b39a221828d9a834aff61ec28a51ab6e", "score": "0.4878228", "text": "public ArrayList<String> getOntologyClassURIs(){\r\n\t\tArrayList<String> resultURIs = new ArrayList<String>();\r\n\t\tif(alleleName1 == null || alleleName1.equals(\"null\")|| alleleName2 == null ) return resultURIs;\r\n\t\tString uriString = \"http://www.genomic-cds.org/ont/genomic-cds.owl#\";\r\n\t\tif(alleleName1.equals(alleleName2)){//homozygous\r\n\t\t\tresultURIs.add(uriString+\"human_with_homozygous_\"+geneName+\"_\"+alleleName1);\r\n\t\t}else{//not homozygous\r\n\t\t\t//Variant 1\r\n\t\t\tresultURIs.add(uriString+\"human_with_\"+geneName+\"_\"+alleleName1);\r\n\t\t\t//Variant 2\r\n\t\t\tresultURIs.add(uriString+\"human_with_\"+geneName+\"_\"+alleleName2);\r\n\t\t}\r\n\t\treturn resultURIs;\r\n\t}", "title": "" }, { "docid": "93cf70e023b69f479b8b1f253ec0edb8", "score": "0.48323753", "text": "@Test\n public void createTestOntology() {\n XSD2OWLMapper mapping = new XSD2OWLMapper(new File(\"src/test/resources/test/test.xsd\"));\n mapping.setObjectPropPrefix(\"\");\n mapping.setDataTypePropPrefix(\"\");\n mapping.convertXSD2OWL();\n\n // This part prints the ontology to the specified file.\n FileOutputStream ont;\n try {\n File f = new File(\"src/test/resources/output/test.n3\");\n f.getParentFile().mkdirs();\n ont = new FileOutputStream(f);\n mapping.writeOntology(ont, \"N3\");\n ont.close();\n } catch (Exception e) {\n LOGGER.error(\"{}\", e.getMessage());\n }\n }", "title": "" }, { "docid": "7af55ae1eff8c55f598ea8220292f25e", "score": "0.48148334", "text": "Morphia getMorphia();", "title": "" }, { "docid": "7c3072408fe8931cbbf9f4d91adfb656", "score": "0.4813638", "text": "private void _loadOntology(_Conn _conn, OntologyInfo ontology, String graphId, String full_path, boolean clearGraphFirst) {\n\t\t\n\t\tString graphUri;\n\t\t\n\t\tString ontologyUri = ontology.getUri();\n\t\tOntModel model;\n\t\t\n\t\tif ( USE_UNVERSIONED ) {\n\t\t\tmodel = JenaUtil2.loadModel(\"file:\" +full_path, false);\n\n\t\t\tif ( OntUtil.isOntResolvableUri(ontologyUri) ) {\n\t\t\t\tMmiUri mmiUri;\n\t\t\t\ttry {\n\t\t\t\t\tmmiUri = new MmiUri(ontologyUri);\n\t\t\t\t\tmodel = UnversionedConverter.getUnversionedModel(model, mmiUri);\n\t\t\t\t\tontologyUri = mmiUri.copyWithVersion(null).getOntologyUri();\n\t\t\t\t}\n\t\t\t\tcatch (URISyntaxException e) {\n\t\t\t\t\tlog.error(\"shouldn't happen\", e);\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\tlog.info(\"To load Ont-resolvable ontology in graph.\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlog.info(\"To load re-hosted ontology in graph.\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tmodel = JenaUtil2.loadModel(\"file:\" +full_path, false);\n\t\t}\n\t\t\n\t\t///////////////////////////////////////////////////////////////\n\t\t// now, update triple store with model captured \n\t\t///////////////////////////////////////////////////////////////\n\t\t\n\t\t// add the model to the given triple store in the given connection,\n\t\t// which should be the \"default\" graph.\n\t\tif ( log.isDebugEnabled() ) {\n\t\t\tlog.debug(\"Loading model in default graph in triple store...\");\n\t\t}\n\t\t_conn._model.add(model);\n\t\tif ( log.isDebugEnabled() ) {\n\t\t\tlog.debug(\"Loading model in default graph in triple store... Done.\");\n\t\t}\n\n\t\t// below, we add the model to its \"ownGraph\" \n\t\t\n\t\ttry {\n\t\t\t// 'ownGraph' is the graph for the ontology itself. \n\t\t\t// All the statements in the ontology are associated with this graph.\n\t\t\tfinal String ownGraph = ontologyUri;\n\t\t\t\n\t\t\t_Conn _connGraph = new _Conn(ownGraph);\n\t\t\ttry {\n\t\t\t\tif ( clearGraphFirst ) {\n\t\t\t\t\t// remove all statements associated with the graph:\n\t\t\t\t\tif ( log.isDebugEnabled() ) {\n\t\t\t\t\t\tlog.debug(\"Removing all statements in graph \" +ownGraph+ \" ...\");\n\t\t\t\t\t}\n\t\t\t\t\t_connGraph._graph.clear();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// now, create the new graph:\n\t\t\t\tif ( log.isDebugEnabled() ) {\n\t\t\t\t\tlog.debug(\"Loading model in graph '\" +ownGraph+ \"' in triple store...\");\n\t\t\t\t}\n\t\t\t\t_connGraph._model.add(model);\n\t\t\t\tif ( log.isDebugEnabled() ) {\n\t\t\t\t\tlog.debug(\"Loading model in graph '\" +ownGraph+ \"' in triple store... Done\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\t_connGraph.end();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// add the graph statement to the graphs resource:\n\t\t\tString ownGraphUri = adminDispatcher.getWellFormedGraphUri(ownGraph);\n\t\t\tadminDispatcher.newGraph(ownGraphUri);\n\t\t\t\n\t\t\t// now, add the subGraphOf relationship if graphId != null\n\t\t\tif ( graphId != null ) {\n\t\t\t\tgraphUri = adminDispatcher.getWellFormedGraphUri(graphId);\n\t\t\t\t_addSubGraph(_conn, ownGraphUri, graphUri);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tlog.error(\"Error parsing/loading RDF in graph.\", e);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "4376ebe9f76e193ffce9d7db51aaf64e", "score": "0.48019734", "text": "private List<InferredOWLOntologyID> loadVersion2SchemaOntologies() throws Exception\n {\n // prepare: load schema ontologies\n final InferredOWLOntologyID inferredDctermsOntologyID =\n this.loadInferStoreOntology(PODD.PATH_PODD_DCTERMS_V2, RDFFormat.RDFXML,\n TestConstants.EXPECTED_TRIPLE_COUNT_DC_TERMS_CONCRETE,\n TestConstants.EXPECTED_TRIPLE_COUNT_DC_TERMS_INFERRED, this.testRepositoryConnection);\n final InferredOWLOntologyID inferredFoafOntologyID =\n this.loadInferStoreOntology(PODD.PATH_PODD_FOAF_V2, RDFFormat.RDFXML,\n TestConstants.EXPECTED_TRIPLE_COUNT_FOAF_CONCRETE,\n TestConstants.EXPECTED_TRIPLE_COUNT_FOAF_INFERRED, this.testRepositoryConnection);\n final InferredOWLOntologyID inferredPUserOntologyID =\n this.loadInferStoreOntology(PODD.PATH_PODD_USER_V2, RDFFormat.RDFXML,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_USER_CONCRETE,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_USER_INFERRED, this.testRepositoryConnection);\n final InferredOWLOntologyID inferredPBaseOntologyID =\n this.loadInferStoreOntology(PODD.PATH_PODD_BASE_V2, RDFFormat.RDFXML,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_BASE_CONCRETE,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_BASE_INFERRED, this.testRepositoryConnection);\n final InferredOWLOntologyID inferredPScienceOntologyID =\n this.loadInferStoreOntology(PODD.PATH_PODD_SCIENCE_V2, RDFFormat.RDFXML,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_SCIENCE_CONCRETE,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_SCIENCE_INFERRED, this.testRepositoryConnection);\n final InferredOWLOntologyID inferredPPlantOntologyID =\n this.loadInferStoreOntology(PODD.PATH_PODD_PLANT_V2, RDFFormat.RDFXML,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_PLANT_CONCRETE,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_PLANT_INFERRED, this.testRepositoryConnection);\n \n // prepare: update schema management graph\n this.testSesameManager.updateCurrentManagedSchemaOntologyVersion(inferredDctermsOntologyID, false,\n this.testRepositoryConnection, this.schemaGraph);\n this.testSesameManager.updateCurrentManagedSchemaOntologyVersion(inferredFoafOntologyID, false,\n this.testRepositoryConnection, this.schemaGraph);\n this.testSesameManager.updateCurrentManagedSchemaOntologyVersion(inferredPUserOntologyID, false,\n this.testRepositoryConnection, this.schemaGraph);\n this.testSesameManager.updateCurrentManagedSchemaOntologyVersion(inferredPBaseOntologyID, false,\n this.testRepositoryConnection, this.schemaGraph);\n this.testSesameManager.updateCurrentManagedSchemaOntologyVersion(inferredPScienceOntologyID, false,\n this.testRepositoryConnection, this.schemaGraph);\n this.testSesameManager.updateCurrentManagedSchemaOntologyVersion(inferredPPlantOntologyID, false,\n this.testRepositoryConnection, this.schemaGraph);\n \n return Arrays.asList(inferredDctermsOntologyID, inferredFoafOntologyID, inferredPUserOntologyID,\n inferredPBaseOntologyID, inferredPScienceOntologyID, inferredPPlantOntologyID);\n }", "title": "" }, { "docid": "d03b2d10a7df643ff58dead1286eb558", "score": "0.47980407", "text": "public Ontology generateOntology() throws IOException\r\n {\r\n\t\tinit();\r\n Ontology ontology = new Ontology(ontologyName, ontologyTitle);\r\n ontology.setSiteURL(url);\r\n\r\n // Predefined domains\r\n Domain formMethodDomain = new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.choice\"), \"choice\");\r\n formMethodDomain.addEntry(new DomainEntry(\"post\"));\r\n formMethodDomain.addEntry(new DomainEntry(\"get\"));\r\n\r\n // Classes\r\n OntologyClass pageClass = new OntologyClass(\"page\");\r\n ontology.addClass(pageClass);\r\n OntologyClass formClass = new OntologyClass(\"form\");\r\n formClass.addAttribute(new Attribute(\"method\", \"get\", formMethodDomain));\r\n formClass.addAttribute(new Attribute(\"action\", null, new Domain(PropertiesHandler\r\n .getResourceString(\"ontology.domain.url\"), \"url\")));\r\n ontology.addClass(formClass);\r\n OntologyClass inputClass = new OntologyClass(\"input\");\r\n inputClass.addAttribute(new Attribute(\"name\", null, new Domain(PropertiesHandler\r\n .getResourceString(\"ontology.domain.text\"), \"text\")));\r\n inputClass.addAttribute(new Attribute(\"disabled\", Boolean.FALSE, new Domain(\r\n \tPropertiesHandler.getResourceString(\"ontology.domain.boolean\"), \"boolean\")));\r\n ontology.addClass(inputClass);\r\n\r\n // Text Class\r\n OntologyClass textInputClass = new OntologyClass(inputClass, \"text\");\r\n textInputClass.addAttribute(new Attribute(\"type\", \"text\"));\r\n textInputClass.addAttribute(new Attribute(\"defaultValue\", null, new Domain(\r\n \tPropertiesHandler.getResourceString(\"ontology.domain.text\"), \"text\")));\r\n textInputClass.addAttribute(new Attribute(\"value\", null, new Domain(PropertiesHandler\r\n .getResourceString(\"ontology.domain.text\"), \"text\")));\r\n textInputClass.addAttribute(new Attribute(\"size\", null, new Domain(PropertiesHandler\r\n .getResourceString(\"ontology.domain.pinteger\"), \"pinteger\")));\r\n textInputClass.addAttribute(new Attribute(\"maxLength\", null, new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.pinteger\"), \"pinteger\")));\r\n textInputClass.addAttribute(new Attribute(\"readOnly\", Boolean.FALSE, new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.boolean\"), \"boolean\")));\r\n\r\n // Password Class\r\n OntologyClass passwordInputClass = new OntologyClass(inputClass, \"password\");\r\n passwordInputClass.addAttribute(new Attribute(\"type\", \"password\"));\r\n passwordInputClass.addAttribute(new Attribute(\"defaultValue\", null, new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.text\"), \"text\")));\r\n passwordInputClass.addAttribute(new Attribute(\"size\", null, new Domain(PropertiesHandler\r\n .getResourceString(\"ontology.domain.pinteger\"), \"text\")));\r\n passwordInputClass.addAttribute(new Attribute(\"maxLength\", null, new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.pinteger\"), \"pinteger\")));\r\n passwordInputClass.addAttribute(new Attribute(\"readOnly\", Boolean.FALSE, new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.boolean\"), \"boolean\")));\r\n\r\n // File Class\r\n OntologyClass fileInputClass = new OntologyClass(inputClass, \"file\");\r\n fileInputClass.addAttribute(new Attribute(\"type\", \"file\"));\r\n fileInputClass.addAttribute(new Attribute(\"size\", null, new Domain(PropertiesHandler\r\n .getResourceString(\"ontology.domain.pinteger\"), \"pinteger\")));\r\n fileInputClass.addAttribute(new Attribute(\"maxLength\", null, new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.pinteger\"), \"pinteger\")));\r\n fileInputClass.addAttribute(new Attribute(\"readOnly\", Boolean.FALSE, new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.boolean\"), \"boolean\")));\r\n\r\n // Hidden Class\r\n OntologyClass hiddenInputClass = new OntologyClass(inputClass, \"hidden\");\r\n hiddenInputClass.addAttribute(new Attribute(\"type\", \"hidden\"));\r\n\r\n // Checkbox Class\r\n OntologyClass checkboxInputClass = new OntologyClass(inputClass, \"checkbox\");\r\n checkboxInputClass.addAttribute(new Attribute(\"type\", \"checkbox\"));\r\n\r\n // Radio Class\r\n OntologyClass radioInputClass = new OntologyClass(inputClass, \"radio\");\r\n radioInputClass.addAttribute(new Attribute(\"type\", \"radio\"));\r\n\r\n // Select Class\r\n OntologyClass selectInputClass = new OntologyClass(inputClass, \"select\");\r\n selectInputClass.addAttribute(new Attribute(\"type\", \"select\"));\r\n selectInputClass.addAttribute(new Attribute(\"size\", null, new Domain(PropertiesHandler\r\n .getResourceString(\"ontology.domain.pinteger\"), \"pinteger\")));\r\n selectInputClass.addAttribute(new Attribute(\"multiple\", Boolean.FALSE, new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.boolean\"), \"boolean\")));\r\n\r\n // Textarea Class\r\n OntologyClass textareaInputClass = new OntologyClass(inputClass, \"textarea\");\r\n textareaInputClass.addAttribute(new Attribute(\"type\", \"textarea\"));\r\n textareaInputClass.addAttribute(new Attribute(\"defaultValue\", null, new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.text\"), \"text\")));\r\n textareaInputClass.addAttribute(new Attribute(\"rows\", null, new Domain(PropertiesHandler\r\n .getResourceString(\"ontology.domain.pinteger\"), \"pinteger\")));\r\n textareaInputClass.addAttribute(new Attribute(\"cols\", null, new Domain(PropertiesHandler\r\n .getResourceString(\"ontology.domain.pinteger\"), \"pinteger\")));\r\n textareaInputClass.addAttribute(new Attribute(\"readOnly\", Boolean.FALSE, new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.boolean\"), \"boolean\")));\r\n\r\n // Button Class\r\n OntologyClass buttonInputClass = new OntologyClass(inputClass, \"button\");\r\n hiddenInputClass.addAttribute(new Attribute(\"type\", \"button\"));\r\n\r\n // Submit Class\r\n OntologyClass submitInputClass = new OntologyClass(inputClass, \"submit\");\r\n submitInputClass.addAttribute(new Attribute(\"type\", \"submit\"));\r\n\r\n // Reset Class\r\n OntologyClass resetInputClass = new OntologyClass(inputClass, \"reset\");\r\n resetInputClass.addAttribute(new Attribute(\"type\", \"reset\"));\r\n\r\n // Image Class\r\n OntologyClass imageInputClass = new OntologyClass(inputClass, \"image\");\r\n imageInputClass.addAttribute(new Attribute(\"type\", \"image\"));\r\n imageInputClass.addAttribute(new Attribute(\"src\", null, new Domain(PropertiesHandler\r\n .getResourceString(\"ontology.domain.url\"), \"url\")));\r\n \r\n ArrayList<FORMElement> forms;\r\n if (formsToExtract == null)\r\n {\r\n\t Graph elementsTree = HTMLUtilities.getFORMElementsHierarchy(document, url);\r\n\t GraphCell root = elementsTree.getRootCells().iterator().next();\r\n\t forms = HTMLUtilities.extractFormsFromTree(root);\r\n }\r\n else\r\n {\r\n \tforms = formsToExtract;\r\n }\r\n\r\n Term pageTerm = new Term(pageClass, url.toExternalForm());\r\n ontology.addTerm(pageTerm);\r\n \r\n Term prevFormTerm = null;\r\n for (FORMElement form : forms)\r\n {\r\n Term formTerm = new Term(formClass, form.getName());\r\n if (prevFormTerm != null)\r\n {\r\n prevFormTerm.setSucceed(formTerm);\r\n formTerm.setPrecede(prevFormTerm);\r\n }\r\n prevFormTerm = formTerm;\r\n formTerm.setAttributeValue(\"method\", form.getMethod());\r\n formTerm.setAttributeValue(\"action\", form.getAction());\r\n pageTerm.addTerm(formTerm);\r\n Term prevInputTerm = null;\r\n for (int k = 0; k < form.getInputsCount(); k++)\r\n {\r\n INPUTElement input = form.getInput(k);\r\n Term inputTerm = null;\r\n if (input.getInputType().equals(INPUTElement.TEXT))\r\n {\r\n TextINPUTElement textInput = (TextINPUTElement) input;\r\n inputTerm = new Term(textInputClass, textInput.getLabel(), textInput.getValue());\r\n inputTerm.setAttributeValue(\"name\", textInput.getName());\r\n inputTerm.setAttributeValue(\"defaultValue\", textInput.getDefaultValue());\r\n if (textInput.getSize() != -1)\r\n inputTerm.setAttributeValue(\"size\", new Integer(textInput.getSize()));\r\n if (textInput.getMaxLength() != -1)\r\n inputTerm.setAttributeValue(\"maxLength\",\r\n new Integer(textInput.getMaxLength()));\r\n inputTerm.setAttributeValue(\"readOnly\", new Boolean(textInput.isReadOnly()));\r\n }\r\n else if (input.getInputType().equals(INPUTElement.PASSWORD))\r\n {\r\n PasswordINPUTElement passwordInput = (PasswordINPUTElement) input;\r\n inputTerm = new Term(passwordInputClass, passwordInput.getLabel(),\r\n passwordInput.getValue());\r\n inputTerm.setAttributeValue(\"name\", passwordInput.getName());\r\n inputTerm.setAttributeValue(\"defaultValue\", passwordInput.getDefaultValue());\r\n if (passwordInput.getSize() != -1)\r\n inputTerm.setAttributeValue(\"size\", new Integer(passwordInput.getSize()));\r\n if (passwordInput.getMaxLength() != -1)\r\n inputTerm.setAttributeValue(\"maxLength\",\r\n new Integer(passwordInput.getMaxLength()));\r\n inputTerm\r\n .setAttributeValue(\"readOnly\", new Boolean(passwordInput.isReadOnly()));\r\n }\r\n else if (input.getInputType().equals(INPUTElement.FILE))\r\n {\r\n FileINPUTElement fileInput = (FileINPUTElement) input;\r\n inputTerm = new Term(fileInputClass, fileInput.getLabel(), fileInput.getValue());\r\n inputTerm.setAttributeValue(\"name\", fileInput.getName());\r\n if (fileInput.getSize() != -1)\r\n inputTerm.setAttributeValue(\"size\", new Integer(fileInput.getSize()));\r\n if (fileInput.getMaxLength() != -1)\r\n inputTerm.setAttributeValue(\"maxLength\",\r\n new Integer(fileInput.getMaxLength()));\r\n inputTerm.setAttributeValue(\"readOnly\", new Boolean(fileInput.isReadOnly()));\r\n }\r\n else if (input.getInputType().equals(INPUTElement.HIDDEN))\r\n {\r\n HiddenINPUTElement hiddenInput = (HiddenINPUTElement) input;\r\n inputTerm = new Term(hiddenInputClass, input.getName(), hiddenInput.getValue());\r\n inputTerm.setAttributeValue(\"name\", hiddenInput.getName());\r\n }\r\n else if (input.getInputType().equals(INPUTElement.CHECKBOX))\r\n {\r\n CheckboxINPUTElement checkboxInput = (CheckboxINPUTElement) input;\r\n inputTerm = new Term(checkboxInputClass, checkboxInput.getLabel(),\r\n checkboxInput.getValue());\r\n inputTerm.setAttributeValue(\"name\", checkboxInput.getName());\r\n Domain checkboxDomain = new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.choice\"), \"choice\");\r\n for (int o = 0; o < checkboxInput.getOptionsCount(); o++)\r\n {\r\n CheckboxINPUTElementOption option = checkboxInput.getOption(o);\r\n Term optionTerm = new Term(option.getLabel(), option.getValue());\r\n optionTerm.addAttribute(new Attribute(\"checked\", new Boolean(option\r\n .isChecked())));\r\n optionTerm.addAttribute(new Attribute(\"defaultChecked\", new Boolean(option\r\n .isDefaultChecked())));\r\n checkboxDomain.addEntry(new DomainEntry(optionTerm));\r\n }\r\n inputTerm.setDomain(checkboxDomain);\r\n }\r\n else if (input.getInputType().equals(INPUTElement.RADIO))\r\n {\r\n RadioINPUTElement radioInput = (RadioINPUTElement) input;\r\n inputTerm = new Term(radioInputClass, radioInput.getLabel(),\r\n radioInput.getValue());\r\n inputTerm.setAttributeValue(\"name\", radioInput.getName());\r\n Domain radioDomain = new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.choice\"), \"choice\");\r\n for (int o = 0; o < radioInput.getOptionsCount(); o++)\r\n {\r\n RadioINPUTElementOption option = radioInput.getOption(o);\r\n Term optionTerm = new Term(option.getLabel(), option.getValue());\r\n optionTerm.addAttribute(new Attribute(\"checked\", new Boolean(option\r\n .isChecked())));\r\n optionTerm.addAttribute(new Attribute(\"defaultChecked\", new Boolean(option\r\n .isDefaultChecked())));\r\n radioDomain.addEntry(new DomainEntry(optionTerm));\r\n }\r\n inputTerm.setDomain(radioDomain);\r\n }\r\n else if (input.getInputType().equals(INPUTElement.SELECT))\r\n {\r\n SELECTElement selectInput = (SELECTElement) input;\r\n inputTerm = new Term(selectInputClass, selectInput.getLabel(),\r\n selectInput.getValue());\r\n inputTerm.setAttributeValue(\"name\", selectInput.getName());\r\n Domain selectDomain = new Domain(\r\n PropertiesHandler.getResourceString(\"ontology.domain.choice\"), \"choice\");\r\n for (int o = 0; o < selectInput.getOptionsCount(); o++)\r\n {\r\n OPTIONElement option = selectInput.getOption(o);\r\n Term optionTerm = new Term(option.getLabel(), option.getValue());\r\n optionTerm.addAttribute(new Attribute(\"selected\", new Boolean(option\r\n .isSelected())));\r\n optionTerm.addAttribute(new Attribute(\"defaultSelected\", new Boolean(option\r\n .isDefaultSelected())));\r\n selectDomain.addEntry(new DomainEntry(optionTerm));\r\n }\r\n inputTerm.setDomain(selectDomain);\r\n }\r\n else if (input.getInputType().equals(INPUTElement.TEXTAREA))\r\n {\r\n TEXTAREAElement textareaInput = (TEXTAREAElement) input;\r\n inputTerm = new Term(textareaInputClass, textareaInput.getLabel(),\r\n textareaInput.getValue());\r\n inputTerm.setAttributeValue(\"name\", textareaInput.getName());\r\n inputTerm.setAttributeValue(\"defaultValue\", textareaInput.getDefaultValue());\r\n if (textareaInput.getRows() != -1)\r\n inputTerm.setAttributeValue(\"rows\", new Integer(textareaInput.getRows()));\r\n if (textareaInput.getCols() != -1)\r\n inputTerm.setAttributeValue(\"cols\", new Integer(textareaInput.getCols()));\r\n inputTerm\r\n .setAttributeValue(\"readOnly\", new Boolean(textareaInput.isReadOnly()));\r\n }\r\n else if (input.getInputType().equals(INPUTElement.BUTTON))\r\n {\r\n ButtonINPUTElement buttonInput = (ButtonINPUTElement) input;\r\n inputTerm = new Term(buttonInputClass, buttonInput.getValue());\r\n inputTerm.setAttributeValue(\"name\", buttonInput.getName());\r\n }\r\n else if (input.getInputType().equals(INPUTElement.SUBMIT))\r\n {\r\n SubmitINPUTElement submitInput = (SubmitINPUTElement) input;\r\n inputTerm = new Term(submitInputClass, submitInput.getValue());\r\n inputTerm.setAttributeValue(\"name\", submitInput.getName());\r\n }\r\n else if (input.getInputType().equals(INPUTElement.RESET))\r\n {\r\n ResetINPUTElement resetInput = (ResetINPUTElement) input;\r\n inputTerm = new Term(resetInputClass, resetInput.getValue());\r\n inputTerm.setAttributeValue(\"name\", resetInput.getName());\r\n }\r\n else if (input.getInputType().equals(INPUTElement.IMAGE))\r\n {\r\n ImageINPUTElement imageInput = (ImageINPUTElement) input;\r\n inputTerm = new Term(imageInputClass, imageInput.getAlt());\r\n inputTerm.setAttributeValue(\"name\", imageInput.getName());\r\n inputTerm.setAttributeValue(\"src\", imageInput.getSrc());\r\n }\r\n if (inputTerm != null)\r\n {\r\n inputTerm.setAttributeValue(\"disabled\", new Boolean(input.isDisabled()));\r\n Hashtable<?, ?> events = input.getEvents();\r\n for (Enumeration<?> e = events.keys(); e.hasMoreElements();)\r\n {\r\n String event = (String) e.nextElement();\r\n String script = (String) events.get(event);\r\n inputTerm.addAxiom(new Axiom(event, script));\r\n }\r\n if (prevInputTerm != null)\r\n {\r\n prevInputTerm.setSucceed(inputTerm);\r\n inputTerm.setPrecede(prevInputTerm);\r\n }\r\n prevInputTerm = inputTerm;\r\n formTerm.addTerm(inputTerm);\r\n }\r\n }\r\n }\r\n\r\n return ontology;\r\n }", "title": "" }, { "docid": "48eb46a73f58518b6c8c8ab01998683e", "score": "0.478047", "text": "private List<InferredOWLOntologyID> loadVersion1SchemaOntologies() throws Exception\n {\n // prepare: load schema ontologies\n final InferredOWLOntologyID inferredDctermsOntologyID =\n this.loadInferStoreOntology(PODD.PATH_PODD_DCTERMS_V1, RDFFormat.RDFXML,\n TestConstants.EXPECTED_TRIPLE_COUNT_DC_TERMS_CONCRETE,\n TestConstants.EXPECTED_TRIPLE_COUNT_DC_TERMS_INFERRED, this.testRepositoryConnection);\n final InferredOWLOntologyID inferredFoafOntologyID =\n this.loadInferStoreOntology(PODD.PATH_PODD_FOAF_V1, RDFFormat.RDFXML,\n TestConstants.EXPECTED_TRIPLE_COUNT_FOAF_CONCRETE,\n TestConstants.EXPECTED_TRIPLE_COUNT_FOAF_INFERRED, this.testRepositoryConnection);\n final InferredOWLOntologyID inferredPUserOntologyID =\n this.loadInferStoreOntology(PODD.PATH_PODD_USER_V1, RDFFormat.RDFXML,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_USER_CONCRETE,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_USER_INFERRED, this.testRepositoryConnection);\n final InferredOWLOntologyID inferredPBaseOntologyID =\n this.loadInferStoreOntology(PODD.PATH_PODD_BASE_V1, RDFFormat.RDFXML,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_BASE_CONCRETE,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_BASE_INFERRED, this.testRepositoryConnection);\n final InferredOWLOntologyID inferredPScienceOntologyID =\n this.loadInferStoreOntology(PODD.PATH_PODD_SCIENCE_V1, RDFFormat.RDFXML,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_SCIENCE_CONCRETE,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_SCIENCE_INFERRED, this.testRepositoryConnection);\n final InferredOWLOntologyID inferredPPlantOntologyID =\n this.loadInferStoreOntology(PODD.PATH_PODD_PLANT_V1, RDFFormat.RDFXML,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_PLANT_CONCRETE,\n TestConstants.EXPECTED_TRIPLE_COUNT_PODD_PLANT_INFERRED, this.testRepositoryConnection);\n \n // prepare: update schema management graph\n this.testSesameManager.updateCurrentManagedSchemaOntologyVersion(inferredDctermsOntologyID, false,\n this.testRepositoryConnection, this.schemaGraph);\n this.testSesameManager.updateCurrentManagedSchemaOntologyVersion(inferredFoafOntologyID, false,\n this.testRepositoryConnection, this.schemaGraph);\n this.testSesameManager.updateCurrentManagedSchemaOntologyVersion(inferredPUserOntologyID, false,\n this.testRepositoryConnection, this.schemaGraph);\n this.testSesameManager.updateCurrentManagedSchemaOntologyVersion(inferredPBaseOntologyID, false,\n this.testRepositoryConnection, this.schemaGraph);\n this.testSesameManager.updateCurrentManagedSchemaOntologyVersion(inferredPScienceOntologyID, false,\n this.testRepositoryConnection, this.schemaGraph);\n this.testSesameManager.updateCurrentManagedSchemaOntologyVersion(inferredPPlantOntologyID, false,\n this.testRepositoryConnection, this.schemaGraph);\n \n return Arrays.asList(inferredDctermsOntologyID, inferredFoafOntologyID, inferredPUserOntologyID,\n inferredPBaseOntologyID, inferredPScienceOntologyID, inferredPPlantOntologyID);\n }", "title": "" }, { "docid": "3dd04267816a9bfd453a543d739d3521", "score": "0.47717425", "text": "private static synchronized ConnectionSource getSource()\n\t{\n\t\tif(ccs_OSTEOPHOENIX == null)\n\t\t\tccs_OSTEOPHOENIX = new JNDISource(cs_CONFIG_FILE_OSTEOPHOENIX);\n\n\t\treturn ccs_OSTEOPHOENIX;\n\t}", "title": "" }, { "docid": "7a4b4f096b94dafa30cb39fbc9f5a109", "score": "0.47673893", "text": "public void addOntology (Ontology ontology) {\n\t\tString ontologyKey = ontology.getId();\n\t\tontologies.put(ontologyKey, ontology);\n\t}", "title": "" }, { "docid": "906d118cb4180998ddfbbbcdbe414413", "score": "0.47571167", "text": "public gov.ucore.ucore._2_0.ThingThingRelationshipType getAffiliatedWith()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.ThingThingRelationshipType target = null;\n target = (gov.ucore.ucore._2_0.ThingThingRelationshipType)get_store().find_element_user(AFFILIATEDWITH$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "title": "" }, { "docid": "7c1f2a1d4a87430ad8153d10fee836b5", "score": "0.47524676", "text": "public void printOntology() {\n\t\tIRI ontologyIRI = ontology.getOntologyID().getOntologyIRI();\n\t\tIRI documentIRI = owlManager.getOntologyDocumentIRI(ontology);\n\t\tSystem.out.println(ontologyIRI == null ? \"anonymous\" : ontologyIRI\n\t\t\t\t.toQuotedString());\n\t\tSystem.out.println(\" from \" + documentIRI.toQuotedString());\n\t}", "title": "" }, { "docid": "2f50daaa7fb55cbabc8fda57603ce84a", "score": "0.4723565", "text": "@Test\n public void createSALUSCommonOntology() {\n XSD2OWLMapper mapping = new XSD2OWLMapper(new File(\"src/test/resources/salus-common-xsd/salus-cim.xsd\"));\n mapping.setObjectPropPrefix(\"\");\n mapping.setDataTypePropPrefix(\"\");\n mapping.convertXSD2OWL();\n\n // This part prints the ontology to the specified file.\n FileOutputStream ont;\n try {\n File f = new File(\"src/test/resources/output/salus-cim-ontology.n3\");\n f.getParentFile().mkdirs();\n ont = new FileOutputStream(f);\n mapping.writeOntology(ont, \"N3\");\n ont.close();\n } catch (Exception e) {\n LOGGER.error(\"{}\", e.getMessage());\n }\n }", "title": "" }, { "docid": "a8a9c21197a531486e975fd618679583", "score": "0.472086", "text": "OwlModel(File projectLocation, OWLWorkspace owlWorkspace) throws IOException {\n super(projectLocation);\n this.owlOntologyManager = OWLManager.createOWLOntologyManager();\n\n owlWorkSpace = Optional.ofNullable(owlWorkspace);\n }", "title": "" }, { "docid": "7ea58002be431fbbc5c089a5a00a567a", "score": "0.47197312", "text": "public KnowledgeBase() {\n\t\tthis.knowledgeEngine = KnowledgeEngine.getCurrentKnowledgeEngine();\n\t\tthis.inferenceEngine = new BackwardChainingInferenceEngine(this);\n\t\tthis.nameSpace = new NameSpace();\n\t\tthis.ontology = this.knowledgeEngine.getCurrentOntology();\n\t}", "title": "" }, { "docid": "5aac887feb75355a90d13c48cb607e9b", "score": "0.4716527", "text": "public Individual getIndividual(String name, OWLOntology ontology) {\n return new Individual(getIRI(name),ontology);\n }", "title": "" }, { "docid": "2f1676c48bf3edcbdb9c18325eb34ffb", "score": "0.46995276", "text": "@Test\n public final void testOBOPlantOntology() throws Exception\n {\n // create owl class objects to use in queries\n final OWLClass phylomeStomatalComplex = OWL.Class(IRI.create(\"http://purl.obolibrary.org/obo/PO_0025215\"));\n final OWLClass bractStomatalComplex = OWL.Class(IRI.create(\"http://purl.obolibrary.org/obo/PO_0025216\"));\n final OWLClass plantAnatomicalEntity = OWL.Class(IRI.create(\"http://purl.obolibrary.org/obo/PO_0025131\"));\n final OWLClass phylome = OWL.Class(IRI.create(\"http://purl.obolibrary.org/obo/PO_0006001\"));\n \n final OWLOntologyID modifiedId =\n new OWLOntologyID(IRI.create(\"http://purl.obolibrary.org/obo/po.owl\"),\n IRI.create(\"urn:test:plantontology:version:16.0\"));\n \n final InferredOWLOntologyID inferredOWLOntologyID =\n this.utils.loadInferAndStoreSchemaOntology(\"/ontologies/plant_ontology-v16.owl\",\n RDFFormat.RDFXML.getDefaultMIMEType(), modifiedId, this.getTestRepositoryConnection());\n \n this.getTestRepositoryConnection().commit();\n \n // verify that the triples were inserted into the repository correctly by testing the size\n // of different contexts and then testing the size of the complete repository to verify that\n // no other triples were inserted\n Assert.assertEquals(2995,\n this.getTestRepositoryConnection().size(inferredOWLOntologyID.getInferredOntologyIRI().toOpenRDFURI()));\n Assert.assertEquals(44333,\n this.getTestRepositoryConnection().size(inferredOWLOntologyID.getVersionIRI().toOpenRDFURI()));\n Assert.assertEquals(6, this.getTestRepositoryConnection().size(this.schemaOntologyManagementGraph));\n Assert.assertEquals(47334, this.getTestRepositoryConnection().size());\n \n if(this.log.isTraceEnabled())\n {\n for(final Statement nextStatement : this\n .getTestRepositoryConnection()\n .getStatements(null, null, null, true,\n inferredOWLOntologyID.getInferredOntologyIRI().toOpenRDFURI()).asList())\n {\n this.log.trace(nextStatement.toString());\n }\n }\n \n // TODO:\n // Load a set of objects in as an ontology that imports the plant ontology into the system\n // and verify that it is consistent\n \n // TODO: Decide on a consistent strategy for linking the object with the version of the\n // ontology.\n // OWL:IMPORTS will work but we will need to know when and how to update the version, so it\n // may be useful to create another ontology annotation property to detail the current\n // version in use so we can query directly for managed ontologies\n \n // Make a change to the objects and store the resulting ontology as a new version of the\n // objects ontology that links to the first version\n \n // Update the plant ontology with a new axiom/class/property and store it and an inferred\n // ontology along with it\n \n // Make another change to the object to use the new axiom/class/property and verify that it\n // is consistent and references the new version\n \n // Verify that the original version can be loaded and references the first version of the\n // ontology schema\n }", "title": "" }, { "docid": "9609c78002445f7a4c6950d9a4d19045", "score": "0.46994206", "text": "public Source getAssociatedSource(){\n\t\treturn associatedSource;\n\t}", "title": "" }, { "docid": "e4202935b3d1769be6d1b8914cc13b1f", "score": "0.46899182", "text": "public void addConfigurationOntology() {\n try {\n if (!isConfigurationLoaded) {\n this.loadOntologyByPrefix(this.config.get(\"configOntology\"), true);\n isConfigurationLoaded = true;\n }\n } catch (OWLException ex) {\n logger.error(\"Error loading the configuration ontology, exception = \" + ex.toString());\n }\n }", "title": "" }, { "docid": "6eb84764eedb1459fdb275b65439bac5", "score": "0.46631843", "text": "private Model constructMergedGraph() {\n\t\tHashSet<Statement> triplesToAdd;\t//The triples that will be added to the merged graph\n\t\tStatement triple;\t\t\t\t\t//One of those triples\n\t\tResource subject;\t\t\t\t\t//That triple's subject\n\t\tRDFNode object;\t\t\t\t\t\t//That triple's object\n\t\tIAINode objectNode;\t\t\t\t\t//The object as an IAINode\n\t\tModel returnValue;\n\t\t\n\t\ttriplesToAdd = new HashSet<Statement>();\t\t\t\t//Initialize\n\t\treturnValue = videoGraph;\n\t\treturnValue.add(textGraph);\n\t\tfor (IAINode node : outputNodes) {\n\t\t\tif ( ! node.isLiteral()) {\t\t\t//A literal has no type and cannot be the subject of a triple\n\t\t\t\tsubject = returnValue.createResource(node.getNodeName());\n\t\t\t\tobject = returnValue.createResource(node.getNodeType());\n\t\t\t\ttriple = returnValue.createStatement(subject,RDF.type,object);\n\t\t\t\ttriplesToAdd.add(triple);\n\t\t\t\tfor (IAITriple subjectTriple : node.getSubjectTriples()) {\n\t\t\t\t\tobjectNode = subjectTriple.getObject();\n\t\t\t\t\tif (objectNode.isLiteral()) {\n\t\t\t\t\t\tobject = returnValue.createLiteral(objectNode.getNodeName(),null);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tobject = returnValue.createResource(objectNode.getNodeName());\n\t\t\t\t\t}\n\t\t\t\t\ttriple = returnValue.createStatement(subject,subjectTriple.getPredicate(),object);\n\t\t\t\t\ttriplesToAdd.add(triple);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Statement tripleToAdd : triplesToAdd) {\n\t\t\treturnValue.add(tripleToAdd);\n\t\t}\n\t\treturn returnValue;\n\t}", "title": "" }, { "docid": "e04cea70eff091b1b23702c8612da645", "score": "0.46629018", "text": "public interface DomainOntology extends MashupStepSpecification{\n\n void setOntology(OntologyModel ontologyModel);\n\n OntologyModel getOntology();\n}", "title": "" }, { "docid": "f7321e712c88cfc0d9412318a0eaedaa", "score": "0.46618846", "text": "noNamespace.SourceType getSource();", "title": "" }, { "docid": "b85d7c7e3a42f2dcb7dd1833181e522f", "score": "0.46498", "text": "public void readFile(){\n\t\tmodel = ModelFactory.createOntologyModel();\r\n\t\t//use filemanager to find file\r\n\t\tInputStream in = FileManager.get().open(\"./ontologies/imageSearchOntology.owl\");\r\n\t\t//read in file\r\n\t\tmodel.read(in,\"\");\r\n\t\t//write file\r\n//\t\tmodel.write(System.out);\r\n\t}", "title": "" }, { "docid": "7f3501dc0cf915c28d163529efdae0c5", "score": "0.4641492", "text": "InputStream getNamedGraphWithRelativeURIs(URI graphURI, URI researchObjectURI, RDFFormat rdfFormat);", "title": "" }, { "docid": "5b9e68fada37fe7d7c2f357af16f0c85", "score": "0.46286175", "text": "public DeepNeuralNetwork getNetwork();", "title": "" }, { "docid": "a73478662a3d3225e72c84c3e8276ca7", "score": "0.4627767", "text": "@Override\n public String getEffectiveNamespace(SchemaComponent component) {\n\tSchemaModel componentModel = component.getModel();\n\tSchema schema = getSchema();\n Schema componentSchema = componentModel.getSchema();\n String tns = schema.getTargetNamespace();\n String componentTNS = componentSchema.getTargetNamespace();\n\tif (this == componentModel) {\n\t return tns;\n } else if (componentTNS == null && tns != null) {\n // only include/redefine model can assum host model targetNamespace\n // so check if is from imported to just return null\n\t Collection<Import> imports = schema.getImports();\n\t for (Import imp: imports) {\n\t\tSchemaModel m = null;\n\t\ttry {\n\t\t m = imp.resolveReferencedModel();\n\t\t} catch (CatalogModelException ex) {\n\t\t // the import cannot be resolved \n\t\t}\n\t\tif(componentModel.equals(m)) {\n\t\t return null;\n\t\t}\n if (m == null || m.getState() == Model.State.NOT_WELL_FORMED) {\n continue;\n }\n String importedTNS = m.getSchema().getTargetNamespace();\n if (importedTNS == null) continue;\n Set<Schema> visibleSchemas = findSchemas(importedTNS);\n for (Schema visible : visibleSchemas) {\n if (componentModel.equals(visible.getModel())) {\n return null;\n }\n }\n\t }\n return tns;\n \t} else {\n return componentTNS;\n }\n }", "title": "" }, { "docid": "7c5b6ce9c124847fd22814899399ceb0", "score": "0.4603353", "text": "protected OWLOntology reload(OWLOntology ontology,\n OWLOntologyManager mgr,\n boolean withClosure,\n boolean merge) {\n if (ontology == null) throw new IllegalArgumentException(\"ontology cannot be null\");\n if (ontology.getOWLOntologyManager() == ontologyManager) {\n log.warn(\"Ontology {} is already managed by the supplied OWLOntologyManager. Skipping copy.\",\n ontology);\n return ontology;\n }\n\n OWLOntology root = null;\n\n IRI location = ontology.getOWLOntologyManager().getOntologyDocumentIRI(ontology);\n IRI idd = OWLUtils.guessOntologyIdentifier(ontology);\n if (mgr == null) mgr = ontologyManager;\n Set<OWLOntology> closure = withClosure ? ontology.getOWLOntologyManager().getImportsClosure(ontology)\n : Collections.singleton(ontology);\n mgr.removeOntology(ontology);\n if (merge) try {\n root = mgr.createOntology(idd, closure);\n mgr.setOntologyDocumentIRI(root, location);\n return root;\n } catch (OWLOntologyCreationException e1) {\n log.error(\"Unexpected exception caught while copying ontology \" + ontology.getOntologyID()\n + \" across managers\", e1);\n }\n else {\n\n for (OWLOntology o : closure) {\n // System.out.println(\"In closure of \" + ontology + \" : \" + o);\n IRI id2 = OWLUtils.guessOntologyIdentifier(o);\n // OWLOntologyID id = o.getOntologyID();\n if (mgr.contains(id2)) {\n // System.out.println(\"REMOVING \" + id2);\n mgr.removeOntology(mgr.getOntology(id2));\n }\n try {\n OWLOntology o1 = mgr.createOntology(id2, Collections.singleton(o));\n\n // System.out.println(\"DIO BASTARDO \" + o1);\n mgr.setOntologyDocumentIRI(o1, location);\n if (idd.equals(id2)) root = o1;\n } catch (OWLOntologyAlreadyExistsException e) {\n // System.out.println(\"ARIFAMO \" + e.getOntologyID());\n if (o.getOWLOntologyManager() != mgr) {\n mgr.removeOntology(o);\n try {\n OWLOntology o1 = mgr.createOntology(id2, Collections.singleton(o));\n mgr.setOntologyDocumentIRI(o1, location);\n if (idd.equals(id2)) root = o1;\n } catch (OWLOntologyCreationException e1) {\n log.error(\n \"Unexpected exception caught while copying ontology \"\n + ontology.getOntologyID() + \" across managers\", e1);\n }\n }\n } catch (OWLOntologyDocumentAlreadyExistsException e) {\n // System.out.println(\"RIRIFAMO \" + e.getOntologyDocumentIRI());\n if (o.getOWLOntologyManager() != mgr) {\n\n OWLOntology oRemove = mgr.getOntology(e.getOntologyDocumentIRI());\n // System.out.println(\"LEVIAMO \" + oRemove);\n mgr.removeOntology(oRemove);\n try {\n OWLOntology o1 = mgr.createOntology(id2, Collections.singleton(o));\n mgr.setOntologyDocumentIRI(o1, location);\n if (idd.equals(id2)) root = o1;\n } catch (OWLOntologyCreationException e1) {\n log.error(\n \"Unexpected exception caught while copying ontology \"\n + ontology.getOntologyID() + \" across managers\", e1);\n }\n }\n } catch (OWLOntologyCreationException e) {\n log.warn(\"Failed to re-create ontology \" + id2 + \" for ontology space \" + getID()\n + \" . Continuing...\", e);\n }\n }\n return root;\n }\n return root;\n }", "title": "" }, { "docid": "e353d9ed322afc89bc0c02c0be56f46f", "score": "0.45997828", "text": "DependencyGraph getBaseGraph();", "title": "" }, { "docid": "6e972d5994ace42d762dff1de1a15959", "score": "0.45882952", "text": "public String getOntologyID() {\n\t\tMessageDigest md5;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t\tmd5.update(this.getBaseAddr().getBytes());\n\t\t\tBigInteger hash = new BigInteger(1, md5.digest());\n\t\t\thash.toString(32);\n\t\t\treturn (hash.toString(32));\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\treturn \"\"; //never attained\n\t}", "title": "" }, { "docid": "d899400e6f076b7dd0cc57df90d6c116", "score": "0.45747444", "text": "public String getBaseAddr(){\n\t\treturn onto.getOntologyID().getOntologyIRI().toString()+\"#\"; //FIXME: lasciare il # o no?\n\t\t//return \"http://org.snu.bike/MeSH#\";\n\t}", "title": "" }, { "docid": "cfe0e0d15ed944c437c7dfa59c2a76d3", "score": "0.45730045", "text": "public void loadOntology(final String ontUri) throws OntologyLoadException {\n\t\t// To avoid this solution\n\t\t// http://clarkparsia.com/pellet/faq/owlapi-sparql/ ,\n\t\t// I have decided to try SPARQL-DL API\n\t\t// http://www.derivo.de/en/resources/reasoner/sparql-dl-api/\n\t\ttry {\n\t\t\tontology = getManager().loadOntology(IRI.create(ontUri));\n\t\t} catch (OWLOntologyCreationException e) {\n\t\t\tthrow new OntologyLoadException(e.getMessage());\n\t\t}\n\n\t\tmanager.setOntologyDocumentIRI(ontology, IRI.create(ontUri));\n\t\tcreateReasonerAndEngine();\n\n\t}", "title": "" }, { "docid": "368088604ae82eb97bcabd4643c1297b", "score": "0.4566934", "text": "@Override\n public String getName() {\n return \"OWL 2 RL\";\n }", "title": "" }, { "docid": "244c3b9043f78e52d2eb4e19c727196a", "score": "0.45618287", "text": "public String getClass(String inp) throws IOException {\n\t\tString result = null;\n\t\tModel model = ModelFactory.createDefaultModel();\n\t\tClassLoader classLoader = getClass().getClassLoader();\n InputStream in = classLoader.getResourceAsStream(\"org/knoesis/Cevo/jenna/Cevo.owl\");//FileManager.get().open(\"/Cevo/WebContent/Cevo.owl\");\n if (in == null) {\n throw new IllegalArgumentException( \"File: \" + \"\"+ \" not found\");\n }\n \n // read the RDF/XML file\n model.read(\"http://cevo.knoesis.org/CEVO.owl\");\n \n \n // write it to standard out\n // model.write(System.out); \n // RDFDataMgr.write(System.out, model, RDFFormat.TURTLE_PRETTY);\n \n System.out.println();\n String t = inp;\n String queryString = \n \t\t\t\"PREFIX sh: <http://www.semanticweb.org/saeedeh/ontologies/2016/3/untitled-ontology-17#>\"+ \n \t\t \"PREFIX owl: <http://www.w3.org/2002/07/owl#>\"+\n \t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n \t\t \"SELECT ?class ?label WHERE { ?class rdfs:subClassOf sh:Event. ?class rdfs:label ?label. FILTER regex(?label,\\\"\"+t+\"\\\"). }\";\n\n \t\tQuery query = QueryFactory.create(queryString);\n\n \t\t// Execute the query and obtain results\n \t\tQueryExecution qe = QueryExecutionFactory.create(query, model);\n \t\tResultSet results = qe.execSelect();\n \t\tfor ( ; results.hasNext() ; )\n \t {\n \t QuerySolution soln = results.nextSolution() ;\n \t RDFNode label = soln.get(\"label\") ; // Get a result variable by name.\n \t Resource uri = soln.getResource(\"class\") ; // Get a result variable - must be a resource\n \t // Literal l = soln.getLiteral(\"class\") ; // Get a result variable - must be a literal\n \t System.out.println(label+\" \"+uri+\" \");\n \t result = label+\" \"+uri;\n \t }\n \t\t\n \t\t//System.out.println(results.getResultVars().get(1));\n\n \t\t// Output query results\t\n \t\t//ResultSetFormatter.out(System.out, results, query);\n// \t\tQuerySolution rBind = results.next();\n// \t\tSystem.out.println(rBind.toString());\n// \t\tSystem.out.println(getVarValueAsString(rBind, results.getResultVars().get(0)));\n\n \t\t// Important - free up resources used running the query\n \t\tqe.close();\n// \t\treturn getVarValueAsString(rBind, results.getResultVars().get(0));\n \t\treturn result;\n\n\t}", "title": "" }, { "docid": "f8c05c485addfecb60647cc15997f952", "score": "0.4560177", "text": "public Ontology(String ontologyFileLocation, String root){\n\t\tOWLOntologyManager manager = OWLManager.createOWLOntologyManager();\n File file = new File(ontologyFileLocation);\n // Now load the local copy\n try {\n\t\t\tonto = manager.loadOntologyFromOntologyDocument(file);\n\t\t} catch (OWLOntologyCreationException e) {\n\t\t\te.printStackTrace();\n\t\t\tonto = null;\n\t\t}\n\t\tthis.root = classForID(root);\n\t\t\n\t\tSystem.err.println(\"[YaSemIR]: Loaded ontology: \" + onto + \" with root class \"+root);\n\t}", "title": "" }, { "docid": "02784032d49afde598949efbb9ec76bf", "score": "0.4552691", "text": "private List<List<Neuron>> getNetwork() {\n return this.network;\n }", "title": "" }, { "docid": "97ad4d77de1472af8ed6839982514870", "score": "0.45448753", "text": "public interface JenaBeanExtension {\n\t\n\t/**\n\t * <p>\n\t * Loads data and their structure from the object-oriented model\n\t * into the ontology model.\n\t * </p>\n\t * \n\t * @param dataList list of objects (object-oriented model)\n\t */\n\tpublic void loadOOM(List<Object> dataList);\n\t\n\t/**\n\t * <p>\n\t * Loads data and their structure from the object-oriented model\n\t * into the ontology model.\n\t * If the <code>structureOnly</code> parameter is set true, then\n\t * the ontology model does not contain any data, only their structure\n\t * (i.e. classes, properties and their relations).\n\t * </p>\n\t * \n\t * @param dataList list of objects (object-oriented model)\n\t * @param structureOnly true if we don't want data to be loaded (only structure)\n\t */\n\tpublic void loadOOM(List<Object> dataList, boolean structureOnly);\n\n\t/**\n\t * <p>Creates a serialization of the ontology model in RDF/XML syntax.<br>\n\t * This method doesn't run the transformation process itself, it only\n\t * creates the XML serialization of the ontology model.</p>\n\t * \n\t * @return RDF/XML ontology document\n\t * @throws IOException if there occurred problems creating the stream\n\t */\n\tpublic InputStream getOntologyDocument() throws IOException;\n\n\n\t/**\n\t * <p>Creates a serialization of the ontology model in specified syntax.\n\t * Predefined values can be found in {@link Syntax}.<br>\n\t * This method doesn't run the transformation process itself, it only\n\t * creates the serialization of the ontology model.</p>\n\t * \n\t * @param syntax syntax of the ontology document\n\t * @return ontology document\n\t * @throws IOException if there occurred problems creating the stream.\n\t * @see Syntax\n\t */\n\tpublic InputStream getOntologyDocument(String syntax) throws IOException;\n\t\n\t\n\t/**\n\t * <p>Writes a serialization of the ontology model in RDF/XML syntax\n\t * into the given output stream.<br>\n\t * This method doesn't run the transformation process itself, it only\n\t * creates the XML serialization of the ontology model.</p>\n\t * \n\t * @param out the output stream to which the serialization is written\n\t */\n\tpublic void writeOntologyDocument(OutputStream out);\n\t\n\t\n\t/**\n\t * <p>Writes a serialization of the ontology model into the given output\n\t * stream. Syntax of the serialization\n\t * is specified by the <code>syntax</code> argument. Predefined values\n\t * can be found in {@link Syntax}.<br>\n\t * This method doesn't run the transformation process itself, it only\n\t * creates the serialization of the ontology model.</p>\n\t * \n\t * @param out the output stream to which the ontology is written\n\t * @param syntax syntax of the ontology document\n\t * @see Syntax\n\t */\n\tpublic void writeOntologyDocument(OutputStream out, String syntax);\n\t\n\t\n\t/**\n\t * <p>Creates a serialization of the ontology schema in specified\n\t * syntax. Predefined values can be found in {@link Syntax}.\n\t * The schema describes structure of the ontology (i.e. classes and\n\t * properties) and contains no data.<br>\n\t * This method doesn't run the transformation process itself, it only\n\t * creates the serialization of the ontology model.</p>\n\t * \n\t * @param syntax syntax of the ontology schema document\n\t * @return ontology schema document\n\t * @throws IOException if there occurred problems creating the stream\n\t * @see Syntax\n\t */\n\tpublic InputStream getOntologySchema(String syntax);\n\t\n\t\n\t/**\n\t * <p>Writes a serialization of the ontology schema into the given\n\t * output stream.<br>\n\t * The schema describes structure of the ontology\n\t * (i.e. classes and properties), but contains no data. Syntax of\n\t * the schema document is specified by the <code>syntax</code>\n\t * argument. Predefined values can be found in {@link Syntax}.<br>\n\t * This method doesn't run the transformation process itself, it only\n\t * creates the serialization of the ontology model.</p>\n\t * \n\t * @param syntax syntax of the ontology schema document\n\t * @throws IOException if there occurred problems creating the stream\n\t * @see Syntax\n\t */\n\tpublic void writeOntologySchema(OutputStream out, String syntax);\n\t\n\t\n\t/**\n\t * <p>Loads statements from the specified document and adds them to\n\t * the ontology model.<br>\n\t * This can be used especially for adding\n\t * elements that cannot be gathered from the object-oriented model,\n\t * such as the ontology header. Another way to set the ontology\n\t * header is to use the {@link #setOntology(Ontology)} method.</p>\n\t * \n\t * <p>This method can be used also to load a whole ontology from\n\t * a previous serialization.</p>\n\t * \n\t * <p>NOTE: If the stream contains the ontology header (which is\n\t * the main intent to use it) this method must be invoked\n\t * before loading the object-oriented model so as the ontology\n\t * properties (such as ontology namespace) take effect.</p>\n\t * \n\t * @param ontologyDocument stream containing serialization of RDF-based graph\n\t * @param syntax syntax of the serialization\n\t */\n\tpublic void loadStatements(InputStream ontologyDocument, String syntax);\n\t\n\t\n\t/**\n\t * <p>Adds the <code>owl:AllDisjointClasses</code> statement declaring\n\t * all classes contained in the ontology to be different. This is\n\t * an OWL2 language construct.</p>\n\t */\n\tpublic void declareAllClassesDisjoint();\n\t\n\t\n\t/**\n\t * <p>Sets the default namespace for all entities in the ontology.<br>\n\t * It means that\n\t * every entity will have this namespace except for those that have\n\t * explicitly defined namespace using {@link Namespace}.</p>\n\t * \n\t * <p>NOTE: This method must be invoked before loading the object-oriented\n\t * model so as the namespace value take effect for the ontology.</p>\n\t * \n\t * @param namespace default namespace for the ontology\n\t */\n\tpublic void setNamespace(String namespace);\n\t\n\t\n\t/**\n\t * <p>Sets the base URI of the generated ontology. This value is used in the\n\t * RDF/XML ontology document to abbreviate resources' URIs using\n\t * the <code>xml:base</code> element and relative URIs.</p>\n\t * \n\t * @param base base URI of the ontology document\n\t */\n\tpublic void setBase(String base);\n\t\n\t\n\t/**\n\t * <p>Adds the ontology header to the ontology model.\n\t * The ontology header consists of the <code>owl:Ontology</code>\n\t * element with axioms about the ontology.<br>\n\t * Ontology axioms are set acording to values contained in the\n\t * {@link Ontology} instance passed to this method.</p>\n\t * \n\t * @param ontology object containing ontology properties\n\t */\n\tpublic void setOntology(Ontology ontology);\n\t\n\n}", "title": "" }, { "docid": "eecc7146c5b0b269818f22dbdf34c8d8", "score": "0.45407593", "text": "protected final WrappedOWLOntologyManager getManager() {\n return this.manager;\n }", "title": "" }, { "docid": "65fc780eb75a95b45ad1f31c080d7360", "score": "0.4539877", "text": "public FeedforwardNetwork getNetwork() {\n\t\treturn this.network;\n\t}", "title": "" }, { "docid": "5d676e8d5c7ef40a72680ac245f6dde0", "score": "0.45393693", "text": "@Test\n public final void testSchemaOntologyWithoutVersionIRIWithHint() throws Exception\n {\n final OWLOntologyID modifiedId =\n new OWLOntologyID(IRI.create(\"http://purl.obolibrary.org/obo/po.owl\"),\n IRI.create(\"urn:test:plantontology:version:16.0\"));\n \n final InferredOWLOntologyID inferredID =\n this.utils.loadInferAndStoreSchemaOntology(\"/ontologies/plant_ontology-v16.owl\",\n RDFFormat.RDFXML.getDefaultMIMEType(), modifiedId, this.getTestRepositoryConnection());\n \n this.getTestRepositoryConnection().commit();\n \n // verify a version IRI has been correctly assigned\n Assert.assertNotNull(inferredID.getInferredOntologyIRI());\n }", "title": "" }, { "docid": "f55eb72502d1eecfda118415135a0e2f", "score": "0.45375308", "text": "public static OntModel loadOntModelFromFile (String sFile) {\n\t\tSystem.out.print (\"\\t\" + sFile);\n\t\tOntModel om = ModelFactory.createOntologyModel(OntModelSpec.RDFS_MEM);\n\t\tInputStream in = FileManager.get().open(sFile);\n\t\tom.read(in, null);\n\t\treturn om;\t\n\t}", "title": "" }, { "docid": "5c7b1c17813b560718d76fd156029dbe", "score": "0.45326", "text": "public OWLOntologyManager getManager() {\n return manager;\n }", "title": "" }, { "docid": "03bfbb2f29fcd0254fc1e70f04c78b46", "score": "0.45284942", "text": "com.alibaba.alink.operator.batch.dl.ctr.protos.Dnn.DNN getRelationDnn();", "title": "" }, { "docid": "c109bb9bc58816bc59c892a739b78da9", "score": "0.45220843", "text": "private void loadOwlFileChooser()\r\n\t{\n\t\ttry{\r\n\t\t\tJOptionPane.showMessageDialog(null,\"OWL FILE NOT SPECIFIED! \\n please choose the SLAOnt OWL file\");\r\n\t\t\tJFileChooser fc = new JFileChooser(\"./javaTestOnto/SLAont.owl\");\r\n\t\t\tint returnVal=-1;\r\n\t\t\tdo{\r\n\t\t\treturnVal = fc.showOpenDialog(null);\r\n\t\t\t}while (returnVal!=JFileChooser.APPROVE_OPTION);\r\n \t File file = fc.getSelectedFile();\r\n\t\t\tOWL_File = file.getAbsolutePath();\r\n\t\t\t// r�cup�rer le mod�le owl de l'ontologie sp�cifi�e dans le fichier owl\r\n\t\t\towlModel = ProtegeOWL.createJenaOWLModelFromURI(file.toURI().toString());\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Failed to load OWL File\");\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "4d30b360bad7ad5d37322a0dde07a966", "score": "0.4520399", "text": "ForestPackage getForestPackage();", "title": "" }, { "docid": "fd99b20c0b5bd76ee8c5dddfb07dadf8", "score": "0.45164898", "text": "public abstract Source getSchemaSource();", "title": "" }, { "docid": "685c9f9d02162e09352b3483fbfc2770", "score": "0.45123056", "text": "@rdf(DBpediaResource.NEIGHBORHOOD)\npublic interface Neighborhood extends Feature {\n\n}", "title": "" }, { "docid": "0eedd21c4216b7cc31a448a31fdadf00", "score": "0.45112327", "text": "@Required\n public NetworkResource getNetwork() {\n return network;\n }", "title": "" }, { "docid": "d65fa2a1c1b159ec5e2506fe26aeead0", "score": "0.4510905", "text": "InputStream getNamedGraph(URI graphURI, RDFFormat rdfFormat);", "title": "" }, { "docid": "b6ed531b53af4aab97289d5fbae28bfa", "score": "0.44994286", "text": "public void setOntology(OWLOntology ont) {\n\t\tontology = ont;\n\t\tcreateReasonerAndEngine();\n\t}", "title": "" }, { "docid": "d846af37d172a0ca5ad72c3c0b6931db", "score": "0.44885466", "text": "public final DsNetwork getNetwork() {\n return m_bindingInfo.getNetwork();\n }", "title": "" }, { "docid": "eac476290904db637cfbff62cc7ba34d", "score": "0.4484276", "text": "public void buildWholeIndex(IteratableOntologyRepository ontoRepo) throws IOException;", "title": "" }, { "docid": "6eeb0fc4a98d64442fa72e7495702b2d", "score": "0.44823512", "text": "public Optional<String> getSelectedOwlObjectProperty() {\n if (owlWorkSpace.isPresent()) {\n return owlWorkSpace\n .map(OWLWorkspace::getOWLSelectionModel)\n .map(OWLSelectionModel::getSelectedEntity)\n .filter(owlEntity -> owlEntity instanceof OWLObjectProperty)\n .map(OWLEntity::toStringID);\n } else {\n return getSelectedTextSource()\n .flatMap(TextSource::getSelectedGraphSpace)\n .map(mxGraph::getSelectionCell)\n .filter(o -> o instanceof RelationAnnotation)\n .map(o -> (RelationAnnotation) o)\n .map(RelationAnnotation::getProperty);\n }\n }", "title": "" }, { "docid": "0b01271f8ad7ce1f8101f79c722174e0", "score": "0.446759", "text": "public interface GraphLayoutProviderFactory {\n GraphLayoutProvider get(Ontology ontology);\n}", "title": "" }, { "docid": "3f622a658fefff0d79ab3dcc7052d3c7", "score": "0.44656497", "text": "public void addTemporaryConfigurationOntology() {\n try {\n if (!isPartialConfigurationLoaded) {\n this.loadOntologyByPrefix(this.config.get(\"partialConfigOntology\"), true);\n isPartialConfigurationLoaded = true;\n }\n } catch (OWLException ex) {\n logger.error(\"Error loading the partial ontology, exception = \" + ex.toString());\n }\n }", "title": "" } ]
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "5afbd0399e8a3c1130a6c57886eac057", "score": "0.0", "text": "public String m127a(String str, int i) {\n return !mo932a(i) ? str : mo939g();\n }", "title": "" } ]
[ { "docid": "6cff49359236dc9748a42472eaf4954c", "score": "0.63743937", "text": "public interface C35155a {\n /* renamed from: a */\n void mo89459a();\n }", "title": "" }, { "docid": "1ebc1f569daf5575be1aa061331ac667", "score": "0.63378584", "text": "public interface C4386a {\n /* renamed from: a */\n void mo12092a();\n }", "title": "" }, { "docid": "3c557616586cf2164ab8e517705476fa", "score": "0.6206998", "text": "public interface C4562a {\n /* renamed from: a */\n void mo24757a();\n }", "title": "" }, { "docid": "095db6eda649c508c5c18cea61554215", "score": "0.6176854", "text": "public interface C41725a {\n /* renamed from: a */\n void mo102494a();\n }", "title": "" }, { "docid": "10c30d43b0b430404fbc36a72a2d1b31", "score": "0.6023132", "text": "public interface C43038a {\n /* renamed from: a */\n void mo84835a();\n }", "title": "" }, { "docid": "10c51498a5af4e66745a5532b5b8f867", "score": "0.5993286", "text": "interface Poolable {\n /* renamed from: a */\n void mo12714a();\n}", "title": "" }, { "docid": "0f697401f795e9ad49531ea802aec34c", "score": "0.59902596", "text": "public interface C1171a {\n /* renamed from: a */\n void mo1992a();\n }", "title": "" }, { "docid": "aeeb85ea6cad06558186f378ef9ead60", "score": "0.59843946", "text": "public interface C11757x {\n /* renamed from: a */\n void mo40265a();\n}", "title": "" }, { "docid": "6a54d581ca0d5e97720de47769fb902b", "score": "0.5976953", "text": "public interface byz extends bzd {\n /* renamed from: a */\n void mo2559a();\n}", "title": "" }, { "docid": "010326b5752e6cbd903d06de0cc713a6", "score": "0.5943753", "text": "public interface C37421b {\n /* renamed from: a */\n String mo18657a();\n}", "title": "" }, { "docid": "eb2ce714c5c0134da858aaa993c4a646", "score": "0.5943608", "text": "public interface IAudioTransitionAdapter<S, T> {\n /* renamed from: a */\n void mo20374a();\n}", "title": "" }, { "docid": "306b69dfa1c8e2ec26d1bee08eaeefe3", "score": "0.59145826", "text": "interface C6753a {\n /* renamed from: a */\n void mo20078a();\n\n /* renamed from: b */\n void mo20079b();\n }", "title": "" }, { "docid": "c86249a26814690aa634a3f325a32325", "score": "0.5882238", "text": "interface C11164j1 {\n /* renamed from: a */\n Object mo28505a(String str);\n}", "title": "" }, { "docid": "d2d20cb5c067e9db1bcbbee7ae0a664b", "score": "0.58586836", "text": "public interface C4001a {\n /* renamed from: a */\n void mo11591a(C4037b bVar);\n }", "title": "" }, { "docid": "647c1e941134a916aba503e10c29d8f1", "score": "0.5831762", "text": "protected void a(ble.a<bcs, blc> ☃) {\r\n/* 38 */ ☃.a((bmm<?>[])new bmm[] { a });\r\n/* */ }", "title": "" }, { "docid": "822aabf35d1e2f4992ba56add7abde6e", "score": "0.57959825", "text": "public interface C2242a {\n /* renamed from: a */\n void mo3345a();\n\n /* renamed from: a */\n void mo3346a(long j);\n\n /* renamed from: a */\n void mo3347a(String str, String str2, String str3);\n\n /* renamed from: a */\n void mo3348a(boolean z);\n\n /* renamed from: b */\n void mo3349b();\n\n /* renamed from: c */\n void mo3350c();\n\n /* renamed from: d */\n void mo3351d();\n\n /* renamed from: e */\n void mo3352e();\n\n /* renamed from: f */\n void mo3353f();\n\n /* renamed from: g */\n void mo3354g();\n }", "title": "" }, { "docid": "a961db3c9261cbf2dae0b59ae28dbdc6", "score": "0.5792965", "text": "public interface C4289yk<T> {\n /* renamed from: a */\n C4287yi mo40671a(T t);\n}", "title": "" }, { "docid": "ae71ab887fb8dbc1764f4b14350af315", "score": "0.5784558", "text": "public interface C0759p {\n /* renamed from: a */\n void mo1847a();\n\n /* renamed from: a */\n void mo1848a(String str);\n}", "title": "" }, { "docid": "d5ebcd928b0b9167b22c34f558385a1d", "score": "0.5780015", "text": "public interface C0791a {\n /* renamed from: a */\n void m268a(String str, long j, String str2, String str3);\n}", "title": "" }, { "docid": "81d4a0cec030810b9985e5ec6b96a4de", "score": "0.5770851", "text": "public interface C5745a {\n /* renamed from: a */\n void mo20994a(String str, long j);\n }", "title": "" }, { "docid": "2b0a8dbd8a15ed3a9513bf7a22e91ce7", "score": "0.5766102", "text": "public interface C2286e {\n /* renamed from: a */\n void mo3440a();\n\n /* renamed from: b */\n void mo3441b();\n}", "title": "" }, { "docid": "f77c287fac352e2f9c0b223ae9bd392c", "score": "0.57584137", "text": "interface C9779vo {\n /* renamed from: a */\n byte[] mo28026a(byte[] bArr, int i, int i2);\n}", "title": "" }, { "docid": "d0d39d4f740d335f96264b1539d0bb34", "score": "0.57574755", "text": "public interface AbstractC3966a {\n /* renamed from: a */\n void mo27624a(String str, String str2);\n }", "title": "" }, { "docid": "0e6802b338efd4bfe8377ad71c28c0f6", "score": "0.5753515", "text": "public interface C1747a {\n /* renamed from: a */\n C1751d mo7012a();\n}", "title": "" }, { "docid": "b1c9201afd55e36783aa7463b6728d1c", "score": "0.575169", "text": "public interface C1902a {\n /* renamed from: a */\n void mo8068a();\n }", "title": "" }, { "docid": "9fd8dd583aa18d67c06933ce46ca4c77", "score": "0.57497764", "text": "public interface C4267a {\n /* renamed from: a */\n void mo18065a(C4266d dVar);\n\n /* renamed from: b */\n void mo18066b(C4266d dVar);\n }", "title": "" }, { "docid": "9c8723f9e0c2588fc7c597691d72bd4e", "score": "0.5731483", "text": "public interface C1531o {\n /* renamed from: a */\n void mo3772a();\n\n /* renamed from: a */\n void mo3773a(int i);\n\n /* renamed from: b */\n void mo3774b();\n}", "title": "" }, { "docid": "9a76a8ebe801bf0a4c799601976e32bc", "score": "0.57250124", "text": "public interface C1478a {\n /* renamed from: a */\n void mo6588a(int i, long j);\n }", "title": "" }, { "docid": "6ad1634ee660ce5f77f187d05283557e", "score": "0.57203794", "text": "public interface C14084b {\n /* renamed from: a */\n C14064a mo44510a();\n\n /* renamed from: b */\n String mo44511b();\n}", "title": "" }, { "docid": "3eec974c363e3a010c81554639236644", "score": "0.5718467", "text": "public interface AbstractC0441a {\n /* renamed from: a */\n void mo965a(String str, String str2, String str3);\n }", "title": "" }, { "docid": "7e629ef92740db4f830060c305b7971f", "score": "0.570649", "text": "public interface C7233y {\n /* renamed from: a */\n void mo20037a();\n}", "title": "" }, { "docid": "1667627b4ca575ed82f3ddbbee88b604", "score": "0.5688898", "text": "interface C1365a {\n /* renamed from: a */\n void mo1146a(boolean z);\n }", "title": "" }, { "docid": "6cf5201c51cf83d54fcdfaa6371adbab", "score": "0.56828094", "text": "public interface C0760c {\n /* renamed from: a */\n void mo649a(C0759b c0759b);\n}", "title": "" }, { "docid": "e1e29a2e3bccafc9194ec9c480a60bfb", "score": "0.56763947", "text": "public interface bhu {\n /* renamed from: a */\n bhv mo1949a();\n}", "title": "" }, { "docid": "77f936240728cf7a639cea67a115c97a", "score": "0.5674909", "text": "protected Automaton convertAutomaton(Automaton a) {\n return a;\n }", "title": "" }, { "docid": "60dc8688c63a2f16a90622cec7be5a0e", "score": "0.56722754", "text": "public interface C2905ob {\n /* renamed from: a */\n boolean mo13550a();\n}", "title": "" }, { "docid": "1810af41de572562b7f2edf50452a2d8", "score": "0.5668", "text": "public interface C48134a<E> extends C48139f<E> {\n /* renamed from: a */\n C48138e<E> mo120359a();\n}", "title": "" }, { "docid": "32ce16d3f6d76b47f657f11f3770e494", "score": "0.56666386", "text": "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "title": "" }, { "docid": "950f67909594cf76ce239d0e53c9fff3", "score": "0.5663572", "text": "public interface C4933d {\n /* renamed from: a */\n void mo11415a();\n\n /* renamed from: a */\n void mo11416a(int i);\n\n /* renamed from: b */\n void mo11417b();\n }", "title": "" }, { "docid": "b4d7e60815d3c40f14dd0894dc03cb7f", "score": "0.56599164", "text": "a(int ☃, int i, V v, a<V> a1) {\r\n/* 197 */ this.b = v;\r\n/* 198 */ this.c = a1;\r\n/* 199 */ this.a = i;\r\n/* 200 */ this.d = ☃;\r\n/* */ }", "title": "" }, { "docid": "1db522da2485816a2f93b55bbe7b6ffb", "score": "0.5659327", "text": "public interface C0277a {\n /* renamed from: a */\n void mo1055a(int i, int i2);\n\n /* renamed from: b */\n void mo1056b(int i, int i2);\n}", "title": "" }, { "docid": "a1a28568305b58d37f7ccd8b03b563e0", "score": "0.5653086", "text": "public interface C4932c {\n /* renamed from: a */\n void mo11413a();\n\n /* renamed from: b */\n void mo11414b();\n }", "title": "" }, { "docid": "0eb56193ef8a23206a0ea5c518d6c3ee", "score": "0.5631705", "text": "public interface C35801a {\n /* renamed from: a */\n void mo9874a(String str, String str2, String str3, String str4, String str5, long j);\n }", "title": "" }, { "docid": "fc4c7dd2d08256c54a7b3c182605ed67", "score": "0.5628947", "text": "public void a(a aVar) {\n this.a = aVar;\n }", "title": "" }, { "docid": "c05047c1aef54e6705bbea988bcc8547", "score": "0.56231904", "text": "public interface C40953a {\n /* renamed from: a */\n void mo100652a(int i, Effect effect);\n}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56183887", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56183887", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "47d743bfdffb72c01bf6ff5839f7c729", "score": "0.56015325", "text": "public interface C5626c {\n /* renamed from: a */\n void mo22298a(int i);\n\n /* renamed from: a */\n void mo22299a(View view);\n }", "title": "" }, { "docid": "11a06bbb978e1c08a45c0cd059691598", "score": "0.5596392", "text": "public interface C4934e {\n /* renamed from: a */\n void mo11418a();\n\n /* renamed from: b */\n void mo11419b();\n\n /* renamed from: c */\n void mo11420c();\n\n /* renamed from: d */\n void mo11421d();\n }", "title": "" }, { "docid": "a5426589838d8a397e53f943f033292b", "score": "0.55926716", "text": "public void resta(Object a, Object b);", "title": "" }, { "docid": "0b5cabef42c4f9f8e498e43f9fd2784f", "score": "0.5585393", "text": "public interface C11611h<T> {\n /* renamed from: a */\n T mo29593a();\n}", "title": "" }, { "docid": "6a184829f10809977dfc31b85c86eca0", "score": "0.55678684", "text": "public interface C1253du extends IInterface {\n /* renamed from: a */\n void mo12505a(C1260ea eaVar);\n}", "title": "" }, { "docid": "3f1b4e09a14293e5f41aaf438154acac", "score": "0.5566115", "text": "public void azioneScelta(int a) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3cb57a4b90e9807c42019233cf78e26", "score": "0.5564116", "text": "public interface C20332b {\n /* renamed from: a */\n void mo9713a(C20331a c20331a, long j);\n }", "title": "" }, { "docid": "d71ed6bd1c2fb6941ec3f38d4f35d5e2", "score": "0.5555183", "text": "public interface C13471a {\n /* renamed from: a */\n void mo29881a(C13472b bVar, C13470b bVar2, C13460a aVar, int i);\n}", "title": "" }, { "docid": "6c4d72314f464c2427763e8d1355df9c", "score": "0.5552833", "text": "public interface AbstractC0764a<T> {\n /* renamed from: a */\n T mo9627a();\n\n /* renamed from: a */\n T mo9628a(Object... objArr);\n\n /* renamed from: b */\n T mo9629b();\n}", "title": "" }, { "docid": "8e2c4a1d169d8b362b4f2660c5351cdc", "score": "0.5529059", "text": "public interface C4733a extends C5595at {\n /* renamed from: a */\n void mo12656a();\n\n /* renamed from: a */\n void mo12657a(int i);\n }", "title": "" }, { "docid": "6dde7c2ac0e7cd0a8b43a051953cf38b", "score": "0.552623", "text": "public interface C2477ha {\n /* renamed from: a */\n boolean mo7724a();\n\n /* renamed from: b */\n boolean mo7725b();\n}", "title": "" }, { "docid": "a9b1d415bfe61b6b7924c051feea2722", "score": "0.5513054", "text": "public interface C1080a {\n /* renamed from: a */\n void mo4548a();\n }", "title": "" }, { "docid": "f42ccfd6c9b45d8d3002703b16296df4", "score": "0.5501142", "text": "public interface C4333a {\n /* renamed from: a */\n void mo24488a(File file);\n}", "title": "" }, { "docid": "a7f3c19faa6cc9ba8ea4d539fb677b60", "score": "0.5489201", "text": "public interface ApiRequestInterceptor {\n /* renamed from: a */\n String mo23824a(String str);\n}", "title": "" }, { "docid": "2e81e2ae7489ba0cdc1c9297200dbb61", "score": "0.5487326", "text": "public interface C12982a {\n /* renamed from: a */\n void mo41824a(C10895h hVar, String str);\n\n /* renamed from: a */\n void mo41825a(C10895h hVar, String str, C10888a aVar);\n\n /* renamed from: a */\n void mo41826a(C10895h hVar, String str, String str2);\n\n /* renamed from: a */\n void mo41827a(C10895h hVar, String str, String str2, JSONObject jSONObject);\n\n /* renamed from: b */\n void mo41840b(C10895h hVar, String str);\n\n /* renamed from: c */\n void mo41844c(C10895h hVar, String str);\n}", "title": "" }, { "docid": "6b6130336c81e0c842f54f8f1a038613", "score": "0.5468736", "text": "public interface AbstractC5173b {\n /* renamed from: a */\n void mo38435a(int i, C5124a aVar);\n}", "title": "" }, { "docid": "5d41ded319d99782e2ed853ccc09a280", "score": "0.5447997", "text": "public interface C30311b {\n /* renamed from: a */\n boolean mo79847a(int i);\n }", "title": "" }, { "docid": "641b2c58266136272f3f1d2ab6f26afb", "score": "0.5446077", "text": "public interface C36510a {\n /* renamed from: a */\n void mo57736a(C31045fx c31045fx);\n }", "title": "" }, { "docid": "d4190fb767bc334e27af78a8ec2e40f0", "score": "0.54429436", "text": "public interface C32738a {\n /* renamed from: a */\n void mo84179a(boolean z);\n }", "title": "" }, { "docid": "bf6f80132337a59924d1388e534e8512", "score": "0.54250145", "text": "public interface C4194e {\n /* renamed from: a */\n C4194e mo10384a(String str, int i);\n\n /* renamed from: a */\n C4194e mo10385a(String str, long j);\n\n /* renamed from: a */\n C4194e mo10386a(String str, Object obj);\n\n /* renamed from: a */\n C4194e mo10387a(String str, boolean z);\n}", "title": "" }, { "docid": "a8a40dcd74c804aa047452a76f06f59b", "score": "0.5422882", "text": "public interface C11109d {\n /* renamed from: a */\n String mo11516a(String str);\n\n /* renamed from: a */\n void mo11517a(String str, String str2);\n\n /* renamed from: a */\n void mo11518a(String str, Collection<String> collection);\n\n /* renamed from: b */\n Collection<String> mo11519b(String str);\n\n /* renamed from: c */\n void mo11520c(String str);\n}", "title": "" }, { "docid": "ff21f11e8c457b30fa6607ad3b0e7f44", "score": "0.542185", "text": "public interface C1260ve {\n /* renamed from: a */\n void mo4643a(View view);\n\n /* renamed from: b */\n void mo4644b(View view);\n}", "title": "" }, { "docid": "0970b10cb2c82585613ec4301065d0ad", "score": "0.54134274", "text": "public interface C25372a {\n /* renamed from: a */\n void mo61517a(boolean z);\n }", "title": "" }, { "docid": "3f53a98ea7789721c8fb484370a333e3", "score": "0.540948", "text": "public Seq<A> snoc(final A a) {\r\n return new Seq<>(ftree.snoc(a));\r\n }", "title": "" }, { "docid": "5def3840c2e916e4df752a73d77f5869", "score": "0.53966665", "text": "public interface C13629b {\n /* renamed from: a */\n C13645c mo33042a(C13647e eVar, int i, C13650h hVar, C13594b bVar);\n}", "title": "" }, { "docid": "cfd7fcd35d1f2a85fd992184951e5177", "score": "0.5396005", "text": "public interface C25755a {\n /* renamed from: a */\n void mo66752a(float f);\n\n /* renamed from: b */\n boolean mo66757b();\n\n /* renamed from: c */\n boolean mo66758c();\n\n /* renamed from: d */\n void mo66762d();\n}", "title": "" }, { "docid": "48f3138681ca658899627266d22fa943", "score": "0.5393301", "text": "public void removeVertice(String a);", "title": "" }, { "docid": "7b7e45e14adbc5107acf3441d14324da", "score": "0.53882605", "text": "public void a(aa aaVar) {\n }", "title": "" }, { "docid": "e0253409471d8ef8168acb546a622e09", "score": "0.5378072", "text": "public interface C0044a<I> {\n /* renamed from: b */\n I mo2b(String str);\n}", "title": "" }, { "docid": "a4ffb6cfe256bc591542ed6b12788833", "score": "0.5368341", "text": "public interface C3117gs {\n /* renamed from: a */\n void mo29561a(Context context, String str, String str2);\n}", "title": "" }, { "docid": "86a14039837c24470c929ef539dcb347", "score": "0.5364588", "text": "interface C48340k {\n /* renamed from: a */\n void mo121760a(C48345p pVar, Object obj);\n}", "title": "" }, { "docid": "7ac874ee62fa2990f987cce2f3a129ad", "score": "0.53595126", "text": "protected void a(to paramto, int paramInt1, int paramInt2)\r\n/* 157: */ {\r\n/* 158:394 */ if (paramto == null) {\r\n/* 159:395 */ return;\r\n/* 160: */ }\r\n/* 161:398 */ Item localalq = paramto.a();\r\n/* 162:399 */ ItemStack localamj = new ItemStack(localalq);\r\n/* 163:400 */ String str1 = localamj.a();\r\n/* 164: */ \r\n/* 165:402 */ String str2 = (\"\" + cwc.a(new StringBuilder().append(str1).append(\".name\").toString(), new Object[0])).trim();\r\n/* 166:404 */ if (str2.length() > 0)\r\n/* 167: */ {\r\n/* 168:405 */ int i = paramInt1 + 12;\r\n/* 169:406 */ int j = paramInt2 - 12;\r\n/* 170:407 */ int k = bxv.k(this.A).a(str2);\r\n/* 171:408 */ bxv.b(this.A, i - 3, j - 3, i + k + 3, j + 8 + 3, -1073741824, -1073741824);\r\n/* 172: */ \r\n/* 173:410 */ bxv.l(this.A).a(str2, i, j, -1);\r\n/* 174: */ }\r\n/* 175: */ }", "title": "" }, { "docid": "88fcf625899b0f7735e4150d31efc08c", "score": "0.5356888", "text": "public interface djh {\n /* renamed from: a */\n boolean mo4289a(int i);\n}", "title": "" }, { "docid": "b9e2f8e41936362fe24373d82a269ab9", "score": "0.53500634", "text": "public interface C0088b {\n /* renamed from: a */\n C0091d mo1211a();\n\n /* renamed from: b */\n boolean mo1212b();\n\n /* renamed from: c */\n HashSet<C0283c> mo1213c();\n}", "title": "" }, { "docid": "8b5f43b56c854f7afce5e48643ad3d85", "score": "0.5349245", "text": "public interface C3758nv {\n /* renamed from: a */\n boolean mo40727a();\n}", "title": "" }, { "docid": "0b765acf09d60b2bd66f0b886d2d1133", "score": "0.53440493", "text": "public interface C6754b {\n /* renamed from: a */\n void mo20080a(Result result);\n }", "title": "" }, { "docid": "57152a65a3a96fee55719d51a1757b6c", "score": "0.53350544", "text": "interface C33970a {\n /* renamed from: a */\n void mo86461a(MusicModel musicModel);\n\n /* renamed from: a */\n void mo86462a(String str, MusicModel musicModel);\n\n /* renamed from: a_ */\n void mo86463a_(int i, int i2);\n\n void bq_();\n\n /* renamed from: i */\n void mo86466i();\n\n /* renamed from: j */\n void mo86467j();\n\n /* renamed from: k */\n void mo86468k();\n\n /* renamed from: l */\n boolean mo86469l();\n }", "title": "" }, { "docid": "9cc53114357100043cc0686ddbff7d15", "score": "0.53316677", "text": "public interface C40129c {\n /* renamed from: a */\n void mo88198a(int i, int i2, Intent intent);\n}", "title": "" }, { "docid": "c323c67ae55985ed817c786a00efc850", "score": "0.53227097", "text": "public interface C40934t {\n /* renamed from: a */\n boolean mo100381a();\n\n /* renamed from: b */\n void mo100382b();\n\n /* renamed from: c */\n void mo100383c();\n}", "title": "" }, { "docid": "a93c74b3f5960a04e8f04e20d2cc7ff5", "score": "0.53205055", "text": "public interface C0653wa extends b<ProfileFragment> {\n\n /* renamed from: c.c.a.h.b.wa$a */\n /* compiled from: FragmentModule_ProfileFragment$app_bazaarRelease */\n public static abstract class a extends b.a<ProfileFragment> {\n }\n}", "title": "" }, { "docid": "a048fd8ae422a94315a84ffe80bc8410", "score": "0.5317934", "text": "public interface C0600ap {\n /* renamed from: a */\n void mo9152a(int i, ArrayList<C0878m> arrayList);\n}", "title": "" }, { "docid": "5c955e763ae32690162221819efc21f6", "score": "0.5315945", "text": "public interface C31075lb {\n /* renamed from: a */\n List<C41069kb> mo40688a(DoublePoint doublePoint, DoublePoint doublePoint2, double d);\n\n /* renamed from: a */\n void mo40689a(List<C36467cs> list);\n}", "title": "" }, { "docid": "8c535d77e49842ff25ebb28e501bcf5d", "score": "0.5313884", "text": "public interface C18743b {\n /* renamed from: a */\n void mo49265a(C18741c cVar);\n\n /* renamed from: b */\n void mo49266b(C18741c cVar);\n\n /* renamed from: c */\n void mo49267c(C18741c cVar);\n }", "title": "" }, { "docid": "67f4c83faf34d08e90a403cafd776349", "score": "0.531381", "text": "public interface C2782f5<T extends C2782f5<T>> extends Comparable<T> {\n /* renamed from: a */\n int mo13317a();\n\n /* renamed from: b */\n C2715a8 mo13318b();\n\n /* renamed from: c */\n boolean mo13319c();\n}", "title": "" }, { "docid": "cc11ba218a93f3ec0f952b064c579ead", "score": "0.53059685", "text": "public interface C1457dv {\n /* renamed from: af */\n void mo15172af();\n}", "title": "" }, { "docid": "824b2470499ee0f44d2de38047fa7a6e", "score": "0.53025997", "text": "public interface C4005e {\n /* renamed from: a */\n void mo11592a(String str);\n }", "title": "" }, { "docid": "7e073a72bc9231990778cd5dc6082867", "score": "0.5299642", "text": "public aqf b()\r\n/* 26: */ {\r\n/* 27:83 */ return this.a;\r\n/* 28: */ }", "title": "" }, { "docid": "5aacf26d97720dbedb6a590ff25fe447", "score": "0.5298552", "text": "public a a() {\n return this.a;\n }", "title": "" }, { "docid": "9282a1f5bb6b3760f379849a20cbe6a6", "score": "0.5296506", "text": "public int b() {\n/* 267 */ return this.ae.a.a();\n/* */ }", "title": "" }, { "docid": "87986eeb0ab6a2497265f2ac04778a59", "score": "0.5293919", "text": "protected interface C4775c {\n /* renamed from: a */\n void mo16108a(boolean z, File file);\n }", "title": "" }, { "docid": "9ddc5b68127c1c301e52c24be1b5538d", "score": "0.5291036", "text": "public interface C3716ck {\n /* renamed from: a */\n void mo15221a(Throwable th, String str);\n\n /* renamed from: a */\n void mo15222a(Throwable th, String str, float f);\n}", "title": "" }, { "docid": "ef7bf47f19792645722499025032f016", "score": "0.52875525", "text": "public final void a() {\n this.d = -1;\n this.e = -1;\n this.f = -1;\n }", "title": "" }, { "docid": "e252fae2d6391792c9faeeaadc8d915a", "score": "0.52812743", "text": "public me a()\r\n/* 54: */ {\r\n/* 55:60 */ return this.b;\r\n/* 56: */ }", "title": "" }, { "docid": "49ca9357dc3ef3cbfe30ba8130f4afb1", "score": "0.5281023", "text": "public interface C4179tn {\n /* renamed from: a */\n byte[] mo16077a(byte[] bArr, byte[] bArr2) throws GeneralSecurityException;\n}", "title": "" } ]
de9095282ef8d71f6d5e9246cb97b107
Gets the standard deviation
[ { "docid": "3d5614d393abd991d042b2883500ec04", "score": "0.7701294", "text": "public double GetStandardDev()\n {\n return standard_dev;\n }", "title": "" } ]
[ { "docid": "705224d701b123ae1f08caf9e6b0c920", "score": "0.8858456", "text": "public double stddev(){\n\t\tstddev = StdStats.stddev(observations);\n\t\treturn stddev;\n\t}", "title": "" }, { "docid": "3662d9edf26d79e4a89d645f561fb464", "score": "0.87375", "text": "public double stddev() {\r\n\t\treturn std;\r\n\t}", "title": "" }, { "docid": "aae0b1265023bbce3b4d500f2c54508f", "score": "0.8728373", "text": "double standardDeviation();", "title": "" }, { "docid": "bb6a3b8679abe25bd6d0eb0f4863a246", "score": "0.870657", "text": "public double stddev() {\n return StdStats.stddev(stats);\n }", "title": "" }, { "docid": "de1b3c5e0b07f2fa532238e4e7573a71", "score": "0.8698553", "text": "public Double getStdDev() {\n return new Double(Math.sqrt(getCentralMoment(2).doubleValue()));\n }", "title": "" }, { "docid": "754dc578491da6f51a5cc366290cd85c", "score": "0.8693189", "text": "public double stddev() {\n\t\treturn std;\n\t}", "title": "" }, { "docid": "a0597008912e7145d4311c2d2ad30a54", "score": "0.8663157", "text": "public double stddev() {\n return StdStats.stddev(sample);\n }", "title": "" }, { "docid": "9b23fe5f4be6ff6da120731709f93fac", "score": "0.8653569", "text": "public double stddev() {\n return StdStats.stddev(this.result);\n }", "title": "" }, { "docid": "69a2f8381af96666b1b985d387c0ba83", "score": "0.86446023", "text": "public double stddev() {\n stddev = 0;\n for (int i = 0; i < t; i++)\n stddev += Math.pow(means[i] - mean, 2);\n stddev = Math.sqrt(stddev / (t - 1));\n return stddev;\n }", "title": "" }, { "docid": "72bae702bc3062aa4820dced745ecc4b", "score": "0.8637285", "text": "public double stddev() {\n// double mean = mean();\n// double sum = 0;\n// for(int i = 0 ; i < trials_; i++) {\n// sum += Math.pow(samples[i] - mean, 2);\n// }\n// return Math.sqrt(sum / (double)(trials_ - 1));\n\t return StdStats.stddev(samples);\n }", "title": "" }, { "docid": "97ec0de80fadd50becfa2f1794df1096", "score": "0.86363566", "text": "public double standardDeviation() {\n return Math.sqrt(variance());\n }", "title": "" }, { "docid": "23846dab82f7b5f6e31057366d37394b", "score": "0.86200255", "text": "public double stddev() {\n return Math.sqrt(this.var());\n }", "title": "" }, { "docid": "80f7aaa6f78192d55cbe4e2db57ce7cf", "score": "0.85894", "text": "public double stddev() {\n stdDev = StdStats.stddev(results);\n return stdDev;\n }", "title": "" }, { "docid": "4108b8a8c56c51cfef81adeac21dc4ef", "score": "0.85879207", "text": "public double getStandardDeviation() {\n return Double.isNaN(stdDev) ? 0.0 : stdDev;\n }", "title": "" }, { "docid": "00a0d45207413c8f89f0feb3010fbbeb", "score": "0.8543395", "text": "public double stddev() {\r\n\t\tdouble sumErrorSquare = 0;\r\n\t\tfor (int trial = 0; trial < trials; trial++) {\r\n\t\t\tdouble error = thresholds[trial] - mean;\r\n\t\t\tsumErrorSquare = sumErrorSquare + Math.pow(error, 2);\r\n\t\t}\r\n\t\tdouble meanErrorSquare = sumErrorSquare / (trials - 1);\r\n\t\tstdDev = Math.sqrt(meanErrorSquare);\r\n\t\treturn stdDev;\r\n\r\n\t}", "title": "" }, { "docid": "a2c682d7ce73b70daf96d224de5abb2f", "score": "0.8521149", "text": "public double getStdDev() {\n return Math.sqrt(sumsq / (numItems - 1));\n }", "title": "" }, { "docid": "c86c6c84821b397f764422dcf5c50141", "score": "0.85098004", "text": "public double stddev() {\n if (stddevVal == 0.0d) {\n stddevVal = Double.NaN;\n if (trials != 1) {\n stddevVal = StdStats.stddev(results);\n }\n }\n return stddevVal;\n }", "title": "" }, { "docid": "c8041f116f97effc26a8169bfeb4a1ce", "score": "0.8506258", "text": "public double stddev() {\n return StdStats.stddev(results);\n }", "title": "" }, { "docid": "ac0df1e0dabb131426776caf42bf076d", "score": "0.8479777", "text": "public double stddev() {\n return StdStats.stddev(simuResults);\n }", "title": "" }, { "docid": "6b30c867539f7fcc4e0189609c9c036a", "score": "0.84787923", "text": "public double stddev() {\n return stddev;\n }", "title": "" }, { "docid": "6b30c867539f7fcc4e0189609c9c036a", "score": "0.84787923", "text": "public double stddev() {\n return stddev;\n }", "title": "" }, { "docid": "6b30c867539f7fcc4e0189609c9c036a", "score": "0.84787923", "text": "public double stddev() {\n return stddev;\n }", "title": "" }, { "docid": "16be7c5b7ded4112073e1245aa534bef", "score": "0.8470688", "text": "public double stddev() {\n return StdStats.stddev(sampleP);\n }", "title": "" }, { "docid": "b7bd742109b9b01f05fa8dd987a755cd", "score": "0.84506994", "text": "public double stddev() {\n\t\treturn stddev;\n\t}", "title": "" }, { "docid": "02cc07ee6d7bb18cbf964ffc6d0d9342", "score": "0.8431694", "text": "public double stddev() {\n stddev = StdStats.stddev(trialsResults);\n return stddev;\n\n }", "title": "" }, { "docid": "4e3599f3894b9d07be760d2d10ad3bfc", "score": "0.83924687", "text": "public double getStandardDeviation() {\n return standardDeviation;\n }", "title": "" }, { "docid": "f946d154899902e8d9938601e6298f2d", "score": "0.8381586", "text": "public float getStdDev() {\n return StatCalculator.getStdDev(getValues());\n }", "title": "" }, { "docid": "01da5917f83aa7abfe1c441908426078", "score": "0.83387166", "text": "public double stddev() {\n return StdStats.stddev(experiments);\n }", "title": "" }, { "docid": "abb40e8e66c5dc52a4fbc8d31d67ed93", "score": "0.83291745", "text": "public static double getStandardDeviation() {\n return initialStandardDeviation;\n }", "title": "" }, { "docid": "cfc6a5193cc78ac4a9e36f84164c1afc", "score": "0.8312944", "text": "public double stddev() {\n return StdStats.stddev(this.thresholds);\n }", "title": "" }, { "docid": "95aa4e45830344e09a4d14389bc6096a", "score": "0.82986695", "text": "public double stddev() {\n return StdStats.stddev(mThreshold); \n }", "title": "" }, { "docid": "45c84517a5740916995376e1619b31fc", "score": "0.8293611", "text": "public double stddev() {\r\n if (T == 1)\r\n stddev = Double.NaN;\r\n else\r\n stddev = StdStats.stddev(arrThreshold);\r\n return stddev;\r\n }", "title": "" }, { "docid": "cfaf4ced4352bd2023fc1347aa779f00", "score": "0.8289532", "text": "public double stddev() {\n\t\tdouble sum = 0;\n\t\tif (T == 1) return Double.NaN;\n\t\tfor (double n : fractions)\n\t\t\tsum += Math.pow(n - mean(), 2);\n\t\treturn Math.sqrt(sum/(T - 1));\n\t}", "title": "" }, { "docid": "c8f9f139b29bbc1ba911f4c468bfd258", "score": "0.82827103", "text": "public double ComputeStandardDeviation(){\r\n\t\tdouble result = 0; \t\t// Variable to store the final result\r\n\t\tdouble mean;\t\t\t// Variable to store the Mean of the numbers\r\n\t\tdouble sum;\t\t\t\t// Variable to store the sum of the numbers\r\n\t\tdouble variance; \r\n\r\n\t\tmean = ComputeMean();\t\t// Call the Compute Mean\r\n\r\n\t\tint totalNum;\t\t// Variable to store the total numbers entered by the user\r\n\t\tString[] numbers = studentObj.getData().split(\",\");\t// Split the string into numbers based on a delimiter\r\n\r\n\t\ttotalNum = numbers.length;\t\t// Calculate the total numbers\r\n\r\n\t\tsum = 0;\r\n\t\tfor(int iterator = 0; iterator < totalNum; iterator++)\r\n\t\t\t// Get the Sum of square of the difference of the mean\r\n\t\t\tsum += ((Integer.parseInt(numbers[iterator]) - mean) * (Integer.parseInt(numbers[iterator]) - mean));\r\n\r\n\t\tvariance = (sum / totalNum);\t// Calculate the Variance\r\n\t\tresult = Math.sqrt(variance);\t// Calculate the Standard Deviation\r\n\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "1024646d7cffa179cce4aaa70674c597", "score": "0.8253075", "text": "public double stddev() {\n return StdStats.stddev(openRatio);\n }", "title": "" }, { "docid": "4263b752f429235a36512f2ca9695d9f", "score": "0.82356423", "text": "public double getStandardDeviation(){\n return Math.sqrt(getVariance());\n }", "title": "" }, { "docid": "697777370f904b51cfe1b9753e5b83f1", "score": "0.82339483", "text": "public double stddev() {\n return StdStats.stddev(probabilities);\n }", "title": "" }, { "docid": "4ca850b7f534680746fb4c5e5be5f4d4", "score": "0.82206434", "text": "public double stddev() {\n return StdStats.stddev(threshold);\n }", "title": "" }, { "docid": "7311b4f2d351725fae902fd9858e9872", "score": "0.8207719", "text": "public double stddev() {\n return StdStats.stddev(percThresholds);\n }", "title": "" }, { "docid": "d06785df17f9698c1b665284185dba38", "score": "0.8207712", "text": "public double calcStandardDeviation() {\r\n\r\n double calcStandardDeviation;\r\n\r\n // Checks that data entry, average, and variance have been done\r\n if ((sdItems != INVALID) || (sdAve != INVALID) || (sdVar != INVALID)) {\r\n sdDev = Math.sqrt(sdVar);\r\n } else {\r\n // Pre-Conditions have not been met\r\n sdDev = INVALID;\r\n }\r\n\r\n return sdDev;\r\n }", "title": "" }, { "docid": "7d54399870f6bc732caa93ad2c830b8c", "score": "0.82060045", "text": "public double getStdev() {\n analyze();\n if (mNum == 0) {\n return Double.NaN;\n } else {\n double average = mSumX / mNum;\n return Math.sqrt(mSumXX / mNum - average * average);\n }\n }", "title": "" }, { "docid": "dabfad532b002ff7d5e32f2e0aef1b8a", "score": "0.8184669", "text": "public double getStandardDeviation() {\n\t\tif (collection.isEmpty()) {\n\t\t\treturn 0;\n\t\t}\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < collection.size(); i++) {\n\n\t\t\tsum += Math.pow(collection.get(i) - getAverage(), 2);\n\n\t\t}\n\t\treturn Math.sqrt(sum / collection.size());\n\t}", "title": "" }, { "docid": "b2359591362467dcb5dbf5e38f8d2028", "score": "0.81335694", "text": "public double stddev(){\n return StdStats.stddev(_openSitesPercentWhenPercolates);\n }", "title": "" }, { "docid": "9c0f2e5af6353b57215d3189209a0103", "score": "0.8114831", "text": "final public double[] getStdDev( ) \n\t{\n\t\treturn (double[])stds.clone();\n\t}", "title": "" }, { "docid": "9fa2ff90431f6e933c3d99e833c97961", "score": "0.80918205", "text": "public double stddev() {\n return StdStats.stddev(percentegeOfOpening);\n }", "title": "" }, { "docid": "cb6b2fb949d6d7dad025833b1755a1d3", "score": "0.80610764", "text": "public double getMeanStdDev()\r\n {\r\n return Math.sqrt( this.getMeanVar() );\r\n }", "title": "" }, { "docid": "3c4c7f9cfbd5681c6b5ca6963df72042", "score": "0.8020902", "text": "public T stdDev() {\n\t\tDouble ss = sse().doubleValue();\n\t\tDouble dev = Math.sqrt(ss/table.size());\n\t\treturn (T) dev;\n\t}", "title": "" }, { "docid": "bc48c768a14b66308fbaa524b3fc962b", "score": "0.8008331", "text": "public double s_deviation() {\n\t\treturn s_deviation(this.mean());\n\t}", "title": "" }, { "docid": "cadd83428236d18784bf2c8ccce4ef11", "score": "0.7989396", "text": "public static double getSampleStdDev(double[] values){\n\t\treturn Math.sqrt(getSampleVariance(values));\n\t}", "title": "" }, { "docid": "26264124e36eaf293e58ca26e254bec9", "score": "0.7665996", "text": "public double calcStdDev(List<DataObject> dataSet);", "title": "" }, { "docid": "a9ab4c30d413ab926fec4dcda807925b", "score": "0.76430845", "text": "@Override\n\t\t\tpublic double getStdDev()\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "a1266a8805d3270f2276636361e389f0", "score": "0.76374876", "text": "@JmxAttribute\n\tpublic double getSmoothedStandardDeviation() {\n\t\tif (totalCount == 0) {\n\t\t\treturn 0.0;\n\t\t}\n\n\t\tdouble avg = smoothedSum / smoothedCount;\n\t\tdouble variance = smoothedSqr / smoothedCount - avg * avg;\n\t\tif (variance < 0.0)\n\t\t\tvariance = 0.0;\n\t\treturn sqrt(variance);\n\t}", "title": "" }, { "docid": "afaf13304d5e9ef961048480b7ee4e3d", "score": "0.75558305", "text": "public static double std(List<Number> list) { //devstd = radice della sommatoria degli (xi-xmedio)^2\n double avg = avg(list);\n double var = 0;\n for (Number n : list) {\n var += Math.pow(n.doubleValue() - avg, 2);\n }\n return round(Math.sqrt(var), 2);\n }", "title": "" }, { "docid": "8ab3bf322e9efeea3f3dc6b4abc454a1", "score": "0.74950236", "text": "private static double calcStandardDev(double[] results, double mean) {\r\n\t\tdouble std = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < results.length; i++) {\r\n\t\t\tstd += Math.pow((results[i] - mean), 2);\r\n\t\t}\r\n\t\t\r\n\t\tstd = std / results.length;\r\n\t\tstd = Math.sqrt(std);\r\n\t\t\r\n\t\treturn std;\r\n\t}", "title": "" }, { "docid": "477f9751ddee287d1bad5cdf722d99a5", "score": "0.7481737", "text": "public float std(float[] data) {\n //calc mean\n float ave = mean(data);\n \n //calc sum of squares relative to mean\n float val = 0;\n for (int i=0; i < data.length; i++) {\n val += pow(data[i]-ave,2);\n }\n \n // divide by n to make it the average\n val /= data.length;\n \n //take square-root and return the standard\n return (float)Math.sqrt(val);\n}", "title": "" }, { "docid": "346a7918547a832124dbfc0759a4f2e2", "score": "0.7465234", "text": "public String calculateStdDev()\n {\n double result = 0;\n Patient patient;\n ArrayList<int[]> patientHistory;\n ArrayList<double[]> patientCalculation = new ArrayList();\n ArrayList<double[]> systemCalculation = new ArrayList();\n double average;\n \n System.out.println(\"***STARTING STD DEV. CAlCULATION***\");\n \n for(int key = 0; key < this.patientKeys.size(); key++)\n {\n patient = (Patient)this.patientList.get(this.patientKeys.get(key)).get(1);\n \n if(patient.hasHistory())\n {\n patientHistory = patient.getConditionHistory();\n patientCalculation = toDoubleArrayList(patientHistory);\n average = calculateAverage(patientCalculation);\n this.populationMean = average;\n \n for(int listIndex = 0; listIndex < patientHistory.size(); listIndex++)\n {\n this.submissions++;\n for(int arrayIndex = 0; arrayIndex < patientHistory.get(listIndex).length; arrayIndex++)\n {\n patientCalculation.get(listIndex)[arrayIndex] = Math.pow(patientHistory.get(listIndex)[arrayIndex] - average,2);\n this.samples++;\n }\n systemCalculation.add(patientCalculation.get(listIndex));\n }\n }\n }\n \n this.populationVariance = calculateAverage(systemCalculation);\n this.standardDeviation = Math.sqrt(this.populationVariance);\n \n System.out.println(\"***ENDING STD DEV. CAlCULATION***\");\n \n return String.format(\"MEAN: %s, VAR: %s, STD DEV:%s, Submissions: %s, Samples: %s\", this.populationMean, this.populationVariance, this.standardDeviation, this.submissions, this.samples);\n }", "title": "" }, { "docid": "f6a05b439c0c09eaac2486936917f71e", "score": "0.74570584", "text": "public double getRatingStandardDeviation() {\r\n\t\treturn this.ratingStandardDeviation;\r\n\t}", "title": "" }, { "docid": "e79c0fb47132c528f84419d7fb6917e2", "score": "0.7445635", "text": "public static double stddev(Number... numbers) {\n double mean = mean(numbers);\n double result = 0;\n for (Number num : numbers) {\n double dev = num.doubleValue() - mean;\n result += dev * dev;\n }\n return Math.sqrt(result / numbers.length);\n }", "title": "" }, { "docid": "1a3a6c0e8af1bac09714ec0f6fb2c564", "score": "0.74334425", "text": "public static double computeStandardDeviation(ArrayList<Double> data){\n\n\t\tdouble somme = 0;\n\t\tdouble somme_des_carres = 0;\n\n\t\tfor (int i=0; i<data.size(); i++){\n\n\t\t\tsomme += data.get(i);\n\t\t\tsomme_des_carres += data.get(i)*data.get(i);\n\n\t\t}\n\n\t\tsomme /= data.size();\n\t\tsomme_des_carres /= data.size();\n\n\t\tdouble variance = data.size()/(data.size()-1)*(somme_des_carres - somme*somme);\n\n\t\treturn Math.sqrt(variance);\n\n\t}", "title": "" }, { "docid": "b3fed8a073eaf4e0412a169482cd1ea1", "score": "0.73464507", "text": "public static double standardDeviation (Double[] data, double mean) {\n\t\tfinal int n = data.length; \n\t\t// calculate the sum of squares \n\t\tdouble sum = 0; \n\t\tfor ( int i=0; i<n; i++ ) \n\t\t{ \n\t\t\tfinal double v = data[i] - mean; \n\t\t\tsum += v * v; \n\t\t} \n\t\t// Change to ( n - 1 ) to n if you have complete data instead of a sample. \n\t\treturn Math.sqrt( sum / (n) ); \n\t}", "title": "" }, { "docid": "a640b46a181a26f28f27eb0569d19ea1", "score": "0.73091036", "text": "public double getMagStdDev(){ return Double.NaN;}", "title": "" }, { "docid": "09a13ddd05ef07be56c326db547a1975", "score": "0.72129637", "text": "public double[] getStandardDeviations() {\n\t\tdouble[] standardDeviations = \n\t\t\tgetHistogram().getStandardDeviation();\n\t\treturn Arrays.copyOf(standardDeviations, standardDeviations.length);\n\t}", "title": "" }, { "docid": "c1d8996d9ae58fd7d9d14ccc5e4496bf", "score": "0.71809775", "text": "public double s_deviation(double mean) {\n\t\tNode trav = head;\n\t\tdouble sum = 0;\n\t\tint length = 0;\n\t\twhile (trav != null) {\n\t\t\tsum += Math.pow(mean - trav.value, 2);\n\t\t\tlength++;\n\t\t\ttrav = trav.next;\n\t\t}\n\t\treturn Math.pow(sum / length, .5);\n\t}", "title": "" }, { "docid": "10cc050b5d94295bcedfe53cf95ba6e6", "score": "0.71699667", "text": "public static double getStdDev(double[] p) {\n\t\treturn getStdDev(p, Mathematics.getAverage(p), p.length);\n\t}", "title": "" }, { "docid": "4332e67046a002f971c83efa53f0a070", "score": "0.71603304", "text": "public static double stddev(List<Double> angles) {\n double mean = mean(angles);\n double output = 0;\n for (double angle : angles)\n output += Math.pow(angle - mean, 2);\n return output / angles.size();\n }", "title": "" }, { "docid": "2656654351dcfc04fe4caccfc6147c3e", "score": "0.7158381", "text": "public Double getStdv() {\n\t\treturn stdv;\n\t}", "title": "" }, { "docid": "f069e2fa6d414cf41a24f4bb9b564ba8", "score": "0.71544933", "text": "public static double stddev(Collection<? extends Number> numbers) {\n double mean = mean(numbers);\n double result = 0;\n for (Number num : numbers) {\n double dev = num.doubleValue() - mean;\n result += dev * dev;\n }\n return Math.sqrt(result / numbers.size());\n }", "title": "" }, { "docid": "30433b047e08a78f89e13a3bce14f63a", "score": "0.71003246", "text": "public double slopeStdErr() {\n return Math.sqrt(svar1);\n }", "title": "" }, { "docid": "cfaef9ca297a577fd4f7ae4d78706db8", "score": "0.70909876", "text": "@java.lang.Override\n public float getWeightStdDev() {\n return weightStdDev_;\n }", "title": "" }, { "docid": "bcb3f8a11b75ebf8159231968573d37f", "score": "0.7061121", "text": "public double interceptStdErr() {\n return Math.sqrt(svar0);\n }", "title": "" }, { "docid": "861db2596e454bbcf5c4ebd2e9ec88da", "score": "0.70521957", "text": "public static double deviation(double[] x) {\n\t\tdouble standardDeviation = 0.0;\n\t\t// makes an integer value length where length is the length of the array\n\t\tint length = x.length;\n\t\t// make an enhanced for loop that iterates from the first to last element of the array\n\t\tfor(double num: x) {\n standardDeviation += Math.pow(num - mean(x), 2);\n }\n\t\t// return the standard Deviation\n return Math.sqrt(standardDeviation/(length - 1)); // JA\n\t}", "title": "" }, { "docid": "507f6fe4cb07fb4a694979d64be527e1", "score": "0.702328", "text": "public double getStandardError() {\n\t\treturn standardError;\n\t}", "title": "" }, { "docid": "507f6fe4cb07fb4a694979d64be527e1", "score": "0.702328", "text": "public double getStandardError() {\n\t\treturn standardError;\n\t}", "title": "" }, { "docid": "1274d86b4822493f9adc5c3089758f4d", "score": "0.70080817", "text": "@java.lang.Override\n public float getWeightStdDev() {\n return weightStdDev_;\n }", "title": "" }, { "docid": "be3f3552c09620616b7cc1ebcb3e68e5", "score": "0.6999748", "text": "public static double standardDeviation(List<Double> list){\r\n if(list.isEmpty()){\r\n return 0;\r\n }\r\n\r\n double mean=0;\r\n double sum=0;\r\n double standardDeviation=0;\r\n double sq=0;\r\n double res=0;\r\n for (Double num : list) {\r\n sum+=num;\r\n }\r\n mean=sum/list.size();\r\n \r\n for (Double num : list) {\r\n standardDeviation+=Math.pow((num-mean), 2);\r\n }\r\n\r\n sq=standardDeviation/list.size();\r\n res=Math.sqrt(sq);\r\n\r\n return res;\r\n }", "title": "" }, { "docid": "31052cba6146d8b70ce35942bb0989d3", "score": "0.6981196", "text": "private double standardDeviation(ArrayList<Integer> temperatureValues,double mean, double count) {\r\n\t\tdouble sumOfSquares= 0;\r\n\t\tfor(Integer temperature : temperatureValues){\r\n\t\t\tsumOfSquares = sumOfSquares + Math.pow((mean - temperature),2);\r\n\t\t}\r\n\t\tdouble stdDev = (count!=0) ? (sumOfSquares/count) : 0;\r\n\t\tstdDev=Math.pow(stdDev,0.5);\r\n\t\treturn stdDev;\r\n\t }", "title": "" }, { "docid": "589d21116e6cde72b26ba094781050de", "score": "0.69760954", "text": "public double standardErrorForGradient() {\n return Math.sqrt(meanSquaredError() / secondMomentOf(xData));\n }", "title": "" }, { "docid": "72d2cfa3630f73ff45fc3aef2218f0a3", "score": "0.6901754", "text": "public double getAreaStdDev() {return Double.NaN;}", "title": "" }, { "docid": "8920ac1832cc505a325e8c168845fa98", "score": "0.68968934", "text": "double standardDeviation(long[] values, Functions f) { //desvio padrão\n long average = 0, quadratic = 0;\n for (int i = 0; i < values.length; i++) {\n average += values[i];\n quadratic += (values[i] * values[i]);\n }\n average /= values.length;\n quadratic /= values.length;\n return Math.sqrt((double) (quadratic - average * average));\n }", "title": "" }, { "docid": "0868e6af845952d16c3c8b0d7919e273", "score": "0.6854381", "text": "@Test\n public void testGetStandardDeviation() {\n System.out.println(\"getStandardDeviation\");\n String fileName = \"dataset2.txt\";\n List<ClassInfo> list = LoadData.loadDataFromFile(fileName);\n SizeRange instance = new SizeRange();\n instance.setVariance(CalculationManager.variance(list));\n double expResult = 0.0;\n double result = instance.getStandardDeviation();\n assertEquals(expResult, result, 1.0);\n // TODO review the generated test code and remove the default call to fail.\n }", "title": "" }, { "docid": "088e910c4a5512e4b010f7c923944daf", "score": "0.6797498", "text": "int getHostComputationtimeStdDeviation();", "title": "" }, { "docid": "3836f8eaa1a605ab659e34e3827e4baf", "score": "0.67814887", "text": "public static double deviation(double[] x)\n\t{\n\t\tdouble mean = mean(x);\n\t\t\n\t\t//creates new array of size x to store the (x-mean)^2 terms for later calculation\n\t\t//also used to calculate the total of the (x-mean)^2 terms for calculation\n\t\t\n\t\tdouble xMinusTotal = 0;\n\t\tdouble[] xMinusMeanSq = new double[x.length];\n\t\tfor(int i = 0; i < x.length; i++)\n\t\t{\n\t\t\txMinusMeanSq[i] = Math.pow((x[i]-mean),2);\n\t\t\txMinusTotal += xMinusMeanSq[i];\n\t\t}\n\t\t\n\t\t//calculates standard deviation by taking square root of the total xMinus values divided by the total minus 1 (n-1)\n\t\tdouble deviation = Math.pow((xMinusTotal/(x.length-1)), .5);\n\t\t\n\t\t//returns the deviation\n\t\treturn deviation;\n\t}", "title": "" }, { "docid": "1e812b85bc236d02cd9ee7aa67e8b1c5", "score": "0.6776866", "text": "public double getRMSE() {\n\t\tif (n <= 0) {\n\t\t\treturn Double.NaN;\n\t\t} else {\n\t\t\treturn Math.sqrt(sse / n);\n\t\t}\n\t}", "title": "" }, { "docid": "1e812b85bc236d02cd9ee7aa67e8b1c5", "score": "0.6776866", "text": "public double getRMSE() {\n\t\tif (n <= 0) {\n\t\t\treturn Double.NaN;\n\t\t} else {\n\t\t\treturn Math.sqrt(sse / n);\n\t\t}\n\t}", "title": "" }, { "docid": "8056b12d8ea584340aebc6552b6704c7", "score": "0.67658424", "text": "private static float stdDev(int[] arr) {\n //Loop through the array and sum the values divided by the length to find the average\n float avg = 0;\n for (int anArr1 : arr) {\n avg += (float) anArr1 / arr.length;\n }\n //Loop through the array and add to a new sum (each element-avg)^2/length\n float newAvg = 0;\n for (int anArr : arr) {\n newAvg += Math.pow(anArr - avg, 2) / arr.length;\n }\n //return the square root of that sum (the standard deviation of the original array)\n return (float) Math.sqrt(newAvg);\n }", "title": "" }, { "docid": "8fa44b99d1e40797971e8f0debbba9c6", "score": "0.66966087", "text": "public double ComputeStandardDeviation(String numbers_string){\r\n\t\tdouble result = 0; \t// Variable to store the final result\r\n\t\tfloat mean;\t\t\t// Variable to store the Mean of the numbers\r\n\t\tfloat sum;\t\t\t// Variable to store the sum of the numbers\r\n\t\tdouble variance; \r\n\t\t\r\n\t\tmean = ComputeMean(numbers_string);\t\t// Call the Compute Mean\r\n\t\t\r\n\t\tint totalNum;\t\t// Variable to store the total numbers entered by the user\r\n\t\tString[] numbers = numbers_string.split(\",\");\t// Split the string into numbers based on a delimiter\r\n\t\t\r\n\t\ttotalNum = numbers.length;\t\t// Calculate the total numbers\r\n\t\t\r\n\t\tsum = 0;\r\n\t\tfor(int iterator = 0; iterator < totalNum; iterator++)\r\n\t\t\t// Get the Sum of square of the difference of the mean\r\n\t\t\tsum += ((Integer.parseInt(numbers[iterator]) - mean) * (Integer.parseInt(numbers[iterator]) - mean));\r\n\t\t\r\n\t\tvariance = (sum / totalNum);\t// Calculate the Variance\r\n\t\tresult = Math.sqrt(variance);\t// Calculate the Standard Deviation\r\n\t\t\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "189e9b699d851371fb8f7a55a1d3f7fd", "score": "0.66796964", "text": "private double computeStandardDev (Portfolio port, DataCollection dc, String stockDate, DateModifications dm, double mean) {\n\n\t\tdouble standardDev = 0.0;\n\n\t\tfor (int index = 0; index < port.stocksInPortfolio.size(); index++) {\n\t\t\tdouble percentChange = computePercentChange (port.stocksInPortfolio.get(index), stockDate, dc, dm);\n\t\t\tstandardDev += ((percentChange - mean) * (percentChange - mean));\n\t\t}\n\n\t\tstandardDev = Math.sqrt(standardDev/port.stocksInPortfolio.size());\n\t\treturn standardDev;\n\t}", "title": "" }, { "docid": "51189f8834628086afb8522506895a10", "score": "0.6664724", "text": "@java.lang.Override\n public float getHeightStdDev() {\n return heightStdDev_;\n }", "title": "" }, { "docid": "66641bf653a98e66d6588b2dd3d89320", "score": "0.6585258", "text": "public int getHostFrametimeStdDeviation() {\n return hostFrametimeStdDeviation_;\n }", "title": "" }, { "docid": "69ed8a272eacfd1bdf4c2583d25e67d8", "score": "0.6567734", "text": "public static double getStdDev(int scoreValue,int availMoves, ArrayList<Double> inputValues){\n double avg=getAvg(scoreValue,availMoves);\n // Use really high SD if no available moves.\n if(avg==0){ return 100; }\n \n // Do the SD formula.\n double values=0;\n for(int i=0;i<inputValues.size();i++){\n values=values+Math.pow(inputValues.get(i)-avg,2);\n }\n return Math.sqrt(values/inputValues.size());\n }", "title": "" }, { "docid": "ed6ae67aef2babb1376fcdfe83239ffc", "score": "0.6549939", "text": "public static double getStdDev(double[] p, double ave, int length,\n\t\t\tdouble minValue, double maxValue) {\n\t\treturn getStdDev(p, ave, length, minValue, maxValue, false);\n\t}", "title": "" }, { "docid": "7eded0b14436210e7c72c58e0d6f8b61", "score": "0.65339017", "text": "@java.lang.Override\n public float getHeightStdDev() {\n return heightStdDev_;\n }", "title": "" }, { "docid": "9945608c06cbfe704762c63d0ab1171d", "score": "0.6528013", "text": "public int getHostFrametimeStdDeviation() {\n return hostFrametimeStdDeviation_;\n }", "title": "" }, { "docid": "f62351cdf8e6fcaeea76b36965d44751", "score": "0.6527571", "text": "public static double[] SD(double[] ts, ArrayList<Integer> SegArray) {\n\t\tTSProcessor tsp = new TSProcessor();\n\t\tArrayList<Double> std = new ArrayList<>();\n\t\tfor (int i = 0; i < SegArray.size() - 2; i = i + 2) {\n\t\t\tdouble[] segment = Arrays.copyOfRange(ts, SegArray.get(i),SegArray.get(i + 2));\n\t\t\tstd.add(tsp.stDev(segment));\n\t\t}\n\t\tdouble[] stdArray = new double[std.size()];\n\t\tfor (int i = 0; i < std.size(); i++) {\n\t\t\tstdArray[i] = std.get(i);\n\t\t}\n\t\treturn stdArray;\n\t}", "title": "" }, { "docid": "2e3709a305c76d952804936094a6f883", "score": "0.6516809", "text": "@Override\n\tpublic Double getInitialRunningStandardDeviation() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bdeb5fd8e407f6a3cbb972b37e24b8d8", "score": "0.6483109", "text": "public void SetStandardDev(double standard_dev)\n {\n this.standard_dev = standard_dev;\n }", "title": "" }, { "docid": "6e8b3eafa9180716fe1cfa9f73f7bf1e", "score": "0.64816314", "text": "public static double getStdDev(double[] p, double ave) {\n\t\treturn Mathematics.getStdDev(p, ave, p.length);\n\t}", "title": "" }, { "docid": "01b4e6d526891dd22868fc5f6e51beea", "score": "0.64777356", "text": "public static Double findSdValue(ArrayList<Double> rawData) {\n double avg = findMeanValue(rawData);\n double calc1 = 0;\n double calc2 = 0;\n double count = rawData.size();\n double stdDeviation = 0;\n \n \n \n /*STEP 2: Calculate the subtraction of Avg/Mean from each value\n Create an iterator in order to access(get) the values in inputList\n */\n for (int i = 0; i < count; i++) {\n calc1 = rawData.get(i) - avg;\n \n // STEP 3: Square root each remainder from STEP 2\n \n calc1 = Math.pow(calc1, 2);\n \n // STEP 4: Total the all remainders from STEP 3\n calc2 = calc2 + calc1;\n // Add calc2 into a new array for further calculations\n }\n \n // STEP 5: Divide total from STEP 4 by one less than the count of all numbers\n calc2 = calc2 / (count-1);\n \n // STEP 6: Square root the value from STEP 5 = Standard Deviation\n stdDeviation = Math.sqrt(calc2);\n \n // Return Standard Deviation Value\n return stdDeviation;\n\t\t\n\t}", "title": "" }, { "docid": "a0206bf848d0e4055425073546058a31", "score": "0.64579195", "text": "public static double standardError(ArrayList<Location> points){\n Location average = average(points);\n double squareSum = 0;\n int n = points.size();\n for (Location point : points){\n double dist = average.distanceTo(point);\n squareSum += dist * dist;\n }\n double sd = Math.sqrt(squareSum / n);\n return sd / Math.sqrt(n);\n }", "title": "" }, { "docid": "e69b792eb37dc8dc3293e4ba9d0852c7", "score": "0.6456541", "text": "static double gradesStandardDev(int [] grades)\n\t{\n\t\t\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "d4907fdc50ec30a1bb98c2bb431f2749", "score": "0.0", "text": "@Override\r\n public void onClick(View arg0) {\n if(arg0.getId() == R.id.leftmenu_btn) {\r\n if(dragLayout.getStatus() == Status.Close) {\r\n dragLayout.open(); \r\n }\r\n }else if(arg0.getId() == R.id.rightmore_btn) {\r\n if(popWindow.isShowing()) {\r\n popWindow.dismiss();\r\n }else {\r\n View parent = findViewById(R.id.rightmore_btn);\r\n int location[] = new int[2];\r\n parent.getLocationOnScreen(location);\r\n popWindow.showAtLocation(parent,Gravity.TOP|Gravity.RIGHT,0,location[1]+53);//popwindow显示在特定位置\r\n }\r\n }\r\n }", "title": "" } ]
[ { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.6905833", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cdf542363f5b089e84183e3d9020935f", "score": "0.6697644", "text": "@Override\n\t protected void ramana() {\n\t\t\n\t}", "title": "" }, { "docid": "657d87f4ac2918ce5fce84e83ea3855b", "score": "0.64378333", "text": "@Override\n\tpublic void arreglar() {\n\n\t}", "title": "" }, { "docid": "69ade76a69c0f6c07e66b5d0e5136eb3", "score": "0.6425563", "text": "@Override\r\n\tpublic void grabar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "16c30d73c1df796c0e31e93eb0f6e02e", "score": "0.64044255", "text": "@Override\r\n\tpublic void atacar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "c598a2e3f3aed7447c40167abd0815be", "score": "0.6325532", "text": "@Override\r\n\tpublic void kanalizasyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e70d900d759249a14a9d2833c9f92656", "score": "0.62733805", "text": "@Override\r\n\tpublic void elektrik() {\n\t\t\r\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.62550694", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92ca60c14b9e9bf9cfed6703c4ddea43", "score": "0.625003", "text": "@Override\r\n\tpublic void accionar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9c1a5abdecc0f2e99d3c022b1b7d4ac", "score": "0.6246549", "text": "@Override\n\t\t\tpublic void 볶음밥() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "ea9e446f91664fee1580be3d45fc2e8a", "score": "0.6206874", "text": "@Override\r\n\tpublic void reagir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3a3df32f04eb1c3118fc8ceb69db395d", "score": "0.62005454", "text": "@Override\n\tpublic void curar() {\n\t\t\n\t}", "title": "" }, { "docid": "16170a7948edf0bb8a90dfe0ac4fec33", "score": "0.6192674", "text": "@Override\n\t\t\tpublic void 짜장면() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f0705d77863f0fa7c516a99a8eca8134", "score": "0.6190625", "text": "private void zbudujSciezkeiRozpocznij() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c8d8ef34882e71054f4c2f0e26e18e7e", "score": "0.61372304", "text": "public void caress() {\n\t\t\n\t}", "title": "" }, { "docid": "88651b7597cbac4485dfc6a19382971e", "score": "0.6063545", "text": "@Override\r\n\tpublic void avisoultimotiro() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.60561824", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ddd6019fcc7107b506799138fa0a4641", "score": "0.60505116", "text": "@Override\r\n\tprotected void initdata() {\n\r\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.60353535", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.60353535", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.60203654", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "482d92acda26fc41523278bb982ed7e9", "score": "0.59988713", "text": "@Override\n\tpublic void platesteContactless() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.59879225", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ad25be891046838900b37d5cdf75010b", "score": "0.5975695", "text": "@Override\r\n\tpublic void arabaGecer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fafd92e57932ba5c77e0be9480563172", "score": "0.5953944", "text": "@Override\r\n\tvoid init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "95aa3a2220bec980fc9016a4426ee2b7", "score": "0.5948094", "text": "@Override\n\tpublic void comenzar() {\n\t\t\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.5938956", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "82fcae7843e9cd9087f67fad345568b9", "score": "0.59232146", "text": "@Override\n\tpublic void init() { \n\t\t\n\t}", "title": "" }, { "docid": "7c6fed8e399de380b119d83c6b7dec38", "score": "0.5885899", "text": "private MoreEmperor(){\n\n\t}", "title": "" }, { "docid": "9ce75e891f4a6132d9837c33a86f11f3", "score": "0.5884196", "text": "@Override\n\tpublic void getchieurong() {\n\t\t\n\t}", "title": "" }, { "docid": "b049a074b12aea6414b0c3354573a89c", "score": "0.5875572", "text": "@Override\n\t\t\t\tpublic void initialize() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.58509105", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "c77e40bbb43cc49645ce63e31ba6b676", "score": "0.58233273", "text": "@Override\r\n\tpublic void update() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b4ecae6e31b41ead72d093495b46455a", "score": "0.5810715", "text": "public void mo1410b() {\n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5805753", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c3d1e72656333e09790dac9abf69fb23", "score": "0.5804777", "text": "@Override\r\n\t\tpublic void acoes() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "c3d1e72656333e09790dac9abf69fb23", "score": "0.5804777", "text": "@Override\r\n\t\tpublic void acoes() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.580369", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9a00431eee28b38391cb5dfa243729d9", "score": "0.57904106", "text": "public void mo4643a() {\n }", "title": "" }, { "docid": "bc3a08c64e443ee86473be048cb9738a", "score": "0.578575", "text": "private void smth() {\n\n\t\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "afb8d306e46856b05d9138a9c18c646b", "score": "0.57730746", "text": "@Override\r\n\t\tpublic void limpaTela() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "9720bcf5a7868f579b25b5e78dc03e6e", "score": "0.5765882", "text": "@Override\n\tpublic void teclear() {\n\n\t}", "title": "" }, { "docid": "d95a081a1e6e3117f8617a3fbbbe16fd", "score": "0.57630926", "text": "public void mo3871b() {\n }", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.5755148", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7c095c57d10901c0fda3f8584611b8a8", "score": "0.57481265", "text": "@Override\n protected void init () {\n }", "title": "" }, { "docid": "c081f6b796851b26f184bf0f5bbf469c", "score": "0.5747874", "text": "@Override\n\tpublic void dientich() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731761", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "871d03786cbf53026a17aa613aded752", "score": "0.57235676", "text": "@Override\t//初始化方法\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "ba87d3460fb6faa58e5ff893f84e4a7a", "score": "0.5685994", "text": "@Override\n\tprotected void initialize() \n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5683637", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "264b73ede67394b8d57db8f3623673db", "score": "0.56786793", "text": "@Override\r\n\tpublic void afterConstruct() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cffc9e76f5aeaa8126396b11e98f261b", "score": "0.5670429", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "6c7f3bb62b62ab0efc25de23710ee029", "score": "0.5669814", "text": "@Override\n\tpublic void concentrarse() {\n\t\t\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b53508b8f07bf95b923a1e913f88fcab", "score": "0.5668746", "text": "@Override\r\n\tpublic void estadoCreaditicio() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1b6ae1f9acb8e538994b7d00bae50317", "score": "0.5664213", "text": "@Override\n\tprotected void skirmish() {\n\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56631064", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "31d4487a868a7dc81dfde93aa95013c4", "score": "0.56630474", "text": "@Override\n\tprotected void initialize() {\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "ec2afced68195dab79cf8503e6907338", "score": "0.5643847", "text": "protected void mo1628b() {\n }", "title": "" }, { "docid": "d5b7380f66253fe7bcac3715637c4dd4", "score": "0.56360185", "text": "@Override\n\tpublic void getInformation() {\n\t\t\n\t}", "title": "" }, { "docid": "d5b7380f66253fe7bcac3715637c4dd4", "score": "0.56360185", "text": "@Override\n\tpublic void getInformation() {\n\t\t\n\t}", "title": "" }, { "docid": "c9e7a86bd469245549d853b1a2c183a3", "score": "0.562041", "text": "@Override\r\n\tpublic void identify() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b2a793cd2e6ec37a2fdb27c90d87a493", "score": "0.5619648", "text": "@Override\r\n\tprotected void initialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "915cd499c707ca694353925d740e0725", "score": "0.5615348", "text": "private void comprimiendo() \n\t{\n\t}", "title": "" }, { "docid": "7da9ad3ab650b64b3e75012a99c0e238", "score": "0.5614612", "text": "public void mo3866a() {\n }", "title": "" }, { "docid": "f347b26e2be487b128dc1646456e0be7", "score": "0.56142163", "text": "@Override\n\t\t\t\tpublic void initialize() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f347b26e2be487b128dc1646456e0be7", "score": "0.56142163", "text": "@Override\n\t\t\t\tpublic void initialize() {\n\n\t\t\t\t}", "title": "" }, { "docid": "504c9d8dc3680e99d5f3450593b02c8d", "score": "0.561124", "text": "@Override\n\t\t\t\tpublic void update() {\n\n\t\t\t\t}", "title": "" }, { "docid": "504c9d8dc3680e99d5f3450593b02c8d", "score": "0.561124", "text": "@Override\n\t\t\t\tpublic void update() {\n\n\t\t\t\t}", "title": "" }, { "docid": "bd5cf567659030cded015505487de3b2", "score": "0.5607615", "text": "@Override\r\n\tpublic void inter11() {\n\t\t\r\n\t}", "title": "" } ]
3225e9da0a3168bf9c04f2c7dfbf8632
string topicId = 1;
[ { "docid": "17b8218d9f5b5d75e4f8fdd76f1fe55f", "score": "0.77154946", "text": "java.lang.String getTopicId();", "title": "" } ]
[ { "docid": "47d330d9e776cd63afa2b42e14c7534f", "score": "0.7771491", "text": "int getTopicId();", "title": "" }, { "docid": "3504b9eb7e8bef7796d92f54175e4eca", "score": "0.7415286", "text": "public String getTopicId() {\n return topicId;\n }", "title": "" }, { "docid": "a625bdf2f586f5d20e331cff60fea252", "score": "0.73817635", "text": "public String getTopicID() {\n return topicID;\n }", "title": "" }, { "docid": "fe29dea0becfa1276a5eec2fb04c3fbe", "score": "0.7358259", "text": "public void setTopic(String string)\n {\n this.topic = string;\n }", "title": "" }, { "docid": "7f2782ff2491ca28431178492a4adf3b", "score": "0.72522247", "text": "String topic();", "title": "" }, { "docid": "e29908514869c448f44653772ab65b1a", "score": "0.69178885", "text": "String getTopic();", "title": "" }, { "docid": "5ac7b77a2f6137aac758bcc3a56adb13", "score": "0.6915026", "text": "String getDeviceId(String topic);", "title": "" }, { "docid": "bdde2dfcb7a71ed65ea5e3ff8c8c890b", "score": "0.68652445", "text": "String getDongleId(String topic);", "title": "" }, { "docid": "8c6576dac9395aee389c08eefd15198b", "score": "0.6857455", "text": "public String getTopic() {\n return topic;\n }", "title": "" }, { "docid": "a8ff68b46d56bdda26daea2f64fef0a9", "score": "0.67960656", "text": "@NotNull\n public SimpleIntegerLabel getTopicId() {\n return topicId;\n }", "title": "" }, { "docid": "18ba7765d6b1104b8bf4183876d51739", "score": "0.6760839", "text": "public String topic();", "title": "" }, { "docid": "4c8b16f768890797bcaf4bd09cf88952", "score": "0.6757958", "text": "public String getTopic()\n {\n return this.topic;\n }", "title": "" }, { "docid": "5537def1691079581e83794745656fe0", "score": "0.67010427", "text": "public void setTopic(String topic) {\r\n \t\tthis.topic = topic;\r\n \t}", "title": "" }, { "docid": "f3a1a53fac7019b6539c85fbcb99aa74", "score": "0.66870177", "text": "java.lang.String getTopic();", "title": "" }, { "docid": "f3a1a53fac7019b6539c85fbcb99aa74", "score": "0.66870177", "text": "java.lang.String getTopic();", "title": "" }, { "docid": "550b90a57133faf194c7408e3c7743ed", "score": "0.6593849", "text": "public String getTopic() {\r\n \t\treturn this.topic;\r\n \t}", "title": "" }, { "docid": "e1b07bfce9633679a22eadf2d8f1ace7", "score": "0.65934503", "text": "public String getTopic() {\n return this.topic;\n }", "title": "" }, { "docid": "1a8ec92b746786c96b534a5b9d9607a7", "score": "0.6559155", "text": "public String getTopic() {\n\t\treturn topic;\n\t}", "title": "" }, { "docid": "8ded8174d1fafecd5335286f24d22990", "score": "0.6528889", "text": "String topicType();", "title": "" }, { "docid": "0289be50acf428e390f69d4502235cdc", "score": "0.65034896", "text": "void to(String topic);", "title": "" }, { "docid": "8414858d6e30543ec79dd53f245bf267", "score": "0.6454951", "text": "public String name(){\n\t\treturn topicName;\n\t}", "title": "" }, { "docid": "3391bb27d66489d7f63221154b18a29d", "score": "0.64410144", "text": "public String getId() {\n return topicResolver.getTopicID();\n }", "title": "" }, { "docid": "a3cc0a52e0b9dbf79ae01b4833959b40", "score": "0.6431969", "text": "String getTopicName();", "title": "" }, { "docid": "e97ad72701460bb25075c3ae03d3d128", "score": "0.6271843", "text": "boolean hasTopicId();", "title": "" }, { "docid": "76f4fdfc11d8b05276100c91ceda18c9", "score": "0.6241648", "text": "private String generateTopicID() {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(Long.toString(System.nanoTime()).getBytes());\n byte[] hash = m.digest();\n String topicID = new String(Hex.encode(hash));\n\n return topicID;\n } catch (NoSuchAlgorithmException e) {\n log.error(\"Could not generate a topic ID (MD5 algorithm not found)\");\n }\n\n return null;\n }", "title": "" }, { "docid": "d8b1a137ccd2aee101066be99a70d6e9", "score": "0.61729395", "text": "public void setTopicId(String topicId) {\n this.topicId = topicId == null ? null : topicId.trim();\n }", "title": "" }, { "docid": "0c6afc520858bbe8bbc8185db8877686", "score": "0.61527246", "text": "int nextTopicId(Connection conn) throws SQLException;", "title": "" }, { "docid": "0ef0c91685f98d246f02bd4f63c5dcc0", "score": "0.6148878", "text": "com.google.protobuf.ByteString\n getTopicIdBytes();", "title": "" }, { "docid": "41e66b7a1b2fb9f87731084c98e6da53", "score": "0.61218727", "text": "String getProjectName(String topic);", "title": "" }, { "docid": "f24211cbe2ebd6a2508fb98044c866e4", "score": "0.61136895", "text": "public Builder setTopic(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n topic_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8e340ba8777dfa9be3d9c54221025bde", "score": "0.6080969", "text": "TopicType getTopicType(String topic);", "title": "" }, { "docid": "2793744d1803b925024fe39ad2df6e27", "score": "0.6055796", "text": "public String getTopicName() {\n return topicName;\n }", "title": "" }, { "docid": "695cd717cf78baca04a4d91253c5b6fa", "score": "0.60439414", "text": "public Builder setTopic(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n topic_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6bd637b31eb669cbd04226d1aa1e8d48", "score": "0.6027164", "text": "public void setId(String id) {\n topicResolver.setTopicID(id);\n }", "title": "" }, { "docid": "abafa2f273586fac8855f47a6330a447", "score": "0.6012245", "text": "@RequestMapping(\"/topics/{id}\")\r\n\tprivate Topic getTopicById(@PathVariable String id){\t\t\r\n\t\treturn topicService.getTopicById(id);\r\n\t}", "title": "" }, { "docid": "9ce94661a80c4bdd8d368f46a9a543ee", "score": "0.59625006", "text": "public void setTopicID(String topicID) {\n topicResolver.setTopicID(topicID);\n }", "title": "" }, { "docid": "59ebdee82a857138059bdc2fcb18e7ab", "score": "0.59616923", "text": "int getTopicPartitionId();", "title": "" }, { "docid": "ddc8b56814626e271b5b896526392c9f", "score": "0.596161", "text": "private void updateTopic(Topic topic) throws SQLException {\n ContentValues contentValues = new ContentValues();\n\n int id = topic.getId();\n String name = topic.getName();\n\n contentValues.put(QuizapyContract.TopicTable.COLUMN_NAME, name);\n\n db.update(QuizapyContract.TopicTable.TABLE_NAME,\n contentValues,\n QuizapyContract.TopicTable._ID + \" = ?\",\n new String[]{Integer.toString(id)});\n }", "title": "" }, { "docid": "89328da4577ac9a3a86eb366589f4373", "score": "0.5959229", "text": "java.lang.String getTopicName();", "title": "" }, { "docid": "89328da4577ac9a3a86eb366589f4373", "score": "0.5959229", "text": "java.lang.String getTopicName();", "title": "" }, { "docid": "89328da4577ac9a3a86eb366589f4373", "score": "0.5959229", "text": "java.lang.String getTopicName();", "title": "" }, { "docid": "89328da4577ac9a3a86eb366589f4373", "score": "0.5959229", "text": "java.lang.String getTopicName();", "title": "" }, { "docid": "f0e4ef778f7aad2b37d4e6f3ae1a110e", "score": "0.5952965", "text": "String[] getTopicInfo(String topic);", "title": "" }, { "docid": "c4123419cb4f7c1ed7bf42809503d593", "score": "0.59512424", "text": "public interface MqttTopics {\n static final String DEVICE_STATUS = \"/#/#/status\";\n}", "title": "" }, { "docid": "09177a804b142ecf333708b1be7c1533", "score": "0.59495026", "text": "String getTopicType();", "title": "" }, { "docid": "83b89691139e96739139e033e1c7fcd3", "score": "0.5925317", "text": "public java.lang.String getTopic() {\n java.lang.Object ref = topic_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n topic_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "3af1cdbb37e661017e88f27ac082b218", "score": "0.5901831", "text": "public java.lang.String getTopic() {\n java.lang.Object ref = topic_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n topic_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "9dd5ea4c13f17615c66a90410ab18425", "score": "0.5884141", "text": "public void setTopic( Consumidor.TOPICS topic )\n\t{\n\t\tthis.topic = topic;\n\t}", "title": "" }, { "docid": "9bf2a22ad85ed066a0f13a2b5bf95341", "score": "0.5880142", "text": "@Override\n public void receiveTopic(String text)\n {\n\n }", "title": "" }, { "docid": "37180fa312684fea5958d48a68da2db3", "score": "0.5869938", "text": "@Override\n public void setTopic(String channel, String topic)\n {\n }", "title": "" }, { "docid": "868ec257e2e21413f496d0f41315ff99", "score": "0.58672345", "text": "@Override\n\tpublic Topic getTopic(String topic) throws ConfigDbException {\n\t\treturn new TopicImplem();\n\t}", "title": "" }, { "docid": "c0b2d77cea7f6c015a666d48abb19f75", "score": "0.5843278", "text": "public java.lang.String getTopic() {\n java.lang.Object ref = topic_;\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 topic_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "e4b2cbf89c3b9741fc042354b3cc3e65", "score": "0.5836749", "text": "protected abstract Topic createTopic(String line);", "title": "" }, { "docid": "098d5d2c65ae258777c1afee5cfd9e3b", "score": "0.5823877", "text": "TagTopic selectByPrimaryKey(String ttid);", "title": "" }, { "docid": "c4426d2a83b137f2679ba7b73a9c5222", "score": "0.5818354", "text": "String topicSpaceName();", "title": "" }, { "docid": "f108da1f9dacfea1091fdc11d4837e85", "score": "0.5813103", "text": "public java.lang.String getTopic() {\n java.lang.Object ref = topic_;\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 topic_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "ee8d505513ee72c0088a88f2fdb05645", "score": "0.58099526", "text": "CmsTopic selectByPrimaryKey(Long id);", "title": "" }, { "docid": "a2e058303ab04f3a3bfc0e9e452af3f5", "score": "0.5795855", "text": "@RequestMapping(\"/{topic}\")\n\tpublic void sendToVariableTopic(@PathVariable String topic, @RequestParam(\"text\") String text) throws InterruptedException, ExecutionException {\n\t\tSystem.out.println(topic);\n this.producer.produce(topic, text);\n }", "title": "" }, { "docid": "db71a45eee21fbf74ed65a06fce46e04", "score": "0.57588106", "text": "@Command\n Leadership<byte[]> run(String topic, byte[] id);", "title": "" }, { "docid": "87d6dffc5a2b4d7efc175ac45a907d5a", "score": "0.5742084", "text": "private Topic addTopic(Topic topic) throws SQLException {\n ContentValues contentValues = new ContentValues();\n if(topic.getId() != null){\n contentValues.put(QuizapyContract.TopicTable._ID, topic.getId());\n }\n contentValues.put(QuizapyContract.TopicTable.COLUMN_NAME, topic.getName());\n topic.setId((int)db.insertOrThrow(QuizapyContract.TopicTable.TABLE_NAME, null, contentValues));\n return topic;\n }", "title": "" }, { "docid": "fedf121957915a7f3939ec43dd118e62", "score": "0.57384956", "text": "public void setTopicName(String v) \n {\n \n if (!ObjectUtils.equals(this.topicName, v))\n {\n this.topicName = v;\n setModified(true);\n }\n \n \n }", "title": "" }, { "docid": "eff28c9617993f145d66c00d9d2fec50", "score": "0.5734139", "text": "SystemTopic create();", "title": "" }, { "docid": "b4438bc92f49b323b1ac0401b5ed316d", "score": "0.57253283", "text": "java.lang.String getTopicName(int index);", "title": "" }, { "docid": "617b614ffdb82eee59896aed8fcd33f8", "score": "0.5719554", "text": "String getClientTopic(String projectName, String clientName);", "title": "" }, { "docid": "6cdced2dc386fd0bb4dd4600872b1ab6", "score": "0.5716731", "text": "TopicDTO findOne(String id);", "title": "" }, { "docid": "e0725ceea6bfad3e747e56ef5a9339a7", "score": "0.5688484", "text": "String getOnlineTopic(String projectName);", "title": "" }, { "docid": "1071198dea5cef5a690385cb963e3c8c", "score": "0.5685181", "text": "String getInstanceTopologyUpdatesTopic();", "title": "" }, { "docid": "ce93ca053622b93f6165d55a985617c2", "score": "0.5649579", "text": "public InsetHbase(String topic) {\n\t\tsuper();\n\t\tthis.topic = topic;\n\t}", "title": "" }, { "docid": "93329a2b0c8f1c0296eec17be0c1a384", "score": "0.56477475", "text": "public String getContentId(String msg){\n return msg.substring(7);\n }", "title": "" }, { "docid": "9b76c5f55cab812b95bf4f48e819990a", "score": "0.5642955", "text": "public void createTopic(String topic) {\n\t\t\n\t\tif (!subscriptions.containsKey(topic)) {\n\t\t\tsubscriptions.put(topic, new HashSet<>());\n\t\t} else {\n\t\t\tLogger.log(\"Broker Storage: Tried to add topic \\\"\" + topic + \"\\\", but topic already exists.\");\n\t\t}\n\t\t\n\t\t//====================================================================\n\t}", "title": "" }, { "docid": "3db0926651debfe323436b5dfc0d4d16", "score": "0.563612", "text": "public String newDatastreamID();", "title": "" }, { "docid": "3d537666101ccc66cb5a5759b26b761f", "score": "0.56222904", "text": "@Test\n\tpublic void getTopicWithId() throws Exception {\n\t\tMockito.when(service.getTopic(\"1\")).thenReturn(new Topic(\"1\", \"Core Java\", \"Learn in depth the details and get certified\"));\n\t\t \n\t\tMvcResult result = mock.perform(get(\"/topic/1\")).andExpect(status().isOk()).andReturn();\n\t\tSystem.out.println(result.getResponse().getContentAsString());\n\t}", "title": "" }, { "docid": "3a20e5ac1142a5ff5b890b2c19b285aa", "score": "0.5605514", "text": "SystemTopic create(Context context);", "title": "" }, { "docid": "499e9879f1fa1b62ed57fce90ad53e40", "score": "0.5604102", "text": "String getClientBaseTopic(String projectName);", "title": "" }, { "docid": "7d0aecd79eca4dc1b641138b3b4a7a90", "score": "0.56030154", "text": "void createDocumentTopic( NewsletterBlog topic, Plugin plugin );", "title": "" }, { "docid": "fda872f2b6ea15fc7e778ec950bc9af2", "score": "0.5586826", "text": "public static String toTopicString(String tenantID, Topic topic) {\n\n\t\tString ret = null;\n\n\t\tif (topic.isTenantScoped()) {\n\t\t\tret = tenantID + \"_\" + topic;\n\t\t}\n\n\t\telse {\n\t\t\tret = topic.toString();\n\t\t}\n\n\t\treturn ret;\n\n\t}", "title": "" }, { "docid": "9ff9db4e77707552a1273eed9d5c1b75", "score": "0.55626047", "text": "int getMsgId();", "title": "" }, { "docid": "7697648c70d7b4ebd878d581ef72084e", "score": "0.5559908", "text": "int getTopicNameCount();", "title": "" }, { "docid": "9c338c1c574dbbf41047a34922b601bb", "score": "0.55535126", "text": "int insert(CmsTopic record);", "title": "" }, { "docid": "68e1b304f9cb52c452214d17da1a1932", "score": "0.5547895", "text": "private static String createMessageId() {\n return UUID.randomUUID().toString();\n }", "title": "" }, { "docid": "4e9b7a4ded1b8f32cf57b63ea0b31f9f", "score": "0.5534695", "text": "WithCreate withTopicType(String topicType);", "title": "" }, { "docid": "44b04ec309d09bc70e3c609806d9a91e", "score": "0.55249363", "text": "abstract TopicPath topicPath();", "title": "" }, { "docid": "f44f9d52212fe06eac6969dcac220c99", "score": "0.55185276", "text": "SystemTopic.Update update();", "title": "" }, { "docid": "2d8c4e63cf64727330b2e71040a73efc", "score": "0.55094457", "text": "public com.google.protobuf.ByteString\n getTopicBytes() {\n java.lang.Object ref = topic_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n topic_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "2d8c4e63cf64727330b2e71040a73efc", "score": "0.55094457", "text": "public com.google.protobuf.ByteString\n getTopicBytes() {\n java.lang.Object ref = topic_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n topic_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "d2c3b29458df3d835c8a33254006d297", "score": "0.5508152", "text": "public interface TopicSelector {\n\n String getTopic(Object data);\n}", "title": "" }, { "docid": "6e93239a7cdf8fb4bdc52c87c660ae37", "score": "0.55080926", "text": "public Topic(String namestring) {\n\t\tname = new String(namestring);\n\t\tsubtopics = new Vector();\n\t\tvisited = false;\n\t}", "title": "" }, { "docid": "ef82fa5cb1f7c613883ce0a3c7a79fb7", "score": "0.55060494", "text": "String getInstanceLoggingTopic();", "title": "" }, { "docid": "240e3432ea708d2fc306fb8589906ec0", "score": "0.5501121", "text": "String teTopologyIdStringValue();", "title": "" }, { "docid": "ad97467fa7e8b78ccad24e8ead7624d6", "score": "0.5490783", "text": "public Consumidor.TOPICS getTopic( )\n\t{\n\t\treturn topic;\n\t}", "title": "" }, { "docid": "168944020329aa425ab94f9639c43b24", "score": "0.5486672", "text": "public Builder setTopicName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n topicName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "168944020329aa425ab94f9639c43b24", "score": "0.5486672", "text": "public Builder setTopicName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n topicName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "168944020329aa425ab94f9639c43b24", "score": "0.5486672", "text": "public Builder setTopicName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n topicName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "546bbea866e790554b4afd74f5938519", "score": "0.54828733", "text": "public String getChatStory(){\n return pid;\n }", "title": "" }, { "docid": "c1930b574776c587de29630e00332a6b", "score": "0.5479318", "text": "public String generateTopic(Cluster cluster);", "title": "" }, { "docid": "bbadf6a8fa17a6bcceef7026867c17af", "score": "0.54614687", "text": "public String getTopic() {\n return String.join(\",\", this.topicList);\n }", "title": "" }, { "docid": "6187d4859836c634b56c36ee0a236250", "score": "0.5461262", "text": "String getTenantUpdatesTopic();", "title": "" }, { "docid": "d470cc099a9582047625ac456e8e9214", "score": "0.5458219", "text": "void publish(String topic, String message);", "title": "" }, { "docid": "83bc4a925e6d68a7c3a8ecb688efcd96", "score": "0.5451154", "text": "@CrossOrigin\n\t@PostMapping(\"/topics\")\n\tpublic ResponseEntity<Object> createTopic(@RequestBody Topic topic)\n\t{\n\t\tTopic savedTopic = topicRepository.save(topic);\n\t\t\n\t\tURI location = ServletUriComponentsBuilder.fromCurrentRequest().path(\"/{id}\")\n\t\t\t\t\t\t.buildAndExpand(savedTopic.getID()).toUri();\n\t\t\n\t\treturn ResponseEntity.created(location).build();\n\t}", "title": "" }, { "docid": "9bc33132b0fef4d67afe91df67cc38b5", "score": "0.5436932", "text": "@Test\n\tvoid testGetTopicByIdWithValidInputs() {\n\t\ttry {\n\t\t\tTopicService topicService = new TopicService();\n\t\t\tTopic topic = topicService.getTopicById(Integer.valueOf(1));\n\t\t\tassertNotNull(topic);\n\t\t} catch (ServiceException e) {\n\t\t\tfail();\n\t\t}\n\t}", "title": "" } ]
96a5cb84bd2d3374db20152a5e918c9f
Estimates the correlation to the precision of the halfwidth bound The maximum number of replications is set at 20getNumberOfReplications()
[ { "docid": "252edc86041cdcda7451849726ca8890", "score": "0.57022226", "text": "public final double estimateCorrelation(double hwBound, int sampleSize){\n\t\treturn estimateCorrelation(hwBound, sampleSize, 100*getNumberOfReplications());\n\t}", "title": "" } ]
[ { "docid": "903879f158831aea7e1f615f81aef703", "score": "0.59647954", "text": "public final double estimateCorrelation(double hwBound, int sampleSize, int numReps){\n \n if (hwBound <=0)\n throw new IllegalArgumentException(\"Half-width bound must be > 0.\");\n \n\t\tif (sampleSize < 3)\n\t\t\tthrow new IllegalArgumentException(\"The generate size must be > 2\");\n\n\t\tif (numReps < 1)\n\t\t\tthrow new IllegalArgumentException(\"The number of replications must be >=1\");\n\n\t\tmyLag1Stat.reset();\n\n\t\tdouble hw = Double.MAX_VALUE;\n\t\t\n\t\tif (myAntitheticFlag){\t\t\t\n\t\t\tdouble xodd = 0.0;\n\t\t\tint k = numReps*2;\n\t\t\tfor(int i=1;i<=k;i++){\n\t\t\t\tdouble erho = sampleCorrelation(sampleSize);\t\t\t\t\n\t\t\t\tif ( (i%2) == 0){\n\t\t\t\t\tdouble x = (xodd + erho)/2.0;\n\t\t\t\t\tmyLag1Stat.collect(x);\n\t\t\t\t\tmyCorrelatedRng.setAntitheticOption(false);\n\t\t\t\t\thw = myLag1Stat.getHalfWidth();\n\t\t\t\t\tif (hw <= hwBound)\n\t\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\txodd = erho;\n\t\t\t\t\tmyCorrelatedRng.setAntitheticOption(true);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmyCorrelatedRng.setAntitheticOption(false);\n\t\t} else {\n\t\t\tfor(int i=1;i<=numReps;i++){\n\t\t\t\tmyLag1Stat.collect(sampleCorrelation(sampleSize));\n\t\t\t\thw = myLag1Stat.getHalfWidth();\n\t\t\t\t//System.out.println(\"hw = \" + hw + \" i = \" + i);\n\t\t\t\tif (hw <= hwBound)\n\t\t\t\t\tbreak;\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t\treturn(myLag1Stat.getAverage());\n\n\t}", "title": "" }, { "docid": "1f7a306eee25fd1ce7b123abdfd363f2", "score": "0.59504545", "text": "public final double estimateCorrelation(double hwBound){\n\t\treturn estimateCorrelation(hwBound, mySampleSize, 100*getNumberOfReplications());\n\t}", "title": "" }, { "docid": "94e936d163de7cf327b8ae809c34e105", "score": "0.5819685", "text": "Correlation correlation();", "title": "" }, { "docid": "b5f920b75c7c136a34278f2b109582ff", "score": "0.5625269", "text": "public final double estimateCorrelation(){\n\t\treturn (estimateCorrelation(myNumReps, mySampleSize));\n\t}", "title": "" }, { "docid": "9a2c815fbf7c1ea144c9325e5e950e77", "score": "0.55900127", "text": "public double getXYcorrCoeff(){\n return this.xyR;\n }", "title": "" }, { "docid": "74fed2002aabe4b38ceb1c491b02c7e6", "score": "0.54087406", "text": "public void drawBestFitInPrevOnCurr_Correlation() throws IOException\r\n\t{\r\n\t\tList<Rectangle> prevRegions = this.prev.getTemplateRegionsList();\r\n\t\tList<Rectangle> returnedRectangle = new ArrayList<Rectangle>();\r\n\t\tRandom rand = new Random();\r\n\t\tfor(Rectangle rec : prevRegions)\r\n\t\t{\r\n\t\t\tProcessImage bestFit = null;\r\n\t\t\tRectangle bestFitRec = rec;\r\n\t\t\tProcessImage prev = this.prev.getRectangleImage(rec);\r\n\t\t\tdouble highestCorrelation = Double.NEGATIVE_INFINITY;\r\n\t\t\tint numTrials = rand.nextInt(11) + 10;\r\n\t\t\tfor(int i = 0; i < numTrials; i++)\r\n\t\t\t{\r\n\t\t\t\tint offset = rand.nextInt(21) - 10;\r\n\t\t\t\tint x1 = rec.getUpperLeftX();\r\n\t\t\t\tint y1 = rec.getUpperLeftY();\r\n\t\t\t\tint x2 = rec.getLowerRightX();\r\n\t\t\t\tint y2 = rec.getLowerRightY();\r\n\t\t\t\tint new_x1 = x1 + offset;\r\n\t\t\t\tint new_y1 = y1 + offset;\r\n\t\t\t\tint new_x2 = x2 + offset;\r\n\t\t\t\tint new_y2 = y2 + offset;\r\n\t\t\t\t//quite impossible cases but just in case\r\n\t\t\t\tif (new_x1 > this.curr.getDimention()[0] - 1 || new_y1 > this.curr.getDimention()[1] - 1 || new_x2 < 0 || new_y2 < 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new IllegalArgumentException(\"Image is too small!\");\r\n\t\t\t\t}\r\n\t\t\t\tif(new_x1 < 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tnew_x1 = 0;\r\n\t\t\t\t\tint new_offset = new_x1 - x1;\r\n\t\t\t\t\tnew_x2 = x2 + new_offset;\r\n\t\t\t\t\tnew_y1 = y1 + new_offset;\r\n\t\t\t\t\tnew_y2 = y2 + new_offset;\r\n\t\t\t\t}\r\n\t\t\t\tif(new_y1 < 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tnew_y1 = 0;\r\n\t\t\t\t\tint new_offset = new_y1 - y1;\r\n\t\t\t\t\tnew_y2 = y2 + new_offset;\r\n\t\t\t\t\tnew_x1 = x1 + new_offset;\r\n\t\t\t\t\tnew_x2 = x2 + new_offset;\r\n\t\t\t\t}\r\n\t\t\t\tif (new_x2 > this.curr.getDimention()[0] - 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tnew_x2 = this.curr.getDimention()[0] - 1;\r\n\t\t\t\t\tint new_offset = new_x2 - x2;\r\n\t\t\t\t\tnew_x1 = x1 + new_offset;\r\n\t\t\t\t\tnew_y2 = y2 + new_offset;\r\n\t\t\t\t\tnew_y1 = y1 + new_offset;\r\n\t\t\t\t}\r\n\t\t\t\tif(new_y2 > this.curr.getDimention()[1] - 1)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tnew_y2 = this.curr.getDimention()[1] - 1;\r\n\t\t\t\t\tint new_offset = Math.abs(new_y2 - y2);\r\n\t\t\t\t\tnew_y1 = y1 + new_offset;\r\n\t\t\t\t\tnew_x1 = x1 + new_offset;\r\n\t\t\t\t\tnew_x2 = x2 + new_offset;\r\n\t\t\t\t}\t\r\n\t\t\t\tRectangle new_rec = new Rectangle(new_x1, new_y1, new_x2, new_y2);\r\n\t\t\t\tnew_rec.setStrokeColor(rec.getStrokeColor());\r\n\t\t\t\tProcessImage curr = this.curr.getRectangleImage(new_rec);\r\n\t\t\t\tdouble correlation = curr.getCorrelationYBetweenImages(prev);\r\n\t\t\t\tif(correlation > highestCorrelation)\r\n\t\t\t\t{\r\n\t\t\t\t\thighestCorrelation = correlation;\r\n\t\t\t\t\tbestFit = curr;\r\n\t\t\t\t\tbestFitRec = new_rec;\r\n\t\t\t\t\tbestFitRec.setName(rec.getName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint[][][] prev_yuv = prev.readImageToYUV();\r\n\t\t\tint[][][] best_yuv = bestFit.readImageToYUV();\r\n\t\t\tUVColorHistogram prev_h = new UVColorHistogram();\r\n\t\t\tUVColorHistogram curr_h = new UVColorHistogram();\r\n\t\t\tfor(int i = 0; i < prev_yuv.length; i++)\r\n\t\t\t{\r\n\t\t\t\tfor(int j = 0; j < prev_yuv[i].length; j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tInteger[] curr_uv = {prev_yuv[i][j][1], prev_yuv[i][j][2]};\r\n\t\t\t\t\tInteger[] prev_uv = {best_yuv[i][j][1], best_yuv[i][j][2]};\r\n\t\t\t\t\tprev_h.put(prev_uv);\r\n\t\t\t\t\tcurr_h.put(curr_uv);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdouble correlation = prev_h.getCorrelation(curr_h);\r\n\t\t\tif(correlation > 0.70 && verifyROIOnTrack(this.memory, this.curr, bestFitRec))\r\n\t\t\t{\r\n\t\t\t\tthis.curr.strokeRectOnImage(bestFitRec);\r\n\t\t\t\treturnedRectangle.add(bestFitRec);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.curr.setTemplateRegions(returnedRectangle);\r\n\t}", "title": "" }, { "docid": "ef4f007a833064eed602358310729623", "score": "0.5326293", "text": "public final double estimateCorrelation(int numReps){\n\t\treturn (estimateCorrelation(numReps, mySampleSize));\n\t}", "title": "" }, { "docid": "6fa2adc3079ed0043f6396d5005a526e", "score": "0.5319523", "text": "public List<Rectangle> findBestFitInPrevOnCurr_Correlation() throws IOException\r\n\t{\r\n\t\tList<Rectangle> prevRegions = this.prev.getTemplateRegionsList();\r\n\t\tList<Rectangle> returnedRectangle = new ArrayList<Rectangle>();\r\n\t\tRandom rand = new Random();\r\n\t\tfor(Rectangle rec : prevRegions)\r\n\t\t{\r\n\t\t\tProcessImage bestFit = null;\r\n\t\t\tRectangle bestFitRec = rec;\r\n\t\t\tProcessImage prev = this.prev.getRectangleImage(rec);\r\n\t\t\tdouble highestCorrelation = Double.NEGATIVE_INFINITY;\r\n\t\t\tint numTrials = rand.nextInt(11) + 10;\r\n\t\t\tfor(int i = 0; i < numTrials; i++)\r\n\t\t\t{\r\n\t\t\t\tint offset = rand.nextInt(21) - 10;\r\n\t\t\t\tint x1 = rec.getUpperLeftX();\r\n\t\t\t\tint y1 = rec.getUpperLeftY();\r\n\t\t\t\tint x2 = rec.getLowerRightX();\r\n\t\t\t\tint y2 = rec.getLowerRightY();\r\n\t\t\t\tint new_x1 = x1 + offset;\r\n\t\t\t\tint new_y1 = y1 + offset;\r\n\t\t\t\tint new_x2 = x2 + offset;\r\n\t\t\t\tint new_y2 = y2 + offset;\r\n\t\t\t\t//quite impossible cases but just in case\r\n\t\t\t\tif (new_x1 > this.curr.getDimention()[0] - 1 || new_y1 > this.curr.getDimention()[1] - 1 || new_x2 < 0 || new_y2 < 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new IllegalArgumentException(\"Image is too small!\");\r\n\t\t\t\t}\r\n\t\t\t\tif(new_x1 < 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tnew_x1 = 0;\r\n\t\t\t\t\tint new_offset = new_x1 - x1;\r\n\t\t\t\t\tnew_x2 = x2 + new_offset;\r\n\t\t\t\t\tnew_y1 = y1 + new_offset;\r\n\t\t\t\t\tnew_y2 = y2 + new_offset;\r\n\t\t\t\t}\r\n\t\t\t\tif(new_y1 < 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tnew_y1 = 0;\r\n\t\t\t\t\tint new_offset = new_y1 - y1;\r\n\t\t\t\t\tnew_y2 = y2 + new_offset;\r\n\t\t\t\t\tnew_x1 = x1 + new_offset;\r\n\t\t\t\t\tnew_x2 = x2 + new_offset;\r\n\t\t\t\t}\r\n\t\t\t\tif (new_x2 > this.curr.getDimention()[0] - 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tnew_x2 = this.curr.getDimention()[0] - 1;\r\n\t\t\t\t\tint new_offset = new_x2 - x2;\r\n\t\t\t\t\tnew_x1 = x1 + new_offset;\r\n\t\t\t\t\tnew_y2 = y2 + new_offset;\r\n\t\t\t\t\tnew_y1 = y1 + new_offset;\r\n\t\t\t\t}\r\n\t\t\t\tif(new_y2 > this.curr.getDimention()[1] - 1)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tnew_y2 = this.curr.getDimention()[1] - 1;\r\n\t\t\t\t\tint new_offset = Math.abs(new_y2 - y2);\r\n\t\t\t\t\tnew_y1 = y1 + new_offset;\r\n\t\t\t\t\tnew_x1 = x1 + new_offset;\r\n\t\t\t\t\tnew_x2 = x2 + new_offset;\r\n\t\t\t\t}\t\r\n\t\t\t\tRectangle new_rec = new Rectangle(new_x1, new_y1, new_x2, new_y2);\r\n\t\t\t\tProcessImage curr = this.curr.getRectangleImage(new_rec);\r\n\t\t\t\tdouble correlation = curr.getCorrelationYBetweenImages(prev);\r\n\t\t\t\tif(correlation > highestCorrelation)\r\n\t\t\t\t{\r\n\t\t\t\t\thighestCorrelation = correlation;\r\n\t\t\t\t\tbestFit = curr;\r\n\t\t\t\t\tbestFitRec = new_rec;\r\n\t\t\t\t\tbestFitRec.setName(rec.getName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint[][][] prev_yuv = prev.readImageToYUV();\r\n\t\t\tint[][][] best_yuv = bestFit.readImageToYUV();\r\n\t\t\tUVColorHistogram prev_h = new UVColorHistogram();\r\n\t\t\tUVColorHistogram curr_h = new UVColorHistogram();\r\n\t\t\tfor(int i = 0; i < prev_yuv.length; i++)\r\n\t\t\t{\r\n\t\t\t\tfor(int j = 0; j < prev_yuv[i].length; j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tInteger[] curr_uv = {prev_yuv[i][j][1], prev_yuv[i][j][2]};\r\n\t\t\t\t\tInteger[] prev_uv = {best_yuv[i][j][1], best_yuv[i][j][2]};\r\n\t\t\t\t\tprev_h.put(prev_uv);\r\n\t\t\t\t\tcurr_h.put(curr_uv);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdouble correlation = prev_h.getCorrelation(curr_h);\r\n\t\t\tif(correlation > 0.70 && verifyROIOnTrack(this.memory, this.curr, bestFitRec))\r\n\t\t\t{\r\n\t\t\t\treturnedRectangle.add(bestFitRec);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn returnedRectangle;\r\n\t}", "title": "" }, { "docid": "30d94d67284757a2c9c69a10df4b93d0", "score": "0.51804376", "text": "Correlation createCorrelation();", "title": "" }, { "docid": "c6ba836c851d60f8897c759e1a580f4f", "score": "0.5170583", "text": "private void corrige()\n\t{\n\t\tabscicePlusPetit = largeur < hauteur * ratio;\n\t\tif(abscicePlusPetit){\n\t\t\tlongX = largeur / 100.0;\n\t\t\tlongY = longX / ratio;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlongY = hauteur / 100.0;\n\t\t\tlongX = longY * ratio;\n\t\t}\n\t}", "title": "" }, { "docid": "f5ac34c3e8b6eb06173433c94d4e0d0d", "score": "0.51260036", "text": "@Test\n\tvoid testSafeValueCorrHigherThreshold() {\n\t\t//correlation>Threshold\n\t\tstubResult_TakeData20 = new double[20];\n\t\tArrays.fill(stubResult_TakeData20, 2);\n\t\tstubResult_TakeData19 = new double[20];\n\t\tArrays.fill(stubResult_TakeData19, 1);\n\t\tstubResult_correlation = statistic_block.Threshold +0.1;\n\t\tdouble expected = 2 - \n\t\t\t\t( statistic_block.std(stubResult_TakeData19)\n\t\t\t\t\t\t+statistic_block.std(stubResult_TakeData20) )/2;\n\t\tdouble actual = underTest.safeValue(\"1\", year);\n\t\tassertEquals(expected, actual);\n\t}", "title": "" }, { "docid": "644e8f083777211adee7f62d6411a5a2", "score": "0.50455076", "text": "@Override\n\t\tpublic double correlation(double[] d1, double[] d2) {\n\t\t\treturn stubResult_correlation;\n\t\t}", "title": "" }, { "docid": "b4eec25c5be59e69d3b385abda50607c", "score": "0.50306714", "text": "public final double estimateCorrelation(int numReps, int sampleSize){\n\t\tif (numReps < 1)\n\t\t\tthrow new IllegalArgumentException(\"The number of replications must be >=1\");\n\t\tif (sampleSize < 3)\n\t\t\tthrow new IllegalArgumentException(\"The generate size must be > 2\");\n\n\t\tmyLag1Stat.reset();\n\t\t\n\t\tif (myAntitheticFlag){\n\t\t\tdouble xodd = 0.0;\n\t\t\tint n = numReps*2;\n\t\t\tfor(int i=1;i<=n;i++){\n\t\t\t\tdouble erho = sampleCorrelation(sampleSize);\t\t\t\t\n\t\t\t\tif ( (i%2) == 0){\n\t\t\t\t\tdouble x = (xodd + erho)/2.0;\n\t\t\t\t\tmyLag1Stat.collect(x);\n\t\t\t\t\tmyCorrelatedRng.setAntitheticOption(false);\n\t\t\t\t} else {\n\t\t\t\t\txodd = erho;\n\t\t\t\t\tmyCorrelatedRng.setAntitheticOption(true);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmyCorrelatedRng.setAntitheticOption(false);\n\t\t} else {\n\t\t\tfor(int i=1;i<=numReps;i++){\n\t\t\t\tmyLag1Stat.collect(sampleCorrelation(sampleSize));\n\t\t\t\t//System.out.println(\"hw = \" + myLag1Stat.getHalfWidth() + \" i = \" + i);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn(myLag1Stat.getAverage());\n\t}", "title": "" }, { "docid": "280f3ff1658869b0f93e8a90a7c7e383", "score": "0.5030454", "text": "private void CalContrib() {\n\t\tnHalfDots = (int) ((double) width * support / (double) scaleWidth);\n\t\tnDots = nHalfDots * 2 + 1;\n\t\ttry {\n\t\t\tcontrib = new double[nDots];\n\t\t\tnormContrib = new double[nDots];\n\t\t\ttmpContrib = new double[nDots];\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"init contrib,normContrib,tmpContrib \" + e);\n\t\t}\n\n\t\tint center = nHalfDots;\n\t\tcontrib[center] = 1.0;\n\n\t\tdouble weight = 0.0;\n\t\tint i = 0;\n\t\tfor (i = 1; i <= center; i++) {\n\t\t\tcontrib[center + i] = Lanczos(i, width, scaleWidth, support);\n\t\t\tweight += contrib[center + i];\n\t\t}\n\n\t\tfor (i = center - 1; i >= 0; i--) {\n\t\t\tcontrib[i] = contrib[center * 2 - i];\n\t\t}\n\n\t\tweight = weight * 2 + 1.0;\n\n\t\tfor (i = 0; i <= center; i++) {\n\t\t\tnormContrib[i] = contrib[i] / weight;\n\t\t}\n\n\t\tfor (i = center + 1; i < nDots; i++) {\n\t\t\tnormContrib[i] = normContrib[center * 2 - i];\n\t\t}\n\t}", "title": "" }, { "docid": "dd2b1a5f9189700a69223dff754634b0", "score": "0.4998028", "text": "public double getYYcorrCoeff(){\n return this.yyR;\n }", "title": "" }, { "docid": "156f9e1dc273e126a8485b272c93bc11", "score": "0.49252012", "text": "public double correlationCoeff() {\n\t\tlong n = getObservations(); // get the number of observations so far\n\n\t\tif (n <= 5) // not enough data yet\n\t\t{\n\t\t\tsendWarning(\n\t\t\t\t\t\"Attempt to get the correlation coefficient, but there \"\n\t\t\t\t\t\t\t+ \"is insufficient data yet to calculate it. UNDEFINED (-1.0) \"\n\t\t\t\t\t\t\t+ \"will be returned!\", \"Regression: \"\n\t\t\t\t\t\t\t+ this.getName() + \" Method: double \"\n\t\t\t\t\t\t\t+ \"correlationCoeff().\",\n\t\t\t\t\t\"The correlation coefficient can not be calculated, because there \"\n\t\t\t\t\t\t\t+ \"is insufficient data collected so far.\",\n\t\t\t\t\t\"Make sure to ask for the correlation coefficient only after \"\n\t\t\t\t\t\t\t+ \"enough data has been collected.\");\n\n\t\t\treturn UNDEFINED; // return UNDEFINED = -1.0\n\t\t}\n\n\t\tdouble dx = Math.abs(n * _sumSquareX - _sumX * _sumX);\n\t\tdouble dy = Math.abs(n * _sumSquareY - _sumY * _sumY);\n\n\t\tif (dx < C_EPSILON || dy < C_EPSILON) // not changed considerably\n\t\t{\n\t\t\tsendWarning(\n\t\t\t\t\t\"The x or y values have not changed considerably. The \"\n\t\t\t\t\t\t\t+ \"data seems to be degenerated. UNDEFINED (-1.0) will be returned!\",\n\t\t\t\t\t\"Regression: \" + this.getName() + \" Method: double \"\n\t\t\t\t\t\t\t+ \"correlationCoeff().\",\n\t\t\t\t\t\"The x or y values have not changed considerably. Some failure \"\n\t\t\t\t\t\t\t+ \"might have occured.\",\n\t\t\t\t\t\"One or both values are almost constant. It seems that nothing \"\n\t\t\t\t\t\t\t+ \"really happens. Check that!\");\n\n\t\t\treturn UNDEFINED; // return UNDEFINED = -1.0\n\t\t}\n\n\t\tdouble squareDiff = (n * _sumXtimesY - _sumX * _sumY);\n\n\t\t// calculate the rounded result\n\t\tdouble rndResult = round(squareDiff * squareDiff / (dx * dy));\n\t\treturn rndResult;\n\t}", "title": "" }, { "docid": "f4407d6a1e4cb1e3c6918ccd3e80ef6d", "score": "0.48629722", "text": "public final double getCorrelation() {\n\t\treturn myCorrelatedRng.getLag1Correlation();\n\t}", "title": "" }, { "docid": "1f6dc03a10222587a8092a2fccd8cef6", "score": "0.4847257", "text": "public void drawBestFitInPrevOnCurr_Similarity()\r\n\t{\r\n\t\tList<Rectangle> prevRegions = this.prev.getTemplateRegionsList();\r\n\t\tList<Rectangle> returnedRectangle = new ArrayList<Rectangle>();\r\n\t\tRandom rand = new Random();\r\n\t\tfor(Rectangle rec : prevRegions)\r\n\t\t{\r\n\t\t\tProcessImage bestFit = null;\r\n\t\t\tRectangle bestFitRec = rec;\r\n\t\t\tProcessImage prev = this.prev.getRectangleImage(rec);\r\n\t\t\tdouble highestSimilarity = Double.POSITIVE_INFINITY;\r\n\t\t\t//System.out.println(\"original: x1\" + rec.getUpperLeftX() + \" y1: \" + rec.getUpperLeftY() + \" x2: \" + rec.getLowerRightX() + \" y2: \" + rec.getLowerRightY());\r\n\t\t\tint numTrials = rand.nextInt(10) + 10;\r\n\t\t\tfor(int i = 0; i < numTrials; i++)\r\n\t\t\t{\r\n\t\t\t\tint offset = rand.nextInt(11) - 5;\r\n\t\t\t\tint x1 = rec.getUpperLeftX();\r\n\t\t\t\tint y1 = rec.getUpperLeftY();\r\n\t\t\t\tint x2 = rec.getLowerRightX();\r\n\t\t\t\tint y2 = rec.getLowerRightY();\r\n\r\n\t\t\t\tint new_x1 = x1 + offset;\r\n\t\t\t\tint new_y1 = y1 + offset;\r\n\t\t\t\tint new_x2 = x2 + offset;\r\n\t\t\t\tint new_y2 = y2 + offset;\r\n\t\t\t\t//quite impossible cases but just in case\r\n\t\t\t\tif (new_x1 > this.curr.getDimention()[0] - 1 || new_y1 > this.curr.getDimention()[1] - 1 || new_x2 < 0 || new_y2 < 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new IllegalArgumentException(\"Image is too small!\");\r\n\t\t\t\t}\r\n\t\t\t\tif(new_x1 < 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tnew_x1 = 0;\r\n\t\t\t\t\tint new_offset = new_x1 - x1;\r\n\t\t\t\t\tnew_x2 = x2 + new_offset;\r\n\t\t\t\t\tnew_y1 = y1 + new_offset;\r\n\t\t\t\t\tnew_y2 = y2 + new_offset;\r\n\t\t\t\t}\r\n\t\t\t\tif(new_y1 < 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tnew_y1 = 0;\r\n\t\t\t\t\tint new_offset = new_y1 - y1;\r\n\t\t\t\t\tnew_y2 = y2 + new_offset;\r\n\t\t\t\t\tnew_x1 = x1 + new_offset;\r\n\t\t\t\t\tnew_x2 = x2 + new_offset;\r\n\t\t\t\t}\r\n\t\t\t\tif (new_x2 > this.curr.getDimention()[0] - 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tnew_x2 = this.curr.getDimention()[0] - 1;\r\n\t\t\t\t\tint new_offset = new_x2 - x2;\r\n\t\t\t\t\tnew_x1 = x1 + new_offset;\r\n\t\t\t\t\tnew_y2 = y2 + new_offset;\r\n\t\t\t\t\tnew_y1 = y1 + new_offset;\r\n\t\t\t\t}\r\n\t\t\t\tif(new_y2 > this.curr.getDimention()[1] - 1)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tnew_y2 = this.curr.getDimention()[1] - 1;\r\n\t\t\t\t\tint new_offset = Math.abs(new_y2 - y2);\r\n\t\t\t\t\tnew_y1 = y1 + new_offset;\r\n\t\t\t\t\tnew_x1 = x1 + new_offset;\r\n\t\t\t\t\tnew_x2 = x2 + new_offset;\r\n\t\t\t\t}\t\r\n\t\t\t\t//System.out.println(\"x1: \" + new_x1 + \" y1: \" + new_y1 + \" x2: \" + new_x2 + \" y2: \" + new_y2);\r\n\t\t\t\tRectangle new_rec = new Rectangle(new_x1, new_y1, new_x2, new_y2);\r\n\t\t\t\tnew_rec.setStrokeColor(rec.getStrokeColor());\r\n\t\t\t\tProcessImage curr = this.curr.getRectangleImage(new_rec);\r\n\t\t\t\tdouble similarity = curr.getSimilarityBetweenImage(prev);\r\n\t\t\t\tif(similarity < highestSimilarity)\r\n\t\t\t\t{\r\n\t\t\t\t\t//System.out.println(\"Best correlation: \" + correlation + \" \");\r\n\t\t\t\t\t//System.out.println(\"Best rectangle\" + new_rec);\r\n\t\t\t\t\thighestSimilarity = similarity;\r\n\t\t\t\t\tbestFit = curr;\r\n\t\t\t\t\tbestFitRec = new_rec;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint[][][] prev_yuv = prev.readImageToYUV();\r\n\t\t\tint[][][] best_yuv = bestFit.readImageToYUV();\r\n\t\t\tUVColorHistogram prev_h = new UVColorHistogram();\r\n\t\t\tUVColorHistogram curr_h = new UVColorHistogram();\r\n\t\t\tfor(int i = 0; i < prev_yuv.length; i++)\r\n\t\t\t{\r\n\t\t\t\tfor(int j = 0; j < prev_yuv[i].length; j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tInteger[] curr_uv = {prev_yuv[i][j][1], prev_yuv[i][j][2]};\r\n\t\t\t\t\tInteger[] prev_uv = {best_yuv[i][j][1], best_yuv[i][j][2]};\r\n\t\t\t\t\tprev_h.put(prev_uv);\r\n\t\t\t\t\tcurr_h.put(curr_uv);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdouble similarity = prev_h.getSimilarity(curr_h);\r\n\t\t\tif(similarity < 0.1)\r\n\t\t\t{\r\n\t\t\t\tthis.curr.strokeRectOnImage(bestFitRec);\r\n\t\t\t\treturnedRectangle.add(bestFitRec);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.curr.setTemplateRegions(returnedRectangle);\r\n\t}", "title": "" }, { "docid": "15c0af7747692084041f90770955a6d5", "score": "0.4835325", "text": "NFP_Real getRep();", "title": "" }, { "docid": "df7796073663a48db39380edb85b4c98", "score": "0.4765919", "text": "@Test\n public void FindsMagnetCenter() {\n calibration_ = new HallCalibration(0);\n for (int i = 0; i < 200; i++) {\n updateTest(i);\n }\n updateTest(200);\n Assert.assertTrue(isCalibrated());\n Assert.assertEquals(ValueAt(150), 0, 1);\n }", "title": "" }, { "docid": "1f436af8a746e63657b5b55aab76f203", "score": "0.47343802", "text": "public static void main(String[] args){\n\t\t FixedEncoder encoder = new FixedEncoder();\n\t\tList<Double> testTone = encoder.encode(\"o\");\n\t\tCropper cropper = new Cropper(\"TestCorr.cropper\");\n\t\tint startx = cropper.findStart(testTone,\n\t\t\t\tConstants.SILENCE_THRESHOLD);\n\t\tint endx = cropper.findEnd(testTone,\n\t\t\t\tConstants.SILENCE_THRESHOLD);\n\t\ttestTone = testTone.subList(startx, endx);\n\t\t\n\t\tList<Double> result = correlate(testTone,testTone);\n\t\t\n\t\tPlotter.plot(result, \"Autocorrelation\");\n\t\t\n//\tgood\t[1571.923828125, 290.6982421875]\n//\t\tbad\t\t[293.66, 261.63]\n\t\t///////////////////////////////////////////////////\n\t\t\n\t}", "title": "" }, { "docid": "e9acd1fc7a1770949071c761a8f0802e", "score": "0.4716563", "text": "void setCorrel( int i, int j, double correl, int numused ) {\n\n if ( this.crossHybridizes( i, j ) ) {\n crossHybridizationRejections++;\n return;\n }\n\n if ( Double.isNaN( correl ) )\n return;\n\n if ( correl < -1.00001 || correl > 1.00001 ) {\n throw new IllegalArgumentException( \"Correlation out of valid range: \" + correl );\n }\n\n if ( correl < -1.0 ) {\n correl = -1.0;\n } else if ( correl > 1.0 ) {\n correl = 1.0;\n }\n\n double acorrel = Math.abs( correl );\n\n // it is possible, due to roundoff, to overflow the bins.\n int lastBinIndex = fastHistogram.length - 1;\n if ( !histogramIsFilled ) {\n\n if ( useAbsoluteValue ) {\n int bin = Math\n .min( ( int ) ( ( 1.0 + acorrel ) * AbstractMatrixRowPairAnalysis.HALF_BIN ), lastBinIndex );\n fastHistogram[bin]++;\n globalTotal += acorrel;\n // histogram.fill( acorrel ); // this is suprisingly slow due to zillions of calls to Math.floor.\n } else {\n globalTotal += correl;\n int bin = Math\n .min( ( int ) ( ( 1.0 + correl ) * AbstractMatrixRowPairAnalysis.HALF_BIN ), lastBinIndex );\n fastHistogram[bin]++;\n // histogram.fill( correl );\n }\n numVals++;\n }\n\n if ( acorrel > storageThresholdValue && results != null ) {\n results.set( i, j, correl );\n }\n\n this.keepCorrellation( i, j, correl, numused );\n\n }", "title": "" }, { "docid": "74af87cca90192aabd453e326a68c65a", "score": "0.4699894", "text": "@Override\n\t\t\t\tpublic short[] call() {\n\t\t\t\t\tshort[] data = new short[(ymax - ymin + 1) * width];\n\t\t\t\t\tint offset = 0; \n\t\t\t\t\tfor(int y = ymin; y <= ymax; y++) {\n\t\t\t\t\t\tfor(int x = 0; x < width; x++) { \n\t\t\t\t\t\t\tComplex c = new Complex(x/(width-1.0)*(reMax-reMin) + reMin, \n\t\t\t\t\t\t\t\t\t((height-1)-y)/(height-1.0)*(imMax-imMin) + imMin);\n\t\t\t\t\t\t\tComplex zn = c;\n\t\t\t\t\t\t\tint iters = 0;\n\t\t\t\t\t\t\tdouble module;\n\t\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\t\tComplex numerator = p.apply(zn);\n\t\t\t\t\t\t\t\tComplex denominator = p.toComplexPolynom().derive().apply(zn);\n\t\t\t\t\t\t\t\tComplex fraction = numerator.divide(denominator);\n\t\t\t\t\t\t\t\tComplex zn1 = zn.sub(fraction);\n\t\t\t\t\t\t\t\tmodule = zn1.sub(zn).module();\n\t\t\t\t\t\t\t\tzn = zn1;\n\t\t\t\t\t\t\t} while(iters < N_OF_ITERATIONS && \n\t\t\t\t\t\t\t\t\t module > CONVERGENCE_TRESHOLD);\n\t\t\t\t\t\t\tint index = p.indexOfClosestRootFor(zn, ROOT_TRESHOLD);\n\t\t\t\t\t\t\tif(index == -1) {\n\t\t\t\t\t\t\t\tdata[offset++] = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tdata[offset++] = (short)index;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn data;\n\t\t\t\t}", "title": "" }, { "docid": "8d8421cc276495a827ac51e01fdbaf25", "score": "0.46613294", "text": "public static double autoCorrelation(double[] a, double[] b) {\n double root;\n if (a == b) {\n // sqrt(a*a) = a\n root = var(a);\n } else {\n root = Math.sqrt(var(a) * var(b));\n }\n return covariance(a, b) / root;\n }", "title": "" }, { "docid": "a2fe7685897458cfccd0a0cb15738b64", "score": "0.46612954", "text": "public double getPartialRecall();", "title": "" }, { "docid": "2270a6c78c818f4605846952b87a2b48", "score": "0.4654207", "text": "public float getRccap() {\n return rccap;\n }", "title": "" }, { "docid": "89c424eab669ef16d2dc0dd983fe615a", "score": "0.46152127", "text": "public void CornerTesting() {\n\t\tSystem.out.println(\"Testing Cnr_... Method for Concept\");\n//\t\tSystem.out.println(greenBookcase.Cnr_lfb());\n\t\tSystem.out.println(brownBookcase.Cnr_lnb()[1]);\n\t\tSystem.out.println(brownBookcase.Cnr_rnb()[0]);\n\t\tSystem.out.println(brownBookcase.Cnr_rnb()[1]);\n\t\t/*\n\t\tsize_wdh = 0.819:0.441:1.499\n\t\tlocation_xyz = 5.121:5.013:0\n\t\tangle = 1.571\n\t\t*/\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "d3083d8b478fde852885c00633ae22b8", "score": "0.4604724", "text": "public static double autoCorrelation(double[] a, int a1, double[] b,\n int b1, int w) {\n // log.info(\"Array lengths: \" + a.length + \", \" + b.length +\n // \"; indeces: \" + a1 + \",\" + b1 + \"; window: \" + w);\n if (a1 + w > a.length || b1 + w > b.length) {\n throw new IndexOutOfBoundsException(\"Window too large. Array lengths: \"\n + a.length\n + \", \"\n + b.length\n + \"; indeces: \"\n + a1\n + \",\"\n + b1 + \"; window: \" + w);\n }\n return covariance(a, a1, b, b1, w)\n / Math.sqrt(var(a, a1, a1 + w - 1) * var(b, b1, b1 + w - 1));\n }", "title": "" }, { "docid": "2837bf6a398e5c00d373ef090121d575", "score": "0.45946416", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Discretize discretize0 = new Discretize(\"O2;tfJ\");\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n \n discretize0.setDesiredWeightOfInstancesPerInterval(0.0);\n assertEquals(0.0, discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "477417c1069d4e4b767996d6aeb2c01a", "score": "0.45610726", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n IBk iBk0 = new IBk(1);\n Capabilities capabilities0 = iBk0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"@relation\", linkedList0, protectedProperties1);\n capabilities0.test(attribute0);\n testInstances0.setNumClasses(1177);\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4);\n SparseInstance sparseInstance0 = new SparseInstance((SparseInstance) binarySparseInstance0);\n double[] doubleArray0 = new double[8];\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) 11;\n doubleArray0[2] = (double) 1;\n try { \n evaluation0.correlationCoefficient();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute correlation coefficient: class is nominal!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "27f70ad67191ddb46fdb129faa291f66", "score": "0.45198318", "text": "@Test\n public void ReverseFromInside() {\n calibration_ = new HallCalibration(0);\n for (int i = 150; i > 0; i--) {\n updateTest(i);\n Assert.assertFalse(isCalibrated());\n }\n for (int i = 0; i < 200; i++) {\n updateTest(i);\n Assert.assertFalse(isCalibrated());\n }\n updateTest(200);\n Assert.assertTrue(isCalibrated());\n }", "title": "" }, { "docid": "bf1cae5bd599f2abb8638bd333cfaaa8", "score": "0.45127314", "text": "@Test\n public void UsesMagnetPosition() {\n calibration_ = new HallCalibration(1000);\n for (int i = 0; i < 200; i++) {\n updateTest(i);\n }\n updateTest(200);\n Assert.assertTrue(isCalibrated());\n Assert.assertEquals(ValueAt(150), 1000, 1);\n }", "title": "" }, { "docid": "ddd6b7c9e8e83bb3ac0a12e71d133b3a", "score": "0.4503167", "text": "public double[] ratfunc(double[] r){//possibility calculation\n double sumrat=0;\n for (int i = 0 ; i<r.length; i++){ //calculate distance from points to points\n r[i] = FuncCalc(answer_list[i]); // every total distance from target points to other 10 points\n sumrat += r[i];\n }\n double sumrat2 = 0;\n\n for (int i = 0 ; i<r.length; i++){\n r[i] = 1.0/(rat[i]/sumrat); //ratio1\n sumrat2 += rat[i];\n }\n for (int i = 0; i<r.length; i++)\n r[i] = r[i]/sumrat2; //ratio2\n return r;\n }", "title": "" }, { "docid": "c3d5470a3479d82af1d4124f6ec0c50b", "score": "0.4502748", "text": "static double[] vc(double[] xyz_w, double L_A, double Y_b, double[] surrounding) {\n/* 548 */ double[] vc = new double[17];\n/* 549 */ vc[0] = xyz_w[0];\n/* 550 */ vc[1] = xyz_w[1];\n/* 551 */ vc[2] = xyz_w[2];\n/* 552 */ vc[3] = L_A;\n/* 553 */ vc[4] = Y_b;\n/* 554 */ vc[5] = surrounding[0];\n/* 555 */ vc[6] = surrounding[1];\n/* 556 */ vc[7] = surrounding[2];\n/* */ \n/* 558 */ double[] RGB_w = forwardPreAdaptationConeResponse(xyz_w);\n/* 559 */ double D = Math.max(0.0D, Math.min(1.0D, vc[5] * (1.0D - 0.2777777777777778D * Math.pow(Math.E, (-L_A - 42.0D) / 92.0D))));\n/* 560 */ double Yw = xyz_w[1];\n/* 561 */ double[] RGB_c = { D * Yw / RGB_w[0] + 1.0D - D, D * Yw / RGB_w[1] + 1.0D - D, D * Yw / RGB_w[2] + 1.0D - D };\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 568 */ double L_Ax5 = 5.0D * L_A;\n/* 569 */ double k = 1.0D / (L_Ax5 + 1.0D);\n/* 570 */ double kpow4 = Math.pow(k, 4.0D);\n/* 571 */ vc[13] = 0.2D * kpow4 * L_Ax5 + 0.1D * Math.pow(1.0D - kpow4, 2.0D) * Math.pow(L_Ax5, 0.3333333333333333D);\n/* */ \n/* */ \n/* 574 */ vc[9] = Y_b / Yw;\n/* 575 */ vc[8] = 1.48D + Math.sqrt(vc[9]);\n/* */ \n/* 577 */ vc[10] = 0.725D * Math.pow(1.0D / vc[9], 0.2D);\n/* 578 */ vc[11] = vc[10];\n/* */ \n/* */ \n/* 581 */ double[] RGB_wc = { RGB_c[0] * RGB_w[0], RGB_c[1] * RGB_w[1], RGB_c[2] * RGB_w[2] };\n/* 582 */ double[] RGBPrime_w = CAT02toHPE(RGB_wc);\n/* 583 */ double[] RGBPrime_aw = new double[3];\n/* 584 */ for (int channel = 0; channel < RGBPrime_w.length; channel++) {\n/* 585 */ if (RGBPrime_w[channel] >= 0.0D) {\n/* 586 */ double n = Math.pow(vc[13] * RGBPrime_w[channel] / 100.0D, 0.42D);\n/* 587 */ RGBPrime_aw[channel] = 400.0D * n / (n + 27.13D) + 0.1D;\n/* */ } else {\n/* 589 */ double n = Math.pow(-1.0D * vc[13] * RGBPrime_w[channel] / 100.0D, 0.42D);\n/* 590 */ RGBPrime_aw[channel] = -400.0D * n / (n + 27.13D) + 0.1D;\n/* */ } \n/* */ } \n/* 593 */ vc[12] = (2.0D * RGBPrime_aw[0] + RGBPrime_aw[1] + RGBPrime_aw[2] / 20.0D - 0.305D) * vc[10];\n/* 594 */ vc[14] = RGB_c[0];\n/* 595 */ vc[15] = RGB_c[1];\n/* 596 */ vc[16] = RGB_c[2];\n/* 597 */ return vc;\n/* */ }", "title": "" }, { "docid": "4f8554a1228701270b60526ebac8f10a", "score": "0.44934785", "text": "@Override\n\tpublic int rateOfInter() {\n\t\treturn 11;\n\t}", "title": "" }, { "docid": "bddd5918b61a0997c87fe703d7ce37dd", "score": "0.44746616", "text": "public void cRI() {\n AppMethodBeat.m2504i(47502);\n mo39970a(new C35475y(cNH(), 21), true, true);\n AppMethodBeat.m2505o(47502);\n }", "title": "" }, { "docid": "d1da654797d7574bb5640151cb648658", "score": "0.44709846", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setDesiredWeightOfInstancesPerInterval(617);\n assertEquals(617.0, discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "828c8e1593a2224b72b00c7bba99f948", "score": "0.44680685", "text": "public static int monotonize(List<Float> allD, List<Float> allR, List<Float> corrR, int Direction)\n\t{\n\t\tcorrR.clear();\n\t\tcorrR.addAll(allR);\n\n\t\tList<Float> sdr = calc_WgtSdResponses(allD, allR);\n\t\tList<Float> avr = calc_WgtAvResponses(allD, allR);\n\t\tList<Float> unqD = CollapseDoses(allD);\n\n\t\t// -- luD will be needed for extrapolation\n\t\tList<Float> luD;\n\t\ttry\n\t\t{\n\t\t\tluD = logBaseDoses(unqD, -24);\n\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"problems with calculations\");\n\t\t\treturn 0;\n\t\t}\n\t\t// -----------------\n\n\t\tint n = unqD.size();\n\t\t// mask of corrections\n\t\tbyte[] Baddies = new byte[n];\n\t\tfor (int v = 0; v < Baddies.length; v++)\n\t\t\tBaddies[v] = 0;\n\n\t\tFloat BBA = avr.get(0), BBS = sdr.get(0);\n\t\tFloat BL = BBA - BBS, BU = BBA + BBS;\n\n\t\tif (Direction == 0)\n\t\t{// constant curves\n\t\t\tint ncorr = 0;\n\t\t\tfor (int v = 1; v < n; v++)\n\t\t\t{\n\t\t\t\tFloat vR = avr.get(v);\n\t\t\t\tif ((vR > BU) || (vR < BL))\n\t\t\t\t{\n\t\t\t\t\tncorr++;\n\t\t\t\t\tBaddies[v] = 1;\n\t\t\t\t\tFloat diff = BBA - vR, cd = unqD.get(v);\n\t\t\t\t\tshift_dr_group(allD, corrR, cd, diff);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ncorr;\n\t\t}\n\n\t\t// below are supposed-to-be-monotonic cases\n\n\t\t// get extreme response values\n\t\tFloat mna = BBA, mxa = BBA;\n\t\tfor (int v = 1; v < n; v++)\n\t\t{\n\t\t\tFloat ca = avr.get(v);\n\t\t\tif (ca > mxa)\n\t\t\t\tmxa = ca;\n\t\t\tif (ca < mna)\n\t\t\t\tmna = ca;\n\t\t}\n\n\t\tFloat extr = mxa;\n\t\tif (Direction < 0)\n\t\t\textr = mna;\n\n\t\t// invalidate non-conforming tail, when obvious\n\t\tfor (int u = n - 1; u > 0; u--)\n\t\t{\n\t\t\tFloat cr = avr.get(u), csd = sdr.get(u);\n\t\t\tFloat crl = cr - csd, cru = cr + csd;\n\t\t\tif ((extr < crl) || (extr > cru))\n\t\t\t\tBaddies[u] = 1;\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Detect a minimum set of violators\n\t\tbyte[] TrialBest = Baddies.clone();\n\t\tint tbSize = Baddies.length; // #corrections to do, will be updated\n\t\tint bdSize = 0;\n\t\tfor (int v = 0; v < Baddies.length; v++)\n\t\t\tbdSize += Baddies[v];\n\n\t\t// scan_dr_4mono(avr, sdr, 0); //addl invalidation of glitches, but can be tricky\n\n\t\tfor (int v = 0; v < n; v++)\n\t\t{\n\t\t\tif (Baddies[v] == 1)\n\t\t\t\tcontinue;\n\n\t\t\t// v is the initial seed for the \"trusted\" point\n\t\t\tbyte[] Trial = Baddies.clone();\n\t\t\tint f = v, ci = v;\n\n\t\t\t// first, check forward from v\n\t\t\twhile (++ci < n)\n\t\t\t{\n\t\t\t\tif (Baddies[ci] == 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tFloat ci_a = avr.get(ci), f_a = avr.get(f), ci_s = sdr.get(ci), f_s = sdr.get(f);\n\t\t\t\tif (dr_OOR(f_a, f_s, ci_a, ci_s))\n\t\t\t\t{\n\t\t\t\t\tif (Direction * (ci_a - f_a) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTrial[ci] = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tf = ci;\n\t\t\t}\n\n\t\t\t// then check backward from v\n\t\t\tf = v;\n\t\t\tci = v;\n\t\t\twhile (ci > 1)\n\t\t\t{// avoid changing untreated (control) sample point\n\t\t\t\tci--;\n\t\t\t\tif (Baddies[ci] == 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tFloat ci_a = avr.get(ci), f_a = avr.get(f), ci_s = sdr.get(ci), f_s = sdr.get(f);\n\t\t\t\tif (dr_OOR(f_a, f_s, ci_a, ci_s))\n\t\t\t\t{\n\t\t\t\t\tif (Direction * (f_a - ci_a) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTrial[ci] = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tf = ci;\n\t\t\t}\n\n\t\t\tf = 0;\n\t\t\tfor (int z = 0; z < Trial.length; z++)\n\t\t\t\tf += Trial[z];\n\t\t\tif (tbSize < f)\n\t\t\t\tcontinue;\n\t\t\tif (tbSize > f)\n\t\t\t{\n\t\t\t\tTrialBest = Trial;\n\t\t\t\ttbSize = f;\n\t\t\t}\n\n\t\t\tif (tbSize == bdSize)\n\t\t\t\tbreak; // optimum reached\n\t\t} // v\n\n\t\tBaddies = TrialBest;\n\t\tfor (int ci = 1; ci < n; ci++)\n\t\t{\n\t\t\tif (Baddies[ci] == 0)\n\t\t\t\tcontinue;\n\t\t\tint f = ci, v = ci; // find valid points around ci\n\t\t\twhile (v > 0)\n\t\t\t\tif (Baddies[v] == 1)\n\t\t\t\t\tv--;\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\twhile (f < n)\n\t\t\t\tif (Baddies[f] == 1)\n\t\t\t\t\tf++;\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\n\t\t\tFloat new_ci = avr.get(v);\n\t\t\tif (f < n)\n\t\t\t{// interpolate\n\t\t\t\tnew_ci = luD.get(ci) - luD.get(v);\n\t\t\t\tnew_ci /= luD.get(f) - luD.get(v);\n\t\t\t\tnew_ci *= avr.get(f) - avr.get(v);\n\t\t\t\tnew_ci += avr.get(v);\n\t\t\t}\n\n\t\t\tshift_dr_group(allD, corrR, unqD.get(ci), new_ci - avr.get(ci)); // apply corrections\n\t\t}\n\t\treturn tbSize;\n\t}", "title": "" }, { "docid": "db082ba498fa784abadae5995e643830", "score": "0.4465149", "text": "public void calcInfectionLiklihood(int numTotalInteractions)\n {\n\n double averageInteractionLength = 0;\n double averageRadius = 0;\n int numInteractions = interactions.size();\n\n //Maps to track the mode duration and mode radius\n HashMap<Long, Integer> durationModeMap = new HashMap<Long, Integer>();\n HashMap<Double, Integer> radiusModeMap = new HashMap<Double, Integer>();\n\n long maxDuration = 0;\n double maxRadius = 1.0;\n\n //Run through the interactions once to find the mode and max values\n //of the duration and radius. The radius is being truncated to a\n //long for ease of comparison\n for (Interaction interact : interactions) {\n long tempDuration = interact.getTimePeriod().getDuration();\n double tempRadius = interact.getPlace().getRadius();\n //System.out.println(\"Temp Radius: \" + tempRadius);\n //tempRadius = Math.floor(tempRadius * 100) / 100;\n\n if (tempDuration > maxDuration)\n maxDuration = tempDuration;\n if (tempRadius < maxRadius)\n maxRadius = tempRadius;\n\n if(durationModeMap.containsKey(tempDuration))\n durationModeMap.put(tempDuration, durationModeMap.get(tempDuration) + 1);\n else\n durationModeMap.put(tempDuration, 1);\n\n if(radiusModeMap.containsKey(tempRadius))\n radiusModeMap.put(tempRadius, radiusModeMap.get(tempRadius) + 1);\n else\n radiusModeMap.put(tempRadius, 1);\n\n averageInteractionLength += tempDuration;\n averageRadius += tempRadius;\n }\n\n\n //Averages for duration/radius based on appearance of each interaction value\n double sumDuration = 0;\n double sumRadius = 0;\n\n int frequentRadiusCount = 1;\n int frequentDurationCount = 1;\n for(Map.Entry<Long, Integer> entry : durationModeMap.entrySet()){\n if(entry.getValue() > frequentDurationCount)\n frequentDurationCount = entry.getValue();\n }\n\n for(Map.Entry<Double, Integer> entry : radiusModeMap.entrySet()){\n if(entry.getValue() > frequentRadiusCount)\n frequentRadiusCount = entry.getValue();\n }\n\n //Regression coefficients for the likelihood formula\n double alpha = (durationModeMap.get(maxDuration)/numInteractions + frequentDurationCount/numInteractions)*100;\n double beta = radiusModeMap.get(maxRadius)/numInteractions * frequentRadiusCount/numInteractions;\n double gamma = numInteractions/numTotalInteractions;\n\n double alphaComputation = alpha * durationConstant * averageInteractionLength;\n double betaComputation = beta * (100 + radiusConstant * (1+averageRadius));\n double gammaComputation = gamma * 0.5;\n\n System.out.println(\"Alpha: \" + alpha + \", Beta: \" + beta + \", Gamma:\" + gamma);\n\n //Infection likelihood formula\n infectionLikelihood = alphaComputation + betaComputation + gammaComputation;\n\n }", "title": "" }, { "docid": "6e4099f9102d2db7ffedde5e49d9518b", "score": "0.44537148", "text": "public int getCorrAnwser() {\n\t\treturn corrAnwser;\n\t}", "title": "" }, { "docid": "7006bfbcd85542cb5bb278a3e4fb1770", "score": "0.44323877", "text": "public final double sampleCorrelation(int sampleSize){\n\t\tif (sampleSize < 3)\n\t\t\tthrow new IllegalArgumentException(\"The generate size must be > 2\");\n\t\tmySampleStat.reset();\n\t\tfor(int i=1;i<=sampleSize;i++)\n\t\t\tmySampleStat.collect(myDistribution);\n\t\treturn mySampleStat.getLag1Correlation();\n\t}", "title": "" }, { "docid": "760b4e582cca103ed17507f65ca6d6ff", "score": "0.44322646", "text": "public final void mo1710d() {\n if (this.f798s) {\n this.f798s = false;\n if (this.f785f == null) {\n this.f785f = new Path();\n }\n if (this.f786g == null) {\n this.f786g = new Path();\n }\n if (this.f787h == null) {\n this.f787h = new Path();\n }\n if (this.f789j == null) {\n this.f789j = new Path();\n }\n if (this.f790k == null) {\n this.f790k = new RectF();\n }\n if (this.f791l == null) {\n this.f791l = new RectF();\n }\n if (this.f792m == null) {\n this.f792m = new RectF();\n }\n if (this.f793n == null) {\n this.f793n = new RectF();\n }\n this.f785f.reset();\n this.f786g.reset();\n this.f787h.reset();\n this.f789j.reset();\n this.f790k.set(getBounds());\n this.f791l.set(getBounds());\n this.f792m.set(getBounds());\n this.f793n.set(getBounds());\n float b = mo1706b();\n if (b > BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER) {\n float f = b * 0.5f;\n this.f793n.inset(f, f);\n }\n RectF a = mo1700a();\n RectF rectF = this.f790k;\n rectF.top += a.top;\n rectF.bottom -= a.bottom;\n rectF.left += a.left;\n rectF.right -= a.right;\n float f2 = eF.a(this.f799t) ? BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER : this.f799t;\n float a2 = mo1697a(f2, BorderRadiusLocation.TOP_LEFT);\n float a3 = mo1697a(f2, BorderRadiusLocation.TOP_RIGHT);\n float a4 = mo1697a(f2, BorderRadiusLocation.BOTTOM_LEFT);\n float a5 = mo1697a(f2, BorderRadiusLocation.BOTTOM_RIGHT);\n boolean z = this.f805z == 1;\n float a6 = mo1698a(BorderRadiusLocation.TOP_START);\n float a7 = mo1698a(BorderRadiusLocation.TOP_END);\n float a8 = mo1698a(BorderRadiusLocation.BOTTOM_START);\n float a9 = mo1698a(BorderRadiusLocation.BOTTOM_END);\n if (Ty.a().a(this.f804y)) {\n if (!eF.a(a6)) {\n a2 = a6;\n }\n if (!eF.a(a7)) {\n a3 = a7;\n }\n if (!eF.a(a8)) {\n a4 = a8;\n }\n if (!eF.a(a9)) {\n a5 = a9;\n }\n float f3 = z ? a3 : a2;\n if (!z) {\n a2 = a3;\n }\n float f4 = z ? a5 : a4;\n if (z) {\n a5 = a4;\n }\n a4 = f4;\n a3 = a2;\n a2 = f3;\n } else {\n float f5 = z ? a7 : a6;\n if (!z) {\n a6 = a7;\n }\n float f6 = z ? a9 : a8;\n if (!z) {\n a8 = a9;\n }\n if (!eF.a(f5)) {\n a2 = f5;\n }\n if (!eF.a(a6)) {\n a3 = a6;\n }\n if (!eF.a(f6)) {\n a4 = f6;\n }\n if (!eF.a(a8)) {\n a5 = a8;\n }\n }\n float max = Math.max(a2 - a.left, BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER);\n float max2 = Math.max(a2 - a.top, BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER);\n float max3 = Math.max(a3 - a.right, BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER);\n float max4 = Math.max(a3 - a.top, BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER);\n float max5 = Math.max(a5 - a.right, BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER);\n float max6 = Math.max(a5 - a.bottom, BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER);\n float max7 = Math.max(a4 - a.left, BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER);\n float max8 = Math.max(a4 - a.bottom, BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER);\n float f7 = a4;\n float f8 = a5;\n this.f785f.addRoundRect(this.f790k, new float[]{max, max2, max3, max4, max5, max6, max7, max8}, Path.Direction.CW);\n this.f786g.addRoundRect(this.f791l, new float[]{a2, a2, a3, a3, f8, f8, f7, f7}, Path.Direction.CW);\n VA va = this.f780a;\n float a10 = va != null ? va.a(8) / 2.0f : BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER;\n float f9 = a2 + a10;\n float f10 = a3 + a10;\n float f11 = f8 + a10;\n float f12 = f7 + a10;\n this.f787h.addRoundRect(this.f792m, new float[]{f9, f9, f10, f10, f11, f11, f12, f12}, Path.Direction.CW);\n this.f789j.addRoundRect(this.f793n, new float[]{max + a10, max2 + a10, max3 + a10, max4 + a10, max5 + a10, max6 + a10, max7 + a10, max8 + a10}, Path.Direction.CW);\n if (this.f794o == null) {\n this.f794o = new PointF();\n }\n PointF pointF = this.f794o;\n PointF pointF2 = pointF;\n RectF rectF2 = this.f790k;\n float f13 = rectF2.left;\n pointF.x = f13;\n float f14 = rectF2.top;\n pointF.y = f14;\n double d = (double) f13;\n double d2 = d;\n double d3 = d;\n double d4 = (double) f14;\n RectF rectF3 = this.f791l;\n m629a(d2, d4, (double) ((max * 2.0f) + f13), (double) ((max2 * 2.0f) + f14), (double) rectF3.left, (double) rectF3.top, d3, d4, pointF2);\n if (this.f797r == null) {\n this.f797r = new PointF();\n }\n PointF pointF3 = this.f797r;\n PointF pointF4 = pointF3;\n RectF rectF4 = this.f790k;\n float f15 = rectF4.left;\n pointF3.x = f15;\n float f16 = rectF4.bottom;\n pointF3.y = f16;\n double d5 = (double) f15;\n double d6 = (double) f16;\n double d7 = d6;\n double d8 = d6;\n RectF rectF5 = this.f791l;\n m629a(d5, (double) (f16 - (max8 * 2.0f)), (double) ((max7 * 2.0f) + f15), d8, (double) rectF5.left, (double) rectF5.bottom, d5, d7, pointF4);\n if (this.f795p == null) {\n this.f795p = new PointF();\n }\n PointF pointF5 = this.f795p;\n PointF pointF6 = pointF5;\n RectF rectF6 = this.f790k;\n float f17 = rectF6.right;\n pointF5.x = f17;\n float f18 = rectF6.top;\n pointF5.y = f18;\n double d9 = (double) f18;\n double d10 = (double) f17;\n RectF rectF7 = this.f791l;\n m629a((double) (f17 - (max3 * 2.0f)), d9, d10, (double) ((max4 * 2.0f) + f18), (double) rectF7.right, (double) rectF7.top, d10, d9, pointF6);\n if (this.f796q == null) {\n this.f796q = new PointF();\n }\n PointF pointF7 = this.f796q;\n PointF pointF8 = pointF7;\n RectF rectF8 = this.f790k;\n float f19 = rectF8.right;\n pointF7.x = f19;\n float f20 = rectF8.bottom;\n pointF7.y = f20;\n double d11 = (double) f19;\n double d12 = (double) f20;\n double d13 = d12;\n double d14 = d12;\n RectF rectF9 = this.f791l;\n m629a((double) (f19 - (max5 * 2.0f)), (double) (f20 - (max6 * 2.0f)), d11, d14, (double) rectF9.right, (double) rectF9.bottom, d11, d13, pointF8);\n }\n }", "title": "" }, { "docid": "6fb75b88af1f219ba43ea81a0dfaa53a", "score": "0.4418152", "text": "private static int polarFrames_CADRG(double polarPixelConstant)\n {\n double tmp = polarPixelConstant * 20d / 360d;\n tmp /= 256d;\n tmp /= 6d;\n tmp = Math.ceil(tmp);\n if (((int) tmp) % 2 == 0)\n tmp = tmp + 1;\n return (int) tmp;\n }", "title": "" }, { "docid": "ac8999eaaf5562d62a7fe0590a3374bf", "score": "0.43896815", "text": "@Test\n public void testGetMaximumIterations() {\n System.out.println(\"getMaximumIterations\");\n CompositeRealReal instance = this._tunable;\n assertEquals(\"Wrong number of maximum iterations\", 20, instance.getMaximumIterations());\n }", "title": "" }, { "docid": "093b7ea21c06cb20a0618e85d5ed6416", "score": "0.43873438", "text": "public abstract int getVisionRadius();", "title": "" }, { "docid": "9a064e07ce43a14f33b2c9464940284b", "score": "0.43828714", "text": "double getCheapestInsertionLsOperatorNeighborsRatio();", "title": "" }, { "docid": "71d2b70f6f8e4ae17b74de00dbb85758", "score": "0.43432704", "text": "public static double penalFunctionNN(ImageComponentsAnalysis comp1, int i1, ImageComponentsAnalysis comp2, int i2,\n\t\t\tdouble maxRadius) {\n\t\tPoint m1 = comp1.getComponentMassCenter(i1);\n\t\tPoint m2 = comp2.getComponentMassCenter(i2);\n\t\tdouble dist = Point.dist(m1, m2);\n\t\tif (dist > maxRadius)\n\t\t\treturn 100;\n\n\t\tint area1, area2;\n\t\tfloat circ1, circ2;\n\t\tfloat intensity1, intensity2;\n\n\t\tdouble p_circ, p_area, p_int, p_dist, p_overlap;\n\t\tarea1 = comp1.getComponentArea(i1);\n\t\tcirc1 = comp1.getComponentCircularity(i1);\n\t\tintensity1 = comp1.getComponentAvrgIntensity(i1);\n\t\tarea2 = comp2.getComponentArea(i2);\n\t\tcirc2 = comp2.getComponentCircularity(i2);\n\t\tintensity2 = comp2.getComponentAvrgIntensity(i2);\n\t\tp_area = normVal(area1, area2);\n\t\tp_circ = normVal(circ1, circ2);\n\t\tp_int = normVal(intensity1, intensity2);\n\t\tp_overlap = calculateOverlapScore(comp1, i1, comp2, i2);\n\t\tSystem.out.println(\"overlap = \" + p_overlap);\n\n\t\t// ! Important to do this since we need penal function, so that less=better,\n\t\t// while SEG is opposite\n\t\tp_overlap = 1 - p_overlap;\n\n\t\tint minDist_in2 = findClosestPointIndex(m1, comp2, maxRadius);\n\t\tint minDist_in1 = findClosestPointIndex(m2, comp1, maxRadius);\n\t\tdouble minDist1 = Double.MAX_VALUE, minDist2 = Double.MAX_VALUE;\n\n\t\t// if closest component was not found closer than maxRadius, then let minDist be\n\t\t// huge, so score will be =1\n\t\tif (minDist_in2 != -1)\n\t\t\tminDist1 = Point.dist(m1, comp2.getComponentMassCenter(minDist_in2));\n\t\tif (minDist_in1 != -1)\n\t\t\tminDist2 = Point.dist(m2, comp1.getComponentMassCenter(minDist_in1));\n\n\t\tif (minDist_in1 == -1 && minDist_in2 == -1)\n\t\t\tp_dist = 1;\n\t\telse\n\t\t\tp_dist = normVal(Math.min(minDist1, minDist2), dist);\n\n\t\t// weights for area,circularity, avrg intensity, distance and overlap values\n\t\tdouble w_a = 0.8;\n\t\tdouble w_c = 0.2;\n\t\tdouble w_i = 0.4;\n\t\tdouble w_d = 1;\n\t\tdouble w_overlap = 0.8;\n\t\tdouble w_sum = w_a + w_c + w_i + w_d + w_overlap;\n\t\tw_a /= w_sum; // normalize value to [0,1]\n\t\tw_c /= w_sum;\n\t\tw_i /= w_sum;\n\t\tw_d /= w_sum;\n\t\tw_overlap /= w_sum;\n\t\tdouble penal = w_a * p_area + w_c * p_circ + w_i * p_int + w_d * p_dist + w_overlap * p_overlap;\n\t\t// System.out.format(\"Score between component with area %d, intensity %f, circ\n\t\t// %f %n\", area1, intensity1, circ1);\n\t\t// System.out.format(\"and component with area %d, intensity %f, circ %f %n\",\n\t\t// area2, intensity2, circ2);\n\t\t// System.out.format(\"with dist between them %f and min dist %f is %f %n%n\",\n\t\t// dist, Math.min(minDist1, minDist2),\n\t\t// penal);\n\t\treturn penal;\n\t}", "title": "" }, { "docid": "afc8a9aef83a1b3bb984baefc1cf4c09", "score": "0.43397424", "text": "private double correctLiklihood(double alpha, double beta, double gamma, double sumDuration, double sumRadius, int numInteractions) {\n double error;\n double newAlpha = alpha;\n double newBeta = beta;\n double newGamma = gamma;\n double actualOutput;\n\n do {\n actualOutput = newAlpha * durationConstant * (sumDuration / numInteractions) +\n newBeta * (100 + radiusConstant * (sumRadius / numInteractions)) +\n newGamma * gammaConstant * numInteractions;\n double desiredOutput = newAlpha * durationConstant * (24 / numInteractions) +\n newBeta * (100 + radiusConstant * (0 / numInteractions)) +\n newGamma * gammaConstant * numInteractions;\n error = 1 - Math.abs(actualOutput - desiredOutput) / desiredOutput;\n\n Double max = new Double(Math.max(newAlpha, Math.max(newBeta , gamma)));\n\n if (max.equals(newAlpha))\n newAlpha -= newAlpha * error;\n else if (max.equals(newBeta))\n newBeta -= newBeta * error;\n else\n newGamma -= newGamma * error;\n } while (error > .1);\n\n return actualOutput;\n }", "title": "" }, { "docid": "1ba9d81770fb5e93a037178e899fd91e", "score": "0.43356025", "text": "private static double contClassicLB(final double numSamplesF, final double theta,\n final double numSDev) {\n final double nHat = (numSamplesF - 0.5) / theta;\n final double b = numSDev * Math.sqrt((1.0 - theta) / theta);\n final double d = 0.5 * b * Math.sqrt((b * b) + (4.0 * nHat));\n final double center = nHat + (0.5 * (b * b));\n return (center - d);\n }", "title": "" }, { "docid": "c546cc66df3344ff64d8c3a90e8e67e4", "score": "0.43226814", "text": "@Test(timeout = 4000)\n public void test30() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-615));\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "d53ffcdac98459b01956b4b4fa06e78c", "score": "0.43103945", "text": "public double computeCorrelation (org.apache.spark.rdd.RDD<java.lang.Object> x, org.apache.spark.rdd.RDD<java.lang.Object> y) { throw new RuntimeException(); }", "title": "" }, { "docid": "2f36262daa0e00934fbcee9d2b3db0dd", "score": "0.4295596", "text": "public void precalculateInternalVariables()\n\t{\n\t\tf = lensSurface.getFocalLength();\t// focal length...\n\t\tf2 = f*f;\t// ... and its square\n\t\tn = lensSurface.getRefractiveIndex();\t// refractive index...\n\t\tn2 = n*n;\t// ... and its square\n\t\tnM1 = n-1;\t// (n-1)\n\t\tnM12 = nM1*nM1;\t// (n-1)^2\n\t\tn2M1 = n2-1;\t// (n^2 - 1)\n\n\t\tVector3D wHat = lensSurface.getOpticalAxisDirectionOutwards();\n\n\t\t// tHat points in the direction of the contour normal, outwards;\n\t\t// to see if <i>contourNormal</i> points inwards or outwards, calculate its scalar product with lensSurface.wHat, which also points outwards;\n\t\t// contourNormal should already be normalised, so it just needs to be calculated with the sign of wHat.contourNormal\n\t\ttHat = contourNormal.getWithLength(Math.signum(Vector3D.scalarProduct(wHat, contourNormal)));\n\t\t\n//\t\tSystem.out.println(\n//\t\t\t\t\"BelinCone::precalculateRSTCoordinateSystem: Vector3D.crossProduct(lensSurface.getOpticalAxisDirectionOutwards(), tHat)=\"+\n//\t\t\t\tVector3D.crossProduct(lensSurface.getOpticalAxisDirectionOutwards(), tHat)\n//\t\t\t);\n\t\tVector3D rAxis = Vector3D.crossProduct(wHat, tHat);\n\t\t// it can be the case that <i>tHat</i> is parallel to the lens surface's optical-axis direction, in which case <i>rAxis</i> = 0\n\t\tif(rAxis.getModSquared() == 0.0)\n\t\t\t// rAxis = 0; take any normal to tHat for the r direction\n\t\t\trHat = Vector3D.getANormal(tHat);\n\t\telse\n\t\t\t// normalise rAxis and take this as the unit vector in the r direction\n\t\t\trHat = rAxis.getNormalised();\n\t\tsHat = Vector3D.crossProduct(tHat, rHat);\t// should already be normalised\n\t\t\n\t\t// System.out.println(\"BelinCone::precalculateRSTCoordinateSystem: rHat=\"+rHat+\", sHat=\"+sHat+\", tHat=\"+tHat);\n\t\t\n\t\tVector3D uHat = rHat;\n\t\tVector3D vHat = Vector3D.crossProduct(wHat, uHat);\n\t\t\n\t\t// calculate the principal point, where the lens surface's optical axis intersects the contour plane, ...\n\t\tVector3D principalPoint = Geometry.uniqueLinePlaneIntersection(\n\t\t\t\tlensSurface.getFocalPoint(),\t// pointOnLine\n\t\t\t\twHat,\t// directionOfLine\n\t\t\t\tpointInContourPlane,\t// pointOnPlane\n\t\t\t\ttHat\t// normalToPlane\n\t\t\t);\n\t\t// alternative: take the principal point to be the lens surface's principal point\n\t\t// Vector3D principalPoint = lensSurface.calculatePrincipalPoint();\n\t\t// ... and the apex position\n\t\tapex = Vector3D.sum(\n\t\t\t\tprincipalPoint,\n\t\t\t\tVector3D.difference(lensSurface.getFocalPoint(), principalPoint).getProductWith(2)\n\t\t\t);\n\t\t\n\t\t// System.out.println(\"BelinCone::precalculateRSTCoordinateSystem: apex=\"+apex);\n\t\t\n\t\t// w coordinate of the apex\n\t\twA = Vector3D.scalarProduct(Vector3D.difference(apex, lensSurface.getFocalPoint()), wHat);\n\t\twA2 = wA*wA;\n\t\t\n\t\t// System.out.println(\"BelinCone::precalculateRSTCoordinateSystem: wA=\"+wA);\n\t\t\n\t\t// wHat.tHat, i.e. the w component of the vector tHat\n\t\twTHat = Vector3D.scalarProduct(tHat, wHat);\t// cos alpha\n\t\twTHat2 = wTHat*wTHat;\n\t\t// vHat.tHat, i.e. the v component of the vector tHat\n\t\tvTHat = Vector3D.scalarProduct(tHat, vHat);\t// -Math.sqrt(1-wTHat2);\t// sin alpha\n\t\tvTHat2 = vTHat*vTHat;\n\t\t\n\t\t// System.out.println(\"BelinCone::precalculateRSTCoordinateSystem: wTHat=\"+wTHat+\", vTHat=\"+vTHat);\n\t\t\n\t\t// the t component of the contour plane, E\n\t\ttE = Vector3D.scalarProduct(Vector3D.difference(pointInContourPlane, apex), tHat);\n\t\ttE2 = tE*tE;\n\n\t\t// System.out.println(\"BelinCone::precalculateRSTCoordinateSystem: tE=\"+tE);\n\t\t\n\t\t// System.out.println(\"BelinCone::precalculateRSTCoordinateSystem: rHat=\"+rHat+\", sHat=\"+sHat+\", tHat=\"+tHat+\", apex=\"+apex);\n\t}", "title": "" }, { "docid": "ff1293a746251d75b3b87562f3ece9d2", "score": "0.4291794", "text": "public ManyToManyCorrelation()\n {\n _haltingCriteria = new HaltingCriteria();\n// _haltingCriteria.setElapsedTimeTolerance( 28800000 ); // 8 hours\n// _haltingCriteria.setElapsedTimeTolerance( 18000000 ); // 5 hours\n// _haltingCriteria.setElapsedTimeTolerance( 7200000 ); // 2 hours\n _haltingCriteria.setElapsedTimeTolerance( 1800000 ); // 30 minutes\n// _haltingCriteria.setElapsedTimeTolerance( 600000 ); // 10 minutes\n// _haltingCriteria.setElapsedTimeTolerance( 180000 ); // 3 minutes\n// _haltingCriteria.setElapsedTimeTolerance( 60000 ); // 1 minute\n// _haltingCriteria.setElapsedTimeTolerance( 30000 ); // 30 seconds\n// _haltingCriteria.setElapsedTimeTolerance( 10000 ); // 10 seconds\n }", "title": "" }, { "docid": "0f64a71ce7ec78a2a46de4fa9f9fe7e5", "score": "0.42881978", "text": "public void rectangularHyperbolaPlot(){\n fitRectangularHyperbola(1);\n }", "title": "" }, { "docid": "7a1ca2aac6bff7b0912490f4124e4cc4", "score": "0.4286336", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_IgnoreClass = true;\n String[] stringArray0 = discretize0.getOptions();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertEquals(7, stringArray0.length);\n }", "title": "" }, { "docid": "48222029fba376f9f8b998d6805aec40", "score": "0.42843986", "text": "double correctedPvalue( int i, int j, double correl, int numused ) {\n\n // raw value.\n double p = CorrelationStats.pvalue( correl, numused );\n\n return p * this.numberOfTestsForGeneAtRow( i ) * this.numberOfTestsForGeneAtRow( j );\n }", "title": "" }, { "docid": "e0de21347ce356fdd0e28e1fb98c82b5", "score": "0.4279307", "text": "public double[][] getCorrCoeffMatrix(){\n\t return this.corrCoeff;\n\t}", "title": "" }, { "docid": "a0d351e910eb583ac18d29da3981d9ce", "score": "0.4279242", "text": "public void mo4160c() {\n C0793a aVar = this.f3220b;\n aVar.f3241r.mo4075a(aVar, this.f3219a, false, false);\n }", "title": "" }, { "docid": "4ed5b7c876ca5c1eecb95b53b258e119", "score": "0.42702067", "text": "@Test\n void calculatePerCaptureValue_Success_calculateRoundedValue() {\n assertEquals(\n RewardUtils.calculatePerCaptureValue(new NrveValue(300000001L), 3),\n NrveValue.ONE\n );\n }", "title": "" }, { "docid": "4c216cbc606255e4880182f293672493", "score": "0.4266411", "text": "public void drawBorderRadiusACA(BorderPDF borderPDF, CornerRadius cr, ElementBox elem, String side, float widthVer, float widthHor) throws IOException {\n // special case when one edge is zero width - this half of corner is skip\n if (!(cr.a.x == cr.h.x && cr.g.x == cr.b.x && cr.a.y == cr.h.y && cr.g.y == cr.b.y)) {\n content.setLineWidth(0.1f);\n setStrokingColor(borderPDF.getBorderColor(elem, side));\n setNonStrokingColor(borderPDF.getBorderColor(elem, side));\n\n content.moveTo(cr.a.x, cr.a.y);\n DPoint controlPoint = getOuterControlPointAHA(cr);\n content.curveTo1(controlPoint.x, controlPoint.y, cr.h.x, cr.h.y);\n\n content.curveTo1((cr.h.x + cr.g.x) / 2, (cr.h.y + cr.g.y) / 2, cr.g.x, cr.g.y);\n\n // special case when width border is same as radius\n if (widthHor != cr.x && widthVer != cr.y) {\n controlPoint = getInnerControlPointHB(cr);\n content.curveTo1(controlPoint.x, controlPoint.y, cr.b.x, cr.b.y);\n }\n\n if (widthVer > cr.y || widthHor > cr.x) {\n if ((cr.a.x < cr.h.x && cr.a.y < cr.h.y) || (cr.a.x > cr.h.x && cr.a.y > cr.h.y)) {\n //2. and 3. corner has the coordinates reversed\n content.curveTo1((cr.b.x + cr.a.x) / 2, (cr.b.y + cr.b.y) / 2, cr.a.x, cr.b.y);\n content.curveTo1((cr.a.x + cr.a.x) / 2, (cr.b.y + cr.a.y) / 2, cr.a.x, cr.a.y);\n } else {\n content.curveTo1((cr.b.x + cr.b.x) / 2, (cr.b.y + cr.a.y) / 2, cr.b.x, cr.a.y);\n content.curveTo1((cr.b.x + cr.a.x) / 2, (cr.a.y + cr.a.y) / 2, cr.a.x, cr.a.y);\n }\n } else {\n content.curveTo1((cr.b.x + cr.a.x) / 2, (cr.b.y + cr.b.y) / 2, cr.a.x, cr.a.y);\n }\n content.fill();\n }\n }", "title": "" }, { "docid": "ca8e3d813c36e100a9a3cea4cbac7d95", "score": "0.42630902", "text": "public final void mo55708c(float f) {\n if (this.f55616v == null || this.f55607m == null || this.f55608n == null) {\n this.f55600f.mo55580a(this.f55602h.f55724c, -420, \"Camera info is null, may be you need reopen camera.\");\n return;\n }\n try {\n Rect b = mo55707b(f);\n if (b != null) {\n this.f55616v.stopRepeating();\n this.f55608n.set(CaptureRequest.SCALER_CROP_REGION, b);\n this.f55608n.set(C20598i.f55636d, Float.valueOf(f));\n this.f55607m = this.f55608n.build();\n this.f55616v.setRepeatingRequest(this.f55607m, this.f55703C, this.f55604j);\n this.f55612r = b;\n mo55714o();\n }\n } catch (Exception e) {\n this.f55600f.mo55580a(this.f55602h.f55724c, -420, e.toString());\n }\n }", "title": "" }, { "docid": "49a9a310ff26b7c32af4a5ae3fd0e65b", "score": "0.42625552", "text": "public double getPartialScore();", "title": "" }, { "docid": "41725a2888488de3a188165675134fe0", "score": "0.42622215", "text": "public boolean cor11() {boolean tf11 = (!(i < 2 && j == 5)); \t\t\t\treturn tf11;}", "title": "" }, { "docid": "3fe1358dda16fccc1e5faccf8caac415", "score": "0.42582813", "text": "@Test\n public void ReverseFromOutside() {\n calibration_ = new HallCalibration(0);\n for (int i = 0; i < 150; i++) {\n updateTest(i);\n Assert.assertFalse(isCalibrated());\n }\n for (int i = 150; i > 0; i--) {\n updateTest(i);\n Assert.assertFalse(isCalibrated());\n }\n for (int i = 0; i < 200; i++) {\n updateTest(i);\n Assert.assertFalse(isCalibrated());\n }\n updateTest(200);\n Assert.assertTrue(isCalibrated());\n }", "title": "" }, { "docid": "b5d0bcc3d4f8f532369ec7a7405fab0d", "score": "0.42508793", "text": "public final Rect mo55704a(float f) {\n if (f < 1.0f) {\n f = 1.0f;\n }\n if (f > this.f55611q) {\n f = this.f55611q;\n }\n Rect rect = (Rect) this.f55605k.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE);\n int width = rect.width() / 2;\n int height = rect.height() / 2;\n int width2 = (int) ((((float) rect.width()) * 0.5f) / f);\n int height2 = (int) ((((float) rect.height()) * 0.5f) / f);\n Rect rect2 = new Rect(width - width2, height - height2, width + width2, height + height2);\n StringBuilder sb = new StringBuilder(\"calculateZoomSize:crop \");\n sb.append(rect2.left);\n sb.append(\"----\");\n sb.append(rect2.top);\n sb.append(\"----\");\n sb.append(rect2.right);\n sb.append(\"----\");\n sb.append(rect2.bottom);\n C20652m.m68435b(\"TEImage2Mode\", sb.toString());\n StringBuilder sb2 = new StringBuilder(\"calculateZoomSize:crop \");\n sb2.append(rect2.width());\n sb2.append(\"----\");\n sb2.append(rect2.height());\n C20652m.m68435b(\"TEImage2Mode\", sb2.toString());\n return rect2;\n }", "title": "" }, { "docid": "e2ae908d03e2934b3bacb6b99468752d", "score": "0.4248428", "text": "public void Carriage() {\n\n // This variable is used for making the inner carriage go up/down\n double triggerAxis;\n\n // Axes 2 and 3 are the left and right analog triggers, respectively\n triggerAxis = drive.stick.getRawAxis(3) - drive.stick.getRawAxis(4);\n redcarriage.set(triggerAxis * 0.50);\n }", "title": "" }, { "docid": "6cf4c2c554e76c8fd61ef149feb15c04", "score": "0.42481688", "text": "public void testComputeCurvature_circle() throws Exception {\n \n double dTheta = 10.0;\n int n = (int)(360.f/dTheta);\n float xc0 = 20.0f;\n float yc0 = 20.0f;\n float xc1 = 400.0f;\n float yc1 = 400.0f;\n float r = (float)(((float)n) * 10.f/(2. * Math.PI));//10.0f;\n \n float expectedCurvature = (1.f/r);\n \n log.info(\"r=\" + r + \" 1/r=\" + expectedCurvature);\n \n PairIntArray xy0 = new PairIntArray(n);\n PairIntArray xy1 = new PairIntArray(n);\n \n // need each pixel to be changing, so a dTheta of right size is needed\n // so dTheta >= 10 is a good choice\n for (int i = 0; i < n; i++) {\n /*\n (x-xc)^2 + (y-yc)^2 = r\n x = xc + r*cos(theta)\n y = yc + r*sin(theta)\n */\n double thetaRadians = (i*dTheta)/180.;\n \n int x0 = (int) (xc0 + r * Math.cos(thetaRadians));\n int y0 = (int) (yc0 + r * Math.sin(thetaRadians));\n xy0.add(x0, y0);\n \n int x1 = (int) (xc1 + r * Math.cos(thetaRadians));\n int y1 = (int) (yc1 + r * Math.sin(thetaRadians));\n xy1.add(x1, y1);\n }\n \n ScaleSpaceCurvature scaleSpaceHelper = new ScaleSpaceCurvature();\n \n for (SIGMA sigma : SIGMA.values()) {\n \n if (sigma.ordinal() == SIGMA.FOURSQRT2.ordinal()) {\n break;\n }\n \n /* uncomment to print only the binomial kernels\n if (null == Gaussian1DFirstDeriv.getBinomialKernel(sigma)) {\n continue;\n }*/ \n \n log.info(\"sigma=\" + sigma.toString() + \")\");\n \n ScaleSpaceCurve curve0 = scaleSpaceHelper.computeCurvature(xy0, \n sigma, SIGMA.getValue(sigma));\n\n ScaleSpaceCurve curve1 = scaleSpaceHelper.computeCurvature(xy1,\n sigma, SIGMA.getValue(sigma));\n\n /*\n expecting curvature is 1/r ~ 0.1\n\n binomial kernel was important in getting the correct answer.\n */\n log.info(\"CIRCLE RESULTS: (sigma=\" + sigma.toString() + \")\");\n int h = n >> 1;\n for (int i = 0; i < n; i++) {\n\n log.info(i + \") \" + curve0.getK(i) + \" : \" + curve1.getK(i));\n\n if (i > h) {\n if (i < (n - h - 1)) {\n assertTrue(Math.abs(curve0.getK(i) - expectedCurvature) \n < (0.75*expectedCurvature));\n assertTrue(Math.abs(curve1.getK(i) - expectedCurvature) \n < (0.75*expectedCurvature));\n }\n }\n }\n }\n \n log.info(\"ComputeCurvature_line\");\n \n // test that the curvature for every point on a line is ~0\n \n // 1 horizontal line, vertical line, and diagonal line\n //n = 18;\n PairIntArray xyH = new PairIntArray(n);\n PairIntArray xyV = new PairIntArray(n);\n PairIntArray xyD = new PairIntArray(n);\n \n for (int i = 0; i < n; i++) {\n \n xyH.add(i, 100);\n \n xyV.add(10, i);\n \n xyD.add(i, i);\n }\n \n for (SIGMA sigma : SIGMA.values()) {\n \n if (sigma.ordinal() == SIGMA.FOUR.ordinal()) {\n break;\n }\n \n /*if (null == Gaussian1DFirstDeriv.getBinomialKernel(sigma)) {\n continue;\n }*/ \n \n log.info(\"sigma=\" + sigma.toString() + \")\");\n \n // x first deriv = -1, x second deriv = 0, \n // y first deriv = 0, y second deriv = 0,\n // k = 0\n ScaleSpaceCurve curveH = scaleSpaceHelper.computeCurvature(xyH, \n sigma, SIGMA.getValue(sigma));\n\n // x first deriv = 0, x second deriv = 0, \n // y first deriv = 1, y second deriv = 0,\n // k = 0\n ScaleSpaceCurve curveV = scaleSpaceHelper.computeCurvature(xyV, \n sigma, SIGMA.getValue(sigma));\n\n // x first deriv = 1, x second deriv = 0, \n // y first deriv = -1, y second deriv = 0,\n // k = 0.1\n ScaleSpaceCurve curveD = scaleSpaceHelper.computeCurvature(xyD, \n sigma, SIGMA.getValue(sigma));\n\n log.info(\"LINE RESULTS: (sigma=\" + sigma.toString() \n + \")\");\n \n int h = n >> 1;\n \n for (int i = 0; i < n; i++) {\n log.info(i + \") \" + curveH.getK(i) + \" : \" + curveV.getK(i) \n + \" : \" + curveD.getK(i));\n if (i > h) {\n if (i < (n - h - 1)) {\n assertTrue(Math.abs(curveH.getK(i)) < 0.001);\n assertTrue(Math.abs(curveV.getK(i)) < 0.001);\n assertTrue(Math.abs(curveD.getK(i)) < 0.001);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "364fb20f18851c8cb3291668f484ddf4", "score": "0.42466715", "text": "@Test\n public void SensorInaccuracies2() {\n calibration_ = new HallCalibration(0);\n for (int i = 0; i < 95; i++) {\n updateTest(i, i);\n }\n // The main sensor has reversed direction, but the hall hasn't\n for (int i = 0; i < 10; i++) {\n updateTest(95 - i, 95 + i);\n }\n // The hall has reversed direction and is in sync with the main sensor\n for (int i = 85; i > 0; i--) {\n updateTest(i, i);\n }\n // Now calibrate normally\n for (int i = 0; i < 200; i++) {\n updateTest(i, i);\n }\n updateTest(200, 200);\n Assert.assertTrue(isCalibrated());\n Assert.assertEquals(ValueAt(150), 0, 10);\n }", "title": "" }, { "docid": "13ba5d07abbb8e925787b8926ca869f5", "score": "0.42460045", "text": "@org.junit.Test\n public void testExactMatch() throws OWLReasonerException, OWLOntologyCreationException {\n Set<URI> notS = new HashSet<URI>();\n\n // create a RANDOM INCLUSION Strategy\n // create a RANDOM INCLUSION Strategy\n final ApproximationContext initialApproximationContext = new ApproximationContext(request, new NotSApproximationContext(request, notS, vocabulary), new CTASetApproximationContext(request, classesToApproximate));\n final ApproximationStrategy randomInclusion = new RandomInclusionOfConcepts(initialApproximationContext);\n\n final Map<ApproximationContext, MatchingResult> partialMatches = owlApproximator.getAllMatches(randomInclusion);\n\n\n assertTrue(partialMatches.size() == 3);\n // the partialmatches result map should contain 3 entrys\n // 1. Matching Classes using Approximation notS Set { nothing }\n // 2. Matching Classes using Approximation notS Set { price }\n // 2. Matching Classes using Approximation notS Set { price, hasMainMemory }\n\n // get the matchingresults\n Iterator<MatchingResult> iter = partialMatches.values().iterator();\n\n Set<OWLClass> partialMatch1 = iter.next().getMatchingOWLClasses();\n\n assertFalse(partialMatch1.contains(advert2));\n assertFalse(partialMatch1.contains(advert1));\n\n // the matchresult 2\n Set<OWLClass> partialMatch2 = iter.next().getMatchingOWLClasses();\n // the matchingOWLClasses of this matching step cannot be predicted , because of the randomized order\n // the concepts are included into the notS set, but we can assume that only one of\n\n assertTrue(partialMatch2.contains(advert2) || partialMatch2.contains(advert1));\n assertFalse(partialMatch2.contains(advert2) && partialMatch2.contains(advert1));\n\n // the matchresult 3\n Set<OWLClass> partialMatch3 = iter.next().getMatchingOWLClasses();\n\n assertTrue(partialMatch3.contains(advert2));\n assertTrue(partialMatch3.contains(advert1));\n\n }", "title": "" }, { "docid": "9b33b4b1023b107273397c05f9d2db17", "score": "0.4243454", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setFindNumBins(false);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "cf91c2749dc898a5039edf41c1af038c", "score": "0.42424724", "text": "@Test\n public void testRangeAndRangeRate() {\n\n // Create context\n TLEContext context = TLEEstimationTestUtils.eccentricContext(\"regular-data:potential:tides\");\n\n // Create initial orbit and propagator builder\n final PositionAngle positionAngle = PositionAngle.MEAN;\n final double minStep = 1.e-6;\n final double maxStep = 60.;\n final double dP = 1.;\n final TLEPropagatorBuilder propagatorBuilder =\n context.createBuilder(minStep, maxStep, dP);\n\n // Create perfect range & range rate measurements\n Orbit initialOrbit = TLEPropagator.selectExtrapolator(context.initialTLE).getInitialState().getOrbit();\n final Propagator propagator = TLEEstimationTestUtils.createPropagator(initialOrbit,\n propagatorBuilder);\n final List<ObservedMeasurement<?>> measurementsRange =\n TLEEstimationTestUtils.createMeasurements(propagator,\n new TwoWayRangeMeasurementCreator(context),\n 1.0, 3.0, 300.0);\n\n final List<ObservedMeasurement<?>> measurementsRangeRate =\n TLEEstimationTestUtils.createMeasurements(propagator,\n new RangeRateMeasurementCreator(context, false, 0.0),\n 1.0, 3.0, 300.0);\n\n // Concatenate measurements\n final List<ObservedMeasurement<?>> measurements = new ArrayList<ObservedMeasurement<?>>();\n measurements.addAll(measurementsRange);\n measurements.addAll(measurementsRangeRate);\n\n // Reference propagator for estimation performances\n final TLEPropagator referencePropagator = propagatorBuilder.\n buildPropagator(propagatorBuilder.getSelectedNormalizedParameters());\n\n // Reference position/velocity at last measurement date\n final Orbit refOrbit = referencePropagator.\n propagate(measurements.get(measurements.size()-1).getDate()).getOrbit();\n\n // Change X position of 10m as in the batch test\n ParameterDriver xDriver = propagatorBuilder.getOrbitalParametersDrivers().getDrivers().get(0);\n xDriver.setValue(xDriver.getValue() + 10.0);\n xDriver.setReferenceDate(AbsoluteDate.GALILEO_EPOCH);\n\n // Cartesian covariance matrix initialization\n // 100m on position / 1e-2m/s on velocity\n final RealMatrix cartesianP = MatrixUtils.createRealDiagonalMatrix(new double [] {\n 100., 100., 100., 1e-2, 1e-2, 1e-2\n });\n\n // Process noise matrix is set to 0 here\n RealMatrix Q = MatrixUtils.createRealMatrix(6, 6);\n\n // Build the Kalman filter\n final KalmanEstimator kalman = new KalmanEstimatorBuilder().\n addPropagationConfiguration(propagatorBuilder, new ConstantProcessNoise(cartesianP, Q)).\n build();\n\n // Filter the measurements and check the results\n final double expectedDeltaPos = 0.;\n final double posEps = 0.45; // With numerical propagator: 1.2e-6;\n final double expectedDeltaVel = 0.;\n final double velEps = 1.86e-4; // With numerical propagator: 4.2e-10;\n TLEEstimationTestUtils.checkKalmanFit(context, kalman, measurements,\n refOrbit, positionAngle,\n expectedDeltaPos, posEps,\n expectedDeltaVel, velEps);\n }", "title": "" }, { "docid": "101dfa0eda8ac291a06ae65f629e4059", "score": "0.42415836", "text": "public void rectangularHyperbola(){\n fitRectangularHyperbola(0);\n }", "title": "" }, { "docid": "7bfe7c79d4c5e0936720a7ce558a3f3e", "score": "0.4240523", "text": "public final void setCorrelation(double lag1) {\n\t\tmyCorrelatedRng.setLag1Correlation(lag1);\n\t}", "title": "" }, { "docid": "978fc0f1bc9aa47576ffeda6037821de", "score": "0.42345265", "text": "public static float getCorridorWidth() {\n assert corridorWidth > 0f : corridorWidth;\n return corridorWidth;\n }", "title": "" }, { "docid": "2704562bb518ce7d0cf6faa6dc9eba9c", "score": "0.42296094", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n TestInstances testInstances0 = new TestInstances();\n Instances instances1 = testInstances0.generate(\"@relation\");\n Evaluation evaluation0 = new Evaluation(instances1);\n textDirectoryLoader0.getStructure();\n testInstances0.setWordSeparators(\"~W\");\n evaluation0.m_Header = instances0;\n double[][] doubleArray0 = evaluation0.m_ConfusionMatrix;\n double double0 = evaluation0.m_TotalSizeOfRegions;\n double double1 = evaluation0.pctCorrect();\n double double2 = evaluation0.unweightedMacroFmeasure();\n assertEquals(double2, double1, 0.01);\n \n evaluation0.areaUnderPRC((-2));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "1c1786242c942a45baa18db685246b81", "score": "0.4228786", "text": "public CorrelationConstrained(double median) {\n this.median = median;\n }", "title": "" }, { "docid": "2a5e9ce5e16b168ba6cbb7c94fcffe67", "score": "0.4225339", "text": "public void initQuadrature() {\n int pulseWidth = AFrontRight.getSensorCollection().getPulseWidthPosition();\n }", "title": "" }, { "docid": "73c4877d71cf8a89be62263785e1a3e1", "score": "0.422373", "text": "private boolean calculationsInterplayCorrelationTest(String alpha)\r\n {\r\n \r\n double N=0, X=0, Y=0, sigma_X=0, sigma_Y=0, X_Square=0, Y_Square=0, sigmaSquare_X=0, sigmaSquare_Y=0, XY=0, sigma_XY=0;\r\n\t\t\r\n\t\ttry\r\n\t\t{\t\r\n\t\t\r\n\t\t\tN = dataX.size();\r\n\t\t\t\r\n\t\t\tif (dataX.size() > dataY.size())\r\n\t\t\t{\r\n\t\t\t\tdataY.add(0.0);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\tfor(int i=0; i < dataX.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tX = dataX.get(i);\r\n\t\t\t\tY = dataY.get(i);\r\n\t\t\t\t\r\n\t\t\t\tsigma_X = sigma_X + X;\r\n\t\t\t\tsigma_Y = sigma_Y + Y;\r\n\t\t\t\t\r\n\t\t\t\tX_Square = dataX.get(i) * dataX.get(i);\r\n\t\t\t\tY_Square = dataY.get(i) * dataY.get(i);\r\n\t\t\t\t\r\n\t\t\t\tsigmaSquare_X = sigmaSquare_X + X_Square;\r\n\t\t\t\tsigmaSquare_Y = sigmaSquare_Y + Y_Square;\r\n\t\t\t\t\r\n\t\t\t\tXY = dataX.get(i)* dataY.get(i);\r\n\t\t\t\tsigma_XY = sigma_XY + XY ;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tr = ((N*sigma_XY)-(sigma_X * sigma_Y))/Math.sqrt((N*sigmaSquare_X - (sigma_X*sigma_X))*(N*sigmaSquare_Y - (sigma_Y*sigma_Y)));\r\n\t\t\t\r\n\t\t\tnumber_of_samples = N;\r\n\t\t\taverageR = averageR + r;\r\n\t\t\t\t\t\t\r\n\t\t\tif(r <= maxR && r >= minR)\r\n\t\t\t{\r\n\t\t\t\tinterplayCorrelationTest = true;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tinterplayCorrelationTest = false;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception::>\"+e);\r\n\t\t}\r\n\t return interplayCorrelationTest;\r\n }", "title": "" }, { "docid": "ebc4be6ad34aee6eefa0a87dd2f46ca2", "score": "0.4219269", "text": "double getSavingsNeighborsRatio();", "title": "" }, { "docid": "54816d83f2d76b6606fae29ec74e0f82", "score": "0.42163867", "text": "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Discretize discretize0 = new Discretize(\"O2;tfJ\");\n discretize0.getAttributeIndices();\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "41d8f2ec27f5a7e43476030767e5ac4f", "score": "0.42162466", "text": "public void constant(){\n if(this.multipleY)throw new IllegalArgumentException(\"This method cannot handle multiply dimensioned y arrays\");\n this.lastMethod = 46;\n this.linNonLin = true;\n this.nTerms = 1;\n this.degreesOfFreedom = this.nData - this.nTerms;\n\t if(this.degreesOfFreedom<1 && !this.ignoreDofFcheck)throw new IllegalArgumentException(\"Degrees of freedom must be greater than 0\");\n this.best = new double[this.nTerms];\n this.bestSd = new double[this.nTerms];\n this.tValues = new double[this.nTerms];\n this.pValues = new double[this.nTerms];\n\n this.best[0] = Stat.mean(this.yData, this.weight);\n this.bestSd[0] = Stat.standardDeviation(this.yData, this.weight);\n this.tValues[0] = this.best[0]/this.bestSd[0];\n\n\t\tdouble atv = Math.abs(this.tValues[0]);\n if(atv!=atv){\n\t\t this.pValues[0] = Double.NaN;\n\t }\n\t\telse{\n\t\t this.pValues[0] = 1.0 - Stat.studentTcdf(-atv, atv, this.degreesOfFreedom);\n }\n\n\t\tthis.sumOfSquaresError = 0.0;\n\t\tthis.chiSquare = 0.0;\n\t\tfor(int i=0; i<this.nData; i++){\n\t\t this.yCalc[i] = best[0];\n\t\t this.residual[i] = this.yCalc[i] - this.yData[i];\n\t\t this.residualW[i] = this.residual[i]/this.weight[i];\n\t\t this.sumOfSquaresError += this.residual[i]*this.residual[i];\n\t\t this.chiSquare += this.residualW[i]*this.residualW[i];\n\t\t}\n this.reducedChiSquare = this.chiSquare/this.degreesOfFreedom;\n }", "title": "" }, { "docid": "483c55a3becfce076991593aca43a94c", "score": "0.42103675", "text": "double getBestObjectiveBound();", "title": "" }, { "docid": "43e8893711f671ff991502ab336f395b", "score": "0.4206761", "text": "public Rational reciprocal() {\r\n\r\n\t}", "title": "" }, { "docid": "d52b2a166dec160da45714fee5f99c84", "score": "0.41997898", "text": "double getCompensated_reactive_gross_P();", "title": "" }, { "docid": "ead6dda68aa2d8d38bf91e3001e8f0e2", "score": "0.41959324", "text": "protected RectF mo3481c() {\n return new RectF((float) this.this$0.Ic, (float) this.this$0.Lc, (float) (this.this$0.Ic + this.this$0.Dc), (float) (this.this$0.Lc + this.this$0.Rc));\n }", "title": "" }, { "docid": "a22101d0260dfe8539fa7c03eb67c4a0", "score": "0.4194783", "text": "@Test(timeout = 4000)\n public void test81() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.desiredWeightOfInstancesPerIntervalTipText();\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(\"Sets the desired weight of instances per interval for equal-frequency binning.\", string0);\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "6da3b61791c2a340b537da471e26a3ec", "score": "0.4190662", "text": "public void preApply(\n\t\tdouble n00, double n01, double n02, double n03, \n\t\tdouble n10, double n11, double n12, double n13, \n\t\tdouble n20, double n21, double n22, double n23, \n\t\tdouble n30, double n31, double n32, double n33\n\t) {\n\n\t\tdouble r00 = n00 * m00 + n01 * m10 + n02 * m20 + n03 * m30;\n\t\tdouble r01 = n00 * m01 + n01 * m11 + n02 * m21 + n03 * m31;\n\t\tdouble r02 = n00 * m02 + n01 * m12 + n02 * m22 + n03 * m32;\n\t\tdouble r03 = n00 * m03 + n01 * m13 + n02 * m23 + n03 * m33;\n\n\t\tdouble r10 = n10 * m00 + n11 * m10 + n12 * m20 + n13 * m30;\n\t\tdouble r11 = n10 * m01 + n11 * m11 + n12 * m21 + n13 * m31;\n\t\tdouble r12 = n10 * m02 + n11 * m12 + n12 * m22 + n13 * m32;\n\t\tdouble r13 = n10 * m03 + n11 * m13 + n12 * m23 + n13 * m33;\n\n\t\tdouble r20 = n20 * m00 + n21 * m10 + n22 * m20 + n23 * m30;\n\t\tdouble r21 = n20 * m01 + n21 * m11 + n22 * m21 + n23 * m31;\n\t\tdouble r22 = n20 * m02 + n21 * m12 + n22 * m22 + n23 * m32;\n\t\tdouble r23 = n20 * m03 + n21 * m13 + n22 * m23 + n23 * m33;\n\n\t\tdouble r30 = n30 * m00 + n31 * m10 + n32 * m20 + n33 * m30;\n\t\tdouble r31 = n30 * m01 + n31 * m11 + n32 * m21 + n33 * m31;\n\t\tdouble r32 = n30 * m02 + n31 * m12 + n32 * m22 + n33 * m32;\n\t\tdouble r33 = n30 * m03 + n31 * m13 + n32 * m23 + n33 * m33;\n\n\t\tm00 = r00;\n\t\tm01 = r01;\n\t\tm02 = r02;\n\t\tm03 = r03;\n\t\tm10 = r10;\n\t\tm11 = r11;\n\t\tm12 = r12;\n\t\tm13 = r13;\n\t\tm20 = r20;\n\t\tm21 = r21;\n\t\tm22 = r22;\n\t\tm23 = r23;\n\t\tm30 = r30;\n\t\tm31 = r31;\n\t\tm32 = r32;\n\t\tm33 = r33;\n\t}", "title": "" }, { "docid": "91276ba883e51f7054a8188163700620", "score": "0.41875127", "text": "@Test\n\tpublic void smallTestForcedRatio() {\n\t\t// build up some reads\n\t\tList<VariantData> list = new ArrayList<>();\n\n\t\tlist.add(new VariantData(new Interval (\"1\", 1, 1), 'A', 'T', GenotypeType.HOM_REF, GenotypeType.HOM_VAR, new char [] {'A', 'A'}, new int [] {10,10}));\n\t\tlist.add(new VariantData(new Interval (\"1\", 2, 2), 'A', 'T', GenotypeType.HOM_REF, GenotypeType.HET, new char [] {'A', 'T'}, new int [] {10,10}));\n\t\tlist.add(new VariantData(new Interval (\"1\", 3, 3), 'A', 'T', GenotypeType.HOM_REF, GenotypeType.HOM_REF, new char [] {'A', 'T'}, new int [] {10,10}));\n\t\tlist.add(new VariantData(new Interval (\"1\", 4, 4), 'A', 'T', GenotypeType.HET, GenotypeType.HOM_VAR, new char [] {'T', 'T'}, new int [] {10,10}));\n\t\tlist.add(new VariantData(new Interval (\"1\", 5, 5), 'A', 'T', GenotypeType.HOM_REF, GenotypeType.HET, new char [] {'A', 'T'}, new int [] {10,10}));\n\n\t\tVariantDataCollection vcd = new VariantDataCollection(list, \"one\", \"two\", \"testCell\");\n\t\tdouble likeS1 = vcd.value(1);\n\t\tdouble likeS2 = vcd.value(0);\n\t\tdouble likePerfectMix=vcd.value(0.5);\n\t\tSamplePairAssignmentForCell s = vcd.optimizeMixture();\n\t\tdouble likeMixed= s.getDoubletLikelihood();\n\t\tdouble mixture = s.getMixture();\n\t\t// the sample mixture is slightly different, but close enough. It seems like as I increase the number of observations (beyond just this handful) they converge.\n\t\t// this may be due to the fact that I stop convergence at 0.001 in the java version, so it can be off by a little bit.\n\n\t\tAssert.assertEquals(likeS1, -3.830847, 0.001);\n\t\tAssert.assertEquals(likeS2, -4.341392, 0.001);\n\t\tAssert.assertEquals(likeMixed, -3.306935, 0.001);\n\t\tAssert.assertEquals(mixture, 0.5540364, 0.015);\n\t\tAssert.assertEquals(s.getImpossibleAllelesSampleOne(),3);\n\t\tAssert.assertEquals(s.getImpossibleAllelesSampleTwo(),3);\n\n\t\tAssert.assertEquals(likePerfectMix, -3.313183, 0.001);\n\t}", "title": "" }, { "docid": "39cc20545368113db464da88224d93ba", "score": "0.41873297", "text": "private void calculateNewtonMetersCurve() {\n\n int accuracyBySec = 8;\n\n int spectrumLength = audioFicSpectrum.size();\n int nbCasesBy8mSec = (int) (spectrumLength / duration);\n nbCasesBy8mSec /= accuracyBySec;\n\n roundPerFrameVariation = new ArrayList<>();\n roundPerFrame = new ArrayList<>();\n\n int index = 0;\n int index2 = 0;\n int nbRound = 0;\n int lastNbRound = 0;\n\n // cette boucle sert a calculer le nombre d'explosions tout les 8emes de secondes\n while (index < spectrumLength) {\n\n if (audioFicSpectrum.get(index) != 0) {\n\n nbRound++;\n }\n\n if (index2 == nbCasesBy8mSec) {\n\n// int variation = (int) Math.sqrt((nbRound - lastNbRound) * (nbRound - lastNbRound));\n// roundPerFrameVariation.add((float) (nbRound - lastNbRound));\n\n nbRound /= pulseByRound;\n float valToAdd = nbRound;\n valToAdd /= demultiplication;\n roundPerFrameVariation.add(valToAdd);\n\n // on garde le nombre de tours par quart de sec\n // on multiplie par 8 pour avoir le nb de tour a l'instant t\n roundPerFrame.add(nbRound * accuracyBySec);\n lastNbRound = nbRound;\n nbRound = 0;\n index2 = 0;\n }\n\n index++;\n index2++;\n }\n\n // on lisse les tours car ils ne sont pas tres reguliers (deux fois)\n\n roundPerFrameVariation = smoothCruve(roundPerFrameVariation);\n roundPerFrameVariation = smoothCruve(roundPerFrameVariation);\n\n // on lisse les tours car ils ne sont pas tres reguliers\n\n index = 0;\n\n // on applique le coeficient aux variations trouvees\n while (index < roundPerFrameVariation.size()) {\n\n roundPerFrameVariation.set(index, roundPerFrameVariation.get(index) * inertiaMoment);\n index++;\n }\n }", "title": "" }, { "docid": "304674ebd33037e1871d80f28c006834", "score": "0.41868255", "text": "public RectF mo1700a() {\n float a = mo1696a((float) BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER, 8);\n boolean z = true;\n float a2 = mo1696a(a, 1);\n float a3 = mo1696a(a, 3);\n float a4 = mo1696a(a, 0);\n float a5 = mo1696a(a, 2);\n if (this.f780a != null) {\n if (this.f805z != 1) {\n z = false;\n }\n float[] fArr = this.f780a.a;\n float f = fArr[4];\n float f2 = fArr[5];\n if (Ty.a().a(this.f804y)) {\n if (!eF.a(f)) {\n a4 = f;\n }\n if (!eF.a(f2)) {\n a5 = f2;\n }\n float f3 = z ? a5 : a4;\n if (z) {\n a5 = a4;\n }\n a4 = f3;\n } else {\n float f4 = z ? f2 : f;\n if (z) {\n f2 = f;\n }\n if (!eF.a(f4)) {\n a4 = f4;\n }\n if (!eF.a(f2)) {\n a5 = f2;\n }\n }\n }\n return new RectF(a4, a2, a5, a3);\n }", "title": "" }, { "docid": "504ef741e9879636d5db01367776f03a", "score": "0.41867328", "text": "@Override\n public double getSpecialityPoints() {\n return offRebRatio;\n }", "title": "" }, { "docid": "535af2ddd4617cf43cbd3edc3905cc4c", "score": "0.4186225", "text": "public RegtfRegistCentExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "54464f08d0cb3a18740e8ab420fa544c", "score": "0.41780925", "text": "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(617);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "32355929a6164d9231783d903f9e96b7", "score": "0.4175671", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n int[] intArray0 = new int[2];\n discretize0.setAttributeIndicesArray(intArray0);\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "120f00091cbc2a6ca2049070ac74b600", "score": "0.4173775", "text": "@Override\n public float getDistanceOfReference() {\n return 15;\n }", "title": "" }, { "docid": "7571fcbb00d8214b3e3dd8de65677a36", "score": "0.41691735", "text": "private List<Integer> confidenceInterval(int hapCount, int totalCount, boolean observed) {\n\t\tList<Integer> ci = new ArrayList<>();\n\t\tString bool = observed == true ? \"TRUE\" : \"FALSE\";\n\t\ttry {\n\t\t\tRConnection rconn = new RConnection();\n\t\t\trconn.eval(\"source('/home/hocine/Rserve/scripts/ciproportion.R')\");\n\t\t\tString rcommand = \"ciproportion(\" + hapCount + \", \" + totalCount + \", \" + bool + \")\";\n\t\t\tdouble [] ciLimits = (double[]) rconn.eval(rcommand).asDoubles();\n\t\t\tif(ciLimits.length == 2) {\n\t\t\t\tci.add((int)(ciLimits[1]));\n\t\t\t\tci.add((int)(ciLimits[0]));\n\t\t\t}\n\t\t} catch (RserveException e) {\n\t\t\te.printStackTrace();\n\t\t} catch(REXPMismatchException re) {\n\t\t\tre.printStackTrace();\n\t\t}\n\t\treturn ci;\n\t}", "title": "" }, { "docid": "03eab0695b940d15661a6b1519d22396", "score": "0.41686395", "text": "@Test\n public void whenBound3Then14916() {\n int bound = 4;\n Square square = new Square();\n int[] rst = square.calculate(bound);\n int[] expect = new int[] {1, 4, 9, 16};\n assertThat(rst, is(expect));\n }", "title": "" }, { "docid": "1762a440ac1ba442b3530f18ceabfc44", "score": "0.4163841", "text": "double calc(final double lnPga, final double vs30, final double vs30r) {\n\n double dy, dyr, site, siter = 0.0;\n\n double bnl, bnlr;\n // some site term precalcs that are not M or d dependent\n if (V1 < vs30 && vs30 <= V2) {\n bnl = (c.b1 - c.b2) * log(vs30 / V2) / log(V1 / V2) + c.b2;\n } else if (V2 < vs30 && vs30 <= VREF) {\n bnl = c.b2 * log(vs30 / VREF) / log(V2 / VREF);\n } else if (vs30 <= V1) {\n bnl = c.b1;\n } else {\n bnl = 0.0;\n }\n\n if (V1 < vs30r && vs30r <= V2) {\n // repeat site term precalcs that are not M or d dependent\n // @ reference vs\n bnlr = (c.b1 - c.b2) * log(vs30r / V2) / log(V1 / V2) + c.b2;\n } else if (V2 < vs30r && vs30r <= VREF) {\n bnlr = c.b2 * log(vs30r / VREF) / log(V2 / VREF);\n } else if (vs30r <= V1) {\n bnlr = c.b1;\n } else {\n bnlr = 0.0;\n }\n\n dy = bnl * A2FAC; // ADF added line\n dyr = bnlr * A2FAC;\n site = c.blin * log(vs30 / VREF);\n siter = c.blin * log(vs30r / VREF);\n\n // Second part, nonlinear siteamp reductions below.\n if (lnPga <= A1) {\n site = site + bnl * PLFAC;\n siter = siter + bnlr * PLFAC;\n } else if (lnPga <= A2) {\n // extra lines smooth a kink in siteamp, pp 9-11 of boore sept\n // report. c and d from p 10 of boore sept report. Smoothing\n // introduces extra calcs in the range a1 < pganl < a2. Otherwise\n // nonlin term same as in june-july. Many of these terms are fixed\n // and are defined in data or parameter statements. Of course, if a1\n // and a2 change from their sept 06 values the parameters will also\n // have to be redefined. (a1,a2) represents a siteamp smoothing\n // range (units g)\n double cc = (3. * dy - bnl * DX) / DXSQ;\n double dd = (bnl * DX - 2. * dy) / DXCUBE;\n double pgafac = log(lnPga / A1);\n double psq = pgafac * pgafac;\n site = site + bnl * PLFAC + (cc + dd * pgafac) * psq;\n cc = (3. * dyr - bnlr * DX) / DXSQ;\n dd = (bnlr * DX - 2. * dyr) / DXCUBE;\n siter = siter + bnlr * PLFAC + (cc + dd * pgafac) * psq;\n } else {\n double pgafac = log(lnPga / 0.1);\n site = site + bnl * pgafac;\n siter = siter + bnlr * pgafac;\n }\n return site - siter;\n }", "title": "" }, { "docid": "d670aa9fe95c4937e1ed099606a3dae3", "score": "0.41605416", "text": "private int[] get_autopsy_scope(int[] hit_starts, int[] hit_ends)\n\t{\n\t\tdouble nh = (double) hit_starts.length; \n\t\tassert hit_starts.length == hit_ends.length: \"Error: inconsistent number of hits\";\n\t\tint[] n_at_first_mr = new int[MAX_RADIUS], n_at_last_mr = new int[MAX_RADIUS];\n\t\tfor (int hs : hit_starts)\n\t\t\tif (hs < MAX_RADIUS)\tn_at_first_mr[hs-1] += 1; \n\t\tfor (int he : hit_ends)\n\t\t\tif (he >= -1*MAX_RADIUS)\tn_at_last_mr[he*-1 -1] += 1;\n\t\tint[] out = new int[] {0,0};\n\t\tint[] cumul = new int[] {0,0};\n\t\tboolean[] freeze = new boolean[] {false, false};\n\t\twhile (out[0] >= -1*MAX_RADIUS && out[1] <= MAX_RADIUS && (!freeze[0] || !freeze[1])) \n\t\t{\n\t\t\tif (!freeze[0])\n\t\t\t{\t\n\t\t\t\tcumul[0] += n_at_first_mr[-1 * out[0]];\n\t\t\t\tfreeze[0] = (double)cumul[0] / nh > 0.32;\n\t\t\t\tif (!freeze[0])\tout[0]--; \n\t\t\t}\n\t\t\tif (!freeze[1])\n\t\t\t{\n\t\t\t\tcumul[1] += n_at_last_mr[out[0]];\n\t\t\t\tfreeze[1] = (double) cumul[1] / nh > 0.32; \t\n\t\t\t\tif (!freeze[1])\tout[1]++;\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}", "title": "" }, { "docid": "4b678dc0b84e42825fd577eca662dd4c", "score": "0.4160477", "text": "@Test\n void testDIACorrelation() {\n double[] mainX = {-2, -1.9, -1.8, -1.7, -1.6, -1.5, -1.4, -1.3, -1.2, -1.1, -1, -0.9, -0.8,\n -0.7, -0.6, -0.5, -0.4, -0.3, -0.2, -0.1, 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1,\n 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2};\n\n double[] mainY = new double[mainX.length];\n\n for (int i = 0; i < mainX.length; i++) {\n mainY[i] = gauss(mainX[i], 0.25, 0);\n }\n\n // shift x values so we have to interpolate\n double[] xShiftedBy0_05 = {-1.95, -1.85, -1.75, -1.65, -1.55, -1.45, -1.35, -1.25, -1.15, -1.05,\n -0.95, -0.85, -0.75, -0.65, -0.55, -0.45, -0.35, -0.25, -0.15, -0.05, 0.05, 0.15, 0.25,\n 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 1.05, 1.15, 1.25, 1.35, 1.45, 1.55, 1.65, 1.75,\n 1.85, 1.95, 2.05};\n double[] y_shifted = new double[xShiftedBy0_05.length];\n for (int i = 0; i < mainX.length; i++) {\n y_shifted[i] = gauss(xShiftedBy0_05[i], 0.25, 0);\n }\n final CorrelationData correlationData = DIA.corrFeatureShape(mainX, mainY, xShiftedBy0_05,\n y_shifted, 5, 2, 0.0001);\n\n // distort shape by making it wider\n double[] y_distorted = new double[xShiftedBy0_05.length];\n for (int i = 0; i < mainX.length; i++) {\n y_distorted[i] = gauss(xShiftedBy0_05[i], 0.4, 0);\n }\n final CorrelationData correlationData2 = DIA.corrFeatureShape(mainX, mainY, xShiftedBy0_05,\n y_distorted, 5, 2, 0.0001);\n Assertions.assertTrue(correlationData.getPearsonR() > correlationData2.getPearsonR());\n Assertions.assertTrue(\n correlationData.getCosineSimilarity() > correlationData2.getCosineSimilarity());\n\n // shift and distort\n double[] y_shifted_distorted = new double[xShiftedBy0_05.length];\n for (int i = 0; i < mainX.length; i++) {\n y_shifted_distorted[i] = gauss(xShiftedBy0_05[i], 0.4, 0.25);\n }\n final CorrelationData correlationData3 = DIA.corrFeatureShape(mainX, mainY, xShiftedBy0_05,\n y_shifted_distorted, 5, 2, 0.0001);\n Assertions.assertTrue(correlationData2.getPearsonR() > correlationData3.getPearsonR());\n Assertions.assertTrue(\n correlationData2.getCosineSimilarity() > correlationData3.getCosineSimilarity());\n\n // less points, more to interpolate\n double[] x_lessPoints = new double[10];\n for (int i = 0; i < x_lessPoints.length; i++) {\n x_lessPoints[i] = xShiftedBy0_05[(int) (i * ((double) xShiftedBy0_05.length\n / x_lessPoints.length))];\n }\n double[] y_lessPoints = new double[x_lessPoints.length];\n for (int i = 0; i < x_lessPoints.length; i++) {\n y_lessPoints[i] = gauss(x_lessPoints[i], 0.25, 0);\n }\n final CorrelationData correlationData4 = DIA.corrFeatureShape(mainX, mainY, x_lessPoints,\n y_lessPoints, 5, 2, 0.0001);\n Assertions.assertTrue(correlationData2.getPearsonR() < correlationData4.getPearsonR());\n Assertions.assertTrue(\n correlationData2.getCosineSimilarity() < correlationData4.getCosineSimilarity());\n\n final CorrelationData correlationData5 = DIA.corrFeatureShape(x_lessPoints, y_lessPoints, mainX,\n mainY, 5, 2, 0.0001);\n Assertions.assertEquals(correlationData4.getPearsonR(), correlationData5.getPearsonR());\n Assertions.assertEquals(correlationData4.getCosineSimilarity(),\n correlationData5.getCosineSimilarity());\n }", "title": "" } ]
c6ebd602d7de7e9df4f47a8b479ddbc9
Retrieve the uppermost host which has a capability that is a subtype of the parameter type from the hosting stack of a unit. Does not use discovery.
[ { "docid": "523cb44b2ab3a89b43d74b17c60c703e", "score": "0.66395015", "text": "public static Unit findHostInStackWithCapability(Unit unit, EClass capType) {\r\n\t\twhile (unit != null) {\r\n\t\t\tif (ValidatorUtils.getCapability(unit, capType) != null) {\r\n\t\t\t\treturn unit;\r\n\t\t\t}\r\n\t\t\tunit = ValidatorUtils.getHost(unit);\r\n\t\t}\r\n\t\treturn unit;\r\n\t}", "title": "" } ]
[ { "docid": "ac2c0b773e29060f4b787dbd48f2fe99", "score": "0.65745443", "text": "public static Unit discoverHostInStackWithCapability(Unit unit, EClass capType,\r\n\t\t\tIProgressMonitor monitor) {\r\n\t\tassert CorePackage.eINSTANCE.getCapability().isSuperTypeOf(capType);\r\n\t\tUnit cur = TopologyDiscovererService.INSTANCE.findHost(unit, unit.getEditTopology(), monitor);\r\n\t\twhile (cur != null) {\r\n\t\t\tCapability cap = ValidatorUtils.getCapability(cur, capType);\r\n\t\t\tif (cap != null) {\r\n\t\t\t\treturn cur;\r\n\t\t\t}\r\n\r\n\t\t\tcur = TopologyDiscovererService.INSTANCE.findHost(cur, unit.getEditTopology(), monitor);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "c4b08f956294d31da9db7bbecf240de3", "score": "0.6072389", "text": "public static Unit discoverHostInStack(Unit unit, EClass type, IProgressMonitor monitor) {\r\n\t\t// Unit hostingUnit = unit;\r\n\t\t// while ((hostingUnit != null) &&\r\n\t\t// !type.isSuperTypeOf(hostingUnit.getEObject().eClass())) {\r\n\t\t// hostingUnit =\r\n\t\t// TopologyDiscovererService.INSTANCE.findHost(hostingUnit,\r\n\t\t// unit.getTopology());\r\n\t\t// // System.out.println(\"HostingUnit: \" + hostingUnit.getName());\r\n\t\t// \r\n\t\t// }\r\n\t\t//\t\t\r\n\t\t// return hostingUnit;\r\n\t\treturn TopologyDiscovererService.INSTANCE.findHost(unit, type, unit.getEditTopology(),\r\n\t\t\t\tmonitor);\r\n\t}", "title": "" }, { "docid": "027af51246fcf1ebd82e550ec604abf0", "score": "0.591519", "text": "public static Unit findHostInStack(Unit unit, EClass unitType) {\r\n\t\twhile (unit != null) {\r\n\t\t\tif (unitType.isSuperTypeOf(unit.eClass())) {\r\n\t\t\t\treturn unit;\r\n\t\t\t}\r\n\t\t\tunit = ValidatorUtils.getHost(unit);\r\n\t\t}\r\n\t\treturn unit;\r\n\t}", "title": "" }, { "docid": "2498765c1ff46ca38e2c46f28a93252c", "score": "0.59136397", "text": "public static Unit discoverHost(Capability cap, EClass unitType, IProgressMonitor monitor) {\r\n\t\tUnit host = discoverHost(cap, monitor);\r\n\t\tif (host == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif (unitType != null && !unitType.isInstance(cap)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn host;\r\n\t}", "title": "" }, { "docid": "4c4e55e632d9e98134fdbf963c262a1f", "score": "0.5861683", "text": "HostType getHost();", "title": "" }, { "docid": "f6455f67e71559ea3c60105a91a9c7b1", "score": "0.5813162", "text": "public static UnitDescriptor discoverHostUDInStack(Unit unit, EClass type,\r\n\t\t\tIProgressMonitor monitor) {\r\n\t\tUnit hostingUnit = unit;\r\n\t\tUnitDescriptor hostingUnitUD = null;\r\n\t\twhile (hostingUnit != null && !type.isSuperTypeOf(hostingUnit.getEObject().eClass())) {\r\n\t\t\thostingUnitUD = TopologyDiscovererService.INSTANCE.findHostUD(hostingUnit, unit\r\n\t\t\t\t\t.getEditTopology(), monitor);\r\n\t\t\tif (hostingUnitUD == null) {\r\n\t\t\t\thostingUnit = null;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\thostingUnit = hostingUnitUD.getUnitValue();\r\n\t\t\t// System.out.println(\"HostingUnit: \" + hostingUnit.getName());\r\n\t\t\t// \r\n\t\t}\r\n\t\treturn hostingUnitUD;\r\n\t}", "title": "" }, { "docid": "22088955287971f653df8dadbd5114e8", "score": "0.5586491", "text": "public static Unit discoverHost(Unit unit, EClass unitType, IProgressMonitor monitor) {\r\n\t\tif (unit == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tUnit host = TopologyDiscovererService.INSTANCE\r\n\t\t\t\t.findHost(unit, unit.getEditTopology(), monitor);\r\n\t\tif (host == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif (unitType != null && unitType.isInstance(unit)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n//\t\tif (unitType != null && unit != null && unitType.isSuperTypeOf(unit.getEObject().eClass())) {\r\n//\t\t\treturn host;\r\n//\t\t}\r\n//\t\treturn null;\r\n\t\treturn host;\r\n\t}", "title": "" }, { "docid": "3d5592856a14749fa8268f4ce380655e", "score": "0.55794096", "text": "public static Capability getFirstHostedCapability(Unit host, EClass hostedCapabilityType) {\r\n\t\tif (host == null || hostedCapabilityType == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfor (Iterator<HostingLink> iter = host.getHostingLinks().iterator(); iter.hasNext();) {\r\n\t\t\tHostingLink hosteeHL = iter.next();\r\n\t\t\tif (hosteeHL == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tUnit hostee = hosteeHL.getTarget();\r\n\t\t\tif (hostee == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tCapability cap = getFirstCapability(hostee, hostedCapabilityType);\r\n\t\t\tif (cap != null) {\r\n\t\t\t\treturn cap;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e4b5b3692fe96873e37a6d41b25427e2", "score": "0.5570636", "text": "public static Capability getCapability(Unit unit, EClass type) {\r\n\t\tif (unit == null || type == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfor (Iterator<Capability> iter = unit.getCapabilities().iterator(); iter.hasNext();) {\r\n\t\t\tCapability capability = iter.next();\r\n\t\t\tif (type.isSuperTypeOf(capability.getEObject().eClass())) {\r\n\t\t\t\treturn capability;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "aa7ba12e0de06469281d201cf8ee8ae1", "score": "0.5554399", "text": "public static Capability discoverHostCapability(Unit unit, EClass capabilityType,\r\n\t\t\tboolean recurse, IProgressMonitor monitor) {\r\n\t\tUnit host = discoverHost(unit, monitor);\r\n\t\twhile (host != null) {\r\n\t\t\tCapability cap = getFirstCapability(host, capabilityType);\r\n\t\t\tif (cap != null) {\r\n\t\t\t\treturn cap;\r\n\t\t\t}\r\n\t\t\tif (!recurse) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\thost = discoverHost(host, monitor);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "950383a8633706a8314bbccfe2823695", "score": "0.55301833", "text": "public static Capability getFirstCapabilitySupertype(Unit unit, EClass type) {\r\n\t\tif (unit == null || type == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfor (Iterator<Capability> it = unit.getCapabilities().iterator(); it.hasNext();) {\r\n\t\t\tCapability candidate = it.next();\r\n\t\t\tif (candidate.getEObject().eClass().isSuperTypeOf(type)) {\r\n\t\t\t\treturn candidate;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "04f4e000a38460418bc9fe0033904976", "score": "0.5408175", "text": "public static Capability getFirstCapability(Unit unit, EClass type) {\r\n\t\tif (unit == null || type == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n//\t\tList list = unit.getCapabilities();\r\n//\t\tfor (int i = 0; i < list.size(); i++) {\r\n//\t\t\tif (type.isInstance(list.get(i))) {\r\n//\t\t\t\treturn (Capability) list.get(i);\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\treturn null;\r\n//\t\tList list = unit.getCapabilities();\r\n\t\tfor (Iterator it = unit.getCapabilities().iterator(); it.hasNext();) {\r\n//\t\t\tif (type.isInstance(list.get(i))) {\r\n\t\t\tObject candidate = it.next();\r\n\t\t\tif (type.isInstance(candidate)) {\r\n\t\t\t\treturn (Capability) candidate;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "2be93ba3b33a0f13b1a431a264f3d697", "score": "0.5258912", "text": "public static List<Unit> discoverHosted(Unit host, EClass hostedUnitType,\r\n\t\t\tIProgressMonitor monitor) {\r\n\t\tArrayList<Unit> retList = new ArrayList<Unit>();\r\n\t\tList<UnitDescriptor> hostedByHostUnitDescriptors = TopologyDiscovererService.INSTANCE\r\n\t\t\t\t.findHosted(host, host.getTopology(), monitor);\r\n\t\tfor (Iterator<UnitDescriptor> iter = hostedByHostUnitDescriptors.iterator(); iter.hasNext();) {\r\n\t\t\tUnitDescriptor hosteeUD = iter.next();\r\n\t\t\tif (hosteeUD == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tUnit hostee = hosteeUD.getUnitValue();\r\n\t\t\tif (hostee != null && hostedUnitType.isSuperTypeOf(hostee.getEObject().eClass())) {\r\n\t\t\t\tretList.add(hostee);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retList;\r\n\t}", "title": "" }, { "docid": "19dcc8c6d3f22dd3fe362258e017e710", "score": "0.521904", "text": "public static Capability discoverFirstRequirementLinkTarget(Unit unit, EClass type,\r\n\t\t\tIProgressMonitor monitor) {\r\n\t\tUnit targetUnit = discoverFirstRequirementLinkTargetUnit(unit, type, monitor);\r\n\t\tif (targetUnit == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn getFirstCapability(targetUnit, type);\r\n\t}", "title": "" }, { "docid": "18fd0150bd86ed680c063d27bde483b4", "score": "0.5179957", "text": "public static Capability discoverHostCapability(Capability cap, EClass capabilityType,\r\n\t\t\tboolean recurse, IProgressMonitor monitor) {\r\n\t\tif (cap == null || !(cap.getParent() instanceof Unit)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn discoverHostCapability((Unit) cap.getParent(), capabilityType, recurse, monitor);\r\n\t}", "title": "" }, { "docid": "e1eab88cc2bb2083b12b89803e2e55ad", "score": "0.513437", "text": "public static List<Unit> discoverHosted(Unit host, Topology top, IProgressMonitor monitor) {\r\n\t\tList<UnitDescriptor> hostedByHostUnitDescriptors = TopologyDiscovererService.INSTANCE\r\n\t\t\t\t.findHosted(host, top, monitor);\r\n\t\tArrayList<Unit> retList = new ArrayList<Unit>(hostedByHostUnitDescriptors.size());\r\n\t\tfor (Iterator<UnitDescriptor> iter = hostedByHostUnitDescriptors.iterator(); iter.hasNext();) {\r\n\t\t\tUnitDescriptor hosteeUD = iter.next();\r\n\t\t\tif (hosteeUD == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tUnit hostee = hosteeUD.getUnitValue();\r\n\t\t\tif (hostee != null) {\r\n\t\t\t\tretList.add(hostee);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retList;\r\n\t}", "title": "" }, { "docid": "6a98fddec77ebd145e2ff1e686a2b314", "score": "0.50852156", "text": "public static List<Unit> discoverHostedWithCapability(Unit unit, EClass capType,\r\n\t\t\tboolean recurse, IProgressMonitor monitor) {\r\n\t\tassert CorePackage.eINSTANCE.getCapability().isSuperTypeOf(capType);\r\n\t\tList<Unit> retList = null;\r\n\t\tList<UnitDescriptor> hostedByHostUnitDescriptors = TopologyDiscovererService.INSTANCE\r\n\t\t\t\t.findHosted(unit, unit.getTopology(), monitor);\r\n\t\tfor (Iterator<UnitDescriptor> iter = hostedByHostUnitDescriptors.iterator(); iter.hasNext();) {\r\n\t\t\tUnitDescriptor hosteeUD = iter.next();\r\n\t\t\tif (hosteeUD == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tUnit hostee = hosteeUD.getUnitValue();\r\n\t\t\tif (hostee == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tfor (Iterator<Capability> iter2 = hostee.getCapabilities().iterator(); iter2.hasNext();) {\r\n\t\t\t\tCapability cap = iter2.next();\r\n\t\t\t\tif (capType.isInstance(cap)) {\r\n\t\t\t\t\tif (retList == null) {\r\n\t\t\t\t\t\tretList = new ArrayList<Unit>();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tretList.add(hostee);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (recurse) {\r\n\t\t\t\tList<Unit> subList = discoverHostedWithCapability(hostee, capType, true, monitor);\r\n\t\t\t\tif (subList.size() > 0) {\r\n\t\t\t\t\tif (retList == null) {\r\n\t\t\t\t\t\tretList = subList;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tretList.addAll(subList);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (retList == null) {\r\n\t\t\treturn Collections.emptyList();\r\n\t\t}\r\n\t\treturn retList;\r\n\t}", "title": "" }, { "docid": "f875b5248f1d448cd17ec9a9edbe381c", "score": "0.492874", "text": "<T> LazyOptional<T> getCapability(IToolStackView tool, Capability<T> cap);", "title": "" }, { "docid": "445d1bf357ecdeacaacfd15e6674d812", "score": "0.4922157", "text": "List<BgpValueType> remoteBgpCapability();", "title": "" }, { "docid": "eb76afa79950303d9e2cc3e7252a7e23", "score": "0.4906601", "text": "Facility getFacilityForHost(PerunSession sess, Host host) throws PrivilegeException, HostNotExistsException;", "title": "" }, { "docid": "27b0d2f4fcfba84d133cc2a24cb17a72", "score": "0.48765075", "text": "public static Capability discoverDependencyLinkTarget(Requirement req, Topology top,\r\n\t\t\tboolean relaxedDmoType, IProgressMonitor monitor) {\r\n//\t\tif (req == null) {\r\n//\t\t\treturn null;\r\n//\t\t}\r\n//\r\n//\t\tUnit unit = getUnit(req);\r\n//\t\tif (unit == null) {\r\n//\t\t\treturn null;\r\n//\t\t}\r\n//\t\tUnitDescriptor ud = TopologyDiscovererService.INSTANCE.findTarget(unit,\r\n//\t\t\t\treq, top);\r\n//\t\tif (ud == null) {\r\n//\t\t\treturn null;\r\n//\t\t}\r\n//\t\tUnit targetUnit = ud.getUnitValue();\r\n\t\tUnit targetUnit = discoverDependencyLinkTargetUnit(req, top, monitor);\r\n\t\tif (targetUnit == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif (req.getDmoEType() == null) {\r\n\t\t\tif (targetUnit.getCapabilities().size() > 0) {\r\n\t\t\t\treturn (Capability) targetUnit.getCapabilities().get(0);\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tCapability cap = getFirstCapability(targetUnit, req.getDmoEType());\r\n\t\tif (cap != null) {\r\n\t\t\treturn cap;\r\n\t\t}\r\n\t\tif (relaxedDmoType) {\r\n\t\t\t// will llok also for capabilities that are supertypes of req.getDmoEtype()\r\n\t\t\treturn getFirstCapabilitySupertype(targetUnit, req.getDmoEType());\r\n\t\t}\r\n\t\treturn cap;\r\n\t}", "title": "" }, { "docid": "60a73c0c23327399686663e9fe4f5270", "score": "0.48618558", "text": "public static Capability discoverGroupByCapabilityType(Unit member, EClass groupCapabilityType,\r\n\t\t\tIProgressMonitor monitor) {\r\n\t\tif (member == null || member.getTopology() == null || groupCapabilityType == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t// Look in topology first.\r\n\t\tCapability cap = findGroupByCapabilityType(member, groupCapabilityType);\r\n\t\tif (cap != null) {\r\n\t\t\treturn cap;\r\n\t\t}\r\n\r\n\t\t// Fallback to discovery.\r\n\t\tList groups = TopologyDiscovererService.INSTANCE.getGroups(member, null,\r\n\t\t\t\tmember.getTopology(), monitor);\r\n\t\tfor (Iterator iter = groups.iterator(); iter.hasNext();) {\r\n\t\t\tUnitDescriptor descr = (UnitDescriptor) iter.next();\r\n\t\t\tUnit unit = descr.getUnitValue();\r\n\t\t\tfor (Iterator iter2 = unit.getCapabilities().iterator(); iter2.hasNext();) {\r\n\t\t\t\tcap = (Capability) iter2.next();\r\n\t\t\t\tif (groupCapabilityType.isInstance(cap)) {\r\n\t\t\t\t\treturn cap;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "cedd0b92789f719c6fc8363856117b19", "score": "0.48589215", "text": "public Byte getHost(){\n\t\treturn networkLayer.host();\n\t}", "title": "" }, { "docid": "92a6477d833f8c84fbdef6cef440227e", "score": "0.48583737", "text": "public static List<Capability> discoverHostedCapabilities(Unit unit, EClass capType,\r\n\t\t\tboolean recurse, IProgressMonitor monitor) {\r\n\t\tif (capType == null) {\r\n\t\t\tcapType = CorePackage.eINSTANCE.getCapability();\r\n\t\t}\r\n\t\tassert CorePackage.eINSTANCE.getCapability().isSuperTypeOf(capType);\r\n\t\tif (unit == null) {\r\n\t\t\treturn Collections.emptyList();\r\n\t\t}\r\n\t\tList<Capability> retList = null;\r\n\r\n\t\t// List of hostees to recurse and detect cycles\r\n\t\tList<Unit> hosteeList;\r\n\t\tif (recurse) {\r\n\t\t\thosteeList = new ArrayList<Unit>();\r\n\t\t\thosteeList.add(unit);\r\n\t\t} else {\r\n\t\t\thosteeList = Collections.singletonList(unit);\r\n\t\t}\r\n\t\tint index = 0;\r\n\t\twhile (hosteeList.size() > index) {\r\n\t\t\tUnit curr = hosteeList.get(index++);\r\n\t\t\tList<UnitDescriptor> hostedByHostUnitDescriptors = TopologyDiscovererService.INSTANCE\r\n\t\t\t\t\t.findHosted(curr, curr.getTopology(), monitor);\r\n\t\t\tfor (Iterator<UnitDescriptor> iter = hostedByHostUnitDescriptors.iterator(); iter\r\n\t\t\t\t\t.hasNext();) {\r\n\t\t\t\tUnitDescriptor hosteeUD = iter.next();\r\n\t\t\t\tif (hosteeUD == null) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tUnit hostee = hosteeUD.getUnitValue();\r\n\t\t\t\tif (hostee == null) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tfor (Iterator<Capability> iter2 = hostee.getCapabilities().iterator(); iter2.hasNext();) {\r\n\t\t\t\t\tCapability cap = iter2.next();\r\n\t\t\t\t\tif (capType.isInstance(cap)) {\r\n\t\t\t\t\t\tif (retList == null) {\r\n\t\t\t\t\t\t\tretList = new ArrayList<Capability>();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tretList.add(cap);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (recurse && !hosteeList.contains(hostee)) {\r\n\t\t\t\t\thosteeList.add(hostee);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (retList == null) {\r\n\t\t\treturn Collections.emptyList();\r\n\t\t}\r\n\t\treturn retList;\r\n\t}", "title": "" }, { "docid": "dc3719d9eb1252224a5522d1f8795726", "score": "0.48580205", "text": "public static Capability discoverFirstRequirementLinkTarget(Capability cap, EClass type,\r\n\t\t\tIProgressMonitor monitor) {\r\n\t\tif (cap == null || !(cap.getParent() instanceof Unit)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn discoverFirstRequirementLinkTarget((Unit) cap.getParent(), type, monitor);\r\n\t}", "title": "" }, { "docid": "e95accdbb2c7e768b57797cd854d818e", "score": "0.48427346", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic <T extends Capability> T findCapability(Class<T> clazzToFind) {\n\t\tT cap = null;\n\t\t\n\t\tif(this.capabilities != null) {\n\t\t\tfor(Capability c : this.capabilities) {\n\t\t\t\tif(c.getClass().equals(clazzToFind)) {\n\t\t\t\t\tcap = (T)c;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn cap;\n\t}", "title": "" }, { "docid": "d8b975fc44b5db35b51a018ab87eeb11", "score": "0.48245728", "text": "private Unit getExpectedUnit(List<Unit> stack, EClass type) {\r\n\t\tfor (Unit u : stack) {\r\n\t\t\tif (type.isSuperTypeOf(u.getEObject().eClass())) {\r\n\t\t\t\treturn u;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b6e0c74b2b21a9c4c8105a5a9c89949a", "score": "0.47968373", "text": "public static Unit discoverFirstRequirementLinkTargetUnit(Unit unit, EClass type,\r\n\t\t\tIProgressMonitor monitor) {\r\n\t\tRequirement req = getFirstRequirement(unit, type);\r\n\t\tif (req == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tUnitDescriptor descr = TopologyDiscovererService.INSTANCE.findTarget(unit, req, unit\r\n\t\t\t\t.getTopology(), monitor);\r\n\t\tif (descr == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tUnit targetUnit = descr.getUnitValue();\r\n\t\treturn targetUnit;\r\n\t}", "title": "" }, { "docid": "1e2c0802ca9f94543a7de6cb304499ee", "score": "0.47704566", "text": "public static List<Unit> getHosted(Unit host, EClass hostedUnitType) {\r\n\t\tif (host == null || host.getGoalInstallState() == InstallState.NOT_INSTALLED_LITERAL) {\r\n\t\t\treturn Collections.emptyList();\r\n\t\t}\r\n\t\tTopology topology = host.getEditTopology();\r\n\t\tif (topology == null) {\r\n\t\t\t// cannot determine host without topology\r\n\t\t\treturn Collections.emptyList();\r\n\t\t}\r\n\t\tList<DeployModelObject> peerSet = RealizationLinkUtil.getRealizationLinkedPath(host,\r\n\t\t\t\tRealizationLinkUtil.WALK_UP);\r\n\t\tList<Unit> hostedUnits = new ArrayList<Unit>();\r\n\t\tfor (Iterator<DeployModelObject> iter = peerSet.iterator(); iter.hasNext();) {\r\n\t\t\tDeployModelObject object = iter.next();\r\n\t\t\tif (object instanceof Unit) {\r\n\t\t\t\tUnit unit = (Unit) object;\r\n\t\t\t\tCollection<HostingLink> hostingLinks = topology.getRelationships().getHostedLinks(unit);\r\n\t\t\t\tfor (Iterator<HostingLink> iter2 = hostingLinks.iterator(); iter2.hasNext();) {\r\n\t\t\t\t\tHostingLink link = iter2.next();\r\n\t\t\t\t\tif (link.getTarget() != null) {\r\n\t\t\t\t\t\tDeployModelObject target = RealizationLinkUtil.getFinalRealization(link\r\n\t\t\t\t\t\t\t\t.getTarget());\r\n\t\t\t\t\t\tif (target != host\r\n\t\t\t\t\t\t\t\t&& target instanceof Unit\r\n\t\t\t\t\t\t\t\t&& !hostedUnits.contains(target)\r\n\t\t\t\t\t\t\t\t&& (hostedUnitType == null || hostedUnitType.isSuperTypeOf(target\r\n\t\t\t\t\t\t\t\t\t\t.getEObject().eClass()))) {\r\n\t\t\t\t\t\t\tUnit hosted = (Unit) target;\r\n\t\t\t\t\t\t\tif (hosted.getGoalInstallState() != InstallState.NOT_INSTALLED_LITERAL) {\r\n\t\t\t\t\t\t\t\tList<Unit> disambiguatedHosts = getAllHosts(hosted);\r\n\t\t\t\t\t\t\t\tList<Unit> disambiguatedPaths = new ArrayList<Unit>();\r\n\t\t\t\t\t\t\t\tfor (Iterator<Unit> disIter = disambiguatedHosts.iterator(); disIter\r\n\t\t\t\t\t\t\t\t\t\t.hasNext();) {\r\n\t\t\t\t\t\t\t\t\tdisambiguatedPaths\r\n\t\t\t\t\t\t\t\t\t\t\t.addAll((Collection<? extends Unit>) RealizationLinkUtil\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getRealizationLinkedPath(disIter.next(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRealizationLinkUtil.WALK_UP));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (disambiguatedPaths.contains(host)\r\n\t\t\t\t\t\t\t\t\t\t|| peerSet.containsAll(disambiguatedHosts)) {\r\n\t\t\t\t\t\t\t\t\thostedUnits.add(hosted);\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\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 hostedUnits;\r\n\t}", "title": "" }, { "docid": "d96aa5d72bad132a2aaa8e52a9ef4072", "score": "0.47616592", "text": "public static List<Capability> findCapabilities(Unit unit, EClass type) {\r\n\t\tif (unit == null) {\r\n\t\t\treturn Collections.emptyList();\r\n\t\t}\r\n\t\tArrayList<Capability> list = new ArrayList<Capability>();\r\n\t\tfor (Iterator<Capability> iter = unit.getCapabilities().iterator(); iter.hasNext();) {\r\n\t\t\tCapability capability = iter.next();\r\n\t\t\tif (type.isSuperTypeOf(capability.getEObject().eClass())) {\r\n\t\t\t\tlist.add(capability);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "cb2bf37be8d9b427b1d3f2ba78f40d80", "score": "0.47559568", "text": "public static Unit discoverFirstRequirementLinkTargetUnit(Capability cap, EClass type,\r\n\t\t\tIProgressMonitor monitor) {\r\n\t\tif (cap == null || !(cap.getParent() instanceof Unit)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn discoverFirstRequirementLinkTargetUnit((Unit) cap.getParent(), type, monitor);\r\n\t}", "title": "" }, { "docid": "2b28fa02cdbe41a7f590cc0173b4b5dc", "score": "0.47546223", "text": "public static List<Unit> getImmediateHosts(Unit unit) {\r\n\t\tTopology topology = unit.getTopology();\r\n\t\tif (topology == null) {\r\n\t\t\t// cannot determine host without topology\r\n\t\t\treturn Collections.emptyList();\r\n\t\t}\r\n\t\tUnit[] hosters = topology.findHosts(unit);\r\n\t\tif (hosters.length == 1) {\r\n\t\t\treturn Collections.singletonList(hosters[0]);\r\n\t\t} else if (hosters.length > 1) {\r\n\t\t\treturn Arrays.asList(hosters);\r\n\t\t}\r\n\t\treturn Collections.emptyList();\r\n\t}", "title": "" }, { "docid": "8b5d2cddde1fb818216e8de572337cb5", "score": "0.47151697", "text": "public static Unit discoverHost(Unit unit, IProgressMonitor monitor) {\r\n\t\tif (unit == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn TopologyDiscovererService.INSTANCE.findHost(unit, unit.getEditTopology(), monitor);\r\n\t}", "title": "" }, { "docid": "0f645f733ca5dda781d200176638ac7b", "score": "0.46991372", "text": "@objid (\"80b95525-1dec-11e2-8cad-001ec947c8cc\")\n protected MObject getHostElement() {\n if (getHost().getModel() instanceof GmModel) {\n return ((GmModel) getHost().getModel()).getRelatedElement();\n }\n return null;\n }", "title": "" }, { "docid": "63b373cb16c5d163fef0d42bc1559d09", "score": "0.46941563", "text": "public ParameterizedType get() {\n return stack.peek();\n }", "title": "" }, { "docid": "de3cd3bd2e66c44cd0f6992b7c7c6ff0", "score": "0.46506867", "text": "@SuppressWarnings({\"unchecked\", \"cast\"}) public TypeDecl hostType() {\n TypeDecl hostType_value = getParent().Define_TypeDecl_hostType(this, null);\n return hostType_value;\n }", "title": "" }, { "docid": "958dbf3d6893d872354e933c2938af2d", "score": "0.46282348", "text": "interface ForCallSite {\n ElementMatcher<TypeDescription> callerType();\n }", "title": "" }, { "docid": "f4c4fa4e9c644b7cfaf5fe338f6406e9", "score": "0.46231216", "text": "LightObject getContaining(EClass eClass);", "title": "" }, { "docid": "efc99fcd4387272049db0fc40e2db024", "score": "0.45884869", "text": "TreeNode getTheHostNode(TreeNode thisNode) {\n List<TreeNode> hostNodes = getHostNodes(thisNode, new ArrayList<>());\n if (hostNodes == null || hostNodes.isEmpty()) {\n return null;\n }\n return hostNodes.get(0);\n }", "title": "" }, { "docid": "20116c16728633f1f4bbcc353060af79", "score": "0.45883277", "text": "public static List<Capability> getCapabilities(Unit unit, EClass type) {\r\n\t\tif (unit == null) {\r\n\t\t\treturn Collections.emptyList();\r\n\t\t}\r\n\t\tArrayList<Capability> list = new ArrayList<Capability>();\r\n\t\tfor (Iterator<Capability> capabilities = unit.getCapabilities().iterator(); capabilities\r\n\t\t\t\t.hasNext();) {\r\n\t\t\tCapability cap = capabilities.next();\r\n\t\t\tif (type.isSuperTypeOf(cap.getEObject().eClass())) {\r\n\t\t\t\tlist.add(cap);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "302d244dbaae83173f17aac51defd4c7", "score": "0.45660952", "text": "@SuppressWarnings(\"unchecked\")\n public static <T> T findNode(Stack<Node> stack, Class<T> target) {\n for (int i = stack.size() - 2; i >= 0; i--) {\n if (target.isInstance(stack.get(i))) {\n return (T) stack.get(i);\n }\n }\n return null;\n }", "title": "" }, { "docid": "f11f9578dfd33b4be7e0b6eb029e8978", "score": "0.45587578", "text": "public static Capability getFirstRequirementLinkTargetCapability(Unit unit, EClass type) {\r\n\t\tRequirement req = getFirstRequirement(unit, type);\r\n\t\treturn getLinkTargetCapability(req);\r\n\t}", "title": "" }, { "docid": "28b662601a3116bdff34df73afcf14be", "score": "0.45409825", "text": "Host findByUUID(String uuid) throws Exception;", "title": "" }, { "docid": "a167d03d7eb4a6002d18cab3f7086381", "score": "0.4534617", "text": "public static List<Capability> discoverMemberCapabilities(Unit unit, EClass unitType,\r\n\t\t\tEClass capabilityType, IProgressMonitor monitor) {\r\n\t\tassert CorePackage.eINSTANCE.getUnit().isSuperTypeOf(unitType);\r\n\t\tassert CorePackage.eINSTANCE.getCapability().isSuperTypeOf(capabilityType);\r\n\t\tif (unit == null) {\r\n\t\t\treturn Collections.emptyList();\r\n\t\t}\r\n\t\tList<Capability> retList = null;\r\n\t\tfor (Iterator<Requirement> reqIter = unit.getMemberOrAnyRequirements().iterator(); reqIter\r\n\t\t\t\t.hasNext();) {\r\n\t\t\tRequirement req = reqIter.next();\r\n\t\t\tif (unitType != null && !unitType.isSuperTypeOf(req.getDmoEType())) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tList<UnitDescriptor> memberUnitDescriptors = TopologyDiscovererService.INSTANCE\r\n\t\t\t\t\t.getMembers(unit, req, unit.getTopology(), monitor);\r\n\t\t\tfor (Iterator<UnitDescriptor> iter = memberUnitDescriptors.iterator(); iter.hasNext();) {\r\n\t\t\t\tUnitDescriptor memberUD = iter.next();\r\n\t\t\t\tif (memberUD == null) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tUnit member = memberUD.getUnitValue();\r\n\t\t\t\tif (member == null) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tfor (Iterator<Capability> iter2 = member.getCapabilities().iterator(); iter2.hasNext();) {\r\n\t\t\t\t\tCapability cap = iter2.next();\r\n\t\t\t\t\tif (capabilityType == null || capabilityType.isInstance(cap)) {\r\n\t\t\t\t\t\tif (retList == null) {\r\n\t\t\t\t\t\t\tretList = new ArrayList<Capability>();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tretList.add(cap);\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\tif (retList == null) {\r\n\t\t\treturn Collections.emptyList();\r\n\t\t}\r\n\t\treturn retList;\r\n\t}", "title": "" }, { "docid": "a67c1a81119a3d529b92c7c13db6d42d", "score": "0.45241588", "text": "public HostInterfaces getHostInterfaces();", "title": "" }, { "docid": "6880615c06134e4e6c3535cdadd08215", "score": "0.4516112", "text": "Optional<Variable> getBoundVariable();", "title": "" }, { "docid": "2942451cbd9c85011db814246fc28ffb", "score": "0.45147762", "text": "ParameterDefinition getParameter();", "title": "" }, { "docid": "233ce5b052b3248fc6e0b6c2bced758d", "score": "0.45144907", "text": "Hyperplane<P> getHyperplane();", "title": "" }, { "docid": "31c6d7fcc9fd7df78c6f17467a3111b7", "score": "0.4480262", "text": "CapabilityDefinition getCapability(String nameOrNamespace);", "title": "" }, { "docid": "be6505cae3b95b8327f8d0d8a6e90a1c", "score": "0.4479698", "text": "public KVStorageNode getResponsibleStorageNode(BigInteger hash){\n for(BigInteger key: metaData.getStorageNodeHashes()){\n KVStorageNode node = metaData.getStorageNodeFromHash(key);\n if(node.getHashRange().inRange(hash)){\n return node;\n }\n }\n return null;\n }", "title": "" }, { "docid": "0e6b07e4c41c11417cdb4623edfe2d5d", "score": "0.44708672", "text": "String target_most_derived_interface ();", "title": "" }, { "docid": "ce27309f7313896cb575ba180e180985", "score": "0.44613317", "text": "public static HostingLink getHostingLink(Unit unit) {\r\n\t\tif (unit == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tUnit host = getHost(unit);\r\n\t\tif (host == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfor (Iterator<HostingLink> hlIter = host.getHostingLinks().iterator(); hlIter.hasNext();) {\r\n\t\t\tHostingLink hl = hlIter.next();\r\n\t\t\tif (hl != null && hl.getTarget() != null && hl.getTarget().equals(unit)) {\r\n\t\t\t\treturn hl;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "bd61065d43f2d7fe8fcea1fba948628d", "score": "0.4447814", "text": "public static Capability getFirstRequirementLinkTargetCapability(Capability cap, EClass type) {\r\n\t\tif (cap == null || !(cap.getParent() instanceof Unit)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn getFirstRequirementLinkTargetCapability((Unit) cap.getParent(), type);\r\n\t}", "title": "" }, { "docid": "a85568047e957e618b7226f39c12deda", "score": "0.4443325", "text": "VClass getTopConcept();", "title": "" }, { "docid": "3cee6eafd030ba82427465897a000379", "score": "0.4441409", "text": "public ParameterizedGesture getMostProbable()\n {\n\tif(highestIndex>=0 && highestIndex<gestureList.size())\n\t return (ParameterizedGesture)(gestureList.get(highestIndex));\n\telse\n\t return null;\n }", "title": "" }, { "docid": "78cc61404c4ae69e8d219ac33c30a02c", "score": "0.4424092", "text": "Capability getCapability(String name);", "title": "" }, { "docid": "5593921be38ac6fad09af467c4626a47", "score": "0.44121552", "text": "int getMostPopulatedHypercube();", "title": "" }, { "docid": "68bc585a80d7f34a3a4ed8981e367683", "score": "0.44010666", "text": "String getOtherPortType();", "title": "" }, { "docid": "6a1714cfe6347434e1e047856e507f60", "score": "0.4379225", "text": "@Path( \"/hosts/{hostName}\")\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic Response getSpecificHostbyHostUuid(\n\t\t\t@DefaultValue(\"zabbix\") @PathParam(\"adapterType\") String adapterType,\n\t\t\t@PathParam(\"hostName\") String hostName);", "title": "" }, { "docid": "224674937908c7a65431665151741c22", "score": "0.43752015", "text": "public static Unit discoverDependencyLinkTargetUnit(Requirement req, Topology top,\r\n\t\t\tIProgressMonitor monitor) {\r\n\t\tif (req == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tUnit unit = getUnit(req);\r\n\t\tif (unit == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tUnitDescriptor ud = TopologyDiscovererService.INSTANCE.findTarget(unit, req, top);\r\n\t\tif (ud == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tUnit targetUnit = ud.getUnitValue();\r\n\t\tif (targetUnit == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn targetUnit;\r\n\t}", "title": "" }, { "docid": "94840d2d4bb59437f799a1a3c8234ec6", "score": "0.43516383", "text": "private Class<? extends WorkContext> getMostSpecificWorkContextSupported(WorkContext ic) {\n\n List<Class> assignableClasses = new ArrayList<Class>();\n for (Class<? extends WorkContext> icClass : containerSupportedContexts) {\n if (icClass.isAssignableFrom(ic.getClass())) {\n assignableClasses.add(icClass);\n }\n }\n assignableClasses = sortBasedOnInheritence(assignableClasses);\n Object params[]= {ic.getClass().getName(), assignableClasses.get(0).getName()};\n logger.log(Level.INFO, \"workcontext.most_specific_work_context_supported\", params);\n return assignableClasses.get(0);\n }", "title": "" }, { "docid": "6a30c5c2e5b841193e24ffee911d8aa2", "score": "0.43478513", "text": "yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target getTarget();", "title": "" }, { "docid": "49768b3307e6003a260e503db00c20ad", "score": "0.4346657", "text": "public T getTop ();", "title": "" }, { "docid": "550d661b21220c21d659d4017603777d", "score": "0.43090203", "text": "public static Unit getFirstRequirmentLinkTargetUnit(Capability cap, EClass type) {\r\n\t\tif (cap == null || !(cap.getParent() instanceof Unit)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn getFirstRequirementLinkTargetUnit((Unit) cap.getParent(), type);\r\n\t}", "title": "" }, { "docid": "b137c6765d40f715f0fc6c609449d646", "score": "0.4293068", "text": "PhysicalAddressType getSubAddress();", "title": "" }, { "docid": "b172472e5109c50e09bb2e1233e8ab79", "score": "0.42923728", "text": "public static Unit discoverHostAndAddToTopology(Unit unit, IProgressMonitor monitor) {\r\n\t\tif (unit == null || unit.getEditTopology() == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tUnitDescriptor descriptor = TopologyDiscovererService.INSTANCE.findHostUD(unit, unit\r\n\t\t\t\t.getEditTopology(), monitor);\r\n\t\tif (descriptor == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn descriptor.getUnitValueAndAddToTopology(unit.getEditTopology());\r\n\t}", "title": "" }, { "docid": "28cc961f4bb98a51ce6db66a26bcf4ea", "score": "0.42805523", "text": "public static SubWellFeature getSubWellFeatureByName(String name, ProtocolClass pClass) {\r\n\t\tList<SubWellFeature> features = pClass.getSubWellFeatures();\r\n\t\tfor (SubWellFeature f: features) {\r\n\t\t\tif (f.getName().equalsIgnoreCase(name)) return f;\r\n\t\t\tif (f.getDisplayName().equalsIgnoreCase(name)) return f;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8059547f92f2654c1c34fbbca64092cf", "score": "0.4267558", "text": "public com.sun.java.xml.ns.javaee.RemoteType getRemote()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.sun.java.xml.ns.javaee.RemoteType target = null;\r\n target = (com.sun.java.xml.ns.javaee.RemoteType)get_store().find_element_user(REMOTE$8, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "596f9032156b89a2de0c7459071a3e33", "score": "0.42536262", "text": "public PlatformType hostPlatform() {\n return this.innerProperties() == null ? null : this.innerProperties().hostPlatform();\n }", "title": "" }, { "docid": "9cf5deeafd5609186367be43886b8918", "score": "0.42471716", "text": "public Object top();", "title": "" }, { "docid": "16cb8dcbca52fbaf10129a2c69d60312", "score": "0.42428112", "text": "ABFuncServerType GetServerType(String strSessionNo) throws EdgeServiceFault;", "title": "" }, { "docid": "3b25e178d4abd3c35ffdf55d2afb351a", "score": "0.42420772", "text": "public FragmentPair getRackLocalFragment(String host) {\n host = topologyCache.normalize(host);\n // Select a fragment from a host that has the most fragments in the rack\n String rack = topologyCache.resolve(host);\n Set<PrioritizedHost> hostsOfRack = hostPriorityPerRack.get(rack);\n if (hostsOfRack != null && hostsOfRack.size() > 0) {\n PrioritizedHost[] sortedHosts = hostsOfRack.toArray(new PrioritizedHost[hostsOfRack.size()]);\n Arrays.sort(sortedHosts, hostComparator);\n for (PrioritizedHost nextHost : sortedHosts) {\n if (fragmentHostMapping.containsKey(nextHost.hostAndDisk.host)) {\n List<FragmentsPerDisk> disks = Lists.newArrayList(fragmentHostMapping.get(nextHost.hostAndDisk.host).values());\n Collections.shuffle(disks);\n\n for (FragmentsPerDisk fragmentsPerDisk : disks) {\n if (!fragmentsPerDisk.isEmpty()) {\n return fragmentsPerDisk.getFragmentPairIterator().next();\n }\n }\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "4bf2f17dde2b1b7724925f4cf99c53b8", "score": "0.42401165", "text": "public HostPlatformType hostPlatformType() {\n return this.innerProperties() == null ? null : this.innerProperties().hostPlatformType();\n }", "title": "" }, { "docid": "dccb8e4878390f7f28f8c4e886bfa801", "score": "0.42346966", "text": "private static ParameterizedType maybeGetParameterizedType(Type type) {\n if (type instanceof ParameterizedType) {\n return (ParameterizedType) type;\n }\n // Extract simple type variables from wildcards matching '? extends T'\n if (type instanceof WildcardType) {\n WildcardType wildcardType = (WildcardType) type;\n // Exclude any form of '? super T'\n if (wildcardType.getLowerBounds().length != 0) {\n return null;\n }\n Type[] upperBounds = wildcardType.getUpperBounds();\n if (upperBounds.length == 1) {\n return maybeGetParameterizedType(upperBounds[0]);\n }\n }\n return null;\n }", "title": "" }, { "docid": "d6599e654a9dca36ff9b5f49e27c61f5", "score": "0.4228968", "text": "public interface CapabilityType {\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 systemData property: The system metadata properties of the capability type resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the location property: Location of the Capability Type resource.\n *\n * @return the location value.\n */\n String location();\n\n /**\n * Gets the publisher property: String of the Publisher that this Capability Type extends.\n *\n * @return the publisher value.\n */\n String publisher();\n\n /**\n * Gets the targetType property: String of the Target Type that this Capability Type extends.\n *\n * @return the targetType value.\n */\n String targetType();\n\n /**\n * Gets the displayName property: Localized string of the display name.\n *\n * @return the displayName value.\n */\n String displayName();\n\n /**\n * Gets the description property: Localized string of the description.\n *\n * @return the description value.\n */\n String description();\n\n /**\n * Gets the parametersSchema property: URL to retrieve JSON schema of the Capability Type parameters.\n *\n * @return the parametersSchema value.\n */\n String parametersSchema();\n\n /**\n * Gets the urn property: String of the URN for this Capability Type.\n *\n * @return the urn value.\n */\n String urn();\n\n /**\n * Gets the kind property: String of the kind of this Capability Type.\n *\n * @return the kind value.\n */\n String kind();\n\n /**\n * Gets the azureRbacActions property: Control plane actions necessary to execute capability type.\n *\n * @return the azureRbacActions value.\n */\n List<String> azureRbacActions();\n\n /**\n * Gets the azureRbacDataActions property: Data plane actions necessary to execute capability type.\n *\n * @return the azureRbacDataActions value.\n */\n List<String> azureRbacDataActions();\n\n /**\n * Gets the runtimeProperties property: Runtime properties of this Capability Type.\n *\n * @return the runtimeProperties value.\n */\n CapabilityTypePropertiesRuntimeProperties runtimeProperties();\n\n /**\n * Gets the inner com.azure.resourcemanager.chaos.fluent.models.CapabilityTypeInner object.\n *\n * @return the inner object.\n */\n CapabilityTypeInner innerModel();\n}", "title": "" }, { "docid": "b669873dec4f4b5e7c7a5c1004146227", "score": "0.422828", "text": "public ItemType getSuperType(TypeHierarchy th);", "title": "" }, { "docid": "881e9bcecb1134e536376c124055ab23", "score": "0.42269814", "text": "EClass getTargetclass();", "title": "" }, { "docid": "a50015131e0b39fe8867e857c1558297", "score": "0.42195156", "text": "type_specifier getPrimitivo();", "title": "" }, { "docid": "504a31cbced72168d71c6b7b3f941e0f", "score": "0.421891", "text": "protected Class getSubtype(){\n return (Class<T>)(((ParameterizedType)getClass().getGenericSuperclass()).getActualTypeArguments()[0]);\n }", "title": "" }, { "docid": "d14d1f4e90ea5f5675461ca202cbabd5", "score": "0.4217033", "text": "public abstract String getHost();", "title": "" }, { "docid": "5cbc79e25d82833af7fce99959a7ded3", "score": "0.42145693", "text": "String getProvider_physical_network();", "title": "" }, { "docid": "0584942621e8c4cb3f76fb29604380a4", "score": "0.4214031", "text": "private IssueType selectIssueType() {\n\t\tIssueType issueType = null;\n\n\t\t// balance use of the different injectors\n\t\tint min = Integer.MAX_VALUE;\n\t\tfor (IssueType i : this.issueTypes) {\n\t\t\tInteger useOfI = this.numberOfExecutions.get(i);\n\t\t\tif (useOfI == null) {\n\t\t\t\t// at least one injector has not been uised at all\n\t\t\t\tmin = 0;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif (useOfI < min) {\n\t\t\t\t\tmin = useOfI;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tList<IssueType> minInjectedIssue = new LinkedList<IssueType>();\n\t\tfor (IssueType i : this.issueTypes) {\n\t\t\tInteger useOfI = this.numberOfExecutions.get(i);\n\t\t\tif (useOfI == null) {\n\t\t\t\tuseOfI = 0;\n\t\t\t}\n\t\t\tif (min == useOfI) {\n\t\t\t\tminInjectedIssue.add(i);\n\t\t\t}\n\t\t}\n\n\t\tint selectedIssue = SimulatorUtil.randInt(0,\n\t\t\t\tminInjectedIssue.size() - 1);\n\t\tissueType = minInjectedIssue.get(selectedIssue);\n\n\t\treturn issueType;\n\t}", "title": "" }, { "docid": "bdeb4b4d0f01968a0bafc1c5d712cb53", "score": "0.42137268", "text": "public interface IHost {\n String getBaseUrl(int type);\n}", "title": "" }, { "docid": "fadc949f9728b808a9a3f56982b40f47", "score": "0.4213662", "text": "@Override\n public FragmentPair getHostLocalFragment(String host) {\n String normalizedHost = topologyCache.normalize(host);\n if (!fragmentHostMapping.containsKey(normalizedHost)) {\n return null;\n }\n\n Map<Integer, FragmentsPerDisk> fragmentsPerDiskMap = fragmentHostMapping.get(normalizedHost);\n List<Integer> disks = Lists.newArrayList(fragmentsPerDiskMap.keySet());\n Collections.shuffle(disks);\n FragmentsPerDisk fragmentsPerDisk = null;\n FragmentPair fragmentPair = null;\n\n for (Integer diskId : disks) {\n fragmentsPerDisk = fragmentsPerDiskMap.get(diskId);\n if (fragmentsPerDisk != null && !fragmentsPerDisk.isEmpty()) {\n fragmentPair = getBestFragment(fragmentsPerDisk);\n }\n if (fragmentPair != null) {\n return fragmentPair;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "0a92a8b4fed3c344a5a723aeedf7fff5", "score": "0.42106912", "text": "public String query() {\n\t\t// get the subsystemType by typename\n\t\t// target = \n\t\treturn SUCCESS;\n\t}", "title": "" }, { "docid": "9aa6130ef015ca8d9adff823530eb048", "score": "0.42104435", "text": "public Class<?> getCapturedType();", "title": "" }, { "docid": "1df2804443b67dcf54a3d620d8303791", "score": "0.4201777", "text": "private static TypeVariable<?> maybeGetTypeVariable(Type type) {\n if (type instanceof TypeVariable) {\n return (TypeVariable<?>) type;\n }\n // Extract simple type variables from wildcards matching '? extends T'\n if (type instanceof WildcardType) {\n WildcardType wildcardType = (WildcardType) type;\n // Exclude any form of '? super T'\n if (wildcardType.getLowerBounds().length != 0) {\n return null;\n }\n Type[] upperBounds = wildcardType.getUpperBounds();\n if (upperBounds.length == 1) {\n return maybeGetTypeVariable(upperBounds[0]);\n }\n }\n return null;\n }", "title": "" }, { "docid": "f8aa22247a7b856dedcd208ab1a39c6e", "score": "0.41959837", "text": "public static List<Unit> getHosted(Unit host) {\r\n\t\treturn getHosted(host, null);\r\n\t}", "title": "" }, { "docid": "7c6898408c540a48a639e99fe1799850", "score": "0.41937903", "text": "@Public\n @Stable\n public abstract Resource getCapability();", "title": "" }, { "docid": "c99edc7ff33081960e9b03cfdc9cb8ff", "score": "0.41856003", "text": "@Test\n public void testGetHighestHostPowerUsage() {\n System.out.println(\"getHighestHostPowerUsage\");\n Host host = CHOSEN_HOST;\n double result = instance.getHighestHostPowerUsage(host);\n assert (result > 0.0);\n System.out.println(\"Highest Host Power Usage: \" + result);\n }", "title": "" }, { "docid": "19cb18e9c8c9b7a9d1af87dd4fa8f11a", "score": "0.41839272", "text": "private TypeParameterDescriptorImpl resolveTypeParameter(DeclarationDescriptor containingDescriptor, WritableScope extensibleScope, NapileTypeParameter typeParameter, int index, BindingTrace trace)\n \t{\n \t\tTypeParameterDescriptorImpl typeParameterDescriptor = TypeParameterDescriptorImpl.createForFurtherModification(containingDescriptor, annotationResolver.createAnnotationStubs(typeParameter.getModifierList(), trace), typeParameter.hasModifier(JetTokens.REIFIED_KEYWORD), typeParameter.getVariance(), NapilePsiUtil.safeName(typeParameter.getName()), index);\n \t\t// typeParameterDescriptor.addUpperBound(bound);\n \t\textensibleScope.addTypeParameterDescriptor(typeParameterDescriptor);\n \t\ttrace.record(BindingContext.TYPE_PARAMETER, typeParameter, typeParameterDescriptor);\n \t\treturn typeParameterDescriptor;\n \t}", "title": "" }, { "docid": "0981ef55c814971cd0f1fd00c5e93ee3", "score": "0.41716516", "text": "public interface EnHost {\n\n String getHostName();\n\n String getHostAddress();\n\n String getDataCenter();\n}", "title": "" }, { "docid": "fd8e12f9c9de3b687b6acc6d7f782eec", "score": "0.41666293", "text": "public FragmentPair getRandomFragment() {\n // Select a fragment from a host that has the most fragments\n Collection<PrioritizedHost> prioritizedHosts = totalHostPriority.values();\n PrioritizedHost[] sortedHosts = prioritizedHosts.toArray(new PrioritizedHost[prioritizedHosts.size()]);\n Arrays.sort(sortedHosts, hostComparator);\n PrioritizedHost randomHost = sortedHosts[0];\n if (fragmentHostMapping.containsKey(randomHost.hostAndDisk.host)) {\n Iterator<FragmentsPerDisk> fragmentsPerDiskIterator = fragmentHostMapping.get(randomHost.hostAndDisk.host).values().iterator();\n if (fragmentsPerDiskIterator.hasNext()) {\n Iterator<FragmentPair> fragmentPairIterator = fragmentsPerDiskIterator.next().getFragmentPairIterator();\n if (fragmentPairIterator.hasNext()) {\n return fragmentPairIterator.next();\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "e3981f0ebaac9e80eb4000c089ef3fe4", "score": "0.4161918", "text": "String getProvider_network_type();", "title": "" }, { "docid": "98eacbcdd38e4fc8550628936f94df21", "score": "0.41612974", "text": "public Object top() throws StackEmptyException;", "title": "" }, { "docid": "3bb49c26bc0a41a7f55048a986b634e8", "score": "0.4156353", "text": "Parameter getOwlsParameter();", "title": "" }, { "docid": "142fa70a2f201fca5eef2c6c001729ae", "score": "0.41562584", "text": "Object top();", "title": "" }, { "docid": "850e09bc3be4b7899e0f7a2c7d203169", "score": "0.41455677", "text": "public static UnitDescriptor discoverGroupDescriptorByCapabilityType(Unit member,\r\n\t\t\tEClass groupCapabilityType, IProgressMonitor monitor) {\r\n\t\tif (member == null || member.getTopology() == null || groupCapabilityType == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tList groups = TopologyDiscovererService.INSTANCE.getGroups(member, null,\r\n\t\t\t\tmember.getTopology(), monitor);\r\n\t\tfor (Iterator iter = groups.iterator(); iter.hasNext();) {\r\n\t\t\tUnitDescriptor descr = (UnitDescriptor) iter.next();\r\n\t\t\tUnit unit = descr.getUnitValue();\r\n\t\t\tfor (Iterator iter2 = unit.getCapabilities().iterator(); iter2.hasNext();) {\r\n\t\t\t\tCapability cap = (Capability) iter2.next();\r\n\t\t\t\tif (groupCapabilityType.isInstance(cap)) {\r\n\t\t\t\t\treturn descr;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6878eb788d77db3ea878da3482633b0a", "score": "0.4144933", "text": "public Optional<Node> getHostNode() \n\t{\n\t\treturn hostNode;\n\t}", "title": "" }, { "docid": "5537fb56411eda2b4db2e2988126d90f", "score": "0.41349584", "text": "public Remote getPort(Class seiClass) throws ServiceException;", "title": "" } ]
27ec373a54618751d04eb618992835bb
Modifies the details of an existing item modifier list.
[ { "docid": "ec5335a2ce2e65bf9e15badf5ce05b34", "score": "0.0", "text": "@Deprecated\r\n CompletableFuture<V1ModifierList> updateModifierListAsync(\r\n final String locationId,\r\n final String modifierListId,\r\n final V1UpdateModifierListRequest body);", "title": "" } ]
[ { "docid": "62d8e9cf55a882aecf7c6d6c4fd7f74c", "score": "0.6631015", "text": "@Override\n\tpublic void modify(item it) {\n\t\t\n\t}", "title": "" }, { "docid": "d19606f9633969a79d14f83b7dadb59f", "score": "0.61102384", "text": "protected abstract void setSpecificItems(View view, int position, boolean modifiable);", "title": "" }, { "docid": "b307e46bdcdf10215bc324c4aee58ffa", "score": "0.6016191", "text": "void updateRequestedItems();", "title": "" }, { "docid": "07ef7cac265594533bb661941502b71c", "score": "0.5987735", "text": "public interface ModifiableEntityDetailAdapter {\r\n public void setModifier(ListItemViewModifier modifier);\r\n}", "title": "" }, { "docid": "ba444f5e799e3f64ea8a85e9153050ed", "score": "0.59428775", "text": "private void editProtectedItem()\n {\n ProtectedItemWrapper protectedItemWrapper = getSelectedProtectedItemWrapper();\n\n AbstractDialogStringValueEditor valueEditor = protectedItemWrapper.getValueEditor();\n if ( valueEditor != null )\n {\n if ( protectedItemWrapper.isMultivalued() )\n {\n MultiValuedDialog dialog = new MultiValuedDialog( getShell(), protectedItemWrapper.getDisplayName(),\n protectedItemWrapper.getValues(), context, valueEditor );\n dialog.open();\n refreshTable();\n }\n else\n {\n List<String> values = protectedItemWrapper.getValues();\n String oldValue = values.isEmpty() ? null : values.get( 0 );\n if ( oldValue == null )\n {\n oldValue = \"\"; //$NON-NLS-1$\n }\n\n IAttribute attribute = new Attribute( context.getEntry(), \"\" ); //$NON-NLS-1$\n IValue value = new Value( attribute, oldValue ); //$NON-NLS-1$\n Object oldRawValue = valueEditor.getRawValue( value ); //$NON-NLS-1$\n\n CellEditor cellEditor = valueEditor.getCellEditor();\n cellEditor.setValue( oldRawValue );\n cellEditor.activate();\n Object newRawValue = cellEditor.getValue();\n\n if ( newRawValue != null )\n {\n String newValue = ( String ) valueEditor.getStringOrBinaryValue( newRawValue );\n\n values.clear();\n values.add( newValue );\n tableViewer.refresh();\n }\n }\n }\n }", "title": "" }, { "docid": "7d812c6f78ac511eb43082d2ed34e1a9", "score": "0.5915216", "text": "public void modifierListe(){\n }", "title": "" }, { "docid": "1373cb547d84110614c7444eccad0aa8", "score": "0.5910337", "text": "public void editList(String oldName, String newListName){\n }", "title": "" }, { "docid": "e933224f4b24ef09bd43b515a755c9d4", "score": "0.5897687", "text": "private static void editAnItem() {\n\t\t\tSystem.out.println(\"How would you like to search? \");\n\t\t\tSystem.out.println(\"1 : Search by Pet Name\");\n\t\t\tSystem.out.println(\"2 : Search by Owner Name\");\n\t\t\tint searchBy = in.nextInt();\n\t\t\tin.nextLine();\n\t\t\tList<ListPet> foundItems;\n\t\t\tif (searchBy == 1) {\n\t\t\t\tSystem.out.print(\"Enter the pet name: \");\n\t\t\t\tString petName = in.nextLine();\n\t\t\t\tfoundItems = lih.searchForItemByPetName(petName);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\"Enter the Owner Name: \");\n\t\t\t\tString ownerName = in.nextLine();\n\t\t\t\tfoundItems = lih.searchForItemByOwnerName(ownerName);\n\t\t\t}\n\n\t\t\tif (!foundItems.isEmpty()) {\n\t\t\t\tSystem.out.println(\"Found Results.\");\n\t\t\t\tfor (ListPet l : foundItems) {\n\t\t\t\t\tSystem.out.println(l.getType() + \" : \" + l.toString());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"Which Type to edit: \");\n\t\t\t\tString typeToEdit = in.nextLine();\n\n\t\t\t\tListPet toEdit = lih.searchForItemByType(typeToEdit);\n\t\t\t\tSystem.out.println(\"Retrieved \" + toEdit.getOwner() + \" from \" + toEdit.getName());\n\t\t\t\tSystem.out.println(\"1 : Update Name\");\n\t\t\t\tSystem.out.println(\"2 : Update Owner\");\n\t\t\t\tint update = in.nextInt();\n\t\t\t\tin.nextLine();\n\n\t\t\t\tif (update == 1) {\n\t\t\t\t\tSystem.out.print(\"New Name: \");\n\t\t\t\t\tString newName = in.nextLine();\n\t\t\t\t\ttoEdit.setName(newName);\n\t\t\t\t} else if (update == 2) {\n\t\t\t\t\tSystem.out.print(\"New Owner: \");\n\t\t\t\t\tString newOwner = in.nextLine();\n\t\t\t\t\ttoEdit.setOwner(newOwner);\n\t\t\t\t}\n\n\t\t\t\tlih.updateItem(toEdit);\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"---- No results found\");\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "2bda2f3a67745d57d34b863d22ef3657", "score": "0.58745223", "text": "@Override\r\n\tpublic void updateItem(Item i) {\n\t\r\n\t}", "title": "" }, { "docid": "2c29fe012f7780ae5bb92831472d6ded", "score": "0.5856258", "text": "@Override\n\tpublic void modifyItem(Object updated) {\n\t\t\n\t\tunloadform();\n\t\tBudgetLogic b = (BudgetLogic) updated;\n\t\tdisplayerList.get(b.getId()).redraw();\n\t}", "title": "" }, { "docid": "dcf251fab63c2999da1c01a0def69319", "score": "0.58481216", "text": "private void editItem() {\n System.out.println(\"--------Edit Item--------\");\n String id = this.input.ask(\"Enter an Item id to be replaced : \");\n Item item = tracker.findById(id);\n System.out.println(\"Edit item ID\" + id);\n String name = this.input.ask(\"Enter an Item new name : \");\n String desc = this.input.ask(\"Enter an Item new description : \");\n item.setName(name);\n item.setDescription(desc);\n System.out.println(\"----------Item ID\" + item.getId() + \"updated successfully\");\n\n }", "title": "" }, { "docid": "a73d62853bc7984e6122eb6832e160ae", "score": "0.5789571", "text": "@Override\r\n public String toString() {\r\n return \"CatalogQueryItemsForModifierList [\" + \"modifierListIds=\" + modifierListIds + \"]\";\r\n }", "title": "" }, { "docid": "a7ca39beec659ad7ed15ac44a0750ede", "score": "0.5758181", "text": "@Override\r\n public void updateItem() throws PantryException\r\n {\n\t\r\n }", "title": "" }, { "docid": "91f0c3fe5451ca9ad19ab97b8b1b6808", "score": "0.5754507", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if (resultCode == RESULT_OK && requestCode == EDIT_REQUEST_CODE) {\n // Retrieve updated item text value using the key for item text\n String itemText = data.getExtras().getString(KEY_ITEM_TEXT);\n // extract original position of the edited item by requesting value of position key\n int position = data.getIntExtra(KEY_ITEM_POSITION, 0);\n // update the model with the new item text at the edited position\n String Date = data.getExtras().getString(KEY_ITEM_DATE);\n String priority = data.getExtras().getString(KEY_ITEM_PRI);\n\n items.set(position, itemText);\n // notify the adapter\n adapter.notifyItemChanged(position);\n System.out.println(\"Edit Activity completed ok ***************************\");\n System.out.println(itemText+\" \"+pri+\" \"+Date);\n // persist the changes\n System.out.println(\"saving or updating on id :\"+id);\n updateItems(id, itemText,priority, Date);\n // notify the user that the operation completed successfully\n // Toast.makeText(this, \"Item updated successfully\", Toast.LENGTH_SHORT).show();\n } else {\n Log.w(\"MainActivity\", \"Unknown call to onActivityResult\");\n }\n }", "title": "" }, { "docid": "e3267c959cfa43854878488499a9196c", "score": "0.57421356", "text": "void updateItem() throws IOException {\n\t\tint listIndex = Storage.getListIndex(itemID);\n\t\tMagical.getStorage().update(listIndex, prevItem, item);\n\t\tMagical.updateDisplayList(listIndex, prevItem, item);\n\t}", "title": "" }, { "docid": "bfc3ccbef82291b4b70e014af22d6f23", "score": "0.5717442", "text": "public void update() {\n updateList();\n }", "title": "" }, { "docid": "43b3a331d2d57e6b00d9a02a50e86caa", "score": "0.5685954", "text": "private void updateListModel()\r\n {\r\n if ((listmodel != null) && (itemList != null))\r\n {\r\n listmodel.removeAllElements();\r\n for (int C = 0; C <= itemList.size() - 1; C++)\r\n {\r\n ListItem item = (ListItem)(itemList.get(C));\r\n // Add the items in sorted order.\r\n listmodel.addElement((Object)(itemList.get(C)));\r\n }\r\n }\r\n if (isReadOnly())\r\n {\r\n // ReadOnly. Select the default item.\r\n preventChanges();\r\n }\r\n }", "title": "" }, { "docid": "199c846b338e726badb607135450d3e0", "score": "0.56509984", "text": "@Deprecated V1Item applyModifierList(\r\n final String locationId,\r\n final String modifierListId,\r\n final String itemId) throws ApiException, IOException;", "title": "" }, { "docid": "7a2ed183a594beb9a4494c6fad5bfa24", "score": "0.5616854", "text": "public void updateItems() {\n\t\tList<Invoice> listElements = new ArrayList<Invoice>();\n\t\tCollection<Entry<Integer, Invoice>> container = MainActivity.cacheManager.getAll();\n\t\tif (container != null) {\n\t\t\tIterator<Entry<Integer, Invoice>> iter = container.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tlistElements.add(iter.next().getValue());\n\t\t\t}\n\t\t}\n\t\tlistView.setAdapter(new InvoiceListAdapter(listElements, this));\n\t\tlistView.setItemsCanFocus(false);\n\t\tlistView.invalidateViews();\n\t}", "title": "" }, { "docid": "609db0ced8441dae6a9c27efe5b38ea2", "score": "0.5612787", "text": "void update() {\n //TODO: Maybe find a way around this\n // there should be a way to edit the model instead of constantly setting\n // but since each list is essentially backed by two models,\n // may not be possible\n\n //CHECKS TEMPORARY FIX FOR AWFUL BUG\n //THESE MAY NOT BE NECESSARY ANYMORE, I'LL TRY TO TEST A FEW TIMES\n if (model.getActiveModel(DataType.SUBJECT).size() > 0 || subjectListContent.getModel().getSize() > 0) {\n subjectListContent.setModel(model.getActiveModel(DataType.SUBJECT));\n }\n if (model.getActiveModel(DataType.STIMULUS).size() > 0 || stimulusListContent.getModel().getSize() > 0) {\n stimulusListContent.setModel(model.getActiveModel(DataType.STIMULUS));\n }\n if (model.getActiveModel(DataType.STATISTIC).size() > 0 || statisticListContent.getModel().getSize() > 0) {\n statisticListContent.setModel(model.getActiveModel(DataType.STATISTIC));\n }\n }", "title": "" }, { "docid": "f3b68e1d832aef89077581d01cb6e68a", "score": "0.56096154", "text": "void setItem(List<I> item);", "title": "" }, { "docid": "0bb4e077695502e26ff4de2136bb1c03", "score": "0.56095845", "text": "public CompleteResponse<UpdateItemModifierListsResponse>updateItemModifierListsWithHttpInfo(UpdateItemModifierListsRequest body) throws ApiException {\n Object localVarPostBody = body;\n \n // verify the required parameter 'body' is set\n if (body == null) {\n throw new ApiException(400, \"Missing the required parameter 'body' when calling updateItemModifierLists\");\n }\n \n // create path and map variables\n String localVarPath = \"/v2/catalog/update-item-modifier-lists\";\n\n // query params\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n localVarHeaderParams.put(\"Square-Version\", \"2019-11-20\");\n\n \n \n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n\n String[] localVarAuthNames = new String[] { \"oauth2\" };\n\n GenericType<UpdateItemModifierListsResponse> localVarReturnType = new GenericType<UpdateItemModifierListsResponse>() {};\n return (CompleteResponse<UpdateItemModifierListsResponse>)apiClient.invokeAPI(localVarPath, \"POST\", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);\n }", "title": "" }, { "docid": "36da451131dbc8c46080bfb7171a5012", "score": "0.5608567", "text": "Item updateItem(Item item);", "title": "" }, { "docid": "a442b4d84d481db23d737e4af3c44e40", "score": "0.55980796", "text": "private void updateList() {\n\t\t// Add the value of the EditText in the list\n\t\tarrayAdapter.add(editText.getText().toString());\n\t\t// Delete the content of the Edit text\n\t\teditText.setText(\"\");\n\t}", "title": "" }, { "docid": "cccbf4cfeca524fb01af12641afafcad", "score": "0.558854", "text": "@Override\r\n\tpublic void setArmorItem(Item[] newArmorsItems) {\n\t\t\r\n\t}", "title": "" }, { "docid": "77ad9fd89567bd2c44c29669d9c0135a", "score": "0.5584054", "text": "protected abstract void itemsReplaced(ListChangeEvent event);", "title": "" }, { "docid": "21fdaacb44558dcb1154a70125a833a8", "score": "0.5562001", "text": "private void doModify() {\n\t\tif (table.getSelectedRow() < 0)\n\t\t\treturn;\n\t\tDishMaterialConsume csm = model.getObjectAt(table.getSelectedRow());\n//\t\tCategory1 c1 = csm.getDish().getCategory2().getCategory1();\n//\t\tcbCategory1.setSelectedItem(c1);\n//\t\tcbCategory2.setSelectedItem(csm.getDish().getCategory2());\n//\t\tcbDish.setSelectedItem(csm.getDish());\n\t\tcbMaterialCategory.setEnabled(false);\n\t\tcbMaterial.setEnabled(false);\n\t\ttfAmount.setText(csm.getAmount()+\"\");\n\t\tmodifiedDishMaterialConsumeId = csm.getId();\n\t\tbtnAdd.setVisible(false);\n\t\tbtnModify.setVisible(false);\n\t\tbtnCloseDialog.setVisible(false);\n\t\tbtnDelete.setVisible(false);\n\t\tbtnSaveModify.setVisible(true);\n\t\tbtnCancelModify.setVisible(true);\n\t}", "title": "" }, { "docid": "996b2cb6a723541af1abfb486457f0e1", "score": "0.5559453", "text": "private void getArmorEditMenu() {\r\n\t\t//fills in the fields with the selected item\r\n\t\tArmor item = (Armor) table.getSelectionModel().getSelectedItem();\r\n\t\taddItem.getChildren().clear();\r\n\t\tname.setText(item.getName());\r\n\t\tdescription.setText(item.getDescription());\r\n\t\tquantity.setText(\"\"+item.getQuantity());\r\n\t\tweight.setText(\"\"+item.getWeight());\r\n\t\tvalue.setText(\"\"+item.getValue());\r\n\t\t\r\n\t\tstrengthRequirement.setText(\"\"+item.getStrengthRequirement());\r\n\t\tarmorClass.setText(\"\"+item.getaC());\r\n\t\thasDexMod.setSelected(item.isDexMod());;\r\n\t\tmaxDex.setText(\"\"+item.getDexMax());\r\n\t\t\r\n\t\taddItemStage = new Stage();\r\n\t\taddItemStage.setTitle(\"Edit Item\");\r\n\t\t\r\n\t\tHBox p = new HBox();\r\n\t\t\r\n\t\tp.getChildren().addAll(getEditMenu());\r\n\t\tp.setAlignment(Pos.CENTER);\r\n\t\t\r\n\t\taddItemScene = new Scene(p,500,350);\r\n\t\t\r\n\t\taddItemStage.setScene(addItemScene);\r\n\t\t\r\n\t\taddItemStage.show();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "789f45b41c6cb1b05e0953d30d1ba446", "score": "0.5553489", "text": "public void updateItemList(Trainer trainer){\n\t\titemList[3] = \"Master Balls: \" + trainer.getMaster().getQuantity();\n\t\titemList[2] = \"Safari Balls: \" + trainer.getSafari().getQuantity();\n\t\titemList[1] = \"Running Shoes: \" + trainer.getShoes().getQuantity();\n\t\titemList[0] = \"Sleeping Darts: \" + trainer.getDart().getQuantity();\n\t\titems.setListData(itemList);\n\t}", "title": "" }, { "docid": "379e550520c7d3ab426e428f7a8461c1", "score": "0.5540758", "text": "@Override\n public void update() {\n if (list == 0)\n currentRecipe = UserInformation.getInstance().getRecipeChoice().getChoiceRecipe();\n else if (list == 1)\n currentRecipe = UserInformation.getInstance().getRecipeList().getRecipe(index);\n else if (list == 2)\n currentRecipe = UserInformation.getInstance().getCalendarStorage().getRecipe(index);\n else if (list == 3)\n currentRecipe = UserInformation.getInstance().getSearchResult().getRecipe(index);\n updateLayout();\n }", "title": "" }, { "docid": "3f6d369d34fff9e67fa0d797fd6752e6", "score": "0.55352855", "text": "@Override\r\n\tpublic void editItem() {\r\n\t\tif (target.getEntryDate().equals(getView().getEntryDate())) {\r\n\t\t\t// these are not the droids you're looking for...\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tgetItemManager().editItem((Item) target.getTag(), getView().getEntryDate());\r\n\t}", "title": "" }, { "docid": "68183927d57601b4cf8061710cddd08e", "score": "0.5497539", "text": "public void modif(Librairie librairie, int index) {\r\n\t\t\t\r\n\t\t\t// Modification du livre dans les 2 listes\r\n\t\t\tlivreString.set(index, textFieldISBN.getText());\r\n\t\t\t\r\n\t\t\tlibrairie.getListLivre().get(index).setISBN(Integer.parseInt(textFieldISBN.getText()));\r\n\t\t\tlibrairie.getListLivre().get(index).setTitre(textFieldTitre.getText());\r\n\t\t\tlibrairie.getListLivre().get(index).setDescription(textFieldDesc.getText());\r\n\t\t\tlibrairie.getListLivre().get(index).setType(textFieldType.getText());\r\n\t\t\tlibrairie.getListLivre().get(index).setNbPages(Integer.parseInt(textFieldNbPage.getText()));\r\n\t\t\tlibrairie.getListLivre().get(index).setPrix(Double.parseDouble(textFieldPrix.getText()));\r\n\t\t\t\r\n\t\t\t// Refresh\r\n\t\t\tlist.setModel(livreString);\r\n\t}", "title": "" }, { "docid": "4e44987d4fc6ca18c0bbbbd541217f2d", "score": "0.54851377", "text": "public void refreshItemList()\r\n {\r\n updateListModel();\r\n }", "title": "" }, { "docid": "fb36026671fc7abc7417a22d22645e81", "score": "0.5483003", "text": "public void editData(List<String[]> editedData);", "title": "" }, { "docid": "9212842c4a14c3c5663ca7d01c0733b2", "score": "0.5470485", "text": "public void updateValues() {\n listModel.updateInfo();\n this.updateEnabled();\n }", "title": "" }, { "docid": "a9d887f367c23929be62eaeef79013e7", "score": "0.54594857", "text": "public UpdateItemModifierListsResponse updateItemModifierLists(UpdateItemModifierListsRequest body) throws ApiException {\n Object localVarPostBody = body;\n \n // verify the required parameter 'body' is set\n if (body == null) {\n throw new ApiException(400, \"Missing the required parameter 'body' when calling updateItemModifierLists\");\n }\n \n // create path and map variables\n String localVarPath = \"/v2/catalog/update-item-modifier-lists\";\n\n // query params\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n localVarHeaderParams.put(\"Square-Version\", \"2019-11-20\");\n\n \n \n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n\n String[] localVarAuthNames = new String[] { \"oauth2\" };\n\n GenericType<UpdateItemModifierListsResponse> localVarReturnType = new GenericType<UpdateItemModifierListsResponse>() {};\n CompleteResponse<UpdateItemModifierListsResponse> completeResponse = (CompleteResponse<UpdateItemModifierListsResponse>)apiClient.invokeAPI(localVarPath, \"POST\", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);\n return completeResponse.getData();\n }", "title": "" }, { "docid": "51bba2fb60e6d825ee23ff34a22bf70a", "score": "0.543926", "text": "public void m17132a(List<TvItem> list) {\n this.f12393b = list;\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "703c7075e18231ae21d9b78d53b1ef14", "score": "0.543792", "text": "@Override\n\t\t\tpublic void onModifierFinished(IModifier<IEntity> pModifier,\n\t\t\t\t\tIEntity pItem) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "3d97f4a85932889d442ec11af0e74f0f", "score": "0.5435379", "text": "public void update(final List<Items> list) {\n itemsList.addAll(list);\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "42608d9b6b32da137b8d9583df566a46", "score": "0.54272157", "text": "public void updateMassList () {\n checkValidAssembly();\n mList = mAssembly.getMassList();\n }", "title": "" }, { "docid": "b841ce60c44a678879c854c449dd21ad", "score": "0.5423799", "text": "public void setItemList(List<Item> passList)\n {\n // clear item list\n listModel.clear();\n\n //add items to list Model\n for (Item item: passList)\n {\n listModel.addElement(item.toString());\n }\n itemList.setModel(listModel);\n }", "title": "" }, { "docid": "a1c31c7de14cbf5726b8605ddb92df51", "score": "0.54233325", "text": "@Override\r\n\t\t\tpublic void onModifierStarted(IModifier<IEntity> pModifier,\r\n\t\t\t\t\tIEntity pItem) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "6b6990ef0191feac1abec45ea9778c79", "score": "0.54177135", "text": "private void updateDisplay(boolean bPrimary, boolean bRedraw)\n\t{\n\t\t// Get list of modifiers and update the listbox\n\t\t//\n\t\tList eqModList = aNewEq.getEqModifierList(bPrimary);\n\t\tDefaultListModel lm;\n\n\t\tif (bPrimary)\n\t\t{\n\t\t\tlm = listModel1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlm = listModel2;\n\t\t}\n\n\t\tlm.clear();\n\n\t\tfor (Iterator e = eqModList.iterator(); e.hasNext();)\n\t\t{\n\t\t\tfinal EquipmentModifier eqMod = (EquipmentModifier) e.next();\n\t\t\tlm.addElement(eqMod);\n\t\t}\n\n\t\tif (bRedraw)\n\t\t{\n\t\t\tdataModel.fireTableDataChanged();\n\t\t\tshowItemInfo(aPC);\n\t\t}\n\t\t//getRootPane().getParent().requestFocus();\n\t\t((EQFrame)getRootPane().getParent()).setVisible(true);\n\t\t((EQFrame)getRootPane().getParent()).toFront();\n\t}", "title": "" }, { "docid": "c4c3bbd94f32f7d26b9db26fe10cc4bf", "score": "0.5416121", "text": "public void editInfo (ArrayList <? extends Participant> P ){}", "title": "" }, { "docid": "bff364215fa2ac0019a5b882229cb8de", "score": "0.54093796", "text": "public void editInfo(ArrayList<? extends Participant> P) {\n\t\t//TA said that ? means we don't if it is school or student.\n\t\t//With ?, we can pass in both school or student and either will work.\n\t}", "title": "" }, { "docid": "5a56265316a9162105b35981ef103d57", "score": "0.540933", "text": "public void setList(ArrayList<Multiple> newList)\n {\n this.list = newList;\n }", "title": "" }, { "docid": "d29c962de340102a72e04dacaa31f5f3", "score": "0.5401708", "text": "void changelist(ArrayList<Card> new_list);", "title": "" }, { "docid": "9b353fde0640864e3f4f7b09a9b9213e", "score": "0.5397726", "text": "@Override\n\tpublic void onModifierStarted(IModifier<IEntity> pModifier, IEntity pItem) {\n\t\t\n\t}", "title": "" }, { "docid": "0d73253e8eec64e281c51e1994a49f3e", "score": "0.53946245", "text": "private void setItemData() {\n itemNameExitText.setText(editItem.getName());\n ratingBar.setRating(editItem.getRating());\n\n attrCategorySelected = categoryDataSource.getCategory(editItem.getCategoryId());\n attrCategoryValue.setText(attrCategorySelected.getName(activity));\n attrColorSelected = colorDataSource.getColor(editItem.getPrimaryColorId());\n attrColorValue.setSelection(allColors.indexOf(attrColorSelected));\n\n if (editItem.getImageFile() != null) {\n String imgPath = editItem.getImageFile();\n item_imageFile = imgPath;\n\n picassoSingleton.setImageFit(imgPath, imgPhoto,\n activity.getDrawable(R.drawable.kleiderbuegel),\n activity.getDrawable(R.drawable.addcamera2));\n }\n if (editItem.getIsWish() == 0) {\n attrWishlistValue.setChecked(false);\n } else {\n attrWishlistValue.setChecked(true);\n }\n\n List<Attribute> itemAttributes = attributeDataSource.getAttributesByItemId(editItem.getId());\n for (Attribute tmpItemAttr : itemAttributes) {\n attributeTypesList.add(tmpItemAttr.getAttributeType());\n setAttributeLayoutData(tmpItemAttr.getAttributeType(), tmpItemAttr.getValue());\n }\n }", "title": "" }, { "docid": "3b7c08b1c82df6f488bfcd1dad86484b", "score": "0.5392718", "text": "abstract void editMenuItem(MenuItem item);", "title": "" }, { "docid": "4f362d31a995342a97b5acfbfc27e94a", "score": "0.53886986", "text": "public void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tObject[] item = {descriptionTextField.getText(),\n\t\t\t\t\t\t\t\t\tcategoryTextField.getText(),\n\t\t\t\t\t\t\t\t\tDouble.parseDouble(wholesaleTextField.getText()),\n\t\t\t\t\t\t\t\t\tDouble.parseDouble(retailTextField.getText()),\n\t\t\t\t\t\t\t\t\tInteger.parseInt(quantityTextField.getText())};\n\t\t\t\t\tif(itemExists != -1) \n\t\t\t\t\t{\n\t\t\t\t\t\tinv.editListItem(item, getItemExists());\n\t\t\t\t\t} \n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tinv.updateList(item);\n\t\t\t\t\t\tclearTextFields();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(NullPointerException ex) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException ex) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "ecf0829f671e91ae70754b0727726624", "score": "0.537327", "text": "@Override\n\tpublic void modifier(Membre membre) {\n\t\t\n\t}", "title": "" }, { "docid": "df4fe9a827415e0cf6ebdfb68e9d4670", "score": "0.5370004", "text": "@Override\n public void apply(NBTTagCompound root) {\n NBTTagList tagList;\n\n // if the modifier wasn't present before, add it and safe it to the tool\n if(!TinkerUtil.hasModifier(root, getIdentifier())) {\n tagList = TagUtil.getBaseModifiersTagList(root);\n tagList.appendTag(new NBTTagString(getIdentifier()));\n TagUtil.setBaseModifiersTagList(root, tagList);\n }\n\n // have the modifier itself save its data\n NBTTagCompound modifierTag = new NBTTagCompound();\n tagList = TagUtil.getModifiersTagList(root);\n int index = TinkerUtil.getIndexInList(tagList, identifier);\n if(index >= 0) {\n modifierTag = tagList.getCompoundTagAt(index);\n }\n\n // update NBT through aspects\n for(ModifierAspect aspect : aspects) {\n aspect.updateNBT(root, modifierTag);\n }\n\n updateNBT(modifierTag);\n\n // some modifiers might not save data, don't save them\n if(!modifierTag.hasNoTags()) {\n // but if they do, ensure that the identifier is correct\n ModifierNBT data = ModifierNBT.readTag(modifierTag);\n if(!identifier.equals(data.identifier)) {\n data.identifier = identifier;\n data.write(modifierTag);\n }\n }\n\n // update the tools NBT\n if(index >= 0) {\n tagList.set(index, modifierTag);\n }\n else {\n tagList.appendTag(modifierTag);\n }\n\n TagUtil.setModifiersTagList(root, tagList);\n\n applyEffect(root, modifierTag);\n }", "title": "" }, { "docid": "f8557608bbee221fee2640dc0364b8d7", "score": "0.5366313", "text": "@Override\n\tpublic void onModifierFinished(IModifier<IEntity> pModifier, IEntity pItem) {\n\t}", "title": "" }, { "docid": "2bc52723e452b22e0934120459a7d8af", "score": "0.5364996", "text": "public void setInventoryList(List<Item> list) \r\n\t{\r\n\t\tthis.list = list;\r\n\t}", "title": "" }, { "docid": "da08df66f9077be332f6982e72589e8d", "score": "0.5348578", "text": "private void editOrderItem(@NotNull Order o) {\n if (o.getOrderItems().size() == 0) {\n System.out.println(\"No items in order\");\n return;\n }\n\n // View list of order items\n int selection = getOrderItemToEdit(o, \"Select an item to change quantity: \");\n int quantity = ScannerHelper.getIntegerInput(\"Enter the new Quantity for the item. (Current Qty: \" + o.getOrderItems().get(selection).getQuantity() + \"): \", 0);\n // Update quantity\n o.getOrderItems().get(selection).setQuantity(quantity);\n o.calculateSubtotal();\n System.out.println(\"Quantity has been updated\");\n }", "title": "" }, { "docid": "9707a79e1942b026612564dd2c8d9a5a", "score": "0.53439265", "text": "public void editItemEvent(ListPanelEvent e);", "title": "" }, { "docid": "86651fec6faae13a5c8916c4a2361164", "score": "0.5342526", "text": "public static void updateNeededItem(Item i) {\r\n\t\tneededItem = i;\r\n\t}", "title": "" }, { "docid": "b9f823d7348f140405fac516c9038fc1", "score": "0.5312138", "text": "protected void updateList() {\n\n// For a ListActivity we need to set the List Adapter, and in order to do\n// that, we need to create a ListAdapter. This SimpleAdapter,\n// will utilize our updated Hashmapped ArrayList,\n// use our single_post xml template for each item in our list,\n// and place the appropriate info from the list to the\n// correct GUI id. Order is important here.\n\n mainAdapter = new ParkAdapter(mResultList);\n mainRecyclerView.setAdapter(mainAdapter);\n }", "title": "" }, { "docid": "9b1a2a915e7373e8a0f23dd0ce3001ae", "score": "0.53118056", "text": "protected abstract void listSetItem(int index, String string);", "title": "" }, { "docid": "428bd21b126e86146e27b2b2c342aea5", "score": "0.52979743", "text": "public void updateValueOfModifier(Character character){\n initiaModifierValue(); //avoid repeating\n Collection<Equipment> wornequips=character.getWornEquipments().values();\n for(Equipment e:wornequips)\n e.addEnchantBonusToModifier(this);\n }", "title": "" }, { "docid": "fcb91eed38897d54efaba256c5a60f8e", "score": "0.5297393", "text": "public void modifyGroceryItem(int position, String newItem){\n groceryList.set(position, newItem);\n System.out.println(\"Grocery item \" + (position+1) + \" has been modified.\");\n }", "title": "" }, { "docid": "91e141cacefe537374741b317d466d05", "score": "0.52911025", "text": "private void updateList() {\n\t\tfinal Set<String> functionModules = selectedFunctionModules.keySet();\n\t\tfunctionModuleList.setItems(functionModules.toArray(new String[functionModules.size()]));\n\t\tsetPageComplete(functionModules.size() > 0);\n\t}", "title": "" }, { "docid": "e3b6b4cf4a46c22e0d8aa7d8755044dc", "score": "0.52901554", "text": "void updateIssuerModelList(@NonNull List<IssuerModel> issuerModelList) {\n final boolean newList = mIssuerModelList.size() != issuerModelList.size();\n mIssuerModelList = issuerModelList;\n if (newList) {\n Logger.d(TAG, \"new list\");\n notifyDataSetChanged();\n } else {\n Logger.v(TAG, \"update list\");\n for (int position = 0; position < mIssuerModelList.size(); position++) {\n if (mIssuerModelList.get(position).isUpdated()) {\n mIssuerModelList.get(position).consumeUpdate();\n notifyItemChanged(position);\n }\n }\n }\n }", "title": "" }, { "docid": "e8cca987b70909783ed7caa201f606c9", "score": "0.5281547", "text": "public void update(){\t\t\n\t\tif(mReorderBuffer.peek() != null && mReorderBuffer.peek().getValue() != null){\t\t\t\n\t\t\tItemReorderBuffer item = mReorderBuffer.poll();\n\t\t\t//System.out.println(\"XXXXXXXXXXXXXXXXXXXX \"+ item.toString());\n\t\t\t// escribir el valor en le reg fisico\n\t\t\titem.getTarget().setValue( item.getValue() );\n\t\t\tthis.InstrucRatioDispatch++;\n\t\t}\t\n\t}", "title": "" }, { "docid": "69ebaf5808b7ca3b6beafd4535e97dcf", "score": "0.52756274", "text": "public void setInventoryItems()\n {\n try\n {\n //Reading Inventory info from inventory table in database\n PreparedStatement preparedStmt = MyConnection.getConnection().prepareStatement(\"select * from inventory\");\n ResultSet rs = preparedStmt.executeQuery();\n try\n {\n //Getting All Rows in Database from inventory table\n while (rs.next())\n {\n //looping over inventoryList map to add inventory info with id read from database\n inventoryList.keySet().forEach((itemName) ->\n {\n try\n {\n if (inventoryList.get(itemName).getMenuItem().getItemId() == rs.getInt(\"item_id\"))\n {\n inventoryList.get(itemName).setAvaliableMenuItem(rs.getInt(\"avaliable_quantity\"));\n inventoryList.get(itemName).setSoldMenuItem(rs.getInt(\"units_sold\"));\n inventoryList.get(itemName).setNumberOfRates(rs.getInt(\"number_rate\"));\n }\n } catch (SQLException ex)\n {\n Logger.getLogger(Inventory.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n });\n }\n\n } catch (SQLException ex)\n {\n Logger.getLogger(Inventory.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n } catch (SQLException ex)\n {\n Logger.getLogger(Inventory.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "318b532356304adab786353116713c98", "score": "0.5273964", "text": "private static void editAnItem() {\n\t\tSystem.out.println(\"How would you like to search? \");\r\n\t\tSystem.out.println(\"1 : Search by Type\");\r\n\t\tSystem.out.println(\"2 : Search by Pet's name\");\r\n\t\tSystem.out.println(\"3 : Search by Owner's name\");\r\n\t\tint searchBy = in.nextInt();\r\n\t\tin.nextLine();\r\n\t\tList<TableOwnerinfo> foundItems;\r\n\t\tif (searchBy == 1) {\r\n\t\t\tSystem.out.print(\"Enter the type: \");\r\n\t\t\tString typeName = in.nextLine();\r\n\t\t\tfoundItems = oih.searchForItemByType(typeName);\r\n\t\t} else if (searchBy == 2) {\r\n\t\t\tSystem.out.print(\"Enter the pet's name: \");\r\n\t\t\tString petName = in.nextLine();\r\n\t\t\tfoundItems = oih.searchForItemByName(petName);\r\n\t\t} else {\r\n\t\t\tSystem.out.print(\"Enter the Owner's name: \");\r\n\t\t\tString ownerName = in.nextLine();\r\n\t\t\tfoundItems = oih.searchForItemByOwner(ownerName);\r\n\t\t}\r\n\r\n\t\tif (!foundItems.isEmpty()) {\r\n\t\t\tSystem.out.println(\"Found Results.\");\r\n\t\t\tfor (TableOwnerinfo l : foundItems) {\r\n\t\t\t\tSystem.out.println(l.getId() + \" : \" + l.toString());\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"Which ID to edit: \");\r\n\t\t\tint idToEdit = in.nextInt();\r\n\r\n\t\t\tTableOwnerinfo toEdit = oih.searchForItemById(idToEdit);\r\n\t\t\tSystem.out.println(\"Retrieved \" + toEdit.getName() + \" from \" + toEdit.getOwner());\r\n\t\t\tSystem.out.println(\"1 : Update Pet's type\");\r\n\t\t\tSystem.out.println(\"2 : Update Pet's name\");\r\n\t\t\tSystem.out.println(\"3 : Update Owner's name\");\r\n\t\t\tint update = in.nextInt();\r\n\t\t\tin.nextLine();\r\n\r\n\t\t\tif (update == 1) {\r\n\t\t\t\tSystem.out.print(\"New Type: \");\r\n\t\t\t\tString newType = in.nextLine();\r\n\t\t\t\ttoEdit.setType(newType);\r\n\t\t\t} else if (update == 2) {\r\n\t\t\t\tSystem.out.print(\"New Name: \");\r\n\t\t\t\tString newName = in.nextLine();\r\n\t\t\t\ttoEdit.setName(newName);\r\n\t\t\t} else if (update == 3) {\r\n\t\t\t\tSystem.out.print(\"New Owner: \");\r\n\t\t\t\tString newOwner = in.nextLine();\r\n\t\t\t\ttoEdit.setOwner(newOwner);\r\n\t\t\t}\r\n\r\n\t\t\toih.updateItem(toEdit);\r\n\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"---- No results found\");\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "30c57ffbbf7cdc4073cca746b049ec86", "score": "0.5273164", "text": "public static void setItems(ArrayList<Item> pItem){\n items = pItem;\n }", "title": "" }, { "docid": "9cfac9c6718488a6a71d11f5c98dcd3e", "score": "0.5270089", "text": "@Deprecated\r\n CompletableFuture<V1Item> applyModifierListAsync(\r\n final String locationId,\r\n final String modifierListId,\r\n final String itemId);", "title": "" }, { "docid": "67a0b550c7bab868e47d30a96d84d7c6", "score": "0.5258175", "text": "protected void doUpdateItem(Widget data, Object element, boolean fullMap) {\n if (element != null) {\n int ix = getElementIndex(element);\n if (ix >= 0) {\n ILabelProvider labelProvider = (ILabelProvider) getLabelProvider();\n listSetItem(ix, getLabelProviderText(labelProvider,element));\n }\n }\n }", "title": "" }, { "docid": "340a37c5e9362facf86b283a883e3803", "score": "0.5253616", "text": "public void edit()\n\t{\n\t\tchangesmade=true;\n\t\tSystem.out.println(\"Enter Person FirstName Of Edited Person\");\n\t\tfirstname=Utility.next();\n\t\tSystem.out.println(\"Enter MobileNumber Of Edited Person\");\n\t\tphone=Utility.next();\n\t\tint i=0;\n\t\tfor(i=0;i<list.size();i++)\n\t\t{\n\t\t\tPerson temp=list.get(i);\n\t\t\tif(temp.getfirstname().equals(firstname) && temp.getaddress().getphone().equals(phone))\n\t\t\t{\n\t\t\t\tint Answer2=0;\n\t\t\tdo {\n\t\t\t\t\tSystem.out.println(\"What You Want To Edit\");\n\t\t\t\t\tSystem.out.println(\"1.LastName\");\n\t\t\t\t\tSystem.out.println(\"2.City\");\n\t\t\t\t\tSystem.out.println(\"3.Zip\");\n\t\t\t\t\tSystem.out.println(\"4.State\");\n\t\t\t\t\tSystem.out.println(\"5.Phone\");\n\t\t\t\t\tSystem.out.println(\"6.Exit\");\n\t\t\t\t\tAnswer2=Utility.getInt();\n\t\t\t\t\tswitch(Answer2)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.println(\"Enter New LastName\");\n\t\t\t\t\t\t\tlastname=Utility.next();\n\t\t\t\t\t\t\tlist.get(i).setlastname(lastname);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.println(\"Enter New City\");\n\t\t\t\t\t\t\tcity=Utility.next();\n\t\t\t\t\t\t\tlist.get(i).address.city=city;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.println(\"Enter New Zip\");\n\t\t\t\t\t\t\tzip=Utility.next();\n\t\t\t\t\t\t\tlist.get(i).address.zip=zip;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tSystem.out.println(\"Enter New State\");\n\t\t\t\t\t\t\tstate=Utility.next();\n\t\t\t\t\t\t\tlist.get(i).address.state=state;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\tSystem.out.println(\"Enter New Phone\");\n\t\t\t\t\t\t\tphone=Utility.next();\n\t\t\t\t\t\t\tlist.get(i).address.phone=phone;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\tSystem.out.println(\"Exiting\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"Invalid Entry\");\n\t\t\t\t\t}\n\t\t\t\t}while(Answer2!=6);\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(i>list.size())\n\t\t{\n\t\t\tSystem.out.println(\"No Person Fount With This Details\");\n\t\t}\n\t}", "title": "" }, { "docid": "74df92d9b60f03a05f201d08ca7ea8e3", "score": "0.5244289", "text": "void editItem(ItemForUpdateDto item, long principalId) throws SQLException, IOException;", "title": "" }, { "docid": "098c6fd4dd95cd86e15ef1a66b8e2811", "score": "0.52403957", "text": "private void editRecipe(){\r\n\t\t// Show the implement to let user input a recipe name\r\n\t\tSystem.out.print(\"What is the name of the recipe? \");\r\n\t\t// Use scanner to scanner the input string and save it into the field\r\n\t\trecipeName = scnr.nextLine();\r\n\t\t// Change the name into Upper case\r\n\t\trecipeName=recipeName.toUpperCase();\r\n\t\t// Detect whether there is already the same recipe in the list;\r\n\t\t// If not, save the recipe;\r\n\t\t// If there is already one, ask the user whether to update the \r\n\t\t// information of the recipe or not.\r\n\t\tif(recipe.size() == 0){\r\n\t\t\tSystem.out.println(\"Adding recipe for: \"+recipeName);\r\n\t\t\tSystem.out.println(\"Enter the ingredients:\");\r\n\t\t\tingredients = scnr.nextLine();\r\n\t\t\tSystem.out.println(\"Enter the instructions:\");\r\n\t\t\tinstructions = scnr.nextLine();\r\n\t\t\trecipe.add(new Recipe(recipeName,ingredients,instructions));\r\n\t\t}else{\r\n\t\t\tint i = checkRecipe(recipeName);\r\n\t\t\tif (i >= 0){\r\n\t\t\t\tSystem.out.println(\"Found recipe for: \" + recipeName);\r\n\t\t\t\tSystem.out.println(\"Recipe name: \" + recipeName);\r\n\t\t\t\tSystem.out.println(\"Ingredients: \" + \r\n\t\t\t\t\t\trecipe.get(i).getingredients());\r\n\t\t\t\tSystem.out.println(\"Instructions: \" + \r\n\t\t\t\t\t\trecipe.get(i).getinstructions());\r\n\t\t\t\tint choice = 0;\r\n\t\t\t\t// print implements to guild the user whether to do since there\r\n\t\t\t\t// is already a same recipe in the list.\r\n\t\t\t\t// Choose 1 to edit ingredient list;\r\n\t\t\t\t// Choose 2 to edit instructions;\r\n\t\t\t\t// Choose 3 to finish editing;\r\n\t\t\t\t// This step will repeat until user input 3 or input any invalid\r\n\t\t\t\t// inputs.\r\n\t\t\t\tdo{\r\n\t\t\t\t\tSystem.out.print(\"1. Edit ingredient list\"+'\\n'+\r\n\t\t\t\t\t\t\t\"2. Edit instructions\"+'\\n'+\r\n\t\t\t\t\t\t\t\"3. Done editing\"+'\\n'+\r\n\t\t\t\t\t\t\t\"Enter choice: \");\r\n\t\t\t\t\tif(scnr.hasNextInt()){\r\n\t\t\t\t\t\tchoice = scnr.nextInt();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tscnr.nextLine();\r\n\r\n\t\t\t\t\tswitch (choice){\r\n\t\t\t\t\tcase (1):{\r\n\t\t\t\t\t\tSystem.out.println(\"Enter the ingredients:\");\r\n\t\t\t\t\t\tingredients = scnr.nextLine();\r\n\t\t\t\t\t\trecipe.get(i).setingredients(ingredients);\r\n\r\n\t\t\t\t\t\tSystem.out.println(\"Recipe name: \"+\r\n\t\t\t\t\t\t\t\trecipe.get(i).getRecipeName());\r\n\t\t\t\t\t\tSystem.out.println(\"Ingredients: \"+\r\n\t\t\t\t\t\t\t\trecipe.get(i).getingredients());\r\n\t\t\t\t\t\tSystem.out.println(\"Instructions: \"+\r\n\t\t\t\t\t\t\t\trecipe.get(i).getinstructions());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}case(2):{\r\n\t\t\t\t\t\tSystem.out.println(\"Enter the instructions:\");\r\n\t\t\t\t\t\tinstructions = scnr.nextLine();\r\n\t\t\t\t\t\trecipe.get(i).setinstructions(instructions);\r\n\r\n\t\t\t\t\t\tSystem.out.println(\"Recipe name: \"+\r\n\t\t\t\t\t\t\t\trecipe.get(i).getRecipeName());\r\n\t\t\t\t\t\tSystem.out.println(\"Ingredients: \"+\r\n\t\t\t\t\t\t\t\trecipe.get(i).getingredients());\r\n\t\t\t\t\t\tSystem.out.println(\"Instructions: \"+\r\n\t\t\t\t\t\t\t\trecipe.get(i).getinstructions());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}case (3):{\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}default :{\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}//end of switch\r\n\t\t\t\t}while(choice ==1 || choice == 2);\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Adding recipe for: \"+recipeName);\r\n\t\t\t\tSystem.out.println(\"Enter the ingredients:\");\r\n\t\t\t\tingredients = scnr.nextLine();\r\n\t\t\t\tSystem.out.println(\"Enter the instructions:\");\r\n\t\t\t\tinstructions = scnr.nextLine();\r\n\t\t\t\trecipe.add(new Recipe(recipeName,ingredients,instructions));\r\n\t\t\t}\r\n\t\t}//end of else;\r\n\t}", "title": "" }, { "docid": "cee9276bfc2254a69817295592425c5a", "score": "0.52381253", "text": "public void update(ArrayList<Order> toDo);", "title": "" }, { "docid": "70a6024f0552079097632bb652f862c2", "score": "0.5237748", "text": "public void setModifiers(List<Modifier> modifiers)\r\n\t{\r\n\t\tif (modifiers == null || modifiers.isEmpty()) {\r\n\t\t\tthis.modifiers = null;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tModifier adj;\r\n\t\tfor (int i = 0; i < modifiers.size(); ++i) {\r\n\t\t\tadj = modifiers.get(i);\r\n\t\t\tgetModifiers().add(adj);\r\n\t\t\tadj.setParent(this);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2721d66248d14259083d5516da92ab7a", "score": "0.52356684", "text": "public void setItems(List<? extends Item> items);", "title": "" }, { "docid": "48f60a7622cf52a69ab9d148bc423dbd", "score": "0.5233192", "text": "public void modifyMenuItem(MenuItem menuItem) {\n\tfor(MenuItem x:menuItemList)\n\t{\n\t\tif(x.equals(menuItem))\n\t\t{\n\t\t\tx.setName(menuItem.getName());\n\t\t\tx.setActive(menuItem.isActive());\n\t\t\tx.setCategory(menuItem.getCategory());\n\t\t\tx.setDateOfLaunch(menuItem.getDateOfLaunch());\n\t\t\tx.setCategory(menuItem.getCategory());\n\t\t\tx.setFreeDelivery(menuItem.isFreeDelivery());\n\t\t\t\n\t\t}\n\t}\n\t\n}", "title": "" }, { "docid": "2cb514e77b2e7cf5dc70541a4aab61f4", "score": "0.5231268", "text": "public void setList(ArrayList<String> newText) {\n\t\tthis.list = newText;\n\t}", "title": "" }, { "docid": "c18478da8454e2efc40081684c45f2a9", "score": "0.52245224", "text": "public void setItemList(ArrayList list) {\n itemList = list;\n }", "title": "" }, { "docid": "10ecd6333a639e702a2f9c4a5a81db81", "score": "0.5209531", "text": "@Override\r\n\tpublic void modify() {\n\r\n\t}", "title": "" }, { "docid": "9aec0dd984bfa291cac31c2cf4a11aea", "score": "0.52083737", "text": "public void convertItemsMaptoList(){\n\t\tconvertItemsMaptoListStatic();\n\t\t((BaseAdapter)this.getListAdapter()).notifyDataSetChanged();\n\t}", "title": "" }, { "docid": "5d3208db1aedd19553473a2bdc057861", "score": "0.5196721", "text": "void eventList_itemStateChanged() {\n\t\tdouble[] profile = { 0, 0, 0 };\n\t\tint modifierIndex, nounIndex;\n\t\tint selectedEvent = eventList.getSelectedIndex();\n\t\tdo {\n\t\t\tEventRecord evntRcrd =\n\t\t\t\t(EventRecord) Interact.person[Interact.viewer].serialEvents\n\t\t\t\t\t.elementAt(selectedEvent);\n\t\t\tif (!Interact.person[Interact.viewer].serialEvents\n\t\t\t\t.assembleInputs(selectedEvent)) { // Assemble the inputs.\n\t\t\t\tcurrentEvent = -1; // Quit if unsuccessful.\n\t\t\t} else { // Successfully assembled inputs.\n\t\t\t\tcurrentEvent = selectedEvent;\n\t\t\t\tif ((currentEvent == 0) || evntRcrd.beginNewAnalysis) {\n\t\t\t\t\t// Starting new analysis.\n\t\t\t\t\tusedBehaviors.removeAllElements();\n\t\t\t\t\tif (evntRcrd.restartAtZero) {\n\t\t\t\t\t\t// Set fundamentals for each interactant to zero.\n\t\t\t\t\t\tfor (int position = 0; position < 4; position =\n\t\t\t\t\t\t\tposition + 2) {\n\t\t\t\t\t\t\tfor (int epa = 0; epa < Interact.N_DIMENSIONS; epa++) {\n\t\t\t\t\t\t\t\tevntRcrd.abosFundamentals[position][epa] = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (SentimentChange.changingSentiments) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Seek optimal current behavior (not next behavior)\n\t\t\t\t\t\t\t * for predicting observed behaviors.\n\t\t\t\t\t\t\t * findingNextActorBehavior = false in Equations.\n\t\t\t\t\t\t\t * Get index of first mutator identity.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tString MutatorName =\n\t\t\t\t\t\t\t\t\"Mutator_\" + Integer.toString(1) + \"_\"\n\t\t\t\t\t\t\t\t\t+ Integer.toString(1);\n\t\t\t\t\t\t\tint index =\n\t\t\t\t\t\t\t\tInteract.identities.getIndex(MutatorName);\n\t\t\t\t\t\t\t// Set fundamentals for each mutator identity to\n\t\t\t\t\t\t\t// zero.\n\t\t\t\t\t\t\tfor (int i = index; i < index\n\t\t\t\t\t\t\t\t+ Interact.numberOfInteractants\n\t\t\t\t\t\t\t\t* Interact.numberOfInteractants; i++) {\n\t\t\t\t\t\t\t\tData affectedLine =\n\t\t\t\t\t\t\t\t\t(Data) Interact.identities.elementAt(i);\n\t\t\t\t\t\t\t\tfor (int epa = 0; epa < Interact.N_DIMENSIONS; epa++) {\n\t\t\t\t\t\t\t\t\taffectedLine.maleEPA[epa] = 0;\n\t\t\t\t\t\t\t\t\taffectedLine.femaleEPA[epa] =\n\t\t\t\t\t\t\t\t\t\taffectedLine.maleEPA[epa];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // end if/changingSentiments\n\t\t\t\t\t} // end if/restartAtZero\n\t\t\t\t\tfor (int alter = 0; alter < Interact.numberOfInteractants; alter++) {\n\t\t\t\t\t\t// Initialize remaining history (i.e., future).\n\t\t\t\t\t\tif (alter == evntRcrd.vao[1]) { // Event actor.\n\t\t\t\t\t\t\tfillHistory(Interact.viewer, alter,\n\t\t\t\t\t\t\t\tevntRcrd.abosFundamentals[0], currentEvent);\n\t\t\t\t\t\t} else if (alter == evntRcrd.vao[2]) { // Event object.\n\t\t\t\t\t\t\tfillHistory(Interact.viewer, alter,\n\t\t\t\t\t\t\t\tevntRcrd.abosFundamentals[2], currentEvent);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Interactant not in this event.\n\t\t\t\t\t\t\tDataList happenings =\n\t\t\t\t\t\t\t\tInteract.person[Interact.viewer].serialEvents;\n\t\t\t\t\t\t\tmodifierIndex = -1;\n\t\t\t\t\t\t\tnounIndex = -1;\n\t\t\t\t\t\t\tboolean viewerMale =\n\t\t\t\t\t\t\t\tInteract.person[Interact.viewer].sex;\n\t\t\t\t\t\t\tpreview: for (int t = currentEvent + 1; t < happenings\n\t\t\t\t\t\t\t\t.size(); t++) {\n\t\t\t\t\t\t\t\t// Check future events for alter's fundamental.\n\t\t\t\t\t\t\t\tEventRecord definedEvent =\n\t\t\t\t\t\t\t\t\t(EventRecord) happenings.elementAt(t);\n\t\t\t\t\t\t\t\tif (definedEvent.vao[1] == alter) {\n\t\t\t\t\t\t\t\t\tmodifierIndex =\n\t\t\t\t\t\t\t\t\t\tdefinedEvent.abosIndexes[0][0];\n\t\t\t\t\t\t\t\t\tnounIndex = definedEvent.abosIndexes[0][1];\n\t\t\t\t\t\t\t\t} else if (definedEvent.vao[2] == alter) {\n\t\t\t\t\t\t\t\t\tmodifierIndex =\n\t\t\t\t\t\t\t\t\t\tdefinedEvent.abosIndexes[2][0];\n\t\t\t\t\t\t\t\t\tnounIndex = definedEvent.abosIndexes[2][1];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (nounIndex > -1) { // Found alter.\n\t\t\t\t\t\t\t\t\tif (modifierIndex > -1) {\n\t\t\t\t\t\t\t\t\t\t// For a modified identity, amalgamate\n\t\t\t\t\t\t\t\t\t\t// modifier + noun.\n\t\t\t\t\t\t\t\t\t\tprofile =\n\t\t\t\t\t\t\t\t\t\t\tMathModel.amalgamate(viewerMale,\n\t\t\t\t\t\t\t\t\t\t\t\tmodifierIndex, nounIndex);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// Retrieve the dictionary line for the\n\t\t\t\t\t\t\t\t\t\t// specified noun (or verb).\n\t\t\t\t\t\t\t\t\t\tData datum =\n\t\t\t\t\t\t\t\t\t\t\t((Data) Interact.identities\n\t\t\t\t\t\t\t\t\t\t\t\t.elementAt(nounIndex));\n\t\t\t\t\t\t\t\t\t\tif (viewerMale) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.arraycopy(datum.maleEPA, 0,\n\t\t\t\t\t\t\t\t\t\t\t\tprofile, 0, 3);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.arraycopy(datum.femaleEPA,\n\t\t\t\t\t\t\t\t\t\t\t\t0, profile, 0, 3);\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\tfillHistory(Interact.viewer, alter,\n\t\t\t\t\t\t\t\t\t\tprofile, currentEvent);\n\t\t\t\t\t\t\t\t\tbreak preview;\n\t\t\t\t\t\t\t\t} // end if/found alter.\n\t\t\t\t\t\t\t} // end preview: for/t.\n\t\t\t\t\t\t} // end else interactant not in starting event.\n\t\t\t\t\t} // end for/alter\n\t\t\t\t} // end if/ Starting new analysis\n\t\t\t\tint behaviorDicIndex = evntRcrd.abosIndexes[1][1];\n\t\t\t\tif (behaviorDicIndex > -1) {\n\t\t\t\t\tusedBehaviors.addElement(((Data) Interact.behaviors\n\t\t\t\t\t\t.elementAt(behaviorDicIndex)).word);\n\t\t\t\t\t// Remember this behavior as used.\n\t\t\t\t} else { // Seeking optimal behavior.\n\t\t\t\t\tpresentFutureMenu.select(0);\n\t\t\t\t\t// Seek optimal current behavior, not next behavior.\n\t\t\t\t\tif (Interact.controls.complexityChoice.getSelectedIndex() == 0) {\n\t\t\t\t\t\tInteract.controls\n\t\t\t\t\t\t\t.setComplexityLevel(ControlsMenuBar.ADVANCED);\n\t\t\t\t\t\t// So user sees current on presentFutureMenu.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Make the event happen.\n\t\t\t\timplementEvent();\n\t\t\t\t// Show the current event in the event list.\n\t\t\t\tif (eventList.getItemCount() > (selectedEvent + 1)) {\n\t\t\t\t\teventList.makeVisible(selectedEvent);\n\t\t\t\t}\n\t\t\t} // End successful input assembly.\n\t\t\tif (Interact.batch) {\n\t\t\t\teventList.select(++selectedEvent);\n\t\t\t}\n\t\t} while (Interact.batch & selectedEvent < eventList.getItemCount());\n\t}", "title": "" }, { "docid": "53fb1fa6db199194e4df84854fdc2602", "score": "0.51964104", "text": "@Override\n public void updateNBT(NBTTagCompound modifierTag) {\n }", "title": "" }, { "docid": "35502eb1e3c69b41c8deb5fb75626ef9", "score": "0.5190098", "text": "@Override\n\tpublic void update() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"#####UPDATING A PROMOTIONAL SET ITEM#####\");\n\t\tint choice;\n\t\tSystem.out.print(\"Enter item number:\");\n\t\tint itemNo=Sc.nextInt();\n\t\tPromotionalSetPackage update=getItem(itemNo);\n\t\tif(update==null){\n\t\t\tSystem.out.println(\"Item does not exist!\");\n\t\t\treturn;\n\t\t}\n\t\tdo{\n\t\tSystem.out.println(\"What would you like to ammend?\\n1.Name\\n2.Price\\n3.Main Course Item\\n4.Drink Item\\n5.Dessert Item\\n6.Availability\\n0.Exit\");\n\t\tchoice=Sc.nextInt();\n\t\tswitch(choice){\n\t\tcase 1:\n\t\tSc.nextLine();\n\t\tSystem.out.print(\"Enter name:\");\n\t\tString name=Sc.nextLine();\n\t\tupdate.setName(name);\n\t\t\tbreak;\n\t\tcase 2:\n\t\tdishSet.remove(update);\n\t\tSystem.out.print(\"Enter Price:\");\n\t\tdouble price=Sc.nextDouble();\n\t\tupdate.setPrice(price);\n\t\tdishSet.add(update);\n\t\t\tbreak;\n\t\tcase 3:\n\t\tm.display();\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Enter main course item number to replace:\");\n\t\tint mainCourseItem=Sc.nextInt();\n\t\tMainCourse promoMainCourse=m.getItem(mainCourseItem);\n\t\t//Error checking in case the item name does not exist.\n\t\twhile(promoMainCourse==null){\n\t\t\tSystem.out.println(\"This main course does not exist\");\n\t\t\tSystem.out.print(\"Enter new item:\");\n\t\t\tmainCourseItem=Sc.nextInt();\n\t\t\tpromoMainCourse=m.getItem(mainCourseItem);\n\t\t}\n\t\tupdate.setMainDish(promoMainCourse);\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\td.display();\n\t\t\tSystem.out.print(\"\\nEnter drink item number to replace:\");\n\t\t\tint drinkNo=Sc.nextInt();\n\t\t\tDrink promoDrink=d.getItem(drinkNo);\n\t\t\twhile(promoDrink==null){\n\t\t\t\tSystem.out.println(\"This drink does not exist\");\n\t\t\t\tSystem.out.print(\"Enter new drink item:\");\n\t\t\t\tdrinkNo=Sc.nextInt();\n\t\t\t\tpromoDrink=d.getItem(drinkNo);\n\t\t\t}\n\t\tupdate.setDrinkChoice(promoDrink);\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tdez.display();\n\t\t\tSystem.out.print(\"\\nEnter dessert item number to replace:\");\n\t\t\tint dessertNo=Sc.nextInt();\n\t\t\tDessert promoDessert=dez.getItem(dessertNo);\n\t\t\twhile(promoDessert==null){\n\t\t\t\tSystem.out.println(\"This dessert does not exist\");\n\t\t\t\tSystem.out.print(\"Enter new dessert item:\");\n\t\t\t\tdessertNo=Sc.nextInt();\n\t\t\t\tpromoDessert=dez.getItem(dessertNo);\n\t\t\t}\n\n\t\tupdate.setDessertChoice(promoDessert);\n\t\t\tbreak;\n\t\tcase 6: System.out.println(\"Set availability(True/False)\");\n\t\tboolean available=Sc.nextBoolean();\n\t\tupdate.setAvailable(available);\n\t\tcase 0: break;\n\t\tdefault:\n\t\t\tSystem.out.print(\"Invalid choice! Enter again\");\n\t\t\tchoice=Sc.nextInt();\n\t\t}\n\t\tSystem.out.println(\"The changes have been saved!\");\n\t}while(choice<=6 && choice>0);\n\t}", "title": "" }, { "docid": "cd133c68da2bb8da0ba2b85c6a3f15b3", "score": "0.5179979", "text": "public void setItems(List<ModuleItem> items) {\r\n this.items = items;\r\n }", "title": "" }, { "docid": "535ec717b98344f0be48b767ef2e797e", "score": "0.51573294", "text": "void setListaItemModelo(Collection<IItemModelo> listaItemModelo);", "title": "" }, { "docid": "dbefbb942e57f69fa4bc2f8899dd70ed", "score": "0.5150746", "text": "public void update(){\n\tmazeList.setListData(mazeTest.mazes);\n }", "title": "" }, { "docid": "9b2e41b4a09f815b9ca353123d667ac4", "score": "0.5142241", "text": "public List<Pair<Integer,Integer>> modifyInventory(Player player);", "title": "" }, { "docid": "661106cdbb8317c7b7a201072509e448", "score": "0.51286983", "text": "public void readAddToInvDlgAndUpdate() {\n ListProvider.getInstance().getListById(m_app.getActiveList())\n .add(ItemProvider.getInstance().getItemById(m_addToInvDlg.getItemId()), m_addToInvDlg.getAmount());\n m_addToInvDlg.dismiss();\n updateList();\n }", "title": "" }, { "docid": "bc8fdd1ed926c7990a7028ebaa626fc6", "score": "0.51279444", "text": "@Override\n public boolean editDetails(List<String> details) {\n //first is level, second is fieldRole\n FieldRole fieldRole = null;\n int level = -1;\n\n try{\n level = Integer.parseInt(details.get(0));\n fieldRole = convertStringToFieldRole((details.get(1)));\n }catch (Exception e){\n\n }\n\n if (fieldRole == null || level == -1) {\n return false;\n }\n else {\n setLevel(level);\n setFieldRole(fieldRole);\n return true;\n }\n }", "title": "" }, { "docid": "0341688a1aa11ede00e81e501d25b798", "score": "0.51227677", "text": "public void swapList(ArrayList<Ingredient> newList) {\n mIngredients = newList;\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "0bba738a9549e9eefdda50db94c93745", "score": "0.5113766", "text": "public void updateItems()\n\t{\n\t\tfor(byte i = 0; i < items.length; i++)\n\t\t\titems[i].updatePanel();\n\t}", "title": "" }, { "docid": "7b964aab2697bd1771fa61cb8fa11614", "score": "0.5112767", "text": "private void updateItem(ObligationStatus status)\r\n {\r\n int id = status.getId();\r\n if (id != -1)\r\n {\r\n /*\r\n * Try to retrieve an existing item with the same id.\r\n */\r\n ExpandItem item = items.get(new Integer(id));\r\n\r\n /*\r\n * If the marker represents an obligation that is\r\n * not interesting, we dispose of the existing item\r\n * (if there is one) and then return. There is nothing\r\n * more to do.\r\n */\r\n if (!ProverHelper.isInterestingObligation(status))\r\n {\r\n if (item != null)\r\n {\r\n removeItem(item);\r\n }\r\n\r\n return;\r\n }\r\n\r\n /*\r\n * If there is no existing item, create\r\n * a new one.\r\n */\r\n if (item == null)\r\n {\r\n item = new ExpandItem(bar, SWT.None, 0);\r\n item.setData(KEY, new Integer(id));\r\n\r\n /*\r\n * Create the widget that will appear when the\r\n * item is expanded.\r\n */\r\n Composite oblWidget = new Composite(bar, SWT.LINE_SOLID);\r\n GridLayout gl = new GridLayout(1, true);\r\n // no margin around the widget.\r\n gl.marginWidth = 0;\r\n gl.marginHeight = 0;\r\n oblWidget.setLayout(gl);\r\n\r\n // LL added buttonsWidget to be an inner composite to hold\r\n // the Stop Proving and Goto Obligation buttons on one line.\r\n Composite buttonsWidget = new Composite(oblWidget, SWT.LINE_SOLID);\r\n GridLayout buttonsGl = new GridLayout(2, true);\r\n buttonsGl.marginWidth = 0;\r\n buttonsGl.marginHeight = 0;\r\n buttonsWidget.setLayout(buttonsGl);\r\n buttonsWidget.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n /*\r\n * Add a button for stopping the obligation. This button is\r\n * later disabled if the obligation is not being proved.\r\n * \r\n * The data field for the button stores a pointer to the\r\n * marker for the obligation. This allows a listener\r\n * to retrieve the id of the obligation, or any other information\r\n * which it must send to the prover to stop the proof.\r\n */\r\n Button stopButton = new Button(buttonsWidget /*oblWidget*/, SWT.PUSH);\r\n stopButton.setText(\"Stop Proving\");\r\n stopButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n stopButton.setData(status.getObMarker());\r\n stopButton.addSelectionListener(stopObListener);\r\n item.setControl(oblWidget);\r\n item.setData(KEY_BUTTON, stopButton);\r\n\r\n // gotoButton added by LL on 1 Nov 2012\r\n Button gotoButton = new Button(buttonsWidget /*oblWidget*/, SWT.PUSH);\r\n gotoButton.setText(\"Goto Obligation\");\r\n gotoButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n gotoButton.setData(status.getObMarker());\r\n gotoButton.addSelectionListener(gotoObListener);\r\n \r\n /*\r\n * We use a source viewer to display the\r\n * obligation. This allows us to easily do\r\n * syntax highlighting by configuring the source\r\n * viewer with a source viewer configuration\r\n * that basically takes some code from the editor\r\n * plug-in. This code does the syntax highlighting.\r\n * See ObligationSourceViewerConfiguration.\r\n * \r\n * For the style bits, we want the source viewer to be read\r\n * only, multiline, and have a horizontal scroll bar. We\r\n * don't want the text to wrap because that makes the\r\n * obligations difficult to read, so a horizontal scroll\r\n * bar is necessary.\r\n */\r\n SourceViewer viewer = new SourceViewer(oblWidget, null, SWT.READ_ONLY | SWT.MULTI | SWT.H_SCROLL);\r\n viewer.getTextWidget().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n viewer.configure(new ObligationSourceViewerConfiguration());\r\n viewer.getControl().setFont(JFaceResources.getTextFont());\r\n // add the control to the list of controls to be notified when the\r\n // text editor font changes.\r\n fontListener.addControl(viewer.getControl());\r\n\r\n // item maps to viewer for later access\r\n viewers.put(item, viewer);\r\n\r\n item.setControl(oblWidget);\r\n item.setExpanded(true);\r\n\r\n /*\r\n * Set the data to be the marker so that when\r\n * the user clicks on the item, we can jump to that marker.\r\n * \r\n * See the documentation for listener.\r\n */\r\n item.setData(status.getObMarker());\r\n viewer.getTextWidget().setData(status.getObMarker());\r\n oblWidget.setData(status.getObMarker());\r\n // adding the listener to the item seems to have no effect.\r\n item.addListener(SWT.MouseDown, obClickListener);\r\n // The following 2 lines were commented out by LL on 1 Nov 2012\r\n // so clicking on the textWidget does not goto the obligation.\r\n //\r\n // viewer.getTextWidget().addListener(SWT.MouseDown, obClickListener);\r\n // oblWidget.addListener(SWT.MouseDown, obClickListener);\r\n\r\n items.put(new Integer(id), item);\r\n }\r\n\r\n /*\r\n * Whether this marker gives information for an existing\r\n * item or a new item, we always update the title of the\r\n * item to display the current status of the obligation.\r\n */\r\n item.setText(\"Obligation \" + id + \" - status : \" + status.getProverStatusString());\r\n\r\n /*\r\n * Enable the \"Being Proved\" button iff the obligation is being proved.\r\n */\r\n Button button = (Button) item.getData(KEY_BUTTON);\r\n button.setEnabled(ProverHelper.isBeingProvedObligation(status));\r\n\r\n /*\r\n * Get the item's viewer. If the viewer's document does not contain\r\n * the obligation string and the obligation string in the marker is not empty,\r\n * set the viewer's document to a new document containing\r\n * the obligation string.\r\n */\r\n SourceViewer viewer = (SourceViewer) viewers.get(item);\r\n Assert.isNotNull(viewer, \"Expand item has been created without a source viewer. This is a bug.\");\r\n String oblString = status.getObligationString();\r\n\r\n // On 14 April 2011, Denis changed tlapm so it does not include an\r\n // interesting obligation if a later message will indicate that\r\n // the obligation is proved. On 16 April 2011, LL removed the assert\r\n // and had it treat a missing obligation as one with the null string.\r\n if (oblString == null) {\r\n oblString = \"\";\r\n }\r\n // Assert\r\n // .isNotNull(oblString,\r\n // \"No obligation string for an interesting obligation. This is a bug. The obligation is :\\n\"\r\n // + status);\r\n if ((viewer.getDocument() == null || !viewer.getDocument().get().equals(oblString)) && !(oblString.length() == 0))\r\n {\r\n // set the viewers document to the obligation.\r\n viewer.setDocument(new Document(oblString.trim()));\r\n\r\n /*\r\n * The following explanation for computing the height\r\n * of each expand item is no longer used. Instead, we\r\n * simply ask the expand item's control for its preferred height.\r\n * This seems to work. However, we leave the old code and comments\r\n * just in case.\r\n * \r\n * Give the item the appropriate height to show\r\n * the obligation. This includes both the height\r\n * of the text of the obligation and the height\r\n * of the horizontal scroll bar, if there is one.\r\n */\r\n // StyledText text = viewer.getTextWidget();\r\n // ScrollBar hBar = text.getHorizontalBar();\r\n // item.setHeight(text.getLineHeight() * text.getLineCount() + (hBar != null ? hBar.getSize().y :\r\n // 0));\r\n item.setHeight(item.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT, true).y);\r\n } else if (oblString.length() == 0 && (viewer.getDocument() == null || viewer.getDocument().get().length() == 0))\r\n {\r\n /*\r\n * A slight hack. For some interesting obligations, the prover\r\n * does not send back the pretty printed obligation. This is\r\n * a bug. In the meantime, we need the source viewer to be visible\r\n * so that the user can click on it to jump to the obligation.\r\n * The following does that.\r\n */\r\n viewer.setDocument(new Document(\"No obligation text available.\"));\r\n item.setHeight(100);\r\n }\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "b43a4ba31cf10e8cc7f9f5b622b1d600", "score": "0.51109105", "text": "static native boolean setItemDescription(long update, String description);", "title": "" }, { "docid": "3b114a09af4af6f71bf148915a680fac", "score": "0.5109825", "text": "private static void processUpdate(String[] input, ArrayList<Item> cart) {\n if (input.length == 3) {\n for (Item temp : cart) {\n if (temp.getName().equals(input[1])) {\n temp.setQuantity(Integer.parseInt(input[2]));//Removed addition to previous quantity\n System.out.println(\"Updated number of \" + input[1] + \" is now \" + temp.getQuantity());\n return;\n }\n }\n System.out.println(\"That item does not exist. Please use insert to add it.\");\n } else {\n System.out.println(\"Invalid number of arguments, please try again.\");\n }\n }", "title": "" }, { "docid": "c6831a4967136b83a778d1fb04779fe1", "score": "0.5108364", "text": "public void modifications() {\n\t\tcontroller.modifications();\n\t}", "title": "" }, { "docid": "5de67ab65be5a659afb799e2d502d56b", "score": "0.51035035", "text": "private void updateLists(String storeId, String quantity){\n String localStore = mLocalStoreAddresses.get(mLocalStoreIds.indexOf(storeId));\n // Log.d(TAG, \"adding new entry to lists : \" + localStore + \" with \" + quantity);\n mStoreInventoryAddresses.add(localStore);\n mStoreInventoryQuantities.add(quantity);\n }", "title": "" }, { "docid": "ac38a6e4f0e4b0a4bfce219eedf271af", "score": "0.510304", "text": "protected void setListItems(HashMap<String,String> attrs) {\n\t\tif (attrs.containsKey(\"list-values\")) {\r\n\t\t\tPattern p2 = Pattern.compile(\"\\\\s*\\\"([^\\\"]+?)\\\"\");\r\n\t\t\tMatcher m2 = p2.matcher(attrs.get(\"list-values\"));\r\n\t\t\tif (m2.find()) {\r\n\t\t\t\tm_list_items = m2.group(1);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tassert(attrs.containsKey(\"list-items\"));\r\n\t\t\tm_list_items = attrs.get(\"list-items\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "94fd4bd13c572a367f0842cc17030e19", "score": "0.5097944", "text": "public void saveUpdatedItem(int itemPosition, Item item){\n itemList.remove(itemPosition);\n itemList.add(item);\n itemAdapter.notifyDataSetChanged();\n\n }", "title": "" }, { "docid": "260561d44fe607fd7ee6055389251e5e", "score": "0.5095858", "text": "@Override\r\n\tpublic void markDirty()\r\n {\r\n this.inventoryChanged = true;\r\n updateDisplayItems();\r\n }", "title": "" }, { "docid": "ae31b396a53ae851290b2446666d461d", "score": "0.5094875", "text": "private void refreshForm(ItemForm itemForm, Item item) throws Exception {\n BeanUtils.copyProperties(itemForm,item);\r\n //need to convert ListPrice to ListPriceString, check for better way?\r\n itemForm.setListPriceString(\r\n item.getListPrice().getDecimalAmount().toString());\r\n itemForm.setListPriceCurrencyString(\r\n item.getListPrice().getCurrencyCode());\r\n //copy the itemSupplies\r\n List tempList = new ArrayList(item.getItemSupplies());\r\n for (int i=0; i<tempList.size(); i++){\r\n itemForm.setItemSupplier(i,(ItemSupplied) tempList.get(i));\r\n }\r\n \r\n }", "title": "" } ]
eff8711c877aaae9e61ba1232dd19c63
This method was generated by MyBatis Generator. This method corresponds to the database table fundManager
[ { "docid": "ba0190805bbe8f59f621deb20c7053ba", "score": "0.0", "text": "int deleteByPrimaryKey(String managerId);", "title": "" } ]
[ { "docid": "f1941c3a9393aa18069526103e119394", "score": "0.6398565", "text": "FundManagerDo selectByPrimaryKey(String managerId);", "title": "" }, { "docid": "1adeac62866cdc0715885093f106ff52", "score": "0.58348197", "text": "@Override\n\tpublic List<Employee_Table> employeeUnderManager(int employee_id) {\n\t\tList<Employee_Table> tables = new ArrayList<Employee_Table>();\n\t\ttry (Connection con = ConnectionService.getConnection()) {\n\t\t\t\n\t\t\tString sql = \"SELECT * FROM (SELECT * FROM (SELECT E.EMPLOYEE_ID ,E.FIRSTNAME, E.LASTNAME, E.ISADMIN, E.MANAGER_ID, M.FIRSTNAME AS M_F, M.LASTNAME AS M_L\\r\\n\" + \n\t\t\t\t\t\"FROM EMPLOYEE_TABLE E, EMPLOYEE_TABLE M\\r\\n\" + \n\t\t\t\t\t\"WHERE E.MANAGER_ID = M.EMPLOYEE_ID) E\\r\\n\" + \n\t\t\t\t\t\"JOIN REIMBURSEMENT_TABLE R\\r\\n\" + \n\t\t\t\t\t\"ON E.EMPLOYEE_ID = R.EMPLOYEE_ID)\\r\\n\" + \n\t\t\t\t\t\"WHERE MANAGER_ID = ? ORDER\\r\\n\" + \n\t\t\t\t\t\"BY REIMBURSEMENT_ID DESC\";\t\t\t\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\n\t\t\tpstmt.setInt(1, employee_id);\n\t\t\tpstmt.executeQuery();\n\t\t\tResultSet rs=pstmt.getResultSet();\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee_Table table = new Employee_Table();\n\t\t\t\ttable.setEmployee_id(rs.getInt(\"EMPLOYEE_ID\")); \n\t\t\t\ttable.setFirstName(rs.getString(\"FIRSTNAME\"));\n\t\t\t\ttable.setLastName(rs.getString(\"LASTNAME\"));\n\t\t\t\ttable.setIsAdmin(rs.getInt(\"ISADMIN\"));\n\t\t\t\ttable.setManager_id(rs.getInt(\"MANAGER_ID\"));\n\t\t\t\ttable.setM_f(rs.getString(\"M_F\"));\n\t\t\t\ttable.setM_l(rs.getString(\"M_L\"));\n\t\t\t\tint reimbursement_id = rs.getInt(\"REIMBURSEMENT_ID\");\n\t\t\t\tString details = rs.getString(\"DETAILS\");\n\t\t\t\tString status = rs.getString(\"STATUS\");\n\t\t\t\tdouble balance = rs.getDouble(\"BALANCE\");\n\t\t\t\t//int employee_id = rs.getInt(\"EMPLOYEE_ID\");\n\t\t\t\tLocalDate s_date = rs.getDate(\"S_DATE\").toLocalDate();\n\t\t\t\ttable.setRtable(new Reimbursement_Table(reimbursement_id, details, balance, employee_id, status, s_date));\n\t\t\t\ttables.add(table);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tables;\n\t}", "title": "" }, { "docid": "7010ae3894b2373de9d0b202d734314c", "score": "0.5658648", "text": "@Override\n\tpublic List<Employee_Table> allRemList() {\n\t\tList<Employee_Table> tables = new ArrayList<Employee_Table>();\n\t\ttry (Connection con = ConnectionService.getConnection()) {\n\t\t\t\n\t\t\tString sql = \"SELECT * FROM (SELECT E.EMPLOYEE_ID ,E.FIRSTNAME, E.LASTNAME, E.ISADMIN, E.MANAGER_ID, M.FIRSTNAME AS M_F, M.LASTNAME AS M_L\\r\\n\" + \n\t\t\t\t\t\"FROM EMPLOYEE_TABLE E, EMPLOYEE_TABLE M\\r\\n\" + \n\t\t\t\t\t\"WHERE E.MANAGER_ID = M.EMPLOYEE_ID) E\\r\\n\" + \n\t\t\t\t\t\"JOIN REIMBURSEMENT_TABLE R\\r\\n\" + \n\t\t\t\t\t\"ON E.EMPLOYEE_ID = R.EMPLOYEE_ID \"+ \n\t\t\t\t\t\"ORDER BY REIMBURSEMENT_ID DESC\";\t\t\t\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\n\t\t\tpstmt.executeQuery();\n\t\t\tResultSet rs=pstmt.getResultSet();\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee_Table table = new Employee_Table();\n\t\t\t\ttable.setEmployee_id(rs.getInt(\"EMPLOYEE_ID\")); \n\t\t\t\ttable.setFirstName(rs.getString(\"FIRSTNAME\"));\n\t\t\t\ttable.setLastName(rs.getString(\"LASTNAME\"));\n\t\t\t\ttable.setIsAdmin(rs.getInt(\"ISADMIN\"));\n\t\t\t\ttable.setManager_id(rs.getInt(\"MANAGER_ID\"));\n\t\t\t\ttable.setM_f(rs.getString(\"M_F\"));\n\t\t\t\ttable.setM_l(rs.getString(\"M_L\"));\n\t\t\t\tint reimbursement_id = rs.getInt(\"REIMBURSEMENT_ID\");\n\t\t\t\tString details = rs.getString(\"DETAILS\");\n\t\t\t\tString status = rs.getString(\"STATUS\");\n\t\t\t\tdouble balance = rs.getDouble(\"BALANCE\");\n\t\t\t\tint employee_id = rs.getInt(\"EMPLOYEE_ID\");\n\t\t\t\tLocalDate s_date = rs.getDate(\"S_DATE\").toLocalDate();\n\t\t\t\ttable.setRtable(new Reimbursement_Table(reimbursement_id, details, balance, employee_id, status, s_date));\n\t\t\t\ttables.add(table);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tables;\n\t}", "title": "" }, { "docid": "cecf0ff2cad6319fe1b76cb0ca026404", "score": "0.5583472", "text": "FinancialManagement selectByPrimaryKey(Integer fId);", "title": "" }, { "docid": "21dc82233364c0a34a964f37d6cd3c71", "score": "0.5349849", "text": "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "title": "" }, { "docid": "3d686c6671cd0efd4b402a3e9c33e503", "score": "0.5263967", "text": "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "title": "" }, { "docid": "f61a5bdce2e51db61d2ffd9f44ccac90", "score": "0.5251914", "text": "@Repository\npublic interface LoanCorporateForeignInvestment_DAO{\n @Insert(\"insert into LoanCorporateForeignInvestment(custCode,CreditCardNumber,InvesteeCompanyName,InvestmentAmount,InvestmentCurrency,OrganizationCode) \" +\n \"values (\" +\n \"#{custCode,jdbcType=VARCHAR},\" +\n \"#{CreditCardNumber,jdbcType=VARCHAR},\" +\n \"#{InvesteeCompanyName,jdbcType=VARCHAR},\" +\n \"#{InvestmentAmount,jdbcType=VARCHAR},\" +\n \"#{InvestmentCurrency,jdbcType=VARCHAR},\" +\n \"#{OrganizationCode,jdbcType=VARCHAR}\" +\n \")\")\n @ResultType(Boolean.class)\n public boolean save(LoanCorporateForeignInvestment_Entity entity);\n\n @Select(\"SELECT COUNT(*) FROM LoanCorporateForeignInvestment Where CustCode=\"+\"#{custCode,jdbcType=VARCHAR}\")\n @ResultType(Integer.class)\n Integer countAll(String custCode);\n\n @Select(\"SELECT * FROM LoanCorporateForeignInvestment Where CustCode=\"+\"#{custCode,jdbcType=VARCHAR}\"+\" Order By Id Asc\")\n @ResultType(LoanCorporateForeignInvestment_Entity.class)\n List<LoanCorporateForeignInvestment_Entity> findAll(String custCode);\n\n @Update(\"Update LoanCorporateForeignInvestment \" +\n \"SET \" +\n \"custCode=\" + \"#{custCode,jdbcType=VARCHAR},\"+\n \"CreditCardNumber=\" + \"#{CreditCardNumber,jdbcType=VARCHAR},\" +\n \"InvesteeCompanyName=\" + \"#{InvesteeCompanyName,jdbcType=VARCHAR},\" +\n \"InvestmentAmount=\" + \"#{InvestmentAmount,jdbcType=VARCHAR},\" +\n \"InvestmentCurrency= \" + \"#{InvestmentCurrency,jdbcType=VARCHAR},\" +\n \"OrganizationCode= \" + \"#{OrganizationCode,jdbcType=VARCHAR}\" +\n \"Where Id=\" + \"#{Id,jdbcType=VARCHAR}\"\n )\n @ResultType(Boolean.class)\n boolean update(LoanCorporateForeignInvestment_Entity entity);\n\n @Delete(\"DELETE FROM LoanCorporateForeignInvestment Where Id=\"+\"#{Id,jdbcType=VARCHAR}\")\n boolean delete(String Id);\n}", "title": "" }, { "docid": "a7852cff178a24a1a6829d786e654406", "score": "0.5227047", "text": "public RecordLedgerTable getLedgerTable();", "title": "" }, { "docid": "d099b27b083cb8ae56919b3bd54c63bd", "score": "0.51168144", "text": "@Component\npublic interface BidDao {\n\n /**\n * 通过标id查找该标的信息\n * @return\n */\n @Select(value = \"select id,userId,bidAmount,bidCurrentAmount,bidRepaymentMethod,bidRate,bidDeadline,substr(to_char(bidIssueDate,'yyyy-mm-dd hh24:mi:ss'),0,19) bidIssueDate,bidDeadDay,bidDeadDate,bidApplyDate,bidDesc,bidType from bid_info where id=#{id}\")\n Map getBidInfoById(int id);\n\n /**\n * 根据用户id查找该用户的信息\n * @param userId\n * @return\n */\n @Select(value = \"select realname,sex,address,idnumber,academic,housed,marriage,income from realname_certification where userId=#{userId}\")\n Map getBaseInfoByUserId(int userId);\n\n /**\n * 将投标信息放入到bid_submit投资记录表中\n * @param map\n * @return\n */\n @Insert(value = \"insert into bid_submit values(seq_bidinfo_id.nextval,#{bidid},#{userId},#{bidNum},#{bidRate},sysdate)\")\n int investBid(Map map);\n\n /**\n * 根据标的id来查投该标的总钱数\n * @param map\n * @return\n */\n @Select(value = \"select nvl(sum(bidAmount),0) bidAmount,nvl(sum(bidRate),0) bidRate from bid_submit where bidInfoID=#{bidid}\")\n Map findInvestMoney(Map map);\n\n /**\n * 通过当前用户查找该用户的登录信息\n * @param userId\n * @return\n */\n @Select(value = \"select username,password,telephone from user_login_info where id=#{userId}\")\n Map findUserName(int userId);\n\n /**\n * 根据标id查找该标的投资状况\n * @param id\n * @return\n */\n @Select(value = \"select b.id,b.BIDINFOID,b.BIDAMOUNT,b.BIDRATE,substr(to_char(b.BIDDATE,'yyyy-mm-dd hh24:mi:ss'),0,19) BIDDATE,u.id,u.USERNAME,u.PASSWORD,u.TELEPHONE from bid_submit b left join USER_LOGIN_INFO u on u.ID=b.USERID where b.BIDINFOID=#{id}\")\n List<Map> findInvestInfo(int id);\n\n /**\n * 通过标id找到招标人id\n * @param id\n * @return\n */\n @Select(value = \"select userId from bid_info where id=#{id}\")\n Map findBidUserId(int id);\n\n /**\n * 根据招标人的id查找该人的还款信息\n * @param bidUserId\n * @return\n */\n /*@Select(value = \"select id,bidID,bidRepayAmount,bidRepayDate,bidRepayDeadDate,bidNextRepayDate,bidNextReapyAmount,bidRepayState,bidRepayNumber,bidRepayTotPmts,bidRepayMethod,(select max(bidrepaydeaddate) from bid_repay_info where bidRepayUserID=#{bidUserId}) lastDate from bid_repay_info where bidRepayUserID=#{bidUserId}\")*/\n @Select(value = \"select id,bidID,bidRepayAmount,bidRepayDate,bidRepayDeadDate,substr(to_char(bidNextRepayDate,'yyyy-mm-dd hh24:mi:ss'),0,19) bidNextRepayDate,bidNextReapyAmount,bidRepayState,bidRepayNumber,bidRepayTotPmts,bidRepayMethod,(select substr(to_char(max(bidrepaydeaddate),'yyyy-mm-dd hh24:mi:ss'),0,19) from bid_repay_info where bidRepayUserID=#{bidUserId}) lastDate from bid_repay_info where bidRepayUserID=#{bidUserId}\")\n List<Map> findRepayByBidUserId(int bidUserId);\n\n /**\n * 根据登录人id查找用户的支付密码\n * @param userId\n * @return\n */\n @Select(value = \"select paypwd from user_info where userId=#{userId}\")\n Map getPayPwd(int userId);\n\n /**\n * 根据登录人的id查找该用户的总的待收利息,总的待收本金\n * @param userId\n * @return\n */\n @Select(value = \"select sum(bidrate) bidrate,sum(bidAmount) bidAmount from bid_submit where userId = #{userId}\")\n Map findTotalRateAndMoney(int userId);\n\n /**\n * 根据用户id查找该用户的账户信息表\n * @param userId\n * @return\n */\n @Select(value = \"select id,USERID,AVAILABLEBALANCE,RECEIVEINTEREST,RECEIVEPRINCIPAL,RETURNAMOUNT,FREEZINGAMOUNT,CREDITLINE,SURPLUSCREDITLINE,TRANSACTIONPASSWORD from user_account where userId=#{userId}\")\n Map findUserAccount(int userId);\n\n /**\n * 根据用户的投标相应的更新用户账户表\n * @param userAccountMap\n * @return\n */\n @Update(value = \"update user_account set availableBalance=#{availableBalance},receiveInterest=#{receiveInterest},receivePrincipal=#{receivePrincipal},freezingAmount=#{freezingAmount} where userId = #{userID}\")\n int updateUserAccount(Map userAccountMap);\n\n /**\n * 用户投标之后将该条信息插入到用户账户流水表中去\n * @param map\n * @return\n */\n @Insert(value = \"insert into user_account_flow values(seq_user_account_flow_id.nextval,#{userId},#{accountId},#{amount},#{availableBalance},sysdate,8)\")\n int insertUserAccountFolw(Map map);\n}", "title": "" }, { "docid": "6a03cbcaf355c0e367ad15f7c944b915", "score": "0.50985473", "text": "public SufficientFundsDaoOjb() {\n }", "title": "" }, { "docid": "8628f1c6117d254074ad75438f2311ac", "score": "0.507552", "text": "public UserFund getByFund(Fund fund)\r\n {\r\n \tCursor c = mDb.query(DB_TABLE_NAME, new String[] {\"_id\",\"fundId\", \"moneyPaid\", \"currentValue\", \"units\", \"simpleReturn\"}, \"fundId = \" + fund.getId(), null, null, null, null);\r\n \t\r\n \tif (c.getCount() == 0) {\r\n \t\treturn null;\r\n \t}\r\n \t\r\n \tc.moveToFirst();\r\n \r\n \treturn new UserFund(c, fund);\r\n \t\r\n }", "title": "" }, { "docid": "672e94ba2d70d4167d5d3af723d0d348", "score": "0.5069159", "text": "public List<Bill> getBill() {\n\tString sql =\"SELECT * FROM bills JOIN employees e on bills.Id_employees = e.Id_employees JOIN food f on bills.Id_food = f.Id_food\";\n\tList<Bill> list = new ArrayList<Bill>();\n\ttry {\n\t\tPreparedStatement preparedStatement = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\n\t\twhile(resultSet.next()) {\n\t\t\tBill getBill = new Bill();\n\t\t\tgetBill.setId(resultSet.getInt(\"Id_bills\"));\n\t\t\tgetBill.setFood(resultSet.getString(\"Name\"));\n\t\t\tgetBill.setEmployyes(resultSet.getString(\"Name_and_surname\"));\n\t\t\tgetBill.setPrice(resultSet.getDouble(\"Price\"));\n\t\t\tgetBill.setSerialNumber(resultSet.getString(\"Serial_Number_Bill\"));\n\t\t\tgetBill.setTotal(resultSet.getDouble(\"TOTAL\"));\n\t\t\tlist.add(getBill);\n\t\t}\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\treturn list;\n}", "title": "" }, { "docid": "b299cdf9b9849dd5abade2c90e481ee2", "score": "0.5035409", "text": "public ResultSet returnAccount(Long demataccountNo)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from CUSTOMER_DETAILS where DEMAT_ACC_NO=\"+demataccountNo+\"\");\r\n\treturn rs;\r\n}", "title": "" }, { "docid": "12e7e94e5ef09f282538a7197ade039d", "score": "0.50271165", "text": "Databank getBank();", "title": "" }, { "docid": "93d61a4165bab31298cd28fd7d6c08d2", "score": "0.50224555", "text": "public interface EmpDao {\n\n\n /**\n * 根据参数查询列表\n * @param map\n * @return\n */\n\n// select empno,ENAME,job,mgr,hiredate,sal,comm,deptno from emp\n @Select(\"<script>\" +\n \"select a.empno,a.ename,a.job,a.mgr,to_char(a.hiredate,'yyyy-mm-dd') hiredate,a.sal,a.comm,a.deptno,a.mgrname,a.dname,a.rn from \" +\n \"(select b.*,rownum rn from \" +\n \"(select e.*,d.dname from (select e1.*,e2.ename mgrname from emp e1 left join emp e2 on e1.mgr=e2.empno) e left join dept d on e.deptno=d.deptno \" +\n \"<where>\" +\n \"<if test='ename!=null'>and e.ename like '%'||#{ename}||'%' </if>\" +\n \"<if test='job!=null'>and e.job like '%'||#{job}||'%' </if>\" +\n \"</where>\" +\n \"order by empno desc) b where rownum &lt; #{end}) a where a.rn &gt; #{start}\" +\n \"</script>\")\n List<Map> getList(Map map);\n\n\n /**\n * 带条件查询总条数\n * @param map\n * @return\n */\n @Select(\"<script>\"+\n \"select count(*) from emp <where>\" +\n \"<if test='ename != null'> and ename like '%${ename}%'</if>\"+\n \"<if test='job != null'> and job like '%${job}%'</if>\"+\n \"</where></script>\")\n int getPageCount(Map map);\n /**\n * 添加\n * @param map\n * @return\n */\n// seq_emp_id.nextval,ename, job, hiredate, sal, comm,deptno\n @Insert(\"insert into emp values(seq_emp_id.nextval,#{ENAME},#{JOB},#{MGR},to_date(#{HIREDATE},'yyyy-mm-dd'),#{SAL},#{COMM},#{DEPTNO})\")\n int add(Map map);\n\n\n /**\n * 更新\n * @param map\n * @return\n */\n @Update(\"update emp set ename=#{ENAME},job=#{JOB},mgr=#{MGR},hiredate=to_date(#{HIREDATE},'yyyy-mm-dd'),sal=#{SAL},comm=#{COMM},deptno=#{DEPTNO} where empno=#{EMPNO}\")\n int update(Map map);\n\n /**\n * 删除\n * @param deptNo\n * @return\n */\n @Delete(\"delete from emp where empno=#{EMPNO}\")\n int delete(int deptNo);\n\n /**\n * 获取所有部门,用于页面数据绑定\n * @return\n */\n @Select(\"select deptno,dname from dept\")\n List<Map> getDeptType();\n\n /**\n * 获取所有职位,用于页面数据绑定\n * @return\n */\n @Select(\"select distinct(job) from emp\")\n List<Map> getJob();\n\n /**\n * 获取上司,用于页面数据绑定\n * @return\n */\n @Select(\"select empno,ename from emp where job='PRESIDENT' or job='MANAGER' or job='ANALYST'\")\n List<Map> getMgr();\n\n\n}", "title": "" }, { "docid": "27f829058b8f880f73ad3a9413c4a234", "score": "0.49980998", "text": "public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }", "title": "" }, { "docid": "3f8872b086f3b2ab785a6b2730e8a3e1", "score": "0.499626", "text": "@Override\n public List<BloodBank> getAllBloodBank() throws SQLException {\n logger.info(\"in the List<BloodBank> getAllBloodBank() method in \"+BloodBankSvcJDBCImpl.class.getName());\n List<BloodBank> displayList = new ArrayList();\n try\n {\n logger.warn(\"in try, may cause errors\");\n this.connectToDatabase();\n \n Statement stmt = this.getConnection().createStatement();\n //sql query\n String selectSql = \"SELECT * FROM `blood_bank`;\"\n + \"SELECT * FROM `blood_bank_address`;\";\n //set join string here\n ResultSet rs = stmt.executeQuery(selectSql);\n \n boolean result = rs.next();\n \n if(result == false)\n {\n logger.warn(\"NO results found!!\");\n System.out.println(\"Empty!!\\n\");\n }\n else\n {\n while(rs.next())\n {\n BloodBank bloodBank = new BloodBank();\n \n bloodBank.setId(rs.getString(\"idblood_bank\"));\n bloodBank.setName(rs.getString(\"name\"));\n bloodBank.setNumber(rs.getString(\"phone\"));\n //bloodBank.getBloodBankAddress().setAddressId(rs.getString(\"address_id\"));\n \n displayList.add(bloodBank);\n }\n System.out.println(\"Success!!!\");\n //return displayList;\n }\n }\n catch(SQLException ex)\n {\n logger.error(\"JDBC List all error\"+ex.toString()+\" in->\"+BloodBankSvcJDBCImpl.class.getName());\n System.out.println(\"Error: \" + ex.toString() + \" could not retreive list\");\n }\n finally{\n close();\n }\n return displayList;\n }", "title": "" }, { "docid": "755b281a8bc99ff36f617842cbfb71a0", "score": "0.49889076", "text": "public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}", "title": "" }, { "docid": "ae33bf1338178c1b378cca4d60e82304", "score": "0.49678084", "text": "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "title": "" }, { "docid": "a67d3becf2c3bf8858d3da1df67cd6dd", "score": "0.49590722", "text": "public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}", "title": "" }, { "docid": "d940328de91ebe05c3ac7a1b3c1ee4d0", "score": "0.49568152", "text": "@Override\n @Transactional(readOnly = true)\n public List<BalanceDto> reporteBalanceService(String nameDataSource, String fechInicial, String fechaFinal,Long idsede) {\n return reportesDao.reporteBalance(nameDataSource, fechInicial, fechaFinal,idsede);\n }", "title": "" }, { "docid": "eed65c9b8292bc28b48559935600bf62", "score": "0.4931135", "text": "@Override\r\n\tpublic Sql sql(SqlManager sqlManager) {\n\t\treturn null;\r\n\r\n\t}", "title": "" }, { "docid": "2ccb66d18c00f685defd48068625c5de", "score": "0.49261865", "text": "@Override\n\tpublic ResultSet displayTotalFinancialBudget() {\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tc=MakeConnection.getConnection();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tPreparedStatement pr=c.prepareStatement(\"select sum(TrainingModule.Budget) from TrainingModule NATURAL JOIN link_tm_tp\");\n\t\t\trs=pr.executeQuery();\n\t\t\t\treturn rs;\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\t\n\t\treturn rs;\n\t}", "title": "" }, { "docid": "769f6e63cc8709fbd53d0b870f07a693", "score": "0.48933783", "text": "public BankAccount findAccountById(int currentBankID) throws SQLException;", "title": "" }, { "docid": "150885bbd6f643100fb7a90b37cb946a", "score": "0.487902", "text": "public int getJP_BankData_ID();", "title": "" }, { "docid": "2f31fa2e4c1d33c618979b3a6765d751", "score": "0.48686498", "text": "public List<TransactionM> getTransactionsInfo(int fId) {\n\t\tList<TransactionM> d= new ArrayList<>();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tthis.pst = this.con.prepareStatement(\"select * from transaction where fromaccno=? ORDER BY balance LIMIT 0,5\"); \r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.pst.setInt(1,fId);\r\n\t\t\tthis.rs = this.pst.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\td.add(new TransactionM(rs.getInt(1),rs.getInt(2),rs.getInt(3),rs.getInt(4))) ;\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\r\n\t\treturn d;\r\n\t}", "title": "" }, { "docid": "08a4ec774d00be721fafae37975cd301", "score": "0.4863761", "text": "@Override\r\n\tpublic GenericDaoImpl<Bank, Long> getDao() {\n\t\treturn bankDao;\r\n\t}", "title": "" }, { "docid": "f3774ffc35f0454c0befc4bbde1bf2af", "score": "0.48635224", "text": "@Override\r\n\tpublic double showbalanceDao() {\n\t\t\r\n\t\treturn temp.getCustBal();\r\n\t}", "title": "" }, { "docid": "1670403efd3bacc043ed3a3c36ef7bb5", "score": "0.48585838", "text": "public ResultSet Rebroker2()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='not approved'\");\r\n\treturn rs;\r\n}", "title": "" }, { "docid": "239f097f7baa0468aa8d0d34de158919", "score": "0.48572615", "text": "public static String getBills(){\n return \"select * from current_bills\";\n }", "title": "" }, { "docid": "c39cce100b311c430cf88e78f5e8f49a", "score": "0.48522758", "text": "@Override\n\tpublic List<Basicunit> selectAllforadmin() {\n\t\treturn basicDAOManager.selectAllforadmin();\n\t}", "title": "" }, { "docid": "12f2d958833353eaefdd59ff6dc0e2b0", "score": "0.4848294", "text": "public interface BossPayDao {\n boolean addBossPay(BossPay bossPay);\n\n boolean updateBossPay(BossPay bossPay);\n\n List<BossPay> getAllBossPay();\n\n}", "title": "" }, { "docid": "d6600b73b1698ad44c89367e0602253a", "score": "0.48161346", "text": "public int getC_BankAccount_ID();", "title": "" }, { "docid": "62d5aea129f3b965a40d90da52e1ec17", "score": "0.48144296", "text": "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "title": "" }, { "docid": "b010a8bb0d2b7e8097097188051178c3", "score": "0.48094893", "text": "@Transactional\n public void llenarTabla(ResultSet rs){\n if (rs==null) {\n System.out.println(\"el rs vino vacio\");\n }\n try {\n while (rs.next()) {\n //para cada fila de la consulta creo un pedido\n PedidoMaterial pedido = new PedidoMaterial();\n System.out.println(\"empezamos\");\n pedido.setId(rs.getInt(1));\n pedido.setNumeroPedido(rs.getInt(2));\n pedido.setNotaDeVenta(rs.getInt(3));\n pedido.setDescripProyecto(rs.getString(4));\n pedido.setCliente(rs.getString(5));\n pedido.setCantidadPedida(rs.getLong(6));\n pedido.setCantidadModificada(rs.getLong(7));\n Calendar fecha = Calendar.getInstance();\n fecha.setTime(rs.getDate(8));\n pedido.setUltimaActualizacionDespiece(fecha);\n pedido.setArticulo(rs.getString(9));\n pedido.setAriCod(rs.getString(10));\n pedido.setArea(rs.getString(11));\n pedido.setUnidadOrg(rs.getInt(12));\n pedido.setTarea(rs.getString(13));\n pedido.setCantidadAPD(rs.getLong(14));\n if (rs.getDate(15) != null) {\n fecha.setTime(rs.getDate(15));\n pedido.setFechaAsignacion(fecha); \n }\n pedido.setCantidadFinalP(rs.getLong(16));\n pedido.setCantidadRealU(rs.getLong(17));\n pedido.setTareaCod(rs.getInt(18));\n fecha.setTime(rs.getDate(19));\n pedido.setFechaUti(fecha);\n fecha.setTime(rs.getDate(20));\n pedido.setFechaFinUtili(fecha);\n \n guardarPedido(pedido);\n \n \n }\n } catch (SQLException ex) {\n \n System.out.println(ex.toString());\n }\n }", "title": "" }, { "docid": "b885c24ee29a521cd43a35bad0fda3aa", "score": "0.48052967", "text": "public String getFundCode() {\r\n return fundCode;\r\n }", "title": "" }, { "docid": "3f1a1a6aac69293af6cef872ca1b9b2d", "score": "0.48015612", "text": "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "title": "" }, { "docid": "bcd99cf14352123405b2a8db729e336b", "score": "0.4799369", "text": "public interface TransferDAO extends BaseDAO<Transfer>, InsertableDAO<Transfer>, UpdatableDAO<Transfer> {\n\n /**\n * List of sums of incoming transactions amounts per member. Used by Activity: all using GrossProduct. <b>Important NOTE:</b> Beware that this\n * method only gets the members who were actually trading. Members with NO incoming trades are NOT included. If you need those, you need to\n * manually add them to the list.\n * @return a List of Pair objects where the first element is the member and the second is the gross product of the member (sum of incoming\n * transactions).\n */\n List<Pair<Member, BigDecimal>> getGrossProductPerMember(StatisticalDTO dto) throws DaoException;\n\n /**\n * gets the gross product summed over all members in a list, where each element in the list specifies a specific month in the period.\n * @return a list with <code>KeyDevelopmentsStatsPerMonthVO</code>s, containing for each element the gross products, the year and the month.\n */\n List<KeyDevelopmentsStatsPerMonthVO> getGrossProductPerMonth(final StatisticalDTO dto);\n\n /**\n * List of numbers of incoming transactions per member. Used by Activity Stats > all which use number of trans, % not trading\n * @return a List of Pair objects where the first element is the member and the second is the number of transactions\n * @param dto parameters that filter the query\n */\n List<Pair<Member, Integer>> getNumberOfTransactionsPerMember(StatisticalDTO dto) throws DaoException;\n\n /**\n * gets the number of transactions summed over all members in a list, where each element in the list specifies a specific month in the period.\n * @return a list with <code>KeyDevelopmentsStatsPerMonthVO</code>s, containing for each element the gross products, the year and the month.\n */\n List<KeyDevelopmentsStatsPerMonthVO> getNumberOfTransactionsPerMonth(final StatisticalDTO dto);\n\n /**\n * List of sums of outgoing transaction amounts (payments) per member. Used by Taxes Stats. <b>Important NOTE:</b> Beware that this method only\n * gets the members who were actually trading. Members with NO incoming trades are NOT included. If you need those, you need to manually add them\n * to the list.\n * @param dto parameters that filter the query\n * @return a List of Pair objects where the first element is the member and the second is the sum of payments done by this member\n */\n List<Pair<Member, BigDecimal>> getPaymentsPerMember(StatisticalDTO dto) throws DaoException;\n\n /**\n * Sum of the amounts of the transactions. Used by Key Dev Stats > gross product\n * @param dto a StatisticalDTO object passing the query\n */\n BigDecimal getSumOfTransactions(StatisticalDTO dto) throws DaoException;\n\n /**\n * Calculates the sum of transactions there was on this SystemAccountType for any payments NOT belonging to the set of paymentFilters, during the\n * period\n */\n BigDecimal getSumOfTransactionsRest(TransferQuery query);\n\n /**\n * gets a list with transaction amounts and their id's. There is no separate query for the number of transactions; just use this one and the size\n * of the resulting list is the number of transactions. This is more efficient than a separate query.\n */\n List<Number> getTransactionAmounts(final StatisticalDTO dto);\n\n /**\n * Loads a transfer generated by the client and with the specified trace number and generated by the client id\n * @param traceNumber\n * @param clientId\n */\n Transfer loadTransferByTraceNumber(String traceNumber, Long clientId);\n\n /**\n * Returns simple transfers VOs for a given account and period, ordering results by date ascending\n */\n List<SimpleTransferVO> paymentVOs(Account account, Period period) throws DaoException;\n\n /**\n * Searches for transfers. If no entity can be found, returns an empty list. If any exception is thrown by the underlying implementation, it\n * should be wrapped by a DaoException.\n * \n * <p>\n * The condition specified by <code>query.getMember()</code> should only be taken in account when <code>query.getOwner() != null</code> and\n * <code>query.getType() != null</code>.\n */\n List<Transfer> search(TransferQuery query) throws DaoException;\n\n /**\n * Searches for transfers awaiting authorization\n */\n List<Transfer> searchTransfersAwaitingAuthorization(TransfersAwaitingAuthorizationQuery query);\n\n /**\n * Updates the transfer with authorization data\n */\n Transfer updateAuthorizationData(Long id, Transfer.Status status, AuthorizationLevel nextLevel, Calendar processDate);\n\n /**\n * Updates the transfer with the chargeback\n */\n Transfer updateChargeBack(Transfer transfer, Transfer chargeback);\n\n /**\n * Updates the transfer with the external transfer\n */\n Transfer updateExternalTransfer(Long id, ExternalTransfer externalTransfer);\n\n /**\n * Updates the transfer with the status\n */\n Transfer updateStatus(Long id, Payment.Status status);\n\n /**\n * Updates the transfer with the generated transaction number\n */\n Transfer updateTransactionNumber(Long id, String transactionNumber);\n}", "title": "" }, { "docid": "97eb691c5065425786b40adf5a945438", "score": "0.47959223", "text": "public static ArrayList<SuperAdminSalesmanRecoveriesBean> getSuperAdminSalesmansRecoveriesTotal(\r\n\t\t\tString dateSet) {\r\n\t\t// HashMap<String, String> map = null;\r\n\t\t// HashMap<String, String> map2 = null;\r\n\t\tSystem.out.println(\"Date : \" + dateSet);\r\n\t\tint paidCached;\r\n\t\tint remainCached;\r\n\t\tint paidAmountCached;\r\n\t\tint remainingAmountCached;\r\n\t\tString dateCached;\r\n\t\tArrayList<SuperAdminSalesmanRecoveriesBean> list = new ArrayList<>();\r\n\t\tArrayList<SuperAdminSalesmanRecoveriesBean> list2 = new ArrayList<>();\r\n\t\tCallableStatement call = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tcall = con\r\n\t\t\t\t\t.prepareCall(\"{CALL get_super_admin_salesmans_recoveries_dates(?)}\");\r\n\t\t\tcall.setString(1, dateSet);\r\n\t\t\trs = call.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tSuperAdminSalesmanRecoveriesBean bean = new SuperAdminSalesmanRecoveriesBean();\r\n\t\t\t\tbean.setRemainingRecoveries(rs.getInt(2));\r\n\t\t\t\tbean.setPaidRecoveries(rs.getInt(3));\r\n\t\t\t\tbean.setDate(rs.getDate(1) + \"\");\r\n\t\t\t\tbean.setPaidAmount(rs.getInt(4));\r\n\t\t\t\tbean.setRemainingAmount(rs.getInt(5));\r\n\t\t\t\t// System.out.println(\"+++++++++++++++++++++\"+bean.getPaidRecoveries());\r\n\t\t\t\t// map2.put(\"remainingRecoveries\",\r\n\t\t\t\t// rs.getInt(\"remaining_recovery\")+\"\");\r\n\t\t\t\t// map2.put(\"getDate\", rs.getDate(\"Date\")+\"\");\r\n\t\t\t\t// map2.put(\"paidRecoveries\", rs.getInt(\"paid_recovery\")+\"\");\r\n\r\n\t\t\t\tlist2.add(bean);\r\n\t\t\t}\r\n\r\n\t\t\tcall = con\r\n\t\t\t\t\t.prepareCall(\"{CALL get_super_admin_salesmans_recoveries()}\");\r\n\t\t\trs = call.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\t// map = new HashMap<>();\r\n\t\t\t\tSuperAdminSalesmanRecoveriesBean bean2 = new SuperAdminSalesmanRecoveriesBean();\r\n\t\t\t\tbean2.setRemainingRecoveries(rs.getInt(3));\r\n\t\t\t\tbean2.setPaidRecoveries(rs.getInt(2));\r\n\t\t\t\tbean2.setDate(rs.getDate(1) + \"\");\r\n\t\t\t\tbean2.setPaidAmount(rs.getInt(4));\r\n\t\t\t\tbean2.setRemainingAmount(rs.getInt(5));\r\n\t\t\t\t// map.put(\"remainingRecoveries\",\r\n\t\t\t\t// rs.getInt(\"remaining_recovery\")+\"\");\r\n\t\t\t\t// map.put(\"getDate\", rs.getDate(\"due_date\")+\"\");\r\n\t\t\t\t// map.put(\"paidRecoveries\", rs.getInt(\"paid_recovery\")+\"\");\r\n\r\n\t\t\t\tlist.add(bean2);\r\n\t\t\t}\r\n\r\n\t\t\tfor (int i = 0; i < list2.size(); i++) {\r\n\t\t\t\tdateCached = list2.get(i).getDate();\r\n\t\t\t\t// System.out.println(dateCached);\r\n\t\t\t\tfor (int j = 0; j < list.size(); j++) {\r\n\t\t\t\t\tif (list.get(j).getDate().equalsIgnoreCase(dateCached)) {\r\n\t\t\t\t\t\t// System.out.println(list.get(j).get(\"remainingRecoveries\"));\r\n\t\t\t\t\t\tpaidCached = list.get(j).getPaidRecoveries();\r\n\t\t\t\t\t\tremainCached = list.get(j).getRemainingRecoveries();\r\n\t\t\t\t\t\tpaidAmountCached = list.get(j).getPaidAmount();\r\n\t\t\t\t\t\tremainingAmountCached = list.get(j)\r\n\t\t\t\t\t\t\t\t.getRemainingAmount();\r\n\t\t\t\t\t\t// list2.get(i).put(\"remainingRecoveries\",\r\n\t\t\t\t\t\t// list.get(j).get(\"remainingRecoveries\"));\r\n\t\t\t\t\t\t// list2.get(i).put(\"paidRecoveries\",list.get(j).get(\"paidRecoveries\"));\r\n\t\t\t\t\t\tlist2.get(i).setPaidRecoveries(paidCached);\r\n\t\t\t\t\t\tlist2.get(i).setRemainingRecoveries(remainCached);\r\n\t\t\t\t\t\tlist2.get(i).setPaidAmount(paidAmountCached);\r\n\t\t\t\t\t\tlist2.get(i).setRemainingAmount(remainingAmountCached);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn list2;\r\n\t}", "title": "" }, { "docid": "f7c4c6630aed448d92d399edd3e58912", "score": "0.47952944", "text": "int updateByPrimaryKey(FundManagerDo record);", "title": "" }, { "docid": "da180c69c720dff3a7a226704f8531f1", "score": "0.47882465", "text": "public interface IUserTransactionRecodMapper extends BaseMapper {\n /**\n * 查询当月交易数量(付款、退款)\n * @param userId\n * @return\n */\n Integer findMonthTransactionCount(Long userId);\n}", "title": "" }, { "docid": "7bf691a7246fdc7b7382892c9fa149ac", "score": "0.4774764", "text": "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "title": "" }, { "docid": "dcd6ea63266443d8ebcdb586e016a5e1", "score": "0.4767593", "text": "public interface ProfitprofitActionRuleDao extends EntityMybatisDao<ProfitprofitActionRule> {\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate);\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate},cal_type=#{calType} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionIdUpdateAalRateAndCalType(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate, @Param(\"calType\") String calType);\n \n @Select(\"select * from profit_action_rule where section_id=#{sectionId}\")\n ProfitprofitActionRule selectProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String\n sectionId);\n\n @Delete(\"delete from profit_action_rule where id =#{id}\")\n void deleteProfitActionRuleById(@Param(\"id\")Long id);\n\n @Delete(\"delete from profit_action_rule \")\n void deleteProfitActionRuleByAll();\n \n}", "title": "" }, { "docid": "63ead3e51214a8f7cef64e0d2bb70153", "score": "0.47658584", "text": "List<Bill> todaysBills() throws SQLException;", "title": "" }, { "docid": "b0abc2890f56a55d89d02de8c700b7dc", "score": "0.47585604", "text": "@Override\r\n\tpublic List<SbiBank> DisplayingRecord() {\n\t\tTransaction tx=null;\r\n\t\tSession ses=HBNutility.getSession();\r\n\t\ttx=ses.beginTransaction();\r\n\t\tCriteria ct=ses.createCriteria(SbiBank.class);\r\n\t\tList<SbiBank> sb=ct.list();\r\n\t\treturn sb;\r\n\t}", "title": "" }, { "docid": "ebd4fa771f9a66858b04b6a396787f98", "score": "0.4752881", "text": "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}", "title": "" }, { "docid": "cf5272585e481a6c07bcd8615abf2d03", "score": "0.47501782", "text": "@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }", "title": "" }, { "docid": "c15d9fc3b2441c85317bd09d3e996321", "score": "0.47424063", "text": "BasicInfoAnodeBurningLossRate selectByPrimaryKey(Integer code);", "title": "" }, { "docid": "0d45867f4a519af8e9a9e394e13e374e", "score": "0.47423288", "text": "Tablero consultarTablero();", "title": "" }, { "docid": "acef333d06d05c213766ced0b33d3bd7", "score": "0.47411227", "text": "@Mapper\npublic interface SRDaLeiDAO {\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \")\n List<SRDaLei> querySRDaLeiListByInstitution(@Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND id = #{id} \\n\")\n SRDaLei querySRDaLeiById(@Param(\"id\") int id, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name = #{name} \\n\")\n SRDaLei querySRDaLeiByName(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name like CONCAT('%',#{name},'%') \\n\")\n List<SRDaLei> querySRDaLeiListByNameWithLike(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Insert(\" INSERT INTO `px_sr_dalei`\\n\" +\n \"( \\n\" +\n \"`institution_code`,\\n\" +\n \"`name`,\\n\" +\n \"`createDate`,\\n\" +\n \"`updateDate`)\\n\" +\n \"VALUES\\n\" +\n \"( \\n\" +\n \"#{institution_code},\\n\" +\n \"#{name},\\n\" +\n \"now(),\\n\" +\n \"now());\\n\"\n )\n public int insertSRDaLei(SRDaLei srDaLei);\n\n @Update(\" UPDATE `px_sr_dalei`\\n\" +\n \"SET\\n\" +\n \"`name` = #{name},\\n\" +\n \"`updateDate` = now()\\n\" +\n \" WHERE id=#{id} and institution_code=#{institution_code} ;\\n \" )\n public int updateSRDaLei(SRDaLei srDaLei);\n\n @Delete(\" DELETE FROM `px_sr_dalei`\\n\" +\n \" WHERE id=#{id} and name=#{name} and institution_code=#{institution_code} ; \")\n public int deleteSRDaLei(SRDaLei srDaLei);\n}", "title": "" }, { "docid": "3757d333c21ca1313b1616c24f5aecbb", "score": "0.47261485", "text": "public ResultSet getAccno(Long ano)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select balance from bank where Accno=\"+ano+\"\");\r\n\treturn rs;\r\n}", "title": "" }, { "docid": "15ad9f1070f974af5deb12426411ccf0", "score": "0.47235444", "text": "public interface RightInfoDAO extends BaseDAO {\n /** The name of the DAO */\n public static final String NAME = \"RightInfoDAO\";\n\n\t/**\n\t * Insert one <tt>RightInfoDTO</tt> object to DB table <tt>azdai_right_info</tt>, return primary key\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>insert into azdai_right_info(code,title,memo,gmt_create,gmt_modify) values (?, ?, ?, ?, ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return String\n\t *\t@throws DataAccessException\n\t */\t \n public String insert(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Update DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>update azdai_right_info set title=?, memo=?, gmt_modify='NOW' where (code = ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int update(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return RightInfoDTO\n\t *\t@throws DataAccessException\n\t */\t \n public RightInfoDTO find(String code) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findAll() throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@param userNo\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findUserRights(String userNo) throws DataAccessException;\n\n\t/**\n\t * Delete records from DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>delete from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int delete(String code) throws DataAccessException;\n\n}", "title": "" }, { "docid": "b429451ca326745767bf3ecb3c00698c", "score": "0.47179234", "text": "public interface LeadersDao {\r\n\r\n @Select(\"select * from leaders where dept_id=#{deptId}\")\r\n List<Leaders> selectLeadersByDept(@Param(\"deptId\") Integer dept_id);\r\n \r\n @Select(\"select * from leaders where lid=#{lid}\")\r\n Leaders selectLeadersByid(@Param(\"lid\") Integer lid);\r\n\r\n @Insert(\"INSERT INTO leaders (lid,dept_id) \" +\r\n \" VALUES (#{lid},#{deptId})\")\r\n int insertLeader(@Param(\"lid\")Integer lid, @Param(\"deptId\")Integer dept_id);\r\n\r\n @Delete(\"delete from leaders where lid = #{lid}\")\r\n int deleteLeader(Integer lid);\r\n}", "title": "" }, { "docid": "419b5559bb180fe9bc212e8b52827f3d", "score": "0.47157204", "text": "public interface FundRecordService {\n\n Page<FundRecordDTO> pageList(HashMap<String, Object> params);\n\n FundRecordDTO save(FundRecordDTO hppVideoDTO);\n\n FundRecordDTO createFundRecordDTO(FundRecordDTO hppVideoDTO);\n\n HashMap<String, Object> checkCreateFundRecordDTO(FundRecordDTO hppVideoDTO);\n\n FundRecordDTO findOne(String id);\n\n List<FundRecordDTO> findAll();\n\n /*\n for app 基金入伙记录\n */\n HashMap<String, Object> findListByFundSignalId(String fundSignalId);\n\n /*\n 我的入伙记录\n */\n List<FundRecordDTO> findMyFund(String userId);\n \n void delete(String id);\n\n /*\n 计算总入伙金额\n */\n Double sumFundByFundSignalId(String id);\n}", "title": "" }, { "docid": "803215d81cb58ec032b214b1aa091581", "score": "0.47114035", "text": "BankUserInfo selectByPrimaryKey(String bankUserId);", "title": "" }, { "docid": "83fbf5ca9c8426506354e55329d357ca", "score": "0.467803", "text": "RepaymentPlanInfoUn selectByPrimaryKey(String repaymentId);", "title": "" }, { "docid": "45d49ea83913dce924f896a6751fe124", "score": "0.46731377", "text": "@Override\r\n\tpublic List<Manager> getManagerDetails(String email) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=session.createQuery(\"from Manager\");\r\n\t\tList<Manager> managerList=query.list();\r\n\t\treturn managerList;\r\n\t\t\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9d3da45206ef2307f0a052e440782955", "score": "0.4673015", "text": "@Override\r\n\tprotected DAO<UnidadFuncional_VO> getDao() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "337afa939519d9f8931b3f9b0eac0d61", "score": "0.46674255", "text": "protected BaseOracleBean getDatabeanInstance() {\n return new RkPaySumOracleBean();\n }", "title": "" }, { "docid": "c18b63e68f5385de2c3bad8c4154be1b", "score": "0.4666082", "text": "public void llenarTabla(){\n pedidoMatDao.llenarTabla();\n }", "title": "" }, { "docid": "5784032fb01422c7c655668965915279", "score": "0.46660036", "text": "public synchronized String fetchAll(String admin_segment, String economic_segment, String budget_year_id) {\n List mtssCostingsList = null;\n String jsonList = \"\";\n\n final Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n Transaction tx = null;\n try {\n //final Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n //session.beginTransaction();\n tx = session.beginTransaction();\n if(budget_year_id.equals(\"\")){\n budget_year_id = \"0\";\n }\n int year = Integer.parseInt(budget_year_id) - 1;\n String sql = \" SELECT a.id, (select code from Economic_Segment where code=a.economic_segment) as code, (select name from Economic_Segment where code=a.economic_segment) as name, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2015) as amount0, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2016) as amount1, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2017) as amount2, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2018) as amount3, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2019) as amount4, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2020) as amount5, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2021) as amount6 \" +\n \" FROM MTSS_Costing a where a.admin_segment='\"+admin_segment+\"' and a.economic_segment like '\"+economic_segment+\"%' and a.budget_year_id=\"+(year + 1);\n\n if(economic_segment.contains(\",\")){\n sql = \" SELECT a.id, (select code from Economic_Segment where code=a.economic_segment) as code, (select name from Economic_Segment where code=a.economic_segment) as name, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2015) as amount0, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2016) as amount1, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2017) as amount2, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2018) as amount3, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2019) as amount4, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2020) as amount5, \" +\n \" (select ISNULL(sum(budget_amount),0) from MTSS_Costing where a.admin_segment=admin_segment and a.economic_segment=economic_segment and a.programme_segment=programme_segment \" +\n \" and a.functional_segment=functional_segment and a.fund_segment=fund_segment and a.geo_segment=geo_segment and budget_year_id=2021) as amount6 \" +\n \" FROM MTSS_Costing a where a.admin_segment='\"+admin_segment+\"' and a.economic_segment in (\"+economic_segment+\") and a.budget_year_id=\"+(year + 1);\n \n }\n \n //System.out.println(\"fetchAll sql: \"+sql);\n SQLQuery q = session.createSQLQuery(sql);\n mtssCostingsList = q.list();\n// Query q = session.createQuery(\"from MtssCosting as a where a.name<>'' order by a.name\");\n// mtssCostingsList = q.list();\n //session.getTransaction().commit();\n Gson gson = new Gson();\n jsonList = gson.toJson(mtssCostingsList);\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null) {\n tx.rollback();\n }\n e.printStackTrace();\n } finally {\n //session.close();\n }\n return jsonList;\n }", "title": "" }, { "docid": "020d8be57717e17b9f6ca5bcf94e9b75", "score": "0.4656377", "text": "public void formDatabaseTable() {\n }", "title": "" }, { "docid": "758bab83cff2a943644ca6209a6a00ea", "score": "0.4652914", "text": "public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}", "title": "" }, { "docid": "0976b522786c9e379950506ba78f5726", "score": "0.4649575", "text": "public List<GLJournalApprovalVO> selectInitialBal(String acctId, String resultFromDt,\n String FrmPerDate, String FrmFCDate, String acctType, int resultpos, String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n if ((acctType.equals(\"E\") || acctType.equals(\"R\"))) {\n sqlQuery = \" SELECT sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) )\"\n + \" then F.AMTACCTDR - F.AMTACCTCR else 0 end )as initialamt,\"\n + \"\tsum(case when(DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTDR else 0 end ) as initialdr ,\"\n + \"sum(case when (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) ) then F.AMTACCTCR else 0 end ) as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND ( f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \" + \" \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmPerDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmPerDate);\n st.setString(4, resultFromDt);\n st.setString(5, FrmPerDate);\n st.setString(6, resultFromDt);\n st.setString(7, acctId);\n st.setString(8, acctId);\n log4j.debug(\"st:\" + st.toString());\n\n rs = st.executeQuery();\n\n } else if (acctType.equals(\"A\") || acctType.equals(\"L\") || acctType.equals(\"O\")\n || acctType.equals(\"M\")) {\n sqlQuery = \" SELECT sum(\"\n + \"case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') \"\n + \") or (dateacct = To_date(?) AND f.factaccttype = 'O' )) \"\n + \"then F.AMTACCTDR - F.AMTACCTCR else 0 end \" + \")as initialamt,\"\n + \"\tsum(case when( (DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?) \"\n + \" AND f.FACTACCTTYPE not in('O', 'R', 'C')) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTDR else 0 end )\"\n + \" as initialdr , \" + \"sum(case when ((DATEACCT > TO_DATE(?) and DATEACCT < TO_DATE(?)\"\n + \"AND f.FACTACCTTYPE not in('O', 'R', 'C') ) or (dateacct = To_date(?) AND f.factaccttype = 'O' ) ) then F.AMTACCTCR else 0 end \"\n + \") as initialcr\"\n + \" FROM FACT_ACCT f WHERE 1=1 AND (f.EM_EFIN_UNIQUECODE = ? or f.acctvalue=? ) \"\n + \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FrmFCDate);\n st.setString(2, resultFromDt);\n st.setString(3, FrmFCDate);\n st.setString(4, FrmFCDate);\n st.setString(5, resultFromDt);\n st.setString(6, FrmFCDate);\n st.setString(7, FrmFCDate);\n st.setString(8, resultFromDt);\n st.setString(9, FrmFCDate);\n st.setString(10, acctId);\n st.setString(11, acctId);\n log4j.debug(\"assst:\" + st.toString());\n rs = st.executeQuery();\n }\n\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setInitNet(rs.getBigDecimal(1));\n VO.setInitDr(rs.getBigDecimal(2));\n VO.setInitCr(rs.getBigDecimal(3));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "title": "" }, { "docid": "7ae73dc36e2c45dd31beb39f89266ad8", "score": "0.4646134", "text": "public List<Bill> getDrinkforBill() {\n\t\n\tString sql = \"SELECT * FROM bills join employees e on bills.Id_employees = e.Id_employees join drink d on bills.Id_drink = d.Id_drink\";\n\t\n\tList<Bill>getDrinkForBill = new ArrayList<Bill>();\n\t\n\ttry {\n\t\tPreparedStatement ps = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t\tResultSet rs = ps.executeQuery();\n\t\t\n\t\twhile(rs.next()) {\n\t\t\t\n\t\t\tBill drinkBill = new Bill();\n\t\t\tdrinkBill.setId(rs.getInt(\"Id_bills\"));\n\t\t\tdrinkBill.setDrink(rs.getString(\"Name_Drink\"));\n\t\t\tdrinkBill.setEmployyes(rs.getString(\"Name_and_surname\"));\n\t\t\tdrinkBill.setPrice(rs.getDouble(\"Price\"));\n\t\t\tdrinkBill.setSerialNumber(rs.getString(\"Serial_Number_Bill\"));\n\t\t\tdrinkBill.setTotal(rs.getDouble(\"TOTAL\"));\n\t\t\t\n\t\t\tgetDrinkForBill.add(drinkBill);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\t\n\t\n\treturn getDrinkForBill;\n}", "title": "" }, { "docid": "e08768accf9d3df76a9275d6e9ac9ac3", "score": "0.4638001", "text": "public List<GLJournalApprovalVO> getFunds(String OrgId, String ClientId, String FundId,\n String RoleId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELECT C_CAMPAIGN_ID as id, ((CASE C_CAMPAIGN.isActive WHEN 'N' THEN '**' ELSE '' END) || (C_CAMPAIGN.Value||'-'||C_CAMPAIGN.Name)) as name FROM C_CAMPAIGN \"\n + \" WHERE C_CAMPAIGN.AD_Org_ID in (\" + OrgId + \") AND C_CAMPAIGN.AD_Client_ID IN(\"\n + ClientId\n + \") AND C_CAMPAIGN.em_efin_iscarryforward ='N' AND (C_CAMPAIGN.isActive = 'Y' OR C_CAMPAIGN.C_CAMPAIGN_ID = ? ) AND C_CAMPAIGN.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') ORDER BY name \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FundId);\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setFundId(rs.getString(1));\n VO.setFundName(rs.getString(2));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "title": "" }, { "docid": "4837a7de698869ae2820367a8f6a1e56", "score": "0.46355733", "text": "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "title": "" }, { "docid": "5a2d251de8fc1529a67ba6678ec2ecc3", "score": "0.46320844", "text": "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}", "title": "" }, { "docid": "3d444cd7963b54b09434e83c546799f4", "score": "0.46309617", "text": "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}", "title": "" }, { "docid": "27078f12527e731bea77313f99b9b158", "score": "0.46304336", "text": "public void wire(String accountNumber,int bankNumber, String toAccountNumber, int amount) {\n\t\t\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll, lp, ls, mm, nn;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\tint tolastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tif (nowBalance<amount) {\n\t\t\tSystem.out.println(\"No Balance\");\n\t\t\treturn;\n\t\t}\n\t\tlastBalance = nowBalance - amount;\n\t\t//System.out.println(lastBalance);\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tls = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tls.setInt(1, lastBalance);\n\t\tls.setString(2, accountNumber.toString());\n\t\tls.executeUpdate();\n\t\t\n\t\t\n\t\t\n\t\t//to account\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql3 = \"select bankName from bank where bankNumber=?\";\n\t\tll= (PreparedStatement) conn.prepareStatement(sql3);\n\t\tll.setString(1, String.valueOf(bankNumber).toString());\n\t\tResultSet rs3 = ll.executeQuery();\n\t\tString toname = \"\";\n\t\twhile(rs3.next()) { \n\t\t\ttoname=rs3.getString(\"bankName\");\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tString sql4 = \"select balance,userId from \"+toname+\" where accountNumber=?\";\n\t\tpp= (PreparedStatement) conn.prepareStatement(sql4);\n\t\tpp.setString(1, accountNumber.toString());\n\t\tResultSet rs4 = pp.executeQuery();\n\t\tint tonowBalance = 0;\n\t\tString toid = \"\";\n\t\twhile(rs4.next()) { \n\t\t\ttonowBalance=rs4.getInt(\"balance\");\n\t\t\ttoid = rs4.getString(\"userId\");\n\t\t}\n\t\t\n\t\ttolastBalance = tonowBalance + amount;\n\t\t//System.out.println(lastBalance);\n\t\tString sql5 = \"UPDATE \"+toname+\" SET balance=? where accountNumber=?\";\n\t\tlp = (PreparedStatement) conn.prepareStatement(sql5);\n\t\tlp.setInt(1, tolastBalance);\n\t\tlp.setString(2, toAccountNumber.toString());\n\t\tlp.executeUpdate();\n\t\t\n\t\t\n\t\t//log\n\t\tString logs = \"wired : \"+ amount+\" to \"+toAccountNumber+\"/ balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tmm = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tmm.setString(1, logs);\n\t\tmm.executeUpdate();\n\t\tSystem.out.println(\"You wired $\"+String.valueOf(amount));\n\t\t\n\t\tString logs1 = \"get : \"+ amount+\" from \" +accountNumber+ \"/ balance: \"+String.valueOf(tolastBalance);\n\t\tString sql12 = \"insert into \"+toid+\" (log) values (?)\";\n\t\tnn = (PreparedStatement) conn.prepareStatement(sql12);\n\t\tnn.setString(1, logs1);\n\t\tnn.executeUpdate();\n\t\tSystem.out.println(\"You got $\"+String.valueOf(amount));\n\t\t\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "a203c669c68fbfe462719a88e1ee8c0c", "score": "0.46265456", "text": "@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);", "title": "" }, { "docid": "9940be3893d817cbc747d04eccbdbc53", "score": "0.46153548", "text": "BusinessRepayment selectByPrimaryKey(String id);", "title": "" }, { "docid": "97eaf0d3b00bebc234f9dcc84a612654", "score": "0.46105924", "text": "@Override\n\tpublic JavaBean1 findB(String date) {\n\t\t\n\t\tArrayList<PaymentOrderPO> pos=new ArrayList<>();\n\t\tjb1=new JavaBean1();\n\t\tString sql=\"select * from paymentlist\";\n\t\tjb1.setResultMessage(ResultMessage.NotExist);\n\t\ttry {\n\t\t\tstmt=con.prepareStatement(sql);\n\t\t\tResultSet rs=stmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tpo=new PaymentOrderPO();\n\t\t\t\tif(rs.getString(\"date\").equals(date)&&\n\t\t\t\t\t\trs.getString(\"approState\").equals(\"NotApprove\")){\n\t\t\t\t\tpo.setID(rs.getString(1));\n\t\t\t\t\tpo.setDate(rs.getString(2));\n\t\t\t\t\tpo.setAmount(rs.getDouble(3));\n\t\t\t\t\tpo.setPayer(rs.getString(4));\n\t\t\t\t\tpo.setBankAccount(rs.getString(5));\n\t\t\t\t\tpo.setEntry(rs.getString(6));\n\t\t\t\t\tpo.setNote(rs.getString(7));\n\t\t\t\t\tpo.setApproState(ApproState.valueOf(rs.getString(\"approState\")));\n\t\t\t\t\tpos.add(po);\n\t\t\t\t\tjb1.setResultMessage(ResultMessage.Success);\n\t\t\t\t}\n\t\t\t\tif(rs.getString(\"date\").equals(date)&&\n\t\t\t\t\t\trs.getString(\"approState\").equals(\"Approve\")){\n\t\t\t\t\tpo.setID(rs.getString(1));\n\t\t\t\t\tpo.setDate(rs.getString(2));\n\t\t\t\t\tpo.setAmount(rs.getDouble(3));\n\t\t\t\t\tpo.setPayer(rs.getString(4));\n\t\t\t\t\tpo.setBankAccount(rs.getString(5));\n\t\t\t\t\tpo.setEntry(rs.getString(6));\n\t\t\t\t\tpo.setNote(rs.getString(7));\n\t\t\t\t\tpo.setApproState(ApproState.valueOf(rs.getString(\"approState\")));\n\t\t\t\t\tpos.add(po);\n\t\t\t\t\tjb1.setResultMessage(ResultMessage.Success);\n\t\t\t\t}\n\t\t\t}\n\t\t\tjb1.setObject(pos);\n\t\t\t return jb1;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn jb1;\n\t\t}\n\t}", "title": "" }, { "docid": "ef6ad5501bf1a002d0805feb498258b0", "score": "0.46102145", "text": "public GenericDao<Payment> getPaymentDao();", "title": "" }, { "docid": "a3be658cdc3d9b1aa6d96ac2835ef618", "score": "0.4606129", "text": "@Mapper\n@Repository\npublic interface B_empMapper{\n /**\n * 添加员工\n * @param b_emp\n */\n @Insert(\"INSERT INTO \\\"b_emp\\\" VALUES (\\\"auto_eid\\\".nextval,#{e_pass},#{e_name},#{e_email},#{e_phone},#{e_d_id},#{e_p_id},sysdate,1,#{e_education},'无')\")\n void saveB_emp(B_emp b_emp);\n\n /**\n * 查看所有员工信息\n * @return\n */\n @Select(\"SELECT e.*,p.\\\"p_name\\\",d.\\\"d_name\\\" FROM \\\"b_dept\\\" d,\\\"b_position\\\" p,\\\"b_emp\\\" e\\n\" +\n \"WHERE e.\\\"e_p_id\\\"=p.\\\"p_id\\\" AND e.\\\"e_d_id\\\"=d.\\\"d_id\\\" AND e.\\\"e_dimission\\\"=1\")\n List<B_emp> findAllB_emp();\n\n /**\n * 根据职位id查询员工信息\n * @param p_id\n * @return\n */\n @Select(\"SELECT e.*,p.\\\"p_name\\\",d.\\\"d_name\\\" FROM \\\"b_dept\\\" d,\\\"b_position\\\" p,\\\"b_emp\\\" e\\n\" +\n \"WHERE e.\\\"e_p_id\\\"=p.\\\"p_id\\\" AND e.\\\"e_d_id\\\"=d.\\\"d_id\\\" AND p.\\\"p_id\\\"=#{param1} AND e.\\\"e_dimission\\\"=1\")\n List<B_emp> findB_empBye_pid(int p_id);\n\n /**\n * 根据员工id查询员工部门职位的信息\n * @param tr_e_id\n * @return\n */\n @Select(\"SELECT e.*,p.\\\"p_name\\\",d.\\\"d_name\\\" FROM \\\"b_dept\\\" d,\\\"b_position\\\" p,\\\"b_emp\\\" e\\n\" +\n \"WHERE e.\\\"e_p_id\\\"=p.\\\"p_id\\\" AND e.\\\"e_d_id\\\"=d.\\\"d_id\\\" AND e.\\\"e_id\\\"=#{param1} AND e.\\\"e_dimission\\\"=1\")\n B_emp findB_empBye_id(int tr_e_id);\n\n @Update(\"UPDATE \\\"b_emp\\\" SET \\\"e_d_id\\\"=#{e_d_id},\\\"e_p_id\\\"=#{e_p_id} WHERE \\\"e_id\\\"=#{e_id}\")\n void updateemp(B_emp b_emp);\n @Update(\"UPDATE \\\"b_emp\\\" SET \\\"e_dimission\\\"=0,\\\"e_reason\\\"=#{e_reason} WHERE \\\"e_id\\\"=#{e_id}\")\n void deleteemp(B_emp b_emp);\n @Select(\"SELECT * FROM \\\"b_emp\\\" WHERE \\\"e_id\\\"=#{e_id} AND \\\"e_pass\\\"=#{e_pass} AND \\\"e_dimission\\\"=1\")\n B_emp getempByp_idAndp_pass(B_emp b_emp);\n}", "title": "" }, { "docid": "2446c1c97c77101832e060a8126e4e1a", "score": "0.45983744", "text": "public interface IPayAccountCardDao\n{\n int Update(PayAccountCard payAccountCard);\n\n int Insert(PayAccountCard payAccountCard);\n\n int Delete(PayAccountCard payAccountCard);\n\n /**\n * 根据网点编号获取该网点银行卡号\n *\n * @param company_code\n * @param payee_id\n * @return\n */\n List<Map<String, Object>> loadBankCardByPayeeId(String company_code, String payee_id);\n\n /**\n * 根据网点编号获取该网点银行卡号\n *\n * @param payAccountCard\n * @return\n */\n List<Map<String, Object>> Select(PayAccountCard payAccountCard);\n\n /**\n * 根据银行卡号获取银行卡银行\n *\n * @param payAccountCard\n * @return\n */\n List<Map<String, Object>> selectBankCardById(PayAccountCard payAccountCard);\n\n /**\n * 设置别名或设置默认标识\n * @param company_code\n * @param payee_id\n * @param account_id\n * @param alias\n * @param default_id\n * @return\n */\n int SetAliasOrDefault(String company_code, String payee_id,String account_id, String alias, int default_id);\n}", "title": "" }, { "docid": "7f222a32bd92bc37dbfcd614fb4e4330", "score": "0.45962566", "text": "BankUserInfo selectByPrimaryKey(String userId);", "title": "" }, { "docid": "051082e3444eddeafdf80fccae7bfcb3", "score": "0.45931986", "text": "public interface CRateProduccionMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" rates_produccion.id as recid,\"\r\n + \" rates_produccion.maquina,\"\r\n + \" maquinas.codigo as codigoMaquina,\"\r\n + \" rates_produccion.producto,\"\r\n + \" productos.codigo as codigoProducto,\"\r\n + \" rates_produccion.unidades_minuto \"\r\n + \"FROM rates_produccion \"\r\n + \"LEFT JOIN maquinas ON \"\r\n + \"maquinas.id = rates_produccion.maquina \"\r\n + \"LEFT JOIN productos ON \"\r\n + \"productos.id = rates_produccion.producto \";\r\n \r\n static final String FIND_BY_MAQUINA_PRODUCTO = \"SELECT \"\r\n + \" rates_produccion.id as recid \"\r\n + \"FROM rates_produccion \"\r\n + \"WHERE rates_produccion.maquina = #{maquina} \"\r\n + \"AND rates_produccion.producto = #{producto}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los rates existentes\r\n * @return lista de rates\r\n */\r\n @Select(FIND_ALL)\r\n public List<CRateProduccion> findAll(); \r\n \r\n /**\r\n * Método que me permite ubicar un rate de producción por su máquina-producto\r\n * @param maquina id de la maquina\r\n * @param producto id del producto\r\n * @return el id del rate\r\n */\r\n @Select(FIND_BY_MAQUINA_PRODUCTO)\r\n public Long findByMaquinaProducto(@Param(\"maquina\")Long maquina,@Param(\"producto\")Long producto);\r\n}", "title": "" }, { "docid": "b93808aef2b39e037719b4e24350f7e6", "score": "0.45905733", "text": "NeeqCompanyAccountingFirmOnline selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "0ef301e3f7719d3d3660037115645de4", "score": "0.4589815", "text": "public ResultSet Retbroker() throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from login where usertype='broker'\");\r\n\treturn rs;\r\n}", "title": "" }, { "docid": "e89137cae006508a4a1f9d1e13fd40d2", "score": "0.4588005", "text": "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "244bf7837751fbe52dd62bc85179c90a", "score": "0.4586977", "text": "public interface RecommendCardMapper extends BaseDao {\n\n //推荐卡列表\n @Select(\"select cr.icr_id cardId,cr.cr_pic_url picURL,cr.cr_action_url actionURL ,cr.cr_card_name cardName\" +\n \" from tb_card_recommend cr where cr.is_del=0 and cr.is_hidden=0 and \" +\n \" cr.cr_type = #{key,jdbcType=VARCHAR} and(cr.city_code='all' or instr(cr.city_code,#{adcode,jdbcType=VARCHAR})>0 ) \" +\n \" order by cr.cr_card_order desc\")\n Page<RecommendCardDto> getRecommendCardsByCityCode(RecommendCardBean bean);\n\n @Select(\"select * from (select cr.cr_card_id cardId,cr.cr_card_name cardName,cr.cr_prc_url picURL,\" +\n \"cr.city_code cityCode,cr.cr_card_order orderNum from tb_card_recommend cr where \" +\n \"cr.cr_card_id=#{cardId,jdbcType=VARCHAR} order by cr.cr_card_order desc) card where rownum=1\")\n RecommendCardDto getRecommendCardDetailById(@Param(\"cardId\") String cardId);\n //推荐卡点击量\n @Update(\"update tb_card_recommend set cr_click_count=cr_click_count+1 where icr_id=#{cardId,jdbcType=INTEGER}\")\n int updatePicClickCount(@Param(\"cardId\") int cardId);\n\n}", "title": "" }, { "docid": "0f04929015b99c28303477128c89398a", "score": "0.45867765", "text": "int getFundsCount();", "title": "" }, { "docid": "0f04929015b99c28303477128c89398a", "score": "0.45867765", "text": "int getFundsCount();", "title": "" }, { "docid": "5200dc55db8402013362821accd97828", "score": "0.45841098", "text": "FundRateStepService(){\r\n\t\tfundRateStepDao=new FundRateStepDao();\r\n\t}", "title": "" }, { "docid": "ccc4c2769e88c92fcac92e0ea6897bcd", "score": "0.45809287", "text": "public ResultSet Brus(Long broker_id) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n\t\r\n}", "title": "" }, { "docid": "3e4d474d2f2a0d2197177da51ad150c4", "score": "0.4579776", "text": "public void mutualFund(){\r\n\t\tSystem.out.println(\"HSBC ---mutualFund method called from Interface BrazilBank\");\r\n\t}", "title": "" }, { "docid": "4d70ec3b17ed9ef63217685c14f4cb7c", "score": "0.4571733", "text": "List<Bill> all() throws SQLException;", "title": "" }, { "docid": "8fc44276808f4438def2f62e602094bc", "score": "0.4559202", "text": "public ArrayList<Table> getTablePayment() {\n \tArrayList<Table> fetchedTables = new ArrayList<Table>();\n \tfetchedTables = getTable(tablePayment);\n \treturn fetchedTables;\n }", "title": "" }, { "docid": "df38f06dd4753f46c6a9349926689450", "score": "0.45573726", "text": "public interface PremiumManager {\r\n /**\r\n * Retrieves all premium information\r\n *\r\n * @param policyHeader policy header\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllPremium(PolicyHeader policyHeader, Record inputRecord);\r\n\r\n /**\r\n * Retrieves all rating log information\r\n *\r\n * @param policyHeader policy header\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllRatingLog(PolicyHeader policyHeader, Record inputRecord);\r\n\r\n /**\r\n * Retrieves all member contribution info\r\n *\r\n * @param inputRecord (transactionId and riskId and termId)\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllMemberContribution (Record inputRecord);\r\n\r\n /**\r\n * Retrieves all layer detail info\r\n *\r\n * @param inputRecord (transactionId and coverageId and termId)\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllLayerDetail(Record inputRecord);\r\n \r\n /**\r\n * Retrieves all fund information\r\n *\r\n * @param policyHeader policy header\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllFund(PolicyHeader policyHeader, Record inputRecord);\r\n\r\n /**\r\n * Retrieves all payment information\r\n *\r\n * @param policyHeader policy header\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllPayment(PolicyHeader policyHeader);\r\n\r\n /**\r\n * Validate if the term base id is the current term base id and whether the data is empty.\r\n *\r\n * @param inputRecord inputRecord\r\n * @param conn live JDBC Connection\r\n * @return boolean\r\n */\r\n void validateTransactionForPremiumWorksheet(Record inputRecord, Connection conn);\r\n\r\n /**\r\n * Get the default values for premium accounting date fields\r\n *\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet getInitialValuesForPremiumAccounting(Record inputRecord);\r\n\r\n /**\r\n * Generate the premium accounting data for selected transaction\r\n *\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet generatePremiumAccounting(Record inputRecord);\r\n}", "title": "" }, { "docid": "eb7896d29995e5c8a32442c72fac0455", "score": "0.45566317", "text": "public static ArrayList<SalesManBean> getSallesman(int doId) {\r\n\t\tResultSet rs = null;\r\n\t\tSystem.out.println(\"CustomerBAL.get_do_salesman(?)\");\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tdateFormat.format(new Date());\r\n\t\tSalesManBean bean = null;\r\n\t\tArrayList<SalesManBean> SallesmanList = new ArrayList<SalesManBean>();\r\n\t\tint salesman_id, latecustomer, totalSales;\r\n\t\tdouble monthlyIncome;\r\n\t\tString sallesman_name, cnicNo, address, district, phone;\r\n\t\tDate datejoin;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\t\t\tif (con != null) {\r\n\t\t\t\t// Begin Stored Procedure Calling -- Jetander\r\n\t\t\t\tCallableStatement prepareCall = con\r\n\t\t\t\t\t\t.prepareCall(\"{call get_do_salesman(?)}\");\r\n\t\t\t\tprepareCall.setInt(1, doId);\r\n\t\t\t\trs = prepareCall.executeQuery();\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tsallesman_name = rs.getString(1);\r\n\t\t\t\t\tcnicNo = rs.getString(2);\r\n\t\t\t\t\taddress = rs.getString(3);\r\n\t\t\t\t\tdistrict = rs.getString(4);\r\n\t\t\t\t\taddress = rs.getString(5);\r\n\t\t\t\t\tmonthlyIncome = rs.getDouble(6);\r\n\t\t\t\t\tdatejoin = rs.getDate(7);\r\n\t\t\t\t\t// System.err.println(\"Date of Joining \" + datejoin);\r\n\t\t\t\t\tphone = rs.getString(8);\r\n\t\t\t\t\tsalesman_id = rs.getInt(9);\r\n\t\t\t\t\tlatecustomer = rs.getInt(10);\r\n\t\t\t\t\ttotalSales = rs.getInt(11);\r\n\t\t\t\t\t// end procedure call.\r\n\t\t\t\t\tbean = new SalesManBean();\r\n\t\t\t\t\tbean.setName(sallesman_name);\r\n\t\t\t\t\tbean.setCnic(cnicNo);\r\n\t\t\t\t\tbean.setAddress(address);\r\n\t\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\t\tbean.setDatejoin(datejoin);\r\n\t\t\t\t\tbean.setSallery(monthlyIncome);\r\n\t\t\t\t\tbean.setPhone_number(phone);\r\n\t\t\t\t\tbean.setSalesmanId(salesman_id);\r\n\t\t\t\t\tbean.setLateCustomer(latecustomer);\r\n\t\t\t\t\tbean.setTotalSales(totalSales);\r\n\t\t\t\t\tbean.setFoname(rs.getString(\"fo_name\"));\r\n\t\t\t\t\tSallesmanList.add(bean);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn SallesmanList;\r\n\t}", "title": "" }, { "docid": "8fd0e765d8bc5f8c4002f5ec6a850303", "score": "0.45565727", "text": "int updateByPrimaryKeySelective(FundManagerDo record);", "title": "" }, { "docid": "b6e9e04b38b78dffd1b196192fc4e34b", "score": "0.4556053", "text": "@Override\r\n\tpublic List<TrDetailPenjualan> findAll() {\n\t\tString query = \"select * from TR_DETAIL_PENJUALAN\";\r\n\t\tList<TrDetailPenjualan> listDetail = new ArrayList<>();\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tcon = dataSource.getConnection();\r\n\t\t\tps = con.prepareStatement(query);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tTrDetailPenjualan trDetail = new TrDetailPenjualan();\r\n\t\t\t\ttrDetail.setKodeDetail(rs.getString(\"kode_detail\"));\r\n\t\t\t\ttrDetail.setQty(rs.getInt(\"Qty\"));\r\n\t\t\t\ttrDetail.setSubtotal(rs.getInt(\"subtotal\"));\r\n\t\t\t\ttrDetail.setDiskon(rs.getInt(\"diskon\"));\r\n\t\t\t\ttrDetail.setHargaSatuan(rs.getInt(\"harga_satuan\"));\r\n\t\t\t\tkodeBarang = (rs.getString(\"kode_barang\"));\r\n\t\t\t\tmstBarang = mstBarangDao.findOne(kodeBarang);\r\n\t\t\t\ttrDetail.setKodeBarang(mstBarang);\r\n\t\t\t\tnoNota = (rs.getString(\"no_nota\"));\r\n\t\t\t\ttrHeaderPenjualan = trHeaderPenjualanDao.findOne(noNota);\r\n\t\t\t\ttrDetail.setNoNota(trHeaderPenjualan);\r\n\t\t\t\tlistDetail.add(trDetail);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn listDetail;\r\n\t}", "title": "" }, { "docid": "e15c99b6cb23988e2ebc76cdb5a47ae9", "score": "0.45545813", "text": "public interface DeptDao {\n //动态查询\n @SelectProvider(type=DeptDynaSqlProvider.class,method = \"selectWithParam\")\n List<Dept> selectByPage(Map<String,Object> params);\n @SelectProvider(type=DeptDynaSqlProvider.class,method = \"count\")\n Integer count(Map<String,Object> params);\n @Select(\"select * from \"+DEPTTABLE+\" \")\n List<Dept> selectAllDept();\n @Select(\"select * from \"+DEPTTABLE+\" where id = #{id}\")\n Dept selectById(int id);\n @Delete(\"delete from \"+DEPTTABLE+\" where id = #{id}\")\n void deleteById(int id);\n //动态插入部门\n @InsertProvider(type=DeptDynaSqlProvider.class,method = \"insertDept\")\n void save(Dept dept);\n //动态修改部门\n @UpdateProvider(type=DeptDynaSqlProvider.class,method = \"updateDept\")\n void update(Dept dept);\n}", "title": "" }, { "docid": "a05683b2c7bded06d286343d13425820", "score": "0.45502284", "text": "SsPaymentBillPerson selectByPrimaryKey(Long id);", "title": "" }, { "docid": "488b8fceacbc4b97c9c64a041771c5be", "score": "0.45489305", "text": "int insert(FundManagerDo record);", "title": "" }, { "docid": "828d8822778013df832075afb2203fb7", "score": "0.45445728", "text": "public int nextadd(Long id,Long broker_name,Long bankaccountNo, String bankname, String branchname,\r\n\t\tString pancard_no, Long demataccountNo,double balance) throws SQLException {\n\tint j=DbConnect.getStatement().executeUpdate(\"insert into customer_details values(\"+id+\",'\"+pancard_no+\"','\"+bankname+\"','\"+branchname+\"',\"+bankaccountNo+\",\"+demataccountNo+\",\"+broker_name+\")\");\r\n\tint k=DbConnect.getStatement().executeUpdate(\"insert into account values(\"+bankaccountNo+\",\"+balance+\")\");\r\n\treturn j;\r\n}", "title": "" }, { "docid": "fbf4a8de2c7525b2badca0ead79a3393", "score": "0.45444545", "text": "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getFundsList();", "title": "" }, { "docid": "fbf4a8de2c7525b2badca0ead79a3393", "score": "0.45444545", "text": "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getFundsList();", "title": "" }, { "docid": "76096b599fc58d0d1011e38af5b19d29", "score": "0.45442155", "text": "public RecordSet obtenerResumen(DTOResumen dtoe) throws MareException{\n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Entrada\");\n \n RecordSet rs = new RecordSet();\n StringBuffer query = new StringBuffer();\n BelcorpService bs;\n try\n { bs = BelcorpService.getInstance();\n }\n catch(MareMiiServiceNotFoundException ex)\n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID,CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" gen.VAL_I18N AS CANAL, \");\n query.append(\" sma.DES_MARC AS MARCA, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" gen2.VAL_I18N AS REGION, \");\n query.append(\" gen3.VAL_I18N AS ZONA, \");\n query.append(\" secc.DES_SECCI AS SECCION, \");\n query.append(\" gen5.VAL_I18N AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" v_gen_i18n_sicc gen2, \");\n query.append(\" v_gen_i18n_sicc gen3, \");\n query.append(\" v_gen_i18n_sicc gen5, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" own_mare.principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" own_mare.users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.oid_usua_etap_cobr_deta \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \");\n query.append(\" AND gen2.val_oid(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen2.attr_enti(+) = 'ZON_REGIO' \");\n query.append(\" AND gen2.attr_num_atri(+) = 1 \");\n query.append(\" AND gen2.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen3.val_oid(+) = cdetal.zzon_oid_zona \");\n query.append(\" AND gen3.attr_enti(+) = 'ZON_ZONA' \");\n query.append(\" AND gen3.attr_num_atri(+) = 1 \");\n query.append(\" AND gen3.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen5.val_oid(+) = cdetal.terr_oid_terr \");\n query.append(\" AND gen5.attr_enti(+) = 'ZON_TERRI' \");\n query.append(\" AND gen5.attr_num_atri(+) = 1 \");\n query.append(\" AND gen5.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = ccabe.usco_oid_usua_cobr \");\n */\n \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID, \");\n query.append(\" p.name AS USUARIO, \");\n */\n //Se le agega \"p.IDPRINCIPAL,\" segun BELC300017927 \n //query.append(\" SELECT distinct p.name AS USUARIO, \"); \n query.append(\" SELECT distinct p.IDPRINCIPAL, p.name AS USUARIO, \");\n query.append(\" CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" sma.DES_MARC AS MARCA, \");\n query.append(\" gen.VAL_I18N AS CANAL, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" regio.DES_REGI AS REGION, \");\n query.append(\" zona.DES_ZONA AS ZONA, \"); \n \t query.append(\" secc.DES_SECCI AS SECCION, \"); \n query.append(\" terri.COD_TERR AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" SEG_CANAL canal, \");\n query.append(\" ZON_TERRI terri, \");\n query.append(\" ZON_ZONA zona, \");\n query.append(\" ZON_REGIO regio, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.UECC_OID_USUA_ETAP_COBR \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '1' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \t\t \");\n query.append(\" AND terri.OID_TERR = cdetal.terr_oid_terr\t\t \");\n query.append(\" AND zona.OID_ZONA = cdetal.zzon_oid_zona\t\t \");\n query.append(\" AND regio.OID_REGI = cdetal.ZORG_OID_REGI\t\t \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = usucob.USER_OID_USUA_COBR \");\n \n /* Validaciones */\n if( dtoe.getOidMarca()!= null ){\n query.append(\" AND subvta.MARC_OID_MARC = \" + dtoe.getOidMarca() );\n }\n if( dtoe.getOidCanal() != null){\n query.append(\" AND subvta.CANA_OID_CANA = \" + dtoe.getOidCanal() );\n }\n if( dtoe.getOidSGV() != null ){\n query.append(\" AND subvta.OID_SUBG_VENT = \" + dtoe.getOidSGV() );\n }\n if( dtoe.getOidRegion() != null ){\n query.append(\" AND cdetal.ZORG_OID_REGI = \" + dtoe.getOidRegion() ); \n }\n if( dtoe.getOidZona() != null ){\n query.append(\" AND cdetal.ZZON_OID_ZONA = \" + dtoe.getOidZona() ); \n }\n if( dtoe.getOidSeccion() != null ){\n query.append(\" AND cdetal.ZSCC_OID_SECC = \" + dtoe.getOidSeccion() );\n }\n if( dtoe.getOidTerritorio() != null ){\n query.append(\" AND cdetal.TERR_OID_TERR = \" + dtoe.getOidTerritorio() );\n }\n UtilidadesLog.debug(\"query \" + query.toString() );\n try \n { rs = bs.dbService.executeStaticQuery(query.toString());\n }\n catch (Exception ex) \n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n }\t\n \n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Salida\");\n \n return rs; \n }", "title": "" }, { "docid": "ec2075aa16451c1b6ffe64c3a4570fc0", "score": "0.4542995", "text": "public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}", "title": "" } ]
1dd66b8c3fdf2b58d77d2535b15f4a4f
Used to see if the frog has collided with an object.
[ { "docid": "79f66428f0e9105017b4160dea4ac5cd", "score": "0.0", "text": "public boolean intersectsWith(Point[] points)\r\n\t{\r\n\t\treturn this.hitbox.intersectsWith(points);\r\n\t}", "title": "" } ]
[ { "docid": "527fd4dc618cf586e8c53b84ec4d6813", "score": "0.7291218", "text": "public boolean hasCollided()\n\t{\n\t\tfloat threshold = object1.getSize() + object2.getSize();\n\t\treturn getLateralDistance() < threshold && getVerticalDistance() < threshold;\n\t}", "title": "" }, { "docid": "864ca75f25aa5acfc275bb199e671d85", "score": "0.701872", "text": "public boolean isCollided(gameObject b){\n return Rect.intersects(getRect(),b.getRect());\n }", "title": "" }, { "docid": "2b3b10de156383ab7ab6c3ada8a9629f", "score": "0.6555019", "text": "public boolean collisionChecker() {\n GraphicsObject potentialObject = getCanvas().getElementAt(getPosition().subtract(Point.UNIT_Y));\n if (potentialObject != null && potentialObject.getY() > getCanvas().getWidth() * 0.14) {\n getCanvas().remove(potentialObject);\n getCanvas().remove(this);\n laserList.remove(this);\n return true;\n }\n else return false;\n }", "title": "" }, { "docid": "34cb27b50c0007504465e49a665b861f", "score": "0.6499609", "text": "public boolean collisionHuh() {\n if(Jay.jay_edge() == theWalls.currentWalls.get(0).oneWall.get(0).x\n && Jay.jay_y == theWalls.currentWalls.get(0).y_coord_hole) {\n score++;\n return false;\n } else if(Jay.jay_edge() == theWalls.currentWalls.get(0).oneWall.get(0).x){\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "4a7309add612f1e29f67ee73fc278951", "score": "0.64073384", "text": "static boolean isColiding(CustomObject o1, Shape3D o2){\n return o1.getBox().intersects(o1.getBox().sceneToLocal(o2.localToScene(o2.getBoundsInLocal())));\n }", "title": "" }, { "docid": "2faf9bd362d88c0ca2f7a1ce89330ee3", "score": "0.63956904", "text": "boolean checkCollision () {\n CollisionObjectWrapper co0 = new CollisionObjectWrapper(ballObject);\n CollisionObjectWrapper co1 = new CollisionObjectWrapper(groundObject);\n CollisionObjectWrapper co2 = new CollisionObjectWrapper(wallObject);\n\n btCollisionAlgorithmConstructionInfo ci = new btCollisionAlgorithmConstructionInfo();\n // ci.setDispatcher1(dispatcher);\n btCollisionAlgorithm algorithmBallGround = new btSphereBoxCollisionAlgorithm(null, ci, co0.wrapper, co1.wrapper, false);\n btCollisionAlgorithm algorithmBallWall = new btSphereBoxCollisionAlgorithm(null, ci, co0.wrapper, co2.wrapper, false);\n\n btDispatcherInfo info = new btDispatcherInfo();\n btManifoldResult resultBallGround = new btManifoldResult(co0.wrapper, co1.wrapper);\n btManifoldResult resultBallWall = new btManifoldResult(co0.wrapper, co2.wrapper);\n\n algorithmBallGround.processCollision(co0.wrapper, co1.wrapper, info, resultBallWall);\n\n boolean r = resultBallWall.getPersistentManifold().getNumContacts() > 0;\n\n resultBallWall.dispose();\n info.dispose();\n algorithmBallGround.dispose();\n ci.dispose();\n co1.dispose();\n co0.dispose();\n\n return r;\n }", "title": "" }, { "docid": "b02cb0fb15b65672f19e2fb1524f9764", "score": "0.62714195", "text": "private boolean isPlayerCollidingWithObstacle ()\n {\n for(Obstacle obstacle: obstacles)\n {\n if(obstacle.isNotHit() && obstacle.isPlayerColliding(player)) //basically isNotHit() is giving each obstacle a property of it already\n //hitting the player. so if isNotHit() true, then it will continue to collide\n {\n hit.play();\n return true;\n\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "4ea18061822445cd5631b10c83effa72", "score": "0.6240306", "text": "public boolean hasGotContent(Content obj){\n \tfor(int y = 0; y < height; y++)\n \t\tfor(int x = 0; x < width; x++)\n \t\t\tif(board[y][x].val() == obj.val())\n \t\t\t\treturn true;\n \treturn false;\n }", "title": "" }, { "docid": "a81f0f3bdb66097e84c73b8e390751b2", "score": "0.6238158", "text": "public boolean isColliding(CollisionBox c);", "title": "" }, { "docid": "66ab3bf23a03b766ddfd952b1e31368c", "score": "0.6200706", "text": "boolean isCollidingWith(HitBox box);", "title": "" }, { "docid": "eb06f112cf8b1a4272c62490fc88d82e", "score": "0.6194527", "text": "public boolean percolates() {\n\t\tint top = size * size;\n\t\tint bottom = top + 1;\n\t\tif (tracker.connected(top, bottom)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "d250092d244f48109536e8b64de632a8", "score": "0.6157216", "text": "public boolean CheckCollision() {\n\t\tif(CheckSelfCollision()) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4b402003986481801152571b3428d8b0", "score": "0.6154023", "text": "private boolean hasCommittedFoul(GameData activeGame, TurnFinishEvent event) {\n Color turnColor = activeGame.getTeamColour(event.getTurn().getOpposition());\n\n if(event.hasPottedPredicate(e -> Objects.equals(turnColor, e.getColour()))) {\n return true;\n }\n\n if(activeGame.isOnBlackBall(event.getTurn())) {\n return false;\n }\n\n return !Objects.equals(event.getFirstCollision().getColour(), activeGame.getTeamColour(event.getTurn()));\n }", "title": "" }, { "docid": "204bee59005008ef1e13288059de501e", "score": "0.6149997", "text": "public boolean isColliding(CollisionPoint c);", "title": "" }, { "docid": "4048b6c69ee27d809db841466205cb85", "score": "0.61486983", "text": "public boolean percolates() {\n // check if the virtual top and virtual bottoms are connected\n return wquf.find(virtualTop) == wquf.find(virtualBottom);\n }", "title": "" }, { "docid": "7c2e64bc4c8a5413c9411a6d04ec3df0", "score": "0.61372405", "text": "public boolean Collide(GameObject gObj)\t{\n\t\t//Siguiendo el algoritmo de Collide:\n\t\treturn (((gObj.x <= x && x <= (gObj.x + gObj.width)) || (x <= gObj.x && gObj.x <= (x + width))) &&\n\t\t\t\t((gObj.y <= y && y <= (gObj.y + gObj.height)) || (y <= gObj.y && gObj.y <= (y + height)))) \n\t\t\t\t&& gObj.collides && collides;\n\t}", "title": "" }, { "docid": "4c241d2fb21a1db9f6130e3f2c09d60f", "score": "0.61350816", "text": "public boolean percolates() {\n return _connection.connected(_top, _end);\n }", "title": "" }, { "docid": "c178893a68c8455d00c8a730c6786209", "score": "0.60941833", "text": "public void checkCollisions() {\r\n\r\n\t\tArrayList<Actor> myl = getActors();\r\n\r\n\t\twhile(myl.size() > 0){\r\n\t\t\tActor a = myl.get(0);\r\n\t\t\tfor(Wall w : edges){\r\n\r\n\t\t\t\tif(a.collidesWith(w)){\r\n\r\n\t\t\t\t\ta.CollideItWith(w);\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\r\n\t\t\tfor(Actor b : myl){\r\n\t\t\t\tif(!(a.equalsLoc(b))){\r\n\t\t\t\t\tif(a.collidesWith(b)){\r\n\t\t\t\t\t\tPrintCollisionSucesss(a, b);\r\n\t\t\t\t\t\ta.CollideItWith(b);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmyl.remove(0);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "043db3a9a00d53c049985568fcf6b267", "score": "0.6093902", "text": "public boolean gameConclusion(){\n\t\treturn isGameOver();\n\t}", "title": "" }, { "docid": "2c259f85ad6c37467512391fa57b4636", "score": "0.6090468", "text": "public boolean collision(GameObject object) {\n rectangle = new Rectangle(this.x, this.y, this.width, this.height);\n Rectangle rectangle1 = new Rectangle (object.getX(), object.getY(), object.getWidth(), object.getHeight());\n if(this.rectangle.intersects(rectangle1) && (!isDead)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "ae1e9ac6f54f0b301a55dbbbcc0b5ac7", "score": "0.6087925", "text": "public boolean isColliding(CollisionCircle c);", "title": "" }, { "docid": "8994c67dbda44a67474f38536b69482d", "score": "0.6086239", "text": "public boolean isHeadCollidingWithBody() {\n\t\tfor (int i = 1; i < snake.size(); i++) {\n\t\t\tif (snake.get(i).getLocation().equals(head.getLocation())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "826e6f21ad66c0aed317ce3c9b123cba", "score": "0.606528", "text": "public boolean willCollideWithBall(Ball b) {\n Ball b1 = futureBall(this);\n Ball b2 = futureBall(b);\n return twoBallCollide(this, b) && twoBallCollide(b1, b2);\n }", "title": "" }, { "docid": "b5aa523e9342b171923d760ceb7f54c7", "score": "0.6060493", "text": "public boolean canBeCollidedWith()\n {\n return super.canBeCollidedWith();\n }", "title": "" }, { "docid": "6a32125a8f244fbe0f4afbd81cc2c809", "score": "0.6059319", "text": "public boolean isGameOver (Car redCar) {\n\t\treturn redCar.isAt(new Dimension (2, 5));\n\t}", "title": "" }, { "docid": "b1fa44202299ab5101ac4772fbfb59b3", "score": "0.6051959", "text": "public boolean isGameOver() {\n \t\treturn this.remainingPairs == 0;\n \t}", "title": "" }, { "docid": "bbab9947935bbf91115cebbaf42fd336", "score": "0.60507786", "text": "public boolean estacerrado(Object obj) {\n JInternalFrame[] activos = escritorio.getAllFrames();\n boolean cerrado = true;\n int i = 0;\n while (i < activos.length && cerrado) {\n if (activos[i] == obj) {\n cerrado = false;\n }\n i++;\n }\n return cerrado;\n }", "title": "" }, { "docid": "1af1c11822307944ede6a71f1de0b896", "score": "0.6030809", "text": "protected void checkCollisions() {\n // collisions with objects\n ArrayList<GameObject> gebotst = getCollidedObjects();\n if (gebotst != null) {\n\t\t\tfor (GameObject g : gebotst) {\n // colliding with traps\n\t\t\t\tif (g instanceof Trap || g instanceof MovableTrap)\n\t\t\t\t{\n myroom.soundControl.gameSound.stopSound(6);\n myroom.soundControl.gameSound.playSound(6, 0);\n respawn();\n\t\t\t\t\tLog.d(\"GAME\", \"YOU FALL ON A TRAP WITH YOUR BUTT.\");\n\t\t\t\t}\n // colliding with Portals\n else if (g instanceof Portal) {\n\n //play sound\n myroom.soundControl.gameSound.stopSound(8);\n myroom.soundControl.gameSound.playSound(8, 0);\n\n if (((Portal) g).getIsGoal()){\n\n //level getLevelNumber() is done\n myroom.goToRoom(0);\n } else {\n myroom.goToRoom(((Portal) g).getLevelNumber());\n }\n deleteThisGameObject();\n }\n\t\t\t}\n }\n }", "title": "" }, { "docid": "baa70cbda2fa41916359aa2eed3a1803", "score": "0.6028498", "text": "boolean isGameOver() {\r\n // Collision at the top of the grid\r\n if (checkCollision(shapeStart.x, shapeStart.y)) {\r\n run = false;\r\n start();\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "16efa80335f2dc7bd8b5dfcb59dece0a", "score": "0.6024739", "text": "public boolean hasCollision(Board board);", "title": "" }, { "docid": "b43f3e6fe7e35a86ee9d40effe5adacb", "score": "0.60243434", "text": "public boolean percolates() {\n if (unFind.connected(top, bottom)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "b2360759cf2bb34198684619a6cc7d4e", "score": "0.60010713", "text": "public boolean hasFolded() {\n\t\treturn hasFolded;\n\t}", "title": "" }, { "docid": "4e02d97a4b841df967f4d1d8db77ca8c", "score": "0.59932774", "text": "private boolean checkCollision(){\n \n return snake.checkCollision();\n \n }", "title": "" }, { "docid": "57fe38cd68e6befd6aaaea17d488e163", "score": "0.5980401", "text": "public boolean isGameOver() {\n\t\treturn (getMazub() == null || hasReachedEnd());\n\t}", "title": "" }, { "docid": "5bafe7247c7a8ab6f0a72d5cef8f428e", "score": "0.5975551", "text": "public boolean testCollision() {\r\n\t\t\tNode current = first;\r\n\t\t\tboolean test = false;\r\n\t\t\tint counter = 0;\r\n\t\t\twhile(current != null) {\r\n\t\t\t\tif(counter > 0)\r\n\t\t\t\t\ttest = true;\r\n\t\t\t\tcurrent = current.nextNode;\r\n\t\t\t\tcounter++;\t\r\n\t\t\t}\r\n\t\t\treturn test;\r\n\t\t}", "title": "" }, { "docid": "46a0249a072068f29d0eb14687e59de4", "score": "0.5969111", "text": "public boolean CheckCollision() {\n\t\treturn (ccw(linestartx, linestarty, linestartx2, linestarty2,\n\t\t\t\tlineendx2, lineendy2) != ccw(lineendx, lineendy, linestartx2,\n\t\t\t\tlinestarty2, lineendx2, lineendy2))\n\t\t\t\t&& (ccw(linestartx, linestarty, lineendx, lineendy,\n\t\t\t\t\t\tlinestartx2, linestarty2) != ccw(linestartx,\n\t\t\t\t\t\tlinestarty, lineendx, lineendy, lineendx2, lineendy2));\n\t}", "title": "" }, { "docid": "c9529cabbf873a5d6a792ef99e7d3364", "score": "0.59627265", "text": "public boolean percolates() {\n return backwashQU.connected(topIndex, btmIndex);\n }", "title": "" }, { "docid": "15437655ef85d83533bc39a665e03d10", "score": "0.5955607", "text": "private boolean detectCollisions(GameState gs, ArrayList<GameObject> objects,\n SoundEngine se, ParticleSystem ps){\n\n boolean playerHit = false;\n for(GameObject go1 : objects){\n if(go1.checkActive()){\n // The ist object is active\n // so worth checking\n for(GameObject go2 : objects){\n if(go2.checkActive()){\n // The 2nd object is active\n // so worth checking\n if(RectF.intersects(go1.getTransform().getCollider(),\n go2.getTransform().getCollider())){\n // Switch goes here\n // There has been a collision\n // - but does it matter\n switch(go1.getTag() + \" with \" +go2.getTag()){\n case \"Player with Alien Laser\":\n playerHit = true;\n gs.loseLife(se);\n break;\n case \"Player with Alien\":\n playerHit = true;\n gs.loseLife(se);\n break;\n case \"Player Laser with Alien\":\n gs.increaseScore();\n // Respawn the alien\n ps.emitParticles(new PointF(go2.getTransform().getLocation().x,\n go2.getTransform().getLocation().y));\n go2.setInactive();\n go2.spawn(objects.get(Level.PLAYER_INDEX).getTransform());\n go1.setInactive();\n se.playAlienExplode();\n break;\n default:\n break;\n }\n }\n }\n }\n }\n }\n return playerHit;\n }", "title": "" }, { "docid": "6e99e67818cdd4ef58af777c0b471470", "score": "0.5953672", "text": "@Override\n public boolean isOver()\n {\n // stop when all the pellets are gone or out of lives\n return (false);\n }", "title": "" }, { "docid": "3a4731b369768fb89981517881f5817b", "score": "0.5952693", "text": "public boolean percolates() {\n return connections.connected(topPointer, bottomPointer);\n }", "title": "" }, { "docid": "72bf5acbf4adfefd424c48c98698125b", "score": "0.59424794", "text": "public boolean currentPieceCollision() {\n\t\treturn !this.board.isMovementPossible(getCurrentPiece());\n\t}", "title": "" }, { "docid": "7a84a5cb4b3cbc5a4a5ca1ac47cac74c", "score": "0.5939646", "text": "public boolean collide(Objects objects){\n\t\tfor(GameObject obj:objects.getObjects()){\n\t\t\t// TODO : optimiser avec un calcul de distance rapide ici\n\t\t\tif(this!=obj){\n\t\t\t\tfor(Vector2 tile:this.tileList){\n\t\t\t\t\tfor(Vector2 tile2:obj.getTiles()){\n\t\t\t\t\t\tif(tile.x==tile2.x&&tile.y==tile2.y) return 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}", "title": "" }, { "docid": "fea6e849869e542ea379ad230bd5bb7e", "score": "0.59275186", "text": "public boolean CheckForGameOver()\n {\n for (int x = 0; x < fieldWidth; x++) {\n // the visible field starts at y = 2\n if(field[2][x] > 0)\n {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "c0fe2eb7f1e32839683bfc082b91530e", "score": "0.59111387", "text": "public Boolean isColliding(GameObject other){\r\n return getView().getBoundsInParent().intersects(other.getView().getBoundsInParent());\r\n\r\n }", "title": "" }, { "docid": "36f15729dbfa1c7daeb1b0a452f08760", "score": "0.5910743", "text": "public boolean isGameOver() {\r\n\t\tif (this.checkCol(state, lastPlay) || this.checkRow(state, lastPlay) || this.checkDiagonal(state, lastPlay) || this.isDraw()){\r\n\t\t\treturn true;\r\n\t\t} else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "895d3795a9a3972da26195ba19ba2d49", "score": "0.590789", "text": "public boolean percolates() {\n return quickUnionUF.connected(virtualTop, virtualBottom);\n }", "title": "" }, { "docid": "b86eb79494204553bac57e41e9db385c", "score": "0.5907882", "text": "private void checkForCollisions ()\n {\n for (Participant p1 : participants)\n {\n if (!p1.isExpired())\n {\n Iterator<Participant> iter = participants.descendingIterator();\n while (iter.hasNext())\n {\n Participant p2 = iter.next();\n \n if (p1 == p2)\n break;\n if (p1 instanceof AlienShip && p2 instanceof AlienBullet)\n {\n break;\n }\n \n if (!p2.isExpired() && p1.overlaps(p2))\n {\n if (p1 instanceof Asteroid && p2 instanceof Asteroid && (this.difficulty != 1 ))\n {\n if (p1.canCollides(p2) && p2.canCollides(p1))\n {\n collide(p1,p2);\n new collisionTimer(300,this,p1,p2);\n }\n break;\n \n }\n if ((p1 instanceof Ship || p2 instanceof Ship ) && (controller.cantLoseLives))\n {\n break;\n }\n p1.collidedWith(p2);\n p2.collidedWith(p1);\n }\n if (p1.isExpired())\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "1a9ec84791cebb089fd7e74eef86a76a", "score": "0.58887625", "text": "public boolean collisedP2Bot(){\r\n\t\tif(ballY > p2Y + 50){ \r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a896e6a33530b6781e97985271822282", "score": "0.586743", "text": "public boolean percolates() { return uf.connected(vTop, vBottom); }", "title": "" }, { "docid": "757a3e71a036f532a956fee1842540c4", "score": "0.5838526", "text": "private boolean hasMoved(PerceptionObject currentPerception) {\r\n\t\tif (lastPerception != null && lastPerception.getCell() != null && currentPerception != null\r\n\t\t\t\t&& currentPerception.getCell() != null) {\r\n\t\t\treturn lastPerception.getCell().getRow() != currentPerception.getCell().getRow()\r\n\t\t\t\t\t|| lastPerception.getCell().getCol() != currentPerception.getCell().getCol();\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "f2801074e19e8c22b51a257996d88b73", "score": "0.58313435", "text": "public boolean thingCollision(Thing b) {\n double dx = b.x - x;\n double dy = b.y - y;\n double dr = b.r + r;\n return (dx * dx + dy * dy <= dr * dr);\n }", "title": "" }, { "docid": "49893ad7a3448b8ea1e06c76d89fd898", "score": "0.5821875", "text": "public boolean hasWon() {\n\t\tif(cleared.size() == width * height - bombCount) {\n\t\t\treturn true;\n\t\t} return false;\n\t}", "title": "" }, { "docid": "d78f2512c716e3d4aa73c789201d52d6", "score": "0.58051854", "text": "public boolean hasLanded() {\n return !isAttached() || !canMoveTo(xPos, yPos + 1, orientation);\n }", "title": "" }, { "docid": "e555b7cd5834a4616e58c85fe5a21531", "score": "0.58036065", "text": "public boolean checkCollision(){\n for (int i=length;i>0;i--){\n if (i>4 && x[0]==x[i] && y[0]==y[i]){\n return true;\n }\n//\n }\n return false;\n }", "title": "" }, { "docid": "a1acd990e9ae6203f45de9f4f0c4d281", "score": "0.5801008", "text": "private void checkCollisons(){\n\t\tfor(Entity e : EntityManager.getInstance() ){\r\n\t\t\t//don't collide with self\r\n\t\t\tif(e != this){\r\n\t\t\t\tif(this.isCollided(e)){\r\n\t\t\t\t\tif(e instanceof Agent){\r\n\t\t\t\t\t\tloc.set(startLoc);\r\n\t\t\t\t\t\te.resetToStart();\r\n\t\t\t\t\t\tnumDeaths++;\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}", "title": "" }, { "docid": "4e679e8334ee939be9ae0ffc651cfeca", "score": "0.57980627", "text": "public boolean percolates() {\n return uf.connected(top, bottom);\n }", "title": "" }, { "docid": "d191599e645839db89d08d5da1ab8e11", "score": "0.5784902", "text": "private boolean hasCollisions(int[][] path) {\n\t\tif(path == null)\n\t\t\treturn false;\n\t\tfor(int x = 0; x < path.length; x++) {\n\t\t\tSquare currSquare = squares[path[x][0]][path[x][1]];\n\t\t\tif(currSquare.hasPiece())\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "57c4e1a4d2dd9c659bf0d5bf85a30241", "score": "0.5774624", "text": "private void checkCollision()\n {\n for (int i=0; i<gameScreen.getGameObjects().size(); i++)\n {\n GameObject gameObject = gameScreen.getGameObjects().get(i);\n if (gameObject.getType() == Type.Asteroid)\n {\n if (gameObject.getBounds().intersect(getBounds()))\n {\n Log.i(\"MOOSE\", \"checkCollision: HIT\");\n gameObject.setDead(true); // kill asteroid\n setDead(true); // kill me\n soundList.get(SoundType.Explode.ordinal()).play(1.0f);\n gameScreen.setScore(gameScreen.getScore() + 1);\n }\n }\n }\n }", "title": "" }, { "docid": "1d2a2710d9432436b1ae5b3b3d603ff8", "score": "0.5764859", "text": "public boolean isOver() {\n \t\t// TODO Distinguish between world domination/missions\n \t\treturn players.size() == 1;\n \t}", "title": "" }, { "docid": "c52aac54971696bacff9ceb021f65388", "score": "0.5757062", "text": "public boolean isOver() {\r\n\t\treturn (!haveFuel() || isSpaceship() || quit);\r\n\t}", "title": "" }, { "docid": "09a39a7de0bce641f63955a9f2777e35", "score": "0.57476944", "text": "public boolean Occupied(){\r\n if(piece != null)\r\n return true;\r\n else\r\n return false;\r\n }", "title": "" }, { "docid": "903233230c1cbedb36adb17005c565e4", "score": "0.5739827", "text": "public boolean collide(String direc)\r\n {\r\n\r\n for (RectCell it : colMaze.getRectangles())\r\n {\r\n\r\n Rectangle r1 = it.eastWall;\r\n Rectangle r2 = it.northWall;\r\n Rectangle r3 = it.southWall;\r\n Rectangle r4 = it.westWall;\r\n Rectangle Point = it.getCellBox();\r\n Rectangle pos;\r\n\r\n if (direc.equals(\"up\"))\r\n {\r\n pos = new Rectangle(this.xPos, this.yPos - movementSpeed, 20, 20);\r\n } else if (direc.equals(\"down\"))\r\n {\r\n pos = new Rectangle(this.xPos, this.yPos + movementSpeed, 20, 20);\r\n } else if (direc.equals(\"left\"))\r\n {\r\n pos = new Rectangle(this.xPos - movementSpeed, this.yPos, 20, 20);\r\n } else\r\n {\r\n pos = new Rectangle(this.xPos + movementSpeed, this.yPos, 20, 20);\r\n }\r\n\r\n if ((r1 != null) && (r1.intersects(pos)))\r\n {\r\n\r\n return true;\r\n }\r\n if ((r2 != null) && (r2.intersects(pos)))\r\n {\r\n return true;\r\n }\r\n if ((r3 != null) && (r3.intersects(pos)))\r\n {\r\n return true;\r\n }\r\n if ((r4 != null) && (r4.intersects(pos)))\r\n {\r\n return true;\r\n }\r\n //Check if finish point/block\r\n if ((Point != null) && (Point.intersects(pos) && (it.isEndPoint())))\r\n {\r\n GamePanel.nextLevel = true;\r\n }\r\n //Check if time point/block\r\n if ((Point != null) && (Point.intersects(pos) && (it.isTimePoint())))\r\n {\r\n GamePanel.incrementTime = true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "title": "" }, { "docid": "7fbd11b4a858657e68d0d8624048b837", "score": "0.5736287", "text": "private boolean isCurrentlyInside(Class object) {\n return !currentlyInside.isEmpty() && currentlyInside.peek() == object;\n }", "title": "" }, { "docid": "b9db58f90b54381476d85dd9c7d8468f", "score": "0.5731714", "text": "public boolean checkForObstruction() {\r\n \t\t Orientation currentOrientation = Orientation.calculateOrientation(\r\n \t\t\t\t this.getCurrentPositionAbsoluteX(),\r\n \t\t\t\t this.getCurrentPositionAbsoluteY(), this.getAlpha());\r\n \r\n //\t\t //afstand robot tot edge berekenen om te zien of hij er dicht genoeg bij staat als de \r\n //\t\t //echte robot om de muur als echt te kunnen detecteren\r\n //\t\t Point2D point = ExtMath.calculateWallPoint(currentOrientation,\r\n //\t\t\t\t getCurrentPositionAbsoluteX(), getCurrentPositionAbsoluteY());\r\n //\r\n //\t\t double XOther = point.getX()\r\n //\t\t + currentOrientation.getOtherPointLine()[0];\r\n //\t\t double YOther = point.getY()\r\n //\t\t + currentOrientation.getOtherPointLine()[1];\r\n //\r\n //\t\t Double distance = Line2D.ptSegDist(point.getX(), point.getY(), XOther,\r\n //\t\t\t\t YOther, getCurrentPositionAbsoluteX(),\r\n //\t\t\t\t getCurrentPositionAbsoluteY());\r\n \t\t \r\n \t\t Double distance = calculateDistanceToWall();\r\n \t\t \r\n \t\t if (distance > detectionDistanceUltrasonicSensorRobot) {\r\n \t\t\t return false;\r\n \t\t }\r\n \r\n \t\t if (this.getMapGraph().getObstruction(currentOrientation) == Obstruction.WALL) {\r\n \t\t\t SilverSurferGUI.getInformationBuffer().addUltraSensorInfo(\r\n \t\t\t\t\t distance.intValue());\r\n \t\t\t return true;\r\n \t\t }\r\n \r\n \t\t return false;\r\n \t }", "title": "" }, { "docid": "35238bf8566e0ea44cbd887cd7008577", "score": "0.57253003", "text": "protected void collisionOccurs(double nextX,double nextY){\n calculateCorners(nextX,nextY);\n /** Corners of the object*/\n int entityRight = rightUpX;\n int entityLeft = leftUpX;\n int entityTop = rightUpY;\n int entityDown = rightDownY;\n\n /** Tiles where we want to go*/\n int leftTileIndex = entityLeft >>Game.TILE_BYTE_SIZE;\n int rightTileIndex = entityRight >> Game.TILE_BYTE_SIZE;\n int downTileIndex = entityDown >> Game.TILE_BYTE_SIZE;\n int topTileIndex = entityTop >> Game.TILE_BYTE_SIZE;\n\n topLeft = map.getTile(leftTileIndex,topTileIndex).getType() == Tile.BLOCKED || map.getTile(leftTileIndex,topTileIndex).getType() == Tile.VOID;\n topRight = map.getTile(rightTileIndex,topTileIndex).getType() == Tile.BLOCKED || map.getTile(rightTileIndex,topTileIndex).getType() == Tile.BLOCKED;\n bottomLeft = map.getTile(leftTileIndex,downTileIndex).getType() == Tile.BLOCKED || map.getTile(leftTileIndex,downTileIndex).getType() == Tile.BLOCKED;\n bottomRight = map.getTile(rightTileIndex,downTileIndex).getType() == Tile.BLOCKED || map.getTile(rightTileIndex,downTileIndex).getType() == Tile.BLOCKED;\n }", "title": "" }, { "docid": "03f918e106ffccd53afebcfbb4690b1f", "score": "0.572448", "text": "@Override\n public boolean isOver() {\n if (availableSpace().size() != 0) {\n return false;\n } else {\n for (int i = 0; i < numCols; i++) {\n for (int j = 0; j < numRows; j++) {\n if (hasMergableNeighbour(i, j)) {\n return false;\n }\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "273aafb5bd7087f239c7f73b764a01c6", "score": "0.571693", "text": "public boolean isCharged()\n {\n\treturn this.aDestination != null;\n }", "title": "" }, { "docid": "3c0982590e803b27490ca85234c1c29a", "score": "0.5714462", "text": "public boolean isOver()\n {\n return isAFullLineOrSquareComplete() || isBoardFilled();\n }", "title": "" }, { "docid": "ac07daf21c4549e37c2d3aebbc77658c", "score": "0.57072234", "text": "public static boolean isColiding(GameObject a, GameObject b){\t\t\n\t\t\n\t\tfloat[][] retA = a.get2DSquare();\n\t\tfloat[][] retB = b.get2DSquare();\n\t\t\n\t\tif( retA == null || retB == null)\n\t\t\treturn false;\n\t\t\n\t\tfor( int i = 0; i < 4; i++){\n\t\t\tif( isInside(retA[i], retB) )\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\t\n\t}", "title": "" }, { "docid": "49dc347f0ac39e34c34fa8e73ef45e7e", "score": "0.57046497", "text": "public boolean percolates() {\n\t\treturn uf.find(0) == uf.find(end);\n\t}", "title": "" }, { "docid": "1cae573382b2372414bc538735c9ce8f", "score": "0.5701297", "text": "public boolean checkCollision() {\r\n\t\tArrayList mobs = si.mh.getMob();\r\n\t\t\r\n\t\tfor (int x = 0; x < mobs.size(); x++) {\r\n\t\t\tfor (int y = 0; y < bullets.size(); y ++) {\r\n\t\t\t\t\r\n\t\t\t\tBullet b = (Bullet) bullets.get(y);\r\n\t\t\t\tMob m = (Mob) mobs.get(x);\r\n\t\t\t\tRectangle r = b.getBounds();\r\n\t\t\t\tRectangle r2 = m.getBounds();\r\n\t\t\t\t\r\n\t\t\t\tif (r.intersects(r2) && m.isVisible()) {\r\n\t\t\t\t\tSystem.out.println(\"Collision!! Number \" + x);\r\n\t\t\t\t\tm.setVisible(false);\r\n\t\t\t\t\t//updateMobSpeed(m, mobs.size());\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\treturn false;\r\n\t}", "title": "" }, { "docid": "4eefd8e35c85af2f38a65d18295412ec", "score": "0.5700873", "text": "public boolean isHeads()\n {\n if (isLocked())\n throw new IllegalAccessError(\"can't determine if coin is facing heads - Coin is locked\");\n else\n return face == HEADS;\n }", "title": "" }, { "docid": "d6ceafa1d012c38a7b9d22cab755bd88", "score": "0.5699023", "text": "public boolean percolates() {\n return connectedBottom[wquf.find(0)];\n }", "title": "" }, { "docid": "b77a7e57b6ec7ebcd32ca23bcda3c4c8", "score": "0.56953573", "text": "boolean hasObject();", "title": "" }, { "docid": "ae45ce16366c3ad4f789c4772f5d5ba5", "score": "0.56832445", "text": "public boolean percolates() {\n return backwash.connected(0, sites.length-1);\n }", "title": "" }, { "docid": "159e3d2dc3188e4a7f49e7e4df0a6944", "score": "0.56763476", "text": "private boolean somethingNotConnected(){\n\t\tMotivation m;\n\t\tfor(int i=0; i<this.space.size(); i++){\n\t\t\tm = this.space.getMotivation(i);\n\t\t\tif(! this.connections.isConnected(m))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "281d5d0313f58d308a12085fd3c0a236", "score": "0.5673296", "text": "boolean hasYouth();", "title": "" }, { "docid": "69ec8351aa9cf34003e9e1098cfb21b6", "score": "0.56729794", "text": "private static boolean checkCollision(Particle m1, Particle m2) {\n\t\tDrawingPanel panel = frame.getDrawingPanel();\n\t\tint p1cX = panel.xToPix(m1.getX()); //get pixel positions \n\t\tint p1cY = panel.yToPix(m1.getY());\n\t\tint p2cX = panel.xToPix(m2.getX());\n\t\tint p2cY = panel.yToPix(m2.getY());\n\t\tdouble dist = dist(p1cX, p1cY, p2cX, p2cY);\n\n\t\tif (m1.radius + m2.radius < dist + COLLISION_RAD)\n\t\t\treturn false;\n\t\telse if (m1.bump == null || m2.bump == null) // their collision has not occurred\n\t\t\treturn true;\n\t\telse if (m2.bump.equals(m1) || m1.bump.equals(m2))\n\t\t\treturn false; //just happened instant ago\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "19cf995e9a55b91c765c5c9102b39b0e", "score": "0.56626153", "text": "private boolean isGameOver(Rack arack)\r\n\t{\r\n\t\tfor (int x=0; x<10; x++)\r\n\t\t\t{\r\n\t\t\t\tfor (int y=0; y<10; y++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( this.arack[x][y]!= -1 )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "42b96c049e43df5ee6a243cac8f9fa9e", "score": "0.5648067", "text": "private boolean collisionOccured(CollidableGameObject collidable, \n Point np, Rtree<Emitor> map)\n {\n if (collidable == null || map == null || np == null) {\n return false; // let's pretend \"no collision\"\n }\n \n this.index++;\n \n boolean collides = false;\n // Visual emitor's bounding box is identical with object's bounding box\n Rectangle searchArea = collidable.getBoundingBox();\n \n // shift search area to correct location\n Point cp = collidable.getPosition();\n searchArea.translate((np.x - cp.x), (np.y - cp.y));\n \n // search for all potenciali colliding objects\n ArrayList<Emitor> emitorList = map.Find(searchArea);\n for (Emitor emitor : emitorList) {\n // if emitor doesn't have collidable originator, just skip it\n if (emitor.getOriginator() instanceof CollidableGameObject) {\n CollidableGameObject colliding \n = (CollidableGameObject) emitor.getOriginator();\n\n collidable.setPosition(np);\n collides = collidable.colides(colliding);\n\n /* \n if there is collision and object cannot be inserted\n revert position changes, so data inconsistenci in tree map\n won't occure\n */\n if (collides) {\n collidable.setPosition(cp);\n break;\n }\n }\n // boolean a = emitor.getOriginator() instanceof GameObject;\n }\n\n /* for debug purposes only\n if (emitorList.isEmpty()) {\n for (GameObject g : this.addedObjects) {\n boolean intersects = collidable.getBoundingBox().intersects(g.getBoundingBox());\n intersects = intersects || false;\n }\n }\n */\n return collides;\n }", "title": "" }, { "docid": "15b127ebaeb874b1c0808a8204372596", "score": "0.56389475", "text": "public boolean hasSelfLoop() {\n assert foreEdges.contains(this)==backEdges.contains(this);\n \n return foreEdges.contains(this);\n }", "title": "" }, { "docid": "c498eae69cda8444a0fc5b0932bb9674", "score": "0.563074", "text": "public boolean percolates() {\n // Check if the virtual top and bottom node are connected\n int n = this.grid.length;\n return uf.connected(n*n, n*n+1);\n }", "title": "" }, { "docid": "0fea6bdd8685823a16e01f44b9b44c8c", "score": "0.562818", "text": "public boolean colliding(WorldObject o) {\n\t\tif (o == null)\n\t\t\treturn false;\n\t\t\n\t\t//te = This Edge, oe = Other Edge\n\t\t\n\t\tLine[] te = this.getHitboxLines();\n\t\tLine[] oe = o.getHitboxLines();\n\t\t\n\t\tfor (Line tl : te)\n\t\t\tfor (Line ol : oe)\n\t\t\t\tif (tl.intersects(ol)) \n\t\t\t\t\treturn true;\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "53a46f1ca3821c54d2c834f67df8333a", "score": "0.56257653", "text": "public boolean isCulled() {\n\t\treturn culled;\n\t}", "title": "" }, { "docid": "597ba74cae9f4b9d9add2cdf40379407", "score": "0.5617833", "text": "public void collisionCheck() {\r\n\t\tJOptionPane.showMessageDialog(null, \"Game Over\");\r\n\t\tSystem.exit(0);\r\n\t}", "title": "" }, { "docid": "711e08b1f4a8ca70861177779d4a7c6e", "score": "0.561587", "text": "public boolean percolates(){\n int topIndx = 0;\n int lastIndxExcl = sites.length;\n int begin = lastIndxExcl-this.gridSize;\n while (begin < lastIndxExcl){\n if (isConnected(topIndx, begin)){\n return true;\n }\n begin++;\n }\n return false;\n }", "title": "" }, { "docid": "fc2117ca9a0eb30e6571da4cb1eadaaa", "score": "0.5614122", "text": "public static boolean didCollide(Entity entityA, Entity entityB) {\n\t\tif (entityA == null || entityB == null)\n\t\t\treturn false;\n\t\tif (entityA.getBounds().overlaps(entityB.getBounds()))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "689dfa2f8febbe102f27c88231af568f", "score": "0.56092477", "text": "public boolean colision(Nave n){\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "2e354bab013092ed66fb1b1d84f4f63d", "score": "0.56090224", "text": "public boolean checkCollision()\n\t{\n\t\tif(turn)\n\t\t{\n\t\t\tfor(Piece a:p1.getPieces())\n\t\t\t{\n\t\t\t\tfor(Piece b:p2.getPieces())\n\t\t\t\t{\n\t\t\t\t\tif(a.getLocation().contains(b.getLocation()))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(Piece a:p1.getPieces())\n\t\t\t{\n\t\t\t\tfor(Piece b:p2.getPieces())\n\t\t\t\t{\n\t\t\t\t\tif(a.getLocation().contains(b.getLocation()))\n\t\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}", "title": "" }, { "docid": "e003760b698f73910f22b5df06d5b242", "score": "0.5608001", "text": "public boolean percolates() {\n return thisTopology.find(thisN*thisN + 1) == thisTopology.find(0);\n }", "title": "" }, { "docid": "28f218bb8c06cbb74cdcdb84bc7544a8", "score": "0.5606013", "text": "public boolean finished() {\n boolean ret = (thrownBalls == 2);\n if (index < 10) {\n ret = isStrike() || ret;\n } else {\n if (isStrike() || isSpare()) {\n ret = thrownBalls == 3;\n }\n }\n return ret;\n }", "title": "" }, { "docid": "70107d557c915da41687482c77f06139", "score": "0.56035244", "text": "public boolean nextStepPieceCollision() {\n\t\tPiece pf = new Piece(getCurrentPiece().getType(),getCurrentPiece().getRotation());\n\t\tpf.x = getCurrentPiece().x + 1;\n\t\tpf.y = getCurrentPiece().y;\n\t\treturn !this.board.isMovementPossible(pf);\n\t}", "title": "" }, { "docid": "e08be9cfb58d32e981e8d3bd48fa0ace", "score": "0.5603253", "text": "private boolean hasBallsInGame() {\n return !(this.ballsCounter.getValue() < 0);\n }", "title": "" }, { "docid": "6660b5d029e2af9d40ac56acd9df0a83", "score": "0.56002146", "text": "public final void handleCollision(final GameObject collided) {\n if (location.overlaps(collided.getBody())) {\n if (collided instanceof Immutable) {\n // should not go through the immutableObject - stop y speed and go x speed untill objects don't collide.\n speedY = 0;\n }\n\n if (collided instanceof Player) {\n remove = true;\n if (timeFromFired < Bubble.BUBBLE_LIFESPAN / 2) {\n newObjects.add(new Cherry(getLeft(), getBottom()));\n } else {\n newObjects.add(new Banana(getLeft(), getBottom()));\n }\n }\n }\n }", "title": "" }, { "docid": "502d3160f093fa8a71e480ad2f3dc8db", "score": "0.5598404", "text": "public boolean collisedP2Top(){\r\n\t\tif(ballY < p2Y + 50){\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b69bd528871013a5d644878c0e19bc03", "score": "0.55970067", "text": "public boolean isDeadEnd() {\n\t\tint numberOfWalls = 0;\n\t\tif(north == null){\n\t\t\tnumberOfWalls++;\n\t\t}\n\t\tif(south == null){\n\t\t\tnumberOfWalls++;\n\t\t}\n\t\tif(east == null){\n\t\t\tnumberOfWalls++;\n\t\t}\n\t\tif(west == null){\n\t\t\tnumberOfWalls++;\n\t\t}\n\t\tif(numberOfWalls == 3){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "5887c59bb55b0d574476f986cea4b128", "score": "0.5594839", "text": "public static boolean isGameOver() {\n\t\tif (getNumFalcons() == 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d5ca2abab619cc7f783136d656e20ef5", "score": "0.55939025", "text": "public boolean isCollisedP2(){\r\n\t\t\r\n\t\tif(ballX >= p2X){\r\n\t\t\tif(ballY > p2Y && ballY < p2Y + 100 ){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "b2abb730bee23319c65dea1e57aba69e", "score": "0.55938226", "text": "public boolean isGameOver() {\n boolean result = true;\n for (int i = 0; i < this.numberOfHouses; i++) {\n if (this.playerOneHouses[i].getSeeds() > 0) {\n result = false;\n break;\n }\n }\n if (result) {\n return true;\n }\n\n for (int i = 0; i < this.numberOfHouses; i++) {\n if (this.playerTwoHouses[i].getSeeds() > 0) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "5a25509074dd94f13942c09857e9b857", "score": "0.55889034", "text": "public boolean bombOpened(){\n for(Cell [] row: grid)\n for(Cell c : row)\n if(c != null && c.isOpen())\n if(c.hasBomb())\n return true;\n return false;\n }", "title": "" }, { "docid": "bee0dbe9aab1d9b81a02dd4beb92c8cb", "score": "0.5588519", "text": "boolean isConnected() {\r\n\t\treturn (c != null);\r\n\t}", "title": "" } ]
c9f3dc79354fef0fa2fded4ba1e4cf24
POST Posts a list of Destinations to service/destinationpost/postdestinationswithjsonbody The same as above, however, this version breaks down Client, WebTarget, Invocation and Response objects in order to perform exception handling.
[ { "docid": "a7cd190b2c98b63168cc336be6cf3f5e", "score": "0.77917457", "text": "public static List<Destination> postdestinationswithjsonbodyandexceptions() throws BadClientRequestException {\n Destination newD1 = new Destination();\n\n newD1.setActivity(Activity.hard);\n newD1.setCompanion(Companion.family);\n newD1.setHolidayType(HolidayType.cold);\n newD1.setLocation(\"Andora\");\n\n Destination newD2 = new Destination();\n\n newD2.setActivity(Activity.hard);\n newD2.setCompanion(Companion.family);\n newD2.setHolidayType(HolidayType.cold);\n newD2.setLocation(\"France\");\n\n List<Destination> destinationsForPost = new ArrayList<>();\n destinationsForPost.add(newD1);\n destinationsForPost.add(newD2);\n\n Client client = ClientBuilder.newClient();\n\n WebTarget target = client.target(BASE_URL)\n .path(\"forceerror\");\n //.path(\"postdestinationwithjsonbody\");\n\n Invocation.Builder builder = target.request(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON);\n\n Response response = builder.post(Entity.json(destinationsForPost));\n\n if (response.getStatus() == Response.Status.OK.getStatusCode() ||\n response.getStatus() == Response.Status.CREATED.getStatusCode()) {\n return response.readEntity(new GenericType<List<Destination>>() {\n });\n } else if (response.getStatus() == Response.Status.BAD_REQUEST.getStatusCode()) {\n throw new BadClientRequestException(\"BAD CLIENT REQUEST\" + response.readEntity(Object.class));\n } else if (response.getStatus() == Response.Status.CONFLICT.getStatusCode()) {\n throw new BadClientRequestException(\"CONFLICT \" + response.readEntity(Object.class));\n } else if (response.getStatus() == Response.Status.EXPECTATION_FAILED.getStatusCode()) {\n throw new BadClientRequestException(\"EXPECTATION_FAILED \" + response.readEntity(Object.class));\n } else {\n throw new BadClientRequestException(\"Some other response code \" + response);\n }\n\n }", "title": "" } ]
[ { "docid": "effe39f4def63b2b80ba756c3b910a60", "score": "0.7995296", "text": "public static List<Destination> postdestinationswithjsonbody() {\n Destination newD1 = new Destination();\n\n newD1.setActivity(Activity.hard);\n newD1.setCompanion(Companion.family);\n newD1.setHolidayType(HolidayType.cold);\n newD1.setLocation(\"Andora\");\n\n Destination newD2 = new Destination();\n\n newD2.setActivity(Activity.hard);\n newD2.setCompanion(Companion.family);\n newD2.setHolidayType(HolidayType.cold);\n newD2.setLocation(\"France\");\n\n List<Destination> destinationsForPost = new ArrayList<>();\n destinationsForPost.add(newD1);\n destinationsForPost.add(newD2);\n\n Client client = ClientBuilder.newClient();\n return client\n .target(BASE_URL)\n .path(\"postdestinationswithjsonbody\")\n .request(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON)\n .post(Entity.json(destinationsForPost))\n .readEntity(new GenericType<List<Destination>>(){});\n }", "title": "" }, { "docid": "8f6df69eff28f533dae42247bf184d81", "score": "0.6193956", "text": "public static Destination postdestinationwithformparams() {\n\n Client client = ClientBuilder.newClient();\n MultivaluedHashMap<String, String> formData = new MultivaluedHashMap<>();\n\n formData.add(\"activity\", \"hard\");\n formData.add(\"companion\", \"friend\");\n formData.add(\"holidayType\", \"hot\");\n formData.add(\"location\", \"Dubai\");\n\n return client\n .target(BASE_URL).path(\"postdestinationwithformparams\")\n .request(MediaType.APPLICATION_FORM_URLENCODED)\n .accept(MediaType.APPLICATION_JSON)\n .post(Entity.form(formData))\n .readEntity(Destination.class);\n }", "title": "" }, { "docid": "f593a7103e06ca02666400e4915ed03b", "score": "0.52906597", "text": "private static void postApiRunner(String url, String source, String destination, int timeout) {\n HttpPost postRequest = new HttpPost(url);\n //Set the API media type in http content-type header\n postRequest.addHeader(J, K);\n\n StringEntity[] postRequests = getRequestArray(source);\n List<String> words = readArray(source);\n\n for (int i = 0; i < postRequests.length; i++) {\n\n DefaultHttpClient httpClient = new DefaultHttpClient();\n\n\n HttpParams httpParams = httpClient.getParams();\n httpParams.setParameter(CoreConnectionPNames.SO_TIMEOUT, timeout * 1000);\n\n try {\n\n postRequest.setEntity(postRequests[i]);\n long startTime = System.currentTimeMillis();\n\n HttpResponse response = httpClient.execute(postRequest);\n\n long elapsedTime = System.currentTimeMillis() - startTime;\n\n //verify the valid error code first\n int statusCode = response.getStatusLine().getStatusCode();\n\n if (statusCode != 200) {\n throw new IOException(statusCode + \" Failed with HTTP error code : \" + statusCode);\n }\n String responseBody = EntityUtils.toString(response.getEntity());\n logger.info(responseBody);\n DateFormat dateFormat = new SimpleDateFormat(A);\n Date date = new Date();\n\n postApi(destination, words, i, elapsedTime, responseBody, dateFormat, date);\n\n } catch (SocketTimeoutException ex) {\n logger.info(I);\n\n } catch (Exception ex) {\n ex.printStackTrace();\n } finally {\n //Important: Close the connect\n httpClient.getConnectionManager().shutdown();\n }\n\n }\n }", "title": "" }, { "docid": "99753661003d1ca86830201b2c5e175b", "score": "0.5195509", "text": "public void setDestinations(java.util.Collection<String> destinations) {\n if (destinations == null) {\n this.destinations = null;\n return;\n }\n\n this.destinations = new com.amazonaws.internal.SdkInternalList<String>(destinations);\n }", "title": "" }, { "docid": "bb6904141fee93998927f8d1522cf70a", "score": "0.504246", "text": "@Test\n public void proxyActionPOSTcreateTest() throws ApiException {\n ProxyActioncreateRequest createRequest = null;\n // ProxyActioncreateResponse response = api.proxyActionPOSTcreate(createRequest);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "5ea0973f000ac61b6f0f12944cce6541", "score": "0.49811003", "text": "<T> T post(String url, String jsonBody, ResponseHandler<T> handler);", "title": "" }, { "docid": "58c1c02461eeda02e9218fd3123012f8", "score": "0.4972635", "text": "@Test\n public void proxyActionPOSTgenerateTest() throws ApiException {\n ProxyActiongenerateRequest generateRequest = null;\n // ProxyActiongenerateResponse response = api.proxyActionPOSTgenerate(generateRequest);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "37312419ffc776bb3329d2d3a7c692bc", "score": "0.4875077", "text": "@Test\n public void proxyActionPOSTsubscribeTest() throws ApiException {\n ProxyActionsubscribeRequest subscribeRequest = null;\n // ProxyActionsubscribeResponse response = api.proxyActionPOSTsubscribe(subscribeRequest);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "4037f608e395d82e0b226714bec4232f", "score": "0.48720938", "text": "@Test\n public void proxyActionPOSTexecuteTest() throws ApiException {\n ProxyActionexecuteRequest executeRequest = null;\n // ProxyActionexecuteResponse response = api.proxyActionPOSTexecute(executeRequest);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "ec8cefb0a9b2733cbed2b25f611be474", "score": "0.47704116", "text": "private ApiResponse sendPostEntity(MovementResponse request) {\n String url = config.getWfmHost() + \"flightData/create\";\n RestTemplate restTemplate = new RestTemplate();\n\n ObjectMapper mapper = new ObjectMapper();\n\n ApiResponse response = new ApiResponse();\n\n try {\n // Convert object to JSON string\n String jsonInString = mapper.writeValueAsString(request);\n System.out.println(jsonInString);\n response = restTemplate.postForObject(url, request, ApiResponse.class);\n System.out.println(response.getMessage());\n //return response;\n } catch (JsonGenerationException e) {\n e.printStackTrace();\n } catch (JsonMappingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return response;\n }", "title": "" }, { "docid": "43c9e807193cb46ab5f3967f007a2f13", "score": "0.47605318", "text": "public PDFDests makeDests(List destinationList) {\n PDFDests dests;\n\n //TODO: Check why the below conditional branch is needed. Condition is always true...\n final boolean deep = true;\n //true for a \"deep\" structure (one node per entry), true for a \"flat\" structure\n if (deep) {\n dests = new PDFDests();\n PDFArray kids = new PDFArray(dests);\n for (Object aDestinationList : destinationList) {\n PDFDestination dest = (PDFDestination) aDestinationList;\n PDFNameTreeNode node = new PDFNameTreeNode();\n getDocument().registerObject(node);\n node.setLowerLimit(dest.getIDRef());\n node.setUpperLimit(dest.getIDRef());\n node.setNames(new PDFArray(node));\n PDFArray names = node.getNames();\n names.add(dest);\n kids.add(node);\n }\n dests.setLowerLimit(((PDFNameTreeNode)kids.get(0)).getLowerLimit());\n dests.setUpperLimit(((PDFNameTreeNode)kids.get(kids.length() - 1)).getUpperLimit());\n dests.setKids(kids);\n } else {\n dests = new PDFDests(destinationList);\n }\n getDocument().registerObject(dests);\n return dests;\n }", "title": "" }, { "docid": "08e1792b87cd5f0e8b1fa57da828e0ad", "score": "0.4710174", "text": "@Test\n public void proxyActionPOSTdeleteTest() throws ApiException {\n ProxyActiondeleteRequest deleteRequest = null;\n // ProxyActiondeleteResponse response = api.proxyActionPOSTdelete(deleteRequest);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "20e628f6a53fbd9af6c9f3084707c334", "score": "0.46858028", "text": "List<Places> postPlaces();", "title": "" }, { "docid": "f0a1ffc9acc95e860a2e40fb7f84868c", "score": "0.46781367", "text": "@When(\"The user sends a POST request to {string} with the following Json data\")\n public void theUserSendsAPOSTRequestToWithTheFollowingJsonData(final String endpoint, final String body) {\n response = RequestManager.post(endpoint, body);\n }", "title": "" }, { "docid": "d2124407e8c2f38dbdd948e28ed47242", "score": "0.46223688", "text": "Destination createDestination(String id);", "title": "" }, { "docid": "b53ecfb15e20340dee7ccc0fa01ce8b3", "score": "0.46117067", "text": "@Test\n public void proxyActionPOSTqueryTest() throws ApiException {\n ProxyActionqueryRequest queryRequest = null;\n // ProxyActionqueryResponse response = api.proxyActionPOSTquery(queryRequest);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "2e6c3b768a659e9038bb446c577ea218", "score": "0.46112743", "text": "public static ClientResponse postRequest(String serviceEndPoint) {\n\t\tClient client = Client.create();\n\t\tWebResource webResource = client.resource(BASE_SERVICE_URL + serviceEndPoint);\n\n\t\tClientResponse response = webResource.type(MediaType.APPLICATION_JSON).post(ClientResponse.class);\n\t\treturn response;\n\t}", "title": "" }, { "docid": "42527c8e2cb92304ff790f39d038cae5", "score": "0.4603247", "text": "@Override\n @POST @Path(\"/airports\") @Consumes({ MediaType.APPLICATION_JSON })\n public Response addAirports(List<AirportData> airports) {\n List errors = new ArrayList();\n for (AirportData airport : airports) {\n // Calling add airport for individual airports and building an\n // unified response\n Response airportResponse = addAirport(airport.getIata(),\n String.valueOf(airport.getLatitude()),\n String.valueOf(airport.getLongitude()));\n if (airportResponse.getStatus() != Response.Status.OK.getStatusCode()) {\n // Changing the response to be an error response\n errors.add(airportResponse.getEntity());\n }\n }\n\n if (errors.isEmpty()) {\n return OK_RESPONSE;\n } else {\n return Response.status(Response.Status.BAD_REQUEST).entity(errors).build();\n }\n }", "title": "" }, { "docid": "8857049d1679c8de4d474d1791f3f026", "score": "0.45883134", "text": "@RequestLine(\"POST /api/v1/transactions?addrs={addrs}&confirmed={confirmed}\")\n @Headers({\n \"Accept: application/json\",\n })\n Object transactionsPost(@Param(\"addrs\") String addrs, @Param(\"confirmed\") String confirmed);", "title": "" }, { "docid": "c13b751f6aedbfa14429b0117be46483", "score": "0.45850885", "text": "public Response post(String url, String body);", "title": "" }, { "docid": "3fc2ee28a81c5a57a166ada8abb0d2d0", "score": "0.4578601", "text": "public boolean searchDestinations() {\n Unirest.config().defaultBaseUrl(\"https://test.api.amadeus.com/v1\");\n for (int i = 5; i >= nextDateIndex; nextDateIndex++) {\n try {\n HttpResponse<JsonNode> flightDestinationResponse = Unirest.get(\"/shopping/flight-destinations\")\n .header(\"authorization\", \"Bearer \" + token)\n .queryString(\"origin\", origin)\n .queryString(\"departureDate\", departureDate)\n .queryString(\"oneWay\", \"true\")\n .queryString(\"nonStop\", \"true\")\n .asJson();\n\n JSONObject flightData = flightDestinationResponse.getBody().getObject();\n\n if (flightData.has(\"errors\")) {\n try {\n this.departureDate = getNextDate(departureDate);\n System.out.println(\"ConnectionFlight.SearchDestinations.Errors.getNextDate: \"+ departureDate);\n } catch (ParseException parseException) {\n return false;\n }\n } else {\n JSONArray flights = flightData.getJSONArray(\"data\");\n if (flights.length() > 0) {\n for (int j = 0; j < flights.length(); j++) {\n JSONObject flight = flights.getJSONObject(j);\n destinationList.add(flight.get(\"destination\").toString());\n }\n System.out.println(\"ConnectionFlight.SearchDestinations.Origin: \" + origin + \" destinationListSize: \" + destinationList.size());\n return true;\n }else{\n return false;\n }\n }\n } catch (JSONException e) {\n System.out.println(printClassMsg + \"searchDestinations.catchPhrase: origin: \" + origin);\n return false;\n }\n }\n System.out.println(\"All nextDate is finished\");\n return false;\n }", "title": "" }, { "docid": "cc774f45a5d2e85394e13dce608a02d0", "score": "0.456885", "text": "public ApiResultWrapper post_request(String url, String body) {\n\t\tlog.warn(\"post_result: Multiple call request handing not yet implemented.\");\n\t\tlog.debug(\"post_request: {}\", formatBodyInfo(url, body));\n\t\tString full_url = create_complete_url(url);\n\t\treturn runPost(full_url, body);\n\t}", "title": "" }, { "docid": "3755320166d28967b90e088e0353f1bb", "score": "0.44847068", "text": "@Test\n public void proxyActionPOSTqueryMoreTest() throws ApiException {\n ProxyActionqueryMoreRequest queryMoreRequest = null;\n // ProxyActionqueryMoreResponse response = api.proxyActionPOSTqueryMore(queryMoreRequest);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "9bc4ef7d231ecc637d3e75e4d0d31476", "score": "0.44812697", "text": "public Response post(final T dto) {\n\t\treturn resource.request().accept(APPLICATION_JSON).post(Entity.json(dto));\n\t}", "title": "" }, { "docid": "04b24f54036fe4fb29189e41ee766724", "score": "0.4457543", "text": "private JSONObject makePostRequest(String webService, JSONObject body) throws ProtocolException, MalformedURLException, IOException{\n HttpURLConnection connection = prepareConnection(webService);\n connection.setRequestMethod(\"POST\");\n \n connection.setDoOutput(true);\n OutputStreamWriter stream = new OutputStreamWriter(connection.getOutputStream());\n stream.write(body.toString());\n stream.flush();\n \n \n \n return getResponse(connection);\n }", "title": "" }, { "docid": "e6ebe9c0d496539bfd548305878f497a", "score": "0.44435236", "text": "void addDestination(Destination destination);", "title": "" }, { "docid": "d22183fdb3f371bf035a181bf65fb6d7", "score": "0.44409436", "text": "@PostMapping(ConsumerURLMapping.WAREHOUSETOSELLER_POST)\n\t\t\t\t@ResponseBody\t\n\t\t\t\tpublic ResponseEntity<ResponseBean> addList(@RequestBody SellerToWarehouseBean stwb)\n\t\t\t\n\t\t\t\t\t\t{\n\t\t\t\t\t\tResponseBean responseBean = sellerToWarehouseRestService.addList(stwb.getWarehouseid()+\"\", stwb.getSellerid()+\"\");\n\t\t\t\t\treturn new ResponseEntity<ResponseBean>(responseBean, headers.getHeader(), HttpStatus.ACCEPTED);\t\n\t\t\t\t}", "title": "" }, { "docid": "644589d1fab0259e558fc4f5f1b7542d", "score": "0.4430547", "text": "@Test\n\tpublic void testPostPeripheral() throws URISyntaxException \n\t{\t\t\n\t\tint cont = 0;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tfinal String baseUrl1 =host;\n\t\tGateway g1 = new Gateway(null, \"gatewayTest\", \"10.0.0.1\", null);\n\t\tHttpEntity<Gateway> request = new HttpEntity<>(g1, headers);\n\t\tURI uri = new URI(baseUrl1); \t\n\t\tResponseEntity<String> result = restTemplate.postForEntity(uri, request, String.class);\t\n\t\ttry {\n\t\t\tSystem.out.println(result);\n\t\t\tGateway gatewayResult= new ObjectMapper().readValue(result.getBody(), Gateway.class);\t \n\t\t\t\n\t\t\tfor (int i = 0; i < 11; i++) {\n\t\t\t\tfinal String baseUrl = host+gatewayResult.getId().toString()+\"/peripheral\";\n\t\t\t\tURI uri1 = new URI(baseUrl);\n\t\t\t\tPeripheral p = new Peripheral();\n\t\t\t\tp.setVendor(\"vG\");\n\t\t\t\tp.setStatus(StatusEnum.online);\n\n\t\t\t\tHttpEntity<Peripheral> request1 = new HttpEntity<>(p, headers);\t \n\n\t\t\t\tSystem.out.println(uri1.toURL());\n\t\t\t\trestTemplate.postForEntity(uri1, request1, String.class);\t\t\n\t\t\t\tcont++;\t\n\t\t\t}\n\t\t} catch (JsonProcessingException e) {\t\t\t\t\n\t\t} catch ( CustomResponseException e1) {\n\t\t} catch ( Exception e1) {\t\n\t\t}\n\t\tfinally {\n\t\t\tassertEquals(10, cont);\n\t\t}\n\t}", "title": "" }, { "docid": "a47d42dea289f36f60348ee498281774", "score": "0.43951887", "text": "@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(value = \"/reservation\", method = RequestMethod.POST)\n\tpublic ResponseEntity makeReservation(@RequestParam(\"passengerId\") String pid,\n\t\t\t@RequestParam(\"flightLists\") String[] flightLists) throws JSONException {\n\t\tHttpHeaders responseHeaders = new HttpHeaders();\n\t\tresponseHeaders.setContentType(MediaType.APPLICATION_XML);\n\t\ttry {\n\n\t\t\tPassenger passenger = passengerService.getPassenger(pid);\n\t\t\tif (passenger == null) {\n\t\t\t\tSystem.out.println(\"Passenger does not exists\");\n\t\t\t\tthrow new ReservationNotFoundException(\"Passenger\" + pid + \" Does not exists\");\n\t\t\t}\n\n\t\t\t// Check for the over lap between the flights of current reservation\n\t\t\tif (flightService.checkOverlap(flightLists)) {\n\t\t\t\tSystem.out.println(\"Overlap between the timing!! Can not make the reservation\");\n\t\t\t\tthrow new Exception(\"Overlap between flights occurred. Can not make reservation\");\n\t\t\t}\n\n\t\t\t// Check for availability of flight using seats left\n\t\t\tif (!flightService.checkFlightsAvailability(flightLists)) {\n\t\t\t\tSystem.out.println(\"Not enough seats avaiable in the some flights\");\n\t\t\t\tthrow new Exception(\"Not enough seats avaiable for making reservation\");\n\t\t\t}\n\n\t\t\t// Check duplicate reservation\n\t\t\tif (reservationservice.checkDuplicate(pid, flightLists)) {\n\t\t\t\tSystem.out.println(\"Duplicate reservation\");\n\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\"Duplicate reservation. Reservation with same passenger and flights already exists. Please check is the history\");\n\t\t\t}\n\n\t\t\t// Check existing reservations for overlap\n\t\t\tif (reservationservice.checkOverlapExisting(pid, flightLists)) {\n\t\t\t\tSystem.out.println(\"Overlap with existing reservation\");\n\t\t\t\tthrow new Exception(\"Overlap between the existing reservtions occurs\");\n\t\t\t}\n\n\t\t\t// reservationservice.createReservation(pid, flightLists);\n\t\t\tReservation reservation = reservationservice.createReservation(pid, flightLists);\n\t\t\tLinkedHashMap<String, Object> output = responseBodyGenerator.buildMakeReservationResponse(reservation);\n\t\t\tJSONObject json = new JSONObject(output);\n\t\t\t// gson.toJson(output, LinkedHashMap.class);\n\t\t\tGson gson = new Gson();\n\t\t\treturn new ResponseEntity(XML.toString(json), responseHeaders, HttpStatus.OK);\n\n\t\t} catch (ReservationNotFoundException e) {\n\t\t\treturn new ResponseEntity(XML.toString(getErrorResponse(\"404\", e.getMessage())), responseHeaders,\n\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.out);\n\t\t\treturn new ResponseEntity(XML.toString(getErrorResponse(\"400\", e.getMessage())), responseHeaders,\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\t}", "title": "" }, { "docid": "5d070d322f7e09665f47ae899a289efc", "score": "0.43929645", "text": "public RestingResponse POST(String endpointUrl, Object inputParams) throws RestingException {\n\t\tlogger.debug(\"Inside POST!\");\n\t\thttpClient = HttpClients.createDefault();\n\t\tRequestConfig config = (globalRequestConfig == null)?RestingUtil.getDefaultRequestConfig():globalRequestConfig;\n\t\treturn POST(endpointUrl, inputParams, config);\n\t}", "title": "" }, { "docid": "27f88e72eb780c67d784a07434aa776a", "score": "0.43916196", "text": "List<HotelDto> getByDestination(DestinationDto destinationDto, int page, int perPage) throws ServiceException;", "title": "" }, { "docid": "db157047dc78d1fe3be85ed5325caa09", "score": "0.43766695", "text": "public void createEdges(Node origin, List<InputNodeLayerTrio> destinations, Graph graph) {\n\t\tMap<String, Set<String>> intersectMap = new HashMap<String, Set<String>>();\n\t\tfor(InputNodeLayerTrio t : destinations) {\n\t\t\taddToIntersectMap(t.service, t.input, intersectMap);\n\t\t}\n\n\t\tfor (Entry<String,Set<String>> entry : intersectMap.entrySet()) {\n\t\t\tEdge e = new Edge(entry.getValue());\n\t\t\torigin.getOutgoingEdgeList().add(e);\n\t\t\tNode destination = graph.nodeMap.get(entry.getKey());\n\t\t\tdestination.getIncomingEdgeList().add(e);\n\t\t\te.setFromNode(origin);\n\t\t\te.setToNode(destination);\n\t\t\tgraph.edgeList.add(e);\n\t\t}\n\t}", "title": "" }, { "docid": "8575f7e05eafee5119cddcead27f94a3", "score": "0.43734846", "text": "@Test\n public void testAddPost() throws Exception\n {\n /* CHECK ADD POST SUCCESS */\n // create a request add post from user\n ClientRequest requestAddPost = new ClientRequest(URLConstant.ADD_POST);\n // accept with input type\n requestAddPost.accept(MediaType.APPLICATION_JSON);\n // input post infor\n Articles article = new Articles();\n article.setTitle(\"Unit Test Post\");\n article.setDescription(\"Test Add Post\");\n article.setUsers_id(users.getId());\n // get post infor\n requestAddPost.body(MediaType.APPLICATION_JSON, gson.toJson(article));\n // run operation and get respond\n ClientResponse<ResultResponse> responseSuccess = requestAddPost.post(ResultResponse.class);\n // return result add post with code 200 is successful!\n assertEquals(responseSuccess.getStatus(), 200);\n\n /* GET ID OF POST JUST ADD TO DELETE AFTER */\n // Parse result return to ResultResponse object\n ResultResponse result = gson.fromJson(responseSuccess.getEntity(String.class), ResultResponse.class);\n // Parse Data object(json format) of ResultResponse to Article\n Articles post = new ObjectMapper().readValue(gson.toJson(result.getData()), Articles.class);\n // Get id of post add\n int articleID = post.getId();\n // close environment\n responseSuccess.close();\n\n /* CHECK FIELDS REQUIRED */\n // input post infor with miss a field title\n article.setTitle(\" \");\n // get data\n requestAddPost.body(MediaType.APPLICATION_JSON, gson.toJson(article));\n // run operation and get respond\n ClientResponse<ResultResponse> responseFields = requestAddPost.post(ResultResponse.class);\n // return add post with code 1001 is faild because user not input\n // enought post infor!\n assertEquals(responseFields.getStatus(), 1001);\n // close environment\n responseFields.close();\n\n /* DELETE POST JUST ADD */\n ClientRequest requestDelete = new ClientRequest(URLConstant.DELETE_POST + articleID);\n // run operation and get respond\n requestDelete.delete(ResultResponse.class);\n }", "title": "" }, { "docid": "866cf5f65599c84a7a2fbe4a495fd21d", "score": "0.43571946", "text": "public static void deploy(AddressApiClient apiClient, Kubernetes kubernetes, TimeoutBudget budget, AddressSpace addressSpace, HttpMethod httpMethod, Destination... destinations) throws Exception {\n apiClient.deploy(addressSpace, httpMethod, destinations);\n JsonObject addrSpaceObj = apiClient.getAddressSpace(addressSpace.getName());\n if (getAddressSpaceType(addrSpaceObj).equals(\"standard\")) {\n if (destinations.length == 0) {\n waitForExpectedPods(kubernetes, addressSpace, kubernetes.getExpectedPods(addressSpace.getPlan()), budget);\n }\n }\n waitForDestinationsReady(apiClient, addressSpace, budget, destinations);\n }", "title": "" }, { "docid": "bd0c82d65179929b4e3ed3e6a8c01d5f", "score": "0.43318245", "text": "@Test\n public void post_validateJsonResponseBody() {\n Response res = given()\n .queryParam(\"key\", \"AIzaSyAt1hdahEPCgTLcaV-SmHQQTwMqKmKQgPY\")\n .body(\"{\"\n + \"\\\"location\\\": {\"\n + \"\\\"lat\\\": -33.8669710,\"\n + \"\\\"lng\\\": 151.1958750\"\n + \"},\"\n + \"\\\"accuracy\\\": 50,\"\n + \"\\\"name\\\": \\\"Google Shoes!\\\",\"\n + \"\\\"phone_number\\\": \\\"(02) 9374 4000\\\",\"\n + \"\\\"address\\\": \\\"48 Pirrama Road, Pyrmont, NSW 2009, Australia\\\",\"\n + \"\\\"types\\\": [\\\"shoe_store\\\"],\"\n + \"\\\"website\\\": \\\"http://www.google.com.au/\\\",\"\n + \"\\\"language\\\": \\\"en-AU\\\"\"\n + \"}\")\n .when()\n .post(\"/place/add/json\");\n\n System.out.println(res.body().asString());\n\n res.then()\n\t\t\t.statusCode(200).and()\n\t\t\t.contentType(ContentType.JSON).and()\n\t\t\t.body(\"scope\", equalTo(\"APP\")).and()\n\t\t\t.body(\"status\", equalTo(\"OK\"));\n }", "title": "" }, { "docid": "c1e4afba5cf3e44edfc24fe455e8cc4d", "score": "0.4304336", "text": "@POST(\"_bulk\")\n\tpublic Call<Object> bulk(@Body Object body);", "title": "" }, { "docid": "ad404cb6621b889eb77ad4c0e0c390a6", "score": "0.4298143", "text": "@Test\n public void postRestaurantTest() throws Exception {\n when (restaurantService.create(RESTAURANT_NAME, RESTAURANT_ADDRESS))\n .then(invocation -> {\n Restaurant restaurant = new Restaurant(RESTAURANT_NAME, RESTAURANT_ADDRESS);\n restaurant.setId(RESTAURANT_ID);\n return restaurant;\n });\n\n /*invoca l'operazione POST /restaurants/*/\n /*{ \"name\": \"rest_name\", \"address\":\"rest_address\"}*/\n String jsonRequest =\n \"{\" +\n \"\\\"name\\\": \\\"\" + RESTAURANT_NAME + \"\\\",\" +\n \"\\\"address\\\": \\\"\" + RESTAURANT_ADDRESS + \"\\\"\" +\n \"}\";\n\n mockMvc\n .perform(post(\"/restaurants/\").contentType(MediaType.APPLICATION_JSON).content(jsonRequest))\n .andExpect(status().isOk())\n /*verifica gli elementi della risposta JSON*/\n .andExpect(jsonPath(\"$.restaurantId\").value(RESTAURANT_ID));\n }", "title": "" }, { "docid": "b8c4452b4f88e10afd7fd066ad476d3a", "score": "0.42928988", "text": "@Override\n public void sendMultipleObjectMessages(Destination destination, MessagesSender ms) throws JMSException {\n\n }", "title": "" }, { "docid": "d07236e8d8627428e8baf8997d295a08", "score": "0.42823255", "text": "public HttpEvent post(String restPath, String requestBody);", "title": "" }, { "docid": "08cc2eb0738d0c3b05a2599fe76be3a9", "score": "0.42525986", "text": "@POST\n\t\t@Path(\"/bookingdetail/postbookingdetail\")\n\t\t@Consumes(MediaType.APPLICATION_JSON)\n\t\t@Produces(MediaType.APPLICATION_JSON)\n\t\t\n\t\tpublic String postBookingDetail(String jsonString)\n\t\t\n\t\t{\n\t\t\tDouble tc;\n\t\t\tInteger cust;\n\t\t\tJSONParser parser= new JSONParser();\n\t\t\tJSONObject obj; \n\t\t\tString sql=\"UPDATE `BookingDetails` SET `TripStart`=?, `TripEnd`=?, `Description`=?,`Destination`=?, `ItineraryNo`=?,`BasePrice`=?, `AgencyCommission`=?,`RegionId`=?,`ClassId`=?,`FeeId`=?,`ProductSupplierId`=?, `BookingId`=? WHERE `BookingDetailId`=?\";\n\t\t\tString message = null;\n\t\t\ttry {\n\t\t\t\tobj= (JSONObject) parser.parse(jsonString);\n\t\t\t\tClass.forName(\"org.mariadb.jdbc.Driver\");\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mariadb://localhost:3306/TravelExperts\", \"harv\", \"password\");\n\t\t\t\tPreparedStatement stmt =conn.prepareStatement(sql);\n\t\t\t\tstmt.setString(1, (String) obj.get(\"TripStart\"));\n\t\t\t\tstmt.setString(2, (String) obj.get(\"TripEnd\"));\n\t\t\t\tstmt.setString(3, (String) obj.get(\"Description\"));\n\t\t\t\tstmt.setString(4, (String) obj.get(\"Destination\"));\n\t\t\t\t\n\t\t\t\tif ((String)obj.get(\"ItineraryNo\")==null)\n\t\t\t\t\tstmt.setString(5, (String)obj.get(\"ItineraryNo\"));\n\t\t\t\telse\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttc = Double.parseDouble((String)obj.get(\"ItineraryNo\"));\n\t\t\t\t\t\tstmt.setDouble(5, tc);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tstmt.setString(5, null);\n\t\t\t\t\t}\n\n\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif ((String)obj.get(\"BasePrice\")==null)\n\t\t\t\t\tstmt.setString(6, (String)obj.get(\"BasePrice\"));\n\t\t\t\telse\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttc = Double.parseDouble((String)obj.get(\"BasePrice\"));\n\t\t\t\t\t\tstmt.setDouble(6, tc);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tstmt.setString(6, null);\n\t\t\t\t\t}\n\t\t\t\tif ((String)obj.get(\"AgencyCommission\")==null)\n\t\t\t\t\tstmt.setString(7, (String)obj.get(\"AgencyCommission\"));\n\t\t\t\telse\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttc = Double.parseDouble((String)obj.get(\"AgencyCommission\"));\n\t\t\t\t\t\tstmt.setDouble(7, tc);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tstmt.setString(7, null);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString reg =(String) obj.get(\"RegionId\");\n\t\t\t\tif (reg.equals(\"\"))\n\t\t\t\t\tstmt.setString(8, null);\n\t\t\t\telse\n\t\t\t\tstmt.setString(8, (String) obj.get(\"RegionId\"));\n\t\t\t\t\n\t\t\t\tString cla =(String) obj.get(\"ClassId\");\n\t\t\t\tif (cla.equals(\"\"))\n\t\t\t\t\tstmt.setString(9, null);\n\t\t\t\telse\n\t\t\t\tstmt.setString(9, (String) obj.get(\"ClassId\"));\n\t\t\t\t\n\t\t\t\tString fee =(String) obj.get(\"FeeId\");\n\t\t\t\tif (fee.equals(\"\"))\n\t\t\t\t\tstmt.setString(10, null);\n\t\t\t\telse\n\t\t\t\tstmt.setString(10, (String) obj.get(\"FeeId\"));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tif((String)obj.get(\"ProductSupplierId\")==null)\n\t\t\t\t\tstmt.setString(11, (String)obj.get(\"ProductSupplierId\"));\n\t\t\t\telse\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcust = Integer.parseInt((String)obj.get(\"ProductSupplierId\"));\n\t\t\t\t\t\tif (cust==0)\n\t\t\t\t\t\t\tstmt.setString(11, null);\n\t\t\t\t\t\telse\n\t\t\t\t\t\tstmt.setInt(11,cust);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tstmt.setString(11, null);\n\t\t\t\t\t}\n\t\t\t\tif((String)obj.get(\"BookingId\")==null)\n\t\t\t\t\tstmt.setString(12, (String)obj.get(\"BookingId\"));\n\t\t\t\telse\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcust = Integer.parseInt((String)obj.get(\"BookingId\"));\n\t\t\t\t\t\tstmt.setInt(12,cust);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tstmt.setString(12, null);\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\tstmt.setInt(13, Integer.parseInt((String)obj.get(\"BookingDetailId\")));\n\n\t\t\t\tif(stmt.executeUpdate()>0)\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Booking Detail updated successfully\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Booking Detail Update failed\";\n\t\t\t\t}\n\t\t\t\tconn.close();\n\t\t\t\t\n\t\t\t\t//ResultSet rs=stmt.executeQuery();\n\t\t\t} catch (ClassNotFoundException | SQLException | ParseException 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\t\t\n\t\t\t\n\t\t\t\n\t\t\treturn \"{ 'message':'\" + message + \"' }\";\n\t\t}", "title": "" }, { "docid": "78a36893c648d21f6d8db1941faab032", "score": "0.42477405", "text": "@Test\n public void proxyActionPOSTupdateTest() throws ApiException {\n ProxyActionupdateRequest updateRequest = null;\n // ProxyActionupdateResponse response = api.proxyActionPOSTupdate(updateRequest);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "3d3dedbed2b9e90a8db9efdde1bec609", "score": "0.42285004", "text": "private static void post(String endpoint, List<NameValuePair> params)\n throws IOException {\n\n // Create a new HttpClient and Post Header\n HttpClient httpclient = new DefaultHttpClient();\n HttpPost httppost = new HttpPost(endpoint);\n\n try {\n // Add your data\n httppost.setEntity(new UrlEncodedFormEntity(params));\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n int status = response.getStatusLine().getStatusCode();\n if (status != 200) {\n Log.i(\"MyChallenge﹕\", \"POST to server failed with error code\" + status);\n }\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n } catch (IOException e) {\n // TODO Auto-generated catch block\n }\n\n }", "title": "" }, { "docid": "45ba014fcbd75739721956c41ffafc2b", "score": "0.42253807", "text": "@POST\r\n @Path(\"/post_test\")\r\n @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_FORM_URLENCODED,MediaType.TEXT_PLAIN})\r\n// @Produces(MediaType.APPLICATION_JSON)\r\n// public String postTestModelJson(@Context UriInfo uriInfo, @FormParam(\"put_test_json\") String jsonInput) {\r\n public Response postTestModelJson(\r\n String body, \r\n @Context UriInfo uriInfo, \r\n @FormParam(\"put_test_json\") String formInput, \r\n @QueryParam(\"put_test_json\") String queryInput, \r\n @Context HttpServletRequest requestContext) \r\n {\n \r\n\r\n String yourIP = requestContext.getRemoteAddr();\r\n \r\n String filePath = properties.getProperty(\"config_path\");\r\n filePath += \"/iot\"; \r\n \r\n \r\n if(yourIP.equals(\"111.0.0.1\")) yourIP = \"VIP INVISIBLE IP \";\r\n else {\r\n \r\n ArrayList<String> ipLines = null;\r\n \r\n ArrayList<String> curIpLines = new ArrayList();\r\n curIpLines.add(yourIP);\r\n \r\n ipLines = checkIps(yourIP);\r\n \r\n if(ipLines != null) fileWrite(ipLines, filePath, \"ips_put_test.txt\", true);\r\n \r\n fileWrite(curIpLines, filePath, \"ips_put_test_all.txt\", true);\r\n }\r\n\r\n String jsonInput = \"\";\r\n \r\n if(body != null) jsonInput = body.trim();\r\n else if(formInput != null) jsonInput = formInput.trim();\r\n else jsonInput = \"FAIL\";\r\n \r\n\r\n \r\n\r\n// try{\r\n// if(jsonInput.length() > 500000) {\r\n// jsonInput = \"Your input limited to 500000 symbols excluded this row, please re-enter your json in smaller way\\n\" + jsonInput.substring(0,499999);\r\n// }\r\n// }catch(Exception ex){\r\n// System.out.println(\"EXCEPTION \");\r\n// }\r\n\r\n\r\n \r\n ArrayList<String> writeLines = new ArrayList();\r\n \r\n if(jsonInput.equals(\"FAIL\")) writeLines.add(\"[FAIL POST] Query parameter of Form Parameter name is 'put_test_json'; Stubar loshara!\");\r\n else writeLines.add(jsonInput);\r\n \r\n// if(jsonInput.equals(\"FAIL\")) ;\r\n// else fileWrite(jsonInput, filePath, postTestFile,true);\r\n \r\n fileWrite(writeLines, filePath, postTestFile,true);\r\n \r\n return Response.status(200).entity(\"IOPT-a works!\\n\").build(); \r\n// return readJsonStringFromPath(filePath,fileName);\r\n }", "title": "" }, { "docid": "45d0efede4c0aa95cba3c42ba5edc4f0", "score": "0.42209387", "text": "public static ClientResponse postRequest(Object request, String serviceEndPoint) {\n\t\tlogger.info(\"Inside::PostReqeust::Method\");\n\t\tClient client = Client.create();\n\t\tWebResource webResource = client.resource(BASE_SERVICE_URL + serviceEndPoint);\n\t\tObjectWriter objectPrettyWriter = objectWriter.withDefaultPrettyPrinter();\n\t\tString input = \"\";\n\t\tClientResponse response = null;\n\t\ttry {\n\t\t\tinput = objectPrettyWriter.writeValueAsString(request);\n\t\t\tresponse = webResource.type(MediaType.APPLICATION_JSON).post(ClientResponse.class, input);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error::PostReqeust::Method\", e);\n\t\t}\n\t\tlogger.info(\"Exiting::PostReqeust::Method\");\n\t\treturn response;\n\n\t}", "title": "" }, { "docid": "bdbcc9ccf2fa6407eeaf3683673640f6", "score": "0.4220141", "text": "@PostMapping(params = {\"name\",\"ingredient_used\"})\n public Response createFood(String name, List<String>ingredient_used)\n {\n return service.createFood(name,ingredient_used);\n }", "title": "" }, { "docid": "c24dcd84142d6b2459633b4ec147fedf", "score": "0.4203428", "text": "protected void enhanceTransportTaskListAsDestination(SmartList<TransportTask> transportTaskListAsDestination,Map<String,Object> options){\n\t}", "title": "" }, { "docid": "6ed16725b472d8a8be52fc6254b0a43d", "score": "0.41987923", "text": "Response post(Entity<?> entity) throws InvocationException;", "title": "" }, { "docid": "85ed48b4aef0036bac569f3f31662aea", "score": "0.41930157", "text": "public Boolean post_usage_details(Electricityusage [] usages) {\n URL url = null;\n HttpURLConnection conn = null;\n String usage_str=\"\";\n final String methodPath = \"/smarterwebservices.electricityusage/\";\n try {\n Gson gson =new GsonBuilder().setDateFormat(\"YYYY-MM-dd'T'HH:mm:ss.SSSXXX\").create();\n for(int i = 0; i<usages.length; i++) {\n String val = gson.toJson(usages[i]);\n if(!val.equals(\"null\"))\n usage_str += gson.toJson(usages[i]);\n }\n url = new URL(BASE_URI + methodPath);\n//open the connection\n conn = (HttpURLConnection) url.openConnection();\n//set the timeout\n conn.setReadTimeout(10000);\n conn.setConnectTimeout(15000);\n//set the connection method to POST\n conn.setRequestMethod(\"POST\");\n //set the output to true\n conn.setDoOutput(true);\n//set length of the data you want to send\n conn.setFixedLengthStreamingMode(usage_str.getBytes().length);\n//add HTTP headers\n conn.setRequestProperty(\"Content-Type\", \"application/json\");\n//Send the POST out\n PrintWriter out = new PrintWriter(conn.getOutputStream());\n out.print(usage_str);\n out.close();\n Log.i(\"error\", new Integer(conn.getResponseCode()).toString());\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n conn.disconnect();\n\n return true;\n }\n\n}", "title": "" }, { "docid": "fad74e968c9fbdeffd8783b0e1cbf7e0", "score": "0.41860995", "text": "public void addPossibleDestinations(String[] args) {\r\n\t\tfor(String argDestinations: args) {\r\n\t\t\ttry {\r\n\t\t\t\targDestinations = argDestinations.substring(1, 2); //we get only the origin from the substring\r\n\t\t\t\tif(!destinations.contains(argDestinations)) {\r\n\t\t\t\t\tdestinations.add(argDestinations);\r\n\t\t\t\t}\r\n\t\t\t}catch(Exception e) {\r\n\t\t\t\tSystem.err.println(\"Error within the destinations listing\");\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "5fd7ad6a8a6bb473f488ade3f7f6d1a3", "score": "0.417929", "text": "@ApiOperation(value = \"Calculate the distance between two postcodes\")\n @ApiResponses(value = {@ApiResponse(code = 200, message = \"Successfully calculated the distance between two services\"),\n @ApiResponse(code = 400, message = \"Invalid Request params \"),\n @ApiResponse(code = 401, message = \"Not Authorized to view the resources\"),\n @ApiResponse(code = 404, message = \"The resource you where trying to reach is not found\"),\n @ApiResponse(code = 500, message = \"Internal Server error occurred\")\n })\n @GetMapping(path = \"/distanceCalculator\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<DistanceFinderResponse<DistanceCalculator>> distanceCalculator(\n @ApiParam(value = \"sourcePostCode\", example = \"AB21 9HZ\", required = true)\n @RequestParam(value = \"sourcePostCode\") String sourcePostCode,\n @ApiParam(value = \"destinationPostCode\", example = \"AB21 9JY\", required = true)\n @RequestParam(value = \"destinationPostCode\") String destinationPostCode) throws DistanceFinderCustomException {\n if (StringUtils.isEmpty(sourcePostCode) || StringUtils.isEmpty(destinationPostCode)) {\n throw new DistanceFinderCustomException(\"Source Postcode or Destination Postcode is Null or Empty\");\n } else {\n DistanceCalculator distanceFinderEntities = distanceCalculatorService.getDistanceBetweenTwoPostCode(sourcePostCode, destinationPostCode);\n DistanceFinderResponse<DistanceCalculator> responseDistanceFinderResponse = new DistanceFinderResponse<>(distanceFinderEntities);\n return new ResponseEntity<>(responseDistanceFinderResponse, HttpStatus.OK);\n }\n }", "title": "" }, { "docid": "622ac030a64899863a34b15d897d0163", "score": "0.41734135", "text": "@POST(\"posts\")\n Call<Post> createPost(@Body Post post);", "title": "" }, { "docid": "3c6072428081bb0412c444dcf633318e", "score": "0.41660455", "text": "@Override\n public List<Destination> findAllDestinations() {\n return em.createNamedQuery( \"Destination.findAllValid\", Destination.class ).getResultList();\n }", "title": "" }, { "docid": "8220c53daee64b0375a9f6fe598e30d5", "score": "0.41410607", "text": "public List<Destination> listDestination();", "title": "" }, { "docid": "d68645d15297626a3a56d2afbf74e4bf", "score": "0.41404748", "text": "@Specification(\"request.method.post.with.body/downstream.response\")\n void serverShouldTolerateDownstreamRequestMethodPostWithBody()\n throws Exception {\n k3po.finish();\n }", "title": "" }, { "docid": "685816a8bbabc662f4cbb3a843efaf1a", "score": "0.4140244", "text": "public static void otherPost(String url, RequestBody requestBody, ResponseCallBack responseCallBack) {\n // Create the request.\n Request request = new Request.Builder()\n .url(url)\n .post(requestBody)\n .build();\n\n // Enqueue the call.\n Call call = sOkHttpClient.newCall(request);\n sCallMap.put(url, call);\n smallDataResponseCall(call, responseCallBack);\n }", "title": "" }, { "docid": "0468af87d20db85b2106061c886d3120", "score": "0.41362375", "text": "@Override\r\n public JSONObject PostData(JSONArray data) {\n BeanPostData bean = new BeanPostData(\"Ebon_BookingOrder_NameList\", \"_id\", \"Ebon\", data);\r\n return bean.Post();\r\n }", "title": "" }, { "docid": "d4a7d18096e8fb9971cd70c1a69cbced", "score": "0.41320878", "text": "protected void httpPost(ArangoPersistor persistor, String apiPath, JsonObject headers, JsonObject body, int timeout, Message<JsonObject> msg) {\n // launch the request\n HttpClientRequest clientRequest = persistor.getClient().post(apiPath, new RestResponseHandler(msg, logger, helper));\n \n // set headers\n clientRequest = addRequestHeaders(clientRequest, persistor, headers);\n // set content-length before we write the body !\n clientRequest.putHeader(HttpHeaders.CONTENT_LENGTH, Integer.toString(body.toString().length()));\n \n // write the body\n clientRequest.write(body.toString());\n \n // end the request\n clientRequest.setTimeout(timeout).end();\n }", "title": "" }, { "docid": "c15e0f300187ae33136295f347be039e", "score": "0.4125163", "text": "public void createPost(Post post) {\n ServiceAPI client = ServiceGenerator.createService(ServiceAPI.class);\n Call<Post> call = client.createPost(post);\n call.enqueue(new Callback<Post>() {\n @Override\n public void onResponse(Call<Post> call, Response<Post> response) {\n\n }\n\n @Override\n public void onFailure(Call<Post> call, Throwable t) {\n t.printStackTrace();\n }\n });\n }", "title": "" }, { "docid": "a4b83a0b67eb60cc1211d3d6668c0b7f", "score": "0.41195846", "text": "List<RegisteredDestinationData> retrieveRegisteredExposedDestinations(DestinationTargetModel destinationTarget) throws ApiRegistrationException;", "title": "" }, { "docid": "d11011eecf2d313b35e8fafd034060fb", "score": "0.4117913", "text": "public static void waitForDestinationsReady(AddressApiClient apiClient, AddressSpace addressSpace, TimeoutBudget budget, Destination... destinations) throws Exception {\n Map<String, JsonObject> notReadyAddresses = new HashMap<>();\n\n while (budget.timeLeft() >= 0) {\n JsonObject addressList = apiClient.getAddresses(addressSpace, Optional.empty());\n notReadyAddresses = checkAddressesReady(addressList, destinations);\n if (notReadyAddresses.isEmpty()) {\n Thread.sleep(5000); //TODO: remove this sleep after fix for ready check will be available\n break;\n }\n Thread.sleep(5000);\n }\n\n if (!notReadyAddresses.isEmpty()) {\n JsonObject addressList = apiClient.getAddresses(addressSpace, Optional.empty());\n notReadyAddresses = checkAddressesReady(addressList, destinations);\n throw new IllegalStateException(notReadyAddresses.size() + \" out of \" + destinations.length\n + \" addresses are not ready: \" + notReadyAddresses.values());\n }\n }", "title": "" }, { "docid": "233b8049e0005515cd446be313d50629", "score": "0.4117243", "text": "public void setDestination(Destination dest);", "title": "" }, { "docid": "ee26dbc0a5f54ab212cfc1eaf83d0b7f", "score": "0.4107274", "text": "@Test(priority = 1,\n groups = { \"wso2.esb\" },\n description = \"facebook {createPost} integration test negative case.\")\n public void testCreatePostNegativeCase() throws IOException, JSONException {\n\n esbRequestHeadersMap.put(\"Action\", \"urn:createPost\");\n RestResponse< JSONObject > esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createPost_negative.txt\");\n String apiEndPoint = \"https://graph.facebook.com/me/feed\";\n RestResponse< JSONObject > apiRestResponse =\n sendJsonRestRequest(apiEndPoint, \"POST\", apiRequestHeadersMap, \"api_createPost_negative.txt\");\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"error\").get(\"message\").toString(),\n apiRestResponse.getBody().getJSONObject(\"error\").get(\"message\").toString());\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"error\").get(\"code\").toString(),\n apiRestResponse.getBody().getJSONObject(\"error\").get(\"code\").toString());\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"error\").get(\"type\").toString(),\n apiRestResponse.getBody().getJSONObject(\"error\").get(\"type\").toString());\n }", "title": "" }, { "docid": "065df1b2f4ede6624e623a17dbb7d763", "score": "0.40974316", "text": "@RequestMapping(method=RequestMethod.POST, produces=\"application/json\")\r\n\tpublic @ResponseBody CreateStudentsResponse postStudentList(final List<StudentMessageType> messages) {\r\n\t\tfinal Map<Integer, CreateStudentsRequest> studentListMap = new HashMap<Integer, CreateStudentsRequest>();\r\n\t\tCreateStudentsResponse studentListResponse = null;\r\n\t\t\r\n\t\t\tfor (final StudentMessageType studentMessage : messages) {\r\n\t\t\t\t// Connects to OAS DB and return students related data \r\n\t\t\t\ttry {\r\n\t\t\t\t\tfinal Student student = studentDAO.getStudent(studentMessage.getStudentId());\r\n\t\t\t\t\tlogger.info(\"Transmitting student. [studentId=\" + student.getOasStudentId() + \"]\");\r\n\t\t\t\t\t// We assume here that customer ID is never null. It won't break if this isn't true,\r\n\t\t\t\t\t// but we're not going to warn if it happens.\r\n\t\t\t\t\tCreateStudentsRequest request = studentListMap.get(studentMessage.getCustomerId());\r\n\t\t\t\t\tif (request == null) {\r\n\t\t\t\t\t\trequest = new CreateStudentsRequest();\r\n\t\t\t\t\t}\r\n\t\t\t\t\trequest.addStudent(student);\r\n\t\t\t\t\tstudentListMap.put(student.getOasCustomerId(), request);\r\n\t\t\t\t} catch (final UnknownStudentException use) {\r\n\t\t\t\t\tlogger.error(\"Unknown studentId. [studentId=\" + studentMessage.getStudentId() + \"]\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<Integer> customerIds = studentListMap.keySet();\r\n\t\t\tfor (final Integer customerId : customerIds) {\r\n\t\t\t\tCreateStudentsRequest studentRequest = studentListMap.get(customerId);\r\n\t\t\t\tfinal String endpoint = endpointSelector.getEndpoint(customerId);\r\n\t\t\t\tif (endpoint == null) {\r\n\t\t\t\t\tlogger.error(\"No endpoint defined for customer ID! [customerId=\" + customerId + \"]\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tlogger.info(\"[Student] Request json to BMT: \" + studentListMap.get(customerId).toJson());\r\n\t\t\t\t\t\tlogger.info(\"[Student] Transmiting json to endpoint \" + endpointSelector.getEndpoint(customerId)\r\n\t\t\t\t\t\t\t\t+RestURIConstants.POST_STUDENTS);\r\n\t\t\t\t\t\tfinal Calendar startTime = Calendar.getInstance();\r\n\t\t\t\t\t\tstudentListResponse = restTemplate.postForObject(endpointSelector.getEndpoint(customerId)\r\n\t\t\t\t\t\t\t\t+RestURIConstants.POST_STUDENTS,\r\n\t\t\t\t\t\t\t\tstudentRequest, CreateStudentsResponse.class);\r\n\t\t\t\t\t\tfinal Calendar endTime = Calendar.getInstance();\r\n\t\t\t\t\t\tfinal long callTime = endTime.getTimeInMillis() - startTime.getTimeInMillis();\r\n\t\t\t\t\t\tlogger.info(\"[Student] Service Call Time: \" + callTime + \" [service=BMT.Student]\");\r\n\t\t\t\t\t\tlogger.info(\"SyncCallTime \" + callTime + \" SyncCallType ServiceAPI SyncCallDest BMT.Student\");\r\n\r\n\t\t\t\t\t\t//BMTOAS-2042 - logging for CloudWatch\r\n\t\t\t\t\t\tlogger.info(\"{\\\"Name\\\":\\\"CloudWatchLog\\\"\"\r\n\t\t\t\t\t\t\t+\",\\\"Application\\\":\\\"BMTSyncClient\\\"\"\r\n\t\t\t\t\t\t\t+\",\\\"IsError\\\":false,\\\"ErrorCode\\\":0\"\r\n\t\t\t\t\t\t\t+\",\\\"CallType\\\":\\\"ServiceAPI\\\"\"\r\n\t\t\t\t\t\t\t+\",\\\"CallDest\\\":\\\"BMT.Student\\\"\"\r\n\t\t\t\t\t\t\t+\",\\\"APICallDuration\\\":\"+callTime+\"}\");\r\n\r\n\t\t\t\t\t\tlogger.info(\"[Student] Response json from BMT: \" + studentListResponse.toJson());\r\n\t\t\t\t\t\tprocessResponses(studentRequest, studentListResponse, true);\r\n\t\t\t\t\t} catch (RestClientException rce) {\r\n\t\t\t\t\t\tlogger.error(\"Http Client Error: \" + rce.getMessage(), rce);\r\n\t\t\t\t\t\tlogger.error(\"ErrorCode 999 ErrorType RestClientException CustomerId \"+customerId+\" SyncCallType ServiceAPI SyncCallDest BMT.Student\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//BMTOAS-2042 - logging for CloudWatch\r\n\t\t\t\t\t\tlogger.error(\"{\\\"Name\\\":\\\"CloudWatchLog\\\"\"\r\n\t\t\t\t\t\t\t\t+\",\\\"Application\\\":\\\"BMTSyncClient\\\"\"\r\n\t\t\t\t\t\t\t\t+\",\\\"IsError\\\":true\"\r\n\t\t\t\t\t\t\t\t+\",\\\"ErrorCode\\\":999\"\r\n\t\t\t\t\t\t\t\t+\",\\\"ErrorType\\\":\\\"RestClientException\\\"\"\r\n\t\t\t\t\t\t\t\t+\",\\\"CustomerId\\\":\"+customerId\r\n\t\t\t\t\t\t\t\t+\",\\\"CallType\\\":\\\"ServiceAPI\\\"\"\r\n\t\t\t\t\t\t\t\t+\",\\\"CallDest\\\":\\\"BMT.Student\\\"}\");\r\n\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t// On Error Mark the Student ID status as Failed\r\n\t\t\t\t\t\t\t// in Student_API_Status table\r\n\t\t\t\t\t\t\tprocessResponses(studentRequest, studentListResponse, false);\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\tlogger.error(\"Error attempting to process student responses.\", e);\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\treturn studentListResponse;\r\n\t}", "title": "" }, { "docid": "b96be564e62ebf035607ba53b97c6ec8", "score": "0.4084411", "text": "Response<String> post(final Paste paste);", "title": "" }, { "docid": "5f312ee9e0965f07d0b298ef9ff1680b", "score": "0.4079523", "text": "@Test\n public void testCanReceiveJSON() throws Exception {\n\n\n ObjectMapper mapper = new ObjectMapper();\n UrlDTO[] urls = mapper.readerFor(UrlDTO[].class).readValue(new ClassPathResource(INPUT_JSON).getFile());\n\n\n // -> When api receives a list of JSON\n\n mockMvc.perform(post(\"/url\").contentType(MediaType.APPLICATION_JSON_UTF8).content(mapper.writeValueAsBytes(urls)))\n .andExpect(status().isAccepted());\n\n\n // -> Then the same list of sites has to be passed to the service\n\n await().atMost(Duration.ONE_SECOND).until(() -> verify(crawlerService).submitUrls(Stream.of(urls).collect(Collectors.toList())));\n\n\n }", "title": "" }, { "docid": "bf344f8e4c5b072e80d0bae5a3cc6898", "score": "0.40715343", "text": "public void write(\n OutputStream stream\n ) throws ServiceException {\n List<Object> list = getDelegate();\n if(list instanceof Reconstructable){\n ((Reconstructable)list).write(stream);\n } else { \n throw new ServiceException(\n BasicException.Code.DEFAULT_DOMAIN, \n BasicException.Code.NOT_SUPPORTED,\n \"List to delegate to is not reconstructable\",\n new BasicException.Parameter(\"class\",list.getClass().getName())\n );\n }\n }", "title": "" }, { "docid": "e6368475aec1e5d27f431c6f37da0e72", "score": "0.40632075", "text": "List<FeedBackDto> execute(List<TwerksVo> factoryList);", "title": "" }, { "docid": "0ff39c2391c312b9cfefeaed14f65b9b", "score": "0.40600055", "text": "public void httpMulti(String url, RequestBody body, Map<String, String> header, Callback callback) {\n getClient().newCall(buildPostRequest(url, header, body)).enqueue(callback);\n }", "title": "" }, { "docid": "afdeb9e06e7b3a4e1e882c1d21ac4845", "score": "0.40556526", "text": "@RequestMapping(value = \"/location-bulklogs\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @Secured({AuthoritiesConstants.USER})\n @ApiOperation(value = \"Create list of location logs\", notes = \"User can list of new location logs. User with role User is allowed.\", response = LocationLogDTO.class)\n public ResponseEntity<?> createBulkLocationLogs(@Valid @RequestBody List<LocationLogCreateDTO> locationLogDTO) throws URISyntaxException, ParseException {\n \t\n log.debug(\"REST request to save LocationLog \");\n if(locationLogDTO.size() <= 0){\n \treturn ResponseEntity.badRequest().headers(HeaderUtil\n\t \t.createFailureAlert(\"locationLog\", \"locationloglistisnull\", \"LocationLog list is null\")).body(null);\n }\n User loggedInuser=getCurrentUser();\n if(loggedInuser == null){\n \t return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"locationLog\", \"loggedinusernull\", \"Logged in user is null\")).body(null);\n }\n locationLogDTO.sort(Comparator.comparing(LocationLogCreateDTO::getCreatedDateTime));\n LocationLogDTO result=null;\n for(LocationLogCreateDTO locationlog: locationLogDTO){\n\t log.debug(\"REST request to save LocationLog : {}\", locationlog);\n\t log.debug(\"Log source : {}\", locationlog.getLogSource());\n\t \n\t locationlog.setUserId(loggedInuser.getId());\n\t log.debug(\"LocationLog create for user : {}\", loggedInuser.getLogin());\n\t\t if( RandomUtil.checkFromAndToTime(loggedInuser.getFromTime(), loggedInuser.getToTime(),locationlog.getLogSource(), locationlog.getCreatedDateTime())){\n//\t\t \tlocationlog.setUserId(getCurrentUserLogin());\n\t \t\t\n\t \t\tif(locationlog.getLogSource().toString().equals(LogSource.GPS.toString())){\n\t \t\t\tlog.debug(\"Setting createdDateTime when log source is GPS\");\n\t \t\t\tlocationlog.setCreatedDateTime(Instant.now().toEpochMilli());\n\t \t\t\n\t \t\t}else if(locationlog.getLogSource().toString().equals(LogSource.NP.toString()) || locationlog.getLogSource().toString().equals(LogSource.NETWORK.toString()) ){\n\t \t\t\t// If logSource is NP then take time from createdTime\n\t \t\t\t\n\t \t\t\tlocationlog.setCreatedDateTime(locationlog.getCreatedDateTime());\n\t \n\t \t\t}\n\t \t\tresult = locationLogService.save(locationlog);\n\t \t log.debug(\"A new locationLog is created successfully\");\n\t \t } else {\n\t \t \tlog.debug(\"A new locationLog cannot be created, as log time is not between user's from time and to time\");\n\t \t }\n }\n \n if(result != null){\n \treturn ResponseEntity.created(new URI(\"/api/location-logs/\" + result.getId()))\n \t .headers(HeaderUtil.createEntityCreationAlert(\"locationLog\", result.getId().toString()))\n \t .body(result);\n }\n return ResponseEntity.ok()\n\t .headers(HeaderUtil.createEntityCreationAlert(\"locationLog\", \"locationlog created successfully\"))\n\t .body(\"\");\n }", "title": "" }, { "docid": "d9a1d28f39b84102d9445c1b01f8965d", "score": "0.40556204", "text": "private void postParty(Party party){\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\")\n .create();\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"http://lenin.pythonanywhere.com\")\n .addConverterFactory(GsonConverterFactory.create(gson))\n .build();\n\n ApiClient client2 = retrofit.create(ApiClient.class);\n\n //call for all parties\n Call<Party> call = client2.hostParty(party);\n Log.d(\"my tag\", \"Post request body: \" + party.getId());\n call.enqueue(new Callback<Party>() {\n @Override\n public void onResponse(Call<Party> call, Response<Party> response) {\n if (response.body() != null) {\n Log.d(\"my tag\", \"Post response code: \" + response.code());\n\n DB.addHostedParty(response.body());\n Snackbar.make(view, \"The party is created!\", Snackbar.LENGTH_LONG).show();\n\n Intent intent = getIntent();\n intent.putExtra(\"ID\", response.body().getId());\n setResult(RESULT_OK, intent);\n finish();\n\n //openPartyViewActivity(response.body().getId());\n }\n Log.d(\"my tag\", \"Posting party resulted empty: \" + response.code());\n }\n\n @Override\n public void onFailure (Call<Party> call, Throwable t){\n Log.d(\"my tag\", \"Posting party to DB has failed \");\n internetConnectionCheck();\n }\n });\n }", "title": "" }, { "docid": "8de8c3ca8186435b9d5328565dd6cded", "score": "0.40538985", "text": "public void post(AnotherTestResource res) {\n }", "title": "" }, { "docid": "8de8c3ca8186435b9d5328565dd6cded", "score": "0.40538985", "text": "public void post(AnotherTestResource res) {\n }", "title": "" }, { "docid": "5ee26a6517de7d98989d35ffff7e3013", "score": "0.40501368", "text": "public static void delete(AddressApiClient apiClient, AddressSpace addressSpace, Destination... destinations) throws Exception {\n apiClient.deleteAddresses(addressSpace, destinations);\n }", "title": "" }, { "docid": "358d2e2027618690d852de7f69d84b77", "score": "0.40490288", "text": "public List<Flight> getAlternativeFlights(String origin, String dest, Date date) throws IOException, JSONException, ParseException {\n ArrayList<Flight> list = new ArrayList();\n\n //post the request and return the json string\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\"); //2018-09-24T09:20:00\n String result = Connection.getPostResponseFromExternalFile(\"flightschedule.json\", asset);\n JSONObject jsonObject = new JSONObject(result);\n JSONObject rootObject = jsonObject.getJSONObject(\"response\").getJSONObject(\"departureFlights\");\n JSONArray flightsArray = rootObject.getJSONArray(\"flights\");\n String flightNo = rootObject.getJSONArray(\"flightLegs\").getJSONObject(0).getString(\"flightNumber\"); //get the flight number of the first object in the array only\n\n for (int i = 0; i < flightsArray.length(); i++) {\n JSONObject currObj = flightsArray.getJSONObject(i);\n Date departureDate = null;\n JSONArray segments = currObj.getJSONArray(\"segments\"); //probably different segments for different leg of the flights\n for (int j = 0; j < segments.length(); j++) {\n String dateInString = segments.getJSONObject(j).getJSONArray(\"legs\").getJSONObject(0).getString(\"departureDateTime\");\n departureDate = formatter.parse(dateInString);\n }\n\n if(departureDate.compareTo(date) > 0) { //only add to the list if the date/time is after the date that is passed in\n list.add(new Flight(origin, dest, flightNo, departureDate));\n }\n }\n\n\n for (Flight f : list) {\n printDebug(f);\n }\n\n return list;\n\n }", "title": "" }, { "docid": "d482d5152fd3a8b3985387f73403ef8d", "score": "0.40455905", "text": "@Named(\"floatingIP:add\")\n @POST\n @Path(\"/servers/{id}/action\")\n @Produces(MediaType.APPLICATION_JSON)\n @Payload(\"%7B\\\"addFloatingIp\\\":%7B\\\"address\\\":\\\"{address}\\\"%7D%7D\")\n void addToServer(@PayloadParam(\"address\") String address, @PathParam(\"id\") String serverId);", "title": "" }, { "docid": "cf0412a2509dc197b63d4fc831fbbd20", "score": "0.40381464", "text": "private void UpdateDestList() {\n RecieverCityPosts.clear();\r\n RecieverCityPosts.addAll(handler.SearchPostsFromCity(RecieverCitySelector.getSelectionModel().getSelectedItem()));\r\n ArrayList<String> PostNames = new ArrayList<String>();\r\n for (int i = 0; i < RecieverCityPosts.size(); i++) {\r\n PostNames.add(RecieverCityPosts.get(i).postoffice);\r\n }\r\n RecieverPostSelector.setItems(FXCollections.observableArrayList(PostNames));\r\n }", "title": "" }, { "docid": "710fc7260318f539fbba5459c3606421", "score": "0.4037933", "text": "public abstract Response postRequest(final URL url, final String json) throws URISyntaxException,\n MalformedURLException;", "title": "" }, { "docid": "0361b0e1d2db83e26d5984a1751f3fc2", "score": "0.40365797", "text": "public HttpBodyRequest postBody(String _queryUrl,\r\n Headers _headers, String _body);", "title": "" }, { "docid": "b0670bb76a57b552594e0012143e94bf", "score": "0.4034443", "text": "@Override\n protected String doInBackground(Void... params) {\n String response = new WebUtil().postMethod( body, WebApi.URL_ADD_SERVICE_TEST );\n return response;\n }", "title": "" }, { "docid": "f569e660b8888a9ad193d307851dd6cc", "score": "0.4031624", "text": "@RequestMapping(value = \"add-offer-letter-dtls\", method = { RequestMethod.POST })\n\tpublic ResponseEntity<JsonResponse<Object>> addOfferLetterDetailsPost(\n\t\t\t@RequestBody List<RestOfferLetterDetailModel> offerLetterDtls) {\n\t\tlogger.info(\"Method : addOfferLetterDetailsPost starts\");\n\t\tlogger.info(\"Method : addOfferLetterDetailsPost ends\");\n\t\treturn offerLetterDao.addOfferLetterDetailsPost(offerLetterDtls);\n\t}", "title": "" }, { "docid": "84556c5a6d0233bc3e9c92f059d4e0bb", "score": "0.4028106", "text": "@RequestMapping(value=\"/CREATE/connections\", method=RequestMethod.POST)\r\n\tpublic ModelAndView createConnection(@RequestParam(value=\"source\", required=false) String source, @RequestParam(value=\"targets\", required=false) String targets) {\r\n\t\tList<String> targetList = new LinkedList<>();\r\n\t\tMap<String, String> resultMap = new HashMap<>();\r\n\t\tModelAndView modelAndView = new ModelAndView();\r\n\t\tmodelAndView.setViewName(\"display\");\r\n\t\tString[] targsList = targets.split(\",\");\r\n\t\tfor(String targ : targsList) {\r\n\t\t\ttargetList.add(targ.trim());\r\n\t\t}\r\n\t\tresultMap = network.createConnections(source, targetList);\r\n\t\tmodelAndView.addAllObjects(resultMap);\r\n\t\treturn modelAndView;\r\n\t}", "title": "" }, { "docid": "0fcb2e14dac08c1b78a26e950d4463f2", "score": "0.40246984", "text": "@PostMapping(value=\"/multicast\",consumes = MediaType.APPLICATION_JSON_VALUE)\n\tpublic Employee postDataToMultiCastMsgQueue(@RequestBody Employee employee) {\n\t\tExchange exchange = producerTemplate.send(\"direct:emailSchedulerDynamicProcessor\", new EmployeeProcessor(employee));\n\t\tMessage outMessage = exchange.getOut();\n\t\tString outbody = outMessage.getBody(String.class);\n\t\tlog.info(\"outbody : \" + outbody);\n\t\t\n\t\tList<RouteDefinition> routes = exchange.getContext().getRouteDefinitions();\n\t\tfor(RouteDefinition route : routes) {\n\t\t\tSystem.out.println(route);\n\t\t}\n\t\t\n\t\tlog.info(\"---------\");\n\t\t//to http url\n//\t\tExchange exchange = producerTemplate.send(\"http4://localhost:8081/employees/test\", new Processor() {\n//\t\t\tpublic void process(Exchange exchange) throws Exception {\n//\t\t\t\texchange.getIn().setHeader(Exchange.CONTENT_TYPE, \"application/json\");\n//\t\t\t}\n//\t\t});\n//\t\tMessage messageExchangeStatus = exchange.getOut();\n//\t\tObject msgBody = messageExchangeStatus.getBody();\n//\t\tlog.info(\"exchangeStatus \" + messageExchangeStatus);\n\t\t\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e9b596a9d82eed131fe5b5c923a4f570", "score": "0.40200907", "text": "private Response handlePostRequest(Request req) {\n switch (req.getEndResource()) {\n case \"testcases\":\n return this.addBatch(req);\n case \"add\":\n return this.addTestcase(req);\n default:\n return Response.forbidden();\n }\n }", "title": "" }, { "docid": "c2fe8b6809cedde44cd47f6872964e65", "score": "0.40132725", "text": "@RequestMapping(path=\"posts/rest\", method=RequestMethod.POST)\n\tpublic Post createRestPost(@RequestBody Post post) {\n\t\treturn pSvc.create(post); \n\t}", "title": "" }, { "docid": "52695b70c02a2fcf8a09ccc76cbe2d61", "score": "0.40109128", "text": "public void pushPostToDcp(final Post p) throws JsonGenerationException, JsonMappingException,\n IOException, HttpResponseException {\n Configuration c = configurationService.getConfiguration();\n String syncApiURL = c.getSyncServer() + SYNC_REST_API + c.getSyncContentType() + \"/\" + p.getTitleAsId();\n\n HttpPost httpPost = new HttpPost(syncApiURL);\n\n PostToDCPContentProducer producer = new PostToDCPContentProducer(p, JsonEncoding.UTF8);\n\n EntityTemplate entityTemplate = new EntityTemplate(producer);\n\n ContentType httpContentType = ContentType.create(producer.getMimeType(), Consts.UTF_8);\n entityTemplate.setContentType(httpContentType.toString());\n httpPost.setEntity(entityTemplate);\n\n httpClient.execute(httpPost, new BasicResponseHandler(), createPreemptiveAuthContext(syncHost));\n }", "title": "" }, { "docid": "afca237318e055468efdbcef8aa3db73", "score": "0.4007092", "text": "private void addConsumerDestinations(com.google.api.Billing.BillingDestination value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureConsumerDestinationsIsMutable();\n consumerDestinations_.add(value);\n }", "title": "" }, { "docid": "efb2cc4b9d81a38584e725cd5fee20e9", "score": "0.39999527", "text": "public HttpRequest post(String _queryUrl,\r\n Headers _headers, List<SimpleEntry<String, Object>> _parameters);", "title": "" }, { "docid": "6372b965a6565898fe65ff363f76b722", "score": "0.39963633", "text": "@RequestLine(\"POST /api/v1/balance?addrs={addrs}\")\n @Headers({\n \"Accept: application/json\",\n })\n Object balancePost(@Param(\"addrs\") String addrs);", "title": "" }, { "docid": "e282c3996a807fc267e0a607ae04dda2", "score": "0.39959905", "text": "protected <T> T post(String misCode, String relativePath, List<NameValuePair> params, Object body,\n ParameterizedTypeReference<T> returnType)\n throws CollegeAdaptorException {\n try {\n URIBuilder uriBuilder = collegeAdaptorRestClient.applicationUriBuilder(misCode, relativePath);\n if (params != null) uriBuilder.addParameters(params);\n RequestEntity request = RequestEntity.post(uriBuilder.build()).body(body);\n return exchange(request, returnType);\n } catch (URISyntaxException e) {\n logger.error(\"URISyntaxException exception encountered\", e);\n throw new CollegeAdaptorException(String.format(\"Caught URISyntaxException exception %s\", e.getMessage()),\n null, HttpStatus.EXPECTATION_FAILED);\n }\n }", "title": "" }, { "docid": "469f9f5549a277787829d19ec5a90b9d", "score": "0.39948174", "text": "TaskList postTaskList(String title) throws IOException;", "title": "" }, { "docid": "b7fdb1ca03e13e7d7c01f931b9fd069f", "score": "0.39892307", "text": "ResponseEntity<BaseResponse> createPost(CreatePostRequest request) ;", "title": "" }, { "docid": "2b6b48849413dcf31df9b8ff4981f218", "score": "0.3988589", "text": "public static void post(String url, Integer timeout, IProcessInputStream processInputStream)\n throws IOException {\n Preconditions.checkNotNull(timeout, \"timeout\");\n Preconditions.checkNotNull(processInputStream, \"processInputStream\");\n PostMethod postMethod = new PostMethod(url);\n try {\n HttpClient httpClient = new HttpClient();\n httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(timeout);\n httpClient.getHttpConnectionManager().getParams().setSoTimeout(timeout);\n int statusCode = httpClient.executeMethod(postMethod);\n if (statusCode == HttpStatus.SC_OK || statusCode == HttpStatus.SC_CREATED) {\n InputStream inputStream = postMethod.getResponseBodyAsStream();\n processInputStream.process(inputStream);\n } else {\n throw new IOException(\"Failed to perform POST request. Status code: \" + statusCode);\n }\n } finally {\n postMethod.releaseConnection();\n }\n }", "title": "" }, { "docid": "f76ee35550c75849ae783effb81354f5", "score": "0.398855", "text": "@POST\n\t@Path(\"/Blacklist/{MSISDN}\")\n\t@Consumes(\"application/json\")\n\t@Produces(\"application/json\")\n\tpublic Response location(@PathParam(\"MSISDN\") String msisdn, String jsonBody) throws Exception {\n\t\tLOG.debug(\"location Triggerd jsonBody :\" + jsonBody + \" jsonBody: \" + jsonBody);\n\t\tGson gson = new GsonBuilder().serializeNulls().create();\n\n\t\tfinal StringBuilder errorMSG = new StringBuilder();\n\t\tfinal StringBuilder jsonreturn = new StringBuilder();\n\n\t\terrorMSG.append(\"{\").append(\"\\\"Failed\\\":\".intern()).append(\"{\".intern());\n\t\terrorMSG.append(\"\\\"messageId\\\":\\\"\".intern()).append(\"Blacklist Number\".intern()).append(\"\\\",\".intern());\n\t\terrorMSG.append(\"\\\"text\\\":\\\"\".intern()).append(\"Blacklist Number could not be added to the system \".intern())\n\t\t\t\t.append(\"\\\",\");\n\t\terrorMSG.append(\"\\\"variables\\\":\\\"\".intern()).append(msisdn).append(\"\\\"\");\n\t\terrorMSG.append(\"}}\");\n\n\t\tBlackList blackListReq = gson.fromJson(jsonBody, BlackList.class);\n\n\t\tString apiID = blackListReq.getAPIID();\n\t\tString apiName = blackListReq.getAPIName();\n\t\tString userID = blackListReq.getUserID();\n\n\t\tif (apiID != null && apiName != null && userID != null) {\n\n\t\t\ttry {\n\t\t\t\tBlackListDTO blackListDTO = new BlackListDTO();\n\t\t\t\tblackListDTO.setApiID(apiID);\n\t\t\t\tblackListDTO.setApiName(apiName);\n\t\t\t\tblackListDTO.setUserID(userID);\n\t\t\t\tblackListDTO.setUserMSISDN(msisdn);\n\n\t\t\t\tblackListWhiteListService.blacklist(blackListDTO);\n\n\t\t\t\tjsonreturn.append(\"{\").append(\"\\\"Success\\\":\".intern()).append(\"{\" + \"\\\"messageId\\\":\\\"\".intern())\n\t\t\t\t\t\t.append(\"Blacklist Number\".intern()).append(\"\\\",\");\n\t\t\t\tjsonreturn.append(\"\\\"text\\\":\\\"\").append(\"Blacklist Number Successfully Added to the system \".intern())\n\t\t\t\t\t\t.append(\"\\\",\");\n\t\t\t\tjsonreturn.append(\"\\\"variables\\\":\\\"\").append(msisdn).append(\"\\\"\").append(\"}}\");\n\n\t\t\t\treturn Response.status(Response.Status.OK).entity(jsonreturn.toString()).build();\n\t\t\t} catch (BusinessException msisdnEx) {\n\t\t\t\treturn Response.status(Response.Status.BAD_REQUEST).entity(msisdnEx.getErrorType()).build();\n\t\t\t}\n\t\t} else {\n\t\t\treturn Response.status(Response.Status.BAD_REQUEST).entity(errorMSG.toString()).build();\n\t\t}\n\n\t}", "title": "" }, { "docid": "ec5cc802b06b07d25be73c319a2e6ac1", "score": "0.39668593", "text": "public void setDestinationId(String destinationId) {\n this.destinationId = destinationId;\n }", "title": "" }, { "docid": "a95a7d341022cb39724840361f8003b4", "score": "0.39631367", "text": "private int PostJson(String url, String json) throws MalformedURLException , IOException {\n \n if (url == null || json == null) {\n return -1;\n }\n \n URL urlObj = new URL(url);\n HttpURLConnection con = (HttpURLConnection)urlObj.openConnection();\n \n con.setRequestMethod(\"POST\");\n con.setRequestProperty(\"Content-Type\" , \"application/json\");\n con.setRequestProperty(\"Content-Length\" , Integer.toString(json.getBytes().length));\n\n con.setDoInput(true);\n con.setDoOutput(true);\n DataOutputStream wr = new DataOutputStream(con.getOutputStream());\n wr.writeBytes(json);\n wr.flush();\n wr.close();\n\n return con.getResponseCode();\n }", "title": "" }, { "docid": "1a77d3fc99a870e8b61c846d75548f20", "score": "0.3961129", "text": "public java.util.List<String> getDestinations() {\n if (destinations == null) {\n destinations = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return destinations;\n }", "title": "" }, { "docid": "2b5c22008d3753737b2707a052b23f88", "score": "0.3959204", "text": "@POST\n\t\t@Path(\"/booking/postbooking\")\n\t\t@Consumes(MediaType.APPLICATION_JSON)\n\t\t@Produces(MediaType.APPLICATION_JSON)\n\t\t\n\t\tpublic String postBooking(String jsonString)\n\t\t\n\t\t{\n\t\t\tDouble tc;\n\t\t\tInteger cust,pckg;\n\t\t\tJSONParser parser= new JSONParser();\n\t\t\tJSONObject obj; \n\t\t\tString sql=\"UPDATE `bookings` SET `BookingDate`=?, `BookingNo`=?, `TripTypeId`=?,`TravelerCount`=?, `CustomerId`=?, `PackageId`=? WHERE `BookingId`=?\";\n\t\t\tString message = null;\n\t\t\ttry {\n\t\t\t\tobj= (JSONObject) parser.parse(jsonString);\n\t\t\t\tClass.forName(\"org.mariadb.jdbc.Driver\");\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mariadb://localhost:3306/TravelExperts\", \"harv\", \"password\");\n\t\t\t\tPreparedStatement stmt =conn.prepareStatement(sql);\n\t\t\t\tstmt.setString(1, (String) obj.get(\"BookingDate\"));\n\t\t\t\tstmt.setString(2, (String) obj.get(\"BookingNo\"));\n\t\t\t\tstmt.setString(3, null);\n\t\t\t\ttry {\n\t\t\t\t\tConnection conn1 = DriverManager.getConnection(\"jdbc:mariadb://localhost:3306/TravelExperts\", \"harv\", \"password\");\n\t\t\t\t\tStatement stmt1= conn1.createStatement();\n\t\t\t\t\tResultSet rs1 = stmt1.executeQuery(\"Select triptypeid from triptypes\");\n\t\n\t\t\t\t\tArrayList<String> trip = new ArrayList<>();\n\t\t\t\t\tint k=0;\n\t\t\t\t\twhile (rs1.next())\n\t\t\t\t\t{\n\t\t\t\t\t\ttrip.add(rs1.getString(1));\n\t\t\t\t\t\tk++;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tconn1.close();\n\t\t\t\t\tString tript=(String) obj.get(\"TripTypeId\");\n\t\t\t\t\t\n\t\t\t\t\tfor (int i=0; i<k; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tript==trip.get(i))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstmt.setString(3, (String) obj.get(\"TripTypeId\"));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\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\n\t\t\t\tif ((String)obj.get(\"TravelerCount\")==null)\n\t\t\t\t\tstmt.setString(4, (String)obj.get(\"TravelerCount\"));\n\t\t\t\telse\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttc = Double.parseDouble((String)obj.get(\"TravelerCount\"));\n\t\t\t\t\t\tstmt.setDouble(4, tc);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tstmt.setString(4, null);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif((String)obj.get(\"CustomerId\")==null)\n\t\t\t\t\tstmt.setString(5, (String)obj.get(\"CustomerId\"));\n\t\t\t\telse\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcust = Integer.parseInt((String)obj.get(\"CustomerId\"));\n\t\t\t\t\t\tstmt.setInt(5,cust);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tstmt.setString(5, null);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif((String)obj.get(\"PackageId\")==null)\n\t\t\t\t\tstmt.setString(6, (String)obj.get(\"PackageId\"));\n\t\t\t\telse\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpckg=Integer.parseInt((String)obj.get(\"PackageId\"));\n\t\t\t\t\t\tstmt.setInt(6,pckg );\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tstmt.setString(6, null);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tstmt.setInt(7, Integer.parseInt((String)obj.get(\"BookingId\")));\n\n\t\t\t\tif(stmt.executeUpdate()>0)\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Booking updated successfully\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Booking Update failed\";\n\t\t\t\t}\n\t\t\t\tconn.close();\n\t\t\t\t\n\t\t\t\t//ResultSet rs=stmt.executeQuery();\n\t\t\t} catch (ClassNotFoundException | SQLException | ParseException 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\t\t\n\t\t\t\n\t\t\t\n\t\t\treturn \"{ 'message':'\" + message + \"' }\";\n\t\t}", "title": "" }, { "docid": "4e488c4bf0e1deead75a0cf5160c39e3", "score": "0.39546302", "text": "@Test(dataProvider = \"postTestService_dataProvider\", dataProviderClass = TestServiceDataProvider.class)\n\tpublic void testPostServiceCall(String url, TestService testPostService) throws Exception {\n\t\tString testServiceUrl = new TestServiceURLBuilder(url).buildUrlWithOutParams(testPostService, \"URI_GET_MOVIES\");\n\n\t\t// Request Builder\n\t\tTestServiceRequestBuilder testServiceRequest = new TestServiceRequestBuilder(testServiceUrl);\n\n\t\t// Build PayLoad\n\t\tString payload = populatePayLoadInfo.populatePayLoad(testPostService);\n\n\t\t// Get Response\n\t\tClientResponse clientResponseFromPostService = getServiceClientResponse.getPostResponse(payload, testServiceRequest);\n\n\t\t// Validate post call response code\n\t\tnew TestServiceValidators.Validator(clientResponseFromPostService)\n\t\t\t\t.responseCode(testPostService.getExpectedResponseCode());\n\n\t\t// Make a get call and verify if the name exists\n\n\t\tString testGetServiceUrl = new TestServiceURLBuilder(url).buildGetURLBasedOnParams(testPostService,\n\t\t\t\t\"URI_GET_MOVIES\");\n\t\t\n\t\tTestServiceRequestBuilder testGetServiceRequest = new TestServiceRequestBuilder(testGetServiceUrl);\n\t\t\n\t\tClientResponse clientResponseFromGetService = getServiceClientResponse.getResponse(testGetServiceRequest);\n\t\t\n\t\tString responseBodyFromGetService = clientResponseFromGetService.getEntity(String.class);\n\t\t\n\t\tnew TestServiceValidators.Validator(clientResponseFromGetService)\n\t\t\t\t\t\t\t\t .validPostCallDetails(testPostService,responseBodyFromGetService);\n\n\t}", "title": "" }, { "docid": "47d6bf6915d74ee933c41d58eeb5eabf", "score": "0.39543462", "text": "@WebService(targetNamespace = \"http://schema.soujava.org.br/webservice/wsdl/1.1\", name = \"esbWebService\")\n@XmlSeeAlso({br.org.soujava.schema.webservice.wsdl._1.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface EsbWebService {\n\n @WebResult(name = \"WebServiceInvocationResult\", targetNamespace = \"http://schema.soujava.org.br/webservice/wsdl/1.1\", partName = \"parameters\")\n @WebMethod\n public br.org.soujava.schema.webservice.wsdl._1.WebServiceInvocationResult postEsbMessage(\n @WebParam(partName = \"postEsbMessageRequest\", name = \"xml\", targetNamespace = \"http://schema.soujava.org.br/webservice/wsdl/1.1\")\n java.lang.String postEsbMessageRequest\n );\n}", "title": "" }, { "docid": "99661da7de93f81570ec4c00027bb9bb", "score": "0.395061", "text": "@POST(\"/resource/Daily Plan\")\n public void daily_plan_insert(@Header(\"Cookie\") String contentRange,\n @Body POJO_Employee_Daily_Plan POJO,\n Callback<JsonElement> callback);", "title": "" } ]
efa7337d57055c466742cada90a88d08
Checks if Recycler view is empty and sets visibility of emptyView
[ { "docid": "3599710fa86641a902ec282a87a82faa", "score": "0.8539637", "text": "void checkIfEmpty() {\n if (emptyView != null && getAdapter() != null) {\n final boolean emptyViewVisible = getAdapter().getItemCount() == 0;\n emptyView.setVisibility(emptyViewVisible ? VISIBLE : GONE);\n setVisibility(emptyViewVisible ? GONE : VISIBLE);\n }\n }", "title": "" } ]
[ { "docid": "eb399adbba69bb77de4af67c35e8e80f", "score": "0.81456685", "text": "private void checkEmptyData() {\n boolean isDataEmpty = (mAdapter.getItemCount() == 0);\n mRecyclerView.setVisibility(isDataEmpty ? View.GONE : View.VISIBLE);\n mEmptyView.setVisibility(isDataEmpty ? View.VISIBLE : View.GONE);\n }", "title": "" }, { "docid": "d3bc2abd37115317744f44f8f462e11a", "score": "0.79561394", "text": "private void updateEmptyViewVisibility(Adapter adapter) {\n mEmptyView.setVisibility(adapter.getItemCount() == 0 ? View.VISIBLE : View.GONE);\n }", "title": "" }, { "docid": "9cbbf74e326957e6bad6b4e1c4d94cf3", "score": "0.7366936", "text": "@Override\n protected void onDataChanged() {\n if (getItemCount() == 0) {\n mRecyclerView.setVisibility(View.GONE);\n } else {\n mRecyclerView.setVisibility(View.VISIBLE);\n }\n }", "title": "" }, { "docid": "86b6edc269e9ff4126641b8279d755ab", "score": "0.72864044", "text": "public static void checkEmptyStatus(int size, LinearLayout viewEmpty) {\r\n viewEmpty.setVisibility((size > 0 ? View.GONE : View.VISIBLE));\r\n }", "title": "" }, { "docid": "331a8053531ff201be24661ea7eff4de", "score": "0.72220564", "text": "@Override\n protected void onDataChanged() {\n if (getItemCount() == 0) {\n mBinding.recyclerCoaching.setVisibility(View.GONE);\n mBinding.viewEmpty.setVisibility(View.VISIBLE);\n } else {\n mBinding.recyclerCoaching.setVisibility(View.VISIBLE);\n mBinding.viewEmpty.setVisibility(View.GONE);\n }\n mBinding.progressLoading.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "cbf440c7d71814b74e20ad89993f2b96", "score": "0.7177332", "text": "@Override\n public void updateEmptyView() {\n emptyView.setVisibility(View.VISIBLE);\n recyclerView.setVisibility(View.GONE);\n emptyView.setText(getActivity().getResources().getString(R.string.errorData));\n }", "title": "" }, { "docid": "d46b5d8fc03d8b3b17d738295c4061b6", "score": "0.7100283", "text": "public void setEmptyView(View emptyView) {\n this.emptyView = emptyView;\n checkIfEmpty();\n }", "title": "" }, { "docid": "d46b5d8fc03d8b3b17d738295c4061b6", "score": "0.7100283", "text": "public void setEmptyView(View emptyView) {\n this.emptyView = emptyView;\n checkIfEmpty();\n }", "title": "" }, { "docid": "6c60f05d23f4a4938f0dd89b5881bddb", "score": "0.6984983", "text": "private void makeEmpty() {\n if (adapter.getItemCount() == 0) {\n bookRV.setVisibility(View.GONE);\n emptyText.setVisibility(View.VISIBLE);\n if (author_id == SamLibConfig.SELECTED_BOOK_ID) {\n emptyText.setText(R.string.no_selected_books);\n } else {\n emptyText.setText(R.string.no_new_books);\n }\n\n } else {\n bookRV.setVisibility(View.VISIBLE);\n emptyText.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "2d6fb6e6718630874aee8f03409cc31b", "score": "0.6941555", "text": "public void checkEmpty() {\n\n View v = getView();\n\n // tell user list is empty\n TextView listEmptyText = (TextView) v.findViewById(R.id.list_is_empty_prompt);\n\n // visual aid\n ImageView receiptImage = (ImageView) v.findViewById(R.id.receipt_background);\n\n // button to trigger adding default list\n Button fillDefaultButton = (Button) v.findViewById(R.id.fill_with_default);\n\n if (mAdapter.getItemCount() == 0) {\n\n // enable default button/visual aid\n listEmptyText.setVisibility(View.VISIBLE);\n receiptImage.setVisibility(View.VISIBLE);\n fillDefaultButton.setVisibility(View.VISIBLE);\n fillDefaultButton.setClickable(true);\n fillDefaultButton.setFocusable(true);\n } else {\n\n // otherwise don't enable default option\n listEmptyText.setVisibility(View.INVISIBLE);\n receiptImage.setVisibility(View.INVISIBLE);\n fillDefaultButton.setVisibility(View.INVISIBLE);\n fillDefaultButton.setClickable(false);\n fillDefaultButton.setFocusable(false);\n }\n }", "title": "" }, { "docid": "d04c22251861cbc6aee1818990609fea", "score": "0.6895749", "text": "private void displayEmptyView() {\n playerView.setVisibility(View.INVISIBLE);\n thumbnailImageView.setVisibility(View.INVISIBLE);\n emptyView.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "0da65cb88543732c58bafdcb09d0e3d8", "score": "0.68637985", "text": "void setEmptyView(View emptyView) {\n mEmptyView = emptyView;\n }", "title": "" }, { "docid": "c7b18aae37a8956a9956e15d2b39bb78", "score": "0.6825616", "text": "private void showListEmpty() {\n view.findViewById(R.id.no_internet_fragment).setVisibility(View.GONE);\n view.findViewById(R.id.loading_panel_my_coletas).setVisibility(View.GONE);\n view.findViewById(R.id.container_fragment_my_coletas).setVisibility(View.GONE);\n view.findViewById(R.id.empty_list).setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "74c6bf4f824bae78dfea100cbf9b77b1", "score": "0.6684015", "text": "public void checkEmptyExtraView() {\n if ( extraViewTabFolder.getItemCount() == 0 ) {\n disposeExtraView();\n }\n }", "title": "" }, { "docid": "af992ef9a990856d4fb5e72a65062e46", "score": "0.6637487", "text": "@Override\n public void onDataChanged() {\n super.onDataChanged();\n\n Log.v(TAG,\"this is the itemCount = \" + getItemCount());\n\n //if the item count is 0 in the adapter, then it sets an empty text view, or vice versa\n if (getItemCount() == 0) {\n mEditsRecycler.setVisibility(View.GONE);\n editsEmptyTextView.setVisibility(View.VISIBLE);\n } else{\n mEditsRecycler.setVisibility(View.VISIBLE);\n editsEmptyTextView.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "e7381f220f4bd94e73275bf1104e23b6", "score": "0.66358024", "text": "private void checkListEmpty() {\n if(source == null || source.size() == 0){\n emptyLikeRela.setVisibility(View.VISIBLE);\n emptyText.setText(R.string.wallet_contact_empty);\n }else{\n emptyLikeRela.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "4922b3b8eaea1212981c2bdc532bb0d5", "score": "0.63865846", "text": "public void setEmptyView(View emptyView) {\n setEmptyView(emptyView, null);\n }", "title": "" }, { "docid": "e4e73f9f4fa8a04154e8057e7033ef13", "score": "0.6356695", "text": "@Override\n public void onEmptyList() {\n if(mView == null) return;\n\n mView.hideProgress();\n mView.displayEmptyListMessage();\n }", "title": "" }, { "docid": "154a648b05a56db08a09501669bf7492", "score": "0.6354097", "text": "private void toggleEmptyAudios() {\n // you can check audiosList.size() > 0\n\n if (db.getAudiosCount() > 0) {\n noAudiosView.setVisibility(View.GONE);\n } else {\n noAudiosView.setVisibility(View.VISIBLE);\n }\n }", "title": "" }, { "docid": "44442a1d1ff69950776641af8a677fed", "score": "0.62911266", "text": "@Override\n public void onLayoutReady() {\n //here comes your code that will be executed after all items are laid down\n //\n loadingImage.setVisibility(View.GONE);\n recyclerView.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "8e2eb7b98204d64e28a9303555168cce", "score": "0.6277848", "text": "public synchronized boolean isEmpty()\n {\n return getCount() == 0;\n }", "title": "" }, { "docid": "973c18e3e015cea80ddd2ae4094cab8d", "score": "0.61749053", "text": "public boolean empty()\n\t{\n\t\treturn numItems == 0;\n\t}", "title": "" }, { "docid": "6fc0369cdaef6c05bc702aadae60111b", "score": "0.6167386", "text": "private void setEmptyListView(CharSequence constraint) {\n if (isEmpty()) {\n if (emptyView != null) {\n emptyView.setVisibility(View.VISIBLE);\n }\n\n emptyTextView.setText(Html.fromHtml(String.format(\n context.getString(R.string.sch_item_empty_list),\n constraint, vehicleName)));\n } else {\n if (emptyView != null) {\n emptyView.setVisibility(View.GONE);\n }\n }\n }", "title": "" }, { "docid": "0c9107527e5ca61e6a7823046b16a41a", "score": "0.6153336", "text": "private void m121031d() {\n if (isEmptyShowing()) {\n refresh(false);\n }\n }", "title": "" }, { "docid": "382c5f057d24f129783811b7870c776d", "score": "0.6153129", "text": "private void setEmptyText() {\n if (emptyText != null) {\n if (classroomArrayList.isEmpty()) {\n emptyText.setVisibility(View.VISIBLE);\n } else {\n emptyText.setVisibility(View.GONE);\n }\n }\n }", "title": "" }, { "docid": "ba5c9c28732d68b4f02505e8c32366f4", "score": "0.61347973", "text": "@Override\n public void assertIsHidden() {\n findRecyclerView().check(LayoutManagerItemVisibilityAssertion.isHidden(index));\n }", "title": "" }, { "docid": "526d3d7cfa8da35e39a0905aec90f012", "score": "0.6068981", "text": "@Override\n\tprotected void notifyView() {\n\n\t\tprogressBar.setVisibility(View.GONE);\n\n\t\tif(adapter != null && adapter.getCount() > 0){\n\t\t\tlistView.setAdapter(adapter);\n\t\t\tlistView.setVisibility(View.VISIBLE);\n\t\t\t\n\t\t}else{\n//\t\t\tToastUtil.showToast(this, \"没有数据\");\n\t\t\ttvText.setVisibility(View.VISIBLE);\n\t\t}\n\t}", "title": "" }, { "docid": "ad0b8b40c79b556c7ded3186a33ced32", "score": "0.60421807", "text": "public boolean empty() {\n return size == 0;\n }", "title": "" }, { "docid": "bcfa9f54d16331b235fef4bec1613fd0", "score": "0.6031933", "text": "public boolean isEmpty() {\n return numberItems == 0;\n }", "title": "" }, { "docid": "a6b0c3c1b3c076c3aa4e02b7967f4653", "score": "0.6001198", "text": "public boolean empty() {\n return size == 0;\n }", "title": "" }, { "docid": "82f881d3e622cc13cef3a66a830a0ab8", "score": "0.5998106", "text": "public boolean empty () {\n return (this.size == 0); \n }", "title": "" }, { "docid": "76d06342c5d0e101f7995344e5332479", "score": "0.5994261", "text": "public boolean empty() {\n return size == 0;\n }", "title": "" }, { "docid": "1a21ca1cd8034cc801425adf3c89ec72", "score": "0.59741294", "text": "public boolean isEmpty(){\n return numItems == 0;\n }", "title": "" }, { "docid": "3070a5b8c50e2cafb9b8a17a9499a3c5", "score": "0.596753", "text": "private void updateViews() {\n if (layoutManager.findFirstVisibleItemPosition() == 0) {\n rvChat.smoothScrollToPosition(0);\n }\n if (chatMessagesList.size() == 0) {\n// layoutNoDataFound.setVisibility(View.VISIBLE);\n FirebaseDatabaseQueries.getInstance().deleteRoom(roomId, FirebaseConstants.GROUP_CHAT, \"\", productId);\n } else {\n layoutNoDataFound.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "a2936962bebc80e28f68cabcb39a2344", "score": "0.5929943", "text": "public void refresh() {\n mReunions = mReunionApiService.getReunions();\n Log.d(\"REFRESH\", \"refresh: am i visible ? \" + isVisible());\n // assert\n // TODO pas besoin de `if (isVisible())`\n if (isVisible()) mRecyclerView.setAdapter(new ReunionRecyclerAdapter(getContext(), mReunions));\n }", "title": "" }, { "docid": "930150645a341b5f9ae7c0361a76cf5a", "score": "0.5921113", "text": "public void showIfNeeded() {\n if (universes.size() > 1) {\n setVisibility(View.VISIBLE);\n }\n else {\n setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "625e5196f4e3150a3faa59d21099e9a8", "score": "0.59192944", "text": "@Override\n public boolean empty() {\n return this.size() == 0;\n }", "title": "" }, { "docid": "64d183494ca9ba41e71ce0f7eb3bad1a", "score": "0.5902547", "text": "@Override\n public void onAdapterAboutToEmpty(int itemsInAdapter) {\n }", "title": "" }, { "docid": "64d183494ca9ba41e71ce0f7eb3bad1a", "score": "0.5902547", "text": "@Override\n public void onAdapterAboutToEmpty(int itemsInAdapter) {\n }", "title": "" }, { "docid": "29fbb31def91aca062d0d51d6b8206bb", "score": "0.58992326", "text": "private void onEmptyListShowAttentionMessage() {\n TextView attentionMessageView = (TextView) findViewById(R.id.text_empty_list);\n attentionMessageView.setVisibility(View.GONE);\n if (noteListAdapter.getItemCount() <= 0) {\n attentionMessageView.setVisibility(View.VISIBLE);\n }\n }", "title": "" }, { "docid": "7f463c443088b0e1665604bc9c584433", "score": "0.5898792", "text": "private void initiateViews() {\n mRecyclerView.setVisibility(View.VISIBLE);\n mProgressbar.setVisibility(View.INVISIBLE);\n errorMessageView.setVisibility(View.INVISIBLE);\n errorMsg = \"\";\n }", "title": "" }, { "docid": "4ea56940da9bc7e243eb47e7a4c780f2", "score": "0.5890824", "text": "private void checkViewportEmpty() {\n if (bitmap == null) return;\n if (!viewport.isEmpty()) return;\n\n viewport.set(0, 0, bitmap.getWidth(), bitmap.getHeight());\n }", "title": "" }, { "docid": "31e654d161183aa2d1e0b26082eb9f09", "score": "0.58874345", "text": "public boolean isEmpty() { return (getSize() == 0); }", "title": "" }, { "docid": "8865d6925a4a09b851297f6869319ddd", "score": "0.5868697", "text": "public boolean isEmpty() {\r\n\treturn numItems == 0;\r\n }", "title": "" }, { "docid": "80fac1d391b28a1fe057fee05e188253", "score": "0.58428895", "text": "public boolean empty() {\r\n \r\n \treturn size == 0;\r\n }", "title": "" }, { "docid": "6bb438eb963e042040ef179013abc0da", "score": "0.5826153", "text": "public boolean isEmpty(){\n return this.size == 0;\n }", "title": "" }, { "docid": "9a19b927664a233e73bede8fd5548457", "score": "0.5823765", "text": "public boolean isEmpty() { return size == 0; }", "title": "" }, { "docid": "bcec49afc5129cfb0e5a5f3bbdba130d", "score": "0.5823327", "text": "public boolean empty() { return getTiles().isEmpty(); }", "title": "" }, { "docid": "ac05c02a551115308a643f51ccac8256", "score": "0.58198845", "text": "public boolean isEmpty(){\n return _size == 0;\n }", "title": "" }, { "docid": "04f157fa38b46de4b8e853e6f0a0ff22", "score": "0.581603", "text": "public boolean isDisplayEmpty() \n\t{\n\t\tif(getSize() == 0)\n\t\t\treturn true;\n\t\telse if(getSize() == 1 && inDisplay.get(0).equals(noneIcon))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2d9f9f0049816963cba851fc1b75a670", "score": "0.5815777", "text": "@Exported(visibility=999)\n public boolean isEmpty() {\n return getTotalCount() == 0;\n }", "title": "" }, { "docid": "d468efb14d59cc1b60a6f5d8556a1305", "score": "0.5811814", "text": "@Test\n public void checkIf_listOfMeetings_isNotBeEmpty() {\n\n onView(withId(R.id.recycler_view_list_meetings)).check(matches(hasMinimumChildCount(1)));\n }", "title": "" }, { "docid": "ad0076dc285a8d2003e546c2cbc31648", "score": "0.58034664", "text": "@Override\n public void run() {\n linlaEmpty.setVisibility(View.VISIBLE);\n listAnswers.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "fc075f15e5ac7ebf246fe486f49dda8e", "score": "0.5795828", "text": "public boolean empty() {\r\n\t\treturn size == 0;\r\n\t}", "title": "" }, { "docid": "ee54fa67f19ceb1c082fabe80dbb0ada", "score": "0.57951397", "text": "public boolean isEmpty() {\n return items == 0; \n }", "title": "" }, { "docid": "996955c15e236b514b7d7be1f1b8bd8d", "score": "0.5779196", "text": "public boolean isEmpty() {\n return this.size == 0;\n }", "title": "" }, { "docid": "60e95de0b4d55f2b919f97ff29f60269", "score": "0.5767469", "text": "@Override\n public void run() {\n linlaEmpty.setVisibility(View.VISIBLE);\n listAnswers.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "d6ca050a5562d5f6473bd9b1b0eae137", "score": "0.57612157", "text": "@Override\n public void run() {\n listAnswers.setVisibility(View.VISIBLE);\n linlaEmpty.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "02f657e50625eadf5ec241611c166cfb", "score": "0.5750817", "text": "@Override\n\tpublic void onNothingSelected(AdapterView<?> parent) {\n\n\t\theightcms.setVisibility(LinearLayout.VISIBLE);\n\t\theightfts.setVisibility(LinearLayout.INVISIBLE);\n\n\t}", "title": "" }, { "docid": "30f1d4625dbb988dbf24b97a8cfdf071", "score": "0.5743769", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n\r\n View root = inflater.inflate(R.layout.fragment_pictures, container, false);\r\n mRecyclerViewMediaList = (RecyclerView) root.findViewById(R.id.recyclerViewMedia);\r\n\r\n gridLayoutManager = new GridLayoutManager(getActivity(),2);\r\n mRecyclerViewMediaList.setLayoutManager(gridLayoutManager);\r\n ArrayList<File> files = this.getListFiles(\r\n new File(Environment.getExternalStorageDirectory().getAbsoluteFile()+WHATSAPP_STATUSES_LOCATION));\r\n ImageAdapter recyclerViewMediaAdapter = new ImageAdapter(files, getActivity());\r\n\r\n\r\n mRecyclerViewMediaList.setAdapter(recyclerViewMediaAdapter);\r\n\r\n TextView emptyList = root.findViewById(R.id.emptyList);\r\n if (files.size()==0){\r\n emptyList.setVisibility(View.VISIBLE);\r\n }\r\n\r\n return root;\r\n }", "title": "" }, { "docid": "b81bab61a040d3afc9eba5c542998b0d", "score": "0.5735928", "text": "public final boolean empty()\n {\n return size() == 0;\n }", "title": "" }, { "docid": "9a7a509f43193a8a24c17e9340eff538", "score": "0.5730472", "text": "public boolean isEmpty(){\n return size == 0;\n }", "title": "" }, { "docid": "9a7a509f43193a8a24c17e9340eff538", "score": "0.5730472", "text": "public boolean isEmpty(){\n return size == 0;\n }", "title": "" }, { "docid": "1d17b41e127ac69b891a3dc9d2959422", "score": "0.5729376", "text": "@Test\n public void noTasks_CompletedTasksFilter_AddTaskViewNotVisible() {\n viewCompletedTasks();\n\n // Add dog View should be displayed\n onView(withId(R.id.noTasksAdd)).check(matches(not(isDisplayed())));\n }", "title": "" }, { "docid": "2774fced2b75b28a3576ed7c861c12ad", "score": "0.5723474", "text": "public boolean isEmpty() {\n return size == 0;\n\n }", "title": "" }, { "docid": "fdf94afca874769d27243b74dc525422", "score": "0.57213485", "text": "@Override\n\t\t\t\tpublic void call_onLoad() {\n\t\t\t\t\tpageView.setVisibility(View.GONE);\n\t\t\t\t\tlocalItemAdapter.notifyDataSetChanged();\n\t\t\t\t}", "title": "" }, { "docid": "795b8a2be10395e80f4ab3a23db8ac7a", "score": "0.5721", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "0c159e26a661f20f92420a6f994d6bb0", "score": "0.57208663", "text": "public Builder clearEmpty() {\n \n empty_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8939b07f560f2672cef5f6c10814174a", "score": "0.57200396", "text": "public boolean isEmpty(){\n return size == 0;\n }", "title": "" }, { "docid": "e4f12944d9d598b2a6b6a9cc5ef240f2", "score": "0.57178646", "text": "public boolean isEmpty() {\n return (nItems==0);\n }", "title": "" }, { "docid": "953da352e6f65aa2bcd418a323d95ae2", "score": "0.57170635", "text": "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "953da352e6f65aa2bcd418a323d95ae2", "score": "0.57170635", "text": "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "953da352e6f65aa2bcd418a323d95ae2", "score": "0.57170635", "text": "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "1b2ed211268808ac807ca33f8effb062", "score": "0.57139426", "text": "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\thaveNoMoreTv.setVisibility(View.GONE);\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}", "title": "" }, { "docid": "1e724460f9082d9c0bedd3fea28c5447", "score": "0.5711325", "text": "public boolean isEmpty() {return size == 0;}", "title": "" }, { "docid": "ba1a10b2a1dd4d7815640067c9ccab3b", "score": "0.56914055", "text": "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn items.isEmpty();\r\n\t}", "title": "" }, { "docid": "66d7c13d1590b9c57a1749d39d47b74d", "score": "0.56898475", "text": "private void isPopulateView() {\n if (!isPopulate) {\n CoordinatorLayout.LayoutParams relativeParams = new CoordinatorLayout.LayoutParams(CoordinatorLayout.LayoutParams.MATCH_PARENT, CoordinatorLayout.LayoutParams.MATCH_PARENT);\n relativeParams.setMargins(0, 0, 0, 0);\n llDetails.setLayoutParams(relativeParams);\n }\n }", "title": "" }, { "docid": "43efdb340556cbda2e03e2953c442371", "score": "0.56892866", "text": "default boolean isEmpty()\n {\n return getContainedItems().size() == 0;\n }", "title": "" }, { "docid": "98f863e096e6cab263046721811d0c5f", "score": "0.5688504", "text": "public boolean isEmpty() {\n return this.container.isEmpty();\n }", "title": "" }, { "docid": "7884eb58dd202f2fdc1dd40be69b708b", "score": "0.56829756", "text": "public void setEmptyView(View emptyView, LayoutParams params) {\n if (emptyView == null)\n return;\n\n if (this.emptyView != null)\n contentContainer.removeView(this.emptyView);\n this.emptyView = emptyView;\n if (params == null) {\n params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n params.gravity = Gravity.CENTER;\n }\n contentContainer.addView(emptyView, params);\n emptyView.setVisibility(GONE);\n }", "title": "" }, { "docid": "23fc8f753303c677da0cca847b05f6a2", "score": "0.56816983", "text": "public boolean isEmpty() {\r\n return size == 0;\r\n }", "title": "" }, { "docid": "492cc2220e8f331ac4a742f0fbe41f11", "score": "0.5679565", "text": "public boolean isEmpty() {\n return this.size == 0;\n }", "title": "" }, { "docid": "72ece2905e57786dbe4e5be17fb45200", "score": "0.56791127", "text": "@Override\n public boolean isEmpty() { return this.current_size == 0; }", "title": "" }, { "docid": "6768a7b45cdc4672748640d14c9ea678", "score": "0.5678114", "text": "public boolean isEmpty(){\r\n\t\t//returns true if it is empty else returns false\r\n\t return (numberOfItems==0);\r\n\t}", "title": "" }, { "docid": "22f696305a7ec40abc3b0725922624cb", "score": "0.5676134", "text": "public boolean isEmpty() {\r\n return this.size == 0;\r\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "7414e6523ffb32eae3b7904f47ab4e7e", "score": "0.56755614", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "7eeee170a15564b7079d807fbbeee9c2", "score": "0.0", "text": "@Override\n\t\t\t\tpublic void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop,\n\t\t\t\t\t\tint oldRight, int oldBottom) {\n\t\t\t\t\tLog.i(TAG, \"view.visiable=\" + v.getVisibility());\n\n\t\t\t\t\tcheckExposure(iflyAd.position);\n\t\t\t\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836227", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.66787636", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.66541135", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.66541135", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "f777356e2cd2fecd871f35f7e556fda8", "score": "0.6645589", "text": "public void mo3640e() {\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.653176", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481001", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "5314003d8592219f71035b81985fabc0", "score": "0.6463584", "text": "@Override\n\tpublic void roule() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.64615256", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6236919", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6236919", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61536866", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "f9de8c9acb961a9d05ed00de5fe361e7", "score": "0.6064516", "text": "@Override\n\tpublic void seRetrage() {\n\t\t\n\t}", "title": "" }, { "docid": "483ae2cb94563f8e11864a532e44b464", "score": "0.60618675", "text": "@Override\r\n public void perturb() {\n \r\n }", "title": "" }, { "docid": "e41230eaa4480036f1db3ae4856b5e2c", "score": "0.6049632", "text": "@Override\n\tpublic void evoluer() {\n\t\t\n\t}", "title": "" }, { "docid": "1fd4f5b0b471084e004373c89c1cf248", "score": "0.60410726", "text": "@Override\r\n\tpublic void sen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "432a53d7cc7bff50c3cce7662418fe22", "score": "0.60223335", "text": "private static void daelijeom() {\n\t\t\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.60222465", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "feb1a9485d06df38283881186fb528a9", "score": "0.6014257", "text": "@Override\n \tprotected void initialize() {\n \n \t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.600439", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "609ec2ff060d9d4cb0276468f482734d", "score": "0.5976413", "text": "public void mo89673a() {\n }", "title": "" }, { "docid": "f3ea867fdaa4b61546bfc393614a093c", "score": "0.5967974", "text": "@Override\n\tpublic void setingInicial() {\n\t\t\n\t}", "title": "" }, { "docid": "3211287bc24304a8ca2975647e8a262e", "score": "0.59538656", "text": "public void mo1702b() {\n }", "title": "" }, { "docid": "e98e1f8ddb7a94a5d95c29c94232f737", "score": "0.59429145", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2d61391fe8770661f25917f3770f2a26", "score": "0.59255224", "text": "@Override\n\t\tpublic void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a55a150557f80abcbd733ee3162b0661", "score": "0.5925188", "text": "private void m18301a() {\n }", "title": "" }, { "docid": "6a8c6480f9fa5ab89d0437d00ffffccc", "score": "0.59197116", "text": "@Override\n public void tirer() {\n\n }", "title": "" }, { "docid": "8f8a1c1dfa100614be8cac1247e068d5", "score": "0.59195125", "text": "@Override\r\n\t\t\tpublic void work() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "619a28ba3c7707bdf8bb1451d5c3d12b", "score": "0.59101814", "text": "public void mo25069a() {\n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903041", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "3e6e2e657db69bfc88c40c8467801266", "score": "0.5899409", "text": "@Override\r\n\tpublic void ben() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1134c4caabd33b9bbd414763740fddde", "score": "0.5896242", "text": "@Override\n\tpublic void respirar() {\n\n\t}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.5895427", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "1dc1426b3b1c079ac18377166a6b34d3", "score": "0.58936226", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "f737e2251cf43d326f43b44297696e55", "score": "0.588949", "text": "@Override\n\tpublic void patrol() {\n\n\t}", "title": "" }, { "docid": "de8c2aa495b8cdade7e8895e58745ea2", "score": "0.5887429", "text": "public void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886527", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "13e4409784fd6f872b474e6effe9726e", "score": "0.5878922", "text": "@Override\n protected void initialization() {\n\n\n\n }", "title": "" }, { "docid": "bafce2e94d56e61baeadcb37047f6035", "score": "0.585865", "text": "@Override\n\tprotected void postprocess() {\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854208", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854208", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854208", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.5852625", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.5852625", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "cdf2a119ee69429ad4420d45c29db1b6", "score": "0.58496034", "text": "@Override\n\tpublic void netword() {\n\t\t\n\t}", "title": "" }, { "docid": "2bcac1bab4eaa6c9cc4cb7e33c684cef", "score": "0.5847584", "text": "public void mo1691a() {\n }", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.58409977", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.58409977", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "6ed3e363c02164bd00163fa46e2c48c2", "score": "0.583631", "text": "@Override\n public void init_moduule() {\n \n }", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.58362764", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.58362764", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "3ea264268cd945e9281ac9d06e9bb7c5", "score": "0.5830224", "text": "@Override\n\tpublic void euphoria() {\n\t\t\n\t}", "title": "" }, { "docid": "3ea264268cd945e9281ac9d06e9bb7c5", "score": "0.5830224", "text": "@Override\n\tpublic void euphoria() {\n\t\t\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5793332", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.57912874", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5783299", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "b04ed49986fb3f4321a90ec19ab7f86d", "score": "0.5775919", "text": "@Override\n public void alistar() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.5773285", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "10e00e5505d97435b723aeadb7afb929", "score": "0.5771295", "text": "@Override\n\tpublic void pintar2() {\n\t\t\n\t}", "title": "" }, { "docid": "683eea6c39ec4e6df90f6be05200559d", "score": "0.57696337", "text": "@Override\r\n public void confer(){\n \r\n }", "title": "" }, { "docid": "0e6111ae009ad752a364e5e9fb168e98", "score": "0.5769558", "text": "@Override\n\tpublic void volumne() {\n\t\t\n\t}", "title": "" }, { "docid": "728d084a23664ecf9b5c04acb6367b9c", "score": "0.5768512", "text": "@Override\r\n\tpublic void descarnsar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "359987993ad84757f9d7a12eaf38d2d7", "score": "0.5768341", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "3f651ef5a6fad17e313e8da4ea72b6e3", "score": "0.57646334", "text": "@Override\n\tpublic void CT() {\n\t\t\n\t}", "title": "" }, { "docid": "615018f0186427ab904e872db6726b2d", "score": "0.575811", "text": "@Override\n public void init()\n {\n \n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.574912", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.574912", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.574912", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e634836bc1d61a011e04bfb67a971792", "score": "0.5746405", "text": "@Override\r\n\tpublic void sair() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a7cff18dc205a0d79dbe54bb988e6894", "score": "0.5742232", "text": "public void emettreSon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.57356656", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5732775", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "ac5a7a92eda66d2b7ef40199230fa4af", "score": "0.5731668", "text": "@Override\n\tpublic void arbeiteInPizzeria() {\n\n\t}", "title": "" }, { "docid": "d1c2c284b75d7d46145b6f407496cd96", "score": "0.5725075", "text": "@Override\n\t\tprotected void initParameters() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5714821", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5714821", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57132614", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "65022f0bb57de78da8518cd156b102e6", "score": "0.57103276", "text": "private void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "216da885329e8d80cdc3490fda895c11", "score": "0.5708867", "text": "@Override\n\tpublic void yaz1() {\n\t\t\n\t}", "title": "" }, { "docid": "3c6f91c038ca7ffdab72b5c233b827c5", "score": "0.57041454", "text": "@Override\n\tprotected void initMethod() {\n\t}", "title": "" }, { "docid": "d3ea98d4cf6d33f166c8de2a1f7ab5a5", "score": "0.5698766", "text": "@Override\r\n\tpublic void Collusion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3ea98d4cf6d33f166c8de2a1f7ab5a5", "score": "0.5698766", "text": "@Override\r\n\tpublic void Collusion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f3e16954465fbae384d88f411211419", "score": "0.56969887", "text": "@Override\r\n public int E_generar() {\r\n return 0;\r\n }", "title": "" }, { "docid": "365a661b2084f764f5e458915ff735ac", "score": "0.5686309", "text": "@Override\n public int getMunition() {\n return 0;\n }", "title": "" }, { "docid": "40539b782464082aab77fae6b047eade", "score": "0.5682121", "text": "@Override\n\tprotected int get_count() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677473", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "5f628d368579dd40ef68362831006940", "score": "0.5677236", "text": "@Override\n\tpublic void fahreFahrzeug() {\n\n\t}", "title": "" }, { "docid": "5ae17f2516c21590c850e6758048effe", "score": "0.5661872", "text": "@Override\n public int getID()\n {\n return 0;\n }", "title": "" }, { "docid": "b8cd427648ea50c94f93c47d407d10a0", "score": "0.56601405", "text": "public void mo3639d() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5654782", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5654782", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5654782", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5654782", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
93e15c1c3bd7716be48b2d722c037e50
Ensures a player is initilaized correctly and has no pokemon, no opponent and is set to the correct turn
[ { "docid": "b646e609c5c0c9d91fa8dadeb64d03a6", "score": "0.6279907", "text": "@Test\n\tpublic void testInitialization()\n\t{\n\t\tPlayer p1 = new Player(0);\n\t\t\n\t\tassertEquals(0, p1.getNumPokemon());\n\t\tassertNull(p1.getActivePokemon());\n\t\tassertNull(p1.getOpponent());\n\t\tassertEquals(0, p1.getID());\n\t\tassertEquals(-1, p1.getTurn());\n\t}", "title": "" } ]
[ { "docid": "085bee645e18af2a0bc16337a383bc4a", "score": "0.6732437", "text": "public void initiateTurn() { moves_remaining = initial_moves; }", "title": "" }, { "docid": "43edc7704b70e0f8e018178c9ac88c9d", "score": "0.6613358", "text": "public void checkWinCondition(){\n if (playerList.get(currentPlayerIndex).getPlayerHand().isEmpty()){\n secondHeader.setText(\"Player \" + (currentPlayerIndex +1) + \" has finished the game! The game is restarting, remaining players get ready!\");\n displayCurrentCardText.setText(\"\");\n playerList.get(currentPlayerIndex).setPlayerGameStatus(false);\n finishedPlayerList.add((currentPlayerIndex +1));\n finishedPlayers += 1;\n currentTrumpName = null;\n for (Player aPlayer : playerList) {\n aPlayer.setPlayerTurnStatus(true);\n }\n playerPassCount = 0;\n }\n else {\n if (currentTrumpName.equals(\"The Geophysicist\") || currentTrumpName.equals(\"The Geologist\") || currentTrumpName.equals(\"The Mineralogist\") || currentTrumpName.equals(\"The Gemmologist\") || currentTrumpName.equals(\"The Petrologist\") || currentTrumpName.equals(\"The Miner\")) {\n currentPlayerIndex -= 1;\n }\n }\n currentPlayerIndex += 1;\n if (currentPlayerIndex == playerCount){\n currentPlayerIndex = 0; }\n runGame();\n }", "title": "" }, { "docid": "53827be28df2253fe7b96f821027df09", "score": "0.65781254", "text": "protected abstract Player checkWinner();", "title": "" }, { "docid": "49b37ee065202971a91800d319f45ccf", "score": "0.6540431", "text": "public void changeTurns ()\n {\n changePlayer();\n\n if (noValidMoves())\n {\n // Change back to original player in case they still have a valid move\n changePlayer();\n\n if (noValidMoves())\n {\n gameOver = true;\n }\n }\n }", "title": "" }, { "docid": "4ea191f5631ff1ddb3c91a8d089226f4", "score": "0.6509959", "text": "@Test\n public void noWinner(){\n \tEntity team1Player1 = PlayerEntities.createPlayer(miniWorld, NoodleEnum.NOODLE_PLAIN, false, TeamEnum.TEAM_ALPHA, 0);\n Entity team2Player1 = PlayerEntities.createPlayer(miniWorld, NoodleEnum.NOODLE_PLAIN, false, TeamEnum.TEAM_BRAVO, 0);\n TeamEnum winner = TeamEnum.TEAM_NULL;\n assertTrue(winner == TeamEnum.TEAM_NULL);\n //By passing winner instead of null, turn and delay timers will be active\n TurnSystem turnSys = new TurnSystem(miniWorld, null, null, winner);\n \n //Jump past delay time\n turnSys.run(miniWorld, 4, 0);\n \n Optional<TurnComponent> turn1 = miniWorld.getComponent(team1Player1, TurnComponent.class);\n assertTrue(turn1.isPresent());\n turn1.get().clearTurn(0);\n \n //Switch to next turn, testing for winners\n turnSys.run(miniWorld, 30, 0);\n\n assertTrue(winner == TeamEnum.TEAM_NULL);\n }", "title": "" }, { "docid": "6d89f58c63000dfae17d20897b6b203e", "score": "0.6478731", "text": "public void playerTurnMove(int playerID) {\r\n\t\tif (!myBoard.isMovePossible(players[playerID]) && !(myOptions.getFlyRule() != 3 \r\n\t\t\t\t&& (((myOptions.getFlyRule() == 1) \r\n\t\t\t\t\t\t&& myBoard.piecesOnSide(currentPlayer) >= 6) \r\n\t\t\t\t\t\t|| ((myOptions.getFlyRule() == 2) \r\n\t\t\t\t\t\t\t\t&& myBoard.piecesOnSide(currentPlayer) >= 5)))){\r\n\t\t\t//then skip turn they shouldn't have gotten trapped\r\n\t\t\tcurrentPlayer = (currentPlayer+1) % 2;\r\n\t\t\tSystem.out.println(\"player trapped\");\r\n\t\t} else \r\n\t\t{\r\n\t\t\tint take[] = {-1,-1};\r\n\t\t\tint position[][] = {{-1, -1},{-1, -1}};\t\t\r\n\t\r\n\t\t\tif(players[playerID].getIsHuman()){\r\n\t\t\t\tboardInterface.setTurnInfo(playerID, \"YOUR TURN<br>CLICK A PIECE\");\r\n\t\t\t\twhile(isGameOver() < 0 && \r\n\t\t\t\t\t\t(position[0][0] == -1 || \r\n\t\t\t\t\t\tmyBoard.getPiece(position[0]) == null ||\r\n\t\t\t\t\t\t!myBoard.getPiece(position[0]).getOwner().equals(players[playerID])))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(boardInterface.isTurnSkipUndo() == 2){\r\n\t\t\t\t\t\tSystem.out.println(\"UNDO\");\r\n\t\t\t\t\t\tundo();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(boardInterface.isTurnSkipUndo() == 1){\r\n\t\t\t\t\t\tSystem.out.println(\"SKIP\");\r\n\t\t\t\t\t\tskip();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tposition[0] = boardInterface.positionSelect();\r\n\t\t\t\t}\r\n\t\t\t\tboardInterface.setPosSelected(position[0][0], position[0][1]);\r\n\t\t\t\tboardInterface.setTurnInfo(playerID, \"YOUR TURN<br>CLICK A POSITION\");\r\n\t\t\t\twhile(isGameOver() < 0 && \r\n\t\t\t\t\t\t(position[1][0] == -1 ||\r\n\t\t\t\t\t\tmyBoard.getPiece(position[1]) != null ||\r\n\t\t\t\t\t\t!isMoveValid(position[0], position[1]) ||\r\n\t\t\t\t\t\tmyBoard.movePiece(position[0], position[1]) == -1))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(boardInterface.isTurnSkipUndo() == 2){\r\n\t\t\t\t\t\tSystem.out.println(\"UNDO\");\r\n\t\t\t\t\t\tundo();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//Skip turn if button pressed\r\n\t\t\t\t\tif(boardInterface.isTurnSkipUndo() == 1){\r\n\t\t\t\t\t\tSystem.out.println(\"SKIP\");\r\n\t\t\t\t\t\tskip();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tposition[1] = boardInterface.positionSelect();\r\n\t\t\t\t\t//undo first selection if second selection is same piece\r\n\t\t\t\t\tif(Arrays.equals(position[0], position[1])){\r\n\t\t\t\t\t\t//restart move process\r\n\t\t\t\t\t\tpassBoard();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t//Computer AI\r\n\t\t\t\twhile(isGameOver() < 0 && \r\n\t\t\t\t\t(position[0][0] == -1 || \r\n\t\t\t\t\tmyBoard.getPiece(position[0]) == null ||\r\n\t\t\t\t\t!isMoveValid(position[0], position[1]) ||\r\n\t\t\t\t\tmyBoard.movePiece(position[0], position[1]) == -1))\r\n\t\t\t\t{\r\n\t\t\t\t\tposition = players[playerID].movePiece();\r\n\t\t\t\t\tSystem.out.print(\"\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//Increment number of moves for player\r\n\t\t\tplayers[playerID].incrementNumMoves();\r\n\t\t\t//check if move created a mill\t\r\n\t\t\tif((isGameOver() < 0) && myBoard.isMill(position[1])){\r\n\t\t\t\tSystem.out.println(\"it is\");\r\n\t\t\t\tpassBoard();\r\n\t\t\t\tSystem.out.println(\"board passed\");\r\n\t\t\t\ttake = playerTake(playerID);\r\n\t\t\t\t// player press undo/skip during playerTake\r\n\t\t\t\tif(take[0] == -1){\r\n\t\t\t\t\t// undo game state to start of turn\r\n\t\t\t\t\tmyBoard.movePiece(position[1], position[0]);\r\n\t\t\t\t\tplayers[playerID].decrementNumMoves();\r\n\t\t\t\t\tif(boardInterface.isTurnSkipUndo() == 2){\r\n\t\t\t\t\t\t// undo\r\n\t\t\t\t\t\tSystem.out.println(\"UNDO\");\r\n\t\t\t\t\t\tundo();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// skip\r\n\t\t\t\t\t\tSystem.out.println(\"SKIP\");\r\n\t\t\t\t\t\tskip();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Save prev moves and takes\r\n\t\t\tprevPrevTake = prevTake.clone();\r\n\t\t\tprevTake = take.clone();\r\n\t\t\tprevPrevMove = prevMove.clone();\r\n\t\t\tprevMove = position.clone();\r\n\t\t\t\r\n\t\t\t// pass the board to the gui\r\n\t\t\tpassBoard();\r\n\t\t\t\r\n\t\t\t//Change current player\r\n\t\t\tcurrentPlayer = (currentPlayer+1) % 2;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6694f113267f42beebb53a952e59da11", "score": "0.64575356", "text": "public void checkWinner() {\n\t\tScanner r = new Scanner(System.in);\n\t\tint playAgain = 0;\n\n\t\tchar result = isWins();\n\n\t\tif (result == Character.toUpperCase(player1)) {\n\t\t\tSystem.out.println(\"Congratulations.. You won the game\");\n\t\t\tSystem.out.println(\"Would you like to play agian?\\n Press\\n 1 for YES\\n 2. for NO\");\n\t\t\tplayAgain = r.nextInt();\n\t\t} else if (result == Character.toUpperCase(player2)) {\n\t\t\tSystem.out.println(\"Sorry you lost the game.. Better luck next time\");\n\t\t\tSystem.out.println(\"Would you like to play agian?\\n Press\\n 1 for YES\\n 2. for NO\");\n\t\t\tplayAgain = r.nextInt();\n\t\t} else if (result == 'T') {\n\t\t\tSystem.out.println(\"Its a tie\");\n\t\t\tSystem.out.println(\"Would you like to play agian?\\n Press\\n 1 for YES\\n 2. for NO\");\n\t\t\tplayAgain = r.nextInt();\n\t\t} else if (result == 'N') {\n\t\t\tif (turn == 'p') {\n\t\t\t\tturn = 'c';\n\t\t\t\tcomputerMove();\n\n\t\t\t} else {\n\t\t\t\tturn = 'p';\n\t\t\t\tuserMove();\n\n\t\t\t}\n\t\t}\n\t\tif (playAgain == 1) {\n\t\t\tinitBoard();\n\t\t\tplayerLetter();\n\t\t\tgetToss();\n\t\t}\n\t\tif (playAgain == 2) {\n\t\t\tSystem.out.println(\"Thank you for playing\");\n\t\t\treturn;\n\t\t}\n\n\t}", "title": "" }, { "docid": "a28a064c9fadbeb6476df9d437596453", "score": "0.64575195", "text": "private void checkPlayerState() {\n\t\tfor(Sprite sprite : sprites) {\r\n\t\t\tif((sprite.hasTag(Sprite.SOLID)) && sprite.collides(this)) {\r\n\t\t\t\tsetX(prevX);\r\n\t\t\t\tsetY(prevY);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// exit if the player has no lives\r\n\t\tif(Player.numLives < 0) {\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t// die once if it is off screen\r\n\t\tif( getX() < World.TILE_WIDTH/2 ||\r\n\t\t\tgetX() > App.SCREEN_WIDTH - World.TILE_WIDTH/2) {\r\n\t\t\tdieOnce();\r\n\t\t}\r\n\t\t\r\n\t\t// reset the riding vessel\r\n\t\tridingVessel = null;\r\n\t}", "title": "" }, { "docid": "44a92e82d28f82969b04c44e110a6f9f", "score": "0.64460695", "text": "public void opponentTurn(){\n this.oponente.attack(this.jugador);\n Boolean activePokemonDown = this.jugador.isActivePokemonDown();\n\n //ver cómo se notifica al driver\n }", "title": "" }, { "docid": "21351d834f519d3fd3875e4574730da6", "score": "0.64403063", "text": "private void anyMoves()\n {\n canMove();\n if(!canMove)\n { canMove = true;\n changePlayer();\n canMove();\n if(!canMove)\n {\n JOptionPane.showMessageDialog(reversi.getFrame(),reversi.getWinner(),\"GAME OVER\", JOptionPane.INFORMATION_MESSAGE); // shows who the winner is\n }\n }\n }", "title": "" }, { "docid": "f466d55230cb9efa565207473759caca", "score": "0.6400564", "text": "static void playerTurn() {\r\n int move = s.nextInt();\r\n ArrayList<Integer> legalMoves = getLegalMoves();\r\n\r\n while(!legalMoves.contains(move)) {\r\n System.out.println(\"That is not a legal move.\");\r\n move = s.nextInt();\r\n }\r\n makeMove(move);\r\n }", "title": "" }, { "docid": "b331b8ad70a04b517d8d15eb51556702", "score": "0.6372655", "text": "private void resetTurn() {\n m_lettersGuessed = \"\";\n m_wordToGuess = \"\";\n m_partlyGuessedWord = \"\";\n\n m_letterGuessed = false;\n m_wordGuessed = false;\n\n m_wordGenerated = false;\n\n for(Player p : m_connectedPlayers) {\n p.setErrorsThisTurn(0);\n }\n }", "title": "" }, { "docid": "dbc17dd8e7b1eece76bbe6864077262a", "score": "0.6366892", "text": "@Test\r\n\tvoid testWinning() {\r\n\t\tcomputer.setRow(0);\r\n\t\tcomputer.setColumn(0);\r\n\t\tgame.updatePlayerMove(computer);\r\n\t\tplayer.setRow(1);\r\n\t\tplayer.setColumn(0);\r\n\t\tgame.updatePlayerMove(player);\r\n\t\tcomputer.setRow(0);\r\n\t\tcomputer.setColumn(1);\r\n\t\tgame.updatePlayerMove(computer);\r\n\t\tplayer.setRow(1);\r\n\t\tplayer.setColumn(1);\r\n\t\tgame.updatePlayerMove(player);\r\n\t\tcomputer.setRow(2);\r\n\t\tcomputer.setColumn(2);\r\n\t\tgame.updatePlayerMove(computer);\r\n\t\tplayer.setRow(1);\r\n\t\tplayer.setColumn(2);\r\n\t\tgame.updatePlayerMove(player);\r\n\r\n\t\tassertEquals(IGameAlgo.GameState.PLAYER_WON,game.getGameState(player));\r\n\r\n\t}", "title": "" }, { "docid": "a7a1747f187cffeebe1b20eb5c982d45", "score": "0.63400596", "text": "public void checkPlayerProgression()\r\n\t{\r\n\t\tif(checkIfPlayerHasReachedStairs())\r\n\t\t{\r\n\t\t\tif(gameProgress.isItLastLevel())\r\n\t\t\t{\r\n\t\t\t\tterminateGame('V');\r\n\t\t\t}\r\n\t\t\telse if(gameProgress.goToNextLevel())\r\n\t\t\t{\r\n\t\t\t\tupdateGameLogicLevel();\r\n\r\n\t\t\t\tsetGameMessage(\"You went to a new level!\");\r\n\t\t\t}\t\t\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "f27441f3ea917a0c86c982b993ce093d", "score": "0.6320394", "text": "private boolean checkAssumptions(Board board, Player player){\n Position playerPosition = player.getPosition();\n\n if(board.getState() != State.ACCUSING){\n cp.println(\"Unable to make accusation right now.\");\n return false;\n }\n\n if(!(board.getBoard()[playerPosition.getY()][playerPosition.getX()] instanceof RoomTile)){\n cp.println(\"Player not in a room!\");\n return false;\n }\n\n if(!player.getIsInPlay()){\n cp.println(\"Player has already made an accusation!\");\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "8236e0c2d00b92b211225a9f3553492e", "score": "0.62945825", "text": "@SuppressWarnings(\"resource\")\n\tprivate void simulatePlayerTurns(ArrayList<Player> players, Board board) {\n\t \n\t\t// should be on player object\n\t\tboolean hasRolled = false;\n\t\t// should be on player object\n\t\tint currentRoom;\n\n\t\tSystem.out.println(\"\\n\\nGAME HAS STARTED\");\n\n\t\t// Only break from loop if true accusation is made or only one player left\n\t\twhile (!isGameOver) {// why not this. & not arguments to function\t\t\n\t\t\t\n\t\t\tTurn turn = new Turn(this.playerTurn, this.isGameOver); // why not arguments to function\n\t\t\t\n\t\t\tcurrentRoom = players.get(playerTurn).getSuspectPawn().getPosition().getRoomNumber(); // would current room TYPE not be better?\n\t\t\t\n\t\t\t// Print details of current turn\n\t\t\tSystem.out.println(\"\\n\" + players.get(playerTurn)\n\t\t\t\t\t\t\t\t\t\t\t.getSuspectPawn()\n\t\t\t\t\t\t\t\t\t\t\t.getName() + \"'s turn (\" \n\t\t\t\t\t+ Constants.COLOR_MAP\n\t\t\t\t\t\t\t.get(players.get(playerTurn)\n\t\t\t\t\t\t\t.getSuspectPawn()\n\t\t\t\t\t\t\t.getColor()) + \")\");\n\t\t\t\n\t\t\t// Vary choices available to player depending on their current circumstances in game\n\t\t\tif (hasRolled) {\n\t\t\t\t\n\t\t\t\t// If not in room and have already rolled this turn\n\t\t\t\tif (currentRoom == 0) {\t\n\t\t\t\t\t\n\t\t\t\t\t// Next 3 lines can be a separate function\n\t\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\t\tSystem.out.printf(\"\\nWhat do you want to do?\\nView Cards [c]\\nView Notebook [n]\\nFinish Move [f]\\nOption: \"); // Strings in different class\n\t\t\t\t\tString playerChoice = scanner.nextLine();\n\t\t\t\t\t\n\t\t\t\t\thasRolled = turn.afterRollMove(players, board, hasRolled, playerChoice);\n\t\t\t\t\t\n\t\t\t\t} else { // If in room and have already moved this turn\n\t\t\t\t\t\n\t\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\t\tSystem.out.printf(\"\\nWhat do you want to do?\\nMake Hypothesis [h]\\nMake Accusation [a]\\nView Cards [c]\\nView Notebook [n]\\nFinish Move [f]\\nOption: \");\n\t\t\t\t\tString playerChoice = scanner.nextLine();\n\t\t\t\t\thasRolled = turn.afterRollMoveInRoom(players, board, hasRolled, playerChoice);\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t} else {\n\t\t\t\t// If not in room and have not already moved this turn\n\t\t\t\tif (currentRoom == 0) {\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\t\tSystem.out.printf(\"\\nWhat do you want to do?\\nRoll Dice [r]\\nView Cards [c]\\nView Notebook [n]\\nFinish Move [f]\\nOption: \" );\n\t\t\t\t\tString playerChoice = scanner.nextLine();\n\t\t\t\t\thasRolled = turn.beforeRollMove(players, board, hasRolled, playerChoice);\t\n\t\t\t\t\n\t\t\t\t} else { // If in room and have not already moved this turn\n\t\t\t\t\t\n\t\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\t\tSystem.out.printf(\"\\nWhat do you want to do?\\nRoll Dice [r]\\nMake Hypothesis [h]\\nMake Accusation [a]\\nView Cards [c]\\nView Notebook [n]\\nFinish Move [f]\\nOption: \");\n\t\t\t\t\tString playerChoice = scanner.nextLine();\n\t\t\t\t\thasRolled = turn.beforeRollMoveInRoom(players, board, hasRolled, playerChoice);\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\tthis.playerTurn = turn.getPlayerTurn(); // should be attribute of player or game\n\t\t\tthis.isGameOver = turn.getIsGameOver(); // setter for attribute of this method should not be contained in other method\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\\nGAME OVER\");\n\t}", "title": "" }, { "docid": "3b753d9416732b7ecc8aab940e6e98bf", "score": "0.6293229", "text": "public static void playGame() {\n game = new TileGame();//starts a new game\n player1 = game.getHand(); // creates a hand for player 1\n initial1 = player1; // stores player 1's initial hand for display purposes\n //repeats for player 2\n player2 = game.getHand();\n initial2 = player2;\n //while loop to play game until someone's hand is empty\n while (player1.length > 0 && player2.length > 0) {\n player1 = game.makeMove(player1);//player 1's move\n player2 = game.makeMove(player2);//player 2's move\n }//end of while loop\n if (player1.length == 0) {// if player 1's hand is empty at end of turn \n if (player2.length == 0) {// check if player 2's hand is also empty\n ties += 1;// if so, the game is a tie\n endMessage = \"This game is a Tie...\";\n } else {//otherwise, only player 1 wins\n wins1 += 1;\n endMessage = \"Player 1 is the Winner!\";\n }\n } else {//and if player 1 didn't win, that means player 2 won\n wins2 += 1;\n endMessage = \"Player 2 is the Winner!\";\n }\n }", "title": "" }, { "docid": "d6cf978014959f54b3619303c3514eae", "score": "0.62499905", "text": "@Test (expected = IllegalMove.class)\r\n public void testMoveOpponentChess() {\r\n \tPlayerInfo player1 = new PlayerInfo (\"player1\", Color.R, BoardArea.Area2);\r\n\t\tPlayerInfo player2 = new PlayerInfo (\"player2\", Color.B, BoardArea.Area5);\r\n\t\tPlayerInfo [] playerInfo = {player1, player2};\r\n\t\tState state = new State(playerInfo);\r\n\t\tassertEquals(state.currentPlayIndex, 0);\r\n\t\tstate.players[state.currentPlayIndex].SelectChess(new Position(14,10));\r\n\t\tstate.players[state.currentPlayIndex].GoChess(new Position(13,10));\r\n\t\tstate.getNextPlay();\r\n }", "title": "" }, { "docid": "e6928f86aa714ca80d26e4a933412d1c", "score": "0.6247307", "text": "@Test \r\n public void testInitialStateWhoseTurn() {\r\n \tPlayerInfo player1 = new PlayerInfo (\"player1\", Color.R, BoardArea.Area2);\r\n\t\tPlayerInfo player2 = new PlayerInfo (\"player2\", Color.B, BoardArea.Area5);\r\n\t\tPlayerInfo [] playerInfo = {player1, player2};\r\n\t\tState state = new State(playerInfo);\r\n \tassertEquals(state.currentPlayIndex, 0);\r\n }", "title": "" }, { "docid": "bc3ff159bf9e6fc7e174276ae3e6d920", "score": "0.62070817", "text": "public void setMatchWinner(boolean player1) {\n if (competitors.length() == 0){\n competitors.clear();\n Final = true;\n }\n if (player1 == true){\n competitors.enQ(currentMatchPlayer1);\n addRunnerUp(currentMatchPlayer2);\n }else{\n competitors.enQ(currentMatchPlayer2);\n addRunnerUp(currentMatchPlayer1);\n }\n System.out.println(competitors.length());\n }", "title": "" }, { "docid": "919bd08a1f03bfec395e3ccc952489bb", "score": "0.61968356", "text": "public void evaluateTurn(Player player) {\r\n\r\n gameRounds++; // Increase the number of rounds played\r\n\r\n if(!gameOver) {\r\n\r\n\r\n if(getP1_energyUse() > getP2_energyUse()) { // if player 1 use more energy\r\n gamePosition++; // Move game one step closer toward player 1's goal\r\n\r\n }else if(getP1_energyUse() < getP2_energyUse()) { // if energy usage is equal\r\n gamePosition--; // Move game one step closer toward player 2's goal\r\n }\r\n\r\n // Prints out message to the debugging console\r\n Debugger.print(\"Round: \" + gameRounds + \", Game Position: \" + gamePosition);\r\n\r\n // Reset the energy usage and prepare for a new round\r\n this.p1_energyUse = -1;\r\n this.p2_energyUse = -1;\r\n\r\n if(player1.getPulse() && player2.getPulse()) {\r\n updateGameInProgress(gameID); // Updates game_position, move_number\r\n isUpdated = true;\r\n\r\n }\r\n if(isGameOver()) {\r\n gameOver = true;\r\n if(hasConnection()) {\r\n if (player2.getPulse()) {\r\n updateRanking(player);\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n if(player2.getPulse())\r\n updateRanking(player); // Update the database\r\n }\r\n\r\n }", "title": "" }, { "docid": "49128815bc12bd6b1b15bdb5034b8550", "score": "0.6192998", "text": "public PlayerDriver(Player player){\n\t\tparam = new Parameters();\n\t\tstate = PlayerState.INIT;\n\t\tthis.player = player;\n\t\topponentStrat = new MixedStrategy(param.getNumActions());\n\t\texpected = new double[2];\n\t\tsolution = new MixedStrategy(param.getNumActions());\n\t}", "title": "" }, { "docid": "4b2d5b7fa7417110ea76cd38c20a00f8", "score": "0.6188646", "text": "@Test\n public void nextPlayer() {\n Entity Player1 = PlayerEntities.createPlayer(miniWorld, NoodleEnum.NOODLE_PLAIN, false, TeamEnum.TEAM_ALPHA, 0);\n Entity Player2 = PlayerEntities.createPlayer(miniWorld, NoodleEnum.NOODLE_PLAIN, false, TeamEnum.TEAM_ALPHA, 0);\n TurnSystem turnSys = new TurnSystem(miniWorld, null, null, null);\n\n Optional<TurnComponent> turn1 = miniWorld.getComponent(Player1, TurnComponent.class);\n Optional<TurnComponent> turn2 = miniWorld.getComponent(Player2, TurnComponent.class);\n assertTrue(turn2.isPresent());\n assertFalse(turn2.get().getTurn()); // make sure its initially false\n\n assertTrue(turn1.isPresent());\n turn1.get().clearTurn(10); //trigger turn ending\n\n turnSys.run(miniWorld, 0, 0); //run TurnSystem to handle next turn\n assertTrue(turn2.get().getTurn());\n }", "title": "" }, { "docid": "626c032d26674d31a19974821872e172", "score": "0.617938", "text": "@Test\n\tpublic void testIsPlayerStuck() {\n\t\tChessBoard board = new ChessBoard(8);\n\t\tboard.addPiece(new King(Color.W, 7, 7), new int[] {7,7});//must have kings for canMove to work\n\t\tboard.addPiece(new King(Color.B, 7, 0), new int[] {7,0});\n\t\tboard.addPiece(new Pawn(Color.W,0,3), new int[] {0,3});\n\t\tboard.addPiece(new Pawn(Color.W, 1,4), new int[] {1,4});\n\t\tboard.addPiece(new Pawn(Color.W, 0,5), new int[] {0,5});\n\t\tboard.addPiece(new Pawn(Color.B,1,3), new int[] {1,3});\n\t\tboard.addPiece(new Pawn(Color.B,1,5), new int[] {1,5});\n\t\tboard.addPiece(new Pawn(Color.B, 0,4), new int[] {0,4}); //trapped pawn in a half square\n\t\tassertEquals(false, BoardConfiguration.playerStuck(Color.B, board)); //even though a piece is stuck the player isn't\n\t\tboard = new ChessBoard(8);\n\t\tboard.addPiece(new King(Color.W,5,6), new int[] {5,6});\n\t\tboard.addPiece(new Queen(Color.W, 6,5), new int[] {6,5});\n\t\tboard.addPiece(new King(Color.B, 7,7), new int[] {7,7});\n\t\tassertEquals(true, BoardConfiguration.playerStuck(Color.B, board)); //stale mate is getting stuck\n\t}", "title": "" }, { "docid": "d9c03f70bface501136fcef3e06df322", "score": "0.6177554", "text": "private boolean setPlayerReady()\t{\n\t\tif(this.gameList.startGame(this.player))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a171f7be9a8b861c10aa92172eeb0263", "score": "0.61655813", "text": "public void playerPlay(int abandon, int answer, Player player)\n {\n if (player == player1)\n player1MakeGuess();\n else\n player2MakeGuess(); \n RandomNumber roll = new RandomNumber(0,21); \n if ((num != 999 && player == player1) || \n (abandon != roll.getRandomNumber() && player == player2))\n { \n player.setGuesses(num);\n if (num != answer)\n compareRange(answer);\n else\n {\n player.setScoreRight(count);\n count = 10;\n }\n if (count == 6)\n {\n player1.setScoreWrong(Math.abs(player1.getGuesses() - answer));\n player2.setScoreWrong(Math.abs(player2.getGuesses() - answer));\n }\n }\n else\n {\n System.out.println(\"Abandon this round!\");\n count = 20;\n }\n count++;\n }", "title": "" }, { "docid": "adc2e0889cd06681d4cacb563e819899", "score": "0.6162589", "text": "private void determineWinner() {\r\n if(!player.isTurn()) {\r\n setWinner(player.getPlayerName());\r\n } else {\r\n setWinner(player2.getPlayerName());\r\n }\r\n }", "title": "" }, { "docid": "39387bd3ad9f77bbbeb3230d5e5a4f2e", "score": "0.6161074", "text": "void playersTurn(final Player player);", "title": "" }, { "docid": "eff7107c8c19aa9e66f9c985e8be3de4", "score": "0.6139381", "text": "@Test\r\n public void moveTest4(){\r\n Player tPlayer = new Player(\"Green\", true, 2);\r\n Player tPlayer2 = new Player(\"Yellow\", true, 7);\r\n Game tGame = new Game(tPlayer, tPlayer2);\r\n tGame.tryCreate(tPlayer, 'A', 0);\r\n tGame.moveMove(tPlayer, 'A', \"right\");\r\n assertEquals('A', tGame.getBoard().get(2, 3).letter());\r\n assertTrue(tGame.getBoard().get(2, 2) instanceof Empty);\r\n //Second move, after reset\r\n tPlayer.resetPieces();\r\n tGame.moveMove(tPlayer, 'A', \"right\");\r\n assertEquals('A', tGame.getBoard().get(2, 4).letter());\r\n assertTrue(tGame.getBoard().get(2, 3) instanceof Empty);\r\n }", "title": "" }, { "docid": "207727b64285e5e1893dcd6a41bafd0b", "score": "0.613264", "text": "public void startGame(){\r\n //boolean win = false;\r\n while(win() != true){\r\n //need some sort of loop: make a win method and say while win is false\r\n p.playersTurn();\r\n try{\r\n Thread.sleep(4000);\r\n }\r\n catch(Exception e){\r\n }\r\n\r\n int confirminator = JOptionPane.showConfirmDialog(null, \"Did you move your player to the correct space?\");\r\n while(confirminator == JOptionPane.NO_OPTION){\r\n JOptionPane.showMessageDialog(null, \"You have more time to move your player\");\r\n try{\r\n Thread.sleep(4000);\r\n }\r\n catch(Exception e){\r\n }\r\n confirminator = JOptionPane.showConfirmDialog(null, \"Did you move your player to the correct space?\");\r\n }\r\n //win();\r\n //if(win() == true){\r\n // break;\r\n //}\r\n // try{\r\n // Thread.sleep(850);\r\n // }\r\n // catch(Exception e){\r\n // }\r\n if(win() == true)\r\n {\r\n break; \r\n }\r\n\r\n try\r\n {\r\n Thread.sleep(850);\r\n }\r\n catch(Exception e)\r\n {\r\n }\r\n JOptionPane.showMessageDialog(null, \"Change Players\");\r\n // p1.playersTurn();\r\n // try{\r\n // Thread.sleep(4000);\r\n // }\r\n // catch(Exception e){\r\n // }\r\n // JOptionPane.showConfirmDialog(null, \"Did you move your player to the correct space?\");\r\n // win();\r\n }\r\n JOptionPane.showMessageDialog(null, \"Thanks for playing! I hope you enjoyed your travels and visit to Candy Castle!\");\r\n }", "title": "" }, { "docid": "438e12162b3c146f79583dd2f678d98b", "score": "0.6119016", "text": "public void checkWinner() {\n\t\t\n\t}", "title": "" }, { "docid": "451b26cfbfe119de52c0f6f8ccf0ddf8", "score": "0.6113388", "text": "public void checkWin(){\n if(p1_turn){\n if( (p00.equals(\"x\") && p01.equals(\"x\") && p02.equals(\"x\"))\n || (p10.equals(\"x\") && p11.equals(\"x\") && p12.equals(\"x\"))\n || (p20.equals(\"x\") && p21.equals(\"x\") && p22.equals(\"x\"))\n || (p00.equals(\"x\") && p10.equals(\"x\") && p20.equals(\"x\"))\n || (p01.equals(\"x\") && p11.equals(\"x\") && p21.equals(\"x\"))\n || (p02.equals(\"x\") && p12.equals(\"x\") && p22.equals(\"x\"))\n || (p00.equals(\"x\") && p11.equals(\"x\") && p22.equals(\"x\"))\n || (p02.equals(\"x\") && p11.equals(\"x\") && p20.equals(\"x\"))\n ) {\n\n //Show winner x\n Toast.makeText(this, R.string.xWin, Toast.LENGTH_LONG).show();\n\n //Change turn indicator\n TextView xturn = (TextView) findViewById(R.id.xturn);\n TextView oturn = (TextView) findViewById(R.id.oturn);\n oturn.setVisibility(View.VISIBLE);\n xturn.setVisibility(View.INVISIBLE);\n\n //update score (easy way)\n xscore++;\n TextView xscoreView = (TextView) findViewById(R.id.xscoreView);\n xscoreView.setText(\"\"+xscore);\n\n endgame = true;\n }\n else{\n\n //change turn indicator\n TextView xturn = (TextView) findViewById(R.id.xturn);\n TextView oturn = (TextView) findViewById(R.id.oturn);\n oturn.setVisibility(View.VISIBLE);\n xturn.setVisibility(View.INVISIBLE);\n }\n\n }\n if(!p1_turn){\n if( (p00.equals(\"o\") && p01.equals(\"o\") && p02.equals(\"o\"))\n || (p10.equals(\"o\") && p11.equals(\"o\") && p12.equals(\"o\"))\n || (p20.equals(\"o\") && p21.equals(\"o\") && p22.equals(\"o\"))\n || (p00.equals(\"o\") && p10.equals(\"o\") && p20.equals(\"o\"))\n || (p01.equals(\"o\") && p11.equals(\"o\") && p21.equals(\"o\"))\n || (p02.equals(\"o\") && p12.equals(\"o\") && p22.equals(\"o\"))\n || (p00.equals(\"o\") && p11.equals(\"o\") && p22.equals(\"o\"))\n || (p02.equals(\"o\") && p11.equals(\"o\") && p20.equals(\"o\"))\n ) {\n\n // show o winner\n Toast.makeText(this, R.string.oWin, Toast.LENGTH_LONG).show();\n\n // change turn indicator\n TextView xturn = (TextView) findViewById(R.id.xturn);\n TextView oturn = (TextView) findViewById(R.id.oturn);\n xturn.setVisibility(View.VISIBLE);\n oturn.setVisibility(View.INVISIBLE);\n\n // update score (other way)\n oscore++;\n TextView oscoreView = (TextView) findViewById(R.id.oscoreView);\n oscoreView.setText(String.valueOf(oscore));\n\n endgame = true;\n }\n else{\n\n // change turn indicator\n TextView xturn = (TextView) findViewById(R.id.xturn);\n TextView oturn = (TextView) findViewById(R.id.oturn);\n xturn.setVisibility(View.VISIBLE);\n oturn.setVisibility(View.INVISIBLE);\n }\n }\n\n }", "title": "" }, { "docid": "1f6c765602efd9c078063e7de4e0480b", "score": "0.61090934", "text": "private boolean validCurrentTurn(GameState player) {\n if(lastTurn == null) {\n lastTurn = player;\n return true;\n }\n else {\n return lastTurn != player;\n }\n }", "title": "" }, { "docid": "a6f848b3b64b4a4a8faf67d48f7b27b2", "score": "0.6082566", "text": "public void testResetGame()\n\t{\n\t\tPlayer p1 = new Player(0);\n\t\tPlayer p2 = new Player(1);\n\t\t\n\t\tp1.setOpponent(p2);\n\t\tp2.setOpponent(p1);\n\t\t\n\t\tp1.addPokemon(new Bulbasaur());\n\t\tp2.addPokemon(new Vulpix());\n\t\t\n\t\tp1.changeActivePokemon(0);\n\t\tp2.changeActivePokemon(0);\n\t\t\n\t\tp1.resetGame();\n\t\t\n\t\tassertEquals(0, p1.getNumPokemon());\n\t\tassertEquals(0, p2.getNumPokemon());\n\t\t\n\t\tassertNull(p1.getActivePokemon());\n\t\tassertNull(p2.getActivePokemon());\n\t\t\n\t\tassertEquals(p2, p1.getOpponent());\n\t\tassertEquals(p1, p2.getOpponent());\n\t\t\n\t}", "title": "" }, { "docid": "7ca73aef6def6d88b79d209b9c097bd6", "score": "0.60752577", "text": "protected void initiateTurn() {\n \t\tthis.desiresForfeit = false;\n \t\tthis.currentCard = this.engine.getNextCard();\n \t\t// System.out.println(this.currentCard.toString());\n \t\tthis.engine.rotatePlayers();\n \t\tif (this.engine.getActivePlayer().getColor() == Piece.COLOR.blue) {\n \t\t\tgui.playerInformation.setBackground(Color.CYAN);\n \t\t} else if (this.engine.getActivePlayer().getColor() == Piece.COLOR.green)\n \t\t\tgui.playerInformation.setBackground(Color.GREEN);\n \t\telse if (this.engine.getActivePlayer().getColor() == Piece.COLOR.yellow)\n \t\t\tgui.playerInformation.setBackground(Color.YELLOW);\n \t\telse\n \t\t\tgui.playerInformation.setBackground(Color.RED);\n \t\tthis.gui.playerNameText\n \t\t\t\t.setText(this.engine.getActivePlayer().getName());\n \t\tthis.gui.update();\n \t\tthis.repaint();\n \t\tthis.notifyPlayer(userMessages[0]);\n \n \t}", "title": "" }, { "docid": "5f43a2e778e52222242ffb44c031bc0d", "score": "0.6068944", "text": "private void checkRepeated() {\n if (repeatedPosition()) {\n _winner = _turn;\n }\n }", "title": "" }, { "docid": "7679c178a91caadcb70d073a00e5c9df", "score": "0.60605216", "text": "@Test\n public void testInGame() {\n Player player;\n boolean expResult,result;\n \n \n player = new Player(1, Player.PlayerType.advanced_ai, \"aa1\", conn);\n expResult = true;\n result = player.inGame();\n assertEquals(expResult, result);\n \n player = new Player(1, Player.PlayerType.ai, \"a1\", conn);\n expResult = true;\n result = player.inGame();\n assertEquals(expResult, result);\n \n player = new Player(1, Player.PlayerType.human, \"h11\", conn);\n expResult = true;\n result = player.inGame();\n assertEquals(expResult, result);\n \n player = new Player(1, Player.PlayerType.none, \"n11\", conn);\n expResult = false;\n result = player.inGame();\n assertEquals(expResult, result);\n \n \n System.out.println(\"inGame: PASED\");\n }", "title": "" }, { "docid": "3b1ea81b67016e89deb7040e31e53a0c", "score": "0.6050079", "text": "public static void playerTurn(){\n int dice = (int)(Math.random() * 6 + 1);\n if (dice == 1){\n print(\"You rolled a \" + dice + \"! You lose your \"\n + \"accumulated points and your turn!\");\n switchTurns();\n }\n else{\n accumulatedScore += dice;\n print(\"You rolled a \" + dice + \".\");\n print(\"You have \" + accumulatedScore + \" points!\");\n print(\"Keep going? (y/n)\");\n String answer = scanIn.nextLine().toLowerCase();\n \n if (answer.equals(\"n\") == true || \n answer.equals(\"no\") == true){\n if (p1sTurn){\n p1.setScore(p1.getScore() + accumulatedScore);\n }\n else {\n p2.setScore(p2.getScore() + accumulatedScore);\n }\n switchTurns();\n }\n }\n }", "title": "" }, { "docid": "43e5ab63bfeb8c6ba989784542838990", "score": "0.6043705", "text": "private void setTurnOnLoad() {\r\n\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\tif (players.get(i).isHasturn()) {\r\n\t\t\t\tcurrent_turn = i + 1;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "33370a05225a62b625a0e6e03380f026", "score": "0.6027474", "text": "@Override\r\n\tpublic void turn(Player opponent) {\n\t\tCoordinate toHit;\r\n\t\tboolean validHit;\r\n\t\tRandom gen = new Random();\r\n\t\tdo{\r\n\t\t\tSystem.out.println(this + \"\\n\" + opponent);\r\n\t\t\tif(target == null)\r\n\t\t\t\ttoHit = new Coordinate(getBoard()[gen.nextInt(getBoard().length)]);\r\n\t\t\telse\r\n\t\t\t\ttoHit = hunt(opponent);\r\n\t\t\t\r\n\t\t\tvalidHit = (toHit.exists()) && (!opponent.isHit(toHit));\r\n\t\t\r\n\t\t}\r\n\t\twhile(!validHit);\r\n\t\t\r\n\t\tif (opponent.hit(toHit)){\r\n\t\t\tSystem.out.println(\"You've been hit!!!\");\r\n\t\t\trecordHit(toHit);\r\n\t\t\tif (opponent.sunkShip(toHit)){\r\n\t\t\t\tSystem.out.println(\"I SUNK YOUR SHIP!!!\");\r\n\t\t\t\ttarget = null;\r\n\t\t\t\ttargetIs = null;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"I go again...\");\r\n\t\t\t\tturn(opponent);\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"It's a miss... Your turn.\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2c1d3ad311c3bc9f77ff624dd766719f", "score": "0.6019975", "text": "@Override\n protected void checkProceedToNextLevel() {\n if (getClock().getTime() >= TIME_LIMIT) {\n gameOverCleanup();\n showPacmanWin();\n } else if (isPacmanDead()) {\n gameOverCleanup();\n showGhostWin();\n }\n }", "title": "" }, { "docid": "5749fd81e6e9a1af4d86e6b52c872df4", "score": "0.6010736", "text": "public void checkGoal() {\r\n if (goal.getPosition() == (player.getPosition())) {\r\n gameOver();\r\n }\r\n }", "title": "" }, { "docid": "cb5e446ece5212b59444198147bf3851", "score": "0.601071", "text": "private void attemptMovement() {\r\n\t\tif (player_done_spawning == true) {\r\n\t\t\tperformUserControls();\r\n\t\t\tmodel.validatePlayerBounds();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fb9e4788162e218e33ad7ca47b6a3a72", "score": "0.60094905", "text": "@Test\r\n void EndBeforeEverything(){\r\n\r\n PlayerMessage message=new PlayerEndOfTurnChoice(virtualViews.get(0),testPlayer);\r\n controller.update(message);\r\n //method returns immediately\r\n\r\n //turnInfo must still have all his initial values\r\n testSupportFunctions.baseTurnInfoChecker(turnInfo,false,0,false,0,-1,false,false);\r\n }", "title": "" }, { "docid": "b4ea22d96fea5e4cad12c5a315a37962", "score": "0.60047174", "text": "public boolean run(){\n\t\tboolean playAgain = false;\n\t\tboolean playingGame = true;\n\t\tSystem.out.println(\"\\tWelcome to Nim\");\n\t\tSystem.out.println(\"---------------------------------\");\n\t\t \n\t\tSystem.out.println(\"Choose your opponent player! \\n\\t1.) Player vs Player\\n\\t2.) Player vs Computer\");\n\t\ttry {\n\t\t\tsetOpponentType();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\tgetDifficutly();\n\t\tlevel.PrintBoard();\n\t\t\n\t\twhile(playingGame){\n\t\t\t\n\t\t\tif(player1Turn){\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"It's \" + player1.getName() + \"'s turn\");\n\t\t\t\t\tPlayerTurn(player1);\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} else{\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"It's \" + player2.getName() + \"'s turn\");\n\t\t\t\t\tPlayerTurn(player2);\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}\n\t\t\t\n\t\t\tif(level.WinCheck()){\n\t\t\t\t\n\t\t\t\tif(player1Turn){\n\t\t\t\t\tSystem.out.println(player2.getName() + \" is the winner!\");\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.println(player1.getName() + \" is the winner!\");\n\t\t\t\t}\n\n\t\t\t\twhile (continueGame) {\n String choice = \"\";\n System.out.println(\"Would you like to play again? y - yes n - no\");\n try {\n choice = reader.readLine();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n if (choice.compareToIgnoreCase(\"y\") == 0) {\n playAgain = true;\n continueGame = false;\n playingGame = false;\n } else if (choice.compareToIgnoreCase(\"n\") == 0){\n playAgain = false;\n continueGame = false;\n playingGame = false;\n }\n }\n\t\t\t\t\n\t\t\t} else{\n\t\t\t\tlevel.PrintBoard();\n\t\t\t\tplayer1Turn = !player1Turn;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn playAgain;\n\t}", "title": "" }, { "docid": "99c206ae33bc5a37601b6db11899759c", "score": "0.60008556", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Player player0 = new Player((-1));\n player0.getSubparty();\n float float0 = player0.getY();\n assertEquals(0.0F, float0, 0.01F);\n \n Player player1 = new Player(0, \"3b7\\\"e-v<G\", (-5120));\n boolean boolean0 = player0.isJoinOK(player1, true);\n assertFalse(boolean0);\n assertEquals((-5120), player1.getPictureId());\n \n int int0 = player0.getStrength();\n assertFalse(player0.isDead());\n assertEquals(\"0.0.0.0\", player0.getIP());\n assertEquals(1, int0);\n assertEquals(\"Player-1\", player0.toString());\n assertEquals(0, player0.getPictureId());\n assertTrue(player0.isConnected());\n assertEquals(10.0F, player0.getX(), 0.01F);\n assertEquals(0L, player0.getTimeOfDeath());\n }", "title": "" }, { "docid": "4a9a85c4b8cba003e266e47b3f3f1496", "score": "0.5996186", "text": "@Test\n void noBattleWinsForEitherPlayerEqualsNoWinner() {\n assertThat(game.getWinner(), is(nullValue()));\n }", "title": "" }, { "docid": "ce71d039d85a0d104b635013cdd1641c", "score": "0.5995853", "text": "public boolean isPossibleMove(int player)\r\n {\r\n // put your code here\r\n return forcedMove(player).length!=0 || getAllMoves(player).length!=0;\r\n }", "title": "" }, { "docid": "0167efd0322d4e8b68ee64fab1619843", "score": "0.5987495", "text": "public abstract void declareWinner(Player p);", "title": "" }, { "docid": "fac651bbba4496316f08ae4f0127c756", "score": "0.59850657", "text": "public static void main(String player1, String player2)\n {\n Tracker tracker = new Tracker(player1, player2);\n String move, whereTo, numOfMoves;\n boolean playAgain;\n playAgain = true;\n\n Scanner reader = new Scanner(System.in);\n\n System.out.println(\"Welcome to the tic-tac-toe game!\");\n System.out.println(\"Player 1 is Xs and Player 2 is Os. Each player picks a spot \");\n System.out.println(\"on the board until there is three in a row or a tie.\");\n System.out.println(\"A player can also win by marking all four corners.\");\n System.out.println(\"The board is labeled as\");\n System.out.println(tracker.toString());\n numOfMoves = tracker.numOfMoves();\n while(playAgain){\n while(!tracker.isOver()){\n\n while(true){\n System.out.println(player1 + \" make your move\");\n whereTo = reader.nextLine();\n if(whereTo.equals(\"quit\")){\n System.out.println(\"Thanks for playing!\");\n tracker.quit();\n break;\n }\n\n if(!tracker.isValidMove(\"X\", whereTo)){\n System.out.println(\"Sorry, that is not a valid move. Please try again.\");\n continue;\n }else System.out.println(tracker.makeMove(\"X\", whereTo));\n numOfMoves = tracker.numOfMoves();\n break;\n }\n if(tracker.isOver()){\n System.out.println(tracker.whoWon());\n System.out.println(tracker.timesWon());\n break;\n }\n\n while(true){\n System.out.println(player2 + \" make your move\");\n whereTo = reader.nextLine();\n if(whereTo.equals(\"quit\")){\n System.out.println(\"Thanks for playing!\");\n tracker.quit();\n break;\n }\n\n if(!tracker.isValidMove(\"O\", whereTo)){\n System.out.println(\"Sorry, that is not a valid move. Please try again.\");\n continue;\n }else System.out.println(tracker.makeMove(\"O\", whereTo));\n numOfMoves = tracker.numOfMoves();\n break;\n }\n if(tracker.isOver()){\n System.out.println(tracker.whoWon());\n System.out.println(tracker.timesWon());\n break;\n }\n System.out.println(numOfMoves);\n System.out.println(tracker.toString());\n\n }\n System.out.println(\"Type continue if you want to play again.\");\n whereTo = reader.nextLine();\n if(!whereTo.equals(\"continue\")){\n playAgain = false;\n }\n tracker.resetBoard();\n }\n }", "title": "" }, { "docid": "9ed2c0166900e1d7de512b3d8e568883", "score": "0.59830266", "text": "public void continueTurn();", "title": "" }, { "docid": "4e92650e07b93d219dc92b08fefb4e6f", "score": "0.5978102", "text": "private void attemptToTurn() {\r\n\t\tif (energy >= TURNING_ENERGY_COST) {\r\n\t\t\tboolean didTurn = false;\r\n\t\t\tif (turnLeftKeyPressed) {\r\n\t\t\t\tdirection -= ROTATION_PER_TICK;\r\n\t\t\t\tdidTurn = true;\r\n\t\t\t}\r\n\t\t\tif (turnRightKeyPressed) {\r\n\t\t\t\tdirection += ROTATION_PER_TICK;\r\n\t\t\t\tdidTurn = true;\r\n\t\t\t}\r\n\t\t\tif (didTurn) {\r\n\t\t\t\tenergy -= TURNING_ENERGY_COST;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ab13370aeb14138ba0187ea1f71a436e", "score": "0.5967453", "text": "@Test\n\tpublic void testExitsPlayer() {\n\t\tassertNotNull(player);\n\t\tassertNotNull(npc);\n\t}", "title": "" }, { "docid": "1bfd7675ca50f752d7c89f8de2ed2d39", "score": "0.5965885", "text": "public boolean playerStillHasMove(HantoPlayerColor player, int turn)\n\t{\n\t\tboolean playerHasPossibleMove = true;\n\t\tif (getAnyPossibleMove(player, turn) == null) {\n\t\t\tplayerHasPossibleMove = false;\n\t\t}\n\t\treturn playerHasPossibleMove;\n\t}", "title": "" }, { "docid": "6251f9bd727a4f65100181f49e014ad0", "score": "0.5965136", "text": "public abstract boolean tryMove(String move, Player player);", "title": "" }, { "docid": "2f91485056a3fed208521463adbc8764", "score": "0.59615105", "text": "public String tryStartGame(Player player, String opponent) {\n\t\tPlayer o = players.get(opponent);\n\t\tif(o == null)\n\t\t\treturn \"Opponent not found.\";\n\t\t\n\t\tif(hasGame(player))\n\t\t\treturn NO_ERROR; // will redirect to game\n\t\t\n\t\tAbstractGame existing = getCurrentGame(o);\n\t\tif(existing != null) {\n\t\t\tPlayer opp = existing.getOpponent(o);\n\t\t\t// check if opponent is a spectator, i.e. not part of the game\n\t\t\tif(opp == null)\n\t\t\t\treturn \"Opponent is spectating a game.\";\n\t\t\t// check if the game is finished; no point in joining that, should wait for opponent to go to home\n\t\t\t// incidentally, this also takes care of replay mode, since all replayable games are finished.\n\t\t\telse if(existing.isGameOver())\n\t\t\t\treturn \"Opponent is reviewing a finished game.\";\n\t\t\telse {\n\t\t\t\t// player is part of an unfinished game; spectate the game.\n\t\t\t\t// technically this just links the player to the game, so if the player is actually part\n\t\t\t\t// of the game then they'll join in play mode. But a player shouldn't be able to make\n\t\t\t\t// start game requests when they're part of a game, so it shouldn't matter.\n\t\t\t\tplayerGames.put(player.getName(), existing);\n\t\t\t\treturn NO_ERROR;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// opponent is not in a game, create new one\n\t\t\n\t\t// create games with custom board states if testmode has been enabled and a specific username entered\n\t\tTestMode mode = null;\n\t\tif(testMode) {\n\t\t\tswitch(player.getName().toUpperCase()) {\n\t\t\t\tcase \"MULTJUMPTESTER\": mode = TestMode.MULTJUMP; break;\n\t\t\t\tcase \"ENDGAMETESTER\": mode = TestMode.ENDGAME; break;\n\t\t\t}\n\t\t}\n\t\t\n\t\tCheckersGame game = new CheckersGame(player, o, mode);\n\t\tplayerGames.put(player.getName(), game);\n\t\tplayerGames.put(opponent, game);\n\t\treturn NO_ERROR;\n\t}", "title": "" }, { "docid": "c741afe581097f1549e38db51f32b5d9", "score": "0.5955979", "text": "@Override\n public void initPlayer() {\n int nombreJoueur = Game.getUniqueGame().getPlayerNumber();\n ArrayList<Player> players = Game.getUniqueGame().getPlayers();\n for (int i = 0; i < nombreJoueur; i++) {\n players.get(i).setVictoryCard();\n }\n }", "title": "" }, { "docid": "d84209eeb028495761d70df83f7c70be", "score": "0.59487295", "text": "private static void initializePlayer() {\n //in order to make startup easier for myself:\n if (admin) {\n Game.player = new Player(\"CoconutCavalry\", \"male\");\n outputLn(\"Welcome, \" + Game.player.getName() + \".\\n\");\n } else {\n outputForInput(\"Enter name: \");\n String name = IOService.getNextLine();\n outputForInput(\"Male or female? \");\n String gender = IOService.getNextLine();\n Game.player = new Player(name, gender);\n outputLn(\"\\nWelcome, \" + Game.player.getPronouns()[0] + \" \" + Game.player.getName() + \".\\n\");\n }\n }", "title": "" }, { "docid": "a6fc9cf2e36581c29d6902d155e8968e", "score": "0.59472156", "text": "public void turnStart(){\n\t\tif(currentPoke.isStunned()){\n\t\t\tSystem.out.println(\"Your stunned for this turn!\");\n\t\t\tround++;\n\t\t\tcurrentPoke.unStun();\n\t\t}\n\t\t//otherwise it lets u attack, pass, or retreat\n\t\telse{\n\t\t\tSystem.out.println(\"\\n1. attack\\n2. retreat\\n3. pass\");\n\t\t\tSystem.out.print(\"choose an action: \");\n\t\t\tint turnChoice = in.nextInt();\n\t\t\t//pick attack and do the stuff\n\t\t\tif(turnChoice == 1){\n\t\t\t\tpickAttack();\n\t\t\t\tround++;\n\t\t\t}\n\t\t\t//switch pokemons\n\t\t\telse if(turnChoice == 2){\n\t\t\t\tint newPoke = switchOut();\n\t\t\t\tcurrentPoke = allPoke.get(team.get(newPoke));\n\t\t\t\tSystem.out.println(currentPoke.getName() + \", I choose you!\");\n\t\t\t\tround++;\n\t\t\t}\n\t\t\t//pass turn and do nothing\n\t\t\telse if(turnChoice == 3){\n\t\t\t\tSystem.out.println(\"You pass your turn\");\n\t\t\t\tround++;\n\t\t\t}\n\t\t}\n\t\tif(won == false && round != 2){\n\t\t\t\n\t\t\tenemyTurn();\n\t\t}\n\t\telse if(won == false && round == 2){\n\t\t\tendRound();\n\t\t\tenemyTurn();\n\t\t}\n\t\telse if(won == true && round == 2){\n\t\t\thealEnergy();\n\t\t\thealHp();\n\t\t\troundWin();\n\t\t}\n\t\telse if(won == true && round != 2){\n\t\t\thealHp();\n\t\t\troundWin();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "0f0988277e30775fe5f7d17b0ec7bfe8", "score": "0.5944125", "text": "@Test\r\n public void testPlayTurn() {\r\n System.out.println(\"playTurn\");\r\n Player p1 = null;\r\n Player p2 = null;\r\n CardGame.playTurn(p1, p2);\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "1b1b2881067c02a081322036b4e8a7ff", "score": "0.5941529", "text": "public void confirmMove(int playerID) throws IllegalArgumentException, IllegalStateException {\n if (playerID != currentPlayerID) {\n throw new IllegalArgumentException(ErrorMessages.NOT_YOUR_TURN_ERROR);\n }\n if (!table.isConsistent()) {\n throw new IllegalStateException(ErrorMessages.TABLE_NOT_CONSISTENT_ERROR);\n }\n int pointsPlayed = table.getPoints() - tablePoints;\n if (pointsPlayed == 0) {\n throw new IllegalStateException(ErrorMessages.NOT_ENOUGH_POINTS_ERROR);\n }\n // check if the the player has'nt played their first move yet and playedPoints was not enough\n if (!currentPlayer().hasPlayedFirstMove() && pointsPlayed < Constants.MIN_FIRST_MOVE_POINTS) {\n throw new IllegalStateException(ErrorMessages.NOT_ENOUGH_POINTS_ERROR);\n }\n\n tablePoints += pointsPlayed;\n currentPlayer().playedFirstMove();\n if (hasWinner()) {\n gameOn = false;\n } else {\n nextTurn();\n trace.clear();\n }\n }", "title": "" }, { "docid": "8e41573c4a9c504d814a0b90feff48c1", "score": "0.59371257", "text": "public void checkPlayerStatus(){\n if (playerList.get(currentPlayerIndex).getPlayerTurnStatus() && (playerPassCount == (playerCount - finishedPlayers - 1))) { //If every other player has passed, reset play values\n secondHeader.setText(\"Every other player has passed! You are free to play any cards.\");\n displayCurrentCardText.setText(\"\");\n footer.setText(\"Please select a card to play!\");\n currentTrumpName = null;\n currentTrump = null;\n currentDoubleValue = 0;\n currentStringValue = \"Nothing!\";\n playerPassCount = 0;\n titlePanel.remove(displayPassedPlayers);\n for (Player aPlayer : playerList) {\n aPlayer.setPlayerTurnStatus(true);\n }\n }\n //else cycle through the players to determine if they are still playing or have passed.\n else{\n while(!playerList.get(currentPlayerIndex).getPlayerTurnStatus()) {\n currentPlayerIndex += 1;\n if(currentPlayerIndex == playerCount){\n currentPlayerIndex = 0;\n }\n checkPlayerStatus();\n }\n }\n revalidate();\n repaint();\n }", "title": "" }, { "docid": "6f1f0d078530769c96d936ef2b85857e", "score": "0.5922758", "text": "public void setUpRound() {\n game.dealToPlayers();\n gameScreen.giveCards(game.getPlayerGivenCards(getLocal()));\n gameScreen.updateGUI();\n }", "title": "" }, { "docid": "d77051f5101d3f2db7a1a114f3af6ea4", "score": "0.59206957", "text": "@Test\n public void winnerTwoTeams(){\n \tEntity team1Player1 = PlayerEntities.createPlayer(miniWorld, NoodleEnum.NOODLE_PLAIN, false, TeamEnum.TEAM_ALPHA, 0);\n Entity team2Player1 = PlayerEntities.createPlayer(miniWorld, NoodleEnum.NOODLE_PLAIN, false, TeamEnum.TEAM_BRAVO, 0);\n TeamEnum winner = TeamEnum.TEAM_NULL;\n assertTrue(winner == TeamEnum.TEAM_NULL);\n //By passing winner instead of null, turn and delay timers will be active\n TurnSystem turnSys = new TurnSystem(miniWorld, null, null, winner);\n \n //Jump past delay time\n turnSys.run(miniWorld, 4, 0);\n \n Optional<HealthComponent> health1 = miniWorld.getComponent(team1Player1, HealthComponent.class);\n assertTrue(health1.isPresent());\n health1.get().setHealth(0);\n \n //Switch to next turn, testing for winners\n turnSys.run(miniWorld, 30, 0);\n\n assertTrue(winner.getTeamId() == TeamEnum.TEAM_BRAVO.getTeamId());\n }", "title": "" }, { "docid": "c68d28b88e7167c34ba8476d6e8ef338", "score": "0.59167814", "text": "public int checkForWinner()\n {\n if (player2.isEmpty())\n {\n return 1;\n }\n else if (player.isEmpty())\n {\n return -1;\n }\n else\n {\n return 0;\n }\n }", "title": "" }, { "docid": "f2792d6acf71bd9997a5e037fc71e501", "score": "0.5913054", "text": "@Test(timeout = 4000)\n public void test37() throws Throwable {\n Player player0 = new Player((-1), \">K]0@\", \">K]0@\", 12, 12);\n player0.setJoinOK(player0, false);\n boolean boolean0 = player0.isJoinOK(player0, false);\n assertEquals(12, player0.getPictureId());\n assertTrue(player0.isConnected());\n assertEquals(12, player0.getStrength());\n assertEquals(0.0F, player0.getY(), 0.01F);\n assertTrue(boolean0);\n assertEquals(10.0F, player0.getX(), 0.01F);\n assertEquals(0L, player0.getTimeOfDeath());\n assertFalse(player0.isDead());\n }", "title": "" }, { "docid": "e75a25a84ce07b41f45141ef8252879f", "score": "0.59097636", "text": "public void SetupGame() {\n\t\tAskPlayerDifficulty();\n\t\tBuildPlayers();\n\n\t}", "title": "" }, { "docid": "efd281270092e252714c3009c78323c9", "score": "0.590785", "text": "private void initialGame() {\n this.board = new Board();\n\n this.currentPlayer = 0;\n this.previousPiece = null;\n }", "title": "" }, { "docid": "31cd1bf50e9f1785894a556530156ef5", "score": "0.59065807", "text": "@Override\n public boolean check() {\n\n substractServantsSpent();\n if (!containsCard()) {\n return restorePlayer();\n }\n if (!checkSpace()) {\n return restorePlayer();\n }\n\n if (!checkPickableTerritory()) {\n return restorePlayer();\n }\n\n notifyValue();\n if (!super.check()) {\n return restorePlayer();\n }\n\n if (this.towerContainsPlayerPawn() && !this.isPawnNeutral()) {\n return restorePlayer();\n }\n\n if (!checkMoney()) {\n return restorePlayer();\n }\n\n if (!checkNoHighFloorBonus()) {\n getBonus();\n }\n notifyColor();\n if (!checkVentureCost())\n return restorePlayer();\n\n if (!tryPickCard()) {\n return restorePlayer();\n }\n return true;\n\n }", "title": "" }, { "docid": "76b75814a1b8520aa551f2db60fca62c", "score": "0.5904607", "text": "public void initializePlayersAndPawns() {\r\n\t\tplayer1 = new Player(\"Giannis\",Color.red,1);\r\n\t\tplayer1.initializePawns(Color.red,player1,board);\r\n\t redPawn1 = player1.pawn1;\r\n\t redPawn2 = player1.pawn2;\r\n\t \r\n\t player2 = new Player(\"Manos\",Color.yellow,2);\r\n\t player2.initializePawns(Color.yellow,player2,board);\r\n\t yellowPawn1 = player2.pawn1;\r\n\t yellowPawn2 = player2.pawn2;\r\n\t \r\n\t}", "title": "" }, { "docid": "f075598a4f0e92139e6992a3dd4e6d32", "score": "0.5895963", "text": "private static void aiTurn() {\n int x;\n int y;\n\n // An attempt to win yourself.\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n if (isCellValid(i, j)) {\n map[i][j] = DOT_O;\n if (checkWin(DOT_O)){\n System.out.printf(\"The computer turn on a point x = %d y = %d\\n\", i + 1, j + 1);\n return;\n }\n map[i][j] = DOT_EMPTY;\n }\n }\n }\n\n // An attempt to prevent the enemy from winning.\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n if (isCellValid(i, j)) {\n map[i][j] = DOT_X;\n if (checkWin(DOT_X)){\n map[i][j] = DOT_O;\n System.out.printf(\"The computer turn on a point x = %d y = %d\\n\", i + 1, j + 1);\n return;\n }\n map[i][j] = DOT_EMPTY;\n }\n }\n }\n\n // Random turn.\n do {\n x = rand.nextInt(SIZE);\n y = rand.nextInt(SIZE);\n } while (!isCellValid(x, y));\n System.out.printf(\"The computer turn on a point x = %d y = %d\\n\", x + 1, y + 1);\n map[x][y] = DOT_O;\n\n }", "title": "" }, { "docid": "40dff8b8f676de61069038a07d2ff41d", "score": "0.5894177", "text": "public void switchPlayer() {\n\t\tif (this.jeuCourant == this.jeuRouge) {\n\t\t\tif (this.nbPlayer == 2) {\n\t\t\t\tthis.jeuCourant = this.jeuBleu;\n\t\t\t} else {\n\t\t\t\tthis.jeuCourant = this.jeuJaune;\n\t\t\t}\n\t\t} else if (this.jeuCourant == this.jeuBleu) {\n\t\t\tif (this.nbPlayer == 2 || this.nbPlayer == 3) {\n\t\t\t\tthis.jeuCourant = this.jeuRouge;\n\t\t\t} else {\n\t\t\t\tthis.jeuCourant = this.jeuVert;\n\t\t\t}\n\t\t} else if (this.jeuCourant == this.jeuJaune) {\n\t\t\tthis.jeuCourant = this.jeuBleu;\n\t\t} else if (this.jeuCourant == this.jeuVert) {\n\t\t\tthis.jeuCourant = this.jeuRouge;\n\t\t}\n\n\t\tthis.isMazeAltered = false; //On remet le déplacement du Labyrinthe\n\n\t\tif(this.jeuCourant.getTreasureToCatch() == null && this.jeuCourant.getScorePlayer() < this.scoreMax){\n\t\t\tthis.jeuCourant.drawCard(this.treasureToDraw); //Piocher une carte si le joueur n'a pas atteint le score final\n\t\t}\n\t}", "title": "" }, { "docid": "93ec7678d551bda0b19b99bde7244d25", "score": "0.5888836", "text": "public void checkIfPlayerIsCaptured()\r\n\t{\r\n\t\tCoordinates playerCoordinates = thePlayer.getCharCoordinates();\r\n\r\n\t\tcheckIfThereAreStunnedOgres();\r\n\r\n\t\tfor(Guard g: Guards)\r\n\t\t{\r\n\t\t\tif(g.gotchYa(playerCoordinates))\r\n\t\t\t{\r\n\t\t\t\tterminateGame('G');\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor(ArmedOgre ogre: Ogres)\r\n\t\t{\t\t\r\n\t\t\tif(ogre.gotchYa(playerCoordinates) && !ogre.isOgreStunned())\r\n\t\t\t{\r\n\t\t\t\tterminateGame('O');\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e9b1d86e3a38cb8004cc9222ac6e367d", "score": "0.588553", "text": "private void init_player() {\n\t}", "title": "" }, { "docid": "98fa5173aa9e0e9a1a812cc958dfb678", "score": "0.5873984", "text": "public static void promptPlayer(){\r\n\t\tSystem.out.println(\"Please enter your turn in the format \\\"row column\\\"\");\r\n\t}", "title": "" }, { "docid": "2546f4ffbdfe0e30c78dfee31822d7ed", "score": "0.5867573", "text": "public void checkWin(){\n \n for (int i=0;i<3;i++){\n if ((board[i][0] == board [i][1]) && \n (board[i][0] == board [i][2]) &&\n (board[i][0] != 'J')){\n JOptionPane.showMessageDialog(this, \"Player \" \n + board[i][0] + \" wins...!!!\");\n disableAllButtons();\n win = true;\n }\n }\n \n //check for column win\n for (int i=0;i<3;i++){\n if ((board[0][i] == board [1][i]) && \n (board[0][i] == board [2][i]) &&\n (board[0][i] != 'J')){\n JOptionPane.showMessageDialog(this, \"Player \" \n + board[0][i] + \" wins...!!!\");\n disableAllButtons();\n win = true;\n }\n }\n \n //check for diagonal win\n \n if (((board[0][0] == board [1][1]) && \n (board[0][0] == board [2][2]) &&\n (board[0][0] != 'J')) || \n (((board[0][2] == board [1][1]) && \n (board[0][2] == board [2][0]) &&\n (board[0][2] != 'J')))){\n JOptionPane.showMessageDialog(this, \"Player \" \n + board[1][1] + \" wins...!!!\");\n disableAllButtons();\n win = true;\n }\n \n if (win){\n //ask to play again\n int answer = JOptionPane.showConfirmDialog(this, \"Do you want to play again ?\", \" Play again\", JOptionPane.YES_NO_OPTION);\n\n if (answer == JOptionPane.YES_OPTION){\n restartGame();\n }else{\n System.exit(0);\n }\n }\n }", "title": "" }, { "docid": "aa542eb18975f44f42e92c56509d7802", "score": "0.5863883", "text": "public void assignFirstTurn() {\n\t\tif (player1.getHost()){\n\t\t\tRandom r = new Random();\n\t\t int chance = r.nextInt(2);\n\t\t if (chance == 1) {\n\t\t \tplayer1.setTurn(true);\n\t\t \t//tell other player to set turn false\n\t\t \tController.network.send(new Data(\"DATA\",new TurnUpdate(\"turnUpdate\", false)));\n\t\t } else {\n\t\t \t//tell other player to set turn true\n\t\t \tController.network.send(new Data(\"DATA\", new TurnUpdate(\"turnUpdate\", true)));\n\t\t \tplayer1.setTurn(false);\n\t\t }\n\t\t}\n\t}", "title": "" }, { "docid": "043fab213c3f71b5cd1fc77a8962bc82", "score": "0.5863593", "text": "public void perform_action(Player player) {\r\n int number = 0;\r\n\r\n //check if the number is <1 or >5 because if 1-5 then those are turned based actions and will need to add 1 to turn. if not its non turned based like get instructions, etc.\r\n while ((number < 1 || number > 5) && !end_game) {\r\n formatting();\r\n System.out.println(\"You are on turn \" + turns);\r\n get_info(player);\r\n print_options(player);\r\n\r\n //Make sure that the input is an integer and valid\r\n if (!sc.hasNextInt()) {\r\n sc.next();\r\n\r\n } else {\r\n try {\r\n number = sc.nextInt();\r\n } catch (Exception e) {\r\n System.out.println(\"that is not a number\");\r\n }\r\n }\r\n\r\n //Check the number and based on the number entered, the user does something or gains some kind of information\r\n switch (number) {\r\n case 1:\r\n // inspect a player remember always check for edge cases like if you already investigated the players\r\n if (player.get_current_room().get_contained_players_string().size() < 2 && player.getSeen_players().contains(player.getName())) {\r\n System.out.println(\"There is no one new to inspect in here you already inspected yourself redoing turn\");\r\n number = 100;\r\n break;\r\n }\r\n\r\n // checking for people in the room\r\n System.out.println(\"The people in your room are: \" + player.get_current_room().get_contained_players_string());\r\n System.out.println(\"Who do you want to investigate?\");\r\n\r\n //answer is the person you want to investigate unless you want to redo your choice\r\n String answer = check_scanner(sc, player, player.get_current_room().get_contained_players(), player.getSeen_players());\r\n if (answer.equals(\"back\")) {\r\n number = 100;\r\n System.out.println(\"It looks like you want to select another action. Try doing something else\");\r\n break;\r\n } else {\r\n\r\n //investigate player and see if they are murderers\r\n Player investigate = player.get_current_room().get_contained_players().get(answer);\r\n player.setSeen_players(investigate);\r\n System.out.println(\"The players you have investigate are \" + player.getSeen_players());\r\n if (investigate.isBad()) {\r\n player.setFoundbadplayer(investigate);\r\n\r\n //found murderer print\r\n System.out.println(player.getfoundbadPlayer().getName() + \" has been found to be a murderer\");\r\n } else {\r\n\r\n //investigated person was not a murderer let user know\r\n System.out.println(\"The player you investigated is not a murderer\");\r\n }\r\n formatting();\r\n }\r\n break;\r\n\r\n //Case 2 for the weapon list is exactly like players except the player is not a weapon so they cannot accuse themselves as a weapon which is why we check if weapon size is <1 here when\r\n // above we checked 2\r\n case 2:\r\n if (player.get_current_room().get_contained_weapons_string().size() < 1 || player.getSeen_weapons().containsAll(player.get_current_room().get_contained_weapons_string())) {\r\n System.out.println(\"There are no new weapons to inspect in here. Redo your turn\");\r\n number = 100;\r\n break;\r\n }\r\n\r\n //Same stuff as investigating player case 1\r\n System.out.println(\"The weapons in your room are: \" + player.get_current_room().get_contained_weapons_string());\r\n System.out.println(\"Which one do you want to investigate?\");\r\n String answer2 = check_scanner(sc, player, player.get_current_room().get_contained_weapons(), player.getSeen_weapons());\r\n if (answer2.equals(\"back\")) {\r\n number = 100;\r\n System.out.println(\"looks like you want to try again, redoing turn\");\r\n break;\r\n } else {\r\n Weapons investigate2 = player.get_current_room().get_contained_weapons().get(answer2);\r\n player.setSeen_weapons(investigate2);\r\n System.out.println(\"\\n The weapons you have investigated are: \" + player.getSeen_weapons());\r\n if (investigate2.isBad()) {\r\n player.setFoundbadweapon(investigate2);\r\n System.out.println(\"the weapon that was used for the murder was the \" + player.getFoundbadweapon().getName());\r\n } else {\r\n System.out.println(\"The weapon you investigated was not used for murder\");\r\n }\r\n }\r\n formatting();\r\n break;\r\n case 3:\r\n\r\n //investigating rooms this first part same as the for weapons and players just ensure that the player has not already investigated the room\r\n System.out.println(player.getSeen_rooms());\r\n if (player.getSeen_rooms().contains(player.get_current_room().getName())) {\r\n System.out.println(\"You've already inspected this room. Redoing turn\");\r\n number = 100;\r\n break;\r\n }\r\n System.out.println(\"You are currently in \" + player.get_current_room().getName());\r\n Rooms investigate3 = player.get_current_room();\r\n player.setSeen_rooms(investigate3);\r\n System.out.println(\"Updating list of investigated rooms. You have been to: \" + player.getSeen_rooms());\r\n if (investigate3.isBad()) {\r\n\r\n //tell user if the room they investigated was used for murder\r\n player.setFoundbadRooms(investigate3);\r\n System.out.println(\"the room that the murder was committed in was \" + player.getFoundbadroom().getName());\r\n } else {\r\n //if it wasn't\r\n System.out.println(\"the room was not used for murder\");\r\n\r\n }\r\n formatting();\r\n break;\r\n case 4:\r\n\r\n /*if (player.get_current_room().get_contained_players_string().size() < 2) {\r\n System.out.println(\"There is no new people to battle here try again\");\r\n number = 100;\r\n break;\r\n }\r\n if (player.getSeen_rooms().size()<1 && player.getSeen_players().size()<1 && player.getSeen_rooms().size()<1)\r\n {\r\n System.out.println(\"Nice try you cannot bet anything please\");\r\n number = 100;\r\n break;\r\n }*/\r\n\r\n //Check to see if you have found any murder related items if not you cannot battle and bet our chances\r\n if (player.getFoundbadweapon() == null && player.getFoundbadroom() == null && player.getfoundbadPlayer() == null) {\r\n System.out.println(\"You need to have found at least 1 gamepiece involved in murder for to bet for a battle. Sorry, try again later. Your turn was not used\");\r\n number = 100;\r\n break;\r\n }\r\n if (player.get_current_room().get_contained_players().size() == 0) {\r\n System.out.println(\"There is no one in your room to battle. Try doing something else\");\r\n number = 100;\r\n break;\r\n }\r\n System.out.println(\"Who do you want to battle in a game of Roll Some Dice?\");\r\n Set<String> temp_string = new HashSet<String>(player.get_current_room().get_contained_players_string());\r\n temp_string.remove(player.getName());\r\n System.out.println(\"The players available are: \" + temp_string);\r\n HashSet<String> empty = new HashSet<String>();\r\n HashMap<String, Player> temp = new HashMap<String, Player>(player.get_current_room().get_contained_players());\r\n temp.remove(player.getName());\r\n String answer3 = check_scanner(sc, player, temp, empty);\r\n if (answer3.equals(\"back\")) {\r\n number = 100;\r\n System.out.println(\"looks like you want to try again\");\r\n break;\r\n } else {\r\n\r\n System.out.println(\"If you lose, all your information in the category which you have the most information\");\r\n int dice1 = (int) Math.floor(Math.random() * 12);\r\n int dice2 = (int) Math.floor(Math.random() * 12);\r\n System.out.println(\"\\n your dice was \" + dice1);\r\n System.out.println(\"Your Opponents dice was \" + dice2);\r\n if (dice1 > dice2) {\r\n System.out.println(\"Your roll was greater, you win!\");\r\n System.out.println(\"The things you have learned are: \");\r\n HashMap<String, Weapons> tempweapons = player.get_current_room().get_contained_weapons();\r\n System.out.println(\"Updating your seen game pieces\");\r\n for (Player players : player.get_current_room().get_contained_players().values()) {\r\n if (!player.getSeen_players().contains(players.getName())) {\r\n player.setSeen_players(players);\r\n System.out.println(players.getName() + \" has been added to your knowledge\");\r\n\r\n }\r\n if (players.isBad()) {\r\n player.setFoundbadplayer(players);\r\n System.out.println(\"Found the murderer\" + player.getfoundbadPlayer().getName());\r\n }\r\n\r\n }\r\n if (!player.getSeen_rooms().contains(player.get_current_room().getName())) {\r\n player.setSeen_rooms(player.get_current_room());\r\n System.out.println(player.get_current_room().getName() + \" has been added to your knowledge\");\r\n\r\n if (player.get_current_room().isBad()) {\r\n player.setFoundbadRooms(player.get_current_room());\r\n\r\n\r\n }\r\n }\r\n for (Weapons weapon : player.get_current_room().get_contained_weapons().values()) {\r\n if (!player.getSeen_weapons().contains(weapon.getName())) {\r\n player.setSeen_weapons(weapon);\r\n System.out.println(weapon.getName() + \" has been added to your knowledge\");\r\n\r\n }\r\n if (weapon.isBad()) {\r\n player.setFoundbadweapon(weapon);\r\n System.out.println(\"Found the murder weapon\" + player.getFoundbadweapon().getName());\r\n }\r\n\r\n\r\n }\r\n System.out.println(\"Seen players are \" + player.getSeen_players());\r\n System.out.println(\"Seen rooms are \" + player.getSeen_rooms());\r\n System.out.println(\"Seen weapons are \" + player.getSeen_weapons());\r\n\r\n } else {\r\n System.out.println(\"You lost\");\r\n if (player.getfoundbadPlayer() != null) {\r\n player.getSeen_players().clear();\r\n player.setFoundbadplayer(null);\r\n System.out.println(\"The player that you thought had committed murder has been switched up\");\r\n System.out.println(\"All prior knowledge you had about the other players have been erased, \\nPrinting your list of seen players \" + player.getSeen_players());\r\n is_player_bad = false;\r\n bad_player = null;\r\n for (Player players : player_list) {\r\n //Changing up the the player who committed murder also moving them around\r\n System.out.println(\"Moving you back to the Hospital at Central Hub to heal your battle wounds\");\r\n System.out.println(\"Other players are have moved around due to the chaos that has ensued\");\r\n players.move_to_room(start_room);\r\n if (!player_chracter.equals(players)) {\r\n int rand = (int) Math.floor(Math.random() * room_list.size());\r\n players.move_to_room(room_list.get(rand));\r\n }\r\n\r\n }\r\n\r\n //set a random player to be the murderer\r\n int random_num = (int) Math.floor(Math.random() * player_list.size());\r\n while (player.equals(player_list.get(random_num))) {\r\n random_num = (int) Math.floor(Math.random() * player_list.size());\r\n }\r\n player_list.get(random_num).setbad(true);\r\n is_player_bad = true;\r\n bad_player = player_list.get(random_num);\r\n } else if (player.getFoundbadroom() != null) {\r\n\r\n //changing up the room that was originoally thought to contain the murder similar to the players modification but here there is not moving rooms around\r\n player.getSeen_rooms().clear();\r\n player.setFoundbadRooms(null);\r\n System.out.println(\"The room that you thought was for the murder has been switched up\");\r\n System.out.println(\"All past knowledge about rooms that you had are erased printing your list of seen rooms \" + player.getSeen_rooms());\r\n is_room_bad = false;\r\n bad_rooms = null;\r\n int random_num = (int) Math.floor(Math.random() * room_list.size());\r\n room_list.get(random_num).setbad(true);\r\n is_room_bad = true;\r\n bad_rooms = room_list.get(random_num);\r\n } else if (player.getFoundbadweapon() != null) {\r\n //changing up the weapon originally thought to cause murder similarly implemented like the room\r\n\r\n //player.getSeen_weapons().clear();\r\n player.setFoundbadweapon(null);\r\n System.out.println(\"The weapon that you thought was for the murder has been switched up\");\r\n System.out.println(\"All past knowledge about weapons that you had are erased printing your list of seen weapons \" + player.getSeen_weapons());\r\n int random_num = (int) Math.floor(Math.random() * weapon_list.size());\r\n weapon_list.get(random_num).setbad(true);\r\n is_weapon_bad = true;\r\n bad_weapons = weapon_list.get(random_num);\r\n }\r\n\r\n\r\n }\r\n }\r\n formatting();\r\n break;\r\n case 5:\r\n formatting();\r\n System.out.println(\"You have decided to skip an action. Either proceed to move or stay put\");\r\n\r\n break;\r\n case 6:\r\n formatting();\r\n get_info(player);\r\n\r\n break;\r\n case 7:\r\n formatting();\r\n get_instructions();\r\n break;\r\n case 8:\r\n formatting();\r\n cheater();\r\n break;\r\n case 9:\r\n String sure = \"no\";\r\n while (sure.equals(\"no\")) {\r\n System.out.println(\"So you want to take a guess - just know if you guess wrong its game over\");\r\n System.out.println(\"We will prompt you one more time after your guesses to make sure you are sure. so if you mess up dont panic\");\r\n System.out.println(\"In this exact order using spaces to separate each answer reply on one line who the killer was, weapon used, and room here is a sample\");\r\n System.out.println(\"john gun balcony\");\r\n String killer = null;\r\n String weap = null;\r\n String location = null;\r\n System.out.println(\"Enter your guess for killer\");\r\n killer = sc.next().toLowerCase();\r\n System.out.println(\"Enter your guess for weapon\");\r\n weap = sc.next().toLowerCase();\r\n System.out.println(\"Enter your guess for the room of murder\");\r\n location = sc.next().toLowerCase();\r\n\r\n\r\n System.out.println(\"You entered:\");\r\n System.out.println(killer + \" \" + weap + \" \" + location);\r\n System.out.println(\"Are you sure enter yes, no, or back (will allow you to go back to the game)\");\r\n sure = sc.next();\r\n while (!(sure.equals(\"yes\")) && !(sure.equals(\"no\")) && !(sure.equals(\"back\"))) {\r\n System.out.println(\"That was not an option try again.\");\r\n System.out.println(\"Are you sure enter yes, no, or back (will allow you to go back to the game)\");\r\n sure = sc.next();\r\n }\r\n if (sure.equals(\"back\")) {\r\n break;\r\n } else if (sure.equals(\"yes\")) {\r\n end_game = true;\r\n if (killer.equals(bad_player.getName()) && weap.equals(bad_weapons.getName()) && location.equals(bad_rooms.getName())) {\r\n System.out.println(\"CONGRATS! YOU ARE THE WINNER!!\");\r\n System.out.println(\"This game took you \" + turns+ \" turns!\");\r\n break;\r\n } else {\r\n System.out.println(\"LOSER\");\r\n System.out.println(\"YOU LOST IN\" + turns + \" TURNS\");\r\n break;\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n default:\r\n if(!end_game) {\r\n System.out.println(\"That's not an option try again\");\r\n number = 100;\r\n break;\r\n }\r\n\r\n }\r\n }\r\n if (!end_game) {\r\n get_info(player);\r\n System.out.println(\"\\n\");\r\n System.out.println(\"Now you get to move, where would you like to go?\");\r\n System.out.println(\"The options are \" + player_chracter.get_current_room().get_connected_rooms_string());\r\n System.out.println(\"If you type back for this question you will NOT MOVE\");\r\n HashSet<String> empty = new HashSet<String>();\r\n String answer = check_scanner(sc, player, player.get_current_room().get_connected_rooms(), empty);\r\n if (!answer.equals(\"back\")) {\r\n player.move_to_room(player.get_current_room().get_connected_rooms().get(answer));\r\n System.out.println(\"you are moving to \" + player.get_current_room().getName());\r\n\r\n } else {\r\n System.out.println(\"you have chosen not to move\");\r\n }\r\n System.out.println(\"Here is your status\");\r\n get_info(player);\r\n\r\n }\r\n }", "title": "" }, { "docid": "e8424d43c2ace906732f26e0a8569fbb", "score": "0.58613133", "text": "public void checkGame1Win() {\n // if there is a win, codify current player into main matrix\n if (allEqual(game1[1][1], game1[1][2], game1[1][3]) || allEqual(game1[2][1], game1[2][2], game1[2][3]) || allEqual(game1[3][1], game1[3][2], game1[3][3]) || allEqual(game1[1][1], game1[2][2], game1[3][3]) || allEqual(game1[1][3], game1[2][2], game1[3][1]) || allEqual(game1[1][1], game1[2][1], game1[3][1]) || allEqual(game1[1][2], game1[2][2], game1[3][2]) || allEqual(game1[1][3], game1[2][3], game1[3][3])) {\n mainGame[1][1] = currentPlayer;\n // if cursor points to this board, allow all movement\n if (currentGame == 1) currentGame = 0;\n disableGame1();\n checkMainGameWin();\n setText();\n }\n // if there is no win, check for a draw\n drawCondition1();\n }", "title": "" }, { "docid": "cc545bcccb13268c07af02b8ce4c2fda", "score": "0.5853952", "text": "void botsTurn() {\n Choose temp = null;\n players[idxCurrPlayer].getBoard().getNeighbors().clear();\n //checks if the filled list is emtpy then gets all crossed neighbors otherwise gets filled neighbors positions\n if (players[idxCurrPlayer].getBoard().getFilledNeighbors().isEmpty()) {\n addToNeihborsBot(players[idxCurrPlayer].getBoard().getAddCrossedNeighbors());\n } else {\n addToNeihborsBot(players[idxCurrPlayer].getBoard().getFilledNeighbors());\n }\n //choose the best position for the laying die\n temp = players[idxCurrPlayer].ai(players[idxCurrPlayer].getBoard().getNeighbors(), flagsNum);\n if (temp != null) {//lay the dice in the board and display in the gui\n players[idxCurrPlayer].getBoard().setLaidDicePos(temp.getPos());\n this.gui.addDiceToClickedPos(temp.getPos(), players[idxCurrPlayer].getBoard().getCellValue(temp.getPos()), idxCurrPlayer);\n //when the die is laid to the board after that add it to the filled list\n players[idxCurrPlayer].getBoard().addToFilledPos(temp.getPos());\n removeFromDice(temp.getPos());\n\n } else {//if ai does not choose any position then player must drop out\n if (!players[idxCurrPlayer].getDropOut()) {\n players[idxCurrPlayer].setDropOUt(true);\n this.gui.showPenOnBoard(idxCurrPlayer);\n }\n }\n if (isLastActivePlayer()) {\n players[idxCurrPlayer].setDropOUt(true);\n }\n nextPlayer();\n }", "title": "" }, { "docid": "d4129d138eabe8aaa4160134bf610b5f", "score": "0.5853462", "text": "public void reset(Player player) {\r\n \t\tplayer.setFallDistance(0f);\r\n \t\tif (ncpPresent){\r\n \t\t\ttry{\r\n \t\t\t\tNoCheatPlusHooks.resetViolations(player);\r\n \t\t\t} catch (Throwable t){}\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "ba40b9cb00a8dfeaa423037aac0015e7", "score": "0.585158", "text": "@Test\n public void winnerOneTeam(){\n \tEntity team1Player1 = PlayerEntities.createPlayer(miniWorld, NoodleEnum.NOODLE_PLAIN, false, TeamEnum.TEAM_BRAVO, 0);\n TeamEnum winner = TeamEnum.TEAM_NULL;\n //By passing winner instead of null, turn and delay timers will be active\n TurnSystem turnSys = new TurnSystem(miniWorld, null, null, winner);\n\n //Jump past delay time\n turnSys.run(miniWorld, 4, 0);\n \n Optional<TurnComponent> turn1 = miniWorld.getComponent(team1Player1, TurnComponent.class);\n assertTrue(turn1.isPresent());\n turn1.get().clearTurn(0);\n \n //Switch to next turn, testing for winners\n turnSys.run(miniWorld, 30, 0);\n\n \n assertTrue(winner.getTeamId() == TeamEnum.TEAM_BRAVO.getTeamId());\n }", "title": "" }, { "docid": "241275f0e959e4d48c2c8c86bbc50f3d", "score": "0.5848645", "text": "public void play() throws TicTacToeBoard.SpaceTakenException{\n \n boolean isHumanTurn = (Math.random() < 0.5);\n TicTacToeBoard board = new TicTacToeBoard();\n TicTacToeAI computer = new TicTacToeAI();\n\n board.initialize();\n if(isHumanTurn)\n {\n if (difficulty==1){ \n System.out.print(\"You go first on easy mode. \\n\"); \n System.out.print(ANSI_PURPLE + \"--------------------------------------------------\\n\" + ANSI_RESET);\n\n } else if (difficulty==2){\n System.out.print(\"You go first on Artificial Intelligence mode. \\n\"); \n System.out.print(ANSI_PURPLE + \"--------------------------------------------------\\n\" + ANSI_RESET);\n }\n }\n else\n {\n if (difficulty==1){ \n System.out.print(\"The computer goes first on easy mode. \\n\"); \n System.out.print(ANSI_PURPLE + \"--------------------------------------------------\\n\" + ANSI_RESET);\n\n } else if (difficulty==2){\n System.out.print(\"The computer goes first on Artificial Intelligence mode. \\n\");\n System.out.print(ANSI_PURPLE + \"--------------------------------------------------\\n\" + ANSI_RESET);\n }\n } \n String response = null;\n while (response == null){\n \tSystem.out.println(\"Press any key and 'enter' to begin. \");\n \tScanner user_input = new Scanner(System.in);\n \tresponse = user_input.toString();\n \tuser_input.next();\n }\n \n while(true) {\n if(isHumanTurn) {\n if (board.isTied()){\n System.out.println(ANSI_RED + \"It's a tie!\" + ANSI_RESET);\n break;\n }\n humanTurn(board);\n }\n else { \n if (board.isTied()){\n System.out.println(ANSI_RED + \"It's a tie!\" + ANSI_RESET);\n break;\n }\n if (difficulty==1){ \n computer.computerTurnEasy(board);\n \t} else if (difficulty==2){\n computer.computerTurnDifficult(board);\n \t}\n }\n board.printBoard();\n if (isHumanTurn){\n \tif (board.isWonBy('X')){\n \tSystem.out.println(ANSI_GREEN + \"The human has won!\" + ANSI_RESET);\n \tbreak;\n \t}\n } else if (!isHumanTurn){\n \tif (board.isWonBy('0')){\n \tSystem.out.println(ANSI_RED + \"The computer has won!\" + ANSI_RESET);\n \tbreak;\n \t}\n } else if (board.isTied()){\n \tSystem.out.println(ANSI_BLUE + \"It's a tie!\" + ANSI_RESET);\n break;\n }\n isHumanTurn = !isHumanTurn;\n } \n System.out.println(\"=== GAME OVER ===\"); \n reader.close();\n }", "title": "" }, { "docid": "fcbcbf9dbaf05bf5f0bb5cc1a2e27445", "score": "0.5841627", "text": "private void decideWinner() {\n\n\t}", "title": "" }, { "docid": "fe2d33c3daca6d4534cbf659d042a8d5", "score": "0.5839637", "text": "@Test\r\n\tvoid testPlayerMove() {\r\n\t\tplayer.setColumn(0);\r\n\t\tplayer.setRow(0);\r\n\t\tassertTrue(game.updatePlayerMove(player));\r\n\t\tplayer.setColumn(-1);\r\n\t\tassertFalse(game.updatePlayerMove(player));\r\n\t}", "title": "" }, { "docid": "f354f5abe37695b59aa07237fce5812a", "score": "0.58391273", "text": "public static void PlayTicTacToeGame() {\n System.out.println(\"Enter the letter of your choice: \");\n char letter = userinput.next().charAt(0);\n char userLetter = chooseLetter(letter);\n char computerLetter = (chooseLetter(letter) == 'X' ? 'O' : 'X');\n char[] board = createBoard();\n Player player = whoStartsFirst();\n System.out.println(player);\n boolean gameGoingOn = true;\n GamePosition gameStatus;\n while (gameGoingOn) {\n if (player == Player.USER) {\n showBoard(board);\n int userMove = getUserMove(board);\n String winningMessage = \"Congrats!You Won!\";\n gameStatus = getGameCondition(board, userMove, userLetter, winningMessage);\n player = Player.COMPUTER;\n } else {\n String winningMessage = \"OOps!You lost to the computer!\";\n int computerMove = getComputerMove(board, computerLetter, userLetter);\n gameStatus = getGameCondition(board, computerMove, computerLetter, winningMessage);\n player = Player.USER;\n }\n if (gameStatus == GamePosition.CONTINUE) continue;\n gameGoingOn = false;\n\n }\n }", "title": "" }, { "docid": "309d595b9650e72e709fe033c70977d0", "score": "0.5837267", "text": "public void checkMainGameWin() {\n //first check if the game can be won by either player, best case scenario\n //only testing this for main match, since smaller unwinnable boards can be used for tactics\n //copy the current state of the main game into two identical matrices\n int[][] gameWinX = new int[4][4];\n int[][] gameWinO = new int[4][4];\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n gameWinX[i][j] = mainGame[i][j];\n gameWinO[i][j] = mainGame[i][j];\n }\n }\n //then fill any empty (!1, !2, !4) spaces with either symbol\n for (int i = 1; i < 4; i++) {\n for (int j = 1; j < 4; j++) {\n if (gameWinO[i][j] == 0) gameWinO[i][j] = 2;\n if (gameWinX[i][j] == 0) gameWinX[i][j] = 1;\n }\n }\n //if no win is possible for X or O, trigger an early game end\n if (allEqual(gameWinX[1][1], gameWinX[1][2], gameWinX[1][3]) || allEqual(gameWinX[2][1], gameWinX[2][2], gameWinX[2][3]) || allEqual(gameWinX[3][1], gameWinX[3][2], gameWinX[3][3]) || allEqual(gameWinX[1][1], gameWinX[2][2], gameWinX[3][3]) || allEqual(gameWinX[1][3], gameWinX[2][2], gameWinX[3][1]) || allEqual(gameWinX[1][1], gameWinX[2][1], gameWinX[3][1]) || allEqual(gameWinX[1][2], gameWinX[2][2], gameWinX[3][2]) || allEqual(gameWinX[1][3], gameWinX[2][3], gameWinX[3][3]) || allEqual(gameWinO[1][1], gameWinO[1][2], gameWinO[1][3]) || allEqual(gameWinO[2][1], gameWinO[2][2], gameWinO[2][3]) || allEqual(gameWinO[3][1], gameWinO[3][2], gameWinO[3][3]) || allEqual(gameWinO[1][1], gameWinO[2][2], gameWinO[3][3]) || allEqual(gameWinO[1][3], gameWinO[2][2], gameWinO[3][1]) || allEqual(gameWinO[1][1], gameWinO[2][1], gameWinO[3][1]) || allEqual(gameWinO[1][2], gameWinO[2][2], gameWinO[3][2]) || allEqual(gameWinO[1][3], gameWinO[2][3], gameWinO[3][3])) {\n } else {\n mainGameDraw();\n return;\n }\n\n //then check if game is actually won (forgot to do that first time I wrote this ^^)\n if (allEqual(mainGame[1][1], mainGame[1][2], mainGame[1][3]) || allEqual(mainGame[2][1], mainGame[2][2], mainGame[2][3]) || allEqual(mainGame[3][1], mainGame[3][2], mainGame[3][3]) || allEqual(mainGame[1][1], mainGame[2][2], mainGame[3][3]) || allEqual(mainGame[1][3], mainGame[2][2], mainGame[3][1]) || allEqual(mainGame[1][1], mainGame[2][1], mainGame[3][1]) || allEqual(mainGame[1][2], mainGame[2][2], mainGame[3][2]) || allEqual(mainGame[1][3], mainGame[2][3], mainGame[3][3])) {\n //generate winning text\n gameEnd = true;\n setText();\n\n //recolour all draw boards\n allDrawConditions();\n\n // highlight winning board\n if (allEqual(mainGame[1][1], mainGame[1][2], mainGame[1][3])) {\n button11.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button12.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button13.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button14.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button15.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button16.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button17.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button18.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button19.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button21.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button22.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button23.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button24.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button25.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button26.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button27.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button28.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button29.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button31.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button32.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button33.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button34.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button35.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button36.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button37.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button38.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button39.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n\n // disable all boards\n disableAllBoards();\n\n return;\n }\n if (allEqual(mainGame[2][1], mainGame[2][2], mainGame[2][3])) {\n button41.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button42.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button43.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button44.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button45.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button46.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button47.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button48.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button49.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button51.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button52.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button53.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button54.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button55.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button56.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button57.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button58.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button59.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button61.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button62.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button63.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button64.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button65.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button66.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button67.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button68.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button69.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n\n // disable all boards\n disableAllBoards();\n\n return;\n }\n if (allEqual(mainGame[3][1], mainGame[3][2], mainGame[3][3])) {\n button71.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button72.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button73.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button74.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button75.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button76.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button77.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button78.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button79.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button81.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button82.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button83.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button84.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button85.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button86.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button87.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button88.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button89.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button91.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button92.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button93.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button94.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button95.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button96.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button97.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button98.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button99.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n\n // disable all boards\n disableAllBoards();\n\n return;\n }\n if (allEqual(mainGame[1][1], mainGame[2][2], mainGame[3][3])) {\n button11.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button12.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button13.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button21.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button22.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button23.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button31.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button32.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button33.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button44.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button45.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button46.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button54.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button55.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button56.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button64.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button65.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button66.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button77.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button78.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button79.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button87.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button88.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button89.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button97.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button98.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button99.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n\n // disable all boards\n disableAllBoards();\n\n return;\n }\n if (allEqual(mainGame[1][3], mainGame[2][2], mainGame[3][1])) {\n button17.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button18.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button19.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button27.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button28.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button29.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button37.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button38.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button39.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button44.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button45.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button46.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button54.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button55.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button56.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button64.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button65.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button66.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button71.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button72.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button73.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button81.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button82.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button83.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button91.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button92.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button93.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n\n // disable all boards\n disableAllBoards();\n\n return;\n }\n if (allEqual(mainGame[1][1], mainGame[2][1], mainGame[3][1])) {\n button11.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button12.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button13.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button21.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button22.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button23.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button31.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button32.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button33.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button41.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button42.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button43.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button51.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button52.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button53.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button61.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button62.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button63.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button71.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button72.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button73.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button81.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button82.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button83.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button91.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button92.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button93.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n\n // disable all boards\n disableAllBoards();\n\n return;\n }\n if (allEqual(mainGame[1][2], mainGame[2][2], mainGame[3][2])) {\n button14.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button15.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button16.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button24.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button25.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button26.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button34.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button35.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button36.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button44.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button45.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button46.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button54.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button55.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button56.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button64.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button65.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button66.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button74.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button75.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button76.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button84.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button85.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button86.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button94.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button95.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button96.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n\n // disable all boards\n disableAllBoards();\n\n return;\n }\n if (allEqual(mainGame[1][3], mainGame[2][3], mainGame[3][3])) {\n button17.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button18.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button19.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button27.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button28.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button29.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button37.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button38.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button39.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button47.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button48.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button49.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button57.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button58.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button59.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button67.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button68.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button69.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button77.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button78.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button79.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button87.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button88.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button89.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button97.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button98.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n button99.getBackground().setColorFilter(new LightingColorFilter(0xff4CAF50, 0x000000));\n\n // disable all boards\n disableAllBoards();\n\n return;\n }\n }\n\n //exit out if main game is not complete\n int i = 1;\n int j;\n while (i < 4) {\n j = 1;\n while (j < 4) {\n if (mainGame[i][j] == 0) return;\n j++;\n }\n i++;\n }\n\n //otherwise, the game must be full but no score means there is a draw, so trigger that method\n mainGameDraw();\n }", "title": "" }, { "docid": "e102c52ad352b46a601500c7019b1980", "score": "0.58346933", "text": "@Test (expected = IllegalMove.class)\r\n public void testIllegalMoveRedOutOfBound() {\r\n \tPlayerInfo player1 = new PlayerInfo (\"player1\", Color.R, BoardArea.Area2);\r\n\t\tPlayerInfo player2 = new PlayerInfo (\"player2\", Color.B, BoardArea.Area5);\r\n\t\tPlayerInfo [] playerInfo = {player1, player2};\r\n\t\tState state = new State(playerInfo);\r\n\t\tassertEquals(state.currentPlayIndex, 0);\r\n\t\tstate.players[state.currentPlayIndex].SelectChess(new Position(4,5));\r\n\t\tstate.players[state.currentPlayIndex].GoChess(new Position(4,4));\r\n\t\tstate.getNextPlay();\r\n }", "title": "" }, { "docid": "44065113527945e714d2de532733a251", "score": "0.5833181", "text": "private void newTurn() {\n if(model.isKillBoardFull() && model.getCurrentTurn().isFinalFrenzy())\n {\n if(model.getCurrentTurn().getnPlayedFinalFrenzy() == model.getNumPlayersAlive())\n {\n for(Player p : model.getPlayers())\n if(!p.getDamage().isEmpty())\n model.updatePoints(p,false);\n model.countKillBoardPoints();\n model.endGame();\n }\n else\n model.getCurrentTurn().newTurn(true);\n }\n else if(model.isKillBoardFull() && !model.getCurrentTurn().isFinalFrenzy())\n {\n model.startFinalFrenzy();\n model.notifyFinalFrenzy();\n model.getCurrentTurn().newTurn(true);\n }\n else{\n /*if(currPlayer.getId() == 2 || model.getCurrentTurn().isFinalFrenzy())\n {\n if(model.getCurrentTurn().getnPlayedFinalFrenzy() == model.getNumPlayersAlive())\n model.endGame();\n else {\n model.notifyFinalFrenzy();\n model.getCurrentTurn().newTurn(true);\n }\n }\n else*/\n model.getCurrentTurn().newTurn(false);\n }\n }", "title": "" }, { "docid": "dc57ff25735375a73f0afce2fdeecf30", "score": "0.5832257", "text": "@Test\r\n public void testLeftDiagonalWin() {\r\n Game game = new Game(null, null);\r\n Player p1 = new Player(\"Olga\", \"\");\r\n Player p2 = new Player(\"Jens\", \"\");\r\n game.setPlayers(new Player[]{p1, p2});\r\n game.placePiece(0);\r\n game.placePiece(1);\r\n game.placePiece(4);\r\n game.placePiece(2);\r\n Player actualWinner = game.placePiece(8);\r\n Player expectedWinner = p1;\r\n assertEquals(\"Den forventede vinder vandt ikke ved en række: \", expectedWinner, actualWinner);\r\n }", "title": "" }, { "docid": "cde236303e42f0f888c2f393262fe0ba", "score": "0.5829597", "text": "private static void playersTurn() {\n\t\tScanner input = new Scanner(System.in);\n\n\t\tSystem.out.println(\"YOUR TURN\");\n\t\tint x = -1, y = -1;\n\n\t\tdo{\n\t\t\twhile(!isValid(x, y)){\n\t\t\t\ttry{\n\t\t\t\tSystem.out.print(\"Enter X coordinate: \");\n\t\t\t\tx = input.nextInt();\n\t\t\t\tSystem.out.print(\"Enter Y coordinate: \");\n\t\t\t\ty = input.nextInt();\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\tSystem.out.println(\"Please enter numeric numbers only\");\n\t\t\t\t\t\n\t\t\t\t\tinput = new Scanner(System.in);\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}while (board.attackMove(x,y) == '-');\n\n\t\tchar event = board.attackMove(x, y);\n\n\t\tswitch (event){\n\t\tcase '2':\n\t\t\tSystem.out.println(\"Boom! You sunk the ship!\");\n\t\t\tboard.mark(x, y, '!');\n\t\t\tcomputerShips--;\n\t\t\tbreak;\n\n\t\tcase '@':\n\t\t\tSystem.out.println(\"Oh no, you sunk your own ship :(\");\n\t\t\tboard.mark(x, y, 'x');\n\t\t\tplayerShips--;\n\t\t\tbreak;\n\t\tcase ' ':\n\t\t\tSystem.out.println(\"Sorry, you missed\");\n\t\t\tboard.mark(x, y, '-');\n\t\t\tbreak;\n\t\t}\n\t\tboard.printMap();\n\n\t}", "title": "" }, { "docid": "8f0efc3a759b83208910abaa3001b951", "score": "0.5823843", "text": "public void switchPlayer() {\n if (this.turn == 1) {\n this.player = 0;\n this.turn = 0;\n } else {\n this.player = 1;\n this.turn = 1;\n }\n }", "title": "" }, { "docid": "ccd00fb08d2c4b51791ffbc8ce9bd21b", "score": "0.5816254", "text": "static public void playerLoop(){\n // Game loop\n while (p1.getScore() < pointsNeeded && p2.getScore() < pointsNeeded){\n \n if(p1sTurn) print(p1.getName() + \", it is your turn.\");\n else print(p2.getName() + \", it is your turn.\");\n sleep();\n \n // Turn loop\n goAgain = true;\n while(goAgain){\n playerTurn();\n }\n }\n }", "title": "" }, { "docid": "aac7cdb4098d1448f405f38dd7fd8600", "score": "0.5812659", "text": "public void checkNorth() {\n turnLeft();\n checkAhead();\n }", "title": "" }, { "docid": "b0e222fa7a409b5f0b9dd595bb10bb08", "score": "0.5810138", "text": "public void restartGame(){\n resetCards();\n if(MenuState.getIsTwoPlayer()){\n PlayState.setPlayer1Wins(0);\n PlayState.setPlayer2Wins(0);\n setCurrentState(new CoinTossState());\n }else {\n OnePlayerState.setPlayer1Wins(0);\n OnePlayerState.setPlayer2Wins(0);\n setCurrentState(new OnePlayerState());\n }\n }", "title": "" }, { "docid": "a6bf284bcd1079b1e9c6f7856cc7e35b", "score": "0.5806189", "text": "public void setOpponent(Player opponent) {\n this.opponent = opponent;\n }", "title": "" }, { "docid": "338ed5a3688d20616b72f777f586d1f1", "score": "0.5803187", "text": "private void opponentLeft() {\r\n if(whoseTurn == 1) {\r\n dataOutPlayer2.println(\"Opponent left\");\r\n playerLeft = true;\r\n }\r\n else {\r\n dataOutPlayer1.println(\"Opponent left\");\r\n playerLeft = true;\r\n }\r\n }", "title": "" }, { "docid": "92f59353a074bd8d3dd80a0d300c1866", "score": "0.58028173", "text": "public void retryGame() {\n\t\tscore = 0;\n\t\tpasses = 0;\n\t\tcurrentPlayer = 0;\n\t\tdifficulty = 1;\n\t\tsafeToMove = true;\n\t\tsafeToPass = false;\n\t\tconfirming = false;\n\t\t\n\t\tview.resetEverything();\n\t\tview.enableTouchPoint(players.get(currentPlayer).getTouchpointColor());\n\t\tview.changePlayer(players.get(currentPlayer), passes);\n\t\t//clock.setText(\"5\");\n\t\tclock.setTextColor(players.get(currentPlayer).touchpointColor);\n\t\t\n\t\tupdateScoreText();\n\t\tscoreText.setTextColor(players.get(nextPlayer()).touchpointColor);\t\t\n\t\t\n\t\tsetContentView(layout);\t\t\n\t\tview.shouldIExplode(false); \n\n\t\tSensor mag = manager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);\n\t\tSensor accel = manager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n\n\t\tmanager.registerListener(listener, mag, SensorManager.SENSOR_DELAY_FASTEST);\n\t\tmanager.registerListener(listener, accel, SensorManager.SENSOR_DELAY_FASTEST);\n\n\t\tbombTimer = new BombTimer(11000, 1000, clock, this);\n\t\tbombTimer.start();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "4525c7ea87f0865ed3f745bfb9e1521e", "score": "0.5797709", "text": "@Test (expected = IllegalMove.class)\r\n public void testIllegalMoveRedToCannotGo() {\r\n \tPlayerInfo player1 = new PlayerInfo (\"player1\", Color.R, BoardArea.Area2);\r\n\t\tPlayerInfo player2 = new PlayerInfo (\"player2\", Color.B, BoardArea.Area5);\r\n\t\tPlayerInfo [] playerInfo = {player1, player2};\r\n\t\tState state = new State(playerInfo);\r\n\t\tassertEquals(state.currentPlayIndex, 0);\r\n\t\tstate.players[state.currentPlayIndex].SelectChess(new Position(4,5));\r\n\t\tstate.players[state.currentPlayIndex].GoChess(new Position(10,5));\r\n\t\tstate.getNextPlay();\r\n }", "title": "" }, { "docid": "e3e5a308412f22013c5011efda99f88a", "score": "0.57958746", "text": "public void winCondition(){\n\t\tint nuetralSpace = 0;\n\t\tint playerOne = 0;\n\t\tint playerTwo = 0;\n\t\tfor(int row = 0; row < BOARD_HEIGHT; row++) {\n\t\t\tfor(int column = 0; column < BOARD_WIDTH; column++) {//counts how many spaces are unclaimed\n\t\t\t\tif(board[row][column].getState() == 0) nuetralSpace++;\n\t\t\t\tif(board[row][column].getState() == 1) playerOne++;\n\t\t\t\tif(board[row][column].getState() == 2) playerTwo++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(playerOne == 0 ||nuetralSpace == 0||playerTwo == 0 ) {\n\t\t\tthis.toString();\n\t\t\tSystem.out.println(\"GAME OVER!!! THAT WAS FUN!!!\");\n\t\t\tthis.gameOver = true;\n\t\t}\n\t\t\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "9a525796db5bb8659ae52037867851bd", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint problems = Integer.parseInt(input.nextLine());\n\t\tArrayList<String> problemList = new ArrayList<String>();\n\n\t\tfor (int x = 0; x < problems; x++) {\n\t\t\tproblemList.add(input.nextLine());\n\t\t}\n\t\tinput.close();\n\n\t\tSystem.out.println(\"\");\n\n\t\tfor (String p : problemList) {\n\t\t\tfindWinner(p);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "b7c706d331e2b507ec0ff8404ad87dc7", "score": "0.69742316", "text": "@Override\r\n\t\t\tpublic void crispel() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "76b3966c8e3f64884c4127d1a3df09a8", "score": "0.68059677", "text": "@Override\r\n\t\t\tpublic void maruti() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "34b43810a805e0d48661629f62b35f2b", "score": "0.6648208", "text": "@Override\r\n\tpublic void 위험물회피() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "096eb77080c8c192fe461650f49ca14b", "score": "0.65149313", "text": "@Override\r\n public void catering() {\r\n\r\n }", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.64755934", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.64358324", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.6414421", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cc5af39f74474ffdb7b456b8a10d5774", "score": "0.6357822", "text": "@Override\r\n\tpublic void 길안내() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c18c3127184f8abd7be145ddb9d4c3e6", "score": "0.6348844", "text": "@Override\r\n\tpublic void 온도내리기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bde53ee3de9072b04cd122133e6162a1", "score": "0.6326172", "text": "public void soigner() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fdbf96893589fef5cdd1a8fe92e98938", "score": "0.62869394", "text": "@Override\n\tpublic void enfria() {\n\n\t}", "title": "" }, { "docid": "9ee6be05232928533401d708d518b6ed", "score": "0.62742454", "text": "@Override\r\n\t\t\tpublic void enginetype() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.626611", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "556495e35d508ac961dae051dd40b377", "score": "0.61844474", "text": "@Override\n\tpublic void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.61519784", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce01e16cbc1fc0a29d28a4365b63f79d", "score": "0.6131432", "text": "@Override\n\tprotected void specialFuntion() {\n\t\t\n\t}", "title": "" }, { "docid": "c387be8fe936bea8d505f3a779d6ba15", "score": "0.61139184", "text": "@Override\n\tpublic void actualise() {\n\t\t\n\t}", "title": "" }, { "docid": "30c236da9912ee76f7962e7da2c72b59", "score": "0.6074856", "text": "@Override\n\tpublic void chante() {\n\t\t\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.605568", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f13a29996996a34a710d85285e104a7f", "score": "0.6034386", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "90586632a4af36d51003a1554ebef902", "score": "0.6030915", "text": "public void mo24205Oz() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "0b7a2d4389f8d1afdedab87d2ac4fb96", "score": "0.5973926", "text": "@Override\n\tprotected void generateData() {\n\t\treturn;\t\t\n\t}", "title": "" }, { "docid": "43f0eb79e8610935222f70ad7a047f4f", "score": "0.59676504", "text": "protected void Referesh() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "69f727ad790d8c02f9f110fb4190bf05", "score": "0.5958382", "text": "@Override\r\n\tpublic void 에어백펼치기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4fd121321f2d50da2f5700be65d017d8", "score": "0.59534895", "text": "@Override\n\tpublic void filngtonext() {\n\t\t\n\t}", "title": "" }, { "docid": "5289bcfa483e278c4782f4e45b7117eb", "score": "0.59168786", "text": "@Override\n\tpublic void generer() {\n\t\t\n\t}", "title": "" }, { "docid": "c52abf264dc130278399a6a822295dca", "score": "0.5916093", "text": "@Override\n\t\t\tpublic void e() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "661a589ba018609d85af5ba0fc651d02", "score": "0.5909626", "text": "@Override\n\t\tprotected void process() {\n\t\t}", "title": "" }, { "docid": "661a589ba018609d85af5ba0fc651d02", "score": "0.5909626", "text": "@Override\n\t\tprotected void process() {\n\t\t}", "title": "" }, { "docid": "c28afddea09ba99a1adc54b371dabaa1", "score": "0.59047043", "text": "@Override\r\n\tpublic void 온도높이기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5886539", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "6827ba40809e6f9bad9a043036edaa04", "score": "0.58847684", "text": "@Override\r\n\tpublic void dormir() {\n\t}", "title": "" }, { "docid": "6afb1e3a721c7314f12581b77ae35716", "score": "0.5883849", "text": "@Override\n\tprotected void colisao() {\n\t\t\n\t}", "title": "" }, { "docid": "40a41a107fa03a270a78b03d0bcf910d", "score": "0.58717483", "text": "private void ergebnisAuswerten() {\n\n\t}", "title": "" }, { "docid": "c5fa2315669c0925b60762f7cca5f0f6", "score": "0.58611465", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.58465064", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "fa29da40be3a8b33b07b21fe8e0ba298", "score": "0.5842648", "text": "@Override\n\tpublic void notity() {\n\t\t\n\t}", "title": "" }, { "docid": "4ff7fd5d2a0aebc561e81557b528262a", "score": "0.58340675", "text": "@Override\n\tprotected void initialize() {\n\n }", "title": "" }, { "docid": "f323cb003520a5608cea47c5412447e4", "score": "0.58295655", "text": "@Override\n\t\t\t\tpublic int characteristics() {\n\t\t\t\t\treturn 0;\n\t\t\t\t}", "title": "" }, { "docid": "089be79d90be02605e37d2a48b09e194", "score": "0.58192337", "text": "@Override\n\tpublic void gril() {\n\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5791661", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "630b43215e2b87f8b2bd389cae71f8a6", "score": "0.5789139", "text": "@Override\n\tprotected void dataAcquisition() {\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "79a702a1409937a9a2dd8f8167323190", "score": "0.5784611", "text": "@Override\n\tvoid promocja() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "86ca2b6b7e0174532c4a1f8a4dec7946", "score": "0.577024", "text": "@Override\r\n\tpublic void 주차보조() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e74841359f2b616460c1fcf1e3e0b696", "score": "0.57600427", "text": "@Override\n\tpublic void Oeffne_Schadenanlage() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.5750039", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f98329c4ce112f2ebcf93e4b478576a0", "score": "0.5745665", "text": "@Override\r\n\tpublic void work4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6cfde2be0b51f55a421cdc3e28609c66", "score": "0.57384264", "text": "@Override\n\tprotected void salario() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "f5fd4f1b89ecbb54b8b64a1b9e40552c", "score": "0.5733982", "text": "protected void mo7431b() {\n }", "title": "" }, { "docid": "3fb97b46c147b19f8180197325c66d34", "score": "0.5722489", "text": "@Override\n public void quite() {\n }", "title": "" }, { "docid": "f448e47f2da25727e964a3718545f012", "score": "0.5718643", "text": "public final void mo93547c() {\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5714686", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "d7c48eb628caa38ca564de355edb7e6e", "score": "0.5709367", "text": "@Override\n public int getType() {\n return 1;\n }", "title": "" }, { "docid": "593053b99bc5abca6d010d9e21a31e6b", "score": "0.570741", "text": "@Override\r\n\tpublic void 자율주행하기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28872bba7a5c17cad13c73f21624cabc", "score": "0.57049847", "text": "@Override\n\tpublic void CreateRs() {\n\t\t\n\t}", "title": "" }, { "docid": "8e056894cd061aea767d71a9c1b43d97", "score": "0.5701457", "text": "@Override\n\tpublic void init(){\n\t}", "title": "" }, { "docid": "2102a3691307d06f0d2ee35d192fccc6", "score": "0.57008916", "text": "protected Encontro() {\n\t}", "title": "" }, { "docid": "e8f6ecd3f06f1f0e76ca511991b76265", "score": "0.5697829", "text": "protected void defesa(){}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.5696396", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.5676146", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.567194", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "75e13fc47dcc1e84b4615e5de4d4c091", "score": "0.56708115", "text": "@Override\n public String getName() {\n return null;\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669723", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "81488a3212e9004be8808ba15e91f1a5", "score": "0.56636477", "text": "public final void mo93546b() {\n }", "title": "" }, { "docid": "1b6ae1f9acb8e538994b7d00bae50317", "score": "0.5662892", "text": "@Override\n\tprotected void skirmish() {\n\n\t}", "title": "" }, { "docid": "da07444f023c4f45aa766ef285cccf1c", "score": "0.56608945", "text": "@Override\n\tpublic void 吃斋() {\n\n\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" } ]
9d30166cf1558e4491f3aff253db8dbd
/This function is used to read from the file
[ { "docid": "ada5b339b20b7758fc9477a122cb0471", "score": "0.62932295", "text": "private String readFile(String fileName) {\r\n\t\t//StringBuffer to all the lines in stringBuffer\r\n\t\tStringBuffer stringBuffer = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tString readLine = null;\r\n\t\t\t//BufferReader to read from the file \r\n\t\t\tBufferedReader br = Files.newBufferedReader(Paths.get(fileName), StandardCharsets.UTF_8);//CharSet UTF_8 to read\r\n\t\t\twhile ((readLine = br.readLine()) != null) {\r\n\t\t\t\tstringBuffer.append(readLine);\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\t//Passes the stringBuffer which contains the inputText\r\n\t\treturn stringBuffer.toString();\r\n\t}", "title": "" } ]
[ { "docid": "d17242fbc99b9abd802283ef12ea4549", "score": "0.7916021", "text": "public void readFromFile();", "title": "" }, { "docid": "91f76a9a758725c65a4da72873b4fc1b", "score": "0.7353089", "text": "public void readFile();", "title": "" }, { "docid": "620411c9e62f513560f98a0a4d8bc203", "score": "0.6964972", "text": "public Object readFile(String path) throws Exception;", "title": "" }, { "docid": "29d702e0b882429b9166f0f8ff5faf5f", "score": "0.6852423", "text": "public Object fileReader();", "title": "" }, { "docid": "dcfadd78030895af3284732d303860bc", "score": "0.68405044", "text": "File[] read();", "title": "" }, { "docid": "36627ceff89bc26d99816e22e65579a1", "score": "0.68077415", "text": "InputStream readFile() throws Exception;", "title": "" }, { "docid": "f70577b3cbca814e9974eb94cff54152", "score": "0.6800337", "text": "public void fileRead() {\r\n \tcourseManager cm = new courseManager();\r\n \tcm.fileRead();\r\n\t}", "title": "" }, { "docid": "240e10fed7addb7628368e226d7c7d08", "score": "0.6774398", "text": "public abstract T readFromFile(final File file);", "title": "" }, { "docid": "97fb524ad58cf03f3dc4988b3fc1e5a3", "score": "0.6703144", "text": "private void readFromFile(String fullPath) {\n try {\n byte[] encoded = Files.readAllBytes(Paths.get(fullPath));\n String encodedData = new String(encoded, StandardCharsets.US_ASCII);\n DataModel newDataModel = DataModel.newFromXml(encodedData);\n if (newDataModel != null) {\n this.dataModel = null;\n this.loadDataModel(newDataModel, CommonUtils.simpleFileNameFromPath(fullPath));\n this.filePath = fullPath;\n this.makeNotDirty();\n }\n } catch (IOException e) {\n System.out.println(\"Unable to read file.\");\n JOptionPane.showMessageDialog(null, \"IO error, unable to read file\");\n }\n }", "title": "" }, { "docid": "d3ac6ce4a1a68d725ef1178f1218dac5", "score": "0.66989416", "text": "public void readRaw()\r\n/* 45: */ {\r\n/* 46: */ try\r\n/* 47: */ {\r\n/* 48:137 */ File f = new File(this.myPath);\r\n/* 49:138 */ DataInputStream inFile = new DataInputStream(new FileInputStream(f));\r\n/* 50:139 */ this.myDataSize = ((int)f.length());\r\n/* 51:140 */ this.myData = new byte[(int)this.myDataSize];\r\n/* 52:141 */ inFile.read(this.myData);\r\n/* 53:142 */ inFile.close();\r\n/* 54: */ }\r\n/* 55: */ catch (Exception localException) {}\r\n/* 56: */ }", "title": "" }, { "docid": "2df432333fbdcbf508e9386d36cba650", "score": "0.6657445", "text": "private String readFile(String path){\n Scanner s = null;\n try{\n s = new Scanner(new File(path));\n } catch (FileNotFoundException e){\n fail(\"Zu lesende Datei ist nicht vorhanden\");\n }\n return s.useDelimiter(\"\\\\Z\").next();\n }", "title": "" }, { "docid": "ee04d4180429c63eba7648537c05e806", "score": "0.66281", "text": "public java.io.InputStream readFile( String filename ) throws IllegalArgumentException, java.io.IOException;", "title": "" }, { "docid": "9bfdd4b85ab9c81aa5a31ddd6ddce379", "score": "0.66130966", "text": "private void readFile(String filename){\n//\t\tFile file = new File(filename);\n\t\ttry {\n\t\t\tfis = new FileInputStream(filename);\n\t\t\tisr = new InputStreamReader(fis);\n\t\t\tbr = new BufferedReader(isr);\n\t\t\t\n\t\t\tfos = new FileOutputStream(outFileName);\n//\t\t\tdos = new DataOutputStream(fos);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n//\t\treturn new FileInputStream(null);\n\t}", "title": "" }, { "docid": "d5938c7a999e6e2f60acae7727eee4c9", "score": "0.6612421", "text": "protected String read(String filename) {\n String content = null;\n try {\n File file = FILE_UTILS.resolveFile(getProject().getBaseDir(), filename);\n java.io.FileReader rdr = new java.io.FileReader(file);\n content = FileUtils.readFully(rdr);\n rdr.close();\n rdr = null;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return content;\n }", "title": "" }, { "docid": "8948c8bedac14de59f911f2813ad2480", "score": "0.65915656", "text": "private void getData(){\n\t\tFile file = new File (FILENAME);\n\t\tBufferedReader in = null;\n\t\ttry\n\t\t{\n\t\t\tin = new BufferedReader(new FileReader(file));\n\t\t\tString line;\n\t\t\twhile ((line = in.readLine()) != null)\n\t\t\t{\t\n\t\t\t\tcreateObject(line);\n\t\t\t}\n\t\t}\n\t\tcatch (FileNotFoundException ex)\n\t\t{\n\t\t\tSystem.out.println(\"File\" + file + \" Does not exist.\");\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tcloseReader(in);\n\t\t}\n\t}", "title": "" }, { "docid": "de05c5752a4cb4dd82aac4c343106fb1", "score": "0.65889907", "text": "private void readFile() {\n try {\n //InputStream in = Study.class.getResourceAsStream(\"Study.txt\");\n //number of files read\n int numRead = 0;\n //initialize variables\n //InputStreamReader fr = new InputStreamReader(in);\n FileReader fr = new FileReader(\"src//sdlcstudy//Study.txt\");\n BufferedReader br = new BufferedReader(fr);\n int numTopics = Integer.parseInt(br.readLine());\n topics = new String[numTopics];\n info = new String[numTopics];\n //loop through data file\n for (int i = 0; i < numTopics; i++) {\n topics[i] = br.readLine();\n info[i] = br.readLine();\n }\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"ERROR: \" + e);\n }\n }", "title": "" }, { "docid": "3e216a50f6644c583cd1a8d9b9eac2cb", "score": "0.6588359", "text": "private static String[] readFromFile(String readFilePath){\n\n try {\n //create new array\n int dataNumb = getElementsQuantity(readFilePath);\n String[] tempArray = new String[dataNumb];\n File f = new File(readFilePath);\n Scanner s = new Scanner(f);\n for (int i = 0; i < tempArray.length; i++) {\n tempArray[i] = s.next();\n }\n\n return tempArray;\n\n } catch (Exception e) {\n return null;\n }\n }", "title": "" }, { "docid": "a505466e0f7b2045ac84e024a820d15e", "score": "0.6523835", "text": "public ReadFile(String file_path) {\n path = file_path;\n }", "title": "" }, { "docid": "3e9c621ce35df6b00d1030185e345b6d", "score": "0.65156955", "text": "@Override\n public void read( File file ) throws IOException {\n super.read(file);\n }", "title": "" }, { "docid": "ab8df991ccd7ac6ce52fc55c8db98608", "score": "0.6508568", "text": "private void readData() {\r\n \r\n //open and read the file contents \r\n input = app.openFile(STUDENT_FILE);\r\n\r\n //read the file input\r\n try {\r\n while (input.hasNext()) { \r\n //add a new student\r\n addStudent(input.next()); \r\n }\r\n }\r\n //catch any exceptions\r\n catch (NoSuchElementException elementException) {\r\n System.err.println(\"File not formatted correctly\");\r\n input.close();\r\n System.exit(1);\r\n }\r\n catch (IllegalStateException stateException) {\r\n System.err.println(\"Error reading from file\");\r\n System.exit(1);\r\n } \r\n\t//close the file\r\n app.closeFile();\r\n \r\n }", "title": "" }, { "docid": "555f036bed4ccc98ad1451cf6ab0372f", "score": "0.650502", "text": "public void read(String pathFile) throws ReaderException, NotFoundSolutionException;", "title": "" }, { "docid": "b373b5f277a0a82a94d042bd4e61de91", "score": "0.6479466", "text": "public synchronized String readFromFile() {\n\t\tString line = null;\n\t\ttry {\n\t\t\tline = bufferedReader.readLine();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn line;\n\t}", "title": "" }, { "docid": "424377e55a312bd574bdab2f3edfbc37", "score": "0.6476425", "text": "private static void readFile(String filename) {\n\t\ttry {\n \t\tFile dataFile = new File(filename);\n\t\t\tFileReader fileReader = new FileReader(dataFile);\n\t\t\tBufferedReader reader = new BufferedReader(fileReader);\n\t\t\t//BufferedReader reader = new BufferedReader(new FileReader(new File(filename)));\n \t\t\tString line = null;\n\t\t\tdisplay(\"Contents of \" + filename + \"\\n\");\n \t display(\"Resort\\tFlights\\tConnection\\tAccommodation\\tPass\\tPack\\tTotal\");\n \t\t\twhile ((line = reader.readLine()) != null) {\n //\t\t\tdisplay(line);\n\t\t\t String [] s = line.split(\",\");\n \t display(s[0] +\"\\t\"+ s[1] +\"\\t\"+s[2] +\"\\t\" +s[3] +\"\\t\" +s[4] +\"\\t\" +s[5]+\"\\t\"+s[11]);\n\n \t\t\t}\n\t\t\tdisplay(\"\\nEnd of \" + filename + \"\\n\");\n\t\t} catch (IOException x) {\n \t\t\tSystem.err.format(\"IOException: %s%n\", x);\n\t\t}\n\t}", "title": "" }, { "docid": "5eb306574881c865e2657e8bf8e914fd", "score": "0.6471696", "text": "public void readFile(File file){\n\n }", "title": "" }, { "docid": "66cefbe0dc56d235e85c73a29f087389", "score": "0.64517766", "text": "private static String readFile(File file) {\r\n\t String result = null;\r\n\t try {\r\n\t LineNumberReader lnr = new LineNumberReader(new FileReader(file));\r\n\t result = lnr.readLine();\r\n\t lnr.close();\r\n\t } catch (IOException ioe) {\r\n\t }\r\n\t return result;\r\n\t}", "title": "" }, { "docid": "18fe44526e64e5c6372b3c3100d8512e", "score": "0.6450473", "text": "private static void readFile() {\n try (FileReader fr = new FileReader(\"\\\\tmp\\\\test.txt\")) {\n char[] a = new char[50];\n if (fr.read(a)==1) {\n for (char c : a) System.out.print(c);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7d4911f817acc1c72ebf5fca80ab9f5a", "score": "0.6430088", "text": "private String getFileContents() throws HtSemanticException {\n try (Scanner scanner = new Scanner(file)) {\n scanner.useDelimiter(\"\\\\Z\");\n return scanner.next();\n } catch (FileNotFoundException e) {\n throw new HtSemanticException(\"The file \" + file.getAbsolutePath() + \" does not exist.\");\n } catch (NoSuchElementException e) {\n return \"\";\n }\n }", "title": "" }, { "docid": "dca4ab35845990b51fc80ee9ee513633", "score": "0.6417726", "text": "public String readFile(String filename) \n {\n File f = new File(filename);\n try \n {\n byte[] bytes = Files.readAllBytes(f.toPath());\n return new String(bytes, \"UTF-8\");\n } \n catch (Exception e) \n {\n // e.printStackTrace();\n }\n return \"\";\n \n }", "title": "" }, { "docid": "78948d57cb66be7d434f5eb6e0bcdf3a", "score": "0.6416961", "text": "static String[] readFile(String file) throws IOException {\n\t\t\n\t FileReader fileReader = new FileReader(file);\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\t List<String> lines = new ArrayList<String>();\n\t String line = null;\n\t while ((line = bufferedReader.readLine()) != null) {\n\t lines.add(line);\n\t }\n\t bufferedReader.close();\n\t return lines.toArray(new String[lines.size()]);\n\t }", "title": "" }, { "docid": "37073321c0a9994c8dfa9537a6729e11", "score": "0.63985634", "text": "public void readResource() {\r\n\t\ttry {\r\n\t\t\tbuf = fileObject.getCharContent(false);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d6f9fb7fa0bd511f4ca319ef7aec1ead", "score": "0.63943654", "text": "public void readFile() throws IOException {\n FileInputStream fis = new FileInputStream(file);\n try {\n int fileSize = (int) file.length();\n buffer = new char[fileSize];\n\n int bytesRead = 0;\n int c = fis.read();\n\n while (c != -1) {\n buffer[bytesRead] = (char) c;\n bytesRead++;\n c = fis.read();\n }\n\n } finally {\n fis.close();\n }\n }", "title": "" }, { "docid": "af9e74a1b7d375a0ab4516d7c265442c", "score": "0.6393972", "text": "public File read() throws IOException {\n File inputFile = new File(\"data/exercise45_input.txt\");\n Scanner in = new Scanner(inputFile);\n\n // store the contents of the file in an array\n while (in.hasNextLine()){\n data.add(in.nextLine());\n }\n\n return inputFile;\n }", "title": "" }, { "docid": "a60bf8fcbe3ad71784022134c1f2209c", "score": "0.6393038", "text": "private static void fileReader() throws IOException {\n File f = new File(\"moduleInfo\");\n BufferedReader in = new BufferedReader(new FileReader(f));\n try {\n\n String line = in.readLine();\n int i = 0;\n while (line != null) {\n\n moduleChoices[i] = line;\n // System.out.println(moduleChoices[i]);\n line = in.readLine();\n i++;\n\n }\n } finally {\n in.close();\n }\n\n }", "title": "" }, { "docid": "066f4d107ef9fb54405fac7ea6e7cbea", "score": "0.63689125", "text": "private void readInput() throws IOException{\n\t\topenFileStream();\n\t\tparseFile();\n\t\tcloseFileStream();\n\t}", "title": "" }, { "docid": "dfc4877bee08df3f7892236af87da24e", "score": "0.6362321", "text": "private String readFromFile() {\n String ret = \"\";\n\n try {\n InputStream inputStream = openFileInput(\"config.txt\");\n\n if ( inputStream != null ) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String receiveString = \"\";\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Session: \" + sessionTitle + \"\\n\");\n stringBuilder.append(\"Device Location: \" + deviceLocation + \"\\n\");\n stringBuilder.append(\"Trial: \" + trial + \"\\n\");\n stringBuilder.append(\"X, Y, Z, Time Stamp\\n\");\n\n while ( (receiveString = bufferedReader.readLine()) != null ) {\n stringBuilder.append(receiveString).append(\"\\n\");\n }\n\n inputStream.close();\n ret = stringBuilder.toString();\n }\n }\n catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Cannot read file: \" + e.toString());\n }\n\n return ret;\n }", "title": "" }, { "docid": "7bf9021c4e5a25932b24f5976b6b87ac", "score": "0.635269", "text": "private static void readIn()\n\t{\n\t\tcurrentDeck = new Deck();\n\n\t\tFileReader reader;\n\t\ttry \n\t\t{\n\t\t\treader = new FileReader(FILE_NAME);\n\n\t\t\tScanner in = new Scanner (reader);\n\t\t\tString line = in.nextLine();\n\n\t\t\t// sets categories \n\t\t\tcurrentDeck.setCategories(line);\n\n\t\t\t// adds cards to the deck\n\t\t\twhile (in.hasNextLine())\n\t\t\t{\n\t\t\t\tline = in.nextLine();\t\n\t\t\t\tcurrentDeck.addCard(line);\n\t\t\t}\n\n\t\t} \n\n\t\t// in case there is no file\n\t\tcatch (FileNotFoundException e) \n\t\t{\n\t\t\tSystem.out.println(\"File not Found\");\n\t\t\tSystem.out.println(\"Check if file name is correct\");\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}", "title": "" }, { "docid": "ed417c8add6a953e910075291830def6", "score": "0.6343917", "text": "@Test\n public void testRead() {\n final String read = readerUtils.read(filename);\n assertNotNull(read);\n assertEquals(filename, read);\n }", "title": "" }, { "docid": "28766e4363c9d014824e17f11f4c1eca", "score": "0.63376606", "text": "I read();", "title": "" }, { "docid": "bb7257db42c27daa51e8cc97499992b2", "score": "0.63363415", "text": "@Override\n public List<String> readFile() throws IOException {\n return sourceFileLocation.readFileIntoList(filePath);\n }", "title": "" }, { "docid": "e8bd86d54884f4d010ec862ec11cfef8", "score": "0.63102674", "text": "File readFile(String fileId) throws Exception;", "title": "" }, { "docid": "333fbed652876897348f05a4fda26712", "score": "0.63041586", "text": "public ReadFile() \n {\n try\n {\n cityContainer = new LinkedList<City>();\n \n Scanner open = openFile(\"cities.TXT\");\n parseFile(open);\n \n } catch(Exception e)\n {\n }\n }", "title": "" }, { "docid": "637e6645eda45768626ab83ae9c53cda", "score": "0.62962276", "text": "public void read(File f){\r\n\t\tsetFile(f);\r\n\t\ttry {\r\n\t\t\tif (!f.exists() || new FileInputStream(f).available() == 0) {\r\n\t\t\t\tfileDoesNotExist();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttry{\r\n\t\t// DocumenBuilderFactory\r\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\t// DocumentBuilder\r\n\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t// Document\r\n\t\tDocument doc = builder.parse(f);\r\n\t\t// rootElement\r\n\t\tElement rootElement = doc.getDocumentElement();\r\n\t\tread(rootElement);\r\n\t\t}catch(Exception ex){\r\n\t\t\tToolkit.getDefaultToolkit().beep();\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "55f51af064b27a53af690f247d1452cb", "score": "0.62909615", "text": "public int[] ReadConfig(File file) {\n\n String linha;\n int tmp;\n int[] rawData = null;\n boolean firstTime = true;\n\n FileReader reader;\n try {\n reader = new FileReader(file);\n BufferedReader leitor = new BufferedReader(reader);\n int tamArquivo = 0;\n linha = leitor.readLine();\n while (linha != null) {\n linha = leitor.readLine();\n tamArquivo++;\n }\n\n rawData = new int[tamArquivo];\n\n reader = new FileReader(file);\n leitor = new BufferedReader(reader);\n linha = leitor.readLine();\n tmp = 0;\n int idx = 0;\n while (linha != null) {\n for (int character : linha.toCharArray()) {\n if (character == '/') {\n break;\n } else if (character - 87 > 9 && character - 87 < 16) {\n character -= 87;\n } else if (character - 55 > 9 && character - 55 < 16) {\n character -= 55;\n } else if (character - 48 >= 0 && character - 48 <= 9) {\n character -= 48;\n }\n\n if (firstTime) {\n tmp = character;\n firstTime = false;\n } else {\n tmp = (tmp << 4) | character;\n }\n }\n\n //System.out.println(Integer.toHexString(tmp));\n rawData[idx] = tmp;\n linha = leitor.readLine();\n tmp = 0;\n idx++;\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(ConfReader.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(ConfReader.class.getName()).log(Level.SEVERE, null, ex);\n }\n return rawData;\n }", "title": "" }, { "docid": "325f67bd8cf527e22fdafe1aa61eb7c5", "score": "0.62886864", "text": "private static String readFile(File file) {\n StringBuilder stringBuffer = new StringBuilder();\n BufferedReader bufferedReader = null;\n\n try {\n\n bufferedReader = new BufferedReader(new FileReader(file));\n\n String text;\n while ((text = bufferedReader.readLine()) != null) {\n stringBuffer.append(text);\n }\n\n } catch (FileNotFoundException ex) {\n\n } catch (IOException ex) {\n\n } finally {\n try {\n bufferedReader.close();\n } catch (IOException ex) {\n\n }\n }\n return stringBuffer.toString();\n }", "title": "" }, { "docid": "f8446d87bcf9a2ee2aa6c9b3a0b790ea", "score": "0.6284214", "text": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tprotected ArrayList<HashMap<String, String>> readFile() {\n\t\tlogger.info(\"Start reading file\");\n\n\t\tint currentLineInSingleEntry = 0;\n\t\tint currentCycleLineNumber = 0;\n\n\t\tBufferedReader input = null;\n\t\tArrayList<HashMap<String, String>> result = new ArrayList<HashMap<String, String>>();\n\t\tHashMap<String, String> tempEventData = new HashMap<String, String>();\n\n\t\ttry {\n\t\t\tinput = new BufferedReader(new FileReader(file), 1);\n\t\t\tString line = null;\n\t\t\tString entryDate = null;\n\t\t\tboolean skipCurrentEntry = false;\n\n\t\t\twhile ((line = input.readLine()) != null) {\n\n\t\t\t\tif (isFirstStart) {\n\t\t\t\t\tlastEntryLineNumber++;\n\t\t\t\t}\n\n\t\t\t\tcurrentCycleLineNumber++;\n\t\t\t\tif (currentCycleLineNumber > lastEntryLineNumber) {\n\t\t\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\t\t\tlogger.debug(\"Reading line \" + currentCycleLineNumber\n\t\t\t\t\t\t\t\t+ \": \" + line);\n\t\t\t\t\t}\n\t\t\t\t\tif (!skipCurrentEntry) {\n\t\t\t\t\t\t// convert last entry\n\t\t\t\t\t\tif (!tempEventData.isEmpty()) {\n\t\t\t\t\t\t\tresult.add((HashMap<String, String>) tempEventData\n\t\t\t\t\t\t\t\t\t.clone());\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// reset skip-current-entry-flag\n\t\t\t\t\t\tskipCurrentEntry = false;\n\t\t\t\t\t}\n\n\t\t\t\t\t// reset entries from last cycle\n\t\t\t\t\ttempEventData.clear();\n\n\t\t\t\t\t// reset current entry line counter\n\t\t\t\t\tcurrentLineInSingleEntry = 0;\n\n\t\t\t\t\t// get ip of current entry and perform blacklist-check\n\t\t\t\t\tMatcher ip4Matcher = Toolbox.getRegExPattern(\"regex.ip4\")\n\t\t\t\t\t\t\t.matcher(line);\n\t\t\t\t\tif (ip4Matcher.find()) {\n\t\t\t\t\t\tskipCurrentEntry = checkFilterList(ip4Matcher.group());\n\t\t\t\t\t\tif (isWhiteList) {\n\t\t\t\t\t\t\tskipCurrentEntry = !skipCurrentEntry;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tskipCurrentEntry = true;\n\t\t\t\t\t\tlogger.warn(\"could not find IP4-address in current entry...skipping\");\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!skipCurrentEntry) {\n\t\t\t\t\t\t// get timestamp of current entry\n\t\t\t\t\t\tMatcher timestampMatcher = Toolbox.getRegExPattern(\n\t\t\t\t\t\t\t\t\"regex.ulogtimestamp\").matcher(line);\n\t\t\t\t\t\tif (timestampMatcher.find()) {\n\t\t\t\t\t\t\t// convert entry to \"ifmap-compatible\" format to\n\t\t\t\t\t\t\t// perform date check\n\t\t\t\t\t\t\tentryDate = rearrangeDate(Toolbox\n\t\t\t\t\t\t\t\t\t.getNowDateAsString(\"yyyy\")\n\t\t\t\t\t\t\t\t\t+ \"/\"\n\t\t\t\t\t\t\t\t\t+ timestampMatcher.group());\n\t\t\t\t\t\t\t// replace current entries date with new format\n\t\t\t\t\t\t\tString newLine = line.replaceFirst(Toolbox\n\t\t\t\t\t\t\t\t\t.getRegExPattern(\"regex.ulogtimestamp\")\n\t\t\t\t\t\t\t\t\t.toString(), entryDate);\n\t\t\t\t\t\t\tline = newLine;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tskipCurrentEntry = true;\n\t\t\t\t\t\t\tlogger.warn(\"could not find timestamp in current entry...will now skip this entry\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// add current entry without time-stamp-check\n\t\t\t\t\t\ttempEventData.put(new Integer(currentLineInSingleEntry)\n\t\t\t\t\t\t\t\t.toString(), line);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// loop over, add last remaining entry\n\t\t\tif (!tempEventData.isEmpty() & !skipCurrentEntry) {\n\t\t\t\tlogger.debug(\"New entries found!\");\n\t\t\t\tresult.add(tempEventData);\n\t\t\t}\n\t\t\tlogger.info(\"Reading done!\");\n\n\t\t\tif (!isFirstStart) {\n\t\t\t\t// set new last entry index\n\t\t\t\tlastEntryLineNumber = currentCycleLineNumber;\n\t\t\t} else {\n\t\t\t\t// first cycle finished\n\t\t\t\tisFirstStart = false;\n\t\t\t}\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tlogger.error(\"could not find ip-tables ulog-file.\");\n\t\t\tIfMapClient.criticalError(ex);\n\t\t} catch (IOException ex) {\n\t\t\tlogger.error(\"I/O error while reading iptables ulog-file\");\n\t\t\tIfMapClient.criticalError(ex);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tinput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tlogger.error(\"error while closing input buffer\");\n\t\t\t\tIfMapClient.criticalError(e);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "955e641bf3d7774fc34cc958ca6dd8a3", "score": "0.6280303", "text": "private void readTheFile() {\n\t\tString nextLine;\n\t\tString[] unitStrings = null;\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tString filePath = filename;\n\t\tif (!filenameIsFull) {\n\t\t\t// Find out lookup table folder\n\t\t\tString lookupTableFolder = LocalProperties.get(GDA_FUNCTION_COLUMN_DATA_FILE_LOOKUP_DIR);\n\t\t\tfilePath = lookupTableFolder + File.separator + filename;\n\t\t}\n\n\t\ttry (FileReader fr = new FileReader(filePath); BufferedReader br = new BufferedReader(fr)) {\n\t\t\tlogger.debug(\"ColumnDataFile loading file: \" + filePath);\n\t\t\twhile (((nextLine = br.readLine()) != null) && (nextLine.length() > 0)) {\n\t\t\t\tif (nextLine.startsWith(\"Units\")) {\n\t\t\t\t\tlogger.debug(\"Units are :\" + nextLine.substring(6));\n\t\t\t\t\t// NB This regex means one or more comma space or tab\n\t\t\t\t\t// This split will include the word \"Units\" as one of\n\t\t\t\t\t// the\n\t\t\t\t\t// unitStrings\n\t\t\t\t\tunitStrings = nextLine.split(\"[, \\t][, \\t]*\");\n\t\t\t\t} else if (!nextLine.startsWith(\"#\"))\n\t\t\t\t\tlines.add(nextLine);\n\t\t\t}\n\n\t\t} catch (IOException ioe) {\n\t\t\tthrow new RuntimeException(\"Could not load \" + StringUtils.quote(filePath), ioe);\n\t\t}\n\n\t\tnumberOfXValues = lines.size();\n\t\tlogger.debug(\"the file contained \" + numberOfXValues + \" lines\");\n\t\tint nColumns = new StringTokenizer(lines.get(0), \", \\t\").countTokens();\n\t\tlogger.debug(\"each line should contain \" + nColumns + \" numbers\");\n\n\t\tif (unitStrings != null) {\n\t\t\tcolumnUnits = new ArrayList<>();\n\t\t\t// NB unitStrings contains as its first element \"Units\" hence\n\t\t\t// the i+1\n\t\t\tfor (int i = 0; i < nColumns; i++){\n\t\t\t\tString unitString = unitStrings[i + 1];\n\t\t\t\tif (unitString.equals(\"\\\"\\\"\")) {\n\t\t\t\t\tunitString = \"\";\n\t\t\t\t}\n\t\t\t\tfinal Unit<? extends Quantity> unit = QuantityFactory.createUnitFromString(unitString);\n\t\t\t\tif(unit == null){\n\t\t\t\t\tthrow new RuntimeException(\"unit is null for string \" + unitStrings[i + 1]);\n\t\t\t\t}\n\t\t\t\tcolumnUnits.add(unit);\n\t\t\t}\n\t\t}\n\t\t// Create array in column (i.e. the opposite to the file) order\n\t\tcolumnData = new double[nColumns][numberOfXValues];\n\n\t\tcolumnDecimalPlaces = calculateDecimalPlaces(lines.get(0));\n\n\t\tdouble[] thisLine;\n\t\tint i;\n\t\tint j;\n\t\tfor (i = 0; i < numberOfXValues; i++) {\n\t\t\tnextLine = lines.get(i);\n\t\t\tthisLine = stringToDoubleArray(nextLine);\n\t\t\tfor (j = 0; j < thisLine.length; j++)\n\t\t\t\tcolumnData[j][i] = thisLine[j];\n\t\t}\n\n\t\t/*\n\t\t * for (i = 0; i < nColumns; i++) { Message.out(\"column \" + i + \" is \" + doubleArrayToString(columnData[i])); }\n\t\t */\n\t}", "title": "" }, { "docid": "eca2c315c007435f663d3b35b89cd048", "score": "0.627981", "text": "@Override\n protected Stream<Pair<String, List<String>>> read(Path path) {\n Reader reader = new Reader(path);\n try {\n return reader.read();\n } catch (IOException e) {\n return Stream.empty();\n }\n }", "title": "" }, { "docid": "a3868f4ec6264c9cf275dc009a290e20", "score": "0.6265489", "text": "public void read() {\n\t\t//Read the file\n\t\tthis.fileText = parseWhitespace(FileUtils.read(this.filePath));\n\t\t//Check the first line to see if it should use a specific syntax\n\t\tif (this.fileText.get(0).toLowerCase().startsWith(\"syntax\"))\n\t\t\t//Set the syntax\n\t\t\tthis.scriptSyntax.setSyntax(this.filePath , this.fileText.get(0));\n\t}", "title": "" }, { "docid": "b8418fdf3f0cc8a10837c96e401ea184", "score": "0.6250305", "text": "private static byte[] readFromFileWrapper(String filename) {\n\t\tSystem.out.println(\"\\n** Reading from file (\" + filename + \") **\\n\");\n\t\ttry {\n\t\t\tRandomAccessFile rawDataFromFile = new RandomAccessFile(filename, \"r\");\n\t\t\tbyte[] contents = new byte[(int)rawDataFromFile.length()];\n\t\t\trawDataFromFile.read(contents);\n\t\t\trawDataFromFile.close();\n\n\t\t\tSystem.out.println(byteArrayToStringOfHex(contents) + \"\\n\\n\");\n\t\t\tSystem.out.println(\"** Attempting to display bytes as text **\\n\");\n\t\t\tString s = new String(contents);\n\t\t\tSystem.out.println(s + \"\\n\\n\\n\");\n\n\t\t\treturn contents;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Oh no! \" + e);\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "2c7ad13729a113fc5e9351f5d616209e", "score": "0.6248932", "text": "public void parse() {\r\n\t\tBufferedReader br = null;\r\n\t\tString line;\r\n\r\n\t\t// reading in from file safely\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t br = new BufferedReader(new FileReader(this.fileName));\r\n\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tprocessString(line);\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// closing the file safely\r\n\t\ttry {\r\n\t\t\tbr.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4958e968ef8012d76f6b232ff3676a33", "score": "0.6248247", "text": "private List<String> readFromFile() {\r\n\r\n\t\tList<String> data = null;\r\n\t\tBufferedReader readLinks=null;\r\n\t\tString INPUT_FILE_PATH = \"H:\\\\eclipse-workspace-oxygen\\\\ProgAssign3\\\\data\\\\links.txt\";\r\n\t\ttry {\r\n\r\n\t\t\treadLinks = new BufferedReader(new InputStreamReader(new FileInputStream(INPUT_FILE_PATH)));\r\n\t\t\tdata = new ArrayList<>();\r\n\t\t\tString currentLine;\r\n\t\t\twhile ((currentLine = readLinks.readLine()) != null) {\r\n\t\t\t\tdata.add(currentLine);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\treadLinks.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn data;\r\n\t}", "title": "" }, { "docid": "3d46818759b9c9c1abc7b960dfd15965", "score": "0.6228725", "text": "private static ArrayList readFileInputStream(String filename) throws IOException {\n String sContent=null;\n byte[] buffer =null;\n File a_file = new File(filename);\n\n try {\n FileInputStream fis = new FileInputStream(filename);\n int length = (int)a_file.length();\n buffer = new byte [length];\n fis.read(buffer);\n fis.close();\n } catch(IOException e) {\n e.printStackTrace();\n }\n\n sContent = new String(buffer);\n\n ArrayList<String> text = new ArrayList<String>();\n text.add(sContent);\n\n return text;\n }", "title": "" }, { "docid": "40281e3b851a6ac4616a71e7488d948e", "score": "0.6214057", "text": "private static void readFile(String filename) {\n\t\tFile file = new File(filename);\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(file))) {\n\t\t String line;\n\t\t // Read the file line by line\n\t\t while ((line = br.readLine()) != null) {\n\t\t \tString[] items = line.split(\"=\");\n\t\t \tSystem.out.printf(\"Read value %d\\n\", Integer.parseInt(items[1]));\n\t\t }\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "33443d1be7809610bc8c786f7cd98c05", "score": "0.62088853", "text": "public static String readDataFromfile(String fileName){\r\n\t\tString re_str = \"\";\r\n\t\tFile file = new File(fileName);\r\n\t\ttry {\r\n\t\t\tFileUtils.readFileToString(file, \"UTF-8\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tre_str=\"error\";\r\n\t\t}\r\n\t\treturn re_str;\r\n\t}", "title": "" }, { "docid": "27438979657efe86541f91f5677b8840", "score": "0.620185", "text": "public String read(String filename) throws IOException {\r\n List<String> alltask;\r\n alltask = new ArrayList<>();\r\n\r\n Path path = Paths.get(\"./data/information.txt\");\r\n List<String> str = Files.readAllLines(path);\r\n return str.get(0);\r\n }", "title": "" }, { "docid": "4974f7e0ac75da2e8e6ea1fe290b84d9", "score": "0.6200547", "text": "public void read(String filename) {\r\n\t\ttry {\r\n\t\t\tScanner newScanner = new Scanner(new File(filename));\r\n\t\t\tString line = \"\";\r\n\t\t\tList<Enemy> temp = new ArrayList<Enemy>();\r\n\t\t\tString[] enemyExtracted;\r\n\t\t\tint count = 0;\r\n\r\n\t\t\twhile (newScanner.hasNext()) {\r\n\t\t\t\tline = newScanner.next().trim();\r\n\t\t\t\tif (line.length() > 0) {\r\n\t\t\t\t\tif (line.substring(0, 1).equals(\"*\")) {\r\n\t\t\t\t\t\tif (count > 0 && temp != null) {\r\n\t\t\t\t\t\t\tenemyInfo.add(temp);\r\n\t\t\t\t\t\t\ttemp = new ArrayList<Enemy>();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tenemyExtracted = line.split(\"_\");\r\n\t\t\t\t\t\tfor (int i = 0; i < Integer.parseInt(enemyExtracted[3]); i++) {\r\n\t\t\t\t\t\t\ttemp.add(parseEnemyInfo(enemyExtracted));\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\tnewScanner.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0119fd5a5ed0c5dd52d22de5cdd6c350", "score": "0.6195318", "text": "private String readFile(File file){\n StringBuilder stringBuilder = new StringBuilder();\n try {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(file));\n String line;\n while((line=bufferedReader.readLine())!=null){\n stringBuilder.append(line);\n stringBuilder.append('\\n');\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return stringBuilder.toString();\n }", "title": "" }, { "docid": "fc9b1ade206d64b745b6bf661fc4fd29", "score": "0.6189201", "text": "public static void main(String args[]) {\nFileReader inputFile = null;\n try {\ninputFile = new FileReader(\"src/input.txt\");\n} catch (FileNotFoundException e) {\n// TODO Auto-generated catch block\ne.printStackTrace();\n}\n\nreadFile(inputFile); //Read File\n}", "title": "" }, { "docid": "68cbb67a9823fd119026b8a85a510d28", "score": "0.61881834", "text": "public void readfile() {\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"D:\\\\worksapces\\\\mat_workspace\\\\TDSERVER\\\\heap.bin\");\r\n\t\t\tFileOutputStream fos = new FileOutputStream(\"D:\\\\heap.bin\");\r\n\t\t\tbyte[] b = new byte[1024];\r\n\t\t\tint len = 0;\r\n\t\t\twhile ((len = fis.read(b)) != -1) {\r\n\t\t\t\tfos.write(b, 0, len);\r\n\t\t\t}\r\n\t\t\tfos.flush();\r\n\t\t\tfos.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "24a1548427f058e1246ca782b9284e8a", "score": "0.6175431", "text": "private static String readFile(String fileName) throws IOException {\r\n Reader reader = new FileReader(fileName);\r\n\r\n try {\r\n // Create a StringBuilder instance\r\n StringBuilder sb = new StringBuilder();\r\n\r\n // Buffer for reading\r\n char[] buffer = new char[1024];\r\n\r\n // Number of read chars\r\n int k = 0;\r\n\r\n // Read characters and append to string builder\r\n while ((k = reader.read(buffer)) != -1) {\r\n sb.append(buffer, 0, k);\r\n }\r\n\r\n // Return read content\r\n return sb.toString();\r\n } finally {\r\n try {\r\n reader.close();\r\n } catch (IOException ioe) {\r\n // Ignore\r\n }\r\n }\r\n }", "title": "" }, { "docid": "68ba94f981b0a6318022ae1380f31184", "score": "0.61723137", "text": "private void readData(String fileName) {\n\t\tdata.readData(fileName);\n\t}", "title": "" }, { "docid": "d7c6a54cabcf43f3bf57054f710f7b77", "score": "0.61708224", "text": "public void readFileFromSystem() throws IOException {\n // Step-1 - Initialise\n FileReader textFileReader = new FileReader(\"/Users/Z007J96/IdeaProjects/DSA-Java/src/ds/input/ajay.txt\");;\n\n // Step-2 - Reading file character by character\n int temp;\n while ((temp = textFileReader.read()) != -1) { // Returns the ASCII Value of the character.\n System.out.print((char) temp);\n }\n\n // Step 3 - Closing the file reader.\n textFileReader.close();\n }", "title": "" }, { "docid": "05a2d35cbd874bfd59037c3ee334822d", "score": "0.61682516", "text": "private String readFromFile(String file) {\n\n String ret = \"\";\n\n try {\n InputStream inputStream = openFileInput(file);\n\n if ( inputStream != null ) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String receiveString = \"\";\n StringBuilder stringBuilder = new StringBuilder();\n\n while ( (receiveString = bufferedReader.readLine()) != null ) {\n stringBuilder.append(receiveString);\n }\n\n inputStream.close();\n ret = stringBuilder.toString();\n }\n }\n catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n }\n\n return ret;\n }", "title": "" }, { "docid": "d2973285719199644147bc8113de6fbf", "score": "0.61639726", "text": "public void read() {\n if (this.file.exists() && this.file.isFile() && this.file.length() > 0) {\n BufferedReader buffer = null;\n try {\n FileReader reader = new FileReader(this.file);\n buffer = new BufferedReader(reader);\n try {\n this.root = new JsonObject();\n this.parseJsonObject(new JsonParser().parse((Reader)buffer).getAsJsonObject());\n }\n catch (JsonParseException e) {\n MOD.getLog().error(String.format(\"Failed to read file %s: %s\", this.file.getName(), e.getMessage()));\n }\n }\n catch (IOException e) {\n MOD.printStackTrace(e);\n }\n finally {\n try {\n if (buffer != null) {\n buffer.close();\n }\n }\n catch (IOException e) {\n MOD.printStackTrace(e);\n }\n }\n }\n }", "title": "" }, { "docid": "bfbc14e9221a06bf6d416056aa1bc4c6", "score": "0.6158713", "text": "static ArrayList<Item> readFile(String filename){\n\t\tFileReader fr;\n\t\tArrayList<Item> fileArray = new ArrayList<Item>();\n\t\ttry{\n\t\t\tfr = new FileReader(filename);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tArrayList<String> datastring = new ArrayList<String>();\n\t\t\tString input = \"\";\n\t\t\twhile((input = br.readLine()) != null){\n\t\t\t\tdatastring.add(input);\n\t\t\t}\n\t\t\t//System.out.println(datastring.size());\n\t\t\tfor (int i = 0; i < datastring.size(); i++){\n\t\t\t\tString[] list = new String[0];\n\t\t\t\tlist = datastring.get(i).split(\",\");\n\t\t\t\ttry{\n\t\t\t\t\tItem i1 = new Item(list[0], list[1], list[2], list[3]);\n\t\t\t\t\tfileArray.add(i1);\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tSystem.out.println(\"ERROR: \" + e);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"ERROR: \" + e);\n\t\t}\n\t\treturn fileArray;\n\t}", "title": "" }, { "docid": "1e0e0970be9bb149a8d876a4dabd595f", "score": "0.6155473", "text": "private static String readOnFile(Context context, @NotNull File file) {\n\n String result = null;\n if (file.exists()) {\n BufferedReader br;\n try {\n br = new BufferedReader(new FileReader(file));\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(\"\\n\");\n line = br.readLine();\n }\n result = sb.toString();\n } finally {\n br.close();\n }\n } catch (IOException e) {\n Toast.makeText(context, context.getString(R.string.error_happened), Toast.LENGTH_LONG).show();\n }\n }\n\n return result;\n }", "title": "" }, { "docid": "b28b58e8f361409143eaf284882fe31a", "score": "0.61481816", "text": "private String loadFileInfo(){\n\n String ret = \"\";\n\n try{\n String string;\n StringBuilder stringBuilder = new StringBuilder();\n BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));\n while((string = br.readLine()) != null){\n stringBuilder.append(\"\\n\").append(string);\n }\n ret = stringBuilder.toString();\n br.close();\n }catch (IOException ignored){}\n\n return ret;\n }", "title": "" }, { "docid": "418e70328854bed3f1dcb2f319f30fc5", "score": "0.6145885", "text": "public void ReadFile() {\r\n try {\r\n CSVReader reader = new CSVReader( new FileReader( fileName ), ',' );\r\n System.out.println(\"can be read!!!\");\r\n stringValues = (List<String[]>) reader.readAll(); \r\n } catch ( IOException e ) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "2bcef1daf7236b4ece3bb77cd8e85759", "score": "0.6144994", "text": "private static String readFile(File f) throws IOException {\n int bytesRead = 0;\n try(FileReader fr = new FileReader(f)) {\n synchronized(buffer) {\n while (true) {\n int n = fr.read(buffer, bytesRead, buffer.length - bytesRead);\n if( n < 0 ) return new String(buffer, 0, bytesRead);\n bytesRead += n;\n if( bytesRead >= buffer.length ) throw new IOException(\"LinuxProcFileReader readFile unexpected buffer full\");\n }\n }\n }\n }", "title": "" }, { "docid": "8f899b279e130e03d8229d329d19cc49", "score": "0.614285", "text": "public static String readline(String file) {\n String readresult = \"\";\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n String str;\n int cursor = 0;\n\n while ((str = br.readLine()) != null) {\n //System.out.println(str);\n readresult = str;\n cursor++;\n }\n \n br.close();\nreturn readresult;\n } catch (IOException e) {\n e.printStackTrace();\n }\nreturn readresult;\n}", "title": "" }, { "docid": "4e661c1bbd3c74780b18bfad2213c32e", "score": "0.613906", "text": "private void read(File file) throws IOException {\n try{\n BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream(file)));\n myPeople = br.lines().skip(1).map(mapToItem).collect(Collectors.toList());\n }catch (IOException e){\n throw new IOException(\"not implemented: \"+e);\n }\n }", "title": "" }, { "docid": "8c44e43e72f66eadad43950d94001ae5", "score": "0.61329806", "text": "public boolean readFile()\n {\n return true;\n }", "title": "" }, { "docid": "5142ce9f0857ec2e3e55b89b37c06c4e", "score": "0.61315835", "text": "public static String readFile(){\n\t\ttry {\n\t\t\tString info = \"\";\n\t\t\tFile f1 = new File(\"plaintext.txt\");\n\t\t\tScanner in = new Scanner(f1);\n\t\t\twhile(in.hasNext()){\n\t\t\t\tinfo += in.nextLine();\n\t\t\t}\n\t\t\tin.close();\n\t\t\treturn info;\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "188a7e293e84459c90fe161d7ed8f18a", "score": "0.6130495", "text": "private void readFile(String file_path) throws IOException {\n BufferedReader br = new BufferedReader(new FileReader(file_path));\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n\n// while (line != null) {\n// sb.append(line);\n// sb.append(/*System.lineSeparator()*/'\\n');\n// \n// line = br.readLine();\n// }\n if(line != null) { \n \tsb.append(line); \n \tline = br.readLine(); \n } \n \n while (line != null) { \n \tsb.append(/*System.lineSeparator()*/\"\\n\"); \n \tsb.append(line); \n \tline = br.readLine(); \n }\n \n \n this.file_content = sb.toString();\n } finally {\n br.close();\n }\n }", "title": "" }, { "docid": "03c5c069b307d43269b94849d67145fd", "score": "0.6127168", "text": "private static String readFile(String filename) {\n\n try {\n InputStream inputStream = new FileInputStream(filename);\n BufferedReader buf = new BufferedReader(new InputStreamReader(inputStream));\n String line = buf.readLine();\n StringBuilder sqlBuilder = new StringBuilder();\n while (line!=null){\n sqlBuilder.append(line).append(\"\\n\");\n line = buf.readLine();\n }\n return sqlBuilder.toString();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "d8265dda574af5a1d572775f45901816", "score": "0.6125015", "text": "private void readItem(){\n File filesDir = getFilesDir();\n File todoFile = new File(filesDir, \"todo.txt\");\n try{\n items = new ArrayList<String>(FileUtils.readLines(todoFile));\n } catch (IOException e){\n items = new ArrayList<String>();\n }\n }", "title": "" }, { "docid": "19e829fd525bf32db5575d1935d12764", "score": "0.6123536", "text": "private void readfile() {\n\t\ttry {\n \t //the ui style\n \t UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); \n JFileChooser jdir = new JFileChooser(); \n //path mode \n jdir.setFileSelectionMode(JFileChooser.FILES_ONLY); \n //fliter \n FileNameExtensionFilter filter = new FileNameExtensionFilter( \n \"txt文件(*.txt;)\",\"txt\"); \n jdir.setFileFilter(filter); \n jdir.setDialogTitle(\"Choose the data file\"); \n if (JFileChooser.APPROVE_OPTION == jdir.showOpenDialog(null)) {//用户点击了确定 \n \t filename = jdir.getSelectedFile().getAbsolutePath();//取得路径选择 \n } \n System.out.println(filename); \t\t\t\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (InstantiationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IllegalAccessException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (UnsupportedLookAndFeelException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} \n\t\tFile file = new File(filename);\n\t\tBufferedReader Linereader =null;\n//\t\tint degree;\n//\t\tint cntNum=0;\n//\t\tPoint2D.Double[] cnt;\n\t\ttry {\n\t\t\tSystem.out.println(\"read the file:\");\n\t\t\t\n\t\t\tLinereader = new BufferedReader(new FileReader(file));\n\t\t\t String eachLine = null;\n\t\t\t int line = 1;\n\t\t\t String eachCharacter = null;\n\t\t\t \n\t\t\t while ((eachLine=Linereader.readLine())!=null ) {\n\t\t\t\tif(eachLine.length()!=0){\n//\t\t\t\t\tSystem.out.println(\"line\"+line+\":\"+eachLine);\n\t\t\t\t\tif(line==1){\n\t\t\t\t\t\t degree = Integer.parseInt(eachLine);\n//\t\t\t\t\t\tSystem.out.println(\"degree=\"+degree);\n\t\t\t\t\t}\n\t\t\t\t\telse if (line==2) {\n\t\t\t\t\t\t cntNum = Integer.parseInt(eachLine);\n//\t\t\t\t\t\tSystem.out.println(\"cntNum=\"+cntNum);\n\t\t\t\t\t\t cnt = new Point2D.Double[cntNum];\n\t\t\t\t\t\t knots = new double[cntNum+degree+1];\n\n\t\t\t\t\t\t}\n\t\t\t\t\telse if (line==3) {\n\t\t\t\t\t\t String[] knotsLine = eachLine.split(\",\") ;// knotsLine[] ={} \n\t\t\t\t\t\t System.out.println(cntNum+\"cntnum====\"+\"degree===\"+degree+\"knotsLine length\"+knotsLine.length);\n\t\t\t\t\t\t for(int ks=0;ks<cntNum+degree+1;ks++){\n//\t\t\t\t\t\t\t System.out.println(\"ks=====\"+ks);\n\t\t\t\t\t\t knots[ks]= Double.parseDouble(knotsLine[ks]);\n//\t\t\t\t\t\t System.out.println(\"knots[\"+ks+\"]====\"+knots[ks]);\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\tString[] cntS = eachLine.split(\",\");\n\t\t\t\t\t\tSystem.out.println(cntS[0]);\n\t\t\t\t\t\tPoint2D.Double cntp= new Point2D.Double(Double.parseDouble(cntS[0]), Double.parseDouble(cntS[1]));\n\t\t\t\t\t\tSystem.out.println(cntp);\n\t\t\t\t\t\tcnt[line-4] = cntp;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tline++;\n\t\t\t\t }\n\t\t\t}\n\t\t\t Linereader.close();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO: handle exception\n e1.printStackTrace();\n\n\t\t}\n\t}", "title": "" }, { "docid": "5c53bde4527c3fc42bee4a86c2175c62", "score": "0.6121208", "text": "public abstract String read();", "title": "" }, { "docid": "1554c15591ef14efa2eee437b8589004", "score": "0.6118647", "text": "@Override\n\t\n\tpublic void read() throws FileNotFoundException, IOException {\n\t\t// TODO Auto-generated method stub - processing data\n\t\tString line = \"\";\n\t\tBufferedReader BufferRead_lab = new BufferedReader(new FileReader(\"bank-Detail.csv\"));\n\t\twhile ((line = BufferRead_lab.readLine()) != null) {\n\t\t\tarr_ay_lab3.add(Arrays.asList(line.split(\",\")));\n\t\t}\n\t}", "title": "" }, { "docid": "cf675360836060ecc681a2944b938b53", "score": "0.6107815", "text": "void readFromFile(String file) throws IOException\n {\n FileInputStream fr = new FileInputStream(file);\n ByteBuffer intBuff = ByteBuffer.allocate(4);\n fr.read(intBuff.array(), 0, 4);\n width = intBuff.getInt();\n intBuff.rewind();\n fr.read(intBuff.array(), 0, 4);\n height = intBuff.getInt();\n intBuff.rewind();\n fr.read(intBuff.array(), 0, 4);\n numChannels = intBuff.getInt();\n intBuff.rewind();\n fr.read(intBuff.array(), 0, 4);\n mergedChannels = intBuff.getInt();\n intBuff.rewind();\n data = new byte[3][]; // Always create 3 channels\n for (int i = 0; i < numChannels; i ++)\n {\n fr.read(intBuff.array(), 0, 4);\n int len = intBuff.getInt();\n intBuff.rewind();\n data[i] = new byte[len];\n fr.read(data[i]);\n }\n }", "title": "" }, { "docid": "a17484b01bfdbee5f3d9e93ade55f73a", "score": "0.610669", "text": "public static void readCharacterData(String fileName) {\n\n\t}", "title": "" }, { "docid": "8855210a31ae0345f9c972441c8a9bd6", "score": "0.6102835", "text": "private void readDataFile(Path file) {\n if (file.toString().toLowerCase().endsWith(\".txt\")) {\n try {\n FileReader fr = new FileReader(file.toAbsolutePath().toString());\n BufferedReader br = new BufferedReader(fr);\n String line;\n while ((line = br.readLine()) != null) {\n String[] values = line.split(\",\");\n // Each line: [name, gender, state, year, nameCount]\n if (values.length == 5) {\n String name = values[3];\n String gender = values[1];\n String state = values[0];\n int year = Integer.parseInt(values[2]);\n int nameCount = Integer.parseInt(values[4]);\n // Create new record and add to list\n NameRecord record = new NameRecord(name, gender, state, year, nameCount);\n // Order doesn't matter so add at beginning for LinkedList and end for ArrayList\n if (config.isUsingLinkedList()) {\n records.add(0, record);\n } else {\n records.add(record);\n }\n }\n }\n br.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "43b748e4835e2ddb401297bf18808f94", "score": "0.61023194", "text": "private LinkedList<StateData> readFile(String filename)\r\n throws ParseException,\r\n FileNotFoundException {\r\n\r\n Scanner scan = new Scanner(new File(filename));\r\n LinkedList<StateData> state = new LinkedList<StateData>();\r\n String currentLine = scan.nextLine();\r\n\r\n while (scan.hasNextLine()) {\r\n\r\n currentLine = scan.nextLine();\r\n String[] array = currentLine.split(\", *\");\r\n\r\n if (array.length != 11) {\r\n scan.close();\r\n throw new ParseException(\r\n \"The amount of data in this line is incorrect.\");\r\n }\r\n\r\n StateData stateCase = new StateData(array[0], checkNA(array[1]),\r\n checkNA(array[2]), checkNA(array[3]), checkNA(array[4]),\r\n checkNA(array[5]), checkNA(array[6]), checkNA(array[7]),\r\n checkNA(array[8]), checkNA(array[9]), checkNA(array[10]));\r\n\r\n state.add(stateCase);\r\n }\r\n return state;\r\n }", "title": "" }, { "docid": "ff99df34dfe8a53fb7938167f35d2e82", "score": "0.6099549", "text": "public void readTxtFile() {\r\n try {\r\n File myObj = new File(\"contacts.txt\");\r\n Scanner myReader = new Scanner(myObj);\r\n while (myReader.hasNextLine()) {\r\n String data = myReader.nextLine();\r\n System.out.println(data);\r\n }\r\n myReader.close();\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"An error occurred \" + e);\r\n }\r\n }", "title": "" }, { "docid": "0b3420ccdc94721f2b633fabb5b63bc6", "score": "0.6099227", "text": "@Test\n\tpublic void testReadFile() {\n\t\tSystem.out.println(\"readFile\");\n\t\tString filePath = \"\";\n\t\tString expResult = null;\n\t\tString result = Legacy.readFile(filePath);\n\t\tassertEquals(expResult, result);\n\t}", "title": "" }, { "docid": "b84fd25836f293343bac1ecd6601124a", "score": "0.6097392", "text": "private static ArrayList<Student> readStudent(File f)throws IOException {\n\t\tFileInputStream fis=new FileInputStream(f);\r\n\t\tString buffer=\"\";\r\n\t\tInputStreamReader isr=new InputStreamReader(fis,\"GBK\");\r\n\t\tint tmp;\r\n while((tmp = isr.read()) != -1){\r\n buffer += (char)tmp;\r\n }\r\n\t\tString stu=new String(buffer);\r\n\t\tArrayList<Student> re=new ArrayList<Student>();\r\n\t\tString[] ssss=stu.split(\"[*]|[#]\");\r\n\r\n\t\tfor(int i=0;i<ssss.length;i+=3){\r\n\t\t\tre.add(new Student(Integer.parseInt(ssss[i]), ssss[i+1], Integer.parseInt(ssss[i+2])));\r\n\t\t}\r\n\t\tfis.close();\r\n\t\treturn re;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e88849632f9fd42bb401a888124c979e", "score": "0.60937095", "text": "public void readFileInputStream(String filename) {\r\n\t\ttry (InputStream inputStream = new FileInputStream(filename);) {\r\n\r\n\t\t\tDataInputStream is = new DataInputStream(new BufferedInputStream(inputStream));\r\n\t\t\t\r\n\t\t\t// loops while the steam is available\r\n\t\t\twhile(is.available() > 0) {\r\n\t\t\t\tshort temp = is.readShort();\r\n\t\t\t\tstore.add(temp);\r\n\t\t\t}\r\n\t\t\t//Closes the stream\r\n\t\t\tis.close();\r\n\t\t\t\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ab308bffceea90b6ec25db237835876b", "score": "0.60933334", "text": "@Override\n public void parseFile(InputStream inputStream) {\n Logger.info(\"Getting reading to parse the file\");\n\n UserInfo userInfo = new UserInfo();\n\n BufferedReader bufferedReader;\n List<Object> recordList = null;\n\n try {\n String line = null;\n recordList = new ArrayList<>();\n bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\n while ((line = bufferedReader.readLine()) != null) {\n recordList.add(line);\n }\n bufferedReader.close();\n } catch (UnsupportedEncodingException ex) {\n Logger.error(\"Exception occured::: \" + ex.getMessage());\n ex.printStackTrace();\n } catch (IOException ex) {\n Logger.error(\"Exception occured::: \" + ex.getMessage());\n }\n }", "title": "" }, { "docid": "7c4c17111fde674cfe4c4d1c1b308fbe", "score": "0.60912454", "text": "private void readItems() {\n // Returns the absolute path to the directory on the filesystem where files created\n // with openFileOutput(String, int) are stored.\n File filesDir = getFilesDir();\n File todoFile = new File(filesDir, \"todo.txt\");\n try {\n items = new ArrayList<String>(FileUtils.readLines(todoFile));\n } catch(IOException e) {\n items = new ArrayList<String>();\n }\n }", "title": "" }, { "docid": "91bf6b95037691e41d970fff5c934638", "score": "0.60900617", "text": "public ReadAdifFile(File file) {\n _file = file ;\n }", "title": "" }, { "docid": "45c8a4eee11fc881d7967fc14301c8f4", "score": "0.608783", "text": "@Test\n public void testaaa() {\n StringBuilder filePath = new StringBuilder(new File(\".\").getAbsoluteFile().getParent());\n filePath.append(\"/tests/practice/utils/filesystem/file/input/text.txt\");\n///Users/yoshitaka.toyama/MyPrograms/private/mysample/tests/practice/utils/filesystem/file\n try {\n FileReader f = new FileReader(filePath.toString());\n String s = f.readAllBy(null);\n System.out.println(s);\n assertEquals(s, \"abcde,12345,)('0*+'\");\n\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "46b7b1ad9ec9882039a0e3b75d9574ff", "score": "0.6086284", "text": "public static void readFile (String fileName){\n\t\ttry {\r\n\t\t\tFileReader fr = new FileReader(fileName);\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\tString str;\r\n\r\n\t\t\tstr = br.readLine();\r\n\t\t\tList <String> firstLine= Arrays.asList(str.split(\",\"));\r\n\t\t\tString id = firstLine.get(4);\r\n\r\n\t\t\tstr = br.readLine();\r\n\t\t\tstr = br.readLine();\r\n\t\t\twhile(str != null){\r\n\t\t\t\tList <String> tempfilesArray= Arrays.asList(str.split(\",\"));\r\n\t\t\t\tarrayRowMeasurement temp = new arrayRowMeasurement();\r\n\t\t\t\ttemp.setID(id);;\r\n\t\t\t\ttemp= organizeCsv(temp);\r\n\t\t\t\tarrayArray.setArrRowMea(temp);\r\n\t\t\t\tstr = br.readLine();\r\n\t\t\t}\r\n\t\t\tbr.close();\r\n\t\t\tfr.close();\r\n\t\t}\r\n\t\tcatch(IOException ex) {\r\n\t\t\tSystem.out.print(\"Error reading file\\n\" + ex);\r\n\t\t\tSystem.exit(2);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "46c1f40eda0b939608f3eb72a9c3a625", "score": "0.6080614", "text": "private List<String> readFile(String fileName) {\n try (BufferedReader bufferedReader = Files.newBufferedReader(Paths.get(fileName))) {\n\n //bufferedReader returns as stream and convert it into a List\n return bufferedReader.lines().collect(Collectors.toList());\n } catch (IOException e) {\n System.err.format(\"IOException: %s%n\", e);\n }\n return null;\n }", "title": "" }, { "docid": "0d51247ef68907cd4da9b4618b455874", "score": "0.6078003", "text": "private void readFromFile() throws SocketException, IOException, ClassNotFoundException {\n\t\t\tString nameFile = panelFile.fileName.getText();\n\t\t\tnameFile=nameFile+=\".dmp\";\n\t\t\tList L = new ArrayList();\n\t\t\tL.add(nameFile);\n\t\t\tout.writeObject(L);\n\t\t\tString r = String.valueOf(in.readObject());\n\n\t\t\tif (r.equals(\"ERR\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"File non esistente, riprova\");\n\t\t\t} else {\n\t\t\t\tpanelFile.clusterOutput.setText(r);\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "df286adc99b82d103776a55e7cc0a08a", "score": "0.60754955", "text": "private NSData dataFromContentsOfFile(File file) throws IOException\n {\n FileInputStream stream = new FileInputStream(file);\n NSData data = new NSData(stream, 0);\n stream.close();\n return data;\n }", "title": "" }, { "docid": "83ca6d4cbe2570aa0ae644582eec3040", "score": "0.607433", "text": "List<String> readFile()\r\n {\r\n \tList<String> lines = new ArrayList<String>();\r\n try\r\n { \r\n String str = this.filename;\r\n BufferedReader ReadFile = new BufferedReader(new FileReader(str));\r\n int temp = 0;\r\n while((str = ReadFile.readLine()) != null)\r\n {\r\n ++temp;\r\n if(temp > count) /* new msg */\r\n {\r\n// String filePath = \"WhatRead\";\r\n// BufferedWriter WriteFile = new BufferedWriter(new FileWriter(filePath,true));\r\n// WriteFile.write(str);\r\n// WriteFile.write(\"\\n\");\r\n// WriteFile.close();\r\n \tlines.add(str);\r\n }\r\n }\r\n count = temp;\r\n \r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(e + \" in readFile()\");\r\n }\r\n \r\n return lines;\r\n }", "title": "" }, { "docid": "c8371009664e162097387df298d7afc2", "score": "0.60719645", "text": "private String readFromFile(String Filename) {\n\t\t\n\t String ret = \"\"; // to store string string value read from file\n\n\t try {\n\t \t// get Input stream from file.\n\t InputStream inputStream = openFileInput(Filename);\n\n\t if ( inputStream != null ) {\n\t \t// Build a reader from input stream\n\t InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n\t BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\t \n\t String receiveString = \"\";\n\t StringBuilder stringBuilder = new StringBuilder();\n\t \n\t // read entire file\n\t while ( (receiveString = bufferedReader.readLine()) != null ) {\n\t \t// Keep appending all the read code.\n\t stringBuilder.append(receiveString);\n\t }\n\t // Close the input stream.\n\t inputStream.close();\n\t //Get String val from string builder\n\t ret = stringBuilder.toString();\n\t }\n\t }\n\t catch (FileNotFoundException e) {\n\t Log.e(\"login activity\", \"File not found: \" + e.toString());\n\t } catch (IOException e) {\n\t Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n\t }\n\t // return read string.\n\t return ret;\n\t}", "title": "" }, { "docid": "677183152c403955aa5591e8ba5d3a0d", "score": "0.6063541", "text": "private void readUserFile() {\n System.out.println(\"ENTER PasswordService.readUserFile()\");\n BufferedReader br = null;\n File f = null;\n String canonicalPath = null;\n try {\n File fdir = getUsersFileDirectory(); // new File(KBmanager.getMgr().getPref(\"kbDir\"));\n f = new File(fdir, USERS_FILENAME);\n canonicalPath = f.getCanonicalPath();\n if (f.canRead()) {\n br = new BufferedReader(new FileReader(f));\n StringBuilder sb = new StringBuilder();\n users.clear();\n int i = -1;\n while ((i = br.read()) != -1) {\n sb.append((char) i);\n }\n if (sb.length() > 0) {\n String filestr = StringUtil.fromBase64(sb.toString(), CHARSET);\n List<String> userStrs = Arrays.asList(filestr.split(USER_DELIMITER));\n for (String udata : userStrs) {\n if (StringUtil.isNonEmptyString(udata)) {\n List<String> u_p_r = Arrays.asList(udata.split(DELIMITER2));\n if (u_p_r.size() > 2) {\n User user = new User();\n String userName = u_p_r.get(0);\n String password = u_p_r.get(1);\n String role = u_p_r.get(2);\n System.out.println(\" > userName == \" + userName);\n user.setUsername(userName);\n System.out.println(\" > password == \" + password);\n user.setPassword(password);\n System.out.println(\" > role == \" + role);\n user.setRole(role);\n users.put(userName, user);\n }\n }\n }\n }\n }\n else {\n System.out.println(\"WARNING in PasswordService.readUserFile()\");\n System.out.println(\" > Cannot read \" + canonicalPath);\n }\n }\n catch (Exception ex) {\n System.out.println(\"ERROR in PasswordService.readUserFile()\");\n System.out.println(\" > f == \" + canonicalPath);\n System.out.println(\" > \" + ex.getMessage());\n ex.printStackTrace();\n }\n finally {\n try {\n if (br != null) \n br.close();\n }\n catch (Exception e1) {\n e1.printStackTrace();\n }\n }\n //System.out.println(xml.toString());\n System.out.println(\"EXIT PasswordService.readUserFile()\");\n return;\n }", "title": "" }, { "docid": "cad533195acf4c5d2af58e0fb182d912", "score": "0.60627437", "text": "public void ReadFileAndFillArray(File file){\n sourceFile = file;\n Gson gson = new Gson();\n FileInputStream fis;\n InputStreamReader isr;\n BufferedReader buRe;\n String str;\n try {\n fis = new FileInputStream(file);\n isr = new InputStreamReader(fis);\n buRe = new BufferedReader(isr);\n try {\n try {\n while ((str = buRe.readLine()) != null){\n myAdd(gson.fromJson(str,Home.class));\n }\n }catch (com.google.gson.JsonSyntaxException ex) {\n System.err.println(\"The strings in file describing the objects must be in the form of json!\");\n flag = false;\n }finally {\n buRe.close();\n }\n }catch (IOException ioex){System.err.println(\"Input EXCEPTION!\"); flag = false;}\n\n }catch (java.io.FileNotFoundException fnfex){System.err.println(\"File was not founded!\"); flag = false;}\n }", "title": "" }, { "docid": "4dbfe4530ba60ba6317b4e33512e3425", "score": "0.60565656", "text": "void fileReader(String fileName, String pType, int nodenum, int cachesize) throws Exception {\r\n type = pType;\r\n cre = new BDDCreator(nodenum, cachesize);\r\n\r\n BufferedReader in = new BufferedReader(new FileReader(fileName));\r\n String line,\r\n propositionsLine,\r\n initialStateLine,\r\n constraintsLine,\r\n goalLine,\r\n actionName,\r\n actionPre,\r\n actionEff;\r\n\r\n while (in.ready()) {\r\n line = in.readLine();\r\n\r\n // read the lines of the fileName corresponding the variables\r\n if (line.equals(\"<predicates>\")) {\r\n line = in.readLine(); //read next line containing the propositions\r\n propositionsLine = line;\r\n line = in.readLine(); //read <\\predicates>\r\n cre.initializeVarTable(propositionsLine);\r\n }\r\n\r\n if (line.equals(\"<constraints>\")) {\r\n line = in.readLine(); //read next line containing the constraints OR <\\constraints>\r\n while (!line.equals(\"<\\\\constraints>\")) {\r\n constraintsLine = line;\r\n cre.createConstraintBDD(constraintsLine);\r\n line = in.readLine();\r\n }\r\n }\r\n\r\n // read the lines corresponding to the initial state\r\n if (line.equals(\"<initial>\")) {\r\n line = in.readLine(); //read next line containing the initial state specification\r\n initialStateLine = line;\r\n line = in.readLine(); // read the line <\\initial>\r\n cre.createInitialStateBdd(initialStateLine);\r\n }\r\n\r\n // read the lines corresponding to the planning goal\r\n if (line.equals(\"<goal>\")) {\r\n line = in.readLine(); //read next line\r\n goalLine = line;\r\n cre.createGoalBdd(goalLine);\r\n line = in.readLine();\r\n }\r\n\r\n // read the lines corresponding to the actions\r\n if (line.equals(\"<actionsSet>\")) {\r\n line = in.readLine();\r\n while (!line.equals(\"<\\\\actionsSet>\")) {\r\n if (line.equals(\"<action>\")) {\r\n line = in.readLine(); //<name><\\name>\r\n actionName = line.substring(line.indexOf(\">\") + 1, line.indexOf(\"\\\\\") - 1);\r\n\r\n line = in.readLine(); //<pre><\\pre>\r\n actionPre = line.substring(line.indexOf(\">\") + 1, line.indexOf(\"\\\\\") - 1);\r\n\r\n line = in.readLine(); //<pos><\\pos>\r\n actionEff = line.substring(line.indexOf(\">\") + 1, line.indexOf(\"\\\\\") - 1);\r\n\r\n Action action = new Action(actionName, actionPre, actionEff, cre, pType);\r\n cre.addAction(action);\r\n in.readLine(); //<\\action>\r\n }\r\n line = in.readLine(); //<action>\r\n }\r\n }\r\n }\r\n in.close();\r\n }", "title": "" } ]
5d30e804d0a22f8fcb03277cbc7bbecc
$ANTLR end "rule__Entity__NameAssignment_2" $ANTLR start "rule__Entity__SuperTypeAssignment_3_1" InternalBlackDog.g:806:1: rule__Entity__SuperTypeAssignment_3_1 : ( ( RULE_ID ) ) ;
[ { "docid": "121bdaf89cf44a160c485d50875b9557", "score": "0.7432835", "text": "public final void rule__Entity__SuperTypeAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:810:1: ( ( ( RULE_ID ) ) )\n // InternalBlackDog.g:811:2: ( ( RULE_ID ) )\n {\n // InternalBlackDog.g:811:2: ( ( RULE_ID ) )\n // InternalBlackDog.g:812:3: ( RULE_ID )\n {\n before(grammarAccess.getEntityAccess().getSuperTypeEntityCrossReference_3_1_0()); \n // InternalBlackDog.g:813:3: ( RULE_ID )\n // InternalBlackDog.g:814:4: RULE_ID\n {\n before(grammarAccess.getEntityAccess().getSuperTypeEntityIDTerminalRuleCall_3_1_0_1()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getEntityAccess().getSuperTypeEntityIDTerminalRuleCall_3_1_0_1()); \n\n }\n\n after(grammarAccess.getEntityAccess().getSuperTypeEntityCrossReference_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
[ { "docid": "964d1129d491cfa1e83f6597ed1c5cbb", "score": "0.67363024", "text": "public final void rule__Entity__Group_3__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:572:1: ( ( ( rule__Entity__SuperTypeAssignment_3_1 ) ) )\n // InternalBlackDog.g:573:1: ( ( rule__Entity__SuperTypeAssignment_3_1 ) )\n {\n // InternalBlackDog.g:573:1: ( ( rule__Entity__SuperTypeAssignment_3_1 ) )\n // InternalBlackDog.g:574:2: ( rule__Entity__SuperTypeAssignment_3_1 )\n {\n before(grammarAccess.getEntityAccess().getSuperTypeAssignment_3_1()); \n // InternalBlackDog.g:575:2: ( rule__Entity__SuperTypeAssignment_3_1 )\n // InternalBlackDog.g:575:3: rule__Entity__SuperTypeAssignment_3_1\n {\n pushFollow(FOLLOW_2);\n rule__Entity__SuperTypeAssignment_3_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getEntityAccess().getSuperTypeAssignment_3_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fa978dfbcf55dce042d13b3d1f7d6ffd", "score": "0.5909871", "text": "public final void rule__Entity__NameAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:795:1: ( ( RULE_ID ) )\n // InternalBlackDog.g:796:2: ( RULE_ID )\n {\n // InternalBlackDog.g:796:2: ( RULE_ID )\n // InternalBlackDog.g:797:3: RULE_ID\n {\n before(grammarAccess.getEntityAccess().getNameIDTerminalRuleCall_2_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getEntityAccess().getNameIDTerminalRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bf61a661e4960155853422cec2d2da63", "score": "0.57223034", "text": "public final void rule__AssignedClassDeclaration__ExtendAssignment_2_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14584:1: ( ( ruleSuperClass ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14585:1: ( ruleSuperClass )\n {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14585:1: ( ruleSuperClass )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14586:1: ruleSuperClass\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAssignedClassDeclarationAccess().getExtendSuperClassParserRuleCall_2_0_1_0()); \n }\n pushFollow(FOLLOW_ruleSuperClass_in_rule__AssignedClassDeclaration__ExtendAssignment_2_0_129578);\n ruleSuperClass();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAssignedClassDeclarationAccess().getExtendSuperClassParserRuleCall_2_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3370f14ec1d6c928c71ea937c590c0cd", "score": "0.5705519", "text": "public final void rule__AssignedClassDeclaration__ExtendAssignment_2_1_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14630:1: ( ( ruleSuperClass ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14631:1: ( ruleSuperClass )\n {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14631:1: ( ruleSuperClass )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14632:1: ruleSuperClass\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAssignedClassDeclarationAccess().getExtendSuperClassParserRuleCall_2_1_1_1_0()); \n }\n pushFollow(FOLLOW_ruleSuperClass_in_rule__AssignedClassDeclaration__ExtendAssignment_2_1_1_129673);\n ruleSuperClass();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAssignedClassDeclarationAccess().getExtendSuperClassParserRuleCall_2_1_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "887e49aef5f1d56d899a6f9ef0123ba7", "score": "0.54064924", "text": "public final void rule__ESpecialVariable__NameAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:29957:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:29958:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:29958:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:29959:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getESpecialVariableAccess().getNameIDTerminalRuleCall_2_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getESpecialVariableAccess().getNameIDTerminalRuleCall_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "88442bf2896e520155ad4d0a3d9bb1a9", "score": "0.5400232", "text": "public final void rule__ClassDeclaration__ExtendAssignment_2_2_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14554:1: ( ( ruleSuperClass ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14555:1: ( ruleSuperClass )\n {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14555:1: ( ruleSuperClass )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14556:1: ruleSuperClass\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getClassDeclarationAccess().getExtendSuperClassParserRuleCall_2_2_1_1_0()); \n }\n pushFollow(FOLLOW_ruleSuperClass_in_rule__ClassDeclaration__ExtendAssignment_2_2_1_129516);\n ruleSuperClass();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getClassDeclarationAccess().getExtendSuperClassParserRuleCall_2_2_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3e2ec7f827b258159df6089bfc1e9d21", "score": "0.5337142", "text": "public final void rule__ClassDeclaration__ExtendAssignment_2_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14508:1: ( ( ruleSuperClass ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14509:1: ( ruleSuperClass )\n {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14509:1: ( ruleSuperClass )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:14510:1: ruleSuperClass\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getClassDeclarationAccess().getExtendSuperClassParserRuleCall_2_1_1_0()); \n }\n pushFollow(FOLLOW_ruleSuperClass_in_rule__ClassDeclaration__ExtendAssignment_2_1_129421);\n ruleSuperClass();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getClassDeclarationAccess().getExtendSuperClassParserRuleCall_2_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "192c7bed14bf793014f7d81463a0d4f6", "score": "0.5325925", "text": "public final void rule__Type__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4357:1: ( ( RULE_ID ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4358:1: ( RULE_ID )\n {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4358:1: ( RULE_ID )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4359:1: RULE_ID\n {\n before(grammarAccess.getTypeAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__Type__NameAssignment_18842); \n after(grammarAccess.getTypeAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cad851be00946fe23f651858a87fd71e", "score": "0.51945424", "text": "public String visit(AssignmentStatement n, ContextType argu) {\r\n String _ret = null;\r\n String t1 = argu.getTypeEnvType(n.f0.f0.tokenImage); // Gets type of LHS\r\n String t2 = n.f2.accept(expVisitor, argu); // type of RHS expression\r\n if(!argu.isSubType(t1, t2)) { // CHECK that t2 is a subtype of t1 through ContextType.\r\n throw new Error(\"Type error\");\r\n }\r\n return _ret;\r\n }", "title": "" }, { "docid": "d86943490678f4fc795ed4f4556768ca", "score": "0.5175747", "text": "public void setSuperTypeConcept(Concept sourceConcept);", "title": "" }, { "docid": "954455334df25bcb94df181210129b0a", "score": "0.51492596", "text": "public final void rule__Entity__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:411:1: ( ( ( rule__Entity__NameAssignment_2 ) ) )\n // InternalBlackDog.g:412:1: ( ( rule__Entity__NameAssignment_2 ) )\n {\n // InternalBlackDog.g:412:1: ( ( rule__Entity__NameAssignment_2 ) )\n // InternalBlackDog.g:413:2: ( rule__Entity__NameAssignment_2 )\n {\n before(grammarAccess.getEntityAccess().getNameAssignment_2()); \n // InternalBlackDog.g:414:2: ( rule__Entity__NameAssignment_2 )\n // InternalBlackDog.g:414:3: rule__Entity__NameAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__Entity__NameAssignment_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getEntityAccess().getNameAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dd2591a5cd23914837086989f196eb99", "score": "0.51444817", "text": "public final void rule__SubProgram__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:3583:1: ( ( ( rule__SubProgram__NameAssignment_1 ) ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:3584:1: ( ( rule__SubProgram__NameAssignment_1 ) )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:3584:1: ( ( rule__SubProgram__NameAssignment_1 ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:3585:1: ( rule__SubProgram__NameAssignment_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSubProgramAccess().getNameAssignment_1()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:3586:1: ( rule__SubProgram__NameAssignment_1 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:3586:2: rule__SubProgram__NameAssignment_1\n {\n pushFollow(FOLLOW_rule__SubProgram__NameAssignment_1_in_rule__SubProgram__Group__1__Impl7821);\n rule__SubProgram__NameAssignment_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSubProgramAccess().getNameAssignment_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d47b80c3c7efe8acd47efad024ffcd60", "score": "0.50392586", "text": "public final void rule__Type__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:1701:1: ( ( ( rule__Type__NameAssignment_1 ) ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:1702:1: ( ( rule__Type__NameAssignment_1 ) )\n {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:1702:1: ( ( rule__Type__NameAssignment_1 ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:1703:1: ( rule__Type__NameAssignment_1 )\n {\n before(grammarAccess.getTypeAccess().getNameAssignment_1()); \n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:1704:1: ( rule__Type__NameAssignment_1 )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:1704:2: rule__Type__NameAssignment_1\n {\n pushFollow(FOLLOW_rule__Type__NameAssignment_1_in_rule__Type__Group__1__Impl3599);\n rule__Type__NameAssignment_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getTypeAccess().getNameAssignment_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7d717722447063cff2d072a137197be7", "score": "0.5034702", "text": "public final void rule__ERoleName__Group_1_2__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:10918:1: ( ( ( rule__ERoleName__ThirdPartAssignment_1_2_1 ) ) )\n // InternalAnsibleDslParser.g:10919:1: ( ( rule__ERoleName__ThirdPartAssignment_1_2_1 ) )\n {\n // InternalAnsibleDslParser.g:10919:1: ( ( rule__ERoleName__ThirdPartAssignment_1_2_1 ) )\n // InternalAnsibleDslParser.g:10920:2: ( rule__ERoleName__ThirdPartAssignment_1_2_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getERoleNameAccess().getThirdPartAssignment_1_2_1()); \n }\n // InternalAnsibleDslParser.g:10921:2: ( rule__ERoleName__ThirdPartAssignment_1_2_1 )\n // InternalAnsibleDslParser.g:10921:3: rule__ERoleName__ThirdPartAssignment_1_2_1\n {\n pushFollow(FOLLOW_2);\n rule__ERoleName__ThirdPartAssignment_1_2_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getERoleNameAccess().getThirdPartAssignment_1_2_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d7d30587325b2b152cae5007712acc7f", "score": "0.50182945", "text": "public final void rule__Model__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReactiveXD.g:3660:1: ( ( ( rule__Model__TypeDeclarationAssignment_2 )* ) )\n // InternalReactiveXD.g:3661:1: ( ( rule__Model__TypeDeclarationAssignment_2 )* )\n {\n // InternalReactiveXD.g:3661:1: ( ( rule__Model__TypeDeclarationAssignment_2 )* )\n // InternalReactiveXD.g:3662:2: ( rule__Model__TypeDeclarationAssignment_2 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getModelAccess().getTypeDeclarationAssignment_2()); \n }\n // InternalReactiveXD.g:3663:2: ( rule__Model__TypeDeclarationAssignment_2 )*\n loop50:\n do {\n int alt50=2;\n int LA50_0 = input.LA(1);\n\n if ( (LA50_0==56||LA50_0==61) ) {\n alt50=1;\n }\n\n\n switch (alt50) {\n \tcase 1 :\n \t // InternalReactiveXD.g:3663:3: rule__Model__TypeDeclarationAssignment_2\n \t {\n \t pushFollow(FOLLOW_6);\n \t rule__Model__TypeDeclarationAssignment_2();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop50;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getModelAccess().getTypeDeclarationAssignment_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dc2608025a6417ff9b75c671497fe735", "score": "0.49514472", "text": "public final void rule__Feature__TypeAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:878:1: ( ( ( RULE_ID ) ) )\n // InternalBlackDog.g:879:2: ( ( RULE_ID ) )\n {\n // InternalBlackDog.g:879:2: ( ( RULE_ID ) )\n // InternalBlackDog.g:880:3: ( RULE_ID )\n {\n before(grammarAccess.getFeatureAccess().getTypeTypeCrossReference_3_0()); \n // InternalBlackDog.g:881:3: ( RULE_ID )\n // InternalBlackDog.g:882:4: RULE_ID\n {\n before(grammarAccess.getFeatureAccess().getTypeTypeIDTerminalRuleCall_3_0_1()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getFeatureAccess().getTypeTypeIDTerminalRuleCall_3_0_1()); \n\n }\n\n after(grammarAccess.getFeatureAccess().getTypeTypeCrossReference_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fc3eed124b39b879261a5408865909f0", "score": "0.49492282", "text": "public final void rule__EPREFIX_TYPE__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:5130:1: ( ( ( rule__EPREFIX_TYPE__TypeAssignment_1 ) ) )\n // InternalAnsibleDslParser.g:5131:1: ( ( rule__EPREFIX_TYPE__TypeAssignment_1 ) )\n {\n // InternalAnsibleDslParser.g:5131:1: ( ( rule__EPREFIX_TYPE__TypeAssignment_1 ) )\n // InternalAnsibleDslParser.g:5132:2: ( rule__EPREFIX_TYPE__TypeAssignment_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEPREFIX_TYPEAccess().getTypeAssignment_1()); \n }\n // InternalAnsibleDslParser.g:5133:2: ( rule__EPREFIX_TYPE__TypeAssignment_1 )\n // InternalAnsibleDslParser.g:5133:3: rule__EPREFIX_TYPE__TypeAssignment_1\n {\n pushFollow(FOLLOW_2);\n rule__EPREFIX_TYPE__TypeAssignment_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEPREFIX_TYPEAccess().getTypeAssignment_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "464f973e69203b53f62fd37a02eae559", "score": "0.49472463", "text": "public final void rule__Atrib__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:2959:1: ( ( ( rule__Atrib__TypeAssignment_2 ) ) )\r\n // InternalGo.g:2960:1: ( ( rule__Atrib__TypeAssignment_2 ) )\r\n {\r\n // InternalGo.g:2960:1: ( ( rule__Atrib__TypeAssignment_2 ) )\r\n // InternalGo.g:2961:2: ( rule__Atrib__TypeAssignment_2 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getAtribAccess().getTypeAssignment_2()); \r\n }\r\n // InternalGo.g:2962:2: ( rule__Atrib__TypeAssignment_2 )\r\n // InternalGo.g:2962:3: rule__Atrib__TypeAssignment_2\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Atrib__TypeAssignment_2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getAtribAccess().getTypeAssignment_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "083285d36aa59b65adf55de94cedb395", "score": "0.4914747", "text": "public final void rule__EPREFIX_TYPE__TypeAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:26129:1: ( ( ruleQUALIFIED_NAME ) )\n // InternalAnsibleDslParser.g:26130:2: ( ruleQUALIFIED_NAME )\n {\n // InternalAnsibleDslParser.g:26130:2: ( ruleQUALIFIED_NAME )\n // InternalAnsibleDslParser.g:26131:3: ruleQUALIFIED_NAME\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEPREFIX_TYPEAccess().getTypeQUALIFIED_NAMEParserRuleCall_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleQUALIFIED_NAME();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEPREFIX_TYPEAccess().getTypeQUALIFIED_NAMEParserRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "37e36634eff95a67b29162db76518a09", "score": "0.4908358", "text": "public final void rule__ERoleName__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:10838:1: ( ( ( rule__ERoleName__SecondPartAssignment_1_1 ) ) )\n // InternalAnsibleDslParser.g:10839:1: ( ( rule__ERoleName__SecondPartAssignment_1_1 ) )\n {\n // InternalAnsibleDslParser.g:10839:1: ( ( rule__ERoleName__SecondPartAssignment_1_1 ) )\n // InternalAnsibleDslParser.g:10840:2: ( rule__ERoleName__SecondPartAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getERoleNameAccess().getSecondPartAssignment_1_1()); \n }\n // InternalAnsibleDslParser.g:10841:2: ( rule__ERoleName__SecondPartAssignment_1_1 )\n // InternalAnsibleDslParser.g:10841:3: rule__ERoleName__SecondPartAssignment_1_1\n {\n pushFollow(FOLLOW_2);\n rule__ERoleName__SecondPartAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getERoleNameAccess().getSecondPartAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "90e2cbed946a6ac59fab80b0df89903b", "score": "0.48929107", "text": "public void visitClassDeclaration(GNode n) {\n supr = Object;\r\n visit(n);\r\n \r\n //if the super class has been defined make the subclass\r\n if (supr != null) {\r\n inherit.addClassdef((new InheritanceTree(n, supr)));\r\n } else {\r\n toTree.add(n);\r\n }\r\n \r\n }", "title": "" }, { "docid": "d278e6ce6ee3c43c445516910c3a7b0a", "score": "0.48869926", "text": "public final void rule__SubProgram__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:17515:1: ( ( ruleValidID ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:17516:1: ( ruleValidID )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:17516:1: ( ruleValidID )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:17517:1: ruleValidID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSubProgramAccess().getNameValidIDParserRuleCall_1_0()); \n }\n pushFollow(FOLLOW_ruleValidID_in_rule__SubProgram__NameAssignment_135193);\n ruleValidID();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSubProgramAccess().getNameValidIDParserRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "438f54bea8cdec758357f19e38cd354e", "score": "0.48790717", "text": "public final void rule__Decl__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:2553:1: ( ( ( rule__Decl__TypeAssignment_2 ) ) )\r\n // InternalGo.g:2554:1: ( ( rule__Decl__TypeAssignment_2 ) )\r\n {\r\n // InternalGo.g:2554:1: ( ( rule__Decl__TypeAssignment_2 ) )\r\n // InternalGo.g:2555:2: ( rule__Decl__TypeAssignment_2 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getDeclAccess().getTypeAssignment_2()); \r\n }\r\n // InternalGo.g:2556:2: ( rule__Decl__TypeAssignment_2 )\r\n // InternalGo.g:2556:3: rule__Decl__TypeAssignment_2\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Decl__TypeAssignment_2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getDeclAccess().getTypeAssignment_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "c74f2011dc4e11cece29c2f2d4e047b3", "score": "0.48738602", "text": "@Override\n public void visit(AssignmentStatement n) {\n if (getErrorStatus()) return;\n log.info(\"Entered \"+n.getClass().getSimpleName());\n try {\n n.f0.accept(this); // make sure the identifier has been defined\n if (getErrorStatus()) return;\n String lhsTypeString = globalType; // Get the type of the LHS\n\n n.f2.accept(this); // get the type of expression\n if (getErrorStatus()) return;\n\n log.info(\"Type of LHS: \"+lhsTypeString);\n log.info(\"Type of RHS: \"+globalType);\n\n // The type of the RHS is stored in globalType\n if (!lhsTypeString.equals(globalType)) {\n tryCasting(lhsTypeString, globalType);\n }\n\n setGlobalType(\"\");\n log.info(n.getClass().getSimpleName()+\" type checks.\");\n\n } catch (TypeCheckException e) {\n log.printStackTrace(e);\n setErrorStatus();\n }\n log.info(\"Left \"+n.getClass().getSimpleName());\n }", "title": "" }, { "docid": "62c6a267dc730e84246c437694d85c9f", "score": "0.48671007", "text": "public void setSuperclassName(String superclassName)\r\n\t{\r\n\t\tthis.superclassName = superclassName;\r\n\t}", "title": "" }, { "docid": "35581a027aa2de75d907baeb30e78e4c", "score": "0.48640582", "text": "public final void rule__Specification__NameAssignment_0_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14381:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14382:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14382:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14383:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getNameTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Specification__NameAssignment_0_228912); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getNameTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "822139b7491d79e52eeac58f4da488f7", "score": "0.48616856", "text": "public final void rule__Specification__NameAssignment_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14411:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14412:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14412:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14413:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getNameTIDENTIFIERTerminalRuleCall_1_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Specification__NameAssignment_1_228974); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getNameTIDENTIFIERTerminalRuleCall_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6933abaf37f5adbbd7f63441d8401b9d", "score": "0.48546684", "text": "public final void rule__Entidad__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPila.g:2473:1: ( ( RULE_ID ) )\r\n // InternalPila.g:2474:2: ( RULE_ID )\r\n {\r\n // InternalPila.g:2474:2: ( RULE_ID )\r\n // InternalPila.g:2475:3: RULE_ID\r\n {\r\n before(grammarAccess.getEntidadAccess().getNameIDTerminalRuleCall_1_0()); \r\n match(input,RULE_ID,FOLLOW_2); \r\n after(grammarAccess.getEntidadAccess().getNameIDTerminalRuleCall_1_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "68cefe428c7e5eae60a1295dada885f9", "score": "0.48494297", "text": "public final void rule__DataType__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:765:1: ( ( RULE_ID ) )\n // InternalBlackDog.g:766:2: ( RULE_ID )\n {\n // InternalBlackDog.g:766:2: ( RULE_ID )\n // InternalBlackDog.g:767:3: RULE_ID\n {\n before(grammarAccess.getDataTypeAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getDataTypeAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2206966eec5f17f616e1feea5bde8ab8", "score": "0.48441726", "text": "public final void rule__Specification__NameAssignment_2_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14456:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14457:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14457:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14458:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getNameTIDENTIFIERTerminalRuleCall_2_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Specification__NameAssignment_2_229067); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getNameTIDENTIFIERTerminalRuleCall_2_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a44361cf58e7af2596e4135272e5dab8", "score": "0.4819483", "text": "private void doRule2(SuffixNode parent, int splittingPos, int suffixStart){\n SuffixNode leaf = new SimpleNode (parent, suffixStart);\n \n parent.children.put(new Character(sequences.charAt(splittingPos)), leaf);\n //System.out.println(\"rule 2: \"+sequences.charAt(splittingPos)+\" from \"+getLabel(parent)+ \" to \"+getLabel(leaf));\n \n }", "title": "" }, { "docid": "2dbe17ae5d30d41bfb761e92259a4ce4", "score": "0.4819465", "text": "public final void ruleIdOrSuper() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:1482:2: ( ( ( rule__IdOrSuper__Alternatives ) ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:1483:1: ( ( rule__IdOrSuper__Alternatives ) )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:1483:1: ( ( rule__IdOrSuper__Alternatives ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:1484:1: ( rule__IdOrSuper__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getIdOrSuperAccess().getAlternatives()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:1485:1: ( rule__IdOrSuper__Alternatives )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:1485:2: rule__IdOrSuper__Alternatives\n {\n pushFollow(FOLLOW_rule__IdOrSuper__Alternatives_in_ruleIdOrSuper3107);\n rule__IdOrSuper__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getIdOrSuperAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e5dc75d84b6a64065b5dff6c2844d872", "score": "0.48150122", "text": "public final void rule__XRelationalExpression__Group_1_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:5233:1: ( ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:5234:1: ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:5234:1: ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:5235:1: ( rule__XRelationalExpression__TypeAssignment_1_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:5236:1: ( rule__XRelationalExpression__TypeAssignment_1_0_1 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:5236:2: rule__XRelationalExpression__TypeAssignment_1_0_1\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__TypeAssignment_1_0_1_in_rule__XRelationalExpression__Group_1_0__1__Impl11066);\n rule__XRelationalExpression__TypeAssignment_1_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6ddd6b227435fd25507ceccd4e387a7f", "score": "0.48091856", "text": "public final void rule__Model__TypeDeclarationAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReactiveXD.g:17240:1: ( ( ruleDecl ) )\n // InternalReactiveXD.g:17241:2: ( ruleDecl )\n {\n // InternalReactiveXD.g:17241:2: ( ruleDecl )\n // InternalReactiveXD.g:17242:3: ruleDecl\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getModelAccess().getTypeDeclarationDeclParserRuleCall_2_0()); \n }\n pushFollow(FOLLOW_2);\n ruleDecl();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getModelAccess().getTypeDeclarationDeclParserRuleCall_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8636c4efa458de93672330f51dfdf2b5", "score": "0.48086062", "text": "public final void entryRuleSuperClass() throws RecognitionException {\n try {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:286:1: ( ruleSuperClass EOF )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:287:1: ruleSuperClass EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSuperClassRule()); \n }\n pushFollow(FOLLOW_ruleSuperClass_in_entryRuleSuperClass548);\n ruleSuperClass();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSuperClassRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleSuperClass555); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "b3d81dfc5522d5de051b418c83379a90", "score": "0.48036402", "text": "@Override\n public String visit(AssignmentStatement n, Boolean argu) throws Exception {\n String varType = n.f0.accept(this, true);\n String exprType = n.f2.accept(this, null);\n\n // If identifier and expression types are equal, the assignment is valid\n if (varType.equals(exprType))\n {\n return varType;\n }\n\n // If identifier and expression types are not equal, then\n // identifier type can only by a superclass of expression type.\n if ( !VariableInfo.isPrimitiveType(varType) )\n {\n ClassInfo exprClass = this.classInfos.get(exprType);\n if ( exprClass != null && exprClass.hasSuperClass(varType))\n {\n return varType;\n }\n } \n\n throw new SemanticError(\"Line \" + n.f1.beginLine + \": Type mismatch: cannot convert from '\" + exprType + \"' to '\" + varType + \"'\"); \n }", "title": "" }, { "docid": "6484757afd2375fe59dcae217206b423", "score": "0.4797069", "text": "public final void rule__AttributableElement__NameAssignment_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14516:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14517:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14517:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14518:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAttributableElementAccess().getNameTIDENTIFIERTerminalRuleCall_1_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__AttributableElement__NameAssignment_1_229191); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAttributableElementAccess().getNameTIDENTIFIERTerminalRuleCall_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "05aa6dabef5d203e15129898fa9a4d1e", "score": "0.47956702", "text": "public final EObject rulesimple_type() throws RecognitionException {\n EObject current = null;\n\n EObject lv_type_0_0 = null;\n\n EObject lv_subrange_type_1_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalPascalParser.g:1936:2: ( ( ( (lv_type_0_0= ruletype_identifier ) ) | ( (lv_subrange_type_1_0= rulesubrange_type ) ) ) )\n // InternalPascalParser.g:1937:2: ( ( (lv_type_0_0= ruletype_identifier ) ) | ( (lv_subrange_type_1_0= rulesubrange_type ) ) )\n {\n // InternalPascalParser.g:1937:2: ( ( (lv_type_0_0= ruletype_identifier ) ) | ( (lv_subrange_type_1_0= rulesubrange_type ) ) )\n int alt20=2;\n switch ( input.LA(1) ) {\n case RULE_ID:\n {\n int LA20_1 = input.LA(2);\n\n if ( (LA20_1==RULE_DOTDOT) ) {\n alt20=2;\n }\n else if ( (LA20_1==EOF||LA20_1==Comma||LA20_1==Semicolon||LA20_1==RightSquareBracket) ) {\n alt20=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 20, 1, input);\n\n throw nvae;\n }\n }\n break;\n case Boolean:\n case Integer:\n case String:\n {\n alt20=1;\n }\n break;\n case False:\n case True:\n case RULE_PLUS:\n case RULE_MINUS:\n case RULE_NUM_INT:\n case RULE_STRING:\n {\n alt20=2;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 20, 0, input);\n\n throw nvae;\n }\n\n switch (alt20) {\n case 1 :\n // InternalPascalParser.g:1938:3: ( (lv_type_0_0= ruletype_identifier ) )\n {\n // InternalPascalParser.g:1938:3: ( (lv_type_0_0= ruletype_identifier ) )\n // InternalPascalParser.g:1939:4: (lv_type_0_0= ruletype_identifier )\n {\n // InternalPascalParser.g:1939:4: (lv_type_0_0= ruletype_identifier )\n // InternalPascalParser.g:1940:5: lv_type_0_0= ruletype_identifier\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getSimple_typeAccess().getTypeType_identifierParserRuleCall_0_0());\n \t\t\t\t\n pushFollow(FOLLOW_2);\n lv_type_0_0=ruletype_identifier();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getSimple_typeRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"type\",\n \t\t\t\t\t\tlv_type_0_0,\n \t\t\t\t\t\t\"org.xtext.compiler.pascal.Pascal.type_identifier\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalPascalParser.g:1958:3: ( (lv_subrange_type_1_0= rulesubrange_type ) )\n {\n // InternalPascalParser.g:1958:3: ( (lv_subrange_type_1_0= rulesubrange_type ) )\n // InternalPascalParser.g:1959:4: (lv_subrange_type_1_0= rulesubrange_type )\n {\n // InternalPascalParser.g:1959:4: (lv_subrange_type_1_0= rulesubrange_type )\n // InternalPascalParser.g:1960:5: lv_subrange_type_1_0= rulesubrange_type\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getSimple_typeAccess().getSubrange_typeSubrange_typeParserRuleCall_1_0());\n \t\t\t\t\n pushFollow(FOLLOW_2);\n lv_subrange_type_1_0=rulesubrange_type();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getSimple_typeRule());\n \t\t\t\t\t}\n \t\t\t\t\tadd(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"subrange_type\",\n \t\t\t\t\t\tlv_subrange_type_1_0,\n \t\t\t\t\t\t\"org.xtext.compiler.pascal.Pascal.subrange_type\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "712d00c1c52b7d8b8c067db74211bc16", "score": "0.47917554", "text": "public void setSuperType(ObjectType newSuperType) {\n superType = newSuperType;\n }", "title": "" }, { "docid": "6f68f4410d248ea98df9853e33c0d1aa", "score": "0.47900122", "text": "public final void entryRuleIdOrSuper() throws RecognitionException {\n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:1470:1: ( ruleIdOrSuper EOF )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:1471:1: ruleIdOrSuper EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getIdOrSuperRule()); \n }\n pushFollow(FOLLOW_ruleIdOrSuper_in_entryRuleIdOrSuper3074);\n ruleIdOrSuper();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getIdOrSuperRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleIdOrSuper3081); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "8d619104c439d1bffd046611c34a062b", "score": "0.47777292", "text": "public final void rule__ImageSection__NameAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalContainer.g:8821:1: ( ( RULE_ID ) )\n // InternalContainer.g:8822:2: ( RULE_ID )\n {\n // InternalContainer.g:8822:2: ( RULE_ID )\n // InternalContainer.g:8823:3: RULE_ID\n {\n before(grammarAccess.getImageSectionAccess().getNameIDTerminalRuleCall_2_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getImageSectionAccess().getNameIDTerminalRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "45ce100aaff8ee737d41055b9341bf30", "score": "0.47758242", "text": "public final void rule__FeatureConfiguration__TypeAssignment_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12779:1: ( ( ( RULE_ID ) ) )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12780:1: ( ( RULE_ID ) )\r\n {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12780:1: ( ( RULE_ID ) )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12781:1: ( RULE_ID )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getFeatureConfigurationAccess().getTypeFeatureTypeCrossReference_2_0()); \r\n }\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12782:1: ( RULE_ID )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12783:1: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getFeatureConfigurationAccess().getTypeFeatureTypeIDTerminalRuleCall_2_0_1()); \r\n }\r\n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__FeatureConfiguration__TypeAssignment_225638); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getFeatureConfigurationAccess().getTypeFeatureTypeIDTerminalRuleCall_2_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getFeatureConfigurationAccess().getTypeFeatureTypeCrossReference_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "194e612913df8e0e29a9f639b997271c", "score": "0.47733405", "text": "public final void rule__Atributo__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPila.g:2503:1: ( ( RULE_ID ) )\r\n // InternalPila.g:2504:2: ( RULE_ID )\r\n {\r\n // InternalPila.g:2504:2: ( RULE_ID )\r\n // InternalPila.g:2505:3: RULE_ID\r\n {\r\n before(grammarAccess.getAtributoAccess().getNameIDTerminalRuleCall_1_0()); \r\n match(input,RULE_ID,FOLLOW_2); \r\n after(grammarAccess.getAtributoAccess().getNameIDTerminalRuleCall_1_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "bc13b872be03ad028fbdb5027a177ea3", "score": "0.47577217", "text": "public Concept getSuperTypeConcept();", "title": "" }, { "docid": "9878063c358e2609a14229e88948bf18", "score": "0.47331518", "text": "public final void rule__Feature__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:680:1: ( ( ( rule__Feature__TypeAssignment_3 ) ) )\n // InternalBlackDog.g:681:1: ( ( rule__Feature__TypeAssignment_3 ) )\n {\n // InternalBlackDog.g:681:1: ( ( rule__Feature__TypeAssignment_3 ) )\n // InternalBlackDog.g:682:2: ( rule__Feature__TypeAssignment_3 )\n {\n before(grammarAccess.getFeatureAccess().getTypeAssignment_3()); \n // InternalBlackDog.g:683:2: ( rule__Feature__TypeAssignment_3 )\n // InternalBlackDog.g:683:3: rule__Feature__TypeAssignment_3\n {\n pushFollow(FOLLOW_2);\n rule__Feature__TypeAssignment_3();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getFeatureAccess().getTypeAssignment_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6352bbaef121ed8f84c0b0dc4131d488", "score": "0.4730741", "text": "public final void rule__AttributableElement__NameAssignment_2_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14546:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14547:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14547:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14548:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAttributableElementAccess().getNameTIDENTIFIERTerminalRuleCall_2_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__AttributableElement__NameAssignment_2_229253); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAttributableElementAccess().getNameTIDENTIFIERTerminalRuleCall_2_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0482ddf03457d260dd79cce2c828f418", "score": "0.4730161", "text": "public final void rule__Feature__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:863:1: ( ( RULE_ID ) )\n // InternalBlackDog.g:864:2: ( RULE_ID )\n {\n // InternalBlackDog.g:864:2: ( RULE_ID )\n // InternalBlackDog.g:865:3: RULE_ID\n {\n before(grammarAccess.getFeatureAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getFeatureAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e47408acd563507fa3415df908a1c2fb", "score": "0.46926448", "text": "public final void rule__DataType__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:8299:1: ( ( RULE_ID ) )\r\n // InternalGo.g:8300:2: ( RULE_ID )\r\n {\r\n // InternalGo.g:8300:2: ( RULE_ID )\r\n // InternalGo.g:8301:3: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getDataTypeAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getDataTypeAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "8ad1e38f6ec8a091b9e69c1e313991e3", "score": "0.46899724", "text": "public final void rule__Atrib__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:7376:1: ( ( RULE_ID ) )\r\n // InternalGo.g:7377:2: ( RULE_ID )\r\n {\r\n // InternalGo.g:7377:2: ( RULE_ID )\r\n // InternalGo.g:7378:3: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getAtribAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getAtribAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e9e06f6ecbebb9b94b3aee85d5bb66e3", "score": "0.46887228", "text": "protected boolean subtypeDefinition$Rule() {\n Node lastNode = currentNode;\n int startIndex;\n boolean match;\n if (subtypeDefinition$RuleMemoStart == index) {\n if (subtypeDefinition$RuleMemoStart <= subtypeDefinition$RuleMemoEnd) {\n index = subtypeDefinition$RuleMemoEnd;\n if (! currentRuleIsAtomic) {\n currentNode = new NodeImpl(OracleScriptRuleType.SUBTYPE_DEFINITION, subtypeDefinition$RuleMemoStart, subtypeDefinition$RuleMemoEnd, true, false);\n lastNode.setSibling(currentNode);\n if (subtypeDefinition$RuleMemoFirstNode != null) {\n currentNode.setFirstChild(subtypeDefinition$RuleMemoFirstNode.getFirstChild());\n }\n }\n return true;\n } else {\n return false;\n }\n }\n startIndex = index;\n // (\"subtype\" TestNoAlpha OptionalSpacing PlSqlAnyIdentifier \"is\" TestNoAlpha OptionalSpacing TypeSpec PlSqlExpressionList? Nullable?)\n // \"subtype\"\n match = ignoreCaseStringMatcher(\"subtype\", 7);\n if (match) {\n // TestNoAlpha\n match = testNoAlpha$Rule();\n if (match) {\n // OptionalSpacing\n match = optionalSpacing$Rule();\n if (match) {\n // PlSqlAnyIdentifier\n match = plSqlAnyIdentifier$Rule();\n if (match) {\n // \"is\"\n match = ignoreCaseStringMatcher(\"is\", 2);\n if (match) {\n // TestNoAlpha\n match = testNoAlpha$Rule();\n if (match) {\n // OptionalSpacing\n match = optionalSpacing$Rule();\n if (match) {\n // TypeSpec\n match = typeSpec$Rule();\n if (match) {\n // PlSqlExpressionList?\n Node lastNode_1 = currentNode;\n int lastIndex_1 = index;\n // PlSqlExpressionList\n match = plSqlExpressionList$Rule();\n if (! match) {\n lastNode_1.setSibling(null);\n currentNode = lastNode_1;\n index = lastIndex_1;\n match = true;\n }\n if (match) {\n // Nullable?\n Node lastNode_2 = currentNode;\n int lastIndex_2 = index;\n // Nullable\n match = nullable$Rule();\n if (! match) {\n lastNode_2.setSibling(null);\n currentNode = lastNode_2;\n index = lastIndex_2;\n match = true;\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n if (match) {\n subtypeDefinition$RuleMemoStart = startIndex;\n subtypeDefinition$RuleMemoEnd = index;\n if (currentRuleIsAtomic) {\n subtypeDefinition$RuleMemoFirstNode = null;\n } else {\n currentNode = new NodeImpl(OracleScriptRuleType.SUBTYPE_DEFINITION, startIndex, index, true, false);\n currentNode.setFirstChild(lastNode.getSibling());\n lastNode.setSibling(currentNode);\n subtypeDefinition$RuleMemoFirstNode = currentNode;\n }\n return true;\n } else {\n subtypeDefinition$RuleMemoStart = startIndex;\n subtypeDefinition$RuleMemoEnd = -1;\n subtypeDefinition$RuleMemoFirstNode = null;\n index = startIndex;\n lastNode.setSibling(null);\n currentNode = lastNode;\n return false;\n }\n }", "title": "" }, { "docid": "88145bd3988b3cb102449a969a8fe047", "score": "0.46799642", "text": "public final void rule__ClassType__TypeAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFuncDsl.g:1182:1: ( ( ( RULE_ID ) ) )\n // InternalFuncDsl.g:1183:2: ( ( RULE_ID ) )\n {\n // InternalFuncDsl.g:1183:2: ( ( RULE_ID ) )\n // InternalFuncDsl.g:1184:3: ( RULE_ID )\n {\n before(grammarAccess.getClassTypeAccess().getTypeClazzCrossReference_0()); \n // InternalFuncDsl.g:1185:3: ( RULE_ID )\n // InternalFuncDsl.g:1186:4: RULE_ID\n {\n before(grammarAccess.getClassTypeAccess().getTypeClazzIDTerminalRuleCall_0_1()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getClassTypeAccess().getTypeClazzIDTerminalRuleCall_0_1()); \n\n }\n\n after(grammarAccess.getClassTypeAccess().getTypeClazzCrossReference_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7d5754cb81669b00c418a2e1f104dcab", "score": "0.46575966", "text": "private static Statement parseAssignment(Parser parent, Parser first, Parser second) {\n Statement firstS = first.parseExpression();\n Statement secondS = second.parseExpression();\n return new Assign(firstS, secondS, first.absoluteStart(), second.absoluteStop());\n }", "title": "" }, { "docid": "4682640e44a7ebf5bbeca7cf2e9b2ead", "score": "0.46548757", "text": "public final void rule__ClassDeclaration__Group_2_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4006:1: ( ( ( rule__ClassDeclaration__NameAssignment_2_2_0 ) ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4007:1: ( ( rule__ClassDeclaration__NameAssignment_2_2_0 ) )\n {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4007:1: ( ( rule__ClassDeclaration__NameAssignment_2_2_0 ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4008:1: ( rule__ClassDeclaration__NameAssignment_2_2_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getClassDeclarationAccess().getNameAssignment_2_2_0()); \n }\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4009:1: ( rule__ClassDeclaration__NameAssignment_2_2_0 )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4009:2: rule__ClassDeclaration__NameAssignment_2_2_0\n {\n pushFollow(FOLLOW_rule__ClassDeclaration__NameAssignment_2_2_0_in_rule__ClassDeclaration__Group_2_2__0__Impl8661);\n rule__ClassDeclaration__NameAssignment_2_2_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getClassDeclarationAccess().getNameAssignment_2_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "47a68c52ebbcfcb6a8591059027888b3", "score": "0.4642324", "text": "public final void rule__Decl__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:7181:1: ( ( RULE_ID ) )\r\n // InternalGo.g:7182:2: ( RULE_ID )\r\n {\r\n // InternalGo.g:7182:2: ( RULE_ID )\r\n // InternalGo.g:7183:3: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getDeclAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getDeclAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2b5730d961f4463e130748ff02102b36", "score": "0.4638389", "text": "public void setSupertypeEntity(java.lang.String supertypeEntity)\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(SUPERTYPEENTITY$104);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SUPERTYPEENTITY$104);\r\n }\r\n target.setStringValue(supertypeEntity);\r\n }\r\n }", "title": "" }, { "docid": "4511fba6fc4807ec8c9142de989e2261", "score": "0.46373296", "text": "public final void rule__XRelationalExpression__Group_1_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:4542:1: ( ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) ) )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:4543:1: ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) )\r\n {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:4543:1: ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:4544:1: ( rule__XRelationalExpression__TypeAssignment_1_0_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); \r\n }\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:4545:1: ( rule__XRelationalExpression__TypeAssignment_1_0_1 )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:4545:2: rule__XRelationalExpression__TypeAssignment_1_0_1\r\n {\r\n pushFollow(FOLLOW_rule__XRelationalExpression__TypeAssignment_1_0_1_in_rule__XRelationalExpression__Group_1_0__1__Impl9456);\r\n rule__XRelationalExpression__TypeAssignment_1_0_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "8c4124f1d5314323820c23ad3071d695", "score": "0.46310556", "text": "public final void rule__Type__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:1761:1: ( ( ( rule__Type__ClassNameAssignment_3 ) ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:1762:1: ( ( rule__Type__ClassNameAssignment_3 ) )\n {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:1762:1: ( ( rule__Type__ClassNameAssignment_3 ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:1763:1: ( rule__Type__ClassNameAssignment_3 )\n {\n before(grammarAccess.getTypeAccess().getClassNameAssignment_3()); \n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:1764:1: ( rule__Type__ClassNameAssignment_3 )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:1764:2: rule__Type__ClassNameAssignment_3\n {\n pushFollow(FOLLOW_rule__Type__ClassNameAssignment_3_in_rule__Type__Group__3__Impl3721);\n rule__Type__ClassNameAssignment_3();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getTypeAccess().getClassNameAssignment_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "94b78785663f7a638eac7ec75f1e7f35", "score": "0.4622126", "text": "public final void rule__Variable__NameAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSATL.g:1393:1: ( ( RULE_STRING ) )\n // InternalSATL.g:1394:2: ( RULE_STRING )\n {\n // InternalSATL.g:1394:2: ( RULE_STRING )\n // InternalSATL.g:1395:3: RULE_STRING\n {\n before(grammarAccess.getVariableAccess().getNameSTRINGTerminalRuleCall_2_0()); \n match(input,RULE_STRING,FOLLOW_2); \n after(grammarAccess.getVariableAccess().getNameSTRINGTerminalRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6cb61d38682f272cb9ba7df8493f38d5", "score": "0.46184382", "text": "public final void rule__XCasePart__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:10553:1: ( ( ( rule__XCasePart__TypeGuardAssignment_1 )? ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:10554:1: ( ( rule__XCasePart__TypeGuardAssignment_1 )? )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:10554:1: ( ( rule__XCasePart__TypeGuardAssignment_1 )? )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:10555:1: ( rule__XCasePart__TypeGuardAssignment_1 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXCasePartAccess().getTypeGuardAssignment_1()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:10556:1: ( rule__XCasePart__TypeGuardAssignment_1 )?\n int alt79=2;\n int LA79_0 = input.LA(1);\n\n if ( (LA79_0==RULE_ID||LA79_0==31||LA79_0==65) ) {\n alt79=1;\n }\n switch (alt79) {\n case 1 :\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:10556:2: rule__XCasePart__TypeGuardAssignment_1\n {\n pushFollow(FOLLOW_rule__XCasePart__TypeGuardAssignment_1_in_rule__XCasePart__Group__1__Impl21509);\n rule__XCasePart__TypeGuardAssignment_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXCasePartAccess().getTypeGuardAssignment_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e4d130ce023b8f8cf1b76eda4b486a6a", "score": "0.46170098", "text": "public final void rule__XImportDeclaration__Group_1_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:17368:1: ( ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:17369:1: ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:17369:1: ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:17370:1: ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_0_2()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:17371:1: ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:17371:2: rule__XImportDeclaration__ImportedTypeAssignment_1_0_2\n {\n pushFollow(FOLLOW_rule__XImportDeclaration__ImportedTypeAssignment_1_0_2_in_rule__XImportDeclaration__Group_1_0__2__Impl34909);\n rule__XImportDeclaration__ImportedTypeAssignment_1_0_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_0_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "659abb8e2058657b637d1bc5e0b8ac5e", "score": "0.4616583", "text": "public final void entryRuleIdOrSuper() throws RecognitionException {\r\n try {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:1274:1: ( ruleIdOrSuper EOF )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:1275:1: ruleIdOrSuper EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getIdOrSuperRule()); \r\n }\r\n pushFollow(FOLLOW_ruleIdOrSuper_in_entryRuleIdOrSuper2654);\r\n ruleIdOrSuper();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getIdOrSuperRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleIdOrSuper2661); 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 }", "title": "" }, { "docid": "3e71be94e62df3a51793426c619d867b", "score": "0.4616523", "text": "public void xsetSupertypeEntity(org.apache.xmlbeans.XmlNMTOKEN supertypeEntity)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNMTOKEN target = null;\r\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(SUPERTYPEENTITY$104);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(SUPERTYPEENTITY$104);\r\n }\r\n target.set(supertypeEntity);\r\n }\r\n }", "title": "" }, { "docid": "08838a79577b57345002bb6352c0cbb6", "score": "0.4616265", "text": "public final void rule__XVariableDeclaration__Group_2_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:12425:1: ( ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:12426:1: ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:12426:1: ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:12427:1: ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:12428:1: ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:12428:2: rule__XVariableDeclaration__TypeAssignment_2_0_0_0\n {\n pushFollow(FOLLOW_rule__XVariableDeclaration__TypeAssignment_2_0_0_0_in_rule__XVariableDeclaration__Group_2_0_0__0__Impl25182);\n rule__XVariableDeclaration__TypeAssignment_2_0_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5daf59ed3c99d97253ac11a69c533df6", "score": "0.46092626", "text": "public final void rule__Declaration__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2293:1: ( ( ( rule__Declaration__ExprAssignment_2 ) ) )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2294:1: ( ( rule__Declaration__ExprAssignment_2 ) )\r\n {\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2294:1: ( ( rule__Declaration__ExprAssignment_2 ) )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2295:1: ( rule__Declaration__ExprAssignment_2 )\r\n {\r\n before(grammarAccess.getDeclarationAccess().getExprAssignment_2()); \r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2296:1: ( rule__Declaration__ExprAssignment_2 )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2296:2: rule__Declaration__ExprAssignment_2\r\n {\r\n pushFollow(FOLLOW_rule__Declaration__ExprAssignment_2_in_rule__Declaration__Group__2__Impl4750);\r\n rule__Declaration__ExprAssignment_2();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getDeclarationAccess().getExprAssignment_2()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3cde316ccdd564310fcb86c571861aa9", "score": "0.46037745", "text": "public final void rule__EHandler__NameAssignment_3_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:27119:1: ( ( RULE_STRING ) )\n // InternalAnsibleDslParser.g:27120:2: ( RULE_STRING )\n {\n // InternalAnsibleDslParser.g:27120:2: ( RULE_STRING )\n // InternalAnsibleDslParser.g:27121:3: RULE_STRING\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEHandlerAccess().getNameSTRINGTerminalRuleCall_3_0_1_0()); \n }\n match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEHandlerAccess().getNameSTRINGTerminalRuleCall_3_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "32ceec8e15623f2bc1d8aa8401fd87bb", "score": "0.45943236", "text": "public final EObject ruletype_definition() throws RecognitionException {\n EObject current = null;\n\n Token lv_name_0_0=null;\n Token this_EQUAL_1=null;\n EObject lv_type_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalPascalParser.g:727:2: ( ( ( (lv_name_0_0= RULE_ID ) ) this_EQUAL_1= RULE_EQUAL ( (lv_type_2_0= ruletype ) ) ) )\n // InternalPascalParser.g:728:2: ( ( (lv_name_0_0= RULE_ID ) ) this_EQUAL_1= RULE_EQUAL ( (lv_type_2_0= ruletype ) ) )\n {\n // InternalPascalParser.g:728:2: ( ( (lv_name_0_0= RULE_ID ) ) this_EQUAL_1= RULE_EQUAL ( (lv_type_2_0= ruletype ) ) )\n // InternalPascalParser.g:729:3: ( (lv_name_0_0= RULE_ID ) ) this_EQUAL_1= RULE_EQUAL ( (lv_type_2_0= ruletype ) )\n {\n // InternalPascalParser.g:729:3: ( (lv_name_0_0= RULE_ID ) )\n // InternalPascalParser.g:730:4: (lv_name_0_0= RULE_ID )\n {\n // InternalPascalParser.g:730:4: (lv_name_0_0= RULE_ID )\n // InternalPascalParser.g:731:5: lv_name_0_0= RULE_ID\n {\n lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_9); \n\n \t\t\t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getType_definitionAccess().getNameIDTerminalRuleCall_0_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getType_definitionRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_0_0,\n \t\t\t\t\t\t\"org.xtext.compiler.pascal.Pascal.ID\");\n \t\t\t\t\n\n }\n\n\n }\n\n this_EQUAL_1=(Token)match(input,RULE_EQUAL,FOLLOW_12); \n\n \t\t\tnewLeafNode(this_EQUAL_1, grammarAccess.getType_definitionAccess().getEQUALTerminalRuleCall_1());\n \t\t\n // InternalPascalParser.g:751:3: ( (lv_type_2_0= ruletype ) )\n // InternalPascalParser.g:752:4: (lv_type_2_0= ruletype )\n {\n // InternalPascalParser.g:752:4: (lv_type_2_0= ruletype )\n // InternalPascalParser.g:753:5: lv_type_2_0= ruletype\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getType_definitionAccess().getTypeTypeParserRuleCall_2_0());\n \t\t\t\t\n pushFollow(FOLLOW_2);\n lv_type_2_0=ruletype();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getType_definitionRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"type\",\n \t\t\t\t\t\tlv_type_2_0,\n \t\t\t\t\t\t\"org.xtext.compiler.pascal.Pascal.type\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "adcb4986aca9cc601ab921ba98df0ede", "score": "0.4592518", "text": "public final void rule__ESpecialVariable__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:19221:1: ( ( ( rule__ESpecialVariable__NameAssignment_2 ) ) )\n // InternalAnsibleDslParser.g:19222:1: ( ( rule__ESpecialVariable__NameAssignment_2 ) )\n {\n // InternalAnsibleDslParser.g:19222:1: ( ( rule__ESpecialVariable__NameAssignment_2 ) )\n // InternalAnsibleDslParser.g:19223:2: ( rule__ESpecialVariable__NameAssignment_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getESpecialVariableAccess().getNameAssignment_2()); \n }\n // InternalAnsibleDslParser.g:19224:2: ( rule__ESpecialVariable__NameAssignment_2 )\n // InternalAnsibleDslParser.g:19224:3: rule__ESpecialVariable__NameAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__ESpecialVariable__NameAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getESpecialVariableAccess().getNameAssignment_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5137b25ec6c7af2a8805e6739deac1ab", "score": "0.45859382", "text": "public final void rule__Expr__Group_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2447:1: ( ( ( rule__Expr__TermAssignment_1_1 ) ) )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2448:1: ( ( rule__Expr__TermAssignment_1_1 ) )\r\n {\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2448:1: ( ( rule__Expr__TermAssignment_1_1 ) )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2449:1: ( rule__Expr__TermAssignment_1_1 )\r\n {\r\n before(grammarAccess.getExprAccess().getTermAssignment_1_1()); \r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2450:1: ( rule__Expr__TermAssignment_1_1 )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2450:2: rule__Expr__TermAssignment_1_1\r\n {\r\n pushFollow(FOLLOW_rule__Expr__TermAssignment_1_1_in_rule__Expr__Group_1__1__Impl5056);\r\n rule__Expr__TermAssignment_1_1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getExprAccess().getTermAssignment_1_1()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "80b897355f25ce23541a0eee171bf178", "score": "0.45849216", "text": "public final void rule__AttributableNodeOrProcedure__NameAssignment_0_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14291:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14292:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14292:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14293:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAttributableNodeOrProcedureAccess().getNameTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__AttributableNodeOrProcedure__NameAssignment_0_228726); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAttributableNodeOrProcedureAccess().getNameTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9032149fb296f5b8ac37c7c8cf20d9b9", "score": "0.45778254", "text": "public void setSuperClassName(String superClassName) {\n this.superClassName = superClassName;\n }", "title": "" }, { "docid": "62f216f9881ae4a6480f59761cabfbe7", "score": "0.4561689", "text": "public final void rule__ClassDeclaration__Group_2_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:3943:1: ( ( ( rule__ClassDeclaration__ExtendAssignment_2_1_1 ) ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:3944:1: ( ( rule__ClassDeclaration__ExtendAssignment_2_1_1 ) )\n {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:3944:1: ( ( rule__ClassDeclaration__ExtendAssignment_2_1_1 ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:3945:1: ( rule__ClassDeclaration__ExtendAssignment_2_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getClassDeclarationAccess().getExtendAssignment_2_1_1()); \n }\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:3946:1: ( rule__ClassDeclaration__ExtendAssignment_2_1_1 )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:3946:2: rule__ClassDeclaration__ExtendAssignment_2_1_1\n {\n pushFollow(FOLLOW_rule__ClassDeclaration__ExtendAssignment_2_1_1_in_rule__ClassDeclaration__Group_2_1__1__Impl8537);\n rule__ClassDeclaration__ExtendAssignment_2_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getClassDeclarationAccess().getExtendAssignment_2_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "36b9de69412d5c709e00a23ede3db21a", "score": "0.45609197", "text": "public final void rule__XFeatureCall__FeatureAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:19011:1: ( ( ( ruleIdOrSuper ) ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:19012:1: ( ( ruleIdOrSuper ) )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:19012:1: ( ( ruleIdOrSuper ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:19013:1: ( ruleIdOrSuper )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:19014:1: ( ruleIdOrSuper )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:19015:1: ruleIdOrSuper\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementIdOrSuperParserRuleCall_2_0_1()); \n }\n pushFollow(FOLLOW_ruleIdOrSuper_in_rule__XFeatureCall__FeatureAssignment_238257);\n ruleIdOrSuper();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementIdOrSuperParserRuleCall_2_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c9c2ee2243549e291b82c12c5358b088", "score": "0.45548686", "text": "public final void rule__ProgramElement__NamesAssignment_0_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14186:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14187:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14187:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14188:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getProgramElementAccess().getNamesTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__ProgramElement__NamesAssignment_0_228509); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getProgramElementAccess().getNamesTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "86791946df7d2a45fb4ab436fd0ada61", "score": "0.45410627", "text": "public final void rule__Model__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.qdsl.ui/src-gen/org/xtext/example/qdsl/ui/contentassist/antlr/internal/InternalQDsl.g:848:1: ( ( RULE_ID ) )\n // ../org.xtext.example.qdsl.ui/src-gen/org/xtext/example/qdsl/ui/contentassist/antlr/internal/InternalQDsl.g:849:1: ( RULE_ID )\n {\n // ../org.xtext.example.qdsl.ui/src-gen/org/xtext/example/qdsl/ui/contentassist/antlr/internal/InternalQDsl.g:849:1: ( RULE_ID )\n // ../org.xtext.example.qdsl.ui/src-gen/org/xtext/example/qdsl/ui/contentassist/antlr/internal/InternalQDsl.g:850:1: RULE_ID\n {\n before(grammarAccess.getModelAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__Model__NameAssignment_11636); \n after(grammarAccess.getModelAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6d95fe54c5742281a5d113b366a5abfe", "score": "0.45405006", "text": "public final void rule__SuperClass__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:2031:1: ( ( ruleIdRef ) | ( ruleProperty ) )\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0==RULE_IDENTIFIER) ) {\n int LA5_1 = input.LA(2);\n\n if ( (LA5_1==EOF||LA5_1==RULE_TERMINATOR||(LA5_1>=RULE_INDENT && LA5_1<=RULE_OUTDENT)||LA5_1==RULE_RPAREN) ) {\n alt5=1;\n }\n else if ( ((LA5_1>=RULE_DOT && LA5_1<=RULE_DOUBLE_COLON)||LA5_1==RULE_INDEX_START) ) {\n alt5=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 1, input);\n\n throw nvae;\n }\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 0, input);\n\n throw nvae;\n }\n switch (alt5) {\n case 1 :\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:2032:1: ( ruleIdRef )\n {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:2032:1: ( ruleIdRef )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:2033:1: ruleIdRef\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSuperClassAccess().getIdRefParserRuleCall_0()); \n }\n pushFollow(FOLLOW_ruleIdRef_in_rule__SuperClass__Alternatives4314);\n ruleIdRef();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSuperClassAccess().getIdRefParserRuleCall_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:2038:6: ( ruleProperty )\n {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:2038:6: ( ruleProperty )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:2039:1: ruleProperty\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSuperClassAccess().getPropertyParserRuleCall_1()); \n }\n pushFollow(FOLLOW_ruleProperty_in_rule__SuperClass__Alternatives4331);\n ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSuperClassAccess().getPropertyParserRuleCall_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ce65cda40c96d25ad0fb7e7a2f46ecfc", "score": "0.45397547", "text": "public final void rule__Subtration__Group_1__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:5638:1: ( ( ( rule__Subtration__RightAssignment_1_2 ) ) )\r\n // InternalGo.g:5639:1: ( ( rule__Subtration__RightAssignment_1_2 ) )\r\n {\r\n // InternalGo.g:5639:1: ( ( rule__Subtration__RightAssignment_1_2 ) )\r\n // InternalGo.g:5640:2: ( rule__Subtration__RightAssignment_1_2 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getSubtrationAccess().getRightAssignment_1_2()); \r\n }\r\n // InternalGo.g:5641:2: ( rule__Subtration__RightAssignment_1_2 )\r\n // InternalGo.g:5641:3: rule__Subtration__RightAssignment_1_2\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Subtration__RightAssignment_1_2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getSubtrationAccess().getRightAssignment_1_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3c42717808c0b2e1f2caaf94bb5d9736", "score": "0.45326862", "text": "public final void rule__Params__Group_2__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:4011:1: ( ( ( rule__Params__TypeAssignment_2_2 )? ) )\r\n // InternalGo.g:4012:1: ( ( rule__Params__TypeAssignment_2_2 )? )\r\n {\r\n // InternalGo.g:4012:1: ( ( rule__Params__TypeAssignment_2_2 )? )\r\n // InternalGo.g:4013:2: ( rule__Params__TypeAssignment_2_2 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getParamsAccess().getTypeAssignment_2_2()); \r\n }\r\n // InternalGo.g:4014:2: ( rule__Params__TypeAssignment_2_2 )?\r\n int alt41=2;\r\n int LA41_0 = input.LA(1);\r\n\r\n if ( (LA41_0==45||(LA41_0>=55 && LA41_0<=61)) ) {\r\n alt41=1;\r\n }\r\n switch (alt41) {\r\n case 1 :\r\n // InternalGo.g:4014:3: rule__Params__TypeAssignment_2_2\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Params__TypeAssignment_2_2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getParamsAccess().getTypeAssignment_2_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d8f46f6ff0d2f58d7c43a9e5dcafb76d", "score": "0.45307302", "text": "protected final void createTypeDeclaration(final ICompilationUnit extractedWorkingCopy, final IType superType, final AbstractTypeDeclaration declaringDeclaration, final String comment, final StringBuffer buffer, final RefactoringStatus status, final IProgressMonitor monitor) throws CoreException {\n Assert.isNotNull(extractedWorkingCopy);\n Assert.isNotNull(declaringDeclaration);\n Assert.isNotNull(buffer);\n Assert.isNotNull(status);\n Assert.isNotNull(monitor);\n try {\n //$NON-NLS-1$\n monitor.beginTask(\"\", 1);\n monitor.setTaskName(RefactoringCoreMessages.ExtractSupertypeProcessor_preparing);\n final IJavaProject project = extractedWorkingCopy.getJavaProject();\n final String delimiter = StubUtility.getLineDelimiterUsed(project);\n if (//$NON-NLS-1$\n comment != null && !\"\".equals(comment)) {\n buffer.append(comment);\n buffer.append(delimiter);\n }\n buffer.append(JdtFlags.VISIBILITY_STRING_PUBLIC);\n if (superType != null && Flags.isAbstract(superType.getFlags())) {\n buffer.append(' ');\n //$NON-NLS-1$\n buffer.append(//$NON-NLS-1$\n \"abstract \");\n }\n buffer.append(' ');\n //$NON-NLS-1$\n buffer.append(\"class \");\n buffer.append(fTypeName);\n if (//$NON-NLS-1$\n superType != null && !\"java.lang.Object\".equals(superType.getFullyQualifiedName())) {\n buffer.append(' ');\n if (superType.isInterface())\n //$NON-NLS-1$\n buffer.append(//$NON-NLS-1$\n \"implements \");\n else\n //$NON-NLS-1$\n buffer.append(//$NON-NLS-1$\n \"extends \");\n buffer.append(superType.getElementName());\n }\n //$NON-NLS-1$\n buffer.append(\" {\");\n buffer.append(delimiter);\n buffer.append(delimiter);\n buffer.append('}');\n final String string = buffer.toString();\n extractedWorkingCopy.getBuffer().setContents(string);\n final IDocument document = new Document(string);\n final CompilationUnitRewrite targetRewrite = new CompilationUnitRewrite(fOwner, extractedWorkingCopy);\n final AbstractTypeDeclaration targetDeclaration = (AbstractTypeDeclaration) targetRewrite.getRoot().types().get(0);\n createTypeParameters(targetRewrite, superType, declaringDeclaration, targetDeclaration);\n createTypeSignature(targetRewrite, superType, declaringDeclaration, targetDeclaration);\n createNecessaryConstructors(targetRewrite, superType, targetDeclaration, status);\n final TextEdit edit = targetRewrite.createChange(true).getEdit();\n try {\n edit.apply(document, TextEdit.UPDATE_REGIONS);\n } catch (MalformedTreeException exception) {\n JavaPlugin.log(exception);\n status.merge(RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ExtractSupertypeProcessor_unexpected_exception_on_layer));\n } catch (BadLocationException exception) {\n JavaPlugin.log(exception);\n status.merge(RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ExtractSupertypeProcessor_unexpected_exception_on_layer));\n }\n buffer.setLength(0);\n buffer.append(document.get());\n } finally {\n monitor.done();\n }\n }", "title": "" }, { "docid": "86024436a438f01bd49c7f2934cf3182", "score": "0.45199922", "text": "public final void rule__Attr__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15326:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15327:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15327:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15328:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAttrAccess().getNameTIDENTIFIERTerminalRuleCall_1_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Attr__NameAssignment_130840); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAttrAccess().getNameTIDENTIFIERTerminalRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ff197bf889ffefe04c1752d405739931", "score": "0.45193085", "text": "public void method_5168(String var1) {\r\n super(var1);\r\n }", "title": "" }, { "docid": "4e0a6b19e4201a2821a51f503f106559", "score": "0.45190793", "text": "public final void mT31() throws RecognitionException {\n try {\n int _type = T31;\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\JavaWTree.g:13:5: ( 'extends' )\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\JavaWTree.g:13:7: 'extends'\n {\n match(\"extends\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "title": "" }, { "docid": "de7a9762bca4209c3f1a3997a28174d3", "score": "0.4517694", "text": "public final void ruleIdOrSuper() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReactiveXD.g:1617:2: ( ( ( rule__IdOrSuper__Alternatives ) ) )\n // InternalReactiveXD.g:1618:2: ( ( rule__IdOrSuper__Alternatives ) )\n {\n // InternalReactiveXD.g:1618:2: ( ( rule__IdOrSuper__Alternatives ) )\n // InternalReactiveXD.g:1619:3: ( rule__IdOrSuper__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getIdOrSuperAccess().getAlternatives()); \n }\n // InternalReactiveXD.g:1620:3: ( rule__IdOrSuper__Alternatives )\n // InternalReactiveXD.g:1620:4: rule__IdOrSuper__Alternatives\n {\n pushFollow(FOLLOW_2);\n rule__IdOrSuper__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getIdOrSuperAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f232d456ed52f4d485ac3d34f8315380", "score": "0.45167306", "text": "public final void rule__ReAtrib__NameAssignment_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:7421:1: ( ( RULE_ID ) )\r\n // InternalGo.g:7422:2: ( RULE_ID )\r\n {\r\n // InternalGo.g:7422:2: ( RULE_ID )\r\n // InternalGo.g:7423:3: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getReAtribAccess().getNameIDTerminalRuleCall_0_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getReAtribAccess().getNameIDTerminalRuleCall_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "c8dadfa3e1529fae4b5660106a782462", "score": "0.4513693", "text": "public final void rule__EParenthesisedExpression__Group_2__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:17277:1: ( ( ( rule__EParenthesisedExpression__TailAssignment_2_1 ) ) )\n // InternalAnsibleDslParser.g:17278:1: ( ( rule__EParenthesisedExpression__TailAssignment_2_1 ) )\n {\n // InternalAnsibleDslParser.g:17278:1: ( ( rule__EParenthesisedExpression__TailAssignment_2_1 ) )\n // InternalAnsibleDslParser.g:17279:2: ( rule__EParenthesisedExpression__TailAssignment_2_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEParenthesisedExpressionAccess().getTailAssignment_2_1()); \n }\n // InternalAnsibleDslParser.g:17280:2: ( rule__EParenthesisedExpression__TailAssignment_2_1 )\n // InternalAnsibleDslParser.g:17280:3: rule__EParenthesisedExpression__TailAssignment_2_1\n {\n pushFollow(FOLLOW_2);\n rule__EParenthesisedExpression__TailAssignment_2_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEParenthesisedExpressionAccess().getTailAssignment_2_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d7ccb40bf4da6a67c06ffdf46df8b316", "score": "0.45100805", "text": "public final void rule__XVariableDeclaration__Group_2_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:12453:1: ( ( ( rule__XVariableDeclaration__NameAssignment_2_0_0_1 ) ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:12454:1: ( ( rule__XVariableDeclaration__NameAssignment_2_0_0_1 ) )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:12454:1: ( ( rule__XVariableDeclaration__NameAssignment_2_0_0_1 ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:12455:1: ( rule__XVariableDeclaration__NameAssignment_2_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXVariableDeclarationAccess().getNameAssignment_2_0_0_1()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:12456:1: ( rule__XVariableDeclaration__NameAssignment_2_0_0_1 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:12456:2: rule__XVariableDeclaration__NameAssignment_2_0_0_1\n {\n pushFollow(FOLLOW_rule__XVariableDeclaration__NameAssignment_2_0_0_1_in_rule__XVariableDeclaration__Group_2_0_0__1__Impl25239);\n rule__XVariableDeclaration__NameAssignment_2_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXVariableDeclarationAccess().getNameAssignment_2_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e01062e7595e4af9311f79d2c4175f81", "score": "0.45057172", "text": "public final void rule__AssignedClassDeclaration__Group_2_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4345:1: ( ( ( rule__AssignedClassDeclaration__NameAssignment_2_1_0 ) ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4346:1: ( ( rule__AssignedClassDeclaration__NameAssignment_2_1_0 ) )\n {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4346:1: ( ( rule__AssignedClassDeclaration__NameAssignment_2_1_0 ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4347:1: ( rule__AssignedClassDeclaration__NameAssignment_2_1_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAssignedClassDeclarationAccess().getNameAssignment_2_1_0()); \n }\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4348:1: ( rule__AssignedClassDeclaration__NameAssignment_2_1_0 )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4348:2: rule__AssignedClassDeclaration__NameAssignment_2_1_0\n {\n pushFollow(FOLLOW_rule__AssignedClassDeclaration__NameAssignment_2_1_0_in_rule__AssignedClassDeclaration__Group_2_1__0__Impl9331);\n rule__AssignedClassDeclaration__NameAssignment_2_1_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAssignedClassDeclarationAccess().getNameAssignment_2_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bbcb0b87160edd5d663cd337d8c0c1a9", "score": "0.45054898", "text": "public final void rule__EVariableDeclaration__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:29761:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:29762:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:29762:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:29763:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEVariableDeclarationAccess().getNameIDTerminalRuleCall_0_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEVariableDeclarationAccess().getNameIDTerminalRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f6780ed7ec4dc0078a6c511f26a19467", "score": "0.45053232", "text": "public final void rule__XImportDeclaration__Group_1_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFsm.g:3346:1: ( ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) ) )\n // InternalFsm.g:3347:1: ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) )\n {\n // InternalFsm.g:3347:1: ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) )\n // InternalFsm.g:3348:2: ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_0_2()); \n }\n // InternalFsm.g:3349:2: ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 )\n // InternalFsm.g:3349:3: rule__XImportDeclaration__ImportedTypeAssignment_1_0_2\n {\n pushFollow(FOLLOW_2);\n rule__XImportDeclaration__ImportedTypeAssignment_1_0_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_0_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fc294b9ab391ec992fcac4ddb686f92b", "score": "0.45032638", "text": "public final void rule__ActivityChain__NameAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCauseEffectChain.g:1571:1: ( ( RULE_ID ) )\n // InternalCauseEffectChain.g:1572:2: ( RULE_ID )\n {\n // InternalCauseEffectChain.g:1572:2: ( RULE_ID )\n // InternalCauseEffectChain.g:1573:3: RULE_ID\n {\n before(grammarAccess.getActivityChainAccess().getNameIDTerminalRuleCall_2_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getActivityChainAccess().getNameIDTerminalRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ab0238d3284eb0befdfbe5dd97693cd7", "score": "0.45015782", "text": "public final void rule__XTypeLiteral__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:14179:1: ( ( ( rule__XTypeLiteral__TypeAssignment_3 ) ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:14180:1: ( ( rule__XTypeLiteral__TypeAssignment_3 ) )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:14180:1: ( ( rule__XTypeLiteral__TypeAssignment_3 ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:14181:1: ( rule__XTypeLiteral__TypeAssignment_3 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getTypeAssignment_3()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:14182:1: ( rule__XTypeLiteral__TypeAssignment_3 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:14182:2: rule__XTypeLiteral__TypeAssignment_3\n {\n pushFollow(FOLLOW_rule__XTypeLiteral__TypeAssignment_3_in_rule__XTypeLiteral__Group__3__Impl28640);\n rule__XTypeLiteral__TypeAssignment_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getTypeAssignment_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a940656e51b086459214f73fd1fc11f4", "score": "0.44984284", "text": "public final void rule__XVariableDeclaration__Group_2_0_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:9326:1: ( ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) ) )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:9327:1: ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) )\r\n {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:9327:1: ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:9328:1: ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0()); \r\n }\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:9329:1: ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:9329:2: rule__XVariableDeclaration__TypeAssignment_2_0_0_0\r\n {\r\n pushFollow(FOLLOW_rule__XVariableDeclaration__TypeAssignment_2_0_0_0_in_rule__XVariableDeclaration__Group_2_0_0__0__Impl18849);\r\n rule__XVariableDeclaration__TypeAssignment_2_0_0_0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0ab0df02fbb4a9b4bba0711befe8c4d5", "score": "0.4490589", "text": "public final void rule__FeatureConfiguration__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3081:1: ( ( ( rule__FeatureConfiguration__TypeAssignment_2 ) ) )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3082:1: ( ( rule__FeatureConfiguration__TypeAssignment_2 ) )\r\n {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3082:1: ( ( rule__FeatureConfiguration__TypeAssignment_2 ) )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3083:1: ( rule__FeatureConfiguration__TypeAssignment_2 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getFeatureConfigurationAccess().getTypeAssignment_2()); \r\n }\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3084:1: ( rule__FeatureConfiguration__TypeAssignment_2 )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3084:2: rule__FeatureConfiguration__TypeAssignment_2\r\n {\r\n pushFollow(FOLLOW_rule__FeatureConfiguration__TypeAssignment_2_in_rule__FeatureConfiguration__Group__2__Impl6582);\r\n rule__FeatureConfiguration__TypeAssignment_2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getFeatureConfigurationAccess().getTypeAssignment_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "eaeff44584044568cd2f8ef398f9bc3f", "score": "0.44896588", "text": "public final void rule__DataType__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:329:1: ( ( ( rule__DataType__NameAssignment_1 ) ) )\n // InternalBlackDog.g:330:1: ( ( rule__DataType__NameAssignment_1 ) )\n {\n // InternalBlackDog.g:330:1: ( ( rule__DataType__NameAssignment_1 ) )\n // InternalBlackDog.g:331:2: ( rule__DataType__NameAssignment_1 )\n {\n before(grammarAccess.getDataTypeAccess().getNameAssignment_1()); \n // InternalBlackDog.g:332:2: ( rule__DataType__NameAssignment_1 )\n // InternalBlackDog.g:332:3: rule__DataType__NameAssignment_1\n {\n pushFollow(FOLLOW_2);\n rule__DataType__NameAssignment_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDataTypeAccess().getNameAssignment_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "48cd9ce0e3581466a203ea3c231a7126", "score": "0.44878605", "text": "public final void rule__XImportDeclaration__Group_1_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReactiveXD.g:17114:1: ( ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) ) )\n // InternalReactiveXD.g:17115:1: ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) )\n {\n // InternalReactiveXD.g:17115:1: ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) )\n // InternalReactiveXD.g:17116:2: ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_0_2()); \n }\n // InternalReactiveXD.g:17117:2: ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 )\n // InternalReactiveXD.g:17117:3: rule__XImportDeclaration__ImportedTypeAssignment_1_0_2\n {\n pushFollow(FOLLOW_2);\n rule__XImportDeclaration__ImportedTypeAssignment_1_0_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_0_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "96cda4aab2126ffedf34b04b699e07b8", "score": "0.44849545", "text": "public final void rule__XCasePart__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReactiveXD.g:11275:1: ( ( ( rule__XCasePart__TypeGuardAssignment_1 )? ) )\n // InternalReactiveXD.g:11276:1: ( ( rule__XCasePart__TypeGuardAssignment_1 )? )\n {\n // InternalReactiveXD.g:11276:1: ( ( rule__XCasePart__TypeGuardAssignment_1 )? )\n // InternalReactiveXD.g:11277:2: ( rule__XCasePart__TypeGuardAssignment_1 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXCasePartAccess().getTypeGuardAssignment_1()); \n }\n // InternalReactiveXD.g:11278:2: ( rule__XCasePart__TypeGuardAssignment_1 )?\n int alt97=2;\n int LA97_0 = input.LA(1);\n\n if ( (LA97_0==RULE_ID||LA97_0==35||LA97_0==58) ) {\n alt97=1;\n }\n switch (alt97) {\n case 1 :\n // InternalReactiveXD.g:11278:3: rule__XCasePart__TypeGuardAssignment_1\n {\n pushFollow(FOLLOW_2);\n rule__XCasePart__TypeGuardAssignment_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXCasePartAccess().getTypeGuardAssignment_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2ecf1fa87536e3b9e02770e822d8de9e", "score": "0.44810888", "text": "public final void mSUB_ASS_OP() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = SUB_ASS_OP;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// myChecker.g:295:12: ( '-=' )\n\t\t\t// myChecker.g:295:14: '-='\n\t\t\t{\n\t\t\tmatch(\"-=\"); \n\n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "title": "" }, { "docid": "d9ebb555cfccb47491a3b1bc4f2c2129", "score": "0.44777322", "text": "public final void rule__AssignedClassDeclaration__Group_2_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4465:1: ( ( ( rule__AssignedClassDeclaration__ExtendAssignment_2_1_1_1 ) ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4466:1: ( ( rule__AssignedClassDeclaration__ExtendAssignment_2_1_1_1 ) )\n {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4466:1: ( ( rule__AssignedClassDeclaration__ExtendAssignment_2_1_1_1 ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4467:1: ( rule__AssignedClassDeclaration__ExtendAssignment_2_1_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAssignedClassDeclarationAccess().getExtendAssignment_2_1_1_1()); \n }\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4468:1: ( rule__AssignedClassDeclaration__ExtendAssignment_2_1_1_1 )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:4468:2: rule__AssignedClassDeclaration__ExtendAssignment_2_1_1_1\n {\n pushFollow(FOLLOW_rule__AssignedClassDeclaration__ExtendAssignment_2_1_1_1_in_rule__AssignedClassDeclaration__Group_2_1_1__1__Impl9571);\n rule__AssignedClassDeclaration__ExtendAssignment_2_1_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAssignedClassDeclarationAccess().getExtendAssignment_2_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f27f691c2b10c93f411c138dd2de6977", "score": "0.447481", "text": "public final void rule__Model__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFsm.g:3442:1: ( ( RULE_ID ) )\n // InternalFsm.g:3443:2: ( RULE_ID )\n {\n // InternalFsm.g:3443:2: ( RULE_ID )\n // InternalFsm.g:3444:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getModelAccess().getNameIDTerminalRuleCall_1_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getModelAccess().getNameIDTerminalRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5da40cb13fde8d0ea3308b5ad7d59313", "score": "0.44743755", "text": "public final void mT64() throws RecognitionException {\n try {\n int _type = T64;\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\JavaWTree.g:46:5: ( 'super' )\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\JavaWTree.g:46:7: 'super'\n {\n match(\"super\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "title": "" }, { "docid": "ebfbb2bd8d32f79cfc8489e284d2d0dc", "score": "0.44734", "text": "public void setHatchingType(@NotNull EntityType hatchType) {\n/* 74 */ if (!hatchType.isSpawnable()) throw new IllegalArgumentException(\"Can't spawn that entity type from an egg!\"); \n/* 75 */ this.hatchType = hatchType;\n/* */ }", "title": "" } ]
b4c3a1d682a996f4e388acabf6190936
$FF: renamed from: a (int, java.util.Map) void
[ { "docid": "1d86d7027564cda23530d2ccb023cf71", "score": "0.0", "text": "public void method_342(int var1, Map var2) {\n if (var1 >= 0 && var1 <= this.field_135.size()) {\n Iterator var3 = var2.entrySet().iterator();\n\n while(var3.hasNext()) {\n Entry var4 = (Entry)var3.next();\n Object var5 = var4.getKey();\n boolean var6 = this.containsKey(var5);\n this.method_349(var1, var4.getKey(), var4.getValue());\n if (!var6) {\n ++var1;\n } else {\n var1 = this.method_347(var4.getKey()) + 1;\n }\n }\n\n } else {\n throw new IndexOutOfBoundsException(\"Index: \" + var1 + \", Size: \" + this.field_135.size());\n }\n }", "title": "" } ]
[ { "docid": "c20d18f9a67e49522b0f7ffaade9d208", "score": "0.76647764", "text": "public interface C19627a {\n /* renamed from: a */\n void mo52213a(Map<String, Object> map);\n}", "title": "" }, { "docid": "c64a08f0b6ba5399bedb119c24495159", "score": "0.76379865", "text": "interface C0933j {\n /* renamed from: a */\n void mo1226a(Map<String, String> map);\n}", "title": "" }, { "docid": "9f9c70675c3ed886d01b7b0e5b8364e6", "score": "0.7532656", "text": "void mo52213a(Map<String, Object> map);", "title": "" }, { "docid": "c15047df1fc960cbe98895a2b64f2372", "score": "0.74083894", "text": "interface C47899ad<K, V> extends Map<K, V>, C7565a {\n /* renamed from: a */\n V mo120056a(K k);\n}", "title": "" }, { "docid": "588b06ddfc246240cf5b459d5d1f9ca9", "score": "0.72854394", "text": "void mo34052a(HashMap<Object, Object> hashMap);", "title": "" }, { "docid": "82d31d3a0f9e0554b2de5345eeaec24d", "score": "0.72290903", "text": "void mo1226a(Map<String, String> map);", "title": "" }, { "docid": "3397a23d7daacbcbc63e859d1d43e70e", "score": "0.71925586", "text": "public interface AbstractC1774a {\n /* renamed from: a */\n String mo9581a(Map<String, String> map);\n }", "title": "" }, { "docid": "b3b9f07bb944b4ce0822becc2cd66db6", "score": "0.71254706", "text": "void mo34055b(HashMap<Object, Object> hashMap);", "title": "" }, { "docid": "4ed212d3b1964ae5e87021ecc9c57f27", "score": "0.6797024", "text": "public void mo34747a(Map<String, String> map) {\n }", "title": "" }, { "docid": "080f1e7a0e3ccb17a815955e53787423", "score": "0.6684354", "text": "Map<String, String> mo21467a();", "title": "" }, { "docid": "1a565fad03cdc2412463d30ff096f443", "score": "0.6533053", "text": "void mo10451u(Map<String, String> map);", "title": "" }, { "docid": "3c57b6ddc41acfd16c7ae8e3f9f93dbf", "score": "0.6502509", "text": "public interface C33823g {\n /* renamed from: a */\n void mo45500a(long j, long j2, long j3, ArrayList<C27641b> arrayList, long j4, HashSet<String> hashSet);\n\n /* renamed from: dO */\n void mo45501dO(int i, int i2);\n}", "title": "" }, { "docid": "773ab3710bd78ef683b8594500d4cac7", "score": "0.6460909", "text": "public interface C1137x {\n /* renamed from: a */\n void mo1513a(ArrayList<C1151k> arrayList, HashMap<String, JSONObject> hashMap, C1140y c1140y);\n\n /* renamed from: a */\n boolean mo1514a(C1151k c1151k);\n}", "title": "" }, { "docid": "034414598a17bd38bd6ced226209edb4", "score": "0.6347887", "text": "void mo34054b(String str, Map<String, Object> map);", "title": "" }, { "docid": "4d68d1c62f57c48ec495429fb5000652", "score": "0.6344591", "text": "String mo9581a(Map<String, String> map);", "title": "" }, { "docid": "bb67442c968e65b5d9104d1130f2f460", "score": "0.61429644", "text": "public interface C9220h {\n /* renamed from: a */\n int mo23642a(long j, List<? extends C9224l> list);\n\n /* renamed from: a */\n long mo23643a(long j, SeekParameters seekParameters);\n\n /* renamed from: a */\n void mo23646a() throws IOException;\n\n /* renamed from: a */\n void mo23647a(long j, long j2, List<? extends C9224l> list, C9216f fVar);\n\n /* renamed from: a */\n void mo23648a(C9212d dVar);\n\n /* renamed from: a */\n boolean mo23649a(C9212d dVar, boolean z, Exception exc, long j);\n}", "title": "" }, { "docid": "1f7aae64f4f322541f2ecda6405f8cb5", "score": "0.6134747", "text": "public abstract Map<K, V> map();", "title": "" }, { "docid": "edfaaadfa16d19e41bd5c24e545c2273", "score": "0.6061116", "text": "public abstract void mo18519a(long j, String str, @Nullable String str2, @Nullable Map map);", "title": "" }, { "docid": "6bb07d0c46d5a406f8d63fea00ca051e", "score": "0.6056566", "text": "interface C1201a0 {\n /* renamed from: a */\n void mo6386a();\n\n /* renamed from: a */\n void mo6387a(JSONObject jSONObject);\n\n /* renamed from: b */\n void mo6388b();\n\n /* renamed from: c */\n int mo6389c();\n\n /* renamed from: d */\n int mo6390d();\n}", "title": "" }, { "docid": "b69f19cef303d9a9100a847372991f22", "score": "0.6047488", "text": "C3646a<K, A> mo23036a();", "title": "" }, { "docid": "d8e96347f7664011baa4f45ff633967c", "score": "0.6044307", "text": "static HashMap method_2392(class_376 var0) {\n return var0.field_3027;\n }", "title": "" }, { "docid": "1083e841caf5f83853b8388f4d565f45", "score": "0.6040271", "text": "@Override\n public Integer visit(Map type) {\n return 2;\n }", "title": "" }, { "docid": "0579645e0ebdf703be855653ae910efa", "score": "0.6021949", "text": "public interface C0621ak {\n /* renamed from: a */\n void mo1669a(int i);\n\n /* renamed from: a */\n void mo1670a(Bundle bundle);\n}", "title": "" }, { "docid": "e8976fdb8220b02585e83c4c1385d3ef", "score": "0.60159117", "text": "public interface C10734a {\n /* renamed from: A */\n void mo34049A();\n\n /* renamed from: B */\n void mo34050B();\n\n /* renamed from: G */\n void mo34051G();\n\n /* renamed from: a */\n void mo33974a(RenderView renderView);\n\n /* renamed from: a */\n void mo34052a(HashMap<Object, Object> hashMap);\n\n /* renamed from: b */\n void mo34053b(RenderView renderView);\n\n /* renamed from: b */\n void mo34054b(String str, Map<String, Object> map);\n\n /* renamed from: b */\n void mo34055b(HashMap<Object, Object> hashMap);\n\n /* renamed from: c */\n void mo33984c(RenderView renderView);\n\n /* renamed from: d */\n void mo33986d(RenderView renderView);\n\n /* renamed from: w */\n void mo34056w();\n\n /* renamed from: y */\n void mo34057y();\n }", "title": "" }, { "docid": "c2001f58f5b98a9b4909bd57736904e0", "score": "0.5999076", "text": "public interface C36089t {\n /* renamed from: a */\n void mo60378a(int i);\n\n /* renamed from: a */\n void mo60379a(long j);\n\n /* renamed from: a */\n void mo60380a(String str);\n\n /* renamed from: a */\n void mo60381a(boolean z);\n\n /* renamed from: b */\n int mo60382b(int i);\n\n /* renamed from: b */\n long mo60383b(long j);\n\n /* renamed from: b */\n boolean mo60384b(boolean z);\n}", "title": "" }, { "docid": "679f9388423d25c958592264c85ba2e4", "score": "0.59951276", "text": "public void pin(Map<Key,Object> paramap);", "title": "" }, { "docid": "2fce4be9416e2b523d75ac479bfe6f5f", "score": "0.5977708", "text": "public void mo47726a(Map map) {\n this.f44606a.mo47711a(map);\n }", "title": "" }, { "docid": "29b073897a309a5b77d05278664bd971", "score": "0.59761643", "text": "public void method_3082(@NotNull Map var1) {\n this.field_2005 = var1;\n }", "title": "" }, { "docid": "e62c9f89a30343afa6ccf75d27c2e67e", "score": "0.597322", "text": "static HashMap method_2393(class_376 var0) {\n return var0.field_3028;\n }", "title": "" }, { "docid": "7a81353d74207d3e75ed760719fa68b6", "score": "0.59650856", "text": "public MapLookup(Map<String, String> map) {\n/* 52 */ this.map = map;\n/* */ }", "title": "" }, { "docid": "a755c0d154a8883b8876d9e945264a56", "score": "0.5961436", "text": "public interface C45392d {\n /* renamed from: a */\n void mo56129a(int i);\n\n /* renamed from: a */\n void mo56130a(String[] strArr);\n }", "title": "" }, { "docid": "56e18e19155f859757d98be8d5d1bc3b", "score": "0.59554815", "text": "protected void mo1286a(HashMap<String, String> hashMap) {\n super.mo1286a((HashMap) hashMap);\n hashMap.put(\"method\", \"count\");\n }", "title": "" }, { "docid": "e6af380a84efaaffb2418ede67b61516", "score": "0.5933559", "text": "interface C0569f {\n /* renamed from: dQ */\n void mo10445dQ();\n\n /* renamed from: dW */\n void mo10446dW();\n\n /* renamed from: dX */\n LinkedBlockingQueue<Runnable> mo10447dX();\n\n /* renamed from: dY */\n void mo10448dY();\n\n void dispatch();\n\n Thread getThread();\n\n /* renamed from: u */\n void mo10451u(Map<String, String> map);\n}", "title": "" }, { "docid": "01227de482280742beb0e7bf18c8f25c", "score": "0.59261596", "text": "private interface C0836c<T> {\n /* renamed from: a */\n int mo4485a(T t);\n\n /* renamed from: b */\n boolean mo4487b(T t);\n }", "title": "" }, { "docid": "20e80787b3d7c4e14354c919ffb6d99a", "score": "0.5926136", "text": "public void methodWithGenericArgument(Map<String, String> theMap) {\n\n }", "title": "" }, { "docid": "ef0d1f1c4bcf226825dbd615a6d95342", "score": "0.5913203", "text": "public interface C19030a {\n /* renamed from: a */\n void mo50523a(View view, long j, List<String> list, String str, boolean z, long j2, JSONObject jSONObject);\n\n /* renamed from: b */\n void mo50524b(View view, long j, List<String> list, String str, boolean z, long j2, JSONObject jSONObject);\n\n /* renamed from: c */\n void mo50525c(View view, long j, List<String> list, String str, boolean z, long j2, JSONObject jSONObject);\n\n /* renamed from: d */\n void mo50526d(View view, long j, List<String> list, String str, boolean z, long j2, JSONObject jSONObject);\n}", "title": "" }, { "docid": "f438d6a737dc528f1e88ef21aec7dded", "score": "0.5909569", "text": "public void A02(X.AnonymousClass2LB r21, java.util.Map r22, java.util.Map r23, java.util.List r24) {\n /*\n // Method dump skipped, instructions count: 1854\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.AnonymousClass0IC.A02(X.2LB, java.util.Map, java.util.Map, java.util.List):void\");\n }", "title": "" }, { "docid": "a80b8490fe7780444cf3815eaff98ade", "score": "0.5886343", "text": "public interface C7988a {\n /* renamed from: a */\n void mo24562a();\n\n /* renamed from: a */\n void mo24563a(Bitmap bitmap);\n }", "title": "" }, { "docid": "9bf254824e467071f0680778aa7415fd", "score": "0.5884917", "text": "public interface C001200n {\n /* renamed from: PN */\n Map mo47PN();\n\n /* renamed from: ZJ */\n String mo48ZJ(String str);\n\n /* renamed from: bY */\n void mo49bY(String str);\n\n /* renamed from: nZ */\n void mo50nZ(String str, String str2, Object... objArr);\n}", "title": "" }, { "docid": "41498f44b1d59787ab47d1512b04c00d", "score": "0.5876577", "text": "@Override\r\n\tpublic void setParameterMap(Map arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "f76b10fa7367f0e8f5823f609de2ea8b", "score": "0.587079", "text": "public interface C11339b {\n /* renamed from: a */\n int mo27352a(int i);\n\n /* renamed from: a */\n int mo27353a(String str);\n\n /* renamed from: a */\n void mo27354a();\n\n /* renamed from: b */\n int mo27355b();\n\n /* renamed from: b */\n long mo27356b(int i);\n\n /* renamed from: c */\n String mo27357c(int i);\n\n /* renamed from: c */\n boolean mo27358c();\n\n /* renamed from: d */\n boolean mo27359d();\n\n /* renamed from: e */\n Object mo27360e();\n}", "title": "" }, { "docid": "69be498ef40345436355245596063e93", "score": "0.58601063", "text": "public interface C24184j {\n /* renamed from: a */\n void mo62534a(C24185k kVar);\n\n /* renamed from: a */\n void mo62535a(C24190p pVar);\n\n /* renamed from: a */\n void mo62536a(CommentReplyButtonStruct commentReplyButtonStruct, C24183i iVar);\n}", "title": "" }, { "docid": "ee3549a6686f2e9cf5c5a75f9f522ca9", "score": "0.5858174", "text": "public interface C46918m {\n /* renamed from: a */\n int mo118056a();\n\n /* renamed from: a */\n List<File> mo118057a(int i);\n\n /* renamed from: a */\n void mo118058a(String str) throws IOException;\n\n /* renamed from: a */\n void mo118059a(List<File> list);\n\n /* renamed from: a */\n void mo118060a(byte[] bArr) throws IOException;\n\n /* renamed from: a */\n boolean mo118061a(int i, int i2);\n\n /* renamed from: b */\n boolean mo118062b();\n\n /* renamed from: c */\n List<File> mo118063c();\n}", "title": "" }, { "docid": "6ea8737e8a9ea03a1cf775dc5e5f555e", "score": "0.58365285", "text": "public interface C1351a<K> {\n /* renamed from: ag */\n void mo4700ag(int i, long j);\n\n /* renamed from: bK */\n void mo4701bK(int i, String str);\n\n void drw();\n\n K getKey();\n\n /* renamed from: q */\n void mo4704q(int i, byte[] bArr);\n}", "title": "" }, { "docid": "4257190879ca3098600f3ff3c5842e6e", "score": "0.58275425", "text": "public interface C45390b {\n /* renamed from: a */\n void mo55927a(int i);\n }", "title": "" }, { "docid": "6bb82b473a9f707f03cb5cb6b11957bb", "score": "0.5818964", "text": "interface C46974a {\n /* renamed from: a */\n void mo118130a();\n }", "title": "" }, { "docid": "56e4b9b6aa9eddab2737829e0476fdb0", "score": "0.581248", "text": "public final void mo34052a(HashMap<Object, Object> hashMap) {\n }", "title": "" }, { "docid": "429db3ede2893c269a4f7475eab76e75", "score": "0.58098245", "text": "public interface C1617a {\n /* renamed from: a */\n void mo5073a(int[] iArr, int i, int i2, int i3, int i4, long j, int i5, int i6, int[] iArr2, int i7, int i8, int i9, int i10, int i11, long j2, int[] iArr3, int[] iArr4);\n }", "title": "" }, { "docid": "b1570ca825b2fbf0e018c608271e0fbb", "score": "0.58081436", "text": "public interface C3755m<K, A> {\n /* renamed from: a */\n C3646a<K, A> mo23036a();\n}", "title": "" }, { "docid": "d4156515bb556562ff0dd0b763131d7b", "score": "0.579678", "text": "interface C10161p9 {\n /* renamed from: a */\n void mo25948a(C11310t0 t0Var);\n\n /* renamed from: a */\n boolean mo25949a(long j, C11253p0 p0Var);\n}", "title": "" }, { "docid": "4f063cc0365a666d17c01deaf36672a6", "score": "0.5796198", "text": "public interface C1148a {\n /* renamed from: a */\n void mo6744a(C1161a c1161a, boolean z);\n\n /* renamed from: a */\n void mo6745a(C1161a c1161a, boolean z, int i);\n}", "title": "" }, { "docid": "79d9a34aa5077940a4bad1c61c12cca4", "score": "0.5787912", "text": "HashMap<Class<?>,Integer> makeMap(Object... pairs);", "title": "" }, { "docid": "3c5bebb27e35a112a00abedb12ca43c7", "score": "0.5774749", "text": "public interface C1914a {\n /* renamed from: a */\n void mo1483a();\n\n /* renamed from: a */\n void mo1484a(int i);\n }", "title": "" }, { "docid": "ba0bfd7602a6ec53880c80bee6eb4793", "score": "0.57704586", "text": "public interface C14088g {\n /* renamed from: a */\n void mo26415a(byte[] bArr, long j, int i, int i2, int i3, int i4);\n\n void bSo();\n}", "title": "" }, { "docid": "5447392906ccafa0baf06dee894b8ab4", "score": "0.57633895", "text": "public interface b {\n\n /* compiled from: AnalyticsListener */\n public static final class a {\n\n /* renamed from: a reason: collision with root package name */\n public final long f7370a;\n\n /* renamed from: b reason: collision with root package name */\n public final Z f7371b;\n\n /* renamed from: c reason: collision with root package name */\n public final int f7372c;\n\n /* renamed from: d reason: collision with root package name */\n public final v.a f7373d;\n\n /* renamed from: e reason: collision with root package name */\n public final long f7374e;\n\n /* renamed from: f reason: collision with root package name */\n public final long f7375f;\n\n /* renamed from: g reason: collision with root package name */\n public final long f7376g;\n\n public a(long j2, Z z, int i2, v.a aVar, long j3, long j4, long j5) {\n this.f7370a = j2;\n this.f7371b = z;\n this.f7372c = i2;\n this.f7373d = aVar;\n this.f7374e = j3;\n this.f7375f = j4;\n this.f7376g = j5;\n }\n }\n\n void a(a aVar);\n\n void a(a aVar, int i2);\n\n void a(a aVar, int i2, int i3);\n\n void a(a aVar, int i2, int i3, int i4, float f2);\n\n void a(a aVar, int i2, long j2);\n\n void a(a aVar, int i2, long j2, long j3);\n\n void a(a aVar, int i2, e eVar);\n\n void a(a aVar, int i2, Format format);\n\n void a(a aVar, int i2, String str, long j2);\n\n void a(a aVar, Surface surface);\n\n void a(a aVar, K k2);\n\n void a(a aVar, w.b bVar, w.c cVar);\n\n void a(a aVar, w.b bVar, w.c cVar, IOException iOException, boolean z);\n\n void a(a aVar, w.c cVar);\n\n void a(a aVar, ExoPlaybackException exoPlaybackException);\n\n void a(a aVar, Metadata metadata);\n\n void a(a aVar, TrackGroupArray trackGroupArray, o oVar);\n\n void a(a aVar, Exception exc);\n\n void a(a aVar, boolean z);\n\n void a(a aVar, boolean z, int i2);\n\n void b(a aVar);\n\n void b(a aVar, int i2);\n\n void b(a aVar, int i2, long j2, long j3);\n\n void b(a aVar, int i2, e eVar);\n\n void b(a aVar, w.b bVar, w.c cVar);\n\n void b(a aVar, w.c cVar);\n\n void b(a aVar, boolean z);\n\n void c(a aVar);\n\n void c(a aVar, int i2);\n\n void c(a aVar, w.b bVar, w.c cVar);\n\n void d(a aVar);\n\n void d(a aVar, int i2);\n\n void e(a aVar);\n\n void f(a aVar);\n\n void g(a aVar);\n\n void h(a aVar);\n\n void i(a aVar);\n}", "title": "" }, { "docid": "ea3be86493eed22b7098fedbee0bf213", "score": "0.5741441", "text": "interface C1786a {\n /* renamed from: a */\n void mo7079a(boolean z);\n }", "title": "" }, { "docid": "78df196e7be1591f2bbcf8f031c2b469", "score": "0.5736112", "text": "void example(org.linlinjava.litemall.db.domain.example.MapExample example);", "title": "" }, { "docid": "27ff9795aab1d9334b15d41ce6148590", "score": "0.5729991", "text": "public final void mo34055b(HashMap<Object, Object> hashMap) {\n }", "title": "" }, { "docid": "431f92d4461f47d5453421248fc8e22c", "score": "0.57276595", "text": "public interface C30912b {\n /* renamed from: a */\n void mo41152a(int i, int i2, String str, C24239d c24239d);\n}", "title": "" }, { "docid": "b66d008a4ff49a8cd93b293d20414799", "score": "0.5713224", "text": "public interface C0051a {\n /* renamed from: a */\n void mo466a(int i);\n\n /* renamed from: d */\n void mo467d(boolean z);\n\n /* renamed from: h */\n void mo468h();\n\n /* renamed from: i */\n void mo469i();\n\n /* renamed from: j */\n void mo470j();\n }", "title": "" }, { "docid": "56c67d7d6f9e5bd9afeeff8d4c7b1358", "score": "0.56988984", "text": "Map mo47PN();", "title": "" }, { "docid": "fe0dd81003639b39a719135ece04a09c", "score": "0.5697851", "text": "public interface C0893a {\n /* renamed from: a */\n void mo1231a(C0894d c0894d, C0900g c0900g);\n }", "title": "" }, { "docid": "4262d0c3db9b4d37fc9887f5bcc65e6f", "score": "0.56974155", "text": "public void visitInjectiveMapType (final IOmlInjectiveMapType var_1_1) throws CGException {}", "title": "" }, { "docid": "aabc9465b6b1641ccdd6eb573c11d501", "score": "0.5691646", "text": "interface C0542a {\n /* renamed from: i */\n void mo10238i(Activity activity);\n\n /* renamed from: j */\n void mo10239j(Activity activity);\n }", "title": "" }, { "docid": "658e2157a962e8e3911961071abbf52d", "score": "0.5686916", "text": "protected void func_70088_a() {}", "title": "" }, { "docid": "8369f48c0a58150b059a8b7eae3967b1", "score": "0.56867254", "text": "private interface C7628c<T> {\n /* renamed from: a */\n boolean mo19744a(T t);\n\n /* renamed from: b */\n int mo19745b(T t);\n }", "title": "" }, { "docid": "2890fea761aa644d1c348344ef17d1ec", "score": "0.5680448", "text": "public interface C46917l<T> {\n /* renamed from: a */\n void mo118025a();\n\n /* renamed from: a */\n void mo118026a(T t);\n}", "title": "" }, { "docid": "01e98a805ce79d2ddd599834357d2ff4", "score": "0.56773955", "text": "public interface C27189a {\n /* renamed from: a */\n void mo69935a(DiscoverPlaylistUpdateParam discoverPlaylistUpdateParam);\n\n /* renamed from: a */\n void mo69936a(boolean z);\n\n /* renamed from: b */\n void mo69937b(boolean z);\n\n /* renamed from: j */\n void mo69938j();\n\n /* renamed from: k */\n void mo69939k();\n\n /* renamed from: l */\n void mo69940l();\n\n /* renamed from: m */\n void mo69941m();\n}", "title": "" }, { "docid": "7a3a6ac5a8d9e26b6eef462bf8ac8853", "score": "0.5673649", "text": "interface C5735b0 {\n /* renamed from: a */\n void mo23030a(MessageDigest[] messageDigestArr, long j, int i) throws IOException;\n\n /* renamed from: d */\n long mo23031d();\n}", "title": "" }, { "docid": "5109a8db7ce0d6bf1331cd763491844d", "score": "0.5668743", "text": "public interface C2269b {\n /* renamed from: a */\n void mo8048a(long j) throws IOException;\n\n /* renamed from: a */\n boolean mo8049a() throws IOException;\n\n /* renamed from: b */\n byte mo8050b() throws IOException;\n\n /* renamed from: b */\n byte[] mo8051b(long j) throws IOException;\n\n /* renamed from: c */\n int mo8054c() throws IOException;\n\n /* renamed from: c */\n String mo8052c(long j) throws IOException;\n\n /* renamed from: d */\n long mo8055d() throws IOException;\n }", "title": "" }, { "docid": "fc6f1589f22175563fb93cfab4441091", "score": "0.56656593", "text": "public abstract Map<String, String> params();", "title": "" }, { "docid": "162b30742b7e25a62f056431ade869b0", "score": "0.56634104", "text": "public interface C39030a {\n /* renamed from: a */\n void mo35963a(byte[][] bArr, int i, int i2);\n }", "title": "" }, { "docid": "435db8be9e3a6f4ef35e75c81a2a48ad", "score": "0.56592333", "text": "public interface C18263b<T> {\n /* renamed from: a */\n void mo47127a(C18262a<T> aVar);\n}", "title": "" }, { "docid": "fb317973c341816aa99075b1c2ffa2f9", "score": "0.56558084", "text": "public interface C45396g {\n /* renamed from: a */\n void mo55983a(int i, float f, boolean z);\n\n /* renamed from: a */\n void mo55984a(int i, boolean z, boolean z2, float f, List<Integer> list);\n\n /* renamed from: a */\n boolean mo55985a();\n }", "title": "" }, { "docid": "5388028a25e7beec2b608bd5a5a46733", "score": "0.5646924", "text": "public Map<K, V> b(com.a.a.d.a aVar) {\n b f = aVar.f();\n if (f == b.NULL) {\n aVar.j();\n return null;\n }\n Map<K, V> map = (Map) this.d.a();\n Object b;\n StringBuilder stringBuilder;\n if (f == b.BEGIN_ARRAY) {\n aVar.a();\n while (aVar.e()) {\n aVar.a();\n b = this.b.b(aVar);\n if (map.put(b, this.c.b(aVar)) != null) {\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"duplicate key: \");\n stringBuilder.append(b);\n throw new r(stringBuilder.toString());\n }\n aVar.b();\n }\n aVar.b();\n } else {\n aVar.c();\n while (aVar.e()) {\n com.a.a.b.e.a.a(aVar);\n b = this.b.b(aVar);\n if (map.put(b, this.c.b(aVar)) != null) {\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"duplicate key: \");\n stringBuilder.append(b);\n throw new r(stringBuilder.toString());\n }\n }\n aVar.d();\n }\n return map;\n }", "title": "" }, { "docid": "11e281d987cf7a92c97e1122d8a57825", "score": "0.56442237", "text": "public interface C41606e extends C8643c<C41610h, C41611i, C41607f> {\n /* renamed from: ai */\n void mo19179ai(long j);\n}", "title": "" }, { "docid": "7cb48a022d7b1d2bdbea31cc0427cdaa", "score": "0.56288475", "text": "private static void a(int paramInt, oa paramoa, Item paramalq)\r\n/* 800: */ {\r\n/* 801:859 */ e.a(paramInt, paramoa, paramalq);\r\n/* 802: */ }", "title": "" }, { "docid": "56c7662c27eca67d48ec5910c96e7b79", "score": "0.56168413", "text": "public void a(WorldMap worldmap) {\n/* 2248 */ getMinecraftServer().E().getWorldPersistentData().a(worldmap);\n/* */ }", "title": "" }, { "docid": "c1e35c2fdd7a723abfb898d0f33bd737", "score": "0.5608045", "text": "public interface C0144a {\n List<b> a(int i, int i2, int i3, List<Integer> list);\n }", "title": "" }, { "docid": "ca8c2fa4206584b9379f0512564f44b0", "score": "0.56064415", "text": "public interface C4117a {\n /* renamed from: a */\n void mo11604a(C4025b bVar);\n\n /* renamed from: f */\n C4025b mo11613f();\n }", "title": "" }, { "docid": "7dd3c22287a2593a62260527577a3f39", "score": "0.56059664", "text": "public void m12908a(Map<String, Integer> map) {\n WebLog.init().w(map.size() == this.f9338a.size());\n for (Entry entry : map.entrySet()) {\n String str = (String) entry.getKey();\n int intValue = ((Integer) entry.getValue()).intValue();\n this.f9342e.f9304K.remove(str);\n if (intValue == 0) {\n this.f9342e.f9306M.add(str);\n } else if (intValue == 1) {\n if (!this.f9340c.mo2361e((long) this.f9339b.mo1016s(str))) {\n this.f9342e.f9306M.add(str);\n }\n } else if (!(intValue == -1 || this.f9342e.f9305L.containsKey(str))) {\n this.f9342e.f9305L.put(str, Integer.valueOf(intValue));\n this.f9342e.m12832a(false);\n }\n }\n this.f9342e.c.mo2103b(new aap(this, map));\n }", "title": "" }, { "docid": "c12bdeceed2889869de44ea86003dccd", "score": "0.5597866", "text": "public interface C4624a {\n /* renamed from: d */\n void mo9715d(String str, JSONObject jSONObject);\n }", "title": "" }, { "docid": "13a02181d2e0f91dc6a1b4a42f1db3cc", "score": "0.5597171", "text": "void mo27541d(int i, Object obj);", "title": "" }, { "docid": "79316b2eb82af63ae6c393eb3da6031a", "score": "0.5594088", "text": "@Test\r\n public void testOP4J_028() throws Exception {\n \r\n Map<String,String> map = new LinkedHashMap<String, String>();\r\n map.put(\"1\", \"one\");\r\n map.put(\"2\", \"two\");\r\n map.put(\"3\", \"three\");\r\n\r\n \r\n {\r\n Map<Integer,String> result = new LinkedHashMap<Integer, String>();\r\n result.put(Integer.valueOf(1), \"one\");\r\n result.put(Integer.valueOf(2), \"two\");\r\n result.put(Integer.valueOf(3), \"three\");\r\n \r\n Map<Integer,String> newMap = \r\n Op.on(map).forEachEntry().onKey().exec(FnString.toInteger()).get();\r\n \r\n assertEquals(result, newMap);\r\n \r\n } \r\n }", "title": "" }, { "docid": "1901347e801c946e4d23e8771a240497", "score": "0.5593654", "text": "private interface C0693c<T> {\n /* renamed from: a */\n int mo3838a(T t);\n\n /* renamed from: b */\n boolean mo3840b(T t);\n }", "title": "" }, { "docid": "5a29b6909e6922899fff5c0edf3c0a09", "score": "0.5592154", "text": "interface C1141e {\n /* renamed from: a */\n void mo4564a(Fragment fragment, boolean z);\n\n /* renamed from: a */\n void mo4565a(Fragment fragment, String[] strArr, int i);\n }", "title": "" }, { "docid": "6ede3bb56c8da24f8ba0a3ccc50b9f20", "score": "0.5590101", "text": "public interface C22573a {\n /* renamed from: a */\n void mo59222a(C37723b bVar, boolean z);\n\n /* renamed from: a */\n void mo59223a(Exception exc);\n }", "title": "" }, { "docid": "64d61546f917791e70b1425da6728633", "score": "0.5587965", "text": "public interface C8838c {\n /* renamed from: a */\n void mo23010a(float f);\n\n /* renamed from: b */\n void mo23011b(int i);\n }", "title": "" }, { "docid": "1b9ddf6bd3e3b6958620f76fa6365a41", "score": "0.5585969", "text": "public interface a {\n void a(boolean z, long j, long j2);\n }", "title": "" }, { "docid": "d63a5fa830e5b4e26a0566030fe7d743", "score": "0.55775803", "text": "public interface C7920a {\n /* renamed from: a */\n void mo32574a(C7922d dVar);\n }", "title": "" }, { "docid": "1277ff19ff33728b51050b1a52ad2f2e", "score": "0.557617", "text": "public interface C45399j {\n /* renamed from: a */\n void mo56381a(C45314b bVar, C45317d dVar);\n }", "title": "" }, { "docid": "e7c6ea18bcdd234ffd6f547cba0bac28", "score": "0.55758625", "text": "private HashMap m70366a() {\n return new HashMap(7);\n }", "title": "" }, { "docid": "9d4255dc79cee0a9e687b7fdfc0a861b", "score": "0.5573056", "text": "protected abstract Map<K, V> getMap();", "title": "" }, { "docid": "a65615d7debbe987a304964f6b2d58a2", "score": "0.55700743", "text": "public interface C0076a {\n /* renamed from: a */\n Object mo684a();\n }", "title": "" }, { "docid": "60a6c2a49a3d759062bf45c859db4c81", "score": "0.55689955", "text": "interface C2960d {\n /* renamed from: a */\n boolean mo19885a(long j, zzcd.zzc zzc);\n\n /* renamed from: b */\n void mo19886b(zzcd.zzg zzg);\n}", "title": "" }, { "docid": "242404e4840d644d23b27577713c96c5", "score": "0.55669403", "text": "private interface C3744b {\n /* renamed from: a */\n byte mo23985a(int i);\n\n int size();\n }", "title": "" }, { "docid": "e20aa6d3922f35398fce7082e57a4b67", "score": "0.5555941", "text": "public interface C11195b<T> {\n /* renamed from: a */\n void mo18088a(C11438g gVar);\n\n /* renamed from: a */\n void mo18089a(T t);\n}", "title": "" }, { "docid": "cc3d163dd371d243bc6f56ed8e997263", "score": "0.55537105", "text": "public void m14365a(Map<av, Integer> map) {\n if (this.f10344a.f10341a == this) {\n if (this.f10344a.q || this.f10344a.f10340S.isEmpty()) {\n this.f10344a.f10341a = null;\n return;\n }\n av avVar = (av) this.f10344a.f10340S.poll();\n this.f10344a.m14337b(Arrays.asList(new av[]{avVar}), this);\n }\n }", "title": "" }, { "docid": "a2400a8fddf1134ddc2a60db81b6228e", "score": "0.5552674", "text": "public JACKSONObject(Map map) {\r\n\t\tsuper(map);\r\n\t}", "title": "" }, { "docid": "acfef85e82c3c588959ba2996d916ff0", "score": "0.55513126", "text": "public interface C0787a {\n /* renamed from: a */\n void mo654a(Rect rect);\n }", "title": "" }, { "docid": "50cc3246344351fce360266fa8c1f403", "score": "0.55481917", "text": "public interface C0982b {\n /* renamed from: a */\n String mo10301a(String str);\n\n /* renamed from: a */\n void mo10302a();\n\n /* renamed from: a */\n void mo10303a(String str, String str2);\n\n /* renamed from: b */\n void mo10304b();\n}", "title": "" } ]
08d866aaf412738d5a8b1bbed4a01a58
/ a b c 1 | 2 | | | 2 | | | | 3 | | | 1 | a b c
[ { "docid": "90e4bb710cb14cb83aceecff70c88291", "score": "0.0", "text": "@Test\n public void generateValidPawnMoves_twoDirectionsFree() {\n setUpBoard(QuoridorSettings.defaultTwoPlayer().toBuilder().setBoardSize(3));\n board.movePawn(Player.PLAYER2, Square.at('a', 1));\n board.movePawn(Player.PLAYER1, Square.at('c', 3));\n Set<Move> moves = governor.generateValidPawnMoves(Player.PLAYER1);\n assertThat(moves)\n .containsExactly(\n Move.pawnMove(Player.PLAYER1, Square.at('c', 2)),\n Move.pawnMove(Player.PLAYER1, Square.at('b', 3)));\n }", "title": "" } ]
[ { "docid": "efa2fc0fea9b591e8b86922ee1e63a35", "score": "0.5448938", "text": "private static void calculateSubsequences(char[] chars) {\n long a = 0, ab = 0, abc = 0;\n for (char cur : chars) {\n if (cur == 'a') a++;\n if (cur == 'b') ab += a;\n if (cur == 'c') abc += ab;\n }\n count = (int) ((count + abc) % mod);\n }", "title": "" }, { "docid": "8042051185633ef688c8483a712cb09f", "score": "0.5390402", "text": "public static void main(String[] args) {\n Scanner scanner = new Scanner(in);\n\n String chain = scanner.nextLine();\n char[] chainArray = chain.toCharArray();\n String res = \"\";\n int nbOccur = 1;\n for (int i = 1; i < chainArray.length; i++) {\n if (chainArray[i] == chainArray[i - 1]) {\n nbOccur++;\n } else {\n res += chainArray[i - 1];\n res += nbOccur;\n nbOccur = 1;\n }\n }\n\n res += chainArray[chainArray.length - 1];\n res += nbOccur;\n out.println(res);\n }", "title": "" }, { "docid": "62f8f14d0d9489e71a227a866b5d5de3", "score": "0.53025836", "text": "public static void main(String[] a) {\n printResults(\"A|B|C|D\", process(\"A|B|C|D\"));\n printResults(\"A||C|D\", process(\"A||C|D\"));\n printResults(\"A|||D|E\", process(\"A|||D|E\"));\n }", "title": "" }, { "docid": "aed56f04c25c4a545dd886ff7c4e9feb", "score": "0.52830476", "text": "public static void main(String[] args) {\nString s = \"abababsscscsc\";\nchar[] c= s.toCharArray();\nint sz= c.length;\nint i= 0 ,j=0,counter =0;\nfor(i=0;i<sz;++i){\n\tcounter =0;\n\tfor(j=0;j<sz;++j){\n\t\tif(j<i&&c[i]==c[j]){\n\t\t\tbreak;\n\t\t}\n\t\tif(c[j]==c[i]){\n\t\t\tcounter++;\n\t\t}\n\t\tif(j==sz-1){\n\t\t\t//System.out.println(j);\n\t\t\tSystem.out.println(j);\n\t\t\tSystem.out.println(sz-1);\n\t\t\tSystem.out.println(\"hello\" +c[i]+ \" hi\"+ counter);\n\t\t}\n\t}\n\t\n\t\n}\n\t}", "title": "" }, { "docid": "963c08e73a9113b44633cd62107c2bfe", "score": "0.5275987", "text": "private static StringBuilder abriviate(String c) {\n\t\tString[] array=c.split(\" \");\n\t\tStringBuilder newer=new StringBuilder();\n\t\tfor(int i=0;i<array.length;i++) {\n\t\t\tif(array[i].length()<=3) {\n\t\t\t\tnewer.append(array[i]+\" \");\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tint j=array[i].length()-2;\n\t\t\t\tchar c1=array[i].charAt(0);\n\t\t\t\tchar d=array[i].charAt(array[i].length()-1);\n\t\t\t\tnewer.append(c1+Integer.toString(j)+d+\" \");\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn newer;\n\t}", "title": "" }, { "docid": "283e35113b32e4345dfba9fa68ac2d00", "score": "0.5251529", "text": "public static void main(String[] args) {\n\t\tString s = \"bag,bag\";\r\n\t\tString inputs[] = s.split(\",\");\r\n\t\tint ans = new DistinctSubSequence().helper(inputs[0].toCharArray(), inputs[1].toCharArray(), 0, 0);\r\n\t\tSystem.out.println(ans);\r\n\t}", "title": "" }, { "docid": "a0cdd170a4b392b2dc74a273b36d578b", "score": "0.5222234", "text": "public static void main(String[] args) {\n String input = \"four score and four years ago ago four and score years i am\";\n TreeMap<String, Integer> res = count(input);\n String[] buf = new String[res.size()];\n int counter = 0;\n for(Map.Entry<String, Integer> entry: res.entrySet()) {\n String key = entry.getKey();\n Integer i = entry.getValue();\n buf[counter] = i + \" \" + key;\n counter++;\n }\n Arrays.sort(buf);\n for(int i=buf.length-1; i>=0; i--) {\n System.out.println(buf[i]);\n }\n\n }", "title": "" }, { "docid": "7c1af47b4d2b789550baa1769827f8f3", "score": "0.517577", "text": "@Ignore\n @Test\n public void testNext(){\n \n String a=\"23\";\n// System.out.println(test.letterCombinations(a));\n// System.out.println(test.letterCombinations_2(a));\n// \n// System.out.println(test.findRepeatedDnaSequences(\"AAAAACCCCCAAAAACCCCCCAAAAAGGGTTT\"));\n// for(List<String> list : test.partition(a))\n// System.out.println(list);\n// System.out.println( a^b^a);\n// System.out.println( a^a);\n// System.out.println( test.KMP(\"abc1d123ab3c3\",\"123\"));\n// System.out.println( test.KMP(\"mississippi\", \"issip\"));\n// System.out.println(test.addBinary(\"1010\",\"1011\"));\n// System.out.println(Arrays.toString(test.KMPnext_2(\"abab\")));\n// System.out.println(Arrays.toString(test.KMPnext(\"abab\")));\n// System.out.println(Arrays.toString(test.KMPnext(\"abab\")));\n }", "title": "" }, { "docid": "b9d4ea4630a71dbc9a20c4e2e2b4171a", "score": "0.5096283", "text": "public static List<String> findRepeatedDnaSequencesC(String s) {\n List<String> result = new ArrayList<String>();\n int len = s.length();\n if (len < 10) {\n return result;\n }\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n map.put('A', 0);\n map.put('C', 1);\n map.put('G', 2);\n map.put('T', 3);\n Set<Integer> temp = new HashSet<Integer>();\n Set<Integer> added = new HashSet<Integer>();\n int hash = 0;\n for (int i = 0; i < len; i++) {\n if (i < 9) {\n //each ACGT fit 2 bits, so left shift 2\n hash = (hash << 2) + map.get(s.charAt(i));\n } else {\n hash = (hash << 2) + map.get(s.charAt(i));\n //make length of hash to be 20\n hash = hash & (1 << 20) - 1;\n if (temp.contains(hash) && !added.contains(hash)) {\n result.add(s.substring(i - 9, i + 1));\n added.add(hash); //track added\n } else {\n temp.add(hash);\n }\n }\n }\n return result;\n }", "title": "" }, { "docid": "63dfb41bbdae7a3f6450a7845e980f06", "score": "0.5086153", "text": "public void combinationOfStrings()\r\n\t{\n\t \r\n\t String str = \"This is String nitin tajane laxmna\";\r\n\t String[] splited = str.split(\" \");\r\n\t String split_one=splited[0];\r\n\t String split_second=splited[1];\r\n\t String split_three=splited[2];\r\n\t String[] splitafter = str.split(\" \", 3);\r\n\t System.out.println(splitafter[2]);\r\n\t \r\n\t /*for(String name: splitafter)\r\n\t {\r\n\t \t System.out.println(name);\r\n\t }*/\r\n\r\n\t}", "title": "" }, { "docid": "32e2ec30645784bd6c520cb27b62526b", "score": "0.5084095", "text": "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tint l=sc.nextInt();\r\n\t\tString b=sc.next();\r\n\t\tString g=sc.next();\r\n\t\tint c=0;\r\n\t\tboolean found=false;\r\n\t\tfor(int i=0;i<b.length();i++)\r\n\t\t{\r\n\t\t\tfound=false;\r\n\t\t\tfor(int j=0;j<g.length();j++)\r\n\t\t\t{\r\n\t\t\t\tif(b.charAt(i)==g.charAt(0))\r\n\t\t\t\t{\r\n\t\t\t\t\tc++;\r\n\t\t\t\t\tfound=true;\r\n\t\t\t\t\tg=g.substring(1);\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\tif(g.length()>1)\r\n\t\t\t\t\t\tg=g.substring(1, g.length()) + g.charAt(0);\r\n\t\t\t\t}\r\n\t\t\t\tif(!found)\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.print(l-c);\r\n\t\tsc.close();\r\n\t\t\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "161ec615d5062632117820047140c0bc", "score": "0.50358045", "text": "public static void main(String [] args) throws Exception\n{\n\tScanner scan = new Scanner(new File(\"/Users/jaysonnegron/Documents/workspace/Alien/src/A-small-practice.in\"));\t\n\tint n = scan.nextInt();\n\tStringBuilder build = new StringBuilder();\n\tfor (int i = 1; i <= n; i++)\n\t{\t\t\n\t\tbuild.delete(0, build.length());\n\t\tString s1 = scan.next();\n\t\tString s2 = scan.next();\n\t\tString s3 = scan.next();\n\t\tint sum1 = s1.length(), sum2 = s2.length(), sum3 = s3.length();\n\t\tint num = 0;\n\t\tfor (int k = 0; k < sum1; k++)\n\t\t{\n\t\t\tchar ch = s1.charAt(k);\n\t\t\tfor (int j = 0; j < sum2; j++)\n\t\t\t{\n\t\t\t\tif (ch == s2.charAt(j))\n\t\t\t\t{\n\t\t\t\t\tnum *= sum2;\n\t\t\t\t\tnum +=j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (num == 0)\n\t\t\tbuild.append(s3.charAt(0));\n\t\twhile (num > 0)\n\t\t{\t\t\t\n\t\t\tbuild.append(s3.charAt(num%sum3));\t\n\t\t\tnum /= sum3;\n\t\t}\n\t\tbuild.reverse();\n\t\tSystem.out.println(\"Case #\"+i+\": \"+build.toString());\n\t}\n\t\n}", "title": "" }, { "docid": "a1e79d1969bdbceaa1a022860f9063ed", "score": "0.5015812", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(arrangeSequence(10, 8, Arrays.asList(1,4,7,3,4,10,1,3)));\r\n\t}", "title": "" }, { "docid": "da7e4f7e1deb24fcf66440d57df16e72", "score": "0.5013608", "text": "public static void main(String[] args) {\n int t = 2;\n String [] result = new String[t];\n for (int i=0; i<t; i++){\n int m = 4;\n int n = 5;\n int a[] = {1, 4, 5, 3, 2};\n /*for (int j=0; j<n; j++){\n a[0] = scanner.nextInt();\n }*/\n for (int c = 0; c<n-1;c++){\n if (a[c] < m){\n for (int d =c+1; d<n; d++){\n if (a[c]+a[d] == m){\n result[i] = new String((c+1) + \" \" + (d+1));\n break;\n }\n }\n }\n }\n }\n for (int i=0; i<t; i++){\n System.out.println(result[i]);\n }\n }", "title": "" }, { "docid": "5c5514e574ae5f783b0e6e5a27bd396e", "score": "0.50125164", "text": "@Test\n\tpublic void eg1() {\n\t\tList<String> transactions= new ArrayList<>(Arrays.asList(\"notebook\",\"notebook\",\"mouse\",\"keyboard\",\"mouse\"));\n\t\tSystem.out.println(group(transactions));\n\t}", "title": "" }, { "docid": "8fed56acf63c9f6b9505b4f572f6f9a6", "score": "0.50089157", "text": "public static void main(String[] args) {\n\t\tint a=8,b=3,count=0;\n\t\tfor(int i=0;i<100;i++){\n\t\tif(b==2){\n\t\tif(i>8){\n\t\tbreak;\n\t\t}\n\t\telse{\n\t\tStringBuffer s=new StringBuffer();\n\t\ts.append(i+\",\"+(a-i));\n\t\tSystem.out.print(s);\n\t\tcount++;\n\t\t}\n\t\t}\n\t\telse{\n\t\tStringBuffer s=new StringBuffer();\n\t\tfor(int k=0;k<b-2;b++){\n\t\ts.append(\"(0,\");\n\t\t}\n\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\t}", "title": "" }, { "docid": "a084248cd2bbc6beed6158641127d297", "score": "0.50069517", "text": "public static int Main()\n\t{\n\t\tchar[][] a = new char[500][6]; //????n-gram??\n\t\tString p = a;\n\t\tint[] b = new int[500]; //????\n\t\tint[] q = b;\n\t\tString c = new String(new char[500]); //?????\n\t\tString r = c;\n\t\tint n;\n\t\tint m = 1;\n\t\tint i;\n\t\tint j;\n\t\tint k = 0;\n\t\tint l;\n\t\tint flag;\n\t\tn = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tc = ConsoleInput.readToWhiteSpace(true).charAt(0);\n\t\tfor (i = 0; i <= c.length() - n; i++) //????\n\t\t{\n\t\t\tfor (j = 0; j < n; j++)\n\t\t\t{\n\t\t\t\t*(*(p.Substring(i)) + j) = *(r.Substring(i) + j);\n\t\t\t}\n\t\t}\n\t\tfor (i = 1; i < c.length() - n + 1; i++) //??????\n\t\t{\n\t\t\tfor (j = 0; j < i; j++) //???????\n\t\t\t{\n\t\t\t\tflag = 1;\n\t\t\t\tfor (k = 0; k < n; k++) //??????\n\t\t\t\t{\n\t\t\t\t\tif (*(r.Substring(i) + k) != *(r.Substring(j) + k))\n\t\t\t\t\t{\n\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag != 0) //???\n\t\t\t\t{\n\t\t\t\t\t(q[j])++; //??+1\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tflag = 1;\n\t\tfor (i = 500; i > 1; i--) //??????????\n\t\t{\n\t\t\tfor (j = 0; j < c.length(); j++) //????????\n\t\t\t{\n\t\t\t\tif (q[j] + 1 == i) //????????\n\t\t\t\t{\n\t\t\t\t\tif (flag != 0) //??????\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print((q + j) + 1);\n\t\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t}\n\t\t\t\t\tfor (l = 0; l < n; l++) //????\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print((*(p.Substring(j)) + l));\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == 0) //??????\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (flag != 0) //???????NO\n\t\t{\n\t\t\tSystem.out.print(\"NO\");\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "7e1945c8eaeaf9cda62c963a04c2bff9", "score": "0.4998313", "text": "public static void main(String[] args) {\n\t\tint a[] = { 9, 7, 9, 4, 5, 3, 11 };\r\n\t\tfor(int i=0;i<a.length;i++){\r\n\t\t\tfor(int j=i+1;j<a.length;j++){\r\n\t\t\t\tSystem.out.println(a[i]+\" \"+a[j]);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2cd48c7f7ecd13d9ea9b89bfa86c9e10", "score": "0.49892637", "text": "private static void perm2(char[] a, int cid) {\r\n\t\tif (cid == (a.length - 1)) {\r\n\t\t\tSystem.out.println(new String(a));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor (int i = cid; i < a.length; i++) {\r\n\t\t\tswap(a, i, cid);\r\n\t\t\tperm2(a, cid + 1);\r\n\t\t\tswap(a, i, cid);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6cdc43923f5a1665511d4a810d6624c2", "score": "0.49877897", "text": "public static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tString s = reader.nextLine();\n\t\tchar[] a = s.toCharArray();\n\t\tint n = a.length;// n=2000;\n\t\tint count = 0;\n\t\tint max = 0;\n\t\tString result = \"\";\n\t\tString tmp = \"\";\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint l = i;\n\t\t\tint r = n - 1;\n\t\t\tcount = 0;\n\t\t\ttmp = \"\";\n\t\t\tint index = 0;\n\t\t\tint indexr=n-1;\n\t\t\twhile (l < n - 1 && r>=0) {\n\t\t\t\tif (a[l] == a[r] && r>l) {\n\t\t\t\t\tcount++;\n\t\t\t\t\ttmp += a[l];\n\t\t\t\t\tl++;\n\t\t\t\t\tindex = l;\n\t\t\t\t\tindexr=r--;\n\t\t\t\t\tSystem.out.println(tmp);\n\n\t\t\t\t}\n\t\t\t\tr--;\n\t\t\t\telse if (r == l ) {\n\t\t\t\t\tr = indexr;\n\t\t\t\t\tl++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcount++;\n\t\t\ttmp = tmp + a[index];\n\t\t\tif (count > max) {\n\t\t\t\tmax = count;\n\t\t\t\tresult = tmp.toString();\n\t\t\t}\n\t\t}\n\t\tchar[] r = result.toCharArray();\n\t\tint len = r.length - 1;\n\t\tfor (int i = len-1; i >= 0; i--)\n\t\t\tresult += r[i];\n\t\tSystem.out.println(result);\n\t}", "title": "" }, { "docid": "36d023bbf3d1d93c228c37312c60adfa", "score": "0.495646", "text": "public static void main(String[] args) {\n\t\tint [] a = new int []{1,2,3,4};\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i :a){\n\t\t\tsb.append(i);\n\t\t}\n\t\t//permute(sb.toString(), \"\");\n\t\tint a1 = 1;\n\t\tint b = a1++;\n\t\tint c = ++b;\n\t\tSystem.out.println(a1 + \"\" +b + \"\" +c);\n\n\t}", "title": "" }, { "docid": "486ccd2882fc1e2b7fcfe435d7ea8880", "score": "0.49520573", "text": "public static int Main()\n\t{\n\t\tString a = new String(new char[1002]);\n\t\ta = ConsoleInput.readToWhiteSpace(true).charAt(0);\n\t\tfor (int i = 2; i <= a.length(); i++)\n\t\t{\n\t\t\tfor (int j = 0; j <= a.length() - i; j++)\n\t\t\t{\n\t\t\t\tint p = 0;\n\t\t\t\tfor (int x = 0; x < i; x++)\n\t\t\t\t{\n\t\t\t\t\tif (a.charAt(j + x) != a.charAt(j + i - x - 1))\n\t\t\t\t\t{\n\t\t\t\t\t\tp = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (p == 0)\n\t\t\t\t{\n\t\t\t\t\tfor (int x = j; x < j + i; x++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(a.charAt(x));\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "02c28ababb1fc4c5b935c829e7e476fa", "score": "0.49460834", "text": "String concatNtimes(String a,int n);", "title": "" }, { "docid": "b8cef60a920dc1a0b19a41d394183ce4", "score": "0.4935793", "text": "@Test\n public void digramUniquenessViolation() { // next c creates a nonterminal terminal rule already implicitly added\n String input = \"acgtcgac\";\n Compress c = new Compress();\n c.processInput(input, false); // g2 is created by adding the last c, but g2 was implicitly added\n assertEquals(\"0 > 2 4 4' | 4 > 2' c | 2 > a c | \", c.printRules());\n }", "title": "" }, { "docid": "64f448a32af2e800bc2058e792bb4ffa", "score": "0.49260443", "text": "public String makeAbba(String a, String b) {\n return a + b + b + a;\n}", "title": "" }, { "docid": "2ace9b3d5fbd39a2da37159e971a3063", "score": "0.49225265", "text": "public static void test10() {\n\t\tString str = \"abb\";\n\t\tList<String> result = task10_permutationsII(str);\n\t\tSystem.out.println(result);\n\t}", "title": "" }, { "docid": "9bc1f0fed36d98746440afd17a9a9cf9", "score": "0.49033195", "text": "public static int Main()\n\t{\n\t\tString a = new String(new char[1010]);\n\t\tchar b;\n\t\tchar c;\n\t\tint i;\n\t\tint j;\n\t\tint k;\n\t\tint n = 0;\n\t\tint length;\n\t\ta = ConsoleInput.readToWhiteSpace(true).charAt(0);\n\t\tlength = a.length();\n\t\tfor (i = 0;i < length;i++)\n\t\t{\n\t\t\tb = a.charAt(i);\n\t\t\twhile (a.charAt(i) == b || (a.charAt(i) - ('a'-'A')) == b || (a.charAt(i) + ('a'-'A')) == b)\n\t\t\t{\n\t\t\t\tn = n + 1;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (a.charAt(i - 1) >= 'a')\n\t\t\t{\n\t\t\t\tb = a.charAt(i - 1) - ('a'-'A');\n\t\t\t\tSystem.out.print(\"(\");\n\t\t\t\tSystem.out.print(b);\n\t\t\t\tSystem.out.print(\",\");\n\t\t\t\tSystem.out.print(n);\n\t\t\t\tSystem.out.print(\")\");\n\t\t\t}\n\t\t\tif (a.charAt(i - 1) < 'a')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"(\");\n\t\t\t\tSystem.out.print(a.charAt(i - 1));\n\t\t\t\tSystem.out.print(\",\");\n\t\t\t\tSystem.out.print(n);\n\t\t\t\tSystem.out.print(\")\");\n\t\t\t}\n\t\t\ti = i - 1;\n\t\t\tn = 0;\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "9c36d9eba942225ed0d61f5705189457", "score": "0.48997054", "text": "public static void main(String[] args) {\n\t\t\n\t\tString s = \"baa\";\n\t\tint countb = 0,prev = 0;\n\t\tint min = 0;\n\t\tfor(int i = 0 ; i<s.length();i++)\n\t\t{\n\t\t\tchar c = s.charAt(i);\t\t\t\n\t\t\tif(c == 'b')\n\t\t\t\tcountb++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tmin = Math.min(min+1, countb);\n\t\t\t\t\t\n\n\t\t\t}\n\t\t}\n\t \n\t\t\n\t\tSystem.out.println(min);\n\n\t}", "title": "" }, { "docid": "6bda9e536710d5260da70ac240369d42", "score": "0.4898951", "text": "static int alternatingCharacters(String s) {\n int minimumNoOfDeletions = 0;\n final char[] chars = s.toCharArray();\n\n for (int i = 0; i < chars.length; i++) {\n if(i+1 < chars.length && chars[i] == chars [i+1]) {\n minimumNoOfDeletions++;\n }\n }\n return minimumNoOfDeletions;\n }", "title": "" }, { "docid": "6ebc279d55b06756942423c16624855c", "score": "0.48960748", "text": "public static void main(String[] args) {\n\t FastReader sc = new FastReader();\n\t int n = sc.nextInt();\n Set<Character> set = new HashSet<>();\n \n for (int i = 0; i < n; i++) {\n \t char c = sc.next().charAt(0);\n \t set.add(c);\n }\n \n if (set.size() == 3) {\n \t System.out.println(\"Three\");\n } else if (set.size() == 4) {\n \t System.out.println(\"Four\");\n }\n }", "title": "" }, { "docid": "b130eead2a2221c6a3c3a6eec123abce", "score": "0.4886913", "text": "void mo37856a(String str, int i, String str2, String str3);", "title": "" }, { "docid": "7b3c0c5e3049d854248758e3c1d3eb42", "score": "0.48842886", "text": "public static void main(String[] args) {\n\t\tList<Integer> list ;\n\t\tlist = findAnagrams(\"ababababab\", \"aab\"); \n\t\tSystem.out.println(list.toString());\t//0246 ababababab aab\n\t}", "title": "" }, { "docid": "22e80afd8713a63113044e4def2ce471", "score": "0.48729575", "text": "public static void main(String[] args) throws IOException {\n\r\n\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tStringTokenizer st;\r\n\t\t\r\n\t\tst= new StringTokenizer(br.readLine());\r\n\t\tint cnt = Integer.parseInt(st.nextToken());\r\n\t\tboolean []chk = new boolean[cnt+1];\r\n\t\tString[]tmp = new String[cnt+1];\r\n\t\tst = new StringTokenizer(br.readLine());\r\n\r\n\t\tfor (int i = 1; i <= cnt; i++) {\r\n\t\t\ttmp[i] = st.nextToken();\r\n\r\n\t\t}\r\n\t\tboolean chk1 =false ;\r\n\t\tfor (int i = 1; i <= cnt; i++) {\r\n\t\t\tString a = tmp[i];\r\n\t\t\tint cnt1 = 0 ;\r\n\r\n\t\t\tif (chk[i] == true) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tfor (int j = i + 1; j <= cnt; j++) {\r\n\r\n\t\t\t\tif (a.equals(tmp[j]))\r\n\t\t\t\t{\r\n\t\t\t\t\tif (cnt1 == 0 ) {\r\n\t\t\t\t\t\tSystem.out.print(a+\" \"+i+\" \"+j+\" \");\r\n\t\t\t\t\t\tcnt1++;\r\n\t\t\t\t\t\tchk[j] = true;\r\n\t\t\t\t\t\tchk1 = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (chk[j] == false) {\r\n\t\t\t\t\t\tchk[j] = true;\r\n\t\t\t\t\t\tSystem.out.print(j+\" \");\r\n\t\t\t\t\t\tchk1 = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (!chk1) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\t\r\n\t\t\tcnt1 = 0;\r\n\t\t}\r\n\t\tif (!chk1) {\r\n\t\t\tSystem.out.println(\"unique\");\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "e749d58beac45037e70f57041cd99cb5", "score": "0.48712397", "text": "public static void sort3() {\n\t\ttoSort = line2.split(\" \");\r\n\t\tlength = toSort.length;\r\n\t\tSystem.out.println(length);\r\n\r\n\t\tint c1 = 0;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tfinal int N = 1000000000;\r\n\t\tfinal int LOOP = 10;\r\n\t\tBitSet[] bs = new BitSet[10];\r\n\r\n\t\tfor (int i = 0; i < LOOP; i++) {\r\n\t\t\tbs[i] = new BitSet();\r\n\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\tString temp = toSort[i];\r\n\t\t\ttry {\r\n\t\t\t\tlong e = Long.parseLong(temp);\r\n\t\t\t\tint exp = (int) (e / N);\r\n\t\t\t\tint pos = (int) (e % N);\r\n\t\t\t\tbs[exp].set(pos);\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < LOOP; i++) {\r\n\t\t\tfor (int j = bs[i].nextSetBit(0); j >= 0; j = bs[i]\r\n\t\t\t\t\t.nextSetBit(j + 1)) {\r\n\t\t\t\tc1++;\r\n\t\t\t\tsb.append(' ');\r\n\t\t\t\tif (i > 0) {\r\n\t\t\t\t\tsb.append(i);\r\n\t\t\t\t}\r\n\t\t\t\tsb.append(j);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// pause();\r\n\t\tSystem.out.println(c1);\r\n\t\t// System.out.println(sb.toString().substring(1));\r\n\t\tSystem.out.println(System.currentTimeMillis() - start);\r\n\r\n\t}", "title": "" }, { "docid": "0e4897af08159252f5f652c0243becbf", "score": "0.48596838", "text": "public static void main(String[] args) {\n\t\t\n\t\tPattern pattern = Pattern.compile(\"[a-z]{3}\");\n\t\tMatcher matcher = pattern.matcher(\"abcd ad adjfl faljf\");\n\t\twhile(matcher.find()){\n\t\t\tSystem.out.println(matcher.group());\n\t\t}\n\t}", "title": "" }, { "docid": "66960aa39690bebfdd8020e4d2a3d12b", "score": "0.48581272", "text": "public static void main(String[] args) {\n\t\tint a= 0,b=1,count=10,c=0,d;\n\t\tSystem.out.print(a);\n\t\twhile(count!=0){\n\t\t\tc= a+b;\n\t\t\tSystem.out.print(\",\"+b);\n\t\t\ta=b;\n\t\t\tb=c;\n\t\t\tcount-=1;\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "88ab67182a9a688f560edc143464882f", "score": "0.48561153", "text": "@Test\r\n\tpublic void checkMutliple() {\r\n\t\tMap<String, Integer> output = new LinkedHashMap<String, Integer>();\r\n\t\toutput.put(\"fifty-six bottles\", 2);\r\n\t\toutput.put(\"bottles of\", 2);\r\n\t\toutput.put(\"of pop\", 2);\r\n\t\toutput.put(\"pop on\", 1);\r\n\t\toutput.put(\"on the\", 1);\r\n\t\toutput.put(\"the wall\", 1);\r\n\t\toutput.put(\"wall fifty-six\", 1);\r\n\t\tAssert.assertEquals(output,\r\n\t\t\t\tbigram.calculateBigram(\"Fifty-six bottles of pop on the wall. fifty-six bottles of pop.\"));\r\n\t}", "title": "" }, { "docid": "7d5568ae3a1321be2e88ea1a870bb28f", "score": "0.4851593", "text": "public static void main(String[] args) {\n String input = \"abcccca\";\n int k = 2, length = input.length();\n HashMap<Character, Integer> checker = new HashMap<>();\n int charCount = 0, left = 0, right = 0, largestLeft = 0, largestRight = 0;\n int newCharacterAnchor = 0, previousNewCharacterAnchor = 0;\n\n for (; right < length; right++) {\n char currentChar = input.charAt(right);\n if (!checker.containsKey(currentChar)) {\n charCount++;\n if (charCount > k) {\n charCount--;\n if ((largestRight - largestLeft) < (right-1 - left)) {\n largestLeft = left;\n largestRight = right - 1;\n }\n left = newCharacterAnchor;\n checker.remove(input.charAt(previousNewCharacterAnchor));\n }\n checker.put(currentChar, 1);\n }\n\n if (right > 0) {\n if (input.charAt(right) != input.charAt(right - 1)) {\n previousNewCharacterAnchor = newCharacterAnchor;\n newCharacterAnchor = right;\n }\n }\n }\n if ((largestRight - largestLeft) < (right-1 - left)) {\n largestLeft = left;\n largestRight = right - 1;\n }\n\n System.out.println(input.substring(largestLeft, largestRight+1));\n }", "title": "" }, { "docid": "44f21509492c79e81d89e4b859d474a9", "score": "0.4845224", "text": "public static ArrayList findAllAnagramsOfGivenPatternInSource(String source, String pattern) {\n int n = source.length(), k = pattern.length();\n ArrayList<Integer> startIndices = new ArrayList<>();\n if (n < k) {\n return startIndices;\n }\n HashMap<Character, Integer> hm = new HashMap<>();\n for(int i = 0; i < k; i++) {\n char ch = pattern.charAt(i);\n if (hm.containsKey(ch)) {\n hm.put(ch, hm.get(ch)+1);\n } else {\n hm.put(ch, 1);\n }\n }\n //System.out.println(hm);\n int start = 0, startIndex = -1, endIndex = -1, continuous = 0;\n for (int end = 0; end < n; end++) {\n char ch = source.charAt(end);\n\t /* if character is present in HashMap then decrement it's frequency by 1\n as and if it's frequency is 0 i.e we have matched all of it's frequency\n from the pattern so if it's frequency is 0 increment continuous i.e continuously\n we have found a character of pattern in the String, if frequency goes\n negative it means currently included character is a part of pattern*/\n if (hm.containsKey(ch)) {\n hm.put(ch, hm.get(ch)-1);\n if (hm.get(ch) == 0) {\n continuous++;\n }\n }\n\t /* HashMapsize is nothing but no. of unique characters in the pattern\n if we also continuously match those many characters then we got our ans*/\n if (continuous == hm.size()) {\n endIndex = end; // storing endIndex of any permutation of the pattern in source\n //startIndex = end - k + 1; // end - k + 1 == start so we can use start also // storing startIndex of any permutation of the pattern in source\n\t\tstartIndex = start;\n\t\tstartIndices.add(startIndex);\n //System.out.println(startIndex+\" \"+endIndex);\n \n }\n\t /* if current window length exceeds length of pattern then \n take character at start and if it is present in hashmap\n increment it's frequency by 1 as we have already decremented it in\n above if statement i.e we are putting it back in the hashmap \n but before putting it back in hashmap check if it's frequency is 0\n if it is 0 that means it got completely matched in above if statement\n and we have incremented continuous value, but as now it is 0 it got \n unmatched so decrement continuous value and add a frequency of 1 to it in hashmap*/\n if (end - start + 1 >= k) {\n char c = source.charAt(start);\n if (hm.containsKey(c)) {\n if (hm.get(c) == 0) {\n continuous--;\n }\n hm.put(c,hm.get(c)+1);\n }\n start++;\n }\n }\n return startIndices;\n }", "title": "" }, { "docid": "1a9d3159cc8fe584e3e1955af4f001f6", "score": "0.48444", "text": "public static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter a 3-word sentence : \");\n\t\t\n\t\tString s=input.nextLine();\n\t\tint a=s.indexOf(' ');\n\t\tString s1=' '+s.substring(0, a);\n\t\t\n\t\tString s2=s.substring(a+1);\n\t\t\n\t\tint b=s2.indexOf(' ');\n\t\tString s4=' '+s2.substring(0,b+1);\n\t\t\n\t\tfor(int i=1;i<=s.length();i++) {\n\t\t\tfor(int j=i;j>=1;j--) {\n\t\t\t\tSystem.out.println(j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint m=s2.indexOf(' ');\n\t\tString s3=s2.substring(m);\n\t\tSystem.out.println(s1+s4+s3);\n\t\tSystem.out.println(s1+s3+s4);\n\t\tSystem.out.println(s4+s1+s3);\n\t\tSystem.out.println(s4+s3+s1);\n\t}", "title": "" }, { "docid": "c1662a2952e8245d7d88c92b67c62fe0", "score": "0.48429066", "text": "private void uniqueString(){\n multiplicity = new int[rack.length()];\n for(int i = 0; i < rack.length(); i++){\n multiplicity[i] = ORI_NUM;\n for(int j = i+1; j < rack.length(); j++){\n if(rack.charAt(i) == rack.charAt(j)){\n multiplicity[i] += 1;\n rack = rack.substring(0, j) + rack.substring(j+1);//remove this letter in the rack\n j -= 1;//If you remove the jth letter, the order of next letter will become j. So j= j-1.\n }\n }\n }\n }", "title": "" }, { "docid": "ed4893e72fd48896f03c9c31f2f02787", "score": "0.48352313", "text": "@Test\n\tpublic void test3bestSeq() {\n\t}", "title": "" }, { "docid": "18759bfb3b180b5cb16863ac95125272", "score": "0.48352048", "text": "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String a = sc.nextLine();\n String b = sc.nextLine();\n\n int res = 0;\n for (int i = 0; i < a.length(); i++) {\n int j = 0;\n int k = i;\n while (j < b.length() && k < a.length() && a.charAt(k) == b.charAt(j)) {\n j++;\n k++;\n }\n\n if (j == b.length()) {\n res++;\n i = k - 1;\n }\n }\n\n System.out.println(res);\n }", "title": "" }, { "docid": "cabd7f862af5e041e70ea3b21dd473c9", "score": "0.4827866", "text": "public static void main(String[] args) {\n\t\n\tString str=\"AAABCDEEFFGHHHJKKKKLOOP\";\n\tString unique=\"\";\n\t\n\tfor(int j=0; j<str.length(); j++) {\n\tint count=0; //count how many times characters is appeared\n\t\n\t for(int i=0; i<str.length(); i++) {\n\t\t //highest value of i: str.length()-1\n\t\t//if(str.substring(i, i+1).equals(\"\"+str.charAt(j))) { //try to use substring instead charAt\n\t\t\tif(str.substring(i, i+1).equals(str.substring(j, j+1))) {\n\t\t\tcount++;\n\t\t}\n\t}\n\t if(count==1) {\n\t\t unique+=\"\"+str.charAt(j);\n\t }\n\t}\n\tSystem.out.println(unique);\n}", "title": "" }, { "docid": "170f136b403470573a85015c6d542f1f", "score": "0.48266208", "text": "public static void main(String[] args) {\n//\t\tStream<Integer> s= Stream.of(1);\r\n//\t\tIntStream is = s.mapToInt(x -> x);\r\n//\t\tDoubleStream ds = s.mapToDouble(x->x);\r\n//\t\tStream<Integer> s2 = ds.mapToInt(x->x);\r\n//\t\t\r\n\t\tStream<String> s = Stream.empty();\r\n\t\tStream<String> s2 = Stream.empty();\r\n\t\tMap<Boolean, List<String>> p = s.collect(Collectors.partitioningBy(b -> b.startsWith(\"c\")));\r\n\t\tMap<Object, List<String>> g = s2.collect(Collectors.groupingBy(b-> b.startsWith(\"c\")));\r\n\t\t\r\n\t\tSystem.out.println(p );\r\n\t\tSystem.out.println(g);\r\n \t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(Stream.iterate(1, x-> ++x).limit(5).map(x->\"\" + x).collect(Collectors.joining(\"\")));\r\n\t}", "title": "" }, { "docid": "ac78cd23de533b3be13640c28fc8f7de", "score": "0.48230556", "text": "public String oneTwo(String str) {\n String result = \"\";\n for (int i=0; i<str.length()-2; i+=3){\n result += str.substring(i+1,i+3) + str.substring(i,i+1);\n }\n return result;\n}", "title": "" }, { "docid": "bca2b7e049ddb245f7fe630a37d93b82", "score": "0.48225006", "text": "public void writeCharCounts(){\n String input = \"aaabbccdaa\";\n char[]chars = input.toCharArray();\n Arrays.sort(chars);\n int charcount = 1;\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < chars.length-1;i++){\n if (chars[i]==chars[i+1]){\n charcount += 1;\n }\n else{\n result.append(chars[i]);\n result.append(charcount);\n charcount = 1;\n if (i+1==chars.length-1){\n result.append(chars[i+1]);\n result.append(charcount);\n\n }\n }\n }\n System.out.println(result);\n }", "title": "" }, { "docid": "7a87a80d5feac61769d62d2ec30d31a2", "score": "0.48222968", "text": "public static void main(String[] args) {\n\t Scanner scan = new Scanner(System.in);\n\t String word = scan.next();\n\t String separator = scan.next();\n\t int count = scan.nextInt();\n\t \n\t \n\t int L = separator.length();\n\t word = word.concat(separator);\n\t String a=\"\";\n\t \n\t for (int i=1;i<=count; i++){\n\t \ta+=word;\n\t }\n\t \n\t int aL = a.length();\n\t a = a.substring(0, aL-L);\n\t System.out.println(a);\n\t}", "title": "" }, { "docid": "4212d1c3857db68abdb0eda89cd7d68a", "score": "0.48210815", "text": "static void minimumBribes(int[] q) {\n if(q.length== 0) {\n \tSystem.out.println(\"Too chaotic\");\n\t\t\treturn;\n }\n \n int count =0;\n for(int i=q.length-1; i>0; i--) {\n \tif(q[i] == i+1) {\n \t\tcontinue;\n \t} else {\n \t\tif(q[i-1] == i+1) {\n \t\t\tswap(q, i, i-1);\n \t\t\tcount++;\n \t\t} else if(q[i-2] == i+1) {\n \t\t\tswap(q, i-2, i-1);\n \t\t\tswap(q, i-1, i);\n \t\t\tcount = count+2;\n \t\t} else {\n \t\t\tSystem.out.println(\"Too chaotic\");\n \t\t\treturn;\n \t\t}\n \t}\n }\n \t\n System.out.println(count);\n }", "title": "" }, { "docid": "0fb02d6a3780840c8f260fb54cecd31a", "score": "0.48194158", "text": "public static void main(String[] args) {\n\t\tint space = 2*, value = 1;\n\t\tfor (int i = 1; i <= 4; i++) {\n\t\t\tfor (int j = 1; j <= i; j++) {\n\n\t\t\t\tSystem.out.print(value + \"\\t\");\n\t\t\t\tvalue++;\n\t\t\t}\n\t\t\tvalue = 1;\n\n\t\t\tfor (int j = 1; j <= space; j++) {\n\t\t\t\tSystem.out.print(\"\\t\");\n\t\t\t}\n\t\t\tvalue = i;\n\n\t\t\tfor (int j = 1; j <= i; j++) {\n \n\t\t\t\tSystem.out.print(value + \"\\t\");\n\t\t\t\tvalue--;\n\t\t\t}\n\t\t\tvalue = 1;\n\n\t\t\tSystem.out.println();\n\t\t\tspace = space - 2;\n\t\t}\n\n\t}", "title": "" }, { "docid": "3e4380bf03aecc44db0eeb092b93194c", "score": "0.48155332", "text": "@Override\r\n\tpublic int challengeTwo(String[] a, String query) {\r\n\t\tint len = a.length;\r\n\t\tString[] temp = new String[len];\r\n\t\t// l = letter, start from last letter to first letter\r\n\t\tfor (int l = 4; l >= 0; l--) {\r\n\t\t\tint[] count = new int[124]; // 0-124, bucket with key as ascii values and value as count\r\n\t\t\tfor (int i = 0; i < len; i++) // find total count of each ascii value\r\n\t\t\t\tcount[a[i].charAt(l) + 1]++;\r\n\t\t\tfor (int i = 0; i < 123; i++) // replace count with starting position\r\n\t\t\t\tcount[i + 1] += count[i];\r\n\t\t\tfor (int i = 0; i < len; i++) // fill temp array\r\n\t\t\t\ttemp[count[a[i].charAt(l)]++] = a[i];\r\n\t\t\tSystem.arraycopy(temp, 0, a, 0, 10000); // copy back\r\n\t\t}\r\n\t\treturn linearSearch(a, query);\r\n\t}", "title": "" }, { "docid": "5623f298ee7911cc595f5877c58d06ae", "score": "0.48123828", "text": "public String comboString(String a, String b) {\n String result = \"\";\n if (a.length() > b.length()) result += b+a+b;\n if (b.length()> a.length()) result += a+b+a;\n return result;\n}", "title": "" }, { "docid": "8c2a219f4a31121a563940e21eb70a26", "score": "0.4810201", "text": "public static void main(String[] args) {\n\n\n String s = \"C2.TIME_ONE AS ITEM_0,C2.TIME_TWO AS ITEM_1,C2.TIME_THR AS ITEM_2\";\n s = s.replaceAll(Const.AS, Const.EMPTY_CH);\n String[] split = StringUtils.split(s, ',');\n StringBuilder sb = new StringBuilder();\n for (int i= 0 ,len=split.length,last = len -1;i<len;i++) {\n String[] split1 = StringUtils.split(split[i], ' ');\n sb.append(\"'' \"+split1[1]);\n if (i != last) {\n sb.append(',');\n }\n }\n System.out.print(sb.toString());\n }", "title": "" }, { "docid": "7024cdc3ebaa2006d1e033cc925be8ff", "score": "0.48076126", "text": "public static void main(String[] args) {\n\t\tString str = scn.nextLine();\n\n\t\tint noofsubsequence = (int) Math.pow(2, str.length());\n\t\tfor (int i = 0; i < noofsubsequence; i++) {\n\t\t\tint n = i;\n\t\t\tString s = \"\";\n\t\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\t\tint rem = n % 2;\n\t\t\t\tif (rem == 1) {\n\t\t\t\t\ts = s + str.charAt(j);\n\t\t\t\t}\n\n\t\t\t\tn = n / 2;\n\t\t\t}\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "title": "" }, { "docid": "bee70e21b5008b296f6a59da120458e4", "score": "0.48071495", "text": "public static void main(String[] args) {\n String[] a = \"MERGESORTEXAMPLE\".split(\"\");\n MergeBottomUp.sort(a);\n show(a);\n// for (int i = 1; i <= 256; i<<=1) {\n// System.out.println(i);\n// }\n }", "title": "" }, { "docid": "4eeb0818b2b1bc1d7cc03cc5ae97c8c1", "score": "0.4806286", "text": "private static int/*unsigned*/ getCombiningIndexFromStarter(char c,char c2){\n long/*unsigned*/ norm32;\n\n norm32=getNorm32(c);\n if(c2!=0) {\n norm32=getNorm32FromSurrogatePair(norm32, c2);\n }\n return extraData[(getExtraDataIndex(norm32)-1)];\n }", "title": "" }, { "docid": "eb9c4f2952030b838e5d6821372dff83", "score": "0.48056346", "text": "public static void main(String[] args){\n\t\t\n\t\t Scanner in = new Scanner(System.in);\n\t int res;\n\t \n\t String n = in.nextLine();\n\t String[] n_split = n.split(\" \");\n\t \n\t int _a_size = Integer.parseInt(n_split[0]);\n\t int _k = Integer.parseInt(n_split[1]);\n\t \n\t int[] _a = new int[_a_size];\n\t int _a_item;\n\t String next = in.nextLine();\n\t String[] next_split = next.split(\" \");\n\t \n\t for(int _a_i = 0; _a_i < _a_size; _a_i++) {\n\t _a_item = Integer.parseInt(next_split[_a_i]);\n\t _a[_a_i] = _a_item;\n\t }\n\t \n\t res = pairs(_a,_k);\n\t System.out.println(res);\n\t\t\n\t}", "title": "" }, { "docid": "a72c93e659ba3c31b2732e06b561408c", "score": "0.48047507", "text": "N duplicate() ;", "title": "" }, { "docid": "226d40c5cac436e413ab0f8c7dec8c65", "score": "0.4804607", "text": "public static void main(String[] args) {\n\t\tString cur = \"a,b,c,d\";\n\t\tList<String> list = new LinkedList<>();\n\t\tlist.add(\"a,b,e,f\");\n\t\tlist.add(\"a,c,d,g\");\n\t\tbuddy(cur,list,10);\n\t\tbuddy(cur,list,2);\n\t}", "title": "" }, { "docid": "dd7f2ea6a5757ada7459586d9b13f012", "score": "0.4796726", "text": "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint t = in.nextInt();\n\t\twhile(t-- >0){\n\t\t\tstr = in.next();\n\t\t\thmap = new HashMap<Character,ArrayList<Integer>>();\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\tif(!hmap.containsKey(c)){\n\t\t\t\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\t\t\tal.add(i);\n\t\t\t\t\thmap.put(c, al);\n\t\t\t\t}else{\n\t\t\t\t\tArrayList<Integer> al = hmap.get(c);\n\t\t\t\t\tal.add(i);\n\t\t\t\t\thmap.put(c, al);\n\t\t\t\t}\n\t\t\t}\n\t\t\tdp = new int[str.length()];\n\t\t\tArrays.fill(dp, -1);\n\t\t\tArrayList<Integer> ala = hmap.get('a');\n\t\t\tArrayList<Integer> alb = hmap.get('b');\n\t\t\tint min = minimum;\n\t\t\tfor(int i=0; i<ala.size(); i++){\n\t\t\t\tint aidx = ala.get(i);\n\t\t\t\tfor(int j=0; j<alb.size(); j++){\n\t\t\t\t\tint res = Math.abs(aidx - alb.get(j)) + getMinLen(alb.get(j));\n\t\t\t\t\tmin = Math.min(min, res);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(min);\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "5409eaea978f6028225cd460799d1c74", "score": "0.4794691", "text": "public static void main( String[] args )\n {\n for ( int n=1; n <= 3; n++ )\n {\n for ( char c='A'; c <= 'E'; c++ )\n {\n System.out.println( c + \" \" + n );\n }\n }\n\n System.out.println(\"\\n\");\n\n// this is #2 - I'll call it \"AB\"\n for ( int a=1; a <= 3; a++ )\n {\n for ( int b=1; b <= 3; b++ )\n {\n System.out.print( a + \"-\" + b + \" \" );\n }\n // * You will add a line of code here.\n System.out.println();\n }\n\n System.out.println(\"\\n\");\n\n }", "title": "" }, { "docid": "ab07fd062f8f5a6f9dea92b6c47082d4", "score": "0.4790675", "text": "public static void main(String[] args) {\n\t\tString[] strs = {\"2+3+4\",\"2+4\",\"5+6\",\"9+7\"};\n\t\t\n\t\tsplit(strs);\n\t\t\n\t}", "title": "" }, { "docid": "218d0da69361d0c6e9d97ddca65de618", "score": "0.4777667", "text": "public static void main(String[] args) {\n PalindromePartitioning s = new PalindromePartitioning();\n List<List<String>> result = s.partition(\"aab\");\n System.out.println(result);\n }", "title": "" }, { "docid": "1575aac5236b2b2d8044e9e659bf42c6", "score": "0.47761497", "text": "void pSr(String[] mn) {\n\t\t// String[] filler = new String[mn.length];\n\t\t// String[] picnikka = new String[(mn.length) - ((int) mn.length / 2)];\n\t\t// System.out.println(picnikka.length);\n\t\t// for (int i = 0; i < mn.length - 1; i++) {\n\t\t// if (i % 2 != 0) {\n\t\t// filler[i] = mn[i];\n\t\t// }\n\t\t// }\n\t\tfor (int i = 0; i < mn.length; i++) {\n\t\t\tif (/* (filler[i] != null) && */(i % 2 == 0)) {\n\t\t\t\tSystem.out.println(mn[i]);\n\t\t\t}\n\t\t\t// make picnikka set its 0, 1, 2 slots to filler's 1, 3, 5 slots\n\t\t}\n\n\t\t/*\n\t\t * for (String sortable : mn) { System.out.println(sortable); }\n\t\t * System.out.println(\"------------------------------\");\n\t\t */\n\t}", "title": "" }, { "docid": "5fb1ffad3295b80033c17cbe85daa86e", "score": "0.4772924", "text": "public static void main(String[] args) {\n\t\tString data = \"i will clear this interview\";\r\n\t\tint dataLength = data.length();\r\n\t\t\t\t\r\n\t\tchar[] charData = data.toCharArray();\r\n\t\tfor (char c : charData) {\r\n\t\t\tint i = data.indexOf(c);\r\n\t\t\tint checkDup = data.substring(i+1).indexOf(c);\r\n\t\t\tif( checkDup == -1) {\r\n\t\t\t\tSystem.out.println(c);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "5d255cf0574ead516f5048a80a8e7957", "score": "0.4767024", "text": "public static void main(String[] args) {\n\t\tString s=\"ZAAJJKKDDDBABD\";\r\n\t\tint count=0;\r\n\t\tString temp= new String();\r\n\t\tfor(int i=0;i<s.length();i++){\r\n\t\t\tfor(int j =i;j<s.length();j++){\r\n\t\t\t\tif(s.charAt(i)==s.charAt(j)){\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}if(!temp.contains(String.valueOf(s.charAt(i)))){\r\n\t\t\tif(count>0){\r\n\t\t\t\tSystem.out.print(s.charAt(i)+\"\"+count);\r\n\t\t\t\ttemp=temp+s.charAt(i)+count;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tcount=0;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(temp);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "577d9cebc52439065fbc96544c314c15", "score": "0.47637635", "text": "private int[] getAB(String a){\n int i;\n int[] res = new int[2];\n char[] c = a.toCharArray();\n StringBuilder sb = new StringBuilder();\n for(i = 0; c[i] != '+'; ++i) sb.append(c[i]);\n res[0] = Integer.parseInt(sb.toString());\n sb = new StringBuilder();\n for(int j = i+1; c[j] != 'i'; ++j) sb.append(c[j]);\n res[1] = Integer.parseInt(sb.toString());\n return res;\n }", "title": "" }, { "docid": "cd99f5d430650be42966393cee03a0cd", "score": "0.47583798", "text": "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tString input=sc.next();\r\n\t\t\r\n\t\tint mid=(input.length()+1)/2;\r\n\t\tString str1=input.substring(0,mid-1);\r\n\t\tSystem.out.println(str1+\" str1\" );\r\n\t String str2=input.substring(mid-1);\r\n\tSystem.out.println(str2+\" str2\" );\r\n\t\tString str3=str2+str1;\r\n\t\tSystem.out.println(str3);\r\n\t\tint k=0;\r\n\t\tfor(int i=str3.length()-1;i>=0;i--){\r\n\t\t\tfor(int j=str3.length()-1;j>=0;j--){\r\n\t\t\t\t\r\n\t\t\t \r\n\t\t\t if((i+j) <= str3.length()-1){\r\n\t\t\t\t \r\n\t\t\t\t\t System.out.print(str3.charAt(str3.length()-j-1));\r\n\t\t\t\t\t \r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "d919f47e0cf4c30724f12765f300e05c", "score": "0.4752691", "text": "public static Pair[] top3char(){\r\n\t\tPair[] top3 = new Pair[3];\r\n\t\tHashMap<Character, Integer> map = new HashMap<Character, Integer>();\r\n\t\tString texts= doc.text();\r\n\t\tchar[] letters = texts.toLowerCase().toCharArray();\r\n\t\t//filling the hashmap \r\n\t\tfor(char letter: letters){\r\n\t\t\tif( map.containsKey(letter)) {\r\n\t\t\t\tmap.put(letter, map.get(letter) + 1);\r\n\t\t\t}else {\r\n\t\t\t\tmap.put(letter, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < 3; i++) {\r\n\t\t\tchar currentTop = topCharInHash(map);\r\n\t\t\ttop3[i] = new Pair(currentTop,map.get(currentTop));\r\n\t\t\tmap.remove(currentTop);\r\n\t\t}\r\n\t\treturn top3;\r\n\t}", "title": "" }, { "docid": "daeb58581e8a5e28791978219ac8f236", "score": "0.47488287", "text": "public static void main(String[] args) {\n\t\tString str =\"ggegt responsibility\";\n\t\tchar [] ch= str.toCharArray();\n\t\tfor(int i=0;i<ch.length;i++) {\n\t\t\tint temp=1;\n\t\t\tfor(int j=i+1;j<ch.length;j++) {\n\t\t\t\tif(ch[i]==ch[j] && ch[i]!=' ') {\n\t\t\t\t\ttemp++;\n\t\t\t\t\tch[j]='0';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(temp>1 && ch[i]!='0') {\n\t\t\t\tSystem.out.println(ch[i]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d6d4d4e54fc0fdcff799d7129782adc6", "score": "0.47442475", "text": "static int sherlockAndAnagramsX(String s1) {\n List<Character> uLetters = new ArrayList<>();\n Map<Character, Integer> repeatCharsMap = new HashMap<>();\n char[] s1Chars = s1.toCharArray();\n for (int i = 0; i < s1Chars.length; i++) {\n if (uLetters.contains(s1Chars[i])) {\n if (repeatCharsMap.containsKey(s1Chars[i])) {\n repeatCharsMap.put(s1Chars[i], repeatCharsMap.get(s1Chars[i])+1);\n } else {\n repeatCharsMap.put(s1Chars[i], 1);\n }\n } else {\n uLetters.add(s1Chars[i]);\n }\n }\n if (s1.length() == uLetters.size()) return 0;//unique letter, no anagram\n uLetters.clear();\n\n int count = repeatCharsMap.size();//min # with single letter anagrams\n System.out.println(\"with single letter anagrams=\" + count);\n\n Iterator<Character> it = repeatCharsMap.keySet().iterator();\n while(it.hasNext()) {\n Character c = it.next();\n int st = s1.indexOf(c);\n int en = s1.lastIndexOf(c);\n if (en - st == 1) continue;//already counted\n String sub = s1.substring(st, en+1);\n System.out.println(\"sub=\"+sub);\n if (Util.allLettersSame(sub)) {\n count = calcCombinations(sub) - 1;\n } else {\n System.out.println(\"char \" + c + \" 1 more\");\n count++;\n }\n }\n return count;\n }", "title": "" }, { "docid": "a5e8c1468162994a15227ec7d03f5dfb", "score": "0.47437438", "text": "public static void permutations(String input){\n \tprint(input,\"\");\n\t}", "title": "" }, { "docid": "0611464a90a4c90e219cc7f5d9f0977c", "score": "0.47433665", "text": "public static void main(String[] args) {\n\r\n\t\tString str=\"occurrence\";\r\n\t\tString []sarr=str.split(\"\");\r\n\t\t\r\n\t\tString []dup= {\"abc\",\"tanu\",\"tanu\",\"red\",\"yellow\",\"red\"};\r\n\t\tMap<String, Long>m=Stream.of(sarr)\r\n\t\t\t\t.collect(Collectors.groupingBy(e->e,Collectors.counting()));\r\n\t\tSystem.out.println(m);\r\n\t\t\r\n\t\tMap<String, Long> st=Stream.of(dup)\r\n\t\t\t\t.collect(Collectors\r\n\t\t\t\t\t\t.groupingBy(e->e,Collectors.counting()));\r\n\t\tSystem.out.println(st);\r\n\t}", "title": "" }, { "docid": "007291332347f0647d25ff528e01f507", "score": "0.47381887", "text": "SporadicPattern createSporadicPattern();", "title": "" }, { "docid": "ef25c4377cf5d2078a8d371d3efea42f", "score": "0.47320834", "text": "int sequenceorder(int a , int b, int c)\n\t{\n\t\tif(a<b && b<c)\n\t\t\treturn 1; // increasing\n\t\telse if( a>b && b>c)\n\t\t\treturn 2; // decreasing\n\t\telse\n\t\t\treturn 0;\n\t}", "title": "" }, { "docid": "2b9df5c47400a062d47d5f51cee0dee1", "score": "0.47231743", "text": "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] input = scanner.nextLine().split(\" \");\n\t\t\n//\t\tSystem.out.println(input);\n\t\n\t\tscanner.close();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString temp = input[0];\n\t\tint count = 1;\n\t\tfor(int i = 1; i <input.length; i++) {\n\t\t\tif(!input[i].equals(temp)) {\n\t\t\t\tsb.append(count);\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(temp);\n\t\t\t\tsb.append(\" \");\n\t\t\t\tcount = 1;\n\t\t\t\ttemp = input[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount++;\n\t\t\t\tSystem.out.println(\"count \" + count);\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tsb.append(count);\n\t\tsb.append(\" \");\n\t\tsb.append(temp);\n\t\tString output = sb.toString();\n\t\tSystem.out.println(\"output is \" + output);\n\t\t\n\t\t//second method\n\t\tStringBuilder sb2 = new StringBuilder();\n\t\tint indexAns = 0;\n\t\tint index = 0;\n//\t\tchar[] arr = input.toString().toCharArray();\n\t\twhile(index < input.length) {\n\t\t\tString currNum = input[index];\n\t\t\tint cnt = 0;\n\t\t\twhile(index < input.length && input[index].equals(currNum)) {\n\t\t\t\tindex++;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tsb2.append(cnt + \" \");\n\t\t\tsb2.append(currNum + \" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"output2 is \" + sb2.toString());\n\n\t}", "title": "" }, { "docid": "45495a3eb07c681140a6a8c7569a9496", "score": "0.47223705", "text": "public static void main(String[] args) {\n\t\tint a = 16;\r\n int b = 1;\r\n for (int i=1; i<=4; i++){\r\n for (int j=b; j <=a; j=j+4){\r\n System.out.print(j);\r\n System.out.print(\"\\t\"); \r\n }\r\n b++;\r\n a++;\r\n System.out.println();\r\n \r\n }\r\n }", "title": "" }, { "docid": "d9d0e16933a51c32f3a45c8faba1f0dd", "score": "0.47207323", "text": "static int countStars(String[] result)\n {\n \tint total=0;\n \tfor(int i = 0 ; i < result.length;++i)\n \t{\n \t\tswitch(result[i])\n \t\t{\n \t\tcase \"o--\": total++;break;\n \t\tcase \"oo-\":total +=2;break;\n \t\tcase \"ooo\": total +=3;break;\n \t\t\n \t\t\n \t\t}\n \t}\n \treturn total;\n }", "title": "" }, { "docid": "13488fac7146688dccbecfaeeef44101", "score": "0.47175884", "text": "public void testThreeChars() throws Exception {\n CharacterRunAutomaton single = new CharacterRunAutomaton(new RegExp(\"...\").toAutomaton());\n Analyzer a = new MockAnalyzer(random(), single, false);\n assertAnalyzesTo(a, \"foobar\", new String[] {\"foo\", \"bar\"}, new int[] {0, 3}, new int[] {3, 6});\n // make sure when last term is a \"partial\" match that end() is correct\n assertTokenStreamContents(\n a.tokenStream(\"bogus\", \"fooba\"),\n new String[] {\"foo\"},\n new int[] {0},\n new int[] {3},\n new int[] {1},\n 5);\n checkRandomData(random(), a, 100);\n }", "title": "" }, { "docid": "ed7d252e23be900863459d602efecffa", "score": "0.4713659", "text": "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tCollection<String> arrayList = new ArrayList<>();\n\t\t\n\t\tarrayList.add(\"aaaa\");\n\t\tarrayList.add(\"bbbb\");\n\t\tarrayList.add(\"cccc\");\n\t\tarrayList.add(\"dddd\");\n\t\t\n\t\t\n\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\t\n\t\tfinal int[] i = {0};\n\t\tarrayList.forEach(path -> {\n\t\ti[0]++;\n\t\t\n\t\t//stringBuffer.append(path);\n\t\tif(arrayList.size() > i[0]){\n\t\t\t//stringBuffer.append(\" & \");\n\t\t}\n\t\t});\n\t\t\n\t\t//System.out.println(stringBuffer.toString());\n\t\t\n\t\t\n\t\tAtomicInteger index = new AtomicInteger(0);\n\t\tarrayList.stream().forEach(path ->{\n\t\t\tindex.getAndIncrement();\n\t\t\tstringBuffer.append(path);\n\t\t\tif(index.get() < arrayList.size()) stringBuffer.append(\" & \");\n\t\t});\n\t\t\n\t\tSystem.out.println(stringBuffer.toString());\n\n\t}", "title": "" }, { "docid": "477a039d1a2dc14061ee684e5c5c5b65", "score": "0.47129497", "text": "public void print()\n {\n int j=0;\n while(c[j] != c[howmany])\n {\n System.out.print(\" | \"+c[j] ); j++; \n }\n }", "title": "" }, { "docid": "f87c3b980c90f844827f3767ef08c714", "score": "0.4707915", "text": "public List<String> findRepeatedDnaSequences2(String s) {\r\n\t\tList<String> res = new ArrayList<String>();\r\n\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\r\n\r\n\t\tfor(int index=10; index<=s.length(); index++) {\r\n\t\t\tString sub = s.substring(index-10, index);\r\n\t\t\tint code = encode(sub);\r\n\t\t\tif(map.containsKey(code)) {\r\n\t\t\t\tif(map.get(code) == 1)\r\n\t\t\t\t\tres.add(sub);\r\n\t\t\t\tmap.put(code, 2);\r\n\t\t\t}else {\r\n\t\t\t\tmap.put(code, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "title": "" }, { "docid": "a574c41bac198d5aee633e9dfdfd4b04", "score": "0.47059813", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(repeatedString(\"aba\",10));\r\n\r\n\t}", "title": "" }, { "docid": "1bb4e8b35e932bd1f4bc7d41e18a279f", "score": "0.4692785", "text": "public String altPairs(String str) {\n String result = \"\";\n \n for (int i=0; i<str.length(); i+= 4) {\n int end = i + 2;\n if (end > str.length()) {\n end = str.length();\n }\n result += str.substring(i, end);\n }\n \n return result;\n}", "title": "" }, { "docid": "c46a9dcfa479929eb4ed77dad90e16ae", "score": "0.46901813", "text": "private static String chain(String[] str, int start) {\n StringBuilder res = new StringBuilder();\n for (int i = start, l = str.length; i < l; i++) res.append(str[i]).append(\" \");\n return res.toString();\n }", "title": "" }, { "docid": "9c90c506e294020bdac2d12c036be927", "score": "0.46878412", "text": "private void permute(String input) {\n List<String> result = new ArrayList<>();\n helper(input, 0, \"\", result, 1);\n System.out.println(result);\n }", "title": "" }, { "docid": "d401a201b38512f3d2a98bc1f1e43600", "score": "0.46846786", "text": "public static void main(String[] args) {\n String str=\"malayal\";\n String[] newstr=str.toLowerCase().split(\" \");\n StringBuilder sb=new StringBuilder();\n for(int i=0;i<newstr.length;i++)\n {\n \t sb.append(newstr[i]);\n }\n String formattedStr=(sb.toString());\n HashMap<Character,Integer> map=new HashMap<>();\n for(int i=0;i<formattedStr.length();i++)\n { char c=formattedStr.charAt(i);\n \tif(!map.containsKey(c))\n \t{map.put(c, 1);}\n \telse{\n \t\tint val=map.get(c);\n \t\tmap.put(c, val+1);\n \t}\t\n }\n int unique=0;\n for(Map.Entry<Character,Integer> entry:map.entrySet())\n {\n \t if(entry.getValue()%2==1)\n \t\t unique=unique+1; \n }\n if((formattedStr.length()%2)==0)\n {\n \t if(unique!=0)\n \t\t System.out.println(\"false\");\n \t else\n \t\t System.out.println(\"true\");\n }\n else{\n \t \n \t if(unique==1)\n \t\t System.out.println(\"true\");\n \t else\n \t\t System.out.println(\"false\");\n \t \n }\n \t \n\t}", "title": "" }, { "docid": "02ff21c827df6755edff6d192016c7c8", "score": "0.46805662", "text": "private static void groupByAnagrams(List<String> names) {\n\t List<List<String>> output = new ArrayList<List<String>>();\n\t List<String> out;\n\t String two =\"\";\n\t for(String one : names){\n\t \t//Work on this logic to create List of Lists\n//\t \tif(!output.isEmpty()){\n//\t \t\tfor(List<String> stList : output){\n//\t \t\t\tif(!stList.contains(one)){\n//\t \t\t\t\tout = new ArrayList<String>();\n//\t \t\t\t}\n//\t \t\t}\n//\t \t\t\n//\t \t}\n\t \tout = new ArrayList<String>();\n\t \tfor(int i=1; i<=names.size()-1; i++){\n\t\t \t//one = names.get(i);\n\t\t \ttwo = names.get(i);\n\t\t \tSystem.out.println(\"One:\" + one+ \" -Two:\" + two);\n\t\t \tif(one.length() != two.length())\n\t\t \t\treturn;\n\t\t \tif(sortStringChars(one).equals(sortStringChars(two)))\n\t\t \t{\n\t\t \t\t//System.out.println(\"Anagram:\" + one+ \" -\" + two);\n\t\t \t\tif(!out.contains(one))\n\t\t \t\t\tout.add(one);\n\t\t \t\t\t\n\t\t \t\tif(!out.contains(two))\n\t\t \t\t\tout.add(two);\n\t\t \t}\n\t\t \t\n\t\t }\n\t \t\n\t \tSystem.out.println(\"out:\" + out);\n\t \toutput.add(out);\n\t \t\n\t \t\n\t }\n\t}", "title": "" }, { "docid": "7876655d8ce925a42b9e4d441487e2fe", "score": "0.46797782", "text": "public static void main(String[] args) {\r\n\t Scanner scan = new Scanner(System.in);\r\n\t int n = scan.nextInt();\r\n\t for(int i=0;i<n;i++)\r\n\t {\r\n\t String temp = scan.next()+scan.nextLine();\r\n\t if(temp.length()%2!=0)\r\n\t {\r\n\t System.out.println(\"-1\");\r\n\t }\r\n\t else\r\n\t {\r\n\t int part = temp.length();\r\n\t int count=0;\r\n\t String s1 = temp.substring(0,part/2);\r\n\t String s2 = temp.substring(part/2,part);\r\n\t int[] tk1 = new int[26];\r\n\t int[] tk2 = new int[26];\r\n\t for(int j=0;j<s1.length();j++)\r\n\t {\r\n\t tk1[s1.charAt(j)-97]++;\r\n\t tk2[s2.charAt(j)-97]++;\r\n\t }\r\n\t for(i=0;i<26;i++)\r\n\t {\r\n\r\n\t if(tk1[i]>tk2[i]&&tk1[i]!=0)\r\n\t count+=Math.abs(tk1[i]-tk2[i]);\r\n\t }\r\n\t System.out.println(count);\r\n\t }\r\n\t }\r\n\t }", "title": "" }, { "docid": "c0f13df38acfc1ff320a2faf698bb29e", "score": "0.46719003", "text": "public static void main(String[] args) {\n\t\t\n\t\tint arr[] = {1,2,3,3,4,5};\n\t\t\n\t\tint[] result = new int[arr.length];\n\t\t\n\t\tint ch,previous;\n\t\t\n\t\tprevious =arr[0];\n\t\t\n\t\t\n\t\tresult[0] = previous;\n\t\t\n\t\tfor(int i=1;i<arr.length;i++) {\n\t\t\t\n\t\t\tch = arr[i];\n\t\t\t\n\t\t\t\n\t\t\tif(previous!=ch) {\n\t\t\t\t\n\t\t\t\tresult[i]=ch;\n\t\t\t}\n\t\t\t\n\t\t\tprevious = ch;\n\t\t}\n\t\tfor(int i =0;i<result.length;i++) {\n\t\t\t\n\t\t\tSystem.out.print(\" \"+ i);\n\t\t}\n\t\t\n\n\t}", "title": "" }, { "docid": "df1ee0872cb95dfcc492adef95312e44", "score": "0.467169", "text": "public static void main(String[] args) {\n\t\tint k=3;\n\t\tfor(int i=0;i<=3;i++,k--)\n\t\t{\n\t\t\tfor(int j=0;j<=3;j++)\n\t\t\t{\n\t\t\t\tif(j>=k)\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "1f129ccb2c0adf7c7a70179674ab0be6", "score": "0.46706057", "text": "int getOrdering();", "title": "" }, { "docid": "3ff2c1ed6683758e1c135b424dfadcbd", "score": "0.46705112", "text": "static long repeatedString_commit(String s, long n) {\n // System.out.println(\"S0:\" + s);\n long QTDE_A = s.length() - s.replace(\"a\", \"\").length();\n // System.out.println(\"S1:\" + s);\n // System.out.println(\"A:\" + QTDE_A);\n\n long cont = 0;\n\n if (n == s.length()) {\n return QTDE_A;\n } else if (n < s.length()) {\n\n for (int i = 0; i < n; i++) {\n if (s.charAt(i) == 'a')\n cont++;\n }\n return cont;\n } else {\n // CALCULA QUANTAS STRING CABE NA TAMANHO A SER ANALIZADO\n long quociente = (n / (s.length()));\n // System.out.println(\"QUOCIENTE:\" + quociente);\n long QTDE_A_A = QTDE_A * quociente;\n // System.out.println(\"QTDE_A_A:\" + QTDE_A_A);\n\n // CALCULA QUANTOS A PARA A SUBSTRING RESTANTE\n long NN = n - (s.length() * quociente);\n // System.out.println(\"NN:\" + NN);\n cont = 0;\n for (int i = 0; i < NN; i++) {\n if (s.charAt(i) == 'a')\n cont++;\n }\n // System.out.println(\"cont:\" + cont);\n long QTDE_A_FINAL = cont + QTDE_A_A;\n // System.out.println(\"QTDE_A_FINAL:\" + QTDE_A_FINAL);\n return QTDE_A_FINAL;\n }\n\n }", "title": "" }, { "docid": "6426687437b81bf25b1c7a6722e6041e", "score": "0.46687296", "text": "public int countHomogenous3(String s) {\n int res = 0;\n char prev = 0;\n int repeated = 0;\n for (char c : s.toCharArray()) {\n if (c == prev) {\n repeated++;\n } else {\n repeated = 1;\n }\n prev = c;\n res = (res + repeated) % MOD;\n }\n return res;\n }", "title": "" }, { "docid": "46510274e8e2b8f2829e14681cada5ad", "score": "0.46668112", "text": "@Test\n public void longerStringtwo() {\n String input = \"gagcattacgatcagctagcta\"; // so getting to ga, which is already seen, not a complement, just straight up match\n Compress c = new Compress();\n c.processInput(input, false);\n System.out.println(c.getDigramMap().printDigrams());\n System.out.println(c.printRules());\n }", "title": "" }, { "docid": "66b00dc549abf070bde332a6f7935416", "score": "0.46654946", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tlong a = sc.nextLong();\r\n\t\tb = sc.nextLong();\r\n\t\ta %= b;\r\n\t\tint n = sc.nextInt();\r\n\t\tyu = new ArrayList<Long>();\r\n\t\tid = new ArrayList<Integer>();\r\n\t\tk = -1;\r\n\t\tString small = digui(a, \"0\");\r\n\t\tif (n <= k) {\r\n\t\t\tsmall += \"000\";\r\n\t\t\tSystem.out.println(small.substring(n, n+3));\r\n\t\t}else {\r\n\t\t\tint place = (n-k+1)%(small.length()-k);\r\n\t\t\tif (place == 0) {\r\n\t\t\t\tplace = small.length()-k;\r\n\t\t\t}\r\n\t\t\tplace --;\r\n\t\t\tsmall += small.substring(k) + small.substring(k);\r\n\t\t\tSystem.out.println(small.substring(k+place, k+place+3));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0e297b152fb7c6c44a2f89ba70480a8d", "score": "0.46606198", "text": "static int makeAnagram(String a, String b) {\n int[] freq = new int[26];\n a.chars().forEach(c -> freq[c-97]++);\n b.chars().forEach(c -> freq[c-97]--);\n return Arrays.stream(freq).map(Math::abs).sum();\n }", "title": "" }, { "docid": "e4f30f1c4d85ca448e1c3730673bbdd1", "score": "0.46585426", "text": "public static void main(String[] args) {\n\n\t\t\n\t\tchar arr[]= {'a','b','d','a','c','a','d','b','e'};\n\t\tArrays.sort(arr);\n\t\tint len=arr.length;\n\t\tfor(int i=0;i<len;i++)\n\t\t{\n\t\t\tSystem.out.println(arr[i]+\",\");\n\t\t}\n\t\t\n\t\t//int fcount=0;\n\t\tfor(int i=0;i<len;)\n\t\t{\n\t\t\tint count=0;\n\t\t\tchar value=arr[i];\n\t\t\t\n\t\t\twhile(i<len && value==arr[i])\n\t\t\t{\n\t\t\t\t//mout.println(\"i is \"+i);\n\t\t\t\tcount++;\n\t\t\t\ti++;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(\"count of \" +value+\" is \" + count);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t/*\t\t{\n\t\t\tif(arr[i]==value)\n\t\t\t\t{\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tSystem.out.println(\"count of \" +value+\" is \" + count);\n\t\t\t\t//count=0;\n\t\t\t\t//fcount=count;\n\t\t\t\t}*/\t\n\t\t\n\t\t\n\t\t}\n\t\t//System.out.println(\"there are \"+count+ \" A's in this array\");\n\t\t}", "title": "" }, { "docid": "f9003b8df14f69eada5ef095a77e2072", "score": "0.46545598", "text": "public static void main(String[] args) {\n\t\tint co=1;\n\t\tString str=\"selenium is for automation is and automation we do for automation we testing\";\n\t\tString[] str1 = str.split(\" \");\n\t\tint count = str1.length;\n\t\tSystem.out.println(count);\n\t\tfor(int i=0; i<count;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<count-1;j++)\n\t\t\t{\n\t\t\t\tif((str1[i]).equals(str1[j]))\n\t\t\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tco++;\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(str1[j]);\n//\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t}\t\n\t\t\t}\n\t}", "title": "" }, { "docid": "92258c735894d563711a159d62447f58", "score": "0.4652505", "text": "public static void main(String[] args) {\n int i,j,k,s,s1,k1,count=0; \n String p,q; \n char p2,q2; \n int [] z; \n Scanner a=new Scanner(System.in); \n while(a.hasNext()){ \n p=a.nextLine(); \n q=a.nextLine(); \n String [] p1=p.split(\" \"); \n String [] q1=q.split(\" \"); \n int n[]=new int[p1.length]; \n int m[]=new int[q1.length]; \n \n for(i=0;i<n.length;i++){ \n s=Integer.parseInt(p1[i]); \n n[i]=s; \n } \n for(j=0;j<m.length;j++){ \n s1=Integer.parseInt(q1[j]); \n m[j]=s1; \n } \n z=p(n,m); \n z[0]=' '; \n z[n.length]=' '; \n if(min(z)==0){ \n System.out.print(min(z)); \n for(k=1;k<zero(z);k++){ \n System.out.print(\" 0\"); \n } \n } \n \n \n Arrays.sort(z); \n if(min(z)!=0){ \n System.out.print(min(z));} \n for(k=0;k<z.length;k++){ \n if(z[k]!=32&&z[k]!=min(z)){ \n System.out.print(\" \"+z[k]); \n } \n } \n System.out.println(); \n } \n }", "title": "" }, { "docid": "5cead6eec3fb15e2ee4b2eeda8444a3e", "score": "0.4649875", "text": "public static void main(String[] args) {\n\n\t\tint i,j,n;\n\t\tlong count=0;\n\t\tboolean flag=true;\n\t\tchar a[]= {'0','1','2','3','4','5','6','7','8','9'};\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\tList<HashSet<Character>> containList=new ArrayList<>();\n\t\tList<HashSet<Character>> requiredList=new ArrayList<>();\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tString s=sc.next();\n\t\t\tHashSet<Character> containDigits=new HashSet<>();\n\t\t\tHashSet<Character> requiredDigits=new HashSet<>();\n\t\t\tfor(j=0;j<a.length;j++)\n\t\t\t\trequiredDigits.add(a[j]);\n\t\t\tfor(j=0;j<s.length();j++)\n\t\t\t{\n\t\t\t\tchar c=s.charAt(j);\n\t\t\t\tif(!containDigits.contains(c))\n\t\t\t\t{\n\t\t\t\t\tcontainDigits.add(c);\n\t\t\t\t\trequiredDigits.remove(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tcontainList.add(containDigits);\n\t\t\trequiredList.add(requiredDigits);\n\t\t}\n\n\t\tcount=0;\n\t\tfor(i=0;i<requiredList.size();i++)\n\t\t{\n\t\t\tHashSet<Character> requiredSet=requiredList.get(i);\n\t\t\tfor(j=0;j<containList.size();j++)\n\t\t\t{\n\t\t\t\tHashSet<Character> containSet=containList.get(j);\n\t\t\t\t\n\t\t\t\tflag=true;\n\t\t\t\tfor(Character c: requiredSet)\n\t\t\t\t{\n\t\t\t\t\tif(!containSet.contains(c))\n\t\t\t\t\t{\n\t\t\t\t\t\tflag=false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(flag)\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count/2);\n\t}", "title": "" } ]
142ab2a4ac078dbb69353605b30c494f
Created by daniel on 7/6/17.
[ { "docid": "934b419ac39adf612f42a2b1fa3f761b", "score": "0.0", "text": "public interface Roles extends CrudRepository<UserRoles, Long> {\n //using HQL\n @Query(\"select ur.role from UserRoles ur, User u where u.username=?1 and ur.userId = u.id\")\n public List<String> ofUserWith(String username);\n}", "title": "" } ]
[ { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.6245469", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c04e1693c791e5601b6d72a13641e7b1", "score": "0.55657727", "text": "@Override\n\tpublic void angriff() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5494446", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.5445173", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "c63a11bb1bf0acb98a99c66ee94527a7", "score": "0.5425268", "text": "@Override\r\n\tpublic void ispeci() {\n\r\n\t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.54017633", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5396412", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5396412", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5396412", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.539302", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "27e436f0a0c9200a542c73eabe9c3662", "score": "0.5359121", "text": "private void Met4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.5353668", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "c0781256114b6e21545493bb75f18b9d", "score": "0.53073364", "text": "@Override\n\tprotected void sanityCheck() {\n\t\t\n\t}", "title": "" }, { "docid": "3e2b6cecdab3b4495e39686fcb37522b", "score": "0.52963984", "text": "public void method_7608() {}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.52834994", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "21593c9c9d9ac1228e5ee377625fa941", "score": "0.52802706", "text": "@Override\n public void wrapup() {\n \n }", "title": "" }, { "docid": "06b59299a5db6a0902fdbf88e7826cfa", "score": "0.52567214", "text": "private void naceSer() {\n\n\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.52547145", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.52494586", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "0584017cc50128958402ae40b3e27955", "score": "0.5243251", "text": "public final void mo57094b() {\n }", "title": "" }, { "docid": "3d58a7b34ff7718a3b1945d88236d31b", "score": "0.52194977", "text": "protected boolean method_4161() {\r\n return true;\r\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.5213886", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "598681cc815af7b9f96d5d7ce97e7b20", "score": "0.5196619", "text": "public void mo5669b() {\n }", "title": "" }, { "docid": "f8978d93b84e5118882a4ff5e000e716", "score": "0.51888406", "text": "private void init() {\n\t\t\n\t}", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.51859325", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.51651084", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.516193", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "caac2238dbe1af06c6dbcb420bf97352", "score": "0.5139546", "text": "public abstract void mo18268c();", "title": "" }, { "docid": "618c984b4c86428626c9457aa24fcf22", "score": "0.5116161", "text": "@Override\n public int getXp() {\n return 0;\n }", "title": "" }, { "docid": "bf4fb526558f4192223faeda785ad7f9", "score": "0.5109871", "text": "@Override\npublic int describeContents() {\n return 1;\n}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5105764", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5105764", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5105764", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5105764", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.50971216", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.5083657", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.5083657", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "94b0ced5bfd6c8796dfd708a164694df", "score": "0.50751966", "text": "@Override\n public void desplazarse() {\n }", "title": "" }, { "docid": "ccde520bca72caa0d77ef1b117291759", "score": "0.5074674", "text": "@Override\r\n\tpublic void osmossis() {\n\r\n\t}", "title": "" }, { "docid": "2ccd2a90144fab8b5fa71c58ca003352", "score": "0.5040571", "text": "@Override\n\tpublic void falar() {\n\t\t\n\t}", "title": "" }, { "docid": "892e81ba33fe99f590f49f4fd7ed10a8", "score": "0.50298494", "text": "private void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.50237316", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.50237316", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.50237316", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "74a1be816f56189120d6d74f61abd8f9", "score": "0.5018361", "text": "@Override\n\tpublic void apagate() {\n\t\t\n\t}", "title": "" }, { "docid": "bf2576d8787bd62224120609f513e0af", "score": "0.501242", "text": "@Override\n public int stamp () {\n return 0;\n }", "title": "" }, { "docid": "9b8d94120800074e25f9674e2e960bd0", "score": "0.5006", "text": "@Override\n public void curar() {\n\n }", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.50020784", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.50020784", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "f95915bf87d195500932036591341489", "score": "0.50000703", "text": "public final void mo27169a() {\n }", "title": "" }, { "docid": "84daddbd3d7b42a348f72aa6b2f79da8", "score": "0.4985217", "text": "private void syso() {\n\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.49814793", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "1e530a3abecfdbdcf6f7ca4bd7294921", "score": "0.49810684", "text": "@Override\n\tpublic void andar() {\n\t\t\n\t}", "title": "" }, { "docid": "4a4d6ca4f76cf550f30a1b3469c5c600", "score": "0.4979996", "text": "@Override\n\tpublic void heilen() {\n\n\t}", "title": "" }, { "docid": "e8f618920d16d01b04b8511136f35c64", "score": "0.4977602", "text": "@Override\r\n\tpublic void lookAt() {\n\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.49760088", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "5d97082ad890b2df7c126438819d2c54", "score": "0.49632758", "text": "private void envejecer() {\n\t\t\n\t}", "title": "" }, { "docid": "0f6e1929716bfb216fb0d53f4c72c746", "score": "0.4960407", "text": "@Override\n\tpublic void hesapla() {\n\t\t\n\t}", "title": "" }, { "docid": "ff231ae14151480462e77ab05b88eb7a", "score": "0.49541715", "text": "public void mo16989u() {\n }", "title": "" }, { "docid": "4dc967945b63b3f9ccc200b50799205b", "score": "0.4950046", "text": "@Override\n\tprotected Item func_149866_i() {\n return null;\n }", "title": "" }, { "docid": "24f30370515bfcc6241bb76e6bfd35eb", "score": "0.49372685", "text": "public final void mo9279b() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.4921397", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.4921397", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "328fe0537d087535012db1ee9593f9a2", "score": "0.49206117", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "22ca55a896f04c8814e887ec2ba183c2", "score": "0.49186024", "text": "@Override\n \tpublic int describeContents() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "c57f1ac14f2f0e46c1513c8a17bdd4ff", "score": "0.49169037", "text": "public void mo7951b() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.491666", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.491666", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.491666", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.491666", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.491666", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.491666", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.491666", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.491666", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.491666", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.491666", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "8856648a24eed8059f46d9b9d5d02b33", "score": "0.49158627", "text": "public void mo1048f() {\n }", "title": "" }, { "docid": "c4129e796f3c1af5d18f26f3bd9b7ce7", "score": "0.4913399", "text": "@Override\r\n \tpublic int describeContents() {\n \t\treturn 0;\r\n \t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.49107283", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "dced6a982f3a37b1e1f6c7eae670a213", "score": "0.4906702", "text": "private static void findIndex()\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "d4ddbbed357582d2447e55d4716785d1", "score": "0.49062538", "text": "KQKJUnsuited(){}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.49036673", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "0141e2741f4ddae6b6cfa17ac00ce62a", "score": "0.49022245", "text": "void normalForm() {}", "title": "" }, { "docid": "ad858dfc56484961f94263691e2e25f1", "score": "0.48987108", "text": "private void syso() {\n\r\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.48971602", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.48971602", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.48971602", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.48971602", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.48971602", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.48971602", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "55d5edc707d5605e17fc846fa1dd6e68", "score": "0.48952344", "text": "public void mo23347c() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.489068", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.489068", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.489068", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.489068", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.489068", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.489068", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.489068", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.489068", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.489068", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.489068", "text": "@Override\n protected void initialize() {\n }", "title": "" } ]
70f088b01f93077f10c9bc9d032641c3
Sets the list of user awards.
[ { "docid": "4614d1ccadd3e2a3834606d268d1de03", "score": "0.6490592", "text": "public ProfessionalExperience awards(List<Award> awards) {\n this.awards = awards;\n return this;\n }", "title": "" } ]
[ { "docid": "b7ae0f543bfeab916343477a1b81f4e7", "score": "0.574704", "text": "public void setRewards(List<RewardInfo> values);", "title": "" }, { "docid": "a62e2fa2821f3a0345856627164f2eff", "score": "0.57190496", "text": "public List<Award> awards() {\n return awards;\n }", "title": "" }, { "docid": "3030485b93bc88e93584c29a65f21ada", "score": "0.5658203", "text": "public void setUsernames(List<String> usernames1) {\r\n this.usernames = usernames1;\r\n }", "title": "" }, { "docid": "97e4bb09bdd50884d93ca09882a120c0", "score": "0.5415979", "text": "private void setActions() {\n lwUsers.setOnItemClickListener(new OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int pos,\n long arg3) {\n ArrayList<User> usersList = ((UsersAdapter) lwUsers\n .getAdapter()).getAllUsers();\n Intent intent = new Intent(activity, ActivityUserDetails.class);\n intent.putExtra(\"user\", usersList.get(pos));\n startActivity(intent);\n }\n });\n }", "title": "" }, { "docid": "20387b5e498fd098fafdc31bc84727ba", "score": "0.5366224", "text": "public void setAthletesList(List<Athlete> athletesList) {\r\n\t\tthis.athletesList = athletesList;\r\n\t}", "title": "" }, { "docid": "e5d936f74f46b108cf5bc3b139223bdf", "score": "0.5351678", "text": "public void setUserAsRight(/*AssociationSet*/List<org.hl7.rim.SelectionExpression> userAsRight) {\n _userAsRight = userAsRight;\n }", "title": "" }, { "docid": "54d929af8d0275525846de72535abf62", "score": "0.53046656", "text": "public void setUserList(List<User> userList1) {\n this.userList = userList1;\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "ff5f8e76e913f8677f6973e566bcf4a8", "score": "0.52746344", "text": "public Builder setRewardPlayerAccounts(\n int index, int value) {\n ensureRewardPlayerAccountsIsMutable();\n rewardPlayerAccounts_.set(index, value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "39f9f18be0799c3e665325ae857193e4", "score": "0.5238293", "text": "public void setUserAsLeft(/*AssociationSet*/List<org.hl7.rim.SelectionExpression> userAsLeft) {\n _userAsLeft = userAsLeft;\n }", "title": "" }, { "docid": "29c8ffe7b7787edfe139b72cf80c2519", "score": "0.51926976", "text": "public void setUsers (ArrayList<String> users) {\r\n this.users = users;\r\n }", "title": "" }, { "docid": "0a83b1e53a4862652b558db3c106e3c7", "score": "0.5142445", "text": "@Override\n\tpublic void setAnsweredByUser(java.lang.String answeredByUser) {\n\t\t_faqAnswer.setAnsweredByUser(answeredByUser);\n\t}", "title": "" }, { "docid": "e09f28a6911247db93233b4ca7790b1e", "score": "0.5105496", "text": "public void maintainUsers(String username, SimpleAttributeSet attrset) {\n\t\ttry {\n\t\t\tlist_of_users.insertString(list_of_users.getLength(), username + \" - online\\n\", attrset);\n\t\t} catch (Exception e) { }\n\t}", "title": "" }, { "docid": "e2030c5ba07c4f63db612c1d5fb174c8", "score": "0.50537837", "text": "public void setListOfAwg( List<Awg> listOfAwg ) {\n this.listOfAwg = listOfAwg;\n }", "title": "" }, { "docid": "6296a5b31778017ebf23a9de9afeacdd", "score": "0.50400454", "text": "public Atm() {\n this.listOfUsers = new ArrayList<User>();//this listOfUsers is equal to new list of Users\n }", "title": "" }, { "docid": "8134022d34b937997b3f09518fdec49a", "score": "0.50123507", "text": "public void setListData()\r\n { \r\n \tString callForwardTo = AppHandler.getCallForward();\r\n \tif(callForwardTo.equalsIgnoreCase(AppConstant.TO_ORGANIGATION))\r\n \t{\r\n \t\tuserList = AppHandler.getEmployeeCatagoriList(getIntent().getExtras().getString(Keys.ORGANIZATION_KEY));\r\n \t}else if(callForwardTo.equalsIgnoreCase(AppConstant.TO_LOS_TEAM))\r\n \t{\r\n \t\tuserList = AppHandler.getEmployeeLosList(getIntent().getExtras().getString(Keys.LOS_TEAM_KEY));\r\n \t}\r\n \r\n }", "title": "" }, { "docid": "dbfe3f39e1f1a57d85ae716756690bba", "score": "0.5008094", "text": "private void setConversationsList() {\n ArrayList<ParseUser> attendees = new ArrayList<>(venue.getAttendees());\n attendees.remove(ParseUser.getCurrentUser());\n\n Dislikes d = (Dislikes) ParseUser.getCurrentUser().get(\"Dislikes\");\n ParseQuery<Dislikes> dislikesParseQuery = ParseQuery.getQuery(\"Dislikes\");\n dislikesParseQuery.whereEqualTo(\"objectId\", d.getObjectId());\n Likes l = (Likes) ParseUser.getCurrentUser().get(\"Likes\");\n ParseQuery<Likes> likesParseQuery = ParseQuery.getQuery(\"Likes\");\n likesParseQuery.whereEqualTo(\"objectId\", l.getObjectId());\n\n try{\n d = dislikesParseQuery.getFirst();\n l = likesParseQuery.getFirst();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n attendees.removeAll(d.getDislikesArray());\n attendees.removeAll(l.getLikesArray());\n\n namesQueue = sortUsers(attendees);\n }", "title": "" }, { "docid": "bcd2dd1f37e41f7a66ae8ddb338b6eca", "score": "0.4952782", "text": "public final void m62158a(List<String> list) {\n MoreGenderSearchViewTarget moreGenderSearchViewTarget = (MoreGenderSearchViewTarget) this.f51590a.H();\n if (moreGenderSearchViewTarget != null) {\n C2668g.a(list, \"list\");\n moreGenderSearchViewTarget.setGenderList(list);\n }\n }", "title": "" }, { "docid": "068d2f8a1f6c91b13376490ef064ce7a", "score": "0.49418572", "text": "private void setAthletesScores() {\n // must be sorted first\n official.summarizeResultsByTime(participatedAthletes);\n\n participatedAthletes.get(0).addScore(5);\n participatedAthletes.get(1).addScore(2);\n participatedAthletes.get(2).addScore(1);\n }", "title": "" }, { "docid": "1901dab1b83f623846a635d3479dbfa2", "score": "0.49369282", "text": "public void setYourCalendars(ArrayList<User> users) {\n \t}", "title": "" }, { "docid": "ec13c2cca132a5c75ad3f73ce9384faa", "score": "0.4926939", "text": "public void setAccessibilities(List<Accessibility> accessibilities) {\n this.accessibilities = accessibilities;\n }", "title": "" }, { "docid": "6640aff6f71624af9d3fe865a61187b5", "score": "0.4921037", "text": "public void setAbilityList(){\n Vector<String> abilities = new Vector<>();\n if(Arena.CUR_PLAYER.getRole().equals(Roles.PHYSICAL.getRole())){\n for(Map.Entry<String,Ability> entrySet: Arena.CUR_PLAYER.getAbilites()\n .entrySet()){\n if(entrySet.getValue().getType().equals(\"Physical\")){\n abilities.add(entrySet.getKey()+\": (AP \"+(int)\n (Arena.CUR_PLAYER.getMaxMp()*entrySet.getValue()\n .getCost())+\")\");\n } \n } \n }\n else if(Arena.CUR_PLAYER.getRole().equals(Roles.MAGICAL.getRole())){\n for(Map.Entry<String,Ability> entrySet: Arena.CUR_PLAYER.getAbilites()\n .entrySet()){\n if(entrySet.getValue().getType().equals(\"Magical\")){\n abilities.add(entrySet.getKey()+\": (AP \"+(int)\n (Arena.CUR_PLAYER.getMaxMp()*entrySet.getValue()\n .getCost())+\")\");\n } \n } \n }\n else if(Arena.CUR_PLAYER.getRole().equals(Roles.RANGED.getRole())){\n for(Map.Entry<String,Ability> entrySet: Arena.CUR_PLAYER.getAbilites()\n .entrySet()){\n if(entrySet.getValue().getType().equals(\"Ranged\")){\n abilities.add(entrySet.getKey()+\": (AP \"+(int)\n (Arena.CUR_PLAYER.getMaxMp()*entrySet.getValue()\n .getCost())+\")\");\n } \n } \n }\n else{\n for(Map.Entry<String,Ability> entrySet: Arena.CUR_PLAYER.getAbilites()\n .entrySet()){\n if(entrySet.getValue().getType().equals(\"Balanced\")){\n abilities.add(entrySet.getKey()+\": (AP \"+(int)\n (Arena.CUR_PLAYER.getMaxMp()*entrySet.getValue()\n .getCost())+\")\");\n } \n } \n }\n abilityList.setListData(abilities);\n }", "title": "" }, { "docid": "9cd4f201a31cbdcf3f1ff5a3f7283b6b", "score": "0.49145192", "text": "public Builder addRewardPlayerAccounts(int value) {\n ensureRewardPlayerAccountsIsMutable();\n rewardPlayerAccounts_.add(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "faf11da56079fb9238e097ace52183c5", "score": "0.48986974", "text": "public Builder setRewards(com.lvl6.proto.RewardsProto.UserRewardProto value) {\n if (rewardsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n rewards_ = value;\n onChanged();\n } else {\n rewardsBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000008;\n return this;\n }", "title": "" }, { "docid": "1582044fc9e222b21d3c05dc9f30c341", "score": "0.48977157", "text": "public void setAutores(Vector<Autor> value) {\n\t\tautores = value;\n\t}", "title": "" }, { "docid": "153ffb31248918743fbe551102479b29", "score": "0.48655644", "text": "public void setListOfUsers( List<UsersEntity> listOfUsers ) {\n this.listOfUsers = listOfUsers;\n }", "title": "" }, { "docid": "3964f84fd3ff5d3dcd8050dff10976bc", "score": "0.4863348", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\ttry {\n\t\t\t\tUser[] viewers = this.client.listAllUsersWithViewPrivileges();\n\t\t\t\tUser[] adders = this.client.listUsersWithAddPrivileges();\n\n\t\t\t\tSet<UserPermission> permissionSet = new HashSet<UserPermission>();\n\n\t\t\t\tif (viewers != null) {\n\t\t\t\t\tfor (User viewer : viewers) {\n\t\t\t\t\t\tUserPermission cur = new UserPermission();\n\t\t\t\t\t\tcur.setIdentity(viewer.getUserIdentity());\n\t\t\t\t\t\tif (!(permissionSet.contains(cur))) {\n\t\t\t\t\t\t\t//UserPermission to list\n\t\t\t\t\t\t\tcur.setView(Boolean.TRUE);\n\t\t\t\t\t\t\tpermissionSet.add(cur);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t//set view permission on existing UserPermission object to true\n\t\t\t\t\t\t\tIterator i = permissionSet.iterator();\n\t\t\t\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\t\t\t\tUserPermission p = (UserPermission)i.next();\n\t\t\t\t\t\t\t\tif (p.equals(cur)) {\n\t\t\t\t\t\t\t\t\tp.setView(Boolean.TRUE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (adders != null) {\n\n\t\t\t\t\tfor (User adder : adders) {\n\t\t\t\t\t\tUserPermission cur = new UserPermission();\n\t\t\t\t\t\tcur.setIdentity(adder.getUserIdentity());\n\t\t\t\t\t\tif (!(permissionSet.contains(cur))) {\n\t\t\t\t\t\t\t//UserPermission to list\n\t\t\t\t\t\t\tcur.setAdd(Boolean.TRUE);\n\t\t\t\t\t\t\tpermissionSet.add(cur);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t//set view permission on existing UserPermission object to true\n\t\t\t\t\t\t\tIterator i = permissionSet.iterator();\n\t\t\t\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\t\t\t\tUserPermission p = (UserPermission)i.next();\n\t\t\t\t\t\t\t\tif (p.equals(cur)) {\n\t\t\t\t\t\t\t\t\tp.setAdd(Boolean.TRUE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.model.setUserPermissions(new ArrayList(permissionSet));\n\t\t\t} catch (PhotoSharingException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "abdf241df9c75c3ce47c49b622c4bbad", "score": "0.4846197", "text": "public void setUser(User user) {\n this.user = user;\n\n for (int i = 0; i < conferenceRendererLists.size(); i++) {\n conferenceRendererLists.get(i).setUser(user);\n conferenceRendererCards.get(i).setUser(user);\n }\n\n }", "title": "" }, { "docid": "7490b8dfc4ab798b8dba63e73acad610", "score": "0.48291337", "text": "public void setListOfDelegatedFromUser(ListOfDelegatedFromUserData param){\n \n if (param != null){\n //update the setting tracker\n localListOfDelegatedFromUserTracker = true;\n } else {\n localListOfDelegatedFromUserTracker = false;\n \n }\n \n this.localListOfDelegatedFromUser=param;\n \n\n }", "title": "" }, { "docid": "84d488327bbb3cf3e11d675691458b3d", "score": "0.48205975", "text": "public void setUsers(List<String> users) {\n this.users = users;\n }", "title": "" }, { "docid": "fed3d7db1e7b7cce49b2f846f6d4ac88", "score": "0.4811914", "text": "private void attendanceFieldsSetter(){\n listWithAttendance.clear();\n listWithAttendance.add(\"User Name\");\n listWithAttendance.add(\"Lesson Date\");\n listWithAttendance.add(\"Lesson Name\");\n listWithAttendance.add(\"Group Name\");\n listWithAttendance.add(\"Course Name\");\n listWithAttendance.add(\"Status\");\n }", "title": "" }, { "docid": "c06cdb8d0fbef18e35a330d4cb505caf", "score": "0.4809303", "text": "private void setDoorMenuList() {\r\n doorMenu.getItems().setAll(theController.getDoorMenuList());\r\n }", "title": "" }, { "docid": "12d093e078775b2d3f19665efe13f18c", "score": "0.48071495", "text": "public void setListOfAdminUser( List<AdminUserEntity> listOfAdminUser ) {\n this.listOfAdminUser = listOfAdminUser;\n }", "title": "" }, { "docid": "cae87cdf0db95549f0fe0c8bb56664d6", "score": "0.47980946", "text": "@Override\n public void setHandCards()\n {\n this.dealingOut.addAll(this.characters);\n this.dealingOut.addAll(this.weapons);\n this.dealingOut.addAll(this.rooms);\n\n //shuffles the cards\n Collections.shuffle(this.dealingOut);\n }", "title": "" }, { "docid": "d19a370f82a56134314075e2cac4e0f9", "score": "0.47907928", "text": "public void setAccess(java.util.List access)\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(ACCESS$34);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ACCESS$34);\n }\n target.setListValue(access);\n }\n }", "title": "" }, { "docid": "5283df67558e1c90ce5d655821adf6dc", "score": "0.47704715", "text": "public void setArmate(ArrayList<Armata> armate) {\r\n\t\tthis.armate = armate;\r\n\t}", "title": "" }, { "docid": "84bf5bb9e680d9e27e5daaebe2b4bfd4", "score": "0.47636223", "text": "public void setListOfDelegatedUser(ListOfDelegatedUserData param){\n \n if (param != null){\n //update the setting tracker\n localListOfDelegatedUserTracker = true;\n } else {\n localListOfDelegatedUserTracker = false;\n \n }\n \n this.localListOfDelegatedUser=param;\n \n\n }", "title": "" }, { "docid": "dc69924a1ba21588565eeb45275c7f0f", "score": "0.47610295", "text": "public void setUsers(java.util.List<ch.ivyteam.ivy.security.IUser> _users)\n {\n users = _users;\n }", "title": "" }, { "docid": "eb1ec439c7cd797e07b753f0e018beac", "score": "0.47404286", "text": "public JSONObject awardsQuery() {\n\n ArrayList<String> query = new ArrayList<>();\n JSONObject object = new JSONObject();\n\n // list that will store the actors who have won all of the query's awards;\n List<ActorInputData> haveAll = new ArrayList<>();\n\n for (ActorInputData actor : actors) {\n\n // number of awards from given list that the actor has won;\n int awardsFound = 0;\n // total number of awards that the actor has won;\n int awardsNumber = 0;\n\n // calculate number of awards won from given list;\n for (String awardFromList : awards) {\n\n Map<ActorsAwards, Integer> awardsWon = actor.getAwards();\n\n for (Map.Entry<ActorsAwards, Integer> entry : awardsWon.entrySet()) {\n\n if (awardFromList.equalsIgnoreCase(entry.getKey().name())) {\n\n awardsFound++;\n }\n }\n }\n\n // verify if all the awards from given list are won;\n if (awardsFound == awards.size()) {\n\n Map<ActorsAwards, Integer> awardsWon = actor.getAwards();\n\n // calculate total number of awards won by the actor;\n for (Map.Entry<ActorsAwards, Integer> entry : awardsWon.entrySet()) {\n\n awardsNumber += entry.getValue();\n }\n\n haveAll.add(actor);\n actor.setAwardsWon(awardsNumber);\n }\n }\n\n // the case where the sort type is ascedent;\n if (sortType.equalsIgnoreCase(\"asc\")) {\n\n haveAll.sort(Comparator.comparing(ActorInputData::getAwardsWon).\n thenComparing(ActorInputData::getName));\n }\n\n // the case where the sort type is descedent;\n if (sortType.equalsIgnoreCase(\"desc\")) {\n\n haveAll.sort(Comparator.comparing(ActorInputData::getAwardsWon).\n thenComparing(ActorInputData::getName));\n Collections.reverse(haveAll);\n }\n\n // put the actors name in the query;\n for (ActorInputData actorInputData : haveAll) {\n\n query.add(actorInputData.getName());\n }\n\n object.put(Constants.ID_STRING, this.id);\n object.put(Constants.MESSAGE, \"Query result: \" + query);\n return object;\n }", "title": "" }, { "docid": "3f0535a4a86e1aaaa5ab9373ba528878", "score": "0.47388083", "text": "public void setListOfDelegatedFromUser(ListOfDelegatedFromUserQuery param){\n \n if (param != null){\n //update the setting tracker\n localListOfDelegatedFromUserTracker = true;\n } else {\n localListOfDelegatedFromUserTracker = false;\n \n }\n \n this.localListOfDelegatedFromUser=param;\n \n\n }", "title": "" }, { "docid": "ebd14cf3e94270da41f1d009a0d4ac24", "score": "0.47333962", "text": "public void setAwardID(String awardID) {\n this.awardID = awardID;\n }", "title": "" }, { "docid": "c807e39b7db9c169007e71b0f17a47b4", "score": "0.47188368", "text": "public void setUsersTurns(boolean[] usersTurns) {\n this.usersTurn = usersTurns;\n }", "title": "" }, { "docid": "8c1f33670e53d7d8fdb91377a8a5787b", "score": "0.47185364", "text": "@Override\r\n\tpublic void accountList(List<String> list) {\n\t\t\r\n\t}", "title": "" }, { "docid": "dddeb6daf297ca5f6fd7d5aa7faf001c", "score": "0.47073743", "text": "public void setAbilityList(AbilityList abilityList) {\n if ( this.abilityList != abilityList ) {\n if ( this.abilityList != null ) {\n // this.abilityList.removePropertyChangeListener(this);\n this.abilityList.removeChangeListener(this);\n }\n this.abilityList = abilityList;\n if ( this.abilityList != null ) {\n //this.abilityList.addPropertyChangeListener(this);\n this.abilityList.addChangeListener(this);\n }\n }\n }", "title": "" }, { "docid": "da4d8a22246f9e2f1908f73cd703e3a1", "score": "0.47047395", "text": "public void setUsers(UsersEOImpl value) {\n setAttributeInternal(USERS, value);\n }", "title": "" }, { "docid": "ab1d92248e31d091158045c49fbc444d", "score": "0.47042322", "text": "@Override\n\t\tpublic void setItem(List<String> accounts) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "eb8cee33cb69a60bb1fede5eb1b3d6d2", "score": "0.47024155", "text": "void setInvestigatorsAndOrganizations(List<String> investigators, List<String> organizations);", "title": "" }, { "docid": "bfb5aa57cb7287174f93075afe1c7c95", "score": "0.46996263", "text": "public void setUsers(List<DAOUser> users) {\n\t\tthis.users = users;\n\t}", "title": "" }, { "docid": "c09599ca01fb3428202d857069050ec6", "score": "0.4697198", "text": "public void changeAces() {\n for (int i = 0; i < playerHandIdx; i++) {\n if (playerHand[i] == 11) {\n playerHand[i] = 1;\n }\n }\n }", "title": "" }, { "docid": "0f6044f3e30cb7885f701372f83f4b5e", "score": "0.46962702", "text": "public void setGranted(boolean state) {\n this.grantedReward = state;\n }", "title": "" }, { "docid": "deb435693378b4395c784509cd3747cb", "score": "0.46811283", "text": "public void setUserInfoWithDefaultDates(Set<String> userIds) {\n List<UserInfo> youtubeUsers = Lists.newLinkedList();\n\n for(String userId : userIds) {\n UserInfo user = new UserInfo();\n user.setUserId(userId);\n user.setAfterDate(this.config.getDefaultAfterDate());\n user.setBeforeDate(this.config.getDefaultBeforeDate());\n youtubeUsers.add(user);\n }\n\n this.config.setYoutubeUsers(youtubeUsers);\n }", "title": "" }, { "docid": "8718d2a7996a7eb5f0eed544de5306c1", "score": "0.46741673", "text": "public void updateCurrentBotUsers(){\r\n\t\ttry {\r\n\t\t\tStatement statement = getConnection().createStatement();\r\n\t\t\tResultSet rs = statement.executeQuery(\"select * from bot_admins;\");\r\n\t\t\tLinkedList<BotUser> admins = new LinkedList<BotUser>();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tBotUser admin = new BotUser();\r\n\t\t\t\tadmin.setUserName(rs.getString(\"user_name\"));\r\n\t\t\t\tadmin.setPassword(rs.getString(\"password\"));\r\n\t\t\t\tadmin.setAccessLevel(rs.getInt(\"access\"));\r\n\t\t\t\tadmin.setLogLevel(rs.getInt(\"loglevel\"));\r\n\t\t\t\tadmins.add(admin);\r\n\t\t\t}\r\n\t\t\t_myBot.setBotAdmins(admins);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t_myBot.getLogger().error(\"Error getting current admins\", e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fde452c3882a4076c809a0ff863aeb9b", "score": "0.46733284", "text": "public void setListOfDelegatedUser(ListOfDelegatedUserQuery param){\n \n if (param != null){\n //update the setting tracker\n localListOfDelegatedUserTracker = true;\n } else {\n localListOfDelegatedUserTracker = false;\n \n }\n \n this.localListOfDelegatedUser=param;\n \n\n }", "title": "" }, { "docid": "c8e6c02e0bd89e119edb8be25c3d0a27", "score": "0.46693555", "text": "public abstract void setAdmins(AccessControlList acls, UserGroupInformation ugi);", "title": "" }, { "docid": "1a553cd3559980d0e95ff6eb053ec8f1", "score": "0.4669068", "text": "public IntentDefinition utterances(List<NluUtterance> utterances) {\n this.utterances = utterances;\n return this;\n }", "title": "" }, { "docid": "514d482022772be8ea7a33c6cee1dad7", "score": "0.4661231", "text": "public void setUsers(_1._0._0._127.ArrayOfUser param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localUsersTracker = true;\r\n } else {\r\n localUsersTracker = false;\r\n \r\n }\r\n \r\n this.localUsers=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "5473fb731697d1297be4b584ff995f5d", "score": "0.46397868", "text": "public Builder clearRewards() {\n if (rewardsBuilder_ == null) {\n rewards_ = com.lvl6.proto.RewardsProto.UserRewardProto.getDefaultInstance();\n onChanged();\n } else {\n rewardsBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000008);\n return this;\n }", "title": "" }, { "docid": "92a90876394d945f3b8e250dc8e3b577", "score": "0.46352243", "text": "public void setAccListData()\n\t{\t\n\t\taccListViewValuesArr.clear();\n\t\taccListViewValuesArr.add(\"All\");\n\t\t\n\t\tCursor acc_all_cursor = SQLiteAdapter.query_Account_ALL();\t\n\t\tif(acc_all_cursor != null)\n\t\t{\n\t\t\tif(acc_all_cursor.moveToFirst())\n\t\t\t{\n\t\t\t\tdo{\n\t\t\t\t\tAccountModel account = new AccountModel();\n\t\t\t\t\taccount.setAccID(acc_all_cursor.getString(acc_all_cursor.getColumnIndex(database.ACC_KEY_ID)));\n\t\t\t\t\taccount.setAccName(acc_all_cursor.getString(acc_all_cursor.getColumnIndex(database.ACC_NAME)));\n\t\t\t\t\taccount.setColor(acc_all_cursor.getString(acc_all_cursor.getColumnIndex(database.ACC_COL)));\n\t\t\t\t\taccount.setCurrency(acc_all_cursor.getString(acc_all_cursor.getColumnIndex(database.ACC_CUR)));\n\t\t\t\t\taccList.add(account);\n\t\t\t\t\taccListViewValuesArr.add(account.getAccName());\n\t\t\t\t}while(acc_all_cursor.moveToNext());\n\t\t\t}\n\t\t}\n\t\tacc_all_cursor.close();\t\n\t\t\n\t\tif(firstIndex > accListViewValuesArr.size())\n\t\t\tfirstIndex = 0;\n\t}", "title": "" }, { "docid": "84daf010c664cc09ce99bdeb088b949e", "score": "0.46254212", "text": "public void setActor(List actors) {\n\t\tthis.actors = actors;\n\t}", "title": "" }, { "docid": "4c3f16ba3b83dffe9b4f8d9db21b3ad4", "score": "0.46247172", "text": "public void setRewardItem(ItemStack[] rewardItem) { this.rewardItem = rewardItem; }", "title": "" }, { "docid": "fb8762dc1f8514ba2281de451791107f", "score": "0.4624367", "text": "public void setSelectedUserList(List selectedUserList) {\n this.selectedUserList = selectedUserList;\n }", "title": "" }, { "docid": "aabc03f3bdfc67d1ec30c1c80c165f53", "score": "0.46213576", "text": "@Method(selector = \"assignRoles:roleList:completionBlock:\")\n\tpublic native void assignRoles(String userName, NSArray<?> roleList, @Block App42ResponseBlock completionBlock);", "title": "" }, { "docid": "bdc6ed48edb04f2a5e1bb74646b63d4f", "score": "0.4617031", "text": "public void setListaUsuarios(List<User> listaUsuarios) {\r\n this.listaUsuarios = listaUsuarios;\r\n }", "title": "" }, { "docid": "512d24cb3f823079047cd3ce9ab693e5", "score": "0.46085596", "text": "public void setAvailableCalendars(ArrayList<User> allUsers) {\n \t}", "title": "" }, { "docid": "34ac65e64bcff9f2b95221c5e094309f", "score": "0.4606751", "text": "public void setAutoAddPrivilegeReaders(List<String> autoAddPrivilegeReaders1) {\r\n this.autoAddPrivilegeReaders = autoAddPrivilegeReaders1;\r\n }", "title": "" }, { "docid": "0a704f8bae7781f0d9027678cbf0859d", "score": "0.46013758", "text": "public void setDelegatedFromUser(DelegatedFromUserData[] param){\n \n validateDelegatedFromUser(param);\n\n \n if (param != null){\n //update the setting tracker\n localDelegatedFromUserTracker = true;\n } else {\n localDelegatedFromUserTracker = false;\n \n }\n \n this.localDelegatedFromUser=param;\n }", "title": "" }, { "docid": "28346c29acfe98cc3792d6bede7c3902", "score": "0.45904115", "text": "@Override\n\tpublic void updateAll(List<User> userList) {\n\t\t\n\t}", "title": "" }, { "docid": "04accf1729a016468a775f55ccb5bd1e", "score": "0.4588245", "text": "@Override\n public void onFollowerInteraction(Contributor contributor, View followControl) {\n new FollowerListEvent(this, contributor, followControl)\n .viewProfile();\n }", "title": "" }, { "docid": "832c2c8fa62d8e3a102973483367e2f0", "score": "0.45840344", "text": "void setSetList() {\n\t}", "title": "" }, { "docid": "003ccb954fb579714ac42fdf09934afb", "score": "0.45788172", "text": "public void setMyFriends(List<MyFriends> myFriends) {\r\n this.myFriends = myFriends;\r\n }", "title": "" }, { "docid": "f2d901d85374649725c1e3fbfe69ef7d", "score": "0.45759583", "text": "public void setPeopleAllowedToEnroll(List<Person> peopleAllowedToEnroll) {\n }", "title": "" }, { "docid": "00fce254cf6f59fb05bcfcf5ad991678", "score": "0.45753282", "text": "public void setScreensharer(WebUser user) {\n\t\tthis.screensharer = user;\n\t}", "title": "" }, { "docid": "02ed63ab526d80caf5ad9a853c75f1ec", "score": "0.45747483", "text": "protected void setReward(float reward) {\n\t\trewardInput = reward;\n\t}", "title": "" }, { "docid": "0d30a93b3d89a046f4f77ced33791670", "score": "0.45734206", "text": "public void setAffiliations(List<String> affiliations) {\n this.affiliations = affiliations;\n }", "title": "" }, { "docid": "72a0c932f3b1e8b8ecb7810017f8ae5a", "score": "0.4557897", "text": "void fillUserView() {\n ListView userView = (ListView) findViewById(R.id.userView);\n //System.out.println(\"CURRR SETUP: \" + SetupList.currentSetup);\n final ArrayList<String> nameList = SetupList.getUserList(SetupList.currentSetup).getAllNames();\n\n ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(\n this,android.R.layout.simple_list_item_1,\n nameList) {\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position, convertView, parent);\n TextView text = (TextView) view.findViewById(android.R.id.text1);\n text.setTextColor(Color.parseColor(\"#CCD7D8\"));\n return view;\n }\n };;\n\n\n userView.setAdapter(arrayAdapter);\n\n // register onClickListener to handle click events on each item\n userView.setOnItemClickListener(new AdapterView.OnItemClickListener()\n {\n // argument position gives the index of item which is clicked\n public void onItemClick(AdapterView<?> arg0, View v,int position, long arg3)\n {\n String selectedUser = nameList.get(position);\n //Toast.makeText(getApplicationContext(), \"User Selected : \" + selectedUser, Toast.LENGTH_LONG).show();\n // Change to Edit User\n Intent intent = new Intent(UserOverview.this, UserConfig.class);\n //System.out.println(\"A USER HAS BEEN CLICKED\");\n UserConfig.currentUser = SetupList.getCurrentUserList().getUserByName(selectedUser);\n //System.out.println(\"SEARCH USERS: \" + UserConfig.currentUser);\n startActivity(intent);\n }\n });\n }", "title": "" }, { "docid": "5238063f488ae1e18f8cd81071b5c19d", "score": "0.4551295", "text": "public void setAdrsList(List<Address> adrsList) {\n\t\tthis.adrsList = adrsList;\n\t}", "title": "" }, { "docid": "9c29aeceb6276117110ecfb9c28260df", "score": "0.45507333", "text": "public final void showFollowers() {\n \t\ttry {\n \t\t\tPagableResponseList<User> result = engine.getFriendsList(\n \t\t\t\t\tengine.getScreenName(), 20);\n \t\t\tfriendsList = new UserModel(result);\n \t\t} catch (Exception ex) {\n \t\t\tthrow new RuntimeException(\"Failed to show users that follow you.\");\n \t\t}\n \t}", "title": "" }, { "docid": "8b8f88728dac0bfa9492f37459dc3585", "score": "0.45454124", "text": "public void setDelegatedUser(DelegatedUserData[] param){\n \n validateDelegatedUser(param);\n\n \n if (param != null){\n //update the setting tracker\n localDelegatedUserTracker = true;\n } else {\n localDelegatedUserTracker = false;\n \n }\n \n this.localDelegatedUser=param;\n }", "title": "" }, { "docid": "286635c7a7e63ba2df054c9fdf646ef2", "score": "0.45181483", "text": "public static List<Alarm> assignedToUser(AlarmAttendant attendant) {\n\t\treturn find.where().eq(\"attendant.id\", attendant.id).findList();\n\t}", "title": "" }, { "docid": "3c8b4dfe68830c519aea3e8ebf88e218", "score": "0.44905216", "text": "public void setRewardDoctor(Reward reward) {\n this.reward = reward;\n if (!reward.getDoctorReward().contains(this)) {\n doctor.getDoctorRewards().add(this);\n }\n }", "title": "" }, { "docid": "2b1c6bc4bed559131205ecea47f5879c", "score": "0.44895092", "text": "public void addToWishlist(User user, String itemName){\n user.addItemToWishList(itemName);\n }", "title": "" }, { "docid": "3c63b39f0b165d71a2c7423e20d575e1", "score": "0.44892612", "text": "public void setCurrentNaiList(com.sprint.integration.interfaces.WholesaleSubscriptionDetail.v1.SubscriptionDetailEnvelope_xsd.AccessChnlAsgm[] currentNaiList) {\r\n this.currentNaiList = currentNaiList;\r\n }", "title": "" }, { "docid": "c24bf72e9dc4ee3309f73a49dfa3c085", "score": "0.4483111", "text": "public void setAttributeNames(List<String> attributeNames) {\r\n AttributeName.clear();\r\n AttributeName.addAll(attributeNames);\r\n }", "title": "" }, { "docid": "07d8881771900769695f89bbd3db24f0", "score": "0.44829923", "text": "public void setSharingList() { \n this.sharing_list = sharing_list; \n }", "title": "" }, { "docid": "39168dbe18fd39ecdb80b3b44eb119db", "score": "0.44829383", "text": "public void setInstructors(List<Instructor> instructors) {\n this.instructors = instructors;\n }", "title": "" }, { "docid": "7e083ea6daa011a08e43a47a460f5b97", "score": "0.44813654", "text": "public void setBidding(String[] bidding){\n ArrayList<String> biddingstring = new ArrayList<>(Arrays.asList(bidding));\n Collections.reverse(biddingstring);\n String card = biddingstring.get(3);\n biddingSuit = card.charAt(1);\n\n\n }", "title": "" }, { "docid": "befb60e9700cfb5972af896c18d18fb7", "score": "0.44763353", "text": "public void setRoles(List<String> roles);", "title": "" }, { "docid": "a40f0329579ac368c1d9976abf1f4987", "score": "0.44745046", "text": "public static void setDefaultMaxForwards(int maxForwards) {\n MAX_FORWARDS_DEFAULT = maxForwards;\n DEFAULT_MAX_FORWARDS_HEADER =\n new DsSipHeaderString(MAX_FORWARDS, BS_MAX_FORWARDS, DsByteString.valueOf(maxForwards));\n }", "title": "" }, { "docid": "51f5c2a39ecc5aa917e135cebd27c222", "score": "0.44735953", "text": "public void setiAmFriendOf(List<MyFriends> iAmFriendOf) {\r\n this.iAmFriendOf = iAmFriendOf;\r\n }", "title": "" }, { "docid": "0513d94ef7cbaddc10eea8a79c130723", "score": "0.44701612", "text": "void setCurrentDecks(List<Deck> decks);", "title": "" }, { "docid": "9d5bd56322151834bd4284499129a8aa", "score": "0.44669107", "text": "@Override\r\n\tpublic void sortFollowships(User user, HttpServletRequest req,\r\n\t\t\tList<User> users) {\r\n\t\tList<User> followees = new ArrayList<User>();\r\n\t\tList<User> nonfollowees = new ArrayList<User>();\r\n\t\tif (users != null && users.size() > 0) {\r\n\t\t\tfor (User u : users) {\r\n\t\t\t\tif (!user.equals(u)) {\r\n\t\t\t\t\tif (checkFollowship(user.getUserId(), u.getUserId())) {\r\n\t\t\t\t\t\tfollowees.add(u);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnonfollowees.add(u);\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\treq.setAttribute(\"followees\", followees);\r\n\t\treq.setAttribute(\"nonfollowees\", nonfollowees);\r\n\t}", "title": "" }, { "docid": "a9ffd2f2dcf2be5f61aca1a549a9b56e", "score": "0.446536", "text": "public void setUsers(SchedulerUsers users) {\n sUsers = users;\n }", "title": "" }, { "docid": "0f436cf977380d05b2e7a581070a9d22", "score": "0.4462486", "text": "public void setFollower(Item f) {\n\n this.follower = f;\n }", "title": "" }, { "docid": "4d17e1e2fd031d6b937396c012401bc9", "score": "0.44605812", "text": "@Override public void onUserListUpdate(User arg0, UserList arg1)\n\t{\n\n\t}", "title": "" }, { "docid": "ff2dea5790af4e959eba7e9c59148d20", "score": "0.446054", "text": "public void setAttributes(List<ETProfileAttribute> attribs) {\n this.attributes = attribs;\n }", "title": "" }, { "docid": "d81d0dc95d27c153f52c37426ea01c43", "score": "0.44601056", "text": "public void addActionUids(List<String> actionIdList) {\n if (!CollectionUtils.isEmpty(permissions)) {\n if (getPermission(DSActionConfig.Completion)) {\n actionIdList.add(uid);\n }\n }\n }", "title": "" }, { "docid": "9f67ca444171dacdc5c82a7ef66f43e8", "score": "0.44596258", "text": "public void setLoggedUsers(List<CurrentUserBean> loggedUsers) {\n this.loggedUsers = loggedUsers;\n }", "title": "" }, { "docid": "46e3cff59eba30f98eca5727cf07b2e8", "score": "0.44495058", "text": "@Override\n public void onClick(View v) {\n moveToUserList();\n }", "title": "" }, { "docid": "c3ab2e6154568292128dd1b265ba83f2", "score": "0.44474384", "text": "public List<Award> findAwards(Region region) {\n List<Award> awards = new ArrayList<>();\n Set<Employee> employees = this.findEmployees(region);\n\n employees.forEach(employee -> {\n List<Award> employeeAwards = employee.getAwards();\n awards.addAll(employeeAwards);\n });\n\n return awards;\n }", "title": "" }, { "docid": "916be2f27e125128585a9196ce1da164", "score": "0.4446313", "text": "public void giveRewardsToWinners(Arena arena) {\n\t\tfor (String p_ : arena.getAllPlayers()) {\n\t\t\tgiveWinReward(p_, arena);\n\t\t}\n\t}", "title": "" }, { "docid": "da874eccc33f1a7562daab1be99123a8", "score": "0.44441676", "text": "void setChapters(List<SimpleChapter> chapters);", "title": "" } ]
5ae3bcf602ce138bbe9b5f815fe94fba
after specified dialog showing rate option dialog
[ { "docid": "08f53ae7968cdefb8a86e6b6a93f2a46", "score": "0.0", "text": "private AlertDialog createAppRatingDialog(String rateAppTitle, String rateAppMessage) {\n AlertDialog dialog = new AlertDialog.Builder(this).setPositiveButton(getString(R.string.dialog_app_rate), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface paramAnonymousDialogInterface, int paramAnonymousInt) {\n openAppInPlayStore(ListViewItemClick1.this);\n AppPreferences.getInstance(ListViewItemClick1.this.getApplicationContext()).setAppRate(false);\n }\n }).setNegativeButton(getString(R.string.dialog_your_feedback), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface paramAnonymousDialogInterface, int paramAnonymousInt) {\n openFeedback(ListViewItemClick1.this);\n AppPreferences.getInstance(ListViewItemClick1.this.getApplicationContext()).setAppRate(false);\n }\n }).setNeutralButton(getString(R.string.dialog_ask_later), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface paramAnonymousDialogInterface, int paramAnonymousInt) {\n paramAnonymousDialogInterface.dismiss();\n AppPreferences.getInstance(ListViewItemClick1.this.getApplicationContext()).resetLaunchCount();\n }\n }).setMessage(rateAppMessage).setTitle(rateAppTitle).create();\n return dialog;\n }", "title": "" } ]
[ { "docid": "518df17b8c6761978bdad48d67381810", "score": "0.6779212", "text": "private void openRatingDialog(){\n\n rateDialog = new Dialog(this);\n rateDialog.setContentView(R.layout.custom_dialog_rate_user);\n\n final RatingBar rate = rateDialog.findViewById(R.id.rate);\n Button b_save = rateDialog.findViewById(R.id.b_save);\n Button b_dismiss = rateDialog.findViewById(R.id.b_dismiss);\n\n\n rateDialog.setCancelable(false);\n\n b_save.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n double rateNum = rate.getRating();\n\n if(rateNum == 0.0){\n\n Toast.makeText(UserProfileActivity.this, \"لا يمكن التقييم بصفر\", Toast.LENGTH_SHORT).show();\n\n }\n else {\n\n String rate = \"\";\n\n if(rateNum > 0 && rateNum <=1){\n\n rate = \"usersRatedOneStar\";\n getRatedUsers(rate);\n\n }\n else if(rateNum > 1 && rateNum <=2){\n\n rate = \"usersRatedTwoStar\";\n getRatedUsers(rate);\n\n }\n else if(rateNum > 2 && rateNum <=3){\n\n rate = \"usersRatedThreeStar\";\n getRatedUsers(rate);\n\n }\n else if(rateNum > 3 && rateNum <=4){\n\n rate = \"usersRatedFourStar\";\n getRatedUsers(rate);\n\n }\n else{\n\n rate = \"usersRatedFiveStar\";\n getRatedUsers(rate);\n\n }\n\n m_progress_bar.setVisibility(View.VISIBLE);\n\n rateDialog.dismiss();\n\n }\n\n\n }\n });\n\n b_dismiss.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n rateDialog.dismiss();\n\n }\n });\n\n rateDialog.show();\n\n }", "title": "" }, { "docid": "7f3e21bd0de9dc2f439151eb5088885b", "score": "0.6496485", "text": "private void showRateAppDialogIfNeeded() {\n boolean bool = AppPreferences.getInstance(getApplicationContext()).getAppRate();\n int i = AppPreferences.getInstance(getApplicationContext()).getLaunchCount();\n if ((bool)&& (i == 2) ) {\n //|| (i == 2)\n createAppRatingDialog(getString(R.string.rate_app_title), getString(R.string.rate_app_message)).show();\n }\n }", "title": "" }, { "docid": "faa7effab3b1b03f4fce74aeb6696fb6", "score": "0.623962", "text": "private void showKMDialog()\n {\n try {\n final Dialog dialog = new Dialog(context);\n dialog.setContentView(R.layout.dialog_kilometer_range_selector);\n // dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n\n final Button btnrange = (Button) dialog.findViewById(R.id.btnrange);\n\n final BubbleSeekBar bubbleSeekBar3 = (BubbleSeekBar) dialog.findViewById(R.id.demo_4_seek_bar_3);\n bubbleSeekBar3.setOnProgressChangedListener(new BubbleSeekBar.OnProgressChangedListener() {\n @Override\n public void onProgressChanged(int progress, float progressFloat) {\n\n btnrange.setText(\"FIND NEAR BY \" + progress + \" K.M.\");\n\n\n sessionManager.setDistanceInterval(String.valueOf(progress));\n }\n\n @Override\n public void getProgressOnActionUp(int progress, float progressFloat) {\n\n }\n\n @Override\n public void getProgressOnFinally(int progress, float progressFloat) {\n\n }\n });\n\n\n // trigger by set progress or seek by finger\n bubbleSeekBar3.setProgress(Integer.parseInt(userDetails.get(SessionManager.KEY_DISTANCE_INTERVAL_IN_KM)));\n\n btnrange.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n dialog.cancel();\n dialog.dismiss();\n\n userDetails = sessionManager.getSessionDetails();\n tvKms.setText(\"With in \" + userDetails.get(SessionManager.KEY_DISTANCE_INTERVAL_IN_KM) + \" kms\");\n\n getDealsDetailsFromServer();\n }\n });\n\n dialog.getWindow().setLayout(Toolbar.LayoutParams.FILL_PARENT, Toolbar.LayoutParams.WRAP_CONTENT);\n dialog.show();\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5d0139b9d98c2019f7a7a42cb109a740", "score": "0.61351895", "text": "void showDialog() \n {\n UIBlitz.setAtCenter(this);\n setVisible(rootPaneCheckingEnabled);\n resultSet = null;\n }", "title": "" }, { "docid": "79e9815d4d5bf976e8df183f524989d0", "score": "0.6092926", "text": "public void showStatsDialog() {\n \t\tfinal StatisticsDialogHandler statisticsDialogHandler = new StatisticsDialogHandler(this);\n \t\t\n \t\tFrontlineUiUpateJob updateJob = new FrontlineUiUpateJob() {\n \t\t\t\n \t\t\tpublic void run() {\n \t\t\t\tadd(statisticsDialogHandler.getDialog());\n \t\t\t}\n \t\t};\n \t\t\n \t\tEventQueue.invokeLater(updateJob);\n \t}", "title": "" }, { "docid": "35e9f25c7cc285811883291289e43fdd", "score": "0.60436106", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tsetDefaultPeriodLength(which + 1);\n\t\t\t\t\n\t\t\t\tdialog.dismiss();\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0899f85fbce967933abec1652149f141", "score": "0.59720856", "text": "@Override\n protected void onPreExecute() {\n Dialog.setMessage(\"Current Trending...\");\n Dialog.show();\n }", "title": "" }, { "docid": "fa19a52007ac072490e3928e69daf5c4", "score": "0.5934643", "text": "private void showChooseDialog()\r\n {\r\n\t\tOnClickListener clickListener = new MyClicListener();\r\n \t\r\n AlertDialog.Builder dialog = new AlertDialog.Builder(this);\r\n dialog.setTitle(\"Display\");\r\n dialog.setMessage(\"Would you like to see the stats or the track?\");\r\n dialog.setCancelable(true);\r\n dialog.setPositiveButton(\"Track\", clickListener);\r\n\t\tdialog.setNegativeButton(\"Stats\", clickListener);\r\n\r\n dialog.show();\r\n }", "title": "" }, { "docid": "e1fad5855c6d8d506d5a569f70c6cb9f", "score": "0.593345", "text": "@Override\r\n\tpublic void onShow(DialogInterface dialog) {\n\t\tLog.v(TAG, \"onShow\");\r\n\t\tif(progress != null) {\r\n\t\t\tprogress.setMax(getDefaultMax());\r\n\t\t\tprogress.setProgress(0);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4fd279dbe8ce591d624ba70ecb19bcc3", "score": "0.5876596", "text": "public void actionPerformed(ActionEvent ae) {\n\t// pause the simulation\n\tsim.stop();\n\n\t// make the dialog visible\n\tdialog.setVisible(true);\n\t// the action listener for the dialog will call\n\t// reset() when it is done\n }", "title": "" }, { "docid": "8cfe4b06b4547692c6c7cbe00fcc5f8c", "score": "0.58618027", "text": "private void showEditRevenuePercentageDialog() {\r\n\r\n\t\tJDialog dialog = new JDialog(this, \"Edit Revenue Percentage\");\r\n\r\n\t\tJPanel editRevenuePercentagePanel = new JPanel();\r\n\t\teditRevenuePercentagePanel.setLayout(new BoxLayout(editRevenuePercentagePanel, BoxLayout.PAGE_AXIS));\r\n\r\n\t\tJLabel infoLabel = new JLabel(\"Enter percentage (in decimal notation)\");\r\n\r\n\t\tJSpinner percentageSpinner = new JSpinner(\r\n\t\t\t\tnew SpinnerNumberModel(Marketplace.getSellerRevenuePercentage(), 0, 1, .01));\r\n\r\n\t\tActionListener listener = new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getActionCommand().equals(\"OK\")) {\r\n\t\t\t\t\tMarketplace.setSellerRevenuePercentage((double) percentageSpinner.getValue());\r\n\t\t\t\t\tdialog.dispose();\r\n\t\t\t\t} else if (e.getActionCommand().equals(\"Cancel\")) {\r\n\t\t\t\t\tdialog.dispose();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tJPanel buttonPanel = new JPanel();\r\n\t\tJButton acceptButton = new JButton(\"OK\");\r\n\t\tacceptButton.addActionListener(listener);\r\n\t\tJButton cancelButton = new JButton(\"Cancel\");\r\n\t\tcancelButton.addActionListener(listener);\r\n\r\n\t\tbuttonPanel.add(acceptButton);\r\n\t\tbuttonPanel.add(cancelButton);\r\n\r\n\t\teditRevenuePercentagePanel.add(infoLabel);\r\n\t\teditRevenuePercentagePanel.add(percentageSpinner);\r\n\t\teditRevenuePercentagePanel.add(buttonPanel);\r\n\r\n\t\tdialog.add(editRevenuePercentagePanel);\r\n\t\tdialog.pack();\r\n\t\tdialog.setLocationRelativeTo(this);\r\n\t\tdialog.setVisible(true);\r\n\t}", "title": "" }, { "docid": "05991cf167c74c1701c4a0c7bd72cf79", "score": "0.58543086", "text": "public void displayBenchmarkDialog() {\n\t\tIElement element = IElement.curItem;\n\t\tif (element != null && element != import_ && element != bin_ && element instanceof DynamicalModelElement) {\n\t\t\ttry {\n\t\t\t\tOptions.generateDREAM3GoldStandard((DynamicalModelElement) element);\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog_.log(Level.WARNING, \"NetworkDesktop::displayBenchmarkDialog(): \" + e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b54f23fa7dd93bb41b9c8682b9f9b8e3", "score": "0.5852339", "text": "public void onClick(DialogInterface dialog, int which) {\n switch (which) {\n case 0:\n AdaptiveSelection.get().setAlpha(2);\n Statistics.get().alphaChanged();\n break;\n case 1:\n AdaptiveSelection.get().setAlpha(1);\n Statistics.get().alphaChanged();\n break;\n case 2:\n AdaptiveSelection.get().setAlpha(0);\n Statistics.get().alphaChanged();\n break;\n\n }\n }", "title": "" }, { "docid": "480b309d268e2819c3d1f01080306aa7", "score": "0.585143", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\tshowToast(\"当前电量:\"+progress+\"%\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tshowToast(\"电池温度:0\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "6cba6c8757960e490f267e79f5fc5285", "score": "0.5828686", "text": "public void doChangeRate() {\r\n System.out.println(\"Enter the new rate of charge ($/hour):\");\r\n rate = input.nextDouble();\r\n parkingList.setRate(rate);\r\n\r\n System.out.println(\"The rate has been set to \" + rate + \" $/hour\");\r\n }", "title": "" }, { "docid": "2e73003d7ca10ea94f473b0b83527360", "score": "0.58219385", "text": "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\teditor.putBoolean(\"canrate\", false);\n\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\tif(mDialog!=null &&mDialog.isShowing()){\n\t\t\t\t\t\t\tmDialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "title": "" }, { "docid": "65514ca937194cd125b82b2be83abb50", "score": "0.58010983", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tsetDefaultOvulationLength(ovualtionLength);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "22ac3e79c9afdc648085b49bf1e06bc7", "score": "0.5796104", "text": "private void createDialogForWeightUpdate() {\n\n DialogInterface.OnClickListener dialogClickListener = (dialog, which) -> {\n switch (which) {\n case DialogInterface.BUTTON_POSITIVE:\n startActivity(new Intent(this.getApplicationContext(), SettingsActivity.class));\n finish();\n break;\n case DialogInterface.BUTTON_NEUTRAL:\n break;\n case DialogInterface.BUTTON_NEGATIVE:\n new UserAttributeHandler(getApplicationContext()).handleSaveWeightNow(String.valueOf(SharedPreferenceUtils.getUserWeight(this)));\n break;\n }\n };\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Deine letzte Gewichtsmessung liegt schon eine Woche zurück! Update jetzt dein Gewicht!\").setPositiveButton(\"Zu den Settings\", dialogClickListener)\n .setNegativeButton(\"Jetzt nicht\",dialogClickListener).setNeutralButton(\"Mein Gewicht hat sich nicht geändert\",dialogClickListener);\n builder.create();\n builder.show();\n }", "title": "" }, { "docid": "f083767e48f2ebf511b785768ea39a72", "score": "0.57934254", "text": "public void selectRateType(String i)\n\t{\n\t\t//To check the status of \"Continued_Execution\" parameter, if it is set to NO it will skip this method, if not it will resume the execution \n\t\tif(oParameters.GetParameters(\"Continued_Execution\").equalsIgnoreCase(\"No\"))\n\t\t{\t\t\t\n\t\t\t//Adding step result to report\n\t\t\toReport.AddStepResult(\"Skipped Method :\", \"Skipped Method : \" + Thread.currentThread().getStackTrace()[1].getMethodName().toUpperCase(), \"INFO\");\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tif(oParameters.GetParameters(\"TermType\"+i).equals(\"Terms\"))\n\t\t\tselectOption(rateTypeSearchBox,\"visibletext\",oParameters.GetParameters(\"RateType\"+i));\n\t\telse if(oParameters.GetParameters(\"TermType\"+i).equals(\"StopLoss\"))\n\t\t\tselectOption(rateTypeSearchBox_Stoploss,\"visibletext\",oParameters.GetParameters(\"RateType\"+i));\n\t\telse if(oParameters.GetParameters(\"TermType\"+i).equals(\"Exclusions\"))\n\t\t\tselectOption(rateTypeSearchBox_ExclusionTerm,\"visibletext\",oParameters.GetParameters(\"RateType\"+i));\n\t\t\n\t\tif(oParameters.GetParameters(\"RateType\"+i).equals(\"Additive Tiered\"))\n\t\t{\n\t\t\tif(IsDisplayed(\"Add Term\", addTermWindow))\n\t\t\t{\n\t\t\t\tif(IsDisplayed(\"Tier Basis Drop down\", tierBasis))\n\t\t\t\t{\n\t\t\t\t\toReport.AddStepResult(\"Additive Tiered Rate Type\", \"In 'Add Term' window filled madatory fields then selected 'Additive Tiered' as Rate Type, verified that Table Basis drop down displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\t\tselectOption(tierBasis,\"visibletext\",oParameters.GetParameters(\"TireBasis\"+i));\n\t\t\t\t\t\n\t\t\t\t\tif(!(oParameters.GetParameters(\"TireBasis\"+i).equals(\"Hours\") || oParameters.GetParameters(\"TireBasis\"+i).equals(\"Minutes\")))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(oParameters.GetParameters(\"TireBasis\"+i).equals(\"Total Covered Charge Amount\") || oParameters.GetParameters(\"TireBasis\"+i).equals(\"Daily covered charge amount\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toReport.AddStepResult(\"Additive Tiered Rate Type\", \"In 'Add Term' window filled madatory fields then selected 'Additive Tiered' as Rate Type and Tier Basis as \"+oParameters.GetParameters(\"TireBasis\"+i)+\", verified that Table Basis Rate Type drop down displayed\", \"PASS\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tselectOption(tierBasisRateType,\"visibletext\",oParameters.GetParameters(\"TierBasisRateType\"+i));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\toReport.AddStepResult(\"Additive Tiered Rate Type\", \"In 'Add Term' window filled madatory fields then selected 'Additive Tiered' as Rate Type and Tier Basis as \"+oParameters.GetParameters(\"TireBasis\"+i)+\" but that Table Basis Rate Type drop down is not displayed\", \"FAIL\");\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\toReport.AddStepResult(\"Additive Tiered Rate Type\", \"In 'Add Term' window filled madatory fields then selected 'Additive Tiered' as Rate Type but table Basis drop down is not displayed\", \"FAIL\");\t\t\t\n\t\t\t}\n\t\t\telse if(IsDisplayed(\"StopLoss Window\",addStopLossTermWindow ))\n\t\t\t{\n\t\t\t\t\tselectOption(tierBasisRateType,\"visibletext\",oParameters.GetParameters(\"TierBasisRateType\"+i));\n\t\t\t}\n\t\t\telse if(IsDisplayed(\"Add Exclusion Term\", AddExclusionTermTab))\n\t\t\t{\n\t\t\t\tif(IsDisplayed(\"Tier Basis Drop down\", tierBasis))\n\t\t\t\t{\n\t\t\t\t\toReport.AddStepResult(\"Additive Tiered Rate Type\", \"In 'Add Exclusion Term' window filled madatory fields then selected 'Additive Tiered' as Rate Type, verified that Table Basis drop down displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\t\tselectOption(tierBasis,\"visibletext\",oParameters.GetParameters(\"TireBasis\"+i));\n\t\t\t\t\tselectOption(tierBasisRateType,\"visibletext\",oParameters.GetParameters(\"TierBasisRateType\"+i));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\toReport.AddStepResult(\"Additive Tiered Rate Type\", \"In 'Add Exclusion Term' window filled madatory fields then selected 'Additive Tiered' as Rate Type but table Basis drop down is not displayed\", \"FAIL\");\n\t\t\t}\n\t\t\tformThroughValue(i);\n\t\t}\t\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"Formula\"))\n\t\t{\n\t\t\t\n\t\t\tif(IsDisplayed(\"Formula Name Search Box\", formulaNameSB))\t\n\t\t\t{\t\n\t\t\t\t//stop loss formula expression QG vr\n\t\t\t\tif(oParameters.GetParameters(\"TESTNAME\").equalsIgnoreCase(\"CCM_VR_Soarian_QualificationGroups_StopLoss_Formula_Expression\"))\n\t\t\t\t\tenter_text_value(\"Formula Name Search Box\", formulaNameSB,oParameters.GetParameters(\"QualificationGroupName\"));\n\t\t\t\telse\n\t\t\t\t\tenter_text_value(\"Formula Name Search Box\", formulaNameSB, oParameters.GetParameters(\"FormulaNameSB\"+i));\n\t\t\t}\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"Formula Rate Type\", \"In 'Add Stop Loss Term' window filled mandatory fields then selected 'Formula' as Rate Type but Formula name search box is not displayed \", \"FAIL\");\n\t\t\t\n\t\t\tif(!oParameters.GetParameters(\"GroupCodeOverride\"+i).isEmpty())\n\t\t\t\tselectOption(groupCodeOverrideDD,\"visibletext\",oParameters.GetParameters(\"TableBasis\"+i));\t\t\n\t\t}\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"APC/APG Pricer\"))\n\t\t{\n\t\t\tif(IsDisplayed(\"Percentage text box\", percentage))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"Percentage text box\", \"In 'Add Term' window filled madatory fields then selected 'APC/APG Price' as Rate Type, verified that percentage text box displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\tenter_text_value(\"Percentage\",percentage , oParameters.GetParameters(\"Percentage\"+i));\n\t\t\t}\t\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"Percentage text box\", \"In 'Add Term' window filled madatory fields then selected 'APC/APG Price' as Rate Type but that percentage text box is not displayed\", \"FAIL\");\n\t\t}\t\t\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"By Revenue Code\"))\n\t\t{\n\t\t\tif(IsElementDisplayed(\"Table Basis Drop down\", tableBasis))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"Table Basis\", \"In 'Add Term' window filled madatory fields then selected 'By Revenue Code' as Rate Type, verified that Table Basis drop down displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\tselectOption(tableBasis,\"visibletext\",oParameters.GetParameters(\"TableBasis\"+i));\n\t\t\t\n\t\t\t\tString[] revenueCode = oParameters.GetParameters(\"RevenueCodeExpression\"+i).split(\",\");\n\t\t\t\n\t\t\t\tString[] Amount_Percentage = oParameters.GetParameters(\"Amount/Percentage\"+i).split(\",\");\n\t\t\t\n\t\t\t\tfor(int j=0;j<revenueCode.length;j++)\n\t\t\t\t{\n\t\t\t\t\tBy ByRevenueCode_revenueCodeExpresstion = By.xpath(\"//input[@id='revCodeRateEntry\"+j+\"']\");\n\t\t\t\t\n\t\t\t\t\tenter_text_value(\"Revenue Code Expresstion\", ByRevenueCode_revenueCodeExpresstion, revenueCode[j]);\n\t\t\t\t\t\n\t\t\t\t\tBy Revenue = By.xpath(\"//div[@id='revCodeRateEntry0']//ul[@id='-list']//li//a[not(text())]//b[text()='\"+revenueCode[j]+\"']\");\n\t\t\t\t\t\n\t\t\t\t\tif(IsDisplayed(\"Revenue Expresstion\", Revenue))\n\t\t\t\t\t\tclick_button(\"Revenue Expression\", Revenue);\n\t\t\t\t\n\t\t\t\t\tBy ByRevenueCode_Amount = By.xpath(\"//input[@id='rateEntries\"+j+\"']\");\n\t\t\t\t\n\t\t\t\t\tenter_text_value(\"Amount\", ByRevenueCode_Amount, Amount_Percentage[j]);\n\t\t\t\t\n\t\t\t\t\tif(j < Amount_Percentage.length-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(oParameters.GetParameters(\"TermType\"+i).equals(\"Exclusions\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tBy addIcon = By.xpath(\"//form[@id='addEditExclusionTerm']//ul[@class='data-list overflow-visible']//li[\"+(j+2)+\"]//i[@class='left fa fa-plus-square']\");\n\t\t\t\t\t\t\tclick_button(\"Add Icon\", addIcon);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tBy addIcon = By.xpath(\"//form[@id='addEditTermForm']//ul[@class='data-list overflow-visible']//li[\"+(j+2)+\"]//i[@class='left fa fa-plus-square']\");\n\t\t\t\t\t\t\tclick_button(\"Add Icon\", addIcon);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"Table Basis\", \"In 'Add Term' window filled madatory fields then selected 'By Revenue Code' as Rate Type but that Table Basis drop down is not displayed\", \"FAIL\");\n\t\t\t\toParameters.SetParameters(\"CONTINUED_EXECUTION\", \"NO\");\n\t\t\t}\n\t\t}\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"Dosage Quantity\"))\n\t\t{\n\t\t\tif(IsDisplayed(\"Rate Amount\", rateAmount)&& IsDisplayed(\"Quantity Rounding Dropdown\", QuantityRoundingMethod))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"Quantity Rounding Dropdown\", \"In 'Add Term' window filled all the mandatory fields selected 'Dosage Quantity' as Rate Type, verified that Quantity Rounding method drop down is displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\tenter_text_value(\"Rate Amount\", rateAmount, oParameters.GetParameters(\"RateAmount\"+i));\n\t\t\t\t\n\t\t\t\tselectOption(QuantityRoundingMethod,\"visibletext\",oParameters.GetParameters(\"QuantityRoundingMethod\"+i));\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"Quantity Rounding Dropdown\", \"In 'Add Term' window filled all the mandatory fields selected 'Dosage Quantity' as Rate Type but Quantity Rounding method drop down is not displayed\", \"FAIL\");\n\t\t}\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"DRG Pricer\"))\n\t\t{\n\t\t\tif(IsDisplayed(\"DRG Pricer Percentage\", DRG_percentage))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"DRG Pricer Percentage\", \"In 'Add Term' window filled all the mandatory fields selected 'DRG Price' as Rate Type, verified that Percentage text box displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\tenter_text_value(\"DRG Pricer Percentage\", DRG_percentage, oParameters.GetParameters(\"Percentage\"+i));\n\t\t\t\t\n\t\t\t\tenter_text_value(\"Additional Flat Amount\", DRG_additionalFlatAmount, oParameters.GetParameters(\"AdditionalFlatAmount\"+i));\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"DRG Pricer Percentage\", \"In 'Add Term' window filled all the mandatory fields selected 'DRG Price' as Rate Type but Percentage text box is not displayed\", \"FAIL\");\n\t\t}\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"Dialysis PPS Rate\"))\n\t\t{\n\t\t\tif(IsDisplayed(\"Dailysis PPS Rate\", percentage) && IsDisplayed(\"Dailysis PPS Rate Factor\", dailysisPPSRateFactor))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"Dailysis PPS Rate and Rate Factor\", \"In 'Add Term' window filled all the mandatory fields selected 'Dailysis PPS Rate' as Rate Type, verified that Percentage text box and Dialysis PPS Rate Factors search box displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\tenter_text_value(\"Dailysis PPS Rate\", percentage, oParameters.GetParameters(\"Percentage\"+i));\n\t\t\t\t\n\t\t\t\tenter_text_value(\"Dailysis PPS Rate Factor\", dailysisPPSRateFactor, oParameters.GetParameters(\"DialysisPPSRateFactors\"+i));\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"Dailysis PPS Rate and Rate Factor\", \"In 'Add Term' window filled all the mandatory fields selected 'Dailysis PPS Rate' as Rate Type but Percentage text box and Dialysis PPS Rate Factors search box is not displayed\", \"FAIL\");\n\t\t}\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"DRG User\"))\n\t\t{\n\t\t\tif(IsDisplayed(\"DRG User Rate Set\", DRGUserrateSet))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"DRG User Rate Set\", \"In 'Add Term' window filled all the mandatory fields selected 'DRG User' as Rate Type, verified that DRG user rate set search box displayed\", \"PASS\");\t\t\t\t\n\t\t\t\t\n\t\t\t\tenter_text_value(\"DRG User Rate Set\", DRGUserrateSet, oParameters.GetParameters(\"DRGUserRateSet\"+i));\n\t\t\t\t\n\t\t\t\tif(IsDisplayed(\"DRG User Set Period\", DRGUserSetPeriod))\n\t\t\t\t\tselectOption(DRGUserSetPeriod,\"visibletext\",oParameters.GetParameters(\"DRGUserRateSetPeriod\"+i));\n\t\t\t\t\n\t\t\t\tif(IsDisplayed(\"Group Code Override\", groupCodeOverride))\n\t\t\t\t\tselectOption(groupCodeOverride,\"visibletext\",oParameters.GetParameters(\"GroupCodeOverride\"+i));\n\t\t\t\t\n\t\t\t\tif(IsDisplayed(\"Calculation Method\", calculationMethod))\n\t\t\t\t\tselectOption(calculationMethod,\"visibletext\",oParameters.GetParameters(\"CalculationMethod\"+i));\n\t\t\t\t\n\t\t\t\tif(oParameters.GetParameters(\"CalculationMethod\"+i).equals(\"DRG Formula Method\"))\n\t\t\t\t{\t\n\t\t\t\t\tenter_text_value(\"Formula Name\", formulaName, oParameters.GetParameters(\"FormulaName\"+i));\n\t\t\t\t\t\n\t\t\t\t\tBy FormulaList = By.xpath(\"//div[@class='col-lg-8 col-md-8 col-sm-8']//ul[@id='-list']//li//a[not(text())]//b[text()='\"+oParameters.GetParameters(\"FormulaName\"+i)+\"']\");\n\t\t\t\t\n\t\t\t\t\tif(IsDisplayed(\"Formula List\", FormulaList))\n\t\t\t\t\t\tclick_button(\"Formula List Name\", FormulaList);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"Percentage\"+i).isEmpty())\n\t\t\t\t\tenter_text_value(\"DRG User Percentage\", DRG_percentage, oParameters.GetParameters(\"Percentage\"+i));\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"AdditionalFlatAmount\"+i).isEmpty())\n\t\t\t\t\tenter_text_value(\"DRG Additional flat Amount\", DRG_additionalFlatAmount, oParameters.GetParameters(\"AdditionalFlatAmount\"+i));\n\t\t\t}\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"DRG User Rate Set\", \"In 'Add Term' window filled all the mandatory fields selected 'DRG User' as Rate Type but DRG user rate set search box is not displayed\", \"FAIL\");\n\t\t}\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"Fee Schedule\"))\n\t\t{\n\t\t\tif(IsDisplayed(\"Fee Schedule Search Field\", feeScheduleSearchField))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"Fee Schedule Search Field\", \"In 'Add Term' window filled all the mandatory fields selected 'Fee Schedule' as Rate Type, verified that Fee Schedule search box displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"FeeSchedule\"+i).isEmpty())\n\t\t\t\t{\n\t\t\t\t\tenter_text_value(\"Fee Schedule Search Field\", feeScheduleSearchField, oParameters.GetParameters(\"FeeSchedule\"+i));\n\t\t\t\t\tfixed_wait_time(2);\n\t\t\t\t\tperformKeyBoardAction(\"ENTER\");\n\t\t\t\t\tfixed_wait_time(3);\t\n\t\t\t\t\t\n\t\t\t\t\tBy FeeSchedule = By.xpath(\"//div[@class='col-lg-8 col-md-8 col-sm-8']//ul[@id='-list']//li//a[not(text())]//b[text()='\"+oParameters.GetParameters(\"FeeSchedule\"+i)+\"']\");\n\n\t\t\t\t\tif(IsDisplayed(\"Fee Schedule\", FeeSchedule))\n\t\t\t\t\t\tclick_button(\"Fee Schedule\", FeeSchedule);\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tclick_button(\"Fee Schedule Search Field\", feeScheduleSearchField);\n\t\t\t\t\tperformKeyBoardAction(\"ENTER\");\n\t\t\t\t\tclick_button(\"First fee schedule search result value\", firstFeeScheduleSearchValue);\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\toReport.AddStepResult(\"Fee Schedule Search field\", \"Fee Schedule selected\", \"SCREENSHOT\");\n\t\t\t\tfixed_wait_time(2);\n\t\t\t\t\n\t\t\t\tenter_text_value(\"Percent of Fee Schedule\", rateAmount, oParameters.GetParameters(\"PercentOfFeeSchedule\"+i));\n\t\t\t\tfixed_wait_time(3);\n\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"FeeSchedulePeriod\"+i).isEmpty())\n\t\t\t\t\tselectOption(feeSchedulePeriod,\"value\",oParameters.GetParameters(\"FeeSchedulePeriod\"+i));\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"ModifierSchedule\"+i).isEmpty())\n\t\t\t\t{\n\t\t\t\t\tenter_text_value(\"Modifier Schedule\", modifierSchedule, oParameters.GetParameters(\"ModifierSchedule\"+i));\n\t\t\t\t\n\t\t\t\t\tBy modifierSchedule = By.xpath(\"//div[@class='col-lg-8 col-md-8 col-sm-8']//ul[@id='-list']//li//a[not(text())]//b[text()='\"+oParameters.GetParameters(\"ModifierSchedule\"+i)+\"']\");\n\t\t\t\t\t\n\t\t\t\t\tif(IsDisplayed(\"Modifier Schedule\", modifierSchedule))\n\t\t\t\t\t\tclick_button(\"Modifier Schedule\", modifierSchedule);\n\t\t\t\t}\n/*\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tclick_button(\"Modifier Schedule\", modifierSchedule);\n\t\t\t\t\tperformKeyBoardAction(\"ENTER\");\n\t\t\t\t\tclick_button(\"First modifier search result value\", firstModifierScheduleSearchValue);\t\t\t\t\t\n\t\t\t\t}*/\n\t\t\t\t\n\t\t\t\tif(oParameters.GetParameters(\"UseRelatedProcedureSchedule\"+i).equals(\"YES\"))\n\t\t\t\t{\n\t\t\t\t\tif(oParameters.GetParameters(\"TermType\"+i).equals(\"Exclusions\") && oParameters.GetParameters(\"UseRelatedProcedureSchedule\"+i).equals(\"YES\"))\n\t\t\t\t\t\tclick_button(\"Use Related Procedure Discounting Checkbox Exclusion Term\", useRelatedProcedureDiscountingCheckBox_ExclusionTerm);\n\t\t\t\t\telse if(oParameters.GetParameters(\"TermType\"+i).equals(\"Terms\") && oParameters.GetParameters(\"UseRelatedProcedureSchedule\"+i).equals(\"YES\"))\n\t\t\t\t\t\tclick_button(\"Use Related Procedure Discounting Checkbox\", useRelatedProcedureDiscountingCheckBox);\n\t\t\t\t\t\n\t\t\t\t\tif(IsDisplayed(\"Related Procedure Schedule\", relatedProcedureSchedule))\n\t\t\t\t\t{\n\t\t\t\t\t\toReport.AddStepResult(\"Related Procedure Schedule\", \"In 'Add Term' window clicked on Use Related Procedure Discounting check box, verified that Related Procedure Schedule search box displayed\", \"PASS\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!oParameters.GetParameters(\"SearchRelatedProcedureSchedule\"+i).isEmpty())\n\t\t\t\t\t\t\tenter_text_value(\"Related Procedure Schedule\", relatedProcedureSchedule, oParameters.GetParameters(\"SearchRelatedProcedureSchedule\"+i));\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\toReport.AddStepResult(\"Related Procedure Schedule\", \"In 'Add Term' window clicked on Use Related Procedure Discounting check box but Related Procedure Schedule search box is not displayed\", \"FAIL\");\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"Fee Schedule Search Field\", \"In 'Add Term' window filled all the mandatory fields selected 'Fee Schedule' as Rate Type but Fee Schedule search box is not displayed\", \"FAIL\");\n\t\t}\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"IRF CMG Pricer\"))\n\t\t{\n\t\t\tif(IsDisplayed(\"CMG User Rate Set\", cmgUserRateSet) && IsDisplayed(\"CMG Provider Values Set\", cmgProviderValuesSet))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"CMG User Rate Set and Provider Values Set\", \"In 'Add Term' window filled all the mandatory fields selected 'IRF CMG Pricer' as Rate Type, verified that CMG User Rate Set and CMG Provider Values Set search box displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\tenter_text_value(\"CMG User Rate Set\", cmgUserRateSet, oParameters.GetParameters(\"CMGUserRateSet\"+i));\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"CMGUserRateSetPeriod\"+i).isEmpty())\n\t\t\t\t\tselectOption(cmgUserRateSetPeriod,\"value\",oParameters.GetParameters(\"CMGUserRateSetPeriod\"+i));\n\t\t\t\t\n\t\t\t\tenter_text_value(\"CMG Provider Values Set\", cmgProviderValuesSet, oParameters.GetParameters(\"CMGProviderValuesSet\"+i));\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"CMGProviderValuesSetPeriod\"+i).isEmpty())\n\t\t\t\t\tselectOption(cmgProviderValuesSetPeriod,\"value\",oParameters.GetParameters(\"CMGProviderValuesSetPeriod\"+i));\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"Percentage\"+i).isEmpty())\n\t\t\t\t\tenter_text_value(\"Percentage\", DRG_percentage, oParameters.GetParameters(\"Percentage\"+i));\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"AdditionalFlatAmount\"+i).isEmpty())\n\t\t\t\t\tenter_text_value(\"Additional Flat Amount\", DRG_additionalFlatAmount, oParameters.GetParameters(\"AdditionalFlatAmount\"+i));\t\n\t\t\t}\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"CMG User Rate Set and Provider Values Set\", \"In 'Add Term' window filled all the mandatory fields selected 'IRF CMG Pricer' as Rate Type but CMG User Rate Set and CMG Provider Values Set search box is not displayed\", \"FAIL\");\n\t\t}\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"Per Case\") \n\t\t\t\t\t|| oParameters.GetParameters(\"RateType\"+i).equals(\"Per Diem\") \n\t\t\t\t\t\t|| oParameters.GetParameters(\"RateType\"+i).equals(\"Per Hour\") \n\t\t\t\t\t\t\t|| oParameters.GetParameters(\"RateType\"+i).equals(\"Per Length of Stay\")\n\t\t\t\t\t\t\t\t|| oParameters.GetParameters(\"RateType\"+i).equals(\"Per Minute\")\n\t\t\t\t\t\t\t\t\t|| oParameters.GetParameters(\"RateType\"+i).equals(\"Per Service\")\n\t\t\t\t\t\t\t\t\t\t|| oParameters.GetParameters(\"RateType\"+i).equals(\"PPS Professional Rate\"))\n\t\t{\n\t\t\tif(IsElementDisplayed(\"Rate Amount\", rateAmount))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"Rate Amount\", \"In 'Add Term' window filled all the mandatory fields selected '\"+oParameters.GetParameters(\"RateType\"+i)+\"' as Rate Type, verified that Rate Amount text box displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\tenter_text_value(\"Rate Amount\", rateAmount, oParameters.GetParameters(\"RateAmount/Percentage\"+i));\n\t\t\t}\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"Rate Amount\", \"In 'Add Term' window filled all the mandatory fields selected '\"+oParameters.GetParameters(\"RateType\"+i)+\"' as Rate Type but Rate Amount text box is not displayed\", \"FAIL\");\n\t\t}\t\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"Percentage\"))\n\t\t{\n\t\t\tenter_text_value(\"Rate Amount\", rateAmount, oParameters.GetParameters(\"RateAmount/Percentage\"+i));\n\t\t\t\n\t\t\tif(oParameters.GetParameters(\"TermType\"+i).equals(\"StopLoss\"))\n\t\t\t\tselectOption(percentageBasisDD,\"visibletext\",oParameters.GetParameters(\"PercentageBasis\"+i));\t\t\t\n\t\t\t\n\t\t\tif(oParameters.GetParameters(\"TermType\"+i).equals(\"Exclusions\"))\n\t\t\t\tselectOption(percentageBasisField,\"visibletext\",oParameters.GetParameters(\"PercentageBasis\"+i));\n\t\t}\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"Procedure Group\"))\n\t\t{\n\t\t\tif(IsDisplayed(\"Procedure to use drop down\", procedureToUse) && IsDisplayed(\"Group Code Rate Set search box\", groupCodeRateSet))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"\", \"In 'Add Term' window filled all the mandatory fields selected 'Procedure Group' as Rate Type, verified that Procedures to Use drop down and Group Code Rate Set search box displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\tenter_text_value(\"Percentage\", rateAmount, oParameters.GetParameters(\"Percentage\"+i));\n\t\t\t\t\n\t\t\t\tselectOption(procedureToUse,\"visibletext\",oParameters.GetParameters(\"ProcedureToUser\"+i));\n\t\t\t\t\n\t\t\t\tif(oParameters.GetParameters(\"ProcedureToUser\"+i).equals(\"ICD Claim Level Only\"))\n\t\t\t\t{\t\n\t\t\t\t\tif(IsDisplayed(\"ICD Code Set\", HCPCS_icdCodeSet))\n\t\t\t\t\t{\n\t\t\t\t\t\toReport.AddStepResult(\"ICD Code Set\", \"In 'Add Term' window selected 'Procedure Group' as Rate Type then selected 'ICD Claim Level Only' as Procedures to Use, verified that ICD code Set search box displayed\", \"PASS\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tselectOption(icdProcedureVersionOverride,\"visibletext\",oParameters.GetParameters(\"ICDProceduresVersionOverride\"+i));\n\t\t\t\t\t\t\n\t\t\t\t\t\tenter_text_value(\"ICD Code Set\", HCPCS_icdCodeSet, oParameters.GetParameters(\"ICDCodeSet\"+i));\n\t\t\t\t\t\tfixed_wait_time(3);\n\t\t\t\t\t\t\n\t\t\t\t\t\tBy ICdCode = By.xpath(\"//ul[@id='-list']//li//a[not(text())]//b[text()='\"+oParameters.GetParameters(\"ICDCodeSet\"+i)+\"']\");\n\t\t\t\t\t\t \n\t\t\t\t\t\tif(IsDisplayed(\"ICD Code Set\", ICdCode))\n\t\t\t\t\t\t\tclick_button(\"ICD Code Set\", ICdCode);\n\t\t\t\t\t\n\t\t\t\t\t\tif(oParameters.GetParameters(\"ICDCodeSetPeriod\"+i).isEmpty())\n\t\t\t\t\t\t\tselectOption(HCPCS_IcdCodeSetPeriod,\"value\",oParameters.GetParameters(\"ICDCodeSetPeriod\"+i));\n\t\t\t\t\t\t\tfixed_wait_time(2);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\toReport.AddStepResult(\"ICD Code Set\", \"In 'Add Term' window selected 'Procedure Group' as Rate Type then selected 'ICD Claim Level Only' as Procedures to Use but ICD code Set search box is not displayed\", \"FAIL\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(IsDisplayed(\"HCPCS/CPT Code Set\", HCPCS_icdCodeSet))\n\t\t\t\t\t{\n\t\t\t\t\t\toReport.AddStepResult(\"HCPCS/CPT Code Set\", \"In 'Add Term' window selected 'Procedure Group' as Rate Type then selected 'HCPCS/CPT Claim Line Level Procedures Only' as Procedures to Use, verified that HCPCS/CPT Code Set search box displayed\", \"PASS\");\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!oParameters.GetParameters(\"HCPCS/CPTCodeSet\"+i).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tenter_text_value(\"HCPCS/CPT Code Set\", HCPCS_icdCodeSet, oParameters.GetParameters(\"HCPCS/CPTCodeSet\"+i));\n\t\t\t\t\t\t\tfixed_wait_time(3);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tBy HPCS_CPT = By.xpath(\"//ul[@id='-list']//li//a[not(text())]//b[text()='\"+oParameters.GetParameters(\"HCPCS/CPTCodeSet\"+i)+\"']\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(IsDisplayed(\"HCPCS/CPT Code Set\", HPCS_CPT))\n\t\t\t\t\t\t\t\tclick_button(\"HCPCS/CPT\", HPCS_CPT);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tclick_button(\"HCPCS/CPT Code Set search box\", HCPCS_icdCodeSet);\n\t\t\t\t\t\t\tperformKeyBoardAction(\"ENTER\");\n\t\t\t\t\t\t\tclick_button(\"HCPCS Code Set first search value\", HCPCSGroupCodeFirstSearchValue);\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!oParameters.GetParameters(\"HCPCS/CPTCodeSetPeriod\"+i).isEmpty())\n\t\t\t\t\t\t\tselectOption(HCPCS_IcdCodeSetPeriod,\"value\",oParameters.GetParameters(\"HCPCS/CPTCodeSetPeriod\"+i));\t\n\t\t\t\t\t\t\tfixed_wait_time(2);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\toReport.AddStepResult(\"ICD Code Set\", \"In 'Add Term' window selected 'Procedure Group' as Rate Type then selected 'HCPCS/CPT Claim Line Level Procedures Only' as Procedures to Use but HCPCS/CPT Code Set search box is not displayed\", \"FAIL\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tenter_text_value(\"Group Code Rate Set\", groupCodeRateSet, oParameters.GetParameters(\"GroupCodeRateSet\"+i));\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"GroupCodeRateSet\"+i).isEmpty())\n\t\t\t\t\tselectOption(gropuCodeRateSetPeriod,\"value\",oParameters.GetParameters(\"GroupCodeRateSetPeriod\"+i));\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"ModifierSchedule\"+i).isEmpty())\n\t\t\t\t\tenter_text_value(\"Modifier Schedule\", modifierSchedule, oParameters.GetParameters(\"ModifierSchedule\"+i));\n\t\t\t\t\n\t\t\t\tif(oParameters.GetParameters(\"SeperateBilateralProcedures\"+i).equals(\"YES\"))\n\t\t\t\t\tclick_button(\"Bilateral Procedure CheckBox\", bilateralProcedure);\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"MultipleProcedureRules\"+i).isEmpty())\n\t\t\t\t{\t\n\t\t\t\t\tselectOption(discountPriorityBasis,\"visibletext\",oParameters.GetParameters(\"MultipleProcedureRules\"+i));\n\t\t\t\t\tformThroughValue(i);\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"UngroupedProcedureRate\"+i).isEmpty())\n\t\t\t\t{\n\t\t\t\t\tselectOption(ungroupedProcedureRate,\"visibletext\",oParameters.GetParameters(\"UngroupedProcedureRate\"+i));\n\t\t\t\t\tenter_text_value(\"Group Code Rate Amount\", groupCodeRateAmount, oParameters.GetParameters(\"RateAmount/Percentage\"+i));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!oParameters.GetParameters(\"IncludeUngroupedProceduresInMultipleProcedureRules\"+i).isEmpty())\n\t\t\t\t\tselectOption(includeUngroupedProcedureinMultipleProcedure,\"visibletext\",oParameters.GetParameters(\"IncludeUngroupedProceduresInMultipleProcedureRules\"+i));\t\n\t\t\t}\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"\", \"In 'Add Term' window filled all the mandatory fields selected 'Procedure Group' as Rate Type but Procedures to Use drop down and Group Code Rate Set search box is not displayed\", \"FAIL\");\n\t\t}\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"Revenue Code Per Day or Per Case\"))\n\t\t{\n\t\t\tif(IsDisplayed(\"Revenue Code Amount Field\", revenueCode) && IsDisplayed(\"Basis Drop down\", revenueCodeRateBasis))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"Revenue Code Amount Field\", \"In 'Add Term' window filled all the mandatory fields selected 'Revenue Code Per Day or Per Case' as Rate Type, verified that Amount text box and Basis drop down displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\tenter_text_value(\"Revenue Code Amount Field\", revenueCode, oParameters.GetParameters(\"Amount\"+i));\n\t\t\t\t\n\t\t\t\tselectOption(revenueCodeRateBasis,\"visibletext\",oParameters.GetParameters(\"Basis\"+i));\n\t\t\t\t\n\t\t\t\tenter_text_value(\"Percentage limit\", percentageLimit, oParameters.GetParameters(\"PercentageLimit\"+i));\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"Revenue Code Amount Field\", \"In 'Add Term' window filled all the mandatory fields selected 'Revenue Code Per Day or Per Case' as Rate Type but Amount text box and Basis drop down is not displayed\", \"FAIL\");\n\t\t}\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"RUG User\"))\n\t\t{\n\t\t\tif(IsDisplayed(\"RUG User Rate Set \", rugUserRateSet))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"RUG User Rate Set \", \"In 'Add Term' window filled all the mandatory fields selected 'RUG User' as Rate Type, verified that RUG User Rate Set search box displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\tenter_text_value(\"RUG User Rate Set \", rugUserRateSet, oParameters.GetParameters(\"RUG_UserRateSet\"+i));\n\t\t\t\t\n\t\t\t\tselectOption(rugUserRatePeriod,\"value\",oParameters.GetParameters(\"RUG_UserRateSetPeriod\"+i));\n\t\t\t\t\n\t\t\t\tenter_text_value(\"RUG User Percentage\", DRG_percentage, oParameters.GetParameters(\"Percentage\"+i));\n\t\t\t\t\n\t\t\t\tenter_text_value(\"RUG Additional Flat Amount\", DRG_additionalFlatAmount, oParameters.GetParameters(\"AdditionalFlatAmount\"+i));\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"RUG User Rate Set \", \"In 'Add Term' window filled all the mandatory fields selected 'RUG User' as Rate Type but RUG User Rate Set search box is not displayed\", \"FAIL\");\n\t\t}\n\t\telse if(oParameters.GetParameters(\"RateType\"+i).equals(\"Tiered\"))\n\t\t{\n\t\t\tif(IsDisplayed(\"Tier Basis Drop down\", tierBasis))\n\t\t\t{\n\t\t\t\toReport.AddStepResult(\"Tiered\", \"In 'Add Term' window filled madatory fields then selected 'Tiered' as Rate Type, verified that Table Basis drop down displayed\", \"PASS\");\n\t\t\t\t\n\t\t\t\tselectOption(tierBasis,\"visibletext\",oParameters.GetParameters(\"TireBasis\"+i));\n\t\t\t\t\n\t\t\t\tformThroughValue(i);\n\t\t\t}\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"Tiered\", \"In 'Add Term' window filled madatory fields then selected 'Tiered' as Rate Type but Table Basis drop down is not displayed\", \"FAIL\");\n\t\t}\n\t\t\n\t\tif(oParameters.GetParameters(\"SectionForThisExclusion\"+i).equals(\"yes\"))\n\t\t{\n\t\t\tclick_button(\"Show Section For This Exclusion\", sectionForThisExclusion);\n\t\t\n\t\t\tBy Section = By.xpath(\"//form[@id='addEditExclusionTerm']//label[contains(.,'\"+oParameters.GetParameters(\"SectionForThisExclusionValue\"+i)+\"')]//input\");\n\t\t\n\t\t\tclick_button(\"Particular Exclusion Section\", Section);\n\t\t}\n\t}", "title": "" }, { "docid": "732bef7f5d7d7664f7880da61c6ab3d4", "score": "0.57923776", "text": "public void showDialog() {\n List<Player> players = s.doFinalScoring();\n String message = generateGameOverMessage(players);\n gameScreen.update(announcer.announce(Announcement.GAME_OVER_MESSAGE));\n int response = JOptionPane.showConfirmDialog(frame, message, \"Game Over :-(\",\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);\n gameScreen.showMainMenu();\n }", "title": "" }, { "docid": "0acfa884da647223b6b777d2d86396af", "score": "0.57781225", "text": "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\r\n\t\t\t\tif (!DebugUtil.validate(edtPower)) {\r\n\t\t\t\t\tToast.makeText(MainActivity.this, \"功率为空\", Toast.LENGTH_SHORT)\r\n\t\t\t\t\t\t\t.show();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tint power = Integer.parseInt(edtPower.getText()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\tint result = Rfid.setPower(power);\r\n\t\t\t\tif (result == 0) {\r\n\t\t\t\t\tToast.makeText(MainActivity.this, \"设置功率成功 \",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\tdismissDialog(true);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tToast.makeText(MainActivity.this, \"设置功率失败 \",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\tdismissDialog(false);\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "a1845637a0cba99cb01e134bc85c4214", "score": "0.57605326", "text": "private void showProgress()\n {\n showDialog(0);\n }", "title": "" }, { "docid": "8fcf6eaeffdd458c2f9de79da595da27", "score": "0.57417303", "text": "public void calulateScore(View view) {\n if(countDownTimer !=null) {\n countDownTimer.cancel();\n }\n saveScore();\n final MyDialog myDialog = MyDialog.getInstance();\n myDialog.setOnOkClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n myDialog.dismissDialog();\n finish();\n }\n });\n if(isPass()) {\n myDialog.showDialog(this, \"Test Result\", getString(R.string.your_score_pass, calculateScore()));\n }else{\n myDialog.showDialog(this, \"Test Result\", getString(R.string.your_score, calculateScore()));\n }\n }", "title": "" }, { "docid": "b5f559f826557fb95259fd2a8c644b6c", "score": "0.5724856", "text": "private static double createDialog() \n\t{\n\t\t//Return value\n\t\tdouble re = 0;\n\t\t//Dialogue object\n\t\tGenericDialog gd = new GenericDialog(\"Desaturation\");\n\t\tgd.addNumericField(\"Desaturation factor (0 ti 1): \", re, 2);\n\t\tgd.showDialog();\n\t\t//If dialogue is cancelled, return re with its default value\n\t\tif (gd.wasCanceled()) return re;\n\t\t//Get numericfield value\n\t\tre = gd.getNextNumber();\n\t\t//Clamp the value between 0 and 1\n\t\tre = clamp(re, 0, 1);\n\t\t//return new value\n\t\treturn re;\n\t}", "title": "" }, { "docid": "f3765842eec625d7cc1916b925eb5fbf", "score": "0.5715964", "text": "public void processOKButton() {\n\t\tSystem.out.println(\"SET BPM To \" + this.speed);\n\n\t\tSimoriOn.getInstance().getGui().LCD.setText(null);\n\t\tSimoriOn.getClockHand().setLoopSpeed(this.speed);\n\t\tSimoriOn.getInstance().setMode(new PerformanceMode());\n\t\tSimoriOn.getInstance().getGui().turnOffFunctionButtons();\n\t}", "title": "" }, { "docid": "d5e9115e863cff1dff6da8c0a4df1181", "score": "0.57133174", "text": "public void abrirDialog() {\n\t\tDate fechainicial = java.sql.Date.valueOf(new SimpleDateFormat(\"yyyy-MM-dd\").format(aus_fechainicio));\n\t\tDate fechafinal = java.sql.Date.valueOf(new SimpleDateFormat(\"yyyy-MM-dd\").format(aus_fechafin));\n\t\tif (fechainicial.after(fechafinal))\n\t\t\tMensaje.crearMensajeWARN(\"Fecha inicio debe ser menor que la Fecha Fin\");\n\t\telse if(managergest.ausenciaXFecha(fechainicial,fechainicial,gua_id) == 0){\n\t\t\tRequestContext.getCurrentInstance().execute(\"PF('gu').show();\");\n\t\t}else\n\t\t\tMensaje.crearMensajeWARN(\"El guardia tiene ausencia en esas fechas\");\n\t}", "title": "" }, { "docid": "76d83ec433433480836a1adac11f6024", "score": "0.56829876", "text": "public long showDialog (JFrame frame) {\n \n Dimension frameDimension = frame.getSize ();\n Insets frameInsets = frame.getInsets ();\n \n int maxWidth = (frameDimension.width - frameInsets.left\n - frameInsets.right - 10);\n \n// setSize (maxWidth, panelPreferredDimension.height);\n \n dialog = new JDialog (frame, \"Set Persistence Value\", true);\n dialog.getContentPane ().add (this);\n dialog.getRootPane ().setDefaultButton (okButton);\n dialog.setSize (maxWidth, 200);\n// dialog.pack ();\n dialog.setLocation (frame.getX() + 10, frame.getY() + 20); \n dialog.setVisible (true);\n return newSamplingPeriod;\n }", "title": "" }, { "docid": "21154b599e945e38a79bb5507be8d216", "score": "0.5677555", "text": "public void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\toccurence = occurencePicker.getValue();\n\t\t\t\t\t\t\t\t\tif (occurence==1){\n\t\t\t\t\t\t\t\t\t\trecur = true;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\trecur = false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tupdateOccurenceDisplay();\n\t\t\t\t\t\t\t\t\tupdateDateChoices();\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "59d0421c5e6c3a2a9918496bbc109cc2", "score": "0.5675139", "text": "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tmeasurementDialog = new PTCA_ClientMeasurements(true, PTCA_MainWindow.this);\n\t\t\t\tmeasurementDialog.pack();\n\t\t\t\tmeasurementDialog.setVisible(true);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "2003be543cb5877aa8efeacb163e5e87", "score": "0.56331146", "text": "private void showNormalDialog(){\n\n final AlertDialog.Builder normalDialog =\n new AlertDialog.Builder(MainActivity.this);\n\n normalDialog.setTitle(\"Error\");\n normalDialog.setMessage(\"The operand has to be >= 0\");\n\n normalDialog.setNegativeButton(\"Close\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n }\n });\n\n normalDialog.show();\n }", "title": "" }, { "docid": "b94c1a60f81b111d6c0d22d31ba7440b", "score": "0.5631521", "text": "private void showPictureialog() {\n dialog1 = new Dialog(this);\n\n // Setting dialogview\n Window window = dialog1.getWindow();\n window.setGravity(Gravity.BOTTOM);\n dialog1.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n\n window.setLayout(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n dialog1.setTitle(null);\n dialog1.setContentView(R.layout.order_status);\n dialog1.setCancelable(true);\n\n DialogInject dialogInject = new DialogInject();\n // 5. We bind the elements of the included layouts.\n ButterKnife.inject(dialogInject, dialog1);\n if (isActive) {\n dialogInject.ivPauseOrderTick.setVisibility(View.GONE);\n dialogInject.ivAcceptOrderTick.setVisibility(View.VISIBLE);\n } else {\n dialogInject.ivPauseOrderTick.setVisibility(View.VISIBLE);\n dialogInject.ivAcceptOrderTick.setVisibility(View.GONE);\n }\n dialog1.show();\n\n }", "title": "" }, { "docid": "475c2931c7c24a2357e7118093f59345", "score": "0.5614525", "text": "private void showRepeatingPeriodDialog() {\n RepeatingPeriodDialog repeatingPeriodDialog = new RepeatingPeriodDialog();\n repeatingPeriodDialog.setTargetFragment(this, 0);\n repeatingPeriodDialog.show(getFragmentManager(), \"repeatingPeriod\");\n }", "title": "" }, { "docid": "88e309852f7643a182623e93baaa48ed", "score": "0.56074756", "text": "@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tNumberPickerDlg countDlg = new NumberPickerDlg(getActivity(), value.qnt, new OnFinishedListener() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onOk(int number) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tapplyCount(position, number);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tcountDlg.show();\r\n\t\t\t\t\t}", "title": "" }, { "docid": "cd985f24e9322706670082a280f2b107", "score": "0.5601631", "text": "private void finishMeasuring() {\n mPremealModeButton.setPressed(false);\n mPostmealModeButton.setPressed(false);\n mRandomModeButton.setPressed(false);\n\n mPremealModeButton.setEnabled(true);\n mPostmealModeButton.setEnabled(true);\n mRandomModeButton.setEnabled(true);\n\n mStartButton.setEnabled(false);\n mSaveButton.setEnabled(true);\n\n // int levelResult = new Random().nextInt(250) + 50;\n mKadar = receivedValue;\n mProgressPieView.setText(String.valueOf(receivedValue) + \"mg/dL\");\n\n String resultText = \"Your blood sugar level is \";\n int sugarlevel = Config.bloodSugarLevel(getActivity().getApplicationContext(), mJenisPengukuran, mKadar);\n\n Random r = new Random();\n int idx;\n\n switch (sugarlevel) {\n case 1:\n resultText += \"low\\n\";\n idx = r.nextInt(Config.commentLow.length);\n resultText += Config.commentLow[idx];\n mProgressPieView.setProgressColor(0xFFFFCA2D);\n break;\n case 2:\n resultText += \"normal\\n\";\n idx = r.nextInt(Config.commentNormal.length);\n resultText += Config.commentNormal[idx];\n mProgressPieView.setProgressColor(0xFF4EBF63);\n break;\n case 3:\n resultText += \"high\\n\";\n idx = r.nextInt(Config.commentHigh.length);\n resultText += Config.commentHigh[idx];\n mProgressPieView.setProgressColor(0xFFE52A1B);\n break;\n }\n\n /* Add comment to result text. */\n resultText += \"\\n\";\n mResultTV.setText(resultText);\n }", "title": "" }, { "docid": "dbe8bd1305f3f118a3a025b9587176d8", "score": "0.55939776", "text": "private void detailsspecfic() {\n\t\tint percent=0;\n\t\tAlertDialog.Builder dialog=new AlertDialog.Builder(this);\n\t\tint count=lv.getCount();\n\t\tif(count!=0)\n\t\t{\n\t\t\n\t\tpercent=(lightval*100/periodval);\n\t\t\n \t\n\t\tdialog.setMessage(\"Total classes= \"+periodval+\"\\nPresent=\"+lightval+\"\\nPercent % =\"+percent);\n\t\tdialog.setTitle(\"Roll no:\"+individual.getText().toString().trim());\n\t\tdialog.setCancelable(false);\n\t\t//Positive Button\n\t\tdialog.setPositiveButton(\"ok\",\n\t\t\t\tnew DialogInterface.OnClickListener(){\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface d,int id){\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialog.setMessage(\"No classes available\");\n\t\t\tdialog.setCancelable(false);\n\t\t\t//Positive Button\n\t\t\tdialog.setPositiveButton(\"ok\",\n\t\t\t\t\tnew DialogInterface.OnClickListener(){\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface d,int id){\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\tpercent=0;\n\t\t}\n\t\tdialog.show();\n\t}", "title": "" }, { "docid": "15a0c815e0ff97f5ac88b0f67a94c345", "score": "0.558936", "text": "public void selectRateSheet(String rateSheetType, String rateSheetName)\n\t{\n\t\t//To check the status of \"Continued_Execution\" parameter, if it is set to NO it will skip this method, if not it will resume the execution \n\t\tif(oParameters.GetParameters(\"Continued_Execution\").equalsIgnoreCase(\"No\"))\n\t\t{\t\t\t\n\t\t\t//Adding step result to report\n\t\t\toReport.AddStepResult(\"Skipped Method :\", \"Skipped Method : \" + Thread.currentThread().getStackTrace()[1].getMethodName().toUpperCase(), \"INFO\");\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tif(rateSheetType.equalsIgnoreCase(\"VIEW\"))\n\t\t{}\n\t\telse\n\t\t{\n\t\t\tif(get_field_value(\"Rate Sheet show Dropdown\",rateSheetShowDD).equals(rateSheetType))\n\t\t\t{}\t\t\n\t\t\telse\n\t\t\t{\t\n\t\t\t\tclick_button(\"Rate Sheet show Dropdown\", rateSheetShowDD);\n\t\t\t\t\n\t\t\t\tif(rateSheetType.equals(\"Production\"))\n\t\t\t\t\tclick_button(\"Production Option\", productionOption);\n\t\t\t\telse\n\t\t\t\t\tclick_button(\"Modeling Option\", modelingOption);\n\t\t\t}\t\t\t\n\t\t}\n\t\t\t\n\t\tenter_text_value(\"Rate Sheet Search\", rateSheetSearch, rateSheetName);\n\t\tperformKeyBoardAction(\"ENTER\");\t\n\t\tfixed_wait_time(3);\t\t\n\t\t\t\n\t\tif(rateSheetName.isEmpty())\n\t\t{\n\t\t\twaitFor(rateSheetFirtstSearchResult, \"Ratesheet search result\");\n\t\t\toParameters.SetParameters(\"FirtstRateSheetCode\", get_field_value(\"First RateSheet Name\", rateSheetFirtstSearchResult));\n\t\t\tclick_button(\"First Rate Sheet\", rateSheetFirtstSearchResult);\n\t\t\twaitFor(rateSheetTitleBar, \"Ratesheet title\");\n\t\t\t\n\t\t\tif(oParameters.GetParameters(\"FirtstRateSheetCode\").equalsIgnoreCase(get_field_value(\"Rate Sheet Code\", rateSheetTitleBar).replace(\"Code \", \"\")))\n\t\t\t\toReport.AddStepResult(\"\", \"Clicked On \"+oParameters.GetParameters(\"FirtstRateSheetCode\")+\" Rate sheet, Verified that particular Rate sheet is opened\", \"PASS\");\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"\", \"Clicked On \"+oParameters.GetParameters(\"FirtstRateSheetCode\")+\" Rate sheet, But that particular Rate sheet is not opened\", \"FAIL\");\t\t\n\t\t}\n\t\telse\n\t\t{\t\t\t\t\n\t\t//\tBy existedRateSheet = By.xpath(\"//div[@class='col-lg-5 col-md-5 col-sm-5 col-xs-6 hide-overflow']/div[contains(.,'\"+rateSheetName+\"')]\");\n\t\t\tBy existedRateSheet = By.xpath(\"//div[@class='col-lg-5 col-md-5 col-sm-5 col-xs-6 hide-overflow']/div[.//text()='\"+rateSheetName+\"']\");\n\t\t\t\n\t\t\tif(IsDisplayed(\"Searched RateSheet\", existedRateSheet))\n\t\t\t{\n\t\t\t\tclick_button(\"Searched Rate Sheet\", existedRateSheet);\n\t\t\t\t\n\t\t\t\tif(IsDisplayed(\"RateSheet Deleted Error Notification\", rateSheetDeletedErrorNotification))\n\t\t\t\t\toReport.AddStepResult(\"\", \"Searched with \"+rateSheetName+\" Ratesheet was already deleted but still displaying in search result list \", \"FAIL\");\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\twaitFor(rateSheetTitleBar, \"Ratesheet title\");\n\t\t\t\t\t\n\t\t\t\t\tif(rateSheetName.equalsIgnoreCase(get_field_value(\"Rate Sheet Name\", openedRateSheet)))\n\t\t\t\t\t\toReport.AddStepResult(\"\", \"Clicked On \"+rateSheetName+\" Rate sheet, Verified that particular Rate sheet is opened\", \"PASS\");\n\t\t\t\t\telse\n\t\t\t\t\t\toReport.AddStepResult(\"\", \"Clicked On \"+rateSheetName+\" Rate sheet, but that particular Rate sheet is not opened\", \"FAIL\");\n\t\t\t\t}\n\t\t\t}\t\n\t\t\telse if(IsDisplayed(\"No Items Found Message\", noItemsFoundInfo))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"There is no Ratesheet with \"+rateSheetName+\" name\");\n\t\t\t\toParameters.SetParameters(\"RateSheetPresent\", \"NO\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\t\t\n\t\t\t\toReport.AddStepResult(\"\", \"Searched with \"+rateSheetName+\" RateSheet but couldn't find that Ratesheet in search result and 'No Items Found Message' also not displayed \", \"FAIL\");\n\t\t\t\toParameters.SetParameters(\"RateSheetPresent\", \"NO\");\n\t\t\t}\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "8a1b8558ff706c909f6ac28b17f73dae", "score": "0.5588096", "text": "public void display(){\r\n dlgFormulatedCost =new CoeusDlgWindow(CoeusGuiConstants.getMDIForm(), \"Formulated Cost Line item details\", true);\r\n dlgFormulatedCost.addWindowListener(new WindowAdapter(){\r\n public void windowOpened(WindowEvent we){\r\n formulatedCostBudgetLineItemForm.btnOk.requestFocusInWindow();\r\n formulatedCostBudgetLineItemForm.btnOk.setFocusable(true);\r\n formulatedCostBudgetLineItemForm.btnOk.requestFocus();\r\n }\r\n public void windowClosing(WindowEvent we){\r\n checkBeforeClose();\r\n }\r\n });\r\n dlgFormulatedCost.addEscapeKeyListener( new AbstractAction(\"escPressed\") {\r\n public void actionPerformed(ActionEvent ar) {\r\n checkBeforeClose();\r\n }\r\n });\r\n \r\n \r\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n dlgFormulatedCost.setSize(WIDTH, HEIGHT);\r\n Dimension dlgSize = dlgFormulatedCost.getSize();\r\n dlgFormulatedCost.setLocation(screenSize.width/2 - (dlgSize.width/2),\r\n screenSize.height/2 - (dlgSize.height/2));\r\n dlgFormulatedCost.getContentPane().add(formulatedCostBudgetLineItemForm);\r\n dlgFormulatedCost.setDefaultCloseOperation(CoeusDlgWindow.DO_NOTHING_ON_CLOSE);\r\n dlgFormulatedCost.setFont(CoeusFontFactory.getLabelFont());\r\n dlgFormulatedCost.setResizable(false);\r\n dlgFormulatedCost.setVisible(true);\r\n\r\n }", "title": "" }, { "docid": "1154fb66dada024751db8d33ceb17b57", "score": "0.556611", "text": "public void onClick(DialogInterface dialog, int id) {\n int i1 = nbP1.getValue();\n int i2 = nbP2.getValue();\n\n double s = i1 + i2/10.0;\n currentSelectedSize = s;\n updateSizeTextView();\n }", "title": "" }, { "docid": "6164e43379886a789c15991d9ef8cb57", "score": "0.5565539", "text": "public void jButtonOKActionPerformed(ActionEvent e) {\n CMDialogFormulasValues cmd1 = new CMDialogFormulasValues();\n cmd1.setFormulaEnum((CMFormulas) getJListFormulas().getSelectedValue());\n this.setVisible(false);\n cmd1.setVisible(true);\n//\t\tHCanedo_17112005_begin\n //cmd.setTypeDataForInsertField(m_TypeDataInsertField);\n//\t\tHCanedo_17112005_end\n// if (cmd.cantParam(getFormulaSelected()) == 0) {\n// cmd.inCaseNotParam();\n// insertFieldFormula = cmd.getInsertFieldFormula();\n// insertFieldValue = cmd.getInsertFieldValue();\n// insertFieldFormat = cmd.getInsertFieldFormat();\n// insertFieldType = cmd.getInsertFieldType();\n// m_Formatter=cmd.getM_formatterSelected();\n// cancel();\n// }\n// else {\n// cancel();\n// cmd.setVisible(true);\n// insertFieldFormula = cmd.getInsertFieldFormula();\n// insertFieldValue = cmd.getInsertFieldValue();\n// insertFieldFormat = cmd.getInsertFieldFormat();\n// insertFieldType = cmd.getInsertFieldType();\n// m_Formatter=cmd.getM_formatterSelected();\n// }\n\n }", "title": "" }, { "docid": "1d44bafd35ee9ee112d73c619ba6b7f6", "score": "0.5561188", "text": "public void setOptionRate(java.lang.String optionRate) {\r\n this.optionRate = optionRate;\r\n }", "title": "" }, { "docid": "a80910d60c468d793b7315b13a09d9b8", "score": "0.55603796", "text": "private void iniciarPrgDialog() {\n\t\tprgDialog = new ProgressDialog(this);\n\t\tprgDialog.setMessage(\"Sincronizando la informacion del Alumno\");\n\t\tprgDialog.setCancelable(false);\n\t\t\n\t}", "title": "" }, { "docid": "095e71e794878aa07442572d5a1d1b6b", "score": "0.55528855", "text": "public void CalMeterSubmit() {\n\t\ttry {\r\n\r\n\t\t\tAlertDialog.Builder builder =\r\n\t\t\t\t\tnew AlertDialog.Builder(ReadMeterPlus.this);\r\n\t\t\tbuilder.setMessage(\"PRINT ??\");\r\n\t\t\tbuilder.setPositiveButton(\"พิมพ์\",new DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t//Toast.makeText(getApplicationContext(), String.valueOf(isPrint), Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\tif (!isPrint){\r\n\t\t\t\t\t\t//Toast.makeText(getApplicationContext(), \"No Print!!\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\tOkPrint=false;\r\n\t\t\t\t\t\tEditText etComment = (EditText)findViewById(R.id.et_comment);\r\n\t\t\t\t\t\tButton bnComment =(Button)findViewById(R.id.bn_comment);\r\n\t\t\t\t\t\tetComment.setEnabled(false);\r\n\t\t\t\t\t\tbnComment.setEnabled(false);\r\n\t\t\t\t\t\tbnComment.setText(\"COMMENT\");\r\n\t\t\t\t\t\tString strComment = etComment.getText().toString();\r\n\t\t\t\t\t\tDouble SmallUsg = Double.parseDouble(et_smcnt.getText().toString());\r\n\t\t\t\t\t\tIntent i = new Intent();\r\n\t\t\t\t\t\ti.putExtra(\"Comment\", strComment);\r\n\t\t\t\t\t\ti.putExtra(\"ComMentDec\", sComment);\r\n\t\t\t\t\t\ti.putExtra(\"OkPrint\", OkPrint);\r\n\t\t\t\t\t\ti.putExtra(\"BillSend\", billStatus);\r\n\t\t\t\t\t\ti.putExtra(\"Smallusg\",SmallUsg);\r\n\t\t\t\t\t\tsetResult(-1,i);\r\n\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tOkPrint=true;\r\n\t\t\t\t\t\tEditText etComment = (EditText)findViewById(R.id.et_comment);\r\n\t\t\t\t\t\tButton bnComment =(Button)findViewById(R.id.bn_comment);\r\n\t\t\t\t\t\tetComment.setEnabled(false);\r\n\t\t\t\t\t\tbnComment.setEnabled(false);\r\n\t\t\t\t\t\tbnComment.setText(\"COMMENT\");\r\n\t\t\t\t\t\tString strComment = etComment.getText().toString();\r\n\t\t\t\t\t\tDouble SmallUsg = Double.parseDouble(et_smcnt.getText().toString());\r\n\t\t\t\t\t\tIntent i = new Intent();\r\n\t\t\t\t\t\ti.putExtra(\"Comment\", strComment);\r\n\t\t\t\t\t\ti.putExtra(\"ComMentDec\", sComment);\r\n\t\t\t\t\t\ti.putExtra(\"OkPrint\", OkPrint);\r\n\t\t\t\t\t\ti.putExtra(\"BillSend\", billStatus);\r\n\t\t\t\t\t\ti.putExtra(\"Smallusg\",SmallUsg);\r\n\t\t\t\t\t\tsetResult(-1,i);\r\n\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\t\t\tbuilder.setNegativeButton(\"ไม่พิมพ์\",new DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\tOkPrint=false;\r\n\t\t\t\t\tetComment.requestFocus();\r\n\t\t\t\t\tetComment.setSelectAllOnFocus(true);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// อย่าลืมคำสั่ง show\r\n\t\t\tbuilder.show();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\r\n\r\n\t}", "title": "" }, { "docid": "9fcaabb192f1e3671a7fa48e91ef18a8", "score": "0.5549121", "text": "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\tIntent i=new Intent(DiabeticRiskScore.this, Main.class);\r\n\t\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\t//text.setText(\"You clicked Update later\");\r\n\t\t\t\t\t}", "title": "" }, { "docid": "a86dd284c22816acd6a68c54214b8032", "score": "0.5542677", "text": "private void displayDialogsIfNeeded() {\n if (bluetoothHelper.isBluetoothEnabled()) {\n if (locationHelper.IsLocationTurnedOn()) {\n\n } else {\n locationEnableDialog();\n }\n } else {\n if (locationHelper.IsLocationTurnedOn()) {\n bluetoothEnableDialog();\n } else {\n locationEnableDialog();\n bluetoothEnableDialog();\n }\n }\n }", "title": "" }, { "docid": "964395a954a190e3f2dd95c6dfb4d552", "score": "0.5540906", "text": "public void onClick(DialogInterface dialog, int id) {\n\t\t \t final Uri uri = Uri.parse(\"market://details?id=\" + getActivity().getApplicationContext().getPackageName());\n\t\t \t\tfinal Intent rateAppIntent = new Intent(Intent.ACTION_VIEW, uri);\n\t\t \t\tif (getActivity().getPackageManager().queryIntentActivities(rateAppIntent, 0).size() > 0)\n\t\t \t\t{\n\t\t \t\t startActivity(rateAppIntent);\n\t\t \t\t}\n\t\t \t\tSharedPreferences.Editor edit = mPreferences.edit();\n\t\t \t\tedit.putLong(\"last\", now);\n\t\t \t\tedit.commit();\n\t\t \t\tdialog.dismiss();\n\t\t }", "title": "" }, { "docid": "04c209f8bbbd844db1760818aee1242d", "score": "0.5535148", "text": "@Override\n public void onClick(View v) {\n showPoundValuePickerDialog();\n }", "title": "" }, { "docid": "ff2034d5a4e828e6c0b6a6fc2524ef91", "score": "0.5535028", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\r\n\t\tswitch (item.getItemId()) {\r\n\t\tcase R.id.power:\r\n\t\t\t//startActivity(new Intent());\r\n\t\t\tLayoutInflater inflater=this.getLayoutInflater();\r\n\t\t\tView v=inflater.inflate(R.layout.dialog,null);\r\n\t\t edtPower = (EditText)v.findViewById(R.id.power);\r\n\t\t\t\r\n\t\t\tint power = Rfid.getPower();\r\n\t\t\tif (power <= 0) {\r\n\t\t\t\tToast.makeText(MainActivity.this, \"获取功率失败 \",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t} else {\r\n\t\t\t\tedtPower.setText(String.valueOf(power));\r\n\t\t\t\tedtPower.setSelection(String.valueOf(power).length());\r\n//\t\t\t\tToast.makeText(MainActivity.this, \"获取功率成功: \"+power,\r\n//\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t}\r\n\t\t\talertDialog=new AlertDialog.Builder(this).setIcon(R.drawable.atenna_power)\r\n\t\t.setTitle(\"设置功率\").setPositiveButton(\"设置\",new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t\tif (!DebugUtil.validate(edtPower)) {\r\n\t\t\t\t\tToast.makeText(MainActivity.this, \"功率为空\", Toast.LENGTH_SHORT)\r\n\t\t\t\t\t\t\t.show();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tint power = Integer.parseInt(edtPower.getText()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\tint result = Rfid.setPower(power);\r\n\t\t\t\tif (result == 0) {\r\n\t\t\t\t\tToast.makeText(MainActivity.this, \"设置功率成功 \",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\tdismissDialog(true);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tToast.makeText(MainActivity.this, \"设置功率失败 \",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\tdismissDialog(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}).setNegativeButton(\"退出\",new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tdismissDialog(true);\r\n\t\t\t}\r\n\t\t}).setView(v).create();\r\n\t\t\talertDialog.show();\r\n\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "title": "" }, { "docid": "54e3f0d76c3de735d75691a52aba90ae", "score": "0.55348223", "text": "public void showScore() {\n\t\tnew AlertDialog.Builder(this).setTitle(\"Game Over\")\n\t\t\t\t.setMessage(\"Your score :\" + points).show();\n\t\ttimer.cancel();\n\t}", "title": "" }, { "docid": "5352c9aeacb3f9289feeaba3cc25fca2", "score": "0.5526455", "text": "public String showBetDialog() {\r\n\t\tString[] options = {\"10\", \"20\", \"50\", \"100\"};\r\n\t\tint choice = JOptionPane.showOptionDialog(this, \"How much would you like to bet?\", \"Bet\", JOptionPane.DEFAULT_OPTION, 0, null, options, options[2]);\r\n\t\treturn options[choice];\r\n\t}", "title": "" }, { "docid": "5953eeafe38650aa26d7536af177310e", "score": "0.5516023", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.lin_choice_rate:\n\t\t\tIntent intent = new Intent(PremiumUpgradeActivity.this,\n\t\t\t\t\tRateListActivity.class);\n//\t\t\tRateListActivity\n\t\t\tstartActivity(intent);\n//\t\t\tchooseDialog = new ChooseDialog1(\n//\t\t\t\t\tPremiumUpgradeActivity.this,\n//\t\t\t\t\tR.style.CustomDialog,\n//\t\t\t\t\tnew OnBackDialogClickListener() {\n//\n//\t\t\t\t\t\t@Override\n//\t\t\t\t\t\tpublic void OnBackClick(View v, String str,\n//\t\t\t\t\t\t\t\tint position) {\n//\t\t\t\t\t\t\t// TODO Auto-generated method stub\n////\t\t\t\t\t\t\ttv_denomination.setText(str);\n////\t\t\t\t\t\t\ttv_price.setText((Double.parseDouble(mList.get(position).get(\"PRDAMT\").toString()))/100+\"\");\n////\t\t\t\t\t\t\tprdid = mlist.get(position).get(\"PRDID\").toString();\n////\t\t\t\t\t\t\tLog.e(\"\", \"prdid=+=++++1111 \"+prdid);\n////\t\t\t\t\t\t\tprdtypes = mlist.get(position).get(\"PRDTYPE\").toString();\n////\t\t\t\t\t\t\tavaamttype = mlist.get(position).get(\"PRDAMT\").toString();\n//\t\t\t\t\t\t\tchooseDialog.dismiss();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}, \"请选择费率\", mList);\n//\t\t\tchooseDialog.show();\n\t\t\t\n\t\t\tbreak;\n\n\t\tcase R.id.btn_ratenum_update:\n\t\t\t\n\t\t\tratenumupdate();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "48746dc2f80dc6a984e77b88627046a9", "score": "0.5514464", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\tmeasurementDialog = new PTCA_ClientMeasurements(false, PTCA_MainWindow.this);\n\t\t\t\tmeasurementDialog.pack();\n\t\t\t\tmeasurementDialog.loadClient(clientList.getSelectedValue());\n\t\t\t\tmeasurementDialog.setVisible(true);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "3a1e65018315779c4c38a9c43f3313e7", "score": "0.55106646", "text": "public void setRate(double rate) {\r\n this.rate = rate;\r\n }", "title": "" }, { "docid": "1b4414d7557a1cfeb1d30e1d7ab319a5", "score": "0.5489959", "text": "@Override\n public void onShow(DialogInterface dialog) {\n }", "title": "" }, { "docid": "4ed5dbc36102f167c917cbe4162b9efa", "score": "0.54886174", "text": "@Override\r\n\t\t public void onClick(View v) \r\n\t\t {\n\t\t\tmp = MediaPlayer.create(LosseActs.this, R.raw.klik);\r\n mp.setOnCompletionListener(new OnCompletionListener() \r\n {\r\n\r\n public void onCompletion(MediaPlayer mp) \r\n {\r\n // TODO Auto-generated method stub\r\n mp.release();\r\n }\r\n\r\n }); \r\n mp.start(); \r\n\t\t \tmyDialog = new Dialog(LosseActs.this, R.style.FullHeightDialog); // maak nieuw myDialog aan\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// en haal de default titel weg\r\n\t\t \tmyDialog.setContentView(R.layout.dialograte);\r\n\t\t \tmyDialog.setCancelable(true);\r\n\t\t ImageView imageView = (ImageView)myDialog.findViewById(R.id.imageView1);\r\n\t\t imageView.setOnClickListener(new OnClickListener() \r\n\t\t {\r\n\t\t \t@Override\r\n\t\t public void onClick(View v) \r\n\t\t \t{\r\n\t\t\t \t//Lisa: geluid dat je hoort als er op \"Ok\" word gedrukt\r\n\t \tmp = MediaPlayer.create(LosseActs.this, R.raw.terug);\r\n\t mp.setOnCompletionListener(new OnCompletionListener() \r\n\t {\r\n\t\r\n\t public void onCompletion(MediaPlayer mp) \r\n\t {\r\n\t // TODO Auto-generated method stub\r\n\t mp.release();\r\n\t }\r\n\t\r\n\t }); \r\n\t mp.start();\r\n\t\t\t \tmyDialog.dismiss();\r\n\t\t }\r\n\t\t });\r\n\t\t\r\n\t\t myDialog.show();\r\n\t\t }", "title": "" }, { "docid": "b56ed11e2abfd1283f70cdb2dae6c8d0", "score": "0.5487233", "text": "public static void changeSceneRateMenu() {\n RateViewController controller = rateLoader.getController();\n controller.setUp();\n PlayRecordings.stopPlayRecording();\n _primaryStage.setScene(_rateMenu);\n }", "title": "" }, { "docid": "e6aa4c89bd9cfd764cf2b9bddd43a0bb", "score": "0.54833174", "text": "private void btn_updateAllowanceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_updateAllowanceActionPerformed\n \n UpdateAllowances();\n \n }", "title": "" }, { "docid": "a1a7c78fb760e84d58657ee5334f115d", "score": "0.54812574", "text": "private int showChoiceCard() {\r\n\t String title = player.getActiveCard().getDeck().getName();\r\n\t String message = player.getActiveCard().getDescription();\r\n\t Object[] options = { \"Betaal\", \"Kies kanskaart\" };\r\n\t int n = -1;\r\n\t while (n == -1) {\r\n\t n = JOptionPane.showOptionDialog(null, message, title,\r\n\t JOptionPane.YES_NO_CANCEL_OPTION,\r\n\t JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\r\n\t }\r\n\t ((HumanPlayer) player).setAnswer(n);\r\n\t return n;\r\n}", "title": "" }, { "docid": "905600730ca1303745a9a24fb1081b5b", "score": "0.5477049", "text": "public interface RateUsCallback {\n\n void dismissDialog();\n}", "title": "" }, { "docid": "bfe02440fa03d44b121346b139f424f1", "score": "0.5473075", "text": "private void showReportAlert() {\n\t\ttry {\n\t\t\tBrUtilManager.getInstance().ShowDialog2btn(this, \"알림\", \"정말 신고하시겠습니까?\", new dialogclick() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void setondialogokclick() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t//게시글\n\t\t\t\t\tif(mReportGubun == 1) {\n\t\t\t\t\t\trequestBoardReport(mSeq, mUserId, mKind);\t\n\t\t\t\t\t}\n\t\t\t\t\t//댓글\n\t\t\t\t\telse if(mReportGubun == 2) {\n\t\t\t\t\t\trequestReplyReport(mReplySeq, mReplyUserId, mReplyKind);\n\t\t\t\t\t\t//\t\t\t\t\trequestBoardReport(mSeq, mUserId, mKind);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void setondialocancelkclick() {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e) {\n\t\t\tWriteFileLog.writeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "82826d8e97f9b2f2d61123b7771b0dc8", "score": "0.5472932", "text": "@Override\n public void onDialogPositiveClick(DialogFragment dialog) {\n Dialog dialogView = dialog.getDialog();\n\n SeekBar rSlider = (SeekBar)dialogView.findViewById(R.id.rSlider);\n SeekBar gSlider = (SeekBar)dialogView.findViewById(R.id.gSlider);\n SeekBar bSlider = (SeekBar)dialogView.findViewById(R.id.bSlider);\n SeekBar aSlider = (SeekBar)dialogView.findViewById(R.id.aSlider);\n SeekBar sizeSlider = (SeekBar)dialogView.findViewById(R.id.sizeSlider);\n\n Paint inputPaint = new Paint();\n inputPaint.setARGB((int)(aSlider.getProgress()/100.0*255),\n (int)(rSlider.getProgress()/100.0*255),\n (int)(gSlider.getProgress()/100.0*255),\n (int)(bSlider.getProgress()/100.0*255));\n\n float newSize = DrawingCanvas.MIN_SIZE+sizeSlider.getProgress()/100.0f*DrawingCanvas.MAX_SIZE;\n inputPaint.setStrokeWidth(newSize);\n inputPaint.setTextSize(newSize);\n inputPaint.setStrokeCap(Paint.Cap.ROUND);\n inputPaint.setStyle(Paint.Style.STROKE);\n dCanvas.setPaint(inputPaint);\n }", "title": "" }, { "docid": "0d182bdf8b69c0c1088bb0376c997f1b", "score": "0.5472303", "text": "private void weeklyMileageDialog() {\n AlertDialog.Builder a = new AlertDialog.Builder(GoalsActivity.this);\n a.setTitle(\"Set Weekly Mileage\");\n final EditText input = new EditText(this);\n input.setInputType(InputType.TYPE_NUMBER_FLAG_DECIMAL);\n a.setView(input);\n\n a.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if(input.getText().toString().equals(\"\")) {\n Toast.makeText(GoalsActivity.this, \"You Entered Invalid Input\", Toast.LENGTH_LONG).show();\n } else {\n userGoals.setMilesPerWeekTarget(Double.parseDouble(input.getText().toString()));\n goalRef.setValue(userGoals);\n Toast.makeText(GoalsActivity.this, \"Goal Added\", Toast.LENGTH_LONG).show();\n }\n dialog.dismiss();\n }\n });\n\n a.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n a.create();\n a.show();\n }", "title": "" }, { "docid": "07c2a94d21828784e5c5687f66eaf488", "score": "0.546402", "text": "public void setRate()\n\t{\n\t\tScanner keyboard = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the desired hourly rate as an integer: \");\n\t\t\trate = keyboard.nextInt();\n\t}", "title": "" }, { "docid": "6bdcc0201fe08f5b5d0fdf4a0d2c788e", "score": "0.5463639", "text": "public void startShowDialog(){\n\t\tif ( showStart ){\n\t\t\tchangeAdvice();\n\t\t\tgetAdviceDayDialog().setVisible(true);\n\t\t}\n\t}", "title": "" }, { "docid": "8939dcbacb27a1e40ca97184498f1d32", "score": "0.54636055", "text": "@Override\n public void run() {\n if(finalGood){\n pd.setGoodFeedback();\n }\n else {\n pd.setBadFeedback();\n }\n pd.show();\n h1.postDelayed(r1, 1000);\n }", "title": "" }, { "docid": "a228522656d9b2f01fb5ec402add847b", "score": "0.54559225", "text": "public final void showDialog() {\n AppMethodBeat.i(107158);\n ListViewInScrollView listViewInScrollView = (ListViewInScrollView) View.inflate(this.mContext, R.layout.adx, null);\n listViewInScrollView.setOnItemClickListener(new OnItemClickListener() {\n public final void onItemClick(AdapterView<?> adapterView, View view, int i, long j) {\n AppMethodBeat.i(107154);\n if (DialogPreference.this.gud != null) {\n DialogPreference.this.gud.dismiss();\n }\n DialogPreference.this.setValue((String) DialogPreference.this.yBx.yBu[i]);\n if (DialogPreference.this.yBy != null) {\n DialogPreference.this.yBy.dAx();\n }\n if (DialogPreference.this.yBv != null) {\n DialogPreference.this.yBv.a(DialogPreference.this, DialogPreference.this.getValue());\n }\n AppMethodBeat.o(107154);\n }\n });\n listViewInScrollView.setAdapter(this.yBx);\n com.tencent.mm.ui.widget.a.c.a aVar = new com.tencent.mm.ui.widget.a.c.a(this.mContext);\n aVar.asD(getTitle().toString());\n aVar.fn(listViewInScrollView);\n this.gud = aVar.aMb();\n this.gud.show();\n h.a(this.mContext, this.gud);\n AppMethodBeat.o(107158);\n }", "title": "" }, { "docid": "2dc8b69ababe07cb73024643ac4e982c", "score": "0.5452265", "text": "void showDialog();", "title": "" }, { "docid": "f923ba83e6f4d99f857a80d60616ddde", "score": "0.54488957", "text": "public void onClick(DialogInterface arg0, int arg1) {\n\n updateDev(\"Auto\"); // Update 'Phase' for stoplight indicator in ScoutMaster\n finish();\n }", "title": "" }, { "docid": "b2ae3dcd84d4729dc603a7e49a4eb1ec", "score": "0.5443195", "text": "public void launchOptionsDialog() {\n\t\tgetUIFacade().setStatusText(language.getText(\"settingsPreferences\"));\n\t\tSettingsDialog dialogOptions = new SettingsDialog(this);\n\t\tdialogOptions.show();\n\t\tarea.repaint();\n\t}", "title": "" }, { "docid": "772ac45bc700533ff5c9e14b300390be", "score": "0.54426444", "text": "@Override\r\n public void onClick(DialogInterface dialog,int which) {\n ass.resumeAss();\r\n dialog.cancel();\r\n }", "title": "" }, { "docid": "e9ec9cb96e780990eaa0ee7d63a4d399", "score": "0.54402846", "text": "private void audiencePollActionPerformed (ActionEvent e) {\r\n int optA, optB, optC, optD;\r\n int range = 100;\r\n \r\n // generates 4 random numbers to act as survey/poll results\r\n // the poll result of correct answer will always be greater than 50 and greater than the other 3 options\r\n // the results are displayed in message text area\r\n if (questions[levelTracker][5].equals(\"A\")) {\r\n optA = (int)(Math.random() * 50) + 50;\r\n range -= optA;\r\n optB = (int)(Math.random() * range) + 1;\r\n range -= optB;\r\n optC = (int)(Math.random() * range) + 1;\r\n optD = (range - optC);\r\n messageTextArea.setText(\"Results of the Audience Poll:\\nOption A: \" + optA + \"%\\nOption B: \" + optB + \"%\\nOption C: \" + optC + \"%\\nOption D: \" + optD + \"%\");\r\n } else if (questions[levelTracker][5].equals(\"B\")) {\r\n optB = (int)(Math.random() * 50) + 50;\r\n range -= optB;\r\n optA = (int)(Math.random() * range) + 1;\r\n range -= optA;\r\n optC = (int)(Math.random() * range) + 1;\r\n optD = (range - optC);\r\n messageTextArea.setText(\"Results of the Audience Poll:\\nOption A: \" + optA + \"%\\nOption B: \" + optB + \"%\\nOption C: \" + optC + \"%\\nOption D: \" + optD + \"%\");\r\n } else if (questions[levelTracker][5].equals(\"C\")) {\r\n optC = (int)(Math.random() * 50) + 50;\r\n range -= optC;\r\n optA = (int)(Math.random() * range) + 1;\r\n range -= optA;\r\n optB = (int)(Math.random() * range) + 1;\r\n optD = (range - optB);\r\n messageTextArea.setText(\"Results of the Audience Poll:\\nOption A: \" + optA + \"%\\nOption B: \" + optB + \"%\\nOption C: \" + optC + \"%\\nOption D: \" + optD + \"%\");\r\n } else if (questions[levelTracker][5].equals(\"D\")) {\r\n optD = (int)(Math.random() * 50) + 50;\r\n range -= optD;\r\n optA = (int)(Math.random() * range) + 1;\r\n range -= optA;\r\n optB = (int)(Math.random() * range) + 1;\r\n optC = (range - optB);\r\n messageTextArea.setText(\"Results of the Audience Poll:\\nOption A: \" + optA + \"%\\nOption B: \" + optB + \"%\\nOption C: \" + optC + \"%\\nOption D: \" + optD + \"%\");\r\n }\r\n\r\n audiencePoll.setEnabled (false); // disables the Audience Poll option button so lifeline can not be used again\r\n }", "title": "" }, { "docid": "18b27b946fbf8ee05f40c9c4e48da06e", "score": "0.5438284", "text": "public void actionPerformed(ActionEvent arg0) {\r\n/* 87 */ this.deviationViewHandler.openEditView(new Deviation(), false, this.window, false);\r\n/* 88 */ }", "title": "" }, { "docid": "acc4e8165fb1bafd54b3bd743e6b9bfa", "score": "0.543558", "text": "public void setRate(double rate) {\n this.rate = rate;\n }", "title": "" }, { "docid": "acc4e8165fb1bafd54b3bd743e6b9bfa", "score": "0.543558", "text": "public void setRate(double rate) {\n this.rate = rate;\n }", "title": "" }, { "docid": "6e90786ea609d5f18926b243ddb186f5", "score": "0.5433306", "text": "public void showDialog(){\n\t\tif ( !showStart )\n\t\t\tgetAdviceDayDialog().getChkBoxShowStart().setSelected(false);\n\t\telse\n\t\t\tgetAdviceDayDialog().getChkBoxShowStart().setSelected(true);\n\t\t\n\t\tchangeAdvice();\n\t\tgetAdviceDayDialog().setVisible(true);\n\t}", "title": "" }, { "docid": "41c179f213b386f02b6f3d6b88d92096", "score": "0.5430376", "text": "private void btn_calcAllowancesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_calcAllowancesActionPerformed\n \n calcAllowances();\n \n }", "title": "" }, { "docid": "de4a62065b6c0f0e604f8d8b34f5506d", "score": "0.5427324", "text": "public void onClick(DialogInterface dialog, int id){\n M_PLR2.start();\n dialog.cancel();\n M_PLR2.release();\n }", "title": "" }, { "docid": "1747d482385f43bb416578b6bffffe15", "score": "0.5413142", "text": "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tdialogcallback.dialogdo(\"忽略数量\");\n\t\t\t\t\t\tdismiss();\n\t\t\t\t\t}", "title": "" }, { "docid": "c1754e45f181230297f2623dc63c15aa", "score": "0.54065806", "text": "@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\r\n if (areRangesOk())\r\n {\r\n info.setNumberOfObjects(number.getValue());\r\n info.setMaxRadius(maxRadius.getValue());\r\n info.setMinRadius(minRadius.getValue());\r\n \r\n dispose();\r\n client.dialogDismissed(CircleDisplayDialog.this, info);\r\n }\r\n else\r\n {\r\n JOptionPane.showMessageDialog(null, \"minimum range of radius is greater or equal then maximum\",\r\n \"Range error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n \r\n }", "title": "" }, { "docid": "632644ef33889ae67421cb21a0241f28", "score": "0.54063714", "text": "public void showSizePickerDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n// 2. Chain together various setter methods to set the dialog characteristics\n LayoutInflater inflater = LayoutInflater.from(getContext());\n View dialogV = inflater.inflate(R.layout.pick_size_dialog_layout, null);\n final NumberPicker nbP1 = (NumberPicker) dialogV.findViewById(R.id.number_picker_1);\n nbP1.setMinValue(0);\n nbP1.setMaxValue(100);\n int currentSizeAsInt = (int)currentSelectedSize;\n nbP1.setValue(currentSizeAsInt);\n final NumberPicker nbP2 = (NumberPicker) dialogV.findViewById(R.id.number_picker_2);\n nbP2.setMaxValue(9);\n nbP2.setMinValue(0);\n nbP2.setValue((int) ((currentSelectedSize - currentSizeAsInt)*10));\n\n builder.setTitle(R.string.header_size);\n builder.setView(dialogV);\n\n builder.setPositiveButton(R.string.option_pic_dialog_positive, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK button\n // read values and send them to the textView / size\n int i1 = nbP1.getValue();\n int i2 = nbP2.getValue();\n\n double s = i1 + i2/10.0;\n currentSelectedSize = s;\n updateSizeTextView();\n }\n });\n\n// 3. Get the AlertDialog from create()\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "title": "" }, { "docid": "ed3e45c5b769bdfb37a109f57d150e59", "score": "0.5405937", "text": "void onRateUp();", "title": "" }, { "docid": "6b8754b40a6d4889dad290d9386302b0", "score": "0.54018605", "text": "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tsendLostDelay();\n\t\t\t\t\t}", "title": "" }, { "docid": "98f3979bf046c2250c53f3931b0f1dce", "score": "0.5395908", "text": "public void addRateSheetIcon()\n\t{\n\t\t//To check the status of \"Continued_Execution\" parameter, if it is set to NO it will skip this method, if not it will resume the execution \n\t\tif(oParameters.GetParameters(\"Continued_Execution\").equalsIgnoreCase(\"No\"))\n\t\t{\t\t\t\n\t\t\t//Adding step result to report\n\t\t\toReport.AddStepResult(\"Skipped Method :\", \"Skipped Method : \" + Thread.currentThread().getStackTrace()[1].getMethodName().toUpperCase(), \"INFO\");\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tif(IsElementDisplayed(\"Add RateSheet Button\", addRateSheet))\n\t\t{\t\n\t\t\toReport.AddStepResult(\"Add Rate Sheet Button\", \"Navigated to RateSheet plugin and verified that Add Rate Sheet button is displayed\", \"PASS\");\n\t\t\tclick_button(\"Add Rate Sheet Link\", addRateSheet);\n\t\t\t\n\t\t\tif(IsElementDisplayed(\"Add Rate Sheet Window\", addRateSheetWindow))\n\t\t\t\toReport.AddStepResult(\"Add Rate Sheet Window\", \"Clicked on add rate sheet link and verifed that add Ratesheet window is displayed\", \"PASS\");\n\t\t\telse\n\t\t\t\toReport.AddStepResult(\"Add Rate Sheet Window\", \"Clicked on add rate sheet link and verifed that add Ratesheet window is not displayed\", \"FAIL\");\n\t\t}\n\t\telse\n\t\t\toReport.AddStepResult(\"Add Rate Sheet Button\", \"Navigated to RateSheet plugin and verified that Add Rate Sheet button is not displayed\", \"FAIL\");\n\t}", "title": "" }, { "docid": "f67ca375e62ba29626ee327f8d8cfc80", "score": "0.5389398", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texecute_script(sprite, \"dialog\");\n\t\t\t\t\t\tsetEvent_type(\"basic\");\n\t\t\t\t\t}", "title": "" }, { "docid": "b3dab6ccbdf4f1269dfb7b4d3fc1edb5", "score": "0.5387935", "text": "public void changeRate(double rate) {\n \trRate = rate;\n }", "title": "" }, { "docid": "69dac7144dd654ae10165ed318f6b0fe", "score": "0.5387064", "text": "@Override\n protected void onPreExecute() {\n prog.setProgress(0);\n dialog.show();\n super.onPreExecute();\n }", "title": "" }, { "docid": "99853fcf1599394cc2cf22e087acbdf9", "score": "0.53846925", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n showLenderDialog(s);\n }", "title": "" }, { "docid": "99853fcf1599394cc2cf22e087acbdf9", "score": "0.53846925", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n showLenderDialog(s);\n }", "title": "" }, { "docid": "240f76b4133c3662600f68327fdedd6e", "score": "0.53737", "text": "public void DialogHeight()\r\n {\r\n final String[] choice = {\"From feet to meters\", \"From meters to feet\"};\r\n\r\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Height\");\r\n builder.setItems(choice, new DialogInterface.OnClickListener()\r\n {\r\n public void onClick(DialogInterface dialog, int item)\r\n {\r\n if(item == 0)\r\n {\r\n startActivity(new Intent(MainActivity.this, Heightfromfeet.class));\r\n finish();\r\n }\r\n else if(item == 1)\r\n {\r\n startActivity(new Intent(MainActivity.this, Heightfrommeters.class));\r\n finish();\r\n }\r\n }\r\n });\r\n AlertDialog alert = builder.create();\r\n alert.show();\r\n }", "title": "" }, { "docid": "6d807d365d1e523447a7ed6d629aed76", "score": "0.5372802", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n mStatsHelper.resetStatistics();\n refreshStats();\n mHandler.removeMessages(MSG_REFRESH_STATS);\n }", "title": "" }, { "docid": "2998c1ccfb9a6e79293f5c41c81805bb", "score": "0.5364466", "text": "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tsetDefaultSetting();\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "b1be3c52027a5ac4a4c498a4ef53d6a3", "score": "0.5361871", "text": "@Override\r\n protected Object call() {\r\n button.setDisable(true);\r\n do {\r\n int time = (int) (basicTime * (1 / user.getTimeModifier(position)));\r\n for (int i = 1; i <= time / 10; i++) {\r\n time = (int) (basicTime * (1 / user.getTimeModifier(position)));\r\n timeProperty.set((int) Math.ceil((time - i * 10) / 1000.0));\r\n updateProgress(i, time / 10);\r\n try {\r\n Thread.sleep(10);\r\n } catch (InterruptedException e) {\r\n System.out.println(\"Sleep was interrupted.\");\r\n }\r\n if (user.isBreakLoop()) {\r\n if (position == 1) button.setDisable(false);\r\n updateProgress(0, 100);\r\n timeProperty.set(0);\r\n return null;\r\n }\r\n }\r\n double score = Settings.money[position] * Math.pow(1.07, user.getLevel(position) - 1);\r\n score *= 1 + 0.02 * user.getAngelInvestors();\r\n synchronized (user) {\r\n user.addToScore(score);\r\n }\r\n updateProgress(0, 100);\r\n } while (user.isManagerPresent(position));\r\n button.setDisable(false);\r\n return null;\r\n }", "title": "" }, { "docid": "ec0b8284863475d8e79280df946cfd9f", "score": "0.5361291", "text": "private void lowHealth() {\n CreatureLoader.yourHealth = 0;\n CreatureLoader.saveHealth(currentCreature);\n\n final AlertDialog.Builder mBuilder = new AlertDialog.Builder(this);\n View mView = getLayoutInflater().inflate(R.layout.dialog_yes_no, null);\n TextView text = (TextView) mView.findViewById(R.id.dialogTitle);\n TextView positiveButton = (TextView) mView.findViewById(R.id.positiveButtonText);\n TextView negativeButton = (TextView) mView.findViewById(R.id.negativeButtonText);\n\n text.setText(\"This creature cannot continue the battle. Do you want to continue with another one?\");\n positiveButton.setText(\"Yes\");\n negativeButton.setText(\"No\");\n\n positiveButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dismissTheDialog();\n clickInventory();\n }\n });\n\n negativeButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dismissTheDialog();\n runPossible = true;\n runFromBattle();\n }\n });\n mBuilder.setView(mView);\n dialog = mBuilder.create();\n dialog.show();\n dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialog) {\n dismissTheDialog();\n runPossible = true;\n runFromBattle();\n }\n });\n }", "title": "" }, { "docid": "e0700dadad7b1dfe0896ed0e07ae3d6d", "score": "0.536067", "text": "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tshowProgress(R.string.data_wait);\n\t\t\t\t\t\tString str = SlideMainActivity.turnNum(picker\n\t\t\t\t\t\t\t\t.getCurrentHour())\n\t\t\t\t\t\t\t\t+ \":\"\n\t\t\t\t\t\t\t\t+ SlideMainActivity.turnNum(picker\n\t\t\t\t\t\t\t\t\t\t.getCurrentMinute());\n\t\t\t\t\t\tif (index == 1) {\n\t\t\t\t\t\t\ttempAlarm1 = str;\n\t\t\t\t\t\t\tcommitAlarm(curAlarm1, curAlarm2, str,\n\t\t\t\t\t\t\t\t\tSlideMainActivity.alarm2Value);\n\t\t\t\t\t\t} else if (index == 2) {\n\t\t\t\t\t\t\ttempAlarm2 = str;\n\t\t\t\t\t\t\tcommitAlarm(curAlarm1, curAlarm2,\n\t\t\t\t\t\t\t\t\tSlideMainActivity.alarm1Value, str);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "title": "" }, { "docid": "ab8d85483cf0f1642f4cfbd68c9c9842", "score": "0.5359552", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(radBar.isSelected())\n\t\t\t\t{\n\t\t\t\t\ttxtShowWait.setText(todays.getWaitTime(\"Bar\") + \" min\");\n\t\t\t\t}\n\t\t\t\telse if(radBooth.isSelected())\n\t\t\t\t{\n\t\t\t\t\ttxtShowWait.setText(todays.getWaitTime(\"Booth\") + \" min\");\n\t\t\t\t}\n\t\t\t\telse if(radWindow.isSelected())\n\t\t\t\t{\n\t\t\t\t\ttxtShowWait.setText(todays.getWaitTime(\"Window\") + \" min\");\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "7d4678510768ab8cf2956a92c4c08f12", "score": "0.53574395", "text": "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdouble valor_double = Double.parseDouble(tx_limiar.getText());\r\n\t\t\t\tsetLimiar_Porcentagem((int) (valor_Maximo_RMS * (valor_double / 100)));\r\n\t\t\t\tSystem.out.println(getLimiar_Porcentagem());\r\n\t\t\t}", "title": "" }, { "docid": "3c57d3b216927e5fd82bbc36eaa3a121", "score": "0.5354234", "text": "public AdvanceResponse advance(RiskMap map, Collection<Card> myCards, Map<String, Integer> playerCards, Country fromCountry, Country toCountry, int minAdv) {\n //if the player asked to end the game, don't even display the dialog\n if (crossbar.isHumanEndingGame()) {\n return null;\n }\n\n //else...make the window and keep displaying until the user has confirmed selection\n final AdvanceResponse rsp = new AdvanceResponse(minAdv);\n do {\n this.keepRunning = false;\n final int sourceArmies = map.getCountryArmies(fromCountry);\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n\n /**\n * *********\n * Begin mandatory processing on FX thread. (Required for\n * Stage objects.)\n */\n final Stage dialog = new Stage();\n final VBox layout = getVBoxFormattedForLayout();\n\n final Text sourceCount = new Text();\n final Text destCount = new Text();\n final HBox countryCounts = new HBox(24);\n\n final Button plusle = new Button(\"Add/+\");\n repeatFireOnLongPress(plusle);\n final Button minun = new Button(\"Recall/-\");\n repeatFireOnLongPress(minun);\n final HBox allocationButtons = new HBox(4);\n\n final Button acceptance = new Button(\"Submit/OK\");\n fireButtonAfter3SHover(acceptance);\n final Text acceptanceStatus = new Text(\"Minimum to advance: \" + minAdv);\n\n final Text briefInstructions = new Text(\"Advance some armies \"\n + \"\\ninto your new conquest!\");\n\n dialog.setTitle(\"Advance!\");\n if (FXUIPlayer.owner != null) {\n dialog.initOwner(FXUIPlayer.owner);\n }\n\n putWindowAtLastKnownLocation(dialog);\n sourceCount.setTextAlignment(TextAlignment.CENTER);\n destCount.setTextAlignment(TextAlignment.CENTER);\n acceptanceStatus.setTextAlignment(TextAlignment.CENTER);\n\n final class UpdateStatus {\n\n boolean doubleCheck = false;\n\n UpdateStatus() {\n }\n\n private String troopOrTroops(int troopCount) {\n return (troopCount == 1 ? \"troop\" : \"troops\");\n }\n\n public void refreshStatus() {\n int srcCt = (sourceArmies - rsp.getNumArmies());\n int dstCt = rsp.getNumArmies();\n sourceCount.setText(\"Leave\\n\" + srcCt + \"\\n\"\n + troopOrTroops(srcCt) + \"\\n\"\n + \"in\\n\" + fromCountry.getName()\n + \"\\n:::::\\n\");\n destCount.setText(\"Advance\\n\" + dstCt + \"\\n\"\n + troopOrTroops(dstCt) + \"\\n\"\n + \"into\\n\" + toCountry.getName()\n + \"\\n:::::\\n\");\n doubleCheck = false;\n }\n\n public void resetAcceptance() {\n acceptanceStatus.setText(\"Minimum to advance: \" + minAdv);\n doubleCheck = false;\n }\n\n public boolean verifyAcceptance() {\n if (sourceArmies - rsp.getNumArmies() != 0 && rsp.getNumArmies() != 0) {\n return true;\n } else if (!doubleCheck) {\n acceptanceStatus.setText(\"You cannot leave 0 army members in \" + (rsp.getNumArmies() == 0 ? toCountry.getName() : fromCountry.getName()) + \"?\");\n return false;\n } else {\n\n return true;\n }\n }\n }\n\n countryCounts.setAlignment(Pos.CENTER);\n\n countryCounts.getChildren().addAll(sourceCount, destCount);\n\n final UpdateStatus updater = new UpdateStatus();\n updater.refreshStatus();\n\n plusle.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n updater.resetAcceptance();\n /*if we make sure that we're advancing the minimum \n * number of troops, AND make sure that we leave\n * at least one army member in the source country,\n * then we can add another army person.*/\n if (rsp.getNumArmies() + 1 < sourceArmies) {\n rsp.setNumArmies(rsp.getNumArmies() + 1);\n updater.resetAcceptance();\n updater.refreshStatus();\n }\n }\n });\n minun.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n updater.resetAcceptance();\n /*if we make sure that we're advancing the minimum \n * number of troops, AND make sure that we leave\n * at least one army member in the source country,\n * then we are fine.*/\n if (rsp.getNumArmies() > minAdv) {\n updater.resetAcceptance();\n rsp.setNumArmies(rsp.getNumArmies() - 1);\n updater.refreshStatus();\n }\n }\n });\n\n acceptance.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n //we can't verify it with the official function, \n //but we can check if we've actually put our soldiers somewhere\n //and if we so decide, it's possible to just skip proper allocation (wherein either src or dst has 0 troops\n if (updater.verifyAcceptance()) {\n exitDecider.setAsNonSystemClose();\n saveLastKnownWindowLocation(dialog);\n dialog.close();\n }\n }\n });\n\n allocationButtons.setAlignment(Pos.CENTER);\n allocationButtons.getChildren().addAll(minun, plusle);\n \n layout.getChildren().setAll(\n briefInstructions, countryCounts, allocationButtons,\n acceptanceStatus, acceptance\n );\n\n //finally place the layout into the new dialog window, and display the dialog.\n dialog.setScene(new Scene(layout));\n FXUIPlayer.crossbar.setCurrentPlayerDialog(dialog);\n FXUIPlayer.crossbar.setCurrentHumanName(getName());\n\n registerNodeForBrightnessControl(dialog, layout);\n registerSceneForEyeStrainControl(dialog, dialog.getScene());\n dialog.show();\n }\n });\n\n /**\n * End mandatory FX thread processing. Immediately after this, pause\n * the non-UI thread (which you should be back on) and wait for the\n * dialog to close!\n */\n waitForDialogToClose(FXUIPlayer.crossbar);\n checkIfCloseMeansMore(exitDecider, FXUIPlayer.crossbar);\n FXUIPlayer.crossbar.setCurrentPlayerDialog(null);\n } while (this.keepRunning);\n return rsp;\n }", "title": "" }, { "docid": "06358db68dde564d13b4b07992477843", "score": "0.5353057", "text": "private void prepareDialog() {\n final boolean silentModeOn =\n mAudioManager.getRingerMode() != AudioManager.RINGER_MODE_NORMAL;\n mSilentModeToggle.updateState(silentModeOn);\n mAdapter.notifyDataSetChanged();\n if (mKeyguardShowing) {\n mDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);\n } else {\n mDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG); \n }\n }", "title": "" }, { "docid": "1482eb8bed045c05fccba58f33f4c1fe", "score": "0.5351609", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n if (phase.getSelectedIndex() == 0) { //GAS\n InputNumb.setEnabled(false);\n units.setEnabled(false); \n winBut.setVisible(true);\n winBut.setText(\"PV=nRT\");//or D instead of V\n } else if(phase.getSelectedIndex() == 1){ //LIQUID\n InputNumb.setEnabled(true);\n units.setEnabled(true); \n winBut.setVisible(true);\n winBut.setText(\"[CONC]\");\n } else if(phase.getSelectedIndex() == 2) { //SOLID\n InputNumb.setEnabled(true);\n units.setEnabled(true); \n winBut.setVisible(true);\n winBut.setText(\"Density\");\n }\n }", "title": "" }, { "docid": "1ab7b09c688850cce5fd1b2e75f2efc2", "score": "0.5351101", "text": "@Override\n\t\t\tpublic void onClick(View paramView) {\n\t\t\t\tAppSettings.getInstance(mContext).set(\"RateApp\", REMIND_LATER + \"|\" + System.currentTimeMillis());\n\t\t\t\tUtils.triggerGAEvent(mContext, \"Notifications\", REMIND_LATER, customerId);\n\t\t\t\trateDialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "1f09bf9020a5330ecb99293cff04ed0d", "score": "0.5350508", "text": "public void openFeedbackDialog(String desc, String increment, int pictype, final String colour, final int score){\n LayoutInflater inflater = LayoutInflater.from(this);\n View view = inflater.inflate(R.layout.dialog_feedback, null);\n\n //initialise the elements\n TextView descTxt = view.findViewById(R.id.dialogFeedbackDesc);\n Button okBtn = view.findViewById(R.id.DialogFeedbackBtn);\n TextView points = view.findViewById(R.id.increment);\n ConstraintLayout dialogBg = view.findViewById(R.id.feedbackDialogBg);\n ImageView pic = view.findViewById(R.id.icon);\n\n descTxt.setText(desc); //set the description\n dialogBg.setBackgroundColor(Color.parseColor(colour));\n pic.setImageResource(pictype);\n points.setText(increment);\n\n //create the dialog\n final AlertDialog alertDialog = new AlertDialog.Builder(this)\n .setView(view)\n .create();\n\n okBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n Intent intent = new Intent(CyberSimFive.this, CyberSimOutro.class);\n intent.putExtra(\"score\", score);\n startActivity(intent);\n }\n });\n\n alertDialog.show();\n\n }", "title": "" }, { "docid": "ae86c759336c75161965b7318831b4e8", "score": "0.53504133", "text": "@Override\n\t\t\tpublic boolean onPreferenceClick(Preference arg0) {\n\t\t\t\tdialog.show();\n\t\t\t\treturn false;\n\t\t\t}", "title": "" } ]
05d182183f69bb69620d15459ae3852e
Get one costoOperacion by id.
[ { "docid": "02559355117649f748fe27892b074a7a", "score": "0.8420433", "text": "@Transactional(readOnly = true)\n public Optional<CostoOperacion> findOne(Long id) {\n log.debug(\"Request to get CostoOperacion : {}\", id);\n return costoOperacionRepository.findById(id);\n }", "title": "" } ]
[ { "docid": "1f025435d8ab3c58c4ed14ebd4527e36", "score": "0.718105", "text": "@Override\n @Transactional(readOnly = true)\n public Operador findOne(Long id) {\n log.debug(\"Request to get Operador : {}\", id);\n return operadorRepository.findOne(id);\n }", "title": "" }, { "docid": "e85f52d7ecf67fcded637c85d20a2182", "score": "0.67742753", "text": "@Transactional(readOnly = true)\n public Tbc_frases_opcoes findOne(Long id) {\n log.debug(\"Request to get Tbc_frases_opcoes : {}\", id);\n Tbc_frases_opcoes tbc_frases_opcoes = tbc_frases_opcoesRepository.findOne(id);\n return tbc_frases_opcoes;\n }", "title": "" }, { "docid": "0a4609aa25cd24e05e22dc80262d8785", "score": "0.6760398", "text": "@Override\n\tpublic OperatoerDTO getOperatoer(int oprId) throws DALException {\n\t\tquery = \"Select * From operatoer where opr_id = \" + oprId;\n\t\tResultSet result = c.doQuery(query);\n\t\t\n\t\t// Throw exception if no results found\n\t\tif(result == null){\n\t\t\tthrow new DALException(\"No operators found\");\n\t\t}\n\t\t\n\t\t// Convert to Data Transfer Object\n\t\tOperatoerDTO opr = null;\n\t\ttry {\n\t\t\t// is there a next row\n\t\t\tif(result.next()){\n\t\t\t\topr = new OperatoerDTO(result.getInt(1), result.getString(2),result.getInt(5), result.getString(4),result.getString(3));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// return operator.\n\t\treturn opr;\n\t}", "title": "" }, { "docid": "278d0832c37561cfa11c5b003d999d33", "score": "0.6455953", "text": "@Transactional(readOnly = true)\n public Tbc_cliente findOne(Long id) {\n log.debug(\"Request to get Tbc_cliente : {}\", id);\n Tbc_cliente tbc_cliente = tbc_clienteRepository.findOne(id);\n return tbc_cliente;\n }", "title": "" }, { "docid": "0a81e8c85f32d9e998692b410aeae55f", "score": "0.6452057", "text": "public void delete(Long id) {\n log.debug(\"Request to delete CostoOperacion : {}\", id);\n costoOperacionRepository.deleteById(id);\n }", "title": "" }, { "docid": "7e7c777d0246bc14ddb8d1946e9b51bc", "score": "0.6441377", "text": "Operation getById(long id);", "title": "" }, { "docid": "b8cf64136c66b0b31485b9911bed78e4", "score": "0.64075613", "text": "CostGrideDTO findOne(Long id);", "title": "" }, { "docid": "7921e3848a06bfbbf9989757e55b6597", "score": "0.62662435", "text": "@Override\r\n\tpublic CostStnDtItem findOne(int id) {\n\t\treturn costStnDtItemRepository.findOne(id);\r\n\t}", "title": "" }, { "docid": "a1563fac7b7bda7afa24fd47d9e76348", "score": "0.6204834", "text": "@Transactional(readOnly = true)\n public TransportationPriceDTO findOne(Long id) {\n log.debug(\"Request to get TransportationPrice : {}\", id);\n TransportationPrice transportationPrice = transportationPriceRepository.findOne(id);\n return transportationPriceMapper.transportationPriceToTransportationPriceDTO(transportationPrice);\n }", "title": "" }, { "docid": "69af13f8cd5a8e9978ee8b6219db5756", "score": "0.6153292", "text": "@Transactional(readOnly = true)\n public CathegorieDTO findOne(Integer id) {\n log.debug(\"Request to get Cathegorie : {}\", id);\n Cathegorie cathegorie = cathegorieRepository.findOne(id);\n Preconditions.checkArgument(cathegorie != null, \"error.ressourceNotFound\");\n return CathegorieFactory.cathegorieTOCathegorieDTO(cathegorie);\n }", "title": "" }, { "docid": "58284d0197730f501d1810de68744571", "score": "0.61525047", "text": "@Transactional(readOnly = true) \n public Produto findOne(Long id) {\n log.debug(\"Request to get Produto : {}\", id);\n Produto produto = produtoRepository.findOne(id);\n return produto;\n }", "title": "" }, { "docid": "1affcba4b90a4b867fc14eec461267b3", "score": "0.61359966", "text": "public int obtenerCostoArreglo(int id_arreglo){\n int aux = 0;\n try{\n PreparedStatement stmt;\n stmt = Conexion.prepareStatement(\"SELECT costo FROM tabla_arreglos WHERE id = '\" +id_arreglo+ \"'\");\n java.sql.ResultSet res;\n res = stmt.executeQuery();\n if(res.next()){\n aux = res.getInt(\"costo\");\n return aux;\n }\n else{\n res.close();\n return aux;\n }\n } catch(SQLException a){\n Logger.getLogger(controladorBaseDatos.class.getName()).log(Level.SEVERE, null, a);\n JOptionPane.showMessageDialog(null, a.getMessage());\n return aux = 0;\n }\n \n }", "title": "" }, { "docid": "27f3201d0c1ef6b9c79732c5d8f808af", "score": "0.6092879", "text": "@Transactional(readOnly = true)\n public CustomerOrderCapacityDTO findOne(Long id) {\n log.debug(\"Request to get CustomerOrderCapacity : {}\", id);\n CustomerOrderCapacity customerOrderCapacity = customerOrderCapacityRepository.findOne(id);\n return customerOrderCapacityMapper.toDto(customerOrderCapacity);\n }", "title": "" }, { "docid": "ec292309c5b35b3d6a2efe625bf875d7", "score": "0.60779995", "text": "@Transactional(readOnly = true)\n public MeuServico findOne(Long id) {\n log.debug(\"Request to get MeuServico : {}\", id);\n return meuServicoRepository.findOne(id);\n }", "title": "" }, { "docid": "a82e2d773b21b9abce61b8773adfdbdb", "score": "0.6070138", "text": "public Producto seleccionarProducto(int id) {\n\n var producto = new Producto();\n\n try ( PreparedStatement ps = con.prepareStatement(GET_PRODUCTO)) {\n\n ps.setInt(1, id);\n\n ResultSet result = ps.executeQuery();\n\n while (result.next()) {\n producto.setId(result.getInt(\"id\"));\n producto.setNombre(result.getString(\"nombre\"));\n producto.setPrecio(result.getDouble(\"precio\"));\n }\n\n return producto;\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "55486afea91dc26a2e3926bec5204ba6", "score": "0.60427", "text": "@Override\r\n\tpublic Proceso getProcesoById(int id) {\n\t\tString sql=\"SELECT proc.id,proc.idEmpresa,concat(emp.razonSocial,emp.apellidos,emp.nombres) AS 'nombEmpresa',proc.idPersonal,concat(per.email) AS 'nombPersonal',proc.idTipoProceso,tc.nombre AS 'nombTipoProceso',proc.nombreProceso,proc.nombResponsable,proc.descActividades,proc.codeUml,proc.observaciones,proc.fechaRegistro \"+ \r\n\t\t\t\t\"FROM procesos AS proc \"+\r\n\t\t\t\t\"INNER JOIN personal AS per ON proc.idPersonal = per.id \"+\r\n\t\t\t\t\"INNER JOIN empresas AS emp ON proc.idEmpresa = emp.id \"+\r\n\t\t\t\t\"INNER JOIN tipoprocesos AS tc ON proc.idTipoproceso = tc.id \"+\r\n\t\t\t\t\"WHERE proc.estado = 1 AND proc.id =\"+id;\r\n\t\t//System.out.println(sql);\r\n\t\treturn template.queryForObject(sql,new BeanPropertyRowMapper<Proceso>(Proceso.class));\r\n\t}", "title": "" }, { "docid": "fb953ef7fdee7b2b486ec8d33dba3970", "score": "0.6039676", "text": "OgrenciDTO findOne(Long id);", "title": "" }, { "docid": "a657eef3dd91dd005e60936f0ca9aa07", "score": "0.60204196", "text": "@Transactional(readOnly = true)\n public FonctionResponsableSocieteDTO findOne(Integer id) {\n log.debug(\"Request to get FonctionResponsableSociete : {}\", id);\n FonctionResponsableSociete fonctionResponsableSociete = fonctionResponsableSocieteRepository.findOne(id);\n Preconditions.checkArgument((fonctionResponsableSociete != null), \"error.ressourceNotFound\");\n return FonctionResponsableSocieteFactory.fonctionResponsableSocieteToFonctionResponsableSocieteDTO(fonctionResponsableSociete);\n }", "title": "" }, { "docid": "f6cbc96361d4af83a7c936292872f5eb", "score": "0.6012975", "text": "@Transactional(readOnly = true)\n public Regione findOne(Long id) {\n log.debug(\"Request to get Regione : {}\", id);\n return regioneRepository.findOne(id);\n }", "title": "" }, { "docid": "8c342e09e0d4dbb90b4f47d034010bcc", "score": "0.6009814", "text": "public static Conductor obtener_conductor(String id) {\n Conductor cnt = new Conductor();\n if (Conexion.conectar() != 0) {//si no hay conexion a la base\n ResultSet rs = null;\n try {\n rs = Conexion.obtener_registros(Conductor_DAO.ae_seleccionar_todo + \" where identificacionConductor= '\" + id + \"'\");\n if (rs.next()) {\n cnt = new Conductor();\n cnt.poner_id(rs.getString(1));\n cnt.poner_nombre(rs.getString(2));\n cnt.poner_nacionalidad(rs.getString(3));\n cnt.poner_fecha_nacimiento(rs.getString(4));\n }\n rs.close();\n Conexion.ae_con.close();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n } else {\n cnt = null;\n }\n\n return cnt;\n }", "title": "" }, { "docid": "8f92a8fe7f349e8ea5553034b3105162", "score": "0.6007234", "text": "@Transactional(readOnly = true) \n public TipoDTO findOne(Long id) {\n log.debug(\"Request to get Tipo : {}\", id);\n Tipo tipo = tipoRepository.findOne(id);\n TipoDTO tipoDTO = tipoMapper.tipoToTipoDTO(tipo);\n return tipoDTO;\n }", "title": "" }, { "docid": "b784db4b28cee15bf5910277dc465f85", "score": "0.5985591", "text": "public TarjetaCredito consultarUno(int id) \r\n\t{\n\t TarjetaCredito tarjetacredito = tarjetacreditodao.consultarUno(id);\r\n\t return tarjetacredito;\r\n\t}", "title": "" }, { "docid": "499a70f9bf3f9b4ba65ba0ae1dcfb10a", "score": "0.59844095", "text": "List<OsiFunctionOperationDTO> findOne(Long id);", "title": "" }, { "docid": "e158fb5196306e2c4f918f21cac7dcf9", "score": "0.5983193", "text": "public static Coordinador findMeById(Long id){\n\t\tCriteria criteria;\n\t\tcriteria = SisopAdminServiceProvider.getPersistenceService().createCriteria(Coordinador.class);\n\t\tcriteria.add(Expression.eq(ID,id));\n\t\treturn (Coordinador) criteria.uniqueResult();\n\t}", "title": "" }, { "docid": "af08a0580060cc3252d6a970a6b5c8a2", "score": "0.5965217", "text": "public static Operator operator(Integer id) {\n Operator po = new Operator();\n po.id = id;\n po.name = randomName();\n return po;\n }", "title": "" }, { "docid": "cfb5526739f62be12db3344d505346f9", "score": "0.59642905", "text": "public Licenzecommerciali get( Integer id ) {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Recupero la Licenza Commerciale\r\n\t\tLicenzecommerciali licenzecommerciali = (Licenzecommerciali) session.get(Licenzecommerciali.class, id);\r\n\t\t\r\n\t\t//Restituisco la licenza trovata\r\n\t\treturn licenzecommerciali;\r\n\t}", "title": "" }, { "docid": "e0096ab6e76b2daf25c6cd786ac8fbfd", "score": "0.59268916", "text": "@Override\n\tpublic EventOperations getEventOperationsById(Long id) {\n\t\tEventOperations eventOperations = (EventOperations) em.createQuery(\"from EventOperations where id=?\").setParameter(1, id).getSingleResult();\n\t\treturn eventOperations;\n\t}", "title": "" }, { "docid": "83c6dd42b78d481fce85817e89fde070", "score": "0.59068114", "text": "@RequestMapping(value = \"/operations/{id}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\r\n public Operation getOperationById(@PathVariable(\"id\") Integer publicId) {\r\n return operationService.getOperationById(publicId);\r\n }", "title": "" }, { "docid": "ee09c298a2fcd8c78eab444def290941", "score": "0.59047145", "text": "public ParNombreExpediente findOne(Long id) {\r\n return parNombreExpedienteRepository.getOne(id);\r\n }", "title": "" }, { "docid": "c4e4d9f170839f837cccad09364ecc47", "score": "0.58959126", "text": "@Override\n\tpublic JSONObject selectZzblOperationById(String id) throws Exception {\n\t\treturn zzblDao.selectZzblOperationById(id);\n\t}", "title": "" }, { "docid": "dce7b5c44e4cf1e9ce174e90c35de821", "score": "0.5888311", "text": "public String getOperId() {\n return operId;\n }", "title": "" }, { "docid": "dce7b5c44e4cf1e9ce174e90c35de821", "score": "0.5888311", "text": "public String getOperId() {\n return operId;\n }", "title": "" }, { "docid": "dce7b5c44e4cf1e9ce174e90c35de821", "score": "0.5888311", "text": "public String getOperId() {\n return operId;\n }", "title": "" }, { "docid": "00780b1ee117233ac75cc24ae30c73e9", "score": "0.585705", "text": "public Recluso findOne(String id){\n\n Recluso oRecluso = null;\n\n BaseResponse oBaseResponse = oServiceProxy\n .buildParams(\"api/reclusos/details\", new Params().Add(new Params(\"id\", id)).Get())\n .getTarget()\n .get(BaseResponse.class);\n\n oServiceProxy.close();\n\n if(oBaseResponse.getStatusAction() == 1 && oBaseResponse.getData() != null)\n oRecluso = (Recluso) BaseResponse.convertToModel(oBaseResponse, new Recluso());\n\n return oRecluso;\n }", "title": "" }, { "docid": "052890857267d9b7a6f0124b7ae2380f", "score": "0.58541226", "text": "@Override\n @Transactional(readOnly = true)\n public DonsDTO findOne(Long id) {\n log.debug(\"Request to get Dons : {}\", id);\n Dons dons = donsRepository.findOne(id);\n return donsMapper.toDto(dons);\n }", "title": "" }, { "docid": "2ea4a33341b18e66b2145fd523e43d1a", "score": "0.5838216", "text": "public Tecnico buscar(int id) throws RegistroNaoEncontradoException {\n\t\treturn repositorio.buscar(id);\n\t}", "title": "" }, { "docid": "73410917aaa806725f82c86296b13cbe", "score": "0.58299667", "text": "@Override\n @Transactional(readOnly = true)\n public Optional<CategorieVODDTO> findOne(Long id) {\n log.debug(\"Request to get CategorieVOD : {}\", id);\n return categorieVODRepository.findById(id)\n .map(categorieVODMapper::toDto);\n }", "title": "" }, { "docid": "73f56912aee8f99c2b3ce2fec8044da2", "score": "0.5818871", "text": "public String getOperid() {\n return operid;\n }", "title": "" }, { "docid": "0e218f36e6d58a48acc0e81b9dfe52f2", "score": "0.581232", "text": "@Transactional(readOnly = true)\n public Optional<CategorieCnssGerantDTO> findOne(Long id) {\n log.debug(\"Request to get CategorieCnssGerant : {}\", id);\n return categorieCnssGerantRepository.findById(id)\n .map(categorieCnssGerantMapper::toDto);\n }", "title": "" }, { "docid": "7f11d2395bdf4d0f26286b351a5a563f", "score": "0.580294", "text": "@Override\n\t\tpublic ProductoDTO obtenerProductoById(int id) {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "fa19a63e3e8cf396f7ace02e6f3247a0", "score": "0.57900643", "text": "public Curso getCursoById(Long id);", "title": "" }, { "docid": "4f5b774b2e3d1ac407174a4143ede914", "score": "0.5781357", "text": "public Funcionario buscarPeloID(int id){\r\n return (Funcionario) HibernateUtil.getSessionFactory().openSession().get(Funcionario.class, id);\r\n }", "title": "" }, { "docid": "b2bd13bdba1ff37beccb8d4e31eb1c57", "score": "0.57725036", "text": "@Override\n @Transactional(readOnly = true)\n public Optional<LineaDeInvestigacion> findOne(Long id) {\n log.debug(\"Request to get LineaDeInvestigacion : {}\", id);\n return lineaDeInvestigacionRepository.findById(id);\n }", "title": "" }, { "docid": "0d406b5c398ddcd92c6d9fb2ac38cd87", "score": "0.5768719", "text": "@Transactional(readOnly = true)\n public Optional<CnssDTO> findOne(Long id) {\n log.debug(\"Request to get Cnss : {}\", id);\n return cnssRepository.findById(id)\n .map(cnssMapper::toDto);\n }", "title": "" }, { "docid": "5b041a7551db056f466e119e7d7124e3", "score": "0.57649934", "text": "public Produit rechercherparid(Long id) {\n\t\treturn prodR.getOne(id);\n\t}", "title": "" }, { "docid": "ae4609dd79e14835b10a73e37adc9e84", "score": "0.5763063", "text": "Optional<TipUsuPessoaEntidDTO> findOne(String id);", "title": "" }, { "docid": "93870fbc6d68336ecd91262dad103e2c", "score": "0.5735494", "text": "public ExtCproduct get(Serializable id) {\n\t\treturn extCproductDao.get(id);\n\t}", "title": "" }, { "docid": "bfd8636fd302b8e6d5ab8665b7a4ac90", "score": "0.57259876", "text": "public Gruppolicenzecommerciali get( Integer id ) {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Recupero il Gruppolicenzecommerciali\r\n\t\tGruppolicenzecommerciali Gruppolicenzecommerciali = (Gruppolicenzecommerciali) session.get(Gruppolicenzecommerciali.class, id);\r\n\t\t\r\n\t\t//Restituisco il Gruppolicenzecommerciali trovato\r\n\t\treturn Gruppolicenzecommerciali;\r\n\t}", "title": "" }, { "docid": "491b0a4b4b3cdd786d8e9cd4dcc0814f", "score": "0.5718588", "text": "@Override\n\tpublic TipoVehiculoDto getById(Long id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0d08e8f6f1cb34a0252015a956abfc3a", "score": "0.57179105", "text": "public Order findOne(String id) {\n log.debug(\"Request to get Order : {}\", id);\n return orderRepository.findOne(id);\n }", "title": "" }, { "docid": "d9e3ed52e8419c346734c3e4d9108bf5", "score": "0.57104063", "text": "public Producto getSpecificProduct(long id){\n\t\t\treturn productoRepository.findOne(id);\n\t\t}", "title": "" }, { "docid": "61fda94ec25aa073ba824a910666116e", "score": "0.57097095", "text": "@Override\r\n\tpublic Long getId() {\n\t\treturn operid;\r\n\t}", "title": "" }, { "docid": "50e772d968b083f05e83166678e70509", "score": "0.57063854", "text": "public O get(I id);", "title": "" }, { "docid": "7b87d89b28a1a847505849ee7feb4044", "score": "0.57061356", "text": "@Override\r\n\tpublic Produto findById(int id) {\n\t\t\t\tif (getConnection() == null) {\r\n\t\t\t\t\tUtil.addMessageError(\"Falha ao conectar ao Banco de Dados.\");\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\tProduto produto = null;\r\n\t\t\t\t\r\n\t\t\t\tPreparedStatement stat = null;\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstat = getConnection().prepareStatement(\"SELECT * FROM produto WHERE id = ?\");\r\n\t\t\t\t\tstat.setInt(1, id);\r\n\t\t\t\t\t\r\n\t\t\t\t\tResultSet rs = stat.executeQuery();\r\n\t\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\t\tproduto = new Produto();\r\n\t\t\t\t\t\tproduto.setId(rs.getInt(\"id\"));\r\n\t\t\t\t\t\tproduto.setNome(rs.getString(\"nome\"));\r\n\t\t\t\t\t\tproduto.setDescricao(rs.getString(\"descricao\"));\r\n\t\t\t\t\t\tproduto.setQuantidade(rs.getInt(\"quantidade\"));\t\r\n\t\t\t\t\t\tproduto.setPeso(rs.getString(\"peso\"));\r\n\t\t\t\t\t\tproduto.setUnidade(rs.getString(\"unidade\"));\r\n\t\t\t\t\t\tproduto.setValor(rs.getDouble(\"valor\"));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\tUtil.addMessageError(\"Falha ao consultar o Banco de Dados.\");\r\n\t\t\t\t} finally {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tstat.close();\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn produto;\r\n\t}", "title": "" }, { "docid": "d532d7e7b1f4c685af9e5e6530c39882", "score": "0.56813", "text": "@Override\r\n public TipoInversionVO get(Integer id) throws SQLException, Exception {\n return null;\r\n }", "title": "" }, { "docid": "80065cca57a67ba875fd2229ab440981", "score": "0.56762505", "text": "@Override\r\n\tpublic ProduccionPedido findOne(Long id) {\n\t\treturn repository.findById(id).orElse(null);\r\n\t}", "title": "" }, { "docid": "3fa6050cd413a371048fe610055fc877", "score": "0.56723976", "text": "@Override\n\tpublic KullaniciToSinav get(long id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f7ca14009e8be08f6d103a1563675122", "score": "0.56642616", "text": "@Override\n\tpublic Produto buscarPorId(int id) throws ExceptionUtil {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c4f1af65641f4431e085e223956531f3", "score": "0.5663413", "text": "public Producto getProducto(int id){\n Producto producto = realm.where(Producto.class).equalTo(\"id\",id).findFirst();\n return producto;\n }", "title": "" }, { "docid": "2891c685944f0fd6b551c6c6ea5fa5c9", "score": "0.5655573", "text": "@Override\n public SeminariosCursos buscarxId(Integer id) {\n return seminariosCursosDAO.findxId(id);\n }", "title": "" }, { "docid": "0471232c96da23d1e01984d7eebb195a", "score": "0.56455386", "text": "public Pedido buscar(Integer id) {\n\n Optional<Pedido> obj = pedidoRepository.findById(id);\n\n return obj.orElseThrow(() -> new CategoriaNotFoundException(\"Pedido nao encontrado! Id: \" + id + \", Tipo: \" + Pedido.class.getName()));\n }", "title": "" }, { "docid": "87d43524c21d3f345788317786dee19b", "score": "0.56410533", "text": "@Transactional(readOnly = true)\n public Optional<HistoricoPrecoCombustivelDTO> findOne(Long id) {\n log.debug(\"Request to get HistoricoPrecoCombustivel : {}\", id);\n return historicoPrecoCombustivelRepository.findById(id)\n .map(historicoPrecoCombustivelMapper::toDto);\n }", "title": "" }, { "docid": "a1cb9653eeba8400f10f85b22c0a4756", "score": "0.56395423", "text": "@Override\r\n\tpublic Commodity getComById(String id) {\n\t\treturn comMapper.selectByPrimaryKey(id);\r\n\t}", "title": "" }, { "docid": "e453010450a215bfae79a121e0ddea0e", "score": "0.5638372", "text": "public Producto consultarProducto(int idProducto);", "title": "" }, { "docid": "c942574dcc05d6511caad73cfc9b8099", "score": "0.56356496", "text": "public Productos getProducto(Long id) {\n return getElement(id, Productos.class);\n }", "title": "" }, { "docid": "466077829a76ca761fcb3fab0fb737c2", "score": "0.56328803", "text": "Tbc_numeracao findOne(Long id);", "title": "" }, { "docid": "fb6624bb6bea887e0ef4ab2f3984ca57", "score": "0.5611743", "text": "@Override\r\n\tpublic Cobranca obterPorId(Long id) {\r\n\t\tCobranca cobranca = null;\r\n\t\ttry {\r\n\t\t\tcobranca = (Cobranca) session.get(Cobranca.class, id);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn cobranca;\r\n\t}", "title": "" }, { "docid": "f7058537567b7b0b527781e8e1980d43", "score": "0.56046915", "text": "@Override\n\tpublic TipoCargo find(Integer id, Integer versao) {\n\t\tTipoCargo cargo = null;\n\t\ttry {\n\t\t\tQuery query = em.createNamedQuery(TipoCargo.FIND)\n\t\t\t\t\t.setParameter(\"id\", id).setParameter(\"versao\", versao);\n\t\t\tcargo = (TipoCargo) query.getSingleResult();\n\t\t} catch (NoResultException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn cargo;\n\t}", "title": "" }, { "docid": "02694c50678528d019f1652ca8153f90", "score": "0.5603642", "text": "@Override\r\n\tpublic CompteLbc findOne(Integer id) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "cfcf1ee92ddc72e42d74e865076e2407", "score": "0.5603159", "text": "@Transactional(readOnly = true)\n public Optional<SocieteAbonneDTO> findOne(Long id) {\n log.debug(\"Request to get SocieteAbonne : {}\", id);\n return societeAbonneRepository.findById(id)\n .map(societeAbonneMapper::toDto);\n }", "title": "" }, { "docid": "3f419f7427528c76dc99253aba199759", "score": "0.56022584", "text": "public Compra findById(Long id){\n return repository.findById(id).orElse(null);//Sempre que houver retorno Optional usar orElse\n }", "title": "" }, { "docid": "1109892a735e098a8d4b4f66d3721463", "score": "0.5593506", "text": "Optional<CuentaCliente> findOne(String id);", "title": "" }, { "docid": "b856340de6bde52e96f03f62233293e6", "score": "0.5587894", "text": "public Operator findOperatorByKey(Integer id) throws NoSuchOperatorException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bb1a6b082c363be4f6146bf6528709f4", "score": "0.5586322", "text": "@Transactional(readOnly = true)\n public Optional<PeriodeDTO> findOne(Long id) {\n log.debug(\"Request to get Periode : {}\", id);\n return periodeRepository.findById(id)\n .map(periodeMapper::toDto);\n }", "title": "" }, { "docid": "bf4d610dc3b65e8d013125a3df27832d", "score": "0.5573632", "text": "public Long getOperid() {\r\n\t\treturn operid;\r\n\t}", "title": "" }, { "docid": "c1ff3bcba2dde64480f5ee79090765f0", "score": "0.5571247", "text": "public OrdenCompraInsumo getOrdenCompraInsumoSegunId(long idOrden) {\r\n\r\n\t\tSession sec = HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsec.beginTransaction();\r\n\r\n\t\tOrdenCompraInsumo orden = new OrdenCompraInsumo();\r\n\r\n\t\torden = (OrdenCompraInsumo) sec.get(orden.getClass(), idOrden);\r\n\r\n\t\tsec.close();\r\n\t\treturn orden;\r\n\r\n\t}", "title": "" }, { "docid": "188038c6cf008398875dadcfd6eb16e3", "score": "0.5569215", "text": "@Override\n @Transactional(readOnly = true)\n public HistoriaClinicaDTO findOne(Long id) {\n log.debug(\"Request to get HistoriaClinica : {}\", id);\n HistoriaClinica historiaClinica = historiaClinicaRepository.findOne(id);\n return historiaClinicaMapper.toDto(historiaClinica);\n }", "title": "" }, { "docid": "bc1446eee5667e29b259bcb1de3ccd97", "score": "0.55690426", "text": "public T buscarPorId(Integer id) {\n\t\treturn em.find(tipoEntidad, id);\n\t}", "title": "" }, { "docid": "74de5c6fd8b6274f4bd939cf5151406a", "score": "0.5565456", "text": "@Transactional(readOnly = true)\n public Optional<CondicaoDeAtendimentoDTO> findOne(Long id) {\n log.debug(\"Request to get CondicaoDeAtendimento : {}\", id);\n return condicaoDeAtendimentoRepository.findById(id)\n .map(condicaoDeAtendimentoMapper::toDto);\n }", "title": "" }, { "docid": "3efbc1b590acf1217f6719e7053bfea3", "score": "0.5565189", "text": "Curso findById(Long id);", "title": "" }, { "docid": "f1cb4c79b8402e8ad0c9a0902531d597", "score": "0.5546692", "text": "public ReferentielEtatCommandeDTO findById(Integer id);", "title": "" }, { "docid": "e576a4e0c66244ad74577aea293ec2db", "score": "0.5544432", "text": "@Override\n\tpublic PeriodicitePOJO getById(int id) {\n\t\t\n\t\tPeriodicitePOJO period = new PeriodicitePOJO();\n\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tConnection laConnexion = Connexion.creeConnexion();\n\t\t\t\n\t\t\tPreparedStatement requete = null;\n\t\t\tResultSet res;\n\t\t\t\n\t\t\trequete = laConnexion.prepareStatement(\"select * from Periodicite where id_periodicite =?\");\t\t\t\n\t\t\trequete.setInt(1, id);\n\t\t\t\n\t\t\tres = requete.executeQuery();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\twhile (res.next()) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"requête executée\");\n\t\t\t\t\n\t\t\t\t period.setId_periode(res.getInt(1));\n\t\t\t\t period.setLibelle(res.getString(2));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\n\t\n\t\t\t\n\t\t\tif (res != null)\n\t\t\t\tres.close();\n\t\t\t\n\t\t\tif (requete != null)\n\t\t\t\trequete.close();\n\t\t\t\n\t\t\tif (laConnexion !=null) \n\t\t\t\tlaConnexion.close();\n\t\n\t\t\t\n\t\t}\n\t\t\n\t\tcatch (SQLException e )\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn period;\n\t\t\n\t}", "title": "" }, { "docid": "65e9723f29a64830d73026feaaae2cb0", "score": "0.5541376", "text": "@Transactional(readOnly = true)\n public Optional<ConcoursRattacheDTO> findOne(Long id) {\n log.debug(\"Request to get ConcoursRattache : {}\", id);\n return concoursRattacheRepository.findById(id)\n .map(concoursRattacheMapper::toDto);\n }", "title": "" }, { "docid": "717123ceaf449805491803325244816c", "score": "0.5538636", "text": "public Price getPrice(String id);", "title": "" }, { "docid": "464470ce836ce4c6224192b1a45d3a09", "score": "0.5535761", "text": "public Convidado buscarConvidadoPorId(Long id) {\n\t\treturn repository.findOne(id);\n\t}", "title": "" }, { "docid": "95f0bf276e99c7bcbbe574f7478f4f92", "score": "0.5532203", "text": "@Transactional(readOnly = true)\n public Optional<TipoAprazamentoDTO> findOne(Long id) {\n log.debug(\"Request to get TipoAprazamento : {}\", id);\n return tipoAprazamentoRepository.findById(id)\n .map(tipoAprazamentoMapper::toDto);\n }", "title": "" }, { "docid": "558037922e4033dfe7fef4dd2382c90e", "score": "0.5531587", "text": "public Produccion obtener(Long id){\n\t\treturn em.find(Produccion.class, id);\n\t}", "title": "" }, { "docid": "5e6b4fc00bc99321e48a500975b14da0", "score": "0.5528228", "text": "public Order getOrder(int id);", "title": "" }, { "docid": "72c893dea89ca30bb0bc398f5b2a8ee9", "score": "0.5518132", "text": "public Cliente findById(Integer id) {\n\t\tOptional<Cliente> obj = repository.findById(id); // Usa findById de ClienteRepository p/ retornar um obj cliente\n\n\t\t// Retorna o cliente ou uma exceção se não for encontrado\n\t\treturn obj.orElseThrow(() -> new ObjectNotFoundException(\n\t\t\t\t\"Objeto não encontrado! Id: \" + id + \", Tipo: \" + Cliente.class.getName()));\n\n\t}", "title": "" }, { "docid": "348608c20b0f81efeac1700656cb6959", "score": "0.5517206", "text": "public Pedido seleccionarPedido(int id) {\n\n var pedido = new Pedido();\n\n try ( PreparedStatement ps = con.prepareStatement(GET_PEDIDO)) {\n\n ps.setInt(1, id);\n\n ResultSet result = ps.executeQuery();\n\n while (result.next()) {\n pedido.setId(result.getInt(\"id\"));\n pedido.setProduct_id(result.getInt(\"product_id\"));\n pedido.setFecha(result.getDate(\"fecha\"));\n pedido.setPrecio(result.getDouble(\"precio\"));\n pedido.setPendiente(result.getString(\"pendiente\"));\n pedido.setRecogido(result.getString(\"recogido\"));\n }\n\n return pedido;\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n return null;\n }\n\n }", "title": "" }, { "docid": "c9f06d5a64b1b989d7440add38e69ae3", "score": "0.5507199", "text": "public Customer getCustomer(Integer id);", "title": "" }, { "docid": "14d25ec94db3e1a1e6a79d7888085cfc", "score": "0.55055", "text": "public int getCosto() {\n\t\treturn costo;\n\t}", "title": "" }, { "docid": "b97f741b600cc91420b5cc59467f92aa", "score": "0.55019355", "text": "@Override\n @Transactional(readOnly = true)\n public Optional<TabelaPrecoDTO> findOne(Long id) {\n log.debug(\"Request to get TabelaPreco : {}\", id);\n return tabelaPrecoRepository.findById(id)\n .map(tabelaPrecoMapper::toDto);\n }", "title": "" }, { "docid": "ec7a8af780ca78cbe39e8c90b7bd6a6a", "score": "0.54930794", "text": "@Override\n @Transactional(readOnly = true)\n public Optional<VitesseCroissance> findOne(Long id) {\n log.debug(\"Request to get VitesseCroissance : {}\", id);\n return vitesseCroissanceRepository.findById(id);\n }", "title": "" }, { "docid": "f5cc399d0737d98b9fb769cae99c9a08", "score": "0.5486287", "text": "Optional<PropriedadeContratadaDTO> findOne(Long id);", "title": "" }, { "docid": "9a9f8d716df6f222d9d84a3d5ed1e592", "score": "0.5477231", "text": "public Contract getById(Long id) {\r\n database.connect();\r\n database.prepareStatement(QUERY_GET_BY_ID);\r\n\r\n Contract contract = null;\r\n\r\n try {\r\n PreparedStatement s = database.getStatement();\r\n\r\n s.setLong(1, id);\r\n\r\n ResultSet r = s.executeQuery();\r\n\r\n r.first();\r\n\r\n contract = new Contract(\r\n id,\r\n r.getDate(\"date\"),\r\n r.getDate(\"storing_from\"),\r\n r.getDate(\"storing_until\"),\r\n r.getDouble(\"rented_area\"),\r\n r.getString(\"status\"),\r\n null,\r\n null\r\n );\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n\r\n database.disconnect();\r\n\r\n return contract;\r\n }", "title": "" }, { "docid": "fdbe9ad5248f7f5d0a1d913f334c798d", "score": "0.547185", "text": "public ChefDeProjet findOne(Long id) throws SQLException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2178f81937e066cafeb356663baa6c39", "score": "0.54698795", "text": "public Customer getCustomer(int id) {\n java.util.List<Customer> customers = getCustomers(String.format(\"WHERE Cid=%d\", id));\n if (customers.size() == 0) {\n return null;\n } else {\n return customers.get(0);\n }\n }", "title": "" }, { "docid": "d5aaae25c139488b2fe449fe1330665a", "score": "0.5466974", "text": "@Override\n @Transactional(readOnly = true)\n public ProductsDTO findOne(Long id) {\n log.debug(\"Request to get Products : {}\", id);\n Products products = productsRepository.findOne(id);\n return productsMapper.toDto(products);\n }", "title": "" }, { "docid": "9a385e787b7acea3be15843c2a7c1230", "score": "0.54653", "text": "@Transactional(readOnly = true)\n public LigneFactureDTO findOne(Long id) {\n log.debug(\"Request to get LigneFacture : {}\", id);\n LigneFacture ligneFacture = ligneFactureRepository.findOne(id);\n return ligneFactureMapper.toDto(ligneFacture);\n }", "title": "" } ]
518bf5364cda3c6202a1a392996f93d1
Inflate the menu; this adds items to the action bar if it is present.
[ { "docid": "b503fc7fa1f36527045b729accf7ab38", "score": "0.0", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n return true;\n }", "title": "" } ]
[ { "docid": "24b4bc10b078ba60e54d834c5f825280", "score": "0.71203315", "text": "@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 }", "title": "" }, { "docid": "eef11a57ac94c3e6cd3b907229428364", "score": "0.70966506", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n \tinitActionBar();\n\t}", "title": "" }, { "docid": "239f4447c51cbf2ec54c8887af8e5932", "score": "0.7077799", "text": "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_activity_actions, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "b1f82704c97a0be3dff36c37fba63e44", "score": "0.706871", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \t \tgetMenuInflater().inflate(R.menu.actionbar_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "2bffbb68c1914867fc077ba98c615dd4", "score": "0.7065704", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.main_activity_actions, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "89717b071b399ac137b0743ff4f491a0", "score": "0.7047362", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tMenuInflater inflater = getMenuInflater();\n\t\t\tinflater.inflate(R.menu.main, menu);\n\t\t\treturn super.onCreateOptionsMenu(menu);\n\t\t}", "title": "" }, { "docid": "eece5f5b4486c79ccfc3d62aa7545306", "score": "0.6981196", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.action_bar, menu);\n }", "title": "" }, { "docid": "5211112120aad57890e4284a66736469", "score": "0.6966555", "text": "private void showMainActivityActionItems(MenuInflater inflater, Menu menu) {\n //Inflate the menu.\n getMenu().clear();\n inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity, menu);\n\n //Set the ActionBar background\n getActionBar().setBackgroundDrawable(UIElementsHelper.getGeneralActionBarBackground(mContext));\n getActionBar().setDisplayShowTitleEnabled(true);\n getActionBar().setDisplayUseLogoEnabled(false);\n getActionBar().setHomeButtonEnabled(true);\n\n //Set the ActionBar text color.\n int actionBarTitleId = Resources.getSystem().getIdentifier(\"action_bar_title\", \"id\", \"android\");\n if (actionBarTitleId > 0) {\n TextView title = (TextView) findViewById(actionBarTitleId);\n if (title != null) {\n title.setTextColor(0xFFFFFFFF);\n }\n\n }\n\n }", "title": "" }, { "docid": "067a377a54f45d6724e090103b756c84", "score": "0.6963562", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(getMenuResource(), menu);\n return true;\n }", "title": "" }, { "docid": "9999992bd69d1de9086d40a98838c762", "score": "0.6937242", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "db7a8a75ef8f28cd09a7f1212888ccd6", "score": "0.6936935", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actionbar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6918433", "text": "@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 }", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6918433", "text": "@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 }", "title": "" }, { "docid": "d5707c360ea0068ca4d8645e64ee4b95", "score": "0.69086516", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "d5707c360ea0068ca4d8645e64ee4b95", "score": "0.69086516", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "ef8ecbe14f61420c92900f8a8452ed7e", "score": "0.68986225", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\tgetMenuInflater().inflate(action.main.R.menu.main, menu);\n\treturn true;\n }", "title": "" }, { "docid": "44c6da9510802b6116c6f9c82299d515", "score": "0.6886009", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.action_bar, menu);\r\n\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "ec71150dd0e84cee2d50f3e1c3ab12ed", "score": "0.6861138", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_catalog, menu);\n //Add menu items to app bar\n return true;\n }", "title": "" }, { "docid": "5511c9caeb1c93c1c0c5e57c81863b63", "score": "0.68578374", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.items_menu, menu);\n return true;\n }", "title": "" }, { "docid": "04ab640527810a102d85f178ea3465b7", "score": "0.6847631", "text": "@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\n\t}", "title": "" }, { "docid": "84e0be5c8c2cfe97d591c7d3a63c6c55", "score": "0.68336844", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu,menu); //inflated inside\n return true;\n }", "title": "" }, { "docid": "6107003ed896231a517c8cc25dc2861f", "score": "0.68224907", "text": "@Override\n public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) {\n }", "title": "" }, { "docid": "8164d39ccc512d71aee3a64a1950ed18", "score": "0.68157804", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.home_actions, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "15aac40d7c88336ee84cd11e77a1eaff", "score": "0.6814148", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu., menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "4c53c75b44bd5a4a0f93b74101268e3c", "score": "0.6798337", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.mymenu, menu); //Menu Resource, Menu\n return true;\n\n }", "title": "" }, { "docid": "eceb17ab37f9c0a8bbcf75e420409f08", "score": "0.6793947", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "222b522af0da0702b112187c9a3aeeb0", "score": "0.679304", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menus, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "0334d208506acc9b17edcf6c3382b9d5", "score": "0.6784519", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater=getMenuInflater();\n inflater.inflate(R.menu.btn_action_bar, menu);\n return true;\n }", "title": "" }, { "docid": "7da95e37ad2d62cba864a43faa1ee4fb", "score": "0.6782248", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "5ff46e2f6c2c2eb368074888c611351f", "score": "0.67800653", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.chat_activity_menu, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "1bbbb510c03c5537c360df9e45b566de", "score": "0.6771418", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater inflater=getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a64096bb07d9e8a61775762fef9296f5", "score": "0.67585075", "text": "@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}", "title": "" }, { "docid": "3d464429d9a1365a830de19086902dc9", "score": "0.67577267", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.menu_main, menu);\n }", "title": "" }, { "docid": "d6a3951f27e73f5f9b7bc97ccbd7f647", "score": "0.67449486", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "2446c1e78c7f79de1cd32999fb372ab4", "score": "0.6740744", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.observation_list_fragment_actionbar_menu, menu);\n }", "title": "" }, { "docid": "53ea9164cd76d619e6d3f25518ff8788", "score": "0.6739262", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.mainanon, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "a7c957e78fcb5027a6a6c084890b0fdf", "score": "0.6735254", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n MenuInflater menuInflater = getMenuInflater();\r\n menuInflater.inflate(R.menu.menu, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "612450ad582522bf3cffe446fddaa34d", "score": "0.673461", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.menu_main, menu);\n \treturn true;\n }", "title": "" }, { "docid": "0a26b83929a9b2d2bc00d31636e4b0f2", "score": "0.67297524", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.timeline_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "882e43846b8e9a71f44fb28d3e094c1c", "score": "0.6729008", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.main, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67249954", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67249954", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67249954", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "c619adec870dd0596de07ac23e3ee955", "score": "0.6722796", "text": "@Override\r\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\r\n\t}", "title": "" }, { "docid": "294647044988c5c182564ffbf5925b4b", "score": "0.6722147", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n //inflate and set menu\n getMenuInflater().inflate(R.menu.appbar_menu, menu);\n mMenu = menu;\n //return status to super\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "59be0c1f5fef2830f0f177337325fa34", "score": "0.6718991", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "141d80080dd8c914ca57cbcfe785a633", "score": "0.67127085", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "03306c45c84ded07a955229b5b52ac61", "score": "0.6710527", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "947492d36950842efe7baae13025fe7b", "score": "0.670929", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater( );\n menuInflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "a49a02cab05fa8c241b72b42b141d3f9", "score": "0.67069745", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.main_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "fbfe5f7fb9486d8fc056ff922706085e", "score": "0.67061406", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "ad0ff12f4e608ac0baa250a876968b87", "score": "0.670345", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_lateral, menu);\n return true;\n }", "title": "" }, { "docid": "c835757dc692dc6e0f1756f6e238558c", "score": "0.67027915", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n\n }", "title": "" }, { "docid": "9dcf5d250c48ba48d0c33020e07c8ddc", "score": "0.67017335", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "90b147d6905fe9d27d67d16cf18bcd76", "score": "0.6699723", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n }", "title": "" }, { "docid": "90b147d6905fe9d27d67d16cf18bcd76", "score": "0.6699723", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n }", "title": "" }, { "docid": "04cb1356535758437ccdb81aab9b8c1d", "score": "0.66987044", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t super.onCreateOptionsMenu(menu);\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return true;\n\t}", "title": "" }, { "docid": "5f34fea2924d5d560f265548d5bbe33a", "score": "0.6695561", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n getMenuInflater().inflate(R.menu.main_menu, menu); // id of the menu resource that should be inflated\n return true;\n }", "title": "" }, { "docid": "6077c7e45a6b779986cae809b6a2968a", "score": "0.669459", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\r\n\t\tMenuInflater getmenu = getMenuInflater();\r\n\t\tgetmenu.inflate(R.menu.main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "a5018978c5d65e3b49abeaa59095a3d5", "score": "0.66890234", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "58b51e90d6d0a69b04c4cd210f2e31b4", "score": "0.6688956", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "6de24a4bbb29fd18c2ae5ed3c1bdc862", "score": "0.66861475", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) { //\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fac99c9b973d17f1c44720793929ce44", "score": "0.6686124", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b1631b737fc46ad9ef9203bd94535a01", "score": "0.6684225", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "50494e70f5acba989620c2fc83350746", "score": "0.66800135", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.imfo, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "2d8ccf7f205253ce7dfdde54c02aeef3", "score": "0.66747516", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "e1e1ba6e055593cb2a3e7bf612d2aad0", "score": "0.66729385", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n /* Use the inflater's inflate method to inflate our menu layout to this menu */\n inflater.inflate(R.menu.main, menu);\n /* Return true so that the menu is displayed in the Toolbar */\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "6cc5da99a32692d41c31cc394b4bd681", "score": "0.6670546", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "title": "" }, { "docid": "1ba5df7199b34d828223cbab369abb96", "score": "0.6669482", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n return true;\n }", "title": "" }, { "docid": "5cf4a8e3564a808f2f12b246f25e9e39", "score": "0.66688496", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.packing, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "4d1664cf9a7888f14c085ae45baa2399", "score": "0.6663264", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n this.menu = menu;\n inflater.inflate(R.menu.menu_main, menu);\n }", "title": "" }, { "docid": "548b0f34fff2926e0d075874fb23ddf2", "score": "0.66614157", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n\n menuInflater.inflate(R.menu.menu_main , menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "2048a935480d812df1931f3024445816", "score": "0.6660845", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.action_menu, menu);\n return true;\n }", "title": "" }, { "docid": "3f38937739076aac5295e8281e2fb28a", "score": "0.66599226", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.main, menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "9e90ee9aba69fb886ba0bf4523a44895", "score": "0.66593045", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n }", "title": "" }, { "docid": "9e90ee9aba69fb886ba0bf4523a44895", "score": "0.66593045", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n }", "title": "" }, { "docid": "9e90ee9aba69fb886ba0bf4523a44895", "score": "0.66593045", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n }", "title": "" }, { "docid": "50ac06b92882b095bae70fa355aa16ab", "score": "0.66585064", "text": "@Override\n\t\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.6657644", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.6657644", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "9a283eccc2fb94f0580cb8fe3eeb300b", "score": "0.6656615", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "title": "" }, { "docid": "7eccf47f93398e39934c6b9aa947fde9", "score": "0.66521645", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\n\t\t \n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.mainmenu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "87888f2cfbee91ca2589473a8279469e", "score": "0.66483665", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.shell, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "2910ce467607a76d119acea664f65da4", "score": "0.6645637", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.hider, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e4259acba5563ad673e43d4331c2b8de", "score": "0.66446674", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "224e55251563e1f9ce15fd983b14c2f7", "score": "0.6643467", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n\n\n }", "title": "" }, { "docid": "22179dbb3fe688ef98f695aa5e91e2de", "score": "0.66417086", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n Log.d(TAG, \"onCreateOptionsMenu()\");\n super.onCreateOptionsMenu(menu);\n final MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return true;\n }", "title": "" }, { "docid": "6cd25633c5fbbf09ddd3bb367c20803d", "score": "0.6638006", "text": "@Override\r\n\t\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\t\t\treturn true;\r\n\t\t\t}", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.66376275", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.66376275", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.66376275", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7dba252190a8c9fd5d2429ccc206b7a5", "score": "0.66357076", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.activity_categories2, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6634786", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6634786", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "587b307e01b0570185be5bc7572212e5", "score": "0.6629343", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.body, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0ee54681f0ee136537e7fab06dc2c9f8", "score": "0.6629275", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n// Inflating the menu.\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.activity_main, menu);\n return true;\n }", "title": "" }, { "docid": "277058fcbb6c657f51a16add64c659d8", "score": "0.6627326", "text": "@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}", "title": "" }, { "docid": "62127e30ca78840646267920dfe55cc6", "score": "0.66270846", "text": "private void makeMenuActions() {\n IActionBars actionBars = getViewSite().getActionBars();\n \n // Local menu items\n IMenuManager manager = actionBars.getMenuManager();\n \n MenuManager prefs = new MenuManager(Messages.LDVisualiserView_11);\n manager.add(prefs);\n prefs.add(fActionShowExplanation);\n \n MenuManager layoutTypeMenu = new MenuManager(Messages.LDVisualiserView_12);\n manager.add(layoutTypeMenu);\n \n layoutTypeMenu.add(fActionHorizontalTreeLayout);\n layoutTypeMenu.add(fActionVerticalTreeLayout);\n \n manager.add(new Separator());\n manager.add(fToolbarZoomContributionViewItem);\n }", "title": "" }, { "docid": "bc2c422c1ff45e5139c86c1c115a7b9a", "score": "0.66257614", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.food, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "dd9e9057af222f86a12ee9f824b38b84", "score": "0.6624396", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\tif(type.equals(\"MYorganizer\")){\n\t\t\tmenu.clear();\n\t\t\tgetMenuInflater().inflate(R.menu.most, menu);\n\t\t}\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "219062591172ce60983d7b7b655a4f88", "score": "0.66217464", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.basket_menu, menu);\r\n return true;\r\n }", "title": "" } ]
98d1bffefd2cf851394d16c878ae7e89
Sets work days (it does not set anything else, like hasHoliday, etc.)
[ { "docid": "35b1ee397072482b6dff52f326bb3f2e", "score": "0.7397599", "text": "public void setWorkDays(String work) {\n\t\tusedDays.clear();\n\t\tusedDays = parseDaysFromString(work);\n\t}", "title": "" } ]
[ { "docid": "b7a0ce789c6c233725555dd772059e39", "score": "0.68746215", "text": "void SetWorkingDays(String username, boolean[] workingDays) throws IllegalArgumentException;", "title": "" }, { "docid": "e5c0ce7f3547e5a11d9a3293493ddd56", "score": "0.67847943", "text": "private void buildDays()\n {\n System.arraycopy(shiftOne.workSchedule(), 0, days, 0, 7); //first week\n System.arraycopy(shiftTwo.workSchedule(), 0, days, 7, 7); //second week\n }", "title": "" }, { "docid": "8a601e1c1cff1c1c99f00071016436f4", "score": "0.6576232", "text": "void setDay( Day dayOfTheWeek );", "title": "" }, { "docid": "87f3d0ec14ae423bdbc6a519248b61be", "score": "0.6509609", "text": "public WorkDays() {\r\n workDays = new ArrayList<>();\r\n }", "title": "" }, { "docid": "1b74478ece09d72927d62bf3f03cdce6", "score": "0.64296097", "text": "public void setWorkingDays(List<Integer> tempList) {\r\n List<CompanyOrderHasDaysOfWeek> listCompanyOrderHasDaysOfWeek = companyOrderWorkingDaysFacade.getCompanyOrderWorkingDaysByCompanyOrderId(orderId);\r\n workingDays = new ArrayList<>();\r\n for (CompanyOrderHasDaysOfWeek tempCompanyOrderWorkingDays : listCompanyOrderHasDaysOfWeek) {\r\n workingDays.add(tempCompanyOrderWorkingDays.getDaysOfWeek().getId());\r\n }\r\n\r\n }", "title": "" }, { "docid": "022dcd6f8b7692e41a7888ad88c6084c", "score": "0.6287868", "text": "public void setDays(String days)\n\t{\n\t\twDays = days;\n\t}", "title": "" }, { "docid": "c1ac9754d254d5b138a1048e38bd9583", "score": "0.6260475", "text": "public void scheduleWorkDay(String day) {\n\t\ttry {\n\t\t\tworkScheduleDao.scheduleWorkDay(day);\n\t\t\tLOG.info(\"Work days edited\");\n\t\t} catch (Exception e) {\n\t\t\tlogError(e);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "101fd52a895f53791897c219f7a413de", "score": "0.6237643", "text": "public Set<Integer> getWorkDays() {\n\t\treturn usedDays;\n\t}", "title": "" }, { "docid": "c823fe4f8d98c32b9de60f60ca79b173", "score": "0.618902", "text": "public Workdays createWorkdaysInstance();", "title": "" }, { "docid": "91c91fc86f374096098bd5982cc4678f", "score": "0.6165379", "text": "@Override\r\n\tpublic String setWorkingHours(String dayOfWeek, String startTime, String endTime) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ce29d378b7ed6b21f2b557d8f030410a", "score": "0.6161963", "text": "void setDayOfWeek(int dayOfWeek);", "title": "" }, { "docid": "b8637a5e029fed964811083f30e85ec0", "score": "0.6112153", "text": "public void setDay(int index, Day toSet) {\n scheduleList.set(index, toSet);\n }", "title": "" }, { "docid": "d4148a8a73d178898f6227c7ef367dac", "score": "0.60029966", "text": "public void setWorkDate(String workDate) {\n this.workDate = workDate;\n }", "title": "" }, { "docid": "ce15322353e2cf5ae7dd160af61c34b1", "score": "0.5949482", "text": "public static void setDaysOfCompetition (int days)\n {\n WEEKS_OF_COMPETITION =\n (int) (Math.ceil(((float) days) / ((float) DAYS_OF_WEEK)));\n DAYS_OF_COMPETITION = WEEKS_OF_COMPETITION * DAYS_OF_WEEK;\n\n // System.out.println(\"Days:\" + DAYS_OF_COMPETITION + \" Weeks:\" +\n // WEEKS_OF_COMPETITION);\n }", "title": "" }, { "docid": "1849e3980ce67ec8cf794523ab50a4e2", "score": "0.59357584", "text": "public void setWeekday(int day){\n weekday = day;\n }", "title": "" }, { "docid": "0cee7aec0c93c218b1de8d2b66f2aaef", "score": "0.59160244", "text": "public void addDay(int days)\r\n/* 209: */ {\r\n/* 210:395 */ setDateTime(0, 0, days, 0, 0, 0);\r\n/* 211: */ }", "title": "" }, { "docid": "392ef6e242108fa616ba1fe843ed9ef1", "score": "0.5867282", "text": "public void setWorkingHours(String dayOfWeek, String startTime, String endTime)\r\n\t\t\tthrows InvalidTimeException, InvalidDayException {\r\n\t\ttry {\r\n\t\t\t_dailyRosters.get(Days.valueOf(dayOfWeek)).setWorkingHours(startTime, endTime);\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tthrow new InvalidDayException(\"ERROR: Day provided: \" + dayOfWeek + \" is invalid\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "910f1958c7fb3d640580b5eb6f6dc957", "score": "0.5865031", "text": "@Override\n\tpublic void setDay(int day) {\n\t\t_schedule.setDay(day);\n\t}", "title": "" }, { "docid": "9b202a79aaba23cd999dd2f642a5113c", "score": "0.5843467", "text": "public void setDay( int day) {\r\n\t\tif (day < 1 || day > 31) {\r\n\t\t\tthrow new IllegalArgumentException(\"for \" + day);\r\n\t\t}\r\n\t\tthis.day = day;\r\n\t\tthis.resetCalendar = true;\r\n\t}", "title": "" }, { "docid": "152c055542c10d52364c46e3bb0ecc9d", "score": "0.58339345", "text": "public void setDay(int day)\r\n/* 427: */ {\r\n/* 428:723 */ this.day = day;\r\n/* 429: */ }", "title": "" }, { "docid": "68f96369c22ac57833d01a23b8e75617", "score": "0.58328456", "text": "public void setScheduleList(int numDays) {\n int currSize = scheduleList.size();\n\n if (numDays > currSize) {\n for (int i = 0; i < (numDays - currSize); i++) {\n scheduleList.add(new Day());\n }\n } else {\n for (int j = 0; j < (currSize - numDays); j++) {\n scheduleList.remove(scheduleList.size() - 1);\n }\n }\n\n for (int k = 0; k < scheduleList.size(); k++) {\n scheduleList.get(k).resetDueAssignments();\n scheduleList.get(k).resetAllocatedAssignments();\n }\n }", "title": "" }, { "docid": "50e7f5f8c87153281b6a91c8b25a5898", "score": "0.5816244", "text": "private WeekDays(int i) {\n\t\tstart = i;\n\t}", "title": "" }, { "docid": "850d91d64e2f8da73cc30961b2426879", "score": "0.57417893", "text": "public float Get_WORK_DAY() {\n\t\treturn _workday;\n\t}", "title": "" }, { "docid": "7d2621942770f9f2e64074d59ab606e3", "score": "0.5729006", "text": "public void setDays(Short days) {\n this.days = days;\n }", "title": "" }, { "docid": "5ab74816f5a7abe4fcb4a60bc0d24dbe", "score": "0.57118607", "text": "public void calculateForeseenWorkHours() {\n Calendar dt = Calendar.getInstance();\n dt.setTime(this.startDate);\n\n int numberOfWorkDays = 0;\n\n while (dt.getTime().before(this.foreseenEndDate)) {\n int dayOfWeek = dt.get(Calendar.DAY_OF_WEEK);\n if (dayOfWeek != Calendar.SATURDAY\n && dayOfWeek != Calendar.SUNDAY) {\n numberOfWorkDays++;\n }\n dt.add(Calendar.DAY_OF_MONTH, 1);\n }\n\n this.foreseenWorkHours = (numberOfWorkDays * WORKDAY_DURATION_IN_HOURS) * owners.size();\n }", "title": "" }, { "docid": "2d3905a522f0b1da29e27b205f4348bd", "score": "0.5708119", "text": "private void setDay(int day) {\n\t\tthis.day = day;\n\t}", "title": "" }, { "docid": "fcdb29cd24a89d25bac6d35f86ee3d83", "score": "0.57019335", "text": "public void setDaysInGameWeek(int daysInGameWeek)\r\n {\r\n this.daysInGameWeek = daysInGameWeek;\r\n }", "title": "" }, { "docid": "0e9c9baa0a123a6dc100c67b12ea8327", "score": "0.5686803", "text": "public static void daySet (Date oDate, int iDay) {\r\n\t\r\n\t\t/////////////////////////////////\r\n\t\t// Declarations:\r\n\t\t/////////////////////////////////\r\n\t\t\r\n\t\tCalendar\tcalendar\t= null;\r\n\t\r\n\t\tlong\t\tlDateValue;\r\n\t\r\n\t\t\r\n\t\t/////////////////////////////////\r\n\t\t// Code:\r\n\t\t/////////////////////////////////\r\n\t\r\n\t\tcalendar = getCalendar();\r\n\t\t\r\n\t\tcalendar.setTime\t(oDate);\r\n\t\tcalendar.set\t\t(Calendar.DATE, iDay);\r\n\t\r\n\t\tlDateValue = calendar.getTime().getTime();\r\n\t\r\n\t\toDate.setTime (lDateValue);\r\n\t\r\n\t}", "title": "" }, { "docid": "de6724051ac270dcf5afaed8bcec7d8d", "score": "0.566991", "text": "@Override\n\tvoid calculateWorkingHours() {\n\t\t\n\t}", "title": "" }, { "docid": "3c5d572dcbe45add953f19d6323ed9bc", "score": "0.56679845", "text": "@Test\n public void testSetDay() {\n System.out.println(\"setDay\");\n int day = dayForSet;\n instance.setDay(day);\n assertEquals(dayForSet, instance.getDay());\n }", "title": "" }, { "docid": "9a31cdd632b4ab26b6071c48735f6602", "score": "0.56526816", "text": "public void setNumdays( int numd )\n {\n m_NumDays = numd;\n }", "title": "" }, { "docid": "6b44dbab760cefa0b004ce75a095c0a3", "score": "0.56468785", "text": "@Override\r\n\tpublic void adjustDay(final int n);", "title": "" }, { "docid": "4a3fe22826383e91fa5df3b50a4906b1", "score": "0.5614374", "text": "private void updateCalendar(){\n calendarDays.set(Calendar.DAY_OF_MONTH, 1);\n int monthBeginningCell = calendarDays.get(Calendar.DAY_OF_WEEK) - 1;\n // move calendar backwards to the beginning of the week\n calendarDays.add(Calendar.DAY_OF_MONTH, -monthBeginningCell);\n // fill cells (42 days calendar as per our business logic)\n cells.clear();\n while (cells.size() < DAYS_COUNT)\n {\n cells.add(calendarDays.getTime());\n calendarDays.add(Calendar.DAY_OF_MONTH, 1);\n }\n }", "title": "" }, { "docid": "8c0e98f3ffedf7a8696b5a229a6a13bb", "score": "0.5573273", "text": "public void setHoursWorked(double hoursWorked){\n this.hoursWorked = hoursWorked;\n }", "title": "" }, { "docid": "ef142f1a8ca6ed74fb2ea3b86040b25a", "score": "0.55471426", "text": "public void setDay(int day) {\n this.day = day;\n }", "title": "" }, { "docid": "d91fb64874d414086708296605dfabae", "score": "0.5516714", "text": "public void setDay(int day) {\r\n\t\tthis.day = day;\r\n\t}", "title": "" }, { "docid": "f0235d47487731dfd3edec9c8785c9b4", "score": "0.55093324", "text": "void changeData(ArrayList<CalendarDay> days) {\n CalendarDiffUtilCallback calendarDiffUtilCallback = new CalendarDiffUtilCallback(this.days, days);\n DiffUtil.DiffResult diffResult = DiffUtil.calculateDiff(calendarDiffUtilCallback, false);\n this.days = days;\n// diffResult.dete\n diffResult.dispatchUpdatesTo(this);\n }", "title": "" }, { "docid": "7ed92fe6d73479b25a152d9414bed063", "score": "0.5500412", "text": "public void setDay(Date day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "7ed92fe6d73479b25a152d9414bed063", "score": "0.5500412", "text": "public void setDay(Date day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "7ed92fe6d73479b25a152d9414bed063", "score": "0.5500412", "text": "public void setDay(Date day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "7ed92fe6d73479b25a152d9414bed063", "score": "0.5500412", "text": "public void setDay(Date day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "7ed92fe6d73479b25a152d9414bed063", "score": "0.5500412", "text": "public void setDay(Date day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "7ed92fe6d73479b25a152d9414bed063", "score": "0.5500412", "text": "public void setDay(Date day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "7ed92fe6d73479b25a152d9414bed063", "score": "0.5500412", "text": "public void setDay(Date day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "541eb8b2b44de9254ba66ce18b7feafd", "score": "0.54572093", "text": "private static void setDates(final JSCalendarObject master,\n final JSOverride val,\n final BwEvent ev,\n final BwDateTime recurrenceId) {\n /*\n We need the following - these values may come from overrides)\n * date or date-time - from showWithoutTimes flag\n * start timezone (if not date)\n * ending timezone (if not date) - from end location\n * start - if override from recurrence id or overridden start\n * duration - possibly overridden - for event\n * due - possibly overridden - for task\n\n If end timezone is not the same as start then we have to use a\n DTEND with timezone, otherwise duration will do\n */\n final JSCalendarObject obj;\n\n if (val == null) {\n obj = master;\n } else {\n obj = val;\n }\n\n // date or date-time - from showWithoutTimes flag\n final var dateOnly =\n obj.getBooleanProperty(JSPropertyNames.showWithoutTime);\n // start timezone\n final String startTimezoneId;\n final String endTimezoneId;\n\n if (dateOnly) {\n startTimezoneId = null;\n endTimezoneId = null;\n } else {\n startTimezoneId = obj.getStringProperty(JSPropertyNames.timeZone);\n endTimezoneId = null; // from location\n }\n\n final String start;\n\n if ((val != null) &&\n (val.hasProperty(JSPropertyNames.start))) {\n start = val.getStringProperty(JSPropertyNames.start);\n } else {\n start = null;\n }\n\n if (start == null) {\n final DtStart st;\n if (recurrenceId != null) {\n // start didn't come from an override.\n // Get it from the recurrence id\n st = recurrenceId.makeDtStart();\n } else {\n// st = icalDate(master.getStringProperty(JSPropertyNames.start),\n // dateOnly);\n }\n }\n\n }", "title": "" }, { "docid": "0baead31153f0d207246ffa80f140ff2", "score": "0.5451206", "text": "public void setDay(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n \r\n if (param==java.lang.Integer.MIN_VALUE) {\r\n localDayTracker = false;\r\n \r\n } else {\r\n localDayTracker = true;\r\n }\r\n \r\n this.localDay=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "8b3682414f06121f7646931ee60af3be", "score": "0.54442805", "text": "void func3(){\n //init calendar\n Calendar calendar = new Calendar();\n //add holidays\n for (int i = 1; i < 11; i++) {\n Calendar.Data data = calendar.new Data(2020, i, i*3);\n data.setHoliday(true);\n calendar.addHoliday(data);\n }\n //print data\n calendar.printDay(2020, 2, 6);\n calendar.printDay(2020, 4, 29);\n }", "title": "" }, { "docid": "76af9a90a403516ccb0337c6fd024dc4", "score": "0.5440264", "text": "public synchronized void setIrrigationDays( Set<Day> newDays ) {\n\n irrigationDays = new HashSet<Day>( newDays );\n\n // try to record the new days in persistent store\n StringBuffer dayBuffer = new StringBuffer();\n for ( Day day : irrigationDays )\n switch ( day.toInt() ) {\n case 0 : dayBuffer.append( \"M\" ); break;\n case 1 : dayBuffer.append( \"Tu\" ); break;\n case 2 : dayBuffer.append( \"W\" ); break;\n case 3 : dayBuffer.append( \"Th\" ); break;\n case 4 : dayBuffer.append( \"F\" ); break;\n case 5 : dayBuffer.append( \"Sa\" ); break;\n case 6 : dayBuffer.append( \"Su\" ); break;\n }\n\n // record the new irrigation days in persistent store\n storeData( IRRIGATION_DAYS_TAG, dayBuffer.toString() );\n\n }", "title": "" }, { "docid": "0fa8b13ae951567c055c37ec38c81af9", "score": "0.5429291", "text": "public WorkingDayHours(RoundedHour start, RoundedHour end) {\n\t\tstartingHour = start;\n\t\tendingHour = end;\n\t}", "title": "" }, { "docid": "1b91bab3cb079aabc25599a9e9b487d0", "score": "0.5428121", "text": "public void setHoursWorked(int inHoursWorked)\r\n {\r\n if (inHoursWorked > 0)\r\n hoursWorked = inHoursWorked;\r\n }", "title": "" }, { "docid": "e947ada2a3a6ccdd2cd5024f54a20edc", "score": "0.542684", "text": "public void setWeekDay(DayOfWeek weekDay) {\n this.weekDay = weekDay;\n }", "title": "" }, { "docid": "fdb9e160ed99de7addaff20b886e4a95", "score": "0.54183733", "text": "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "title": "" }, { "docid": "fdb9e160ed99de7addaff20b886e4a95", "score": "0.54183733", "text": "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "title": "" }, { "docid": "fdb9e160ed99de7addaff20b886e4a95", "score": "0.54183733", "text": "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "title": "" }, { "docid": "1737f14c5a1f3cb3809a735521d36f7e", "score": "0.53907573", "text": "public void setHours(double hours)\n {\n hoursWorked = hours;\n }", "title": "" }, { "docid": "05d35bca583358b8a1509cad2bc0a6d5", "score": "0.53833383", "text": "public void setDayTime(long t);", "title": "" }, { "docid": "98d3829ea5fdadd6c21aa58877918d4b", "score": "0.53801715", "text": "public void setDay(int day) {\n\t\tthis.day = day;\n\n\t}", "title": "" }, { "docid": "a733632e95abc9e347c37e236f4baefb", "score": "0.5379342", "text": "private void appendWeekDays(List<CalendarDay> calendarDays)\n {\n appendFirstWeekDays(calendarDays, Day.valueOf(calendarDays.get(0).getDate().toUpperCase()).getDay()); \t\n //adding last week data.\n \twhile(calendarDays.size() < 42)\n \t{\n \t\tCalendarDay calendarDay = new CalendarDay();\n calendarDay.setDisplay(false);\n \t\tcalendarDays.add(calendarDay);\n \t\t\n \t}\n \t//TODO look whether this unique id is required or not.\n \tfor(int id=0; id < calendarDays.size();id++)\n \t{\n \t\tcalendarDays.get(id).setId(String.valueOf(id));\n \t}\n \t\n }", "title": "" }, { "docid": "7898b06b1b9509b49928252223580951", "score": "0.5371951", "text": "private void updateWithDateRange(Rule rule, Week week)\n throws OpeningHoursEvaluationException {\n if (rule.getDates() != null) {\n DateManager dateManager = new DateManager();\n for (DateRange dateRange : rule.getDates()) {\n List<List<LocalDate>> restrictions\n = dateManager.processDateRange(dateRange, week);\n resProcess(restrictions, rule, week, dateRange);\n }\n } else {\n week.build(rule);\n }\n }", "title": "" }, { "docid": "b60b467329e7824c0017c74e693e3563", "score": "0.5369626", "text": "public void setDay(int dayToSet)\n {\n if (isValid(dayToSet,this._month,this._year))\n {\n this._day = dayToSet;\n }\n }", "title": "" }, { "docid": "0ecde91616f8874a5665468dd5beb926", "score": "0.53662705", "text": "@Test\n public void testIsWorkingDay() {\n System.out.println(\"isWorkingDay\");\n Time instance = new Time(2009, 1, 4);\n assertFalse(instance.getTime().toString(), instance.isWorkingDay());\n assertTrue(instance.getTime().toString(), instance.increaseDate().isWorkingDay());\n assertTrue(instance.getTime().toString(), instance.increaseDate().isWorkingDay());\n assertTrue(instance.getTime().toString(), instance.increaseDate().isWorkingDay());\n assertTrue(instance.getTime().toString(), instance.increaseDate().isWorkingDay());\n assertTrue(instance.getTime().toString(), instance.increaseDate().isWorkingDay());\n assertFalse(instance.getTime().toString(), instance.increaseDate().isWorkingDay());\n }", "title": "" }, { "docid": "82af70ce6fa6570795090836a6c4e7ca", "score": "0.5353191", "text": "public void setWorkingHour(int workingHour)\n { \n this.workingHour=workingHour;\n }", "title": "" }, { "docid": "c86aa1f3f44c6fb60cefbea5536a3dc6", "score": "0.5349994", "text": "public void performWorkDay (int dayNum)\r\n {\r\n this.gc.begin ();\r\n }", "title": "" }, { "docid": "d8b007696f20220ecd85dc8d2ad7aea3", "score": "0.5345565", "text": "void setPeriodToDish(long dish_id, Date start_date, Date end_date, Time start_time, Time end_time);", "title": "" }, { "docid": "ed51f41df0af45ae4e9b729367a1a0ae", "score": "0.53427166", "text": "public WorkingDayHours() {\n\t\tstartingHour = null;\n\t\tendingHour = null;\n\t}", "title": "" }, { "docid": "b0dff98067a55c8074115f38d0a05d5e", "score": "0.533945", "text": "public void setEstablishDate(Date establishDate)\n/* */ {\n/* 366 */ this.establishDate = establishDate;\n/* */ }", "title": "" }, { "docid": "e16a2259762d9c5a613251ef6ef093ef", "score": "0.5329205", "text": "public DayAtWork(Day day, int howManyHour, int startHour) {\n mDay = day;\n mHowManyHour = howManyHour;\n mStartHour = startHour;\n }", "title": "" }, { "docid": "b70cac19ba0f4fc89cbc77bcafa17b56", "score": "0.53055876", "text": "public void setDay (String day) {\n\t\tsetDay(stringToDayArr(day));\n\t}", "title": "" }, { "docid": "bd3cabc1e71c0e74662c8fe55e26143d", "score": "0.5301563", "text": "public static void setDayNight() {\n\t\tif (Animal.timeOfDay == 1) {\n\t\t\tAnimal.timeOfDay = 2;\n\t\t} else {\n\t\t\tAnimal.timeOfDay = 1;\n\t\t}\n\t}", "title": "" }, { "docid": "1738decc33034c10f08156055a8702ee", "score": "0.5300567", "text": "public void setActivitiesByDay(ArrayList<Activity> acts, Day day) {\n routine.setActivitiesByDay(acts,day);\n }", "title": "" }, { "docid": "98e12e53f40132e7c5c62db4b67f00b2", "score": "0.5270759", "text": "public DayAtWork(Day day, int howManyHour) {\n mDay = day;\n mHowManyHour = howManyHour;\n mStartHour = 8;\n }", "title": "" }, { "docid": "bc1a4eb214e1fb8f52f204f99d632b6c", "score": "0.5268936", "text": "@Override\n\tpublic void setWorkingSets(IWorkingSet[] sets) {\n\n\t}", "title": "" }, { "docid": "db2ad4bc154cf4ca2b5c98d8e148bef3", "score": "0.52654123", "text": "public void fixup()\n {\n // Shifts day of week ranges by one, for presentation of weekday (1..7) in Java's Calendar\n getModelFor(DAY_OF_WEEK).shiftBy(1);\n\n // Shifts months ranges by one, for presentation of month (0..11) in Java's Calendar\n //getModelFor(MONTH).shiftBy(-1);\n }", "title": "" }, { "docid": "97f8fb1da032331bb2911cf9b6b11688", "score": "0.5259698", "text": "public void setWorkingHour(int newWorkingHour)\n {\n this.workingHour = newWorkingHour;\n }", "title": "" }, { "docid": "3733119a23f4f289b81c4d0915222ed2", "score": "0.5231508", "text": "public static Calendar weekEnd(Calendar tw, int startDay) {\n String cipherName435 = \"DES\";\n\t\ttry{\n\t\t\tandroid.util.Log.d(\"cipherName-435\", javax.crypto.Cipher.getInstance(cipherName435).getAlgorithm());\n\t\t}catch(java.security.NoSuchAlgorithmException|javax.crypto.NoSuchPaddingException f){\n\t\t}\n\t\tCalendar ws = (Calendar) tw.clone();\n ws.setFirstDayOfWeek(startDay);\n // START ANDROID BUG WORKAROUND\n // Android has a broken Calendar class, so the if-statement wrapping\n // the following set() is necessary to keep Android from incorrectly\n // changing the date:\n int adjustedDay = ws.get(Calendar.DAY_OF_WEEK);\n ws.add(Calendar.DATE, -((7 - (startDay - adjustedDay)) % 7));\n // The above code _should_ be:\n // ws.set(Calendar.DAY_OF_WEEK, startDay);\n // END ANDROID BUG WORKAROUND\n ws.add(Calendar.DAY_OF_WEEK, 6);\n ws.set(Calendar.HOUR_OF_DAY, ws.getMaximum(Calendar.HOUR_OF_DAY));\n ws.set(Calendar.MINUTE, ws.getMaximum(Calendar.MINUTE));\n ws.set(Calendar.SECOND, ws.getMaximum(Calendar.SECOND));\n ws.set(Calendar.MILLISECOND, ws.getMaximum(Calendar.MILLISECOND));\n return ws;\n }", "title": "" }, { "docid": "23a0fe01e81c6cbb626dcbdac1e45add", "score": "0.5221291", "text": "protected void ruleWeeklyOvertimeScheduleExtEveryDay(WBData wbData,\n String hourSetDescription, String dayWeekStarts,\n String workDetailTimeCodes, String premiumTimeCodesCounted, String eligibleHourTypes,\n String discountTimeCodes, String premiumTimeCodeInserted,\n String hourTypeForOvertimeWorkDetails, boolean assignBetterRate) throws Exception {\n\n // if off day, do as regular weekly ot\n // *** off days also count as unscheduled time\n /*\n if (!wbData.getRuleData().getEmployeeScheduleData().isEmployeeScheduledActual()) {\n ruleWeeklyOvertime(wbData, hourSetDescription, dayWeekStarts,\n workDetailTimeCodes, premiumTimeCodesCounted,\n eligibleHourTypes, discountTimeCodes,\n premiumTimeCodeInserted , hourTypeForOvertimeWorkDetails,\n assignBetterRate\n );\n return;\n }\n */\n int premiumMinutes = 0, discountMinutes = 0;\n Date workSummaryDate = wbData.getRuleData().getWorkSummary().getWrksWorkDate();\n Date dateWeekStarts = DateHelper.nextDay(DateHelper.addDays(workSummaryDate, -7), dayWeekStarts);\n Date dateWeekEnds = DateHelper.addDays(dateWeekStarts, 6);\n\n Parameters parametersForGenericOvertimeRule = new Parameters();\n DateFormat dateFormat = new SimpleDateFormat(WBData.DATE_FORMAT_STRING);\n\n // Include the work premium minutes if premiumTimeCodesCounted is provided\n if (premiumTimeCodesCounted != null) {\n premiumMinutes = wbData.getMinutesWorkDetailPremiumRange(dateWeekStarts, dateWeekEnds, null, null, premiumTimeCodesCounted, true, eligibleHourTypes, true, \"P\" , false);\n }\n\n if (discountTimeCodes != null) {\n final Date THE_DISTANT_PAST = new java.util.GregorianCalendar(1900, 0, 1).getTime();\n final Date THE_DISTANT_FUTURE = new java.util.GregorianCalendar(3000, 0, 1).getTime();\n discountMinutes = wbData.getWorkedMinutes(wbData.getRuleData().getWorkSummary().getWrksId(), dateWeekStarts, dateWeekEnds, THE_DISTANT_PAST, THE_DISTANT_FUTURE, true, discountTimeCodes, null);\n }\n\n if (wbData.getRuleData().getWorkDetailCount() == 0) return;\n Date minStartTime = wbData.getRuleData().getWorkDetail(0).getWrkdStartTime();\n Date maxEndTime = wbData.getRuleData().getWorkDetail(wbData.getRuleData().getWorkDetailCount() - 1).getWrkdEndTime();\n\n\n int minutesInsideScheduleRange[] = new int[7];\t//array to hold the entire week's scheduled minutes\n int minutesWorkDetailRange[] = new int[7];\t\t//array to hold the entire week's worked minutes\n int seedMinutesInShift[] = new int[7];\t\t\t//array to hold the entire week's scheduled shift seeds\n int count = 0;\n int totalMinutesInsideScheduleRange = 0;\n int totalMinutesWorkDetailRange = 0;\n int todayIndex = 0;\n\n for (Date date = dateWeekStarts; date.compareTo(dateWeekEnds) <= 0;date = DateHelper.addDays(date, 1)) {\n\n minutesInsideScheduleRange[count] = wbData.\n getMinutesWorkDetailRange(date, date,\n wbData.getEmployeeScheduleData(date).getEmpskdActStartTime(),\n wbData.getEmployeeScheduleData(date).getEmpskdActEndTime(),\n workDetailTimeCodes, true,\n eligibleHourTypes, true);\n minutesWorkDetailRange[count] = wbData.\n getMinutesWorkDetailRange(date, date, null, null,\n workDetailTimeCodes, true,\n eligibleHourTypes, true);\n totalMinutesInsideScheduleRange += minutesInsideScheduleRange[count];\n totalMinutesWorkDetailRange += minutesWorkDetailRange[count];\n\n if (count == 0)\n seedMinutesInShift[count] = premiumMinutes + discountMinutes;\n else\n seedMinutesInShift[count] = seedMinutesInShift[count-1] + minutesInsideScheduleRange[count-1];\n\n\n //figure out the current workday index in the week\n if (date.compareTo(workSummaryDate) == 0)\n todayIndex = count;\n\n count++;\n }\n\n int minutesOutsideOfShiftUsed = 0;\n int seedBefore = premiumMinutes + discountMinutes;\n int seedAfter = premiumMinutes + discountMinutes;\n //allocate the seed minutes of TODAY's before and after shifts appropriately\n for (int i=0;i<7;i++){\n if (i < todayIndex){\n minutesOutsideOfShiftUsed += minutesWorkDetailRange[i] - minutesInsideScheduleRange[i];\n }\n else if (i == todayIndex) {\n seedBefore += totalMinutesInsideScheduleRange + minutesOutsideOfShiftUsed;\n seedAfter += totalMinutesInsideScheduleRange + minutesOutsideOfShiftUsed +\n wbData.getMinutesWorkDetail(minStartTime, wbData.getRuleData().getEmployeeScheduleData().getEmpskdActStartTime(), workDetailTimeCodes, true, eligibleHourTypes, true, null);\n }\n }\n\n // in shift\n if (wbData.getRuleData().getEmployeeScheduleData().isEmployeeScheduledActual()) {\n parametersForGenericOvertimeRule.addParameter(\"HourSetDescription\",\n hourSetDescription);\n parametersForGenericOvertimeRule.addParameter(\n \"AdditionalMinutesWorked\",\n String.valueOf(seedMinutesInShift[todayIndex]));\n parametersForGenericOvertimeRule.addParameter(\n \"StartTimeWithinShift\",\n dateFormat.format(wbData.getRuleData().getEmployeeScheduleData().\n getEmpskdActStartTime()));\n parametersForGenericOvertimeRule.addParameter(\"EndTimeWithinShift\",\n dateFormat.format(wbData.getRuleData().getEmployeeScheduleData().\n getEmpskdActEndTime()));\n parametersForGenericOvertimeRule.addParameter(\"EligibleTimeCodes\",\n workDetailTimeCodes);\n parametersForGenericOvertimeRule.addParameter(\n \"AreTimeCodesInclusive\", \"true\");\n parametersForGenericOvertimeRule.addParameter(\"EligibleHourTypes\",\n eligibleHourTypes);\n parametersForGenericOvertimeRule.addParameter(\"AddPremiumRecord\",\n \"\" + (premiumTimeCodeInserted != null));\n parametersForGenericOvertimeRule.addParameter(\"PremiumTimeCode\",\n premiumTimeCodeInserted);\n parametersForGenericOvertimeRule.addParameter(\"SkdZoneStartDate\",\n dateFormat.format(dateWeekStarts));\n parametersForGenericOvertimeRule.addParameter(\"SkdZoneEndDate\",\n dateFormat.format(DateHelper.addDays(dateWeekStarts, 6)));\n parametersForGenericOvertimeRule.addParameter(\n \"HourTypeForOvertimeWorkDetails\",\n hourTypeForOvertimeWorkDetails);\n super.execute(wbData, parametersForGenericOvertimeRule);\n\n // before shift\n parametersForGenericOvertimeRule = new Parameters();\n parametersForGenericOvertimeRule.addParameter(\"HourSetDescription\",\n hourSetDescription);\n parametersForGenericOvertimeRule.addParameter(\n \"StartTimeWithinShift\", dateFormat.format(minStartTime));\n parametersForGenericOvertimeRule.addParameter(\"EndTimeWithinShift\",\n dateFormat.format(wbData.getRuleData().getEmployeeScheduleData().\n getEmpskdActStartTime()));\n parametersForGenericOvertimeRule.addParameter(\n \"AdditionalMinutesWorked\", String.valueOf(seedBefore));\n parametersForGenericOvertimeRule.addParameter(\"EligibleTimeCodes\",\n workDetailTimeCodes);\n parametersForGenericOvertimeRule.addParameter(\n \"AreTimeCodesInclusive\", \"true\");\n parametersForGenericOvertimeRule.addParameter(\"EligibleHourTypes\",\n eligibleHourTypes);\n parametersForGenericOvertimeRule.addParameter(\"PremiumTimeCode\",\n premiumTimeCodeInserted);\n parametersForGenericOvertimeRule.addParameter(\"SkdZoneStartDate\",\n dateFormat.format(dateWeekStarts));\n parametersForGenericOvertimeRule.addParameter(\"SkdZoneEndDate\",\n dateFormat.format(dateWeekEnds));\n parametersForGenericOvertimeRule.addParameter(\n \"HourTypeForOvertimeWorkDetails\",\n hourTypeForOvertimeWorkDetails);\n super.execute(wbData, parametersForGenericOvertimeRule);\n\n // after shift\n parametersForGenericOvertimeRule = new Parameters();\n parametersForGenericOvertimeRule.addParameter(\"HourSetDescription\",\n hourSetDescription);\n parametersForGenericOvertimeRule.addParameter(\n \"StartTimeWithinShift\",\n dateFormat.format(wbData.getRuleData().getEmployeeScheduleData().\n getEmpskdActEndTime()));\n parametersForGenericOvertimeRule.addParameter(\"EndTimeWithinShift\",\n dateFormat.format(maxEndTime));\n parametersForGenericOvertimeRule.addParameter(\n \"AdditionalMinutesWorked\", String.valueOf(seedAfter));\n parametersForGenericOvertimeRule.addParameter(\"EligibleTimeCodes\",\n workDetailTimeCodes);\n parametersForGenericOvertimeRule.addParameter(\n \"AreTimeCodesInclusive\", \"true\");\n parametersForGenericOvertimeRule.addParameter(\"EligibleHourTypes\",\n eligibleHourTypes);\n parametersForGenericOvertimeRule.addParameter(\"AddPremiumRecord\",\n \"\" + (premiumTimeCodeInserted != null));\n parametersForGenericOvertimeRule.addParameter(\"PremiumTimeCode\",\n premiumTimeCodeInserted);\n parametersForGenericOvertimeRule.addParameter(\"SkdZoneStartDate\",\n dateFormat.format(dateWeekStarts));\n parametersForGenericOvertimeRule.addParameter(\"SkdZoneEndDate\",\n dateFormat.format(dateWeekEnds));\n parametersForGenericOvertimeRule.addParameter(\n \"HourTypeForOvertimeWorkDetails\",\n hourTypeForOvertimeWorkDetails);\n super.execute(wbData, parametersForGenericOvertimeRule);\n }\n else {\n parametersForGenericOvertimeRule.addParameter(\"HourSetDescription\",\n hourSetDescription);\n parametersForGenericOvertimeRule.addParameter(\n \"AdditionalMinutesWorked\",\n String.valueOf(seedBefore));\n parametersForGenericOvertimeRule.addParameter(\"EligibleTimeCodes\",\n workDetailTimeCodes);\n parametersForGenericOvertimeRule.addParameter(\n \"AreTimeCodesInclusive\", \"true\");\n parametersForGenericOvertimeRule.addParameter(\"EligibleHourTypes\",\n eligibleHourTypes);\n parametersForGenericOvertimeRule.addParameter(\"AddPremiumRecord\",\n \"\" + (premiumTimeCodeInserted != null));\n parametersForGenericOvertimeRule.addParameter(\"PremiumTimeCode\",\n premiumTimeCodeInserted);\n parametersForGenericOvertimeRule.addParameter(\"SkdZoneStartDate\",\n dateFormat.format(dateWeekStarts));\n parametersForGenericOvertimeRule.addParameter(\"SkdZoneEndDate\",\n dateFormat.format(DateHelper.addDays(dateWeekStarts, 6)));\n parametersForGenericOvertimeRule.addParameter(\n \"HourTypeForOvertimeWorkDetails\",\n hourTypeForOvertimeWorkDetails);\n super.execute(wbData, parametersForGenericOvertimeRule);\n\n }\n\n // applyRates();\n }", "title": "" }, { "docid": "e378a64b887da416d1824140bc195a73", "score": "0.522118", "text": "public void setMeetingDays(String meetingDays) {\r\n\t\tif (meetingDays == null || meetingDays.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\r\n\t\tfor (int i = 0; i < meetingDays.length(); i++) {\r\n\t\t\tchar letter = meetingDays.charAt(i);\r\n\t\t\tif (!(letter == 'M' || letter == 'T' || letter == 'W' || letter == 'H' || letter == 'F'\r\n\t\t\t\t\t|| (letter == 'A' && meetingDays.length() == 1))) {\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t\tsuper.setMeetingDays(meetingDays);\r\n\t}", "title": "" }, { "docid": "3a0420d6ec9e7407dd2092d6bbcf3d8e", "score": "0.52036077", "text": "public void setDatePerformed(java.util.Calendar param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localDatePerformedTracker = true;\r\n } else {\r\n localDatePerformedTracker = true;\r\n \r\n }\r\n \r\n this.localDatePerformed=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "5138c437f9f7e05c9f19d69c67213e52", "score": "0.51965827", "text": "private final void populateSetDate(int year, int month, int day) {\n\n }", "title": "" }, { "docid": "30990d81e6d898366b0ef6b6015fb8ab", "score": "0.5193559", "text": "@Override\r\n\tpublic void setLocalDate(final int year, final int month, final int day);", "title": "" }, { "docid": "614f5a82b92c065045e9e6a4ced3d127", "score": "0.5183284", "text": "public void setActivityDates() {\n\t\tif (hasValidSchedule(this.getActivityByName(\"START\"), null)) {\n\t\t\tIterator<Activity> it = activities.iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tActivity a = it.next();\n\t\t\t\ta.setStartDate(projectCalendar.getNextWorkDay(startDate, a.getStartDay()));\n\t\t\t\ta.setEndDate(projectCalendar.getNextWorkDay(startDate,a.getStartDay()+a.getDuration()));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2dd3ab0e1d36646cdd9698f9dbefa943", "score": "0.5164673", "text": "void addDays(int days);", "title": "" }, { "docid": "f501e38276b235b52b465fb669dd1473", "score": "0.5162994", "text": "private void setCalendar() {\n calendar = Calendar.getInstance();\n calendar.set(Calendar.YEAR, Integer.parseInt(reminderItems.getYear()));\n calendar.set(Calendar.MONTH, (Integer.parseInt(reminderItems.getMonth()) - 1));\n calendar.set(Calendar.DAY_OF_MONTH, Integer.parseInt(reminderItems.getDay()));\n calendar.set(Calendar.HOUR_OF_DAY, Integer.parseInt(reminderItems.getHour()));\n calendar.set(Calendar.MINUTE, Integer.parseInt(reminderItems.getMinute()));\n calendar.set(Calendar.SECOND, 0);\n calendar.set(Calendar.MILLISECOND, 0);\n }", "title": "" }, { "docid": "c8f507754cd0b8d5c1af04fc81368707", "score": "0.5159018", "text": "public void becomingDay() {\n \t\t\n \t}", "title": "" }, { "docid": "d88253d804eef547471cabdc847e57ca", "score": "0.5155036", "text": "public static Calendar weekStart(Calendar tw, int startDay) {\n String cipherName434 = \"DES\";\n\t\ttry{\n\t\t\tandroid.util.Log.d(\"cipherName-434\", javax.crypto.Cipher.getInstance(cipherName434).getAlgorithm());\n\t\t}catch(java.security.NoSuchAlgorithmException|javax.crypto.NoSuchPaddingException f){\n\t\t}\n\t\tCalendar ws = (Calendar) tw.clone();\n ws.setFirstDayOfWeek(startDay);\n // START ANDROID BUG WORKAROUND\n // Android has a broken Calendar class, so the if-statement wrapping\n // the following set() is necessary to keep Android from incorrectly\n // changing the date:\n int adjustedDay = ws.get(Calendar.DAY_OF_WEEK);\n ws.add(Calendar.DATE, -((7 - (startDay - adjustedDay)) % 7));\n // The above code _should_ be:\n // ws.set(Calendar.DAY_OF_WEEK, startDay);\n // END ANDROID BUG WORKAROUND\n ws.set(Calendar.HOUR_OF_DAY, ws.getMinimum(Calendar.HOUR_OF_DAY));\n ws.set(Calendar.MINUTE, ws.getMinimum(Calendar.MINUTE));\n ws.set(Calendar.SECOND, ws.getMinimum(Calendar.SECOND));\n ws.set(Calendar.MILLISECOND, ws.getMinimum(Calendar.MILLISECOND));\n return ws;\n }", "title": "" }, { "docid": "952f621c01a6369d7b316013f91d2b52", "score": "0.51454836", "text": "private void computeDayOfWeek()\n {\n Date date = new Date();\n //SimpleDateFormat dayFormat = new SimpleDateFormat(\"uuuu\");\n this.currentDay = Calendar.getInstance().get(Calendar.DAY_OF_WEEK);\n this.nextDay = (this.currentDay > 6) ? 1 : this.currentDay + 1;\n }", "title": "" }, { "docid": "2e90bb7d20687387fd76ea8abe493046", "score": "0.51429296", "text": "public List<Day> configurate(){\r\n\t\tList<Day> list = new ArrayList<>();\t\r\n\t\tlist.add(new Day(setTime(0,1), setTime(9,0), 25, DayEnum.MONDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(0,1), setTime(9,0), 25, DayEnum.TUESDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(0,1), setTime(9,0), 25, DayEnum.WEDNESDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(0,1), setTime(9,0), 25, DayEnum.THURSDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(0,1), setTime(9,0), 25, DayEnum.FRIDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(0,1), setTime(9,0), 30, DayEnum.SATURDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(0,1), setTime(9,0), 30, DayEnum.SUNDAY.getValue()));\t\t\r\n\t\t\r\n\t\tlist.add(new Day(setTime(9,1), setTime(18,0), 15, DayEnum.MONDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(9,1), setTime(18,0), 15, DayEnum.TUESDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(9,1), setTime(18,0), 15, DayEnum.WEDNESDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(9,1), setTime(18,0), 15, DayEnum.THURSDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(9,1), setTime(18,0), 15, DayEnum.FRIDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(9,1), setTime(18,0), 20, DayEnum.SATURDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(9,1), setTime(18,0), 20, DayEnum.SUNDAY.getValue()));\t\t\r\n\t\t\r\n\t\tlist.add(new Day(setTime(18,1), setTime(0,0), 20, DayEnum.MONDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(18,1), setTime(0,0), 20, DayEnum.TUESDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(18,1), setTime(0,0), 20, DayEnum.WEDNESDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(18,1), setTime(0,0), 20, DayEnum.THURSDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(18,1), setTime(0,0), 20, DayEnum.FRIDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(18,1), setTime(0,0), 25, DayEnum.SATURDAY.getValue()));\t\t\r\n\t\tlist.add(new Day(setTime(18,1), setTime(0,0), 25, DayEnum.SUNDAY.getValue()));\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "932ba717cbf7758e440c7ae1ca920704", "score": "0.51412374", "text": "public Employee(String aStaffName, String aStaffRoles)\n {\r\n staffName = aStaffName;\r\n staffRoles = aStaffRoles;\r\n schedule = new ArrayList<DayOfTheWeek>();\r\n \r\n // Initiating schedule.\r\n Calendar c = Calendar.getInstance(TimeZone.getTimeZone(\"EST\"));\r\n c.set(Calendar.HOUR_OF_DAY, 8);\r\n c.set(Calendar.MINUTE, 0);\r\n c.set(Calendar.SECOND, 0);\r\n DayOfTheWeek monday = new DayOfTheWeek(\"Monday\", new Time(c.getTimeInMillis()), new Time(c.getTimeInMillis())); // Default starts and ends at 8 am\r\n schedule.add(monday);\r\n DayOfTheWeek tuesday = new DayOfTheWeek(\"Tuesday\", new Time(c.getTimeInMillis()), new Time(c.getTimeInMillis())); // Default starts and ends at 8 am\r\n schedule.add(tuesday);\r\n DayOfTheWeek wednesday = new DayOfTheWeek(\"Wednesday\", new Time(c.getTimeInMillis()), new Time(c.getTimeInMillis())); // Default starts and ends at 8 am\r\n schedule.add(wednesday);\r\n DayOfTheWeek thursday = new DayOfTheWeek(\"Thursday\", new Time(c.getTimeInMillis()), new Time(c.getTimeInMillis())); // Default starts and ends at 8 am\r\n schedule.add(thursday);\r\n DayOfTheWeek friday = new DayOfTheWeek(\"Friday\", new Time(c.getTimeInMillis()), new Time(c.getTimeInMillis())); // Default starts and ends at 8 am\r\n schedule.add(friday);\r\n DayOfTheWeek saturday = new DayOfTheWeek(\"Saturday\", new Time(c.getTimeInMillis()), new Time(c.getTimeInMillis())); // Default starts and ends at 8 am\r\n schedule.add(saturday);\r\n DayOfTheWeek sunday = new DayOfTheWeek(\"Sunday\", new Time(c.getTimeInMillis()), new Time(c.getTimeInMillis())); // Default starts and ends at 8 am\r\n schedule.add(sunday);\r\n }", "title": "" }, { "docid": "af33fb87fcdcc3be90156d1d213a7ee8", "score": "0.51394016", "text": "public void add(Shift shift) {\r\n workDays.add(shift);\r\n sort();\r\n }", "title": "" }, { "docid": "cbc952cdc5430c5630c50da71f3f55fd", "score": "0.51316696", "text": "@Override\n public abstract void setWorkDirectory(WorkDirectory workDir);", "title": "" }, { "docid": "387eddfdc2083f9dc5a4480a8a284c1e", "score": "0.51292974", "text": "private void setStartDate() {\n // currently will use 7 days before current date\n // Will add a tag in configuration later\n Calendar cal = Calendar.getInstance();\n cal.add(Calendar.DATE, -7);\n startDate = cal.getTime();\n }", "title": "" }, { "docid": "8e4578cf52fed09f77d0061c73af6f9e", "score": "0.512541", "text": "public void applyDayStartEffects() {\n for (CrewMember crewmember : crew) {\n crewmember.applyDayStartEffects();\n }\n }", "title": "" }, { "docid": "8a5d68cdb89757e933f4314761f3ddee", "score": "0.51189226", "text": "void setNilEndDate();", "title": "" }, { "docid": "246de2bef200200982744e3823af0247", "score": "0.51125443", "text": "public void setCurrentDay(int currentDay) {\n\t\tthis.currentDay = currentDay;\n\t}", "title": "" }, { "docid": "2368a35083904f03fc3751105185580b", "score": "0.5112281", "text": "public Shift(WeekDay weekDay, boolean shift, \n boolean goals, ArrayList<Employee> employee)\n {\n this.day = weekDay;\n this.isDayShift = shift;\n this.metProductionGoals = goals;\n \n // Validate the correct number of employees in\n // the code that uses this class\n this.workers = employee;\n }", "title": "" }, { "docid": "2e53ee028acde7633d91c8c4ff824a2f", "score": "0.51100993", "text": "public void setWorkStation(WorkStation ws) {\n FindStation.ws = ws;\n }", "title": "" }, { "docid": "c9153d46e76da21645f60636efc44726", "score": "0.5106901", "text": "void setDayOfYear(int dayOfYear);", "title": "" }, { "docid": "a748ae245976a83ddf6ba5f50886d34c", "score": "0.5103022", "text": "public void DueDate(WebDriver driver, String days){\r\n\t\tSelect duedate =new Select(driver.findElement(By.id(\"TypeOfDueDate\")));\r\n\t\tduedate.selectByIndex(2);\r\n\t\tdriver.findElement(By.id(\"DueDate\")).sendKeys(days);\r\n\t\r\n\t}", "title": "" }, { "docid": "a5ea6b78a0d78a9e080455a613104331", "score": "0.5096277", "text": "public void assignStaff(String dayOfWeek, String startTime, String endTime, Worker worker, boolean isManager)\r\n\t\t\tthrows ManagerAssignedException, InvalidDayException {\r\n\t\ttry {\r\n\t\t\t_dailyRosters.get(Days.valueOf(dayOfWeek)).assignStaff(startTime, endTime, worker, isManager);\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tthrow new InvalidDayException(\"ERROR: Day provided: \" + dayOfWeek + \" is invalid\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3d110e4aeba87523ddc4e763bb4aa2b2", "score": "0.5088641", "text": "public static void main(String[] args) {\n String dataDir = Utils.getDataDir(DefineWeekdaysForExceptions.class);\n\n // Create a project instance\n Project project = new Project();\n\n // Define Calendar\n Calendar cal = project.getCalendars().add(\"Calendar1\");\n\n // Define week days exception for Christmas\n CalendarException except = new CalendarException();\n except.setEnteredByOccurrences(false);\n except.setFromDate(new GregorianCalendar(2009, java.util.Calendar.DECEMBER, 24, 0, 0, 0).getTime());\n except.setToDate(new GregorianCalendar(2009, java.util.Calendar.DECEMBER, 31, 23, 59, 0).getTime());\n except.setType(CalendarExceptionType.Daily);\n except.setDayWorking(false);\n cal.getExceptions().add(except);\n\n // Save the Project\n project.save(dataDir + \"project.xml\", SaveFileFormat.Xml);\n // ExEnd: DefineWeekDaysForExceptions\n }", "title": "" } ]
402da8b8fb0f5cc580bc9ce2b6e7350a
Gets the version of the MM7 schema that MMSC used to generate this incoming response.
[ { "docid": "78f7c3fc61750b3b24f80f31b4a88f3b", "score": "0.6992159", "text": "public String getMM7Version() { return mm7Version; }", "title": "" } ]
[ { "docid": "3a35ddcbaad4cf9f13d05d4b6a84ea95", "score": "0.79716355", "text": "protected SpecVersion.VersionFlag getSchemaVersion() {\n return SpecVersion.VersionFlag.V7;\n }", "title": "" }, { "docid": "3c7879f24fee370cfa5c725751f7774a", "score": "0.74229133", "text": "public String getSchemaVersion() {\n \t\treturn schemaVersion;\n \t}", "title": "" }, { "docid": "32a1547ace1d05c4682f9234e76c88fe", "score": "0.72255516", "text": "public Integer getSchemaVersion() {\n return this.schemaVersion;\n }", "title": "" }, { "docid": "32a1547ace1d05c4682f9234e76c88fe", "score": "0.72255516", "text": "public Integer getSchemaVersion() {\n return this.schemaVersion;\n }", "title": "" }, { "docid": "bc89b39c2d9ba253f3118ebcc3231490", "score": "0.7177796", "text": "SchemaVersion getSchemaVersion();", "title": "" }, { "docid": "79aaa15b049a7edb87ab057688a4a2cc", "score": "0.7174476", "text": "@GET\n @Path(\"/schemaversion\")\n int getSchemaVersion();", "title": "" }, { "docid": "a5aa67c6f5cb88835206fe62d83b434a", "score": "0.7158295", "text": "public java.math.BigDecimal getSchemaVersion() {\n return schemaVersion;\n }", "title": "" }, { "docid": "8c018103d05c3637d926a575da81fb1e", "score": "0.65928996", "text": "@ApiModelProperty(required = true, value = \"The Verification Of Employment (VOE) schema version.\")\n\n public Double getSchemaVersion() {\n return schemaVersion;\n }", "title": "" }, { "docid": "0010433b0abd820c1966fa162be654b6", "score": "0.6241944", "text": "@SuppressWarnings(\"unchecked\")\n public String getServerVersion() {\n if (serverVersion == null) {\n // Get the version from the latest response.\n if (this.latestResponse != null) {\n Object o = this.latestResponse.getAttributes().get(\n HeaderConstants.ATTRIBUTE_HEADERS);\n\n if (o != null) {\n Series<Header> headers = (Series<Header>) o;\n String strHeader = headers.getFirstValue(\n \"DataServiceVersion\", true);\n\n if (strHeader != null) {\n HeaderReader<Object> reader = new HeaderReader<Object>(\n strHeader);\n this.serverVersion = reader.readToken();\n }\n }\n }\n }\n\n return serverVersion;\n }", "title": "" }, { "docid": "50f015d95a729003cf652a7b6a842cc8", "score": "0.60593385", "text": "public String getSchema() {\n return schema.toString();\n }", "title": "" }, { "docid": "746e005d62ae794a6236564dfbad8636", "score": "0.60549533", "text": "public String version ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"_get_version\", true);\n $in = _invoke ($out);\n String $result = $in.read_string ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return version ( );\n } finally {\n _releaseReply ($in);\n }\n }", "title": "" }, { "docid": "663c52a5171b30a5afe122a6f439be6f", "score": "0.5999216", "text": "protected String getSchemaVersion(Descriptor descriptor) {\n return PersistenceUnitDescriptor.class.cast(descriptor).getParent().\n getSpecVersion();\n }", "title": "" }, { "docid": "f6d25f359d8307a5629c25ee4c000e9d", "score": "0.5996995", "text": "public byte[] version() { return version; }", "title": "" }, { "docid": "be31934ab5f4c585385e44b3b3804ad6", "score": "0.59826916", "text": "public String getSchema() {\r\n return schema;\r\n }", "title": "" }, { "docid": "34c981e5a55652772f5e1770f0a3f160", "score": "0.5958449", "text": "String getSpecificationVersion();", "title": "" }, { "docid": "9d2ee96ec0bb73e4da32d66d31abf42e", "score": "0.5897487", "text": "public String getSPVersion();", "title": "" }, { "docid": "4f66f24d5361e254d7b70ddccd4998c5", "score": "0.5869409", "text": "public Integer getModelPackageVersion() {\n return this.modelPackageVersion;\n }", "title": "" }, { "docid": "b0f41b06c8df79b360180071a9717e4c", "score": "0.5857502", "text": "public byte[] getVersion() {\n return version;\n }", "title": "" }, { "docid": "f148bfacf5ccd2284614c61880383d75", "score": "0.5856125", "text": "public int getApiVersion()\n {\n return getDataVersion();\n }", "title": "" }, { "docid": "6e52a0ec83625a43176c7b2c517b2eca", "score": "0.5855804", "text": "public static int protoVersion() {\r\n synchronized (beMgrLock) {\r\n if (beMgr != null)\r\n return beMgr.protoVersion;\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "54dc40143a9f371b60b72dd1f4e7f428", "score": "0.5808717", "text": "public final String getRDBMSVersion() {\n\t\treturn strRDBMSVersion;\n\t}", "title": "" }, { "docid": "7c752e81f1e85f16e2f0384f94607807", "score": "0.58028424", "text": "public int getMaxWireVersion() {\n return maxWireVersion;\n }", "title": "" }, { "docid": "78512170d9947f33f42f91390e9b846f", "score": "0.579701", "text": "@JsonProperty(\"version\")\n public SarifSchema210 .Version getVersion() {\n return version;\n }", "title": "" }, { "docid": "acfffc9517dbfb8ed16ee38147ec7ead", "score": "0.5778859", "text": "public String getEnvelopeVersion() {\r\n\t\treturn envelopeVersion;\r\n\t}", "title": "" }, { "docid": "a1c9aa578da479f36697adffeb2c7e0e", "score": "0.57750136", "text": "public int getVERSION() {\r\n return version;\r\n }", "title": "" }, { "docid": "cb1af8f9f8cfa77396069eb67dc2920f", "score": "0.5774874", "text": "public java.lang.String getAppVersion() {\n java.lang.Object ref = appVersion_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n org.apache.pekko.protobufv3.internal.ByteString bs = \n (org.apache.pekko.protobufv3.internal.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n appVersion_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "f76d0ad9b5f61fa5697a93d18f1d633d", "score": "0.57676345", "text": "public java.lang.String getAppVersion() {\n java.lang.Object ref = appVersion_;\n if (!(ref instanceof java.lang.String)) {\n org.apache.pekko.protobufv3.internal.ByteString bs =\n (org.apache.pekko.protobufv3.internal.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n appVersion_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "e7097b215df56cb7198a66d934240c79", "score": "0.574046", "text": "public java.lang.String getFirmwareVersion() {\n java.lang.Object ref = firmwareVersion_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n firmwareVersion_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "84d6dc1ed0c2621370aa52ea3ee24e19", "score": "0.5710687", "text": "@DISPID(74)\r\n\t// = 0x4a. The runtime will prefer the VTID if present\r\n\t@VTID(79)\r\n\tjava.lang.String dbmS_Version();", "title": "" }, { "docid": "3d60df763071250696e638c420512fd4", "score": "0.5708226", "text": "public int get_version() {\n return (int)getUIntBEElement(offsetBits_version(), 16);\n }", "title": "" }, { "docid": "d16c3a3673cbb5e1ca21b577cb5236bf", "score": "0.57076097", "text": "public java.lang.String getRestVersion() {\n java.lang.Object ref = restVersion_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n restVersion_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9879104dcee3331a35a7ef12b64d766a", "score": "0.5683012", "text": "public int getVersion()\n {\n return version;\n }", "title": "" }, { "docid": "700d4d9af1f60bd5af529a4fd032a54b", "score": "0.5674815", "text": "public String getVersion()\n {\n return RuleFactoryExample.VERSION;\n }", "title": "" }, { "docid": "01b86e7dc046646a2c3416ba69c5e62b", "score": "0.5673906", "text": "public int getVersion() {\n return version;\n }", "title": "" }, { "docid": "01b86e7dc046646a2c3416ba69c5e62b", "score": "0.5673906", "text": "public int getVersion() {\n return version;\n }", "title": "" }, { "docid": "027ff9eccbd036a507e733835efbb60b", "score": "0.56720984", "text": "@java.lang.Override\n public java.lang.String getFirmwareVersion() {\n java.lang.Object ref = firmwareVersion_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n firmwareVersion_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "507e00480fd9d0854f6fb4e72b5bf1ba", "score": "0.56702024", "text": "public String getSpecVersion() {\n return specVersion;\n }", "title": "" }, { "docid": "a62907df9e2fb75de99e49f83f1171e4", "score": "0.5664596", "text": "public int getLayoutVersion() {\n return layoutVersion_;\n }", "title": "" }, { "docid": "3bf02536002aba83772585531368d39f", "score": "0.56629485", "text": "public int getVersion()\n {\n return version;\n }", "title": "" }, { "docid": "e667adbabbb6885ad37991f795901636", "score": "0.566021", "text": "public long getVersion() {\r\n return version;\r\n }", "title": "" }, { "docid": "abc80e652be8334014426b3f391e5f17", "score": "0.5659424", "text": "public java.lang.String getDatabase_Version() {\n return database_Version;\n }", "title": "" }, { "docid": "f9e23690999e09dfb8f1dd0c02285b28", "score": "0.5652027", "text": "public Schema getSchema() {\n return header.schema;\n }", "title": "" }, { "docid": "6b6cf25cc4d09949777ca5d8321a3175", "score": "0.5650156", "text": "public java.lang.String getRestVersion() {\n java.lang.Object ref = restVersion_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n restVersion_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "579cf95bc0bdde673982722ab4788859", "score": "0.5648611", "text": "public Long getServerVersion() {\n\t\treturn serverVersion;\n\t}", "title": "" }, { "docid": "b36da9f2d468d14d83d68b04b393e135", "score": "0.5645261", "text": "String getRemoteSchema();", "title": "" }, { "docid": "191f153855d8cf218e5f6995f0dd09de", "score": "0.56434244", "text": "public int getLayoutVersion() {\n return layoutVersion_;\n }", "title": "" }, { "docid": "540094474447677134045fb787096bb2", "score": "0.5643374", "text": "public String getFirmwareVersion() {\n return firmwareVersion;\n }", "title": "" }, { "docid": "4bcaa9333967729eec1e781517ac4459", "score": "0.5638903", "text": "public int getVersion() {\n\t\treturn version;\n\t}", "title": "" }, { "docid": "4bcaa9333967729eec1e781517ac4459", "score": "0.5638903", "text": "public int getVersion() {\n\t\treturn version;\n\t}", "title": "" }, { "docid": "4bcaa9333967729eec1e781517ac4459", "score": "0.5638903", "text": "public int getVersion() {\n\t\treturn version;\n\t}", "title": "" }, { "docid": "cb4df1cc9794ad0fc2afc63eed1cbcc3", "score": "0.5634089", "text": "public Object schema() {\n return this.schema;\n }", "title": "" }, { "docid": "68c296ba8275158e97b865b34677e1ba", "score": "0.5632871", "text": "public int getVersion() {\r\n\t\treturn version;\r\n\t}", "title": "" }, { "docid": "1dc7a77702c364c74dad65c575128dfd", "score": "0.5632308", "text": "public int getFWTVersion() {\n return networkManager.supportsFWTVersion();\n }", "title": "" }, { "docid": "3f2261f6b08910b2d31dea3ddf58dcec", "score": "0.56297296", "text": "public Schema schema() {\n return this.schema;\n }", "title": "" }, { "docid": "2e902ecee372a7a2a719259cf18e5653", "score": "0.562858", "text": "public long getVersion() {\n\t\treturn version;\n\t}", "title": "" }, { "docid": "67ed0708c8d71fa1f8d019f0d101fdf3", "score": "0.5627246", "text": "public long getVersion() {\r\n return version;\r\n }", "title": "" }, { "docid": "15a64b0b100435270989871746144abe", "score": "0.56176054", "text": "@ApiModelProperty(required = true, value = \"Identifies a supported version. The value of the version attribute shall be a version identifier as specified in clause 4.6.1. \")\n @NotNull\n\n\n public String getVersion() {\n return version;\n }", "title": "" }, { "docid": "116a19fffe5ce6c34f6913d023703b1f", "score": "0.5611091", "text": "public long getVersion() {\n return version;\n }", "title": "" }, { "docid": "116a19fffe5ce6c34f6913d023703b1f", "score": "0.5611091", "text": "public long getVersion() {\n return version;\n }", "title": "" }, { "docid": "acaee272dec7d5b35cf5a9ec7bf2f3e3", "score": "0.5606896", "text": "public java.lang.String getJerseyVersion() {\n java.lang.Object ref = jerseyVersion_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n jerseyVersion_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "1833d2e5613c3a756d72313d1374e3e4", "score": "0.5605813", "text": "public String getMinVersion() {\n return minVersion;\n }", "title": "" }, { "docid": "a7780cc8659de4672bc6e8aae505b7bf", "score": "0.56032467", "text": "public String getSchema() {\n return StringUtils.isNotBlank(schema) ? (schema + \".\") : \"\";\n }", "title": "" }, { "docid": "1915432d1c4c8ad3f42f27aa0b73a4ba", "score": "0.5602754", "text": "public int getPackageVersionInt(){\r\t\treturn 3310;\r\t}", "title": "" }, { "docid": "7ea8e9401194191d5dc505f3ce752656", "score": "0.5595078", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "7ea8e9401194191d5dc505f3ce752656", "score": "0.5595078", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "7ea8e9401194191d5dc505f3ce752656", "score": "0.5595078", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "7ea8e9401194191d5dc505f3ce752656", "score": "0.5595078", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "7ea8e9401194191d5dc505f3ce752656", "score": "0.5595078", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "7ea8e9401194191d5dc505f3ce752656", "score": "0.5595078", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "aff214fe7e4600bf6c1f33fa5ba1bf44", "score": "0.55940783", "text": "public Long getVersion()\n {\n return version;\n }", "title": "" }, { "docid": "c753a5ebc24d51bb65731ee38d45eff5", "score": "0.55939716", "text": "public Map<String, Integer> getSchema(){\n\t\treturn this.schema;\n\t}", "title": "" }, { "docid": "d1fa9240b6819eafeb83262f03b6d460", "score": "0.5592839", "text": "public short getVersion() {\n return this.version;\n }", "title": "" }, { "docid": "9625e729ac98fac8b12754710aab61b2", "score": "0.5584587", "text": "public Long getVersion() {\n return version;\n }", "title": "" }, { "docid": "9625e729ac98fac8b12754710aab61b2", "score": "0.5584587", "text": "public Long getVersion() {\n return version;\n }", "title": "" }, { "docid": "2367883d908c5b5da49760b4c4282cc6", "score": "0.55840087", "text": "public long getServerVersion() {\n return serverVersion;\n }", "title": "" }, { "docid": "2c9479ddf443802dfb7a7393c621675c", "score": "0.5578053", "text": "@Override\n\tpublic Long getVersion() {\n\t\treturn version;\n\t}", "title": "" }, { "docid": "d48d688fc437f5fb4e32fa4da47ca0e3", "score": "0.55699396", "text": "public static String getSchema() {\r\n\t\t\r\n\t\treturn getInstance().getProperty(\"prop.schema.bd\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e43d304557a2d0197b126ed674c6e660", "score": "0.5568575", "text": "public Short getVersion() {\n return version;\n }", "title": "" }, { "docid": "c6627bdba6a8ee9743b2d9e017c517cf", "score": "0.55675834", "text": "public java.lang.String getJerseyVersion() {\n java.lang.Object ref = jerseyVersion_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n jerseyVersion_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "dd8ba8c7a9cd0f68cab30c079b263dfe", "score": "0.55611867", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "dd8ba8c7a9cd0f68cab30c079b263dfe", "score": "0.55611867", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "dd8ba8c7a9cd0f68cab30c079b263dfe", "score": "0.55611867", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "dd8ba8c7a9cd0f68cab30c079b263dfe", "score": "0.55611867", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "dd8ba8c7a9cd0f68cab30c079b263dfe", "score": "0.55611867", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "dd8ba8c7a9cd0f68cab30c079b263dfe", "score": "0.55611867", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "dd8ba8c7a9cd0f68cab30c079b263dfe", "score": "0.55611867", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "ed9694e561930091fc3067152a7af01c", "score": "0.5560567", "text": "public String getAppServerVersion() {\n\t\treturn JvmProperties.getVersionStringShort();\n\t}", "title": "" }, { "docid": "0f52735dab842ee311f4864ff95abeec", "score": "0.5556558", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "d7e5c7f4b39555fbd183cd7c532d7a1d", "score": "0.5555552", "text": "public String getVersion()\n\t{\n\t\treturn version;\n\t}", "title": "" }, { "docid": "0374dcbe791e9e773c6023d6a48f01d2", "score": "0.5555523", "text": "@Version\n\tpublic int getVersion() {\n\t\treturn version;\n\t}", "title": "" }, { "docid": "72456515a3a42dabbf98eb6e1e038d22", "score": "0.555246", "text": "org.hl7.fhir.String getVersion();", "title": "" }, { "docid": "9f58060afc9f8414b74f6cf508c13c48", "score": "0.5546531", "text": "java.lang.String getRestVersion();", "title": "" }, { "docid": "4528b0e67ae979ca89a01ee1984b7efa", "score": "0.55453867", "text": "public int version() {\n return myVersion;\n }", "title": "" }, { "docid": "b4a79e60c43d67de9ae50beaba97b390", "score": "0.55430686", "text": "public Schema getSchema() {\n return _schema;\n }", "title": "" }, { "docid": "8947faa2ac13997dbff8fbf61501ba11", "score": "0.55385894", "text": "public String getVersion()\r\n {\r\n return version;\r\n }", "title": "" }, { "docid": "30d77d94a6d6456686bce534ad096aea", "score": "0.55383617", "text": "public String getVersion() {\r\n return version;\r\n }", "title": "" }, { "docid": "30d77d94a6d6456686bce534ad096aea", "score": "0.55383617", "text": "public String getVersion() {\r\n return version;\r\n }", "title": "" }, { "docid": "fde0d5ade4a22562112abcc0ad412770", "score": "0.5538102", "text": "public long getVersion() {\n return version_;\n }", "title": "" }, { "docid": "fde0d5ade4a22562112abcc0ad412770", "score": "0.5538102", "text": "public long getVersion() {\n return version_;\n }", "title": "" }, { "docid": "fde0d5ade4a22562112abcc0ad412770", "score": "0.5538102", "text": "public long getVersion() {\n return version_;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "c1a604fb9be1aee0db3a89ad63306531", "score": "0.0", "text": "@Override\r\n\tpublic Activity getActivityByPlanId(String planId) {\n\t\treturn activityDao.getActivityWithQuestionByPlanId(Integer.parseInt(planId));\r\n\t}", "title": "" } ]
[ { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.66616714", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.6566483", "text": "@Override\r\n\tpublic void pular() {\n\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6491197", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.64641994", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "5697bde38a38a77f3a0bd238fb737c11", "score": "0.6364729", "text": "@Override\n public int getDochody() {\n return 0;\n }", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.63003165", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "85b25c664df01fd0b02e103c9bbc8372", "score": "0.62679124", "text": "@Override\r\n\tpublic void arreter() {\n\r\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6251392", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "a56ce606ea5cc945279ea9725eed5272", "score": "0.6159551", "text": "@Override\n\tpublic void alearga() {\n\t\t\n\t}", "title": "" }, { "docid": "07779d53803dc6875c03bdee2e1afeb5", "score": "0.6132161", "text": "@Override\n public void ordenar() {\n }", "title": "" }, { "docid": "b9936bc3db0ac97ae50d7643a27379b4", "score": "0.61193323", "text": "@Override\n\tpublic void intercourse() {\n\n\t}", "title": "" }, { "docid": "35e5940d13f06d1f0d6a21cf2739c70a", "score": "0.61117256", "text": "public function() {}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059389", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.603307", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "829bb71476cb87bb452950e0e97007e6", "score": "0.6019835", "text": "@Override\n\tprotected void dataAcquisition() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "8d2080edd6605bcfb742d32fd1a0091e", "score": "0.59731764", "text": "@Override\n\tpublic void ilerle() {\n\n\t}", "title": "" }, { "docid": "ee0f5f270c3e0eea9f37c3d1e42b1161", "score": "0.5962932", "text": "public void mo12736g() {\n }", "title": "" }, { "docid": "2aee513697daff4bfe2636e5d0fa9a30", "score": "0.5960253", "text": "@Override\n\tpublic void bewegeNachUnten() {\n\n\t}", "title": "" }, { "docid": "ced4b47c7129b2184e6a77b2a8798fd1", "score": "0.5946297", "text": "@Override\n public void annuler() {\n\n }", "title": "" }, { "docid": "cb1c09afbbe0ad234f211aa36d586f4e", "score": "0.59103566", "text": "@Override\r\n\t\tprotected void update() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "5bb37ed5e0a08c04cb9e970f3e334584", "score": "0.5900665", "text": "@Override\n\tpublic void accion() {\n\n\t}", "title": "" }, { "docid": "15c9cae08ae101b3a04f9ff3b519ae04", "score": "0.5882791", "text": "public void mo8316a() {\n }", "title": "" }, { "docid": "b7288a7694313b8a4d39355a49521e40", "score": "0.5882", "text": "@Override\r\n\tpublic void atras() {\n\t\tsuper.atras();\r\n\t}", "title": "" }, { "docid": "4077955e82cce22d988577ca0a7978fc", "score": "0.5878152", "text": "@Override\n\tpublic void dormir() {\n\n\t}", "title": "" }, { "docid": "833ba2f1d8822ebbb0dddd05020c0c08", "score": "0.58703625", "text": "@Override\n\tpublic void attaque() {\n\t}", "title": "" }, { "docid": "3e9c4de332bfb94422f785054fa63ada", "score": "0.58645976", "text": "@Override\r\n\tpublic void limpiar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b0e2e41d411b76c357d16b3eb3a159c", "score": "0.58598334", "text": "protected abstract void entschuldigen();", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "8e75ffe6faa994ed57c6ffb8b56296fe", "score": "0.5852322", "text": "public void xiuproof() {\n\t\t\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.5850078", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "39da14b1f6e1adac9c0b748811e78b68", "score": "0.58369607", "text": "public void mo12645zl() {\n }", "title": "" }, { "docid": "d87000313f7b5075ec45a2b0ee7df323", "score": "0.58221865", "text": "@Override\r\n\tprotected void location() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "4e86f604c407a96c75671f663064c24b", "score": "0.580598", "text": "public void mo8319b() {\n }", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5799415", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.57941025", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "b429c7e890f65a814ea31e6014003667", "score": "0.5782731", "text": "@Override\n public int describeContents(){\n return 0;\n }", "title": "" }, { "docid": "680a0d25967a28e3b7a6643d55703105", "score": "0.57812274", "text": "public void contaaordem() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b901583faeb614d4d67271470c31d36c", "score": "0.5750588", "text": "@Override\n\tpublic void sare() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.574232", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731695", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fa729e301b181004ac22fa6a16b19c1b", "score": "0.57202786", "text": "@Override\n public void init()\n {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "0b812af084ac0cb033ab904c49294fed", "score": "0.5685316", "text": "public void mo25703a() {\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.5684768", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "dc4ad5d6a5fcdc294379036f367a401b", "score": "0.5684058", "text": "@Override\n public void frenar() {\n\n }", "title": "" }, { "docid": "c0f925eed1b58e6d19fd99e8a3e26d34", "score": "0.5677166", "text": "@Override\r\n public boolean sallittu() {\r\n return false;\r\n }", "title": "" }, { "docid": "322e19fcfb5cfbd6ffce194d7e04df05", "score": "0.5665703", "text": "@Override\n\t\t\tprotected void reInitial() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fdeab6ca2d3dd91b347a8cc2f5c862c2", "score": "0.56656164", "text": "private static void generateNew() {\n\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "d6d75432f50fcf22c3834bdfb660cd26", "score": "0.5641307", "text": "@Override\n public void use(){\n \n }", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.563811", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "91e98bbf9cac4e38e126d6b5c2a2ecac", "score": "0.5624502", "text": "@Override\n\tprotected void setupData() {\n\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.5618833", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "290b69adc6f043c0f6d04c952f144b7d", "score": "0.56084245", "text": "@Override\n\tpublic void ImplementRule()\n\t{\n\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "9fa93751aa3acc716354baf4c9c4b1ff", "score": "0.5604908", "text": "@Override\n\tpublic void NoOftems() {\n\n\t}", "title": "" }, { "docid": "dce285146917b7d4be86c4f1ade0646e", "score": "0.5600153", "text": "@Override\r\n protected void onLoad() {}", "title": "" }, { "docid": "2698e2df29a24b9998ee11e61625c8a0", "score": "0.5599527", "text": "private void method() {\n\t\t\t}", "title": "" }, { "docid": "3767348a298bdbc42a516908dfac0022", "score": "0.5598486", "text": "public final void mo34050B() {\n }", "title": "" }, { "docid": "8436022dbd33301a64633011031cfa7b", "score": "0.55980015", "text": "protected void filtrarHoyDDPF() {\n\t\t\r\n\t}", "title": "" } ]
88e3acde17db87800a949a01aa10ed31
This method is responsible for printing the vehicle registration number using color.
[ { "docid": "88f1ed15c048ac353cd528d2de7d3900", "score": "0.762419", "text": "public void printRegistrationNumbersByColor(String color);", "title": "" } ]
[ { "docid": "4ac99af0b34cf86f45a0e2de73ee1237", "score": "0.6896849", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"[\" + ph_serial_no + \", \" + color + \"]\";\n\t}", "title": "" }, { "docid": "f7cb80d39d76fd42db30706bfbe5c50d", "score": "0.6815584", "text": "public void parkVehicle(String registrationNo, String color);", "title": "" }, { "docid": "b50a642f945e4f158213186d52115aff", "score": "0.6410441", "text": "public void printSlotNumbersByColor(String color);", "title": "" }, { "docid": "eedf45381c2735a0f13fb9cbcfefdb82", "score": "0.6257814", "text": "public void printcar() {\n\n currentstreet = this.route.get(this.from).getCrossroadname();\n destination = this.route.get(this.to).getCrossroadname();\n\n if (this.caractive == true) {\n\n System.out.printf(\"%s %d: \", this.name, this.identify);\n System.out.printf(\" %s\", currentstreet);\n System.out.printf(\" -> -> %s\", destination);\n System.out.printf(\" on Slot: %d \", this.location);\n System.out.printf(\"Lifetime: %d\\n\\n\", this.lifetime);\n }\n }", "title": "" }, { "docid": "de0c7f013149f069e102d9340b8e46ea", "score": "0.6219031", "text": "public void printSlotNumberByRegNo(String regNo);", "title": "" }, { "docid": "2123d0e9f72dc2e0f0cd9a3c71cfa0b1", "score": "0.620954", "text": "void display() {\n System.out.println(\"Color : \"+ color);\n }", "title": "" }, { "docid": "0592d5d02b03a62917b7e77a988c659b", "score": "0.61888444", "text": "@Override\n\tpublic void printColor() {\n\t\tSystem.out.println(\"Purple\");\n\t}", "title": "" }, { "docid": "9293df4bc7b7a922dc0ef9da65e36d41", "score": "0.61502576", "text": "void park(String registeredNo, String color);", "title": "" }, { "docid": "9b010562fde4c5a45a7552b043029891", "score": "0.61234224", "text": "public void display()\r\n {\r\n System.out.println();\r\n System.out.println(\"Registration Number: \" + carRegistrationNumber + \" | YearMade: \" \r\n + yearMade + \" | Colour1: \" + colour.get(0) + \" | Colour2: \" + colour.get(1) \r\n + \" | Colour3: \" + colour.get(2) + \" | Car Make: \" + carMake + \" | Car Model: \" \r\n + carModel + \" | Price: \" + price);\r\n }", "title": "" }, { "docid": "ed51676dae59605acbafc9a3d8b22537", "score": "0.60163414", "text": "public String toString(){\r\n\t\tString p= color+\"R\";\r\n\t\treturn p;\r\n\t}", "title": "" }, { "docid": "4bd86017b063cb05d7d0c418430e2cca", "score": "0.59290403", "text": "public String toString() {\r\n\t\treturn red + \" \" + green + \" \" + blue; \r\n\t}", "title": "" }, { "docid": "fad246364d32c3c03c986976755000c5", "score": "0.59266645", "text": "public void printRegisters()\n\t{\n\t\tMachineModel model = machine.getModel();\n\t\tint regCount = model.getRegisterCount();\n\t\t\n\t\tfor(int i = 0; i < regCount; i++)\n\t\t{\n\t\t\tint regVal = model.getRegister(i);\n\t\t\tSystem.out.println(String.format(\"R%d:%d\", i,regVal));\n\t\t}\n\t}", "title": "" }, { "docid": "62f237c7285da9c7f2d92f780be66186", "score": "0.5912235", "text": "public String toString()\n {\n return color.charAt(0) + \"P\";\n }", "title": "" }, { "docid": "6ea7c4f24801be8ec9b3d1f1f8e45f7a", "score": "0.5870356", "text": "void getRegistrationNumbersFromColor(String color);", "title": "" }, { "docid": "dab6efdefa720b45b6eea159ab0d3dfb", "score": "0.58400714", "text": "public String toString()\n {\n return super.toString() + \"color:\" + color;\n }", "title": "" }, { "docid": "e63cc75b0c5de1e30ea3d60f0ce25bdd", "score": "0.58054674", "text": "void printInfo()\r\n\t{\r\n\t\tSystem.out.println(\"SkyScraper: \" +\r\n\t\t\t\t\t\t \"loc=\" + Math.round(getLocationX()*10.0)/10.0 + ',' + Math.round(getLocationY()*10.0)/10.0 + ' ' + \r\n\t\t\t\t\t\t \"color=[\" + getColorR() + ',' + getColorG() + ',' + getColorB() + ']' + ' ' +\r\n\t\t\t\t\t\t \"size=\" + getSize() + ' ' +\r\n\t\t\t\t\t\t \"seqNum=\" + getSeq() + ' ');\r\n\t}", "title": "" }, { "docid": "9d07422b2554c8dab00dd846485acfa5", "score": "0.5801985", "text": "public String displayColour();", "title": "" }, { "docid": "4ed38eb6bd9f03977941666ad449b5e8", "score": "0.579741", "text": "public void printRegisters(){\n\n //Print General Purpose registers\n for(int i = 0; i < 16; i++){\n System.out.println(String.format(\"V%01X: %01X\",i,V[i]));\n }\n\n System.out.println(String.format(\"I: %01X\",I));\n\n System.out.println(String.format(\"SP: %01X\",SP));\n\n System.out.println(String.format(\"DT: %01X\",DT));\n\n System.out.println(String.format(\"ST: %01X\",ST));\n\n\n }", "title": "" }, { "docid": "aa7fb9159cf0ef07a17f021eef91b180", "score": "0.57944983", "text": "private void regDump()\r\n\t{\r\n\t\tfor(int i = 0; i < NUMGENREG; i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"r\" + i + \"=\" + m_registers[i] + \" \");\r\n\t\t}//for\r\n\t\tSystem.out.print(\"PC=\" + m_registers[PC] + \" \");\r\n\t\tSystem.out.print(\"SP=\" + m_registers[SP] + \" \");\r\n\t\tSystem.out.print(\"BASE=\" + m_registers[BASE] + \" \");\r\n\t\tSystem.out.print(\"LIM=\" + m_registers[LIM] + \" \");\r\n\t\tSystem.out.println(\"\");\r\n\t}", "title": "" }, { "docid": "c9a18b38acdc7c68a8cea12e9222a793", "score": "0.5785168", "text": "public String dime_color() {\n\t\t\treturn \"el color del coche es \"+color;\n\t\t}", "title": "" }, { "docid": "36ef0e1a335e4f3929bc880735135865", "score": "0.57682747", "text": "public String toString() {\n return String.format(\"%d %d %d\", this.red, this.green, this.blue);\n }", "title": "" }, { "docid": "4c49c2f6b65a885bd805428bc11b7d17", "score": "0.5690628", "text": "@Override\n\tpublic void fill() {\n\t\tSystem.out.println(GREEN);\n\t}", "title": "" }, { "docid": "521693c2f89e1db3174a1fb1380b9fb9", "score": "0.568927", "text": "@Override\n public void printInfo() {\n System.out.printf(\"A %s has a predominant %s color and has a radius of %.2f and %.2f inches and a volume of %.2f cubic inches.\\n\", this.getName(), this.getColor(), this.radiusA, this.radiusB, this.getVolume());\n }", "title": "" }, { "docid": "ac18feaba942559409c685b6b8c03de6", "score": "0.5661846", "text": "@Override\r\n\tpublic void color() {\n\t\tSystem.out.println(\"color\");\r\n\t}", "title": "" }, { "docid": "70c8b776e63ba614c34cb979812b2b9e", "score": "0.5655636", "text": "@Override\n\t\t\tvoid render() {\n\t\t\t\tSystem.out.println(name+id);\n\t\t\t}", "title": "" }, { "docid": "104e0b1ade53b5a8757fa04346afa212", "score": "0.56426096", "text": "@Override\r\n\tpublic String getStringRegistrationNumber() {\n\t\treturn \"Registration Number\";\r\n\t}", "title": "" }, { "docid": "0445a249251ba3fc6cd26dd1a704bce7", "score": "0.5635015", "text": "@Override\r\n public String toString() {\r\n return \"Nummer \" + String.valueOf(serialNumber) + \" \" + name ;\r\n }", "title": "" }, { "docid": "e6fb6e16650034ab429f4a000253acac", "score": "0.562551", "text": "void displayVehicleInfo(String rego);", "title": "" }, { "docid": "dcc2676ab9c6b3730642631d7a0d55c1", "score": "0.556525", "text": "private String getDisplayString() {\r\n\r\n\t\treturn \"LED[\" + ledCoordinate.AorB + \":\" + ledCoordinate.getRow() + \",\" + ledCoordinate.getColumn() + \"] is \";\r\n\t}", "title": "" }, { "docid": "094b190f228a844187105bf3c5157013", "score": "0.5563916", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn this.getcolor().equals(\"black\") ? \"b\" : \"B\";\r\n\t}", "title": "" }, { "docid": "c6b79989145fa8b4d26f5a8a563a39c1", "score": "0.55627793", "text": "public void printFields(){\n System.out.println(number+\" \"+character);\n }", "title": "" }, { "docid": "ab17d8b322f1fab2227ed9a1e3580e21", "score": "0.5539803", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"registration number: \" + getRegistrationNumber() + \", number of passengers: \" + getNoOfPassengers();\n\t}", "title": "" }, { "docid": "58b38387092e2621bc87a8cbb7a21cd8", "score": "0.55323935", "text": "@Override\n public String toString(){\n\n String s;\n s = \"color=\" + getColor().name + \",media=\" + getMedia().name //$NON-NLS-1$ //$NON-NLS-2$\n + \",orientation-requested=\" + getOrientationRequested().name //$NON-NLS-1$\n + \",origin=\" + getOrigin().name //$NON-NLS-1$\n + \",print-quality=\" + getPrintQuality().name //$NON-NLS-1$\n + \",printer-resolution=\" + printerResolution[0] + \"x\" //$NON-NLS-1$ //$NON-NLS-2$\n + printerResolution[1] + (printerResolution[2]==3?\"dpi\":\"dpcm\"); //$NON-NLS-1$ //$NON-NLS-2$\n return s;\n }", "title": "" }, { "docid": "aeb5287d61f65ae2b280fa20200092b4", "score": "0.5527809", "text": "public String toString()\n {\n return \"Bola de color: \" + getColorString();\n }", "title": "" }, { "docid": "96112fc4115989d884c1d625ccc68074", "score": "0.55213547", "text": "private String getColorStringPart(int val) {\n\t\tString ret = Integer.toHexString(val);\n\t\t\n\t\tif (ret.length() == 1) {\n\t\t\treturn \"0\" + ret;\n\t\t} else {\n\t\t\treturn ret;\n\t\t}\n\t}", "title": "" }, { "docid": "3a2920eec9dc2797392e9279eee71f56", "score": "0.55202544", "text": "public String getColorText(){\n\t\tString name = \"\";\n\t\tif (color.equals(Color.red))\n\t\t\tname = \"RED\";\n\t\telse if (color.equals(Color.green))\n\t\t\tname = \"GREEN\";\n\t\telse if (color.equals(Color.blue))\n\t\t\tname = \"BLUE\";\n\t\telse if (color.equals(Color.black))\n\t\t\tname = \"BLACK\";\n\t\t\t\n\t\treturn name;\n\t}", "title": "" }, { "docid": "71e31942dc4cd774977a6b539262fe88", "score": "0.5519209", "text": "public String cString(){\n return color;\n }", "title": "" }, { "docid": "cc2a64e9c3c04f8e02093fb98849304f", "score": "0.55167514", "text": "public String toString(){\n return \"color: \"+color+\", maxSpeed: \"+maxSpeed+\", brand : \" + brand;\n }", "title": "" }, { "docid": "6e7b18dc81dd2a006fbbcb8774ef073d", "score": "0.55156463", "text": "public void printNode(){\n System.out.printf(\"%-35s%,-20.2f\\n\", name, gdpPerCapita);\n }", "title": "" }, { "docid": "4f39f87802a2df0a5e3444125fb91d64", "score": "0.5510667", "text": "public String toString() {\n return String.format(\"\\u001B[0;%sm %s \\u001B[m\", this.color.c + 30, this.shape.c);\n }", "title": "" }, { "docid": "6a8126bd5f0911b326636ba8336b8f4a", "score": "0.55010974", "text": "public void display() {\n\t\tSystem.out.println(\"Color is: \" + super.color);\n\t\tSystem.out.println(\"Color is: \" + color);\n\t}", "title": "" }, { "docid": "72cb228d6f2e756d0f6a9cff12cb1dd7", "score": "0.5500318", "text": "public String toString(){\r\n return (\"The \" + getColour()+\" car has travelled \"+getDistance()+\"km and has \"+getGas()+\"L of gas left. \"+ getConv()+getSports());\r\n }", "title": "" }, { "docid": "14de3f9efe4f51be5b1a476541bd5b8b", "score": "0.5498031", "text": "public void color() {\n\t\tSystem.out.println(\"we are offring difrent collers and models \");\n\t}", "title": "" }, { "docid": "3562f64dc809cca97f628be0979cf7c9", "score": "0.54971486", "text": "public String toString() {\n // pad with spaces\n String redString = String.format(\"%3s\", this.getRed());\n String greenString = String.format(\"%3s\", this.getGreen());\n String blueString = String.format(\"%3s\", this.getBlue());\n\n String output = this.getHexValue() + \", (\" + redString + \",\" + greenString + \",\" + blueString + \")\";\n if(this.name != null) {\n output = output + \", \" + this.getName();\n }\n\n return output;\n }", "title": "" }, { "docid": "bbef927064b8b57e86a65bfe96288647", "score": "0.54964775", "text": "private String generateColorPigmentString(){\n double trans = 1. - this.getAlpha();\n return String.format(locale,\"pigment {color rgb <%.2f,%.2f,%.2f> transmit %.2f }\",this.red,this.green,this.blue,trans);\n }", "title": "" }, { "docid": "078284e8a67b95810e6f90bb104ba904", "score": "0.54964477", "text": "public void print() \n {\n System.out.println(\"THE BLUE J LINE\");\n System.out.println(\"Final destination: \" + destination);\n System.out.println(\"Ticket Price: \" + cost + \" Pence\");\n System.out.println(\"Date: \" + datePurchased);\n \n }", "title": "" }, { "docid": "943dfb9774cc6977552af32225b33d20", "score": "0.5489787", "text": "@Override\n public String toString() {\n return ConsoleColor.colorByColor(getAmmo().toString()) + \"Teleporter\" + ConsoleColor.RESET;\n }", "title": "" }, { "docid": "9371ae72b87c4108c84535ff38196b0a", "score": "0.5485642", "text": "public String toString(){\n return \"<\"+color+\" \"+type+\">\";\n }", "title": "" }, { "docid": "2ee5e93c7866f0de894a91aba6a29222", "score": "0.5474647", "text": "private Color getSmartCarColor() {\n\t\tif (colorWaitCounter <= 0) {\n\t\t\treturn Color.BLUE;\n\t\t} else {\n\t\t\tcolorWaitCounter--;\n\t\t\treturn Color.PINK;\n\t\t}\n\t}", "title": "" }, { "docid": "f1914ab62f8864d3a67b550ba0ec40b0", "score": "0.54651463", "text": "@Override\r\n\tpublic void nextField(Field field) {\r\n\t\tSystem.out.print(field.getColor());\r\n\t}", "title": "" }, { "docid": "70df6eb0017b9fd1ae4e8649450c122b", "score": "0.54516315", "text": "private static Colour observeAndPrintColour() {\n\t\tfloat[] rgb = new float[3];\n\t\tFRONT_COLOUR_SENSOR.fetchSample(rgb, 0);\n\t\tColour clr = whatColourIsThis(rgb);\n\t\tif(!DEBUG_SWITCH) {\n String outputString = rgb[0] + \"\\t\" + rgb[1] + \"\\t\" + rgb[2] + \"\\t\" + ((clr == null) ? \"null\" : clr.toString());\n System.out.println(outputString);\n }\n\t\treturn clr;\n\t}", "title": "" }, { "docid": "170aeca831660c139eda8ae49d3562f4", "score": "0.54510766", "text": "private void convertToHex() {\n // pad with zeros\n String zeroPad = \"00\";\n String hex1 = Integer.toHexString(this.red).toUpperCase();\n String hex1p = zeroPad.substring(hex1.length()) + hex1;\n String hex2 = Integer.toHexString(this.green).toUpperCase();\n String hex2p = zeroPad.substring(hex2.length()) + hex2;\n String hex3 = Integer.toHexString(this.blue).toUpperCase();\n String hex3p = zeroPad.substring(hex3.length()) + hex3;\n this.hexVal = \"#\" + hex1p + hex2p + hex3p;\n System.out.println(this.hexVal);\n }", "title": "" }, { "docid": "f44685a54426a99b70d86d63211f6f38", "score": "0.54405874", "text": "private String getColorText(Integer color) {\n\t\tint red = Color.red(color);\n\t\tint green = Color.green(color);\n\t\tint blue = Color.blue(color);\n\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\tString comma = \", \";\n\t\tstringBuffer.append(red);\n\t\tstringBuffer.append(comma);\n\t\tstringBuffer.append(green);\n\t\tstringBuffer.append(comma);\n\t\tstringBuffer.append(blue);\n\t\treturn stringBuffer.toString();//red+\", \"+green+\", \"+blue;\n\t}", "title": "" }, { "docid": "c510d68b5c8d915bd9faad5dcb6cc7d1", "score": "0.54363006", "text": "public void printNode() { // open printnode\n System.out.printf(\"%-25s%,-20.2f\\n\", name, gdpPerCapita);\n }", "title": "" }, { "docid": "1b7ad0ea6c644695b8144e54baba229b", "score": "0.54351884", "text": "public String getColorLightString(){\n double r = (double) color.getRed()/255;\n double g = (double) color.getGreen()/255;\n double b= (double) color.getBlue()/255;\n\n return \"color rgb <\"+r+\",\"+g+\",\"+b+\">\";\n }", "title": "" }, { "docid": "df59a4f1f81d5c88fb605b1f6d3f44fa", "score": "0.54227304", "text": "public String toString() {\n return \"\\nVegetation Color: \" + getVegetationColour() + \"\\n Year of Event: \" + getYearOfEvent() + \"\\n Color Value: \" + getColourValue() + \"\\n Latitude: \" + getPosLatitude() + \"\\n Longitude \" + getPosLongitude()+\"\\n\";\n }", "title": "" }, { "docid": "1931e040e997316ec36b657d7f1dd902", "score": "0.5407726", "text": "public void printPattern(){\n //Volatility variable set by method call \n setVolatility();\n \n System.out.println();\n //Unique String is printed showing growth and name of BlueChip\n System.out.println(getName() + \" is a Blue Chip Stock with a \" + getGrowthPattern() + \" pattern, meaning it is predicted to grow at a slow but almost guarenteed rate.\" );\n \n System.out.println();\n //Overriding \n }", "title": "" }, { "docid": "9db76506e4fa1f618b9133e9af3c7e82", "score": "0.54073924", "text": "public String getColor()\n\t{\n\t\t\n\t return color;\t\n\t \n\t}", "title": "" }, { "docid": "8bbd55af557252129fe6cbd6e7ef3969", "score": "0.5404805", "text": "@Override\n\tpublic String toString() {\n\t\tfinal StringBuilder sb = new StringBuilder();\n\t\tfinal char u = '_';\n\t\tsb.append(getColor().getRed());\n\t\tsb.append(u);\n\t\tsb.append(getColor().getGreen());\n\t\tsb.append(u);\n\t\tsb.append(getColor().getBlue());\n\t\tsb.append(u);\n\t\tsb.append(getTolerance());\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "b7ac7a96a86a5bbb507a3b2b35712e9b", "score": "0.54002166", "text": "public String getColorInt(){\n return this.colorInt;\n }", "title": "" }, { "docid": "c9f01f9b511e1080fcc88b5233f900fa", "score": "0.5394234", "text": "public String display(){\n return String.format(\"%s EL, BAT: %s RCH: %d\", super.display(), batteryType, rechargeTime);\n }", "title": "" }, { "docid": "cb18f6efb71272058cbbc17ca0a978b3", "score": "0.5393463", "text": "public String toString(){\n if (green){\n return(\"1\");\n }\n else{\n return(\"0\");\n }\n }", "title": "" }, { "docid": "b60c986b638e30d2a517cb666331f679", "score": "0.5390363", "text": "public String getColorString() {\n\t\treturn \"#\"\n\t\t\t\t+ getColorStringPart(this.red)\n\t\t\t\t+ getColorStringPart(this.green)\n\t\t\t\t+ getColorStringPart(this.blue);\n\t}", "title": "" }, { "docid": "39b306afa3adba2946014132d87e67b7", "score": "0.53902656", "text": "public void printDrawing() {\n System.out.print(toString());\n }", "title": "" }, { "docid": "1f6bcdb5d78f70d73f0eec4292de5dd1", "score": "0.53787184", "text": "public String getColor()\n {\n return color; \n }", "title": "" }, { "docid": "cf5bf341521991591c7e131d0176d3b1", "score": "0.53700274", "text": "public static void print() {\n System.out.println(\"\"\"\n ______________¶¶¶¶___1¶¶¶___1¶¶¶__________________\n _______________1¶¶¶1___¶¶¶1___¶¶¶¶________________\n _________________1¶¶1____¶¶¶____¶¶¶_______________\n ___________________¶¶1____¶¶1____¶¶1______________\n ___________________¶¶¶____¶¶¶____¶¶¶______________ \n ─██████─────────██████████████─██████████████─████████████───██████████─██████──────────██████─██████████████─ __________________1¶¶1___1¶¶1____¶¶1______________\n ─██░░██─────────██░░░░░░░░░░██─██░░░░░░░░░░██─██░░░░░░░░████─██░░░░░░██─██░░██████████──██░░██─██░░░░░░░░░░██─ _________________¶¶¶____¶¶¶1___1¶¶1_______________\n ─██░░██─────────██░░██████░░██─██░░██████░░██─██░░████░░░░██─████░░████─██░░░░░░░░░░██──██░░██─██░░██████████─ ________________11_____111_____11_________________\n ─██░░██─────────██░░██──██░░██─██░░██──██░░██─██░░██──██░░██───██░░██───██░░██████░░██──██░░██─██░░██───────── __________¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶________\n ─██░░██─────────██░░██──██░░██─██░░██████░░██─██░░██──██░░██───██░░██───██░░██──██░░██──██░░██─██░░██───────── 1¶¶¶¶¶¶¶¶¶¶¶__¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶________\n ─██░░██─────────██░░██──██░░██─██░░░░░░░░░░██─██░░██──██░░██───██░░██───██░░██──██░░██──██░░██─██░░██──██████─ 1¶¶¶¶¶¶¶¶¶¶¶__1¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶________\n ─██░░██─────────██░░██──██░░██─██░░██████░░██─██░░██──██░░██───██░░██───██░░██──██░░██──██░░██─██░░██──██░░██─ 1¶¶_______¶¶__1¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶________\n ─██░░██─────────██░░██──██░░██─██░░██──██░░██─██░░██──██░░██───██░░██───██░░██──██░░██████░░██─██░░██──██░░██─ 1¶¶_______¶¶__1¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶________\n ─██░░██████████─██░░██████░░██─██░░██──██░░██─██░░████░░░░██─████░░████─██░░██──██░░░░░░░░░░██─██░░██████░░██─ 1¶¶_______¶¶__¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶________\n ─██░░░░░░░░░░██─██░░░░░░░░░░██─██░░██──██░░██─██░░░░░░░░████─██░░░░░░██─██░░██──██████████░░██─██░░░░░░░░░░██─ 1¶¶_______¶¶__1¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶________\n ─██████████████─██████████████─██████──██████─████████████───██████████─██████──────────██████─██████████████─ _¶¶¶¶¶¶¶¶¶¶¶__¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶________\n ────────────────────────────────────────────────────────────────────────────────────────────────────────────── _¶¶¶¶¶¶¶¶¶¶¶__¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶________\n __________¶¶___1¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶1________\n __________1¶¶___¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶_________\n ____________¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶11__________\n 11_____________________________________________111\n 1¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶1 \n \"\"\");\n\n try {\n TimeUnit.MILLISECONDS.sleep(500);\n } catch (Exception e) {\n return;\n }\n }", "title": "" }, { "docid": "350145b1ad35f62901874818352c4517", "score": "0.5368172", "text": "public void displayGreenRouteText()\n {\n for (int i = 0; i < displayLabelGreenRoute.length; i++)\n {\n displayLabelGreenRoute[i].setText(greenRouteList.toString());\n }\n }", "title": "" }, { "docid": "57f2b4ff029a053420a8edf169e33fc9", "score": "0.53651106", "text": "private void setColor() {\r\n\t\tswitch (counter) {\r\n\t\tcase 1:\r\n\t\t\tcarColor = Color.orange;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 2:\r\n\t\t\tcarColor = Color.magenta;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 3:\r\n\t\t\tcarColor = Color.pink;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 4:\r\n\t\t\tcarColor = Color.cyan;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 5:\r\n\t\t\tcarColor = Color.black;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 6:\r\n\t\t\tcarColor = Color.GRAY;\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "9732a3edd217e853705dbea8639b5617", "score": "0.53648496", "text": "public String getColor(){\n\t\treturn color;\n\t}", "title": "" }, { "docid": "8949086569347a706d4018ed5826528e", "score": "0.53621984", "text": "public java.lang.String getColor() {\n return color;\n }", "title": "" }, { "docid": "b37dbcc3f836b0098684c4413f54f853", "score": "0.5358264", "text": "@Override\n public ARMRegister visit(PrintLnNode node) {\n return printHelper(node, true);\n }", "title": "" }, { "docid": "509e88e04b38bcc181c97d07664a465b", "score": "0.5357864", "text": "@Override\r\n\tpublic void printParking() {\r\n\t\tassignVehicleToLane();\r\n\t\tfor (int i = 0; i < parkLot.length; i++) {\r\n\t\t\tSystem.out.print(\"Level \" + (i + 1) + \": \");\r\n\t\t\tfor (int j = 0; j < parkLot[i].length; j++) {\r\n\t\t\t\tif (j % 10 == 1 && j != 1) {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.print(parkLot[i][j]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"------------------------------------------\");\r\n\t}", "title": "" }, { "docid": "60871c53df002dbc7c1a7be8c4f84f43", "score": "0.5356948", "text": "private static String getColoredWakeupNumbers(final int remaining) {\n String result = \"<font color=\" + getWakeupColor() + \">\";\n\n // add numbers 1 to 0 (1 to 10)\n // add and underline the first frame of wakeup\n result = result.concat(\"<u>1</u><br/>\");\n\n for (int i = 2; i <= 10 && i <= remaining; i++) {\n result = result.concat(String.valueOf(i % 10) + \"<br/>\");\n }\n\n // close font color tag and return the string\n return result.concat(\"</font>\");\n }", "title": "" }, { "docid": "52d9d57e1a515df0fdfb2f12ebc71ca9", "score": "0.53549165", "text": "public String getColor(){\n return color;\n }", "title": "" }, { "docid": "52d9d57e1a515df0fdfb2f12ebc71ca9", "score": "0.53549165", "text": "public String getColor(){\n return color;\n }", "title": "" }, { "docid": "4c558f7116eca93c9bf30f57b1da56fa", "score": "0.53508866", "text": "public void print() {\n System.out.printf(\"Node : ( x : %d , y : %d) with State : ( h : %f, k : %f)\\n\",x,y,h,k);\n }", "title": "" }, { "docid": "01541d90d7fda919b8de17e89dd80876", "score": "0.5348844", "text": "public String getColor () {\n return color;\n }", "title": "" }, { "docid": "ae0945e1078a3f32275c9bf8cb9faaf9", "score": "0.53457487", "text": "public void driveCar() {\r\n\t\tint noOfDrivers = 2;\r\n\t\tSystem.out.println(\"drive car\"); // syso cntrl+space\r\n\t\tSystem.out.println(noOfDrivers);\r\n\t\tSystem.out.println(bodyColor);\r\n\t}", "title": "" }, { "docid": "e28ceb12b468c26b660a4b7946c2d552", "score": "0.5338504", "text": "public java.lang.String getColor() {\n return color;\n }", "title": "" }, { "docid": "11ad49c244effe8c6af0007be446fc1a", "score": "0.5329363", "text": "@Override\n public String toString() {\n return \"MAVLINK_MSG_ID_HWSTATUS - sysid:\"+sysid+\" compid:\"+compid+\" Vcc:\"+Vcc+\" I2Cerr:\"+I2Cerr+\"\";\n }", "title": "" }, { "docid": "36160e0c2c4565ab8e7bfb2aafb31ccf", "score": "0.5328995", "text": "@Override\n public String toString() {\n // Local variables\n String output;\n\n output = String.format(\"%s_%s_%s_%s\", NUMBER, COLOR, SHAPE, SHADING);\n return output;\n }", "title": "" }, { "docid": "e7ea291812da2a39a72f0d9ab56404e0", "score": "0.53254455", "text": "public void view ( )\r\n\t{\r\n\t\tSystem.out.print(colour+\" \"+length+\"x\"+width+\"x\"+height+\" \");\r\n\t\tif(hasWheels) System.out.print(\"with wheels \");\r\n\t\tif(hasDoor) System.out.print(\"with doors \");\r\n\t\tif(hasEyes) System.out.print(\"with eyes \");\r\n\t}", "title": "" }, { "docid": "507134039656aa888bb51f7be43d03ca", "score": "0.5323566", "text": "public java.lang.String getColor () {\n\t\treturn color;\n\t}", "title": "" }, { "docid": "d947c03027d5bf2bab0cadcf43bdbde1", "score": "0.5321677", "text": "private void generateColor()\r\n {\r\n //Color Text\r\n Random rand = new Random();\r\n randNum = rand.nextInt(5);\r\n randNum2 = rand.nextInt(5);\r\n \r\n switch(randNum)\r\n {\r\n case 0:\r\n colorLabel = new JLabel(\"Red\");\r\n break;\r\n case 1:\r\n colorLabel = new JLabel(\"Yellow\");\r\n break;\r\n case 2:\r\n colorLabel = new JLabel(\"Green\");\r\n break;\r\n case 3:\r\n colorLabel = new JLabel(\"Blue\");\r\n break;\r\n case 4:\r\n colorLabel = new JLabel(\"Purple\");\r\n break;\r\n }\r\n colorLabel.setBounds(0, 10, 600, 60);\r\n colorLabel.setFont(new Font(\"Times New Roman\", Font.BOLD, 50));\r\n colorLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n switch(randNum2)\r\n {\r\n case 0:\r\n colorLabel.setForeground(Color.RED);\r\n textColor = \"red\";\r\n break;\r\n case 1:\r\n colorLabel.setForeground(Color.YELLOW);\r\n textColor = \"yellow\";\r\n break;\r\n case 2:\r\n colorLabel.setForeground(Color.GREEN);\r\n textColor = \"green\";\r\n break;\r\n case 3:\r\n colorLabel.setForeground(Color.BLUE);\r\n textColor = \"blue\";\r\n break;\r\n case 4:\r\n colorLabel.setForeground(Color.MAGENTA);\r\n textColor = \"purple\";\r\n break;\r\n }\r\n add(colorLabel);\r\n }", "title": "" }, { "docid": "e1cb5b32653913f077aca274db14ec7d", "score": "0.53198457", "text": "public String getColor()\r\n {\r\n return color;\r\n }", "title": "" }, { "docid": "e1cb5b32653913f077aca274db14ec7d", "score": "0.53198457", "text": "public String getColor()\r\n {\r\n return color;\r\n }", "title": "" }, { "docid": "28f9ee5b97a698b2f0b0c92714cd42d0", "score": "0.5312922", "text": "public int getColor(){\n\treturn color;\n }", "title": "" }, { "docid": "d7683d8a8eabee7bf4af17a834b6280b", "score": "0.53049654", "text": "public void printComponents() {\n\t\tfor (Vertex v : vertices) {\n\t\t\tSystem.out.print(\"Vertex ID: \" + v.getId() + \"\\t\");\n\t\t\tSystem.out.print(\"Component: \" + v.getComponent() + \"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "ae5c024521cb7cb67bf420b85f1ddd4d", "score": "0.53043073", "text": "public void displayRedRouteText()\n {\n for (int i = 0; i < displayLabelRedRoute.length; i++)\n {\n displayLabelRedRoute[i].setText(redRouteList.toString());\n }\n }", "title": "" }, { "docid": "581fa09890f0a902076680642262896c", "score": "0.5300298", "text": "@Override\n public void printInfo(){\n System.out.println(\n \"ID Num: \" + getId() + \"\\n\" +\n \"Brand: \" + getBrand().getName() + \"\\n\" +\n \"Car Name: \" + getName() + \"\\n\" +\n \"Weight: \" + getWeight() + \"\\n\" +\n \"Max Permissible Weight : \" + getMaxPermissibleWeight() + \"\\n\" +\n \"Additional info **********************\\n\" +\n \"Fuel: \" + getFuel() + \"\\n\" +\n \"Max fuel: \" + getMaxFuel() + \"\\n\" +\n \"Fuel consumption: \" + getFuelConsumtion() + \"\\n\" +\n \"_____________________________\"\n );\n }", "title": "" }, { "docid": "8ad8f1939a48453a26a82527d893f085", "score": "0.5299661", "text": "public String getColor(){\n return this.color;\n }", "title": "" }, { "docid": "d8b8e43ee2ae8401566eded9f39ac205", "score": "0.52971715", "text": "@Override\n public void printInfo() {\n super.printInfo();\n System.out.printf(\"%d %s%n\", getNumber(), getPosition());\n }", "title": "" }, { "docid": "7dbb2dbf1238e0a774c87a05b7f35cc7", "score": "0.5295888", "text": "public void ColorDesign() {\r\n\t\tString Ausgewaehlt = \"Default\";\r\n\t\tColor Schwarz = new Color(0, 0, 0);\r\n\t\tString Blau = \"#1736E6\";\r\n\t\tString Rot = \"#E30302\";\r\n\t}", "title": "" }, { "docid": "a926bf9f4508ebaa88c17809b93b8e97", "score": "0.5275375", "text": "public String getColor()\n {\n return color;\n }", "title": "" }, { "docid": "a50cea8f6e00d707c741ecd981d0c882", "score": "0.52703905", "text": "public PrintableColor getColor() {\n return this.color;\n }", "title": "" }, { "docid": "3a82374f39156159ae98105a4245f92a", "score": "0.52649444", "text": "public static void printRoad(Car car, Road road, TrafficLight trafficLight) {\n StringBuilder roadString = new StringBuilder();\n StringBuilder carString = new StringBuilder();\n int roadLength = (int) road.getLength();\n\n for (int i = 0; i < roadLength; i++) {\n roadString.append(\"_\");\n }\n if (trafficLight.isGreen) {\n roadString.append(\"|G|\");\n } else if (trafficLight.isYellow) {\n roadString.append(\"|Y|\");\n } else if (trafficLight.isRed) {\n roadString.append(\"|R|\");\n }\n\n int carDistance = (int) car.getDistance();\n int diff = roadLength - carDistance;\n\n if (diff < 0) {\n carDistance = -diff - roadLength;\n }\n for (int i = 0; i < carDistance; i++) {\n if (i != 0) {\n carString.replace(i - 1, carString.capacity(), \" \");\n carString.append(\"˘Ô≈ôﺣ\");\n\n } else {\n carString.append(\"˘Ô≈ôﺣ\");\n }\n }\n System.out.println(String.format(\"%s\\n%s\\n%s\\n\", roadString.toString(), carString.toString(), roadString.toString()));\n }", "title": "" }, { "docid": "736bb808782c3f3efc8ee2687fbfda44", "score": "0.5262209", "text": "public String toString () {\n\t\treturn \"Time: \"+this.name+\" Cor:\"+color.name();\n\t}", "title": "" }, { "docid": "76efd0333be5afb750bdc1d7c649a4fc", "score": "0.52594036", "text": "public int getColor() {\n\treturn color;\n }", "title": "" }, { "docid": "a4f13191e24d849efb834d69c96bb80c", "score": "0.52557796", "text": "private String nuevoColor() {\n\t\tr = (int) random(80, 220);\n\t\tg = (int) random(80, 220);\n\t\tb = (int) random(80, 220);\n\t\tString color = r + \",\" + g + \",\" + b;\n\t\treturn color;\n\n\t}", "title": "" }, { "docid": "3c374e7527e5c96dbedb5a86d817ee29", "score": "0.52544147", "text": "public void showFlightReservation()\r\n\t{\r\n\t\tconsole.setText(FlightSeating.getSeatingChart(inputFlightNumber.getText()));\r\n\t}", "title": "" } ]
54564ff139799718f17b87a340de0999
optional string doctor_name = 5;
[ { "docid": "fe5653f0913fce134ad01345b7fb8dc1", "score": "0.0", "text": "public boolean hasDoctorName() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" } ]
[ { "docid": "4a5f82e080502b128f0f1bee689b1bd2", "score": "0.72636646", "text": "java.lang.String getDoctorName1();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72127414", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72127414", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72127414", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72120345", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": "fee7566c577972490479db60a980fdeb", "score": "0.71432275", "text": "java.lang.String getDoctorName2();", "title": "" }, { "docid": "62884f9993dee88ddd32c7ef922650a3", "score": "0.69550025", "text": "public void setDoctorname(String doctorname) {\r\n this.doctorname = doctorname;\r\n }", "title": "" }, { "docid": "c0f7463a9b84827724f2bf57dea8d745", "score": "0.69319415", "text": "public String getDoctorname() {\r\n return doctorname;\r\n }", "title": "" }, { "docid": "1b388f888b31661c921771e8a2abbea2", "score": "0.6915759", "text": "java.lang.String getDoctor();", "title": "" }, { "docid": "1b388f888b31661c921771e8a2abbea2", "score": "0.6915759", "text": "java.lang.String getDoctor();", "title": "" }, { "docid": "1b388f888b31661c921771e8a2abbea2", "score": "0.69142264", "text": "java.lang.String getDoctor();", "title": "" }, { "docid": "1b388f888b31661c921771e8a2abbea2", "score": "0.69142264", "text": "java.lang.String getDoctor();", "title": "" }, { "docid": "1b388f888b31661c921771e8a2abbea2", "score": "0.69142264", "text": "java.lang.String getDoctor();", "title": "" }, { "docid": "1b388f888b31661c921771e8a2abbea2", "score": "0.69142264", "text": "java.lang.String getDoctor();", "title": "" }, { "docid": "1b388f888b31661c921771e8a2abbea2", "score": "0.69142264", "text": "java.lang.String getDoctor();", "title": "" }, { "docid": "185b68acaec54a86ceedfc1b9172b435", "score": "0.6677008", "text": "public void setDoctor(String Doctor) {\n this.Doctor = Doctor;\n }", "title": "" }, { "docid": "1a97459c6cf32fd6441690111302ea62", "score": "0.6670231", "text": "public void setDoctorno(String doctorno) {\r\n this.doctorno = doctorno;\r\n }", "title": "" }, { "docid": "66fc094454311b249dd89d4d65b7c0aa", "score": "0.6652587", "text": "public Builder setDoctor(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00001000;\n doctor_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5ef29a80b24805798d9f9cee1e5697fa", "score": "0.66190636", "text": "public Builder setDoctor(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n doctor_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "892627c732824a4386e09a975da4b9c8", "score": "0.66036767", "text": "public Builder setDoctor(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n doctor_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3fddb2ca67529fe7691fbf442aa858e7", "score": "0.6573117", "text": "public Builder setDoctor(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n doctor_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3fddb2ca67529fe7691fbf442aa858e7", "score": "0.6573117", "text": "public Builder setDoctor(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n doctor_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3a7f01996629b0dc017b4f4caf80e557", "score": "0.65640813", "text": "public Builder setDoctor(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000800;\n doctor_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1b97cee9c89fb5c93c4975b28ba89cf4", "score": "0.6487904", "text": "public Builder setDoctor(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x08000000;\n doctor_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9492badf2dd74dac071f65d516d29dd5", "score": "0.648004", "text": "public String getDoctorName() \n\t{\n\t\tSystem.out.println(\"Enter doctor specialization to search: \");\n\t\tString str = CliniqueUtility.stringInput();\n\t\treturn str;\n\t}", "title": "" }, { "docid": "200da8fa696ea6e40cbf994cec82860a", "score": "0.6462475", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField1_ |= 0x00001000;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0b744b2a4e51c0cfa1f7c9666eb06997", "score": "0.63806117", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00004000;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0b744b2a4e51c0cfa1f7c9666eb06997", "score": "0.63788724", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00004000;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ed2a27099a73b8ab48e28226c69358b8", "score": "0.63600713", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ed2a27099a73b8ab48e28226c69358b8", "score": "0.635944", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ed2a27099a73b8ab48e28226c69358b8", "score": "0.63593405", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ed2a27099a73b8ab48e28226c69358b8", "score": "0.63593405", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ed2a27099a73b8ab48e28226c69358b8", "score": "0.63593405", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c3dd3852c0856f894ee82e10d263b83e", "score": "0.635906", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a9b7494e3ba4a5781f9cf57ba1fb28dd", "score": "0.6356039", "text": "public String getDoctorno() {\r\n return doctorno;\r\n }", "title": "" }, { "docid": "513dd9d734e993f8fe42d406bffba629", "score": "0.6348609", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "513dd9d734e993f8fe42d406bffba629", "score": "0.63485926", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "457c72bb63c3603c3afb44a9a4d495d8", "score": "0.63424224", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000800;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "29a4579eb7af62acf0f8a9bdadbc9e09", "score": "0.632207", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "29a4579eb7af62acf0f8a9bdadbc9e09", "score": "0.632207", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "29a4579eb7af62acf0f8a9bdadbc9e09", "score": "0.632207", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "29a4579eb7af62acf0f8a9bdadbc9e09", "score": "0.6320846", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "29a4579eb7af62acf0f8a9bdadbc9e09", "score": "0.6320846", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "29a4579eb7af62acf0f8a9bdadbc9e09", "score": "0.6320846", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "29a4579eb7af62acf0f8a9bdadbc9e09", "score": "0.6320846", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2ffe792d360eac7e1ea836a662b0af19", "score": "0.6281051", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "24366bbb3fa0985d799619caaa6d8bd4", "score": "0.6279348", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "24366bbb3fa0985d799619caaa6d8bd4", "score": "0.62776345", "text": "public Builder setDoctorName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n doctorName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c1599db522d3c6f8860967f6beb49b14", "score": "0.6233861", "text": "boolean hasDoctorName1();", "title": "" }, { "docid": "5a66b39fd5d1a395643e48cf31effa88", "score": "0.6224412", "text": "public Builder setDoctorName1(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n doctorName1_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "be7ca67f64de09076125e6706ef356f2", "score": "0.62015957", "text": "java.lang.String getDoctorId();", "title": "" }, { "docid": "4111d4f50673c66aa89e74bba6f9f9d9", "score": "0.61727214", "text": "public String getDoctor() {\n return this.Doctor;\n }", "title": "" }, { "docid": "cafc47fb79bb607187a3aff61cd5b923", "score": "0.6159304", "text": "boolean hasDoctorName2();", "title": "" }, { "docid": "e702f826246f0bf771ed3fd7d652c92e", "score": "0.6113867", "text": "Doctor(String id,String dname,String spec, String availa)\n {\n docId = id;\n name = dname;\n specialization = spec;\n availability = availa;\n }", "title": "" }, { "docid": "bb9457a68148674ebe37256001958bdb", "score": "0.6100649", "text": "public Doctor( int id, String name ){\r\n super (id,name); \r\n\t}", "title": "" }, { "docid": "0572fb2da1ece670cef101ecb7af19fa", "score": "0.6074975", "text": "public void setDoctorName (java.lang.String doctorName) {\n\t\tthis.doctorName = doctorName;\n\t}", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6062249", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "aad2a9ca46623cb57ea6f5a6af01c4d1", "score": "0.6061569", "text": "boolean hasDoctorName();", "title": "" }, { "docid": "2c0e13117a72d74b19a05ceaa7bf5553", "score": "0.5989333", "text": "io.bloombox.schema.person.Person getDoctor();", "title": "" }, { "docid": "397c6af1a528a23fcd231bfe71e7feb8", "score": "0.5980621", "text": "public java.lang.String getDoctorName() {\n java.lang.Object ref = doctorName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n doctorName_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "397c6af1a528a23fcd231bfe71e7feb8", "score": "0.5980621", "text": "public java.lang.String getDoctorName() {\n java.lang.Object ref = doctorName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n doctorName_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "397c6af1a528a23fcd231bfe71e7feb8", "score": "0.5980621", "text": "public java.lang.String getDoctorName() {\n java.lang.Object ref = doctorName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n doctorName_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "397c6af1a528a23fcd231bfe71e7feb8", "score": "0.5980621", "text": "public java.lang.String getDoctorName() {\n java.lang.Object ref = doctorName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n doctorName_ = s;\n }\n return s;\n }\n }", "title": "" } ]
ea0aa6e5d69fc3d5ef645cfb0b82bddf
Test of getIdpaciente method, of class Paciente.
[ { "docid": "ec2a0a86b6e96b4ab29bea175a9f9de0", "score": "0.77804875", "text": "@Test\n public void testGetIdpaciente() {\n System.out.println(\"getIdpaciente\");\n Paciente instance = new Paciente();\n int expResult = 0;\n int result = instance.getIdpaciente();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "title": "" } ]
[ { "docid": "1c9b32f66703c46759aef277eae51c21", "score": "0.72992754", "text": "@Test\r\n\tpublic void testGetByID() {\r\n\t\tPersona p = (Persona) s.get(Persona.class, (long) 1);\r\n\t\tassertEquals(\"dummy\", p.getNombre());\r\n\t\tassertEquals(18, p.getEdad());\r\n\t}", "title": "" }, { "docid": "67cf68a657c1aa50745015204573bacb", "score": "0.72841465", "text": "@Test\n public void testGetId_praticien() {\n System.out.println(\"getId_praticien\");\n Praticien instance = new Praticien();\n int expResult = 0;\n int result = instance.getId_praticien();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "bd7b5a21b4188f7f3e851131aebc713c", "score": "0.7237324", "text": "@Test\r\n public void testFindByIdPago() {\r\n System.out.println(\"findByIdPago\");\r\n int idFactura = 1;\r\n PagoDAOImpl instance = new PagoDAOImpl();\r\n Pago result = instance.findByIdPago(idFactura);\r\n System.out.println(result.getFacturaidFactura());\r\n }", "title": "" }, { "docid": "3afd72238ecc3ae5325394c9ed9a9dae", "score": "0.7027727", "text": "public Long getId_paciente() {\n return id_paciente;\n }", "title": "" }, { "docid": "4e3d604df13022ee27f0440c26e3a3b8", "score": "0.6885025", "text": "@Test\n public void testGetIdentificador() throws SQLException{\n String expResult = \"identif005\";\n String result = item.getIdentificador();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "6104326c97db663b2f07af546a34f387", "score": "0.6823862", "text": "@Test\r\n public void testFindByFacturaidFactura() {\r\n System.out.println(\"findByFacturaidFactura\");\r\n int idFactura = 1;\r\n PagoDAOImpl instance = new PagoDAOImpl();\r\n List<Pago> result = instance.findByFacturaidFactura(idFactura);\r\n for (Pago result1 : result) {\r\n System.out.println(result1.getFacturaidFactura());\r\n }\r\n }", "title": "" }, { "docid": "bf093352441a408257295bf8a67c8dbe", "score": "0.6799544", "text": "@Test(dependsOnMethods = \"buildQueryResult\")\n public void getId() {\n Assert.assertNotNull(asr.getId(), \"Unparseable ID from result\");\n }", "title": "" }, { "docid": "677d5511c579fb455a2a7d2adcaff57c", "score": "0.67882586", "text": "@Test\r\n public void testGetId() {\r\n System.out.println(\"getId\");\r\n Musica instance = new Musica();\r\n Long expResult = null;\r\n Long result = instance.getId();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "528a5b911fe16c74105b9cdb419b92c0", "score": "0.6782788", "text": "@Test\r\n public void testGetId() {\r\n System.out.println(\"getId\");\r\n Atividade instance = new Atividade();\r\n instance.setId(123L);\r\n Long result = instance.getId();\r\n assertEquals(123L, result,0.0000000000001);\r\n }", "title": "" }, { "docid": "0c88da3b61b63fba099af2dee9ea69ba", "score": "0.67429495", "text": "@Test\n public void testSetIdpaciente() {\n System.out.println(\"setIdpaciente\");\n int idpaciente = 0;\n Paciente instance = new Paciente();\n instance.setIdpaciente(idpaciente);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "9713a1b8e6dda0d72a9703cdf9efd3f4", "score": "0.6706569", "text": "@Test\r\n public void testGetIdAdministrador() {\r\n System.out.println(\"getIdAdministrador\");\r\n Administrador instance = new Administrador();\r\n int expResult = 0;\r\n int result = instance.getIdAdministrador();\r\n assertEquals(expResult, result);\r\n }", "title": "" }, { "docid": "1b8258e612f916259f8ffa4cdcf2583b", "score": "0.6691571", "text": "@Test\n public void getTipoComidaTest() \n {\n TipoComidaEntity entity = data.get(0);\n TipoComidaEntity resultEntity = tipoComidaLogic.getTipoComida(entity.getId());\n Assert.assertNotNull(resultEntity);\n \n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre()); \n \n\n }", "title": "" }, { "docid": "b2e382a4fb53d164e11f9ecdefa572a4", "score": "0.66667587", "text": "public void testGetId() {\r\n\r\n\t}", "title": "" }, { "docid": "61065e7fb2222a6c827b93fb15cf75c3", "score": "0.6640223", "text": "@Test\n public void testGetId_utilisateur() {\n System.out.println(\"getId_utilisateur\");\n Visiteurmedical instance = new Visiteurmedical();\n int expResult = 0;\n int result = instance.getId_utilisateur();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "c7d8ea55b4f5c619eb689af2cfe46b7e", "score": "0.6639442", "text": "@Test\n\tpublic void idUsuarioTest(){\n\t\ttry {\n\t\t\tcarona1 = new Carona(null, \"Campina Grande\", \"Jo�o Pessoa\", \"21/06/2013\", \"05:30\", 4, 1);\n\t\t} catch (Exception e){\n\t\t\tassertEquals(e.getMessage(), \"IdDonoDaCarona inválido\");\n\t\t}\n\t}", "title": "" }, { "docid": "068c1875fa08a63ca263637b4151e0da", "score": "0.66335064", "text": "@Test\n\tpublic void deveBuscarUmLancamentoPorId() {\n\n\t\t// cenario\n\t\t// adicionando o metodo que cria e salva um lancamento\n\t\tLancamento lancamento = criarEPersistirUmLancamento();\n\n\t //acao\n\t //buscando um lancamento por id.\n\t Optional<Lancamento> lancamentoEncontrado = repo.findById(lancamento.getId());\n\t \n\t //verificacao\n\t //aqui eu verifico se esse lancamento existe como true.\n\t assertThat(lancamentoEncontrado.isPresent()).isTrue();\n\t\n\t}", "title": "" }, { "docid": "2bf50b2de1b13ad7f8d5dd0e46bbc5d6", "score": "0.6630056", "text": "@Test\r\n\tpublic void testGetPersoonById() {\r\n\t\tPersoon persoon = new Persoon(1, \"Rense\", \"Houwing\", \"De buren\", \"10\", \"8402 GH\", \"Drachten\", \"123456789\", LocalDate.of(1990, 10, 12));\r\n\r\n\t\twhen(persoonRepository.findById(1)).thenReturn(Optional.of(persoon));\r\n\r\n\t\tpersoonService.getPersoonById(persoon.getPersoonnr());\r\n\r\n\t\tverify(persoonRepository).findById(1);\r\n\t}", "title": "" }, { "docid": "d37493ae6ac5faa4e529568d8532b91e", "score": "0.6619595", "text": "@Test public void testGetID() {\n \tassertEquals(id, x.getID());\n }", "title": "" }, { "docid": "b67b6c92bf09303f94dbd19dd308c8d9", "score": "0.6614554", "text": "@Test\n public void testGetId() {\n System.out.println(\"getId\");\n Sancion instance = new Sancion();\n int expResult = -1;\n int result = instance.getId();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "697ea237f482e6a2491c0a97ed42879b", "score": "0.65795904", "text": "@Test\n public void idTest() {\n // TODO: test id\n }", "title": "" }, { "docid": "697ea237f482e6a2491c0a97ed42879b", "score": "0.65795904", "text": "@Test\n public void idTest() {\n // TODO: test id\n }", "title": "" }, { "docid": "697ea237f482e6a2491c0a97ed42879b", "score": "0.65795904", "text": "@Test\n public void idTest() {\n // TODO: test id\n }", "title": "" }, { "docid": "697ea237f482e6a2491c0a97ed42879b", "score": "0.65795904", "text": "@Test\n public void idTest() {\n // TODO: test id\n }", "title": "" }, { "docid": "697ea237f482e6a2491c0a97ed42879b", "score": "0.65795904", "text": "@Test\n public void idTest() {\n // TODO: test id\n }", "title": "" }, { "docid": "697ea237f482e6a2491c0a97ed42879b", "score": "0.65795904", "text": "@Test\n public void idTest() {\n // TODO: test id\n }", "title": "" }, { "docid": "697ea237f482e6a2491c0a97ed42879b", "score": "0.65795904", "text": "@Test\n public void idTest() {\n // TODO: test id\n }", "title": "" }, { "docid": "697ea237f482e6a2491c0a97ed42879b", "score": "0.65795904", "text": "@Test\n public void idTest() {\n // TODO: test id\n }", "title": "" }, { "docid": "697ea237f482e6a2491c0a97ed42879b", "score": "0.65795904", "text": "@Test\n public void idTest() {\n // TODO: test id\n }", "title": "" }, { "docid": "697ea237f482e6a2491c0a97ed42879b", "score": "0.65795904", "text": "@Test\n public void idTest() {\n // TODO: test id\n }", "title": "" }, { "docid": "f8289a18fc8f986f2cd5bfc0a4b86d86", "score": "0.65744483", "text": "public Peticion buscarPeticion(long id);", "title": "" }, { "docid": "c3bb837a380f54ecef1ccafd45671133", "score": "0.6569845", "text": "@Test\n public void testGetId() {\n System.out.println(\"getId\");\n \n instance.setId(2);\n int expResult = 2;\n int result = instance.getId();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "3bf67d3abaa4957a61fe287bc293f420", "score": "0.65664804", "text": "@Test\r\n public void testGetId() {\n\r\n GenerateCptIdUtils.getId();\r\n }", "title": "" }, { "docid": "53c894e852ceb0dbd7c0baeb0307b171", "score": "0.6560083", "text": "public void testGetId() throws Exception {\n this.domain = new DomainImpl(new Long(2), new Long(1), \"test\", new Boolean(false), images);\n\n assertEquals(\"Not the expected id.\", 2, domain.getId().longValue());\n }", "title": "" }, { "docid": "a5fb04db0f4c13b20bc1fc8a86a30b84", "score": "0.6548726", "text": "@Test\n public void testFindById() throws Exception {\n System.out.println(\"findById\");\n Servico expResult = servico2;\n Servico result = servicosService.findById(servico2.getId());\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "54cc25e7d09765d936624f1cdb9b4485", "score": "0.6481687", "text": "@org.junit.Test\n public void testGetId() {\n // arrange : set up the test\n final Data data = mock(Data.class);\n assert data != null;\n\n // act : run the test\n final Integer result = data.getId();\n\n // assert : verify that the test run correctly\n assertNotNull(result);\n }", "title": "" }, { "docid": "a6e3f5ce2bd8bb927c4c3871af0a2dba", "score": "0.64705884", "text": "@Test\r\n public void testSetId() {\r\n System.out.println(\"setId\");\r\n Long id = 123L;\r\n Mensalidade instance = new Mensalidade();\r\n instance.setId(id);\r\n Long resultado = instance.getId();\r\n assertEquals(id, resultado);\r\n }", "title": "" }, { "docid": "0fe50e3044870dcf116adc39488292b4", "score": "0.63911605", "text": "public long getIdPais();", "title": "" }, { "docid": "1f1e5bc4dd777560b6592b20fed14df0", "score": "0.6364915", "text": "@Test\n public void dutyIdTest() {\n // TODO: test dutyId\n }", "title": "" }, { "docid": "a47218ad71e6508e11ffb91aa7192209", "score": "0.63473886", "text": "@Test\n public void testGetId() {\n System.out.println(\"getId\");\n CounterVotesCount instance = new CounterVotesCount();\n Integer id = 1;\n instance.setId(id);\n Integer expResult = 1;\n Integer result = instance.getId();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "4c9c12ddcd43d2a2b54ee33ad06acf57", "score": "0.632926", "text": "@Test\n public void testObtenerUltimoPokemonCreado() throws SQLException {\n System.out.println(\"obtenerUltimoPokemonCreado\");\n Select instance = new Select();\n ResultSet expResult = null;\n ResultSet result = instance.obtenerUltimoPokemonCreado();\n //OBTENER ULTIMO POKEMON CREADO ES TESTPOKEDEX DE ID: 34\n int id = -1;\n while(result.next()){\n id = result.getInt(1);\n System.out.println(\"ID: \"+ String.valueOf(id));\n }\n assertEquals(34, id);\n instance.cerrarConsulta();\n }", "title": "" }, { "docid": "a7793ef7bdbd1cfcbb28ec37846c02bf", "score": "0.6325967", "text": "@Test\n @Ignore\n public void testBuscarPorCodigo() {\n InvestimentoDAO idao = new InvestimentoDAO();\n Investimento investimento = idao.buscarPorCodigo(1L);\n \n System.out.println(investimento);\n }", "title": "" }, { "docid": "4e6691f62b7aa19ac463f74aa536b706", "score": "0.6325534", "text": "@Test\n\tpublic void testGeracaoDoTidComCreditoParceladoPelaLoja() {\n\t\tCalendar dataReferencia = getDataReferencia();\n\t\tAssert.assertEquals(\"73489405115052542003\",new TIDGenerator().getTid(new VISAFormaPagamento(VISATipoTransacao.PARCELADO_JUROS_LOJISTA,3),dataReferencia,NUMERO_FILIACAO_TESTE));\n\t}", "title": "" }, { "docid": "673d4f542c576f5bab01d014b728927a", "score": "0.6311694", "text": "@Test\n public void testGetCodigo() {\n System.out.println(\"getCodigo\");\n PagoDTO instance = null;\n int expResult = 0;\n int result = instance.getCodigo();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "62f5a68fd3ce2e86500648021943744e", "score": "0.630708", "text": "@Test\r\n public void testGetId() {\r\n assertEquals(testId, pastMeeting.getId());\r\n }", "title": "" }, { "docid": "c3f187568f2efec85444b2fbb47703b4", "score": "0.6303767", "text": "@Test\r\n public void testFindByNumTarCredito() {\r\n System.out.println(\"findByNumTarCredito\");\r\n String numTarjetaCredito = \"12348554664\";\r\n PagoDAOImpl instance = new PagoDAOImpl();\r\n List<Pago> result = instance.findByNumTarCredito(numTarjetaCredito);\r\n for (Pago result1 : result) {\r\n System.out.println(result1.getFacturaidFactura());\r\n }\r\n }", "title": "" }, { "docid": "471ce25aa07176c68b5ba791466563f7", "score": "0.6296728", "text": "public void testGetId() {\n assertTrue(\"getId method should return 20060624\", comment.getId() == 20060624);\n }", "title": "" }, { "docid": "9dcb777d45fd4a45f3358f9ffd665904", "score": "0.6293124", "text": "@Test\r\n public void getEjercicioTest() {\r\n EjercicioEntity entity = data.get(0);\r\n EjercicioEntity resultEntity = ejercicioLogic.getEjercicio(entity.getId());\r\n Assert.assertNotNull(resultEntity);\r\n Assert.assertEquals(entity.getId(), resultEntity.getId());\r\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\r\n \r\n }", "title": "" }, { "docid": "b2f8c9da7ed5f71dc57657c18e1b6dc4", "score": "0.6280516", "text": "@Test\r\n public void testGetId() {\r\n System.out.println(\"RocchioUserTest.getId\");\r\n RocchioUser instance = new RocchioUser(new User(2, \"male\", 1, 5, 555, new ArrayList<Rating>(), new ArrayList<Rating>()));\r\n Integer expResult = 2;\r\n Integer result = instance.getId();\r\n assertEquals(expResult, result);\r\n }", "title": "" }, { "docid": "bf38afdfbb8cc65e83967236848a4189", "score": "0.6270354", "text": "@Test\n public void testGetIdfacultad() {\n System.out.println(\"getIdfacultad\");\n PrioridadesBeans instance = new PrioridadesBeans();\n int expResult = 0;\n int result = instance.getIdfacultad();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "d269e359a0dbd616ed59c9af8b8ad2c5", "score": "0.6266719", "text": "@Test\n\tpublic void deveRetornarUmaAgenciaPartirDeIdValido() throws Exception {\n\t\n\t\tEndereco endereco = new Endereco();\n\t\t//cenario\n\t\t\n\t\t\n\t List<ContaCorrente> contas = new ArrayList<>();\n\t contas.add(new ContaCorrente());\n\t contas.add(new ContaCorrente());\n\t contas.add(new ContaCorrente());\n\t contas.add(new ContaCorrente());\n\t \n\t//\tLong idTeste = 1L;\n\tAgencia agenciaTest = new Agencia(1L,\"Agencia Centro\",\"9999.9999\",endereco,contas);\n\t\n\tBDDMockito.given(agenciaService.getById(Mockito.anyLong())).willReturn(agenciaTest);\n\t\t\n\t\n\tMockHttpServletRequestBuilder request = MockMvcRequestBuilders.get(\"/agencias/1\")\n\t\t\t.accept(MediaType.APPLICATION_JSON);\n\t\t\t\n\t\t//execucao e validacao\n\t\n\tmvc.perform(request).andExpect(MockMvcResultMatchers.status().isOk())\n\t.andExpect(jsonPath(\"idAgencia\").value(\"1\"))\n\t.andExpect(jsonPath(\"nome\").value(\"Agencia Centro\"))\n\t.andExpect(jsonPath(\"telefone\").value(\"9999.9999\"));\n\t\n\t\t\n}", "title": "" }, { "docid": "87e60a2acdd7b586c5e6877debc28c47", "score": "0.62550616", "text": "@Test\n public void testGetById_LapPK() {\n System.out.println(\"getById\");\n\n LapPK pk = new LapPK(TOUR_ID, \"DUS\");\n\n Lap result = lap.getById(pk);\n\n assertEquals(result.getId(), pk);\n }", "title": "" }, { "docid": "60f6f3e6d109ef3c6415b0da3e280124", "score": "0.6250427", "text": "@Test\n public void testSelectById() {\n System.out.println(\"selectById\");\n int id = 2;\n AdDAL instance = new AdDAL();\n Ad result = instance.selectById(id);\n assertTrue(result != null);\n }", "title": "" }, { "docid": "2e40aa056ecfa4c8157b2bceb5335e4c", "score": "0.6246667", "text": "@Test\r\n public void testReadAdresByID() {\r\n \r\n AdresDAOMySQL dao = new AdresDAOMySQL();\r\n Adres adresTest = dao.readAdresByID(0);\r\n //get expected result\r\n try(Connection connection = new DBConnector().getConnection();){\r\n PreparedStatement stmnt = connection.prepareStatement(\"select * from adres\");\r\n ResultSet resultaat = stmnt.executeQuery();\r\n \r\n assertEquals(adresTest.getAdres_id(),resultaat.getInt(\"adres_id\"));\r\n } catch (SQLException | ClassNotFoundException ex) {\r\n Logger.getLogger(AdresDaoTest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "5f81b6c739624d13cf9402fa3067380e", "score": "0.6235339", "text": "@Test\r\n public void testFindByTipoTransaccion() {\r\n System.out.println(\"findByTipoTransaccion\");\r\n String tipoTransaccion = \"ATH\";\r\n PagoDAOImpl instance = new PagoDAOImpl();\r\n List<Pago> result = instance.findByTipoTransaccion(tipoTransaccion);\r\n for (Pago result1 : result) {\r\n System.out.println(result1.getFacturaidFactura());\r\n }\r\n }", "title": "" }, { "docid": "6cfb8a977c2c639f72018e9f1382aad0", "score": "0.62103325", "text": "@Test\n\tpublic void testGetIdPromocion() {\n\t\tSystem.out.println(\"getIdPromocion\");\n\n\t\tString expResult = \"Promo\";\n\t\tString result = instance.getIdPromocion();\n\t\tassertEquals(expResult, result);\n\t\t// TODO review the generated test code and remove the default call to fail.\n\n\t}", "title": "" }, { "docid": "cf01460a1ba28eefd0b8b497171a172b", "score": "0.61999726", "text": "@Test\n public void dealIdTest() {\n // TODO: test dealId\n }", "title": "" }, { "docid": "c938d732722cb90f5fb34cafdc95e528", "score": "0.6184069", "text": "@Test\r\n public void getCanchaTest() {\r\n /*\r\n CanchaEntity entity = data.get(0);\r\n CanchaEntity newEntity = propietarioPersistence.find(entity.getId());\r\n Assert.assertNotNull(newEntity);\r\n Assert.assertEquals(entity.getDireccion(), newEntity.getDireccion());\r\n Assert.assertEquals(entity.getCiudad(), newEntity.getCiudad());*/\r\n }", "title": "" }, { "docid": "0cbf87bb1f2ac6e0b5d0997790f8d860", "score": "0.61778945", "text": "@Test\n public void testGetId() {\n LoginUser instance = new LoginUser();\n String expResult = id;\n instance.setId(id);\n String result = instance.getId();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "3d48fe0dbd3acafe7c29c67622e90a7d", "score": "0.6164221", "text": "@Test\n public void updateTipoComidaTest() throws BusinessLogicException \n {\n TipoComidaEntity entity = data.get(0);\n TipoComidaEntity pojoEntity = factory.manufacturePojo(TipoComidaEntity.class);\n pojoEntity.setId(entity.getId());\n tipoComidaLogic.updateTipoComida(pojoEntity.getId(), pojoEntity);\n TipoComidaEntity resp = em.find(TipoComidaEntity.class, entity.getId());\n \n Assert.assertEquals(pojoEntity.getId(), resp.getId());\n Assert.assertEquals(pojoEntity.getNombre(), resp.getNombre());\n \n \n }", "title": "" }, { "docid": "a30fcefbae75ec4a1ce7c72e47e68201", "score": "0.6163516", "text": "public Pitanje findById(Long anketaId);", "title": "" }, { "docid": "4ed0162121f8a37853af32a271da98a7", "score": "0.61631984", "text": "@Test\n public void testGetId_visiteur() {\n System.out.println(\"getId_visiteur\");\n Visiteurmedical instance = new Visiteurmedical();\n int expResult = 0;\n int result = instance.getId_visiteur();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "1abea10f2d1a1a1ee38c390a89eef4af", "score": "0.61599106", "text": "@Test\n public void testFindById() {\n ProjectDAOImpl instance = new ProjectDAOImpl();\n Project result = instance.findById(testProjectId);\n assertNotNull(\"Did not find test project find by id\", result);\n }", "title": "" }, { "docid": "7abd06b9c830b49638df162a71608cb8", "score": "0.6154865", "text": "public int getIdTipologia();", "title": "" }, { "docid": "91f4767c4cb62ef6348e6404c6e94ea0", "score": "0.61516327", "text": "public long getIdProvincia();", "title": "" }, { "docid": "da592fd3aff12d0e3180f50719cbccad", "score": "0.6149982", "text": "@Test\n public void gameIdTest() {\n int expected = 1;\n setGameId(expected);\n int result = getGameId();\n\n assertEquals(expected, result);\n\n }", "title": "" }, { "docid": "ea988885d3523ab0d49b8482bb172873", "score": "0.6149212", "text": "@Test\n public void testModificaDipendente() throws Exception {\n System.out.println(\"modificaDipendente\");\n int id = 0;\n BeanGuiDipendente user = null;\n AppGestionePersonale instance = new AppGestionePersonale();\n BeanGuiDipendente expResult = null;\n BeanGuiDipendente result = instance.modificaDipendente(id, user);\n assertEquals(expResult, result);\n \n }", "title": "" }, { "docid": "6cee679c60d72da24ff7ec34bcb79f27", "score": "0.61104774", "text": "@Test\r\n\tpublic void testCadastrar() {\n\t\tEntityManager entityManager = JPAUtil.getEntityManager();\r\n\t\tProdutoDAO dao = new ProdutoDAO(entityManager);\r\n\t\t// Inicio da transacao\r\n\t\tentityManager.getTransaction().begin();\r\n\t\t// Criacao de um novo produto\r\n\t\tProduto produto = new Produto();\r\n\t\tproduto.setNome(\"bola\");\r\n\t\tproduto.setDescricao(\"futebol de campo\");\r\n\t\tproduto.setDataCadastro(Calendar.getInstance());\r\n\t\tproduto.setEstoque(10.5f);\r\n\t\tproduto.setPreco(45.5);\r\n\t\t//Execucao do cadastro\r\n\t\tdao.cadastrar(produto);\r\n\t\t//Fechamento da conexao\r\n\t\tentityManager.getTransaction().commit();\r\n\t\tentityManager.close();\r\n\t\t\r\n\t\t//Realiza��o do teste de cadastro\r\n\t\tAssert.assertNotNull(produto.getId());\r\n\t}", "title": "" }, { "docid": "360f95af8bc2bb044468a87a20e6d673", "score": "0.6107974", "text": "@Test\n\tvoid cadastroSucessoTest() {\n\t\tassertNotEquals(0, cidade.getCodigo());\n\t}", "title": "" }, { "docid": "320ae4cf96e87c0be7f58c70cbdf9d24", "score": "0.61039734", "text": "@Test\r\n public void testFindByBanco() {\r\n System.out.println(\"findByBanco\");\r\n String banco = \"Banco De Bogotá\";\r\n PagoDAOImpl instance = new PagoDAOImpl();\r\n List<Pago> result = instance.findByBanco(banco);\r\n for (Pago result1 : result) {\r\n System.out.println(result1.getFacturaidFactura());\r\n }\r\n }", "title": "" }, { "docid": "89b8019e3d0fa9522826e8e8b2a4c424", "score": "0.60947394", "text": "@Test\n public void testFindById() {\n System.out.println(\"findById\");\n Long id = null;\n DaoCDHibernate instance = new DaoCDHibernate();\n CD expResult = null;\n CD result = instance.findById(id);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "762b7f1c84aa3fe9633c0cd2ae692567", "score": "0.60902125", "text": "@Test\n public void testSetId_praticien() {\n System.out.println(\"setId_praticien\");\n int id_praticien = 0;\n Praticien instance = new Praticien();\n instance.setId_praticien(id_praticien);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "9f6b68d394716dbacdc33be44d94481a", "score": "0.60884464", "text": "@Test\n public void testGetDireccion() {\n System.out.println(\"getDireccion\");\n Paciente instance = new Paciente();\n String expResult = \"\";\n String result = instance.getDireccion();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "bbd7f3b4436f2717b56e2ada11286ad1", "score": "0.60873723", "text": "@Test\n public void testGetId() {\n assertEquals(\"id should be returned\", 1, red1Sc20.getId());\n assertEquals(\"id should be returned\", 2, green2Sc19.getId());\n assertEquals(\"id should be returned\", 3, blue3Sc21.getId());\n }", "title": "" }, { "docid": "eb4d21b3f871341a2f27c336732f3b7c", "score": "0.60834795", "text": "@Test\n\tpublic void testGetById() throws Exception {\n\t\tassertNull(this.countryService.getById(1));\n\t\tCountry country = this.countryService.insert(\"Azkaban\");\n\t\tassertNotNull(country);\n\t\tassertEquals(country.getName(), \"Azkaban\");\n\t\tassertTrue(country.equals(this.countryService.getById(1)));\n\t\tcountry.setName(\"LaLaLand\");\n\t\tassertFalse(country.equals(this.countryService.getById(1)));\n\t}", "title": "" }, { "docid": "80345044eb5e4914bf8d63f546c9fad9", "score": "0.60832953", "text": "@Test\r\n public void testFindByTipoCuentaTar() {\r\n System.out.println(\"findByTipoCuentaTar\");\r\n String tipoCuetaTar = \"Ahorros\";\r\n PagoDAOImpl instance = new PagoDAOImpl();\r\n List<Pago> result = instance.findByTipoCuentaTar(tipoCuetaTar);\r\n for (Pago result1 : result) {\r\n System.out.println(result1.getFacturaidFactura());\r\n }\r\n }", "title": "" }, { "docid": "935316d8c7260e5573a23d33481d4a12", "score": "0.6080368", "text": "@Test\n public void testGetId() {\n System.out.println(\"getId\");\n Long expResult = null;\n assertEquals(expResult, rdto.getId());\n }", "title": "" }, { "docid": "6093431f21717185344b6aa670aabb56", "score": "0.6072338", "text": "@Test\r\n public void createCanchaTest() {\r\n /*\r\n PodamFactory factory = new PodamFactoryImpl();\r\n CanchaEntity newEntity = factory.manufacturePojo(CanchaEntity.class);\r\n System.out.println(\"Hi, I am: \" + newEntity.ciudad + \" \" + newEntity.tipo);\r\n System.out.println(\"Creando... \" + propietarioPersistence.create(newEntity).ciudad);\r\n CanchaEntity result = propietarioPersistence.create(newEntity);\r\n if(result == null){System.out.println(\"it is null\");}\r\n\r\n Assert.assertNotNull(result);\r\n\r\n CanchaEntity entity = em.find(CanchaEntity.class, result.getId());\r\n\r\n Assert.assertEquals(newEntity.getDireccion(), entity.getDireccion());*/\r\n }", "title": "" }, { "docid": "88ef10289a6244ffd0a676a953a2e1dc", "score": "0.6069132", "text": "public void deletePaciente(Long id) throws PacienteLogicException {\n \tlogger.info(\"recibiendo solictud de eliminar Pacientea con id \" + id);\n \t\n \t// busca la Pacientea con el id suministrado\n /* for (PacienteDTO Paciente : Pacientes) {\n if (Objects.equals(Paciente.getCedula(), id)) {\n \t\n \t// elimina la Pacientea\n \tlogger.info(\"eliminando Pacientea \" + Paciente);\n Pacientes.remove(Paciente);\n return;\n }\n }*/\n\n // no encontró la Pacientea con ese id ?\n logger.severe(\"No existe una Pacientea con ese id\");\n throw new PacienteLogicException(\"No existe una Pacientea con ese id\");\n }", "title": "" }, { "docid": "db2b7f183b3f47b470e12fc653f5ca48", "score": "0.6054547", "text": "@Test\n public void applicantIdTest() {\n // TODO: test applicantId\n }", "title": "" }, { "docid": "d64879d7598c8f2bd1206b23ad775b6c", "score": "0.6050569", "text": "private PecaIntegra buscarPecaExistente(Long id) throws NegocioException {\n\t\tif(id == null || id.longValue() <= 0) {\n\t\t\tthrow new NegocioException(\"Id inválido.\");\n\t\t}\n\t\tPecaIntegra peca = databaseRepository.find(PecaIntegra.class, id);\n\t\tif(peca == null || peca.getId() == null) {\n\t\t\t//throw new NegocioException(\"Id inexistente na base.\");\n\t\t\tthrow new EntidadeNaoEncontradaException(\"Id inexistente na base.\");\n\t\t}\n\t\treturn peca;\n\t}", "title": "" }, { "docid": "d58e774794869dfeb47a7f081a94d8d7", "score": "0.6049287", "text": "@Test\r\n public void getEditorialTest() {\r\n PublicacionEntity entity = data.get(0);\r\n PublicacionEntity resultEntity = publicacionLogic.getPublicacion(entity.getId());\r\n Assert.assertNotNull(resultEntity);\r\n Assert.assertEquals(entity.getId(), resultEntity.getId());\r\n Assert.assertEquals(entity.getPrecio(), resultEntity.getPrecio());\r\n }", "title": "" }, { "docid": "d8e30d4cb0a56585726c0c1a5b4baff4", "score": "0.6044309", "text": "@Test\r\n public void getArticuloTest() {\r\n ArticuloEntity entity = listaPrueba.get(0);\r\n ArticuloEntity newEntity = ap.find(entity.getId());\r\n Assert.assertNotNull(newEntity);\r\n Assert.assertEquals(entity.getTitulo(), newEntity.getTitulo());\r\n }", "title": "" }, { "docid": "ce8a1988fc77bfd6792aad9aab55459a", "score": "0.6038943", "text": "cl.sii.siiDte.DTEDefType.Exportaciones.Encabezado.Receptor.Extranjero.IdAdicRecep xgetIdAdicRecep();", "title": "" }, { "docid": "cce7416ea4194371f1820a609559f331", "score": "0.6037319", "text": "@Test(expected = BusinessLogicException.class)\n public void createTipoComidaTestConIdExistente() throws BusinessLogicException \n {\n TipoComidaEntity newEntity = factory.manufacturePojo(TipoComidaEntity.class);\n \n newEntity.setId(data.get(0).getId());\n tipoComidaLogic.createTipoComida(newEntity);\n }", "title": "" }, { "docid": "a6d62e8d1fdc5654b126bc6e927006f7", "score": "0.6036029", "text": "@Test\n public void test() {\n boolean exption = false;\n \n try {\n \n \n DaoGenerico<Semestre> semestDAO = new DaoGenerico<>();\n Calendar c1 = Calendar.getInstance();\n c1.set(2016, 01-1, 20, 0, 0, 0);\n Calendar c2 = Calendar.getInstance();\n c2.set(2016, 06-1, 01, 11, 59, 59);\n Semestre s= new Semestre(\"2016.1\", c1, c2);\n \n\n\n semestDAO.salvarOuAtualizar(s);\n Semestre semestrePesq = semestDAO.encontrarId(Semestre.class, 1L);\n System.out.println(\"Peguei o \\n\" + semestrePesq.toString());\n\n \n } catch (Exception e) {\n exption = true;\n e.printStackTrace();\n }\n Assert.assertEquals(false, exption);\n }", "title": "" }, { "docid": "e06852ae4955d88c9b61c13869a0e0ce", "score": "0.6035634", "text": "@Test\r\n\tpublic void getUserById() {\n\t\tSystem.out.println(udao.getUserById(1));\r\n\t}", "title": "" }, { "docid": "761e07d776460ac0207b48cda97c09f6", "score": "0.6033817", "text": "public java.lang.Long getId_cierre();", "title": "" }, { "docid": "9b2814b55a06b76531c343e2f65d0e58", "score": "0.6032816", "text": "@Test\n\tvoid testPerteneceAlNumero() {\n\t\tassertFalse(estacionamiento.perteneceAlNumero(1598475132));\n\t\n\t}", "title": "" }, { "docid": "eaad86a7cd98782bf44f4d173d98884c", "score": "0.60202116", "text": "public int buscarId ( String titulo ){\r\n \r\n int resid = -1;\r\n Libro paux = primero;\r\n while ( paux != null ){\r\n if ( paux.titulo.equals(titulo) ){\r\n resid = paux.id;\r\n break;\r\n }\r\n paux = paux.siguiente;\r\n }\r\n return resid;\r\n \r\n }", "title": "" }, { "docid": "0b0d0a827366e2931ac79084cba218bb", "score": "0.6018665", "text": "@Test\r\n public void testCarrega() {\r\n System.out.println(\"carrega\");\r\n Long id = null;\r\n VotoDao instance = null;\r\n Voto expResult = null;\r\n Voto result = instance.carrega(id);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "43dd1f1bdafd70d00548ee0f2f1f8eb5", "score": "0.6015132", "text": "@Test\n public void whenCreateUserSetIdGetReturnId() throws Exception {\n User user = new User();\n user.setId(\"1\");\n String result = user.getId();\n assertThat(result, is(\"1\"));\n }", "title": "" }, { "docid": "c6f61273b3f8c07e36838ff190c91b4c", "score": "0.6008577", "text": "@Test\r\n public void testBuscarUnico() {\r\n System.out.println(\"buscarUnico\");\r\n String id = \"\";\r\n EstudianteDB instance = new EstudianteDB();\r\n Estudiante expResult = null;\r\n Estudiante result = instance.buscarUnico(id);\r\n assertEquals(result, expResult);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "141b027f514e2dd44de3c289d1e8cf61", "score": "0.6005966", "text": "@Test\n public void deberiaConsultarelPrograma(){\n ServiciosUnidadProyectos s = ServiciosUnidadProyectosFactory.getInstance().getServiciosUnidadProyectosTesting();\n Programa prog = new Programa(80,\"Programa Test consult 8\");\n Programa prueba;\n try{\n s.registrarPrograma(prog);\n prueba = s.consultarPrograma(prog.getId());\n assertTrue(prueba!=null);\n }catch(UnidadProyectosException ex){\n fail(ex.getMessage());\n } \n }", "title": "" }, { "docid": "df1c9d82c260954074093704d542b416", "score": "0.600279", "text": "@Test\n\tpublic void test() {\n\t\t\n\t\tSystem.out.println(service.findById(3));\n\t}", "title": "" }, { "docid": "286cd8ecdaa2c1c4fd850bb51fe9276f", "score": "0.5990355", "text": "@Test\n public void testGetPid() {\n System.out.println(\"getPid\");\n Product instance = new Product();\n int expResult = 0;\n int result = instance.getPid();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "c22e2f1477215da4b1a49bffd1c756db", "score": "0.59889895", "text": "public int getIdade(){\n return this.idade;\n }", "title": "" }, { "docid": "bf0df36d0ea52af790e0914717eb1638", "score": "0.59816235", "text": "public int getIdAmbito();", "title": "" }, { "docid": "eefb72ff191dab9ea41812c2d0c38ac9", "score": "0.5977294", "text": "TdPlazaDTO getPlaza(Integer idPlaza);", "title": "" }, { "docid": "9fcab75bad34dba67514d33b27699406", "score": "0.5973444", "text": "java.lang.String getIdAdicEmisor();", "title": "" }, { "docid": "9fcab75bad34dba67514d33b27699406", "score": "0.5973444", "text": "java.lang.String getIdAdicEmisor();", "title": "" } ]
68793d1cc97be57e16c73e5801d00f7e
Verifies that the key and IV are valid
[ { "docid": "f2f0dc9633f8271522dd88c27cbd6bbe", "score": "0.7571859", "text": "private static boolean isValidKeyAndIv(String key, String iv) {\n if(key.length() != KEY_LENGTH || iv.length() != IV_LENGTH) {\n return false;\n }\n for(Character c : key.toCharArray()) {\n if(Character.digit(c, 16) == -1) {\n return false;\n }\n }\n for(Character c : iv.toCharArray()) {\n if(Character.digit(c, 16) == -1) {\n return false;\n }\n }\n return true;\n }", "title": "" } ]
[ { "docid": "95e64ca5e5d8b053b198a4f2230f04c9", "score": "0.61618996", "text": "boolean hasIv();", "title": "" }, { "docid": "acda3646f3b4cc654a6cb8802136ec37", "score": "0.6159036", "text": "@java.lang.Override\n public boolean hasIv() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "103ca202c5b48eba0770f6fa4f00fbc5", "score": "0.6116716", "text": "@java.lang.Override\n public boolean hasIv() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "d85d205912152698d05b266233062c2a", "score": "0.5896668", "text": "boolean verify(Key paramKey, SignedInfo paramSignedInfo, byte[] paramArrayOfbyte, XMLValidateContext paramXMLValidateContext) throws InvalidKeyException, SignatureException, XMLSignatureException {\n/* 150 */ if (paramKey == null || paramSignedInfo == null || paramArrayOfbyte == null) {\n/* 151 */ throw new NullPointerException();\n/* */ }\n/* 153 */ if (!(paramKey instanceof javax.crypto.SecretKey)) {\n/* 154 */ throw new InvalidKeyException(\"key must be SecretKey\");\n/* */ }\n/* 156 */ if (this.hmac == null) {\n/* */ try {\n/* 158 */ this.hmac = Mac.getInstance(getJCAAlgorithm());\n/* 159 */ } catch (NoSuchAlgorithmException noSuchAlgorithmException) {\n/* 160 */ throw new XMLSignatureException(noSuchAlgorithmException);\n/* */ } \n/* */ }\n/* 163 */ if (this.outputLengthSet && this.outputLength < getDigestLength()) {\n/* 164 */ throw new XMLSignatureException(\"HMACOutputLength must not be less than \" + \n/* 165 */ getDigestLength());\n/* */ }\n/* 167 */ this.hmac.init(paramKey);\n/* 168 */ ((DOMSignedInfo)paramSignedInfo).canonicalize(paramXMLValidateContext, new MacOutputStream(this.hmac));\n/* 169 */ byte[] arrayOfByte = this.hmac.doFinal();\n/* */ \n/* 171 */ return MessageDigest.isEqual(paramArrayOfbyte, arrayOfByte);\n/* */ }", "title": "" }, { "docid": "22411ec6cdb9548df2ef7f8155b6cb51", "score": "0.5769118", "text": "public static void sanityCheckKey(String key) throws KVException{\n\t\tif (key==null){\n\t\t\tDEBUG.debug(\"The key is null\");\n\t\t\tthrow new KVException( new KVMessage(KVMessage.RESPTYPE, \"Unknown Error: the key is null\") );\n\t\t}\n\t\tint l = key.length();\n\t\tif ( l > KVMessage.MAX_KEY_LENGTH){\n\t\t\tDEBUG.debug(\"key is oversized\");\n\t\t\tthrow new KVException(new KVMessage(KVMessage.RESPTYPE, \"Oversized key\"));\n\t\t}\n\t\tif( l==0 ){\n\t\t\tDEBUG.debug(\" key is empty \");\n\t\t\tthrow new KVException( new KVMessage(KVMessage.RESPTYPE, \"Unknown Error: the key is empty\") );\n\t\t}\n\t}", "title": "" }, { "docid": "7cbdee0d47d2fadb5ea6aaeb397b2f23", "score": "0.57603365", "text": "void validate(String key, V v);", "title": "" }, { "docid": "ba24210f0d142ff76eb853fa4dd35629", "score": "0.5720603", "text": "CS integrityCheckAlgorithm();", "title": "" }, { "docid": "8e20c0794bc9a3ea5948a0179dc37584", "score": "0.56828535", "text": "boolean hasEncryptionKey();", "title": "" }, { "docid": "8e20c0794bc9a3ea5948a0179dc37584", "score": "0.56828535", "text": "boolean hasEncryptionKey();", "title": "" }, { "docid": "8e20c0794bc9a3ea5948a0179dc37584", "score": "0.56828535", "text": "boolean hasEncryptionKey();", "title": "" }, { "docid": "854c14ebe7aa7ae5a2837553fa1cc284", "score": "0.56619257", "text": "public void setIV(byte[] iv)\n\t{\n\t\tif (iv == null)\n\t\t\tiv = new byte[0];\n\t\tif (iv.length > 16)\n\t\t\tthrow new Error(\"bad IV length: \" + iv.length);\n\t\tbyte[] piv;\n\t\tif (iv.length == 16) {\n\t\t\tpiv = iv;\n\t\t} else {\n\t\t\tpiv = new byte[16];\n\t\t\tSystem.arraycopy(iv, 0, piv, 0, iv.length);\n\t\t\tfor (int i = iv.length; i < piv.length; i ++)\n\t\t\t\tpiv[i] = 0x00;\n\t\t}\n\n\t\tint r0, r1, r2, r3, r4;\n\n\t\tr0 = decode32le(piv, 0);\n\t\tr1 = decode32le(piv, 4);\n\t\tr2 = decode32le(piv, 8);\n\t\tr3 = decode32le(piv, 12);\n\n\t\tr0 ^= serpent24SubKeys[0];\n\t\tr1 ^= serpent24SubKeys[0 + 1];\n\t\tr2 ^= serpent24SubKeys[0 + 2];\n\t\tr3 ^= serpent24SubKeys[0 + 3];\n\t\tr3 ^= r0;\n\t\tr4 = r1;\n\t\tr1 &= r3;\n\t\tr4 ^= r2;\n\t\tr1 ^= r0;\n\t\tr0 |= r3;\n\t\tr0 ^= r4;\n\t\tr4 ^= r3;\n\t\tr3 ^= r2;\n\t\tr2 |= r1;\n\t\tr2 ^= r4;\n\t\tr4 = ~r4;\n\t\tr4 |= r1;\n\t\tr1 ^= r3;\n\t\tr1 ^= r4;\n\t\tr3 |= r0;\n\t\tr1 ^= r3;\n\t\tr4 ^= r3;\n\t\tr1 = rotateLeft(r1, 13);\n\t\tr2 = rotateLeft(r2, 3);\n\t\tr4 = r4 ^ r1 ^ r2;\n\t\tr0 = r0 ^ r2 ^ (r1 << 3);\n\t\tr4 = rotateLeft(r4, 1);\n\t\tr0 = rotateLeft(r0, 7);\n\t\tr1 = r1 ^ r4 ^ r0;\n\t\tr2 = r2 ^ r0 ^ (r4 << 7);\n\t\tr1 = rotateLeft(r1, 5);\n\t\tr2 = rotateLeft(r2, 22);\n\t\tr1 ^= serpent24SubKeys[4];\n\t\tr4 ^= serpent24SubKeys[4 + 1];\n\t\tr2 ^= serpent24SubKeys[4 + 2];\n\t\tr0 ^= serpent24SubKeys[4 + 3];\n\t\tr1 = ~r1;\n\t\tr2 = ~r2;\n\t\tr3 = r1;\n\t\tr1 &= r4;\n\t\tr2 ^= r1;\n\t\tr1 |= r0;\n\t\tr0 ^= r2;\n\t\tr4 ^= r1;\n\t\tr1 ^= r3;\n\t\tr3 |= r4;\n\t\tr4 ^= r0;\n\t\tr2 |= r1;\n\t\tr2 &= r3;\n\t\tr1 ^= r4;\n\t\tr4 &= r2;\n\t\tr4 ^= r1;\n\t\tr1 &= r2;\n\t\tr1 ^= r3;\n\t\tr2 = rotateLeft(r2, 13);\n\t\tr0 = rotateLeft(r0, 3);\n\t\tr1 = r1 ^ r2 ^ r0;\n\t\tr4 = r4 ^ r0 ^ (r2 << 3);\n\t\tr1 = rotateLeft(r1, 1);\n\t\tr4 = rotateLeft(r4, 7);\n\t\tr2 = r2 ^ r1 ^ r4;\n\t\tr0 = r0 ^ r4 ^ (r1 << 7);\n\t\tr2 = rotateLeft(r2, 5);\n\t\tr0 = rotateLeft(r0, 22);\n\t\tr2 ^= serpent24SubKeys[8];\n\t\tr1 ^= serpent24SubKeys[8 + 1];\n\t\tr0 ^= serpent24SubKeys[8 + 2];\n\t\tr4 ^= serpent24SubKeys[8 + 3];\n\t\tr3 = r2;\n\t\tr2 &= r0;\n\t\tr2 ^= r4;\n\t\tr0 ^= r1;\n\t\tr0 ^= r2;\n\t\tr4 |= r3;\n\t\tr4 ^= r1;\n\t\tr3 ^= r0;\n\t\tr1 = r4;\n\t\tr4 |= r3;\n\t\tr4 ^= r2;\n\t\tr2 &= r1;\n\t\tr3 ^= r2;\n\t\tr1 ^= r4;\n\t\tr1 ^= r3;\n\t\tr3 = ~r3;\n\t\tr0 = rotateLeft(r0, 13);\n\t\tr1 = rotateLeft(r1, 3);\n\t\tr4 = r4 ^ r0 ^ r1;\n\t\tr3 = r3 ^ r1 ^ (r0 << 3);\n\t\tr4 = rotateLeft(r4, 1);\n\t\tr3 = rotateLeft(r3, 7);\n\t\tr0 = r0 ^ r4 ^ r3;\n\t\tr1 = r1 ^ r3 ^ (r4 << 7);\n\t\tr0 = rotateLeft(r0, 5);\n\t\tr1 = rotateLeft(r1, 22);\n\t\tr0 ^= serpent24SubKeys[12];\n\t\tr4 ^= serpent24SubKeys[12 + 1];\n\t\tr1 ^= serpent24SubKeys[12 + 2];\n\t\tr3 ^= serpent24SubKeys[12 + 3];\n\t\tr2 = r0;\n\t\tr0 |= r3;\n\t\tr3 ^= r4;\n\t\tr4 &= r2;\n\t\tr2 ^= r1;\n\t\tr1 ^= r3;\n\t\tr3 &= r0;\n\t\tr2 |= r4;\n\t\tr3 ^= r2;\n\t\tr0 ^= r4;\n\t\tr2 &= r0;\n\t\tr4 ^= r3;\n\t\tr2 ^= r1;\n\t\tr4 |= r0;\n\t\tr4 ^= r1;\n\t\tr0 ^= r3;\n\t\tr1 = r4;\n\t\tr4 |= r3;\n\t\tr4 ^= r0;\n\t\tr4 = rotateLeft(r4, 13);\n\t\tr3 = rotateLeft(r3, 3);\n\t\tr1 = r1 ^ r4 ^ r3;\n\t\tr2 = r2 ^ r3 ^ (r4 << 3);\n\t\tr1 = rotateLeft(r1, 1);\n\t\tr2 = rotateLeft(r2, 7);\n\t\tr4 = r4 ^ r1 ^ r2;\n\t\tr3 = r3 ^ r2 ^ (r1 << 7);\n\t\tr4 = rotateLeft(r4, 5);\n\t\tr3 = rotateLeft(r3, 22);\n\t\tr4 ^= serpent24SubKeys[16];\n\t\tr1 ^= serpent24SubKeys[16 + 1];\n\t\tr3 ^= serpent24SubKeys[16 + 2];\n\t\tr2 ^= serpent24SubKeys[16 + 3];\n\t\tr1 ^= r2;\n\t\tr2 = ~r2;\n\t\tr3 ^= r2;\n\t\tr2 ^= r4;\n\t\tr0 = r1;\n\t\tr1 &= r2;\n\t\tr1 ^= r3;\n\t\tr0 ^= r2;\n\t\tr4 ^= r0;\n\t\tr3 &= r0;\n\t\tr3 ^= r4;\n\t\tr4 &= r1;\n\t\tr2 ^= r4;\n\t\tr0 |= r1;\n\t\tr0 ^= r4;\n\t\tr4 |= r2;\n\t\tr4 ^= r3;\n\t\tr3 &= r2;\n\t\tr4 = ~r4;\n\t\tr0 ^= r3;\n\t\tr1 = rotateLeft(r1, 13);\n\t\tr4 = rotateLeft(r4, 3);\n\t\tr0 = r0 ^ r1 ^ r4;\n\t\tr2 = r2 ^ r4 ^ (r1 << 3);\n\t\tr0 = rotateLeft(r0, 1);\n\t\tr2 = rotateLeft(r2, 7);\n\t\tr1 = r1 ^ r0 ^ r2;\n\t\tr4 = r4 ^ r2 ^ (r0 << 7);\n\t\tr1 = rotateLeft(r1, 5);\n\t\tr4 = rotateLeft(r4, 22);\n\t\tr1 ^= serpent24SubKeys[20];\n\t\tr0 ^= serpent24SubKeys[20 + 1];\n\t\tr4 ^= serpent24SubKeys[20 + 2];\n\t\tr2 ^= serpent24SubKeys[20 + 3];\n\t\tr1 ^= r0;\n\t\tr0 ^= r2;\n\t\tr2 = ~r2;\n\t\tr3 = r0;\n\t\tr0 &= r1;\n\t\tr4 ^= r2;\n\t\tr0 ^= r4;\n\t\tr4 |= r3;\n\t\tr3 ^= r2;\n\t\tr2 &= r0;\n\t\tr2 ^= r1;\n\t\tr3 ^= r0;\n\t\tr3 ^= r4;\n\t\tr4 ^= r1;\n\t\tr1 &= r2;\n\t\tr4 = ~r4;\n\t\tr1 ^= r3;\n\t\tr3 |= r2;\n\t\tr4 ^= r3;\n\t\tr0 = rotateLeft(r0, 13);\n\t\tr1 = rotateLeft(r1, 3);\n\t\tr2 = r2 ^ r0 ^ r1;\n\t\tr4 = r4 ^ r1 ^ (r0 << 3);\n\t\tr2 = rotateLeft(r2, 1);\n\t\tr4 = rotateLeft(r4, 7);\n\t\tr0 = r0 ^ r2 ^ r4;\n\t\tr1 = r1 ^ r4 ^ (r2 << 7);\n\t\tr0 = rotateLeft(r0, 5);\n\t\tr1 = rotateLeft(r1, 22);\n\t\tr0 ^= serpent24SubKeys[24];\n\t\tr2 ^= serpent24SubKeys[24 + 1];\n\t\tr1 ^= serpent24SubKeys[24 + 2];\n\t\tr4 ^= serpent24SubKeys[24 + 3];\n\t\tr1 = ~r1;\n\t\tr3 = r4;\n\t\tr4 &= r0;\n\t\tr0 ^= r3;\n\t\tr4 ^= r1;\n\t\tr1 |= r3;\n\t\tr2 ^= r4;\n\t\tr1 ^= r0;\n\t\tr0 |= r2;\n\t\tr1 ^= r2;\n\t\tr3 ^= r0;\n\t\tr0 |= r4;\n\t\tr0 ^= r1;\n\t\tr3 ^= r4;\n\t\tr3 ^= r0;\n\t\tr4 = ~r4;\n\t\tr1 &= r3;\n\t\tr1 ^= r4;\n\t\tr0 = rotateLeft(r0, 13);\n\t\tr3 = rotateLeft(r3, 3);\n\t\tr2 = r2 ^ r0 ^ r3;\n\t\tr1 = r1 ^ r3 ^ (r0 << 3);\n\t\tr2 = rotateLeft(r2, 1);\n\t\tr1 = rotateLeft(r1, 7);\n\t\tr0 = r0 ^ r2 ^ r1;\n\t\tr3 = r3 ^ r1 ^ (r2 << 7);\n\t\tr0 = rotateLeft(r0, 5);\n\t\tr3 = rotateLeft(r3, 22);\n\t\tr0 ^= serpent24SubKeys[28];\n\t\tr2 ^= serpent24SubKeys[28 + 1];\n\t\tr3 ^= serpent24SubKeys[28 + 2];\n\t\tr1 ^= serpent24SubKeys[28 + 3];\n\t\tr4 = r2;\n\t\tr2 |= r3;\n\t\tr2 ^= r1;\n\t\tr4 ^= r3;\n\t\tr3 ^= r2;\n\t\tr1 |= r4;\n\t\tr1 &= r0;\n\t\tr4 ^= r3;\n\t\tr1 ^= r2;\n\t\tr2 |= r4;\n\t\tr2 ^= r0;\n\t\tr0 |= r4;\n\t\tr0 ^= r3;\n\t\tr2 ^= r4;\n\t\tr3 ^= r2;\n\t\tr2 &= r0;\n\t\tr2 ^= r4;\n\t\tr3 = ~r3;\n\t\tr3 |= r0;\n\t\tr4 ^= r3;\n\t\tr4 = rotateLeft(r4, 13);\n\t\tr2 = rotateLeft(r2, 3);\n\t\tr1 = r1 ^ r4 ^ r2;\n\t\tr0 = r0 ^ r2 ^ (r4 << 3);\n\t\tr1 = rotateLeft(r1, 1);\n\t\tr0 = rotateLeft(r0, 7);\n\t\tr4 = r4 ^ r1 ^ r0;\n\t\tr2 = r2 ^ r0 ^ (r1 << 7);\n\t\tr4 = rotateLeft(r4, 5);\n\t\tr2 = rotateLeft(r2, 22);\n\t\tr4 ^= serpent24SubKeys[32];\n\t\tr1 ^= serpent24SubKeys[32 + 1];\n\t\tr2 ^= serpent24SubKeys[32 + 2];\n\t\tr0 ^= serpent24SubKeys[32 + 3];\n\t\tr0 ^= r4;\n\t\tr3 = r1;\n\t\tr1 &= r0;\n\t\tr3 ^= r2;\n\t\tr1 ^= r4;\n\t\tr4 |= r0;\n\t\tr4 ^= r3;\n\t\tr3 ^= r0;\n\t\tr0 ^= r2;\n\t\tr2 |= r1;\n\t\tr2 ^= r3;\n\t\tr3 = ~r3;\n\t\tr3 |= r1;\n\t\tr1 ^= r0;\n\t\tr1 ^= r3;\n\t\tr0 |= r4;\n\t\tr1 ^= r0;\n\t\tr3 ^= r0;\n\t\tr1 = rotateLeft(r1, 13);\n\t\tr2 = rotateLeft(r2, 3);\n\t\tr3 = r3 ^ r1 ^ r2;\n\t\tr4 = r4 ^ r2 ^ (r1 << 3);\n\t\tr3 = rotateLeft(r3, 1);\n\t\tr4 = rotateLeft(r4, 7);\n\t\tr1 = r1 ^ r3 ^ r4;\n\t\tr2 = r2 ^ r4 ^ (r3 << 7);\n\t\tr1 = rotateLeft(r1, 5);\n\t\tr2 = rotateLeft(r2, 22);\n\t\tr1 ^= serpent24SubKeys[36];\n\t\tr3 ^= serpent24SubKeys[36 + 1];\n\t\tr2 ^= serpent24SubKeys[36 + 2];\n\t\tr4 ^= serpent24SubKeys[36 + 3];\n\t\tr1 = ~r1;\n\t\tr2 = ~r2;\n\t\tr0 = r1;\n\t\tr1 &= r3;\n\t\tr2 ^= r1;\n\t\tr1 |= r4;\n\t\tr4 ^= r2;\n\t\tr3 ^= r1;\n\t\tr1 ^= r0;\n\t\tr0 |= r3;\n\t\tr3 ^= r4;\n\t\tr2 |= r1;\n\t\tr2 &= r0;\n\t\tr1 ^= r3;\n\t\tr3 &= r2;\n\t\tr3 ^= r1;\n\t\tr1 &= r2;\n\t\tr1 ^= r0;\n\t\tr2 = rotateLeft(r2, 13);\n\t\tr4 = rotateLeft(r4, 3);\n\t\tr1 = r1 ^ r2 ^ r4;\n\t\tr3 = r3 ^ r4 ^ (r2 << 3);\n\t\tr1 = rotateLeft(r1, 1);\n\t\tr3 = rotateLeft(r3, 7);\n\t\tr2 = r2 ^ r1 ^ r3;\n\t\tr4 = r4 ^ r3 ^ (r1 << 7);\n\t\tr2 = rotateLeft(r2, 5);\n\t\tr4 = rotateLeft(r4, 22);\n\t\tr2 ^= serpent24SubKeys[40];\n\t\tr1 ^= serpent24SubKeys[40 + 1];\n\t\tr4 ^= serpent24SubKeys[40 + 2];\n\t\tr3 ^= serpent24SubKeys[40 + 3];\n\t\tr0 = r2;\n\t\tr2 &= r4;\n\t\tr2 ^= r3;\n\t\tr4 ^= r1;\n\t\tr4 ^= r2;\n\t\tr3 |= r0;\n\t\tr3 ^= r1;\n\t\tr0 ^= r4;\n\t\tr1 = r3;\n\t\tr3 |= r0;\n\t\tr3 ^= r2;\n\t\tr2 &= r1;\n\t\tr0 ^= r2;\n\t\tr1 ^= r3;\n\t\tr1 ^= r0;\n\t\tr0 = ~r0;\n\t\tr4 = rotateLeft(r4, 13);\n\t\tr1 = rotateLeft(r1, 3);\n\t\tr3 = r3 ^ r4 ^ r1;\n\t\tr0 = r0 ^ r1 ^ (r4 << 3);\n\t\tr3 = rotateLeft(r3, 1);\n\t\tr0 = rotateLeft(r0, 7);\n\t\tr4 = r4 ^ r3 ^ r0;\n\t\tr1 = r1 ^ r0 ^ (r3 << 7);\n\t\tr4 = rotateLeft(r4, 5);\n\t\tr1 = rotateLeft(r1, 22);\n\t\tr4 ^= serpent24SubKeys[44];\n\t\tr3 ^= serpent24SubKeys[44 + 1];\n\t\tr1 ^= serpent24SubKeys[44 + 2];\n\t\tr0 ^= serpent24SubKeys[44 + 3];\n\t\tr2 = r4;\n\t\tr4 |= r0;\n\t\tr0 ^= r3;\n\t\tr3 &= r2;\n\t\tr2 ^= r1;\n\t\tr1 ^= r0;\n\t\tr0 &= r4;\n\t\tr2 |= r3;\n\t\tr0 ^= r2;\n\t\tr4 ^= r3;\n\t\tr2 &= r4;\n\t\tr3 ^= r0;\n\t\tr2 ^= r1;\n\t\tr3 |= r4;\n\t\tr3 ^= r1;\n\t\tr4 ^= r0;\n\t\tr1 = r3;\n\t\tr3 |= r0;\n\t\tr3 ^= r4;\n\t\tr3 = rotateLeft(r3, 13);\n\t\tr0 = rotateLeft(r0, 3);\n\t\tr1 = r1 ^ r3 ^ r0;\n\t\tr2 = r2 ^ r0 ^ (r3 << 3);\n\t\tr1 = rotateLeft(r1, 1);\n\t\tr2 = rotateLeft(r2, 7);\n\t\tr3 = r3 ^ r1 ^ r2;\n\t\tr0 = r0 ^ r2 ^ (r1 << 7);\n\t\tr3 = rotateLeft(r3, 5);\n\t\tr0 = rotateLeft(r0, 22);\n\t\tlfsr[9] = r3;\n\t\tlfsr[8] = r1;\n\t\tlfsr[7] = r0;\n\t\tlfsr[6] = r2;\n\t\tr3 ^= serpent24SubKeys[48];\n\t\tr1 ^= serpent24SubKeys[48 + 1];\n\t\tr0 ^= serpent24SubKeys[48 + 2];\n\t\tr2 ^= serpent24SubKeys[48 + 3];\n\t\tr1 ^= r2;\n\t\tr2 = ~r2;\n\t\tr0 ^= r2;\n\t\tr2 ^= r3;\n\t\tr4 = r1;\n\t\tr1 &= r2;\n\t\tr1 ^= r0;\n\t\tr4 ^= r2;\n\t\tr3 ^= r4;\n\t\tr0 &= r4;\n\t\tr0 ^= r3;\n\t\tr3 &= r1;\n\t\tr2 ^= r3;\n\t\tr4 |= r1;\n\t\tr4 ^= r3;\n\t\tr3 |= r2;\n\t\tr3 ^= r0;\n\t\tr0 &= r2;\n\t\tr3 = ~r3;\n\t\tr4 ^= r0;\n\t\tr1 = rotateLeft(r1, 13);\n\t\tr3 = rotateLeft(r3, 3);\n\t\tr4 = r4 ^ r1 ^ r3;\n\t\tr2 = r2 ^ r3 ^ (r1 << 3);\n\t\tr4 = rotateLeft(r4, 1);\n\t\tr2 = rotateLeft(r2, 7);\n\t\tr1 = r1 ^ r4 ^ r2;\n\t\tr3 = r3 ^ r2 ^ (r4 << 7);\n\t\tr1 = rotateLeft(r1, 5);\n\t\tr3 = rotateLeft(r3, 22);\n\t\tr1 ^= serpent24SubKeys[52];\n\t\tr4 ^= serpent24SubKeys[52 + 1];\n\t\tr3 ^= serpent24SubKeys[52 + 2];\n\t\tr2 ^= serpent24SubKeys[52 + 3];\n\t\tr1 ^= r4;\n\t\tr4 ^= r2;\n\t\tr2 = ~r2;\n\t\tr0 = r4;\n\t\tr4 &= r1;\n\t\tr3 ^= r2;\n\t\tr4 ^= r3;\n\t\tr3 |= r0;\n\t\tr0 ^= r2;\n\t\tr2 &= r4;\n\t\tr2 ^= r1;\n\t\tr0 ^= r4;\n\t\tr0 ^= r3;\n\t\tr3 ^= r1;\n\t\tr1 &= r2;\n\t\tr3 = ~r3;\n\t\tr1 ^= r0;\n\t\tr0 |= r2;\n\t\tr3 ^= r0;\n\t\tr4 = rotateLeft(r4, 13);\n\t\tr1 = rotateLeft(r1, 3);\n\t\tr2 = r2 ^ r4 ^ r1;\n\t\tr3 = r3 ^ r1 ^ (r4 << 3);\n\t\tr2 = rotateLeft(r2, 1);\n\t\tr3 = rotateLeft(r3, 7);\n\t\tr4 = r4 ^ r2 ^ r3;\n\t\tr1 = r1 ^ r3 ^ (r2 << 7);\n\t\tr4 = rotateLeft(r4, 5);\n\t\tr1 = rotateLeft(r1, 22);\n\t\tr4 ^= serpent24SubKeys[56];\n\t\tr2 ^= serpent24SubKeys[56 + 1];\n\t\tr1 ^= serpent24SubKeys[56 + 2];\n\t\tr3 ^= serpent24SubKeys[56 + 3];\n\t\tr1 = ~r1;\n\t\tr0 = r3;\n\t\tr3 &= r4;\n\t\tr4 ^= r0;\n\t\tr3 ^= r1;\n\t\tr1 |= r0;\n\t\tr2 ^= r3;\n\t\tr1 ^= r4;\n\t\tr4 |= r2;\n\t\tr1 ^= r2;\n\t\tr0 ^= r4;\n\t\tr4 |= r3;\n\t\tr4 ^= r1;\n\t\tr0 ^= r3;\n\t\tr0 ^= r4;\n\t\tr3 = ~r3;\n\t\tr1 &= r0;\n\t\tr1 ^= r3;\n\t\tr4 = rotateLeft(r4, 13);\n\t\tr0 = rotateLeft(r0, 3);\n\t\tr2 = r2 ^ r4 ^ r0;\n\t\tr1 = r1 ^ r0 ^ (r4 << 3);\n\t\tr2 = rotateLeft(r2, 1);\n\t\tr1 = rotateLeft(r1, 7);\n\t\tr4 = r4 ^ r2 ^ r1;\n\t\tr0 = r0 ^ r1 ^ (r2 << 7);\n\t\tr4 = rotateLeft(r4, 5);\n\t\tr0 = rotateLeft(r0, 22);\n\t\tr4 ^= serpent24SubKeys[60];\n\t\tr2 ^= serpent24SubKeys[60 + 1];\n\t\tr0 ^= serpent24SubKeys[60 + 2];\n\t\tr1 ^= serpent24SubKeys[60 + 3];\n\t\tr3 = r2;\n\t\tr2 |= r0;\n\t\tr2 ^= r1;\n\t\tr3 ^= r0;\n\t\tr0 ^= r2;\n\t\tr1 |= r3;\n\t\tr1 &= r4;\n\t\tr3 ^= r0;\n\t\tr1 ^= r2;\n\t\tr2 |= r3;\n\t\tr2 ^= r4;\n\t\tr4 |= r3;\n\t\tr4 ^= r0;\n\t\tr2 ^= r3;\n\t\tr0 ^= r2;\n\t\tr2 &= r4;\n\t\tr2 ^= r3;\n\t\tr0 = ~r0;\n\t\tr0 |= r4;\n\t\tr3 ^= r0;\n\t\tr3 = rotateLeft(r3, 13);\n\t\tr2 = rotateLeft(r2, 3);\n\t\tr1 = r1 ^ r3 ^ r2;\n\t\tr4 = r4 ^ r2 ^ (r3 << 3);\n\t\tr1 = rotateLeft(r1, 1);\n\t\tr4 = rotateLeft(r4, 7);\n\t\tr3 = r3 ^ r1 ^ r4;\n\t\tr2 = r2 ^ r4 ^ (r1 << 7);\n\t\tr3 = rotateLeft(r3, 5);\n\t\tr2 = rotateLeft(r2, 22);\n\t\tr3 ^= serpent24SubKeys[64];\n\t\tr1 ^= serpent24SubKeys[64 + 1];\n\t\tr2 ^= serpent24SubKeys[64 + 2];\n\t\tr4 ^= serpent24SubKeys[64 + 3];\n\t\tr4 ^= r3;\n\t\tr0 = r1;\n\t\tr1 &= r4;\n\t\tr0 ^= r2;\n\t\tr1 ^= r3;\n\t\tr3 |= r4;\n\t\tr3 ^= r0;\n\t\tr0 ^= r4;\n\t\tr4 ^= r2;\n\t\tr2 |= r1;\n\t\tr2 ^= r0;\n\t\tr0 = ~r0;\n\t\tr0 |= r1;\n\t\tr1 ^= r4;\n\t\tr1 ^= r0;\n\t\tr4 |= r3;\n\t\tr1 ^= r4;\n\t\tr0 ^= r4;\n\t\tr1 = rotateLeft(r1, 13);\n\t\tr2 = rotateLeft(r2, 3);\n\t\tr0 = r0 ^ r1 ^ r2;\n\t\tr3 = r3 ^ r2 ^ (r1 << 3);\n\t\tr0 = rotateLeft(r0, 1);\n\t\tr3 = rotateLeft(r3, 7);\n\t\tr1 = r1 ^ r0 ^ r3;\n\t\tr2 = r2 ^ r3 ^ (r0 << 7);\n\t\tr1 = rotateLeft(r1, 5);\n\t\tr2 = rotateLeft(r2, 22);\n\t\tr1 ^= serpent24SubKeys[68];\n\t\tr0 ^= serpent24SubKeys[68 + 1];\n\t\tr2 ^= serpent24SubKeys[68 + 2];\n\t\tr3 ^= serpent24SubKeys[68 + 3];\n\t\tr1 = ~r1;\n\t\tr2 = ~r2;\n\t\tr4 = r1;\n\t\tr1 &= r0;\n\t\tr2 ^= r1;\n\t\tr1 |= r3;\n\t\tr3 ^= r2;\n\t\tr0 ^= r1;\n\t\tr1 ^= r4;\n\t\tr4 |= r0;\n\t\tr0 ^= r3;\n\t\tr2 |= r1;\n\t\tr2 &= r4;\n\t\tr1 ^= r0;\n\t\tr0 &= r2;\n\t\tr0 ^= r1;\n\t\tr1 &= r2;\n\t\tr1 ^= r4;\n\t\tr2 = rotateLeft(r2, 13);\n\t\tr3 = rotateLeft(r3, 3);\n\t\tr1 = r1 ^ r2 ^ r3;\n\t\tr0 = r0 ^ r3 ^ (r2 << 3);\n\t\tr1 = rotateLeft(r1, 1);\n\t\tr0 = rotateLeft(r0, 7);\n\t\tr2 = r2 ^ r1 ^ r0;\n\t\tr3 = r3 ^ r0 ^ (r1 << 7);\n\t\tr2 = rotateLeft(r2, 5);\n\t\tr3 = rotateLeft(r3, 22);\n\t\tfsmR1 = r2;\n\t\tlfsr[4] = r1;\n\t\tfsmR2 = r3;\n\t\tlfsr[5] = r0;\n\t\tr2 ^= serpent24SubKeys[72];\n\t\tr1 ^= serpent24SubKeys[72 + 1];\n\t\tr3 ^= serpent24SubKeys[72 + 2];\n\t\tr0 ^= serpent24SubKeys[72 + 3];\n\t\tr4 = r2;\n\t\tr2 &= r3;\n\t\tr2 ^= r0;\n\t\tr3 ^= r1;\n\t\tr3 ^= r2;\n\t\tr0 |= r4;\n\t\tr0 ^= r1;\n\t\tr4 ^= r3;\n\t\tr1 = r0;\n\t\tr0 |= r4;\n\t\tr0 ^= r2;\n\t\tr2 &= r1;\n\t\tr4 ^= r2;\n\t\tr1 ^= r0;\n\t\tr1 ^= r4;\n\t\tr4 = ~r4;\n\t\tr3 = rotateLeft(r3, 13);\n\t\tr1 = rotateLeft(r1, 3);\n\t\tr0 = r0 ^ r3 ^ r1;\n\t\tr4 = r4 ^ r1 ^ (r3 << 3);\n\t\tr0 = rotateLeft(r0, 1);\n\t\tr4 = rotateLeft(r4, 7);\n\t\tr3 = r3 ^ r0 ^ r4;\n\t\tr1 = r1 ^ r4 ^ (r0 << 7);\n\t\tr3 = rotateLeft(r3, 5);\n\t\tr1 = rotateLeft(r1, 22);\n\t\tr3 ^= serpent24SubKeys[76];\n\t\tr0 ^= serpent24SubKeys[76 + 1];\n\t\tr1 ^= serpent24SubKeys[76 + 2];\n\t\tr4 ^= serpent24SubKeys[76 + 3];\n\t\tr2 = r3;\n\t\tr3 |= r4;\n\t\tr4 ^= r0;\n\t\tr0 &= r2;\n\t\tr2 ^= r1;\n\t\tr1 ^= r4;\n\t\tr4 &= r3;\n\t\tr2 |= r0;\n\t\tr4 ^= r2;\n\t\tr3 ^= r0;\n\t\tr2 &= r3;\n\t\tr0 ^= r4;\n\t\tr2 ^= r1;\n\t\tr0 |= r3;\n\t\tr0 ^= r1;\n\t\tr3 ^= r4;\n\t\tr1 = r0;\n\t\tr0 |= r4;\n\t\tr0 ^= r3;\n\t\tr0 = rotateLeft(r0, 13);\n\t\tr4 = rotateLeft(r4, 3);\n\t\tr1 = r1 ^ r0 ^ r4;\n\t\tr2 = r2 ^ r4 ^ (r0 << 3);\n\t\tr1 = rotateLeft(r1, 1);\n\t\tr2 = rotateLeft(r2, 7);\n\t\tr0 = r0 ^ r1 ^ r2;\n\t\tr4 = r4 ^ r2 ^ (r1 << 7);\n\t\tr0 = rotateLeft(r0, 5);\n\t\tr4 = rotateLeft(r4, 22);\n\t\tr0 ^= serpent24SubKeys[80];\n\t\tr1 ^= serpent24SubKeys[80 + 1];\n\t\tr4 ^= serpent24SubKeys[80 + 2];\n\t\tr2 ^= serpent24SubKeys[80 + 3];\n\t\tr1 ^= r2;\n\t\tr2 = ~r2;\n\t\tr4 ^= r2;\n\t\tr2 ^= r0;\n\t\tr3 = r1;\n\t\tr1 &= r2;\n\t\tr1 ^= r4;\n\t\tr3 ^= r2;\n\t\tr0 ^= r3;\n\t\tr4 &= r3;\n\t\tr4 ^= r0;\n\t\tr0 &= r1;\n\t\tr2 ^= r0;\n\t\tr3 |= r1;\n\t\tr3 ^= r0;\n\t\tr0 |= r2;\n\t\tr0 ^= r4;\n\t\tr4 &= r2;\n\t\tr0 = ~r0;\n\t\tr3 ^= r4;\n\t\tr1 = rotateLeft(r1, 13);\n\t\tr0 = rotateLeft(r0, 3);\n\t\tr3 = r3 ^ r1 ^ r0;\n\t\tr2 = r2 ^ r0 ^ (r1 << 3);\n\t\tr3 = rotateLeft(r3, 1);\n\t\tr2 = rotateLeft(r2, 7);\n\t\tr1 = r1 ^ r3 ^ r2;\n\t\tr0 = r0 ^ r2 ^ (r3 << 7);\n\t\tr1 = rotateLeft(r1, 5);\n\t\tr0 = rotateLeft(r0, 22);\n\t\tr1 ^= serpent24SubKeys[84];\n\t\tr3 ^= serpent24SubKeys[84 + 1];\n\t\tr0 ^= serpent24SubKeys[84 + 2];\n\t\tr2 ^= serpent24SubKeys[84 + 3];\n\t\tr1 ^= r3;\n\t\tr3 ^= r2;\n\t\tr2 = ~r2;\n\t\tr4 = r3;\n\t\tr3 &= r1;\n\t\tr0 ^= r2;\n\t\tr3 ^= r0;\n\t\tr0 |= r4;\n\t\tr4 ^= r2;\n\t\tr2 &= r3;\n\t\tr2 ^= r1;\n\t\tr4 ^= r3;\n\t\tr4 ^= r0;\n\t\tr0 ^= r1;\n\t\tr1 &= r2;\n\t\tr0 = ~r0;\n\t\tr1 ^= r4;\n\t\tr4 |= r2;\n\t\tr0 ^= r4;\n\t\tr3 = rotateLeft(r3, 13);\n\t\tr1 = rotateLeft(r1, 3);\n\t\tr2 = r2 ^ r3 ^ r1;\n\t\tr0 = r0 ^ r1 ^ (r3 << 3);\n\t\tr2 = rotateLeft(r2, 1);\n\t\tr0 = rotateLeft(r0, 7);\n\t\tr3 = r3 ^ r2 ^ r0;\n\t\tr1 = r1 ^ r0 ^ (r2 << 7);\n\t\tr3 = rotateLeft(r3, 5);\n\t\tr1 = rotateLeft(r1, 22);\n\t\tr3 ^= serpent24SubKeys[88];\n\t\tr2 ^= serpent24SubKeys[88 + 1];\n\t\tr1 ^= serpent24SubKeys[88 + 2];\n\t\tr0 ^= serpent24SubKeys[88 + 3];\n\t\tr1 = ~r1;\n\t\tr4 = r0;\n\t\tr0 &= r3;\n\t\tr3 ^= r4;\n\t\tr0 ^= r1;\n\t\tr1 |= r4;\n\t\tr2 ^= r0;\n\t\tr1 ^= r3;\n\t\tr3 |= r2;\n\t\tr1 ^= r2;\n\t\tr4 ^= r3;\n\t\tr3 |= r0;\n\t\tr3 ^= r1;\n\t\tr4 ^= r0;\n\t\tr4 ^= r3;\n\t\tr0 = ~r0;\n\t\tr1 &= r4;\n\t\tr1 ^= r0;\n\t\tr3 = rotateLeft(r3, 13);\n\t\tr4 = rotateLeft(r4, 3);\n\t\tr2 = r2 ^ r3 ^ r4;\n\t\tr1 = r1 ^ r4 ^ (r3 << 3);\n\t\tr2 = rotateLeft(r2, 1);\n\t\tr1 = rotateLeft(r1, 7);\n\t\tr3 = r3 ^ r2 ^ r1;\n\t\tr4 = r4 ^ r1 ^ (r2 << 7);\n\t\tr3 = rotateLeft(r3, 5);\n\t\tr4 = rotateLeft(r4, 22);\n\t\tr3 ^= serpent24SubKeys[92];\n\t\tr2 ^= serpent24SubKeys[92 + 1];\n\t\tr4 ^= serpent24SubKeys[92 + 2];\n\t\tr1 ^= serpent24SubKeys[92 + 3];\n\t\tr0 = r2;\n\t\tr2 |= r4;\n\t\tr2 ^= r1;\n\t\tr0 ^= r4;\n\t\tr4 ^= r2;\n\t\tr1 |= r0;\n\t\tr1 &= r3;\n\t\tr0 ^= r4;\n\t\tr1 ^= r2;\n\t\tr2 |= r0;\n\t\tr2 ^= r3;\n\t\tr3 |= r0;\n\t\tr3 ^= r4;\n\t\tr2 ^= r0;\n\t\tr4 ^= r2;\n\t\tr2 &= r3;\n\t\tr2 ^= r0;\n\t\tr4 = ~r4;\n\t\tr4 |= r3;\n\t\tr0 ^= r4;\n\t\tr0 = rotateLeft(r0, 13);\n\t\tr2 = rotateLeft(r2, 3);\n\t\tr1 = r1 ^ r0 ^ r2;\n\t\tr3 = r3 ^ r2 ^ (r0 << 3);\n\t\tr1 = rotateLeft(r1, 1);\n\t\tr3 = rotateLeft(r3, 7);\n\t\tr0 = r0 ^ r1 ^ r3;\n\t\tr2 = r2 ^ r3 ^ (r1 << 7);\n\t\tr0 = rotateLeft(r0, 5);\n\t\tr2 = rotateLeft(r2, 22);\n\t\tr0 ^= serpent24SubKeys[96];\n\t\tr1 ^= serpent24SubKeys[96 + 1];\n\t\tr2 ^= serpent24SubKeys[96 + 2];\n\t\tr3 ^= serpent24SubKeys[96 + 3];\n\t\tlfsr[3] = r0;\n\t\tlfsr[2] = r1;\n\t\tlfsr[1] = r2;\n\t\tlfsr[0] = r3;\n\t}", "title": "" }, { "docid": "6730f46a38ef6dd29acacc472a0d492d", "score": "0.55695695", "text": "public void verify() throws CheatAttemptException {\n // TODO(venkat): We need to check that A is in the group. I believe this\n // check is implicit in `Element`. Confirm that this is the case.\n BigInteger c = challenge(gen, v, a);\n Element check = (gen.duplicate().pow(r)).mul(a.duplicate().pow(c));\n if (!v.isEqual(check)) {\n // Throwing this exception is kinda important, but there is an\n // inexplicable bug where for ~1/2 of the choices of v_exp, this\n // doesn't work. The scapi version I was using has changed\n // significantly. Since the only purpose of this repo is testing\n // performance, disabling this check is ok. WARNING: DO NOT USE THIS\n // FOR ANYTHING SECURITY CRITICAL!\n\n // throw new CheatAttemptException(\"Schnorr ZKP verification failed\");\n }\n }", "title": "" }, { "docid": "f0a4e0e0dac2f8dfb408511b62929cf2", "score": "0.5545336", "text": "com.google.protobuf.ByteString getIv();", "title": "" }, { "docid": "f0a4e0e0dac2f8dfb408511b62929cf2", "score": "0.5545336", "text": "com.google.protobuf.ByteString getIv();", "title": "" }, { "docid": "1a3eb045ff19c354f046ffcd26fd7c64", "score": "0.5542144", "text": "boolean hasEncrypted();", "title": "" }, { "docid": "635818076440f127b2b034071e00d051", "score": "0.5512134", "text": "@Test\n\tvoid validateCVVTest2() {\n\t\tString invalidcvv = \"3237\";\n\t\tboolean validateCVV = PaymentValidator.validateCVV(invalidcvv);\n\t\tassertEquals(false, validateCVV);\n\t}", "title": "" }, { "docid": "e564a63ad23665ddf591e93e1687829a", "score": "0.5507137", "text": "@Test\n\tvoid validateCVVTest1() {\n\t\tString invalidcvv = \"32\";\n\t\tboolean validateCVV = PaymentValidator.validateCVV(invalidcvv);\n\t\tassertEquals(false, validateCVV);\n\t}", "title": "" }, { "docid": "4d0175bab8a4f75e4e2157f7048d9ccb", "score": "0.5500847", "text": "boolean hasDecryptionKey();", "title": "" }, { "docid": "bf26c9a5676c4845658ec3ec8e40a343", "score": "0.5419929", "text": "private boolean isvalidKey ( byte[] deskey ){\r\n\t\t\r\n\t\treturn Ascii.isNumericHex( deskey );\r\n\t\t\r\n\t}", "title": "" }, { "docid": "442c7b8986a37d1251834e98cef4e06f", "score": "0.5393705", "text": "@Override\n public boolean isValid(KeyConfiguration keyConfiguration, ConstraintValidatorContext cvc) {\n if(keyConfiguration == null) {\n return true;\n }\n\n boolean isUsingAzureVaultKeys = keyConfiguration.getKeyData()\n .stream()\n .anyMatch(keyPair -> keyPair instanceof AzureVaultKeyPair);\n\n if(isUsingAzureVaultKeys && keyConfiguration.getAzureKeyVaultConfig() == null) {\n cvc.disableDefaultConstraintViolation();\n cvc.buildConstraintViolationWithTemplate(\"{ValidKeyVaultConfiguration.azure.message}\")\n .addConstraintViolation();\n\n return false;\n }\n\n boolean isUsingHashicorpVaultKeys = keyConfiguration.getKeyData()\n .stream()\n .anyMatch(keyPair -> keyPair instanceof HashicorpVaultKeyPair);\n\n if(isUsingHashicorpVaultKeys && keyConfiguration.getHashicorpKeyVaultConfig() == null) {\n cvc.disableDefaultConstraintViolation();\n cvc.buildConstraintViolationWithTemplate(\"{ValidKeyVaultConfiguration.hashicorp.message}\")\n .addConstraintViolation();\n\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "cb940c091b3363cc2790fe5b2803ee4d", "score": "0.5378391", "text": "public boolean validateNonce(byte[] decryptedNonce){\r\n return Arrays.equals(nonce,decryptedNonce);\r\n }", "title": "" }, { "docid": "85dd77ef1680fcf368eaef368de8b1d7", "score": "0.5324622", "text": "protected abstract void engineInitVerify(PublicKey paramPublicKey) throws InvalidKeyException;", "title": "" }, { "docid": "2cbaae252d9c8b96bfc12a16d095a699", "score": "0.5316545", "text": "@SuppressWarnings(\"static-method\")\n\t@Test\n\t@Ignore\n\tpublic void testAesEncrypt() throws Exception {\n\n\t\tSecurity.addProvider(new BouncyCastleProvider());\n\n\t\t// BouncyCastle usando JCE/JCA puro\n\t\tfinal String testString = \"prhjdhakjshdkahskjdhaksdhkjashdkjahsjkdhkajshkdueb\"; //$NON-NLS-1$\n\t\tfinal byte[] testBytes = testString.getBytes();\n\t\tfinal byte[] aesKey = {\n\t\t\t0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,\n\t\t\t0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00\n\t\t};\n\t\tfinal byte[] iv = {\n\t\t\t0x04, 0x00, 0x06, 0x00, 0x00, (byte) 0xee, 0x00, 0x30,\n\t\t\t0x00, 0x01, 0x00, 0x08, (byte) 0xff, 0x00, 0x20, 0x00\n\t\t};\n\n\t\tbyte[] tmp = CH.aesEncrypt(\n\t\t\ttestBytes,\n\t\t\tiv,\n\t\t\taesKey,\n\t\t\tBlockMode.CBC,\n\t\t\tPadding.ISO7816_4PADDING\n\t\t);\n\t\tSystem.out.println(HexUtils.hexify(tmp, false));\n\n\t\t//**********************************************************\n\t\t//**********************************************************\n\n\t\t// BouncyCastle directo\n\t\tint noBytesRead; // Numero de octetos leidos de la entrada\n\t\tint noBytesProcessed = 0; // Numero de octetos procesados\n\n\t\t// AES block cipher en modo CBC con padding ISO7816d4\n\t\tfinal BufferedBlockCipher encryptCipher = new PaddedBufferedBlockCipher(\n\t\t\tnew CBCBlockCipher(\n\t\t\t\tnew AESEngine()\n\t\t\t),\n\t\t\tnew ISO7816d4Padding()\n\t\t);\n\t\t// Creamos los parametros de cifrado con el vector de inicializacion (iv)\n\t\tfinal ParametersWithIV parameterIV = new ParametersWithIV(\n\t\t\tnew KeyParameter(aesKey),\n\t\t\tiv\n\t\t);\n\t\t// Inicializamos\n\t\tencryptCipher.init(true, parameterIV);\n\n\t\t// Buffers para mover octetos de un flujo a otro\n\t\tfinal byte[] buf = new byte[16]; // Buffer de entrada\n\t\tfinal byte[] obuf = new byte[512]; // Buffer de salida\n\n\t\ttry (\n\t\t\tfinal InputStream bin = new ByteArrayInputStream(testBytes);\n\t\t\tfinal ByteArrayOutputStream bout = new ByteArrayOutputStream()\n\t\t) {\n\t\t\twhile ((noBytesRead = bin.read(buf)) >= 0) {\n\t\t\t\tnoBytesProcessed = encryptCipher.processBytes(\n\t\t\t\t\tbuf,\n\t\t\t\t\t0,\n\t\t\t\t\tnoBytesRead,\n\t\t\t\t\tobuf,\n\t\t\t\t\t0\n\t\t\t\t);\n\t\t\t\tbout.write(obuf, 0, noBytesProcessed);\n\t\t\t}\n\n\t\t\tnoBytesProcessed = encryptCipher.doFinal(obuf, 0);\n\t\t\tbout.write(obuf, 0, noBytesProcessed);\n\t\t\tbout.flush();\n\t\t\ttmp = bout.toByteArray();\n\t\t\tSystem.out.println(HexUtils.hexify(tmp, false));\n\t\t}\n\t}", "title": "" }, { "docid": "5e0092563fb075bcfd8798d794bd7d8b", "score": "0.53026617", "text": "public boolean isKeyValid(byte[] newkey) {\n \t\tif (newkey == null) {\n \t\t\treturn false;\n \t\t}\n \t\treturn FilesystemBasedDigest.equalPasswd(SERVERADMINKEY, newkey);\n \t}", "title": "" }, { "docid": "cf8efd5e878e43c858ec9b89790a7b0e", "score": "0.53020173", "text": "private void checkIfEcqvCertificate() throws NoSuchAlgorithmException {\n if (caKeyDefinition != null) {\n if (caKeyDefinition.getAlgorithm() != null) {\n try {\n if (!SignatureAlgorithms.getInstance(caKeyDefinition.getAlgorithm().getOid()).isEcqv()) {\n throw new NoSuchAlgorithmException(\"This is not an ECQV certificate.\");\n }\n\n // At this point we know that this in an ECQV certificate.\n } catch (IllegalArgumentException ex) {\n throw new NoSuchAlgorithmException(\"Unknown signature algorithm.\");\n }\n } else {\n throw new NoSuchAlgorithmException(\"CA signature algorithm not defined.\");\n }\n } else {\n throw new NoSuchAlgorithmException(\"CA signature algorithm not defined.\");\n }\n }", "title": "" }, { "docid": "73cc88e1d8b88b0c57dc44f7baffbe16", "score": "0.52481985", "text": "boolean hasEncryptedPayloadKey();", "title": "" }, { "docid": "4c1a640ae55958595fecf4768ee0c507", "score": "0.5219803", "text": "boolean hasEncryptionalog();", "title": "" }, { "docid": "855143d28772b3e4e57da8df136da536", "score": "0.5205336", "text": "private static void checkKey(DSAParams paramDSAParams, int paramInt, String paramString) throws InvalidKeyException {\n/* 109 */ int i = paramDSAParams.getQ().bitLength();\n/* 110 */ if (i > paramInt) {\n/* 111 */ throw new InvalidKeyException(\"The security strength of \" + paramString + \" digest algorithm is not sufficient for this key size\");\n/* */ }\n/* */ }", "title": "" }, { "docid": "38f023c57f42b687b82d01fb17b2bfb8", "score": "0.5202357", "text": "@Test\n\tvoid validateCVVTest4() {\n\t\tString validcvv = \"327\";\n\t\tboolean validateCVV = PaymentValidator.validateCVV(validcvv);\n\t\tassertEquals(true, validateCVV);\n\t}", "title": "" }, { "docid": "06710185b8aa52a1c0723432297a61cb", "score": "0.5176894", "text": "public boolean verify() throws PGPException, IOException {\n\t\tif (!this.isIntegrityProtected()) {\n\t\t\tthrow new PGPException(\"data not integrity protected.\");\n\t\t}\n\n\t\t//\n\t\t// make sure we are at the end.\n\t\t//\n\t\twhile (encStream.read() >= 0) {\n\t\t\t// do nothing\n\t\t}\n\n\t\t//\n\t\t// process the MDC packet\n\t\t//\n\t\tint[] lookAhead = truncStream.getLookAhead();\n\n\t\tOutputStream dOut = integrityCalculator.getOutputStream();\n\n\t\tdOut.write((byte) lookAhead[0]);\n\t\tdOut.write((byte) lookAhead[1]);\n\n\t\tbyte[] digest = integrityCalculator.getDigest();\n\t\tbyte[] streamDigest = new byte[digest.length];\n\n\t\tfor (int i = 0; i != streamDigest.length; i++) {\n\t\t\tstreamDigest[i] = (byte) lookAhead[i + 2];\n\t\t}\n\n\t\treturn Arrays.constantTimeAreEqual(digest, streamDigest);\n\t}", "title": "" }, { "docid": "5739e1649537ce38ee54153987e44980", "score": "0.51735216", "text": "boolean hasEncrypt();", "title": "" }, { "docid": "5739e1649537ce38ee54153987e44980", "score": "0.51735216", "text": "boolean hasEncrypt();", "title": "" }, { "docid": "0741bf72e37d767ef402c36d19bd7d5c", "score": "0.51630247", "text": "@Test\n\tpublic void testIsValidVerticall() {\n\t\tassertTrue(!GameModel.isInvalidOrientation(\"V\"));\n\t}", "title": "" }, { "docid": "de68bb66c70f10a3284ab6dd1e28d460", "score": "0.5157527", "text": "void init(boolean decrypting, String algorithm, byte[] key, byte[] iv)\n throws InvalidKeyException {\n init(decrypting, algorithm, key, iv, DEFAULT_TAG_LEN);\n }", "title": "" }, { "docid": "f4f8c76e2e32d936d5d7506b64d5ce5e", "score": "0.5151667", "text": "boolean isEncrypted();", "title": "" }, { "docid": "1930101e91863e6745f20cac4b1bf183", "score": "0.5146781", "text": "protected abstract boolean engineVerify(byte[] paramArrayOfbyte) throws SignatureException;", "title": "" }, { "docid": "88a5886aaab4e86572490f2407af86b4", "score": "0.51298136", "text": "public static boolean CheckPassExsit() {\n init();\n return !Objects.requireNonNull(mSharedPreferences.getString(PASS_AES, \"\")).isEmpty();\n }", "title": "" }, { "docid": "3e2ec0e5674cda1bf289d1a5c568dddc", "score": "0.5125848", "text": "@Test\n\tvoid validateCVVTest5() {\n\t\tString validcvv = \"026\";\n\t\tboolean validateCVV = PaymentValidator.validateCVV(validcvv);\n\t\tassertEquals(true, validateCVV);\n\t}", "title": "" }, { "docid": "9946faaedbcddb2a1af851a9904850b0", "score": "0.51245564", "text": "public boolean isValidDataBlock(Intersection key) {\r\n \r\n \t\tint minKeyDims = coreDimensions.size() - NON_KEY_DIM_COUNT;\r\n \t\tint maxKeyDims = allDimensions.size() - NON_KEY_DIM_COUNT;\r\n \r\n \t\t\r\n \t\t// Key can't be null\r\n \t\tif (key == null) {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\t\r\n \t\t// Check data block key size. The data block key must be big enough\r\n \t\t// all core data cache key dimensions, but can't be bigger than the \r\n \t\t// number allowable key dimensions.\r\n \t\tint keyDimCount = key.getDimensions().length;\r\n \t\tif (keyDimCount < minKeyDims || keyDimCount > maxKeyDims ) {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\t\r\n \t\t// Core key validation (check the required key dimensions and\r\n \t\t// coordinates)\r\n \t\tfor (int i = 0; i < minKeyDims; i++) {\r\n \t\t\t\r\n \t\t\t// Lookup the axis number\r\n \t\t\tint axis = coreKeyAxes[i];\r\n \t\t\t\r\n \t\t\t// Validate dimension name and dimension order\r\n \t\t\tString dim = key.getDimensions()[i];\r\n \t\t\tif (!dim.equals(this.getDimension(axis))) {\r\n \t\t\t\treturn false;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t// Validate member name\r\n \t\t\tString member = key.getCoordinate(dim);\r\n \t\t\tif (!this.isMember(dim, member)) {\r\n \t\t\t\treturn false;\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t\r\n \t\t// Check any remaining key dimensions to ensure that they are valid\r\n \t\t// dimensions and that each corresponding coordinate is mapped to a\r\n \t\t// valid member\r\n \t\tfor (int i = minKeyDims; i < keyDimCount; i++) {\r\n \r\n \t\t\t// Validate dimension name and dimension order\r\n \t\t\tString dim = key.getDimensions()[i];\r\n \t\t\tif (!nonCoreDims.contains(dim)) {\r\n \t\t\t\treturn false;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t// Validate member name\r\n \t\t\tString member = key.getCoordinate(dim);\r\n \t\t\tif (!this.isMember(dim, member)) {\r\n \t\t\t\treturn false;\r\n \t\t\t}\r\n \t\t\t\t\t\t\r\n \t\t}\r\n \r\n \t\t// Return status\r\n \t\treturn true;\r\n \t}", "title": "" }, { "docid": "907dae9d14543cc2e95fcf82dc1eb8c0", "score": "0.51186407", "text": "boolean hasKeyDigest();", "title": "" }, { "docid": "0254d40cab14637ebb33b38fc6a395c3", "score": "0.510505", "text": "@Override\n public boolean isValidAppKey(String appKey) {\n return getSecret(appKey) != null;\n }", "title": "" }, { "docid": "0853a63650412920e075f9a8c38959dd", "score": "0.50914013", "text": "@SuppressWarnings(\"static-method\")\n\t@Test\n\t@Ignore\n\tpublic void testAesDecrypt() throws Exception {\n\n\t\tSecurity.addProvider(new BouncyCastleProvider());\n\n\t\tfinal String testString = \"prhjdhakjshdkahskjdhaksdhkjashdkjahsjkdhkajshkdueb\"; //$NON-NLS-1$\n\t\tfinal byte[] key = {\n\t\t\t0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,\n\t\t\t0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00\n\t\t};\n\t\tfinal byte[] iv = {\n\t\t\t0x04, 0x00, 0x06, 0x00, 0x00, (byte) 0xee, 0x00, 0x30,\n\t\t\t0x00, 0x01, 0x00, 0x08, (byte) 0xff, 0x00, 0x20, 0x00\n\t\t};\n\t\tfinal byte[] in = new BcCryptoHelper().aesEncrypt(\n\t\t\ttestString.getBytes(),\n\t\t\tiv,\n\t\t\tkey,\n\t\t\tBlockMode.CBC,\n\t\t\tPadding.ISO7816_4PADDING\n\t\t);\n\n\n\t\t// BouncyCastle puro\n\n\t\t// Creamos los parametros de descifrado con el vector de inicializacion (iv)\n\t\tfinal ParametersWithIV parameterIV = new ParametersWithIV(\n\t\t\tnew KeyParameter(key),\n\t\t\tiv\n\t\t);\n\n\t\tint noBytesRead; // Numero de octetos leidos de la entrada\n\t\tint noBytesProcessed = 0; // Numero de octetos procesados\n\n\t\tfinal BufferedBlockCipher decryptCipher = new PaddedBufferedBlockCipher(\n\t\t\tnew CBCBlockCipher(\n\t\t\t\tnew AESEngine()\n\t\t\t),\n\t\t\tnew ISO7816d4Padding()\n\t\t);\n\n\t\t// Inicializamos\n\t\tdecryptCipher.init(false, parameterIV);\n\n\t\t// Buffers para mover octetos de un flujo a otro\n\t\tfinal byte[] buf = new byte[16]; // Buffer de entrada\n\t\tfinal byte[] obuf = new byte[512]; // Buffer de salida\n\n\t\ttry (\n\t\t\tfinal InputStream bin = new ByteArrayInputStream(in);\n\t\t\tfinal ByteArrayOutputStream bout = new ByteArrayOutputStream()\n\t\t) {\n\t\t\twhile ((noBytesRead = bin.read(buf)) >= 0) {\n\t\t\t\tnoBytesProcessed = decryptCipher.processBytes(\n\t\t\t\t\tbuf,\n\t\t\t\t\t0,\n\t\t\t\t\tnoBytesRead,\n\t\t\t\t\tobuf,\n\t\t\t\t\t0\n\t\t\t\t);\n\t\t\t\tbout.write(obuf, 0, noBytesProcessed);\n\t\t\t}\n\n\t\t\tnoBytesProcessed = decryptCipher.doFinal(obuf, 0);\n\t\t\tbout.write(obuf, 0, noBytesProcessed);\n\t\t\tbout.flush();\n\n\t\t\tSystem.out.println(HexUtils.hexify(bout.toByteArray(), false));\n\t\t}\n\n\n\t\t// Ahora con JCA/JCE\n\n\t\tfinal Cipher aesCipher = Cipher.getInstance(\n\t\t\t\"AES/CBC/ISO7816-4Padding\" //$NON-NLS-1$\n\t\t);\n\t\taesCipher.init(\n\t\t\tCipher.DECRYPT_MODE,\n\t\t\tnew SecretKeySpec(key, \"AES\"), //$NON-NLS-1$\n\t\t\tnew IvParameterSpec(iv)\n\t\t);\n\n\t\tSystem.out.println(HexUtils.hexify(aesCipher.doFinal(in), false));\n\n\t}", "title": "" }, { "docid": "fd4496b1d0e54e0a746f21abb27da652", "score": "0.5087936", "text": "public static String generateAESIV()\n {\n String encodedKey = \"\";\n try {\n Key key;\n SecureRandom rand = new SecureRandom();\n KeyGenerator generator = KeyGenerator.getInstance(\"AES\");\n generator.init(rand);\n generator.init(256);\n key = generator.generateKey();\n Base64 codec = new Base64();\n byte[] bEncodedKey = codec.encode(key.getEncoded());\n encodedKey = new String(bEncodedKey, \"UTF-8\");\n encodedKey = encodedKey.substring(0, 16);\n } catch(Exception e) {\n System.out.println(\"ECCEZIONE: \" + e.getMessage());\n }\n return encodedKey;\n }", "title": "" }, { "docid": "6a5a51f01b04ea449906f4dfec5ba830", "score": "0.5077321", "text": "public void setIV( byte[] newInitializationVector )\n\t{\n\t\tif( newInitializationVector.length == 16 )\n\t\t{//If the length is right, 16 bytes (128 bits), go ahead and save the value.\n\t\t\tinitializationVector = newInitializationVector;\n\t\t\tiVSet = true;\n\t\t}\n\t\telse\n\t\t{//If the lenght isn't right, throw an error.\n\t\t\tthrow new IllegalArgumentException( \"The key argument needs to be 16 bytes (128 bits).\" );\n\t\t}\n\t}", "title": "" }, { "docid": "7fe781a7f4d2ef5f1d83f744b1a661c8", "score": "0.5069261", "text": "boolean hasCipherdata();", "title": "" }, { "docid": "2d76692c0b357f694769007832a06ebd", "score": "0.50682664", "text": "public Result checkKeyFile();", "title": "" }, { "docid": "cd5a89e5381126a3e4eb7fb90dcb096a", "score": "0.50632304", "text": "public boolean isPrivateKeyEmpty()\n {\n byte[] secKeyData = secret.getSecretKeyData();\n\n return (secKeyData == null || secKeyData.length < 1);\n }", "title": "" }, { "docid": "b981bb159104277b6b225e50f3c499d0", "score": "0.5060576", "text": "protected boolean engineVerify(byte[] paramArrayOfbyte) throws SignatureException {\n/* 251 */ return engineVerify(paramArrayOfbyte, 0, paramArrayOfbyte.length);\n/* */ }", "title": "" }, { "docid": "8008bfbb7b14029494682692e42559a0", "score": "0.5043638", "text": "public void testTLS_RSA_WITH_AES_256_CBC_SHA_electric_inbound()\r\n {\n }", "title": "" }, { "docid": "a34f1da78a7837383dddada7bedaf2e8", "score": "0.5039089", "text": "private static Boolean _isValidPrivateKey(final ByteArray bytes) {\n if (! Util.areEqual(KEY_BYTE_COUNT, bytes.getByteCount())) {\n return false;\n }\n\n // 0 is not valid...\n if (Util.areEqual(bytes, ZERO)) {\n return false;\n }\n\n // Must be less than MAX_PRIVATE_KEY...\n for (int i = 0; i < bytes.getByteCount(); ++i) {\n final int maxValueByte = ByteUtil.byteToInteger(MAX_PRIVATE_KEY.getByte(i));\n final int targetByte = ByteUtil.byteToInteger(bytes.getByte(i));\n if (targetByte == maxValueByte) { continue; }\n return (targetByte < maxValueByte);\n }\n\n return true;\n }", "title": "" }, { "docid": "6e37f7f074824e22a070ef421dc06311", "score": "0.5036485", "text": "public javax.crypto.spec.IvParameterSpec getClientIv() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.internal.spec.TlsKeyMaterialSpec.getClientIv():javax.crypto.spec.IvParameterSpec, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.internal.spec.TlsKeyMaterialSpec.getClientIv():javax.crypto.spec.IvParameterSpec\");\n }", "title": "" }, { "docid": "6824ba25ffd192a8407f2959cfd6f323", "score": "0.5032762", "text": "private boolean checkValidty(Block blockObj){\n if(hashVotes.contains((String)blockObj.getVoteObj().getVoterId()))\n return false;\n else\n return true;\n }", "title": "" }, { "docid": "fdb45f39d685f36f2ac9a8a775f83e53", "score": "0.50290793", "text": "BIN integrityCheck();", "title": "" }, { "docid": "4afa2d2966195dd074fc40f40b915f36", "score": "0.5027143", "text": "@Test\n\tpublic void testECDSAVerify() throws Exception {\n\t\tLinkedList<KeyPair.PublicKey> keys = loadECPublicKeys();\n\t\tfor (int i = 0; i != keys.size(); ++i) {\n\t\t\tKeyPair.PublicKey pub = keys.get(i);\n\t\t\tassertTrue(Signature.verify(Signature.Algorithm.SHA1withECDSA, pub, (ecc_signatures[i * 4]), ecc_message));\n\t\t\tassertTrue(Signature.verify(Hash.Algorithm.SHA1, pub, (ecc_signatures[i * 4]), ecc_message));\n\t\t\tassertTrue(Signature.verify(Signature.Algorithm.SHA256withECDSA, pub, (ecc_signatures[i * 4 + 1]), ecc_message));\n\t\t\tassertTrue(Signature.verify(Hash.Algorithm.SHA256, pub, (ecc_signatures[i * 4 + 1]), ecc_message));\n\t\t\tassertTrue(Signature.verify(Signature.Algorithm.SHA384withECDSA, pub, (ecc_signatures[i * 4 + 2]), ecc_message));\n\t\t\tassertTrue(Signature.verify(Hash.Algorithm.SHA384, pub, (ecc_signatures[i * 4 + 2]), ecc_message));\n\t\t\tassertTrue(Signature.verify(Signature.Algorithm.SHA512withECDSA, pub, (ecc_signatures[i * 4 + 3]), ecc_message));\n\t\t\tassertTrue(Signature.verify(Hash.Algorithm.SHA512, pub, (ecc_signatures[i * 4 + 3]), ecc_message));\n\t\t}\n\t}", "title": "" }, { "docid": "303d38b61a60aa57f096a07bb7a21484", "score": "0.50264853", "text": "private byte[] generateIv()\r\n {\r\n byte[] iv = new byte[IV_SIZE]; // create the byte array that holds the IV\r\n SecureRandom random = new SecureRandom();\r\n random.nextBytes(iv); // load the array with random bytes\r\n\r\n return iv;\r\n }", "title": "" }, { "docid": "cdb38580d3e6ec6adc5f8ebe45bafc6c", "score": "0.5026353", "text": "public boolean isEncrypted(WeaveBasicObject wbo) throws ParseException {\n\t\tJSONObject jsonPayload = wbo.getPayloadAsJSONObject();\n\t\treturn ( jsonPayload.containsKey(\"ciphertext\") && jsonPayload.containsKey(\"IV\") && jsonPayload.containsKey(\"hmac\") );\n\t}", "title": "" }, { "docid": "25eff06ac80caac4d0c768094ae58d99", "score": "0.5019347", "text": "protected boolean engineVerify(byte[] paramArrayOfbyte, int paramInt1, int paramInt2) throws SignatureException {\n/* 273 */ BigInteger bigInteger1 = null;\n/* 274 */ BigInteger bigInteger2 = null;\n/* */ \n/* */ \n/* */ try {\n/* 278 */ DerInputStream derInputStream = new DerInputStream(paramArrayOfbyte, paramInt1, paramInt2, false);\n/* */ \n/* 280 */ DerValue[] arrayOfDerValue = derInputStream.getSequence(2);\n/* */ \n/* */ \n/* */ \n/* 284 */ if (arrayOfDerValue.length != 2 || derInputStream.available() != 0) {\n/* 285 */ throw new IOException(\"Invalid encoding for signature\");\n/* */ }\n/* 287 */ bigInteger1 = arrayOfDerValue[0].getBigInteger();\n/* 288 */ bigInteger2 = arrayOfDerValue[1].getBigInteger();\n/* 289 */ } catch (IOException iOException) {\n/* 290 */ throw new SignatureException(\"Invalid encoding for signature\", iOException);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 296 */ if (bigInteger1.signum() < 0) {\n/* 297 */ bigInteger1 = new BigInteger(1, bigInteger1.toByteArray());\n/* */ }\n/* 299 */ if (bigInteger2.signum() < 0) {\n/* 300 */ bigInteger2 = new BigInteger(1, bigInteger2.toByteArray());\n/* */ }\n/* */ \n/* 303 */ if (bigInteger1.compareTo(this.presetQ) == -1 && bigInteger2.compareTo(this.presetQ) == -1) {\n/* 304 */ BigInteger bigInteger3 = generateW(this.presetP, this.presetQ, this.presetG, bigInteger2);\n/* 305 */ BigInteger bigInteger4 = generateV(this.presetY, this.presetP, this.presetQ, this.presetG, bigInteger3, bigInteger1);\n/* 306 */ return bigInteger4.equals(bigInteger1);\n/* */ } \n/* 308 */ throw new SignatureException(\"invalid signature: out of range values\");\n/* */ }", "title": "" }, { "docid": "7fc122f62f08071ba486d526b961a638", "score": "0.50190777", "text": "public static boolean isApiKeyValid(String key) {\n // Old style keys\n return key.matches(\n \"(?:[0-9a-f]{8}|dev-usr-)-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\") ||\n key.matches((\"(?:[0-9a-f]{14})\")); // New style keys\n }", "title": "" }, { "docid": "6ba9e18c4ed0afcdf6400cad9b5e7946", "score": "0.5008984", "text": "public static byte[] randomIV(){\r\n\t\tSecureRandom random = new SecureRandom();\r\n\t\tbyte[] bytes = new byte[16];\r\n\t\trandom.nextBytes(bytes);\r\n\t\treturn bytes;\r\n\t}", "title": "" }, { "docid": "5b93beb67b468550b42b505c1d05995c", "score": "0.5003403", "text": "public abstract PID verify(PID key);", "title": "" }, { "docid": "996e5798d62459badcda06cde223ecf8", "score": "0.4986432", "text": "private static void checkEncampment() {\r\n\t\t//TODO implement\r\n\t}", "title": "" }, { "docid": "e53710520d8a12e386b6536a993886e2", "score": "0.4982397", "text": "public String getIV() {\n return iv;\n }", "title": "" }, { "docid": "dc57f0bd3036d9d3f8c83610bf1e9e79", "score": "0.4980744", "text": "public Either<Error, Void> verify() {\n return this.signature.verify(this.keys, this.blocks);\n }", "title": "" }, { "docid": "bc4a2c1796a3c64a30582e8b43751e8f", "score": "0.49729428", "text": "@Override\n\tpublic boolean verify(AssociatedData associatedData, BrkeCiphertext ciphertext) {\n\t\tDLPChameleonSignatureOutput signatureOutput = (DLPChameleonSignatureOutput) ciphertext.getSignature();\n\t\tbyte[] hashedInput = CiphertextEncoder.hashAdCiphertextPartsForSigning(associatedData,\n\t\t\t\tciphertext.getNumberOfReceivedMessages(), ciphertext.getPublicKey(), ciphertext.getVerificationKey(),\n\t\t\t\tciphertext.getNumberOfUsedKeys(), ciphertext.getCiphertext());\n\t\tif (communicationPartnerVerificationKey == null) {\n\t\t\t// TODO: Throw exception\n\t\t\treturn false;\n\t\t}\n\t\tBigInteger message = new BigInteger(hashedInput);\n\t\tBigInteger g1m = communicationPartnerVerificationKey.getG1().modPow(message, p);\n\t\tBigInteger g3sign0 = communicationPartnerVerificationKey.getG3().modPow(signatureOutput.getSign0(), p);\n\t\tBigInteger g1mg3sign0 = g1m.multiply(g3sign0).mod(p);\n\t\tbyte[] encodedg1mg3sign0 = g1mg3sign0.toByteArray();\n\t\tbyte[] hashVer = new byte[hash.getDigestSize()];\n\n\t\thash.update(encodedg1mg3sign0, 0, encodedg1mg3sign0.length);\n\t\thash.doFinal(hashVer, 0);\n\t\thash.reset();\n\t\tBigInteger hashInt = new BigInteger(hashVer);\n\t\tBigInteger g1hashInt = communicationPartnerVerificationKey.getG1().modPow(hashInt, p);\n\t\tBigInteger g2Sign1 = communicationPartnerVerificationKey.getG2().modPow(signatureOutput.getSign1(), p);\n\t\tBigInteger finalInt = (g1hashInt.multiply(g2Sign1)).mod(p);\n\t\tbyte[] encodedfinalInt = finalInt.toByteArray();\n\t\tbyte[] result = new byte[hash.getDigestSize()];\n\t\thash.update(encodedfinalInt, 0, encodedfinalInt.length);\n\t\thash.doFinal(result, 0);\n\t\thash.reset();\n\n\t\tif (Arrays.equals(result, communicationPartnerVerificationKey.getZ0())) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8c64a157befbac8f7c70464b390d818f", "score": "0.49720898", "text": "@Test\n public void testCryptAlgorithms() throws Exception {\n\n ClientRequest clientRequest = new ClientRequest();\n\n clientRequest.clientName = \"Test Client\";\n clientRequest.departServer = \"finance\";\n clientRequest.nonce = RandomUtils.getSecureRandomBytes(8);\n\n byte[] encoded = clientRequest.encode();\n byte[] iv = RandomUtils.getSecureRandomBytes(16);\n IvParameterSpec ivParameterSpec = new IvParameterSpec(iv);\n\n KeyPair keyPair = KeyManager.generateKeyPair();\n\n EncryptedPayload encryptedPayload = new EncryptedPayload();\n\n Cipher aesCipher = Cipher.getInstance(CIPHER_ALGORITHM_PRP);\n aesCipher.init(Cipher.ENCRYPT_MODE, keyPair.getSecretKey(), ivParameterSpec);\n byte[] cipherText = aesCipher.doFinal(encoded);\n\n encryptedPayload.iv = iv;\n encryptedPayload.payload = cipherText;\n\n Mac sha256Mac = Mac.getInstance(MAC_ALGORITHM);\n sha256Mac.init(keyPair.getAuthenticationKey());\n\n encryptedPayload.mac = sha256Mac.doFinal(encoded);\n\n ivParameterSpec = new IvParameterSpec(encryptedPayload.iv);\n\n Cipher aesCipherDecrypt = Cipher.getInstance(CIPHER_ALGORITHM_PRP);\n aesCipherDecrypt.init(Cipher.DECRYPT_MODE, keyPair.getSecretKey(), ivParameterSpec);\n\n byte[] decrypted = aesCipherDecrypt.doFinal(encryptedPayload.payload);\n\n Mac sha256MacDecrypt = Mac.getInstance(MAC_ALGORITHM);\n sha256MacDecrypt.init(keyPair.getAuthenticationKey());\n\n byte[] decryptedMac = sha256MacDecrypt.doFinal(decrypted);\n\n Assert.assertEquals(decryptedMac, encryptedPayload.mac);\n\n ClientRequest clientRequestDecrypted = new ClientRequest();\n clientRequestDecrypted.decode(decrypted);\n\n Assert.assertEquals(clientRequestDecrypted.clientName, clientRequest.clientName);\n Assert.assertEquals(clientRequestDecrypted.departServer, clientRequest.departServer);\n Assert.assertEquals(clientRequestDecrypted.nonce, clientRequest.nonce);\n }", "title": "" }, { "docid": "a07ab84ebddd8308d4f0de2adf3103d5", "score": "0.4964613", "text": "public static boolean checkKey(String key) {\r\n if(key == null) {\r\n return false;\r\n }\r\n int cont, i, j;\r\n char ch;\r\n if(key.length() == SubstitutionCipher.ALPHABET_LENGTH) {\r\n if(ASCIICharacterUtils.isUppercaseLetter(key.charAt(0))) {\r\n for(i = 0; i < SubstitutionCipher.ALPHABET_LENGTH; i++)\r\n {\r\n ch = SubstitutionCipher.ALPHABET.charAt(i);\r\n if(ASCIICharacterUtils.isUppercaseLetter(ch)) {\r\n cont = 0;\r\n for(j = 0; j < key.length(); j++)\r\n {\r\n if(ch == key.charAt(j)) {\r\n cont++;\r\n }\r\n }\r\n if(cont != 1) {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n else if(ASCIICharacterUtils.isLowercaseLetter(key.charAt(0))) {\r\n for(i = 0; i < SubstitutionCipher.ALPHABET_LENGTH; i++)\r\n {\r\n ch = SubstitutionCipher.ALPHABET.charAt(i);\r\n if(ASCIICharacterUtils.isLowercaseLetter(ch)) {\r\n cont = 0;\r\n for(j = 0; j < key.length(); j++)\r\n {\r\n if(ch == key.charAt(j)) {\r\n cont++;\r\n }\r\n }\r\n if(cont != 1) {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n return false;\r\n }\r\n } \r\n else {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "be3e0900655e4d64ff8d446469325504", "score": "0.4963445", "text": "public com.google.protobuf.ByteString getIv() {\n return iv_;\n }", "title": "" }, { "docid": "3647a433eb2a5786577fa842dc0cd82e", "score": "0.49594665", "text": "protected boolean isAssociatedVdValid(QuestionDescriptor question, DataElementTransferObject matchingCde) {\n\t\tString vdseqid = matchingCde.getVdIdseq();\n\t\tif (vdseqid == null || vdseqid.length() == 0) {\n\t\t\tif (question.hasVDValueInDE())\n\t\t\t\tquestion.setCdeSeqId(\"\"); \n\t\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\t//1. get vd from db with vdseqid\n\t\tValueDomainV2 vd = loadServiceRepositoryImpl.getValueDomainBySeqid(vdseqid);\n\t\tif (vd == null) {\n\t\t\tif (question.hasVDValueInDE())\n\t\t\t\tquestion.setCdeSeqId(\"\"); \n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//2. compare what's from xml and what's from db\n\t\tString vdPublicId = question.getCdeVdPublicId();\n\t\tString vdVersion = question.getCdeVdVersion();\n\t\tif (vdPublicId != null && vdPublicId.length() > 0 || vdVersion != null && vdVersion.length() > 0) {\n\t\t\n\t\t\tif (!FormLoaderHelper.samePublicIdVersions(question.getCdeVdPublicId(), question.getCdeVdVersion(), \n\t\t\t\t\tvd.getPublicId(), vd.getVersion())) {\n\t\t\t\tif (question.hasVDValueInDE())\n\t\t\t\t\tquestion.setCdeSeqId(\"\"); \n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!question.allPresentedVdFieldsMatched(vd.getDatatype(), vd.getDecimalPlace(), vd.getDisplayFormat(),\n\t\t\t\tvd.getHighValue(), vd.getLowValue(), vd.getMaxLength(), vd.getMinLength(), vd.getUnitOfMeasure())) {\n\t\t\tquestion.setCdeSeqId(\"\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fee96a82b63edaf77349e0b939c729df", "score": "0.4950759", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getIv() {\n return iv_;\n }", "title": "" }, { "docid": "9dd2178008fd7cc94a7ff814581eaf9e", "score": "0.4947194", "text": "@Test\n public void testAes256ElementCipher() throws Exception {\n XMLSecurityProperties properties = new XMLSecurityProperties();\n List<XMLSecurityConstants.Action> actions = new ArrayList<>();\n actions.add(XMLSecurityConstants.ENCRYPTION);\n properties.setActions(actions);\n\n // Set the key up\n byte[] bits256 = {\n (byte) 0x00, (byte) 0x01, (byte) 0x02, (byte) 0x03,\n (byte) 0x04, (byte) 0x05, (byte) 0x06, (byte) 0x07,\n (byte) 0x08, (byte) 0x09, (byte) 0x0A, (byte) 0x0B,\n (byte) 0x0C, (byte) 0x0D, (byte) 0x0E, (byte) 0x0F,\n (byte) 0x10, (byte) 0x11, (byte) 0x12, (byte) 0x13,\n (byte) 0x14, (byte) 0x15, (byte) 0x16, (byte) 0x17,\n (byte) 0x18, (byte) 0x19, (byte) 0x1A, (byte) 0x1B,\n (byte) 0x1C, (byte) 0x1D, (byte) 0x1E, (byte) 0x1F};\n SecretKey key = new SecretKeySpec(bits256, \"AES\");\n properties.setEncryptionKey(key);\n properties.setEncryptionSymAlgorithm(\"http://www.w3.org/2001/04/xmlenc#aes256-cbc\");\n\n SecurePart securePart =\n new SecurePart(new QName(\"urn:example:po\", \"PaymentInfo\"), SecurePart.Modifier.Element);\n properties.addEncryptionPart(securePart);\n\n OutboundXMLSec outboundXMLSec = XMLSec.getOutboundXMLSec(properties);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n XMLStreamWriter xmlStreamWriter = outboundXMLSec.processOutMessage(baos, StandardCharsets.UTF_8.name());\n\n InputStream sourceDocument =\n this.getClass().getClassLoader().getResourceAsStream(\n \"ie/baltimore/merlin-examples/merlin-xmlenc-five/plaintext.xml\");\n XMLStreamReader xmlStreamReader = xmlInputFactory.createXMLStreamReader(sourceDocument);\n\n XmlReaderToWriter.writeAll(xmlStreamReader, xmlStreamWriter);\n xmlStreamWriter.close();\n\n // System.out.println(\"Got:\\n\" + new String(baos.toByteArray(), StandardCharsets.UTF_8.name()));\n\n Document document =\n XMLUtils.read(new ByteArrayInputStream(baos.toByteArray()), false);\n\n NodeList nodeList = document.getElementsByTagNameNS(\"urn:example:po\", \"PaymentInfo\");\n assertEquals(nodeList.getLength(), 0);\n\n // Check the CreditCard encrypted ok\n nodeList = document.getElementsByTagNameNS(\"urn:example:po\", \"CreditCard\");\n assertEquals(nodeList.getLength(), 0);\n\n nodeList = document.getElementsByTagNameNS(\n XMLSecurityConstants.TAG_xenc_EncryptedData.getNamespaceURI(),\n XMLSecurityConstants.TAG_xenc_EncryptedData.getLocalPart()\n );\n assertEquals(nodeList.getLength(), 1);\n\n // Decrypt using DOM API\n Document doc =\n decryptUsingDOM(\"http://www.w3.org/2001/04/xmlenc#aes256-cbc\", key, null, document);\n\n // Check the CreditCard decrypted ok\n nodeList = doc.getElementsByTagNameNS(\"urn:example:po\", \"CreditCard\");\n assertEquals(nodeList.getLength(), 1);\n }", "title": "" }, { "docid": "4a66b6463be7455ff63f798a6446aa32", "score": "0.4942975", "text": "public boolean verifyChecksum(byte[] paramArrayOfbyte1, int paramInt1, byte[] paramArrayOfbyte2, byte[] paramArrayOfbyte3, int paramInt2) throws KrbCryptoException {\n/* */ try {\n/* 93 */ byte[] arrayOfByte = Des3.calculateChecksum(paramArrayOfbyte2, paramInt2, paramArrayOfbyte1, 0, paramInt1);\n/* */ \n/* */ \n/* 96 */ return isChecksumEqual(paramArrayOfbyte3, arrayOfByte);\n/* 97 */ } catch (GeneralSecurityException generalSecurityException) {\n/* 98 */ KrbCryptoException krbCryptoException = new KrbCryptoException(generalSecurityException.getMessage());\n/* 99 */ krbCryptoException.initCause(generalSecurityException);\n/* 100 */ throw krbCryptoException;\n/* */ } \n/* */ }", "title": "" }, { "docid": "25c75f30fd02ee09d69c1b62ecf200d0", "score": "0.49421388", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getIv() {\n return iv_;\n }", "title": "" }, { "docid": "c1d912ae93839e5260fd65779b052d0a", "score": "0.49377042", "text": "boolean isValidKey(String identifier);", "title": "" }, { "docid": "cc56473f0517c64bfd81a3dcf3ca3fc4", "score": "0.49336043", "text": "private void createIv(long timeDiff) throws NoSuchAlgorithmException,InvalidKeyException,IllegalBlockSizeException,NoSuchPaddingException,BadPaddingException {\n\t\t//Convert timeDiff to String:\n\t\tString diffStr=String.valueOf(timeDiff);\n\t\t//Hash diffStr:\n\t\tbyte diffStrHash[]=this.hash256.digest(diffStr.getBytes());\n\t\t//Store first 16 bytes of diffStrHash as IvParameterSpec:\n\t\tbyte[] diffStrHash16=Arrays.copyOf(diffStrHash, 16);\n\t\tthis.encIv=new IvParameterSpec(diffStrHash16);\n\t\t//Encrypt the IV bytes:\n\t\tCipher enc=Cipher.getInstance(\"RSA\");\n\t\tenc.init(Cipher.ENCRYPT_MODE, this.keyPair.getPublic());\n\t\tbyte[] encIvRsa=enc.doFinal(diffStrHash16);\n\t\t//Store base64-encoded encrypted IV:\n\t\tthis.encIvRsa64=Base64.getEncoder().encodeToString(encIvRsa);\n\t}", "title": "" }, { "docid": "11bc33c43b0d044c2055237a82bcd7d4", "score": "0.49249956", "text": "public static boolean hmacSHA256Verify(HmacSha256Key key, byte[] data, byte[] sig) {\n\t\ttry {\n\t\t\t Mac sha256_HMAC = Mac.getInstance(\"HmacSHA256\");\n\t\t\t SecretKeySpec secret_key = new SecretKeySpec(key.getKey(), \"HmacSHA256\");\n\t\t\t sha256_HMAC.init(secret_key);\n\n\t\t\t return Arrays.equals(sha256_HMAC.doFinal(data), sig);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t} catch (InvalidKeyException e) {\n\t\t\tthrow new IllegalArgumentException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "5555fabc0b15d5b254fc83acf38549b6", "score": "0.49237943", "text": "public void testAes() throws Exception {\n\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tString message = mapper.writeValueAsString(new MockClaims());\n\n\t\t// Generate the random values\n\t\tString initVector = JwtAuthorityManagedObjectSource.randomString(16, 16);\n\t\tString startSalt = JwtAuthorityManagedObjectSource.randomString(5, 25);\n\t\tString endSalt = JwtAuthorityManagedObjectSource.randomString(5, 25);\n\t\tString lace = JwtAuthorityManagedObjectSource.randomString(80, 100);\n\t\tSystem.out.println(\"Init Vector: \" + initVector + \" (\" + initVector.length() + \"), Start Salt: \" + startSalt\n\t\t\t\t+ \", Lace: \" + lace + \" (\" + lace.length() + \"),\" + \"(\" + startSalt.length() + \"), End Salt: \" + endSalt\n\t\t\t\t+ \"(\" + endSalt.length() + \")\");\n\n\t\t// Obtain the bytes\n\t\tbyte[] initVectorBytes = initVector.getBytes(UTF8);\n\t\tbyte[] startSaltBytes = startSalt.getBytes(UTF8);\n\t\tbyte[] laceBytes = lace.getBytes(UTF8);\n\t\tbyte[] endSaltBytes = endSalt.getBytes(UTF8);\n\n\t\t// Encrypt and decrypt\n\t\tString encrypted = JwtAuthorityManagedObjectSource.encrypt(refreshKey, initVectorBytes, startSaltBytes,\n\t\t\t\tlaceBytes, endSaltBytes, message, mockCipherFactory);\n\t\tString decrypted = JwtAuthorityManagedObjectSource.decrypt(refreshKey, initVectorBytes, startSaltBytes,\n\t\t\t\tlaceBytes, endSaltBytes, encrypted, mockCipherFactory);\n\n\t\t// Indicate values\n\t\tSystem.out.println(\"encrypted: \" + encrypted + \"\\ndecrypted: \" + decrypted);\n\t\tassertEquals(\"Should decrypt to plain text\", message, decrypted);\n\t}", "title": "" }, { "docid": "c802811e209929655f808b2e2e6dae68", "score": "0.49237704", "text": "public com.google.protobuf.ByteString getIv() {\n return iv_;\n }", "title": "" }, { "docid": "92af8cb50b4397af41d35b9af4f7080a", "score": "0.49125877", "text": "public boolean isVerifying();", "title": "" }, { "docid": "02eddf119db6bbc4f4f31648b4bae336", "score": "0.49114302", "text": "@Test\n public void shouldEntryptAndDecryptRandomData() {\n Random rnd = new Random();\n byte[] key = new byte[32];\n byte[] data = new byte[16];\n byte[] encrypted = new byte[16];\n byte[] decrypted = new byte[16];\n\n for (int i = 0; i < RANDOM_TRIES; ++i) {\n rnd.nextBytes(key);\n rnd.nextBytes(data);\n Aes256 cipher = new Aes256(key);\n cipher.encrypt(data, 0, encrypted, 0);\n cipher.decrypt(encrypted, 0, decrypted, 0);\n Assert.assertTrue(Arrays.equals(data, decrypted));\n }\n }", "title": "" }, { "docid": "6b956840ecd735772bf5306631e9b9a5", "score": "0.49058208", "text": "@java.lang.Override\n public boolean hasEncryptionKey() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "dc66f53d87e02c38c2774a512c8558a7", "score": "0.49052414", "text": "private void checkIntegrity()\r\n {\r\n if (!integrityOK)\r\n {\r\n throw new SecurityException(\"ResizeableArrayBag object is corrupt.\");\r\n }\r\n }", "title": "" }, { "docid": "f2bf3078a064b4018463fd68caff134c", "score": "0.4905076", "text": "public javax.crypto.spec.IvParameterSpec getServerIv() {\n /*\n // Can't load method instructions: Load method exception: null in method: sun.security.internal.spec.TlsKeyMaterialSpec.getServerIv():javax.crypto.spec.IvParameterSpec, dex: in method: sun.security.internal.spec.TlsKeyMaterialSpec.getServerIv():javax.crypto.spec.IvParameterSpec, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.internal.spec.TlsKeyMaterialSpec.getServerIv():javax.crypto.spec.IvParameterSpec\");\n }", "title": "" }, { "docid": "750f7df740247a815aa52733a12bd4b9", "score": "0.48998448", "text": "private boolean isTbsCertificateValid() {\n if ((serialNumber == null) || (serialNumber.length < 1) || (serialNumber.length > 20)) {\n return false;\n }\n\n if ((caKeyDefinition != null) && (!caKeyDefinition.isValid())) {\n return false;\n }\n\n if ((issuer != null) && (!issuer.isValid())) {\n return false;\n }\n\n byte[] testBytes;\n\n if (validFrom != null) {\n testBytes = BigInteger.valueOf(validFrom.getTime() / 1000).toByteArray();\n\n if ((testBytes.length < 4) || (testBytes.length > 5)) {\n return false;\n }\n }\n\n if (validDuration != null) {\n if (validFrom == null) {\n return false;\n }\n\n testBytes = BigInteger.valueOf(validDuration.intValue()).toByteArray();\n\n if ((testBytes.length < 1) || (testBytes.length > 4)) {\n return false;\n }\n }\n\n if ((subject == null) || (!subject.isValid())) {\n return false;\n }\n\n if ((publicKeyDefinition != null) && (!publicKeyDefinition.isValid())) {\n return false;\n }\n\n if ((authorityKeyIdentifier != null) && (!authorityKeyIdentifier.isValid())) {\n return false;\n }\n\n if ((basicConstraints != null)\n && ((basicConstraints.intValue() < 1) || (basicConstraints.intValue() > 7))) {\n return false;\n }\n\n if ((certificatePolicy != null) && (!ValidationUtils.isValidOid(certificatePolicy))) {\n return false;\n }\n\n if ((subjectAlternativeName != null) && (!subjectAlternativeName.isValid())) {\n return false;\n }\n\n if ((issuerAlternativeName != null) && (!issuerAlternativeName.isValid())) {\n return false;\n }\n\n if ((extendedKeyUsage != null) && (!ValidationUtils.isValidOid(extendedKeyUsage))) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "2c8e8bba97693b3e5bbc34b8f5bab407", "score": "0.489069", "text": "public boolean hasVector(String key) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fc0527ffdfae4b8242389ad39d8ac105", "score": "0.48769706", "text": "void init(boolean decrypting, String algorithm, byte[] keyValue,\n byte[] ivValue, int tagLenBytes)\n throws InvalidKeyException {\n if (keyValue == null || ivValue == null) {\n throw new InvalidKeyException(\"Internal error\");\n }\n\n // always encrypt mode for embedded cipher\n this.embeddedCipher.init(false, algorithm, keyValue);\n this.subkeyH = new byte[AES_BLOCK_SIZE];\n this.embeddedCipher.encryptBlock(new byte[AES_BLOCK_SIZE], 0,\n this.subkeyH, 0);\n\n this.iv = ivValue.clone();\n preCounterBlock = getJ0(iv, subkeyH);\n byte[] j0Plus1 = preCounterBlock.clone();\n increment32(j0Plus1);\n gctrPAndC = new GCTR(embeddedCipher, j0Plus1);\n ghashAllToS = new GHASH(subkeyH);\n\n this.tagLenBytes = tagLenBytes;\n if (aadBuffer == null) {\n aadBuffer = new ByteArrayOutputStream();\n } else {\n aadBuffer.reset();\n }\n processed = 0;\n sizeOfAAD = 0;\n if (decrypting) {\n ibuffer = new ByteArrayOutputStream();\n }\n }", "title": "" }, { "docid": "9801cb30632deeb9bfa62b3b6909c684", "score": "0.4874551", "text": "private void validateANDverify(){\n }", "title": "" }, { "docid": "e6e3b5a769a601baac64a61be594872d", "score": "0.48717436", "text": "@Test\n public void shouldEntryptAndDecryptATestMessage() {\n byte[] key = {(byte) 0x00, (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0x04, (byte) 0x05, (byte) 0x06,\n (byte) 0x07, (byte) 0x08, (byte) 0x09, (byte) 0x0a, (byte) 0x0b, (byte) 0x0c, (byte) 0x0d, (byte) 0x0e,\n (byte) 0x0f, (byte) 0x10, (byte) 0x11, (byte) 0x12, (byte) 0x13, (byte) 0x14, (byte) 0x15, (byte) 0x16,\n (byte) 0x17, (byte) 0x18, (byte) 0x19, (byte) 0x1a, (byte) 0x1b, (byte) 0x1c, (byte) 0x1d, (byte) 0x1e,\n (byte) 0x1f};\n\n Aes256 cipher = new Aes256(key);\n\n byte[] block = {(byte) 0x00, (byte) 0x11, (byte) 0x22, (byte) 0x33, (byte) 0x44, (byte) 0x55, (byte) 0x66,\n (byte) 0x77, (byte) 0x88, (byte) 0x99, (byte) 0xaa, (byte) 0xbb, (byte) 0xcc, (byte) 0xdd, (byte) 0xee,\n (byte) 0xff};\n\n byte[] encrypted = new byte[16];\n cipher.encrypt(block, 0, encrypted, 0);\n byte[] expectedEncrypted = {(byte) 0x8e, (byte) 0xa2, (byte) 0xb7, (byte) 0xca, (byte) 0x51, (byte) 0x67,\n (byte) 0x45, (byte) 0xbf, (byte) 0xea, (byte) 0xfc, (byte) 0x49, (byte) 0x90, (byte) 0x4b, (byte) 0x49,\n (byte) 0x60, (byte) 0x89};\n\n Assert.assertTrue(Arrays.equals(expectedEncrypted, encrypted));\n\n byte[] decrypted = new byte[16];\n cipher.decrypt(expectedEncrypted, 0, decrypted, 0);\n Assert.assertTrue(Arrays.equals(block, decrypted));\n }", "title": "" }, { "docid": "aac4cd0ab5a5be2f15f8cb9ff92557e6", "score": "0.48602387", "text": "private void m154564a(OpenSSLKey akVar) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, SignatureException {\n try {\n NativeCrypto.X509_verify(this.f114698a, this, akVar.mo134218a());\n } catch (RuntimeException e) {\n throw new CertificateException(e);\n } catch (BadPaddingException unused) {\n throw new SignatureException();\n }\n }", "title": "" }, { "docid": "57eab37fbecce405568d13be60c2cf37", "score": "0.4858261", "text": "public void InitCiphers(){\n encryptCipher = new PaddedBufferedBlockCipher(\n new CBCBlockCipher(new AESEngine()));\n\n decryptCipher = new PaddedBufferedBlockCipher(\n new CBCBlockCipher(new AESEngine()));\n\n //create the IV parameter\n ParametersWithIV parameterIV =\n new ParametersWithIV(new KeyParameter(key),IV);\n\n encryptCipher.init(true, parameterIV);\n decryptCipher.init(false, parameterIV);\n }", "title": "" }, { "docid": "607e37d1162845a51176102d933439fb", "score": "0.48535353", "text": "public static String decrypt(byte[] cipherText, SecretKey key, byte[] IV) throws Exception\r\n {\n Cipher cipher = Cipher.getInstance(\"AES/GCM/NoPadding\");\r\n\r\n // Create SecretKeySpec for key\r\n SecretKeySpec keySpec = new SecretKeySpec(key.getEncoded(), \"AES\");\r\n\r\n // Create GCMParameterSpec for key\r\n IV = new byte[GCM_IV_LENGTH]; //here is issue\r\n\r\n GCMParameterSpec gcmParameterSpec = new GCMParameterSpec(GCM_TAG_LENGTH * 8, IV);\r\n\r\n // Initialize Cipher for DECRYPT_MODE to in plain text \r\n cipher.init(Cipher.DECRYPT_MODE, keySpec, gcmParameterSpec);\r\n\r\n // Perform Decryption on encrypted text\r\n byte[] decryptedText = cipher.doFinal(cipherText);\r\n\r\n return new String(decryptedText);\r\n }", "title": "" }, { "docid": "d803be8dc9d9695e70668c983bf6ecd8", "score": "0.48518533", "text": "protected boolean isKeyValid() {\n\t\treturn (getEntityContext().getPrimaryKey() != null);\n\t}", "title": "" }, { "docid": "4719b16284c9ae36517e872e73cc8dd8", "score": "0.48491228", "text": "protected void validateKeypairs(ArrayOfString[] param){\n \n }", "title": "" }, { "docid": "568038edf84da6c170dc2f4f62df827a", "score": "0.48490047", "text": "@java.lang.Override\n public boolean hasEncryptionKey() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "a26fc0753ed920e0299534d978ab7687", "score": "0.48413146", "text": "@Test\n public void testAes192ElementCipher() throws Exception {\n XMLSecurityProperties properties = new XMLSecurityProperties();\n List<XMLSecurityConstants.Action> actions = new ArrayList<>();\n actions.add(XMLSecurityConstants.ENCRYPTION);\n properties.setActions(actions);\n\n // Set the key up\n byte[] bits192 = {\n (byte) 0x08, (byte) 0x09, (byte) 0x0A, (byte) 0x0B,\n (byte) 0x0C, (byte) 0x0D, (byte) 0x0E, (byte) 0x0F,\n (byte) 0x10, (byte) 0x11, (byte) 0x12, (byte) 0x13,\n (byte) 0x14, (byte) 0x15, (byte) 0x16, (byte) 0x17,\n (byte) 0x18, (byte) 0x19, (byte) 0x1A, (byte) 0x1B,\n (byte) 0x1C, (byte) 0x1D, (byte) 0x1E, (byte) 0x1F};\n SecretKey key = new SecretKeySpec(bits192, \"AES\");\n properties.setEncryptionKey(key);\n properties.setEncryptionSymAlgorithm(\"http://www.w3.org/2001/04/xmlenc#aes192-cbc\");\n\n SecurePart securePart =\n new SecurePart(new QName(\"urn:example:po\", \"PaymentInfo\"), SecurePart.Modifier.Element);\n properties.addEncryptionPart(securePart);\n\n OutboundXMLSec outboundXMLSec = XMLSec.getOutboundXMLSec(properties);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n XMLStreamWriter xmlStreamWriter = outboundXMLSec.processOutMessage(baos, StandardCharsets.UTF_8.name());\n\n InputStream sourceDocument =\n this.getClass().getClassLoader().getResourceAsStream(\n \"ie/baltimore/merlin-examples/merlin-xmlenc-five/plaintext.xml\");\n XMLStreamReader xmlStreamReader = xmlInputFactory.createXMLStreamReader(sourceDocument);\n\n XmlReaderToWriter.writeAll(xmlStreamReader, xmlStreamWriter);\n xmlStreamWriter.close();\n\n // System.out.println(\"Got:\\n\" + new String(baos.toByteArray(), StandardCharsets.UTF_8.name()));\n\n Document document = null;\n try (InputStream is = new ByteArrayInputStream(baos.toByteArray())) {\n document = XMLUtils.read(is, false);\n }\n\n NodeList nodeList = document.getElementsByTagNameNS(\"urn:example:po\", \"PaymentInfo\");\n assertEquals(nodeList.getLength(), 0);\n\n // Check the CreditCard encrypted ok\n nodeList = document.getElementsByTagNameNS(\"urn:example:po\", \"CreditCard\");\n assertEquals(nodeList.getLength(), 0);\n\n nodeList = document.getElementsByTagNameNS(\n XMLSecurityConstants.TAG_xenc_EncryptedData.getNamespaceURI(),\n XMLSecurityConstants.TAG_xenc_EncryptedData.getLocalPart()\n );\n assertEquals(nodeList.getLength(), 1);\n\n // Decrypt using DOM API\n Document doc =\n decryptUsingDOM(\"http://www.w3.org/2001/04/xmlenc#aes192-cbc\", key, null, document);\n\n // Check the CreditCard decrypted ok\n nodeList = doc.getElementsByTagNameNS(\"urn:example:po\", \"CreditCard\");\n assertEquals(nodeList.getLength(), 1);\n }", "title": "" }, { "docid": "37cbc56e4fedbb7aba72aa1abf341971", "score": "0.48356813", "text": "@java.lang.Override\n public boolean hasEncrypted() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "title": "" }, { "docid": "5d2c895bfc78f730acbace692cd2a45c", "score": "0.48303705", "text": "boolean hasEncryptor();", "title": "" }, { "docid": "85429bda357b1424bd1044782e187ebd", "score": "0.48237255", "text": "@Test\n public void testVerify() {\n // Verify the query for each block\n for (int i = 0; i < ADS.getLeaves().size(); i++) {\n Block block = data.getBlock(i);\n SHProof proof = ADS.getProof(i);\n\n assertTrue(ADS.verify(block, proof, ADS.getAuthenticator()));\n }\n }", "title": "" }, { "docid": "829b3f2a66fea0b3eb9dc912e9a2a438", "score": "0.4821931", "text": "public boolean hasEncrypt() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "title": "" }, { "docid": "7e40c2973dbbf772acbc00f90c40fb74", "score": "0.48203307", "text": "@Test\n public void testDifferentConfWithCryptoAES() throws Exception {\n setRpcProtection(\"privacy\", \"privacy\");\n\n setCryptoAES(\"false\", \"true\");\n callRpcService(User.create(ugi));\n\n setCryptoAES(\"true\", \"false\");\n try {\n callRpcService(User.create(ugi));\n fail(\"The exception should be thrown out for the rpc timeout.\");\n } catch (Exception e) {\n // ignore the expected exception\n }\n }", "title": "" }, { "docid": "912349b0b6bb05551fb2c214394dfb5d", "score": "0.48193002", "text": "public boolean verify() {\n\t\tbyte[] masterPub = getMasterPublic();\r\n\t\tif (masterPub == null) {\r\n\t\t\treturn false;\r\n\t\t}\t\t\r\n\t\t// Verify that producerPubKey has not been tampered\r\n\t\tif (!verifySig(masterPub, \r\n\t\t\t\tproducerSig, producerPubKey.toByteArray())) {\r\n\t\t\treturn false;\t\r\n\t\t}\r\n\t\t// Verify that the datum has not been tampered\r\n\t\tif (!verifySig(producerPubKey.getPublicKey(),\r\n\t\t\t\tdatumSig, datum.toByteArray())) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\t\r\n\t}", "title": "" } ]
5275ae6726cc5c7411b1233d5b46ba31
Agrega producto al layout
[ { "docid": "c210377febc54e0dde4e3c1109f00084", "score": "0.5559936", "text": "private void agregarProducto(String msg, String value) {\n // Obtiene el grupo\n LinearLayout parentLayout = (LinearLayout) findViewById(R.id.root);\n\n // Crea el inflater\n LayoutInflater layoutInflater = getLayoutInflater();\n View view;\n\n // Obtiene el layout a insertar\n view = layoutInflater.inflate(R.layout.productos_insertar, parentLayout, false);\n\n // Obtiene views\n LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.vgroup);\n EditText et = (EditText) linearLayout.findViewById(R.id.editText);\n TextView tv = (TextView) linearLayout.findViewById(R.id.textView);\n\n tv.setText(msg);\n if (value != \"0\") {\n et.setText(value);\n }\n\n parentLayout.addView(linearLayout);\n }", "title": "" } ]
[ { "docid": "e3d87cefafa1999ae12832c81eaf571a", "score": "0.64472747", "text": "public AdicionarProdutoCarrinhoVIew() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "d99673b5fafc16605e9662db29acb784", "score": "0.640081", "text": "public Registrar_Producto() {\n this.setContentPane(fondo);\n initComponents();\n llenaArr();\n llenaCB();\n soloLetras(rp_tx_nombre);\n soloNumeros(rp_tx_cantidad);\n soloNumeros(rp_tx_precio);\n soloLetras(rp_tx_descripcion);\n }", "title": "" }, { "docid": "e5cbc2279e4882debded190d46fbadbc", "score": "0.6338934", "text": "public Comprar_Productos() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n mostrarProductos();\n }", "title": "" }, { "docid": "844395a9171d7fd50bcbbbe58be83593", "score": "0.63342726", "text": "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "title": "" }, { "docid": "847be3143bccbd7993a4ed4e498fe204", "score": "0.6321328", "text": "protected abstract void iniciarLayout();", "title": "" }, { "docid": "1a582daed4295b0ac5207abb4aca3d57", "score": "0.6297698", "text": "public ActualizarProducto() {\n initComponents();\n }", "title": "" }, { "docid": "a11f61975d26ee347aa98f2683476ec9", "score": "0.62917817", "text": "public VentanaCrearProducto(ControladorProducto controladorProducto) {\n initComponents();\n this.controladorProducto=controladorProducto;\n txtCodigoCrearProducto.setText(String.valueOf(this.controladorProducto.getCodigo()));\n this.setSize(1000,600);\n }", "title": "" }, { "docid": "9717b2de4e53b142c08e2979bba73bb2", "score": "0.6263063", "text": "public DetalleProducto() {\n initComponents();\n }", "title": "" }, { "docid": "39bce90c42cc7e041a4623bf11eebdc6", "score": "0.62593496", "text": "void LienaDivisoria(){\r\n \t\r\n VerticalLayout LayoutLineaDivisoria = new VerticalLayout();\r\n LayoutLineaDivisoria.setWidth(\"1024px\");\r\n LayoutLineaDivisoria.setHeight(\"5px\");\r\n LayoutLineaDivisoria.setStyleName(EstiloCSS + \"LayoutLineaDicisoria\");\r\n layout.addComponent(LayoutLineaDivisoria, \"left: 0px; top: 450px;\"); \r\n\r\n }", "title": "" }, { "docid": "ec24b648cb2bb18b2ea1b7b50618fff0", "score": "0.6238827", "text": "private void inicComponent() {\n\n\t\tprogres = (LinearLayout) findViewById(R.id.linearLayoutProgres);\n\t\t\n\t\tbuttonKategorije = (Button) findViewById(R.id.buttonKategorije);\n\t\t\n\t}", "title": "" }, { "docid": "2109f71c2dbd522e825834d35b0da87b", "score": "0.61520594", "text": "private void colocar(){\n setLayout(s);\n eleccion = new BarraEleccion(imagenes,textos);\n eleccion.setLayout(new GridLayout(4,4));\n eleccion.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createBevelBorder(5), \"SELECCIONA EL MAGUEY\",\n TitledBorder.CENTER, TitledBorder.TOP,new Font(\"Helvetica\",Font.BOLD,15),Color.WHITE));\n eleccion.setFondoImagen(imgFond);\n etqAlcohol = new JLabel(\"SELECCIONA EL GRADO DE ALCOHOL\");\n etqAlcohol.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqAlcohol.setForeground(Color.WHITE);\n alcohol = new JComboBox<>();\n etqTipo = new JLabel(\"SELECCIONA EL TIPO DE MEZCAL\");\n etqTipo.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqTipo.setForeground(Color.WHITE);\n tipo = new JComboBox<>();\n btnRegistrar = new JButton();\n btnRegistrar.setFont(new Font(\"Sylfaen\", Font.BOLD, 17));\n btnRegistrar.setText(\"Registrar\");\n btnRegistrar.setHorizontalAlignment(SwingConstants.CENTER);\n btnRegistrar.setActionCommand(\"registrar\");\n add(eleccion);\n add(etqAlcohol);\n add(alcohol);\n add(etqTipo);\n add(tipo);\n add(btnRegistrar);\n iniciarVistas();\n }", "title": "" }, { "docid": "e36b508acf7f83cddf4910712bdf250f", "score": "0.60996294", "text": "public void agregarDatosProductoText() {\n if (cantidadProducto != null && cantidadProducto > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProducto, this.producto.getPrecioVenta(),\n this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProducto))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n //Mensaje de confirmacion de exito de la operacion \n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado correctamente!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n } else {\n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n }\n\n }", "title": "" }, { "docid": "a2348a0d955ff4965e339e03ecf1cefe", "score": "0.6083273", "text": "public VistaListadeproductos() {\n // You can initialise any data required for the connected UI components here.\n }", "title": "" }, { "docid": "d53ff12bea49ea607a9bc0cc1cb87c06", "score": "0.6041202", "text": "public BuscarProducto(AgregandoProductos ventanaPadre) {\n this.daoProductos = new ProductoJpaController();\n this.ventanaPadre = ventanaPadre;\n initComponents();\n this.setupComponents();\n }", "title": "" }, { "docid": "14417e36e87f47dcf27945f91bb1e64a", "score": "0.6034621", "text": "@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}", "title": "" }, { "docid": "cc363d61af71fcad2b9951ae4735df38", "score": "0.6027409", "text": "public void listarProducto() {\n }", "title": "" }, { "docid": "a767a3697bc30ec07aa3c50aa0f71c6f", "score": "0.60005766", "text": "public CrearProductos() {\n initComponents();\n }", "title": "" }, { "docid": "c5a94a9b1f2eace0c383cd9fb9a9eafa", "score": "0.59941727", "text": "public Producto_Insertar() {\n initComponents();\n this.setLocationRelativeTo(null);\n setResizable(false);\n actualizarJTabale();\n }", "title": "" }, { "docid": "c5d4f0a25b2ae8a7303bfc1a7849eb06", "score": "0.59885085", "text": "public void a() {\n this.f25458d.a(this.f25457c);\n this.f25457c.a(this);\n Context context = getContext();\n LinearLayout linearLayout = new LinearLayout(context);\n linearLayout.setOrientation(1);\n addView(linearLayout, new ViewGroup.LayoutParams(-1, -2));\n d a2 = ShopAssistantItemView_.a(context);\n a2.a(R.drawable.ic_myproducts, R.string.sp_my_products, 0);\n a2.setTag(\"PRODUCT\");\n a2.setMinimumHeight(this.f25455a);\n linearLayout.addView(a2, new FrameLayout.LayoutParams(-1, -2));\n d a3 = ShopAssistantItemView_.a(context);\n a3.a(R.drawable.ic_mycustomers, R.string.sp_my_customers, 2);\n linearLayout.addView(a3, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a4 = ShopAssistantItemView_.a(context);\n a4.a(R.drawable.ic_shopprofile, R.string.sp_label_shop_profile, 6);\n linearLayout.addView(a4, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a5 = ShopAssistantItemView_.a(context);\n a5.a(R.drawable.img_shopsettings, R.string.sp_shop_settings, 4);\n linearLayout.addView(a5, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a6 = ShopAssistantItemView_.a(context);\n a6.a(R.drawable.ic_categories, R.string.sp_my_shop_categories, 8);\n a6.setSubtitle(this.f25461g.getCategoriesPath());\n linearLayout.addView(a6, new FrameLayout.LayoutParams(-1, this.f25455a));\n View view = new View(context);\n view.setBackgroundColor(b.a(R.color.background));\n linearLayout.addView(view, new FrameLayout.LayoutParams(-1, b.a.k));\n View view2 = new View(context);\n view2.setBackgroundColor(com.garena.android.appkit.tools.b.a(R.color.black06));\n linearLayout.addView(view2, new FrameLayout.LayoutParams(-1, b.a.f7690a));\n View inflate = ((LayoutInflater) context.getSystemService(\"layout_inflater\")).inflate(R.layout.seller_center, (ViewGroup) null);\n ((TextView) inflate.findViewById(R.id.url)).setText(\"http://seller\" + i.f7042e);\n int b2 = com.garena.android.appkit.tools.b.b() - b.a.m;\n w.a(getContext()).a((int) R.drawable.sellercentre_banner).b(b2, (int) (((float) b2) / 1.886f)).e().f().a((ImageView) inflate.findViewById(R.id.banner));\n FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -2);\n inflate.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n g.this.f25459e.V();\n }\n });\n linearLayout.addView(inflate, layoutParams);\n this.f25457c.e();\n this.f25457c.f();\n }", "title": "" }, { "docid": "6fe2a760c8791473767634adfcf37905", "score": "0.5976129", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n\n\n productModels = new ArrayList<>();\n //Electro\n ProductModel productModel1 = new ProductModel(\"LED 4K Ultra HD Smart TV\",\"https://home.ripley.cl/store/Attachment/WOP/D171/2000371667503/2000371667503_2.jpg\",279990,209990,\"electro\",\"2000371667503P\",\"11223950\");\n productModels.add(productModel1);\n ProductModel productModel2 = new ProductModel(\"Lavadora carga superior 15 kilos\",\"https://home.ripley.cl/store/Attachment/WOP/D136/2000351773811/2000351773811_2.jpg\",339990,229990,\"electro\",\"2000351773811P\",\"1190613\");\n productModels.add(productModel2);\n ProductModel productModel3 = new ProductModel(\"Robot aspirador\",\"https://home.ripley.cl/store/Attachment/WOP/D122/2000369109855/2000369109855_2.jpg\",399990,194990,\"electro\",\"2000369109855P\",\"9334029\");\n productModels.add(productModel3);\n ProductModel productModel4 = new ProductModel(\"Extractor de jugo\",\"https://home.ripley.cl/store/Attachment/WOP/D122/2000366737198/2000366737198_2.jpg\",199990,59990,\"electro\",\"2000366737198P\",\"5538059\");\n productModels.add(productModel4);\n ProductModel productModel5 = new ProductModel(\"Máquina de Coser\",\"https://home.ripley.cl/store/Attachment/WOP/D122/2000372411631/2000372411631_2.jpg\",249990,169990,\"electro\",\"2000372411631P\",\"11780619\");\n productModels.add(productModel5);\n\n //tecno\n ProductModel productModel6 = new ProductModel(\"Cámara réflex 18-55mm 18MP\",\"https://home.ripley.cl/store/Attachment/WOP/D126/2000359329935/2000359329935_2.jpg\",399990,379990,\"tecno\",\"2000359329935P\",\"2077501\");\n productModels.add(productModel6);\n ProductModel productModel7 = new ProductModel(\"Consola PS4 Bundle\",\"https://home.ripley.cl/store/Attachment/WOP/D172/2000375421729/2000375421729_2.jpg\",279990,229990,\"tecno\",\"2000375421729P\",\"13486166\");\n productModels.add(productModel7);\n ProductModel productModel8 = new ProductModel(\"ACER NITRO 5 AN515-42-R4KY\",\"https://home.ripley.cl/store/Attachment/WOP/D113/2000372107077/2000372107077_2.jpg\",599990,549990,\"tecno\",\"2000375421729P\",\"13486166\");\n productModels.add(productModel8);\n ProductModel productModel9 = new ProductModel(\"CAMARA GOPRO HERO7 BLACK\",\"https://home.ripley.cl/store/Attachment/WOP/D126/2000371958953/2000371958953_2.jpg\",349990,249990,\"tecno\",\"2000371958953P\",\"11446224\");\n productModels.add(productModel9);\n ProductModel productModel10 = new ProductModel(\"HUAWEI MATE 20\",\"https://home.ripley.cl/store/Attachment/WOP/D191/2000373857964/2000373857964_2.jpg\",169990,149990,\"tecno\",\"2000373857964P\",\"12264501\");\n productModels.add(productModel10);\n\n //decohogar\n ProductModel productModel11 = new ProductModel(\"JUEGO DE COMEDOR RIPLEY\",\"https://home.ripley.cl/store/Attachment/WOP/D359/2000371827983/2000371827983_2.jpg\",349990,249990,\"decohogar\",\"2000371827983P\",\"12431080\");\n productModels.add(productModel11);\n ProductModel productModel12 = new ProductModel(\"JUEGO DE CUBIERTOS\",\"https://home.ripley.cl/store/Attachment/WOP/D361/2000374299572/2000374299572_2.jpg\",16990,9990,\"decohogar\",\"2000374299572P\",\"12773851\");\n productModels.add(productModel12);\n ProductModel productModel13 = new ProductModel(\"ALFOMBRA DIB\",\"https://home.ripley.cl/store/Attachment/WOP/D102/2000374310932/2000374310932_2.jpg\",231990,79990,\"decohogar\",\"2000374310932P\",\"12734724\");\n productModels.add(productModel13);\n ProductModel productModel14 = new ProductModel(\"SET 2 MALETAS CAMBRIDGE\",\"https://home.ripley.cl/store/Attachment/WOP/D369/2000368425048/2000368425048_2.jpg\",129990,129990,\"decohogar\",\"2000368425048P\",\"9322533\");\n productModels.add(productModel14);\n ProductModel productModel15 = new ProductModel(\"CUADROS DECORATIVOS RIPLEY\",\"https://home.ripley.cl/store/Attachment/WOP/D367/2000371915604/2000371915604_2.jpg\",26990,21990,\"decohogar\",\"2000371915604P\",\"12409117\");\n productModels.add(productModel15);\n\n //deporte\n ProductModel productModel16 = new ProductModel(\"BICICLETA TREK MARLIN 5\",\"https://home.ripley.cl/store/Attachment/WOP/D192/2000369989594/2000369989594_2.jpg\",379990,289990,\"deporte\",\"2000369989594P\",\"10128017\");\n productModels.add(productModel16);\n ProductModel productModel17 = new ProductModel(\"SCOOTER ELECTRICO\",\"http://ripleycl.imgix.net/https%3A%2F%2Fripley-prod.mirakl.net%2Fmmp%2Fmedia%2Fproduct-media%2F58911%2FFalabella%25201.jpg?w=750&h=555&ch=Width&auto=format&cs=strip&bg=FFFFFF&q=60&trimcolor=FFFFFF&trim=color&fit=fillmax&ixlib=js-1.1.0&s=fb80d9cbd5408cf0615a71e550fdbcdd\",329990,309990,\"deporte\",\"MPM00002006512\",\"11768504\");\n productModels.add(productModel17);\n ProductModel productModel18 = new ProductModel(\"BICICLETA ESTÁTICA\",\"https://home.ripley.cl/store/Attachment/WOP/D192/2000335659285/2000335659285_2.jpg\",99990,89990,\"deporte\",\"2000335659285P\",\"320034\");\n productModels.add(productModel18);\n ProductModel productModel19 = new ProductModel(\"CARPA NATIONAL GEOGRAPHIC\",\"https://home.ripley.cl/store/Attachment/WOP/D170/2000327637482/2000327637482_2.jpg\",89990,54990,\"deporte\",\"2000327637482P\",\"493501\");\n productModels.add(productModel19);\n ProductModel productModel20 = new ProductModel(\"TROTADORA ELECTRICA\",\"http://ripleycl.imgix.net/http%3A%2F%2Fs3.amazonaws.com%2Fimagenes-sellers-mercado-ripley%2F2019%2F07%2F22094411%2FARC-3421A.jpg?w=750&h=555&ch=Width&auto=format&cs=strip&bg=FFFFFF&q=60&trimcolor=FFFFFF&trim=color&fit=fillmax&ixlib=js-1.1.0&s=2a5ae55b9f8903faa978d95d2a3aecfe\",329990,179990,\"deporte\",\"MPM00001075806\",\"10144001\");\n productModels.add(productModel20);\n\n //moda\n ProductModel productModel21 = new ProductModel(\"PARKA TATIENNE\",\"https://home.ripley.cl/store/Attachment/WOP/D321/2000370840310/2000370840310_2.jpg\",39990,16990,\"moda\",\"2000370840266\",\"11755568\");\n productModels.add(productModel21);\n ProductModel productModel22 = new ProductModel(\"PARKA\",\"https://home.ripley.cl/store/Attachment/WOP/D129/2000371979576/2000371979576_2.jpg\",34990,12990,\"moda\",\"2000371979422\",\"11986727\");\n productModels.add(productModel22);\n ProductModel productModel23 = new ProductModel(\"SWEATER SFERA\",\"https://home.ripley.cl/store/Attachment/WOP/D388/2000373199514/2000373199514_2.jpg\",14990,5990,\"moda\",\"2000373199514\",\"13111833\");\n productModels.add(productModel23);\n ProductModel productModel24 = new ProductModel(\"SWEATER CACHAREL\",\"https://home.ripley.cl/store/Attachment/WOP/D320/2000373423961/2000373423961_2.jpg\",21990,16990,\"moda\",\"2000373423879\",\"13165378\");\n productModels.add(productModel24);\n ProductModel productModel25 = new ProductModel(\"PIJAMA INDEX\",\"https://home.ripley.cl/store/Attachment/WOP/D134/2000372471772/2000372471772_2.jpg\",19990,4990,\"moda\",\"2000372471789\",\"12647300\");\n productModels.add(productModel25);\n\n //TODO Delete\n ArrayList<ProductModel> resultArrayList = new ArrayList<>();\n for(ProductModel searchItemMasterObj : productModels) {\n if(searchItemMasterObj.getCategory().contains(\"electro\") || searchItemMasterObj.getCategory().contains(\"moda\") ) {\n resultArrayList.add(searchItemMasterObj);\n }\n }\n\n Log.i(TAG,\"resultArrayList cantidad: \" + resultArrayList.size() );\n\n recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view1);\n RecyclerView.LayoutManager recyclerViewLayoutManager = new GridLayoutManager(getContext(),2);\n recyclerView.setLayoutManager(recyclerViewLayoutManager);\n recyclerProductViewAdapter= new RecyclerProductViewAdapter(productModels,getContext());\n recyclerView.setAdapter(recyclerProductViewAdapter);\n\n return view;\n }", "title": "" }, { "docid": "5ddebc5f43ec5d35fc8259717f46f929", "score": "0.59708637", "text": "public CadastrarProduto() {\n initComponents();\n }", "title": "" }, { "docid": "e578744ce5ec5a569d0d232f71f96ed7", "score": "0.59237444", "text": "private void updateContent() {\n if (product != null) {\n etProductName.setText(product.getName());\n etPrice.setText(product.getPrice().toString());\n }\n }", "title": "" }, { "docid": "820391d0692875b69ac714b5c7ae8609", "score": "0.5877072", "text": "@AutoGenerated\r\n\tprivate VerticalLayout buildPnlFondo() {\n\t\tpnlFondo = new VerticalLayout();\r\n\t\tpnlFondo.setImmediate(false);\r\n\t\tpnlFondo.setWidth(\"-1px\");\r\n\t\tpnlFondo.setHeight(\"-1px\");\r\n\t\tpnlFondo.setMargin(false);\r\n\t\t\r\n\t\t// imgFondo\r\n\t\timgFondo = new Embedded();\r\n\t\timgFondo.setImmediate(false);\r\n\t\timgFondo.setWidth(\"500px\");\r\n\t\timgFondo.setHeight(\"500px\");\r\n\t\timgFondo.setSource(new ThemeResource(\"img/imagen.jpg\"));\r\n\t\timgFondo.setType(1);\r\n\t\timgFondo.setMimeType(\"image/jpg\");\r\n\t\tpnlFondo.addComponent(imgFondo);\r\n\t\t\r\n\t\treturn pnlFondo;\r\n\t}", "title": "" }, { "docid": "d073e758cddf9e1d37024913804eef3f", "score": "0.58679396", "text": "public VendasProdutos() {\n initComponents();\n }", "title": "" }, { "docid": "c5209c55c7811987f0457805c7ae07dd", "score": "0.58401376", "text": "public void agregar(Producto producto) throws BusinessErrorHelper;", "title": "" }, { "docid": "b7929ce9fbb5132b81e2675d15a39b01", "score": "0.58216757", "text": "public Productos() {\n super();\n // TODO Auto-generated constructor stub\n }", "title": "" }, { "docid": "38b0265719c7570795e88b2b9837d946", "score": "0.58145887", "text": "public Vent_Productos() {\n initComponents();\n Llenar();\n LlenarC();\n provBox.setVisible(false);\n catBox.setVisible(false);\n proidprov.setText(\" \");\n proidcat.setText(\"\");\n }", "title": "" }, { "docid": "ccb0e5a9c3c99352eea009d8bbd1de45", "score": "0.58036053", "text": "public CadProdutos() {\r\n\t\tsetTitle(\"Produtos\");\r\n\t\tsetBounds(100, 100, 450, 300);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNome = new JLabel(\"Nome:\");\r\n\t\tlblNome.setBounds(10, 11, 46, 14);\r\n\t\tcontentPanel.add(lblNome);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(66, 8, 86, 20);\r\n\t\tcontentPanel.add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblDescrio = new JLabel(\"Descri\\u00E7\\u00E3o:\");\r\n\t\tlblDescrio.setBounds(182, 14, 66, 14);\r\n\t\tcontentPanel.add(lblDescrio);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setBounds(258, 8, 110, 20);\r\n\t\tcontentPanel.add(textField_1);\r\n\t\ttextField_1.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblCategoria = new JLabel(\"Categoria:\");\r\n\t\tlblCategoria.setBounds(10, 36, 60, 14);\r\n\t\tcontentPanel.add(lblCategoria);\r\n\t\t\r\n\t\tJLabel lblValorDeCusto = new JLabel(\"Valor de Custo:\");\r\n\t\tlblValorDeCusto.setBounds(10, 88, 86, 14);\r\n\t\tcontentPanel.add(lblValorDeCusto);\r\n\t\t\r\n\t\ttextField_3 = new JTextField();\r\n\t\ttextField_3.setBounds(106, 85, 96, 20);\r\n\t\tcontentPanel.add(textField_3);\r\n\t\ttextField_3.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblValorDeVenda = new JLabel(\"Valor de Venda:\");\r\n\t\tlblValorDeVenda.setBounds(10, 113, 96, 14);\r\n\t\tcontentPanel.add(lblValorDeVenda);\r\n\t\t\r\n\t\ttextField_4 = new JTextField();\r\n\t\ttextField_4.setBounds(106, 110, 76, 20);\r\n\t\tcontentPanel.add(textField_4);\r\n\t\ttextField_4.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblValorDeVenda_1 = new JLabel(\"Valor de Venda:\");\r\n\t\tlblValorDeVenda_1.setBounds(192, 113, 100, 14);\r\n\t\tcontentPanel.add(lblValorDeVenda_1);\r\n\t\t\r\n\t\ttextField_5 = new JTextField();\r\n\t\ttextField_5.setBounds(287, 110, 66, 20);\r\n\t\tcontentPanel.add(textField_5);\r\n\t\ttextField_5.setColumns(10);\r\n\t\t\r\n\t\tJComboBox comboBox = new JComboBox();\r\n\t\tcomboBox.setBounds(76, 33, 96, 20);\r\n\t\tcontentPanel.add(comboBox);\r\n\t\t\r\n\t\tJButton button = new JButton(\"...\");\r\n\t\tbutton.setBounds(182, 32, 33, 18);\r\n\t\tcontentPanel.add(button);\r\n\t\t\r\n\t\tJLabel lblDataDeCadastro = new JLabel(\"Data de Cadastro:\");\r\n\t\tlblDataDeCadastro.setBounds(10, 138, 110, 14);\r\n\t\tcontentPanel.add(lblDataDeCadastro);\r\n\t\t\r\n\t\ttextField_2 = new JTextField();\r\n\t\ttextField_2.setBounds(116, 135, 76, 20);\r\n\t\tcontentPanel.add(textField_2);\r\n\t\ttextField_2.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblUnMedida = new JLabel(\"Un. Medida:\");\r\n\t\tlblUnMedida.setBounds(202, 138, 76, 14);\r\n\t\tcontentPanel.add(lblUnMedida);\r\n\t\t\r\n\t\ttextField_6 = new JTextField();\r\n\t\ttextField_6.setBounds(287, 135, 66, 20);\r\n\t\tcontentPanel.add(textField_6);\r\n\t\ttextField_6.setColumns(10);\r\n\t\t{\r\n\t\t\tJPanel buttonPane = new JPanel();\r\n\t\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\r\n\t\t\tgetContentPane().add(buttonPane, BorderLayout.SOUTH);\r\n\t\t\t{\r\n\t\t\t\tJButton okButton = new JButton(\"OK\");\r\n\t\t\t\tokButton.setActionCommand(\"OK\");\r\n\t\t\t\tbuttonPane.add(okButton);\r\n\t\t\t\tgetRootPane().setDefaultButton(okButton);\r\n\t\t\t}\r\n\t\t\t{\r\n\t\t\t\tJButton cancelButton = new JButton(\"Cancel\");\r\n\t\t\t\tcancelButton.addActionListener(new ActionListener() {\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tcancelButton.setActionCommand(\"Cancel\");\r\n\t\t\t\tbuttonPane.add(cancelButton);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "29769e69447fba22753527d86c305952", "score": "0.5803388", "text": "@Listen(\"onClick =#asignarEspacio\")\n\tpublic void Planificacion() {\n\t\tString dir = \"gc/espacio/frm-asignar-espacio-recursos-catalogo.zul\";\n\t\tclearDivApp(dir);\n\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t}", "title": "" }, { "docid": "5c5cda3b5e93cdf55e534486b90d32ef", "score": "0.5795944", "text": "private JPanel productVendArea() {\n JPanel productsToVend = new JPanel();\n productsToVend.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n int size = inventoryManager.getProductNumber();\n size = size % 2 == 0 ? size / 2 : size / 2 + 1;\n productButtons = new ArrayList<>();\n productsToVend.setLayout(new GridLayout(size,size, 10, 10)); // creating a 10x10 area\n ArrayList<String> products = inventoryManager.getProductInventory();\n for (String prod : products) {\n JButton temp = new JButton(prod);\n temp.addActionListener(new productListener());\n productButtons.add(temp);\n productsToVend.add(temp);\n }\n return productsToVend;\n }", "title": "" }, { "docid": "bbbc73a875d15029932b0b6a7e333bb1", "score": "0.57947993", "text": "public CaracteristicasProducto() {\n initComponents();\n setTitle(\"Los Productos\");\n this.setFrameIcon(new ImageIcon(this.getClass().getResource(\"/Imagenes/icoChiqui.png\")));\n tbProducto.setModel(modelo);\n modelo.setColumnIdentifiers(new String[]{\"Item\", \"Nombre\", \"codigo\", \"Serie\"});\n \n tbProducto.getColumnModel().getColumn(0).setPreferredWidth(50);\n tbProducto.getColumnModel().getColumn(1).setPreferredWidth(200);\n tbProducto.getColumnModel().getColumn(2).setPreferredWidth(70);\n tbProducto.getColumnModel().getColumn(3).setPreferredWidth(60);\n \n tbCaracteristicas.setModel(modelo1);\n modelo1.setColumnIdentifiers(new String[]{\"Item\", \"Caracteristica\"});\n tbCaracteristicas.getColumnModel().getColumn(0).setPreferredWidth(40);\n tbCaracteristicas.getColumnModel().getColumn(1).setPreferredWidth(250);\n \n tbCaracteristicasSimilares.setModel(modelo2);\n modelo2.setColumnIdentifiers(new String[]{\"Item\", \"Caracteristica\"});\n tbCaracteristicasSimilares.getColumnModel().getColumn(0).setPreferredWidth(40);\n tbCaracteristicasSimilares.getColumnModel().getColumn(1).setPreferredWidth(250);\n MostrarProductos();\n txtCarateristica.setEnabled(false);\n txtBuscar.grabFocus();\n FormatoTabla ft= new FormatoTabla(1);\n tbCaracteristicas.setDefaultRenderer(Object.class, ft);\n tbCaracteristicasSimilares.setDefaultRenderer(Object.class, ft);\n tbProducto.setDefaultRenderer(Object.class, ft);\n }", "title": "" }, { "docid": "218dd3cea21b12c501335f104b9b268b", "score": "0.5790601", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.wordpanel);\n products = (Products1) getIntent().getSerializableExtra(\"Product\");\n product_name = (TextView) findViewById(R.id.text_prodctname);\n text_spec = (TextView) findViewById(R.id.text_spec);\n text_price = (TextView) findViewById(R.id.text_price);\n text_count = (TextView) findViewById(R.id.text_count);\n text_shouyibili = (TextView) findViewById(R.id.text_shouyibili);\n text_daigou_price = (TextView) findViewById(R.id.text_daigou_price);\n text_daigoushouyi = (TextView) findViewById(R.id.text_daigoushouyi);\n\n product_name.setText(products.getName());\n\n text_spec.setText(products.getSpec());\n\n text_shouyibili.setText(products.getScale());\n\n\n text_price.setText(products.getPrice());\n text_count.setText(products.getCount());\n\n text_daigou_price.setText(products.getMoney());\n text_daigoushouyi.setText(products.getLucreMoney());\n }", "title": "" }, { "docid": "9660d5cf7f0a74fb8b04e6e2b5242a75", "score": "0.57860273", "text": "private void CargaInicial() {\r\n this.setTitle(\"\" + gui.getTitle().concat(\"\").concat(\" - [Modulo: Precio por Producto/Servicio]\"));\r\n }", "title": "" }, { "docid": "0f22699f1f99cc2ff522b4c0229934c3", "score": "0.57834303", "text": "public GestionProd() {\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 850, 550);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\t\r\n\t\tcnx = ConnexionMysql.connexionDB();\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Gestion des produits \");\r\n\t\tlblNewLabel.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel.setFont(new Font(\"Franklin Gothic Demi\", Font.BOLD | Font.ITALIC, 21));\r\n\t\tlblNewLabel.setBounds(281, 11, 222, 39);\r\n\t\tcontentPane.add(lblNewLabel);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Genre :\");\r\n\t\tlblNewLabel_1.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tlblNewLabel_1.setBounds(39, 105, 73, 32);\r\n\t\tcontentPane.add(lblNewLabel_1);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Marque :\");\r\n\t\tlblNewLabel_2.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tlblNewLabel_2.setBounds(29, 158, 73, 32);\r\n\t\tcontentPane.add(lblNewLabel_2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tJLabel lblNewLabel_7 = new JLabel(\"\");\r\n\t\tlblNewLabel_7.setIcon(new ImageIcon(\"C:\\\\Users\\\\Ahmed\\\\Desktop\\\\Projects\\\\App_JAVA\\\\images\\\\a.png\"));\r\n\t\tlblNewLabel_7.setForeground(SystemColor.textHighlight);\r\n\t\tlblNewLabel_7.setBackground(SystemColor.textHighlight);\r\n\t\tlblNewLabel_7.setBounds(254, 78, 210, 178);\r\n\t\tcontentPane.add(lblNewLabel_7);\r\n\t\t\r\n\t\t\r\n\t\tJLabel lblNewLabel_3 = new JLabel(\"Couleur :\");\r\n\t\tlblNewLabel_3.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_3.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tlblNewLabel_3.setBounds(23, 217, 79, 20);\r\n\t\tcontentPane.add(lblNewLabel_3);\r\n\t\t\r\n\t\tJLabel lblNewLabel_4 = new JLabel(\"Pointure :\");\r\n\t\tlblNewLabel_4.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_4.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tlblNewLabel_4.setBounds(20, 257, 92, 32);\r\n\t\tcontentPane.add(lblNewLabel_4);\r\n\t\t\r\n\t\tJLabel lblNewLabel_5 = new JLabel(\"Prix :\");\r\n\t\tlblNewLabel_5.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_5.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tlblNewLabel_5.setBounds(54, 312, 63, 28);\r\n\t\tcontentPane.add(lblNewLabel_5);\r\n\t\t\r\n\t\ttextField_2 = new JTextField();\r\n\t\ttextField_2.setColumns(10);\r\n\t\ttextField_2.setBounds(122, 215, 111, 28);\r\n\t\tcontentPane.add(textField_2);\r\n\t\t\r\n\t\ttextField_3 = new JTextField();\r\n\t\ttextField_3.setBounds(122, 261, 111, 28);\r\n\t\tcontentPane.add(textField_3);\r\n\t\ttextField_3.setColumns(10);\r\n\t\t\r\n\t\ttextField_4 = new JTextField();\r\n\t\ttextField_4.setBounds(122, 314, 80, 28);\r\n\t\tcontentPane.add(textField_4);\r\n\t\ttextField_4.setColumns(10);\r\n\t\t\r\n\t\tJComboBox comboBox = new JComboBox();\r\n\t\tcomboBox.setForeground(SystemColor.desktop);\r\n\t\tcomboBox.setBackground(new Color(169, 169, 169));\r\n\t\tcomboBox.setFont(new Font(\"Sitka Subheading\", Font.BOLD | Font.ITALIC, 13));\r\n\t\tcomboBox.setModel(new DefaultComboBoxModel(new String[] {\"Adidas\", \"Nike\", \"Puma\", \"Reebok\"}));\r\n\t\tcomboBox.setBounds(122, 166, 99, 20);\r\n\t\tcontentPane.add(comboBox);\r\n\t\t\r\n\t\tJComboBox comboBox_1 = new JComboBox();\r\n\t\tcomboBox_1.setForeground(SystemColor.controlText);\r\n\t\tcomboBox_1.setBackground(new Color(169, 169, 169));\r\n\t\tcomboBox_1.setFont(new Font(\"Sitka Text\", Font.BOLD | Font.ITALIC, 13));\r\n\t\tcomboBox_1.setModel(new DefaultComboBoxModel(new String[] {\"Homme\", \"Femme\"}));\r\n\t\tcomboBox_1.setBounds(122, 113, 99, 20);\r\n\t\tcontentPane.add(comboBox_1);\r\n\t\t\r\n\t\tJLabel lblNewLabel_6 = new JLabel(\"(Dinars)\");\r\n\t\tlblNewLabel_6.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_6.setFont(new Font(\"Tahoma\", Font.BOLD, 13));\r\n\t\tlblNewLabel_6.setBounds(205, 328, 63, 14);\r\n\t\tcontentPane.add(lblNewLabel_6);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Ajouter\");\r\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 13));\r\n\t\tbtnNewButton.setBackground(new Color(30, 144, 255));\r\n\t\tbtnNewButton.setForeground(new Color(255, 255, 255));\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tString genre = comboBox_1.getSelectedItem().toString();\r\n\t\t\t\tString marque = comboBox.getSelectedItem().toString();\r\n\t\t\t\tString couleur = textField_2.getText().toString();\r\n\t\t\t\tString pointure = textField_3.getText().toString();\r\n\t\t\t\tfloat prix = Float.parseFloat(textField_4.getText());\r\n\t\t\t\t\r\n\t\t\t\ttry { \r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!couleur.equals(\"\") && !pointure.equals(\"\") && !String.valueOf(prix).equals(\"\")) \r\n\t\t\t\t\t{\t\r\n\t\t\t\t\t\tString sql=\"insert into produit (genre, marque, couleur, pointure, prix, image) values ( ? , ? , ? , ? , ? , ?)\";\r\n\t\t\t\t\t\tInputStream imgg = new FileInputStream(new File(s));\r\n\t\t\t\t\t\tprepared = cnx.prepareStatement(sql);\r\n\t\t\t\t\t\tprepared.setString(1, genre);\r\n\t\t\t\t\t\tprepared.setString(2, marque);\r\n\t\t\t\t\t\tprepared.setString(3, couleur);\r\n\t\t\t\t\t\tprepared.setString(4, pointure);\r\n\t\t\t\t\t\tprepared.setFloat(5, prix);\t\r\n\t\t\t\t\t\tprepared.setBlob(6, imgg);\r\n\t\t\t\t\t prepared.execute();\r\n\t\t\t\t\t\r\n\t\t\t\t JOptionPane.showMessageDialog(null,\"Produit Ajouté :D \");\r\n\t\t\t\t MenuAdmin obj = new MenuAdmin();\r\n\t\t\t\t obj.setLocationRelativeTo(null);\r\n\t\t\t\t\t obj.setVisible(true);\r\n\t\t\t\t\t setVisible(false);\r\n\t\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (SQLException | FileNotFoundException e1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(23, 406, 99, 39);\r\n\t\tcontentPane.add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Supprimer\");\r\n\t\tbtnNewButton_1.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 13));\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tint ligne = table.getSelectedRow();\r\n\t\t\t\t\r\n\t\t\t\tif(ligne == -1 )\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Sélectionnez un Produit !\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\t\r\n\t\t\t\t\tString id4=table.getModel().getValueAt(ligne, 0).toString();\r\n\t\t\t\t\t\r\n\t\t\t\t\tString sql = \"delete from produit where id = '\"+id4+\"' \";\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tprepared = cnx.prepareStatement(sql);\r\n\t\t\t\t\t prepared.execute();\r\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"Produit Supprimé !\");\r\n\t\t\t\t\t \r\n\t\t\t\t\t MenuAdmin obj = new MenuAdmin();\r\n\t\t\t\t\t\t obj.setVisible(true);\r\n\t\t\t\t\t\t obj.setLocationRelativeTo(null);\r\n\t\t\t\t\t\t setVisible(false);\r\n\t\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}}\r\n\t\t});\r\n\t\tbtnNewButton_1.setBackground(new Color(255, 0, 0));\r\n\t\tbtnNewButton_1.setForeground(new Color(255, 255, 255));\r\n\t\tbtnNewButton_1.setBounds(288, 406, 105, 39);\r\n\t\tcontentPane.add(btnNewButton_1);\r\n\t\t\r\n\t\tJButton btnNewButton_2 = new JButton(\"Modifier\");\r\n\t\tbtnNewButton_2.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 13));\r\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tint ligne = table.getSelectedRow();\r\n\t\t\t\t\r\n\t\t\t\tif(ligne == -1 )\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Sélectionnez un Produit !\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\t\r\n\t\t\t\t\tString id4=table.getModel().getValueAt(ligne, 0).toString();\r\n\t\t\t\t\t\r\n\t\t\t\t\tString sql = \"Update produit set genre = ? , marque = ? , couleur = ? , pointure = ? , prix = ? , image = ? where id = '\"+id4+\"' \";\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tInputStream in = new FileInputStream(new File(s));\r\n\t\t\t\t\t\tprepared = cnx.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\t\t\t\tprepared.setString(1, comboBox_1.getSelectedItem().toString());\r\n\t\t\t\t\t\tprepared.setString(2, comboBox.getSelectedItem().toString());\r\n\t\t\t\t\t\tprepared.setString(3, textField_2.getText().toString());\r\n\t\t\t\t\t\tprepared.setString(4, textField_3.getText().toString());\r\n\t\t\t\t\t\tprepared.setFloat(5, Float.parseFloat(textField_4.getText()));\t\r\n\t\t\t\t\t\tprepared.setBlob(6, in);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t prepared.execute();\r\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"Produit Modifié !\");\r\n\t\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (SQLException | FileNotFoundException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_2.setBackground(new Color(30, 144, 255));\r\n\t\tbtnNewButton_2.setForeground(new Color(255, 255, 255));\r\n\t\tbtnNewButton_2.setBounds(156, 406, 99, 39);\r\n\t\tcontentPane.add(btnNewButton_2);\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\tscrollPane.setViewportBorder(new MatteBorder(2, 2, 2, 2, (Color) Color.BLUE));\r\n\t\tscrollPane.setEnabled(false);\r\n\t\tscrollPane.setBounds(474, 78, 350, 422);\r\n\t\tcontentPane.add(scrollPane);\r\n\t\t\r\n\t\ttable = new JTable();\r\n\t\ttable.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\t\r\n\t\t\t\tint ligne=table.getSelectedRow();\r\n\t\t\t\tString id2=table.getModel().getValueAt(ligne, 0).toString();\r\n\t\t\t\tString sql= \"SELECT * from produit where id = '\"+id2+\"'\";\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tprepared = cnx.prepareStatement(sql);\r\n\t\t\t\t\tresultat = prepared.executeQuery();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(resultat.next()) {\r\n\t\t\t\t\t\tcomboBox_1.setSelectedItem(resultat.getString(\"genre\"));\r\n\t\t\t\t\t\tcomboBox.setSelectedItem(resultat.getString(\"marque\"));\r\n\t\t\t\t\t\ttextField_2.setText(resultat.getString(\"couleur\"));\r\n\t\t\t\t\t\ttextField_3.setText(resultat.getString(\"pointure\"));\r\n\t\t\t\t\t\ttextField_4.setText(String.valueOf(resultat.getFloat(\"prix\")));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbyte[] img = resultat.getBytes(\"image\");\r\n\t\t\t\t\t\tImageIcon image = new ImageIcon(img);\r\n\t\t\t\t\t\tjava.awt.Image im = image.getImage();\r\n\t\t\t\t\t\tjava.awt.Image myImg = im.getScaledInstance(lblNewLabel_7.getWidth(), lblNewLabel_7.getHeight(), java.awt.Image.SCALE_SMOOTH);\r\n\t\t\t\t\t\tImageIcon imggg = new ImageIcon(myImg);\r\n\t\t\t\t\t\tlblNewLabel_7.setIcon(imggg);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttable.setModel(new DefaultTableModel(\r\n\t\t\tnew Object[][] {\r\n\t\t\t},\r\n\t\t\tnew String[] {\r\n\t\t\t\t\"id_prod\",\"Genre\", \"Marque\", \"Couleur\", \"Pointure\", \"Prix\"\r\n\t\t\t}\r\n\t\t));\r\n\t\tscrollPane.setViewportView(table);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tJButton btnNewButton_3 = new JButton(\"Parcourir\");\r\n\t\tbtnNewButton_3.setBackground(new Color(135, 206, 235));\r\n\t\tbtnNewButton_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbtnNewButton_3.setForeground(new Color(0, 0, 0));\r\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\t\t\tfileChooser.setCurrentDirectory(new File(\"D:\"));\r\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"IMAGE\", \"jpg\",\"png\",\"gif\");\r\n\t\t\t\tfileChooser.addChoosableFileFilter(filter);\r\n\t\t\t\tint result = fileChooser.showSaveDialog(null);\r\n\t\t\t\t\r\n\t\t\t\tif(result == JFileChooser.APPROVE_OPTION)\r\n\t\t\t\t{\r\n\t\t\t\t\tFile selectedfile = fileChooser.getSelectedFile();\r\n\t\t\t\t\tString path = selectedfile.getAbsolutePath();\r\n\t\t\t\t\tImageIcon myImage = new ImageIcon(path);\r\n\t\t\t\t\tjava.awt.Image img = myImage.getImage();\r\n\t\t\t\t\tjava.awt.Image newImage = img.getScaledInstance(lblNewLabel_7.getWidth(), \r\n\t\t\t\t\t\t\tlblNewLabel_7.getHeight(), java.awt.Image.SCALE_SMOOTH);\r\n\t\t\t\t\tImageIcon finalImg = new ImageIcon(newImage);\r\n\t\t\t\t\tlblNewLabel_7.setIcon(finalImg);\r\n\t\t\t\t\ts = path ;\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tif(result == JFileChooser.CANCEL_OPTION)\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"t'as Rien choisi\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJButton btnNewButton_4 = new JButton(\"Menu\");\r\n\t\tbtnNewButton_4.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tMenuAdmin obj = new MenuAdmin();\r\n\t\t\t\t obj.setVisible(true);\r\n\t\t\t\t obj.setLocationRelativeTo(null);\r\n\t\t\t\t setVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_4.setForeground(new Color(255, 255, 255));\r\n\t\tbtnNewButton_4.setBackground(new Color(255, 0, 0));\r\n\t\tbtnNewButton_4.setBounds(0, 23, 89, 23);\r\n\t\tcontentPane.add(btnNewButton_4);\r\n\t\tbtnNewButton_3.setBounds(254, 256, 210, 39);\r\n\t\tcontentPane.add(btnNewButton_3);\r\n\t\t\r\n\t\tJLabel lblNewLabel_8 = new JLabel(\"Table des produits\");\r\n\t\tlblNewLabel_8.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 13));\r\n\t\tlblNewLabel_8.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_8.setBounds(612, 48, 135, 20);\r\n\t\tcontentPane.add(lblNewLabel_8);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"\");\r\n\t\tlabel.setIcon(new ImageIcon(\"C:\\\\Users\\\\Ahmed\\\\Desktop\\\\Projects\\\\App_JAVA\\\\images\\\\c.jpg\"));\r\n\t\tlabel.setBounds(0, 0, 834, 511);\r\n\t\tcontentPane.add(label);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString sql= \"SELECT * from produit\" ;\r\n\t\ttry {\r\n\t\t\tprepared = cnx.prepareStatement(sql);\r\n\t\t\tresultat=prepared.executeQuery(sql);\r\n\t\t\t\r\n\t\t\twhile(resultat.next()) {\r\n\t\t\t\tint id0=resultat.getInt(\"id\");\r\n\t\t\t\tString id1=Integer.toString(id0);\r\n\t\t\t\tString Genre1=resultat.getString(\"genre\");\r\n\t\t\t\tString Marque1=resultat.getString(\"marque\");\r\n\t\t\t\tString Couleur1=resultat.getString(\"couleur\");\r\n\t\t\t\tString Pointure1=resultat.getString(\"pointure\");\r\n\t\t\t\tfloat Prix1=resultat.getFloat(\"prix\");\r\n\t\t\t\tString pr=Float.toString(Prix1);\r\n\t\t\t\tDefaultTableModel md = (DefaultTableModel)table.getModel();\r\n\t\t\t\tmd.addRow(new Object[]{id1,Genre1,Marque1,Couleur1,Pointure1,pr});\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "867ab890f184faee21b86469cb18063f", "score": "0.577342", "text": "public void agregarMarcayPeso() {\n int id_producto = Integer.parseInt(TextCodProduct.getText());\n String Descripcion_prod = TextDescripcion.getText();\n double Costo_Venta_prod = Double.parseDouble(TextCostoproduc.getText());\n double Precio_prod = Double.parseDouble(TextPrecio.getText());\n int Codigo_proveedor = ((Proveedor) LitsadeProovedores.getSelectedItem()).getIdProveedor();\n double ivaproducto = Double.parseDouble(txtIvap.getText());\n Object tipodelproducto = jcboxTipoProducto.getSelectedItem();\n\n //Captura el tipo del producto\n //Se crea un nuevo objeto de tipo producto para hacer el llamado al decorador\n Producto p;\n //Switch para Ingresar al tipo de producto deseado \n switch ((String) tipodelproducto) {\n case \"Alimentos\":\n log(String.valueOf(tipodelproducto));\n //Creamos un nuevo producto de tipo en este caso comida y le enviamois\n //el id y el tipo de producto\n p = new Producto_tipo_comida(id_producto, (String) tipodelproducto);\n //el producto p , ahora tendra una adicion de marca del producto\n //ingreso\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n //ingreso\n break;\n case \"Ropa\":\n p = new Producto_tipo_ropa(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Automotor\":\n p = new Producto_tipo_automotor(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Electronico\":\n p = new Producto_tipo_electronico(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n }\n\n }", "title": "" }, { "docid": "8500c74a336ca8c1ee6a7a8a2f21dd2d", "score": "0.57673246", "text": "@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }", "title": "" }, { "docid": "cb2fb484c2577317bc521fedd3fab492", "score": "0.5765578", "text": "public ViewProductJPanel(JPanel userProcessContainer,Product product) {\n initComponents();\n this.userProcessContainer=userProcessContainer;\n this.product=product;\n txtname.setText(product.getProductname());\n txtfloor.setText(String.valueOf(product.getFloorprice()));\n txttarget.setText(String.valueOf(product.getTargetprice()));\n txtceiling.setText(String.valueOf(product.getCeilingprice()));\n txtid.setText(String.valueOf(product.getProductid()));\n txtavail.setText(String.valueOf(product.getAvail()));\n \n}", "title": "" }, { "docid": "4c97a0f1e19309a20c079334a18cc5e0", "score": "0.57611895", "text": "public DAOTablaMenuProductos() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}", "title": "" }, { "docid": "537398fa6720ee083a00d90bc41c805a", "score": "0.5758739", "text": "public producto_interfaz(Producto producto) {\n initComponents();\n jSpinner1.setEnabled(false);\n this.producto=producto;\n titulo.setText(producto.getNombre());\n peso.setText(Double.toString(producto.getPeso()));\n precio.setText(Double.toString(producto.getPrecio()));\n \n }", "title": "" }, { "docid": "fe657e50ec9e3eb1f1e7461cbc02a0f7", "score": "0.5750794", "text": "protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }", "title": "" }, { "docid": "bacb16f18b473dc955d0d77b3cca2acf", "score": "0.57417434", "text": "@Override\r\n\tint setLayout() {\n\t\treturn R.layout.product_bigimg;\r\n\t}", "title": "" }, { "docid": "0f5ea925b918ce42c594cbb7d8905296", "score": "0.5741737", "text": "@Override\n public View getView(int position, View convertView,ViewGroup parent){\n View element = convertView;\n Vista vista;\n\n if(element == null){\n LayoutInflater inflater = context.getLayoutInflater();\n element = inflater.inflate(R.layout.listitem_shop,null);\n\n vista = new Vista();\n vista.lblShop = (TextView) element.findViewById(R.id.txtNomTasca);\n vista.quantity = (TextView)element.findViewById(R.id.txtQuantitat);\n\n element.setTag(vista);\n\n } else{\n vista = (Vista) element.getTag();\n }\n\n vista.lblShop.setText(dades.get(position).getProductName());\n vista.quantity.setText(dades.get(position).getQuantity()+\"\");\n\n\n return element;\n\n }", "title": "" }, { "docid": "e94c8ff57d58f4ce47aa4c84a54bab50", "score": "0.5741096", "text": "public product() {\n initComponents();\n }", "title": "" }, { "docid": "931008d6d5963cda5b03caa1f7bc4c68", "score": "0.573025", "text": "void Comunicasiones() { \t\r\n /* Comunicacion */\r\n Button dComunicacion01 = new Button();\r\n dComunicacion01.setWidth(\"73px\");\r\n dComunicacion01.setHeight(\"47px\");\r\n dComunicacion01.setIcon(ByosImagenes.icon[133]);\r\n dComunicacion01.setStyleName(EstiloCSS + \"BotonComunicacion\");\r\n layout.addComponent(dComunicacion01, \"left: 661px; top: 403px;\"); \r\n\r\n /* Comunicacion */\r\n Button iComunicacion01 = new Button();\r\n iComunicacion01.setWidth(\"73px\");\r\n iComunicacion01.setHeight(\"47px\");\r\n iComunicacion01.setIcon(ByosImagenes.icon[132]);\r\n iComunicacion01.setStyleName(EstiloCSS + \"BotonComunicacion\");\r\n layout.addComponent(iComunicacion01, \"left: 287px; top: 403px;\"); \r\n \r\n }", "title": "" }, { "docid": "33a42620ca764d60702c0cb59876584b", "score": "0.5715217", "text": "public JuegoCarta() {\n initComponents();\n dibujarPuntuaciones();\n }", "title": "" }, { "docid": "831c646e062cf69fe5b1325c51ada255", "score": "0.5693095", "text": "public void addProduct(ArticleInq artInq) {\n\t\tif (artInq != null) {\n\t\t\tdt.setVisibility(View.INVISIBLE);\n\t\t\tPriceInquiery priceInquiery = artInq.getPriceInquiery();\n\t\t\ttry {\n\n\t\t\t\tif (ArticleInq.IsProductFound) {\n\n\t\t\t\t\tpt.setText(CommonTask.toCamelCase(priceInquiery.text, \" \"));\n\t\t\t\t\tif (priceInquiery.text2 != null) {\n\t\t\t\t\t\tpt2.setText(priceInquiery.text2);\n\t\t\t\t\t}\n\t\t\t\t\tString[] vals = String.valueOf(priceInquiery.price)\n\t\t\t\t\t\t\t.replace('.', ':').split(\":\");\n\t\t\t\t\ttr.setText(vals[0]);\n\t\t\t\t\ttf.setText(vals[1].length() > 1 ? vals[1] : vals[1] + \"0\");\n\t\t\t\t\tft.setText(String.valueOf(priceInquiery.contents)\n\t\t\t\t\t\t\t+ priceInquiery.contentsdesc + \" (\"\n\t\t\t\t\t\t\t+ priceInquiery.priceperdesc + \"-pris\" + \" \"\n\t\t\t\t\t\t\t+ CommonTask.getString(priceInquiery.priceper)\n\t\t\t\t\t\t\t+ \")\");\n\t\t\t\t\tif (priceInquiery.getDiscount().quantity > 0) {\n\t\t\t\t\t\tDiscount dis = priceInquiery.getDiscount();\n\t\t\t\t\t\tdt.setText(String.valueOf(dis.quantity) + \" \"\n\t\t\t\t\t\t\t\t+ dis.text + \" \" + Math.round(dis.amount));\n\t\t\t\t\t\tdt.setVisibility(View.VISIBLE);\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tpt.setText(getString(R.string.productError));\n\t\t\t\t\tpt2.setText(\"\");\n\t\t\t\t\ttr.setText(\"\");\n\t\t\t\t\ttf.setText(\"\");\n\t\t\t\t\tft.setText(\"\");\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tpt.setText(getString(R.string.productError));\n\t\t\t\tpt2.setText(\"\");\n\t\t\t\ttr.setText(\"\");\n\t\t\t\ttf.setText(\"\");\n\t\t\t\tft.setText(\"\");\n\t\t\t}\n\n\t\t\tproductDetailsLayOut.setVisibility(View.VISIBLE);\n\t\t\tproductDetailsLayOut.startAnimation(animTop);\n\t\t\t\n\t\t\tmHandler.postDelayed(mWaitRunnable, PRODUCT_DETAILS_DELAY_MS);\n\t\t\tai.setBackgroundDrawable(null);\n\t\t\tif (ArticleInq.IsProductFound) {\n\t\t\t\tBitmapDrawable image = getArticleImage(artInq.EAN);\n\t\t\t\tif (image != null) {\n\t\t\t\t\tai.setBackgroundDrawable(image);\n\t\t\t\t} else {\n\t\t\t\t\tCommonTask.setAsyncImageBackground(ai, artInq.EAN);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "38ea0d70c405e02bc78ee574c98c6d16", "score": "0.5686603", "text": "private static void VeureProductes (BaseDades bd) {\n ArrayList <Producte> llista = new ArrayList<Producte>();\n llista = bd.consultaPro(\"SELECT * FROM PRODUCTE\");\n if (llista != null)\n for (int i = 0; i<llista.size();i++) {\n Producte p = (Producte) llista.get(i);\n System.out.println(\"ID=>\"+p.getIdproducte()+\": \"\n +p.getDescripcio()+\"* Estoc: \"+p.getStockactual()\n +\"* Pvp: \"+p.getPvp()+\" Estoc Mínim: \"\n + p.getStockminim());\n }\n }", "title": "" }, { "docid": "e84baffed9d96e597505dc034aedd78a", "score": "0.5683118", "text": "public ViewProductInfo() {\n initComponents();\n }", "title": "" }, { "docid": "d4519ce7d2641598b20bab54a22ceeb6", "score": "0.56794363", "text": "private void upview(ProdInfo data) {\n\t\t\n\t\tDecimalFormat df = new DecimalFormat(\"###.00\"); \n\t\tString price = \"\";\n\t\ttry {\n\t\t\tprice = df.format(Double.parseDouble(data.price));\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tprice = \"0.00\";\n\t\t}\n\t\tname.setText(data.name);\n\t\tpic.setText(\"¥\"+price);\n\t\tmodo.setText(data.model);\n\t\tcontent.setText(data.description);\n\t\t\n\t\tlist = new ArrayList<Banner>();\n\t\tif(!TextUtils.isEmpty(data.photo)){\n\t\t\tString[] shop_photos = data.photo.split(\",\");\n\t\t\tfor (int i = 0; i < shop_photos.length; i++) {\n\t\t\t\tBanner b = new Banner();\n\t\t\t\tb.banner_imgurl = shop_photos[i];\n\t\t\t\tlist.add(b);\n\t\t\t}\n\t\t}\n\t\tif(list!=null&&list.size()>0){\n\t\t\trealizeFunc(list);\n\t\t}\n\t}", "title": "" }, { "docid": "6ce914a66b52cb40675ae54917428342", "score": "0.56684816", "text": "public String menuProducto() {\n\n\t\tIcon icono = new ImageIcon(getClass().getResource(\"../img/producto.png\"));\n\n\t\tString[] opciones = { \"Mostrar todos los valores\", \"Borrar Producto\", \"Crear Producto\", \"Modificar Producto\",\n\t\t\t\t\"Buscar por nombre\", \"Buscar por clave\", \"Salir\" };\n\n\t\tString opcionElegida = (String) JOptionPane.showInputDialog(null, \"¿Que deseas realizar?\", \"Tabla Producto\",\n\t\t\t\tJOptionPane.QUESTION_MESSAGE, icono, opciones, opciones[0]);\n\n\t\treturn opcionElegida;\n\n\t}", "title": "" }, { "docid": "19532cd227e0d27293c3860778ad2a24", "score": "0.5657994", "text": "private void RptStockItem() {\n try {\n pnUmum.removeAll();\n pnUmum.repaint();\n pnUmum.revalidate();\n String sql = \"SELECT `ProdName`,`SellPrice`,`CostPrice`,`Netto`,`Stock`,ProdUnit.UnitName AS Unit FROM `Products` \"\n + \"INNER JOIN ProdUnit ON Products.UnitID = ProdUnit.UnitID ORDER BY Products.ProductID ASC\";\n JRDesignQuery jQuery = new JRDesignQuery();\n jQuery.setText(sql);\n JasperDesign jDesign = JRXmlLoader.load(System.getProperty(\"user.dir\") + \"/src/com/resources/jrxml/RptStokBarang.jrxml\");\n jDesign.setQuery(jQuery);\n JasperReport jReport = JasperCompileManager.compileReport(jDesign);\n JasperPrint jPrint = JasperFillManager.fillReport(jReport, null, new ConfigDB().getConnection());\n JRViewer jView = new JRViewer(jPrint);\n pnUmum.setLayout(new BorderLayout());\n jView.setFitPageZoomRatio();\n jView.setFont(new java.awt.Font(\"Arial\", 0, 14));\n pnUmum.add(jView);\n } catch (JRException ex) {\n JOptionPane.showMessageDialog(null, \"Terjadi Error Pada:\\n\" + ex.toString(), \"Kesalahan\", JOptionPane.ERROR_MESSAGE);\n }\n }", "title": "" }, { "docid": "b4e08a62668fc1fa073d4eeca1c4298e", "score": "0.5655795", "text": "private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }", "title": "" }, { "docid": "231da0c6c221f58288cf6a54dd1a0cf3", "score": "0.5654613", "text": "public void agregarDetalleProducto() {\n //Creamos instancia de ProductoDao\n ProductoDao productoDao = new ProductoDaoImp();\n try {\n //obtenemos la instancia del producto\n producto = productoDao.obtenerProductoPorCodigoBarra(productoSeleccionado);\n if (cantidadProductoDlg != null && cantidadProductoDlg > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProductoDlg, this.producto.getPrecioVenta(),\n (this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProductoDlg)))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n //Limpiamos la variable 'cantidadProducto'\n cantidadProductoDlg = null;\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado al detalle!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }else{\n //Limpiamos la variable 'cantidadProducto'\n cantidadProductoDlg = null;\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR , \"Incorrecto\", \"La cantidad es incorrecta!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "c9196ae809e52eb80f08552ee7a6ab81", "score": "0.56480205", "text": "public VistaProductos() {\n setUndecorated(true);\n initComponents();\n ValidadSoloNumeros(TextCodProduct);\n ValidadCaracteres(TextDescripcion);\n ValidadSoloNumeros(TextPrecio);\n ValidadSoloNumeros(TextCostoproduc);\n ValidadSoloNumeros(txtIvap);\n cn = Conexion.getConn();\n cargar();\n\n LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(cc.listaProvee().toArray()));\n\n obj = ControllerSql.getInstancia();\n proveedores = cc.listaProvee();\n // LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(proveedores.toArray()));\n LitsadeProovedores.setSelectedIndex(-1);\n }", "title": "" }, { "docid": "e4e3a04d515cdcfb0b30088ad752ea1c", "score": "0.56470346", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane2 = new javax.swing.JScrollPane();\n jPanel3 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n ComprarTodo = new javax.swing.JButton();\n NombreCategoria = new javax.swing.JLabel();\n ImagenProductoPrincipal = new javax.swing.JLabel();\n AgregarAlaCesta = new javax.swing.JButton();\n Precio = new javax.swing.JLabel();\n Descripcion = new javax.swing.JLabel();\n Nombre = new javax.swing.JLabel();\n Existencias = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n JLCML = new javax.swing.JLabel();\n Categoria1 = new javax.swing.JButton();\n Categoria2 = new javax.swing.JButton();\n Categoria3 = new javax.swing.JButton();\n Categoria4 = new javax.swing.JButton();\n SiguientesCategorias = new javax.swing.JButton();\n Categoria5 = new javax.swing.JButton();\n AnterioresCategorias = new javax.swing.JButton();\n Cantidad = new javax.swing.JLabel();\n Quitar = new javax.swing.JButton();\n Agregar = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n Producto1 = new javax.swing.JButton();\n Producto2 = new javax.swing.JButton();\n SiguientesProductos = new javax.swing.JButton();\n AnterioresProductos = new javax.swing.JButton();\n DescripcionP1 = new javax.swing.JLabel();\n DescripcionP2 = new javax.swing.JLabel();\n Producto3 = new javax.swing.JButton();\n Producto4 = new javax.swing.JButton();\n DescripcionP3 = new javax.swing.JLabel();\n DescripcionP4 = new javax.swing.JLabel();\n Producto5 = new javax.swing.JButton();\n Producto6 = new javax.swing.JButton();\n DescripcionP5 = new javax.swing.JLabel();\n DescripcionP6 = new javax.swing.JLabel();\n Producto7 = new javax.swing.JButton();\n Producto8 = new javax.swing.JButton();\n DescripcionP7 = new javax.swing.JLabel();\n DescripcionP8 = new javax.swing.JLabel();\n Imagen2 = new javax.swing.JButton();\n Imagen4 = new javax.swing.JButton();\n Imagen1 = new javax.swing.JButton();\n EliminarCesta = new javax.swing.JButton();\n Imagen3 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setBackground(new java.awt.Color(254, 254, 254));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosed(java.awt.event.WindowEvent evt) {\n formWindowClosed(evt);\n }\n });\n\n jPanel3.setBackground(new java.awt.Color(254, 254, 254));\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 342, Short.MAX_VALUE)\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 629, Short.MAX_VALUE)\n );\n\n jScrollPane2.setViewportView(jPanel3);\n\n jPanel1.setBackground(new java.awt.Color(254, 254, 254));\n\n ComprarTodo.setBackground(new java.awt.Color(255, 255, 255));\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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(339, 339, 339)\n .addComponent(NombreCategoria)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ComprarTodo, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ComprarTodo, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(NombreCategoria)))\n );\n\n ImagenProductoPrincipal.setBackground(new java.awt.Color(254, 254, 254));\n\n AgregarAlaCesta.setText(\"Añadir a la cesta\");\n\n Precio.setText(\"Precio: \");\n\n Descripcion.setText(\"Descripción:\");\n\n Nombre.setText(\"Nombre:\");\n\n Existencias.setText(\"Existencias:\");\n\n jPanel2.setBackground(new java.awt.Color(254, 254, 254));\n\n Categoria1.setBackground(new java.awt.Color(254, 254, 254));\n\n Categoria2.setBackground(new java.awt.Color(254, 254, 254));\n\n Categoria3.setBackground(new java.awt.Color(254, 254, 254));\n\n Categoria4.setBackground(new java.awt.Color(254, 254, 254));\n\n SiguientesCategorias.setText(\">>\");\n\n Categoria5.setBackground(new java.awt.Color(254, 254, 254));\n\n AnterioresCategorias.setText(\"<<\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(0, 54, Short.MAX_VALUE)\n .addComponent(AnterioresCategorias)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(SiguientesCategorias)\n .addGap(53, 53, 53))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(Categoria4, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)\n .addComponent(Categoria1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Categoria2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Categoria3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Categoria5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(JLCML, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(JLCML, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(Categoria1, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Categoria2, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Categoria3, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Categoria4, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Categoria5, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(SiguientesCategorias)\n .addComponent(AnterioresCategorias))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n Cantidad.setText(\"1\");\n\n Quitar.setText(\"-\");\n\n Agregar.setText(\"+\");\n\n jPanel4.setBackground(new java.awt.Color(254, 254, 254));\n\n Producto1.setBackground(new java.awt.Color(254, 254, 254));\n Producto1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Producto1ActionPerformed(evt);\n }\n });\n\n Producto2.setBackground(new java.awt.Color(254, 254, 254));\n\n SiguientesProductos.setText(\">>\");\n\n AnterioresProductos.setText(\"<<\");\n\n DescripcionP1.setText(\"_______________\");\n\n DescripcionP2.setText(\"______________\");\n\n Producto3.setBackground(new java.awt.Color(254, 254, 254));\n Producto3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Producto3ActionPerformed(evt);\n }\n });\n\n Producto4.setBackground(new java.awt.Color(254, 254, 254));\n\n DescripcionP3.setText(\"______________\");\n\n DescripcionP4.setText(\"______________\");\n\n Producto5.setBackground(new java.awt.Color(254, 254, 254));\n Producto5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Producto5ActionPerformed(evt);\n }\n });\n\n Producto6.setBackground(new java.awt.Color(254, 254, 254));\n\n DescripcionP5.setText(\"______________\");\n\n DescripcionP6.setText(\"______________\");\n\n Producto7.setBackground(new java.awt.Color(254, 254, 254));\n Producto7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Producto7ActionPerformed(evt);\n }\n });\n\n Producto8.setBackground(new java.awt.Color(254, 254, 254));\n\n DescripcionP7.setText(\"______________\");\n\n DescripcionP8.setText(\"______________\");\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Producto3, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(DescripcionP3))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(DescripcionP4)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(Producto4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Producto1, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(DescripcionP1))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(DescripcionP2)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(Producto2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Producto5, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(DescripcionP5))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(DescripcionP6)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(Producto6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(Producto7, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addComponent(AnterioresProductos)\n .addGap(25, 25, 25)))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(DescripcionP7)\n .addGap(95, 95, 95)))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(DescripcionP8)\n .addComponent(SiguientesProductos)\n .addComponent(Producto8, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Producto1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Producto2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(DescripcionP1)\n .addComponent(DescripcionP2))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Producto3, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)\n .addComponent(Producto4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(DescripcionP3)\n .addComponent(DescripcionP4))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Producto5, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Producto6, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(DescripcionP5)\n .addComponent(DescripcionP6))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Producto7, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Producto8, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(DescripcionP7)\n .addComponent(DescripcionP8))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(AnterioresProductos)\n .addComponent(SiguientesProductos))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n Imagen2.setBackground(new java.awt.Color(254, 254, 254));\n\n Imagen4.setBackground(new java.awt.Color(254, 254, 254));\n\n Imagen1.setBackground(new java.awt.Color(254, 254, 254));\n\n EliminarCesta.setText(\"Eliminar\");\n\n Imagen3.setBackground(new java.awt.Color(254, 254, 254));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Descripcion)\n .addGroup(layout.createSequentialGroup()\n .addComponent(Quitar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Cantidad)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Agregar)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Existencias)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Nombre)\n .addComponent(Precio)\n .addComponent(AgregarAlaCesta)\n .addComponent(ImagenProductoPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 349, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Imagen2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Imagen1, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(Imagen3, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Imagen4, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(18, 18, 18)))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(EliminarCesta)\n .addGap(27, 27, 27))))\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(ImagenProductoPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(AgregarAlaCesta)\n .addGap(18, 18, 18)\n .addComponent(Nombre)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Precio))\n .addGroup(layout.createSequentialGroup()\n .addComponent(Imagen1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Imagen2, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(16, 16, 16)\n .addComponent(Imagen3, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(Imagen4, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Existencias)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Agregar)\n .addComponent(Quitar)\n .addComponent(Cantidad))\n .addGap(24, 24, 24)\n .addComponent(Descripcion)\n .addContainerGap())\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 608, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(EliminarCesta)\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n\n pack();\n }", "title": "" }, { "docid": "32f4ce666b2e4539c71af42056b908de", "score": "0.56275594", "text": "public AdmAddProduct() {\n initComponents();\n }", "title": "" }, { "docid": "199dc7f11970ac3a0c2eee1b5204b264", "score": "0.56272006", "text": "public void handleAddProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(false);\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Products\");\n stage.setScene(new Scene(root));\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ebb411e698fcb2cfc146525810640cd0", "score": "0.56269914", "text": "@Override\r\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tView v = convertView;\r\n\t\tItemProducto producto = (ItemProducto)this.getItem(position);\r\n\t\tLayoutInflater in = activity.getLayoutInflater();\r\n\t\r\n\t\t\r\n\t\tif(v == null)//Si el item no esta renderizado\r\n\t\t{\r\n\t\t\t//LayoutInflater inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n v = in.inflate(R.layout.adaptador_productos,null);\r\n\t\t\t//v = in.inflate(R.layout.adaptador_productos, null);\r\n\t\t}\r\n\t\t\r\n\t\t//Se referencian los componenetes\r\n\t\tTextView titulo = (TextView)v.findViewById(R.id.productos_titulo);\r\n\t\tTextView subtitulo = (TextView)v.findViewById(R.id.productos_subtitulo);\r\n\t\tImageView imagen = (ImageView)v.findViewById(R.id.productos_imagen);\r\n\t\t//se carga cada producto dentro de la grilla\r\n\t\t\r\n\t\ttitulo.setText(producto.getTitulo());\r\n\t\tsubtitulo.setText(producto.getSubTitulo());\r\n\t\tif(imagen!=null)\r\n\t\t\timagen.setImageResource(producto.getImage());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn v;\r\n\t}", "title": "" }, { "docid": "86afa6d0e8687ab66b5464a63aab18f6", "score": "0.56198335", "text": "public lisProducto(int modo) {\n initComponents();\n setModo(modo);\n setFiltro(\"\");\n }", "title": "" }, { "docid": "a36e5953f981567ac71f45c55b81ccfd", "score": "0.56086886", "text": "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "title": "" }, { "docid": "e10679d10196ff9b52a43e78797655a7", "score": "0.56003", "text": "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "title": "" }, { "docid": "676bd53a215279878906cf2d0e402a93", "score": "0.559961", "text": "public void printProduct() {\n System.out.println(\"nom_jeu : \" + name);\n System.out.println(\"price : \" + price);\n System.out.println(\"uniqueID : \" + identifier);\n System.out.println(\"stock : \" + stock);\n System.out.println(\"image : \" + image);\n System.out.println(\"genre : \" + genre);\n System.out.println(\"plateforme : \" + platform);\n System.out.println();\n }", "title": "" }, { "docid": "6bcf80cf155b8bba75c4ec156ffaa99a", "score": "0.55978036", "text": "public ConsultaPNporproducto() {\n initComponents();\n ListarPro();\n }", "title": "" }, { "docid": "c22df96533828bf21ec96fd8560eb513", "score": "0.5596538", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_primeiro, container, false);\n\n initViews(view);\n\n botaoAndroid.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n SistemaOperacional sistemaOperacional = new SistemaOperacional(\"ANDROID\", R.drawable.android);\n\n comunicador.envioDadosSistemaOperaciona(sistemaOperacional);\n\n }\n });\n\n return view;\n }", "title": "" }, { "docid": "45ea5224c5189a8472c64d25330a93be", "score": "0.5590962", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_edit_bebida, container, false);\n\n reciclador =(RecyclerView)view.findViewById(R.id.reciclador);\n layout = new GridLayoutManager(getActivity(),2);\n reciclador.setLayoutManager(layout);\n adaptador = new AdaptadorEditBebida(getContext(),getArguments().getInt(\"TIPO\"));\n Principal ma = (Principal) getActivity();\n // 0 nombre de producto\n // 1 Precio del producto\n // 2 cantidad del producto\n // 3 imagen de producto\n Cursor c;\n if(getArguments().getInt(\"TIPO\")==1){\n c = ma.datos.getCursorQuery(\"SELECT producto.nombre, producto.precio, producto.cantidad,producto.imagen,producto.id \" +\n \"FROM producto\");\n }else if(getArguments().getInt(\"TIPO\")==2){\n c = ma.datos.getCursorQuery(\"SELECT insumo.nombre, insumo.cantidad,insumo.imagen,insumo.id \" +\n \"FROM insumo\");\n }else {\n c = null;\n }\n\n adaptador.swapCursor(c);\n reciclador.setAdapter(adaptador);\n return view;\n }", "title": "" }, { "docid": "e2377ac16da9a32d142f5a602bbeee25", "score": "0.55881566", "text": "private void buscarProducto() {\n EntityManagerFactory emf= Persistence.createEntityManagerFactory(\"pintureriaPU\");\n List<Almacen> listaproducto= new FacadeAlmacen().buscarxnombre(jTextField1.getText().toUpperCase());\n DefaultTableModel modeloTabla=new DefaultTableModel();\n modeloTabla.addColumn(\"Id\");\n modeloTabla.addColumn(\"Producto\");\n modeloTabla.addColumn(\"Proveedor\");\n modeloTabla.addColumn(\"Precio\");\n modeloTabla.addColumn(\"Unidades Disponibles\");\n modeloTabla.addColumn(\"Localizacion\");\n \n \n for(int i=0; i<listaproducto.size(); i++){\n Vector vector=new Vector();\n vector.add(listaproducto.get(i).getId());\n vector.add(listaproducto.get(i).getProducto().getDescripcion());\n vector.add(listaproducto.get(i).getProducto().getProveedor().getNombre());\n vector.add(listaproducto.get(i).getProducto().getPrecio().getPrecio_contado());\n vector.add(listaproducto.get(i).getCantidad());\n vector.add(listaproducto.get(i).getLocalizacion());\n modeloTabla.addRow(vector);\n }\n jTable1.setModel(modeloTabla);\n }", "title": "" }, { "docid": "b7a69f6b539b688a7dccfb9d11eb2499", "score": "0.55872434", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel4 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = 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 txtNombre = new javax.swing.JTextField();\n txtDescripcion = new javax.swing.JTextField();\n txtTalla = new javax.swing.JComboBox<>();\n txtColor = new javax.swing.JTextField();\n txtDisponible = new javax.swing.JTextField();\n txtNombreimg = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n Id_producto = new javax.swing.JTextField();\n jButton3 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n lblfoto = new javax.swing.JLabel();\n Ingre_img = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jButton1 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n jMenuItem1 = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(184, 136, 81));\n setForeground(new java.awt.Color(165, 142, 112));\n setResizable(false);\n\n jPanel4.setBackground(new java.awt.Color(251, 254, 153));\n\n jPanel1.setBackground(new java.awt.Color(202, 220, 231));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(70, 150, 196), 1, true), \"Ingrese los Datos\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 12), new java.awt.Color(70, 150, 196))); // NOI18N\n\n jLabel2.setText(\"Nombre:\");\n\n jLabel3.setText(\"Descripcion:\");\n\n jLabel4.setText(\"Numero:\");\n\n jLabel5.setText(\"Color:\");\n\n jLabel6.setText(\"Cantidad Disponible:\");\n\n txtNombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNombreActionPerformed(evt);\n }\n });\n\n txtTalla.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"...\", \"1\", \"2\", \"3\", \"4\", \"5\" }));\n\n txtDisponible.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtDisponibleActionPerformed(evt);\n }\n });\n\n txtNombreimg.setEditable(false);\n txtNombreimg.setColumns(10);\n txtNombreimg.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNombreimgActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"ID: \");\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(36, 36, 36)\n .addComponent(txtNombreimg, javax.swing.GroupLayout.PREFERRED_SIZE, 263, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(45, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNombre)\n .addComponent(txtDescripcion)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Id_producto, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtDisponible))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5))\n .addGap(52, 52, 52)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtColor)\n .addComponent(txtTalla, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtTalla, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtColor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtDisponible, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(Id_producto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(67, 67, 67)\n .addComponent(txtNombreimg, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/Expo_17/1486485588-add-create-new-math-sign-cross-plus_81186.png\"))); // NOI18N\n jButton3.setText(\"Nuevo Ingreso\");\n jButton3.setBorder(null);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jPanel2.setBackground(new java.awt.Color(202, 220, 231));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(70, 150, 196)), \"Ingrese la Imagen\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 12), new java.awt.Color(70, 150, 196))); // NOI18N\n\n lblfoto.setBackground(new java.awt.Color(254, 254, 254));\n lblfoto.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(5, 2, 51)));\n\n Ingre_img.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/Expo_17/Screenshot-80_icon-icons.com_57274.png\"))); // NOI18N\n Ingre_img.setText(\"Ingrese Imagen\");\n Ingre_img.setBorder(null);\n Ingre_img.setBorderPainted(false);\n Ingre_img.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Ingre_imgActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblfoto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(63, 63, 63)\n .addComponent(Ingre_img)\n .addContainerGap(68, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(Ingre_img)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblfoto, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/Expo_17/save_78348.png\"))); // NOI18N\n jButton2.setText(\"Guardar\");\n jButton2.setBorder(null);\n jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jPanel3.setBackground(new java.awt.Color(202, 220, 231));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(70, 150, 196)), \"Tabla Balones\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 12), new java.awt.Color(70, 150, 196))); // NOI18N\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jTable1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jTable1MouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(jTable1);\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 541, Short.MAX_VALUE)\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap(14, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/Expo_17/document-edit_icon-icons.com_52428.png\"))); // NOI18N\n jButton1.setText(\"Editar\");\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/Expo_17/ic_delete_128_28267.png\"))); // NOI18N\n jButton4.setText(\"Eliminar\");\n jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jButton3)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton4)\n .addGap(18, 18, 18)\n .addComponent(jButton2))\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n jMenu1.setText(\"Menu\");\n\n jMenuItem2.setText(\"Cambiar Usuario\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n\n jMenuItem1.setText(\"Volver\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem1);\n\n jMenuBar1.add(jMenu1);\n\n setJMenuBar(jMenuBar1);\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(jPanel4, 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 .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 539, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "title": "" }, { "docid": "ea5bd0aba28493768e198df6736415a2", "score": "0.55843997", "text": "private void addProduct() {\n String type = console.readString(\"type (\\\"Shirt\\\", \\\"Pant\\\" or \\\"Shoes\\\"): \");\n String size = console.readString(\"\\nsize: \");\n int qty = console.readInt(\"\\nQty: \");\n int sku = console.readInt(\"\\nSKU: \");\n Double price = console.readDouble(\"\\nPrice: \");\n int reorderLevel = console.readInt(\"\\nReorder Level: \");\n daoLayer.addProduct(type, size, qty, sku, price, reorderLevel);\n\n }", "title": "" }, { "docid": "523e72d2e9b11a2a59d4dab97b177ac1", "score": "0.55819434", "text": "private void dibujar() {\n\n\t\tdiv.setWidth(\"99%\");\n\t\tdiv.setHeight(\"99%\");\n\t\treporte.setWidth(\"99%\");\n\t\treporte.setHeight(\"99%\");\n\t\treporte.setType(type);\n\t\treporte.setSrc(url);\n\t\treporte.setParameters(parametros);\n\t\treporte.setDatasource(dataSource);\n\n\t\tdiv.appendChild(reporte);\n\n\t\tthis.appendChild(div);\n\n\t}", "title": "" }, { "docid": "2006220e34017c87c65ab98ef865dbdf", "score": "0.557461", "text": "public CadastroProdutoNew() {\n initComponents();\n }", "title": "" }, { "docid": "063e2b26d560776058f35ea65a720ce2", "score": "0.55643666", "text": "@FXML\n\t private void populateAndShowProduct(Product prod) throws ClassNotFoundException {\n\t if (prod != null) {\n\t populateProduct(prod);\n\t setProdInfoToTextArea(prod);\n\t } else {\n\t resultArea.setText(\"This product does not exist!\\n\");\n\t }\n\t }", "title": "" }, { "docid": "c0c48e6b4e69c3083ed70b46a4879a92", "score": "0.5563778", "text": "private void agregarProducto(HttpServletRequest request, HttpServletResponse response) throws SQLException {\n\t\tString codArticulo = request.getParameter(\"CArt\");\n\t\tString seccion = request.getParameter(\"seccion\");\n\t\tString nombreArticulo = request.getParameter(\"NArt\");\n\t\tSimpleDateFormat formatoFecha = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = formatoFecha.parse(request.getParameter(\"fecha\"));\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\tdouble precio = Double.parseDouble(request.getParameter(\"precio\"));\n\t\tString importado = request.getParameter(\"importado\");\n\t\tString paisOrigen = request.getParameter(\"POrig\");\n\t\t// Crear un objeto del tipo producto\n\t\tProducto producto = new Producto(codArticulo, seccion, nombreArticulo, precio, fecha, importado, paisOrigen);\n\t\t// Enviar el objeto al modelo e insertar el objeto producto en la BBDD\n\t\tmodeloProductos.agregarProducto(producto);\n\t\t// Volver al listado de productos\n\t\tobtenerProductos(request, response);\n\n\t}", "title": "" }, { "docid": "598e058674f17e92159bc2f52875e3bc", "score": "0.5562425", "text": "private void inicializarComponentes() {\n\n\n comenzar = new JButton(devolverImagenButton(\"comenzar\", \"png\", 300, 300));\n comenzar.setRolloverIcon(devolverImagenButton(\"comenzar1\", \"png\", 300, 300));\n comenzar.setBackground(Color.WHITE);\n comenzar.setBorder(null);\n comenzar.setActionCommand(\"COMENZAR\");\n comenzar.setBounds(335, 450, 240, 100);\n add(comenzar);\n\n l1 = new JLabel();\n devolverImagenLabel(\"Bienvenido\", \"gif\", 900, 700, l1);\n l1.setBounds(0, 0, 900, 700);\n add(l1);\n\n }", "title": "" }, { "docid": "f454037fa08c223d0ba754e842813985", "score": "0.55598205", "text": "public int getIdProducto() {\n return idProducto;\n }", "title": "" }, { "docid": "f9cd81d5aee1a1d186d382cb4de06de3", "score": "0.5551448", "text": "public addproduct() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "251521615868171a177678ccd209c438", "score": "0.55483", "text": "public MainMenu(ProductDao dao) {\n this.dao = dao;\n initComponents();\n setLocationRelativeTo(null);\n this.setResizable(true);\n\n\n }", "title": "" }, { "docid": "8f38548bbfd0cf832e74d308fc933ed4", "score": "0.5546979", "text": "private void crearComponentes(){\n\tjdpFondo.setSize(942,592);\n\t\n\tjtpcContenedor.setSize(230,592);\n\t\n\tjtpPanel.setTitle(\"Opciones\");\n\tjtpPanel2.setTitle(\"Volver\");\n \n jpnlPanelPrincilal.setBounds(240, 10 ,685, 540);\n \n }", "title": "" }, { "docid": "6b7d491c54e3f4bdee825434db6b42cf", "score": "0.55444664", "text": "public PanelTableProduct(JTable tProductos, ArrayList productList) {\n\n // ToolsInterface\n InterfaceTools tools = new InterfaceTools();\n\n ModelTableProduct tmodel = new ModelTableProduct(productList);\n tProductos.setModel(tmodel);\n\n /// PanelTableProduct model = new PanelTableProduct();\n\n\n // BaseDatosProducto baseDatos = new BaseDatosProducto();\n\n // Modificar encabezado\n tProductos.getTableHeader().setReorderingAllowed(false);\n\n tProductos.getTableHeader().setBackground(tools.getColorThree());\n tProductos.getTableHeader().setForeground(tools.getColorFour());\n\n\n tProductos.getTableHeader().setFont(new Font(\"Arial\",Font.PLAIN,14));\n // tProductos.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n tProductos.setSelectionBackground(tools.getColorOne());\n\n\n // tProductos.setEnabled(false);\n tProductos.setRowHeight(20);\n\n\n // Alinear a la Izquierda columna precios e inventario\n\n DefaultTableCellRenderer alignRight = new DefaultTableCellRenderer();\n alignRight.setHorizontalAlignment(SwingConstants.RIGHT);\n tProductos.getColumnModel().getColumn(1).setCellRenderer(alignRight);\n tProductos.getColumnModel().getColumn(2).setCellRenderer(alignRight);\n\n // Edición de celdas\n\n JScrollPane scrollPane = new JScrollPane(tProductos);\n\n scrollPane.setPreferredSize(new Dimension(450,363));\n scrollPane.setViewportView(tProductos);\n\n\n add(scrollPane);\n\n }", "title": "" }, { "docid": "1cf87b07fd32bf6e1e1ae8d925c49d15", "score": "0.5536664", "text": "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "title": "" }, { "docid": "9f7511c6b0c8c39ed9a23a895c69de48", "score": "0.5515174", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.show_product_root);\n\n menue();\n\n thumbNail = (NetworkImageView) findViewById(R.id.img_product_show);\n imageSliderDefault = (ImageView) findViewById(R.id.img_default_show);\n imgPlay = (ImageView) findViewById(R.id.img_play);\n mVideoView = (VideoView) findViewById(R.id.buffer);\n layVideo = (CenterLayout) findViewById(R.id.lay_video);\n\n txtView = (TextView) findViewById(R.id.txt_view_details);\n txrName = (TextView) findViewById(R.id.txt_name_details);\n txtPrice = (TextView) findViewById(R.id.txt_price_details);\n txtTeacher = (TextView) findViewById(R.id.txt_teacher_detils);\n txtDescrip = (TextView) findViewById(R.id.txt_description_detils);\n\n btnRezomeh = (Button) findViewById(R.id.btn_rezomeh);\n btnMoreDescrip = (Button) findViewById(R.id.btn_more_descrip_detils);\n\n btnRezomeh.setTypeface(G.font1);\n btnMoreDescrip.setTypeface(G.font1);\n // adapterListDiscount = new AdapterCommodityTiles(G.DataKalaDiscount);\n\n lstTopic = (ListView) findViewById(R.id.lst_topic);\n\n griAnotherProduct = (NestedListView) findViewById(R.id.gri_another_product);\n LayAnother = (LinearLayout) findViewById(R.id.lay_another_product);\n layLoadingAnotherProduct = (LinearLayout) findViewById(R.id.lay_loading_abother_product);\n\n Bundle extras = getIntent().getExtras();\n id = 0;\n if (extras != null) {\n id = extras.getInt(\"id\");\n }\n\n final LinearLayout LayDescripH = (LinearLayout) findViewById(R.id.lay_description_h);\n final LinearLayout LayTopicH = (LinearLayout) findViewById(R.id.lay_topic_h);\n final LinearLayout LayAnotherH = (LinearLayout) findViewById(R.id.lay_another_product_h);\n final LinearLayout LayDescrip = (LinearLayout) findViewById(R.id.lay_description);\n final LinearLayout LayTopic = (LinearLayout) findViewById(R.id.lay_topic);\n\n final RelativeLayout layAddProduct = (RelativeLayout) findViewById(R.id.lay_add_product);\n\n final ImageView ImgDescrip = (ImageView) findViewById(R.id.img_descip);\n final ImageView ImgTopic = (ImageView) findViewById(R.id.img_topic);\n final ImageView ImgAnother = (ImageView) findViewById(R.id.img_another_product);\n\n final ImageView imgShaering = (ImageView) findViewById(R.id.img_shaering);\n\n LinearLayout LayCheck = (LinearLayout) findViewById(R.id.lay_check_internet);\n LinearLayout LayMain = (LinearLayout) findViewById(R.id.lay_main_show_product);\n\n LinearLayout LayRefresh = (LinearLayout) findViewById(R.id.lay_check_refresh);\n LinearLayout LayMobile = (LinearLayout) findViewById(R.id.lay_check_mobile);\n LinearLayout LayWifi = (LinearLayout) findViewById(R.id.lay_check_wifi);\n\n // loading = (TextView) findViewById(R.id.lo);\n layLoading = (LinearLayout) findViewById(R.id.lay_loading);\n\n final Connectivity Check = new Connectivity();\n if (Check.isConnected(G.context)) {\n\n conected();\n layLoading.setVisibility(View.VISIBLE);\n layMain.setVisibility(View.GONE);\n\n reciveNewProduct(id);\n\n LayDescripH.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n if (LayDescrip.getVisibility() == View.GONE) {\n ImgDescrip.setImageResource(R.drawable.up_arrow);\n LayDescrip.setVisibility(View.VISIBLE);\n } else {\n ImgDescrip.setImageResource(R.drawable.down_arrow);\n LayDescrip.setVisibility(View.GONE);\n }\n\n }\n });\n\n LayTopicH.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n if (LayTopic.getVisibility() == View.GONE) {\n ImgTopic.setImageResource(R.drawable.up_arrow);\n LayTopic.setVisibility(View.VISIBLE);\n } else {\n ImgTopic.setImageResource(R.drawable.down_arrow);\n LayTopic.setVisibility(View.GONE);\n }\n\n }\n });\n\n LayAnotherH.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n Log.i(\"DATA\", \"\" + DataAnotherProduct.size());\n //LayAnother.setVisibility(View.VISIBLE);\n layLoadingAnotherProduct.setVisibility(View.VISIBLE);\n if (DataAnotherProduct.size() == 0) {\n\n Log.i(\"DATA\", \"\" + DataProduct.get(0).nameTeacher);\n //DataAnotherProduct.clear();\n reciveAnotherProduct(\"byTeacher\", DataProduct.get(0).nameTeacher);\n } else {\n showAnotherProduct();\n }\n\n if (LayAnother.getVisibility() == View.GONE) {\n\n ImgAnother.setImageResource(R.drawable.up_arrow);\n LayAnother.setVisibility(View.VISIBLE);\n } else {\n\n ImgAnother.setImageResource(R.drawable.down_arrow);\n LayAnother.setVisibility(View.GONE);\n }\n\n }\n });\n\n btnRezomeh.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n final Dialog dialog2 = new Dialog(G.currentActivity);\n dialog2.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog2.setContentView(R.layout.dialog_short_rezomeh);\n ImageLoader imageLoader2 = G.getInstance().getImageLoader();\n NetworkImageView thumbPicPro = (NetworkImageView) dialog2.findViewById(R.id.img_short_rezumeh);\n imageLoader2.get(WebServiceUrl.getPictureTeacher + DataProduct.get(0).picTeache, ImageLoader.getImageListener(thumbPicPro, R.drawable.loading, R.drawable.no_teacher_pic));\n thumbPicPro.setImageUrl(WebServiceUrl.getProductPicture + DataProduct.get(0).picTeache, imageLoader2);\n\n nameTeacherRezumeh = (TextView) dialog2.findViewById(R.id.txt_teacher_name_rezumeh);\n nameHeaderTeacherRezumeh = (TextView) dialog2.findViewById(R.id.txt_header_teacher_name);\n nameRezumeh1 = (TextView) dialog2.findViewById(R.id.txt_rezuneh1);\n nameRezumeh2 = (TextView) dialog2.findViewById(R.id.txt_rezuneh2);\n nameRezumeh3 = (TextView) dialog2.findViewById(R.id.txt_rezuneh3);\n\n reciveShortRezumeh(DataProduct.get(0).nameTeacher);\n\n dialog2.setCancelable(true);\n dialog2.show();\n\n }\n });\n\n btnMoreDescrip.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n final Dialog dialog2 = new Dialog(G.currentActivity);\n dialog2.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog2.setContentView(R.layout.dialog_more_topic);\n\n TextView txtHeader = (TextView) dialog2.findViewById(R.id.txt_dialog_header);\n TextView txtText = (TextView) dialog2.findViewById(R.id.txt_text_dialog);\n TextView txtOk = (TextView) dialog2.findViewById(R.id.txt_ok_dialog);\n\n txtHeader.setText(\" سرفصل \");\n txtText.setText(DataProduct.get(0).descrip);\n\n txtOk.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n dialog2.hide();\n }\n });\n\n dialog2.setCancelable(true);\n dialog2.show();\n\n }\n });\n\n imgShaering.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n String shareBody = \"نام محصول : \" + DataProduct.get(0).name + \"\\n\" + \" مدرس\" + DataProduct.get(0).nameTeacher + \" \\n\" + \"قیمت : \" + DataProduct.get(0).price + \"\\n آدرس فروشگاه : \\n رایکا\" + \"\\n\" + \"http://www.http://rayka-co.ir\";\n sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Subject Here\");\n sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n G.currentActivity.startActivity(Intent.createChooser(sharingIntent, \"ارسال برای دیگران\"));\n\n }\n });\n\n layAddProduct.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n BasketProductDB bp = new BasketProductDB();\n bp.setId(DataProduct.get(0).id);\n int count = bp.selectId();\n if (bp.selectId() == 0) {\n\n Toast.makeText(G.context, \"محصول به سبد اضافه شد\", Toast.LENGTH_LONG).show();\n bp.setText(DataProduct.get(0).name);\n bp.setPrice(DataProduct.get(0).price);\n bp.setTeacherName(DataProduct.get(0).nameTeacher);\n bp.setCount((bp.selectId() + 1));\n bp.insertProduct();\n\n addProduct();\n\n } else {\n\n Toast.makeText(G.context, \"این محصول قبلا در سبد شما قرار دارد \", Toast.LENGTH_LONG).show();\n // bp.setCount((bp.selectId() + 1));\n // bp.updateProduct();\n\n // addProduct();\n }\n\n }\n });\n\n imgPlay.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n Intent intentm = new Intent(G.currentActivity, ShowVideo.class);\n // intentm.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | IntentCompat.FLAG_ACTIVITY_CLEAR_TASK);\n intentm.putExtra(\"URL\", UrlFilm);\n G.currentActivity.startActivity(intentm);\n // setVideo();\n\n }\n });\n\n } else {\n disconected();\n\n }\n LayWifi.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n //Toast.makeText(G.context, \"text\", Toast.LENGTH_SHORT).show();\n Check.goToSettingWiFiNet();\n }\n });\n LayMobile.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n Check.goToSettingMobileNet();\n }\n });\n\n }", "title": "" }, { "docid": "2b0fc78e34298e8e61e42cecd37969f3", "score": "0.5511992", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jToolBar1 = new javax.swing.JToolBar();\n botonCrear = new javax.swing.JButton();\n botonModificar = new javax.swing.JButton();\n botonEliminar = new javax.swing.JButton();\n botonSalir = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jToolBar3 = new javax.swing.JToolBar();\n radioCodigoBarras = new javax.swing.JRadioButton();\n jSeparator1 = new javax.swing.JToolBar.Separator();\n radioNombre = new javax.swing.JRadioButton();\n jSeparator2 = new javax.swing.JToolBar.Separator();\n radioTipoProducto = new javax.swing.JRadioButton();\n jSeparator3 = new javax.swing.JToolBar.Separator();\n radioMarca = new javax.swing.JRadioButton();\n jSeparator4 = new javax.swing.JToolBar.Separator();\n radioUnidadMedida = new javax.swing.JRadioButton();\n jPanel2 = new javax.swing.JPanel();\n textoBuscar = new javax.swing.JTextField();\n botonBuscar = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n tablaProducto = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Gestionar Producto\");\n setResizable(false);\n\n jToolBar1.setFloatable(false);\n jToolBar1.setRollover(true);\n\n botonCrear.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n botonCrear.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/crearx32.png\"))); // NOI18N\n botonCrear.setText(\"Crear\");\n botonCrear.setFocusable(false);\n botonCrear.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonCrear.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n botonCrear.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonCrearActionPerformed(evt);\n }\n });\n jToolBar1.add(botonCrear);\n\n botonModificar.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n botonModificar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/modificarx32.png\"))); // NOI18N\n botonModificar.setText(\"Modificar\");\n botonModificar.setFocusable(false);\n botonModificar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonModificar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(botonModificar);\n\n botonEliminar.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n botonEliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/eliminarx32.png\"))); // NOI18N\n botonEliminar.setText(\"Eliminar\");\n botonEliminar.setFocusable(false);\n botonEliminar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonEliminar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(botonEliminar);\n\n botonSalir.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n botonSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/salirx32.png\"))); // NOI18N\n botonSalir.setText(\"Salir\");\n botonSalir.setFocusable(false);\n botonSalir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonSalir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n botonSalir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonSalirActionPerformed(evt);\n }\n });\n jToolBar1.add(botonSalir);\n\n getContentPane().add(jToolBar1, java.awt.BorderLayout.PAGE_START);\n\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jToolBar3.setFloatable(false);\n jToolBar3.setRollover(true);\n\n buttonGroup1.add(radioCodigoBarras);\n radioCodigoBarras.setText(\"Codigo de Barras\");\n radioCodigoBarras.setFocusable(false);\n radioCodigoBarras.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioCodigoBarras.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioCodigoBarras);\n jToolBar3.add(jSeparator1);\n\n buttonGroup1.add(radioNombre);\n radioNombre.setSelected(true);\n radioNombre.setText(\"Nombre \");\n radioNombre.setFocusable(false);\n radioNombre.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioNombre.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioNombre);\n jToolBar3.add(jSeparator2);\n\n buttonGroup1.add(radioTipoProducto);\n radioTipoProducto.setText(\"Tipo de Producto\");\n radioTipoProducto.setFocusable(false);\n radioTipoProducto.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioTipoProducto.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioTipoProducto);\n jToolBar3.add(jSeparator3);\n\n buttonGroup1.add(radioMarca);\n radioMarca.setText(\"Marca\");\n radioMarca.setFocusable(false);\n radioMarca.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioMarca.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioMarca);\n jToolBar3.add(jSeparator4);\n\n buttonGroup1.add(radioUnidadMedida);\n radioUnidadMedida.setText(\"Unidad de Medida\");\n radioUnidadMedida.setFocusable(false);\n radioUnidadMedida.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioUnidadMedida.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioUnidadMedida);\n\n jPanel1.add(jToolBar3, java.awt.BorderLayout.PAGE_START);\n\n textoBuscar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n botonBuscar.setBackground(new java.awt.Color(255, 255, 255));\n botonBuscar.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n botonBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/buscarx20.png\"))); // NOI18N\n botonBuscar.setText(\"Buscar\");\n botonBuscar.setOpaque(false);\n botonBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonBuscarActionPerformed(evt);\n }\n });\n\n tablaProducto.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n jScrollPane1.setViewportView(tablaProducto);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Nombre:\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(textoBuscar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 788, Short.MAX_VALUE))\n .addGap(23, 23, 23))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(textoBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(botonBuscar)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel1.add(jPanel2, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n pack();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "3e348cb618cd8fc8930c48f9f2b49475", "score": "0.55065775", "text": "public Item_Productos() {\n initComponents();\n Actualizar_Tabla();\n //oculta columna ID\n \n this.setLocationRelativeTo(null);\n jTable1.getColumnModel().getColumn(0).setMaxWidth(0);\n jTable1.getColumnModel().getColumn(0).setMinWidth(0);\n jTable1.getTableHeader().getColumnModel().getColumn(0).setMaxWidth(0);\n jTable1.getTableHeader().getColumnModel().getColumn(0).setMinWidth(0);\n //editor de caldas\n jTable1.getColumnModel().getColumn(1).setCellEditor(new MyTableCellEditor(db, \"Codigo\"));\n jTable1.getColumnModel().getColumn(2).setCellEditor(new MyTableCellEditor(db, \"Descripcion\"));\n jTable1.getColumnModel().getColumn(3).setCellEditor(new MyTableCellEditor(db, \"Precio de venta\"));\n jTable1.getColumnModel().getColumn(4).setCellEditor(new MyTableCellEditor(db, \"Precion de compra\"));\n jTable1.getColumnModel().getColumn(5).setCellEditor(new MyTableCellEditor(db, \"Cantidad\"));\n jTable1.getColumnModel().getColumn(6).setCellEditor(new MyTableCellEditor(db, \"Fecha\"));\n\n }", "title": "" }, { "docid": "3db65d296d5211094f722e76253862d2", "score": "0.5505591", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root=inflater.inflate(R.layout.fragment_order_view, container, false);\n ButterKnife.bind(this,root);\n mProdcut= Parcels.unwrap(getArguments().getParcelable(\"product\"));\n getActivity().setTitle(root.getContext().getString(R.string.order_list));\n setupOrderView();\n return root;\n }", "title": "" }, { "docid": "be83c0036abd5116074efa84b205f9b6", "score": "0.55052286", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_producto_principal, container, false);\n btnregistro=(Button)view.findViewById(R.id.btn_nuevo_producto);\n btnlistar= (Button)view.findViewById(R.id.btn_lista_productos);\n\n\n\n btnregistro.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Fragment nuevoFragmento = new producto_registro_fragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.nav_host_fragment, nuevoFragmento);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n });\n\n btnlistar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Fragment nuevoFragmento = new producto_ver_fragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.nav_host_fragment, nuevoFragmento);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n });\n return view;\n }", "title": "" }, { "docid": "8e1c7dd1e24bc32f46c8d6d481e2e04e", "score": "0.5502911", "text": "public void iniciar(){\r\n \r\n view.setTitle(\"MVC Proyecto\");\r\n //Indica posicion, null -> posicion 0 = centro\r\n view.setLocationRelativeTo(null);\r\n \r\n }", "title": "" }, { "docid": "fb437b04eb634d108c25d41fa01cd89f", "score": "0.55008256", "text": "public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}", "title": "" }, { "docid": "a2e5e2cdca8c152c247b5527896bf07f", "score": "0.5499494", "text": "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n //Optimizamos la creación del layout realizándola solo una primera vez.\n View item= convertView;\n ViewHolder holder;\n if(item==null) {\n LayoutInflater inflater = LayoutInflater.from(context);\n holder= new ViewHolder();\n item = inflater.inflate(R.layout.producto, null);\n\n\n holder.nombre=(TextView)item.findViewById(R.id.textView_nombre);\n\n //Almacenamos el elemento en como un tag de la View\n item.setTag(holder);\n }else{\n //Si el item ya ha sido instanciado con anterioridad lo recuperamos del convertView\n holder= (ViewHolder)item.getTag();\n }\n\n\n holder.nombre.setText(productos.get(position).getNombre());\n\n return item;\n }", "title": "" }, { "docid": "95be55e515baf7b01eac397786e013a2", "score": "0.5499441", "text": "public void manageArticles(View v, String opcio) {\n View row = (View) v.getParent().getParent();\n // Busquem el listView per poder treure el numero de la fila\n ListView lv = (ListView) row.getParent();\n // Busco quina posicio ocupa la Row dins de la ListView\n int position = lv.getPositionForView(row);\n // Carrego la linia del cursor de la posició.\n Cursor linia = (Cursor) getItem(position);\n\n int id = linia.getInt(linia.getColumnIndexOrThrow(GestorArticlesDataSource.GESTORARTICLES_ID));\n\n Intent i = new Intent(v.getContext(), stockManagerGestorArticles.class);\n i.putExtra(\"opcio\", opcio);\n i.putExtra(\"_id\", id);\n ((Activity)v.getContext()).startActivityForResult(i, 3);\n\n }", "title": "" }, { "docid": "064d5ccfa9d0ef3479ff2725f727e063", "score": "0.54954237", "text": "public ShowProductListLimited() {\n initComponents();\n List<Product> products = WinkelApplication.getQueryManager().getProductList();\n DefaultTableModel model = (DefaultTableModel) this.jTable1.getModel();\n for (Product product : products) {\n model.addRow(new Object[]{new Integer(product.getProductId()),\n product.getCategorieId(),\n product.getName(),\n product.getPrice(),\n product.getDescription()});\n }\n }", "title": "" }, { "docid": "42981e48bfa03b5d808f59e3a5e3027f", "score": "0.5486957", "text": "private JList<ProductoAlmacen> crearListaProductos() {\n\n JList<ProductoAlmacen> lista = new JList<>(new Vector<>(almacen.getProductos()));\n\n lista.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n\n lista.setCellRenderer(new DefaultListCellRenderer() {\n @Override\n public Component getListCellRendererComponent(JList<? extends Object> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n Component resultado = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\n ProductoAlmacen productoAlmacen = (ProductoAlmacen) value;\n\n String texto = String.format(\"%s (%d uds.)\", productoAlmacen.getProducto().getNombre(), productoAlmacen.getStock());\n this.setText(texto);\n\n return resultado;\n }\n });\n\n return lista;\n }", "title": "" }, { "docid": "fb58ceea6ce0d524e9a2cc645b869a5c", "score": "0.5485744", "text": "@Override\n public void redimensionarPantalla(ComponentEvent e) {}", "title": "" }, { "docid": "a6e6c51aed8817c75077189615e23799", "score": "0.5480997", "text": "public void initShop(){\n addCountToStorage(actionProduct.findProductByName(\"Jemeson\"), 3);\n addCountToStorage(actionProduct.findProductByName(\"Red Label\"), 5);\n addCountToStorage(actionProduct.findProductByName(\"Burenka\"), 10);\n addCountToStorage(actionProduct.findProductByName(\"Kupyanskoe\"), 21);\n\n //add transaction\n int idxCustomer = actionCustomer.findCustomerByName(\"Perto\");\n int idxProduct = actionProduct.findProductByName(\"Burenka\");\n\n addTransaction(idxCustomer, idxProduct, getDate(-7), 1 , actionProduct.getPriceByIdx(idxProduct));\n\n idxProduct = actionProduct.findProductByName(\"white bread\");\n addTransaction(idxCustomer, idxProduct, getDate(-7), 1 , actionProduct.getPriceByIdx(idxProduct));\n\n idxCustomer = actionCustomer.findCustomerByName(\"Dmytro\");\n addTransaction(idxCustomer, idxProduct, getDate(-6), 2 , actionProduct.getPriceByIdx(idxProduct));\n\n idxProduct = actionProduct.findProductByName(\"burenka\");\n addTransaction(idxCustomer, idxProduct, getDate(-6), 2 , actionProduct.getPriceByIdx(idxProduct));\n\n\n }", "title": "" }, { "docid": "872e6af2423be70b086deb698071d3df", "score": "0.547833", "text": "public void agregar_producto(RecyclingImageView c)\n {\n array_productos.add(c);\n }", "title": "" }, { "docid": "0f4f41fe45f2579a98ead876854a3e3b", "score": "0.54737985", "text": "public String addProduct(Context pActividad,int pId, String pDescripcion,float pPrecio)\n {\n AdminSQLiteOpenHelper admin = new AdminSQLiteOpenHelper(pActividad, \"administracion\", null, 1);\n\n // con el objeto de la clase creado habrimos la conexion\n SQLiteDatabase db = admin.getWritableDatabase();\n try\n {\n // Comprobamos si el id ya existe\n Cursor filas = db.rawQuery(\"Select codigo from Articulos where codigo = \" + pId, null);\n if(filas.getCount()<=0)\n {\n //ingresamos los valores mediante, key-value asocioados a nuestra base de datos (tecnica muñeca rusa admin <- db <- registro)\n ContentValues registro = new ContentValues();\n registro.put(\"codigo\",pId);\n registro.put(\"descripcion\",pDescripcion);\n registro.put(\"precio\", pPrecio);\n\n //ahora insertamos este registro en la base de datos\n db.insert(\"Articulos\", null, registro);\n }\n else\n return \"El ID insertado ya existe\";\n }\n catch (Exception e)\n {\n return \"Error Añadiendo producto\";\n }\n finally\n {\n db.close();\n }\n return \"Producto Añadido Correctamente\";\n }", "title": "" }, { "docid": "b1c17a7f8dfda60781d1d8dab24ef584", "score": "0.5472854", "text": "private JPanel texte() {\r\n\t\tJPanel position = new JPanel();\r\n\t\tJPanel menu1 = new JPanel();\r\n\t\tJPanel menu2 = new JPanel();\r\n\t\tJPanel menu3 = new JPanel();\r\n\t\tJPanel menu4 = new JPanel();\r\n\r\n\t\tmenu1.setLayout(new BoxLayout(menu1, BoxLayout.X_AXIS));\r\n\t\tmenu1.add(textnomligue);\r\n\t\tmenu2.setLayout(new BoxLayout(menu2, BoxLayout.X_AXIS));\r\n\t\tmenu2.add(textadresse);\r\n\t\tmenu3.setLayout(new BoxLayout(menu3, BoxLayout.X_AXIS));\r\n\t\tmenu3.add(textnomAdmin);\r\n\t\tmenu4.setLayout(new BoxLayout(menu4, BoxLayout.X_AXIS));\r\n\t\tmenu4.add(tprenomAdmin);\r\n\r\n\t\tposition.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS));\r\n\t\tposition.add(menu1);\r\n\t\tposition.add(menu2);\r\n\t\tposition.add(menu3);\r\n\t\tposition.add(menu4);\r\n\r\n\t\treturn position;\r\n\t}", "title": "" }, { "docid": "6e4ac7ac549f3cbcde8ba45f7c1aa646", "score": "0.5471375", "text": "public JFrameFormularioProducto() {\n initComponents();\n }", "title": "" }, { "docid": "6e6bf310cc1c63121646816ca722067c", "score": "0.5471134", "text": "public void onClick(View v) {\n addTocart();\n ProductListFragment.updateQuantity(selectedData.getProdId(), selectedData.getCount());\n }", "title": "" }, { "docid": "6e6bf310cc1c63121646816ca722067c", "score": "0.5471134", "text": "public void onClick(View v) {\n addTocart();\n ProductListFragment.updateQuantity(selectedData.getProdId(), selectedData.getCount());\n }", "title": "" }, { "docid": "6ae3415493b0a918bacc60c800117217", "score": "0.54697496", "text": "public void afficherPartie() throws SQLException{\n this.partie.maj();\n VBox fp = ((VBox) windows.getRoot());\n fp.getChildren().remove(1);\n fp.getChildren().add(partie);\n }", "title": "" }, { "docid": "5622ebc465bd8e69ec20fce3d4225fb3", "score": "0.54696363", "text": "public void iniciarComponentes() {\n btnSalir = new JButton(\"SALIR\");\n btnSaludo = new JButton(\"SALUDO\");\n \n btnSalir.setForeground(Color.RED);\n btnSaludo.setForeground(Color.BLUE);\n \n btnSalir.setPreferredSize(new Dimension(100, 60));\n btnSaludo.setPreferredSize(new Dimension(100, 60));\n \n //Creamos y aplicamos el layout para que salgan de laico\n FlowLayout fl = new FlowLayout(FlowLayout.CENTER);\n setLayout(fl);\n \n //Y metemos los botones y sus funciones\n add(btnSaludo);\n //Función en la clase Ventana\n \n add(btnSalir);\n btnSalir.addActionListener(e->salir());\n \n //Ahora vamos a separar los botones, de puede de dos maneras\n //De este modo crea una distancia fija entre los 2 cuando reescalemos\n add(Box.createRigidArea(new Dimension(15, 0)));\n //En este otro la distancia va variando\n add(Box.createGlue());\n \n }", "title": "" } ]
5e185150f8b61ce5105970ef4a853eb6
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.
[ { "docid": "e8ef65ed339dabfd156a25e6137c2450", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n j1pohar = new javax.swing.JButton();\n j2pohar = new javax.swing.JButton();\n j3pohar = new javax.swing.JButton();\n jvalasz = new javax.swing.JLabel();\n jujhely = new javax.swing.JCheckBox();\n jmegoldas = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jujjatek = new javax.swing.JMenuItem();\n jmentes = new javax.swing.JMenuItem();\n jbetoltes = new javax.swing.JMenuItem();\n j3poharasjatek = new javax.swing.JMenu();\n jMenuItem4 = new javax.swing.JMenuItem();\n j4poharasjatek = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n j1pohar.setText(\"1 pohár\");\n j1pohar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n j1poharActionPerformed(evt);\n }\n });\n\n j2pohar.setText(\"2 pohár\");\n j2pohar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n j2poharActionPerformed(evt);\n }\n });\n\n j3pohar.setText(\"3 pohár\");\n j3pohar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n j3poharActionPerformed(evt);\n }\n });\n\n jujhely.setText(\"maradjon a megoldás\");\n jujhely.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jujhelyActionPerformed(evt);\n }\n });\n\n jMenu1.setText(\"Fájl\");\n\n jujjatek.setText(\"új játék\");\n jujjatek.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jujjatekActionPerformed(evt);\n }\n });\n jMenu1.add(jujjatek);\n\n jmentes.setText(\"mentés\");\n jmentes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jmentesActionPerformed(evt);\n }\n });\n jMenu1.add(jmentes);\n\n jbetoltes.setText(\"betöltés\");\n jbetoltes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbetoltesActionPerformed(evt);\n }\n });\n jMenu1.add(jbetoltes);\n\n jMenuBar1.add(jMenu1);\n\n j3poharasjatek.setText(\"Játék\");\n\n jMenuItem4.setText(\"3 pohár\");\n j3poharasjatek.add(jMenuItem4);\n\n j4poharasjatek.setText(\"4 pohár\");\n j4poharasjatek.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n j4poharasjatekActionPerformed(evt);\n }\n });\n j3poharasjatek.add(j4poharasjatek);\n\n jMenuBar1.add(j3poharasjatek);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(j1pohar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(j2pohar)\n .addGap(36, 36, 36)\n .addComponent(j3pohar))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jmegoldas)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jvalasz, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jujhely)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(j2pohar)\n .addComponent(j1pohar)\n .addComponent(j3pohar))\n .addGap(23, 23, 23)\n .addComponent(jmegoldas)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jvalasz, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jujhely)))\n );\n\n pack();\n }", "title": "" } ]
[ { "docid": "17113ab7a06544a62482637e283ac13d", "score": "0.73931265", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n }", "title": "" }, { "docid": "156c28fa88f3bd514a2405d912d2edb6", "score": "0.7294594", "text": "public SourceForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7291593", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7291593", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7291593", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7291593", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7291593", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7291593", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "261729506fa0737d57ad287a7eb2b9e6", "score": "0.7260975", "text": "public WidgetForm() {\n initComponents();\n }", "title": "" }, { "docid": "49975885d79fe261a1ab98242cef65f7", "score": "0.7226356", "text": "public Form() {\n initComponents();\n\n }", "title": "" }, { "docid": "4d6f8aaba62289df79722e9f78674c95", "score": "0.7163523", "text": "public EZManagerForm() {\n initComponents();\n }", "title": "" }, { "docid": "2ea6af765f3e712a5162e7163a67d751", "score": "0.716116", "text": "public FormModul7_1() {\n initComponents();\n }", "title": "" }, { "docid": "9e7e0cc2b0cadd6739d3c2a78eebd08a", "score": "0.71446383", "text": "public MainForm() {\n initComponents();\n setLocationRelativeTo(null);\n \n \n \n \n }", "title": "" }, { "docid": "a9addead2afedc05666205eb4a36ea9a", "score": "0.71379936", "text": "public cusdet() {\n initComponents();\n }", "title": "" }, { "docid": "63d1cc6c443108407d02e54cb15153c8", "score": "0.7123935", "text": "public MainForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "d0636cbf4162ede2c1abdc50c7e3968d", "score": "0.7123313", "text": "public ReaderForm() {\n initComponents();\n }", "title": "" }, { "docid": "297444fea6e5d579058b7336c1b3f67f", "score": "0.7100789", "text": "public SLR1() {\n initComponents();\n }", "title": "" }, { "docid": "826441570923542dc467d84d401c1f69", "score": "0.70900387", "text": "public FlightTravelAgencyGUI() \n {\n initComponents();\n }", "title": "" }, { "docid": "cfbd7bc557a45c4fcd61db740712f1b7", "score": "0.7063448", "text": "public Signupp1() {\n initComponents();\n }", "title": "" }, { "docid": "593942c148c19a24eb1e2ece30a52d20", "score": "0.70629144", "text": "public Form5() {\n initComponents();\n }", "title": "" }, { "docid": "597ac3d07f93bbb10364e280f71feac9", "score": "0.70625734", "text": "public frmAula02() {\n initComponents();\n }", "title": "" }, { "docid": "629217ee0781909ebfea7a3ac66453e4", "score": "0.70613396", "text": "public formEstandar() {\n initComponents();\n }", "title": "" }, { "docid": "665db777ce789a0e8e01694eed3ece03", "score": "0.70542836", "text": "public Formnhap() {\n initComponents();\n }", "title": "" }, { "docid": "1d48929745660283541321cdfa497e4a", "score": "0.7053768", "text": "public EventForm() {\n initComponents();\n }", "title": "" }, { "docid": "7a118f542e9537a56a0ba2c086564a6f", "score": "0.70535266", "text": "public jform() {\n initComponents();\n }", "title": "" }, { "docid": "2613290c45b7e41ab2064b76c9c75385", "score": "0.7045061", "text": "public form3() {\n initComponents();\n }", "title": "" }, { "docid": "fcf974c42a1b895630eb3c8624bbb83d", "score": "0.7043158", "text": "public MalzemeAraForm() {\n initComponents();\n }", "title": "" }, { "docid": "dd6cf37b17ec3706fcf118e9f60df3ac", "score": "0.7039669", "text": "public FormComanda() {\n initComponents();\n }", "title": "" }, { "docid": "091d61f61766dafccb18eb646116feed", "score": "0.7036537", "text": "public newup() {\n initComponents();\n }", "title": "" }, { "docid": "edc8a82aab46fb4a939cc5f12d928c6a", "score": "0.70310694", "text": "public TopLevelMenuForm() {\n initComponents();\n }", "title": "" }, { "docid": "81d762e7b529de1cbfc0f0f9ea8a521f", "score": "0.7024926", "text": "public Ex06_L1() {\n initComponents();\n }", "title": "" }, { "docid": "b040de80230f776d397633d27379437b", "score": "0.7017646", "text": "public MainForms() {\n initComponents();\n \n \n }", "title": "" }, { "docid": "cc9c238d74628d95835748902dd09982", "score": "0.7013557", "text": "public frmDasboard() {\n initComponents();\n }", "title": "" }, { "docid": "946a01ea3d0696389c540734a5dc2334", "score": "0.6961401", "text": "public FormMain() {\n initComponents();\n \n }", "title": "" }, { "docid": "c260bad73024ee2d94e406fabd8b0b5e", "score": "0.69575655", "text": "public Form2() {\n initComponents();\n }", "title": "" }, { "docid": "a452d182321cc939764e36e149306c05", "score": "0.6953509", "text": "public MainForm(){\n initComponents();\n }", "title": "" }, { "docid": "c08f8a263e07dbb79461905a3180b1fc", "score": "0.69473094", "text": "public RentalCarUI() {\n initComponents();\n }", "title": "" }, { "docid": "03f5d0b54bc90eaca060ef4eb4f9defc", "score": "0.6945752", "text": "public RForm() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "db52aa3b783bdbc300eeeed035e7a8d1", "score": "0.69456655", "text": "public Form_Maquinaria() {\n initComponents();\n }", "title": "" }, { "docid": "b1f167d64e137758e05cd1e7935efdb4", "score": "0.6942613", "text": "public From_Utama() {\n initComponents();\n }", "title": "" }, { "docid": "abca895b2170b8f8186464c00859db0a", "score": "0.69404477", "text": "public Kuis1() {\n initComponents();\n }", "title": "" }, { "docid": "6a3402e9a3d80f59f386cbee0ba47299", "score": "0.69326466", "text": "public UserMainForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "56ab934ce4354780325e3fe6f27d65d4", "score": "0.6930966", "text": "public RNorte_Form() {\n initComponents();\n }", "title": "" }, { "docid": "ff482c80fa7d333fa7e5d4f2756ee748", "score": "0.69264555", "text": "public InvoiceForm() {\n initComponents();\n }", "title": "" }, { "docid": "17708e547b7abc4738dbc593885d16dd", "score": "0.6923122", "text": "public Ui() {\n initComponents();\n }", "title": "" }, { "docid": "92bb3d3dcb0cc1fa27b53fe2d5d819c6", "score": "0.69165426", "text": "public FrmCadLayout() {\n initComponents();\n }", "title": "" }, { "docid": "dfc8b61bcd6c76d64abb96dbd436531d", "score": "0.6915934", "text": "public UrunEkle() {\n initComponents();\n }", "title": "" }, { "docid": "e7a43a4e64bdf13ebe608d9f6f6b0d22", "score": "0.6913476", "text": "public frmVistaArbol() {\n initComponents();\n }", "title": "" }, { "docid": "38ff2aaa212a83112357b6519234af71", "score": "0.6908175", "text": "public Medidas() { \n initComponents();\n }", "title": "" }, { "docid": "f2b99fcc9bacf672134b7e38a1776358", "score": "0.6907346", "text": "@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\n pack();\n }", "title": "" }, { "docid": "45727bf90c6f6a1fd6ce4564c8e685ea", "score": "0.6905068", "text": "public MainForm() {\n initComponents();\n changeStatus();\n }", "title": "" }, { "docid": "6ad4efdfaf7275c21309b76f38bed5f3", "score": "0.6904657", "text": "public frmCadProduto() {\n initComponents();\n }", "title": "" }, { "docid": "b22652dc2e032e7b25f4b7d01b020cd9", "score": "0.68962216", "text": "public perhitungan() {\n initComponents();\n }", "title": "" }, { "docid": "8269559981d5ca8f571de8f2e7e2f8c3", "score": "0.68931973", "text": "public CalculatorForm() {\n initComponents();\n }", "title": "" }, { "docid": "fe2dbfb02d4c131624ff41fb02689934", "score": "0.68910617", "text": "public OspreyGUI() {\n initComponents();\n }", "title": "" }, { "docid": "5021e6b5adf92330d1e6122a63749e73", "score": "0.6889202", "text": "public MenuForm() {\n setResizable(false);\n initComponents();\n \n }", "title": "" }, { "docid": "5f3c9acffd0f6c097f63aed7e4046880", "score": "0.68781364", "text": "public InputFrame() {\n initComponents();\n }", "title": "" }, { "docid": "22d3563d070cbf107c02e30ea44220b6", "score": "0.6870385", "text": "public Forca() {\n initComponents();\n }", "title": "" }, { "docid": "69ed098b99a4e8da75f910e531251f9e", "score": "0.68648225", "text": "public SupplierForm() {\n initComponents();\n }", "title": "" }, { "docid": "d908b0679919382c99f223c62cb80c49", "score": "0.6863138", "text": "public BoothUI() {\n initComponents();\n }", "title": "" }, { "docid": "893b2df9a26943858b3428e4f89c7962", "score": "0.6862403", "text": "public MainForm() {\n initComponents();\n fuentesList.setSelectedIndex(0);\n pequenioRadioButton.setSelected(true);\n menuItemPequenio.setSelected(true);\n \n menuItemNegrita.setSelected(false);\n menuItemCursiva.setSelected(false);\n \n setFuente();\n }", "title": "" }, { "docid": "5c80849434e5659a05db8d4c7fe093f9", "score": "0.6860145", "text": "public Latihan1() {\n initComponents();\n }", "title": "" }, { "docid": "17466fd3198cc101279f4520dd34f965", "score": "0.68585914", "text": "public FareListForm() {\n \n initComponents();\n db.fillTable(table1, \"select * from BusRouteView\"); \n getContentPane().setBackground(new java.awt.Color(255,255,255));\n lbl2.setSize(100,80);\n Utility.setLabelImage(lbl2, new File(\"src/images/bus2.jpg\").getAbsolutePath());\n \n db.fillCombo(cmbstart, \"select Distinct RouteFrom from RouteInfo\", \"RouteFrom\", \"RouteFrom\");\n db.fillCombo(cmbend, \"select Distinct RouteTo from RouteInfo\", \"RouteTo\", \"RouteTo\");\n }", "title": "" }, { "docid": "58413dc957208ccbf33567e368b9991b", "score": "0.6857089", "text": "public LasP1() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6854158", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "1e818d02cb0527ed9e21cbe31297b264", "score": "0.6847545", "text": "public themForm() {\n initComponents();\n this.setTitle(\"Thêm từ\");\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "0a74c89542637f0cd407ddb00ea7df54", "score": "0.68405384", "text": "@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, 619, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 379, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "c02e2778e32072abf0b5b849fd5863fd", "score": "0.6839661", "text": "public LKG() {\n initComponents();\n \n }", "title": "" }, { "docid": "5c9e313e85fe88dbf1822bb39dcbe10d", "score": "0.68376344", "text": "public frmRoomInfo() {\n initComponents();\n }", "title": "" }, { "docid": "74cc4b6f7f5215cc40263d5cdc610c40", "score": "0.68373626", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(153, 204, 255));\n setResizable(false);\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, 839, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 472, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "9b9a1a2a13b0d0c5ab1316c4360c5574", "score": "0.6828385", "text": "public formktp2() {\n initComponents();\n }", "title": "" }, { "docid": "56fd4ec7c7d9099b432a636526a3683d", "score": "0.68282104", "text": "public JFrmCadfichasala() {\n initComponents();\n }", "title": "" }, { "docid": "c814e2f3e3dd7fda23bbed4e94c1dd5d", "score": "0.6822701", "text": "public FormMat() {\n initComponents();\n }", "title": "" }, { "docid": "48fa9e41f3ea0b9133aaffce4b781d1e", "score": "0.68173105", "text": "public Tugas_2() {\n initComponents();\n }", "title": "" }, { "docid": "65c63ac01e8a26883c7398e3cd04295c", "score": "0.6806314", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n 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, 300, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 600, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "03ad6c2e5b73997bb2a6a1a294c54bb8", "score": "0.6805957", "text": "public Admin_MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "bb90f29c22ece1ddac1d7fa249934e57", "score": "0.6804014", "text": "public OLX13() {\n initComponents();\n }", "title": "" }, { "docid": "7318f6fe75c59da4b957194ddfd65d21", "score": "0.68036103", "text": "public frmPromotionUpgrade() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "5a9f3abc78019aedf00b7b9d97874693", "score": "0.6801719", "text": "public JFNotas() {\n initComponents();\n }", "title": "" }, { "docid": "44a3ebed1a0278b20cca34a6f35c26e1", "score": "0.6801228", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(255, 255, 255));\n setMaximumSize(new java.awt.Dimension(276, 43));\n setMinimumSize(new java.awt.Dimension(276, 43));\n setPreferredSize(new java.awt.Dimension(276, 43));\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, 276, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 43, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "85507b147d93ae194e80d4eed41e542c", "score": "0.67920524", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\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, 398, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 298, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "7be28bc05c2b3a943f637e1c4bdcb0bb", "score": "0.67897654", "text": "public FormPembeli() {\n initComponents();\n }", "title": "" }, { "docid": "4b3956d79d0ce8281d02b01c3af8bcf8", "score": "0.6789109", "text": "public pentry() {\n initComponents();\n }", "title": "" }, { "docid": "866f6cd27154070f165587d6881bcfb7", "score": "0.67855114", "text": "public Cobalt() {\n initComponents();\n }", "title": "" }, { "docid": "380fea30e26b078689ab18ad9c3491b3", "score": "0.67827106", "text": "public Form_Locacao() {\n initComponents();\n }", "title": "" }, { "docid": "f993c6846dd272bfbf88657569ff6744", "score": "0.67794406", "text": "public AddCustomerForm() {\n initComponents();\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n }", "title": "" }, { "docid": "6be8f51ad46b139457acc778e2cac1c5", "score": "0.6777797", "text": "public NewProgrammer() {\n initComponents();\n }", "title": "" }, { "docid": "87308e4c9326ed2af56bb3416ea9fc26", "score": "0.67774534", "text": "public aPencere() {\n initComponents();\n }", "title": "" }, { "docid": "1474f91a0ffe6843bb1de1a7a4da26a1", "score": "0.6777084", "text": "public frmLaporan() {\n initComponents();\n }", "title": "" }, { "docid": "b9ec5ed4a38a6a284790102aabc721b0", "score": "0.6766832", "text": "public AwardBasisForm() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "a71866e5c7eef0c40d7e55d1aaebe495", "score": "0.6762448", "text": "public LieferantAnlegen() {\n initComponents();\n }", "title": "" }, { "docid": "b029a577896a8e641b6d57f83c258b3c", "score": "0.6761635", "text": "public FRM() {\n initComponents();\n }", "title": "" }, { "docid": "3823fe09dddb155541a4a21dc9efef4e", "score": "0.6755229", "text": "public FenBills() {\n initComponents();\n }", "title": "" }, { "docid": "5f2939bc4d2b64bf49d44af20c9a3297", "score": "0.6752388", "text": "public CS() {\n initComponents();\n }", "title": "" }, { "docid": "e6bd4a16665107b56e83ca46cefd3697", "score": "0.6749704", "text": "public PatientRegisterUI() {\n initComponents();\n }", "title": "" }, { "docid": "743c329f5d346198a47f3068317bff63", "score": "0.67480934", "text": "public CumulativeBudgetInformationForm() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "7744ffb83a06fb8a6efb3fee651eb5e8", "score": "0.67478985", "text": "public CadMembro_Juvenil() {\n initComponents();\n }", "title": "" }, { "docid": "fcf68eba85aa35947bd819178e9b0d33", "score": "0.67463124", "text": "public guiRelatorio4() {\n initComponents();\n }", "title": "" }, { "docid": "9b18c44c80e1f36b332d2aabde1cb53e", "score": "0.6745435", "text": "public StudentGUI() {\n initComponents();\n }", "title": "" }, { "docid": "1de7778d6f2fdfeebef262e31bf237cb", "score": "0.67437637", "text": "public E7() {\n initComponents();\n }", "title": "" }, { "docid": "49aace125ae06499da2d4c886c8f153e", "score": "0.6738557", "text": "public AgregarPlatilloForm() {\n initComponents();\n }", "title": "" } ]
aaee0e6a0063688793ed7707807693d3
Checks if there are error values in the form. If there are errors then puts them in the request and removes it from the form. If there are no error returns the passed model and view value.
[ { "docid": "4c174662b78c71154638296fd711496c", "score": "0.60624945", "text": "private ModelAndView checkErrorValues(HttpServletRequest request, HttpServletResponse response,\n\t\t\tVendorCatalogDataMappingForm vendorCatalogDataMappingForm, ModelAndView modelAndView, String action) {\n\t\tString errorValue = vendorCatalogDataMappingForm.getErrorString();\n\t\tif (!StringUtils.isBlank(errorValue)) {\n\t\t\tif (log.isDebugEnabled()){\n\t\t\t\tlog.debug(\"Error is not blank. There might be some errors.\");\n\t\t\t}\n\t\t\tsaveError(request, errorValue);\n\t\t\tvendorCatalogDataMappingForm.setErrorString(StringUtils.EMPTY);\n\t\t\ttry {\n\t\t\t\trequest.setAttribute(\"cid\", vendorCatalogDataMappingForm.getCatalogId());\n\t\t\t\treturn getVendorCatalog(request, response);\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.error(\"Error in saveCompleteTemplate when trying to throw an error message\");\n\t\t\t}\n\t\t}else {\n\t\t\tif (log.isDebugEnabled()){\n\t\t\t\tlog.debug(\"There are no errors found.\");\n\t\t\t}\n\t\t\tif(action.equals(SAVE_COMPLETE_TEMPLATE)){\n\t\t\t\tlog.debug(\"Completing ##\");\n\t\t\t\terrorValue=SAVED_AND_COMPLETED;\n\t\t\t}else if(action.equals(SAVE_TEMPLATE)){\n\t\t\t\tlog.debug(\"Savinging ##\");\n\t\t\t\terrorValue=TEMPALTE_SAVED;\n\t\t\t}else{\n\t\t\t\tlog.debug(\"else ##\");\n\t\t\t\terrorValue=ACTION_REQUEST_SAVED;\n\t\t\t}\n\t\t\tsaveError(request, errorValue);\n\t\t}\n\t\t//Check for scrolling\n\t\tif(StringUtils.isNotBlank(request.getParameter(\"scrollPos\"))){\n\t\t\tlog.debug(\"&&&&&&&&&Scroll Pos:\"+ request.getParameter(\"scrollPos\"));\n\t\t\trequest.setAttribute(\"scrollPos\", request.getParameter(\"scrollPos\"));\n\t\t}\n\t\telse{\n\t\t\trequest.setAttribute(\"scrollPos\", 0);\n\t\t}\n\t\treturn modelAndView;\n\t}", "title": "" } ]
[ { "docid": "6a612a9afd7fdbea9af0cc34833c9bfe", "score": "0.6020317", "text": "protected ModelAndView showForm(RenderRequest request, RenderResponse response, BindException errors, Map model) throws Exception {\n\t\tModelAndView mav = super.showForm(request, response, errors, model); \n\t\tCollection pets = (Collection) mav.getModel().get(\"pets\");\n\t\tif (pets.size() == 0) {\n\t\t\tmav = new ModelAndView(\"noPetsForUpload\");\n\t\t}\n\t\treturn mav;\n\t}", "title": "" }, { "docid": "7b1980823aeea05b0cd8604600a5dc74", "score": "0.56177133", "text": "public String validateForm() {\n \t\tif (isDebugEnabled) {\n \t\t\tS_LOGGER.debug(\"Entering Method GlobalUrlAction.validateForm()\");\n \t\t}\n \n \t\tboolean isError = false;\n \t\t//Empty validation for name\n \t\tif (StringUtils.isEmpty(getName())) {\n \t\t\tsetNameError(getText(KEY_I18N_ERR_NAME_EMPTY));\n \t\t\tisError = true;\n \t\t} \n \n \t\t//Empty validation for url\n \t\tif (StringUtils.isEmpty(getUrl())) {\n \t\t\tsetUrlError(getText(KEY_I18N_ERR_URL_EMPTY));\n \t\t\tisError = true;\n \t\t}\n \t\t\n \t\tif (isError) {\n setErrorFound(true);\n }\n \n \t\treturn SUCCESS;\n \t}", "title": "" }, { "docid": "1be7f4a4145023f77cd18cc75365b37e", "score": "0.53831404", "text": "@PostMapping(\"user/edit-info\")\n public String processEditAccountInfoForm(@ModelAttribute @Valid EditInfoDTO editInfoDTO, Errors errors,\n HttpServletRequest request, HttpSession session, Model model) {\n/* Some cases to plan for:\n 1) Since fields are prefilled with persisted info, when user hits Update compare the field values to the stored values, do nothing if same\n 2) Since fields can be changed together or separately, check each as individual fields\n 3) Username is not used for login so it can be whatever the user wants\n 4) Email IS used for login so it must be unique - check email against db, then check userid vs currentUser. show error if not match\n */\n // Get current user\n User currentUser = homeController.getUserFromSession(session);\n\n // If the user account does not exist, redirect to login page as browser session has expired\n if (currentUser == null) {\n errors.rejectValue(\"email\", \"email.DoesNotExist\", \"An account with this email address does not exist\");\n model.addAttribute(\"title\", \"Reset Account Password\");\n return goUserEditInfo;\n }\n\n // If DTO validation errors, display error message(s)\n if (errors.hasErrors()) {\n // Unsure why it always clears the entered and confirm password fields\n return goUserEditInfo;\n }\n\n // Check if username has changed\n String activeUserName = editInfoDTO.getUsername();\n String currentUserName = currentUser.getUserName();\n boolean doUserNamesMatch = currentUserName.equals(activeUserName);\n boolean isUserNameChanged = false;\n boolean isEmailChanged = false;\n if (!currentUser.getUserName().equals(editInfoDTO.getUsername())) {\n model.addAttribute(\"message\",\"No info has changed so you're all good!\");\n isUserNameChanged = true;\n return goUserEditInfo;\n }\n currentUser.setUserName(editInfoDTO.getUsername());\n User activeUser = currentUser;\n/*\n // Creates and sends an email to the user\n // If you receive an error about an outgoing email server not being configured, you need to add in the group Gmail\n // login credentials in the properties file\n try {\n mailSender.send(constructResetTokenEmail(request.getLocale(), null, currentUser));\n }\n catch (Exception exception) {\n if (exception.toString().contains(\"not accepted\")) {\n errors.rejectValue(\"email\", \"server.notConfigured\", \"The password has been reset but no email was sent as there is no outgoing email server configured.\");\n } else {\n errors.rejectValue(\"email\", \"some.unknownError\", \"An unknown error occurred.\");\n }\n return goUserEditInfo;\n }\n*/\n// While the User model does not persist the 'password' field, it is still a required field for the user object. So...\n // 1) Since 'password' is still a required field, use a random string to set the password value and replace the hash\n currentUser.setPassword(createRandomString(8));\n // 2) To ensure the user will have to update their password upon next login, set the flag to true\n currentUser.setPasswordReset(true);\n // 3) Persist the finished User object\n userRepository.save(currentUser);\n\n model.addAttribute(\"message\", \"\");\n return goUserEditInfo;\n }", "title": "" }, { "docid": "91ac8f168da08dea2f6047896e648e8a", "score": "0.5212081", "text": "@Override\n protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command,\n BindException errors) throws Exception {\n ModelAndView mv = new ModelAndView(this.getSuccessView());\n try {\n\n String name = request.getParameter(\"name\");\n String phoneNum = request.getParameter(\"phoneNum\");\n String address = request.getParameter(\"address\");\n String email = request.getParameter(\"email\");\n String password = request.getParameter(\"password\");\n String gender = request.getParameter(\"gender\");\n String type = request.getParameter(\"type\");\n\n if (name.equals(\"\") || phoneNum.equals(\"\") || address.equals(\"\") || email.equals(\"\") || password.equals(\"\") || gender.equals(\"\") || type.equals(\"\")) {\n mv.addObject(\"reminder\", \"You should fill all the blank. Please try again.\");\n mv.addObject(\"backName\", \"register_choose.jsp\");\n mv.setViewName(\"reminder\");\n } else {\n NursingWorkerDao nsdao = (NursingWorkerDao) getApplicationContext().getBean(\"NursingWorkerDao\");\n if (nsdao.addWoker(name, phoneNum, address, password, gender, email, type) == 1) {\n mv.addObject(\"reminder\", \"You have registered as a nursing worker successfully!\");\n mv.addObject(\"backName\", \"login_choose.jsp\");\n mv.setViewName(\"reminder_s\");\n } else {\n mv.addObject(\"reminder\", \"Registration failed!!!\");\n mv.addObject(\"backName\", \"register_choose.jsp\");\n mv.setViewName(\"reminder\");\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n mv.addObject(\"reminder\", \"Registration failed!!\");\n mv.addObject(\"backName\", \"register_choose.jsp\");\n mv.setViewName(\"reminder\");\n }\n\n return mv;\n }", "title": "" }, { "docid": "9f4c18d414f7cba9e1a3ecb309ba8c1c", "score": "0.5207213", "text": "@Override\n protected ModelAndView showForm(HttpServletRequest req, HttpServletResponse res, Object comm,\n BindingResult bindingResult) throws Exception {\n \treturn processInitial(req, res, comm, bindingResult);\n }", "title": "" }, { "docid": "1301dd142ec73bca45f6cb09c569c88a", "score": "0.52061844", "text": "@RequestMapping(value = \"/newTodo\", method = RequestMethod.POST)\n public RedirectView submitTodo(@ModelAttribute(\"todo\") @Valid Todo todo,\n BindingResult result, ModelMap model) {\n\n\n String form_todo_name = todo.getName();\n\n Integer form_difficulty_id = todo.getDifficulty_id();\n\n RedirectView rv = new RedirectView();\n rv.setContextRelative(true);\n if(form_todo_name != null && !form_todo_name.isEmpty() && (form_difficulty_id != 0)){\n\n int user_id = todo.getUser_id();\n\n\n Todo new_todo = new Todo();\n new_todo.setName(form_todo_name);\n new_todo.setDifficulty_id(todo.getDifficulty_id());\n new_todo.setUser_id(user_id);\n\n todoService.createTodo(new_todo);\n\n model.addAttribute(\"user_id\", user_id);\n\n model.addAttribute(\"message\", 2);\n\n rv.setAttributesMap(model);\n rv.setUrl(\"/addTodo/{user_id}\");\n return rv;\n\n\n }else{\n\n model.addAttribute(\"message\", 1);\n model.addAttribute(\"user_id\", todo.getUser_id());\n\n rv.setAttributesMap(model);\n rv.setUrl(\"/addTodo/{user_id}\");\n return rv;\n }\n\n\n\n }", "title": "" }, { "docid": "052f674998c4f8ca9213517d0a3baef7", "score": "0.5100868", "text": "void clearValidationErrors();", "title": "" }, { "docid": "1b137594107135d22bce817284d297b0", "score": "0.5065376", "text": "@PostMapping(\"user/update\")\n public String processChooseNewPasswordForm(@ModelAttribute @Valid UpdatePasswordDTO updatePasswordDTO, Errors errors,\n HttpServletRequest request, Model model) {\n\n // If reset token not found in db, display error message\n if(!validatePasswordResetToken(updatePasswordDTO.getToken())) {\n model.addAttribute(\"title\", \"Update Account Password\");\n errors.rejectValue(\"token\", \"token.notValid\", \"Token is not valid. Please try again.\");\n return goUserUpdate;\n }\n // If DTO validation errors, display error message(s)\n if (errors.hasErrors()) {\n // Unsure why it always clears the entered and confirm password fields\n model.addAttribute(\"updatePasswordDTO.passwordEntered\", updatePasswordDTO.getPasswordEntered());\n model.addAttribute(\"updatePasswordDTO.passwordConfirm\", updatePasswordDTO.getPasswordConfirm());\n return goUserUpdate;\n }\n\n // If both passwords do not match, display error message\n if (!updatePasswordDTO.getPasswordEntered().equals(updatePasswordDTO.getPasswordConfirm())) {\n model.addAttribute(\"passwordEntered\", updatePasswordDTO.getPasswordEntered());\n model.addAttribute(\"passwordConfirm\", updatePasswordDTO.getPasswordConfirm());\n errors.rejectValue(\"passwordConfirm\", \"passwordConfirm.notMatch\", \"Passwords do not match. Please try again.\");\n return goUserUpdate;\n }\n\n // Retrieve users token object via the valid token string\n PasswordResetToken userByToken = passwordTokenRepository.findByToken(updatePasswordDTO.getToken());\n // Retrieve the user from the token\n User user = userRepository.findByEmail(userByToken.getUser().getEmail());\n\n if(user != null) {\n // Updates the user object password with the entered one\n // This process creates a new hash but does not persist the plain text password\n user.setPassword(updatePasswordDTO.getPasswordEntered());\n // Once password is successfully changed, set the reset flag to false allowing for normal login\n user.setPasswordReset(false);\n // Persists modified User object to db\n userRepository.save(user);\n // Once modified user object is saved, deletes the token from the token db\n passwordTokenRepository.deleteById(userByToken.getId());\n // Redirects user to login page\n model.addAttribute(new LoginFormDTO());\n model.addAttribute(\"title\", \"Welcome to Closet Tracker!\");\n model.addAttribute(\"message\", \"Your password has successfully been reset. Login using your new password to access your account.\");\n return \"redirect:\";\n }\n else {\n // If user is not found, displays error message\n errors.rejectValue(\"passwordEntered\", \"user.notFound\", \"No valid user found. Please try again.\");\n return goUserUpdate;\n }\n }", "title": "" }, { "docid": "f0bdf74c7265b10a9be172b1f25abaa7", "score": "0.5057472", "text": "public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)\r\n {\r\n final org.apache.struts.action.ActionErrors errors = super.validate(mapping, request);\r\n if (errors != null && !errors.isEmpty())\r\n {\r\n // we populate the current form with only the request parameters\r\n Object currentForm = request.getSession().getAttribute(\"form\");\r\n // if we can't get the 'form' from the session, try from the request\r\n if (currentForm == null)\r\n {\r\n currentForm = request.getAttribute(\"form\");\r\n }\r\n if (currentForm != null)\r\n {\r\n final java.util.Map parameters = new java.util.HashMap();\r\n for (final java.util.Enumeration names = request.getParameterNames(); names.hasMoreElements();)\r\n {\r\n final String name = String.valueOf(names.nextElement());\r\n parameters.put(name, request.getParameter(name));\r\n }\r\n try\r\n {\r\n org.apache.commons.beanutils.BeanUtils.populate(currentForm, parameters);\r\n }\r\n catch (java.lang.Exception populateException)\r\n {\r\n // ignore if we have an exception here (we just don't populate).\r\n }\r\n }\r\n }\r\n return errors;\r\n }", "title": "" }, { "docid": "8b965e82b7f03dbd30764247429e3290", "score": "0.49886826", "text": "@RequestMapping(value = { CommonConstants.ERROR_PATH }, method = { RequestMethod.POST })\n\tpublic @ResponseBody\n\tResultInfoDTO errorInfo(HttpServletRequest request) {\n\t\tInteger id = (Integer)request.getAttribute(CommonConstants.PARAMETER_ERROR_ID);\n\t\tif (id == null) {\n\t\t\tid = CommonErrorCodes.ERROR_CODE_UNKNOWN;\n\t\t}\n\t\tString str = (String)request.getAttribute(CommonConstants.PARAMETER_ERROR_DETAILS);\n\t\tif (str == null) {\n\t\t\tstr = \"UNKNOWN\";\n\t\t}\n\t\treturn new ResultInfoDTO(id, str);\n\t}", "title": "" }, { "docid": "bca0255a7af5d3d62ea7531708374a69", "score": "0.4982106", "text": "public void removeError()\n\t{\n\t\terror1.setLabel(\"\");\n\t\terror2.setLabel(\"\");\n\t\terror3.setLabel(\"\");\n\t}", "title": "" }, { "docid": "1a671fa5ce4611a92ece720f32e70430", "score": "0.49609348", "text": "@RequestMapping(value = \"/users/editUser\", method = RequestMethod.GET)\n public String showEditUserView(Model model) {\n //Get the model\n Map<String, Object> map = model.asMap();\n //If there is not already a UserForm something went wrong so we redirect\n if (!map.containsKey(USER_FORM)) {\n return \"redirect:/admin/users\";\n }\n //If there is not UserForm\n return \"editUser\";\n }", "title": "" }, { "docid": "63e23c50deda530673e4cece8a88192f", "score": "0.49532753", "text": "public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) \r\n {\r\n ActionErrors errors = new ActionErrors();\r\n Validator validator = new Validator();\r\n \r\n try\r\n {\r\n if (operation.equals(Constants.SEARCH))\r\n {\r\n checkValidNumber(new Long(systemIdentifier).toString(),\"site.identifier\",errors,validator);\r\n }\r\n if (operation.equals(Constants.ADD) || operation.equals(Constants.EDIT))\r\n { \r\n \tif (validator.isEmpty(name))\r\n {\r\n errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(\"errors.item.required\",ApplicationProperties.getValue(\"site.name\")));\r\n }\r\n \t\r\n \tif (validator.isEmpty(type))\r\n {\r\n errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(\"errors.item.required\",ApplicationProperties.getValue(\"site.type\")));\r\n }\r\n \r\n if (validator.isEmpty(emailAddress))\r\n {\r\n errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(\r\n \"errors.item.required\", ApplicationProperties\r\n .getValue(\"site.emailAddress\")));\r\n }\r\n else\r\n {\r\n if (!validator.isValidEmailAddress(emailAddress))\r\n {\r\n errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(\r\n \"errors.item.format\", ApplicationProperties\r\n .getValue(\"site.emailAddress\")));\r\n }\r\n }\r\n \r\n if (validator.isEmpty(street))\r\n {\r\n errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(\r\n \"errors.item.required\", ApplicationProperties\r\n .getValue(\"site.street\")));\r\n }\r\n \r\n if(type.equals(Constants.SELECT_OPTION))\r\n {\r\n \terrors.add(ActionErrors.GLOBAL_ERROR, new ActionError(\"errors.item.selected\",ApplicationProperties.getValue(\"site.type\")));\r\n }\r\n if(coordinatorId == -1L)\r\n {\r\n \terrors.add(ActionErrors.GLOBAL_ERROR, new ActionError(\"errors.item.selected\",ApplicationProperties.getValue(\"site.coordinator\")));\r\n }\r\n \r\n if(state.equals(Constants.SELECT_OPTION))\r\n {\r\n \terrors.add(ActionErrors.GLOBAL_ERROR, new ActionError(\"errors.item.selected\",ApplicationProperties.getValue(\"site.state\")));\r\n }\r\n if(country.equals(Constants.SELECT_OPTION))\r\n {\r\n \terrors.add(ActionErrors.GLOBAL_ERROR, new ActionError(\"errors.item.selected\",ApplicationProperties.getValue(\"site.country\")));\r\n }\r\n }\r\n \r\n if (validator.isEmpty(city))\r\n {\r\n errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(\r\n \"errors.item.required\", ApplicationProperties\r\n .getValue(\"site.city\")));\r\n }\r\n \r\n checkValidNumber(zipCode, \"site.zipCode\", errors, validator);\r\n }\r\n catch(Exception excp)\r\n {\r\n Logger.out.error(excp.getMessage());\r\n }\r\n return errors;\r\n }", "title": "" }, { "docid": "8a93bf97ba69486d4820da471f8b34b3", "score": "0.4928586", "text": "public List<String> getFormErrors() {\r\n\t\tArrayList<String> list = new ArrayList<>();\r\n\r\n\t\tfor (Error error : errors) {\r\n\t\t\tif (error.getParam() == null) {\r\n\t\t\t\tlist.add(error.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "316925222d34911fd6323c81eae2af88", "score": "0.49213865", "text": "public void resetForm() {\r\n firstName = \"\";\r\n surname = \"\";\r\n email = \"\";\r\n clearErrors();\r\n }", "title": "" }, { "docid": "53995b8a9205272a94db247221502276", "score": "0.491269", "text": "public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {\n session.setAttribute(\"CURRENTPARAMS\", mod.getIdEvento()+\",\"+mod.getIdModel()+\",-1\");\n ActionErrors errors = new ActionErrors();\n java.sql.Connection conn = common.getConnection();\n try {\n if (btn.equalsIgnoreCase(\"Guardar\")) {\n //product prod = new product(0, 0, prodName, reference, composition, description, price);\n DataMethods DBM = new DataMethods(conn);\n if (mod.getModelName().length() == 0) {\n errors.add(\"editmodelError\", new ActionMessage(\"error.entermodelname\"));\n }\n FormFile myFile = getFile();\n boolean uploadPic=myFile.getFileName().length()>0;\n if((mod.getIdModel().equals(\"0\"))&&(myFile.getFileName().length()==0)){ errors.add(\"editmodelError\", new ActionMessage(\"error.entermodelpic\"));}\n \n if (errors.size() == 0) {\n if (!DBM.saveModel(mod)) {\n errors.add(\"editmodelError\", new ActionMessage(\"error.data\"));\n } else if(uploadPic){\n session.setAttribute(\"CURRENTMOD\", mod);\n \n try {\n\n String fpath = \"events/\" + mod.getIdEvento() + \"/models\";\n\n fpath = this.getServlet().getServletContext().getRealPath(fpath);\n\n File f = new File(fpath);\n if (!f.exists()) {\n f.mkdirs();\n }\n\n String extension = myFile.getFileName().substring(myFile.getFileName().lastIndexOf(\".\")).toLowerCase();\n if (myFile.getFileSize() > 307200) {\n errors.add(\"editmodelError\", new ActionMessage(\"error.upload.size\"));\n } else if (!extension.equalsIgnoreCase(\".jpg\")) {\n errors.add(\"editmodelError\", new ActionMessage(\"error.upload.ext\"));\n } else {\n String name = mod.getIdModel() + \".jpg\";\n File fileToCreate = new File(fpath, name);\n FileOutputStream fileOutStream = new FileOutputStream(fileToCreate);\n fileOutStream.write(myFile.getFileData());\n fileOutStream.flush();\n fileOutStream.close();\n }\n errors.add(\"editmodelError\", new ActionMessage(\"error.saveok\"));\n } catch (Exception e) {\n errors.add(\"editmodelError\", new ActionMessage(\"error.operation\"));\n }\n \n }\n } \n }else \n {\n if(btnText.length()==0){errors.add(\"addbuttonError\", new ActionMessage(\"error.addtext\"));}\n else if((btnProd==null)||(btnProd.length()==0)){errors.add(\"addbuttonError\", new ActionMessage(\"error.addprod\"));}\n else{\n product pr = new product(btnProd, mod.getIdEvento());\n pr.setBtnText(btnText);\n mod.getProducts().add(pr);\n session.setAttribute(\"CURRENTMOD\", mod);\n }\n }\n } catch (Exception e) {\n errors.add(\"editmodelError\", new ActionMessage(\"error.operation\"));\n }\n if(errors.size()==0){errors.add(\"editmodelError\", new ActionMessage(\"error.saveok\"));}\n \n common.CloseConnection(conn);\n return errors;\n }", "title": "" }, { "docid": "de1b3713c4ddb75e480056b769b5ee9f", "score": "0.48987073", "text": "@Override\n \tprotected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object object, BindException exceptions) throws Exception {\t\t\t\t\t\t\n \t\treturn new ModelAndView(new RedirectView(getSuccessView()));\n \t}", "title": "" }, { "docid": "98f12140f868153987399029ce358a1f", "score": "0.48916605", "text": "@RequestMapping(value = \"/frmMaterialReturn\", method = RequestMethod.GET)\r\n\tpublic ModelAndView funOpenMISForm(Map<String, Object> model, HttpServletRequest request) {\r\n\t\tString clientCode = request.getSession().getAttribute(\"clientCode\").toString();\r\n\t\tString propCode = request.getSession().getAttribute(\"propertyCode\").toString();\r\n\t\trequest.getSession().setAttribute(\"formName\", \"frmMaterialReturn\");\r\n\t\tString urlHits = \"1\";\r\n\t\ttry {\r\n\t\t\turlHits = request.getParameter(\"saddr\").toString();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\turlHits = \"1\";\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Checking Authorization\r\n\t\t */\r\n\t\tString docCode = \"\";\r\n\t\tboolean flagOpenFromAuthorization = true;\r\n\t\ttry {\r\n\t\t\tdocCode = request.getParameter(\"authorizationMatRetCode\").toString();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tflagOpenFromAuthorization = false;\r\n\t\t}\r\n\t\tmodel.put(\"flagOpenFromAuthorization\", flagOpenFromAuthorization);\r\n\t\tif (flagOpenFromAuthorization) {\r\n\t\t\tmodel.put(\"authorizationMatRetCode\", docCode);\r\n\t\t}\r\n\r\n\t\tmodel.put(\"urlHits\", urlHits);\r\n\t\t/*\r\n\t\t * Set Process\r\n\t\t */\r\n\t\tList<String> list = objGlobalFunctions.funGetSetUpProcess(\"frmMaterialReturn\", propCode, clientCode);\r\n\t\tif (list.size() > 0) {\r\n\t\t\tmodel.put(\"strProcessList\", list);\r\n\t\t} else {\r\n\t\t\tlist = new ArrayList<String>();\r\n\t\t\tmodel.put(\"strProcessList\", list);\r\n\t\t}\r\n\t\t\r\n\t\t model.put(\"mreditable\", true);\r\n\t\t \r\n\t\t HashMap<String, clsUserDtlModel> hmUserPrivileges = (HashMap)request.getSession().getAttribute(\"hmUserPrivileges\");\r\n\t\t clsUserDtlModel objUserDtlModel = (clsUserDtlModel)hmUserPrivileges.get(\"frmMaterialReturn\");\r\n\t\t if (objUserDtlModel != null) {\r\n\t\t if (objUserDtlModel.getStrEdit().equals(\"false\")) {\r\n\t\t model.put(\"mreditable\", false);\r\n\t\t }\r\n\t\t }\r\n\t\t\r\n\t\tclsMaterialReturnBean bean = new clsMaterialReturnBean();\r\n\t\tif (\"2\".equalsIgnoreCase(urlHits)) {\r\n\t\t\treturn new ModelAndView(\"frmMaterialReturn_1\", \"command\", bean);\r\n\t\t} else if (\"1\".equalsIgnoreCase(urlHits)) {\r\n\t\t\treturn new ModelAndView(\"frmMaterialReturn\", \"command\", bean);\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "6d903c061be498de3d93832070eb6a27", "score": "0.48833713", "text": "@ExceptionHandler(ConstraintViolationException.class)\n public String handleViolations(Model model, HttpServletRequest request, ConstraintViolationException ex){\n Set<ConstraintViolation<?>> violations = ex.getConstraintViolations();\n \n for(ConstraintViolation<?> violation: violations){\n String messageId = violation.getPropertyPath().toString().replaceAll(\"save.\", \"\").concat(\"Message\");\n String messageValue = violation.getMessage();\n \n model.addAttribute(messageId, messageValue);\n }\n \n populateAttributes(model, request);\n \n return \"form\";\n }", "title": "" }, { "docid": "1a1332cb192d75dbf374597bd2653606", "score": "0.4852098", "text": "@Override\n public ActionErrors validate( ActionMapping mapping\n , HttpServletRequest request )\n\t{\n\t\n\tActionErrors messages = super.validate( mapping, request );\n\t\n\t\n if (getSearchParameters().isEmpty())\n {\n \tmessages.add( ActionMessages.GLOBAL_MESSAGE\n \t , new ActionMessage( \"search.error.message.required.four\",\"Title\",\"Author Name\",\"IDNO\",\"Date Range\") );\n \tclearResults();\n \tsuper.clearState();\n }\n\t\n\treturn messages;\n\t}", "title": "" }, { "docid": "1c0dda9a771988bf54c5aad07261ecca", "score": "0.4838917", "text": "@PostMapping\n public String checkPersonInfo(@Valid @ModelAttribute(\"form\") AdvanceGetForm form, BindingResult bindingResult) {\n if (bindingResult.hasErrors()) {\n return \"flowGet/form\";\n }\n return \"redirect:/results\";\n }", "title": "" }, { "docid": "50088161424acbd7c5c871ab0a69a6c9", "score": "0.48374847", "text": "@RequestMapping(value = \"edit\", method = RequestMethod.POST)\n public String processEditForm(@ModelAttribute @Valid Cheese newCheese, Errors errors, Model model){\n\n if(errors.hasErrors()){\n model.addAttribute(\"title\", \"Edit Cheese \" + newCheese.getCheeseName());\n model.addAttribute(\"cheese\", newCheese);\n model.addAttribute(\"cheeseTypes\", CheeseType.values());\n return \"cheese/edit\";\n }\n\n Cheese cheese = cheeseDao.findOne(newCheese.getId());\n cheese.setCheeseName(newCheese.getCheeseName());\n cheese.setCheeseDescription(newCheese.getCheeseDescription());\n cheese.setType(newCheese.getType());\n cheese.setRating(newCheese.getRating());\n return \"redirect:\";\n }", "title": "" }, { "docid": "3c8ee047b4b59f7f8504d25cccb14921", "score": "0.48210973", "text": "private void clearForm() {\n validationFields.forEach(e -> e.setText(\"\"));\n errorLabels.forEach(e -> e.setText(\"\"));\n }", "title": "" }, { "docid": "c0df2c51a847f1bc1f25f388c9cdaf72", "score": "0.477479", "text": "public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {\n \n return null;\n }", "title": "" }, { "docid": "61c735a26a403e8ffeee1fe2d2feaf82", "score": "0.4760249", "text": "public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {\n \n return null;\n }", "title": "" }, { "docid": "61c735a26a403e8ffeee1fe2d2feaf82", "score": "0.4760249", "text": "public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {\n \n return null;\n }", "title": "" }, { "docid": "4bb7a8ea63e8c0594340649d4524b113", "score": "0.47559506", "text": "@RequestMapping(value = \"/users/editUser\", method = RequestMethod.POST)\n public String processEditUser(@Valid @ModelAttribute(USER_FORM) UserForm userForm,\n BindingResult bindingResult, Model model,\n RedirectAttributes redirectAttributes) {\n //If something does not pass our @Valid(ations), then this means that our BindingResult\n //object \".hasErrors()\" so we will send the user again to the registration form to correct his mistakes\n if (bindingResult.hasErrors()) {\n //Also we will be adding userForm to RedirectAttributes so that we can keep his valid inputs and reshow them\n redirectAttributes.addFlashAttribute(\"org.springframework.validation.BindingResult.\" + USER_FORM, bindingResult);\n redirectAttributes.addFlashAttribute(USER_FORM, userForm);\n return \"redirect:/admin/users/editUser\";\n }\n try {\n //Trying to build a user from our UserForm\n //Full means we include userID also\n User user = UserConverter.buildUpdateUserObject(userForm);\n //Save the user\n userService.save(user);\n redirectAttributes.addFlashAttribute(MESSAGE, \"User was updated\");\n return \"redirect:/admin/users\";\n } catch (DuplicateUserException duex) {\n //if an error occurs show it to the user\n redirectAttributes.addFlashAttribute(USER_FORM, userForm);\n redirectAttributes.addFlashAttribute(MESSAGE, duex.getMessage());\n return \"redirect:/admin/users/editUser\";\n }\n }", "title": "" }, { "docid": "7fdd691d68eb2a5898893ddce62a40b6", "score": "0.47476488", "text": "private void cleanError()\n {\n this.setError(\"\"); // Clear the text\n }", "title": "" }, { "docid": "c1ce8f6c129a53f223a348660ebb68b1", "score": "0.4746189", "text": "@ResponseStatus(HttpStatus.BAD_REQUEST)\n @ExceptionHandler(MethodArgumentNotValidException.class)\n public Map<String, String> handleValidationExceptions(\n MethodArgumentNotValidException ex) {\n Map<String, String> errors = new HashMap<>();\n ex.getBindingResult().getAllErrors().forEach(error -> {\n String fieldName = ((FieldError) error).getField();\n String errorMessage = error.getDefaultMessage();\n errors.put(fieldName, errorMessage);\n });\n return errors;\n }", "title": "" }, { "docid": "12131adf6a086dcd25e5ac47c5d2f686", "score": "0.47373736", "text": "@ResponseStatus(HttpStatus.BAD_REQUEST)\n @ExceptionHandler(MethodArgumentNotValidException.class)\n public Map<String, String> handleValidationExceptions(\n MethodArgumentNotValidException ex) {\n Map<String, String> errors = new HashMap<>();\n ex.getBindingResult().getAllErrors().forEach((error) -> {\n String fieldName = ((FieldError) error).getField();\n String errorMessage = error.getDefaultMessage();\n errors.put(fieldName, errorMessage);\n });\n return errors;\n }", "title": "" }, { "docid": "22adb5717d31a1741338b79078723368", "score": "0.47276634", "text": "protected void saveErrors(HttpServletRequest request, ActionMessages errors) {\n if ((errors == null) || errors.isEmpty()) {\n request.removeAttribute(Globals.ERROR_KEY);\n return;\n }\n\n // Save the error messages we need\n request.setAttribute(Globals.ERROR_KEY, errors);\n\n }", "title": "" }, { "docid": "fa85e993347e440cea21c2402b0c709b", "score": "0.4706703", "text": "boolean hasSetFormValue();", "title": "" }, { "docid": "38c8496528ef6a271a13ac65d5263752", "score": "0.46947953", "text": "@Override\r\n\tpublic void cleanForm() {\n\t\ttxtId.setText(null);\r\n\t\t/*\r\n\t\t * txtSerie.setText(null); txtPreimpreso.setText(null);\r\n\t\t * txtNumInicial.setText(null); txtNumFinal.setText(null);\r\n\t\t */\r\n\t}", "title": "" }, { "docid": "fee1b7b3fc17d953a762f4329ceb39b9", "score": "0.46888182", "text": "ValidationResultsModel getValidationResults();", "title": "" }, { "docid": "d4c7fbcdd6b443cc15624037cef19d7a", "score": "0.46743557", "text": "private ResponseEntity<Object> handleValidationInternal(Exception ex, HttpHeaders headers, HttpStatus status,\n WebRequest request, BindingResult bindingResult) {\n var fields = bindingResult.getFieldErrors().stream().map(error -> {\n // String message = messageSource.getMessage(error, new Locale(\"pt\", \"BR\"));\n String message = messageSource.getMessage(error, Locale.ENGLISH);\n return new ErrorResponseDTO.Cause(error.getField(), message);\n }).distinct().collect(Collectors.toList());\n\n String message = \"One or more fields are invalid\";\n var responseBody = createErrorResponseDTOBuilder(status, request, message).causes(fields).build();\n\n return super.handleExceptionInternal(ex, responseBody, headers, status, request);\n }", "title": "" }, { "docid": "cb8d4ea454e380d18c2185520fbc6383", "score": "0.46722543", "text": "@Override\n\tpublic HashMap<String, String> checkFormEntries() {\n\t\tHashMap<String, String> errorMessages = new HashMap<String, String>();\n\t\t\n\t\t// role\n\t\t// TODO: Map roles to subscription\n\t\t\n\t\treturn errorMessages;\n\t}", "title": "" }, { "docid": "567aacb21964acf3a41d95dfe05ae6ef", "score": "0.46702826", "text": "public void clearErrors();", "title": "" }, { "docid": "9eeb22a2292bb8b0b2ff529bd23b9faf", "score": "0.46666718", "text": "private void whenUserFillsOutSomeFieldsOfForm() {\n\t\t\n\t}", "title": "" }, { "docid": "5b578640c78a046c2429841d35d7ffdc", "score": "0.46553686", "text": "protected void doValidation()\n {\n if (getProject() == null)\n {\n addErrorMessage(getText(\"admin.errors.project.no.project.with.id\"));\n // Don't try to do any more validation.\n return;\n }\n\n final ProjectService.UpdateProjectValidationResult result = getUpdateProjectValidationResult();\n\n if (!result.isValid())\n {\n //map keyed errors to JSP field names\n mapErrorCollection(result.getErrorCollection());\n }\n\n if(result.isKeyChanged())\n {\n if (!projectReindexService.isReindexPossible(getProjectObject()))\n {\n addError(\"key\", getText(\"admin.errors.project.key.other.reindex\"));\n }\n }\n\n // This validation seems to be redundant now - but leave it in case we add something special to ViewProject.doValidation()\n super.doValidation();\n }", "title": "" }, { "docid": "736c9dbebd302e3dfd3e20408151083f", "score": "0.46482843", "text": "private String validateForm(HttpServletRequest request) {\n StringBuilder errors = new StringBuilder();\n boolean isCheckDuplicate = request.getParameter(\"checkDuplicate\") != null;\n\n String urlString = request.getParameter(Constants.PARAM_URL);\n if (!isCheckDuplicate) {\n if (StringUtils.isEmpty(urlString))\n appendError(errors, \"Please enter a valid URL.\");\n\n // Test URL\n if (!urlString.startsWith(\"http://\"))\n urlString = \"http://\" + urlString;\n if (!IOUtils.isValidURL(urlString))\n appendError(errors, \"The URL you specified appears to be invalid.\");\n\n String title = request.getParameter(PARAM_TITLE);\n if (StringUtils.isEmpty(title))\n appendError(errors, \"Please enter a valid title.\");\n else if (title.length() < MIN_TITLE_LENGTH)\n appendError(errors, \"The title must be at least \" + MIN_TITLE_LENGTH + \" characters long.\");\n else if (title.length() > MAX_TITLE_LENGTH)\n appendError(errors, \"The title cannot be longer then \" + MAX_TITLE_LENGTH + \" characters.\");\n\n String description = request.getParameter(PARAM_DESCRIPTION);\n if (StringUtils.isEmpty(description))\n appendError(errors, \"Please enter a valid description.\");\n else if (description.length() < MIN_DESCRIPTION_LENGTH)\n appendError(errors, \"The description must be at least \" + MIN_DESCRIPTION_LENGTH + \" characters long.\");\n else if (description.length() > MAX_DESCRIPTION_LENGTH)\n appendError(errors, \"The description must cannot be more than \" + MAX_DESCRIPTION_LENGTH\n + \" characters long. Right now your description is \" + description.length()\n + \" characters long.\");\n }\n\n StoryBean duplicate = StoryFactory.findByURL(urlString);\n if (duplicate != null) {\n appendError(errors, \"This seems to be a duplicate of: <a href=\\\"story.jsp?id=\" + duplicate.getStoryId()\n + \"\\\">\" + duplicate.getTitle() + \"</a>\");\n } else if (isCheckDuplicate)\n appendError(errors, \"Congrats. It looks like you are the first person to submit this story.\");\n return errors.toString();\n }", "title": "" }, { "docid": "2a113d73e4d230d6b56af4ee1f10f7af", "score": "0.4645002", "text": "void processError(Object control, FieldError error);", "title": "" }, { "docid": "1911f94e5f875af5100e23a7ec26c10e", "score": "0.46240914", "text": "@RequestMapping(value = \"/edit\", method = RequestMethod.POST)\r\n public void submitEditForm( BindingResult bindingResult, RedirectAttributes attributes);", "title": "" }, { "docid": "21f99d37c2bdfb09485515d3e9e40505", "score": "0.46123877", "text": "private ModelAndView error(final Map<String, Object> vm, final Message message){\n vm.put(MESSAGE_ATTR, message);\n return new ModelAndView(vm, VIEW_NAME);\n }", "title": "" }, { "docid": "c0a9ada545ed5ad6ca04ba1a69d3dece", "score": "0.46094963", "text": "@RequestMapping(value=\"\", method = RequestMethod.POST)\n public String processRegisterForm(@Valid @ModelAttribute(\"userDto\") UserDto userDto, BindingResult result, Errors errors, Model model) {\n\n if (result.hasErrors()) {\n model.addAttribute(\"title\", \"Registration\");\n model.addAttribute(\"roles\", Role.values());\n log.error(\"An error has occurred while registration!\");\n return \"register\";\n }\n\n try{\n userService.getUserByUsername(userDto.getUsername());\n model.addAttribute(\"title\", \"Registration\");\n model.addAttribute(\"roles\", Role.values());\n errors.rejectValue(\"username\", \"username.exists\", \"A user with this username already exists!\");\n log.error(\"A user with this username already exists!\");\n return \"register\";\n\n } catch(NullPointerException e){\n ShoppingCart shoppingCart = new ShoppingCartBuilder()\n .setProducts(new ArrayList<>())\n .build();\n shoppingCartService.addShoppingCart(shoppingCart);\n \n List<Order> orders = new ArrayList<>();\n\n User newUser = new UserBuilder()\n .setId(userDto.getId())\n .setName(userDto.getName())\n .setEmailAddress(userDto.getEmailAddress())\n .setPhoneNumber(userDto.getPhoneNumber())\n .setUsername(userDto.getUsername())\n .setPassword(userDto.getPassword())\n .setRole(userDto.getRole())\n .setOrders(orders)\n .setShoppingCart(shoppingCart)\n .build();\n userService.addUser(newUser);\n shoppingCart.setUser(newUser);\n shoppingCartService.update(shoppingCart);\n\n log.info(\"A new user has successfully registered!\");\n return \"redirect:/login\";\n }\n }", "title": "" }, { "docid": "573f205f79303d027f7f1c1f48f2684f", "score": "0.45988265", "text": "@ResponseStatus(HttpStatus.BAD_REQUEST)\n @ExceptionHandler(MethodArgumentNotValidException.class)\n public ResponseEntity handleInvalidInput(MethodArgumentNotValidException e) {\n List<ErrorModel> errors = e.getBindingResult().getFieldErrors().stream()\n .map(err -> new ErrorModel(err.getField(), err.getRejectedValue(), err.getDefaultMessage()))\n .collect(Collectors.toList());\n\n return new ResponseEntity(errors, HttpStatus.BAD_REQUEST);\n }", "title": "" }, { "docid": "796fceec263ac4d085129738de233d51", "score": "0.4596712", "text": "@Override\r\n\tpublic Response validarItemUnico(IModel<?> imodel) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ac2308e5aa499dd7cd6abc471c7439ca", "score": "0.45904583", "text": "boolean hasResultForm();", "title": "" }, { "docid": "ac2308e5aa499dd7cd6abc471c7439ca", "score": "0.45904583", "text": "boolean hasResultForm();", "title": "" }, { "docid": "ac2308e5aa499dd7cd6abc471c7439ca", "score": "0.45904583", "text": "boolean hasResultForm();", "title": "" }, { "docid": "5cdc2377c628b0ee0b75b0c2cd5532cd", "score": "0.45792893", "text": "public ActionErrors validate(ActionMapping map,\n HttpServletRequest req){\n \tlog.info(\"ejecutando validate - IngresarNarrativaForm\");\n \tActionErrors errors;\n \terrors=null;\n \terrors = new ActionErrors();\n if(((texto == null) || (texto.length() < 1)) || \n \t\t((tipoNarrativa == null) || (tipoNarrativa.length() < 1)) ||\n \t\t((numeroExpediente == null) || (numeroExpediente.length() < 1)))\n errors.add(\"ingresarNarrativaError\", new ActionMessage(\"ingresarNarrativaError\"));\n return errors;\n }", "title": "" }, { "docid": "27a7aa401533c588061b2eb1c87f6d7d", "score": "0.45733944", "text": "private void resetForm() {\r\n moduleCode = \"\";\r\n lecturer = \"\";\r\n clearErrors();\r\n }", "title": "" }, { "docid": "43690883a779a7272a947e4b859f10d9", "score": "0.4544216", "text": "boolean validate(FieldModel inModel);", "title": "" }, { "docid": "d2ed8f0829fe91900c54eb653cc1eb91", "score": "0.45425463", "text": "@RequestMapping(value = \"/users/search\", method = RequestMethod.GET)\n public String processSearchUser(@Valid @ModelAttribute(SEARCH_FORM) UserSearchForm userSearchForm,\n BindingResult bindingResult, Model model,\n RedirectAttributes redirectAttributes) {\n\n //If something does not pass our @Valid(ations), then this means that our BindingResult\n //object \".hasErrors()\" so we will send the user again to the registration form to correct his mistakes\n if (bindingResult.hasErrors()) {\n //Also we will be adding userForm to RedirectAttributes so that we can keep his valid inputs and reshow them\n redirectAttributes.addFlashAttribute(\"org.springframework.validation.BindingResult.\" + SEARCH_FORM, bindingResult);\n //Send information to the user\n redirectAttributes.addFlashAttribute(SEARCH_FORM, userSearchForm);\n }\n UserSearchForm usus = userSearchForm;\n //Initialize a new list of Users to hold the results of the search\n List<User> usersList;\n //Getting the searchForm values and checking\n //If both are null\n if (userSearchForm.getAfm() == null && userSearchForm.getEmail() == null) {\n //Then we retrieve all the users\n usersList = userService.findAll();\n //If the AFM is not null\n } else if (userSearchForm.getAfm() != null) {\n //We search for Users based on AFM\n usersList = userService.findByAfm(userSearchForm.getAfm());\n //Else if AFM is null, means Email is not\n } else {\n //We search for Users based on Email\n usersList = userService.findByEmail(userSearchForm.getEmail());\n }\n //If the List is Empty\n if (usersList.isEmpty()) {\n //We send Information to the user\n redirectAttributes.addFlashAttribute(NOT_FOUND, \"No records were found!\");\n } else {\n //else we send the userList to our users.ftl\n redirectAttributes.addFlashAttribute(USER_LIST, usersList);\n }\n return \"redirect:/admin/users\";\n }", "title": "" }, { "docid": "048511f7c12f4932519368d594472fbb", "score": "0.4542388", "text": "@RequestMapping(value = \"/error\", method = RequestMethod.GET)\n public String errorPage(Model model) {\n \treturn \"error\";\n }", "title": "" }, { "docid": "23666be03527e6862c65599138b2c992", "score": "0.45406294", "text": "protected ModelAndView createEditModelAndView(ApplicationFinderForm applicationFinderForm){\n\t\tModelAndView res;\n\t\tres = createEditModelAndView(applicationFinderForm, null);\n\t\treturn res;\n\t}", "title": "" }, { "docid": "dadf5c0a7d6909d84828aa337e198452", "score": "0.45361933", "text": "@RequestMapping(value={\"/setReg\"},method={RequestMethod.GET,RequestMethod.POST})\npublic ModelAndView setRegistration( @Valid @ModelAttribute(\"userDetails\") UserDetails userDetails,BindingResult bindingResult){\nlogger.info(\"setRegistration :Entry\");\nif(bindingResult.hasErrors()){\nlogger.info(\"binding failure\");\t\nModelAndView modelAndView= new ModelAndView(\"registration\");\nreturn modelAndView;\n}\nelse{\nlogger.info(\"binding success\");\t\n//inserting here\nboolean insertUserRegDetails = services.insertUserRegDetails(userDetails);\nif(insertUserRegDetails){\nModelAndView modelAndView = new ModelAndView(\"login\");\n//display message in front end\nreturn modelAndView;\n}\n}\nlogger.info(\"setRegistration :Exit\");\nModelAndView modelAndView = new ModelAndView(\"registration\");\t\n//display message in front end\nreturn modelAndView;\n}", "title": "" }, { "docid": "082827b43a81aa3e1aeda5baacbeabbb", "score": "0.45360407", "text": "protected static Result validateModified(ProductGroup model){\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e1f52abf529d6c3902458e31dbe10518", "score": "0.45211634", "text": "private ActionForward performEdit_gastosMec(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response)\n/* 554: */ {\n/* 555:551 */ GastosVehiculosForm form = (GastosVehiculosForm)actionForm;\n/* 556: */ try\n/* 557: */ {\n/* 558:554 */ List gastos = (List)request.getSession().getAttribute(\"GASTOSVEHICULOSMECANICA\");\n/* 559:555 */ GastosVehiculosMecanica gastosVehiculosMecanica = (GastosVehiculosMecanica)gastos.get(Integer.parseInt(request.getParameter(\"num_gastosmecanica\")));\n/* 560:556 */ BeanUtils.copyProperties(form, gastosVehiculosMecanica);\n/* 561:557 */ form.setGasv_fechaini(ManejoFechas.FormateoFecha(form.getGasv_fechaini()));\n/* 562:558 */ form.setGasv_fechafin(ManejoFechas.FormateoFecha(form.getGasv_fechafin()));\n/* 563: */ }\n/* 564: */ catch (Exception e)\n/* 565: */ {\n/* 566:561 */ return mapping.findForward(\"failure\");\n/* 567: */ }\n/* 568:564 */ return mapping.findForward(\"success\");\n/* 569: */ }", "title": "" }, { "docid": "f036d817e928fd275d48770bc3aea4bb", "score": "0.45169348", "text": "private ActionForward performEdit_impuestos(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response)\n/* 829: */ {\n/* 830:822 */ ImpuestoVehiculoForm form = (ImpuestoVehiculoForm)actionForm;\n/* 831: */ try\n/* 832: */ {\n/* 833:825 */ List impuestos = (List)request.getSession().getAttribute(\"IMPUESTOS\");\n/* 834:826 */ ImpuestoVehiculo impuestoVehiculo = (ImpuestoVehiculo)impuestos.get(Integer.parseInt(request.getParameter(\"num_impuesto\")));\n/* 835:827 */ BeanUtils.copyProperties(form, impuestoVehiculo);\n/* 836:828 */ form.setImpv_fechapago(ManejoFechas.FormateoFecha(form.getImpv_fechapago()));\n/* 837:829 */ form.setImpv_vigenciahasta(ManejoFechas.FormateoFecha(form.getImpv_vigenciahasta()));\n/* 838: */ }\n/* 839: */ catch (Exception e)\n/* 840: */ {\n/* 841:832 */ return mapping.findForward(\"failure\");\n/* 842: */ }\n/* 843:835 */ return mapping.findForward(\"success\");\n/* 844: */ }", "title": "" }, { "docid": "25635fbb03581a2d1394ed9ae0fcd2dd", "score": "0.45137796", "text": "public void fixFormValues() {\n setDownTimeMessage(ConfigUtil.getTrimmedStringOrNull(getDownTimeMessage()));\r\n setGroupActionsPermitted(ConfigUtil.getTrimmedStringOrUseDefaultIfValueIsNullOrTrimmedValueIsEmpty(\"groupActionsPermitted\", getGroupActionsPermitted(), CustomPermissionConfigConstants.YES));\r\n setMaxGroupIDsLimit(\"\" + ConfigUtil.getIntOrUseDefaultIfNullOrTrimmedValueIsEmptyOrNotAnInteger(\"maxGroupIdsLimit\", getMaxGroupIDsLimit(), 20));\r\n setNewGroupNameCreationPrefixPattern(ConfigUtil.getTrimmedStringOrUseDefaultIfValueIsNullOrTrimmedValueIsEmpty(\"newGroupNameCreationPrefixPattern\", getNewGroupNameCreationPrefixPattern(), CustomPermissionConstants.DEFAULT_NEW_GROUP_NAME_PREFIX));\r\n setNewGroupNameCreationSuffixPattern(ConfigUtil.getTrimmedStringOrUseDefaultIfValueIsNullOrTrimmedValueIsEmpty(\"newGroupNameCreationSuffixPattern\", getNewGroupNameCreationSuffixPattern(), CustomPermissionConstants.DEFAULT_NEW_GROUP_NAME_SUFFIX));\r\n setMaxUserIDsLimit(\"\" + ConfigUtil.getIntOrUseDefaultIfNullOrTrimmedValueIsEmptyOrNotAnInteger(\"maxUserIdsLimit\", getMaxUserIDsLimit(), 20));\r\n setPersonalSpaceAllowed(ConfigUtil.getTrimmedStringOrUseDefaultIfValueIsNullOrTrimmedValueIsEmpty(\"personalSpaceAllowed\", getPersonalSpaceAllowed(), CustomPermissionConfigConstants.NO));\r\n setPluginDown(ConfigUtil.getTrimmedStringOrUseDefaultIfValueIsNullOrTrimmedValueIsEmpty(\"pluginDown\", getPluginDown(), CustomPermissionConfigConstants.NO));\r\n setUserSearchEnabled(ConfigUtil.getTrimmedStringOrUseDefaultIfValueIsNullOrTrimmedValueIsEmpty(\"userSearchEnabled\", getUserSearchEnabled(), CustomPermissionConfigConstants.YES));\r\n setGroupMembershipRefreshFixEnabled(ConfigUtil.getTrimmedStringOrUseDefaultIfValueIsNullOrTrimmedValueIsEmpty(\"groupMembershipRefreshFixEnabled\", getGroupMembershipRefreshFixEnabled(), CustomPermissionConfigConstants.NO));\r\n setNumRowsPerPage(\"\" + ConfigUtil.getIntOrUseDefaultIfNullOrTrimmedValueIsEmptyOrNotAnIntegerOrUseRangeMinOrMaxIfOutOfRange(\"numRowsPerPage\", getNumRowsPerPage(), PagerPaginationSupport.DEFAULT_COUNT_ON_EACH_PAGE, CustomPermissionConfigConstants.MIN_ROWS_PER_PAGE, CustomPermissionConfigConstants.MAX_ROWS_PER_PAGE));\r\n setUnvalidatedUserAdditionEnabled(ConfigUtil.getTrimmedStringOrUseDefaultIfValueIsNullOrTrimmedValueIsEmpty(\"unvalidatedUserAdditionEnabled\", getUnvalidatedUserAdditionEnabled(), CustomPermissionConfigConstants.NO));\r\n \r\n // only relevant for page itself, so not putting into context\r\n Map paramMap = ServletActionContext.getRequest().getParameterMap();\r\n log.debug(\"paramMap: \" + paramMap);\r\n if (paramMap.get(JIRA_SOAP_PASSWORD_SET_PARAMNAME) == null) {\r\n // make sure password is set to null if jiraSoapPasswordSet is not checked/set\r\n setJiraSoapPassword(null);\r\n }\r\n }", "title": "" }, { "docid": "c5906a959a19826e5e7ca5013019db30", "score": "0.4507068", "text": "public String getConfirmRemoveField( HttpServletRequest request )\n {\n if ( ( request.getParameter( PARAMETER_ID_FIELD ) == null )\n || !RBACService.isAuthorized( Form.RESOURCE_TYPE, EMPTY_STRING + getFormId( ), FormResourceIdService.PERMISSION_MODIFY, getUser( ) ) )\n {\n return getHomeUrl( request );\n }\n\n String strIdField = request.getParameter( PARAMETER_ID_FIELD );\n UrlItem url = new UrlItem( JSP_DO_REMOVE_FIELD );\n url.addParameter( PARAMETER_ID_FIELD, strIdField + \"#list\" );\n\n return AdminMessageService.getMessageUrl( request, MESSAGE_CONFIRM_REMOVE_FIELD, url.getUrl( ), AdminMessage.TYPE_CONFIRMATION );\n }", "title": "" }, { "docid": "03e500b7fbefeacc44991fb83c79457d", "score": "0.45039988", "text": "@Override\n public void clearProblem () {\n controller.setValid( true );\n }", "title": "" }, { "docid": "2b37306ce8a12fa951231f17e22fa430", "score": "0.45015758", "text": "@RequestMapping(value = \"/signup-step2\", method = RequestMethod.POST)\n\tpublic ModelAndView step2(HttpServletRequest request, Model model, @ModelAttribute(\"Person\") Person person) {\n\n\t\trequest.getSession().setAttribute(\"error\", \"\");\n\n\t\tPerson currentPerson = (Person) request.getSession().getAttribute(\"currentPerson\");\n\n\t\tif (currentPerson == null) {\n\t\t\treturn new ModelAndView(\"redirect:/signup-step1\");\n\t\t}\n\n\t\tif (person.getAnswer1() == null || person.getAnswer1().isEmpty() || person.getAnswer2() == null\n\t\t\t\t|| person.getAnswer2().isEmpty() || person.getAnswer3() == null || person.getAnswer3().isEmpty()) {\n\t\t\trequest.getSession().setAttribute(\"error\", \"All fields are required\");\n\t\t\treturn new ModelAndView(\"redirect:/signup-step2\");\n\t\t}\n\n\t\t// Check for username\n\t\tMap<String, Person> persons = (Map<String, Person>) request.getSession().getAttribute(\"persons\");\n\n\t\tPerson oldPerson = persons.get(currentPerson.getUserName());\n\n\t\tif (oldPerson != null) {\n\t\t\toldPerson.setAnswer1(person.getAnswer1());\n\t\t\toldPerson.setAnswer2(person.getAnswer2());\n\t\t\toldPerson.setAnswer3(person.getAnswer3());\n\t\t\toldPerson.setQuestion1(person.getQuestion1());\n\t\t\toldPerson.setQuestion2(person.getQuestion2());\n\t\t\toldPerson.setQuestion3(person.getQuestion3());\n\n\t\t\trequest.getSession().setAttribute(\"persons\", persons);\n\t\t\trequest.getSession().setAttribute(\"currentPerson\", null);\n\n\t\t\treturn new ModelAndView(\"redirect:/\");\n\t\t}\n\n\t\trequest.getSession().setAttribute(\"error\", \"Unable to save person\");\n\n\t\treturn new ModelAndView(\"redirect:/signup-step2\");\n\t}", "title": "" }, { "docid": "f5a1575bbc3d068e1180a635eeb21def", "score": "0.4492336", "text": "@ExceptionHandler(BindException.class)\n//\t@ResponseBody\n\tpublic String haha(HttpServletRequest req, BindException ex, HttpSession session,\n\t\t\tModel model/* , ContentReq ContentReq */) {\n\t\tString pathURI = req.getRequestURI().substring(req.getContextPath().length());\n\t\tSystem.out.println(\"Action: \"+pathURI);\n//\t\tSystem.out.println(\"Get Du lieu Demo Tu Session: \"+session.getAttribute(\"duc\"));\n\t\tString strEr = ex.getAllErrors().stream().map(er -> er.getDefaultMessage()).collect(Collectors.joining(\", \",\"{\",\"}\"));\n\t\tSystem.out.println(strEr);\n//\t\tString urlRedirect = (String) session.getAttribute(\"preUrl\");\n\t\tMap<String, String> errors = new HashMap<String, String>();\n\t\tex.getBindingResult().getAllErrors().forEach(error ->{\n\t\t\tString fieldName = ((FieldError) error).getField();\n\t\t\tString errorMessage = error.getDefaultMessage();\n\t\t\terrors.put(fieldName, errorMessage);\n\t\t});\n//\t\terrors.put(\"url\", urlRedirect);\t\n\t\tmodel.addAllAttributes(errors);\n//\t\tmodel.addAttribute(\"errors\", errors);\n//\t\treturn \"da vao day ne Exception : \" + ex.getStackTrace();\n//\t\treturn errors.keySet().stream().map(key -> key + \"=\" + errors.get(key))\n//\t\t\t\t.collect(Collectors.joining(\", \", \"{\", \"}\"));\n//\t\treturn \"redirect:\"+pathURI;\n\t\treturn \"add-content\";\n//\t\treturn \"forward:\"+urlRedirect;\n//\t\treturn errors;\n\t}", "title": "" }, { "docid": "3b35cdd03879bbcc03020fac112452b8", "score": "0.4490372", "text": "public Builder clearResultForm() {\n bitField0_ = (bitField0_ & ~0x00200000);\n resultForm_ = getDefaultInstance().getResultForm();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "21888b4c6b6623ca10f7a76bdeaf27ea", "score": "0.4486224", "text": "public Builder clearResultForm() {\n bitField0_ = (bitField0_ & ~0x00004000);\n resultForm_ = getDefaultInstance().getResultForm();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "038be47581bfd32e6e85ceabc538e5e7", "score": "0.4484774", "text": "public String validateData() {\n\t\t\t// validate the model data before update to database\n\t\t\tString errorMsg = \"\";\n\t\t\tif (this.firstName.isEmpty()) {\n\t\t\t\terrorMsg += \"you must input a first name.\\n\";\n\t\t\t}\n\t\t\tif (this.lastName.isEmpty()) {\n\t\t\t\terrorMsg += \"you must input a last name.\\n\";\n\t\t\t}\n\t\t\tif (this.email.isEmpty()) {\n\t\t\t\terrorMsg += \"you must input an email.\\n\";\n\t\t\t}\n\t\t\tif (this.telephone.isEmpty()) {\n\t\t\t\terrorMsg += \"you must input an telephone number.\\n\";\n\t\t\t}\n\t\t\treturn errorMsg;\n\t\t}", "title": "" }, { "docid": "e30f6261667b8e62c8303cf1ea9b7ecb", "score": "0.4483127", "text": "public ActionErrors validate( \n ActionMapping mapping, HttpServletRequest request ) {\n ActionErrors errors = new ActionErrors(); \n try {\n if(password.equals(password2)){\n String result = newguest.InsertNewMemberRequest(username, password, firstName, lastName, email,\"member\");\n if(result.compareTo(\"success\")!=0){ \n errors.add(\"username\",new ActionMessage(\"error.\"+result));\n }\n }else errors.add(\"PassCompare\",new ActionMessage(\"error.PassCompare\"));\n HttpSession session = request.getSession(true); \n session.setAttribute(\"form\", \"MemberingForm\");\n\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(MemberingForm.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n Logger.getLogger(MemberingForm.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n Logger.getLogger(MemberingForm.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(LoginForm.class.getName()).log(Level.SEVERE, null, ex);\n }\n return errors;\n }", "title": "" }, { "docid": "6f92ab7dccb2e07fc813c6473e905367", "score": "0.44820166", "text": "public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)\n\t{\n\t\tActionErrors errors = new ActionErrors();\n\t\t\n\t\t// Validate that they have selected a study and a query type\n\t\tif ((getStudyId() == null) )\n\t\t\t\terrors.add(\"studyId\", new ActionMessage(\"error.study.required\"));\n\t\t\n\t\tif ((getQuery() == null) || (getQuery().length() < 1))\n\t\t\t\terrors.add(\"query\", new ActionMessage(\"error.query.required\"));\n\t\t\n\t\treturn errors;\n\t}", "title": "" }, { "docid": "2586c2e7af6e1f3a488654efb16f5bdf", "score": "0.4481175", "text": "private void validateEditAndDelete()\r\n {\r\n editAndDeleteErrorJComponentContainer = null;\r\n editAndDeleteErrorDialogStringBuilder.setLength(0); \r\n \r\n if(ownerInstancesFoundInSearch == 0 && vehicleInstancesFoundInSearch == 0) \r\n {\r\n editAndDeleteErrorToJComponentContainer(searchCategoryJComboBox);\r\n addEditAndDeleteErrorDialogToStringBuilder(\"To edit or delete a record, a record must be selected.\\n\"\r\n + \"To do this, use the start search button.\");\r\n }\r\n \r\n if(ownerInstancesFoundInSearch > 1 || vehicleInstancesFoundInSearch > 1) \r\n {\r\n editAndDeleteErrorToJComponentContainer(searchCategoryJComboBox);\r\n addEditAndDeleteErrorDialogToStringBuilder(\"More than record has ben selected in the search.\\n\\n\"\r\n + \"To use this button, Please refine your search to one record.\");\r\n }\r\n\r\n }", "title": "" }, { "docid": "30710084d8c872062b7b37469edb6c66", "score": "0.44809642", "text": "@GetMapping(\"/getContactForm\")\n\tpublic String removeduplicate(Model theModel)\n\t{\n\t\t\t\n\t\tContact contact=new Contact();\n\t\t\n\t\ttheModel.addAttribute(\"contact\", contact);\n\t\t\n\t\treturn\"contact\";\n\t}", "title": "" }, { "docid": "ab2b12b552f493608c6a2e23b5df55fd", "score": "0.44762287", "text": "@RequestMapping(value = \"/delgreeting/{index}\", method = RequestMethod.POST)\n\tpublic String delGreeting(@ModelAttribute Greeting greeting, BindingResult errors, Model model, @PathVariable int index) {\n\t\tSystem.out.println(\"name :: \" + greeting.getName());\n\t\tSystem.out.println(\"Size before: \" + greetings.size());\n//\t\tgreetings.remove(greeting);\n\t\tgreetings.remove(index-1);\n\t\tSystem.out.println(\"Size after: \" + greetings.size());\n\t\t\n\t\tSystem.out.println(\"greeting deletion\");\n//\t\treturn \"bill\";\n\t\treturn \"redirect:/test/greeting\";\n\t}", "title": "" }, { "docid": "2c4d727839bf935f69945a65a6215e82", "score": "0.4475209", "text": "protected void onModelError() {\n\n }", "title": "" }, { "docid": "cd80ea95d40970235a09fba09dc94819", "score": "0.44708037", "text": "private ActionForward performView(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response)\r\n/* 59: */ {\r\n/* 60: 59 */ ExamenesLaboratorioForm form = (ExamenesLaboratorioForm)actionForm;\r\n/* 61: */ try\r\n/* 62: */ {\r\n/* 63: 66 */ List examenes = new ArrayList();\r\n/* 64: */ \r\n/* 65: 68 */ UsuarioFamily usuarioFamily = (UsuarioFamily)request.getSession().getAttribute(\"usuarioFamily\");\r\n/* 66: */ \r\n/* 67: 70 */ ExamenesLaboratorioDAO examenesLaboratorioDAO = new ExamenesLaboratorioDAO();\r\n/* 68: 71 */ Servidores servidor = (Servidores)request.getSession().getAttribute(\"servidor\");\r\n/* 69: 72 */ if ((servidor != null) && (servidor.getServ_cod() != null)) {\r\n/* 70: 73 */ examenesLaboratorioDAO.setServerNumber(servidor.getServ_cod().intValue());\r\n/* 71: */ }\r\n/* 72: 75 */ examenes = examenesLaboratorioDAO.list(usuarioFamily.getUsuf_cod());\r\n/* 73: */ \r\n/* 74: 77 */ int x = 0;\r\n/* 75: 79 */ if (examenes.size() == 0) {\r\n/* 76: 81 */ examenes = examenesLaboratorioDAO.list(new BigDecimal(1.0D));\r\n/* 77: */ }\r\n/* 78: 84 */ ResultadoExamenDAO resultadoExamenDAO = new ResultadoExamenDAO();\r\n/* 79: 85 */ if ((servidor != null) && (servidor.getServ_cod() != null)) {\r\n/* 80: 86 */ resultadoExamenDAO.setServerNumber(servidor.getServ_cod().intValue());\r\n/* 81: */ }\r\n/* 82: 89 */ while (x < examenes.size())\r\n/* 83: */ {\r\n/* 84: 91 */ ExamenesLaboratorio examenesLaboratorio = new ExamenesLaboratorio();\r\n/* 85: 92 */ examenesLaboratorio = (ExamenesLaboratorio)examenes.get(x);\r\n/* 86: 93 */ examenesLaboratorio.setElab_usuf_cod(usuarioFamily.getUsuf_cod());\r\n/* 87: 94 */ examenes.set(x, examenesLaboratorio);\r\n/* 88: 95 */ ResultadoExamen resultadoExamen = new ResultadoExamen();\r\n/* 89: 96 */ resultadoExamen = resultadoExamenDAO.retriveClasificacion(examenesLaboratorio.getElab_cod(), examenesLaboratorio.getElab_resultado1());\r\n/* 90: 97 */ request.setAttribute(\"clasificacion1\" + x, resultadoExamen.getRexa_des());\r\n/* 91: 98 */ request.setAttribute(\"desde1\" + x, resultadoExamen.getRexa_desde());\r\n/* 92: 99 */ request.setAttribute(\"hasta1\" + x, resultadoExamen.getRexa_hasta());\r\n/* 93: */ \r\n/* 94:101 */ resultadoExamen = resultadoExamenDAO.retriveClasificacion(examenesLaboratorio.getElab_cod(), examenesLaboratorio.getElab_resultado2());\r\n/* 95:102 */ request.setAttribute(\"clasificacion2\" + x, resultadoExamen.getRexa_des());\r\n/* 96:103 */ request.setAttribute(\"desde2\" + x, resultadoExamen.getRexa_desde());\r\n/* 97:104 */ request.setAttribute(\"hasta2\" + x, resultadoExamen.getRexa_hasta());\r\n/* 98: */ \r\n/* 99:106 */ resultadoExamen = resultadoExamenDAO.retriveClasificacion(examenesLaboratorio.getElab_cod(), examenesLaboratorio.getElab_resultado3());\r\n/* 100:107 */ request.setAttribute(\"clasificacion3\" + x, resultadoExamen.getRexa_des());\r\n/* 101:108 */ request.setAttribute(\"desde3\" + x, resultadoExamen.getRexa_desde());\r\n/* 102:109 */ request.setAttribute(\"hasta3\" + x, resultadoExamen.getRexa_hasta());\r\n/* 103:110 */ x++;\r\n/* 104: */ }\r\n/* 105:113 */ request.getSession().setAttribute(\"EXAMENESLABORATORIO\", examenes);\r\n/* 106: */ }\r\n/* 107: */ catch (Exception e)\r\n/* 108: */ {\r\n/* 109:117 */ return mapping.findForward(\"failure\");\r\n/* 110: */ }\r\n/* 111:119 */ return mapping.findForward(\"success\");\r\n/* 112: */ }", "title": "" }, { "docid": "cdd86dd62f05574020dc2a324828c494", "score": "0.44700828", "text": "protected ValidationErrors getValidationErrors() {\n return _validationErrors;\n }", "title": "" }, { "docid": "9e5252f04cf2e9e2cca12ac20bfa4905", "score": "0.44682667", "text": "private void refreshErrorMessage() {\n TextView tvError = (TextView) findViewById(R.id.error);\n tvError.setText(error);\n\n if (error == null || error.length() == 0) {\n tvError.setVisibility(View.GONE);\n } else {\n tvError.setVisibility(View.VISIBLE);\n }\n\n }", "title": "" }, { "docid": "9ca1b588aaa569f5976764b8656ecec1", "score": "0.4466773", "text": "private String validateForm() {\n StringBuilder infoBuilder = new StringBuilder(\"\");\n\n if(mProfilePic.getDrawable() == null)\n {\n infoBuilder.append(\"Profile Image, \");\n }\n\n String firstName = mFirstName.getText().toString();\n if (TextUtils.isEmpty(firstName)) {\n /*mFirstName.setError(\"Required.\");\n valid = false;*/\n infoBuilder.append(\"First name, \");\n } /*else {\n mFirstName.setError(null);\n }*/\n\n String lastName = mLastName.getText().toString();\n if (TextUtils.isEmpty(lastName)) {\n /*mLastName.setError(\"Required.\");\n valid = false;*/\n infoBuilder.append(\"Last name, \");\n } /*else {\n mLastName.setError(null);\n }*/\n\n String email = mEmailAddress.getText().toString();\n if (TextUtils.isEmpty(email)) {\n /*mEmailAddress.setError(\"Required.\");\n valid = false;*/\n infoBuilder.append(\"Email, \");\n } /*else {\n mEmailAddress.setError(null);\n }*/\n\n String password = mPassword.getText().toString();\n if (TextUtils.isEmpty(password)) {\n /*mPassword.setError(\"Required.\");\n valid = false;*/\n infoBuilder.append(\"Password, \");\n }\n else if(password.length()<=6)\n {\n /*mPassword.setError(\"Password is Too Small (<=6 Char)\");\n valid = false;*/\n infoBuilder.append(\"Weak Password, \");\n }\n /*else {\n mPassword.setError(null);\n }*/\n\n String mobileNumber = mMobileNumber.getText().toString();\n if (TextUtils.isEmpty(mobileNumber)) {\n /*mMobileNumber.setError(\"Required.\");\n valid = false;*/\n infoBuilder.append(\"Mobile Number, \");\n }\n else if(mobileNumber.length()!=10)\n {\n /*mMobileNumber.setError(\"Wrong Mobile Number.\");*/\n infoBuilder.append(\"Wrong Mobile Number, \");\n }\n /*else {\n mMobileNumber.setError(null);\n }*/\n\n if(Gender==\"\")\n {\n /*valid = false;\n Toast.makeText(this,\"Select the Gender\",Toast.LENGTH_LONG).show();*/\n infoBuilder.append(\"Gender, \");\n }\n\n if(infoBuilder.toString() == \"\")\n {\n return null;\n }\n else\n {\n infoBuilder.delete(infoBuilder.length()-2,infoBuilder.length()-1);\n return infoBuilder.toString();\n }\n }", "title": "" }, { "docid": "e74b14d7a02769f5394824cd6eb97997", "score": "0.4463861", "text": "public Builder clearResultForm() {\n bitField1_ = (bitField1_ & ~0x00000020);\n resultForm_ = getDefaultInstance().getResultForm();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "130f9413b64c4864bcd64c362e5bd132", "score": "0.44543347", "text": "java.lang.String getErrorMessage();", "title": "" }, { "docid": "130f9413b64c4864bcd64c362e5bd132", "score": "0.44543347", "text": "java.lang.String getErrorMessage();", "title": "" }, { "docid": "130f9413b64c4864bcd64c362e5bd132", "score": "0.44543347", "text": "java.lang.String getErrorMessage();", "title": "" }, { "docid": "139bb976575b168b27d942b5daee006e", "score": "0.44541934", "text": "private ActionForward performRemove_impuestos(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response)\n/* 847: */ {\n/* 848:839 */ ImpuestoVehiculoForm form = (ImpuestoVehiculoForm)actionForm;\n/* 849: */ try\n/* 850: */ {\n/* 851:843 */ List impuestos = (List)request.getSession().getAttribute(\"IMPUESTOS\");\n/* 852:844 */ impuestos.remove(Integer.parseInt(request.getParameter(\"num_impuesto\")));\n/* 853: */ \n/* 854:846 */ int x = 0;\n/* 855:847 */ while (x < impuestos.size())\n/* 856: */ {\n/* 857:848 */ ImpuestoVehiculo impuestoVehiculo = (ImpuestoVehiculo)impuestos.get(x);\n/* 858:849 */ impuestoVehiculo.setImpv_cod(new BigDecimal(x + 1));\n/* 859:850 */ impuestos.set(x, impuestoVehiculo);\n/* 860:851 */ x++;\n/* 861: */ }\n/* 862:854 */ request.getSession().setAttribute(\"IMPUESTOS\", impuestos);\n/* 863: */ }\n/* 864: */ catch (Exception e)\n/* 865: */ {\n/* 866:856 */ return mapping.findForward(\"failure\");\n/* 867: */ }\n/* 868:859 */ return mapping.findForward(\"success\");\n/* 869: */ }", "title": "" }, { "docid": "67d6312e1698b8fa6b81d795831d42c0", "score": "0.44529542", "text": "@RequestMapping(value = \"/update\" ) // GET or POST\n\tpublic String update(@Valid User user, BindingResult bindingResult, Model model, RedirectAttributes redirectAttributes, HttpServletRequest httpServletRequest) {\n\t\tlog(\"Action 'update'\");\n\t\ttry {\n\t\t\tif (!bindingResult.hasErrors()) {\n\t\t\t\t//--- Perform database operations\n\t\t\t\tUser userSaved = userService.update(user);\n\t\t\t\tmodel.addAttribute(MAIN_ENTITY_NAME, userSaved);\n\t\t\t\t//--- Set the result message\n\t\t\t\tmessageHelper.addMessage(redirectAttributes, new Message(MessageType.SUCCESS,\"save.ok\"));\n\t\t\t\tlog(\"Action 'update' : update done - redirect\");\n\t\t\t\treturn redirectToForm(httpServletRequest, user.getUserId());\n\t\t\t} else {\n\t\t\t\tlog(\"Action 'update' : binding errors\");\n\t\t\t\tpopulateModel( model, user, FormMode.UPDATE);\n\t\t\t\treturn JSP_FORM;\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\tmessageHelper.addException(model, \"user.error.update\", e);\n\t\t\tlog(\"Action 'update' : Exception - \" + e.getMessage() );\n\t\t\tpopulateModel( model, user, FormMode.UPDATE);\n\t\t\treturn JSP_FORM;\n\t\t}\n\t}", "title": "" }, { "docid": "27452a2cd638d8c1fc611d998ecb8d97", "score": "0.44368875", "text": "public void addAddressValidationFormError(List pMissingProperties,\n DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) {\n\n if (pMissingProperties != null && pMissingProperties.size() > 0) {\n\n Map addressPropertyNameMap = getBillingHelper().getAddressPropertyNameMap();\n\n Iterator properator = pMissingProperties.iterator();\n while (properator.hasNext()) {\n\n String property = (String) properator.next();\n if (isLoggingDebug()) {\n logDebug(\"Address validation error with: \" + addressPropertyNameMap.get(property) + \" property.\");\n }\n\n // This is the default message, and will only display if there is\n // an exception getting the message from the resource bundle.\n String errorMsg = \"Required properties are missing from the address.\";\n try {\n\n errorMsg = formatUserMessage(StoreBillingProcessHelper.MSG_MISSING_REQUIRED_ADDRESS_PROPERTY,\n addressPropertyNameMap.get(property), pRequest, pResponse);\n } catch (Exception e) {\n\n if (isLoggingError()) {\n logError(LogUtils.formatMinor(\"Error getting error string with key: \" + StoreBillingProcessHelper.MSG_MISSING_REQUIRED_ADDRESS_PROPERTY +\n \" from resource \" + PurchaseUserMessage.RESOURCE_BUNDLE + \": \" + e.toString()));\n }\n }\n\n addFormException(new DropletFormException(errorMsg,\n (String) addressPropertyNameMap.get(property), StoreBillingProcessHelper.MSG_MISSING_REQUIRED_ADDRESS_PROPERTY));\n }\n }\n }", "title": "" }, { "docid": "2d2fac3eb14648b4f66f786e5da8b01f", "score": "0.44359714", "text": "@SuppressWarnings(\"unchecked\")\r\n \r\n private void validation(){\r\n ArrayList components = new ArrayList<>();\r\n components.add(idCliente);\r\n components.add(codigoVenta);\r\n controller = new ControllerViewPedidos(components);\r\n controller.validations();\r\n }", "title": "" }, { "docid": "06ade5bc4ba2f4366d481afcd84de0a0", "score": "0.44257155", "text": "private ActionForward performRemove_seguro(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response)\n/* 240: */ {\n/* 241:235 */ SegurosVehiculosForm form = (SegurosVehiculosForm)actionForm;\n/* 242: */ try\n/* 243: */ {\n/* 244:239 */ List seguros = (List)request.getSession().getAttribute(\"SEGUROSVEHICULOS\");\n/* 245:240 */ seguros.remove(Integer.parseInt(request.getParameter(\"num_seguro\")));\n/* 246: */ \n/* 247:242 */ int x = 0;\n/* 248:243 */ while (x < seguros.size())\n/* 249: */ {\n/* 250:244 */ SegurosVehiculos segurosVehiculos = (SegurosVehiculos)seguros.get(x);\n/* 251:245 */ segurosVehiculos.setSveh_cod(new BigDecimal(x + 1));\n/* 252:246 */ seguros.set(x, segurosVehiculos);\n/* 253:247 */ x++;\n/* 254: */ }\n/* 255:250 */ request.getSession().setAttribute(\"SEGUROSVEHICULOS\", seguros);\n/* 256: */ }\n/* 257: */ catch (Exception e)\n/* 258: */ {\n/* 259:253 */ return mapping.findForward(\"failure\");\n/* 260: */ }\n/* 261:256 */ return mapping.findForward(\"success\");\n/* 262: */ }", "title": "" }, { "docid": "6f2714842b58d5f9454febd21b9f2b45", "score": "0.4422445", "text": "private ActionForward performRemove_gastos(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response)\n/* 658: */ {\n/* 659:653 */ GastosVehiculosForm form = (GastosVehiculosForm)actionForm;\n/* 660: */ try\n/* 661: */ {\n/* 662:657 */ List gastos = new ArrayList();\n/* 663:658 */ gastos = (List)request.getSession().getAttribute(\"GASTOSVEHICULOSNOANUALES\");\n/* 664:659 */ gastos.remove(Integer.parseInt(request.getParameter(\"num_gastos\")));\n/* 665: */ \n/* 666:661 */ int x = 0;\n/* 667:662 */ while (x < gastos.size())\n/* 668: */ {\n/* 669:663 */ GastosVehiculosNoAnuales gastosVehiculosNoAnuales = (GastosVehiculosNoAnuales)gastos.get(x);\n/* 670:664 */ gastosVehiculosNoAnuales.setGasv_cod(new BigDecimal(x + 1));\n/* 671:665 */ gastos.set(x, gastosVehiculosNoAnuales);\n/* 672:666 */ x++;\n/* 673: */ }\n/* 674:669 */ request.getSession().setAttribute(\"GASTOSVEHICULOSNOANUALES\", gastos);\n/* 675: */ }\n/* 676: */ catch (Exception e)\n/* 677: */ {\n/* 678:671 */ return mapping.findForward(\"failure\");\n/* 679: */ }\n/* 680:674 */ return mapping.findForward(\"success\");\n/* 681: */ }", "title": "" }, { "docid": "9cddefd0c40ffc97b3bafbe8bd4053a0", "score": "0.4419202", "text": "private void whenUserFillsOutAllFieldsOfForm() {\n\t\t\n\t}", "title": "" }, { "docid": "ce3995bcb2b69dce9c61658bc7b9e53d", "score": "0.44135296", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n List<String> errors = new ArrayList<>();\n User user = this.userBean.getCurrentUser();\n String fname = request.getParameter(\"firstname\");\n String lname = request.getParameter(\"lastname\");\n String title = request.getParameter(\"title\");\n if(fname == null){\n errors.add(\"Vorname darf nicht leer sein\");\n }\n if(lname == null){\n errors.add(\"Nachname darf nicht leer sein\");\n }\n if(errors.isEmpty()){\n user.setLastname(lname);\n user.setFirstname(fname);\n user.setTitle(title);\n this.userBean.update(user);\n response.sendRedirect(WebUtils.appUrl(request, \"/app/dashboard/\"));\n }\n else {\n FormValues formValues = new FormValues();\n formValues.setValues(request.getParameterMap());\n formValues.setErrors(errors);\n\n HttpSession session = request.getSession();\n session.setAttribute(\"beverage_form\", formValues);\n\n response.sendRedirect(request.getRequestURI());\n }\n }", "title": "" }, { "docid": "eea53d53e8acb40c5cdb558a5e630a32", "score": "0.44128323", "text": "private ActionForward performRemove_gastosMec(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response)\n/* 572: */ {\n/* 573:568 */ GastosVehiculosForm form = (GastosVehiculosForm)actionForm;\n/* 574: */ try\n/* 575: */ {\n/* 576:572 */ List gastos = (List)request.getSession().getAttribute(\"GASTOSVEHICULOSMECANICA\");\n/* 577:573 */ gastos.remove(Integer.parseInt(request.getParameter(\"num_gastosmecanica\")));\n/* 578: */ \n/* 579:575 */ int x = 0;\n/* 580:576 */ while (x < gastos.size())\n/* 581: */ {\n/* 582:577 */ GastosVehiculosMecanica gastosVehiculosMecanica = (GastosVehiculosMecanica)gastos.get(x);\n/* 583:578 */ gastosVehiculosMecanica.setGasv_cod(new BigDecimal(x + 1));\n/* 584:579 */ gastos.set(x, gastosVehiculosMecanica);\n/* 585:580 */ x++;\n/* 586: */ }\n/* 587:583 */ request.getSession().setAttribute(\"GASTOSVEHICULOSMECANICA\", gastos);\n/* 588: */ }\n/* 589: */ catch (Exception e)\n/* 590: */ {\n/* 591:585 */ return mapping.findForward(\"failure\");\n/* 592: */ }\n/* 593:588 */ return mapping.findForward(\"success\");\n/* 594: */ }", "title": "" }, { "docid": "b5ad1f1219e07a626e54536784731edd", "score": "0.44108564", "text": "@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n public String createNewRSO(Model model, @Valid RsoForm rsoForm, BindingResult bindingResult){\n if(bindingResult.hasErrors()){\n model.addAttribute(\"types\", rsoTypeRepo.findAll());\n model.addAttribute(\"universities\", universityRepo.findAll());\n\n System.out.println(bindingResult.getAllErrors().toString());\n\n // TODO: send the user back to the rso creation page\n return \"newlayout/createRso\";\n }\n\n // TODO: 11/13/15 check to make sure none of the emails are repeated\n\n RSO rso = rsoForm.createRSO();\n if(rso == null){\n System.out.println(\"rso is null\");\n // either add error to binding result or as a message to be displayed?\n model.addAttribute(\"errorMessage\", \"Something went wrong, we could not create the RSO, you may try again\");\n\n // Send user back to /new\n return \"newlayout/createRso\";\n }\n\n rsoRepo.save(rso);\n\n\n // TODO: redirect to the new rso page.\n return String.format(\"redirect:/rso/%d\", rso.getId_rso());\n }", "title": "" }, { "docid": "43031bb697718255dc8036bca371a69d", "score": "0.44071314", "text": "public boolean hasErrors(HttpServletRequest request) {\r\n\t\treturn !getErrors(request).isEmpty();\r\n\t}", "title": "" }, { "docid": "a48989a666e06025bced1d2cc68b155f", "score": "0.44063875", "text": "@RequestMapping(method = RequestMethod.GET, value=\"/found/\")\r\n public String viewUploadForm(Model model) throws IOException {\r\n\r\n\r\n\r\n //return \"uploadForm\";\r\n \treturn \"FoundForm\";\r\n }", "title": "" }, { "docid": "f9f13658803d3247810942ce55a420b5", "score": "0.4404312", "text": "private void failUpdate() {\n onView(withId(R.id.etName)).perform(clearText());\n onView(withId(R.id.btnSave)).perform(click());\n onView(withId(R.id.etName)).perform(click(), ActivityUtils.closeSoftKeyboard());\n onView(withId(R.id.etName))\n .check(matches(ActivityUtils.hasErrorText(mActivity.getString(R.string.strNameEmpty))));\n resetToOriginal();\n //endregion\n\n //region case 2 : Contact not fill\n onView(withId(R.id.etUserContact)).perform(clearText());\n onView(withId(R.id.btnSave)).perform(click());\n onView(withId(R.id.etUserContact)).perform(click(), ActivityUtils.closeSoftKeyboard());\n onView(withId(R.id.etUserContact))\n .check(matches(ActivityUtils.hasErrorText(mActivity.getString(R.string.strUserContactEmpty))));\n resetToOriginal();\n //endregion\n\n //region case 3 : Email not fill\n onView(withId(R.id.etUserEmail)).perform(clearText());\n onView(withId(R.id.btnSave)).perform(click());\n onView(withId(R.id.etUserEmail)).perform(click(), ActivityUtils.closeSoftKeyboard());\n onView(withId(R.id.etUserEmail))\n .check(matches(ActivityUtils.hasErrorText(mActivity.getString(R.string.strUserEmailEmpty))));\n resetToOriginal();\n //endregion\n\n //region case 3 : Email invalid\n mRandomEmail = ValueGenerator.getRandomString((short) 10);\n onView(withId(R.id.etUserEmail)).perform(clearText());\n onView(withId(R.id.etUserEmail)).perform(typeText(mRandomEmail));\n onView(withId(R.id.btnSave)).perform(click());\n onView(withId(R.id.etUserEmail)).perform(click(), ActivityUtils.closeSoftKeyboard());\n onView(withId(R.id.etUserEmail))\n .check(matches(ActivityUtils.hasErrorText(mActivity.getString(R.string.strUserEmailInvalid))));\n resetToOriginal();\n //endregion\n }", "title": "" }, { "docid": "edf4a2d6b199611eaeb4bc01ba729e34", "score": "0.43931127", "text": "@FXML\n private boolean validateValues() {\n // Initiating value\n helperText.setText(\"\");\n\n // Validate name\n if (!Validation.isValidName(inputName.getText())) {\n setErrorMessage(\"Name cannot be empty and can only contain characters!\");\n return false;\n }\n\n // Validate phone\n if (!Validation.isValidPhone(inputPhone.getText())) {\n setErrorMessage(\"Phone number must be eight digits!\");\n return false;\n }\n\n // Validate building selection\n if (dropdownBuilding.getSelectionModel().isEmpty()) {\n setErrorMessage(\"A building must be chosen!\");\n return false;\n }\n\n // Validate room selection\n if (dropdownRoom.getSelectionModel().isEmpty()) {\n setErrorMessage(\"A room must be chosen!\");\n return false;\n }\n\n // Validate time\n if (!Validation.isTimeString(inputHour1.getText(), inputMin1.getText())\n || !Validation.isTimeString(inputHour2.getText(), inputMin2.getText())) {\n setErrorMessage(\"Invalid time input! Must be on format hh:mm\");\n return false;\n }\n\n // Format from text to LocalTime, and check if LocalTime is valid\n if (!Validation.fromIsBeforeTo(\n Validation.formatToLocalTime(inputHour1.getText(), inputMin1.getText()),\n Validation.formatToLocalTime(inputHour2.getText(), inputMin2.getText())\n )\n ) {\n setErrorMessage(\"Start of visit must be before end of visit!\");\n return false;\n }\n // Check if values are empty\n\n // Validate date\n if (!Validation.isValidDate(inputDate.getValue())) {\n setErrorMessage(\"Can't set future visits!\");\n return false;\n }\n\n if (lackingValues()) {\n setErrorMessage(\"Write values in all boxes!\");\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "f99b3af4b56834b6d1ac3caecd9a2aaf", "score": "0.43886086", "text": "@Override\n\tpublic HashMap<String, String> Validate(Form model) {\n\t\tDateFromRequiredValidator dateFromRequiredValidator = new DateFromRequiredValidator();\n\t\t\n\t\tDateToRequiredValidator dateToRequiredValidator = new DateToRequiredValidator();\n\t\t\n\t dateFromRequiredValidator.setSuccessor(dateToRequiredValidator);\n\t\n\t //continue validation in chain\n\t return dateFromRequiredValidator.HandleValidation(model);\n\t\t\n\t}", "title": "" }, { "docid": "e52f13d57dc311d69b2d2289ff90989d", "score": "0.43877327", "text": "@CrossOrigin(origins=\"*\")\n\t@RequestMapping(value=\"/m28\", method=RequestMethod.POST)\n\tpublic Map<String, Object> m28(@Valid ActionModel03 data, \n\t\t\tBindingResult result, HttpServletRequest request){\n\t\t\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t//Le contexte de l'apllication Spring\n\t\tWebApplicationContext ctx = WebApplicationContextUtils.\n\t\t\t\tgetWebApplicationContext(request.getServletContext());\n\t\t//locale\n\t\tLocale locale = RequestContextUtils.getLocale(request);\n\t\t//des erreurs?\n\t\tif (result.hasErrors()){\n\t\t\tfor (FieldError error : result.getFieldErrors()){\n\t\t\t\t//recherche du message d'erreur à partir des codes erreurs\n\t\t\t\t//le msg est cherché dans les fichiers de messages\n\t\t\t\t//les codes d'erreurs sous forme de tableau\n\t\t\t\t\n\t\t\t\tString[] codes = error.getCodes();\n\t\t\t\t//sous forme de chaine\n\t\t\t\tString listCodes = String.join(\" - \", codes);\n\t\t\t\t//recherche\n\t\t\t\tString msg = null;\n\t\t\t\tint i =0;\n\t\t\t\twhile(msg == null && i< codes.length){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tmsg = ctx.getMessage(codes[i], null, locale);\n\t\t\t\t\t} catch (Exception e){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\n\t\t\t//a-t-on trouvé\n\t\t\tif (msg == null) {\n\t\t\t\tmsg = String.format(\"Indiquez un message pour l'un des codes [%s]\", listCodes);\n\t\t\t}\n\t\t\t\tmap.put(error.getField(), msg);\n\t\t\t\n\t\t\t}\n\t\t} else {\n\t\t\t//pas d'erreurs\n\t\t\tmap.put(\"data\", data);\n\t\t}\n\t\t\n\t\treturn map;\n\t}", "title": "" }, { "docid": "12eaac12345d9cb4359ae13edfdec7c3", "score": "0.43814668", "text": "private ActionForward performRemove_revision(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response)\n/* 455: */ {\n/* 456:450 */ RevisionesVehiculoForm form = (RevisionesVehiculoForm)actionForm;\n/* 457: */ try\n/* 458: */ {\n/* 459:454 */ List revisiones = new ArrayList();\n/* 460:455 */ revisiones = (List)request.getSession().getAttribute(\"REVISIONES\");\n/* 461:456 */ revisiones.remove(Integer.parseInt(request.getParameter(\"num_revision\")));\n/* 462: */ \n/* 463:458 */ int x = 0;\n/* 464:459 */ while (x < revisiones.size())\n/* 465: */ {\n/* 466:460 */ RevisionesVehiculo revisionesVehiculo = (RevisionesVehiculo)revisiones.get(x);\n/* 467:461 */ revisionesVehiculo.setRveh_cod(new BigDecimal(x + 1));\n/* 468:462 */ revisiones.set(x, revisionesVehiculo);\n/* 469:463 */ x++;\n/* 470: */ }\n/* 471:466 */ request.getSession().setAttribute(\"REVISIONES\", revisiones);\n/* 472: */ }\n/* 473: */ catch (Exception e)\n/* 474: */ {\n/* 475:468 */ return mapping.findForward(\"failure\");\n/* 476: */ }\n/* 477:471 */ return mapping.findForward(\"success\");\n/* 478: */ }", "title": "" }, { "docid": "c7a867d313c8c2f5dc9eefe1dcac2ed5", "score": "0.43808332", "text": "private boolean validateForm() {\n boolean valid = true;\n\n if (TextUtils.isEmpty(notes)) {\n notes_input.setError(getString(R.string.required));\n valid = false;\n } else {\n notes_input.setError(null);\n }\n return valid;\n }", "title": "" }, { "docid": "9ae5b69cb5441e84e533e831197b1b76", "score": "0.43787518", "text": "@RequestMapping(value=\"/addBasket\", method=RequestMethod.POST)\r\n\tpublic String getFormCommandData(Model model, @ModelAttribute(value=\"addBasket\") Figurine figurineBasket)\r\n\t{\r\n\t\treturn \"redirect:/userCommand\";\r\n\t}", "title": "" } ]
fcf697f6965952cf5e3f5a6637593e9e
(pba) Variable length, caption/subtext that describes the 'art preview' image.
[ { "docid": "559360eece3c676a2093a60103c3b5ca", "score": "0.71130484", "text": "@ApiModelProperty(value = \"**(pba)** Variable length, caption/subtext that describes the 'art preview' image.\")\r\n public String getArtPreviewCaption() {\r\n return artPreviewCaption;\r\n }", "title": "" } ]
[ { "docid": "9cc593a03b6948d9550f83461d46055a", "score": "0.60859865", "text": "@VTID(50)\r\n java.lang.String getCaption();", "title": "" }, { "docid": "53b8821a04fffd92d426aa0f2d62e3b7", "score": "0.5839431", "text": "public Caption(){\n\t\t// Initialise the caption paint\n\t\tcaptionPaint = new Paint();\n\t\tcaptionPaint.setColor(Color.BLACK);\n\t\tcaptionPaint.setTextSize(20);\n\t\tcaptionPaint.setTextScaleX(1.0f);\n\t\t\n\t\tcaption = \"\";\n\t}", "title": "" }, { "docid": "f3de56d2d8a652a71adbae5738b77bc1", "score": "0.5800491", "text": "void setDynamicCaption(GeoText caption);", "title": "" }, { "docid": "8cee5aace991db2e764dc13e66547c10", "score": "0.5783546", "text": "private void createAvnFPSLabel() {\n GridData gd = new GridData(275, 250);\n Label avnLabel = new Label(shell, SWT.CENTER);\n if (avnImage != null) {\n avnLabel.setImage(avnImage);\n } else {\n Font font = new Font(getDisplay(), \"sans-serif\", 14, SWT.NORMAL);\n fontList.add(font);\n avnLabel.setText(\"No Image found\");\n avnLabel.setBackground(getDisplay().getSystemColor(\n SWT.COLOR_TITLE_BACKGROUND_GRADIENT));\n avnLabel.setFont(font);\n }\n avnLabel.setLayoutData(gd);\n }", "title": "" }, { "docid": "0ab34167df821e5124ae613747f3e205", "score": "0.5779157", "text": "public static String GetDescriptiveCaption(){\n\t\treturn \"Description: \" + m_DescriptiveCaption;\n\t}", "title": "" }, { "docid": "5f0f06cf6166334c23f9d261c4891eb2", "score": "0.57766366", "text": "public String getCaption ()\n {\n return caption;\n }", "title": "" }, { "docid": "ac084d8bfa4e2395ab8de2ff73a14f2a", "score": "0.574048", "text": "boolean addAuralCaption(ScreenReaderBuilder sb);", "title": "" }, { "docid": "d22929a00b249301b0115d4442060361", "score": "0.57224274", "text": "public String getCaption() {\r\n return caption;\r\n }", "title": "" }, { "docid": "d22929a00b249301b0115d4442060361", "score": "0.57224274", "text": "public String getCaption() {\r\n return caption;\r\n }", "title": "" }, { "docid": "21c88ecef8018a82887d61aac30af8a8", "score": "0.56865764", "text": "public static void displayTextAndImageNotes()\n\t{\n\t\tArrayList<TextNote> textNotes=getAllTextAndImageNotes();\n\t\tint TextNoteCounter=1;\n\t\tint TextAndImageNoteCounter=1;\n\t\tSystem.out.println(\".............\");\n\t\tfor(TextNote note:textNotes)\n\t\t{\n\t\t\tif(note.getClass()!=TextAndImageNote.class)\n\t\t\t\tSystem.out.println(\"Text Note \"+(TextNoteCounter++)+\": \" +note.getText());\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Text And Image Note \"+(TextAndImageNoteCounter++)+\": \" +note.getText());\n\t\t}\n\t\tSystem.out.println(\".............\");\n\t}", "title": "" }, { "docid": "25ce9166de9379826adaab0f4e406d33", "score": "0.56739736", "text": "protected String makeTitle() {\r\n String str;\r\n String imageNameArray[] = null;\r\n\r\n if (displayMode == ViewJFrameBase.IMAGE_A) {\r\n imageNameArray = imageA.getImageNameArray();\r\n\r\n if (imageA.getNDims() == 4) { // Setup the title for 4D image\r\n if (imageNameArray != null) {\r\n str = imageNameArray[componentImage.getSlice() + nImage * componentImage.getTimeSlice()] + \" \"\r\n + String.valueOf(componentImage.getSlice()) + \"/\" + String.valueOf(nImage - 1) + \"z \"\r\n + String.valueOf(componentImage.getTimeSlice()) + \"/\" + String.valueOf(nTImage - 1)\r\n + \"t M:\" + makeString(componentImage.getZoomX(), 2);\r\n } else {\r\n str = imageA.getImageName() + \" \" + String.valueOf(componentImage.getSlice()) + \"/\"\r\n + String.valueOf(nImage - 1) + \"z \" + String.valueOf(componentImage.getTimeSlice()) + \"/\"\r\n + String.valueOf(nTImage - 1) + \"t M:\" + makeString(componentImage.getZoomX(), 2);\r\n }\r\n } else if (imageA.getNDims() == 3) { // Setup the title for 3D image\r\n if (imageNameArray != null) {\r\n str = imageNameArray[componentImage.getSlice()] + \" \" + String.valueOf(componentImage.getSlice())\r\n + \"/\" + String.valueOf(nImage - 1) + \" M:\" + makeString(componentImage.getZoomX(), 2);\r\n } else {\r\n str = imageA.getImageName() + \" \" + String.valueOf(componentImage.getSlice()) + \"/\"\r\n + String.valueOf(nImage - 1) + \" M:\" + makeString(componentImage.getZoomX(), 2);\r\n }\r\n } else {\r\n str = imageA.getImageName() + \" M:\" + makeString(componentImage.getZoomX(), 2);\r\n }\r\n } else {\r\n imageNameArray = imageB.getImageNameArray();\r\n if (imageB.getNDims() == 4) { // Setup the title for 4D image of image B\r\n if (imageNameArray != null) {\r\n str = imageNameArray[componentImage.getSlice() + nImage * componentImage.getTimeSlice()] + \" \"\r\n + String.valueOf(componentImage.getSlice()) + \"/\" + String.valueOf(nImage - 1) + \"z \"\r\n + String.valueOf(componentImage.getTimeSlice()) + \"/\" + String.valueOf(nTImage - 1)\r\n + \"t M:\" + makeString(componentImage.getZoomX(), 2);\r\n } else {\r\n str = imageB.getImageName() + \" \" + String.valueOf(componentImage.getSlice()) + \"/\"\r\n + String.valueOf(nImage - 1) + \"z \" + String.valueOf(componentImage.getTimeSlice()) + \"/\"\r\n + String.valueOf(nTImage - 1) + \"t M:\" + makeString(componentImage.getZoomX(), 2);\r\n }\r\n } else if (imageB.getNDims() == 3) { // Setup the title\r\n if (imageNameArray != null) {\r\n str = imageNameArray[componentImage.getSlice()] + \" \" + String.valueOf(componentImage.getSlice())\r\n + \"/\" + String.valueOf(nImage - 1) + \" M:\" + makeString(componentImage.getZoomX(), 2);\r\n } else {\r\n str = imageB.getImageName() + \" \" + String.valueOf(componentImage.getSlice()) + \"/\"\r\n + String.valueOf(nImage - 1) + \" M:\" + makeString(componentImage.getZoomX(), 2);\r\n }\r\n } else {\r\n str = imageB.getImageName() + \" M:\" + makeString(componentImage.getZoomX(), 2);\r\n }\r\n }\r\n\r\n return str;\r\n }", "title": "" }, { "docid": "015db327959d1a54860ca6d299fe73af", "score": "0.5665647", "text": "public String getCaption() {\n return caption;\n }", "title": "" }, { "docid": "08c71a6c5e27c99f34d3d67307fa02a2", "score": "0.56004924", "text": "private void displaySong(String title, String artist, String coverArt) {\n TextView txtTitle = (TextView) findViewById(R.id.txt_SongTitle);\r\n\r\n txtTitle.setText(title);\r\n\r\n TextView txtArtist = (TextView) findViewById(R.id.txt_SongArtist);\r\n\r\n txtArtist.setText(artist);\r\n\r\n ImageView ivCoverArt = (ImageView) findViewById(R.id.iv_Cover_Art);\r\n\r\n int imageId = AppUtil.getImageIdFromDrawable(this, coverArt);\r\n\r\n ivCoverArt.setImageResource(imageId);\r\n //image view = iv\r\n }", "title": "" }, { "docid": "392c585445282301d56c4cd1e4bc9a57", "score": "0.55970204", "text": "public String preview(){\n StringBuilder fileSnip = new StringBuilder();\n try{\n String buf;\n Scanner fileScan = new Scanner(new File(\"src/FileAttachments/\"+fileName));\n int i = 0;\n int limit = 3;\n while(fileScan.hasNext() & i++ < limit){\n buf = fileScan.nextLine();\n fileSnip.append(buf + \" \");\n }\n fileSnip.append(\"...\");\n fileScan.close();\n }catch (IOException e){\n fileSnip.append(\"<Error>\");\n }\n\n return String.format(\"File Attachment: %s\\n%s\\n\", fileName, fileSnip.toString());\n }", "title": "" }, { "docid": "ee25db9eb534fdc8062dc62accf3471d", "score": "0.5590722", "text": "java.lang.String getDescriptionText();", "title": "" }, { "docid": "b3859a994171f1d1816f6a5f23cd86c6", "score": "0.55699974", "text": "protected void createContents() {\r\n\t\tsetText(\"图像识别系统\");\r\n\t\tsetSize(630, 389);\r\n\t}", "title": "" }, { "docid": "662ba99c4fc312877b05bb57909e9f35", "score": "0.5560046", "text": "public void setDesc(int index) {\n imgDesc = getResources().getStringArray(R.array.imgDesc);\n txtDescView.setText(imgDesc[index]);\n }", "title": "" }, { "docid": "565623358143ba4f91aa4ab790b06c26", "score": "0.5558014", "text": "@Override\n public String getArt() {\n return (\"░░░░░░░█▐▓▓░████▄▄▄█▀▄▓▓▓▌█ \\n\" +\n \"░░░░░▄█▌▀▄▓▓▄▄▄▄▀▀▀▄▓▓▓▓▓▌█ \\n\" +\n \"░░░▄█▀▀▄▓█▓▓▓▓▓▓▓▓▓▓▓▓▀░▓▌█ \\n\" +\n \"░░█▀▄▓▓▓███▓▓▓███▓▓▓▄░░▄▓▐█▌ \\n\" +\n \"░█▌▓▓▓▀▀▓▓▓▓███▓▓▓▓▓▓▓▄▀▓▓▐█ \\n\" +\n \"▐█▐██▐░▄▓▓▓▓▓▀▄░▀▓▓▓▓▓▓▓▓▓▌█▌ \\n\" +\n \"█▌███▓▓▓▓▓▓▓▓▐░░▄▓▓███▓▓▓▄▀▐█ \\n\" +\n \"█▐█▓▀░░▀▓▓▓▓▓▓▓▓▓██████▓▓▓▓▐█ \\n\" +\n \"▌▓▄▌▀░▀░▐▀█▄▓▓██████████▓▓▓▌█▌ \\n\" +\n \"▌▓▓▓▄▄▀▀▓▓▓▀▓▓▓▓▓▓▓▓█▓█▓█▓▓▌█▌ \\n\" +\n \"█▐▓▓▓▓▓▓▄▄▄▓▓▓▓▓▓█▓█▓█▓█▓▓▓▐█\");\n }", "title": "" }, { "docid": "c7bdbb90a9ed87a3d6db4e20f13706b0", "score": "0.5537201", "text": "private void updatePreview()\n {\n Font f = new Font(this.fontFamilyPanel.getSelected(),\n Font.PLAIN,\n this.fontSizePanel.getSelectedInt());\n\n String text = this.fontFamilyPanel.getSelected();\n\n if (this.boldCheckBox.isSelected())\n text = \"<b>\" + text + \"</b>\";\n if (this.italicCheckBox.isSelected())\n text = \"<i>\" + text + \"</i>\";\n if (this.underlineCheckBox.isSelected())\n text = \"<u>\" + text + \"</u>\";\n\n this.previewLabel.setFont(f);\n this.previewLabel.setForeground(this.colorLabel.getBackground());\n this.previewLabel.setText(\"<html>\"+text+\"</html>\");\n }", "title": "" }, { "docid": "f255d2a94730a6b63b4bd4f1489fb62a", "score": "0.55078214", "text": "@Override // Override the start method in the Application class\n public void start(Stage primaryStage) {\n DescriptionPane descriptionPane = new DescriptionPane();\n\n // Set title, text and image in the description pane\n descriptionPane.setTitle(\"Canada\");\n String description = \"The Canadian national flag ... \\nCall me Ishmael. Some years ago- \"+\n \"never mind how long precisely- having little or no money in my purse, and nothing\"+\n \" particular to interest me on shore, I thought I would sail about a little and see\"+\n \" the watery part of the world.\" +\n \"It is a way\\n\" +\n\" I have of driving off the spleen and regulating the circulation.\"+\n \" Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly \"+\n \"November in my soul; whenever I find myself involuntarily pausing before coffin warehouses ...\";\n descriptionPane.setImageView(new ImageView(\"image/ca.gif\"));\n descriptionPane.setDescription(description);\n\n // Create a scene and place it in the stage\n Scene scene = new Scene(descriptionPane, 450, 200);\n primaryStage.setTitle(\"TextAreaDemo\"); // Set the stage title\n primaryStage.setScene(scene); // Place the scene in the stage\n primaryStage.show(); // Display the stage\n }", "title": "" }, { "docid": "01433a7d6f6631ad0338ba184078216e", "score": "0.54610866", "text": "public String getDescription() {\n\treturn \"Create a new image by putting together resampled pixels from multiple surveys\";\n }", "title": "" }, { "docid": "5864fdaad70fa969a248719d87af814d", "score": "0.5458953", "text": "public String getArtimg() {\n return artimg;\n }", "title": "" }, { "docid": "931fea8c6b817c4d67f3b2291716c0b1", "score": "0.54540974", "text": "private String imageTitle(Component semanticElement) {\n//\t\tString descr = genDescription(semanticElement);\n//\t\tif (descr!=null) {\n//\t\t\tint dotIdx = descr.indexOf('.');\n//\t\t\tint exclIdx = descr.indexOf('!');\n//\t\t\tif (exclIdx!=-1 && (exclIdx<dotIdx || dotIdx==-1)) {\n//\t\t\t\tdotIdx = exclIdx;\n//\t\t\t}\n//\t\t\tint qIdx = descr.indexOf('?');\n//\t\t\tif (qIdx!=-1 && (qIdx<dotIdx || qIdx==-1)) {\n//\t\t\t\tdotIdx = qIdx;\n//\t\t\t}\n//\t\t\tif (dotIdx!=-1) {\n//\t\t\t\tint ltIdx = descr.indexOf('<');\n//\t\t\t\tif (ltIdx==-1 || ltIdx>dotIdx) {\n//\t\t\t\t\treturn descr.substring(0, dotIdx+1);\n//\t\t\t\t}\t\t\t\t\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a53cc6e6b1da9564db64fc0ba5f48d02", "score": "0.5450858", "text": "public String getCaption() {\n return caption.getText();\n }", "title": "" }, { "docid": "74aeec831818fd6c08781b1adb2aa1c8", "score": "0.54241395", "text": "public static String getSamplePreview(String previewText, Context context) {\n\n if (previewText.contains(\"##Customer Name##\")) {\n\n previewText = previewText.replace(\"##Customer Name##\", \"Neel\");\n }\n if (previewText.contains(\"##Date Time##\")) {\n\n previewText = previewText.replace(\"##Date Time##\",\n getEntryDateFormat(getCurruntDateTime()));\n }\n\n if (previewText.contains(\"##Signature##\")) {\n\n previewText = previewText.replace(\"##Signature##\", \"Signature\");\n }\n if (previewText.contains(\"##New Line##\")) {\n\n previewText = previewText.replace(\"##New Line##\", \"\\n\");\n }\n\n if (previewText.contains(\"##InvoiceDateFormat##\")) {\n previewText = previewText.replace(\"##InvoiceDateFormat##\",\n getDDMYYYYFormat(getCurruntDateTime()));\n }\n\n if (previewText.contains(\"##InvoiceTotalItemCount##\")) {\n previewText = previewText.replace(\"##InvoiceTotalItemCount##\",\n \"5\");\n }\n\n if (previewText.contains(\"##InvoiceTotalQuantity##\")) {\n previewText = previewText.replace(\"##InvoiceTotalQuantity##\",\n \"10\");\n }\n\n if (previewText.contains(\"##InvoiceNetAmount##\")) {\n previewText = previewText.replace(\"##InvoiceNetAmount##\",\n \"100\");\n }\n\n if (previewText.contains(\"##InvoiceDiscountAmount##\")) {\n previewText = previewText.replace(\"##InvoiceDiscountAmount##\",\n \"15\");\n }\n\n if (previewText.contains(\"##InvoiceTotalTaxAmount##\")) {\n previewText = previewText.replace(\"##InvoiceTotalTaxAmount##\",\n \"12\");\n }\n\n if (previewText.contains(\"##InvoicePaymentMode##\")) {\n previewText = previewText.replace(\"##InvoicePaymentMode##\",\n \"Card\");\n }\n\n if (previewText.contains(\"##InvoiceGrandTotalAmount##\")) {\n previewText = previewText.replace(\"##InvoiceGrandTotalAmount##\",\n \"100\");\n }\n\n if (previewText.contains(\"##AdjustedAmount##\")) {\n previewText = previewText.replace(\"##AdjustedAmount##\",\n \"13\");\n }\n\n if (previewText.contains(\"##AddtoCreditAdmount##\")) {\n previewText = previewText.replace(\"##AddtoCreditAdmount##\",\n \"5\");\n }\n\n\n if (previewText.contains(\"##QuotationTotalItemCount##\")) {\n\n previewText = previewText.replace(\"##QuotationTotalItemCount##\",\n String.valueOf(\"3\"));\n }\n\n if (previewText.contains(\"##QuotationTotalQuantity##\")) {\n\n previewText = previewText.replace(\"##QuotationTotalQuantity##\",\n String.valueOf(\"4\"));\n }\n\n if (previewText.contains(\"##QuotationDate##\")) {\n\n previewText = previewText.replace(\"##QuotationDate##\",\n getDDMYYYYFormat(getCurruntDateTime()));\n }\n\n if (previewText.contains(\"##QuotationExpireDate##\")) {\n\n previewText = previewText.replace(\"##QuotationExpireDate##\",\n getDDMYYYYFormat(getCurruntDateTime()));\n }\n\n if (previewText.contains(\"##QuotationNetAmount##\")) {\n\n previewText = previewText.replace(\"##QuotationNetAmount##\",\n \"230\");\n }\n\n if (previewText.contains(\"##QuotationDiscountAmount##\")) {\n\n previewText = previewText.replace(\"##QuotationDiscountAmount##\",\n \"52\");\n }\n\n if (previewText.contains(\"##QuotationTotalTaxAmount##\")) {\n\n previewText = previewText.replace(\"##QuotationTotalTaxAmount##\",\n \"20\");\n }\n\n if (previewText.contains(\"##QuotationGrandTotalAmount##\")) {\n\n previewText = previewText.replace(\"##QuotationGrandTotalAmount##\",\n \"250\");\n }\n\n\n ClsUserInfo clsUserInfo = ClsGlobal.getUserInfo(context);\n\n previewText = commonKeywords(previewText,\n null, null, clsUserInfo, context);\n\n\n return previewText;\n }", "title": "" }, { "docid": "a0b6c5d389e09e832f65bf63fa4b2ebf", "score": "0.5399127", "text": "public Metadata.AudioFile getPreview(int index) {\n if (previewBuilder_ == null) {\n return preview_.get(index);\n } else {\n return previewBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "6381931dc5d8fd6132cc14f47fedc65e", "score": "0.5398273", "text": "String getSubtitle();", "title": "" }, { "docid": "10960a1a1e8d826c071e184ae696f3ed", "score": "0.53914243", "text": "public String getDescription() {\n\t\t return \".tif (Bead Image File)\";\n\t\t }", "title": "" }, { "docid": "e2ef134669006fdcc29c07bdc6cb1e04", "score": "0.5383976", "text": "private void makeImageCalculations() {\n Image image = new Image(this.getDisplay(), 100, 100);\n GC gc = new GC(image);\n gc.setFont(tiFont);\n\n int maxTextLength = -1;\n\n textWidth = gc.getFontMetrics().getAverageCharWidth();\n textHeight = gc.getFontMetrics().getHeight();\n\n String[] columnKeys = getColumnKeys(appName);\n\n for (String key : columnKeys) {\n String columnName = getColumnAttribteData(key).getColumnName();\n\n String[] nameArray = columnName.split(\"\\n\");\n\n for (String tmpStr : nameArray) {\n maxTextLength = Math.max(maxTextLength, tmpStr.length());\n }\n }\n\n imageWidth = maxTextLength * textWidth + 16;\n imageHeight = textHeight * 2 + 3;\n\n gc.dispose();\n image.dispose();\n }", "title": "" }, { "docid": "40fcf664bd7c5ef2ba7dc60d75592dd8", "score": "0.53830767", "text": "public void frontArt (){\r\n System.out.println(\" ---------\");\r\n System.out.println(\"|\" + face + \" |\");\r\n System.out.println(\"| |\");\r\n System.out.println(\"| \"+ suite +\" \"+ suite +\" \"+ suite +\" \"+ suite +\" |\");\r\n System.out.println(\"| |\");\r\n System.out.println(\"| \" + face + \"|\");\r\n System.out.println(\" ---------\");\r\n }", "title": "" }, { "docid": "94c4665386a24a17dd687b93d7e375ed", "score": "0.53814244", "text": "public String getCaption() {\n\t\treturn caption;\n\t}", "title": "" }, { "docid": "ed2a41b24ddd0e6531ee99a15dd0923c", "score": "0.53730494", "text": "private void getRevText() {\n reviewBlocks = \"\";\n for (Review r : reviews) {\n reviewBlocks += assembleReview(r.establishment(), r.address(), r.notes(), r.rating()) + \"\\n\";\n }\n \n if (!reviews.isEmpty()) {\n ReviewPane.setText(reviewBlocks);\n }\n }", "title": "" }, { "docid": "1fbdbb82d4720ec71fb02be7014f5a61", "score": "0.5368866", "text": "public String getCaptionSide();", "title": "" }, { "docid": "1ced8085d59aa93d409ac7f062a46061", "score": "0.5368821", "text": "public BufferedImage getImageRealisation() {\n return renderedText;\n }", "title": "" }, { "docid": "e89e1775f9282f1bc31f487dcd76817e", "score": "0.53431034", "text": "public String getCaption() {\n return Caption;\n }", "title": "" }, { "docid": "00311c0472a4c04211201732a92edd87", "score": "0.5342402", "text": "public String getDescription()\n {\n return \"Images\";\n }", "title": "" }, { "docid": "c43698df5091575b7e4ec42792d6d0e1", "score": "0.53368723", "text": "public void setCaption (String sval)\n {\n caption = sval;\n }", "title": "" }, { "docid": "13fcf40b25112b2b9102b31f2bccc549", "score": "0.53333855", "text": "public String getThumbnailDisplay(int index) throws TvCommonException\r\n\t{\r\n\t\treturn pvrMgr.getThumbnailDisplay(index);\r\n\t}", "title": "" }, { "docid": "bbbd420a807a4afe79986bd33e00dec6", "score": "0.53235215", "text": "@Override\r\n\tpublic String getCaption() {\n\t\treturn \"(\" + currentX + \",\" + currentY + \")\";\r\n\t}", "title": "" }, { "docid": "073fabe5c48a5ced54fbb5240bf421a2", "score": "0.53218985", "text": "private void previewCaptureImage() {\n\t\tobj.convertToText(\"en\",fileUri.getPath());\n\t\t\n\t\tIntent intent = new Intent(this, GenerateMedicalBillTable.class);\n\t\tstartActivity(intent);\n\t\t\n\n\t}", "title": "" }, { "docid": "552cf89cde3df270feccf89c68657a3d", "score": "0.5312056", "text": "private Text createText(Composite parent, String title, String suffix){\n\t\tnew Label(parent, SWT.NONE).setText(title);\n\t\tText actualText = new Text(parent, SWT.BORDER);\n\t\tactualText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\t\tif (suffix != null) new Label(parent, SWT.NONE).setText(suffix);\n\t\telse new Label(parent, SWT.NONE);\n\t\tactualText.addModifyListener(valueModifedListener);\n\t\treturn actualText;\n\t}", "title": "" }, { "docid": "051d17ca601322cdbb4e25885a7ee3b6", "score": "0.5306016", "text": "public String getDescription() {\r\n\t\t\treturn \"Just Images\";\r\n\t\t}", "title": "" }, { "docid": "34ce930fa1c1eb01d11c732f6bfdcdb8", "score": "0.52996624", "text": "public String getImageDesc() {\n return imageDesc;\n }", "title": "" }, { "docid": "f3b48128c57c1d1d9f8b684016dc76fa", "score": "0.5263807", "text": "void showFullDesc(String desc, String title);", "title": "" }, { "docid": "496ed8b88832320f9a008400e309d592", "score": "0.5244428", "text": "public void mo37618f() {\n m33392p();\n this.f26157A.mo37716a(R.string.album_thumbnail);\n }", "title": "" }, { "docid": "bd50a146fbb248a35e24beeb407071ce", "score": "0.52252", "text": "@VTID(51)\r\n void setCaption(\r\n java.lang.String rhs);", "title": "" }, { "docid": "81ced4b79e6020d274b51f8994ccb887", "score": "0.5217832", "text": "public String captionAsset(String collection_name, String captionId,String view,String description, String category);", "title": "" }, { "docid": "a99f4cf40c9ca2f363d96d732f361d84", "score": "0.5216707", "text": "String getHtmlPreview();", "title": "" }, { "docid": "fd6696f010b80b502b60631f18a5e1dc", "score": "0.5212842", "text": "String getCaption(StringTemplate tpl);", "title": "" }, { "docid": "b686c30791f960e726cee60e996727d9", "score": "0.5212171", "text": "public void setCaption(String caption) {\r\n this.caption = caption;\r\n }", "title": "" }, { "docid": "986eba726484e14be283865e6a9247a0", "score": "0.5211039", "text": "private void addPreview() {\n\t\tBufferedImage original = app.getOriginalImage();\n\t\tpreview.setPreferredSize(new Dimension(original.getWidth(), original.getHeight()));\n\t\tadd(preview, BorderLayout.CENTER);\n\n\t}", "title": "" }, { "docid": "4c20c3a298596bff9cf78e5e7e050563", "score": "0.52016324", "text": "PreviewSize mo38968y();", "title": "" }, { "docid": "6c61e97f531cb78945ae5b708cf31d65", "score": "0.518479", "text": "public static void display(Main me)\n {\n String fileName=file.getName();\n if (file.isFile()){\n String str=fileName.substring(fileName.lastIndexOf('.')+1);\n str=str.toLowerCase();\n if (!(str.equals(\"class\")||str.equals(\"doc\")||str.equals(\"pdf\"))){\n me.editorTitle2.setText(file.getAbsolutePath() );\n if (str.equals(\"html\")||str.equals(\"htm\")||str.equals(\"gif\")||str.equals(\"jpg\")){\n if (str.equals(\"gif\")||str.equals(\"jpg\")){\n String tep=\"<html><body><img src=file:///\"+file.getAbsolutePath()+\"></body></html>\";\n // me.editor.setContentType(\"text/html\");\n me.editor.setText(tep);\n me.editorScrollPane = new JScrollPane(me.editor);\n me.editorPanel2 = initPanel(false);\n me.editorPanel2.add(me.editorTitle2);\n me.editorPanel2.add(me.editorScrollPane);\n me.editorTabbedPane.setComponentAt(0,me.editorPanel2);\n me.editorTabbedPane.setTitleAt(0,\"Viewer\");\n me.status.setText(\"Status: Displaying the selected artifact.\");\n \n }\n else{\n URL myURL;\n try{ myURL = new URL(\"file:///\"+file.getAbsolutePath()); }\n catch(Exception e1){\n me.status.setText(\"Status: Couldn't create the artifact URL\");\n return;\n }\n try{\n\t\t\t\t\t\t\t\t\tme.editor.setPage(myURL);\n\t\t\t\t\t\t\t\t\tme.editorScrollPane = new JScrollPane(me.editor);\n\t\t\t\t\t\t\t\t\tme.editorPanel2 = initPanel(false);\n\t\t\t\t\t\t\t\t\tme.editorPanel2.add(me.editorTitle2);\n\t\t\t\t\t\t\t\t\tme.editorPanel2.add(me.editorScrollPane);\n\t\t\t\t\t\t\t\t\tme.editorTabbedPane.setComponentAt(0,me.editorPanel2);\n\t\t\t \t\t \t\t \t\tme.editorTabbedPane.setTitleAt(0,\"Viewer\");\n me.status.setText(\"Status: Displaying the selected artifact.\");\n }\n catch (Exception e2){\n me.status.setText(\"Status: Couldn't display the artifact\");\n }\n }\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t } \n }", "title": "" }, { "docid": "eb3bc6af07335696f983f00b6d6525f8", "score": "0.5174951", "text": "public void setCaptionLayout(int layout) {\r\n\t_captionLayout = layout;\r\n}", "title": "" }, { "docid": "053353e6e9f04b95fa3016cb26b9dc65", "score": "0.5167904", "text": "public String getDescription() {\r\n\t\t\t\treturn \"Image Files\";\r\n\t\t\t}", "title": "" }, { "docid": "a3052380c157b9760b6c119b1018fa4c", "score": "0.5166547", "text": "public int getCaptionLayout() {\r\n\treturn _captionLayout;\r\n}", "title": "" }, { "docid": "c869c257e4db964e37c6fd2707890876", "score": "0.5155908", "text": "public void setCaption(String caption) {\n this.caption = caption;\n }", "title": "" }, { "docid": "71e8c08fe89eb20beece783b75b92e26", "score": "0.51514894", "text": "public String toString () {\r\n return \"\" + realPart + \" + \" + imgPart + \" i \";\r\n }", "title": "" }, { "docid": "12f964423c0e4325f96638c49fa73539", "score": "0.51394683", "text": "public void setCaption(String text) {\n caption.setText(text);\n }", "title": "" }, { "docid": "bdc86bebf3e0fe878b5963713cbfc5b7", "score": "0.51351213", "text": "@ApiModelProperty(value = \"**(pba)** Variable length, description of the art/goods/services sold.\")\r\n public String getAboutTheArtText() {\r\n return aboutTheArtText;\r\n }", "title": "" }, { "docid": "c5638d1ed3958b545dc679c79a60750e", "score": "0.51196456", "text": "public EditableLabelFigure(Image img, TextProvider txtProvider)\n {\n super(img, txtProvider);\n }", "title": "" }, { "docid": "51e09a7bad619b27993c20b6770cb291", "score": "0.51196456", "text": "@PropertyGetter(value = \"alt\", description = \"The alternate text for the image.\")\n public String getAlt() {\n return alt;\n }", "title": "" }, { "docid": "2e2e3957a6c987cf8b342a2b958c93d6", "score": "0.51186514", "text": "public String getCaptionText() {\r\n\t\treturn getCaptionLabel().getText();\r\n\t}", "title": "" }, { "docid": "36b24e7daf0a96faeaffaa3f6153da93", "score": "0.5118462", "text": "public Picture setImagePreviewText(String image_previewText) {\r\n\t\toptions.putLiteral(\"image_previewText\", image_previewText);\r\n\t\treturn this;\r\n\t}", "title": "" }, { "docid": "313fce1a17a26631a9f0291606b12851", "score": "0.51133054", "text": "private void showInsertInfo() {\n Image image = new Image(getClass().getResourceAsStream(Path.INFO_ICON));\n ImageView imageView = new ImageView();\n imageView.setImage(image);\n imageView.setFitHeight(30);\n imageView.setFitWidth(30);\n imageView.setPreserveRatio(true);\n imageView.setPickOnBounds(true);\n imageHolderLabel.setContentDisplay(ContentDisplay.GRAPHIC_ONLY);\n imageHolderLabel.setGraphic(imageView);\n Tooltip imageToolTip = new Tooltip();\n if (controller.getDataType() instanceof Airline) {\n imageToolTip.setGraphic(new ImageView(new Image(Path.AIRLINE_FORMAT)));\n imageHolderLabel.setTooltip(imageToolTip);\n } else if (controller.getDataType() instanceof Airport) {\n imageToolTip.setGraphic(new ImageView(new Image(Path.AIRPORT_FORMAT)));\n imageHolderLabel.setTooltip(imageToolTip);\n } else if (controller.getDataType() instanceof Route) {\n imageToolTip.setGraphic(new ImageView(new Image(Path.ROUTE_FORMAT)));\n imageHolderLabel.setTooltip(imageToolTip);\n } else {\n imageHolderLabel.setTooltip(new Tooltip(\"See Flightplandatabase.org for file format\"));\n }\n }", "title": "" }, { "docid": "9e9db184f702044e7c79ab02311fbcf6", "score": "0.5106626", "text": "private String getInfoBox(ParseItem item) {\n String content = item.getWikiText().getContent();\n int start = content.indexOf(\"{{\") + 2;\n int end = content.indexOf(\"}}\", content.indexOf(\"desc\")); \n return content.substring(start, end);\n }", "title": "" }, { "docid": "0c35353722c7c741856a9dd759be45c4", "score": "0.5106162", "text": "public final CharSequence mo951a() {\n ImageButton imageButton = this.f1142d;\n if (imageButton != null) {\n return imageButton.getContentDescription();\n }\n return null;\n }", "title": "" }, { "docid": "bb9530ccdd3298eb67f492bd3cfdf8db", "score": "0.5104377", "text": "private static Text createText() {\n\t\treturn DisplayIO.getCurrentFrame().createNewText();\n\t}", "title": "" }, { "docid": "48d38bb5aa6937e62397e254eb9873c1", "score": "0.5096031", "text": "public String getPrfPreText();", "title": "" }, { "docid": "70fbadd7dd61e8c06f2f5270cf130a89", "score": "0.50894535", "text": "private void updateCommandPreview() {\r\n\r\n\t\tjava.util.List<String> arglist = fConfig.getArguments();\r\n\t\t// make a String of all arguments\r\n\t\tStringBuffer sb = new StringBuffer(\"TCDB \");\r\n\t\tfor (String argument : arglist) {\r\n\t\t\tsb.append(argument).append(\" \");\r\n\t\t}\r\n\t\tsb.append(\" [...part specific options...]\");\r\n\t\tfPreviewText.setText(sb.toString());\r\n\t}", "title": "" }, { "docid": "1178771994acd4ac14745dcd8c58e8b1", "score": "0.5086497", "text": "public String getDisplayName() {\n return \"ImageFrame Properties\";\n }", "title": "" }, { "docid": "64cbb8209b6d7d37ceb1f944ac6ef4c2", "score": "0.5086448", "text": "String getDescriptionPanne();", "title": "" }, { "docid": "353d74250b00cf14532ed2223115994c", "score": "0.50781673", "text": "protected Control createContents(Composite parent)\n {\n Composite _composite = new Composite(parent, SWT.NONE);\n _composite.setLayout(new FillLayout());\n\n // path to ffmpeg executable\n Label _l = new Label(_composite, SWT.LEFT | SWT.BOLD);\n _l.setText(text);\n \n return _composite;\n }", "title": "" }, { "docid": "36adca4c5651294e8f1147982c43e8ef", "score": "0.5075797", "text": "@Override\r\n\tpublic void setCaption(String caption) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f8103aaecc6b92790f273448fce2e9", "score": "0.5075687", "text": "public abstract TagContent getSubtitle() throws FrameDamagedException;", "title": "" }, { "docid": "168484c6487adb8b74f8b5c8bd83b07e", "score": "0.50719184", "text": "@External\r\n\t@ClientFunc\r\n\tpublic MetaVar DrawText(MetaVarString textVar){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}", "title": "" }, { "docid": "67cd6fa05acab1d4b8c842c048fa9d66", "score": "0.506767", "text": "protected String getMainFrameText(){\n\t\tString ss = \"<h2>WNMS Report Generator for Telecom New Zealand</h2>\\n\";\n\t\tss += \"&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>\\n\";\n\t\tss += descriptivetext;\n\t\tss += \"<hr/>\\n&nbsp;<br/>\\n\";\n\t\tss += \"<h3>Brazen linkjacking of Borg TMU charts</h3>\";\n\t\tss+=\"<img src=\\\"https://borg.anz.lucent.com/rnc_stats/CH-RNC01-tmu_rnc_cpu_rolling.png\\\">&nbsp;\\n\";\n\t\tss+=\"<img src=\\\"https://borg.anz.lucent.com/rnc_stats/CH-RNC02-tmu_rnc_cpu_rolling.png\\\">&nbsp;\\n\";\n\t\tss+=\"<img src=\\\"https://borg.anz.lucent.com/rnc_stats/CH-RNC03-tmu_rnc_cpu_rolling.png\\\">&nbsp;\\n\";\n\t\tss+=\"<img src=\\\"https://borg.anz.lucent.com/rnc_stats/MDR-RNC01-tmu_rnc_cpu_rolling.png\\\">&nbsp;\\n\";\n\t\tss+=\"<img src=\\\"https://borg.anz.lucent.com/rnc_stats/MDR-RNC02-tmu_rnc_cpu_rolling.png\\\">&nbsp;\\n\";\n\t\tss+=\"<img src=\\\"https://borg.anz.lucent.com/rnc_stats/MDR-RNC03-tmu_rnc_cpu_rolling.png\\\">&nbsp;\\n\";\n\t\tss+=\"<img src=\\\"https://borg.anz.lucent.com/rnc_stats/WN-RNC01-tmu_rnc_cpu_rolling.png\\\">&nbsp;\\n\";\n\t\tss+=\"<img src=\\\"https://borg.anz.lucent.com/rnc_stats/WN-RNC02-tmu_rnc_cpu_rolling.png\\\">&nbsp;\\n\";\n\t\tss+=\"<img src=\\\"https://borg.anz.lucent.com/rnc_stats/HN-RNC01-tmu_rnc_cpu_rolling.png\\\">&nbsp;\\n\";\n\t\tss+=\"<img src=\\\"https://borg.anz.lucent.com/rnc_stats/HN-RNC02-tmu_rnc_cpu_rolling.png\\\">&nbsp;\\n\";\n\t\t//ss += getWarning();\n\t\t//ss += getReportLinks();\n\t\treturn ss;\n\t}", "title": "" }, { "docid": "9c924790689f1f41d4da6c42eaf69700", "score": "0.5065205", "text": "public FrameBodyPIC(byte textEncoding, String imageFormat, byte pictureType, String description, byte[] data) {\n this.setObjectValue(DataTypes.OBJ_TEXT_ENCODING, textEncoding);\n this.setObjectValue(DataTypes.OBJ_IMAGE_FORMAT, imageFormat);\n this.setPictureType(pictureType);\n this.setDescription(description);\n this.setImageData(data);\n }", "title": "" }, { "docid": "375cea310d689e9cebde5e9084330c9f", "score": "0.50595444", "text": "void showStoryImage(int resourceId);", "title": "" }, { "docid": "37a9689226e5435bae388361e58992da", "score": "0.50578123", "text": "java.lang.String getPic3();", "title": "" }, { "docid": "8fcf7c151ec7076ff3e4d1f20323e845", "score": "0.5056748", "text": "default Text renderTUI(Player viewer) {\n IIcon icon = getIcon(viewer);\n List<Text> lore = getLore(viewer);\n Text display = getName(viewer);\n if (display == null) return Text.EMPTY;\n if (lore.isEmpty()) {\n return display;\n } else {\n List<Text> sublore = lore.size()>1 ? lore.subList(1,lore.size()) : Collections.EMPTY_LIST;\n return Text.builder().append(display).onHover(\n icon != null\n ? TextActions.showItem(ItemStack.builder().fromSnapshot(icon.render())\n .add(Keys.DISPLAY_NAME, lore.get(0))\n .add(Keys.ITEM_LORE, sublore)\n .build().createSnapshot())\n : TextActions.showText(Text.of(\n Text.joinWith(Text.of(Text.NEW_LINE), getLore(viewer))\n ))\n ).build();\n }\n }", "title": "" }, { "docid": "97f8a61cc30f4a7d7bc94e391345095d", "score": "0.5056689", "text": "public static String m62927a(Bundle bundle) {\n if (bundle == null) {\n return TEVideoRecorder.FACE_BEAUTY_NULL;\n }\n StringBuilder sb = new StringBuilder(PhotoMovieContext.PHOTO_MOVIE_COVER_WIDTH);\n sb.append(\"Bundle[{\");\n m62929a(bundle, sb);\n sb.append(\"}]\");\n return sb.toString();\n }", "title": "" }, { "docid": "cd2ee03802c07c47d49410773ce8e52a", "score": "0.5054455", "text": "public abstract Fig presentationFor(Object obj);", "title": "" }, { "docid": "41696ab05162423a65b0f782b0ea3ac6", "score": "0.50423163", "text": "Metadata.AudioFile getPreview(int index);", "title": "" }, { "docid": "b79912aa38ef8e2cf380b6c433e976d0", "score": "0.5038132", "text": "protected void initialiseInfoText() {\n\n infoText = \"<html><body><p>This is the X/Y Pad instrument.<br>\" +\n \"It is designed to utilise the touch screen surface to play dynamic monophonic melodies \" +\n \"and change the screen colour according to the currently played note.<br>\" +\n \"It is called X/Y because the main controls fall on the X and Y axes of the phone screen. <br>\" +\n \" - X axis changes the amplitude(volume) of the played notes. \" +\n \"Move left for quieter and right for louder tones.<br>\" +\n \" - Y axis changes the frequency of the played tones. \" +\n \"Move up to get higher notes and down for lower.<br><br>\" +\n \"The instrument also displays the name and octave of the currently played note, its frequency, \" +\n \"tuning percentage and tuning directions.<br>\" +\n \"The tuning percentage and directions guide you to know when you are in and out of tune from a specific note. \" +\n \"The arrow up, indicates that you need to raise the note, the arrow down means that you have to go lower, \" +\n \"and the green check mark signifies being in tune.<br><br>\" +\n \"The instrument has multiple settings which can be accessed from the bottom menu: <br>\" +\n \" - Sound Panel allows you to change the type of sound the instrument produces. \" +\n \"All sound sources are mathematically generated synthesizers.<br>\" +\n \" - Sound Range allows you to choose between multiple options for limiting or extending the available notes on the screen. \" +\n \"It is used to provide easier access to specific notes and more control when needed.<br>\" +\n \" - Preferences offer multiple options to customize the instrument for better user experience.<br>\" +\n \"Tuning refinement lets you choose the range within which a tuning is calculated, \" +\n \"thus higher values make the in-tune range larger. Change menu timer gives you the option \" +\n \"to raise or lower the time after which the control menu reappears, following the release of the screen. \" +\n \"Keep Panels Open is used for hiding or leaving the panels after the instrument has been played. \" +\n \"There is an option for on-screen guidance and a panel for improved visibility. \" +\n \"You can save and load stored settings as well as reset to system defaults.\" +\n \"</p></body></html>\";\n\n infoTitle = \"X/Y Pad Info\";\n\n }", "title": "" }, { "docid": "e601ac79935b915e4d9c479f006374b0", "score": "0.5030136", "text": "protected void createContents() {\r\n\t\tsetText(\"Reference Detective\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "title": "" }, { "docid": "89e7ab5b1a7e9907cebcfa2ecaa986dc", "score": "0.5028298", "text": "public void setVoiceCaptionText(String text) {\n TextView textView = (TextView)findViewById(R.id.caption_text);\n textView.setText(text);\n }", "title": "" }, { "docid": "95e365e68c73952b1fa9939e160a6cdb", "score": "0.5002417", "text": "public String getDescription(Locale locale) {\n/* 83 */ String desc = PackageUtil.getSpecificationTitle() + \" PCX Image Writer\";\n/* */ \n/* 85 */ return desc;\n/* */ }", "title": "" }, { "docid": "43dc8ca0b95117f564452b795f732f11", "score": "0.50016177", "text": "public String getFlavourText() {\n\t\treturn FlavourText;\n\t}", "title": "" }, { "docid": "ffd9a7eee8aee112f6d967b831356569", "score": "0.49906346", "text": "String getDescriptionHtml();", "title": "" }, { "docid": "23f2bbe5bdd11a45bf11243482272564", "score": "0.49845305", "text": "public void setPreview(AutofitTextureView texture);", "title": "" }, { "docid": "7be8ab0dc2e77c96916be0696aebcc84", "score": "0.4982903", "text": "java.lang.String getImage();", "title": "" }, { "docid": "7be8ab0dc2e77c96916be0696aebcc84", "score": "0.4982903", "text": "java.lang.String getImage();", "title": "" }, { "docid": "ac811a3927654611e3fd52c7c50ec97f", "score": "0.49725494", "text": "public String getDescription() {\n return \"PNG, JPG, and BMP Images\";\n }", "title": "" }, { "docid": "4ee9c6f8df3191ee94c744d1915d3196", "score": "0.496758", "text": "@ApiModelProperty(value = \"**(pba)** ImageId of an art/merchandise sample sold/offered by the dealer.\")\r\n public UUID getArtPreviewImageId() {\r\n return artPreviewImageId;\r\n }", "title": "" }, { "docid": "19d295e133537cef33b781036bc17f0c", "score": "0.49662924", "text": "public void setCaption(String caption) {\n Caption = caption;\n }", "title": "" }, { "docid": "f69e203cce4612d19cf00123aa82626d", "score": "0.4963226", "text": "public String subtitle() {\n return subtitle;\n }", "title": "" }, { "docid": "97c8144ca0f393cd441de94b14ee3409", "score": "0.49556568", "text": "@Override\n public void applyTexts(String description) {\n rDetails.setText(description);\n desc = description;\n }", "title": "" }, { "docid": "ab3ad6c855e2bb373076ec06a3b38ab9", "score": "0.49547875", "text": "@Override\n public java.lang.String getDescription() {\n return _parts.getDescription();\n }", "title": "" }, { "docid": "83844ae3fe43bdc0a48e56618996caee", "score": "0.49535418", "text": "public Subtitle decode(byte[] bytes, int length, boolean reset) throws SubtitleDecoderException {\n this.parsableByteArray.reset(bytes, length);\n String cueTextString = readSubtitleText(this.parsableByteArray);\n if (cueTextString.isEmpty()) {\n return Tx3gSubtitle.EMPTY;\n }\n SpannableStringBuilder cueText = new SpannableStringBuilder(cueTextString);\n SpannableStringBuilder spannableStringBuilder = cueText;\n attachFontFace(spannableStringBuilder, this.defaultFontFace, 0, 0, cueText.length(), SPAN_PRIORITY_LOW);\n attachColor(spannableStringBuilder, this.defaultColorRgba, -1, 0, cueText.length(), SPAN_PRIORITY_LOW);\n attachFontFamily(spannableStringBuilder, this.defaultFontFamily, \"sans-serif\", 0, cueText.length(), SPAN_PRIORITY_LOW);\n float verticalPlacement = this.defaultVerticalPlacement;\n while (this.parsableByteArray.bytesLeft() >= 8) {\n int position = this.parsableByteArray.getPosition();\n int atomSize = this.parsableByteArray.readInt();\n int atomType = this.parsableByteArray.readInt();\n boolean z = false;\n if (atomType == TYPE_STYL) {\n if (this.parsableByteArray.bytesLeft() >= 2) {\n z = true;\n }\n assertTrue(z);\n int styleRecordCount = this.parsableByteArray.readUnsignedShort();\n for (int i = 0; i < styleRecordCount; i++) {\n applyStyleRecord(this.parsableByteArray, cueText);\n }\n } else if (atomType == TYPE_TBOX && this.customVerticalPlacement) {\n if (this.parsableByteArray.bytesLeft() >= 2) {\n z = true;\n }\n assertTrue(z);\n verticalPlacement = Util.constrainValue(((float) this.parsableByteArray.readUnsignedShort()) / ((float) this.calculatedVideoTrackHeight), 0.0f, 0.95f);\n }\n this.parsableByteArray.setPosition(position + atomSize);\n }\n Cue cue = r5;\n Cue cue2 = new Cue(cueText, null, verticalPlacement, 0, 0, Float.MIN_VALUE, Integer.MIN_VALUE, Float.MIN_VALUE);\n return new Tx3gSubtitle(cue);\n }", "title": "" } ]
9b72532cf410b8f291621f2545fa2cfd
Sets the isReviewedNaicsDescription value for this AccountCleanInfo.
[ { "docid": "4a9f5da3ddcf4cf19296dd30781b0ee5", "score": "0.7971063", "text": "public void setIsReviewedNaicsDescription(java.lang.Boolean isReviewedNaicsDescription) {\n this.isReviewedNaicsDescription = isReviewedNaicsDescription;\n }", "title": "" } ]
[ { "docid": "5547c693e1b399b42b8ae364d5949d3a", "score": "0.69508755", "text": "public java.lang.Boolean getIsReviewedNaicsDescription() {\n return isReviewedNaicsDescription;\n }", "title": "" }, { "docid": "7c1a1aba5dfd7d8172d7478e8c6c4a3c", "score": "0.6745687", "text": "public void setIsReviewedNaicsCode(java.lang.Boolean isReviewedNaicsCode) {\n this.isReviewedNaicsCode = isReviewedNaicsCode;\n }", "title": "" }, { "docid": "a0d29c4d9dd4a8ab138c621dedcd8973", "score": "0.6554526", "text": "public void setIsFlaggedWrongNaicsDescription(java.lang.Boolean isFlaggedWrongNaicsDescription) {\n this.isFlaggedWrongNaicsDescription = isFlaggedWrongNaicsDescription;\n }", "title": "" }, { "docid": "b5c2ca6ba968fea36d2215e6b28479b9", "score": "0.6442788", "text": "public void setIsReviewedSicDescription(java.lang.Boolean isReviewedSicDescription) {\n this.isReviewedSicDescription = isReviewedSicDescription;\n }", "title": "" }, { "docid": "70cd2fe566c84a2b8bfbf3e24fead298", "score": "0.6318215", "text": "public void setIsReviewedDescription(java.lang.Boolean isReviewedDescription) {\n this.isReviewedDescription = isReviewedDescription;\n }", "title": "" }, { "docid": "d5a71d028ca9609a7ffee5e98b3cd3e5", "score": "0.6205483", "text": "public void setIsDifferentNaicsDescription(java.lang.Boolean isDifferentNaicsDescription) {\n this.isDifferentNaicsDescription = isDifferentNaicsDescription;\n }", "title": "" }, { "docid": "5dbb626b5d00a5d20571cc0789b8270d", "score": "0.607317", "text": "public java.lang.Boolean getIsReviewedNaicsCode() {\n return isReviewedNaicsCode;\n }", "title": "" }, { "docid": "65abb273eae72773cc733a77124b1fc2", "score": "0.5937837", "text": "public java.lang.Boolean getIsFlaggedWrongNaicsDescription() {\n return isFlaggedWrongNaicsDescription;\n }", "title": "" }, { "docid": "b0372b31ceec5f8e333e9ac054a8968b", "score": "0.57744557", "text": "public void setNaicsDescription(java.lang.String naicsDescription) {\n this.naicsDescription = naicsDescription;\n }", "title": "" }, { "docid": "671b6e0eb86d34fc08bcfadba5150f6f", "score": "0.5771905", "text": "public void setIsReviewedSic(java.lang.Boolean isReviewedSic) {\n this.isReviewedSic = isReviewedSic;\n }", "title": "" }, { "docid": "4c2efbf7eef2e52cf7ef03d12c4da6d1", "score": "0.568368", "text": "public java.lang.Boolean getIsReviewedSicDescription() {\n return isReviewedSicDescription;\n }", "title": "" }, { "docid": "dba9c6ca0465d063e928bcc509b556ec", "score": "0.54624873", "text": "public java.lang.Boolean getIsReviewedDescription() {\n return isReviewedDescription;\n }", "title": "" }, { "docid": "1d2a1f198c7e98684727a989e58ac129", "score": "0.54516804", "text": "public void setIsFlaggedWrongSicDescription(java.lang.Boolean isFlaggedWrongSicDescription) {\n this.isFlaggedWrongSicDescription = isFlaggedWrongSicDescription;\n }", "title": "" }, { "docid": "0909cef8633a934c029c532a53560640", "score": "0.5284588", "text": "public void setIsFlaggedWrongNaicsCode(java.lang.Boolean isFlaggedWrongNaicsCode) {\n this.isFlaggedWrongNaicsCode = isFlaggedWrongNaicsCode;\n }", "title": "" }, { "docid": "1d8dbb08d96498e05980446cafc642ba", "score": "0.5220088", "text": "public java.lang.Boolean getIsDifferentNaicsDescription() {\n return isDifferentNaicsDescription;\n }", "title": "" }, { "docid": "eca15a995c6521dac63c2a1921a6d35f", "score": "0.52140385", "text": "public void setIsDifferentSicDescription(java.lang.Boolean isDifferentSicDescription) {\n this.isDifferentSicDescription = isDifferentSicDescription;\n }", "title": "" }, { "docid": "434f5105464d3a075765183e7c0e208b", "score": "0.5146359", "text": "public java.lang.Boolean getIsReviewedSic() {\n return isReviewedSic;\n }", "title": "" }, { "docid": "32810682be11bf8f50a1fa40d8c0b52c", "score": "0.5067271", "text": "public void setIsReviewedAddress(java.lang.Boolean isReviewedAddress) {\n this.isReviewedAddress = isReviewedAddress;\n }", "title": "" }, { "docid": "a29655f7ed74bbbb6fe8b70e6d21fae4", "score": "0.50128525", "text": "public void setIsDifferentNaicsCode(java.lang.Boolean isDifferentNaicsCode) {\n this.isDifferentNaicsCode = isDifferentNaicsCode;\n }", "title": "" }, { "docid": "edf227f7942bd69f6e3e943cb71dc2a7", "score": "0.49828967", "text": "public java.lang.Boolean getIsFlaggedWrongSicDescription() {\n return isFlaggedWrongSicDescription;\n }", "title": "" }, { "docid": "ef24219cf57f9565b321fcb5d8aa215c", "score": "0.49513564", "text": "public void setIsFlaggedWrongDescription(java.lang.Boolean isFlaggedWrongDescription) {\n this.isFlaggedWrongDescription = isFlaggedWrongDescription;\n }", "title": "" }, { "docid": "d7353267f5961e00f2436a7598ea6b3a", "score": "0.4844972", "text": "public java.lang.Boolean getIsFlaggedWrongNaicsCode() {\n return isFlaggedWrongNaicsCode;\n }", "title": "" }, { "docid": "4e928e61b494c0b739e660e190295b3f", "score": "0.47830716", "text": "public void setIsReviewedCompanyName(java.lang.Boolean isReviewedCompanyName) {\n this.isReviewedCompanyName = isReviewedCompanyName;\n }", "title": "" }, { "docid": "aa22b219dc96c7802664c0c1e84d29c4", "score": "0.4726281", "text": "public void setIsReviewedOwnership(java.lang.Boolean isReviewedOwnership) {\n this.isReviewedOwnership = isReviewedOwnership;\n }", "title": "" }, { "docid": "3ad37145206faf949324d47f594db1e6", "score": "0.47259992", "text": "public java.lang.String getNaicsDescription() {\n return naicsDescription;\n }", "title": "" }, { "docid": "ff1975e0bb4f1a6020ff3d302e47139d", "score": "0.4713846", "text": "public void setIsReviewedPhone(java.lang.Boolean isReviewedPhone) {\n this.isReviewedPhone = isReviewedPhone;\n }", "title": "" }, { "docid": "75b017a9b9e1071a08df02d4b998c89e", "score": "0.46247327", "text": "public void setIsDifferentDescription(java.lang.Boolean isDifferentDescription) {\n this.isDifferentDescription = isDifferentDescription;\n }", "title": "" }, { "docid": "6e49ff14c4572ec73932c8d86757e93e", "score": "0.45963368", "text": "public void setIsReviewedIndustry(java.lang.Boolean isReviewedIndustry) {\n this.isReviewedIndustry = isReviewedIndustry;\n }", "title": "" }, { "docid": "70dc8e1df344252c24f75425f8528601", "score": "0.45937833", "text": "public java.lang.Boolean getIsFlaggedWrongDescription() {\n return isFlaggedWrongDescription;\n }", "title": "" }, { "docid": "ea8b2db68bc8e42d91c5f01c7e8b29b7", "score": "0.44743592", "text": "public void setIsReviewedAnnualRevenue(java.lang.Boolean isReviewedAnnualRevenue) {\n this.isReviewedAnnualRevenue = isReviewedAnnualRevenue;\n }", "title": "" }, { "docid": "822253583ef1a2191aed2187e5122103", "score": "0.44644588", "text": "public void setRating_description(java.lang.String rating_description) {\n this.rating_description = rating_description;\n }", "title": "" }, { "docid": "12a10b6b61c9cca256b0f033a32b9301", "score": "0.44500965", "text": "public java.lang.Boolean getIsDifferentSicDescription() {\n return isDifferentSicDescription;\n }", "title": "" }, { "docid": "b64dd7d960b91be709f100e22cd10c51", "score": "0.44319746", "text": "public void setNfDescAr(String value) {\n setAttributeInternal(NFDESCAR, value);\n }", "title": "" }, { "docid": "1f8247d1d149e5a70401c16c7d325ee6", "score": "0.44209635", "text": "public void setDecideDescription(String decideDescription);", "title": "" }, { "docid": "e6033959322f49900c6199611386eb41", "score": "0.4416055", "text": "public void setRepriced(boolean repriced) {\r\n this.repriced = repriced;\r\n }", "title": "" }, { "docid": "f7de051baa08c2745c4d5945b37bfbad", "score": "0.44138086", "text": "public void setReviewBody(String reviewBody) {\n\t\tthis.reviewBody = reviewBody;\n\t}", "title": "" }, { "docid": "4ebe33e317c8012aa34676d8d0b10084", "score": "0.43782833", "text": "public void setNAICS (String NAICS);", "title": "" }, { "docid": "85075e1db4a2c7b6229240bd4d9989dc", "score": "0.43715325", "text": "public void setIsFlaggedWrongSic(java.lang.Boolean isFlaggedWrongSic) {\n this.isFlaggedWrongSic = isFlaggedWrongSic;\n }", "title": "" }, { "docid": "b5391e6bbbf716b0d7d90cd3419609c1", "score": "0.43638295", "text": "public void setIsReviewedFax(java.lang.Boolean isReviewedFax) {\n this.isReviewedFax = isReviewedFax;\n }", "title": "" }, { "docid": "bfe524e4765e7e66105acca7c8e3a7b8", "score": "0.436052", "text": "public void setIsReviewedAccountSite(java.lang.Boolean isReviewedAccountSite) {\n this.isReviewedAccountSite = isReviewedAccountSite;\n }", "title": "" }, { "docid": "129bdc739f372c089e3037073c4e4d11", "score": "0.43456134", "text": "public void setIsReviewedWebsite(java.lang.Boolean isReviewedWebsite) {\n this.isReviewedWebsite = isReviewedWebsite;\n }", "title": "" }, { "docid": "5b699fb28a3de6075b335fb636104e83", "score": "0.4307521", "text": "@Override\n public void showNotReviewView() {\n btnReviewCs.setVisibility(GONE);\n btnReviewCs.setEnabled(false);\n\n rc.setVisibility(GONE);\n\n showNoComment();\n }", "title": "" }, { "docid": "78ef22e972b413ba687469646543e963", "score": "0.43051863", "text": "void setReviewedDate(Date reviewedDate);", "title": "" }, { "docid": "dd4b835efe7260275bae2e1d611dc242", "score": "0.43041044", "text": "public void setIsReviewedNumberOfEmployees(java.lang.Boolean isReviewedNumberOfEmployees) {\n this.isReviewedNumberOfEmployees = isReviewedNumberOfEmployees;\n }", "title": "" }, { "docid": "cffeda80659cef0edfed1f4d84ed5f37", "score": "0.42799395", "text": "public java.lang.Boolean getIsDifferentNaicsCode() {\n return isDifferentNaicsCode;\n }", "title": "" }, { "docid": "07363c29c1b74dc8aed6d5cd147050d4", "score": "0.4210023", "text": "public void setNaicsCode(java.lang.String naicsCode) {\n this.naicsCode = naicsCode;\n }", "title": "" }, { "docid": "a7f2b7a81a96e1479bb04f179e1a8781", "score": "0.42058757", "text": "public void setRiskDescription(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(RISKDESCRIPTION_PROP.get(), value);\n }", "title": "" }, { "docid": "0133569364c90059f1b75a8488a8e693", "score": "0.41857615", "text": "public void setRequireDescription(boolean value) {\n this.requireDescription = value;\n }", "title": "" }, { "docid": "a24b3a9a0efcaf103d95328d995698b0", "score": "0.4183898", "text": "public void setDiscoverable(String value)\r\n {\r\n setAttributeInternal(DISCOVERABLE, value);\r\n }", "title": "" }, { "docid": "c15d17f8afbf832730da9df73ae96106", "score": "0.41762447", "text": "@Override\n public void showAfterRatedCs() {\n btnReviewCs.setVisibility(View.GONE);\n btnReviewCs.setEnabled(false);\n btnReviewCs.setText(getString(R.string.action_rating_has_been_sent));\n btnReviewCs.setTextColor(ContextCompat.getColor(activity, R.color.pale_olive_green));\n btnReviewCs.setBackgroundColor(ContextCompat.getColor(activity, R.color.transparent));\n }", "title": "" }, { "docid": "3c86d66ebdafc8889f963e701ebc7e5c", "score": "0.4158103", "text": "public void setInnerDescription(String innerDescription) {\n this.innerDescription = innerDescription == null ? null : innerDescription.trim();\n }", "title": "" }, { "docid": "2b46460408866b8cac0551dd9611f125", "score": "0.4148932", "text": "public void setIsDifferentSic(java.lang.Boolean isDifferentSic) {\n this.isDifferentSic = isDifferentSic;\n }", "title": "" }, { "docid": "05d4b1079a28341059a8985a8b17cf78", "score": "0.4133692", "text": "public void setItemReviewed(Thing itemReviewed) {\n\t\tthis.itemReviewed = itemReviewed;\n\t}", "title": "" }, { "docid": "2a79b38becf45d140529a0747575a2d8", "score": "0.41325656", "text": "public java.lang.Boolean getIsReviewedAddress() {\n return isReviewedAddress;\n }", "title": "" }, { "docid": "2fd231cd347bdb1ba78890707d7c0a3f", "score": "0.4129058", "text": "private void showReviewErrorMessage(boolean isInternetErrorForReview) {\n if(isInternetErrorForReview) {\n// First, hide the currently visible data\n mReviewRecyclerView.setVisibility(View.INVISIBLE);\n mReviewDetailErrorMessageDisplay.setVisibility(View.INVISIBLE);\n// Then, show the internet error\n mReviewErrorMessageDisplay.setVisibility(View.VISIBLE);\n }else{\n // First, hide the currently visible data and internet connection error message\n mReviewRecyclerView.setVisibility(View.INVISIBLE);\n mReviewErrorMessageDisplay.setVisibility(View.INVISIBLE);\n// Then, show the review data error\n mReviewDetailErrorMessageDisplay.setVisibility(View.VISIBLE);\n }\n }", "title": "" }, { "docid": "03ee7dd7b711d0e847496b6779fdf08a", "score": "0.41187257", "text": "@Override\r\n\tpublic void setCardDescription(String desc) {\n\t\t\r\n\t}", "title": "" }, { "docid": "b873564aa95b8f03bb3460f72f11d8f6", "score": "0.4117643", "text": "public void setSicDescription(java.lang.String sicDescription) {\n this.sicDescription = sicDescription;\n }", "title": "" }, { "docid": "67c4b31b6cbd796d01ead4df097f3a3b", "score": "0.41002908", "text": "public java.lang.Boolean getIsReviewedOwnership() {\n return isReviewedOwnership;\n }", "title": "" }, { "docid": "a6da0bac6036588c5e9d4bd3e9a527b4", "score": "0.40976018", "text": "private void setReviews() {\n int numberOfReviews = getListing().getNumberOfReviews();\n\n if (numberOfReviews==1) {\n this.reviews.setText(numberOfReviews + \" review\");\n } else {\n this.reviews.setText(numberOfReviews + \" reviews\");\n }\n }", "title": "" }, { "docid": "c1d61d251bb025141418abda3c22df70", "score": "0.40850604", "text": "public void setUsedInAutocat(boolean value) {\r\n this.usedInAutocat = value;\r\n }", "title": "" }, { "docid": "1ae2233e0cfab1f5753d8f7b1d66c12e", "score": "0.40847424", "text": "public java.lang.Boolean getIsDifferentDescription() {\n return isDifferentDescription;\n }", "title": "" }, { "docid": "a334d426ba2e6929659f907e16324c8a", "score": "0.40786126", "text": "public void setDescr(\n final String descr) {\n this.m_descr = descr;\n }", "title": "" }, { "docid": "e2d5fca34108042e8a7b2e60042b6ee8", "score": "0.40505427", "text": "@Override\n public void showBeforeRatedCs() {\n btnReviewCs.setVisibility(View.VISIBLE);\n btnReviewCs.setEnabled(true);\n }", "title": "" }, { "docid": "9644c9172f8fbe6b726916126e4ae572", "score": "0.4041525", "text": "public void setRecipeDesc(String desc) {\n this.descTv.setText(desc);\n }", "title": "" }, { "docid": "f9b21e009993fc2889ede3e9100c7ec6", "score": "0.40396845", "text": "public java.lang.Boolean getIsReviewedIndustry() {\n return isReviewedIndustry;\n }", "title": "" }, { "docid": "b05524297ea06510e1cedba199907119", "score": "0.4036078", "text": "public java.lang.Boolean getIsReviewedCompanyName() {\n return isReviewedCompanyName;\n }", "title": "" }, { "docid": "62a94df0e232b16e02162d529ac1824c", "score": "0.40248567", "text": "public void setIsAuthorityValidated(boolean z) {\n this.mIsAuthorityValidated = z;\n }", "title": "" }, { "docid": "270634fdee335dadfa9e97901372412a", "score": "0.40169814", "text": "public final native void setDisapproved(ItemDisapproved disapproved) /*-{\n this.setDisapproved(disapproved);\n }-*/;", "title": "" }, { "docid": "c77c7ffa28b710dfcdaccab705b1ed08", "score": "0.40114006", "text": "public void setNATIONALITY_RISK(String NATIONALITY_RISK) {\r\n this.NATIONALITY_RISK = NATIONALITY_RISK == null ? null : NATIONALITY_RISK.trim();\r\n }", "title": "" }, { "docid": "5870e8fbbd9ba8411780be3716782403", "score": "0.3998081", "text": "public void setIsReviewedDunsNumber(java.lang.Boolean isReviewedDunsNumber) {\n this.isReviewedDunsNumber = isReviewedDunsNumber;\n }", "title": "" }, { "docid": "3f6f69e41074f2edd524afd3613bc7ee", "score": "0.39964542", "text": "public void setIsReviewedDandBCompanyDunsNumber(java.lang.Boolean isReviewedDandBCompanyDunsNumber) {\n this.isReviewedDandBCompanyDunsNumber = isReviewedDandBCompanyDunsNumber;\n }", "title": "" }, { "docid": "d75f4b74f32bdbc3fce7e9d0f976713b", "score": "0.39885423", "text": "public void setRecommended(String recommended) {\n\t\tthis.recommended = recommended;\n\t}", "title": "" }, { "docid": "0282041bb7857f3e3ef392970ffe90fd", "score": "0.39845255", "text": "public DiscountCodeDraftBuilder description(\n @Nullable final com.commercetools.api.models.common.LocalizedString description) {\n this.description = description;\n return this;\n }", "title": "" }, { "docid": "a072b4935476f55644b5cf2302ecccd2", "score": "0.39781392", "text": "@ZAttr(id=849)\n public void setPrefCalendarSendInviteDeniedAutoReply(boolean zimbraPrefCalendarSendInviteDeniedAutoReply) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraPrefCalendarSendInviteDeniedAutoReply, zimbraPrefCalendarSendInviteDeniedAutoReply ? Provisioning.TRUE : Provisioning.FALSE);\n getProvisioning().modifyAttrs(this, attrs);\n }", "title": "" }, { "docid": "c534d427d3f4ae379f1f9356a9f0ef18", "score": "0.39774588", "text": "public java.lang.Boolean getIsFlaggedWrongSic() {\n return isFlaggedWrongSic;\n }", "title": "" }, { "docid": "e1784f4d3ae8bf2e5c6c9f33850d7551", "score": "0.3973961", "text": "public void setDiscipline(boolean discipline) {\n this.discipline = discipline;\n }", "title": "" }, { "docid": "20bcc849b8b332c0d2d0625598132d8a", "score": "0.39737555", "text": "public boolean isSetExhibit_description() {\r\n return this.exhibit_description != null;\r\n }", "title": "" }, { "docid": "ccf249d2f2c34fd21e7d40e1471a7ca9", "score": "0.39249724", "text": "public void setIsReviewedTradestyle(java.lang.Boolean isReviewedTradestyle) {\n this.isReviewedTradestyle = isReviewedTradestyle;\n }", "title": "" }, { "docid": "5f367ad6c948f71768192ce9a6c7f877", "score": "0.39211994", "text": "public abstract void setNonSpecificatoIniziale(boolean isNonSpecificatoIniziale);", "title": "" }, { "docid": "b5cbe56917e9e904f2aed000c2bef3bf", "score": "0.39151067", "text": "public void setAnonymizeIp(boolean z) {\n this.anonymizeIp = z;\n }", "title": "" }, { "docid": "c31fce1ada83c3a4a5d6ac19eb5c1ee4", "score": "0.39085388", "text": "public void setIsVariation(String isVariation) {\n\t\tthis.isVariation = isVariation == null ? null : isVariation.trim();\n\t}", "title": "" }, { "docid": "4d633e359d8de706a1d253dfad401e07", "score": "0.3907516", "text": "public void setRescDesc(String rescDesc) {\r\n this.rescDesc = rescDesc == null ? null : rescDesc.trim();\r\n }", "title": "" }, { "docid": "356a6b61bedce70bf23f0da631568d9e", "score": "0.39075136", "text": "public boolean isSetDescripcion() {\n return this.descripcion != null;\n }", "title": "" }, { "docid": "356a6b61bedce70bf23f0da631568d9e", "score": "0.39075136", "text": "public boolean isSetDescripcion() {\n return this.descripcion != null;\n }", "title": "" }, { "docid": "356a6b61bedce70bf23f0da631568d9e", "score": "0.39075136", "text": "public boolean isSetDescripcion() {\n return this.descripcion != null;\n }", "title": "" }, { "docid": "4c18e31ef43d7cb16d961e7fefa78881", "score": "0.3905253", "text": "public void setIsReviewedTickerSymbol(java.lang.Boolean isReviewedTickerSymbol) {\n this.isReviewedTickerSymbol = isReviewedTickerSymbol;\n }", "title": "" }, { "docid": "1d7d7545509c205c509ec5bcbcacf48c", "score": "0.38848555", "text": "public void setAllowDiscounts(boolean value) {\n this.allowDiscounts = value;\n }", "title": "" }, { "docid": "814c19f2f862e175ea46547f3bde5b0e", "score": "0.38796762", "text": "public java.lang.Boolean getIsReviewedAnnualRevenue() {\n return isReviewedAnnualRevenue;\n }", "title": "" }, { "docid": "2e04e4d17a055a8d2d823937573254af", "score": "0.38752663", "text": "public void setIsFlaggedWrongCompanyName(java.lang.Boolean isFlaggedWrongCompanyName) {\n this.isFlaggedWrongCompanyName = isFlaggedWrongCompanyName;\n }", "title": "" }, { "docid": "f22b8cfad52287bb222a237124022694", "score": "0.3868398", "text": "public boolean isSetDescripcion() {\n return this.descripcion != null;\n }", "title": "" }, { "docid": "081c02feafe7d8592500f4b540b215bf", "score": "0.38629267", "text": "public void setIsOverdue(Boolean isOverdue) {\n this.isOverdue = isOverdue;\n }", "title": "" }, { "docid": "9aa7d519a975730a0352a4906d77305e", "score": "0.38588527", "text": "public void setApproved(boolean approved) {\n this.approved = approved;\n }", "title": "" }, { "docid": "9ff4826dd8c2b7b47abd3a96da38f580", "score": "0.38464776", "text": "public void setNfIsDeleted(String value) {\n setAttributeInternal(NFISDELETED, value);\n }", "title": "" }, { "docid": "2acf91de2d3fe3692d5500e18514ce4c", "score": "0.38438764", "text": "public void setCorrect(boolean correct) {\r\n\t\tthis.correct = correct;\r\n\t}", "title": "" }, { "docid": "bc388cf34d5b924bce7f60d6a5ee75e6", "score": "0.3842506", "text": "public void setRuntimeInvisibleAnnotations(boolean v) {\n this.riAnn = v;\n }", "title": "" }, { "docid": "552a63357f21fe4b7d7f8df9e0a1089f", "score": "0.38394958", "text": "public void setReviewRating(Rating reviewRating) {\n\t\tthis.reviewRating = reviewRating;\n\t}", "title": "" }, { "docid": "e42db4f3d502578937a15f7f1b4d32b0", "score": "0.38341004", "text": "@ZAttr(id=849)\n public boolean isPrefCalendarSendInviteDeniedAutoReply() {\n return getBooleanAttr(Provisioning.A_zimbraPrefCalendarSendInviteDeniedAutoReply, false);\n }", "title": "" }, { "docid": "62f7034e4a2228065e31f1952adef6f9", "score": "0.38254353", "text": "public void setCni(Boolean Cni) {\n this.Cni = Cni;\n }", "title": "" }, { "docid": "d041464f450248117893333dea620663", "score": "0.38241407", "text": "public boolean isSetDescription() {\n return this.description != null;\n }", "title": "" }, { "docid": "d2c8a134546ce1f03050bb6ae448af5e", "score": "0.38210982", "text": "public void setIsaudit(String isaudit) {\n this.isaudit = isaudit == null ? null : isaudit.trim();\n }", "title": "" } ]
a4090e014583dd1ade9471cf5ff4070f
Writes a tile entity to NBT.
[ { "docid": "51b41eb3769848b7535ee32e540d4a61", "score": "0.584597", "text": "public void writeToNBT(NBTTagCompound var1)\n {\n super.writeToNBT(var1);\n this.storage.writeToNBT(var1);\n }", "title": "" } ]
[ { "docid": "dc0ea0fb5bd96a3ac83f97725e4bc490", "score": "0.7683273", "text": "public void writeEntityToNBT(NBTTagCompound paramfn)\r\n/* 189: */ {\r\n/* 190:204 */ paramfn.setShort(\"xTile\", (short)this.e);\r\n/* 191:205 */ paramfn.setShort(\"yTile\", (short)this.f);\r\n/* 192:206 */ paramfn.setShort(\"zTile\", (short)this.g);\r\n/* 193:207 */ oa localoa = (oa)BlockType.c.c(this.h);\r\n/* 194:208 */ paramfn.setString(\"inTile\", localoa == null ? \"\" : localoa.toString());\r\n/* 195:209 */ paramfn.setByte(\"inGround\", (byte)(this.i ? 1 : 0));\r\n/* 196:210 */ paramfn.setNBT(\"direction\", a(new double[] { this.xVelocity, this.yVelocity, this.zVelocity }));\r\n/* 197: */ }", "title": "" }, { "docid": "de83aafb60d7a3584a6dd37445a490a1", "score": "0.7490661", "text": "public void writeEntityToNBT(NBTTagCompound tagCompound)\n {\n tagCompound.setInteger(\"xTile\", this.xTile);\n tagCompound.setInteger(\"yTile\", this.yTile);\n tagCompound.setInteger(\"zTile\", this.zTile);\n ResourceLocation resourcelocation = (ResourceLocation)Block.blockRegistry.getNameForObject(this.inTile);\n tagCompound.setString(\"inTile\", resourcelocation == null ? \"\" : resourcelocation.toString());\n tagCompound.setByte(\"inGround\", (byte)(this.inGround ? 1 : 0));\n }", "title": "" }, { "docid": "04d78ac96b60522fb21d829b8885cd72", "score": "0.7155742", "text": "@Override\n\tprotected void writeEntityToNBT(NBTTagCompound p_70014_1_) {\n\t}", "title": "" }, { "docid": "e48c5fab0d238b3602b683fe3024dbb5", "score": "0.70846915", "text": "@Override\n public void writeEntityToNBT(NBTTagCompound tag) {\n super.writeEntityToNBT(tag);\n tag.setShort(\"BurnTime\", (short)this.burnTime);\n tag.setShort(\"CookTime\", (short)this.cookTime);\n }", "title": "" }, { "docid": "8f1d7e96f20b66eff7652dd6998e5d93", "score": "0.7077884", "text": "public void writeEntityToNBT(NBTTagCompound compound) {}", "title": "" }, { "docid": "4d2969adf3bbccbd8495982c515527c6", "score": "0.7033311", "text": "protected void writeEntityToNBT(NBTTagCompound compound) {\n/* 210 */ super.writeEntityToNBT(compound);\n/* */ \n/* 212 */ if (this.lootTable != null) {\n/* */ \n/* 214 */ compound.setString(\"LootTable\", this.lootTable.toString());\n/* */ \n/* 216 */ if (this.lootTableSeed != 0L)\n/* */ {\n/* 218 */ compound.setLong(\"LootTableSeed\", this.lootTableSeed);\n/* */ }\n/* */ }\n/* */ else {\n/* */ \n/* 223 */ ItemStackHelper.func_191282_a(compound, this.minecartContainerItems);\n/* */ } \n/* */ }", "title": "" }, { "docid": "531191ff7d6df31e01b0d95a1a80b831", "score": "0.67101127", "text": "public void writeEntityToNBT(NBTTagCompound p_70014_1_)\n\t{\n\t\tsuper.writeEntityToNBT( p_70014_1_ );\n\t}", "title": "" }, { "docid": "96a67de54c9001abeb6ab5a87e2dcaed", "score": "0.65950936", "text": "public void writeEntityToNBT(NBTTagCompound var1)\n {\n super.writeEntityToNBT(var1);\n var1.setShort(\"SAge\", (short)this.soulAge);\n var1.setShort(\"Evil\", (short)this.isHarbingerMinon);\n\n if (this.dataWatcher.getWatchableObjectByte(22) == 1)\n {\n var1.setBoolean(\"powered\", true);\n }\n\n var1.setShort(\"Fuse\", (short)this.fuseTime);\n var1.setByte(\"ExplosionRadius\", (byte)this.explosionRadius);\n }", "title": "" }, { "docid": "2a512703f04308e9653e959137bd44da", "score": "0.6567009", "text": "public void writeEntityToNBT(NBTTagCompound tagCompound) {\n/* 1033 */ super.writeEntityToNBT(tagCompound);\n/* 1034 */ tagCompound.setTag(\"Inventory\", (NBTBase)this.inventory.writeToNBT(new NBTTagList()));\n/* 1035 */ tagCompound.setInteger(\"SelectedItemSlot\", this.inventory.currentItem);\n/* 1036 */ tagCompound.setBoolean(\"Sleeping\", this.sleeping);\n/* 1037 */ tagCompound.setShort(\"SleepTimer\", (short)this.sleepTimer);\n/* 1038 */ tagCompound.setFloat(\"XpP\", this.experience);\n/* 1039 */ tagCompound.setInteger(\"XpLevel\", this.experienceLevel);\n/* 1040 */ tagCompound.setInteger(\"XpTotal\", this.experienceTotal);\n/* 1041 */ tagCompound.setInteger(\"XpSeed\", this.field_175152_f);\n/* 1042 */ tagCompound.setInteger(\"Score\", getScore());\n/* */ \n/* 1044 */ if (this.spawnChunk != null) {\n/* */ \n/* 1046 */ tagCompound.setInteger(\"SpawnX\", this.spawnChunk.getX());\n/* 1047 */ tagCompound.setInteger(\"SpawnY\", this.spawnChunk.getY());\n/* 1048 */ tagCompound.setInteger(\"SpawnZ\", this.spawnChunk.getZ());\n/* 1049 */ tagCompound.setBoolean(\"SpawnForced\", this.spawnForced);\n/* */ } \n/* */ \n/* 1052 */ this.foodStats.writeNBT(tagCompound);\n/* 1053 */ this.capabilities.writeCapabilitiesToNBT(tagCompound);\n/* 1054 */ tagCompound.setTag(\"EnderItems\", (NBTBase)this.theInventoryEnderChest.saveInventoryToNBT());\n/* 1055 */ ItemStack var2 = this.inventory.getCurrentItem();\n/* */ \n/* 1057 */ if (var2 != null && var2.getItem() != null)\n/* */ {\n/* 1059 */ tagCompound.setTag(\"SelectedItem\", (NBTBase)var2.writeToNBT(new NBTTagCompound()));\n/* */ }\n/* */ }", "title": "" }, { "docid": "304e614af297b4d0046378961ab22936", "score": "0.6555305", "text": "protected void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)\n {\n par1NBTTagCompound.setByte(\"Fuse\", (byte)this.fuse);\n }", "title": "" }, { "docid": "1a01650611a711cde1200e09fa0735ee", "score": "0.6421382", "text": "public void writeEntityToNBT(NBTTagCompound paramfn)\r\n/* 683: */ {\r\n/* 684: 787 */ super.writeEntityToNBT(paramfn);\r\n/* 685: 788 */ paramfn.setNBT(\"Inventory\", this.inventory.a(new fv()));\r\n/* 686: 789 */ paramfn.setInt(\"SelectedItemSlot\", this.inventory.c);\r\n/* 687: 790 */ paramfn.setBoolean(\"Sleeping\", this.bu);\r\n/* 688: 791 */ paramfn.setShort(\"SleepTimer\", (short)this.b);\r\n/* 689: 792 */ paramfn.setFloat(\"XpP\", this.bB);\r\n/* 690: 793 */ paramfn.setInt(\"XpLevel\", this.bz);\r\n/* 691: 794 */ paramfn.setInt(\"XpTotal\", this.bA);\r\n/* 692: 795 */ paramfn.setInt(\"XpSeed\", this.f);\r\n/* 693: 796 */ paramfn.setInt(\"Score\", bW());\r\n/* 694: 798 */ if (this.c != null)\r\n/* 695: */ {\r\n/* 696: 799 */ paramfn.setInt(\"SpawnX\", this.c.getX());\r\n/* 697: 800 */ paramfn.setInt(\"SpawnY\", this.c.getY());\r\n/* 698: 801 */ paramfn.setInt(\"SpawnZ\", this.c.getZ());\r\n/* 699: 802 */ paramfn.setBoolean(\"SpawnForced\", this.d);\r\n/* 700: */ }\r\n/* 701: 805 */ this.bj.b(paramfn);\r\n/* 702: 806 */ this.abilities.a(paramfn);\r\n/* 703: 807 */ paramfn.setNBT(\"EnderItems\", this.a.h());\r\n/* 704: */ \r\n/* 705: 809 */ ItemStack localamj = this.inventory.getHeldItem();\r\n/* 706: 810 */ if ((localamj != null) && (localamj.getItem() != null)) {\r\n/* 707: 811 */ paramfn.setNBT(\"SelectedItem\", localamj.writeToNBT(new NBTTagCompound()));\r\n/* 708: */ }\r\n/* 709: */ }", "title": "" }, { "docid": "c29d64d3922c23fda774b6f794f310d1", "score": "0.6406401", "text": "public void writeEntityToNBT(NBTTagCompound var1)\n {\n super.writeEntityToNBT(var1);\n var1.setShort(\"SAge\", (short)this.soulAge);\n var1.setShort(\"carried\", (short)this.getCarried());\n var1.setShort(\"carriedData\", (short)this.getCarryingData());\n var1.setShort(\"Evil\", (short)this.isHarbingerMinon);\n }", "title": "" }, { "docid": "a295d01042b18b974f2e52bcb0c6eff0", "score": "0.6350859", "text": "public void writeEntityToNBT(NBTTagCompound compound) {\n/* 370 */ super.writeEntityToNBT(compound);\n/* */ \n/* 372 */ compound.setInteger(\"HamonIntAge\", getIntAge());\n/* */ }", "title": "" }, { "docid": "c5c08943219cd69731e1db7a75823398", "score": "0.62525594", "text": "public void writeEntityToNBT(NBTTagCompound tagCompound)\n {\n super.writeEntityToNBT(tagCompound);\n }", "title": "" }, { "docid": "a36812a814505d2c2749a8421f3bd1fc", "score": "0.6150459", "text": "public void writeEntityToNBT(NBTTagCompound tagCompound)\n {\n super.writeEntityToNBT(tagCompound);\n IBlockState iblockstate = getHeldBlockState();\n tagCompound.setShort(\"carried\", (short)Block.getIdFromBlock(iblockstate.getBlock()));\n tagCompound.setShort(\"carriedData\", (short)iblockstate.getBlock().getMetaFromState(iblockstate));\n }", "title": "" }, { "docid": "b082cafc324fb9f39a3e2dd567b612a5", "score": "0.6133414", "text": "public static void saveChunk(TileEntity tileEntity) {\r\n\t\t\r\n\t\tif(tileEntity == null || tileEntity.isInvalid() || tileEntity.getWorld() == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttileEntity.getWorld().markChunkDirty(tileEntity.getPos(), tileEntity);\r\n\t}", "title": "" }, { "docid": "8e704e04d6c27d7c0a3e450959259935", "score": "0.6087661", "text": "@Override\n public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound) {\n super.writeEntityToNBT(par1NBTTagCompound);\n par1NBTTagCompound.setInteger(\"suffix\", dataWatcher.getWatchableObjectInt(18));\n par1NBTTagCompound.setInteger(\"prefix\", dataWatcher.getWatchableObjectInt(19));\n par1NBTTagCompound.setInteger(\"numeral\", dataWatcher.getWatchableObjectInt(20));\n par1NBTTagCompound.setInteger(\"chestX\", dataWatcher.getWatchableObjectInt(21));\n par1NBTTagCompound.setInteger(\"chestY\", dataWatcher.getWatchableObjectInt(22));\n par1NBTTagCompound.setInteger(\"chestZ\", dataWatcher.getWatchableObjectInt(23));\n }", "title": "" }, { "docid": "f45a368e26e23d5561caf000278496fd", "score": "0.6044201", "text": "@Override\n public void writeToNBT(NBTTagCompound nbt)\n {\n super.writeToNBT(nbt);\n\n NBTTagList nbtList = new NBTTagList();\n\n for (int i = 0; i < this.getSizeInventory(); ++i)\n {\n if (this.getStackInSlot(i) != null)\n {\n NBTTagCompound var4 = new NBTTagCompound();\n var4.setByte(\"Slot\", (byte) i);\n this.getStackInSlot(i).writeToNBT(var4);\n nbtList.appendTag(var4);\n }\n }\n\n nbt.setTag(\"Items\", nbtList);\n nbt.setBoolean(\"searchInventories\", this.searchInventories);\n }", "title": "" }, { "docid": "c612d48421855368d68f67072ce5314b", "score": "0.6036346", "text": "@Override\n\tpublic void writeToNBT(NBTTagCompound NBT)\n\t{\n\t\tsuper.writeToNBT(NBT);\n\t\tNBTTagList nbttaglist = new NBTTagList();\n\n\t\tfor (int i = 0; i < inventory.length; i++)\n\t\t{\n\t\t\tif (inventory[i] != null)\n\t\t\t{\n\t\t\t\tNBTTagCompound nbttagcompound = new NBTTagCompound();\n\t\t\t\tnbttagcompound.setByte(\"Slot\", (byte)i);\n\t\t\t\tinventory[i].writeToNBT(nbttagcompound);\n\t\t\t\tnbttaglist.appendTag(nbttagcompound);\n\t\t\t}\n\t\t}\n\n\t\tNBT.setTag(\"Items\", nbttaglist);\n\t\tNBT.setInteger(\"xp\", experience);\n\t}", "title": "" }, { "docid": "8779e19e945ed8d2260d9c417779e14b", "score": "0.60310465", "text": "@Override\n\tpublic void writeToNBT(NBTTagCompound nbt)\n\t{\n\t\tsuper.writeToNBT(nbt);\n\n\t\tNBTTagList var2 = new NBTTagList();\n\n\t\tfor (int i = 0; i < this.getSizeInventory(); ++i)\n\t\t{\n\t\t\tif (this.getStackInSlot(i) != null)\n\t\t\t{\n\t\t\t\tNBTTagCompound var4 = new NBTTagCompound();\n\t\t\t\tvar4.setByte(\"Slot\", (byte) i);\n\t\t\t\tthis.getStackInSlot(i).writeToNBT(var4);\n\t\t\t\tvar2.appendTag(var4);\n\t\t\t}\n\t\t}\n\n\t\tnbt.setTag(\"Items\", var2);\n\t}", "title": "" }, { "docid": "96272faf8f75264e8616b5d0c16b617c", "score": "0.59529924", "text": "@Override\n\tpublic void writeToNBT(NBTTagCompound NBT)\n\t{\n\t\tsuper.writeToNBT(NBT);\n\t\tNBT.setBoolean(\"winding\", winding);\n\t\tNBTTagList nbttaglist = new NBTTagList();\n\n\t\tfor (int i = 0; i < inslot.length; i++)\n\t\t{\n\t\t\tif (inslot[i] != null)\n\t\t\t{\n\t\t\t\tNBTTagCompound nbttagcompound = new NBTTagCompound();\n\t\t\t\tnbttagcompound.setByte(\"Slot\", (byte)i);\n\t\t\t\tinslot[i].writeToNBT(nbttagcompound);\n\t\t\t\tnbttaglist.appendTag(nbttagcompound);\n\t\t\t}\n\t\t}\n\n\t\tNBT.setTag(\"Items\", nbttaglist);\n\t}", "title": "" }, { "docid": "0701a60e2c5899230621c78c7b41820c", "score": "0.5902707", "text": "@Override\n\tpublic void writeToNBT(NBTTagCompound tag) {\n\t\tsuper.writeToNBT(tag);\n\t\twriteFluidStack(tag, \"output\", output);\n\t}", "title": "" }, { "docid": "0492d64b1f9b2168001f3fc021bc12db", "score": "0.5772414", "text": "public void setEntity(Tile tile, Entity entity)\n\t{\n\t\tentities[tile.getIndX()][tile.getIndY()] = entity;\n\t}", "title": "" }, { "docid": "beaad5a32f2f237dbf6cdcfc32e09ca5", "score": "0.5685973", "text": "protected void itemStackDataToTile(ItemStack itemStack, TileEntity tile) {\n \t\n }", "title": "" }, { "docid": "ccffe33b189a86aacd2ac416d7c8c174", "score": "0.56499565", "text": "public void writeNBT(NBTTagCompound par1NBTTagCompound)\r\n \t{\r\n \t\tNBTTagCompound foodCompound = new NBTTagCompound();\r\n \t\tfoodCompound.setFloat(\"waterLevel\", this.waterLevel);\r\n \t\tfoodCompound.setFloat(\"foodLevel\", this.foodLevel);\r\n \t\tfoodCompound.setLong(\"foodTickTimer\", this.foodTimer);\r\n \t\tfoodCompound.setLong(\"foodHealTimer\", this.foodHealTimer);\r\n \t\tfoodCompound.setLong(\"waterTimer\", this.waterTimer);\r\n \t\tfoodCompound.setFloat(\"foodSaturationLevel\", this.foodSaturationLevel);\r\n \t\tfoodCompound.setFloat(\"foodExhaustionLevel\", this.foodExhaustionLevel);\r\n \t\tpar1NBTTagCompound.setCompoundTag(\"foodCompound\", foodCompound);\r\n \t}", "title": "" }, { "docid": "14b2c9715f84ed741b1cb5f422d3e6ca", "score": "0.5593882", "text": "public void setTile(Tile t){\n tile = t;\n }", "title": "" }, { "docid": "096ad7d9f5f10961b1652ffcdd82bf63", "score": "0.55545086", "text": "public static void saveInventoryFields(IInventory inventory,\n IInventory tileEntity) {\n for (int i = 0; i < inventory.getFieldCount(); i++) {\n tileEntity.setField(i, inventory.getField(i));\n }\n }", "title": "" }, { "docid": "83e679b6953e646d6973310309d934fd", "score": "0.5517397", "text": "void save(T entity) throws IOException;", "title": "" }, { "docid": "1dc64fed0b66d88ccbc62a24ddf6a89a", "score": "0.54716915", "text": "@Override\n public void writeToNBT(NBTTagCompound nbttagcompound)\n {\n super.writeToNBT(nbttagcompound);\n NBTTagList nbttaglist = new NBTTagList();\n for(int i = 0; i < inventory.length; i++)\n {\n if(inventory[i] != null)\n {\n NBTTagCompound nbttagcompound1 = new NBTTagCompound();\n nbttagcompound1.setByte(\"Slot\", (byte)i);\n inventory[i].writeToNBT(nbttagcompound1);\n nbttaglist.setTag(nbttagcompound1);\n }\n }\n nbttagcompound.setTag(\"Items\", nbttaglist);\n }", "title": "" }, { "docid": "816a3da5ce5a702dd079f50e7293a31f", "score": "0.5451162", "text": "public void setTile (Tile tile) {\n myTile = tile;\n }", "title": "" }, { "docid": "2e6bba8ca1e232b112bdf0c7f7b8918e", "score": "0.5419794", "text": "public TileEntity getTileEntity() {\n return tileEntity;\n }", "title": "" }, { "docid": "5947bf6316f2610636c318cd9860e55c", "score": "0.54185426", "text": "public void writeToNBT(NBTTagCompound var1)\n {\n super.writeToNBT(var1);\n NBTTagList var2 = new NBTTagList();\n\n for (int var3 = 0; var3 < this.contents.length; ++var3)\n {\n if (this.contents[var3] != null)\n {\n NBTTagCompound var4 = new NBTTagCompound();\n var4.setByte(\"Slot\", (byte)var3);\n this.contents[var3].writeToNBT(var4);\n var2.appendTag(var4);\n }\n }\n\n var1.setTag(\"Items\", var2);\n var1.setByte(\"color\", this.color);\n }", "title": "" }, { "docid": "c5acbb87d4c51d58e200ecce702375e2", "score": "0.5402039", "text": "public static <T, I extends T> void writeNbt(Class<T> clazz, String name, I instance, NBTTagCompound tag) {\n NBTClassType<T> serializationClass = getClassType(clazz);\n if (serializationClass == null) {\n throw new RuntimeException(\"No valid NBT serialization was found for \" + instance + \" of type \" + clazz);\n }\n serializationClass.writePersistedField(name, instance, tag);\n }", "title": "" }, { "docid": "a4a983dec8d3d7ca1c91c41833433b8b", "score": "0.5379662", "text": "public void registerSpecialTileEntities() \n\t{\n\t\tGameRegistry.registerTileEntity(TileEntityTheoreticalElementizer.class, \"TheoreticalElementizer\");\n\t\tGameRegistry.registerTileEntity(TileEntityMetallurgicInfuser.class, \"MetallurgicInfuser\");\n\t\tGameRegistry.registerTileEntity(TileEntityPressurizedTube.class, \"PressurizedTube\");\n\t\tGameRegistry.registerTileEntity(TileEntityUniversalCable.class, \"UniversalCable\");\n\t\tGameRegistry.registerTileEntity(TileEntityElectricPump.class, \"ElectricPump\");\n\t}", "title": "" }, { "docid": "0ed895e627dd2f9a0a4213e86ea19225", "score": "0.5375211", "text": "public void writeNBT(NBTTagCompound par1NBTTagCompound)\n\t{\n\t\told.writeNBT(par1NBTTagCompound);\n\t\tpar1NBTTagCompound.setInteger(\"foodTickTimerUnsaga\", this.foodTimer);\n\n\t}", "title": "" }, { "docid": "4ffd9901938bd95a28be58139f01772c", "score": "0.5374354", "text": "public NBTTagCompound writeToNBT(NBTTagCompound tag) {\n\t\tNBTTagCompound data = new NBTTagCompound();\n\n\t\tdata.setDouble(\"energy\", energyStored);\n\t\ttag.setTag(getNbtTagName(), data);\n\n\t\treturn tag;\n\t}", "title": "" }, { "docid": "a4a22ce7adaf99ace7854ecfbc8d06ea", "score": "0.53412294", "text": "private void writeTile(Tile[][] board, Tile tile, int lineIndex, int columnIndex) {\n board[computeLineIndex(lineIndex, columnIndex)][computeColumnIndex(lineIndex, columnIndex)] = tile;\n }", "title": "" }, { "docid": "89423e2800487e56011b33bdff709e42", "score": "0.5303833", "text": "public void readEntityFromNBT(NBTTagCompound paramfn)\r\n/* 200: */ {\r\n/* 201:215 */ this.e = paramfn.e(\"xTile\");\r\n/* 202:216 */ this.f = paramfn.e(\"yTile\");\r\n/* 203:217 */ this.g = paramfn.e(\"zTile\");\r\n/* 204:218 */ if (paramfn.hasKey(\"inTile\", 8)) {\r\n/* 205:219 */ this.h = BlockType.b(paramfn.getString(\"inTile\"));\r\n/* 206: */ } else {\r\n/* 207:221 */ this.h = BlockType.c(paramfn.d(\"inTile\") & 0xFF);\r\n/* 208: */ }\r\n/* 209:223 */ this.i = (paramfn.d(\"inGround\") == 1);\r\n/* 210:227 */ if (paramfn.hasKey(\"direction\", 9))\r\n/* 211: */ {\r\n/* 212:228 */ fv localfv = paramfn.c(\"direction\", 6);\r\n/* 213:229 */ this.xVelocity = localfv.d(0);\r\n/* 214:230 */ this.yVelocity = localfv.d(1);\r\n/* 215:231 */ this.zVelocity = localfv.d(2);\r\n/* 216: */ }\r\n/* 217: */ else\r\n/* 218: */ {\r\n/* 219:233 */ setDead();\r\n/* 220: */ }\r\n/* 221: */ }", "title": "" }, { "docid": "5b9e22809aae2b64c39ca077fee9a5fb", "score": "0.52899843", "text": "public void encode(MAFTile maTile, DataOutputStream os) {\n\n try {\n os.writeInt(maTile.start);\n os.writeInt(maTile.end);\n os.writeInt(maTile.alignedSequences.size());\n for (Map.Entry<String, MASequence> entry : maTile.alignedSequences.entrySet()) {\n os.writeUTF(entry.getKey());\n os.writeUTF(entry.getValue().bases);\n }\n\n os.writeInt(maTile.gapAdjustedIdx.length);\n for (int i = 0; i < maTile.gapAdjustedIdx.length; i++) {\n os.writeInt(maTile.gapAdjustedIdx[i]);\n }\n os.flush();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d7ef61faa8e70b12f52fc45e7907deed", "score": "0.5287414", "text": "public interface ITile extends Serializable {\n /*\n * Returns the type of this tile\n *\n * @return hex type of this tile\n */\n public HexType type();\n\n /**\n * Returns the location of this tile\n *\n * @return location of this tile\n */\n public HexLocation location();\n\n /**\n * Returns the type of resource this tile gives out\n *\n * @return resource type\n */\n public ResourceType resource();\n\n /**\n * Returns the number token that is placed on this tile\n *\n * @return number of token\n */\n public int numberToken();\n\n /**\n * Determines if this tile has the robber placed on it.\n *\n * @return a flag indicating whether the tile has the robber\n */\n public boolean hasRobber();\n\n /**\n * Place the robber on this hex.\n * The hex must not already have the robber on it.\n */\n public void placeRobber();\n\n /**\n * Remove the robber from this hex.\n * The hex must already have the robber on it.\n */\n public void removeRobber();\n}", "title": "" }, { "docid": "ff2b508c96b482df4ae258e2cd757e21", "score": "0.52800786", "text": "TileEntity createNewTileEntity(World var1);", "title": "" }, { "docid": "2f1bc787ed45349912ba7ef67f02d281", "score": "0.527747", "text": "public interface Entity {\n\t\t/**\n\t\t * Write this entity to the output stream.\n\t\t *\n\t\t * @param out\n\t\t * @throws IOException\n\t\t */\n\t\tpublic void write(OutputStream out) throws IOException;\n\t}", "title": "" }, { "docid": "f76bd04eee34967533edea553bac396a", "score": "0.52699083", "text": "@Override\n public void waterTile() {\n }", "title": "" }, { "docid": "6067a2c2dfa23340737574c802a2d5fd", "score": "0.5232051", "text": "public CompoundNBT write(CompoundNBT compound) {\n compound.putLong(\"pos\", this.getPos().toLong());\n compound.putString(\"dimension\", this.dimensionKey.getLocation().toString());\n return compound;\n }", "title": "" }, { "docid": "93e082be5add9a39bc12fe6f82278953", "score": "0.52072453", "text": "public void writeTo(OutputStream outStream) throws IOException {\n/* 96 */ this.wrappedEntity.writeTo(outStream);\n/* */ }", "title": "" }, { "docid": "838d115ab697114f51f2b01d57cd433b", "score": "0.52053833", "text": "public void saveData(NBTTagCompound nbttagcompound) {\n/* 137 */ super.saveData(nbttagcompound);\n/* 138 */ nbttagcompound.setInt(\"AX\", this.d.getX());\n/* 139 */ nbttagcompound.setInt(\"AY\", this.d.getY());\n/* 140 */ nbttagcompound.setInt(\"AZ\", this.d.getZ());\n/* 141 */ nbttagcompound.setInt(\"Size\", getSize());\n/* */ \n/* 143 */ if (this.spawningEntity != null) {\n/* 144 */ nbttagcompound.setUUID(\"Paper.SpawningEntity\", this.spawningEntity);\n/* */ }\n/* */ }", "title": "" }, { "docid": "97b2f2f325a3518f0aaeea8744e5fed4", "score": "0.5161266", "text": "@Override\n\tpublic void writeTo(OutputStream out) throws IOException {\n\t\tsuper.writeTo(out);\n\t\tout.write(attack);\n\t\tout.write(hp);\n\t\tout.write(baseHp);\n\t\tout.write(buffMap);\n\t}", "title": "" }, { "docid": "e4995a1a8a7f8d73c72850333ea06b82", "score": "0.5156723", "text": "public void writeToNBT(NBTTagCompound var1)\n {\n super.writeToNBT(var1);\n var1.setByte(\"rot\", (byte)this.Rotation);\n }", "title": "" }, { "docid": "fade422e95f5bc27e03131213608f0ac", "score": "0.5135206", "text": "private static boolean compareNBT(TileEntity tileEntity, String[] path, String[] data) {\n NBTTagCompound tag = new NBTTagCompound();\n tileEntity.writeToNBT(tag);\n return PropertyGroupConditional.compareNBT(tag, path, data);\n }", "title": "" }, { "docid": "531acdd6cba3862f499dba31fc44a408", "score": "0.51274276", "text": "@Override\n\tpublic TileEntity createTileEntity(World world, IBlockState state) {\n\t\treturn new TileEntityPentacle();\n\t}", "title": "" }, { "docid": "638f60c2b03fb55e0c1423c175231033", "score": "0.5125001", "text": "public void sendZombieTPPacket() {\n\t\t//update zombie location\n\t\tthis.loc = ClickSpeed.getZombieLocation(this.p);\n\t\t\n\t\tPacketContainer packet = ClickSpeed.PM.createPacket(PacketType.Play.Server.ENTITY_TELEPORT);\n\t\t\n\t\tpacket.getIntegers().write(0, this.EID); //in game entity ID\n\t\tpacket.getIntegers().write(1, (int) Math.floor(this.loc.getX() * 32.0D)); //entity X pos\n\t\tpacket.getIntegers().write(2, (int) Math.floor((this.loc.getY() + 1) * 32.0D)); //entity Y pos\n\t\tpacket.getIntegers().write(3, (int) Math.floor(this.loc.getZ() * 32.0D)); //entity Z pos\n\t\tpacket.getBytes().write(0, (byte) 0); //entity pitch (irrelevant)\n\t\tpacket.getBytes().write(1, (byte) 0); //entity yaw (irrelevant)\n\t\tpacket.getBooleans().write(0, false); //entity is not necessarily on ground\n\t\t\n\t\ttry {\n\t\t\tClickSpeed.PM.sendServerPacket(this.p, packet);\n\t\t} catch (InvocationTargetException e) {\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t\t//if failed, cancel the test\n\t\t\tthis.p.sendMessage(\"§cProtocol code error, test failed!\");\n\t\t\tthis.stop();\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "df3a3265454ca252ab15d648565a6d67", "score": "0.5117716", "text": "public static Packet createStcSpawnEntity(\n Entity entity\n ) {\n EntityType entityType = entity.getType();\n PacketByteBuf buf = new PacketByteBuf(Unpooled.buffer());\n buf.writeString(EntityType.getId(entityType).toString());\n buf.writeInt(entity.getEntityId());\n DimId.writeWorldId(\n buf, entity.world.getRegistryKey(),\n entity.world.isClient\n );\n CompoundTag tag = new CompoundTag();\n entity.toTag(tag);\n buf.writeCompoundTag(tag);\n return new CustomPayloadS2CPacket(id_stcSpawnEntity, buf);\n }", "title": "" }, { "docid": "f6ddea15ec7f2ea84b26efae114c37e0", "score": "0.5116719", "text": "public void saveToFile(File f) throws IOException {\n\t\t//Creates a BufferedWriter\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(f));\n\t\tSystem.out.println(\"Writing mapfile...\");\n\t\t//Writes the dimensions to the file\n\t\tSystem.out.println(\"Writing dimensions...\");\n\t\tbw.write(\"width:\"+width+'\\n');\n\t\tbw.write(\"height:\"+height+'\\n');\n\t\t//Writes the spawn location to the file\n\t\tSystem.out.println(\"Writing spawn tile...\");\n\t\tbw.write(\"spawntile:\"+(int)spawnTile.x+\",\"+(int)spawnTile.y+'\\n');\n\t\t//Writes the tile types to the file\n\t\tSystem.out.println(\"Writing tile types...\");\n\t\tfor (Character c : tileTypes.keySet()) {\n\t\t\tif (walkable.contains(c+\"\")) {\n\t\t\t\tbw.write(\"dwalkable \"+c+\" \"+tileTypes.get(c)+'\\n');\n\t\t\t} else{\n\t\t\t\tbw.write(\"define \"+c+\" \"+tileTypes.get(c)+'\\n');\n\t\t\t}\n\t\t}\n\t\t//Writes the initial entities to the file\n\t\tSystem.out.println(\"Writing entities...\");\n\t\tfor (Entity e : initialEntities) {\n\t\t\tString name = e.getClass().getName();\n\t\t\tif (EntityManager.isAlias(e.getClass().getName()) == true)\n\t\t\t\tname = EntityManager.getAlias(e.getClass());\n\t\t\tString param = e.getParameters();\n\t\t\tbw.write(\"addentity 1, \"+name+\", \"+param+\"\\n\");\n\t\t\tSystem.out.println(\"Wrote entity: \\\"\"+name+\"\\\" with parameters: \"+param);\n\t\t}\n\t\t//Writes the map layout to the file\n\t\tSystem.out.println(\"Writing map layout...\");\n\t\tbw.write(\"startmap\\n\");\n\t\tfor (int y = 0; y < getHeightInTiles(); y++) {\n\t\t\tfor (int x = 0; x < getWidthInTiles(); x++) {\n\t\t\t\tbw.write(tiles[y][x]);\n\t\t\t}\n\t\t\tbw.newLine();\n\t\t}\n\t\t//Tells the interpreter that the map is done\n\t\tbw.write(\"endmap\\n\");\n\t\t//Writes the remaining layers\n\t\tSystem.out.println(\"Writing layer map layout(s)...\");\n\t\tfor (int i = 1; i < getLayers().size(); i++) {\n\t\t\tchar[][] layer = getLayers().get(i);\n\t\t\tbw.write(\"startlayer\\n\");\n\t\t\tfor (int y = 0; y < getHeightInTiles(); y++) {\n\t\t\t\tfor (int x = 0; x < getWidthInTiles(); x++) {\n\t\t\t\t\tbw.write(layer[y][x]);\n\t\t\t\t}\n\t\t\t\tbw.newLine();\n\t\t\t}\n\t\t\tbw.write(\"endlayer\\n\");\n\t\t}\n\t\t//Done!\n\t\tbw.close();\n\t\tSystem.out.println(\"Successfully saved map!\");\n\t}", "title": "" }, { "docid": "5afed35ef344152692938199087433f4", "score": "0.5115643", "text": "@Override\n public void contents(final Player player, final Inventory inventory) {\n inventory.setItem(4, new ItemBuilder(Material.ENDER_CHEST).setName(Lang.EDITOR_ITEM_SAVE.getText()).toItemStack());\n inventory.setItem(20, new ItemBuilder(Material.BOOK).setName(Lang.EDITOR_ITEM_LOAD.getText()).toItemStack());\n inventory.setItem(24, new ItemBuilder(Material.REDSTONE).setName(Lang.EDITOR_ITEM_RESET.getText()).toItemStack());\n }", "title": "" }, { "docid": "f1c38c6cff4a8ab67540dd56e0530c66", "score": "0.5042717", "text": "@Override\r\n\tpublic TileEntity createTileEntity(World world, IBlockState state) {\r\n\t\treturn new TeleportPadTileEntity();\t \r\n\t}", "title": "" }, { "docid": "fb54f8b194c9336dbb20cf7d5e0cffc7", "score": "0.5034253", "text": "@Test\r\n\tpublic void testTile(){\r\n\t\tTile in = new Tile(1000,2000,null,\"Example Room\",\"This is an example of a room\");\r\n\t\tSaver.saveTestObject(in,DEFAULT_TEST_FILENAME);\r\n\t\tTile out = (Tile)Loader.loadTestObject(DEFAULT_TEST_FILENAME);\r\n\t\tassert out.equals(in);\r\n\t}", "title": "" }, { "docid": "00ccb1a7d008659b8453f13810d10351", "score": "0.50273675", "text": "@Override\n public void write(@NotNull BinaryWriter writer) {\n super.write(writer);\n // Write recipe specific stuff.\n writer.writeVarInt(width);\n writer.writeVarInt(height);\n writer.writeSizedString(group);\n for (Ingredient ingredient : ingredients) {\n ingredient.write(writer);\n }\n writer.writeItemStack(result);\n }", "title": "" }, { "docid": "44a667f338780b4c7ba3238c306a502b", "score": "0.5009146", "text": "public NBTTagList writeToNBT(NBTTagList p_70442_1_) {\n/* */ int var2;\n/* 567 */ for (var2 = 0; var2 < this.mainInventory.length; var2++) {\n/* */ \n/* 569 */ if (this.mainInventory[var2] != null) {\n/* */ \n/* 571 */ NBTTagCompound var3 = new NBTTagCompound();\n/* 572 */ var3.setByte(\"Slot\", (byte)var2);\n/* 573 */ this.mainInventory[var2].writeToNBT(var3);\n/* 574 */ p_70442_1_.appendTag((NBTBase)var3);\n/* */ } \n/* */ } \n/* */ \n/* 578 */ for (var2 = 0; var2 < this.armorInventory.length; var2++) {\n/* */ \n/* 580 */ if (this.armorInventory[var2] != null) {\n/* */ \n/* 582 */ NBTTagCompound var3 = new NBTTagCompound();\n/* 583 */ var3.setByte(\"Slot\", (byte)(var2 + 100));\n/* 584 */ this.armorInventory[var2].writeToNBT(var3);\n/* 585 */ p_70442_1_.appendTag((NBTBase)var3);\n/* */ } \n/* */ } \n/* */ \n/* 589 */ return p_70442_1_;\n/* */ }", "title": "" }, { "docid": "7688d5998722852307bc27f111927d1e", "score": "0.5002469", "text": "public void writeEntity(JSONObject entity, ProcessInstance processInstance, String taskId){\n try {\n JSONParser jp = new JSONParser(JSONParser.MODE_JSON_SIMPLE);\n net.minidev.json.JSONObject o1 = (net.minidev.json.JSONObject) jp.parse(processInstance.getEntity()!=null?processInstance.getEntity().toString():\"{}\");\n net.minidev.json.JSONObject o2 = (net.minidev.json.JSONObject) jp.parse(entity.toString());\n o1.putAll(o2);\n processInstance.setEntity(o1.toString());\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "8c3cd104aa55e9baa9d006a60bab701a", "score": "0.4975398", "text": "private void generateTiles(Chunk chunk) {\n if (chunk.biome == BiomeType.FOREST || chunk.biome == BiomeType.PLAINS) {\n for (int i = 0; i < Chunk.SIZE / 16; i++) {\n for (int j = 0; j < Chunk.SIZE / 16; j++) {\n chunk.addObject(new GrassTile(chunk.gameScene, chunk.id_x * Chunk.SIZE + i * 16, chunk.id_y * Chunk.SIZE + j * 16));\n }\n }\n }\n else if (chunk.biome == BiomeType.DESERT) {\n for (int i = 0; i < Chunk.SIZE / 16; i++) {\n for (int j = 0; j < Chunk.SIZE / 16; j++) {\n String rightTexture = getRightPlainsTile(chunk.id_x, chunk.id_y, i, j, Chunk.SIZE/16);\n chunk.addObject(new DesertTile(chunk.gameScene, chunk.id_x * Chunk.SIZE + i * 16, chunk.id_y * Chunk.SIZE + j * 16,\n rightTexture));\n }\n }\n }\n // not used\n else {\n for (int i = 0; i < Chunk.SIZE / 16; i++) {\n for (int j = 0; j < Chunk.SIZE / 16; j++) {\n chunk.addObject(new RockyTile(chunk.gameScene, chunk.id_x * Chunk.SIZE + i * 16, chunk.id_y * Chunk.SIZE + j * 16));\n }\n }\n }\n }", "title": "" }, { "docid": "9cacdce8873943a04695e4f6110c3f1c", "score": "0.4972923", "text": "@Override\n public ByteTag serializeNBT() {\n\n return keyStateStorage.serializeNBT();\n }", "title": "" }, { "docid": "211e806e8a598af3698f4ccb05d9954f", "score": "0.49410468", "text": "public void readEntityFromNBT(NBTTagCompound tagCompund)\n {\n this.xTile = tagCompund.getInteger(\"xTile\");\n this.yTile = tagCompund.getInteger(\"yTile\");\n this.zTile = tagCompund.getInteger(\"zTile\");\n\n if (tagCompund.hasKey(\"inTile\", 8))\n {\n this.inTile = Block.getBlockFromName(tagCompund.getString(\"inTile\"));\n }\n else\n {\n this.inTile = Block.getBlockById(tagCompund.getByte(\"inTile\") & 255);\n }\n\n this.inGround = tagCompund.getByte(\"inGround\") == 1;\n }", "title": "" }, { "docid": "a57a179be63115c455d057953bb63b78", "score": "0.49409303", "text": "public Tile getTile() {\n return tile;\n }", "title": "" }, { "docid": "e80961341794c70932ccb90c3ba4f4f8", "score": "0.4935444", "text": "protected NetworkActivityEvent(TileEntity tileEntity, NBTTagCompound data) {\n this.world = tileEntity.getWorldObj();\n this.x = tileEntity.xCoord + 0.5;\n this.y = tileEntity.yCoord + 0.5;\n this.z = tileEntity.zCoord + 0.5;\n this.tileEntity = tileEntity;\n this.data = data;\n }", "title": "" }, { "docid": "41a63ef9d8adbaf0600eab97c586b3f4", "score": "0.4923471", "text": "@Override\n\tpublic TileEntity createNewTileEntity(World worldIn, int meta) {\n\t\treturn new TileInventoryAdvanced();\n\t}", "title": "" }, { "docid": "33beeda0de70644eb3b3970964b04d33", "score": "0.49219406", "text": "public void saveBiome() {\n\t\t/* Manage Errors */\n\t\ttry {\n\t\t\tFile saveFile = new File(SAVE_PATH + TYPE + SAVE_EXTENSION);\n\t\t\tPrintWriter output = new PrintWriter(saveFile);\n\n\t\t\t/*\n\t\t\t * Iterate through the buffer and write the appropriate number for each block\n\t\t\t */\n\t\t\tfor (int i = 0; i < mapBuffer.length; i++) {\n\t\t\t\tfor (int j = 0; j < mapBuffer[i].length; j++) {\n\t\t\t\t\tif (mapBuffer[i][j] == null) {\n\t\t\t\t\t} else {\n\t\t\t\t\t\tswitch (mapBuffer[i][j].getType()) {\n\t\t\t\t\t\t\tcase \"dirt\":\n\t\t\t\t\t\t\t\toutput.print(\"1\");\n\t\t\t\t\t\t\t\tbreak; // dirt is 1\n\t\t\t\t\t\t\tcase \"grass\":\n\t\t\t\t\t\t\t\toutput.print(\"2\");\n\t\t\t\t\t\t\t\tbreak; // grass is 2\n\t\t\t\t\t\t\tcase \"leaf\":\n\t\t\t\t\t\t\t\toutput.print(\"3\");\n\t\t\t\t\t\t\t\tbreak; // leaf is 3\n\t\t\t\t\t\t\tcase \"sand\":\n\t\t\t\t\t\t\t\toutput.print(\"4\");\n\t\t\t\t\t\t\t\tbreak; // sand is 4\n\t\t\t\t\t\t\tcase \"snow\":\n\t\t\t\t\t\t\t\toutput.print(\"5\");\n\t\t\t\t\t\t\t\tbreak; // snow is 5\n\t\t\t\t\t\t\tcase \"stone\":\n\t\t\t\t\t\t\t\toutput.print(\"6\");\n\t\t\t\t\t\t\t\tbreak; // stone is 6\n\t\t\t\t\t\t\tcase \"wood\":\n\t\t\t\t\t\t\t\toutput.print(\"7\");\n\t\t\t\t\t\t\t\tbreak; // wood is 7\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\toutput.print(\" \");\n\t\t\t\t\t\t\t\tbreak; // null is empty string\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toutput.println();\n\t\t\t}\n\t\t\toutput.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Err: Didn't Save File\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "900cb754c3bc1668cc6ec807437093cb", "score": "0.48942953", "text": "static void writeEntity(Format format,\n Catalog catalog,\n Object entity,\n DatabaseEntry data,\n boolean rawAccess)\n throws RefreshException {\n\n RecordOutput output = new RecordOutput(catalog, rawAccess);\n output.registerEntity(entity);\n output.writePackedInt(format.getId());\n format.writeObject(entity, output, rawAccess);\n TupleBase.outputToEntry(output, data);\n }", "title": "" }, { "docid": "4985b096076c1f47b581d7afb25c1ef5", "score": "0.48920944", "text": "public void setOccupied(Tile tile, Entity e)\n\t{\n\t\toccupied[tile.getIndX()][tile.getIndY()] = e;\n\t}", "title": "" }, { "docid": "4a2ecd4e70ced0ab523ece82dde4808a", "score": "0.48911053", "text": "private static void registerTileEntity(Class<? extends TileEntity> classType) {\n GameRegistry.registerTileEntity(classType, new ResourceLocation(ModRoot.MODID.toLowerCase() + \":\" + classType.getSimpleName().toLowerCase()));\n }", "title": "" }, { "docid": "d63e6c7b6804bd541b4afaa706484adf", "score": "0.48884016", "text": "public interface INBTData<T extends NBTBase> extends INBTSerializable<NBTTagCompound> {\n\tString NBT_KEY = \"data\";\n\n\t/**\n\t * Checks whether the {@link INBTData} should persists between saves.\n\t * It is used to remove data which is unused or no longer needed\n\t *\n\t * @return If it should save\n\t */\n\tboolean canDeserialize();\n\n\t/**\n\t * Reads the data of the {@param tag} NBT.\n\t * It is called once, when first loading the data\n\t *\n\t * @param tag The {@link T} NBT\n\t */\n\tvoid deserialize(T tag);\n\n\t/**\n\t * Writes itself to a {@link T} NBT\n\t *\n\t * @return The {@link T} NBT\n\t */\n\tT serialize();\n\n\t/**\n\t * Marks dirty World Data to save changes\n\t */\n\tdefault void dirty() {\n\t\tIPMApi.getWorldData().markDirty();\n\t}\n\n\t@Override\n\tdefault void deserializeNBT(NBTTagCompound nbt) {\n\t\t//noinspection unchecked\n\t\tdeserialize((T) nbt.getTag(NBT_KEY));\n\t}\n\n\t@Override\n\tdefault NBTTagCompound serializeNBT() {\n\t\tNBTTagCompound tag = new NBTTagCompound();\n\t\ttag.setTag(NBT_KEY, serialize());\n\t\treturn tag;\n\t}\n\n\t@Retention(RetentionPolicy.RUNTIME)\n\t@Target(ElementType.TYPE)\n\t@interface NBTHolder {\n\t\t/**\n\t\t * The unique mod Identifier of this mod.\n\t\t */\n\t\tString modId();\n\n\t\t/**\n\t\t * The unique Identifier of the saved data.\n\t\t * It mustn't change so the data persists even if you rename the class\n\t\t */\n\t\tString name();\n\t}\n}", "title": "" }, { "docid": "d7fcffe5e225a57c5aa0a99ef748e107", "score": "0.48539722", "text": "public void SaveMapInDataBase()\n {\n for(int y=0; y<height; y++)\n {\n StringBuilder s = new StringBuilder();\n for(int x=0; x<length; x++)\n {\n int id = GetTile(x,y).GetId();\n char c = (char)(id+'0');\n s.append(c);\n }\n refLink.GetGame().GetDataBase().UpdateMap(1,y, s.toString());\n System.out.println(s);\n }\n }", "title": "" }, { "docid": "52781dd0f2a8fab7617215bec783e025", "score": "0.48518237", "text": "public void onInventoryChanged()\r\n/* 123: */ {\r\n/* 124:114 */ if ((this.tank instanceof TileEntity)) {\r\n/* 125:115 */ ((TileEntity)this.tank).onInventoryChanged();\r\n/* 126: */ }\r\n/* 127: */ }", "title": "" }, { "docid": "b6bdbaea65070f581a4b7a6a65f5f1a8", "score": "0.48515686", "text": "@Override\n public void readEntityFromNBT(NBTTagCompound tag) {\n super.readEntityFromNBT(tag);\n this.burnTime = tag.getShort(\"BurnTime\");\n this.cookTime = tag.getShort(\"CookTime\");\n this.itemBurnTime = TileEntityFurnace.getItemBurnTime(this.getStackInSlot(1));\n }", "title": "" }, { "docid": "dd9e005c1f7d923ec8812cf4c2b72f46", "score": "0.48462853", "text": "@Override\n public void write(@NotNull BinaryWriter writer) {\n super.write(writer);\n // Write recipe specific stuff.\n writer.writeSizedString(group);\n writer.writeVarInt(ingredients.length);\n for (Ingredient ingredient : ingredients) {\n ingredient.write(writer);\n }\n writer.writeItemStack(result);\n }", "title": "" }, { "docid": "6ec1a39530d162d159c8f7297760fb28", "score": "0.48384073", "text": "public void readEntityFromNBT(NBTTagCompound compound) {}", "title": "" }, { "docid": "3112b38e52b81a76763b9e6c6f2782c4", "score": "0.48261535", "text": "@Override\n public SPacketUpdateTileEntity getUpdatePacket() {\n NBTTagCompound nbtTag = new NBTTagCompound();\n this.writeToNBT(nbtTag);\n return new SPacketUpdateTileEntity(getPos(), 1, nbtTag);\n }", "title": "" }, { "docid": "e6dc4fe9ef93e70d433da386265040df", "score": "0.4817508", "text": "@Override\n public SPacketUpdateTileEntity getUpdatePacket()\n {\n NBTTagCompound nbttagcompound = new NBTTagCompound();\n if (world.isRemote) return new SPacketUpdateTileEntity(this.getPos(), 3, nbttagcompound);\n this.writeToNBT(nbttagcompound);\n return new SPacketUpdateTileEntity(this.getPos(), 3, nbttagcompound);\n }", "title": "" }, { "docid": "4eec753ecf2d114133ab539cd4ecb4d7", "score": "0.48085213", "text": "public RsTileEntity(TileEntityType<?> te_type)\n { super(te_type); }", "title": "" }, { "docid": "9f174ca37801a82dce9ab15e036f2f27", "score": "0.48005056", "text": "private void saveEntity(WarehouseTransfer entity) {\n\t\tString strLog = \"[saveEgressType] \";\n\t\ttry {\n\n\t\t\tlog.info(strLog + \"[parameters] entity: \" + entity);\n\n\t\t\tWarehouseTransfer.Builder builder = null;\n\t\t\tif (entity == null) {\n\t\t\t\tbuilder = WarehouseTransfer.builder();\n\t\t\t} else {\n\t\t\t\tbuilder = WarehouseTransfer.builder(entity);\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * entity =\n\t\t\t * builder.code(txtCode.getValue().toUpperCase()).name(txtName.getValue().\n\t\t\t * toUpperCase()) .archived(false).build();\n\t\t\t */\n\n\t\t\tsave(egressTypeBll, entity, \"Tipo de egreso guardado\");\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(strLog + \"[Exception] \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "17f32dba4564e19c39ac432c487e4d46", "score": "0.4798188", "text": "private void addBossEntity(GeyserSession session, long entityId) {\n AddEntityPacket addEntityPacket = new AddEntityPacket();\n addEntityPacket.setUniqueEntityId(entityId);\n addEntityPacket.setRuntimeEntityId(entityId);\n addEntityPacket.setIdentifier(\"minecraft:creeper\");\n addEntityPacket.setEntityType(33);\n addEntityPacket.setPosition(session.getPlayerEntity().getPosition());\n addEntityPacket.setRotation(Vector3f.ZERO);\n addEntityPacket.setMotion(Vector3f.ZERO);\n addEntityPacket.getMetadata().put(EntityData.SCALE, 0.01F); // scale = 0 doesn't work?\n\n session.getUpstream().sendPacket(addEntityPacket);\n }", "title": "" }, { "docid": "6a00e3ac03c4780638fd83d67317b6ab", "score": "0.47959387", "text": "@Override\n public void write(@NotNull BinaryWriter writer) {\n super.write(writer);\n // Write recipe specific stuff.\n writer.writeSizedString(group);\n ingredient.write(writer);\n writer.writeItemStack(result);\n }", "title": "" }, { "docid": "1ee45d74d58c3097519cc7e29917d729", "score": "0.47930878", "text": "public void setTile(int x, int y, int floor, Tile tile) {\r\n //do nothing, since tiles are not cached server side\r\n }", "title": "" }, { "docid": "f65ffd038d2be91ecb69e60d19a5084e", "score": "0.4790355", "text": "List<TileEntity> getSubTiles();", "title": "" }, { "docid": "5a8654cc744d16d09c32c859b74622cc", "score": "0.47901624", "text": "@Override\n public void write(@NotNull BinaryWriter writer) {\n super.write(writer);\n // Write recipe specific stuff.\n writer.writeSizedString(group);\n ingredient.write(writer);\n writer.writeItemStack(result);\n writer.writeFloat(experience);\n writer.writeVarInt(cookingTime);\n }", "title": "" }, { "docid": "5a8654cc744d16d09c32c859b74622cc", "score": "0.47901624", "text": "@Override\n public void write(@NotNull BinaryWriter writer) {\n super.write(writer);\n // Write recipe specific stuff.\n writer.writeSizedString(group);\n ingredient.write(writer);\n writer.writeItemStack(result);\n writer.writeFloat(experience);\n writer.writeVarInt(cookingTime);\n }", "title": "" }, { "docid": "5a8654cc744d16d09c32c859b74622cc", "score": "0.47901624", "text": "@Override\n public void write(@NotNull BinaryWriter writer) {\n super.write(writer);\n // Write recipe specific stuff.\n writer.writeSizedString(group);\n ingredient.write(writer);\n writer.writeItemStack(result);\n writer.writeFloat(experience);\n writer.writeVarInt(cookingTime);\n }", "title": "" }, { "docid": "5a8654cc744d16d09c32c859b74622cc", "score": "0.47901624", "text": "@Override\n public void write(@NotNull BinaryWriter writer) {\n super.write(writer);\n // Write recipe specific stuff.\n writer.writeSizedString(group);\n ingredient.write(writer);\n writer.writeItemStack(result);\n writer.writeFloat(experience);\n writer.writeVarInt(cookingTime);\n }", "title": "" }, { "docid": "990f5a26825c9dbdd43bf6ab8fb0c688", "score": "0.47886553", "text": "@Override\n\tpublic String getInventoryName()\n\t{\n\t\treturn \"container.\" + getTileEntityName();\n\t}", "title": "" }, { "docid": "b01487f5e4c76e813fbe453c3d2f5136", "score": "0.47828314", "text": "@Override\r\n\tpublic void SaveLevel(Level level, OutputStream file) throws IOException\r\n\t{\n\t\tBufferedWriter bf = new BufferedWriter(new OutputStreamWriter(file));\r\n\t\tLevel myLevel = (Level) level;\r\n\t\t\r\n\t\t//Getting the size (row and column) of the level \r\n\t\tint row = myLevel.getRow();\r\n\t\tint col = myLevel.getCol();\r\n\t\t\r\n\t\tbf.write(level.getLevelID());\r\n\t\tbf.newLine();\r\n\t\t\r\n\t\t//Writing the items which it's representative char\r\n\t\tfor(int i = 0; i <row; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j < col; j++)\r\n\t\t\t{\t\t\t\r\n\t\t\t\tiMoveable m = myLevel.getItemsOnBoard()[i][j];\r\n\t\t\t\tif(m instanceof Player || m instanceof Box)\r\n\t\t\t\t\tbf.write(m.getTypeOfObject());\r\n\t\t\t\telse\r\n\t\t\t\t\tbf.write(myLevel.getBoard()[i][j].getTypeOfObject());\t\t\t\t\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//Checking if it is the last row (so there will be no new line)\r\n\t\t\tif(i == (row-1))\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tbf.newLine();\r\n\t\t\tbf.flush();\r\n\t\t}\t\t\r\n\t\t//If the outputStream is type of a PrintStream (like \"syso\") - don't close the buffer\r\n\t\tif(!(file instanceof PrintStream))\r\n\t\t\tbf.close();\r\n\t}", "title": "" }, { "docid": "10a23efcbf63c330cd19b248e2893200", "score": "0.47827685", "text": "@Nullable\n @Override\n public TileEntity createNewTileEntity(World worldIn, int meta) {\n return new TileEntityBlockKey();\n }", "title": "" }, { "docid": "44cd125eb96c2d4e3d894260a9c7c074", "score": "0.47809115", "text": "void write(DataOutput paramDataOutput) throws IOException {\n\t\tfor (String str : this.map.keySet()) {\n\t\t\tNBTBase nBTBase = (NBTBase) this.map.get(str);\n\t\t\ta(str, nBTBase, paramDataOutput);\n\t\t}\n\t\tparamDataOutput.writeByte(0);\n\t}", "title": "" }, { "docid": "e9447314ffb1748c368f7520de12eb5a", "score": "0.47722182", "text": "@Override\n\tpublic void onBlockPlacedBy(World world, int x, int y, int z, EntityLiving entity, ItemStack stack) {\n\t\tsuper.onBlockPlacedBy(world, x, y, z, entity, stack);\n\t\tForgeDirection orientation = Utils.get2dOrientation(new Position(entity.posX, entity.posY, entity.posZ), new Position(x, y, z));\n\n\t\tworld.setBlockMetadataWithNotify(x, y, z, orientation.getOpposite().ordinal(), 1);\n\t\tif (entity instanceof EntityPlayer) {\n\t\t\tTileQuarry tile = (TileQuarry) world.getBlockTileEntity(x, y, z);\n\t\t\tif (tile != null) {\n\t\t\t\ttile.placedBy = (EntityPlayer) entity;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9e023b88a347ae69b1320fe1eb127cf2", "score": "0.4771659", "text": "private void writeLevelData() throws IllegalArgumentException, IllegalStateException, IOException {\r\n\t\tfor(int i = 1; i <= levelcount; i++) {\r\n\t\t\tOurScene scene = sceneArray[i - 1];\r\n\r\n\t\t\tserializer.startTag(\"\", \"level\" + i);\r\n\t\t\tserializer.endTag(\"\", \"level\" + i);\r\n\t\t\t\r\n\t\t\tserializer.startTag(\"\", \"mapname\");\r\n\t\t\tserializer.attribute(\"\", \"name\", \"slot\" + slot + \"level\" + i + \".tmx\");\r\n\t\t\tserializer.endTag(\"\", \"mapname\");\r\n\r\n\t\t\tserializer.startTag(\"\", \"opponents\");\r\n\t\t\tserializer.endTag(\"\", \"opponents\");\r\n\t\t\tint opponentcount = 1;\r\n\t\t\tfor(int k = 0; k < scene.getChildCount(); k++) {\r\n\t\t\t\tif(scene.getChildByIndex(k) instanceof Opponent) {\r\n\t\t\t\t\tOpponent opponent = (Opponent)scene.getChildByIndex(k);\r\n\t\t\t\t\tserializer.startTag(\"\", \"opponent\" + opponentcount);\r\n\t\t\t\t\tserializer.attribute(\"\", \"positionX\", \"\" + opponent.getX());\r\n\t\t\t\t\tserializer.attribute(\"\", \"positionY\", \"\" + opponent.getY());\r\n\t\t\t\t\tserializer.attribute(\"\", \"level\", \"\" + i);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(opponent.isEpic()) {\r\n\t\t\t\t\t\tserializer.attribute(\"\", \"isEpic\", \"true\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tserializer.attribute(\"\", \"isEpic\", \"false\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tserializer.attribute(\"\", \"direction\", \"\" + opponent.getCurrentTileIndex());\r\n\t\t\t\t\tserializer.attribute(\"\", \"health\", \"\" + opponent.getHealth());\r\n\t\t\t\t\tserializer.endTag(\"\", \"opponent\" + opponentcount);\r\n\t\t\t\t\topponentcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tserializer.startTag(\"\", \"opponents\");\r\n\t\t\tserializer.endTag(\"\", \"opponents\");\r\n\t\t\t\r\n\t\t\tint npcCount = 1;\r\n\t\t\tserializer.startTag(\"\", \"npcs\");\r\n\t\t\tserializer.endTag(\"\", \"npcs\");\r\n\t\t\tfor(int k = 0; k < scene.getChildCount(); k++) {\r\n\t\t\t\tif(scene.getChildByIndex(k) instanceof NPC) {\r\n\t\t\t\t\tNPC npc = (NPC)scene.getChildByIndex(k);\r\n\t\t\t\t\tserializer.startTag(\"\", \"npc\" + npcCount);\r\n\t\t\t\t\tserializer.attribute(\"\", \"positionX\", \"\" + npc.getX());\r\n\t\t\t\t\tserializer.attribute(\"\", \"positionY\", \"\" + npc.getY());\r\n\t\t\t\t\tserializer.attribute(\"\", \"ID\", \"\" + npc.getID());\r\n\t\t\t\t\tserializer.attribute(\"\", \"direction\", \"\" + npc.getCurrentTileIndex());\r\n\t\t\t\t\tserializer.endTag(\"\", \"npc\" + npcCount);\r\n\t\t\t\t\tnpcCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tserializer.startTag(\"\", \"npcs\");\r\n\t\t\tserializer.endTag(\"\", \"npcs\");\r\n\r\n\t\t\tserializer.startTag(\"\", \"level\" + i);\r\n\t\t\tserializer.endTag(\"\", \"level\" + i);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "aa70a65b75b3a91a3f053638f189a44f", "score": "0.47612706", "text": "private void saveTile (SettingsAbstractMaster instance) {\n\t\tif (instance != null) {\n\t\t\t\n\t\t\tFile potentionalSettingsFile = new File(SettingsConstants.configSearchLocation + \n\t\t\t\t\t\t\t\t\t\t\t\t\tinstance.getClass().getSimpleName() +\n\t\t\t\t\t\t\t\t\t\t\t\t\tSettingsConstants.configSearchSuffix\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\t\t\t\n\t\t\t\n\t\t\tlog.debug(\"Saving tile '\"+instance.getType()+\"' to '\"+potentionalSettingsFile.getAbsolutePath()+\"'\");\n\t\t\tFileOutputStream fos;\n\t\t\tObjectOutputStream out;\n\t\t\t\n\t\t\t/* clear unwanted serialization data */\n\t\t\tinstance.beforeSerializing();\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t fos = new FileOutputStream(potentionalSettingsFile);\n\t\t\t out = new ObjectOutputStream(fos);\n\t\t\t out.writeObject(instance);\n\t\t\t out.close();\n\t\t\t} catch(IOException ex) {\n\t\t\t\tlog.error (\"Failed to write configuration file '\" + potentionalSettingsFile.getAbsolutePath()+\"'\", ex);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9b43b0a477df1c327c03cf7eb9993915", "score": "0.474987", "text": "public void readEntityFromNBT(NBTTagCompound tagCompund) {\n/* 987 */ super.readEntityFromNBT(tagCompund);\n/* 988 */ this.entityUniqueID = getUUID(this.gameProfile);\n/* 989 */ NBTTagList var2 = tagCompund.getTagList(\"Inventory\", 10);\n/* 990 */ this.inventory.readFromNBT(var2);\n/* 991 */ this.inventory.currentItem = tagCompund.getInteger(\"SelectedItemSlot\");\n/* 992 */ this.sleeping = tagCompund.getBoolean(\"Sleeping\");\n/* 993 */ this.sleepTimer = tagCompund.getShort(\"SleepTimer\");\n/* 994 */ this.experience = tagCompund.getFloat(\"XpP\");\n/* 995 */ this.experienceLevel = tagCompund.getInteger(\"XpLevel\");\n/* 996 */ this.experienceTotal = tagCompund.getInteger(\"XpTotal\");\n/* 997 */ this.field_175152_f = tagCompund.getInteger(\"XpSeed\");\n/* */ \n/* 999 */ if (this.field_175152_f == 0)\n/* */ {\n/* 1001 */ this.field_175152_f = this.rand.nextInt();\n/* */ }\n/* */ \n/* 1004 */ setScore(tagCompund.getInteger(\"Score\"));\n/* */ \n/* 1006 */ if (this.sleeping) {\n/* */ \n/* 1008 */ this.playerLocation = new BlockPos((Entity)this);\n/* 1009 */ wakeUpPlayer(true, true, false);\n/* */ } \n/* */ \n/* 1012 */ if (tagCompund.hasKey(\"SpawnX\", 99) && tagCompund.hasKey(\"SpawnY\", 99) && tagCompund.hasKey(\"SpawnZ\", 99)) {\n/* */ \n/* 1014 */ this.spawnChunk = new BlockPos(tagCompund.getInteger(\"SpawnX\"), tagCompund.getInteger(\"SpawnY\"), tagCompund.getInteger(\"SpawnZ\"));\n/* 1015 */ this.spawnForced = tagCompund.getBoolean(\"SpawnForced\");\n/* */ } \n/* */ \n/* 1018 */ this.foodStats.readNBT(tagCompund);\n/* 1019 */ this.capabilities.readCapabilitiesFromNBT(tagCompund);\n/* */ \n/* 1021 */ if (tagCompund.hasKey(\"EnderItems\", 9)) {\n/* */ \n/* 1023 */ NBTTagList var3 = tagCompund.getTagList(\"EnderItems\", 10);\n/* 1024 */ this.theInventoryEnderChest.loadInventoryFromNBT(var3);\n/* */ } \n/* */ }", "title": "" }, { "docid": "d275ed126ff434d7ff00572ff37cc55d", "score": "0.4744258", "text": "private void saveTile (SettingsConstants.SettingsTypes type) {\n\t\tsaveTile(settings.get(type));\n\t}", "title": "" }, { "docid": "7ba679d80eec9c62fb9f935a471e98a0", "score": "0.47388494", "text": "@Override\n public void takeContentsFromNBT(NBTTagCompound tag) {\n super.takeContentsFromNBT(tag);\n this.burnTime = tag.getShort(\"BurnTime\");\n this.cookTime = tag.getShort(\"CookTime\");\n this.itemBurnTime = TileEntityFurnace.getItemBurnTime(this.getStackInSlot(1));\n tag.setShort(\"BurnTime\", (short)0);\n tag.setShort(\"CookTime\", (short)0);\n }", "title": "" }, { "docid": "6facf8ccf375c9b983f387ca7289095b", "score": "0.4733924", "text": "public String getTILETYPE() {\n return tileType;\n }", "title": "" }, { "docid": "04fe5c0683d6e513f327254ed8169173", "score": "0.47194225", "text": "@Override\n\tprotected void readEntityFromNBT(NBTTagCompound p_70037_1_) {\n\t\t\n\t}", "title": "" }, { "docid": "750b4f4615454659bebc37c980149d83", "score": "0.47151318", "text": "@Override\r\n\tpublic void save(T entity) {\n\t\tSession session = util.getSession();\r\n\t\tsession.beginTransaction();\r\n\t\tsession.save(entity);\r\n\t\tsession.flush();\r\n\t\tsession.getTransaction().commit();\r\n\t\tsession.flush();\r\n\t\tsession.close();\r\n\t}", "title": "" } ]
fddef5b415d09317d874b1f21a1a775d
returns a Rectangle that is used in object collisions
[ { "docid": "0c1cd2f35c2f7c8bec52a50ee5f8228a", "score": "0.7173558", "text": "public Rectangle getBound(){\n \tint x = (int)location.getX();\n \tint y = (int)location.getY();\n \t\n \tif(isExploded == false)\n \t\treturn new Rectangle(x, y, image.getWidth(null), image.getHeight(null));\n \telse\n \t\treturn new Rectangle(x,y, 1,1);\n }", "title": "" } ]
[ { "docid": "9fbfd0838fcc60a339c892e79d0238a0", "score": "0.86750346", "text": "Rectangle getCollisionRectangle();", "title": "" }, { "docid": "9fbfd0838fcc60a339c892e79d0238a0", "score": "0.86750346", "text": "Rectangle getCollisionRectangle();", "title": "" }, { "docid": "392568bcbc990fd6a52a455d8945a84f", "score": "0.82603514", "text": "public Rectangle getCollisionRectangle() {\r\n return new Rectangle(this.rectangle.getUpperLeft(), this.rectangle.getWidth(), this.rectangle.getHeight());\r\n }", "title": "" }, { "docid": "472b9ff8c7188648c2eb7769fb7b52a6", "score": "0.81179804", "text": "Rectangle getCollisionBox();", "title": "" }, { "docid": "8c41b5deeaec08f39628cb759f9689b9", "score": "0.78944534", "text": "public Rectangle getCollisionRectangle() {\n return this.rectangle;\n }", "title": "" }, { "docid": "047184f9d719dee5022e01aa307ad7c4", "score": "0.7782872", "text": "public Rectangle getRectangle() {\r\n return new Rectangle((int) x, (int) y, cwidth, cheight);\r\n }", "title": "" }, { "docid": "fd05eaf61a7ae12d2d3acd17fb12eeee", "score": "0.7681123", "text": "public Rectangle get_rect() {\n\t\treturn new Rectangle(\n\t\t\t\torigin_x+component_x, \n\t\t\t\torigin_y+component_y-component_height+3, \n\t\t\t\tcomponent_width, \n\t\t\t\tcomponent_height\n\t\t\t);\n\t}", "title": "" }, { "docid": "49750b86547a25bed4db7303fa9cb299", "score": "0.7616025", "text": "Rectangle getRect(){\n \treturn new Rectangle(x,y,70,25);\n }", "title": "" }, { "docid": "e75eab6ec0656a89c83fe70a15b65db1", "score": "0.7580652", "text": "public Rectangle getRectangle() {\n if (isFacingRight) {\n return new Rectangle(getX() + R_HORIZ_OFF, getY() + VERT_OFF, SIDE_LEN, SIDE_LEN);\n } else {\n return new Rectangle(getX() + L_HORIZ_OFF, getY() + VERT_OFF, SIDE_LEN, SIDE_LEN);\n }\n }", "title": "" }, { "docid": "3c80eaf420a9d4e49c74c954ff11d9ad", "score": "0.7563049", "text": "public Rectangle getRectangle();", "title": "" }, { "docid": "34cc7a7b175bae14c48c1c088b146d1e", "score": "0.7555889", "text": "public Rectangle getBounds() {\n\treturn new Rectangle((int)x,(int)y,32,32);\n\t}", "title": "" }, { "docid": "301c039edd97214a93127a224b7148d1", "score": "0.75189185", "text": "public Rectangle getBounds()\n {\n return new Rectangle ((int)x,(int)y,32,32);\n }", "title": "" }, { "docid": "1f510980a5cdd917fba43d07cde8baca", "score": "0.74876773", "text": "public MyRectangle getRectangle() {\n\t\treturn new MyRectangle(x, y, width, height);\n\t}", "title": "" }, { "docid": "0332030d2a0bac8d11d1384ff54a7f7d", "score": "0.74654037", "text": "@Override\r\n\tpublic Rectangle getBound() {\n\t\treturn new Rectangle((int)x, (int)y, (int)width, (int)height);\r\n\t}", "title": "" }, { "docid": "36c2926f91e51c36bb8794569a0c2b01", "score": "0.7429951", "text": "public Rectangle getBounds() {\r\n\t\treturn new Rectangle((int) (x * scalingX), (int) (y * scalingY), (int) rocketWidth, (int) rocketHeight);\r\n\t}", "title": "" }, { "docid": "af587c13b2aa79138cbb5e148b368603", "score": "0.742714", "text": "public Rectangle bounds()\n\t{\n\t\treturn (new Rectangle(x, y, 10, 10));\n\t}", "title": "" }, { "docid": "2504b91fd069b3b68b4d14bef1b2bc7c", "score": "0.7422725", "text": "Rect getCollisionShape()\n {\n return new Rect(x+2,y+2,x +(width-2), y+(height-2));\n }", "title": "" }, { "docid": "c7af9e0300503557a3b5d356d64cd2d0", "score": "0.7301948", "text": "public Rectangle getBounds(){\r\n return new Rectangle(x, y, w, w);\r\n }", "title": "" }, { "docid": "5ca60297b6f6bae6df154c3a3b0ab2e6", "score": "0.72701895", "text": "public Rectangle2D getRectangle() {\n return rectangle;\n }", "title": "" }, { "docid": "3b0f0bec3075873d2a5ba49b12fec944", "score": "0.72673774", "text": "public Rectangle getBounds() {\n return new Rectangle(x, y, 32, 32);\n }", "title": "" }, { "docid": "1bbcbbc2f8dc1a566a974b0e5fdefa03", "score": "0.724612", "text": "public Rectangle getBounds() {\n return new Rectangle(x, y, DIAMETER, DIAMETER); // returns a rectangle with its dimensions\r\n }", "title": "" }, { "docid": "574f6f8c0c8c3bc6603e5cf86ae5ab60", "score": "0.72397417", "text": "public abstract Rectangle getBounds();", "title": "" }, { "docid": "574f6f8c0c8c3bc6603e5cf86ae5ab60", "score": "0.72397417", "text": "public abstract Rectangle getBounds();", "title": "" }, { "docid": "574f6f8c0c8c3bc6603e5cf86ae5ab60", "score": "0.72397417", "text": "public abstract Rectangle getBounds();", "title": "" }, { "docid": "b4db30f86240b5a52b80871fc4a33af1", "score": "0.72364", "text": "public Rectangle getBoundingBox() {\n return new Rectangle(this);\r\n }", "title": "" }, { "docid": "391cc1913c2478ff9e2eae445e97f248", "score": "0.72274315", "text": "public RMRect getBounds() { return new RMRect(getX(), getY(), getWidth(), getHeight()); }", "title": "" }, { "docid": "6fddb757695549b3089097eebb0cdf1a", "score": "0.7224747", "text": "public Rectangle getBounds() {\n\t\treturn new Rectangle((int) xPos, (int) yPos, (int) width, (int) height);\n\t}", "title": "" }, { "docid": "b62d881c77904b131c4a4b997c75be53", "score": "0.72115064", "text": "public Shape getRectangle() {\n return rectangle;\n }", "title": "" }, { "docid": "1733736e0a0bf4096c4b3d63e542cb6f", "score": "0.7211143", "text": "public Rectangle get_bounds() {\n return new Rectangle(x,y, width-3, height-3);\n }", "title": "" }, { "docid": "07e3cd06dd9e56e3b04884781ce9024f", "score": "0.7208395", "text": "public Rectangle getHitBox()\n\t{\n\t\treturn new Rectangle(x, y, width, height);\n\t}", "title": "" }, { "docid": "d31f442d0def2a0eb0dce8555c43e362", "score": "0.7189324", "text": "public Rectangle getRectangle() {\n return rectangle;\n }", "title": "" }, { "docid": "aad1bc3d91e2a1a16f63b5edeb2b1aed", "score": "0.71839875", "text": "Rectangle getBounds();", "title": "" }, { "docid": "8ac8bd528a4dd8f41fb188ec9fea9bd9", "score": "0.7174771", "text": "public Rectangle getRectangle() {\n\t\treturn new Rectangle(x, y, imgBullet.getIconWidth(), imgBullet.getIconHeight());\n\t}", "title": "" }, { "docid": "4f8ea237f5d6d2ac53574ccee4f09d80", "score": "0.71700364", "text": "public Rectangle getBounds() {\n\t\tRectangle Box = new Rectangle(x, y, 48, 48);\n\t\treturn Box;\n\t}", "title": "" }, { "docid": "e820892f5e6be797e1b27884780194d3", "score": "0.7165421", "text": "@Override\n\tpublic Rectangle2D getRectangle() {\n\t\treturn rect;\n\t}", "title": "" }, { "docid": "196f548f3b13e129b946ee243563549e", "score": "0.71639466", "text": "public RMRect bounds() { return new RMRect(x(), y(), width(), height()); }", "title": "" }, { "docid": "909d9df40d1514419a82ea14b281c90e", "score": "0.71600807", "text": "public Rectangle getBounds()\r\n\t{\r\n\t\treturn new Rectangle(x, y, w, h);\r\n\t}", "title": "" }, { "docid": "c0200427feac14f30c3ad3eee5aa5ab2", "score": "0.7139544", "text": "public Rectangle getBounds();", "title": "" }, { "docid": "c0200427feac14f30c3ad3eee5aa5ab2", "score": "0.7139544", "text": "public Rectangle getBounds();", "title": "" }, { "docid": "b91304493548efe9bc0ce8f2229579c3", "score": "0.71291125", "text": "public Rectangle2D getRectangle() {\n return Util.getRectangle(getLocation(), size);\n }", "title": "" }, { "docid": "65a177ef13afd3e58a64486d6e3ec5e2", "score": "0.7125969", "text": "Rectangle getPowerRect(){\n \treturn new Rectangle(powerX,powerY,35,35);\n }", "title": "" }, { "docid": "bc50a174e6afe33d6bb7d7baef6aa80c", "score": "0.71247476", "text": "public Rectangle getBounds() {\r\n return new Rectangle(x, y, 55, 51);\r\n }", "title": "" }, { "docid": "860c46694ea9d71ac7180183f53f934c", "score": "0.7114338", "text": "public Rectangle getRect() {\n return new Rectangle(x,y,(imageWeight-50),(imageHeight-50));\n }", "title": "" }, { "docid": "dbbaa38d2940d84363a144c948d32816", "score": "0.7113533", "text": "public Rectangle2D getBoundary() {\n return new Rectangle2D(x, y, width, height);\n }", "title": "" }, { "docid": "44642d86b2230fd81525c2db3fcbea19", "score": "0.7102859", "text": "@Override\n public Rectangle getBounds() {\n return new Rectangle(x,y,64,64);\n }", "title": "" }, { "docid": "b6d5797f531bc06475af97e5511b0757", "score": "0.7072319", "text": "public PDRectangle getRectDifference() {\n/* 615 */ COSBase base = getCOSObject().getDictionaryObject(COSName.RD);\n/* 616 */ if (base instanceof COSArray)\n/* */ {\n/* 618 */ return new PDRectangle((COSArray)base);\n/* */ }\n/* 620 */ return null;\n/* */ }", "title": "" }, { "docid": "aeb4ab92d057022f3c26c08640f216c0", "score": "0.70549697", "text": "public Rectangle getBounds() {\n\t\treturn new Rectangle(getX(),getY(),width, width);\n\t}", "title": "" }, { "docid": "dab6b00d466052c734178e54a33a258f", "score": "0.7044591", "text": "public Rectangle getBounds() {\n return new Rectangle((int) getX() - 20, (int) getY() - 20, 40, 40);\n }", "title": "" }, { "docid": "c140f1b329f826d7efb3bc128f66d774", "score": "0.7023748", "text": "public java.awt.Rectangle getBounds(){\r\n return new java.awt.Rectangle((int)Math.round(x), (int)Math.round(y), (int)Math.round(getWidth()), (int)Math.round(getHeight()));\r\n }", "title": "" }, { "docid": "5078752117d0e44f8b22c983d08bb561", "score": "0.70204467", "text": "Rectangle getBoundingBox(Rectangle rect);", "title": "" }, { "docid": "6fbe0f912799f7d6df5995cfaa3d83ae", "score": "0.7014902", "text": "public Rect hitBox(){\n return new Rect((int)getX(), (int)getY(), (int)getX() + spriteWidth, (int)getY() + spriteHeight);\n }", "title": "" }, { "docid": "d576c1b9d2b329ab178e1c9470d4fd69", "score": "0.69808245", "text": "public RMRect getBoundsInside() { return new RMRect(0, 0, getWidth(), getHeight()); }", "title": "" }, { "docid": "4ce8ac7b3ebf66a06501c6546d4a9e55", "score": "0.69642675", "text": "public Rectangle toRectangle()\r\n {\r\n return new Rectangle(x, y, width, height);\r\n }", "title": "" }, { "docid": "0c777aaf218217f440294e4a62504423", "score": "0.69635695", "text": "public Rect getBound() {\n return new Rect((int) (x - radius), (int) (y - radius), (int) (x + radius), (int) (y + radius));\n }", "title": "" }, { "docid": "9be5870a6c370d27d7395467fa2b2b61", "score": "0.6963454", "text": "void createRectangles();", "title": "" }, { "docid": "b0828f6622b29dcea62d517fb6bff67f", "score": "0.69384587", "text": "Rectangle getBounds() {\n return new Rectangle(getLocation(), getSize());\n }", "title": "" }, { "docid": "a76aef1f95d7fa8824194882d0d8560a", "score": "0.6935755", "text": "public Rectangle2D getBoundary()\n {\n \tRectangle2D shape = new Rectangle2D.Float();\n shape.setFrame(location.getX(),location.getY(),12,length);\n return shape;\n }", "title": "" }, { "docid": "331fb1b58488f7e9408720c0627f0d19", "score": "0.6934375", "text": "@Override\n\tpublic Rectangle getBound() {\n\t\trectBound.setX(posX+20);\n\t\trectBound.setY(Y_LAND - image.getHeight() +10);\n\t\trectBound.setWidth(image.getWidth()-10);\n\t\trectBound.setHeight(image.getHeight());\n\t\treturn rectBound;\n\t}", "title": "" }, { "docid": "7df7ecff006add88d8923968d0c924a6", "score": "0.6884131", "text": "public Rectangle getRectangulo() {\n\t\treturn new Rectangle(\n\t\t\t\t(int)x -clanchura,\n\t\t\t\t(int)y - claltura,\n\t\t\t\tclanchura,\n\t\t\t\tclaltura\n\t\t\t);\n\t}", "title": "" }, { "docid": "15c0c61351707e6839ad0eb1e7ded524", "score": "0.68570006", "text": "public RectF getSpriteBoundary() { return new RectF(atomSpriteBoundary); }", "title": "" }, { "docid": "637329af65c7fc481557b04f75ad49ac", "score": "0.68361664", "text": "public Rectangle getBoundsBigger() {\n return new Rectangle(x-32,y-32,128,128);\n }", "title": "" }, { "docid": "a0969e1b710bcfbb435e5f68dc042038", "score": "0.68174803", "text": "List<PathRectangle> getCollisionRectangles();", "title": "" }, { "docid": "3a6d849eb3cb33d2fbfe53cb9650fe55", "score": "0.68127435", "text": "public abstract Rectangle getSnapshotBounds();", "title": "" }, { "docid": "e3a8cd31113c034efaf057e65559e69a", "score": "0.6812101", "text": "public String getRectangleBounds() {\n checkAvailable();\n return impl.getRectangle();\n }", "title": "" }, { "docid": "7e3cce3d50fb121db05ba3d04d3f86eb", "score": "0.68014646", "text": "public Rectangle getBounds() {\n return new Rectangle(getMinX(), getMinY(), getWidth(), getHeight());\n }", "title": "" }, { "docid": "cc46d18978d2cc01ef17660e20ab85b7", "score": "0.6795635", "text": "public abstract Rectangle getSnapshotSquareBounds();", "title": "" }, { "docid": "5d2057725947355c60d251a849961da8", "score": "0.6782046", "text": "public PDRectangle createRetranslatedRectangle()\n {\n PDRectangle retval = new PDRectangle();\n retval.setUpperRightX( getWidth() );\n retval.setUpperRightY( getHeight() );\n return retval;\n }", "title": "" }, { "docid": "ae2eb8f5238ff3542063bcc607255cbf", "score": "0.67794114", "text": "private RectHV rectLb() {\n\n if (!horizontal) {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n p.x(),\n rect.ymax()\n );\n\n\n } else {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n rect.xmax(),\n p.y()\n );\n }\n }", "title": "" }, { "docid": "9db744dfd5683247f7e38ec0d731d4e6", "score": "0.67767256", "text": "@Override\n public Rectangle getBounds() {\n return new Rectangle(this.bounds);\n }", "title": "" }, { "docid": "0bf8b54613c13ba7ac11073de19da24f", "score": "0.67436194", "text": "private Geometry createRectangle(double x, double y, double w, double h) {\n Coordinate[] coords = {\n new Coordinate(x, y), new Coordinate(x, y + h),\n new Coordinate(x + w, y + h), new Coordinate(x + w, y),\n new Coordinate(x, y)\n };\n LinearRing lr = geometry.getFactory().createLinearRing(coords);\n\n return geometry.getFactory().createPolygon(lr, null);\n }", "title": "" }, { "docid": "5538880af8d738a8bce2ee9af10389d7", "score": "0.67348725", "text": "@Override\n\tpublic Rectangle getBoundingBox() {\n\t\tRectangle rectangle = new Rectangle(this.image.getWidth(), this.image.getWidth());\n\t\trectangle.setLocation(this.position);\n\t\treturn rectangle;\n\t}", "title": "" }, { "docid": "29d021618bd0a3676497d5c4de4bd7ed", "score": "0.6706275", "text": "public Rectangle getShape(){\n return myRectangle;\n }", "title": "" }, { "docid": "41d17a5d62540e5f030d4a500e8dbb5f", "score": "0.6677327", "text": "public CCAABoundingRectangle boundingRect(){\n\t\treturn _myBoundingRectangle;\n\t}", "title": "" }, { "docid": "afd0f17e75edc16103c05f00c364a461", "score": "0.6657212", "text": "@Override\r\n\tpublic Rectangle getRect() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "17def11c876db473a4310b63621c0a7c", "score": "0.6607094", "text": "protected void createRect()\r\n\t{\r\n\t\trect = new Rectangle(getX(),getY(),width,height);\r\n\t}", "title": "" }, { "docid": "194ce079e9fe77264547a593960de9eb", "score": "0.6594134", "text": "public WCRectangle intersection(WCRectangle r) {\n float tx1 = this.x;\n float ty1 = this.y;\n float rx1 = r.x;\n float ry1 = r.y;\n float tx2 = tx1; tx2 += this.w;\n float ty2 = ty1; ty2 += this.h;\n float rx2 = rx1; rx2 += r.w;\n float ry2 = ry1; ry2 += r.h;\n if (tx1 < rx1) tx1 = rx1;\n if (ty1 < ry1) ty1 = ry1;\n if (tx2 > rx2) tx2 = rx2;\n if (ty2 > ry2) ty2 = ry2;\n tx2 -= tx1;\n ty2 -= ty1;\n // tx2,ty2 will never overflow (they will never be\n // larger than the smallest of the two source w,h)\n // they might underflow, though...\n if (tx2 < Float.MIN_VALUE) tx2 = Float.MIN_VALUE;\n if (ty2 < Float.MIN_VALUE) ty2 = Float.MIN_VALUE;\n return new WCRectangle(tx1, ty1, tx2, ty2);\n }", "title": "" }, { "docid": "3e4a244344df7304b25041b6f5d48d7d", "score": "0.6565428", "text": "public Rectangle getBoundingBox() {\n\t\treturn getBounds();\n\t}", "title": "" }, { "docid": "af5f67660d4c63031ff7446f0b201ac7", "score": "0.65608937", "text": "public Rectangle getBounds() {\n\t\tif (img == null)\n\t\t\treturn new Rectangle();\n\t\treturn new Rectangle(new Dimension(img.getWidth(), img.getHeight()));\n\t}", "title": "" }, { "docid": "d29fb5aa1afb3c839fd147efebdef9fb", "score": "0.65481263", "text": "public Rectangle getBounds() {\r\n return bounds;\r\n }", "title": "" }, { "docid": "0342b376130be8a1d2f24354867e9a07", "score": "0.6525337", "text": "Rectangle(){\n height = 1;\n width = 1;\n }", "title": "" }, { "docid": "c3288dedb106ede50a7ed228e490b55c", "score": "0.65214825", "text": "public CustomRectangle() { }", "title": "" }, { "docid": "ddfcdedea8eca1595d0d105dfe0b1e58", "score": "0.6520469", "text": "public Rectangle getBounds() {\n return null;\n }", "title": "" }, { "docid": "0830fbbb9c0932dff914f4b1a92b225a", "score": "0.6514403", "text": "public Rectangle2D getBounds2D() {\n/* 155 */ if (this.usePrimitivePaint) {\n/* 156 */ Rectangle2D primitiveBounds = this.node.getPrimitiveBounds();\n/* 157 */ if (primitiveBounds == null) {\n/* 158 */ return new Rectangle2D.Double(0.0D, 0.0D, 0.0D, 0.0D);\n/* */ }\n/* 160 */ return (Rectangle2D)primitiveBounds.clone();\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ Rectangle2D bounds = this.node.getBounds();\n/* 169 */ if (bounds == null) {\n/* 170 */ return new Rectangle2D.Double(0.0D, 0.0D, 0.0D, 0.0D);\n/* */ }\n/* */ \n/* 173 */ AffineTransform at = this.node.getTransform();\n/* 174 */ if (at != null) {\n/* 175 */ bounds = at.createTransformedShape(bounds).getBounds2D();\n/* */ }\n/* 177 */ return bounds;\n/* */ }", "title": "" }, { "docid": "24d35e478b97ebc72bfb69fd58e4e7c6", "score": "0.6509647", "text": "public Rectangle getSkinnyRect(Block a){\n\t\tRectangle rect = new Rectangle(a.getX()+5, a.getY(), 20,30);\n\t\treturn rect;\n\t}", "title": "" }, { "docid": "a9e3bc522439fcfaf23cf559e36dc10e", "score": "0.6506044", "text": "@Override\n \tpublic Rectangle2D GetBoundingBox() {\n\t\treturn null;\n \t}", "title": "" }, { "docid": "57e36c1b9008faae6f79db68b1742482", "score": "0.6498176", "text": "public Rectangle getBounds() {\n\t\t\treturn new Rectangle(x_pos, y_pos, getIconWidth(), getIconHeight());\n\t\t}", "title": "" }, { "docid": "c21ac6111a3a3c8f7fc2adcc908c27f5", "score": "0.6473884", "text": "public Rectangle() {\n\t\tthis.corner = new Point();\n\t\tthis.size = new Point();\n\t}", "title": "" }, { "docid": "8eddb0ffd269f9c75e1af669b543fa5a", "score": "0.646577", "text": "public Rectangle2D getAnchorRect() {\n/* 91 */ return new Rectangle2D.Double(this.tx, this.ty, this.sx * this.bufImg\n/* 92 */ .getWidth(), this.sy * this.bufImg\n/* 93 */ .getHeight());\n/* */ }", "title": "" }, { "docid": "c77e31c2ba7b5ef745c0acfd7ed9102f", "score": "0.64501977", "text": "CollisionRule getCollisionRule();", "title": "" }, { "docid": "1c323fb4a2438fbddda282599807685f", "score": "0.6439559", "text": "protected Rectangle determineBounds() {\n return getNetTransform().createTransformedShape( _bounds ).getBounds();\n }", "title": "" }, { "docid": "16ee426c53984760a2a271a05c1a4e64", "score": "0.6424262", "text": "public Rectangle getAWTRectangle() {\n\t\tRectangle r = null;\n\t\tif (width >= 0) {\n\t\t\tif (height >= 0) {\n\t\t\t\tr = new Rectangle(this.origin.getX0(), this.origin\n\t\t\t\t\t\t.getY0(), width, height);\n\t\t\t} else {\n\t\t\t\t// width >= 0 && height < 0\n\t\t\t\tr = new Rectangle(this.origin.getX0(), this.origin\n\t\t\t\t\t\t.getY0()\n\t\t\t\t\t\t+ height, width, -height);\n\t\t\t}\n\t\t} else {\n\t\t\tif (height >= 0) {\n\t\t\t\tr = new Rectangle(this.origin.getX0() + width, this.origin\n\t\t\t\t\t\t.getY0(), -width, height);\n\t\t\t} else {\n\t\t\t\t// width < 0 && height < 0\n\t\t\t\tr = new Rectangle(this.origin.getX0() + width, this.origin\n\t\t\t\t\t\t.getY0()\n\t\t\t\t\t\t+ height, -width, -height);\n\t\t\t}\n\t\t}\n\t\treturn r;\n\t}", "title": "" }, { "docid": "1f3dc14a4bd9ba8753f55ad6abfe710a", "score": "0.6419528", "text": "@Override\n public COSBase getCOSObject()\n {\n return rectArray;\n }", "title": "" }, { "docid": "b5c542e870a908c2e9ed62db9d8e79da", "score": "0.641676", "text": "public Rectangle getCurrentRectangle() {\n return this.wotCharacter.getDrawable(this).getRectangle();\n }", "title": "" }, { "docid": "fa37227c9d86a890b609106b7269283a", "score": "0.64133906", "text": "public Rectangle getBuilding()\r\n {\r\n return building;\r\n }", "title": "" }, { "docid": "188efa7c0da6b625fb4d98db26872a5a", "score": "0.63964444", "text": "public Rectangle getShape() \n\t{\n\t\treturn box;\n\t}", "title": "" }, { "docid": "30a51e8c2f090b9d77089b0aee8f8a6c", "score": "0.6387247", "text": "@Override\n\tpublic BoundaryRectangle getBoundingBox() {\n\t\treturn new BoundaryRectangle(0, 0, drawView.getWidth(), drawView.getHeight());\n\t}", "title": "" }, { "docid": "e55f80c302edefea271f8a13e2d0d2e1", "score": "0.63807464", "text": "public MyRectangle MBR(int id,String minx2_s, String miny2_s, String maxx2_s, String maxy2_s)\n\t{\t\n\t\tMyRectangle rec;\t\t\t\t\n\t\t\t\n\t\tif(!HasRMBR(id))\n\t\t{\t\n\t\t\trec = new MyRectangle();\n\t\t\trec.min_x = Double.parseDouble(minx2_s);\n\t\t\trec.min_y = Double.parseDouble(miny2_s);\n\t\t\trec.max_x = Double.parseDouble(maxx2_s);\n\t\t\trec.max_y = Double.parseDouble(maxy2_s);\n\t\t\treturn rec;\n\t\t}\n\n\t\trec = GetRMBR(id);\t\n\t\t\n\t\tdouble minx2 = Double.parseDouble(minx2_s);\n\t\tdouble miny2 = Double.parseDouble(miny2_s);\n\t\tdouble maxx2 = Double.parseDouble(maxx2_s);\n\t\tdouble maxy2 = Double.parseDouble(maxy2_s);\n\t\t\n\t\tboolean flag = false;\n\t\tif(minx2 < rec.min_x)\n\t\t{\n\t\t\trec.min_x = minx2;\n\t\t\tflag = true;\n\t\t}\n\t\t\n\t\tif(miny2 < rec.min_y)\n\t\t{\n\t\t\trec.min_y = miny2;\n\t\t\tflag = true;\n\t\t}\n\t\t\n\t\tif(maxx2 > rec.max_x)\n\t\t{\n\t\t\trec.max_x = maxx2;\n\t\t\tflag = true;\n\t\t}\n\t\t\n\t\tif(maxy2 > rec.max_y)\n\t\t{\n\t\t\trec.max_y = maxy2;\n\t\t\tflag = true;\n\t\t}\n\t\t\n\t\tif(flag)\n\t\t\treturn rec;\n\t\telse\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "b481dfc27aa2eb911123ccdb285c173c", "score": "0.63750243", "text": "@Override\n\tpublic GRectangle getBounds() {\n\t\tif (isEmpty()) {\n\t\t\treturn new GRectangle();\n\t\t} else {\n\t\t\tGPoint p0 = points.get(0);\n\t\t\tdouble minX = p0.getX();\n\t\t\tdouble maxX = minX;\n\t\t\tdouble minY = p0.getY();\n\t\t\tdouble maxY = minY;\n\t\t\tfor (int i = 1; i < size(); i++) {\n\t\t\t\tGPoint p1 = points.get(i);\n\t\t\t\tminX = Math.min(minX, p1.getX());\n\t\t\t\tmaxX = Math.max(maxX, p1.getX());\n\t\t\t\tminY = Math.min(minY, p1.getY());\n\t\t\t\tmaxY = Math.max(maxY, p1.getY());\n\t\t\t}\n\t\t\treturn new GRectangle(minX, maxX, minY, maxY);\n\t\t}\n\t}", "title": "" }, { "docid": "faa147c8a4a35bbbcff1648b993eb198", "score": "0.63527894", "text": "public Rectangle getBoundingBox() {\n return location;\n }", "title": "" }, { "docid": "22ea1490242ff55e14219c6f9a082b41", "score": "0.6350894", "text": "@Override\n\tpublic Rectangle getBounds() {\n\t\treturn new Rectangle(screen_x, screen_y, pinWidth, pinWidth);\n\t}", "title": "" } ]
0b8745e68219c2a7fd7e58bb425846b5
Gets all the Nat Gateways in a subscription.
[ { "docid": "95d8ada25d10a4e7cee9bbb33f2b66d9", "score": "0.6348286", "text": "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<NatGateway> list() {\n return this.serviceClient.list();\n }", "title": "" } ]
[ { "docid": "85ea4285c7eeff2a4c464f9e6d4394f8", "score": "0.63745564", "text": "@Override\n\tpublic List<GateWayVO> getAllPaymentGateways() {\n\n\t\tList<GateWayVO> gateWayList = new ArrayList<GateWayVO>();\n\n\t\tList<GatewayTypeEnum> gateways = Arrays.asList(GatewayTypeEnum.values());\n\t\tgateways.stream().forEach(gateway -> {\n\t\t\tGateWayVO gateWayVO = new GateWayVO();\n\t\t\tgateWayVO.setId(gateway.getId());\n\t\t\tgateWayVO.setGateWayType(gateway);\n\t\t\tgateWayList.add(gateWayVO);\n\t\t});\n\t\tif (!gateWayList.isEmpty()) {\n\t\t\treturn gateWayList;\n\t\t}\n\t\treturn Collections.emptyList();\n\t}", "title": "" }, { "docid": "734a91706f7ec155a4199efa2ea5a645", "score": "0.62336755", "text": "NatGateways natGateways();", "title": "" }, { "docid": "c6a7ab4e4fa443043f832094bdd5c55c", "score": "0.5885154", "text": "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<NatGateway> list(Context context) {\n return this.serviceClient.list(context);\n }", "title": "" }, { "docid": "2f952b94ccf39659742301f5e056dc86", "score": "0.5864817", "text": "public List<MlsSubscription> getAllSubscriptions();", "title": "" }, { "docid": "87b821e9d4887dc1e8851d3db45bc34d", "score": "0.5724796", "text": "public NodeConfig.ProvSubscription[] getSubscriptions() {\n return (provSubscriptions);\n }", "title": "" }, { "docid": "ca1dd5487d1b930d521b6e931e804d79", "score": "0.56938845", "text": "public List<UserSubscription> getSubscriptionsWithRelations();", "title": "" }, { "docid": "0d0baf1dfe2c8dec11aec0247427f636", "score": "0.56651384", "text": "public List<GatewayConnection> connections() { return Collections.unmodifiableList(connections); }", "title": "" }, { "docid": "6c430cbf109744ed604267ff3c1aea22", "score": "0.5638682", "text": "public Subscriptions getSubscriptions() {\n Subscriptions subs = new Subscriptions();\n for ( int i = 0; i < handlers_.length; i++ ) {\n subs.putAll( handlers_[ i ].getSubscriptions() );\n }\n return subs;\n }", "title": "" }, { "docid": "dbead95cbaa30c2a487f4048b7a0415d", "score": "0.55767256", "text": "public final Map<String, LinkedList<Gate>> getaGatesNetwork() {\n\t\treturn aGatesNetwork;\n\t}", "title": "" }, { "docid": "04ba777004e352d53f27a1fa3ba84c53", "score": "0.5540803", "text": "java.util.List<io.toit.proto.toit.model.DeviceProto.ConnectionSetting> \n getConnectionsList();", "title": "" }, { "docid": "e8dfcd27204b975fe410eeff8ae6401d", "score": "0.5534483", "text": "Collection<EvpnPrivateRoute> getAllRoutes();", "title": "" }, { "docid": "6cb24934d0e220004ab7192941c656ab", "score": "0.5525402", "text": "com.google.cloud.iot.v1.GatewayListOptions getGatewayListOptions();", "title": "" }, { "docid": "a1c06dea2fe973d57c36af49761653b5", "score": "0.5505318", "text": "public List<SosNetwork> getNetworks();", "title": "" }, { "docid": "b121e2d0539ad9b73e022004b592d8a5", "score": "0.5494993", "text": "public List<UserSubscription> getSubscriptions();", "title": "" }, { "docid": "2907c8968bc6a5a7143ff9029ca83323", "score": "0.5463589", "text": "public GatewayDestinationsResponse retrieveGatewayDestinations();", "title": "" }, { "docid": "358fbd1bfb84e2378c88e5d60966f6e7", "score": "0.5412124", "text": "@GetMapping(\"/listSubscriptions\")\n public List<String> listSubscriptions() {\n return admin\n .listSubscriptions()\n .stream()\n .map(Subscription::getNameAsSubscriptionName)\n .map(SubscriptionName::getSubscription)\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "4633c30aecdc15ef9461e2f6d2bfbe42", "score": "0.53822565", "text": "List<SubResource> inboundNatPools();", "title": "" }, { "docid": "e4d364ec346ca87f4d2b1da46f048f31", "score": "0.5370081", "text": "@Path(\"getGatewayList/{floorId}\")\n\t@GET\n\t@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })\n\tpublic List<Gateway> getGateways(@PathParam(\"floorId\") Long floorId) {\n\t\t\n\t\tList<Gateway> gwList = facilityManager.getGateways(floorId);\n\t\treturn gwList;\n\t\t\n\t}", "title": "" }, { "docid": "c740fdcf4327d074acf181510c73139d", "score": "0.5309076", "text": "@GET\n @Path(\"/subscriptions\")\n public Response getSubscriptions() {\n final Multimap<String, Topic> subscriptions = subscriptionStore.getSubscriptions();\n return Response.ok(subscriptions.asMap()).build();\n }", "title": "" }, { "docid": "53944ce581a7fa01ebe876019f5b2f4b", "score": "0.52947617", "text": "@GET\n @Produces( \"text/uri-list\" )\n List<URI> listSubscriptions();", "title": "" }, { "docid": "0317d1ef482292a17f1efd76dcd000cf", "score": "0.52186877", "text": "public LinkedList<ProfileStore> getSubscriptions()\r\n\t{\r\n\t\tDBConnection DBConn = new DBConnection();\r\n\t\tDBConn.connect();\r\n\t\tLinkedList<ProfileStore> subscription_profiles = DBConn.getSubscriptions(username);\r\n\t\treturn subscription_profiles;\r\n\t}", "title": "" }, { "docid": "a889242554ca9a480623b8016f584b99", "score": "0.5214258", "text": "public Channel[] getSubscriptions()\n {\n ChannelImpl[] subscriptions=_subscriptions;\n if (subscriptions == null)\n return null;\n Channel[] channels=new Channel[subscriptions.length];\n System.arraycopy(subscriptions,0,channels,0,subscriptions.length);\n return channels;\n }", "title": "" }, { "docid": "74265377ce9869ab61c671f899a8d90b", "score": "0.51928985", "text": "java.util.List<? extends io.toit.proto.toit.model.DeviceProto.ConnectionSettingOrBuilder> \n getConnectionsOrBuilderList();", "title": "" }, { "docid": "d9b1f1062816f02c791d9a15b54b37a9", "score": "0.5189554", "text": "public List<String> getSubscriptions(StompServerConnection connection) { \n List<String> ret = delegate.getSubscriptions((io.vertx.ext.stomp.StompServerConnection)connection.getDelegate());\n return ret;\n }", "title": "" }, { "docid": "dfb0d25e95862710cddcf6da0d2b91fe", "score": "0.51876986", "text": "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<NatGateway> listByResourceGroup(String resourceGroupName) {\n return this.serviceClient.listByResourceGroup(resourceGroupName);\n }", "title": "" }, { "docid": "0db389aa45a6711de4b55082bbed6c4e", "score": "0.5173519", "text": "public BillingSubscriptionsClient getBillingSubscriptions() {\n return this.billingSubscriptions;\n }", "title": "" }, { "docid": "4e575505da3905c9a76d234b7e7c7d47", "score": "0.51604205", "text": "List<SubResource> inboundNatRules();", "title": "" }, { "docid": "4e575505da3905c9a76d234b7e7c7d47", "score": "0.51604205", "text": "List<SubResource> inboundNatRules();", "title": "" }, { "docid": "ceee682c9f5d338fcb612429ff762bf3", "score": "0.51480067", "text": "public AsyncResult<List<Subscription>> getSubscriptions() {\r\n return xmppSession.query(IQ.get(pubSubServiceAddress, PubSub.withSubscriptions(nodeId))).thenApply(result ->\r\n result.getExtension(PubSub.class).getSubscriptions());\r\n }", "title": "" }, { "docid": "822882e5ff3c672f51a3a075ea4852e7", "score": "0.5147277", "text": "public java.util.List<io.toit.proto.toit.model.DeviceProto.ConnectionSetting.Builder> \n getConnectionsBuilderList() {\n return getConnectionsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "4892eba0a904eaceab1088bac6e90559", "score": "0.5138822", "text": "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<NatGateway> listByResourceGroup(String resourceGroupName, Context context) {\n return this.serviceClient.listByResourceGroup(resourceGroupName, context);\n }", "title": "" }, { "docid": "4b4aa9aa6844ed56b42691534046cf20", "score": "0.509493", "text": "public Collection getAllNetworks()\n {\n\treturn _networkRecords.values();\n }", "title": "" }, { "docid": "9e203112dd5db460edd8084c846c37ad", "score": "0.50650084", "text": "io.toit.proto.toit.model.DeviceProto.ConnectionSettingOrBuilder getConnectionsOrBuilder(\n int index);", "title": "" }, { "docid": "ac01437c264d9b72486be0c55c154410", "score": "0.50275373", "text": "public List<Route> getAllRoutes();", "title": "" }, { "docid": "22f09b12d97efa4b6539a79dc91eba73", "score": "0.4992325", "text": "public java.util.List<io.toit.proto.toit.model.DeviceProto.ConnectionSetting> getConnectionsList() {\n return connections_;\n }", "title": "" }, { "docid": "0b4cb20bcf1975c5265d6266498d8189", "score": "0.49702764", "text": "io.toit.proto.toit.model.DeviceProto.ConnectionSetting getConnections(int index);", "title": "" }, { "docid": "7ea68619422ac09491d2f9768839013d", "score": "0.4953504", "text": "public ConcurrentSkipListSet<String> getSubscriptions() {\n\t\treturn subscriptions;\n\t}", "title": "" }, { "docid": "5c71308c663c6468971dfe3958773869", "score": "0.4942087", "text": "public AddressSpace[] getAllAddressSpaces();", "title": "" }, { "docid": "10cee52442889cd72673240c4ce62089", "score": "0.49089116", "text": "@Override\n public Collection<Firewall> list() throws InternalException, CloudException {\n \tArrayList<Firewall> list = new ArrayList<Firewall>();\n HashMap<Integer, Param> parameters = new HashMap<Integer, Param>();\n Param param = new Param(\"networkWithLocation\", null);\n \tparameters.put(0, param);\n \n \tparam = new Param(provider.getDefaultRegionId(), null);\n \tparameters.put(1, param);\n \n \tOpSourceMethod method = new OpSourceMethod(provider,\n \t\t\tprovider.buildUrl(null,true, parameters),\n \t\t\tprovider.getBasicRequestParameters(OpSource.Content_Type_Value_Single_Para, \"GET\",null));\n \tDocument doc = method.invoke();\n //Document doc = CallCache.getInstance().getAPICall(\"networkWithLocation\", provider, parameters);\n \n String sNS = \"\";\n try{\n sNS = doc.getDocumentElement().getTagName().substring(0, doc.getDocumentElement().getTagName().indexOf(\":\") + 1);\n }\n catch(IndexOutOfBoundsException ex){}\n NodeList matches = doc.getElementsByTagName(sNS + \"network\");\n if(matches != null){\n for( int i=0; i<matches.getLength(); i++ ) {\n Node node = matches.item(i); \n Firewall firewall = toFirewall(node); \n if( firewall != null ) {\n \tlist.add(firewall);\n }\n }\n }\n return list;\n }", "title": "" }, { "docid": "cc83c44409aba76c1a0b2c8cd78c7b92", "score": "0.49059635", "text": "public List<GatewayInstance> instances() {\n return this.instances;\n }", "title": "" }, { "docid": "82e7f88f90990ec7615b084fc5f904fd", "score": "0.48968884", "text": "Collection<Route> getRoutes();", "title": "" }, { "docid": "fd3c7601ee9e69fe5cff5825d2d8fc81", "score": "0.4883825", "text": "public java.util.List<io.toit.proto.toit.model.DeviceProto.ConnectionSetting> getConnectionsList() {\n if (connectionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(connections_);\n } else {\n return connectionsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "123997de76392cbcbd2f63a27e300a8c", "score": "0.48820955", "text": "public Set<T> getRoutes() {\n this.lock.lock();\n try {\n return new HashSet<T>(routeToPool.keySet());\n } finally {\n this.lock.unlock();\n }\n }", "title": "" }, { "docid": "a4812297fe5220b066b431611708ab81", "score": "0.48787427", "text": "public io.toit.proto.toit.model.DeviceProto.ConnectionSetting getConnections(int index) {\n return connections_.get(index);\n }", "title": "" }, { "docid": "d54349e638270fdfafacc1e97183996d", "score": "0.48594308", "text": "List<Route> GetRoutes();", "title": "" }, { "docid": "9b9ed78059da09a735f397de85128668", "score": "0.48554432", "text": "public List<Link> getOutgoingLinks();", "title": "" }, { "docid": "94a8d1c84e2bbdb10652eccbd3fa393f", "score": "0.48438293", "text": "public List<NodeConnection> getConnections()\n\t{\n\t\treturn Collections.unmodifiableList(this.connections);\n\t}", "title": "" }, { "docid": "3647be59eb5228e1da4d0ff8d583feb0", "score": "0.48373687", "text": "AdNetworkList getAdNetworkList();", "title": "" }, { "docid": "f380ce0d9590bc87bd3422fc4fcfc740", "score": "0.483087", "text": "public List<Arc> getOutgoingArcs() {\n return Collections.unmodifiableList(outgoings);\n }", "title": "" }, { "docid": "4703b36c0da25e8ff0117fad832caf28", "score": "0.4829824", "text": "List<GatewayLoadBalancerTunnelInterface> tunnelInterfaces();", "title": "" }, { "docid": "ea8b4f75a425e14f21e0747c9fe1d905", "score": "0.48226297", "text": "public ArrayList<RouteInfo> getRoutes() {\n return Router.routes;\n }", "title": "" }, { "docid": "5521552339a62b492016a1260c0c56f0", "score": "0.48213336", "text": "public int[] getPathways() {\n return super.getPathways();\n }", "title": "" }, { "docid": "68b4c021575b1823bfb9d83a6aab1249", "score": "0.4810106", "text": "Collection<Route> getRoutesForNextHop(NextHop nextHop);", "title": "" }, { "docid": "95e2971c98e5c667aecf5027c5f163ca", "score": "0.47912025", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n public NatGateway getByResourceGroup(String resourceGroupName, String natGatewayName) {\n return this.serviceClient.getByResourceGroup(resourceGroupName, natGatewayName);\n }", "title": "" }, { "docid": "7d7d1745a0cf5d6de70007f9c4639e68", "score": "0.4787525", "text": "public java.util.List<? extends io.toit.proto.toit.model.DeviceProto.ConnectionSettingOrBuilder> \n getConnectionsOrBuilderList() {\n return connections_;\n }", "title": "" }, { "docid": "d32c89d7f4dbe9576fdf46e6488763f0", "score": "0.4780897", "text": "@Override\n public List<Route> getRoutes() throws RestClientException {\n return routeClient.getRoutes().stream()\n .filter(r -> null == r.getConnectingAirport() && \"RYANAIR\".equalsIgnoreCase(r.getOperator()))\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "f05aa0f4f6508489ef242c5e37a8cbdc", "score": "0.47765607", "text": "public ArrayList<Connection> get_Connections() {\n\t\treturn Connections;\n\t}", "title": "" }, { "docid": "a8639abb3dcea7a09eb7352ccf3ec8e4", "score": "0.47732085", "text": "public TIntSet getRoutingOccupied() {\n synchronized (routingBits) {\n return new TIntHashSet(this.routingBits);\n }\n }", "title": "" }, { "docid": "75f330900f613a44b1d581555e4abc87", "score": "0.47716597", "text": "public java.util.List<? extends io.toit.proto.toit.model.DeviceProto.ConnectionSettingOrBuilder> \n getConnectionsOrBuilderList() {\n if (connectionsBuilder_ != null) {\n return connectionsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(connections_);\n }\n }", "title": "" }, { "docid": "870944eb53a2ee12ca3cee5e5b29c3f2", "score": "0.47612384", "text": "public io.toit.proto.toit.model.DeviceProto.ConnectionSettingOrBuilder getConnectionsOrBuilder(\n int index) {\n return connections_.get(index);\n }", "title": "" }, { "docid": "302056b583dcf4f8798776c8300d5936", "score": "0.47519138", "text": "List<Route> getAll();", "title": "" }, { "docid": "2d58735605979ed8ac70d0b198cee1ed", "score": "0.47401193", "text": "public Object getSubscriptions() throws ConnectException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "399ef93dd9fff1d35b4a6806ff58f751", "score": "0.47166973", "text": "public List<SSNetwork> listSNetwork(){\n\t\treturn new ArrayList<SSNetwork>(mapNetworks.values());\n\t}", "title": "" }, { "docid": "bac12eace5666f79623f7e8de211f1b7", "score": "0.4708982", "text": "@Override\n public Collection<Route> getRoutes() {\n return routeList;\n }", "title": "" }, { "docid": "89fb19b52e943f855b3bb2ee26fc2402", "score": "0.4708227", "text": "java.util.List<SteamdatagramMessages.CMsgSteamDatagramClientPingSampleReply.RoutingCluster> \n getRoutingClustersList();", "title": "" }, { "docid": "9e3a4d2cbd438e5f46589f9e64648e0e", "score": "0.47072658", "text": "public List<NearbyGateway> getNearByGateways(String gateway,String gateWayRange );", "title": "" }, { "docid": "61f26bcabc49ab47395e54f0e8bef59a", "score": "0.4691195", "text": "public ArrayList<DrawableNode> getConnections(){\n ArrayList<Node> nds=me.getConnections();\n HashMapIterator it=nodes.iterator(true);\n ArrayList<DrawableNode> drCon=new ArrayList();\n while(it.hasNext()){\n DrawableNode next=(DrawableNode)it.next();\n if(nds.contains(next.me)){\n drCon.add(next);\n }\n }\n return drCon;\n }", "title": "" }, { "docid": "5b3aab2b5cee79ffed01f77e783eadf9", "score": "0.46841937", "text": "private SubscriptionClass[] getSubscriptionClasses() {\n\t\treturn (CacheManagerUtil.getSubscriptionClassCacheManager().getAllSubscriptionClasses().toArray(new SubscriptionClass[0]));\n\t}", "title": "" }, { "docid": "519a6dbd766e401ab46d4bc7da667500", "score": "0.46840733", "text": "@RDF(Constants.NS_ROUTEIT + \"wayPoints\")\n LinkedList<WayPointFacade> getWayPoints();", "title": "" }, { "docid": "ab75e6e410987bbc4c1b74ec255a51db", "score": "0.46749237", "text": "public List<NetworkTapPropertiesDestinationsItem> destinations() {\n return this.destinations;\n }", "title": "" }, { "docid": "e2ace0e5323a15236792caa60576aa50", "score": "0.46697715", "text": "public java.util.List<NetworkInterface> getNetworkInterfaces() {\n return networkInterfaces;\n }", "title": "" }, { "docid": "881e561cd9431e2a2c810df887718831", "score": "0.46628547", "text": "com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptionsOrBuilder();", "title": "" }, { "docid": "312a51ad073641dfb660a3ee92f24ad1", "score": "0.46625245", "text": "public List<VirtualHubRoute> routes() {\n return this.routes;\n }", "title": "" }, { "docid": "19b8ec78fedfef013a67289168d0dc3c", "score": "0.46492022", "text": "public io.toit.proto.toit.model.DeviceProto.ConnectionSetting.Builder getConnectionsBuilder(\n int index) {\n return getConnectionsFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "37c0096cbe4ff08d8356bf5f72a4acbe", "score": "0.46450374", "text": "public Observable<List<Subreddit>> getSubscriptions() throws ServiceNotReadyException {\n Timber.v(\"getSubscriptions() called\");\n validateService();\n return mRedditData.getSubscriptions()\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread());\n }", "title": "" }, { "docid": "9a80d6328edceaa63f3ea9b049e3c772", "score": "0.4641972", "text": "Set<ServiceDiscoveryConfig> getAll();", "title": "" }, { "docid": "2f79a33b62204b1c1d4b19aa087195c7", "score": "0.463975", "text": "synchronized List<Connection> getConnections() {\n return new ArrayList<>(connections);\n }", "title": "" }, { "docid": "235ef8d07bbe20cee22f252a14b5091c", "score": "0.46233088", "text": "@RequestMapping(path = \"/\", method = RequestMethod.GET)\n public List<ChargingStation> getAllChargingStations() {\n return chargingStationService.findAllChargingStations();\n }", "title": "" }, { "docid": "d00c25617ec002c56622375f0e6bfb7d", "score": "0.46208075", "text": "List<SubResource> outboundRules();", "title": "" }, { "docid": "d00c25617ec002c56622375f0e6bfb7d", "score": "0.46208075", "text": "List<SubResource> outboundRules();", "title": "" }, { "docid": "cc3a6407919a35de86d12d641c09e64b", "score": "0.46188283", "text": "public Iterable<SubscriptionId> getSubscriptionIds() {\n\t\treturn _subscriptionIds;\n\t}", "title": "" }, { "docid": "cbc0598196f3d5c67c1a4f77130dc350", "score": "0.4616298", "text": "public java.util.List<SteamdatagramMessages.CMsgSteamDatagramClientPingSampleReply.RoutingCluster.Builder> \n getRoutingClustersBuilderList() {\n return getRoutingClustersFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "d22eac98d480ce65ded5a368aef633a3", "score": "0.46113944", "text": "public Collection<GISConfiguration> getALL()\r\n {\n return gisConfigurationStore.getALL();\r\n }", "title": "" }, { "docid": "0e9af141927ea9786de77bf30a909cad", "score": "0.4604922", "text": "@ZAttr(id=571)\n public String[] getIMAvailableInteropGateways() {\n return getMultiAttr(Provisioning.A_zimbraIMAvailableInteropGateways);\n }", "title": "" }, { "docid": "4dbb6e821514dc1775f808d34145f9f2", "score": "0.46041766", "text": "Map<String, GateElementEx> getGateSizes();", "title": "" }, { "docid": "0c21d55a0828979a97d79910608c0ba7", "score": "0.45777717", "text": "@Override\n\tpublic Array<Connection<MyNode>> getConnections(MyNode fromNode)\n\t\t{\n\t\treturn fromNode.getConnections();\n\t\t}", "title": "" }, { "docid": "12b0831d1a1e851d363090c38d8f8321", "score": "0.4572619", "text": "public java.util.List<GatewayCapabilitySummary> getGatewayCapabilitySummaries() {\n return gatewayCapabilitySummaries;\n }", "title": "" }, { "docid": "752ed92f642268d089f3afe44715af75", "score": "0.4565661", "text": "public AsyncResult<SubscribeOptions> getSubscriptionOptions() {\r\n return getSubscriptionOptions(null);\r\n }", "title": "" }, { "docid": "9e37a5b78d0aeeccc1d5537466ca2f3d", "score": "0.45637524", "text": "public List<NetworkInterface> getNetworkInterfaces() {\n\t\tthrow new UnsupportedOperationException(\"Not implemented yet.\");\n\t}", "title": "" }, { "docid": "71770cd9bbc2e957ef14787ffddae991", "score": "0.4563256", "text": "public AddressSpace[] getAddressSpaces();", "title": "" }, { "docid": "358a03fe4d1d14147f82d2db5dc33704", "score": "0.45615384", "text": "public Set<Connection> GetConnections()\n {\n return _connections;\n }", "title": "" }, { "docid": "0196a89c2e891dcba677f9cc10c6a3bc", "score": "0.45583433", "text": "public List<Identity> getConnections(Identity identity) throws RelationshipStorageException;", "title": "" }, { "docid": "960314a59540637f410df9d03b674c25", "score": "0.45474115", "text": "@Override\n\tpublic Zone[] possibleConnectionsFrom(long src)\n\t{\n\t\tCollection<Zone> toRet = Database.templateZone.readAll();\n\t\treturn toRet.toArray(new Zone[toRet.size()]);\n\t}", "title": "" }, { "docid": "6878b03f22aa3480bb8d4e82489b2246", "score": "0.45412797", "text": "public List<String> getAllSubscriptions() throws Exception {\n StringBuilder sql = new StringBuilder(); \n sql.append(\"select USER_ID from \")\n .append(ReportingTable.AM_SUBSCRIBER.getTObject());\n Connection conn = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n List<String> subscriber = new ArrayList<String>();\n try {\n conn = DbUtils.getDbConnection(DataSourceNames.WSO2AM_DB);\n ps = conn.prepareStatement(sql.toString());\n rs = ps.executeQuery();\n while (rs.next()) {\n subscriber.add(rs.getString(\"USER_ID\"));\n }\n\n } catch (Exception e) {\n handleException(\"getAllSubscriptions\", e);\n } finally {\n DbUtils.closeAllConnections(ps, conn, rs);\n }\n return subscriber;\n }", "title": "" }, { "docid": "7417f32b50baf13418ad111499592e75", "score": "0.45406473", "text": "List<DialPlanDto> getAllDialPlans();", "title": "" }, { "docid": "76d031311c2f6d238c0a533ba67a337b", "score": "0.45370132", "text": "RouteTableSubnets routeTableSubnets();", "title": "" }, { "docid": "95fcd00a81c777d75deefbaab5d3abc0", "score": "0.4533789", "text": "public java.util.List<Address> getDestinations() {\n return destinations;\n }", "title": "" }, { "docid": "54583da97aea77b1f373343bbe1e6e21", "score": "0.45296013", "text": "com.cloudera.thunderhead.telemetry.nodestatus.NodeStatusProto.NetworkConnections getConnections();", "title": "" }, { "docid": "8bd4dc7e7d82f79e0b0536c2f50419f3", "score": "0.45272663", "text": "@Override\n public List<String> getOutgoingConnectionTypes() {\n return new ArrayList<String>();\n }", "title": "" }, { "docid": "b9007e9919f7f9aaac07b5a71bf63546", "score": "0.45271403", "text": "List<IModelSubgraph> getDirectSubgraphs();", "title": "" } ]
7d19d95e2c7567489d9c630465d665df
logService.functionTag("cursorToLichThi", "cursor to lichthi");
[ { "docid": "62d7dbb350ea4df38ff6f6ceaaf89989", "score": "0.0", "text": "private DI__LichThi cursorToLichThi(Cursor cursor) {\n\t\t\tDI__LichThi lt = new DI__LichThi();\r\n\t\t\tif (cursor == null)\r\n\t\t\t\treturn lt;\r\n\r\n\t\t\tlt.mssv = cursor.getString(1);\r\n\t\t\tlt.namhoc = cursor.getInt(2);\r\n\t\t\tlt.hocky = cursor.getInt(3);\r\n\t\t\tlt.mamh = cursor.getString(4);\r\n\t\t\tlt.tenmh = cursor.getString(5);\r\n\t\t\tlt.nhomto = cursor.getString(6);\r\n\t\t\tlt.ngaygk = cursor.getString(7);\r\n\t\t\tlt.tietgk = cursor.getInt(8);\r\n\t\t\tlt.phonggk = cursor.getString(9);\r\n\t\t\tlt.ngayck = cursor.getString(10);\r\n\t\t\tlt.tietck = cursor.getInt(11);\r\n\t\t\tlt.phongck = cursor.getString(12);\r\n\t\t\tlt.eventgk = cursor.getLong(13);\r\n\t\t\tlt.eventck = cursor.getLong(14);\r\n\t\t\treturn lt;\r\n\t\t}", "title": "" } ]
[ { "docid": "4121852c8e9b6880ee27286e87c20330", "score": "0.6021206", "text": "@Override\n public void execute(String tagName, Map<String, Object> parameters) {\n Log.i(\"CuteAnimals\", \"Custom function call tag :\" + tagName + \" is fired.\");\n }", "title": "" }, { "docid": "1230bdc5d7afd3b76ca90a80d2d323d9", "score": "0.5971865", "text": "public void log(String string) {\n }", "title": "" }, { "docid": "9fab9b183288b7e3f31aafb6dd15d668", "score": "0.5925946", "text": "private void tag() {\n\n\n\n }", "title": "" }, { "docid": "f6a9433543db2f0f07bb314bb2958fb0", "score": "0.5900885", "text": "public void log(String string) {\n }", "title": "" }, { "docid": "67f5a91c29b9f344290bc4970dbb6808", "score": "0.57730526", "text": "private static void writeLogToFile(String tag, String msg){\n }", "title": "" }, { "docid": "ed8f1dc97939db0bf4a6fbf00bf49cf8", "score": "0.5729175", "text": "String logAnalyticsQuery();", "title": "" }, { "docid": "6b3a4b93b48329e407498f9ab9c33aa7", "score": "0.57268745", "text": "public interface Loggable {\n void log(String tag, String message);\n}", "title": "" }, { "docid": "10a0b46cf993cb7be4e303482aa0670b", "score": "0.56809425", "text": "public void log_tickets(){\n }", "title": "" }, { "docid": "c1094799ac7a39ab213d247a30d9b61e", "score": "0.5658368", "text": "@Override\n\tpublic String logTag() {\n\t\treturn TAG;\n\t}", "title": "" }, { "docid": "d8e2511a78d8afbba7eff293a0624169", "score": "0.5629052", "text": "private void logi(String str) {\n RlogEx.i(this.mTag, str);\n }", "title": "" }, { "docid": "1a30232d155c31929c374cb140ca31f7", "score": "0.56231314", "text": "public static String _pe_userpresent(anywheresoftware.b4a.objects.IntentWrapper _intent) throws Exception{\nanywheresoftware.b4a.keywords.Common.LogImpl(\"21572865\",\"UserPresent\",0);\n //BA.debugLineNum = 89;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "f61ca2b3180b991c134278a0539b6947", "score": "0.5611427", "text": "@DefaultMessage(\"Providing integration and style to open source Java.\")\n @Key(\"webapp.tagline\")\n String webapp_tagline();", "title": "" }, { "docid": "c5849459680e1e022506d3c690f052bf", "score": "0.5565092", "text": "protected void log(int uid, MethodHookParam param, String argNames){\n\t\tif(!this.isNeedLog(uid))\r\n\t\t\treturn;\r\n\r\n\t\tString[] argNamesArray = null;\r\n\t\tif(argNames != null)\r\n\t\t\targNamesArray = argNames.split(\"\\\\|\");\r\n\t\tString formattedArgs = MethodParser.parseMethodArgs(param, argNamesArray);\r\n\t\tif(formattedArgs == null)\r\n\t\t\tformattedArgs = \"\";\r\n\t\tString returnValue = MethodParser.parseReturnValue(param);\r\n\r\n\r\n\t\t//Pranav Magic\r\n\t\t/*\r\n\t\tif (mMethodName == \"getNetworkType\"){\r\n\t\t\t//List<ApplicationInfo> packages = (List<ApplicationInfo>) param.thisObject;\r\n\t\t\tint k = 15;\r\n\t\t\tparam.setResult(k);\r\n\t\t\t//Log.i(\"EagleEye\",\"ITWORKS\" );\r\n\t\t}*/\r\n\r\n\r\n\t\treturnValue = MethodParser.parseReturnValue(param);\r\n\t\tString activityName = param.thisObject.getClass().toString();\r\n\r\n\t\tString logMsg = String.format(\"$$$\\\"BasicSpecialThrough\\\":[\\\"%d\\\",\\\"%s\\\",\\\"false\\\"]$$$ \" + \"ActivityPranName:\\\"%s\"+\r\n\t\t\t\t\t\t\"$$$\\\"InvokeApi\\\":{\\\"%s;->%s\\\":[%s],$$$ \\\"return\\\":{%s\", uid, Util.FRAMEWORK_HOOK_SYSTEM_API,\r\n\t\t\t\tactivityName,mClassName, mMethodName, formattedArgs, returnValue);\r\n\t\tLog.i(Util.LOG_TAG, logMsg);\r\n\t}", "title": "" }, { "docid": "daf4d80e57cd764eea1953d4da3b14e9", "score": "0.55519354", "text": "public void addLog( String str );", "title": "" }, { "docid": "6e9838b4f757404c7a10038e7c323eed", "score": "0.5551777", "text": "StringValue log();", "title": "" }, { "docid": "36c80812f02583905dc2b127538ae9e9", "score": "0.5490674", "text": "void irALogin();", "title": "" }, { "docid": "edd6502eefb5e4a2292f106949050c0a", "score": "0.5462716", "text": "public void log() {\r\n\t}", "title": "" }, { "docid": "942843cc20eafff4c519fa61922ab742", "score": "0.5448596", "text": "public interface TagAliasCallback {\n void gotResult(int i, String str, Set<String> set);\n}", "title": "" }, { "docid": "d549958a935471c602f9e3bc0649bc84", "score": "0.5394647", "text": "public interface OperationLogService {\n\n void log(String czmc, Object gjz, String xxnr, OperationResult jg, String czr);\n\n void log(String czmc, Object gjz, String xxnr, OperationResult jg);\n\n void log(String czmc, Object gjz, String xxnr);\n\n int failCount(String czmc, Object gjz);\n\n List<OperationLog> fetchByCondition(Map condition);\n\n List<OperationLog> list(Map condition, int page, int pageSize) throws Exception;\n\n}", "title": "" }, { "docid": "f808cd1128c2837dfba4f2072389dd1e", "score": "0.5351992", "text": "public void log(String s) {\n }", "title": "" }, { "docid": "62b05f79cdfb4e78a8085191f6d46777", "score": "0.53350216", "text": "public void printLog(String str) {\n }", "title": "" }, { "docid": "5d191b9a517116b1ea36ce6c735bc330", "score": "0.53068924", "text": "public interface LogOperationService {\n\n void addOperatorLog(LogEnum logEnum, String logContent, String ip, Operator operator, AdminUser adminUser);\n}", "title": "" }, { "docid": "2a74ad47b782e206dc2fba733a04e7ff", "score": "0.5300751", "text": "public void logInfo(String str) {\n }", "title": "" }, { "docid": "cbe2f06d993f69a6e44b4d97aa691e4a", "score": "0.52847815", "text": "public void log(String tag, String message) {\n logTextArea.append(\"[\" + tag.toUpperCase() + \"] \" + message);\n logTextArea.setCaretPosition(logTextArea.getText().length());\n }", "title": "" }, { "docid": "efb30bdb730de575718c36d0fd279653", "score": "0.52649754", "text": "private void logd(String str) {\n RlogEx.i(this.mTag, str);\n }", "title": "" }, { "docid": "2c9c045cbd375c6d3835c56c49fa3160", "score": "0.52237344", "text": "static public void debug(String clase,String metodo,String mensaje,int prioridad,String user,Object parameters)\n{\nif (verbose)\n{\n//if (logger.isDebugEnabled())\n//{\nString MENSAJE = \"[\"+clase+\"] [\"+metodo+\"] : \"+mensaje;\nSystem.out.println(MENSAJE);\n//logger.debug(MENSAJE);\n//}\n}\n}", "title": "" }, { "docid": "9482225ccf552f6b7bd1300685489a10", "score": "0.52123886", "text": "public static final void log (IData pipeline)\n throws ServiceException\n\t{\n\t\t// --- <<IS-START(log)>> ---\n\t\t// @sigtype java 3.5\r\n\t\t// [i] field:0:optional logger\r\n\t\t// [i] field:0:optional id\r\n\t\t// [i] field:0:optional text\r\n\t\t// [i] field:0:optional level {\"ERROR\",\"WARN\",\"INFO\",\"DEBUG\",\"TRACE\"}\r\n\t\t// [i] record:0:optional mdc\r\n\tIDataCursor pipelineCursor = pipeline.getCursor();\r\n\tString logger \t= IDataUtil.getString(pipelineCursor, \"logger\");\r\n\tIData mdc \t\t\t= IDataUtil.getIData(pipelineCursor, \"mdc\");\r\n\tString messageID = IDataUtil.getString(pipelineCursor, \"id\");\r\n\tString level\t \t= IDataUtil.getString(pipelineCursor, \"level\");\r\n\tString message = IDataUtil.getString(pipelineCursor, \"text\");\r\n\r\n\tif ((messageID == null || messageID.isEmpty()) && \r\n\t (message == null || message.isEmpty())) {\r\n\t\tcom.wm.util.JournalLogger.log( com.wm.util.JournalLogger.INFO,\r\n com.wm.util.JournalLogger.FAC_FLOW_SVC,\r\n com.wm.util.JournalLogger.ERROR,\r\n \"lfx.logging.pub.service:log called without either /id, or /text inputs. One is required.\" );\t\t\t\t\r\n\t\treturn;\r\n\t}\r\n\t\r\n\tpipelineCursor.destroy();\r\n\t\r\n\t// Clear MDC if this thread was recycled\r\n\tconditionallyClearMDC();\r\n\r\n\t// Default to INFO if no level was provided\r\n\tif (level == null || level.isEmpty()) {\r\n\t\tlevel = DEFAULT_LEVEL;\r\n\t}\r\n\r\n\t// Put *temporary* metadata in MDC\r\n\tputMDC(mdc);\r\n\t\r\n\t// Get message catalog resource bundle from package's resource/ dir\r\n\tif (messageID != null) {\r\n\t\tResourceBundle resources = getResourceBundle();\r\n\t\ttry {\r\n\t\t\tmessage = resources.getString(messageID + \".text\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tcom.wm.util.JournalLogger.log( com.wm.util.JournalLogger.INFO,\r\n\t com.wm.util.JournalLogger.FAC_FLOW_SVC,\r\n\t com.wm.util.JournalLogger.ERROR,\r\n\t \"LfxLog: \" + e.toString());\t\t\t\t\r\n\t return;\r\n\t\t}\r\n\t\t\ttry {\r\n\t \t\tlevel = resources.getString(messageID + \".level\");\r\n\t \t} catch (Exception e) {\r\n\t \t\tlevel = DEFAULT_LEVEL;\r\n\t \t}\r\n\t}\r\n\r\n\ttry {\r\n\t\tLevel.valueOf(level);\r\n\t} catch (IllegalArgumentException e) {\r\n\t\tlevel = DEFAULT_LEVEL;\r\n\t}\r\n\t\r\n\t// Replace any ${variables} in the message with MDC values (if they exist)\r\n\tmessage = substituteVariables(message);\r\n\t\r\n\t// Log the message\r\n\tlog(logger, message, Level.valueOf(level));\r\n\t\r\n\t// Remove the *temporary* metadata from MDC\r\n\tremoveMDC(mdc);\r\n\t\t// --- <<IS-END>> ---\n\n \n\t}", "title": "" }, { "docid": "9e0095cc0e3a214ac50fe5e35cffb04c", "score": "0.5195943", "text": "public void logic(String id) {\n myLogger.log(\"service id = \" + id);\n }", "title": "" }, { "docid": "740f2e31a26d0f9dc4a1b0517708a32f", "score": "0.5189993", "text": "Sys_log createSys_log();", "title": "" }, { "docid": "1dfa3c3f8f151f832e640b77ca7e7d7d", "score": "0.5186502", "text": "protected void logBefore(int uid, MethodHookParam param, String argNames, int hash){\n\t\tif(!this.isNeedLog(uid))\r\n\t\t\treturn;\r\n\t\t\r\n\t\tString[] argNamesArray = null;\r\n\t\tif(argNames != null)\r\n\t\t\targNamesArray = argNames.split(\"\\\\|\");\r\n\t\tString formattedArgs = MethodParser.parseMethodArgs(param, argNamesArray);\r\n\t\tif(formattedArgs == null)\r\n\t\t\tformattedArgs = \"\";\r\n\t\tString returnValue = MethodParser.parseReturnValue(param);\r\n\t\t/*\r\n if (mMethodName == \"getNetworkType\"){\r\n //List<ApplicationInfo> packages = (List<ApplicationInfo>) param.thisObject;\r\n int k = 15;\r\n param.setResult(k);\r\n //Log.i(\"EagleEye\",\"ITWORKS\" );\r\n }*/\r\n\r\n returnValue = MethodParser.parseReturnValue(param);\r\n\t\tString activityName = param.thisObject.getClass().toString();\r\n\r\n\t\tString logMsg = String.format(\"$$$\\\"BasicSpecial\\\":\\\"%d\\\"$$$\\\"Before\\\":[\\\"%d\\\",\\\"%s\\\",\\\"false\\\"]$$$\" +\"\\\"ActivityPranName\\\":\\\"%s\\\"\"+\r\n\t\t\t\t\t\t\"$$$\\\"InvokeApi\\\":\\\"%s;->%s\\\":[%s]$$$ \\\"return\\\":{%s}\",hash, uid, Util.FRAMEWORK_HOOK_SYSTEM_API,\r\n\t\t\t\tactivityName,mClassName, mMethodName, formattedArgs, returnValue);\r\n\t\tLog.i(Util.LOG_TAG, logMsg);\r\n\t}", "title": "" }, { "docid": "3f735064f29e7fb1e2d223022560f4e5", "score": "0.5184121", "text": "static void log2() {\n System.out.println(\"Logging to DB from interface!\");\n }", "title": "" }, { "docid": "4e5d9323c81657314114357d54f58cd1", "score": "0.5176864", "text": "void addAuditTrail(String clazz, String method, String message);", "title": "" }, { "docid": "9568bd62df69c47609a8e89f32f6f31e", "score": "0.5167297", "text": "public static String getLogCat(String tag) {\n StringBuilder logStr = new StringBuilder();\n try {\n String line;\n\n // String logcmd = String.format(\"logcat -d -v brief -s \\\"java\\\",\\\"%s\\\"\", tag);\n String logcmd = \"logcat -d -v brief -t 4\";\n Process process = Runtime.getRuntime().exec(logcmd);\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(process.getInputStream()));\n\n while ((line = bufferedReader.readLine()) != null) {\n // Exclude junk and only show info this app has generated.\n if (!line.startsWith(\"---\") /* && (line.contains(tag) || line.contains(\"java\")) */ ) {\n if (line.trim().length() > 2) {\n logStr.append(line + \"\\n\");\n }\n }\n }\n } catch(IOException ex) {\n Log.e(\"foo\", ex.getMessage());\n }\n\n return logStr.toString();\n }", "title": "" }, { "docid": "31d5bc38bdebb105769e5c848574d73d", "score": "0.5165302", "text": "public void log(String str) {\n LWC.getInstance().log(str);\n }", "title": "" }, { "docid": "212bfa7136f2bda76a0125c75fe9f3c5", "score": "0.5164283", "text": "public void logDebug(String str) {\n }", "title": "" }, { "docid": "b7185c0c845ccd4134a5d57dfb090dbf", "score": "0.5159683", "text": "public static String _pe_texttospeechfinish(anywheresoftware.b4a.objects.IntentWrapper _intent) throws Exception{\nanywheresoftware.b4a.keywords.Common.LogImpl(\"2917505\",\"TextToSpeechFinish\",0);\n //BA.debugLineNum = 54;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "1b6253b71ae72516036f50ec5ed75d59", "score": "0.5159036", "text": "public void log( String msg ){\n\t}", "title": "" }, { "docid": "919282b6de14bf7e739b8daf6d6c4596", "score": "0.51513124", "text": "public void generateTags ();", "title": "" }, { "docid": "d3fc3d4607cc0bd40897e24d7ca3635f", "score": "0.51246804", "text": "private void log(String string) {\n\t\tlog(string, true);\n\t}", "title": "" }, { "docid": "de1274224aad300479879462ad684244", "score": "0.5121025", "text": "static void printStackTraceWithTag(Exception e, String tag) {\n\t\tStringWriter stringWriter = new StringWriter();\n\t\tPrintWriter printWriter = new PrintWriter(stringWriter);\n\t\te.printStackTrace(printWriter);\n\t\tLog.e(tag, stringWriter.toString());\n\t}", "title": "" }, { "docid": "0e423af651003882142a46f7c1004fbc", "score": "0.5117932", "text": "@Pointcut(\"execution(public * com.magician.book.controller.reader.*.*(..))\")\n public void log() {}", "title": "" }, { "docid": "684ad8ce76eadcfb4ae0897c56e1815a", "score": "0.51149684", "text": "public ILog log();", "title": "" }, { "docid": "598aba6f0ce75a88f235a32a9c94aacb", "score": "0.5114011", "text": "public void rlogi(String string) {\n RlogEx.i(getName(), string);\n }", "title": "" }, { "docid": "44204594d1fa1f740ce07dcf80be8107", "score": "0.5106314", "text": "public interface ICatlogService {\n\t/**\n\t * add item in Catlog table\n\t * @param productData\n\t * @return Catlog\n\t */\n\tCatlog addCatlog(CatlogRequest catlogRequest);\n\t\n\n}", "title": "" }, { "docid": "342de0c5290749ead914c3c5ae712ad5", "score": "0.50957596", "text": "public interface ITagExecutor {\r\n\r\n\t/**\r\n\t * \r\n\t * @param debugTag\r\n\t * @param tagEl\r\n\t */\r\n\tpublic Object executeTag( org.w3c.dom.Element tagEl,org.w3c.dom.Element debugTag,boolean debugMode) throws Exception;\r\n\r\n public void setEngine(IEngine engine);\r\n public void setPlugIn(ITagPlugin plugIn); \r\n}", "title": "" }, { "docid": "a48982a6af3cfe7535a325f9ef5570e3", "score": "0.5085443", "text": "String tracingId();", "title": "" }, { "docid": "974525845a297dfc6ccfd1f675161d55", "score": "0.5077768", "text": "protected void logParameters(String tag, Object parameters){\n final String TAG = tag + \":\" + parameters.getClass().getSimpleName();\n Logger.verbosePII(TAG, ObjectMapper.serializeObjectToJsonString(parameters));\n }", "title": "" }, { "docid": "8e27ab2fe271a7a25a5fb1af621deb44", "score": "0.50623435", "text": "public interface ILog {\n void v(String tag, String msg);\n void d(String tag, String msg);\n void i(String tag, String msg);\n void w(String tag, String msg);\n void w(String tag, String msg, Throwable tr);\n void e(String tag, String msg);\n void e(String tag, String msg, Throwable tr);\n void wtf(String tag, String msg);\n void wtf(String tag, String msg, Throwable tr);\n}", "title": "" }, { "docid": "1fa71d22c686f0a7ea95f79e3186537d", "score": "0.5061912", "text": "private static void log(String msg) {\n }", "title": "" }, { "docid": "61898cc4516bf3ff85660ae70595c85f", "score": "0.5057446", "text": "@Override\r\n\tpublic void log(String args, String texte) {\n\t\tSystem.out.println(\"Console : \" +texte);\r\n\t}", "title": "" }, { "docid": "e8bc9093249296b958b149dcff84dede", "score": "0.5051889", "text": "@Before(\"execution(* com.mybooks.service.*.*(..))\")\n\tpublic void log(JoinPoint point) {\n\t\tlogger.info(String.format(\"Method %s from service %s was called\", point.getSignature().getName(),\n\t\t\t\tpoint.getTarget().getClass().getName()));\n\t}", "title": "" }, { "docid": "9e83afe8bd22ea540052408a4077e587", "score": "0.50514996", "text": "public interface LogInterface {\n void w(String tag, String message);\n\n void d(String tag, String message);\n\n void e(String tag, Throwable t);\n}", "title": "" }, { "docid": "2848801c9510b3d3410b10a9f187c2be", "score": "0.50443953", "text": "public void processingNewTags();", "title": "" }, { "docid": "662e2273b56bf12965ac55738d4049d8", "score": "0.50379", "text": "private void logSignal(int i){\n }", "title": "" }, { "docid": "e23533274e25bf19250176ab7cdde309", "score": "0.50323826", "text": "void trace(Object message, Object... tags);", "title": "" }, { "docid": "53348156561adaedf417d19134d9353a", "score": "0.50188357", "text": "@Pointcut(\"execution(public com.hkitemplate.demo.beans.ResultBean *(..))\")\n public void webLog(){}", "title": "" }, { "docid": "ab499e4f0755892557b1cbbf36464f8b", "score": "0.5013342", "text": "void sysAjout (String word);", "title": "" }, { "docid": "3f5f722d9d6b3ea87b218757c5887ff6", "score": "0.5010043", "text": "String cursor();", "title": "" }, { "docid": "008dcbe35fade25afce36c8973bbe18f", "score": "0.5008814", "text": "Tracer(){\n }", "title": "" }, { "docid": "e8d686bda0df739559d3bd1ede9548ec", "score": "0.49963903", "text": "private void logTheOperation(String description, float amount, int clientId) {\r\n\t\tlong timestamp = System.currentTimeMillis();\r\n\t\tLog log = new Log(timestamp, clientId, description, amount);\r\n\t\tLogger.log(log);\r\n\t}", "title": "" }, { "docid": "f63bd701b2e39a2701f48a6b99413c73", "score": "0.498881", "text": "@Override\n\tprotected void logServiceRequest(ServiceRequest request) {\n\t}", "title": "" }, { "docid": "9dc95c7135f57eb3a07d759f29c44b03", "score": "0.49817625", "text": "default void onTag(int fieldNumber, FieldDescriptor fieldDescriptor, Object tagValue) {\n }", "title": "" }, { "docid": "41a9f248f5bab69eff3a831c37ad6813", "score": "0.49690047", "text": "public void setTag(String tag) { this.tag = tag; }", "title": "" }, { "docid": "14198558286793991b5e8f164e203d77", "score": "0.49686277", "text": "public CurlLoggerInterceptor(String tag, PlatformLog platformLog) {\n this.tag = tag;\n mCurlPrinter = new CurlPrinter(platformLog::d);\n }", "title": "" }, { "docid": "bb5ee14949f8e34abd9e14df42e23bd4", "score": "0.49682415", "text": "@Override\r\n\tpublic void log(String message) {\n\t\tSystem.out.printf(\"banque@khouja-aspect %s : %s\\n\",dateformat.format(new Date()),message);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "629f4861638f5e2a84e96c0495a9b3be", "score": "0.49574152", "text": "public static void log(String tag, String info) {\r\n\r\n Log.i(tag, info);\r\n\r\n }", "title": "" }, { "docid": "0ccb1f4cd916dfa2f6125fde58149cba", "score": "0.49517643", "text": "public void tag(String id,LClassObject val) throws Exception;", "title": "" }, { "docid": "cc5e537d97d8d1363632c76b967ae3bc", "score": "0.49472734", "text": "public void RegisterLogFunction(YAPI.LogCallback logfun)\n {\n synchronized (_logCallbackLock) {\n _logCallback = logfun;\n }\n }", "title": "" }, { "docid": "ec62fea6feb8dc9b579d8a43a8405288", "score": "0.4924595", "text": "public void log( String msg ){\n System.out.println( System.currentTimeMillis() + \": \" + msg );\n }", "title": "" }, { "docid": "b9b0b57316776c63abcc4889e00d09f1", "score": "0.49236616", "text": "String getLogString(Accessor accessor);", "title": "" }, { "docid": "ce928f719ae75e516c32b723af88c637", "score": "0.49218678", "text": "public String getTag();", "title": "" }, { "docid": "33acb4e7528d57b268eee8d820ff35a7", "score": "0.4913752", "text": "private void log(String name) {\n System.out.println(name);\n }", "title": "" }, { "docid": "10c3cc9f224f7f5cb7e16992e4c3cea9", "score": "0.49063808", "text": "public void _log(CommandInterpreter intp) throws Exception {\n \t\tlong logid = -1;\n \t\tString token = intp.nextArgument();\n \t\tif (token != null) {\n \t\t\tBundle bundle = getBundleFromToken(intp, token, false);\n \n \t\t\tif (bundle == null) {\n \t\t\t\ttry {\n \t\t\t\t\tlogid = Long.parseLong(token);\n \t\t\t\t} catch (NumberFormatException e) {\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tlogid = bundle.getBundleId();\n \t\t\t}\n \t\t}\n \n \t\torg.osgi.framework.ServiceReference logreaderRef = context.getServiceReference(\"org.osgi.service.log.LogReaderService\");\n \t\tif (logreaderRef != null) {\n \t\t\tObject logreader = context.getService(logreaderRef);\n \t\t\tif (logreader != null) {\n \t\t\t\ttry {\n \t\t\t\t\tEnumeration logentries = (Enumeration) (logreader.getClass().getMethod(\"getLog\", null).invoke(logreader, null));\n \n \t\t\t\t\tif (logentries.hasMoreElements()) {\n \t\t\t\t\t\tObject logentry = logentries.nextElement();\n \t\t\t\t\t\tClass clazz = logentry.getClass();\n \t\t\t\t\t\tMethod getBundle = clazz.getMethod(\"getBundle\", null);\n \t\t\t\t\t\tMethod getLevel = clazz.getMethod(\"getLevel\", null);\n \t\t\t\t\t\tMethod getMessage = clazz.getMethod(\"getMessage\", null);\n \t\t\t\t\t\tMethod getServiceReference = clazz.getMethod(\"getServiceReference\", null);\n \t\t\t\t\t\tMethod getException = clazz.getMethod(\"getException\", null);\n \n \t\t\t\t\t\twhile (true) {\n \t\t\t\t\t\t\tBundle bundle = (Bundle) getBundle.invoke(logentry, null);\n \n \t\t\t\t\t\t\tif ((logid == -1) || ((bundle != null) && (logid == bundle.getBundleId()))) {\n \t\t\t\t\t\t\t\tInteger level = (Integer) getLevel.invoke(logentry, null);\n \t\t\t\t\t\t\t\tswitch (level.intValue()) {\n\t\t\t\t\t\t\t\t\tcase org.osgi.service.log.LogService.LOG_DEBUG :\n \t\t\t\t\t\t\t\t\t\tintp.print(\">\");\n \t\t\t\t\t\t\t\t\t\tintp.print(ConsoleMsg.formatter.getString(\"CONSOLE_DEBUG_MESSAGE\"));\n \t\t\t\t\t\t\t\t\t\tintp.print(\" \");\n \t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase org.osgi.service.log.LogService.LOG_INFO :\n \t\t\t\t\t\t\t\t\t\tintp.print(\">\");\n \t\t\t\t\t\t\t\t\t\tintp.print(ConsoleMsg.formatter.getString(\"CONSOLE_INFO_MESSAGE\"));\n \t\t\t\t\t\t\t\t\t\tintp.print(\" \");\n \t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase org.osgi.service.log.LogService.LOG_WARNING :\n \t\t\t\t\t\t\t\t\t\tintp.print(\">\");\n \t\t\t\t\t\t\t\t\t\tintp.print(ConsoleMsg.formatter.getString(\"CONSOLE_WARNING_MESSAGE\"));\n \t\t\t\t\t\t\t\t\t\tintp.print(\" \");\n \t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase org.osgi.service.log.LogService.LOG_ERROR :\n \t\t\t\t\t\t\t\t\t\tintp.print(\">\");\n \t\t\t\t\t\t\t\t\t\tintp.print(ConsoleMsg.formatter.getString(\"CONSOLE_ERROR_MESSAGE\"));\n \t\t\t\t\t\t\t\t\t\tintp.print(\" \");\n \t\t\t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\t\t\tdefault :\n \t\t\t\t\t\t\t\t\t\tintp.print(\">\");\n \t\t\t\t\t\t\t\t\t\tintp.print(level);\n \t\t\t\t\t\t\t\t\t\tintp.print(\" \");\n \t\t\t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t\tif (bundle != null) {\n \t\t\t\t\t\t\t\t\tintp.print(\"[\");\n \t\t\t\t\t\t\t\t\tintp.print(new Long(bundle.getBundleId()));\n \t\t\t\t\t\t\t\t\tintp.print(\"] \");\n \t\t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t\tintp.print(getMessage.invoke(logentry, null));\n \t\t\t\t\t\t\t\tintp.print(\" \");\n \n \t\t\t\t\t\t\t\tServiceReference svcref = (ServiceReference) getServiceReference.invoke(logentry, null);\n \t\t\t\t\t\t\t\tif (svcref != null) {\n \t\t\t\t\t\t\t\t\tintp.print(\"{\");\n \t\t\t\t\t\t\t\t\tintp.print(Constants.SERVICE_ID);\n \t\t\t\t\t\t\t\t\tintp.print(\"=\");\n \t\t\t\t\t\t\t\t\tintp.print(svcref.getProperty(Constants.SERVICE_ID).toString());\n \t\t\t\t\t\t\t\t\tintp.println(\"}\");\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\tif (bundle != null) {\n \t\t\t\t\t\t\t\t\t\tintp.println(bundle.getLocation());\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\tintp.println();\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\tThrowable t = (Throwable) getException.invoke(logentry, null);\n \t\t\t\t\t\t\t\tif (t != null) {\n \t\t\t\t\t\t\t\t\tintp.printStackTrace(t);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\tif (logentries.hasMoreElements()) {\n \t\t\t\t\t\t\t\tlogentry = logentries.nextElement();\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t} finally {\n \t\t\t\t\tcontext.ungetService(logreaderRef);\n \t\t\t\t}\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \n \t\tintp.println(ConsoleMsg.formatter.getString(\"CONSOLE_LOGSERVICE_NOT_REGISTERED_MESSAGE\"));\n \t}", "title": "" }, { "docid": "d3306a76df35fdb246982ae072b1a184", "score": "0.490111", "text": "private void auditInterceptor(PricingResponse pricingResponse){\n Runnable auditTrace = () -> {\n System.out.println(pricingResponse);//mock of tracing\n };\n new Thread(auditTrace).start();\n }", "title": "" }, { "docid": "deb6a320977062ba6d50ef5f2034b689", "score": "0.48992485", "text": "public void tagAdded(DeviceTag tag);", "title": "" }, { "docid": "d462974328aea1d9609b4de66a890dd7", "score": "0.4895889", "text": "IChat1 getChat(Object tag);", "title": "" }, { "docid": "e267edf16fae916511978c500c8901cd", "score": "0.48886624", "text": "protected String getTag() {\n return \"ByCGLIB\";\n }", "title": "" }, { "docid": "b7bc1df102e4cdc31c0c08f53a0f8c92", "score": "0.4887395", "text": "@Override\n public ObjectId insertLogEntry( String description ) throws KettleException {\n return null;\n }", "title": "" }, { "docid": "4793ea9e255345a04ce353033c9efb8d", "score": "0.48803854", "text": "protected void logAfter(int uid, MethodHookParam param, String argNames, int hash){\n\t\tif(!this.isNeedLog(uid))\r\n\t\t\treturn;\r\n\r\n\t\tString[] argNamesArray = null;\r\n\t\tif(argNames != null)\r\n\t\t\targNamesArray = argNames.split(\"\\\\|\");\r\n\t\tString formattedArgs = MethodParser.parseMethodArgs(param, argNamesArray);\r\n\t\tif(formattedArgs == null)\r\n\t\t\tformattedArgs = \"\";\r\n\t\tString returnValue = MethodParser.parseReturnValue(param);\r\n\r\n\r\n\t\t//Pranav Magic\r\n\t\t/*\r\n\t\tif (mMethodName == \"getNetworkType\"){\r\n\t\t\t//List<ApplicationInfo> packages = (List<ApplicationInfo>) param.thisObject;\r\n\t\t\tint k = 15;\r\n\t\t\tparam.setResult(k);\r\n\t\t\t//Log.i(\"EagleEye\",\"ITWORKS\" );\r\n\t\t}*/\r\n\r\n\t\t//returnValue = MethodParser.parseReturnValue(param);\r\n\t\tString activityName = param.thisObject.getClass().toString();\r\n\r\n\t\tString logMsg = String.format(\"$$$\\\"BasicSpecial\\\":\\\"%d\\\"$$$\\\"After\\\":[\\\"%d\\\",\\\"%s\\\",\\\"false\\\"]$$$\" +\"\\\"ActivityPranName\\\":\\\"%s\\\"\"+\r\n\t\t\t\t\t\t\"$$$\\\"InvokeApi\\\":\\\"%s;->%s\\\":[%s]$$$ \\\"return\\\":{%s\",hash, uid, Util.FRAMEWORK_HOOK_SYSTEM_API,\r\n\t\t\t\tactivityName,mClassName, mMethodName, formattedArgs, returnValue);\r\n\t\tLog.i(Util.LOG_TAG, logMsg);\r\n\t}", "title": "" }, { "docid": "7fbe4ec89b13912630a1ac4b7f53cef3", "score": "0.48779163", "text": "Sys_logdetail createSys_logdetail();", "title": "" }, { "docid": "abbfe29720d5cdaf743233f53ffa0f42", "score": "0.4864264", "text": "void info(Logger logger, String eventType, boolean success, String resourceIdentity);", "title": "" }, { "docid": "1fb66beb28a2bd0d83a32327041404ce", "score": "0.48630512", "text": "public String getTag(LClassObject val) throws Exception;", "title": "" }, { "docid": "e10d562aba767fcdc0d6f6dde07c611f", "score": "0.4858391", "text": "public void addTag(String tag) {\n oldName = getFullName();\n setChanged();\n notifyObservers(\"at:\" + tag);\n }", "title": "" }, { "docid": "21c5e1ca4468c4f5507b07d341c009f1", "score": "0.48555633", "text": "public interface LogAnalysisService {\n /**\n *\n * @param path 原始文件路径\n * @param toFileName 结果文件名称\n * @param charsetName 结果数据编码\n * @param params 处理参数\n */\n void handle(String path, String toFileName, String charsetName,Map<String, Object> params);\n}", "title": "" }, { "docid": "83e3cc8024a1c76313e2f48a0fabb43e", "score": "0.48550758", "text": "protected String executeAndLogFunction( DatabaseAccessFunction fun, QueryType queryType ) {\n try {\n long start = System.currentTimeMillis();\n String query = fun.execute();\n long stop = System.currentTimeMillis();\n logQuery( ProtoObjectFactory.TPCCQueryTuple( query, stop - start, queryType ) );\n return query;\n } catch ( ConnectionException e ) {\n throw new RuntimeException( e );\n }\n }", "title": "" }, { "docid": "e1b86652da616b05e2e98a8072fb13ea", "score": "0.4854008", "text": "static void log3() {\n System.out.println(\"Logging to file from interface\");\n }", "title": "" }, { "docid": "d41258e008bfb12b917d19d61a02172a", "score": "0.4852811", "text": "private void L(String s) {\n\n Log.d(\"MyApp\", \"LoginActivity\" + \"#######\" + s);\n }", "title": "" }, { "docid": "6f8be7c00a80de31e5d440406abc8a6c", "score": "0.48483372", "text": "@Override\r\n\tpublic void onListTags(Context arg0, int arg1, List<String> arg2, String arg3) {\n\r\n\t}", "title": "" }, { "docid": "9ff1155cb1a72f1df14d912dde7ddf5c", "score": "0.48447725", "text": "private void log(String string,ITestResult tr) {\n if(!tr.getTestClass().getName().equals(previousTest)){\r\n \t System.out.println(\".................................\");\r\n \t previousTest = tr.getTestClass().getName();\r\n }\r\n System.out.print(string);\r\n\r\n }", "title": "" }, { "docid": "6e832453a7bcc8e995d394373e516f02", "score": "0.48434415", "text": "public static String getChangeTag(String text) {\r\n\t\treturn \"@changed \" + System.getProperty(\"archimedes.user.token\") + \" - \" + text + \".\";\r\n\t}", "title": "" }, { "docid": "f78a17def3b898c3cb421e6f8876bc28", "score": "0.4838077", "text": "public void Verbose(String Tag, String Message) {\n Log.v(Tag, Message);\n saveLog(\"logcat.txt\",Tag,Message);\n }", "title": "" }, { "docid": "6154f315cd0eec0fab65f4d32e23cc5e", "score": "0.48378295", "text": "public interface LoggerService {\n\n Long log(Throwable ex, String service);\n}", "title": "" }, { "docid": "03f90149c813dfd642accbc49210e1eb", "score": "0.48372257", "text": "public FetchTag(){ \n //--------------------------------------------------------------------------- \n }", "title": "" }, { "docid": "ea3b39bc0fb4ab5230601ade934ee43a", "score": "0.482982", "text": "public void setOpGetTicketHist(InputMapping1 param){\n \n this.localOpGetTicketHist=param;\n \n\n }", "title": "" }, { "docid": "05d2d268ac1d7e7e0575a373c344dcef", "score": "0.48216465", "text": "@Override\n public void audit(Object arg0) {\n PolicyLogger.audit(className, \"\" + arg0);\n }", "title": "" }, { "docid": "4660274ab5b2819884a62b6a549402db", "score": "0.48114914", "text": "public void service() {\n\t\tSystem.out.println(\"aaaabbbb\");\n\n\t}", "title": "" }, { "docid": "48a85196295251294bb9c26c8209e450", "score": "0.48092008", "text": "@Override\r\n\tpublic void log(String str) {\n\t\tInterface2.super.log(str);\r\n\t}", "title": "" }, { "docid": "68975c36c99535b24e968fc06c11e9e1", "score": "0.4807461", "text": "@Test\n @DisplayName(\"Some long name that could be the method name.\")\n public void testLogging() {\n assertLogs(\"Global logger\", () -> AClassThatLogs.functionLoggingWithRootLogger());\n assertLogs(INFO, \"Global logger\", () -> AClassThatLogs.functionLoggingWithRootLogger());\n }", "title": "" }, { "docid": "6cd148c0ac905ce708cf8daa06953011", "score": "0.48060623", "text": "interface Cse\n{\n public String std_name1(String s1);// Method with parameters\n public void std_id1( int id1);\n}", "title": "" }, { "docid": "d252fdc8a5d43c41a00a0cc4e0887f7b", "score": "0.48016745", "text": "static String getLogMessage(String url, HttpServletRequest request, HttpServletResponse response, String realmID, String[] tags, String TAG_SEPARATOR) {\n Cookie cookie = getSetYanelAnalyticsCookie(request, response);\n try {\n org.wyona.security.core.api.Identity identity = YanelServlet.getIdentity(request.getSession(true), realmID);\n // TODO: Add userID if available\n } catch(Exception e) {\n log.error(e, e);\n }\n // TODO: Extract email from referer\n return getLogMessage(url, realmID, cookie.getValue(), request.getHeader(\"referer\"), request.getHeader(\"User-Agent\"),tags, TAG_SEPARATOR);\n }", "title": "" }, { "docid": "f92c8ce9ef6a2c5ddc4c7f8cfeacc558", "score": "0.47958177", "text": "private String getPointcutStringFromAnnotationStylePointcut(AbstractMethodDeclaration amd) {\n \tAnnotation[] ans = amd.annotations;\n \t if (ans == null) return \"\";\n \t\tfor (int i = 0; i < ans.length; i++) {\n \t\t\tif (ans[i].resolvedType == null) continue; // XXX happens if we do this very early from buildInterTypeandPerClause\n \t\t\t // may prevent us from resolving references made in @Pointcuts to\n \t\t\t // an @Pointcut in a code-style aspect\n \t\t\tchar[] sig = ans[i].resolvedType.signature();\n \t\t\tif (CharOperation.equals(pointcutSig,sig)) {\n \t\t\t\tif (ans[i].memberValuePairs().length==0) return \"\"; // empty pointcut expression\n \t\t\t\tStringLiteral sLit = ((StringLiteral)(ans[i].memberValuePairs()[0].value));\n \t\t\t\treturn new String(sLit.source());\n \t\t\t}\n \t\t}\n \t\treturn \"\";\n }", "title": "" } ]
ba29f3f34e70296037ff2b5ca4fc027c
Auto generated method signature for Asynchronous Invocations
[ { "docid": "bd70f5b510a4ecaff37e2db433d66d80", "score": "0.0", "text": "public void startgetCongressionalDistrictByZip(\n\n com.cdyne.pav3.GetCongressionalDistrictByZip getCongressionalDistrictByZip24,\n\n final com.cdyne.pav3.PavServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\n _operationClient.getOptions().setAction(\"http://pav3.cdyne.com/IPavService/GetCongressionalDistrictByZip\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getCongressionalDistrictByZip24,\n optimizeContent(new javax.xml.namespace.QName(\"http://pav3.cdyne.com\",\n \"getCongressionalDistrictByZip\")), new javax.xml.namespace.QName(\"http://pav3.cdyne.com\",\n \"getCongressionalDistrictByZip\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.cdyne.pav3.GetCongressionalDistrictByZipResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultgetCongressionalDistrictByZip(\n (com.cdyne.pav3.GetCongressionalDistrictByZipResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetCongressionalDistrictByZip(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"GetCongressionalDistrictByZip\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"GetCongressionalDistrictByZip\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"GetCongressionalDistrictByZip\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetCongressionalDistrictByZip(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetCongressionalDistrictByZip(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetCongressionalDistrictByZip(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetCongressionalDistrictByZip(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetCongressionalDistrictByZip(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetCongressionalDistrictByZip(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetCongressionalDistrictByZip(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetCongressionalDistrictByZip(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetCongressionalDistrictByZip(f);\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 callback.receiveErrorgetCongressionalDistrictByZip(f);\n\t\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 callback.receiveErrorgetCongressionalDistrictByZip(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetCongressionalDistrictByZip(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[3].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[3].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" } ]
[ { "docid": "2bf61740df5f2ebe9b270e25e4d7cbb6", "score": "0.64895827", "text": "public abstract Result asyncExecute(Params... paramsArr);", "title": "" }, { "docid": "09855a4fa55b1ece13b04b77c1c06bac", "score": "0.6296694", "text": "public interface AmazonFPSAsync extends AmazonFPS {\n\n\n \n /**\n * Cancel Token \n *\n * \n * Cancels any token installed by the calling application on its own account.\n * \n * @param request\n * CancelToken Action\n * @return\n * CancelToken Response from the service\n */\n public Future<CancelTokenResponse> cancelTokenAsync(final CancelTokenRequest request);\n\n\n \n /**\n * Cancel \n *\n * \n * Cancels an ongoing transaction and puts it in cancelled state.\n * \n * @param request\n * Cancel Action\n * @return\n * Cancel Response from the service\n */\n public Future<CancelResponse> cancelAsync(final CancelRequest request);\n\n\n \n /**\n * Fund Prepaid \n *\n * \n * Funds the prepaid balance on the given prepaid instrument.\n * \n * @param request\n * FundPrepaid Action\n * @return\n * FundPrepaid Response from the service\n */\n public Future<FundPrepaidResponse> fundPrepaidAsync(final FundPrepaidRequest request);\n\n\n \n /**\n * Get Account Activity \n *\n * \n * Returns transactions for a given date range.\n * \n * @param request\n * GetAccountActivity Action\n * @return\n * GetAccountActivity Response from the service\n */\n public Future<GetAccountActivityResponse> getAccountActivityAsync(final GetAccountActivityRequest request);\n\n\n \n /**\n * Get Account Balance \n *\n * \n * Returns the account balance for an account in real time.\n * \n * @param request\n * GetAccountBalance Action\n * @return\n * GetAccountBalance Response from the service\n */\n public Future<GetAccountBalanceResponse> getAccountBalanceAsync(final GetAccountBalanceRequest request);\n\n\n \n /**\n * Get Transactions For Subscription \n *\n * Returns the transactions for a given subscriptionID.\n * \n * @param request\n * GetTransactionsForSubscription Action\n * @return\n * GetTransactionsForSubscription Response from the service\n */\n public Future<GetTransactionsForSubscriptionResponse> getTransactionsForSubscriptionAsync(final GetTransactionsForSubscriptionRequest request);\n\n\n \n /**\n * Get Subscription Details \n *\n * Returns the details of Subscription for a given subscriptionID.\n * \n * @param request\n * GetSubscriptionDetails Action\n * @return\n * GetSubscriptionDetails Response from the service\n */\n public Future<GetSubscriptionDetailsResponse> getSubscriptionDetailsAsync(final GetSubscriptionDetailsRequest request);\n\n\n \n /**\n * Get Debt Balance \n *\n * \n * Returns the balance corresponding to the given credit instrument.\n * \n * @param request\n * GetDebtBalance Action\n * @return\n * GetDebtBalance Response from the service\n */\n public Future<GetDebtBalanceResponse> getDebtBalanceAsync(final GetDebtBalanceRequest request);\n\n\n \n /**\n * Get Outstanding Debt Balance \n *\n * \n * Returns the total outstanding balance for all the credit instruments for the given creditor account.\n * \n * @param request\n * GetOutstandingDebtBalance Action\n * @return\n * GetOutstandingDebtBalance Response from the service\n */\n public Future<GetOutstandingDebtBalanceResponse> getOutstandingDebtBalanceAsync(final GetOutstandingDebtBalanceRequest request);\n\n\n \n /**\n * Get Prepaid Balance \n *\n * \n * Returns the balance available on the given prepaid instrument.\n * \n * @param request\n * GetPrepaidBalance Action\n * @return\n * GetPrepaidBalance Response from the service\n */\n public Future<GetPrepaidBalanceResponse> getPrepaidBalanceAsync(final GetPrepaidBalanceRequest request);\n\n\n \n /**\n * Get Token By Caller \n *\n * \n * Returns the details of a particular token installed by this calling application using the subway co-branded UI.\n * \n * @param request\n * GetTokenByCaller Action\n * @return\n * GetTokenByCaller Response from the service\n */\n public Future<GetTokenByCallerResponse> getTokenByCallerAsync(final GetTokenByCallerRequest request);\n\n\n \n /**\n * Cancel Subscription And Refund \n *\n * \n * Cancels a subscription.\n * \n * @param request\n * CancelSubscriptionAndRefund Action\n * @return\n * CancelSubscriptionAndRefund Response from the service\n */\n public Future<CancelSubscriptionAndRefundResponse> cancelSubscriptionAndRefundAsync(final CancelSubscriptionAndRefundRequest request);\n\n\n \n /**\n * Get Token Usage \n *\n * \n * Returns the usage of a token.\n * \n * @param request\n * GetTokenUsage Action\n * @return\n * GetTokenUsage Response from the service\n */\n public Future<GetTokenUsageResponse> getTokenUsageAsync(final GetTokenUsageRequest request);\n\n\n \n /**\n * Get Tokens \n *\n * \n * Returns a list of tokens installed on the given account.\n * \n * @param request\n * GetTokens Action\n * @return\n * GetTokens Response from the service\n */\n public Future<GetTokensResponse> getTokensAsync(final GetTokensRequest request);\n\n\n \n /**\n * Get Total Prepaid Liability \n *\n * \n * Returns the total liability held by the given account corresponding to all the prepaid instruments owned by the account.\n * \n * @param request\n * GetTotalPrepaidLiability Action\n * @return\n * GetTotalPrepaidLiability Response from the service\n */\n public Future<GetTotalPrepaidLiabilityResponse> getTotalPrepaidLiabilityAsync(final GetTotalPrepaidLiabilityRequest request);\n\n\n \n /**\n * Get Transaction \n *\n * \n * Returns all details of a transaction.\n * \n * @param request\n * GetTransaction Action\n * @return\n * GetTransaction Response from the service\n */\n public Future<GetTransactionResponse> getTransactionAsync(final GetTransactionRequest request);\n\n\n \n /**\n * Get Transaction Status \n *\n * \n * Gets the latest status of a transaction.\n * \n * @param request\n * GetTransactionStatus Action\n * @return\n * GetTransactionStatus Response from the service\n */\n public Future<GetTransactionStatusResponse> getTransactionStatusAsync(final GetTransactionStatusRequest request);\n\n\n \n /**\n * Get Payment Instruction \n *\n * \n * Gets the payment instruction of a token.\n * \n * @param request\n * GetPaymentInstruction Action\n * @return\n * GetPaymentInstruction Response from the service\n */\n public Future<GetPaymentInstructionResponse> getPaymentInstructionAsync(final GetPaymentInstructionRequest request);\n\n\n \n /**\n * Install Payment Instruction \n *\n * Installs a payment instruction for caller.\n * \n * @param request\n * InstallPaymentInstruction Action\n * @return\n * InstallPaymentInstruction Response from the service\n */\n public Future<InstallPaymentInstructionResponse> installPaymentInstructionAsync(final InstallPaymentInstructionRequest request);\n\n\n \n /**\n * Pay \n *\n * \n * Allows calling applications to move money from a sender to a recipient.\n * \n * @param request\n * Pay Action\n * @return\n * Pay Response from the service\n */\n public Future<PayResponse> payAsync(final PayRequest request);\n\n\n \n /**\n * Refund \n *\n * \n * Refunds a previously completed transaction.\n * \n * @param request\n * Refund Action\n * @return\n * Refund Response from the service\n */\n public Future<RefundResponse> refundAsync(final RefundRequest request);\n\n\n \n /**\n * Reserve \n *\n * \n * Reserve API is part of the Reserve and Settle API conjunction that serve the purpose of a pay where the authorization and settlement have a timing \t\t\t\tdifference.\n * \n * @param request\n * Reserve Action\n * @return\n * Reserve Response from the service\n */\n public Future<ReserveResponse> reserveAsync(final ReserveRequest request);\n\n\n \n /**\n * Settle \n *\n * \n * The Settle API is used in conjunction with the Reserve API and is used to settle previously reserved transaction.\n * \n * @param request\n * Settle Action\n * @return\n * Settle Response from the service\n */\n public Future<SettleResponse> settleAsync(final SettleRequest request);\n\n\n \n /**\n * Settle Debt \n *\n * \n * Allows a caller to initiate a transaction that atomically transfers money from a sender’s payment instrument to the recipient, while decreasing corresponding \t\t\t\tdebt balance.\n * \n * @param request\n * SettleDebt Action\n * @return\n * SettleDebt Response from the service\n */\n public Future<SettleDebtResponse> settleDebtAsync(final SettleDebtRequest request);\n\n\n \n /**\n * Write Off Debt \n *\n * \n * Allows a creditor to write off the debt balance accumulated partially or fully at any time.\n * \n * @param request\n * WriteOffDebt Action\n * @return\n * WriteOffDebt Response from the service\n */\n public Future<WriteOffDebtResponse> writeOffDebtAsync(final WriteOffDebtRequest request);\n\n\n \n /**\n * Get Recipient Verification Status \n *\n * \n * Returns the recipient status.\n * \n * @param request\n * GetRecipientVerificationStatus Action\n * @return\n * GetRecipientVerificationStatus Response from the service\n */\n public Future<GetRecipientVerificationStatusResponse> getRecipientVerificationStatusAsync(final GetRecipientVerificationStatusRequest request);\n\n\n \n /**\n * Verify Signature \n *\n * \n * Verify the signature that FPS sent in IPN or callback urls.\n * \n * @param request\n * VerifySignature Action\n * @return\n * VerifySignature Response from the service\n */\n public Future<VerifySignatureResponse> verifySignatureAsync(final VerifySignatureRequest request);\n\n\n\n}", "title": "" }, { "docid": "eea7e7b5feaa4b576ad00f7c6bebc650", "score": "0.62731713", "text": "public interface IRentalServiceAsync\n{\n\tvoid createRentalCar(String model, AsyncCallback<Void> callback) throws IllegalArgumentException;\n\tvoid rent(int car, String renter, AsyncCallback<Void> callback) throws IllegalArgumentException;\n\tvoid returnRental(int car, AsyncCallback<Void> callback) throws IllegalArgumentException;\n\tvoid getCars(AsyncCallback<String[]> callback) throws IllegalArgumentException;\n}", "title": "" }, { "docid": "804130fc959279f702594a4d007a9ad4", "score": "0.62529016", "text": "public interface AsyncCallback<R> {\n\n <R> R call();\n\n}", "title": "" }, { "docid": "f3d55463fedc27704b1c4ad58fd51c7b", "score": "0.62518066", "text": "public native void createAnotherAsync(String name, CreateAnotherAsyncCallback callback);", "title": "" }, { "docid": "0e39cc764b870091478e8da28ae57a32", "score": "0.6227221", "text": "public interface AdminServiceAsync {\r\n\tvoid clearMemcache(AsyncCallback<Void> asyncCallback);\r\n\r\n\tvoid getFamilies(AsyncCallback<List<FamilyFull>> asyncCallback);\r\n\r\n\tvoid enablePerson(long familyId, long id, Boolean value, AsyncCallback<Void> asyncCallback);\r\n\r\n\tvoid approveFamily(long id, AsyncCallback<Void> asyncCallback);\r\n\r\n\tvoid deletePerson(long id, AsyncCallback<Void> asyncCallback);\r\n\r\n\tvoid deleteFamily(long id, AsyncCallback<Void> asyncCallback);\r\n\r\n}", "title": "" }, { "docid": "2515ab9887fbdf8e61800a3ed26057a1", "score": "0.61879724", "text": "public void makeAsync() { }", "title": "" }, { "docid": "9341e351ae0ec7a07c7ee338132c5d7d", "score": "0.61493224", "text": "public interface RequestServiceAsync {\r\n\tvoid sendRequest(AbstractRequest request, AsyncCallback<AbstractResponse> responseCallback) throws IllegalArgumentException;\r\n}", "title": "" }, { "docid": "b1f103c074faa6d2f3c4409d211e8070", "score": "0.6147334", "text": "public interface FamilyEventService extends Service, ActorService {\n\n @AsyncInvocation\n void online(long familyId);\n\n @AsyncInvocation\n void offline(long familyId);\n\n @AsyncInvocation\n void save();\n\n @AsyncInvocation\n void logEvent(long familyId, int event, String... params);\n\n @AsyncInvocation\n void sendEvent(FamilyAuth auth, byte subtype);\n\n}", "title": "" }, { "docid": "dedbc9096af07c009b7d8d69f6e46bae", "score": "0.61466134", "text": "public interface IXioCallback\n{\n /**\n * Called when an asynchronous remote invocation completes.\n * @param context The context in which the remote invocation occurred.\n */\n public void onComplete( IContext context);\n \n /**\n * Called when an asynchronous remote invocation completes successfully.\n * @param context The context in which the remote invocation occurred.\n * @param results The results of the execution.\n */\n public void onSuccess( IContext context, Object[] results);\n \n /**\n * Called when an asynchronous remote invocation fails.\n * @param context The context in which the remote invocation occurred.\n */\n public void onError( IContext context, String error);\n}", "title": "" }, { "docid": "3fc926df29c9717d0bd51106ed1d35a7", "score": "0.6129059", "text": "public interface GreetingServiceAsync\r\n{\r\n\tvoid addUserFormData(UserFormData data, AsyncCallback<String> callback);\r\n\tvoid getUserFormData(Integer startIndex, Integer length, AsyncCallback<UserFormData[]> callback);\r\n\tvoid getUserFormDataCount( AsyncCallback<Integer> callback);\r\n}", "title": "" }, { "docid": "6b2cc2aa9221f2efd8573afded0b452f", "score": "0.6108271", "text": "public interface ICallbackHandler {\n\n /**\n * The method is called when the state of a task instance has beeen changed.\n *\n * @param correlationProperties These properties can be used to correlate the callback to a task instance\n * creation request made earlier.\n * @param taskInstanceView A snapshot of the task instance when the state was changed.\n */\n public void callTaskParent(Set<ICorrelationProperty> correlationProperties,\n TaskInstanceView taskInstanceView);\n\n\n}", "title": "" }, { "docid": "6d056da2356c1c02b2ca4fe53a925080", "score": "0.6084229", "text": "public interface EndpointClassic extends EndpointBase {\n\n public <T> AsyncResult sendAsyncRequest(String url, String name, Callback<T> callback, Object... args);\n\n public <T> AsyncResult sendAsyncRequest(String url, String name, RequestOptions requestOptions, Callback<T> callback, Object... args);\n\n}", "title": "" }, { "docid": "6283b3cbf0d19088878f51d4d946d47b", "score": "0.60740745", "text": "public interface PhoneBillServiceAsync {\n\n /**\n * gets a phone bill from the server\n */\n void getPhoneBill(String customerName, AsyncCallback<PhoneBill> async);\n\n /**\n * adds a call to a phone bill on the server\n */\n void addPhoneCall(String customerName, PhoneCall call, AsyncCallback<Void> call_added_successfully);\n}", "title": "" }, { "docid": "1eaf367a547bacc241e98d83274a78bf", "score": "0.6066917", "text": "public native void printAnotherAsync(allogen.example.AnotherClass another, PrintAnotherAsyncCallback callback);", "title": "" }, { "docid": "8790c60831474db47ae09f03e394ba0c", "score": "0.60628104", "text": "public interface WalletdAsyncCommand {\n\n\tFuture<ComposeEntryResult> composeEntry(ComposeEntryParam composeEntryParams);\n\n\tFuture<ComposeChainResult> composeChain(ComposeChainParam composeChainParams);\n\n\tFuture<AddressResult> getAddress(String address);\n\n\tFuture<AddressResult> generateEcAddress();\n\n\tFuture<AddressResult> generateFactoidAddress();\n\n\tFuture<AddressResultList> getAllAddresses();\n\n\tFuture<TransactionResult> newTransaction(String txName);\n\n\tFuture<TransactionResultList> getTmpTransactions();\n\n\tFuture<TransactionResult> deleteTransaction(String txName);\n\n\tFuture<TransactionResult> addInput(String txName, String address, long amount);\n\n\tFuture<TransactionResult> asyncAddInput(String txName, String address, long amount);\n\n\tFuture<TransactionResult> addOutput(String txName, String address, long amount);\n\n\tFuture<TransactionResult> addEcOutput(String txName, String address, long amount);\n\n\tFuture<TransactionResult> addFee(String txName, String address);\n\n\tFuture<TransactionResult> subFee(String txName, String address);\n\n\tFuture<TransactionResult> signTransaction(String txName);\n\n\tFuture<ComposeTransactionResult> composeTransaction(String txName);\n\n\tFuture<TransactionResultList> getTransactionsByTxid(String txid);\n\n\tFuture<TransactionResultList> getTransactionsByAddress(String address);\n\n\tFuture<TransactionResultList> getTransactionsByRange(long start, long end);\n\n\tFuture<WalletBackupResult> walletBackup();\n\n\tFuture<AddressResultList> importAddresses(ImportAddressesParam importAddressesParams);\n\n\tFuture<AddressResult> importKoinify(String koinifyCrowdSaleAddress);\n\n}", "title": "" }, { "docid": "1ce8d0286871278f2821c177247d2dd7", "score": "0.6055286", "text": "public interface EndpointClassic extends EndpointBase {\n\n public <T> AsyncResult sendAsyncRequest(String url, String name, CallbackInterface<T> callback, Object... args);\n\n public <T> AsyncResult sendAsyncRequest(String url, String name, RequestOptions requestOptions, CallbackInterface<T> callback, Object... args);\n\n}", "title": "" }, { "docid": "abe314bb4aa501e350dd4ceddc8ba323", "score": "0.6054939", "text": "public interface AsyncEventHandler<T> {\n\n /**\n * The event framework will call this method upon processing of an Event.\n *\n * @param event the event\n */\n void onEvent(T event);\n}", "title": "" }, { "docid": "a7cf6e407c8ebdd7130376615a4606e5", "score": "0.60534555", "text": "public interface MessageServiceAsync {\n void sendMessage(String input, AsyncCallback<String> callback);\n}", "title": "" }, { "docid": "5c1b82ee81729916f0401f080b2d05c8", "score": "0.6040473", "text": "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Get a single trigger.\n * </pre>\n */\n default void getTrigger(\n com.google.cloud.eventarc.v1.GetTriggerRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.eventarc.v1.Trigger> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTriggerMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * List triggers.\n * </pre>\n */\n default void listTriggers(\n com.google.cloud.eventarc.v1.ListTriggersRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.eventarc.v1.ListTriggersResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListTriggersMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Create a new trigger in a particular project and location.\n * </pre>\n */\n default void createTrigger(\n com.google.cloud.eventarc.v1.CreateTriggerRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateTriggerMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Update a single trigger.\n * </pre>\n */\n default void updateTrigger(\n com.google.cloud.eventarc.v1.UpdateTriggerRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateTriggerMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Delete a single trigger.\n * </pre>\n */\n default void deleteTrigger(\n com.google.cloud.eventarc.v1.DeleteTriggerRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteTriggerMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Get a single Channel.\n * </pre>\n */\n default void getChannel(\n com.google.cloud.eventarc.v1.GetChannelRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.eventarc.v1.Channel> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetChannelMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * List channels.\n * </pre>\n */\n default void listChannels(\n com.google.cloud.eventarc.v1.ListChannelsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.eventarc.v1.ListChannelsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListChannelsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Create a new channel in a particular project and location.\n * </pre>\n */\n default void createChannel(\n com.google.cloud.eventarc.v1.CreateChannelRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateChannelMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Update a single channel.\n * </pre>\n */\n default void updateChannel(\n com.google.cloud.eventarc.v1.UpdateChannelRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateChannelMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Delete a single channel.\n * </pre>\n */\n default void deleteChannel(\n com.google.cloud.eventarc.v1.DeleteChannelRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteChannelMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Get a single Provider.\n * </pre>\n */\n default void getProvider(\n com.google.cloud.eventarc.v1.GetProviderRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.eventarc.v1.Provider> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetProviderMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * List providers.\n * </pre>\n */\n default void listProviders(\n com.google.cloud.eventarc.v1.ListProvidersRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.eventarc.v1.ListProvidersResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListProvidersMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Get a single ChannelConnection.\n * </pre>\n */\n default void getChannelConnection(\n com.google.cloud.eventarc.v1.GetChannelConnectionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.eventarc.v1.ChannelConnection>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetChannelConnectionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * List channel connections.\n * </pre>\n */\n default void listChannelConnections(\n com.google.cloud.eventarc.v1.ListChannelConnectionsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.eventarc.v1.ListChannelConnectionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListChannelConnectionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Create a new ChannelConnection in a particular project and location.\n * </pre>\n */\n default void createChannelConnection(\n com.google.cloud.eventarc.v1.CreateChannelConnectionRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateChannelConnectionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Delete a single ChannelConnection.\n * </pre>\n */\n default void deleteChannelConnection(\n com.google.cloud.eventarc.v1.DeleteChannelConnectionRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteChannelConnectionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Get a GoogleChannelConfig\n * </pre>\n */\n default void getGoogleChannelConfig(\n com.google.cloud.eventarc.v1.GetGoogleChannelConfigRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.eventarc.v1.GoogleChannelConfig>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetGoogleChannelConfigMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Update a single GoogleChannelConfig\n * </pre>\n */\n default void updateGoogleChannelConfig(\n com.google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.eventarc.v1.GoogleChannelConfig>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateGoogleChannelConfigMethod(), responseObserver);\n }\n }", "title": "" }, { "docid": "2c9725859a47d9ca15d679157e298641", "score": "0.5996768", "text": "public interface GreetingServiceAsync {\r\n\tvoid greetServer(String username, String password, AsyncCallback<String> callback)\r\n\t\t\tthrows IllegalArgumentException;\r\n\r\n\tvoid getUserSessionInfo(AsyncCallback<UserSessionInfo> asyncCallback);\r\n\r\n\t\r\n}", "title": "" }, { "docid": "2d8d125b38d9b84159214b9ee70a7fc9", "score": "0.59691435", "text": "<R> Promise<R> executeAsync(String activityName, Class<R> returnType, Object... args);", "title": "" }, { "docid": "1c0d1d1b613230666591d35b4a7f563d", "score": "0.59531784", "text": "public interface C4636f<V> extends Future<V> {\n /* renamed from: a */\n void mo4860a(Runnable runnable, Executor executor);\n}", "title": "" }, { "docid": "5e6adc33d23b131f2c9c0f8c43d8bd1b", "score": "0.59505206", "text": "public interface AsyncCallback<T>\n{\n /**\n * Called when an asynchronous call completes successfully.\n *\n * @param result the return value of the remote produced call\n */\n void onSuccess( T result );\n}", "title": "" }, { "docid": "9c411ea26f7a97014cdc5d30350ea428", "score": "0.5947528", "text": "public interface MiniAppServiceAsync {\r\n\tvoid greetServer(String input, AsyncCallback<String> callback);\r\n\r\n\tvoid isLoggedIn(AsyncCallback<Boolean> callback);\r\n\r\n\tvoid login(String username, String password, AsyncCallback<Void> callback);\r\n\r\n\tvoid logout(AsyncCallback<Void> callback);\r\n\r\n\tvoid listUserContacts(AsyncCallback<List<PersonBean>> asyncCallback);\r\n\t\r\n\tvoid listContacts(AsyncCallback<List<PersonBean>> asyncCallback);\r\n\t\r\n\tvoid viewUserContact(long userId, AsyncCallback<PersonBean> asyncCallback);\r\n\t\r\n\tvoid viewContact(long contactId, AsyncCallback<PersonBean> asyncCallback);\r\n\t\r\n\tvoid viewProfile(AsyncCallback<PersonBean> asyncCallback);\r\n}", "title": "" }, { "docid": "b590a751645ec2c0ccc2eb73e6203043", "score": "0.58760357", "text": "public interface GetOrderDetailsUseCase extends Interactor {\n\n\n interface Callback {\n void onOrderDetailsLoaded( Order order);\n void onError(ErrorBundle errorBundle);\n }\n\n\n /**\n *\n * @param callback\n */\n void execute(Long orderId, Callback callback);\n}", "title": "" }, { "docid": "17d4c12a9873eaf7e381735a1be10bb0", "score": "0.5867033", "text": "public interface AsyncServiceHandler<RESULT, REQUEST extends AmazonWebServiceRequest> {\n\n/**\n* <p>\n* This method will be called if there is an AmazonServiceException, this is\n* the more specific case of the overloaded handleException method because\n* the AmazonServiceException has easier access to cause of exceptions.\n* </p>\n*\n* @param exception\n*/\npublic void handleException(AmazonServiceException exception);\n\n/**\n* <p>\n* This method will be called if there is an AmazonServiceException, this is\n* the less specific case of the overloaded handleException method because\n* the AmazonServiceException has easier access to cause of exceptions.\n* </p>\n*\n* @param exception\n*/\npublic void handleException(AmazonClientException exception);\n\n/**\n* <p>\n* This method will be called if there is an AmazonServiceException, this is\n* the least specific case of the overloaded handleException method used to\n* catch all misc exceptions.\n* </p>\n*\n* @param exception\n*/\npublic void handleException(Exception exception);\n\n/**\n*\n* @param result\n* The result of the operation e.g. UpdateItemResult\n* @param request\n* The initial request send to aws client e.g. UpdateItemRequest\n*/\npublic void handleResult(RESULT result, REQUEST request);\n\n}", "title": "" }, { "docid": "a77db12cf3331c8684298f530108614c", "score": "0.58609694", "text": "public interface AsynchronousRequestsService {\n\n /**\n * Gets application requests that match the query parameters.\n *\n * @param query the query.\n * @param callback the callback.\n */\n void getRequestsAsync(GetRequests query,\n HttpCallback<GraphQLResponse<List<Transaction>>> callback);\n\n /**\n * Creates a new application request.\n *\n * @param query the query.\n * @param callback the callback.\n */\n void createRequestAsync(CreateRequest query,\n HttpCallback<GraphQLResponse<Transaction>> callback);\n\n /**\n * Updates an application request.\n *\n * @param query the query.\n * @param callback the callback.\n */\n void updateRequestAsync(UpdateRequest query,\n HttpCallback<GraphQLResponse<Transaction>> callback);\n\n /**\n * Deletes an application request.\n *\n * @param query the query.\n * @param callback the callback.\n */\n void deleteRequestAsync(DeleteRequest query,\n HttpCallback<GraphQLResponse<Boolean>> callback);\n\n}", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.5851722", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.5851722", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.5851722", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.5851722", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.5851722", "text": "@In Boolean async();", "title": "" }, { "docid": "d997441882238ee6c27800bc924ce5f7", "score": "0.58365", "text": "@ProxyIgnore\n void start(Handler<AsyncResult<Void>> whenDone);", "title": "" }, { "docid": "7274a8a08a3431c3f6c71ed2531bbd57", "score": "0.58230144", "text": "public interface AsyncResponse {\n /**\n * @param responseCode: http response code. Other error codes also sent as responseCode\n * @param x: Any Object you wish to send to the calling class\n */\n void processFinish(int responseCode, Object x);\n}", "title": "" }, { "docid": "43c4272497ffbe31777b95f0edf62670", "score": "0.5799086", "text": "Async.Builder async();", "title": "" }, { "docid": "c8f3b347d8f76924b849bf579acc8499", "score": "0.5797485", "text": "public interface Callback_v2 {\n void invoke(Object o);\n}", "title": "" }, { "docid": "c41346f900bd89717cd49185012bcf6c", "score": "0.57932365", "text": "public interface SourceChannelAsync<T> extends SourceChannel<T> {\n\n\t/** \n\t * Register interest in receiving message as callback\n\t * @param receiver Object implementing callback method\n\t */\n\tpublic void registerCallback(Receiver<T> receiver);\n\t\n\t/** \n\t * Register interest in receiving message as callback\n\t * @param receiver Object implementing callback method\n\t */\n\tpublic void deregisterCallback(Receiver<T> receiver);\n\t\n\t/**\n\t * Interface with callback method for received message \n\t */\n\tpublic interface Receiver<T> {\n\t\tpublic void notify(Message<T> message);\t\n\t}\n}", "title": "" }, { "docid": "98ac6484f644832d46fcd328041e6166", "score": "0.57765085", "text": "public abstract void invoke();", "title": "" }, { "docid": "606e10921ca6a74bf774ae3c4b11c853", "score": "0.57733047", "text": "public void handleConcurrentInvocationRequest();", "title": "" }, { "docid": "4d6c16a06b1f2821ab120df472aeb45d", "score": "0.57719964", "text": "public interface AsyncSerializableTypes {\n}", "title": "" }, { "docid": "aa4fde8e0c7cebeb93d1f5f0738a8376", "score": "0.57716346", "text": "public interface CallBack {\n\n}", "title": "" }, { "docid": "9e6e92713f531766978460a65ba5d87e", "score": "0.5767733", "text": "public interface OnTaskCompleted{\n void onTaskCompleted(Long id);\n}", "title": "" }, { "docid": "1ef1a4480de5c4be9d6c2023cb65a387", "score": "0.57487875", "text": "public interface ResourceManagerServiceAsync {\n\n\t/**\n\t * Method used for making asynchronous calls to the server for login.\n\t * @param user the object that is used for login\n\t * @param callback the object used for notifying the caller when the asynchronous call completes.\n\t * @throws LoginException\n\t */\n\tvoid login(User user, AsyncCallback<String> callback) throws LoginException;\n\t\n\t/**\n\t * Method used for making asynchronous calls to the server for logout.\n\t * @param sessionId the sessionId used for logout\n\t * @param callback the object used for notifying the caller when the asynchronous call completes.\n\t * @throws LogoutException\n\t */\n\tvoid logout(String sessionId, AsyncCallback<Void> callback) throws LogoutException;\n\t\n\t/**\n\t * Method used for making asynchronous calls to the server for retrieving the jobs to be updated. \n\t * @param sessionId The user session id\n\t * @param callback the object used for notifying the caller when the asynchronous call completes.\n\t * @throws GettingJobException \n\t */\n//\tvoid getJobs(String sessionId, AsyncCallback<JobBag> callback) throws GettingJobException;\n\t\n\t/**\n\t * Method used for making asynchronous calls to the server for returning the user that is logged in. \n\t * @param sessionId The user session id \n\t * @param callback the object used for notifying the caller when the asynchronous call completes.\n\t */\n\tvoid getUser(String sessionId, AsyncCallback<User> callback);\n\n\tvoid getResourceManagerStateFromRestService(String sessionId, AsyncCallback<ResourceManagerState> callback);\n}", "title": "" }, { "docid": "90524041a6e94ddfb4d82f7a28b8cef0", "score": "0.57423234", "text": "public interface OnTaskCompleted {\n void onTaskCompleted(String response, String lPurpose);\n void onTaskError(String response, String lPurpose);\n}", "title": "" }, { "docid": "104c2174057f9e4fb4056791e9225dad", "score": "0.5727945", "text": "interface Asynchronous {\n void start();\n void pause();\n void resume();\n void stop() throws InterruptedException;\n void reset();\n}", "title": "" }, { "docid": "34b4656f48f609380b3443650ffd70ce", "score": "0.57261574", "text": "public interface AsyncUpdates {\r\n\r\n void antesDeLaTarea();\r\n void duranteLaTarea(String... aString);\r\n void desPuesDeLaTarea(String values);\r\n\r\n}", "title": "" }, { "docid": "a029aacfa336f37e61f2db08e35bac7a", "score": "0.5714722", "text": "@Override\n public void invoke() {\n }", "title": "" }, { "docid": "4e6a64925f2a30b0e925343262ebc4a3", "score": "0.5713619", "text": "public interface IRequestManager {\n\n public static enum Method {\n\n POST(\"POST\"),\n PUT(\"PUT\"),\n DELETE(\"DELETE\");\n private String value;\n\n Method(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n }\n\n public static class Response {\n\n private boolean success = false;\n private String response, error;\n\n public void setResponse(String response) {\n this.response = response;\n }\n\n public void setError(String error) {\n this.error = error;\n }\n\n public void markSuccess() {\n this.success = true;\n }\n\n public String getResponse() {\n return response;\n }\n\n public String getError() {\n return error;\n }\n\n public boolean isSuccess() {\n return success;\n }\n }\n\n public interface IRequestHandler {\n void onComplete(Response response);\n }\n\n void sendAsyncRequest(Method method, String urlStr, JSONObject jsonObject, IRequestHandler handler);\n}", "title": "" }, { "docid": "a8df5abcc5b96abe9a6449b373133835", "score": "0.5695503", "text": "public interface InvokeApiCallbackData<T> {\n void callBackData(T t);\n}", "title": "" }, { "docid": "ebd973157d57f40cd6e7fe7b2db8954a", "score": "0.5682419", "text": "@Override\r\n \tprotected void internalTransform(Body b, String arg1,\r\n \t\t\tMap<String, String> arg2) {\r\n \t\tfinal PatchingChain<Unit> units = b.getUnits();\r\n \t\tSootClass c = b.getMethod().getDeclaringClass();\r\n \t\t//System.out.println(c.getName()+ \" -> \"+b.getMethod().getName());\r\n \t\tif(c.hasSuperclass()){\r\n \t\t\tSootClass scl = c.getSuperclass();\r\n \t\t\t\r\n \t\t\tif(scl.getName() == \"android.os.AsyncTask\"){\r\n \t\t\t\tList<SootMethod> lt = scl.getMethods();\r\n \t\t\t\r\n \t\t\t\t//System.out.println(\"Param types \" + b.getMethod().getParameterTypes());\r\n \t\t\t\t\r\n \t\t\t\tList<Type> doinbgd=null;\r\n \t\t \tList<Type> onprgsupdate=null;\r\n \t\t \tList<Type> onpostexec=null;\r\n \t\t\t\t\r\n \t\t\tfor(int i=0;i< lt.size();i++)\r\n \t\t\t\t{\r\n \t\t\t\t\tSootMethod m= lt.get(i);\r\n \t\t\t\t\t//System.out.println(m.getName());\r\n \t\t\t\t\tif(m.getName().equals(\"doInBackground\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tdoinbgd = m.getParameterTypes();\r\n \t\t\t\t\t//\tSystem.out.println(doinbgd);\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse if(m.getName().equals(\"onProgressUpdate\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tonprgsupdate=m.getParameterTypes();\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse if(m.getName().equals(\"onPostExecute\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tonpostexec=m.getParameterTypes();\r\n \t\t\t\t\t}\r\n \t\t\t\t\t\r\n \t\t\t\t}\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t\t//b.getMethod().setParameterTypes(l);\r\n \t\t\t\t\t\t\r\n \t\t\t\t\r\n \t\t\t\t\r\n \t\t\t\t//important to use snapshotIterator here\r\n \t\t\t\tfor(Iterator<Unit> iter = units.snapshotIterator(); iter.hasNext();) {\r\n \t\t\t\t\tfinal Unit u = iter.next();\r\n \t\t\t\t\tu.apply(new AbstractStmtSwitch() {\r\n \t\t\t\t\t\tpublic void caseInvokeStmt(InvokeStmt stmt) {\r\n \t\t\t\t\t\t\tInvokeExpr invokeExpr = stmt.getInvokeExpr();\t\t\t\t\t\r\n \t\t\t\t\t\t\t//String line= \"extends AsyncTask\";//methodname = null;\r\n \t\t\t\t\t\t\t//invokeExpr.setArg( arg1);\r\n \t\t\t\t\t\t}\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\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t}\r\n\r\n \t}", "title": "" }, { "docid": "a6a562917f9437f365481466e0cdce7a", "score": "0.56736004", "text": "public interface DestinationServiceAsync extends AbstractServiceAsync<Destination> {\r\n}", "title": "" }, { "docid": "3bb8bf510bd17a055470c16660b9452d", "score": "0.56313676", "text": "public interface FillConfirmedBookingsListAsync {\n\n void populateConfirmedList();\n\n}", "title": "" }, { "docid": "059728d52e9866c2f15ba9c14f0d9aa0", "score": "0.561895", "text": "Role getAsync_receiver();", "title": "" }, { "docid": "2ab1e6c476fe5d938bcb19be26d756f3", "score": "0.560443", "text": "public interface GameRunner {\n @Async\n void reset();\n\n @Async\n void buttonPress(GameRunnerImpl.Button button);\n}", "title": "" }, { "docid": "1210089bd48b4a22e96863e1d5f6fc6d", "score": "0.5602076", "text": "public interface RetrieveMastenFromGemeindeServiceAsync {\r\n\tvoid retrieveMastFromGemeinde(int id, int source, AsyncCallback<ArrayList<Mast>> callback)\r\n\t\t\tthrows IllegalArgumentException;\r\n}", "title": "" }, { "docid": "db9000d0b6ab12f1f8febd414b835886", "score": "0.55918276", "text": "public interface AsyncApi<T> {\n\n void register(T listener);\n\n void unRegister();\n}", "title": "" }, { "docid": "faaa59739a63928948c296c8a0dc0825", "score": "0.55856836", "text": "public interface QuoteListAsyncResponse{\n void processFinished(ArrayList<Quote> quotes);\n}", "title": "" }, { "docid": "7595e13c9316dd89d99fb7dfcb802b96", "score": "0.55855805", "text": "public interface AsyncArtifactToPhenotype<ArtClass, PhenoClass> {\n Task<PhenoClass> asyncPhenotypeToUI(ArtClass artifact, JsonNode params);\n}", "title": "" }, { "docid": "1436c4e257606bb53fc7a3d12ae1bb0d", "score": "0.5580321", "text": "public interface CallBack {\n\n public void execute(String data);\n\n}", "title": "" }, { "docid": "0287c79d6ed09050d9820552851685cf", "score": "0.55772626", "text": "interface AsyncProcessCallback<CResult> {\n\n /**\n * Called on success. originalIndex holds the index in the action list.\n */\n void success(int originalIndex, byte[] region, Row row, CResult result);\n\n /**\n * called on failure, if we don't retry (i.e. called once per failed operation).\n *\n * @return true if we should store the error and tag this async process as being in error.\n * false if the failure of this operation can be safely ignored, and does not require\n * the current process to be stopped without proceeding with the other operations in\n * the queue.\n */\n boolean failure(int originalIndex, byte[] region, Row row, Throwable t);\n\n /**\n * Called on a failure we plan to retry. This allows the user to stop retrying. Will be\n * called multiple times for a single action if it fails multiple times.\n *\n * @return false if we should retry, true otherwise.\n */\n boolean retriableFailure(int originalIndex, Row row, byte[] region, Throwable exception);\n }", "title": "" }, { "docid": "9b25424cccf5922169a2207b3b87bd24", "score": "0.55747783", "text": "public interface AsyncResponse {\n void processFinish(String output);\n void processFinish2(String output);\n}", "title": "" }, { "docid": "0706e19be8ac211346acd52710d6f78d", "score": "0.55742604", "text": "public static void extensionASyncAPI(String method, String stringArg, int intArg, double doubleArg) {\n\n }", "title": "" }, { "docid": "7d928aa20c4387a86a861fc3fd8cc81f", "score": "0.5569817", "text": "public interface C9758l {\n void onComplete();\n}", "title": "" }, { "docid": "9262878ddcc0646c35820bbae828514f", "score": "0.5568174", "text": "public interface UserActivitySummaryManager {\n\n /**\n * Login to Facebook system, then fetch the DropInfo from PeepShow service.\n */\n @AsyncMethod\n public UserLoginCompleteEvent loginAndFetchDropInfo();\n\n\n public static class UserLoginCompleteEvent {\n private DropInfoDTO mDropInfoDto;\n private GraphUser mGraphUser;\n private Response mFacebookResponse;\n private boolean mSuccess;\n\n public UserLoginCompleteEvent(DropInfoDTO dropInfoDto, GraphUser graphUser, Response facebookResponse, boolean success) {\n this.mDropInfoDto = dropInfoDto;\n this.mGraphUser = graphUser;\n this.mFacebookResponse = facebookResponse;\n this.mSuccess = success;\n }\n\n public UserLoginCompleteEvent(boolean success) {\n this.mDropInfoDto = null;\n this.mGraphUser = null;\n this.mFacebookResponse = null;\n this.mSuccess = success;\n }\n\n public boolean ismSuccess() {\n return mSuccess;\n }\n\n public Response getmFacebookResponse() {\n return mFacebookResponse;\n }\n\n public DropInfoDTO getmDropInfoDto() {\n return mDropInfoDto;\n }\n\n public GraphUser getmGraphUser() {\n return mGraphUser;\n }\n }\n}", "title": "" }, { "docid": "b3530ff937788373a824379fd6b3f5a6", "score": "0.556637", "text": "public interface AsynchronousJobServices {\r\n\r\n\t/**\r\n\t * Launch a new job.\r\n\t * \r\n\t * @param userId\r\n\t * @param body\r\n\t * @return\r\n\t * @throws NotFoundException \r\n\t */\r\n\tAsynchronousJobStatus startJob(Long userId, AsynchronousRequestBody body) throws NotFoundException, UnauthorizedException;\r\n\t\r\n\t/**\r\n\t * Get the status for an existing job.\r\n\t * \r\n\t * @param userId\r\n\t * @param jobId\r\n\t * @return\r\n\t * @throws NotFoundException\r\n\t * @throws NotReadyException\r\n\t * @throws AsynchJobFailedException\r\n\t */\r\n\tAsynchronousJobStatus getJobStatus(Long userId, String jobId) throws NotFoundException;\r\n\r\n\t/**\r\n\t * Stop an existing job.\r\n\t * \r\n\t * @param userId\r\n\t * @param jobId\r\n\t * @return\r\n\t * @throws NotFoundException\r\n\t * @throws NotReadyException\r\n\t * @throws AsynchJobFailedException\r\n\t */\r\n\tvoid cancelJob(Long userId, String jobId) throws NotFoundException;\r\n\r\n\t/**\r\n\t * Get the status for an existing job and throw exceptions on error and not done.\r\n\t * \r\n\t * @param userId\r\n\t * @param jobId\r\n\t * @return\r\n\t * @throws Throwable \r\n\t */\r\n\tAsynchronousJobStatus getJobStatusAndThrow(Long userId, String jobId) throws Throwable;\r\n}", "title": "" }, { "docid": "89ff9c8a0f74056f06375b2b708b1e7c", "score": "0.55545855", "text": "public interface IOperation {\n public String readAsync();\n public void writeAsync(String message);\n}", "title": "" }, { "docid": "b570ef89d632b0bccc7002739a4934bb", "score": "0.55519235", "text": "public interface Gwt1ServiceAsync {\n void greetServer(String input, AsyncCallback<String> callback)\n throws IllegalArgumentException;\n}", "title": "" }, { "docid": "202cca8781353e1eaf7ec1ccf94bbbc4", "score": "0.55423945", "text": "public interface IInvokableInstance extends IInstance\n{\n public default <O> CallableNoExcept<Future<O>> asyncCallsOnInstance(SerializableCallable<O> call) { return async(transfer(call)); }\n public default <O> CallableNoExcept<O> callsOnInstance(SerializableCallable<O> call) { return sync(transfer(call)); }\n public default <O> O callOnInstance(SerializableCallable<O> call) { return callsOnInstance(call).call(); }\n\n public default CallableNoExcept<Future<?>> asyncRunsOnInstance(SerializableRunnable run) { return async(transfer(run)); }\n public default Runnable runsOnInstance(SerializableRunnable run) { return sync(transfer(run)); }\n public default void runOnInstance(SerializableRunnable run) { runsOnInstance(run).run(); }\n\n public default <I> Function<I, Future<?>> asyncAcceptsOnInstance(SerializableConsumer<I> consumer) { return async(transfer(consumer)); }\n public default <I> Consumer<I> acceptsOnInstance(SerializableConsumer<I> consumer) { return sync(transfer(consumer)); }\n\n public default <I1, I2> BiFunction<I1, I2, Future<?>> asyncAcceptsOnInstance(SerializableBiConsumer<I1, I2> consumer) { return async(transfer(consumer)); }\n public default <I1, I2> BiConsumer<I1, I2> acceptsOnInstance(SerializableBiConsumer<I1, I2> consumer) { return sync(transfer(consumer)); }\n\n public default <I, O> Function<I, Future<O>> asyncAppliesOnInstance(SerializableFunction<I, O> f) { return async(transfer(f)); }\n public default <I, O> Function<I, O> appliesOnInstance(SerializableFunction<I, O> f) { return sync(transfer(f)); }\n\n public default <I1, I2, O> BiFunction<I1, I2, Future<O>> asyncAppliesOnInstance(SerializableBiFunction<I1, I2, O> f) { return async(transfer(f)); }\n public default <I1, I2, O> BiFunction<I1, I2, O> appliesOnInstance(SerializableBiFunction<I1, I2, O> f) { return sync(transfer(f)); }\n\n public default <I1, I2, I3, O> TriFunction<I1, I2, I3, Future<O>> asyncAppliesOnInstance(SerializableTriFunction<I1, I2, I3, O> f) { return async(transfer(f)); }\n public default <I1, I2, I3, O> TriFunction<I1, I2, I3, O> appliesOnInstance(SerializableTriFunction<I1, I2, I3, O> f) { return sync(transfer(f)); }\n\n public <E extends Serializable> E transfer(E object);\n\n}", "title": "" }, { "docid": "f259342ed013903ab57513e445684031", "score": "0.5541552", "text": "public abstract _Struct resolveAsynchronous(Class<?> cls);", "title": "" }, { "docid": "e8fbec4d93fcb227d1da113b4023eb75", "score": "0.55327064", "text": "public interface DataContract {\n void getNewBatchOfData(final OnTaskCompletion callback);\n}", "title": "" }, { "docid": "0d1864e2e28ed7ca60b15f57ed70a717", "score": "0.5509553", "text": "public interface TaskDelegate {\n void RegisterTaskComplete(String result, Context context);\n void LoginTaskComplete(String result, Context context);\n void LogoutTaskComplete(String result, Context context);\n void GetUserKeysTaskComplete(List<String> result, Context context);\n void UpdateKeyTaskComplete(String result, Context context);\n void RemoveKeyTaskComplete(String result, String key, Context context);\n void SendMessageTaskComplete(String result, Context context);\n void RemoveLocationTaskComplete(String result, String name, Context context);\n void RemoveMessageTaskComplete(String result, int id, Context context);\n\n}", "title": "" }, { "docid": "d6de6a05800b3fcc100060ee9653d915", "score": "0.5508975", "text": "public interface ProcessApprovalGateway extends java.rmi.Remote {\n \n /**\n * Operation Name : {http://xmlns.oracle.com/ApprovalGatewayManager/ApprovalGateway/ProcessApprovalGateway}process */\n\n public be.e1.bssv.J560201.com.beaerospace.approvalgateway.ApprovalGatewayReply process(be.e1.bssv.J560201.com.beaerospace.approvalgateway.ApprovalGatewayRequest payload) throws java.rmi.RemoteException;\n public void processAsync(weblogic.wsee.async.AsyncPreCallContext apc, be.e1.bssv.J560201.com.beaerospace.approvalgateway.ApprovalGatewayRequest payload) throws java.rmi.RemoteException ;\n \n}", "title": "" }, { "docid": "2e60f642a83a260714a030a8a9268719", "score": "0.55082726", "text": "public interface AsyncResponse {\n void processData(String[] s);\n}", "title": "" }, { "docid": "a2e68488382153f26d0c2e032288fbf7", "score": "0.5507575", "text": "public interface SCERecepcaoRFB {\r\n \r\n\r\n /**\r\n * Auto generated method signature\r\n * \r\n * @param sceDadosMsg0\r\n \r\n * @param sceCabecMsg1\r\n \r\n */\r\n\r\n \r\n public br.inf.portalfiscal.www.nfe.wsdl.scerecepcaorfb.SceRecepcaoDPECResult sceRecepcaoDPEC(\r\n\r\n br.inf.portalfiscal.www.nfe.wsdl.scerecepcaorfb.SceDadosMsg sceDadosMsg0,br.inf.portalfiscal.www.nfe.wsdl.scerecepcaorfb.SceCabecMsgE sceCabecMsg1)\r\n throws java.rmi.RemoteException\r\n ;\r\n\r\n \r\n /**\r\n * Auto generated method signature for Asynchronous Invocations\r\n * \r\n * @param sceDadosMsg0\r\n \r\n * @param sceCabecMsg1\r\n \r\n */\r\n public void startsceRecepcaoDPEC(\r\n\r\n br.inf.portalfiscal.www.nfe.wsdl.scerecepcaorfb.SceDadosMsg sceDadosMsg0,br.inf.portalfiscal.www.nfe.wsdl.scerecepcaorfb.SceCabecMsgE sceCabecMsg1,\r\n \r\n\r\n final br.inf.portalfiscal.www.nfe.wsdl.scerecepcaorfb.SCERecepcaoRFBCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException;\r\n\r\n \r\n\r\n \r\n //\r\n }", "title": "" }, { "docid": "8b79069b00c384242519ac3591a7ae79", "score": "0.5500217", "text": "void sendAsync(Message message, ResponseCallback cb);", "title": "" }, { "docid": "a3971d4f6b0d7791c43354a0b3c6ab4b", "score": "0.5499127", "text": "public interface OnAcceptInvitationCompleted {\n /**\n * Method that is executed when an invitation has been accepted\n *\n * @param result The result of the call\n * @param gameId The game ID\n * @param invitationId The invitation ID\n */\n void onAcceptInvitationCompleted(Boolean result, String gameId, String invitationId);\n}", "title": "" }, { "docid": "7884fd729ad911f6072dadee7c442adf", "score": "0.5497427", "text": "@Override\n public void generateMethodMeta(String methodName, JsonObject params, String url,\n String httpVerb, JsonArray contentType, JsonArray accepts){\n\n JMethod jmCreateWithHandler = method(JMod.PUBLIC, void.class, methodName);\n JBlock bodyWithHandler = jmCreateWithHandler.body();\n\n /* Adding java doc for method */\n jmCreateWithHandler.javadoc().add(\"Service endpoint \" + url);\n\n /* add response handler to each function */\n JClass handler = jcodeModel.ref(HttpResponse.class).narrow(Buffer.class);\n handler = jcodeModel.ref(AsyncResult.class).narrow(handler);\n handler = jcodeModel.ref(Handler.class).narrow(handler);\n\n populateParams(params, jmCreateWithHandler, null);\n\n bodyWithHandler.directStatement(String.format(\"%s(%s).onComplete(responseHandler);\",\n methodName, jmCreateWithHandler.params().stream().map(JVar::name)\n .collect(Collectors.joining(\", \"))));\n\n jmCreateWithHandler.param(handler, \"responseHandler\");\n\n ////////////////////////---- Handle place holders in the url ----//////////////////\n /* create request */\n /* Handle place holders in the URL\n * replace {varName} with \"+varName+\" so that it will be replaced\n * in the url at runtime with the correct values */\n\n url = \"\\\"\" +\n Pattern.compile(\"\\\\{([^{}/]+)\\\\}\").matcher(url).replaceAll(\"\\\"+$1+\\\"\") +\n \"\\\"+queryParams.toString()\";\n\n /* Adding method to the Class which is public and returns void */\n\n /* add response handler to each function */\n JClass handler1 = jcodeModel.ref(HttpResponse.class).narrow(Buffer.class);\n handler1 = jcodeModel.ref(Future.class).narrow(handler1);\n\n JMethod jmCreate = jc.method(JMod.PUBLIC, handler1, methodName);\n addCommentAutogenerated(jmCreate);\n\n JBlock body = jmCreate.body();\n\n /* create the query parameter string builder */\n JVar queryParams = body.decl(jcodeModel._ref(StringBuilder.class), \"queryParams\",\n JExpr._new(jcodeModel.ref(StringBuilder.class)).arg(\"?\"));\n\n /* Adding java doc for method */\n jmCreate.javadoc().add(\"Service endpoint \" + url);\n\n /* iterate on function params and add the relevant ones\n * --> functionSpecificQueryParamsPrimitives is populated by query parameters that are primitives\n * --> functionSpecificHeaderParams (used later on) is populated by header params\n * --> functionSpecificQueryParamsEnums is populated by query parameters that are enums */\n boolean bodyContentExists = populateParams(params, jmCreate, queryParams);\n\n //////////////////////////////////////////////////////////////////////////////////////\n\n /* create the http client request object */\n final String httpMethodName = httpVerb.substring(httpVerb.lastIndexOf('.') + 1).toUpperCase();\n body.directStatement(\"io.vertx.ext.web.client.HttpRequest<Buffer> request = webClient.requestAbs(\"+\n \"io.vertx.core.http.HttpMethod.\"+ httpMethodName +\", okapiUrl+\"+url+\");\");\n\n /* add headers to request */\n functionSpecificHeaderParams.forEach(body::directStatement);\n //reset for next method usage\n functionSpecificHeaderParams = new ArrayList<>();\n\n /* add content and accept headers if relevant */\n if(contentType != null){\n String cType = contentType.toString().replace(\"\\\"\", \"\")\n .replace(\"[\", \"\").replace(\"]\", \"\");\n if(contentType.contains(\"multipart/form-data\")){\n body.directStatement(\"request.putHeader(\\\"Content-type\\\", \\\"\"+cType+\"; boundary=--BOUNDARY\\\");\");\n }\n else{\n body.directStatement(\"request.putHeader(\\\"Content-type\\\", \\\"\"+cType+\"\\\");\");\n }\n }\n if(accepts != null){\n String aType = accepts.toString().replace(\"\\\"\", \"\").replace(\"[\", \"\").replace(\"]\", \"\");\n //replace any/any with */* to allow declaring accpet */* which causes compilation issues\n //when declared in raml. so declare any/any in raml instead and replaced here\n aType = aType.replaceAll(\"any/any\", \"\");\n body.directStatement(\"request.putHeader(\\\"Accept\\\", \\\"\"+aType+\"\\\");\");\n }\n\n /* push tenant id into x-okapi-tenant and authorization headers for now */\n JConditional ifClause = body._if(tenantId.ne(JExpr._null()));\n ifClause._then().directStatement(\"request.putHeader(\\\"X-Okapi-Token\\\", token);\");\n ifClause._then().directStatement(\"request.putHeader(\\\"\"+OKAPI_HEADER_TENANT+\"\\\", tenantId);\");\n\n JConditional ifClause2 = body._if(this.okapiUrl.ne(JExpr._null()));\n ifClause2._then().directStatement(\"request.putHeader(\\\"X-Okapi-Url\\\", okapiUrl);\");\n\n /* if we need to pass data in the body */\n if(bodyContentExists){\n body.directStatement(\"return request.sendBuffer(buffer);\");\n } else {\n body.directStatement(\"return request.send();\");\n }\n }", "title": "" }, { "docid": "a1c06fccb645aa98b64f50be6226f03f", "score": "0.54966325", "text": "public interface AsyncRestApiStore {\n void save(RequestData data);\n\n RequestData complete(APIEvent evt);\n\n AsyncRestQueryResult query(String uuid);\n}", "title": "" }, { "docid": "8ff534f22eb1bd03acaac30fd2c6c65e", "score": "0.54907703", "text": "interface XMLRPCMethodCallback {\n\t\tvoid callFinished(Object result);\n\t}", "title": "" }, { "docid": "a64a3fca59ecd76885774cbbb8dbb267", "score": "0.54850954", "text": "public interface IRemoteServiceCallback<E> {\n /**\n * Start remote call process\n */\n void onStartTask();\n\n void onSuccess(E result);\n\n void onFailure(Fail fail);\n\n /**\n * End remote call process, call in any case after onStart,onSuccess,onFailure,onServerError\n */\n void onFinishTask();\n}", "title": "" }, { "docid": "1a8139c55456e742fd9a8a97a1696949", "score": "0.54817057", "text": "public interface Callback {\n void invoke(String input);\n}", "title": "" }, { "docid": "0a3f8296991db1eb1a2a9d6620059093", "score": "0.5479878", "text": "@Override\n public Object call(Method method, PojoConsumerMetaRefresher metaRefresher, PojoInvocationCreator invocationCreator,\n Object[] args) {\n PojoInvocation invocation = invocationCreator.create(method, metaRefresher, args);\n CompletableFuture<Object> future = CompletableFuture.completedFuture(invocation)\n .thenCompose(this::doCall);\n\n return isAsyncMethod(method) ? future : InvokerUtils.toSync(future, invocation.getWaitTime());\n }", "title": "" }, { "docid": "2c1f8bd088922b88544f7b643da5c4a6", "score": "0.5477827", "text": "public interface RpcService <I, O>{\n\n O syncCall(I input);\n\n void asyncCall(I input, RpcCallBack<I, O> callBack);\n\n String getDescriptor();\n\n long getResponseId();\n\n}", "title": "" }, { "docid": "bffa13d08ad9fa7b45907bdb6c503fde", "score": "0.54764956", "text": "public interface SignUpServiceAsync {\n\t\n\tvoid signUpServer(SignUpFields signUpFields, AsyncCallback<SignUpFields> callback)\n\t\t\t\tthrows IllegalArgumentException;\n\t}", "title": "" }, { "docid": "3d8e1c5ae0e34be6fbb3106337c6b54c", "score": "0.54712766", "text": "private <R, A> void callCompletion(CompletionHandler<R, A> handler,\n A attachment,\n Future<R> future)\n {\n handler.completed(AttachedFuture.wrap(future, attachment));\n }", "title": "" }, { "docid": "bea825b34a815fc2e0353325f6bb1e92", "score": "0.54711235", "text": "public interface AsyncCallBack {\r\n\r\n public void onSuccess(String result);\r\n\r\n public void onFailure(Call call, IOException e);\r\n\r\n}", "title": "" }, { "docid": "26a089b80d97c41383c3182480a2790e", "score": "0.54699904", "text": "public interface AsyncCallback<T> {\n /**\n * Called when an asynchronous call fails to complete normally. {@link\n * com.google.gwt.user.client.rpc.InvocationException}s, or checked exceptions thrown by the\n * service method are examples of the type of failures that can be passed to this method.\n *\n * @param caught failure encountered while executing a remote procedure call\n */\n void onFailure(Throwable caught);\n\n /**\n * Called when an asynchronous call completes successfully.\n *\n * @param result the return value of the remote produced call\n */\n void onSuccess(T result);\n}", "title": "" }, { "docid": "9e293a4dfc2a54d6c72b297b41cb26bd", "score": "0.5468409", "text": "public interface Callback {\r\n public void onRequestComplete(String output);\r\n}", "title": "" }, { "docid": "f7d66c6cdaf6f5a2d96783d5814cc0d1", "score": "0.54671806", "text": "void mo88856a(DbAsyncEntity aVar);", "title": "" }, { "docid": "27492bfcca24d214ea18c2878ce51072", "score": "0.5464703", "text": "@Override\n\tpublic void invokeTaskAsync(List<Task> tasks)\n\t{\n\t}", "title": "" }, { "docid": "3ad64257f35fc688991d3c16531dc284", "score": "0.546342", "text": "void handleComplete(AsyncFuture<? extends T> future, A attachment);", "title": "" }, { "docid": "f32c75dac1f664091ca3c1d923fd6500", "score": "0.5463238", "text": "public interface FacebookServiceAsync {\n public void login(String authToken, AsyncCallback<String> asyncCallback);\n\n public void findFriends(String authToken, AsyncCallback<List<FbFriend>> asyncCallback);\n}", "title": "" }, { "docid": "b2c404dafc83065e6bf4de389ea61cf9", "score": "0.546023", "text": "public interface CallBack {\n public void call();\n}", "title": "" }, { "docid": "25abc9cf14ad24231f8a8c5a12be7d95", "score": "0.54565305", "text": "public interface TaskCallback {\n void onTaskComplete(NumberPlate numberPlate);\n void onTaskComplete(File file);\n}", "title": "" }, { "docid": "89efd794f1743381ed453ccef05868b5", "score": "0.544633", "text": "@Override\n\tpublic void callBack(int type) {\n\n\t}", "title": "" }, { "docid": "78e9215325e21247e7a74e05c86b9635", "score": "0.5443124", "text": "public interface OnTaskCompleted {\n void onTaskCompleted(DataLocation data_location);\n}", "title": "" }, { "docid": "9c5cb8795064ff24ba58b3525a3a29df", "score": "0.5438876", "text": "@Override\r\n public boolean isAsyncSupported() {\n return false;\r\n }", "title": "" }, { "docid": "8f3d89b4ca7b2e7a1fbe7c17a7c3beed", "score": "0.54375654", "text": "public interface AsyncResult {\n void onResult(JSONObject object);\n}", "title": "" }, { "docid": "e8f0e376af68c8e8c9ca5caa10f97a64", "score": "0.5432172", "text": "public interface RNJsBridgeCallAction {\n\n void call(Map<String, Object> paramsMap, Callback callback);\n\n}", "title": "" }, { "docid": "310f60c724423f9aedb33748373ad377", "score": "0.54308563", "text": "@Override\n public void onSuccess(IMqttToken asyncActionToken) {\n }", "title": "" } ]
00fe57bdf763784fa6c80ad3810f8d1b
Get the name of the type.
[ { "docid": "4de17ce6d9614df8d1bd928b32a6bd32", "score": "0.77471304", "text": "public abstract String getTypeName();", "title": "" } ]
[ { "docid": "ed23d597ee2803646ac2637b82db0faa", "score": "0.8585785", "text": "java.lang.String getTypeName();", "title": "" }, { "docid": "c52bffd72f4eed4b4c1b37f08a28d3ee", "score": "0.854004", "text": "String getTypeName();", "title": "" }, { "docid": "c52bffd72f4eed4b4c1b37f08a28d3ee", "score": "0.854004", "text": "String getTypeName();", "title": "" }, { "docid": "6b282c25a537839b52285e1201e4625a", "score": "0.8463677", "text": "public String getTypeName()\n {\n return TYPE_NAME;\n }", "title": "" }, { "docid": "6b282c25a537839b52285e1201e4625a", "score": "0.8463677", "text": "public String getTypeName()\n {\n return TYPE_NAME;\n }", "title": "" }, { "docid": "3b76a1078de8dab1f98f560ed94bb273", "score": "0.84046483", "text": "default String getTypeName() {\n return getType().getSimpleName();\n }", "title": "" }, { "docid": "61d8ebb516603aa8c906406358b2aa81", "score": "0.83975327", "text": "@Override\n\tpublic String getTypeName() {\n\t\treturn this.name.getLocalPart();\n\t}", "title": "" }, { "docid": "064c17a48b0182c1379c7951bd58209e", "score": "0.83860326", "text": "public String getTypeName() {\n assert typeName != null;\n assert typeName.length() > 0;\n return typeName;\n }", "title": "" }, { "docid": "3877dd71bbe0ac3a4a656c52e59cf622", "score": "0.834369", "text": "public String getTypeName();", "title": "" }, { "docid": "2b17c3f58a1827f01f852ceac8ccedcf", "score": "0.83317494", "text": "public String getTypeName() {\r\n\t\tif (this.bType != null)\r\n\t\t\treturn this.bType.getStringRepr();\r\n\t\t\r\n\t\treturn this.name;\r\n\t}", "title": "" }, { "docid": "54b941ac14a73f9d3ce5f663d66f6adc", "score": "0.8307052", "text": "public String getTypeName() {\n return (String)getAttributeInternal(TYPENAME);\n }", "title": "" }, { "docid": "abd5e71cbe1a891e00c8e46b89a79b6d", "score": "0.8220957", "text": "public String getName() {\n return typeName;\n }", "title": "" }, { "docid": "5ca49e132e6dd58f19e62e976849707f", "score": "0.8218583", "text": "public String getTypeName() {\n return typeName;\n }", "title": "" }, { "docid": "d0ddab165ce45e782b007d714ce84603", "score": "0.82046753", "text": "public String getTypeName() {\r\n return typeName;\r\n }", "title": "" }, { "docid": "6509935b1ad6aebe1b347d8d63177e20", "score": "0.81779027", "text": "public String getTypeName() {\n return typeName;\n }", "title": "" }, { "docid": "12774c7f34008cf25e1c37c969806647", "score": "0.8154575", "text": "public\tString\t\tgetTypeName()\n\t{\n\t\treturn typeDescriptor.getTypeName();\n\t}", "title": "" }, { "docid": "7b9f95aabb3f0878916d599af113b3db", "score": "0.8015721", "text": "public String typeName() {\n return UPPER_UNDERSCORE.to(UPPER_CAMEL, name());\n }", "title": "" }, { "docid": "74a4570bb988658d6dffeedd0b9a86b1", "score": "0.8001248", "text": "public String getTypeName(Object type) {\r\n Class clazz = getJavaClass(type);\r\n return (clazz == null) ? null : clazz.getName();\r\n }", "title": "" }, { "docid": "3b5f6089a65bad029f27cb8d3565451e", "score": "0.79812413", "text": "String typeName();", "title": "" }, { "docid": "d17ebf3025db207f6931736166590fbb", "score": "0.79703575", "text": "public String typeName() {\n return TypeMaker.getType(env, skipArrays()).typeName();\n }", "title": "" }, { "docid": "5f923be5ba4be9259230af4c0549fde5", "score": "0.7863187", "text": "public String typeName() {\n return typeName;\n }", "title": "" }, { "docid": "06837b99c870c87bb57c27e4ddf15e5e", "score": "0.7858613", "text": "String getTypeName()\n\t{\n\t\treturn _typeName;\n\t}", "title": "" }, { "docid": "a40aaa7178835be7b1a2dcbb65b63571", "score": "0.77973527", "text": "public NameType getName() {\r\n\t\treturn (name == null) ? new NameType() : name;\r\n\t}", "title": "" }, { "docid": "b2e8aea5ff6826397e380c6f888cb315", "score": "0.7740475", "text": "SimpleName getType();", "title": "" }, { "docid": "b2e8aea5ff6826397e380c6f888cb315", "score": "0.7740475", "text": "SimpleName getType();", "title": "" }, { "docid": "c79e2b2c47bb3682fef87f8a1f1f92d6", "score": "0.76822615", "text": "public NameType getNameType() {\n return this.nameType;\n }", "title": "" }, { "docid": "ccb6a68fbbd1c69f47c958d0c09e2ca2", "score": "0.7654996", "text": "protected abstract String getTypeName();", "title": "" }, { "docid": "ccb6a68fbbd1c69f47c958d0c09e2ca2", "score": "0.7654996", "text": "protected abstract String getTypeName();", "title": "" }, { "docid": "b2e4dd7b5e9674346bd4ace2eeedb4f8", "score": "0.764013", "text": "public String getTypeName() {\n if (element != null)\n return element.getElementType().getTypeName();\n return null;\n }", "title": "" }, { "docid": "493d9be12772475c750fdeaa04644c61", "score": "0.76118207", "text": "protected String getTypeName() {\n\t\tIContentType ct = getContentType();\n\t\tif (ct != null) {\n\t\t\treturn ct.getName();\n\t\t}\n\n\t\treturn getDefaultTypeName();\n\t}", "title": "" }, { "docid": "aa8b2be50b1e49428f88533b84426bf5", "score": "0.7594542", "text": "public Name getType() {\r\n return library.getName(entries, TYPE_KEY);\r\n }", "title": "" }, { "docid": "ffaa91f177df45077c684f6835566cbc", "score": "0.75437355", "text": "@Override\n public String typeName()\n {\n if(this.typeName == null) {\n this.typeName = this.type.qualifiedTypeName() + this.type.dimension();\n }\n return this.typeName;\n }", "title": "" }, { "docid": "104e0de409997bc23b83cee0f17c404b", "score": "0.75406903", "text": "com.google.protobuf.ByteString\n getTypeNameBytes();", "title": "" }, { "docid": "c86a407510ec6691d03afe7a91b38dcc", "score": "0.7518966", "text": "public String getName() {\n return getClass().getSimpleName();\n }", "title": "" }, { "docid": "2df08afcc7ba1f47ca56bd585efe0c1f", "score": "0.75079465", "text": "public String getName(){\n\t\t\treturn clazz.getSimpleName();\n\t\t}", "title": "" }, { "docid": "645ae28a2885980dfeb7a2e20cf9d937", "score": "0.7505372", "text": "public String getName() {\r\n\t\treturn getClass().getSimpleName();\r\n\t}", "title": "" }, { "docid": "54cb226ea5cbea4ac7596e36b4657371", "score": "0.74913263", "text": "public String getName() {\n\t\treturn getClass().getSimpleName();\n\t}", "title": "" }, { "docid": "bdf869c8cec70cb7c0c74fba90a074ca", "score": "0.743439", "text": "String getShortTypeName();", "title": "" }, { "docid": "e13234f91f21e2d50601170dfe8d2b26", "score": "0.7421673", "text": "public static String staticType()\n { return typeName(); }", "title": "" }, { "docid": "2b4d4664a77a6aa71cba00a36f8b16f0", "score": "0.7324693", "text": "public NameType nameType() {\n _initialize();\n return nameType;\n }", "title": "" }, { "docid": "9ef82785ac9c7140ee7986d9e8170e93", "score": "0.7314735", "text": "public java.lang.String getTypname() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgType.PG_TYPE.TYPNAME);\n\t}", "title": "" }, { "docid": "55a97699997cfd6be02859045c45fe1f", "score": "0.72979796", "text": "public String qualifiedTypeName() {\n return TypeMaker.getType(env, skipArrays()).qualifiedTypeName();\n }", "title": "" }, { "docid": "03169c393086a37b3e41a776610a45ff", "score": "0.7270824", "text": "@Override\n\tpublic String getType()\n\t{\n\t\treturn getClass().getSimpleName();\n\t}", "title": "" }, { "docid": "ecdd88ae682cc6848190eb49607c5ec8", "score": "0.72533923", "text": "String getLocalizedTypeName();", "title": "" }, { "docid": "e7d87b9fa93364cb537ebe0ce3455110", "score": "0.72419906", "text": "String getTypeIdentifier();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.72416025", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.72416025", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.72416025", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.72416025", "text": "java.lang.String getType();", "title": "" }, { "docid": "08ebabc5ef0b7d6dd8087721ccb09057", "score": "0.72365844", "text": "public String getName() {\n return getClass().getName();\n }", "title": "" }, { "docid": "25b20cf03884ab13ad33db45a68428cf", "score": "0.72056603", "text": "public String getTypeString() {\n\t\treturn type.toString();\n\t}", "title": "" }, { "docid": "dfb4f580b238cbed6cc9869b0d077a04", "score": "0.720183", "text": "public java.lang.String getType()\r\n\t{\r\n\t\treturn type;\r\n\t}", "title": "" }, { "docid": "de83dc76a0ba167d0e1fa25f9795148c", "score": "0.7194121", "text": "public java.lang.String getType () {\r\n\t\treturn type;\r\n\t}", "title": "" }, { "docid": "af3f96dbb1d0a9a3fad8bd700d57aadd", "score": "0.7192766", "text": "public String getType() {\n if (this.type != null) {\n return this.type;\n }\n else {\n return \"No type specified\";\n }\n }", "title": "" }, { "docid": "56c1d0454f3f2ae09d71ae5ba389535b", "score": "0.71875155", "text": "public String getType() {\n return (String) get(TYPE);\n }", "title": "" }, { "docid": "414591213fc1ad72528cb2958a2c1da3", "score": "0.71835554", "text": "public final String getType() {\n return (type_);\n }", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.7173419", "text": "String getType();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.71445364", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7144397", "text": "java.lang.String getName();", "title": "" } ]
15ad2f0fbbeb3a8b0a478cfae585628b
Adds a new criteria list with the assert type specified.
[ { "docid": "25064f1e4fa13ffe3f4397c3e51224b5", "score": "0.827684", "text": "public final CriteriaList addNewCriteriaList(String assertType) {\n\t\tcriteriaList = new CriteriaList(assertType);\n\t\treturn criteriaList;\n\t}", "title": "" } ]
[ { "docid": "699567d4cf782c04370060479c9e8b99", "score": "0.5612694", "text": "default void add(Criteria... criteria) {\n legacyOperation();\n }", "title": "" }, { "docid": "28e4180c6a098a0c3fe049e38a57bca9", "score": "0.5440775", "text": "Criteria add(Criteria add);", "title": "" }, { "docid": "28e4180c6a098a0c3fe049e38a57bca9", "score": "0.5440775", "text": "Criteria add(Criteria add);", "title": "" }, { "docid": "28e4180c6a098a0c3fe049e38a57bca9", "score": "0.5440775", "text": "Criteria add(Criteria add);", "title": "" }, { "docid": "28e4180c6a098a0c3fe049e38a57bca9", "score": "0.5440775", "text": "Criteria add(Criteria add);", "title": "" }, { "docid": "28e4180c6a098a0c3fe049e38a57bca9", "score": "0.5440775", "text": "Criteria add(Criteria add);", "title": "" }, { "docid": "28e4180c6a098a0c3fe049e38a57bca9", "score": "0.5440775", "text": "Criteria add(Criteria add);", "title": "" }, { "docid": "28e4180c6a098a0c3fe049e38a57bca9", "score": "0.5440775", "text": "Criteria add(Criteria add);", "title": "" }, { "docid": "dea787ca32637d50d5826b18b9b1f514", "score": "0.53992283", "text": "public void addAssertions(Assertions asserts) {\r\n if (getCommandLine().getAssertions() != null) {\r\n throw new BuildException(\"Only one assertion declaration is allowed\");\r\n }\r\n getCommandLine().setAssertions(asserts);\r\n }", "title": "" }, { "docid": "654ad5203c4e1b68149933f17890a4ef", "score": "0.5343909", "text": "public void addType(TypeData type) { types.add(type); }", "title": "" }, { "docid": "d857c477f93eab1f7a01c788ce331e34", "score": "0.5266326", "text": "public void setAssertAllowedType(boolean assertType) {\n _assertType = assertType;\n }", "title": "" }, { "docid": "6f4c596ec6ff1b05c3c5e179440c9fcc", "score": "0.5215045", "text": "public ProjectTypeExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "4ed5177f47146232d74d66535035261f", "score": "0.51421726", "text": "public void addAssoications(Criteria criteria) {\r\n\r\n\t\tif (item.getPrescription() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"prescription.id\", item\r\n\t\t\t\t\t.getPrescription().getId()));\r\n\t\t}\r\n\r\n\t\tif (item.getDrug() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"drug.id\", item.getDrug()\r\n\t\t\t\t\t.getId()));\r\n\t\t}\r\n\r\n\t\tif (item.getFrequency() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"frequency.id\", item\r\n\t\t\t\t\t.getFrequency().getId()));\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "11d79e2214e4da9383455cc35dfa859a", "score": "0.5117176", "text": "public abstract <T> List<T> list(List<Criteria> criterias, Class<T> aClass);", "title": "" }, { "docid": "3a39829f2d7e8572ceb0d78254ea4340", "score": "0.508924", "text": "public void setCriteriaType(String criteriaType)\r\n\t{\r\n\t\tthis.criteriaType = criteriaType;\r\n\t}", "title": "" }, { "docid": "e639ea83628dccf038413aacfe57e316", "score": "0.5007385", "text": "public CanvasCriteriaTypeMap(String criteriaType, List<CriteriaValue> criteriaValues)\r\n\t{\r\n\t\tthis.criteriaType = criteriaType;\r\n\t\tthis.criteriaValues = criteriaValues;\r\n\r\n\t}", "title": "" }, { "docid": "7ea402a57e4106c97e8b80da208293d0", "score": "0.4989543", "text": "public void add(Type t);", "title": "" }, { "docid": "77c4419f968242a76241e91e079f5fac", "score": "0.49615178", "text": "public void addFact(ArrayList<Fact> facts) {\n requiredFacts.addAll(facts);\n }", "title": "" }, { "docid": "1001123a60a2bd317e6ba98bc1bedea6", "score": "0.49351573", "text": "public TBusineCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "eb1e5c4faeb36ae98fc2ac4d5f4bf17b", "score": "0.49191275", "text": "@Override\n\tpublic void addRestrictions(Criteria criteria) {\n\t\t\n\t}", "title": "" }, { "docid": "6d594bb0318e9d906628205a08c85b8d", "score": "0.48928645", "text": "<T extends ListenableEvent> ActionItem addAction(ActionType<T> type, Action<T> action);", "title": "" }, { "docid": "77eecf2430140f62b95deec60dc75bdf", "score": "0.47963786", "text": "private List<Criterion> createCriterions(String entityType, Long assigneeId, Long statusId) {\r\n List<Criterion> criterions = new ArrayList<Criterion>();\r\n\r\n if (assigneeId != null) {\r\n Criterion assigneeCriterion = Restrictions.eq(\"asgn.id\", assigneeId);\r\n criterions.add(assigneeCriterion);\r\n }\r\n if (!StringUtils.isEmpty(entityType)) {\r\n Criterion entityCriterion = Restrictions.eq(\"entityType\", entityType);\r\n criterions.add(entityCriterion);\r\n }\r\n if (statusId != null) {\r\n Criterion statusCriterion = Restrictions.eq(\"cs.status.id\", statusId);\r\n criterions.add(statusCriterion);\r\n }\r\n\r\n return criterions;\r\n }", "title": "" }, { "docid": "859d7db87311f5e49d8041bdc3c09207", "score": "0.47811103", "text": "public boolean add(Type item);", "title": "" }, { "docid": "e3bd7d7c4274875f236015c0e2fa5783", "score": "0.47780475", "text": "public void add(int index, Type t);", "title": "" }, { "docid": "9aa0d9128b5776d2c9a4ab4e033769e4", "score": "0.47729877", "text": "@Test\n public void testAddOrd() {\n System.out.println(\"addOrd\");\n Criteria ctr = null;\n String orderProp = \"\";\n EDirecaoOrdenacao orderDir = null;\n ClassificacaoTributariaDAO instance = new ClassificacaoTributariaDAO();\n instance.addOrd(ctr, orderProp, orderDir);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "9156e5ad213d5fac66a0fc437e44dcff", "score": "0.4769819", "text": "public PayActinfoExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "title": "" }, { "docid": "29dd3ad89f128478c0be0d7755389063", "score": "0.47675225", "text": "public void newCriteria(){\r\n this.criteria = EasyCriteriaFactory.createQueryCriteria(em, classe);\r\n }", "title": "" }, { "docid": "1ca09e1da75f36e91bcc0a3d91daaf70", "score": "0.47396034", "text": "public Matcher forType(String typeOf) {\n\t\tMatcher matcher = new Matcher(jCas, typeOf);\n\t\tthis.matchers.add(matcher);\n\t\treturn matcher;\n\t}", "title": "" }, { "docid": "c00a7c6c118724a611987ab94b79b5c4", "score": "0.47344792", "text": "@Test\n public void testAddFiltros() {\n System.out.println(\"addFiltros\");\n ClassificacaoTributaria obj = null;\n Criteria ctr = null;\n ClassificacaoTributariaDAO instance = new ClassificacaoTributariaDAO();\n instance.addFiltros(obj, ctr);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "8f85c7fbb818b831b40a8daae90604ed", "score": "0.4734103", "text": "public abstract void add(T input, List<Method> methods, List<String> dateTypes);", "title": "" }, { "docid": "4637dcae774c16351ebe5e0d005cd45a", "score": "0.4720986", "text": "public void add (String id, String email, int type, String name);", "title": "" }, { "docid": "68786fb52892bb8e6c8dad7485a0eaee", "score": "0.47101977", "text": "@Test\n\tpublic void findTypeList() {\n\t}", "title": "" }, { "docid": "0660e8716948f34fafacc2728d614526", "score": "0.46851158", "text": "@Test\n\tpublic void addPointsByListTest(){\n\t}", "title": "" }, { "docid": "254bddd1e6229ae437a4ea8083aeaa80", "score": "0.4673271", "text": "private ArrayList<CourseCompo> addCourseComp(int courseType){\n ArrayList<String> dateAndTime = new ArrayList<String>();\n ArrayList<CourseCompo> courseCompoList = new ArrayList<CourseCompo>();\n CourseCompo courseCompo = new CourseCompo(null,null,null);\n System.out.println(\"\\nPlease enter the date and time for lecture:\\n\");\n dateAndTime = this.dateTimeSelection();\n \n courseCompoList.add(new CourseCompo(\"LEC\",dateAndTime.get(0),dateAndTime.get(1)));\n if(courseType ==2){\n\n System.out.println(\"\\nPlease enter the date and time for tutorial:\\n\");\n dateAndTime = this.dateTimeSelection();\n courseCompoList.add(new CourseCompo(\"TUT\",dateAndTime.get(0),dateAndTime.get(1)));\n }\n else if (courseType ==3){\n System.out.println(\"\\nPlease enter the date and time for tutorial:\\n\");\n dateAndTime = this.dateTimeSelection();\n courseCompoList.add(new CourseCompo(\"TUT\",dateAndTime.get(0),dateAndTime.get(1)));\n\n System.out.println(\"\\nPlease enter the date and time for lab:\\n\");\n dateAndTime = this.dateTimeSelection();\n courseCompoList.add(new CourseCompo(\"LAB\",dateAndTime.get(0),dateAndTime.get(1)));\n\n \n\n \n }\n return courseCompoList;\n }", "title": "" }, { "docid": "2126dfbdc976fbf5b7e68eee3ddbfc41", "score": "0.46191087", "text": "IList<T> add(T t);", "title": "" }, { "docid": "cbd3b393c48773cb6c3fad2a2ceabd63", "score": "0.4618768", "text": "ListType createListType();", "title": "" }, { "docid": "b7e354a552a1453e3c3f2419bdcdfb67", "score": "0.46105832", "text": "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "title": "" }, { "docid": "db4adeadae875fbffb0ce0a20d3a0cab", "score": "0.4596755", "text": "private void addEntranceLog(String logType) {\n if(ticketTrans == null || checkedItems.size() == 0) return;\n\n Entrance entrance = new Entrance(EntranceStep2Activity.this);\n\n Log.d(EntranceStep2Activity.class.toString(), logType);\n\n try {\n entrance.add(encryptRefNo, checkedItems, logType);\n } catch (Exception e) {\n String reason = e.getMessage();\n Toast.makeText(getApplicationContext(), reason, Toast.LENGTH_SHORT).show();\n } finally {\n loading.dismiss();\n }\n }", "title": "" }, { "docid": "564c57d68261320d46331d4246b3e058", "score": "0.45915103", "text": "public ActionStatus addRecord(Map<AuditingFieldsKey, Object> params, String type) {\n\t\tMap<String, Object> displayFields = new HashMap<>();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Entry<AuditingFieldsKey, Object> entry : params.entrySet()) {\n\t\t\tdisplayFields.put(entry.getKey().getDisplayName(), entry.getValue());\n\t\t\tsb.append(entry.getKey().getDisplayName()).append(\" = \").append(entry.getValue()).append(\",\");\n\t\t}\n\n\t\t// Persisiting\n\t\t// String type = clazz.getSimpleName().toLowerCase();\n\t\tAuditingGenericEvent auditingGenericEvent = new AuditingGenericEvent();\n\t\tpopulateCommonFields(params, auditingGenericEvent);\n\t\tauditingGenericEvent.getFields().putAll(displayFields);\n\n\t\tlog.debug(\"Auditing: Persisting object of type {}, fields: {}\", type, sb.toString());\n\n\t\treturn write(type, auditingGenericEvent);\n\t}", "title": "" }, { "docid": "9e94136486b9f05f8a28d299518deced", "score": "0.4588338", "text": "public QuestionnaireExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "a4556192a84ac448873efde6fdfab49b", "score": "0.45758408", "text": "void criteria(Criteria criteria);", "title": "" }, { "docid": "a4556192a84ac448873efde6fdfab49b", "score": "0.45758408", "text": "void criteria(Criteria criteria);", "title": "" }, { "docid": "a4556192a84ac448873efde6fdfab49b", "score": "0.45758408", "text": "void criteria(Criteria criteria);", "title": "" }, { "docid": "a4556192a84ac448873efde6fdfab49b", "score": "0.45758408", "text": "void criteria(Criteria criteria);", "title": "" }, { "docid": "f8930b82f66626ed6953a08baf9da5e8", "score": "0.45735517", "text": "public void addDojoTypes(Collection<String> types) {\n dojoTypes.addAll(types);\n }", "title": "" }, { "docid": "76f826cf80f4c756a43ceeeaf0d7039d", "score": "0.45672032", "text": "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }", "title": "" }, { "docid": "1eba5cceee0dadac686b526cfa90e1e6", "score": "0.45659745", "text": "@Test\n\tpublic void createTypedList() {\n\t\tList<String> list = new ArrayList<>();\n\n\t\tlist.add(\"String\");\n\n\t\tassertEquals(list, Collections.singletonList(\"String\"));\n\t}", "title": "" }, { "docid": "670e8099442d0ccb68248fff44e574cc", "score": "0.45653245", "text": "public RentExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "title": "" }, { "docid": "6814fbd8576644b2ed6aab46200bba05", "score": "0.456171", "text": "IRuleset add(IRuleset...rules);", "title": "" }, { "docid": "67fe99e3db5882abac87613c2e7e73b5", "score": "0.45539996", "text": "public PanoOrderTransCriteria() {\r\n oredCriteria = new ArrayList();\r\n }", "title": "" }, { "docid": "a4b22ed44166a4463a1c98289e290938", "score": "0.45430723", "text": "void addConstructorParametersTypes(final List<Class<?>> parametersTypes) {\r\n\t\tconstructorParametersTypes.add(parametersTypes);\r\n\t}", "title": "" }, { "docid": "e75bdcf3e1a85eb5afa1e999d1ef6522", "score": "0.45392904", "text": "public BugExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "64eccf1fcad2b4f770dea3bce353828f", "score": "0.4534503", "text": "public void addStringListValue(int type, String value);", "title": "" }, { "docid": "05145e85d3c866d047a56f58df4387f8", "score": "0.45259008", "text": "public NewsCustomerSurveyExample() {\r\n oredCriteria = new ArrayList();\r\n }", "title": "" }, { "docid": "5f74dbfaa6257a8d9615db746ed16848", "score": "0.45253405", "text": "public LitemallOrderExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "cb866c338756c521704b531260df6da8", "score": "0.4517034", "text": "@Test\n public void typeCategoriesTest() {\n final Category cardio = Category.CARDIO;\n final Category core = Category.CORE;\n final Category fullBody = Category.FULL_BODY;\n final Type endurance = Type.ENDURANCE;\n\n final List<Category> myCategories = new ArrayList<>();\n\n myCategories.add(cardio);\n myCategories.add(core);\n assertEquals(\"Categories of Endurance Type\", myCategories, endurance.getCategories());\n\n myCategories.add(fullBody);\n assertNotEquals(\"Not all the Categories are of Endurance Type\", myCategories, endurance.getCategories());\n\n }", "title": "" }, { "docid": "6101daf46f46da8b1a06cccc7ae11d64", "score": "0.4511434", "text": "@Test\n public void testGetListOfAircraftTypes() {\n System.out.println(\"getListOfAircraftTypes\");\n AircraftModel acModel = new AircraftModel();\n acModel.setId(\"PASSENGER\");\n Simulation sim = new Simulation();\n sim.getFlightPlan().getAircraft().setAircraftModel(acModel);\n p.getSimulationsList().getSimulationsList().add(sim);\n this.instance = new ExportCSVController(p);\n ExportCSVController instance = this.instance;\n \n List<String> expResult = new LinkedList<>();\n expResult.add(acModel.getId());\n List<String> result = instance.getListOfAircraftTypes();\n assertEquals(expResult, result);\n \n }", "title": "" }, { "docid": "66d316098c976e56f37d6c021454034a", "score": "0.45113617", "text": "public void addDojoType(String type) {\n dojoTypes.add(type);\n }", "title": "" }, { "docid": "adffaa76ceb802b4be24755440124d45", "score": "0.45026404", "text": "public void addCriteria(String criteriaJson) throws SQLException {\n PreparedStatement prepared = connection.prepareStatement(\"INSERT INTO criteriaSearchDB(criteria) values(?);\");\n prepared.setString(1, criteriaJson);\n prepared.execute();\n }", "title": "" }, { "docid": "a48780eac29345e58b24ecbdcc313ad5", "score": "0.4501878", "text": "public void addType(Vector2 pos, Fact.Type foundType) {\n if(foundType != Fact.Type.UNKNOWN) removeFact(pos.x, pos.y, Fact.Type.UNKNOWN);\n boolean alreadyAdded = hasFact(pos.x, pos.y, foundType);\n \n if (!alreadyAdded) {\n grid[pos.x-1][pos.y-1].addFact(new Fact(foundType));\n } \n }", "title": "" }, { "docid": "9c8ab3b16a34fe90b74fb65588b0c0fe", "score": "0.44830143", "text": "public void onAddNewCond() {\n dbConn.logUIMsg(RLogger.MSG_TYPE_INFO, RLogger.LOGGING_LEVEL_DEBUG, \"TableManagerBean.class :: onAddNew() :: Adding new Column\");\n ColList newCol = new ColList();\n newCol.setCol_name(\"COL\");\n newCol.setCol_value(\"VAL\");\n this.getCondColumnList().add(newCol);\n }", "title": "" }, { "docid": "a60adff982c369e54f47b2f8c4846ac4", "score": "0.44811207", "text": "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "title": "" }, { "docid": "2d2a03d40714ef9d063946a857abee1d", "score": "0.44702443", "text": "public UserPracticeSummaryCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "bcef4a6fd9f0015f150e7209e8cbc636", "score": "0.44580302", "text": "void writeTypeRestrictions(DBObject result, Set<Class<?>> restrictedTypes);", "title": "" }, { "docid": "43be3787eb0fb994380a62997db76a73", "score": "0.44483775", "text": "public ItemExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "e2c251a7a9a0d48348df459f890ac97b", "score": "0.4447248", "text": "private List<Criterion> createCriterions(String processLookup, Long entityId, String entityType) {\r\n List<Criterion> criterions = new ArrayList<Criterion>();\r\n\r\n if (!StringUtils.isEmpty(processLookup)) {\r\n Criterion processCriterion = Restrictions.eq(\"proc.lookup\", processLookup);\r\n criterions.add(processCriterion);\r\n }\r\n\r\n if (entityId != null) {\r\n Criterion entityCriterion = Restrictions.eq(\"entityId\", entityId);\r\n criterions.add(entityCriterion);\r\n }\r\n\r\n if (!StringUtils.isEmpty(entityType)) {\r\n Criterion entityTypeCriterion = Restrictions.eq(\"entityType\", entityType);\r\n criterions.add(entityTypeCriterion);\r\n }\r\n\r\n return criterions;\r\n }", "title": "" }, { "docid": "4190c3a207ecb61b91ceaec4676579a3", "score": "0.44439182", "text": "public Criteria createCriteria(Class<?> cl) throws HibException;", "title": "" }, { "docid": "0a92667d4a8e5ae462bae8548549839a", "score": "0.443797", "text": "public void setTypes(ArrayList<String> types){\n this.types = types;\n }", "title": "" }, { "docid": "24ab03bd86b7a74d5a16b50d87f0944c", "score": "0.44357032", "text": "private void addMatch(MetricalLpcfgMatch matchType) {\n\t\tswitch (matchType) {\n\t\t\tcase SUB_BEAT:\n\t\t\t\tsubBeatMatches++;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase BEAT:\n\t\t\t\tbeatMatches++;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase WRONG:\n\t\t\t\twrongMatches++;\n\t\t}\n\t}", "title": "" }, { "docid": "ec9f61c4cb3c12bdf9ba8cce190c3bb5", "score": "0.4435198", "text": "public void addExampleList(String classKey, List<Roi> roi, String type) ;", "title": "" }, { "docid": "0ad24860b00cfdaa7d1fb5b3a9547bc1", "score": "0.44338733", "text": "public void addParam(int pos, String type) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length + 1];\n for (int i = 0, index = 0; i < params.length; i++) {\n if (i == pos)\n params[i] = type;\n else\n params[i] = origParams[index++];\n }\n setParams(params);\n }", "title": "" }, { "docid": "4a4286a19e09ac0949838e54b919dbf8", "score": "0.4429963", "text": "@Override\n\tpublic void addInstrumentType(String type) {\n\t\t\n\t}", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.44293445", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" }, { "docid": "6a942928383332f3b68efe04bbc001f9", "score": "0.4424593", "text": "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "title": "" }, { "docid": "6a942928383332f3b68efe04bbc001f9", "score": "0.4424593", "text": "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "title": "" }, { "docid": "6a942928383332f3b68efe04bbc001f9", "score": "0.4424593", "text": "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "title": "" }, { "docid": "6a942928383332f3b68efe04bbc001f9", "score": "0.4424593", "text": "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "title": "" }, { "docid": "6a942928383332f3b68efe04bbc001f9", "score": "0.4424593", "text": "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "title": "" }, { "docid": "6a942928383332f3b68efe04bbc001f9", "score": "0.4424593", "text": "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "title": "" } ]
0b349d246bfc8899b61ff8026da6b0ec
Called for every aligned dimension entity.
[ { "docid": "a879c785984815e8d871dcc391a62469", "score": "0.6435071", "text": "abstract void addDimAlign(DL_DimensionData data,\n DL_DimAlignedData edata);", "title": "" } ]
[ { "docid": "1e66704e8b0e060e731eb52d271662d5", "score": "0.6220425", "text": "private void align() {\n\t\tArrayList<Boid> p = parent.content;\n\t\tMathVector adjustment = new MathVector(0d, 0d);\n\t\tfor (int i = 0; i < p.size(); i++)\n\t\t\t// Compiled properly, don't bother\n\t\t\tif (p.get(i) != this && distanceSquared(p.get(i)) < RANGE_ALIGN * RANGE_ALIGN) {\n\t\t\t\tadjustment.x += p.get(i).direction.x;\n\t\t\t\tadjustment.y += p.get(i).direction.y;\n\t\t\t}\n\t\tif (!adjustment.isZero()) {\n\t\t\tadjustment.normalize().mul(0.08d);\n\t\t\tthis.direction.add(adjustment).normalize();\n\t\t}\n\t}", "title": "" }, { "docid": "f534cb69eb43079206f2a57ba0e2c4bb", "score": "0.550829", "text": "public void align()\r\n\t{\r\n\t\tif (alignment == 0)\r\n\t\t{\r\n\t\t\tx = x - width / 2;\r\n\t\t}\r\n\t\telse if (alignment == 1)\r\n\t\t{\r\n\t\t\tx = x - width;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b8bbd41149e1dce8b1884d67aff3419f", "score": "0.5422883", "text": "Align align();", "title": "" }, { "docid": "ec74826be52cf7e1082af27268615677", "score": "0.53760767", "text": "private void handleAlign() {\r\n this.mLastOutputYaw = 0.0f;\r\n this.mLastOutputPitch = 0.0f;\r\n this.mLastOutputRoll = 0.0f;\r\n }", "title": "" }, { "docid": "259b10848465856ac4c8f42d59f969ba", "score": "0.5375416", "text": "abstract protected List<Interpolator> align();", "title": "" }, { "docid": "580d155af1bb4330410bcd61a3672a54", "score": "0.5257864", "text": "public void setHorizontalAlignment(int arg0) {\n\n\t}", "title": "" }, { "docid": "5850cbd899f0f51bacc9074372a62b85", "score": "0.52422136", "text": "protected void sequence_Dimensions(EObject context, Dimensions semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "title": "" }, { "docid": "baff7ac142116519358faf57ea55dc32", "score": "0.5226398", "text": "public void visit(OmpAlignedClause n);", "title": "" }, { "docid": "d9c30780fd9ab6bd4a30d9171bc91fa0", "score": "0.5218642", "text": "public abstract void setAlign(String alignment);", "title": "" }, { "docid": "825fc402a050e5e6423bdad996266a6f", "score": "0.519994", "text": "public void alignSelectedEntities(AlignCommand ac)\n {\n ArrayList<EntityController> ents = this.getSelectedEntities();\n if (ents.isEmpty()) {\n return;\n }\n\n // Get the most extreme value for the chosen edge.\n int extreme = ents.get(0).getEdge(ac.ee);\n for (EntityController ec : ents) {\n int lt = ec.getEdge(ac.ee);\n if (isMoreExtremeThan(lt, extreme, ac.ee.extremeIsGreater)) {\n extreme = lt;\n }\n }\n\n // Go over the list again, adjusting entities to all of the same\n // extreme value.\n for (EntityController ec : ents) {\n ec.setEdge(ac.ee, ac.resize, extreme);\n }\n\n this.diagramChanged(localize(ac.label));\n }", "title": "" }, { "docid": "5cec4c6bdff84f777860ec56b4eaa439", "score": "0.5182204", "text": "public HPos getAlign() { return _align; }", "title": "" }, { "docid": "d918afe90931baeb918cbbdf0add9a3a", "score": "0.5127618", "text": "protected void execute()\r\n {\r\n autoAlign();\r\n }", "title": "" }, { "docid": "be49739e68e607d9db80c29cf31c2a00", "score": "0.51027733", "text": "public void visit(AlignmentSpecifier n);", "title": "" }, { "docid": "9382422f6f592fa03f5777022a2ebb90", "score": "0.5074638", "text": "void NormalizeEntities() {\r\n\t // calculate current min and max boundings of object\r\n\t DxfVector minv = new DxfVector(10e20f, 10e20f, 10e20f);\r\n\t DxfVector maxv = new DxfVector(-10e20f, -10e20f, -10e20f);\r\n\t for (DxfEntity p : mEntities) {\r\n\t if (p.type == DxfEntityType.Line) {\r\n\t DxfLine line = (DxfLine) p;\r\n\t DxfVector v[] = new DxfVector[] { line.v0, line.v1 };\r\n\t for (int i = 0; i < 2; i++) {\r\n\t minv.x = mymin(v[i].x, minv.x);\r\n\t minv.y = mymin(v[i].y, minv.y);\r\n\t minv.z = mymin(v[i].z, minv.z);\r\n\t maxv.x = mymax(v[i].x, maxv.x);\r\n\t maxv.y = mymax(v[i].y, maxv.y);\r\n\t maxv.z = mymax(v[i].z, maxv.z);\r\n\t }\r\n\t } else if (p.type == DxfEntityType.Face) {\r\n\t DxfFace face = (DxfFace) p;\r\n\t DxfVector v[] = new DxfVector[] { face.v0, face.v1, face.v2, face.v3 };\r\n\t for (int i = 0; i < 4; i++) {\r\n\t minv.x = mymin(v[i].x, minv.x);\r\n\t minv.y = mymin(v[i].y, minv.y);\r\n\t minv.z = mymin(v[i].z, minv.z);\r\n\t maxv.x = mymax(v[i].x, maxv.x);\r\n\t maxv.y = mymax(v[i].y, maxv.y);\r\n\t maxv.z = mymax(v[i].z, maxv.z);\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t // rescale object down to [-5,5]\r\n\t DxfVector span = new DxfVector(maxv.x - minv.x, maxv.y - minv.y, maxv.z - minv.z);\r\n\t float factor = mymin(mymin(10.0f / span.x, 10.0f / span.y), 10.0f / span.z);\r\n\t for (DxfEntity p : mEntities) {\r\n\t if (p.type == DxfEntityType.Line) {\r\n\t DxfLine line = (DxfLine) p;\r\n\t DxfVector v[] = new DxfVector[] { line.v0, line.v1 };\r\n\t for (int i = 0; i < 2; i++)\r\n\t {\r\n\t v[i].x -= minv.x + span.x/2; v[i].x *= factor;\r\n\t v[i].y -= minv.y + span.y/2; v[i].y *= factor;\r\n\t v[i].z -= minv.z + span.z/2; v[i].z *= factor;\r\n\t }\r\n\t } else if (p.type == DxfEntityType.Face) {\r\n\t DxfFace face = (DxfFace) p;\r\n\t DxfVector v[] = new DxfVector[] { face.v0, face.v1, face.v2, face.v3 };\r\n\t for (int i = 0; i < 4; i++) {\r\n\t v[i].x -= minv.x + span.x/2; v[i].x *= factor;\r\n\t v[i].y -= minv.y + span.y/2; v[i].y *= factor;\r\n\t v[i].z -= minv.z + span.z/2; v[i].z *= factor;\r\n\t }\r\n\t }\r\n\t }\r\n\t}", "title": "" }, { "docid": "d7fc12e79e30b9e78caff6996c4d411e", "score": "0.5056087", "text": "public void align() {\n int i;\n int childCount = getChildCount();\n if (childCount != 0) {\n int i2 = 0;\n for (int i3 = 0; i3 < childCount; i3++) {\n if (!(getChildAt(i3) instanceof BlankView)) {\n i2++;\n }\n }\n View[] viewArr = new View[i2];\n int[] iArr = new int[i2];\n int i4 = 0;\n for (int i5 = 0; i5 < childCount; i5++) {\n View childAt = getChildAt(i5);\n if (!(childAt instanceof BlankView)) {\n viewArr[i4] = childAt;\n ViewGroup.LayoutParams layoutParams = childAt.getLayoutParams();\n int measuredWidth = childAt.getMeasuredWidth();\n if (layoutParams instanceof ViewGroup.MarginLayoutParams) {\n ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams;\n iArr[i4] = marginLayoutParams.leftMargin + measuredWidth + marginLayoutParams.rightMargin;\n } else {\n iArr[i4] = measuredWidth;\n }\n i4++;\n }\n }\n removeAllViews();\n int i6 = 0;\n int i7 = 0;\n int i8 = 0;\n while (i6 < i2) {\n int i9 = iArr[i6] + i8;\n int i10 = this.usefulWidth;\n if (i9 > i10) {\n int i11 = i10 - i8;\n int i12 = i6 - 1;\n int i13 = i12 - i7;\n if (i13 >= 0) {\n if (i13 > 0) {\n ViewGroup.MarginLayoutParams marginLayoutParams2 = new ViewGroup.MarginLayoutParams(i11 / i13, 0);\n while (i7 < i12) {\n addView(viewArr[i7]);\n addView(new BlankView(this.mContext), marginLayoutParams2);\n i7++;\n }\n }\n addView(viewArr[i12]);\n i = i6 - 1;\n } else {\n addView(viewArr[i6]);\n i = i6;\n i6++;\n }\n i8 = 0;\n i7 = i6;\n i6 = i;\n } else {\n i8 += iArr[i6];\n }\n i6++;\n }\n while (i7 < i2) {\n addView(viewArr[i7]);\n i7++;\n }\n }\n }", "title": "" }, { "docid": "4af2292ea6dcb0aca343be32888d8b4e", "score": "0.50428903", "text": "public final void align(int alignment)\n {\n while ((getPos() % alignment) != 0)\n {\n advance(1);\n }\n }", "title": "" }, { "docid": "47f5559dc313f3d9540c40f8cfddcf2e", "score": "0.5001881", "text": "@Override\n public boolean isAligned(Interval interval)\n {\n return false;\n }", "title": "" }, { "docid": "665383fef0d82e450825120db4a78f3c", "score": "0.49846506", "text": "public void align( Alignment alignment, Properties param ) throws AlignmentException {\n\t\ttry {\n\n\t\t\t//for matching properties use the ontologyX.getProperties() method instead...\n\t\t\t// Match classes\n\t\t\tfor ( Object cl2: ontology2().getClasses() ){\n\t\t\t\tfor ( Object cl1: ontology1().getClasses() ){\n\n\t\t\t\t\t// add mapping into alignment object \n\n\t\t\t\t\taddAlignCell(cl1,cl2, \"=\", weight*computeStructProx(cl1,cl2)); \n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception e) { e.printStackTrace(); }\n\t}", "title": "" }, { "docid": "6c3e1bc293d5ef83cae8d569f34f0b01", "score": "0.49661148", "text": "void byteAlign ();", "title": "" }, { "docid": "b9160e4f5e2aa041a60a631cc1ebc6f5", "score": "0.4957767", "text": "@Override\n\tprotected void processEntities() {\n\n\t}", "title": "" }, { "docid": "c13dddaf3bf8ac30203a469978296f1a", "score": "0.49478158", "text": "public void ingest( Alignment al ) throws AlignmentException {\n\tnbAlignments++;\n\tfor ( Cell c : al ) {\n\t Cell newc = isAlreadyThere( c );\n\t if ( newc == null ) {\n\t\tnewc = addAlignCell( c.getObject1(), c.getObject2(), c.getRelation().toString(), 1. );\n\t\tcount.put( newc, new CountCell() );\n\t }\n\t count.get( newc ).incr( c.getStrength() );\n\t}\n }", "title": "" }, { "docid": "7ac7faeda56234e51790b15081353f71", "score": "0.49322918", "text": "@Override\n\tprotected void updateArrays() throws DeviceException {\n\t}", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.4927379", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "6003b538749f028191536ea6ca4779db", "score": "0.49252582", "text": "@Override\n public int getTargetDimensions() {\n return dimension;\n }", "title": "" }, { "docid": "eeb0123a868f6485e9820b11354090df", "score": "0.49218568", "text": "public IDiv setAlign(AlignKind a);", "title": "" }, { "docid": "44dd98a90cd969715b9cb0fbeccdf044", "score": "0.4889731", "text": "public abstract void setVAlign(String alignment);", "title": "" }, { "docid": "ae6a5a4887ebd3fd83a8b7be289876db", "score": "0.48246452", "text": "@Override\r\n\tpublic float getLayoutAlignmentX(Container target) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "f335afa58f81b430dcdd75e3cc7376d7", "score": "0.48164904", "text": "@Override\r\n\t\t\t\t\tprotected int getConfiguredHorizontalAlignment() {\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t}", "title": "" }, { "docid": "f335afa58f81b430dcdd75e3cc7376d7", "score": "0.48164904", "text": "@Override\r\n\t\t\t\t\tprotected int getConfiguredHorizontalAlignment() {\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t}", "title": "" }, { "docid": "aba9787f007cdeb1df1cf4124ffc02c1", "score": "0.48140448", "text": "@Override\n public void apply(GameEntity entity) {\n }", "title": "" }, { "docid": "234eb47dee94193c18e1b18704d4cbec", "score": "0.4802674", "text": "public void setDataAlign(int dataAlign)\n {\n this.dataAlign = dataAlign;\n }", "title": "" }, { "docid": "fae58592522e06771a0e8325023c97d4", "score": "0.47520238", "text": "public void reflect() {\n\t\txCoord = 0-xCoord;\n\t\tyCoord = 0-yCoord;\n\t}", "title": "" }, { "docid": "f75325c3c48e734b612d67b91150eb46", "score": "0.47392586", "text": "public void setUpAliens() {\r\n\t\t// Determine the width and height of each alien being placed\r\n\t\tfor (int i = 0; i < NUM_ALIENS; i++)\r\n\t\t\taddAlien();\r\n\t}", "title": "" }, { "docid": "4ef450c03d8b8f6320a8f92196b8f8d9", "score": "0.4718451", "text": "public void visit( Relation rel ) throws AlignmentException {\n\tif ( subsumedInvocableMethod( this, rel, Relation.class ) ) return;\n\t// default behaviour\n\trel.write( writer );\n }", "title": "" }, { "docid": "5c12aff04acb468e1a7628b8873f98b2", "score": "0.47160864", "text": "public void centerOnEntity(Entity_KS e) {\r\n\t\ttarget = e;\r\n\t}", "title": "" }, { "docid": "02926540f6f21b082e3dff7eb6a94ebb", "score": "0.47121134", "text": "private Vector2D alignmentVector() {\n Vector2D generalDirection = new Vector2D();\n\n for (Predator predator : predators) {\n if (predator != this && distanceToPredator(predator) <= MAX_ALIGNMENT_DISTANCE) {\n generalDirection = generalDirection.plus(predator.direction);\n }\n }\n\n return generalDirection.normalize();\n }", "title": "" }, { "docid": "63fdf70fe58ddf1274cbce169e82e1c6", "score": "0.47033373", "text": "private void doPhaseAlignStep() {\n Log.i(\n TAG,\n String.format(\n \"Current Phase: %.3f ms, Diff: %.3f ms, inserting frame exposure %.6f ms, lower bound\"\n + \" %.6f ms.\",\n latestResponse.phaseNs() * 1e-6f,\n latestResponse.diffFromGoalNs() * 1e-6f,\n latestResponse.exposureTimeToShiftNs() * 1e-6f,\n phaseAligner.getConfig().minExposureNs() * 1e-6f));\n\n // TODO(samansari): Make this an interface.\n context.injectFrame(latestResponse.exposureTimeToShiftNs());\n }", "title": "" }, { "docid": "fe5c0d3baab9541f7078efe5ad4fe9df", "score": "0.470133", "text": "public void normalize4() {\n\t_norm4(this);\n}", "title": "" }, { "docid": "00641d234eaa56f8b4a5e02f82c563e3", "score": "0.4697419", "text": "abstract void addDimDiametric(DL_DimensionData data,\n DL_DimDiametricData edata);", "title": "" }, { "docid": "79e141bb741e214a65cc770b9b62bc79", "score": "0.46935686", "text": "public void setVerticalAlignment(int arg0) {\n\n\t}", "title": "" }, { "docid": "577616f52046650557088401ea173b61", "score": "0.46904665", "text": "public void alignToByte() {\r\n if (offset > 0) {\r\n index += 1;\r\n offset = 0;\r\n }\r\n }", "title": "" }, { "docid": "ed2ff4c6c2a67e4d4f168d942b473600", "score": "0.4680192", "text": "abstract void accumulateSpaces(DatanodeInfo d);", "title": "" }, { "docid": "98d0c826d2589ad3456cb5af80b34c30", "score": "0.4674606", "text": "private void markElements(int counter, int size, int id, Field field,\n\t\t\tShip ship, int orientation) {\n\t\tint temp = 0;\n\t\tint shipSegment = Ship.SHIP_SEGMENT_MIDDLE;\n\t\tint finalCounter = 0;\n\t\tfor (int i = 1; i < size; i++) {\n\t\t\tfinalCounter = counter * i;\n\t\t\ttemp = id + finalCounter;\n\t\t\tif (temp > 0 && temp < 101) {\n\t\t\t\tFieldUnit tempElement = field.getElementByID(temp);\n\t\t\t\tif (i == (size - 1))\n\t\t\t\t\tshipSegment = Ship.SHIP_SEGMENT_FRONT;\n\t\t\t\ttempElement.setOccupied(true);\n\t\t\t\ttempElement.placeShip(ship, shipSegment);\n\t\t\t\tship.setStandort(tempElement, i, orientation);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "39876a0aa91307d216a994feeda5a79c", "score": "0.46679327", "text": "private void setAlignment(int alignment, int margin)\n {\n int offset = 0;\n if (alignment == Paragraph.LEFT)\n {\n offset = margin;\n }\n else\n {\n offset = width - totalWidth;\n if (alignment == Paragraph.CENTER)\n {\n offset = Math.max(0, offset / 2);\n }\n }\n\n Iterator i = words.iterator();\n while (i.hasNext())\n {\n StyledText text = (StyledText) i.next();\n text.x = offset;\n offset += text.width;\n }\n }", "title": "" }, { "docid": "ef4cb71597b9bfa88154ab9c2ad956d1", "score": "0.4652213", "text": "@Override\n\tpublic void acelerar() {\n\n\t}", "title": "" }, { "docid": "cac9bedf0cfaeec97676d26bad3a2b4a", "score": "0.4640197", "text": "@Test\n public void TestIsAlligned(){\n MainMemory m = new MainMemory(0);\n assertEquals(true, m.isAccessAligned(0, 4));\n assertEquals(true, m.isAccessAligned(16, 4));\n assertEquals(true, m.isAccessAligned(64, 2));\n assertEquals(false, m.isAccessAligned(1, 2));\n assertEquals(false, m.isAccessAligned(1, 4));\n assertEquals(true, m.isAccessAligned(8, 8));}", "title": "" }, { "docid": "217ca87bd0a54231409d6b8e87e33d59", "score": "0.46375412", "text": "Boolean getAlign();", "title": "" }, { "docid": "58a33cfcb05c5c9c2533ea12d3b5b4ca", "score": "0.46292686", "text": "@Override\n\tprotected void dispatchDraw(Canvas canvas) {\n\t\tsuper.dispatchDraw(canvas);\n\t\tLog.d(tag, \"call dispatchDraw\");\n\t\tint mTotalWidth = 0;\n\t\tint mTotalHeight = 0;\n\t\tfor (int i = 0; i < mBitVec.size(); i++) {\n\t\t\tBitmap bm = mBitVec.get(i);\n\t\t\tif (bm != null) {\n\t\t\t\tint mWdith = bm.getWidth() + mImgSpace;\n\t\t\t\tint mHeight = bm.getHeight() + mImgSpace;\n\t\t\t\tcanvas.drawBitmap(bm, mTotalWidth, mTotalHeight, null);\n\t\t\t\tif ((i + 1) % 3 == 0) {\n\t\t\t\t\tmTotalWidth = 0;\n\t\t\t\t\tmTotalHeight += mHeight;\n\t\t\t\t} else {\n\t\t\t\t\tmTotalWidth += mWdith;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b7a34effe26ecc0f48209b0aaacbb697", "score": "0.46264696", "text": "public int getHorizontalAlignment(){\n return horizontalAlignment;\n }", "title": "" }, { "docid": "b17dd65fdb28bd53ad4cb76501d02f05", "score": "0.46205428", "text": "@Override\n\tpublic int getSize() {\n\t\treturn 2 + targets.size() * 4;\n\t}", "title": "" }, { "docid": "5f7628bc52621e2257cd806345570f8a", "score": "0.46103638", "text": "@Test\r\n\tpublic void testSetHorizontal() {\r\n\t\t// Null by default\r\n\t\tcheckAttributeValue(builder().build(), \"Horizontal\", null);\r\n\t\t// Check the generated value for all the alternatives\r\n\t\tfor (HorizontalAlignment horizontalAlignment: HorizontalAlignment.values()) {\r\n\t\t\tAlignment alignment = builder().withHorizontal(horizontalAlignment).build();\r\n\t\t\tcheckAttributeValue(alignment, \"Horizontal\",\r\n\t\t\t\t\thorizontalAlignment.toString());\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e7183a40608cce96ebf6aa7505ffe659", "score": "0.45893377", "text": "private void onCLickListenerForAlignment() {\n //This will be called when align Left icon is pressed, so that it will changed the text to left side.\n alignLeft.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (alignLeft.isChecked()) {\n text.setGravity(Gravity.LEFT);\n }\n }\n });\n\n //This will be called when align Center icon is pressed, so that it will changed the text to center.\n alignCenter.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (alignCenter.isChecked()) {\n text.setGravity(Gravity.CENTER);\n }\n }\n });\n\n //This will be called when align Right icon is pressed, so that it will changed the text to right side.\n alignRight.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (alignRight.isChecked()){\n text.setGravity(Gravity.RIGHT);\n }\n }\n });\n }", "title": "" }, { "docid": "1b3fe666295b710242a1d22242c24595", "score": "0.4584532", "text": "public float getAlignment(int axis) {\n\t\tswitch (axis) {\n\t\t\tcase View.Y_AXIS:\n\t\t\t\treturn getVerticalAlignment();\n\t\t\tdefault:\n\t\t\t\treturn super.getAlignment(axis);\n\t\t}\n\t}", "title": "" }, { "docid": "292d1b7b9947cd319af88a8b8eb0a621", "score": "0.45829841", "text": "public void update() {\n\t\tfor(Entity each: entities){\n\t\t\tif(each instanceof notAutonomous){\n\t\t\t\t((notAutonomous)each).update();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ffc91909bfaaac29622adf002fd05b75", "score": "0.45747635", "text": "public abstract int align(int value);", "title": "" }, { "docid": "ae22162a0f18e9388dc09b3446ee131a", "score": "0.4571212", "text": "private ByteAligned() {\n throw new AssertionError();\n }", "title": "" }, { "docid": "27d10749873c58e9c01319f6adac3b45", "score": "0.45693016", "text": "@Override\n\tprotected void entityInit() {\n\n\t}", "title": "" }, { "docid": "5cad12ce47d63ab00a84e910b1acb3d5", "score": "0.45506343", "text": "protected void updateRigidBodiesAABB(@Dimensionless DynamicsWorld this) {\n\n Profiler.StartProfilingBlock(\"DynamicsWorld::updateRigidBodiesAABB()\");\n\n // For each rigid body of the world\n for (@Dimensionless RigidBody it : rigidBodies) {\n\n // If the body has moved\n if (it.getHasMoved()) {\n\n // Update the AABB of the rigid body\n it.updateAABB();\n }\n }\n }", "title": "" }, { "docid": "2eccd2ab21f8f2ac0dafff4b695bd916", "score": "0.4550388", "text": "@Override\n protected void entityInit() {\n }", "title": "" }, { "docid": "648e72acac007935e578f94202d6997b", "score": "0.45498773", "text": "public void hAlign() {\n APIlib.getInstance().addJSLine(jsBase + \".hAlign();\");\n }", "title": "" }, { "docid": "648e72acac007935e578f94202d6997b", "score": "0.45498773", "text": "public void hAlign() {\n APIlib.getInstance().addJSLine(jsBase + \".hAlign();\");\n }", "title": "" }, { "docid": "7bb53aa31af36fdc0d6a2bcba65c8ead", "score": "0.45443934", "text": "@Override\n\tpublic void aabb() {\n\t\t\n\t}", "title": "" }, { "docid": "d4b45841812cbfc9b6620a6c87d68102", "score": "0.45290577", "text": "@Override\r\n\tprotected void initDimension() {\n\t\tportraitWidth = width;\r\n\t\tportraitHeight = height;\r\n\t}", "title": "" }, { "docid": "91a3179693f8dba20f9b8997e1d62f9b", "score": "0.4528139", "text": "abstract void addDimOrdinate(DL_DimensionData data,\n DL_DimOrdinateData edata);", "title": "" }, { "docid": "ce7747b5a0b55938254412967bdc8e01", "score": "0.451994", "text": "@Override\n\tprotected void align() throws Exception\n\t{\n\t\tNode source=null;\n\t\tNode target=null;\n\t\t//Node temp = null;\n\t\t//OntResource resSource = null;\n\t\t//OntResource resTarget = null;\n\t\tdouble similarityValue;\n\t\t//ArrayList<String> sourcesyno;\n\t\t//ArrayList<String> targetsyno;\n\t\t//ArrayList<String> sourcehyper = null;\n\t\t//ArrayList<String> targethyper = null;\n\t\t\n\t\tif( sourceOntology == null || targetOntology == null )\n\t\t\treturn; // cannot align just one ontology \n\t\t\n\t\t/*it gets the inputMatches being used for this Algo and initializes the variables\n\t\t * classesMatrix , propertiesMatrix */\n\t\tgetInputMatcher();\n\t\t\n\t\t/*maintains a list of nodes in the ontology*/\n\t\tsourceClassList = sourceOntology.getClassesList();\n\t\ttargetClassList = targetOntology.getClassesList();\n\t\tListOfClassesSource = sourceOntology.getClassesList();\n\t\tListOfClassesTarget = targetOntology.getClassesList();\n\t\t\n\t\t/*used for getting the individuals in the ontology*/\n\t\tsourceModel1 = sourceOntology.getModel();\n\t\t\n\t\t\t\t\n\t\t/*First Iteration that uses the similarity values received in the input matchers\n\t\t * It calculates all the subClassOf and superClassOf relationship based on the equivalence \n\t\t * relationship received form the first Matcher*/\n\t\t\n\t\tfor (int i = 0; i < ListOfClassesSource.size(); i++)\n\t\t{\n\t\t\tfor(int j =0 ; j<ListOfClassesTarget.size();j++)\n\t\t\t{\n\t\t\t\tsimilarityValue = classesMatrix.getSimilarity(i, j);\n\t\t\t\t/*Right now the similarity value is kept one as a pessimist approach\n\t\t\t\t * that anything less than one will yield wrong results. It has been verified by\n\t\t\t\t * runs of AM*/\n\t\t\t\tif(similarityValue == 1)\n\t\t\t\t{\n\t\t\t\t\tsource = ListOfClassesSource.get(i);\n\t\t\t\t\ttarget = ListOfClassesTarget.get(j);\n\t\t\t\t\t//resSource = (OntResource) source.getResource();\n\t\t\t\t\t//resTarget = (OntResource) target.getResource();\n\t\t\t\t\tmatchManySourceTarget(source,target);\n\t\t\t\t\tmatchManyTargetSource(source,target);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*This is the second level of relationship mappings being done\n\t\t * based on wordnet*/\n\t\t/*Get the synonym set of Source*/\n\t\t\n\t\t\n\t\t\n\t\tfor (int i = 0; i < ListOfClassesSource.size(); i++)\n\t\t{\n\t\t\tNode sourceNode = ListOfClassesSource.get(i);\n\t\t\tfor(int j =0 ; j<ListOfClassesTarget.size();j++)\n\t\t\t{\n\t\t\t\tNode targetNode = ListOfClassesTarget.get(j);\n\t\t\t\t\n\t\t\t\tArrayList<NounSynset> sourceSynsetList = doLookUp(sourceNode);\n\t\t\t\tArrayList<NounSynset> targetSynsetList = doLookUp(targetNode);\n\t\t\t\t\n\t\t\t\tArrayList<ArrayList<NounSynset>> sourceHypernymList = buildHypernymList(sourceNode);\n\t\t\t\tArrayList<ArrayList<NounSynset>> targetHypernymList = buildHypernymList(targetNode);\n\t\t\t\t\n\t\t\t\tif( synsetIsContainedBy( sourceSynsetList, targetHypernymList ) ) {\n\t\t\t\t\t// source > target\n\t\t\t\t\t/*The similarity is set to be less than 0.80d as I do not want to\n\t\t\t\t\t * overwrite alread established relationships*/\n\t\t\t\t\tif( classesMatrix.get( sourceNode.getIndex(), targetNode.getIndex()) == null || \n\t\t\t\t\t\tclassesMatrix.getSimilarity( sourceNode.getIndex(), targetNode.getIndex()) < 0.80d ) {\n\t\t\t\t\t\tclassesMatrix.set(sourceNode.getIndex(), targetNode.getIndex(), new Mapping(sourceNode, targetNode, 0.89d, MappingRelation.SUPERCLASS));\n\t\t\t\t\t}\n\t\t\t\t} else if ( synsetIsContainedBy(targetSynsetList, sourceHypernymList) ) {\n\t\t\t\t\t//source < target\n\t\t\t\t\tif( classesMatrix.get( sourceNode.getIndex(), targetNode.getIndex()) == null || \n\t\t\t\t\t\t\tclassesMatrix.getSimilarity( sourceNode.getIndex(), targetNode.getIndex()) < 0.80d ) {\n\t\t\t\t\t\t\tclassesMatrix.set(sourceNode.getIndex(), targetNode.getIndex(), new Mapping(sourceNode, targetNode, 0.89d, MappingRelation.SUBCLASS));\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\t\t\t\n\t}", "title": "" }, { "docid": "a249c287e6037212221e04c663ac190e", "score": "0.45183524", "text": "public ModifiedFlowLayout(int align) {\n super(align);\n }", "title": "" }, { "docid": "87cf3477faa89efcd2c4147d79437ee0", "score": "0.45181885", "text": "public Alignment getAlignment();", "title": "" }, { "docid": "167c02da092231f0a46bcf5ed94949b5", "score": "0.45117864", "text": "public void setAlign(String value)\n {\n this.attributeMap.put(TagConstants.ATTRIBUTE_ALIGN, value);\n this.headerAttributeMap.put(TagConstants.ATTRIBUTE_ALIGN, value);\n }", "title": "" }, { "docid": "aa52b5ae07c6bb28a8052bb3574d2955", "score": "0.4510153", "text": "protected abstract int getPropertiesDisplacement ();", "title": "" }, { "docid": "e09e2bb1ef70b85c02de00185dac2be8", "score": "0.45068926", "text": "@Override\n\tpublic void updateKey(EntityDomain ed) {\n\t\t\n\t}", "title": "" }, { "docid": "17b478e45a6a5fc1c742a213ba2a20f5", "score": "0.4506246", "text": "protected void annotateDocument() {\n onsets.clear();\n offsets.clear();\n \n // get basic onset/offset\n getOnsetOffset(currentDocument);\n\n // if we have sections fix the boundaries\n List<Markable> sections = DiscourseUtils.getMarkables(currentDocument,DEFAULT_SECTION_LEVEL);\n if (!sections.isEmpty())\n { fixBoundaries(sections); }\n }", "title": "" }, { "docid": "bc77272b544bedd9dcc966fe5c08102b", "score": "0.4503503", "text": "public void calculateMetadata(List<StockItem> stockItems){\r\n\t\tthis.stockItems = stockItems;\r\n\t\tcalculateStockItemEAMMapping();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "da08cfc1ddc3ea4de036f4133fa425ed", "score": "0.45026413", "text": "public void steeringAlign(GameObject target){\r\n\t\tBehavior b = Steering.align(target, g);\r\n\t\ttargetMaps[S_ALIGN].put(target, b);\r\n\t}", "title": "" }, { "docid": "fd81981ff3ee82008ef761e3ef8154ee", "score": "0.4495495", "text": "protected double computeAlignmentOffset(Alignment alignment, double containerSize, double contentSize) { \n\t\tdouble gap = containerSize - contentSize ; \n\t\tif (alignment==Layout.TOP) { \n\t\t\treturn 0 ; \n\t\t} else if (alignment==Layout.BOTTOM) { \n\t\t\treturn gap ; \n\t\t} else { \n\t\t\treturn gap / 2 ; \n\t\t}\n\t}", "title": "" }, { "docid": "2f339beb0ec6926125c912dbf2cb4ca0", "score": "0.44951716", "text": "void testTransformCentipedes(Tester t) {\n t.checkExpect(d1.transformCentipedes(centipedes), new MtList<CentipedeHead>());\n t.checkExpect(d2.transformCentipedes(centipedes), new MtList<CentipedeHead>()); \n }", "title": "" }, { "docid": "3c8d8759c616187fc15d13c03106dcc0", "score": "0.448871", "text": "@Override\n public void alignTo(int n) {\n int n2 = AlignmentUtils.alignOffset(this.cursor, n);\n if (this.stretchy) {\n ByteArrayOutput.super.ensureCapacity(n2);\n } else if (n2 > this.data.length) {\n ByteArrayOutput.throwBounds();\n return;\n }\n this.cursor = n2;\n }", "title": "" }, { "docid": "3419c40dc9abe2b2b3fb1de9f3278cf0", "score": "0.4483955", "text": "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n int imgWidth = ((Math.abs(r - l) - imageIndentLeft) / 2);\n int imgHeight = ((Math.abs(b - t) - imageIndentTop) / 2);\n if (imageCount < 2) {\n images[0].layout(imageIndentLeft, imageIndentTop, imgWidth * 2,\n imgHeight * 2);\n } else {\n for (int i = 0; i < imageCount; ++i) {\n int left = imageIndentLeft + ((i % 2 == 0) ? 0 : imgWidth);\n int right = left + imgWidth;\n\n int top = imageIndentTop + ((i / 2 == 0) ? 0 : imgHeight);\n int bottom = top + imgHeight;\n\n images[i].layout(left, top, right, bottom);\n }\n }\n }", "title": "" }, { "docid": "575d6dc9dde6e4bb0c9078a1ef38d7af", "score": "0.44824916", "text": "@Override\n protected void beforeUpdateEx()\n {\n enforceBaseEntityAttributes ();\n }", "title": "" }, { "docid": "6dcef5b688238c44f8600afe5bfde22b", "score": "0.44821405", "text": "public void tick() {\n\t\tfor (Entity e : entities) {\n\t\t\te.tick();\n\t\t}\n\t\t\n\t\tentities.sort(renderSorter);\n\t}", "title": "" }, { "docid": "f4edee9057858a01499c478dfc796d06", "score": "0.44811395", "text": "@Override\n\t\t\tpublic void recalcularNormales() {\n\n\t\t\t}", "title": "" }, { "docid": "b0157bfb1b8948446944686620ec68bc", "score": "0.44792655", "text": "@Override\r\n\tpublic void setCrossersPositionsAndImages() {\r\n\t\tfor (ICrosser x : controller.getCrosserOnLeftBank()) {\r\n\t\t\tImage image = SwingFXUtils.toFXImage(x.getImages()[0], null);\r\n\t\t\tint indx = x.getNumber();\r\n\t\t\tobjects[indx] = new Sprite(image);\r\n\t\t\tobjects[indx].setPositionX(leftX[indx]);\r\n\t\t\tobjects[indx].setPositionY(leftY[indx]);\r\n\t\t}\r\n\r\n\t\tfor (ICrosser x : controller.getCrossersOnRightBank()) {\r\n\t\t\tImage image = SwingFXUtils.toFXImage(x.getImages()[0], null);\r\n\t\t\tSystem.out.println(image.getHeight());\r\n\t\t\tSystem.out.println(image.getWidth());\r\n\t\t\tint indx = x.getNumber();\r\n\t\t\tobjects[indx] = new Sprite(image);\r\n\t\t\tobjects[indx].setPositionX(rightX[indx]);\r\n\t\t\tobjects[indx].setPositionY(rightY[indx]);\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "880d25b6623119112398fd603144aa4a", "score": "0.44747338", "text": "private void buildIterablePositions() {\n Dimension d = (currentOrientation.ordinal() % 2 == 0) ? currentModel.getSize() : rotateModel(currentModel);\n iterablePositions = new Area(positions);\n \n //Area intersections optimization\n Area shiftedLeft = new Area(positions);\n shiftedLeft.shift(d.width-1, Orientation.W);\n Area shiftedUp = new Area(positions);\n shiftedUp.shift(d.depth-1, Orientation.N);\n iterablePositions.intersection(shiftedLeft);\n iterablePositions.intersection(shiftedUp);\n }", "title": "" }, { "docid": "4e314a8c9d9c08ea30228fcfcb0062a0", "score": "0.44699746", "text": "@Override\n\tpublic void GetSize(Dimension dim) {\n\n\t}", "title": "" }, { "docid": "25b68ac42b2263db7f560c4168e48a07", "score": "0.44698238", "text": "public abstract int getDimensions();", "title": "" }, { "docid": "3b871570facef46f7ea4abe43dadddda", "score": "0.44479895", "text": "@Override\n\tprotected void pointSize(double size) {\n\t}", "title": "" }, { "docid": "7631d520cf78201078c87d808e4c66f9", "score": "0.44416726", "text": "public abstract Alignment[] performOp(Alignment... parents);", "title": "" }, { "docid": "3c191d67cd5654922eff4bee0618bcf4", "score": "0.4439578", "text": "public int getDataAlign()\n {\n return dataAlign;\n }", "title": "" }, { "docid": "8a8c6f746284ec3d2cd51c59f32ba404", "score": "0.44323987", "text": "@Override\n public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn)\n {\n entityIn.motionX *= 0.4D;\n entityIn.motionZ *= 0.4D;\n }", "title": "" }, { "docid": "a9458547cefc1f7f235d7ff80c305875", "score": "0.44281185", "text": "public void setEnableAlignments(boolean enableAlignments) throws IllegalStateException {\r\n\t\tsetAttribute(\"enableAlignments\", enableAlignments, true);\r\n\t}", "title": "" }, { "docid": "9f40787a6501960dbe4248fcc862c1f8", "score": "0.44263723", "text": "@Override\n\tpublic void m4() {\n\t\t\n\t}", "title": "" }, { "docid": "5f1adf1b14f4ade7275465685bcd49a4", "score": "0.44250974", "text": "protected synchronized void setup() {\r\n\t\tregisterAttributes(logAttributeInfo, log);\r\n\t\tfor(XTrace trace : log) {\r\n\t\t\tnumberOfTraces++;\r\n\t\t\tregisterAttributes(traceAttributeInfo, trace);\t\t\t\r\n\t\t\tfor(XEvent event : trace) {\r\n\t\t\t\tregisterAttributes(eventAttributeInfo, event);\r\n\t\t\t\tfor(XEventClasses classes : this.eventClasses.values()) {\r\n\t\t\t\t\tclasses.register(event);\r\n\t\t\t\t}\r\n\t\t\t\ttraceBounds = new XTimeBoundsImpl();\r\n\t\t\t\ttraceBounds.register(event);\r\n\t\t\t\tnumberOfEvents++;\r\n\t\t\t}\r\n\t\t\tthis.traceBoundaries.put(trace, traceBounds);\r\n\t\t\tthis.logBoundaries.register(traceBounds);\r\n\t\t}\r\n\t\t// harmonize event class indices\r\n\t\tfor(XEventClasses classes : this.eventClasses.values()) {\r\n\t\t\tclasses.harmonizeIndices();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b0d62f42608b8cc11c745f99822d7714", "score": "0.44233724", "text": "public void registerAlignInfoListener() {\n WirelessCharger wirelessCharger = this.mWirelessCharger;\n if (wirelessCharger == null) {\n Log.w(\"DockAlignmentController\", \"wirelessCharger is null\");\n } else {\n wirelessCharger.registerAlignInfo(new RegisterAlignInfoListener());\n }\n }", "title": "" }, { "docid": "13df9f341dbd35ee9c5c09e97680bf7e", "score": "0.44219035", "text": "@Override\r\n\tpublic void visit(AllColumns arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c00fc664b28895c2972bb5b956d041e3", "score": "0.44187352", "text": "public void update(Entity entity){\n BoundingBox obj_box = entity.getBounds();\n this.setLayoutX(obj_box.getMinX()-(WIDTH()/2)+(obj_box.getWidth() / 2));\n this.setLayoutY(obj_box.getMinY()-(HEIGHT()/2)+(obj_box.getHeight() / 2));\n }", "title": "" }, { "docid": "e31c708e25c0956989ba9145f926af50", "score": "0.4418418", "text": "protected void applyEntityAttributes()\n {\n super.applyEntityAttributes();\n this.getAttributeMap().registerAttribute(SharedMonsterAttributes.attackDamage);\n }", "title": "" }, { "docid": "b350ab00d3ad60393d42e8951005e5bf", "score": "0.44160467", "text": "public void apply() {\n\t\tcompute();\n\t\tapplyInitPos();\n\t\tapplyFinalPos();\n\t}", "title": "" }, { "docid": "34c367f5fad440f4df3a17f9e36379d7", "score": "0.44136834", "text": "@Override\r\n public void onGlobalLayout() {\n width = getMeasuredWidth();\r\n height = getMeasuredHeight();\r\n\r\n // firstly transform leaf and stick matrices to represent a real looking apple\r\n // I need it because method getAppleRect() use that transformations to\r\n // compute the bounding apple rect, but if we do not do that transformations\r\n // leaf and stick will be not on the right place near apple\r\n leafTransformMat.setTranslate(leafTranslation[0], leafTranslation[1]);\r\n stickTransformMat.setTranslate(stickTranslation[0], stickTranslation[1]);\r\n\r\n\r\n computeMaxScale();\r\n\r\n // making apple fit into view\r\n Matrix m = new Matrix();\r\n m.setScale(maxScaleFactor, maxScaleFactor);\r\n apple.transform(m);\r\n leaf.transform(m);\r\n stick.transform(m);\r\n m.mapPoints(leafTranslation, leafTranslation);\r\n m.mapPoints(stickTranslation, stickTranslation);\r\n\r\n // computing translations\r\n computeToCenterTranslation();\r\n\r\n // resetting to the identity matrices\r\n leafTransformMat.reset();\r\n stickTransformMat.reset();\r\n\r\n\r\n computeAnchorPoints();\r\n }", "title": "" }, { "docid": "f6425bb6519627a35fee9f5b30b5e18e", "score": "0.44101775", "text": "@Override\n\tpublic void measureSizeModel(FDTMC fdtmc) {\n\n\t}", "title": "" }, { "docid": "e4ebdf4ca11a86b06b6429c4585b64e3", "score": "0.44062424", "text": "private void m113740c(RectF rectF) {\n for (DrawingView cVar : this.f81464e) {\n cVar.setFitCenterRectF(rectF);\n }\n }", "title": "" }, { "docid": "91767ed2e86d0194bc1045e4fb1b40b5", "score": "0.44061536", "text": "private void addDimensionalAxisInfo(final IFD ifd, final int imageIndex) {\n\t\t\tfinal ImageMetadata imageMeta = getMetadata().get(imageIndex);\n\n\t\t\t// Special case axes for ImageJ 1.x compatibility.\n\t\t\tfinal CalibratedAxis cAxis = imageMeta.getAxis(Axes.CHANNEL);\n\t\t\tfinal CalibratedAxis zAxis = imageMeta.getAxis(Axes.Z);\n\t\t\tfinal CalibratedAxis tAxis = imageMeta.getAxis(Axes.TIME);\n\n\t\t\t// All axes, for N-dimensional support.\n\t\t\t// NB: Yes, this is a hacky list of parallel lists.\n\t\t\t// And yes, we assume that all axes have linear scale.\n\t\t\t// This is merely an interim solution until SCIFIO can\n\t\t\t// marshal and unmarshal axes in an extensible way.\n\t\t\tfinal List<CalibratedAxis> axes = imageMeta.getAxes();\n\t\t\tfinal String types = list(axes, a -> a.type().toString());\n\t\t\tfinal String lengths = list(axes, a -> \"\" + imageMeta.getAxisLength(a));\n\t\t\tfinal String scales = list(axes, a -> \"\" + a.averageScale(0, 1));\n\t\t\tfinal String units = list(axes, a -> replaceMu(a.unit()));\n\n\t\t\tfinal String comment = \"\" + //\n\t\t\t\t\"SCIFIO=\" + getVersion() + \"\\n\" + //\n\t\t\t\t\"axes=\" + types + \"\\n\" + //\n\t\t\t\t\"lengths=\" + lengths + \"\\n\" + //\n\t\t\t\t\"scales=\" + scales + \"\\n\" + //\n\t\t\t\t\"units=\" + units + \"\\n\" + //\n\t\t\t\t\"bitsPerPixel=\" + imageMeta.getBitsPerPixel() + \"\\n\" + //\n\t\t\t\t// NB: The following fields are for ImageJ 1.x compatibility.\n\t\t\t\t\"images=\" + imageMeta.getPlaneCount() + \"\\n\" + //\n\t\t\t\t\"channels=\" + imageMeta.getAxisLength(cAxis) + \"\\n\" + //\n\t\t\t\t\"slices=\" + imageMeta.getAxisLength(zAxis) + \"\\n\" + //\n\t\t\t\t\"frames=\" + imageMeta.getAxisLength(tAxis) + \"\\n\" + //\n\t\t\t\t\"hyperstack=true\\n\" + //\n\t\t\t\t\"mode=composite\\n\" + //\n\t\t\t\t\"unit=\" + replaceMu(axes.get(0).unit()) + \"\\n\";\n\t\t\tifd.putIFDValue(IFD.IMAGE_DESCRIPTION, comment);\n\t\t}", "title": "" } ]
544616b69ae5e7da117e29fedadff8ec
Sets all the contents based on a JSON container
[ { "docid": "a2ccd28b7e3bccf8720ee5ff7026f990", "score": "0.59195477", "text": "public void setAllContents(Record newContent) {\n\n\t\tif (newContent instanceof JSON) {\n\t\t\tthis.jsonContent = (JSON) newContent;\n\t\t} else {\n\t\t\tthis.jsonContent = new JSON(newContent);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "bc7d56041a733a56b8374b689882e22b", "score": "0.6500515", "text": "protected void loadFromString(String json, JSONObject all) throws ContainerConfigException {\r\n try {\r\n JSONObject contents = new JSONObject(json);\r\n JSONArray containers = contents.getJSONArray(CONTAINER_KEY);\r\n\r\n for (int i = 0, j = containers.length(); i < j; ++i) {\r\n // Copy the default object and produce a new one.\r\n String container = containers.getString(i);\r\n all.put(container, contents);\r\n }\r\n } catch (JSONException e) {\r\n LOG.warning(\"Trouble parsing \" + json);\r\n throw new ContainerConfigException(\"Trouble parsing \" + json, e);\r\n }\r\n }", "title": "" }, { "docid": "958a4abb3d0d456d5ace7fe5c6218a0f", "score": "0.5733045", "text": "public void setContents(Object contents) {\n\t\tthis.contents = contents;\n\t}", "title": "" }, { "docid": "4e0287134d5ced3041c5b7f010555963", "score": "0.5683933", "text": "@Override\n\tprotected void fillJson(JSONObject json) {\n\t}", "title": "" }, { "docid": "60b2fb6043e8d829bd38bde228cba0c4", "score": "0.56720155", "text": "@Override\n\tpublic void setJesonValue(String jsonValue) {\n\t\t// TODO Auto-generated method stub\n\t\t\t\tMap<String, Object> map = null; \n\t\t\t Gson gson = new Gson();\n\t\t\t map = (Map<String, Object>)gson.fromJson(jsonValue, Object.class); \n\t\t\t\tif (map != null && !map.isEmpty() )\n\t\t\t\t{\n\t\t\t\t\tdatactlm1347.setvar_Json( jsonValue); \n\t\t\t\t\tsetValue(map.get( items.attribute.field).toString());// content.setText( list.get(0).get( items.attribute.field)); \n\t\t\t\t\t\n\t\t\t\t}\n\t}", "title": "" }, { "docid": "5329040cc9e89b7df738bda9ca99b288", "score": "0.5613313", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n\n if (json.has(\"masterCategories\")) {\n masterCategories = serializer.deserializeObject(json.get(\"masterCategories\"), com.microsoft.graph.requests.OutlookCategoryCollectionPage.class);\n }\n\n if (json.has(\"taskFolders\")) {\n taskFolders = serializer.deserializeObject(json.get(\"taskFolders\"), com.microsoft.graph.requests.OutlookTaskFolderCollectionPage.class);\n }\n\n if (json.has(\"taskGroups\")) {\n taskGroups = serializer.deserializeObject(json.get(\"taskGroups\"), com.microsoft.graph.requests.OutlookTaskGroupCollectionPage.class);\n }\n\n if (json.has(\"tasks\")) {\n tasks = serializer.deserializeObject(json.get(\"tasks\"), com.microsoft.graph.requests.OutlookTaskCollectionPage.class);\n }\n }", "title": "" }, { "docid": "4ab120aa0e3d9e794a2cd5c549b35cc2", "score": "0.5526374", "text": "public void setJSON(String JSONString);", "title": "" }, { "docid": "63dd55750d58e5609b293c0c939ab6f0", "score": "0.54881126", "text": "public void setContent(final Object content);", "title": "" }, { "docid": "690cc81e20431f4c5df23bc71ed54662", "score": "0.54558945", "text": "@Override\n public JSON setObject(String name, JSON value) {\n this.allData.put(name,value);\n return this;\n }", "title": "" }, { "docid": "6f14dd95b20d86ad930fb045ec81c5f2", "score": "0.5448403", "text": "@SuppressWarnings( \"unchecked\" )\n protected Response setMany( String json )\n {\n try\n {\n json = dodgeStartingUnicodeMarker( json );\n Collection<Object> newProperties = (Collection<Object>) JsonHelper.jsonToSingleValue( json );\n\n // Validate all properties\n Map<String, Object> currentPropMap;\n ServerPropertyRepresentation currentPropObj;\n\n boolean hasJvmChanges = false;\n boolean hasCreationChanges = false;\n boolean hasDbConfigChanges = false;\n\n for ( Object property : newProperties )\n {\n if ( !( property instanceof Map<?, ?> ) )\n {\n throw new IllegalArgumentException(\n \"'\"\n + property\n + \"' is not a valid configuration directive.\" );\n }\n\n currentPropMap = (Map<String, Object>) property;\n currentPropObj = properties.get( (String) currentPropMap.get( \"key\" ) );\n\n if ( !currentPropObj.isValidValue( (String) currentPropMap.get( \"value\" ) ) )\n {\n throw new IllegalArgumentException(\n \"'\" + (String) currentPropMap.get( \"value\" )\n + \"' is not a valid value for property '\"\n + (String) currentPropMap.get( \"key\" )\n + \"'.\" );\n }\n\n // Keep track of what type of changes we are making\n switch ( currentPropObj.getType() )\n {\n case APP_ARGUMENT:\n case JVM_ARGUMENT:\n hasJvmChanges = true;\n break;\n case DB_CREATION_PROPERTY:\n hasCreationChanges = true;\n break;\n case CONFIG_PROPERTY:\n hasDbConfigChanges = true;\n break;\n }\n }\n\n // Everything is valid, apply properties\n for ( Object property : newProperties )\n {\n\n currentPropMap = (Map<String, Object>) property;\n properties.set( (String) currentPropMap.get( \"key\" ),\n (String) currentPropMap.get( \"value\" ) );\n }\n\n // All changes applied, perform required restarts\n if ( hasCreationChanges )\n {\n throw new OperationNotSupportedException();\n }\n else if ( hasJvmChanges )\n {\n // Client has changed settings that require a JVM restart\n DeferredTask.defer( new JvmRestartTask(), 10 );\n }\n else if ( hasDbConfigChanges )\n {\n // Client has changed settings that only require REST-server\n // restart.\n if ( LifecycleService.serverStatus == LifecycleRepresentation.Status.RUNNING )\n {\n\n int restPort = WebServerFactory.getDefaultWebServer().getPort();\n\n WebServerFactory.getDefaultWebServer().stopServer();\n DatabaseLocator.shutdownGraphDatabase();\n WebServerFactory.getDefaultWebServer().startServer(\n restPort );\n ConsoleSessions.destroyAllSessions();\n }\n }\n\n return addHeaders( Response.ok() ).build();\n }\n catch ( PropertyValueException e )\n {\n return buildBadJsonExceptionResponse( json, e,\n JsonRenderers.DEFAULT );\n }\n catch ( OperationNotSupportedException e )\n {\n return buildExceptionResponse(\n Status.FORBIDDEN,\n \"Changing settings that required database re-creation is currently not supported.\",\n e, JsonRenderers.DEFAULT );\n }\n catch ( IllegalArgumentException e )\n {\n return buildExceptionResponse( Status.BAD_REQUEST,\n \"You attempted to set an illegal value.\", e,\n JsonRenderers.DEFAULT );\n }\n catch ( NoSuchPropertyException e )\n {\n return buildExceptionResponse( Status.BAD_REQUEST,\n \"You attempted to modify a property that does not exist.\",\n e, JsonRenderers.DEFAULT );\n }\n catch ( IOException e )\n {\n return buildExceptionResponse(\n Status.INTERNAL_SERVER_ERROR,\n \"Unable to save changes to disk, does daemon user have write permissions?\",\n e, JsonRenderers.DEFAULT );\n }\n }", "title": "" }, { "docid": "754417298fb942b40bd50984ff93138a", "score": "0.54282236", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n\n if (json.has(\"children\")) {\n children = serializer.deserializeObject(json.get(\"children\"), com.microsoft.graph.termstore.requests.TermCollectionPage.class);\n }\n\n if (json.has(\"relations\")) {\n relations = serializer.deserializeObject(json.get(\"relations\"), com.microsoft.graph.termstore.requests.RelationCollectionPage.class);\n }\n\n if (json.has(\"terms\")) {\n terms = serializer.deserializeObject(json.get(\"terms\"), com.microsoft.graph.termstore.requests.TermCollectionPage.class);\n }\n }", "title": "" }, { "docid": "ba904998ed34c7edc689855833ed9185", "score": "0.540764", "text": "public void setContents(ArrayList<Content> contents){\n\n for( int i = 0 ; i < contents.size() ; i++ ) {\n // System.out.println(contents.get(i).getName());\n addContent(contents.get(i));\n\n }\n }", "title": "" }, { "docid": "fccfe41a4af57b8992946741ba7ab324", "score": "0.54029703", "text": "@Override\r\n\tpublic void setContainer(Container container) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e0c26734a3b5a225fba7e6f7b8e04e5b", "score": "0.5362772", "text": "public void setRawObject(final ISerializer serializer, final JsonObject json) {\n this.serializer = serializer;\n rawObject = json;\n\n\n if (json.has(\"assignments\")) {\n assignments = serializer.deserializeObject(json.get(\"assignments\").toString(), MobileAppAssignmentCollectionPage.class);\n }\n\n if (json.has(\"categories\")) {\n categories = serializer.deserializeObject(json.get(\"categories\").toString(), MobileAppCategoryCollectionPage.class);\n }\n\n if (json.has(\"deviceStatuses\")) {\n deviceStatuses = serializer.deserializeObject(json.get(\"deviceStatuses\").toString(), MobileAppInstallStatusCollectionPage.class);\n }\n\n if (json.has(\"relationships\")) {\n relationships = serializer.deserializeObject(json.get(\"relationships\").toString(), MobileAppRelationshipCollectionPage.class);\n }\n\n if (json.has(\"userStatuses\")) {\n userStatuses = serializer.deserializeObject(json.get(\"userStatuses\").toString(), UserAppInstallStatusCollectionPage.class);\n }\n }", "title": "" }, { "docid": "f822ed241b9ac15c0c88363786b50ef8", "score": "0.53425264", "text": "private void updateAfterSet() {\r\n\t\tObject obj = getImmediately(openhabUrl + \"/rest/items/\");\r\n\t\tJSONArray newData = (JSONArray) obj;\r\n\t\tdata = newData;\r\n\t\tlog.debug(\"Update Json file after setStatus or sendCommand method invocation.\");\r\n\t}", "title": "" }, { "docid": "6af87a12ac3694b9a731de8028a0a29c", "score": "0.5314284", "text": "public JsonReader refreshContent() throws JsonParseException, IOException{\n this.content = cacheFile();\n return this;\n }", "title": "" }, { "docid": "a64bc83f1fd55eb7e5f1c78415fc2f0e", "score": "0.5298981", "text": "private void setContentData(File file, AbstractRootElement root, Map<String, File> refFileMap, Session session) throws IOException {\n Extension ext = Extension.getByCode(file.getExtension());\n if (ext == Extension.CSC || ext == Extension.LSC) {\n return;\n }\n\n if (refFileMap != null && root != null) {\n for (Reference ref : root.getRefs()) {\n File refFile = refFileMap.get(ref.getRefid());\n if (refFile != null) {\n ref.setRefExtension(refFile.getExtension());\n ref.setRefName(refFile.getName());\n ref.setHash(refFile.getHash());\n }\n }\n }\n if (ext != Extension.TXT && root != null) {\n setReferences(file, root.getRefs(), session);\n }\n if (root != null) {\n BinaryResourceImpl r = new BinaryResourceImpl();\n r.getContents().add(root);\n final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n byte[] output = null;\n r.save(outputStream, EditOptions.getDefaultSaveOptions());\n output = outputStream.toByteArray();\n file.setContent(output);\n } else {\n file.setContent(createDummyData());\n }\n\n }", "title": "" }, { "docid": "b497f1fc83e2cb3c6b7331690dc7ea45", "score": "0.52826244", "text": "public void updateJsonToStandardFormat()\r\n {\r\n \t\r\n \t\r\n \tif(this.category == \"index\"){\r\n \t\t//Replace the variable name according to server requirement\r\n \t\tthis.json = this.json.replace(\"CustomerID\", \"mEntityKey\"); \r\n \t\tthis.json = this.json.replace(\"TransactionDate\", \"mTimeIssued\");\r\n \t\tthis.json = this.json.replace(\"TotalInvoiceAmount\", \"mTotalAmt\");\r\n \t\t\r\n \t\t//Add details\r\n \t\tthis.json = this.json + toAddIndex;\r\n \t\t\r\n \t}\r\n \telse if(this.category == \"item\"){\r\n \t\t//Replace the variable name according to server requirement\r\n \t\tthis.json = this.json.replace(\"PricePerItem\", \"mUnitPriceQuoted\");\r\n \t\tthis.json = this.json.replace(\"QuantityPerItem\", \"mTotalQty\");\r\n \t\tthis.json = this.json.replace(\"DescriptionItem\", \"mName\");\r\n \t\tthis.json = this.json.replace(\"SKU code\", \"itemCode\");\r\n \t\t\r\n \t\t//Add details\r\n \t}\r\n \telse{\r\n \t\t//error\r\n \t}\r\n }", "title": "" }, { "docid": "253fcc01edf50564a5f58b89b195dc36", "score": "0.5268326", "text": "public void setRawObject(final ISerializer serializer, final JsonObject json) {\n this.serializer = serializer;\n rawObject = json;\n\n\n if (json.has(\"appRoleAssignments\")) {\n final AppRoleAssignmentCollectionResponse response = new AppRoleAssignmentCollectionResponse();\n if (json.has(\"appRoleAssignments@odata.nextLink\")) {\n response.nextLink = json.get(\"appRoleAssignments@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"appRoleAssignments\").toString(), JsonObject[].class);\n final AppRoleAssignment[] array = new AppRoleAssignment[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), AppRoleAssignment.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n appRoleAssignments = new AppRoleAssignmentCollectionPage(response, null);\n }\n\n if (json.has(\"memberOf\")) {\n final DirectoryObjectCollectionResponse response = new DirectoryObjectCollectionResponse();\n if (json.has(\"memberOf@odata.nextLink\")) {\n response.nextLink = json.get(\"memberOf@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"memberOf\").toString(), JsonObject[].class);\n final DirectoryObject[] array = new DirectoryObject[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryObject.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n memberOf = new DirectoryObjectCollectionPage(response, null);\n }\n\n if (json.has(\"members\")) {\n final DirectoryObjectCollectionResponse response = new DirectoryObjectCollectionResponse();\n if (json.has(\"members@odata.nextLink\")) {\n response.nextLink = json.get(\"members@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"members\").toString(), JsonObject[].class);\n final DirectoryObject[] array = new DirectoryObject[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryObject.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n members = new DirectoryObjectCollectionPage(response, null);\n }\n\n if (json.has(\"membersWithLicenseErrors\")) {\n final DirectoryObjectCollectionResponse response = new DirectoryObjectCollectionResponse();\n if (json.has(\"membersWithLicenseErrors@odata.nextLink\")) {\n response.nextLink = json.get(\"membersWithLicenseErrors@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"membersWithLicenseErrors\").toString(), JsonObject[].class);\n final DirectoryObject[] array = new DirectoryObject[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryObject.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n membersWithLicenseErrors = new DirectoryObjectCollectionPage(response, null);\n }\n\n if (json.has(\"owners\")) {\n final DirectoryObjectCollectionResponse response = new DirectoryObjectCollectionResponse();\n if (json.has(\"owners@odata.nextLink\")) {\n response.nextLink = json.get(\"owners@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"owners\").toString(), JsonObject[].class);\n final DirectoryObject[] array = new DirectoryObject[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryObject.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n owners = new DirectoryObjectCollectionPage(response, null);\n }\n\n if (json.has(\"settings\")) {\n final GroupSettingCollectionResponse response = new GroupSettingCollectionResponse();\n if (json.has(\"settings@odata.nextLink\")) {\n response.nextLink = json.get(\"settings@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"settings\").toString(), JsonObject[].class);\n final GroupSetting[] array = new GroupSetting[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), GroupSetting.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n settings = new GroupSettingCollectionPage(response, null);\n }\n\n if (json.has(\"transitiveMemberOf\")) {\n final DirectoryObjectCollectionResponse response = new DirectoryObjectCollectionResponse();\n if (json.has(\"transitiveMemberOf@odata.nextLink\")) {\n response.nextLink = json.get(\"transitiveMemberOf@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"transitiveMemberOf\").toString(), JsonObject[].class);\n final DirectoryObject[] array = new DirectoryObject[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryObject.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n transitiveMemberOf = new DirectoryObjectCollectionPage(response, null);\n }\n\n if (json.has(\"transitiveMembers\")) {\n final DirectoryObjectCollectionResponse response = new DirectoryObjectCollectionResponse();\n if (json.has(\"transitiveMembers@odata.nextLink\")) {\n response.nextLink = json.get(\"transitiveMembers@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"transitiveMembers\").toString(), JsonObject[].class);\n final DirectoryObject[] array = new DirectoryObject[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryObject.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n transitiveMembers = new DirectoryObjectCollectionPage(response, null);\n }\n\n if (json.has(\"acceptedSenders\")) {\n final DirectoryObjectCollectionResponse response = new DirectoryObjectCollectionResponse();\n if (json.has(\"acceptedSenders@odata.nextLink\")) {\n response.nextLink = json.get(\"acceptedSenders@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"acceptedSenders\").toString(), JsonObject[].class);\n final DirectoryObject[] array = new DirectoryObject[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryObject.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n acceptedSenders = new DirectoryObjectCollectionPage(response, null);\n }\n\n if (json.has(\"calendarView\")) {\n final EventCollectionResponse response = new EventCollectionResponse();\n if (json.has(\"calendarView@odata.nextLink\")) {\n response.nextLink = json.get(\"calendarView@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"calendarView\").toString(), JsonObject[].class);\n final Event[] array = new Event[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), Event.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n calendarView = new EventCollectionPage(response, null);\n }\n\n if (json.has(\"conversations\")) {\n final ConversationCollectionResponse response = new ConversationCollectionResponse();\n if (json.has(\"conversations@odata.nextLink\")) {\n response.nextLink = json.get(\"conversations@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"conversations\").toString(), JsonObject[].class);\n final Conversation[] array = new Conversation[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), Conversation.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n conversations = new ConversationCollectionPage(response, null);\n }\n\n if (json.has(\"events\")) {\n final EventCollectionResponse response = new EventCollectionResponse();\n if (json.has(\"events@odata.nextLink\")) {\n response.nextLink = json.get(\"events@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"events\").toString(), JsonObject[].class);\n final Event[] array = new Event[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), Event.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n events = new EventCollectionPage(response, null);\n }\n\n if (json.has(\"photos\")) {\n final ProfilePhotoCollectionResponse response = new ProfilePhotoCollectionResponse();\n if (json.has(\"photos@odata.nextLink\")) {\n response.nextLink = json.get(\"photos@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"photos\").toString(), JsonObject[].class);\n final ProfilePhoto[] array = new ProfilePhoto[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), ProfilePhoto.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n photos = new ProfilePhotoCollectionPage(response, null);\n }\n\n if (json.has(\"rejectedSenders\")) {\n final DirectoryObjectCollectionResponse response = new DirectoryObjectCollectionResponse();\n if (json.has(\"rejectedSenders@odata.nextLink\")) {\n response.nextLink = json.get(\"rejectedSenders@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"rejectedSenders\").toString(), JsonObject[].class);\n final DirectoryObject[] array = new DirectoryObject[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryObject.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n rejectedSenders = new DirectoryObjectCollectionPage(response, null);\n }\n\n if (json.has(\"threads\")) {\n final ConversationThreadCollectionResponse response = new ConversationThreadCollectionResponse();\n if (json.has(\"threads@odata.nextLink\")) {\n response.nextLink = json.get(\"threads@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"threads\").toString(), JsonObject[].class);\n final ConversationThread[] array = new ConversationThread[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), ConversationThread.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n threads = new ConversationThreadCollectionPage(response, null);\n }\n\n if (json.has(\"drives\")) {\n final DriveCollectionResponse response = new DriveCollectionResponse();\n if (json.has(\"drives@odata.nextLink\")) {\n response.nextLink = json.get(\"drives@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"drives\").toString(), JsonObject[].class);\n final Drive[] array = new Drive[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), Drive.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n drives = new DriveCollectionPage(response, null);\n }\n\n if (json.has(\"sites\")) {\n final SiteCollectionResponse response = new SiteCollectionResponse();\n if (json.has(\"sites@odata.nextLink\")) {\n response.nextLink = json.get(\"sites@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"sites\").toString(), JsonObject[].class);\n final Site[] array = new Site[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), Site.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n sites = new SiteCollectionPage(response, null);\n }\n\n if (json.has(\"extensions\")) {\n final ExtensionCollectionResponse response = new ExtensionCollectionResponse();\n if (json.has(\"extensions@odata.nextLink\")) {\n response.nextLink = json.get(\"extensions@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"extensions\").toString(), JsonObject[].class);\n final Extension[] array = new Extension[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), Extension.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n extensions = new ExtensionCollectionPage(response, null);\n }\n\n if (json.has(\"groupLifecyclePolicies\")) {\n final GroupLifecyclePolicyCollectionResponse response = new GroupLifecyclePolicyCollectionResponse();\n if (json.has(\"groupLifecyclePolicies@odata.nextLink\")) {\n response.nextLink = json.get(\"groupLifecyclePolicies@odata.nextLink\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"groupLifecyclePolicies\").toString(), JsonObject[].class);\n final GroupLifecyclePolicy[] array = new GroupLifecyclePolicy[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), GroupLifecyclePolicy.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n groupLifecyclePolicies = new GroupLifecyclePolicyCollectionPage(response, null);\n }\n }", "title": "" }, { "docid": "b5821183b0a878fcd175016807710c2c", "score": "0.52679724", "text": "public static void setJSONData(JSONObject data){\n\t\tJSONData = data;\n\t}", "title": "" }, { "docid": "7e43390e2bb9ac122a5e5ad74f025402", "score": "0.52615047", "text": "private static void readJSON() {\r\n try {\r\n byte[] jsonData = Files.readAllBytes(Paths.get(Config.getProperty(\"filmJSON\")));\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n Film[] films = objectMapper.readValue(jsonData, Film[].class);\r\n for (Film film : films) {\r\n String publisherUUID = film.getPublisher().getPublisherUUID();\r\n Publisher publisher;\r\n if (getPublisherMap().containsKey(publisherUUID)) {\r\n publisher = getPublisherMap().get(publisherUUID);\r\n } else {\r\n publisher = film.getPublisher();\r\n getPublisherMap().put(publisherUUID, publisher);\r\n }\r\n film.setPublisher(publisher);\r\n getFilmMap().put(film.getFilmUUID(), film);\r\n\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "6a1b103b5c830e6404c6a056301bd098", "score": "0.5261234", "text": "private void setObj() throws JSONException {\n }", "title": "" }, { "docid": "7d553175de253ca5251016abb408989e", "score": "0.5222781", "text": "@Override\n\tprotected void fillBody(JSONObject jsonObject) throws JSONException {\n\t}", "title": "" }, { "docid": "fe0f6261c0ba3b889dfa7b9a3d47f0de", "score": "0.52209234", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n\n if (json.has(\"customExtensionStageSettings\")) {\n customExtensionStageSettings = serializer.deserializeObject(json.get(\"customExtensionStageSettings\"), com.microsoft.graph.requests.CustomExtensionStageSettingCollectionPage.class);\n }\n\n if (json.has(\"questions\")) {\n questions = serializer.deserializeObject(json.get(\"questions\"), com.microsoft.graph.requests.AccessPackageQuestionCollectionPage.class);\n }\n }", "title": "" }, { "docid": "1d84d30c9453ef877f78b07e4aa91291", "score": "0.5213212", "text": "@Override\n\tpublic void fromJSON(HashMap<String, Object> json) {\n\t}", "title": "" }, { "docid": "b6d6e4ddf70ca45c9f631543c86773b2", "score": "0.51981646", "text": "public JSON getAllContents() throws JsonParseException {\n\n\t\tif (jsonContent == null) {\n\t\t\tloadJsonContents();\n\t\t}\n\n\t\treturn jsonContent;\n\t}", "title": "" }, { "docid": "238e949aabe7733e425585450dd72b2e", "score": "0.5171436", "text": "public void setCommon(JSONObject jSONObject) {\n this.mCommon = jSONObject;\n }", "title": "" }, { "docid": "06d9ab785d660a5ea5985261bcfd5d5f", "score": "0.5148778", "text": "public void updateMovies() {\n parseJson();\n }", "title": "" }, { "docid": "cd530f1dbe1cf85b6620a8d9b16738d3", "score": "0.5146511", "text": "public synchronized void setJSONProcessors(List<JSONProcessor> processors) {\n this.jsonProcessors = new ArrayList<JSONProcessor>(processors.size());\n this.jsonProcessors.addAll(processors);\n }", "title": "" }, { "docid": "5e0a4301276010174918f50bda198d6c", "score": "0.5133651", "text": "public List<Object> processJsonToObjects() throws InstantiationException, IllegalAccessException,\n\t\t\tNoSuchMethodException, SecurityException, IllegalArgumentException, InvocationTargetException {\n\t\tMapping responseMapping = mainConfig.getResponseMapping();\n\n\t\tJsonArray source = Utiles.seletor(RESULT_SOURCE, jestResult.getJsonObject()).getAsJsonArray();\n\t\t////// System.out.println(responseMapping.getBeanClass());\n\t\t/////// System.out.println(source);\n\t\tProperties mapping = responseMapping.getMapping();\n\t\tIterator<Entry<Object, Object>> mappingIter = mapping.entrySet().iterator();\n\t\tList<Object> result = new LinkedList<Object>();\n\n\t\tfor (int i = 0; i < source.size(); i++)\n\t\t\tresult.add(responseMapping.getBeanClass().newInstance());\n\n\t\twhile (mappingIter.hasNext()) {\n\t\t\tEntry<Object, Object> entry = mappingIter.next();\n\t\t\tString key = (String) entry.getKey();\n\t\t\tString methodeName = \"set\" + key.substring(0, 1).toUpperCase() + key.substring(1);\n\t\t\tIterator<JsonElement> sourceIter = source.iterator();\n\t\t\tString value = (String) entry.getValue();\n\t\t\tString selector = (value.substring(0, 2).equals(\"$$\")) ? \"_source::\" + value.substring(2) : value;\n\n\t\t\tif (sourceIter.hasNext()) {\n\t\t\t\tJsonObject jo = sourceIter.next().getAsJsonObject();\n\n\t\t\t\tJsonElement sourceValue = Utiles.seletor(selector, jo);\n\t\t\t\tClass<?> c = null;\n\t\t\t\tJsonPrimitive jop = sourceValue.getAsJsonPrimitive();\n\t\t\t\tif (jop.isString())\n\t\t\t\t\tc = String.class;\n\t\t\t\tif (jop.isNumber())\n\t\t\t\t\tc = Number.class;\n\t\t\t\tif (jop.isBoolean())\n\t\t\t\t\tc = Boolean.class;\n\n\t\t\t\tMethod method = responseMapping.getBeanClass().getMethod(methodeName, c);\n\t\t\t\tint i = 0;\n\t\t\t\tif (c == String.class)\n\t\t\t\t\tmethod.invoke(result.get(i++), sourceValue.getAsString());\n\t\t\t\tif (c == Number.class)\n\t\t\t\t\tmethod.invoke(result.get(i++), sourceValue.getAsNumber());\n\t\t\t\tif (c == Boolean.class)\n\t\t\t\t\tmethod.invoke(result.get(i++), sourceValue.getAsBoolean());\n\t\t\t\twhile (sourceIter.hasNext()) {\n\t\t\t\t\tjo = sourceIter.next().getAsJsonObject();\n\n\t\t\t\t\tsourceValue = Utiles.seletor(selector, jo);\n\t\t\t\t\t// System.out.println(result.get(i++));\n\t\t\t\t\t// System.out.println(sourceValue);\n\t\t\t\t\tif (c == String.class)\n\t\t\t\t\t\tmethod.invoke(result.get(i++), sourceValue.getAsString());\n\t\t\t\t\tif (c == Number.class)\n\t\t\t\t\t\tmethod.invoke(result.get(i++), sourceValue.getAsNumber());\n\t\t\t\t\tif (c == Boolean.class)\n\t\t\t\t\t\tmethod.invoke(result.get(i++), sourceValue.getAsBoolean());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "baeea33d7224ead2cecb5d840c299f84", "score": "0.51333535", "text": "public void setRawObject(final ISerializer serializer, final JsonObject json) {\n this.serializer = serializer;\n rawObject = json;\n\n\n if (json.has(\"multiValueExtendedProperties\")) {\n multiValueExtendedProperties = serializer.deserializeObject(json.get(\"multiValueExtendedProperties\").toString(), MultiValueLegacyExtendedPropertyCollectionPage.class);\n }\n\n if (json.has(\"singleValueExtendedProperties\")) {\n singleValueExtendedProperties = serializer.deserializeObject(json.get(\"singleValueExtendedProperties\").toString(), SingleValueLegacyExtendedPropertyCollectionPage.class);\n }\n\n if (json.has(\"tasks\")) {\n tasks = serializer.deserializeObject(json.get(\"tasks\").toString(), OutlookTaskCollectionPage.class);\n }\n }", "title": "" }, { "docid": "54de48005eaedba955d07b4bffc585c9", "score": "0.512409", "text": "protected void setMetaData(JSONObject obj){\r\n\t\tJSONObject resultset = new JSONObject( obj );\r\n\t\t\r\n\t\tsetLimit( (Integer) obj.get(\"limit\") );\r\n\t\tsetCount( (Integer) obj.get(\"count\") );\r\n\t\tsetOffset( (Integer) obj.get(\"offset\") );\r\n\t}", "title": "" }, { "docid": "2866519bc26c5a2dacda8ea68629c746", "score": "0.51143783", "text": "@PUT\r\n @Consumes(MediaType.APPLICATION_JSON)\r\n public void putJson(String content) {\r\n }", "title": "" }, { "docid": "2866519bc26c5a2dacda8ea68629c746", "score": "0.51143783", "text": "@PUT\r\n @Consumes(MediaType.APPLICATION_JSON)\r\n public void putJson(String content) {\r\n }", "title": "" }, { "docid": "7a3d908d3d3000cda61e613e5c308b7b", "score": "0.51108956", "text": "public void setData(JSONObject jSONObject) {\n this.mData = jSONObject;\n }", "title": "" }, { "docid": "dede998945cf6657728cb45e4e3adf15", "score": "0.51051956", "text": "@Override\n\tpublic void setup() {\n\t\tJsonIterator.setMode(DecodingMode.STATIC_MODE); // must set to static mode\n\t}", "title": "" }, { "docid": "3ea651fbe2be793582c7e496ff4021af", "score": "0.5091758", "text": "@Override\r\n\tpublic void loadData(JSONObject json_data) {\n\t\t\r\n\t}", "title": "" }, { "docid": "28e9124642b4795ceac987d9b48105c1", "score": "0.50900877", "text": "private DataHandler() {\n anglerMap = new HashMap<>();\n fischeMap = new HashMap<>();\n readJSON();\n }", "title": "" }, { "docid": "77e5c12f6b270fac47ad4bfdfba76ca9", "score": "0.5060636", "text": "@PUT\n @Consumes(javax.ws.rs.core.MediaType.APPLICATION_JSON)\n public void putJson(String content) {\n }", "title": "" }, { "docid": "82ca63013a262d7b0434ad9303bd7f88", "score": "0.50601995", "text": "@PUT\n @Consumes(MediaType.APPLICATION_JSON)\n public void putJson(String content) {\n }", "title": "" }, { "docid": "82ca63013a262d7b0434ad9303bd7f88", "score": "0.50601995", "text": "@PUT\n @Consumes(MediaType.APPLICATION_JSON)\n public void putJson(String content) {\n }", "title": "" }, { "docid": "82ca63013a262d7b0434ad9303bd7f88", "score": "0.50601995", "text": "@PUT\n @Consumes(MediaType.APPLICATION_JSON)\n public void putJson(String content) {\n }", "title": "" }, { "docid": "82ca63013a262d7b0434ad9303bd7f88", "score": "0.50601995", "text": "@PUT\n @Consumes(MediaType.APPLICATION_JSON)\n public void putJson(String content) {\n }", "title": "" }, { "docid": "82ca63013a262d7b0434ad9303bd7f88", "score": "0.50601995", "text": "@PUT\n @Consumes(MediaType.APPLICATION_JSON)\n public void putJson(String content) {\n }", "title": "" }, { "docid": "24e96ce83c67695e50359a9e60dae9f9", "score": "0.50452423", "text": "@PUT\n @Consumes(MediaType.APPLICATION_JSON)\n\tpublic void putJson(String content)\n\t{\n\t}", "title": "" }, { "docid": "5d390a76f0941c75565ed2e58f072bff", "score": "0.50270945", "text": "public void setUserObject(UserData userJson){this.userObject = userJson;}", "title": "" }, { "docid": "11e25e527858250a5231f63ba6c2f204", "score": "0.5025942", "text": "public abstract void updateDataStore(JSONObject jsonObject);", "title": "" }, { "docid": "98bb510d94c719fbc620e71f9da8974d", "score": "0.5018973", "text": "@PUT\n @Consumes(\"application/json\")\n public void putJson(String content) {\n }", "title": "" }, { "docid": "98bb510d94c719fbc620e71f9da8974d", "score": "0.5018973", "text": "@PUT\n @Consumes(\"application/json\")\n public void putJson(String content) {\n }", "title": "" }, { "docid": "98bb510d94c719fbc620e71f9da8974d", "score": "0.5018973", "text": "@PUT\n @Consumes(\"application/json\")\n public void putJson(String content) {\n }", "title": "" }, { "docid": "98bb510d94c719fbc620e71f9da8974d", "score": "0.5018973", "text": "@PUT\n @Consumes(\"application/json\")\n public void putJson(String content) {\n }", "title": "" }, { "docid": "98bb510d94c719fbc620e71f9da8974d", "score": "0.5018973", "text": "@PUT\n @Consumes(\"application/json\")\n public void putJson(String content) {\n }", "title": "" }, { "docid": "cb0b1dafdf9fc8033f33a959947fd792", "score": "0.5002902", "text": "void setContent(IoBuffer content);", "title": "" }, { "docid": "0450578305a88949062ee3635655cf67", "score": "0.5002894", "text": "private static void readJSON() {\n try {\n byte[] jsonData = Files.readAllBytes(Paths.get(Config.getProperty(\"anglerJSON\")));\n ObjectMapper objectMapper = new ObjectMapper();\n Angler[] anglers = objectMapper.readValue(jsonData, Angler[].class);\n for (Angler angler : anglers) {\n Collection<Fische> fische = null;\n for(Fische fisch : angler.getGefangeneFische()){\n int fischerLizenz= fisch.getWert();\n if (getFischeMap().containsKey(fisch.getWert())) {\n fisch = getFischeMap().get(fisch.getWert());\n } else {\n getFischeMap().put(fisch.getWert(), fisch);\n }\n fische.add(fisch);\n }\n angler.setGefangeneFische(fische);\n getAnglerMap().put(angler.getLizenz(), (Angler) fische);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a363a452ba3fe251bdcb828c76fd9fdd", "score": "0.50025177", "text": "public void setCampaigns(JSONObject json){\n SharedPreferences settings = context.getSharedPreferences(DS_PREFS, 0);\n Editor editor = settings.edit();\n editor.putString(CAMPAIGNS, json.toString());\n editor.commit();\n }", "title": "" }, { "docid": "7b5be526b58342515ab5503dce864a5a", "score": "0.4991835", "text": "public void create() {\n\n\t\tcreateParentDirectory();\n\n\t\tif (jsonContent == null) {\n\t\t\tjsonContent = new JSON();\n\t\t}\n\n\t\tsave();\n\t}", "title": "" }, { "docid": "fe204d3c6cf3543548b732e8ebce2bc6", "score": "0.49841523", "text": "private DataHandler() {\r\n filmMap = new HashMap<>();\r\n publisherMap = new HashMap<>();\r\n readJSON();\r\n }", "title": "" }, { "docid": "d941529ac79e20e0edf4d9d211e46c90", "score": "0.49757978", "text": "public void loadData() {\n JSONParser parser = new JSONParser();\n try {\n FileReader fileReader = new FileReader(JSON_FILENAME);\n JSONObject object = (JSONObject) parser.parse(fileReader);\n // load meta decks\n JSONArray metaDeckNames = (JSONArray) object.get(METADECKSNAMES_JSON);\n JSONObject metaDecksObject = (JSONObject) object.get(METADECKS_JSON);\n DataPool.getInstance().addAllMetaDecks(extractDeckData(metaDeckNames, metaDecksObject));\n // load user decks\n JSONArray userDeckNames = (JSONArray) object.get(USERDECKNAMES_JSON);\n JSONObject userDecksObject = (JSONObject) object.get(USERDECKS_JSON);\n DataPool.getInstance().addAllUserDecks(extractDeckData(userDeckNames, userDecksObject));\n } catch (IOException | ParseException ex) {\n System.out.print(ex.toString());\n }\n }", "title": "" }, { "docid": "e6afe0b73bb76a27f92c16923566e60a", "score": "0.4970167", "text": "private void populateItem(String json) throws JSONException {\n JSONObject j = new JSONObject(json);\t\t\t\t// Whole JSON String\n JSONObject outer = j.getJSONObject(\"outermost\"); // Outermost JSON object\n JSONObject favorites = outer.getJSONObject(\"favorites\");\n\n photosList.clear();\n jsonArray.clear();\n\n Iterator<String> iter = favorites.keys();\n while (iter.hasNext()) {\n String key = iter.next(); // Name of the fishing spot\n try {\n SpeciesItem speciesItem = new SpeciesItem(getApplicationContext());\n speciesItem.setName(key);\n\n JSONObject keyObject = favorites.getJSONObject(key);\n\n String image = keyObject.getString(\"image\");\n photosList.add(image);\n String scientific = keyObject.getString(\"scientific\");\n speciesItem.setScientificName(scientific.substring(scientific.indexOf(\": \") + 2, scientific.length()));\n String common = keyObject.getString(\"common\");\n speciesItem.setCommonName(common.substring(common.indexOf(\": \") + 2, common.length()));\n String individual = keyObject.getString(\"individual\");\n speciesItem.setIndividualLimit(individual.substring(individual.indexOf(\": \") + 2, individual.length()));\n String aggregate = keyObject.getString(\"aggregate\");\n speciesItem.setAggregateLimit(aggregate.substring(aggregate.indexOf(\": \") + 2, aggregate.length()));\n String minimum = keyObject.getString(\"minimum\");\n speciesItem.setSizeLimit(minimum.substring(minimum.indexOf(\": \") + 2, minimum.length()));\n String season = keyObject.getString(\"season\");\n speciesItem.setSeason(season.substring(season.indexOf(\": \") + 2, season.length()));\n String record = keyObject.getString(\"record\");\n speciesItem.setRecords(record.substring(record.indexOf(\": \") + 2, record.length()));\n\n jsonArray.add(speciesItem);\n\n } catch (JSONException e) {\n Toast.makeText(getApplicationContext(), \"Something went wrong ITERATING\",\n Toast.LENGTH_SHORT).show();\n }\n }\n }", "title": "" }, { "docid": "2c1a14838c12137c8a3254e9baca36ec", "score": "0.49655542", "text": "void putJson( String sJsonData ) throws SQLException, ParseException, IOException;", "title": "" }, { "docid": "912e84a91ab26346d172dcbaa1cd0aab", "score": "0.49456784", "text": "private static void readJSON() {\n try {\n byte[] jsonData = Files.readAllBytes(Paths.get(Config.getProperty(\"carJSON\")));\n ObjectMapper objectMapper = new ObjectMapper();\n Car[] cars = objectMapper.readValue(jsonData, Car[].class);\n for (Car car : cars) {\n String rentalUUID = car.getRental().getRentalUUID();\n Rental rental;\n if (getRentalMap().containsKey(rentalUUID)) {\n rental = getRentalMap().get(rentalUUID);\n } else {\n rental = car.getRental();\n getRentalMap().put(rentalUUID, rental);\n }\n car.setRental(rental);\n getCarMap().put(car.getCarUUID(), car);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "4ff0319e3ba022e8bf547a64d9f6d515", "score": "0.4933849", "text": "public void ProcessJSON(InputStreamReader ReadStream){\n JsonReader myJsonReader= new JsonReader(ReadStream);\n try{\n myJsonReader.beginObject();\n while(myJsonReader.hasNext()){\n Log.d(\"API\",\"Kamisama puede ser muy cruel\");\n String objName = myJsonReader.nextName();\n if(objName.equals(\"cantidad_de_categorias\")){\n int quantCategories = myJsonReader.nextInt();\n }\n else{\n myJsonReader.beginArray();\n while(myJsonReader.hasNext()){\n myJsonReader.beginObject();\n while(myJsonReader.hasNext()){\n objName = myJsonReader.nextName();\n if(objName.equals(\"nombre\")){\n String CategoryName = myJsonReader.nextString();\n Log.d(\"API\",\"Energia recuperada \"+ CategoryName);\n getCatFragment._elements.add(CategoryName);\n } else{\n myJsonReader.skipValue();\n }\n }\n myJsonReader.endObject();\n }\n myJsonReader.endArray();\n }\n }\n }//Fin del try\n catch(Exception e){\n\n }\n }", "title": "" }, { "docid": "0872ff3f77ae828549c68bd6ccac5be0", "score": "0.49309114", "text": "@Override\n\tpublic void parseJson(JSONObject json) {\n\n\t}", "title": "" }, { "docid": "8690fed2b9bc7dc8adb9be33132713ed", "score": "0.4925568", "text": "public static Market convertMarketPersistence(){\n File marbles = new File(\"Persistence.json\");\n Market market = new Market();\n String[] marble = new String[13];\n\n for(int i = 0; i < 13; i++){\n marble[i] = \"\";\n }\n\n\n try {\n JsonElement fileElement = JsonParser.parseReader(new FileReader(marbles));\n JsonObject fileObject = fileElement.getAsJsonObject();\n\n JsonArray jsonArrayMarble = fileObject.get(\"Marble\").getAsJsonArray();\n\n for (JsonElement marbleElement : jsonArrayMarble) {\n JsonObject marbleJsonObject = marbleElement.getAsJsonObject();\n\n marble[0] = marbleJsonObject.get(\"one\").getAsString();\n marble[1] = marbleJsonObject.get(\"two\").getAsString();\n marble[2] = marbleJsonObject.get(\"three\").getAsString();\n marble[3] = marbleJsonObject.get(\"four\").getAsString();\n marble[4] = marbleJsonObject.get(\"five\").getAsString();\n marble[5] = marbleJsonObject.get(\"six\").getAsString();\n marble[6] = marbleJsonObject.get(\"seven\").getAsString();\n marble[7] = marbleJsonObject.get(\"eight\").getAsString();\n marble[8] = marbleJsonObject.get(\"nine\").getAsString();\n marble[9] = marbleJsonObject.get(\"ten\").getAsString();\n marble[10] = marbleJsonObject.get(\"eleven\").getAsString();\n marble[11] = marbleJsonObject.get(\"twelve\").getAsString();\n marble[12] = marbleJsonObject.get(\"extra\").getAsString();\n\n market.setMarbles(0,0, JSONReader.convertMarble(marble[0]));\n market.setMarbles(0,1, JSONReader.convertMarble(marble[1]));\n market.setMarbles(0,2, JSONReader.convertMarble(marble[2]));\n market.setMarbles(0,3, JSONReader.convertMarble(marble[3]));\n market.setMarbles(1,0, JSONReader.convertMarble(marble[4]));\n market.setMarbles(1,1, JSONReader.convertMarble(marble[5]));\n market.setMarbles(1,2, JSONReader.convertMarble(marble[6]));\n market.setMarbles(1,3, JSONReader.convertMarble(marble[7]));\n market.setMarbles(2,0, JSONReader.convertMarble(marble[8]));\n market.setMarbles(2,1, JSONReader.convertMarble(marble[9]));\n market.setMarbles(2,2, JSONReader.convertMarble(marble[10]));\n market.setMarbles(2,3, JSONReader.convertMarble(marble[11]));\n\n market.setExtraMarble(JSONReader.convertMarble(marble[12]));\n }\n }\n catch (FileNotFoundException e) {\n System.err.println(\"Error: Missing file!\");\n e.printStackTrace();\n } catch (Exception e) {\n System.err.println(\"Error: Input file is corrupt!\");\n e.printStackTrace();\n }\n return market;\n }", "title": "" }, { "docid": "e9962b171675a347ba88adffbc629256", "score": "0.49195808", "text": "public void setDeck(JsonArray deckJSON){\n List<List<Card>> deck = new ArrayList<List<Card>>();\n for(JsonElement ageDeckJSON: deckJSON){\n List<Card> ageDeck = new ArrayList<Card>();\n for(JsonElement cardJSON: ageDeckJSON.getAsJsonArray()){\n ageDeck.add(getCardById(cardJSON.getAsString()));\n }\n deck.add(ageDeck);\n }\n setDeck(deck);\n }", "title": "" }, { "docid": "604068cc4215963c7ba6f62e792ea683", "score": "0.49150023", "text": "public void overwritePersistenceJSON() {\n try {\n convertToJSON.convertGame(this.game);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ffba732820c5f56a5bed42b6c6662f7f", "score": "0.49136984", "text": "public void mo44901a(JSONObject jSONObject) {\n try {\n if (!has(\"sh\")) {\n put(\"sh\", new JSONArray());\n }\n getJSONArray(\"sh\").put(jSONObject);\n } catch (JSONException e) {\n }\n }", "title": "" }, { "docid": "a1f9ad0344eae4f6661182343bd74e6c", "score": "0.4908129", "text": "@Override\n\tpublic void setContent() {\n\n\t}", "title": "" }, { "docid": "f1e42c4173fa528f99f1a60bc18df8ad", "score": "0.49075454", "text": "private void decodeJson()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "bc4a42b85633b07a7199de0de2bcc5ae", "score": "0.49046445", "text": "public void set_Recyler_View() {\n Log.d(TAG, \"set_Recyler_View: \");\n\n try {\n JSONArray jsonArray = jsonObject.getJSONArray(\"gallery\");\n for (int a = 0; a < jsonArray.length(); a++) {\n JSONObject jsonItem = jsonArray.getJSONObject(a);\n HashMap<String, String> map = new HashMap<>();\n\n map.put(IMAGE_NAME, jsonItem.getString(\"name\"));\n map.put(IMAGE_URL, jsonItem.getString(\"image\"));\n map.put(IMAGE_ID, jsonItem.getString(\"id\"));\n\n list.add(map);\n }\n //set recycler view ,adaptor, animation\n //set adaptor\n //set adaptor\n gallery_collections_adaptor = new Gallery_Collections_Adaptor(Gallery_Collections.this, list);\n recyclerView.setAdapter(gallery_collections_adaptor);\n } catch (Exception e) {\n Log.d(TAG, \"set_Recyler_View: \" + e.getMessage());\n }\n\n }", "title": "" }, { "docid": "22259196e02976490d09a65adfb88e41", "score": "0.48719835", "text": "@Override\n protected void readResponse(InputStream input) throws IOException {\n int chr;\n String s = \"\";\n while ((chr = input.read()) != -1) {\n s = s.concat(((char) chr) + \"\");\n }\n // Etape 2 : Conversion de la chaine json en Objet ou Tableau d'objets\n try {\n JSONArray ja = new JSONArray(s);\n for (int i = 0; i < ja.length(); i++) {\n Article article = new Article();\n JSONObject jo = ja.getJSONObject(i);\n article.setId(jo.getInt(\"id\"));\n article.setTitle(jo.getString(\"title\"));\n article.setDescription(jo.getString(\"content\"));\n article.setSrc(jo.getString(\"src\"));\n article.setSubject(jo.getString(\"subject\"));\n article.setAuteur(jo.getString(\"auteur\"));\n JSONObject photo = jo.getJSONObject(\"image\");\n\n\n Photo p = new Photo();\n p.setId(photo.getInt(\"id\"));\n p.setUrl(photo.getString(\"url\"));\n p.setAlt(photo.getString(\"alt\"));\n article.setPhoto(p);\n\n articles.add(article);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "9305fa2837aaf9f3d46369fed0f1caed", "score": "0.48682564", "text": "public void mo44900a(JSONArray jSONArray) {\n try {\n put(\"ui\", jSONArray);\n } catch (JSONException e) {\n }\n }", "title": "" }, { "docid": "add598cb09181ad900c4e0ecbebaeb7a", "score": "0.4867849", "text": "private void serveData(List<String> params, AJsonSerHelperForNSysmon json) throws IOException {\n //TODO list configured paths + filename-patterns\n json.startObject();\n json.writeKey(\"pages\");\n\n json.startArray();\n for (DataFileGeneratorThread thread : pageStorer) {\n addDataToJson(thread, json);\n }\n json.endArray();\n\n json.endObject();\n }", "title": "" }, { "docid": "aad51d9d57f556ce3f1587a08fb4a4fd", "score": "0.4867489", "text": "public void storeData() {\n JSONObject object = new JSONObject();\n\n // add meta deck names\n object = fillObjectWithDeckNames(object, METADECKSNAMES_JSON, DataPool.getInstance().getMetaDecks());\n // add meta deck data\n object = fillObjectWithDeckData(object, METADECKS_JSON, DataPool.getInstance().getMetaDecks());\n // add user deck names\n object = fillObjectWithDeckNames(object, USERDECKNAMES_JSON, DataPool.getInstance().getUserDecks());\n // add user deck data\n object = fillObjectWithDeckData(object, USERDECKS_JSON, DataPool.getInstance().getUserDecks());\n\n try {\n FileWriter fileWriter = new FileWriter(JSON_FILENAME);\n fileWriter.write(object.toString());\n fileWriter.close();\n System.out.print(object.toString());\n } catch (IOException ex) {\n System.out.print(ex.toString());\n }\n }", "title": "" }, { "docid": "62c2414988ceb4025557416ed01495ec", "score": "0.48610833", "text": "@JavascriptInterface\n\tpublic void setObject(String name, String json, String callback) {\n\t\tLog.d(\"setObject\", json);\n\t\tthis.callback = callback;\n\t\t\n\t\tString contents = json;\n\t\t/*try {\n\t\t\tcontents = Translator.translate(json, Translator.FORMAT_JSON, Translator.FORMAT_XML);\n\t\t} catch (Exception e) {\n\t\t\tlog(\"Could not translate JSON\");\n\t\t2\tcallbackError();\n\t\t\treturn;\n\t\t}*/\n\t\t\n\t\ttry {\n\t\t\tFileHandler.saveData(name, contents);\n\t\t\tcallJavascriptFunction(callback, true);\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"setObject\", \"Could not save file\");\n\t\t\tcallbackError();\n\t\t}\n\t}", "title": "" }, { "docid": "6c0341291aa745e2f0b22ce8ea716381", "score": "0.48607987", "text": "private void parseImagesJSON(String fullImagesAsJSON){\n\n ArrayList<JSONObject> images = new ArrayList<>();\n\n JSONObject reader;\n\n try {\n reader = new JSONObject(fullImagesAsJSON);\n\n JSONArray hits = (JSONArray) reader.get(\"hits\");\n\n for (int i = 0; i < hits.length(); i++) {\n\n JSONObject image = hits.getJSONObject(i);\n\n images.add(image);\n }\n\n imagesHandler.fillUpGrid(images);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "674d3c5596c4b22dd16e5fa3701dffee", "score": "0.48592266", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n\n if (json.has(\"dataLossPreventionPolicies\")) {\n dataLossPreventionPolicies = serializer.deserializeObject(json.get(\"dataLossPreventionPolicies\"), com.microsoft.graph.requests.DataLossPreventionPolicyCollectionPage.class);\n }\n\n if (json.has(\"sensitivityLabels\")) {\n sensitivityLabels = serializer.deserializeObject(json.get(\"sensitivityLabels\"), com.microsoft.graph.requests.SensitivityLabelCollectionPage.class);\n }\n\n if (json.has(\"threatAssessmentRequests\")) {\n threatAssessmentRequests = serializer.deserializeObject(json.get(\"threatAssessmentRequests\"), com.microsoft.graph.requests.ThreatAssessmentRequestCollectionPage.class);\n }\n }", "title": "" }, { "docid": "6cba5508fe4be249ad11368d8b1b728f", "score": "0.48544368", "text": "public void setResponse(JSONObject response);", "title": "" }, { "docid": "4026182c9e9e3f635d18e6ae88420ee2", "score": "0.4844727", "text": "private void setContents(String contents)\n {\n this.contents = contents;\n }", "title": "" }, { "docid": "a2196c3add255d825652e96f802451cf", "score": "0.4837473", "text": "private void setData(JSONArray jsonArray){\n hidePDialog();\n\n bookList.clear();\n // Parsing json\n for (int i = 0; (i < jsonArray.length()); i++) {\n try {\n\n JSONObject obj = jsonArray.getJSONObject(i);\n // AudioBook book = new AudioBook();\n String book_id = \"\";\n try {\n book_id = obj.getString(\"book_id\");\n } catch (JSONException e) {\n book_id = obj.getString(\"\" + i);\n e.printStackTrace();\n }\n AudioBook book = new AudioBook(obj, i);\n\n\n bookList.add(book);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n }\n\n // notifying list adapter about data changes\n // so that it renders the list view with updated data\n storeBookViewAdapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "b3cadde1e0f5fb9770469cd0c4961dc3", "score": "0.48273516", "text": "public void setup()\n {\n try\n {\n JSONParser parser = new JSONParser();\n JSONObject jsonObject = (JSONObject) parser.parse(readJsonFile(\"/carsData.json\"));\n\n JSONArray mainArray = (JSONArray) jsonObject.get(\"cars\");\n\n for(int i = 0; i<mainArray.size(); i++)\n {\n JSONObject object = (JSONObject) mainArray.get(i);\n\n String brand = (String) object.get(\"brand\");\n String model = (String) object.get(\"model\");\n Long year = (Long) object.get(\"year\");\n Long value = (Long) object.get(\"value\");\n\n this.vehicles.add(new Vehicle(brand, model, year.intValue(), value.doubleValue()));\n }\n } catch (IOException ex)\n {\n System.out.println(\"Can't load up cars\");\n }\n catch (ParseException ex)\n {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "2916b7b763fc60e182c5a9787fc0fba3", "score": "0.48270765", "text": "private void processAllArticlesJsonResponse(String articleJsonInString) {\n\t\tif (articleJsonInString != null) {\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t// JSON from String to Object\n\t\t\ttry {\n\t\t\t\tManoramaArticles articles = mapper.readValue(articleJsonInString, ManoramaArticles.class);\n\t\t\t\tif (articles != null && articles.getArticleSummary() != null) {\t\t\n\t\t\t\t\t_articles.addAll(articles.getArticleSummary());\n\t\t\t\t\t_manoramaAPIsDAOImpl.saveArticles(articles.getArticleSummary());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} catch (JsonParseException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t} catch (JsonMappingException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" }, { "docid": "8fb29f9d78b6d463504d2fe5430fb6f7", "score": "0.48219746", "text": "public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {\n\n }", "title": "" } ]
ced3a482f37dbcdc3e8dea284847d247
DP Runtime: 0 ms, faster than 100.00% of Java online submissions for Maximum Subarray. Memory Usage: 37.6 MB, less than 99.06% of Java online submissions for Maximum Subarray.
[ { "docid": "423a0c74742997e742622f9414e26716", "score": "0.63088757", "text": "public int maxSubArray(int[] nums) {\n if (nums.length == 1) {\n return nums[0];\n }\n int sum = nums[0];\n int maxSum = nums[0];\n for (int i = 1; i < nums.length; i++) {\n sum = sum + nums[i];\n if (sum < nums[i]) {\n sum = nums[i];\n }\n maxSum = sum > maxSum ? sum : maxSum;\n }\n return maxSum;\n }", "title": "" } ]
[ { "docid": "d0e7c26764b1f12dcd4bc9f0f77f4bca", "score": "0.69737095", "text": "public int maxSubArray(int[] a) {\n\n\n return dp(a);\n }", "title": "" }, { "docid": "444869835a1f301d81513be5fdaeaa97", "score": "0.6926154", "text": "public static void main(String[] args) {\n\t\tMaximumSubarray ms = new MaximumSubarray();\n\t\tint [] nums = {-2,1,-3,4,-1,2,1,-5,4};\n\t\tSystem.out.println(ms.maxSubArray(nums));\n\n\t}", "title": "" }, { "docid": "796901717a2469069c4c2a67c8464d67", "score": "0.6848863", "text": "public static triple_t maxSubArray(int ar[]){ //driver\r\n\t\treturn\tmaxSubArray(ar, 0, ar.length-1); \r\n\t}", "title": "" }, { "docid": "91b80152542145f4295955dce1293dee", "score": "0.6644504", "text": "public static void main(String[] args) {\n\n\t\tint[] a = { 3, 4, -5, -6, 10, 15, 1, -2 };\n\n\t\tint max_so_far = Integer.MIN_VALUE;\n\n\t\tint max_ending_here = 0;\n\t\tint start = 0, end = 0, temp = 0;\n\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tmax_ending_here = max_ending_here + a[i];\n\n\t\t\tif (max_ending_here > max_so_far)\n\n\t\t\t{\n\t\t\t\tmax_so_far = max_ending_here;\n\t\t\t\tstart = temp;\n\t\t\t\tend = i;\n\t\t\t}\n\n\t\t\tif (max_ending_here < 0) {\n\n\t\t\t\tmax_ending_here = 0;\n\t\t\t\ttemp = i + 1;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(\"Maximum sum of subarray is = \" + max_so_far);\n\t\tSystem.out.println(\"Between index->\" + start + \" to index->\" + end + \" is subarray\");\n//return max_so_far;\n\t}", "title": "" }, { "docid": "de67ef85f83394e3d09c1a916e852e21", "score": "0.6630399", "text": "public int maxSubArrayDp(int[] nums) {\n //dp[i] means the maximum subarray ending with A[i];\n int[] dp = new int[nums.length];\n dp[0] = nums[0];\n int max = dp[0];\n\n for(int i = 1; i < nums.length; i++){\n dp[i] = nums[i] + (Math.max(dp[i - 1], 0));\n max = Math.max(max, dp[i]);\n }\n\n return max;\n }", "title": "" }, { "docid": "9a12059f4974fb251c93492ab23cf2da", "score": "0.6601766", "text": "public static void main(String[] args)\n {\n int a[] = {-2, -3, 4, -1, -2, 1, 5, -3};\n int max_sum = maxSubArraySum(a);\n System.out.println(\"Maximum contiguous sum is \"+max_sum);\n }", "title": "" }, { "docid": "f6860e73a67dfc8ff4fdf8bec1a9ae26", "score": "0.6577513", "text": "static int maxSubArraySum(int a[])\n {\n int max_so_far = a[0];\n int curr_max = a[0];\n\n for (int i = 1; i < a.length; i++)\n {\n curr_max = Math.max(a[i], curr_max+a[i]);\n max_so_far = Math.max(max_so_far, curr_max);\n }\n return max_so_far;\n }", "title": "" }, { "docid": "462fe74643859fad858778b6939b6292", "score": "0.65614307", "text": "static int[] maximumSumSubArrayDC(int[] array) {\n int start = 0;\n int end = 0;\n int totalSum = Integer.MIN_VALUE;\n int partialSum;\n for (int i = 0; i < array.length; i++) {\n partialSum = 0;\n for (int j = i; j < array.length; j++) {\n if(array[j]>=0) {\n partialSum = partialSum + array[j];\n if (partialSum >= totalSum) {\n totalSum = partialSum;\n start = i;\n end = j;\n }\n } else\n break;\n }\n }\n return Arrays.copyOfRange(array, start, end + 1);\n }", "title": "" }, { "docid": "6d6ba5706c51f4f9c9716355427b4377", "score": "0.65494573", "text": "static void subArray (int [] input) {\n\t\tMap<Integer, Integer> map = new HashMap<Integer, Integer> ();\n\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\tmap.put (input[i], 1);\n\t\t}\n\t\t\n\t\tint max = 0;\n\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\tint count = getCount (map, input[i]);\n\t\t\tif (count > max) {\n\t\t\t\tmax = count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Max: \" + max);\n\t}", "title": "" }, { "docid": "c5a991bd7d467a23970f3736466ad333", "score": "0.65223753", "text": "private static Element maxSubArray(int[] array, int start, int end) {\r\n\t\tif (start == end) return new Element(array[start], start, start);\r\n\t\t\r\n\t\tint middle = (start + end) / 2; // Find middle of array\r\n\t\t\r\n\t\tElement leftMaxSub = maxSubArray(array, start, middle); // Find max subarray of left half\r\n\t\tElement rightMaxSub = maxSubArray(array, middle + 1, end); // Find max subarray of right half\r\n\t\t\r\n\t\t\r\n\t\t// Find max subarray middle out\r\n\t\tint arrive = -1;\r\n\t\tint depart = -1;\r\n\t\t\r\n\t\tint sum = 0;\r\n\t\tint leftSum = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tfor (int i = middle; i >= start; i--) {\r\n\t\t\tsum += array[i];\r\n\t\t\t\r\n\t\t\tif (sum > leftSum) {\r\n\t\t\t\tleftSum = sum;\r\n\t\t\t\tarrive = i; \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tsum = 0;\r\n\t\tint rightSum = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tfor (int i = middle + 1; i <= end; i++) {\r\n\t\t\tsum += array[i];\r\n\t\t\t\r\n\t\t\tif (sum > rightSum) {\r\n\t\t\t\trightSum = sum;\r\n\t\t\t\tdepart = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Return largest subarray of the three leftMaxSub, rightMaxSub, and middle-out\r\n\t\tElement element = new Element(0, 0, 0);\r\n\t\t\r\n\t\tint leftMax = leftMaxSub.getMax();\r\n\t\tint rightMax = rightMaxSub.getMax();\r\n\t\tint max = leftSum + rightSum;\r\n\t\t\r\n\t\tif (leftMax > rightMax && leftMax > max) {\r\n\t\t\telement = new Element(leftMaxSub.getMax(), leftMaxSub.getArrive(), leftMaxSub.getDepart());\t\r\n\t\t\t\r\n\t\t} else if (rightMax > leftMax && rightMax > max) {\r\n\t\t\telement = new Element(rightMaxSub.getMax(), rightMaxSub.getArrive(), rightMaxSub.getDepart());\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\telement = new Element(leftSum + rightSum, arrive, depart);\r\n\t\t}\r\n\t\t\r\n\t\treturn element;\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "aa5586b37688757bb21c744ae303b224", "score": "0.6511308", "text": "public int maxSubArray(int[] nums) {\r\n \r\n int max_so_far = Integer.MIN_VALUE;\r\n int max_ending = 0;\r\n for(int i = 0; i < nums.length; i++){\r\n max_ending = max_ending + nums[i];\r\n if(max_ending > max_so_far){\r\n max_so_far = max_ending;\r\n }\r\n if(max_ending< 0){\r\n max_ending = 0;\r\n }\r\n }\r\n \r\n return max_so_far;\r\n }", "title": "" }, { "docid": "372e0a99ed12e97d926f79884c7df352", "score": "0.6498058", "text": "public static void main(String[] args) {\n int[] x = {-2,1,-3,4,-1,2,1,-5,4};\n int x0 = maxSubArray.maxSubArray0(x);\n System.out.println(x0);\n\t}", "title": "" }, { "docid": "38c8f31275cadf20f40642331b50c801", "score": "0.6491903", "text": "public static List<Integer> maxSubarray(List<Integer> arr) {\n\n\n\n // edge case\n int maxValue = arr.get(0);\n for (Integer integer : arr) {\n maxValue = Math.max(integer,maxValue);\n }\n if(maxValue < 0 ) {\n List<Integer> t = new ArrayList<>();\n t.add(maxValue);\n t.add(maxValue);\n return t;\n }\n\n // Write your code here\n long answer1= 0;\n int answer2 =0;\n\n long[] culmulate = new long[arr.size()];\n culmulate[0] = arr.get(0);\n if(arr.get(0) > 0 ) answer2 += arr.get(0);\n for (int i = 1; i < culmulate.length; i++) {\n culmulate[i] = culmulate[i-1] + arr.get(i);\n if(arr.get(i) > 0 ) answer2 += arr.get(i);\n }\n\n long tail = 0;\n for (int head = 0; head < arr.size(); head++) {\n if(culmulate[head] >= 0){\n answer1 = Math.max(culmulate[head] - tail, answer1);\n } else {\n tail = Math.min(culmulate[head],tail);\n }\n }\n\n\n List<Integer> answer = new ArrayList<>();\n answer.add((int)answer1);\n answer.add(answer2);\n return answer;\n }", "title": "" }, { "docid": "69531598b8fdde82bb11fb5ab2cbf28f", "score": "0.6453302", "text": "public static void maxSumSubArray(int[] arr){\r\n\t\tArrayUtils.printArray(arr);\r\n\t\t\r\n\t\tint maxSumSoFar = arr[0];\r\n\t\tint latestSum = 0;\r\n\t\tint subArrayStart = 0;\r\n\t\tint subArrayEnd = 0;\r\n\t\tint tempStart = 0;\r\n\t\tfor(int i=0; i<arr.length; i++){\r\n\t\t\t\r\n\t\t\tlatestSum = latestSum + arr[i];\r\n\t\t\t\r\n\t\t\tif(latestSum > maxSumSoFar){\r\n\t\t\t\tsubArrayStart = tempStart;\r\n\t\t\t\tsubArrayEnd = i;\r\n\t\t\t\tmaxSumSoFar = latestSum;\r\n\t\t\t}\r\n\t\t\tif(latestSum < 0){\r\n\t\t\t\ttempStart = i+1;\r\n\t\t\t\tlatestSum = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Max sub array sum is : \"+maxSumSoFar);\r\n\t\tSystem.out.println(\"Index Range is : \"+subArrayStart +\" ==> \"+subArrayEnd);\r\n\t\tfor(int i = subArrayStart; i<=subArrayEnd; i++){\r\n\t\t\tif(i != subArrayEnd){\r\n\t\t\t\tSystem.out.print(arr[i]+\" + \");\t\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.print(arr[i]+\" = \" + maxSumSoFar);\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "81abf6fbcebfe5c51645ac876a03f545", "score": "0.6448275", "text": "int maxLen(int[] arr, int N)\n {\n for (int i=0 ; i < N ; i++) {\n if (arr[i] == 0) arr[i] = -1;\n }\n \n // Now Problem changes into Find the MaxSubarray..\n // Which has the sum = 0... or K -> Pretty Simple..\n int sum = 0;\n int end_index = 0;\n int max_size = Integer.MIN_VALUE;\n Map<Integer, Integer> map = new HashMap<>();\n \n for (int i=0 ; i<N ;i++) {\n sum += arr[i];\n if (sum == 0) {\n max_size = i + 1;\n end_index = i;\n }\n \n if (map.containsKey(sum)) {\n // when you are doing this you actually found a subarray...\n // whose sum is equal to k..!!\n if (max_size < i - map.get(sum)) {\n max_size = i - map.get(sum);\n end_index = i;\n }\n \n } else {\n map.put(sum, i);\n }\n }\n if (max_size == Integer.MIN_VALUE) return 0;\n return max_size;\n }", "title": "" }, { "docid": "126f73cc3b012ecea170e63ff103bc00", "score": "0.6367635", "text": "public int maxSubArray(List<Integer> nums) {\n int minSum=0, maxSum=Integer.MIN_VALUE, sum=0; //important\n for(int i=0;i<nums.size();i++){\n sum = sum+nums.get(i);\n maxSum = Math.max(maxSum, sum-minSum);\n minSum = Math.min(minSum, sum);\n }\n return maxSum;\n }", "title": "" }, { "docid": "db0f54cdb3dce4b53b0e72d1a75307de", "score": "0.63572335", "text": "public static void main(String[] args) {\n\t\tmaxSumSubArray(new int[]{4,-3,-2,2,3,1,-2,-3,4,2,-6,-3,4,2,-6,-3,-1,3,2,1});\r\n\t\t//maxSumSubArray(new int[]{-10,-3,-40, 2, -1});\r\n\t}", "title": "" }, { "docid": "42ff4afb8864a93801b3573f27df7cd7", "score": "0.6320069", "text": "public arraybub(int max){\n ar = new long[max];\n totEls = 0;\n }", "title": "" }, { "docid": "624e7607725ff295363130e38e16b36b", "score": "0.6309077", "text": "int sizeOfSubTotDTEArray();", "title": "" }, { "docid": "f0d415cda4495f70599fc05ec383a7e8", "score": "0.6302842", "text": "int maxSubarraySum(int arr[], int n){\n \n int maxe=0,maxf=0;\n \n for(int i=0;i<n;i++){\n maxe+=arr[i];\n if(maxe<0)\n maxe=0;\n \n maxf=Math.max(maxf,maxe);\n }\n int max=arr[0];\n for(int i=0;i<n;i++)\n max=Math.max(max,arr[i]);\n if(maxf==0)\n return max;\n else\n return maxf;\n \n }", "title": "" }, { "docid": "f981066a902c6d457802c699386b7de9", "score": "0.62951475", "text": "public MaxSubArray(int[] array) {\r\n\t\tthis.array = array;\r\n\t}", "title": "" }, { "docid": "1599c11f79dc8ff3420c27a9dd413656", "score": "0.62485665", "text": "public static int maxSubArraySum(int[] a,int size){\n int maxSoFar=0;\n int maxEndingHere=0;\n for(int i=0;i<size;i++){\n maxEndingHere=maxEndingHere+a[i];\n if(maxEndingHere<0){\n maxEndingHere=0;\n }\n if(maxSoFar<maxEndingHere){\n maxSoFar=maxEndingHere;\n }\n }\n return maxSoFar;\n }", "title": "" }, { "docid": "cc15be12bc9c011ccd241a03dadf5a5e", "score": "0.6230356", "text": "long maxSubarraySum(int arr[], int n){\n int me = 0;\n int ms = Integer.MIN_VALUE;\n for(int i = 0 ; i < n ; i++){\n me+=arr[i];\n if(ms < me){\n ms = me;\n }\n if(me < 0){\n me =0;\n }\n }\n return ms;\n }", "title": "" }, { "docid": "f9ca7cbad5afd4efb5dcef8650ccdaaa", "score": "0.61662126", "text": "public static int maxSubSum2( int[] a )\n {\n int maxSum = 0;\n\n for( int i = 0; i < a.length; i++ )\n {\n int thisSum = 0;\n for( int j = i; j < a.length; j++ )\n {\n thisSum += a[j];\n\n if( thisSum > maxSum )\n {\n maxSum = thisSum;\n }\n }\n }\n\n return maxSum;\n }", "title": "" }, { "docid": "0e186945d392f177d32634f46346a4f3", "score": "0.6154576", "text": "private static int longestSubarray2(int[] a, int target) {\n int windowsmall = Integer.MAX_VALUE;\n int start = 0;\n int currentsum = 0;\n for(int end = 0; end < a.length; end++){\n currentsum += a[end];\n while(currentsum >= target){\n windowsmall = Math.min(windowsmall, end - start + 1);\n currentsum -= a[start];\n start++;\n }\n }\n return windowsmall;\n }", "title": "" }, { "docid": "a6dab954db8d0cfe1e31d4a1294f126b", "score": "0.6148484", "text": "public static int maxSubArray(int[] nums) {\n int max = nums[0];\n int len = nums.length;\n int[][] table = new int[len][len];\n\n for (int col = 0; col < len; col++) {\n for (int row = 0; row < len; row++) {\n if (col > row) continue;\n int lastRow = row - 1 < 0 ? 0 : row - 1;\n int sum = col == row ? nums[row] : nums[row] + table[col][lastRow];\n table[col][row] = sum;\n max = sum > max ? sum : max;\n }\n }\n// System.out.println(Arrays.deepToString(table));\n return max;\n }", "title": "" }, { "docid": "1170d686c0fd37dda85abe07d2e0fda5", "score": "0.61375123", "text": "public static SubArray findMaximumSumSubArray(List<Integer> A) {\n int N = A.size(), min_s = 0, min_i = -1, s = 0, best_sum = 0;\n SubArray bestSubArray = new SubArray(0, 0);\n for (int i = 0; i < N; i++) {\n s += A.get(i);\n if (s < min_s) {\n min_s = s;\n min_i = i;\n }\n if (s - min_s > best_sum) {\n best_sum = s - min_s;\n bestSubArray = new SubArray(min_i + 1, i + 1);\n }\n }\n return bestSubArray;\n }", "title": "" }, { "docid": "17a6e1daf8e0a21eadd2d5a1b7f1a1f0", "score": "0.6134735", "text": "public static void main(String[] args) {\n\n\t\tMaximumErasureValue obj = new MaximumErasureValue();\n\t\tint[] num = { 5, 2, 1, 2, 7, 2, 1, 2, 5 };\n\t\tint ans = obj.maximumUniqueSubarray(num);\n\t\tSystem.out.println(ans);\n\t}", "title": "" }, { "docid": "84470b74c6c52f910031a45bbb1c8683", "score": "0.61307484", "text": "private static SubArrayDetails findMaxSubarray(int low, int high, int[] arr) {\n if (low == high)\n return new SubArrayDetails(low, high, arr[low]);\n\n int mid = (low + high) / 2;\n\n SubArrayDetails leftDetails = findMaxSubarray(low, mid, arr);\n SubArrayDetails rightDetails = findMaxSubarray(mid + 1, high, arr);\n SubArrayDetails crossDetails = findMidMaxSubarray(low, mid, high, arr);\n\n if (leftDetails.sum > rightDetails.sum && leftDetails.sum > crossDetails.sum)\n return leftDetails;\n else if (rightDetails.sum > leftDetails.sum && rightDetails.sum > crossDetails.sum)\n return rightDetails;\n else\n return crossDetails;\n }", "title": "" }, { "docid": "58f8ecd5083900821cac9edff499745f", "score": "0.6077814", "text": "static void printSubsequencesWithMaximumDifference(int[] arr) {\r\n\t\tList<Integer> endsMax = maxKadane(arr);\r\n\t\tList<Integer> endsMin = minKadane(arr);\r\n\r\n\t\t// print the input and the output\r\n\t\tprintArr(arr, \"Array : \", 0, arr.length - 1);\r\n\t\tprintArr(arr, \"Max subseq : \", endsMax.get(0), endsMax.get(1));\r\n\t\tprintArr(arr, \"Min subseq : \", endsMin.get(0), endsMin.get(1));\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "33e8e7de0f0f854e8dca2f11f69abacd", "score": "0.60716015", "text": "public static void main(String[] args) {\n int a[] = {1, 2, 3, 4, 0, 1, 5, 8};\n int p = longestSubarray2(a, 3);\n System.out.println(p);\n }", "title": "" }, { "docid": "68bbdef93829cde5c680de6d98b2b563", "score": "0.60713303", "text": "private static void findSubArrayMax(int[] arr, int k, int len) {\n\n\t\tint i = 0, j = 0, count = 0;\n\t\tint finalCount = 0;\n\t\tint temp[] = null;\n\t\tint result[] = null;\n\t\twhile (j < len) {\n\t\t\tif (j - i + 1 < k) {\n\n\t\t\t\ttemp[count++] = arr[j];\n\t\t\t\tj++;\n\t\t\t} else if (j - i + 1 == k) {\n\t\t\t\ttemp[count] = arr[j];\n\t\t\t\tint x = findMax(temp);\n\t\t\t\tresult[finalCount++] = x;\n\t\t\t\ttemp\n\t\t\t\ti++;\n\t\t\t\tj++;\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0c83f6ade8e3d1c5d8626678fe9d9798", "score": "0.60503376", "text": "public int maxSubArrayDC(int[] nums) {\n if (nums.length == 0) return 0;\n return helper(nums, 0, nums.length - 1);\n }", "title": "" }, { "docid": "e21a0622614be90bfb2e44f38eba7eb1", "score": "0.60453236", "text": "static int largestsubarraysum0(int a[], int n) {\n\t\tint k = 0;\r\n\t\tint max = 0;\r\n\t\tHashMap<Integer, Integer> map = new HashMap<>();\r\n\t\tmap.put(0, -1);\r\n\t\tint rs = 0;\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\trs += a[i];\r\n\t\t\tif (map.containsKey(rs - k)) {\r\n\t\t\t\tint len = i - map.get(rs - k);\r\n\t\t\t\tif (len > max) {\r\n\t\t\t\t\tmax = len;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmap.put(rs, i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "title": "" }, { "docid": "6880ed6d9b2c233960088925645def45", "score": "0.6025661", "text": "static List<Integer> maxKadane(int[] arr) {\r\n\t\tint maxSum = arr[0];\r\n\t\tint currSum = 0;\r\n\r\n\t\t// variables to store the start and end of the maximum and current\r\n\t\t// subsequence\r\n\t\tint currEnd1 = 0;\r\n\t\tint currEnd2 = -1;\r\n\t\tint maxEnd1 = 0;\r\n\t\tint maxEnd2 = 0;\r\n\r\n\t\tint maxIndex = 0; // stores the index of maximum element\r\n\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tcurrSum += arr[i];\r\n\t\t\tif (currSum >= maxSum) {\r\n\t\t\t\tcurrEnd2 = i;\r\n\t\t\t\t// Update all variables associated with maximum.\r\n\t\t\t\tmaxSum = currSum;\r\n\t\t\t\tmaxEnd1 = currEnd1;\r\n\t\t\t\tmaxEnd2 = currEnd2;\r\n\t\t\t}\r\n\r\n\t\t\tif (currSum <= 0) {\r\n\t\t\t\tcurrSum = 0;\r\n\t\t\t\tcurrEnd1 = i + 1;\r\n\t\t\t}\r\n\r\n\t\t\tif (arr[maxIndex] < arr[i]) // find index of the maximum element\r\n\t\t\t\tmaxIndex = i;\r\n\t\t}\r\n\r\n\t\tList<Integer> lst = new ArrayList<Integer>();\r\n\t\tif (maxSum < 0) {\r\n\t\t\tlst.add(maxIndex);\r\n\t\t\tlst.add(maxIndex);\r\n\t\t} else {\r\n\t\t\tlst.add(maxEnd1);\r\n\t\t\tlst.add(maxEnd2);\r\n\t\t}\r\n\t\treturn lst;\r\n\t}", "title": "" }, { "docid": "409b3475963dfb70e8239cbb030958b6", "score": "0.60232544", "text": "public int maxSubArrayLen(int[] nums, int k) {\n Map<Integer, Integer> hashMap = new HashMap<Integer, Integer>();\n \n // adding a default start possition\n hashMap.put(0, -1);\n \n \n int maxSubArrayLength = 0, sum = 0;\n for(int i=0; i<nums.length; i++){\n sum += nums[i];\n // since we want longest array we want to keep minimun left index\n if(!hashMap.containsKey(sum)){\n hashMap.put(sum, i);\n }\n \n // checking the left index\n if(hashMap.containsKey(sum-k)){\n maxSubArrayLength = Math.max(maxSubArrayLength, i - hashMap.get(sum - k));\n }\n }\n \n return maxSubArrayLength;\n }", "title": "" }, { "docid": "628dcfedfed0bef91bad9a6aeb1e26f6", "score": "0.60043657", "text": "public static int maxSubSum1( int[] a )\n {\n int maxSum = 0;\n\n for( int i = 0; i < a.length; i++ )\n {\n for( int j = i; j < a.length; j++ )\n {\n int thisSum = 0;\n\n for( int k = i; k <= j; k++ )\n {\n thisSum += a[k];\n }\n\n if( thisSum > maxSum )\n {\n maxSum = thisSum;\n }\n }\n }\n\n return maxSum;\n }", "title": "" }, { "docid": "1f6276b6443876454b22164348898a2c", "score": "0.59897333", "text": "public static triple_t maxSubArray(int ar[], int low, int high){\r\n\t\t\t\r\n\t\tif(low == high) //base case when there is only 1 element;\r\n\t\t\treturn new triple_t(low, high, ar[low]);\t\r\n\t\t\r\n\t\tint mid = (low+high)/2; // locate the ~ mid point\t\t\t\r\n\t\r\n\t\t/* divide the problem into sub problems, namely subarrays */\t\r\n\t\ttriple_t leftMax = maxSubArray(ar, low, mid); // T(n/2)\r\n\t\ttriple_t rightMax = maxSubArray(ar, mid+1, high);\t// T(n/2)\r\n\r\n\t\t/* check the middle region that cross left and right subarrays */\r\n\t\ttriple_t crossingMax = maxCrossingSubArray(ar, low, mid, high);//T(n)\t\r\n\t\t\t\r\n\t\tif(leftMax.sum >= rightMax.sum && leftMax.sum >= crossingMax.sum)\r\n\t\t\treturn\tleftMax;\r\n\t\telse if(rightMax.sum >= leftMax.sum && rightMax.sum >= crossingMax.sum)\r\n\t\t\treturn rightMax;\r\n\t\telse\r\n\t\t\treturn crossingMax;\t\t\t\t \r\n\t\t// max of 4 comparsions => O(1)\t\r\n\t\t// just some constant time comparsion to determine\r\n\t\t// whether the optimal array is from the \r\n\t\t// left, the middle crossing region, or the right\t\r\n\t\r\n\t}", "title": "" }, { "docid": "57b6763913129b03c94d567ec9c107c2", "score": "0.59726465", "text": "public int maxSubArray(final List<Integer> A) {\n int n = A.size();\n int max_first = Integer.MIN_VALUE, max_last=0;\n for(int i=0; i<n; i++){\n max_last = max_last + A.get(i);\n if(max_first < max_last)\n max_first = max_last;\n if(max_last < 0)\n max_last = 0;\n }\n return max_first;\n }", "title": "" }, { "docid": "3562941778730f222968a16c7f21fce7", "score": "0.5969904", "text": "public ArrayBub(int max) // constructor\r\n\t{\r\n\t\ta = new long[max]; // create the array\r\n\t\tnElems = 0; // no items yet\r\n\t}", "title": "" }, { "docid": "5a96d8d7798330bc2240b93e32b87139", "score": "0.5937134", "text": "private static int findMaxSubArraySum(Integer[] inputNums) {\n\t\tint s = 0, t = 0, current_sum = inputNums[0], max = inputNums[0];\n\t\tdo {\n\t\t\twhile(current_sum <= 0) {\n\t\t\t\ts = t + 1;\n\t\t\t\tt = s;\n\t\t\t\tif ( t >= inputNums.length) break;\n\t\t\t\tcurrent_sum = inputNums[s];\n\t\t\t}\n\n\t\t\twhile(current_sum > 0 && t < inputNums.length) {\n\t\t\t\tt++;\n\t\t\t\tif ( t >= inputNums.length) break;\n\t\t\t\tcurrent_sum += inputNums[t];\n\t\t\t\tif (current_sum > max) {\n\t\t\t\t\tmax = current_sum;\n\t\t\t\t}\n\t\t\t}\n\t\t} while(t < inputNums.length);\n\t\treturn max;\n\t}", "title": "" }, { "docid": "69f86d91f533663ba3b33f399d4ffec4", "score": "0.5907833", "text": "public int maxSubArrayLen(int[] nums, int k) {\n if (nums == null || nums.length == 0) return 0;\n Map<Integer, Integer> map = new HashMap<>();\n map.put(0, -1);\n int sum = 0, max = 0;\n\n for (int i = 0; i < nums.length; i++) {\n sum += nums[i];\n if (map.containsKey(sum - k)) {\n max = Math.max(max, i - map.get(sum - k));\n }\n // if map contains key, don't update\n if (!map.containsKey(sum)) {\n map.put(sum, i);\n }\n }\n return max;\n }", "title": "" }, { "docid": "fdca4b943e144cd1493cf08f3ef76234", "score": "0.5881075", "text": "public static int maxSubSum4( int[] a )\n {\n int maxSum = 0;\n int thisSum = 0;\n for( int i = 0; i < a.length; i++ )\n {\n thisSum += a[i];\n\n if( thisSum > maxSum )\n {\n maxSum = thisSum;\n }\n\n if( thisSum < 0 )\n {\n thisSum = 0;\n }\n }\n\n return maxSum;\n }", "title": "" }, { "docid": "bd2b322d42f22c1a09a522efed3a33cd", "score": "0.5861741", "text": "public MaxBetweenIndexes(Integer n){\n dp= new Integer[n][n];\n }", "title": "" }, { "docid": "4cf4a229c48939696bfb30ac297e577b", "score": "0.58610725", "text": "public static int maximumContiguousSubarray(int arr[]){\n \n return maximumContiguousSubarrayRec(arr, 0, arr.length-1);\n }", "title": "" }, { "docid": "b96a6ba85f628d46d0211290913aa54b", "score": "0.58418036", "text": "public ArrayList<Point> getMaximums2(ArrayList<ArrayList<Point>> A, ImageProcessor originalIP){\n ArrayList<Point> aMaximums = new ArrayList<>();\r\n ImageProcessor tIP;\r\n ArrayList<Point> tArray = new ArrayList<>();\r\n \r\n for(int k = 0; k < A.size(); k++){\r\n \r\n tArray = A.get(k);\r\n int minX = 10000000; int maxX = 0;\r\n int minY = 10000000; int maxY = 0;\r\n int x; int y;\r\n\r\n for(int i = 0; i < tArray.size(); i++){\r\n x = tArray.get(i).x;\r\n y = tArray.get(i).y;\r\n if(x > maxX){\r\n maxX = x;\r\n }\r\n if(y > maxY){\r\n maxY = y;\r\n }\r\n if(x < minX){\r\n minX = x;\r\n }\r\n if(y < minY){\r\n minY = y;\r\n }\r\n }\r\n\r\n //IJ.log(\"minX = \"+String.valueOf(minX));\r\n //IJ.log(\"minY = \"+String.valueOf(minY));\r\n //IJ.log(\"maxX = \"+String.valueOf(maxX));\r\n //IJ.log(\"maxY = \"+String.valueOf(maxY));\r\n \r\n tIP = originalIP.createProcessor(maxX-minX+1, maxY-minY+1);\r\n Point p = new Point();\r\n for(int i = 0; i < tArray.size(); i++){\r\n p = tArray.get(i);\r\n tIP.putPixel(p.x-minX, p.y-minY, originalIP.getPixel(p.x, p.y)); \r\n }\r\n \r\n \r\n \r\n MaximumFinder MF = new MaximumFinder();\r\n ByteProcessor bp = MF.findMaxima(tIP, 3, ImageProcessor.NO_THRESHOLD, 0, false, false);\r\n //ArrayToTextImage(tIP.getIntArray(), \"tIP_\"+String.valueOf(k)+\".txt\");\r\n for(int j=1; j<bp.getHeight();j++){\r\n for(int i=1; i<bp.getWidth(); i++){\r\n if(bp.getPixel(i, j) == 255){\r\n aMaximums.add(new Point(i+minX,j+minY));\r\n //IJ.log(String.valueOf(getSqueueObject(tIP,new Point(i,j))));\r\n }\r\n }\r\n } \r\n \r\n }\r\n return aMaximums;\r\n }", "title": "" }, { "docid": "3fed39aa34f8c6b83510d1a4e3d86ab4", "score": "0.5835504", "text": "private static int findMaxSumSubArrayKLength(int[] a, int k) {\n\n\t\tint maxSum = 0;\n\t\tint prevWindSum = 0;\n\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tprevWindSum = prevWindSum + a[i];\n\n\t\t}\n\t\tmaxSum = Math.max(prevWindSum,maxSum);\n\n\t\tfor (int i = 0; (i + k) < a.length; i++) {\n\t\t\tprevWindSum=prevWindSum-a[i]+a[i+k];\n\t\t\tmaxSum = Math.max(prevWindSum,maxSum);\n\t\t}\n\n\t\treturn maxSum;\n\t}", "title": "" }, { "docid": "2fe3b071661aeccfe241e54f87431b80", "score": "0.58331776", "text": "@Test\n public void testSubList() {\n System.out.println(\"subList\");\n double[] doubleArray = {1,2,3,4,5,6};\n int len = 3;\n double[] expResult = {1,2,3};\n double[] result = JavaApplication1.subList(doubleArray, len);\n assertArrayEquals(expResult, result,0.01);\n }", "title": "" }, { "docid": "d8ef5480a33afadeb1e714d2411a34ea", "score": "0.58260185", "text": "static long arrayManipulation(int n, int[][] queries) {\r\n\r\n\t\tint max=0;\r\n\t\t\r\n\t\tint[] array=new int[n+1];\r\n\t\t\r\n\t\tlong startTime=System.currentTimeMillis();\r\n\t\tArrays.fill(array, 0);\r\n\t\tlong endTime=System.currentTimeMillis();\r\n\t\t\r\n\t\tSystem.out.println(\"Copying zero took ms \"+(endTime-startTime));\r\n\t\t\r\n\t\t//System.out.println(Arrays.toString(array));\r\n\t\tfor(int[] ia: queries){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tint i=ia[0];\r\n\t\t\tint j=ia[1];\r\n\t\t\tint k=ia[2];\r\n\t\t\t\r\n\t\t\t//System.out.println(\"i j k \"+i+\"-\"+j+\"-\"+k);\r\n\t\t\tfor(int index=i;index<=j;index++){\r\n\t\t\t\tarray[index]=(array[index])+k;\r\n\t\t\t\tif(max<array[index]){\r\n\t\t\t\t\tmax=array[index];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//System.out.println(Arrays.toString(array));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn max;\r\n\r\n\t}", "title": "" }, { "docid": "fbe34f9e54db9336ae9eab3c1d6ed1c7", "score": "0.58105636", "text": "public static void main(String[] args) {\r\n\t Scanner in = new Scanner(System.in);\r\n\t Deque deque = new ArrayDeque<>();\r\n\t \r\n\t int n = in.nextInt();\r\n\t int m = in.nextInt();\r\n\t int subarrayCount=0;\r\n\t int maxUniqueNumber=0;\r\n\t \r\n\t \r\n\r\n\t for (int i = 0; i < n; i++) {\r\n\t subarrayCount++;\r\n\t int num = in.nextInt();\r\n\t \r\n\t deque.add(num);\r\n\t if(subarrayCount==m){\r\n\t Set<Integer> uniquesSet = new HashSet<>(deque);\r\n\t maxUniqueNumber=uniquesSet.size()>maxUniqueNumber?uniquesSet.size():maxUniqueNumber;\r\n\t \r\n\t subarrayCount--;\r\n\t deque.removeFirst();\r\n\t \r\n\t }\r\n\t \r\n\t }\r\n\t System.out.println(maxUniqueNumber);\r\n\t }", "title": "" }, { "docid": "993829839d6eef74ec8291cc9eb710ff", "score": "0.58070266", "text": "public static int maxSubArray1(int[] A) {\n\t // Start typing your Java solution below\n\t // DO NOT write main() function\n\t \n\t if(A == null || A.length == 0) {\n\t throw new IllegalArgumentException(\"invalid input\");\n\t }\n\t return calculateMax(A, 0, A.length -1);\n\t \n\t }", "title": "" }, { "docid": "f4af2e68406a65d086981b42dc2323f8", "score": "0.57880604", "text": "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int arraysize = input.nextInt();\n int[] array = new int[arraysize];\n \n // Fill the array with the inputs\n for (int i = 0; i < arraysize; i++) {\n array[i] = input.nextInt();\n }\n input.close();\n \n // Work out the negative array\n int negativesubarraycount = 0;\n \n for (int i = 0; i < arraysize; i++) {\n int subarraysum = 0;\n \n for (int j = i; j < arraysize; j++) {\n subarraysum += array[j];\n \n if (subarraysum < 0) {\n ++negativesubarraycount;\n }\n }\n }\n \n System.out.println(negativesubarraycount);\n \n }", "title": "" }, { "docid": "c40582b8db3bcd93e703c746b55fff5d", "score": "0.5781316", "text": "public static int findMaximumSubArraySum(List<Integer> A) {\n int best_sum = 0, sum = 0, min_sum = 0;\n for (Integer x : A) {\n sum += x;\n if (sum < min_sum) min_sum = sum;\n best_sum = Math.max(best_sum, sum - min_sum);\n }\n return best_sum;\n }", "title": "" }, { "docid": "c271e5ca82d347354a364849475e1fda", "score": "0.5777626", "text": "public static void main(String args[]) throws IOException {\n FileReader file = new FileReader(\"input.txt\");\n BufferedReader br = new BufferedReader(file);\n\n String capStr = br.readLine();\n\n int cap = Integer.parseInt(capStr);\n int arr[] = new int[cap];\n String line = null;\n int index = 0;\n while ((line = br.readLine()) != null) {\n String lineArr[] = line.split(\" \");\n if (lineArr.length > 0) {\n int c = Integer.parseInt(lineArr[0]);\n arr[index++] = c;\n }\n }\n\n br.close();\n SubArrayDetails det = findMaxSubarray(0, cap - 1, arr);\n System.out.println(\"Max Subarray Index: \" + det.low + \" - \" + det.high + \", Sum: \" + det.sum);\n }", "title": "" }, { "docid": "9740cbe6598d29f10368aa7901a2d45b", "score": "0.57675356", "text": "public static void main(String[] args)\n {\n MaximumSum sum = new MaximumSum();\n int array[] = new int[]{5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,\n \t\t 5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,\n \t\t 5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,\n \t\t 5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,\n \t\t 5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1,5,5,10,100,10,5,2,1,4,6,2,5,5,1,1,5,100,10,5,2,1,10,5,2,1,4,6,2,5,5,1,1,10,5,2,1,4,6,2,5,5,1,1\n };\n \n\t\tlong t1 = System.nanoTime();\n\t\tSystem.out.println(sum.FindMaxSum(array, array.length));\n\t\tlong t2 = System.nanoTime();\n\t\tlong time = (t2-t1)/array.length;\n\t\tSystem.out.println(\"Time \"+time);\n }", "title": "" }, { "docid": "3551177e611c5f7c5ef9b21ebe4569e7", "score": "0.57403195", "text": "public static int getMaxSumSubArrayOptimized_f(int[] arr) {\n\t\tint ans = arr[0];\n\t\tint sum = arr[0];\n\t\t\n\t\tfor(int i=1; i<arr.length; i++) {\n\t\t\tSystem.out.print(\"prev sum => \"+sum+\" calc sum =>\");\n\t\t\t//sum = Math.max(arr[i], arr[i]+sum);\n\t\t\tif(sum+arr[i] > arr[i]) {\n\t\t\t\tsum += arr[i];\n\t\t\t} else {\n\t\t\t\tsum = arr[i];\n\t\t\t}\n\t\t\tif(ans < sum) {\n\t\t\t\tans = sum;\n\t\t\t}\n\t\t\tSystem.out.println(\" arr[\"+i+\"] = \"+arr[i]+\", ans = \"+ans);\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\treturn ans;\n\t}", "title": "" }, { "docid": "56d4c363c55338457d8b0bdef17e9921", "score": "0.5710386", "text": "public ArraySh(int max) // constructor\n\t{\n\t\ttheArray = new long[max]; // create the array\n\t\tnElems = 0; // no items yet\n\t}", "title": "" }, { "docid": "652b35623888e492e05aa5efbaf2e86b", "score": "0.57023704", "text": "public static void main(String[] args) {\n\n int[] nums = new int[]{2,2,2,1,2,2,1,2,2,2};\n int k=2;\n Solution17 a = new Solution17();\n int i = a.numberOfSubarrays(nums, k);\n System.out.println(i);\n\n\n }", "title": "" }, { "docid": "e95fd3fb30c92e4c1fcdaeb5a4d6f08e", "score": "0.5697041", "text": "public static void main(String[] args) {\n \tint[] nums = {1,4,4};\n \tminSubArrayLen(4, nums);\n\t}", "title": "" }, { "docid": "9d3ab3b3d171ac09f64a10132ba2c104", "score": "0.569614", "text": "public int findUnsortedSubarray(int[] nums) {\n int left = 0, right = nums.length - 1;\n while (right - left + 1 >= 2) {\n int min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n for (int i = left; i <= right; i++) {\n min = Math.min(min, nums[i]);\n max = Math.max(max, nums[i]);\n }\n if (nums[left] != min && nums[right] != max) return right - left + 1;\n if (nums[left] == min) left++;\n if (nums[right] == max) right--;\n }\n return 0;\n }", "title": "" }, { "docid": "1ef86b501553b48bdf07ad15e5c457e8", "score": "0.5687343", "text": "static void compute(int[] arr){\r\n \tint n = arr.length;\r\n \t long fGCD = 1;\r\n\r\n \t//creating the superset, to contain all the possible outcomes\r\n \tList<List<Integer>> superSet = new ArrayList<List<Integer>>();\r\n \t//decclaring the subset variable\r\n \tList<Integer> subSet;\r\n \t\r\n \t//now performing the calculation of all the subsets based on the fact \r\n \t//that every subset is analogous to the binary numbers from 0 to 15\r\n \t//algorithm performs the validation of all 2^n subsets\r\n\tfor(int i = 0; i < (1<<n); i++){\r\n \t\tsubSet = new ArrayList<Integer>();\r\n \t\r\n \t// (1<<j) is a number with jth bit 1\r\n // so when we 'and' them with the\r\n // subset number we get which numbers\r\n // are present in the subset and which\r\n // are not\r\n \tfor(int j = 0; j < n; j++){\r\n \t\tif((i & (1 << j)) > 0)\r\n \t\t\tsubSet.add(arr[j]);}\r\n \t\tsuperSet.add(subSet);\r\n }\t\r\n \tint totalSet = (int)Math.pow(2,n);\r\n\r\n \t//now the algorithm performs the calculation of GCD of\r\n \t//all the possible subsets, the first element of the \r\n \t//superset is not taken as it is empty\r\n \tfor(int i = 1; i < totalSet; i++){\r\n \t\tsubSet = superSet.get(i);\r\n \t\tgcd = subSet.get(0);\r\n\r\n \t\t//GCD of each individual elements of the set is calculated\r\n \t\tfor(int j = 1; j < subSet.size(); j++){\r\n \t\t\tgcd = eGCD(subSet.get(j), gcd);\r\n \t\t}\r\n \t\t//final GCD obtained\r\n \t\tfGCD = fGCD*gcd;\r\n \t}\r\n\r\n \t//optimizing the solution in case of very large values and printing\r\n \tSystem.out.println((fGCD)%m);\r\n }", "title": "" }, { "docid": "1948accf34e9373fff6cecde0fd409b5", "score": "0.5683916", "text": "public static int findMaxSumIncreasingSub(int[] arr){\n int len = arr.length;\n int max =0;\n int[] msis = new int[len];\n int i,j;\n for(i=0;i<len;i++){\n msis[i] = arr[i];\n }\n for(i = 1;i< len;i++){\n for(j = 0;j<i;j++){\n if(arr[i] > arr[j] && msis[i] < msis[j]+arr[i]){\n msis[i] = msis[j]+arr[i];\n }\n }\n }\n\n for(i =0;i<len;i++){\n if(msis[i]> max){\n max = msis[i];\n }\n }\n return max;\n\n }", "title": "" }, { "docid": "77010bc511cb10496e95b86569fce7d5", "score": "0.5668726", "text": "static int maxSubsetSum(int[] arr) {\n\t\tint exc = 0;\n\t\tint inc = arr[0];\n\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tint temp = inc;\n\t\t\tinc = Math.max(exc + arr[i], inc);\n\t\t\tif(temp > 0) {\n\t\t\t\texc = temp;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "638be3aa86df2b10776928af4a331d03", "score": "0.5664179", "text": "public static int maxSubSum3( int[] a )\n {\n return maxSumRec( a, 0, a.length - 1 );\n }", "title": "" }, { "docid": "2cdc850eb7c9ad83b7a5496aa35f78dc", "score": "0.5657378", "text": "public static void main(String[] args) {\n\t\t_525ContiguousArray A = new _525ContiguousArray ();\n\t\tint [] nums = {1,0,1};\n\t\tSystem.out.println(A.findMaxLength(nums));\n\t}", "title": "" }, { "docid": "7a38a585776cb8fc5bfaf3e135b05ca3", "score": "0.56452435", "text": "public static int maxSliceSum(int[] A) {\n int globalMax = A[0];\n int localMax = globalMax;\n for (int i = 1; i < A.length; i++) {\n localMax = Math.max(A[i], localMax + A[i]);\n globalMax = Math.max(localMax, globalMax);\n }\n return globalMax;\n }", "title": "" }, { "docid": "eb8190098ea86b3c60bf852f92106436", "score": "0.5643199", "text": "public static void main(String[] args) {\n\t\tint[] nums = {2,3,1,2,4,3};\n\t\tSystem.out.println(new MinimumSizeOfSubarraySum().getMinimumSize(nums, 7));\n\t}", "title": "" }, { "docid": "3d87380b65613e4ad3fe6b259779b6ec", "score": "0.56427824", "text": "private static SubArrayDetails findMidMaxSubarray(int low, int mid, int high, int[] arr) {\n int leftMax = arr[mid];\n int leftIndex = mid;\n int leftSum = arr[mid];\n\n int rightMax = arr[mid + 1];\n int rightIndex = mid + 1;\n int rightSum = arr[mid + 1];\n\n for (int i = mid - 1; i >= low; i--) {\n leftSum = leftSum + arr[i];\n\n if (leftSum > leftMax) {\n leftMax = leftSum;\n leftIndex = i;\n }\n }\n\n for (int i = mid + 2; i <= high; i++) {\n rightSum = rightSum + arr[i];\n\n if (rightSum > rightMax) {\n rightMax = rightSum;\n rightIndex = i;\n }\n }\n\n return new SubArrayDetails(leftIndex, rightIndex, leftMax + rightMax);\n }", "title": "" }, { "docid": "cc9da7efcffc1d37f986edd6b1ef8743", "score": "0.5622463", "text": "static long maxTripletSum(int[] a){\n\t\tArrays.sort(a);\n\t\tint n = a.length;\n\t\tint i = 0 , j = n-2;\n\t\tlong ans = 0;\n\t\twhile(i<j) {\n\t\t\t//System.out.println(\"i=\"+i+\", j=\"+j +\" , a[j] = \" + a[j]);\n\t\t\tans+= a[j];\n\t\t\tj=j-2;\n\t\t\ti++;\n\t\t}\n\t\treturn ans;\n }", "title": "" }, { "docid": "7a00ac4b3e709013baaf97f397396b78", "score": "0.5613163", "text": "int sizeOfSecondPiePtArray();", "title": "" }, { "docid": "766c4d7f4c2759584f06937f18f1b211", "score": "0.56058323", "text": "private int computeDirectly(int[][] A, int start, int length) {\n int max = Integer.MIN_VALUE;\n int size = A.length;\n for (int i = start; i < length - start; i++) {\n for (int j = 0; j < size; j++) {\n if (A[i][j] > max) {\n max = A[i][j];\n }\n }\n }\n return max;\n }", "title": "" }, { "docid": "c0ace2ccdff820802c7392c7ec87ff57", "score": "0.5586391", "text": "public static void main(String args[]) {\n\n\t\tint a[] = {\n\t\t\t-2, 11, -4, 13, -5, 2\n\t\t\t//-15, 29, -36, 3, -22, 11, 19, -5\n\t\t};\n\n\t\tList<Integer> maxValues = new ArrayList<Integer>();\n\n\t\tmaxValues.add(a[0]);\n\n\t\tfor(int i = 1; i < a.length; i++) {\n\n\t\t\tmaxValues.add(Math.max(maxValues.get(i-1)+a[i], a[i]));\n\t\t}\n\n\t\tint max = Collections.max(maxValues);\n\n\t\tint i = 0, j = 0;\n\n\t\twhile(i < maxValues.size()) {\n\t\t\tif (maxValues.get(i) == max)\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\n\t\tj = i-1;\n\t\tint temp = a[i];\n\n\t\twhile(j >= 0) {\n\t\t\ttemp += a[j];\n\t\t\tif(temp == max)\n\t\t\t\tbreak;\n\n\t\t\tj--;\n\t\t}\n\n\t\tSystem.out.println(maxValues);\t\t\n\n\t\t//the value\n\t\tSystem.out.println(max);\n\n\t\t//the indices between which the subsequence is max\n\t\tSystem.out.println(j + \" \" + i);\n\t}", "title": "" }, { "docid": "016bd6d85922170b46afae13e3993a2f", "score": "0.558265", "text": "public static void main(String[] args) {\n\t\tint arr[] = {5, 6, 3, 5, 7, 8, 9, 1, 2};\n\t\tSystem.out.println(\"Length = \" + LongestIncreasingSubarray(arr));\n\t}", "title": "" }, { "docid": "3874af719de733d2e87bd02e0398be1c", "score": "0.5579895", "text": "void reCalcMaxOctave();", "title": "" }, { "docid": "763f32b5ffe3ded662de8dfcaa0920de", "score": "0.55736136", "text": "public static void main(String []arg)\n\t\t \n\t\t {\n\t\t\t int []X=new int []{1,2,3,-4,-7,-6,-5,8,9,10};\n\t\t\t \n\t\t\t int []IX=new int [X.length];\n\t\t\t \n\t\t\t int []X1=new int []{1,2,3,4,5,2,2,6,7,-2,-5,-4,-3,-2,-2};\n\t\t\t \n\t\t\t int n1=X1.length;\n\t\t\t \n\t\t\t int []IX1=inverser(X1);\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\t int []X2=new int []{1,2,3,4,5,1,2,3,4,5,1,2,3};\n\t\t\t \n\t\t\t int n2=X2.length;\n\t\t\t \n\t\t\t int []X3=new int []{-3,-2,-1,-5,-4,-3,-2,-1,-5,-4,-3,-2,-1};\n\t\t\t \n\t\t\t int []IX2=X3;\n\t\t\t \n\t\t\t Occurrence []T=allMaxInv(X1, IX1);\n\t\t\t \n\t\t\t System.out.println(\"-----------\");\n\t\t \n\t\t\t //Afficher(T);\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t //System.out.println(maxDup(X2,12,preKmp4(X2,12)).j);\n\t\t\t \n\t\t\t \n\t\t\t //int []Y=allCourtSufInvX(IX2,X3,X3.length-1);\n\t\t\t \n\t\t\t //int []Y2=allLongSufInvX(IX2,X3,X3.length-1, preKmp4(X3,X3.length-1));\n\t\t\t \n\t\t\t \n\t\t\t //int []t2=preKmp4(Y,5);\n\t\t \n\t\t \n\t\t //int []t3=preKmp4(t,7);\n\t\t \n\t\t\t int []X4=new int []{1,2,3,-5,5,-3,-2,5};\n\t\t\t \n\t\t\t int []IX4=new int []{-5,2,3,-5,5,-3,-2,-1};\n\t\t\t \n\t\t\t int n5=X4.length;\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\t //int t=maxInv(X4, IX4, 2, preKmp4(X4,2));\n\t\t\t \n\t\t\t //System.out.println(t);\n\t\t\t \n\t\t //System.out.println(maxOcc5(X,Y,5,Y)); \n\t\t \n\t\t //System.out.println(maxOcc4(t,t,7,t3));\n\t\t \n\t\t //System.out.println(maxOcc2(\"iuobcaxabaaa\",\"caabaaa\",6,t));\n\t\t \n\t\t //t=preKmp2(\"caabaa\");\n\t\t //System.out.println(maxOcc2(\"iuobcaxabaaa\",\"caabaaa\",5,t));\n\t\t \n\t\t //t=preKmp2(\"caaba\");\n\t\t //System.out.println(maxOcc2(\"iuobcaxabaaa\",\"caabaaa\",4,t));\n\t\t \n\t\t //System.out.print(t);\n\t\t \t\n\t\t\t \n\t\t\t //for (int i=0; i<Y.length; i++)\n\t\t \t//System.out.print(Y[i]+\" \") ;\n\t\t\t \n\t\t\t \n\t\t System.out.println();\n\t\t \n\t\t \n\t\t \n\t\t String s2=\"16SrRNA IGAT ATGC 23SrRNA 5SrRNA STGA 16SrRNA IGAT ATGC 23SrRNA 5SrRNA MCAT ETTC 16SrRNA 23SrRNA 5SrRNA 16SrRNA 23SrRNA 5SrRNA NGTT TGGT ETTC ATAC YGTA QTTG KTTT GGCC ATGC NGTT SGCT ETTC ATAC DGTC QTTG KTTT LGAG RACG PTGG GTCC 16SrRNA 23SrRNA 5SrRNA XCAT DGTC XCAT DGTC 16SrRNA 23SrRNA 5SrRNA 16SrRNA 23SrRNA 5SrRNA 16SrRNA 23SrRNA 5SrRNA 16SrRNA 23SrRNA 5SrRNA 16SrRNA 23SrRNA 5SrRNA NGTT SGGA ETTC ATAC XCAT DGTC FGAA TTGT YGTA WCCA HGTG QTTG GGCC CGCA LCAA GTCC 16SrRNA 23SrRNA 5SrRNA ATAC YGTA QTTG KTTT LTAG GGCC LTAA RACG PTGG ATGC STGA STGA XCAT DGTC FGAA TTGT WCCA IGAT NGTT ETTC KTTT ETTC DGTC FGAA RCCG 16SrRNA 23SrRNA 5SrRNA ATAC TTGT HGTG LTAG GGCC LTAA RACG PTGG ATGC MCAT JCAT STGA XCAT DGTC FGAA TTGT KTTT GTCC IGAT NGTT SGCT ETTC GTCC DTTG JCAT VGAC\" ;\n\t\t\t\t\n\t\t String []s4=s2.split(\" \");\n\t\t \n\t\t int []X5=new int[s4.length];\n\t\t \n\t\t for (int i = 0; i < X5.length; i++) \n\t\t\t\t\t\n\t\t\t\t\tX5[i] = (s4[i].hashCode());\n\t\t \n\t\t \n\t\t \n\t\t int []X6={1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6};//taille 18 \n\t\t \n\t\t Coordinates c=Couverture(X6, 0, 5);\n\t\t \n\t\t System.out.println(\"droite \"+c.y+\", gauche \"+c.x);\n\t\t \n\t\t System.out.println();\n\t\t \n\t\t //System.out.println(X5[52]);\n\t\t \n\t\t System.out.println(maxDup(X6,5,preMp4(X6,5)).j);\n\t\t \n\t\t //int []h=preKmp4(X6,17);\n\t\t \n\t\t //for (int i = 0; i < h.length; i++) \n\t\t\t\t\t\n\t\t \t//System.out.print(h[i]+\" \");\n\t\t \n\t\t \n\t\t \n\t\t int []A={8,8,8,8,8,8,8,1,2,3,4,5,1,2,3,4,5,1,2,3};\n\t\t \n\t\t int []iA=inverser(A);\n\t\t \n\t\t int []B={9,9,9,9,9,-3,-2,-1,-5,-4,-3,-2,-1,-5,-4,-3,-2,-1};\n\t\t \n\t\t int []kmp=preKmp4(B,17);\n\t\t \n\t\t int[]Res1=allCourtSufInvX(iA,B,9);\n\t\t \n\t\t int[]Res2=allLongSufInvX(iA,B,17,kmp);\n\t\t \n\t\t Afficher(Res1);\n\t\t \n\t\t \n\t\t Position(B);\n\t\t \n\t\t \n\t\t \n\t\t }", "title": "" }, { "docid": "62f5374eb3ee0ce17c914264ba2b930e", "score": "0.5548441", "text": "public static void main(String[] args) {\n\n\t\tint n = scn.nextInt();\n\t\tint[] a = takeInput(n) ;\n\t\tint q = scn.nextInt() ;\n\t\tfor ( int j = 0 ; j < q ; j++ ) {\n//\t\t\tString s = scn.next();\n//\t\t\tSystem.out.println(s);\n//\t\t\tint l = Integer.valueOf(s.charAt(0));\n//\t\t\tint r = Integer.valueOf(s.charAt(2)) ;\n\t\t\tint l = scn.nextInt() - 1 ;\n\t\t\tint r = scn.nextInt() - 1;\n\t\t\tint[] b = new int[r-l+1];\n\t\t\tfor ( int k = 0 ; k < r-l+1 ; k++ ) {\n\t\t\t\tb[k] = a[l+k];\n\t\t\t}\n\t\t\tSystem.out.println(maxsumofsubarray(b));\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3716bab5236a61d7acfcc018f592274e", "score": "0.5544949", "text": "public static void main(String[] args) {\n \n File file = new File(\"D:\\\\chrom_download\\\\16.in\");\n \n int[] nums = new int[160005];\n \n String line = null;\n BufferedReader br = null;\n try {\n br = new BufferedReader(new InputStreamReader(new FileInputStream(file)));\n int index = 0;\n while(null!=(line=br.readLine())) {\n nums[index++] = Integer.parseInt(line.trim());\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (NumberFormatException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n System.out.println(\"read over...\");\n \n //int[] nums = {-3, 1, 2, -3, 4};\n ArraySubarraySum arraySubarraySum = new ArraySubarraySum();\n ArrayList<Integer> ret = arraySubarraySum.subarraySum(nums);\n System.out.println(Arrays.toString(ret.toArray()));\n }", "title": "" }, { "docid": "127d5f24fa8639ec311d531aeffb4677", "score": "0.55386055", "text": "public static int maxSumSubArrayOfSizeKOpt(int [] arr,int n,int k){\n int currentSum = 0;\n int maxSubArrSum = 0;\n int i=0,j=0;\n while(j<n){\n currentSum += arr[j];\n if((j-i+1) < k){ //less than the window size k\n j++;\n }else{\n if(maxSubArrSum < currentSum){\n maxSubArrSum = currentSum;\n }\n currentSum -= arr[i];\n i++;\n j++;\n }\n }\n return maxSubArrSum;\n\n }", "title": "" }, { "docid": "ab25f702407e55db6460b684d4f23d12", "score": "0.55320495", "text": "public int maxSubarraySumCircularII(int[] A) {\n int N = A.length;\n\n // Compute P[j] = B[0] + B[1] + ... + B[j-1]\n // for fixed array B = A+A\n int[] P = new int[2 * N + 1];\n for (int i = 0; i < 2 * N; ++i)\n P[i + 1] = P[i] + A[i % N];\n\n // Want largest P[j] - P[i] with 1 <= j-i <= N\n // For each j, want smallest P[i] with i >= j-N\n int ans = A[0];\n // deque: i's, increasing by P[i]\n Deque<Integer> deque = new ArrayDeque<>();\n deque.offer(0);\n\n for (int j = 1; j <= 2 * N; ++j) {\n // If the smallest i is too small, remove it.\n if (deque.peekFirst() < j - N)\n deque.pollFirst();\n\n // The optimal i is deque[0], for cand. answer P[j] - P[i].\n ans = Math.max(ans, P[j] - P[deque.peekFirst()]);\n\n // Remove any i1's with P[i2] <= P[i1].\n while (!deque.isEmpty() && P[j] <= P[deque.peekLast()])\n deque.pollLast();\n\n deque.offerLast(j);\n }\n\n return ans;\n }", "title": "" }, { "docid": "6ad495cdbf592f6f042227966983393b", "score": "0.55022657", "text": "private int[] maxCrosssingSubarray(int nums[], int low, int mid, int high) {\n int sum = 0;\n int left_idx = mid;\n int left_sum = 0;\n for(int i = mid; i >= low; i--) {\n // go from middle to lower and find the highest sum and its index\n sum += nums[i];\n if(sum > left_sum) {\n left_sum = sum;\n left_idx = i;\n }\n }\n\n // find max sum and indexes on the right half\n sum = 0;\n int right_idx = mid;\n int right_sum = 0;\n for(int i = mid+1; i <= high; i++) {\n // go from mid+1 to high and find the highest sum and its index\n sum += nums[i];\n if(sum > right_sum) {\n right_sum = sum;\n right_idx = i;\n }\n }\n\n return new int[] {left_idx, right_idx, left_sum + right_sum};\n }", "title": "" }, { "docid": "b2eec8ead57f17897ccd0ea4f2c0ce6e", "score": "0.5496251", "text": "public int FindMaxSum(int a[], int n)\n {\n int dp[] = new int[n];\n dp[0] = a[0];\n if(n >= 2){\n dp[1] = Math.max(a[0],a[1]); \n }\n for(int i=2;i<n;i++){\n int exclude = dp[i-1];\n int include = a[i]+ dp[i-2];\n dp[i] = Math.max(a[i],Math.max(exclude,include));\n }\n \n return dp[n-1];\n }", "title": "" }, { "docid": "5b60cbb2f41a4004dffa36c5ae7c6c4a", "score": "0.5484478", "text": "public static RangeCapsule findMaxSubArr(int[] numberArr,int lowIdx,int highIdx){\n\t\tif (lowIdx > highIdx) {\n\t\t\treturn null;\n\t\t}\n\t\tif (lowIdx==0 && highIdx==0){return new RangeCapsule(lowIdx, highIdx,numberArr[lowIdx]);}\n\t\t/*else if (lowIdx==0 && highIdx==1){\n\t\t\treturn new RangeCapsule(lowIdx, highIdx,numberArr[lowIdx]+numberArr[highIdx]);\n\t\t}*/else{\n\t\t\tif (lowIdx+highIdx==0) return null;\n\t\t\t//int midIdx=(int)Math.ceil((lowIdx+highIdx)/2)==0?1:(int)Math.ceil((lowIdx+highIdx)/2);\n\t\t\tint midIdx=(int)Math.ceil((lowIdx+highIdx)/2);\n\t\t\tSystem.out.println(\"midIdx=\"+midIdx+\",lowIdx\"+lowIdx+\",highIdx\"+highIdx);\n\t\t\tRangeCapsule leftCapsule=findMaxSubArr(numberArr, lowIdx, midIdx);\n\t\t\tSystem.out.println(\"left call return\");\n\t\t\tRangeCapsule rightCapsule=findMaxSubArr(numberArr, midIdx+1, highIdx);\n\t\t\tSystem.out.println(\"right call return\");\n\t\t\tRangeCapsule midCapsule=findMaxCrossingSubArr(numberArr,lowIdx, midIdx, highIdx);\n\t\t\tSystem.out.println(\"mid call return\");\n\t\t\tif (leftCapsule.getSum()>=rightCapsule.getSum() && leftCapsule.getSum()>=midCapsule.getSum()){\n\t\t\t\treturn new RangeCapsule(leftCapsule.getLow(), leftCapsule.getHigh(), leftCapsule.getSum());\n\t\t\t}else if (rightCapsule.getSum()>=leftCapsule.getSum() && rightCapsule.getSum()>=midCapsule.getSum()){\n\t\t\t\treturn new RangeCapsule(rightCapsule.getLow(), rightCapsule.getHigh(), rightCapsule.getSum());\n\t\t\t}else{\n\t\t\t\treturn (new RangeCapsule(midCapsule.getLow(),midCapsule.getHigh(),midCapsule.getSum()));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9740d39482d9185f569c7beae9e0b9c7", "score": "0.5480509", "text": "private static void LargestSum(int[] arr, int n) \r\n\t{\n\t\tint maxatend=0;\r\n\t int maxsofar=0;\r\n\t for(int i=0;i<arr.length;i++)\r\n\t {\r\n\t \r\n\t maxatend=maxatend+arr[i];\r\n\t if(maxatend<0)\r\n\t {\r\n\t maxatend=0;\r\n\t }\r\n\t if(maxsofar<maxatend)\r\n\t {\r\n\t maxsofar=maxatend;\r\n\t }\r\n\t \r\n\t \r\n\t \r\n\t }\r\n\t System.out.println(maxsofar);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "861e3221f72146c525d153baebbc2837", "score": "0.54786515", "text": "public ArraySh(int max) // constructor\n{\ntheArray = new double[max]; // create the array\nnElems = 0; // no items yet\n}", "title": "" }, { "docid": "8d408dad6af10b8cf5fb421e33646e43", "score": "0.5478222", "text": "public static void main(String[] args) {\n// OneDimArray arrD = new OneDimArray(15,-50,50);\n// arrD.printArr();\n// arrD.findMaxAndMinElem();\n\n//// task e\n// OneDimArray arrE1 = new OneDimArray(10,0,10);\n// OneDimArray arrE2 = new OneDimArray(10,0,10);\n// arrE1.printArr();\n// arrE2.printArr();\n// OneDimArray.compareAvg(arrE1,arrE2);\n\n// task d\n OneDimArray arrF = new OneDimArray(20,-1,1);\n arrF.printArr();\n System.out.println(\"\");\n arrF.occursMostOften();\n }", "title": "" }, { "docid": "ee148d82f609d07060f42c4961089776", "score": "0.54772943", "text": "public static void longestSubArraysumequaltoK(int n, int[] a, int k) {\n\r\n\t\tint max = 0;\r\n\t\tHashMap<Integer, Integer> map = new HashMap<>();\r\n\t\tmap.put(0, -1);\r\n\t\tint rs = 0;\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\trs += a[i];\r\n\t\t\tif (map.containsKey(rs - k)) {\r\n\t\t\t\tint len = i - map.get(rs - k);\r\n\t\t\t\tif (len > max) {\r\n\t\t\t\t\tmax = len;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmap.put(rs, i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(max);\r\n\t}", "title": "" }, { "docid": "cd530f40100060a8630fb5259536109d", "score": "0.54621047", "text": "public static void maxSquareSubMatrix(int[][] matrix) {\r\n\r\n\t\t// S[i][j] represents size of the square sub-matrix with all equal Elements\r\n\t\t// including M[i][j]\r\n\t\t// where M[i][j] is the rightmost and bottom most entry in sub-matrix.\r\n\t\tint[][] s = new int[matrix.length][matrix[0].length];\r\n\r\n\t\t// Set all first row values to 1.\r\n\t\tfor (int i = 0; i < matrix[0].length; i++) {\r\n\t\t\ts[0][i] = 1;\r\n\t\t}\r\n\r\n\t\t// Set all first column values\r\n\t\tfor (int i = 0; i < matrix.length; i++) {\r\n\t\t\ts[i][0] = 1;\r\n\t\t}\r\n\r\n\t\tfor (int i = 1; i < matrix.length; i++) {\r\n\r\n\t\t\tfor (int j = 1; j < matrix[0].length; j++) {\r\n\r\n\t\t\t\tif (matrix[i][j] == matrix[i - 1][j - 1] && matrix[i][j] == matrix[i - 1][j]\r\n\t\t\t\t\t\t&& matrix[i][j] == matrix[i][j - 1]) {\r\n\t\t\t\t\ts[i][j] = Integer.min(s[i - 1][j - 1],\r\n\t\t\t\t\t\t\tInteger.min(s[i][j - 1], s[i - 1][j])) + 1;\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\t\t\t\t\ts[i][j] = 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint max = Integer.MIN_VALUE;\r\n\t\tint max_i = Integer.MIN_VALUE, max_j = Integer.MIN_VALUE;\r\n\t\tfor (int i = 0; i < matrix.length; i++) {\r\n\r\n\t\t\tfor (int j = 0; j < matrix[0].length; j++) {\r\n\t\t\t\tif (s[i][j] > max) {\r\n\t\t\t\t\tmax = s[i][j];\r\n\t\t\t\t\tmax_i = i;\r\n\t\t\t\t\tmax_j = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Max Square matrix length : \" + max);\r\n\t\tfor (int i = max_i; i > max_i - max; i--) {\r\n\r\n\t\t\tfor (int j = max_j; j > max_j - max; j--) {\r\n\t\t\t\tSystem.out.print(matrix[i][j] + \" \");\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "a53f2a266c9e72ec4515fe0097a9b114", "score": "0.54585356", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint [][] arr = new int [n+1][m+2];\n\t\tint [][] dp = new int[n+1][m+2];\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tdp[i][0] = dp[i][m+1] = -99999999;\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tarr[i][j] = sc.nextInt();\n\t\t\t\tdp[i][j] = arr[i][j];\n\t\t\t}\n\t\t}\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tdp[i][j] = dp[i-1][j-1] + arr[i][j];\n\t\t\t\tdp[i][j] = Math.max(dp[i][j], dp[i-1][j]+arr[i][j]);\n\t\t\t\tdp[i][j] = Math.max(dp[i][j], dp[i-1][j+1]+arr[i][j]);\n\t\t\t}\n\t\t}\n\t\tint max = dp[n][m/2];\n\t\tmax = Math.max(max, dp[n][m/2+1]);\n\t\tmax = Math.max(max, dp[n][m/2+2]);\n\t\tSystem.out.println(max);\n\t}", "title": "" }, { "docid": "ab57018db83cdb6204c702ce6862f489", "score": "0.5449088", "text": "@Test\n public void example1(){\n int[] nums={1, 7, 4, 3, 4, 1, 2, 5, 1};\n int target=7;\n returnSubArrays(nums,target);\n\n }", "title": "" }, { "docid": "6c52e622c306f3bface179df87e9af66", "score": "0.5407071", "text": "public static void main(String[] args) throws IOException {\n File file = new File(\"./resources/dynamic-array-testcases/input/input05.txt\");\n Scanner scanner = new Scanner(file);\n //String[] nq = bufferedReader.readLine().replaceAll(\"\\\\s+$\", \"\").split(\" \");\n //String [] nq = scanner.useDelimiter(\"/s+$\", \"\").split(\" \");\n\n //int n = Integer.parseInt(nq[0]);\n\n //int q = Integer.parseInt(nq[1]);\n int n = scanner.nextInt();\n int q = scanner.nextInt();\n //These will keep track of the indices.\n int MIN = 0;\n int MAX = 0;\n int temp = 0;\n\n //The list of numbers from each query.\n List<Integer> nums = new ArrayList<>();\n List<List<Integer>> queries = new ArrayList<>();\n\n //for(int i = 0; i < (n-1); i++){\n while(scanner.hasNext()) {\n int thing = scanner.nextInt();\n nums.add(thing);\n //System.out.println(\"This is thing: \" + thing);\n }\n //System.out.println(\"This is nums in main: \" + nums);\n //System.out.println(nums.size());\n for(int j = 0; j < q; j++){\n while(MAX < nums.size()-1){\n MIN = MIN + temp;\n temp = 3;\n MAX = MIN + 3;\n queries.add(nums.subList(MIN, MAX));\n }\n }\n //}\n //Checking to make sure I've got the correct list, since this came from HackerRank.\n //System.out.println(\"This is queries in main: \" + queries);\n\n /* HackerRank code.\n IntStream.range(0, q).forEach(i -> {\n try {\n queries.add(\n Stream.of(bufferedReader.readLine().replaceAll(\"\\\\s+$\", \"\").split(\" \"))\n .map(Integer::parseInt)\n .collect(toList())\n );\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n });\n */\n\n List<Integer> result = dynamicArray(n, queries);\n System.out.println(result);\n scanner.close();\n /*\n bufferedWriter.write(\n result.stream()\n .map(Object::toString)\n .collect(joining(\"\\n\"))\n + \"\\n\"\n );\n\n bufferedReader.close();\n bufferedWriter.close();\n */\n }", "title": "" }, { "docid": "b966c11ddfa47d3ef0b66eeb12381733", "score": "0.5386679", "text": "public List<Integer> largestDivisibleSubset(int[] nums) {\n List<Integer> res = new ArrayList<>();\n if(nums == null || nums.length == 0)return res;\n Arrays.sort(nums);\n int n = nums.length, max = 0, index = 0;\n int[] dp = new int[n];\n int[] pre = new int[n];//parent cache\n for(int i = n - 1; i >= 0; i--){\n for (int j = n - 1; j > i; j--) {\n if(nums[j] % nums[i] == 0 && dp[j] + 1 > dp[i]){\n dp[i] = dp[j] + 1;\n pre[i] = j;\n }\n }\n if(dp[i] > max){\n max = dp[i];\n index = i;\n }\n }\n for (int i = 0; i <= max; i++) {\n res.add(nums[index]);\n index = pre[index];\n }\n return res;\n }", "title": "" }, { "docid": "2461101cf3f061a54b5843196f4ce2c3", "score": "0.53725326", "text": "public Element divideAndConquer() {\r\n\t\treturn maxSubArray(array, 0, array.length - 1);\r\n\t}", "title": "" }, { "docid": "3821510279e571e2740821696cfe1383", "score": "0.537112", "text": "private static void array()\n\t\t{\n\t\tInteger[] tab = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };\n\n\t\t// v1\n\t\t\t{\n\t\t\tint sum = Arrays.stream(tab).parallel().reduce(0, Integer::sum);\n\n\t\t\t// check\n\t\t\t\t{\n\t\t\t\tint n = tab.length;\n\t\t\t\tint sumTrue = n * (n + 1) / 2;\n\t\t\t\tAssert.assertTrue(sum == sumTrue);\n\t\t\t\t}\n\t\t\t}\n\n\t\t// variante : idem mais que des 5 premiers élément de la stream. Use limit\n\t\t\t{\n\t\t\tint m = 5;\n\t\t\t//int sum = Arrays.stream(tab).limit(m).parallel().reduce(0, Integer::sum);\n\t\t\tint sum = Arrays.stream(tab).parallel().limit(m).reduce(0, Integer::sum);\n\n\t\t\t// check\n\t\t\t\t{\n\t\t\t\tint sumTrue = m * (m + 1) / 2;\n\t\t\t\tAssert.assertTrue(sum == sumTrue);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f8eda680703c218ee74e0efcccdeeede", "score": "0.53709596", "text": "public static int findMaximumSumSubArrayCircular1(List<Integer> A) {\n int sum = A.stream().reduce(0, (a, b) -> a + b);\n return Math.max(\n findOptimumSubArrayUsingComp(A, new MaximumSubArraySum.MaxComparator()),\n sum - findOptimumSubArrayUsingComp(A, new MaximumSubArraySum.MinComparator()));\n }", "title": "" }, { "docid": "ec7929ffd4dc9ab55cc0cabb347f0237", "score": "0.5361321", "text": "public static void main(String[] args) {\n\t\tfinal int a[] = new int[] { 2, 14, 3, 1 };\n\t\tfinal int n = a.length;\n\t\tdp = new int[n + 1][n + 1];\n\t\tSystem.out.println(maximiseValueTopDown(a, 0, 3));\n\t}", "title": "" }, { "docid": "beb760536da35e9da53f5b2ebb75b95b", "score": "0.53563553", "text": "private void allocateArrays(int maxRangeCount) {\n\t\tsites = new int[2*maxRangeCount];\n\t\trefIDs = new int[maxRangeCount];\n // System.out.println(\"Allocating arrays for site range list\");\n\t}", "title": "" }, { "docid": "07236742f952b6acaa78c9bddbf9184b", "score": "0.53545386", "text": "public static void main(String[] args)throws IOException{\n FastScanner fs = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n \n //StringTokenizer st = new StringTokenizer(f.readLine());\n \n int n = fs.nextInt();\n int x = fs.nextInt();\n int y = fs.nextInt();\n \n long[] array = new long[x+1];\n long[] array2 = new long[x+1];\n \n //st = new StringTokenizer(f.readLine());\n for(int k = 0; k < n+1; k++){\n int i = fs.nextInt();\n array[i] = 1L;\n array2[x-i] = 1L;\n }\n \n long[] answer = mul(array,array2);\n \n ArrayList<Integer> alist = new ArrayList<Integer>();\n \n for(int k = 1; k <= x; k++){\n if(answer[k+x] > 0){\n alist.add((k + y)*2);\n }\n }\n \n int MAX = 1000005;\n long[] maxes = new long[1000005];\n Arrays.fill(maxes,-1);\n for(int k = 0; k < alist.size(); k++){\n for(int j = alist.get(k); j <= MAX; j+=alist.get(k)){\n maxes[j] = alist.get(k);\n }\n }\n \n \n \n \n \n \n StringJoiner sj = new StringJoiner(\" \");\n int t = fs.nextInt();\n //st = new StringTokenizer(f.readLine());\n for(int q = 0; q < t; q++){\n int num = fs.nextInt();\n \n sj.add(\"\" + maxes[num]);\n }\n \n out.println(sj.toString());\n \n \n \n \n \n \n \n \n \n out.close();\n }", "title": "" }, { "docid": "a96da78cc4e9329129e880858574c749", "score": "0.5351144", "text": "public static void maxesHelper(int[] numbahs, int size)\n\t{\n\t\t//variable declaration\n\t\tSystem.out.println();\n\t\tint i = 0, j = 0, k = 0, maxTimes = 0;\n\t\tint maxValue = Integer.MIN_VALUE;\n\t\t\n\t\t//for loops to scan arrays and find necessary information to print\n\t\tfor (i = 0; i < size; i++)\n\t\t\tSystem.out.println(numbahs[i]);\n\t\tfor (j = 0; j < size; j++)\n\t\t{\n\t\t\tif (numbahs[j] > maxValue)\n\t\t\t\tmaxValue = numbahs[j];\n\t\t}//for\n\t\tfor (k = 0; k < size; k++)\n\t\t{\n\t\t\tif (numbahs[k] == maxValue)\n\t\t\t\tmaxTimes++;\n\t\t}//for\n\t\t\n\t\t//output\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Max Value in Array: \" + maxValue);\n\t\tSystem.out.println(\"Times Max Value Appears: \" + maxTimes);\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "3dc4c3b2f98d4eed0f2664c162f083dd", "score": "0.5345792", "text": "public static void largestfibsubsequence(int[] arr) {\n HashMap<Integer, Boolean> map = new HashMap<>();\r\n HashMap<Integer,Integer> fmap=new HashMap<>();\r\n int max=arr[0];\r\n int min=arr[0];\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tmap.put(arr[i], true);\r\n\t\t\tif(arr[i]>max)\r\n\t\t\t{\r\n\t\t\t max=arr[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(arr[i]<min)\r\n\t\t\t{\r\n\t\t\t min=arr[i];\r\n\t\t\t}\r\n\t\t\tif(fmap.containsKey(arr[i]))\r\n\t\t\t{\r\n\t\t\t fmap.put(arr[i],fmap.get(arr[i])+1);\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t fmap.put(arr[i],1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tint x=0;\r\n\t\tint y=1;\r\n\r\nHashSet<Integer> fib=new HashSet<>();\r\n\twhile(x<=max)\r\n\t{\r\n\t fib.add(x);\r\n\t /* if(map.containsKey(x))\r\n\t {\r\n\t System.out.print(x+\" \");\r\n\t }*/\r\n\t int sum=y+x;\r\n\t x=y;\r\n\t y=sum;\r\n\t}\r\n\t\r\n\tfor(int i=0;i<arr.length;i++)\r\n\t{\r\n\t if(fib.contains(arr[i]))\r\n\t {\r\n\t System.out.print(arr[i]+\" \"); \r\n\t }\r\n\t}\r\n\r\n }", "title": "" }, { "docid": "d30a96f68b5e6f37f8f59ec85b57a28b", "score": "0.5342103", "text": "public static void main(String[] args) {\n\t\tint arr[]=new int[]{-2,1,-3,4,-1,2,1,-5,4};\n\t\tint global_max=Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=0;i<arr.length;i++){\n\t\t\tint local_max=0;\n\t\t\tfor(int j=i;j<arr.length;j++){\n\t\t\t\t\n\t\t\t\tlocal_max+=arr[j];\n\t\t\t\t\n\t\t\t\tif(local_max>global_max){\n\t\t\t\t\tglobal_max=local_max;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n System.out.println(global_max);\n\t}", "title": "" } ]
405f6dec669c87005c2fbb7a471df044
Copy source directory to the target area.
[ { "docid": "95ad4f7855226bb51d315dc1a88f5ad3", "score": "0.70940447", "text": "public void copyDirectiory(String sourceDir, String targetDir) throws IOException {\n\t\t(new File(targetDir)).mkdirs();\n\t\tFile[] file = (new File(sourceDir)).listFiles();\n\t\tfor (File files : file) {\n\t\t\tif (files.isFile()) {\n\t\t\t\tFile sourceFile = files;\n\t\t\t\tFile targetFile = new File(new File(targetDir).getAbsolutePath() + File.separator\n\t\t\t\t\t\t+ files.getName());\n\t\t\t\tcopyFile(sourceFile, targetFile);\n\t\t\t\tcopyFileNum++;\n\n\t\t\t\tLog.d(TAG, files.getName());\n\t\t\t\tLog.d(TAG, \"copyFileNum = \" + copyFileNum);\n\t\t\t}\n\t\t\tif (files.isDirectory()) {\n\t\t\t\tString dir1 = sourceDir + \"/\" + files.getName();\n\t\t\t\tString dir2 = targetDir + \"/\" + files.getName();\n\t\t\t\tcopyDirectiory(dir1, dir2);\n\t\t\t}\n\t\t\tMainHandler.sendEmptyMessage(COPY_HANDLER);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "71e752d9e63e04f45f59ffe85baa1861", "score": "0.77233076", "text": "private void copyDirectory(File source, File target) throws IOException {\r\n\t if (!target.exists()) {\r\n\t target.mkdir();\r\n\t }\r\n\t for (String f : source.list()) {\r\n\t copy(new File(source, f), new File(target, f));\r\n\t }\r\n\t}", "title": "" }, { "docid": "dcc5f4e722b364d01900e7645abf9480", "score": "0.7599524", "text": "private void copyDirectory(File source, File target) throws IOException {\n if (!target.exists()) {\n target.mkdir();\n }\n\n for (String f : source.list()) {\n copy(new File(source, f), new File(target, f));\n }\n }", "title": "" }, { "docid": "badc8778f0894f31adac6519be5d49e6", "score": "0.7297208", "text": "private void copy(File sourceLocation, File targetLocation) throws IOException {\r\n\t if (sourceLocation.isDirectory()) {\r\n\t copyDirectory(sourceLocation, targetLocation);\r\n\t } else {\r\n\t copyFile(sourceLocation, targetLocation);\r\n\t }\r\n\t}", "title": "" }, { "docid": "1d0d391cf82682816b9b4e27a6b84f8e", "score": "0.7030972", "text": "public static void copy ( File source, File destination ) throws IOException {\n // Source is a directory, copy all files in the source directory.\n\t\tif ( source.isDirectory()) {\n\t\t\t// Create destination directory if it does not exist.\n if ( !destination.exists() ) {\n destination.mkdir();\n }\n else if ( destination.isFile() ) {\n \tthrow new IOException(\"Unable to copy a source directory to a destination file.\");\n }\n \n // Get all of the contents of this directory (directories and files)\n //\tand copy them to the destination.\n String[] children = source.list();\n for ( int i = 0; i < children.length; i++ ) {\n copy(new File(source, children[i]),\n new File(destination, children[i]));\n }\n }\n \n\t\t// Source is a file, copy it to the specified destination.\n else {\n \t// Destination is a directory, copy source to\n \t//\tdestination using source name.\n if ( destination.exists() && destination.isDirectory() ) {\n \tdestination = new File(destination.getAbsolutePath() + source.getName());\n }\n \n InputStream in = new FileInputStream(source);\n OutputStream out = new FileOutputStream(destination);\n \n // Copy the bits from instream to outstream.\n byte[] buffer = new byte[1024];\n int length = in.read(buffer);\n\n while ( length > 0) {\n \tout.write(buffer, 0, length);\n \tlength = in.read(buffer);\n }\n \n in.close();\n out.close();\n }\n\t\t\n }", "title": "" }, { "docid": "06d886d5aecc3f7b080380b32f34ac4a", "score": "0.69187856", "text": "private static void copy(File src, File dest) throws IOException {\n if (src.isDirectory()) {\n //Verify if destinationFolder is already present; If not then create it\n if (!dest.exists()) { dest.mkdir(); }\n\n //Get all files from source directory\n String[] files = src.list();\n\n //Iterate over all files and copy them to destinationFolder one by one\n if (files != null) {\n for (String file : files) {\n File srcFile = new File(src, file);\n File destFile = new File(dest, file);\n\n //Recursive function call\n copy(srcFile, destFile);\n }\n }\n }\n else {\n //Copy the file content from one place to another\n FileInputStream inputStream = new FileInputStream(src);\n FileOutputStream outputStream = new FileOutputStream(dest);\n byte[] buffer = new byte[1024];\n int len;\n while ((len = inputStream.read(buffer)) > 0) {\n outputStream.write(buffer, 0, len);\n }\n outputStream.flush();\n outputStream.close();\n inputStream.close();\n }\n }", "title": "" }, { "docid": "ee980bb38770dd26c631b4f1133a2cf4", "score": "0.6910409", "text": "public static void copyDirectory(String sourceDir, String destDir) throws Exception {\n\t\tFile[] files = new File(sourceDir).listFiles();\n\t for(File file : files) {\n\t \t// create target dir, if not exists.\n\t \tFile d = new File(destDir);\n\t \tif(! d.exists()) {\n\t \t\td.mkdirs();\n\t \t}\n\t \t\n\t\t if(file.isDirectory()) {\t\t \t\n\t\t \tcopyDirectory(file.getPath(), destDir + \"/\" + file.getName());\n\t\t \n\t\t } else {\n\t\t copyFile(file.getPath(), destDir + \"/\" + file.getName());\n\t\t }\n\t }\n\t}", "title": "" }, { "docid": "56992ac2d909b4d38062567b98ac6aab", "score": "0.6696135", "text": "public static void copyToDirectory(String sourceLocation, String targetLocation) throws IOException \n {\n \tFile sourceFile = new File(sourceLocation);\n \t\n \tif (!sourceFile.exists())\n \t\treturn;\n \t\n File targetFolder = new File(targetLocation);\n\n InputStream in = new FileInputStream(sourceLocation);\n OutputStream out = new FileOutputStream(targetFolder + \"\\\\\"+ sourceFile.getName(), true);\n\n byte[] buf = new byte[1024];\n int len;\n \n while ((len = in.read(buf)) > 0)\n out.write(buf, 0, len);\n \n in.close();\n out.close();\n }", "title": "" }, { "docid": "6f8f97cf3a3e096e1dbac15549a2edcb", "score": "0.6694305", "text": "public static void copyDirectoryContents(File sourceDirectory, File targetDirectory)\n throws IOException {\n File[] children;\n File sourceFile, targetFile;\n\n if (!sourceDirectory.exists()) {\n throw new IllegalArgumentException(\n \"sourceDirectory does not exist: \" + sourceDirectory.getAbsolutePath()); //$NON-NLS-1$\n } else if (!sourceDirectory.isDirectory()) {\n throw new IllegalArgumentException(\n \"sourceDirectory is not a directory: \" + sourceDirectory.getAbsolutePath()); //$NON-NLS-1$\n }\n if (!targetDirectory.exists()) {\n targetDirectory.mkdirs();\n } else if (!targetDirectory.isDirectory()) {\n throw new IllegalArgumentException(\n \"targetDirectory is not a directory: \" + targetDirectory.getAbsolutePath()); //$NON-NLS-1$\n }\n children = sourceDirectory.listFiles();\n for (int i = 0; i < children.length; i++) {\n sourceFile = children[i];\n targetFile = new File(targetDirectory, sourceFile.getName());\n if (sourceFile.isDirectory()) {\n copyDirectoryContents(sourceFile, targetFile);\n } else {\n copyFile(sourceFile, targetFile);\n }\n }\n }", "title": "" }, { "docid": "0486b0b2b181119d4b51e1f8d9450aea", "score": "0.6689581", "text": "public static void copyFiles(File src, File dest) throws IOException {\n // Check to ensure that the source is valid...\n if (!src.exists()) {\n throw new IOException(NLS.bind(Messages.PickWorkspaceDialog_SourceNotFoundMsg,src.getAbsolutePath()));\n } else if (!src.canRead()) { // check to ensure we have rights to the source...\n throw new IOException(NLS.bind(Messages.PickWorkspaceDialog_CannotReadMsg,src.getAbsolutePath()));\n }\n // is this a directory copy?\n if (src.isDirectory()) {\n if (!dest.exists()) { // does the destination already exist?\n // if not we need to make it exist if possible (note this is mkdirs not mkdir)\n if (!dest.mkdirs()) { throw new IOException(Messages.PickWorkspaceDialog_CannoCreateDirMsg + dest.getAbsolutePath()); }\n }\n // get a listing of files...\n String list[] = src.list();\n // copy all the files in the list.\n for (int i = 0; i < list.length; i++) {\n File dest1 = new File(dest, list[i]);\n File src1 = new File(src, list[i]);\n copyFiles(src1, dest1);\n }\n } else {\n // This was not a directory, so lets just copy the file\n FileInputStream fin = null;\n FileOutputStream fout = null;\n byte[] buffer = new byte[4096]; // Buffer 4K at a time (you can change this).\n int bytesRead;\n try {\n // open the files for input and output\n fin = new FileInputStream(src);\n fout = new FileOutputStream(dest);\n // while bytesRead indicates a successful read, lets write...\n while ((bytesRead = fin.read(buffer)) >= 0) {\n fout.write(buffer, 0, bytesRead);\n }\n } catch (IOException e) { // Error copying file...\n IOException wrapper = new IOException(NLS.bind(Messages.PickWorkspaceDialog_UnableToCopyMsg,src.getAbsolutePath(),dest.getAbsolutePath()));\n wrapper.initCause(e);\n wrapper.setStackTrace(e.getStackTrace());\n throw wrapper;\n } finally { // Ensure that the files are closed (if they were open).\n if (fin != null) {\n fin.close();\n }\n if (fout != null) {\n \tfout.close();\n }\n }\n }\n }", "title": "" }, { "docid": "873e0e73b347c15b80d76a45c103135e", "score": "0.6615723", "text": "public void fileMoveCopy(String filename, String sourceDIR, String destDIR, String mask);", "title": "" }, { "docid": "7870d6334e6ed58b5ad02039726114ca", "score": "0.65698475", "text": "public void copy(File sourceLocation, File targetLocation) throws IOException {\n if (sourceLocation.isDirectory()) {\n copyDirectory(sourceLocation, targetLocation);\n } else {\n copyFile(sourceLocation, targetLocation);\n }\n }", "title": "" }, { "docid": "28b674b93fdf15c65c30df1c519afddc", "score": "0.6521186", "text": "public void copyDirectory(File srcDir, File dstDir) throws IOException {\n if (srcDir.isDirectory()) {\n if (!dstDir.exists()) {\n dstDir.mkdir();\n }\n String[] children = srcDir.list();\n for (int i = 0; i < children.length; i++) {\n copyDirectory(new File(srcDir, children[i]),\n new File(dstDir, children[i]));\n }\n }\n else {\n copy(srcDir, dstDir);\n }\n }", "title": "" }, { "docid": "199314392c12177c35833f15c27f9c6f", "score": "0.65078557", "text": "public static void copyFolder(Path src, Path dest) throws IOException {\r\n Files.walk(src).forEach(source -> copy(source, dest.resolve(src.relativize(source))));\r\n }", "title": "" }, { "docid": "2833514fe358f24972eb2f720ba21d96", "score": "0.6506271", "text": "private void copyAssetsDirToApplicationDirectory(String sourceDir, File destDir) throws FileNotFoundException, IOException\n {\n java.io.InputStream stream = null;\n java.io.OutputStream output = null;\n\n for(String fileName : this.getAssets().list(sourceDir))\n {\n stream = this.getAssets().open(sourceDir+File.separator + fileName);\n String dest = destDir+ File.separator + sourceDir + File.separator + fileName;\n File fdest = new File(dest);\n if (fdest.exists()) continue;\n\n File fpdestDir = new File(fdest.getParent());\n if ( !fpdestDir.exists() ) fpdestDir.mkdirs();\n\n output = new BufferedOutputStream(new FileOutputStream(dest));\n\n byte data[] = new byte[1024];\n int count;\n\n while((count = stream.read(data)) != -1)\n {\n output.write(data, 0, count);\n }\n\n output.flush();\n output.close();\n stream.close();\n\n stream = null;\n output = null;\n }\n }", "title": "" }, { "docid": "802ddc06382559e16320ca7b5e5b82d4", "score": "0.6469791", "text": "void copyDir(ProjectFilesystem filesystem, Path srcDir, Path destDir, Predicate<Path> pred)\n throws IOException;", "title": "" }, { "docid": "243d99644175cb2e7d96701d19b69458", "score": "0.63972753", "text": "public static void copy(File source, File destination) {\n try {\n FileInputStream fileInputStream = new FileInputStream(source);\n FileOutputStream fileOutputStream = new FileOutputStream(\n destination);\n\n FileChannel inputChannel = fileInputStream.getChannel();\n FileChannel outputChannel = fileOutputStream.getChannel();\n\n transfer(inputChannel, outputChannel, source.length(), 33554432L, true, true);\n\n fileInputStream.close();\n fileOutputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ce714eb820ee318ab47e282c95ea1d70", "score": "0.63552517", "text": "public static void copyFiles (File source, File destination) throws IOException\r\n {\r\n copyStreams (new FileInputStream (source), new FileOutputStream (destination));\r\n }", "title": "" }, { "docid": "e13e402bdc614fc244a320ed7184f427", "score": "0.6307608", "text": "private void copyFile(File source, File target) throws IOException {\n try (\n InputStream in = new FileInputStream(source);\n OutputStream out = new FileOutputStream(target)) {\n byte[] buf = new byte[1024];\n int length;\n while ((length = in.read(buf)) > 0) {\n out.write(buf, 0, length);\n }\n }\n }", "title": "" }, { "docid": "f4e8fd4fdc8744489f52b377966e5d37", "score": "0.6284113", "text": "private void copyAsset(String source, String destination)\n\t\t\tthrows IOException {\n\t\tFile destinationFile = new File(destination);\n\t\tif (destinationFile.exists())\n\t\t\treturn;\n\n\t\tFile parentDirectory = destinationFile.getParentFile();\n\t\tif (!parentDirectory.exists())\n\t\t\tparentDirectory.mkdirs();\n\n\t\tdestinationFile.createNewFile();\n\n\t\tAssetManager assetsManager = getAssets();\n\t\tInputStream inputStream = assetsManager.open(source);\n\t\tOutputStream outputStream = new FileOutputStream(destinationFile);\n\t\tcopyFile(inputStream, outputStream);\n\t}", "title": "" }, { "docid": "356d95c476ac3b3a5fb612e412fb05db", "score": "0.6259584", "text": "public Resource copy(CmsPath source, CmsPath destination, boolean overwrite);", "title": "" }, { "docid": "41fac7285b703061d15c8c2e63eabd51", "score": "0.6239412", "text": "public static void copy(File source, File destination) throws IOException {\n copy(source, destination, true);\n }", "title": "" }, { "docid": "3b307b044fd2ee44e075c319e5f9dd02", "score": "0.62307554", "text": "private void copyFile(File source, File target) throws IOException { \r\n\t try (\r\n\t InputStream in = new FileInputStream(source);\r\n\t OutputStream out = new FileOutputStream(target)\r\n\t ) {\r\n\t byte[] buf = new byte[1024];\r\n\t int length;\r\n\t while ((length = in.read(buf)) > 0) {\r\n\t out.write(buf, 0, length);\r\n\t }\r\n\t }\r\n\t}", "title": "" }, { "docid": "c7750f282b1833fb643a0403bf255a11", "score": "0.62037575", "text": "public static void copyDirectory(File fromFile, File toFile) throws IOException {\n if (fromFile.isDirectory()) {\n if (!toFile.exists()) {\n toFile.mkdir();\n }\n String files[] = fromFile.list();\n for (String file : files) {\n File srcFile = new File(fromFile, file);\n File destFile = new File(toFile, file);\n copyDirectory(srcFile, destFile);\n }\n } else {\n OutputStream out;\n InputStream in = new FileInputStream(fromFile);\n out = new FileOutputStream(toFile);\n byte[] buffer = new byte[1024];\n int length;\n while ((length = in.read(buffer)) > 0) {\n out.write(buffer, 0, length);\n }\n out.close();\n }\n }", "title": "" }, { "docid": "35e6891aa9bdd0a65d06dddf57665d5b", "score": "0.619051", "text": "private void checkAndCopy(String directory, File source) {\n File file = new File(Environment.getExternalStorageDirectory(), directory);\n boolean dirExists = file.exists();\n if (!dirExists)\n dirExists = file.mkdirs();\n if (dirExists) {\n try {\n file = new File(Environment.getExternalStorageDirectory() + directory, Uri.fromFile(source).getLastPathSegment());\n boolean fileExists = file.exists();\n if (!fileExists)\n fileExists = file.createNewFile();\n if (fileExists && file.length() == 0) {\n FileUtils.copyFile(source, file);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "29bc57576dfdb30138abf0891d20ca97", "score": "0.61723006", "text": "@Override\n public void fileMoveCopy(String filename, String sourceDIR, String destDIR, String mask) {\n String deviceSourcePath = Config.getWorkingDirectory(sourceDIR, this);\n String deviceDestPath = Config.getWorkingDirectory(destDIR, this);\n if(FileHandler.fileExistsInDirectory(deviceDestPath, filename)) {\n ToastMessages.shortToast(\"File exists in directory, cannot copy.\", 16, this);\n } else {\n if(mask.equalsIgnoreCase(Config.FILE_MOVE)) {\n FileHandler.moveFile(filename, deviceSourcePath, deviceDestPath);\n } else if (mask.equalsIgnoreCase(Config.FILE_COPY)){\n FileHandler.copyFile(filename, deviceSourcePath, deviceDestPath);\n }\n if(destDIR.equalsIgnoreCase(\"Camera\")) destDIR = username + \"/\" + destDIR;\n if(sourceDIR.equalsIgnoreCase(\"Camera\")) sourceDIR = username + \"/\" + sourceDIR;\n FileMoveCopyTask fmt = new FileMoveCopyTask(this);\n fmt.execute(filename, sourceDIR, destDIR, mask);\n }\n }", "title": "" }, { "docid": "2bee49f6898a7e2ec6643dd03167d7b1", "score": "0.61221355", "text": "public void copy(URI dest) throws GATInvocationException {\n // determinate dest is a directory, and pass the filename if it is,\n // otherwise it will fail\n if (determineIsDirectory()) {\n String destStr = null;\n if (!dest.toString().endsWith(\"/\")) {\n destStr = dest.toString() + \"/\";\n try {\n dest = new URI(destStr);\n } catch (URISyntaxException e) {\n throw new GATInvocationException(\n \"GT4LocalFileAdaptor: copy, \" + e);\n }\n }\n }\n\n File destinationFile = null;\n try {\n destinationFile = GAT.createFile(gatContext, dest);\n } catch (GATObjectCreationException e) {\n // throw new GATInvocationException(\"GT4FileAdaptor: copy, \" + e);\n // give a try anyway\n destinationFile = null;\n }\n\n // fix the filename, if the destination is a directory\n if (destinationFile != null) {\n try {\n if (destinationFile.isDirectory()) {\n String destStr;\n if (dest.toString().endsWith(\"/\")) {\n destStr = dest.toString() + getName();\n } else {\n destStr = dest.toString() + \"/\" + getName();\n }\n try {\n dest = new URI(destStr);\n } catch (URISyntaxException e) {\n throw new GATInvocationException(\n \"GT4LocalFileAdaptor: copy, \" + e);\n }\n }\n } catch (GATInvocationException e) {\n // leave everything as it is\n }\n }\n\n if (determineIsDirectory()) {\n copyDirectory(gatContext, null, toURI(), dest);\n return;\n }\n if (dest.isLocal()) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"GT4LocalFileAdaptor: copy remote to local\");\n }\n copyToLocal(dest);\n return;\n }\n // I do not handle the case, when the source is local\n if (dest.getScheme().equalsIgnoreCase(\"any\")) {\n for (int i = 0; i < providers.length; i++) {\n try {\n copyThirdParty(dest, providers[i]);\n return;\n } catch (Exception e) {\n }\n }\n } else {\n copyThirdParty(dest, dest.getScheme());\n return;\n }\n throw new GATInvocationException(\n \"GT4LocalFileAdaptor: thirdparty copy failed.\");\n }", "title": "" }, { "docid": "37ebb85fb7e3d01218b2dd7701920946", "score": "0.59949857", "text": "public static void copy(Path source, Path dest) {\r\n try {\r\n Files.copy(source, dest, StandardCopyOption.REPLACE_EXISTING);\r\n } catch (Exception e) {\r\n throw new RuntimeException(e.getMessage(), e);\r\n }\r\n }", "title": "" }, { "docid": "0581f0b407ef36411534437247f98cc4", "score": "0.5987901", "text": "public static void copy(Path src, Path dest) throws IOException {\n Files.copy(src, dest);\n }", "title": "" }, { "docid": "f4aabd8a8ce5aa0cae6832416829adc8", "score": "0.5964728", "text": "private void copyFile(File srcFile, File destFile) throws IOException\n {\n // ensure if distination is a dir that copy with the same name\n if (destFile.isDirectory())\n {\n destFile = new File(destFile, srcFile.getName());\n }\n if (srcFile.equals(destFile))\n return;\n /*\n * // ensure that parent dir of dest file exists! // not using\n * getParentFile method to stay 1.1 compat File parent = new\n * File(destFile.getParent()); if (!parent.exists()) { parent.mkdirs(); }\n */\n FileInputStream in = new FileInputStream(srcFile);\n FileOutputStream out = new FileOutputStream(destFile);\n\n byte[] buffer = new byte[8 * 1024];\n int count = 0;\n\n do\n {\n // first iteration does write nothing.\n out.write(buffer, 0, count);\n count = in.read(buffer, 0, buffer.length);\n } while (count != -1);\n\n in.close();\n out.close();\n }", "title": "" }, { "docid": "b893cbe700a32064357193d4bf445497", "score": "0.5934511", "text": "protected static void copyFile(File source, File destination) throws IOException {\n FileUtils.copyFile(source, destination);\n }", "title": "" }, { "docid": "0b768f35bcd94b865073609ab3215f5b", "score": "0.5924568", "text": "public static void recursiveCopy(File sourceDir, File destDir) throws IOException {\n for (File childFile : sourceDir.listFiles()) {\n File destChild = new File(destDir, childFile.getName());\n if (childFile.isDirectory()) {\n if (!destChild.mkdir()) {\n throw new IOException(String.format(\"Could not create directory %s\",\n destChild.getAbsolutePath()));\n }\n recursiveCopy(childFile, destChild);\n } else if (childFile.isFile()) {\n copyFile(childFile, destChild);\n }\n }\n }", "title": "" }, { "docid": "1918499c8200055fb879e9c633effb89", "score": "0.591869", "text": "@Override\n\t\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\t\tCopyOption[] options = new CopyOption[0];\n\t\t\tPath newdir = target.resolve(source.relativize(dir));\n\t\t\ttry {\n\t\t\t\tFiles.copy(dir, newdir, options);\n\t\t\t} catch (FileAlreadyExistsException x) {\n\t\t\t\t// ignore\n\t\t\t} catch (IOException x) {\n\t\t\t\tSystem.err.format(\"Unable to create: %s: %s%n\", newdir, x);\n\t\t\t\treturn SKIP_SUBTREE;\n\t\t\t}\n\t\t\treturn CONTINUE;\n\t\t}", "title": "" }, { "docid": "23e7e6e24a0bfbfdf10a9a07a8cd6b09", "score": "0.5913659", "text": "public void testCopyFile() throws Exception {\n \n File source = File.createTempFile(\"mainOne\",null,mTmpDir);\n File dest = File.createTempFile(\"copiedOne\",null,mTmpDir);\n \n boolean expResult = true;\n boolean result = com.sun.jbi.engine.iep.core.runtime.util.DirectoryUtil.copyFile(source, dest);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "37a70cd5e046a80c7af3fd48c5758261", "score": "0.5904014", "text": "private void copyFile( File from, File to ) throws IOException {\r\n\t Files.copy( from.toPath(), to.toPath() );\r\n\t System.out.println(\"File copiato!\");\r\n\t}", "title": "" }, { "docid": "dc9106f2c59509aa0952e61e78561144", "score": "0.58714557", "text": "public static void sequenceFileCopy(File source, File destination) throws IOException {\n\t\t//check inputs\n\t\tassert source != null;\n\t\tassert destination != null;\n\t\t\n\t\tFileSystem fs;\n\t\tif (source.exists() && source.isFile()) {\n\t\t\tConfiguration conf = new Configuration();\n\t\t\tfs = FileSystem.getLocal(conf);\n\t\t\tfs.copyFromLocalFile(false, true, new Path( source.getAbsolutePath()), new Path( destination.getAbsolutePath()));\n\t\t\tif (destination.exists() && destination.isFile()) {\n\t\t\t\tlogger.log(Level.INFO, \"Copied file: {0} to file: {1}\", \n\t\t\t\t\t\tnew Object[]{source.getAbsolutePath(), destination.getAbsolutePath()});\n\t\t\t} else {\n\t\t\t\t// we have an invalid source file\n\t\t\t\tlogger.log(Level.WARNING, \"Invalid source file...cannot copy file: {0}\", new Object[]{source.getAbsolutePath()});\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "537ab529b56b896f86664b54787f4a48", "score": "0.5867292", "text": "void copy(Path filePath, Path destinationPath) throws FileSystemException;", "title": "" }, { "docid": "b034712c4647823d0f5c74076fe3c514", "score": "0.58624613", "text": "public static void copy(String source, String target, String mode) throws ServiceException {\n\t copy(tundra.support.file.construct(source), tundra.support.file.construct(target), mode);\n\t}", "title": "" }, { "docid": "3224aeffc044cb5d1221a638f67932de", "score": "0.5848134", "text": "public void actionPerformed(ActionEvent e) {\n final JFMFile[] filesSrc = Options.getActivePanel().getSelectedFiles();\n if (filesSrc == null || filesSrc.length == 0)\n return;\n\n @SuppressWarnings(\"unused\")\n\tfinal JFMFile dirSrc = Options.getActivePanel().getCurrentWorkingDirectory();\n final JFMFile dirDst = Options.getInactivePanel().getCurrentWorkingDirectory();\n\n String fsNameSrc = Options.getActivePanel().getFsName();\n String fsNameDst = Options.getInactivePanel().getFsName();\n\n String title = \"Copy\"; \n //if (isMoveOperation()) title = \"Move\"; \n //title = title + \" from \" + fsNameSrc + \" to \" + fsNameDst; \n\n if (isMoveOperation())\n \ttitle = Strings.format(\"Move from %1$s to %2$s\", fsNameSrc, fsNameDst);\n else\n \ttitle = Strings.format(\"Copy from %1$s to %2$s\", fsNameSrc, fsNameDst);\n \n CopyConfirmDialog d = new CopyConfirmDialog(Options.getMainFrame(),title,true);\n if (isMoveOperation()) d.setOperation(ProgressActionDialog.MOVE); \n d.setLocationRelativeTo(Options.getMainFrame());\n d.setCopyFrom(filesSrc);\n d.setCopyTo(dirDst);\n d.setVisible(true);\n if(d.isCancelled()) return;\n\n progress = new ProgressActionDialog(Options.getMainFrame(),title,true);\n progress.setLocationRelativeTo(Options.getMainFrame());\n if (isMoveOperation()) progress.setOperation(ProgressActionDialog.MOVE); \n\n resetAll(); \n\n progress.startAction(new ActionExecuter() {\n public void start() {\n try {\n copyFiles(filesSrc, dirDst);\n } catch (ActionCancelledException ex) {\n this.cancel();\n } catch (IOException e) {\n this.cancel();\n Options.showMessage(e); \n }\n\n ChangeDirectoryEvent ev=new ChangeDirectoryEvent();\n ev.setSource(CopyAction.this);\n ev.setDirectory(dirDst);\n Broadcaster.notifyChangeDirectoryListeners(ev);\n }\n\n public void cancel() {\n cancel = true;\n }\n });\n }", "title": "" }, { "docid": "870c5d152782575b8d1edd84fd564fb6", "score": "0.58423245", "text": "protected void copy(String targetDir, FileList files, String baseDir) {\n File target = new File(targetDir);\n File base = new File(baseDir);\n println(\"Copying \" + files.size() + \" files to \" + target.getPath());\n String basePath = base.getPath();\n for (File f : files) {\n File t = new File(target, removeBase(basePath, f.getPath()));\n byte[] data = readFile(f);\n mkdirs(t.getParentFile());\n writeFile(t, data);\n }\n }", "title": "" }, { "docid": "6ea7863a61c9c53886733ccad2e9fccc", "score": "0.58417046", "text": "public static final boolean copyDirectory(File source, File target,\r\n String saveSuffix) {\r\n // source must be a directory\r\n if(!source.isDirectory() || (target.exists() && !target.isDirectory())) {\r\n return false;\r\n }\r\n\r\n // if source and target are the same, we're done\r\n if(getPath(source).equals(getPath(target))) {\r\n return false;\r\n }\r\n\r\n // if the target doesn't exist yet, create it\r\n if(!target.exists()) {\r\n target.mkdirs();\r\n }\r\n\r\n boolean result = true;\r\n\r\n String[] list = source.list();\r\n for(int i = 0; i < list.length; i++) {\r\n File srcFile = new File(source, list[i]);\r\n File tgtFile = new File(target, list[i]);\r\n\r\n if(srcFile.isDirectory()) {\r\n result |= copyDirectory(srcFile, tgtFile, saveSuffix);\r\n } else {\r\n result |= copyFile(srcFile, tgtFile, saveSuffix);\r\n }\r\n }\r\n\r\n // if source was read-only, the target should be as well\r\n if(!source.canWrite()) {\r\n target.setReadOnly();\r\n }\r\n\r\n // sync up last-modified time\r\n target.setLastModified(source.lastModified());\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "283c3886753efac4307783b7e8d63737", "score": "0.5827655", "text": "public static void copyDir(Plugin plugin, String src) {\n copyDir(plugin, src, false);\n }", "title": "" }, { "docid": "721c5b36839d5302593826f68e03fd19", "score": "0.58161", "text": "protected void copy(File src, File dest) throws IOException {\n FileInputStream is = null;\n FileOutputStream os = null;\n try {\n is = new FileInputStream(src);\n os = new FileOutputStream(dest);\n byte buf[] = new byte[1024];\n int i;\n while ((i = is.read(buf)) != -1)\n os.write(buf, 0, i);\n os.flush();\n } catch (IOException e) {\n System.err.println(\"Unable to copy \" + src.getPath() + \" to \" + dest.getPath() + \": \" + e.getMessage());\n dest.delete();\n } finally {\n if (is != null)\n try {\n is.close();\n } catch (IOException e) { /* ignore */\n }\n if (os != null)\n try {\n os.close();\n } catch (IOException e) { /* ignore */\n }\n }\n }", "title": "" }, { "docid": "a9d3a05ca9400aba78a798efe2e90bdb", "score": "0.57961565", "text": "public static void copyFile(String source, String destination) {\n\t\tInputStream inputStream = null;\n\t\tOutputStream outputStream = null;\n\t\ttry {\n\t\t\tFile sourceFile = new File(source);\n\t\t\tFile destinationFile = new File(destination);\n\t\t\tinputStream = new FileInputStream(sourceFile);\n\n\t\t\toutputStream = new FileOutputStream(destinationFile);\n\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tint length;\n\n\t\t\twhile ((length = inputStream.read(buffer)) > 0){\n\t\t\t\toutputStream.write(buffer, 0, length);\n\t\t\t}\n\t\t\toutputStream.flush();\n\n\t\t} catch(FileNotFoundException fnfex){\n\t\t\tSystem.out.println(\"File not found, message was: \" + fnfex.getMessage());\n\t\t} catch(IOException ioex){\n\t\t\tSystem.out.println(\"IO Exception, message was: \" + ioex.getMessage());\n\t\t} finally {\n\t\t\tif(null != inputStream) {\n\t\t\t\ttry {\n\t\t\t\t\tinputStream.close();\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif(null != outputStream) {\n\t\t\t\t\toutputStream.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ignored) {\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5734d6066ca96353e4c1ab38b09eb852", "score": "0.57931364", "text": "private synchronized void copyFile( InputStream from, File to ) throws IOException {\r\n\t Files.copy( from, to.toPath() );\r\n\t}", "title": "" }, { "docid": "7724b7e277d0586e60e804dd8efe6ee8", "score": "0.57836264", "text": "public void copy(int srcPos, int destPos, int length);", "title": "" }, { "docid": "fcafe866533a9f009c766d9230bbcd55", "score": "0.57499206", "text": "private void copiarArquivo(File source, File destination) throws IOException {\n if (destination.exists()) {\n destination.delete();\n }\n FileChannel sourceChannel = null;\n FileChannel destinationChannel = null;\n try {\n sourceChannel = new FileInputStream(source).getChannel();\n destinationChannel = new FileOutputStream(destination).getChannel();\n sourceChannel.transferTo(0, sourceChannel.size(),\n destinationChannel);\n } finally {\n if (sourceChannel != null && sourceChannel.isOpen()) {\n sourceChannel.close();\n }\n if (destinationChannel != null && destinationChannel.isOpen()) {\n destinationChannel.close();\n }\n }\n }", "title": "" }, { "docid": "8eaff40b1f5a21d5c0cfc5774d6f2783", "score": "0.5748452", "text": "public void\n copy(URL[] source, URL destination) throws IOException, ProtocolException\n {\n copy(source, destination, null, false);\n }", "title": "" }, { "docid": "c62af04fb66fea587fb3c1854a6786bd", "score": "0.5716357", "text": "@Override public void copyFile(String sourceFile, String destinationFile) throws IOException {\n copyFile(sourceFile, destinationFile, true);\n }", "title": "" }, { "docid": "93f3be06ec8e0704c676c779c267d66f", "score": "0.5698742", "text": "public void copy(File src, File dst) throws IOException {\n FileInputStream inStream = new FileInputStream(src);\n FileOutputStream outStream = new FileOutputStream(dst);\n FileChannel inChannel = inStream.getChannel();\n FileChannel outChannel = outStream.getChannel();\n inChannel.transferTo(0, inChannel.size(), outChannel);\n inStream.close();\n outStream.close();\n }", "title": "" }, { "docid": "f3c9fe5b9c555a543e5363328184b866", "score": "0.5692126", "text": "private boolean copyFile(File source, File dest) {\r\n\t\t\tInputStream input = null;\r\n\t\t\tOutputStream output = null;\r\n\t\t\ttry {\r\n\t\t\t\tinput = new FileInputStream(source);\r\n\t\t\t\toutput = new FileOutputStream(dest);\r\n\t\t\t\tbyte[] buf = new byte[1024];\r\n\t\t\t\tint bytesRead;\r\n\t\t\t\twhile ((bytesRead = input.read(buf)) > 0) {\r\n\t\t\t\t\toutput.write(buf, 0, bytesRead);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tinput.close();\r\n\t\t\t\toutput.close();\r\n\t\t\t} \r\n\t\t\tcatch(IOException e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\treturn true;\r\n\t\t}", "title": "" }, { "docid": "2afdc0af460740fb3a9221ce530f7839", "score": "0.5687083", "text": "static void copy(String path, Path p, Path dest) throws Exception {\n Files.walkFileTree(Paths.get(path), new HashSet<>(), 2, new FileVisitor<Path>() {\n Path desti = dest;\n\n @Override\n public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n System.out.println(\"preVisitDirectory: \" + dir + \"\\n\" + p);\n\n if (!dir.equals(p)) {\n desti = desti.resolve(dir.getFileName());\n Files.copy(dir, desti);\n System.out.println(\"write: \" + desti);\n\n System.out.println(\"write: \" + desti);\n } else {\n Files.copy(dir, desti);\n }\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n System.out.println(\"visitFile: \" + file);\n desti = desti.resolve(file.getFileName());\n Files.copy(file, desti);\n System.out.println(\"write: \" + desti);\n // int index = desti.getNameCount();\n desti = desti.getParent();\n System.out.println(\"write: \" + desti);\n\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n System.out.println(\"visitFileFailed: \" + file);\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n System.out.println(\"postVisitDirectory: \" + dir);\n // Files.copy(in, target, options)\n // int index = desti.getNameCount();\n desti = desti.getParent();\n return FileVisitResult.CONTINUE;\n }\n });\n }", "title": "" }, { "docid": "639fef245e54980731c24073a69710ba", "score": "0.56854624", "text": "public static void copyFile(File from, File to) throws IOException {\n\t\tif (from.isDirectory()) {\n\t\t\tif (!to.exists()) {\n\t\t\t\tto.mkdir();\n\t\t\t}\n\t\t\tFile[] children = from.listFiles();\n\t\t\tfor (int i = 0; i < children.length; i++) {\n\t\t\t\tif (children[i].getName().equals(\".\") || children[i].getName().equals(\"..\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (children[i].isDirectory()) {\n\t\t\t\t\tFile f = new File(to, children[i].getName());\n\t\t\t\t\tcopyFile(children[i], f);\n\t\t\t\t} else {\n\t\t\t\t\tcopyFile(children[i], to);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (from.isFile() && (to.isDirectory() || to.isFile())) {\n\t\t\tif (to.isDirectory()) {\n\t\t\t\tto = new File(to, from.getName());\n\t\t\t}\n\t\t\tFileInputStream in = new FileInputStream(from);\n\t\t\tFileOutputStream out = new FileOutputStream(to);\n\t\t\tbyte[] buf = new byte[32678];\n\t\t\tint read;\n\t\t\twhile ((read = in.read(buf)) > -1) {\n\t\t\t\tout.write(buf, 0, read);\n\t\t\t}\n\t\t\tcloseStream(in);\n\t\t\tcloseStream(out);\n\t\t}\n\t}", "title": "" }, { "docid": "9ca04fdc923e9bd8539bb79f1f22d4d1", "score": "0.564996", "text": "public final boolean copy() {\r\n\r\n\tif (sourceFile == null || targetFile == null) {\r\n\t return false;\r\n\t}\r\n\r\n\ttry {\r\n\t targetFile.getParentFile().mkdirs();\r\n\t InputStream in = new FileInputStream(sourceFile);\r\n\t OutputStream out = new FileOutputStream(targetFile);\r\n\r\n\t byte[] c = new byte[BUFFERSIZE];\r\n\t int len = 0;\r\n\t while ((len = in.read(c)) != -1) {\r\n\t\tout.write(c, 0, len);\r\n\t }\r\n\t in.close();\r\n\t out.close();\r\n\t logger.debug(sourceFile.getAbsolutePath() + \" nach \" + targetFile.getAbsolutePath() + \" kopiert\");\r\n\t} catch (IOException e) {\r\n\t logger.debug(\"Fehler beim Kopieren: \" + e.getMessage());\r\n\t return false;\r\n\t}\r\n\treturn true;\r\n }", "title": "" }, { "docid": "e25d42c201293edfb1232c871a11f008", "score": "0.5645432", "text": "public static void copyDirectory(final Path src, final Path destDir, boolean overwriteExisting) throws IOException{\r\n\t\tArrayList<CopyOption> copyOptions = new ArrayList<>();\r\n\t\tif(overwriteExisting){\r\n\t\t\tcopyOptions.add(StandardCopyOption.REPLACE_EXISTING);\r\n\t\t}\r\n\t\tcopyOptions.add(StandardCopyOption.COPY_ATTRIBUTES);\r\n\t\t\r\n\t\tFiles.walkFileTree(src, new FileVisitor<Path>(){\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\r\n\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\r\n\t\t\t\t\tfinal Path newFile = destDir.resolve(file.startsWith(src) ? src.relativize(file) : file);\r\n\t\t\t\t\tfinal Path dir = Files.isDirectory(file) ? file : file.getParent();\r\n\t\t\t\t\tfinal Path newDir = Files.isDirectory(file) ? newFile : newFile.getParent();\r\n\t\t\t\t\tif(Files.notExists(newDir)){\r\n\t\t\t\t\t\tFiles.createDirectories(newDir);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tFiles.copy(file, newFile, copyOptions.toArray(new CopyOption[0]));\r\n\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\r\n\t\t\t\t\tLogger.getLogger(FileHelper.class.getName()).log(Level.WARNING, \"Failed to copy file \".concat(file.toString()),exc);\r\n\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\r\n\t\t\t\t\tif(exc != null){\r\n\t\t\t\t\t\tLogger.getLogger(FileHelper.class.getName()).log(Level.WARNING, \"Failed to copy directory \".concat(dir.toString()),exc);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}", "title": "" }, { "docid": "514ef6b884806f37507844d141658a24", "score": "0.56398296", "text": "public static void copy(File dest, File src) throws IOException {\n FileInputStream is = new FileInputStream(src);\n try {\n copy(dest, is);\n } finally {\n is.close();\n }\n }", "title": "" }, { "docid": "e0d465d6b5fc8f566622322977bc9483", "score": "0.5624837", "text": "public void copyInto(File source, File targetDir, final VariableResolver resolver) throws IOException{\n FileUtil.copyInto(source, targetDir, new FileUtil.FileCreator(){\n @Override\n public void createFile(File sourceFile, File targetFile) throws IOException{\n replace(new FileReader(sourceFile), new FileWriter(targetFile), resolver);\n }\n\n @Override\n public String translate(String name){\n return replace(name, resolver);\n }\n });\n }", "title": "" }, { "docid": "414bbfe362c25dc9ee1e3578ffee5584", "score": "0.5623645", "text": "protected synchronized void copyFile(File src, File dst) throws IOException\n {\n InputStream is = new FileInputStream(src);\n OutputStream os = new FileOutputStream(dst);\n \n byte[] buffer = new byte[1024];\n int length;\n while ((length = is.read(buffer)) > 0)\n {\n os.write(buffer, 0, length);\n }\n is.close();\n os.close(); \n }", "title": "" }, { "docid": "5e1e367d9e42b4aac3e6f26167e8c285", "score": "0.56092656", "text": "private static void copyFile(File src, File dest) throws IOException {\n InputStream in = new FileInputStream(src);\n OutputStream out = new FileOutputStream(dest); \n \n byte[] buffer = new byte[1024];\n \n int length;\n //copy the file content in bytes \n while ((length = in.read(buffer)) > 0){\n out.write(buffer, 0, length);\n }\n\n in.close();\n out.close();\n System.out.println(\"File copied from \" + src + \" to \" + dest); \n }", "title": "" }, { "docid": "4a8b8d0968170f4652726a336e71938a", "score": "0.56088793", "text": "public static void copy(java.io.File source, java.io.File target, String mode) throws ServiceException {\n\t if (source != null && target != null) {\n\t try {\n\t java.io.InputStream input = new java.io.FileInputStream(source);\n\t java.io.OutputStream output = new java.io.FileOutputStream(target, mode == null || mode.equals(\"append\"));\n\t\n\t tundra.stream.copy(input, output);\n\t } catch (java.io.IOException ex) {\n\t tundra.exception.raise(ex);\n\t }\n\t }\n\t}", "title": "" }, { "docid": "ec9da5c90c5b98bf5601d20710787b0c", "score": "0.56007874", "text": "private static String copyFileOperation(\n final File source,\n final File target) {\n /* buffered input stream for reading */\n BufferedInputStream bis = null;\n\n /* buffered output stream for writing */\n BufferedOutputStream bos = null;\n\n try {\n /* error message(s), if any */\n final List<String> errors = new ArrayList<>();\n\n try {\n bis = new BufferedInputStream(new FileInputStream(source));\n } catch (FileNotFoundException e) {\n return \"Failed to open source file for reading (\" + e.getMessage() + \")\";\n }\n\n /* parent directory of the target file */\n final File targetParentDir = target.getParentFile();\n\n /* create parent directory of target file, if necessary */\n if (!targetParentDir.exists()) {\n targetParentDir.mkdirs();\n }\n\n if (!targetParentDir.isDirectory()) {\n return \"Failed to create parent directory of target file\";\n }\n\n try {\n bos = new BufferedOutputStream(new FileOutputStream(target));\n } catch (FileNotFoundException e) {\n return \"Failed to open target file for writing (\" + e.getMessage() + \")\";\n }\n\n /* byte buffer */\n final byte byteBuffer[] = new byte[SyncIO.BUFFER_SIZE];\n\n try {\n /* copy bytes from the source file to the target file */\n while (true) {\n final int byteCount = bis.read(byteBuffer, 0, SyncIO.BUFFER_SIZE);\n\n if (byteCount == -1) {\n break; /* reached EOF */\n\n }\n\n bos.write(byteBuffer, 0, byteCount);\n }\n } catch (IOException e) {\n return \"Failed to copy data from source file to target file (\" + e.getMessage() + \")\";\n }\n\n try {\n bis.close();\n bis = null;\n } catch (IOException e) {\n errors.add(\"Failed to close source file after reading (\" + e.getMessage() + \")\");\n }\n\n try {\n bos.close();\n bos = null;\n } catch (IOException e) {\n errors.add(\"Failed to close target file after writing (\" + e.getMessage() + \")\");\n }\n\n final boolean success = target.setLastModified(source.lastModified());\n\n if (!success) {\n errors.add(\"Failed to set last-modified time of target file after writing\");\n }\n\n if (!errors.isEmpty()) {\n /* return concatenated error message */\n final StringBuilder t = new StringBuilder();\n for (String s : errors) {\n t.append(s);\n t.append(\"; \");\n }\n t.delete(t.length() - 2, t.length());\n\n return t.toString();\n }\n\n return null; // success\n } finally {\n /* close buffered input stream for reading */\n if (bis != null) {\n try {\n bis.close();\n } catch (IOException e) {\n /* ignore */\n }\n }\n\n /* close buffered output stream for writing */\n if (bos != null) {\n try {\n bos.close();\n } catch (IOException e) {\n /* ignore */\n }\n }\n }\n }", "title": "" }, { "docid": "4d047d71bf5fa6ed3eab287bbba52af7", "score": "0.556727", "text": "@Test\n public void testDirectorytoSelf() {\n\n String[] cmdArgs = {\"cp\", \"/ValidParentDir/ValidChildDir\",\n \"/ValidParentDir/ValidChildDir\"};\n String actual = copy.exec(cmdArgs);\n String expected =\n \"Operation failed: Directory cannot be copied as a subdirectory to\"\n + \"itself\\n\";\n\n assertEquals(expected, actual);\n\n }", "title": "" }, { "docid": "5baac0be384129cd424cc8181e63072e", "score": "0.55591106", "text": "public void copy(String copyFile, String destinationFile){\n\t\t//Creating InputStream and OutputStream\n\t\tInputStream iStream = null;\n\t\tOutputStream oStream = null;\n\t\ttry{\n\t\t\t//Getting the files\n\t\t\tFile copyFrom = new File(copyFile);\n\t\t\tFile pasteTo = new File(destinationFile);\n\t\t\t\n\t\t\tiStream = new FileInputStream(copyFrom);\n\t\t\toStream = new FileOutputStream(pasteTo);\n\t\t\t\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tint lenght;\n\t\t\t\n\t\t\t//Writing the contents of the file in the another file\n\t\t\twhile((lenght=iStream.read(buffer))>0){\n\t\t\t\toStream.write(buffer, 0, lenght);\n\t\t\t}\n\t\t\t//Closing the stream\n\t\t\tif(iStream!=null){\n\t\t\t\tiStream.close();\n\t\t\t}\n\t\t\tif(oStream!=null){\n\t\t\t\toStream.close();\n\t\t\t}\n\t\t\tSystem.out.println(\"Contents copied to the destination file\");\n\t\t}catch(FileNotFoundException fne){\n\t\t\t//If the file is not accessible or file not in entered path,\n\t\t\t//this exception will be thrown\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"IOException occured\");\n\t\t}\n\t}", "title": "" }, { "docid": "72b08d0b09ecff1737201d98a78cd121", "score": "0.5554387", "text": "void copyDirs(\n ProjectFilesystem filesystem, Map<Path, Path> sourcesToDestinations, Predicate<Path> pred)\n throws IOException;", "title": "" }, { "docid": "da31ab49ad43e7ea739b0aa88342d6bb", "score": "0.5549346", "text": "public static void copy(final URL source, final File destination)\n throws IOException {\n InputStream in = null;\n FileOutputStream out = null;\n\n try {\n destination.getParentFile().mkdirs();\n destination.createNewFile();\n\n in = source.openStream();\n out = new FileOutputStream(destination, false);\n\n byte[] buf = new byte[10000];\n int len;\n while ((len = in.read(buf)) > 0) {\n out.write(buf, 0, len);\n }\n } catch (final IOException ex) {\n Logger.getLogger(Utils.class.getName()).log(Level.SEVERE, null, ex);\n destination.delete();\n\n throw ex;\n } finally {\n try {\n if (in != null) {\n in.close();\n }\n if (out != null) {\n out.close();\n }\n } catch (final IOException ex) {\n Logger.getLogger(Utils.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "title": "" }, { "docid": "f8dc3e25fa595b76794389d9a65b8b0e", "score": "0.55422354", "text": "@RequiresApi(api = Build.VERSION_CODES.O)\n public void copyFiles(File src, File dst) throws IOException{\n FileOutputStream var3 = new FileOutputStream(dst);\n Files.copy(Paths.get(src.getPath()), var3);\n dialogSwite.dismissWithAnimation();\n }", "title": "" }, { "docid": "e6d6b2cd21fcd9e9e49c9a7c3475e4e0", "score": "0.553243", "text": "private void copyFile(File src, File dst) throws FileNotFoundException {\n\t\tFileChannel srcReader = null;\n\t\tFileChannel dstWriter = null;\n\t\tboolean cancelled = false;\n\t\tboolean isDstSameAsSrc = false;\n\t\ttry {\n\t\t\tsrcReader = new FileInputStream(src).getChannel();\n\t\t\tdstWriter = new FileOutputStream(dst).getChannel();\n\t\t\tlong size = srcReader.size();\n\t\t\t// max copying size in windows is 64 Mb\n\t\t\tlong maxSize = (64 * 1024 * 1024);\n\t\t\tlong divisor = 16;\n\t\t\tlong step = size / divisor;\n\t\t\tif (step == 0) {\n\t\t\t\tstep = size;\n\t\t\t}\n\t\t\tif (step >= maxSize) {\n\t\t\t\tdivisor = size / maxSize;\n\t\t\t\tdivisor += 1;\n\t\t\t\tstep = size / divisor;\n\t\t\t}\n\n\t\t\tlong readed = 0;\n\t\t\twhile (readed < size) {\n\t\t\t\tLogExceptionHandler.cancelIfNeed(progressMonitor);\n\t\t\t\treaded += srcReader.transferTo(readed, step, dstWriter);\n\t\t\t}\n\t\t\tif (srcReader.size() == dstWriter.size()) {\n\t\t\t\tisDstSameAsSrc = true;\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLogExceptionHandler.log(e.getMessage());\n\t\t} catch (IOException e) {\n\t\t\tLogExceptionHandler.log(e.getMessage());\n\t\t} catch (CancellationException e) {\n\t\t\tcancelled = true;\n\t\t\tLogExceptionHandler.log(e.getMessage());\n\t\t} finally {\n\n\t\t\tif (srcReader != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsrcReader.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLogExceptionHandler.log(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dstWriter != null) {\n\t\t\t\ttry {\n\t\t\t\t\tdstWriter.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLogExceptionHandler.log(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (cancelled) {\n\t\t\t\tthrow new CancellationException(LogExceptionHandler.CANCELLED);\n\t\t\t} else if (!isDstSameAsSrc) {\n\t\t\t\tthrow new FileNotFoundException(\n\t\t\t\t\t\tMessages\n\t\t\t\t\t\t\t\t.getString(\"TestDropFactory.fileCopyingErrorException\") \n\t\t\t\t\t\t\t\t+ dst.getPath()\n\t\t\t\t\t\t\t\t+ Messages\n\t\t\t\t\t\t\t\t\t\t.getString(\"TestDropFactory.fileCopyingErrorDoesNotExitException\")); \n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "697470c5f1de26f24bbbe434d7e2dc14", "score": "0.55240285", "text": "private String makeCopyDirectory() {\r\n\t\tString date = new Date().toString().replace(\":\", \".\");\r\n\t\tString copyPath = COPY_FOLDER + File.separator + date;\r\n\t\tnew File(copyPath).mkdirs();\r\n\t\t\r\n\t\treturn copyPath;\r\n\t}", "title": "" }, { "docid": "434637f38d9940007e51be0b8a71df64", "score": "0.5523955", "text": "public static void copyDir(Plugin plugin, String src, boolean replace) {\n copyDir(plugin, src, plugin.getDataFolder().toPath().resolve(src), replace);\n }", "title": "" }, { "docid": "6542cb85b77737d4c9550c0f2769f403", "score": "0.549992", "text": "protected void copyToLocal(URI dest) throws GATInvocationException {\n try {\n resource.getFile(location.getPath(), dest.getPath());\n } catch (FileNotFoundException e) {\n throw new GATInvocationException(e.getMessage());\n } catch (GeneralException e) {\n throw new GATInvocationException(e.getMessage());\n }\n if (logger.isInfoEnabled()) {\n logger.info(\"GT4LocalFileAdaptor: copy done.\");\n }\n }", "title": "" }, { "docid": "88b7a9b92a9718f08714c819f7d2c519", "score": "0.5491689", "text": "public static void copy(File source, File destination, boolean overwrite) throws IOException {\n if (destination.exists() && !overwrite) {\n throw new IOException(\n \"Copying file \" + source.getPath() + \" to \" + destination.getPath() + \" failed.\"\n + \" The destination file already exists.\");\n }\n\n mkdirs(destination);\n BufferedInputStream input = null;\n BufferedOutputStream output = null;\n\n try {\n input = new BufferedInputStream(new FileInputStream(source));\n output = new BufferedOutputStream(new FileOutputStream(destination));\n int data = -1;\n while ((data = input.read()) != -1) {\n output.write(data);\n }\n } finally {\n close(input, source);\n close(output, destination);\n }\n }", "title": "" }, { "docid": "bb302f462df9c223a87f0a07d415121e", "score": "0.54884005", "text": "public void transferFiles(String sourcePath, String jobIdentifier) throws IOException {\n\t\t\tFile sourceFolder = new File(sourcePath, jobIdentifier);\n\t\t\t\n\t\t\t//2.Check bit locker path\n\t\t\tString targetDropPath = lockerPath;\n\t\t\tif (StringUtils.isEmpty(targetDropPath)){\n\t\t\t throw new RuntimeException(\"Target path is not specified.\");\n\t\t\t}\n\t\t\t\n \tFile targetFolder = new File(targetDropPath);\n\t\t\tif (!targetFolder.exists()){\n\t\t\t throw new RuntimeException(targetFolder.getAbsolutePath() + \" does not exist\");\n\t\t\t}\n \t\n\t\t\tFile targetDir = new File(targetDropPath, jobIdentifier);\n\t\t\t\n\t\t\t//3. Copy the files to targetFolder.\n\t\t\tcopyFolder(sourceFolder, targetDir);\n \t\n\t\t\t//4. Do clean up.\n\t\t\tsourceFolder.delete();\n\t\t\tsourceFolder.getParentFile().delete();\n }", "title": "" }, { "docid": "4bea92804f9fa50d9b9e5a7846bfa4ed", "score": "0.54799175", "text": "public static void copyDir(Plugin plugin, String src, Path dir) {\n copyDir(plugin, src, dir, false);\n }", "title": "" }, { "docid": "7fd6a75e312c0d34190c9e648ff9556c", "score": "0.5463446", "text": "private void copyFile( final File src, File dst ) throws IOException, IllegalArgumentException\n {\n if (writeRunner.writeError)\n throw new IOException(\"Error occured while copying \" + writeRunner.errorFile);\n\n\n File dstParent = dst.getParentFile();\n\n if (!dstParent.exists())\n {\n if (!dstParent.mkdirs())\n {\n throw new IOException(\"Failed to create directory \" + dstParent.getAbsolutePath());\n }\n }\n\n long fileSize = src.length();\n\n if (fileSize == 0)\n {\n dst.createNewFile();\n return;\n }\n \n\n if (true)\n {\n // for larger files use streams\n FileInputStream in = new FileInputStream(src);\n FileOutputStream out = new FileOutputStream(dst);\n\n long restLen = fileSize;\n try\n {\n while (restLen > 0)\n {\n HandleWriteElem elem = writeRunner.getNextFreeElem();\n int blockSize = elem.data.length;\n\n int readLen = blockSize;\n boolean doClose = false;\n\n if (restLen < blockSize)\n {\n readLen = (int) restLen;\n }\n\n\n int rlen = in.read(elem.data, 0, readLen);\n\n restLen -= rlen;\n if (restLen == 0)\n {\n doClose = true;\n }\n\n copiedSize += rlen;\n\n elem.setVals(out, rlen, doClose, src.getAbsolutePath());\n writeRunner.writeElem(elem);\n }\n }\n catch (IOException iOException)\n {\n Log.err(Main.Txt(\"Fehler beim Kopieren eines Eintrags\"), iOException);\n\n // NORMALLY OS IS CLOSED BY WRITERUNNER\n try\n {\n out.close();\n }\n catch (IOException iOException1)\n {\n }\n }\n finally\n {\n try\n {\n in.close();\n }\n catch (IOException e)\n {\n } \n }\n }\n else\n {\n // smaller files, use channels\n FileInputStream fis = new FileInputStream(src);\n FileOutputStream fos = new FileOutputStream(dst);\n\n FileChannel in = fis.getChannel();\n FileChannel out = fos.getChannel();\n\n copiedSize += fileSize;\n\n try\n {\n long offs = 0, doneCnt = 0, copyCnt = Math.min(BUFFSIZE, fileSize);\n\n do\n {\n doneCnt = in.transferTo(offs, copyCnt, out);\n offs += doneCnt;\n fileSize -= doneCnt;\n }\n while (fileSize > 0);\n }\n finally\n {\n // cleanup\n try\n {\n in.close();\n }\n catch (IOException e)\n {\n }\n\n try\n {\n out.close();\n }\n catch (IOException e)\n {\n }\n\n try\n {\n fis.close();\n }\n catch (IOException e)\n {\n }\n\n try\n {\n fos.close();\n }\n catch (IOException e)\n {\n }\n }\n\n } // else\n\n \n }", "title": "" }, { "docid": "5f1a76bc63d4c62113958c74956ba3cf", "score": "0.54633784", "text": "public static void copy(Path sourcePath, Path targetPath, CopyOption... copyOption) throws IOException {\n ArgumentChecks.ensureNonNull(\"sourcePath\", sourcePath);\n ArgumentChecks.ensureNonNull(\"targetPath\", targetPath);\n\n if (isDirectory(sourcePath)) {\n Files.walkFileTree(sourcePath, new CopyFileVisitor(targetPath, copyOption));\n } else {\n Files.copy(sourcePath, targetPath, copyOption);\n }\n }", "title": "" }, { "docid": "61f05c3fce7ce352a76b4e1edfdeb968", "score": "0.54576546", "text": "public void setDestdir(File dir) {\n this.dest = dir;\n }", "title": "" }, { "docid": "59dae5fc53a541780f9bb4bf0acac7b8", "score": "0.54512835", "text": "static String copyFile(\n final File source,\n final File target) {\n /* copy the specified file? */\n boolean copyFile = false;\n\n /* existing target file (to be overwritten), if any */\n File existingFile = null;\n String existingName = null;\n boolean existingIsDirectory = false;\n\n /* check if a target file/directory already exists */\n if (target.exists()) {\n /* get attributes of the existing file/directory */\n try {\n existingFile = target.getCanonicalFile();\n } catch (IOException e) {\n existingFile = target;\n }\n\n existingIsDirectory = existingFile.isDirectory();\n existingName = trimTrailingSeparator(existingFile.getName())\n + (existingIsDirectory ? File.separatorChar : \"\");\n\n if (Sync.defaultActionOnOverwrite == 'Y') {\n SyncIO.printFlush(\"\\n Overwriting existing \"\n + (existingIsDirectory ? \"directory\" : \"file\")\n + \" \\\"\" + existingName + \"\\\"\");\n copyFile = true;\n } else if (Sync.defaultActionOnOverwrite == 'N') {\n// SyncIO.printFlush(\"\\n Skipping overwriting of existing \"\n// + (existingIsDirectory ? \"directory\" : \"file\")\n// + \" \\\"\" + existingName + \"\\\"\");\n } else if (Sync.defaultActionOnOverwrite == '\\0') {\n SyncIO.print(\"\\n Overwrite existing \"\n + (existingIsDirectory ? \"directory\" : \"file\")\n + \" \\\"\" + existingName + \"\\\"?\\n\");\n\n// final char choice = SyncIO.userCharPrompt(\n// \" (Y)es/(N)o/(A)lways/Neve(R): \",\n// \"YNAR\");\n final char choice = 'Y';\n\n if (choice == 'Y') {\n copyFile = true;\n } else if (choice == 'A') {\n Sync.defaultActionOnOverwrite = 'Y';\n copyFile = true;\n } else if (choice == 'R') {\n Sync.defaultActionOnOverwrite = 'N';\n }\n }\n } else {\n /* target file does not exist */\n copyFile = true;\n }\n\n if (copyFile) {\n /* delete existing file/directory first, if any */\n if (existingFile != null) {\n if (existingIsDirectory) {\n /* delete existing directory first */\n final String error = deleteDirTreeOperation(existingFile);\n\n if (error != null) {\n return \"Failed to delete existing directory \\\"\"\n + trimTrailingSeparator(existingFile.getPath()) + File.separatorChar\n + \"\\\":\\n\" + error;\n }\n } else {\n final boolean success = existingFile.delete();\n\n if (!success) {\n return \"Failed to delete existing file \\\"\"\n + existingFile.getPath() + \"\\\" using Java's File.delete() method.\";\n }\n }\n }\n\n /* copy file */\n final String error = copyFileOperation(source, target);\n\n if (error == null) {\n return null; // success\n } else {\n return \"Failed to copy file:\\n\" + error;\n }\n }\n\n return \"\"; // aborted file copy\n }", "title": "" }, { "docid": "4757c50d6147af1bbb02ee51788f3f9c", "score": "0.54481685", "text": "public static void copyDirFromResource(Class clazz, String dirPath, File destDir) {\n String sep = File.separator;\n File sourceDir = new File(\"src\" + sep + \"main\" + sep + \"resources\", dirPath);\n\n if (sourceDir.exists()) {\n LOG.log(Level.INFO, \"Copying directory from {0} to {1} ...\",\n new Object[] { sourceDir.getAbsolutePath(), destDir.getAbsolutePath() });\n try {\n FileUtils.copyDirectory(sourceDir, destDir);\n LOG.log(Level.INFO, \"Done copying directory\");\n } catch (IOException ex) {\n throw new JosmanIoException(\"Couldn't copy the directory!\", ex);\n }\n } else {\n\n File jarFile = new File(clazz.getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .getPath());\n if (jarFile.isDirectory() && jarFile.getAbsolutePath()\n .endsWith(\"target\" + File.separator + \"classes\")) {\n LOG.info(\"Seems like you have Josman sources, will take resources from there\");\n try {\n FileUtils.copyDirectory(new File(jarFile.getAbsolutePath() + \"/../../src/main/resources\", dirPath),\n destDir);\n LOG.log(Level.INFO, \"Done copying directory\");\n } catch (IOException ex) {\n throw new JosmanIoException(\"Couldn't copy the directory!\", ex);\n }\n } else {\n LOG.log(Level.INFO, \"Extracting jar {0} to {1}\",\n new Object[] { jarFile.getAbsolutePath(), destDir.getAbsolutePath() });\n copyDirFromJar(jarFile, destDir, dirPath);\n LOG.log(Level.INFO, \"Done copying directory from JAR.\");\n }\n\n }\n }", "title": "" }, { "docid": "d0ea1949d92d4bc20b7728a1f3838b35", "score": "0.5447808", "text": "public void copy(File src, File dst) throws IOException {\n\t\tFileInputStream in = new FileInputStream(src);\n\t\tFileOutputStream out = new FileOutputStream(dst);\n\n\t\t// Transfer bytes from in to out\n\t\tbyte[] buffer = new byte[1024];\n\t\tint length;\n\t\twhile ((length = in.read(buffer)) > 0) {\n\t\t\tout.write(buffer, 0, length);\n\t\t}\n\t\tin.close();\n\t\tout.close();\n\t}", "title": "" }, { "docid": "c743974537af5e920fc3302fa57be5bd", "score": "0.54107803", "text": "private boolean copyFile(String srcDir, String destPath) {\n Throwable th;\n Exception e;\n FileChannel dstChannel;\n Log.d(TAG, \"copyFile \" + srcDir + \" to \" + destPath);\n boolean result = false;\n File src = new File(srcDir);\n if (destPath == null) {\n return false;\n }\n if (!src.exists()) {\n Log.d(TAG, srcDir + \" is not exists\");\n return false;\n }\n File dest = new File(destPath);\n if (!dest.getParentFile().exists()) {\n if (dest.getParentFile().mkdirs()) {\n Log.d(TAG, \"success to mkdirs\");\n } else {\n Log.d(TAG, \"fail to mkdirs\");\n }\n }\n if (dest.exists()) {\n dest.delete();\n }\n try {\n dest.createNewFile();\n } catch (IOException e2) {\n e2.printStackTrace();\n Log.d(TAG, \"error: \" + e2);\n }\n FileChannel dstChannel2 = null;\n FileChannel dstChannel3 = null;\n try {\n FileChannel srcChannel = new FileInputStream(src).getChannel();\n try {\n dstChannel = new FileOutputStream(dest).getChannel();\n } catch (Exception e3) {\n e = e3;\n dstChannel2 = srcChannel;\n try {\n e.printStackTrace();\n Log.d(TAG, \"error: \" + e);\n if (dstChannel2 != null) {\n }\n if (dstChannel3 != null) {\n }\n return result;\n } catch (Throwable th2) {\n th = th2;\n if (dstChannel2 != null) {\n }\n if (dstChannel3 != null) {\n }\n throw th;\n }\n } catch (Throwable th3) {\n th = th3;\n dstChannel2 = srcChannel;\n if (dstChannel2 != null) {\n }\n if (dstChannel3 != null) {\n }\n throw th;\n }\n try {\n srcChannel.transferTo(0, srcChannel.size(), dstChannel);\n result = true;\n try {\n srcChannel.close();\n if (dstChannel != null) {\n try {\n dstChannel.close();\n } catch (IOException e4) {\n e4.printStackTrace();\n }\n }\n } catch (IOException e5) {\n e5.printStackTrace();\n if (dstChannel != null) {\n dstChannel.close();\n }\n } catch (Throwable th4) {\n if (dstChannel != null) {\n try {\n dstChannel.close();\n } catch (IOException e6) {\n e6.printStackTrace();\n }\n }\n throw th4;\n }\n } catch (Exception e7) {\n e = e7;\n dstChannel3 = dstChannel;\n dstChannel2 = srcChannel;\n e.printStackTrace();\n Log.d(TAG, \"error: \" + e);\n if (dstChannel2 != null) {\n }\n if (dstChannel3 != null) {\n }\n return result;\n } catch (Throwable th5) {\n th = th5;\n dstChannel3 = dstChannel;\n dstChannel2 = srcChannel;\n if (dstChannel2 != null) {\n try {\n dstChannel2.close();\n } catch (IOException e8) {\n e8.printStackTrace();\n if (dstChannel3 != null) {\n try {\n dstChannel3.close();\n } catch (IOException e9) {\n e9.printStackTrace();\n }\n }\n } catch (Throwable th6) {\n if (dstChannel3 != null) {\n try {\n dstChannel3.close();\n } catch (IOException e10) {\n e10.printStackTrace();\n }\n }\n throw th6;\n }\n }\n if (dstChannel3 != null) {\n dstChannel3.close();\n }\n throw th;\n }\n } catch (Exception e11) {\n e = e11;\n e.printStackTrace();\n Log.d(TAG, \"error: \" + e);\n if (dstChannel2 != null) {\n try {\n dstChannel2.close();\n } catch (IOException e12) {\n e12.printStackTrace();\n if (dstChannel3 != null) {\n try {\n dstChannel3.close();\n } catch (IOException e13) {\n e13.printStackTrace();\n }\n }\n } catch (Throwable th7) {\n if (dstChannel3 != null) {\n try {\n dstChannel3.close();\n } catch (IOException e14) {\n e14.printStackTrace();\n }\n }\n throw th7;\n }\n }\n if (dstChannel3 != null) {\n dstChannel3.close();\n }\n return result;\n }\n return result;\n }", "title": "" }, { "docid": "88924a4284fa2b83ec1fb167d8c65704", "score": "0.5407341", "text": "private static void copy(File in, File out, IOHandler IO) throws IOException {\n\n // if the input file doesn't exist, throw an exception\n if(! in.exists()) throw new IOException(\"Input path \" + in.getPath() + \" doesn't exist\");\n\n // if verbose print message\n// IO.verbose(\" copying: \" + in.getPath());\n\n // create the parent folder, if it doesn't exist\n if(out.getParentFile() != null && ! out.getParentFile().exists()) out.getParentFile().mkdirs();\n\n if(in.isDirectory()) {\n // if the file is a directory, create it ...\n if(! out.exists()) out.mkdirs();\n\n // ... and copy all its contents\n for(String s : in.list()) copy(new File(in, s), new File(out, s), IO);\n\n } else {\n IO.verbose(\" copying file \" + in.getPath() + \" to \" + out.getPath());\n\n copyFile(in, out);\n }\n }", "title": "" }, { "docid": "e6229c5b537cdced80f3027730ae7aa6", "score": "0.54066366", "text": "public static void copyFile(File srcFile, File destFolder) {\n\t\ttry {\n\t\t\tFile destFile = new File(destFolder, srcFile.getName());\n\t\t\tif (destFile.exists()) {\n\t\t\t\tthrow new BuildException(\"Could not copy \" + srcFile + \" to \"\n\t\t\t\t\t\t+ destFolder + \" as \" + destFile + \" already exists\");\n\t\t\t}\n\t\t\t// Create channel on the source\n\t\t\tFileChannel srcChannel = null;\n\t\t\tFileChannel destChannel = null;\n\t\t\ttry {\n\t\t\t\tsrcChannel = new FileInputStream(srcFile).getChannel();\n\n\t\t\t\t// Create channel on the destination\n\t\t\t\tdestChannel = new FileOutputStream(destFile).getChannel();\n\n\t\t\t\t// Copy file contents from source to destination\n\t\t\t\tdestChannel.transferFrom(srcChannel, 0, srcChannel.size());\n\t\t\t} finally {\n\t\t\t\t// Close the channels\n\t\t\t\tif (srcChannel != null) {\n\t\t\t\t\tsrcChannel.close();\n\t\t\t\t}\n\t\t\t\tif (destChannel != null) {\n\t\t\t\t\tdestChannel.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\t//set the time on the dest file to be equal to that of the src file\n\t\t\tdestFile.setLastModified((srcFile.lastModified()));\n\t\t} catch (IOException e) {\n\t\t\tthrow new BuildException(\"Could not copy \" + srcFile + \" to \"\n\t\t\t\t\t+ destFolder + \": \" + e, e);\n\t\t}\n\n\t}", "title": "" }, { "docid": "7f9c2869cadca424d7c43df7367534d0", "score": "0.54065776", "text": "protected void copyFile(File src, File dst) throws IOException {\n FileChannel inChannel = new FileInputStream(src).getChannel();\n FileChannel outChannel = new FileOutputStream(dst).getChannel();\n\n try {\n inChannel.transferTo(0, inChannel.size(), outChannel);\n }\n finally {\n if (inChannel != null)\n inChannel.close();\n\n if (outChannel != null)\n outChannel.close();\n }\n }", "title": "" }, { "docid": "726058049950b8c305972c7fcee8eb8f", "score": "0.5405777", "text": "public static boolean copy(FileSystem srcFS, Path src, \r\n File dst, boolean deleteSource,\r\n Configuration conf) throws IOException {\r\n if (srcFS.getFileStatus(src).isDir()) {\r\n if (!dst.mkdirs()) {\r\n return false;\r\n }\r\n FileStatus contents[] = srcFS.listStatus(src);\r\n for (int i = 0; i < contents.length; i++) {\r\n copy(srcFS, contents[i].getPath(), \r\n new File(dst, contents[i].getPath().getName()),\r\n deleteSource, conf);\r\n }\r\n } else if (srcFS.isFile(src)) {\r\n InputStream in = srcFS.open(src);\r\n IOUtils.copyBytes(in, new FileOutputStream(dst), conf);\r\n } else {\r\n throw new IOException(src.toString() + \r\n \": No such file or directory\");\r\n }\r\n if (deleteSource) {\r\n return srcFS.delete(src, true);\r\n } else {\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "0b75758370c22303afead01227af7787", "score": "0.53922296", "text": "public boolean\n copy(URL source, URL destination) throws IOException, ProtocolException\n {\n return copy(source, destination, false);\n }", "title": "" }, { "docid": "df794be54967660474b5979c0cb6ecee", "score": "0.5376024", "text": "public static void copy(File src, File dst) throws IOException {\n InputStream in = new FileInputStream(src);\n OutputStream out = new FileOutputStream(dst);\n\n // Transfer bytes from in to out\n byte[] buf = new byte[1024];\n int len;\n while ((len = in.read(buf)) > 0) {\n out.write(buf, 0, len);\n }\n in.close();\n out.close();\n }", "title": "" }, { "docid": "00a2aef934fa324f6df0442277f9bcd5", "score": "0.53757113", "text": "public static void main(String[] arg) {\r\n\tFile sourceFile = new File(\"E:\\\\today\\\\chitti.txt\");\r\n\tFile destinationFile = new File(\"E:\\\\usha\\\\chitti.txt\");\r\n\ttry {\r\n\t\tdestinationFile.\r\n\t\tFiles.copy(sourceFile.toPath(), destinationFile.toPath());\r\n\t\tSystem.out.println(\"File copy Successfull\");\r\n\t} catch (IOException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n\t\r\n\t\r\n}", "title": "" }, { "docid": "5d89c3d820d84e838a51dd067ebd94fb", "score": "0.53613645", "text": "public void testCopyFilesInDir() throws Exception {\n \n \n File.createTempFile(\"a11\",null,mTmpDir);\n File.createTempFile(\"a22\",null,mTmpDir);\n File.createTempFile(\"a33\",null,mTmpDir);\n \n File sourceDir = mTmpDir;\n File targetDir = mCpyDir;\n FileFilter filter = null;\n boolean recursive = true;\n \n com.sun.jbi.engine.iep.core.runtime.util.DirectoryUtil.copyFilesInDir(sourceDir, targetDir, filter, recursive);\n int len = mCpyDir.listFiles().length;\n \n assertEquals(3,len);\n \n }", "title": "" }, { "docid": "2463cd25ed6cec6254aebd2677257fd7", "score": "0.5359617", "text": "public static void copyFile(String sourceFile, String destFile) throws Exception {\n\t FileChannel sourceChannel = new FileInputStream( sourceFile ).getChannel();\n\t FileChannel targetChannel = new FileOutputStream( destFile ).getChannel();\n\t sourceChannel.transferTo(0, sourceChannel.size(), targetChannel);\n\t sourceChannel.close();\n\t targetChannel.close();\n\t}", "title": "" }, { "docid": "dee9cd200c4fd9cf84ae0b1db84230db", "score": "0.5353427", "text": "@Test\n public void testFiletoDirectory() {\n\n\n String[] cmdArgs = {\"cp\", \"/ValidParentPath/ValidFile\",\n \"/ValidParent/ValidDestinationDir\"};\n String actual = copy.exec(cmdArgs);\n String expected = \"\";\n assertEquals(expected, actual);\n\n // need to check whether the destination directory contains the source\n // file\n\n IDirectory destinationDir = (IDirectory) MockOperate.getDestinationDir();\n IFile sourceFile = (IFile) MockOperate.getInitialFolder();\n\n boolean actualFileinDir = destinationDir.containsFile(sourceFile);\n boolean expectedFileinDir = true;\n\n assertEquals(expectedFileinDir, actualFileinDir);\n }", "title": "" }, { "docid": "56fdfa128d5145fc29262c9a8be1331b", "score": "0.5348173", "text": "@DISPID(403) //= 0x193. The runtime will prefer the VTID if present\r\n @VTID(26)\r\n void copy(\r\n com.github.wshackle.fanuc.robotserver.IVars sourceVars);", "title": "" }, { "docid": "08404879d7d25ce435279bcc1a592ec4", "score": "0.5345893", "text": "public static boolean copyFile(String sourceDir, String fileName,\n\t\t\tString targetDir) throws IOException {\n\t\tFile source = new File(sourceDir, fileName);\n\t\tFile target = new File(targetDir, fileName);\n\t\tboolean success = FileUtil.streamFileToFile(source, target);\n\t\tlog.info(\"Copying File \" + fileName + \" to \" + targetDir);\n\t\treturn success;\n\t}", "title": "" }, { "docid": "f60cdebffbfd4fe567dd60bb1b5bf1d2", "score": "0.53396606", "text": "@Test\n public void testDirectorytoDirectory() {\n\n\n String[] cmdArgs =\n {\"cp\", \"/ValidParent/ValidDirectory\", \"/ValidParent1/ValidDirectory1\"};\n String result = copy.exec(cmdArgs);\n String expected = \"\";\n\n assertEquals(expected, result);\n // if the two directories are valid, then the only change is that\n // ValidDirectory1 should now contain ValidDirectory\n\n IDirectory DestinDir = (IDirectory) MockOperate.getDestinationDir();\n IDirectory InitialDir = (IDirectory) MockOperate.getInitialFolder();\n boolean actualDirinDir = DestinDir.containsDirectory(InitialDir);\n boolean expectedResult = true;\n\n assertEquals(expectedResult, actualDirinDir);\n\n }", "title": "" }, { "docid": "75ff33932009b4800d030ce3036bdb12", "score": "0.53381467", "text": "@Override\n protected void copy(Object source, Object dest) {\n FlowSet srcSet = (FlowSet)source;\n FlowSet destSet = (FlowSet)dest;\n srcSet.copy(destSet);\n }", "title": "" }, { "docid": "a3d2cb0468990728a94b49eee7a950fe", "score": "0.5336059", "text": "public static final void copyFromAssets(Context context, String source,\n\t\t\tString destination) throws IOException {\n\t\tInputStream is = context.getAssets().open(source);\n\t\tint size = is.available();\n\t\tbyte[] buffer = new byte[size];\n\t\tis.read(buffer);\n\t\tis.close();\n\n\t\t// write files in app private storage\n\t\tFileOutputStream output = context.openFileOutput(destination,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\toutput.write(buffer);\n\t\toutput.close();\n\n\t}", "title": "" }, { "docid": "768b89678b60830cc1f74c86f90acce5", "score": "0.53359926", "text": "public static void move(File source, File destination) throws IOException {\n move(source, destination, true);\n }", "title": "" }, { "docid": "face579e7dd6e3f438192746e4605e87", "score": "0.53268385", "text": "private void copyMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_copyMouseClicked\n if (!inputText.getText().isEmpty()) {\n if (search.doesDirExist(inputText.getText())) {\n fileDisplay.setText(Arrays.toString(search.getMainDir().list()).trim());\n jTextPane1.setText(search.getCount());\n search.loadDir(inputText.getText(), \"copy\");\n \n } else {\n JOptionPane.showMessageDialog(this, \"Directory or File not Found.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n inputText.setText(null);\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Enter a directory to copy.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n inputText.setText(null);\n }\n }", "title": "" }, { "docid": "ea8a99f7f1ecf2d3571f42a550014c7c", "score": "0.5315549", "text": "@SuppressWarnings(\"resource\") //Sug para los fileinputstream\n\tprivate void copyFile(File sourceFile, File destFile)\n\t\t\tthrows IOException {\n\t\t\tif (!destFile.exists()) {\n\t\t\t\tdestFile.createNewFile();\n\t\t\t}\n\n\t\t\tFileChannel origen = null;\n\t\t\tFileChannel destino = null;\n\t\t\ttry {\n\t\t\t\torigen = new FileInputStream(sourceFile).getChannel();\n\t\t\t\tdestino = new FileOutputStream(destFile).getChannel();\n\n\t\t\t\tlong count = 0;\n\t\t\t\tlong size = origen.size();\n\t\t\t\twhile ((count += destino.transferFrom(origen, count, size - count)) < size)\n\t\t\t\t\t;\n\t\t\t} finally {\n\t\t\t\tif (origen != null) {\n\t\t\t\t\torigen.close();\n\t\t\t\t}\n\t\t\t\tif (destino != null) {\n\t\t\t\t\tdestino.close();\n\t\t\t\t}\n\t\t\t}\n\t}", "title": "" }, { "docid": "484acd36a63092670e28f4289e7477c8", "score": "0.53060037", "text": "public static void copyFile(String sourceFilePath, String destFilePath) throws IOException {\n FileChannel in = null;\n FileChannel out = null;\n try {\n in = new FileInputStream(sourceFilePath).getChannel();\n out = new FileOutputStream(destFilePath).getChannel();\n long inputSize = in.size();\n in.transferTo(0, inputSize, out);\n MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, inputSize);\n out.write(buf);\n } finally {\n if (in != null) in.close();\n if (out != null) out.close();\n }\n }", "title": "" }, { "docid": "36efda7ec641512031dab58d9e69924b", "score": "0.5292513", "text": "public void copyFile(String copyFilePath, String destFilePath){\n\t\t\n\t\t\t//Get the paths for each of the files\n\t\t \tPath FROM = Paths.get(copyFilePath);\n\t\t Path TO = Paths.get(destFilePath);\n\t\t \n\t\t //overwrite existing file, if exists\n\t\t CopyOption[] options = new CopyOption[]{\n\t\t StandardCopyOption.REPLACE_EXISTING,\n\t\t StandardCopyOption.COPY_ATTRIBUTES\n\t\t };\n\t\t \n\t\t try {\n\t\t\t\tFiles.copy(FROM, TO, options);\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tlogError.logError(e.toString());\n\t\t\t}\n\t}", "title": "" }, { "docid": "f6f3691f20da1aaac04e81e77dce63aa", "score": "0.5284206", "text": "protected abstract void extract(File sourceDirectory, File targetDirectory)\n throws IOException;", "title": "" } ]
3cc21096b6eca779a688539d1968913e
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
[ { "docid": "2d7d5b9a550bb258b680a9b860c017a8", "score": "0.0", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_settings) {\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" } ]
[ { "docid": "c12f9377447ba11f11e99e1c184f2319", "score": "0.7727374", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n//\t\tcase android.R.id.home:\r\n//\t\t\t// go to previous screen when app icon in action bar is clicked\r\n//\t\t\tIntent intent = new Intent(this, MainActivity.class);\r\n//\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n//\t\t\tstartActivity(intent);\r\n//\t\t\tthis.finish();\r\n//\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9fd1bf37ff0e5bf264613b01e90865a3", "score": "0.7705729", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n this.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "b2f5ce127eb26292adfad1b20d31a827", "score": "0.7666938", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n // handle presses on the action bar items\n switch (item.getItemId()) {\n\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "f151b740a965a9fe4609cc72ed9fccae", "score": "0.74941516", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tthis.onBackPressed();\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "19e6e11c6289b4aa54e53f6dce943f9a", "score": "0.7487201", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Home icon in action bar clicked, then close activity\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "aed1c4287a22f379bae0e693f741c8d6", "score": "0.7460742", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "31c3d109a01ca8df4d7970c536a8276b", "score": "0.7458012", "text": "@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 }", "title": "" }, { "docid": "038bf08f419ae4a9fc054f3507e24f79", "score": "0.74546415", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home)\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "fff6724d9694673b6a0e64aa9dbfa235", "score": "0.74494857", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Take appropriate action for each action item click\n switch (item.getItemId()) {\n case R.id.action_home: Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n this.finishAffinity();\n return true;\n case R.id.action_quit: this.finishAffinity();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "title": "" }, { "docid": "91ce2fab31619cee1763dcb72c642c35", "score": "0.743486", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsuper.onBackPressed();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "title": "" }, { "docid": "950e4d4baf1978a62a5096168b2a9825", "score": "0.74265295", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "9e634cfee6270de808152eb261bd7e87", "score": "0.7408772", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // This is called when the Home (Up) button is pressed\n // in the Action Bar.\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "44a7e0d5edcadb8686a1b6a73caf1802", "score": "0.7401818", "text": "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n default:\r\n break;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "title": "" }, { "docid": "61263f35414b2fecb3cbb6fc5a0d00a7", "score": "0.73952925", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n finish(); //onBackPressed();\n break;\n\t\tcase R.id.action_close:\n\t\t\tsetMainIntent();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "6b825a2646a8d447d50236a23a21f2b2", "score": "0.73920804", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // handle arrow click here\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "bd6127488ec8081ad68567d2602e38bd", "score": "0.735857", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "2bc10479f139173fef709c3cc2863ffe", "score": "0.7349302", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == R.id.action_home) {\n startActivity(new Intent(this, MainActivity.class));\n return true;\n }\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "aa1d80c70d996e408322fd7056810fa9", "score": "0.73434377", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()) {\n\t\tcase android.R.id.home: Intent i = new Intent(this, MainActivity.class);\n\t\t\ti.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\tstartActivity(i);\n\t\t\treturn true;\n\t\tdefault: return super.onOptionsItemSelected(item); \n\t\t}\n\t}", "title": "" }, { "docid": "2817fed521ae969f3efb91f1726508b3", "score": "0.7340529", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // API 5+ solution\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected( item );\n }\n }", "title": "" }, { "docid": "c34997f11654bfc89a7efd0144c312b9", "score": "0.7330803", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "0bd15c0c2b6ce03da53db1168714483a", "score": "0.7330766", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "020043ce99626af3ab3dfe93dbf84c1c", "score": "0.73153925", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id == R.id.action_home) {\n // app icon in action bar clicked; goto parent activity.\n// onBackPressed();\n Intent intent = new Intent(SoloModeActivity.this, MainMenuActivity.class);\n startActivity(intent);\n return true;\n }\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_profile) {\n Intent intent = new Intent(SoloModeActivity.this, ProfileActivity.class);\n startActivity(intent);\n return true;\n }\n\n if(id == android.R.id.home){\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "3c87da433b500bb87de0ecac8d8bdcab", "score": "0.73031014", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n backButtonHandler();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "db600297cb877275317c61b28f3f5a72", "score": "0.7302303", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "46f6f28523191531c76d91b3c83bdeb6", "score": "0.7301595", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "18960e2c168ce6af2a6626c4cf7cfb3b", "score": "0.72997504", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "e8280c7869869f03194167052c10b763", "score": "0.7289152", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "e8280c7869869f03194167052c10b763", "score": "0.7289152", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "53df3a995fd09a50c4c3bf4f04387605", "score": "0.72888905", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "0c4d86eaaaf852ff852263fe437c83be", "score": "0.7287365", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n // do what you want to be done on home button click event\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "d26b4514abebfa616a848e69728ee334", "score": "0.7285951", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\t\tcase android.R.id.home:\n\t\t\t\tsuper.onBackPressed();\n\t\t\t\treturn true;\n\t\t\tdefault:\n\t\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "title": "" }, { "docid": "86c01e28c34ce1ffc99ff062b6c69b98", "score": "0.7285671", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "7bba57f7e3173fbec6b54cce1f2be4c0", "score": "0.72793347", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "7bba57f7e3173fbec6b54cce1f2be4c0", "score": "0.72793347", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "279cf48615823eed223f87d9a0358beb", "score": "0.7272923", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(this);\n return true;\n\n case R.id.action_settings:\n startActivity(new Intent(MainActivity.this, SettingsActivity.class));\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "27c8410963ab9cc758de135802a86143", "score": "0.7259831", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "27c8410963ab9cc758de135802a86143", "score": "0.7259831", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "27c8410963ab9cc758de135802a86143", "score": "0.7259831", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "27c8410963ab9cc758de135802a86143", "score": "0.7259831", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "83e948eeb5109543bd841f8ec0ec608e", "score": "0.72497433", "text": "@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 default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "title": "" }, { "docid": "12892872e3b563f33352e3f07ded59b9", "score": "0.72460496", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch (id){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d7b148d61c80509cd22297474f4e371d", "score": "0.7238839", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // handle arrow click here\n if (item.getItemId() == android.R.id.home) {\n finish();\n return true;\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "22abae7a7ceb6c34fb4130822bc7f71e", "score": "0.72326106", "text": "@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 Intent upIntent = new Intent(this, MainActivity.class);\n upIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(upIntent);\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "5a82f2f571181b0572ed754b3919b73f", "score": "0.7223912", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to previous activity (if there is any)\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "b8f2b3acb80b21473006b57b5d3ac24b", "score": "0.7221839", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// This ID represents the Home or Up button. In the case of this\n\t\t\t// activity, the Up button is shown. Use NavUtils to allow users\n\t\t\t// to navigate up one level in the application structure. For\n\t\t\t// more details, see the Navigation pattern on Android Design:\n\t\t\t//\n\t\t\t// http://developer.android.com/design/patterns/navigation.html#up-vs-back\n\t\t\t//\n\t\t\tNavUtils.navigateUpFromSameTask(this);\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "55931731383aa64b3a827d393aef248c", "score": "0.7218551", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(i);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "74c416e24146d44188a678242f85fa90", "score": "0.72158045", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n if (id == android.R.id.home) {\n\n\n super.onBackPressed();\n return true;\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "c39a162273e4671faf4c13429bcde9db", "score": "0.72118264", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "84841c361c5c5e2e2c2069b6e8f5b041", "score": "0.7207464", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "1473e6675ef65a47ff3445408b70c391", "score": "0.72056633", "text": "@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 }", "title": "" }, { "docid": "08d5fed79cff2e6fd3627f32475bf29d", "score": "0.72046936", "text": "@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 }", "title": "" }, { "docid": "3527490783b7efd3fd4bf154cf4fe586", "score": "0.7192735", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "title": "" }, { "docid": "c96dd684bbd35061c7a020241354f4f5", "score": "0.71693194", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n // Check the action id\n if(id == R.id.home){\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "bf91971f8aee356e04aaff16890ac33d", "score": "0.71604776", "text": "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n if (item.getItemId() == android.R.id.home) {\r\n finish();\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "title": "" }, { "docid": "e9c4b65880760b9ff94dc396d8a0e0dc", "score": "0.7158036", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "4f3a53900baf2bd7ac689a4de1682f5a", "score": "0.71577686", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n //noinspection SimplifiableIfStatement\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "2f59d46beba04666d49e15cc7ff5713a", "score": "0.71527237", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n /*\n If home is selected\n */\n case android.R.id.home:\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "2f59d46beba04666d49e15cc7ff5713a", "score": "0.71527237", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n /*\n If home is selected\n */\n case android.R.id.home:\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "2bcd716638a08460a40788a5304b5e45", "score": "0.7151548", "text": "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "title": "" }, { "docid": "1648d97f1b4d6f25a92b383a11638fdb", "score": "0.7145124", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "a84c5fdda30e95ffce4cd46a526f6414", "score": "0.7141968", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n onBackPressed();\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "b3e0989fd7dda1d57fac2ecc4184c417", "score": "0.7140876", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.finish();// go to parent activity.\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "33f52dd1e8ba5f8301c7bb655223d564", "score": "0.71397686", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "454aa0a9270113fcae9f44678571a8e5", "score": "0.7136169", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "e42825a317d6f9e042172c08fe4f4732", "score": "0.7134192", "text": "@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 Log.i(TEST_TAG, \"Settings menu selected\");\n return true;\n case android.R.id.home:\n Log.i(TEST_TAG, \"ActionBar Home selected\");\n Intent myIntent = new Intent();\n myIntent.setClassName(\"com.example.todo\", \"com.example.todo.MainActivity\");\n myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(myIntent);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "a1752d0ec4d0fdcb2f39f0add518f559", "score": "0.7130382", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "title": "" }, { "docid": "a1752d0ec4d0fdcb2f39f0add518f559", "score": "0.7130382", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "title": "" }, { "docid": "6fb80a3b8a5346f0ffd8729113c58544", "score": "0.7123874", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n\n //Toast.makeText(getApplicationContext(),\"BAck Clicked\",Toast.LENGTH_SHORT).show();\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "c9f530ddb7eb4548522db60a5a2391a9", "score": "0.7123031", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "c9f530ddb7eb4548522db60a5a2391a9", "score": "0.7123031", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "1fb387deab2340178d0058bb1c3e5778", "score": "0.71215695", "text": "@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 }", "title": "" }, { "docid": "1fb387deab2340178d0058bb1c3e5778", "score": "0.71215695", "text": "@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 }", "title": "" }, { "docid": "23303a6e950e2e829d2117f03a88509a", "score": "0.71212447", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n return super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "20daa87bbd8e563eda78df4fdea10643", "score": "0.71187276", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "20daa87bbd8e563eda78df4fdea10643", "score": "0.71187276", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "a6db9c70bd6412add766e62c29ac4d39", "score": "0.7111463", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "a6db9c70bd6412add766e62c29ac4d39", "score": "0.7111463", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "0ebec00a54158581ad3bed76dc890fda", "score": "0.71114326", "text": "@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\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "76fd6b2731f688eb1b7e1118f1be784b", "score": "0.71089053", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n switch (item.getItemId())\n {\n case android.R.id.home :\n setResult(RESULT_OK);\n finish();\n return true;\n default:\n return false;\n }\n }", "title": "" }, { "docid": "ab6c64b786fa71bfed51e5d9d409707e", "score": "0.710775", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "4f1ae4a41b5b5a14c97ae1085e4d9b69", "score": "0.71065503", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n finish();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "02aee05710fd22b1a9d0fa231412c91a", "score": "0.71057326", "text": "@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 }", "title": "" }, { "docid": "6ed2a5ac6cddc67abfeafaf842e30bff", "score": "0.71031904", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()== android.R.id.home){\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "0d2872cfb57cc707e5daf9eadb8ae474", "score": "0.7098864", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n // API 5+ solution\n onBackPressed();\n return true;\n\n// case R.id.action_msg:\n// Toast.makeText(getApplicationContext(), \"massage\", Toast.LENGTH_SHORT).show();\n//\n// return true;\n\n case R.id.action_search:\n Toast.makeText(getApplicationContext(), \"search\", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getApplicationContext(), SearchActivity.class);\n startActivity(intent);\n return true;\n\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "e0d646c2c345dfb74db7632e55b9fa4c", "score": "0.7097182", "text": "@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 }", "title": "" }, { "docid": "6fee44e56191fd3e43eafb020cde3875", "score": "0.7090146", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "a372f60279b51ce3b5fb720a6ab64d20", "score": "0.7086955", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "567491abdb067558312fbf12ca5c5b52", "score": "0.70831645", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n ((AppCompatActivity)getActivity()).onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "567491abdb067558312fbf12ca5c5b52", "score": "0.70831645", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n ((AppCompatActivity)getActivity()).onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "3d17e8c356df2feb3710af8170dadff4", "score": "0.7082251", "text": "@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 //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n return true;\n }\n if (id == R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "0e7a01056d135f442e50f8ee1eac5d75", "score": "0.70793325", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int i = item.getItemId();\n if (i == android.R.id.home){\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "cebfe86262fe6415c1494195d6b38097", "score": "0.70751464", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "ff12062149561f4d29d60c79eb96d9dc", "score": "0.7074658", "text": "@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 //new Intent().addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "4136733b8362908c8fd391b9610556a7", "score": "0.70688933", "text": "@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 }", "title": "" }, { "docid": "387acec6327c8c87a18f49bd00d895b9", "score": "0.7063121", "text": "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "title": "" }, { "docid": "88a0e0dc59437f49877d7a389dc2bb8e", "score": "0.70605487", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n if (from.equalsIgnoreCase(\"MilkCatList\")) {\n Constants.intent = new Intent(getApplicationContext(), MilkCategoryActivity.class);\n startActivity(Constants.intent);\n this.finish();\n } else if (from.equalsIgnoreCase(\"CatList\")) {\n Constants.intent = new Intent(getApplicationContext(), CategoryListActivity.class);\n startActivity(Constants.intent);\n this.finish();\n } else if (from.equalsIgnoreCase(\"Main\")) {\n Constants.intent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(Constants.intent);\n this.finish();\n } else {\n this.finish();\n }\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "c3e266fa79298047d0840f7a8c7d7044", "score": "0.7042798", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "6809a56614d90fbacf98842cadf8b931", "score": "0.7037745", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId() == android.R.id.home){\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "46a1d0d93aaeaf31ef249c8dba0568c3", "score": "0.7035596", "text": "@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 }", "title": "" }, { "docid": "46a1d0d93aaeaf31ef249c8dba0568c3", "score": "0.7035596", "text": "@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 }", "title": "" }, { "docid": "e5906c0763ceecf6907eace2f0b61c4c", "score": "0.7031925", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" } ]
87f73b6fd9b006cf9f2148272c6e999d
Convert the given object to string with each line indented by 4 spaces (except the first line).
[ { "docid": "8279fe35d1f3c688ad6983974b78755b", "score": "0.0", "text": "private String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" } ]
[ { "docid": "63c12a4413c6af0d7a213d6c691564e6", "score": "0.75527424", "text": "private String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n}", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7461668", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" } ]
d3c7a3842a777e414b11d8c89de5d325
Metodo che ritorna l'indirizzo di uno studente.
[ { "docid": "37b1c32849e3ecff86e59d360b87e98e", "score": "0.0", "text": "public String getIndirizzo() {\n\t\treturn indirizzo;\n\t}", "title": "" } ]
[ { "docid": "d6737b3c5e24e211f4774490fde4e135", "score": "0.5944156", "text": "private void obtenerDireccion(){\n // se obtiene una direccion aleatorea entre 1 y 4\n int dir = genererDirecion.nextInt(5);\n \n if(dir>0 || dir<5){\n // se modifica la direccion del fantasma\n //this.setDireccion(dir);\n direccionAleatoria=dir;\n }\n }", "title": "" }, { "docid": "e60d1c01132bcfd882ac5d639b799d82", "score": "0.58270794", "text": "static String getolocation() {\n if(firsttime){\n firsttime=false;\n Scanner scan=null;\n try {\n scan = new Scanner(new File(System.getProperty(\"user.dir\").replace('\\\\', '/')+\"/loaddatafrom.txt\"));\n } catch (FileNotFoundException ex) {\n Logger.getLogger(pathlocation.class.getName()).log(Level.SEVERE, null, ex);\n }\n String rem=\"\";\n if(!scan.hasNextLine())\n rems=System.getProperty(\"user.dir\").replace('\\\\', '/')+\"/data/\";\n else\n rems = scan.nextLine().replace('\\\\', '/')+\"/\";\n scan.close();\n return rems;\n }\n else{\n firsttime=false;\n return rems;\n }\n }", "title": "" }, { "docid": "9370ef7844f4bc7474c77738ba490cf6", "score": "0.5635063", "text": "public void initialsetupStudentData(){\n if(! fileIN.exists() || ! fileIN.isFile())\n {\n try{\n ra= new RandomAccessFile(\"StudentData.dat\",\"rw\");\n addStudentEntry(ra);\n }\n catch(IOException e){\n System.out.println(\"error opening file\");\n }\n try{\n ra.close();\n }catch(IOException e){\n System.out.println(\"error closing file\");\n }\n }\n else readFile();\n }", "title": "" }, { "docid": "10a01eed84f0f6c07f99caa53f26f297", "score": "0.5633776", "text": "private void setarDiretorio() {\r\n\t\tJFileChooser chooserDiretorio = new JFileChooser();\r\n\t\tchooserDiretorio.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n\t\tint res = chooserDiretorio.showOpenDialog(null);\r\n\t\tdiretorio = chooserDiretorio.getSelectedFile().getAbsolutePath();\r\n\t\tSystem.out.println(\"Diret�rio compartilhado = \" + diretorio);\r\n\t}", "title": "" }, { "docid": "cca384ba1cd841fe6e5bba79637ed461", "score": "0.5524334", "text": "public void setIndirizzo(String indirizzo) {\n\t\tthis.indirizzo = indirizzo;\n\t}", "title": "" }, { "docid": "69f152240983954c56381b65a669306b", "score": "0.5396983", "text": "@Test\r\n\tpublic void testGetStudentDirectory() {\r\n\t\tRegistrationManager testManager = RegistrationManager.getInstance();\r\n\t\tStudentDirectory testDirectory = testManager.getStudentDirectory();\r\n\r\n\t\ttestDirectory.addStudent(FIRST_NAME, LAST_NAME, ID, EMAIL, PASSWORD, PASSWORD, MAX_CREDITS);\r\n\t\tassertEquals(testManager.getStudentDirectory().getStudentDirectory().length, 1);\r\n\r\n\t\ttestDirectory.addStudent(FIRST_NAME, LAST_NAME, ID, EMAIL, PASSWORD, PASSWORD, MAX_CREDITS);\r\n\t\tassertEquals(testManager.getStudentDirectory().getStudentDirectory().length, 1);\r\n\t}", "title": "" }, { "docid": "4cacdee80074794b12e44f0585f8dab1", "score": "0.53600997", "text": "public void loadStudent() throws IOException {\n\t\tString fileName = \"C:\\\\Users\\\\Ayalew Abera\\\\eclipse-workspace\\\\INEW2438AdvancedJava\\\\my-app\\\\src\\\\main\\\\resources\\\\student.txt\";\n\t\tFileReader fReader = new FileReader(fileName);\t\t //Open and make a connection with the file\n\t\tBufferedReader bReader = new BufferedReader(fReader);\t //Creating BufferedReader objects and passing fileSource\n\n\t\t// read the first line \n\t\tString line = bReader.readLine();\n\n\t\t// read each line from student\n\t\twhile (line != null) {\n\n\t\t\tString [] tokens = line.split( \",\"); \t\t //split the line to token \n\t\t\tint id = Integer.parseInt(tokens[0]); \t\t //parse the first token and assign to id\n\t\t\tString first_name = tokens[1]; \t\t \t //assign the second value to first name \n\t\t\tdouble gpa = Double.parseDouble(tokens[2]); //parse the third token to double and assign to GPA\n\t\t\tString email = tokens[3]; \t\t\t\t\t//assign the fourth token or value to email\n\t\t\tString gender = tokens[4];\t\t\t\t\t//assign the fifth token or value to gender\n\n\t\t\t//create an object of a class or Student\n\t\t\tStudent studentOne = new Student(id, first_name,gpa, email, gender); // object creation\n\t\t\tstudents.add(studentOne);\t\t\t\t\t//add each object of Student to the list array\n\n\t\t\tline =bReader.readLine();//read the next line\n\t\t}\n\t\tbReader.close();\n\n\t}", "title": "" }, { "docid": "0858aba37797fe3df7f28fa958bd7d7c", "score": "0.534809", "text": "public void setIndirizzo(String indirizzo) throws Exception{\r\n if (!indirizzo.equalsIgnoreCase(\"\"))\r\n this.Indirizzo=indirizzo;\r\n else\r\n throw new Exception(\"Nome non valido\");\r\n }", "title": "" }, { "docid": "5c9882bc149fbb65f30250cd5282e1d5", "score": "0.5322793", "text": "public static void main(String[] args) {\n System.out.print(\"Introduce el nombre de directorio que quieres buscar: \");\n //Guardamos los datos de entrada mediante la clase Scanner\n Scanner entradaEscaner = new Scanner(System.in);\n String entradaTeclado = entradaEscaner.nextLine();\n\n //Seleccionamos el directorio origen desde donde se va a buscar la carpeta pedida.\n File origenDeBusqueda = new File(\"D:\\\\Desktop\");\n //Lanzamos un método creado para localizar la carpeta\n File carpetaABuscar = encontrarCarpeta(origenDeBusqueda,entradaTeclado);\n\n if(carpetaABuscar == null){\n System.out.println(\"No se encontró la carpeta\");\n }else{\n mostrarCarpeta(carpetaABuscar);\n }\n }", "title": "" }, { "docid": "a5c452ddabfecf1592edb267c8ebbdf9", "score": "0.5297356", "text": "File getLocation();", "title": "" }, { "docid": "9331d52f85ebb1d45ac394b6392b99d7", "score": "0.52792394", "text": "@Before\r\n\tpublic void setup(){\n\t\tbase = FileSystems.getDefault().getPath(\"c:\", \"Users\", \"july\", \"Documents\", \"testfiles\");\r\n\t}", "title": "" }, { "docid": "7465f6aa858f6e031dd556b60aebd6b0", "score": "0.5260224", "text": "public Conectar(){\n NOMBRE_BASE_DE_DATOS = new File(\"database.accdb\").getAbsolutePath();\n System.out.println(\"RUTA: \"+NOMBRE_BASE_DE_DATOS);\n }", "title": "" }, { "docid": "c26557ace96684d1da426c581a837905", "score": "0.52453834", "text": "public LecturaFicheroEntrada(String nombreDelFichero) {\r\n try{\r\n in = new BufferedReader (new InputStreamReader(new FileInputStream(ruta + nombreDelFichero)));\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"Error en apertura de fichero.\");\r\n }\r\n }", "title": "" }, { "docid": "2b32972cbdec0f9c79114be5b22ac79f", "score": "0.5202741", "text": "public ListaDeClientes() {\n super();\n fichero = new Fichero(\"src/files/ficheroClientes.txt\");\n }", "title": "" }, { "docid": "5e71a445d32893455bba8188b4fe6ae8", "score": "0.5195712", "text": "public void lue() {\n\n\t\ttry (BufferedReader f = new BufferedReader(new FileReader(tiedNimi))) {\n\t\t\tString rivi;\n\t\t\twhile ((rivi = f.readLine()) != null) {\n\t\t\t\tluoRivistaPari(rivi);\n\t\t\t}\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"En toimi koska: \" + ex.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "6136fcf8b1fd05d9ea9eb142aac4537c", "score": "0.5193404", "text": "public abstract java.lang.String getDir_ip_dslam_nueva();", "title": "" }, { "docid": "2a1648f813db069df1a0cf9677ba6357", "score": "0.51788294", "text": "public void readStudents() {\r\n String name, id, partnerNames, partnerIds;\r\n while (fileReader.hasNext()) {\r\n name = fileReader.nextLine();\r\n id = fileReader.nextLine();\r\n partnerNames = fileReader.nextLine();\r\n partnerIds = fileReader.nextLine();\r\n students.add(new Student(name, id, separatePartners(partnerNames, partnerIds)));\r\n }\r\n fileReader.close();\r\n }", "title": "" }, { "docid": "b171d6d489382c6f03de902f7c6b1c8c", "score": "0.5150034", "text": "public static void main(String[] args) {\n\t\t\n\t\tString dir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(dir);\n\t\t\n\t\t\n\t\ttry {\n//\t\t\tScanner in = new Scanner(Paths.get(\"C:/workspace/jse_study/P01/myfile.txt\"));\n\t\t\tFile f1 = new File(\"C:/workspace/jse_study/P01/myfile.txt\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"exception1=\"+e.toString());\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "375fbfc3b51424f95585ce31c78a2234", "score": "0.514055", "text": "private void cargarIdioma() {\n\t\t if(folder_lang.exists()){\n\t\t\t \t\n\t\t\t BufferedReader bf = null;\n\t\t\t\tString sCadena= \"\";\n\t\t\t\tString idioma1 = \"\";\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t bf = new BufferedReader(new FileReader(idioma));\n\t\t\t\t\t \n\t\t\t\t\t\twhile ((sCadena = bf.readLine())!=null) {\n\t\t\t\t\t\t\t\tidioma1 = sCadena;\n\t\t\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tLog.e(\"Excepcion al leer\", e.toString());\n\t\t\t\t}\n\t\t\t\tif(idioma1.equals(\"es\")){\n\t\t\t\t\tlang_est = \"es\";\n\t\t\t\t}else {\n\t\t\t\t\tlang_est = \"en\";\n\t\t\t\t}\n\t\t }\n\t}", "title": "" }, { "docid": "bb3eb19ba812a854664d3434a70cf4bc", "score": "0.5127643", "text": "Evento getLadoDireitoEvento();", "title": "" }, { "docid": "99c4fe0145c841be2e12fe5776148d60", "score": "0.512366", "text": "public String getDir_provincia() {\n\t\treturn dir_provincia;\n\t}", "title": "" }, { "docid": "071b1ea31e7474bf1295bb16aa511537", "score": "0.51167244", "text": "public void readFile(){\n if(fileIN.exists()){\n try{\n ra=new RandomAccessFile(\"StudentData.dat\",\"rw\");\n }\n catch(IOException e){\n System.out.println(\"error opening file\");\n }\n try{\n while (true){\n char scanName[]= new char[30];\n for (int nameCharacter=0;nameCharacter<30;nameCharacter++)\n scanName[nameCharacter]=ra.readChar();\n String outputName= new String(scanName);\n int outputID = ra.readInt();\n studentList.add(new Student(outputName,outputID));\n for (int m=0;m<6;m++){\n char courseID[]= new char[4];\n String courseName=\"\";\n for(int n=0;n<4;n++){\n courseID[n]=ra.readChar();\n courseName=new String(courseID);\n }\n int temp = ra.readInt();\n int secNum = ra.readInt();\n if(cat.searchCatalogue (courseName,temp)!=null){\n Registration reg= new Registration ();\n reg.completeRegistration(studentList.get(studentList.size()-1),cat.searchCatalogue (courseName,temp).getSectionOfferingAt(secNum-1));\n }\n }\n\n }\n }\n catch(EOFException e){\n }\n catch(IOException e){\n System.out.println(\"GG\");\n }\n try{\n ra.close();\n }\n catch(IOException e){\n System.out.println(\"error closing file\");\n }\n }\n }", "title": "" }, { "docid": "aee1169c949e0b61269223aa635fcd50", "score": "0.5112057", "text": "public void setDireccion(String direccion){\n this.direccion = direccion;\n }", "title": "" }, { "docid": "8d2d7a38526a129911af10146385b316", "score": "0.50867444", "text": "public Student(String id, String first, String last, String email, String path, String attendance) {\n\n this.studentID = id;\n this.firstName = first;\n this.surname = last;\n this.email = email;\n this.attendance = attendance;\n this.photoPathname = path;\n\n }", "title": "" }, { "docid": "8b91234c0d91012b1668b111f7bab46c", "score": "0.5054614", "text": "public static void main(String[] args){\n\t\tFileInputStream fis = null;\n\t\tObjectInputStream ois = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(\"fileSinhVien.txt\");\n\t\t\tois = new ObjectInputStream(fis);\n\t\t\tStudent sv = (Student) ois.readObject();\n\t\t\tSystem.out.println(\"Doc tu file: \");\n\t\t\tSystem.out.println(sv);\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "title": "" }, { "docid": "fc534a3b3d1dc3897f2e0923de6c86e1", "score": "0.5048246", "text": "public File getBasedir() \n {\n return basedir;\n }", "title": "" }, { "docid": "ed6a03e2dbf59f93b9bde235ab6d07c0", "score": "0.502902", "text": "public static String file() {\r\n\t\tString adresse;\r\n\t\tadresse=System.getProperty(\"user.home\") + File.separator + \"xml\" + File.separator + \"liste_francais.txt\";\r\n\t\tFile adresse2=new File(adresse);\r\n\t\tif(!adresse2.isFile() ) {\r\n\t\t\tadresse=System.getProperty(\"user.home\") + File.separator + \"Desktop\" + File.separator + \"Html\"\r\n\t\t\t\t\t+ File.separator + \"liste_francais\"+File.separator+\"liste_francais.txt\";\r\n\t\t}\r\n\t\treturn adresse;\r\n\t}", "title": "" }, { "docid": "f79914d35db3ad4d5ce29615c0f9c2eb", "score": "0.5028625", "text": "private void conexion() {//HECHO\n String filename = \"res/raw/bio_saludables_final.rdf\";\n\n //InputStream in = FileManager.get().open(filename);\n InputStream intandroid = getResources().openRawResource(R.raw.bio_saludables_final) ;\n // Create an empty model\n modelo = ModelFactory.createDefaultModel();\n\n // Use the FileManager to find the input file\n\n\n if (intandroid == null)\n throw new IllegalArgumentException(\"File: \"+filename+\" not found\");\n\n // Read the RDF/XML file\n modelo.read(intandroid,null);\n }", "title": "" }, { "docid": "eaffc5b36dd00bf6cc424ea360eb184c", "score": "0.5019882", "text": "public void ejecutar() throws IOException{\r\n\t\t// Nombre del directorio que se proporciona\r\n\t\tString nombreDirectorio = null;\r\n\t\t// Recoge los nombres de los archivos y subdirectorios\r\n\t\tString[] contenidoDir = null;\r\n\t\t// Objeto File que encapsula el directorio\r\n\t\tFile rutaDirectorio = null;\r\n\t\t// Objeto File para determinar si es archivo o directorio \r\n\t\tFile elementoD = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t/* Se solicita la ruta del directorio */\r\n\t\t\tSystem.out.print(\"Introduce nombre o ruta de directorio:\");\r\n\t\t\tnombreDirectorio = (new BufferedReader(new InputStreamReader(System.in))).readLine();\r\n\t\t\t// Se crea el objeto File\r\n\t\t\trutaDirectorio = new File(nombreDirectorio);\r\n\t\t\t// Se obtiene la lista de componentes del directorio\r\n\t\t\tcontenidoDir = rutaDirectorio.list();\r\n\t\t\tSystem.out.println(\"Archivos en directorio: \"+nombreDirectorio);\r\n\t\t\t// Se recorre la lista\r\n\t\t\tfor (String archivo: contenidoDir) {\r\n\t\t\t\telementoD = new File(nombreDirectorio+archivo);\r\n\t\t\t\t// Si el elemento es directorio, se antecede el nombre con \"<d>\"\r\n\t\t\t\tif (elementoD.isDirectory())\r\n\t\t\t\t\tSystem.out.print(\"<d>\");\r\n\t\t\t\tSystem.out.println(archivo);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IOException ioe) {\r\n\t\t\tthrow new IOException(\"Error al leer de teclado\",ioe);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c8846b0e1e312ef66abb4b9765af273e", "score": "0.500347", "text": "public void ispisiListuIzMemorije() {\n\n File f = new File(\"ListaSpremiste\");\n if (f.exists()) {\n kontroler.memorija.deserijalizirajListu();\n\n for (ResourceModel r : kontroler.memorija.listaZaSpremiste) {\n System.out.println(\"Naziv - \" + r.getNaziv() + \" Broj koristenja - \" + r.getBrojKoristenja() + \" Vrijeme spremanja - \" + r.getVrijemeSpremanja() + \" Vrijeme zadnjeg korištenja - \" + r.getZadnjeKoristenje() + \" Velicina - \" + r.getVelicinaIzvornika());\n\n }\n kontroler.memorija.serijalizirajListu();\n\n } else {\n kontroler.memorija.popuniListu();\n\n kontroler.memorija.deserijalizirajListu();\n for (ResourceModel r : kontroler.memorija.listaZaSpremiste) {\n System.out.println(\"Naziv - \" + r.getNaziv() + \" Broj koristenja - \" + r.getBrojKoristenja() + \" Vrijeme spremanja - \" + r.getVrijemeSpremanja() + \" Vrijeme zadnjeg korištenja - \" + r.getZadnjeKoristenje() + \" Velicina - \" + r.getVelicinaIzvornika());\n\n }\n kontroler.memorija.serijalizirajListu();\n }\n\n }", "title": "" }, { "docid": "cf51a8289e30ddf8c61cc45e2ec2bfd0", "score": "0.50015056", "text": "private void runAlgorithm() {\n\t\t\tString studentFileName \t = this.studentFS.getStudentFileLocation();\n\t\t\tString supervisorFileName = this.supervisorFS.getSupervisorFileLocation();\n\t\t\n\t\t\tConfig config = null;\n\t\t\n\t\t\ttry {\n\t\t\t\tconfig = Config.getConfig();\n\t\t\t\tif (this.studentFS.saveFile()) {\n\t\t\t\t\tconfig.setStringValue(Config.STUDENT_INPUT_FILE, studentFileName);\n\t\t\t\t}else {\n\t\t\t\t\tconfig.setStringValue(Config.STUDENT_INPUT_FILE, \"\");\n\t\t\t\t\tconfig.setNonPersistantCache(Config.STUDENT_INPUT_FILE, studentFileName);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (this.supervisorFS.saveFile()) {\n\t\t\t\t\tconfig.setStringValue(Config.SUPERVISOR_INPUT_FILE, supervisorFileName);\n\t\t\t\t}else {\n\t\t\t\t\tconfig.setStringValue(Config.SUPERVISOR_INPUT_FILE, \"\");\n\t\t\t\t\tconfig.setNonPersistantCache(Config.SUPERVISOR_INPUT_FILE, supervisorFileName);\n\t\t\t\t}\n\t\t\t\tconfig.save();\n\t\t\t}catch (IOException e) {\n\t\t\t\tlogger.severe(\"IOException when saving student/supervisor location. Error message: <\"+e.getMessage()+\">\");\n\t\t\t\tlogger.severe(\"Stack trace: \" + GetStackTrace.getStackTrace(e));\n\t\t\t\tJOptionPane.showMessageDialog(this.studentFS.getRootPane(),\n\t\t\t\t\t\t\"Error: Failed to save student/supervisor file locations, error message: \"\n\t\t\t\t\t\t+ \"<\"+e.getMessage()+\">\",\n\t\t\t\t\t\t\"IOException\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t} catch (InvalidTypeException |ConfigNotValidException | CustomValidationException | JSONException e) {\n\t\t\t\tlogger.severe(\"Exception when saving student/supervisor location. Error message: <\"+e.getMessage()+\">\");\n\t\t\t\tlogger.severe(\"Stack trace: \" + GetStackTrace.getStackTrace(e));\n\t\t\t\tJOptionPane.showMessageDialog(this.studentFS.getRootPane(),\n\t\t\t\t\t\t\"Error: Failed to save student/supervisor file locations, error message: \"\n\t\t\t\t\t\t+ \"<\"+e.getMessage()+\">\",\n\t\t\t\t\t\t\"Error\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t\t\n\t\t\tif (config == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tStudents students = loadStudents(true);//force load flag to true\n\t\t\tif (students == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tSupervisors supervisors = loadSupervisors(true);//force load flag to true\n\t\t\tif (supervisors == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tHashMap<String,String> matching = null;\n\t\t\t\n\t\t\t\t\n\t\t\tint percentage = this.options.cappedPercentage();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tArrayList<String> warnings = new ArrayList<String>();\n\t\t\t\tmatching = Matcher.allocate(students, supervisors,percentage, warnings);\n\t\t\t\t\n\t\t\t\tif (!warnings.isEmpty()) {\n\t\t\t\t\tString [] temp = new String[warnings.size()];\n\t\t\t\t\tfor (int i=0;i<warnings.size();i++) {\n\t\t\t\t\t\ttemp [i] = warnings.get(i);\n\t\t\t\t\t}\n\t\t\t\t\tJList<String> msg = new JList<String>(temp);\n\t\t\t\t\t\n\n\t\t\t\t\tJScrollPane scrollPane = new JScrollPane(msg);\n\t\t\t\t\t\n\t\t\t\t\tscrollPane.getViewport().add(msg);\n\t\t\t\t\tJOptionPane.showMessageDialog(this.supervisorFS.getRootPane(), \n\t\t\t\t\t\t\tscrollPane,\"Matchinng finished with warnings\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}catch (Exception e) {\n\t\t\t\tJOptionPane.showMessageDialog(this.supervisorFS.getRootPane(),\n\t\t\t\t\t\t\"Matching encountered an error with message <\" + e.getMessage() + \">\",\n\t\t\t\t\t\t\"Generic Error\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tConfig.saveMatching(matching);\n\t\t\t}catch (FileNotFoundException e) {\n\t\t\t\tlogger.severe(\"FileNotFoundException when saving matching: ,\"+e.getMessage()+\">\");\n\t\t\t\tJOptionPane.showMessageDialog(this.supervisorFS.getRootPane(),\n\t\t\t\t\t\t\"Error: The internal data file was not found\"\n\t\t\t\t\t\t+ \" Error message: \"+e.getMessage()+\"\\\"\",\n\t\t\t\t\t\t\"File Not Found\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\n\t\t\t\n\t\t\tString matchingSummary = null;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tmatchingSummary = MatchingUtils.evaulateMatching(matching, students, supervisors, config.getStrListValue(Config.MATCHING_TOPIC_AREAS));\n\t\t\t} catch (UnexpectedException e) {\n\t\t\t\tlogger.severe(\"UnexpectedException when evaulating matching: ,\"+e.getMessage()+\">\");\n\t\t\t\tlogger.severe(\"Stack trace: \" + GetStackTrace.getStackTrace(e));\n\t\t\t\tJOptionPane.showMessageDialog(this.supervisorFS.getRootPane(),\n\t\t\t\t\t\t\"Error: The internal error occured\"\n\t\t\t\t\t\t+ \" Error message: \"+e.getMessage()+\"\\\"\",\n\t\t\t\t\t\t\"Internal Error\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t\t\n\t\t\tsave(matching);\n\t\t\tJOptionPane.showMessageDialog(this.studentFS.getRootPane(),matchingSummary,\n\t\t\t\t\t\"Matching summary\",\n\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t}", "title": "" }, { "docid": "57de58271ed0cdcc0dcb710d9336473e", "score": "0.4998188", "text": "public File getPath() {\r\n return studyPath;\r\n }", "title": "" }, { "docid": "b24a65a5d7bcfecf70ed31a70fd905f6", "score": "0.499656", "text": "public FileAdmin(String archivo) throws Exception {\n setArchivo(archivo);\n }", "title": "" }, { "docid": "28dbcd82e7f210047d82b34a45b426cd", "score": "0.4994841", "text": "public void listDirectory()\n {\n root.preOrdeR();\n }", "title": "" }, { "docid": "56f3a05de973303f0e2d3b11cec18c2d", "score": "0.49924642", "text": "public File getWorldDirectory() {\n/* 87 */ return this.worldDirectory;\n/* */ }", "title": "" }, { "docid": "e62c5c329980e1957cc56371ba2bc184", "score": "0.49893826", "text": "public void setDireccion(String direccion){\n\n this.direccion = direccion;\n }", "title": "" }, { "docid": "b85fcba9d81008668715d813f413a22b", "score": "0.4986009", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n File file = new File(\"/home/leti/Desktop/AN3/SD/Lab1/student.xml\");\n\n if (!file.exists()) {\n response.sendError(404, \"Nu a fost gasit niciun student serializat pe disc!\");\n return;\n }\n\n XmlMapper xmlMapper = new XmlMapper();\n StudentBean bean = xmlMapper.readValue(file, StudentBean.class);\n\n request.setAttribute(\"nume\", bean.getNume());\n request.setAttribute(\"prenume\", bean.getPrenume());\n request.setAttribute(\"varsta\", bean.getVarsta());\n\n // redirectionare date catre pagina de afisare a informatiilor studentului\n request.getRequestDispatcher(\"./info-student.jsp\").forward(request, response);\n }", "title": "" }, { "docid": "e7e4073c9b8d08735ab5358c2f336881", "score": "0.49829593", "text": "@Override\n String inode2path(Connection dbConnection, FsInode inode, FsInode startFrom, boolean inclusive) throws SQLException {\n \n String path = null;\n PreparedStatement ps = null;\n ResultSet result = null;\n \n try {\n \n ps = dbConnection.prepareStatement(sqlInode2Path);\n ps.setString(1, inode.toString());\n \n result = ps.executeQuery();\n \n if (result.next()) {\n path = result.getString(1);\n }\n \n } finally {\n SqlHelper.tryToClose(result);\n SqlHelper.tryToClose(ps);\n }\n \n return path;\n }", "title": "" }, { "docid": "d4655ead5237ab5786cd0e7b2cc99700", "score": "0.49810004", "text": "public void lesFil(String filnavn) throws Exception{\n\t\tFile fil = new File(filnavn);\n\t\tScanner filleser = new Scanner(fil);\n\n\t\tFag nyttFag = null;\n\t\tStudent nyPerson;\n\t\twhile(filleser.hasNextLine()){\n\n\t\t\tString linje = filleser.nextLine();\n\t\t\tif(linje.substring(0,1).equals(\"*\")){\n\t\t\t\tnyttFag = new Fag(linje.substring(1));\n\t\t\t\talleFag.put(nyttFag.toString(),nyttFag);\n\t\t\t} \n\t\t\telse{\n\t\t\t\tif(!finnesStudent(linje)){\n\t\t\t\t\tnyPerson = new Student(linje);\n\t\t\t\t\talleStudenter.put(nyPerson.toString(), nyPerson);\n\t\t\t\t}else {\n\t\t\t\t\tnyPerson = alleStudenter.get(linje);\n\t\t\t\t}\n\t\t\t\tnyttFag.leggTilStudent(nyPerson);\n\t\t\t\tnyPerson.leggTilFag(nyttFag);\n\t\t\t}\n\n\t\t\t\n\t\t//\tSystem.out.println(linje);\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "87d30900c358bd311fad9ebb673ce480", "score": "0.49691537", "text": "public static void metodo02( )\n {\n //1. definir dados\n String linha;\n FILE arquivo;\n \n //2. identificar\n IO.println( \"Consultar dados em arquivos.\" );\n \n //3. abrir arquivo apra a leitura\n arquivo = new FILE (FILE.INPUT, \"DADOS1.TXT\");\n \n //4. ler linhas do arquivo\n //tentar ler uma linha do arquivo\n linha = arquivo.readln( ); //para ler toda linha\n \n //repetir enquanto houver dado\n while(!arquivo.eof( ))\n {\n //mostrar dado na tela\n IO.println(\" \" + linha);\n \n //tentar ler outra linha do arquivo\n linha = arquivo.readln( );\n } //end repeticao\n \n //fechar o arquivo (RECOMENDAVEL para leitura)\n arquivo.close( );\n \n //5. encerrar\n IO.println( );\n IO.pause(\"Apertar ENTER para continuar.\" ); \n }", "title": "" }, { "docid": "e5c1333b5bf36fa874e7de7c4bfe7c2d", "score": "0.49685568", "text": "public void setDireccionCliente(String p) { this.direccionCliente = p; }", "title": "" }, { "docid": "8a5e0993128e1456c9146cf4e6cc2279", "score": "0.4958466", "text": "Path getAdminFilePath();", "title": "" }, { "docid": "57da66a9046b0f5ae7e97d6b161193ad", "score": "0.4948391", "text": "private void saveFiles() {\n\t\t\tString studentFileName = this.studentFS.getStudentFileLocation();\n\t\t\tString supervisorFileName = this.supervisorFS.getSupervisorFileLocation();\n\t\t\ttry {\n\t\t\t\tif (this.studentFS.saveFile()) {\n\t\t\t\t\tConfig.getConfig().setStringValue(Config.STUDENT_INPUT_FILE, studentFileName);\n\t\t\t\t}else {\n\t\t\t\t\tConfig.getConfig().setStringValue(Config.STUDENT_INPUT_FILE, \"\");\n\t\t\t\t\tConfig.getConfig().setNonPersistantCache(Config.STUDENT_INPUT_FILE, studentFileName);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (this.supervisorFS.saveFile()) {\n\t\t\t\t\tConfig.getConfig().setStringValue(Config.SUPERVISOR_INPUT_FILE, supervisorFileName);\n\t\t\t\t}else {\n\t\t\t\t\tConfig.getConfig().setStringValue(Config.SUPERVISOR_INPUT_FILE, \"\");\n\t\t\t\t\tConfig.getConfig().setNonPersistantCache(Config.SUPERVISOR_INPUT_FILE, supervisorFileName);\n\t\t\t\t}\n\t\t\t\tConfig.getConfig().save();\n\t\t\t}catch (IOException e) {\n\t\t\t\tlogger.severe(\"IOException when saving student/supervisor location. Error message: <\"+e.getMessage()+\">\");\n\t\t\t\tlogger.severe(\"Stack trace: \" + GetStackTrace.getStackTrace(e));\n\t\t\t\tJOptionPane.showMessageDialog(this.studentFS.getRootPane(),\n\t\t\t\t\t\t\"Error: Failed to save student/supervisor file locations, error message: \"\n\t\t\t\t\t\t+ \"<\"+e.getMessage()+\">\",\n\t\t\t\t\t\t\"IOException\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t} catch (InvalidTypeException |ConfigNotValidException | CustomValidationException | JSONException e) {\n\t\t\t\tlogger.severe(\"Exception when saving student/supervisor location. Error message: <\"+e.getMessage()+\">\");\n\t\t\t\tlogger.severe(\"Stack trace: \" + GetStackTrace.getStackTrace(e));\n\t\t\t\tJOptionPane.showMessageDialog(this.studentFS.getRootPane(),\n\t\t\t\t\t\t\"Error: Failed to save student/supervisor file locations, error message: \"\n\t\t\t\t\t\t+ \"<\"+e.getMessage()+\">\",\n\t\t\t\t\t\t\"Error\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "10f80c11846001310caac97e8f3e3255", "score": "0.49481633", "text": "public void setDireccion(String direccion) {\r\n this.direccion = direccion;\r\n }", "title": "" }, { "docid": "f9a81f0e7e308663c590dfb7cb955f42", "score": "0.49451506", "text": "public void loadNormalLocFile() {\n \t\tFile normalLoc = new File(\"location.loc\");\n \t\tif (normalLoc.exists()) {\n \t\t\tthis.loadLocation(normalLoc);\n \t\t} else {\n \t\t\tSystem.out.println(\"Note: Trying to load the normal location.loc file, but it doesn't exist. Continuing to run normally...\");\n \t\t}\n \n \t}", "title": "" }, { "docid": "00ac09e86cc5396d83f06ca45481733e", "score": "0.4944245", "text": "@Override\r\n public String getPath() {\r\n return clase.getNombre() + \".java\";\r\n }", "title": "" }, { "docid": "afb47a1d2d15f66eb2d0db87de36b528", "score": "0.4938484", "text": "public ListeFichierServeur miseAJourListe(String repertoire, DefaultMutableTreeNode noeudCourant){\r\n\t\tListeFichierServeur retour = this;\r\n\r\n\t\tFile file = new File(repertoire);\r\n\r\n\t\t//Lors de la premiere iteration\r\n\t\tif(noeudCourant == null){\r\n\t\t\tnoeudCourant = (DefaultMutableTreeNode) retour.getArbre().getRoot();\r\n\t\t}\r\n\r\n\t\t//cette operation va ajouter tous les fichiers du repertoire a liste\r\n\t\tFile [] listefichiers; \r\n\t\tlistefichiers = file.listFiles(); \r\n\r\n\t\tif(listefichiers != null){\r\n\t\t\tfor(int i=0; i < listefichiers.length ; i++){\r\n\r\n\t\t\t\tif(listefichiers[i].isDirectory() == false){ //si ce n'est pas un dossier\r\n\t\t\t\t\tDefaultMutableTreeNode noeud = new DefaultMutableTreeNode(listefichiers[i].getName());\r\n\t\t\t\t\tnoeudCourant.add(noeud); //creation du noeud et ajout a l'arbre\r\n\r\n\t\t\t\t\tDefaultMutableTreeNode noeudTemp = noeudCourant;\r\n\t\t\t\t\tArrayList<String> etiquette = new ArrayList<String>();\r\n\r\n\t\t\t\t\twhile(noeudTemp != this.getArbre().getRoot() && noeudTemp != null){\r\n\t\t\t\t\t\tetiquette.add(noeudTemp.toString());\r\n\t\t\t\t\t\tnoeudTemp = (DefaultMutableTreeNode) noeudTemp.getParent();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tetiquette.add(listefichiers[i].getName());\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tretour.ajouterFichierListe(new InfoFichier(listefichiers[i].getName(), etiquette, InetAddress.getLocalHost(), listefichiers[i].getAbsolutePath()));\r\n\t\t\t\t\t} catch (UnknownHostException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//on recupere le nom du dossier qui sera ajoute en etiquette\r\n\t\t\t\t\tString nomDossier = listefichiers[i].getName();\r\n\t\t\t\t\tDefaultMutableTreeNode noeud = new DefaultMutableTreeNode(nomDossier);\r\n\r\n\t\t\t\t\tnoeudCourant.add(noeud);\r\n\t\t\t\t\tretour.setListe(retour.miseAJourListe(listefichiers[i].getPath(), noeud).getListe());\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retour;\r\n\r\n\r\n\t}", "title": "" }, { "docid": "900a272406f64473f56198d4e8ab1a5a", "score": "0.49321106", "text": "public static void studentFile() {\r\n\t\ttry {\r\n\t\t\tfileOutputStream = new FileOutputStream (\"src\\\\students.txt\");\r\n\t\t\tfbr = new BufferedReader (new FileReader(studFile));\r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tif (!studFile.exists()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstudFile.createNewFile();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tfps = new PrintStream(fileOutputStream);\r\n\t}", "title": "" }, { "docid": "0b838f39cbb133934572ce28d0d3255e", "score": "0.49305442", "text": "public static void main(String[] args) {\n\t\tnew LesFraFil(\"C:\\\\Users\\\\Per\\\\Desktop\\\\oop\\\\forelesning 9\\\\filer\\\\kurs.ser\");\r\n\t\t\r\n\t\t// leser inn studentobjekt fra fil\r\n\t\tnew LesFraFil(\"C:\\\\Users\\\\Per\\\\Desktop\\\\oop\\\\forelesning 9\\\\filer\\\\student.ser\");\r\n\t\t\t\t\r\n\t\t// sjekker kurs som har dukket opp i kursListen\r\n\t\tfor(Kurs k : kursListe){\r\n\t\t\tSystem.out.println(k.getCourseName());\r\n\t\t}\r\n\t\t\r\n\t\t// sjekker studenter som har dukket opp i studentlisten\r\n\t\tfor(Student s : studentListe){\r\n\t\t\tSystem.out.println(s.getsName() + \" \" + s.getKursListe().size());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bdf386f8d3e84c4798c9b8f6f6fb25a6", "score": "0.49247274", "text": "@Override public void onChosenDir(String chosenDir) {\n File file = new File(chosenDir);\n // Initiate the upload\n ImportService importService = new ImportService(ListPersonneActivity.this);\n String result = importService.importPersonne(file);\n if (result!=null) {\n Toast.makeText(ListPersonneActivity.this, result, Toast.LENGTH_LONG).show();\n } else {\n // Update the list\n refreshList();\n Toast.makeText(ListPersonneActivity.this, getString(R.string.menu_import_ok), Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "dfeaa4f6af0d65c35490a960f1bc68fb", "score": "0.4918317", "text": "protected void lerSynEstudante() {\n String url = URlString + \"students/\";\n List<NameValuePair> params = new ArrayList<NameValuePair>();\n JSONObject json = JSONParser.getJSONObject(url, params);\n\n try {\n\n JSONArray estudante = json.getJSONArray(\"students\");\n Estudante[] arrEstudantes = new Estudante[estudante.length()];\n\n // For (loop)looping\n for (int i = 0; i < estudante.length(); i++) {\n JSONObject c = estudante.getJSONObject(i);\n // Armazenar cada item json nas vari�veis\n arrEstudantes[i] = new Estudante(\n c.getInt(\"id\"),\n c.getInt(\"classId\"),\n c.getString(\"name\"),\n NetworkUtils.getFile(URlString + c.getString(\"photoUrl\")),\n c.getInt(\"isActive\")\n );\n }\n guardarEstudantesBD(arrEstudantes);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "025940ab3b184e90ae2c6f9a2df819f3", "score": "0.4915795", "text": "public void setDireccion(String direccion) {\n this.direccion = direccion;\n }", "title": "" }, { "docid": "025940ab3b184e90ae2c6f9a2df819f3", "score": "0.4915795", "text": "public void setDireccion(String direccion) {\n this.direccion = direccion;\n }", "title": "" }, { "docid": "8e61ab7b2eb2241640c592e0ca7f9e30", "score": "0.49154818", "text": "public String getDireccion(){\n\n return direccion;\n }", "title": "" }, { "docid": "e0ec1326e2b723aa1b3b84429b4fb75a", "score": "0.49118152", "text": "public String getWorldDirectoryName() {\n/* 351 */ return this.saveDirectoryName;\n/* */ }", "title": "" }, { "docid": "2f73810e8e62949350a9168abf4b26e6", "score": "0.49111748", "text": "public String getStudentLocation() {\n return studentLocation;\n }", "title": "" }, { "docid": "ef67067c56df2617d476a17fd1b91f09", "score": "0.49095657", "text": "public String getUsersFilePath() {\r\n\treturn getAppPrivateFilesPath() + \"users/\";\r\n }", "title": "" }, { "docid": "e7a70a8d7517437ac09c4930a6690e41", "score": "0.4907195", "text": "public void lectureEmp() throws FileNotFoundException, IOException {\n Scanner sc2 = new Scanner(System.in);\n System.out.println(\"Donner le chemin d'accès du fichier contenant la liste du personnel :\"); //C:\\\\Users\\\\USER\\\\Documents\\\\L3 MIAGE\\\\Semestre 2\\\\AOC\\\\ProjetJava\\\\fichiers\\\\liste_personnel.csv\n String chemin2 = sc2.nextLine();\n\n BufferedReader entree2 = new BufferedReader(new FileReader(chemin2));\n String s2;\n StringTokenizer st2;\n\n entree2.readLine();\n while ((s2 = entree2.readLine()) != null) {\n if (!entree2.equals(\" \")) {\n st2 = new StringTokenizer(s2, \"\");\n while (st2.hasMoreTokens()) {\n String mot2 = st2.nextToken();\n String[] mots2 = s2.split(\";\");\n touslesEmp.add(new Employe(Integer.parseInt(mots2[3]), mots2[1]));\n System.out.println(mots2[3] + \" \" + mots2[0] + \" \" + mots2[1] + \" \" + mots2[2]);\n System.out.println(\" \");\n }\n }\n }\n //System.out.println(touslesEmp.toString());\n }", "title": "" }, { "docid": "2ed7be854969f9cf64eae710f376ef1b", "score": "0.49057755", "text": "public String getDireccion (){\n return _direccion;\n }", "title": "" }, { "docid": "4d1cb492116532051e3d063658dda3fd", "score": "0.49049893", "text": "private File recuperaPagina(String nome) throws ResourceNotFoundException {\r\n\r\n\t\tFile file = null;\r\n\t\t/*\r\n\t\ttry {\r\n\t\t\tfor(int conta=0;conta<Server.getInstance().getPagine().length;conta++)\r\n\t\t\t{\r\n\t\t\t\tif(nome.equals(Server.getInstance().getPagine()[conta].getName()))\r\n\t\t\t\t{\r\n\t\t\t\t\tfile=Server.getInstance().getPagine()[conta];\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t}\r\n\t\t */\r\n\r\n\t\t//ricerca del file nel file system\r\n\t\tfile = new File(WebServer.SERVER_ROOT + \"\\\\\" + nome);\r\n\r\n\t\t//controllo dell'esisteza del file\r\n\t\tif(!file.exists()) {\r\n\t\t\tthrow new ResourceNotFoundException();\r\n\t\t}\r\n\r\n\r\n\r\n\t\treturn file;\r\n\t}", "title": "" }, { "docid": "87b464655244e94af8b7444ece82e0fc", "score": "0.49029633", "text": "public String getDireccion() {\r\n return direccion;\r\n }", "title": "" }, { "docid": "4013882e372b6de2e3330a323c73d67a", "score": "0.49003473", "text": "public void addStudentsFromRoster(FileInputStream fis) throws Exception {\n\t\tReader fr = new InputStreamReader(fis, \"UTF-8\");\n\t\taddStudentsFromRoster(fr);\n\t}", "title": "" }, { "docid": "6ccca47162bb64aa0ac93cbd6ce86de4", "score": "0.4894398", "text": "public String getDir_nombre() {\n\t\treturn dir_nombre;\n\t}", "title": "" }, { "docid": "0b16b190e5c316f97e976acb41052e06", "score": "0.48892742", "text": "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tFileIO file = new FileIO();\n\t\t\n\t\tStudentManage sm = new StudentManage();\n\t\tFile f = new File(file.getPath());\n\t\t//Load student manage from file\n\t\tif(!f.exists()) { \n\t\t\tfile.InitializeListStudent();\n\t\t\tSystem.out.println(\"Initialize file student\");\n\t\t}\n\t\t\n//\t\tfile.Create();\n\t\tsm = file.ReadBinaryFile();\t\t\t\t\t\n\n\n\t\twhile(true) {\n\t\t\tSystem.out.println(\"\\n0: Initialize list student\");\n\t\t\tSystem.out.println(\"1: Add a student\");\n\t\t\tSystem.out.println(\"2: Update student information\");\n\t\t\tSystem.out.println(\"3: Delete student\");\n\t\t\tSystem.out.println(\"4: Show list student\");\n\t\t\tSystem.out.println(\"5: Import file\");\n\t\t\tSystem.out.println(\"6: Export file\");\n\t\t\tSystem.out.print(\"Choose: \");\n\t\t\tString line = scanner.nextLine();\n\t\t\tswitch(line) {\n\t\t\t\tcase \"1\":{\n\t\t\t\t\tsm.Add();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"2\":{\n\t\t\t\t\tsm.Update();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"3\":\n\t\t\t\t\tsm.ShowListStudent();\n\t\t\t\t\tsm.DeleteStudent();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"4\":\n\t\t\t\t\tSystem.out.println(\"a. Increase ID \\nb. Decrease ID \\nc. Increase Score \\nd. Decrease Score\");\n\t\t\t\t\tSystem.out.print(\"Choose: \");\n\t\t\t\t\tString option = scanner.nextLine();\n\t\t\t\t\tswitch(option) {\n\t\t\t\t\t\tcase \"a\": {\n\t\t\t\t\t\t\tsm.ListIncreaseId().ShowListStudent();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase \"b\": {\n\t\t\t\t\t\t\tsm.ListIncreaseId().ReverseListStudent();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase \"c\": {\n\t\t\t\t\t\t\tsm.ListIncreaseScore().ShowListStudent();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase \"d\": {\n\t\t\t\t\t\t\tsm.ListIncreaseScore().ReverseListStudent();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"5\":\n\t\t\t\t\tsm = file.ImportCSV();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"6\":\n\t\t\t\t\tfile.ExportCSV(sm);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"0\":\n\t\t\t\t\tfile.InitializeListStudent();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"7\":\n\t\t\t\t\tsm.ShowListStudent();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Invalid\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5d479416e11b1f174dad228762b1d1e1", "score": "0.48871833", "text": "Path getDiaryBookFilePath();", "title": "" }, { "docid": "5c0efdc00e44dce55bb3fc14e16fbf3e", "score": "0.4882015", "text": "@Override\r\n\tpublic String leerArchivo(String direccion) {\n\t\ttry{\r\n\t\t\tFileReader leer = new FileReader(direccion);\r\n\t\t\tBufferedReader cargar = new BufferedReader(leer);\r\n\t\t\tlinea = cargar.readLine();\r\n\t\t\tcargar.close();\r\n\t\t\treturn linea;\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(\"No se encuentra actualmente, alguna linea de operacion en el archivo .txt\");\r\n\t\t\tSystem.exit(0);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bd96bd8d5c998927d415cd130686dfb6", "score": "0.48693374", "text": "private void loadGrupos() throws FileNotFoundException {\n //Scanner para o ficheiro grupos.txt\n Scanner gruposFile = new Scanner(new File(\"grupos.txt\"));\n //Linha corrente do ficheiro grupos.txt\n String current;\n //Enquanto ha grupos\n while(gruposFile.hasNextLine()){\n current = gruposFile.nextLine();\n //Scanner para o ficheiro owner.txt do grupo atual\n Scanner ownerFile = new Scanner(new File(current+\"/owner.txt\"));\n String tmpOwner = ownerFile.nextLine();\n //Criacao do owner\n User owner = new User(tmpOwner);\n //Criacao do grupo\n Grupo novo = new Grupo(current,owner);\n //Adicionar grupo ao mapa\n this.grupos.put(current,novo);\n //Scanner para o ficheiro utilizadores.txt do grupo atual\n Scanner utilizadoresFile = new Scanner(new File(current+\"/utilizadores.txt\"));\n //Utilizador atual\n String currentUt;\n //Enquanto ha utilizadores\n while(utilizadoresFile.hasNextLine()){\n currentUt = utilizadoresFile.nextLine();\n //Ir buscar grupos \n Grupo gp = grupos.get(current);\n //Adicionar utilizador\n gp.addUser(currentUt);\n }\n loadMensagens(novo);\n ownerFile.close();\n utilizadoresFile.close();\n }\n gruposFile.close();\n }", "title": "" }, { "docid": "ca2301d24d49d939bb0ecaa4af5cbe67", "score": "0.4867316", "text": "public LectorComplejo(String rutaArchivo) {\r\n\t\ttry {\r\n\t\t\tthis.stream = new FileInputStream(rutaArchivo);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "add69950f72b95efce81aaa283b7d70f", "score": "0.48654348", "text": "public List<Studente> elencaStudenti(String codins) {\n\t\tStudenteDAO dao = new StudenteDAO();\n\t\treturn dao.elencaStudenti(codins);\n\t}", "title": "" }, { "docid": "69eafc642595e58c5181b8cb735b9261", "score": "0.48593956", "text": "public static void leerProvincias(){\n FileReader fr=null;\n BufferedReader br=null;\n\t\ttry {\n fr=new FileReader(\"src/main/resources/municipios.txt\");\n br=new BufferedReader(fr);\n String linea=br.readLine();\n while(linea!=null){\n String indice = linea.substring(0,2)+linea.substring(3,6);\n String nombre = linea.substring(9);\n linea=br.readLine();\n localidades.add(nombre);\n mapa.put(nombre, indice);\n }\n //excel = new Scanner(new File(\"11codmun50.txt\"));\n\t\t /*for(int leidos=0;leidos<293;leidos++){\n String indice = excel.next()+excel.next();\n excel.next();//descartamos el numero de enmedio\n String nombre = excel.nextLine().substring(1);\n }*/\n }\n catch (Exception e) {e.printStackTrace();}\n\t}", "title": "" }, { "docid": "2adfde1615faa25f35fdd04c511a800e", "score": "0.4854284", "text": "public static String[] listarDiretorio(String endereco){\r\n File diretorio = new File(endereco);\r\n \r\n return diretorio.list();\r\n \r\n }", "title": "" }, { "docid": "0d7e41017f19a330b0f815276fe66d61", "score": "0.4850204", "text": "public StudentData(CourseCatalogue c){\n cat = c;\n fileIN= new File (\"StudentData.dat\");\n }", "title": "" }, { "docid": "8140176e79a53ce4c683c3889a43e602", "score": "0.48491517", "text": "public String getDireccion()\r\n {\r\n return Direccion;\r\n }", "title": "" }, { "docid": "53ac5ac5c3f65aa6187db5bf57838dfe", "score": "0.4848107", "text": "public PropostaSistemaDiCifratura() {\n initComponents();\n Studente[] s = Controller.recuperaUtenti();\n jList2.setListData(s);\n }", "title": "" }, { "docid": "afd34a1f81788a916d02d88ec94cb003", "score": "0.48393777", "text": "public static void main(String[] args) {\n File plik = new File(\"plik.txt\");\n System.out.println();\n System.out.println(plik.getAbsolutePath());\n System.out.println(\"Plik istnieje: \" + plik.exists());\n System.out.println(\"Plik jest katalogiem: \" + plik.isDirectory());\n\n File plikPom = new File(\"pom.xml\");\n System.out.println();\n System.out.println(plikPom.getAbsolutePath());\n System.out.println(\"Plik pom istnieje: \" + plikPom.exists());\n System.out.println(\"Plik pom jest katalogiem: \" + plikPom.isDirectory());\n\n File katalogWKtorymJestesmy = new File(\".\");\n System.out.println();\n System.out.println(katalogWKtorymJestesmy.getAbsolutePath());\n System.out.println(\"Katalog projektu istnieje: \" + katalogWKtorymJestesmy.exists());\n System.out.println(\"Katalog projektu katalogiem: \" + katalogWKtorymJestesmy.isDirectory());\n\n\n }", "title": "" }, { "docid": "0b460c3818aa37093dd51b1d43b81719", "score": "0.4835513", "text": "public String[] Letra(String idioma) {\n\n String[] letra = null;\n\n //Verificando se arquivo existe\n File caminho = new File(\"banco\\\\idioma\\\\\" + idioma.trim());\n if (!caminho.exists()) {\n return letra;\n }\n\n //pegando todas as letras existentes\n File caminhoLetra[] = caminho.listFiles();\n letra = new String[caminhoLetra.length];\n\n for (int i = 0; i < caminhoLetra.length; i++) {\n String[] quebrandoCaminho = String.valueOf(caminhoLetra[i]).split(\"\\\\\\\\\");\n\n letra[i] = quebrandoCaminho[3].substring(0, 1);\n\n }\n\n return letra;\n }", "title": "" }, { "docid": "77e3835be13e8021d9c41bfc9ca3459f", "score": "0.4831625", "text": "private void getPath() {\n\t\tpath = new JFileChooser().getFileSystemView().getDefaultDirectory().toString() + \"/Gestor de Libros\";\n\t\ttry {\n\t\t\tdecodedPath = URLDecoder.decode(path, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcreatePath(decodedPath);\n\n\t\tpath = path + \"/Log.txt\";\n\t\ttry {\n\t\t\tdecodedPath = URLDecoder.decode(path, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcreateFile(decodedPath);\n\t}", "title": "" }, { "docid": "130be30a52e4dad90ab0062dd84dd5a7", "score": "0.4831558", "text": "@Test\r\n public void testListFiles() {\r\n System.out.println(\"listFiles\");\r\n String path = System.getProperty(\"user.dir\");\r\n Asg1.listFiles(path);\r\n }", "title": "" }, { "docid": "839f3572308b4e87337419d68c393aeb", "score": "0.48272872", "text": "public String getDireccion() {\n return direccion;\n }", "title": "" }, { "docid": "839f3572308b4e87337419d68c393aeb", "score": "0.48272872", "text": "public String getDireccion() {\n return direccion;\n }", "title": "" }, { "docid": "839f3572308b4e87337419d68c393aeb", "score": "0.48272872", "text": "public String getDireccion() {\n return direccion;\n }", "title": "" }, { "docid": "82caffdb93de77dec9fc03dbb4d3d712", "score": "0.48207334", "text": "public void setStudentLocation(String studentLocation) {\n this.studentLocation = studentLocation;\n }", "title": "" }, { "docid": "8aa568eaddeb7e79c2cf2515df8899e7", "score": "0.48179218", "text": "String getSearchPath();", "title": "" }, { "docid": "3675801bd4f84e95185c032136492d77", "score": "0.48170376", "text": "public void caricaPunteggi()\r\n {\r\n ObjectInputStream in;\r\n \r\n File file = new File(this.filePath); \r\n \r\n \r\n try {\r\n if(file.exists() && file.length() > 0) {\r\n this.file=new FileInputStream(this.filePath);\r\n in = new ObjectInputStream(this.file);\r\n this.punteggi=(List<Punteggio>) in.readObject();\r\n }\r\n \r\n \r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n } catch (ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n }\r\n \r\n }", "title": "" }, { "docid": "41fbe55b94e7675f0f540c1af26ae878", "score": "0.48107168", "text": "String ouvrirFichier();", "title": "" }, { "docid": "a528405814192d199362f16412bd38b1", "score": "0.48097464", "text": "public String getDir_direccion() {\n\t\treturn dir_direccion;\n\t}", "title": "" }, { "docid": "5d8cbb4f43294795967e6604a900ba27", "score": "0.48062304", "text": "public void setDireccion(String Direccion) \r\n {\r\n this.Direccion = Direccion;\r\n }", "title": "" }, { "docid": "23473a69ee8fd59b93e3153287efe709", "score": "0.47957096", "text": "public void renomerDossier() {\r\n\r\n if (StringUtils.isEmpty(form.getNameDossierSel())) {\r\n MessageUtils.addMessage(new Message(\"Veuillez saisir un nom de dossier.\", Nature.BLOQUANT),getClass());\r\n return;\r\n }\r\n \r\n final String path =\r\n ((ServletContext) FacesContext.getCurrentInstance().getExternalContext()\r\n .getContext()).getRealPath(\"/\");\r\n\r\n final String dossiserAModifier = path + form.getPathRepertoireEnCoursCahier();\r\n final String nouveauNomDossier = path + form.getPathDepotCahier() + java.io.File.separator + \r\n form.getNameDossierParentSel() + java.io.File.separator + \r\n form.getNameDossierSel();\r\n\r\n final File dir = new File(dossiserAModifier);\r\n final File nouveau = new File(nouveauNomDossier);\r\n if (dir.exists()) {\r\n if (nouveau.exists()) {\r\n MessageUtils.addMessage(new Message(\r\n \"Un dossier existe déjà avec ce même nom.\",\r\n Nature.BLOQUANT), getClass());\r\n } else { \r\n if (!existeFichierUsedDansDossier(dossiserAModifier)) {\r\n if (dir.renameTo(nouveau)) {\r\n // maj du nom du dossier modifié\r\n selectionnerDossier(form.getPathDepotCahier() + \"/\" + \r\n form.getNameDossierParentSel() + \"/\" + \r\n form.getNameDossierSel());\r\n this.reloadTree();\r\n } else {\r\n MessageUtils.addMessage(new Message(\r\n \"Une erreur est survenue lors du renommage du dossier.\",\r\n Nature.BLOQUANT), getClass());\r\n }\r\n } else {\r\n MessageUtils.addMessage(new Message(\r\n \"Impossible de renommer ce dossier. Il contient des fichiers référencés par des pièces jointes.\",\r\n Nature.BLOQUANT), getClass());\r\n\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "3f5cdddd1d43bc4c35f9cef79edcaebe", "score": "0.47951183", "text": "public static ArrayList<String> leerPiso(){\r\n ArrayList<String> vArmas=new ArrayList();\r\n File f=new File(\"recursos/pisos.dat\");\r\n Scanner leer = null;\r\n \r\n if(!f.exists()){\r\n try {\r\n f.getParentFile().mkdirs();\r\n f.createNewFile();\r\n } catch (IOException ex) {\r\n System.out.println(\"Fallo al comprobar el archivo\");\r\n }\r\n }\r\n try {\r\n leer = new Scanner(f);\r\n while(leer.hasNext()){\r\n vArmas.add(leer.nextLine());\r\n }\r\n \r\n // vContacto = (ArrayList<Contacto>) leer.readObject();\r\n } catch (IOException ex) {\r\n //System.out.println(\"Lectura terminada\");\r\n \r\n }finally{\r\n if (leer!=null)\r\n leer.close();\r\n }\r\n \r\n return vArmas;\r\n }", "title": "" }, { "docid": "9ab91de7f5b23bd3b9b72dc0d4bcc357", "score": "0.47915974", "text": "public String readPath(ColoreFamiliare colore) {\n\t\t\n\t\tString path=null;\n\t\t\n\t\tswitch(colore) {\n\t\tcase NERO:\n\t\t\tpath = pathNero;\n\t\t\tbreak;\n\t\tcase BIANCO:\n\t\t\tpath = pathBianco;\n\t\t\tbreak;\n\t\tcase ARANCIONE:\n\t\t\tpath = pathArancione;\n\t\t\tbreak;\n\t\tcase NEUTRO:\n\t\t\tpath = pathNeutro;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn path;\n\t}", "title": "" }, { "docid": "7d8216ed5618d11113b626f9b58a0222", "score": "0.47891587", "text": "static String getDefaultTestLocation( String test ) throws IOException\n {\n return IT_LOCATION.getCanonicalPath() + File.separator + test;\n }", "title": "" }, { "docid": "7797df887c85a8124222e296d14fc3d0", "score": "0.47869477", "text": "public Usuario() {\n initComponents();\n this.setTitle(\"Menú.\");\n this.setLocationRelativeTo(null);\n TiendaDaoJDBC tienda = new TiendaDaoJDBC();\n File fichero = new File(\"tienda.db\");\n if (!fichero.exists()) {\n m.crearTablaUsuarios();\n m.registrarAdmin();\n tienda.crearTablas();\n //tienda.cargarDatosInicialesCatalogo();\n tienda.refreshArrayProductoTienda();\n }\n\n }", "title": "" }, { "docid": "b0e09eaab98cba1dc4bcfcb24489986a", "score": "0.47867578", "text": "public void carregaNovaLeitura(String filename){\n\n int sucesso;\n int numExame;\n int flag = 0; // Esta flag irá ser 0 se o Paciente for novo e 1 se ele já existir no sistema\n ArrayList<String> aux = new ArrayList<String>();\n\n Leituras teste = new Leituras();\n sucesso = teste.carregaExame(filename);\n\n if(sucesso == 1){\n\n numExame = teste.getNumExame();\n aux = teste.getListaExame();\n\n\n // Verifica se o nome do Paciente já existe\n // Se existir adiciona esta leitura na sua ficha\n // Se nao existir cria-o no sistema.\n\n\n for(int i = 0; i < pacientes.size();i++){\n // System.out.println(pacientes.get(i).getNome() + \" vs \"+ aux.get(2)); --> DEBUG\n if(pacientes.get(i).getNome().equals(aux.get(2))){\n carregaPaciente(i,aux,teste.getNumExame());\n flag = 1;\n break;\n }\n\n }\n\n if(flag == 0)\n carregaNovoPaciente(aux,teste.getNumExame()); // Apenas carrega como NOVO paciente se a flag for 0, ie, o paciente nao tiver sido detetado no sistema\n\n carregaSensores(aux,teste.getNumExame()); // Os sensores tem sempre que ser carregado, seja um paciente novo ou nao\n\n\n\n\n }\n\n }", "title": "" }, { "docid": "cbedcab6d4f71e251655f95dbb788e99", "score": "0.47867244", "text": "public boolean isItStudentWithTHisID(int id){\r\n\r\n boolean flag = false;\r\n\r\n try {\r\n File myFile = new File(Path.student);\r\n Scanner myReader = new Scanner(myFile);\r\n\r\n while (myReader.hasNextLine()){\r\n\r\n if (myReader.nextInt() == id){\r\n flag = true;\r\n break;\r\n }\r\n\r\n myReader.nextLine();\r\n }\r\n\r\n\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"admin file NOT Find !\");\r\n }\r\n return flag;\r\n }", "title": "" }, { "docid": "0efa1415d9ae2db9be81e99be54ff768", "score": "0.4781983", "text": "public File getPotDirectory();", "title": "" }, { "docid": "7dfb63889863217c7a281c0928bb86bd", "score": "0.47671074", "text": "private String getPathReal(String archivo) {\n\t\tServletContext servletContext = (ServletContext)Sessions.getCurrent().getWebApp().getServletContext();\n\t\treturn servletContext.getRealPath(archivo);\n\t}", "title": "" }, { "docid": "8d3dcf952cc95981d5d243b5d1eba6ba", "score": "0.47566885", "text": "public void readFile() {\t\r\n\t\tString sql=\"SELECT * FROM admin\";\r\n\t\tPreparedStatement st;\r\n\t\ttry {\r\n\t\t\tst = conn.prepareStatement(sql);\r\n\t\t\trs = st.executeQuery(sql);\r\n\t\t\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tString name = rs.getString(\"name\");\r\n\t\t\t int num = rs.getInt(\"id\");\r\n\t\t\t adminList.add(new Administrator(name, num));\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f274b5836e5f46fd78e491c0068ac7f1", "score": "0.47532746", "text": "public String getDirectory() {\n return super.getDirectory();\n }", "title": "" }, { "docid": "8e2271a782c59680ec883823f0bc6729", "score": "0.4752882", "text": "protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException {\n\t\t\tConfiguration conf = context.getConfiguration();\n\t\t\tString add = conf.get(\"add\") + \"2/\";\n\t\t\tFileSystem fs = FileSystem.get(conf);\n\t\t\tuserF = conf.get(\"user\");\n\t\t\tString dirPath = add;\n\t\t\tFile dir = new File(dirPath);\n\t\t\tFile[] files = dir.listFiles();\n\t\t\tif (files.length == 0) {\n\t\t\t\tSystem.out.println(\"The directory is empty\");\n\t\t\t} else {\n\t\t\t\tfor (File aFile : files) {\n\t\t\t\t\tif (aFile.getName().contains(\"part\") && !aFile.getName().endsWith(\"crc\")) {\n\t\t\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(fs.open(new Path(aFile.toString()))));\n\t\t\t\t\t\tString line;\n\t\t\t\t\t\tline = br.readLine();\n\t\t\t\t\t\twhile (line != null) {\n\t\t\t\t\t\t\t\tquery = line.split(\"\\\\t\")[1];\n\t\t\t\t\t\t\t\tString[] user1 = query.split(\";\");\n\t\t\t\t\t\t\t\tfor (String movie : user1) {\n\t\t\t\t\t\t\t\t\tString[] values = movie.split(\"::\");\n\t\t\t\t\t\t\t\t\tuser1M.put(values[0], values[1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tline = br.readLine();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "6a96709ac88bab2aaf1cbf34d3c888ed", "score": "0.47520632", "text": "public String getDir_poblacion() {\n\t\treturn dir_poblacion;\n\t}", "title": "" }, { "docid": "160b673c2ddc5719f317ede27e76e804", "score": "0.47519082", "text": "public String getBaseDirectory();", "title": "" } ]
521b75ae5cac3d669cf879a9718c05fd
Tests getting init parameter map.
[ { "docid": "02fa45b6275769e2d033df78bc3d46d5", "score": "0.7814299", "text": "public void testGetInitParameterMap() {\n Map<String, String> initParams = new HashMap<String, String>();\n Vector<String> keys = new Vector<String>();\n keys.add(\"one\");\n keys.add(\"two\");\n \n initParams.put(\n ChainedTilesApplicationContextFactory.FACTORY_CLASS_NAMES,\n RepeaterTilesApplicationContextFactory.class.getName());\n initParams.put(\n ChainedTilesRequestContextFactory.FACTORY_CLASS_NAMES,\n RepeaterTilesRequestContextFactory.class.getName());\n initParams.put(\"one\", \"oneValue\");\n initParams.put(\"two\", \"twoValue\");\n EasyMock.expect(context.getInitParams()).andReturn(initParams)\n .anyTimes();\n EasyMock.replay(context);\n \n Map<String, String> map = context.getInitParams();\n \n assertEquals(INIT_PARAMS_SIZE, map.size());\n assertTrue(map.containsKey(\"one\"));\n assertTrue(map.containsKey(\"two\"));\n assertEquals(\"oneValue\", map.get(\"one\"));\n assertEquals(\"twoValue\", map.get(\"two\"));\n }", "title": "" } ]
[ { "docid": "b7de2d18affacdeb0cf98a18f23c6f8b", "score": "0.7884221", "text": "@Test\n public final void testInit()\n {\n Params params = new Params();\n params.put(\"a\", \"a value\");\n assertEquals(params.get(\"a\"), \"a value\", \"values are not equal\");\n }", "title": "" }, { "docid": "a7e1e1e12e3f3208071e9911242a8e9f", "score": "0.7074965", "text": "Properties getInitParameters();", "title": "" }, { "docid": "c0daccd7b3902245e47d6d32eddc0c25", "score": "0.6895125", "text": "void init_parameters() {\n }", "title": "" }, { "docid": "8bbf26c95d51fc4a3e84802636c614b4", "score": "0.68291974", "text": "protected void initializeInputParameters( Map<String,Object> inputParameterMap ) {\n\t}", "title": "" }, { "docid": "9ba32dad1502a2df47bf1c83c8c95612", "score": "0.68039286", "text": "Map<String, String> getInitParams() {\n return initParams;\n }", "title": "" }, { "docid": "277379d07d50b20a9947ee9c5dbf4ad1", "score": "0.66481155", "text": "public void init(Map<String, Object> params);", "title": "" }, { "docid": "429cb858a738d9145c987d2bf482b36a", "score": "0.65995145", "text": "@Test\n public void testInit()\n {\n assertEquals(\"Wrong position\", POS, info.getPosition());\n assertEquals(\"Wrong time\", TIME, info.getTime());\n }", "title": "" }, { "docid": "a2a75a008578a0fceffa8346427e40ef", "score": "0.65603113", "text": "public void testGetParameters() {\n\t\tassertEquals(new Hashtable<String, IParameter>(), action.getParameters());\n\t}", "title": "" }, { "docid": "ede6989b81d14217cb1185f708274370", "score": "0.6423075", "text": "public void testInit() {\r\n }", "title": "" }, { "docid": "62cf48f44e4b8ed416ecd81e12e77730", "score": "0.64122146", "text": "@Test\n\tpublic void testInit() {\n\t\tobj.init(\"PEPITEOR\", 5000);\n\t\tAssert.assertTrue(true);\n\t}", "title": "" }, { "docid": "a5ed290101409eac9d998041dda80320", "score": "0.6410271", "text": "public void initSingleParams()\r\n\t\t {\n\t\t }", "title": "" }, { "docid": "2ef5d3acc2dbfac913bf729e5139aac6", "score": "0.6320268", "text": "@Test\r\n public void init() {\n }", "title": "" }, { "docid": "8ed33a354aec6476cfef68d79b71ddf0", "score": "0.6274144", "text": "@BeforeClass\n public static void getMap(){\n map = (new MapReader().readMap(\"src/main/resources/Maps\"));\n grid = map.getGrid();\n movement = new DummyPhysics(BOX_HEIGHT);\n player = new Player();\n actions = new boolean[3];\n }", "title": "" }, { "docid": "1504a8e794c0041afd5fec4e9509a100", "score": "0.62658817", "text": "private synchronized void createParamsMap() {\n\n if (urParams == null) {\n\n urParams = new HashMap<>(1);\n\n }\n }", "title": "" }, { "docid": "2207e8593c05b08bdc04660795f45b77", "score": "0.6230043", "text": "public void testGetValueMap()\n {\n this.testSetValueMap();\n }", "title": "" }, { "docid": "71ee2de44ba5681319db83a95b07e098", "score": "0.6205701", "text": "public static void init() {\n\t\tmaps.put(\"testmap\", new Map());\n\t\tmaps.put(\"testmap1\", new Map());\n\t\tmaps.put(\"testmap2\", new Map());\n\t\tmaps.put(\"testmap3\", new Map());\n\t}", "title": "" }, { "docid": "d7470537585a4439fe06d88b805d6471", "score": "0.6169155", "text": "@Before\n public void initializeVariables(){\n logic = new MapsLogic();\n users = new ArrayList<>();\n gender = \"randomGender\";\n\n }", "title": "" }, { "docid": "f3281d68f381da6d8fb56f2cea1a4131", "score": "0.6152755", "text": "Map<String, String> getParameters();", "title": "" }, { "docid": "11dd1eaf4e1a9bb8c868f4baa4600ced", "score": "0.61373854", "text": "@Test\n public void init() {\n assertThat(game.getGameStatus()).isEqualTo(GameStatus.PLAYERS_TURN);\n assertThat(game.getBank().getNumberOfCards()).isEqualTo(1);\n assertThat(game.getPlayer().getNumberOfCards()).isEqualTo(2);\n }", "title": "" }, { "docid": "6a426094e6567af1bbe226ca9a35b606", "score": "0.61321294", "text": "@Before\n public void init() {\n }", "title": "" }, { "docid": "a6b39e010865f14358989e29ee1080f1", "score": "0.6083533", "text": "public boolean init(HashMap props);", "title": "" }, { "docid": "7b44b57664c3d5118d00ef6411c60d7b", "score": "0.60707855", "text": "@BeforeClass\n public static void beforeClass() throws IOException {\n String path = System.getProperty(\"user.home\");\n path += \"/.geotoolkit.org/test-pgfeature.properties\";\n final File f = new File(path);\n Assume.assumeTrue(f.exists());\n final Properties properties = new Properties();\n properties.load(new FileInputStream(f));\n params = Parameters.castOrWrap(org.geotoolkit.parameter.Parameters.toParameter((Map)properties, PARAMETERS_DESCRIPTOR, false));\n }", "title": "" }, { "docid": "7f46de399e2588b37c739fc5a4d68a4e", "score": "0.60533273", "text": "protected static TaskInfo initMockTaskInfo() {\n return initMockTaskInfo(new String[] {\n \"basic.required.parameter.1\", \n \"basic.required.parameter.2\",\n \"basic.parameter.1\",\n \"basic.parameter.2\",\n \"advanced.parameter.1\",\n \"advanced.parameter.2\"\n });\n }", "title": "" }, { "docid": "e41130b18c15c76fc6a3d0a6a641a90d", "score": "0.60397696", "text": "@Test\n public final void construtorTest() {\n Map<String, String> test = this.constructorTest();\n Map<String, String> ref = this.constructorRef();\n assertEquals(ref, test);\n }", "title": "" }, { "docid": "2fa77a54a4840b4dac855022707ae588", "score": "0.6029948", "text": "@Test\n public void testValidParametersNullExpectedNull() {\n Map params = null;\n List<String> expected = null;\n Boolean expResult = false;\n Boolean result = Util.validParameters(params, expected);\n assertEquals(expResult, result);\n \n }", "title": "" }, { "docid": "0a00ea17c417a0ffb7266170c3b36269", "score": "0.6014064", "text": "public void init(Hashtable parameters) throws Exception;", "title": "" }, { "docid": "5e392cc8de9a68b4590659d472436ff3", "score": "0.6003619", "text": "public abstract String getInitParameter(String strParamName_p);", "title": "" }, { "docid": "d49370e310b91505427f6310245760a4", "score": "0.5972286", "text": "public Map<String, Method> getInitFunctionMap()\n/* */ {\n/* 266 */ return null;\n/* */ }", "title": "" }, { "docid": "890f913bcc18ebed602592ed651d7452", "score": "0.59693396", "text": "@Override\n\tpublic void testInit() {\n\t\tSystem.out.println(\"testInit()\");\n\t}", "title": "" }, { "docid": "d523fb6043d6dd577b9288108b8e0a9b", "score": "0.5968563", "text": "@Override\n public void testInit() {\n }", "title": "" }, { "docid": "82155b4b6fcf6a954bb8e835979c0f34", "score": "0.5962763", "text": "public void testGetMap(){\n\t\timporter.setOrganizationMap(null);\n\n\t\timporter.setOrganizationRepository(organizationRepository);\n\t\tOrganization Org1 = Fixtures.createOrganization(\"LocalOrg-1\", \"1234\");\n\t\tOrganization Org2 = Fixtures.createOrganization(\"RemoteOrg-1\", \"4321\");\n\t\tList<Organization> allOrganizations = new ArrayList<Organization>();\n\t\tallOrganizations.add(Org1);\n\t\tallOrganizations.add(Org2);\n\t\t\n\t\texpect(organizationRepository.getAllOrganizations()).andReturn(allOrganizations).anyTimes();\n\t\treplayMocks();\n\t\torganizationMap = importer.getOrganizationMap();\n\t\tverifyMocks();\n\t\tassertNotNull(organizationMap);\n\t\t\n\t\t//When Map is NOT null.\n\t\torganizationMap = new HashMap<String,Organization>();\n\t\tMap returnedMap = null;\n\t\torganizationMap.put(\"1234\", Org1);\n\t\torganizationMap.put(\"4321\", Org2);\n\t\timporter.setOrganizationMap(organizationMap);\n\t\treturnedMap = importer.getOrganizationMap();\n\t\tassertNotNull(returnedMap);\n\t\t\n\t}", "title": "" }, { "docid": "a2f34bce845a7111a7b0093a28f7ce65", "score": "0.59584284", "text": "public Map<String, Object> getParameters();", "title": "" }, { "docid": "33135706e302dd3ddebe403b6aca1513", "score": "0.59281236", "text": "public void init() throws ServletException\n\t{\n\t\tServletConfig config = getServletConfig();\n\t\t// traiter les parametres de configuration\n\t\tString val = null;\n\t\tfor (int i = 0; i< parametres.length; i++){\n\t\t\tval = config.getInitParameter(parametres[i]);\n\t\t\tif (val != null){\n\t\t\t\t//memoriser la valeur du param\n\t\t\t\tparams.put(parametres[i], val);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7e28444812c84b2fef8ab3b44bedb8bd", "score": "0.5920728", "text": "private void initParam() {\n\t\tInitProductModel();\n\t}", "title": "" }, { "docid": "35cf3d3ca940106b79ad2c28442d6c81", "score": "0.588309", "text": "protected abstract void initVariables();", "title": "" }, { "docid": "d4e314ecdc792cdf27cb45078cabae1f", "score": "0.5874518", "text": "private void loadParams(Properties props) {\n if (props.containsKey(Parameters.Names.SEED))\n SEED = Long.valueOf(props.getProperty(Parameters.Names.SEED)).longValue();\n if (props.containsKey(Parameters.Names.FITNESS))\n FITNESS = props.getProperty(Parameters.Names.FITNESS); \n if (props.containsKey(Parameters.Names.MUTATION_RATE))\n MUTATION_RATE = Double.valueOf(props.getProperty(Parameters.Names.MUTATION_RATE));\n if (props.containsKey(Parameters.Names.XOVER_RATE))\n XOVER_RATE = Double.valueOf(props.getProperty(Parameters.Names.XOVER_RATE));\n if (props.containsKey(Parameters.Names.POP_SIZE))\n POP_SIZE = Integer.valueOf(props.getProperty(Parameters.Names.POP_SIZE));\n if (props.containsKey(Parameters.Names.NUM_GENS))\n NUM_GENS = Integer.valueOf(props.getProperty(Parameters.Names.NUM_GENS));\n }", "title": "" }, { "docid": "e5bb431b98ef4444a7e2bde3fa177ea3", "score": "0.58659273", "text": "@Test\n public void setup() throws Exception {\n BasicHttpRequest request = new BasicHttpRequest(\"get\", TEST_URI_PARAMETERS);\n HttpSessionContext context = new HttpSessionContext();\n context.setAttribute(HttpCoreContext.HTTP_CONNECTION, getConnection());\n context.setAttribute(TEST_REQ_ATTR_NAME1, TEST_VALUE1);\n context.setAttribute(TEST_REQ_ATTR_NAME2, TEST_VALUE2);\n context.setAttribute(TEST_REQ_ATTR_NAME3, TEST_VALUE3);\n\n Interpreter i = new Interpreter();\n BeanShellUtils.setup(i, request, RESPONSE_OK, context);\n \n Map<String, List<String>> attributes = new HashMap<>();\n attributes.put(TEST_REQ_ATTR_NAME1, Arrays.asList(TEST_VALUE1));\n attributes.put(TEST_REQ_ATTR_NAME2, Arrays.asList(TEST_VALUE2));\n attributes.put(TEST_REQ_ATTR_NAME3, Arrays.asList(TEST_VALUE3));\n \n URI uri = new URI(request.getRequestLine().getUri());\n ste.web.beanshell.BugFreeBeanShellUtils.checkSetup(i, QueryString.parse(uri).getMap(), attributes);\n }", "title": "" }, { "docid": "6dbc6a1ba52376ad561121066902f0bb", "score": "0.58572423", "text": "protected abstract void additionalInit(final ParameterValueProviderInitializationContext context);", "title": "" }, { "docid": "f32221f26bf794c0d28e2027f1619c69", "score": "0.5855843", "text": "@Test\n public void testGetParameters() {\n assertEquals(parameters, jsoFull.getParameters());\n }", "title": "" }, { "docid": "8b36dc3b2664c5ef78a62747a0ccce0d", "score": "0.5843355", "text": "default void init(Map<String, String> configProperties) {\n }", "title": "" }, { "docid": "a4e394e2ab2292d6a4c3be982a5341f0", "score": "0.5839562", "text": "@Test\n\tpublic void testPostInit() {\n\t\tobj.init(\"PEPITEOR\", 5000);\n\t\tAssert.assertTrue(obj.nom().equals(\"PEPITEOR\") && obj.prix() == 5000\n\t\t\t\t&& !obj.estVendu());\n\t}", "title": "" }, { "docid": "3b229c304550a6c281a2aa25ada8dfbb", "score": "0.5834624", "text": "@Test\n public void getParameter() {\n assertThat(PARAMETERS.getParameter(0)).isEqualTo(CORRELATION);\n assertThat(PARAMETERS.getParameter(1)).isEqualTo(KAPPA_1);\n assertThat(PARAMETERS.getParameter(2)).isEqualTo(KAPPA_2);\n for (int i = 0; i < VOLATILITY_1.size(); i++) {\n assertThat(PARAMETERS.getParameter(3 + i)).isEqualTo(VOLATILITY_1.get(i));\n }\n for (int i = 0; i < VOLATILITY_2.size(); i++) {\n assertThat(PARAMETERS.getParameter(3 + VOLATILITY_1.size() + i)).isEqualTo(VOLATILITY_2.get(i));\n }\n }", "title": "" }, { "docid": "585e8ccd9ec1b91af9b2e16d5ee768f4", "score": "0.58316654", "text": "@Ignore\n public void testArgs() {\n System.out.println(\"args\");\n String[] input = null;\n Map<String, String> expResult = null;\n Map<String, String> result = Util.args(input);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "a873795cfbf32df8c2fe630542d83954", "score": "0.58225846", "text": "public CustomMap<String, String> getTestParamMap(Map<String,String> requestMap) throws Exception {\r\n\t\tCustomMap<String, String> currentTestParamMap = new CustomMap<String, String>();\r\n\t\tif(requestMap != null){\r\n\t\t\tcurrentTestParamMap.replaceParam(CaaConstants.FEEDBACKSTATE, \"\");\r\n\t\t\tcurrentTestParamMap.replaceParam(CaaConstants.FORMER_SUBMISSION, String.valueOf(requestMap.get(CaaConstants.SUBMISSION_ID)));\r\n\t\t\tcurrentTestParamMap.replaceParam(CaaConstants.CLASSWARE_NOTIFY, \"\");\r\n\t\t\tcurrentTestParamMap.replaceParam(CaaConstants.CLASSWARE_NOTIFY_FAILURES, \"\");\r\n\t\t\tcurrentTestParamMap.replaceParam(classware_hm.HEADER_INSTRUCTIONS, tp_utils.convertFromUTF8(requestMap.get(classware_hm.HEADER_INSTRUCTIONS)));\r\n\t\t\tcurrentTestParamMap.replaceParam(classware_hm.P_INSTRUCTIONS, requestMap.get(classware_hm.P_INSTRUCTIONS));\r\n\t\t}\r\n\t\treturn currentTestParamMap;\r\n\t}", "title": "" }, { "docid": "6238c6ebf9d0bb077b80e5fdd27ad3b1", "score": "0.58012277", "text": "public abstract void prepareFirstParams(Map<String, String> map);", "title": "" }, { "docid": "010ac0f90f2225e535205dda448fa43f", "score": "0.5800911", "text": "private void setUpMapIfNeeded() {\n if (mMap != null) {\n setUpMap();\n }\n }", "title": "" }, { "docid": "cdbddd380e04c67b60859e20a482f448", "score": "0.58001906", "text": "private GameMap setupMap(GameMap initMap)\n\t{\n\t\tGameMap map = initMap;\n\t\tfor(RegionData region : map.regions)\n\t\t{\n\t\t\tregion.setPlayerName(\"neutral\");\n\t\t\tregion.setArmies(2);\n\t\t}\n\t\treturn map;\n\t}", "title": "" }, { "docid": "3ee2cced5db7360a6674cb2754198711", "score": "0.57907426", "text": "public static void init() { }", "title": "" }, { "docid": "16d0033121089fbab4cd75c533a88e7f", "score": "0.57899183", "text": "public MapTester()\n {\n // initialise instance variable\n contacts = new HashMap<>();\n fillContacts();\n }", "title": "" }, { "docid": "3c398f4215785505c4019c32b243a599", "score": "0.5787437", "text": "public static void init() {\n }", "title": "" }, { "docid": "d062f5bc896175044dfebd43d6387039", "score": "0.5781213", "text": "@Override\n\tpublic void onInit(ConfigCore core, Hashtable<String, String> map) {\n\t\t\n\t}", "title": "" }, { "docid": "244c5ffd82eec27ab64464e1e9de0f27", "score": "0.5778723", "text": "private void init() {\n\t\tinitAddress();\r\n\t\tinitCredential();\r\n\t\tinitParams();\r\n\t}", "title": "" }, { "docid": "3ad9f2681e037cacb98e9455d77bb9aa", "score": "0.57735646", "text": "@Test\n\tpublic void testValidCreateMap() {\n\t\tString mapName = \"validMapTest\";\n\t\tMap map = new Map(mapName);\n\t\tboolean isMapCreated = map.validateAndCreateMap(sb, mapName);\n\t\tassertTrue(isMapCreated);\n\t}", "title": "" }, { "docid": "feed316e3ad011dd389280665a97b6be", "score": "0.5768883", "text": "@Override\r\n public void init() throws ServletException {\n \tS=getInitParameter(\"S\");\r\n \tF=getInitParameter(\"F\");\r\n }", "title": "" }, { "docid": "57866ced20b5510dc4158d67b93da23d", "score": "0.5768033", "text": "@Test\n\tpublic void testInitializeSuccess() {\n\t\tBpmsRestProxy proxyMock = PowerMockito.mock(BpmsRestProxy.class);\n\t\tMain.setProxy(proxyMock);\n\t\t\n\t\tMain.initialize();\n\t\tassertTrue(Main.getJobConsole() != null && Main.getKieConsole() != null &&\n\t\t\t\tMain.getProcessConsole() != null && Main.getQueryConsole() != null &&\n\t\t\t\tMain.getUiConsole() != null && Main.getUserTaskConsole() != null);\n\t}", "title": "" }, { "docid": "0f7b8b89d8bb981e38f9996ab49a3961", "score": "0.57578325", "text": "@Override\r\n\tprotected Map<String, String> getParams() throws AuthFailureError {\n\t\treturn mMap;\r\n\t}", "title": "" }, { "docid": "51845220e3f8d9792b697a0eafc42dca", "score": "0.57568717", "text": "@Test (expected = InvalidParametersException.class)\n public void testNullParameters() {\n PopulationParameters.get().isValid();\n }", "title": "" }, { "docid": "647b3d3a624de36109e8878d3527c73a", "score": "0.575347", "text": "public static void init() {\n\t}", "title": "" }, { "docid": "2c30f99f171bb4fe69322a0371033a79", "score": "0.57515067", "text": "public Map<String, String[]> getParameterMap()\r\n/* 86: */ {\r\n/* 87:102 */ return getExternalContext().getRequestParameterValuesMap();\r\n/* 88: */ }", "title": "" }, { "docid": "a2319adb14965f68b1b42cf949571570", "score": "0.57484365", "text": "Map<String, String[]> getParameterMap();", "title": "" }, { "docid": "b88478da9c8c4158854fbe4b9b12d33e", "score": "0.574115", "text": "@Test\n\tpublic void testInitPositif() {\n\t\ttestedPlayer.init(engine.getCurrentEnvironnement(), playerX, playerY, null);\n\t\tassertTrue(true);\n\t}", "title": "" }, { "docid": "c1eb725d2c6f2df2a48644d1fd618d9b", "score": "0.5740776", "text": "private Map<String, String> standardishParameters() {\n/* 2607 */ return addStandardishParameters(new HashMap<String, String>());\n/* */ }", "title": "" }, { "docid": "b1b081129876e1c7ef3843beb849c128", "score": "0.5732121", "text": "@Test\n public void parametersTest() {\n // TODO: test parameters\n }", "title": "" }, { "docid": "86921b549b9f681a0e9c0d9c03ab1b69", "score": "0.57305205", "text": "@Override\n\n public java.util.Map<String, String> getParamsMap() {\n return internalGetParams().getMap();\n }", "title": "" }, { "docid": "96f98cb5c9efb5bb6e1f50087f360697", "score": "0.57275337", "text": "@Test\n public void onInitTest() {\n assertNotNull(player.getWarehouseDepot());\n assertNotNull(player.getDevelopmentSlot());\n assertNotNull(player.getWarehouseDepot());\n assertNotNull(player.getStrongbox());\n assertNull(player.getStartingCards());\n assertFalse(player.getFaithTrackPanels()[0]);\n assertFalse(player.getFaithTrackPanels()[1]);\n assertFalse(player.getFaithTrackPanels()[2]);\n assertEquals(player.getPosition(), 0);\n }", "title": "" }, { "docid": "bea39e15272c4c6818db4063222ebcf7", "score": "0.5727313", "text": "private void init() {\n\t\tif (StatusInfoUtil.mapsAreEmpty()) {\n\t\t\tinitForce();\n\t\t}\n\t}", "title": "" }, { "docid": "2c5ce6332d3c7456a500b7188a99c300", "score": "0.5724161", "text": "void init(GameParameters gameParameters);", "title": "" }, { "docid": "ad213619b488d7e451b5bf99324d9940", "score": "0.57192194", "text": "@Before\n public void initTest() {\n }", "title": "" }, { "docid": "229a70d481924829deec962d4aa9542c", "score": "0.57143015", "text": "public void init() {}", "title": "" }, { "docid": "229a70d481924829deec962d4aa9542c", "score": "0.57143015", "text": "public void init() {}", "title": "" }, { "docid": "229a70d481924829deec962d4aa9542c", "score": "0.57143015", "text": "public void init() {}", "title": "" }, { "docid": "23992757df80fa6a3bd2bc4473f8497a", "score": "0.5711092", "text": "protected void initSearchSpace(List<Param> parameterMap){\n is.dimension = parameterMap.size();//(int)optimizerParams.get(0).getValue();\n is.lowerBounds = new float[is.dimension];\n is.upperBounds = new float[is.dimension];\n for(int i = 0; i < is.dimension; ++i) {\n is.lowerBounds[i] = ((Number)parameterMap.get(i).getLowerBound()).floatValue();\n is.upperBounds[i] = ((Number)parameterMap.get(i).getUpperBound()).floatValue();\n }\n //todo more understandable way..\n is.populationSize = (int)optimizerParams.get(0).getValue();\n }", "title": "" }, { "docid": "ee28a37590098eec597b0e6868620135", "score": "0.5707032", "text": "@Before\n\n\tpublic void setUp() {\n\n\t\tcontextMap = new HashMap<String,Object>();\n\n\t}", "title": "" }, { "docid": "2ef4b73056dec88383b6610c34a6fa4a", "score": "0.57047594", "text": "@Test\n public void testCtor() {\n instance = new ServiceCreditPreference();\n\n assertFalse(\"'useAgents' should be correct.\", (Boolean) TestsHelper.getField(instance, \"useAgents\"));\n assertFalse(\"'useStatusBar' should be correct.\", (Boolean) TestsHelper.getField(instance, \"useStatusBar\"));\n assertFalse(\"'useMessageBox' should be correct.\", (Boolean) TestsHelper.getField(instance, \"useMessageBox\"));\n assertNull(\"'otherSetting' should be correct.\", TestsHelper.getField(instance, \"otherSetting\"));\n }", "title": "" }, { "docid": "33ac92d1cf286832ebcbe8714954360c", "score": "0.57033557", "text": "public void init(Map<String, Object> context);", "title": "" }, { "docid": "2bb87f506d985a884f6ef985cc53f396", "score": "0.5702956", "text": "private static void init(){\n\t\t\t }", "title": "" }, { "docid": "a800bf88766287243d030ac55d1e80d8", "score": "0.5697892", "text": "protected abstract void init();", "title": "" }, { "docid": "a800bf88766287243d030ac55d1e80d8", "score": "0.5697892", "text": "protected abstract void init();", "title": "" }, { "docid": "a800bf88766287243d030ac55d1e80d8", "score": "0.5697892", "text": "protected abstract void init();", "title": "" }, { "docid": "9a6236b51c7fe5ad34625d8e5fa2a844", "score": "0.56975037", "text": "void readInitParameter(){\n \n String list = getInitParam( AVAILABLE_SCALES );\n if( list == null ){\n list = \"10000;25000;50000;100000;500000;1000000\";\n }\n String[] tmp = list.split( \";\" );\n\n HttpSession ses = request.getSession();\n ses.setAttribute( AVAILABLE_SCALES, tmp );\n //TODO read init parameters and build scale list? \n \n }", "title": "" }, { "docid": "b5f98df2a78f6e56684a9c86b47f0177", "score": "0.5695665", "text": "private void init()\n {\n }", "title": "" }, { "docid": "5d1cb708b3c10ba3e64caaaf3a68577a", "score": "0.56890875", "text": "private void init() {\n }", "title": "" }, { "docid": "5d1cb708b3c10ba3e64caaaf3a68577a", "score": "0.56890875", "text": "private void init() {\n }", "title": "" }, { "docid": "5d1cb708b3c10ba3e64caaaf3a68577a", "score": "0.56890875", "text": "private void init() {\n }", "title": "" }, { "docid": "5d1cb708b3c10ba3e64caaaf3a68577a", "score": "0.56890875", "text": "private void init() {\n }", "title": "" }, { "docid": "5d1cb708b3c10ba3e64caaaf3a68577a", "score": "0.56890875", "text": "private void init() {\n }", "title": "" }, { "docid": "5d1cb708b3c10ba3e64caaaf3a68577a", "score": "0.56890875", "text": "private void init() {\n }", "title": "" }, { "docid": "e2ebc571a00c8527f8762e2268291b32", "score": "0.56858855", "text": "Map<String, String> keygen(Map<String, String> initVars);", "title": "" }, { "docid": "fa45c63587c882ad107f19eb784300e5", "score": "0.5685786", "text": "@Override\n\n public java.util.Map<String, String> getParamsMap() {\n return internalGetParams().getMap();\n }", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.568544", "text": "protected void init() {}", "title": "" }, { "docid": "019b4f988b5fa2e22da9e83efa541fa4", "score": "0.56766564", "text": "void testSetUpEntrySet(Map map, boolean validate) {\n if (map instanceof Hashtable) { return; }\n if (map instanceof FastHashMap) { return; }\n\n Map toAdd = new HashMap();\n addMappings(toAdd, 3);\n\n if (validate) {\n assertMappings(toAdd, map);\n } else {\n synchronized (map) {\n map.putAll(toAdd);\n }\n tryReadOnlyEntrySet(map);\n }\n\n }", "title": "" }, { "docid": "aa5a2a7ea55097c5029580239d259eb4", "score": "0.5675893", "text": "public void initDefaultValues() {\n }", "title": "" }, { "docid": "aa5a2a7ea55097c5029580239d259eb4", "score": "0.5675893", "text": "public void initDefaultValues() {\n }", "title": "" }, { "docid": "48426cc795a88aac11c9420f04e13a45", "score": "0.5673673", "text": "@Test\n public void testGetZeroParameters() {\n assertNull(jso.getParameters());\n }", "title": "" }, { "docid": "4ea411e88fb4ad9c031b7aa9e835701c", "score": "0.56655544", "text": "private void initValues() {\n \n }", "title": "" }, { "docid": "07c89db37cb6142eb24059af0a4efcf8", "score": "0.5663463", "text": "protected void initVariables() {\n\t\t\n\t}", "title": "" }, { "docid": "0791ffb0a6c337bd61c0e123f571f951", "score": "0.56596005", "text": "@Test\n\tpublic void custMapGeneratorTest(){\n\t\ttry {\n\t\t\tmapcntrl.init(\"LoadMap\", Config.getProperty(\"testMap\"));\n\t\t\tcustMap.getContinent(\"test\");\n\t\t\tcustMap.getCountry(\"test\");\n\t\t} catch (Exception e) {\n\t\t\tassertTrue(e!=null);\n\t\t}\n\t}", "title": "" }, { "docid": "d133f0b6930218cad558569b11d1f30b", "score": "0.565915", "text": "@Before\n public void setUp() {\n cr = new CrimeRecord(caseID, date, arrest, domestic, iucr, fbiCD, block, beat, ward, xCoord, yCoord, latitude, longitude, location);\n map = new OR_Map(cr);\n }", "title": "" }, { "docid": "a8bc1d14138c066707c7e71e0439f6ec", "score": "0.5657715", "text": "@Test\n public void mapTest() {\n String map = \"map\";\n\n lobby2.setCurrentMap(map);\n\n Assert.assertEquals(map, lobby2.getCurrentMap());\n\n }", "title": "" }, { "docid": "cf6f643abfd4395d7884c01748d2193c", "score": "0.56541663", "text": "protected abstract void initializeSupportedProperties();", "title": "" } ]
59dd0a6c5cf26d61c52f9eb1f558d4f4
Util method to write an attribute without the ns prefix
[ { "docid": "6cf7f91717851719d66f413e948c381e", "score": "0.0", "text": "private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,\n javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {\n\n java.lang.String attributeNamespace = qname.getNamespaceURI();\n java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);\n if (attributePrefix == null) {\n attributePrefix = registerPrefix(xmlWriter, attributeNamespace);\n }\n java.lang.String attributeValue;\n if (attributePrefix.trim().length() > 0) {\n attributeValue = attributePrefix + \":\" + qname.getLocalPart();\n } else {\n attributeValue = qname.getLocalPart();\n }\n\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName, attributeValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace, attName, attributeValue);\n }\n }", "title": "" } ]
[ { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "cfbfc185331f15d70fb8ef4d7dc7cdc1", "score": "0.72337466", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.72174", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.7138928", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.7138928", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.7138928", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.7138928", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.7138928", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.7138928", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" } ]
48a47a6429db8e036ed611187396e786
Setting on Touch Listener for handling the touch inside ScrollView
[ { "docid": "f3e23441f11908f53380fcc47c473fd8", "score": "0.6683119", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n // Disallow the touch request for parent scroll on touch of child view\n v.getParent().requestDisallowInterceptTouchEvent(true);\n return false;\n }", "title": "" } ]
[ { "docid": "1c41b103f7ca7f89a809ace6a9ee56f8", "score": "0.72433746", "text": "@Override\n\t\t\t\tpublic void onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\t\t\t\tfloat arg3) {\n\t\t\t\t\tonTouchScroll(arg0,arg1,arg2,arg3);\n\t\t\t\t}", "title": "" }, { "docid": "1c41b103f7ca7f89a809ace6a9ee56f8", "score": "0.72433746", "text": "@Override\n\t\t\t\tpublic void onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\t\t\t\tfloat arg3) {\n\t\t\t\t\tonTouchScroll(arg0,arg1,arg2,arg3);\n\t\t\t\t}", "title": "" }, { "docid": "1c41b103f7ca7f89a809ace6a9ee56f8", "score": "0.72433746", "text": "@Override\n\t\t\t\tpublic void onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\t\t\t\tfloat arg3) {\n\t\t\t\t\tonTouchScroll(arg0,arg1,arg2,arg3);\n\t\t\t\t}", "title": "" }, { "docid": "34739da5497fcab4d369358e324d92a0", "score": "0.72342545", "text": "private void addScrollListener() {\n scrollContainer.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n return scrollingLocked;\n }\n });\n }", "title": "" }, { "docid": "aabb96b592f5980719f827f1ec78dbec", "score": "0.72036636", "text": "@Override\n public void onOnTouchEvent(OnTouchEvent notification) {\n\n }", "title": "" }, { "docid": "126397f4403ac0b37b8b75924829a4fb", "score": "0.7186649", "text": "public void onTouch(MotionEvent event);", "title": "" }, { "docid": "d4bf3bd9678ae787720644b2efc01144", "score": "0.70997363", "text": "@Override\n\tpublic void setOnTouchListener(OnTouchListener l) {\n\t\tsuper.setOnTouchListener(l);\n\t}", "title": "" }, { "docid": "9558d6a7858c5a66ab13a978637e9941", "score": "0.7099121", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return true;\n }", "title": "" }, { "docid": "9558d6a7858c5a66ab13a978637e9941", "score": "0.7099121", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return true;\n }", "title": "" }, { "docid": "4a9223b895bb7c5f89d68c54445e1124", "score": "0.7058478", "text": "@Override\n\tprotected void onTouch() {\n\t\t\n\t}", "title": "" }, { "docid": "476323d3f3ff880eecace75f42fb4281", "score": "0.7037033", "text": "@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\treturn gestureDetector.onTouchEvent(event);\n\t\t\t\t}", "title": "" }, { "docid": "46b4c371ac69ba5e78d59b71340084a2", "score": "0.70144004", "text": "@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n mDetector.onTouchEvent(motionEvent);\n return true;\n }", "title": "" }, { "docid": "c508eea69373dd0a8db723868bb29f7b", "score": "0.69823843", "text": "@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\n\t\t\t\t\treturn gestureDetector.onTouchEvent(event);\n\t\t\t\t}", "title": "" }, { "docid": "c508eea69373dd0a8db723868bb29f7b", "score": "0.69823843", "text": "@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\n\t\t\t\t\treturn gestureDetector.onTouchEvent(event);\n\t\t\t\t}", "title": "" }, { "docid": "c508eea69373dd0a8db723868bb29f7b", "score": "0.69823843", "text": "@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\n\t\t\t\t\treturn gestureDetector.onTouchEvent(event);\n\t\t\t\t}", "title": "" }, { "docid": "1acd142d5089f039d69d431035f71214", "score": "0.6971407", "text": "@Override\n\t\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\t\t\treturn true;\n\t\t\t\t}", "title": "" }, { "docid": "361f34203b0a24d5680e3cf803dd8f8e", "score": "0.6964822", "text": "@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\treturn gesture.onTouchEvent(event);\n\t\t\t\t}", "title": "" }, { "docid": "214a738cb5cfc14e1642be781daf74a4", "score": "0.6939046", "text": "@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n return true;\n }", "title": "" }, { "docid": "b6f30ec3d42181d55e1c0a3301693e8b", "score": "0.6910854", "text": "@Override\n public void setupTouchListener() {\n setOnTouchListener(new OnTouchListener() {\n public boolean onTouch(View v, MotionEvent event) {\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n // x1 = event.getX();\n return true;\n case MotionEvent.ACTION_UP:\n Widget pressed = controls.depressedButton(event);\n if (pressed != null) {\n toggle(pressed);\n }\n //if (royalWidget.withinBounds(event)) {\n // toggleRoyal();\n //}\n //if (selectWidget.withinBounds(event)) {\n // selectPaper();\n //}\n return true;\n }\n return false;\n }\n });\n }", "title": "" }, { "docid": "05e6c4afd1b228d21675bc70299077d0", "score": "0.69059545", "text": "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t return gestureDetector.onTouchEvent(event);\n\t}", "title": "" }, { "docid": "b2d614145a567bf57971f71ef52244d9", "score": "0.68820196", "text": "private void clickIV1() {\n\t\t\timageView.setClickable(false);\n\t\t\timageView.setFocusable(true);\n\t\t\timageView.setFocusableInTouchMode(true);\n\t\t\t\n\t\t\timageView.setOnTouchListener(new OnTouchListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn gesture.onTouchEvent(event);\n\t\t\t\t}\n\t\t\t});\n\t\t\tscrollView.setOnTouchListener(new OnTouchListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\treturn gestureDetector.onTouchEvent(event);\n\t\t\t\t}\n\t\t\t});\n listView.setOnTouchListener(new OnTouchListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t\treturn gestureDetector.onTouchEvent(event);\n\t\t\t\t}\n\t\t\t});\n /*myScrollView.setGestureDector(gestureDetector);\n myScrollView.setOnTouchListener(new OnTouchListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t\treturn gestureDetector.onTouchEvent(event);\n\t\t\t\t}\n\t\t\t});*/\n /*reverseSideLayout.setFocusable(true);\n reverseSideLayout.setFocusableInTouchMode(true);\n reverseSideLayout.setOnTouchListener(new OnTouchListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t\treturn gestureDetector.onTouchEvent(event);\n\t\t\t\t}\n\t\t\t});*/\n scrollview2.setOnTouchListener(new OnTouchListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t\treturn gestureDetector.onTouchEvent(event);\n\t\t\t\t}\n\t\t\t});\n mContainer.setOnTouchListener(new OnTouchListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t\treturn gestureDetector.onTouchEvent(event);\n\t\t\t\t}\n\t\t\t});\n\t\t}", "title": "" }, { "docid": "faec366dcc92a6fc970340b227627677", "score": "0.6869506", "text": "@Override\n public boolean onTouchEvent(MotionEvent ev) {\n //disable touch to scroll\n return false;\n }", "title": "" }, { "docid": "8051c2dc686a5c71d37c8a883ef74150", "score": "0.68674785", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "8051c2dc686a5c71d37c8a883ef74150", "score": "0.68674785", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "8051c2dc686a5c71d37c8a883ef74150", "score": "0.68674785", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "8051c2dc686a5c71d37c8a883ef74150", "score": "0.68674785", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "8051c2dc686a5c71d37c8a883ef74150", "score": "0.68674785", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "8051c2dc686a5c71d37c8a883ef74150", "score": "0.68674785", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "a34d4b9f506a83872d8f1fed3d448e6d", "score": "0.6849234", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return mDetector.onTouchEvent(event);\n\n }", "title": "" }, { "docid": "33a3df087f752ce3b178f1a339d962fa", "score": "0.6837379", "text": "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1fc6da3e91d254e916caf087f0aa2db4", "score": "0.6822957", "text": "public void setPassThroughOnTouchListener(final View view) {\n view.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }\n });\n try {\n windowManager.updateViewLayout(view, updateLayoutParams(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE));\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "8fd46453feaac37a30b1197f1ab1533a", "score": "0.6813623", "text": "@Override\n public boolean onTouchEvent(MotionEvent e)\n {\n return true;\n }", "title": "" }, { "docid": "3ec5b3a0bc853cdce18dc4f1bb97f586", "score": "0.6808693", "text": "@java.lang.Override()\n public void onTouchEvent(@org.jetbrains.annotations.NotNull()\n androidx.recyclerview.widget.RecyclerView rv, @org.jetbrains.annotations.NotNull()\n android.view.MotionEvent e) {\n }", "title": "" }, { "docid": "519be639785af11e09704c8c5301d222", "score": "0.6778323", "text": "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn mGestureDetector.onTouchEvent(event);\n\t}", "title": "" }, { "docid": "7b77f4b0cdb7508df498c105ab02396a", "score": "0.6776567", "text": "@Override\n\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\treturn gestureDetector.onTouchEvent(event);\n\t\t}", "title": "" }, { "docid": "fe477a1a26bfecb7a5cdd2ac1b00c9ec", "score": "0.67697275", "text": "@Override\n\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\treturn mGestureDetector.onTouchEvent(event);\n\t\t}", "title": "" }, { "docid": "1c934e90efb1ed84b2d5db96e3e759f5", "score": "0.6766504", "text": "@Override\n public boolean onTouchEvent(MotionEvent event) {\n return true;\n }", "title": "" }, { "docid": "ecdc42ae741645bd63b47f86dcae9df1", "score": "0.67653495", "text": "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\tif (!isMove) {\n\t\t\tint offViewY = 0;// 屏幕顶部和该布局顶部的距离\n\t\t\tswitch (event.getAction()) {\n\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\tdownY = (int) event.getRawY();\n\t\t\t\toffViewY = downY - (int) event.getX();\n\t\t\t\treturn true;\n\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\tmoveY = (int) event.getRawY();\n\t\t\t\tscrollY = moveY - downY;\n\t\t\t\tif (scrollY < 0) {\n\t\t\t\t\t// 向上滑动\n\t\t\t\t\tif (isOpen) {\n\t\t\t\t\t\tif (Math.abs(scrollY) <= img_curtain_ad.getBottom() - offViewY) {\n\t\t\t\t\t\t\tscrollTo(0, -scrollY);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// 向下滑动\n\t\t\t\t\tif (!isOpen) {\n\t\t\t\t\t\tif (scrollY <= curtainHeigh) {\n\t\t\t\t\t\t\tscrollTo(0, curtainHeigh - scrollY);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MotionEvent.ACTION_UP:\n\t\t\t\tupY = (int) event.getRawY();\n\t\t\t\tif (Math.abs(upY - downY) < 10) {\n\t\t\t\t\tonRopeClick();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (downY > upY) {\n\t\t\t\t\t// 向上滑动\n\t\t\t\t\tif (isOpen) {\n\t\t\t\t\t\tif (Math.abs(scrollY) > curtainHeigh / 2) {\n\t\t\t\t\t\t\t// 向上滑动超过半个屏幕高的时候 开启向上消失动画\n\t\t\t\t\t\t\tstartMoveAnim(this.getScrollY(), (curtainHeigh - this.getScrollY()), upDuration);\n\t\t\t\t\t\t\tisOpen = false;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstartMoveAnim(this.getScrollY(), -this.getScrollY(), upDuration);\n\t\t\t\t\t\t\tisOpen = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// 向下滑动\n\t\t\t\t\tif (scrollY > curtainHeigh / 2) {\n\t\t\t\t\t\t// 向上滑动超过半个屏幕高的时候 开启向上消失动画\n\t\t\t\t\t\tstartMoveAnim(this.getScrollY(), -this.getScrollY(), upDuration);\n\t\t\t\t\t\tisOpen = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstartMoveAnim(this.getScrollY(), (curtainHeigh - this.getScrollY()), upDuration);\n\t\t\t\t\t\tisOpen = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c5ac4cecbfdc5f27ea4f3e88b3537233", "score": "0.67606866", "text": "@Override\r\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn gestureDetector.onTouchEvent(event);\r\n\t}", "title": "" }, { "docid": "7dbdb8872349aa277d00dc911e0efcc3", "score": "0.6732443", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n // Disallow the touch request for parent scroll on touch of child view\n v.getParent().requestDisallowInterceptTouchEvent(false);\n return false;\n }", "title": "" }, { "docid": "c7d9e30b704c200da95b0f835b86263e", "score": "0.67228234", "text": "@Override\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tview.setOnTouchListener(this);\n\t\tsuper.onViewCreated(view, savedInstanceState);\n\t}", "title": "" }, { "docid": "c3e2f36a26bdec72ce135bdf0e49d102", "score": "0.6681967", "text": "@Override\n public boolean onTouchEvent(MotionEvent event) {\n detector.onTouchEvent(event);\n return super.onTouchEvent(event);\n }", "title": "" }, { "docid": "eb00bd14d05eae907b95870eff188f46", "score": "0.66702014", "text": "@Override\n public boolean onTouchEvent(MotionEvent event) {\n\n this.gestureDetector.onTouchEvent(event);\n return super.onTouchEvent(event);\n }", "title": "" }, { "docid": "bf2de1b00e49c03e0028dab29f7ac138", "score": "0.66689783", "text": "@Override\n\tpublic void onScrollTouchStateEvent(Context context, AbsListView view,\n\t\t\tint scrollState, int firstVisibleItem, int visibleItemCount,\n\t\t\tint totalItemCount) {\n\t\t\n\t}", "title": "" }, { "docid": "e7ca805341749fc909b6227085529971", "score": "0.66536117", "text": "@Override\n\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\n\t}", "title": "" }, { "docid": "b917550bfd907941e4520494bc343ff4", "score": "0.66385007", "text": "@Override\n public boolean onInterceptTouchEvent(MotionEvent ev) {\n return true;\n }", "title": "" }, { "docid": "4d7b18d20c4202a12a31bc02bf8e6128", "score": "0.66376305", "text": "boolean handleTouch(MotionEvent event);", "title": "" }, { "docid": "d72685c18165590e5eab4f9073083579", "score": "0.6634861", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n\n switch (event.getAction()) {\n\n case MotionEvent.ACTION_DOWN:\n\n _touchEventList.add(new TouchEvent((int)event.getX(), (int)event.getY(), 0, TouchEvent.ACTION.PRESSED));\n return true;\n case MotionEvent.ACTION_UP:\n\n _touchEventList.add(new TouchEvent((int)event.getX(), (int)event.getY(), 0, TouchEvent.ACTION.RELEASED));\n\n break;\n case MotionEvent.ACTION_MOVE:\n\n _touchEventList.add(new TouchEvent((int)event.getX(), (int)event.getY(), 0, TouchEvent.ACTION.DRAGGED));\n break;\n }\n\n return false;\n }", "title": "" }, { "docid": "bc64c5e5d530f19833e3ba2c25243cd1", "score": "0.6628943", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "title": "" }, { "docid": "251aee47c64de83e67718645b6548456", "score": "0.6591427", "text": "@Override\r\n\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\r\n\t\t\tfloat arg3) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "41e4d0b78be062a26a36cdcc99e0054c", "score": "0.6591421", "text": "@Override\n public boolean onTouchEvent(MotionEvent event) {\n return super.onTouchEvent(event);\n }", "title": "" }, { "docid": "e6ddb1f06f8a502097c31b7ad6e0938a", "score": "0.6590055", "text": "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\n\t if (event.getAction() == MotionEvent.ACTION_DOWN){\n\t int temp_ScrollY = getScrollY();\n\t scrollTo(getScrollX(), getScrollY() + 1);\n\t scrollTo(getScrollX(), temp_ScrollY);\n\t }\n\n\t return super.onTouchEvent(event);\n\t}", "title": "" }, { "docid": "564a2b862318fbe34764b167e9f48f33", "score": "0.6578807", "text": "@Override\n\t\tpublic boolean onSceneTouchEvent(Scene pScene, TouchEvent e) {\n\t\t\tif(!updating){\n\t\t\tif(!toggle) {\n\t\t\t\t//AddAllOfIndivitualsToScene();\n\t\t\t\ttoggle=true;}\n\t\t\tpinch.onTouchEvent(e);\n\n\t\t\tif(pinch.isZooming()) {\n\t\t\t\tscroll.setEnabled(false);\n\t\t\t} else {\n\t\t\t\tif(e.isActionDown()) {\n\t\t\t\t\tscroll.setEnabled(true);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tscroll.onTouchEvent(e);\n\t\t\t}\n\t\t\t}\n\t\t\treturn true;\t\t\n\n\t}", "title": "" }, { "docid": "57527a8e032641b1312e25fe69bb1a48", "score": "0.6575542", "text": "@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\tif(event.getAction() == MotionEvent.ACTION_DOWN){\r\n\t\t\tx = event.getX();\r\n\t\t\ty = event.getY();\r\n\t\t}else if(event.getAction() == MotionEvent.ACTION_MOVE){\r\n\t\t\tfloat dx = event.getX() - x;\r\n\t\t\tfloat dy = event.getY() - y;\r\n\t\t\t\r\n\t\t\tx = event.getX();\r\n\t\t\ty = event.getY();\r\n\t\t}\r\n\t\t\r\n//\t\tlistViewLayer.onTouchEvent(event);\r\n//\t\t\r\n//\t\tselectViewLayer.onTouchEvent(event);\r\n//\t\t\r\n//\t\tscaleGuestureViewLayer.onTouchEvent(event);\r\n//\t\t\r\n//\t\tscrollViewLayer.onTouchEvent(event);\r\n//\t\t\r\n//\t\tcheckboxLayer.onTouchEvent(event);\r\n\t\t\r\n\t\treturn super.onTouchEvent(event);\r\n\t}", "title": "" }, { "docid": "edbc365eee87e22ac33e58e6e3db5cd2", "score": "0.6570513", "text": "@Override\n public boolean onInterceptTouchEvent(MotionEvent ev) {\n if (!scrollable) return false;\n else return super.onInterceptTouchEvent(ev);\n }", "title": "" }, { "docid": "4d1741b43e18a4e88019f0789b0c82eb", "score": "0.6567939", "text": "public void onTouchEvent(MotionEvent event){\n mTouchEvent.onTouchEvent(event);\n onFreshView();\n }", "title": "" }, { "docid": "e10a34d6ed1332ff619e75c75cb25fea", "score": "0.6561658", "text": "@Override\r\n\tpublic void onScroll(NMapView arg0, MotionEvent arg1, MotionEvent arg2) {\n\t\t\r\n\t}", "title": "" }, { "docid": "1268d0f4c03894a75a1d938719e1945a", "score": "0.6558859", "text": "@Override\n public void onItemClick(Scroll scroll) {\n mListener.onScrollSelected(scroll);\n }", "title": "" }, { "docid": "89cd6988d1a5515630feb72515de13ed", "score": "0.6551607", "text": "@Override\r\n\t\t\tpublic void onScroll() {\n\r\n\t\t\t}", "title": "" }, { "docid": "c6ec3f4f83caf00394fc055211a47338", "score": "0.65501297", "text": "@Override\n\t\tpublic boolean onTouch(MotionEvent ev) {\n\t\treturn gestureDetector.onTouchEvent(ev);\n\t\t}", "title": "" }, { "docid": "4ea012fdfa0fc3f8a7e99328b32f383b", "score": "0.65451634", "text": "void onScroll(int position);", "title": "" }, { "docid": "2cf8a05dcd7a7ebb845532d23604b898", "score": "0.6543468", "text": "void onScrollDown();", "title": "" }, { "docid": "e05529c35a7cc24c553fd61cf83ae4d2", "score": "0.6528885", "text": "@Override\n\tpublic void onScroll(NMapView arg0, MotionEvent arg1, MotionEvent arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "fb16f65f1110e43332cbfecc1a862620", "score": "0.6510041", "text": "void onTouchEvent(MotionEvent event) {\n switch (event.getAction() & MotionEvent.ACTION_MASK) {\n case MotionEvent.ACTION_DOWN:\n colorTestScene.onTouchEvent();\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "36df5e30ebeeca522abf4600e8072b03", "score": "0.650359", "text": "@Override\n\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c2e382f2e9876c9d9041ee6611ced472", "score": "0.64970165", "text": "@Override\n\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\tfloat arg3) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "400126d7eccf52a0e8cbfdec4d42148d", "score": "0.6484014", "text": "@Override\r\n\tpublic void onScroll(NMapView arg0, MotionEvent arg1, MotionEvent arg2) {\n\r\n\t}", "title": "" }, { "docid": "77a479a3296f84950524e2216531aa36", "score": "0.64780664", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\n\t\t\t\treturn gDetector.onTouchEvent(event);\n\t\t\t}", "title": "" }, { "docid": "6c0c058ebeb4e43bef78536277a3cb81", "score": "0.64692795", "text": "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn super.onTouchEvent(event);\n\t}", "title": "" }, { "docid": "7b3ae2d1dd7973aa204388b911521d04", "score": "0.64598376", "text": "@Override\n public boolean onTouchEvent(MotionEvent event) {\n\n return mGestureDetector.onTouchEvent(event);\n }", "title": "" }, { "docid": "b2a123ff1a84085a29d2e312b5476813", "score": "0.6426345", "text": "@Override\r\n\tpublic void onTouchDown(int screenX, int screenY) {\n\r\n\t}", "title": "" }, { "docid": "d4f31250260c06629e65c6d496f8411a", "score": "0.6412866", "text": "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn detector.onTouchEvent(event);\n\t}", "title": "" }, { "docid": "c4eb8844a06fd4bda8986fed0f64642e", "score": "0.6395895", "text": "@Override\n public boolean onInterceptTouchEvent(@NonNull RecyclerView rv, @NonNull MotionEvent e) {\n //5. Ovo obvezno ovako pozvati, jer nam radi u korelaciji sa onLongPress i sa this.clickListener = clickListener;\n //i bez toga ne bismo bili u mogucnosti da otvorimo drugi prozor!\n View child = rv.findChildViewUnder(e.getX(), e.getY());\n if (child != null && clickListener != null && gestureDetector.onTouchEvent(e)) {\n clickListener.onClick(child, rv.getChildLayoutPosition(child));\n }\n return false;\n }", "title": "" }, { "docid": "2157763c4954d39e5f9075fcc1823a45", "score": "0.63910484", "text": "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\tv.performClick();\n\t\tswitch (event.getAction()) {\n\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\tviewPager.setCanScroll(false);\n\t\t\tstartX = (int) event.getX();\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\tmoveX += (int) event.getX() - startX;\n\t\t\trulerButton.layout(25 + moveX, rulerButton.getTop(), 25 + moveX + rulerButton.getWidth(), rulerButton.getBottom());\n\t\t\trulerView.invalidate();\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_UP:\n\t\t\tviewPager.setCanScroll(true);\n\t\t\tbreak;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3c1d3689d1ef99be67d515a8c5990e83", "score": "0.63903403", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn gestureDetector.onTouchEvent(event);\n//\t\t\t\treturn false; //false --> onTouchEvent(event)\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "2a6c2203f17d7d86ebeedbaa4e32bd78", "score": "0.6389063", "text": "@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn gestures.onTouchEvent(event);\r\n\t}", "title": "" }, { "docid": "03a8484771249a1ce868fa16f02d731f", "score": "0.63847196", "text": "@Override\n\tpublic void handleTouchEvent(TouchEvent pSceneTouchEvent) {\n\t\t\n\t}", "title": "" }, { "docid": "de3514bfbd8d33b2959c2ab47ba1ca45", "score": "0.6378048", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tswitch (event.getAction()) {\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\tsbLightness.getParent().requestDisallowInterceptTouchEvent(true);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MotionEvent.ACTION_CANCEL:\n\t\t\t\t\tsbLightness.getParent().requestDisallowInterceptTouchEvent(false);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "318c08c9fb39e9296dca3bd291c4561e", "score": "0.6377159", "text": "@Override\n\t\t\t\tpublic void onScroll(MotionEvent arg0, MotionEvent arg1,\n\t\t\t\t\t\tfloat arg2, float arg3) {\n\t\t\t\t\tLogUtil.i(\"mi\", \"arg2===\"+arg2+\",arg3=\"+arg3+\",hasStart=\"+hasStart);\n\t\t\t\t\tonTouchScroll(arg0,arg1,arg2,arg3);\n\t\t\t\t}", "title": "" }, { "docid": "2a28b57faa43b3ca4e64efe81db8518a", "score": "0.6373959", "text": "@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\tif (mIsAnimating) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (mGestureDetector.onTouchEvent(event)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tgetParent().requestDisallowInterceptTouchEvent(true);\r\n\t\tint action = event.getAction();\r\n\t\tfloat x = event.getX();\r\n\t\tfloat y = event.getY();\r\n\t\tswitch (action) {\r\n\t\tcase MotionEvent.ACTION_DOWN:\r\n\t\t\tif (mSlip.getBounds().contains((int) x, (int) y)) {\r\n\t\t\t\tmButtonDown = true;\r\n\t\t\t\tmDownX = x;\r\n\t\t\t\tmSlipDownX = (mSlip.getBounds().left + mSlip.getBounds().right) / 2;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase MotionEvent.ACTION_UP:\r\n\t\tcase MotionEvent.ACTION_CANCEL:\r\n\t\tcase MotionEvent.ACTION_OUTSIDE:\r\n\t\t\tif (mButtonDown) {\r\n\t\t\t\tresetTouchEventState();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase MotionEvent.ACTION_MOVE:\r\n\t\t\tif (mButtonDown) {\r\n\t\t\t\ttrackDrawablesBounds((int) x);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tinvalidate();\r\n\t\treturn true;\r\n\r\n\t}", "title": "" }, { "docid": "93e1abaa31beb778515b7e32fd64bdd3", "score": "0.63732535", "text": "@Override\r\n public boolean onTouch(View arg0, MotionEvent touchevent) {\n\r\n switch (touchevent.getAction())\r\n\r\n {\r\n\r\n\r\n\r\n\r\n // when user first touches the screen we get x and y coordinate\r\n case MotionEvent.ACTION_DOWN:\r\n {\r\n x1 = touchevent.getX();\r\n y1 = touchevent.getY();\r\n break;\r\n }\r\n case MotionEvent.ACTION_UP:\r\n {\r\n x2 = touchevent.getX();\r\n y2 = touchevent.getY(); \r\n\r\n if (x1 > x2)\r\n {\r\n mScrollHori.setVisibility(View.GONE);\r\n mBottomSlider.startAnimation(mANimationLeft);\r\n mBottomSlider.setVisibility(View.GONE);\r\n }\r\n break;\r\n }\r\n } \r\n return true;\r\n }", "title": "" }, { "docid": "e6979bfa6b82c0e934d0410ce0454697", "score": "0.6372892", "text": "@Override\n\t\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t\tswitch(event.getAction()){\n\t\t\t\t\t\tcase MotionEvent.ACTION_UP:\n\t\t\t\t\t\t\tif(imageArray[j].getCanFly()==true){\n\t\t\t\t\t\t\t\tflag = true;\n\t\t\t\t\t\t\t\tflagTouch = true;\n\t\t\t\t\t\t\t\t//tmpScore+=10;\n\t\t\t\t\t\t\t\t//userScore.setText(String.valueOf(tmpScore));\n\t\t\t\t\t\t\t\tuserResponseButton.setEnabled(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tflagTouch = true;\n\t\t\t\t\t\t\t\tuserResponseButton.setEnabled(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\t\t\tif(imageArray[j].getCanFly()==true){\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tflagTouch = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tflag = true;\n\t\t\t\t\t\t\t\tflagTouch = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//break;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}", "title": "" }, { "docid": "f5501726a600cc89e33050a378856e2d", "score": "0.6372808", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tswitch (event.getAction()) {\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\tstartX=event.getX();\n\t\t\t\t\tstartY=event.getY();\n\t\t\t\t\trecord=true;\n\t\t\t\t\tendX=0;\n\t\t\t\t\tendY=0;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\tif(!record){\n\t\t\t\t\t\tstartX=event.getX();\n\t\t\t\t\t\tstartY=event.getY();\n\t\t\t\t\t\tendX=0;\n\t\t\t\t\t\tendY=0;\n\t\t\t\t\t\trecord=true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tendX=event.getX();\n\t\t\t\t\t\tendY=event.getY();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase MotionEvent.ACTION_UP:\n\t\t\t\t\tif(endX!=0||endY!=0){\n\t\t\t\t\t\tonTouchScroll(event, event, endX-startX, endY-startY);\n\t\t\t\t\t\tstartX=0;\n\t\t\t\t\t\tstartY=0;\n\t\t\t\t\t\trecord=false;\n\t\t\t\t\t\tendX=0;\n\t\t\t\t\t\tendY=0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "c75bd23babf87d1c107d0a932051344e", "score": "0.63702786", "text": "@Override\n public boolean onTouchEvent(MotionEvent event)\n {\n detector.onTouchEvent(event);\n scaleDetector.onTouchEvent(event);\n return super.onTouchEvent(event);\n }", "title": "" }, { "docid": "9e6f533e9f12b78bd0a1b67267c19171", "score": "0.635932", "text": "@Override\n\tpublic boolean onTouch(View arg0, MotionEvent event) {\n\n\t\tswitch (event.getAction() & MotionEvent.ACTION_MASK) {\n\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\tmode = MODE_INIT;\n\t\t\tisDown = true;\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_POINTER_DOWN:\n\t\t\told_x = event.getX(0);\n\t\t\told_y = event.getY(0);\n\t\t\told_x1 = event.getX(1);\n\t\t\told_y1 = event.getY(1);\n\n\t\t\tmode = MODE_POINTER;\n\t\t\tstartDis = distance(event);\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\tif (mode == MODE_POINTER) {\n\t\t\t\tif (event.getPointerCount() < 2) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tonTouchMove(event);\n\n\t\t\t}\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_UP:\n\t\t\tif (mode == MODE_POINTER) {\n\t\t\t\ttopBord -= offsetTop / 2;\n\t\t\t\timageProcess.noequl(\"topBord b��=\", topBord);\n\t\t\t\tleftBord -= offsetLeft / 2;\n\n\t\t\t} else {\n\t\t\t\tview_focus.setBackgroundDrawable(getResources().getDrawable(\n\t\t\t\t\t\tR.drawable.ic_focus_focusing));\n\t\t\t\tfocosTouchRect();\n\t\t\t}\n\t\t\tsavePosition(\"positionLeft\", (float) leftBord / mScreenWidth);\n\t\t\tsavePosition(\"positionTop\", (float) topBord / mScreenHeight);\n\n\t\t\tbreak;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "979464762fd816ff7a2ce2569a47d014", "score": "0.6358477", "text": "@Override\n\t\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t\tif (v instanceof ViewGroup)\n\t\t\t\t\t\t\tvg = (ViewGroup) v;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Determine action to perform\n\t\t\t\t\t\tswitch (event.getAction()) {\n\t\t\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\t\t\tonItemSelection(vg);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase MotionEvent.ACTION_UP:\n\t\t\t\t\t\t\tonItemRelease(vg);\n\t\t\t\t\t\t\t// Call the abstract method\n\t\t\t\t\t\t\thandle(v);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}", "title": "" }, { "docid": "9eb1c57384e2436c0abd7451fe79258d", "score": "0.6350697", "text": "@SuppressLint(\"ClickableViewAccessibility\")\r\n\t@Override\r\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn gd.onTouchEvent(event);\r\n\t}", "title": "" }, { "docid": "608da472c8d6bff6bf21b59388926e4e", "score": "0.63462675", "text": "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn mDetector.onTouchEvent(event);\n\t}", "title": "" }, { "docid": "6e54b6b30d08b75daec0693d61d871a5", "score": "0.6342397", "text": "@Override\n public boolean onTouchEvent(MotionEvent event) {\n boolean result = detector.onTouchEvent(event);\n return result;\n }", "title": "" }, { "docid": "39aac7072532db7f2b1fe3bb4c34884d", "score": "0.63376904", "text": "@Override\n\tpublic void onScrollEvent(Context context, AbsListView view,\n\t\t\tint firstVisibleItem, int visibleItemCount, int totalItemCount) {\n\t\t\n\t}", "title": "" }, { "docid": "fe36f0a15d2edaa85095c0bef685b190", "score": "0.6326015", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n v.getParent().requestDisallowInterceptTouchEvent(true);\n return false;\n }", "title": "" }, { "docid": "82f30d49bef4f4011fe3c5e8320efb85", "score": "0.6320275", "text": "@Override\n\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\tcompat.onTouchEvent(event);\n\t\t\t\t\treturn true;\n\t\t\t\t}", "title": "" }, { "docid": "bd3ac653dea262ef7559396e6714bfc0", "score": "0.6319032", "text": "public void onPlayerTouch();", "title": "" }, { "docid": "6d515db7bfbc89cff60bc9d9134fdecc", "score": "0.63078976", "text": "@Override\r\n\tpublic void onTouchDown(NMapView arg0, MotionEvent arg1) {\n\r\n\t}", "title": "" }, { "docid": "d1432c1ee1751ca38f5c6ba5d83c615d", "score": "0.63019747", "text": "@Override\n public boolean onTouch(View view, MotionEvent ev) {\n\n final int action = ev.getAction();\n switch (action) {\n case MotionEvent.ACTION_DOWN: {\n\n final int pointerIndex = ev.getActionIndex();\n final float x = ev.getX(pointerIndex);\n final float xRaw = ev.getRawX();\n final float yRaw = ev.getRawY();\n final float y = ev.getY(pointerIndex);\n// Log.d(TAG, \"onTouch: img down: xRaw:\" + xRaw + \" yPos: yRaw:\" + yRaw);\n Log.d(TAG, \"onTouch: img down: x:\" + x + \" yPos: x:\" + y);\n\n // Remember where we started (for dragging)\n mLastTouchX = x;\n mLastTouchY = y;\n // Save the ID of this pointer (for dragging)\n mActivePointerId = ev.getPointerId(0);\n// Log.d(TAG, \"onTouch: pointer id\" + mActivePointerId);\n// Log.d(TAG, \"onTouch: deviceID\" + ev.getDeviceId());\n// Log.d(TAG, \"onTouch: xcoor\" + ev.getX());\n// Log.d(TAG, \"onTouch: ycoor\" + ev.getX());\n// Log.d(TAG, \"onTouch: btn_state\" + ev.getButtonState());\n// Log.d(TAG, \"onTouch: edge_flags\" + ev.getEdgeFlags());\n// Log.d(TAG, \"onTouch: orientation\" + ev.getOrientation());\n// Log.d(TAG, \"onTouch: pressure\" + ev.getPressure());\n// Log.d(TAG, \"onTouch: source\" + ev.getSource());\n// Log.d(TAG, \"onTouch: size\" + ev.getSize());\n// Log.d(TAG, \"onTouch: tool major\" + ev.getToolMajor());\n// Log.d(TAG, \"onTouch: tool minor\" + ev.getToolMinor());\n// Log.d(TAG, \"onTouch: touch major\" + ev.getTouchMajor());\n// Log.d(TAG, \"onTouch: touch minor\" + ev.getTouchMinor());\n// Log.d(TAG, \"onTouch: flags\" + ev.getFlags());\n// Log.d(TAG, \"onTouch: tool type\" + ev.getToolType(pointerIndex));\n break;\n }\n\n case MotionEvent.ACTION_MOVE: {\n float viewPosY = view.getY() + view.getHeight();\n float viewPosX = view.getX() + view.getWidth();\n // Find the index of the active pointer and fetch its position\n final int pointerIndex = ev.findPointerIndex(mActivePointerId);\n\n final float x = ev.getX(pointerIndex);\n final float y = ev.getY(pointerIndex);\n\n //calculate distance moved\n final float dx = x - mLastTouchX;\n final float dy = y - mLastTouchY;\n\n //calculate the future x and y of view\n float futurePosYdown = dy + view.getY() + view.getHeight();\n float futurePosYup = dy + view.getY();\n float futurePosXright = dx + view.getX() + view.getWidth();\n float futurePosXleft = dx + view.getX();\n\n /*\n only update if view position remains within the limits of the layout.\n */\n if (futurePosYdown < layout.getHeight() && futurePosYup > 0) {\n\n mPosY += dy;\n mLastTouchY = y;// Remember this touch position for the next move event\n }\n if (futurePosXright < layout.getWidth() && futurePosXleft > 0) {\n\n mPosX += dx;\n mLastTouchX = x;// Remember this touch position for the next move event\n }\n\n// Log.d(TAG, \"onTouch img move: x:\" + x + \" y:\" + y);\n// Log.d(TAG, \"onTouch img move: xPos:\" + mPosX + \" yPos:\" + mPosY);\n// Log.d(TAG, \"onTouch img move lastTouchX:\" + mLastTouchX + \" lastTouchY:\" + mLastTouchY);\n positionViewInCLayout(mPosX, mPosY, MainActivity.this.imageView, MainActivity.this.layout);\n\n break;\n }\n\n case MotionEvent.ACTION_UP: {\n mActivePointerId = INVALID_POINTER_ID;\n break;\n }\n\n case MotionEvent.ACTION_CANCEL: {\n mActivePointerId = INVALID_POINTER_ID;\n break;\n }\n\n case MotionEvent.ACTION_POINTER_UP: {\n\n final int pointerIndex = MotionEventCompat.getActionIndex(ev);\n final int pointerId = MotionEventCompat.getPointerId(ev, pointerIndex);\n\n if (pointerId == mActivePointerId) {\n // This was our active pointer going up. Choose a new\n // active pointer and adjust accordingly.\n final int newPointerIndex = pointerIndex == 0 ? 1 : 0;\n mLastTouchX = ev.getX(newPointerIndex);\n mLastTouchY = ev.getY(newPointerIndex);\n mActivePointerId = ev.getPointerId(newPointerIndex);\n }\n break;\n }\n }\n return true;\n }", "title": "" }, { "docid": "c9bfdc1430919a82f85d9b8c7392b36d", "score": "0.6294476", "text": "@Override\r\n\tpublic void onViewTap(View view, float x, float y) {\n\t\t\r\n\t}", "title": "" }, { "docid": "05cfc8096c5ecfedd4f8095f801b7b18", "score": "0.6292709", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n sr.startListening(RecognizerIntent.getVoiceDetailsIntent(context.getApplicationContext()));\n break;\n case MotionEvent.ACTION_UP:\n sr.stopListening();\n break;\n }\n return false;\n }", "title": "" }, { "docid": "c2d19f34d164e3195cecbfe2c596dcac", "score": "0.62900954", "text": "@Override public boolean onTouchEvent(MotionEvent event) {\n main.onTouchEvent(event);\n return super.onTouchEvent(event);\n }", "title": "" } ]
d724876238b58b97625136d3c84bc2a7
This methods runs a JDOQL query with an equal operator comparing a field with a domain object navigated from a parameter.
[ { "docid": "04af3440a91f9c739408efc89468f475", "score": "0.55860204", "text": "@SuppressWarnings(\"unchecked\")\n public void testDirtyParameterNavigationToPrimitiveField() {\n PersistenceManager pm = getPM();\n Transaction tx = pm.currentTransaction();\n try {\n tx.begin();\n\n FullTimeEmployee emp1 = getPersistentCompanyModelInstance(FullTimeEmployee.class, \"emp1\");\n emp1.setSalary(5000d);\n\n String filter = \"this.salary > e.salary\";\n Collection<Employee> expectedResult = new ArrayList<>();\n expectedResult.add(getPersistentCompanyModelInstance(Employee.class, \"emp2\"));\n expectedResult.add(getPersistentCompanyModelInstance(Employee.class, \"emp5\"));\n Query<FullTimeEmployee> q = pm.newQuery(FullTimeEmployee.class);\n q.declareParameters(\"org.apache.jdo.tck.pc.company.FullTimeEmployee e\");\n q.setFilter(filter);\n Collection<FullTimeEmployee> results = (Collection<FullTimeEmployee>) q.execute(emp1);\n checkQueryResultWithoutOrder(ASSERTION_FAILED, filter, results, expectedResult);\n\n tx.commit();\n tx = null;\n } finally {\n if ((tx != null) && tx.isActive()) tx.rollback();\n }\n }", "title": "" } ]
[ { "docid": "d955adcc95743b9aa5e698481d17c9f0", "score": "0.6807733", "text": "@SuppressWarnings(\"unchecked\")\n public void testParameterEqual() {\n PersistenceManager pm = getPM();\n Transaction tx = pm.currentTransaction();\n try {\n tx.begin();\n\n String filter = \"this.department == d\";\n Collection<Employee> expectedResult = new ArrayList<>();\n expectedResult.add(getPersistentCompanyModelInstance(Employee.class, \"emp1\"));\n expectedResult.add(getPersistentCompanyModelInstance(Employee.class, \"emp2\"));\n expectedResult.add(getPersistentCompanyModelInstance(Employee.class, \"emp3\"));\n Query<Employee> q = pm.newQuery(Employee.class);\n q.declareParameters(\"org.apache.jdo.tck.pc.company.Department d\");\n q.setFilter(filter);\n Collection<Employee> results =\n (Collection<Employee>)\n q.execute(getPersistentCompanyModelInstance(Department.class, \"dept1\"));\n checkQueryResultWithoutOrder(ASSERTION_FAILED, filter, results, expectedResult);\n\n tx.commit();\n tx = null;\n } finally {\n if ((tx != null) && tx.isActive()) tx.rollback();\n }\n }", "title": "" }, { "docid": "ccb417d465e8bc9e044fb851af160401", "score": "0.6113298", "text": "@SuppressWarnings(\"unchecked\")\n public void testParameterNavigationToDomainObject() {\n PersistenceManager pm = getPM();\n Transaction tx = pm.currentTransaction();\n try {\n tx.begin();\n\n String filter = \"this.department == e.department\";\n Collection<Employee> expectedResult = new ArrayList<>();\n expectedResult.add(getPersistentCompanyModelInstance(Employee.class, \"emp1\"));\n expectedResult.add(getPersistentCompanyModelInstance(Employee.class, \"emp2\"));\n expectedResult.add(getPersistentCompanyModelInstance(Employee.class, \"emp3\"));\n Query<Employee> q = pm.newQuery(Employee.class);\n q.declareParameters(\"org.apache.jdo.tck.pc.company.Employee e\");\n q.setFilter(filter);\n Collection<Employee> results =\n (Collection<Employee>)\n q.execute(getPersistentCompanyModelInstance(Employee.class, \"emp1\"));\n checkQueryResultWithoutOrder(ASSERTION_FAILED, filter, results, expectedResult);\n\n tx.commit();\n tx = null;\n } finally {\n if ((tx != null) && tx.isActive()) tx.rollback();\n }\n }", "title": "" }, { "docid": "4138c57507637385f4569ff11513c1c2", "score": "0.6094838", "text": "@SuppressWarnings(\"unchecked\")\n public void testParameterNavigationToPrimitiveField() {\n PersistenceManager pm = getPM();\n Transaction tx = pm.currentTransaction();\n try {\n tx.begin();\n\n String filter = \"this.salary > e.salary\";\n Collection<Employee> expectedResult = new ArrayList<>();\n expectedResult.add(getPersistentCompanyModelInstance(Employee.class, \"emp5\"));\n Query<FullTimeEmployee> q = pm.newQuery(FullTimeEmployee.class);\n q.declareParameters(\"org.apache.jdo.tck.pc.company.FullTimeEmployee e\");\n q.setFilter(filter);\n Collection<FullTimeEmployee> results =\n (Collection<FullTimeEmployee>)\n q.execute(getPersistentCompanyModelInstance(Employee.class, \"emp1\"));\n checkQueryResultWithoutOrder(ASSERTION_FAILED, filter, results, expectedResult);\n\n tx.commit();\n tx = null;\n } finally {\n if ((tx != null) && tx.isActive()) tx.rollback();\n }\n }", "title": "" }, { "docid": "157b635da6003713e7115fe53d0fd72f", "score": "0.60180897", "text": "EntityFind condition(String fieldName, Object value);", "title": "" }, { "docid": "4877dad94fd121ed74f06616e1440ce6", "score": "0.60083795", "text": "EntityFind condition(String fieldName, EntityCondition.ComparisonOperator operator, Object value);", "title": "" }, { "docid": "5c7ded11da8575f8533f3bd799d6fd27", "score": "0.5697966", "text": "public LnwDelete setWhereEq( String column, Object value);", "title": "" }, { "docid": "4f6b6856062be4342bf91393059d0a4e", "score": "0.5674436", "text": "String queryMatch(String iID, ItemField query);", "title": "" }, { "docid": "3196525b903dc3fa25f8dbc061ab5f87", "score": "0.5520217", "text": "public Builder whereEquals(String column, Object value) {\n\t\t\tcheckParametersForNull(column, value);\n\t\t\tString sqlPart = column + \"=?\";\n\n\t\t\tconditions.add(sqlPart);\n\t\t\tparameters.add(value);\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "c2b579ba8ea2f3d38023cc3a82edd223", "score": "0.5444764", "text": "@SuppressWarnings(\"unchecked\")\n public void testContainsParameter() {\n PersistenceManager pm = getPM();\n Transaction tx = pm.currentTransaction();\n try {\n tx.begin();\n\n String filter = \"this.employees.contains(e)\";\n Collection<Department> expectedResult = new ArrayList<>();\n expectedResult.add(getPersistentCompanyModelInstance(Department.class, \"dept1\"));\n Query<Department> q = pm.newQuery(Department.class);\n q.declareParameters(\"org.apache.jdo.tck.pc.company.Employee e\");\n q.setFilter(filter);\n Collection<Department> results =\n (Collection<Department>)\n q.execute(getPersistentCompanyModelInstance(Employee.class, \"emp1\"));\n checkQueryResultWithoutOrder(ASSERTION_FAILED, filter, results, expectedResult);\n\n tx.commit();\n tx = null;\n } finally {\n if ((tx != null) && tx.isActive()) tx.rollback();\n }\n }", "title": "" }, { "docid": "b5f8568e7263e99be3fe932c95795e6f", "score": "0.5401136", "text": "<S> QueryValue<S> andWhere(S recordedMethodCall);", "title": "" }, { "docid": "4931725b4f1b202817443e7333be3c0f", "score": "0.536546", "text": "<R> Children eq(boolean execute, ColumnFunction<R, ?> column, LocalDateTime value);", "title": "" }, { "docid": "3f87aabaef1f8fca733aa0b34fce3968", "score": "0.53587824", "text": "@SuppressWarnings(\"unchecked\")\n public void testParameterEqualCopy() {\n PersistenceManager pm = getPM();\n Transaction tx = pm.currentTransaction();\n try {\n tx.begin();\n\n String filter = \"this.department == d\";\n Collection<Employee> expectedResult = new ArrayList<>();\n Query<Employee> q = pm.newQuery(Employee.class);\n q.declareParameters(\"org.apache.jdo.tck.pc.company.Department d\");\n q.setFilter(filter);\n Collection<Employee> results =\n (Collection<Employee>) q.execute(getPM().getObjectById(oidDept1Copy));\n checkQueryResultWithoutOrder(ASSERTION_FAILED, filter, results, expectedResult);\n\n tx.commit();\n tx = null;\n } finally {\n if ((tx != null) && tx.isActive()) tx.rollback();\n }\n }", "title": "" }, { "docid": "481cfc089ea9a53c0f04d20903920830", "score": "0.5338205", "text": "T searchUniqueByPropertyEquals(String property, Object value);", "title": "" }, { "docid": "1d183bcef14d52c379ebf52086967ccf", "score": "0.53290987", "text": "@SuppressWarnings(\"unchecked\")\n public void testContainsParameterNavigation() {\n PersistenceManager pm = getPM();\n Transaction tx = pm.currentTransaction();\n try {\n tx.begin();\n\n String filter = \"this.employees.contains(ins.employee)\";\n Collection<Department> expectedResult = new ArrayList<>();\n expectedResult.add(getPersistentCompanyModelInstance(Department.class, \"dept1\"));\n Query<Department> q = pm.newQuery(Department.class);\n q.declareParameters(\"org.apache.jdo.tck.pc.company.Insurance ins\");\n q.setFilter(filter);\n Collection<Department> results =\n (Collection<Department>)\n q.execute(getPersistentCompanyModelInstance(MedicalInsurance.class, \"medicalIns1\"));\n checkQueryResultWithoutOrder(ASSERTION_FAILED, filter, results, expectedResult);\n\n tx.commit();\n tx = null;\n } finally {\n if ((tx != null) && tx.isActive()) tx.rollback();\n }\n }", "title": "" }, { "docid": "0c925ee635fb178beff8e604ee09e151", "score": "0.5328091", "text": "<R> Children eq(boolean execute, ColumnFunction<R, ?> column, Date value);", "title": "" }, { "docid": "73d3917f2b718ac029b02b298aabfa92", "score": "0.5305697", "text": "public Model findByFieldName( String fieldName,Object param ) throws DAOException;", "title": "" }, { "docid": "80c271e1db9cc90c9b6d754d01f8d7d7", "score": "0.52930903", "text": "T searchUniqueByPropertyEqual(String property, Object value);", "title": "" }, { "docid": "1f9f5dabe179c8291c5949a331936e08", "score": "0.52672184", "text": "public void setQuery(java.lang.String param) {\n localQueryTracker = true;\n\n this.localQuery = param;\n }", "title": "" }, { "docid": "1a3cb9848ec8fb288df33a79aaa6a7f5", "score": "0.5265323", "text": "EntityFind conditionDate(String fromFieldName, String thruFieldName, java.sql.Timestamp compareStamp);", "title": "" }, { "docid": "ff2781501665eecd7e89e43ab82ba7bb", "score": "0.5215081", "text": "@Test\n public void testCompareGreaterEqualWithLong() throws Exception {\n String oql = \"SelecT DisTinct o.item from de.jsci.pcv.jdo.LieferantJDO as o\"\n + \" where o.deleted >= 67\";\n QueryObject qo = getQO(oql);\n String actual = qo.toString();\n String expected = \"SELECT DISTINCT o.item FROM de.jsci.pcv.jdo.LieferantJDO AS o \"\n + \"WHERE (o.deleted >= 67)\";\n assertEquals(expected, actual);\n }", "title": "" }, { "docid": "65cfc8c04e416163613d9686d0141411", "score": "0.52037424", "text": "<R> Children eq(boolean execute, ColumnFunction<R, ?> column, LocalDate value);", "title": "" }, { "docid": "919c67f61fe5a8b16473d48de413e008", "score": "0.51887274", "text": "private String makeWhere(String fieldName, String operator, String value){\n \n \n return SPACE + SQL_AND + fieldName + SPACE + operator + SPACE + QUOTE + value + QUOTE;\n \n \n }", "title": "" }, { "docid": "3f6fcc6226529dec1ad6d1593bf22040", "score": "0.51880354", "text": "protected Object executeJDOQuery(String assertion, Query query, \n String singleStringQuery, boolean hasOrdering,\n Object[] parameters, Object expectedResult, boolean positive) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"Executing JDO query: \" + singleStringQuery);\n }\n return execute(assertion, query, singleStringQuery, hasOrdering,\n parameters, expectedResult, positive);\n }", "title": "" }, { "docid": "91b9366d4d1d6e1dcea8e796a308c441", "score": "0.5166865", "text": "@SuppressWarnings(\"unchecked\")\n public void testParameterNotEqual() {\n PersistenceManager pm = getPM();\n Transaction tx = pm.currentTransaction();\n try {\n tx.begin();\n\n String filter = \"this.department != d\";\n Collection<Employee> expectedResult = new ArrayList<>();\n expectedResult.add(getPersistentCompanyModelInstance(Employee.class, \"emp4\"));\n expectedResult.add(getPersistentCompanyModelInstance(Employee.class, \"emp5\"));\n Query<Employee> q = pm.newQuery(Employee.class);\n q.declareParameters(\"org.apache.jdo.tck.pc.company.Department d\");\n q.setFilter(filter);\n Collection<Employee> results =\n (Collection<Employee>)\n q.execute(getPersistentCompanyModelInstance(Department.class, \"dept1\"));\n checkQueryResultWithoutOrder(ASSERTION_FAILED, filter, results, expectedResult);\n\n tx.commit();\n tx = null;\n } finally {\n if ((tx != null) && tx.isActive()) tx.rollback();\n }\n }", "title": "" }, { "docid": "68f837be19602a6c09fad0fd371d14ab", "score": "0.5165181", "text": "<R> Children eq(boolean execute, ColumnFunction<R, ?> column, String value);", "title": "" }, { "docid": "73abe35e49859607092fe578da8e6492", "score": "0.5139907", "text": "@Override\n public JEPLDAOQuery<T> setParameter(String name,Object value);", "title": "" }, { "docid": "83180e3811b4bb4d55db486c60ec88d0", "score": "0.51361805", "text": "Builder<ITEM, PROPERTY> queryParameter(String name, Object value);", "title": "" }, { "docid": "bb385ea527a5796d6a69bcac7fb0510b", "score": "0.5128406", "text": "@Override\n\tpublic void query(Object object) {\n\t\t\n\t}", "title": "" }, { "docid": "77e4468345bc6f68851c2e652beb4ae4", "score": "0.51107055", "text": "private String makeWhere(String fieldName, String operator, Character value){\n \n return SPACE + SQL_AND + fieldName + SPACE + operator + SPACE + QUOTE + value + QUOTE; \n\n \n }", "title": "" }, { "docid": "94851e617b072d8e5c730ba405cb1206", "score": "0.51057965", "text": "public BooleanExpression eq(SQLExpression expr)\r\n {\r\n addSubexpressionsToRelatedExpression(expr);\r\n\r\n // Check suitability for comparison\r\n // TODO Implement checks\r\n if (mapping instanceof PersistableIdMapping)\r\n {\r\n // Special Case : OID comparison (\"id == val\")\r\n if (expr instanceof StringLiteral)\r\n {\r\n String oidString = (String)((StringLiteral)expr).getValue();\r\n if (oidString != null)\r\n {\r\n AbstractClassMetaData cmd = stmt.getRDBMSManager().getMetaDataManager().getMetaDataForClass(mapping.getType(),\r\n stmt.getQueryGenerator().getClassLoaderResolver());\r\n if (cmd.getIdentityType() == IdentityType.DATASTORE)\r\n {\r\n try\r\n {\r\n Object id = stmt.getRDBMSManager().getNucleusContext().getIdentityManager().getDatastoreId(oidString);\r\n if (id == null)\r\n {\r\n // TODO Implement this comparison with the key value\r\n }\r\n }\r\n catch (IllegalArgumentException iae)\r\n {\r\n NucleusLogger.QUERY.info(\"Attempted comparison of \" + this + \" and \" + expr +\r\n \" where the former is a datastore-identity and the latter is of incorrect form (\" + oidString + \")\");\r\n SQLExpressionFactory exprFactory = stmt.getSQLExpressionFactory();\r\n JavaTypeMapping m = exprFactory.getMappingForType(boolean.class, true);\r\n return exprFactory.newLiteral(stmt, m, false).eq(exprFactory.newLiteral(stmt, m, true));\r\n }\r\n }\r\n else if (cmd.getIdentityType() == IdentityType.APPLICATION)\r\n {\r\n // TODO Implement comparison with PK field(s)\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (mapping instanceof ReferenceMapping && expr.mapping instanceof PersistableMapping)\r\n {\r\n return processComparisonOfImplementationWithReference(this, expr, false);\r\n }\r\n else if (mapping instanceof PersistableMapping && expr.mapping instanceof ReferenceMapping)\r\n {\r\n return processComparisonOfImplementationWithReference(expr, this, false);\r\n }\r\n\r\n BooleanExpression bExpr = null;\r\n if (isParameter() || expr.isParameter())\r\n {\r\n if (subExprs != null && subExprs.size() > 1)\r\n {\r\n for (int i=0;i<subExprs.size();i++)\r\n {\r\n BooleanExpression subexpr = subExprs.getExpression(i).eq(((ObjectExpression)expr).subExprs.getExpression(i));\r\n bExpr = (bExpr == null ? subexpr : bExpr.and(subexpr));\r\n }\r\n return bExpr;\r\n }\r\n\r\n // Comparison with parameter, so just give boolean compare\r\n return new BooleanExpression(this, Expression.OP_EQ, expr);\r\n }\r\n else if (expr instanceof NullLiteral)\r\n {\r\n if (subExprs != null)\r\n {\r\n for (int i=0;i<subExprs.size();i++)\r\n {\r\n BooleanExpression subexpr = expr.eq(subExprs.getExpression(i));\r\n bExpr = (bExpr == null ? subexpr : bExpr.and(subexpr));\r\n }\r\n }\r\n return bExpr;\r\n }\r\n else if (literalIsValidForSimpleComparison(expr))\r\n {\r\n if (subExprs != null && subExprs.size() > 1)\r\n {\r\n // More than 1 value to compare with a simple literal!\r\n return super.eq(expr);\r\n }\r\n\r\n // Just do a direct comparison with the basic literals\r\n return new BooleanExpression(this, Expression.OP_EQ, expr);\r\n }\r\n else if (expr instanceof ObjectExpression)\r\n {\r\n return ExpressionUtils.getEqualityExpressionForObjectExpressions(this, (ObjectExpression)expr, true);\r\n }\r\n else\r\n {\r\n if (subExprs == null)\r\n {\r\n // ObjectExpression for a function call\r\n return new BooleanExpression(this, Expression.OP_EQ, expr);\r\n }\r\n return super.eq(expr);\r\n }\r\n }", "title": "" }, { "docid": "cddc96c93a1dbb8d77982a65e20be21e", "score": "0.5103817", "text": "<R> Children eq(boolean execute, ColumnFunction<R, ?> column, Number value);", "title": "" }, { "docid": "aa5d73f4dc1416e41e56c7b4a5850354", "score": "0.5099137", "text": "<R, V> Children eq(boolean execute, ColumnFunction<R, ?> column, ColumnFunction<V, ?> value);", "title": "" }, { "docid": "4830370ae4f65bede21eabc1d614e8db", "score": "0.5083082", "text": "EntityFind conditionToField(String fieldName, EntityCondition.ComparisonOperator operator, String toFieldName);", "title": "" }, { "docid": "698b8be23f415a5436125fdda328afdc", "score": "0.5062168", "text": "public String equatesWithField(String fldname) {\r\n\t //AA: check if case first\r\n\t if (compare!=Comptype.EQUALS){\r\n\t\t return null;\t\t\t\t \r\n\t }\r\n\t //AA: upto here\r\n if (lhs.isFieldName() &&\r\n lhs.asFieldName().equals(fldname) &&\r\n rhs.isFieldName())\r\n return rhs.asFieldName();\r\n else if (rhs.isFieldName() &&\r\n rhs.asFieldName().equals(fldname) &&\r\n lhs.isFieldName())\r\n return lhs.asFieldName();\r\n else\r\n return null;\r\n }", "title": "" }, { "docid": "17121bf2f208a77fe193465879cf8c24", "score": "0.5058815", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Query)) {\r\n return false;\r\n }\r\n Query other = (Query) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "25f1c7f64274bdfc38b346e07a973bef", "score": "0.5053374", "text": "EntityFind selectField(String fieldToSelect);", "title": "" }, { "docid": "4a89a17050b42d2aa75df7af2d8bde0c", "score": "0.5044918", "text": "protected abstract List<Integer> simpleEqualityQueryExecutor(Query query);", "title": "" }, { "docid": "0031b6c09ef0063fa8274341973686a2", "score": "0.5035213", "text": "private String makeWhere(String fieldName, String operator, int value){\n \n return SPACE + SQL_AND + fieldName + SPACE + operator + SPACE + value ;\n\n \n }", "title": "" }, { "docid": "0a8da86ad269e674611897978270be16", "score": "0.49970028", "text": "@Test\n public void testCompareLessEqualWithLong() throws Exception {\n String oql = \"SelecT DisTinct o.item from de.jsci.pcv.jdo.LieferantJDO as o\"\n + \" where o.deleted <= 67\";\n QueryObject qo = getQO(oql);\n String actual = qo.toString();\n String expected = \"SELECT DISTINCT o.item FROM de.jsci.pcv.jdo.LieferantJDO AS o \"\n + \"WHERE (o.deleted <= 67)\";\n assertEquals(expected, actual);\n }", "title": "" }, { "docid": "a55f426db5b6abf5b4c6f4e4a3754a98", "score": "0.4995929", "text": "@Override\n public E getUniqueByRestriction(String namedQuery, String parameter, Object value) \n {\n E result = null;\n \n result = (E) em.createNamedQuery(namedQuery)\n .setParameter(parameter, value)\n .getSingleResult(); \n\n return result;\n }", "title": "" }, { "docid": "d3831c543196cc4e753a6794c858211d", "score": "0.49747786", "text": "public List findByGrnCoordProg(Object grnCoordProg)\r\n/* 97: */ {\r\n/* 98: 80 */ return findByProperty(\"grnCoordProg\", grnCoordProg);\r\n/* 99: */ }", "title": "" }, { "docid": "467de203071414b3b381383b838ddb5e", "score": "0.49623448", "text": "@Override\n public E getUniqueByRestriction(String namedQuery, String parameter, String value) \n {\n E result = null;\n \n result = (E) em.createNamedQuery(namedQuery)\n .setParameter(parameter, value)\n .getSingleResult(); \n\n return result;\n }", "title": "" }, { "docid": "9946581519eea0d278aec6df38bb3837", "score": "0.49605626", "text": "public boolean equals(Object paramObject) {\n/* 1058 */ if (this == paramObject) {\n/* 1059 */ return true;\n/* */ }\n/* 1061 */ if (paramObject instanceof Year) {\n/* 1062 */ return (this.year == ((Year)paramObject).year);\n/* */ }\n/* 1064 */ return false;\n/* */ }", "title": "" }, { "docid": "45106d7507164f594240d023f10ef8a1", "score": "0.4948134", "text": "@Override\n\tpublic String getInstanceQuery() {\n\t\treturn \"accountName == '\" + this.accountName + \"'\";\n\t}", "title": "" }, { "docid": "f1ce002a1116c682b756691d8afbbb0d", "score": "0.49481338", "text": "List<T> searchByPropertyEqual(String property, Object value);", "title": "" }, { "docid": "d04595b9a2b7b4b0c3538964926e3e92", "score": "0.49424765", "text": "public Query parseQuery(String arg) throws CommandException\n {\n StringTokenizer st = new StringTokenizer(arg, \"=\");\n\n Query query = null;\n\n try\n {\n query = new Query(\"EQ\", st.nextToken(), st.nextToken());\n }\n catch (QueryException ex)\n {\n handleError(ex.getMessage());\n }\n\n return query;\n }", "title": "" }, { "docid": "62cb9ed929e48551973e2f948517ef20", "score": "0.4919897", "text": "@Override\n public JEPLDAOQuery<T> addParameter(Object value);", "title": "" }, { "docid": "b7bf2fa40d73cbb97335e525339b6d49", "score": "0.49157545", "text": "List<T> searchByPropertyEqual(String property, Object value,\r\n\t\t\t\tStatus recordStatus);", "title": "" }, { "docid": "812b450ec4f39058498da07de6d0d1df", "score": "0.4904111", "text": "<R> Children eq(boolean execute, ColumnFunction<R, ?> column, Boolean value);", "title": "" }, { "docid": "ce30a3b5ed825d0b8e4d4050fee9996f", "score": "0.4860247", "text": "private String makeWhere(String fieldName, String operator, String value, int dayToAdd){\n \n \n return SPACE + SQL_AND + fieldName + SPACE + operator + SPACE + \"DATEADD(DD, \" + dayToAdd + COMMA + QUOTE + value + QUOTE + \")\" ;\n \n \n }", "title": "" }, { "docid": "a148828861dbcc977b9dc4d22277a76c", "score": "0.48600602", "text": "ObservableIndexQueryBuilder<R, C> where(C column, Object value);", "title": "" }, { "docid": "ef7df55dcd9976427fdb2bd757742a09", "score": "0.48558426", "text": "public abstract boolean filterField(String name, Object value);", "title": "" }, { "docid": "6cb38671467cfeb3534a2e31070aec62", "score": "0.48547152", "text": "EntityFind condition(Map<String, Object> fields);", "title": "" }, { "docid": "310a2501b763a8bb50f7cc93e2967798", "score": "0.48535153", "text": "boolean contains(DataObject dataObject_Query);", "title": "" }, { "docid": "87c48f919797028c7e719c552f6c3795", "score": "0.48518753", "text": "@Test\n public void testFilterQueryLesserEqual() {\n Query lesserEqual50 = sparql\n .select(\"nick\", \"given\")\n .add(\"?p\", FOAF.givenname, \"?given\")\n .add(\"?p\", FOAF.nick, \"?nick\")\n .add(\"?p\", \"foaf:age\", \"?age\")\n .filter(\"?age\").lesserEqual(50)\n .orderByAsc(\"nick\")\n .query();\n\n try (QueryExecution exec = QueryExecutionFactory.create(lesserEqual50, lotrInf)) {\n ResultSet result = exec.execSelect();\n\n assertThat(result.hasNext()).isTrue();\n\n QuerySolution row = result.next();\n String given = row.getLiteral(\"given\").getString();\n String nick = row.getLiteral(\"nick\").getString();\n assertThat(given).isEqualTo(\"Samwise\");\n assertThat(nick).isEqualTo(\"Sam\");\n\n assertThat(result.hasNext()).isTrue();\n\n row = result.next();\n given = row.getLiteral(\"given\").getString();\n nick = row.getLiteral(\"nick\").getString();\n assertThat(given).isEqualTo(\"Frodo\");\n assertThat(nick).isEqualTo(\"Tiny Hobbit\");\n\n assertThat(result.hasNext()).isFalse();\n } catch (Exception e) {\n fail(String.format(\"Unexpected exception: %s\", e.getMessage()));\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5350cb70ebe78e66df075826d0323a9b", "score": "0.48037207", "text": "ObservableIndexQueryBuilder<R, C> where(C column, Object value, Operator op);", "title": "" }, { "docid": "3f4b777d712f0dd672abcab1458dea2b", "score": "0.478656", "text": "<S> QueryValue<S> orWhere(S recordedMethodCall);", "title": "" }, { "docid": "4cadd18b580d47760d9668da58247e8c", "score": "0.47861567", "text": "public JpaQlSearch where(String property, Operator operator, Object value) {\r\n\t\tadd(property, operator, value);\r\n\t\treturn this;\r\n\t}", "title": "" }, { "docid": "1b05ec50a4d960d243436307a64545ff", "score": "0.47794628", "text": "public final boolean equals(Object paramObject) {\n }", "title": "" }, { "docid": "037b952a9da99a7b5a3394f6bba5e3ba", "score": "0.47701693", "text": "@Override\r\n\tpublic BillVO queryBillDetail(String _parameter) {\n\t\treturn this.sqlSessionTemplate.selectOne(\"queryBillDetail\", _parameter);\r\n\t}", "title": "" }, { "docid": "6e4616ea35b1647697d47a382a77b101", "score": "0.47644082", "text": "public R visit(final NEQExpr astnode, final P param) {\n\t\tprolog(astnode);\n\t\tVirtualRegister[] tmp = new VirtualRegister[2];\n\t\tbinexpr(astnode, param,tmp);\n\t\tOperand[] ops = new Operand[2];\n\t\tgetOps(astnode, tmp, ops);\t\n\t\tCLABEL labels[] = new CLABEL[2];\n\t\tgetLabels(astnode, labels);\n\t\tCBNE neq = new CBNE(ops[0], ops[1], labels[0]);\n\t\tCBRA br = new CBRA(labels[1]);\n\t\tirfuncs.get(irfuncs.size()-1).add(neq);\n\t\tirfuncs.get(irfuncs.size()-1).add(br);\n\t\tepilog(astnode);\n\t\treturn null;\n\t}", "title": "" }, { "docid": "477b285464855e387e5b6ad3bfc0942a", "score": "0.47643828", "text": "public ResultSet search(String field, String parameter) {\n\n String sql_command = \"Select * from students WHERE \" + field.replaceAll(\"\\\\s+\",\"\") + \"=?\";\n ResultSet rs;\n try {\n // Create prepared statement to insert the data into the database without the vulnerability of an sql injection attack.\n PreparedStatement pstmt = dbCon.prepareStatement(sql_command);\n pstmt.setString(1, parameter);\n\n System.out.println(pstmt.toString());\n rs = pstmt.executeQuery();\n\n // If there is data in the result set\n if(rs.first()){\n\n // Return the result set\n return rs;\n }\n } catch (Exception e) {\n // If it fails print message to console\n System.out.println(e);\n }\n\n // If there is no data in the result set return null\n return null;\n }", "title": "" }, { "docid": "3d29fef4e90d2fb66e8940885829d8ec", "score": "0.47531196", "text": "public boolean queryAttributeEquals(String attribute, String value) throws Exception {\n\t\tString attributeValue = getAttribute(attribute);\n\t\treturn attributeValue != null && attributeValue.equals(value);\n\t}", "title": "" }, { "docid": "9c6977b4d787593606b5b9b6ad2b4485", "score": "0.47521853", "text": "public static <T>Predicate whereTextEquals(CriteriaBuilder cb, Root<T> root, String fieldNameAndValue) {\n if(!StringUtils.hasText(fieldNameAndValue)) return null;\n String[] NameAndValue = fieldNameAndValue.split(\"::\");\n if(NameAndValue.length == 2) {\n String fieldName = NameAndValue[0];\n String fieldValue = NameAndValue[1];\n return cb.equal(root.get(fieldName), fieldValue);\n }\n return null;\n }", "title": "" }, { "docid": "96390be6c3d28b514273defefb18883c", "score": "0.47353783", "text": "public Builder whereLessEquals(String column, Object value) {\n\t\t\tcheckParametersForNull(column, value);\n\t\t\tString sqlPart = column + \"<=?\";\n\t\t\tconditions.add(sqlPart);\n\t\t\tparameters.add(value);\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "ab8944b081c65bb2f7b21c395bc38d7e", "score": "0.47228894", "text": "@Test\n public void testCompareGreaterThanWithLong() throws Exception {\n String oql = \"SelecT DisTinct o.item from de.jsci.pcv.jdo.LieferantJDO as o\"\n + \" where o.deleted > 67\";\n QueryObject qo = getQO(oql);\n String actual = qo.toString();\n String expected = \"SELECT DISTINCT o.item FROM de.jsci.pcv.jdo.LieferantJDO AS o \"\n + \"WHERE (o.deleted > 67)\";\n assertEquals(expected, actual);\n }", "title": "" }, { "docid": "0c0b3c353c72f8fe3c601c96a9da205d", "score": "0.47141162", "text": "@Test public void testQueryWithWhereClause() {\n List<Player> players = Arrays.asList(TestFixtures.PELE, TestFixtures.GORNALDO);\n service.create(players);\n String clubId = String.valueOf(TestFixtures.PELE.clubId());\n assertThat(service.query(AutoValueClasses.PLAYER, \"club_id = ?\", clubId))\n .isEqualTo(Collections.singletonList(TestFixtures.PELE));\n }", "title": "" }, { "docid": "741e9b26326dc30b34ef59972d71a1fc", "score": "0.47061068", "text": "ConditionBuilder eq(Expression<T> compareWith);", "title": "" }, { "docid": "b5200960fc405d75ed6b523752cd3815", "score": "0.47011507", "text": "protected abstract String getFindEntityByIdQuery();", "title": "" }, { "docid": "f7b8692f911781b09fb5c04fc49260c0", "score": "0.46875957", "text": "public T caseQuery(Query object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7e89a08234aeb8ed213cae983dd9041e", "score": "0.46756566", "text": "@Repository\npublic interface DiagnosisDao extends JpaRepository<Diagnosis, Long>,\n QuerydslPredicateExecutor<Diagnosis> {\n Diagnosis findDiagnosisByNameEquals(String name);\n}", "title": "" }, { "docid": "bae7cf3ac70ddb8c271d05455b5b0ee9", "score": "0.46745193", "text": "E find(String propNome, Object valor);", "title": "" }, { "docid": "d1a49b8237417828820c7259477d85bc", "score": "0.4673703", "text": "public void testAndDate()\n {\n Criteria c = new Criteria();\n c.addDate(\"TABLE.DATE_COLUMN\", 2003, 0, 22, Criteria.GREATER_THAN);\n c.andDate(\"TABLE.DATE_COLUMN\", 2004, 0, 22, Criteria.LESS_THAN);\n\n String expect = \"SELECT FROM TABLE WHERE (TABLE.DATE_COLUMN>'20030122000000' AND TABLE.DATE_COLUMN<'20040122000000')\";\n\n String result = null;\n try\n {\n result = BasePeer.createQueryString(c);\n }\n catch (TorqueException e)\n {\n e.printStackTrace();\n fail(\"TorqueException thrown in BasePeer.createQueryString()\");\n }\n assertEquals(expect, result);\n }", "title": "" }, { "docid": "b474823bbd6702f30b9e9fa56a13d301", "score": "0.46634588", "text": "@Override\n public JEPLDAOQuery<T> setParameter(int position,Object value);", "title": "" }, { "docid": "fe9b1816590cdaf5e6073ad7e43b6d7c", "score": "0.46560076", "text": "public static Filter eq(Object variable, Object value) {\r\n return newFilter(variable, \"=\", value);\r\n }", "title": "" }, { "docid": "992873cd219fc46d5475532c6285818e", "score": "0.4654636", "text": "@Test\n void getByPropertyEqualUnique() {\n User user = (User)genericDAO.getByPropertyEqualUnique(\"email\", \"seth@beth.com\");\n assertEquals(\"Beth\", user.getFirstName() );\n }", "title": "" }, { "docid": "6ef17a7091aab1c15e370fef6a3dd7ad", "score": "0.46534714", "text": "public Query getQuery(ObjectId id);", "title": "" }, { "docid": "d95b8416fbc450bd18d6ae1a24f90158", "score": "0.4652624", "text": "public abstract Query<O> getQuery();", "title": "" }, { "docid": "f92bb07ee1d928fee902e151b0d9f0a0", "score": "0.4646504", "text": "public static Criteria where(Field field) {\n\t\treturn new Criteria(field);\n\t}", "title": "" }, { "docid": "cd0eabc6ce98fc174428cbd2262d96c4", "score": "0.46434528", "text": "int updateByQuery(@Param(\"record\") FpContractDO record, @Param(\"query\") FpContractQuery query);", "title": "" }, { "docid": "3e5fbc87b47b16aa1e31f07925ad9189", "score": "0.46392593", "text": "protected ResultSet executeQuery( String update, String param )\r\n {\r\n Object[] array = { param };\r\n return executeQuery( update, array );\r\n }", "title": "" }, { "docid": "2715887a1d501bbbb529e123ec6bfc97", "score": "0.46361667", "text": "public static ServiceQuery eq(String property, String value) {\n return new ServiceQuery(property, \"=\", value);\n }", "title": "" }, { "docid": "17d9d41445bb3e80c2130c752d6b98e1", "score": "0.46125007", "text": "public Criteria andMoneyEqualToColumn(LitemallAccountDetail.Column column) {\n addCriterion(new StringBuilder(\"money = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "title": "" }, { "docid": "ad4693f6b10c290bf82c76d1851b7357", "score": "0.45911944", "text": "@Test\n public void testFilterQueryGreaterEqual() {\n Query greaterEqual38 = sparql\n .select(\"nick\", \"given\")\n .add(\"?p\", FOAF.givenname, \"?given\")\n .add(\"?p\", FOAF.nick, \"?nick\")\n .add(\"?p\", \"foaf:age\", \"?age\")\n .filter(\"?age\").greaterEqual(38)\n .orderByDesc(\"nick\")\n .query();\n\n try (QueryExecution exec = QueryExecutionFactory.create(greaterEqual38, lotrInf)) {\n ResultSet result = exec.execSelect();\n\n assertThat(result.hasNext()).isTrue();\n\n QuerySolution row = result.next();\n String given = row.getLiteral(\"given\").getString();\n String nick = row.getLiteral(\"nick\").getString();\n assertThat(given).isEqualTo(\"Frodo\");\n assertThat(nick).isEqualTo(\"Tiny Hobbit\");\n\n assertThat(result.hasNext()).isTrue();\n\n row = result.next();\n given = row.getLiteral(\"given\").getString();\n nick = row.getLiteral(\"nick\").getString();\n assertThat(given).isEqualTo(\"Samwise\");\n assertThat(nick).isEqualTo(\"Sam\");\n\n assertThat(result.hasNext()).isFalse();\n } catch (Exception e) {\n fail(String.format(\"Unexpected exception: %s\", e.getMessage()));\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "8a6e5be5dee037036ca38a4b8ff53980", "score": "0.4587632", "text": "int updateByQuerySelective(@Param(\"record\") FpContractDO record, @Param(\"query\") FpContractQuery query);", "title": "" }, { "docid": "5d33f4c03cf5287f39888afa3fa9678e", "score": "0.45792586", "text": "public Criteria and(Field field) {\n\t\treturn new Criteria(criteriaChain, field);\n\t}", "title": "" }, { "docid": "ab225d94919479feea58e3d4c4ad8a3e", "score": "0.45791033", "text": "BillingAccountEntity query(int billingAccountId);", "title": "" }, { "docid": "bb3d2321d7b1de7c84f664f8cac61620", "score": "0.4568641", "text": "private Query buildSearchQuery(TxnTransferObj txnTransferObj) {\n\t\tSearchAccountRequestDO reqSearchAccountRequestDO = txnTransferObj.getTxnPayload().getSearchAccountRequestDO();\n\n\t\t// parameters\n\t\tString accountidPk = reqSearchAccountRequestDO.getAccountidPk();\n\t\tString sourceSystemRefkey = reqSearchAccountRequestDO.getSourceSystemRefkey();\n\t\tString sourceAccountId = reqSearchAccountRequestDO.getSourceAccountId();\n\t\tString accountName = reqSearchAccountRequestDO.getAccountName();\n\t\tString accountName2 = reqSearchAccountRequestDO.getAccountName2();\n\t\tString accountDescription = reqSearchAccountRequestDO.getAccountDescription();\n\t\tString accountSourceStatusRefkey = reqSearchAccountRequestDO.getAccountSourceStatusRefkey();\n\t\tString accountMdmStatusRefkey = reqSearchAccountRequestDO.getAccountMdmStatusRefkey();\n\t\tString inquiryFilter = reqSearchAccountRequestDO.getInquiryFilter();\n\t\t// String inquiryLevel =\n\t\t// reqSearchAccountRequestDO.getInquiryLevel();\n\n\t\t// String buffer for SQL\n\t\tStringBuffer queryJoinString = new StringBuffer();\n\t\tStringBuffer queryCriteriaString = new StringBuffer();\n\n\t\t// Parameter map\n\t\tHashMap<String, String> paramMap = new HashMap<String, String>();\n\n\t\tqueryJoinString.append(\n\t\t\t\t\"select distinct ACCOUNT.ID_PK, ACCOUNT.VERSION, ACCOUNT.CREATED_TS, ACCOUNT.DELETED_TS, ACCOUNT.UPDATED_TS, ACCOUNT.UPDATED_BY_USER, ACCOUNT.UPDATED_BY_TXN_ID, ACCOUNT.CONTRACT_SIGNED_LANG_REFKEY, ACCOUNT.CURRENCY_REFKEY, ACCOUNT.BILLING_MODE_TYPE_REFKEY, ACCOUNT.FREQUENCY_OF_PAYMENT, ACCOUNT.LOBTYPE_REFKEY, ACCOUNT.LOB_DESCRIPTION, ACCOUNT.SOURCE_SYSTEM_REFKEY, ACCOUNT.SOURCE_ACCOUNT_ID, ACCOUNT.MANAGEDBY_BU_CODE, ACCOUNT.MANAGEDBY_BU_ID, ACCOUNT.BRANCH_CODE_REFKEY, ACCOUNT.ACCOUNT_NAME, ACCOUNT.ACCOUNT_NAME2, ACCOUNT.ACCOUNT_DESCRIPTION, ACCOUNT.ACCOUNT_SOURCE_STATUS_REFKEY, ACCOUNT.ACCOUNT_MDM_STATUS_REFKEY, ACCOUNT.SIGNED_DATE, ACCOUNT.SIGNED_PLACE, ACCOUNT.EXECUTED_DATE, ACCOUNT.TERMINATED_DATE, ACCOUNT.TERMINATION_REASON_REFKEY FROM ACCOUNT \");\n\t\tif (inquiryFilter.equals(yugandharConstants.FILTER_VALUE_ACTIVE)) {\n\t\t\tqueryCriteriaString\n\t\t\t\t\t.append(\" where (ACCOUNT.DELETED_TS IS NULL OR ACCOUNT.DELETED_TS > CURRENT_TIMESTAMP) \");\n\n\t\t} else if (inquiryFilter.equals(yugandharConstants.FILTER_VALUE_INACTIVE)) {\n\t\t\tqueryCriteriaString\n\t\t\t\t\t.append(\" where (ACCOUNT.DELETED_TS IS NOT NULL AND ACCOUNT.DELETED_TS < CURRENT_TIMESTAMP) \");\n\t\t} else {\n\t\t\tqueryCriteriaString.append(\" where 1=1 \");\n\t\t}\n\n\t\tif (!(isNullOrEmpty(accountidPk) && isNullOrEmpty(sourceSystemRefkey) && isNullOrEmpty(sourceAccountId)\n\t\t\t\t&& isNullOrEmpty(accountName) && isNullOrEmpty(accountName2) && isNullOrEmpty(accountDescription)\n\t\t\t\t&& isNullOrEmpty(accountSourceStatusRefkey) && isNullOrEmpty(accountMdmStatusRefkey))) {\n\n\t\t\tif (!isNullOrEmpty(accountidPk)) {\n\t\t\t\tqueryCriteriaString.append(\" and ACCOUNT.ID_PK like :accountidPk \");\n\t\t\t\tparamMap.put(\"accountidPk\", accountidPk);\n\t\t\t}\n\n\t\t\tif (!isNullOrEmpty(sourceSystemRefkey)) {\n\t\t\t\tqueryCriteriaString.append(\" AND ACCOUNT.SOURCE_SYSTEM_REFKEY like :sourceSystemRefkey \");\n\t\t\t\tparamMap.put(\"sourceSystemRefkey\", sourceSystemRefkey);\n\t\t\t}\n\t\t\tif (!isNullOrEmpty(sourceAccountId)) {\n\t\t\t\tqueryCriteriaString.append(\" AND ACCOUNT.SOURCE_ACCOUNT_ID like :sourceAccountId \");\n\t\t\t\tparamMap.put(\"sourceAccountId\", sourceAccountId);\n\t\t\t}\n\n\t\t\tif (!isNullOrEmpty(accountName)) {\n\t\t\t\tqueryCriteriaString.append(\" AND ACCOUNT.ACCOUNT_NAME like :accountName \");\n\t\t\t\tparamMap.put(\"accountName\", accountName);\n\t\t\t}\n\t\t\tif (!isNullOrEmpty(accountName2)) {\n\t\t\t\tqueryCriteriaString.append(\" AND ACCOUNT.ACCOUNT_NAME2 like :accountName2 \");\n\t\t\t\tparamMap.put(\"accountName2\", accountName2);\n\t\t\t}\n\n\t\t\tif (!isNullOrEmpty(accountDescription)) {\n\t\t\t\tqueryCriteriaString.append(\" AND ACCOUNT.ACCOUNT_DESCRIPTION like :accountDescription \");\n\t\t\t\tparamMap.put(\"accountDescription\", accountDescription);\n\t\t\t}\n\n\t\t\tif (!isNullOrEmpty(accountSourceStatusRefkey)) {\n\t\t\t\tqueryCriteriaString.append(\" AND ACCOUNT.ACCOUNT_SOURCE_STATUS_REFKEY= :accountSourceStatusRefkey \");\n\t\t\t\tparamMap.put(\"accountSourceStatusRefkey\", accountSourceStatusRefkey);\n\t\t\t}\n\n\t\t\tif (!isNullOrEmpty(accountMdmStatusRefkey)) {\n\t\t\t\tqueryCriteriaString.append(\" AND ACCOUNT.ACCOUNT_MDM_STATUS_REFKEY= :accountMdmStatusRefkey \");\n\t\t\t\tparamMap.put(\"accountMdmStatusRefkey\", accountMdmStatusRefkey);\n\t\t\t}\n\n\t\t}\n\n\t\tqueryJoinString.append(queryCriteriaString);\n\t\tlogger.info(\"SearchAccountByAccountAttributesService search Query is -\" + queryJoinString.toString());\n\t\t// get Native query instance\n\t\tQuery searchQuery = entityManager.createNativeQuery(queryJoinString.toString(), AccountDO.class);\n\n\t\t// set the paramaters of the query from hashmap\n\t\tfor (Iterator<Entry<String, String>> iterator = paramMap.entrySet().iterator(); iterator.hasNext();) {\n\t\t\tEntry<String, String> mapEntry = iterator.next();\n\t\t\tlogger.debug(\"SearchAccountByAccountAttributesService parameter Name:\" + mapEntry.getKey() + \" Value:\"\n\t\t\t\t\t+ mapEntry.getValue());\n\t\t\tsearchQuery.setParameter(mapEntry.getKey(), mapEntry.getValue());\n\t\t}\n\n\t\treturn searchQuery;\n\t}", "title": "" }, { "docid": "7428cbe47c497dc426753b5ba4209086", "score": "0.45670637", "text": "@CallSuper\n public List<RecipeData> where(String field, Object value) throws SQLException {\n Dao<RecipeData, ?> dao = getDao(RecipeData.class);\n return dao.queryForEq(field, value);\n }", "title": "" }, { "docid": "d3d8be9371c3303f885974fed9951b35", "score": "0.45554572", "text": "public interface EntityFind extends java.io.Serializable {\n\n /** The Name of the Entity to use, as defined in an entity XML file.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind entity(String entityName);\n String getEntity();\n\n /** Make a dynamic view object to use instead of the entity name (if used the entity name will be ignored).\n *\n * If called multiple times will return the same object.\n *\n * @return EntityDynamicView object to add view details to.\n */\n EntityDynamicView makeEntityDynamicView();\n\n // ======================== Conditions (Where and Having) =================\n\n /** Add a field to the find (where clause).\n * If a field has been set with the same name, this will replace that field's value.\n * If any other constraints are already in place this will be ANDed to them.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind condition(String fieldName, Object value);\n\n /** Compare the named field to the value using the operator. */\n EntityFind condition(String fieldName, EntityCondition.ComparisonOperator operator, Object value);\n EntityFind condition(String fieldName, String operator, Object value);\n\n /** Compare a field to another field using the operator. */\n EntityFind conditionToField(String fieldName, EntityCondition.ComparisonOperator operator, String toFieldName);\n\n /** Add a Map of fields to the find (where clause).\n * If a field has been set with the same name and any of the Map keys, this will replace that field's value.\n * Fields set in this way will be combined with other conditions (if applicable) just before doing the query.\n *\n * This will do conversions if needed from Strings to field types as needed, and will only get keys that match\n * entity fields. In other words, it does the same thing as:\n * <code>EntityValue.setFields(fields, true, null, null)</code>\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind condition(Map<String, Object> fields);\n\n /** Add a EntityCondition to the find (where clause).\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind condition(EntityCondition condition);\n\n /** Add conditions for the standard effective date query pattern including from field is null or earlier than\n * or equal to compareStamp and thru field is null or later than or equal to compareStamp.\n */\n EntityFind conditionDate(String fromFieldName, String thruFieldName, java.sql.Timestamp compareStamp);\n\n /** Add a EntityCondition to the having clause of the find.\n * If any having constraints are already in place this will be ANDed to them.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind havingCondition(EntityCondition condition);\n\n /** Get the current where EntityCondition. */\n EntityCondition getWhereEntityCondition();\n\n /** Get the current having EntityCondition. */\n EntityCondition getHavingEntityCondition();\n\n /** Adds conditions for the fields found in the inputFieldsMapName Map.\n *\n * The fields and special fields with suffixes supported are the same as the *-find fields in the XML\n * Forms. This means that you can use this to process the data from the various inputs generated by XML\n * Forms. The suffixes include things like *_op for operators and *_ic for ignore case.\n *\n * For historical reference, this does basically what the Apache OFBiz prepareFind service does.\n *\n * @param inputFieldsMapName The map to get form fields from. If empty will look at the ec.web.parameters map if\n * the web facade is available, otherwise the current context (ec.context).\n * @param defaultOrderBy If there is not an orderByField parameter this is used instead.\n * @param alwaysPaginate If true pagination offset/limit will be set even if there is no pageIndex parameter.\n * @return Returns this for chaining of method calls.\n */\n EntityFind searchFormInputs(String inputFieldsMapName, String defaultOrderBy, boolean alwaysPaginate);\n EntityFind searchFormMap(Map inf, String defaultOrderBy, boolean alwaysPaginate);\n\n // ======================== General/Common Options ========================\n\n /** The field of the named entity to get from the database.\n * If any select fields have already been specified this will be added to the set.\n * @return Returns this for chaining of method calls.\n */\n EntityFind selectField(String fieldToSelect);\n\n /** The fields of the named entity to get from the database; if empty or null all fields will be retrieved.\n * @return Returns this for chaining of method calls.\n */\n EntityFind selectFields(Collection<String> fieldsToSelect);\n List<String> getSelectFields();\n\n /** A field of the find entity to order the query by. Optionally add a \" ASC\" to the end or \"+\" to the\n * beginning for ascending, or \" DESC\" to the end of \"-\" to the beginning for descending.\n * If any other order by fields have already been specified this will be added to the end of the list.\n * The String may be a comma-separated list of field names. Only fields that actually exist on the entity will be\n * added to the order by list.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind orderBy(String orderByFieldName);\n\n /** Each List entry is passed to the orderBy(String orderByFieldName) method, see it for details.\n * @return Returns this for chaining of method calls.\n */\n EntityFind orderBy(List<String> orderByFieldNames);\n List<String> getOrderBy();\n\n /** Look in the cache before finding in the datasource.\n * Defaults to setting on entity definition.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind useCache(Boolean useCache);\n boolean getUseCache();\n\n // ======================== Advanced Options ==============================\n\n /** Specifies whether the values returned should be filtered to remove duplicate values.\n * Default is false.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind distinct(boolean distinct);\n boolean getDistinct();\n\n /** The offset, ie the starting row to return. Default (null) means start from the first actual row.\n * Only applicable for list() and iterator() finds.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind offset(Integer offset);\n /** Specify the offset in terms of page index and size. Actual offset is pageIndex * pageSize. */\n EntityFind offset(int pageIndex, int pageSize);\n Integer getOffset();\n\n /** The limit, ie max number of rows to return. Default (null) means all rows.\n * Only applicable for list() and iterator() finds.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind limit(Integer limit);\n Integer getLimit();\n\n /** For use with searchFormInputs when paginated. Equals offset (default 0) divided by page size. */\n int getPageIndex();\n /** For use with searchFormInputs when paginated. Equals limit (default 20; exists for consistency/convenience along with getPageIndex()). */\n int getPageSize();\n\n /** Lock the selected record so only this transaction can change it until it is ended.\n * If this is set when the find is done the useCache setting will be ignored as this will always get the data from\n * the database.\n * Default is false.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind forUpdate(boolean forUpdate);\n boolean getForUpdate();\n\n // ======================== JDBC Options ==============================\n\n /** Specifies how the ResultSet will be traversed. Available values: ResultSet.TYPE_FORWARD_ONLY,\n * ResultSet.TYPE_SCROLL_INSENSITIVE (default) or ResultSet.TYPE_SCROLL_SENSITIVE. See the java.sql.ResultSet JavaDoc for\n * more information. If you want it to be fast, use the common option: ResultSet.TYPE_FORWARD_ONLY.\n * For partial results where you want to jump to an index make sure to use TYPE_SCROLL_INSENSITIVE.\n * Defaults to ResultSet.TYPE_SCROLL_INSENSITIVE.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind resultSetType(int resultSetType);\n int getResultSetType();\n\n /** Specifies whether or not the ResultSet can be updated. Available values:\n * ResultSet.CONCUR_READ_ONLY (default) or ResultSet.CONCUR_UPDATABLE. Should pretty much always be\n * ResultSet.CONCUR_READ_ONLY with the Entity Facade since updates are generally done as separate operations.\n * Defaults to CONCUR_READ_ONLY.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind resultSetConcurrency(int resultSetConcurrency);\n int getResultSetConcurrency();\n\n /** The JDBC fetch size for this query. Default (null) will fall back to datasource settings.\n * This is not the fetch as in the OFFSET/FETCH SQL clause (use limit for that), and is rather the JDBC fetch to\n * determine how many rows to get back on each round-trip to the database.\n *\n * Only applicable for list() and iterator() finds.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind fetchSize(Integer fetchSize);\n Integer getFetchSize();\n\n /** The JDBC max rows for this query. Default (null) will fall back to datasource settings.\n * This is the maximum number of rows the ResultSet will keep in memory at any given time before releasing them\n * and if requested they are retrieved from the database again.\n *\n * Only applicable for list() and iterator() finds.\n *\n * @return Returns this for chaining of method calls.\n */\n EntityFind maxRows(Integer maxRows);\n Integer getMaxRows();\n\n\n // ======================== Run Find Methods ==============================\n\n EntityFind disableAuthz();\n\n /** Runs a find with current options to get a single record by primary key.\n * This method ignores the cache setting and always gets results from the database.\n */\n EntityValue one() throws EntityException;\n\n /** Runs a find with current options to get a list of records.\n * This method ignores the cache setting and always gets results from the database.\n */\n EntityList list() throws EntityException;\n\n /** Runs a find with current options and returns an EntityListIterator object.\n * This method ignores the cache setting and always gets results from the database.\n */\n EntityListIterator iterator() throws EntityException;\n\n /** Runs a find with current options to get a count of matching records.\n * This method ignores the cache setting and always gets results from the database.\n */\n long count() throws EntityException;\n\n /** Update a set of values that match a condition.\n *\n * @param fieldsToSet The fields of the named entity to set in the database\n * @return long representing number of rows effected by this operation\n * @throws EntityException\n */\n long updateAll(Map<String, ?> fieldsToSet) throws EntityException;\n\n /** Delete entity records that match a condition.\n *\n * @return long representing number of rows effected by this operation\n * @throws EntityException\n */\n long deleteAll() throws EntityException;\n}", "title": "" }, { "docid": "b2396a39e8317f0b4c487bbd955804d1", "score": "0.4552263", "text": "public interface AddressRepository extends JpaRepository<Address, Long>, QueryDslPredicateExecutor<Address>, AddressRepositoryCustom {\n\n @Query(value = \"SELECT * FROM whatever_custom_query here s WHERE s.reconciliation_setting_id=?1\", nativeQuery = true)\n Address doAFoo(String s);\n\n}", "title": "" }, { "docid": "8c1b365a96e4226d198ed66d234970f7", "score": "0.4547704", "text": "EntityFind condition(EntityCondition condition);", "title": "" }, { "docid": "d161c5d420385264b6c2769c5aba8f56", "score": "0.45466596", "text": "void write(FieldBase field, PredicateFieldValue value);", "title": "" }, { "docid": "4b4ca00f7c9261895a64b10e0f5beb0e", "score": "0.45437312", "text": "public static boolean equals(Object paramObject1, Object paramObject2)\r\n/* */ {\r\n/* 318 */ if (paramObject1 == paramObject2) {\r\n/* 319 */ return true;\r\n/* */ }\r\n/* 321 */ if ((paramObject1 == null) || (paramObject2 == null)) {\r\n/* 322 */ return false;\r\n/* */ }\r\n/* 324 */ return paramObject1.equals(paramObject2);\r\n/* */ }", "title": "" }, { "docid": "f5e57009f9009413d1b90816009b2764", "score": "0.453766", "text": "public List findByGrnMetodoProceso(Object grnMetodoProceso)\r\n/* 117: */ {\r\n/* 118: 96 */ return findByProperty(\"grnMetodoProceso\", grnMetodoProceso);\r\n/* 119: */ }", "title": "" }, { "docid": "b7e55b50b78c398600a7a6e94ccb9701", "score": "0.4537125", "text": "@Query(\"SELECT p FROM Persona p WHERE p.primerNombre = :nombre AND p.primerApellido = :apellido\")\r\n\tPersona buscarPorNombreYApellido(@Param(\"nombre\")String pNombre, @Param(\"apellido\")String pApellido);", "title": "" }, { "docid": "742ce790c9a88f2df1cf6292beefb694", "score": "0.4523421", "text": "protected OpenJPAQuery query(String str) {\n return em.createQuery(str);\n }", "title": "" }, { "docid": "a794c5b6af3143a894641a3ca9affdf0", "score": "0.4522797", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ParameterValue)) {\n return false;\n }\n ParameterValue other = (ParameterValue) object;\n if ((this.parameterValuePK == null && other.parameterValuePK != null) || (this.parameterValuePK != null && !this.parameterValuePK.equals(other.parameterValuePK))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "b40e60dd94938767622e96252a63fd08", "score": "0.4521396", "text": "private void findByName(String query){\n \n }", "title": "" }, { "docid": "7318945626c6ad5b5fec75b16c84270a", "score": "0.45154023", "text": "public abstract List find(String query, String value) throws DAOException;", "title": "" } ]
c6acb567ba479e27ce1b26986a50b82a
Test of calcTeamSize method, of class Logic.
[ { "docid": "acf27b415879fcb5f1a4f641290461ec", "score": "0.74115723", "text": "@Test\r\n public void testCalcTeamSize() {\r\n System.out.println(\"calcTeamSize\");\r\n assertEquals(8, instance.calcTeamSize(30, 4, 3)); \r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "title": "" } ]
[ { "docid": "6d67c7aa8ba7da0561134fda0c1e5108", "score": "0.6822673", "text": "public int getSize () {\n\t\treturn teamSize;\n\t}", "title": "" }, { "docid": "07eb4d13dc22b8c6a79ce059a6eddf6d", "score": "0.6379079", "text": "public void testTotalRequiredSize() {\n }", "title": "" }, { "docid": "a1b5dd939ac5545a6bce1ed065392301", "score": "0.6298622", "text": "void testSize(Tester t) {\n t.checkExpect(mtlob.size(), 0);\n t.checkExpect(blist2.size(), 2);\n t.checkExpect(blist3.size(), 3);\n\n t.checkExpect(mtlos.size(), 0);\n t.checkExpect(slist2.size(), 2);\n t.checkExpect(slist3.size(), 3);\n\n t.checkExpect(mtloi.size(), 0);\n t.checkExpect(ilist2.size(), 2);\n t.checkExpect(ilist3.size(), 3);\n }", "title": "" }, { "docid": "6f8a25e4661828c7b85a34b2b2aeefa9", "score": "0.62422764", "text": "public int getTeamSize (int teamIndex)\n {\n return mySpriteGroup.get(teamIndex).size();\n }", "title": "" }, { "docid": "3ac714c29f56f0af2a32ad23bb59cdcb", "score": "0.6144519", "text": "@Test\n public void getScreenSize() {\n setUpGame(makeTwoBoxes(0,1));\n assertEquals(3, game.getScreenSize());\n }", "title": "" }, { "docid": "e81b64e60e7f4d6ae09a58ea3763157f", "score": "0.60119134", "text": "public void testGetTotalSize() {\n System.out.println(\"getTotalSize\");\n ClassInfo instance = new ClassInfo(\"Java_Projects/lab1/src/lab1/Lab1.java\");\n int expResult = 53;\n int result = instance.getTotalSize();\n assertTrue(\"testGetTotalSize:fail\",expResult== (result));\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "c76785f2f8f0a34d65d52dbac35cbc02", "score": "0.5984969", "text": "@Test\n public void testGetClubSize() throws Exception {\n readersClub.registerMember(staff2);\n readersClub.registerMember(staff1);\n readersClub.registerMember(student1);\n readersClub.registerMember(student2);\n readersClub.registerMember(student3);\n assertEquals(readersClub.getClubSize(),5);\n }", "title": "" }, { "docid": "10df1157fe556dea254d73c027ace0ee", "score": "0.5948287", "text": "public int getSize(){\r\n\r\n return gameSize;\r\n }", "title": "" }, { "docid": "4fde0ff5cd9f45df237aa172d2738367", "score": "0.59423095", "text": "public int getValue() {\n return this.teamSize;\n }", "title": "" }, { "docid": "fc86c3245ddf98e55afb7a992dda37d8", "score": "0.593228", "text": "private void computeSize() {\n\n\t}", "title": "" }, { "docid": "bc44bbcdd343fd312321d012ab0a1b24", "score": "0.5839453", "text": "@Test\n\t\tpublic void checkHandSize() {\n\t\t\tint numPlayers = board.getNumPlayers();\n\t\t\tint cardsRemaining = 18; // TODO: actually get a value for this\n\t\t\tint handSize = cardsRemaining / numPlayers;\n\t\t\tfor(Player p : board.getPlayers()) {\n\t\t\t\tSet<Card> hand = p.getHand();\n\t\t\t\tassertEquals(hand.size(), handSize); // temporary value until we figure out how to re-calculate based on # of players\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "96b06fdd4c38da5d71b7873c71340c67", "score": "0.58210534", "text": "@Override\n\tpublic int compareTo(Team o) {\n\t\treturn this.getMemberSize() - o.getMemberSize();\n\t}", "title": "" }, { "docid": "3878f28dc2c792e8bfe25545d988db80", "score": "0.58123636", "text": "public void testGetSize() throws Exception {\r\n\t\t// JUnitDoclet begin method getSize\r\n\t\t// JUnitDoclet end method getSize\r\n\t}", "title": "" }, { "docid": "727868110cbf84c8a9b2d5ba79e09090", "score": "0.58076465", "text": "@Test\n public void estimateSize() throws Exception {\n spliterator.estimateSize();\n verify(mockSpliterator).estimateSize();\n }", "title": "" }, { "docid": "6e6bc7169001e8f9c0f6fb189e0d56a4", "score": "0.57535386", "text": "@Test\r\n public void testCalculateNumberOfEcoliteRoofSmall() {\r\n System.out.println(\"calculateNumberOfEcoliteRoof\");\r\n double width = 240.0;\r\n int expResult = 3;\r\n int result = Calculator.calculateNumberOfEcoliteRoof(width);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "title": "" }, { "docid": "8ea49fccfcb1a627b77f3a3df930318e", "score": "0.56762415", "text": "int matchSize();", "title": "" }, { "docid": "5604383fc27381b993fb6ff41b29254d", "score": "0.5672882", "text": "public int getBetSize() {\n\t\tif (stage<Holdem.TURN) return low_bet;\n\t\treturn high_bet;\n\t}", "title": "" }, { "docid": "972ed055a711ac26646c2c65d9964c7b", "score": "0.56213504", "text": "@Test\n public void checkIfDeckSize() {\n int countHeroCards = 0;\n int countSpellMinionCards = 0;\n\n for(Card selectedCard: userHand.getCardsInHand()) {\n if(selectedCard.getClass() == HeroCard.class) {\n countHeroCards++;\n } else {\n countSpellMinionCards++;\n }\n }\n assertEquals(countSpellMinionCards,6 );\n assertEquals(countHeroCards, 1);\n assertEquals(userHand.getCardsInHand().size(), 7);\n }", "title": "" }, { "docid": "ec18f38b5d86389f1913cae7f013f6cd", "score": "0.5609855", "text": "@Test\n public void testGetClubSize2() throws Exception {\n readersClub.registerMember(staff2);\n readersClub.registerMember(student2);\n readersClub.registerMember(student3);\n assertEquals(readersClub.getClubSize() != 3, false);\n }", "title": "" }, { "docid": "0760c3bc0f95f4c8b9b36c7e88f4467f", "score": "0.56022304", "text": "public void testCalculator1() {\r\n assertEquals(hobbPerc.getSize(), 59);\r\n assertEquals(regionPerc.getSize(), 59);\r\n assertEquals(majorPerc.getSize(), 59);\r\n\r\n assertEquals(majorPerc.get(0)[0][0], 32);\r\n assertEquals(majorPerc.get(0)[1][0], 25);\r\n assertEquals(majorPerc.get(0)[2][0], 42);\r\n assertEquals(majorPerc.get(0)[3][0], 48);\r\n assertEquals(majorPerc.get(0)[0][1], 31);\r\n assertEquals(majorPerc.get(0)[1][1], 28);\r\n assertEquals(majorPerc.get(0)[2][1], 50);\r\n assertEquals(majorPerc.get(0)[3][1], 53);\r\n \r\n\r\n for (int i = 0; i < hobbPerc.getSize(); i++) {\r\n for (int j = 0; j < 4; j++) {\r\n for (int k = 0; k < 2; k++) {\r\n assertTrue(hobbPerc.get(i)[j][k] <= 100);\r\n assertTrue(regionPerc.get(i)[j][k] <= 100);\r\n assertTrue(majorPerc.get(i)[j][k] <= 100);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "9bb5d5acd2799c6b15d20d8c4d0927d9", "score": "0.55823976", "text": "@Test\n public void testDetermineWenofamer() {\n\tparticipants = new ArrayList<>(Arrays.asList(3l, 7l, 2l));\n\n\tsumOfBets = 0;\n\twenofamer = Wenofamer.determineWenofamer(participants, sumOfBets);\n\tassertThat(wenofamer, is(notNullValue()));\n\tassertThat(wenofamer, equalTo(3l));\n\n\tsumOfBets = 1;\n\twenofamer = Wenofamer.determineWenofamer(participants, sumOfBets);\n\tassertThat(wenofamer, is(notNullValue()));\n\tassertThat(wenofamer, equalTo(3l));\n\n\tsumOfBets = 2;\n\twenofamer = Wenofamer.determineWenofamer(participants, sumOfBets);\n\tassertThat(wenofamer, is(notNullValue()));\n\tassertThat(wenofamer, equalTo(7l));\n\n\tsumOfBets = 3;\n\twenofamer = Wenofamer.determineWenofamer(participants, sumOfBets);\n\tassertThat(wenofamer, is(notNullValue()));\n\tassertThat(wenofamer, equalTo(2l));\n\n\tsumOfBets = 5;\n\twenofamer = Wenofamer.determineWenofamer(participants, sumOfBets);\n\tassertThat(wenofamer, is(notNullValue()));\n\tassertThat(wenofamer, equalTo(7l));\n\n\tsumOfBets = 6;\n\twenofamer = Wenofamer.determineWenofamer(participants, sumOfBets);\n\tassertThat(wenofamer, is(notNullValue()));\n\tassertThat(wenofamer, equalTo(2l));\n\n\tsumOfBets = 7;\n\twenofamer = Wenofamer.determineWenofamer(participants, sumOfBets);\n\tassertThat(wenofamer, is(notNullValue()));\n\tassertThat(wenofamer, equalTo(3l));\n\n\tsumOfBets = 11;\n\twenofamer = Wenofamer.determineWenofamer(participants, sumOfBets);\n\tassertThat(wenofamer, is(notNullValue()));\n\tassertThat(wenofamer, equalTo(7l));\n\n\t// Test in case the number of participants is 1.\n\tparticipants = new ArrayList<>(Arrays.asList(2l));\n\n\tsumOfBets = 11;\n\twenofamer = Wenofamer.determineWenofamer(participants, sumOfBets);\n\tassertThat(wenofamer, is(notNullValue()));\n\tassertThat(wenofamer, equalTo(2l));\n\n\tsumOfBets = 0;\n\twenofamer = Wenofamer.determineWenofamer(participants, sumOfBets);\n\tassertThat(wenofamer, is(notNullValue()));\n\tassertThat(wenofamer, equalTo(2l));\n\n\t// How about a test for the nrOfParticipants = 0?\n\t// Maybe not needed - this my never happen\n\t// The logic for the\n//\tparticipants = new ArrayList<>();\n//\n//\tsumOfBets = 11;\n//\twenofamer = Wenofamer.determineWenofamer(participants, sumOfBets);\n//\tassertThat(wenofamer, is(notNullValue()));\n//\tassertThat(wenofamer, equalTo(2l));\n }", "title": "" }, { "docid": "7fb9fffbbf98c81b3edd508d6b17625b", "score": "0.5546771", "text": "@Test\r\n public void testNumberOfBottomScrewsPackageEcoliteSmallCarport() {\r\n System.out.println(\"numberOfBottomScrewsPackageEcolite\");\r\n double length = 240.0;\r\n double width = 240.0;\r\n int expResult =1;\r\n int result = Calculator.numberOfBottomScrewsPackageEcolite(length, width);\r\n assertEquals(expResult, result);\r\n // We found a really nice flaw by running this test the result was actually zero \r\n // But it it pretty obc´vious that we need at least some screws to hold the roof. \r\n \r\n }", "title": "" }, { "docid": "28cc607dddd9bf22b83a49307ca76ef3", "score": "0.553867", "text": "float getExpectedTeamContribution();", "title": "" }, { "docid": "9f5bba3dffeb9876d28d74f2a6e86376", "score": "0.5519342", "text": "@Test\n\tpublic void testGetNumberOfMines_allBoardObjects_ExpectingSpecificValue() {\n\t\t//Tester for brett 1\n\t\tint correctNumberOfMinesBoard1 = (int)Math.sqrt(9);\n\t\tassertEquals(correctNumberOfMinesBoard1, board1.getNumberOfMines());\n\t\t\n\t\t//Tester for brett 2\n\t\tint correctNumberOfMinesBoard2 = (int)Math.sqrt(36);\n\t\tassertEquals(correctNumberOfMinesBoard2, board2.getNumberOfMines());\n\n\t\t//Tester for brett 3\n\t\tint correctNumberOfMinesBoard3 = (int)Math.sqrt(81);\n\t\tassertEquals(correctNumberOfMinesBoard3, board3.getNumberOfMines());\n\n\t}", "title": "" }, { "docid": "45cbcf6d9708d5f2703c4439a9f0bcc8", "score": "0.5518508", "text": "@Test\n public void test35() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(0, 3, (-1667));\n assertEquals(\"id=0 askSize=-1667\", string0);\n }", "title": "" }, { "docid": "171c0f12cda8df6bbcae94037d12ad65", "score": "0.55127627", "text": "public int size() {\n\n String size; //Holds the size of the players\n \n ui.displayString(\"======GAME SETUP [CAPACITY]======\");\n\n ui.displayString(\"Enter the number of players: [min: 2, max: 6]\");\n\n //Ensures choice is within the [min, max] range\n do {\n\n //Checks if size contains numbers only\n do {\n size = ui.getCommand();\n ui.displayString(size);\n if (!isNum(size)) { //Error message\n ui.displayString(\"\\'\" + size + \"\\'\" + \" is not an integer.....\");\n }\n } while (!isNum(size));\n\n if (Integer.parseInt(size) < 2 || Integer.parseInt(size) > 6) { //Error message\n ui.displayString(\"Enter a valid integer between [2 - 6].....\");\n }\n } while (Integer.parseInt(size) < 2 || Integer.parseInt(size) > 6);\n\n return Integer.parseInt(size);\n }", "title": "" }, { "docid": "6e0efe7eab48f3b0d3b9fc9a650aea96", "score": "0.5497287", "text": "int getTeamsCount();", "title": "" }, { "docid": "6e0efe7eab48f3b0d3b9fc9a650aea96", "score": "0.5497287", "text": "int getTeamsCount();", "title": "" }, { "docid": "6e0efe7eab48f3b0d3b9fc9a650aea96", "score": "0.5497287", "text": "int getTeamsCount();", "title": "" }, { "docid": "6e0efe7eab48f3b0d3b9fc9a650aea96", "score": "0.5497287", "text": "int getTeamsCount();", "title": "" }, { "docid": "8f357bbb86b5dd08a62f40c5d03e0280", "score": "0.5476025", "text": "@Test\r\n public void testNumberOfBottomScrewsPackageEcoliteLargeCarport() {\r\n System.out.println(\"numberOfBottomScrewsPackageEcolite\");\r\n double length = 930.0;\r\n double width = 510.0;\r\n int expResult = 3;\r\n int result = Calculator.numberOfBottomScrewsPackageEcolite(length, width);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "title": "" }, { "docid": "a858295883e17ef7c161e9b0b12abbdf", "score": "0.5468797", "text": "@Test\n void testNumberOfWalls() {\n labyrinth.createLabyrinth();\n assertEquals(LAB_HEIGHT * LAB_WIDTH + 1, this.numberOfwalls(labyrinth), \"Number of still existing walls does not match expectation: \");\n }", "title": "" }, { "docid": "d96cb606617c9c825c2dd3f88df25699", "score": "0.5461738", "text": "private void calculateUnits() {\n Integer unitsDeployed = ((int) Math.ceil((double) opponentUnits / 2));\n setUnitsDeployed(unitsDeployed);\n }", "title": "" }, { "docid": "2ec24f20cdbbb5b1b20509d26c5a37e7", "score": "0.54410297", "text": "@Test\r\n public void testMaxTile() {\r\n System.out.println(\"MaxTile\");\r\n MainGame instance = new MainGame();\r\n instance.SetTiles();\r\n instance.SetPbTiles();\r\n instance.MaxTile();\r\n }", "title": "" }, { "docid": "3c37d88eeccbcdc9d00ffb323703513f", "score": "0.5440342", "text": "@Test\n public void minedInBlockHeightTest() {\n // TODO: test minedInBlockHeight\n }", "title": "" }, { "docid": "60be4036aba42bea44af9b1752438904", "score": "0.5438056", "text": "@Test\n public void testgetHowManyPlayers()\n {\n \tAssert.assertTrue(Dialog.getHowManyPlayers(1,5) > 0);\n }", "title": "" }, { "docid": "10c1aaa489827b98882294e78d59196f", "score": "0.54342645", "text": "public abstract void size(float size);", "title": "" }, { "docid": "6d0f00d300671d3869754a77a469ea34", "score": "0.5428315", "text": "@Test\n\t\tpublic void testCalcChemin8() {\n\t\t\tIMuraille mur = new MurailleImpl();\n\t\t\tmur = mur.init(2, 0, 1, 1, 100);\n\t\t\t\n\t\t\tList<IMuraille> listeMuraille=new ArrayList<IMuraille>();\n\t\t\tlisteMuraille.add(mur);\n\t\t\t\n\t\t\t// Ajute d'un villageois au terrain\n\t\t\tIVillageois vill = new VillageoisImpl();\n\t\t\tvill = vill.init(0, 0, ERace.ORC, 1, 1, 10, 4, 100);\n\t\t\t\n\t\t\tList<IVillageois> listeVillageois=new ArrayList<IVillageois>();\n\t\t\tlisteVillageois.add(vill);\n\t\t\t\n\t\t\tterrain.bindMur(listeMuraille);\n\t\t\t\n\t\t\t\t\n\t\t\tterrain.init(600, 400);\n\t\t\t\n\t\t\tterrain.bindVill(listeVillageois);\n\t\t\t\n\t\t\t// opération\n\t\t\tgd.calcChemin(0, 360);\n\n\t\t\t// oracle\n\t\t\tArrayList<Integer> res_cheminX = \n\t\t\t\t\tnew ArrayList<Integer>(Arrays.asList(1,2,3,4));\n\t\t\t\n\t\t\tassertPerso(\"calcChemin, les X du cheminX sont fausses\", \n\t\t\t\t\tUtils.areEqualValues(gd.getCheminX(), res_cheminX));\n\t\t\t\n\t\t\tArrayList<Integer> res_cheminY = \n\t\t\t\t\tnew ArrayList<Integer>(Arrays.asList(0,0,0,0));\n\t\t\t\n\t\t\tassertPerso(\"calcChemin, les Y du cheminY sont fausses\", \n\t\t\t\t\tUtils.areEqualValues(gd.getCheminY(), res_cheminY));\n\t\t\t\n\t\t\tArrayList<Integer> res_pointArrive = \n\t\t\t\t\tnew ArrayList<Integer>(Arrays.asList(1,0));\n\t\t\t\n\t\t\tassertPerso(\"calcChemin, le point d'arrivee est faux\", \n\t\t\t\t\tUtils.areEqualValues(gd.getPointArrivee(), res_pointArrive));\n\t\t\t\n\t\t\tassertPerso(\"calcChemin, le premierObstacle est faux\", \n\t\t\t\t\tgd.getFirstObstacle()== 1);\n\t\t\t\n\n\t\t\tassertPerso(\"calcChemin, estCalcChemin est faux\", \n\t\t\t\t\tgd.estCalcChemin() == true);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f9a029f1189f1b6ac6e6fb7ad13fc36d", "score": "0.54108006", "text": "public abstract int getTeamScore(int teamId);", "title": "" }, { "docid": "04c5146ad83906f4d70a0aa27a3cb27e", "score": "0.5408101", "text": "public void setSize (int newSize) {\n\t\tassert newSize > 0 : \"Team must have at least one player.\";\n\t\t\n\t\tteamSize = newSize;\n\t}", "title": "" }, { "docid": "8c4aaa859a111721f934045a674bc6dd", "score": "0.5408071", "text": "@Test\n\tpublic void testGet() {\n\t\tSize s2 = new Size(1, 1);\n\t\tassertEquals(l.getSize(), s2);\n\t\tl.setSize(s);\n\t\tassertEquals(l.getSize(), s);\n\t}", "title": "" }, { "docid": "961b5dd400c075ec5d62f887f073a45a", "score": "0.54024225", "text": "@Test\r\n public void testCalculateRevenueForThreePlayers() {\n\tTile t = game.getTile(new Position(6,5));\r\n\t((DeltaTile)t).changePlayerColor(PlayerColor.Red);\r\n\t((DeltaTile)t).changeUnitCount(10);\r\n\tgame.move(new Position(6,5), new Position(6,6), 10);\r\n\tgame.buy(1, new Position(0, 0));\r\n\t \r\n\t// Only two moves required to end turn\r\n\tperformMoves(2);\r\n\t \r\n\t// Validate result Red = 10 (original) + 4 (settlement) + 4 (settlement) = 18\r\n\tassertEquals(18, game.getPlayerInTurn().getCoins());\r\n\tperformMoves(1);\r\n\t// Validate result Green = 10 (original) + 4 (settlement) = 14\r\n\tassertEquals(14, game.getPlayerInTurn().getCoins());\r\n\tperformMoves(1);\r\n\t// Validate result Blue = 10 (original) + 4 (settlement) = 14\r\n\tassertEquals(14, game.getPlayerInTurn().getCoins());\r\n }", "title": "" }, { "docid": "c6dfa25faabe3b84e5e9493fe8e488bc", "score": "0.5387926", "text": "public void testCalculator4() {\r\n calc =\r\n new Calculator(\"MusicSurveyDataNoGenreRepeats.csv\",\r\n \"SongListNoGenreRepeats.csv\");\r\n hobbPerc = calc.getHobbyPercent();\r\n regionPerc = calc.getRegionPercent();\r\n majorPerc = calc.getMajorPercent();\r\n calc.getFileReader();\r\n assertEquals(hobbPerc.getSize(), 17);\r\n assertEquals(regionPerc.getSize(), 17);\r\n assertEquals(majorPerc.getSize(), 17);\r\n\r\n for (int i = 0; i < hobbPerc.getSize(); i++) {\r\n for (int j = 0; j < 4; j++) {\r\n for (int k = 0; k < 2; k++) {\r\n assertTrue(hobbPerc.get(i)[j][k] <= 100);\r\n assertTrue(regionPerc.get(i)[j][k] <= 100);\r\n assertTrue(majorPerc.get(i)[j][k] <= 100);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "c289084054d516f323893699821d3a1d", "score": "0.5386313", "text": "int avgFailSize();", "title": "" }, { "docid": "08c275b1329f54c3f170ff449e029bb8", "score": "0.5381278", "text": "@Test\r\n public void getWidthTest() {\r\n assertEquals(Math.round(Car.CAR_WIDTH), Math.round(car.getWidth()));\r\n }", "title": "" }, { "docid": "e8c3734ffc53a48857dd7a21e3c3a44a", "score": "0.53609014", "text": "@Test\n\tpublic void test_getEstimatedMemoryRatio() {\n\t}", "title": "" }, { "docid": "538b99de9790b598a343c285dd2d2c77", "score": "0.5349504", "text": "public static int evaluateSize(Object obj,Meshy meshy) {\n return evaluateSize(obj, meshy, meshy.getVersion());\n }", "title": "" }, { "docid": "78c34d2a7a6150c11dfaf6316db12661", "score": "0.5346042", "text": "int getDireTeamScore();", "title": "" }, { "docid": "32f64dd77f990de5aa6233b0d7e2fbe5", "score": "0.5337959", "text": "int getTeamMemberBCount();", "title": "" }, { "docid": "28cfc696c167cb89ace7f069cda7cce0", "score": "0.5335146", "text": "@Test\n public void test_playlist_number_of_track_should_depend_upon_size_of_underneath_collection(){\n PlayList playList=createPlayListWithMutableNumberOfTracks(uuid,10);\n Assert.assertEquals(playList.getNrOfTracks(),10,\"Number of tracks should be 10\");\n }", "title": "" }, { "docid": "61e28e4bc0c5a573b6a009771b006c10", "score": "0.5331209", "text": "@Test\r\n\tpublic void dimensionsWellLoaded() throws Exception{\r\n\t\tassertEquals(10, game.getColumns());\r\n\t\tassertEquals(10, game.getRows());\r\n\t}", "title": "" }, { "docid": "09448e650fe1e7cceb96b92e915aada9", "score": "0.5323817", "text": "@Test\n void losingAndWinningGameShouldIncrementGamesPlayedAndGamesWonAppropriately(){\n UI test = new UI();\n assertEquals(0,test.gamesPlayed);\n assertEquals(0,test.gamesWon);\n test.updateGameStats(false);\n assertEquals(1,test.gamesPlayed);\n assertEquals(0,test.gamesWon);\n test.updateGameStats(false);\n assertEquals(2,test.gamesPlayed);\n assertEquals(0,test.gamesWon);\n test.updateGameStats(true);\n assertEquals(3,test.gamesPlayed);\n assertEquals(1,test.gamesWon);\n }", "title": "" }, { "docid": "24123d44478dd60c9a5c0123b39b007c", "score": "0.532089", "text": "@Test\n\t\tpublic void testCalcChemin9() {\n\t\t\tIMuraille mur = new MurailleImpl();\n\t\t\tmur = mur.init(1, 0, 1, 1, 100);\n\t\t\t\n\t\t\tList<IMuraille> listeMuraille=new ArrayList<IMuraille>();\n\t\t\tlisteMuraille.add(mur);\n\t\t\t\n\t\t\t// Ajute d'un villageois au terrain\n\t\t\tIVillageois vill = new VillageoisImpl();\n\t\t\tvill = vill.init(0, 0, ERace.ORC, 1, 1, 10, 4, 100);\n\t\t\t\n\t\t\tList<IVillageois> listeVillageois=new ArrayList<IVillageois>();\n\t\t\tlisteVillageois.add(vill);\n\t\t\t\n\t\t\tterrain.bindMur(listeMuraille);\n\t\t\t\n\t\t\t\t\n\t\t\tterrain.init(600, 400);\n\t\t\t\n\t\t\tterrain.bindVill(listeVillageois);\n\t\t\t\n\t\t\t// opération\n\t\t\tgd.calcChemin(0, 360);\n\n\t\t\t// oracle\n\t\t\tArrayList<Integer> res_cheminX = \n\t\t\t\t\tnew ArrayList<Integer>(Arrays.asList(1,2,3,4));\n\t\t\t\n\t\t\tassertPerso(\"calcChemin, les X du cheminX sont fausses\", \n\t\t\t\t\tUtils.areEqualValues(gd.getCheminX(), res_cheminX));\n\t\t\t\n\t\t\tArrayList<Integer> res_cheminY = \n\t\t\t\t\tnew ArrayList<Integer>(Arrays.asList(0,0,0,0));\n\t\t\t\n\t\t\tassertPerso(\"calcChemin, les Y du cheminY sont fausses\", \n\t\t\t\t\tUtils.areEqualValues(gd.getCheminY(), res_cheminY));\n\t\t\t\n\t\t\tArrayList<Integer> res_pointArrive = \n\t\t\t\t\tnew ArrayList<Integer>(Arrays.asList(0,0));\n\t\t\t\n\t\t\tassertPerso(\"calcChemin, le point d'arrivee est faux\", \n\t\t\t\t\tUtils.areEqualValues(gd.getPointArrivee(), res_pointArrive));\n\t\t\t\n\t\t\tassertPerso(\"calcChemin, le premierObstacle est faux\", \n\t\t\t\t\tgd.getFirstObstacle()== 0);\n\t\t\t\n\n\t\t\tassertPerso(\"calcChemin, estCalcChemin est faux\", \n\t\t\t\t\tgd.estCalcChemin() == true);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a9a520724e6a10aa43788e4ef1587144", "score": "0.5319271", "text": "int getRadiantTeamScore();", "title": "" }, { "docid": "ef55f3065966521d9e52a942aa0e2bf6", "score": "0.5307208", "text": "@Test\n public void testSize() throws Exception {\n System.out.println(\"size\");\n OTAMessageHeader instance = new OTAMessageHeader();\n int expResult = 13;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "081f70a43083eaa154ede34f2987a3da", "score": "0.52988106", "text": "public static int evaluateSize(Object obj, Meshy meshy, float version) {\n TypeAdapter adapter = getTypeAdapter(obj, meshy, version);\n return adapter.evaluateSize(obj);\n }", "title": "" }, { "docid": "056aaff4b43c151c8b5f823df5c13ed1", "score": "0.529655", "text": "@Test\r\n public void testCalculateNumberOfEcoliteRoof() {\r\n System.out.println(\"calculateNumberOfEcoliteRoof\");\r\n double width = 300.0;\r\n int expResult = 3;\r\n int result = Calculator.calculateNumberOfEcoliteRoof(width);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "title": "" }, { "docid": "b4fd178056463277d4ea92afa677787a", "score": "0.5295814", "text": "@Test\n public void test05(){\n\n assertEquals(5, game.cellSelected(0)); //player 1 a jogar na linha 5\n assertEquals(4, game.cellSelected(0)); //player2 a jogar na linha 4\n assertEquals(5, game.cellSelected(1));\n assertEquals(4, game.cellSelected(1));\n assertEquals(5, game.cellSelected(2));\n assertEquals(4, game.cellSelected(2));\n assertEquals(5, game.cellSelected(3));//player 1\n\n assertTrue(game.isWinPosition(5, 3)); //verificar se na ultima jogada o Player1 ganhou por linha\n\n\n }", "title": "" }, { "docid": "8559eddac958f9ac6432461e2bf51c69", "score": "0.5294131", "text": "@Test(expected = InvalidTeamException.class)\n public void validateUserTeamLimitTest() {\n User userWithTooManyTeams = userRepository.findUserByUserName(\"userWithTooManyTeams\").get(0);\n teamService.validateUserTeamLimit(userWithTooManyTeams);\n }", "title": "" }, { "docid": "30f3a5663d941b20c9f69b562c6eefdf", "score": "0.5292211", "text": "public void testGetTotalMessageLength() {\n System.out.println(\"getTotalMessageLength\");\n \n \n \n int expResult = 0;\n int result = mInstance.getTotalMessageLength();\n assertEquals(expResult, result);\n \n \n }", "title": "" }, { "docid": "d6b96e2964f09c7b959fc54532b3ec85", "score": "0.5290478", "text": "@Test\n public void testCalculateScoreRepeatedFiveSpare() {\n System.out.println(\"calculateScoreRepeatedFiveSquare\");\n BowlingScore tester = new BowlingScore(testArray3);\n int expResult = 150;\n int result = tester.calculateScore();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "75d6e64031aadf2f4faa53e40a93ca15", "score": "0.5286108", "text": "private int calculateSize() {\n int s = 1;\n // check if we are not known empty\n if (isEmpty >= 0) {\n for (double point : points) {\n if (isValidPoint(point)) {\n s++;\n }\n }\n }\n size = s;\n isEmpty = s > 1 ? 1 : -1;\n return s;\n }", "title": "" }, { "docid": "dd6cc99f28612b85b9bb3f34feb8e296", "score": "0.52851695", "text": "public int getTestcaseSize() {\r\n return this.testcaseSize;\r\n }", "title": "" }, { "docid": "fb27b6b3fd871595e97793a5d4c2eb10", "score": "0.52832186", "text": "public static void calculateOverall(List <String> divisions){\n /*\n Initializing variables\n size will hold the amount of array indices to create, for which is equal to the total teams in the text file.\n teams will contain an array list [of size] total teams in the text file, regardless of separated divisions.\n from will be the starting point from which to extract information for the divisions list.\n to will be the ending point from which to extract information for the divisions list.\n */\n int size = divisions.size() / 3;\n String[][] teams = new String[size][3];\n int from = 0;\n int to = 3;\n // Will take care of separating information from the divisions list to the indices of the teams array.\n for(int i = 0; i < size; i++){\n teams[i] = divisions.subList(from, to).toArray(new String[0]);\n from += 3;\n to += 3;\n }\n\n // Grouping the names in one list.\n List<String> teamNames = new ArrayList<String>();\n for(int i = 0; i < size; i++){\n String teamName = teams[i][0];\n teamNames.add(teamName);\n }\n\n // Grouping team scores to then calculate winning percentage for each team.\n Integer[][] groupingScores = new Integer[size][2];\n for(int i = 0; i < size; i++){\n int currentTeamWin = Integer.parseInt(teams[i][1]);\n int currentTeamLoss = Integer.parseInt(teams[i][2]);\n groupingScores[i][0] = currentTeamWin;\n groupingScores[i][1] = currentTeamLoss;\n }\n\n // Calculating the winning percentage for each team.\n List<Double> winningPercentages = new ArrayList<Double>(); // Will get sorted\n double[] winningPercentagesTwo = new double[size]; // Will not get sorted\n for(int i = 0; i < size; i++){\n double wins = groupingScores[i][0];\n double losses = groupingScores[i][1];\n double winningPercent = (wins / (wins + losses));\n winningPercentages.add(winningPercent);\n winningPercentagesTwo[i] = winningPercent;\n }\n\n // Creating a new array that adds the groups and winning percentages together.\n String[] temporaryStorage = new String[4];\n String[][] combinedArrayInformation = new String[size][4];\n for(int i = 0; i < size; i++){\n // String variables which will get the values of the file of the teams displayed in order.\n String teamName = teamNames.get(i); //String of team name\n String teamWin = String.valueOf(groupingScores[i][0]); //String of team wins\n String teamLoss = String.valueOf(groupingScores[i][1]); //String of team losses\n String winningPercent = String.valueOf(winningPercentages.get(i)); //String of winning percentage\n\n // Adding the string variables to the combinedListInformation array.\n temporaryStorage = new String[]{teamName, teamWin, teamLoss, winningPercent};\n combinedArrayInformation[i] = temporaryStorage;\n }\n\n // Calculating reverse order from highest to lowest for percentages.\n // This will be useful for placing teams from highest to lowest.\n // sorting winningPercentages highest to lowest\n List<Double> updatedPercentageOrder = new ArrayList<Double>(winningPercentages);\n updatedPercentageOrder.sort(Collections.reverseOrder());\n\n System.out.println(updatedPercentageOrder);\n\n // normal percentage scores in a list.\n System.out.println(Arrays.toString(winningPercentagesTwo));\n\n // placing teams from highest to lowest.\n String[][] formattedGroups = new String[size][3];\n for(int i = 0; i < size; i++) {\n double currentHighestNumber = updatedPercentageOrder.get(i);\n for (int x = 0; x < size; x++) {\n double currentTeamNumber = winningPercentagesTwo[x];\n\n if (currentTeamNumber == currentHighestNumber) {\n String teamName = teamNames.get(x); //String of team name\n String teamWin = String.valueOf(groupingScores[x][0]); //String of team wins\n String teamLoss = String.valueOf(groupingScores[x][1]); //String of team losses\n\n // Adding the string variables to the combinedListInformation array.\n formattedGroups[x] = new String[]{teamName, teamWin, teamLoss};\n }\n }\n }\n\n System.out.println(Arrays.deepToString(formattedGroups));\n\n System.out.println(\"Team Wins Losses\");\n System.out.println(\"-------------------------\");\n for(int i = 0; i < size; i++){\n System.out.printf(\"%s\\t\\t%s\\t%s\\n\",\n formattedGroups[i][0], formattedGroups[i][1],formattedGroups[i][2]);\n }\n }", "title": "" }, { "docid": "c6cb134bc1c848a391ab1752803e73d0", "score": "0.5278331", "text": "public int getTeamNum ()\n {\n return mySpriteGroup.size();\n }", "title": "" }, { "docid": "28879a37e0ee739df819a725b8022fa3", "score": "0.52775973", "text": "@Test\n void calculateVictoryPoints() {\n Game game = new Game(1);\n try {\n game.addPlayer(\"Carlo\");\n } catch (NameAlreadyRegisteredException | GameAlreadyStartedException e) {\n fail();\n }\n Player player = game.getPlayers().get(0);\n assertSame(0, player.calculateVictoryPoints());\n try {\n player.getPersonalBoard().getStrongBox().add(Resource.COIN,100);\n player.getPersonalBoard().getStrongBox().add(Resource.SERVANT,100);\n player.getPersonalBoard().getStrongBox().add(Resource.SHIELD,100);\n player.getPersonalBoard().getStrongBox().add(Resource.STONE,100);\n } catch (NotAResourceForStrongBoxException e) {\n fail();\n }\n assertSame(80, player.calculateVictoryPoints());\n player.getCardsOnTable()[0] = new ExtraStorageLeaderCard(3, Resource.COIN, Resource.COIN);\n assertSame(83, player.calculateVictoryPoints());\n player.getPersonalBoard().getFaithTrack().goOn(3);\n assertSame(84, player.calculateVictoryPoints());\n player.getPersonalBoard().getFaithTrack().goOn(2);\n assertSame(84, player.calculateVictoryPoints());\n player.getPersonalBoard().getFaithTrack().goOn(1);\n assertSame(85, player.calculateVictoryPoints());\n player.getPersonalBoard().getFaithTrack().goOn(2);\n assertSame(87, player.calculateVictoryPoints());\n try {\n player.getPersonalBoard().getSlotsDevelopmentCards().addDevelopmentCard(3, exampleDevelopmentCard(1));\n } catch (PositionInvalidException | IndexOutOfSlotDevelopmentCardsException e) {\n fail();\n }\n assertSame(90, player.calculateVictoryPoints());\n try {\n player.getPersonalBoard().getSlotsDevelopmentCards().addDevelopmentCard(3, exampleDevelopmentCard(2));\n } catch (PositionInvalidException | IndexOutOfSlotDevelopmentCardsException e) {\n fail();\n }\n assertSame(93, player.calculateVictoryPoints());\n }", "title": "" }, { "docid": "df34ea31a9ab32a7e143bff74880888b", "score": "0.52697843", "text": "@Test\n public void test06(){\n\n assertEquals(5, game.cellSelected(6)); //player 1 a jogar na linha 5\n assertEquals(5, game.cellSelected(5)); //player 2 a jogar na linha 5\n assertEquals(4, game.cellSelected(6));\n assertEquals(4, game.cellSelected(5));\n assertEquals(3, game.cellSelected(6));\n assertEquals(3, game.cellSelected(5));\n assertEquals(2, game.cellSelected(6));//player 1\n\n assertTrue(game.isWinPosition(2,6)); //verificar se na ultima jogada o Player1 ganhou por coluna\n\n\n }", "title": "" }, { "docid": "9c8703c946d7fe302e351c4435cf01e8", "score": "0.5267137", "text": "@Test\r\n public void testGetHeight() {\r\n System.out.println(\"getHeight\");\r\n int col = 0;\r\n Board instance = new Board(7, 6);\r\n instance.makeMove(col);\r\n instance.makeMove(col);\r\n int expResult = 2;\r\n int result = instance.getHeight(col);\r\n \r\n assertEquals(expResult, result);\r\n }", "title": "" }, { "docid": "f04c57c93ddedff313a4d372cc97d1a2", "score": "0.5263737", "text": "public void testCalculator2() {\r\n calc = new Calculator(\"MusicSurveyDataTest1.csv\", \"SongListTest1.csv\");\r\n hobbPerc = calc.getHobbyPercent();\r\n regionPerc = calc.getRegionPercent();\r\n majorPerc = calc.getMajorPercent();\r\n calc.getFileReader();\r\n assertEquals(hobbPerc.getSize(), 5);\r\n assertEquals(regionPerc.getSize(), 5);\r\n assertEquals(majorPerc.getSize(), 5);\r\n\r\n for (int i = 0; i < hobbPerc.getSize(); i++) {\r\n for (int j = 0; j < 4; j++) {\r\n for (int k = 0; k < 2; k++) {\r\n assertTrue(hobbPerc.get(i)[j][k] <= 100);\r\n assertTrue(regionPerc.get(i)[j][k] <= 100);\r\n assertTrue(majorPerc.get(i)[j][k] <= 100);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "421e6baba8dbbc60bd750540f4203058", "score": "0.5259297", "text": "@Test\n void testGetLimit() {\n setup();\n assertArrayEquals(position0.getLimit(), position0Limit);\n assertArrayEquals(position1.getLimit(), position1Limit);\n }", "title": "" }, { "docid": "ea4aaf21f473ee6dd8443a3e0e4a76d6", "score": "0.52451605", "text": "@Test\r\n public void getHeightTest() {\r\n assertEquals(Math.round(Car.CAR_WIDTH * 2.35F), Math.round(car.getHeight()));\r\n }", "title": "" }, { "docid": "d08115c8aadc78d0441748f84998738c", "score": "0.5245152", "text": "int getTargetSize();", "title": "" }, { "docid": "08e52c4e97c47ae59e31492252577a0e", "score": "0.52357817", "text": "public int gameSize() {\n return game.size();\n }", "title": "" }, { "docid": "f1d09fc5c016e78f72090bbcc8d415fb", "score": "0.52339125", "text": "@Test\n public void isShipOutOfBoundTest_ValidData2(){\n for(Ship ship: shipArray){\n ship.setmBound(200,700, (100 * ship.getShipLength()) / 2.0f,\n ((100) / 10f) / 2f );\n assertFalse(isShipOutOfBound(ship));\n }\n //refactored this test so there wouldn't be multiple unnecessary tests\n }", "title": "" }, { "docid": "349508fac8242ffb6beff725521a754a", "score": "0.5219217", "text": "public void testCalculator3() {\r\n calc = new Calculator(\"MusicSurveyDataTest2.csv\", \"SongListTest2.csv\");\r\n hobbPerc = calc.getHobbyPercent();\r\n regionPerc = calc.getRegionPercent();\r\n majorPerc = calc.getMajorPercent();\r\n calc.getFileReader();\r\n assertEquals(hobbPerc.getSize(), 1);\r\n assertEquals(regionPerc.getSize(), 1);\r\n assertEquals(majorPerc.getSize(), 1);\r\n\r\n for (int i = 0; i < hobbPerc.getSize(); i++) {\r\n for (int j = 0; j < 4; j++) {\r\n for (int k = 0; k < 2; k++) {\r\n assertTrue(hobbPerc.get(i)[j][k] <= 100);\r\n assertTrue(regionPerc.get(i)[j][k] <= 100);\r\n assertTrue(majorPerc.get(i)[j][k] <= 100);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "6f179aaf8c9b0a121bca840219980e0e", "score": "0.52179474", "text": "@Test\n public void testCanFit() {\n\n System.out.println(\"Can Fit\");\n\n assertTrue(testBox1.canFit(p1));\n assertTrue(testBox1.canFit(p4));\n\n assertTrue(testBox2.canFit(p3));\n assertTrue(testBox2.canFit(p1));\n\n assertTrue(testBox3.canFit(p2));\n assertTrue(testBox3.canFit(p5));\n\n assertTrue(testBox4.canFit(p3));\n assertTrue(testBox4.canFit(p6));\n\n }", "title": "" }, { "docid": "30baa24164c72fef66a8388d2b877190", "score": "0.52138877", "text": "int getTeamLocStatsCount();", "title": "" }, { "docid": "c5d09f32f7abe6d89618d17309127faa", "score": "0.52126235", "text": "@Test\n public void testSize() {\n System.out.println(\"Test size\");\n assertEquals(0, emptyList.size());\n assertEquals(noOfStaff, list.size());\n }", "title": "" }, { "docid": "89df8894a8e006a9ce346c1d7baa8937", "score": "0.52085537", "text": "@Test\n public void isShipOutOfBoundTest_ValidData1(){\n for(Ship ship: shipArray){\n ship.setmBound(300,600, (100 * ship.getShipLength()) / 2.0f,\n ((100) / 10f) / 2f );\n assertFalse(isShipOutOfBound(ship));\n }\n //refactored this test so there wouldn't be multiple unnecessary tests\n }", "title": "" }, { "docid": "74066194838d617da84c028cd56811f4", "score": "0.5206514", "text": "public static boolean setTileSize() {\n int size = getTileSize();\n if (size == TileSize.int_size) {\n logger.fine(\"tile size %d unchanged\", size);\n return false;\n } else {\n logger.fine(\"setting tile size to %d (was %d)\", size, TileSize.int_size);\n TileSize.setTileSize(size);\n return true;\n }\n }", "title": "" }, { "docid": "60ed607f096004271a56303f8ee5af8b", "score": "0.52043074", "text": "@Test\n public void scenario6() {\n MatchingEngine engine = new MatchingEngine();\n engine.add(new BackBet(Markets.A.getMarket(), odds, price));\n engine.add(new BackBet(Markets.A.getMarket(), odds, price));\n engine.add(new LayBet(Markets.A.getMarket(), odds, price));\n engine.add(new BackBet(Markets.B.getMarket(), odds, price));\n engine.add(new LayBet(Markets.B.getMarket(), odds, price));\n engine.add(new LayBet(Markets.B.getMarket(), odds, price));\n MatchingEngine.Status status = engine.getStatus();\n\n Assert.assertTrue(status.getMatched(Markets.A.getMarket()).size() == 1);\n Assert.assertTrue(status.getMatched(Markets.B.getMarket()).size() == 1);\n\n Assert.assertTrue(status.getUnmatchedBackbets(Markets.A.getMarket()).size() == 1);\n Assert.assertTrue(status.getUnmatchedBackbets(Markets.B.getMarket()).size() == 0);\n\n Assert.assertTrue(status.getUnmatchedLaybets(Markets.A.getMarket()).size() == 0);\n Assert.assertTrue(status.getUnmatchedLaybets(Markets.B.getMarket()).size() == 1);\n\n }", "title": "" }, { "docid": "bcaf8b9cf897102d813f02426c48c9ac", "score": "0.51914173", "text": "public TeamListCriteria isQuantityTeamsCorrect() {\n boolean isQuantityCorrect = true;\n if (teamsPage.getCurrentPageNumber()\n == TeamListCriteria.pageQuantity) {\n isQuantityCorrect = (teamsPage.getTeamNameList().size()\n % TestsConstants.ITEMS_PER_PAGE == teamListDB.size()\n % TestsConstants.ITEMS_PER_PAGE);\n } else {\n isQuantityCorrect = (teamsPage.getTeamNameList().size()\n == TestsConstants.ITEMS_PER_PAGE);\n }\n this.specification.add(isQuantityCorrect,\n \"The quantity of teams on current page is not correct.\\n\");\n return this;\n }", "title": "" }, { "docid": "e7c42f84d3521300ed2cb1c3095c5500", "score": "0.51914066", "text": "boolean hasDireTeamScore();", "title": "" }, { "docid": "f7ed5b68338cc96e502d9969e14dfaba", "score": "0.51819384", "text": "@Test\n public void test04(){\n\n assertEquals(5, game.cellSelected(0)); //player1 a jogar na linha 5\n assertEquals(4, game.cellSelected(0)); //player2 a jogar na linha 4\n assertEquals(5, game.cellSelected(1));\n assertEquals(4, game.cellSelected(1));\n assertEquals(5, game.cellSelected(2));\n assertEquals(4, game.cellSelected(2));\n assertEquals(5, game.cellSelected(5));//player1 a jogar 4 vezes na linha 5\n\n assertFalse(game.isWinPosition(5, 5)); //verificar se na ultima jogada do Player1 nao ganhou\n\n\n }", "title": "" }, { "docid": "3c617b30dc864d9f1f99535669d04324", "score": "0.5181697", "text": "public void testSize() {\n assertEquals(14, cDataset.size());\n assertEquals(14, rDataset.size());\n }", "title": "" }, { "docid": "a764998f89d585339402052f67b32f55", "score": "0.5176999", "text": "@Test\n void testMasklessPeopleCreate() {\n\n game.masklessPeopleCreate();\n\n assertEquals(1, game.getMasklessPeopleListSize());\n }", "title": "" }, { "docid": "e0f10fd3528e7ebe5bc59f3f064ca1a9", "score": "0.5175238", "text": "@Test\n public void scenario5() {\n MatchingEngine engine = new MatchingEngine();\n engine.add(new BackBet(Markets.A.getMarket(), odds, price));\n engine.add(new LayBet(Markets.A.getMarket(), odds, price));\n engine.add(new BackBet(Markets.B.getMarket(), odds, price));\n engine.add(new LayBet(Markets.B.getMarket(), odds, price));\n MatchingEngine.Status status = engine.getStatus();\n\n Assert.assertTrue(status.getMatched(Markets.A.getMarket()).size() == 1);\n Assert.assertTrue(status.getMatched(Markets.B.getMarket()).size() == 1);\n\n Assert.assertTrue(status.getUnmatchedBackbets(Markets.A.getMarket()).size() == 0);\n Assert.assertTrue(status.getUnmatchedBackbets(Markets.B.getMarket()).size() == 0);\n\n Assert.assertTrue(status.getUnmatchedLaybets(Markets.A.getMarket()).size() == 0);\n Assert.assertTrue(status.getUnmatchedLaybets(Markets.B.getMarket()).size() == 0);\n\n }", "title": "" }, { "docid": "809fee293f061f280847767196dabc03", "score": "0.516977", "text": "@Test\n //plus court chemin\n public void PlusCourtVoitureA() {\n \tassertEquals(B5.doRun().getPath().getLength(), A5.doRun().getPath().getLength(), 0.01) ; \n }", "title": "" }, { "docid": "e1f206640d6fa9d1890e7c890881c9d5", "score": "0.5160429", "text": "@Test\n public void boardBoundSetupTest_ValidData(){\n float screenWidth = 1920;\n float screenHeight = 1080;\n float bigBoxLeftCoor = screenWidth/14f;\n float bigBoxTopCoor = screenHeight/5f;\n float bigBoxRightCoor = (screenWidth/14f)*6f;\n float bigBoxBottomCoor = (screenHeight/5f)*4.5f;\n BoundingBox boardBoundingBox = new BoundingBox((bigBoxLeftCoor + bigBoxRightCoor)/2,\n (bigBoxBottomCoor + bigBoxTopCoor)/2,\n ((bigBoxLeftCoor + bigBoxRightCoor)/2)-bigBoxLeftCoor,\n ((bigBoxBottomCoor + bigBoxTopCoor)/2)-bigBoxTopCoor);\n\n\n assertNotNull(boardBoundingBox); //asserts that an object was actually created\n //some of the following tests failed due to rounding errors however, they have been fixed so as to all pass\n assertEquals(137, Math.round(bigBoxLeftCoor));\n assertEquals(216, Math.round(bigBoxTopCoor));\n assertEquals(823, Math.round(bigBoxRightCoor));\n assertEquals(972, Math.round(bigBoxBottomCoor));\n }", "title": "" }, { "docid": "34d07355f4f78a870569cb67d4145905", "score": "0.5156058", "text": "@Test\n public void testParsePokemonFileCorrectStats() {\n Team t = new Team();\n loop.parsePokemonFile(t, \"data/test/teamTest.txt\");\n Pokemon volcarona = t.getPokemon(0);\n assertEquals(357, volcarona.getHP());\n assertEquals(140, volcarona.getAtk());\n assertEquals(184, volcarona.getDef());\n assertEquals(336, volcarona.getSpA());\n assertEquals(246, volcarona.getSpD());\n assertEquals(299, volcarona.getSpe());\n }", "title": "" }, { "docid": "8b7ada1178ca2ca9456b847fb7db73ec", "score": "0.5156054", "text": "@Test\r\n\tpublic void testSize() {\r\n\t\tReporter log = new Log();\r\n\t\tCheckPoint ck = new CheckPoint();\r\n\t\t\r\n\t\tassertEquals(ck.getTimeWhenAvailable(), 0);\r\n\t\tPassenger a = new OrdinaryPassenger(10, 100, log);\r\n\t\tck.addToLine(a);\r\n\t\tassertEquals(ck.nextToGo().getArrivalTime(), 10);\r\n\t\tck.nextToGo().clearSecurity();\r\n\t\tassertEquals(ck.size(), 1);\t}", "title": "" }, { "docid": "0017493ac741c2c9e4ff6e3f5476155f", "score": "0.5154443", "text": "public static int boardSize(){\n Stage boardSizeWindow = new Stage();\r\n boardSizeWindow.setTitle(\"BoardSize\");\r\n boardSizeWindow.setWidth(250);\r\n Label text = new Label(\"Select the Board Size\");\r\n\r\n ToggleGroup group = new ToggleGroup();\r\n\r\n RadioButton ten = new RadioButton(\"10\");\r\n ten.setToggleGroup(group);\r\n\r\n RadioButton twelve = new RadioButton(\"12\");\r\n twelve.setToggleGroup(group);\r\n\r\n RadioButton fifteen = new RadioButton(\"15\");\r\n fifteen.setToggleGroup(group);\r\n\r\n Button submit = new Button(\"Submit\");\r\n submit.setOnAction((event) -> {\r\n if(ten.isSelected()){\r\n size = 10;\r\n boardSizeWindow.close();\r\n\r\n }\r\n else if(twelve.isSelected()){\r\n size = 12;\r\n boardSizeWindow.close();\r\n }\r\n else{\r\n size = 15;\r\n boardSizeWindow.close();\r\n }\r\n\r\n });\r\n\r\n\r\n VBox mainLayout = new VBox(10);\r\n mainLayout.getChildren().addAll(text, ten, twelve, fifteen, submit);\r\n mainLayout.setAlignment(Pos.CENTER);\r\n\r\n Scene scene = new Scene(mainLayout);\r\n boardSizeWindow.setScene(scene);\r\n boardSizeWindow.showAndWait();\r\n return size;\r\n\r\n }", "title": "" }, { "docid": "329bd519efcafb5203d5baff5cb4a774", "score": "0.51538837", "text": "@Test\n\tpublic void testGetNumberOfEmpty_allBoardObjects_ExpectingSpecificValue() {\n\t\t//Tester for brett 1\n\t\tint correctNumberOfEmptyBoard1 = 9 - (int)Math.sqrt(9);\n\t\tassertEquals(correctNumberOfEmptyBoard1, board1.getNumberOfEmpty());\n\t\t\n\t\t//Tester for brett 2\n\t\tint correctNumberOfEmptyBoard2 = 36 - (int)Math.sqrt(36);\n\t\tassertEquals(correctNumberOfEmptyBoard2, board2.getNumberOfEmpty());\n\n\t\t//Tester for brett 3\n\t\tint correctNumberOfEmptyBoard3 = 81 - (int)Math.sqrt(81);\n\t\tassertEquals(correctNumberOfEmptyBoard3, board3.getNumberOfEmpty());\n\t}", "title": "" }, { "docid": "4fc8b7601c2072175a147dbb6647bbf4", "score": "0.51465887", "text": "@Test\n //plus court chemin\n public void PlusCourtVoiture() {\n \tassertEquals(B5.doRun().getPath().getLength(), D5.doRun().getPath().getLength(), 0.01) ; \n }", "title": "" }, { "docid": "2ed205f3c9c3c33b2fc2a0d893fb53a4", "score": "0.5139728", "text": "public void test ()\n {\n\tint n;\n\n\t// First, test at all sizes sequentially up to a certain size.\n\tfor (n = 0; n <= SMALL; n++)\n\t test(n);\n\t// Then, test at larger and larger sizes, doubling the size at each step.\n\t// (Thus, all sizes will be powers of two; this might not be a good thing\n\t// in general, as we do not test the algorithm at other sizes, but it\n\t// should be OK here; we are interested mainly in the performance data).\n\tfor (n = 2 * SMALL; n <= LARGE; n *= 2)\n\t test(n);\n\n\tout.println();\n\tout.printf(\"Done testing. In total, %d success(es) and %d failure(s).\\n\", successes, failures);\n }", "title": "" }, { "docid": "90a26dc49339ac39525a3389675040d7", "score": "0.51356256", "text": "@Test\n public void test09(){\n\n for (int i = 5; i >= 0; i--) { //preenche a primeira coluna\n assertEquals(i, game.cellSelected(0));\n }\n for (int i = 5; i >= 0; i--) { //preenche a segunda coluna\n assertEquals(i, game.cellSelected(1));\n }\n for (int i = 5; i >= 0; i--) { //preenche a terceira coluna\n assertEquals(i, game.cellSelected(2));\n }\n\n assertEquals(5, game.cellSelected(4)); //preenche a ultima celula da coluna 4 para nao haver condiçao de vitoria\n assertEquals(5, game.cellSelected(3)); //preenche a ultima celula da coluna 3 para nao haver condiçao de vitoria\n\n for (int i = 4; i >= 0; i--) { //preenche o resto da coluna 3\n assertEquals(i, game.cellSelected(3));\n }\n\n for (int i = 4; i >= 0; i--) { //preenche o resto da coluna 4\n assertEquals(i, game.cellSelected(4));\n }\n\n for (int i = 5; i >= 0; i--) { //preenche a coluna 5\n assertEquals(i, game.cellSelected(5));\n }\n for (int i = 5; i >= 0; i--) { //preenche a coluna 6\n assertEquals(i, game.cellSelected(6));\n }\n\n assertTrue(game.isDrawPosition()); //verificar se existe condição de empate\n assertFalse(game.isWinPosition(0,6)); //verificar se numa casa houve vitoria, onde tem de dar false\n\n\n }", "title": "" }, { "docid": "2bf93a30389457f144a638fbcd52b09a", "score": "0.5134239", "text": "@Test\n public void testCalculateScoreAllStrikes() {\n System.out.println(\"calculateScoreAllStrikes\");\n BowlingScore tester = new BowlingScore(testArray1);\n int expResult = 300;\n int result = tester.calculateScore();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "bfc3c52b632440da96e63c1a8501b03a", "score": "0.51319385", "text": "@Test\r\n\tpublic void testMaxRentProp() {\n\t\tassertEquals(m.maxRentProp(), 5000, 0);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "00fbaf41ae627f560fd1fcef31155c66", "score": "0.5130426", "text": "@Test\n public void isShipOutOfBoundTest_VeryCloseDataTopsideInvalid(){\n for(Ship ship: shipArray){\n ship.setmBound(300,206, (100 * ship.getShipLength()) / 2.0f,\n ((100) / 10f) / 2f );\n assertTrue(isShipOutOfBound(ship));\n }\n //refactored this test so there wouldn't be multiple unnecessary tests\n }", "title": "" }, { "docid": "79a0e0374f252d68255112f3efb58871", "score": "0.51261115", "text": "@Test\n public void test07(){\n\n for (int j = 0; j < 5; j++) {\n\n assertEquals(5, game.cellSelected(j));// 1,2,1,2\n assertEquals(4, game.cellSelected(j));// 2,1,2,1\n assertEquals(3, game.cellSelected(j));// 1,2,1,2\n // 0,1,2,1\n\n }\n\n for (int j = 0; j < 3; j++) {\n assertEquals(2, game.cellSelected(j));\n }\n\n\n assertTrue(game.isWinPosition(5,3)); //é possivel ganhar nessa posição\n assertFalse(game.hasWinningLinePlayer2()); //mas que não é possival ganhar por linha\n assertFalse(game.hasWinningColumnPlayer2()); //nem por coluna, por isso só pode ser possível ganhar pela diagonal\n assertTrue(game.hasWinnningAntiDiagonalPlayer2()); //o player2 ganha na anti diagonal\n assertFalse(game.hasWinningMainDiagonalPlayer2()); //nao pode ganhar pela main diagonal\n\n\n }", "title": "" } ]
dcd07458ddfca6653f25faffc199722c
Default Constructor for Jackson instantiation
[ { "docid": "a14bf29e3c1ed78de84cd77817d03e67", "score": "0.0", "text": "public BodyPackage() {\n\t\tsuper();\n\t}", "title": "" } ]
[ { "docid": "11aaa6ea9b43f3c4b3603fad33d572b7", "score": "0.7302696", "text": "public TestJackson() {\r\n\t\tmapper = new ObjectMapper();\r\n\t}", "title": "" }, { "docid": "1c775852551161594178ee6264ec0418", "score": "0.6983653", "text": "public JsonDeserializer() {\n }", "title": "" }, { "docid": "7848c6781195d4933eab483e570daf40", "score": "0.69084805", "text": "private JsonReader() {}", "title": "" }, { "docid": "6e50de7c9fe67a7498cf5153d7538d21", "score": "0.69041866", "text": "public JsonObjectParser() {\n mapper = new ObjectMapper();\n jsonDefinition = new JsonDataFormatDefinition();\n }", "title": "" }, { "docid": "e37d21377a95519622b8a65e0b1c3a4c", "score": "0.6737746", "text": "public JsonParser()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6fe9fa2729028a9f8d04391e8a9ebd08", "score": "0.6728298", "text": "public EmployeeJson() {\n\t}", "title": "" }, { "docid": "6dba4c62af0421d40dece473c7a296a3", "score": "0.6726404", "text": "public ApiResult() {\n // Do not remove Jackson deserialization\n }", "title": "" }, { "docid": "e073128f0e06e1979df0def076917d85", "score": "0.67111504", "text": "private JsonToObjectConverter() {\n }", "title": "" }, { "docid": "44d9ee74299726feb649944c041f93a2", "score": "0.6700184", "text": "public EmployeeJson() {\n super();\n }", "title": "" }, { "docid": "f0a3933a22feec1e8b9796fcebe5cada", "score": "0.6676475", "text": "private JsonUtils()\n {\n }", "title": "" }, { "docid": "f13b4098121b126ef3481733132d1513", "score": "0.66630656", "text": "public static JacksonUtil defaultInstance() {\n return DEFAULT_INSTANCE;\n }", "title": "" }, { "docid": "0be271b5b3d65204a88557a5f9d3060c", "score": "0.66407716", "text": "private JsonParser() {\n\t\t\n\t}", "title": "" }, { "docid": "85d8eaf2034be9667330c214f3b792c2", "score": "0.6603785", "text": "public JsonMapper(JsonSerialize.Inclusion inclusion) {\n mapper = new ObjectMapper();\n }", "title": "" }, { "docid": "77800f57cafd96a646621fbb71150297", "score": "0.657374", "text": "default void init(JsonObject json) {\n\t\t\n\t}", "title": "" }, { "docid": "7fa59d6b75323dffa0169d7f34783f62", "score": "0.65169036", "text": "public CustomSerializerFactory() {\n this(null);\n }", "title": "" }, { "docid": "508aa34533030f4c18bd2c8c3f8b0dc0", "score": "0.6445005", "text": "public static JSONFactory newInstance() { return new DefaultJSONFactory(); }", "title": "" }, { "docid": "b37442078765a3217077a5f566a2caee", "score": "0.6423328", "text": "public TestExecution() {\n\t\t//Needed for Jackson\n\t}", "title": "" }, { "docid": "9c4ed1e88222ef19b1693ef913b6e80f", "score": "0.6391847", "text": "public JSONExporter()\n {\n this(new IntegerComponentNameProvider<>());\n }", "title": "" }, { "docid": "235ea1305427a91b248d3450a4ba68e3", "score": "0.6363903", "text": "private void initJsonMapper() {\n mapper = new ObjectMapper();\n AnnotationIntrospector introspector = new JaxbAnnotationIntrospector();\n mapper.getDeserializationConfig().setAnnotationIntrospector(introspector);\n mapper.getSerializationConfig().setAnnotationIntrospector(introspector);\n }", "title": "" }, { "docid": "eb93bb3f6d4a07258fb221b06b520839", "score": "0.63635665", "text": "public static SerializerAdapter createDefaultSerializer() {\n return JacksonAdapter.createDefaultSerializerAdapter();\n }", "title": "" }, { "docid": "7f40add5c71590e3f0cbf9a369ce6e82", "score": "0.6349506", "text": "private JSONUtils() {\n }", "title": "" }, { "docid": "f451fefda6689d1e228bfd440a800338", "score": "0.63467467", "text": "public Serializer()\n {\n }", "title": "" }, { "docid": "562f651c4d48f111eb52f686fdcf57fb", "score": "0.6339064", "text": "private MongoDBJsonMapper() {\n super();\n assert false;\n }", "title": "" }, { "docid": "30eab5da9c6b45419864f8050a234667", "score": "0.63205034", "text": "public JsonArray()\n\t{\n\t}", "title": "" }, { "docid": "34b9523902949436d92be66c282696ad", "score": "0.6252399", "text": "public JustPojo() {\n\n }", "title": "" }, { "docid": "629bf3b81439e34914309f3327fcf337", "score": "0.62412226", "text": "private ComponentsJsonParser() {\n }", "title": "" }, { "docid": "b9e1c938a9c8c61d3f20c022a7462756", "score": "0.62216204", "text": "public EmployeeJson(Employee employee) {\n super();\n this.employee = employee;\n }", "title": "" }, { "docid": "5b83d5f0c4ed127be060755ea3f220c0", "score": "0.6220346", "text": "private ObjectMapper getJsonMapper() {\n\n\t\tObjectMapper mapperExplicit = new ObjectMapper(new JsonFactory());\n\t\tmapperExplicit.setSerializationInclusion(Include.NON_NULL);\n\t\tmapperExplicit.disable(SerializationFeature.FLUSH_AFTER_WRITE_VALUE);\n\t\tmapperExplicit.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);\n\n\t\t// add custom deserializers\n\n\t\t// OffsetDateTime\n\t\tSimpleModule offsetDateTimeDes = new SimpleModule(\"OffsetDateTimeDesirializer\");\n\t\toffsetDateTimeDes.addDeserializer(OffsetDateTime.class, new OffsetDateTimeDeserializer());\n\t\tmapperExplicit.registerModule(offsetDateTimeDes);\n\t\t// Date\n\t\tSimpleModule dateDes = new SimpleModule(\"DateDesirializer\");\n\t\tdateDes.addDeserializer(Date.class, new DateDeserializer());\n\t\tmapperExplicit.registerModule(dateDes);\n\n\t\treturn mapperExplicit;\n\t}", "title": "" }, { "docid": "3da6da041cbf950528448c3931b8128f", "score": "0.6202657", "text": "public ChargeRequest() {\n // Jackson deserialization.\n }", "title": "" }, { "docid": "fe19fe0a6c46b3d38da501be6f679bc6", "score": "0.61817086", "text": "public JsonCerealEngine() {\n this(false);\n }", "title": "" }, { "docid": "52665de75afda59dc8fe9194176864d7", "score": "0.61613053", "text": "public JSONNull() {\n super();\n }", "title": "" }, { "docid": "8c7d7100c7b06bb5539b7caa128ab07e", "score": "0.60883194", "text": "protected HibernateJacksonModule() {\n\n }", "title": "" }, { "docid": "020c0dc7365f4f6f58d60805f7cef046", "score": "0.6084979", "text": "public static JacksonUtil customFormatInstance(String dateformat) {\n return new JacksonUtil(dateformat);\n }", "title": "" }, { "docid": "8e4159b9de79bbd8fd111b78a459af11", "score": "0.6067215", "text": "public JSONObject() {\n super();\n }", "title": "" }, { "docid": "39f356fcc946388713d06d71d58b532e", "score": "0.6016078", "text": "public ComboJsonData() {\n }", "title": "" }, { "docid": "546824d14f9b6f8b8918974dfd94b225", "score": "0.6003288", "text": "@Test (expected = Exception.class)\n public void testConstructorJson()\n {\n IotHubRegistryStatistics iotHubRegistryStatistics = new IotHubRegistryStatistics(null);\n }", "title": "" }, { "docid": "3caa836261d2a2a4efe1226faaa1d275", "score": "0.59972113", "text": "private void initializeObjectMapper() {\n SimpleModule simpleModule = new SimpleModule();\n\n simpleModule.addDeserializer(MemoryUsageBroadcast.class, new MemoryUsageDeserializer());\n simpleModule.addDeserializer(ThroughputQueueBroadcast.class, new ThroughputQueueDeserializer());\n simpleModule.addDeserializer(StreamsTaskCounterBroadcast.class, new StreamsTaskCounterDeserializer());\n simpleModule.addDeserializer(DatumStatusCounterBroadcast.class, new DatumStatusCounterDeserializer());\n\n objectMapper.registerModule(simpleModule);\n objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n }", "title": "" }, { "docid": "ad8f22012ec55289d13a7da2d6b90336", "score": "0.59654695", "text": "protected ObjectMapper createObjectMapper() {\n ObjectMapper mapper = new ObjectMapper()\n .registerModule(new JavaTimeModule())\n .configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false)\n .configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false)\n // lenient parsing of JSON - if a field has a typo, don't fall to pieces\n .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)\n ;\n HttpErrorAsJSONServlet.setObjectMapper(mapper);\n return mapper;\n }", "title": "" }, { "docid": "75deaaed3f1196869b794cfc245d5cf2", "score": "0.5942376", "text": "public Amount() {\n //Default constructor for json bind\n }", "title": "" }, { "docid": "685e6b19306d99e282776c5e59bb8e63", "score": "0.5890844", "text": "public JSONStringer() {\n super(new StringWriter());\n }", "title": "" }, { "docid": "0b90b39d5c9967a77b1e60a7e1b0a234", "score": "0.58585715", "text": "public JsonController() {\n\t\tsetJson(new Json());\n\t\tsetJsonReader(new JsonReader());\n\t\t\n\t\tjson.setUsePrototypes(false);\n\t}", "title": "" }, { "docid": "47a8ca3c064d1c7f6073be9c5bfe8fe0", "score": "0.58225536", "text": "private MessageSerializer() {\n this(false, false);\n }", "title": "" }, { "docid": "4dd39a7406b6466629ca6150bddbfbfa", "score": "0.5801277", "text": "public TestahUtil() {\n map = new ObjectMapper();\n map.enable(SerializationFeature.INDENT_OUTPUT);\n // map.setVisibility(JsonMethod.FIELD, Visibility.ANY);\n map.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);\n }", "title": "" }, { "docid": "8bd81aabf1e82969005891667250c37e", "score": "0.57999444", "text": "private ObjectMapper objectMapper() {\n Jackson2ObjectMapperFactoryBean bean = new Jackson2ObjectMapperFactoryBean();\n bean.setIndentOutput(true);\n bean.setSimpleDateFormat(\"yyyy-mm-dd'T'HH:mm:ss.SSSZ\");\n bean.afterPropertiesSet();\n ObjectMapper objectMapper = bean.getObject();\n return objectMapper;\n }", "title": "" }, { "docid": "14808b6a7568a8dc5938a65dbc7bf88f", "score": "0.57836455", "text": "public Pojo3020140() {\r\n\t}", "title": "" }, { "docid": "d5611cf4f5bb31faec43ff36ab91a856", "score": "0.5782318", "text": "public JsonException()\n\t{\n\t\tsuper();\n\t}", "title": "" }, { "docid": "7221ad087bd7955d9ad0ebc7cd12a914", "score": "0.5757066", "text": "public SerializationFormat() {\n\t}", "title": "" }, { "docid": "faf51d19d2237513356efaab11dda3f2", "score": "0.57491493", "text": "private RestClient() {}", "title": "" }, { "docid": "86a6f8cf7933b49b31ed04c3415f4d1f", "score": "0.57467365", "text": "public AbstractDataSerializer() {\n }", "title": "" }, { "docid": "d8292a2a5c185a681207e5e5184f5823", "score": "0.57443625", "text": "public JsonObject() {\n this.map = new LinkedHashMap<String, Object>();\n }", "title": "" }, { "docid": "86ea0e629d333ff99d8e3b3c0c160583", "score": "0.57349014", "text": "public ReplyJeo() {\n super(\"com.esarks.arm.model.jeo.ReplyJeo\");\n//$Section=DefaultConstructor$Preserve=yes\n//$Section=DefaultConstructor$Preserve=no\n }", "title": "" }, { "docid": "6bd374f3ab76627ec5d8981a3c054e5b", "score": "0.5726438", "text": "private SingleObject(){}", "title": "" }, { "docid": "476e75b596b5056b30a4b28c7d7ec38b", "score": "0.5722787", "text": "private ResourceRequestMapper() {\n }", "title": "" }, { "docid": "c9ef9b2dddf8fe3a050d1cd84ae6db05", "score": "0.57179457", "text": "public JsonGeneratorImpl(IOContext paramIOContext, int paramInt, ObjectCodec paramObjectCodec)\n/* */ {\n/* 95 */ super(paramInt, paramObjectCodec);\n/* 96 */ this._ioContext = paramIOContext;\n/* 97 */ if (isEnabled(JsonGenerator.Feature.ESCAPE_NON_ASCII)) {\n/* 98 */ setHighestNonEscapedChar(127);\n/* */ }\n/* */ }", "title": "" }, { "docid": "601504527f7dbab225d53f2e3f1efdf9", "score": "0.57148904", "text": "public NeutrinoObjectMapper(Class<T> clazz,\n Function<Setting, String> commentProcessor,\n ClassConstructor<SettingProcessor> constructor) throws ObjectMappingException {\n super(clazz);\n this.commentProcessor = commentProcessor;\n this.classConstructor = constructor;\n collectFields();\n }", "title": "" }, { "docid": "33d6a28b88ce21367c637f927d5c2288", "score": "0.56899345", "text": "public Monster() {\r\n\t\t// This is how we can get one constructor to call another\r\n\t\tthis(\"unknown\", \"unknown\", \"unknown\", 100);\r\n\t}", "title": "" }, { "docid": "f3f22aed9a4d654e4660a0e54c4ec3b9", "score": "0.5686922", "text": "@Bean\n\tpublic ObjectMapper mapper() {\n\t\treturn new ObjectMapper();\n\t}", "title": "" }, { "docid": "1ddbb7fadf4b6a5cf5fa9016a884398f", "score": "0.5681686", "text": "private LonelyObject(){}", "title": "" }, { "docid": "f6436db9400862d753101675e162c7f1", "score": "0.5665422", "text": "public DocumentsResponse() {\n // must have a non-argument constructor\n }", "title": "" }, { "docid": "af416d67ebbe2f1307fc1e720c999e10", "score": "0.5634622", "text": "@Override\n public ObjectMapper getMapper() { return super.getMapper(); }", "title": "" }, { "docid": "172156e6ed27f9716023bddab587fa07", "score": "0.56331", "text": "public JSONSerializer(Class<?> type) {\n this(type, null);\n }", "title": "" }, { "docid": "0181114b3d768f645775c2ffa6086fde", "score": "0.5630797", "text": "public Configuration() {\n }", "title": "" }, { "docid": "83d5c7e276ac1d5f1207ca3c1b9c223e", "score": "0.56244946", "text": "public PojoClass() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b26e23636e75b8ef639d8d16f08cdf35", "score": "0.5612747", "text": "public Map(){\n new Map(1);\n }", "title": "" }, { "docid": "be5a1b6daf4c00a82700464f3fe7c594", "score": "0.56089205", "text": "public JwtDto() { }", "title": "" }, { "docid": "2441f6dd6fd5261776874d6dc1c11c99", "score": "0.556361", "text": "public void init() {\r\n\t\tfinal ObjectMapper objectMapper = new ObjectMapper();\r\n\t\tfinal SerializationConfig serializationConfig = objectMapper.getSerializationConfig();\r\n\t\tserializationConfig.setSerializationInclusion(JsonSerialize.Inclusion.NON_NULL);\r\n\t\t@SuppressWarnings(\"serial\")\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\") {\r\n\t\t\t@Override\r\n\t\t\tpublic StringBuffer format(Date date, StringBuffer toAppendTo, java.text.FieldPosition pos) {\r\n\t\t\t\tStringBuffer toFix = super.format(date, toAppendTo, pos);\r\n\t\t\t\treturn toFix.insert(toFix.length() - 2, ':');\r\n\t\t\t};\r\n\t\t};\r\n\t\tserializationConfig.setDateFormat(dateFormat);\r\n\t\tjsonView.setObjectMapper(objectMapper);\r\n\t\tviewList.clear();\r\n\t\tviewList.add(jsonView);\r\n\t\tviewList.add(xmlView);\r\n\t}", "title": "" }, { "docid": "e2e8b52620004e99e7f836012134689c", "score": "0.5556621", "text": "protected JOM() {}", "title": "" }, { "docid": "95930f9e27718ea18bb83e3c00b4dba4", "score": "0.5552735", "text": "public GsonDeserialiser() {\n this(JsonElement.class);\n }", "title": "" }, { "docid": "8daa9aca534232d6ea3dc0e43ee5582a", "score": "0.5549574", "text": "public PropertyMaps() { }", "title": "" }, { "docid": "20d4e21a3487fc6a94d55dfd3dd3dbff", "score": "0.5543894", "text": "public MutableGsonDocument() {\n this(new JsonObject());\n }", "title": "" }, { "docid": "c397a8e3e3c788a7cbec4a3203e59ddc", "score": "0.5541104", "text": "private TradeCityConverter() {\n // empty constructor\n }", "title": "" }, { "docid": "97faec6a46163c02ee74777ad745ebff", "score": "0.55343217", "text": "public MapDocumentRegistryRegistry() {\n //empty constructor\n }", "title": "" }, { "docid": "97f572c280d8d7fb286635863f5ca4e5", "score": "0.55307215", "text": "public ApiResource() {\n }", "title": "" }, { "docid": "dd8a7702fdc0761f004f8bf44b3e1f3c", "score": "0.55247253", "text": "public Response() {\n }", "title": "" }, { "docid": "140fc0d94b13b16f28b6bcbe88567958", "score": "0.55230176", "text": "public Obj()\n {\n this(null);\n }", "title": "" }, { "docid": "c047ecb7e55618f8114192d0ae5385bc", "score": "0.55211544", "text": "protected FollowCountApiObject() {\n }", "title": "" }, { "docid": "510c6a22a47ae89c415f7e3a2bb9c481", "score": "0.55146974", "text": "@SuppressWarnings(\"unchecked\")\n public DefaultHttpParameters() {\n super(JAVA_HASHER, StringValueConverter.INSTANCE);\n }", "title": "" }, { "docid": "ac579f459c9bf44e030b32c043608e5d", "score": "0.5507599", "text": "public AjaxSpiderAPI() {\n this(null);\n }", "title": "" }, { "docid": "dca56f18178958da54b4a31da810b6f0", "score": "0.5507054", "text": "private JsonParserP5() {\n\t}", "title": "" }, { "docid": "2fb903a842a47ed230e7891361ef9dcd", "score": "0.5497906", "text": "private MooConfig() {}", "title": "" }, { "docid": "d3f44b3e1ce210e8becc11c52e638352", "score": "0.54900014", "text": "public LOGJSONObject() {\n this.map = new LinkedHashMap<>();\n }", "title": "" }, { "docid": "e92e8b9fa2e99769c440901a998fee39", "score": "0.5483245", "text": "BaseResponse() {\n }", "title": "" }, { "docid": "0625d33a853aaebe46e3ef68fe367560", "score": "0.54756486", "text": "public SimpleDescription() {\n this(Map.of(), HashMap::new);\n }", "title": "" }, { "docid": "8c3bc04248362fb1c54fc30997c5def4", "score": "0.5473207", "text": "public LOGJSONObject(Object bean) {\n this();\n this.populateMap(bean);\n }", "title": "" }, { "docid": "15fc98f6496afdace95252ad2b531e21", "score": "0.5471041", "text": "@Test\n public void constructorDefault() {\n final Category category = new Category();\n\n assertNull(category.getId());\n assertNull(category.getName());\n assertNull(category.getDishes());\n }", "title": "" }, { "docid": "fafbb555e1950d387784a0b6a6786af2", "score": "0.54657763", "text": "@Test\n public void testConstructorWithReader() throws IOException {\n TranslatorSourceConfig mockConfig = DefaultSourceConfigurationTests.getSourceConfig(\"{}\");\n JsonDeserializer deserializer = new JsonDeserializer(getDefaultConfig(), mockConfig, TEST_URI);\n assertThat(deserializer.getObject(), is(instanceOf(JsonDeserializer.Object.class)));\n }", "title": "" }, { "docid": "5b382598b2129f2eb220686ba530c3f5", "score": "0.5464411", "text": "protected AboMapper() {\r\n\t}", "title": "" }, { "docid": "07aac390a0e5765f667408a71cc1f39d", "score": "0.5448799", "text": "public Response() {\n }", "title": "" }, { "docid": "5a9492ed4e0413b0497c5c34f31b6b10", "score": "0.5446666", "text": "public static JacksonUtil dateInstance() {\n return DATE_INSTANCE;\n }", "title": "" }, { "docid": "3a54828ac02de05fef843ecddeb24b29", "score": "0.5428693", "text": "protected void init(){\n set( \"extend\", new Prototype.Object_extend() );\n set( \"values\", new Prototype.Object_values() );\n set( \"keys\", new Prototype.Object_keys() );\n }", "title": "" }, { "docid": "c656f2686b60b81214bcce363f8cf79f", "score": "0.54162127", "text": "public MappingJackson2HttpMessageConverter(ObjectMapper objectMapper)\n/* */ {\n/* 66 */ super(objectMapper, new MediaType[] { MediaType.APPLICATION_JSON, new MediaType(\"application\", \"*+json\") });\n/* */ }", "title": "" }, { "docid": "319efb4b4833d8d9cf234e23b73b2ce7", "score": "0.5414656", "text": "private ApiClient() {\n\n }", "title": "" }, { "docid": "e76dd63276d5bca60110f39085e1eac7", "score": "0.5412865", "text": "public JsonNoInternReadVanilla() {\n super(MediaItem.class, JSON_CONV, MAPPER);\n }", "title": "" }, { "docid": "520219c88b87cee9de588855ccd085ef", "score": "0.54065675", "text": "private JugadorAbstracto()\r\n {\r\n this(\"\", \"\");\r\n }", "title": "" }, { "docid": "a6b7b8fd5bff96e8207aad008402ead6", "score": "0.5406114", "text": "public ViewPojo() {\n }", "title": "" }, { "docid": "220b58d712961d35e3e2db6a2081e897", "score": "0.5400222", "text": "private SingletonDeserializationPreventExample() {\n\n }", "title": "" }, { "docid": "5830c4fa24a00aef46e8be8369a7a735", "score": "0.5397013", "text": "protected PropertyDef() {\n //default constructor\n }", "title": "" }, { "docid": "0058fa30d09453ed58af0eaf25f6f9bf", "score": "0.5391762", "text": "public Client() {\n\n\t}", "title": "" }, { "docid": "f6583daa5496b305b68c1b95ba13b4bf", "score": "0.5391011", "text": "public ETSerializer() {\r\n }", "title": "" }, { "docid": "05ee2ebf7dc61cfb135c9f0bf62adbef", "score": "0.53758436", "text": "private Marker() {}", "title": "" }, { "docid": "b5082119824611419d48d28468b69c4d", "score": "0.5370485", "text": "public static ObjectMapperExt mapper(){\r\n return MAPPER;\r\n }", "title": "" } ]
91f1e31c3db686e2de28d0c4a18dfa42
This is a comment
[ { "docid": "b7f07f3a4f4ef78cc36896dee9015317", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello world!\");\n\t\t/*\n\t\t\tThese\n\t\t\tare\n\t\t\tall\n\t\t\tcomments\n\t\t*/\n\t}", "title": "" } ]
[ { "docid": "9e5267aef89625ca24b45239c4dbe524", "score": "0.81619817", "text": "public boolean isComment() {\n/* 91 */ return true;\n/* */ }", "title": "" }, { "docid": "f893ec1a60f167f7d631ef156dd14510", "score": "0.7878377", "text": "String getComment();", "title": "" }, { "docid": "f893ec1a60f167f7d631ef156dd14510", "score": "0.7878377", "text": "String getComment();", "title": "" }, { "docid": "f893ec1a60f167f7d631ef156dd14510", "score": "0.7878377", "text": "String getComment();", "title": "" }, { "docid": "0825f16c390edfc2377c1d1cf5d56f04", "score": "0.78312165", "text": "public String getComment() { return this.comment;}", "title": "" }, { "docid": "e718e6d06830e47db1cd512f5ad35107", "score": "0.7810385", "text": "String getDocComment();", "title": "" }, { "docid": "2c07eb7b9f6b718fa3c519866d5c78c4", "score": "0.77219254", "text": "java.lang.String getCommentCont();", "title": "" }, { "docid": "4c5e67ad013465c858bd8a58773e3499", "score": "0.76782286", "text": "public static void commentTest() {\n\t}", "title": "" }, { "docid": "23be2460f3db7c36a734db723992a478", "score": "0.75391126", "text": "public boolean supportsComments() {return true;}", "title": "" }, { "docid": "159b1676fe25d9187642520869bd9c27", "score": "0.7525681", "text": "public String getComment(){\n \t\treturn this.comment;\n \t}", "title": "" }, { "docid": "493d6d77726f555e075fff666ace2fe7", "score": "0.75159264", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "493d6d77726f555e075fff666ace2fe7", "score": "0.75159264", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "d4f65b136871446f9aa3bfd2a7ded3fb", "score": "0.7433539", "text": "@Override\r\n public void visitComment(Comment comment) {\n \r\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.7417024", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.7417024", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.7417024", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.7417024", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.7417024", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.7417024", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.7417024", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.7417024", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.7417024", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.7417024", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "0cb9060b68b73d7f4c7d3d340d29574f", "score": "0.74075466", "text": "public String commentText() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "717a80b578f065dcd7f379007891d0c8", "score": "0.7404066", "text": "public void addComment(){\r\n\r\n\t}", "title": "" }, { "docid": "4464202aa362b0519e6098fc34024f6e", "score": "0.73682", "text": "public String getComment() {\n\t\treturn comment;\n\t}", "title": "" }, { "docid": "4464202aa362b0519e6098fc34024f6e", "score": "0.73682", "text": "public String getComment() {\n\t\treturn comment;\n\t}", "title": "" }, { "docid": "afc7b651036c05bd45717cb985627725", "score": "0.73659045", "text": "public String getComment(){\n return fContentBuffer.toString();\n }", "title": "" }, { "docid": "99563afa920f0256ec5271cbf277d8ef", "score": "0.7359751", "text": "public String getComment() {\n return this.comment;\n }", "title": "" }, { "docid": "492d35c974598e82c2e0660a98275e30", "score": "0.73562336", "text": "public void setComment(String comment) { this.comment = comment;}", "title": "" }, { "docid": "5932697d87cbb81789f9965dc0d7c4df", "score": "0.73141325", "text": "public String getCommentText() {\n return commentText;\n }", "title": "" }, { "docid": "7609c925045f37be92607ff6dafb2cd2", "score": "0.7284838", "text": "public abstract void writeComment(String comment);", "title": "" }, { "docid": "6160ccf212050502f1800abe77eaec7b", "score": "0.72671175", "text": "public void setComment(String cm) { comment = cm; }", "title": "" }, { "docid": "a58fc306c12fa8fc5bd7324245fa9cde", "score": "0.72273654", "text": "public String comment()\r\n {\r\n return mComment;\r\n }", "title": "" }, { "docid": "0e493daf6bd7602167b6c3c0952d3197", "score": "0.7225949", "text": "public String getCommentText() {\n\t\treturn commentText;\n\t}", "title": "" }, { "docid": "b44256f064f25055ecab50fb54c3c86e", "score": "0.72164965", "text": "public String getComment() {\n\t\treturn this.comment;\n\t}", "title": "" }, { "docid": "7e36b63ae8a6f613a6cfaf8d4ba06505", "score": "0.7206304", "text": "org.hl7.fhir.String getComment();", "title": "" }, { "docid": "b0d9418e165f43466af0e285996d9921", "score": "0.71957344", "text": "Optional<String> comment();", "title": "" }, { "docid": "bd5a6a3d6b9a9f560d7fc0df81396486", "score": "0.7192315", "text": "public DsByteString getComment() {\n return m_strComment;\n }", "title": "" }, { "docid": "6e93d54ab28d7e2ebd3535818894d334", "score": "0.71883154", "text": "@Override\n public String getCommentInfo() {\n return super.getCommentInfo();\n }", "title": "" }, { "docid": "ca84d1a47861de9deb40391507cd5b0a", "score": "0.7179479", "text": "public String getComment() {\n\n return this.comment;\n }", "title": "" }, { "docid": "388b435cd35eeda73fbb559368844f2e", "score": "0.7148241", "text": "public java.lang.String getComment () {\n\t\treturn comment;\n\t}", "title": "" }, { "docid": "0d464ead93ec80611279a27ffb822227", "score": "0.7139624", "text": "private String getJavadocComment() {\n return _lexer.getJavadocComment();\n }", "title": "" }, { "docid": "376a4d34373f9f0f3a7b0437e1b78d3b", "score": "0.71028656", "text": "public String comment( final Object obj )\n {\n return Converter.sub(obj, MlConv.COMMENT_BAD, MlConv.COMMENT_GOOD);\n }", "title": "" }, { "docid": "a5fb4f295b8015e1daa72a7d533880a0", "score": "0.70859927", "text": "public void handleComment(char[] data,int pos)\n {\n _buffer+=\"<!-- \";\n _buffer+= new String(data);;\n _buffer+=\" -->\";\n }", "title": "" }, { "docid": "78304f3a82d1306fa36a5ccd286cb618", "score": "0.7043566", "text": "Comment createComment();", "title": "" }, { "docid": "78304f3a82d1306fa36a5ccd286cb618", "score": "0.7043566", "text": "Comment createComment();", "title": "" }, { "docid": "d0bbd67fda99eb6a4243fa53ef8af538", "score": "0.7037358", "text": "public java.lang.String getComment() {\n return comment;\n }", "title": "" }, { "docid": "d0bbd67fda99eb6a4243fa53ef8af538", "score": "0.7037358", "text": "public java.lang.String getComment() {\n return comment;\n }", "title": "" }, { "docid": "cfca6885986589044feef3b815da633d", "score": "0.7032684", "text": "public void setComment(String comment){\n \t\tthis.comment = comment;\n \t}", "title": "" }, { "docid": "22d57a60bc32c65cd25288fe9af0298f", "score": "0.7003865", "text": "public abstract ByteVector getCommentData();", "title": "" }, { "docid": "7164c2a873a410b134959f67b9e6812b", "score": "0.69879466", "text": "public String getComment() {\n return localComment;\n }", "title": "" }, { "docid": "561c7ff08683888f9ee2a2d77f61f0d0", "score": "0.6960259", "text": "public void comment(String comment)\r\n {\r\n mComment = comment;\r\n }", "title": "" }, { "docid": "a5c3ecc13333051c92b9e94650b91971", "score": "0.69249195", "text": "public interface Commenter {\n void addComment (BufferedReader r, Writer w, String cmnt, boolean isCommentFile) throws IOException;\n}", "title": "" }, { "docid": "556593fc2ef974d39900660517c5f257", "score": "0.6894393", "text": "void addComment(String comment);", "title": "" }, { "docid": "556593fc2ef974d39900660517c5f257", "score": "0.6894393", "text": "void addComment(String comment);", "title": "" }, { "docid": "63abfb9032a5c69e44c4dab34f79045c", "score": "0.68865746", "text": "public String getTextualComment() {\r\n\t\treturn this.comment;\r\n\t}", "title": "" }, { "docid": "6df9e7f6db799a81b6ad9850dc93130e", "score": "0.6879792", "text": "public void setComment(String comment)\n {\n this.comment = comment;\n }", "title": "" }, { "docid": "f89ad696ea612ea4b079d88e58f00bd4", "score": "0.6877576", "text": "public String getComment() {\n return (String) getField(\"comment\");\n }", "title": "" }, { "docid": "dd4f846d175bfc60c72051a52bace22a", "score": "0.6873549", "text": "public void handleComment(char[] data, int pos) {\n }", "title": "" }, { "docid": "7ec5018bf376ca9d141b60d1af27bb68", "score": "0.6870656", "text": "public void addComment(String _comment);", "title": "" }, { "docid": "1ac8b6f8b825853f94895af06015178d", "score": "0.68597823", "text": "public void commentChar (int ch) {\n stok.commentChar (ch);\n }", "title": "" }, { "docid": "687a918ef683e745823e6de842a18f64", "score": "0.6848519", "text": "public static void Comment() {\n\t\tSystem.out.println(\"This Food is Great!!!\");\n\t}", "title": "" }, { "docid": "8b72317a099de634dfd9115303bc198c", "score": "0.68407005", "text": "public String getComment(int commentType);", "title": "" }, { "docid": "27a3224bf2be305b90d0a34ca4594bcd", "score": "0.68319064", "text": "protected void scanComment() throws IOException {\n nextContent(30);\n super.scanComment();\n }", "title": "" }, { "docid": "599f72312cd8d91b5ce637e7ed0786e0", "score": "0.6830346", "text": "public interface Comment {\n String getText();\n Date getDate();\n}", "title": "" }, { "docid": "c7129c46daf57d30a294a25e33aac620", "score": "0.68095756", "text": "public void addComment(Comment comment){\n }", "title": "" }, { "docid": "de4fc9af3c9d61d51115877571a8f47e", "score": "0.6809047", "text": "public String getRawCommentText() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e548521fa8ba970fc9873431050e0fe8", "score": "0.67924166", "text": "public String get_comment() throws Exception {\n\t\treturn this.comment;\n\t}", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.67578685", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.67578685", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.67578685", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.67578685", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.67578685", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "57ba851d7d2556fa8d05986c5a0293df", "score": "0.67490476", "text": "private void echoComment(Node n) {\n\tSystem.out.println(\"comment line : \" + n.getNodeValue());\n }", "title": "" }, { "docid": "cde21b62eb2780f5331ea1c5a3f80dd0", "score": "0.6744687", "text": "public Comment() { }", "title": "" }, { "docid": "e9606e1b4b6965d38b9f10f1efb73768", "score": "0.67341346", "text": "public String getDocComment() { \n return m_sDocComment;\n }", "title": "" }, { "docid": "9a7a71225d233cc2e1c8e1dca08beb74", "score": "0.6733132", "text": "@Override\n\tpublic boolean confirmGourmetComment() {\n\t\treturn true; \n\t}", "title": "" }, { "docid": "26ad6fc827db5b09742dbca50faf4d41", "score": "0.6717739", "text": "public void comment(String data) throws SAXException {\n/* 240 */ int length = data.length();\n/* 241 */ if (length > this.m_charsBuff.length)\n/* */ {\n/* 243 */ this.m_charsBuff = new char[length * 2 + 1];\n/* */ }\n/* 245 */ data.getChars(0, length, this.m_charsBuff, 0);\n/* 246 */ comment(this.m_charsBuff, 0, length);\n/* */ }", "title": "" }, { "docid": "4ab1cd3cd1e907e207ebd8d7e9fc7ed9", "score": "0.6698696", "text": "private String makeMetaComments() {\n return String.format(\"/**\\n source:%s; lines:%s; start_end:%s\\n*/\",\n this.parentClassBlock.getFileSource(),\n Joiner.on(\",\").join(lineNumbers),\n Joiner.on(\",\").join(getStatementSpan()));\n//\n//\n// return \"// \" + \"source: \" + this.parentClassBlock.getFileSource() +\n// \"\\n// \" + \"lines: \" + Joiner.on(\",\").join(lineNumbers) +\n// \"\\n// \" + \"start_end: \" + Joiner.on(\",\").join(getStatementSpan()) +\n// \"\\n\";\n }", "title": "" }, { "docid": "41b8b2a2809151699cdedcfedcb4485e", "score": "0.6690216", "text": "public T caseComment(Comment object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ad2eb679d878280fc826b8fc758c1d21", "score": "0.66800046", "text": "public int getCommentNum() {\r\n\t\treturn commentNum;\r\n\t}", "title": "" }, { "docid": "66750471bce6864159bdb7a3c82d5839", "score": "0.66785944", "text": "public T caseComment(Comment object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "af479ac8562badcbdec0ea13deee4769", "score": "0.667828", "text": "public void setComment(String tmp) {\n this.comment = tmp;\n }", "title": "" }, { "docid": "87b430dbe0111f6db59d9fc75872c42b", "score": "0.6670501", "text": "public void setComment(String param) {\n\n this.localComment = param;\n\n\n }", "title": "" }, { "docid": "bc7a97e7f539d1e0aa8a62eadc8b4387", "score": "0.66702163", "text": "public Document addComment(final String arg0) {\n return null;\n }", "title": "" }, { "docid": "bc7a97e7f539d1e0aa8a62eadc8b4387", "score": "0.66702163", "text": "public Document addComment(final String arg0) {\n return null;\n }", "title": "" }, { "docid": "824ac060fce4743e727cb9f08b179da5", "score": "0.66674006", "text": "@Test\n public void traditionalCommentHappy1() throws Exception {\n\tString test = \"/* COMMENT */\";\n Scanner s = new Scanner(new StringReader(test));\n Token actual = null;\n\n for (int i = 0; i < 100; i++) {\n actual = s.nextToken();\n }\n assertEquals(actual, s.getEND()); \n }", "title": "" }, { "docid": "ae7750277790b47f29d0b4d931718049", "score": "0.6666333", "text": "static String getFormattedComment(IProgramElement decl) {\n String formattedComment = \"\";\n \n // strip the comment markers\n String comment = decl.getFormalComment();\n \n int startIndex = comment.indexOf(\"/**\");\n int endIndex = comment.indexOf(\"*/\");\n if ( startIndex == -1 ) {\n startIndex = 0;\n }\n else {\n startIndex += 3;\n }\n if ( endIndex == -1 ) {\n endIndex = comment.length();\n }\n comment = comment.substring( startIndex, endIndex );\n \n // string the leading whitespace and '*' characters at the beginning of each line\n BufferedReader reader\n = new BufferedReader( new StringReader( comment ) );\n try {\n for (String line = reader.readLine(); line != null; line = reader.readLine()) {\n line = line.trim();\n for (int i = 0; i < line.length(); i++ ) {\n if ( line.charAt(0) == '*' ) {\n line = line.substring(1, line.length());\n }\n else {\n break;\n }\n }\n // !!! remove any @see and @link tags from the line\n //int seeIndex = line.indexOf(\"@see\");\n //int linkIndex = line.indexOf(\"@link\");\n //if ( seeIndex != -1 ) {\n // line = line.substring(0, seeIndex) + line.substring(seeIndex);\n //}\n //if ( linkIndex != -1 ) {\n // line = line.substring(0, linkIndex) + line.substring(linkIndex);\n //}\n formattedComment += line;\n }\n } catch ( IOException ioe ) {\n throw new Error( \"Couldn't format comment for declaration: \" +\n decl.getName() );\n }\n return formattedComment;\n }", "title": "" }, { "docid": "cd779ccb381172133bad228fcdd70c6d", "score": "0.66532457", "text": "public String getComments();", "title": "" }, { "docid": "304ce2e2b7df9d3cdf22d61f73e9bdea", "score": "0.6653225", "text": "protected String getComment() {\n\t\tPrecisionDate pdate = new PrecisionDate(new Date(), PrecisionDate.Resolution.DAY);\n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"Created by: \");\n\t\tsb.append(processedMarker).append(\" on \").append(pdate.toString());\n\t\t\n\t\tif (userCommentTag != null) {\n\t\t\tsb.append(\" -- \").append(userCommentTag);\n\t\t}\n\t\t\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "57375ed91b8fffb96699a5f90358bc98", "score": "0.6647328", "text": "public void setComment(String comment) {\n\n this.comment = comment;\n }", "title": "" }, { "docid": "845d3da13296be4cf4d102a663e127ab", "score": "0.6636452", "text": "public String singleComments( String aString )\n {\n return null;\n }", "title": "" }, { "docid": "19e0c7c6fe500a5c6952f996776365b9", "score": "0.66174614", "text": "public void handleComment(String token, int level);", "title": "" }, { "docid": "64345d855f8f02a02a55762f04a4f46a", "score": "0.66127896", "text": "private void newComment(String line) {\r\n\t\tString[] comment = line.split(\"#\");\r\n\t\tif (comment.length > 1) {\r\n\t\t\tComment tempComment = new Comment(comment[1]);\r\n\t\t\ttempComments.addComment(tempComment);\r\n\t\t} else {\r\n\t\t\tSystem.err.println(\"Parsing Error: No comment given!\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e4039d69ff038c02e41139b4a81a88d0", "score": "0.66087055", "text": "public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}", "title": "" }, { "docid": "e4039d69ff038c02e41139b4a81a88d0", "score": "0.66087055", "text": "public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}", "title": "" }, { "docid": "3b414c71cc27ff8fde817cd482b9fbd3", "score": "0.6597181", "text": "Document addComment(String comment);", "title": "" }, { "docid": "c48f21e83a078e638ffdc4dfc784ef0f", "score": "0.65708435", "text": "public static String getCommentText(SourceLocation location) {\n return getCommentReader(location).readToString();\n }", "title": "" }, { "docid": "2672583bdd6ca8f0dcb91b70a4146bd4", "score": "0.65555596", "text": "public boolean isComment() {\n\t\treturn this.type == Type.COMMENTS;\n\t}", "title": "" }, { "docid": "8f1ca815685dabadae459558bfbfa735", "score": "0.65504426", "text": "public void comment (char buf [], int off, int len)\n throws SAXException\n\t{ }", "title": "" } ]
8581619c03dbd0fcecbb3b14f8cea819
Constructs a floor object
[ { "docid": "8893610df4d1982e93dba3ddedd8fb71", "score": "0.6068754", "text": "public Floor(int datacenterId, int floorId) {\n\t\t// Set IDs\n\t\tthis.id = floorId;\n\t\tthis.datacenterId = datacenterId;\n\n\t\t// Set other values\n\t\tsetProperties();\n\n\t\t// Get racks for floor\n\t\tString url = baseUri + datacenterId + \"/floors/\" + id + \"/racks\";\n\t\tNodeList allRacks = XmlParser.getElements(url, \"rack\");\n\t\tfor (int i = 0; i < allRacks.getLength(); i++) {\n\t\t\tElement rack = (Element) allRacks.item(i);\n\t\t\tracks.add(new Rack(this.datacenterId, this.id, XmlParser\n\t\t\t\t\t.getIntValue(rack, \"id\")));\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "edd8fd7963518b0f84d5410acfab169e", "score": "0.7755339", "text": "public TowerFloor(){\n\t\tthis(0, 0, null);\n\t\tthis.anyFloor = true;\n\t}", "title": "" }, { "docid": "145257819f07fbe69675e4b8fc8adced", "score": "0.729194", "text": "public Floor(int _floorNumber) {\r\n super();\r\n String classMethodName = className + \"Floor()\";\r\n residentPassengers = new Vector();\r\n passengersGoingUp = new Vector();\r\n passengersGoingDown = new Vector();\r\n floorNumber = _floorNumber;\r\n }", "title": "" }, { "docid": "2ac5c49b6ef3b83ec50a1b1302c82302", "score": "0.7279915", "text": "protected Geometry makeFloor() {\n Box box = new Box(15, .2f, 15);\n Geometry floor = new Geometry(\"the Floor\", box);\n floor.setLocalTranslation(0, -4, -5);\n Material mat1 = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat1.setColor(\"Color\", ColorRGBA.Gray);\n floor.setMaterial(mat1);\n return floor;\n }", "title": "" }, { "docid": "0594a3c13f97c97467170d93094edff1", "score": "0.72237813", "text": "private Mesh createFloor() {\n \t\tfloor.setDefaultColor(new ColorRGBA(0, 1, 0, 0.5f));\r\n \r\n \t\tfinal BlendState blendState = new BlendState();\r\n \t\tblendState.setBlendEnabled(true);\r\n \t\tblendState.setTestEnabled(true);\r\n \t\tfloor.setRenderState(blendState);\r\n \t\tfloor.getSceneHints().setRenderBucketType(RenderBucketType.Transparent);\r\n \t\tfloor.getSceneHints().setLightCombineMode(LightCombineMode.Off);\r\n \r\n \t\tfinal MaterialState ms = new MaterialState();\r\n \t\tms.setColorMaterial(ColorMaterial.Diffuse);\r\n \t\tfloor.setRenderState(ms);\r\n \t\tfloor.updateModelBound();\r\n \t\treturn floor;\r\n \t}", "title": "" }, { "docid": "31c000adf9295aeaaf7e532dd3ff355f", "score": "0.69565654", "text": "public Floor(int floorNumber, String description, String shortDescription) {\n mFloorNumber = floorNumber;\n mDescription = description;\n mShortDescription = shortDescription;\n }", "title": "" }, { "docid": "fba1cf309982124ea0f2c73f69e7febb", "score": "0.68859124", "text": "public TowerFloor(int floorNum, CardType cardType){\n\t\tthis(floorNum, 0, cardType, null);\n\t}", "title": "" }, { "docid": "df30968ed82241a3a1b92168a3278d49", "score": "0.67639047", "text": "public Floor(int[][] floorConfiguration)\n {\n this.floorConfiguration = floorConfiguration;\n }", "title": "" }, { "docid": "631435508ad314f99ec87005e231170e", "score": "0.6610789", "text": "public static <T> SimpleGridImpl<T> createOShapedFloorPlan(){\n\t\tMap<GridCell, T> cell2item = new HashMap<GridCell,T>();\n\t\t\n\t\tfor (int x = 0; x < 6; x++) {\n\t\t\tfor (int y = 0; y < 6; y++) {\n\t\t\t\tif (!((x == 2 || x == 3) && (y == 2 || y == 3))){\n\t\t\t\t\tcell2item.put(GridCell.at(x, y), null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new SimpleGridImpl<T>(cell2item);\n\t}", "title": "" }, { "docid": "4a21edc9c7949b96eed4f8de909c1a25", "score": "0.6558251", "text": "public void setFloor(String floor);", "title": "" }, { "docid": "cc96d75fea199eb33dac5c322dca40ed", "score": "0.6538094", "text": "public Floor()\n {\n id = \"\";\n number = \"\";\n tableIdList = new ArrayList<String>();\n }", "title": "" }, { "docid": "345285d703336a6402c53ca1b11ab301", "score": "0.6524245", "text": "public Floor(int floorN){\n this.people = new ArrayList<Person>();\n this.floorNum = floorN;\n this.buttonState = StateUpDown.NONE;\n }", "title": "" }, { "docid": "e786dfa909c0851a6bd5abca1ac4530d", "score": "0.6492999", "text": "public Floor(Object[] details) {\n\n\t\tpixels = new Integer[(int) details[0]][(int) details[1]];\n\t\twidth = (int) details[0];\n\t\theight = (int) details[1];\n\n\t\taddBackground();\n\t\taddBoxes((int) details[3], (int) details[4], (Integer) details[5]);\n\n\t}", "title": "" }, { "docid": "29643f1be9755d2c9a92bf8e76bd67dc", "score": "0.63625747", "text": "public static <T> SimpleGridImpl<T> createHShapedFloorPlan(){\n\t\tMap<GridCell, T> cell2item = new HashMap<GridCell,T>();\n\t\t\n\t\t// 3x3 square space (sw corner at 0,0)\n\t\tfor (int x = 0; x < 3; x++) {\n\t\t\tfor (int y = 0; y < 3; y++) {\n\t\t\t\tcell2item.put(GridCell.at(x, y), null);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// A narrow hallway (1 cell wide and one cell long)\n\t\tcell2item.put(GridCell.at(3, 1), null);\n\t\t\n\t\t// Another 3x3 square space (sw corner at 4,0)\n\t\tfor (int x = 0; x < 3; x++) {\n\t\t\tfor (int y = 0; y < 3; y++) {\n\t\t\t\tcell2item.put(GridCell.at(4 + x, y), null);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new SimpleGridImpl<T>(cell2item);\n\t}", "title": "" }, { "docid": "6209a766de6c3666e7af4e0232c2daf2", "score": "0.6358308", "text": "public TowerFloor(int floorNum, int requiredValue, CardType cardType){\n\t\tthis(floorNum, requiredValue, cardType, null);\n\t}", "title": "" }, { "docid": "b46aae65b5c0838213aa0a2948453f18", "score": "0.63456213", "text": "public String getFloor() {\n\t\treturn floor;\n\t}", "title": "" }, { "docid": "9391a433b366bcfa78f71d89cc998517", "score": "0.6322391", "text": "public int getFloor() {\r\n return floor;\r\n }", "title": "" }, { "docid": "8b246c1d58c27d441a6f738c33017ad3", "score": "0.628612", "text": "public void setFloor(String floor) {\n\t\tthis.floor = floor == null ? null : floor.trim();\n\t}", "title": "" }, { "docid": "38ce1e4dd3cd9ebfe0bad1e9e09bb3c9", "score": "0.62329876", "text": "int getFloor();", "title": "" }, { "docid": "b0ba1707d344a3451942499d8e1e9f98", "score": "0.62109065", "text": "public void setSourceFloor(int sourceFloor) {\n this.sourceFloor = sourceFloor;\n }", "title": "" }, { "docid": "fbe116aae325b45ef595c2cd3c05051c", "score": "0.6191209", "text": "public void addFloor()\n {\n for (int i = 5; i < Play.WORLD_WIDTH / BLOCK_SIZE; i++) {\n addElement(new PhysicalObject(new Vector2(i * BLOCK_SIZE, Play.FLOOR_HEIGHT), BLOCK_SIZE, BLOCK_SIZE, \"block.png\"));\n }\n }", "title": "" }, { "docid": "ef9522418786cccfd58dab38a62d2dbd", "score": "0.61466885", "text": "public void setFloorID(String aFloorID) \n {\n floorID = aFloorID;\n }", "title": "" }, { "docid": "f4d60dcc7ccaf144ace7ab2d991ee6e1", "score": "0.61302793", "text": "private void addFloor(Vector3 position) {\n Model floorPlane = mContentManager.getFloorPlane();\n TextureAttribute textureAttribute = new TextureAttribute(TextureAttribute.Diffuse, mContentManager.getTexture(Constants.FLOOR_TEXTURE));\n floorPlane.materials.get(0).set(textureAttribute);\n mGameObjectManager.addGameObject(new FloorTile(floorPlane, position));\n }", "title": "" }, { "docid": "fd04416cd89271607464b7730b65a01f", "score": "0.6076584", "text": "public WebCompileOfficeFloor() {\n\t\tthis(null);\n\t}", "title": "" }, { "docid": "a64841a0fadf217c3dcb542aa24fb157", "score": "0.6058914", "text": "public Floor(boolean isVertical)\n {\n if (isVertical)\n {\n floorConfiguration = new int[2][1];\n\n floorConfiguration[0][0] = currentNum;\n floorConfiguration[1][0] = currentNum;\n }\n else\n {\n floorConfiguration = new int[1][2];\n \n floorConfiguration[0][0] = currentNum;\n floorConfiguration[0][1] = currentNum;\n }\n \n currentNum++;\n }", "title": "" }, { "docid": "e18142400be457e785dbae8ce42c4e15", "score": "0.604758", "text": "private Floor getFloor( String name )\n {\n if ( name.equals( FIRST_FLOOR_NAME ) )\n return firstFloor;\n else\n\n if ( name.equals( SECOND_FLOOR_NAME ) )\n return secondFloor;\n else\n return null;\n\n }", "title": "" }, { "docid": "d1e6926683d0887a3da1e19887cfb5ec", "score": "0.59948516", "text": "@Test\n public void testInitFloor() {\n System.out.println(\"initFloor\");\n \n Geometry floor_spy = spy(new Geometry());\n \n sceneManager.initFloor(floor_spy);\n \n Mockito.verify(floor_spy).setName(\"Floor\");\n Mockito.verify(floor_spy).setMesh((Mesh)any());\n Mockito.verify(floor_spy).setMaterial((Material)any());\n Mockito.verify(floor_spy).setLocalTranslation(0, -0.1f, 0);\n \n Mockito.verify(physics).add((RigidBodyControl)any());\n assertEquals(floor_spy.getControl(RigidBodyControl.class).getMass(), 0f, 1e-4);\n \n Material expected_mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n assertEquals(floor_spy.getMaterial().toString(),expected_mat.toString());\n \n Box expected_box = new Box(100f, 0.1f, 50f);\n assertEquals(floor_spy.getModelBound().getVolume(), expected_box.getBound().getVolume(), 1e-4);\n }", "title": "" }, { "docid": "e596b5a888d8f5f85d89dde917141bc6", "score": "0.5988762", "text": "public Floor(int _floorNumber, int noOfPassengersOnFloor) {\r\n String classMethodName = className + \"Floor(int floorNum, int noOfPassengersOnFloor)\";\r\n residentPassengers = new Vector();\r\n passengersGoingUp = new Vector();\r\n passengersGoingDown = new Vector();\r\n floorNumber = _floorNumber;\r\n\r\n for (int i = 0; i < noOfPassengersOnFloor; i++) {\r\n\r\n Passenger newPassenger = new Passenger(floorNumber);\r\n\r\n if (Coin.toss() == \"HEADS\") {\r\n if (Coin.toss() == \"HEADS\") {\r\n\r\n if (newPassenger.getDestinationFloor() > floorNumber) {\r\n passengersGoingUp.add(newPassenger);\r\n } else {\r\n passengersGoingDown.add(newPassenger);\r\n }\r\n\r\n }\r\n } else {\r\n residentPassengers.add(newPassenger);\r\n }\r\n } //end of FOR loop\r\n }", "title": "" }, { "docid": "e816aa3da03a4b466069ecb53938c100", "score": "0.5943908", "text": "public Elevator(Building building) {\n this.currentFloor = 1;\n this.directionUp = true;\n this.myBuilding = building;\n }", "title": "" }, { "docid": "9b14ee285dab383718aab9816a8b0988", "score": "0.5893528", "text": "public String getFloorID() \n {\n return floorID;\n }", "title": "" }, { "docid": "d91e59d4cdb7ed353a2b4b3d962f6ddd", "score": "0.58839524", "text": "public Room(double roomHeight,\n double roomWidth,\n double roomLength,\n double roomVolume,\n String floorMaterial,\n String wallMaterial,\n String ceilingMaterial,\n LinkedList<Integer> lengthModes,\n LinkedList<Integer> widthModes,\n LinkedList<Integer> heightModes,\n LinkedList<Double> floorMaterialCoefficients,\n LinkedList<Double> wallMaterialCoefficients,\n LinkedList<Double> ceilingMaterialCoefficients\n// LinkedList<Double> doorMaterialCoefficients,\n// LinkedList<Double> windowMaterialCoefficients\n )\n {\n\n this.roomHeight = roomHeight;\n this.roomWidth = roomWidth;\n this.roomLength = roomLength;\n this.roomVolume = roomHeight * roomWidth * roomLength;\n\n this.floorMaterial = floorMaterial;\n this.wallMaterial = wallMaterial;\n this.ceilingMaterial = ceilingMaterial;\n\n this.lengthModes = lengthModes;\n this.widthModes = widthModes;\n this.heightModes = heightModes;\n this.floorMaterialCoefficients = floorMaterialCoefficients;\n this.wallMaterialCoefficients = wallMaterialCoefficients;\n this.ceilingMaterialCoefficients = ceilingMaterialCoefficients;\n this.roomVolume = roomVolume;\n// this.doorMaterialCoefficients = door1.getDoorMatRt60();\n// this.windowMaterialCoefficients = window1.getWindowRt60();\n// this.rt60actual = rt60actual;\n// this.rt60Goal = rt60Goal;\n// this.absorptionNeeded = absorptionNeeded;\n\n }", "title": "" }, { "docid": "408b51aae9d09cf0ac791c4368710f1e", "score": "0.58795744", "text": "public abstract void RequestFloor(int floor);", "title": "" }, { "docid": "9e45543265f735793e51e2f920076f82", "score": "0.58765304", "text": "@Override\n public void floorChanged() {\n\n }", "title": "" }, { "docid": "633fb46604f591c705afb1338b643370", "score": "0.58144003", "text": "public BuildingPlan(int nFloors, Map<Integer, String> floorNames, List<Room> rooms, Map<Integer, Room> polyIdToRoom,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<FurnitureShape> furnitureShapes, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<Furniture> furnitureLocations) throws IOException {\n\t\tthis.nFloors = nFloors;\n\t\tthis.floorNames = floorNames;\n\t\tthis.rooms = rooms;\n\t\tthis.doors = new HashSet<DoorInterface>();\n\t\tthis.furnitureShapes = furnitureShapes;\n\t\tthis.furnitureLocations = furnitureLocations;\n\n\t\t//work out building bounding box\n\t\tfloat minX = Float.MAX_VALUE, maxY = Float.MIN_VALUE, maxX = maxY, minY = minX;\n\n\t\tfor (Room r: rooms) {\n\t\t\tRectangle2D.Float box = r.getBoundingBox();\n\n\t\t\tif (minX > box.x)\n\t\t\t\tminX = box.x;\n\t\t\t\n\t\t\tif (maxY < box.y)\n\t\t\t\tmaxY = box.y;\n\t\t\t\n\t\t\tfloat x = box.x + box.width;\n\t\t\tfloat y = box.y - box.height;\n\t\t\t\n\t\t\tif (maxX < x)\n\t\t\t\tmaxX = x;\n\t\t\t\n\t\t\tif (minY > y)\n\t\t\t\tminY = y;\n\t\t}\n\t\tfloat width = maxX - minX;\n\t\tfloat height = maxY - minY;\n\t\t\n\t\tboundingBox = new Rectangle2D.Float(minX, maxY, width, height);\n\t\t\n\t\t//sort rooms by increasing id\n\t\tCollections.sort(rooms);\n\t\tRoom lastRoom = rooms.get(rooms.size()-1);\n\t\tint outsideId = lastRoom.getId() + 1;\n\t\t\n\t\t//create an \"outside room\" and add it to list of rooms\n\t\tfloat X1 = boundingBox.x - padding;\n\t\tfloat Y1 = boundingBox.y + padding;\n\t\twidth = boundingBox.width + 2 * padding;\n\t\theight = boundingBox.height + 2 * padding;\n\t\tfloat X2 = X1 + width;\n\t\tfloat Y2 = Y1 - height;\n\t\t\n\t\tArrayList< List<Vertex>> vertices = new ArrayList< List<Vertex>>();\n\t\tArrayList<Vertex> poly = new ArrayList<Vertex>();\n\t\tpoly.add( new Vertex( X1, Y1, Vertex.EdgeType.wall, -1));\n\t\tpoly.add( new Vertex( X1, Y2, Vertex.EdgeType.wall, -1));\n\t\tpoly.add( new Vertex( X2, Y1, Vertex.EdgeType.wall, -1));\n\t\tpoly.add( new Vertex( X2, Y2, Vertex.EdgeType.wall, -1));\n\t\tvertices.add( poly);\n\n\t\t//TODO the outside room should really have more vertices (the inner ones that delimit the building) \n\t\t\n\t\toutside = new Room(\"Outside\", outsideId, 0, vertices, new Rectangle2D.Float(X1, Y1, width, height));\n\t\trooms.add(outside);\n\t\t//work out connections (doors) for the rooms\n\t\tbuildRooms(polyIdToRoom);\n\t}", "title": "" }, { "docid": "dab288057db7024e2b796756ced03686", "score": "0.5811037", "text": "public abstract void VisitFloor(int floor);", "title": "" }, { "docid": "521b2dfae43d49f4c1870795c40925da", "score": "0.5767386", "text": "public Floor(double width, double length) {\n // in case the width or length are less than 0 set them to 0 respectively\n this.length = length < 0 ? 0 : length;\n this.width = width < 0 ? 0 : width;\n }", "title": "" }, { "docid": "79c5306d03e0f7777b4b1ed900a0e19b", "score": "0.57639986", "text": "public int getFloorNumber() {\n return mFloorNumber;\n }", "title": "" }, { "docid": "6e8ce3e7c726d9026a3c36ab12eaeade", "score": "0.57548326", "text": "public EVSystem(){\n floors = new ArrayList<Floor>();\n for(int i = 0 ; i < 7; i++){\n Floor floor = new Floor(i+1);\n this.floors.add(floor);\n }\n this.elevator = new Elevator();\n this.target_floor = -1;\n \n openREQ = false;\n }", "title": "" }, { "docid": "f52342ec5a368943791cb873a0bad5ce", "score": "0.5751414", "text": "public Modifier createModifier(final ISettableComponentsScope scope, final ILets lets, final double floorArea) {\n return new Modifier(scope, lets, floorArea);\n }", "title": "" }, { "docid": "75867969cc4efe77d3fb0bf331870620", "score": "0.5736433", "text": "public void addFloor(Floor f) {\r\n FloorNode nn = new FloorNode();\r\n nn.setContents(f);\r\n nn.next = floorHead;\r\n floorHead = nn;\r\n\r\n }", "title": "" }, { "docid": "236acba65de29f3771652b5f6a4bbe5d", "score": "0.5732859", "text": "@Override\r\n\tpublic String toString() {\r\n\t\tString output = \"floor \" + floor + \", \" + Orientation() + \" side \" + location;\r\n\t\treturn output;\r\n\t}", "title": "" }, { "docid": "05c8e2d380866a443fc9decdb214bbd1", "score": "0.57277745", "text": "public Location(int floor, int row, int place) {\r\n this.floor = floor;\r\n this.row = row;\r\n this.place = place;\r\n }", "title": "" }, { "docid": "daf7aa1c5f62cd97e9d2f7458279a1c3", "score": "0.5646532", "text": "public int getSourceFloor() {\n\n return sourceFloor;\n }", "title": "" }, { "docid": "bc2de8e3557fdddc5368cf144da5579f", "score": "0.5635165", "text": "public String getBuildingFloor() {\n return buildingFloor;\n }", "title": "" }, { "docid": "977b5dd2af68b10c89e32ea71a3d7c6c", "score": "0.5592649", "text": "private void drawAFloor(float floor){\n QuadArray qa = new QuadArray(8,QuadArray.COORDINATES);\n qa.setCoordinate(0, new Point3f(0f-0.225f,floor+0.025f,1));\n qa.setCoordinate(1, new Point3f(Building.MAX_LIFTS*1.4f+0.225f,floor+0.025f,1));\n qa.setCoordinate(2, new Point3f(Building.MAX_LIFTS*1.4f+0.225f,floor+0.025f,-1));\n qa.setCoordinate(3, new Point3f(0f-0.225f,floor+0.025f,-1));\n \n qa.setCoordinate(4, new Point3f(0f-0.225f,floor-0.025f,1));\n qa.setCoordinate(5, new Point3f(0f-0.225f,floor-0.025f,-1));\n qa.setCoordinate(6, new Point3f(Building.MAX_LIFTS*1.4f+0.225f,floor-0.025f,-1));\n qa.setCoordinate(7, new Point3f(Building.MAX_LIFTS*1.4f+0.225f,floor-0.025f,1));\n \n \n /*\n float l = -5f;\n for (int c = 0; c < 88; c+=4)\n {\n landGeom.setCoordinate( c+0, new Point3f( -5f, floor, l ));\n landGeom.setCoordinate( c+1, new Point3f( 5f, floor, l ));\n landGeom.setCoordinate( c+2, new Point3f( l , floor, -5f ));\n landGeom.setCoordinate( c+3, new Point3f( l , floor, 5f ));\n l += 1;\n }\n Color3f c = new Color3f(1.0f,0.1f,0.1f);\n for (int i = 0; i < 44; i++){\n landGeom.setColor(i,c);\n }\n */\n Appearance app = new Appearance();\n \n //add floor number\n if(floor>1){\n drawFloorNumber(floor-1);\n }\n \n \n buildingTG.addChild(new Shape3D(qa,app));\n }", "title": "" }, { "docid": "1c703d60935f9d1d2faf5e7b1ea83ae3", "score": "0.5558249", "text": "@Override\r\npublic void enterFloor() {\n}", "title": "" }, { "docid": "a06abbe43c0e7b7fdffb94b240f2ac96", "score": "0.5552421", "text": "public void testFloor() {\n NavigableSet q = set5();\n Object e1 = q.floor(three);\n assertEquals(three, e1);\n\n Object e2 = q.floor(six);\n assertEquals(five, e2);\n\n Object e3 = q.floor(one);\n assertEquals(one, e3);\n\n Object e4 = q.floor(zero);\n assertNull(e4);\n }", "title": "" }, { "docid": "ff7f38a585774273272b20aab8ddde73", "score": "0.55395865", "text": "public List<RoomShape> getRooms(int floor);", "title": "" }, { "docid": "cb4cd237fe50ab42977abd37868639d8", "score": "0.55368423", "text": "public OilWell(double depth) {\n super(depth);\n }", "title": "" }, { "docid": "316de8c711cee53ab566ce742c4ef8f6", "score": "0.5526258", "text": "public BathroomDoor() \n {\n GreenfootImage a = new GreenfootImage(\"bathroomdoor.png\");\n a.scale(250, 100);\n setImage(a);\n }", "title": "" }, { "docid": "409cd2e2d4db94bff47dd836abe844f4", "score": "0.552268", "text": "public void setBuildingFloor(String buildingFloor) {\n this.buildingFloor = buildingFloor;\n }", "title": "" }, { "docid": "9034dcb761a3497ffd136052845981a9", "score": "0.5514212", "text": "public Wall(){}", "title": "" }, { "docid": "7ffcb8bfddf3ee5ed8451939573fa2f4", "score": "0.55056745", "text": "public boolean hasFloor() {\n\treturn floor != null;\n }", "title": "" }, { "docid": "5b6411c1e2dd93a0c5fffa0903d810ca", "score": "0.5492221", "text": "private void floor(GL gl) {\n\n floor.enable();\n floor.bind();\n gl.glPushMatrix();\n gl.glColor3f(1, 1, 1);\n gl.glTranslatef(-1.5f, -0.2f, -6.0f);\n gl.glRotatef(-70, 1, 0, 0);//the quad is rotated by x-axis to appear as floor\n gl.glBegin(GL.GL_QUADS);\n gl.glEnable(GL.GL_BLEND);\n gl.glTexCoord2f(0, 0);\n gl.glVertex3f(-5.03f, 3.0f, 0.0f);\n gl.glTexCoord2f(1, 0);\n gl.glVertex3f(8.03f, 3.0f, 0.0f);\n gl.glTexCoord2f(1, 1);\n gl.glVertex3f(8.03f, -3.5f, 0.0f);\n gl.glTexCoord2f(0, 1);\n gl.glVertex3f(-5.03f, -3.5f, 0.0f);\n gl.glEnd();\n gl.glPopMatrix();\n floor.disable();\n }", "title": "" }, { "docid": "c56ef8c7592fc7f72d98f6c3b1892abd", "score": "0.54511636", "text": "public RegElevator1()\n {\n elevatorState = ElevatorState.IDLE;\n doorState = Door.CLOSED;\n currentFloor = RegBuilding.getInstance().getFloorWithIndex(DEFAULT_FLOOR);\n destinations = new ArrayList<Floor>();\n }", "title": "" }, { "docid": "dcb4c560fb0d30c327b11cdadeb11c83", "score": "0.5446922", "text": "@RequestMapping(value=\"/{id}\", method=RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\t@ApiOperation(value = \"Vraća sprat sa zadatim ID-em.\", notes = \"Povratna vrednost metode je sprat koji ima zadati ID.\", httpMethod = \"GET\", produces = \"application/json\")\n\t@ApiResponses(value = {\n\t\t\t@ApiResponse(code = 200, message = \"OK\", response = Floor.class),\n\t\t\t@ApiResponse(code = 204, message = \"No Content\"),\n\t\t\t@ApiResponse(code = 400, message = \"Bad Request\")\n\t})\n\tpublic ResponseEntity<Resource<Floor>> getFloorById(@PathVariable(value=\"id\") Long floorId) {\n\t\t\treturn new ResponseEntity<Resource<Floor>>(HATEOASImplementorHotel.createFloor(floorService.findById(floorId)), HttpStatus.OK);\n\t}", "title": "" }, { "docid": "c5afeaff0ca80e6a8eb043b5c0a7b294", "score": "0.54405075", "text": "public Building(int x, int y,int w,int h)\n {\n // initialise instance variables\n xLeft= x;\n yTop=y;\n xWidth=w;\n yHeight=h;\n }", "title": "" }, { "docid": "867fa9c9ae3a5b7a6609865f48152937", "score": "0.5436888", "text": "public void setDestinationFloor(int destinationFloor) {\n this.destinationFloor = destinationFloor;\n }", "title": "" }, { "docid": "8ea05c471316814db3059896c7b913e5", "score": "0.54038566", "text": "public Room() {}", "title": "" }, { "docid": "3f3c29e0c62d914fe770e724fee26e21", "score": "0.5379828", "text": "public Elevator() {\n sensorBottom = new DigitalInput(RobotMap.SENSOR_CHAMBER_BOTTOM);\n sensorMiddle = new DigitalInput(RobotMap.SENSOR_CHAMBER_MIDDLE);\n sensorTop = new DigitalInput(RobotMap.SENSOR_CHAMBER_TOP );\n bottomMotor = new Victor(RobotMap.MOTOR_CHAMBER_BOTTOM);\n topMotor = new Victor(RobotMap.MOTOR_CHAMBER_TOP );\n }", "title": "" }, { "docid": "7cfdb8ca1655d0c4473506ceec60c0df", "score": "0.53715724", "text": "public FlexibleBuilding(CityOfHeroes city , int number , int width , int height , int hardness){\n super(city, number, width, height, hardness);\n door=new Rectangle();\n door.changeColor(\"black\");\n door.changeSize(30,width/3);\n canHaveAHero=false;\n }", "title": "" }, { "docid": "8b9ccf243ebad626d51086140a55b7c5", "score": "0.5368618", "text": "public LevelModel() {\n field = new Board(12,12);\n bullpen = new Bullpen();\n System.out.println(\"LevelModel has been constructed\");\n // commenting out for now\n /*\n boardTiles = new ReleaseTile[12][12];\n for (int c = 0; c < 12; c++) {\n for (int r = 0; r < 12; r++) {\n boardTiles[c][r] = new ReleaseTile();\n }\n }\n */\n }", "title": "" }, { "docid": "f651a4d0bb08dbf82dab3d06bbca5a2d", "score": "0.53647524", "text": "public FloorMessage createFloorRequest(int floorDest, int direction) {\n\t\tInteger[] r = new Integer[] { floorDest, direction }; // Going to floor 5, Going up\n\n\t\tFloorMessage request = new FloorMessage() {\n\t\t\t@Override\n\t\t\tpublic Integer[] getRequest() {\n\t\t\t\treturn r;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Integer getSourceElevator() {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Task getTask() {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\n\t\treturn request;\n\t}", "title": "" }, { "docid": "6e964cf80b4edae2a8fefb7415b31ad8", "score": "0.5361878", "text": "public Floor getTargetFloor() {\n return targetFloor;\n }", "title": "" }, { "docid": "5c21cfa378490bf7e238025dff238fca", "score": "0.5323338", "text": "@Override\n public Room mapRow(ResultSet rs, int rowNum) throws SQLException {\n Room r = new Room();\n\n r.setFloor(rs.getInt(Room.COLUMN_FLOOR));\n\n return r;\n }", "title": "" }, { "docid": "8ad92e71efc42f4ba405eabe291d15a2", "score": "0.5305188", "text": "public InstancedImage build() {\r\n // Preconditions:\r\n assert _texture != null;\r\n assert _anchor != null;\r\n \r\n // Code:\r\n if (_width < 0 || _height < 0) {\r\n _width = _texture.getWidth();\r\n _height = _texture.getHeight();\r\n }\r\n \r\n if (_sorter == null) {\r\n _sorter = (Transform o1, Transform o2) -> { return 0; };\r\n }\r\n\r\n return construct();\r\n }", "title": "" }, { "docid": "8b298b4ffc74c782c8df29cd2131f1d5", "score": "0.52996707", "text": "public int currentFloor() {\n return currentFloor;\n }", "title": "" }, { "docid": "41361073fe2447f860aa92a309d56bce", "score": "0.52877903", "text": "Level createLevel();", "title": "" }, { "docid": "265bf346a8f6b4a3694e0dc360a91a20", "score": "0.5277155", "text": "public void zeroOutButtonForFloor(int floor) {\n switch(floor) {\n case 1:\n this.fl1 = 0;\n break;\n case 2:\n this.fl2 = 0;\n break;\n case 3:\n this.fl3 = 0;\n break;\n case 4:\n this.fl4 = 0;\n break;\n case 5:\n this.fl5 = 0;\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "31899df35a264670bd04facc5216d38e", "score": "0.5221732", "text": "public LevelModel(String mode){\n field = new Board(12,12);\n bullpen = new Bullpen();\n\n System.out.println(\"LevelModel has been constructed 2\");\n // commenting out for now\n /*\n if(mode.equals(\"release\")){\n boardTiles = new ReleaseTile[12][12];\n for (int c = 0; c < 12; c++) {\n for (int r = 0; r < 12; r++) {\n boardTiles[c][r] = new ReleaseTile();\n }\n }\n }\n */\n }", "title": "" }, { "docid": "38f84426f6e7053fdcd9e07328fcfc65", "score": "0.52202934", "text": "public Planetoid() {\n\t\t\n\t}", "title": "" }, { "docid": "2f6fcbb5a820b7f822635e0742388e34", "score": "0.52118605", "text": "public GeometricObject(double width, double height, double depth) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.depth = depth;\n\t}", "title": "" }, { "docid": "84d1f6601632b7b92bd54410c6254396", "score": "0.5211474", "text": "public Button() {\n this.fl1 = 0;\n this.fl2 = 0;\n this.fl3 = 0;\n this.fl4 = 0;\n this.fl5 = 0;\n this.goingUp = true;\n this.currentFloor = 1;\n this.maxFloor = currentFloor;\n }", "title": "" }, { "docid": "709ed201c2e542c502e61c65e5681828", "score": "0.5196024", "text": "@UiThread\r\n public void setIndoorFloorId(int floorId) {\r\n m_indoorFloorId = floorId;\r\n }", "title": "" }, { "docid": "203877ff87416e54226c73ce6dd71e35", "score": "0.5192344", "text": "private ShooterElevation constructEncoder()\r\n {\r\n final ShooterElevation elevation = new ShooterElevation( getMotor() );\r\n return elevation;\r\n }", "title": "" }, { "docid": "d239435d81f95c18de162debdc1d4d75", "score": "0.51607704", "text": "public Rational floor() {\n\t\tif (mDenom <= 1) {\n\t\t\treturn this;\n\t\t}\n\t\tint div = mNum / mDenom;\n\t\t// Java rounds the wrong way for negative numbers.\n\t\t// We know that the division is not exact due to\n\t\t// normalization and mdenom != 1, so subtracting\n\t\t// one fixes the result for negative numbers.\n\t\tif (mNum < 0) {\n\t\t\tdiv--;\n\t\t}\n\t\treturn valueOf(div, 1);\n\t}", "title": "" }, { "docid": "bc7019cb0762bf9b107a2539fa575e03", "score": "0.51510626", "text": "@Override\n public Cleric create() {\n Cleric cleric = new Cleric(getHitPoints(), getMovement(), getLocation());\n setDefaults();\n return cleric;\n }", "title": "" }, { "docid": "ccbbf532111baf4fca5e287e823d83fc", "score": "0.5137983", "text": "public Cell() {\r\n\t\tthis.grid = new Grid();\r\n\t\tthis.loc = new Location();\r\n\t\tthis.dimension = new Dimension();\r\n\t\tthis.color = Color.CYAN;\r\n\t\tthis.type = CellType.OUTER_AREA;\r\n\t\tthis.status = CellStatus.OPEN;\r\n\t\tnormalizeStatus();\r\n\t}", "title": "" }, { "docid": "90e48e086f6828cb036669e725c91c35", "score": "0.5132801", "text": "public BuildingEntity() {\n }", "title": "" }, { "docid": "58867c39ae312dea010488d2e892f57b", "score": "0.512225", "text": "public GeoRectangle()\n {\n GeodeticDatum datum=GeodeticDatumRegister.getInstance().getDefaultGeodeticDatum();\n init(0,0,0,0,datum);\n }", "title": "" }, { "docid": "4a8d2305c8651292ce594d0d12faa241", "score": "0.51211464", "text": "private void createRoom(int width, int height) {\n\t\tleveldesign = new ArrayList<String>();\n\t\tString wall = \"\";\n\t\tfor (int i = 0; i < width; i++)\n\t\t\twall += AsciiScreen.standardWall;\n\t\tleveldesign.add(wall);\n\t\tfor (int y = 1; y < height - 1; y++) {\n\t\t\tString s = Character.toString(AsciiScreen.standardWall);\n\t\t\tfor (int x = 1; x < width - 1; x++)\n\t\t\t\ts += \".\";\n\t\t\ts += AsciiScreen.standardWall;\n\t\t\tleveldesign.add(s);\n\t\t}\n\t\twall = \"\";\n\t\tfor (int i = 0; i < width / 2 - 1; i++)\n\t\t\twall += AsciiScreen.standardWall;\n\t\tposDoor = new Coordinate(wall.length(), height - 1);\n\t\twall += \"▒▒\";\n\t\twhile (wall.length() < width)\n\t\t\twall += AsciiScreen.standardWall;\n\t\tleveldesign.add(wall);\n\t}", "title": "" }, { "docid": "d08484b4363750b28f1241df4e43a41e", "score": "0.5112999", "text": "public Elevator() {\n\n\t\t// Instantiates Motor controller for elevator\n\t\tm_motor = new WPI_TalonSRX(RobotMap.ELEVATOR_MOTOR_PORT);\n\n\t\t// Instantiating encoder for the elevator height\n\t\tm_encoder = new SensorCollection(m_motor);\n\n\t\t// Zeroes the encoder\n\t\tm_encoder.setQuadraturePosition(0, 0);\n\n\t\t// Sets the State enum to it's initial state\n\t\tcurrentState = State.LEVEL_ZERO;\n\n\t\tm_firstCall = false;\n\t\tm_lockedDistance = 0;\n\t\tm_targetAngle = 0;\n\t}", "title": "" }, { "docid": "03cc02f821250096f828e7e5c3a6a969", "score": "0.5103425", "text": "public BasicRoom(){\n\t\tthis.initialisieren();\n\t}", "title": "" }, { "docid": "76d28f0e2d37e9d80822b9ecda7a7677", "score": "0.5100404", "text": "public Room() {\n }", "title": "" }, { "docid": "0879daa364d6e0f529ed5e6dc6433d07", "score": "0.5099079", "text": "public void addFloor(Floor floor, int buildingIndex) {\n Building building = buildingList.get(buildingIndex);\n try {\n building.addFloor(floor);\n floorListModel.addElement(floor.toString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "4dab58530f5e821df9167ca9709bfb15", "score": "0.50976694", "text": "public Tile() {}", "title": "" }, { "docid": "25ce5eb32435153e1d5dbe95752565ce", "score": "0.50882864", "text": "public Building() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "title": "" }, { "docid": "4df28f093fe50a570bf1e44dd89d72eb", "score": "0.50764656", "text": "public Cylinder(double radius, double height) {\n}", "title": "" }, { "docid": "d0797ba2cf248a4ef3315c570c00e375", "score": "0.50757676", "text": "public Wall(double width, double height){\n if ( width <0 && height >0 ) {\n this.width = 0;\n this.height = height;\n }else if (width >0 && height <0) {\n this.width = width;\n this.height = 0;\n }else if (width < 0 && height <0){\n this.width = 0;\n this.height = 0;\n }else{\n this.width = width;\n this.height = height;\n }\n }", "title": "" }, { "docid": "62ed5818c99530982b3ce16fdc26ac86", "score": "0.507163", "text": "public Level(){\n monsters = new HashMap<>();\n tiles = new HashMap<>();\n\n hero = new Hero(PositionPool.getInstance().getPosition(0, 0));\n timer = new Timer();\n biomLevel = Biom.values()[0];\n }", "title": "" }, { "docid": "d038a8cce5a330920cdb8844a7e45c39", "score": "0.50637233", "text": "public Area() {}", "title": "" }, { "docid": "00945c02c471e6d0c3dcd3b6ab74bd4e", "score": "0.5060789", "text": "public MyHouse(int x, int y)\n {\n // Specify the constructor for the superclass\n super(x, y, 120, 90);\n \n // Create the roof object\n NscUpTriangle theRoof;\n theRoof = new NscUpTriangle(0, 0, 120, 40);\n // Set the characteristics of the roof\n theRoof.setFilled(true);\n theRoof.setBackground(new java.awt.Color(0x99, 0x33, 0x00));\n // Place the roof in the MyHouse object\n add(theRoof);\n \n // Create the walls object\n theWalls = new NscRectangle(10, 40, 100, 50);\n // Set the characteristics of the walls\n theWalls.setFilled(true);\n theWalls.setBackground(java.awt.Color.blue);\n // Place the walls in the MyHouse object\n add(theWalls);\n \n // Create the door object\n NscRectangle theDoor;\n theDoor = new NscRectangle(48, 50, 24, 40);\n // Set the characteristics of the door\n theDoor.setFilled(true);\n theDoor.setBackground(new java.awt.Color(0x99, 0x66, 0x33));\n // Place the door in the MyHouse object\n add(theDoor);\n }", "title": "" }, { "docid": "0e93fb774c514a19483540ae1e2ad8b0", "score": "0.50585663", "text": "public WorldImage makeImage() {\n return new RectangleImage(this.posn, 60, 30, Color.lightGray);\n }", "title": "" }, { "docid": "dea115514ccaab3f87e59453a86c4780", "score": "0.50548387", "text": "public Elevator() {\n\t\treq = null;\n\t\televatorState =0;\n\t\tcurrentFloor = 1;\n\t\t\n\t}", "title": "" }, { "docid": "406f5abf19f77df5fbd886ce3015e5d8", "score": "0.50525314", "text": "public static Building fromJson(JsonObject object) {\n String type = object.getAsJsonPrimitive(\"type\").getAsString();\n BuildingType buildingType = BuildingType.from(type);\n if (buildingType == null)\n throw new IllegalArgumentException(\n String.format(\"Invalid type of building: %s\", type)\n );\n\n int x = object.getAsJsonPrimitive(\"x\").getAsInt();\n int y = object.getAsJsonPrimitive(\"y\").getAsInt();\n int id = object.getAsJsonPrimitive(\"id\").getAsInt();\n int playerId = object.getAsJsonPrimitive(\"playerId\").getAsInt();\n int sectorId = object.getAsJsonPrimitive(\"sectorId\").getAsInt();\n\n BuildingParams params = new BuildingParams(x, y, id, playerId, sectorId);\n\n switch (buildingType) {\n case RESEARCH_CENTER: return ResearchCenter.fromJson(object, params);\n case TURRET: return Turret.fromJson(object, params);\n case GENERATOR: return Generator.fromJson(object, params);\n case MINE: return Mine.fromJson(object, params);\n case HANGAR: return Hangar.fromJson(object, params);\n }\n\n return null;\n }", "title": "" }, { "docid": "47d5218281333b62688967f81fd7825c", "score": "0.5048616", "text": "public Building(BuildingParams params, BuildingType buildingType) {\n this.buildingType = buildingType;\n this.x = params.x;\n this.y = params.y;\n this.id = params.id;\n this.playerId = params.playerId;\n this.sectorId = params.sectorId;\n }", "title": "" }, { "docid": "ece5fc6a05fd13ff5a7915c06c914ca9", "score": "0.5032353", "text": "public Board make() {\r\n\t\tBoard board = null;\r\n\t\tswitch(i.getCoordinateType()) {\r\n\t\tcase HEX:\r\n\t\t\tboard = new HexBoard(i.getxMax(), i.getyMax(), CoordinateID.HEX);\r\n\t\t\tbreak;\r\n\t\tcase SQUARE:\r\n\t\t\tboard = new SquareBoard(i.getxMax(), i.getyMax(), CoordinateID.SQUARE);\r\n\t\t\tbreak;\r\n\t\tcase ORTHOSQUARE:\r\n\t\t\tboard = new SquareBoard(i.getxMax(), i.getyMax(), CoordinateID.ORTHOSQUARE);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tinitializeBoard(board, i.getLocationInitializers());\r\n\t\treturn board;\r\n\t}", "title": "" }, { "docid": "7a11e4f0b21541bb4d5bb37b70ffc086", "score": "0.5028434", "text": "public ElevatorSimulation()\n {\n // instantiate firstFloor and secondFloor objects\n firstFloor = new Floor( FIRST_FLOOR_NAME );\n secondFloor = new Floor( SECOND_FLOOR_NAME );\n\n // instantiate ElevatorShaft object\n elevatorShaft =\n new ElevatorShaft( firstFloor, secondFloor );\n\n // give elevatorShaft reference to first and second Floor\n firstFloor.setElevatorShaft( elevatorShaft );\n secondFloor.setElevatorShaft( elevatorShaft );\n\n // register for events from ElevatorShaft\n elevatorShaft.setDoorListener( this );\n elevatorShaft.setButtonListener( this );\n elevatorShaft.addElevatorMoveListener( this );\n elevatorShaft.setLightListener( this );\n elevatorShaft.setBellListener( this );\n\n // instantiate Set for ElevatorMoveListener objects\n personMoveListeners = new HashSet( 1 );\n\n }", "title": "" }, { "docid": "0b984fc3f703d12645d84d1e1473d9e1", "score": "0.5023405", "text": "public VolumeBuilding()\r\n\t{\r\n\t}", "title": "" }, { "docid": "7a8533190be4b0b6610f0c33fa982677", "score": "0.50227547", "text": "public void create(FloorData floorData, ArrayMap<Integer, EntityInstancePlayer> players) {\n\n this.floorData = floorData;\n this.players = players;\n create();\n }", "title": "" }, { "docid": "9cca0ed7ae294626214f75a4923ebe48", "score": "0.50181246", "text": "public Builder() {\n this.map = new LinkedHashMap<>();\n this.layerMap = new TreeMap<>();\n this.shapeBuilders = new HashMap<String, AShape.BuildShape>();\n this.shapeBuilders.put(\"rectangle\", new Rect.BuildRect());\n this.shapeBuilders.put(\"ellipse\", new Ellipse.BuildEllipse());\n this.endTime = 0;\n }", "title": "" } ]
241290f771b8f4480e609af35f4c77b5
Gets the "onkeyup" attribute
[ { "docid": "0c80b0e401ac8fc80c9001e1b222dac4", "score": "0.75391126", "text": "public java.lang.String getOnkeyup()\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(ONKEYUP$32);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" } ]
[ { "docid": "ed76ac40cd9d707574c5f8f9c0dd6051", "score": "0.7868802", "text": "public Object getOnkeyup() {\r\n\t\treturn getOnKeyUp();\r\n\t}", "title": "" }, { "docid": "a3320bf7137182522c71fe4d1ad60f5d", "score": "0.6972149", "text": "public boolean isSetOnkeyup()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ONKEYUP$32) != null;\n }\n }", "title": "" }, { "docid": "c91ec72a1b7033feea26ccd0da977f89", "score": "0.69394475", "text": "public org.w3.x1999.xhtml.Script xgetOnkeyup()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.w3.x1999.xhtml.Script target = null;\n target = (org.w3.x1999.xhtml.Script)get_store().find_attribute_user(ONKEYUP$32);\n return target;\n }\n }", "title": "" }, { "docid": "22a0742f6bd43e9f959a479cb5c820c7", "score": "0.6637413", "text": "public java.lang.String getOnkeydown()\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(ONKEYDOWN$30);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "0918da664c6ead9093f7cbb0d4ddddee", "score": "0.6602307", "text": "public java.lang.String getOnkeypress()\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(ONKEYPRESS$28);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "7b79aefdb74795e0e7c9b4cec8303011", "score": "0.65113384", "text": "public void setOnkeyup(java.lang.String onkeyup)\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(ONKEYUP$32);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ONKEYUP$32);\n }\n target.setStringValue(onkeyup);\n }\n }", "title": "" }, { "docid": "92ebf527433d3b7b2179c4ce43473d2e", "score": "0.6452089", "text": "public Object getOnkeypress() {\r\n\t\treturn getOnKeyPress();\r\n\t}", "title": "" }, { "docid": "41d2173d3120314d8610e7b3c6006ed5", "score": "0.6412543", "text": "public Object getOnkeydown() {\r\n\t\treturn getOnKeyDown();\r\n\t}", "title": "" }, { "docid": "9477a1ef28a2c6469c0f7da0206be285", "score": "0.6382759", "text": "public void xsetOnkeyup(org.w3.x1999.xhtml.Script onkeyup)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.w3.x1999.xhtml.Script target = null;\n target = (org.w3.x1999.xhtml.Script)get_store().find_attribute_user(ONKEYUP$32);\n if (target == null)\n {\n target = (org.w3.x1999.xhtml.Script)get_store().add_attribute_user(ONKEYUP$32);\n }\n target.set(onkeyup);\n }\n }", "title": "" }, { "docid": "e73d8e529502c3b299782fb7731455b5", "score": "0.59686375", "text": "public void unsetOnkeyup()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ONKEYUP$32);\n }\n }", "title": "" }, { "docid": "1f7200b7b6c7c3cf55cef2c2a41365de", "score": "0.5926989", "text": "public boolean isSetOnkeydown()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ONKEYDOWN$30) != null;\n }\n }", "title": "" }, { "docid": "eeffd517ef870442fa16068e292fed44", "score": "0.59190214", "text": "public boolean isSetOnkeypress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ONKEYPRESS$28) != null;\n }\n }", "title": "" }, { "docid": "792cd962d1d9d57b07223b7e163323aa", "score": "0.5652559", "text": "public org.w3.x1999.xhtml.Script xgetOnkeydown()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.w3.x1999.xhtml.Script target = null;\n target = (org.w3.x1999.xhtml.Script)get_store().find_attribute_user(ONKEYDOWN$30);\n return target;\n }\n }", "title": "" }, { "docid": "e803b6c97bc9050a9d262533c319f07d", "score": "0.5501925", "text": "public View.OnKeyListener getOnKeyListener() {\n return mOnKeyListener;\n }", "title": "" }, { "docid": "8ba25f3880042aabd4ebff97ebdb32b6", "score": "0.53855526", "text": "public org.w3.x1999.xhtml.Script xgetOnkeypress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.w3.x1999.xhtml.Script target = null;\n target = (org.w3.x1999.xhtml.Script)get_store().find_attribute_user(ONKEYPRESS$28);\n return target;\n }\n }", "title": "" }, { "docid": "a805986094e35cf580088d4480a8b7d3", "score": "0.53045684", "text": "public JavaScriptObject getKeyEventTarget() {\n return getPolymerElement().getKeyEventTarget();\n }", "title": "" }, { "docid": "7ecd81473b12f1d543286159575acb31", "score": "0.5284878", "text": "public void onKey(KeyBinding event);", "title": "" }, { "docid": "885513294e6d382417934fa0d67b4210", "score": "0.526734", "text": "public int getKeyEvent() {\n return keyEvent;\n }", "title": "" }, { "docid": "4166120b4414ce362800b563a73142ba", "score": "0.52224696", "text": "@DOMSupport(DomLevel.ZERO)\r\n\t@Property(name=\"onfocus\")\r\n\tObject getOnFocus();", "title": "" }, { "docid": "94d362405a372178e41af9ecd59b707c", "score": "0.5178782", "text": "public Object getOnfocus() {\r\n\t\treturn getOnFocus();\r\n\t}", "title": "" }, { "docid": "02203cf42c95aeb2ca6d4e8bde502acc", "score": "0.5176781", "text": "public KeyListener getKeyListener();", "title": "" }, { "docid": "df93fe686130427f6d57a0f04b03e3a3", "score": "0.51705116", "text": "public void setOnkeydown(java.lang.String onkeydown)\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(ONKEYDOWN$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ONKEYDOWN$30);\n }\n target.setStringValue(onkeydown);\n }\n }", "title": "" }, { "docid": "f66bd9fb20e791c3a5e82fd1256940ba", "score": "0.5147198", "text": "public void xsetOnkeydown(org.w3.x1999.xhtml.Script onkeydown)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.w3.x1999.xhtml.Script target = null;\n target = (org.w3.x1999.xhtml.Script)get_store().find_attribute_user(ONKEYDOWN$30);\n if (target == null)\n {\n target = (org.w3.x1999.xhtml.Script)get_store().add_attribute_user(ONKEYDOWN$30);\n }\n target.set(onkeydown);\n }\n }", "title": "" }, { "docid": "834793e6a0599a52d960b8ed46e5945d", "score": "0.5129334", "text": "public void onKeyUp(Widget arg0, char arg1, int arg2) {\n\t\t\t\tsetDirty(true);\r\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "f3ab1df9a6aaeb5d21111b0e293dc05e", "score": "0.5105195", "text": "public java.lang.String getOnfocus()\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(ONFOCUS$38);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "3c1896e3cdc5727f5c998d4a0c00b2e5", "score": "0.5093308", "text": "public java.lang.String getOnmouseup()\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(ONMOUSEUP$20);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "2aa1bab60ee00f13874c28583e28e885", "score": "0.506927", "text": "public void unsetOnkeypress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ONKEYPRESS$28);\n }\n }", "title": "" }, { "docid": "a148a89afe414842bef3335c804388b6", "score": "0.49864453", "text": "public void unsetOnkeydown()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ONKEYDOWN$30);\n }\n }", "title": "" }, { "docid": "c4e09a65839041051cfb139e67477039", "score": "0.49430057", "text": "public boolean onKeyUp(int keyCode, KeyEvent event) {\n return false;\n }", "title": "" }, { "docid": "4279e34a783c1db8cbe17a5e34c80b74", "score": "0.4937644", "text": "boolean onKey(View v, int keyCode, KeyEvent event);", "title": "" }, { "docid": "feca9677588d8023394f9b9a73b2c10b", "score": "0.49311125", "text": "public void keyTyped(KeyEvent event) {}", "title": "" }, { "docid": "309aad94752295bcbf52da4aab69587f", "score": "0.487516", "text": "public void setOnkeypress(java.lang.String onkeypress)\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(ONKEYPRESS$28);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ONKEYPRESS$28);\n }\n target.setStringValue(onkeypress);\n }\n }", "title": "" }, { "docid": "6e6b0f4ec3eefe42d54de639dd82bd23", "score": "0.4868045", "text": "@Override\n\tpublic boolean onKeyUp(int keyCode, KeyEvent event) {\n\t\tString deviceName = InputDevice.getDevice(event.getDeviceId()).getName();\n\t\tif (deviceName.equals(\"MStar Smart TV Keypad\")) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn super.onKeyUp(keyCode, event);\n\t}", "title": "" }, { "docid": "db693e282363dc2dd50a206adae48ef3", "score": "0.48665723", "text": "public void keyTyped(KeyEvent e) {\n}", "title": "" }, { "docid": "125da0a01971d7a27bf17ea59c59723b", "score": "0.48408306", "text": "private void txt_totalDiasAtrazadosKeyTyped(java.awt.event.KeyEvent evt) {\n }", "title": "" }, { "docid": "ca93b0e4ced4d393d36c71a3ec93ee0f", "score": "0.48275208", "text": "public void keyUpListener(AjaxBehaviorEvent e){\n\t\tSystem.out.println(\"AjaxBehavior Listener :: \"+e.getBehavior()+\" :: \"+e.getSource());\n\t\t// Throw NullPointerException\n\t\tthrow new NullPointerException(\"Anonymous Null Pointer\");\n\t}", "title": "" }, { "docid": "9c005991ff4875e98ab4fe4c2ffe20a0", "score": "0.48257175", "text": "public void keyTyped(KeyEvent evt){}", "title": "" }, { "docid": "385af8fdb227f24c70240574f58c6f8f", "score": "0.4825651", "text": "public void keyTyped(KeyEvent e){\n}", "title": "" }, { "docid": "c006e3f271c49553dd821e10531cee0d", "score": "0.47741136", "text": "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n input_text.setText (String.valueOf(CryptoClass.keysD.getInputKey().length()));\n }", "title": "" }, { "docid": "d6eef8b7b46d06596c82d6acee60cf63", "score": "0.47562525", "text": "protected String getOnsubmit() {\n\t\treturn this.onsubmit;\n\t}", "title": "" }, { "docid": "b2b2585be1f6bc10521ee0601cb08c23", "score": "0.47561124", "text": "public void onKeyUp(Widget sender, char keyCode, int modifiers) {\n\t\t\t}", "title": "" }, { "docid": "b2b2585be1f6bc10521ee0601cb08c23", "score": "0.47561124", "text": "public void onKeyUp(Widget sender, char keyCode, int modifiers) {\n\t\t\t}", "title": "" }, { "docid": "607c31b03943feea9c5c3c584193d0f4", "score": "0.4749531", "text": "public void myCallBackOnPressedKeyBoard(KeyCode e);", "title": "" }, { "docid": "614933db0d1d7dc4be840d5b44bde8fe", "score": "0.47195095", "text": "String getInputEventTrigger();", "title": "" }, { "docid": "0f96af93482b252815846994ae81bbd8", "score": "0.47141188", "text": "@Override\n\t\t\tprotected void onEvent(AjaxRequestTarget target) {\n\t\t\t\tfinal Request request = RequestCycle.get().getRequest();\n\t\t\t\tfinal String jsKeycode = request.getRequestParameters()\n\t\t\t\t\t\t.getParameterValue(\"keycode\").toString(\"\");\n\n\t\t\t\tlambda.accept(jsKeycode, target);\n\t\t\t}", "title": "" }, { "docid": "9702fb534910ab87ade3ab9273eff6d6", "score": "0.4710552", "text": "public void keyTyped(KeyEvent e) {\n\t\n}", "title": "" }, { "docid": "e3f63d1f020e269bb106a37b98aa306e", "score": "0.47005257", "text": "public KeyHandler getKeyHandler() {\n\t\treturn keyControl;\n\t}", "title": "" }, { "docid": "200b5740df5340801b8c8d8bfb53e042", "score": "0.46982795", "text": "public interface KeyboardEvent extends KeyListener {\r\n void newCursorKeysIsAppMode(final boolean value);\r\n void newNumblockAppMode(boolean enabled);\r\n}", "title": "" }, { "docid": "0934755e7aafe4dcaa500d3c4c184067", "score": "0.46830782", "text": "public int getX() {\n return keyEvent;\n }", "title": "" }, { "docid": "68fd5520f0ad63168e22fab08fa6a4e8", "score": "0.4675826", "text": "public void keyTyped( KeyEvent e ) { }", "title": "" }, { "docid": "22110969605a9f8097cbe56268b20843", "score": "0.46553263", "text": "@DOMSupport(DomLevel.ZERO)\r\n\t@Property(name=\"onblur\")\r\n\tObject getOnBlur();", "title": "" }, { "docid": "a12b763e049ef7c0d1c8db4a5154b5bb", "score": "0.4654809", "text": "public interface OnLongKeyUpListener {\n void onLongItemKeyUp();\n}", "title": "" }, { "docid": "219ba8e09baa45c48e9dba6b9eada73f", "score": "0.46508077", "text": "private java.awt.TextField getUidTF() {\n\tif (ivjUidTF == null) {\n\t\ttry {\n\t\t\tivjUidTF = new java.awt.TextField();\n\t\t\tivjUidTF.setName(\"UidTF\");\n\t\t\tivjUidTF.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) { \n\t\t\t\t\ttry {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsetSocks(e);\n\t\t\t\t\t\t} catch (Exception exc) {\n\t\t\t\t\t\t\tdisplayError();\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t\t\t\thandleException(ivjExc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tivjUidTF.addTextListener(new java.awt.event.TextListener() { \n\t\t\t\tpublic void textValueChanged(java.awt.event.TextEvent e) { \n\t\t\t\t\ttry {\n\t\t\t\t\t\ttextChg();\n\t\t\t\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t\t\t\thandleException(ivjExc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjUidTF;\n}", "title": "" }, { "docid": "5c997161fa232399903b8c2d7105c999", "score": "0.4630928", "text": "@Override\n protected boolean onKeyEvent(KeyEvent event) {\n return handleKeyEvent(event);\n }", "title": "" }, { "docid": "4d1a79c0c5c139e47a4e7ce461c30d0d", "score": "0.46307924", "text": "public String getKey()\n {\n return m_DOMElement.getAttribute(IPSTmxDtdConstants.ATTR_TUID);\n }", "title": "" }, { "docid": "03ca7cbb7a017be8a9a929ee47a02ac2", "score": "0.46093038", "text": "public org.w3.x1999.xhtml.Script xgetOnfocus()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.w3.x1999.xhtml.Script target = null;\n target = (org.w3.x1999.xhtml.Script)get_store().find_attribute_user(ONFOCUS$38);\n return target;\n }\n }", "title": "" }, { "docid": "38fd340685f61c8a916765c2e3ab0feb", "score": "0.4604432", "text": "private void txtTotalPagoKeyTyped(java.awt.event.KeyEvent evt) {\n }", "title": "" }, { "docid": "c912bdd9df7c8cd9ec7f75266c022a12", "score": "0.45784196", "text": "public void keyTyped(KeyEvent event) {\n }", "title": "" }, { "docid": "cfdda2110560a21fd38db3d083cefdc4", "score": "0.4576702", "text": "public void keyTyped(KeyEvent e) {}", "title": "" }, { "docid": "cfdda2110560a21fd38db3d083cefdc4", "score": "0.4576702", "text": "public void keyTyped(KeyEvent e) {}", "title": "" }, { "docid": "a4fe6264ae5d274c209402b13883980c", "score": "0.45762792", "text": "@Override\n \tpublic boolean onKeyUp(int keyCode, KeyEvent event) {\n \t\tif (Configuration.controlType != Configuration.CONTROL_KEYBOARD) {\n \t\t\treturn false;\n \t\t}\n \t\t\n \t\tgame.keyUp(keyCode);\n \t\t\n \t\treturn true;\n \t}", "title": "" }, { "docid": "690640fe345353db67334b29dcb9c065", "score": "0.45731112", "text": "boolean getCtrlKey();", "title": "" }, { "docid": "05f6e768e0d1804eb9e4d88bb07f0b6a", "score": "0.45694467", "text": "public String getValue_txt_Text_AfterEnteringEmail(){\r\n\t\treturn txt_Text_AfterEnteringEmail.getAttribute(\"value\");\r\n\t}", "title": "" }, { "docid": "bb3e97d6a31a1529912be0cd33a7daa8", "score": "0.45662126", "text": "public static String getAttributeKey() {\n return ATTRIBUTE_KEY;\n }", "title": "" }, { "docid": "780b8e901da1f34fac3d1a60b69cbfee", "score": "0.4566094", "text": "public interface EditTextOnKeyImeInterface {\n\n /**\n * Set to be called in {@link com.github.omadahealth.typefaceview.TypefaceEditText#onKeyPreIme(int, KeyEvent)}\n * @param keyCode\n * @param event\n * @return\n */\n boolean onKeyPreIme(int keyCode, KeyEvent event);\n}", "title": "" }, { "docid": "739326869b39d66c3400007cac26532e", "score": "0.45635188", "text": "public void componentKeyUp(ComponentEvent event) {\n if (TextFieldMask.this.upperCase) {\n String text = (String) TextFieldMask.this.getValueWithMask();\n text = text.toUpperCase();\n TextFieldMask.this.setValue((D) text);\n }\n }", "title": "" }, { "docid": "3be48c5b7923ed25838130b6f46e59f3", "score": "0.45632595", "text": "@Override\n public void keyTyped(KeyEvent arg0) {\n chk();\n\n\n }", "title": "" }, { "docid": "3be48c5b7923ed25838130b6f46e59f3", "score": "0.45632595", "text": "@Override\n public void keyTyped(KeyEvent arg0) {\n chk();\n\n\n }", "title": "" }, { "docid": "3be48c5b7923ed25838130b6f46e59f3", "score": "0.45632595", "text": "@Override\n public void keyTyped(KeyEvent arg0) {\n chk();\n\n\n }", "title": "" }, { "docid": "3be48c5b7923ed25838130b6f46e59f3", "score": "0.45632595", "text": "@Override\n public void keyTyped(KeyEvent arg0) {\n chk();\n\n\n }", "title": "" }, { "docid": "3be48c5b7923ed25838130b6f46e59f3", "score": "0.45632595", "text": "@Override\n public void keyTyped(KeyEvent arg0) {\n chk();\n\n\n }", "title": "" }, { "docid": "3be48c5b7923ed25838130b6f46e59f3", "score": "0.45632595", "text": "@Override\n public void keyTyped(KeyEvent arg0) {\n chk();\n\n\n }", "title": "" }, { "docid": "3c8ee67c40abb2b43edc162f5b74208e", "score": "0.4554463", "text": "public boolean isSetOnmouseup()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ONMOUSEUP$20) != null;\n }\n }", "title": "" }, { "docid": "5e2d7f07eda745cdf46edb14273d2cc6", "score": "0.45453992", "text": "public String getInpusr() {\n return inpusr;\n }", "title": "" }, { "docid": "86358eaec6f122cf46a154de87bfed5d", "score": "0.45444316", "text": "public void xsetOnkeypress(org.w3.x1999.xhtml.Script onkeypress)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.w3.x1999.xhtml.Script target = null;\n target = (org.w3.x1999.xhtml.Script)get_store().find_attribute_user(ONKEYPRESS$28);\n if (target == null)\n {\n target = (org.w3.x1999.xhtml.Script)get_store().add_attribute_user(ONKEYPRESS$28);\n }\n target.set(onkeypress);\n }\n }", "title": "" }, { "docid": "bc03f57665cd9423656ff238465ed0d8", "score": "0.45343003", "text": "int getEventTypeValue();", "title": "" }, { "docid": "aabadc06e232fcbd543a3cf7a4f9a642", "score": "0.45339537", "text": "public java.lang.String getOnmousedown()\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(ONMOUSEDOWN$18);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "47269554b2396bdcb76214ef7ea4d2b9", "score": "0.45337796", "text": "public Object getOnmouseup() {\r\n\t\treturn getOnMouseUp();\r\n\t}", "title": "" }, { "docid": "6cc743c8ec6d417ea210a2f51cfa75cb", "score": "0.45313635", "text": "public void keyTyped(KeyEvent e) {\n\n }", "title": "" }, { "docid": "367f36451b97ff4c7d9966e540605cc3", "score": "0.4526847", "text": "@Override public boolean onKeyUp(int keyCode, KeyEvent event) { return mUnityPlayer.injectEvent(event); }", "title": "" }, { "docid": "367f36451b97ff4c7d9966e540605cc3", "score": "0.4526847", "text": "@Override public boolean onKeyUp(int keyCode, KeyEvent event) { return mUnityPlayer.injectEvent(event); }", "title": "" }, { "docid": "bbc9ee625030291bda0e95f27418bd29", "score": "0.45217627", "text": "public HTMLInputElement getElementBotonAgr() { return this.$element_BotonAgr; }", "title": "" }, { "docid": "2d8d9a6ad794b1f6e3c401a9c9caca09", "score": "0.4516454", "text": "private void onKeyPress(String event) {\n\t\tstatus = \"key \" + event + \" pressed\";\n\t\tBase.println(status);\n\t}", "title": "" }, { "docid": "14fc8b14e814dad371a3b010b217e3e8", "score": "0.45070124", "text": "public void keyReleased(KeyEvent event) {}", "title": "" }, { "docid": "7fb80ca2133b7bcf51f624ad1108fd8e", "score": "0.45055512", "text": "@Module.MethodReplace\n\tpublic int getKeyboardChar() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "b30b53d5c0773b95da1f5addb77f4288", "score": "0.44973433", "text": "public void myCallBackOnReleaseKeyBoard(KeyCode e);", "title": "" }, { "docid": "46f55682b22043fe456bbb8a13c2d407", "score": "0.4491408", "text": "public void keyReleased(KeyEvent e) { }", "title": "" }, { "docid": "f0e72f792898c808aba8ed22981e1498", "score": "0.44886512", "text": "public int getKeyCode()\n {\n return keyCode;\n }", "title": "" }, { "docid": "bbc727f72ee5e521bb36546333883689", "score": "0.4484092", "text": "protected String getKeyAttributeName() {\n return \"key\";\n }", "title": "" }, { "docid": "6ed6b46d7f4c428d94735674f3e24c13", "score": "0.4476899", "text": "public void \t\n keyTyped(KeyEvent e) {}", "title": "" }, { "docid": "30d4df47be5c2f501754d946855d6033", "score": "0.44684127", "text": "@Override\r\n public void keyTyped(KeyEvent e) {\n\r\n }", "title": "" }, { "docid": "30d4df47be5c2f501754d946855d6033", "score": "0.44684127", "text": "@Override\r\n public void keyTyped(KeyEvent e) {\n\r\n }", "title": "" }, { "docid": "30d4df47be5c2f501754d946855d6033", "score": "0.44684127", "text": "@Override\r\n public void keyTyped(KeyEvent e) {\n\r\n }", "title": "" }, { "docid": "30d4df47be5c2f501754d946855d6033", "score": "0.44684127", "text": "@Override\r\n public void keyTyped(KeyEvent e) {\n\r\n }", "title": "" }, { "docid": "a49c0745bb4904fa1d1c5b639447a30f", "score": "0.4465028", "text": "public KeyboardHandler getKeyboardHandler() {\n return kh;\n }", "title": "" }, { "docid": "df5e69c218ba3ba8675a109cdd4b86fc", "score": "0.4462905", "text": "public java.lang.String getOnmousemove()\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(ONMOUSEMOVE$24);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "da979ea3ec76215731e472e7dc63030a", "score": "0.44567466", "text": "@Override\n\tpublic boolean onKeyUp(int keyCode, KeyEvent event) {\n\t\treturn super.onKeyUp(keyCode, event);\n\t}", "title": "" }, { "docid": "29877014b8091ccea30741ba01ea43e2", "score": "0.44466707", "text": "String getEventName();", "title": "" }, { "docid": "29877014b8091ccea30741ba01ea43e2", "score": "0.44466707", "text": "String getEventName();", "title": "" }, { "docid": "faf6039a26fc48310f1842a2da8f711b", "score": "0.44326255", "text": "public void keyPressed(KeyEvent Event){\n }", "title": "" } ]
a035cee533fc3e49a1dde7aa7715e0a1
This function get string and split it by Monom pattern, and set Monom params. This function is called only after its pass the validateFormat function
[ { "docid": "5e602ec188c657072fa818c536265ded", "score": "0.56844723", "text": "private void splitMonomByString(String s) {\n\t\tif (s.contains(\"x^\")) {\n\t\t\tString[] splittedStr = s.split(\"x\\\\^\");\n\t\t\tthis.set_coefficient(Double.parseDouble(handleSignOfNumber(splittedStr[0])));\n\t\t\tthis.set_power(Integer.parseInt(splittedStr[1]));\n\t\t} else if (s.contains(\"x\")) {\n\t\t\tfinal String splittedStr[] = s.split(\"x\");\n\t\t\tif (s.equals(\"x\"))\n\t\t\t\tthis.set_coefficient(1.0);\n\t\t\telse\n\t\t\t\tthis.set_coefficient(Double.parseDouble(handleSignOfNumber(splittedStr[0])));\n\t\t\tthis.set_power(1);\n\t\t} else {\n\t\t\tthis.set_coefficient(Double.parseDouble(handleSignOfNumber(s)));\n\t\t\tthis.set_power(0);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "b679f2f406893617a44abee1cfd4d1b5", "score": "0.5940088", "text": "public Monom(String s) {\n\t\tif (s == null)\n\t\t\tthrow new ArithmeticException(\"String cannot be null\");\n\t\ts = s.replaceAll(\" \",\"\");\n\t\t// need to check if comes invalid string (by regex)\n\n\t\tif (!validateFormat(s) || s.isEmpty()) {\n\t\t\tthrow new ArithmeticException(\n\t\t\t\t\t\"Invalid format for Monom . Could created by instance of Monom Class or Polynom Class\");\n\t\t}\n\t\tsplitMonomByString(s);\n\t}", "title": "" }, { "docid": "7a94f96de84f00b1095a79188ad52367", "score": "0.5651814", "text": "private void parseOnePattern(String str) {\n\n\n String routeNumber = \"\";\n Pattern checkRegex = Pattern.compile(\"N[A-Z|0-9]{1,3}-\");\n Matcher regexMatcher = checkRegex.matcher(str);\n\n while (regexMatcher.find()) {\n\n routeNumber = regexMatcher.group().substring(1, regexMatcher.group().length() - 1);\n\n }\n\n String patternName = \"\";\n Pattern checkRegex2 = Pattern.compile(\"[N|S|E|W]B[A-Z|0-9]{1,6}|[N|S|E|W][A-Z|0-9]-[A-Z|0-9]*|[N|S|E|W][A-Z|0-9]*;\");\n Matcher regexMatcher2 = checkRegex2.matcher(str);\n\n while (regexMatcher2.find()) {\n\n if (regexMatcher2.group().contains(\";\")) {\n patternName = regexMatcher2.group().substring(0, regexMatcher2.group().length() - 1);\n } else\n\n patternName = regexMatcher2.group();\n }\n\n LatLon latLon;\n List<LatLon> listoflatlon = new ArrayList<>();\n Pattern checkRegex3 = Pattern.compile(\"-122.[0-9]{3,6}|-123.[0-9]{3,6}|-121.[0-9]{3,6}|-124.[0-9]{3,6}\");\n Matcher regexMatcher3 = checkRegex3.matcher(str);\n\n Pattern checkRegex4 = Pattern.compile(\"49.[0-9]{3,6}|48.[0-9]{3,6}|50.[0-9]{3,6}\");\n Matcher regexMatcher4 = checkRegex4.matcher(str);\n\n\n while (regexMatcher3.find() && regexMatcher4.find()) {\n\n Double lat ;\n Double lon;\n\n lat = Double.parseDouble(regexMatcher4.group());\n lon = Double.parseDouble(regexMatcher3.group());\n\n latLon = new LatLon(lat, lon);\n listoflatlon.add(latLon);\n\n }\n if(routeNumber.isEmpty()&& patternName.isEmpty() )\n {\n\n }else\n storeRouteMap(routeNumber, patternName, listoflatlon);\n }", "title": "" }, { "docid": "2343cab0cfb1103647424429efbbc2a3", "score": "0.54591334", "text": "public String process(String formattedString);", "title": "" }, { "docid": "baa42e5553d84cae7963da11a6d236c8", "score": "0.5290837", "text": "@Override\n public void fromString(String match) throws IllegalArgumentException {\n if (match.equals(\"\") || match.equalsIgnoreCase(\"any\")\n || match.equalsIgnoreCase(\"all\") || match.equals(\"[]\")) {\n match = \"OFMatch[]\";\n }\n String[] tokens = match.split(\"[\\\\[,\\\\]]\");\n String[] values;\n int initArg = 0;\n if (tokens[0].equals(\"OFMatch\")) {\n initArg = 1;\n }\n this.wildcards = OFPFW_ALL;\n int i;\n for (i = initArg; i < tokens.length; i++) {\n values = tokens[i].split(\"=\");\n if (values.length != 2) {\n throw new IllegalArgumentException(\"Token \" + tokens[i]\n + \" does not have form 'key=value' parsing \" + match);\n }\n values[0] = values[0].toLowerCase(); // try to make this case insens\n if (values[0].equals(STR_IN_PORT) || values[0].equals(\"input_port\")) {\n this.inputPort = U16.t(Integer.valueOf(values[1]));\n inputPortState = MatchFieldState.MATCH_FIELD_ONLY;\n match_len += 6;\n } else if (values[0].equals(STR_DL_DST)\n || values[0].equals(\"eth_dst\")) {\n this.dataLayerDestination = HexEncode\n .bytesFromHexString(values[1]);\n dlDestState = MatchFieldState.MATCH_FIELD_ONLY;\n match_len += 10;\n } else if (values[0].equals(STR_DL_SRC)\n || values[0].equals(\"eth_src\")) {\n this.dataLayerSource = HexEncode.bytesFromHexString(values[1]);\n dlSourceState = MatchFieldState.MATCH_FIELD_ONLY;\n match_len += 10;\n this.wildcards &= ~OFPFW_DL_SRC;\n } else if (values[0].equals(STR_DL_TYPE)\n || values[0].equals(\"eth_type\")) {\n if (values[1].startsWith(\"0x\")) {\n this.dataLayerType = U16.t(Integer.valueOf(values[1]\n .replaceFirst(\"0x\", \"\"), 16));\n } else {\n\n this.dataLayerType = U16.t(Integer.valueOf(values[1]));\n }\n ethTypeState = MatchFieldState.MATCH_FIELD_ONLY;\n match_len += 6;\n } else if (values[0].equals(STR_DL_VLAN)) {\n this.dataLayerVirtualLan = U16.t(Integer.valueOf(values[1]));\n this.dlVlanIDState = MatchFieldState.MATCH_FIELD_ONLY;\n // the variable dlVlanIDState is not really used as a flag\n // for serializing and deserializing. Rather it is used as a\n // flag\n // to check if the vlan id is being set so that we can set the\n // dlVlanTCIState appropriately.\n if (this.dlVlanPCPState != MatchFieldState.MATCH_ABSENT) {\n this.dlVlanTCIState = MatchFieldState.MATCH_FIELD_ONLY;\n match_len -= 2;\n } else {\n this.dlVlanTCIState = MatchFieldState.MATCH_FIELD_WITH_MASK;\n this.dataLayerVirtualLanTCIMask = 0x1fff;\n match_len += 8;\n }\n this.wildcards &= ~OFPFW_DL_VLAN;\n } else if (values[0].equals(STR_DL_VLAN_PCP)) {\n this.dataLayerVirtualLanPriorityCodePoint = U8.t(Short\n .valueOf(values[1]));\n this.dlVlanPCPState = MatchFieldState.MATCH_FIELD_ONLY;\n // the variable dlVlanPCPState is not really used as a flag\n // for serializing and deserializing. Rather it is used as a\n // flag\n // to check if the vlan pcp is being set so that we can set the\n // dlVlanTCIState appropriately.\n if (this.dlVlanIDState != MatchFieldState.MATCH_ABSENT) {\n this.dlVlanTCIState = MatchFieldState.MATCH_FIELD_ONLY;\n match_len -= 2;\n } else {\n this.dlVlanTCIState = MatchFieldState.MATCH_FIELD_WITH_MASK;\n this.dataLayerVirtualLanTCIMask = 0xf000;\n match_len += 8;\n }\n this.wildcards &= ~OFPFW_DL_VLAN_PCP;\n } else if (values[0].equals(STR_NW_DST)\n || values[0].equals(\"ip_dst\")) {\n try {\n InetAddress address = null;\n InetAddress mask = null;\n if (values[1].contains(\"/\")) {\n String addressString[] = values[1].split(\"/\");\n address = InetAddress.getByName(addressString[0]);\n int masklen = Integer.valueOf(addressString[1]);\n mask = NetUtils.getInetNetworkMask(masklen, address instanceof Inet6Address);\n } else {\n address = InetAddress.getByName(values[1]);\n }\n this.setNetworkDestination(address, mask);\n } catch (UnknownHostException e) {\n logger.error(\"\", e);\n }\n } else if (values[0].equals(STR_NW_SRC)\n || values[0].equals(\"ip_src\")) {\n try {\n InetAddress address = null;\n InetAddress mask = null;\n if (values[1].contains(\"/\")) {\n String addressString[] = values[1].split(\"/\");\n address = InetAddress.getByName(addressString[0]);\n int masklen = Integer.valueOf(addressString[1]);\n mask = NetUtils.getInetNetworkMask(masklen, address instanceof Inet6Address);\n } else {\n address = InetAddress.getByName(values[1]);\n }\n this.setNetworkSource(address, mask);\n } catch (UnknownHostException e) {\n logger.error(\"\", e);\n }\n } else if (values[0].equals(STR_NW_PROTO)) {\n this.networkProtocol = U8.t(Short.valueOf(values[1]));\n if (!(this.networkProtocol == 0)) {\n /*\n * if user selects proto 0, don't use it\n */\n nwProtoState = MatchFieldState.MATCH_FIELD_ONLY;\n match_len += 5;\n }\n } else if (values[0].equals(STR_NW_TOS)) {\n this.networkTypeOfService = U8.t(Short.valueOf(values[1]));\n nwTosState = MatchFieldState.MATCH_FIELD_ONLY;\n match_len += 5;\n } else if (values[0].equals(STR_TP_DST)) {\n this.transportDestination = U16.t(Integer.valueOf(values[1]));\n tpDstState = MatchFieldState.MATCH_FIELD_ONLY;\n match_len += 6;\n } else if (values[0].equals(STR_TP_SRC)) {\n this.transportSource = U16.t(Integer.valueOf(values[1]));\n tpSrcState = MatchFieldState.MATCH_FIELD_ONLY;\n match_len += 6;\n } else {\n throw new IllegalArgumentException(\"unknown token \" + tokens[i]\n + \" parsing \" + match);\n }\n }\n\n /*\n * In a V6 extension message action list should be preceded by a padding\n * of 0 to 7 bytes based upon following formula.\n */\n\n pad_size = (short) (((match_len + 7) / 8) * 8 - match_len);\n\n }", "title": "" }, { "docid": "ec1558faa5185b19d7fae5928de053c2", "score": "0.52566665", "text": "@Test\r\n public void createFrom_validInputWithTwoDifferentFieldsSeparator_createsEntity() throws Exception {\r\n String inputPattern = \"%a - %b %c _-^%d [sarasa]%e\";\r\n\r\n Pattern pattern = patternService.createFrom(inputPattern);\r\n assertNotNull(\"pattern mustn't be null.\", pattern);\r\n List<String> fieldsSeparators = pattern.getFieldsSeparators();\r\n assertNotNull(\"List of fields separators musn't be null.\", fieldsSeparators);\r\n assertEquals(4, fieldsSeparators.size());\r\n\r\n assertEquals(\" - \", fieldsSeparators.get(0));\r\n assertEquals(\" \", fieldsSeparators.get(1));\r\n assertEquals(\" _-^\", fieldsSeparators.get(2));\r\n assertEquals(\" [sarasa]\", fieldsSeparators.get(3));\r\n\r\n\r\n List<String> patternsName = pattern.getPatternsName();\r\n assertNotNull(\"patternsName mustn't be null.\", patternsName);\r\n assertEquals(5, patternsName.size());\r\n\r\n for (String eachPatternName : patternsName) {\r\n assertEquals(2, eachPatternName.length());\r\n }\r\n }", "title": "" }, { "docid": "efcba7f28e34d1b6af22206cbd02579a", "score": "0.52421296", "text": "private void parsePattern(@NotNull Network net, String @NotNull [] tokens) {\n String id = tokens[0];\n Pattern pattern;\n if (net.getPatterns().size() == 0) {\n pattern = new Pattern();\n pattern.setId(id);\n net.addPattern(id, pattern);\n\n } else {\n pattern = net.getPattern(id);\n\n if (pattern == null) {\n pattern = new Pattern();\n pattern.setId(id);\n net.addPattern(id, pattern);\n }\n }\n\n for (int i = 1; i < tokens.length; i++) {\n pattern.addMultipliers(Double.parseDouble(tokens[i]));\n }\n }", "title": "" }, { "docid": "5d9259acc0af1100b6ceb2efa1f0e823", "score": "0.52188486", "text": "private void splitStrings() {\n\n patternTab = pattern.split(\"\\\\.\");\n textTab = text.split(\"\\\\.\");\n }", "title": "" }, { "docid": "3716eff7065e572797f508284698af7d", "score": "0.51986927", "text": "@Override\n public void parseContent(String content) {\n int offie = content.indexOf(\"\\n\");\n int accumulatedOffset = 0;\n while (offie > 0) {\n String paramString = content.substring(0, offie);\n String paramDetails[] = paramString.split(\"=\", 2);\n // do not interpret the DWR script or method as parameters to be scanned\n // take care to handle the case where a single POST request contains multiple DWR calls\n // (c0, c1, c2, etc.)\n if ((!patternIgnoreScriptName.matcher(paramDetails[0]).matches())\n && (!patternIgnoreMethodName.matcher(paramDetails[0]).matches())\n && paramDetails.length == 2) {\n if (paramDetails[1] == null) paramDetails[1] = \"\";\n // if the parameter value has one of the following patterns, ignore it.\n // Array:[<<some possible stuff>>]\n // Object_Object:{<<some possible stuff>>}\n if (!patternIgnoreArray.matcher(paramDetails[1]).matches()\n && !patternIgnoreObject.matcher(paramDetails[1]).matches()) {\n\n int valueOffset = 0;\n String paramValue = paramDetails[1];\n // if the parameter value has one of the following formats, then adjust the\n // value offset, so that the \"type\" of the value is not corrupted.\n // number:<<some number>>\n // string:<<some string>>\n // boolean:<<true or false>>\n // null:null\n\n if (patternNumberValue.matcher(paramDetails[1]).matches()\n || patternStringValue.matcher(paramDetails[1]).matches()\n || patternBooleanValue.matcher(paramDetails[1]).matches()\n || patternNullValue.matcher(paramDetails[1]).matches()) {\n // the value has a type built in.\n valueOffset = paramDetails[1].indexOf(\":\") + 1;\n paramValue = paramDetails[1].substring(valueOffset);\n }\n\n int beginOffset =\n accumulatedOffset + paramDetails[0].length() + 1 + valueOffset;\n int endOffset = accumulatedOffset + offie;\n // System.out.println(\"Adding parameter [\"+paramDetails[0]+\"]=[\"+paramValue+\"],\n // value offset1:\" + beginOffset+ \", value offset2:\" + endOffset);\n addParameter(paramDetails[0], beginOffset, endOffset, false, paramValue);\n }\n }\n accumulatedOffset += (1 + offie); // cater for the \\n separator as well.\n content = content.substring(offie + 1);\n offie = content.indexOf(\"\\n\");\n }\n }", "title": "" }, { "docid": "6325fb5e3c04be4b8cc99512bd743812", "score": "0.5186906", "text": "private void parseMediaTypeString(String str)\n\tthrows IllegalArgumentException\n {\n\tint p1 = str.indexOf('/');\n\tif (p1 > 0 && p1 < str.length() - 1) {\n\t type = str.substring(0, p1).toLowerCase();\n\t int p2 = str.indexOf(';');\n\t if (p2 > p1 + 1) {\n\t\tsubType = str.substring(p1 + 1, p2).trim().toLowerCase();\n\t\tparseParameters(str.substring(p2 + 1));\n\t }\n\t else {\n\t\tsubType = str.substring(p1 + 1).trim().toLowerCase();\n\t }\n\t}\n\tif (type == null && subType == null) {\n\t throw new IllegalArgumentException(\"Invalid media type format: \" + str);\n\t}\n }", "title": "" }, { "docid": "1693b2ad8514b88a10fd2431b81e5fdc", "score": "0.5108538", "text": "private static Building parseBuilding(String input){\n\t\tString[] p = input.split(\";\");\n\t\t// Construct a new building out of the split parameters\n\t\treturn new Building(p[0], p[1], p[2], p[3], p[4],\n\t\t\t\t\t\t\tp[5] p[6]);\n\t\t\n\t}", "title": "" }, { "docid": "5518fd2da031ffe4729c217818a187bf", "score": "0.5096353", "text": "public void setData(String s) {\n String dataFormat = \"[0-9]{2}/[0-9]{2}/[0-9]{4}\";\n Scanner str = new Scanner(System.in);\n Pattern p = Pattern.compile(dataFormat);\n do {\n Matcher m = p.matcher(s);\n boolean dateFlag = m.matches();\n if (dateFlag) break;\n System.out.println(\"Wrong data format,Please try again:\");\n s = str.nextLine();\n } while (true);\n appointmentData = s;\n }", "title": "" }, { "docid": "c76e27d5117fe616502fcfb865127382", "score": "0.50924295", "text": "protected abstract String stringParse();", "title": "" }, { "docid": "c56efa97013882acd86f828a5b82b194", "score": "0.5092132", "text": "public URITemplate( String formatString ) {\n \n this.fieldHandlers= new HashMap<>();\n \n this.fieldHandlers.put(\"subsec\",new SubsecFieldHandler());\n this.fieldHandlers.put(\"hrinterval\",new HrintervalFieldHandler());\n this.fieldHandlers.put(\"periodic\",new PeriodicFieldHandler());\n this.fieldHandlers.put(\"enum\",new EnumFieldHandler());\n this.fieldHandlers.put(\"x\",new IgnoreFieldHandler());\n this.fieldHandlers.put(\"v\",new VersionFieldHandler());\n\n logger.log(Level.FINE, \"new TimeParser({0},...)\", formatString);\n \n int[] startTime = new int[NUM_TIME_DIGITS];\n startTime[0]= MIN_VALID_YEAR;\n startTime[1]= 1;\n startTime[2]= 1;\n \n stopTimeDigit = AFTERSTOP_INIT;\n \n int[] stopTime = new int[NUM_TIME_DIGITS];\n stopTime[0]= MAX_VALID_YEAR;\n stopTime[1]= 1;\n stopTime[2]= 1;\n\n //result.fieldHandlers = fieldHandlers;\n \n this.fieldHandlersById= new HashMap();\n\n formatString= makeCanonical(formatString);\n //this.formatString = formatString;\n \n String[] ss = formatString.split(\"\\\\$\");\n fc = new String[ss.length];\n qualifiers= new String[ss.length];\n \n String[] delim = new String[ss.length + 1];\n\n ndigits = ss.length;\n\n StringBuilder regex1 = new StringBuilder(100);\n regex1.append(ss[0].replaceAll(\"\\\\+\",\"\\\\\\\\+\"));//TODO: I thought we did this already.\n\n lengths = new int[ndigits];\n for (int i = 0; i < lengths.length; i++) {\n lengths[i] = -1; // -1 indicates not known, but we'll figure out as many as we can.\n }\n \n startShift= null;\n stopShift= null;\n \n this.qualifiersMaps= new HashMap[ndigits];\n \n this.phasestart= null;\n \n delim[0] = ss[0];\n for (int i = 1; i < ndigits; i++) {\n int pp = 0;\n String ssi= ss[i];\n while ( ssi.length()>pp && ( Character.isDigit(ssi.charAt(pp)) || ssi.charAt(pp) == '-') ) {\n pp+=1;\n }\n if (pp > 0) { // Note length ($5Y) is not supported in http://tsds.org/uri_templates.\n lengths[i] = Integer.parseInt(ssi.substring(0, pp));\n } else {\n lengths[i] = 0; // determine later by field type\n }\n\n ssi= makeQualifiersCanonical(ssi);\n \n logger.log( Level.FINE, \"ssi={0}\", ss[i] );\n if ( ssi.charAt(pp)!='(' ) {\n fc[i] = ssi.substring(pp, pp + 1);\n delim[i] = ssi.substring(pp + 1);\n } else if ( ssi.charAt(pp) == '(') {\n int endIndex = ssi.indexOf(')', pp);\n if ( endIndex==-1 ) {\n throw new IllegalArgumentException(\"opening paren but no closing paren in \\\"\" + ssi+ \"\\\"\");\n }\n int semi= ssi.indexOf(\";\", pp );\n if ( semi != -1) {\n fc[i] = ssi.substring(pp + 1, semi );\n qualifiers[i]= ssi.substring( semi+1,endIndex );\n } else {\n fc[i] = ssi.substring(pp + 1, endIndex);\n }\n delim[i] = ssi.substring(endIndex + 1);\n }\n }\n\n handlers = new int[ndigits];\n offsets = new int[ndigits];\n\n int pos = 0;\n offsets[0] = pos;\n\n lsd = -1;\n int lsdMult= 1;\n//TODO: We want to add $Y_1XX/$j/WAV_$Y$jT$(H,span=5)$M$S_REC_V01.PKT\n context= new int[NUM_TIME_DIGITS];\n System.arraycopy( startTime, 0, context, 0, NUM_TIME_DIGITS );\n externalContext= NUM_TIME_DIGITS; // this will lower and will typically be 0.\n\n timeWidth = new int[NUM_TIME_DIGITS];\n\n boolean haveHour= false;\n \n for (int i = 1; i < ndigits; i++) {\n if (pos != -1) {\n pos += delim[i - 1].length();\n }\n int handler = 9999;\n\n for (int j = 0; j < valid_formatCodes.length; j++) {\n if (valid_formatCodes[j].equals(fc[i])) {\n handler = j;\n break;\n }\n }\n\n if ( fc[i].equals(\"H\") ) {\n haveHour= true;\n } else if ( fc[i].equals(\"p\") ) {\n if ( !haveHour ) {\n throw new IllegalArgumentException(\"$H must preceed $p\");\n }\n }\n \n if (handler == 9999) {\n if ( !fieldHandlers.containsKey(fc[i]) ) {\n throw new IllegalArgumentException(\"bad format code: \\\"\" + fc[i] + \"\\\" in \\\"\"+ formatString + \"\\\"\");\n } else {\n handler = 100;\n handlers[i] = 100;\n offsets[i] = pos;\n if (lengths[i] < 1 || pos == -1) { // 0->indetermined as well, allows user to force indeterminate\n pos = -1;\n lengths[i] = -1;\n } else {\n pos += lengths[i];\n }\n FieldHandler fh= fieldHandlers.get(fc[i]);\n String args= qualifiers[i];\n Map<String,String> argv= new HashMap();\n if ( args!=null ) {\n String[] ss2= args.split(\";\",-2);\n for (String ss21 : ss2) {\n int i3 = ss21.indexOf(\"=\");\n if (i3==-1) {\n argv.put(ss21.trim(), \"\");\n } else {\n argv.put(ss21.substring(0, i3).trim(), ss21.substring(i3+1).trim());\n }\n }\n }\n String errm= fh.configure(argv);\n if ( errm!=null ) {\n throw new IllegalArgumentException(errm);\n }\n \n String id= getArg( argv, \"id\", null );\n if ( id!=null ) {\n fieldHandlersById.put( id,fh );\n }\n\n }\n } else {\n handlers[i] = handler;\n if (lengths[i] == 0) {\n lengths[i] = formatCode_lengths[handler];\n }\n offsets[i] = pos;\n if (lengths[i] < 1 || pos == -1) {\n pos = -1;\n //lengths[i] = -1; // bugfix: I wonder where this was used. removed to support \"$-1Y $-1m $-1d $H$M\"\n } else {\n pos += lengths[i];\n }\n }\n\n int span=1;\n\n if ( qualifiers[i]!=null ) {\n String[] ss2= qualifiers[i].split(\";\");\n qualifiersMaps[i]= new HashMap<>();\n for ( String ss21 : ss2 ) { //TODO: handle end before shift.\n boolean okay=false;\n String qual = ss21.trim();\n if ( qual.equals(\"startTimeOnly\") ) {\n startTimeOnly= fc[i].charAt(0);\n okay= true;\n }\n int idx= qual.indexOf(\"=\");\n if ( !okay && idx>-1 ) {\n String name= qual.substring(0,idx).trim();\n String val= qual.substring(idx+1).trim();\n qualifiersMaps[i].put(name, val);\n //FieldHandler fh= (FieldHandler) fieldHandlers.get(name);\n //fh.parse( val, context, timeWidth );\n switch (name) {\n case \"Y\":\n context[YEAR]= Integer.parseInt(val);\n externalContext= Math.min( externalContext, 0 );\n break;\n case \"m\":\n context[MONTH]= Integer.parseInt(val);\n externalContext= Math.min( externalContext, 1 );\n break;\n case \"d\":\n context[DAY]= Integer.parseInt(val);\n externalContext= Math.min( externalContext, 2 );\n break;\n case \"j\":\n context[MONTH]= 1;\n context[DAY]= Integer.parseInt(val);\n externalContext= Math.min( externalContext, 1 );\n break;\n case \"H\":\n context[HOUR]= Integer.parseInt(val);\n externalContext= Math.min( externalContext, 3 );\n break;\n case \"M\":\n context[MINUTE]= Integer.parseInt(val);\n externalContext= Math.min( externalContext, 4 );\n break;\n case \"S\":\n context[SECOND]= Integer.parseInt(val);\n externalContext= Math.min( externalContext, 5 );\n break;\n case \"cadence\":\n span= Integer.parseInt(val);\n handleWidth(fc[i],val);\n timeWidthIsExplicit= true;\n break;\n case \"span\":\n span= Integer.parseInt(val); // not part of uri_templates\n handleWidth(fc[i],val);\n timeWidthIsExplicit= true;\n break;\n case \"delta\":\n span= Integer.parseInt(val); // see http://tsds.org/uri_templates\n handleWidth(fc[i],val);\n timeWidthIsExplicit= true;\n break;\n case \"resolution\":\n span= Integer.parseInt(val);\n handleWidth(fc[i],val);\n timeWidthIsExplicit= true;\n break;\n case \"period\":\n if ( val.startsWith(\"P\") ) {\n try {\n int[] r= TimeUtil.parseISO8601Duration(val);\n for ( int j=0; j<NUM_TIME_DIGITS; j++ ) {\n if (r[j]>0 ) {\n lsd= j;\n lsdMult= r[j];\n logger.log(Level.FINER, \"lsd is now {0}, width={1}\", new Object[]{lsd, lsdMult});\n break;\n }\n }\n } catch (ParseException ex) {\n logger.log(Level.SEVERE, null, ex);\n }\n } else {\n char code= val.charAt(val.length()-1);\n switch (code) {\n case 'Y':\n lsd=0;\n break;\n case 'm':\n lsd=1;\n break;\n case 'd':\n lsd=2;\n break;\n case 'j':\n lsd=2;\n break;\n case 'H':\n lsd=3;\n break;\n case 'M':\n lsd=4;\n break;\n case 'S':\n lsd=5;\n break;\n default:\n break;\n }\n lsdMult= Integer.parseInt(val.substring(0,val.length()-1) );\n logger.log(Level.FINER, \"lsd is now {0}, width={1}\", new Object[]{lsd, lsdMult});\n } break;\n case \"id\":\n break; //TODO: orbit plug in handler...\n case \"places\":\n break; //TODO: this all needs to be redone...\n case \"phasestart\":\n try {\n phasestart= TimeUtil.isoTimeToArray(val);\n } catch (IllegalArgumentException ex) {\n logger.log(Level.SEVERE, null, ex);\n }\n break;\n case \"shift\":\n //TODO: handle end before shift.\n if ( val.length()==0 ) throw new IllegalArgumentException(\"shift is empty\");\n char possibleUnit= val.charAt(val.length()-1);\n int digit;\n if ( Character.isAlphabetic(possibleUnit) ) {\n digit= digitForCode(possibleUnit);\n val= val.substring(0,val.length()-1);\n } else {\n digit= digitForCode(fc[i].charAt(0));\n }\n if ( i<stopTimeDigit ) {\n startShift=maybeInitialize(startShift);\n startShift[digit]= Integer.parseInt(val);\n } else {\n stopShift=maybeInitialize(stopShift);\n stopShift[digit]= Integer.parseInt(val);\n }\n break;\n case \"pad\":\n case \"fmt\":\n case \"case\":\n if ( name.equals(\"pad\") && val.equals(\"none\") ) {\n lengths[i]= -1;\n pos= -1;\n }\n if ( qualifiersMaps[i]==null ) qualifiersMaps[i]= new HashMap();\n qualifiersMaps[i].put(name,val);\n break;\n case \"end\":\n if ( stopTimeDigit==AFTERSTOP_INIT ) {\n startLsd= lsd;\n stopTimeDigit= i;\n } break;\n default:\n if ( !fieldHandlers.containsKey(fc[i]) ) {\n throw new IllegalArgumentException(\"unrecognized/unsupported field: \"+name + \" in \"+qual );\n } break;\n }\n okay= true;\n } else if ( !okay ) {\n String name= qual.trim();\n if ( name.equals(\"end\") ) {\n if ( stopTimeDigit==AFTERSTOP_INIT ) {\n startLsd= lsd;\n stopTimeDigit= i;\n }\n okay= true;\n }\n }\n if ( !okay && ( qual.equals(\"Y\") || qual.equals(\"m\") || qual.equals(\"d\") || qual.equals(\"j\") ||\n qual.equals(\"H\") || qual.equals(\"M\") || qual.equals(\"S\")) ) {\n throw new IllegalArgumentException( String.format( \"%s must be assigned an integer value (e.g. %s=1) in %s\", qual, qual, ss[i] ) );\n }\n if ( !okay ) {\n if ( !fieldHandlers.containsKey(fc[i]) ) {\n logger.log(Level.WARNING, \"unrecognized/unsupported field:{0} in {1}\", new Object[]{qual, ss[i]});\n //TODO: check plug-in handlers like orbit...\n //throw new IllegalArgumentException(\"unrecognized/unsupported field:\"+qual+ \" in \" +ss[i] );\n }\n }\n }\n } else {\n // http://sourceforge.net/p/autoplot/bugs/1506/\n if ( fc[i].length()==1 ) {\n char code= fc[i].charAt(0);\n int thisLsd= -1;\n switch (code) {\n case 'Y':\n thisLsd=0;\n break;\n case 'm':\n thisLsd=1;\n break;\n case 'd':\n thisLsd=2;\n break;\n case 'j':\n thisLsd=2;\n break;\n case 'H':\n thisLsd=3;\n break;\n case 'M':\n thisLsd=4;\n break;\n case 'S':\n thisLsd=5;\n break;\n default:\n break;\n }\n if ( thisLsd==lsd ) { // allow subsequent repeat fields to reset (T$y$(m,delta=4)/$x_T$y$m$d.DAT)\n lsdMult= 1;\n }\n }\n }\n\n if ( fc[i].length()==1 ) {\n switch ( fc[i].charAt(0) ) {\n case 'Y':\n externalContext= Math.min( externalContext, 0 );\n break;\n case 'm':\n externalContext= Math.min( externalContext, 1 );\n break;\n case 'd':\n externalContext= Math.min( externalContext, 2 );\n break;\n case 'j':\n externalContext= Math.min( externalContext, 1 );\n break;\n case 'H':\n externalContext= Math.min( externalContext, 3 );\n break;\n case 'M':\n externalContext= Math.min( externalContext, 4 );\n break;\n case 'S':\n externalContext= Math.min( externalContext, 5 );\n break; \n default:\n break;\n }\n }\n \n if (handler < 100) {\n if ( precision[handler] > lsd && lsdMult==1 ) { // omni2_h0_mrg1hr_$Y$(m,span=6)$d_v01.cdf. Essentially we ignore the $d.\n lsd = precision[handler];\n lsdMult= span;\n logger.log(Level.FINER, \"lsd is now {0}, width={1}\", new Object[]{lsd, lsdMult});\n }\n }\n\n String dots = \".........\";\n if (lengths[i] == -1) {\n regex1.append(\"(.*)\");\n } else {\n regex1.append(\"(\").append(dots.substring(0, lengths[i])).append(\")\");\n }\n regex1.append(delim[i].replaceAll(\"\\\\+\",\"\\\\\\\\+\"));\n\n }\n\n switch (lsd) { // see https://sourceforge.net/p/autoplot/bugs/1506/\n case 0:\n case 1:\n case 2:\n case 3:\n case 4:\n case 5:\n case 6:\n if ( !timeWidthIsExplicit ) {\n timeWidth[lsd] = lsdMult; \n }\n break;\n case -1:\n timeWidth[0]= 8000;\n break;\n case 100: /* do nothing */ break; //TODO: handler needs to report it's lsd, if it affects.\n }\n\n if ( logger.isLoggable(Level.FINE) ) {\n StringBuilder canonical= new StringBuilder( delim[0] );\n for (int i = 1; i < ndigits; i++) { \n canonical.append(\"$\");\n if ( qualifiers[i]==null ) {\n canonical.append(fc[i]); \n } else {\n canonical.append(\"(\").append(fc[i]).append(\";\").append(qualifiers[i]).append(\")\");\n }\n canonical.append(delim[i]); \n }\n logger.log( Level.FINE, \"Canonical: {0}\", canonical.toString());\n }\n \n // if the stop time is not in the spec, then both start and stop are shifted.\n if ( this.stopTimeDigit==AFTERSTOP_INIT ) {\n if ( this.startShift!=null ) {\n this.stopShift= this.startShift;\n }\n }\n \n this.delims = delim;\n this.regex = regex1.toString();\n\n }", "title": "" }, { "docid": "1df3f0a2b9b3fcca2cecd2a108dd8921", "score": "0.50745225", "text": "@Override\n public void setParameters(String params) throws RuntimeException { //update parameters by string values\n //split string by withe chars\n String[] aParams = params.split(\"\\\\s+\");\n try {\n pCrossover = Double.parseDouble(aParams[0]);\n } catch (Exception e) {\n }\n try {\n EXPAND = Double.valueOf(aParams[1]);\n } catch (Exception e) {\n }\n }", "title": "" }, { "docid": "83e7ba5ba6f47e1ac28a479bc25041e4", "score": "0.5068846", "text": "public EncodedStringValue[] split(String pattern) {\n String[] temp = getString().split(pattern);\n EncodedStringValue[] ret = new EncodedStringValue[temp.length];\n for (int i = 0; i < ret.length; ++i) {\n try {\n ret[i] = new EncodedStringValue(mCharacterSet,\n temp[i].getBytes());\n } catch (NullPointerException e) {\n // Can't arrive here\n return null;\n }\n }\n return ret;\n }", "title": "" }, { "docid": "64ae23e1eb3f63b565798a3889dc49be", "score": "0.5065659", "text": "public void setPattern(String conversionPattern)\n/* */ {\n/* 57 */ this.pattern = conversionPattern;\n/* */ }", "title": "" }, { "docid": "994e044d0b48895d1914f769301ffb0f", "score": "0.50650865", "text": "@Override\n\tpublic function initFromString(String s) \n\t{\n\t\treturn new Monom(s);\n\t}", "title": "" }, { "docid": "6a7cc63f86a5c0a71344719e61481b91", "score": "0.50586015", "text": "@Override\n public void process(String input, Emitter<Pair<String, String>> emitter) {\n String[] parts = StringUtils.split(input);\n emitter.emit(Pair.of(parts[0], parts[1]));\n }", "title": "" }, { "docid": "ed160d7eb535de8c530e7bc91b1b9032", "score": "0.5042374", "text": "public abstract void parse(Form form, String parametersString,\n CharacterSet characterSet, boolean decode, char separator);", "title": "" }, { "docid": "9a965bbb2e44f67e75b7aafdde70d592", "score": "0.503291", "text": "@Before\n public void initValidString() {\n }", "title": "" }, { "docid": "18c6954e08207baddc1f915f87fc7579", "score": "0.50063425", "text": "@Override\n\tpublic function initFromString(String s) {\n\t\treturn new Monom(s);\n\t}", "title": "" }, { "docid": "30366b866c4e63b3b6ff2f707190394c", "score": "0.49924675", "text": "private String[] parseMaterials(String input){\n input = input.toUpperCase();\n String[] split = input.split(\",\");\n return split;\n }", "title": "" }, { "docid": "22fe42a0e67b3e9807bc3c9c9921c617", "score": "0.49885798", "text": "public void oldFormatProcessField(String s) throws Exception\r\n {\r\n if (s.startsWith(MWP_FIELD_NAME))\r\n m_sMeasureWordPinyin =\r\n LanguageEntity_OldFormatLoader.getRHS(s,MWP_FIELD_NAME);\r\n else if (s.startsWith(MWC_FIELD_NAME))\r\n m_sMeasureWordChar =\r\n LanguageEntity_OldFormatLoader.getRHS(s,MWC_FIELD_NAME);\r\n else if (s.startsWith(MW_GE_FIELD_NAME))\r\n {\r\n m_sMeasureWordPinyin = \"ge4\";\r\n m_sMeasureWordChar = \"\\u4E2A\";\r\n }\r\n else if (s.startsWith(MW_SUO_FIELD_NAME))\r\n {\r\n m_sMeasureWordPinyin = \"suo3\";\r\n m_sMeasureWordChar = \"\\u6240\";\r\n }\r\n else if (s.startsWith(MW_TIAO_FIELD_NAME))\r\n {\r\n m_sMeasureWordPinyin = \"tiao2\";\r\n m_sMeasureWordChar = \"\\u6761\";\r\n }\r\n }", "title": "" }, { "docid": "92737dff0b21e81f1bed5042e0fb7e6b", "score": "0.4982955", "text": "private void parseParameters(String paramString) {\n\t\t\tif (paramString == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tString[] entries = paramString.split(\"\\\\&\");\n\n\t\t\tfor (String entry : entries) {\n\t\t\t\tString[] entrySplit = entry.split(\"=\");\n\t\t\t\tparams.put(entrySplit[0], entrySplit[1]);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "27a46f57e531799d7e4dd7da2bf5328f", "score": "0.49678928", "text": "private String[] splitTheStringIntoPart(String dateOfTheTask) {\n String[] ddmmyyyy = null;\n if (dateOfTheTask.contains(\"/\")) {\n ddmmyyyy = dateOfTheTask.split(\"(/)\");\n } else if (dateOfTheTask.contains(\".\")) {\n ddmmyyyy = dateOfTheTask.split(\"(\\\\.)\");\n } else if (dateOfTheTask.contains(\"-\")) {\n ddmmyyyy = dateOfTheTask.split(\"(\\\\-)\");\n }\n\n return ddmmyyyy;\n }", "title": "" }, { "docid": "88ce64e3bd20a005d1eae9c17842c44c", "score": "0.49677595", "text": "@Test\n\tpublic void test_defaultconstructor_case4(){\n\t\t\n\t\tList<String> in2 = new ArrayList<String>(); // for m1\n\t\tin2.add(\"||--h-h-2--3--2-s-|\");\n\t\tin2.add(\"||*------2----------0----------2-------2-------0-------|\");\n\t\tm3 = new MusicNoteProcess(in2);\n\t\t\n\t\t\n\t\tString expected = \"[Two_Bar_begin,1]+[Dash,2]+[Hammer,1]+[Dash,1]+[Hammer,1]+[Dash,1]+[One_digit,2]+[Dash,2]+[One_digit,3]+[Dash,2]+[One_digit,2]+[Dash,1]+[Slide,1]+[Dash,1]+[OneBar_end,1]+[End_music_line,1]+[Two_Bar_begin_lastline,1]+[Star_Begin,1]+[Dash,6]+[One_digit,2]+[Dash,10]+[One_digit,0]+[Dash,10]+[One_digit,2]+[Dash,7]+[One_digit,2]+[Dash,7]+[One_digit,0]+[Dash,7]+[OneBar_end_lastline,1]+[End_music_line,2]+[End_music_note,0]+\"\n;\n\t\tassertEquals(expected, m3.toString());\n\t}", "title": "" }, { "docid": "b57da71b780aacf2246b7af669bac4c4", "score": "0.4955786", "text": "private void decomposition(String deviceInfo)throws ParameterDecompositionException{\n char delimiter = '|';\n TextFileUtil parser = new TextFileUtil();\n this.manufacturer = StringUtil.Piece(deviceInfo, delimiter, 1);\n if((this.manufacturer == null) || (this.manufacturer.length() == 0)){\n \tthrow new ParameterDecompositionException(\"Bad Manufacturer value.\");\n }\n this.model = StringUtil.Piece(deviceInfo, delimiter, 2);\n if((this.model == null) || (this.model.length() == 0)){\n \tthrow new ParameterDecompositionException(\"Bad Model value.\");\n }\n this.modalityCode = StringUtil.Piece(deviceInfo, delimiter, 3);\n if((this.modalityCode == null) || (this.modalityCode.length() == 0)){\n \tthrow new ParameterDecompositionException(\"Bad Modality Code value.\");\n }\n try{\n String params = \"\";\n if((params = StringUtil.Piece(deviceInfo, delimiter, 4)) == null){\n this.dcmtotgaParameters = null; \n }\n else{\n this.dcmtotgaParameters = new Parameters(params);\n }\n }\n catch(NumberFormatException nfe){\n logger.error(this.getClass().getName()+\": Cannot parse parameters for ...\");\n logger.error(\"Mfg: \"+this.manufacturer);\n logger.error(\"Model: \"+this.model);\n throw new ParameterDecompositionException(nfe);\n } \n }", "title": "" }, { "docid": "12e38d9116bb9a60cb469a51a323a277", "score": "0.4938678", "text": "private void claimParser(String claim) {\n\t\tthis.parts = claim.split(\"\\\\t\");\n\t\tthis.subject = this.parts[0];\n\t\tthis.property = this.parts[1];\n\t\tthis.object = this.parts[2];\n\n\t}", "title": "" }, { "docid": "46173e4fea68b1d5483cd64c991ddcd7", "score": "0.49364102", "text": "void mo4492dm(String str);", "title": "" }, { "docid": "aaa2933ca7b9f11d7a05044e4a996e37", "score": "0.49342212", "text": "public function initFromString(String str){\n function fun = new Monom(str);\n return fun;\n }", "title": "" }, { "docid": "33e0693ed96485f658f629527e64df87", "score": "0.49234954", "text": "private void parseString(String playerInput){\n if(playerInput.startsWith(\"toolcard\" )){\n if(!canMove()){\n view.displayMessage(\"Not your turn.\");\n return;\n }\n String[] temp = playerInput.split(\" \");\n int toolCardID = Integer.parseInt(temp[1]);\n handleToolCard(toolCardID);\n }\n\n else if(playerInput.startsWith(\"dicemove\")){\n if(!canMove()){\n view.displayMessage(\"Not your turn.\");\n return;\n }\n parametersGetter = new ParameterGetterDie();\n message = new VCDieMessage(view.getPlayerID());\n parametersGetter.getParameters(view);\n view.notifyController(message);\n }\n\n else if(playerInput.startsWith(\"endturn\")){\n message = new VCEndTurnMessage(view.getPlayerID());\n view.notifyController(message);\n }\n\n else if(playerInput.startsWith(\"close\")){\n System.exit(0);\n }\n else if(playerInput.startsWith(\"show\")) {\n try {\n String[] temp = playerInput.split(\" \");\n String toShow = temp[1];\n toShow = toShow.trim();\n handleShowRequest(toShow);\n }\n catch(ArrayIndexOutOfBoundsException e){\n view.displayMessage(\"Input not valid\");\n }\n }\n else if(playerInput.equalsIgnoreCase(\"help\")){\n showFile(\"help\");\n }\n else {\n view.displayMessage(\"Input not valid\");\n }\n }", "title": "" }, { "docid": "50f84da47ac709f55bafed9108668583", "score": "0.4905679", "text": "private void parseParameters(String paramString) {\n\t\t\tString[] parameters = paramString.split(\"&\");\n\t\t\tfor (String parameter : parameters) {\n\t\t\t\tString parts[] = parameter.split(\"=\", 2);\n\t\t\t\tparams.put(parts[0], parts.length > 1 ? parts[1] : null);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "6a168a7ed15798dcfb9511ebf8847c57", "score": "0.4899606", "text": "Pattern getMessagePattern();", "title": "" }, { "docid": "71c0c9d929e77da85bb8cdb18d3f1680", "score": "0.4899538", "text": "public static void parseParameters(String params[]){\n\t\t\n\t}", "title": "" }, { "docid": "44b438b7080affd5bd1f74d9db3a0832", "score": "0.48901582", "text": "@Test\n\tpublic void test_defaultconstructor_case2(){\n\t\t\n\t\tList<String> in2 = new ArrayList<String>(); // for m2\n\t\tin2.add(\"||*h-----2s-----2p-----<2>--- --10-------*|||\");\n\t\tm2 = new MusicNoteProcess(in2);\n\t\t\n\t\t\n\t\tString expected = \"[Two_Bar_begin_lastline,1]+[Star_Begin,1]+[Hammer,1]+[Dash,5]+[One_digit,2]+[Slide,1]+[Dash,5]+[One_digit,2]+[Pull,1]+[Dash,5]+[Left_Half_Diamond,1]+[One_digit,2]+[Right_half_Diamond,1]+[Dash,3]+[Space,1]+[Dash,2]+[Two_digit,10]+[Dash,7]+[Star_End,1]+[Three_Bar_End,1]+[End_music_line,1]+[End_music_note,0]+\"\n;\n\t\tassertEquals(expected, m2.toString());\n\t}", "title": "" }, { "docid": "c0a1a719e38acf7314e82e8a4deccbc2", "score": "0.48896024", "text": "private static String returnLoParameters(int param, String line) {\n\n String regexsp = \".[A-Z]\\\\s([A-Z]*)(.*)\\\\s-([a-z])\\\\s([A-Z]*)(.{0,})\";\n Pattern pattern = Pattern.compile(regexsp);\n Matcher matcher = pattern.matcher(line);\n if(matcher.find()) {\n if(param == 1) return matcher.group(1);\n if(param == 2) return matcher.group(4);\n else return matcher.group(2) + matcher.group(5);\n }\n return null;\n }", "title": "" }, { "docid": "e762dd0078ce1fbabade3e617bb27507", "score": "0.4878012", "text": "private void init() {\n/* 162 */ List<Rule> rulesList = parsePattern();\n/* 163 */ this.mRules = rulesList.<Rule>toArray(new Rule[rulesList.size()]);\n/* */ \n/* 165 */ int len = 0;\n/* 166 */ for (int i = this.mRules.length; --i >= 0;) {\n/* 167 */ len += this.mRules[i].estimateLength();\n/* */ }\n/* */ \n/* 170 */ this.mMaxLengthEstimate = len;\n/* */ }", "title": "" }, { "docid": "5d0859495d76be6b338ce8efca264495", "score": "0.48493537", "text": "private void pattern3(String group) throws IOException {\n\r\n Pattern pattern = Pattern.compile(\"([\\\\d]?[\\\\d])+([\\\\d])\");\r\n Matcher buscar = pattern.matcher(group);\r\n if (buscar.matches()) {\r\n// System.out.println(\"cambiando\" + buscar.group(1) + \"con\" + buscar.group(2));\r\n est.actualizarEstado(Integer.parseInt(buscar.group(1)), Integer.parseInt(buscar.group(2)));\r\n }\r\n }", "title": "" }, { "docid": "53989d2cac239a64215364e834ed34e6", "score": "0.48487484", "text": "private static void TestRegex() {\n\t\tString str = \"����:20|����:19|����:21\";\r\n\t\tString [] strs = str.split(\"\\\\|\");\r\n\t\t\t\tfor(String tmp: strs){\r\n\t\t\t\t\tString [] strl = tmp.split(\":\");\r\n\t\t\t\t\tSystem.out.println(\"����: \"+strl[0]+\" ����: \"+strl[1]);\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e9cade8fb38dd77e247cd10eff8f13fa", "score": "0.4846628", "text": "protected List<Rule> parsePattern() {\n/* 182 */ DateFormatSymbols symbols = new DateFormatSymbols(this.mLocale);\n/* 183 */ List<Rule> rules = new ArrayList<>();\n/* */ \n/* 185 */ String[] ERAs = symbols.getEras();\n/* 186 */ String[] months = symbols.getMonths();\n/* 187 */ String[] shortMonths = symbols.getShortMonths();\n/* 188 */ String[] weekdays = symbols.getWeekdays();\n/* 189 */ String[] shortWeekdays = symbols.getShortWeekdays();\n/* 190 */ String[] AmPmStrings = symbols.getAmPmStrings();\n/* */ \n/* 192 */ int length = this.mPattern.length();\n/* 193 */ int[] indexRef = new int[1];\n/* */ \n/* 195 */ for (int i = 0; i < length; i++) {\n/* 196 */ Rule rule; String sub; indexRef[0] = i;\n/* 197 */ String token = parseToken(this.mPattern, indexRef);\n/* 198 */ i = indexRef[0];\n/* */ \n/* 200 */ int tokenLen = token.length();\n/* 201 */ if (tokenLen == 0) {\n/* */ break;\n/* */ }\n/* */ \n/* */ \n/* 206 */ char c = token.charAt(0);\n/* */ \n/* 208 */ switch (c) {\n/* */ case 'G':\n/* 210 */ rule = new TextField(0, ERAs);\n/* */ break;\n/* */ case 'Y':\n/* */ case 'y':\n/* 214 */ if (tokenLen == 2) {\n/* 215 */ rule = TwoDigitYearField.INSTANCE;\n/* */ } else {\n/* 217 */ rule = selectNumberRule(1, (tokenLen < 4) ? 4 : tokenLen);\n/* */ } \n/* 219 */ if (c == 'Y') {\n/* 220 */ rule = new WeekYear((NumberRule)rule);\n/* */ }\n/* */ break;\n/* */ case 'M':\n/* 224 */ if (tokenLen >= 4) {\n/* 225 */ rule = new TextField(2, months); break;\n/* 226 */ } if (tokenLen == 3) {\n/* 227 */ rule = new TextField(2, shortMonths); break;\n/* 228 */ } if (tokenLen == 2) {\n/* 229 */ rule = TwoDigitMonthField.INSTANCE; break;\n/* */ } \n/* 231 */ rule = UnpaddedMonthField.INSTANCE;\n/* */ break;\n/* */ \n/* */ case 'd':\n/* 235 */ rule = selectNumberRule(5, tokenLen);\n/* */ break;\n/* */ case 'h':\n/* 238 */ rule = new TwelveHourField(selectNumberRule(10, tokenLen));\n/* */ break;\n/* */ case 'H':\n/* 241 */ rule = selectNumberRule(11, tokenLen);\n/* */ break;\n/* */ case 'm':\n/* 244 */ rule = selectNumberRule(12, tokenLen);\n/* */ break;\n/* */ case 's':\n/* 247 */ rule = selectNumberRule(13, tokenLen);\n/* */ break;\n/* */ case 'S':\n/* 250 */ rule = selectNumberRule(14, tokenLen);\n/* */ break;\n/* */ case 'E':\n/* 253 */ rule = new TextField(7, (tokenLen < 4) ? shortWeekdays : weekdays);\n/* */ break;\n/* */ case 'u':\n/* 256 */ rule = new DayInWeekField(selectNumberRule(7, tokenLen));\n/* */ break;\n/* */ case 'D':\n/* 259 */ rule = selectNumberRule(6, tokenLen);\n/* */ break;\n/* */ case 'F':\n/* 262 */ rule = selectNumberRule(8, tokenLen);\n/* */ break;\n/* */ case 'w':\n/* 265 */ rule = selectNumberRule(3, tokenLen);\n/* */ break;\n/* */ case 'W':\n/* 268 */ rule = selectNumberRule(4, tokenLen);\n/* */ break;\n/* */ case 'a':\n/* 271 */ rule = new TextField(9, AmPmStrings);\n/* */ break;\n/* */ case 'k':\n/* 274 */ rule = new TwentyFourHourField(selectNumberRule(11, tokenLen));\n/* */ break;\n/* */ case 'K':\n/* 277 */ rule = selectNumberRule(10, tokenLen);\n/* */ break;\n/* */ case 'X':\n/* 280 */ rule = Iso8601_Rule.getRule(tokenLen);\n/* */ break;\n/* */ case 'z':\n/* 283 */ if (tokenLen >= 4) {\n/* 284 */ rule = new TimeZoneNameRule(this.mTimeZone, this.mLocale, 1); break;\n/* */ } \n/* 286 */ rule = new TimeZoneNameRule(this.mTimeZone, this.mLocale, 0);\n/* */ break;\n/* */ \n/* */ case 'Z':\n/* 290 */ if (tokenLen == 1) {\n/* 291 */ rule = TimeZoneNumberRule.INSTANCE_NO_COLON; break;\n/* 292 */ } if (tokenLen == 2) {\n/* 293 */ rule = Iso8601_Rule.ISO8601_HOURS_COLON_MINUTES; break;\n/* */ } \n/* 295 */ rule = TimeZoneNumberRule.INSTANCE_COLON;\n/* */ break;\n/* */ \n/* */ case '\\'':\n/* 299 */ sub = token.substring(1);\n/* 300 */ if (sub.length() == 1) {\n/* 301 */ rule = new CharacterLiteral(sub.charAt(0)); break;\n/* */ } \n/* 303 */ rule = new StringLiteral(sub);\n/* */ break;\n/* */ \n/* */ default:\n/* 307 */ throw new IllegalArgumentException(\"Illegal pattern component: \" + token);\n/* */ } \n/* */ \n/* 310 */ rules.add(rule);\n/* */ } \n/* */ \n/* 313 */ return rules;\n/* */ }", "title": "" }, { "docid": "b79933d2b38ab1aae012518d69c5553f", "score": "0.48456192", "text": "protected void validateString(java.lang.String[] param) {\n }", "title": "" }, { "docid": "1dea5582e443492b1137249da3664c51", "score": "0.48318923", "text": "public static String[] cleanParse(String param)\r\n\t{\r\n\t\t\r\n\t\tString[] r_val= new String[2];\r\n\t\tint temp = param.indexOf(\"?=?\");\r\n\t\tr_val[0] = param.substring(0,temp);\r\n\t\tr_val[1] = param.substring(temp + 3);\r\n\t\t\r\n\t\treturn r_val;\r\n\t}", "title": "" }, { "docid": "b9d7752ba332d85bcdcec7622aac08ba", "score": "0.48221552", "text": "@Test\n\tpublic void test_defaultconstructor_case1(){\n\t\t\n\t\tList<String> in2 = new ArrayList<String>(); // for m2\n\t\tin2.add(\"||*h-----2s-----2p-----<2>-----2-------||\");\n\t\tm2 = new MusicNoteProcess(in2);\n\t\t\n\t\tString expected = \"[Two_Bar_begin_lastline,1]+[Star_Begin,1]+[Hammer,1]+[Dash,5]+[One_digit,2]+[Slide,1]+[Dash,5]+[One_digit,2]+[Pull,1]+[Dash,5]+[Left_Half_Diamond,1]+[One_digit,2]+[Right_half_Diamond,1]+[Dash,5]+[One_digit,2]+[Dash,7]+[Two_Bar_end_lastline,1]+[End_music_line,1]+[End_music_note,0]+\";\n\t\tassertEquals(expected, m2.toString());\n\t}", "title": "" }, { "docid": "1535e857fc75a9448fbe594e432c9b5b", "score": "0.48135498", "text": "java.lang.String getPattern2();", "title": "" }, { "docid": "1535e857fc75a9448fbe594e432c9b5b", "score": "0.48135498", "text": "java.lang.String getPattern2();", "title": "" }, { "docid": "2b0d1b0d6491005794f0b64c4c1a3115", "score": "0.48108718", "text": "private static Parameter extractParameter(ParserState state)\n throws VCalendarException {\n String text = state.mLine;\n int len = text.length();\n Parameter parameter = null;\n int startIndex = -1;\n int equalIndex = -1;\n\n while (state.mIndex < len) {\n char c = text.charAt(state.mIndex);\n if (c == ':') {\n if (parameter != null) {\n if (equalIndex == -1) {\n throw new VCalendarException(\"extractParameter(): Expected '=' within \"\n + \"parameter in \" + text);\n }\n parameter.setValue(text.substring(equalIndex + 1, state.mIndex));\n }\n // may be null\n return parameter;\n } else if (c == ';') {\n if (parameter == null) {\n // the first time to meet \";\" , the parameter's name haven't\n // been gained, new a basic parameter , but it is useless.\n startIndex = state.mIndex;\n } else {\n if (equalIndex == -1) {\n throw new VCalendarException(\"extractParameter(): Expected '=' within \"\n + \"parameter in \" + text);\n }\n parameter.setValue(text.substring(equalIndex + 1, state.mIndex));\n return parameter;\n }\n } else if (c == '=') {\n if ((parameter == null) && (startIndex != -1)) {\n equalIndex = state.mIndex;\n // the first time to create a parameter, the value is not\n // gained yet\n parameter = ParameterFactory.createParameter(\n text.substring(startIndex + 1, equalIndex), null);\n startIndex = -1;\n } else {\n //throw new FormatException(\"Expected one ';' before one '=' in \" + text);\n LogUtil.e(TAG, \"extractParameter(): FormatException happened, Expected one ';' before one '=' in \"\n + text);\n }\n } else if (c == '\"') {\n if (parameter == null) {\n throw new VCalendarException(\"extractParameter(): Expected parameter before '\\\"' in \"\n + text);\n }\n if (equalIndex == -1) {\n throw new VCalendarException(\"extractParameter(): Expected '=' within parameter in \"\n + text);\n }\n if (state.mIndex > equalIndex + 1) {\n throw new VCalendarException(\"extractParameter(): Parameter value cannot contain a '\\\"' in \"\n + text);\n }\n final int endQuote = text.indexOf('\"', state.mIndex + 1);\n if (endQuote < 0) {\n throw new VCalendarException(\"extractParameter(): Expected closing '\\\"' in \"\n + text);\n }\n parameter.setValue(text.substring(state.mIndex + 1, endQuote));\n state.mIndex = endQuote + 1;\n return parameter;\n }\n\n ++state.mIndex;\n }\n\n throw new VCalendarException(\"extractParameter(): Expected ':' before end of line in \"\n + text);\n }", "title": "" }, { "docid": "fa31cb8ba0adbe3104effb83bd793189", "score": "0.4809115", "text": "public static ArrayList<DrumNote> drumNoteParser(ArrayList<String> noteArray) {\r\n ArrayList<DrumNote> drumNoteArray = new ArrayList<>();\r\n ArrayList<String> strArray = new ArrayList<>();\r\n for (String list : noteArray) {\r\n String[] tempArray = list.split(\"-\", -1);\r\n Collections.addAll(strArray, tempArray);\r\n }\r\n\r\n int measureNum = 1;\r\n int noteNum = 1;\r\n String part = \"\";\r\n String repeatedPart = \"\";\r\n int measureMem = 1;\r\n Pattern pattern = Pattern.compile(\"^([SDSBDBHHHTRDRCCCSTT1MTT2FTT3])\");\r\n int wholePosition = 0;\r\n\r\n //Iterates through the parsed string array and makes an array of note objects\r\n\r\n for (String str : strArray) {\r\n //checks for old regex expression which represents a note\r\n Matcher matcher = pattern.matcher(str);\r\n if (matcher.find()) {\r\n //checks to see if the first part of the line indicates a \"string\" i.e checks for a |\r\n int indexOfMeasure = str.indexOf(\"|\");\r\n if (indexOfMeasure != -1) {\r\n part = str.substring(0, indexOfMeasure);\r\n //does once, to set the repeated char to the first string.\r\n if (repeatedPart.equals(\"\")) {\r\n repeatedPart = part;\r\n }\r\n if (str.length() > indexOfMeasure + 1) {\r\n //outlier where first note isnt a '-'\r\n DrumNote tempDrumNote = new DrumNote(measureNum, noteNum, part, str.charAt(indexOfMeasure + 1));\r\n drumNoteArray.add(tempDrumNote);\r\n \r\n tempDrumNote.setPosition(wholePosition);\r\n \r\n } else if (repeatedPart.equals(part)) {\r\n //If it has gone through all possible parts dont reset the measure count\r\n measureMem = measureNum;\r\n } else {\r\n measureNum = measureMem;\r\n }\r\n noteNum = 1;\r\n }\r\n } else if (str.contains(\"|\")) {\r\n //Increase measure count if it encounters |\r\n noteNum = 1;\r\n measureNum++;\r\n if (str.length() > 1) {\r\n //Extract this to separate function? duplicate code in function below.\r\n for (char character : str.substring(1).toCharArray()) {\r\n DrumNote tempDrumNote = new DrumNote(measureNum, noteNum, part, character);\r\n drumNoteArray.add(tempDrumNote);\r\n //tempDrumNote.setPosition(wholePosition);\r\n }\r\n }\r\n \r\n //wholePosition = 0;\r\n \r\n } else if (str.length() == 0) {\r\n //if blank, increase note count.\r\n noteNum++;\r\n } else {\r\n //Otherwise create a new note with the string as the note value.\r\n //splits each \"block\" into smaller individual notes, only checks for alphabet chars in between right now\r\n //will update regex when encountering new patterns.\r\n for (char character : str.toCharArray()) {\r\n noteNum++;\r\n DrumNote tempDrumNote = new DrumNote(measureNum, noteNum, part, character);\r\n drumNoteArray.add(tempDrumNote);\r\n //tempDrumNote.setPosition(wholePosition);\r\n\r\n }\r\n }\r\n }\r\n return drumNoteArray;\r\n }", "title": "" }, { "docid": "7b8c928a19a83653f438e8a89cc6ca5e", "score": "0.4804381", "text": "private DC splitDateString(String s, Glb GLB) {\n\t\tint day = 0, month = 0, yr2 = 0, yr4 = 0;\n\n\t\tif (s == null)\n\t\t\treturn null;\n\t\ttry {\n\t\t\tif (Character.getType(s.charAt(2)) == Character.DECIMAL_DIGIT_NUMBER) {\n\t\t\t\t// form is ddmmyy, mmddyy or yymmdd\n\t\t\t\t// form is ddmmccyy, mmddccyy or ccyymmdd\n\t\t\t\tif (GLB.intl == DC.UK) {\n\t\t\t\t\tday = Integer.valueOf(s.substring(0, 2)).intValue();\n\t\t\t\t\tmonth = Integer.valueOf(s.substring(2, 4)).intValue();\n\t\t\t\t\tyr2 = Integer.valueOf(s.substring(4)).intValue();\n\t\t\t\t} else if (GLB.intl == DC.US) {\n\t\t\t\t\tmonth = Integer.valueOf(s.substring(0, 2)).intValue();\n\t\t\t\t\tday = Integer.valueOf(s.substring(2, 4)).intValue();\n\t\t\t\t\tyr2 = Integer.valueOf(s.substring(4)).intValue();\n\t\t\t\t} else {\n\t\t\t\t\tif (s.length() == 6) {\n\t\t\t\t\t\tyr2 = Integer.valueOf(s.substring(0, 2)).intValue();\n\t\t\t\t\t\tmonth = Integer.valueOf(s.substring(2, 4)).intValue();\n\t\t\t\t\t\tday = Integer.valueOf(s.substring(4)).intValue();\n\t\t\t\t\t} else if (s.length() == 8) {\n\t\t\t\t\t\tyr2 = Integer.valueOf(s.substring(0, 4)).intValue();\n\t\t\t\t\t\tmonth = Integer.valueOf(s.substring(4, 6)).intValue();\n\t\t\t\t\t\tday = Integer.valueOf(s.substring(6)).intValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (\" -/\".indexOf(s.charAt(2)) >= 0) {\n\t\t\t\tif (GLB.intl == DC.UK) { // dd/mm/(cc)yy, dd-MMM-(cc)yy\n\t\t\t\t\tday = Integer.valueOf(s.substring(0, 2)).intValue();\n\t\t\t\t\tif (Character.getType(s.charAt(3)) == Character.DECIMAL_DIGIT_NUMBER) {\n\t\t\t\t\t\tmonth = Integer.valueOf(s.substring(3, 5)).intValue();\n\t\t\t\t\t\tyr2 = Integer.valueOf(s.substring(6)).intValue();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmonth = lookupMonth(s.substring(3, 6), GLB);\n\t\t\t\t\t\tyr2 = Integer.valueOf(s.substring(7)).intValue();\n\t\t\t\t\t}\n\t\t\t\t} else if (GLB.intl == DC.US) { // mm/dd/(cc)yy\n\t\t\t\t\tmonth = Integer.valueOf(s.substring(0, 2)).intValue();\n\t\t\t\t\tday = Integer.valueOf(s.substring(3, 5)).intValue();\n\t\t\t\t\tyr2 = Integer.valueOf(s.substring(6)).intValue();\n\t\t\t\t} else { /* yy/mm/dd, yy-MMM-dd */\n\t\t\t\t\tyr2 = Integer.valueOf(s.substring(0, 2)).intValue();\n\t\t\t\t\tif (Character.getType(s.charAt(3)) == Character.DECIMAL_DIGIT_NUMBER) {\n\t\t\t\t\t\tmonth = Integer.valueOf(s.substring(3, 5)).intValue();\n\t\t\t\t\t\tday = Integer.valueOf(s.substring(6, 8)).intValue();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmonth = lookupMonth(s.substring(3, 6), GLB);\n\t\t\t\t\t\tday = Integer.valueOf(s.substring(7, 9)).intValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (\" -/\".indexOf(s.charAt(3)) >= 0) {\n\t\t\t\t/* US: MMM-dd-(cc)yy, MMM dd (cc)yy */\n\t\t\t\tmonth = lookupMonth(s.substring(0, 3), GLB);\n\t\t\t\tday = Integer.valueOf(s.substring(4, 6)).intValue();\n\t\t\t\tyr2 = Integer.valueOf(s.substring(7)).intValue();\n\t\t\t} else if (\" -/\".indexOf(s.charAt(4)) >= 0) {\n\t\t\t\t/* I: ccyy-MMM-dd, ccyy/mm/dd */\n\t\t\t\tyr2 = Integer.valueOf(s.substring(0, 4)).intValue();\n\t\t\t\tif (Character.getType(s.charAt(5)) == Character.DECIMAL_DIGIT_NUMBER) {\n\t\t\t\t\tmonth = Integer.valueOf(s.substring(5, 7)).intValue();\n\t\t\t\t\tday = Integer.valueOf(s.substring(8, 10)).intValue();\n\t\t\t\t} else {\n\t\t\t\t\tmonth = lookupMonth(s.substring(5, 8), GLB);\n\t\t\t\t\tday = Integer.valueOf(s.substring(9, 11)).intValue();\n\t\t\t\t}\n\t\t\t} else { /* form is ddMMM(cc)yy, MMMdd(cc)yy, (cc)yyMMMdd */\n\t\t\t\tif (GLB.intl == DC.UK) {\n\t\t\t\t\tday = Integer.valueOf(s.substring(0, 2)).intValue();\n\t\t\t\t\tmonth = lookupMonth(s.substring(2, 5), GLB);\n\t\t\t\t\tyr2 = Integer.valueOf(s.substring(5)).intValue();\n\t\t\t\t} else if (GLB.intl == DC.US) {\n\t\t\t\t\tmonth = lookupMonth(s.substring(0, 3), GLB);\n\t\t\t\t\tday = Integer.valueOf(s.substring(3, 5)).intValue();\n\t\t\t\t\tyr2 = Integer.valueOf(s.substring(5, 7)).intValue();\n\t\t\t\t} else {\n\t\t\t\t\tif (s.length() >= 9) {\n\t\t\t\t\t\tyr2 = Integer.valueOf(s.substring(0, 4)).intValue();\n\t\t\t\t\t\tmonth = lookupMonth(s.substring(4, 7), GLB);\n\t\t\t\t\t\tday = Integer.valueOf(s.substring(7, 9)).intValue();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tyr2 = Integer.valueOf(s.substring(0, 2)).intValue();\n\t\t\t\t\t\tmonth = lookupMonth(s.substring(2, 5), GLB);\n\t\t\t\t\t\tday = Integer.valueOf(s.substring(5, 7)).intValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// System.out.println(\"Exception in splitDateString:\n\t\t\t// \"+e.toString());\n\t\t\t// e.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tif (yr2 >= 100) {\n\t\t\tyr4 = yr2;\n\t\t\tyr2 = yr4 % 100;\n\t\t} else {\n//\t\t\tyr4 = yr2 + GLB.CENTURY.getInt() * 100;\n\t\t\tyr4 = yr2ToYr4(yr2,GLB);\n\t\t}\n\n\t\tif (!verifyDate(day, month, yr4, GLB)) {\n\t\t\tif (month < 1 || month > 12)\n\t\t\t\tday = month = 1;\n\t\t\telse\n\t\t\t\tday = 1;\n\t\t}\n\n\t\tDC d = new DC();\n\t\td.day = day;\n\t\td.month = month;\n\t\td.year4 = yr4;\n\t\td.year2 = yr2;\n\n\t\treturn d;\n\t}", "title": "" }, { "docid": "29192aa3c21dd254dbe87945ccb9cdf6", "score": "0.47974804", "text": "public static void setPattern(String pattern) {\n\t\t\r\n\t\tif(pattern.equals(\"\")) {\r\n\t\t\tif(stabilizer.getASValue() == true) {\r\n\t\t\t\tpattern = defDatPattern;\r\n\t\t\t\t//popUpBox.infoBox(\"Default Date And Time pattern has been used instead of empty String value.\", this.getClass(), this.getClass().getMethods() + \"Auto Stabilizer\");}\r\n\t\t\tautoNotificationPusher.notPush(\"INFO\", \"Auto Stabilizer\", \"Default Date And Time pattern has been used instead of empty String value.\", DateAndTime.class,\"AUTO\");}\r\n\t\t\telse{\r\n\t\t\t\t//popUpBox.warningBox(\"DateAndTime Pattern setting is empty. \\nThis may results in an error when execute above from format.\", \"Warning : Highly Possible Code Exception Error.\");\r\n\t\t\t//autoNotificationPusher.notPush(\"WARNING\", \"Warning : Highly Possible Code Exception Error.\", \"DateAndTime Pattern setting is empty. \\nThis may results in an error when execute above from format.\", DateAndTime.class,\"TRAY\");\r\n\t\t\t}}\r\n\t\tif(stabilizer.getASValue() == true) {\r\n\t\t\tif(localDat == null) {\r\n\t\t\t\tsetLocalDaT();\r\n\t\t\t\t//popUpBox.infoBox(\"Handled possible null Object temporal requireNonNull in DateTimeFormatter.\",this.getClass(), stabilizer.getS1());\r\n\t\t\tautoNotificationPusher.notPush(\"INFO\", stabilizer.getS1(), \"Handled possible null Object temporal requireNonNull in DateTimeFormatter.\", DateAndTime.class,\"AUTO\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tdat = DateTimeFormatter.ofPattern(pattern);\r\n\t}", "title": "" }, { "docid": "f1a0e5773755bf4a238ed20e420d34f3", "score": "0.47931838", "text": "public Monom(String s) {\n try {\n int i=-1;boolean minus=false;\n while(i!=(s.length()-1)) {\n i++;\n if (s.charAt(i)=='+'){\n s=s.substring(i+1,s.length());\n }\n if(s.charAt(i)=='-'){\n s=s.substring(i+1,s.length());\n minus=true;\n }\n if(s.charAt(i)=='x'){\n break;\n }\n }\n if(s.charAt(i)=='x') {\n if(i==0) {\n this.set_coefficient(1);\n if(minus) this.set_coefficient(-1);\n }\n else {\n Double d = Double.parseDouble(s.substring(0,i));\n this.set_coefficient(d);\n if(minus) this.set_coefficient(-1*d);\n }\n if(i==s.length()-1) {\n this.set_power(1);\n }\n else {\n String temp=s.substring(i+2,s.length());\n int d = Integer.parseInt(temp);\n this.set_power(d);\n }\n }\n else {\n Double d = Double.parseDouble(s);\n this.set_coefficient(d);\n this.set_power(0);\n if(minus) this.set_coefficient(-1*d);\n }\n }\n catch(Exception e) {\n throw new RuntimeException(\"Not a valid Monom!\");\n }\n }", "title": "" }, { "docid": "d78def369f40bdfd4bb569bb8e6175c4", "score": "0.47920567", "text": "private void parse(String result) {\n String[] examples = result.split(REGEX_EXAMPLES);\n for(String example : examples) {\n if (example.length() > 0)\n parseExample(example.trim());\n }\n }", "title": "" }, { "docid": "87bf891b2bc21dc24274961ee22ed436", "score": "0.47886994", "text": "public void prepare() {\n Map<String, ArrayList<ParserFsmStep>> stepsByTerm = new HashMap<>();\n for (ParserFsmStep s : this.steps) {\n if (s.getPattern() != null) {\n stepsByTerm.computeIfAbsent(s.getPattern(), p -> new ArrayList<>()).add(s);\n } else {\n finalSteps.add(s);\n }\n }\n\n List<String> parts = new ArrayList<>(stepsByTerm.size());\n for (var step : stepsByTerm.entrySet()) {\n String groupName = \"g\" + this.stepsByTermGroup.size();\n parts.add(\"(?<\" + groupName + \">(\" + step.getKey() + \"))\");\n this.stepsByTermGroup.put(groupName, new TermGroup(groupName, step.getKey(), step.getValue()));\n }\n this.pattern = Pattern.compile(\"(\" + String.join(\"|\", parts) + \")\");\n }", "title": "" }, { "docid": "19c6c7ef5b85f5ca85019274078f23ff", "score": "0.47822082", "text": "public String getParsedString();", "title": "" }, { "docid": "d19a5a4d29e42f4477d6ae0604d34ab2", "score": "0.47761822", "text": "public Detail(String in){\n //copy\n detailData = in.split(Pattern.quote(c), LENGTH);\n }", "title": "" }, { "docid": "1cfb1c89c5d668c6dee4a36b5719a013", "score": "0.47573996", "text": "public static String _splitit(anywheresoftware.b4a.BA _ba,String _inp) throws Exception{\n_str = \"\";\n //BA.debugLineNum = 67;BA.debugLine=\"str2 = \\\"\\\"\";\n_str2 = \"\";\n //BA.debugLineNum = 68;BA.debugLine=\"If inp.IndexOf(\\\"=\\\") > 0 Then\";\nif (_inp.indexOf(\"=\")>0) { \n //BA.debugLineNum = 69;BA.debugLine=\"str = inp.SubString2(0,inp.IndexOf(\\\"=\\\"))\";\n_str = _inp.substring((int) (0),_inp.indexOf(\"=\"));\n //BA.debugLineNum = 70;BA.debugLine=\"str2 = inp.SubString(inp.IndexOf(\\\"=\\\")+ 1)\";\n_str2 = _inp.substring((int) (_inp.indexOf(\"=\")+1));\n };\n //BA.debugLineNum = 72;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "5d51669f7efba90d5c085c360579a512", "score": "0.47498158", "text": "private Publication parseLine(String line, int ln)\n\t throws InvalidLineFormatException, ApplicationException {\n\tcheckEmptyLine(line, ln);\n\tString[] str = line.split(\"\\t\");\n\tString type = str[0];\n\tswitch (type) {\n\tcase \"periodico\":\n\t return createNewsPaper(str, line, ln);\n\tcase \"revista\":\n\t return createmagazine(str, line, ln);\n\t}\n\tthrow new InvalidLineFormatException(\"Tipo desconocido\", ln, line);\n }", "title": "" }, { "docid": "2eb7e43ed82e6a7080f229d3d68689bb", "score": "0.47413313", "text": "private void parseFormat(final String format) {\n\t\tformatSpecification = new ArrayList<FormatPart>();\n\t\tdigitPositions = 0;\n\t\tfinal int len = format.length();\n\t\tfinal StringBuilder buffer = new StringBuilder();\n\t\tboolean escape = false;\n\t\tboolean nextIsPadding = false;\n\t\tboolean hasSeenNumberOrNothing = false;\n\t\tfor (int i = 0; i < len; ++i) {\n\t\t\tfinal char c = format.charAt(i);\n\t\t\tif (escape) {\n\t\t\t\tbuffer.append(c);\n\t\t\t\tescape = false;\n\t\t\t} else if (nextIsPadding) {\n\t\t\t\taddConstantPart(buffer, hasSeenNumberOrNothing);\n\t\t\t\tformatSpecification.add(new DigitFormatPart(digitPositions, true, c));\n\t\t\t\tdigitPositions += 1;\n\t\t\t\tnextIsPadding = false;\n\t\t\t} else {\n\t\t\t\tswitch (c) {\n\t\t\t\t\tcase ESCAPE:\n\t\t\t\t\t\tescape = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NUMBER_OR_PAD:\n\t\t\t\t\t\tnextIsPadding = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NUMBER_OR_NOTHING:\n\t\t\t\t\tcase NUMBER_OR_ZERO:\n\t\t\t\t\t\taddConstantPart(buffer, hasSeenNumberOrNothing);\n\t\t\t\t\t\tif (c == NUMBER_OR_NOTHING) {\n\t\t\t\t\t\t\tformatSpecification.add(new DigitFormatPart(digitPositions));\n\t\t\t\t\t\t\thasSeenNumberOrNothing = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tformatSpecification.add(new DigitFormatPart(digitPositions, true, '0'));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdigitPositions += 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbuffer.append(c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (buffer.length() > 0) {\n\t\t\tformatSpecification.add(new ConstantFormatPart(hasSeenNumberOrNothing, buffer.toString()));\n\t\t}\n\t}", "title": "" }, { "docid": "81e7f734f97efb7f60da0bac80fa5459", "score": "0.47286338", "text": "public Monom(String s) \n\t{\n\t\tdouble doubleCoeff = 0; //the variable we will convert our string into\n\t\tString coeff = \"\";\n\t\tint pow = 0;\n\t\tif(s.contains(\"x\") == true) //'x' is in the string.\n\t\t{\n\t\t\tcoeff = s.substring(0, s.indexOf(\"x\")); //take the chars before the \"x\".\n\t\t\tif(coeff.equals(\"\") || coeff.equals(\"+\")) doubleCoeff = 1.0; //there is no real number attached to \"x\".\n\t\t\telse if(coeff.charAt(0) == '-' && coeff.length() == 1) doubleCoeff = -1.0; //only '-' appears\n\t\t\telse doubleCoeff = Double.parseDouble(coeff); //converting the chars into doubles.\n\t\t\tif(s.contains(\"^\") == true) //'^' is in the string.\n\t\t\t{\n\t\t\t\tpow = Integer.parseInt(s.substring(s.indexOf(\"^\")+1)); //take the chars after the \"^\" and \n\t\t\t\t//converting them into integers.\n\t\t\t}\n\t\t\telse //'^' is not in the string.\n\t\t\t{\n\t\t\t\tpow = 1;\n\t\t\t}\n\t\t}\n\t\telse //only a real number appears\n\t\t{\n\t\t\tdoubleCoeff = Double.parseDouble(s); //converting the chars into doubles.\n\t\t\tpow = 0;\n\t\t}\n\t\tthis.set_coefficient(doubleCoeff);\n\t\tthis.set_power(pow);\n\t}", "title": "" }, { "docid": "823eb682cee93a48839a79a2101fc7e4", "score": "0.472839", "text": "private void parseFormatLine(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 8\n java.lang.String r9 = r9.substring(r0)\n java.lang.String r0 = \",\"\n java.lang.String[] r9 = android.text.TextUtils.split(r9, r0)\n int r0 = r9.length\n r8.formatKeyCount = r0\n r0 = -1\n r8.formatStartIndex = r0\n r8.formatEndIndex = r0\n r8.formatTextIndex = r0\n r1 = 0\n r2 = 0\n L_0x0018:\n int r3 = r8.formatKeyCount\n if (r2 >= r3) goto L_0x006e\n r3 = r9[r2]\n java.lang.String r3 = r3.trim()\n java.lang.String r3 = com.google.android.exoplayer2.util.Util.toLowerInvariant(r3)\n int r4 = r3.hashCode()\n r5 = 100571(0x188db, float:1.4093E-40)\n r6 = 2\n r7 = 1\n if (r4 == r5) goto L_0x0051\n r5 = 3556653(0x36452d, float:4.983932E-39)\n if (r4 == r5) goto L_0x0046\n r5 = 109757538(0x68ac462, float:5.219839E-35)\n if (r4 == r5) goto L_0x003c\n goto L_0x005b\n L_0x003c:\n java.lang.String r4 = \"start\"\n boolean r3 = r3.equals(r4)\n if (r3 == 0) goto L_0x005b\n r3 = 0\n goto L_0x005c\n L_0x0046:\n java.lang.String r4 = \"text\"\n boolean r3 = r3.equals(r4)\n if (r3 == 0) goto L_0x005b\n r3 = 2\n goto L_0x005c\n L_0x0051:\n java.lang.String r4 = \"end\"\n boolean r3 = r3.equals(r4)\n if (r3 == 0) goto L_0x005b\n r3 = 1\n goto L_0x005c\n L_0x005b:\n r3 = -1\n L_0x005c:\n if (r3 == 0) goto L_0x0069\n if (r3 == r7) goto L_0x0066\n if (r3 == r6) goto L_0x0063\n goto L_0x006b\n L_0x0063:\n r8.formatTextIndex = r2\n goto L_0x006b\n L_0x0066:\n r8.formatEndIndex = r2\n goto L_0x006b\n L_0x0069:\n r8.formatStartIndex = r2\n L_0x006b:\n int r2 = r2 + 1\n goto L_0x0018\n L_0x006e:\n int r9 = r8.formatStartIndex\n if (r9 == r0) goto L_0x007a\n int r9 = r8.formatEndIndex\n if (r9 == r0) goto L_0x007a\n int r9 = r8.formatTextIndex\n if (r9 != r0) goto L_0x007c\n L_0x007a:\n r8.formatKeyCount = r1\n L_0x007c:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.text.ssa.SsaDecoder.parseFormatLine(java.lang.String):void\");\n }", "title": "" }, { "docid": "e1e78f388c94adea590a4425a47409ae", "score": "0.4727121", "text": "void deserialize() {\n\t\tStringBuffer sb = new StringBuffer(way);\n\t\tSystem.out.println(\"##### \" + counter++ + \" #####\");\n\t\tString typeFromWay = sb.substring(0, sb.indexOf(START));\n\t\tSystem.out.println(\"typeFromWay: \" + typeFromWay);\n\t\tString lnglatFromWay = sb.substring(sb.indexOf(START) + 1,\n\t\t\t\tsb.indexOf(END) + 1);\n\t\tSystem.out.println(\"longlatFromWay: \" + lnglatFromWay);\n\n\t\tif (sb.indexOf(MULTIDELIM) > -1) {\n\t\t\t// 1. set correct type\n\t\t\tsetMultiType(typeFromWay);\n\t\t\t// 2. analyse geometry\n\t\t\tString[] lnglatArray = lnglatFromWay.split(Pattern\n\t\t\t\t\t.quote(MULTIDELIM));\n\t\t\tfor (String lnglat : lnglatArray) {\n\t\t\t\tif (lnglat.startsWith(\"(\")) {\n\t\t\t\t\tlnglat = lnglat.substring(1, lnglat.length());\n\t\t\t\t} else if (lnglat.endsWith(\")\")) {\n\t\t\t\t\tlnglat = lnglat.substring(0, lnglat.length() - 1);\n\t\t\t\t}\n\t\t\t\tList<LngLatAlt> lngLatAltList = tokenizeLngLat(lnglat);\n\t\t\t\tlngLatAltListList.add(lngLatAltList);\n\t\t\t}\n\t\t} else {\n\t\t\t// 1. set correct type\n\t\t\tsetType(typeFromWay);\n\t\t\t// 2. analyse geometry\n\t\t\tString lnglat = lnglatFromWay.substring(1,\n\t\t\t\t\tlnglatFromWay.length() - 1);\n\t\t\tlngLatAltListList.add(tokenizeLngLat(lnglat));\n\t\t}\n\t}", "title": "" }, { "docid": "fb1917a8ae132619db66f1ef68f88730", "score": "0.47269624", "text": "public void setMT(Char1 param){\n \n this.localMT=param;\n \n\n }", "title": "" }, { "docid": "ef1c5285509823b36d4e0648f85a8a51", "score": "0.47245815", "text": "public Boolean parsingPattern (String Pattern , String message)\r\n\t{\r\n\t\t //BasicDBObject doc = new BasicDBObject();\r\n\t\t// doc.put(\"date\", date);\r\n\t\t //doc.put(\"Otherpropertie\", coll.insert(doc)); //storing data\r\n\r\n\t\t/* do :\r\n\t\t * 1. parsing data \r\n\t\t * 2. while create a MongoDB object \r\n\t\t * 3. store the mongoDB object \r\n\t\t */\r\n\r\n\r\n\t\treturn true ; //false\r\n\r\n\t}", "title": "" }, { "docid": "71dba45cc05b3b864b8abecc72a8f489", "score": "0.4722327", "text": "public void fromString(String data)\r\n {\r\n String [] fields = data.split(\"\" + SEPARATOR);\r\n number = Integer.parseInt(fields[0]);\r\n setName(fields[1]);\r\n setStreet(fields[2]);\r\n setCity(fields[3]);\r\n setState(fields[4]);\r\n setZip(fields[5]);\r\n setEmail(fields[6]);\r\n }", "title": "" }, { "docid": "d0ac66b2375788decb15b0049c3c1a8b", "score": "0.47199336", "text": "@Test\n\tpublic void test_defaultconstructor_case3(){\n\t\t\n\t\tList<String> in2 = new ArrayList<String>(); // for m2\n\t\tin2.add(\"|--2----3----|\");\n\t\tm2 = new MusicNoteProcess(in2);\n\t\t\n\t\tString expected = \"[OneBar_begin_lastline,1]+[Dash,2]+[One_digit,2]+[Dash,4]+[One_digit,3]+[Dash,4]+[OneBar_end_lastline,1]+[End_music_line,1]+[End_music_note,0]+\";\n\t\tassertEquals(expected, m2.toString());\n\t}", "title": "" }, { "docid": "2dbe2f035cb090290a9198d5a11c518d", "score": "0.4715126", "text": "public void decomposeString(libList lList, String sIN, BufferedWriter brLog)\n throws\n IOException {\n String tmp;\n if ( sIN.isEmpty () ) {\n brLog.append (\"****** Reaction transferred to checker is NULL \\n\");\n return;\n }\n sIN = sIN.substring (1);\n tmp = sIN.substring (0, sIN.indexOf (\"(\")); // (\n SF1Wrong = testSF1 (lList, tmp);\n SF1 = new SimpleStringProperty (tmp); // (SF1\n\n sIN = sIN.substring (sIN.indexOf (\"(\") + 1); // (SF1(\n tmp = sIN.substring (0, sIN.indexOf (\",\"));\n SF2Wrong = testSF2 (lList, tmp);\n if ( !SF2Wrong ) {\n SF2 = new SimpleStringProperty (tmp); // (SF1(SF2\n } else {\n brLog.append (\" Check SF2 \" + tmp + \"\\n\");\n SF2 = new SimpleStringProperty (\"\"); // (SF1(SF2\n }\n\n sIN = sIN.substring (sIN.indexOf (\",\") + 1); // (SF1(SF2, \n tmp = sIN.substring (0, sIN.indexOf (\")\"));\n SF3Wrong = testSF3 (lList, tmp);\n if ( !SF3Wrong ) {\n if ( tmp.contains (\"0-G-\") ) {\n tmp.replace (\"0-G-0\", \"G\");\n }\n SF3 = new SimpleStringProperty (tmp); // (SF1(SF2, SF3\n } else {\n brLog.append (\" Check SF3 \" + tmp + \"\\n\");\n SF3 = new SimpleStringProperty (\"\"); // (SF1(SF2, SF3\n }\n\n sIN = sIN.substring (sIN.indexOf (\")\") + 1); // (SF1(SF2, SF3)\n tmp = sIN.substring (0, sIN.indexOf (\",\"));\n tmp = (tmp.isEmpty ()) ? \"RESO\" : tmp;\n SF4Wrong = testSF4 (lList, tmp);\n if ( !SF4Wrong && !tmp.contains (\"RESO\") ) {\n SF4 = new SimpleStringProperty (tmp); // (SF1(SF2, SF3)SF4\n } else if ( !SF4Wrong && tmp.contains (\"RESO\") ) {\n SF4 = new SimpleStringProperty (\"\"); // (SF1(SF2, SF3)SF4\n } else if ( SF4Wrong ) {\n brLog.append (\" Check SF4 \" + tmp + \"\\n\");\n SF4 = new SimpleStringProperty (\"\"); // (SF1(SF2, SF3)SF4\n }\n\n //sIN = sIN.substring (sIN.indexOf (\",\") + 1); // // (SF1(SF2, SF3)SF4,\n tmp = sIN.substring (0, sIN.lastIndexOf (\")\"));\n\n //tmp = \"2-He-4,,DA/DE,P/CA40\"; // testing\n String[] QtyData = tmp.split (\",\");\n int llen = QtyData.length;\n\n for ( int ix = 1; ix <= (llen - 1); ix++ ) {\n boolean iloop = true;\n int iii = llen - ix;\n String tmpo = QtyData[iii];\n if ( tmpo.trim ().isEmpty () ) {\n break;\n }\n\n SF9Wrong = testSF9 (lList, tmpo);\n SF8Wrong = testSF8 (lList, tmpo);\n SF7Wrong = testSF7 (lList, tmpo);\n SF6Wrong = testSF6 (lList, tmpo);\n SF5Wrong = testSF5 (lList, tmpo);\n\n if ( !SF9Wrong ) {\n SF9 = new SimpleStringProperty (tmpo);\n } else if ( SF9Wrong && SF6Wrong ) {\n brLog.append (\" Check SF9 \" + tmpo + \"\\n\");\n SF9 = new SimpleStringProperty (\"\");\n }\n\n if ( !SF8Wrong ) {\n SF8 = new SimpleStringProperty (tmpo);\n } else if ( SF8Wrong && SF6Wrong ) {\n brLog.append (\" Check SF8 \" + tmpo + \"\\n\");\n SF8 = new SimpleStringProperty (\"\");\n }\n\n if ( !SF7Wrong ) {\n SF7 = new SimpleStringProperty (tmpo);\n } else if ( SF7Wrong && SF6Wrong ) {\n brLog.append (\" Check SF7 \" + tmpo + \"\\n\");\n SF7 = new SimpleStringProperty (\"\");\n }\n\n if ( !SF6Wrong ) {\n SF6 = new SimpleStringProperty (tmpo);\n } else if ( SF6Wrong && SF6Wrong ) {\n brLog.append (\" Check SF6 \" + tmpo + \"\\n\");\n SF6 = new SimpleStringProperty (\"\");\n }\n\n if ( !SF5Wrong ) {\n SF5 = new SimpleStringProperty (tmpo);\n } else if ( SF5Wrong && SF6Wrong ) {\n brLog.append (\" Check SF5 \" + tmpo + \"\\n\");\n SF5 = new SimpleStringProperty (\"\");\n }\n }\n reacWrong\n = (SF1Wrong || SF2Wrong || SF3Wrong || SF4Wrong || SF6Wrong)\n ? true : false;\n }", "title": "" }, { "docid": "7bb1f90dcb5fe2e7841b581e7ab7e820", "score": "0.47141019", "text": "protected abstract Pattern getPattern();", "title": "" }, { "docid": "c62001aa1a2d7adabfc83dfe21cd578e", "score": "0.47113812", "text": "String getPattern();", "title": "" }, { "docid": "2db9177aab558cb4be21dbf581cb14f2", "score": "0.46950683", "text": "public void parse( String fieldContent, \n int[] startTime, \n int[] timeWidth, \n Map<String,String> extra ) throws ParseException;", "title": "" }, { "docid": "56afb01981ef18efb379aa5aeccf9c64", "score": "0.4688395", "text": "protected Pattern[] precalculate(String list) {\n\n if (list == null)\n return (new Pattern[0]);\n list = list.trim();\n if (list.length() < 1)\n return (new Pattern[0]);\n list += \",\";\n\n ArrayList reList = new ArrayList();\n while (list.length() > 0) {\n int comma = list.indexOf(',');\n if (comma < 0)\n break;\n String pattern = list.substring(0, comma).trim();\n try {\n reList.add(Pattern.compile(pattern));\n } catch (PatternSyntaxException e) {\n IllegalArgumentException iae = new IllegalArgumentException\n (sm.getString(\"requestFilterValve.syntax\", pattern));\n iae.initCause(e);\n throw iae;\n }\n list = list.substring(comma + 1);\n }\n\n Pattern reArray[] = new Pattern[reList.size()];\n return ((Pattern[]) reList.toArray(reArray));\n\n }", "title": "" }, { "docid": "afdbc5909066a4a9b38a4dd86ed9f5bc", "score": "0.4688056", "text": "public ParunUnstructured( //Construye párrafo no estructurado, este puede pertenecer a\r\n // com FULL_LINE, TAG_FULL_LINE,\r\n // END_OF_LINE, EMBEDED o DELIMITED\r\n //Junta todas las líneas y elimina espacios en exceso\r\n // (Trim).\r\n //Si es FULL_LINE o END_OF_LINE, si hay palabras\r\n // que exceden el tamaño máximo se cortan, el tamaño\r\n // máximo es el que cabe en la línea segunda o\r\n // subsecuentes del código (Ej. en Cobol es 66 - 1 - 8\r\n // = 57, en C# es 60 - 2 - 6 = 52).\r\n //Si esta en TAG_FULL_LINE, elimina las marcas delimitadoras\r\n // del tag (<>) incluyendo blancos intercalados.\r\n //this.*[O], asigna valores.\r\n\r\n //Objeto com del cual este párrafo es parte.\r\n ComCommentsAbstract comBelongsTo_T,\r\n //Líneas para párrafo no estructurado, ya sin caracteres de\r\n // inicio o delimitadores.\r\n String[] arrstrLineParun_I\r\n )\r\n {\r\n super(comBelongsTo_T);\r\n //Saca el com para facilitar la codificación\r\n ComCommentsAbstract com = this.comBelongsTo();\r\n\r\n String strParagraph;\r\n //El código de un párrafo no estructurado se tiene en varios\r\n // tipos de comentarios.\r\n /*CASE*/\r\n if (\r\n (com.comtype() == ComtypeEnum.FULL_LINE) || (com.comtype() == ComtypeEnum.END_OF_LINE)\r\n )\r\n {\r\n //Se tienes varias líneas consecutivas, pueden tener blancos\r\n // en exceso.\r\n\r\n //Concatena todas las líneas con \" \" como separador.\r\n strParagraph = String.join(\" \", arrstrLineParun_I);\r\n\r\n strParagraph = Tools.strTrimExcel(strParagraph);\r\n\r\n //Hace lo necesario para cortar las palabras grandes.\r\n strParagraph = this.strParagraphRevised(strParagraph);\r\n }\r\n else if (\r\n com.comtype() == ComtypeEnum.TAG_FULL_LINE\r\n )\r\n {\r\n //La información esta en una sola línea, tiene marca de tag\r\n // al inicio y posiblemente al final, también puede\r\n // tener blancos en exceso.\r\n\r\n //Toma la única línea de información que tiene.\r\n strParagraph = arrstrLineParun_I[0];\r\n\r\n //Quita marca de tag al principio y al final si la tiene.\r\n strParagraph = Tools.trimStart(strParagraph, com.charCOM_TL_START(), ' ');\r\n strParagraph = Tools.trimEnd(strParagraph, com.charCOM_TL_END(), ' ');\r\n\r\n strParagraph = Tools.strTrimExcel(strParagraph);\r\n\r\n if (\r\n com.codOriginal().boolIS_FIX_LENGTH()\r\n )\r\n {\r\n //Si es de longitud fija puede requerir ser recortado.\r\n\r\n //Nótese que este párrafo pudiera exceder el tamaño posible,\r\n // sucede cuando la línea estaba completa, no tenía\r\n // blancos en exceso y no incluía la marca >.\r\n //Si la información original estaba en un arrstr (y no en un\r\n // file), la longítud puede excederse aún más.\r\n\r\n //Long max = 66 - \"*\" - '<' - '>'\r\n int intLengthMaxPar = com.intCOM_FL_OR_TL_LINE_SIZE() - com.strCOM_FL_OR_TL().length() - 2;\r\n\r\n if (\r\n //El párrafo resultante no cabe entre las marcas < >\r\n strParagraph.length() > intLengthMaxPar\r\n )\r\n {\r\n //Lo recorta para que quepa.\r\n strParagraph = strParagraph.substring(0, intLengthMaxPar);\r\n }\r\n }\r\n }\r\n else if (\r\n (com.comtype() == ComtypeEnum.EMBEDED) || (com.comtype() == ComtypeEnum.DELIMITED)\r\n )\r\n {\r\n //La información esta en una sola línea, puede tener blancos\r\n // en exceso.\r\n\r\n //Toma la única línea de información que tiene.\r\n strParagraph = arrstrLineParun_I[0];\r\n\r\n strParagraph = Tools.strTrimExcel(strParagraph);\r\n }\r\n else\r\n {\r\n if (\r\n true\r\n )\r\n Tools.subAbort(Tes2.strTo(com.comtype(), \"com.comtype\") + \" was not found\");\r\n\r\n strParagraph = null;\r\n }\r\n /*END-CASE*/\r\n\r\n this.strParagraph_Z = strParagraph;\r\n\r\n this.subReset();\r\n }", "title": "" }, { "docid": "fa0de9c40ab1177b325db80f3f066129", "score": "0.46847096", "text": "private void parseParishLine(String line) {\n\t\tString regEx = \"\\\\\\\\d?\\\\d?\\\\-?([\\\\w\\\\(\\\\)]*)[,\\\\s*Revs\\\\.\\\\s*|Rt\\\\.Rev\\\\.Msgr\\\\.|Rev\\\\.]\\\\([\\\\w\\\\(\\\\)]*)([Res\\\\.,|School]\\\\([\\\\w\\\\(\\\\)]*))?(School?([\\\\w\\\\(\\\\)]*)\\\\\";\n\t}", "title": "" }, { "docid": "15dc2f99c5ed2bd560d07ba74ce7d4ff", "score": "0.46824014", "text": "@Override\n\tpublic void autonomousInit() {\n\t\tAutonConstants autonConstants = new AutonConstants();\n\t\tm_pattern = Pattern.compile(\"([A-Z])([^A-Z]*)\");\n\t\tint[] commandsToDo = { 1, 10, 16 };\n\t\tint from=-1;\n\t\tfor(int to: commandsToDo) {\n\t\t\tif (from>0) {\n\t\t\t\tm_commandsToDoDuringAutonomous.append(autonConstants.commands[from-1][to-4]);\n\t\t\t}\n\t\t\tfrom=to;\n\t\t}\n\t\tm_matcher = m_pattern.matcher(m_commandsToDoDuringAutonomous);\n\t\tm_matcher.find();\n\t\tSystem.out.println(\"Commands: #\"+m_commandsToDoDuringAutonomous+\"# group 1: #\"+m_matcher.group(1)+\"# group 2: #\"+m_matcher.group(2)+\"#\");\n\t\t\n\t\t//m_driveTrain.setRampRate(3);\n\t\t\n\t\n\t}", "title": "" }, { "docid": "b1572c0dece2e6b15e7fe23ba8bf7c15", "score": "0.4680877", "text": "@Test\r\n public void createFrom_withCharactersToIgnoreAfterLastField_createsEntity() throws Exception {\r\n String inputPattern = \"%a [%b]\";\r\n\r\n Pattern pattern = patternService.createFrom(inputPattern);\r\n assertNotNull(\"pattern mustn't be null.\", pattern);\r\n List<String> fieldsSeparators = pattern.getFieldsSeparators();\r\n assertNotNull(\"List of fields separators musn't be null.\", fieldsSeparators);\r\n assertEquals(1, fieldsSeparators.size());\r\n\r\n assertEquals(\" [\", fieldsSeparators.get(0));\r\n\r\n List<String> patternsName = pattern.getPatternsName();\r\n assertNotNull(\"patternsName mustn't be null.\", patternsName);\r\n assertEquals(2, patternsName.size());\r\n\r\n for (String eachPatternName : patternsName) {\r\n assertEquals(2, eachPatternName.length());\r\n }\r\n }", "title": "" }, { "docid": "a16e3590bf5d81c31c0cf3ff0ff033c6", "score": "0.46691918", "text": "public Polynom(String string) {\n\t\t// TODO Auto-generated constructor stub\n\t\tMonom m1 = new Monom();\n\t\tstring = string.replaceAll(\"-\", \"+-\");\n\t\tstring = string.replaceAll(\" \",\"\");\n\t\tstring = string.replaceAll(\" \",\"\");\n\t\tString arr1[] = string.split(\"\\\\+\");\n\t\tfor (int i = 0; i < arr1.length; i++) { \n\t\t\tif(arr1[i].equals(\"\")) { \n\t\t\t\ti++;\n\t\t\t}\n\t\t\tString s1 = arr1[i];\n\t\t\tm1 = m1.StringMonom(s1);\n\t\t\tthis.add(m1);\n\t\t}\n\n\t}", "title": "" }, { "docid": "73fa8e74ad1fde8c3970f3890ae349f3", "score": "0.4662305", "text": "@Override\n\tpublic void parseNamespaceSpecificString(NamespaceIdentifier namespace, String namespaceSpecificString, SERIALIZATION_FORMAT serializationFormat)\n\tthrows URNFormatException\n\t{\n\t\tif(namespaceSpecificString == null)\n\t\t\tthrow new URNFormatException(\"The namespace specific string for a(n) \" + this.getClass().getSimpleName() + \" cannot be null.\");\n\t\t\n\t\tMatcher nssMatcher = namespaceSpecificStringPattern.matcher(namespaceSpecificString);\n\t\t\n\t\tif(! nssMatcher.matches())\n\t\t{\n\t\t\tString msg = \"Namespace specific string '\" + namespaceSpecificString + \"' is not valid.\";\n\t\t\tLogger.getAnonymousLogger().warning(msg);\n\t\t\tthrow new ImageURNFormatException(msg);\n\t\t}\n\t\n\t\tthis.originatingSiteId = nssMatcher.group(SITE_ID_GROUP).trim();\n\t\tString tmpInstanceId = nssMatcher.group(INSTANCE_ID_GROUP).trim();\n\t\tString tmpGroupId = nssMatcher.group(GROUP_ID_GROUP).trim();\n\n\t\tswitch(serializationFormat)\n\t\t{\n\t\tcase PATCH83_VFTP:\n\t\t\tsetGroupId( Base32ConversionUtility.base32Decode(tmpGroupId) );\n\t\t\tsetInstanceId( Base32ConversionUtility.base32Decode(tmpInstanceId) );\n\t\t\tbreak;\n\t\tcase RFC2141:\n\t\t\tthis.groupId = tmpGroupId;\n\t\t\tthis.instanceId = tmpInstanceId;\n\t\t\tbreak;\n\t\tcase VFTP:\n\t\t\tthis.groupId = tmpGroupId;\n\t\t\tthis.instanceId = tmpInstanceId;\n\t\t\tbreak;\n\t\tcase RAW:\n\t\t\tthis.groupId = tmpGroupId;\n\t\t\tthis.instanceId = tmpInstanceId;\n\t\t\tbreak;\n\t\tcase CDTP:\n\t\t\tthis.groupId = URN.FILENAME_TO_RFC2141_ESCAPING.escapeIllegalCharacters(tmpGroupId);\n\t\t\tthis.instanceId = URN.FILENAME_TO_RFC2141_ESCAPING.escapeIllegalCharacters(tmpInstanceId);\n\t\t\tbreak;\n\t\tcase NATIVE:\n\t\t\tsetGroupId(tmpGroupId);\n\t\t\tsetInstanceId(tmpInstanceId);\n\t\t\tbreak;\n\t\t}\n\n\t\tthis.patientId = URN.RFC2141_ESCAPING.escapeIllegalCharacters( nssMatcher.group(PATIENT_ID_GROUP).trim() );\n\t\tif(nssMatcher.group(MODALITY_GROUP) != null)\n\t\t\tthis.imageModality = URN.RFC2141_ESCAPING.escapeIllegalCharacters( \n\t\t\t\tnssMatcher.group(MODALITY_GROUP).trim().length() > 0 ? nssMatcher.group(MODALITY_GROUP).trim() : null );\n\t\telse\n\t\t\tthis.imageModality = null;\n\t}", "title": "" }, { "docid": "a1166c070b33700f2607fd70c9522f78", "score": "0.46298486", "text": "@Test\n public void testParser() {\n int regattaID = regattaMessage.getId();\n double centralLat = regattaMessage.getCentralLat();\n double centralLong = regattaMessage.getCentralLong();\n String uTcOffset = regattaMessage.getUtcOffset();\n\n // Assert that everything in the container is correct\n assertEquals(4, regattaID);\n assertEquals(32.298501, centralLat, 0.000001);\n assertEquals(-64.8435, centralLong, 0.000001);\n assertEquals(\"-3\", uTcOffset);\n }", "title": "" }, { "docid": "80ceaeacaa4cc9268431c91dfceea85d", "score": "0.46297422", "text": "java.lang.String getPattern1();", "title": "" }, { "docid": "80ceaeacaa4cc9268431c91dfceea85d", "score": "0.46297422", "text": "java.lang.String getPattern1();", "title": "" }, { "docid": "604266ae05f251f17197692183b1eb12", "score": "0.46276864", "text": "@Override\n\tpublic void parse(String in) {\n\t\t\n\t\tString[] bits = in.split(\",\");\n\t\tthis.setName(bits[1]);\n\t\t//double d = Double.parseDouble(bits[0]);\n\t\t//this.setAmount(d);\n\t\tthis.setAmount(bits[0]);\n\t\t\n\t}", "title": "" }, { "docid": "8ce057c250486d4b51b9311304a6bc27", "score": "0.46251294", "text": "protected void setUpFirstLineParameters(String line) throws MyHTTPProtocolException {\r\n\t\tString[] parameters = line.split(\" \", 3);\r\n\t\ttry {\r\n\t\t\tversion = parameters[0];\r\n\t\t\tstatusCode = parameters[1];\r\n\t\t\tstatusMessage = parameters[2];\r\n\t\t\tstatusMessage.replace(delimiter, \"\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new MyHTTPProtocolException(400, \"Bad Request \",\r\n\t\t\t\t\t\"Error while building first line \" + e.getStackTrace());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bad30a52d4ae12b0dbd991acc0d9f99a", "score": "0.46195662", "text": "void parse(final String info) {\n\t\tString temp;\n\t\tfinal StringTokenizer st1 = new StringTokenizer(info, \":\");\n\t\tthis.url = st1.nextToken();\n\t\ttemp = st1.nextToken();\n\t\tfinal StringTokenizer st2 = new StringTokenizer(temp, \"/\");\n\t\tthis.port_nb = new Integer(st2.nextToken()).intValue();\n\t\ttemp = st2.nextToken();\n\t\tfinal StringTokenizer st3 = new StringTokenizer(temp, \"$\");\n\t\tthis.task_name = st3.nextToken();\n\t\tthis.id = new Integer(st3.nextToken()).intValue();\n\t}", "title": "" }, { "docid": "0588b6daf325811bb05335a32f5280f9", "score": "0.4614952", "text": "public Pattern(String p){\n pattern = p;\n }", "title": "" }, { "docid": "93898cca5fd9da51ec87e365f5ff10c2", "score": "0.46072638", "text": "void mo1311a(String str);", "title": "" }, { "docid": "55b974cb97862a9db1cb395b07847c5b", "score": "0.46072108", "text": "void parse(ArrayList<Point2D.Double> room, ArrayList<ArrayList<Point2D.Double>> objectsArray, String str) {\n // 1: (0, 0), (10, 0), (10, 10), (0, 10) # 9:(0, 0), (3, 0), (3, 3), (0, 3);4:(0, 0), (2, 0), (2, 2), (0, 2)\n String[] firstSplit = str.split(\"#\");\n // firstSplit[0] = room, firstSplit [1] = objectsArray\n String[] secondSplit = firstSplit[1].split(\";\");\n // now secondSplit contains all the individual objects\n ArrayList<String> storing = new ArrayList<String>();\n for ( String tempStr : secondSplit) {\n tempStr = tempStr.replaceAll(\"[0-9]+:\",\"\");\n storing.add(tempStr);\n }\n\n for (String temp : storing) {\n //(0, 0), (3, 0), (3, 3), (0, 3)\n ArrayList<Point2D.Double> tempArray = new ArrayList<Point2D.Double>();\n tempArray = getPointArray(temp);\n objectsArray.add(tempArray);\n }\n\n firstSplit[0] = firstSplit[0].replaceAll(\"[0-9]+:\",\"\");\n\n room.addAll(getPointArray(firstSplit[0]));\n\n return;\n }", "title": "" }, { "docid": "b21b54c653bbca514a7600cf44509891", "score": "0.46047735", "text": "public String parseString(String input){\n\t Pattern strong = Pattern.compile(\"(.*?)\\\\*\\\\*(.*?)\\\\*\\\\*(.*)\");\n\t Pattern emph = Pattern.compile(\"(.*?)\\\\*(.*?)\\\\*(.*)\");\n\t Pattern image = Pattern.compile(\"(.*?)!\\\\[(.*?)\\\\]\\\\((.*?)\\\"(.*?)\\\"\\\\)(.*)\"); //might need \\\\ for ! \n\t Pattern hl = Pattern.compile(\"(.*?)\\\\[(.*?)\\\\]\\\\((.*?)\\\\)(.*)\");\n\t Pattern code = Pattern.compile(\"(.*?)`(.*?)`(.*)\");\n\t Pattern list = Pattern.compile(\"\\\\+ (.*)\");\n\t \n\t Matcher m = list.matcher(input);\n\t \n\t //strong detection\n\t m = strong.matcher(input);\n\t if (m.matches()) {\n\t\t String ret = \"\";\n\t\t for (int i = 0; i < m.groupCount(); i++) {\n\t\t \t\tret += m.group(i+1);\n\t\t }\n\t\t return parseString(m.group(1)) + translateStrong(m.group(2)) + parseString(m.group(3));\n\t }\n\t \n\t //emphasis detection\n\t m = emph.matcher(input);\n\t if (m.matches()) {\n\t\t String ret = \"\";\n\t\t for (int i = 0; i < m.groupCount(); i++) {\n\t\t\t ret += m.group(i+1);\n\t\t }\n\t\t return parseString(m.group(1)) + translateEmphasis(m.group(2)) + parseString(m.group(3));\n\t }\n\t \n\t //image detection\n\t m = image.matcher(input);\n\t if (m.matches()) {\n\t\t String ret = \"\";\n\t\t for (int i = 0; i < m.groupCount(); i++) {\n\t\t\t ret += m.group(i+1); \n\t\t }\n\t\t return parseString(m.group(1)) + translateImage(m.group(2), m.group(3), m.group(4)) + parseString(m.group(5));\n\t }\n\t \n\t //hyperlink detection\n\t m = hl.matcher(input);\n\t if (m.matches()) {\n\t\t String ret = \"\";\n\t\t for (int i = 0; i < m.groupCount(); i++) {\n\t\t\t ret += m.group(i+1);\n\t\t }\n\t\t return parseString(m.group(1)) + translateHyperlink(m.group(2), m.group(3)) + parseString(m.group(4));\n\t }\n\t \n\t //code detection\n\t m = code.matcher(input);\n\t if (m.matches()) {\n\t\t String ret = \"\";\n\t\t for (int i = 0; i < m.groupCount(); i++) {\n\t\t\t ret += m.group(i+1);\n\t\t }\n\t\t return parseString(m.group(1)) + translateCode(m.group(2)) + parseString(m.group(3));\n\t }\n\t \n\t //list detection\n\t m = list.matcher(input);\n\t if(m.matches()) {\n\t\t String ret = \"\";\n\t\t for (int i = 0; i < m.groupCount(); i++) {\n\t\t\t ret += m.group(i+1);\n\t\t }\n\t\t if (list_bool) {\n\t\t\t //process normally\n\t\t\t if (m.matches()) {\n\t\t\t\t return translateListItem(m.group(1));\n\t\t\t }\n\t\t } \n\t\t else {\n\t\t\t list_bool=true;\n\t\t\t //write the <ul> to start of input\n\t\t\t return \"<ul>\\n\" + translateListItem(m.group(1)); //need for first list item\n\t\t }\n\t } else if (list_bool) {\n\t\t list_bool=false;\n\t\t //close the </ul> tag\n\t\t input = input + \"</ul>\\n\";\n\t }\n\t \n\t return input;\n\n }", "title": "" }, { "docid": "c5ee1c2b4cc824542322305a0db53cb3", "score": "0.46040136", "text": "public static Calendario parseString(String date){\n \n int year, month, day, hour, minute, second;\n Calendario temp = null; \n \n if(date.matches(\"\\\\d{4}-\\\\d{2}-\\\\d{2}\")){//YYYY-MM-DD\n\n try {\n \n year = Integer.parseUnsignedInt(date.substring(0, 4));\n month = Integer.parseUnsignedInt(date.substring(5, 7));\n day = Integer.parseUnsignedInt(date.substring(8));\n\n temp = new Calendario(year, month, day);\n\n } catch (NumberFormatException e) {//in teoria non dovrebbe essere raggiungibile\n \n throw new NumberFormatException(\"Check the passed string, ensure is in the YYYY-MM-DD format\");\n }\n \n }else if(date.matches(\"\\\\d{4}-\\\\d{2}-\\\\d{2} \\\\d{2}:\\\\d{2}:\\\\d{2}\")){ //YYYY-MM-DD HH:MM:SS\n \n try{\n \n year = Integer.parseUnsignedInt(date.substring(0, 4));\n month = Integer.parseUnsignedInt(date.substring(5, 7));\n day = Integer.parseUnsignedInt(date.substring(8, 10));\n hour = Integer.parseUnsignedInt(date.substring(11, 13));\n minute = Integer.parseUnsignedInt(date.substring(14, 16));\n second = Integer.parseUnsignedInt(date.substring(17));\n \n return new Calendario(year, month, day, hour, minute, second);\n \n }catch(NumberFormatException e){//in teoria non dovrebbe essere raggiungibile\n \n throw new NumberFormatException(\"Check the passed string, ensure is in the YYYY-MM-DD HH:MM:SS format\");\n }\n }else{ //non matcha niente\n \n throw new NumberFormatException(\"Check the passed string, ensure is in the YYYY-MM-DD HH:MM:SS format or in the YYYY-MM-DD format\");\n }\n \n return temp;\n }", "title": "" }, { "docid": "9f677f4e69df8e373f12fba9134632d6", "score": "0.46021125", "text": "private Map<String, String> parseParameters(final String params) {\n\t\tMap<String, String> parameters = new HashMap<String, String>();\n\t\tString[] paramArray = StringUtils.split(params, '&');\n\t\tfor (String param : paramArray) {\n\t\t\tparameters.put(StringUtils.substringBefore(param, \"=\"), StringUtils.substringAfter(param, \"=\"));\n\t\t}\n\t\treturn parameters;\n\t}", "title": "" }, { "docid": "322e6eda26090bc20f2a8504a99daa25", "score": "0.45963487", "text": "public abstract void fromString(String val);", "title": "" }, { "docid": "46dec39b5f46d6c3c4f14c350de69b11", "score": "0.45932654", "text": "protected abstract String normalizeToken(String token);", "title": "" }, { "docid": "3b3b931209bc60967d9163c75e14f34f", "score": "0.45877707", "text": "public interface ConversionPatternComponent {\n\n // Constants -------------------------------------------------------------------------------------------------------\n\n // Static ----------------------------------------------------------------------------------------------------------\n\n // Public ----------------------------------------------------------------------------------------------------------\n\n /**\n * @return the conversion specifier literal - the conversion specifier marker ('%') and the conversion character,\n * possibly including extra format specification, such as the format modifier, etc. May return null if the element\n * is not initialized yet.\n */\n String getLiteral();\n\n /**\n * Attempt to add to the pattern element the next character read from the pattern element literal stream. The\n * character may be accepted or not, and the decision is reflected in the return value of the add() method:\n *\n * @return AddResult.ACCEPTED if the character was accepted, and it is not the last character, more characters may\n * be added, AddResult.LAST if the character was accepted, but is the last character, and no more characters can be\n * added (an attempt to invoke add() again will throw Log4jPatternLayoutException) and AddResult.NOT_ACCEPTED if\n * the character was not accepted.\n *\n * @exception Log4jPatternLayoutException if the character cannot be possibly part of a valid pattern element\n * specification, or the internal state of this ConversionSpecifier instance does not allow adding.\n */\n AddResult add(char c) throws Log4jPatternLayoutException;\n\n /**\n * Identify the boundaries, then extract and parse the log content string value corresponding to this conversion\n * pattern component. The method returns a composite structure, including, among others, the parsed component value.\n * Must not return a null value. If no string representation of this component is found at the given position in the\n * string, Log4jPatternLayoutException is thrown.\n *\n * @exception Log4jPatternLayoutException if no valid string representation of this component is found at the given\n * position in the string,\n *\n * @param next the next pattern component that follows this one in the log4j pattern layout, or null if this is the\n * last pattern component in the pattern layout.\n */\n RenderedLogEvent parseLogContent(String logContent, int from, ConversionPatternComponent next)\n throws Log4jPatternLayoutException;\n\n /**\n * Scan the log content, starting with the 'from' index character in an attempt to find the first occurrence of\n * <b>this</b> conversion pattern component.\n *\n * @return the index of the first occurrence of this conversion pattern component, within the string, starting with\n * the 'from' index character, or null if there is no such component or if is not possible to identify an occurrence\n * of the component. The s.length() value is interpreted as \"the end of the string\" and it is a valid return value.\n */\n Integer find(String s, int from);\n\n /**\n * Interprets the given value as the value of the corresponding log event property, and injects the property into\n * the log event.\n *\n * @param lineNumber may be null\n *\n * @param value null is a noop\n *\n * @exception IllegalArgumentException if the conversion of the given value to the corresponding log event property\n * is not possible.\n */\n void injectIntoEvent(Long lineNumber, Log4jEventImpl e, Object value);\n\n}", "title": "" }, { "docid": "b8ef82dabe547850b533cbb7031594ec", "score": "0.45869434", "text": "protected Collection parseArguments(String params)\n {\n StringTokenizer tk = new StringTokenizer(params, \",\", true);\n List arguments = new LinkedList();\n String previous = \"\";\n while (tk.hasMoreTokens())\n {\n String arg = tk.nextToken();\n\n if (arg.equals(\",\") && previous.equals(\",\"))\n {\n arguments.add(\"\");\n }\n else if (!arg.equals(\",\"))\n {\n arguments.add(URLDecoder.decode(arg));\n }\n previous = arg;\n }\n return arguments;\n }", "title": "" }, { "docid": "a3979fc0781071cf0609a92925b497f0", "score": "0.4582552", "text": "@Override\n public void fromString(String s) {\n String[] data = s.substring(MOVE_MESSAGE.length()).split(\"-\");\n tile = GameController.Tile.valueOf(data[0]);\n location = new Point(Integer.parseInt(data[1]), Integer.parseInt(data[2]));\n }", "title": "" }, { "docid": "c2363182516a4e3a1e87c47ef95b6828", "score": "0.45798802", "text": "java.lang.String getPattern3();", "title": "" }, { "docid": "c2363182516a4e3a1e87c47ef95b6828", "score": "0.45798802", "text": "java.lang.String getPattern3();", "title": "" }, { "docid": "55ab754d9c5fc40405ffb19e610ae0ee", "score": "0.45735797", "text": "public abstract T parse(String parse);", "title": "" }, { "docid": "12dd386a82a21a3cd63e5f2eec07e997", "score": "0.45735705", "text": "private ServiceLogRecord parseLB(String line) {\n ServiceLogRecord record = new ServiceLogRecord(level, \"\");\n\n for (int i = 0; i<parameters.length; i++) {\n if(line.contains(startSequence) && line.contains(endSequence)) {\n String vlaue = line.trim().substring(line.trim().indexOf(startSequence)+1,line.trim().indexOf(endSequence));\n set(parameters[i], vlaue, record);\n line = line.trim().substring(line.indexOf(endSequence)+1,line.trim().length());\n } else {\n set(parameters[i], line, record);\n }\n }\n return record;\n }", "title": "" }, { "docid": "186bf02dcb066c37a6f31eafa094bbfa", "score": "0.4564751", "text": "public void setMEMO1(Char100 param){\n \n this.localMEMO1=param;\n \n\n }", "title": "" }, { "docid": "89d9e9077795bcbef1c142957d0b6920", "score": "0.4563156", "text": "public void parse() {\n Log.d(TAG, \"SerialPackage--parse: \" + mRawData);\n if(mRawData.contains(\",\")) {\n String[] msg = mRawData.split(\",\");\n if (msg.length < 10) {\n for (int i = 0; i < msg.length; i++) {\n Log.d(TAG, String.format(\"[%d] = %s\", i, msg[i]));\n }\n Log.e(TAG, \"#### parse raw data invalid\");\n return;\n }\n try {\n mSyncId = Integer.valueOf(msg[1]);\n } catch (Exception e) {\n return;\n }\n mDeviceId0 = msg[2];\n// mDeviceId0 = \"SN0301201601010001\";\n// mDeviceId0 = \"SN0303201611091873\";\n mDeviceId1 = msg[3];\n try {\n mHandle = Integer.valueOf(msg[4]);\n } catch (Exception e) {\n return;\n }\n mOperation = msg[5];\n if (msg[6].equals(\"none\"))\n mType = TYPE_NONE;\n else if (msg[6].equals(\"get\"))\n mType = TYPE_GET;\n else if (msg[6].equals(\"set\"))\n mType = TYPE_SET;\n try {\n mDataNum = Integer.valueOf(msg[7]);\n } catch (Exception e) {\n return;\n }\n\n for (int i = 0; i < mDataNum; i++) {\n try {\n mData.add(msg[8 + i]);\n } catch (Exception e) {\n return;\n }\n }\n }\n MyApplication.getInstance().getSpUtils().setKeyLoginMasterDeviceSn(mDeviceId0);\n if (mOperation.equals(\"sn\")) {\n Log.d(TAG, \"set master sn: \" + mDeviceId0);\n } else if (mOperation.equals(\"mainip\")) {\n Log.d(TAG, \"set mainip: \" + mData.get(0) + \", port: \" + mData.get(1));\n } else if (mOperation.equals(\"devip\")) {\n Log.d(TAG, \"set devip: \" + mData.get(0) + \", port: \" + mData.get(1));\n } else if (mOperation.equals(\"updateip\")) {\n Log.d(TAG, \"set updateip: \" + mData.get(0) + \", port: \" + mData.get(1));\n } else if (mOperation.equals(\"mfilename\")) {\n Log.d(TAG, \"set master file: \" + mData.get(0));\n } else if (mOperation.equals(\"sfilename\")) {\n Log.d(TAG, \"set slave file: \" + mData.get(0));\n } else if (mOperation.equals(\"ver\")) {\n Log.d(TAG, \"get version from server: \" + mData.get(0) + \",\"\n + mData.get(1) + \", \" + mData.get(2));\n //request controller's version\n ProtocolPackage pkg = null;\n if (mDeviceId1.equals(\"0\")) {\n Log.d(TAG, \"####MASTER VER\");\n pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n \"0\", \"ver\", \"get\", mData.size(), mData);\n } else {\n Log.d(TAG, \"####SLAVER VER\");\n pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"ver\", \"get\", mData.size(), mData);\n }\n\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n if (mDeviceId1.equals(\"0\")) {\n Log.d(TAG, \"update master version\");\n pkgResponse.setUpdateVersionData(mData, 1, processProtocolInfo.data.downloadUrl);\n\n } else {\n Log.d(TAG, \"update slave version\");\n pkgResponse.setUpdateVersionData(mData, 2, processProtocolInfo.data.downloadUrl);\n\n }\n }\n });\n } else if (mOperation.equals(\"systime\")) {\n Log.d(TAG, \"get system time from Android board\");\n final Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n int hour = calendar.get(Calendar.HOUR);\n int min = calendar.get(Calendar.MINUTE);\n int second = calendar.get(Calendar.SECOND);\n\n List<String> dataList = new ArrayList<>();\n dataList.add(\"\" + (year - 2000));\n dataList.add(\"\" + (month + 1));\n dataList.add(\"\" + day);\n dataList.add(\"\" + hour);\n dataList.add(\"\" + min);\n dataList.add(\"\" + second);\n dataList.add(\"+8\");\n String rsp = makeResponse(\"systime\", dataList);\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_SERIAL_WRITE);\n event.message = rsp;\n EventBus.getDefault().post(event);\n } else if (mOperation.equals(\"calmac\")) {\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"1\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n \"0\", \"calmac\", \"get\", mData.size(), mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n\n Log.d(TAG, \"###send calmac to master\");\n List<String> dataList = new ArrayList<>();\n if (MyApplication.getInstance().getSpUtils().getKeyCalMac().isEmpty()) {\n dataList.add(\"0\");\n } else {\n dataList.add(\"1\");\n dataList.add(MyApplication.getInstance().getSpUtils().getKeyCalMac());\n }\n String rsp = makeResponse(\"calmac\", dataList);\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_SERIAL_WRITE);\n event.message = rsp;\n EventBus.getDefault().post(event);\n } else if (mOperation.equals(\"cal&trsd\")) {\n Log.d(TAG, \"###send cal&trsd to master\");\n List<String> dataList = new ArrayList<>();\n if (MyApplication.getInstance().getSpUtils().getKeyCalTrsd0().isEmpty()) {\n dataList.add(\"0\");\n } else {\n dataList.add(\"1\");\n dataList.add(MyApplication.getInstance().getSpUtils().getKeyCalTrsd0());\n dataList.add(MyApplication.getInstance().getSpUtils().getKeyCalTrsd1());\n dataList.add(MyApplication.getInstance().getSpUtils().getKeyCalTrsd2());\n dataList.add(MyApplication.getInstance().getSpUtils().getKeyCalTrsd3());\n }\n String rsp = makeResponse(\"cal&trsd\", dataList);\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_SERIAL_WRITE);\n event.message = rsp;\n EventBus.getDefault().post(event);\n } else if (mOperation.equals(\"raw\")) {\n Log.d(TAG, \"raw data size: \" + mDataNum);\n Log.d(TAG, \"raw data latest: \" + mData.get(mDataNum - 1));\n //save slave\n String slaveSn = mDeviceId1;\n SlaveDevice device = new SlaveDevice();\n device.setLatestData(mData.get(mDataNum - 1));\n if (DataSupport.where(\"serialNumber = ?\", slaveSn).find(SlaveDevice.class).size() == 0) {\n //insert new data\n device.setSerialNumber(slaveSn);\n device.save();\n } else {\n device.updateAll(\"serialNumber = ?\", slaveSn);\n }\n //save the latest data\n MyApplication.getInstance().getSpUtils().setKeyLatestRaw(mData.get(mDataNum - 1));\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"raw\", \"none\", mDataNum, mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n\n } else if (mOperation.equals(\"prealarm\")) {\n MyApplication.getInstance().getSpUtils().setKeySlavePrealarm(true);\n Log.d(TAG, \"######prealarm#######\");\n //save slave\n String slaveSn = mDeviceId1;\n SlaveDevice device = new SlaveDevice();\n device.setAlarm(\"1\");\n if (DataSupport.where(\"serialNumber = ?\", slaveSn).find(SlaveDevice.class).size() == 0) {\n //insert new data\n device.setSerialNumber(slaveSn);\n device.save();\n } else {\n device.updateAll(\"serialNumber = ?\", slaveSn);\n }\n// MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_ALARM_STATUS);\n// event.message = \"prealarm\";\n// EventBus.getDefault().post(event);\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"prealarm\", \"none\", mData.size(), mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n } else if (mOperation.equals(\"alarm\")) {\n // MyApplication.getInstance().getSpUtils().setKeySlaveAlarm(true);\n Log.d(TAG, \"######alarm#######\");\n //save slave\n String slaveSn = mDeviceId1;\n SlaveDevice device = new SlaveDevice();\n device.setAlarm(\"2\");\n if (DataSupport.where(\"serialNumber = ?\", slaveSn).find(SlaveDevice.class).size() == 0) {\n //insert new data\n device.setSerialNumber(slaveSn);\n device.save();\n } else {\n device.updateAll(\"serialNumber = ?\", slaveSn);\n }\n// boolean isAllSlaveAlarmed = true;\n// List<SlaveDevice> slaveDeviceList = DataSupport.findAll(SlaveDevice.class);\n// for (SlaveDevice dev : slaveDeviceList) {\n// if(dev.getAlarm() != 2) {\n// isAllSlaveAlarmed = false;\n// }\n// }\n//\n// if(isAllSlaveAlarmed) {\n// MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_ALARM_STATUS);\n// event.message = \"alarm\";\n// EventBus.getDefault().post(event);\n// }\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"alarm\", \"none\", mData.size(), mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n\n } else if (mOperation.equals(\"cal.con\")) {\n Log.d(TAG, \"set cal con: \" + mData.get(0));\n // MyApplication.getInstance().getSpUtils().setKeyCalCon(mData.get(0));\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_UPDATE_CAL_CON);\n event.message = mData.get(0);\n EventBus.getDefault().post(event);\n\n if(!mData.get(0).equals(\"0\")){//标定失败\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"cal.con\", \"set\", mDataNum, mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n }\n\n } else if (mOperation.equals(\"cal.slurry\")) {\n Log.d(TAG, \"set cal slurry: \" + mData.get(0));\n // MyApplication.getInstance().getSpUtils().setKeyCalSlurry(mData.get(0));\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_UPDATE_CAL_SLURRY);\n event.message = mData.get(0);\n EventBus.getDefault().post(event);\n\n if(!mData.get(0).equals(\"0\")) {//标定失败\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"cal.slurry\", \"set\", mDataNum, mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n }\n\n } else if (mOperation.equals(\"almsta\")) {\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n \"0\", \"almsta\", \"none\", 1, mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n //不需要存储数据库,只需要存储当前的最新值\n // MyApplication.getInstance().getSpUtils().setKeyAlarmStatus(alarm);\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_ALARM_STATUS);\n event.message = mData.get(0);\n EventBus.getDefault().post(event);\n\n String dateStr = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date());\n Log.d(TAG, \"almsta--接收到主机的时间--\" + dateStr);\n\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n\n\n } else if (mOperation.equals(\"uselist\")) {\n Log.d(TAG, \"uselist \" + mDataNum + \" slave devices\");\n MyApplication.getInstance().getSpUtils().setKeyUseList(mData);\n ProtocolPackage pkg;\n pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n \"0\", \"uselist\", \"none\", mDataNum, mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n } else if (mOperation.equals(\"battery\")) {\n ProtocolPackage pkg;\n if (mDeviceId1.equals(\"0\")) {//主机\n pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n \"0\", \"battery\", \"none\", 1, mData);\n MyApplication.getInstance().getSpUtils().setKeyMasterBattery(Integer.valueOf(mData.get(0)));\n } else { //send slave battery 从机\n //save slave\n String slaveSn = mDeviceId1;\n SlaveDevice device = new SlaveDevice();\n device.setBattery(mData.get(0));\n if (DataSupport.where(\"serialNumber = ?\", slaveSn).find(SlaveDevice.class).size() == 0) {\n //insert new data\n device.setSerialNumber(slaveSn);\n device.save();\n } else {\n device.updateAll(\"serialNumber = ?\", slaveSn);\n }\n\n pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"battery\", \"none\", 1, mData);\n }\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n\n } else if (mOperation.equals(\"usenodesta\")) {\n for (int i = 0; i < mDataNum; i++) {\n Log.d(TAG, \"### useno \" + mDeviceId1 + \" -> i=\" + i + \" -> \" + mData.get(i));\n }\n //save slave\n SlaveDevice device = new SlaveDevice();\n device.setComm(mData.get(0));\n device.setVersionStatus(mData.get(1));\n device.setSensorStatus(mData.get(2));\n device.setMotorStatus(mData.get(3));\n device.setOnline(mData.get(4));\n if (DataSupport.where(\"serialNumber = ?\", mDeviceId1).find(SlaveDevice.class).size() == 0) {\n //insert new data\n device.setSerialNumber(mDeviceId1);\n device.save();\n } else {\n device.updateAll(\"serialNumber = ?\", mDeviceId1);\n }\n\n // List<SlaveDevice> savedDeviceList = DataSupport.findAll(SlaveDevice.class);\n\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"usenodesta\", \"none\", mData.size(), mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n\n } else if (mOperation.equals(\"matchlist\")) {\n Log.d(TAG, \"matchlist!!\");\n List<String> dataList = new ArrayList<>();\n String[] matchList = MyApplication.getInstance().getSpUtils().getKeyMatchList();\n if (matchList == null) {\n Log.d(TAG, \"match list is null\");\n dataList.add(\"0\");\n } else {\n for (int i = 0; i < matchList.length; i++) {\n dataList.add(matchList[i]);\n }\n dataList.add(0, \"1\");\n\n }\n String rsp = makeResponse(\"matchlist\", dataList);\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_SERIAL_WRITE);\n event.message = rsp;\n EventBus.getDefault().post(event);\n } else if (mOperation.equals(\"mspeed\")) {\n Log.d(TAG, \"mspeed data size: \" + mDataNum);\n MyApplication.getInstance().getSpUtils().setKeyLatestRaw(mData.get(mDataNum - 1));\n //send to server\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"mspeed\", \"none\", mDataNum, mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n\n } else if (mOperation.equals(\"almfactor\")) {\n //send to server\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"almfactor\", \"none\", mDataNum, mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n\n } else if (mOperation.equals(\"mode\")) {\n List<String> dataList = new ArrayList<>();\n if (MyApplication.getInstance().getSpUtils().getKeyMode().isEmpty()) {\n dataList.add(\"1\");\n dataList.add(\"0\");\n } else {\n dataList.add(\"1\");\n dataList.add(MyApplication.getInstance().getSpUtils().getKeyMode());\n }\n String rsp = makeResponse(\"mode\", dataList);\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_SERIAL_WRITE);\n event.message = rsp;\n EventBus.getDefault().post(event);\n\n final List<String> modeData = new ArrayList<>();\n modeData.add(\"1\");\n //send to server\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"1\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n \"0\", \"mode\", \"get\", modeData.size(), modeData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n\n } else if (mOperation.equals(\"mtrsd\")) {\n List<String> dataList = new ArrayList<>();\n if (MyApplication.getInstance().getSpUtils().getKeyMtrsd0().isEmpty()) {\n dataList.add(\"0\");\n } else {\n dataList.add(\"1\");\n dataList.add(MyApplication.getInstance().getSpUtils().getKeyMtrsd0());\n dataList.add(MyApplication.getInstance().getSpUtils().getKeyMtrsd1());\n dataList.add(MyApplication.getInstance().getSpUtils().getKeyMtrsd2());\n }\n String rsp = makeResponse(\"mtrsd\", dataList);\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_SERIAL_WRITE);\n event.message = rsp;\n EventBus.getDefault().post(event);\n } else if (mOperation.equals(\"sensorid\")) {\n List<String> dataList = new ArrayList<>();\n dataList.add(\"0\");\n dataList.add(MyApplication.getInstance().getSpUtils().getKeySensorid());//上一次的\n String rsp = makeResponse(\"sensorid\", dataList);\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_SERIAL_WRITE);\n event.message = rsp;\n EventBus.getDefault().post(event);\n\n ProtocolPackage pkg;\n pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"sensorid\", \"get\", mData.size(), mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(\n pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n //{\"clientType\":\"cc\",\"code\":\"1\",\"data\":{\"protocol\":\">>cssp,608,0,SN0301201304260001,SN0303201504230001,sensorid,1,0,6\\n\"},\"message\":\"操作成功!\",\"msgCode\":1}\n List<String> dataList = pkgResponse.getData();\n dataList.add(0, \"1\");\n String rsp = makeResponse(\"sensorid\", dataList);\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_SERIAL_WRITE);\n event.message = rsp;\n EventBus.getDefault().post(event);\n }\n });\n\n } else if (mOperation.equals(\"fin\")) {\n ProtocolPackage pkg;\n pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"fin\", \"none\", mData.size(), mData);\n Log.d(TAG, \"-> \" + pkg.toString());\n Utils.doProcessProtocolInfo(pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n } else if (mOperation.equals(\"lorafreq\")) {//信道处理\n //信道 [1,4]\n String url = Utils.SERVER_ADDR + \"/device/doGetMasterDeviceChannel/cc\";\n OkHttpUtils.post().url(url)\n .addParams(\"masterDeviceSN\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn())\n .build()\n .execute(new StringCallback() {\n @Override\n public void onError(Call call, Exception e, int id) {\n //如果失败,则获取上一次的信道值,如果上次也没有,则默认给出1\n String channel=MyApplication.getInstance().getSpUtils().getKeyMasterChannel();\n List<String> dataList = new ArrayList<>();\n if(!Utils.stringIsEmpty(channel)){\n dataList.add(channel);\n }else{\n dataList.add(\"1\");\n }\n String rsp = makeResponse(\"lorafreq\", dataList);\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_SERIAL_WRITE);\n event.message = rsp;\n EventBus.getDefault().post(event);\n\n }\n\n @Override\n public void onResponse(String response, int id) {\n Log.d(TAG, \"信道返回:\" + response);\n if (!Utils.stringIsEmpty(response)) {\n JSONObject object = null;\n try {\n object = new JSONObject(response);\n String code = object.getString(\"code\");\n if (code.equals(Utils.MSG_CODE_OK)) {\n if (object.has(\"data\")) {\n String channel = object.getString(\"data\");\n if(!Utils.stringIsEmpty(channel)){\n MyApplication.getInstance().getSpUtils().setKeyMasterChannel(channel);\n\n List<String> dataList = new ArrayList<>();\n dataList.add(channel);\n String rsp = makeResponse(\"lorafreq\", dataList);\n MessageEvent event = new MessageEvent(MessageEvent.EVENT_TYPE_SERIAL_WRITE);\n event.message = rsp;\n EventBus.getDefault().post(event);\n }\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n });\n }else if(mOperation.equals(\"motor0\")||mOperation.equals(\"motor1\")||mOperation.equals(\"motor2\")){\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, mOperation, \"none\", mData.size(), mData);\n Log.d(TAG, \"-> \" + pkg.toString());//cssp,4516,0,SN0301201304260001,SN0302201504230003,motor0,none,3,0,0,93,63\n Utils.doProcessProtocolInfo(pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n } else if(mOperation.equals(\"err\")){\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"err\", \"none\", mData.size(), mData);\n Log.d(TAG, \"-> \" + pkg.toString());//>>cssp,2596,0,SN0301201304260001,SN0302201504230003,err,none,1,15,5f\n Utils.doProcessProtocolInfo(pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n } else if(mOperation.equals(\"idle\")){\n ProtocolPackage pkg = new ProtocolPackage(MyApplication.getInstance().getSyncId(),\n \"0\", MyApplication.getInstance().getSpUtils().getKeyLoginiMasterDeviceSn(),\n mDeviceId1, \"idle\", \"none\", mData.size(), mData);\n Log.d(TAG, \"-> \" + pkg.toString());//>>cssp,108,0,SN0301201807180001,SN0302201807180006,idle,none,3,0,0,0,3f\n Utils.doProcessProtocolInfo(pkg, new Utils.ResponseCallback() {\n @Override\n public void onResponse(String response, ProcessProtocolInfo processProtocolInfo, ProtocolPackage pkgResponse) {\n\n }\n });\n }\n }", "title": "" }, { "docid": "8c227d396c0bbc86c49f77ba778584ba", "score": "0.45525694", "text": "public void setMEMO(Char100 param){\n \n this.localMEMO=param;\n \n\n }", "title": "" }, { "docid": "b9ee2f22010fdefa819ac0e0b14816c8", "score": "0.45523548", "text": "java.lang.String getPattern();", "title": "" } ]
a22d3e1a72a072e0c8a9c342e73bf5aa
Returns a string that when fed into the query parser, produces a QueryFormat equal to this one. The string returned does not contain the FORMAT keyword.
[ { "docid": "f8de92bd534c0938a510c2b7b3410f12", "score": "0.5903866", "text": "public String toQueryString() {\n StrBuilder builder = new StrBuilder();\n List<String> stringList = Lists.newArrayList();\n for (AbstractColumn col : columnPatterns.keySet()) {\n String pattern = columnPatterns.get(col);\n stringList.add(col.toQueryString() + \" \" + Query.stringToQueryStringLiteral(pattern));\n }\n builder.appendWithSeparators(stringList, \", \");\n return builder.toString(); \n }", "title": "" } ]
[ { "docid": "a7d6ec3362f79f8cc9276ee0ee86b835", "score": "0.7188065", "text": "public String getFormatName(Query query);", "title": "" }, { "docid": "609010cdfd16e84c240ad4285223963b", "score": "0.6638406", "text": "public void setFormatName(Query query, String f);", "title": "" }, { "docid": "71e157b7691d1851e4edb8f0800e8e52", "score": "0.62237483", "text": "public String format() {\n return this.format;\n }", "title": "" }, { "docid": "3ea5e1526224d4c21c590cd3ba8a8eb9", "score": "0.6196209", "text": "public abstract String format();", "title": "" }, { "docid": "c1303fbacf8eb88eea6941f893146ff1", "score": "0.617839", "text": "private static String formatQuery() {\r\n\t\tString query = \"select \" + columns + \" from \" + table;\r\n\t\tquery = setTimeRange(query);\r\n\r\n\t\tif (limit != null) {\r\n\t\t\tquery = query + \" limit \" + limit + \" \";\r\n\t\t}\r\n\t\treturn query;\r\n\t}", "title": "" }, { "docid": "59990e2ae9d6e50f4a3816994703c85e", "score": "0.6166679", "text": "public java.lang.CharSequence getFormat() {\n return format;\n }", "title": "" }, { "docid": "2b874f4a0da3eb48899d599efb011b39", "score": "0.61548907", "text": "public String getFormat() {\n return format;\n }", "title": "" }, { "docid": "2b874f4a0da3eb48899d599efb011b39", "score": "0.61548907", "text": "public String getFormat() {\n return format;\n }", "title": "" }, { "docid": "2b874f4a0da3eb48899d599efb011b39", "score": "0.61548907", "text": "public String getFormat() {\n return format;\n }", "title": "" }, { "docid": "2b874f4a0da3eb48899d599efb011b39", "score": "0.61548907", "text": "public String getFormat() {\n return format;\n }", "title": "" }, { "docid": "2b874f4a0da3eb48899d599efb011b39", "score": "0.61548907", "text": "public String getFormat() {\n return format;\n }", "title": "" }, { "docid": "2b874f4a0da3eb48899d599efb011b39", "score": "0.61548907", "text": "public String getFormat() {\n return format;\n }", "title": "" }, { "docid": "38cc8ff063941d99d3c440bf30580bdd", "score": "0.61448413", "text": "public java.lang.CharSequence getFormat() {\n return format;\n }", "title": "" }, { "docid": "c0c55ed894ea93bd1ebf74ddd2bd069c", "score": "0.6144348", "text": "public String getFormat() {\n return this.format;\n }", "title": "" }, { "docid": "d57d98489da6a8daeb425e1b0b2e7383", "score": "0.6131713", "text": "public QueryFormat() {\n columnPatterns = Maps.newHashMap();\n }", "title": "" }, { "docid": "3f3786c9bd88bad06a6ad600f6b43a9b", "score": "0.6104056", "text": "public String getFormat(){\r\n\t\treturn format;\r\n\t}", "title": "" }, { "docid": "65ff0a7144878e03a0f29920bfe88f2b", "score": "0.6077467", "text": "String getFormat() {\n\t\treturn format;\n\t}", "title": "" }, { "docid": "105840191e56fe5590e137b1742ab0cc", "score": "0.60440177", "text": "public java.lang.String getFormat()\n {\n return \"RAW\";\n }", "title": "" }, { "docid": "51c803de867e588fb8dbaf5c278b6f08", "score": "0.6033997", "text": "public String getUriFormat() {\n return \"&format=\" + encode(this.getFormat());\n }", "title": "" }, { "docid": "c138f855be47c4ffa47bf794351ee15c", "score": "0.5982613", "text": "public String getFormat() {\n\t\treturn this.format;\n\t}", "title": "" }, { "docid": "985379f187fa3ed64e0a4ec5775c21eb", "score": "0.5972046", "text": "public String getFormat( ) {\r\n\r\n return format.get( 0 );\r\n }", "title": "" }, { "docid": "6f7138573b31cdd32b2944bb7d777bd4", "score": "0.59635466", "text": "public String getNewFormat() {\n return newFormat;\n }", "title": "" }, { "docid": "fa4caf03474688ddd33dc26ce7613acc", "score": "0.5909982", "text": "public String format(int iFormat);", "title": "" }, { "docid": "e0257964ed682cb1bc9d7b42945208ca", "score": "0.58798087", "text": "public String getQueryTemplate() {\n return queryTemplate;\n }", "title": "" }, { "docid": "2b30f2f906f4852d3585007c4ca3d208", "score": "0.5866039", "text": "public abstract String get_format_str(/*>>>@GuardSatisfied NumericFloat this,*/ OutputFormat format);", "title": "" }, { "docid": "2ebb7e5ceaa47e2939fae86f1a8af2b3", "score": "0.58373356", "text": "String getCommandFormat();", "title": "" }, { "docid": "bdb0304f8ec05d597e1c945ccb2a116e", "score": "0.57836115", "text": "public Analyze.Builder format(String format) {\r\n return setParameter(\"format\", format);\r\n }", "title": "" }, { "docid": "456d5667f0762c16bb9246c349a10529", "score": "0.57705766", "text": "String getFormatString();", "title": "" }, { "docid": "452f9ee5a2667d153b1a596def7fa713", "score": "0.57431823", "text": "@java.lang.Override\n public com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat getFormat() {\n com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat result =\n com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.forNumber(format_);\n return result == null\n ? com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.UNRECOGNIZED\n : result;\n }", "title": "" }, { "docid": "375c3e539da6dac790552682055a994f", "score": "0.5729165", "text": "public String toDatabaseFormat(){\r\n\t\tString tmp=\" \";\r\n\t\tfor(Interpretation i:this.interpretations){\r\n\t\t\ttmp+=i.getDatabaseFormat();\r\n\t\t\ttmp+=\" ---------------------------------------------------------------\\n\";\r\n\t\t}\r\n\t\treturn tmp;\r\n\t}", "title": "" }, { "docid": "6a1330d065d54ce8b4b276876915ae26", "score": "0.5710734", "text": "@java.lang.Override\n public com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat getFormat() {\n com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat result =\n com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.forNumber(format_);\n return result == null\n ? com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.UNRECOGNIZED\n : result;\n }", "title": "" }, { "docid": "c3ff0f84e92506e26c2dbe43f0c6865f", "score": "0.56870914", "text": "public StringBuilder getQueryString() {\n StringBuilder rtn = new StringBuilder(100);\n rtn.append(\"SELECT \");\n int i = 0;\n Iterator<DbExpr> fieldi = columnList.iterator();\n Set<TableProfile> tables = new HashSet<>();\n selectTables(tables);\n while (fieldi.hasNext()) {\n DbExpr col = fieldi.next();\n if (i != 0) {\n rtn.append(\", \");\n }\n rtn.append(getString(col));\n String as = asMap.get(col);\n if (as != null) {\n rtn.append(\" AS \").append(as);\n }\n i++;\n }\n i = 0;\n rtn.append(\" FROM \");\n if (tables.size() == 0) {\n// try {\n// Props props = Props.singleton(\"dbvendor\");\n// String dummyTable = props.getProperty(db.getProperty(\"vendor\") + \".dummyTable\");\n// if (dummyTable != null) {\n// // for Oracle\n// rtn += dummyTable;\n// }\n// } catch (IOException e) {\n// throw new Exception(e);\n// }\n rtn.append(\"DUAL\");//works for most db's\n } else {\n for (TableProfile tab : tables) {\n if (i++ != 0) {\n rtn.append(\", \");\n }\n rtn.append(tab.fullname());\n }\n }\n if (where != null) {\n rtn.append(\" WHERE \");\n rtn.append(where.getQueryString());\n }\n rtn.append(orderByClause(orderBy));\n if (limit != null) {\n rtn.append(\" \").append(limit.getQueryString());\n }\n if (offset != null) {\n rtn.append(\" \").append(offset.getQueryString());\n }\n dbg.VERBOSE(rtn.toString());\n return rtn;\n }", "title": "" }, { "docid": "9b2802371e88be9104ff62afb29451c9", "score": "0.56790525", "text": "public String getRecordFormat();", "title": "" }, { "docid": "98a7c3ce85e95debb5660acab1316b36", "score": "0.5637614", "text": "String getFormat() {\n String property = getProperty(PropertyNames.CONTAINER_FORMAT);\n if (property != null) {\n return property;\n }\n return container.format;\n }", "title": "" }, { "docid": "495ec81525ba1d3fb5a139f4e3fe47d7", "score": "0.5618877", "text": "public String format_using(/*>>>@GuardSatisfied NumericFloat this,*/ OutputFormat format) {\n\n if (ppt == null) {\n return (String.format(\"proto ppt [class %s] format %s\", getClass(),\n get_format_str(format)));\n }\n String fmt_str = get_format_str(format);\n String v1 = null;\n String v2 = null;\n\n v1 = var1().name_using(format);\n v2 = var2().name_using(format);\n\n // Note that we do not use String.replaceAll here, because that's\n // inseparable from the regex library, and we don't want to have to\n // escape v1 with something like\n // v1.replaceAll(\"([\\\\$\\\\\\\\])\", \"\\\\\\\\$1\")\n fmt_str = UtilMDE.replaceString(fmt_str, \"%var1%\", v1);\n fmt_str = UtilMDE.replaceString(fmt_str, \"%var2%\", v2);\n\n if (false && (format == OutputFormat.DAIKON)) {\n fmt_str = \"[\" + getClass() + \"]\" + fmt_str + \" (\"\n + var1().get_value_info() + \", \" + var2().get_value_info() + \")\";\n }\n return fmt_str;\n }", "title": "" }, { "docid": "7b56c1b4d6de119ffe3b4e6b70ca1b1e", "score": "0.56052023", "text": "String getFormatted();", "title": "" }, { "docid": "69499235c88cb5a5a33d1165549bd870", "score": "0.5569026", "text": "@Override\n public String formatDateTimeToString() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(DateTimeFormat.FORMAT_16.getFormatStyle());\n return by.format(formatter);\n }", "title": "" }, { "docid": "89c986af4f5f6b2d688543565050325c", "score": "0.5543671", "text": "@Override\n public String getQuery() {\n String query = \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> \"\n + \"SELECT ?lemma ?prt_form ?prep ?dobj_form ?e1_arg ?e2_arg WHERE {\"\n + \"{?y <conll:cpostag> \\\"VB\\\" .}\"\n + \"UNION\"\n + \"{?y <conll:cpostag> \\\"VBD\\\" .}\"\n + \"UNION\"\n + \"{?y <conll:cpostag> \\\"VBP\\\" .}\"\n + \"UNION\"\n + \"{?y <conll:cpostag> \\\"VBZ\\\" .}\"\n + \"?y <conll:form> ?lemma . \"\n + \"?e1 <conll:head> ?y . \"\n + \"?e1 <conll:deprel> ?deprel. \"\n + \"FILTER regex(?deprel, \\\"subj\\\") .\"\n + \"?p <conll:head> ?y . \"\n + \"?p <conll:deprel> \\\"prep\\\" . \"\n + \"?p <conll:form> ?prep . \"\n + \"?e2 <conll:head> ?p . \"\n + \"?e2 <conll:deprel> \\\"pobj\\\". \"\n + \"OPTIONAL {\"\n + \"?dobj <conll:head> ?y . \"\n + \"?dobj <conll:form> ?dobj_form .\"\n + \"?dobj <conll:deprel> \\\"dobj\\\" .\"\n + \"}\"\n + \"OPTIONAL {\"\n + \"?prt <conll:head> ?y . \"\n + \"?prt <conll:form> ?prt_form .\"\n + \"?prt <conll:deprel> \\\"prt\\\" .\"\n + \"}\"\n + \"?e1 <own:senseArg> ?e1_arg. \"\n + \"?e2 <own:senseArg> ?e2_arg. \"\n + \"}\";\n return query;\n }", "title": "" }, { "docid": "908d2ec6681826fe66b1e36b82362a42", "score": "0.5513843", "text": "public Object getFormat() {\n return null;\n }", "title": "" }, { "docid": "61de5a543e4e62959c1ac715e1cc138a", "score": "0.546579", "text": "com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat getFormat();", "title": "" }, { "docid": "cd33aaeb36e33cb53a6a7a452a01ec29", "score": "0.5458921", "text": "private String getFormatString() {\n StringBuilder format = new StringBuilder();\n format.append(\"%\").append(getWidth()).append('.').append(getDecimals()).append(\"f\");\n return format.toString();\n }", "title": "" }, { "docid": "5e80ad83430c21c810577da2c162f668", "score": "0.54526407", "text": "private static String format(String sql) {\r\n\r\n if (sql.indexOf(\"\\\"\") > 0 || sql.indexOf(\"'\") > 0) {\r\n return sql;\r\n }\r\n\r\n String formatted;\r\n\r\n if (sql.toLowerCase().startsWith(\"create table\")) {\r\n\r\n StringBuffer result = new StringBuffer();\r\n StringTokenizer tokens = new StringTokenizer(sql, \"(,)\", true);\r\n\r\n int depth = 0;\r\n\r\n while (tokens.hasMoreTokens()) {\r\n String tok = tokens.nextToken();\r\n if (StringHelper.CLOSE_PAREN.equals(tok)) {\r\n depth--;\r\n if (depth == 0) result.append(\"\\n\");\r\n }\r\n result.append(tok);\r\n if (StringHelper.COMMA.equals(tok) && depth == 1) result.append(\"\\n \");\r\n if (StringHelper.OPEN_PAREN.equals(tok)) {\r\n depth++;\r\n if (depth == 1) result.append(\"\\n \");\r\n }\r\n }\r\n\r\n formatted = result.toString();\r\n\r\n } else {\r\n formatted = sql;\r\n }\r\n\r\n return formatted;\r\n }", "title": "" }, { "docid": "e048b3cf9f8117827097af9dd05f428d", "score": "0.5435326", "text": "@Override\n public String getPreparedStatementString()\n {\n sqlQuery.append( \"SELECT * \" );\n sqlQuery.append( \"FROM template_definitions \" );\n sqlQuery.append( \"WHERE template_definitions.template_id = ? ;\");\n\n return this.sqlQuery.toString();\n }", "title": "" }, { "docid": "f8f7cf99ef1f47f3b17189ff8d83a062", "score": "0.54347956", "text": "private String createQuery() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(SELECT);\r\n\t\tsb.append(this.campo);\r\n\t\tsb.append(FROM);\r\n\t\tsb.append(this.tabla);\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "1097874af4296e1ad0c375329b03009e", "score": "0.5409957", "text": "public DateTimeFormatter getFormat() {\n return format;\n }", "title": "" }, { "docid": "930aaf7cc4da349dda4c8ddd43611b0a", "score": "0.5408775", "text": "@Override\n\t\tpublic String format(IQuantity q) {\n\t\t\tlong rest = q.subtract(SECONDS_UNIT.quantity(q.clampedFloorIn(SECONDS_UNIT))).clampedFloorIn(fractionUnit);\n\t\t\tStringBuffer out = new StringBuffer(numDigits + 1);\n\t\t\tout.append(DecimalFormatSymbols.getInstance().getDecimalSeparator());\n\t\t\tString restStr = Long.toString(rest);\n\t\t\tout.append(\"000000000000000000000000\", restStr.length(), numDigits); //$NON-NLS-1$\n\t\t\tout.append(restStr);\n\t\t\treturn out.toString();\n\t\t}", "title": "" }, { "docid": "4309ccbdb71b6d582b34841207a4b4b4", "score": "0.5405017", "text": "public String toString() {\n return toString(MessageFormat.get(this));\n }", "title": "" }, { "docid": "e5a665744d41c77e6dae63cd626c01dc", "score": "0.54026073", "text": "@Override\n\tpublic String getFormatString() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f854ff6830dd7ba91d4d8274258c4708", "score": "0.5350188", "text": "public Set<TextTransformerService.Option> getFormatOptions(Query query);", "title": "" }, { "docid": "c2e2ba3334dae5cdf69369aebcb6ed26", "score": "0.534866", "text": "private String constructQuery() {\r\n\t\tif (logger.isTraceEnabled()) {\r\n\t\t\tlogger.trace(\"ENTER constructQuery()\");\r\n\t\t}\r\n\t\tStringBuffer queryBuffer = new StringBuffer();\r\n\t\tqueryBuffer.append(\"SELECT \");\r\n\t\tfor (Attribute attr : attributes) {\r\n\t\t\tqueryBuffer.append(attr.getAttributeSchemaName()).append(\", \");\r\n\t\t}\r\n\t\tqueryBuffer.replace(queryBuffer.length() - 2, queryBuffer.length(), \" \");\r\n\t\tqueryBuffer.append(\"FROM \").append(_extentName);\r\n\t\tif (logger.isTraceEnabled()) {\r\n\t\t\tlogger.trace(\"RETURN constructQuery() with \" + \r\n\t\t\t\t\tqueryBuffer.toString());\r\n\t\t}\t\t\r\n\t\treturn queryBuffer.toString();\r\n\t}", "title": "" }, { "docid": "9f22f20b2deef5a43d54d86b2d3213f7", "score": "0.53420615", "text": "public int getFormatID() {\n return RAW_FORMAT;\n }", "title": "" }, { "docid": "0c04fb472a3007428a83d97cb338e994", "score": "0.5339479", "text": "@Override\n public String getFormatHelp() {\n return null;\n }", "title": "" }, { "docid": "743f6db0a2fd598e10f158ac529df173", "score": "0.5330369", "text": "public int getFormat() {\n return format_;\n }", "title": "" }, { "docid": "6f67fb8898b09a9072b8b80959477270", "score": "0.530827", "text": "public int getFormat() {\n return format_;\n }", "title": "" }, { "docid": "97dc43f1390b049ed7d4d09b5290693e", "score": "0.5300514", "text": "public Builder clearFormat() {\n bitField0_ = (bitField0_ & ~0x00000020);\n format_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d102b5246c171199c69a8f40ccaf2ed0", "score": "0.529314", "text": "public int getFormat() {\n return this.format;\n }", "title": "" }, { "docid": "170023925db8cb014fc95ae8bb745b03", "score": "0.52922827", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn query;\r\n\t}", "title": "" }, { "docid": "4581c596930d37f1e0011679933babf3", "score": "0.52884644", "text": "@Override\n\tpublic String format() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append((getOperation() != null) ? Attribute.OPERATION_CONSTRAINT : Attribute.SERVICE_CONSTRAINT);\n\t\tbuffer.append(br.ufpe.cin.dsoa.util.Constants.TOKEN);\n\t\tbuffer.append(getAttributeId());\n\t\tbuffer.append(br.ufpe.cin.dsoa.util.Constants.TOKEN);\n\t\tbuffer.append((getOperation() != null) ? getOperation() + br.ufpe.cin.dsoa.util.Constants.TOKEN : \"\");\n\t\tbuffer.append(getExpression().getAlias());\n\t\treturn buffer.toString();\n\t}", "title": "" }, { "docid": "8f2fd496e864e42cd39242ba32a76de2", "score": "0.526255", "text": "public Format getFormatterType();", "title": "" }, { "docid": "6083f46f63f10951a313a13340ace434", "score": "0.5257426", "text": "public String toString() {\n return SQLStringVisitor.getSQLString(this);\n }", "title": "" }, { "docid": "13912e71e75f3ecf2424f4926e8606b3", "score": "0.52427506", "text": "public static String format(Object value, Format format) {\r\n\tif (value == null) {\r\n\t return null;\r\n\t}\r\n\tif (format == null) {\r\n\t return value.toString();\r\n\t}\r\n\ttry {\r\n\t return format.format(value);\r\n\t} catch (Throwable ex) {\r\n\t return value.toString();\r\n\t}\r\n }", "title": "" }, { "docid": "5be55ce83f02cc740d84199d164bba0d", "score": "0.5239551", "text": "@ModelAttribute(\"formatter\")\n public StringFormatHelper getFormatter() {\n return StringFormatHelper.getInstance();\n }", "title": "" }, { "docid": "969f13a16736576397e9ad2dfdc18e8d", "score": "0.52352536", "text": "@Override\n public String getSQL() {\n String sql;\n if (mSql == null) {\n sql = (mDirectSql != null ? mDirectSql : \"\");\n } else {\n sql = mSql;\n }\n\n int maxLen = ClientProperties.getInt(ClientProperties.DB_DISPLAY_SQL_STRING_MAXLEN);\n if (maxLen > 0 && sql.length() > maxLen) {\n\n sql = sql.substring(0, maxLen) + \"...\";\n }\n return sql;\n }", "title": "" }, { "docid": "5219391e42530d91a9efca9d47c5826a", "score": "0.51838386", "text": "public FormatType getType();", "title": "" }, { "docid": "1eb2575ef4c5f59d00ccb1cd47cf8747", "score": "0.51778334", "text": "@JSProperty(\"format\")\n @Nullable\n String getFormat();", "title": "" }, { "docid": "a1c5065c2b497212b932b8817dcb9206", "score": "0.51777864", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getTimePeriod() != null)\n sb.append(\"TimePeriod: \").append(getTimePeriod()).append(\",\");\n if (getGroupBy() != null)\n sb.append(\"GroupBy: \").append(getGroupBy()).append(\",\");\n if (getGranularity() != null)\n sb.append(\"Granularity: \").append(getGranularity()).append(\",\");\n if (getFilter() != null)\n sb.append(\"Filter: \").append(getFilter()).append(\",\");\n if (getMetrics() != null)\n sb.append(\"Metrics: \").append(getMetrics()).append(\",\");\n if (getNextToken() != null)\n sb.append(\"NextToken: \").append(getNextToken()).append(\",\");\n if (getMaxResults() != null)\n sb.append(\"MaxResults: \").append(getMaxResults()).append(\",\");\n if (getSortBy() != null)\n sb.append(\"SortBy: \").append(getSortBy());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "2146482687e4b8709cbba078bae6a61c", "score": "0.51762766", "text": "public String toHql() {\r\n\r\n StringBuilder builder = new StringBuilder().append(this.name).append('(');\r\n\r\n for (int i = 0, m = this.fields.size(); i < m; i++) {\r\n\r\n FieldDefinition definition = this.fields.get(i);\r\n\r\n if (i != 0) {\r\n builder.append(\", \");\r\n }\r\n\r\n builder.append(definition.toHql());\r\n }\r\n\r\n builder.append(')');\r\n return builder.toString();\r\n }", "title": "" }, { "docid": "3a0c6cf2fc1c674f4c468452ad0f619f", "score": "0.51747745", "text": "public NumberFormat getFormat() {\n\t\treturn format;\n\t}", "title": "" }, { "docid": "1d9526c7f356de8e38137f8a0cb67ca4", "score": "0.5142467", "text": "public SparqlURIBuilder(String preQuery, String graph, String query, String format) {\n super();\n// this.setPreQuery(\"http://opendata.caceres.es/sparql\");\n this.setPreQuery( preQuery );\n this.setGraph( graph );\n this.setSparqlQuery( query );\n this.setFormat( format );\n\n }", "title": "" }, { "docid": "d6dde1a6835840f1a06950941332e98e", "score": "0.513087", "text": "public String storageFormat() {\n return String.format(\"D | %s | %s\",\n super.storageFormat(),\n this.time.format()\n );\n }", "title": "" }, { "docid": "e32d34cdcd57957c6e334afc9e436da6", "score": "0.5101516", "text": "public String toString() {\n return String\n .format(\"%s %nSupported Audio Formats: %s %nSupported Playlist Formats: %s\",\n super.toString(),\n audioSpecification, mediaType);\n }", "title": "" }, { "docid": "ed7fb838e5e5d5a377b5860a0917fc07", "score": "0.50842744", "text": "@java.lang.Override\n public int getFormatValue() {\n return format_;\n }", "title": "" }, { "docid": "fa71ab178aff05dc89c1396d3332a152", "score": "0.5081829", "text": "@Override\n\tpublic void setFormatString(String fmtStr) {\n\n\t}", "title": "" }, { "docid": "dc24bef51ee986342f0c936824d5d5b3", "score": "0.5080124", "text": "String getSqlStringTemplate();", "title": "" }, { "docid": "5ee4a7062c609a40c715fdf076a4d6e9", "score": "0.50757873", "text": "public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getUspsInternationalCgrSubmissionId()));\n return sb.toString();\n }", "title": "" }, { "docid": "1df6064b48f5929f9d02c3f9a3f92aec", "score": "0.5060146", "text": "void setFormat(String format) {\n\t\tthis.format = format;\n\t}", "title": "" }, { "docid": "3a1ed36e1322aaa4c3e0fbbe812ce1a6", "score": "0.5053212", "text": "public String toKeyPattern() {\n return String.format(\"%s:%s\", prefix, query);\n }", "title": "" }, { "docid": "7fdebc7cbd3d6073deb82fb1920bfabc", "score": "0.50507116", "text": "@java.lang.Override\n public int getFormatValue() {\n return format_;\n }", "title": "" }, { "docid": "19b7c65af7546981c9ae3daf325186be", "score": "0.5042787", "text": "public void setFormatName(String formatName) {\r\n\t\tthis.formatName = formatName;\r\n\t}", "title": "" }, { "docid": "6e10bc97577238fbbd2962651391c31b", "score": "0.50421965", "text": "public void setFormat(String format) {\n this.format = format;\n }", "title": "" }, { "docid": "ca49387f57f52067231d1bfca2113b0e", "score": "0.5035944", "text": "public String toStringFormat(GregorianCalendar dateToParse){\n \tString formatedDate = this.format.format( dateToParse.getTime());\r\n \treturn formatedDate;\r\n\r\n\t}", "title": "" }, { "docid": "9a5e1d5bea3a4700cf02ba7f753c7751", "score": "0.50238717", "text": "public SchemaExport setFormat(boolean format) {\n \t\tthis.formatter = ( format ? FormatStyle.DDL : FormatStyle.NONE ).getFormatter();\n \t\treturn this;\n \t}", "title": "" }, { "docid": "820896fe6faf4d238e3f2f63b7e4b6af", "score": "0.501161", "text": "public String format(Object expression) {\n return format(expression, chooseDateFormatPattern(expression));\n }", "title": "" }, { "docid": "c867c9df6fea7a1b053d6e362171bd94", "score": "0.50102377", "text": "protected String translateNgsildQueryToSql(QueryParams qp) throws ResponseException {\n\t\tStringBuilder fullSqlWhereProperty = new StringBuilder(70);\n\n\t\t// https://stackoverflow.com/questions/3333974/how-to-loop-over-a-class-attributes-in-java\n\t\tReflectionUtils.doWithFields(qp.getClass(), field -> {\n\t\t\tString dbColumn, sqlOperator;\n\t\t\tString sqlWhereProperty = \"\";\n\n\t\t\tfield.setAccessible(true);\n\t\t\tString queryParameter = field.getName();\n\t\t\tObject fieldValue = field.get(qp);\n\t\t\tif (fieldValue != null) {\n\n\t\t\t\tlogger.trace(\"Query parameter:\" + queryParameter);\n\n\t\t\t\tString queryValue = \"\";\n\t\t\t\tif (fieldValue instanceof String) {\n\t\t\t\t\tqueryValue = fieldValue.toString();\n\t\t\t\t\tlogger.trace(\"Query value: \" + queryValue);\n\t\t\t\t}\n\n\t\t\t\tswitch (queryParameter) {\n\t\t\t\tcase NGSIConstants.QUERY_PARAMETER_IDPATTERN:\n\t\t\t\t\tdbColumn = DBConstants.DBCOLUMN_ID;\n\t\t\t\t\tsqlOperator = \"~\";\n\t\t\t\t\tsqlWhereProperty = dbColumn + \" \" + sqlOperator + \" '\" + queryValue + \"'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase NGSIConstants.QUERY_PARAMETER_TYPE:\n\t\t\t\tcase NGSIConstants.QUERY_PARAMETER_ID:\n\t\t\t\t\tdbColumn = queryParameter;\n\t\t\t\t\tif (queryValue.indexOf(\",\") == -1) {\n\t\t\t\t\t\tsqlOperator = \"=\";\n\t\t\t\t\t\tsqlWhereProperty = dbColumn + \" \" + sqlOperator + \" '\" + queryValue + \"'\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsqlOperator = \"IN\";\n\t\t\t\t\t\tsqlWhereProperty = dbColumn + \" \" + sqlOperator + \" ('\" + queryValue.replace(\",\", \"','\") + \"')\";\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase NGSIConstants.QUERY_PARAMETER_ATTRS:\n\t\t\t\t\tdbColumn = \"data\";\n\t\t\t\t\tsqlOperator = \"?\";\n\t\t\t\t\tif (queryValue.indexOf(\",\") == -1) {\n\t\t\t\t\t\tsqlWhereProperty = dbColumn + \" \" + sqlOperator + \"'\" + queryValue + \"'\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsqlWhereProperty = dbColumn + \" \" + sqlOperator + \" '\"\n\t\t\t\t\t\t\t\t+ queryValue.replace(\",\", \"' OR \" + dbColumn + \" \" + sqlOperator + \"'\") + \"'\";\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase NGSIConstants.QUERY_PARAMETER_GEOREL:\n\t\t\t\t\tif (fieldValue instanceof GeoqueryRel) {\n\t\t\t\t\t\tGeoqueryRel gqr = (GeoqueryRel) fieldValue;\n\t\t\t\t\t\tlogger.trace(\"Georel value \" + gqr.getGeorelOp());\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsqlWhereProperty = translateNgsildGeoqueryToPostgisQuery(gqr, qp.getGeometry(),\n\t\t\t\t\t\t\t\t\tqp.getCoordinates(), qp.getGeoproperty());\n\t\t\t\t\t\t} catch (ResponseException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase NGSIConstants.QUERY_PARAMETER_QUERY:\n\t\t\t\t\tsqlWhereProperty = queryValue;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfullSqlWhereProperty.append(sqlWhereProperty);\n\t\t\t\tif (!sqlWhereProperty.isEmpty())\n\t\t\t\t\tfullSqlWhereProperty.append(\" AND \");\n\t\t\t}\n\t\t});\n\n\t\tString tableDataColumn;\n\t\tif (qp.getKeyValues()) {\n\t\t\tif (qp.getIncludeSysAttrs()) {\n\t\t\t\ttableDataColumn = DBConstants.DBCOLUMN_KVDATA;\n\t\t\t} else { // without sysattrs at root level (entity createdat/modifiedat)\n\t\t\t\ttableDataColumn = DBConstants.DBCOLUMN_KVDATA + \" - '\" + NGSIConstants.NGSI_LD_CREATED_AT + \"' - '\"\n\t\t\t\t\t\t+ NGSIConstants.NGSI_LD_MODIFIED_AT + \"'\";\n\t\t\t}\n\t\t} else {\n\t\t\tif (qp.getIncludeSysAttrs()) {\n\t\t\t\ttableDataColumn = DBConstants.DBCOLUMN_DATA;\n\t\t\t} else {\n\t\t\t\ttableDataColumn = DBConstants.DBCOLUMN_DATA_WITHOUT_SYSATTRS; // default request\n\t\t\t}\n\t\t}\n\n\t\tString dataColumn = tableDataColumn;\n\t\tif (qp.getAttrs() != null) {\n\t\t\tString expandedAttributeList = \"'\" + NGSIConstants.JSON_LD_ID + \"','\" + NGSIConstants.JSON_LD_TYPE + \"','\"\n\t\t\t\t\t+ qp.getAttrs().replace(\",\", \"','\") + \"'\";\n\t\t\tif (qp.getIncludeSysAttrs()) {\n\t\t\t\texpandedAttributeList += \",\" + NGSIConstants.NGSI_LD_CREATED_AT + \",\"\n\t\t\t\t\t\t+ NGSIConstants.NGSI_LD_MODIFIED_AT;\n\t\t\t}\n\t\t\tdataColumn = \"(SELECT jsonb_object_agg(key, value) FROM jsonb_each(\" + tableDataColumn + \") WHERE key IN ( \"\n\t\t\t\t\t+ expandedAttributeList + \"))\";\n\t\t}\n\t\tString sqlQuery = \"SELECT \" + dataColumn + \" as data FROM \" + DBConstants.DBTABLE_ENTITY + \" \";\n\t\tif (fullSqlWhereProperty.length() > 0)\n\t\t\tsqlQuery += \"WHERE \" + fullSqlWhereProperty.toString() + \" 1=1 \";\n\t\t// order by ?\n\n\t\treturn sqlQuery;\n\t}", "title": "" }, { "docid": "7811c0413c31480d481224d3e96ca60f", "score": "0.50097996", "text": "public static String formatBasicSQL(String sql){\n\t\tif(StringUtils.isEmpty(sql)){\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\t//格式完后,1.减少前缀4个空格 2.替换首行的换行 3.变换为大写 \n\t\treturn FormatStyle.BASIC.getFormatter().format(sql.trim()).replaceAll(\"\\\\n\\\\s{4}+\",\"\\n\").substring(1);\n\t}", "title": "" }, { "docid": "f033c39aa5b9aed7ab8a9c87ea63d664", "score": "0.50067884", "text": "public static String formatAboutSyntax(String syntax) {\n return \"~FC\" + syntax + \"~RS\\n\\n\";\n }", "title": "" }, { "docid": "dffaa28d56b87f65f4880f3b1564fe14", "score": "0.5004528", "text": "public void setFormat (Format format) {\n this.format = format;\n }", "title": "" }, { "docid": "23fa93677db1334b9c123d3400ea424f", "score": "0.49972543", "text": "public String format(DateTimeFormatter paramDateTimeFormatter)\n/* */ {\n/* 516 */ Objects.requireNonNull(paramDateTimeFormatter, \"formatter\");\n/* 517 */ return paramDateTimeFormatter.format(this);\n/* */ }", "title": "" }, { "docid": "a855ae9a48c2d1b3c2c7c0245fec98bc", "score": "0.49914098", "text": "public final String toString() {\n\t\t\n\t\tString formatted = formatter.format(timestamp.getTime());\n\t\tif (formatted.endsWith(\"+0000\"))\n\t\t\tformatted = formatted.substring(0, formatted.length() - 6) + \"Z\";\n\t\treturn formatted;\n\t}", "title": "" }, { "docid": "858296e3706b8257f6d242d773d2a9a7", "score": "0.49905017", "text": "public String toString(int format){\r\n\t\t\r\n\t\tswitch (format) {\r\n\t\tcase DD:\treturn getNSLetter() + \" \" + getLatDeg(format) + \"° \"\r\n\t\t\t\t\t\t+ getEWLetter() + \" \" + getLonDeg(format)+ \"° \";\r\n\t\tcase CW:\tformat = DMM;\t\r\n\t\t\t\t\treturn getNSLetter() + \" \" + getLatDeg(format) + \"° \" + getLatMin(format) + \" \"\r\n\t\t\t\t\t\t+ getEWLetter() + \" \" + getLonDeg(format) + \"° \" + getLonMin(format);\r\n\t\tcase DMM:\treturn getNSLetter() + \" \" + getLatDeg(format) + \"° \" + getLatMin(format) + \" \"\r\n\t\t\t\t\t\t+ getEWLetter() + \" \" + getLonDeg(format) + \"° \" + getLonMin(format);\r\n\t\tcase DMS:\treturn getNSLetter() + \" \" + getLatDeg(format) + \"° \" + getLatMin(format) + \"\\' \" + getLatSec(format) + \"\\\" \" \r\n\t\t\t\t\t\t+ getEWLetter() + \" \" + getLonDeg(format) + \"° \" + getLonMin(format) + \"\\' \" + getLonSec(format) + \"\\\" \";\r\n\t\tcase UTM:\treturn getUTMZone() + \" N \" + getUTMNorthing()+ \" E \" + getUTMEasting() ;\r\n\r\n\t\tdefault: return \"Unknown Format: \" + format;\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "59fc3753a65e8082562631ebc62d541f", "score": "0.49882203", "text": "@Override\n public String getTotaalPrijsFormat() {\n return formatGeld(totaalPrijs);\n }", "title": "" }, { "docid": "7c0d80076ab5d738cc624f54b2367509", "score": "0.49835807", "text": "public String toSQLString() {\n return \"(\"+ selectValidatedQuery.getStatement().toSQL92String()+\")\";\n }", "title": "" }, { "docid": "21fe1ac33d15c6207444dbff5a050a13", "score": "0.49825177", "text": "private static String formatRetrieveQuery(Map<Fields, String> insightParamsMap, String schema) {\n\n\t\tStringBuilder sql = new StringBuilder(400);\n\n\t\tgenerateSelectSectionOfQuery(sql, schema, insightParamsMap);\n\n\t\tgenerateJoinSectionOfQuery(sql, schema, insightParamsMap);\n\n\t\tgenerateWhereClauseOfQuery(sql, insightParamsMap );\n\n\t\tgeneratePaginationClauseOfQuery(sql, insightParamsMap);\n\n\t\tlog.debug(sql);\n\t\treturn sql.toString();\n\t}", "title": "" }, { "docid": "92bffede7e8273565d490a4df8b2c44f", "score": "0.4982211", "text": "public String getUriQuery() {\n return \"&query=\" + encode( this.getSparqlQuery() );\n }", "title": "" }, { "docid": "49e01fc47cb05b58896764d713f6dd6a", "score": "0.49811566", "text": "public static String getFormat(TypeDeclaration param) {\n\t\tif (param == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (param instanceof NumberTypeDeclaration) {\n\t\t\treturn ((NumberTypeDeclaration) param).format();\n\t\t}\n\t\tif (param instanceof DateTimeTypeDeclaration) {\n\t\t\treturn ((DateTimeTypeDeclaration) param).format();\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "54066c104e10a69181a06fdff81e7a1b", "score": "0.4964274", "text": "public String displayFormat() {\n return \"[D]\" + String.format(\"%s (by: %s)\",\n super.displayFormat(),\n this.time.format()\n );\n }", "title": "" }, { "docid": "48ce7f5de1fd7a426c044866e6f22259", "score": "0.49607596", "text": "String getConstructQuery();", "title": "" }, { "docid": "d0f2f3b38ef45b843592285f5ed8ad8b", "score": "0.4959611", "text": "@NonNull\n public String toQueryString() {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.add(Calendar.DAY_OF_YEAR, -this.getParameter());\n return this.getSearch() + this.getDateFilter();\n }", "title": "" }, { "docid": "8a80b2d2d3165553699f0b723b938915", "score": "0.49584818", "text": "public void setFormattingActive(Query query, boolean b);", "title": "" }, { "docid": "5b6e32279778b5f3d4dc696ede87d357", "score": "0.49296486", "text": "public void setFormat(java.lang.CharSequence value) {\n this.format = value;\n }", "title": "" } ]
388aeabac0866d76869e188717ca0395
set the game speed.
[ { "docid": "c09dd6b46a20025a678ae7b50b9cee43", "score": "0.84590065", "text": "public void setGameSpeed(double speed) {\r\n this.gameSpeed = speed;\r\n }", "title": "" } ]
[ { "docid": "d3cb32029bb8a87628102029fd7e1518", "score": "0.8261233", "text": "void setSpeed(int speed);", "title": "" }, { "docid": "34f6f923ffc672ff3c921a030cce2e33", "score": "0.808403", "text": "public void setSpeed(float speed) {\n loonspeed = speed;\n }", "title": "" }, { "docid": "9563a1c98efb8f8c527a21ef8a25c6ed", "score": "0.7911382", "text": "public void setSpeed(int f) {\r\n\t\tspeed = f;\t\t\r\n\t}", "title": "" }, { "docid": "19c31b40b418744bc51cc249da62fb91", "score": "0.79087275", "text": "public void setSpeed(double speed) {\r\n\t\tthis.speed = speed;\r\n\t}", "title": "" }, { "docid": "e021a898b77b7f58c3b0b42226ba9ab3", "score": "0.78985715", "text": "public void setSpeed(int speed) {\n this.speed = speed;\n }", "title": "" }, { "docid": "e021a898b77b7f58c3b0b42226ba9ab3", "score": "0.78985715", "text": "public void setSpeed(int speed) {\n this.speed = speed;\n }", "title": "" }, { "docid": "fee8db537b8faea1dd258f21e788ff42", "score": "0.7881013", "text": "public void setMoveSpeed(float moveSpeed);", "title": "" }, { "docid": "fcc3f268c31b93c5b804bf01e5841fd7", "score": "0.7877386", "text": "void setSpeed(Double degreesPerSecond);", "title": "" }, { "docid": "d1f85e5e8683ba89daba09c3129f8119", "score": "0.7855329", "text": "@Override\n\tpublic void speed(int speed) {\n\t\tthis.speed=speed;\n\t}", "title": "" }, { "docid": "99abe1dcb6f23ac18f56e7b68a42c516", "score": "0.7836758", "text": "public abstract void setSpeed(double s);", "title": "" }, { "docid": "ac16f4f82a6d43287bff9bbdf26476f9", "score": "0.7814154", "text": "public void speed(int newSpeed)\r\n {\n speed = newSpeed;\r\n \r\n }", "title": "" }, { "docid": "187f423928cfeea4e01f864fb0ae6413", "score": "0.7806858", "text": "public void setSpeed(Speed speed) {\n this.speed = speed;\n }", "title": "" }, { "docid": "b9f80deca433258a466a48acb91f79a4", "score": "0.7761508", "text": "public void setSpeed(Vector3f speed){\n this.speed = speed;\n }", "title": "" }, { "docid": "8559ddec03fa8c124e18a8a9eecd1063", "score": "0.7745773", "text": "public void setSpeed(double speed) {\n\t\tthis.speed = speed;\n\t}", "title": "" }, { "docid": "8559ddec03fa8c124e18a8a9eecd1063", "score": "0.7745773", "text": "public void setSpeed(double speed) {\n\t\tthis.speed = speed;\n\t}", "title": "" }, { "docid": "429cc82c2b8d926875fcbd277923f281", "score": "0.7728208", "text": "public void set(double targetSpeed){\n updater.targetSpeed=targetSpeed;\n }", "title": "" }, { "docid": "8bca26a5afc6dbb91a5dd733a4c98c60", "score": "0.7706726", "text": "public void setSpeed(float speed) {\n\t\tthis.speed = speed;\n\t}", "title": "" }, { "docid": "e45c5078ec2eeb14a6dabd917fb40735", "score": "0.76747733", "text": "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "title": "" }, { "docid": "53b52479ab3a6a214b851c0fa707f6ca", "score": "0.7665032", "text": "public void setGoalSpeed(float val) {this.goalSpeed = val;}", "title": "" }, { "docid": "f19a291a2a67e1b92daaa138554335d5", "score": "0.7625902", "text": "public void setSpeed(Integer speed) {\n this.speed = speed;\n }", "title": "" }, { "docid": "00604e0f0ae2ae44b966704f4c6d9b98", "score": "0.76215404", "text": "public void setSpeed(double speed){\n try{\n pitchMot.setX(speed);\n }catch(Exception e){\n System.out.println(e);\n }\n }", "title": "" }, { "docid": "474e0c2230c08860568c46fdcf7d1825", "score": "0.7616631", "text": "public void setEnemySpeed(float speed){\n enemySpeed = speed;\n }", "title": "" }, { "docid": "3b60f5019b0756d10fbe1c0f9d481d2d", "score": "0.7604534", "text": "public void setSpeed(float amount) {\n this.speed = amount;\n }", "title": "" }, { "docid": "ac6311bb1581fe3f2b155384bbefcee7", "score": "0.7527879", "text": "public void setSpeed(int speed) {\r\n\t\tbyte[] message = {(byte) (speed/2+127)};\r\n\t\tbricktronics.sendMessage(message);\r\n\t}", "title": "" }, { "docid": "841f8254cdc01141b5c1446a0db990ea", "score": "0.74647874", "text": "private void setSpeed(int speed, boolean goToSpeed){\n if(!goToSpeed){\n if(!this.timer.isStopped()){\n this.timer.stop();\n onMotionEnd(\"goToSpeed(\" + this.toSpeed + \")\");\n }\n }\n\n speed = Math.max(-100, speed);\n speed = Math.min(100, speed);\n\n if(this.inverted){\n speed *= -1;\n }\n\n int newSpeed = speed * 2 + 1500;\n this.servo.update(newSpeed);\n }", "title": "" }, { "docid": "5fae1e92d63dc0e7e754783e6ae5f874", "score": "0.7444218", "text": "public void setSpeed(double speed){\n\t\tif (speed >= -1 && speed <= 1){\n\t\t\twheelSpeed = speed; //sanity checks\n\t\t\twheelMotor.set((wheelSpeed) * wheelRevMulti);\n\t\t} else {\n\t\t\tSystem.out.print(\"ARM : Invalid speed \");\n\t\t\tSystem.out.println(speed); //debug \n\t\t}\n\t}", "title": "" }, { "docid": "cf702121f9947ed9c435a3c02331afb3", "score": "0.7388877", "text": "public static void setSpeed(double s){\n launcher.set(s/lEncoder.getVelocityConversionFactor());\n\n }", "title": "" }, { "docid": "6b0418e0037cbb657b816add3115bce1", "score": "0.7374695", "text": "public static void changeSpeed(){\n if(speed.equals(\"Slow\")){\n clockInterval = MEDIUM;\n speed = \"Medium\";\n }\n else if(speed.equals(\"Medium\")){\n clockInterval = FAST;\n speed = \"Fast\";\n }\n else if(speed.equals(\"Fast\")){\n clockInterval = SLOW;\n speed = \"Slow\";\n }\n gamePanel.repaint();\n }", "title": "" }, { "docid": "cc2a74d5d675a4195f5929db383da170", "score": "0.7362577", "text": "public void setSpeed(@FloatRange(from = 0.0) float speedMetersPerSecond) {\n mSpeedMetersPerSecond = speedMetersPerSecond;\n mFieldsMask |= HAS_SPEED_MASK;\n }", "title": "" }, { "docid": "50c72eb684f06b8e5cb242eb8e503ed3", "score": "0.73472387", "text": "@Override\n public void setTargetSpeed(double speed) {\n this.targetSpeed = speed;\n }", "title": "" }, { "docid": "f02e2b48453ecabc4e85ea0c2ebf181b", "score": "0.7345788", "text": "public void setWalkSpeed(float paramFloat)\r\n/* 62: */ {\r\n/* 63:60 */ this.walkSpeed = paramFloat;\r\n/* 64: */ }", "title": "" }, { "docid": "2acad05cc6579a1356222c38bda065a4", "score": "0.7302702", "text": "public void setMoveSpeed(float moveSpeed){\r\n this.moveSpeed = moveSpeed;\r\n }", "title": "" }, { "docid": "9d5db931bc584292082ec0547721693d", "score": "0.72928476", "text": "public void setSpeed(int speed) {\n if(speed > MAXSPEED) {\n this.setSpeed(MAXSPEED);\n return;\n }\n try {\n this.tsi.setSpeed(this.id,speed);\n this.speed = speed;\n } catch (CommandException e) { e.printStackTrace(); }\n }", "title": "" }, { "docid": "c73961524320154a61a83ca8c6b54541", "score": "0.7210229", "text": "public void setSpeedMode() {\r\n \t\r\n \tcurrent = profiles.SPEED;\r\n \t\r\n \tleftMotor1.setProfile(0);\r\n \trightMotor1.setProfile(0);\r\n \t\r\n \tleftMotor1.changeControlMode(CANTalon.TalonControlMode.Speed);\r\n \trightMotor1.changeControlMode(CANTalon.TalonControlMode.Speed);\r\n \t\r\n }", "title": "" }, { "docid": "237382a4097f5a791ed58c7a2cb7fdf6", "score": "0.71505445", "text": "private void setStormSpeed( int speed ){\n\t\tspdField.setText( Integer.toString(speed));\n\t}", "title": "" }, { "docid": "406e7a4a6247fe80225ccacec760cce2", "score": "0.71450514", "text": "public void setSpeed(double speed) {\n spinnerMotor.set(speed);\n }", "title": "" }, { "docid": "06759b314d5cb9ad37e8e8b2aa07b00d", "score": "0.7118606", "text": "public void setStartingSpeed()\n\t {\n\t \tswitch (dexterityScore)\n\t {\n\t\t case 1:\n\t\t \tstartingSpeed -=5;\n\n\t\t \tbreak;\n\t\t case 2:\n\t\t \tstartingSpeed -=4;\n\n\t\t \tbreak;\n\t\t case 3:\n\t\t \tstartingSpeed -=4;\n\n\t\t \tbreak;\n\t\t case 4:\n\t\t \tstartingSpeed -=3;\n\n\t\t \tbreak;\n\t\t case 5:\n\t\t \tstartingSpeed -=3;\n\n\t\t \tbreak;\n\t\t case 6:\n\t\t \tstartingSpeed -=2;\n\n\t\t \tbreak;\n\t\t case 7:\n\t\t \tstartingSpeed -=2;\n\n\t\t \tbreak;\n\t\t case 8:\n\t\t \tstartingSpeed -=1;\n\n\t\t \tbreak;\n\t\t case 9:\n\t\t \tstartingSpeed -=1;\n\n\t\t \tbreak;\n\t\t case 10:\n\t\t \tstartingSpeed +=0;\n\n\t\t \tbreak;\n\t\t case 11:\n\t\t \tstartingSpeed +=0;\n\n\t\t \tbreak;\n\t\t case 12:\n\t\t \tstartingSpeed +=1;\n\n\t\t \tbreak;\n\t\t case 13:\n\t\t \tstartingSpeed +=1;\n\n\t\t \tbreak;\n\t\t case 14:\n\t\t \tstartingSpeed +=2;\n\n\t\t \tbreak;\n\t\t case 15:\n\t\t \tstartingSpeed +=2;\n\n\t\t \tbreak;\n\t\t case 16:\n\t\t \tstartingSpeed +=3;\n\n\t\t \tbreak;\n\t\t case 17:\n\t\t \tstartingSpeed +=3;\n\n\t\t \tbreak;\n\t\t case 18:\n\t\t \tstartingSpeed +=4;\n\n\t\t \tbreak;\n\t\t case 19:\n\t\t \tstartingSpeed +=4;\n\n\t\t \tbreak;\n\t\t case 20:\n\t\t \tstartingSpeed +=5;\n\n\t\t \tbreak;\n\t\t default:\n\t\t \tstartingSpeed = 10;\n\n\t\t \tbreak;\n\n\n\t }//end switch(dexterityScore\n\t }", "title": "" }, { "docid": "9853d415a2fb01406be4a592df3653cb", "score": "0.7112328", "text": "public void setSetSpeed(int speed) { // 13 -> heap: [speed = 3]; frame stack: frame1 [args, car4], frame2 [this, newSpeed = 8], frame3 [this, speed = 8]\n showSpeed(); // 14 -> heap: [speed = 3]; frame stack: frame1 [args, car4], frame2 [this, newSpeed = 8], frame3 [this, speed = 8]\n speed = speed; // 18 -> heap: [speed = 3]; frame stack: frame1 [args, car4], frame2 [this, newSpeed = 8], frame3 [this, speed = 8]\n this.speed = speed; // 19 -> heap: [speed = 8]; frame stack: frame1 [args, car4], frame2 [this, newSpeed = 8], frame3 [this, speed = 8]\n showSpeed(); // 20 -> heap: [speed = 8]; frame stack: frame1 [args, car4], frame2 [this, newSpeed = 8], frame3 [this, speed = 8]\n }", "title": "" }, { "docid": "83f0407c218758b2a321b9935a2b107a", "score": "0.71067965", "text": "public void setSpeed(int n){\n speed+=n;\n }", "title": "" }, { "docid": "6a506c582402f946b54ee750f125b2cf", "score": "0.70861405", "text": "public Builder setSpeed(int value) {\n bitField0_ |= 0x00000008;\n speed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f5186ff943f937f8446523d08f531172", "score": "0.7081018", "text": "public void setClockSpeed(float clockSpeed) {\n this.clockSpeed = clockSpeed;\n }", "title": "" }, { "docid": "46fd4508d47064bc5929404768d269e6", "score": "0.7078329", "text": "public void setSpeed(double speed){\n motor.set(speed);\n}", "title": "" }, { "docid": "12ea4b870a400d389241f190611551e0", "score": "0.70572084", "text": "private void setYSpeed(double value){\n\t\tassert isValidDouble(value);\n\t\tySpeed = value;\n\t}", "title": "" }, { "docid": "4bda814585ce3d517dfb55629f8d86c8", "score": "0.7056456", "text": "public void setAttackSpeed(int attackSpeed);", "title": "" }, { "docid": "6691b1383616c2bdcfbb6ba10b578c06", "score": "0.7044703", "text": "@Override\n public void set(double speed) {\n left1.set(speed);\n left2.set(speed);\n right1.set(speed);\n right2.set(speed);\n }", "title": "" }, { "docid": "5ea612570be8b00b018faa7e6140008b", "score": "0.7043259", "text": "void setUserClockSpeed(CPUClock speed);", "title": "" }, { "docid": "abf9e9bb4d9c7d92ab1bb34a43cf8df2", "score": "0.7026164", "text": "public void setSpeed(double speed) {\n rightMotors.set(speed);\n leftMotors.set(-speed);\n }", "title": "" }, { "docid": "1bb9caa7fed9e7f29ffb50cf493f9edc", "score": "0.70033395", "text": "public void setSpeed(short spd) {this.spd = spd;}", "title": "" }, { "docid": "2159ebfb8ee740d80ac89e54fa805043", "score": "0.697441", "text": "protected void setEngineSpeed( int rpm )\n {\n engineSpeed.set( rpm );\n }", "title": "" }, { "docid": "4c07585e8874072d0298c0e49d5f4bd6", "score": "0.69153994", "text": "public void testSetSpeed() {\n\t}", "title": "" }, { "docid": "9b47a129de1504cc5e9a0ac59c55c318", "score": "0.6912168", "text": "void changeSpeed(float x, float y) {\n this.speed.x = x;\n this.speed.y = y;\n }", "title": "" }, { "docid": "8e81de26228fdcee820b1b79ab6c73c1", "score": "0.69027126", "text": "private void setValue( double speed )\n {\n double incoming = speed + 1.0;\n double motorSpeed = incoming / 2.0;\n\n if ( motorSpeed < 0.0 )\n {\n motorSpeed = 0.0;\n }\n else if ( motorSpeed > 1.0 )\n {\n motorSpeed = 1.0;\n }\n// if (motorSpeed < -0.3)\n// motorSpeed = -0.3;\n// else if (motorSpeed > 0.3)\n// motorSpeed = 0.3;\n\n System.out.println(\"speed: \" + speed + \" incoming: \" + incoming + \" motorSpeed: \" + motorSpeed);\n\n super.set( motorSpeed );\n }", "title": "" }, { "docid": "759b99fc7c5fbe031376aee2768083fc", "score": "0.6895731", "text": "public void setAnimationSpeed(int speed) {\n\t\tmAnimationSpeed = speed;\n\t}", "title": "" }, { "docid": "337104419e93226e92f685cadb8f9fd1", "score": "0.68947136", "text": "public synchronized void setSoundSpeed(double soundSpeed_) \t{\tsoundSpeed = soundSpeed_ ; }", "title": "" }, { "docid": "9603b39804778b16e6dd5d8dbb3ab226", "score": "0.6891347", "text": "void setDefaultClockSpeed(CPUClock speed);", "title": "" }, { "docid": "bff4b747e3f3ce90f8ccaf092081a4ed", "score": "0.6887701", "text": "public void setdesiredSpeed(float desiredSpeed)\n {\n this.desiredSpeed = desiredSpeed;\n }", "title": "" }, { "docid": "d137723ad62e284effd610d9b54b4b50", "score": "0.6882563", "text": "public void setSpeed(float speed) {\n if (velocityVec.len() == 0) { \n velocityVec.set(speed,0);\n } else {\n velocityVec.setLength(speed);\n }\n }", "title": "" }, { "docid": "a303ee214af1a8d0b3b3a79cf4b7d676", "score": "0.6875333", "text": "public void setSpeed(int xS, int yS) {\n\t\txSpeed = xS;\n\t\tySpeed = yS;\n\t}", "title": "" }, { "docid": "2f06fe709675aa85237ec25edaf3ee45", "score": "0.68429106", "text": "private void updateSpeed(double speed){\n trainingSpeed.setText(String.format(Locale.getDefault(),\"%.3f\",speed*36));\n }", "title": "" }, { "docid": "f13f13eda3adee0001865c91f71ae237", "score": "0.6838555", "text": "@Override\r\n\tint speed() {\n\t\treturn 120;\r\n\t}", "title": "" }, { "docid": "de8a705b6858a2c6b03febac080977f1", "score": "0.6836047", "text": "boolean setMouseSpeed(int speed);", "title": "" }, { "docid": "6bf4abb57bcf3667160673bfb6c7a187", "score": "0.682877", "text": "public void setArmMotor(double speed);", "title": "" }, { "docid": "9e7c3828106a5bb3ce1e24b3a89df962", "score": "0.6817258", "text": "public void set(double speed) {\n\t\tmotor.set(ControlMode.PercentOutput, -1.0 * speed);\n\t}", "title": "" }, { "docid": "38cbc9b55c2427feb252c12009068837", "score": "0.6815527", "text": "public void modifySpeed(int amount) { speed += amount; }", "title": "" }, { "docid": "8b689f7e9fbdc9ead3f041fad9418d65", "score": "0.6813782", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t speed = 140;\n\t\t\t\t\t}", "title": "" }, { "docid": "9943df09da644dc431a4f6ee2c753b9f", "score": "0.6811864", "text": "public void setMotorSpeed(float speed) {\n\t\tm_bodyA.setAwake(true);\n\t\tm_bodyB.setAwake(true);\n\t\tm_motorSpeed = speed;\n\t}", "title": "" }, { "docid": "f5aebed23642a8f0bac5b4751645a1b2", "score": "0.68010044", "text": "public abstract void setTargetFps(int fps);", "title": "" }, { "docid": "299936537785d250e8a891d4ace70df2", "score": "0.6795571", "text": "public void\t\t\tsetSpeedFactor(float newFactor);", "title": "" }, { "docid": "9a8ccf33d115441e8e50596035f037f9", "score": "0.6792118", "text": "private void setXSpeed(double value){ \n\t\tassert (isValidDouble(value));\n\t\tassert ((value >= -xSpeedMax) && (value <= xSpeedMax));\n\t\txSpeed = value;\n\t}", "title": "" }, { "docid": "6bbeab2b1c5a372671019f9bb007b727", "score": "0.67864215", "text": "public void updateSpeed(double value) {\n\t\tdouble new_rate = value;\n\t\tanimation.setRate(new_rate);\n\t}", "title": "" }, { "docid": "7d68b979bc094a98db052d202891f5c5", "score": "0.6758743", "text": "public void setFlySpeed(float paramFloat)\r\n/* 52: */ {\r\n/* 53:52 */ this.flySpeed = paramFloat;\r\n/* 54: */ }", "title": "" }, { "docid": "362a8225a0462e9744bafc2875147f36", "score": "0.6740174", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t speed = 300;\n\t\t\t\t\t}", "title": "" }, { "docid": "fa13eb716a07e479e5dea33f7e3807cd", "score": "0.67389774", "text": "public void setSpeed( double s, boolean change){\n\t\tif ( change ){\n\t\t\tinitialSpeed = s;\n\t\t}\n\t\tdy=(dy<0)?-s:s;\n\t}", "title": "" }, { "docid": "0e8e92ba83f7980a8cca6dbe6fe9ff4e", "score": "0.67265093", "text": "public void setRobotSpeed(float robotSpeed) {\n lock.writeLock().lock();\n try {\n this.RobotSpeed = robotSpeed;\n }finally {\n lock.writeLock().unlock();\n }\n }", "title": "" }, { "docid": "884ab9a7ddd3a1b756f8ebaf944b90a8", "score": "0.67264056", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t speed = 400;\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "ba8a1428d95f8433ff0d4dc4759a4670", "score": "0.6721495", "text": "void speedUp (){\n if (this.engineOn == true) {\n this.currentSpeed = this.currentSpeed + 5;\n } else {\n System.out.println(\"Please start the engine on to speed up!\");\n }\n }", "title": "" }, { "docid": "ef410e8d1bda168208e00cd3312a8225", "score": "0.6681752", "text": "public void setPaddleSpeed(float newSpeed) {\n\t\tpaddleSpeed = newSpeed;\n\t}", "title": "" }, { "docid": "fd8ec7d790f52b353acc76cceeeb647d", "score": "0.6680425", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t speed = 220;\n\t\t\t\t\t}", "title": "" }, { "docid": "cdf1ebe55b9876d12728ef3954fe53cb", "score": "0.66756266", "text": "private void updateSpeed() {\n\t\tif (moveRight && !moveLeft) {\n\t\t\tsetAnimated(true);\n\t\t\tsetXSpeed(Constants.CHARACTER_SPEED);\n\t\t\tsetFlipVertical(false);\n\t\t} else if (!moveRight && moveLeft) {\n\t\t\tsetAnimated(true);\n\t\t\tsetXSpeed(-Constants.CHARACTER_SPEED);\n\t\t\tsetFlipVertical(true);\n\t\t} else {\n\t\t\tsetAnimated(false);\n\t\t\tsetXSpeed(0f);\n\t\t}\n\t}", "title": "" }, { "docid": "5a6e090745893bb2a2ab7a18635fefe2", "score": "0.66750705", "text": "public SetShooterSpeed(double rpm) {\n\t\tthis.rpm = rpm;\n\t}", "title": "" }, { "docid": "1acbe75644896f31bf2d88aea96f8b62", "score": "0.66649026", "text": "public void setDirect(double targetSpeed){\n updater.targetSpeed=targetSpeed;\n updater.speed=targetSpeed;\n jag.set(targetSpeed);\n }", "title": "" }, { "docid": "b12585242c186c9f0eaa031b15658ff2", "score": "0.6653611", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t speed = 100;\n\t\t\t\t\t}", "title": "" }, { "docid": "3c496aa4dd98ecf4aafa8826b4196330", "score": "0.6642383", "text": "public void setRate(int r) {\n\t\tthis.speed=r;\n\t}", "title": "" }, { "docid": "912e96a4e3fbe4f09f8f26cb909fda29", "score": "0.66344744", "text": "void newSpeed(int speed);", "title": "" }, { "docid": "4f186cf9410620fa2b623f4416fe8857", "score": "0.6631212", "text": "@Override\n public void upgradeSpeed() {\n maxSpeed = maxSpeed + 100;\n }", "title": "" }, { "docid": "ea721c5860d14df62477ee098ec6a244", "score": "0.6613156", "text": "public final void setSpeedFactor(float f){\n\t\tparticleSpeedFactor=f;\n\t}", "title": "" }, { "docid": "2a15a08c3780c0b5b86b56afa73f5776", "score": "0.65791583", "text": "public void setFPS() {\n try {\n // setting frame rate to approximately 60fps\n gameThread.sleep(17);\n }\n catch (Exception e) {\n\n }\n }", "title": "" }, { "docid": "30ada03e1a1cded382008fbbda7f3d95", "score": "0.6573702", "text": "@Override\n public void upgradeSpeed() {\n this.maxSpeed += 1;\n }", "title": "" }, { "docid": "a7dcf1e666d5756b9adeed5a4cf7c3a7", "score": "0.6560415", "text": "public void setReloadSpeed() {\n\n this.reloadSpeed = this.Random(1, 100);\n System.out.println(\"ReloadSpeed: \" + this.reloadSpeed);\n }", "title": "" }, { "docid": "3efe7a6e2af0f5522810b8329ddb129a", "score": "0.65560395", "text": "public void setRoller(double speed) {\n roller.set(ControlMode.PercentOutput, speed);\n }", "title": "" }, { "docid": "e877ec10ff5cc684d8cff5725027b943", "score": "0.6554047", "text": "void setVelocity(double velocity);", "title": "" }, { "docid": "15d43c05a97172a2e10342675fb34a60", "score": "0.6535041", "text": "public void setWindSpeed(int value) {\n this.windSpeed = value;\n }", "title": "" }, { "docid": "5d4dc00d39a5338576bf42845b588fcf", "score": "0.6526874", "text": "@Override\r\n public boolean setGameSpeed(String clientId, int newSpeed) {\n return false;\r\n }", "title": "" }, { "docid": "056dc1e1fe4d18a42582e0a74bd241c6", "score": "0.6523739", "text": "public void setTime(double spd)\n {\n if(spd == 0)\n {\n this.speed = 13371337d;\n }\n \n this.speed = Math.PI / spd;\n }", "title": "" }, { "docid": "a18810c813db4fe95e0dabf1c62cb043", "score": "0.6522887", "text": "protected void setSpeedInMetersPerSecond( double mPs )\n {\n float kph = (float) ( mPs * (float) 3.6 );\n location.setSpeedInKph( kph );\n }", "title": "" }, { "docid": "0d93c9266a9ae0981d2e3c07803c2c1b", "score": "0.65160525", "text": "public abstract void update(int speed);", "title": "" }, { "docid": "731f9e21211f013ec3d361ca6ad9a756", "score": "0.65145016", "text": "public void move(double speed) {\n elevator.set(speed);\n }", "title": "" }, { "docid": "767ef626427888ca7d49611933dc9e80", "score": "0.6500568", "text": "public void setPhysics_speed(float physics_speed) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 108, physics_speed);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 100, physics_speed);\n\t\t}\n\t}", "title": "" }, { "docid": "c4714b44cc75faa3200cd260cce7eb87", "score": "0.6472787", "text": "public void setShooterSpeed(double slider) {\n sliderAddTargetVelocity = (((slider*-1) + 1)/2)*5000;\n\n // The setpoint for the shooter is equal to the base target velocity plus the velocity added by the slider\n targetVelocity = initialTargetVelocity + sliderAddTargetVelocity;\n\n leftShooter.set(TalonFXControlMode.Velocity, targetVelocity);\n \n }", "title": "" }, { "docid": "26841aff65881dd0069daf93f14c7543", "score": "0.64720905", "text": "private void SetSpeedUp() {\n // add speed\n this.mEffectSpeed += 0.2f;\n // limit\n if (LIMIT_EFFECT_SPEED <= this.mSpeed) this.mEffectSpeed = LIMIT_EFFECT_SPEED;\n // set type\n this.mEffectType |= EFFECT_SPEED_UP;\n }", "title": "" } ]
941cdbd3e96c531d50964253d3cc1cb8
La persona de 12 segundos cruza al otro lado del puente.
[ { "docid": "ed3b2b7c113a19fdeac4af90bfc4aed1", "score": "0.54431075", "text": "public boolean P12() {\n if ((_calzada[4] == 1) && ((_calzada[6] - 12) >= 0)) {\n _calzada[4] = 0;\n _calzada[5] = _calzada[5] + 12;\n _calzada[6] = _calzada[6] - 12;\n return true;\n }\n return false;\n }", "title": "" } ]
[ { "docid": "2be316e0d6bf7941d72cdc11da34629f", "score": "0.6391999", "text": "public void monter() {\n \n\t\t\n\t\tthis.etageCourant = appleAscenseur () ;\n\t\t\n\t\tScanner saisie = new Scanner(System.in);\n\t\tSystem.out.println(\"\\n Veuillez saisir le numero de votre : \");\n\t\tint numEtage = saisie.nextInt() ;\n\t\t\n\t\tint destination = numEtage ;\n\n\t\tint sommePoids = 0; \n\t\t\n\t\tfor (Personne i : personnes) \n\t\t\tsommePoids = sommePoids + i.getPoids();\n\t\t \n\t\t\tif(sommePoids > this.poidsMax) {\n\t\t\t\tSystem.out.println(\"Désolé vous êtes nombreux par rapport au poids de l'ascenseur \");\n\t\t\t\tSystem.out.println(\"\\n Tolal poids autorisée : \"+this.poidsMax+\" kg\"+\" , \"\n\t\t\t\t\t \t+ \"et vous faites au total un poids de : \"+sommePoids+\" kg\");\n\t\t\t} else {\n\t\t\t\tfor(int compteur = etageCourant ; compteur <= destination ; compteur++) {\n\t\t\t\t \n\t\t\t\t\tSystem.out.println(\" Vous êtes monté au niveau : \"+etageCourant); \t\n\t\t\t\t etageCourant = etageCourant + 1;\n\t\t\t\t try {\n\t\t\t\t\t\tThread.sleep(3000); \n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t \n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} \t\t\t \n\t\t\t\t System.out.println(\"\\n Felicitation !!! Vous êtes arrivée a votre destination : Etage [\"+destination+\"]\");\n\t\t\t\t \n\t\t\t}\n\t\t\t\t\t \n\t}", "title": "" }, { "docid": "d71acb3d00ca5841a6fbd4480d0c4bc1", "score": "0.62278676", "text": "public void mejorarTrago(){\r\n tragoDeLocal.setPrecioVenta(tragoDeLocal.getPrecioVenta()+ 20.0);\r\n tragoDeLocal.setCostoPreparacion(tragoDeLocal.getCostoPreparacion()+ 10.0);\r\n System.out.println(\"Se ha mejorado la Trago del local, ahora se vende a : \" + tragoDeLocal.getPrecioVenta()+\" pesos\");\r\n }", "title": "" }, { "docid": "954363e8435f7e53931d39dd8c1106af", "score": "0.6146197", "text": "void resumenParrafo(){\n\t\tresumenParrafo= primerasPalabras+\"... \"+ultimasPalabras;\n\t\t}", "title": "" }, { "docid": "640d091e99564e272572a522aca51b3f", "score": "0.61296827", "text": "public void calcularPuntos()\n {\n score=(vida2*1000)+(minutos*60+segundos)+vida;\n }", "title": "" }, { "docid": "830c9d4ff296edfa0727d8d10475ea81", "score": "0.6071727", "text": "public Palabra palabra_mas_coincidencia () {\n int largo = analizadas.size();\n int index = 0;\n if (analizadas.isEmpty()) {\n return new Palabra(\"SE ACABARON\");\n }\n Palabra mayor = analizadas.get(0);\n while (index < analizadas.size()) {\n if (analizadas.get(index).parecido > mayor.parecido) {\n mayor = analizadas.get(index);\n }\n index++;\n }\n usadas.add(mayor);\n analizadas.remove(mayor);\n return mayor;\n }", "title": "" }, { "docid": "8f65e99aea83d2f661c9a1993ffcd8db", "score": "0.6014014", "text": "@Override\n public double[] polimorfo() {\n double[] velocidades = new double[2];\n double distancia = super.getPlanetaDestino().getDistancia();\n double pesos = 0;\n for (int i = 0; i < astronautas.size(); i++) {\n pesos += astronautas.get(i).getPeso();\n }\n \n double peso1 = (pesos * pesos);\n \n double ida = (distancia / (super.getVelocidad() *( peso1/ 100) ));\n double regreso = ( distancia / ( super.getVelocidad() * pesos ));\n\n velocidades[0] = ida;\n velocidades[1] = regreso;\n\n return velocidades;\n }", "title": "" }, { "docid": "a0f9805b5515c37fd60910cc6b56e7f1", "score": "0.5982716", "text": "@Test\n public void probarCalculateNumeroDePaginas() {\n ArrayList<Publicacion> publicaciones4 = new ArrayList<>();\n for (int i = 1; i <= 101; i++) {\n publicaciones4.add(new Publicacion(\"b00\" + i,\n new CuentaUsuario(\"a00\" + i, \"\" + i, i + \"@upm.es\", null, null, null,\n null, null), \"Numero: \" + i, null, new ArrayList<>(),\n null));\n }\n System.out.println(\"Calculando numero de paginas del timeline anterior\");\n //COPIAMOS Y PEGAMOS CÓDIGO PORQUE ES PRIVADA\n int numeroDePaginas = (int) (publicaciones4.size() / 50.01 + 1);\n System.out.println(\"El numero de paginas es \" + numeroDePaginas + \" debido a que el número de publicaciones \" +\n \"es \" + publicaciones4.size());\n }", "title": "" }, { "docid": "eac5bad514fbf5ef20195bf019692bb3", "score": "0.59788907", "text": "public Pago() {\n\t\tthis.numeroCuota = 0;\n\t\tthis.detalleCuota = \"\";\n\t\tthis.fechaVencimiento = \"\";\n\t\tthis.importeCuota = 0.0;\n\t\tthis.importeComision = 0.0;\n\t}", "title": "" }, { "docid": "d0baebbe3e6e745ae58d37f3bcf8654a", "score": "0.58933425", "text": "public void entrenar()\n {\n super. entrenar();\n Random rnd=new Random();\n int porcent=rnd.nextInt(101);\n int mejorap = (int)Math.ceil(pases * porcent) /100;\n int mejorarg =(int)Math.ceil(regate * porcent) /100;\n int mejorarm =(int)Math.ceil(remate * porcent) /100;\n \n if(mejorap + pases <= 10)\n {\n pases+=mejorap;\n }\n else\n {\n pases = 10;\n }\n\n \n if( mejorarg + regate <= 10)\n {\n regate+= mejorarg;\n }\n else\n {\n regate = 10;\n }\n \n \n if(mejorarm + remate <= 10)\n {\n remate+=mejorarm;\n }\n else\n {\n remate = 10;\n }\n \n \n //si entrena y algun valor es 0 se otorga un punto\n \n if (pases == 0)\n {\n pases=1;\n }\n else if (regate==0)\n {\n regate=1;\n }\n else if (remate==0)\n {\n remate=1;\n }\n }", "title": "" }, { "docid": "9b48ba048a15072254494115890b7788", "score": "0.5890123", "text": "public int plazoPrestamo() {\n\t\tif (plazoPrestamo == 7) {\n\t\t\tnumPrestado++;\n\t\t\treturn this.plazoPrestamo;\n\t\t} else if ((numPrestado) == 10) {\n\t\t\tthis.plazoPrestamo--;\n\t\t\tthis.numPrestado = 0;\n\t\t\treturn this.plazoPrestamo;\n\t\t}\n\t\t\n\t\tnumPrestado++;\n\t\treturn this.plazoPrestamo;\n\t}", "title": "" }, { "docid": "e4607f10da2836e368ca6bde0098d013", "score": "0.58658606", "text": "@Override\r\n\tpublic double calculaPerimetro() {\n\t\treturn lado1 + lado2 + lado3 + lado4;\r\n\t}", "title": "" }, { "docid": "76efe1055759c2c4d7f83a1ff3912b5a", "score": "0.5811266", "text": "public int filaAleatoriaPares(){\n int filaAleatoria = (int) (Math.random() * cantidadFilas);\n if(filaAleatoria == 0){\n return filaAleatoria;\n }else if(filaAleatoria == 1){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 2){\n return filaAleatoria;\n }else if(filaAleatoria == 3){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 4){\n return filaAleatoria;\n }else if(filaAleatoria == 5){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 6){\n return filaAleatoria;\n }else if(filaAleatoria == 7){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 8){\n return filaAleatoria;\n }else if(filaAleatoria == 9){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 10){\n return filaAleatoria;\n }\n return filaAleatoria;\n }", "title": "" }, { "docid": "efd29789fb35667530b4a49498d152f0", "score": "0.5777204", "text": "public static void main(String[] args) {\n int nbHabitants = 87697, annee;\n int seuil = 100000;\n int anneeDepart = 2013;\n double taux = 0.0089;\n annee = anneeDepart;\n while (nbHabitants < seuil)\n {\n annee++;\n nbHabitants *= (int)(1 + taux);\n }\n System.out.println(\"C'est en \" + annee + \" qu'on atteindra \" + nbHabitants + \" habitants\");\n }", "title": "" }, { "docid": "6bd0b4d5e4739b5f477abfe19e5319af", "score": "0.57740474", "text": "public void padre()\r\n {\r\n Vehiculo v1 = new Vehiculo(12);\r\n System.out.println(\" PADRE SIN ATRIBUTOS DE LAS HIJAS\");\r\n System.out.println(\"-------------------------\");\r\n System.out.println(\"\");\r\n System.out.println((new StringBuilder()).append(\"TAMAÑO RUEDA: \").append(v1.getTamanoRueda()).toString());\r\n v1.mensajePadre1();\r\n v1.defineColor();\r\n v1.defineLetra();\r\n }", "title": "" }, { "docid": "56529199717630d9cc0a5a99c8dcc5f8", "score": "0.5763026", "text": "public PilaLineal()\r\n {\r\n cima = -1; //condicion de pila vacia.\r\n listaPila = new Object[TAM_PILA]; /* Inicia el arreglo con el tamaño máximo. */\r\n }", "title": "" }, { "docid": "90a19ecfe3f8ec935ce0b0b3efde0296", "score": "0.57570785", "text": "private void fase1() {\n nuevos = new Individuo[m];\n if (m % 2 == 0) {\n if (Generacion.isElitismo()) {\n nuevos[0] = generacion.getPoblacion().getMejorIndividuo();\n adicionales = Generacion.getSelector().seleccion(\n generacion.getPoblacion(), 1);\n nuevos[1] = adicionales[0];\n } else {\n adicionales = Generacion.getSelector().seleccion(\n generacion.getPoblacion(), 2);\n nuevos[0] = adicionales[0];\n nuevos[1] = adicionales[1];\n }\n indice = 2;\n } else {\n if (Generacion.isElitismo()) {\n nuevos[0] = generacion.getPoblacion().getMejorIndividuo();\n } else {\n adicionales = Generacion.getSelector().seleccion(\n generacion.getPoblacion(), 1);\n nuevos[0] = adicionales[0];\n }\n indice = 1;\n }\n }", "title": "" }, { "docid": "38eb740a3cec1d303912be67aa35c514", "score": "0.5746748", "text": "public static void profesor(){\r\n\t\t\tArrayList<String> asinaturas = new ArrayList<String>();\r\n\t\t\t//se pueden adaptar para otros pero hay que tener encuenta los espacios\r\n\t\t\tasinaturas.add(\"DAW \");\r\n\t\t\tasinaturas.add(\"DAM \");\r\n\t\t\tasinaturas.add(\"SMR \");\r\n\t\t\tasinaturas.add(\"Hora libre \");\r\n\t\t\tasinaturas.add(\"Tutoria \");\r\n\t\t\tArrayList<String> calendario = new ArrayList<String>();\r\n\t\t\tArrayList<String> asinaturasHoras = new ArrayList<String>();\r\n\t\t\tasinaturasHoras.add(\"6\");\r\n\t\t\tasinaturasHoras.add(\"8\");\r\n\t\t\tasinaturasHoras.add(\"7\");\r\n\t\t\tasinaturasHoras.add(\"6\");\r\n\t\t\tasinaturasHoras.add(\"3\");\r\n\t\t\t\r\n\t\t\tdo {\r\n\t\t\t\t//\r\n\t\t\t\tint asinatura= (int)(Math.random() * (asinaturas.size()));\r\n\t\t\t\tint horas;\r\n\t\t\t\tif(Integer.parseInt(asinaturasHoras.get(asinatura))>6) {\r\n\t\t\t\t\thoras= (int)(Math.random() * (6));\r\n\t\t\t\t}else {\r\n\t\t\t\t\thoras= (int)(Math.random() * (Integer.parseInt(asinaturasHoras.get(asinatura))));\r\n\t\t\t\t\tif(horas==0) {\r\n\t\t\t\t\t\thoras =1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor(int i=0;i<horas;i++) {\r\n\t\t\t\t\tcalendario.add(asinaturas.get(asinatura));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tasinaturasHoras.set(asinatura, (\"\"+(Integer.parseInt(asinaturasHoras.get(asinatura))-horas)));\r\n\t\t\t\tif(Integer.parseInt(asinaturasHoras.get(asinatura))==0) {\r\n\t\t\t\t\tasinaturasHoras.remove(asinatura);\r\n\t\t\t\t\tasinaturas.remove(asinatura);\r\n\t\t\t\t}\r\n\t\t\t}while(calendario.size()<30);\r\n\r\n\t\t\t//Los espacios es para que quede mejor la tabla\r\n\t\t\tSystem.out.print(\"Lunes \");\r\n\t\t\tSystem.out.print(\"Martes \");\r\n\t\t\tSystem.out.print(\"Miercoles \");\r\n\t\t\tSystem.out.print(\"jueves \");\r\n\t\t\tSystem.out.println(\"viernes \");\r\n\t\t\tint e =0;\r\n\t\t\tfor(int i=0;i<5;i++) {\r\n\t\t\t\t\r\n\t\t\t\t\tSystem.out.print(calendario.get((i+0)));\r\n\t\t\t\t\tSystem.out.print(calendario.get((i+5)));\r\n\t\t\t\t\tSystem.out.print(calendario.get((i+10)));\r\n\t\t\t\t\tSystem.out.print(calendario.get((i+15)));\r\n\t\t\t\t\tSystem.out.print(calendario.get((i+20)));\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\te=0;\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\t}", "title": "" }, { "docid": "bab5bf28bb7fd9440b27204eb0ff37e5", "score": "0.5736535", "text": "public void calculeazaPerimetrul() {\n this.setPerimetru(this.getLatura1() + this.getLatura2() + this.getLatura3() + this.getLatura4());\r\n }", "title": "" }, { "docid": "b2dc1b33774233f390c965e2beffbb1f", "score": "0.5733625", "text": "private void generarNumTemporal(){\n \n try{\n VariablesProducto.vNumPedidoDistGenerado_aux = FarmaSearch.getNuSecNumeracion(ConstantsProducto.AUX_SECNUMERA, 10);\n log.debug(\"Numero de pedido Temporal Generado :\"+VariablesProducto.vNumPedidoDistGenerado_aux);\n FarmaUtility.aceptarTransaccion();\n } catch(SQLException sql)\n {\n FarmaUtility.liberarTransaccion();\n FarmaUtility.showMessage(this,\"Error: no se puede grabar la distribución temporal en los locales.\"+sql.getMessage(),null);\n log.error(\"\",sql);\n }\n \n }", "title": "" }, { "docid": "b6be9a4189f42ca92ae06a343fe5b8d9", "score": "0.57333004", "text": "public int atualizaPontos(int pontos, int diasPassados);", "title": "" }, { "docid": "dcdfa7764f79550efa2345d597f22fff", "score": "0.5722357", "text": "public void palmares() {\n\t\tSystem.out.println(\"Maillot jaune {leader} : \"+this.maillotJaune()+\" [Temps : \"+this.lesResultats.get(this.maillotJaune()).getTemps()+\"]\");\n\t\tSystem.out.println(\"Maillot blanc {meilleur jeune} : \"+this.meilleurJeune()+\" [Temps : \"+this.lesResultats.get(this.meilleurJeune()).getTemps()+\"]\");\n\t\tSystem.out.println(\"Maillot vert {meilleur sprinteur} : \"+this.maillotVert()+\" [Points : \"+this.lesResultats.get(this.maillotVert()).getPointsVert()+\"]\");\n\t\tSystem.out.println(\"Maillot a pois {meilleur grimpeur} : \"+this.maillotMontagne()+\" [Points : \"+this.lesResultats.get(this.maillotMontagne()).getPointsMontagne()+\"]\");\n\t}", "title": "" }, { "docid": "15d1a512fa4c6fc9a1fe0bc68a01bede", "score": "0.56813216", "text": "public void montoDescuento(){\n double _desc1 = _sueldo * 11/100;//descuento por AFP\n double _desc2 = _sueldo * 13/100;//descuento por SNP\n double _desc3 = _sueldo * 3/100;//descuento por salud \n \n System.out.println(\"Descuento por AFP: \" + _desc1 + \"\\nDescuento por SNP: \" + _desc2 + \"\\nDescuento por salud: \" + _desc3);\n \n double _descT = _desc1 + _desc2 +_desc3; //suma de todos los descuentos\n \n System.out.println(\"monto total de descuentos: \" + _descT);\n }", "title": "" }, { "docid": "0f5e348bd5da314838bad041f448c346", "score": "0.566795", "text": "private Pontuacao(int ponto){\r\n\t\tthis.ponto = ponto;\r\n\t}", "title": "" }, { "docid": "669d9d401bf2ac6dc907b51f8430bc49", "score": "0.5649267", "text": "Movimiento[] movimientos_posibles(EstadoDeJuego estado){\r\n \r\n //Comprueba a qué casillas se puede mover el pollo de primeras\r\n //TODO necesitamos función del mapa que nos devuelva las casillas adyacentes a una\r\n \r\n \r\n return null;\r\n }", "title": "" }, { "docid": "335577bc7c21f54bd643435954f921b4", "score": "0.5633709", "text": "private int refinarPrincipio() {\n int principio = tiempo;\n int indice0 = indice;\n int indice2 = this.corrigeIndice(indice - 2);\n int indice6 = this.corrigeIndice(indice2 - 4);\n int indice10 = this.corrigeIndice(indice6 - 4);\n int indice14 = this.corrigeIndice(indice10 - 4); //miramos hasta 14 sec atras\n\n while (datos[indice0] < datos[indice2] || datos[indice0] < datos[indice6] ||\n datos[indice0] < datos[indice10] || datos[indice0] < datos[indice14]) {\n principio--;\n indice0 = corrigeIndice(--indice0); //OJO tiene que ser *pre*decremento\n indice2 = corrigeIndice(--indice2);\n indice6 = corrigeIndice(--indice6);\n indice10 = corrigeIndice(--indice10);\n indice14 = corrigeIndice(--indice14);\n }\n tiempoPrincipioDesat = principio;\n valorPrincipioDesat = datos[indice0];\n return tiempoPrincipioDesat;\n }", "title": "" }, { "docid": "7146306d562b7e007631fe60805c622b", "score": "0.5626145", "text": "@Override\n\tpublic Nat predecesseur() {\n\t\tint t = this.taille();\n\t\tStringBuilder rep = new StringBuilder();\n\t\tint retenue = - 1;\n\t\tfor(int i = 0; i < t; i++){\n\t\t\tint chiffre = this.chiffre(i) + retenue;\n\t\t\tif(chiffre > 9){\n\t\t\t\tchiffre = chiffre - 10;\n\t\t\t\tretenue = 1;\n\t\t\t}else{\n\t\t\t\tretenue = 0;\n\t\t\t}\n\t\t\trep.append(Integer.toString(chiffre));\n\t\t}\n\t\trep = retenue == 0 ? rep : rep.append(1);\n\t\treturn this.creerNatAvecRepresentation(rep.reverse().toString());\n\t}", "title": "" }, { "docid": "f3fcbb0ffdebc2a13fafda88d566077c", "score": "0.5621213", "text": "public int getMeses_Ajuste_Pm(){\n return localMeses_Ajuste_Pm;\n }", "title": "" }, { "docid": "f3fcbb0ffdebc2a13fafda88d566077c", "score": "0.5621213", "text": "public int getMeses_Ajuste_Pm(){\n return localMeses_Ajuste_Pm;\n }", "title": "" }, { "docid": "22ddc8a6b169c1f641d972cdc3f8c710", "score": "0.5618618", "text": "public int tariffa(int numeroMesi)\r\n\t{\r\n\t\tint annuale ;\r\n\t\tannuale = this.costoMensile * 12;\r\n\t\treturn annuale;\r\n\t}", "title": "" }, { "docid": "9192058cf02c45aba1485ca5bf32a0a4", "score": "0.5613679", "text": "public synchronized void novabala() {\r\n if (contador < 5) {\r\n if (shots[contador] == null) {\r\n shots[contador] = new Shot(nauPropia.getX() + 45, nauPropia.getY() - -20, nauPropia.velocitat());\r\n }\r\n }\r\n \r\n contador++;\r\n }", "title": "" }, { "docid": "3343266c4770b743839573ba1507a9e2", "score": "0.5611062", "text": "public void contratarTrabajadores(){\n this.NumeroDeEmpleados += 100;\n this.Internacional = true;\n }", "title": "" }, { "docid": "3e6b6f0bc8b2d0c78aa9129a91ffaae5", "score": "0.5596854", "text": "public void ganadorPartida() {\r\n\r\n for (Jugador jugador : jugadores) {\r\n if ((jugador.sumarCartas() > dealer.sumarCartas()) && (jugador.sumarCartas() <= 21)) {\r\n System.out.println(\"Gano :\" + jugador.getNombre());\r\n jugador.setFichas(jugador.getFichas() + apuestaMinima);\r\n } else {\r\n System.out.println(\"Gano el Dealer a :\" + jugador.getNombre());\r\n }\r\n }\r\n }", "title": "" }, { "docid": "94d8dbdb6af07d02ec93c1d37d53804f", "score": "0.5590263", "text": "public void llenarPuestos() {\n for (int i = 0; i < 20; i++) {\n puestos[i] = i;\n }\n Vector<Integer> puestosLlenos = new Vector<>();\n int puestosALlenar;\n puestosALlenar = (int) Math.floor(Math.random() * 30);\n for (int i = 0; i < puestosALlenar; i++) {\n int azar = (int) Math.floor(Math.random() * 20);\n if (!(puestosLlenos.contains(azar))) {\n puestosLlenos.add(azar);\n }\n }\n for (Integer i : puestosLlenos) {\n puestos[i] = 0;\n }\n puestosVacios = puestosVacios - puestosLlenos.size();\n }", "title": "" }, { "docid": "1afd985d3077601904079e00439a6c58", "score": "0.5588113", "text": "int calcularPerimetro(){\r\n int perimetro;\r\n perimetro = (int) (3 * lado);\r\n return perimetro;\r\n }", "title": "" }, { "docid": "ff06a6b51e26496d7a9df18b645776e1", "score": "0.5585734", "text": "private void joueurSuivant(){\r\n\r\n if(joueurCourant + 1 >= nbJoueurs ){\r\n joueurCourant = 0;\r\n }else{\r\n joueurCourant += 1;\r\n }\r\n\r\n }", "title": "" }, { "docid": "154bf3b5fdaaa227a16a8f2f15a4049b", "score": "0.55797803", "text": "@Override\n public void calcularPerimetro() {\n setPerimetro(2*ladoA + 2*ladoB);\n }", "title": "" }, { "docid": "0966a76e76c5b3430a61e7a6a8593ee2", "score": "0.557665", "text": "private int segundosTranscurridos(){\r\n\t\treturn (int)((System.currentTimeMillis()-horaInicio)/1000);\r\n\t}", "title": "" }, { "docid": "7978a845ea1142c78b0dcd1c37a33bc7", "score": "0.55674726", "text": "public void prueba(){\n\n indic.porcCumplimiento = 1;\n indic.porcCumpI= 1;\n indic.porcCumpF= 1;\n\n }", "title": "" }, { "docid": "ebbe7125c32c0c40ff4981516ae35a44", "score": "0.5561567", "text": "public void Graficar_Puntos()\n\t{\n\t\t\n\t\tif(t_actual < tmax + 1 | tmax < 0)\n\t\t{\n\t\t\tint o, o_1;\n\t\t\tint longitud = nodos_entre_particula.length - 1;\n\t\t\t\n\t\t\tg_2D.setColor(color_particulas_borde);\n\t\t\t\n\t\t\tfor(int i = 0; i < longitud;i++)\n\t\t\t{\n\t\t\t\to = nodos_entre_particula[i];\n\t\t\t\to_1 = nodos_entre_particula[i + 1];\n\t\t\t\t\n\t\t\t\txo = escala*posicion_nodos[o][0] + borde_marco;\n\t\t\t\tyo = escala*posicion_nodos[o][1] + borde_marco;\n\t\t\t\txf = escala*posicion_nodos[o_1][0] + borde_marco;\n\t\t\t\tyf = escala*posicion_nodos[o_1][1] + borde_marco;\n\t\t\t\t\n\t\t\t\tg_2D.draw(new Line2D.Double(xo, yo, xf, yf));\n\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "d44e38153c0a38de34918d1f084f3dcd", "score": "0.5554768", "text": "public void ligarTomada(){\n\t\tregularDiodo();\n\t\tajustarVoltagem(220);\n\t\tDesligarTela();\n\t}", "title": "" }, { "docid": "fe20b048e566fe3bbd0a240ca4aa7b19", "score": "0.55478895", "text": "public TurnoPaciente(String i,int io,int io2){\r\n NombreApellido=i;\r\n Hora=io;\r\n min=io2;\r\n }", "title": "" }, { "docid": "a0ff6d5943bfc77b138f9446fa86b565", "score": "0.5545132", "text": "public static void resetMeiosePara1() {\n\t\t/**PARAMETRE DE Meiose cellule1*/\n\t\t\n\t\t/**---Positions de centrioles---*/\n\t\t centri1posX = 540;\n\t centri1posY = 100;\n\t\t centri2posX =520;\n\t\t centri2posY= 100;\n\t\t\n\t\t/**---Positions centrioles migrantes---*/\n\t\t centri1finalX=150;\n\t\t centri2finalX=850;\n\t\t\n\t\t micentriX=405;\n\t\t mi2centriX=360;\n\t\t\n\t\t/**---Positions des centrioles répliquées---*/\n\t\t centri1bisposX = 850;\n\t centri1bisposY = 240;\n\t\t centri2bisposX =150;\n\t\t centri2bisposY= 380;\n\t\t\n\t\t\n\t\t/**---Position début des microtubules---*/\n\t\t/**---Positions X de gauche---*/\n\t\t mt1posX = 230;\n\t\t mt2posX =230;\n\t\t mt3posX = 250;\n\t\t mt4posX =250;\n\t\t\n\t\t/**---Positions des X de droite---*/\n\t\t mt1bisposX = 870;\n\t\t mt2bisposX =870;\n\t\t mt3bisposX = 850;\n\t\t mt4bisposX =850;\n\t\t\n\t\t/**---Positions des Y de début---*/\n\t\t mt1posY = 280;\n\t\t mt2posY= 300;\n\t mt3posY = 390;\n\t\t mt4posY= 415;\n\t\t\n\t\t mt1bisposY = 280;\n\t\t mt2bisposY= 300;\n\t mt3bisposY = 390;\n\t\t mt4bisposY= 415;\n\t\t\n\t\t/**---Positions de fin des microtubules---*/\n\t\t/**---Position X mtgauche---*/\n\t\t finalmtposX = 485;\n\t\t\n\t\t/**---Position X mtdroit---*/\n\t\t finalmtbposX=640;\n\t\t\n\t\t/**---Position Y des mts dans l'ordre---*/\n\t\t finalmtposY1=232;\n\t\t finalmtposY2=315;\n\t\t finalmtposY3=400;\n\t\t finalmtposY4=495;\n\t\t\n\t\t/**---Postitions de la membrane cellulaire et de la cellule---*/\n\t\t membraneposX = 150;\n\t membraneposY = 100;\n\t \n\t cellposX = 150;\n\t cellposY = 100;\n\t \n\t \t/**---ADN---*/\n\t \n\t /**---Enveloppe Noyaux---*/\n\t nucleaireX= 420;\n\t nucleaireY= 215;\n\t \n\t \t/**---Décondensé---*/\n\t decondensX= 400;\n\t decondensY1= 155;\n\t decondensY2= 325;\n\t \n\t \t/**Condensés non-alignés---*/\n\t condensX=505;\n\t condensX2= 555;\n\t condensX3= 595;\n\t \n\t condensbisX=520;\n\t condensbisX2= 510;\n\t \n\t condensY2=290;\n\t condensY3=340;\n\t condensY4=405;\n\t \n\t condensbY1=200; \n\t condensbY2=condensY2 ;\n\t condensbY3=condensY3 ;\n\t condensbY4=condensY4 ;\n\t \n\t \t/**---Condensés alignés--*/\n\t \n\t \t/**---chromosomes---*/\n\t alignchroX= 520-65;\n\t alignchrobisX= 550;\n\t \n\t alignchro1Y= 200;\n\t alignchro2Y= 285;\n\t alignchro3Y= 370;\n\t alignchro4Y= 465;\n\t \n\t \t/**---Chromatides---*/\n\t alignchromatideX= 470;\n\t alignchromatidebisX= 510;\n\t \n\t /**---Positions finale Mt et Chro---*/\n\t \n\t \t/**---Gauche---*/\n\t\t finaltmtchroX =250;\n\t\t finalchroX2 = 350;\n\t\t\n\t\t finalmtchroY =280;\n\t\t finalmtchroY2 = 415;\n\t \n\t \t/**---Droite---*/\n\t\t finalbistmtchroX =800;\n\t\t finalbischroX2 =700;\n\t\t\n\t\t finalbismtchroY =280;\n\t\t finalbismtchroY2 = 415;\n\t\t\n\t\t/**---final mt post-migration---*/\n\n\t\t\n\t\t retourmtposX =230;\n\t\t retourmt2posX = 250;\n\t\t retourmtbisposX =870;\n\t\t retourmt2bisposX = 850;\n\n\t\t retourmtposY1 = 280;\n\t\t retourmtposY2= 300;\n\t retourmtposY3 = 390;\n\t\t retourmtposY4= 415;\n\t\t\n\t\t\n\t\t/**----Anneau d'actine---*/\n\t actineX = 500;\n\t\t actineY= 100;\n\t\t\n\t\t/**---Commentaires---*/\n\t\t\n\t\t/**--gauche--*/\n\t\t InitheightLabel1=500;\n\t\t InitwitdhLabel1=50;\n\t\t\n\t\t/**--droit--*/\n\t\t InitwitdhLabel2=700;\n\t\t InitheightLabel2=20;\n\t\t\n\t\t}", "title": "" }, { "docid": "e0feb8cbb8c9eeee1711772b7aabb0d1", "score": "0.5534977", "text": "private static String milisATemps(long milis) {\n int sec, min;\n String temps;\n\n sec = (int) (milis / 1000) % 60 ;\n min = (int) (milis / (1000*60));\n temps = min + \"min \" + sec + \"s\";\n\n return temps;\n }", "title": "" }, { "docid": "99e81f991f6759d73e0c77bd514d84ae", "score": "0.5531275", "text": "public void avancarDia(){\r\n dia++;\r\n if(dia == 31){dia = 1; mes++;}\r\n if(mes == 13){mes = 1; ano++;}\r\n }", "title": "" }, { "docid": "6705e102a6bebd0c5f33878f51674c32", "score": "0.55281496", "text": "public void primerae() throws ExcepcionPrimera {\n\t\tif (getContadorinfectadas()>=30) {\n\n\t\t\tthrow new ExcepcionPrimera(\"Más del 30% estan infectados\");\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "194aa210f1437aed87910e30bbb4a61e", "score": "0.55216604", "text": "public double getPerimetro(){\n\t\tdouble perimetro;\n\t\tperimetro = 8 * lado;\n\t\treturn perimetro;\n\t}", "title": "" }, { "docid": "d9cba6ae8baa4de71522a4833cb99caa", "score": "0.5520548", "text": "private void joueurSuivant(){\n joueurCourant = joueur1 + joueur2 - joueurCourant;\n }", "title": "" }, { "docid": "ab5864c9811fd5376fe741e19a58ded4", "score": "0.551345", "text": "@Test\n\tpublic void testPedirAjudaPresencialIdPositivo() {\n\t\tthis.ajudaPresencial = new AjudaPresencial(1, \"22222222\", \"11111111\",\n\t\t\t\t\"P2\", \"13:00\", \"seg\", \"LCC2\");\n\t}", "title": "" }, { "docid": "2fc74de812fd99ca108e7c3b045007fe", "score": "0.55096704", "text": "public int restantes() {\nreturn 52 - robadas;\n}", "title": "" }, { "docid": "2ba22ef6d30937bc546651723c7bb0ce", "score": "0.5489134", "text": "public static void main(String args[]){\nString nome = \"Monica\";\n//qtde de horas trabalhadas no mês\nint horasMes = 177;\n//160 hrs - mensal\nint horasMensalBase = 160;\n//valor por hora\nint valorPorHora = 10;\n//Exiba: qtde de horas extras\nint horasExtras = horasMes - horasMensalBase;\n// valor de cada hora extra\nfloat valorHoraExtra = valorPorHora * 1.6f;\n// valor total de horas extras\nfloat valorTotalHorasExtras = valorHoraExtra * horasExtras;\n\nSystem.out.println(\"Quant Hrs Extras.......: \" + horasExtras);\nSystem.out.println(\"Valor Hrs Extras.......: R$\" + valorHoraExtra);\nSystem.out.println(\"Valor Tot Hrs Extras...: R$\" + valorTotalHorasExtras);\n\n\n\n\n}", "title": "" }, { "docid": "a87f3740d8c33bf367e8552fa372947f", "score": "0.5485608", "text": "public int getCostoTrago(){\r\n return (int)tragoDeLocal.getCostoPreparacion();\r\n }", "title": "" }, { "docid": "518bfebe0846cf6c5e8622ba05e3bafd", "score": "0.5485358", "text": "public double montoHorasExtra(){\n double _m;\n _m = (_sueldo/240) * _horas_extra; //segun la formula del pdf\n return _m;\n }", "title": "" }, { "docid": "b7330b06b40f02d227dcd467b7553b7d", "score": "0.54789275", "text": "public static void main(String[] args) {\n\n\n Pais p1 = new Pais(\"España\",10);\n Pais p2 = new Pais(\"Alemania\",7);\n Pais p3 = new Pais(\"Inglaterra\",5);\n\n JugadorBaloncesto jb = new JugadorBaloncesto(\"Curry\",24,1.93);\n JugadorBaloncesto jb2 = new JugadorBaloncesto(\"Lebron\",28,2.03);\n JugadorBaloncesto jb3 = new JugadorBaloncesto(\"Duran\",30,1.98);\n JugadorBaloncesto jb4 = new JugadorBaloncesto(\"Onil\",45,2.10);\n JugadorBaloncesto jb5 = new JugadorBaloncesto(\"Cove\",40,1.94);\n\n JugadorBaloncesto jb6 = new JugadorBaloncesto(\"Jordan\",30,1.97);\n JugadorBaloncesto jb7 = new JugadorBaloncesto(\"Alexis\",22,2.05);\n JugadorBaloncesto jb8 = new JugadorBaloncesto(\"Abraan\",18,1.93);\n JugadorBaloncesto jb9 = new JugadorBaloncesto(\"Lester\",26,2.12);\n JugadorBaloncesto jb10 = new JugadorBaloncesto(\"Richar\",42,1.96);\n\n JugadorBaloncesto[] paritcipantesBaloncesto = new JugadorBaloncesto[10];\n paritcipantesBaloncesto[0] = jb;\n paritcipantesBaloncesto[1] = jb2;\n paritcipantesBaloncesto[2] = jb3;\n paritcipantesBaloncesto[3] = jb4;\n paritcipantesBaloncesto[4] = jb5;\n paritcipantesBaloncesto[5] = jb6;\n paritcipantesBaloncesto[6] = jb7;\n paritcipantesBaloncesto[7] = jb8;\n paritcipantesBaloncesto[8] = jb9;\n paritcipantesBaloncesto[9] = jb10;\n\n\n\n\n Arrays.sort(paritcipantesBaloncesto, new Comparator<JugadorBaloncesto>() {\n @Override\n public int compare(JugadorBaloncesto o1, JugadorBaloncesto o2) {\n JugadorBaloncesto j1 = (JugadorBaloncesto)o1;\n JugadorBaloncesto j2 = (JugadorBaloncesto)o2;\n return (int)(j1.getAltura()-j2.getAltura());\n }\n });\n\n for (int i = 0; i < paritcipantesBaloncesto.length; i++) {\n System.out.println(paritcipantesBaloncesto[i]);\n }\n\n\n\n\n Baloncesto baloncesto = new Baloncesto(\"Baloncesto\",\"quinto\",paritcipantesBaloncesto,2);\n\n\n Pais[] paises = new Pais[3];\n paises[0] = p1;\n paises[1] = p2;\n paises[2] = p3;\n\n\n\n Edicion ed = new Edicion(2019,\"Barcenola\",paises, )\n\n\n }", "title": "" }, { "docid": "86467d4aa9a1d8a70732bee9b2439486", "score": "0.54688007", "text": "private void gerarPrevisao() {\n DecimalFormat df = new DecimalFormat();\n df.setMaximumFractionDigits(2);\n float previsaoConsumoMensal = 0;\n if (checkFlex.isChecked() == false) {\n float precoPrincipal = getPrecoPrincipal();\n float distancias = getDistanciaTotal();\n Log.d(\"HomeActivity\", \"Preço principal: \" + precoPrincipal);\n Log.d(\"HomeActivity\", \"Distancias: \" + distancias);\n\n float consumoUrbano = getConsumoUrbano();\n Log.d(\"HomeActivity\", \"Consumo: \" + consumoUrbano);\n\n float valorPrevistoSemana = calculaPrevisaoSemanalNormal(precoPrincipal, distancias, consumoUrbano);\n previsaoConsumoMensal = calculaPrevisaoMesNorlmal(precoPrincipal, distancias, consumoUrbano);\n consumoS.setText(\"R$ \" + df.format(valorPrevistoSemana));\n consumoM.setText(\"R$ \" + df.format(previsaoConsumoMensal));\n } else {\n float precoPrincipal = getPrecoPrincipal();\n float precoSecundario = getPrecoSecundario();\n float distancias = getDistanciaTotal();\n Log.d(\"HomeActivity\", \"Distancias: \" + distancias);\n float consumoUrbano = getConsumoUrbano();\n float consumoUrbanoSecundario = getConsumoUrbanoSecundario();\n int porcentagemPrincipal = getPorcentagemPrincipal();\n int porcentagemSecundaria = getPorcentagemSecundaria();\n float valorPrevistoSemanal = calculaPrevisaoSemanalNormal(porcentagemPrincipal,\n porcentagemSecundaria, distancias, consumoUrbano, consumoUrbanoSecundario,\n precoPrincipal, precoSecundario);\n previsaoConsumoMensal = calculaPrevisaoMensalFlex(porcentagemPrincipal,\n porcentagemSecundaria, distancias, consumoUrbano, consumoUrbanoSecundario,\n precoPrincipal, precoSecundario);\n\n consumoS.setText(\"R$ \" + df.format(valorPrevistoSemanal));\n consumoM.setText(\"R$ \" + df.format(previsaoConsumoMensal));\n }\n\n addAvisoConsumo(previsaoConsumoMensal);\n }", "title": "" }, { "docid": "7dbcc87ef57eca259170e75a98c4dd10", "score": "0.5467668", "text": "public void del10Persuasion() {\n if (persuasionBar <= 10) {\n setPersuasion(0);\n } else {\n setPersuasion(persuasionBar - 10);\n }\n }", "title": "" }, { "docid": "4baa7759f7a2bfd75f3d733085fb2bb2", "score": "0.5467652", "text": "public Celula primeiro() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4add5f17f65332c8fcfec904487e26be", "score": "0.5454879", "text": "public BigDecimal getCostoManoObraPendiente()\r\n/* 272: */ {\r\n/* 273:310 */ return this.costoManoObraPendiente;\r\n/* 274: */ }", "title": "" }, { "docid": "765f2dde8913783c0c8aeda9626f8097", "score": "0.54535925", "text": "public void monterGrille() {\n \t\tfor (int a = 0; a < nombredeLigne; a++) {\n\t\t\tfor (int i = 0; i < nombredecase; i++) {\n\t\t\t\ttab[i][a].animBloc.setPosY(tab[i][a].animBloc.getPosY()-1);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "26f180c635ae3aab38333f26df5e9677", "score": "0.5443628", "text": "public void calculaPerimetro()\n {\n System.out.println(\"No se como calcular el perimetro\");\n }", "title": "" }, { "docid": "f4eea7a46d117a2f4f238863fc7ed4a6", "score": "0.5442177", "text": "public void ataqueHuargen(Personaje p) {\n\t\tint dano=80+80*(fuerza + fuerzaExtra)/50;\n\t\tp.recibeDano(dano);\n\t}", "title": "" }, { "docid": "fdc5c3810f2d531851cc96023be5e90c", "score": "0.54377544", "text": "public int numPacientes(){\r\n return pacientes.numPersonas();\r\n }", "title": "" }, { "docid": "7212fa26962bad0a10cca424e8ba5b93", "score": "0.54358745", "text": "public static void main(String[] args) {\n\t\tint dia=0, mes=0, cuentaDias=0, i=0;\r\n\t\t\r\n\t\t//INICIO\r\n\t\t\r\n\t\tSystem.out.println(\"Introduzca un dia\");\r\n\t\tdia=Entrada.entero();\r\n\t\tSystem.out.println(\"Introduzca un mes en formato numerico\");\r\n\t\tmes=Entrada.entero();\r\n\t\t\r\n\t\twhile (i<mes) {\r\n\t\tif (i==1 || i==3 || i==5 || i==7 || i==8 || i==10 || i==12) {\r\n\t\t\tcuentaDias=cuentaDias+31;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (i==4 || i==6 || i==9 || i==11) {\r\n\t\t\t\tcuentaDias=cuentaDias+30;\r\n\t\t\t}\r\n\t\t\telse {//mes==2\r\n\t\t\t\t\tcuentaDias=cuentaDias+28;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\tcuentaDias=cuentaDias+dia;\r\n\t\t\r\n\t\tif ((cuentaDias-1)%7==0) {\r\n\t\t\tSystem.out.println(\"El dia \"+dia+\" del mes \"+mes+\" es: LUNES\");\r\n\t\t}\r\n\t\tif ((cuentaDias-1)%7==1) {\r\n\t\t\tSystem.out.println(\"El dia \"+dia+\" del mes \"+mes+\" es: MARTES\");\r\n\t\t}\r\n\t\tif ((cuentaDias-1)%7==2) {\r\n\t\t\tSystem.out.println(\"El dia \"+dia+\" del mes \"+mes+\" es: MIERCOLES\");\r\n\t\t}\r\n\t\tif ((cuentaDias-1)%7==3) {\r\n\t\t\tSystem.out.println(\"El dia \"+dia+\" del mes \"+mes+\" es: JUEVES\");\r\n\t\t}\r\n\t\tif ((cuentaDias-1)%7==4) {\r\n\t\t\tSystem.out.println(\"El dia \"+dia+\" del mes \"+mes+\" es: VIERNES\");\r\n\t\t}\r\n\t\tif ((cuentaDias-1)%7==5) {\r\n\t\t\tSystem.out.println(\"El dia \"+dia+\" del mes \"+mes+\" es: SABADO\");\r\n\t\t}\r\n\t\tif ((cuentaDias-1)%7==6) {\r\n\t\t\tSystem.out.println(\"El dia \"+dia+\" del mes \"+mes+\" es: DOMINGO\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0284ce9b423d903b0c0645a255ab3c02", "score": "0.5427591", "text": "Coche() {\n this.velocidad = 0;\n this.velocidadMarchaAtras = 0;\n }", "title": "" }, { "docid": "4fb5cd60215882853df54a5b0cc82eb3", "score": "0.542621", "text": "public int autreJoueur(){\n return joueur1 + joueur2 - joueurCourant;\n\t}", "title": "" }, { "docid": "9c65e78ea93576ad64d2e42744d8b09b", "score": "0.5418781", "text": "public int columnaAleatoriaParesJ1(){\n int filaAleatoria = (int) (Math.random() * cantidadColumnas);\n if(filaAleatoria == 0){\n return filaAleatoria;\n }else if(filaAleatoria == 1){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 2){\n return filaAleatoria;\n }else if(filaAleatoria == 3){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 4){\n return filaAleatoria;\n }else if(filaAleatoria == 5){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 6){\n return filaAleatoria;\n }else if(filaAleatoria == 7){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 8){\n return filaAleatoria;\n }else if(filaAleatoria == 9){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 10){\n return filaAleatoria;\n }\n return filaAleatoria;\n }", "title": "" }, { "docid": "86fa2cb8df89b3e53c9947434f4eb4f8", "score": "0.5414422", "text": "public void imprimePerimetro()\n {\n System.out.println(\"El perimetro de la Figuara es: \" + perimetro);\n }", "title": "" }, { "docid": "3dead32302b6951cc2e9ed165601b264", "score": "0.5411909", "text": "public void incrementar(){\n if(frecuencia == 1){ //se cambia la estación en am\r\n if(estam == 1610){ //este es el valor máximo que puede llegar a tener las estaciones de am\r\n estam = 530;\r\n imprime(1);\r\n \r\n }else{\r\n estam = estam + 10; \r\n imprime(1);\r\n }\r\n \r\n }else if(frecuencia == 2){ //cambiar la estación en fm\r\n if(estfm == 107.9){ //este es el valor máximo que puede llegar a tener las estaciones de fm\r\n estfm = 87.9;\r\n imprime(2);\r\n }else{\r\n estfm = estfm + 0.2; \r\n imprime(2);\r\n }\r\n \r\n }\r\n \r\n }", "title": "" }, { "docid": "6de43ddeec98289c7fa97c2bb27fd684", "score": "0.540877", "text": "public static void surpresinha(Jogador p)\n {\n System.out.println(\"Jogo numero \" + (p.getQntdDeJogo()+1) + \"(Surpresinha)\");\n int num = 0;\n while(num < 6 || num >15)\n {\n num = Teclado.leInt(\"qual o tamanho da cartela do jogo?(minimo 6, maximo 15)\");\n if(num <6 || num > 15)\n {\n System.out.println(\"Não é possivel uma cartela com essa quantidade de numeros\");\n }\n }\n for(int i = 0; i < 1; i++)\n {\n Jogo j1 = new Jogo(num); \n j1.criaSurpresinha();\n if(j1.getPreco() > p.getSaldo()){System.out.println(\"Valor do jogo maior que o saldo disponivel, cancelando compra\");break;}\n p.insereJogo(j1);\n p.setValorCompra(p.getValorCompra() + p.jogos[p.getQntdDeJogo()-1].ValorJogo());\n p.setSaldo(p.getSaldo() - p.jogos[p.getQntdDeJogo()-1].ValorJogo());\n System.out.printf(\"Valor desse jogo:R$%.2f\\n\", (p.jogos[p.getQntdDeJogo()-1].ValorJogo()));\n } \n }", "title": "" }, { "docid": "9eaeac4f89a7e1dab634af9bc54847eb", "score": "0.5405187", "text": "void nuevaPalabra(){\n\t\tnumPalabras++;\n\t\t}", "title": "" }, { "docid": "7fbf24d7790ff8e7b1c1e788482c34c6", "score": "0.5400569", "text": "public void setMeses_Ajuste_Pm(int param){\n \n this.localMeses_Ajuste_Pm=param;\n \n\n }", "title": "" }, { "docid": "7fbf24d7790ff8e7b1c1e788482c34c6", "score": "0.5400569", "text": "public void setMeses_Ajuste_Pm(int param){\n \n this.localMeses_Ajuste_Pm=param;\n \n\n }", "title": "" }, { "docid": "373ff8ce88d7d585e74809cd71327903", "score": "0.53999704", "text": "public boolean P1P12() {\n if ((_calzada[0] == 1) && (_calzada[4] == 1) && ((_calzada[6] - 12) >= 0)) {\n _calzada[0] = 0;\n _calzada[4] = 0;\n _calzada[5] = _calzada[5] + 12;\n _calzada[6] = _calzada[6] - 12;\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "ec6f5c3a1f5d1931be228917d0a7df44", "score": "0.539519", "text": "@Override\n\tpublic double calcularArea() {\n\t return ((this.lado * this.lado) * 1.732)/4; //Preferi mais uma vez usar um valor aproximado pra limitar as casas decimais professor, invés de usar o math.squart(3);\n //Pois continua dando problema na hora de exibição com %2.f\n\n\t}", "title": "" }, { "docid": "76b62cdba5fd89d2379cb0f8820dc082", "score": "0.53933233", "text": "public int columnaAleatoriaParesJ2(){\n int filaAleatoria = (int) (Math.random() * cantidadColumnas);\n if(filaAleatoria == 0){\n return filaAleatoria;\n }else if(filaAleatoria == 1){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 2){\n return filaAleatoria;\n }else if(filaAleatoria == 3){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 4){\n return filaAleatoria;\n }else if(filaAleatoria == 5){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 6){\n return filaAleatoria;\n }else if(filaAleatoria == 7){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 8){\n return filaAleatoria;\n }else if(filaAleatoria == 9){\n return filaAleatoria + 1;\n }else if(filaAleatoria == 10){\n return filaAleatoria;\n }\n return filaAleatoria;\n }", "title": "" }, { "docid": "dc7497e24005b6075873ad0dfeb7e941", "score": "0.53922546", "text": "public void tomarPieza()\n {\n if(porciones>0)\n {\n Nodo raiz=new Nodo(porciones);\n raiz.setTipo(\"max\");\n crearArbol(raiz);\n int decision=minmax.minimax(raiz);\n System.out.println(\"DECISION: tomar \"+decision+\" piezas\");\n porciones-=decision;\n if(porciones==0)\n {\n terminar=true;\n ganador=\"humano\";\n }\n System.out.println(\"El robot toma \" + decision + \" piezas, quedan por tomar \"+porciones);\n }\n }", "title": "" }, { "docid": "876b9caf9ad953d0b5f97e8d07017534", "score": "0.5387306", "text": "public static void main(String args[]) {\n final int NUMERO1 = 12000; //con final la variable no puede ser cambiada \n int cantidad;\n float puntuacionPromedio;\n float puntuacionPromedioGrupo; \n double altura = 1.74;\n double alturaTotal = altura;\n char clave = 'C';\n String Anael = \"Anael\";\n String nombreAlumno = Anael;\n boolean videoFinalizado = false;\n String $mio = \"Guille\"; //una variable empieza con minuscula\n System.out.println($mio);\n \n }", "title": "" }, { "docid": "59a3c6b74821f8feea39e93400ca4e4e", "score": "0.53827125", "text": "public void puntosFinales(){\r\n \r\n int var = 0;\r\n \r\n for (int i = 0; i < numJugadores; i++) { //PUTACION MAXIMA DE ROLLITOS\r\n\r\n if(var < jugadores[i].numRollitosJugador()){\r\n var = jugadores[i].numRollitosJugador(); \r\n \r\n }\r\n }\r\n if(var > 0){ // Se hai xogadores con rollitos na mesa\r\n Jugador rollos [] = new Jugador[numJugadores]; //ALAMACENAMOS JUGADORES CON MAX ROLLITOS\r\n\r\n int a = 0;\r\n for (int j = 0; j< numJugadores; j++){\r\n if(var == jugadores[j].numRollitosJugadores()){\r\n rollos [a++] = jugadores[j];\r\n\r\n }\r\n }\r\n for(int j = 0; j < numJugadores; j++){ //PUNTUACION JUGADORES SIN ROLLITOS\r\n jugadores[j].calcularPuntosTotales();\r\n }\r\n for(int k = 0; k < a; k++){ //PUNTUACION TOTAL + PUNTUACION ROLLITOS= PUNTUACION FINAL\r\n rollos[k].setPuntuacionTotal(6 /a);\r\n\r\n }\r\n }\r\n \r\n }", "title": "" }, { "docid": "a60c805344c7f3c52f594db02c706ec2", "score": "0.53825307", "text": "public void Sinespacio(){\n\t\tSystem.out.println(\"No hay más espacio en el parqueo\");\n\t}", "title": "" }, { "docid": "459caaea28f6afaa573eb220aa8f332e", "score": "0.5382304", "text": "public void subeSueldo(double porcentaje){\n\t\t\n\t\tdouble aumento=sueldo*porcentaje/100;\n\t\t\n\t\tsueldo+=aumento;\n\t}", "title": "" }, { "docid": "a8874c1cb3d7699279a31e8857c98b7c", "score": "0.53806347", "text": "private static void comoObterDeVoltaUmaLista() {\n\t\tUsuario usuario1 = new Usuario(\"Pedro\", 150);\n\t\tUsuario usuario2 = new Usuario(\"Carlos\", 160);\n\t\tUsuario usuario3 = new Usuario(\"Antonio\", 20);\n\t\t\n\t\tList<Usuario> usuarios = Arrays.asList(usuario1, usuario2, usuario3);\n\t\t\n\t\tList<Usuario> usuariosMais100Pontos = new ArrayList<>();\n\t\t\n\t\tusuarios.stream()\n\t\t\t.filter(u -> u.getPontos() > 100)\n\t\t\t.forEach(usuariosMais100Pontos::add);\n\t}", "title": "" }, { "docid": "376af9ca258fb3e80e760a9ad1d1e112", "score": "0.5357404", "text": "public int getPrecioTrago(){\r\n return (int)tragoDeLocal.getPrecioVenta();\r\n }", "title": "" }, { "docid": "29f32569b21a34e3e61be04200f2a548", "score": "0.5355927", "text": "public void limpiarPila()\r\n {\r\n cima = -1;\r\n }", "title": "" }, { "docid": "b58a98b15c653f4d25289f7972c318f6", "score": "0.53541917", "text": "private static void modoSobre ( )\r\n\t{\r\n\t\tSystem.out.println ( \"\\nCompilador L06 v0.8 2006 \\n\" +\r\n\t\t\t\t\t\t\t \"Paulo Vitor matricula: 200405600517\\n\" +\r\n\t\t\t\t\t\t\t \"Tiago Kohagura matricula: 200405600528\\n\" ); \r\n\t}", "title": "" }, { "docid": "a4e39a7983d020b141962378f82d6870", "score": "0.5354179", "text": "private void realizarMovimiento(Jugada jug){\n // BASICO -> REALIZAMOS MOVIMIENTO\n Posicion origen = jug.getMov().ORIG;\n Posicion destino = jug.getMov().DEST;\n int piezaOrigen = tablero[origen.fila()][origen.columna()];\n int piezaDestino = tablero[destino.fila()][destino.columna()];\n tablero[origen.fila()][origen.columna()] = 0;\n tablero[destino.fila()][destino.columna()] = piezaOrigen;\n if(piezaDestino!=0){//TE HAS COMIDO UNA PIEZA\n int valorGanado = piezaDestino%10;\n puntuaciones[(piezaOrigen/10)-1]+=valorGanado;\n }\n // AVANZADO -> CONTEMPLAR CASOS\n \n //PROMOCIÓN PEÓN\n if(piezaOrigen%10==1){ // ES UN PEON\n int dest = destino.fila()*10+destino.columna();\n switch(dest){\n case 72:case 20:case 05:case 57:\n tablero[destino.fila()][destino.columna()] = piezaOrigen+3;\n jug.setTipoPromocion(Promocion.ELEFANTE,piezaOrigen/10);\n break;\n case 10:case 06:case 67:case 71:\n tablero[destino.fila()][destino.columna()] = piezaOrigen+2;\n jug.setTipoPromocion(Promocion.CABALLO,piezaOrigen/10);\n break;\n }\n }\n \n // VICTORIA NAVAL\n \n if(piezaOrigen%10==2){ // ES UN BARCO\n \n }\n \n // TOMAR UN TRONO\n \n if(piezaOrigen%10==2){ // ES UN REY\n \n }\n }", "title": "" }, { "docid": "d806df0e090b3bd4291cf9b7f9eac0dc", "score": "0.5353753", "text": "public static void main(String[] args) {\n\t\tScanner numero1 = new Scanner(System.in);\r\n\t\tint num1;\r\n\t\tSystem.out.print(\"Introduzca un número entero de segundos: \");\r\n\t\tnum1 = numero1.nextInt();\r\n\t\t\r\n\t\tint segundos = num1%60;\r\n\t\tint segundosCocienteHoras = num1/60;\r\n\t\tint minutos = segundosCocienteHoras%60;\r\n\t\tint horas = segundosCocienteHoras/60;\r\n\t\t\r\n\t\t\t\r\n\t\tif (horas==1)\r\n\t\t\tSystem.out.print(\"Su equivalente es: \" + horas + \" hora\" );\r\n\t\t\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Su equivalente es: \" + horas + \" horas\");\r\n\t\t\r\n\t\tif (minutos ==1)\r\n\t\t\tSystem.out.println(minutos + \" minuto\");\r\n\t\telse\r\n\t\t\tSystem.out.println(minutos + \" minutos\");\r\n\t\t\r\n\t\tif (segundos==1)\r\n\t\t\tSystem.out.println(\"y \" + segundos + \" segundo\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"y \" + segundos + \" segundos\");\r\n\t \r\n\t\t\t\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "f2a91a4b54c1051f64dcd69919455133", "score": "0.5348689", "text": "public void somar(NumeroRacional parcela) {\n int denominadorSoma = parcela.getDenominador() * this.getDenominador();\n int numeradorSoma = this.getDenominador() * parcela.getNumerador()\n + parcela.getDenominador() * this.getNumerador();\n this.denominador = denominadorSoma;\n this.numerador = numeradorSoma;\n this.simplificar();\n }", "title": "" }, { "docid": "0b0f5f1735fc3c6bd5e64ca39c98580c", "score": "0.53470653", "text": "@Test(expected = IllegalArgumentException.class)\n\tpublic void testPedirAjudaPresencialMatrTutorEmBranco() {\n\t\tthis.ajudaPresencial = new AjudaPresencial(1, \"22222222\", \" \",\n\t\t\t\t\"P2\", \"13:00\", \"seg\", \"LCC2\");\n\t}", "title": "" }, { "docid": "0630579195a4cd69d7072ce8f6e7c6bd", "score": "0.53429574", "text": "public void add10Persuasion() {\n if (persuasionBar >= 90) {\n setPersuasion(100);\n } else {\n setPersuasion(persuasionBar + 10);\n }\n }", "title": "" }, { "docid": "44c8a8e18161a358760f901e848e5740", "score": "0.53428775", "text": "public void imprimePiramide() {\n int sumatoria = 0;\n for (int indexFilas = 0, valorCelda = 1, indexPiramide = m[0].length/2; indexFilas < m.length; indexFilas++) {\n for (int indexColumnas = m[indexFilas].length-1; indexColumnas >= 0; indexColumnas--) {\n m[indexFilas][indexColumnas] = valorCelda;\n valorCelda++;\n }\n if (indexFilas == 0) {\n System.out.println(m[indexFilas][indexPiramide-indexFilas]);\n sumatoria += m[indexFilas][indexPiramide-indexFilas];\n } else {\n if (indexPiramide+indexFilas < m[0].length && indexPiramide-indexFilas >= 0) {\n System.out.println(m[indexFilas][indexPiramide+indexFilas]);\n System.out.println(m[indexFilas][indexPiramide-indexFilas]);\n sumatoria += m[indexFilas][indexPiramide+indexFilas];\n sumatoria += m[indexFilas][indexPiramide-indexFilas];\n }\n }\n }\n System.out.println(\"Sumatoria: \" + sumatoria);\n// System.out.println();\n// for (int indexFilas = 0; indexFilas < m.length; indexFilas++) {\n// for (int indexColumnas = 0; indexColumnas < m[indexFilas].length; indexColumnas++) {\n// if (m[indexFilas][indexColumnas] < 10) System.out.print(\" \");\n// System.out.print(m[indexFilas][indexColumnas] + \" \");\n// }\n// System.out.println();\n// }\n }", "title": "" }, { "docid": "2806063519e1dee17109a7a621f7d1fd", "score": "0.53426564", "text": "public boolean P6P12() {\n if ((_calzada[2] == 1) && (_calzada[4] == 1) && ((_calzada[6] - 12) >= 0)) {\n _calzada[2] = 0;\n _calzada[4] = 0;\n _calzada[5] = _calzada[5] + 12;\n _calzada[6] = _calzada[6] - 12;\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "8e1409b3484b491bfe1b0042b63c93fe", "score": "0.53425676", "text": "public void acelera(int mas) {\n if(this.velocidadMarchaAtras>this.velocidad){\n this.velocidadMarchaAtras-= mas;\n this.velocidad += mas;\n }else{\n this.velocidad += mas;\n }\n }", "title": "" }, { "docid": "d161b9a780ce3a23f6f28289f521021f", "score": "0.5341435", "text": "public String imprimirMontante(Cliente cliente) { \r\n\t\tdouble montante = calcularMontante(cliente);\r\n\t\t\r\n\t\tString saida = \"Total (Estacionamento):\" + montante + \"\\n\";\r\n\t\treturn saida;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "eb8f3ce6976652840d1ebee08ca0e067", "score": "0.5339014", "text": "@Override\r\n public float precioFinal(Electrodomestico e) {\r\n Lavadora a = (Lavadora) e;\r\n float acumulador;\r\n if (a.getCarga() > 30)\r\n acumulador = super.precioFinal(e) + 50;\r\n else\r\n acumulador = super.precioFinal(e);\r\n return acumulador;\r\n }", "title": "" }, { "docid": "ad495430f6cb08f3bc200e05d5891c3d", "score": "0.5337236", "text": "public static void main(String[] args) {\r\n\t\t// defino mis variables de trabajo\r\n\t\tfloat numHombres = 0, numMujeres = 0, totalAlumnos = 0;\r\n\t\tfloat porcetajeHombres = 0, porcetajeMujeres = 0;\r\n\t\t// me defino un escanner para solicitar dato por teclado\r\n\t\tScanner teclado = new Scanner(System.in);\r\n\t\t// que entra ???\r\n\t\tSystem.out.println(\"ingrese el numero de estudiantes mujeres\");\r\n\t\tnumMujeres = teclado.nextFloat();\r\n\t\tSystem.out.println(\"ingrese el numero de estudiantes hombres\");\r\n\t\tnumHombres = teclado.nextFloat();\r\n\t\t// que se procesa ???\r\n\t\ttotalAlumnos = numHombres + numMujeres;\r\n\t\tporcetajeMujeres = numMujeres * 100 / totalAlumnos;\r\n\t\tporcetajeHombres = numHombres * 100 / totalAlumnos;\r\n\t\t// que sale ???\r\n\t\tSystem.out.println(\"el porcentaje de mujeres es : \" + porcetajeMujeres);\r\n\t\tSystem.out.println(\"el porcentaje de hombres es : \" + porcetajeHombres);\r\n\t}", "title": "" }, { "docid": "422c7d4efacd9c42a9cb95a5ba41e292", "score": "0.53363764", "text": "public Campo() {\r\n this.primoGrande = new BigInteger(\"20835161731609124123432674631212444\"\r\n + \"8251235562226470491514186331217050270460481\");\r\n this.limite = new BigInteger[2];\r\n System.out.println(\"Campo: \" + this.primoGrande);\r\n this.setDominio();\r\n }", "title": "" }, { "docid": "caba77cfe3ddf8e1fb06dba0c0c0e114", "score": "0.53356105", "text": "public int[] retournerJourSemaineMoisCourant() \n\t{\n\t\tint indiceMax = this.retournerDernierJourDuMois(this.mois);\n\t\tint[] retour = new int[indiceMax];\n\t\tfor(int indice = 1; indice <= indiceMax; indice++) \n\t\t{\n\t\t\tretour[indice-1] = new GregorianCalendar(this.annee, this.mois, indice).get(Calendar.DAY_OF_WEEK);\n\t\t}\n\t\treturn retour;\n\t}", "title": "" }, { "docid": "b9a010793c6af955e5c7854b0fa1ef8d", "score": "0.53348553", "text": "public String conversorSegundosDigital(int segundos){\n Date fecha = new Date(segundos*1000);\n String formatoFecha = new SimpleDateFormat(\"00:mm:ss\").format(fecha); \n return formatoFecha;\n }", "title": "" }, { "docid": "47feb36efe07e93a83f18d9affdbc163", "score": "0.5332097", "text": "private void colocar_fecha() {\n t1.setText((mMonthIni + 1) + \"-\" + mDayIni + \"-\" + mYearIni + \" \");\n }", "title": "" }, { "docid": "1e99a0790c1b4280751026ce053ac278", "score": "0.5327596", "text": "private Poblacion poblacionGenerada() {\n Poblacion pob = new Poblacion();\n pob.setIndividuos(nuevos);\n pob.setMedia(sum / m);\n pob.setDesviacion(Math.pow((sum2 / m) - (pob.getMedia() * pob.getMedia()), 0.5));\n pob.setMejorIndividuo(mejor);\n pob.setPeorIndividuo(peor);\n return pob;\n }", "title": "" }, { "docid": "57972114530355b35083c3abbf4e343d", "score": "0.53191257", "text": "public int getPontuacao() {\n return pontuacao;\n }", "title": "" } ]
65fa29e774de01e9563740c21694df33
$ANTLR start "query" /root/Documents/javawork/cassandratrunk/src/antlr/Cql.g:132:1: query returns [CQLStatement.Raw stmnt] : st= cqlStatement ( ';' ) EOF ;
[ { "docid": "29424fb621db7ced3dda3356e17ca10e", "score": "0.77863836", "text": "public final CQLStatement.Raw query() throws RecognitionException {\n\t\tCQLStatement.Raw stmnt = null;\n\n\n\t\tCQLStatement.Raw st =null;\n\n\t\ttry {\n\t\t\t// /root/Documents/java-work/cassandra-trunk/src/antlr/Cql.g:133:5: (st= cqlStatement ( ';' )* EOF )\n\t\t\t// /root/Documents/java-work/cassandra-trunk/src/antlr/Cql.g:133:7: st= cqlStatement ( ';' )* EOF\n\t\t\t{\n\t\t\tpushFollow(FOLLOW_cqlStatement_in_query77);\n\t\t\tst=cqlStatement();\n\t\t\tstate._fsp--;\n\n\t\t\t// /root/Documents/java-work/cassandra-trunk/src/antlr/Cql.g:133:23: ( ';' )*\n\t\t\tloop1:\n\t\t\twhile (true) {\n\t\t\t\tint alt1=2;\n\t\t\t\tint LA1_0 = input.LA(1);\n\t\t\t\tif ( (LA1_0==207) ) {\n\t\t\t\t\talt1=1;\n\t\t\t\t}\n\n\t\t\t\tswitch (alt1) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// /root/Documents/java-work/cassandra-trunk/src/antlr/Cql.g:133:24: ';'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,207,FOLLOW_207_in_query80); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak loop1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tmatch(input,EOF,FOLLOW_EOF_in_query84); \n\t\t\t stmnt = st; \n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn stmnt;\n\t}", "title": "" } ]
[ { "docid": "adc6d6b0f5ecc372ed750ebde79ac95e", "score": "0.63998914", "text": "public final CQLStatement query() throws RecognitionException {\n\t\tCQLStatement stmnt = null;\n\n\n\t\tSelectStatement selectStatement1 =null;\n\t\tUpdateStatement insertStatement2 =null;\n\t\tUpdateStatement updateStatement3 =null;\n\t\tBatchStatement batchStatement4 =null;\n\t\tString useStatement5 =null;\n\t\tPair<String,String> truncateStatement6 =null;\n\t\tDeleteStatement deleteStatement7 =null;\n\t\tCreateKeyspaceStatement createKeyspaceStatement8 =null;\n\t\tCreateColumnFamilyStatement createColumnFamilyStatement9 =null;\n\t\tCreateIndexStatement createIndexStatement10 =null;\n\t\tDropIndexStatement dropIndexStatement11 =null;\n\t\tString dropKeyspaceStatement12 =null;\n\t\tString dropColumnFamilyStatement13 =null;\n\t\tAlterTableStatement alterTableStatement14 =null;\n\n\t\ttry {\n\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:115:5: ( selectStatement | insertStatement endStmnt | updateStatement endStmnt | batchStatement | useStatement | truncateStatement | deleteStatement endStmnt | createKeyspaceStatement | createColumnFamilyStatement | createIndexStatement | dropIndexStatement | dropKeyspaceStatement | dropColumnFamilyStatement | alterTableStatement )\n\t\t\tint alt1=14;\n\t\t\tswitch ( input.LA(1) ) {\n\t\t\tcase K_SELECT:\n\t\t\t\t{\n\t\t\t\talt1=1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase K_INSERT:\n\t\t\t\t{\n\t\t\t\talt1=2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase K_UPDATE:\n\t\t\t\t{\n\t\t\t\talt1=3;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase K_BEGIN:\n\t\t\t\t{\n\t\t\t\talt1=4;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase K_USE:\n\t\t\t\t{\n\t\t\t\talt1=5;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase K_TRUNCATE:\n\t\t\t\t{\n\t\t\t\talt1=6;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase K_DELETE:\n\t\t\t\t{\n\t\t\t\talt1=7;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase K_CREATE:\n\t\t\t\t{\n\t\t\t\tswitch ( input.LA(2) ) {\n\t\t\t\tcase K_KEYSPACE:\n\t\t\t\t\t{\n\t\t\t\t\talt1=8;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase K_COLUMNFAMILY:\n\t\t\t\t\t{\n\t\t\t\t\talt1=9;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase K_INDEX:\n\t\t\t\t\t{\n\t\t\t\t\talt1=10;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tint nvaeMark = input.mark();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 1, 8, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tinput.rewind(nvaeMark);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase K_DROP:\n\t\t\t\t{\n\t\t\t\tswitch ( input.LA(2) ) {\n\t\t\t\tcase K_INDEX:\n\t\t\t\t\t{\n\t\t\t\t\talt1=11;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase K_KEYSPACE:\n\t\t\t\t\t{\n\t\t\t\t\talt1=12;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase K_COLUMNFAMILY:\n\t\t\t\t\t{\n\t\t\t\t\talt1=13;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tint nvaeMark = input.mark();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 1, 9, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tinput.rewind(nvaeMark);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase K_ALTER:\n\t\t\t\t{\n\t\t\t\talt1=14;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 1, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\t\t\tswitch (alt1) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:115:7: selectStatement\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_selectStatement_in_query69);\n\t\t\t\t\tselectStatement1=selectStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.SELECT, selectStatement1, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:116:7: insertStatement endStmnt\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_insertStatement_in_query81);\n\t\t\t\t\tinsertStatement2=insertStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tpushFollow(FOLLOW_endStmnt_in_query83);\n\t\t\t\t\tendStmnt();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.INSERT, insertStatement2, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:117:7: updateStatement endStmnt\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_updateStatement_in_query93);\n\t\t\t\t\tupdateStatement3=updateStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tpushFollow(FOLLOW_endStmnt_in_query95);\n\t\t\t\t\tendStmnt();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.UPDATE, updateStatement3, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:118:7: batchStatement\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_batchStatement_in_query105);\n\t\t\t\t\tbatchStatement4=batchStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.BATCH, batchStatement4, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:119:7: useStatement\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_useStatement_in_query115);\n\t\t\t\t\tuseStatement5=useStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.USE, useStatement5, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:120:7: truncateStatement\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_truncateStatement_in_query130);\n\t\t\t\t\ttruncateStatement6=truncateStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.TRUNCATE, truncateStatement6, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:121:7: deleteStatement endStmnt\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_deleteStatement_in_query140);\n\t\t\t\t\tdeleteStatement7=deleteStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tpushFollow(FOLLOW_endStmnt_in_query142);\n\t\t\t\t\tendStmnt();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.DELETE, deleteStatement7, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:122:7: createKeyspaceStatement\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_createKeyspaceStatement_in_query152);\n\t\t\t\t\tcreateKeyspaceStatement8=createKeyspaceStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.CREATE_KEYSPACE, createKeyspaceStatement8, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:123:7: createColumnFamilyStatement\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_createColumnFamilyStatement_in_query162);\n\t\t\t\t\tcreateColumnFamilyStatement9=createColumnFamilyStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.CREATE_COLUMNFAMILY, createColumnFamilyStatement9, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 10 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:124:7: createIndexStatement\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_createIndexStatement_in_query172);\n\t\t\t\t\tcreateIndexStatement10=createIndexStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.CREATE_INDEX, createIndexStatement10, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 11 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:125:7: dropIndexStatement\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_dropIndexStatement_in_query182);\n\t\t\t\t\tdropIndexStatement11=dropIndexStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.DROP_INDEX, dropIndexStatement11, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 12 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:126:7: dropKeyspaceStatement\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_dropKeyspaceStatement_in_query194);\n\t\t\t\t\tdropKeyspaceStatement12=dropKeyspaceStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.DROP_KEYSPACE, dropKeyspaceStatement12, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 13 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:127:7: dropColumnFamilyStatement\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_dropColumnFamilyStatement_in_query204);\n\t\t\t\t\tdropColumnFamilyStatement13=dropColumnFamilyStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.DROP_COLUMNFAMILY, dropColumnFamilyStatement13, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 14 :\n\t\t\t\t\t// /home/abdelrahman/apache-cassandra-2.1.5-src/src/java/org/apache/cassandra/cql/Cql.g:128:7: alterTableStatement\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_alterTableStatement_in_query214);\n\t\t\t\t\talterTableStatement14=alterTableStatement();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t stmnt = new CQLStatement(StatementType.ALTER_TABLE, alterTableStatement14, currentBindMarkerIdx); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn stmnt;\n\t}", "title": "" }, { "docid": "5988e2aab5901ce92819ddda04aedbd4", "score": "0.5955551", "text": "public static CqlResult executeQuery(String query)\n {\n CqlCompiler compiler = new CqlCompiler();\n\n try\n {\n logger_.debug(\"Compiling CQL query ...\");\n Plan plan = compiler.compileQuery(query);\n if (plan != null)\n {\n logger_.debug(\"Executing CQL query ...\"); \n return plan.execute();\n }\n }\n catch (Exception e)\n {\n CqlResult result = new CqlResult(null);\n result.errorTxt = e.getMessage(); \n\n Class<? extends Exception> excpClass = e.getClass();\n if ((excpClass != SemanticException.class)\n && (excpClass != ParseException.class)\n && (excpClass != RuntimeException.class))\n {\n result.errorTxt = \"CQL Internal Error: \" + result.errorTxt;\n result.errorCode = 1; // failure\n logger_.error(LogUtil.throwableToString(e));\n }\n\n return result;\n }\n\n return null;\n }", "title": "" }, { "docid": "0ad1e24f8f9935a4b13ebc76936fd95d", "score": "0.58947116", "text": "public Result query() throws QueryException {\r\n compile();\r\n return ctx.eval();\r\n }", "title": "" }, { "docid": "f31c5b93ef60608fbb908ee76233284e", "score": "0.5871485", "text": "public String getStatement() { return this.queryStatement; }", "title": "" }, { "docid": "d980305c19d26d844b0300c35105335e", "score": "0.58446735", "text": "private T compileQuery(String s) throws SourceCodeException\n {\n qparser.setTokenSource(TokenSource.getTokenSourceForString(s));\n\n Sentence<S> q1 = qparser.parse();\n\n compilerObserver = new CompilerOutputObserver();\n this.compiler.setCompilerObserver(compilerObserver);\n compiler.compile(q1);\n\n return compilerObserver.getLatest();\n }", "title": "" }, { "docid": "eb7fde4df1ccba0f2748beee93ee2a2b", "score": "0.5675035", "text": "Query getQuery();", "title": "" }, { "docid": "d0c1cefd1458cc87396931c80fd74b05", "score": "0.55642533", "text": "public void BaseParser() throws RecognitionException, InvalidRequestException\n {\n StmtT stmtQ;\n ANTLRStringStream stringStream = new ANTLRStringStream(getQuery());\n CqlLexer lexer = new CqlLexer(stringStream); \n CommonTokenStream token = new CommonTokenStream(lexer);\n CqlParser parser = new CqlParser(token);\n \n ParsedStatement pStmt = parser.query();\n \n stmtQ = getStatment(pStmt);\n \n switch (stmtQ)\n {\n case SELECT:\n {\n SelectStatement.RawStatement sts = (SelectStatement.RawStatement) pStmt;\n SelectHandler(sts);\n break;\n }\n /* TODO In case different statement implementations are needed */\n default:\n {\n System.out.println(\"[PARSER]: Error : Wrong stament NONE statement found...\");\n break;\n }\n }\n }", "title": "" }, { "docid": "bec129a18e75b4c0f8f5838cf5398bab", "score": "0.5436737", "text": "public String getQuery() {\n/* 754 */ return this.query;\n/* */ }", "title": "" }, { "docid": "d1d418e072adafc85f524ef074e55220", "score": "0.537141", "text": "public ResultSet query(String query) {\n \t\ttry{\n \t\tStatement statement = connection.createStatement();\n \t\tResultSet resultSet = statement.executeQuery(query); \n \t\treturn resultSet;\n \t\t}catch(Exception e) {\n \t\t\tSystem.out.println(\"[iBank] Error in query \"+query+\" \"+e);\n \t\t}\n \t\treturn null;\n \t}", "title": "" }, { "docid": "7f5a669c04484d1b1feaa1d051e5f1e9", "score": "0.5250149", "text": "@Override\n public ParsedQuery visitQuery(TqlParser.QueryContext ctx) {\n return super.visitStatement(ctx.statement());\n }", "title": "" }, { "docid": "0da28270b69e971eb17c58f9c265061e", "score": "0.52065295", "text": "@Override\n\tpublic ResultSet execute(String query) {\n\n\t\ttry {\n\t\t\treturn c.createStatement().executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(\"Error in execute\", e);\n\t\t}\n\t\treturn null;\n\t\n\t}", "title": "" }, { "docid": "acbd6497d89e543ed9440dac620c87ba", "score": "0.5197744", "text": "R execute() throws InvalidQuery;", "title": "" }, { "docid": "1c347a6beb2228c257a6388757514886", "score": "0.5167521", "text": "public static OperationResult<CqlResult<String, String>> execCQL(Keyspace keyspace, String cqlStatement){\n try {\n \n ColumnFamily<String, String> mail = new ColumnFamily<>(\n __COLUMNFAMILY__, // CF Name\n StringSerializer.get(), // Key Serializer\n StringSerializer.get()); // Column Serializer\n \n OperationResult<CqlResult<String, String>> result = \n keyspace.prepareQuery(mail).withCql(cqlStatement).execute();\n \n return result;\n \n } catch (ConnectionException ex) { \n Logger.getLogger(Astyanax.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return null;\n }", "title": "" }, { "docid": "c4c089bd9defeafdcc48e09f7b053738", "score": "0.5141843", "text": "public aql k()\r\n/* 43: */ {\r\n/* 44:58 */ return aql.c;\r\n/* 45: */ }", "title": "" }, { "docid": "9573382ce056b1d5a4008226216d2e42", "score": "0.51380306", "text": "public ResultSet execute(String cql) {\n return this.session.execute(cql);\n }", "title": "" }, { "docid": "940e8f7ab86cd4ff4120a18dd085968b", "score": "0.51357514", "text": "public Query createQuery(String q)\n\t{\n\t\tlogger.fine(\"Creating query: \" + q);\n\t\tDatabaseQuery query = database.createQuery();\n\t\tScanner scanner = new Scanner(q);\n\t\t// SELECT, UPDATE, DELETE is required\n\t\tQueryType qtype = parseQueryType(scanner);\n\t\tquery.setQueryType(qtype);\n\t\tMap<String,EntityType> rtypes = null;\n\t\tif (qtype.equals(QueryType.SELECT))\n\t\t{\n\t\t\tString[] rnames = parseSelect(scanner);\n\t\t\t// FROM is mandatory\n\t\t\trtypes = parseFrom(scanner, query);\n\t\t\t// WHERE is optional\n\t\t\tif (scanner.hasNext(\"WHERE\"))\n\t\t\t{\n\t\t\t\tparseWhereClause(scanner, query);\n\t\t\t}\n\t\t\tif (scanner.hasNext(\"ORDER\"))\n\t\t\t{\n\t\t\t\tparseOrderBy(scanner, query);\n\t\t\t}\n\t\t\tfor (String key : rtypes.keySet())\n\t\t\t{\n\t\t\t\tEntityType type = rtypes.get(key);\n\t\t\t\tlogger.finest(\"rtypes[\" + key + \",\" + type.getClassName() + \"]\");\n\t\t\t}\n\t\t\treturn new EntityQuery(this, qtype, rnames, rtypes, query);\t\t\t\n\t\t}\n\t\telse if (QueryType.DELETE.equals(qtype))\n\t\t{\n\t\t\tthrow new PersistenceException(\"DELETE queries are not yet supported!\");\n\t\t}\n\t\telse if (QueryType.UPDATE.equals(qtype))\n\t\t{\n\t\t\tthrow new PersistenceException(\"UPDATE queries are not yet supported!\");\n\t\t}\n\t\telse throw new PersistenceException(\"Unrecognized query type!\");\n\t}", "title": "" }, { "docid": "9e3f30d104e6e1b654a0b25d0b2cb185", "score": "0.51323825", "text": "public interface Statement<T> {\n\n /**\n * CQL statement string.\n * \n * @return CQL statement\n */\n public String getCQL();\n\n /**\n * Array of arguments required for this statement.\n * \n * @return arguments required for this statement.\n */\n public String[] getRequiredArguments();\n\n /**\n * Set query parameter by name.\n * \n * @param name parameter name\n * @param value value\n * @return\n */\n public void setParameter(String name, Object value);\n\n /**\n * Set query parameters by order.\n * \n * @param values array of query parameters.\n */\n public void withParameters(Object... values);\n\n /**\n * Set query options for statement.\n * \n * @param queryOptions query options to use with statement\n */\n public void withQueryOptions(QueryOptions queryOptions);\n\n /**\n * Executes statement and returns single result.\n * \n * @return single result or null\n */\n public T getSingleResult();\n\n /**\n * Executes statement.\n * \n * @return iterator with 0 or more elements\n */\n public EntityIterator<T> execute();\n\n}", "title": "" }, { "docid": "8b846f87d9f14e0cdd1b1a1b5de97bab", "score": "0.5131832", "text": "public static CommonTree buildAST(String sql) throws Exception {\n\t\tANTLRInputStream input = new ANTLRInputStream(new ByteArrayInputStream(\r\n\t\t\t\tsql.getBytes()));\r\n\t\t// Create an ExprLexer that feeds from that stream\r\n\t\tPLSQLLexer lexer = new PLSQLLexer(input);\r\n\t\t// Create a stream of tokens fed by the lexer\r\n\t\tCommonTokenStream tokens = new CommonTokenStream(lexer);\r\n\t\t// Create a parser that feeds off the token stream\r\n\t\tPLSQLParser parser = new PLSQLParser(tokens);\r\n\t\t// Begin parsing at rule prog\r\n\t\tPLSQLParser.seq_of_statements_return r = parser.seq_of_statements();\r\n\t\tCommonTree t = (CommonTree) r.getTree();\r\n\t\treturn t;\r\n\r\n\t}", "title": "" }, { "docid": "1abc75b2db65fa86d6da4bd9dd45f932", "score": "0.51142645", "text": "public Query query();", "title": "" }, { "docid": "ad026d3b49254d3ed5239ccdcc411c1b", "score": "0.5103931", "text": "private static final ResultSet query(String query)\n\t{\n\t\ttry {\n\t\t\tfinal Statement stm = connection.createStatement();\n\t\t\t\n\t\t\tif (stm.execute(query))\n\t\t\t\treturn stm.getResultSet();\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "41eea2b694bdabe44bec362b520f5360", "score": "0.5077955", "text": "public Statement execQuery(String q) {\n\t\tStatement statement = null;\n\n\t\tif (status < 2) {\n\t\t\t// not connected, can't do anything\n\t\t\tSystem.out.println(\"Error: trying to query non-connected DBManager\");\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tstatement = conn.createStatement();\n\t\t\tstatement.executeQuery(q);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Error executing query: \" + e.getMessage());\n\n\t\t\tif (statement != null) {\n\t\t\t\ttry {\n\t\t\t\t\tstatement.close();\n\t\t\t\t} catch (Exception _e) {}\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\n\t\treturn statement;\n\t}", "title": "" }, { "docid": "6e41803640727c3286f8d5253ddd927a", "score": "0.50651777", "text": "MetaStatement getStatement();", "title": "" }, { "docid": "82b9aaa700efd5691282884b8b7b7322", "score": "0.50249237", "text": "public Query newQuery();", "title": "" }, { "docid": "0457707cc677f4f17d8055012644c677", "score": "0.501354", "text": "public ResultSet executeQuery(String statement)\n throws ConnectionException, NGQLException, TException;", "title": "" }, { "docid": "59a586c6f931dcb80d298b9d23db8033", "score": "0.5009856", "text": "@Override\n String query();", "title": "" }, { "docid": "0bac79dbf75f9a8897c6388d1a01b3c2", "score": "0.49982515", "text": "public Statement parse(String command) {\n System.out.println(\"Now parsing command \"+ command +\"...\");\n return parse(command.split(\" \"), \"INITIAL\");\n }", "title": "" }, { "docid": "a097fcc7854bc787ebdaf7605109ff98", "score": "0.49974218", "text": "protected abstract String findStatement();", "title": "" }, { "docid": "bf18e015759a0bd6d3ffeb60f9be09ec", "score": "0.49970412", "text": "private AST statement() {\n if(currentToken == null) return null;\n\n if(isMatch(currentToken,\"id\")){\n if(isMatch(nextToken, \"(\"))\n return function_call();\n else if(isMatch(nextToken, \"[\") || isMatch(nextToken, \",\"))\n return variable();\n //else if(isMatch(nextToken, \"=\")) expression_statement();\n else\n return expression_statement();\n }\n\n if(isMatch(currentToken, \"}\")){ // checks if a close param and updates stack\n if(!stack.isEmpty()){\n if(stack.peek() == '{') stack.pop();\n }\n }\n\n if(currentToken == null) return null;\n\n String keyword = currentToken.getType();\n switch(keyword){\n case \"static\": return variable_declaration(); // variable-declaration |\n case \"const\": return variable_declaration(); // variable-declaration |\n case \"var\": return variable_declaration();\n case \"for\": return for_statement(); // for-statement |\n case \"while\": return while_statement(); // while-statement |\n case \"if\": return if_statement(); // if-statement |\n case \"print\": return print_statement(); // print-statement |\n case \"return\": return return_statement(); // return-statement |\n case \"exit\": return exit_statement(); // exit-statement |\n case \"function\": return function_declaration(); // function-declaration |\n case \"type\": return type_declaration(); // type-declaration |\n case \"int32\": return casting_declaration(); // casting type\n case \"float64\": return casting_declaration(); // casting type\n case \"byte\": return casting_declaration(); // casting type\n\n default:\n break;\n }\n if(isMatch(currentToken, \"int32\") || isMatch(currentToken, \"float64\"))\n return expression();\n\n return null;\n }", "title": "" }, { "docid": "9cc6d6e9d361967bb38251352ffa3a28", "score": "0.49812293", "text": "private void compile() throws QueryException, MappingException {\n \t\tLOG.trace( \"Compiling query\" );\n \t\ttry {\n \t\t\tParserHelper.parse( new PreprocessingParser( tokenReplacements ),\n \t\t\t\t\tqueryString,\n \t\t\t\t\tParserHelper.HQL_SEPARATORS,\n \t\t\t\t\tthis );\n \t\t\trenderSQL();\n \t\t}\n \t\tcatch ( QueryException qe ) {\n \t\t\tif ( qe.getQueryString() == null ) {\n \t\t\t\tthrow qe.wrapWithQueryString( queryString );\n \t\t\t}\n \t\t\telse {\n \t\t\t\tthrow qe;\n \t\t\t}\n \t\t}\n \t\tcatch ( MappingException me ) {\n \t\t\tthrow me;\n \t\t}\n \t\tcatch ( Exception e ) {\n \t\t\tLOG.debug( \"Unexpected query compilation problem\", e );\n \t\t\te.printStackTrace();\n \t\t\tthrow new QueryException( \"Incorrect query syntax\", queryString, e );\n \t\t}\n \n \t\tpostInstantiate();\n \n \t\tcompiled = true;\n \n \t}", "title": "" }, { "docid": "4d9eaa7ab82b857314255dd80c519512", "score": "0.49735266", "text": "public List<Record> executeQuery(String query) {\n\t\treturn session.writeTransaction(new TransactionWork<List<Record>>() {\n\n\t\t\t@Override\n\t\t\tpublic List<Record> execute(Transaction tx) {\n\t\t\t\t// tx.\n\n\t\t\t\tStatementResult result = tx.run(query);\n\t\t\t\t// result.list().get(0).asMap().entrySet()\n\t\t\t\t// .forEach(e -> System.out.println(e.getKey() + \",\" +\n\t\t\t\t// e.getValue()));\n\t\t\t\t// return result.list().stream().map(r ->\n\t\t\t\t// r.get(0).asString()).collect( Collectors.toList());\n\t\t\t\treturn result.list();\n\n\t\t\t}\n\n\t\t});\n\t}", "title": "" }, { "docid": "02d9d8196ab4bc5275c702ca89fae5ee", "score": "0.4970076", "text": "public String getRawWhereClause() {\n/* 974 */ return this.rawWhereClause;\n/* */ }", "title": "" }, { "docid": "f87106ce9f354be1f7f455a77624430a", "score": "0.49540013", "text": "public String visit(QStatement n) {\n String _ret=null;\n n.f0.accept(this);\n n.f1.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "48a20484963e10d5307120d828d825d2", "score": "0.49351206", "text": "private HelpStatement parseStatement(String inputText) {\n HelpStatement result = null;\n ANTLRStringStream input = new ANTLRStringStream(inputText);\n CrossdataHelpLexer lexer = new CrossdataHelpLexer(input);\n CommonTokenStream tokens = new CommonTokenStream(lexer);\n CrossdataHelpParser parser = new CrossdataHelpParser(tokens);\n try {\n result = parser.query();\n } catch (RecognitionException e) {\n logger.error(\"Cannot parse statement\", e);\n }\n return result;\n }", "title": "" }, { "docid": "116c9e8f0a4b6d184ffbf674493183c6", "score": "0.49191862", "text": "Query query(String pattern)\r\n/* 505: */ {\r\n/* 506:421 */ return new Query(pattern, null);\r\n/* 507: */ }", "title": "" }, { "docid": "a2097e15d7a9e7911301094288a774df", "score": "0.49090692", "text": "CompiledStatement compileSelectStatement(CompiledStatement cs)\n throws HsqlException {\n\n Select select;\n\n clearParameters();\n\n select = parseSelect();\n\n if (cs == null) {\n cs = new CompiledStatement();\n }\n\n cs.setAsSelect(select, getParameters());\n\n cs.subqueries = getSubqueries();\n\n return cs;\n }", "title": "" }, { "docid": "67582b2fdda13804008ffeb2bb7a4e56", "score": "0.49015862", "text": "Statement createStatement();", "title": "" }, { "docid": "f68967aa110181728874bcf8299fafb2", "score": "0.48963204", "text": "@SuppressWarnings(\"UnusedDeclaration\")\n public interface Query extends BasicQueryContract {\n \t/**\n \t * Get the query string.\n \t *\n \t * @return the query string\n \t */\n \tpublic String getQueryString();\n \n \t/**\n \t * Obtains the limit set on the maximum number of rows to retrieve. No set limit means there is no limit set\n \t * on the number of rows returned. Technically both {@code null} and any negative values are interpreted as no\n \t * limit; however, this method should always return null in such case.\n \t *\n \t * @return The\n \t */\n \tpublic Integer getMaxResults();\n \n \t/**\n \t * Set the maximum number of rows to retrieve.\n \t *\n \t * @param maxResults the maximum number of rows\n \t *\n \t * @return {@code this}, for method chaining\n \t *\n \t * @see #getMaxResults()\n \t */\n \tpublic Query setMaxResults(int maxResults);\n \n \t/**\n \t * Obtain the value specified (if any) for the first row to be returned from the query results; zero-based. Used,\n \t * in conjunction with {@link #getMaxResults()} in \"paginated queries\". No value specified means the first result\n \t * is returned. Zero and negative numbers are the same as no setting.\n \t *\n \t * @return The first result number.\n \t */\n \tpublic Integer getFirstResult();\n \n \t/**\n \t * Set the first row to retrieve.\n \t *\n \t * @param firstResult a row number, numbered from <tt>0</tt>\n \t *\n \t * @return {@code this}, for method chaining\n \t *\n \t * @see #getFirstResult()\n \t */\n \tpublic Query setFirstResult(int firstResult);\n \n \t@Override\n \tpublic Query setFlushMode(FlushMode flushMode);\n \n \t@Override\n \tpublic Query setCacheMode(CacheMode cacheMode);\n \n \t@Override\n \tpublic Query setCacheable(boolean cacheable);\n \n \t@Override\n \tpublic Query setCacheRegion(String cacheRegion);\n \n \t@Override\n \tpublic Query setTimeout(int timeout);\n \n \t@Override\n \tpublic Query setFetchSize(int fetchSize);\n \n \t@Override\n \tpublic Query setReadOnly(boolean readOnly);\n \n \t/**\n \t * Obtains the LockOptions in effect for this query.\n \t *\n \t * @return The LockOptions\n \t *\n \t * @see LockOptions\n \t */\n \tpublic LockOptions getLockOptions();\n \n \t/**\n \t * Set the lock options for the query. Specifically only the following are taken into consideration:<ol>\n \t * <li>{@link LockOptions#getLockMode()}</li>\n \t * <li>{@link LockOptions#getScope()}</li>\n \t * <li>{@link LockOptions#getTimeOut()}</li>\n \t * </ol>\n \t * For alias-specific locking, use {@link #setLockMode(String, LockMode)}.\n \t *\n \t * @param lockOptions The lock options to apply to the query.\n \t *\n \t * @return {@code this}, for method chaining\n \t *\n \t * @see #getLockOptions()\n \t */\n \tpublic Query setLockOptions(LockOptions lockOptions);\n \n \t/**\n \t * Set the LockMode to use for specific alias (as defined in the query's <tt>FROM</tt> clause).\n \t *\n \t * The alias-specific lock modes specified here are added to the query's internal\n \t * {@link #getLockOptions() LockOptions}.\n \t *\n \t * The effect of these alias-specific LockModes is somewhat dependent on the driver/database in use. Generally\n \t * speaking, for maximum portability, this method should only be used to mark that the rows corresponding to\n \t * the given alias should be included in pessimistic locking ({@link LockMode#PESSIMISTIC_WRITE}).\n \t *\n \t * @param alias a query alias, or {@code \"this\"} for a collection filter\n \t * @param lockMode The lock mode to apply.\n \t *\n \t * @return {@code this}, for method chaining\n \t *\n \t * @see #getLockOptions()\n \t */\n \tpublic Query setLockMode(String alias, LockMode lockMode);\n \n \t/**\n \t * Obtain the comment currently associated with this query. Provided SQL commenting is enabled\n \t * (generally by enabling the {@code hibernate.use_sql_comments} config setting), this comment will also be added\n \t * to the SQL query sent to the database. Often useful for identifying the source of troublesome queries on the\n \t * database side.\n \t *\n \t * @return The comment.\n \t */\n \tpublic String getComment();\n \n \t/**\n \t * Set the comment for this query.\n \t *\n \t * @param comment The human-readable comment\n \t *\n \t * @return {@code this}, for method chaining\n \t *\n \t * @see #getComment()\n \t */\n \tpublic Query setComment(String comment);\n \t\n \t/**\n-\t * Add a DB query hint to the SQL. These differ from JPA's {@link QueryHint}, which is specific to the JPA\n-\t * implementation and ignores DB vendor-specific hints. Instead, these are intended solely for the vendor-specific\n-\t * hints, such as Oracle's optimizers. Multiple query hints are supported; the Dialect will determine\n-\t * concatenation and placement.\n+\t * Add a DB query hint to the SQL. These differ from JPA's {@link javax.persistence.QueryHint}, which is specific\n+\t * to the JPA implementation and ignores DB vendor-specific hints. Instead, these are intended solely for the\n+\t * vendor-specific hints, such as Oracle's optimizers. Multiple query hints are supported; the Dialect will\n+\t * determine concatenation and placement.\n \t * \n \t * @param hint The database specific query hint to add.\n \t */\n \tpublic Query addQueryHint(String hint);\n \n \t/**\n \t * Return the HQL select clause aliases, if any.\n \t *\n \t * @return an array of aliases as strings\n \t */\n \tpublic String[] getReturnAliases();\n \n \t/**\n \t * Return the names of all named parameters of the query.\n \t *\n \t * @return the parameter names, in no particular order\n \t */\n \tpublic String[] getNamedParameters();\n \n \t/**\n \t * Return the query results as an <tt>Iterator</tt>. If the query\n \t * contains multiple results pre row, the results are returned in\n \t * an instance of <tt>Object[]</tt>.<br>\n \t * <br>\n \t * Entities returned as results are initialized on demand. The first\n \t * SQL query returns identifiers only.<br>\n \t *\n \t * @return the result iterator\n \t */\n \tpublic Iterator iterate();\n \n \t/**\n \t * Return the query results as <tt>ScrollableResults</tt>. The\n \t * scrollability of the returned results depends upon JDBC driver\n \t * support for scrollable <tt>ResultSet</tt>s.<br>\n \t *\n \t * @see ScrollableResults\n \t *\n \t * @return the result iterator\n \t */\n \tpublic ScrollableResults scroll();\n \n \t/**\n \t * Return the query results as ScrollableResults. The scrollability of the returned results\n \t * depends upon JDBC driver support for scrollable ResultSets.\n \t *\n \t * @param scrollMode The scroll mode\n \t *\n \t * @return the result iterator\n \t *\n \t * @see ScrollableResults\n \t * @see ScrollMode\n \t *\n \t */\n \tpublic ScrollableResults scroll(ScrollMode scrollMode);\n \n \t/**\n \t * Return the query results as a <tt>List</tt>. If the query contains\n \t * multiple results per row, the results are returned in an instance\n \t * of <tt>Object[]</tt>.\n \t *\n \t * @return the result list\n \t */\n \tpublic List list();\n \n \t/**\n \t * Convenience method to return a single instance that matches\n \t * the query, or null if the query returns no results.\n \t *\n \t * @return the single result or <tt>null</tt>\n \t *\n \t * @throws NonUniqueResultException if there is more than one matching result\n \t */\n \tpublic Object uniqueResult();\n \n \t/**\n \t * Execute the update or delete statement.\n \t *\n \t * The semantics are compliant with the ejb3 Query.executeUpdate() method.\n \t *\n \t * @return The number of entities updated or deleted.\n \t */\n \tpublic int executeUpdate();\n \n \t/**\n \t * Bind a value to a JDBC-style query parameter.\n \t *\n \t * @param position the position of the parameter in the query\n \t * string, numbered from <tt>0</tt>.\n \t * @param val the possibly-null parameter value\n \t * @param type the Hibernate type\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setParameter(int position, Object val, Type type);\n \n \t/**\n \t * Bind a value to a named query parameter.\n \t *\n \t * @param name the name of the parameter\n \t * @param val the possibly-null parameter value\n \t * @param type the Hibernate type\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setParameter(String name, Object val, Type type);\n \n \t/**\n \t * Bind a value to a JDBC-style query parameter. The Hibernate type of the parameter is\n \t * first detected via the usage/position in the query and if not sufficient secondly \n \t * guessed from the class of the given object.\n \t *\n \t * @param position the position of the parameter in the query\n \t * string, numbered from <tt>0</tt>.\n \t * @param val the non-null parameter value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setParameter(int position, Object val);\n \n \t/**\n \t * Bind a value to a named query parameter. The Hibernate type of the parameter is\n \t * first detected via the usage/position in the query and if not sufficient secondly \n \t * guessed from the class of the given object.\n \t *\n \t * @param name the name of the parameter\n \t * @param val the non-null parameter value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setParameter(String name, Object val);\n \t\n \t/**\n \t * Bind values and types to positional parameters. Allows binding more than one at a time; no real performance\n \t * impact.\n \t *\n \t * The number of elements in each array should match. That is, element number-0 in types array corresponds to\n \t * element-0 in the values array, etc,\n \t *\n \t * @param types The types\n \t * @param values The values\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setParameters(Object[] values, Type[] types);\n \n \t/**\n \t * Bind multiple values to a named query parameter. This is useful for binding\n \t * a list of values to an expression such as <tt>foo.bar in (:value_list)</tt>.\n \t *\n \t * @param name the name of the parameter\n \t * @param values a collection of values to list\n \t * @param type the Hibernate type of the values\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setParameterList(String name, Collection values, Type type);\n \n \t/**\n \t * Bind multiple values to a named query parameter. The Hibernate type of the parameter is\n \t * first detected via the usage/position in the query and if not sufficient secondly \n \t * guessed from the class of the first object in the collection. This is useful for binding a list of values\n \t * to an expression such as <tt>foo.bar in (:value_list)</tt>.\n \t *\n \t * @param name the name of the parameter\n \t * @param values a collection of values to list\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setParameterList(String name, Collection values);\n \n \t/**\n \t * Bind multiple values to a named query parameter. This is useful for binding\n \t * a list of values to an expression such as <tt>foo.bar in (:value_list)</tt>.\n \t *\n \t * @param name the name of the parameter\n \t * @param values a collection of values to list\n \t * @param type the Hibernate type of the values\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setParameterList(String name, Object[] values, Type type);\n \n \t/**\n \t * Bind multiple values to a named query parameter. The Hibernate type of the parameter is\n \t * first detected via the usage/position in the query and if not sufficient secondly \n \t * guessed from the class of the first object in the array. This is useful for binding a list of values\n \t * to an expression such as <tt>foo.bar in (:value_list)</tt>.\n \t *\n \t * @param name the name of the parameter\n \t * @param values a collection of values to list\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setParameterList(String name, Object[] values);\n \n \t/**\n \t * Bind the property values of the given bean to named parameters of the query,\n \t * matching property names with parameter names and mapping property types to\n \t * Hibernate types using heuristics.\n \t *\n \t * @param bean any JavaBean or POJO\n \t *\n \t * @return {@code this}, for method chaining\n \t */\t\n \tpublic Query setProperties(Object bean);\n \t\n \t/**\n \t * Bind the values of the given Map for each named parameters of the query,\n \t * matching key names with parameter names and mapping value types to\n \t * Hibernate types using heuristics.\n \t *\n \t * @param bean a java.util.Map\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setProperties(Map bean);\n \n \t/**\n \t * Bind a positional String-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setString(int position, String val);\n \n \t/**\n \t * Bind a positional char-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setCharacter(int position, char val);\n \n \t/**\n \t * Bind a positional boolean-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setBoolean(int position, boolean val);\n \n \t/**\n \t * Bind a positional byte-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setByte(int position, byte val);\n \n \t/**\n \t * Bind a positional short-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setShort(int position, short val);\n \n \t/**\n \t * Bind a positional int-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setInteger(int position, int val);\n \n \t/**\n \t * Bind a positional long-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setLong(int position, long val);\n \n \t/**\n \t * Bind a positional float-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setFloat(int position, float val);\n \n \t/**\n \t * Bind a positional double-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setDouble(int position, double val);\n \n \t/**\n \t * Bind a positional binary-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setBinary(int position, byte[] val);\n \n \t/**\n \t * Bind a positional String-valued parameter using streaming.\n \t *\n \t * @param position The parameter position\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setText(int position, String val);\n \n \t/**\n \t * Bind a positional binary-valued parameter using serialization.\n \t *\n \t * @param position The parameter position\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setSerializable(int position, Serializable val);\n \n \t/**\n \t * Bind a positional Locale-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param locale The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setLocale(int position, Locale locale);\n \n \t/**\n \t * Bind a positional BigDecimal-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param number The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setBigDecimal(int position, BigDecimal number);\n \n \t/**\n \t * Bind a positional BigDecimal-valued parameter.\n \t *\n \t * @param position The parameter position\n \t * @param number The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setBigInteger(int position, BigInteger number);\n \n \t/**\n \t * Bind a positional Date-valued parameter using just the Date portion.\n \t *\n \t * @param position The parameter position\n \t * @param date The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setDate(int position, Date date);\n \n \t/**\n \t * Bind a positional Date-valued parameter using just the Time portion.\n \t *\n \t * @param position The parameter position\n \t * @param date The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setTime(int position, Date date);\n \n \t/**\n \t * Bind a positional Date-valued parameter using the full Timestamp.\n \t *\n \t * @param position The parameter position\n \t * @param date The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setTimestamp(int position, Date date);\n \n \t/**\n \t * Bind a positional Calendar-valued parameter using the full Timestamp portion.\n \t *\n \t * @param position The parameter position\n \t * @param calendar The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setCalendar(int position, Calendar calendar);\n \n \t/**\n \t * Bind a positional Calendar-valued parameter using just the Date portion.\n \t *\n \t * @param position The parameter position\n \t * @param calendar The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setCalendarDate(int position, Calendar calendar);\n \n \t/**\n \t * Bind a named String-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setString(String name, String val);\n \n \t/**\n \t * Bind a named char-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setCharacter(String name, char val);\n \n \t/**\n \t * Bind a named boolean-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setBoolean(String name, boolean val);\n \n \t/**\n \t * Bind a named byte-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setByte(String name, byte val);\n \n \t/**\n \t * Bind a named short-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setShort(String name, short val);\n \n \t/**\n \t * Bind a named int-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setInteger(String name, int val);\n \n \t/**\n \t * Bind a named long-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setLong(String name, long val);\n \n \t/**\n \t * Bind a named float-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setFloat(String name, float val);\n \n \t/**\n \t * Bind a named double-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setDouble(String name, double val);\n \n \t/**\n \t * Bind a named binary-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setBinary(String name, byte[] val);\n \n \t/**\n \t * Bind a named String-valued parameter using streaming.\n \t *\n \t * @param name The parameter name\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setText(String name, String val);\n \n \t/**\n \t * Bind a named binary-valued parameter using serialization.\n \t *\n \t * @param name The parameter name\n \t * @param val The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setSerializable(String name, Serializable val);\n \n \t/**\n \t * Bind a named Locale-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param locale The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setLocale(String name, Locale locale);\n \n \t/**\n \t * Bind a named BigDecimal-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param number The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setBigDecimal(String name, BigDecimal number);\n \n \t/**\n \t * Bind a named BigInteger-valued parameter.\n \t *\n \t * @param name The parameter name\n \t * @param number The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setBigInteger(String name, BigInteger number);\n \n \t/**\n \t * Bind the date (time is truncated) of a given Date object to a named query parameter.\n \t *\n \t * @param name The name of the parameter\n \t * @param date The date object\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setDate(String name, Date date);\n \n \t/**\n \t * Bind the time (date is truncated) of a given Date object to a named query parameter.\n \t *\n \t * @param name The name of the parameter\n \t * @param date The date object\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setTime(String name, Date date);\n \n \t/**\n \t * Bind the date and the time of a given Date object to a named query parameter.\n \t *\n \t * @param name The name of the parameter\n \t * @param date The date object\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setTimestamp(String name, Date date);\n \n \t/**\n \t * Bind a named Calendar-valued parameter using the full Timestamp.\n \t *\n \t * @param name The parameter name\n \t * @param calendar The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setCalendar(String name, Calendar calendar);\n \n \t/**\n \t * Bind a named Calendar-valued parameter using just the Date portion.\n \t *\n \t * @param name The parameter name\n \t * @param calendar The bind value\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setCalendarDate(String name, Calendar calendar);\n \n \t/**\n \t * Bind an instance of a mapped persistent class to a JDBC-style query parameter.\n \t * Use {@link #setParameter(int, Object)} for null values.\n \t *\n \t * @param position the position of the parameter in the query\n \t * string, numbered from <tt>0</tt>.\n \t * @param val a non-null instance of a persistent class\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setEntity(int position, Object val);\n \n \t/**\n \t * Bind an instance of a mapped persistent class to a named query parameter. Use\n \t * {@link #setParameter(String, Object)} for null values.\n \t *\n \t * @param name the name of the parameter\n \t * @param val a non-null instance of a persistent class\n \t *\n \t * @return {@code this}, for method chaining\n \t */\n \tpublic Query setEntity(String name, Object val);\n \t\n \t\n \t/**\n \t * Set a strategy for handling the query results. This can be used to change\n \t * \"shape\" of the query result.\n \t *\n \t * @param transformer The transformer to apply\n \t * @return this (for method chaining)\n \t */\n \tpublic Query setResultTransformer(ResultTransformer transformer);\n \n }", "title": "" }, { "docid": "5ff4531abaa93fb82620f1cfb0ab5b57", "score": "0.48870185", "text": "public final String getRawQuery() {\n return this.rawQuery;\n }", "title": "" }, { "docid": "c9f23f52fef24428f106760c1c3c1582", "score": "0.4874819", "text": "public String getQuery()\n {\n return query;\n }", "title": "" }, { "docid": "c9f3457d31bb9472e27a2baff231c06c", "score": "0.4858347", "text": "public S query(String query) {\n this.query = query;\n return self();\n }", "title": "" }, { "docid": "a23ad4d35bf0d4416d33b47a2f08e5ff", "score": "0.48495522", "text": "QueryResult getQueryResult();", "title": "" }, { "docid": "b198b70e49dc8471679cace4024c9c8a", "score": "0.48454118", "text": "public String getParse(String query)\r\n throws IOException\r\n {\r\n Socket socket = new Socket(host, port);\r\n\r\n Writer out = new OutputStreamWriter(socket.getOutputStream(), \"utf-8\");\r\n out.write(\"parse \" + query + \"\\n\");\r\n out.flush();\r\n\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream(), \"utf-8\"));\r\n StringBuilder result = new StringBuilder();\r\n String line;\r\n while ((line = reader.readLine()) != null) {\r\n result.append(line);\r\n }\r\n\r\n socket.close();\r\n return result.toString();\r\n }", "title": "" }, { "docid": "b695740b51426b4367ef4540d5c35e62", "score": "0.4843323", "text": "public static QueryRootNode createQuery(String statement,\n NameResolver resolver,\n QueryNodeFactory factory)\n throws InvalidQueryException {\n try {\n // get parser\n JCRSQLParser parser;\n synchronized (parsers) {\n parser = parsers.get(resolver);\n if (parser == null) {\n parser = new JCRSQLParser(new StringReader(statement));\n parser.setNameResolver(resolver);\n parsers.put(resolver, parser);\n }\n }\n\n JCRSQLQueryBuilder builder;\n // guard against concurrent use within same session\n synchronized (parser) {\n parser.ReInit(new StringReader(statement));\n builder = new JCRSQLQueryBuilder(parser.Query(), resolver, factory);\n }\n return builder.getRootNode();\n } catch (ParseException e) {\n throw new InvalidQueryException(e.getMessage());\n } catch (IllegalArgumentException e) {\n throw new InvalidQueryException(e.getMessage());\n } catch (Throwable t) {\n // javacc parser may also throw an error in some cases\n throw new InvalidQueryException(t.getMessage());\n }\n }", "title": "" }, { "docid": "1ecf763339a20c8788494a3bf73a571d", "score": "0.4828824", "text": "XmuCoreStatement getBody();", "title": "" }, { "docid": "5d338404332702a8da440d4fe2470334", "score": "0.48254842", "text": "@Override\n\tpublic ResultSet executeQuery(String query, Statement statement) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "cb5703a511905c0f4baa7e67ed580f7f", "score": "0.48089966", "text": "public Query newQuery(String query)\r\n {\r\n return newQuery(JDOQuery.JDOQL_QUERY_LANGUAGE, query);\r\n }", "title": "" }, { "docid": "b5c079e62c44383864b5fcbd2fe08dc8", "score": "0.48071647", "text": "public Cursor login_query(String query)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(query, null);\n\n return cursor;\n }", "title": "" }, { "docid": "04f827d3093d2487088e6b1df1275277", "score": "0.48039332", "text": "public String getQuery()\n {\n return query;\n }", "title": "" }, { "docid": "bfe6b9f6287673c0bb3d736df490a232", "score": "0.4803854", "text": "public Object query();", "title": "" }, { "docid": "bfe6b9f6287673c0bb3d736df490a232", "score": "0.4803854", "text": "public Object query();", "title": "" }, { "docid": "976a65e6a708246ec8c4dc6190b08954", "score": "0.4792309", "text": "public String getParse(String query)\r\n throws IOException {\r\n Socket socket = new Socket(host, port);\r\n\r\n Writer out = new OutputStreamWriter(socket.getOutputStream(), \"utf-8\");\r\n out.write(\"parse \" + query + \"\\n\");\r\n out.flush();\r\n\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream(), \"utf-8\"));\r\n StringBuilder result = new StringBuilder();\r\n String line;\r\n while ((line = reader.readLine()) != null) {\r\n result.append(line);\r\n }\r\n\r\n socket.close();\r\n return result.toString();\r\n }", "title": "" }, { "docid": "aa3a67ac6155a0d1aed282f851b74c3b", "score": "0.47913384", "text": "public ResultSet sqlQuerySelect(String query) throws SQLException{\n \n return statement.executeQuery(query);\n\n }", "title": "" }, { "docid": "4e0ed4cfe0da109ab942b5e6d7174c48", "score": "0.47857603", "text": "private T compileStatement(String s) throws SourceCodeException\n {\n parser.setTokenSource(TokenSource.getTokenSourceForString(s));\n\n Sentence<S> p1 = parser.parse();\n\n compilerObserver = new CompilerOutputObserver();\n this.compiler.setCompilerObserver(compilerObserver);\n compiler.compile(p1);\n\n return compilerObserver.getLatest();\n }", "title": "" }, { "docid": "81ff1c131de1c21762dadbfea14f16dd", "score": "0.4781362", "text": "public Query query(String query) throws Exceptions.OsoException {\n return new Query(ffiPolar.newQueryFromStr(query), host.clone());\n }", "title": "" }, { "docid": "e363d941d327687f9ddc25bdfe48c86f", "score": "0.4780768", "text": "public static ResultSet getRS(Statement stmt, String query)\n {\n try {\n return stmt.executeQuery(query);\n } catch ( SQLException e ){\n System.out.println(e);\n }\n return null;\n }", "title": "" }, { "docid": "bd9de130db8f9ecc765d55ed44c10a05", "score": "0.477119", "text": "public Answer executeQuery(Query query) throws JrdfConnectionException {\n ParameterUtil.checkNotNull(\"query\", query);\n// try {\n// return graph.query(query);\n// } catch (QueryException qe) {\n// throw new JrdfConnectionException(\"Unable to execute query - \" + query.toString(), qe);\n// }\n throw new UnsupportedOperationException(\"Implement me!\");\n }", "title": "" }, { "docid": "49ee29989cef9d4c26249fad63cd5336", "score": "0.47661546", "text": "public String getQuery() {\n return query;\n }", "title": "" }, { "docid": "427b89316c752485f483be23e37465ae", "score": "0.47622702", "text": "public String getSqlQuery() {\n \tSqlQueryBuilder builder = queryBuilder == null ? new SqlQueryBuilder() : queryBuilder;\n \tbuildSqlQuery(builder);\n \treturn builder.getQuery();\n }", "title": "" }, { "docid": "d5224fede1418457812e284d53bd6765", "score": "0.4754101", "text": "public ResultSet query(String query) throws SQLException {\n\t\t\n\t\tres = null;\n\t\t\n\t\tstatement = con.prepareStatement(query);\n\t\tres = statement.executeQuery(query);\n\n\t\treturn res;\n\t}", "title": "" }, { "docid": "8366681ada95607ef40514bdb13d8275", "score": "0.47438195", "text": "public Query getQuery(){\r\n\t\tif (QUERY_SOURCE.equals(\"KEYBOARD\")){\r\n\t\t\treturn getQueryKeyboard();\r\n\t\t\t\r\n\t\t} else if (QUERY_SOURCE.equals(\"FILE\")){\r\n\t\t\t\r\n\t\t\tif (qCounter < qArrSize){ // returns the next query\r\n\t\t\t\tQuery query = qArr[qCounter];\r\n\t\t\t\tqCounter++;\r\n\t\t\t\treturn query;\r\n\t\t\t} else { // end of querys\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Something is wrong with your QUERY_SOURCE !\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "81af38b1c44e880da45d3d22f8dec5c0", "score": "0.47400716", "text": "public interface CompiledStatement\n{\n\n public abstract void cancel();\n\n public abstract void close();\n\n public abstract void closeQuietly();\n\n public abstract int getColumnCount();\n\n public abstract String getColumnName(int i);\n\n public abstract int runExecute();\n\n public abstract DatabaseResults runQuery(ObjectCache objectcache);\n\n public abstract int runUpdate();\n\n public abstract void setMaxRows(int i);\n\n public abstract void setObject(int i, Object obj, SqlType sqltype);\n\n public abstract void setQueryTimeout(long l);\n}", "title": "" }, { "docid": "12ebd5f8214686e40075ee303ee1d59b", "score": "0.47375146", "text": "public String query(String query) {\n int queryType = -1;\n // this is just a check to see if it's the first word or not, so we don't have to check the string every time to see if it's UPDATE, INSERT, etc\n int wordNumber = 0;\n // this holds the name of the table, can be either courses, students, or grades\n String tableName = \"\";\n // ArrayList of Strings to hold the list of values provided in the query\n ArrayList<String> valueList = new ArrayList<String>();\n // ArrayList of Strings to hold the list of columns provided in the query\n ArrayList<String> columnList = new ArrayList<String>();\n // ArrayList of Strings that holds the list of all fields for the courses table, then students, then grades\n ArrayList<String> coursesFieldList = DB.getFieldList(\"courses\");\n ArrayList<String> studentsFieldList = DB.getFieldList(\"students\");\n ArrayList<String> gradesFieldList = DB.getFieldList(\"grades\");\n Scanner parser = new Scanner(query);\n String ret = \"\";\n String in = \"\";\n while(parser.hasNext()) {\n in = parser.next();\n ++wordNumber;\n if(wordNumber == 1) {\n if(in.equalsIgnoreCase(\"INSERT\")) {\n queryType = 0;\n }\n else if(in.equalsIgnoreCase(\"SELECT\")) {\n queryType = 1;\n }\n else if(in.equalsIgnoreCase(\"DELETE\")) {\n queryType = 2;\n }\n else if(in.equalsIgnoreCase(\"UPDATE\")) {\n queryType = 3;\n }\n else {\n \tparser.close();\n throw new IllegalArgumentException(\"Error: First word must be INSERT, SELECT, DELETE, or UPDATE\");\n }\n }\n \n if(queryType == 0 && wordNumber == 3) {\n if(in.equalsIgnoreCase(\"courses\") || in.equalsIgnoreCase(\"students\") || in.equalsIgnoreCase(\"grades\")) {\n tableName = in;\n }\n }\n \n if(queryType == 0 && wordNumber == 4) {\n if(in.equalsIgnoreCase(\"VALUES\")) {\n String values = \"\";\n while(!(in.contains(\")\"))) {\n ++wordNumber;\n in = parser.next();\n values += in;\n }\n Scanner subScanner = new Scanner(values.substring(1, values.length() - 1)).useDelimiter(\", *\");\n while(subScanner.hasNext()) {\n valueList.add(subScanner.next());\n }\n DB.insert(tableName, valueList);\n subScanner.close();\n ret = \"Done.\";\n }\n else {\n String columns = \"\";\n columns += in;\n while(!(in.contains(\")\"))) {\n ++wordNumber;\n in = parser.next();\n columns += in;\n }\n Scanner subScanner = new Scanner(columns.substring(1, columns.length() - 1)).useDelimiter(\", *\");\n while(subScanner.hasNext()) {\n columnList.add(subScanner.next());\n }\n in = parser.next();\n String values = \"\";\n while(!(in.contains(\")\"))) {\n ++wordNumber;\n in = parser.next();\n values += in;\n }\n subScanner.close();\n Scanner subScanner2 = new Scanner(values.substring(1, values.length() - 1)).useDelimiter(\", *\");\n while(subScanner2.hasNext()) {\n valueList.add(subScanner2.next());\n }\n DB.insert(tableName, columnList, valueList);\n subScanner2.close();\n ret = \"Done.\";\n }\n }\n if(queryType == 1 && wordNumber == 2) {\n ArrayList<ArrayList<Object>> returnArr = new ArrayList<ArrayList<Object>>();\n if(in.equals(\"*\")) {\n ++wordNumber;\n in = parser.next();\n in = parser.next();\n if(in.equalsIgnoreCase(\"courses\") || in.equalsIgnoreCase(\"students\") || in.equalsIgnoreCase(\"grades\")) {\n tableName = in;\n }\n if (tableName.equalsIgnoreCase(\"courses\")) {\n for (String field : coursesFieldList) {\n returnArr.add(DB.getField(tableName, field));\n }\n ret = outputFormatter(returnArr, coursesFieldList);\n }\n if (tableName.equalsIgnoreCase(\"students\")) {\n for (String field : studentsFieldList) {\n returnArr.add(DB.getField(tableName, field));\n }\n ret = outputFormatter(returnArr, studentsFieldList);\n }\n if (tableName.equalsIgnoreCase(\"grades\")) {\n for (String field : gradesFieldList) {\n returnArr.add(DB.getField(tableName, field));\n }\n ret = outputFormatter(returnArr, gradesFieldList);\n }\n }\n }\n if(queryType == 2 && wordNumber == 3)\n {\n if(in.equalsIgnoreCase(\"courses\") || in.equalsIgnoreCase(\"students\") || in.equalsIgnoreCase(\"grades\")) {\n tableName = in;\n if(query.split(\" \").length == 3) {\n \tDB.delete(tableName);\n \tret = \"Done.\";\n }\n }\n else {\n \tparser.close();\n \tthrow new IllegalArgumentException(in + \" is not a valid table name\");\n }\n }\n if(queryType == 2 && wordNumber == 4)\n {\n if(in.equalsIgnoreCase(\"WHERE\"))\n {\n // Handle where clause\n ArrayList<String> conditions = new ArrayList<String>();\n while(parser.hasNext())\n {\n conditions.add(parser.next());\n }\n \n int conditionType; // 0 for OR 1 for AND\n \n if(conditions.get(1).equalsIgnoreCase(\"OR\"))\n {\n conditionType = 0;\n }\n else\n {\n conditionType = 1;\n }\n ArrayList<Integer> removeList = new ArrayList<Integer>();\n if(conditionType == 0)\n {\n int i = 0;\n for(String s : conditions)\n {\n String[] pieces = s.split(\"=|<>|>=|<=|<|>\");\n ArrayList<Object> list = DB.getField(tableName, pieces[1]);\n \n try\n {\n if(s.contains(\"=\")) // =, <= or >=\n {\n if(s.contains(\">\"))\n {\n if(Integer.parseInt(list.get(i).toString()) >= Integer.parseInt(pieces[2]))\n removeList.add(i);\n }\n else if(s.contains(\"<\"))\n {\n if(Integer.parseInt(list.get(i).toString()) <= Integer.parseInt(pieces[2]))\n removeList.add(i);\n }\n else\n {\n if(list.get(i).toString() == pieces[2])\n removeList.add(i);\n }\n }\n else if(s.contains(\">\"))\n {\n if(Integer.parseInt(list.get(i).toString()) > Integer.parseInt(pieces[2]))\n removeList.add(i);\n }\n else if(s.contains(\"<\"))\n {\n if(Integer.parseInt(list.get(i).toString()) < Integer.parseInt(pieces[2]))\n removeList.add(i);\n }\n else\n throw new Exception(\"Invalid operator specified.\");\n }\n catch(Exception e)\n {\n \tparser.close();\n return \"Binary comparisons (> and <) can only be done with integers\";\n }\n \n i++;\n }\n }\n else\n {\n int i = 0;\n ArrayList<Object> temp = DB.getField(tableName, conditions.get(0).split(\"=|<>|>=|<=|<|>\")[1]);\n int max = temp.size();\n int[] negate = new int[max];\n for(String s : conditions)\n {\n String[] pieces = s.split(\"=|<>|>=|<=|<|>\");\n ArrayList<Object> list = DB.getField(tableName, pieces[1]);\n \n try\n {\n if(s.contains(\"=\")) // =, <= or >=\n {\n if(s.contains(\">\"))\n {\n if(Integer.parseInt(list.get(i).toString()) >= Integer.parseInt(pieces[2]))\n negate[i] = 1;\n }\n else if(s.contains(\"<\"))\n {\n if(Integer.parseInt(list.get(i).toString()) <= Integer.parseInt(pieces[2]))\n negate[i] = 1;\n }\n else\n {\n if(list.get(i).toString() == pieces[2])\n negate[i] = 1;\n }\n }\n else if(s.contains(\">\"))\n {\n if(Integer.parseInt(list.get(i).toString()) > Integer.parseInt(pieces[2]))\n negate[i] = 1;\n }\n else if(s.contains(\"<\"))\n {\n if(Integer.parseInt(list.get(i).toString()) < Integer.parseInt(pieces[2]))\n negate[i] = 1;\n }\n else\n throw new Exception(\"Invalid operator specified.\");\n }\n catch(Exception e)\n {\n return \"Binary comparisons (> and <) can only be done with integers\";\n }\n \n i++;\n }\n for(int x = 0; x < max; x++)\n {\n if(negate[x] != 1)\n removeList.add(x);\n }\n }\n \n for(Integer i : removeList)\n {\n DB.delete(tableName, i.intValue());\n }\n parser.close();\n ret = \"Done.\";\n }\n else\n {\n DB.delete(tableName); // Delete all records in table\n parser.close();\n ret = \"Done.\";\n }\n }\n \n }\n return ret;\n }", "title": "" }, { "docid": "f83cc970fd9d111956a95dfc2c5b16f0", "score": "0.47321022", "text": "public Node getAstCoreSPARQLQuery() {\n\t\treturn astCoreSPARQLQuery;\n\t}", "title": "" }, { "docid": "1bec3eaa221eed17a6b2ad0a8fb13e56", "score": "0.47249246", "text": "public static ResultSet Query(String query) throws IOException\n {\n Connection db = Database.GetInstance().GetConnection();\n \n try\n { \n Statement statement = db.createStatement();\n ResultSet resultSet = statement.executeQuery(query);\n return resultSet;\n }\n catch(SQLException ex)\n {\n LogUtil.Log(Alert.AlertType.ERROR, resources.getString(\"alertheader\"), resources.getString(\"dberror\") + ex.getMessage());\n return null;\n }\n }", "title": "" }, { "docid": "7e96c5b409f93f13fc5bf9dd48249d5b", "score": "0.47235942", "text": "public interface QueryNode extends ValueExpression\n{\n}", "title": "" }, { "docid": "ca7c5a459200146a765197ec9e555753", "score": "0.47206712", "text": "private AST return_statement(){\n AST return_statement = new AST(new Token(\"return-statement\"));\n if(isMatch(nextToken,\";\")) return return_statement;\n readToken();\n return_statement.addChild(expression());\n return return_statement;\n }", "title": "" }, { "docid": "54733adbfead60055e20fd76949c153b", "score": "0.4718867", "text": "public SQueryResult<SRecordGeneric> rawQuery(String sql, boolean flush, Object... params) {\n if (flush) flush();\n return rawQueryInner(sql, params);//, true, true);\n }", "title": "" }, { "docid": "f983920acbb9b00787ff6f30adf4426e", "score": "0.47171113", "text": "@Override\r\n\tpublic TokenQuery createTokenQuery() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "a2e69734a197c1aeb21c240b817c807f", "score": "0.47155127", "text": "R getResult();", "title": "" }, { "docid": "40963f890201a2f1956edbc45cafbf7a", "score": "0.4708986", "text": "DTXQuery() {\n }", "title": "" }, { "docid": "2ee1d223421f946028ab911fd4843e04", "score": "0.470507", "text": "public native ByteBuffer readQuery();", "title": "" }, { "docid": "0e4350a1d12267b7492e9b995980482f", "score": "0.46994385", "text": "public native final JavaScriptObject query() /*-{\n\t\treturn this.query;\n\t}-*/;", "title": "" }, { "docid": "ac09c3bb1c7f1eb8b0f581ff06b3737d", "score": "0.4699377", "text": "public Query newQuery()\r\n {\r\n return newQuery(JDOQuery.JDOQL_QUERY_LANGUAGE, null);\r\n }", "title": "" }, { "docid": "6f32e28a1d09fec991ea2ef0d1396b70", "score": "0.4697709", "text": "public R visit(Statement n) {\n\t\t R _ret=null;\n\t\t n.f0.accept(this);\n\t\t return _ret;\n\t\t }", "title": "" }, { "docid": "69141e537d3a632938f259e6519c358c", "score": "0.46970013", "text": "public QueryComponent parseQuery(String query, DocumentCorpus c, int formulaSelect) {\n //System.out.println(\"Inside Ranked Retrieval\");\n\n BetterTokenProcessor proc = new BetterTokenProcessor();\n //System.out.println(\"Splitting string...\");\n String[] q = query.split(\"\\\\s+\");\n List<String> tem = new ArrayList<>();\n List<String> phr = new ArrayList<>();\n for(String s: q) {\n //System.out.println(\"String: \" +s);\n tem = new BetterTokenProcessor().processToken(s);\n for(String t: tem){\n phr.add(t);\n //System.out.println(\"After stem: \"+t);\n }\n }\n\n return new RankQuery(phr, c, formulaSelect);\n }", "title": "" }, { "docid": "e04da1109245333d94157fef339fc03b", "score": "0.46967408", "text": "public List<Object[]> getSQLQueryResult(String query);", "title": "" }, { "docid": "d2b0afb00fd3c95e789f70a22a0a68a3", "score": "0.46957502", "text": "JCStatement parseStatementAsBlock() {\n int pos = token.pos;\n List<JCStatement> stats = blockStatement();\n if (stats.isEmpty()) {\n JCErroneous e = F.at(pos).Erroneous();\n error(e, \"illegal.start.of.stmt\");\n return F.at(pos).Exec(e);\n } else {\n JCStatement first = stats.head;\n String error = null;\n switch (first.getTag()) {\n case CLASSDEF:\n error = \"class.not.allowed\";\n break;\n case VARDEF:\n error = \"variable.not.allowed\";\n break;\n }\n if (error != null) {\n error(first, error);\n List<JCBlock> blist = List.of(F.at(first.pos).Block(0, stats));\n return toP(F.at(pos).Exec(F.at(first.pos).Erroneous(blist)));\n }\n return first;\n }\n }", "title": "" }, { "docid": "9463f6bfb39d7ea737a6d006ae480fdc", "score": "0.4694977", "text": "public ResultSet runQuery(String query) throws SQLException\n {\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(query);\n return rs; \n }", "title": "" }, { "docid": "22d6f73936c87c59028108bd9e890f96", "score": "0.4694522", "text": "public ResultSet executeQuery(String sql) {\n try {\n System.out.println(sql);\n return statement.executeQuery(sql);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "0563172fca8b7da341b7f674a8f55733", "score": "0.46911457", "text": "public Statement parseStatement() throws Exception\n\t{\n\t\tStatement stmt;\n\t\tif(token.equals(\"WRITELN\"))\n\t\t{\n\t\t\teat(\"WRITELN\");\n\t\t\teat(\"(\");\n\t\t\tExpression exp = parseExpression();\n\t\t\teat(\")\");\n\t\t\teat(\";\");\n\t\t\tstmt = new Writeln(exp);\n\t\t}\n\t\telse if(token.equals(\"BEGIN\"))\n\t\t{\n\t\t\teat(\"BEGIN\");\n\t\t\tList<Statement> block = new ArrayList<Statement>();\n\t\t\twhile(!token.equals(\"END\"))\n\t\t\t\tblock.add(parseStatement());\n\t\t\teat(\"END\");\n\t\t\teat(\";\");\n\t\t\tstmt = new Block(block);\n\t\t}\n\t\telse if(token.equals(\"IF\"))\n\t\t{\n\t\t\teat(\"IF\");\n\t\t\tCondition cond = parseCondition();\n\t\t\teat(\"THEN\");\n\t\t\tStatement consequence = parseStatement();\n\t\t\t\n\t\t\tstmt = new If(cond, consequence);\n\t\t\t\n\t\t}\n\t\telse if(token.equals(\"WHILE\"))\n\t\t{\n\t\t\teat(\"WHILE\");\n\t\t\tCondition cond = parseCondition();\n\t\t\teat(\"DO\");\n\t\t\tStatement doStmt = parseStatement();\n\t\t\tstmt = new While(cond, doStmt);\n\t\t}\n\t\telse if(Scanner.isLetter(token.charAt(0)))\t\t//testing to see if it is an identifier\n\t\t{\n\t\t\tString var = token;\t\t\t\t\t\t\t//HEADS UP: THIS COULD BE USED JUST AS A PARSE VARIABLE CALL\n\t\t\teat(var);\t\t\t\t\t\t\t\t\t//AS SOON AS THAT METHOD IS UNDERSTOOD, THIS SHOULD BE CHANGED\n\t\t\teat(\":=\");\n\t\t\tExpression exp = parseExpression();\n\t\t\teat(\";\");\n\t\t\tstmt = new Assignment(var, exp);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception(\"Invalid Statement\");\n\t\t}\n\t\treturn stmt;\n\t}", "title": "" }, { "docid": "48da391fda6695b5d2699ecc3ad82ee0", "score": "0.46905932", "text": "public java_cup.runtime.token scan()\n throws java.lang.Exception\n {\n return lexer.next_token(); \n }", "title": "" }, { "docid": "edddb261c41688cd95e307243107138f", "score": "0.4690203", "text": "public String nativeSQL (\n\t\tString query)\n\t\tthrows SQLException\n\t{\n\t\tif (tracer.isTracing ()) {\n\t\t\ttracer.trace (\"*Connection.nativeSQL (\" + query + \")\");\n\t\t}\n\n\t\tString nativeQuery;\n\n\t\ttry {\n\t\t\tnativeQuery = OdbcApi.SQLNativeSql (hDbc, query);\n\t\t}\n\t\tcatch (SQLException ex) {\n\n\t\t\t// If an exception is thrown, simply return the\n\t\t\t// original string\n\t\t\tnativeQuery = query;\n\t\t}\n\t\treturn nativeQuery;\n\t}", "title": "" }, { "docid": "739ef8d2c935516c3a03e60049cfcf82", "score": "0.46891168", "text": "protected String parseOQL(final String oql) throws DTXException {\n try {\n _ids = new ArrayList();\n _cols = new HashMap();\n _classes = new HashMap();\n \n StringTokenizer token = new StringTokenizer(oql);\n \n if (!token.hasMoreTokens() || !token.nextToken().equalsIgnoreCase(\"SELECT\")) {\n throw new DTXException(\"Query must start with SELECT\");\n }\n if (!token.hasMoreTokens()) {\n throw new DTXException(\"Missing object name\");\n }\n _objName = token.nextToken();\n if (!token.hasMoreTokens() || !token.nextToken().equalsIgnoreCase(\"FROM\")) {\n throw new DTXException(\"Object must be followed by FROM\");\n }\n if (!token.hasMoreTokens()) {\n throw new DTXException(\"Missing object type\");\n }\n _objType = token.nextToken();\n if (!token.hasMoreTokens()) {\n throw new DTXException(\"Missing object name\");\n }\n if (!_objName.equals(token.nextToken())) {\n throw new DTXException(\"Object name not same in SELECT and FROM\");\n }\n \n if (_logWriter != null) {\n _logWriter.println(\"Querying \" + _objName + \" of type \" + _objType);\n }\n \n _clsMapping = _eng.getClassMapping(_objType);\n \n if (_clsMapping == null) {\n throw new DTXException(\"dtx.NoClassDescription: \" + _objType);\n }\n \n PersistenceFactory factory = _eng.getFactory();\n \n if (factory == null) {\n throw new DTXException(\"dtx.NoFactory\");\n }\n \n QueryExpression expr = factory.getQueryExpression();\n \n if (expr == null) {\n throw new DTXException(\"dtx.NoQueryExpression\");\n }\n \n initQuery(_clsMapping, expr);\n \n if (token.hasMoreTokens()) {\n if (!token.nextToken().equalsIgnoreCase(\"WHERE\")) {\n throw new DTXException(\"Missing WHERE clause\");\n }\n addField(_clsMapping, token, expr);\n while (token.hasMoreTokens()) {\n if (!token.nextToken().equals(\"AND\")) {\n throw new QueryException(\"Only AND supported in WHERE clause\");\n }\n addField(_clsMapping, token, expr);\n }\n }\n \n String sql = expr.getStatement(false);\n \n sql = sql + \" ORDER BY \";\n \n for (java.util.Iterator it = _ids.iterator(); it.hasNext(); ) {\n String id = (String) it.next();\n sql = sql + \" \" + id;\n if (it.hasNext()) {\n sql = sql + \",\";\n }\n }\n \n if (_logWriter != null) {\n _logWriter.println(\"SQL: \" + sql);\n }\n \n return sql;\n \n } catch (Exception e) {\n if (_logWriter != null) {\n e.printStackTrace(_logWriter);\n }\n throw new DTXException(e);\n }\n }", "title": "" }, { "docid": "1535b754094a4bdc086c4cfb80af14f1", "score": "0.46848133", "text": "public ResultSet executeQuery (String query) {\n\t\tStatement st = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tst = conn.createStatement();\n\t\t\trs = st.executeQuery(query);\n\t\t\tst.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tst = null;\n\t\t}\n\t\t\n\t\treturn rs;\n\t}", "title": "" }, { "docid": "9a040fc3e4235c7efe7e0aa1e9c1a5dc", "score": "0.4677336", "text": "public String getQuery() {\n return this.query;\n }", "title": "" }, { "docid": "55f2dae7e59fe58eaa6135f38e31942b", "score": "0.46753898", "text": "@Override\n\tpublic String HQL() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d212b1d48c62fd3bac39ca12ef8589c6", "score": "0.46751925", "text": "public String visit(Query n) {\n String _ret=null;\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.accept(this);\n n.f3.accept(this);\n n.f4.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "7b6e86ff551b6fd7c104757495f9eeed", "score": "0.46729004", "text": "public String getQuery()\n {\n return this._query;\n }", "title": "" }, { "docid": "8b96a2713b5bbac437acbe26fe2acdff", "score": "0.4670181", "text": "public String getQuery() {\n return query;\n }", "title": "" }, { "docid": "def8dc85f9ad61bb9cadf70155212104", "score": "0.4670161", "text": "@Override\r\n\tpublic NativeTokenQuery createNativeTokenQuery() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b6699310fe63cd6f55846536ef3d83fd", "score": "0.46695372", "text": "public Query newQuery(String language, Object query)\r\n {\r\n assertIsOpen();\r\n\r\n String queryLanguage = language;\r\n if (queryLanguage == null)\r\n {\r\n queryLanguage = org.datanucleus.metadata.QueryLanguage.JDOQL.name();\r\n }\r\n else if (queryLanguage.equals(JDOQuery.JDOQL_QUERY_LANGUAGE))\r\n {\r\n queryLanguage = org.datanucleus.metadata.QueryLanguage.JDOQL.name();\r\n }\r\n else if (queryLanguage.equals(JDOQuery.SQL_QUERY_LANGUAGE))\r\n {\r\n queryLanguage = org.datanucleus.metadata.QueryLanguage.SQL.name();\r\n }\r\n else if (queryLanguage.equals(JDOQuery.JPQL_QUERY_LANGUAGE))\r\n {\r\n queryLanguage = org.datanucleus.metadata.QueryLanguage.JPQL.name();\r\n }\r\n\r\n // Check that our store supports the language\r\n if (!ec.getStoreManager().supportsQueryLanguage(queryLanguage))\r\n {\r\n throw new JDOUserException(Localiser.msg(\"011006\", queryLanguage));\r\n }\r\n\r\n org.datanucleus.store.query.Query internalQuery = null;\r\n try\r\n {\r\n if (query == null)\r\n {\r\n internalQuery = ec.getStoreManager().newQuery(queryLanguage, ec);\r\n }\r\n else if (query instanceof JDOQuery)\r\n {\r\n // Extract the internal query for generating the next query\r\n internalQuery = ec.getStoreManager().newQuery(queryLanguage, ec, ((JDOQuery)query).getInternalQuery());\r\n }\r\n else if (query instanceof String)\r\n {\r\n internalQuery = ec.getStoreManager().newQuery(queryLanguage, ec, (String)query);\r\n }\r\n else\r\n {\r\n throw new JDOUserException(\"Cannot create new query with argument of type \" + query.getClass().getName());\r\n }\r\n }\r\n catch (NucleusException ne)\r\n {\r\n throw JDOAdapter.getJDOExceptionForNucleusException(ne);\r\n }\r\n\r\n if (ec.getFlushMode() == FlushMode.QUERY)\r\n {\r\n // Flush mode implies flush all before executing the query so set the necessary property\r\n internalQuery.addExtension(org.datanucleus.store.query.Query.EXTENSION_FLUSH_BEFORE_EXECUTION, Boolean.TRUE);\r\n }\r\n\r\n return new JDOQuery(this, internalQuery, queryLanguage);\r\n }", "title": "" }, { "docid": "d0645c51a986fbe4d8ab885afb761545", "score": "0.46680412", "text": "public ResultSet makeQuery(String query) throws SQLException {\n this.query = query;\n try {\n this.execute(\"query\").get();\n return result;\n } catch (ExecutionException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "ad54a3ddc20550813e49d45085e4d76f", "score": "0.46620613", "text": "CompiledStatement compileDeleteStatement(CompiledStatement cs)\n throws HsqlException {\n\n String token;\n Table table;\n Expression condition;\n\n clearParameters();\n tokenizer.getThis(Token.T_FROM);\n\n token = tokenizer.getString();\n\n tokenizer.checkUnexpectedParam(\"parametric table specificiation\");\n\n table = database.getTable(token, session);\n\n checkTableWriteAccess(table, UserManager.DELETE);\n\n token = tokenizer.getString();\n condition = null;\n\n if (token.equals(Token.T_WHERE)) {\n condition = parseExpression();\n } else {\n tokenizer.back();\n }\n\n if (cs == null) {\n cs = new CompiledStatement();\n }\n\n cs.setAsDelete(table, condition, getParameters());\n\n cs.subqueries = getSubqueries();\n\n return cs;\n }", "title": "" }, { "docid": "6b8bbedd60d5618fad61b73287632778", "score": "0.46580884", "text": "protected List<?> runQuery(String query){\r\n\r\n\t\ttry{\r\n\t\t\tsession = sf.openSession();\r\n\t\t\treturn session.createQuery(query).list();\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tLoggerManager.error(\"Could not run query: \" + query + e.getMessage());\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tsession.close();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "9a2a1f1f945dbe475ead134add61bd24", "score": "0.46557388", "text": "@Test\n public void parseWithSpecialSyntax() {\n parseWithSpecialSyntax(DatabaseType.Oracle, \"DELETE /*+ index(field1) */ ONLY (TABLE_XXX) WHERE field1=1 RETURN * LOG ERRORS INTO TABLE_LOG\");\n parseWithSpecialSyntax(DatabaseType.Oracle, \"DELETE /*+ index(field1) */ ONLY (TABLE_XXX) WHERE field1=1 RETURNING *\");\n }", "title": "" }, { "docid": "da7d76ba23cdeb7abc4829e75d26e702", "score": "0.46469256", "text": "public String visit(Statement n) {\n String _ret=null;\n n.f0.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "a1b85810190c507f53f80b1924275d3f", "score": "0.4646746", "text": "public String getRevisedSql() {\n\t\t\t/* Iterate through whole input SQL */\n\t\t\twhile (peek() != (char)0) {\n\t\t\t\tswitch (peek()) {\n\t\t\t\t// Double quoted string was found\n\t\t\t\tcase '\"':\n\t\t\t\t\tconsumeDQString();\n\t\t\t\t\tbreak;\n\n\t\t\t\t\t// Single quoted string was found\n\t\t\t\tcase '\\'':\n\t\t\t\t\tconsumeSQString();\n\t\t\t\t\tbreak;\n\n\t\t\t\t\t// Perl style string was found - or just pure character\n\t\t\t\tcase 'q':\n\t\t\t\tcase 'Q':\n\t\t\t\t\tif (peekNext() == '\\'') {\n\t\t\t\t\t\tconsumePQString();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconsumeCharacter();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\t\t// Single-line comment was found - or just pure dash \n\t\t\t\tcase '-':\n\t\t\t\t\tif (peekNext() == '-') {\n\t\t\t\t\t\tconsumeSLComment();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconsumeCharacter();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\t\t// Double-line comment was found - or just pure slash\n\t\t\t\tcase '/':\n\t\t\t\t\tif (peekNext() == '*') {\n\t\t\t\t\t\tconsumeMLComment();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconsumeCharacter();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\t\t// Bind variable was found - but outside String or Comment\n\t\t\t\tcase '?':\n\t\t\t\t\tconsumeBind();\n\t\t\t\t\tbreak;\n\n\t\t\t\t\t// Match any other character\n\t\t\t\tdefault:\n\t\t\t\t\tconsumeCharacter();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\treturn out.toString();\n\t\t}", "title": "" }, { "docid": "b3b1bba55143e8c92af0d5c7bb469d46", "score": "0.46449816", "text": "protected String createResultQuery(Result result)\n\t{\n\t\tString firstName=result.getRacer().getFirstName();\n\t\tString lastName=result.getRacer().getLastName();\n\t\tlastName=lastName.replace(\"'\", \"''\");\n\t\t\n\t\tint place=result.getOverallPlace();\n\t\tint age=result.getRacer().getAge();\n\t\t\n\t\tString gender;\n\t\t\n\t\tif (result.getRacer().getSex()==Racer.Sex.MALE)\n\t\t{\n\t\t\tgender=\"M\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgender=\"F\";\n\t\t}\n\t\t\n\t\tDateFormat format=new SimpleDateFormat(\"HH:mm:ss\");\n\t\tString time;\n\t\t\n\t\tif (result.getChipTime()!=null)\n\t\t{\n\t\t\ttime=format.format(result.getChipTime());\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttime=format.format(result.getGunTime());\n\t\t}\n\t\t\n\t\ttime=\"2000-01-01 \"+time;\n\t\t\n\t\tString pace=\"00:00:00\";\n\t\t\n\t\tSystem.out.println(\"time\");\n\t\t\n\t\tString city=result.getRacer().getCity();\n\t\tString state=result.getRacer().getState();\n\t\t\n\t\tif (state==null)\n\t\t{\n\t\t\tstate=\"XX\";\n\t\t}\n\t\t\n\t\tString club=result.getRacer().getCurrentClub();\n\t\t\n\t\tString query=\"INSERT INTO \"+tableName+\" VALUES (\";\n\t\t\n\t\tquery+=\"'\"+firstName+\"', '\"+lastName+\"', '\"+place+\"', '\"+age+\"', '\"+gender+\"', '\"+time+\"', '\"\n\t\t\t\t+pace+\"', '\"+result.getCategoryString()+\"', '\"+city+\"', '\"+state+\"', '\"+result.getPoints()+\"', '\"+club+\"')\";\n\t\t\n\t\tSystem.out.println(query);\n\t\t//String query = \"CREATE TABLE \"+race.getIdentifier()+ \" (FirstName CHAR(50), LastName CHAR(50), Place INT, Age INT, Time DATETIME, Pace DATETIME, Category CHAR(20), City CHAR(40), State CHAR(2), Points INT)\";\n\t\t\n\t\treturn query;\n\t}", "title": "" }, { "docid": "4cc24cc698a4c0fb64606c5f3aaa50ca", "score": "0.46440566", "text": "Query generateQuery (Search search);", "title": "" }, { "docid": "42e9f1835d8ca0d85b78bc8d3bc6c59a", "score": "0.4640876", "text": "public static Elements select(String query, Element root) {try{__CLR4_2_17yw7ywjpaexqsw.R.inc(10329);\n __CLR4_2_17yw7ywjpaexqsw.R.inc(10330);Validate.notEmpty(query);\n __CLR4_2_17yw7ywjpaexqsw.R.inc(10331);return select(QueryParser.parse(query), root);\n }finally{__CLR4_2_17yw7ywjpaexqsw.R.flushNeeded();}}", "title": "" } ]
a685ee3e8175c9178f0b162b427ba9c9
super.onListItemClick(l, v, position, id); Displays a message that reads the array and displays the appropriate index with fixed array Toast.makeText(this, attraction[position], Toast.LENGTH_SHORT).show(); Displays a message that reads the array and displays the appropriate index with array list Toast.makeText(this, attractionList.get(position) + ".", Toast.LENGTH_LONG).show(); Displays a message that reads the array and displays the appropriate index with array list and each item's name
[ { "docid": "0f3f28e81d4b379d7f405855c94b8946", "score": "0.76571935", "text": "@Override\n protected void onListItemClick(ListView l, View v, int position, long id) {\n Toast.makeText(this, attractionList.get(position).getName() + \".\", Toast.LENGTH_LONG).show();\n\n// String key = attraction.get(position);\n// String value = attractionMap.get(key);\n// startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(value)));\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(attractionList.get(position).getUrl())));\n\n// if (position == 0) {\n// //Switching to the specified activity (Redirection the activity to a URL with Uri.parse())\n// startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://artic.edu\")));\n// }else if (position == 1) {\n// startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://themagnificentmile.com\")));\n// }else if (position == 2) {\n// startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://google.com\")));\n// }else if (position == 3) {\n//\n// }else if (position == 4) {\n//\n// } else {\n//\n// }\n\n\n \n }", "title": "" } ]
[ { "docid": "b54ef8cb1e9d9736e7fa62c857d73587", "score": "0.76115423", "text": "@Override\n public void onItemClick(AdapterView<?> arrayAdapter, View view, int position, long arg3) {\n clickedListItem = (String) lv.getItemAtPosition(position);\n Log.i(\"\", \"this is the clickedListItem: \" + clickedListItem);\n\n }", "title": "" }, { "docid": "ff9698c066a24c3daee65ae2b6419720", "score": "0.75866085", "text": "@Override\r\n public void onItemClick(AdapterView<?> parent, View view,\r\n int position, long id) {\n int itemPosition = position;\r\n\r\n // ListView Clicked item value\r\n String fn = firstnameArray[position];\r\n String alertMsg = firstnameArray[position] + \" \" + lastnameArray[position] +\"\\nAGE - \"+ageArray[position]+\"\\n\"+\"MEDICAL INFO - \\n\"+detailArray[position];\r\n\r\n // Show Alert\r\n Toast.makeText(getApplicationContext(), alertMsg, Toast.LENGTH_LONG).show();\r\n\r\n }", "title": "" }, { "docid": "7ac97dd05bc71cf05200be5c3f58314c", "score": "0.73662114", "text": "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\tString s=(String)arg0.getItemAtPosition(arg2);\r\n\t\t\t\tToast.makeText(ListDemo.this, \"\"+s, 111).show();\r\n\t\t\t}", "title": "" }, { "docid": "2e5492145ed8d7b970772d76a6467e64", "score": "0.7271033", "text": "@Override\n public void onItemClick(View view, int position) {\n Toast.makeText(getApplicationContext(),\"You have clicked . . . \"+names[position], Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "9edfe06c915488c490b106a50428638b", "score": "0.7250944", "text": "@Override \r\n\t public void onListItemClick(ListView l, View v, int position, long id) {\n\t FragementDetails frag = (FragementDetails) getFragmentManager() \r\n\t .findFragmentById(R.id.frag_detail); \r\n\t if (frag != null && frag.isInLayout()) { \r\n\t switch (position) { \r\n\t case 0: \r\n\t frag.setText(getString(R.string.Gnome)); \r\n\t break; \r\n\t case 1: \r\n\t frag.setText(getString(R.string.Human)); \r\n\t break; \r\n\t case 2: \r\n\t frag.setText(getString(R.string.NightElf)); \r\n\t break; \r\n\t case 3: \r\n\t frag.setText(getString(R.string.Dwarf)); \r\n\t break; \r\n\t case 4: \r\n\t frag.setText(getString(R.string.Draenei)); \r\n\t break; \r\n\t case 5: \r\n\t frag.setText(getString(R.string.Werewolf)); \r\n\t break; \r\n\t } \r\n\t } \r\n\t \r\n\t Log.i(\"PDA\", \"position = \" + position); \r\n\t }", "title": "" }, { "docid": "26f2c211cec2aa37d2f1f3fce47201d3", "score": "0.7249972", "text": "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int i,long l) {\n\t\t\t\tToast.makeText(tmp,listAdapter.getItem(i), Toast.LENGTH_LONG).show();\r\n\t\t\t}", "title": "" }, { "docid": "57b5553d13ec767a0d253ac6ec71ff38", "score": "0.7242736", "text": "@Override\n protected void onListItemClick(ListView l, View v, int position, long id) {\n super.onListItemClick(l, v, position, id);\n //\tLog.v(\"MyListView4-click\", (String) mData.get(position).get(\"title\"));\n }", "title": "" }, { "docid": "be1e4e6ba572c6dc2046c22d9df57d3e", "score": "0.72318554", "text": "public void onListItemClick(ListView l, View v, int position, long id) {\n }", "title": "" }, { "docid": "f7d57aafad6c68e8923b5e9cc21d6f0c", "score": "0.7226137", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Toast.makeText(getActivity(), (CharSequence) listview.getItemAtPosition(i),Toast.LENGTH_LONG).show();\n // Call the show details on list click with the current position\n showDetails(i);\n }", "title": "" }, { "docid": "c96c9f7019c4f19cee35063656d2f208", "score": "0.7181002", "text": "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t}", "title": "" }, { "docid": "4f3d8f631b10544f2767af3457e4e2a9", "score": "0.7143711", "text": "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n Log.d(TAG, \"_________________--- PROSTE, NE! ---------=========\");\n }", "title": "" }, { "docid": "31f987507d81eb5668f33b9eb7a9979f", "score": "0.7105667", "text": "public void onListItemClick(ListView listview, View view, int position, long id){\n\t}", "title": "" }, { "docid": "1ed502d03dca84f67dc3ac06bb961495", "score": "0.70928425", "text": "void onListItemClick(Object item, View v);", "title": "" }, { "docid": "b81ab5b8d9dec173eebff171bf8b16b6", "score": "0.70799434", "text": "public void onListItemClick(ListView l,\n View v, int position, long id) {\n }", "title": "" }, { "docid": "081d309403d14e49ba037e2b36d3a17b", "score": "0.70556116", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String itemValue = (String) listView.getItemAtPosition(position);\n\n // Show Alert\n Toast toast = Toast.makeText(getApplicationContext(),\n \"Position :\"+ position +\" ListItem : \" +itemValue , Toast.LENGTH_LONG);\n toast.show();\n\n }", "title": "" }, { "docid": "74fd8670d4e293574708f39742c7f1b1", "score": "0.7025459", "text": "public void onListItemClick(ListView l,\n View v, int position, long id) {\n }", "title": "" }, { "docid": "3b3989f20ee92604aff59111fa515f90", "score": "0.70220774", "text": "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tFruit fruit1 = fruitList.get(position);\n\t\t\t\tToast.makeText(NotificationActivity.this, fruit1.getName(), Toast.LENGTH_SHORT).show();\n\t\t\t}", "title": "" }, { "docid": "d0c20c49795bb2dc5425a5b669ba9cc6", "score": "0.6946904", "text": "@Override\n public void onClick(View v) {\n int position = getAdapterPosition();\n ListItem item = listitems.get(position);\n\n Intent intent = new Intent(context, DetailsActivity.class);\n Bundle bundle = new Bundle();\n bundle.putString(\"name\", item.getName());\n bundle.putString(\"description\", item.getDescription());\n intent.putExtras(bundle);\n Toast.makeText(context, item.getName(), Toast.LENGTH_SHORT).show();\n context.startActivity(intent);\n }", "title": "" }, { "docid": "fccf33f22d7c719047bd413e7d72b245", "score": "0.69409823", "text": "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(Main3Activity.this, items[which],\r\n Toast.LENGTH_SHORT).show();\r\n }", "title": "" }, { "docid": "0cc4f348c5496c84a2f526b695f7dc30", "score": "0.6929541", "text": "@Override\n\tpublic void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\t\tString item = adapter.getItem(position).toString();\n\t\tToast.makeText(getActivity(), item, Toast.LENGTH_SHORT).show();\n\t}", "title": "" }, { "docid": "98aa63b8d086d06031c199cdda05ba5a", "score": "0.69150084", "text": "@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \"+titles[position], Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "61d7982991bc07dc53b408f35ee934d7", "score": "0.69124925", "text": "@Override\n //this method id automatically created as soon as we pass the new \"AdapterView.OnItemClickListener()\" above.\n //this required the following parameters:\n //AdapterView: works for all items in the list.\n //View is for individual item on which we click.\n //int is the item on which we have clicked.\n //long is similar to int.\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.i(\"Peron Selected\",myFamily.get(position));\n //or make a toast\n Toast.makeText(getApplicationContext(),\"hey \"+myFamily.get(position),Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "8d4bd5100f5f72348662ce199d8cb4d4", "score": "0.6889503", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n itemPosition = position;\n\n // ListView Clicked item value\n itemValue = (String) liste.getItemAtPosition(position);\n // Show Alert\n Toast.makeText(getApplicationContext(),\n \"Position :\" + itemPosition + \" ListItem : \" + itemValue, Toast.LENGTH_LONG)\n .show();\n voirArticle();\n\n }", "title": "" }, { "docid": "b33634abab1208564fd31bf11fa58017", "score": "0.686671", "text": "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tString typeName = listType.get(position).getTypeName();\n\t\t\t\tToast.makeText(getActivity(), \"你点击的是\"+typeName, Toast.LENGTH_SHORT).show();\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "4d5c79fdd83bb293701a72cd17b2bbdb", "score": "0.68413824", "text": "@Override\n public void onItemClick(View view, int position) {\n }", "title": "" }, { "docid": "e40919c380212b6d07974888864304ef", "score": "0.68390983", "text": "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n String[] myString = matchEditList.getItemAtPosition(arg2).toString().split(\" \");\n\n sTurnToEdit = myString[2];\n editThisMatch(matchID[0], sTurnToEdit);\n\n }", "title": "" }, { "docid": "fc5866452fd5a39f9a5d7df7163dea32", "score": "0.68320376", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n Toast.makeText(getApplicationContext(), \"Hello! \" + myFriends.get(position), Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "443a1847b32bd03a8b7521302d23c119", "score": "0.68267107", "text": "public void onListItemClick(ListView parent, View v, int position, long id) {\n\n\t\tIntent i = new Intent(this, ClinicInfo.class);\n\t\tBundle extras = new Bundle();\n\t\t// extras.putString(\"Name\", ClinicI\n\t\t// extras.putString(\"Info\", ClinicInfo.get(position).info);\n\t\textras.putString(\"Id\", name.get(position).getId());\n\t\textras.putInt(\"Index\", position);\n\t\ti.putExtras(extras);\n\t\tstartActivityForResult(i, 1);\n\t}", "title": "" }, { "docid": "962004a85e06c842585332d2aad26646", "score": "0.6825055", "text": "@Override\n protected void onListItemClick(ListView l, View v, int position, long id) {\n super.onListItemClick(l, v, position, id);\n\n Album album = albumList.get(position);\n\n Intent intent = new Intent(AlbumList.this, LiricDisplayActivity.class);\n intent.putExtra(\"albumName\" , album.getAlbumName());\n intent.putExtra(\"trackName\", album.getTrackName());\n intent.putExtra(\"artistName\", album.getArtistName());\n intent.putExtra(\"albumImageUrl\", album.getAlbumImageUrl());\n startActivity(intent);\n }", "title": "" }, { "docid": "592928681a22852a12e897465ad35032", "score": "0.6823669", "text": "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n if (list.get(arg2).equals(\"个人信息\")) {\n //select = list.get(arg2);\n my_information();\n }\n if (list.get(arg2).equals(\"发布服务\")) {\n // select = list.get(arg2);\n my_demand();\n }\n\n if (list.get(arg2).equals(\"服务审核\")) {\n my_orderaudit();\n }\n if (list.get(arg2).equals(\"我的交易\")) {\n my_transaction();\n }\n if (list.get(arg2).equals(\"设置\")) {\n my_setup();\n }\n }", "title": "" }, { "docid": "a2b4c123188a8729fe682944f856982e", "score": "0.6813646", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView textView = view.findViewById(R.id.text);\n String text = textView.getText().toString();\n\n // Adding new intent and sending data\n Intent intent = new Intent(getActivity(), attractionsActivity.class);\n intent.putExtra(\"pos\", text);\n startActivity(intent);\n }", "title": "" }, { "docid": "7bae0534e414bc77712408562dc6151c", "score": "0.678008", "text": "@Override\n public void onItemClick(View view, int position) {\n }", "title": "" }, { "docid": "36d7bc667f2688a683a595856eccb436", "score": "0.67733884", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n int itemPosition = position;\n\n // ListView Clicked item value\n String itemValue = (String) listView.getItemAtPosition(position);\n\n // Show Alert\n Intent intent= new Intent(Lista.this, Beacon.class);\n intent.putExtra(\"DEVICE\", position+\"\");\n startActivity(intent);\n\n }", "title": "" }, { "docid": "8b809b9eaa06a892e222d28557f8d49b", "score": "0.6771361", "text": "@Override\n public void onItemClicked(View v, int position, int id) { }", "title": "" }, { "docid": "7471edb6df04087764a974617c868a55", "score": "0.67671096", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String countryname = get_array[position];\n\n Toast.makeText(MainActivity.this,\n countryname + \" \" + position,Toast.LENGTH_LONG).show();\n\n }", "title": "" }, { "docid": "a6574ae9da74c9acba04a86373952cdd", "score": "0.67669296", "text": "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tLog.e(\"1111\", \"position:\"+position);\n\t\t\t\tposition -=1;\n\t\t\t\tif( position >=0 && position < dataList.size()){\n\t\t\t\t\tIntent aIntent = new Intent(mActivity, AttentionDetailActivity.class);\n\t\t\t\t\tstartActivity(aIntent);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "f45e3d58c404276358bf06ebd9a037d0", "score": "0.67630595", "text": "@Override\n public void onItemClick(View v, int position) {\n }", "title": "" }, { "docid": "46c2672773f31eba5473152c8facb391", "score": "0.67571175", "text": "@Override\n public void onClick(View v) {\n Intent detail = new Intent(context , Detail_antrian.class);\n detail.putExtra(\"position\" , position);\n detail.putExtra(\"item\" , listItem.get(position));\n context.startActivity(detail);\n\n }", "title": "" }, { "docid": "8572c848640c563b37cb631bd61466cd", "score": "0.675561", "text": "@Override\n public void onItemClicked(int index) {\n }", "title": "" }, { "docid": "7d6334c5d12bee6e7a3ab12946dfd618", "score": "0.6753626", "text": "@Override\r\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n\r\n\r\n long v = adapterView.getItemIdAtPosition(i);\r\n\r\n Log.d(\"ok hiiiiii\", Long.toString(v));\r\n Log.d(\"name\", nameArray.get(Integer.parseInt(Long.toString(v))));\r\n Log.d(\"qualification\", qualificationArray.get(Integer.parseInt(Long.toString(v))));\r\n Log.d(\"fees\", feesArray.get(Integer.parseInt(Long.toString(v))));\r\n Log.d(\"specialization\", specializationArray.get(Integer.parseInt(Long.toString(v))));\r\n Log.d(\"hospital_address\", hospital_addressArray.get(Integer.parseInt(Long.toString(v))));\r\n Log.d(\"hospital_name\", hospital_nameArray.get(Integer.parseInt(Long.toString(v))));\r\n\r\n\r\n\r\n// String str = (String)item; //As you are using Default String Adapter\r\n // Toast.makeText(getBaseContext(),str.getTitle(),Toast.LENGTH_SHORT).show();\r\n\r\n Intent intent = new Intent(Patient_Search_List_Action.this, Request_To_Connect_Doctor.class);\r\n\r\n intent.putExtra(\"did\", didArray.get(Integer.parseInt(Long.toString(v))));\r\n intent.putExtra(\"name\", nameArray.get(Integer.parseInt(Long.toString(v))));\r\n intent.putExtra(\"qualification\", qualificationArray.get(Integer.parseInt(Long.toString(v))));\r\n intent.putExtra(\"fees\", feesArray.get(Integer.parseInt(Long.toString(v))));\r\n intent.putExtra(\"specialization\", specializationArray.get(Integer.parseInt(Long.toString(v))));\r\n intent.putExtra(\"hospital_address\", hospital_addressArray.get(Integer.parseInt(Long.toString(v))));\r\n intent.putExtra(\"hospital_name\", hospital_nameArray.get(Integer.parseInt(Long.toString(v))));\r\n\r\n startActivity(intent);\r\n finish();\r\n }", "title": "" }, { "docid": "63ead02e88d82fabdc405d4a713f9ee3", "score": "0.6752043", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n cursor.moveToPosition(position);\n int sno=cursor.getInt(0);\n String name=cursor.getString(1);\n String sub=cursor.getString(2);\n Toast.makeText(getActivity(), \"\"+sno+\"-\"+name+\"-\"+sub, Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "72c4e305e33467eb831295ed0c2724d5", "score": "0.67489374", "text": "@Override\n public void onItemClicked(View view, int position) {\n\n }", "title": "" }, { "docid": "5c46f6a428477fc90b23a4484bc8ef17", "score": "0.6728911", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n // === Recupero il testo del row sulla quale si è verificato l'evento\n String itemValue = (String)lstElencoNomi.getItemAtPosition(position);\n\n Toast.makeText(this, itemValue, Toast.LENGTH_LONG).show();\n \n\n }", "title": "" }, { "docid": "bf454f27921b1216e469ece3e5d22c1b", "score": "0.6724952", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n int itemPosition = position;\n\n // ListView Clicked item value\n String itemValue = (String) listView.getItemAtPosition(position);\n if (itemPosition == 1) {\n Intent intent = new Intent(view.getContext(), Heating.class);\n startActivity(intent);\n } else if (itemPosition == 2) {\n Intent intent = new Intent(view.getContext(), Cooling.class);\n startActivity(intent);\n } else if (itemPosition == 3) {\n Intent intent = new Intent(view.getContext(), Water.class);\n startActivity(intent);\n } else if (itemPosition == 4) {\n Intent intent = new Intent(view.getContext(), Transportation.class);\n startActivity(intent);\n } else if (itemPosition == 5) {\n Intent intent = new Intent(view.getContext(), Food.class);\n startActivity(intent);\n } else if (itemPosition == 6) {\n// Intent intent = new Intent(view.getContext(), Appliances.class);\n// startActivity(intent);\n }\n\n // Show Alert\n /*Toast.makeText(getApplicationContext(),\n \"Position :\" + itemPosition + \" ListItem : \" + itemValue, Toast.LENGTH_LONG)\n .show();\n\n }*/\n\n\n }", "title": "" }, { "docid": "365f770bffa10bbeca5f053969aa8c23", "score": "0.671138", "text": "@SuppressWarnings(\"static-access\")\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tif (arg2 == 3 || arg2 == 4 || arg2 == 5 || arg2 == 6\n\t\t\t\t\t\t|| arg2 == 7 || arg2 == 8 || arg2 == 9 || arg2 == 11\n\t\t\t\t\t\t|| arg2 == 12 || arg2 == 13) {\n\t\t\t\t\tCustomToast customToast = new CustomToast(getActivity()\n\t\t\t\t\t\t\t.getApplicationContext());\n\t\t\t\t\tcustomToast.makeText(getActivity().getApplicationContext(),\n\t\t\t\t\t\t\t\"\" + listview.getItemAtPosition(arg2), 1500);\n\t\t\t\t\tcustomToast.setpositionbottom();\n\t\t\t\t\tcustomToast.show();\n\t\t\t\t}\n\n\t\t\t}", "title": "" }, { "docid": "ae18952c6725ef48dd2b7cf9d0976a1c", "score": "0.6701302", "text": "@Override\n public void onItemClick(AdapterView<?> a, View v, int i, long l) {\n }", "title": "" }, { "docid": "0697815a5cdcac20f48736a9ac2eab4a", "score": "0.67009276", "text": "@Override\n public void onItemClick(int position, View v) {\n }", "title": "" }, { "docid": "422ed5dbaac432994248633ab0b597f1", "score": "0.6699853", "text": "@Override\n public void onItemClick(int position, View v) {\n }", "title": "" }, { "docid": "9aa5ba16c529ac7023513bd54c433e7f", "score": "0.6696845", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "44260bec195f71f3386419abf23e8367", "score": "0.66815346", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n\n }", "title": "" }, { "docid": "44260bec195f71f3386419abf23e8367", "score": "0.66815346", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n\n }", "title": "" }, { "docid": "4a34a6cab63ef1189512bcb252eb7b62", "score": "0.66794765", "text": "@Override\n public void onClick(View view) {\n int clickedPosition = getAdapterPosition();\n mOnClickListener.onListItemClick(clickedPosition);\n }", "title": "" }, { "docid": "95ed10cebc12bcd8ac20f8632e22cf11", "score": "0.6674373", "text": "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n super.onListItemClick(l, v, position, id);\n Intent intent = new Intent(getActivity(), ContactViewerActivity.class);\n TextView firstView = (TextView) v.findViewById(R.id.list_firstname);\n TextView lastView = (TextView) v.findViewById(R.id.list_lastname);\n TextView titleView = (TextView) v.findViewById(R.id.list_title);\n TextView countryView = (TextView) v.findViewById(R.id.list_country);\n TextView genderView = (TextView) v.findViewById(R.id.list_gender);\n\n String first = firstView.getText().toString();\n String last = lastView.getText().toString();\n String title = titleView.getText().toString();\n String country = countryView.getText().toString();\n String gender = genderView.getText().toString();\n\n Log.d(\"gender\", gender);\n intent.putExtra(\"first\", first);\n intent.putExtra(\"last\", last);\n intent.putExtra(\"title\", title);\n intent.putExtra(\"country\", country);\n intent.putExtra(\"gender\", gender);\n intent.putExtra(\"id\", v.getTag().toString());\n Log.i(\"v.getTag()\", v.getTag().toString());\n Log.i(\"gender\", genderView.getText().toString());\n\n getActivity().startActivityForResult(intent, 1);\n }", "title": "" }, { "docid": "a0590bd01fafad499731b7562bf3bdc5", "score": "0.6673209", "text": "@Override\n public void onItemClick(CreditsListed credits) {\n\n\n Toast.makeText(context, credits.getName(), Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "2c45d12fba7efa3ef79e88777210c0e1", "score": "0.6669015", "text": "@Override\n\tpublic void onListItemClick(ListView l, View v, int position, long id) {\n\t\tString item = (String) getListAdapter().getItem(position);\n\t\t// Traspasmos mediante el metodo itemSeleccionado el valor al texto del frame inferior\n\t\t((MainActivity) getActivity()).itemSeleccionado(item);\n\t}", "title": "" }, { "docid": "d9941253aed6f33b90fab9b0b1182a74", "score": "0.6663816", "text": "@Override\n protected void onListItemClick(ListView l, View v, int pos, long id) {\n MusicEvent clickedEvent = allMusicEvents.get(pos);\n\n String title = clickedEvent.getTitle();\n String date = clickedEvent.getDate();\n String day = clickedEvent.getDay();\n String time = clickedEvent.getTime();\n String location = clickedEvent.getLocation();\n String address1 = clickedEvent.getAddress1();\n String address2 = clickedEvent.getAddress2();\n\n // 2) Create a new intent.\n Intent intent = new Intent(this, EventDetailsActivity.class);\n\n // 3) Pass the event details to the intent\n intent.putExtra(\"Title\", title);\n intent.putExtra(\"Date\", date);\n intent.putExtra(\"Day\", day);\n intent.putExtra(\"Time\", time);\n intent.putExtra(\"Location\", location);\n intent.putExtra(\"Address1\", address1);\n intent.putExtra(\"Address2\", address2);\n\n // 4) Start the activity\n startActivity(intent);\n\n }", "title": "" }, { "docid": "3b2c27925c35417cb90def6b4f79ca26", "score": "0.6659117", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String Slecteditem= arrBook.get(position).getB_title();\n Toast.makeText(getApplicationContext(), Slecteditem, Toast.LENGTH_SHORT).show();\n BookData bookData=arrBook.get(position);\n intent3.putExtra(\"bookdata\", bookData);\n\n startActivity(intent3);\n\n }", "title": "" }, { "docid": "1daa3e8adf9943c22eae4906c2a751a7", "score": "0.66571635", "text": "@Override\n public void onItemClick(AdapterView<?> arg0, View view, int pos, long id) {\n String product = ((TextView) view).getText().toString();\n\n // Launching new Activity on selecting single List Item\n Intent i = new Intent(getApplicationContext(), SingleListItem.class);\n // sending data to new activity\n i.putExtra(\"product\", product);\n startActivity(i);\n }", "title": "" }, { "docid": "95a2a4791715346f94b571da2f735b66", "score": "0.6656408", "text": "@Override\n public void onItemClick(View view, int position) {\n }", "title": "" }, { "docid": "0dab56691bcfd486201cda97d4112aaa", "score": "0.66533446", "text": "@Override\n public void onItemClick(int position) {\n }", "title": "" }, { "docid": "0dab56691bcfd486201cda97d4112aaa", "score": "0.66533446", "text": "@Override\n public void onItemClick(int position) {\n }", "title": "" }, { "docid": "d4bfe4b7c0ecbd006fce2d433383c7b5", "score": "0.6653207", "text": "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint postion, long arg3) {\n\n\t\t\t\tString value = listView.getItemAtPosition(postion) // postion\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 第一位从0开始算\n\t\t\t\t\t\t.toString();\n\n\t\t\t\tvalue = value.replace(\" \", \"_\");\n\n\t\t\t\tmyapp.set(0, value); // store table name to public value. 0 代表传递的是表名\n\n\t\t\t\texit = false;\n\n\t\t\t\tmyapp.playmusic(1); // button sound\n\n\t\t\t\tToast.makeText(MainActivity.this, myapp.get(0), 1).show(); // Toast show choiced table name 显示点击的课程也就是表名\n\n\t\t\t\tIntent intent = new Intent(MainActivity.this,\n\t\t\t\t\t\tListselectactivity.class);\n\n\t\t\t\t// myapp.Vibrate(); //震动\n\n\t\t\t\tstartActivity(intent);\n\n\t\t\t\tfinish();\n\n\t\t\t}", "title": "" }, { "docid": "8eb851bf1ca5653b627d0a3066e8d2e7", "score": "0.6649634", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) //Here 'parent' parameter contains 'jlistView''s content\n { //'view' parameter contains 'TextView' ie Row which was clicked\n //'position' signifies which row was clicked ie index of row\n //'id' ie id of TextView that was generated (Least important)\n TextView temp=(TextView) view;\n Toast.makeText(this,temp.getText()+\"\"+position,Toast.LENGTH_LONG).show();\n //Toast.makeText(this,((TextView) view).getText()+\"\"+position,Toast.LENGTH_LONG).show(); ------------> is also right\n }", "title": "" }, { "docid": "f2b0775dd9ce2c22be0a832f4501130d", "score": "0.6647504", "text": "@Override\n public void onItemClick(int p) {\n ListItem item = (ListItem) listData.get(p);\n\n if (item.isSentOff()){\n Toast.makeText(getApplicationContext(), \"Cannot access data, player has been sent off!\", Toast.LENGTH_LONG).show();\n }else {\n Intent i = new Intent(this, DetailActivity.class);\n Bundle extras = new Bundle();\n extras.putInt(\"goals_scored\", item.getGoalsScored());\n extras.putInt(\"player_number\", item.getNumber());\n extras.putString(EXTRA_ATTR, item.getSubName());\n extras.putInt(\"subsLeft\", subsLeft);\n i.putExtra(BUNDLE_EXTRAS, extras);\n startActivityForResult(i, 1);\n }\n }", "title": "" }, { "docid": "710be9db65132964a5c8542ba8422020", "score": "0.6638296", "text": "@Override\n public void onItemClick(int position) {\n }", "title": "" }, { "docid": "710be9db65132964a5c8542ba8422020", "score": "0.6638296", "text": "@Override\n public void onItemClick(int position) {\n }", "title": "" }, { "docid": "710be9db65132964a5c8542ba8422020", "score": "0.6638296", "text": "@Override\n public void onItemClick(int position) {\n }", "title": "" }, { "docid": "a20758ff27463a8cf4c5599f1579a4bb", "score": "0.66380733", "text": "@Override\n public void onItemClick(AdapterView <?> parent, View view,\n int position, long id) {\n int itemPosition = position;\n\n // ListView Clicked item value\n String itemValue = (String) listView.getItemAtPosition(position);\n\n // Show Alert\n // Toast.makeText(getApplicationContext(),\n // \"Position :\" + itemPosition + \" ListItem : \" + itemValue, Toast.LENGTH_LONG)\n // .show();\n int qntCapitulos = 0;\n for (int temp = 0; temp < livros.getLength(); temp++) {\n Node nNode = livros.item(temp);\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) nNode;\n if (eElement.getAttribute(\"n\").equalsIgnoreCase(itemValue)) {\n NodeList capitulos = eElement.getChildNodes();\n for (int i = 0; i < capitulos.getLength(); i++) {\n Node nNode2 = capitulos.item(i);\n if (nNode2.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement2 = (Element) nNode2;\n qntCapitulos++;\n //arrayCapitulos[i] = \"Capítulo \" + eElement2.getAttribute(\"n\");\n //System.out.println(\" Capítulo \" + eElement2.getAttribute(\"n\"));\n\n }\n }\n break;\n }\n }\n }\n\n\n //Abrir capitulos\n Intent intent = new Intent(context, Capitulos.class);\n Bundle params = new Bundle();\n //params.putString(\"livro\", itemValue);\n System.out.println(qntCapitulos);\n params.putString(\"livro\", itemValue);\n params.putInt(\"capitulos\", qntCapitulos);\n intent.putExtras(params);\n\n startActivity(intent);\n\n }", "title": "" }, { "docid": "b7a1c655e79801909704baa0a465ebe0", "score": "0.66330796", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "title": "" }, { "docid": "bf10eaa3c58fedafd19fcb16b10101e6", "score": "0.6631836", "text": "@Override\n protected void onItemClick(int position, long id) {\n }", "title": "" }, { "docid": "76fa651e9a5d5d05d834cb1d662d6ddb", "score": "0.6630523", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "title": "" }, { "docid": "70e640ae58376630f5c3b623825e5366", "score": "0.66249114", "text": "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n }", "title": "" }, { "docid": "00e0f833d1c883ee25b8303c882ddafe", "score": "0.66235495", "text": "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tString item = (String) getListAdapter().getItem(position);\n\t\tToast.makeText(this, item + \" selected\", Toast.LENGTH_LONG).show();\n\t\t\n\t\t// Start document display and send the document key over.\n\t\tIntent intent = new Intent().setClass(this, DocumentDisplayActivity.class);\n\t\tintent.putExtra(\"method\", \"list\");\n\t\tintent.putExtra(\"documentKey\", metas.get(position).getKey());\n\t\tstartActivity(intent);\n\t}", "title": "" }, { "docid": "1984db0f8feb7ab3d0b2373fdc775c2e", "score": "0.6622967", "text": "public abstract void onListItemClick(String item_name, boolean is_tag);", "title": "" }, { "docid": "4c2c23ef6974a54bb8e70a08cb97408a", "score": "0.6606918", "text": "@Override\n\tpublic void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\n\t\tString eventName = eventToBePassed.get(position);\n\t\tBundle data = new Bundle();\n\t\tdata.putString(\"event\", eventName);\n\n\t\tLog.i(\"eventname sent\", eventName);\n\t\tLog.i(\"position\", \"\" + position);\n\t\tIntent i = new Intent(getActivity().getBaseContext(),\n\t\t\t\tEventActivity.class);\n\t\ti.putExtras(data);\n\t\tstartActivity(i);\n\t}", "title": "" }, { "docid": "65a1e1d426d8d26c3955087aa3b7254d", "score": "0.66042036", "text": "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n }", "title": "" }, { "docid": "7f78f8729f9168f1d302d981f9b6a2ab", "score": "0.6599674", "text": "@Override\n\t\tpublic void onItemClick(AdapterView<?> parent, View view, int i,\n\t\t\t\t\tlong id) {\n\t\t\t\tToast.makeText(getApplicationContext(),((TextView)view).getText(),Toast.LENGTH_SHORT).show();\n\t\t\t}", "title": "" }, { "docid": "ffc4fc2cf501ccac6321bfaf8c89264e", "score": "0.6596527", "text": "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\t\t\n\t\tMovie localMovie1 = (Movie)this.rowItems.get(position);\n\t\t\n\t String str1 = localMovie1.getTitle();\n\t String str2 = localMovie1.getDetails();\n\t String str3 = localMovie1.getThumbnailUrl();\n\t String str4 = localMovie1.getCategory();\n\t String str5 = localMovie1.getContact_name();\n\t String str6 = localMovie1.getPrice();\n\t String str7 = localMovie1.getEmail();\n\t String str8 = localMovie1.getLocation();\n\t String Str9 = localMovie1.getPhone_contact();\n\t \n\t Movie localMovie2 = new Movie();\n\t \n\t localMovie2.setDetails(str2);\n\t localMovie2.setTitle(str1);\n\t localMovie2.setThumbnailUrl(str3);\n\t \n\t \n\t Intent postdetails = new Intent(HobbiesFragment.this,PostDetailActivity.class);\n\t \n\t postdetails.putExtra(\"title\", str1);\n\t postdetails.putExtra(\"details\", str2);\n\t postdetails.putExtra(\"thumbnailUrl\", str3);\n\t postdetails.putExtra(\"category\", str4);\n\t postdetails.putExtra(\"contact_name\",str5);\n\t postdetails.putExtra(\"price\", str6);\n\t postdetails.putExtra(\"email\", str7);\n\t postdetails.putExtra(\"location\", str8);\n\t postdetails.putExtra(\"phone_contact\", Str9);\n\n\t startActivity(postdetails);\n\t}", "title": "" }, { "docid": "a26081343f8b37b233cfe73ab301a60d", "score": "0.65924877", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "title": "" }, { "docid": "4e5cff055c95ff8471b68f14f696157e", "score": "0.65896183", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent2 = new Intent(MainActivity.this, PhotoDescriptionActivity.class);\n\n //Depending upon the position clicked by the user to PhotoDescriptionActivity\n //Sending the Caption selected by the user to PhotoDescriptionActivity\n intent2.putExtra(key1, array_captions[position]);\n\n //Sending the Filepath associated to PhotoDescriptionActivity\n intent2.putExtra(key2, array_filepaths[position]);\n\n //Launching the activity PhotoDescriptionActivity\n startActivity(intent2);\n }", "title": "" }, { "docid": "fd8f53f7f7346f1f10d4f8703dca5214", "score": "0.65840596", "text": "@Override\n public void onItemClick(View view, int position) {\n TextView tv1 = (TextView) view.findViewById(R.id.topic_name);\n\n ExamClass ec = arrayList.get(position);\n Intent i = new Intent(getContext(),Test.class);\n i.putExtra(\"exam_id\",ec.getId());\n startActivity(i);\n dismiss();\n }", "title": "" }, { "docid": "3b70ac45f518d47666f0728e8c894686", "score": "0.65820986", "text": "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\tint position, long id) {\n\t\t\t\tIntent intent = new Intent(getActivity(), DetailsActivity.class);\r\n\t\t\t\t_pEditor.putString(\"itemId\",\r\n\t\t\t\t\t\tString.valueOf(arrayList.get(position).getId()));\r\n\t\t\t\t_pEditor.commit();\r\n\t\t\t\tConstant.NEAR_BY_LIST = 0;\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\tgetActivity().overridePendingTransition(R.anim.slide_in_right,\r\n\t\t\t\t\t\tR.anim.slide_out_left);\r\n\t\t\t}", "title": "" }, { "docid": "1eb6889d45dc875313cad3f951893e63", "score": "0.65777504", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "title": "" }, { "docid": "1eb6889d45dc875313cad3f951893e63", "score": "0.65777504", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "title": "" }, { "docid": "7ef74f6568fb4dc18945ca1c0d8ce446", "score": "0.657375", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "3fcdb4877d94cbb08f7254f8e1dc20e9", "score": "0.65722746", "text": "public void Details()\n {\n final CharSequence[] Animals = mAnimals.toArray(new String[mAnimals.size()]);\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(context, R.style.MyDialogTheme);\n dialogBuilder.setTitle(\"Details\");\n dialogBuilder.setPositiveButton(\"Got it.\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // continue with delete\n\n }\n });\n\n\n dialogBuilder.setItems(Animals, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int item) {\n String selectedText = Animals[item].toString(); //Selected item in listview\n\n\n }\n });\n\n\n //Create alert dialog object via builder\n AlertDialog alertDialogObject = dialogBuilder.create();\n //Show the dialog\n alertDialogObject.show();\n }", "title": "" }, { "docid": "2ace8655a782f0d12b6093635232605c", "score": "0.6552312", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "title": "" }, { "docid": "6ee2394878eb06233380991173a86034", "score": "0.6550857", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String value = oslist.get(+position).get(\"mat\");\n //Toast.makeText(ListaMateriais.this, \"You Clicked at \" + value, Toast.LENGTH_SHORT).show();\n Intent it = new Intent(ListaMateriaisBloqueio.this, ListaEstoqueBloqueio.class);\n it.putExtra(\"material\",value);\n startActivity(it);\n finish();\n }", "title": "" }, { "docid": "405b3ed1e3056336707654ff8b0a73ee", "score": "0.6550552", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "5d4088b7759cc29dea598542bd02e1a0", "score": "0.6550064", "text": "private void listItem() {\n ListItem item = (ListItem) getItem(position);\n\n // Retrieve views\n TextView name = view.findViewById(R.id.name);\n TextView total = view.findViewById(R.id.total);\n TextView bonus = view.findViewById(R.id.bonus);\n TextView peril = view.findViewById(R.id.peril);\n\n // Change texts for views\n name.setText(item.getName());\n total.setText(String.valueOf(item.getTotal()));\n bonus.setText(String.valueOf(item.getBonus()));\n peril.setText(String.valueOf(item.getPeril()));\n }", "title": "" }, { "docid": "cf8d0e9300731a49d045c93e6193b765", "score": "0.65465665", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View v, int position, long id) {\n Context context = v.getContext();\n\n ListItem item = (ListItem) parent.getAdapter().getItem(position);\n TextView textViewItem = ((TextView) v.findViewById(R.id.textViewItem));\n\n\n // just toast it\n if (!((ListItem) parent.getAdapter().getItem(position)).isGroupHeader) {\n\n // get the clicked item name\n String listItemText = textViewItem.getText().toString();\n\n // get the clicked item ID\n String listItemId = textViewItem.getTag().toString();\n\n if (item != null) {\n // Toast.makeText(v.getContext(), \"Item \" + position + \": level \" + item.level + \", text: \" + item.text, Toast.LENGTH_SHORT).show();\n listview.setSelection(item.level + (position));\n } else {\n Toast.makeText(v.getContext(), \"Item \" + position + \": not exist\", Toast.LENGTH_SHORT).show();\n }\n\n //} else {\n //Toast.makeText(v.getContext(), \"Item \" + position + \": not exist\", Toast.LENGTH_SHORT).show();\n //ad.dismiss();\n //return;\n }\n\n //((MainActivity) context).alertDialogStores.cancel();\n getActivity().invalidateOptionsMenu();\n ad.dismiss();\n }", "title": "" }, { "docid": "f1bbb4c245eb533475e2fc875a30facc", "score": "0.65434384", "text": "@Override\r\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\r\n\t\tint key = paper * 1000 + position;\r\n\t\tif (Variables.newMap.get(key) == null) {\r\n\t\t\tdialog = ProgressDialog.show(VnexpressActivity.this, \"\", \"Loading..\"\r\n\t\t\t\t\t+ Variables.CATEGORIES[paper][position]);\r\n\t\t\t\r\n\t\t\tnew VnexpressTask().execute(position);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tIntent intent = new Intent(VnexpressActivity.this, NewListVnexpressActivity.class);\r\n\t\t\tintent.putExtra(Variables.PAPER, paper);\r\n\t\t\tintent.putExtra(Variables.CATEGORIE, position);\r\n\t\t\tstartActivity(intent);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//Toast.makeText(getBaseContext(), \"\"+items.size(), Toast.LENGTH_SHORT).show();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "68b3c7b11a822c354e6c5d527bede490", "score": "0.6540666", "text": "@Override\n public void onItemClick(int position) {\n Toast.makeText(getActivity(), \"Item number: \"+ position, Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "66680216bf844c5ce70bb88bd15f5419", "score": "0.65338606", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int i, long id) {\n if(list.get(i).getType()==3){\n Intent intent = new Intent(mContext, TypeStudioListActivity.class);\n Bundle bundle = new Bundle();\n bundle.putInt(\"wid\", list.get(i).getCid());\n intent.putExtras(bundle);\n mContext.startActivity(intent);\n }else {\n Intent intent = new Intent(mContext, TypeShopListActivity.class);\n Bundle bundle = new Bundle();\n bundle.putString(\"cid\", list.get(i).getCid() + \"\");\n intent.putExtras(bundle);\n mContext.startActivity(intent);\n }\n }", "title": "" }, { "docid": "a1605aafb5cc263a865e7af557a191da", "score": "0.6533397", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id)\n {\n\n }", "title": "" }, { "docid": "a9b6cf63d0aa4acd55fc17edf9012bf7", "score": "0.6531269", "text": "@Override\n\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "e2ada9cd553c5ebed3e3e4ddf565e7c4", "score": "0.65303427", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n diseasename = diseases.get(position);\n\n // Show Alert\n Intent intent = new Intent(view.getContext(), DiseaseInfo.class);\n Bundle b = new Bundle();\n b.putString(\"diseasename\", diseasename);\n intent.putExtras(b);\n view.getContext().startActivity(intent);\n }", "title": "" }, { "docid": "a4debf3ef2c7f039fee7c544411c391f", "score": "0.65291524", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n int itemPosition = position;\n // ListView Clicked item value\n String itemValue = (String) listView.getItemAtPosition(position);\n // Show Alert\n /* Toast.makeText(getApplicationContext(),\n \"Position :\"+itemPosition+\" ListItem : \" +itemValue , Toast.LENGTH_LONG)\n .show();*/\n m_orden=itemValue;\n Log.i(TAG, \"onItemClick: Item Orden Pedido \"+m_orden);\n\n alertDialog.dismiss();\n Showterminoproducto();\n }", "title": "" }, { "docid": "c17df8ee90d05bf5f6a117b3483e4a41", "score": "0.65284413", "text": "@Override\n public void onItemClick(int position) {\n Intent detailIntent = new Intent(this, DetailActivity.class); // Aanmaken van Intent die de wissel naar DetailActivity kan regelen\n Person clickedPerson = peopleList.get(position); // Aanduiden van de specifieke aangeklikte persoon\n detailIntent.putExtra(EXTRA_URL, clickedPerson.getImageUrlLarge()); // De 'titels' van categoriën en daarbij horende gegevens van de aangeklikte persoon worden meegenomen\n detailIntent.putExtra(EXTRA_NAME, clickedPerson.getName()); // ''\n detailIntent.putExtra(EXTRA_GENDER, clickedPerson.getGender()); // ''\n detailIntent.putExtra(EXTRA_NATIONALITY, clickedPerson.getNationality()); // ''\n detailIntent.putExtra(EXTRA_EMAIL, clickedPerson.getEmail()); // ''\n detailIntent.putExtra(EXTRA_PHONE, clickedPerson.getPhone()); // ''\n detailIntent.putExtra(EXTRA_CELL, clickedPerson.getCell()); // ''\n startActivity(detailIntent); // Het starten van de Intent en dus het initiëren van DetailActivity\n }", "title": "" }, { "docid": "d7a63ba252eb29f955a4db0676d0f739", "score": "0.652622", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Artist artist = artistList.get(i);\n\n // creating an intent\n Intent intent = new Intent(getApplicationContext(), TrackActivity.class);\n\n //sending artist name and id to intent\n intent.putExtra(ARTIST_ID_KEY, artist.getArtistId());\n intent.putExtra(ARTIST_NAME_KEY, artist.getArtistName());\n\n //starting the intent\n startActivity(intent);\n }", "title": "" } ]
2de5f8a4ed5236788c660930ef3a7e8c
/ Pattern pattern = Pattern.compile("/blog/([09]+)/([09]+)([09]+)"); Matcher matcher = pattern.matcher(" System.out.println(matcher.matches()); System.out.println(matcher.find()); System.out.println(matcher.group(0)); System.out.println(matcher.group(1)); System.out.println(matcher.group(2)); System.out.println(matcher.group(3));
[ { "docid": "6b3366cf05dcde2240b2e38ef574e7d2", "score": "0.0", "text": "public static void main(String[] args){\n Date date = new Date();\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd hh:mm\");\n System.out.print(format.format(date));\n\n try {\n FileInputStream fis = new FileInputStream(\"D:\\\\1.txt\");\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n IOUtils.copy(fis,baos);\n String content = new String(baos.toByteArray(),\"GBK\");\n //System.out.println(content);\n\n if(content.contains(\"<html>\")) {\n Pattern p = Pattern.compile(\"<body>([\\\\s\\\\S]*)</body>\");\n Matcher matcher = p.matcher(content);\n if(matcher.find()){\n System.out.println(matcher.group(1));\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "title": "" } ]
[ { "docid": "eb5331a9b4a879f1d61031a3bd61be84", "score": "0.55322284", "text": "private static void r13() {\r\n\t\tPattern pattern = Pattern.compile(\"(\\\\d\\\\d)\\\\1\");\r\n\t\t\r\n\t\t//Matcher matcher = pattern.matcher(\"%%\");\r\n\t\tMatcher matcher = pattern.matcher(\"3232\");\r\n\t\t//Matcher matcher = pattern.matcher(\"3233\");\r\n\t\t\r\n\t\twhile(matcher.find()){\r\n\t\t\tSystem.out.println(matcher.group());\r\n\t\t\tSystem.out.println(matcher.start());\r\n\t\t\tSystem.out.println(matcher.end());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "473dee6c481cc9d2a8b829aac3d6e546", "score": "0.5335609", "text": "public static void main0(String[] args) throws UnsupportedEncodingException {\n String line = \"This order was placed for QT3000! OK?\";\n String pattern = \"(.*)(\\\\d+)(.*)\";\n\n // Create a Pattern object\n Pattern r = Pattern.compile(pattern);\n\n // Now create matcher object.\n Matcher m = r.matcher(line);\n if (m.find( )) {\n System.out.println(\"Found value: \" + m.group(0) );\n System.out.println(\"Found value: \" + m.group(1) );\n System.out.println(\"Found value: \" + m.group(2) );\n } else {\n System.out.println(\"NO MATCH\");\n }\n\n\n\n\n\n }", "title": "" }, { "docid": "88fe848e1854a15d46e7e3cc36629fd0", "score": "0.53061", "text": "public static void main(String args[])\n\t{\n\t\tString tweet1 = \"123\t242714967\tmediazaken\t276724472889884672\tThu Dec 06 16:27:10 +0000 2012\t-1000.000\t-100\t<a href=\\\"http://twitter.com/download/android\\\" rel=\\\"nofollow\\\">Twitter for Android</a>\t@\";\n\t\tPattern pattern = Pattern.compile(\"[0-9]+\\t[0-9]+\\t[a-zA-Z]+\\t[0-9]+\\t[a-zA-Z0-9+: ]+\\t[-]*[0-9]+[.0-9]*\\t[-]*[0-9]+[.0-9]*\\t[^\\t]+\\t\");\n\t\t//Pattern pattern = Pattern.compile(\"[0-9]+\");\n\t\tMatcher matcher = pattern.matcher(tweet1);\n\t\tif (matcher.find()) {\n\t\t System.out.println(matcher.group(0)+\"\\t\"+matcher.end()); //prints /{item}/\n\t\t} else {\n\t\t System.out.println(\"Match not found\");\n\t\t}\n\t}", "title": "" }, { "docid": "c49b5124043adf02d66167d4aca7b55e", "score": "0.51973265", "text": "String getUrlPattern();", "title": "" }, { "docid": "eed98f8935d8409a673c14478c2bc5f3", "score": "0.51928395", "text": "public static void main(String[] args) {\n\t\t\n\t\tString str = \"bbcababcabbbaaaabac\";\n\t\tString regex = \"ba*b\";\n\t\t\n\t\tPattern pattern = Pattern.compile(regex);\n\t\tMatcher matcher = pattern.matcher(str);\n\t\t\n\t\t// searches for subsequence\n\t\tSystem.out.println(\"Find method: \" + matcher.find());\n\t\t\n\t\t// matches regex for entire string\n\t\tSystem.out.println(\"Matches method: \" + matcher.matches());\n\t\t\n\t\t// Checks for regex at index towards the end of string\n\t\tSystem.out.println(\"Find at start of index 12: \" + matcher.find(12));\t\t\n\t\t\n\t}", "title": "" }, { "docid": "705b6b297f2714deceb9efa35efa08f4", "score": "0.5140107", "text": "@Test\n public void testParseRoute09() {\n RouteResult routeResult = null;\n try {\n routeResult = this.router.parse(\"/MockShell/testRoute03/testRoute04/testRoute05\");\n } catch (RouterException e) {\n Assert.fail();\n }\n Assert.assertEquals(\"route test with leading '/'\",\n \"/MockShell\",\n routeResult.getShell());\n Assert.assertEquals(\"route test with leading '/'\",\n \"/MockShell/testRoute03/testRoute04/testRoute05\",\n routeResult.getRoute());\n }", "title": "" }, { "docid": "b6db96e8e990facc35ff6f630909aec4", "score": "0.5087598", "text": "public static void main(String[] args) {\n Pattern p = Pattern.compile(\"ab\"); // pattern object, what to search\n Matcher m = p.matcher(\"ababbaba\"); //target String, where we want to search\n int count = 0;\n\n while(m.find()){\n count++;\n // start()-> starting index end() ending index\n System.out.println(m.start() + \" \" + m.end()+ \" \" + m.group());\n }\n\n System.out.println(\"Number of occurences of ab: \" + count);\n\n String pattern = \"[^0-9]\";\n Pattern p1 = Pattern.compile(pattern);\n Matcher m1 = p1.matcher(\"a7b@2#9x\");\n while (m1.find()){\n System.out.println(m1.start() + \"...\" + m1.end() + \"...\" + m1.group());\n }\n\n String x = \"aa?\";\n Pattern p2 = Pattern.compile(x);\n Matcher m2 = p1.matcher(\"abbaabbaaa\");\n int count1 = 0;\n while (m1.find()){\n count1++;\n System.out.println(m1.start() + \" \" + m1.group());\n }\n\n System.out.println(\"occurences of a \" + count);\n }", "title": "" }, { "docid": "1ff45502cacad89d661ca53ef2089854", "score": "0.5069523", "text": "public static void main(String[] args) {\nPattern p = Pattern.compile(\".sd\");//this is regex pattern\n//if pattern is hving \nMatcher m = p.matcher(\"asd\");// this should match the regex\n\t\t\nboolean b = m.matches();// this is method which matches both the PATTERN @ MATCHER\nboolean b1= Pattern.compile(\".s\").matcher(\"as\").matches();\nboolean b2 = Pattern.matches(\".s\", \"as\");\n\nSystem.out.println(b+\" \"+b1+\" \"+b2);\n\t\t\n\t}", "title": "" }, { "docid": "f13fbdd65c18b2d9800a9212df53e8be", "score": "0.5023208", "text": "public static void main(String[] args) throws Exception {\n \tPattern p =Pattern.compile(\"预约电话:([\\\\d-]*)\");\r\n \tMatcher m = p.matcher(\"2014年06月25日(周一-周四不适用)预约电话:010-83568888-2811(09:00-18:00)\");\r\n \twhile(m.find()){\r\n \t\tSystem.out.println(m.group(1));\r\n \t}\r\n\t}", "title": "" }, { "docid": "2c0d279521c52e2c98f956d208f571ee", "score": "0.4966583", "text": "String getRegexpMatch();", "title": "" }, { "docid": "3004955bc2495c5f792771425fc8adf1", "score": "0.4921637", "text": "public static void main(String[] args) {\n String line = \"199AAADDV4545.xml\";\n\n // Group 1 - Issue number, digits\n // Group 2 - edition short name, capital letters\n // Group 3 - year, 4 digits\n // Example 100KA1992.xml\n String pattern = \"(^[\\\\d]+)([A-Z]+)([\\\\d]{4})\";\n\n // Create a Pattern object\n Pattern r = Pattern.compile(pattern);\n\n // Now create matcher object.\n Matcher m = r.matcher(line);\n if (m.find()) {\n //System.out.println(\"Found value: \" + m.group(0) );\n System.out.println(\"Found value: \" + m.group(1));\n System.out.println(\"Found value: \" + m.group(2));\n System.out.println(\"Found value: \" + m.group(3));\n } else {\n System.out.println(\"NO MATCH\");\n }\n\n }", "title": "" }, { "docid": "6932ba6b445c35d5ffb2800cd5c2fdfd", "score": "0.48964804", "text": "@Test\n public void testParseRoute12() {\n RouteResult routeResult = null;\n try {\n routeResult = this.router.parse(\"/MockShell/testRoute06/testRoute07/testParameter01/testParameter02\");\n } catch (RouterException e) {\n Assert.fail();\n }\n Assert.assertEquals(\"route test without leading '/'\",\n \"/MockShell\",\n routeResult.getShell());\n Assert.assertEquals(\"route test without leading '/' and two parameters, first one empty\",\n \"/MockShell/testRoute06/testRoute07/*/*\",\n routeResult.getRoute());\n Assert.assertEquals(\"route test with leading '/', complex path and two parameters, both parameters exist\",\n \"testParameter01\",\n routeResult.getParameterValues()\n .get(0));\n Assert.assertEquals(\"route test without leading '/' and two parameters, first one empty\",\n \"testParameter02\",\n routeResult.getParameterValues()\n .get(1));\n }", "title": "" }, { "docid": "c62001aa1a2d7adabfc83dfe21cd578e", "score": "0.48606965", "text": "String getPattern();", "title": "" }, { "docid": "a7e5d3e5ae9bb856d03291ec9f6622e7", "score": "0.48459774", "text": "public static void main(String[] args) {\n\t\t Pattern p = Pattern.compile(\"\\\\D+\");\n Matcher m = p.matcher(\"asdaAFGGGafgaads* &%12345@#$98765%d aasdd^&*(faaaLJaaa\");\n while(m.find()) {\n System.out.println(m.start()+\"...................\"+m.end()+\".......................\"+m.group());\n }\n\t}", "title": "" }, { "docid": "89120a6752e62fd3e85a63176df32432", "score": "0.48447597", "text": "private Matcher regularExpression(String response, String pattern)\n\t{\n\t\tPattern p = Pattern.compile(pattern);\n Matcher m= p.matcher(response);\n regexFlag=m.find();\n return m; \n\t}", "title": "" }, { "docid": "7724aae0bfe4dfa58d6d5b783a30ae71", "score": "0.48236164", "text": "boolean matches(String part);", "title": "" }, { "docid": "5d0859495d76be6b338ce8efca264495", "score": "0.48137656", "text": "private void pattern3(String group) throws IOException {\n\r\n Pattern pattern = Pattern.compile(\"([\\\\d]?[\\\\d])+([\\\\d])\");\r\n Matcher buscar = pattern.matcher(group);\r\n if (buscar.matches()) {\r\n// System.out.println(\"cambiando\" + buscar.group(1) + \"con\" + buscar.group(2));\r\n est.actualizarEstado(Integer.parseInt(buscar.group(1)), Integer.parseInt(buscar.group(2)));\r\n }\r\n }", "title": "" }, { "docid": "bf1717e09d19e7dda2b83b0a3d2c912e", "score": "0.47545314", "text": "public static void main(String[] args)\n {\n String teststr = \"application/ahu\";\n Pattern P = Pattern.compile(\"^\"+teststr+\"/*(\\\\w+)/*$\");\n Matcher m = P.matcher(\"application/ahu/generaltempcombinemethod/\");\n if (m.find())\n {\n LOG.error(\"{},{}\",m.groupCount(),m.group(1));\n \n }else{\n LOG.error(\"Not match\");\n }\n }", "title": "" }, { "docid": "1b152428a4112862c3ec731bbea2fdfe", "score": "0.4744189", "text": "static void printRegex(String pattern, String value){\n System.out.println(value.matches(pattern));\n }", "title": "" }, { "docid": "1535e857fc75a9448fbe594e432c9b5b", "score": "0.4734739", "text": "java.lang.String getPattern2();", "title": "" }, { "docid": "1535e857fc75a9448fbe594e432c9b5b", "score": "0.4734739", "text": "java.lang.String getPattern2();", "title": "" }, { "docid": "28ae1a09b66c15c1d6fe2275230e48c0", "score": "0.4715133", "text": "@Test\n public void testZeroOrMoreRegex(){\n String toMatch = \"5+7=12\";\n Regex regex = new Regex(expr -> expr.matchRegex().anyDigit().zeroOrMore());\n List<String> result = regex.match(toMatch);\n\n Assert.assertEquals(3, result.size());\n Assert.assertEquals(\"5\", result.get(0));\n Assert.assertEquals(\"7\", result.get(1));\n Assert.assertEquals(\"12\", result.get(2));\n }", "title": "" }, { "docid": "772c31a5bf6f668029ba0b8f680bc090", "score": "0.47143516", "text": "String getRegexPattern();", "title": "" }, { "docid": "16b50cb270a682dd7c0103119a236796", "score": "0.4702061", "text": "@Test\n public void testParseRoute10() {\n RouteResult routeResult = null;\n try {\n routeResult = this.router.parse(\"MockShell/testRoute03/testRoute04/testRoute05\");\n } catch (RouterException e) {\n Assert.fail();\n }\n Assert.assertEquals(\"route test without leading '/'\",\n \"/MockShell\",\n routeResult.getShell());\n Assert.assertEquals(\"route test without leading '/'\",\n \"/MockShell/testRoute03/testRoute04/testRoute05\",\n routeResult.getRoute());\n }", "title": "" }, { "docid": "46e20774bcdbb737e1cfb85c9d46a1f6", "score": "0.4679895", "text": "public static void main(String[] args) {\r\n\r\n\t\tint count = 0 ;\r\n\r\n\t\tPattern p = Pattern.compile(\"a?\");\r\n\r\n\t\tMatcher m = p.matcher(\"sasasasasasaaaaaa!!!!!!!!!!\");\r\n\t\t\r\n\r\n\t\twhile (m.find()){\r\n\r\n\t\t\tcount++ ;\r\n\t\t\t\r\n\t\t\t//System.out.println(m.group());\r\n\r\n\t\t\tSystem.out.println(m.start() + \"@@@@@@\"+ m.end()+\"\"+ m.group() );\r\n\t\t}\r\n\t\tSystem.out.println(\"@@@@@@@@@@@@@@ \" + count);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b511c8b874c2d3756717a890ce663042", "score": "0.46293604", "text": "public Contact findContact(String regex);", "title": "" }, { "docid": "b9ee2f22010fdefa819ac0e0b14816c8", "score": "0.4624533", "text": "java.lang.String getPattern();", "title": "" }, { "docid": "b9ee2f22010fdefa819ac0e0b14816c8", "score": "0.4624533", "text": "java.lang.String getPattern();", "title": "" }, { "docid": "b9ee2f22010fdefa819ac0e0b14816c8", "score": "0.4624533", "text": "java.lang.String getPattern();", "title": "" }, { "docid": "59eb92749d9efc0f80624ba556902f40", "score": "0.46146905", "text": "java.lang.String getPattern5();", "title": "" }, { "docid": "59eb92749d9efc0f80624ba556902f40", "score": "0.46146905", "text": "java.lang.String getPattern5();", "title": "" }, { "docid": "5b1dc867a8043ef7363a3d17b387d932", "score": "0.4614419", "text": "public static void main(String[] args) {\n Pattern p = Pattern.compile(\"\\\\D\");\n Matcher m = p.matcher(\"a7b @z#9\");\n while (m.find()) {\n System.out.println(m.start() + \"....\" + m.group());\n }\n }", "title": "" }, { "docid": "80ceaeacaa4cc9268431c91dfceea85d", "score": "0.46118304", "text": "java.lang.String getPattern1();", "title": "" }, { "docid": "80ceaeacaa4cc9268431c91dfceea85d", "score": "0.46118304", "text": "java.lang.String getPattern1();", "title": "" }, { "docid": "cdb4582d2e5c64e61a02e49b3417a4e5", "score": "0.46079856", "text": "@Test\n public void testZeroOrOneRegex(){\n String toMatch = \"ran, rain, raiin\";\n Regex regex = new Regex(expr -> expr.matchRegex().text(\"rai\").zeroOrOne().text(\"n\"));\n List<String> result = regex.match(toMatch);\n\n Assert.assertEquals(2, result.size());\n Assert.assertEquals(\"ran\", result.get(0));\n Assert.assertEquals(\"rain\", result.get(1));\n }", "title": "" }, { "docid": "5ccbba018bd7c2af54c4b7c7c64d9a64", "score": "0.459101", "text": "@Test\n public void testOneOrMoreRegex(){\n String toMatch = \"hey, heyy, heyyy\";\n Regex regex = new Regex(expr -> expr.matchRegex().text(\"hey\").oneOrMore());\n List<String> result = regex.match(toMatch);\n\n Assert.assertEquals(3, result.size());\n Assert.assertEquals(\"hey\", result.get(0));\n Assert.assertEquals(\"heyy\", result.get(1));\n Assert.assertEquals(\"heyyy\", result.get(2));\n }", "title": "" }, { "docid": "f343f0ffa2fd4e914ffbe269cc191320", "score": "0.45899552", "text": "@Test\n\tpublic void test() {\n\t\ttest(\"/foo/bar/{id}\", \"/foo/bar/42\", Arrays.asList(\"id\"), Arrays.asList(\"42\"), \"id\");\n\t\ttest(\"/foo/bar/{id}\", \"/foo/bar/{}\", Arrays.asList(\"id\"), Arrays.asList(\"{}\"), \"id\");\n\t\ttest(\"/foo/bar/{id}\", \"foo/bar/\", Arrays.asList(\"id\"), Collections.singletonList(\"\"), \"id\");\n\t\ttest(\"/foo/bar/{id}\", \"/foo/bar/42/baz\", Arrays.asList(\"id\"), Collections.singletonList(null), \"id\"); // *\n\t\ttest(\"/foo/{bar}/{id}\", \"foo/bar/42\", Arrays.asList(\"bar\", \"id\"), Arrays.asList(\"bar\", \"42\"), \"bar\", \"id\");\n\t\ttest(\"/foo/{bar}/{id}\", \"foo/bar\", Arrays.asList(\"bar\", \"id\"), Arrays.asList(null, null), \"bar\", \"id\"); // *\n\n\t\ttest(\"/foo/bar/{rest:*}\", \"/foo/bar/42\", Arrays.asList(\"rest\"), Arrays.asList(\"42\"), \"rest\");\n\t\ttest(\"/foo/bar/{rest:*}\", \"/foo/bar/42/baz\", Arrays.asList(\"rest\"), Arrays.asList(\"42/baz\"), \"rest\");\n\t\ttest(\"/foo/bar/{rest:*}\", \"/foo/bar/\", Arrays.asList(\"rest\"), Collections.singletonList(\"\"), \"rest\");\n\t\ttest(\"/foo/{id}/{rest:*}\", \"/foo/bar/42/baz\", Arrays.asList(\"id\", \"rest\"), Arrays.asList(\"bar\", \"42/baz\"), \"id\", \"rest\");\n\t\ttest(\"/foo/{id}/{rest:*}\", \"/foo/bar/\", Arrays.asList(\"id\", \"rest\"), Arrays.asList(\"bar\", \"\"), \"id\", \"rest\");\n\n\t\ttest(\"/foo/{id}/{rest:42.*}\", \"/foo/bar/42/baz\", Arrays.asList(\"id\", \"rest\"), Arrays.asList(\"bar\", \"42/baz\"), \"id\", \"rest\");\n\n\t\ttest(\"/foo/bar/id\", \"/foo/bar/42\", Arrays.asList(), Arrays.asList());\n\t}", "title": "" }, { "docid": "c2363182516a4e3a1e87c47ef95b6828", "score": "0.45821947", "text": "java.lang.String getPattern3();", "title": "" }, { "docid": "c2363182516a4e3a1e87c47ef95b6828", "score": "0.45821947", "text": "java.lang.String getPattern3();", "title": "" }, { "docid": "24725bd72403aa6e691520ba4a4c5c56", "score": "0.45791534", "text": "public static void matches0(){\r\n System.out.println(\">>>>>>>>>>>>\");\r\n String class0=\"hatatatat\";\r\n String regex=\"(.*)ta(.*)\";\r\n boolean ret0=class0.matches(regex);\r\n assert (class0==\"hatatatat\");\r\n assert (regex==\"(.*)ta(.*)\");\r\n assert (ret0==true);\r\n System.out.println(ret0);\r\n }", "title": "" }, { "docid": "4db190476e61b76d16ab6bfd6e8dd323", "score": "0.4574862", "text": "public static void demo7() {\n\t\tString regex = \"\\\\w\";\n\t\tSystem.out.println(\"a\".matches(regex));\n\t\tSystem.out.println(\"z\".matches(regex));\n\t\tSystem.out.println(\"_\".matches(regex));\n\t\tSystem.out.println(\"%\".matches(regex));\n\t}", "title": "" }, { "docid": "aba45a15723410abb88d0ff38126eeba", "score": "0.45718953", "text": "@Test\n public void testParseRoute13() {\n RouteResult routeResult = null;\n try {\n routeResult = this.router.parse(\"/MockShell/testRoute02/testParameter01/testParameter03\");\n } catch (RouterException e) {\n Assert.fail();\n }\n Assert.assertEquals(\"route test with leading '/'\",\n \"/MockShell\",\n routeResult.getShell());\n Assert.assertEquals(\"route test with leading '/' and one parameter\",\n \"/MockShell/testRoute02/*/*\",\n routeResult.getRoute());\n Assert.assertEquals(\"route test with leading '/' and one parameter\",\n \"testParameter01\",\n routeResult.getParameterValues()\n .get(0));\n }", "title": "" }, { "docid": "cfd65bcba6e5675a16bdd459a0a8ea27", "score": "0.45710972", "text": "public static void matches1(){\r\n System.out.println(\">>>>>>>>>>>>\");\r\n String class0=\"hatatatat\";\r\n String regex=\"b\";\r\n boolean ret0=class0.matches(regex);\r\n assert (class0==\"hatatatat\");\r\n assert (regex==\"b\");\r\n assert (ret0==false);\r\n System.out.println(ret0);\r\n }", "title": "" }, { "docid": "ee7d0204031960cd47e8840454990d8d", "score": "0.45680553", "text": "@Test\n public void testParseRoute07() {\n RouteResult routeResult = null;\n try {\n routeResult = this.router.parse(\"MockShell/testRoute02/testParameter01/testParameter02\");\n } catch (RouterException e) {\n Assert.fail();\n }\n Assert.assertEquals(\"route test without leading '/'\",\n \"/MockShell\",\n routeResult.getShell());\n Assert.assertEquals(\"route test with leading '/' and two parameters\",\n \"/MockShell/testRoute02/*/*\",\n routeResult.getRoute());\n Assert.assertEquals(\"route test with leading '/' and two parameters\",\n \"testParameter01\",\n routeResult.getParameterValues()\n .get(0));\n Assert.assertEquals(\"route test with leading '/' and two parameters\",\n \"testParameter02\",\n routeResult.getParameterValues()\n .get(1));\n }", "title": "" }, { "docid": "5dd0bcb2d4c3fbc6c79eb7e472c21c23", "score": "0.4564429", "text": "abstract String toMatchString(final String pattern);", "title": "" }, { "docid": "2af73a10482c8c9615bb6b2e1b14d24d", "score": "0.45612934", "text": "@Test\n public void testParseRoute06() {\n RouteResult routeResult = null;\n try {\n routeResult = this.router.parse(\"MockShell/testRoute02/testParameter01\");\n } catch (RouterException e) {\n Assert.fail();\n }\n Assert.assertEquals(\"route test without leading '/'\",\n \"/MockShell\",\n routeResult.getShell());\n Assert.assertEquals(\"route test with leading '/' and one parameter\",\n \"/MockShell/testRoute02/*/*\",\n routeResult.getRoute());\n Assert.assertEquals(\"route test with leading '/' and one parameter\",\n \"testParameter01\",\n routeResult.getParameterValues()\n .get(0));\n }", "title": "" }, { "docid": "75531bbfd668d9a03959301e1d110cad", "score": "0.45378357", "text": "public static void main(String[] args) {\n\t\tRegularExpressionMatching result = new RegularExpressionMatching();\n\t\tSystem.out.println(result.regularExpressionMatching(\"aaa\", \"ab*.*c*a\"));\n\t}", "title": "" }, { "docid": "b9c67ee757407fa8a4a23e4f7bf31ac4", "score": "0.45361158", "text": "Pattern createPattern();", "title": "" }, { "docid": "c2c8832f5b5dd2cbd4e6a361dedf999d", "score": "0.45359915", "text": "@Test\n public void testParseRoute04() {\n RouteResult routeResult = null;\n try {\n routeResult = this.router.parse(\"/MockShell/testRoute02/testParameter01/testParameter02\");\n } catch (RouterException e) {\n Assert.fail();\n }\n Assert.assertEquals(\"route test with leading '/'\",\n \"/MockShell\",\n routeResult.getShell());\n Assert.assertEquals(\"route test with leading '/' and two parameter\",\n \"/MockShell/testRoute02/*/*\",\n routeResult.getRoute());\n Assert.assertEquals(\"route test with leading '/' and two parameters\",\n \"testParameter01\",\n routeResult.getParameterValues()\n .get(0));\n Assert.assertEquals(\"route test with leading '/' and two parameters\",\n \"testParameter02\",\n routeResult.getParameterValues()\n .get(1));\n }", "title": "" }, { "docid": "7bb1f90dcb5fe2e7841b581e7ab7e820", "score": "0.45116842", "text": "protected abstract Pattern getPattern();", "title": "" }, { "docid": "b67cd0d128d8b4539bc066a7979da613", "score": "0.4505786", "text": "boolean hasPattern5();", "title": "" }, { "docid": "b67cd0d128d8b4539bc066a7979da613", "score": "0.4505786", "text": "boolean hasPattern5();", "title": "" }, { "docid": "78cdc7676657ae5a05e1279aa12a0df6", "score": "0.44947323", "text": "public static void main(String[] args) {\n\t\tString s = \"abbabaaaaaaacaa\", p=\"a*.*b.a.*c*b*a*c*\";\n\n\n\n\t\tSystem.out.println(r.isMatch0(s, p));\n\t}", "title": "" }, { "docid": "b23b455db99189a1d9adf64911e542cc", "score": "0.44914025", "text": "public boolean matches(String url);", "title": "" }, { "docid": "0e4adf3cf4da5d8238727325fe51613e", "score": "0.44710875", "text": "private boolean isBRDate(String s) {\n Pattern pattern = Pattern.compile(\"([0-9][0-9)])/([0-9][0-9)]/[0-9][0-9)][0-9][0-9)])\");\n Matcher matcher = pattern.matcher(s);\n\n return matcher.matches();\n }", "title": "" }, { "docid": "4c8d8684655d7d1341dd9f198d37274b", "score": "0.44672936", "text": "@Test\n public void testParseRoute05() {\n RouteResult routeResult = null;\n try {\n routeResult = this.router.parse(\"/MockShell/testRoute02//testParameter02\");\n } catch (RouterException e) {\n Assert.fail();\n }\n Assert.assertEquals(\"route test with leading '/'\",\n \"/MockShell\",\n routeResult.getShell());\n Assert.assertEquals(\"route test with leading '/' and two parameters, first one empty\",\n \"/MockShell/testRoute02/*/*\",\n routeResult.getRoute());\n Assert.assertEquals(\"route test with leading '/' and two parameters, first one empty\",\n \"\",\n routeResult.getParameterValues()\n .get(0));\n Assert.assertEquals(\"route test with leading '/' and two parameters, first one empty\",\n \"testParameter02\",\n routeResult.getParameterValues()\n .get(1));\n }", "title": "" }, { "docid": "e4c957ddfe59cc06c6b2bcb1d08f9f9c", "score": "0.44672415", "text": "@Test\n public void testParseRoute08() {\n RouteResult routeResult = null;\n try {\n routeResult = this.router.parse(\"MockShell/testRoute02//testParameter02\");\n } catch (RouterException e) {\n Assert.fail();\n }\n Assert.assertEquals(\"route test without leading '/'\",\n \"/MockShell\",\n routeResult.getShell());\n Assert.assertEquals(\"route test without leading '/' and two parameters, first one empty\",\n \"/MockShell/testRoute02/*/*\",\n routeResult.getRoute());\n Assert.assertEquals(\"route test without leading '/' and two parameters, first one empty\",\n \"\",\n routeResult.getParameterValues()\n .get(0));\n Assert.assertEquals(\"route test without leading '/' and two parameters, first one empty\",\n \"testParameter02\",\n routeResult.getParameterValues()\n .get(1));\n }", "title": "" }, { "docid": "dac2231bfe31d3f0b29544a1bf98a052", "score": "0.4457666", "text": "public static void main(String[] args) {\n\t\tString data = \"cdx\";\n\t\t\n//\t\tstep1 : Defined a pattern\n\t\tPattern p = Pattern.compile(\"..x\");\n\t\t\n//\t\tstep2 : Add Matcher\n\t\tMatcher mat = p.matcher(data);\n\t\t\n//\t\tstep3 : Compare values\n\t\tboolean res = mat.matches();\n\t\t\n\t\tSystem.out.println(\"String matches 1 \" + res);\n\t}", "title": "" }, { "docid": "20da6293d4c5ad2a35953f17d053c665", "score": "0.44448176", "text": "public static void main(String[] args) {\n String str = \"11111111r2222222\";\n Scanner scanner = new Scanner(str);\n String java = scanner.findInLine(\"[0-9]*\");\n\n System.out.println(java);\n\n java = scanner.findInLine(\"[0-9]*\");\n\n System.out.println(java);\n\n\n }", "title": "" }, { "docid": "f69f84910162872b15500d36c032a067", "score": "0.44384584", "text": "public String match() {\n return matcher.group();\n }", "title": "" }, { "docid": "0fc0119d876f64485e1711d6387a5db0", "score": "0.44363517", "text": "public void extractUrls(String value)\r\n {\n String urlPattern = \"https://docs.google.com/[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]\";;\r\n Pattern p = Pattern.compile(urlPattern,Pattern.CASE_INSENSITIVE);\r\n Matcher m = p.matcher(value);\r\n while (m.find()) {\r\n String url_temp=value.substring(m.start(0),m.end(0));\r\n String start_id=counter+\"start\"+m.start(0);\r\n String end_id=counter+\"end\"+m.end(0);\r\n\r\n String val=url_temp+ \" \"+m.start(0)+\" \"+m.end(0);\r\n\r\n\r\n\r\n if(val.contains(\"srcid\"))\r\n {\r\n total++;\r\n int index=val.indexOf(\"srcid\");\r\n sid= val.substring(index+5+1, index+13+5+1);\r\n srcID.add(sid);\r\n //System.out.println(sid);\r\n startVal.add(start_id);\r\n endVal.add(end_id);\r\n counter++;\r\n\r\n\r\n }\r\n\r\n if(val.contains(\"docid\"))\r\n\r\n { int index=val.indexOf(\"docid\");\r\n\r\n\r\n did= val.substring(index+6, index+6+32);\r\n docID.add(did);\r\n }\r\n else\r\n {\r\n //System.out.println(\"Doc ID :\"+did);\r\n }\r\n\r\n }\r\n\r\n //System.out.println(url_temp+ \" \"+m.start(0)+\" \"+m.end(0));\r\n System.out.println(\"Total documents parsed :\"+total+\"\\n\");\r\n\r\n }", "title": "" }, { "docid": "6b5c38811114e5ef4fe12e551d4cf42e", "score": "0.4426284", "text": "boolean hasPattern2();", "title": "" }, { "docid": "6b5c38811114e5ef4fe12e551d4cf42e", "score": "0.4426284", "text": "boolean hasPattern2();", "title": "" }, { "docid": "77771cf5dc8ea1f27e03a643bc506999", "score": "0.44234535", "text": "public List search(String sp) {\n return search(Pattern.compile(sp));\n}", "title": "" }, { "docid": "5c394ba5ca55072a1f0ba0f90916292b", "score": "0.44219282", "text": "public String getPattern()\n/* */ {\n/* 64 */ return this.pattern;\n/* */ }", "title": "" }, { "docid": "71ed78522022dd6b04c99f0655afcac9", "score": "0.44147748", "text": "public static void main(String[] args) {\n Pattern p1=Pattern.compile(\"Set(value)?\");//backrefences\n Matcher m1=p1.matcher(\"set or SetValue Setvalue\");\n while (m1.find()) System.out.println(\"m1 \"+m1.start()+\" \"+m1.group()+\" \");\n System.out.println(\"\");\n\n\n Pattern p2=Pattern.compile(\"EditPad (Lite|Pro)\");\n Matcher m2=p2.matcher(\"EditPad Lite Version\");\n while (m2.find()) System.out.println(\"m2 \"+m2.start()+\" \"+m2.group()+\" \");\n System.out.println(\" \");\n\n\n\n System.out.println(\"EditPad Lite\".replaceAll(\"EditPad (Lite|Pro)\",\"$1 version\"));\n System.out.println(\"EditPad Lite\".replaceAll(\"EditPad (Lite|Pro)\",\"$0 version\"));\n System.out.println(\"EditPad Lite\".replaceAll(\"EditPad (Lite|Pro)\",\"$0 version\"));\n\n Pattern p3=Pattern.compile(\"<([A-Z][A-Z0-9]*)[^>]*>.*?</\\\\1>\");// \\\\1 - переиспользуем регулярку. т.е. нашли тэг потом ищем закрывающий тэг. равносильно для данного примера будет запись </EM>\n Matcher m3=p3.matcher(\"This is a <EM>test1</EM> task1_Two_Sum\");\n while (m3.find()) System.out.println(\"m3 \"+m3.start()+\" \"+m3.group()+\" \");\n System.out.println(\"\");\n\n\n Pattern p4=Pattern.compile(\"([a-c])x\\\\1x\");//[a-c]x[a-c]x[a-c]\n Matcher m4=p4.matcher(\"axaxaxaxa\");\n while (m4.find()) System.out.println(\"m4 \"+m4.start()+\" \"+m4.group()+\" \");\n System.out.println(\"\");\n\n Pattern p5=Pattern.compile(\"([a-c])\\\\1\");//error\n Matcher m5=p5.matcher(\"axaxa\");\n while (m5.find()) System.out.println(\"m5 \"+m5.start()+\" \"+m5.group()+\" \");\n System.out.println(\"\");\n Pattern p6=Pattern.compile(\"<([A-Z][A-Z0-9]*)[^>]*>.*?</\\\\1>\");// \\\\1 - переиспользуем регулярку. т.е. нашли тэг потом ищем закрывающий тэг. равносильно для данного примера будет запись </EM>\n Matcher m6=p6.matcher(\"Testing <B><I>bold italic</I></B> text\");\n while (m6.find()) System.out.println(\"m6 \"+m6.start()+\" \"+m6.group()+\" \");\n System.out.println(\"\");\n\n// Pattern p7=Pattern.compile(\"([abc]+)\");\n Pattern p7=Pattern.compile(\"([abc])+\");\n Matcher m7=p7.matcher(\"cab\");\n while (m7.find()) System.out.println(\"m7 \"+m7.start()+\" \"+m7.group()+\" \");\n System.out.println(\"\");\n\n\n Pattern p8=Pattern.compile(\"([abc]+)=\\\\1\");\n Matcher m8=p8.matcher(\"cab=cab\");\n while (m8.find()) System.out.print(\"m8 \"+m8.start()+\" \"+m8.group()+\" \");\n System.out.println(\" \");\n System.out.println(\"the the\".replaceAll(\"\\\\b(\\\\w+)\\\\s+\\\\1\\\\b\",\"$1\"));\n }", "title": "" }, { "docid": "78db6397c286512b3755ceb33a8b8857", "score": "0.44109866", "text": "java.lang.String getPattern4();", "title": "" }, { "docid": "78db6397c286512b3755ceb33a8b8857", "score": "0.44109866", "text": "java.lang.String getPattern4();", "title": "" }, { "docid": "0a921c49ffff8f1d61b4fe0c9c0555d0", "score": "0.4389762", "text": "public static void main(String[] args) {\n\t\tString regex = \"[abc]{5,15}\";\t\t\t//between 5, 15 times\r\n\t\tSystem.out.println(\"\".matches(regex));\r\n\t\tSystem.out.println(\"aaababababa\".matches(regex));\r\n\t\tSystem.out.println(\"babababbababbabbbaaba\".matches(regex));\r\n\t\tSystem.out.println(\"ab\".matches(regex));\r\n\t}", "title": "" }, { "docid": "30cf7c2726b883466d37ed06c28ea44c", "score": "0.43844163", "text": "static String[] split(Regex regex, String input, int count, int startat) {\n Match match;\n String[] result;\n\n if (count < 0) {\n throw new IllegalArgumentException(\"count\" + R.CountTooSmall);\n }\n if (startat < 0 || startat > input.length()) {\n throw new IllegalArgumentException(\"startat\" + R.BeginIndexNotNegative);\n }\n\n if (count == 1) {\n result = new String[1];\n result[0] = input;\n return result;\n }\n\n count -= 1;\n\n match = regex.match(input, startat);\n\n if (!match.success()) {\n result = new String[1];\n result[0] = input;\n return result;\n } else {\n List<String> al = new ArrayList<String>();\n\n if (!regex.rightToLeft()) {\n int prevat = 0;\n\n for (; ;) {\n // TODO: input.substring(prevat, match.index() - prevat)\n al.add(input.substring(prevat, match.index()));\n\n prevat = match.index() + match.length();\n\n // add all matched capture groups to the list.\n for (int i = 1; i < match.groups().count(); i++) {\n if (match.isMatched(i))\n al.add(match.groups().get(i).value());\n }\n\n if (--count == 0)\n break;\n\n match = match.nextMatch();\n\n if (!match.success())\n break;\n }\n // TODO: input.substring(prevat, input.length() - prevat)\n al.add(input.substring(prevat));\n } else {\n int prevat = input.length();\n\n for (; ;) {\n // TODO: input.substring(match.index() + match.length(), prevat - match.index() - match.length())\n al.add(input.substring(match.index() + match.length(), prevat));\n\n prevat = match.index();\n\n // add all matched capture groups to the list.\n for (int i = 1; i < match.groups().count(); i++) {\n if (match.isMatched(i))\n al.add(match.groups().get(i).toString());\n }\n\n if (--count == 0)\n break;\n\n match = match.nextMatch();\n\n if (!match.success())\n break;\n }\n // TODO: input.substring(0, prevat)\n al.add(input.substring(0, prevat));\n\n // TODO: al.Reverse(0, al.Count);\n Collections.reverse(al);\n }\n\n return al.toArray(new String[0]);\n }\n }", "title": "" }, { "docid": "a8e74683e6cd3a0285593895107c5bc6", "score": "0.4380722", "text": "boolean matchFormat(String bsDate) {\n if (format.equals(DEFAULT_FORMAT)) {\n logger.debug(\"date format want to test is {} real text is {}\", format, bsDate);\n Pattern p = Pattern.compile(\"\\\\d{2}\\\\d{2}\\\\d{4}\");\n return p.matcher(bsDate).matches();\n } else {\n logger.debug(\"date format is {}\", format);\n return Pattern.matches(\"\\\\d{2}-\\\\d{2}-\\\\d{4}\", bsDate);\n }\n }", "title": "" }, { "docid": "0e9c7bec57ed24d5bac1431a1f4e0f8e", "score": "0.43736222", "text": "private static UriMatcher buildUriMatcher() {\n\n UriMatcher matcher = new UriMatcher(UriMatcher.NO_MATCH);\n final String authority = NewsContract.CONTENT_AUTHORITY;\n\n matcher.addURI(authority, NewsContract.PATH_ARTICLE, ARTICLE);\n matcher.addURI(authority, NewsContract.PATH_CATEGORY, CATEGORY);\n matcher.addURI(authority, NewsContract.PATH_CATEGORY + \"/*/*\", ARTICLE_BY_CATEGORY);\n matcher.addURI(authority, NewsContract.PATH_CATEGORY + \"/*/*/*\", ARTICLE_BY_CATEGORY_WITH_SEARCH);\n\n return matcher;\n }", "title": "" }, { "docid": "9d80613393d19e68c407bbbafe4c923b", "score": "0.43716788", "text": "Matcher getMatcher(CharSequence charSequence) {\n return pattern != null ? pattern.matcher(charSequence) : null;\n }", "title": "" }, { "docid": "fd5afe4485ef2aa3e6291c2b2b5c7ce3", "score": "0.4368613", "text": "public static void main(String[] args){\n\n System.out.println(isMatch(\"aa\", \"a\"));\n System.out.println(isMatch(\"ab\", \".*\"));\n System.out.println(isMatch(\"aa\", \"a*\"));\n System.out.println(isMatch(\"a\", \"ab*\"));\n System.out.println(isMatch(\"aab\", \"c*a*b\"));\n System.out.println(isMatch(\"bbbba\", \".*a*a\"));\n System.out.println(isMatch(\"mississippi\", \"mis*is*p*.\"));\n\n }", "title": "" }, { "docid": "94d4e15ac581163588a8d869a592e97e", "score": "0.4366949", "text": "boolean hasPattern1();", "title": "" }, { "docid": "94d4e15ac581163588a8d869a592e97e", "score": "0.4366949", "text": "boolean hasPattern1();", "title": "" }, { "docid": "bde08725b7de8755686ef68a02ac5177", "score": "0.43615666", "text": "public String pattern(){\n return currentPattern ; \n }", "title": "" }, { "docid": "304bbe30c2d57b5821b83fcf87f77f4f", "score": "0.4355281", "text": "public static void main(String[] args) {\n \n\t String s=\"aaaxbbbbyyhwawiwjjjwwm\";\n\t int conta=0;\n\t String resultado=\"\";\n\t for(int i=0;i<s.length();i++){\n\t\t \n\t\t if ((s.charAt(i) >= 'a') && (s.charAt(i) <= 'm')) conta++;\n\t\t if ((s.charAt(i) >= 'A') && (s.charAt(i) <= 'M')) conta++;\n\t\t \n\t }\n\t conta=s.length()-conta;\n\t resultado+=conta;\n\t resultado+=\"/\";\n\t resultado+=s.length();\n\t \t System.out.println(resultado);\n }", "title": "" }, { "docid": "9bd7a9f262bb72b6bb221bb43ae20d5a", "score": "0.43528783", "text": "public static void main(String argv[])\n\t{\n\t\tRegexp r = new Regexp();\n\n\t\tString pattern = Console.readString(\"Enter pattern:\");\n\t\tString s = Console.readString(\"Enter String:\");\n\n\t\ttry {\n\t\t\tboolean rv = r.match(pattern,s);\n\t\t\tSystem.out.println(\"rv = \" + rv);\n\t\t} catch(RegexpException re) {\n\t\t\tre.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "e7db7c9b18c19970c7b3ba4f1ff76d9d", "score": "0.43463013", "text": "boolean hasPattern4();", "title": "" }, { "docid": "e7db7c9b18c19970c7b3ba4f1ff76d9d", "score": "0.43463013", "text": "boolean hasPattern4();", "title": "" }, { "docid": "2120b6f2960588756899196541158edc", "score": "0.43357614", "text": "@Test\n public void testParseRoute03() {\n RouteResult routeResult = null;\n try {\n routeResult = this.router.parse(\"/MockShell/testRoute02/testParameter01\");\n } catch (RouterException e) {\n Assert.fail();\n }\n Assert.assertEquals(\"route test with leading '/'\",\n \"/MockShell\",\n routeResult.getShell());\n Assert.assertEquals(\"route test with leading '/' and one parameter\",\n \"/MockShell/testRoute02/*/*\",\n routeResult.getRoute());\n Assert.assertEquals(\"route test with leading '/' and one parameter\",\n \"testParameter01\",\n routeResult.getParameterValues()\n .get(0));\n }", "title": "" }, { "docid": "8eea7cc0c33295966ce37d097618df73", "score": "0.43239054", "text": "default boolean matches(String path) {\n return getPattern().matches(path);\n }", "title": "" }, { "docid": "1ad73938cafd37b3de1aca0aca19668b", "score": "0.43204385", "text": "public static void main(String[] args) {\n String movie = \"Lord Of The Ring\";\n //i want to get the word Of from this movie\n String wordOf = movie.substring(5,7);\n System.out.println( \"wordOf = \" + wordOf);\n \n \n String wordThe = movie.substring(8,11);\n System.out.println(\"wordThe = \" + wordThe);\n\n int startingPoint = movie.indexOf(\" \") + 1 ;\n int endingPoint = movie.length() -1 ;\n System.out.println(\"second word till last: \" + movie.substring( startingPoint, endingPoint));\n\n String secondWordTillLast = movie.substring(5,15);\n System.out.println(\"secondWordTillLast = \" + secondWordTillLast);\n String wordLordOf = movie.substring( 0,7);\n System.out.println(\"wordLordOf = \" + wordLordOf);\n\n String wordRing = movie.substring( 12 );\n String wordOfThe = movie.substring( 4,12 );\n String wordLord = movie.substring( 0,4 );\n System.out.println(\"wordRing = \" + wordOfThe + \"Java \" + wordLord );\n\n\n\n }", "title": "" }, { "docid": "51aa42fae96e9d9be462244a7fff4b69", "score": "0.43165094", "text": "boolean hasPattern();", "title": "" }, { "docid": "51aa42fae96e9d9be462244a7fff4b69", "score": "0.43165094", "text": "boolean hasPattern();", "title": "" }, { "docid": "51aa42fae96e9d9be462244a7fff4b69", "score": "0.43165094", "text": "boolean hasPattern();", "title": "" }, { "docid": "94714d5d3ef2af4c93dc3888bad5115c", "score": "0.43040618", "text": "public static void main(String[] args) {\n System.out.println(String.format(\"%s.endsWith(%s) --> %b\", \"India\", \"dia\", \"India\".endsWith(\"dia\")));\n System.out.println(String.format(\"%s.startsWith(%s) --> %b\", \"India\", \"In\", \"India\".startsWith(\"In\")));\n System.out.println(String.format(\"%s.startsWith(%s, %d) --> %b\", \"India\", \"di\", 2, \"India\".startsWith(\"di\", 2)));\n\n /**\n * ~~ Lexical comparison ~~\n * compareTo returns the difference in the integer value of the first non-matching character when this string\n * is compared with another string.\n * a. Less than 0 ==> this will come before the other string\n * b. 0 ==> both are equal\n * c. Greater than 0 ==> this will come after the other string\n */\n System.out.println(String.format(\"%s.compareTo(%s) --> %d\", \"money\", \"monitor\", \"money\".compareTo(\"monitor\")));\n System.out.println(String.format(\"%s.compareToIgnoreCase(%s) --> %d\", \"Monitor\", \"money\",\n \"Monitor\".compareToIgnoreCase(\"money\")));\n System.out.println(String.format(\"%s.equals(%s) --> %b\", \"Money\", \"money\", \"Money\".equals(\"money\")));\n System.out.println(String.format(\"%s.equalsIgnoreCase(%s) --> %b\", \"Money\", \"money\",\n \"Money\".equalsIgnoreCase(\"money\")));\n\n /**\n * ~~ Regional matches ~~\n */\n System.out.println(String.format(\"%s.regionMatches(%d,%s,%d,%d) --> %b\", \"monitor\", 0, \"money\", 0, 3,\n \"monitor\".regionMatches(0, \"money\", 0, 3)));\n System.out.println(String.format(\"%s.regionMatches(%b,%d,%s,%d,%d) --> %b\", \"monitor\", true, 0, \"Money\", 0, 3,\n \"monitor\".regionMatches(true, 0, \"Money\", 0, 3)));\n\n /**\n * ~~ Regex matches ~~\n */\n String s = \"India is a diverse country\";\n String regex = \"([\\\\w]+\\\\s){4}[\\\\w]+\";\n System.out.println(String.format(\"%s.matches(%s) --> %b\", s, regex, s.matches(regex)));\n\n }", "title": "" }, { "docid": "5e96a44059dee6989631ae0c07d0c8bc", "score": "0.43033487", "text": "public void match();", "title": "" }, { "docid": "18d1603c0dda99759092efffa3b91c4a", "score": "0.42981744", "text": "@Test\n public void testParseRoute02() {\n RouteResult routeResult = null;\n try {\n routeResult = this.router.parse(\"MockShell/testRoute01\");\n } catch (RouterException e) {\n Assert.fail();\n }\n Assert.assertEquals(\"route test without leading '/'\",\n \"/MockShell\",\n routeResult.getShell());\n Assert.assertEquals(\"route test with leading '/' and no parameters\",\n \"/MockShell/testRoute01\",\n routeResult.getRoute());\n }", "title": "" }, { "docid": "38e859632d90a2bb4fd7acfb7856f5fb", "score": "0.42980018", "text": "public static boolean testPattern(String s) {\n\t\tPattern pattern = Pattern.compile(\"\\\\d{3}\");\n\t\tMatcher matcher = pattern.matcher(s);\n\t\tif (matcher.find()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "cc3547df2bf015b6bfb9a790c4df363e", "score": "0.4292999", "text": "ReferenceList getReferenceListRegularExpression( IEntry entry, Plugin plugin );", "title": "" }, { "docid": "27a1007297f7dc9efef810808e801060", "score": "0.42872086", "text": "@Test\n public void testMinMatchZeroOrMoreRegex(){\n String toMatch = \".2, 1.2, 199.0\";\n Regex regex = new Regex(expr -> expr.matchRegex().anyDigit().minMatchZeroOrMore().otherChar().attrOneChar(\".\").anyDigit());\n List<String> result = regex.match(toMatch);\n\n Assert.assertEquals(3, result.size());\n Assert.assertEquals(\".2\", result.get(0));\n Assert.assertEquals(\"1.2\", result.get(1));\n Assert.assertEquals(\"199.0\", result.get(2));\n }", "title": "" }, { "docid": "4f3043ad41edd8a865d6de2329731b00", "score": "0.42843008", "text": "private String getPattern(String branches) {\n StringBuilder quotedBranches = new StringBuilder();\n for (String wildcard : branches.split(\" \")) {\n StringBuilder quotedBranch = new StringBuilder();\n for (String branch : wildcard.split(\"(?=[*])|(?<=[*])\")) {\n if (branch.equals(\"*\")) {\n quotedBranch.append(\".*\");\n } else if (!branch.isEmpty()) {\n quotedBranch.append(Pattern.quote(branch));\n }\n }\n if (quotedBranches.length() > 0) {\n quotedBranches.append(\"|\");\n }\n quotedBranches.append(quotedBranch);\n }\n return quotedBranches.toString();\n }", "title": "" }, { "docid": "888f3f3ca2f0cfdd6edda0d31901600d", "score": "0.42814943", "text": "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(Pattern.matches(\"[cd[a]+]?\", \"acad\"));\n\t\tSystem.out.println(Pattern.matches(\"[cada]+\", \"adaC\"));\n\t\t\n//\t\tSystem.out.println(Pattern.matches(\".s\", \"as\"));//true (2nd char is s) \n//\t\tSystem.out.println(Pattern.matches(\".s\", \"mk\"));//false (2nd char is not s) \n//\t\tSystem.out.println(Pattern.matches(\".s.\", \"mst\"));//false (has more than 2 char) \n//\t\tSystem.out.println(Pattern.matches(\".s\", \"amms\"));//false (has more than 2 char) \n//\t\tSystem.out.println(Pattern.matches(\"..s\", \"mas\"));//true (3rd char is s) \n\t\t\n//\t\tSystem.out.println(Pattern.matches(\"[amn]\", \"9a\"));//false (not a or m or n) \n//\t\tSystem.out.println(Pattern.matches(\"[amn]\", \"a\"));//true (among a or m or n) \n//\t\tSystem.out.println(Pattern.matches(\"[amn]\", \"ammmna\"));//false (m and a comes more than once) \n\t\t\n\t\t\n\t\tObject o=new Object();\n\t\t\n\t\tList<Object> l=new ArrayList<Object>();\n\t\tfor(int i=0;i<1000;i++){\n\t\t\tl.add(o);\n\t\t}\n\t}", "title": "" }, { "docid": "9898cba29a5ff822d2432f64d6280b21", "score": "0.42793822", "text": "private static String getRegExpResult (String regexp, String input){\n\t\tMatcher matcher;\n\t\tmatcher = Pattern.compile( regexp ).matcher(input);\n\t\tmatcher.find();\n\t\treturn matcher.group(1);\n\t}", "title": "" }, { "docid": "1ea089f651a2b78a84c7a64fb90111a7", "score": "0.42705926", "text": "public static void main(String[] args) {\n\r\n\t\tString input = \"ttest@gmail.com\";\r\n\t\tString regex = \"[A-Za-z0-9._]+@[a-z]+.[a-z.]{2,}\";\r\n\t\t\t\r\n\t\tboolean matches = Pattern.matches(regex, input);\r\n\t\t//or\r\n\t\t\r\n\t\tPattern compile = Pattern.compile(regex);\r\n\t\tMatcher match = compile.matcher(input);\r\n\t\tboolean matches2 = match.matches();\r\n\t\t\r\n\t\tSystem.out.println(matches2);\r\n\t}", "title": "" }, { "docid": "e0ce764e7e284384825b32536885eebf", "score": "0.4269774", "text": "public static ArrayList<String> extractThreePublication (String HTML){\n ArrayList<String> lstTitle = new ArrayList<String>();\n String ThreePublication = \"class=\\\"cit-dark-large-link\\\">(.*?)</a>\";\n Pattern patternObject = Pattern.compile(ThreePublication);\n Matcher matcherObject = patternObject.matcher(HTML);\n // find the first 3 publication\n int count = 0;\n while (count <3 ) {\n matcherObject.find();\n lstTitle.add(matcherObject.group(1));\n count +=1;\n }\n return lstTitle;\n }", "title": "" }, { "docid": "0240bc4434aea51413dfdd72ec32550c", "score": "0.4268367", "text": "public static void main(String[] args) {\n\t\tPattern p = Pattern.compile(\"[a-z]+\");\n\t\tMatcher m = p.matcher(\"123bbc4343pqr3433\");\n\t\twhile (m.find()) {\n\t\t\tSystem.out.println(\"start(): \" + m.start());\n\t\t\tSystem.out.println(\"ends(): \" + m.end());\n\t\t\tSystem.out.println(\"group(): \" + m.group());\n\t\t}\n\n\t\t// Pattern replacement\n\t\tp = Pattern.compile(\"-+\");\n\t\tm = p.matcher(\"----12345----\");\n\t\tString output = m.replaceAll(\"*\");\n\t\tSystem.out.println(output);\n\t}", "title": "" }, { "docid": "b6f208312d864fbb68fded7d168e98bb", "score": "0.42668596", "text": "public Regex(String pattern) {\r\n String ssubs[];\r\n pattern = fixPattern(pattern);\r\n ssubs = pattern.split(\"::\");\r\n for (int i = ssubs.length - 1; i >= 0; i--) {\r\n int p;\r\n if (i > 0) {\r\n for (p = 0; Character.isLetterOrDigit(ssubs[i].charAt(p)); p++);\r\n } else {\r\n p = 0;\r\n } // else\r\n subs.put(ssubs[i].substring(0, p), parse(ssubs[i].substring(p).replaceAll(\"\\\\s+\", \"\")));\r\n } // for\r\n root = subs.get(\"\");\r\n }", "title": "" }, { "docid": "c2e4e028c305cc7eecae314afd9f4937", "score": "0.42659143", "text": "static UriMatcher buildUriMatcher()\n {\n // The code passed to constructor is code to match for root\n // In this case we do not want for root to match any data\n // so NO_MATCH is passed\n final UriMatcher uriMatcher = new UriMatcher(UriMatcher.NO_MATCH);\n final String authority = TechyGeekContract.CONTENT_AUTHORITY;\n\n // This is matched when multiple posts are queried in saved activity\n uriMatcher.addURI(authority, TechyGeekContract.PATH_SAVED_POSTS, POSTS);\n\n // This matched when single post is queried inside detail activity\n uriMatcher.addURI(authority, TechyGeekContract.PATH_SAVED_POSTS + \"/#\", POST_WITH_ID);\n\n return uriMatcher;\n }", "title": "" } ]
80facb06ddcff8d02019439b7d20f495
Returns a new object of class 'Traced Parameter Set Configuration'.
[ { "docid": "26d4b66ba0a24b36b44d94b0b5100c46", "score": "0.86335635", "text": "TracedParameterSetConfiguration createTracedParameterSetConfiguration();", "title": "" } ]
[ { "docid": "2da8978b3e05a4495e1cca89a7fda25b", "score": "0.7825864", "text": "TracedParameterConfiguration createTracedParameterConfiguration();", "title": "" }, { "docid": "0854923eda1fe521cf9102191e7af625", "score": "0.71099925", "text": "TracedGeneralizationSetConfiguration createTracedGeneralizationSetConfiguration();", "title": "" }, { "docid": "a0e9836d43be34084f204d98fc1c3069", "score": "0.7103322", "text": "TracedPseudostateConfiguration createTracedPseudostateConfiguration();", "title": "" }, { "docid": "02325472b6aa0a585efc096a35c31d06", "score": "0.70994943", "text": "TracedClassConfiguration createTracedClassConfiguration();", "title": "" }, { "docid": "f25768ccf114cb2d6e9728e78f1550f8", "score": "0.7054718", "text": "TracedTemplateParameterConfiguration createTracedTemplateParameterConfiguration();", "title": "" }, { "docid": "327290b82961e9b17e903294a0dff26f", "score": "0.68631774", "text": "TracedAbstractionConfiguration createTracedAbstractionConfiguration();", "title": "" }, { "docid": "5c13da34653587c36dd6815f52cedbea", "score": "0.6827381", "text": "TracedParameterableElementConfiguration createTracedParameterableElementConfiguration();", "title": "" }, { "docid": "2176aa9175ddf92e66fb2a92cf4f4dab", "score": "0.6796266", "text": "TracedActivityParameterNodeConfiguration createTracedActivityParameterNodeConfiguration();", "title": "" }, { "docid": "6b7dbe09788c8ce439d6d358085206b9", "score": "0.6778512", "text": "TracedInstanceValueConfiguration createTracedInstanceValueConfiguration();", "title": "" }, { "docid": "0621d4e1338641a60509c0f8374bacc4", "score": "0.6761573", "text": "TracedLifelineConfiguration createTracedLifelineConfiguration();", "title": "" }, { "docid": "301fdb1dfb15a07d23a10f75b7c3c081", "score": "0.67463213", "text": "TracedModelConfiguration createTracedModelConfiguration();", "title": "" }, { "docid": "c75d4d7be80b006f80daf994aedf9ef0", "score": "0.6746052", "text": "TracedClassifierTemplateParameterConfiguration createTracedClassifierTemplateParameterConfiguration();", "title": "" }, { "docid": "83cb9661c6ebe382bfb4c9a4774955cb", "score": "0.672043", "text": "TracedInstanceSpecificationConfiguration createTracedInstanceSpecificationConfiguration();", "title": "" }, { "docid": "3b445ae1dd7a9091a8e62e441c165cdd", "score": "0.66890156", "text": "TracedTemplateParameterSubstitutionConfiguration createTracedTemplateParameterSubstitutionConfiguration();", "title": "" }, { "docid": "1dcdf9f1bb3934a5bdd24e31611e34b7", "score": "0.66816884", "text": "TracedUsageConfiguration createTracedUsageConfiguration();", "title": "" }, { "docid": "6747aec63fd653c28d26df796f900d37", "score": "0.6655951", "text": "TracedUseCaseConfiguration createTracedUseCaseConfiguration();", "title": "" }, { "docid": "b7be548e807a0143cc5f2efaf12e8ef2", "score": "0.66447103", "text": "TracedRealizationConfiguration createTracedRealizationConfiguration();", "title": "" }, { "docid": "360e7a7113fedfad5079b99992b3e599", "score": "0.6637826", "text": "TracedControlNodeConfiguration createTracedControlNodeConfiguration();", "title": "" }, { "docid": "22c3bdafb087e28e025abd4799dcaa4d", "score": "0.6589717", "text": "TracedManifestationConfiguration createTracedManifestationConfiguration();", "title": "" }, { "docid": "8a2f9c394bbef91a0dff374c5f49954d", "score": "0.6585621", "text": "TracedExtendConfiguration createTracedExtendConfiguration();", "title": "" }, { "docid": "40a431ad0759b0a9f116c872ddcd608a", "score": "0.65630627", "text": "TracedConnectorConfiguration createTracedConnectorConfiguration();", "title": "" }, { "docid": "c241327b9900ffdfe9c25a6c4b9b3515", "score": "0.6560403", "text": "TracedOperationTemplateParameterConfiguration createTracedOperationTemplateParameterConfiguration();", "title": "" }, { "docid": "02afe34b588d1f2b9801fc0b6527b60a", "score": "0.6547895", "text": "TracedCollaborationUseConfiguration createTracedCollaborationUseConfiguration();", "title": "" }, { "docid": "c46133e871b447f540279f0f994378c3", "score": "0.6541951", "text": "TracedPropertyConfiguration createTracedPropertyConfiguration();", "title": "" }, { "docid": "877d19574d9f7e5ea431874e6c472888", "score": "0.6519716", "text": "TracedExecutionSpecificationConfiguration createTracedExecutionSpecificationConfiguration();", "title": "" }, { "docid": "8ba33f39cc7ed85068196f12bb5d59fd", "score": "0.6512033", "text": "TracedComponentConfiguration createTracedComponentConfiguration();", "title": "" }, { "docid": "9b115a938ed75e8c59a48270b24f9820", "score": "0.64966655", "text": "TracedDataTypeConfiguration createTracedDataTypeConfiguration();", "title": "" }, { "docid": "7d4d46eff65c5b362057cb02ccf7d7ae", "score": "0.64720964", "text": "TracedTypeConfiguration createTracedTypeConfiguration();", "title": "" }, { "docid": "77ab408bff40ec8c603b064bd1d3da1d", "score": "0.6468533", "text": "TracedGeneralizationConfiguration createTracedGeneralizationConfiguration();", "title": "" }, { "docid": "130a2f42e92f28c1ac6aa0c36c04f1dc", "score": "0.64649546", "text": "TracedVariableConfiguration createTracedVariableConfiguration();", "title": "" }, { "docid": "feaf645ba507f279fbafb1e618e85da2", "score": "0.6464322", "text": "TracedNodeConfiguration createTracedNodeConfiguration();", "title": "" }, { "docid": "6ea3085abd899a9b5340e91ab4250690", "score": "0.64597285", "text": "TracedObservationConfiguration createTracedObservationConfiguration();", "title": "" }, { "docid": "46dd3e226989554e5f1812a095910285", "score": "0.64571095", "text": "TracedSubstitutionConfiguration createTracedSubstitutionConfiguration();", "title": "" }, { "docid": "dde54d2e95402ccbe7b1019b02e9d530", "score": "0.645587", "text": "TracedElementConfiguration createTracedElementConfiguration();", "title": "" }, { "docid": "5643c3fefed56868215cd14ffbe6fec1", "score": "0.64366764", "text": "TracedObjectNodeConfiguration createTracedObjectNodeConfiguration();", "title": "" }, { "docid": "c42fa2ed98847cc67492f5c6051cec53", "score": "0.6428898", "text": "TracedSequenceNodeConfiguration createTracedSequenceNodeConfiguration();", "title": "" }, { "docid": "fa51234f1c7173ad5eb22e853cd97c59", "score": "0.6428822", "text": "TracedSlotConfiguration createTracedSlotConfiguration();", "title": "" }, { "docid": "3a837c0944674d65396dc1683b0d9409", "score": "0.6415146", "text": "TracedReceptionConfiguration createTracedReceptionConfiguration();", "title": "" }, { "docid": "b4138cc02bd55e6d5e8d9398d1416956", "score": "0.64087284", "text": "TracedExpressionConfiguration createTracedExpressionConfiguration();", "title": "" }, { "docid": "223506ba8a1eab5035d45945391a28e8", "score": "0.63932645", "text": "TracedCollaborationConfiguration createTracedCollaborationConfiguration();", "title": "" }, { "docid": "4d37a334033e19cb99e953e7b1640d53", "score": "0.6386447", "text": "TracedOperationConfiguration createTracedOperationConfiguration();", "title": "" }, { "docid": "3196bf59df0affa36575fe62dcf6e40d", "score": "0.6368137", "text": "TracedInformationItemConfiguration createTracedInformationItemConfiguration();", "title": "" }, { "docid": "3cf8badc0dc50e042e10b502d12f7ade", "score": "0.6353468", "text": "TracedObjectFlowConfiguration createTracedObjectFlowConfiguration();", "title": "" }, { "docid": "bcc6073df02984b2b9997c75ef934442", "score": "0.6343371", "text": "TracedFeatureConfiguration createTracedFeatureConfiguration();", "title": "" }, { "docid": "43437e939fd64b5acb255d2237a39bf6", "score": "0.6339804", "text": "TracedConnectableElementTemplateParameterConfiguration createTracedConnectableElementTemplateParameterConfiguration();", "title": "" }, { "docid": "b348b844c6f1675adbf3054f0fc45d7a", "score": "0.6336606", "text": "TracedRedefinableElementConfiguration createTracedRedefinableElementConfiguration();", "title": "" }, { "docid": "7ae46cf569a8db45035bd343555f5e47", "score": "0.63322735", "text": "TracedInteractionConfiguration createTracedInteractionConfiguration();", "title": "" }, { "docid": "9d9a2304f5881f6f3bb3ff160bc46550", "score": "0.6329587", "text": "TracedPackageConfiguration createTracedPackageConfiguration();", "title": "" }, { "docid": "487b38950d91b776f9438a9932d880ff", "score": "0.63084835", "text": "TracedComponentRealizationConfiguration createTracedComponentRealizationConfiguration();", "title": "" }, { "docid": "04a3189011cd756f2aced95986684968", "score": "0.6304852", "text": "TracedInteractionUseConfiguration createTracedInteractionUseConfiguration();", "title": "" }, { "docid": "c16c250cf6f0d60ae853bd88e8d289d3", "score": "0.62862515", "text": "TracedGateConfiguration createTracedGateConfiguration();", "title": "" }, { "docid": "829e18d3930353e80116e244e0262e13", "score": "0.62819135", "text": "TracedPortConfiguration createTracedPortConfiguration();", "title": "" }, { "docid": "185da606ddb3e2ac50e387254bad9b95", "score": "0.62644404", "text": "@Override\n protected TpccParameters createStressorConfiguration() {\n log.trace(\"Creating TpccParameters...\");\n\n TpccParameters parameters = new TpccParameters(\n cacheWrapper,\n simulationTimeSec,\n numOfThreads,\n getSlaveIndex(),\n backOffTime,\n retryOnAbort,\n statsSamplingInterval,\n paymentWeight,\n orderStatusWeight,\n numberOfItemsInterval,\n accessSameWarehouse\n );\n\n AbstractTpccTransaction.setAvoidNotFoundExceptions(avoidMiss);\n\n return parameters;\n }", "title": "" }, { "docid": "30ee4b09c4004b28b2ded17d637526c8", "score": "0.6259943", "text": "TracedStateMachineConfiguration createTracedStateMachineConfiguration();", "title": "" }, { "docid": "a21c55ad0a61865b1ce9fb77a487bd0c", "score": "0.62499356", "text": "TracedStateConfiguration createTracedStateConfiguration();", "title": "" }, { "docid": "693fab19707263ab896261468c4c26d1", "score": "0.6245361", "text": "TracedEncapsulatedClassifierConfiguration createTracedEncapsulatedClassifierConfiguration();", "title": "" }, { "docid": "d76230e214788d1078faf618c1e1961a", "score": "0.62412256", "text": "TracedMultiplicityElementConfiguration createTracedMultiplicityElementConfiguration();", "title": "" }, { "docid": "752f55b8acaf1ac9b61ac023495e0cf0", "score": "0.6236797", "text": "TracedDependencyConfiguration createTracedDependencyConfiguration();", "title": "" }, { "docid": "f92673741debe476b476c2c46d7bc6fa", "score": "0.62365186", "text": "TracedInformationFlowConfiguration createTracedInformationFlowConfiguration();", "title": "" }, { "docid": "73193b2184f18dd984dae19cf4843e1b", "score": "0.6233201", "text": "TracedExtensionPointConfiguration createTracedExtensionPointConfiguration();", "title": "" }, { "docid": "edc53a41c35245517841fd7501455864", "score": "0.62172246", "text": "TracedClassifierConfiguration createTracedClassifierConfiguration();", "title": "" }, { "docid": "b5a68fa842933dbb4429376ee4364c1f", "score": "0.62156206", "text": "TracedControlFlowConfiguration createTracedControlFlowConfiguration();", "title": "" }, { "docid": "1f285d7090b461acdb20d9776b3c68de", "score": "0.6206566", "text": "TracedExtensionConfiguration createTracedExtensionConfiguration();", "title": "" }, { "docid": "75e235cd569e09dc234266e4a0b5013d", "score": "0.6196884", "text": "TracedAssociationClassConfiguration createTracedAssociationClassConfiguration();", "title": "" }, { "docid": "f776dd7762dc7070919a16106e85fc48", "score": "0.6179827", "text": "TracedActivityConfiguration createTracedActivityConfiguration();", "title": "" }, { "docid": "7ba9523caeb7ef3650a7d74e85625fac", "score": "0.61790615", "text": "TracedValueSpecificationConfiguration createTracedValueSpecificationConfiguration();", "title": "" }, { "docid": "fbd81a0179769b1a10e76529fcf70945", "score": "0.61535615", "text": "TracedClauseConfiguration createTracedClauseConfiguration();", "title": "" }, { "docid": "15375712004577da1421938649100516", "score": "0.6144157", "text": "TracedDeploymentConfiguration createTracedDeploymentConfiguration();", "title": "" }, { "docid": "ee43eaaec3e8d5967f17fa14960222fc", "score": "0.6139043", "text": "TracedRedefinableTemplateSignatureConfiguration createTracedRedefinableTemplateSignatureConfiguration();", "title": "" }, { "docid": "c1258d6fcb0d2d84fc35c71b6beeb6e5", "score": "0.61333394", "text": "TracedDecisionNodeConfiguration createTracedDecisionNodeConfiguration();", "title": "" }, { "docid": "54d76b95133038951e06bc72519c75dd", "score": "0.61267656", "text": "TracedTimeObservationConfiguration createTracedTimeObservationConfiguration();", "title": "" }, { "docid": "5be89f30f348e1f381d3550c6f5e4626", "score": "0.6114957", "text": "TracedForkNodeConfiguration createTracedForkNodeConfiguration();", "title": "" }, { "docid": "0cff8dc41b8f3fce39cb446869eac87a", "score": "0.6094338", "text": "TracedExpansionNodeConfiguration createTracedExpansionNodeConfiguration();", "title": "" }, { "docid": "ba54ce82cfb190754a2d8efe57325a8b", "score": "0.6093954", "text": "TracedBehaviorConfiguration createTracedBehaviorConfiguration();", "title": "" }, { "docid": "9aa2251070cbbe33a555ca187569ace8", "score": "0.6084729", "text": "TracedChangeEventConfiguration createTracedChangeEventConfiguration();", "title": "" }, { "docid": "4cf291448014fb4172a306198c208f1d", "score": "0.6072559", "text": "TracedProfileConfiguration createTracedProfileConfiguration();", "title": "" }, { "docid": "f480d68edd6550f2ddc7b324ed2cfde8", "score": "0.6071017", "text": "TracedEventConfiguration createTracedEventConfiguration();", "title": "" }, { "docid": "59162d1aaafad3b3cd66da00039bcbef", "score": "0.6063951", "text": "TracedDeploymentSpecificationConfiguration createTracedDeploymentSpecificationConfiguration();", "title": "" }, { "docid": "ce43982c361cf1838718414198393209", "score": "0.60588264", "text": "TracedDeviceConfiguration createTracedDeviceConfiguration();", "title": "" }, { "docid": "58a533466fe15b4f1b26be3e7aff14b3", "score": "0.6054593", "text": "TracedTypedElementConfiguration createTracedTypedElementConfiguration();", "title": "" }, { "docid": "d6e9b76d859413e27b14e3fb205013d8", "score": "0.60510874", "text": "TracedConnectionPointReferenceConfiguration createTracedConnectionPointReferenceConfiguration();", "title": "" }, { "docid": "0f91b8704bc2b86683c7d1641ddb6f0e", "score": "0.6043884", "text": "TracedInterfaceConfiguration createTracedInterfaceConfiguration();", "title": "" }, { "docid": "662245b0013c738d673aa54e1dd8ef3c", "score": "0.604026", "text": "TracedActivityNodeConfiguration createTracedActivityNodeConfiguration();", "title": "" }, { "docid": "4af7684fd16aa984b5239a675a5d8779", "score": "0.60177857", "text": "TracedIntervalConfiguration createTracedIntervalConfiguration();", "title": "" }, { "docid": "4e14bb9c383494656afc240b07a0b9cf", "score": "0.60038733", "text": "TracedTemplateSignatureConfiguration createTracedTemplateSignatureConfiguration();", "title": "" }, { "docid": "d4be744ffacb00a4672676c6a5ef3392", "score": "0.6002794", "text": "TracedEnumerationConfiguration createTracedEnumerationConfiguration();", "title": "" }, { "docid": "2c3df1b40ed653da8e8d6fa21c7cad90", "score": "0.6002772", "text": "TracedAssociationConfiguration createTracedAssociationConfiguration();", "title": "" }, { "docid": "fd403ae5414a986903655ee24d1d7eee", "score": "0.5980898", "text": "TracedPinConfiguration createTracedPinConfiguration();", "title": "" }, { "docid": "5ba5fa6bd48c7298747ca83cc2580190", "score": "0.5974583", "text": "TracedRegionConfiguration createTracedRegionConfiguration();", "title": "" }, { "docid": "336f075d4da668d93a52d78e363c8781", "score": "0.5961968", "text": "TracedStructuredClassifierConfiguration createTracedStructuredClassifierConfiguration();", "title": "" }, { "docid": "ba8fb4ed732e92f95b0b150e00f3f7c7", "score": "0.59515125", "text": "TracedSignalConfiguration createTracedSignalConfiguration();", "title": "" }, { "docid": "8440a3decd4146e7be04ef2c61258085", "score": "0.5941988", "text": "TracedConstraintConfiguration createTracedConstraintConfiguration();", "title": "" }, { "docid": "07ebe9fa125a872ca65c59f7abf92147", "score": "0.59318453", "text": "TracedDataStoreNodeConfiguration createTracedDataStoreNodeConfiguration();", "title": "" }, { "docid": "ef229a85fa050534a3e5a8632d0d40a4", "score": "0.59310776", "text": "TracedActionConfiguration createTracedActionConfiguration();", "title": "" }, { "docid": "9b68743cb913594bdb1d59ac55f10884", "score": "0.5929954", "text": "TracedVertexConfiguration createTracedVertexConfiguration();", "title": "" }, { "docid": "5ac055eb823d6393575de9c89485995b", "score": "0.59279674", "text": "TracedTimeIntervalConfiguration createTracedTimeIntervalConfiguration();", "title": "" }, { "docid": "559c267b407e26771e241ee49dfdacfa", "score": "0.5903087", "text": "TracedBehavioredClassifierConfiguration createTracedBehavioredClassifierConfiguration();", "title": "" }, { "docid": "da56570693e8fb2605232551ed280bd2", "score": "0.58912784", "text": "TracedCommunicationPathConfiguration createTracedCommunicationPathConfiguration();", "title": "" }, { "docid": "21ea52d15e71621f2a80b95a8ec51a8b", "score": "0.5889499", "text": "TracedInterfaceRealizationConfiguration createTracedInterfaceRealizationConfiguration();", "title": "" }, { "docid": "7ee03e7fc7dfe5dca6284321e05e0fe3", "score": "0.588679", "text": "TracedDeploymentTargetConfiguration createTracedDeploymentTargetConfiguration();", "title": "" } ]
f35889cde92824678cf29434869c1313
Created by glenn on 30/12/15.
[ { "docid": "c2e15710b41a66dd361e719ba718bb95", "score": "0.0", "text": "public interface AppointmentDetailsView {\n void checkInAppointment(Appointment appointment, List<AppointmentStatus> appointmentStatusList);\n SharedPreferences getUserDetailsSharedPreferences();\n SharedPreferences getBusinessDetailsSharedPreferences();\n SharedPreferences getAppSettingsSharedPreferences();\n void setUIElementsFromSavedDetails();\n void notifyCheckinResult(boolean result);\n void setupRealm();\n Realm getRealm();\n}", "title": "" } ]
[ { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.62788177", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.6037928", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6023972", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6023972", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.5942177", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.58898705", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.58898705", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.58898705", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.58898705", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.58898705", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.5758782", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.57488865", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.5715064", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.57024103", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.5683331", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.56828356", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.56730574", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.56730574", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.56439716", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.56151134", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.5568855", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.5568855", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.5568855", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.5560467", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.5560467", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.5560467", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.5552554", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55496824", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55496824", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55496824", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55496824", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55496824", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55496824", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55496824", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5532998", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.55160874", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.55087584", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.5503458", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5489689", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5489689", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "a46e663abb8570c121174f3358771925", "score": "0.5464836", "text": "private void m13516b() {\n }", "title": "" }, { "docid": "94fbc7cc462bcbd6ae350624f9fd7ce3", "score": "0.5461591", "text": "private void dextrose10() {\n\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.54312307", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.5430469", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54136455", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54136455", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54136455", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54136455", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54136455", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54136455", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54136455", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54136455", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54136455", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54136455", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54136455", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.540942", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.540942", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "ab92bad46db05153eb5c2eb626d0c4f9", "score": "0.54081637", "text": "@Override\n public void init() {\n\n \n }", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.5390818", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5375481", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5375481", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5375481", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5375481", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5375481", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.537355", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.537355", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.537355", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.537355", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.53734386", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5373012", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5373012", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5373012", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "292cbe61872dcad9d684e16a8054c962", "score": "0.53636193", "text": "private static void zmodyfikujPrzepis() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5363346", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.53609324", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5359491", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "e071ca9eec75058b3213adadf2f930b9", "score": "0.53584486", "text": "public final void mo8109b() {\n }", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.5346116", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.5346116", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.5344184", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.53342205", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5323841", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5323841", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5323841", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.5317096", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.53165823", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.53165823", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.53165823", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "d19db205a6dfafb044d57228b6554e49", "score": "0.53154486", "text": "private void m61336a() {\n }", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.5310001", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.53077877", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "235772828b460a414a66709e6096b938", "score": "0.5296218", "text": "@Override\r\n protected void initialize() {\r\n }", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.52911174", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "df354b0e90f74315528e7c23e26a4e5d", "score": "0.5290185", "text": "@Override\n \tpublic void reinit() {\n \t}", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.5288598", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.5283412", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.5283412", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.5271693", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.5271693", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "f4bb6df1d4514d8e75c0ae1b3c6a1092", "score": "0.5271093", "text": "@Override\n\tprotected void blackwhitemode() {\n\t}", "title": "" }, { "docid": "482b1825ec60700f97ed42e420d69d99", "score": "0.5266801", "text": "@Override\n\tpublic void valide() {\n\t}", "title": "" } ]
e15a22373499261a7d880afe8392fd8f
This method was generated by MyBatis Generator. This method sets the value of the database column T_IM_MATERIALREQBILLENTRY.FCOREBILLNUMBER
[ { "docid": "3052c43ca0e1fbb73c0570f93cc65640", "score": "0.71940935", "text": "public void setFcorebillnumber(String fcorebillnumber) {\n this.fcorebillnumber = fcorebillnumber;\n }", "title": "" } ]
[ { "docid": "ddcbd57affe6e497e668244f505b5bc0", "score": "0.64032626", "text": "public String getFcorebillnumber() {\n return fcorebillnumber;\n }", "title": "" }, { "docid": "4db16785d84c726eda18ffb853de9c10", "score": "0.63771206", "text": "public void setFcorebillid(String fcorebillid) {\n this.fcorebillid = fcorebillid;\n }", "title": "" }, { "docid": "8620aaa063fa068c8565f9cb2ecb0439", "score": "0.6276914", "text": "public void setFcorenumber(String fcorenumber) {\n this.fcorenumber = fcorenumber;\n }", "title": "" }, { "docid": "a7d3ec7ba1d52e3d1bc9c91fd4c17c96", "score": "0.60087526", "text": "public void setFcorebilltypeid(String fcorebilltypeid) {\n this.fcorebilltypeid = fcorebilltypeid;\n }", "title": "" }, { "docid": "0f1b992aa208ced63c3b12360b6aed9e", "score": "0.5794594", "text": "public String getFcorebillid() {\n return fcorebillid;\n }", "title": "" }, { "docid": "b8c8f080ac79c162517fc825f7c8b14b", "score": "0.56570846", "text": "public String getFcorenumber() {\n return fcorenumber;\n }", "title": "" }, { "docid": "9db0586827dfea63e51ca101993edffe", "score": "0.5203476", "text": "public void setFcorebillentryid(String fcorebillentryid) {\n this.fcorebillentryid = fcorebillentryid;\n }", "title": "" }, { "docid": "439b91a7a839e3690ac87bb1cbb6fb99", "score": "0.5152385", "text": "public void setRecNumberTextField(String value) { RecNumberTextField.setText(value); }", "title": "" }, { "docid": "51f776738a97a4f7edb245a477d277a0", "score": "0.51519424", "text": "public void setCustomerRefNum(String value) {\n this.customerRefNum = value;\n }", "title": "" }, { "docid": "ca24f2c90271608ee5259ccb458449a9", "score": "0.5084139", "text": "public void setRrfIdFk(Number value) {\r\n setAttributeInternal(RRFIDFK, value);\r\n }", "title": "" }, { "docid": "a68ebf36141a77bb320ce075c3960ce2", "score": "0.5068676", "text": "public void setClaimNumber(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CLAIMNUMBER_PROP.get(), value);\n }", "title": "" }, { "docid": "91bad42c2026fd24bd42f7396487e5d1", "score": "0.5051055", "text": "public String getFcorebilltypeid() {\n return fcorebilltypeid;\n }", "title": "" }, { "docid": "880d729424afac9618ca9e17c7bac516", "score": "0.50293636", "text": "public void setPROCESS_REF_NBR(BigDecimal PROCESS_REF_NBR) {\r\n this.PROCESS_REF_NBR = PROCESS_REF_NBR;\r\n }", "title": "" }, { "docid": "67ea5c540d5b01557c34433da8997a9f", "score": "0.5022585", "text": "private void setInvoiceNo() { Bill_Frame.txtInvoiceNo.setText(Bill_Frame.tblBill.getValueAt(getSelectedRow(Bill_Frame.tblBill), 0).toString());}", "title": "" }, { "docid": "ae0090c4e36c41a430516bd7e15cea00", "score": "0.50205034", "text": "public void setClaimNumber(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CLAIMNUMBER_PROP.get(), value);\n }", "title": "" }, { "docid": "32984254451437f1625e35cfab30d738", "score": "0.50137556", "text": "public String getFcorebillentryid() {\n return fcorebillentryid;\n }", "title": "" }, { "docid": "6461c1f5c0c094637e6e9373c65b2e59", "score": "0.49702087", "text": "void changeCustomerPhone(int customerID, String numberNew) throws SQLException;", "title": "" }, { "docid": "ee1e735a2d938abfb06c4bc120d2bc7d", "score": "0.4951276", "text": "synchronized public int setGenerationNumber(DDNSFullNameInterface memberName, int gen) throws DB461Exception {\n \t\tSNetDB461 db = null;\n \t\ttry {\n \t\t\tdb = new SNetDB461(this.DBName());\n \t\t\tCommunityRecord comRec = db.COMMUNITYTABLE.readOne(memberName.toString());\n \t\t\tif(comRec == null) {\n \t\t\t\tthrow new DB461Exception(\"Member is not in the database: \" + memberName.toString());\n \t\t\t}\n \t\t\tint oldGen = comRec.generation;\n \t\t\tcomRec.generation = gen;\n \t\t\tdb.COMMUNITYTABLE.write(comRec);\n \t\t\treturn oldGen;\n \t\t} finally {\n \t\t\tif(db != null)\n \t\t\t\tdb.discard();\n \t\t}\n \t}", "title": "" }, { "docid": "c7ec9a0369c4966bcb9b97a03da7e661", "score": "0.49401218", "text": "public void setFsourcebillnumber(Object fsourcebillnumber) {\n this.fsourcebillnumber = fsourcebillnumber;\n }", "title": "" }, { "docid": "a44ff1e291b30d851811b431e5815308", "score": "0.4936438", "text": "public void setFaxPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(FAXPHONE_PROP.get(), value);\n }", "title": "" }, { "docid": "9fe20eeabc91485059c1b81bebeca6b3", "score": "0.4931128", "text": "public void setBillfreqnum (java.lang.Integer billfreqnum) {\n\t\tthis.billfreqnum = billfreqnum;\n\t}", "title": "" }, { "docid": "fa21b19de09bd3c7f856fa9d550a9adb", "score": "0.48768786", "text": "public void setGradingItemNo(Numeric3 param){\r\n \r\n this.localGradingItemNo=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "c29ef2725b1bbb45986bffcc467c3f6e", "score": "0.4874416", "text": "public void setPhoneNum(String phoneNum) {\r\n\t\tthis.phoneNum = phoneNum;\r\n\t}", "title": "" }, { "docid": "dd5cb6e5358971a4d20b7d8fb1f8dd76", "score": "0.48679984", "text": "public void setRecordNumber(int value) {\n\n\t\trecordNumber = value;\n\t}", "title": "" }, { "docid": "1782bcbb7782d2aedf69068a777c90d5", "score": "0.4865848", "text": "public void setMobnum(int value) {\n this.mobnum = value;\n }", "title": "" }, { "docid": "8474fbcfa8889adee4da6bacb48dd429", "score": "0.48445785", "text": "public void setRiskNumber(java.lang.String value);", "title": "" }, { "docid": "cc9f3edd2032db8b8c9aecdb7eef2447", "score": "0.48296756", "text": "public void setFnumber(String fnumber) {\r\n this.fnumber = fnumber == null ? null : fnumber.trim();\r\n }", "title": "" }, { "docid": "60ca00fb539372106604767c25b67085", "score": "0.4826736", "text": "public void setPhoneNum(String phoneNum) {\r\n this.phoneNum = new SimpleStringProperty(phoneNum);\r\n }", "title": "" }, { "docid": "e79347d7552d960636ac42e452e6f1af", "score": "0.48080269", "text": "public final void setNum(String num) {\r\n if (this.validaCpf(num)) {\r\n this.num = num;\r\n } else {\r\n throw new RuntimeException(\"CPF Inválido\");\r\n }\r\n }", "title": "" }, { "docid": "3ee3c4b1fa312b8b4cc8aacc013a6616", "score": "0.47886395", "text": "public gov.pnnl.aim.nmr.avro.OpaNmrMessage.Builder setRowNumber(int value) {\n validate(fields()[4], value);\n this.rowNumber = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "title": "" }, { "docid": "5c88e4770c24281e87bcdb4a09f20817", "score": "0.47877133", "text": "public void setFcardnum(String fcardnum) {\r\n this.fcardnum = fcardnum == null ? null : fcardnum.trim();\r\n }", "title": "" }, { "docid": "a7baff148d3c3177698015e87e097cab", "score": "0.47809684", "text": "public void setPhoneNum(String pNum)\n {\n phoneNum = pNum;\n }", "title": "" }, { "docid": "126b45a52902036d87e752a9d5cd9868", "score": "0.4774297", "text": "private void setPhoneFaxWholeNumber(\n java.lang.String value) {\n value.getClass();\n bitField1_ |= 0x00000100;\n phoneFaxWholeNumber_ = value;\n }", "title": "" }, { "docid": "753cf59f040ca42966d6f4a5c1ea42d3", "score": "0.47738644", "text": "public void setFbaseqty(BigDecimal fbaseqty) {\n this.fbaseqty = fbaseqty;\n }", "title": "" }, { "docid": "97c4725398097be5fac142ac70bb4bcd", "score": "0.47581404", "text": "public void setAgentNoFk(Number value) {\r\n setAttributeInternal(AGENTNOFK, value);\r\n }", "title": "" }, { "docid": "a07086790fcae2adfa235a4a0d46ec94", "score": "0.47397593", "text": "public void setFcorebillentryse(Long fcorebillentryse) {\n this.fcorebillentryse = fcorebillentryse;\n }", "title": "" }, { "docid": "baf13a5d6e7bd50b83e4da39c819d482", "score": "0.47206622", "text": "public void setDrawnum(BigDecimal drawnum) {\r\n this.drawnum = drawnum;\r\n }", "title": "" }, { "docid": "bcefbd2b000b9a21da88b52e291f3388", "score": "0.47203532", "text": "public void setPhoneNum(String newPhoneNum) {\n\n\t\tphoneNum = newPhoneNum;\n\n\t}", "title": "" }, { "docid": "ffcb078a84cf3a0df7f66c7c77c85c20", "score": "0.47174412", "text": "public Object getFsourcebillnumber() {\n return fsourcebillnumber;\n }", "title": "" }, { "docid": "becc0824be7aec63fdd94a71269c3cd4", "score": "0.47135752", "text": "private void setPhoneFaxWholeNumberBytes(\n com.google.protobuf.ByteString value) {\n phoneFaxWholeNumber_ = value.toStringUtf8();\n bitField1_ |= 0x00000100;\n }", "title": "" }, { "docid": "aee3c822682036555651ea720a965699", "score": "0.47119725", "text": "public void setFassociateqty(BigDecimal fassociateqty) {\n this.fassociateqty = fassociateqty;\n }", "title": "" }, { "docid": "27d47bdf84555d5a01dd2b2956a32024", "score": "0.46828282", "text": "public void setCardNumber(String value) {\r\n setAttributeInternal(CARDNUMBER, value);\r\n }", "title": "" }, { "docid": "510510d374c93724637dab1c98cd2162", "score": "0.46813068", "text": "public void setCIF_NO(BigDecimal CIF_NO) {\r\n this.CIF_NO = CIF_NO;\r\n }", "title": "" }, { "docid": "510510d374c93724637dab1c98cd2162", "score": "0.46813068", "text": "public void setCIF_NO(BigDecimal CIF_NO) {\r\n this.CIF_NO = CIF_NO;\r\n }", "title": "" }, { "docid": "94b50a96d0a5a8a52c4f5e204c3317d1", "score": "0.46750033", "text": "public void setFunreturnedbaseqty(BigDecimal funreturnedbaseqty) {\n this.funreturnedbaseqty = funreturnedbaseqty;\n }", "title": "" }, { "docid": "f11aaa2c34acef7abeee451a1908231c", "score": "0.4666599", "text": "public void setACC_NO(BigDecimal ACC_NO) {\r\n this.ACC_NO = ACC_NO;\r\n }", "title": "" }, { "docid": "df60c29cdcef651709020e18fbabd634", "score": "0.46624923", "text": "public void setPhoneNum(String phoneNum) { this.phoneNum = phoneNum;}", "title": "" }, { "docid": "bbe5082d7ee86183f502beccf755dd89", "score": "0.46577263", "text": "public Builder setFieldNumber(int value) {\n bitField0_ |= 0x00020000;\n fieldNumber_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b0c593fb27a127faf8eaa4db89ae5e3e", "score": "0.46489823", "text": "public void setFID_CRR_MTH_REV_CIF(BigDecimal FID_CRR_MTH_REV_CIF) {\r\n this.FID_CRR_MTH_REV_CIF = FID_CRR_MTH_REV_CIF;\r\n }", "title": "" }, { "docid": "2e82f4f831ae122aab0fcd69216fb674", "score": "0.46438748", "text": "public boolean setInvoiceNumber(String num) { \n boolean good = false;\n good = this.checkInvoiceNumber(num);\n if (good){\n invoiceNumber = num;\n return true;\n }else return false;\n \n }", "title": "" }, { "docid": "2ee078d67ccc80ec9af08092bb15001d", "score": "0.46414596", "text": "public void setFaxNumber(java.lang.String faxNumber) {\n this.faxNumber = faxNumber;\n }", "title": "" }, { "docid": "be33cadb521625333670860165ff0a9c", "score": "0.461848", "text": "public void setBill_BPartner_ID (int Bill_BPartner_ID);", "title": "" }, { "docid": "b0e96ee007d4a4f440e3a98b44d94099", "score": "0.46020532", "text": "public void setACCRUED_MGTFEE_CIF(BigDecimal ACCRUED_MGTFEE_CIF) {\r\n this.ACCRUED_MGTFEE_CIF = ACCRUED_MGTFEE_CIF;\r\n }", "title": "" }, { "docid": "7cce2aa71a7fb2f49ba885af22fa06cc", "score": "0.4601465", "text": "public void setMbrId(int value) {\n this.mbrId = value;\n }", "title": "" }, { "docid": "43398d039b6635b21cd0ecfe0fe8e71c", "score": "0.46009332", "text": "public void setMatricNo(String matricNo) {\n\t\tthis.matricNo = matricNo;\n\t}", "title": "" }, { "docid": "0437f1ae7dbde233825483d5b9a5396c", "score": "0.45980614", "text": "public void setAccountNum(String setNumber) {\r\n\t\tthis.accountNo.set(setNumber);\r\n\t}", "title": "" }, { "docid": "7df98ae9f68ce00f54ae8716ff0f89db", "score": "0.45928782", "text": "public void setBillNo(java.lang.Integer billNo) {\n\t\tthis.billNo = billNo;\n\t}", "title": "" }, { "docid": "1faef42cb6c4fb7dbada8fd294b5fd9c", "score": "0.458977", "text": "public String getFnumber() {\r\n return fnumber;\r\n }", "title": "" }, { "docid": "b40f93560aa1aaffc1226194e4c62507", "score": "0.45880115", "text": "public void setTelephone_no(Object telephone_no2) {\n\t\t\n\t}", "title": "" }, { "docid": "1190a7042f4292c637ee449d5bac66d8", "score": "0.45823413", "text": "public void setReferenceNumber(String value) {\r\n setAttributeInternal(REFERENCENUMBER, value);\r\n }", "title": "" }, { "docid": "51ec388144b3706a6d46cfd039daa659", "score": "0.45820066", "text": "public void updateProductNumber() {\n\t\tproductDao.updateNumber();\r\n\t}", "title": "" }, { "docid": "5123e84624b92f92f46a636d74474285", "score": "0.45814136", "text": "private void setBuyNum(int value) {\n \n buyNum_ = value;\n }", "title": "" }, { "docid": "9737a3b26cd674e59296362905c6e226", "score": "0.45798478", "text": "public void setBillNo(Integer billNo) {\n\t\tthis.billNo = billNo;\n\t}", "title": "" }, { "docid": "c765368f005939f71f09867aa3910f0c", "score": "0.4577784", "text": "public void setProductionNumber(int prodNum) {\n serialNumber = prodNum;\n }", "title": "" }, { "docid": "e755d85201b812faac000901cc5239dc", "score": "0.45724106", "text": "public void setPhoneNum(String phoneNum) {\n this.phoneNum = phoneNum == null ? null : phoneNum.trim();\n }", "title": "" }, { "docid": "c6e124e1da394036f199094c61ccdd58", "score": "0.45718247", "text": "public String getFcardnum() {\r\n return fcardnum;\r\n }", "title": "" }, { "docid": "bb06e9cc201e84e88921edf7095e4332", "score": "0.45691073", "text": "public void setFfacardqty(BigDecimal ffacardqty) {\n this.ffacardqty = ffacardqty;\n }", "title": "" }, { "docid": "9e9b13a87a129662f4252e01ad6fdeaf", "score": "0.4565772", "text": "private void initializeSaleBill() {\n \n \n EntityManager em = EntityManagerHelper.getInstance().getEm();\n \n Integer nextValue = (Integer)em.createQuery(\"select max(s.saleBillNo) from SaleBill s\").getSingleResult();\n \n if(nextValue!=null)\n {\n nextValue++;\n billNoTextbox.setText(nextValue+\"\");\n s.setSaleBillNo(nextValue);\n }\n else\n {\n billNoTextbox.setText(1+\"\");\n s.setSaleBillNo(1);\n }\n \n \n \n \n s.setSaleBillDate(new Date()); \n \n \n Calendar c = Calendar.getInstance();\n int month = c.get(Calendar.MONTH)+1;\n int day = c.get(Calendar.DAY_OF_MONTH);\n int year = c.get(Calendar.YEAR);\n \n dateTextBox.setText(day+\"/\"+month+\"/\"+year);\n dateTextBox.setEditable(false);\n \n fillCustomerComboBox();\n \n \n \n }", "title": "" }, { "docid": "fa624f884e77696562e66e632ccb7a76", "score": "0.4563369", "text": "public void setCustomerNumber (){\n\t\tcustomerNumber = lastCustomerNumber;\n\t}", "title": "" }, { "docid": "68971bccf056a17aef0088cb1756e2bd", "score": "0.4552017", "text": "public void setFbaseissueqty(BigDecimal fbaseissueqty) {\n this.fbaseissueqty = fbaseissueqty;\n }", "title": "" }, { "docid": "50f0bfb5cee6f18d92928fe755fa58d8", "score": "0.4551076", "text": "public void setFOREX_CIF(BigDecimal FOREX_CIF) {\r\n this.FOREX_CIF = FOREX_CIF;\r\n }", "title": "" }, { "docid": "3365ba7bef95e34ad9389ee955a95da9", "score": "0.4550618", "text": "public String getBillNo() {\r\n return billNo;\r\n }", "title": "" }, { "docid": "e922d5469e4da7ae8e3755b6b1fc3979", "score": "0.45498693", "text": "public void setNumFabricacaoEcf(String numFabricacaoEcf) {\n this.numFabricacaoEcf = numFabricacaoEcf;\n }", "title": "" }, { "docid": "af5f5de25cac5eccad41c96feaa193bc", "score": "0.45495218", "text": "public void setBillId(Integer value) {\n setValue(BILL_ID, value);\n }", "title": "" }, { "docid": "53f89a5a9417fcd6d34f416aab7867a9", "score": "0.4545808", "text": "public void setBnNumber(int bnNumber)\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(BNNUMBER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BNNUMBER$0);\n }\n target.setIntValue(bnNumber);\n }\n }", "title": "" }, { "docid": "c28536c57c3141a81869710d4da2e3fe", "score": "0.45383686", "text": "public void setInvoiceNum(int invoiceNum){\n\t\tthis.invoiceNum = invoiceNum;\n\t}", "title": "" }, { "docid": "00af1325698a672cf11c71f220670a7c", "score": "0.45325953", "text": "public void setCustomerNumber(int c)\r\n {\r\n\tcustomerNumber = c;\r\n }", "title": "" }, { "docid": "050ee214c1cf4af430864c6568ef336d", "score": "0.45301402", "text": "public void setNumCPFCNPJ(String numCPFCNPJ) {\n this.numCPFCNPJ = numCPFCNPJ;\n }", "title": "" }, { "docid": "b92f8e6a7d175cbd4bac2c9669a8d3a4", "score": "0.45263985", "text": "@java.lang.Deprecated public Builder setPhoneFaxWholeNumber(\n java.lang.String value) {\n copyOnWrite();\n instance.setPhoneFaxWholeNumber(value);\n return this;\n }", "title": "" }, { "docid": "d0d2522536d0209dc14686a17e885c00", "score": "0.452609", "text": "public void setMainContractNumber(Char13 param){\r\n \r\n this.localMainContractNumber=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "f3b3c6b7c701f7f2bc7aba2e75beabe6", "score": "0.45213312", "text": "public void setNUM_DOC(String NUM_DOC) {\n this.NUM_DOC = NUM_DOC;\n }", "title": "" }, { "docid": "02b70c2b6b1455f0a292618f5b397371", "score": "0.45086828", "text": "public void setFcostobjectid(String fcostobjectid) {\n this.fcostobjectid = fcostobjectid;\n }", "title": "" }, { "docid": "247b05c64ded9bf1000f9265f119421a", "score": "0.45041", "text": "public void testSetFieldValueStringM7PhoneNumber() {\n\n\t}", "title": "" }, { "docid": "be1a535567a6de4c5932d98f8ff1472d", "score": "0.44967496", "text": "public void setFormFolio(BigDecimal formFolio)\r\n {\r\n this.formFolio = formFolio;\r\n }", "title": "" }, { "docid": "845f3275cf92bd18a727d6a38cd0e6a8", "score": "0.4496156", "text": "public void setInvoiceDocumentNo (String InvoiceDocumentNo)\n\t{\n\t\tset_Value (COLUMNNAME_InvoiceDocumentNo, InvoiceDocumentNo);\n\t}", "title": "" }, { "docid": "577216b84be62037b22b88f9614ca63b", "score": "0.44944856", "text": "public void setBEFOR_INCR(BigDecimal BEFOR_INCR) {\n\t\tthis.BEFOR_INCR = BEFOR_INCR;\n\t}", "title": "" }, { "docid": "aa79fd7d3e20683500b020062c8578f3", "score": "0.44936186", "text": "public void setFqty(BigDecimal fqty) {\n this.fqty = fqty;\n }", "title": "" }, { "docid": "2558db4cdf9b30a793657fbeea6c864b", "score": "0.4492582", "text": "public void setFID_DFF_MTH_REV_CIF(BigDecimal FID_DFF_MTH_REV_CIF) {\r\n this.FID_DFF_MTH_REV_CIF = FID_DFF_MTH_REV_CIF;\r\n }", "title": "" }, { "docid": "d1c6d146d03a4d1234cb3951c3f08261", "score": "0.449217", "text": "public void setFcustomerid(String fcustomerid) {\n this.fcustomerid = fcustomerid;\n }", "title": "" }, { "docid": "cbb0b7ff132e38aef112537e98913096", "score": "0.449048", "text": "public void setPhone0(String phone0) {\n this.attribute(TwoFactorUserAttrName.phone0, true).setAttributeValueString(phone0);\n }", "title": "" }, { "docid": "95ae97a6c71a61666f8b2627b3fdf0ab", "score": "0.4486373", "text": "public gov.pnnl.aim.nmr.avro.OpaNmrMessage.Builder setRunNumber(int value) {\n validate(fields()[5], value);\n this.runNumber = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "title": "" }, { "docid": "5322cb5228c4ec5b5e861ebe8bc56110", "score": "0.4486062", "text": "public int updateByProjectCode(FInvestigationCsRationalityReviewDO FInvestigationCsRationalityReview) throws DataAccessException {\n \tif (FInvestigationCsRationalityReview == null) {\n \t\tthrow new IllegalArgumentException(\"Can't update by a null data object.\");\n \t}\n\n\n return getSqlMapClientTemplate().update(\"MS-F-INVESTIGATION-CS-RATIONALITY-REVIEW-UPDATE-BY-PROJECT-CODE\", FInvestigationCsRationalityReview);\n }", "title": "" }, { "docid": "1373241d1908c92ffc98d7c61288f8f8", "score": "0.44788706", "text": "public void setBudgetCustomerId(Number value) {\n setAttributeInternal(BUDGETCUSTOMERID, value);\n }", "title": "" }, { "docid": "4868d820023d58b103048d208831ccca", "score": "0.44686052", "text": "public void setFID_EXP_CIF(BigDecimal FID_EXP_CIF) {\r\n this.FID_EXP_CIF = FID_EXP_CIF;\r\n }", "title": "" }, { "docid": "f77529541ec96f3fec4dc811a9422807", "score": "0.44675183", "text": "public void setPhoneNumber(String value) {\r\n setAttributeInternal(PHONENUMBER, value);\r\n }", "title": "" }, { "docid": "ba1c6d7168cb5d52eb6636c16cb8bbf4", "score": "0.44593495", "text": "public void setFolioF01(BigDecimal folioF01)\r\n {\r\n this.folioF01 = folioF01;\r\n }", "title": "" }, { "docid": "a45c327a3bee36ecdd6a77806778648e", "score": "0.4449036", "text": "public void setBankAccountNo (String BankAccountNo)\n\t{\n\t\tset_Value (COLUMNNAME_BankAccountNo, BankAccountNo);\n\t}", "title": "" }, { "docid": "ce561f9709aa9ba07c2562145f12c975", "score": "0.4448142", "text": "public void setDFF_MTH_REV_CIF(BigDecimal DFF_MTH_REV_CIF) {\r\n this.DFF_MTH_REV_CIF = DFF_MTH_REV_CIF;\r\n }", "title": "" }, { "docid": "b208d97bbcb2c1991dc363df54fd8e87", "score": "0.44403002", "text": "public void setNumber(Numeric3 param){\r\n \r\n this.localNumber=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "913a5ce1527dda8cce3cd967e834dcfc", "score": "0.44372764", "text": "public void setFormFactorPreconfValue(YangIdentityref formFactorPreconfValue)\n throws JNCException {\n setLeafValue(OcTransceiver.NAMESPACE,\n \"form-factor-preconf\",\n formFactorPreconfValue,\n childrenNames());\n }", "title": "" } ]
9f4387d25c578159789cd67b925ab920
Creates new form Clock
[ { "docid": "67c2f610855905af8dbbe841cafbfe75", "score": "0.0", "text": "public App() {\n super(\"Timer\");\n try \n {\n alarmImage = ImageIO.read((getClass().getResource(\"image/alarm.jpg\"))); \n } catch (IOException ex) \n {\n Logger.getLogger(App.class.getName()).log(Level.SEVERE, null, ex);\n }\n initComponents();\n setLocationRelativeTo(null);\n initClassVariables();\n \n while(true)\n {\n if(isClock)\n {\n clock(); \n }\n else\n {\n timer();\n }\n } \n }", "title": "" } ]
[ { "docid": "5e900a8ccef3081f06e7717462c28fc3", "score": "0.6674927", "text": "public ClockPane() {\r\n setCurrentTime();\r\n }", "title": "" }, { "docid": "ec355b659180b1389e5d3c4e7ac3a067", "score": "0.65563416", "text": "public clock() {\n initComponents();\n }", "title": "" }, { "docid": "151195e673c71a2cf19402edae09efff", "score": "0.64966613", "text": "protected abstract ClockPanel createClockPanel(int width, int height);", "title": "" }, { "docid": "6c9034844a3e03e984ffc2751e81f6a9", "score": "0.6405068", "text": "IdealClock createIdealClock();", "title": "" }, { "docid": "5dc6629cb292cf60f405ffe237e390b4", "score": "0.61884147", "text": "public TimeClock()\n {\n //The game-time will start at 10AM\n hour = 10;\n minute = 0;\n }", "title": "" }, { "docid": "45232c88b291e8e8cab80c332d058e4e", "score": "0.61573434", "text": "public TextField getClockObj(){\n return clockField;\n }", "title": "" }, { "docid": "d877d98bc51ffb64c5cf5c7a4e7b8c28", "score": "0.6122063", "text": "public Clock() {\n initComponents();\n \n new Thread(){\n public void run(){\n while(timeRun==0){\n Calendar cal= new GregorianCalendar();\n \n int hour = cal.get(Calendar.HOUR);\n int min = cal.get(Calendar.MINUTE);\n int sec = cal.get(Calendar.SECOND);\n int am_pm = cal.get(Calendar.AM_PM);\n \n int year=cal.get(Calendar.YEAR);\n int month= cal.get(Calendar.MONTH);\n int day= cal.get(Calendar.DATE);\n \n String day_night = \"\";\n if(am_pm==1){\n day_night=\"PM\";\n }else{\n day_night=\"AM\";\n }\n String time= day+\"-\"+month+\"-\"+year+\" \"+hour+\":\"+min+\":\"+sec+\" \"+day_night;\n clockLabel.setText(time);\n }\n \n }\n \n }.start();\n }", "title": "" }, { "docid": "77c5bf8b0437bc1c7b40ff84cae19002", "score": "0.6104377", "text": "public time() {\n initComponents();\n }", "title": "" }, { "docid": "00d9075252ad92ea5c11d43bcd7de256", "score": "0.60604376", "text": "private Clock() {}", "title": "" }, { "docid": "d70e541378b880f24ffb8163fe3cf768", "score": "0.60388184", "text": "public FormControl createTimeField(ControlContainer parent,\r\n\t\t\tFrameRectangle rectangle, String name, String defaultValue);", "title": "" }, { "docid": "c4c6eedd3c117ee150d1de8609d20d6b", "score": "0.60358894", "text": "public void setClock()\n {\n \tDate t = new Date();\n\t\tt.setTime(java.lang.System.currentTimeMillis());\n\t\tSimpleDateFormat dt1 = new SimpleDateFormat(\"h:mm a\");\n\t\ttvClock.setText(dt1.format(t));\n }", "title": "" }, { "docid": "01fbd2a2c5bbc66cba40281209679216", "score": "0.6015793", "text": "public Clock() {\n setState(new ClockNormalState(this));\n this.minutes = 0;\n this.hours = 12;\n this.light = false;\n }", "title": "" }, { "docid": "727c8c6bc230c2a06224018395313ec2", "score": "0.6010963", "text": "public Clock(ComponentContainer container) {\n super(container.$form());\n timerInternal = new TimerInternal(this, DEFAULT_ENABLED, DEFAULT_INTERVAL);\n\n // Set up listeners\n form.registerForOnResume(this);\n form.registerForOnStop(this);\n form.registerForOnDestroy(this);\n\n if (form instanceof ReplForm) {\n // In REPL, if this Clock component was added to the project after the onResume call occurred,\n // then onScreen would be false, but the REPL app is, in fact, on screen.\n onScreen = true;\n }\n }", "title": "" }, { "docid": "41b4442781fcc0c961ce232908ba7c99", "score": "0.5898592", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tLog.i(\"set Time button\", \"Pressed\");\n\t\t\t\t\n\t\t\t\tDialogFragment newPicker = new TimePicker();\n\t\t\t\tnewPicker.show(getSupportFragmentManager(), \"timePicker\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "03d7c225a3b55371ac9248b1363ae865", "score": "0.5843845", "text": "public ClockPane(int hour, int minute, int second) {\r\n this.hour = hour;\r\n this.minute = minute;\r\n this.second = second;\r\n }", "title": "" }, { "docid": "fc4c479f9950e72b6d8c87d2332da7c7", "score": "0.5835789", "text": "public Clock() {\n time = 0;\n }", "title": "" }, { "docid": "1946a8703b693b7bee26110e42ff9708", "score": "0.5824422", "text": "public AnnoyTimeDialog(JFrame applicationFrame) {\n super(applicationFrame, \"Set Day Start Time\", true);\n\n JPanel annoyTimePanel = new JPanel();\n\n minuteSlider = new JSlider(0, 60);\n minuteSlider.setMajorTickSpacing(15);\n minuteSlider.setMinorTickSpacing(3);\n minuteSlider.setPaintLabels(true);\n minuteSlider.setPaintTicks(true);\n minuteSlider.setSnapToTicks(true);\n\n Preferences preferences =\n Preferences.userNodeForPackage(Timelord.class);\n\n double timeIncrement =\n preferences.getDouble(Timelord.TIME_INCREMENT, 0.25);\n\n if(log.isDebugEnabled()) {\n log.debug(\"Loaded Time Increment Preference [\"\n + timeIncrement\n + \"] from preference [\"\n + Timelord.TIME_INCREMENT\n + \"]\");\n }\n\n minuteSlider.setValue((int) (timeIncrement * 60));\n\n\n annoyTimePanel.add(minuteSlider);\n\n JButton okayButton = new JButton(\n resourceBundle.getString(\n \"net.chaosserver.timelord.swingui.TimelordMenu.okay\"));\n okayButton.setActionCommand(ACTION_OK);\n okayButton.addActionListener(this);\n annoyTimePanel.add(okayButton);\n\n JButton cancelButton = new JButton(\n resourceBundle.getString(\n \"net.chaosserver.timelord.swingui.TimelordMenu.cancel\"));\n cancelButton.setActionCommand(ACTION_CANCEL);\n cancelButton.addActionListener(this);\n annoyTimePanel.add(cancelButton);\n\n this.getContentPane().add(annoyTimePanel);\n this.pack();\n\n this.setLocationRelativeTo(applicationFrame);\n }", "title": "" }, { "docid": "9b9767ce487811f80e5ee64176a28afb", "score": "0.58181894", "text": "private Clock() {\n }", "title": "" }, { "docid": "a79b2e638c2acc2b5fb2bfb5a768b06d", "score": "0.5784322", "text": "public TimePickerFragment() {}", "title": "" }, { "docid": "c2675ff771161e81d3a3f071bc896d14", "score": "0.5771209", "text": "public MakeNewSchedule() {\n initComponents();\n ctrlQuery=(QueryController) ControllerFactory.getInstance().getController(ControllerFactory.ControllerTypes.QUERY);\n ctrlDoctor=(DoctorController) ControllerFactory.getInstance().getController(ControllerFactory.ControllerTypes.DOCTOR);\n ctrlSchedule=(ScheduleController) ControllerFactory.getInstance().getController(ControllerFactory.ControllerTypes.SCHEDULE);\n ctrlValidation=(ValidationController) ControllerFactory.getInstance().getController(ControllerFactory.ControllerTypes.VALIDATION);\n loadDoctorID();\n genarateScheduleID();\n }", "title": "" }, { "docid": "72e8dce6d381f3540a05d2c98a22c5f2", "score": "0.57645464", "text": "public Clock() {\n super(null);\n // To allow testing without Timer\n }", "title": "" }, { "docid": "6abdb8b96f796a22775a3d41ba36160b", "score": "0.5741619", "text": "private void clock() {\n\t\tThread t = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\n\t\t Calendar cal = Calendar.getInstance();\n\t\t int day = cal.get(Calendar.DAY_OF_MONTH);\n\t\t int month = cal.get(Calendar.MONTH);\n\t\t int year = cal.get(Calendar.YEAR);\n\t\t \n\t\t int second = cal.get(Calendar.SECOND);\n\t\t int minute = cal.get(Calendar.MINUTE);\n\t\t int hour = cal.get(Calendar.HOUR);\n\t\t int tz = cal.get(Calendar.AM_PM);\n\t\t String tm = (tz == 0)?\"AM\":\"PM\";\n\t\t \n\t\t lblClock.setText(\"TIME \"+hour+\":\"+minute+\":\"+second+\" \"+tm);\n\t\t lblDate.setText(\"DATE \"+day+\"/\"+month+\"/\"+year);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tt.start();\n\t}", "title": "" }, { "docid": "5ac2385991845f3d4c65141a2a8ed887", "score": "0.57135415", "text": "public MainUI(CentroExposicoes centro, String username) {\n this.centroExposicoes = centro;\n this.username = username;\n initManualComponents();\n setLocationRelativeTo(null);\n new Thread() {\n @Override\n public void run() {\n while (true) {\n Calendar cal = new GregorianCalendar();\n int hour = cal.get(Calendar.HOUR_OF_DAY);\n int minute = cal.get(Calendar.MINUTE);\n int second = cal.get(Calendar.SECOND);\n // <editor-fold defaultstate=\"collapsed\" desc=\"if statements clockLabel\">\n if (hour <= 9) {\n if (minute <= 9) {\n if (second <= 9) {\n String time = \"0\" + hour + \":0\" + minute + \":0\" + second;\n clockLabel.setText(time);\n } else {\n String time = \"0\" + hour + \":0\" + minute + \":\" + second;\n clockLabel.setText(time);\n }\n } else {\n if (second <= 9) {\n String time = \"0\" + hour + \":\" + minute + \":0\" + second;\n clockLabel.setText(time);\n } else {\n String time = \"0\" + hour + \":\" + minute + \":\" + second;\n clockLabel.setText(time);\n }\n }\n } else {\n if (minute <= 9) {\n if (second <= 9) {\n String time = hour + \":0\" + minute + \":0\" + second;\n clockLabel.setText(time);\n } else {\n String time = hour + \":0\" + minute + \":\" + second;\n clockLabel.setText(time);\n }\n } else {\n if (second <= 9) {\n String time = hour + \":\" + minute + \":0\" + second;\n clockLabel.setText(time);\n } else {\n String time = hour + \":\" + minute + \":\" + second;\n clockLabel.setText(time);\n }\n }\n }\n }// </editor-fold>\n }\n }.start();\n }", "title": "" }, { "docid": "0f614521d14a227b1100f8ede8a72d52", "score": "0.570832", "text": "public Clock(LocalTodo todo) {\n\t\tthis.timeInSe = (long)todo.getPerTime()*60;\n\t\tstate = true;\n\t\tmusic = new Music();\n\t\tahead = new JButton(\"提前完成!\");\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS));\n\t\ttime = new JLabel();\n\t\tfinish = new JLabel(\"任务计时已完成!\");\n\t\t\n\t\t//set the components and add to the contentPane\n\t\ttime.setFont(new Font(\"Broadway\", Font.BOLD, 40));\n\t\ttime.setBorder(new EmptyBorder(0,0,20,0));\n\t\ttime.setAlignmentX(CENTER_ALIGNMENT);\n\t\t\n\t\tfinish.setFont(new Font(\"宋体\", Font.BOLD, 25));\n\t\tfinish.setAlignmentX(CENTER_ALIGNMENT);\n\t\t\n\t\tahead.setAlignmentX(CENTER_ALIGNMENT);\n\t\t\n\t\tcontentPane.add(time);\n\t\tcontentPane.add(ahead);\n\t\t\n\t\t//set the contentPane\n\t\tcontentPane.setBorder(new EmptyBorder(50,0,50,0));\n\t\tcontentPane.setAlignmentX(CENTER_ALIGNMENT);\n\t\t\n\t\t//add listener\n\t\tahead.addActionListener(new AheadHandler());\n\t\t\n\t\t//set the frame\n\t\tsetTitle(\"任务: \"+todo.getTitle());\n\t\tsetContentPane(contentPane);\n\t\tsetBounds(600, 300, 300, 200);\n\t\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tsetResizable(false);\n\t\tsetVisible(true);\n\t\t\n\t\t//start the thread for timer\n\t\tClockThread clock = new ClockThread();\n\t\tclock.start();\n\t\t\n\t\t//record finish\n\t\ttodo.finishOnce();\n\t}", "title": "" }, { "docid": "5844e5c4773ae52d51090c07a5c56795", "score": "0.56979907", "text": "public Clock() {\r\n Seconds cont = new Seconds();\r\n sec = 0;\r\n min = 0;\r\n time = new Timer(1000, cont);\r\n }", "title": "" }, { "docid": "c433b9674a2759f480d1116cb83fe2be", "score": "0.56870866", "text": "public void launchTimer() {\n // hold light red HTML color in variable\n String lightRed = \"#ff8484\";\n // hold light blue HTML color in variable\n String lightBlue = \"#c1d1ff\";\n // background color for top panel that holds clock timer\n topPanel.setBackground(Color.decode(lightRed));\n // background color for bottom panel that holds buttons\n bottomPanel.setBackground(Color.decode(lightBlue));\n // add clock to top panel\n topPanel.add(timeLabel);\n // add start button to bottom panel\n bottomPanel.add(startBtn);\n // add stop button to bottom panel\n bottomPanel.add(stopBtn);\n // add reset button to bottom panel\n bottomPanel.add(resetBtn);\n\n // set a layout to display all panels in the frame\n setLayout(new BorderLayout());\n // position top panel in the center\n add(topPanel, BorderLayout.CENTER);\n // position bottom panel at the bottom\n add(bottomPanel, BorderLayout.SOUTH);\n // set size of frame\n setSize(375,150);\n // set frame title\n setTitle(\"Sudoku Puzzle Timer\");\n // set visibility of frame\n setVisible(true);\n // place timer in middle of screen\n setLocationRelativeTo(null);\n //setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "title": "" }, { "docid": "cfcb467fc87e88457aa677f11ac1d2f0", "score": "0.5657361", "text": "public void clock()\n\t{\n\t\t\n\t\tLabel now = new Label(\"Tarih ve Saat\");\n\t\tnow.setAlignment(Label.CENTER);\n\t\tnow.setBackground(Color.WHITE);\n\t\tnow.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tnow.setBounds(13, 491, 1179, 24);\n\t\tcontentPane.add(now);\n\t\t\n//\t\tList list = new List(); // AKAN LISTE ISTENIRSE EKLENEBILIR\n//\t\tlist.setBackground(SystemColor.control);/ AKAN LISTE ISTENIRSE EKLENEBILIR\n//\t\tlist.setForeground(new Color(0, 0, 0));/ AKAN LISTE ISTENIRSE EKLENEBILIR\n//\t\tlist.setMultipleSelections(false);/ AKAN LISTE ISTENIRSE EKLENEBILIR\n//\t\tlist.setFont(new Font(\"Arial\", Font.PLAIN, 16));/ AKAN LISTE ISTENIRSE EKLENEBILIR\n//\t\tlist.setBounds(10, 495, 1182, 94);/ AKAN LISTE ISTENIRSE EKLENEBILIR\n//\t\tcontentPane.add(list);/ AKAN LISTE ISTENIRSE EKLENEBILIR\n\t\n\t\tThread clock=new Thread() {\n\t\t\t\n\t\t\tpublic void run () {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tfor(;;) {\n\t\t\t\t\t\t\n\t\t\t\t\tLocalDate now1 = LocalDate.now(); // 2014-04-05\n\t\t\t\t\tCalendar cal=new GregorianCalendar();\n\t\t\t\t\t\n\t\t\t\t\tint day1=now1.getDayOfMonth();\n\t\t\t\t\tint month1=now1.getMonthValue();\n\t\t\t\t\tint year1=now1.getYear();\n\t\t\t\t\t\n\t\t\t\t\t//int day=cal.get(Calendar.DAY_OF_MONTH);\n\t\t\t\t\t//int month=cal.get(Calendar.MONTH);\n\t\t\t\t\t//int year=cal.get(Calendar.YEAR);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tint second=cal.get(Calendar.SECOND);\n\t\t\t\t\tint minute=cal.get(Calendar.MINUTE);\n\t\t\t\t\tint hour=cal.get(Calendar.HOUR_OF_DAY);\n\t\t\t\t\t\n\t\t\t\t\tnow.setText(day1+\"-\"+month1+\"-\"+year1+\" \"+hour+\":\"+minute+\":\"+second+\" \"+\"Anlik Kullanici Log Kayitlari\");\n\t\t\t\tsleep(1000);\n\t\t\t\t\n\t\t\t\t///HATIRLATILACAKLAR PANOSU\n\t\n\t\t\t\t///HATIRLATILACAKLAR PANOSU\n\n\t\t\t\t}} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tclock.start();\n\t}", "title": "" }, { "docid": "50d228a240f86e5dfd37b48077f5dd0f", "score": "0.5626538", "text": "@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(ServiceRequestForm.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n\n String zone = \"\";\n\n if (Calendar.AM_PM == Calendar.AM)\n zone = \"AM\";\n\n else if (Calendar.AM_PM == Calendar.PM)\n zone = \"PM\";\n\n time.setText( selectedHour + \":\" + selectedMinute + \" \"+zone);\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }", "title": "" }, { "docid": "cd0173810ff1da470eb8d5c28e6039ab", "score": "0.56021124", "text": "public AlarmClock()\n {\n date = new Date();\n timer = new Timer();\n jukebox = new JukeBox();\n alarm = false;\n }", "title": "" }, { "docid": "efc48e2f4fd6bfdf819fd38e4d27fe2d", "score": "0.5600505", "text": "@Override\n public void onClick(View view) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n // Create a new instance of TimePickerDialog and return it\n new TimePickerDialog(EatTogether1_1_add_activity.this, new TimePickerDialog.OnTimeSetListener(){\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n dateText.setText(hourOfDay + \":\" + minute);\n }\n }, hour, minute, false).show();\n }", "title": "" }, { "docid": "7f22705ac656c4b52a542e3418cf6f3c", "score": "0.55919164", "text": "public JTimeChooser() {\n setName(\"JTimeChooser\");\n initComponents();\n Calendar calendar = Calendar.getInstance();\n jSpinFieldHour.setValue(calendar.get(Calendar.HOUR));\n jSpinFieldMinute.setValue(calendar.get(Calendar.MINUTE));\n }", "title": "" }, { "docid": "16922504f6a121a8216ec7da4d73646e", "score": "0.55843174", "text": "private void startClock() {\n\t\tThread worker = new Thread(() -> {\n\t\t\twhile (!stopClock) {\n\t\t\t\tSwingUtilities.invokeLater(() -> {\n\t\t\t\t\tclock.setText(\n\t\t\t\t\t\t\tLocalDateTime.now().toString().substring(0, 19).replace(\"T\", \" \").replaceAll(\"-\", \"/\"));\n\t\t\t\t});\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(250);\n\t\t\t\t} catch (InterruptedException ignorable) {\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tworker.setDaemon(true);\n\t\tworker.start();\n\t}", "title": "" }, { "docid": "6913b89a43c0ba97b47e131e8ad24a8a", "score": "0.55838156", "text": "TimeControl getTimeControl();", "title": "" }, { "docid": "213552b8eb4ca88fe46e18e906f14669", "score": "0.55619884", "text": "public NewContestForm createNewContestForm();", "title": "" }, { "docid": "12123d033a0fce4345e4735869efed66", "score": "0.5555129", "text": "public void createRoomStart(){\n System.out.println(\"When should this room open?\");\n System.out.println(\"Please enter the hour (0-23) followed by the minute (0-59)\");\n }", "title": "" }, { "docid": "65450f9d7e74ff23327845c461f2bd06", "score": "0.55290544", "text": "@Override\n public void onClick(View v)\n {\n Calendar cldr = Calendar.getInstance();\n int currH = cldr.getTime().getHours();\n int currM = cldr.getTime().getMinutes();\n\n //Calculates the time result and display options\n pickTime = new TimePickerDialog(CreateParty.this, new TimePickerDialog.OnTimeSetListener()\n {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute)\n {\n PartyTime = new Time(hourOfDay, minute, 0);\n String minuteString;\n\n String AM_PM ;\n\n if(hourOfDay < 12)\n {\n AM_PM = \"AM\";\n }\n else\n {\n AM_PM = \"PM\";\n hourOfDay = hourOfDay - 12;\n }\n if(minute < 10)\n {\n minuteString = \"0\" + minute;\n }\n else\n {\n minuteString = \"\" + minute;\n }\n etxtTime.setText(hourOfDay + \":\" + minuteString + \" \" + AM_PM);\n }\n }, currH,currM,false);\n pickTime.show();\n }", "title": "" }, { "docid": "62513eb7acbe887fa5d77e60263773c3", "score": "0.5528223", "text": "public CustomerRegisterForm() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n new Clock().start();\n personalDetailsButton.setEnabled(false);\n }", "title": "" }, { "docid": "76aca074e4d6fb7796ba2f146130cbe9", "score": "0.5527211", "text": "private void makeUsingTime() {\n timeUsing.setFill(Color.RED);\n timeUsing.setFont(Font.loadFont(MenuApp.class.getResource(\"res/handwriting-draft_free-version.ttf\").toExternalForm(), 20));\n timeUsing.setLayoutX(350);\n timeUsing.setLayoutY(50);\n root.getChildren().add(timeUsing);\n }", "title": "" }, { "docid": "3a3e5abf096306fd867770cfc883cbd4", "score": "0.5522789", "text": "public CreateEventForm(){\n\t\t\n\t}", "title": "" }, { "docid": "2aa2c53927e9d189a473511ba028bc8e", "score": "0.55034006", "text": "private void setCurrentTime() {\n\tCalendar calendar=new GregorianCalendar();\n\tthis.hour=calendar.get(calendar.HOUR_OF_DAY);\n\tthis.minute=calendar.get(calendar.MINUTE);\n\tthis.second=calendar.get(calendar.SECOND);\n\tpaintClock();\n}", "title": "" }, { "docid": "6e6cbeb9a104bc68d27c1989ce9e098f", "score": "0.54996413", "text": "public AlarmClock() {\n alarmhours = 0;\n alarmminutes = 0;\n isOn = false;\n isSounding = false;\n }", "title": "" }, { "docid": "72eb5bca179c66218d961087fbc78852", "score": "0.5493151", "text": "public Frm_BacSi() {\n initComponents();\n this.setLocationRelativeTo(this);\n Timer dongho = new Timer(1000, new ActionListener()\n {\n public void actionPerformed(ActionEvent e) {\n Calendar lich = Calendar.getInstance();\n int gio = lich.get(Calendar.HOUR);\n int phut = lich.get(Calendar.MINUTE);\n int giay = lich.get(Calendar.SECOND);\n txtgio.setText(\" \" + gio + \" : \" + phut + \" : \" + giay);\n }\n });\n dongho.start();\n txtngay.setText(date);\n }", "title": "" }, { "docid": "a663842018d48e6ae3e353391218ce05", "score": "0.5475887", "text": "@Override\n public void onClick (View v){\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddDeadline.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n etext.setText(selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }", "title": "" }, { "docid": "dd2f831062bccc17d986527fcc1c2a44", "score": "0.5475001", "text": "private void setTimePicker() {\n Calendar calendar = Calendar.getInstance();\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int min = calendar.get(Calendar.MINUTE);\n\n vaccinationTime.setOnClickListener(v -> {\n TimePickerDialog timePickerDialog = new TimePickerDialog(getActivity(), (view, hourOfDay, minute) ->\n initializeTimePickerDialog(hourOfDay, minute), hour, min, true);\n timePickerDialog.show();\n });\n\n }", "title": "" }, { "docid": "37f43cfa71054c6d222d8262518abd32", "score": "0.5474678", "text": "public TimeView(GameView mainView){\n\t\tsuper();\n\t\tthis.setOpaque(true);\n\t\tthis.mainView = mainView;\n\t\tthis.add(timeLabel);\n\t}", "title": "" }, { "docid": "935ca06880278121880a43473c75df7c", "score": "0.54639715", "text": "public CurrentJobShiftManagerForm() {\n initComponents();\n JobTable();\n showDate();\n showTime();\n }", "title": "" }, { "docid": "791ece87552cf67ee2acfd2608b8cea9", "score": "0.5457196", "text": "public Builder setClock(java.time.Clock clock) {\n this.clock = clock;\n return this;\n }", "title": "" }, { "docid": "11f5624b2829f936c2889d39f4aa5766", "score": "0.54493785", "text": "public forgotPwd() {\n initComponents();\n \n con=DBconnect.connect();\n \n //set the form center in the window\n setLocationRelativeTo(null);\n currentDate();\n \n new Thread()\n {\n public void run()\n {\n while(timeRun==0)\n {\n Calendar cal=new GregorianCalendar();\n \n int hour=cal.get(Calendar.HOUR);\n int minute=cal.get(Calendar.MINUTE);\n int second=cal.get(Calendar.SECOND);\n int AM_PM=cal.get(Calendar.AM_PM);\n String day_night=\" \";\n \n if(AM_PM==1)\n {\n day_night=\"PM\";\n }\n else\n {\n day_night=\"AM\";\n }\n \n String time= hour+\":\"+minute+\":\"+second+\" \"+day_night;\n showtime.setText(time);\n }\n }\n \n }.start(); \n \n //Time setting ends here\n }", "title": "" }, { "docid": "c253693fcd1e25dc72c20ee870cd8db4", "score": "0.54474175", "text": "public void showTimePicker(View v){\n\n android.app.DialogFragment newFragment = new TimePickerFragment((Button)v);\n newFragment.show(getFragmentManager(), \"TimePicker\");\n }", "title": "" }, { "docid": "31cb452639ec35dd9ff1132de937d6cc", "score": "0.54458857", "text": "@Override // Override the start method in the Application class\r\n public void start(Stage primaryStage) {\n\tRandom rand = new Random();\r\n\tdouble random = (Math.random() * 100 + 1);\r\n\tint hour = rand.nextInt(11);\r\n\tint min = 0;\r\n\tif (random <= 50)\r\n\t\tmin = 0;\r\n\telse if (random > 50)\r\n\t\tmin = 30;\r\n\tint sec = 30;\r\n ClockPane clock = new ClockPane(hour, min, sec, true, true, false);\r\n String timeString = clock.getHour() + \":\" + clock.getMinute() \r\n + \":\" + clock.getSecond();\r\n Label lblCurrentTime = new Label(timeString);\r\n \r\n System.out.print(random);\r\n System.out.print(\" \" + hour + \" \" + min);\r\n\r\n // Place clock and label in border pane\r\n BorderPane pane = new BorderPane();\r\n pane.setCenter(clock);\r\n pane.setBottom(lblCurrentTime);\r\n BorderPane.setAlignment(lblCurrentTime, Pos.TOP_CENTER);\r\n\r\n // Create a scene and place it in the stage\r\n Scene scene = new Scene(pane, 250, 250);\r\n primaryStage.setTitle(\"DisplayClock\"); // Set the stage title\r\n primaryStage.setScene(scene); // Place the scene in the stage\r\n primaryStage.show(); // Display the stage\r\n }", "title": "" }, { "docid": "0d7ef1b2db396c70bd870d9a4e751094", "score": "0.5445686", "text": "@Override\n public void onClick(View v) {\n TimePickerDialogFragment fragment = new TimePickerDialogFragment(\n activity_new_event_start_time_button,\n activity_new_event_start_time_button);\n\n // fragment.getDialog().getWindow().setLayout(100, 100);\n fragment.show(getFragmentManager(),\n \"start_time_picker_dialog\");\n\n }", "title": "" }, { "docid": "8ba715153887839b88a4b3ff8ffd279a", "score": "0.5445682", "text": "public void startClock()\n {\n timerObject.start();\n }", "title": "" }, { "docid": "9386e7bf6cbb0ea665cfbe3a667eb1ea", "score": "0.5419594", "text": "SchedulingWindow createSchedulingWindow();", "title": "" }, { "docid": "b34e5f2513ffe95ca51224bd6bcc8a18", "score": "0.54187316", "text": "public Retur() {\n initComponents();\n setExtendedState(JFrame.MAXIMIZED_BOTH);\n startClock();\n loadData(\"\");\n }", "title": "" }, { "docid": "88cc4cd252e4a8a81cfbd08c3bdc81d9", "score": "0.5402859", "text": "static TimeDialog newInstance(String key) {\n final TimeDialog timeDialog = new TimeDialog();\n final Bundle bundle = new Bundle(1);\n bundle.putString(ARG_KEY, key);\n timeDialog.setArguments(bundle);\n\n return timeDialog;\n }", "title": "" }, { "docid": "5a252eac89cb4b67665134d0bc7b4996", "score": "0.54027915", "text": "@Override\n\tpublic void initWidget() {\n\t\tsetContentView(R.layout.activity_timechoose);\t\t\n\t\tetDateText = (EditText)findViewById(R.id.etDateText);\t\t\n\t\tetPeriodText = (EditText)findViewById(R.id.etPeriodText);\n\t\tbtReply = (Button)findViewById(R.id.btReply);\n\t\tbtReply.setOnClickListener(this);\n\t\tDate d= new Date();\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tetDateText.setText(format.format(d));\n\t\tetPeriodText.setText(\"1小时\");\n\t}", "title": "" }, { "docid": "051584938a127d19684d2429d39202e7", "score": "0.53871095", "text": "public Registration() {\n initComponents();\n setSize(1079,730);\n //setLocation(570,230);\n setResizable(false);\n showDate();\n showTime();\n }", "title": "" }, { "docid": "00f20f90c79a0f37b722c0f1181bd84c", "score": "0.5382584", "text": "@Override\n public void onClick(View v) {\n TimePickerDialogFragment fragment = new TimePickerDialogFragment(\n activity_new_event_start_time_button,\n activity_new_event_end_time_button);\n fragment.show(getFragmentManager(),\n \"end_time_picker_dialog\");\n }", "title": "" }, { "docid": "ae156edb6742f0ff0b835ea696c4722e", "score": "0.5381569", "text": "public Manager() {\n initComponents();\n con = DBconnection.connect();\n tableload1();\n setfullscreen();\n \n //CLOCK\n new Thread() {\n public void run() {\n while (time == 0) {\n Calendar cal = new GregorianCalendar();\n\n int hour = cal.get(Calendar.HOUR);\n int min = cal.get(Calendar.MINUTE);\n int sec = cal.get(Calendar.SECOND);\n int ampm = cal.get(Calendar.AM_PM);\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH);\n int date = cal.get(Calendar.DATE);\n\n String day = \"\", Month = \"\";\n if (hour == 0 && ampm == 1) {\n hour = 12;\n }\n //AM PM\n if (ampm == 1) {\n day = \"PM\";\n } else {\n day = \"AM\";\n }\n\n //MONTH\n if (month == 0) {\n Month = \"January\";\n } else if (month == 1) {\n Month = \"February\";\n } else if (month == 2) {\n Month = \"March\";\n } else if (month == 3) {\n Month = \"April\";\n } else if (month == 4) {\n Month = \"May\";\n } else if (month == 5) {\n Month = \"June\";\n } else if (month == 6) {\n Month = \"July\";\n } else if (month == 7) {\n Month = \"August\";\n } else if (month == 8) {\n Month = \"September\";\n } else if (month == 9) {\n Month = \"October\";\n } else if (month == 10) {\n Month = \"November\";\n } else if (month == 11) {\n Month = \"December\";\n }\n String clock = hour + \":\" + min + \":\" + sec + \" \";\n String today = year + \" \" + Month + \" \" + date;\n\n clockss6.setText(clock);\n dayss6.setText(day);\n yearss6.setText(String.valueOf(year));\n Monthss6.setText(String.valueOf(Month));\n datess6.setText(String.valueOf(date));\n }\n }\n }.start();\n }", "title": "" }, { "docid": "f3f77ad961bcd894ee7279e5c1c51028", "score": "0.5369703", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return new TimePickerDialog(getActivity(), (ExerciseFormActivity) getActivity(), 6,\n 30, DateFormat.is24HourFormat(getActivity()));\n }", "title": "" }, { "docid": "5301f95985aaf77b1365d1c2ff7d31ac", "score": "0.536736", "text": "void modeButton(Clock clock);", "title": "" }, { "docid": "1683d15077b6c6d2b2fe127e64ec14fc", "score": "0.5367288", "text": "public DateTimePicker() {\n VBox popupVBoxTop = new VBox(5);\n popupVBoxTop.setPadding(new Insets(0, 0, 5, 0));\n popupVBoxTop.setBackground(new Background(new BackgroundFill(Color.WHITE, new CornerRadii(5), null)));\n popupVBoxTop.setBorder(new Border(new BorderStroke(Color.GRAY, BorderStrokeStyle.SOLID, new CornerRadii(5), BorderStroke.DEFAULT_WIDTHS)));\n\n datePicker = new DatePicker(LocalDate.now());\n popupVBoxTop.getChildren().add(datePicker);\n\n timePicker = new TimePicker();\n popupVBoxTop.getChildren().add(timePicker);\n\n scheduleButton = new Button(\"Schedule\");\n scheduleButton.getStyleClass().setAll(\"btn\", \"btn-default\");\n\n popupVBoxTop.setAlignment(Pos.CENTER);\n getChildren().add(popupVBoxTop);\n getChildren().add(scheduleButton);\n setAlignment(Pos.CENTER);\n }", "title": "" }, { "docid": "b87cd0281e9deceffb60533be82ccdc1", "score": "0.53528905", "text": "public billing() {\n initComponents();\n SimpleDateFormat dFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date date = new Date();\n jLabel5.setText(dFormat.format(date));\n \n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"HH:mm:ss\");\n LocalDateTime now = LocalDateTime.now();\n jLabel6.setText(dtf.format(now));\n \n \n }", "title": "" }, { "docid": "aaaecbd477ba0051c182d2cede8c0216", "score": "0.5351234", "text": "public AlarmClock(ClockInput input, ClockOutput output) {\n\t\tthis.input = input;\n\t\tthis.output = output;\n\n\t\tclock = new Clock(output);\n\t\ttimeThread = new TimeThread(clock);\n\t\teditThread = new EditThread(input, clock);\n\t\t\n\t\ttimeThread.start();\n\t\teditThread.start();\n\t}", "title": "" }, { "docid": "462be6f1d3bfe04cb2ba7feeb1585b4d", "score": "0.5345079", "text": "@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n time.setText(selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }", "title": "" }, { "docid": "0bdbba4e7df596ed85a5bacec4a79899", "score": "0.53446275", "text": "public TimeTextField() {\n super(DEFAULT_TIME);\n addFocusListener(new FocusListener() {\n /**\n * Nothing to do\n * \n * @see java.awt.event.FocusListener#focusGained(java.awt.event.FocusEvent)\n */\n public void focusGained(FocusEvent arg0) {\n }\n\n /**\n * Validate the input\n * \n * @see java.awt.event.FocusListener#focusLost(java.awt.event.FocusEvent)\n */\n public void focusLost(FocusEvent arg0) {\n validateInput();\n }\n });\n }", "title": "" }, { "docid": "43f8ccc041e991e986d3f8b2f4b85d8c", "score": "0.5342967", "text": "public ChronoView() {\n timerLabel = new JLabel(\"0:0:0:0\", SwingConstants.CENTER); \n timerLabel.setFont(new Font(timerLabel.getFont().getFontName(), Font.PLAIN, 20));\n timerLabel.setVisible(false);\n timerLabel.setBorder(new EmptyBorder(10,0,10,0));//top,left,bottom,right\n }", "title": "" }, { "docid": "7a0317abe6c3a68c906bc600ee52cf53", "score": "0.53342086", "text": "public void launchTimePicker(Context context) {\n new TimePickerDialog(context, this, 0, 0, true).show();\n }", "title": "" }, { "docid": "81220e33211446b9d45f13da40881214", "score": "0.53340554", "text": "public void addBlockoutTime(View view){\n\n TimeShort newStartTime, newEndTime;\n\n newStartTime = getTime(startTimePicker);\n newEndTime = getTime(endTimePicker);\n\n ArrayList<Day> newDayList = getDays();\n if(!(newDayList.size()>0)){\n AlertDialog.Builder noDaysErrorDialog = new AlertDialog.Builder(SelectBlockoutTimes.this);\n noDaysErrorDialog.setTitle(\"Can't block out a time with no days\");\n //noDaysErrorDialog.setPositiveButton(\"OKAY\", null);\n noDaysErrorDialog.show();\n return;\n }\n\n String blockoutTimeName = nameBlockoutTime.getText().toString();\n if(blockoutTimeName.equals(\"\")){\n nameBlockoutTime.setError(\"Please give this a name\");\n nameBlockoutTime.requestFocus();\n return;\n }\n else {\n nameBlockoutTime.setError(null);\n nameBlockoutTime.setText(\"\");\n }\n\n if( workRadioButton.isChecked())\n {\n type = BlockType.WORK;\n }\n else if( commuteRadioButton.isChecked())\n {\n type = BlockType.COMMUTE;\n }\n else if( sleepRadioButton.isChecked())\n {\n type = BlockType.SLEEP;\n }\n else if( studyRadioButton.isChecked())\n {\n type = BlockType.STUDY;\n }\n else if( otherRadioButton.isChecked())\n {\n type = BlockType.OTHER;\n }\n\n\n Course newBlockoutCourse = new Course(\"BLOCKOUT\",\"BLOCKOUT\", \"BLOCKOUT\");\n Section newBlockoutTime = new Section(Integer.parseInt(type.toString()), blockoutTimeName , \"\", newStartTime, newEndTime, newDayList, ClassStatus.OPEN, newBlockoutCourse);\n newBlockoutCourse.addSection(newBlockoutTime);\n\n currentBlockoutTimes.add(newBlockoutTime);\n blockoutTimesListAdapter.notifyDataSetChanged();\n\n }", "title": "" }, { "docid": "4b5e186185f416e35c12766064775031", "score": "0.5333568", "text": "public DateTime_JPanel() {\n initComponents();\n }", "title": "" }, { "docid": "f465f2f37034ad5fe9740e1a060933ba", "score": "0.5333478", "text": "@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AturJadwalSiram.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n edtJam.setText( \"\"+hour );\n edtMenit.setText( \"\"+minute );\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n }", "title": "" }, { "docid": "59897d2e76891d9a835ef9c770b98cc5", "score": "0.5321471", "text": "@Override\n public void onClick(View view) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(Calendar_view.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n tvTo.setText( selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, DateFormat.is24HourFormat(Calendar_view.this));//Yes 24 hour time\n\n mTimePicker.show();\n }", "title": "" }, { "docid": "3c44193c76b271764b7850761f2f5da8", "score": "0.5318645", "text": "@Override\n public void onClick(View view) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(Calendar_view.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n tvFrom.setText( selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, DateFormat.is24HourFormat(Calendar_view.this));//Yes 24 hour time\n\n mTimePicker.show();\n }", "title": "" }, { "docid": "a8e1737710516cf38661122f069d5f87", "score": "0.53162587", "text": "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n \tBundle args = this.getArguments();\r\n \tint time = args.getInt(EditScheduleActivity.TIME_BOARD_KEY);\r\n \tint h = time/ScheduleRecord.HOUR_MASK;\r\n \tint m = time%ScheduleRecord.HOUR_MASK;\r\n int hour = h;\r\n int minute = m;\r\n \r\n\r\n // Create a new instance of TimePickerDialog and return it\r\n return new TimePickerDialog(getActivity(), this, hour, minute,\r\n DateFormat.is24HourFormat(getActivity()));\r\n }", "title": "" }, { "docid": "085a16dc633643a2b776997ed0773858", "score": "0.5314583", "text": "@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n etStartTime.setText( String.format(\"%02d:%02d\",selectedHour , selectedMinute));\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }", "title": "" }, { "docid": "0af67bac24789b1770a15c8fd56be86f", "score": "0.5312352", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\r\n\t\t\t\ttimePicker = new TimePickerDialog(Reservation.this,\r\n\t\t\t\t\t\tnew OnTimeSetListener() {\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onTimeSet(TimePicker view,\r\n\t\t\t\t\t\t\t\t\tint hourOfDay, int minute) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\t\thour = hourOfDay;\r\n\t\t\t\t\t\t\t\tReservation.this.minute = minute;\t\t\t\t\r\n\t\t\t\t\t\t\t\tString AM_PM=\"AM\";\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(hourOfDay>=12){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tAM_PM=\"PM\";\r\n\t\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\t\t\t\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\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(hourOfDay>12){\r\n\t\t\t\t\t\t\t\t\thourOfDay=hourOfDay-12;\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\t\r\n\r\n\r\n\t\t\t\t\t\t\t\tif (minute <= 9) {\r\n\t\t\t\t\t\t\t\t\tedtPTime.setText(hourOfDay + \":\" + \"0\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ minute+\" \"+AM_PM);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tedtPTime.setText(hourOfDay + \":\" + minute+\" \"+AM_PM);\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}, hour, minute, false);\r\n\r\n\t\t\t\ttimePicker.show();\r\n\r\n\t\t\t}", "title": "" }, { "docid": "860e1dcc70d65b7e188b94347797b1e2", "score": "0.530702", "text": "@Override\n public void run() {\n String time = LocalTime.now().format(DateTimeFormatter.ofPattern(\"hh:mm:ss a\"));\n // Setting the time in a label\n lblClock.setText(time);\n }", "title": "" }, { "docid": "3331a52a16a3c6b79f490c0c9201764c", "score": "0.53053147", "text": "public void setCurrentTime() {\r\n // Construct a calendar for the current date and time\r\n Calendar calendar = new GregorianCalendar();\r\n\r\n // Set current hour, minute and second\r\n this.hour = calendar.get(Calendar.HOUR_OF_DAY);\r\n this.minute = calendar.get(Calendar.MINUTE);\r\n this.second = calendar.get(Calendar.SECOND);\r\n \r\n paintClock(); // Repaint the clock\r\n }", "title": "" }, { "docid": "328dc31d022b4f0a43616136633b39c1", "score": "0.52958715", "text": "public DangKyForm() {\n this.setUndecorated(true);\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\n initComponents();\n this.setSize(850, 540);\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width / 2 - this.getSize().width / 2, dim.height / 2 - this.getSize().height / 2);\n this.setBackground(new Color(0, 0, 0, 0));\n tfNgaySinh.setFormats(\"yyyy-MM-dd\");\n tfNgaySinh.getEditor().setBorder(BorderFactory.createEmptyBorder(0, 1, 0, 1));\n tfNgaySinh.getEditor().setOpaque(false);\n JButton btn_pick = (JButton) tfNgaySinh.getComponent(1);\n btn_pick.setOpaque(false);\n btn_pick.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ImageGiaoDien/icons8_calendar_35px_1.png\")));\n\n }", "title": "" }, { "docid": "b960bd769acdbd840f2f8912c6aa986f", "score": "0.52927125", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tbuilder_time_picker.show();\r\n\t\t\t}", "title": "" }, { "docid": "b960bd769acdbd840f2f8912c6aa986f", "score": "0.52927125", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tbuilder_time_picker.show();\r\n\t\t\t}", "title": "" }, { "docid": "8ebbb4413ee2f53dfa3c0c34c7e4da5a", "score": "0.5279419", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n clockLabel = new javax.swing.JLabel();\n\n setOpaque(false);\n\n clockLabel.setFont(new java.awt.Font(\"Radioland\", 0, 18)); // NOI18N\n clockLabel.setForeground(new java.awt.Color(66, 149, 146));\n clockLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\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 .addComponent(clockLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 290, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(clockLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "09b08acb6f5c4d59c5bdb32285a9d190", "score": "0.52720976", "text": "public NewCustomer3() {\n initComponents();\n dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n timeFormat = new SimpleDateFormat(\"hh:mm:ss\");\n }", "title": "" }, { "docid": "5b2bd2ed96515a6b2ff372a92e134063", "score": "0.5268947", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState){\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n //Create and return a new instance of TimePickerDialog\n return new TimePickerDialog(getActivity(),this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }", "title": "" }, { "docid": "c9ce98a6a9ba2a10b5763ec5c6894e23", "score": "0.5268915", "text": "private void initializeComponent() throws Exception {\n this.components = new System.ComponentModel.Container();\n System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(FormTimeCard.class);\n this.textTotal = new System.Windows.Forms.TextBox();\n this.labelRegularTime = new System.Windows.Forms.Label();\n this.label2 = new System.Windows.Forms.Label();\n this.label3 = new System.Windows.Forms.Label();\n this.timer1 = new System.Windows.Forms.Timer(this.components);\n this.groupBox1 = new System.Windows.Forms.GroupBox();\n this.textDatePaycheck = new System.Windows.Forms.TextBox();\n this.textDateStop = new System.Windows.Forms.TextBox();\n this.textDateStart = new System.Windows.Forms.TextBox();\n this.label4 = new System.Windows.Forms.Label();\n this.labelOvertime = new System.Windows.Forms.Label();\n this.textOvertime = new System.Windows.Forms.TextBox();\n this.groupBox2 = new System.Windows.Forms.GroupBox();\n this.radioBreaks = new System.Windows.Forms.RadioButton();\n this.radioTimeCard = new System.Windows.Forms.RadioButton();\n this.textOvertime2 = new System.Windows.Forms.TextBox();\n this.textTotal2 = new System.Windows.Forms.TextBox();\n this.gridMain = new OpenDental.UI.ODGrid();\n this.textRateTwo2 = new System.Windows.Forms.TextBox();\n this.labelRateTwo = new System.Windows.Forms.Label();\n this.textRateTwo = new System.Windows.Forms.TextBox();\n this.butCalcDaily = new OpenDental.UI.Button();\n this.butPrint = new OpenDental.UI.Button();\n this.butCalcWeekOT = new OpenDental.UI.Button();\n this.butAdj = new OpenDental.UI.Button();\n this.butRight = new OpenDental.UI.Button();\n this.butLeft = new OpenDental.UI.Button();\n this.butClose = new OpenDental.UI.Button();\n this.groupBox1.SuspendLayout();\n this.groupBox2.SuspendLayout();\n this.SuspendLayout();\n //\n // textTotal\n //\n this.textTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.textTotal.Location = new System.Drawing.Point(491, 643);\n this.textTotal.Name = \"textTotal\";\n this.textTotal.Size = new System.Drawing.Size(66, 20);\n this.textTotal.TabIndex = 3;\n this.textTotal.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\n //\n // labelRegularTime\n //\n this.labelRegularTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.labelRegularTime.Font = new System.Drawing.Font(\"Microsoft Sans Serif\", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n this.labelRegularTime.Location = new System.Drawing.Point(385, 644);\n this.labelRegularTime.Name = \"labelRegularTime\";\n this.labelRegularTime.Size = new System.Drawing.Size(100, 17);\n this.labelRegularTime.TabIndex = 4;\n this.labelRegularTime.Text = \"Regular Time\";\n this.labelRegularTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // label2\n //\n this.label2.Location = new System.Drawing.Point(146, 8);\n this.label2.Name = \"label2\";\n this.label2.Size = new System.Drawing.Size(96, 18);\n this.label2.TabIndex = 6;\n this.label2.Text = \"Start Date\";\n this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // label3\n //\n this.label3.Location = new System.Drawing.Point(143, 28);\n this.label3.Name = \"label3\";\n this.label3.Size = new System.Drawing.Size(99, 18);\n this.label3.TabIndex = 8;\n this.label3.Text = \"End Date\";\n this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // timer1\n //\n this.timer1.Enabled = true;\n this.timer1.Interval = 1000;\n this.timer1.Tick += new System.EventHandler(this.timer1_Tick);\n //\n // groupBox1\n //\n this.groupBox1.Controls.Add(this.textDatePaycheck);\n this.groupBox1.Controls.Add(this.textDateStop);\n this.groupBox1.Controls.Add(this.textDateStart);\n this.groupBox1.Controls.Add(this.butRight);\n this.groupBox1.Controls.Add(this.butLeft);\n this.groupBox1.Controls.Add(this.label4);\n this.groupBox1.Controls.Add(this.label2);\n this.groupBox1.Controls.Add(this.label3);\n this.groupBox1.Location = new System.Drawing.Point(18, 3);\n this.groupBox1.Name = \"groupBox1\";\n this.groupBox1.Size = new System.Drawing.Size(659, 51);\n this.groupBox1.TabIndex = 14;\n this.groupBox1.TabStop = false;\n this.groupBox1.Text = \"Pay Period\";\n //\n // textDatePaycheck\n //\n this.textDatePaycheck.Location = new System.Drawing.Point(473, 19);\n this.textDatePaycheck.Name = \"textDatePaycheck\";\n this.textDatePaycheck.ReadOnly = true;\n this.textDatePaycheck.Size = new System.Drawing.Size(100, 20);\n this.textDatePaycheck.TabIndex = 14;\n //\n // textDateStop\n //\n this.textDateStop.Location = new System.Drawing.Point(244, 28);\n this.textDateStop.Name = \"textDateStop\";\n this.textDateStop.ReadOnly = true;\n this.textDateStop.Size = new System.Drawing.Size(100, 20);\n this.textDateStop.TabIndex = 13;\n //\n // textDateStart\n //\n this.textDateStart.Location = new System.Drawing.Point(244, 8);\n this.textDateStart.Name = \"textDateStart\";\n this.textDateStart.ReadOnly = true;\n this.textDateStart.Size = new System.Drawing.Size(100, 20);\n this.textDateStart.TabIndex = 12;\n //\n // label4\n //\n this.label4.Location = new System.Drawing.Point(354, 19);\n this.label4.Name = \"label4\";\n this.label4.Size = new System.Drawing.Size(117, 18);\n this.label4.TabIndex = 9;\n this.label4.Text = \"Paycheck Date\";\n this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // labelOvertime\n //\n this.labelOvertime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.labelOvertime.Font = new System.Drawing.Font(\"Microsoft Sans Serif\", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n this.labelOvertime.Location = new System.Drawing.Point(385, 664);\n this.labelOvertime.Name = \"labelOvertime\";\n this.labelOvertime.Size = new System.Drawing.Size(100, 17);\n this.labelOvertime.TabIndex = 17;\n this.labelOvertime.Text = \"Overtime\";\n this.labelOvertime.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // textOvertime\n //\n this.textOvertime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.textOvertime.Location = new System.Drawing.Point(491, 663);\n this.textOvertime.Name = \"textOvertime\";\n this.textOvertime.Size = new System.Drawing.Size(66, 20);\n this.textOvertime.TabIndex = 16;\n this.textOvertime.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\n //\n // groupBox2\n //\n this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));\n this.groupBox2.Controls.Add(this.radioBreaks);\n this.groupBox2.Controls.Add(this.radioTimeCard);\n this.groupBox2.Location = new System.Drawing.Point(747, 3);\n this.groupBox2.Name = \"groupBox2\";\n this.groupBox2.Size = new System.Drawing.Size(122, 51);\n this.groupBox2.TabIndex = 20;\n this.groupBox2.TabStop = false;\n //\n // radioBreaks\n //\n this.radioBreaks.Location = new System.Drawing.Point(14, 27);\n this.radioBreaks.Name = \"radioBreaks\";\n this.radioBreaks.Size = new System.Drawing.Size(97, 19);\n this.radioBreaks.TabIndex = 1;\n this.radioBreaks.Text = \"Breaks\";\n this.radioBreaks.UseVisualStyleBackColor = true;\n this.radioBreaks.Click += new System.EventHandler(this.radioBreaks_Click);\n //\n // radioTimeCard\n //\n this.radioTimeCard.Checked = true;\n this.radioTimeCard.Location = new System.Drawing.Point(14, 10);\n this.radioTimeCard.Name = \"radioTimeCard\";\n this.radioTimeCard.Size = new System.Drawing.Size(97, 19);\n this.radioTimeCard.TabIndex = 0;\n this.radioTimeCard.TabStop = true;\n this.radioTimeCard.Text = \"Time Card\";\n this.radioTimeCard.UseVisualStyleBackColor = true;\n this.radioTimeCard.Click += new System.EventHandler(this.radioTimeCard_Click);\n //\n // textOvertime2\n //\n this.textOvertime2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.textOvertime2.Location = new System.Drawing.Point(563, 663);\n this.textOvertime2.Name = \"textOvertime2\";\n this.textOvertime2.Size = new System.Drawing.Size(66, 20);\n this.textOvertime2.TabIndex = 22;\n this.textOvertime2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\n //\n // textTotal2\n //\n this.textTotal2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.textTotal2.Location = new System.Drawing.Point(563, 643);\n this.textTotal2.Name = \"textTotal2\";\n this.textTotal2.Size = new System.Drawing.Size(66, 20);\n this.textTotal2.TabIndex = 21;\n this.textTotal2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\n //\n // gridMain\n //\n this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));\n this.gridMain.setHScrollVisible(false);\n this.gridMain.Location = new System.Drawing.Point(18, 60);\n this.gridMain.Name = \"gridMain\";\n this.gridMain.setScrollValue(0);\n this.gridMain.Size = new System.Drawing.Size(851, 580);\n this.gridMain.TabIndex = 13;\n this.gridMain.setTitle(\"Time Card\");\n this.gridMain.setTranslationName(\"TableTimeCard\");\n this.gridMain.CellDoubleClick = __MultiODGridClickEventHandler.combine(this.gridMain.CellDoubleClick,new OpenDental.UI.ODGridClickEventHandler() \n { \n public System.Void invoke(System.Object sender, OpenDental.UI.ODGridClickEventArgs e) throws Exception {\n this.gridMain_CellDoubleClick(sender, e);\n }\n\n public List<OpenDental.UI.ODGridClickEventHandler> getInvocationList() throws Exception {\n List<OpenDental.UI.ODGridClickEventHandler> ret = new ArrayList<OpenDental.UI.ODGridClickEventHandler>();\n ret.add(this);\n return ret;\n }\n \n });\n //\n // textRateTwo2\n //\n this.textRateTwo2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.textRateTwo2.Location = new System.Drawing.Point(563, 683);\n this.textRateTwo2.Name = \"textRateTwo2\";\n this.textRateTwo2.Size = new System.Drawing.Size(66, 20);\n this.textRateTwo2.TabIndex = 26;\n this.textRateTwo2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\n //\n // labelRateTwo\n //\n this.labelRateTwo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.labelRateTwo.Font = new System.Drawing.Font(\"Microsoft Sans Serif\", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n this.labelRateTwo.Location = new System.Drawing.Point(385, 684);\n this.labelRateTwo.Name = \"labelRateTwo\";\n this.labelRateTwo.Size = new System.Drawing.Size(100, 17);\n this.labelRateTwo.TabIndex = 25;\n this.labelRateTwo.Text = \"Rate2\";\n this.labelRateTwo.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // textRateTwo\n //\n this.textRateTwo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.textRateTwo.Location = new System.Drawing.Point(491, 683);\n this.textRateTwo.Name = \"textRateTwo\";\n this.textRateTwo.Size = new System.Drawing.Size(66, 20);\n this.textRateTwo.TabIndex = 24;\n this.textRateTwo.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\n //\n // butCalcDaily\n //\n this.butCalcDaily.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butCalcDaily.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.butCalcDaily.setAutosize(true);\n this.butCalcDaily.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butCalcDaily.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butCalcDaily.setCornerRadius(4F);\n this.butCalcDaily.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;\n this.butCalcDaily.Location = new System.Drawing.Point(139, 661);\n this.butCalcDaily.Name = \"butCalcDaily\";\n this.butCalcDaily.Size = new System.Drawing.Size(78, 24);\n this.butCalcDaily.TabIndex = 23;\n this.butCalcDaily.Text = \"Calc Daily\";\n this.butCalcDaily.Click += new System.EventHandler(this.butCalcDaily_Click);\n //\n // butPrint\n //\n this.butPrint.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butPrint.setAutosize(true);\n this.butPrint.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butPrint.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butPrint.setCornerRadius(4F);\n this.butPrint.Image = Resources.getbutPrint();\n this.butPrint.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;\n this.butPrint.Location = new System.Drawing.Point(691, 661);\n this.butPrint.Name = \"butPrint\";\n this.butPrint.Size = new System.Drawing.Size(86, 24);\n this.butPrint.TabIndex = 19;\n this.butPrint.Text = \"Print\";\n this.butPrint.Click += new System.EventHandler(this.butPrint_Click);\n //\n // butCalcWeekOT\n //\n this.butCalcWeekOT.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butCalcWeekOT.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.butCalcWeekOT.setAutosize(true);\n this.butCalcWeekOT.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butCalcWeekOT.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butCalcWeekOT.setCornerRadius(4F);\n this.butCalcWeekOT.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;\n this.butCalcWeekOT.Location = new System.Drawing.Point(223, 661);\n this.butCalcWeekOT.Name = \"butCalcWeekOT\";\n this.butCalcWeekOT.Size = new System.Drawing.Size(90, 24);\n this.butCalcWeekOT.TabIndex = 18;\n this.butCalcWeekOT.Text = \"Calc Week OT\";\n this.butCalcWeekOT.Click += new System.EventHandler(this.butCalcWeekOT_Click);\n //\n // butAdj\n //\n this.butAdj.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butAdj.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.butAdj.setAutosize(true);\n this.butAdj.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butAdj.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butAdj.setCornerRadius(4F);\n this.butAdj.Image = Resources.getAdd();\n this.butAdj.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;\n this.butAdj.Location = new System.Drawing.Point(18, 661);\n this.butAdj.Name = \"butAdj\";\n this.butAdj.Size = new System.Drawing.Size(115, 24);\n this.butAdj.TabIndex = 15;\n this.butAdj.Text = \"Add Adjustment\";\n this.butAdj.Click += new System.EventHandler(this.butAdj_Click);\n //\n // butRight\n //\n this.butRight.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butRight.setAutosize(true);\n this.butRight.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butRight.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butRight.setCornerRadius(4F);\n this.butRight.Image = Resources.getRight();\n this.butRight.Location = new System.Drawing.Point(63, 18);\n this.butRight.Name = \"butRight\";\n this.butRight.Size = new System.Drawing.Size(39, 24);\n this.butRight.TabIndex = 11;\n this.butRight.Click += new System.EventHandler(this.butRight_Click);\n //\n // butLeft\n //\n this.butLeft.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butLeft.setAutosize(true);\n this.butLeft.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butLeft.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butLeft.setCornerRadius(4F);\n this.butLeft.Image = Resources.getLeft();\n this.butLeft.Location = new System.Drawing.Point(13, 18);\n this.butLeft.Name = \"butLeft\";\n this.butLeft.Size = new System.Drawing.Size(39, 24);\n this.butLeft.TabIndex = 10;\n this.butLeft.Click += new System.EventHandler(this.butLeft_Click);\n //\n // butClose\n //\n this.butClose.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butClose.setAutosize(true);\n this.butClose.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butClose.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butClose.setCornerRadius(4F);\n this.butClose.Location = new System.Drawing.Point(794, 661);\n this.butClose.Name = \"butClose\";\n this.butClose.Size = new System.Drawing.Size(75, 24);\n this.butClose.TabIndex = 0;\n this.butClose.Text = \"&Close\";\n this.butClose.Click += new System.EventHandler(this.butClose_Click);\n //\n // FormTimeCard\n //\n this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);\n this.ClientSize = new System.Drawing.Size(891, 703);\n this.Controls.Add(this.textRateTwo2);\n this.Controls.Add(this.labelRateTwo);\n this.Controls.Add(this.textRateTwo);\n this.Controls.Add(this.butCalcDaily);\n this.Controls.Add(this.textOvertime2);\n this.Controls.Add(this.textTotal2);\n this.Controls.Add(this.groupBox2);\n this.Controls.Add(this.butPrint);\n this.Controls.Add(this.butCalcWeekOT);\n this.Controls.Add(this.labelOvertime);\n this.Controls.Add(this.textOvertime);\n this.Controls.Add(this.butAdj);\n this.Controls.Add(this.groupBox1);\n this.Controls.Add(this.gridMain);\n this.Controls.Add(this.labelRegularTime);\n this.Controls.Add(this.textTotal);\n this.Controls.Add(this.butClose);\n this.Icon = ((System.Drawing.Icon)(resources.GetObject(\"$this.Icon\")));\n this.MaximizeBox = false;\n this.MinimizeBox = false;\n this.Name = \"FormTimeCard\";\n this.ShowInTaskbar = false;\n this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\n this.Text = \"Time Card\";\n this.Load += new System.EventHandler(this.FormTimeCard_Load);\n this.groupBox1.ResumeLayout(false);\n this.groupBox1.PerformLayout();\n this.groupBox2.ResumeLayout(false);\n this.ResumeLayout(false);\n this.PerformLayout();\n }", "title": "" }, { "docid": "d7afa39d10e82eccc830b5f09469fe79", "score": "0.52683204", "text": "public void onButtonClicked(View v){\n TimePickerFragment newFragment = new TimePickerFragment();\n newFragment.show(getSupportFragmentManager(), \"timePicker\");\n }", "title": "" }, { "docid": "a9742a08779938b9587e2dfab1f96d71", "score": "0.52630806", "text": "public TestClocks(CasterClock c) {\n initComponents();\n internalClock = c;\n TickAction t = new TickAction();\n new Timer(500, t).start();\n }", "title": "" }, { "docid": "f7a149f88ff1824885dc50e3f8b30db9", "score": "0.52623063", "text": "public NetworkClockController() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3bd967a9cb860d3c622ea1e494ec3ef4", "score": "0.5261934", "text": "void showTime(int hour, int minute) {\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(MainActivity.this, this, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }", "title": "" }, { "docid": "3920094c9fa664f1d701d467005cfb37", "score": "0.525112", "text": "public TimeLineEntryGUI2() {\r\n initComponents();\r\n setPreferredSize(new java.awt.Dimension(350, 500));\r\n }", "title": "" }, { "docid": "16545a396639288a04ef2bdf225ce7a2", "score": "0.5247274", "text": "private void initTimePicker() {\n\t\t/* Create minute Wheel */\n\t\tmins = (WheelView) getActivity().findViewById(R.id.minPicker);\n\t\tmins.setViewAdapter(new NumericWheelAdapter(getActivity()\n\t\t\t\t.getApplicationContext(), 0, 60));\n\t\tmins.setCyclic(true);\n\n\t\t/* Create Seconds wheel */\n\t\tsecs = (WheelView) getActivity().findViewById(R.id.secPicker);\n\t\tsecs.setViewAdapter(new NumericWheelAdapter(getActivity()\n\t\t\t\t.getApplicationContext(), 0, 59));\n\t\tsecs.setCyclic(true);\n\n\t\t/* Create description of time chosen */\n\t\ttimeDescription = (TextView) getActivity().findViewById(R.id.showTime);\n\t\tsetTime(currSubP.get_totalTime());\n\n\t\t/* Add on change listeners for both wheels */\n\t\tmins.addChangingListener(new OnWheelChangedListener() {\n\t\t\tpublic void onChanged(WheelView wheel, int oldValue, int newValue) {\n\t\t\t\tupdateTime(mins.getCurrentItem(), secs.getCurrentItem());\n\n\t\t\t\tif (mins.getCurrentItem() == 60) {\n\t\t\t\t\tpreviousMins = 60;\n\t\t\t\t\tpreviousSecs = secs.getCurrentItem();\n\n\t\t\t\t\tsecs.setCurrentItem(0);\n\t\t\t\t\tsecs.setViewAdapter(new NumericWheelAdapter(getActivity()\n\t\t\t\t\t\t\t.getApplicationContext(), 0, 0));\n\t\t\t\t\tsecs.setCyclic(false);\n\t\t\t\t} else if (previousMins == 60) {\n\t\t\t\t\tsecs.setViewAdapter(new NumericWheelAdapter(getActivity()\n\t\t\t\t\t\t\t.getApplicationContext(), 0, 60));\n\n\t\t\t\t\tsecs.setCurrentItem(previousSecs);\n\t\t\t\t\tsecs.setCyclic(true);\n\t\t\t\t\tpreviousMins = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tsecs.addChangingListener(new OnWheelChangedListener() {\n\t\t\tpublic void onChanged(WheelView wheel, int oldValue, int newValue) {\n\t\t\t\tupdateTime(mins.getCurrentItem(), secs.getCurrentItem());\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "e80494e5aaaeeb8d110ce9a0cbdb47f0", "score": "0.5246121", "text": "@Override\n public void onClick(View v) {\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(BookingStep1.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n if(selectedMinute < 10)\n pickup_time.setText( selectedHour + \":0\" + selectedMinute);\n else\n pickup_time.setText( selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true); //Yes 24 hour time\n mTimePicker.setTitle(\"Select Pick-up Time\");\n mTimePicker.show();\n\n }", "title": "" }, { "docid": "733c73b9325ae8120b885698efddf028", "score": "0.52349347", "text": "public Main() {\n initComponents();\n displayTime();\n }", "title": "" }, { "docid": "3fb8bf98ee5213f8f2b3dea6fddb0a42", "score": "0.5225666", "text": "private void createOfflineTimecard() {\n timecard = new CMSEmployeeTimecard(theOpr, theStore.getId(), ITimecardConst.OFFLINE, 0, 0, 0, 0\n , 0, 0, 0, new Vector(), new Vector(), new Vector()\n , FiscalDate.computeWeekEndingDate(new Date()), false, true);\n SwingUtilities.invokeLater(new Runnable() {\n\n /**\n * put your documentation comment here\n */\n public void run() {\n if (theAppMgr.isOnLine())\n theAppMgr.showErrorDlg(res.getString(\"The system was unable to \"\n + \"retrieve a current timecard for you. Please make your appropriate\"\n + \" punch and notify the Help Desk.\"));\n else\n theAppMgr.showErrorDlg(res.getString(\"The system cannot retrieve your current \"\n + \"timecard while in off-line mode. Any timecard punches made while\"\n + \" off-line will post and be reviewable when the system is on-line.\"));\n }\n });\n }", "title": "" }, { "docid": "68e5a2085be9e7c15a3281a3dfac2d1e", "score": "0.52141964", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState){\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n //Create and return a new instance of TimePickerDialog\n return new TimePickerDialog(getActivity(),this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }", "title": "" }, { "docid": "b997adee264d597333ec7c42a5bf1c89", "score": "0.5211817", "text": "public void initUI() {\n\t\tview = new ClockWidgetGUI();\n\t}", "title": "" }, { "docid": "f0a083bbc8bb07e0f97daec139ce4797", "score": "0.52101976", "text": "public Calendario() {}", "title": "" }, { "docid": "832f171a0576a536003670b0d79d9ce9", "score": "0.52042925", "text": "void changeButton(Clock clock);", "title": "" }, { "docid": "601ac57f7577912d996c1db54451080b", "score": "0.5203271", "text": "private void initTimeControls() {\n LocalDate today = LocalDate.now();\n\n fromDateSelector.setValue(today);\n fromTimeControl.setLocalTime(LocalTime.of(0, 0, 0));\n toDateSelector.setValue(today.plusDays(1));\n toTimeControl.setLocalTime(LocalTime.of(0, 0, 0));\n }", "title": "" }, { "docid": "ae593797c1bc42d18670925eee93e1d4", "score": "0.5203252", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }", "title": "" }, { "docid": "ae593797c1bc42d18670925eee93e1d4", "score": "0.5203252", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }", "title": "" } ]
8c60926d895caefab1594847b186408b
wal = new RandomAccessFile(new File(walDirectory+"/wal.bin"), "rw").getChannel().map(MapMode.READ_WRITE, 0, length);
[ { "docid": "336198fc41e0dbda5127ea991399cfa7", "score": "0.0", "text": "@Override\n\tpublic void start() throws Exception {\n\t}", "title": "" } ]
[ { "docid": "09d2680a2b88745f2aac7d11f44c33df", "score": "0.58629894", "text": "public MMapRandomAccessFile(String location, String mode) throws IOException {\n super(location, mode, 1);\n FileChannel channel = file.getChannel();\n source = channel.map(readonly ? FileChannel.MapMode.READ_ONLY : FileChannel.MapMode.READ_WRITE, (long) 0,\n channel.size());\n // channel.close();\n\n bufferStart = 0;\n dataSize = (int) channel.size();\n dataEnd = channel.size();\n filePosition = 0;\n buffer = null;\n endOfFile = false;\n }", "title": "" }, { "docid": "68a2e0a4b30cc3fc77ee5a038f43ce3a", "score": "0.5537439", "text": "public void open() throws IOException {\n synchronized (lockObject) {\n lastAccessTime = System.nanoTime();\n initFile();\n\n long pagesCount = segChannel.size() / OWALPage.PAGE_SIZE;\n\n if (segChannel.size() % OWALPage.PAGE_SIZE > 0) {\n OLogManager.instance().error(this, \"Last WAL page was written partially, auto fix\", null);\n\n segChannel.truncate(OWALPage.PAGE_SIZE * pagesCount);\n }\n\n firstCachedPage = -1;\n pageCache.clear();\n\n lastWrittenPage = null;\n lastWrittenPageIndex = -1;\n }\n }", "title": "" }, { "docid": "f718b6ecfd388dd0855d03807e01f79c", "score": "0.5458061", "text": "@Override\n\tpublic void write(byte[] b, int off, int len) throws IOException {\n\t\tif (migrated) {\n\t\t\tfileStream = new RandomAccessFile(fileName, \"rws\");\n\t\t\tmigrated = false;\n\t\t}\n\t\tfileStream.seek(counter);\n\t\tfileStream.write(b, off, len);\n\t\tcounter += len;\n\t}", "title": "" }, { "docid": "dda64b612a7c4f93abf568eb9f62a89b", "score": "0.54355866", "text": "public interface MappedFile {\n\n ByteBuffer getByteBuffer(int position);\n\n ByteBuffer getByteBuffer(int position , int size );\n\n ByteBuffer getByteBuffer();\n\n int getWritePosition();\n\n void setWritePosition(int position);\n\n int getFlushPosition();\n\n File getFile();\n\n int getFileSize();\n\n void flush() throws IOException;\n\n\n boolean isFull();\n\n void close() throws IOException;\n\n boolean isClose();\n\n\n void delete();\n\n boolean isDirty();\n}", "title": "" }, { "docid": "25d77188d7393ee8b32ac36a12449bde", "score": "0.5389635", "text": "public interface BinaryBackend {\n\n\n SeekableByteChannel read(String path) throws IOException;\n\n SeekableByteChannel write(String path) throws IOException;\n}", "title": "" }, { "docid": "1725eaed0726b12a40b060e249cb4702", "score": "0.53293437", "text": "@Override\n\tpublic void write(byte[] b) throws IOException {\n\t\tif (migrated) {\n\t\t\tfileStream = new RandomAccessFile(fileName, \"rws\");\n\t\t\tmigrated = false;\n\t\t}\n\t\tfileStream.seek(counter);\n\t\tfileStream.write(b);\n\t\tcounter += b.length;\n\t}", "title": "" }, { "docid": "5e6d17ae813a3c739691a7998397eff8", "score": "0.5324666", "text": "public ReadWriteStockData() throws FileNotFoundException {\n dataFile = new RandomAccessFile(RELATIVE_PATH, \"rw\");\n }", "title": "" }, { "docid": "009a27bb0fabce8bd5fc45a2f3dd1d3e", "score": "0.5259103", "text": "public synchronized void m17240h() throws IOException {\n if (this.f15578m != null) {\n this.f15578m.close();\n }\n BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(this.f15572g), C7789k.f15667a));\n try {\n bufferedWriter.write(\"libcore.io.DiskLruCache\");\n bufferedWriter.write(\"\\n\");\n bufferedWriter.write(\"1\");\n bufferedWriter.write(\"\\n\");\n bufferedWriter.write(Integer.toString(this.f15574i));\n bufferedWriter.write(\"\\n\");\n bufferedWriter.write(Integer.toString(this.f15576k));\n bufferedWriter.write(\"\\n\");\n bufferedWriter.write(\"\\n\");\n for (C7764b bVar : this.f15567b.values()) {\n if (bVar.f15592d != null) {\n StringBuilder sb = new StringBuilder(\"DIRTY \");\n sb.append(bVar.f15589a);\n sb.append(10);\n bufferedWriter.write(sb.toString());\n } else {\n StringBuilder sb2 = new StringBuilder(\"CLEAN \");\n sb2.append(bVar.f15589a);\n sb2.append(bVar.mo24382a());\n sb2.append(10);\n bufferedWriter.write(sb2.toString());\n }\n }\n bufferedWriter.close();\n if (this.f15571f.exists()) {\n m17228a(this.f15571f, this.f15573h, true);\n }\n m17228a(this.f15572g, this.f15571f, false);\n this.f15573h.delete();\n this.f15578m = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(this.f15571f, true), C7789k.f15667a));\n } catch (Throwable th) {\n bufferedWriter.close();\n throw th;\n }\n }", "title": "" }, { "docid": "375fadd3b77f3f2d91527449c1607191", "score": "0.5224922", "text": "public static void main(String[] args) {\n\t\ttry {\n\t\t\tRandomAccessFile raf = new RandomAccessFile(\"data.bin\", \"rw\");\n\t\t\t\n\t\t\tSystem.out.println(\"Write.............................\");\n\t\t\tSystem.out.printf(\"현재 입출력 위치 ::%d 바이트 \\n\",raf.getFilePointer());\n\t\t\t\n\t\t\traf.writeInt(200);\n\t\t\traf.writeInt(500);\n\t\t\tSystem.out.printf(\"현재 입출력 위치 ::%d 바이트 \\n\",raf.getFilePointer());//위치 정보 제공\n\t\t\t\n\t\t\traf.writeDouble(3.14);\n\t\t\tSystem.out.printf(\"현재 입출력 위치 ::%d 바이트 \\n\",raf.getFilePointer());//위치 정보 제공\n\t\t\t\n\t\t\traf.seek(0);\n\t\t\tSystem.out.printf(\"현재 입출력 위치 ::%d 바이트 \\n\",raf.getFilePointer());//위치 정보 제공\n\t\t\t\n\t\t\tSystem.out.println(raf.readInt());\n\t\t\t\n\t\t\tSystem.out.println(raf.readInt());\n\t\t\t\n\t\t\tSystem.out.println(raf.readDouble());\n\t\t\t\n\t\t\traf.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}", "title": "" }, { "docid": "e1ce339750b3ae87ac58652cbaa311a3", "score": "0.5204705", "text": "public DiskMemoryWAL() {\n\t\toffsetMap = new ConcurrentSkipListMap<>();\n\t}", "title": "" }, { "docid": "5197f5c0702ebd2a1faf36d00434a2af", "score": "0.51956946", "text": "@Override\n\tpublic void write(int b) throws IOException {\n\t\tif (migrated) {\n\t\t\tfileStream = new RandomAccessFile(fileName, \"rws\");\n\t\t\tmigrated = false;\n\t\t}\n\t\tfileStream.seek(counter++);\n\t\tfileStream.write(b);\n\t}", "title": "" }, { "docid": "7a9af2446bdaca9b194d3d6ad259e530", "score": "0.51700485", "text": "public void initForWriting() {\n delta = new AtomicHashMapDelta();\n }", "title": "" }, { "docid": "a65e52fb5316cc7675bcba78e4146dbb", "score": "0.5143463", "text": "public void run(){\n try{\n String filePath = getCacheDir().getPath() + File.separator + \"state\";\n File runningStat = new File(filePath);\n if(!runningStat.exists()){\n runningStat.createNewFile();\n }\n FileOutputStream fileOutputStream = new FileOutputStream(runningStat,false);\n fileOutputStream.write(\"0\".getBytes());\n fileOutputStream.flush();\n fileOutputStream.close();\n Thread.sleep(2000);\n fileOutputStream = new FileOutputStream(runningStat,false);\n fileOutputStream.write(\"1\".getBytes());\n fileOutputStream.flush();\n fileOutputStream.close();\n }catch(Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "58f01512e3a70ad2834cc3aeb76c59c9", "score": "0.5062269", "text": "@Test\n public void testWriterBuffered(){\n final File file = new File(testSpaceDirectory, \"buffered.txt\");\n final byte[] byteArray = ChunkGenerator.generateChunk(10000);\n final WriterInterface wi = new WriterBuffered(8192,file);\n wi.setAutomaticFileRemoval(false);\n for(int i = 0; i < 10; i++){\n wi.handleData(byteArray);\n }\n wi.finish();\n //check if the file is there and has the correct size\n Assert.assertTrue(file.exists());\n Assert.assertEquals(100000,file.length());\n }", "title": "" }, { "docid": "bc44016e2d3990ebb9aac3899063d426", "score": "0.5048588", "text": "private File getIndexFile() {\n return new File(dictionaryDirectory, dictionaryIndex);\n }", "title": "" }, { "docid": "75c395091af6df2813d98ad15999e3f4", "score": "0.5041817", "text": "private void beginWriteLock()\r\n {\r\n rwLock.writeLock().lock();\r\n }", "title": "" }, { "docid": "b357cfada6e886ed42d67571819884b9", "score": "0.50353605", "text": "public final synchronized void wl(int i) {\n synchronized (this) {\n AppMethodBeat.i(21264);\n if (i >= 0) {\n try {\n if (this.mNX != null) {\n RandomAccessFile randomAccessFile = new RandomAccessFile(new File(this.mNW, wo(i)), \"rw\");\n this.mNX.remove(i);\n this.mNX.add(i, randomAccessFile);\n AppMethodBeat.o(21264);\n }\n } catch (Exception e) {\n ab.e(\"MicroMsg.DiskCache\", \"create data file error: %s\", e.getMessage());\n ab.printErrStackTrace(\"MicroMsg.DiskCache\", e, \"\", new Object[0]);\n this.mNX = null;\n AppMethodBeat.o(21264);\n }\n }\n this.mNX = new ArrayList();\n for (int i2 = 0; i2 < 25; i2++) {\n this.mNX.add(new RandomAccessFile(new File(this.mNW, wo(i2)), \"rw\"));\n }\n AppMethodBeat.o(21264);\n }\n return;\n }", "title": "" }, { "docid": "5f81c9610e0d3a6c5fcc8b64fe3cd2b0", "score": "0.50239205", "text": "private void getWriterLock(Path p) throws FileNotFoundException {\n try {\n if (!isDirectory(p)) {\n synchronized(NamingServer.this) {\n Integer replCount = replCounter.get(p);\n if (replCount == null) {\n replCounter.put(p , 1);\n }\n clearCopies cTid = new clearCopies(p);\n cTid.start();\n }\n }\n lockList.get(p).lockWriter();\n } catch (InterruptedException e) {\n return;\n }\n }", "title": "" }, { "docid": "69cf51cb25d233f15a326e963e66304d", "score": "0.502118", "text": "private FileLock getWriteLock(FileChannel ch) throws TimeoutException, IOException {\n\treturn obtainLock(ch, false);\n }", "title": "" }, { "docid": "1d4d14f1cd2c00522f5f9ffe9a23ae22", "score": "0.49892336", "text": "public StringMappingFileWriter() {\n\t\tthis.sb = new StringBuilder(1024 * 1024); // reserve 1 MiB space\n\t}", "title": "" }, { "docid": "f36bcdb7962bc98a4915b6bbe5f121c1", "score": "0.49611926", "text": "WaveFile(RandomAccessFile randomAccessFile){\n this.randomAccessFile = randomAccessFile;\n }", "title": "" }, { "docid": "155306841bef5517892c9709d517fc9f", "score": "0.49399206", "text": "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n\t\t\t\tMappedByteBuffer mapBuffer=rAccessFile.getChannel().map(MapMode.READ_ONLY, start, this.sliceSize);\n\t\t\t\tByteArrayOutputStream bos=new ByteArrayOutputStream();\n\t\t\t\tfor(int offset=0;offset<sliceSize;offset+=bufferSize){\n\t\t\t\t\tint readLength;\n\t\t\t\t\tif(offset+bufferSize<=sliceSize){\n\t\t\t\t\t\treadLength=bufferSize;\n\t\t\t\t\t}else{\n\t\t\t\t\t\treadLength=(int) (sliceSize-offset);\n\t\t\t\t\t}\n\t\t\t\t\tmapBuffer.get(readBuff, 0, readLength);\n\t\t\t\t\tfor(int i=0;i<readLength;i++){\n\t\t\t\t\t\tbyte temp=readBuff[i];\n\t\t\t\t\t\tif(temp=='\\n'||temp=='\\r'){\n\t\t\t\t\t\t\thandle(bos.toByteArray());\n\t\t\t\t\t\t\tbos.reset();\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbos.write(temp);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(bos.size()>0){\n\t\t\t\t\thandle(bos.toByteArray());\n\t\t\t\t}\n\t\t\t\tcyclicBarrier.await();\n\t\t\t}catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}finally{\n\t\t\t\tshutdown();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "fded7701e9f2e65d4deea2aa2889b1ab", "score": "0.49355045", "text": "private File getMapFile() {\n\n //TODO: Este forma de operar debe cambiar. El incluir el mapa en los recursos del apk le agrega un peso innecesario para la descarga\n //y la instalacion. A mayor peso del archivo en la Play Store, va descendiendo la preferncia del usuario por descargarlo.\n //La idea es que el archivo de mapa se descargue desde la aplicacion\n\n String filePath= Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).toString();\n File targetFile=new File(filePath + \"/barranquilla.map\");\n\n if(targetFile.exists())\n {\n return targetFile;\n }\n else\n {\n try {\n InputStream fileIS = getResources().openRawResource(R.raw.barranquilla);\n\n //InputStream initialStream = new FileInputStream(new File(\"src/main/resources/sample.txt\"));\n byte[] buffer = new byte[fileIS.available()];\n fileIS.read(buffer);\n\n targetFile.createNewFile();\n\n OutputStream outStream = new FileOutputStream(targetFile);\n outStream.write(buffer);\n\n outStream.close();\n\n return targetFile;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return targetFile;\n }", "title": "" }, { "docid": "c77b7950168f85e5f45e5e868f353fb5", "score": "0.4921762", "text": "public void writeNumbers() {\n File myPath = new File(\"/tmp/a/b\");\n\n myPath.mkdirs();\n\n try {\n\n OutputStream output = new FileOutputStream(myPath);\n for (int i = 0; i < 10000000; i++) {\n // Random random = new Random();\n\n output.write(5);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "f5d33e3a50957ea2c28743bfcae49d69", "score": "0.48875237", "text": "public long getLastWriteTime()\n {\n return 0;\n }", "title": "" }, { "docid": "11b9cbb53278b8097829021f291fc5f9", "score": "0.48856723", "text": "long write(FileObject file) throws IOException;", "title": "" }, { "docid": "e598751a51d9c50b903f7d5e8c57e422", "score": "0.4878599", "text": "File getMapFile();", "title": "" }, { "docid": "ae7e31c2f7713511e962da26d35d90d9", "score": "0.48324686", "text": "private void initRandomAccessFile()\n\t\tthrows Exception\n\t{\n\t\tFile file = new File(fileName);\n\n\t\tsrcFile = new RandomAccessFile(file, mode);\n\t\tfileSize = srcFile.length();\n\t}", "title": "" }, { "docid": "ac2c0b571c49108f20389f5851b0b8bf", "score": "0.48319602", "text": "public static void main(String[] args) throws IOException, InterruptedException {\n\n RandomAccessFile accessFile = new RandomAccessFile(\"data.txt\",\"rw\");\n FileChannel fileChannel = accessFile.getChannel();\n ByteBuffer byteBuffer = ByteBuffer.allocate(42);\n //read 48\n //String data int bool char long float doub\n //15\n //表示没有写完,缓冲区大小有限制,只读入48,剩下的等读完,清空缓存区,再次继续读入。\n int bytecount = fileChannel.read(byteBuffer);\n while (bytecount!=-1)\n {\n System.out.println(\"read \"+ bytecount);\n byteBuffer.flip();\n bytecount = -1;\n }\n String temp = \"\";\n while (byteBuffer.hasRemaining())\n {\n char c = (char) byteBuffer.get();\n if(c!='\\r'&&c!='\\n')\n {\n temp +=c;\n }else\n {\n System.out.print(temp+\" \");\n temp = \"\";\n }\n }\n System.out.println(temp);\n byteBuffer.clear();\n bytecount = fileChannel.read(byteBuffer);\n System.out.println(bytecount);\n\n\n //没读完继续读\n //read 50\n //String data int bool char long float double\n //13\n //read 13\n //short byte\n //-1\n\n while (bytecount!=-1)\n {\n System.out.println(\"read \"+ bytecount);\n byteBuffer.flip();\n bytecount = -1;\n }\n temp = \"\";\n while (byteBuffer.hasRemaining())\n {\n char c = (char) byteBuffer.get();\n if(c!='\\r'&&c!='\\n')\n {\n temp +=c;\n }else if(!temp.equals(\"\"))\n {\n System.out.print(temp+\" \");\n temp = \"\";\n }\n }\n System.out.println(temp);\n byteBuffer.clear();\n bytecount = fileChannel.read(byteBuffer);\n System.out.println(bytecount);\n accessFile.close();\n\n\n\n\n\n\n\n\n\n //RandomAccessFile accessFile = new RandomAccessFile(\"data.txt\",\"rw\") ;\n //FileChannel fileChannel = accessFile.getChannel();\n //ByteBuffer buffer = ByteBuffer.allocate(48); //申请48字节的缓冲区\n //int byteRead = fileChannel.read(buffer);\n //\n //while (byteRead!=-1)\n //{\n // System.out.println(\"read\"+byteRead);\n // Thread.sleep(500);\n // buffer.flip();\n // byteRead = -1;\n //}\n //\n //while (buffer.hasRemaining())\n //{\n // System.out.println((char) buffer.get());\n //}\n //buffer.clear();\n //byteRead = fileChannel.read(buffer);\n //accessFile.close();\n\n }", "title": "" }, { "docid": "bec20e4a7e54eb61886e0753494eae36", "score": "0.48180977", "text": "public static void openWriteFile (String filename)\n\t{\n\t\ttry\n\t\t{\n\t\t\tfd = new RandomAccessFile (filename, \"rw\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println (\"Could not open the writeFile\");\n\t\t}\n\t}", "title": "" }, { "docid": "a711a0c77bb193619aa120eb5107d662", "score": "0.481412", "text": "public void open(RandomAccessFile f) throws FileNotFoundException, IOException{\n ByteBuffer buffer = ByteBuffer.allocate(1024);\n buffer.order(ByteOrder.LITTLE_ENDIAN);\n byte[] bytes = new byte[1024];\n f.seek(1024);\n f.read(bytes);\n buffer.put(bytes);\n \n magicNumber = buffer.getShort(56);\n totalInodes = buffer.getInt(0);\n totalBlocks = buffer.getInt(4);\n blocksPerGroup = buffer.getInt(32);\n inodesPerGroup = buffer.getInt(40);\n sizeOfInode = buffer.getInt(88);\n \n byte[] stringHolder = new byte[16];\n buffer.position(120);\n buffer.get(stringHolder);\n volumeLabel = new String(stringHolder);\n \n }", "title": "" }, { "docid": "e2fb481ae5cf8adac0e73b903177ab46", "score": "0.48090458", "text": "protected void writeToDisk(Configuration conf) throws IOException {\n final FileSystem fs = FileSystem.get(conf);\n MapFile.Writer writer = null;\n\n try {\n writer = new MapFile.Writer(conf, fs, PathUtils.getCachePath(conf) + subFolder, IntWritable.class, Text.class);\n\n final Text value = new Text();\n for(Map.Entry<IntWritable, String> entry : dataMap.entrySet()){\n value.set(entry.getValue());\n writer.append(entry.getKey(), value);\n }\n }\n finally {\n if (writer != null) {\n IOUtils.closeStream(writer);\n }\n }\n }", "title": "" }, { "docid": "8a0f2e4ee1b0301c56e20eaf72882fdf", "score": "0.48031136", "text": "public long getWrittenBytes()\n {\n return 0;\n }", "title": "" }, { "docid": "f906646d8a704e4afb03af626e2cd348", "score": "0.4792449", "text": "long writeTo(int index, WritableByteChannel channel, long relativeOffset, long maxSize) throws IOException;", "title": "" }, { "docid": "55e78823b0f14df5837bb668ab1e2673", "score": "0.4790191", "text": "public File cache (byte[] data, String itemIdentifier) throws FileNotFoundException, IOException;", "title": "" }, { "docid": "778d53f5f5a51c21e632f627b7175ac6", "score": "0.47840723", "text": "public static ByteBufferOutputStream map( final FileChannel fileChannel ) throws IOException\r\n {\r\n return map( fileChannel, MapMode.READ_ONLY );\r\n }", "title": "" }, { "docid": "1260ae41094cae4cba373b99d79af709", "score": "0.4780823", "text": "public synchronized void rebuildJournal() {\n String sb;\n if (this.journalWriter != null) {\n this.journalWriter.close();\n }\n BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(this.journalFileTmp), Util.US_ASCII));\n try {\n bufferedWriter.write(MAGIC);\n bufferedWriter.write(\"\\n\");\n bufferedWriter.write(VERSION_1);\n bufferedWriter.write(\"\\n\");\n bufferedWriter.write(Integer.toString(this.appVersion));\n bufferedWriter.write(\"\\n\");\n bufferedWriter.write(Integer.toString(this.valueCount));\n bufferedWriter.write(\"\\n\");\n bufferedWriter.write(\"\\n\");\n for (Entry entry : this.lruEntries.values()) {\n if (entry.currentEditor != null) {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"DIRTY \");\n sb2.append(entry.key);\n sb2.append(10);\n sb = sb2.toString();\n } else {\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"CLEAN \");\n sb3.append(entry.key);\n sb3.append(entry.getLengths());\n sb3.append(10);\n sb = sb3.toString();\n }\n bufferedWriter.write(sb);\n }\n bufferedWriter.close();\n if (this.journalFile.exists()) {\n renameTo(this.journalFile, this.journalFileBackup, true);\n }\n renameTo(this.journalFileTmp, this.journalFile, false);\n this.journalFileBackup.delete();\n this.journalWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(this.journalFile, true), Util.US_ASCII));\n } catch (Throwable th) {\n bufferedWriter.close();\n throw th;\n }\n }", "title": "" }, { "docid": "eddc5518c0d74621bee83cf331c92172", "score": "0.47761747", "text": "public abstract File openWriter();", "title": "" }, { "docid": "f530a8429ed62653b8b9ce4b605bb4c1", "score": "0.4769876", "text": "protected File rollLogWriter(long searchIndex, WALFileStatus fileStatus) throws IOException {\n // close file\n currentWALFileWriter.close();\n addDiskUsage(currentWALFileWriter.size());\n addFileNum(1);\n File lastFile = currentWALFileWriter.getLogFile();\n String lastName = lastFile.getName();\n if (WALFileUtils.parseStatusCode(lastName) != fileStatus) {\n String targetName =\n WALFileUtils.getLogFileName(\n WALFileUtils.parseVersionId(lastName),\n WALFileUtils.parseStartSearchIndex(lastName),\n fileStatus);\n File targetFile = SystemFileFactory.INSTANCE.getFile(logDirectory, targetName);\n if (lastFile.renameTo(targetFile)) {\n lastFile = targetFile;\n } else {\n logger.error(\"Fail to rename file {} to {}\", lastName, targetName);\n }\n }\n // roll file\n long nextFileVersion = currentWALFileVersion + 1;\n File nextLogFile =\n SystemFileFactory.INSTANCE.getFile(\n logDirectory,\n WALFileUtils.getLogFileName(\n nextFileVersion, searchIndex, WALFileStatus.CONTAINS_SEARCH_INDEX));\n currentWALFileWriter = new WALWriter(nextLogFile);\n currentWALFileVersion = nextFileVersion;\n logger.debug(\"Open new wal file {} for wal node-{}'s buffer.\", nextLogFile, identifier);\n return lastFile;\n }", "title": "" }, { "docid": "d270b3e79e545b6862bf5da69904f0a7", "score": "0.4764022", "text": "public void openIndexFile() throws FileNotFoundException, IOException {\n\tthis.index = new BufferedWriter(new FileWriter(this.outputIndex));\n }", "title": "" }, { "docid": "b9b60b0bb79b3b437d8c1b9f41db4414", "score": "0.47638494", "text": "private void CopyDB(InputStream open, FileOutputStream out)\n\t\t\tthrows IOException {\n\t\tbyte[] buffer = new byte[1024];\n\t\tint length;\n\t\twhile ((length = open.read(buffer)) > 0) {\n\t\t\tout.write(buffer, 0, length);\n\t\t}\n\t\topen.close();\n\t\tout.close();\n\t}", "title": "" }, { "docid": "d33b8f1949808127dfc3524e7a8a0e3c", "score": "0.47614855", "text": "private File createFile() throws IOException {\n byte[] bytes = new byte[KEYLENGTH];\n char[] result = new char[KEYLENGTH * 2];\n\n while (true) {\n random.nextBytes(bytes);\n\n for (int i = 0; i < KEYLENGTH; i++) {\n byte ch = bytes[i];\n result[2 * i] = Character.forDigit(Math.abs(ch >> 4), 16);\n result[2 * i + 1] = Character.forDigit(Math.abs(ch & 0x0f), 16);\n }\n\n String id = new String(result);\n synchronized (this) {\n File file = nameToFile(id);\n if (file.createNewFile()) {\n return file;\n } \n }\n }\n }", "title": "" }, { "docid": "b46f37d0c85b23aa04fa4276014a5196", "score": "0.47450548", "text": "public void write_registro_innewfile() {\n \n \n \n try {\n File filename=new File(\"reg2.bin\");\n FileOutputStream escribir=new FileOutputStream(filename);\n for (int i = 0; i < bytes.size(); i++) {\n escribir.write(bytes.get(i));\n }\n bytes.clear();//limpiamos el arraylist\n escribir.close();\n /* \n RandomAccessFile escribir = new RandomAccessFile(filename, \"rw\");\n \n //escribir el registro\n for (int i = 0; i < bytes.size(); i++) {\n escribir.write(bytes.get(i));\n }\n \n escribir.close();\n */ \n } catch (IOException e) {\n\n }\n }", "title": "" }, { "docid": "f72fb82909b6211b0c2802206eb8f84b", "score": "0.47328335", "text": "protected final void write() {\n \t\tinitialize( true );\n \t\tdirty();\n \t}", "title": "" }, { "docid": "badf7e4d85bae3ab0594f0ea4029e432", "score": "0.47285873", "text": "private ReadableByteChannel getCacheFileChannel()\n throws IOException\n {\n File cacheFile = getCacheTempFile();\n\n if (log.isDebugEnabled()) {\n log.debug(\"getCacheFileChannel \"\n + cacheFile.getAbsolutePath());\n }\n\n return new RandomAccessFile(cacheFile, \"rw\").getChannel();\n }", "title": "" }, { "docid": "57c4572a916f8e5b03ae3b471e5d48aa", "score": "0.47280657", "text": "@Override\n public FSDataInputStream open(Path f) throws IOException {\n return open(f, getConf().getInt(\"fs.velox.inputstream.buffersize\", 16777216));\n }", "title": "" }, { "docid": "2465e9bfe96bccc0be7ffe88d18c1f66", "score": "0.47276327", "text": "@Override\n\tpublic void run() {\n\t\tif(!Files.isRegularFile(file_path) || !Files.exists(file_path)){\n\t\t\tSystem.out.println(\"Writer has NOT found file in: \"+file_path.toString());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfile = new File(file_path.toString());\n\t\ttry {\n\t\t\tthis.data_from_file = Files.readAllBytes(file_path);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\t//Do stuff System.out.println(\"Writer has the file: \"+file.getName() + \" size: \" + this.data_from_file.length);\n\t\t\n\t\tthis.buffer = main_memory.createSlot(file.getName(), this.data_from_file.length);\n\t\tthis.buffer.startingUse();\n\t\t\n\t\tint index = 0;\n\t\tdo{\n\t\tindex = this.buffer.write(data_from_file, index);\n\t\t}\n\t\twhile(index != this.data_from_file.length);\n\t\t\n\t\t\n\t\tSystem.out.println(\"Writing finishes \"+ index);\n\t}", "title": "" }, { "docid": "c2dafddb9dcc19020f609b319a173392", "score": "0.4727008", "text": "public void setWriteLength(long length) {\n\t\tthis.writeSeek = length;\n\t}", "title": "" }, { "docid": "c042058ebbf8aaff97f2be20edf9fb37", "score": "0.4726604", "text": "private static BufferedOutputStream getBinaryWriteBuffer(String FileName) {\n\t\ttry {\n\t\t\tOutputStream fileStream = new FileOutputStream(FileName);\n//\t\t\tOutputStream gzipStream = new GZIPOutputStream(fileStream);\n\t\t\treturn new BufferedOutputStream(fileStream, 65536);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fff418d5bf3af2d0d6a6e7a97d089051", "score": "0.47225928", "text": "public static void main(String[] args) {\n Map<String, String> map = new MyHashMapSync<>();\n// Map<String, String> map = new HashMap<>();\n\n long before = System.currentTimeMillis();\n for (int i = 0; i < 20; i++) {\n Writer writer = new Writer(map, 10000);\n Reader reader = new Reader(map);\n try {\n writer.join();\n reader.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n// System.out.println(map);\n System.out.println(map.size());\n\n System.out.println(\"Time: \"+(System.currentTimeMillis() - before));\n\n\n }", "title": "" }, { "docid": "e3ba00a402e26fa3f508caa6a028074c", "score": "0.47206423", "text": "@Override\n protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n int count = (int) counter.incrementColumnValue(\n Constant.counter_Static_Rowkey,\n Constant.FBytes,\n Constant.QBytes,\n 1\n );\n // TODO hadoop 系统计数器\n// Counter counter = context.getCounter(Constant.TABLE_COUNTER_ROWKEY,context.getJobName());\n// counter.increment(1);\n// int count = (int) counter.getValue();\n String line = value.toString();\n JSONObject json = new JSONObject(line);\n String localTime = json.getString(\"localtime\");\n String dateTime = localTime.substring(0, 10).replaceAll(\"-\", \"\");\n Iterator<String> keys = json.keys();\n while (keys.hasNext()){\n String k = keys.next();\n String v = json.getString(k);\n if (k.equals(\"time\") || k.equals(\"localtime\")){\n continue;\n }\n\n if (\"\".equals(v)){\n v = \"UNKNOW\";\n }\n String rowkey = dateTime + \"_\" + k +\"_\" +v;\n MutableRoaringBitmap bitmap = MutableRoaringBitmap.bitmapOf(count);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n bitmap.serialize(new DataOutputStream(bos));\n ByteBuffer buffer = ByteBuffer.wrap(bos.toByteArray());\n bos.close();\n byte[] bytes = buffer.array();\n System.out.println(\"map.bytes.length=\" + bytes.length);\n\n context.write(new Text(rowkey),new Text(bytes));\n }\n }", "title": "" }, { "docid": "41d60bda367f31276f8e9b8c5f25320e", "score": "0.46962515", "text": "public static void main(String[] args) throws IOException {\n\t\t\n\t\tRandomAccessFile rafi = new RandomAccessFile(\"D:\\\\testnio.txt\", \"rw\");\n\t\tRandomAccessFile rafo = new RandomAccessFile(\"D:\\\\testniocopy2.txt\", \"rw\");\n\t\t\n\t\tFileChannel fci = rafi.getChannel();\n\t\tFileChannel fco = rafo.getChannel();\n\t\t\n ByteBuffer buf = ByteBuffer.allocate(1024);\n\n while (fci.read(buf) != -1) {\n buf.flip();\n fco.write(buf);\n buf.clear();\n }\n \n rafi.close();\n rafo.close();\n\t}", "title": "" }, { "docid": "66721fbee03ebf82762dc4ef6e1ca6cb", "score": "0.4689923", "text": "@Test\n public void test02_saveAndLoad(){\n adjacencyMap.write(resourceOutput.getAbsolutePath());\n //load a new instance of the saved map\n Stopwatch timer = Stopwatch.createStarted();\n AdjacencyMap loadedMap = AdjacencyMap.read(resourceOutput.getAbsolutePath(), adjacencyMap.getOctree());\n System.out.println(\"Created AdjacencyMap (loaded from file): \" + timer.elapsed(TimeUnit.SECONDS) + \" s\");\n //remove file\n resourceOutput.delete();\n compareMaps(loadedMap);\n }", "title": "" }, { "docid": "ef8d2ae572efc3805536b7a7ab56b900", "score": "0.4678947", "text": "public String toString() {\n/* 595 */ return \"BufferedRandomAccessFile: \" + this.j + \" (\" + (this.k ? \"read only\" : \"read/write\") + \")\";\n/* */ }", "title": "" }, { "docid": "0a469e6d24481c9f7732d233ade69547", "score": "0.466806", "text": "public void write_registro_in_bytes(int pos_in_archivo) {\n\n try {\n\n RandomAccessFile escribir = new RandomAccessFile(archivo_pro.getPath(), \"rw\");\n\n //nos posicionamos en el archivo\n escribir.seek(pos_in_archivo);\n\n //escribir el registro\n for (int i = 0; i < bytes.size(); i++) {\n escribir.write(bytes.get(i));\n }\n escribir.close();\n\n } catch (IOException e) {\n\n }\n }", "title": "" }, { "docid": "adbaaaf08ab74970ac27ec81d606f9a5", "score": "0.46650222", "text": "abstract protected int getWALConnectionPoolSize();", "title": "" }, { "docid": "51b723a638e845d5a6f70bba64a3ff51", "score": "0.46513504", "text": "public DirectAccessFile(String fileName, long recordLength)\r\n {\r\n ready = false;\r\n try\r\n {\r\n f = new RandomAccessFile (fileName, \"rw\");\r\n this.recordLength = recordLength;\r\n ready = true;\r\n }\r\n catch (IOException e)\r\n {\r\n ready = false;\r\n Dialog.error(\"Opening file \" + fileName + \" was unsuccessful. \\n Error: #1 \"\r\n + e.getMessage());\r\n } \r\n }", "title": "" }, { "docid": "51940d24cba48f43b120d962abfe1f5b", "score": "0.46500543", "text": "public void open() throws Exception {\r\n\r\n super.open();\r\n System.out.println(\"OPEN MAPREDUCE\");\r\n InetAddress addr = InetAddress.getLocalHost();\r\n String hostname = addr.getHostName();\r\n\r\n String path = \"/tmp/\" + hostname;\r\n fw = new FileWriter(path);\r\n\r\n }", "title": "" }, { "docid": "f21658464d170a5cf1f8d8a4ee1d1e5b", "score": "0.46500444", "text": "long map(final byte[] bytes, final int offset, final int length);", "title": "" }, { "docid": "604bfcf33f951d082de66d2c41b78741", "score": "0.46498957", "text": "private Map<String, Object[]> createMapDBFile(String mapName) {\n \t\t/**\n \t\t * Open database in temporary directory\n \t\t */\n \t\tFile dbFile = null;\n \t\ttry {\n \t\t\tdbFile = File.createTempFile(\"pydio\", \"mapdb\");\n \t\t\tdbFile.deleteOnExit();\n \t\t} catch (IOException e) {\n \t\t\tdbFile = Utils.tempDbFile();\n \t\t}\n \t\tDB db = DBMaker.newFileDB(dbFile).deleteFilesAfterClose().transactionDisable().make();\n \t\t// add db to collection for closing after syncro finishes\n \t\tmapDBs.add(db);\n \n \t\treturn db.createTreeMap(mapName).make();\n \t}", "title": "" }, { "docid": "695a5730f62182799de84f4074bfcfc0", "score": "0.4645237", "text": "public void writeFile() {\n /*\n r8 = this;\n java.lang.Object r0 = r8.mLock\n monitor-enter(r0)\n boolean r1 = r8.mDestroyed // Catch:{ all -> 0x0081 }\n if (r1 == 0) goto L_0x0009\n monitor-exit(r0) // Catch:{ all -> 0x0081 }\n return\n L_0x0009:\n r1 = 0\n r8.mWriteScheduled = r1 // Catch:{ all -> 0x0081 }\n int r1 = r8.mVersion // Catch:{ all -> 0x0081 }\n java.lang.String r2 = r8.mPackagesHash // Catch:{ all -> 0x0081 }\n android.util.ArrayMap r3 = r8.snapshotRolesLocked() // Catch:{ all -> 0x0081 }\n monitor-exit(r0) // Catch:{ all -> 0x0081 }\n android.util.AtomicFile r0 = new android.util.AtomicFile\n int r4 = r8.mUserId\n java.io.File r4 = getFile(r4)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n java.lang.String r6 = \"roles-\"\n r5.append(r6)\n int r6 = r8.mUserId\n r5.append(r6)\n java.lang.String r5 = r5.toString()\n r0.<init>(r4, r5)\n r4 = 0\n java.io.FileOutputStream r5 = r0.startWrite() // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n r4 = r5\n org.xmlpull.v1.XmlSerializer r5 = android.util.Xml.newSerializer() // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n java.nio.charset.Charset r6 = java.nio.charset.StandardCharsets.UTF_8 // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n java.lang.String r6 = r6.name() // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n r5.setOutput(r4, r6) // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n java.lang.String r6 = \"http://xmlpull.org/v1/doc/features.html#indent-output\"\n r7 = 1\n r5.setFeature(r6, r7) // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n r6 = 0\n java.lang.Boolean r7 = java.lang.Boolean.valueOf(r7) // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n r5.startDocument(r6, r7) // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n r8.serializeRoles(r5, r1, r2, r3) // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n r5.endDocument() // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n r0.finishWrite(r4) // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n java.lang.String r6 = LOG_TAG // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n java.lang.String r7 = \"Wrote roles.xml successfully\"\n android.util.Slog.i(r6, r7) // Catch:{ IOException | IllegalArgumentException | IllegalStateException -> 0x006a }\n goto L_0x0078\n L_0x0068:\n r5 = move-exception\n goto L_0x007d\n L_0x006a:\n r5 = move-exception\n java.lang.String r6 = LOG_TAG // Catch:{ all -> 0x0068 }\n java.lang.String r7 = \"Failed to write roles.xml, restoring backup\"\n android.util.Slog.wtf(r6, r7, r5) // Catch:{ all -> 0x0068 }\n if (r4 == 0) goto L_0x0077\n r0.failWrite(r4) // Catch:{ all -> 0x0068 }\n L_0x0077:\n L_0x0078:\n libcore.io.IoUtils.closeQuietly(r4)\n return\n L_0x007d:\n libcore.io.IoUtils.closeQuietly(r4)\n throw r5\n L_0x0081:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0081 }\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.role.RoleUserState.writeFile():void\");\n }", "title": "" }, { "docid": "5f17fd8a1b552800dc9fc30e3fa4ddd5", "score": "0.46434635", "text": "public File cache (String words,String itemIdentifier) throws FileNotFoundException, IOException;", "title": "" }, { "docid": "44c11a1ed90677826ef0496995f464af", "score": "0.4636488", "text": "private static File retrieveCachedOSMFile(Rectangle2D bounds) {\n if (bounds != null) {\n String baseDir = FeedStore.basePath.getAbsolutePath() + File.separator + \"osm\";\n File osmPath = new File(String.format(\"%s/%.6f_%.6f_%.6f_%.6f\", baseDir, bounds.getMaxX(), bounds.getMaxY(), bounds.getMinX(), bounds.getMinY()));\n if (!osmPath.exists()) {\n osmPath.mkdirs();\n }\n return new File(osmPath.getAbsolutePath() + \"/data.osm.pbf\");\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "7401ea8e2d288d2db3cb502f596c4023", "score": "0.46301457", "text": "int writeToCentralDirectory(byte[] b, int off, int len) {\n checkArgument(len >= 0);\n int offsetStarted = size;\n while (len > 0) {\n if (currentBlock == null\n || currentBlockOffset >= currentBlock.length) {\n currentBlock = new byte[blockSize];\n currentBlockOffset = 0;\n blockList.add(currentBlock);\n }\n int maxCopy = Math.min(blockSize - currentBlockOffset, len);\n System.arraycopy(b, off, currentBlock, currentBlockOffset, maxCopy);\n off += maxCopy;\n len -= maxCopy;\n size += maxCopy;\n currentBlockOffset += maxCopy;\n }\n return offsetStarted;\n }", "title": "" }, { "docid": "a01e0164a1d6fb55e30ce02854507e36", "score": "0.46278197", "text": "private LogFileCache() {\n cacheMap = new HashMap();\n \n }", "title": "" }, { "docid": "03eab2bb0eb7df7d5450decdfa1ec60f", "score": "0.4627768", "text": "public void enforceFullCaching() throws IOException {\n if (firstRead) {\n IOUtils.copy(this, NullOutputStream.INSTANCE);\n length = count;\n firstRead = false;\n }\n }", "title": "" }, { "docid": "6fa97a89c23a0cdcad50cebaccde4342", "score": "0.46189958", "text": "public FileIndex() {\n fileIndex = new HashMap<>();\n }", "title": "" }, { "docid": "2f8fcd56162e81e4d0ae04cc1334c291", "score": "0.4616245", "text": "RandomAccessContent getRandomAccessContent(RandomAccessMode mode) throws FileSystemException;", "title": "" }, { "docid": "3ba30908b10cdcd881207cf3075b9858", "score": "0.46087244", "text": "private void writeDatatoFiles(String s, String filepath)\r\n\t{\r\n\t\ttry{\r\n\t\t\tRandomAccessFile raf = new RandomAccessFile(filepath, \"rw\");\r\n\t\t\traf.seek(raf.length());\r\n\t\t\traf.writeBytes(s);\r\n\t\t\traf.close();\r\n\t\t}\r\n\t\tcatch(IOException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b65150a4410a3f8e70528061a09f8df4", "score": "0.46025968", "text": "SeekableByteChannel newByteChannel(org.apache.hadoop.fs.Path path,\n Set<? extends OpenOption> options,\n FileAttribute<?>... attrs) throws IOException\n {\n\t\t\n\t\t\n\t\tcheckOptions(options);\n\t\t\n\t\t// Check that file not exists\n\t\tif (options.contains(CREATE_NEW) && \n\t\t\t\tthis.fs.exists(path)) {\n\t\t\tthrow new FileAlreadyExistsException(path.toString());\n\t\t}\n\t\t\t\t\n\t\t\n\t\tif (options.contains(WRITE) ||\n options.contains(APPEND)) {\n checkWritable();\n beginRead();\n try {\n final WritableByteChannel wbc = Channels.newChannel(\n newOutputStream(path, options, attrs));\n long leftover = 0;\n if (options.contains(APPEND)) {\n /*Entry e = getEntry0(path);\n if (e != null && e.size >= 0)\n leftover = e.size;*/\n \tthrow new IOException(\"APPEND NOT IMPLEMENTED\");\n }\n final long offset = leftover;\n return new SeekableByteChannel() {\n long written = offset;\n public boolean isOpen() {\n return wbc.isOpen();\n }\n\n public long position() throws IOException {\n return written;\n }\n\n public SeekableByteChannel position(long pos)\n throws IOException\n {\n throw new UnsupportedOperationException();\n }\n\n public int read(ByteBuffer dst) throws IOException {\n throw new UnsupportedOperationException();\n }\n\n public SeekableByteChannel truncate(long size)\n throws IOException\n {\n throw new UnsupportedOperationException();\n }\n\n public int write(ByteBuffer src) throws IOException {\n int n = wbc.write(src);\n written += n;\n return n;\n }\n\n public long size() throws IOException {\n return written;\n }\n\n public void close() throws IOException {\n wbc.close();\n }\n };\n } finally {\n endRead();\n }\n } else {\n beginRead();\n try {\n ensureOpen();\n FileStatus e = this.fs.getFileStatus(path);\n if (e == null || e.isDirectory())\n throw new NoSuchFileException(path.toString());\n final FSDataInputStream inputStream = getInputStream(path);\n final ReadableByteChannel rbc =\n Channels.newChannel(inputStream);\n final long size = e.getLen();\n return new SeekableByteChannel() {\n long read = 0;\n public boolean isOpen() {\n return rbc.isOpen();\n }\n\n public long position() throws IOException {\n return read;\n }\n\n public SeekableByteChannel position(long pos)\n throws IOException\n {\n // ReadableByteChannel is not buffered, so it reads through\n inputStream.seek(pos);\n read = pos;\n return this;\n }\n\n public int read(ByteBuffer dst) throws IOException {\n int n = rbc.read(dst);\n if (n > 0) {\n read += n;\n }\n return n;\n }\n\n public SeekableByteChannel truncate(long size)\n throws IOException\n {\n throw new NonWritableChannelException();\n }\n\n public int write (ByteBuffer src) throws IOException {\n throw new NonWritableChannelException();\n }\n\n public long size() throws IOException {\n return size;\n }\n\n public void close() throws IOException {\n rbc.close();\n }\n };\n } finally {\n endRead();\n }\n }\n\t}", "title": "" }, { "docid": "573ea48ea0ac6f9c0a6ce444124bbbc2", "score": "0.45957989", "text": "public long getWriteBytes() {\n return writeBytes.get();\n }", "title": "" }, { "docid": "779c0aac83765aa7cd0c2722fad2a9d3", "score": "0.45939627", "text": "void initBitAccess() throws IOException;", "title": "" }, { "docid": "0798dd2523a3d7ab9607f66ecdde0584", "score": "0.4583767", "text": "int modify_file(String group_name, String appender_filename, long file_offset, byte[] file_buff, int buffer_offset,\n int buffer_length) throws IOException, MyException;", "title": "" }, { "docid": "16b19c69af72d7a3246559343c2fe962", "score": "0.4581881", "text": "private byte[] readFile(long offset, int numBytes) {\n\t\tbyte[] data = new byte[numBytes];\n\t\ttry (RandomAccessFile randomAccess = new RandomAccessFile(this.file, \"r\")) {\n\t\t\trandomAccess.seek(offset);\n\t\t\trandomAccess.read(data, 0, numBytes);\n\t\t} catch (Exception e) {\n\t\t\tLog.e(TAG, \"readFile: \", e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn data;\n\t}", "title": "" }, { "docid": "589bb2e9f8a124f6a644613292a9d2aa", "score": "0.4579112", "text": "long map(final byte[] bytes);", "title": "" }, { "docid": "0dcdc83a457284d3670a13b5bb7af050", "score": "0.45741358", "text": "public synchronized void persistCache() {\n if(!dirty)\n return;\n \n //It's not ideal to hold a lock while writing to disk, but I doubt think\n //it's a problem in practice.\n URN_CACHE_FILE.renameTo(URN_CACHE_BACKUP_FILE);\n ObjectOutputStream oos = null;\n try {\n oos = new ObjectOutputStream(\n new BufferedOutputStream(new FileOutputStream(URN_CACHE_FILE)));\n oos.writeObject(URN_MAP);\n oos.flush();\n } catch (IOException e) {\n ErrorService.error(e);\n } finally {\n IOUtils.close(oos);\n }\n \n dirty = false;\n }", "title": "" }, { "docid": "4bb000328d835ec85b327b9b14d0e92c", "score": "0.45667827", "text": "public int saveCache() throws IOException;", "title": "" }, { "docid": "efc28d24ba30ab4e46e645ef60121387", "score": "0.45652688", "text": "public void openFile() {\r\n File postiNewsDir = new File(Environment.getExternalStoragePublicDirectory(\r\n Environment.DIRECTORY_DOWNLOADS), \"PostiNewsDir\");\r\n postiNewsFile = new File(\r\n postiNewsDir, \"PostiNews.txt\");\r\n \r\n if (!postiNewsDir.isDirectory()) {\r\n if (!postiNewsDir.mkdirs()) {\r\n Log.e(\"POSTI_STORAGE: \", \"Directory not created\");\r\n }\r\n }\r\n if (!postiNewsFile.isFile()) {\r\n try {\r\n if (!postiNewsFile.createNewFile()) {\r\n Log.e(\"POSTI_STORAGE: \", \"File not created\");\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n postiNewsFileSize = postiNewsFile.length();\r\n Log.i(\"POSTI_STORAGE: \", \"File length \"+postiNewsFileSize);\r\n\r\n // read in the hashes of already stored slogans ...\r\n try {\r\n FileReader r = new FileReader(postiNewsFile);\r\n BufferedReader br = new BufferedReader(r);\r\n \r\n hashesOfStoredSlogans = new ArrayList<Integer>();\r\n \r\n String line;\r\n do {\r\n line = br.readLine();\r\n if (line == null) {\r\n break;\r\n }\r\n int hash = Integer.parseInt(line.substring(2,line.indexOf(\",\",2)));\r\n //Log.i(\"POSTI_STORAGE: \", \"hash \"+hash+\" found.\");\r\n hashesOfStoredSlogans.add(hash);\r\n } while (true);\r\n Log.i(\"POSTI_STORAGE: \", \"read in \"+hashesOfStoredSlogans.size()+\" hashes.\");\r\n \r\n br.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "9e447bce60b5d3196188aa812acbe675", "score": "0.45626953", "text": "SynchronisedFile(String f, int bs) throws IOException {\n\t\tBlockSize = bs;\n\t\treadBuffer = new byte[BlockSize];\n\t\tfilename = f;\n\t\tInitializeFileState();\n\t}", "title": "" }, { "docid": "8a6ad77242483a3d9b4ba13822afa483", "score": "0.45589107", "text": "@Test\n public void test() throws Exception {\n HRegionServer server = TEST_UTIL.getHBaseCluster().getRegionServer(0);\n AbstractFSWAL<?> wal = (AbstractFSWAL<?>) server.getWAL(null);\n Path currentFile = wal.getCurrentFileName();\n // restart every dn to simulate a dn rolling upgrade\n for (int i = 0, n = TEST_UTIL.getDFSCluster().getDataNodes().size(); i < n; i++) {\n // This is NOT a bug, when restart dn in miniDFSCluster, it will remove the stopped dn from\n // the dn list and then add to the tail of this list, we need to always restart the first one\n // to simulate rolling upgrade of every dn.\n TEST_UTIL.getDFSCluster().restartDataNode(0);\n // sleep enough time so log roller can detect the pipeline break and roll log\n Thread.sleep(DN_RESTART_INTERVAL);\n }\n\n if (!server.getFileSystem().exists(currentFile)) {\n Path walRootDir = CommonFSUtils.getWALRootDir(TEST_UTIL.getConfiguration());\n final Path oldLogDir = new Path(walRootDir, HConstants.HREGION_OLDLOGDIR_NAME);\n currentFile = new Path(oldLogDir, currentFile.getName());\n }\n // if the log is not rolled, then we can never open this wal forever.\n try (WALStreamReader reader = NoEOFWALStreamReader.create(TEST_UTIL.getTestFileSystem(),\n currentFile, TEST_UTIL.getConfiguration())) {\n reader.next();\n }\n }", "title": "" }, { "docid": "0a93d117d09e06adb353543da2ecd1fd", "score": "0.45534706", "text": "@Override\r\n public LongWritable getCurrentKey() throws IOException, InterruptedException {\n return new LongWritable(pos);\r\n }", "title": "" }, { "docid": "ebc50ae985ca66b015b798c850f3267d", "score": "0.4541572", "text": "public static void test3() throws Exception {\n final ClassLoader classLoader = Test.class.getClassLoader();\n final Path pathSource = Paths.get(new File(classLoader.getResource(\"Home\").getFile()).getAbsolutePath());\n\n final Path path = Paths.get(pathSource + \"/Docs/users.txt\");\n\n final String newLine = System.getProperty(\"line.separator\");\n\n try (SeekableByteChannel sbc = Files.newByteChannel(path, StandardOpenOption.WRITE)) {\n ByteBuffer buffer = null;\n final long position = sbc.size();\n sbc.position(position);\n System.out.println(\"Position: \" + sbc.position());\n\n buffer = ByteBuffer.wrap((newLine + \"Paul\").getBytes());\n sbc.write(buffer);\n System.out.println(\"Position: \" + sbc.position());\n\n buffer = ByteBuffer.wrap((newLine + \"Carol\").getBytes());\n sbc.write(buffer);\n System.out.println(\"Position: \" + sbc.position());\n\n buffer = ByteBuffer.wrap((newLine + \"Fred\").getBytes());\n sbc.write(buffer);\n System.out.println(\"Position: \" + sbc.position());\n }\n }", "title": "" }, { "docid": "ccf3f492e19b265864bc7e5719a140b4", "score": "0.4538658", "text": "boolean hasWAL(String fileNodeName);", "title": "" }, { "docid": "b8d464be261a13e31bf66ecc7ce7cae4", "score": "0.45379516", "text": "@Test\n\t@SneakyThrows\n\tpublic void so() {\n\t\tfinal RandomAccessFile raf = new RandomAccessFile( \"target/test.txt\", \"rw\" );\n\n\t\t// write something in the file\n\t\traf.writeUTF( \"Hello World\" );\n\n\t\t// set the file pointer at 0 position\n\t\traf.seek( 0 );\n\n\t\t// print the string\n\t\tSystem.out.println( raf.readUTF() );\n\n\t\t// set the file pointer at 5 position\n\t\traf.seek( 7 );\n\n\t\t// write something in the file\n\t\traf.writeUTF( \"This is an example\" );\n\t\traf.writeUTF( \"This is an example\" );\n\n\t\t// set the file pointer at 0 position\n\t\traf.seek( 0 );\n\n\t\t// print the string\n\t\tSystem.out.println( raf.readUTF() );\n\t\traf.close();\n\t}", "title": "" }, { "docid": "3346a36139525d52316fcf34c1633464", "score": "0.45368266", "text": "@Override\n public void init() {\n downFile = server.createNewFile(FILE_NAME);\n fillFile(downFile, 1500); // 2 packets of 512 + 1 packet of 476\n\n super.init();\n }", "title": "" }, { "docid": "7b6328de297674b759d1b27b867d6c0b", "score": "0.4531507", "text": "@Override\n public void crearVuelo(Vuelo v) throws DAOException {\n try (RandomAccessFile file = new RandomAccessFile(archivoVuelo, \"rw\"); PrintWriter pw = new PrintWriter(new FileWriter(archivoDeReferencias, true))) {\n Map<String,Integer> mapa=obteneMapaConPosiciones();\n int posicion=mapa.size();\n int posicionSeek = posicion * SIZE_TOTAL;\n file.seek(posicionSeek); // Me situo en la posición adecuada\n\n //Inserto el código de vuelo\n StringBuffer buffer = new StringBuffer(v.getCodigo());\n buffer.setLength(SIZE_CODIGO/2);\n file.writeChars(buffer.toString());\n\n //Inserto el destino del vuelo\n buffer = new StringBuffer(v.getDestino());\n buffer.setLength(SIZE_DESTINO/2);\n file.writeChars(buffer.toString());\n\n\n //Inserto el origen del vuelo\n buffer = new StringBuffer(v.getOrigen());\n buffer.setLength(SIZE_ORIGEN/2);\n file.writeChars(buffer.toString());\n\n\n\n //Inserto la fecha del vuelo\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n String fecha=sdf.format(v.getFechaVuelo());\n buffer = new StringBuffer(fecha);\n buffer.setLength(SIZE_FECHA/2);\n file.writeChars(buffer.toString());\n\n //Inserto el precio por persona\n file.writeDouble(v.getPrecioPersona());\n\n //Inserto las plazas disponibles\n file.writeInt(v.getPlazasDisponibles());\n\n //Inserto la puerta del vuelo\n file.writeInt(v.getPuerta());\n\n //Inserto la terminal del vuelo\n file.writeInt(v.getTerminal());\n\n pw.println(v.getCodigo() + \"#\" +posicion );\n } catch (FileNotFoundException ex) {\n throw new DAOException(\"No existe el Fichero aleatorio.\", ex);\n } catch (IOException ex) {\n throw new DAOException(\"Al leer o escribir en el fichero hubo un error.\", ex);\n }\n }", "title": "" }, { "docid": "9b920b8fb43eb690dac515ed376a7d6e", "score": "0.45273763", "text": "public void read_registro_in_bytes_fromnew() throws ClassNotFoundException {\n\n File filename = new File(\"reg2.bin\");\n \n try {\n\n RandomAccessFile r = new RandomAccessFile(filename, \"rw\");\n\n //nos posicionamos en el archivo\n \n\n //leemos byte a byte\n for (int i = 0; i < (int)filename.length(); i++) {\n bytes.add(r.read());\n }\n \n r.close();\n\n } catch (IOException e) {\n\n }\n }", "title": "" }, { "docid": "d290ebf0884a6e437a3237f61030c794", "score": "0.4523647", "text": "com.google.protobuf.ByteString getBinlog();", "title": "" }, { "docid": "ac57294db6621bf3388a75acbf5d4691", "score": "0.45163268", "text": "public void updateMappingOnFilesystem() {\n\t\tupdateMarkers();\n\t\ttry {\n\t\t\tthis.mapping.eResource().save(new FileOutputStream(this.destination.getLocation().toFile()), Collections.emptyMap());\n\t\t} catch (final IOException e) {\n\t\t\tLOGGER.log(Level.ERROR, e);\n\t\t}\n\t}", "title": "" }, { "docid": "f335d8786348acc02781dba167a7f376", "score": "0.4516031", "text": "public abstract long length() throws IOException;", "title": "" }, { "docid": "4e0d9c7b1231bb0a5723aca0ae99c79c", "score": "0.4514636", "text": "private int getBytes(int index, FileChannel out, long position, int length, boolean internal)\r\n/* 244: */ throws IOException\r\n/* 245: */ {\r\n/* 246:242 */ checkIndex(index, length);\r\n/* 247:243 */ if (length == 0) {\r\n/* 248:244 */ return 0;\r\n/* 249: */ }\r\n/* 250:247 */ ByteBuffer tmpBuf = internal ? internalNioBuffer() : ((ByteBuffer)this.memory).duplicate();\r\n/* 251:248 */ index = idx(index);\r\n/* 252:249 */ tmpBuf.clear().position(index).limit(index + length);\r\n/* 253:250 */ return out.write(tmpBuf, position);\r\n/* 254: */ }", "title": "" }, { "docid": "37044026c271fe76d1f1e346f10bd0e8", "score": "0.4512894", "text": "public int getScheduledWriteBytes()\n {\n return 0;\n }", "title": "" }, { "docid": "7f0edbe5d89bfd26900bdb9fe8b0abde", "score": "0.45100224", "text": "public RandomAccessFile getFile()\n {\n\treturn _file;\n }", "title": "" }, { "docid": "35adc527ec144e67cd730223d729dd67", "score": "0.4503601", "text": "public interface ClosenessVertexStateWritable extends Writable {\n public OpenLongIntHashMapWritable getShortestPaths();\n}", "title": "" }, { "docid": "48e68980768e48fa9d3a4dced283d7b1", "score": "0.45020336", "text": "@Override\n public OutputStream openOutputStream() throws IOException {\n return bos;\n }", "title": "" }, { "docid": "ee4d876449c0151f4ad4e77fa7ebb072", "score": "0.45013463", "text": "private static BufferedWriter openAndClearFile (File file) throws IOException {\n return Files.newBufferedWriter(Paths.get(file.toURI()), StandardOpenOption.TRUNCATE_EXISTING, StandardOpenOption.WRITE, StandardOpenOption.CREATE);\n }", "title": "" }, { "docid": "58e0270fd7e980f326e932b3863c408a", "score": "0.44997156", "text": "public int writableBytes()\r\n/* 111: */ {\r\n/* 112:127 */ return this.buf.writableBytes();\r\n/* 113: */ }", "title": "" }, { "docid": "52a2bcc220b9f6b226e19217d9d10a99", "score": "0.44983146", "text": "@Override\n public RecordWriter<BytesWritable, RowWritable> getRecordWriter(TaskAttemptContext context) throws IOException {\n Path workFile = getDefaultWorkFile(context, \"\");\n FileSystem fs = workFile.getFileSystem(context.getConfiguration());\n final FSDataOutputStream fileOut = fs.create(workFile, false);\n final OnDiskAtom.Serializer serializer = OnDiskAtom.Serializer.instance;\n\n return new RecordWriter<BytesWritable, RowWritable>() {\n @Override\n public void write(BytesWritable key, RowWritable rowWritable) throws IOException, InterruptedException {\n if (version.hasRowSizeAndColumnCount) {\n writeVersion_1_2_5(key, rowWritable);\n } else {\n writeVersion_2_0(key, rowWritable);\n }\n }\n\n @Override\n public void close(TaskAttemptContext context) throws IOException, InterruptedException {\n fileOut.close();\n }\n\n void writeVersion_1_2_5(BytesWritable key, RowWritable row) throws IOException {\n fileOut.writeShort(key.getLength());\n fileOut.write(key.getBytes());\n\n long dataSize = 16; // The bytes for the Int, Long, Int after this loop\n for (OnDiskAtom atom : row.getColumns()) {\n dataSize += atom.serializedSizeForSSTable();\n }\n fileOut.writeLong(dataSize);\n fileOut.writeInt((int) (row.getDeletedAt() / 1000));\n fileOut.writeLong(row.getDeletedAt());\n fileOut.writeInt(row.getColumns().size());\n for (OnDiskAtom atom : row.getColumns()) {\n serializer.serializeForSSTable(atom, fileOut);\n }\n }\n\n void writeVersion_2_0(BytesWritable key, RowWritable row) throws IOException {\n fileOut.writeShort(key.getLength());\n fileOut.write(key.getBytes());\n\n fileOut.writeInt((int) (row.getDeletedAt() / 1000));\n fileOut.writeLong(row.getDeletedAt());\n for (OnDiskAtom atom : row.getColumns()) {\n serializer.serializeForSSTable(atom, fileOut);\n }\n fileOut.writeShort(SSTableWriter.END_OF_ROW);\n }\n };\n }", "title": "" }, { "docid": "d3214025895cf44234e15d9debecc87c", "score": "0.44958213", "text": "public void updateBinaryStream( int columnIndex, InputStream x, int length ) throws SQLException {\n\n }", "title": "" }, { "docid": "9e3a31ea2e2e623446262fe53abe57a2", "score": "0.44957453", "text": "public void vaiPFim(){\n try {\n this.raf.seek(raf.length());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "595559c490166a79cd452050ca2090fa", "score": "0.44947878", "text": "public void openFastqFile() throws FileNotFoundException {\n\tthis.raf = new RandomAccessFile(this.inputFastq, \"r\");\n }", "title": "" } ]
da7a1724ea320c04d2d8d1570a94f252
/ renamed from: g
[ { "docid": "7273e1f9986c362640b4524041b451fa", "score": "0.0", "text": "public View mo22066g() {\n return this.f24826g;\n }", "title": "" } ]
[ { "docid": "ecbd5c72003b371c39257c60dff55b5d", "score": "0.6781583", "text": "public void g() {\n }", "title": "" }, { "docid": "50f94dedb188a66c9108ceac9f703510", "score": "0.66598725", "text": "public String d()\r\n/* 55: */ {\r\n/* 56:110 */ return this.g;\r\n/* 57: */ }", "title": "" }, { "docid": "829f8d309881960735331a4565bf7efd", "score": "0.6481816", "text": "public String g()\r\n/* 65: */ {\r\n/* 66:133 */ return this.p;\r\n/* 67: */ }", "title": "" }, { "docid": "300b92908114cbf6a567de37c10a2661", "score": "0.6304794", "text": "@Override\n\tpublic int getG() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "582acaef2e3110454651d58f22c1b299", "score": "0.6303384", "text": "public void mo14492g() {\n }", "title": "" }, { "docid": "cecc470e0affd5561604a71c27abc809", "score": "0.6285191", "text": "private String giggle() {\n return \"He he he... \";\n }", "title": "" }, { "docid": "0a30548969429986dd2301e639ab30e6", "score": "0.6254537", "text": "public interface g {\n}", "title": "" }, { "docid": "bff0d3d3308ec50166b6c3b16343f475", "score": "0.6254338", "text": "public void g() {\n int g = this.b.g();\n String str = o.d().m().b().c;\n if (str.equals(\"s\")) {\n g = (int) (new Date().getTime() / 1000);\n } else if (str.equals(\"l\")) {\n g = 0;\n }\n this.b.a(g);\n this.b.b(0);\n }", "title": "" }, { "docid": "9b9889d69041b0b7ed661e1e251155f6", "score": "0.62486285", "text": "int getG();", "title": "" }, { "docid": "d0d01e9bc337c9ea1db63c7f494efe08", "score": "0.61808217", "text": "@Override\n\tpublic void setG(int g) {\n\t\t\n\t}", "title": "" }, { "docid": "063ae6a38469d06ddf88fd9af6522171", "score": "0.6161398", "text": "@Override\r\n\tpublic void guru() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5dc67c12344f2621cf141c92dab8cd13", "score": "0.61596864", "text": "public String g() {\n char c2;\n b();\n int i = this.f14631e;\n while (true) {\n int i2 = this.f14631e;\n if (i2 < this.f14629c && (((c2 = this.f14627a[i2]) >= '0' && c2 <= '9') || ((c2 >= 'A' && c2 <= 'F') || (c2 >= 'a' && c2 <= 'f')))) {\n this.f14631e++;\n }\n }\n return c(this.f14627a, this.h, i, this.f14631e - i);\n }", "title": "" }, { "docid": "79d44121212d75f81696d0234aa64dac", "score": "0.612744", "text": "public int a()\r\n/* 25: */ {\r\n/* 26:124 */ return this.g;\r\n/* 27: */ }", "title": "" }, { "docid": "155c25216ba37c068f0435e7f2b3bd2f", "score": "0.60691774", "text": "G createG();", "title": "" }, { "docid": "14cd876c9fdfb7123e13bd617b7b1e09", "score": "0.60548955", "text": "public static String a(bgd parambgd)\r\n/* 237: */ {\r\n/* 238:231 */ return \"villages\" + parambgd.l();\r\n/* 239: */ }", "title": "" }, { "docid": "909aaab42a0624ec4e9bb7fdb36c2fe6", "score": "0.6041903", "text": "double getG();", "title": "" }, { "docid": "783a974f56b5f4b6a6693b86dee1e11c", "score": "0.6026122", "text": "public int getG()\n\t{\n\t\treturn g;\n\t\t\n\t}", "title": "" }, { "docid": "40be4915804d3229e08fed067ec03fd6", "score": "0.60232043", "text": "Bug_616419() {\r\n\t}", "title": "" }, { "docid": "26a336dcf77b5ed202a2d181fd918454", "score": "0.5975705", "text": "void mo38323g();", "title": "" }, { "docid": "dd902d402f2daa59564a5d9554fc5cb6", "score": "0.5916879", "text": "boolean hasG();", "title": "" }, { "docid": "ff0c12a9c5d5098093c01b2469d830cd", "score": "0.5915155", "text": "void mo18108g();", "title": "" }, { "docid": "2dbd8e701707a5ca74e07201f2d2c1e1", "score": "0.59113365", "text": "private Graph<String,String> g() {\n return new Graph<String,String>();\n }", "title": "" }, { "docid": "880b62b9076c7f41b2a749b866a92488", "score": "0.5908452", "text": "public int getG()\n\t{\n\t\treturn g;\n\t}", "title": "" }, { "docid": "8071c3e99a47da7d045a7f3316a1dba3", "score": "0.5849948", "text": "public int getG(){\n\t\treturn g;\n\t}", "title": "" }, { "docid": "6c285e5ef8116dae399f25ecadcc05ff", "score": "0.57599384", "text": "protected abstract void mo774l();", "title": "" }, { "docid": "e5a7c17c8f7970c9f2029e4bc3fc6c0d", "score": "0.5748912", "text": "private void i() {\n /*\n r7_this = this;\n r6 = 34;\n r5 = 0;\n r0 = r7.h;\n r0 = r0.f();\n if (r0 == 0) goto L_0x009f;\n L_0x000b:\n r0 = r7.g;\n r0 = com.google.cn.a(r0);\n r1 = r7.h;\n r1 = r1.u();\n r2 = com.google.fo.TYPES_ONLY;\n r0 = r0.a(r1, r7, r2);\n r1 = r0 instanceof com.google.M;\t Catch:{ ba -> 0x004b }\n if (r1 != 0) goto L_0x004d;\n L_0x0021:\n r0 = new com.google.fc;\t Catch:{ ba -> 0x004b }\n r1 = new java.lang.StringBuilder;\t Catch:{ ba -> 0x004b }\n r1.<init>();\t Catch:{ ba -> 0x004b }\n r2 = 34;\n r1 = r1.append(r2);\t Catch:{ ba -> 0x004b }\n r2 = r7.h;\t Catch:{ ba -> 0x004b }\n r2 = r2.u();\t Catch:{ ba -> 0x004b }\n r1 = r1.append(r2);\t Catch:{ ba -> 0x004b }\n r2 = z;\t Catch:{ ba -> 0x004b }\n r3 = 30;\n r2 = r2[r3];\t Catch:{ ba -> 0x004b }\n r1 = r1.append(r2);\t Catch:{ ba -> 0x004b }\n r1 = r1.toString();\t Catch:{ ba -> 0x004b }\n r2 = 0;\n r0.<init>(r7, r1, r2);\t Catch:{ ba -> 0x004b }\n throw r0;\t Catch:{ ba -> 0x004b }\n L_0x004b:\n r0 = move-exception;\n throw r0;\n L_0x004d:\n r0 = (com.google.M) r0;\t Catch:{ ba -> 0x009d }\n r7.e = r0;\t Catch:{ ba -> 0x009d }\n r0 = r7.g();\t Catch:{ ba -> 0x009d }\n r1 = r7.e();\t Catch:{ ba -> 0x009d }\n r0 = r0.b(r1);\t Catch:{ ba -> 0x009d }\n if (r0 != 0) goto L_0x009f;\n L_0x005f:\n r0 = new com.google.fc;\t Catch:{ ba -> 0x009d }\n r1 = new java.lang.StringBuilder;\t Catch:{ ba -> 0x009d }\n r1.<init>();\t Catch:{ ba -> 0x009d }\n r2 = 34;\n r1 = r1.append(r2);\t Catch:{ ba -> 0x009d }\n r2 = r7.g();\t Catch:{ ba -> 0x009d }\n r2 = r2.b();\t Catch:{ ba -> 0x009d }\n r1 = r1.append(r2);\t Catch:{ ba -> 0x009d }\n r2 = z;\t Catch:{ ba -> 0x009d }\n r3 = 13;\n r2 = r2[r3];\t Catch:{ ba -> 0x009d }\n r1 = r1.append(r2);\t Catch:{ ba -> 0x009d }\n r2 = r7.e();\t Catch:{ ba -> 0x009d }\n r1 = r1.append(r2);\t Catch:{ ba -> 0x009d }\n r2 = z;\t Catch:{ ba -> 0x009d }\n r3 = 10;\n r2 = r2[r3];\t Catch:{ ba -> 0x009d }\n r1 = r1.append(r2);\t Catch:{ ba -> 0x009d }\n r1 = r1.toString();\t Catch:{ ba -> 0x009d }\n r2 = 0;\n r0.<init>(r7, r1, r2);\t Catch:{ ba -> 0x009d }\n throw r0;\t Catch:{ ba -> 0x009d }\n L_0x009d:\n r0 = move-exception;\n throw r0;\n L_0x009f:\n r0 = r7.h;\n r0 = r0.t();\n if (r0 == 0) goto L_0x01bb;\n L_0x00a7:\n r0 = r7.g;\n r0 = com.google.cn.a(r0);\n r1 = r7.h;\n r1 = r1.w();\n r2 = com.google.fo.TYPES_ONLY;\n r0 = r0.a(r1, r7, r2);\n r1 = r7.h;\t Catch:{ ba -> 0x0101 }\n r1 = r1.e();\t Catch:{ ba -> 0x0101 }\n if (r1 != 0) goto L_0x00c9;\n L_0x00c1:\n r1 = r0 instanceof com.google.M;\t Catch:{ ba -> 0x0101 }\n if (r1 == 0) goto L_0x0105;\n L_0x00c5:\n r1 = com.google.dH.MESSAGE;\t Catch:{ ba -> 0x0103 }\n r7.j = r1;\t Catch:{ ba -> 0x0103 }\n L_0x00c9:\n r1 = r7.f();\t Catch:{ ba -> 0x0137 }\n r2 = com.google.f0.MESSAGE;\t Catch:{ ba -> 0x0137 }\n if (r1 != r2) goto L_0x0154;\n L_0x00d1:\n r1 = r0 instanceof com.google.M;\t Catch:{ ba -> 0x0137 }\n if (r1 != 0) goto L_0x0139;\n L_0x00d5:\n r0 = new com.google.fc;\t Catch:{ ba -> 0x00ff }\n r1 = new java.lang.StringBuilder;\t Catch:{ ba -> 0x00ff }\n r1.<init>();\t Catch:{ ba -> 0x00ff }\n r2 = 34;\n r1 = r1.append(r2);\t Catch:{ ba -> 0x00ff }\n r2 = r7.h;\t Catch:{ ba -> 0x00ff }\n r2 = r2.w();\t Catch:{ ba -> 0x00ff }\n r1 = r1.append(r2);\t Catch:{ ba -> 0x00ff }\n r2 = z;\t Catch:{ ba -> 0x00ff }\n r3 = 29;\n r2 = r2[r3];\t Catch:{ ba -> 0x00ff }\n r1 = r1.append(r2);\t Catch:{ ba -> 0x00ff }\n r1 = r1.toString();\t Catch:{ ba -> 0x00ff }\n r2 = 0;\n r0.<init>(r7, r1, r2);\t Catch:{ ba -> 0x00ff }\n throw r0;\t Catch:{ ba -> 0x00ff }\n L_0x00ff:\n r0 = move-exception;\n throw r0;\n L_0x0101:\n r0 = move-exception;\n throw r0;\t Catch:{ ba -> 0x0103 }\n L_0x0103:\n r0 = move-exception;\n throw r0;\n L_0x0105:\n r1 = r0 instanceof com.google.aa;\t Catch:{ ba -> 0x010e }\n if (r1 == 0) goto L_0x0110;\n L_0x0109:\n r1 = com.google.dH.ENUM;\t Catch:{ ba -> 0x010e }\n r7.j = r1;\t Catch:{ ba -> 0x010e }\n goto L_0x00c9;\n L_0x010e:\n r0 = move-exception;\n throw r0;\n L_0x0110:\n r0 = new com.google.fc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r1 = r1.append(r6);\n r2 = r7.h;\n r2 = r2.w();\n r1 = r1.append(r2);\n r2 = z;\n r3 = 20;\n r2 = r2[r3];\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r7, r1, r5);\n throw r0;\n L_0x0137:\n r0 = move-exception;\n throw r0;\t Catch:{ ba -> 0x00ff }\n L_0x0139:\n r0 = (com.google.M) r0;\t Catch:{ ba -> 0x0152 }\n r7.a = r0;\t Catch:{ ba -> 0x0152 }\n r0 = r7.h;\t Catch:{ ba -> 0x0152 }\n r0 = r0.p();\t Catch:{ ba -> 0x0152 }\n if (r0 == 0) goto L_0x0192;\n L_0x0145:\n r0 = new com.google.fc;\t Catch:{ ba -> 0x0152 }\n r1 = z;\t Catch:{ ba -> 0x0152 }\n r2 = 17;\n r1 = r1[r2];\t Catch:{ ba -> 0x0152 }\n r2 = 0;\n r0.<init>(r7, r1, r2);\t Catch:{ ba -> 0x0152 }\n throw r0;\t Catch:{ ba -> 0x0152 }\n L_0x0152:\n r0 = move-exception;\n throw r0;\n L_0x0154:\n r1 = r7.f();\t Catch:{ ba -> 0x018c }\n r2 = com.google.f0.ENUM;\t Catch:{ ba -> 0x018c }\n if (r1 != r2) goto L_0x01af;\n L_0x015c:\n r1 = r0 instanceof com.google.aa;\t Catch:{ ba -> 0x018c }\n if (r1 != 0) goto L_0x018e;\n L_0x0160:\n r0 = new com.google.fc;\t Catch:{ ba -> 0x018a }\n r1 = new java.lang.StringBuilder;\t Catch:{ ba -> 0x018a }\n r1.<init>();\t Catch:{ ba -> 0x018a }\n r2 = 34;\n r1 = r1.append(r2);\t Catch:{ ba -> 0x018a }\n r2 = r7.h;\t Catch:{ ba -> 0x018a }\n r2 = r2.w();\t Catch:{ ba -> 0x018a }\n r1 = r1.append(r2);\t Catch:{ ba -> 0x018a }\n r2 = z;\t Catch:{ ba -> 0x018a }\n r3 = 24;\n r2 = r2[r3];\t Catch:{ ba -> 0x018a }\n r1 = r1.append(r2);\t Catch:{ ba -> 0x018a }\n r1 = r1.toString();\t Catch:{ ba -> 0x018a }\n r2 = 0;\n r0.<init>(r7, r1, r2);\t Catch:{ ba -> 0x018a }\n throw r0;\t Catch:{ ba -> 0x018a }\n L_0x018a:\n r0 = move-exception;\n throw r0;\n L_0x018c:\n r0 = move-exception;\n throw r0;\t Catch:{ ba -> 0x018a }\n L_0x018e:\n r0 = (com.google.aa) r0;\n r7.c = r0;\n L_0x0192:\n r0 = r7.h;\t Catch:{ ba -> 0x01dc }\n r0 = r0.p();\t Catch:{ ba -> 0x01dc }\n if (r0 == 0) goto L_0x0404;\n L_0x019a:\n r0 = r7.a();\t Catch:{ ba -> 0x01dc }\n if (r0 == 0) goto L_0x01de;\n L_0x01a0:\n r0 = new com.google.fc;\t Catch:{ ba -> 0x01ad }\n r1 = z;\t Catch:{ ba -> 0x01ad }\n r2 = 27;\n r1 = r1[r2];\t Catch:{ ba -> 0x01ad }\n r2 = 0;\n r0.<init>(r7, r1, r2);\t Catch:{ ba -> 0x01ad }\n throw r0;\t Catch:{ ba -> 0x01ad }\n L_0x01ad:\n r0 = move-exception;\n throw r0;\n L_0x01af:\n r0 = new com.google.fc;\n r1 = z;\n r2 = 25;\n r1 = r1[r2];\n r0.<init>(r7, r1, r5);\n throw r0;\n L_0x01bb:\n r0 = r7.f();\t Catch:{ ba -> 0x01da }\n r1 = com.google.f0.MESSAGE;\t Catch:{ ba -> 0x01da }\n if (r0 == r1) goto L_0x01cb;\n L_0x01c3:\n r0 = r7.f();\t Catch:{ ba -> 0x01da }\n r1 = com.google.f0.ENUM;\t Catch:{ ba -> 0x01da }\n if (r0 != r1) goto L_0x0192;\n L_0x01cb:\n r0 = new com.google.fc;\t Catch:{ ba -> 0x01d8 }\n r1 = z;\t Catch:{ ba -> 0x01d8 }\n r2 = 26;\n r1 = r1[r2];\t Catch:{ ba -> 0x01d8 }\n r2 = 0;\n r0.<init>(r7, r1, r2);\t Catch:{ ba -> 0x01d8 }\n throw r0;\t Catch:{ ba -> 0x01d8 }\n L_0x01d8:\n r0 = move-exception;\n throw r0;\n L_0x01da:\n r0 = move-exception;\n throw r0;\t Catch:{ ba -> 0x01d8 }\n L_0x01dc:\n r0 = move-exception;\n throw r0;\t Catch:{ ba -> 0x01ad }\n L_0x01de:\n r0 = com.google.bA.b;\t Catch:{ ba -> 0x0240 }\n r1 = r7.k();\t Catch:{ ba -> 0x0240 }\n r1 = r1.ordinal();\t Catch:{ ba -> 0x0240 }\n r0 = r0[r1];\t Catch:{ ba -> 0x0240 }\n switch(r0) {\n case 1: goto L_0x022f;\n case 2: goto L_0x022f;\n case 3: goto L_0x022f;\n case 4: goto L_0x026a;\n case 5: goto L_0x026a;\n case 6: goto L_0x027c;\n case 7: goto L_0x027c;\n case 8: goto L_0x027c;\n case 9: goto L_0x028e;\n case 10: goto L_0x028e;\n case 11: goto L_0x02a0;\n case 12: goto L_0x0308;\n case 13: goto L_0x0370;\n case 14: goto L_0x037e;\n case 15: goto L_0x0388;\n case 16: goto L_0x03b9;\n case 17: goto L_0x03f7;\n case 18: goto L_0x03f7;\n default: goto L_0x01ed;\n };\n L_0x01ed:\n r0 = r7.n();\t Catch:{ ba -> 0x0444 }\n if (r0 != 0) goto L_0x01fc;\n L_0x01f3:\n r0 = r7.g;\t Catch:{ ba -> 0x0444 }\n r0 = com.google.cn.a(r0);\t Catch:{ ba -> 0x0444 }\n r0.a(r7);\t Catch:{ ba -> 0x0444 }\n L_0x01fc:\n r0 = r7.e;\t Catch:{ ba -> 0x0446 }\n if (r0 == 0) goto L_0x045a;\n L_0x0200:\n r0 = r7.e;\t Catch:{ ba -> 0x0448 }\n r0 = r0.d();\t Catch:{ ba -> 0x0448 }\n r0 = r0.f();\t Catch:{ ba -> 0x0448 }\n if (r0 == 0) goto L_0x045a;\n L_0x020c:\n r0 = r7.n();\t Catch:{ ba -> 0x044a }\n if (r0 == 0) goto L_0x044e;\n L_0x0212:\n r0 = r7.h();\t Catch:{ ba -> 0x044c }\n if (r0 == 0) goto L_0x0220;\n L_0x0218:\n r0 = r7.k();\t Catch:{ ba -> 0x022d }\n r1 = com.google.dH.MESSAGE;\t Catch:{ ba -> 0x022d }\n if (r0 == r1) goto L_0x045a;\n L_0x0220:\n r0 = new com.google.fc;\t Catch:{ ba -> 0x022d }\n r1 = z;\t Catch:{ ba -> 0x022d }\n r2 = 14;\n r1 = r1[r2];\t Catch:{ ba -> 0x022d }\n r2 = 0;\n r0.<init>(r7, r1, r2);\t Catch:{ ba -> 0x022d }\n throw r0;\t Catch:{ ba -> 0x022d }\n L_0x022d:\n r0 = move-exception;\n throw r0;\n L_0x022f:\n r0 = r7.h;\t Catch:{ ba -> 0x0240 }\n r0 = r0.l();\t Catch:{ ba -> 0x0240 }\n r0 = com.google.fY.d(r0);\t Catch:{ ba -> 0x0240 }\n r0 = java.lang.Integer.valueOf(r0);\t Catch:{ ba -> 0x0240 }\n r7.k = r0;\t Catch:{ ba -> 0x0240 }\n goto L_0x01ed;\n L_0x0240:\n r0 = move-exception;\n throw r0;\t Catch:{ NumberFormatException -> 0x0242 }\n L_0x0242:\n r0 = move-exception;\n r1 = new com.google.fc;\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = z;\n r4 = 19;\n r3 = r3[r4];\n r2 = r2.append(r3);\n r3 = r7.h;\n r3 = r3.l();\n r2 = r2.append(r3);\n r2 = r2.append(r6);\n r2 = r2.toString();\n r1.<init>(r7, r2, r0, r5);\n throw r1;\n L_0x026a:\n r0 = r7.h;\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = r0.l();\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = com.google.fY.a(r0);\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = java.lang.Integer.valueOf(r0);\t Catch:{ NumberFormatException -> 0x0242 }\n r7.k = r0;\t Catch:{ NumberFormatException -> 0x0242 }\n goto L_0x01ed;\n L_0x027c:\n r0 = r7.h;\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = r0.l();\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = com.google.fY.b(r0);\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = java.lang.Long.valueOf(r0);\t Catch:{ NumberFormatException -> 0x0242 }\n r7.k = r0;\t Catch:{ NumberFormatException -> 0x0242 }\n goto L_0x01ed;\n L_0x028e:\n r0 = r7.h;\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = r0.l();\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = com.google.fY.c(r0);\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = java.lang.Long.valueOf(r0);\t Catch:{ NumberFormatException -> 0x0242 }\n r7.k = r0;\t Catch:{ NumberFormatException -> 0x0242 }\n goto L_0x01ed;\n L_0x02a0:\n r0 = r7.h;\t Catch:{ ba -> 0x02bc }\n r0 = r0.l();\t Catch:{ ba -> 0x02bc }\n r1 = z;\t Catch:{ ba -> 0x02bc }\n r2 = 11;\n r1 = r1[r2];\t Catch:{ ba -> 0x02bc }\n r0 = r0.equals(r1);\t Catch:{ ba -> 0x02bc }\n if (r0 == 0) goto L_0x02be;\n L_0x02b2:\n r0 = 2139095040; // 0x7f800000 float:Infinity double:1.0568533725E-314;\n r0 = java.lang.Float.valueOf(r0);\t Catch:{ ba -> 0x02bc }\n r7.k = r0;\t Catch:{ ba -> 0x02bc }\n goto L_0x01ed;\n L_0x02bc:\n r0 = move-exception;\n throw r0;\t Catch:{ NumberFormatException -> 0x0242 }\n L_0x02be:\n r0 = r7.h;\t Catch:{ ba -> 0x02da }\n r0 = r0.l();\t Catch:{ ba -> 0x02da }\n r1 = z;\t Catch:{ ba -> 0x02da }\n r2 = 18;\n r1 = r1[r2];\t Catch:{ ba -> 0x02da }\n r0 = r0.equals(r1);\t Catch:{ ba -> 0x02da }\n if (r0 == 0) goto L_0x02dc;\n L_0x02d0:\n r0 = -8388608; // 0xffffffffff800000 float:-Infinity double:NaN;\n r0 = java.lang.Float.valueOf(r0);\t Catch:{ ba -> 0x02da }\n r7.k = r0;\t Catch:{ ba -> 0x02da }\n goto L_0x01ed;\n L_0x02da:\n r0 = move-exception;\n throw r0;\t Catch:{ NumberFormatException -> 0x0242 }\n L_0x02dc:\n r0 = r7.h;\t Catch:{ ba -> 0x02f8 }\n r0 = r0.l();\t Catch:{ ba -> 0x02f8 }\n r1 = z;\t Catch:{ ba -> 0x02f8 }\n r2 = 9;\n r1 = r1[r2];\t Catch:{ ba -> 0x02f8 }\n r0 = r0.equals(r1);\t Catch:{ ba -> 0x02f8 }\n if (r0 == 0) goto L_0x02fa;\n L_0x02ee:\n r0 = 2143289344; // 0x7fc00000 float:NaN double:1.058925634E-314;\n r0 = java.lang.Float.valueOf(r0);\t Catch:{ ba -> 0x02f8 }\n r7.k = r0;\t Catch:{ ba -> 0x02f8 }\n goto L_0x01ed;\n L_0x02f8:\n r0 = move-exception;\n throw r0;\t Catch:{ NumberFormatException -> 0x0242 }\n L_0x02fa:\n r0 = r7.h;\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = r0.l();\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = java.lang.Float.valueOf(r0);\t Catch:{ NumberFormatException -> 0x0242 }\n r7.k = r0;\t Catch:{ NumberFormatException -> 0x0242 }\n goto L_0x01ed;\n L_0x0308:\n r0 = r7.h;\t Catch:{ ba -> 0x0324 }\n r0 = r0.l();\t Catch:{ ba -> 0x0324 }\n r1 = z;\t Catch:{ ba -> 0x0324 }\n r2 = 15;\n r1 = r1[r2];\t Catch:{ ba -> 0x0324 }\n r0 = r0.equals(r1);\t Catch:{ ba -> 0x0324 }\n if (r0 == 0) goto L_0x0326;\n L_0x031a:\n r0 = 9218868437227405312; // 0x7ff0000000000000 float:0.0 double:Infinity;\n r0 = java.lang.Double.valueOf(r0);\t Catch:{ ba -> 0x0324 }\n r7.k = r0;\t Catch:{ ba -> 0x0324 }\n goto L_0x01ed;\n L_0x0324:\n r0 = move-exception;\n throw r0;\t Catch:{ NumberFormatException -> 0x0242 }\n L_0x0326:\n r0 = r7.h;\t Catch:{ ba -> 0x0342 }\n r0 = r0.l();\t Catch:{ ba -> 0x0342 }\n r1 = z;\t Catch:{ ba -> 0x0342 }\n r2 = 12;\n r1 = r1[r2];\t Catch:{ ba -> 0x0342 }\n r0 = r0.equals(r1);\t Catch:{ ba -> 0x0342 }\n if (r0 == 0) goto L_0x0344;\n L_0x0338:\n r0 = -4503599627370496; // 0xfff0000000000000 float:0.0 double:-Infinity;\n r0 = java.lang.Double.valueOf(r0);\t Catch:{ ba -> 0x0342 }\n r7.k = r0;\t Catch:{ ba -> 0x0342 }\n goto L_0x01ed;\n L_0x0342:\n r0 = move-exception;\n throw r0;\t Catch:{ NumberFormatException -> 0x0242 }\n L_0x0344:\n r0 = r7.h;\t Catch:{ ba -> 0x0360 }\n r0 = r0.l();\t Catch:{ ba -> 0x0360 }\n r1 = z;\t Catch:{ ba -> 0x0360 }\n r2 = 23;\n r1 = r1[r2];\t Catch:{ ba -> 0x0360 }\n r0 = r0.equals(r1);\t Catch:{ ba -> 0x0360 }\n if (r0 == 0) goto L_0x0362;\n L_0x0356:\n r0 = 9221120237041090560; // 0x7ff8000000000000 float:0.0 double:NaN;\n r0 = java.lang.Double.valueOf(r0);\t Catch:{ ba -> 0x0360 }\n r7.k = r0;\t Catch:{ ba -> 0x0360 }\n goto L_0x01ed;\n L_0x0360:\n r0 = move-exception;\n throw r0;\t Catch:{ NumberFormatException -> 0x0242 }\n L_0x0362:\n r0 = r7.h;\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = r0.l();\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = java.lang.Double.valueOf(r0);\t Catch:{ NumberFormatException -> 0x0242 }\n r7.k = r0;\t Catch:{ NumberFormatException -> 0x0242 }\n goto L_0x01ed;\n L_0x0370:\n r0 = r7.h;\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = r0.l();\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = java.lang.Boolean.valueOf(r0);\t Catch:{ NumberFormatException -> 0x0242 }\n r7.k = r0;\t Catch:{ NumberFormatException -> 0x0242 }\n goto L_0x01ed;\n L_0x037e:\n r0 = r7.h;\t Catch:{ NumberFormatException -> 0x0242 }\n r0 = r0.l();\t Catch:{ NumberFormatException -> 0x0242 }\n r7.k = r0;\t Catch:{ NumberFormatException -> 0x0242 }\n goto L_0x01ed;\n L_0x0388:\n r0 = r7.h;\t Catch:{ ba -> 0x0396 }\n r0 = r0.l();\t Catch:{ ba -> 0x0396 }\n r0 = com.google.fY.a(r0);\t Catch:{ ba -> 0x0396 }\n r7.k = r0;\t Catch:{ ba -> 0x0396 }\n goto L_0x01ed;\n L_0x0396:\n r0 = move-exception;\n r1 = new com.google.fc;\t Catch:{ NumberFormatException -> 0x0242 }\n r2 = new java.lang.StringBuilder;\t Catch:{ NumberFormatException -> 0x0242 }\n r2.<init>();\t Catch:{ NumberFormatException -> 0x0242 }\n r3 = z;\t Catch:{ NumberFormatException -> 0x0242 }\n r4 = 16;\n r3 = r3[r4];\t Catch:{ NumberFormatException -> 0x0242 }\n r2 = r2.append(r3);\t Catch:{ NumberFormatException -> 0x0242 }\n r3 = r0.getMessage();\t Catch:{ NumberFormatException -> 0x0242 }\n r2 = r2.append(r3);\t Catch:{ NumberFormatException -> 0x0242 }\n r2 = r2.toString();\t Catch:{ NumberFormatException -> 0x0242 }\n r3 = 0;\n r1.<init>(r7, r2, r0, r3);\t Catch:{ NumberFormatException -> 0x0242 }\n throw r1;\t Catch:{ NumberFormatException -> 0x0242 }\n L_0x03b9:\n r0 = r7.c;\t Catch:{ ba -> 0x03f5 }\n r1 = r7.h;\t Catch:{ ba -> 0x03f5 }\n r1 = r1.l();\t Catch:{ ba -> 0x03f5 }\n r0 = r0.a(r1);\t Catch:{ ba -> 0x03f5 }\n r7.k = r0;\t Catch:{ ba -> 0x03f5 }\n r0 = r7.k;\t Catch:{ ba -> 0x03f5 }\n if (r0 != 0) goto L_0x01ed;\n L_0x03cb:\n r0 = new com.google.fc;\t Catch:{ ba -> 0x03f5 }\n r1 = new java.lang.StringBuilder;\t Catch:{ ba -> 0x03f5 }\n r1.<init>();\t Catch:{ ba -> 0x03f5 }\n r2 = z;\t Catch:{ ba -> 0x03f5 }\n r3 = 28;\n r2 = r2[r3];\t Catch:{ ba -> 0x03f5 }\n r1 = r1.append(r2);\t Catch:{ ba -> 0x03f5 }\n r2 = r7.h;\t Catch:{ ba -> 0x03f5 }\n r2 = r2.l();\t Catch:{ ba -> 0x03f5 }\n r1 = r1.append(r2);\t Catch:{ ba -> 0x03f5 }\n r2 = 34;\n r1 = r1.append(r2);\t Catch:{ ba -> 0x03f5 }\n r1 = r1.toString();\t Catch:{ ba -> 0x03f5 }\n r2 = 0;\n r0.<init>(r7, r1, r2);\t Catch:{ ba -> 0x03f5 }\n throw r0;\t Catch:{ ba -> 0x03f5 }\n L_0x03f5:\n r0 = move-exception;\n throw r0;\t Catch:{ NumberFormatException -> 0x0242 }\n L_0x03f7:\n r0 = new com.google.fc;\t Catch:{ NumberFormatException -> 0x0242 }\n r1 = z;\t Catch:{ NumberFormatException -> 0x0242 }\n r2 = 22;\n r1 = r1[r2];\t Catch:{ NumberFormatException -> 0x0242 }\n r2 = 0;\n r0.<init>(r7, r1, r2);\t Catch:{ NumberFormatException -> 0x0242 }\n throw r0;\t Catch:{ NumberFormatException -> 0x0242 }\n L_0x0404:\n r0 = r7.a();\t Catch:{ ba -> 0x0412 }\n if (r0 == 0) goto L_0x0414;\n L_0x040a:\n r0 = java.util.Collections.emptyList();\t Catch:{ ba -> 0x0412 }\n r7.k = r0;\t Catch:{ ba -> 0x0412 }\n goto L_0x01ed;\n L_0x0412:\n r0 = move-exception;\n throw r0;\n L_0x0414:\n r0 = com.google.bA.a;\t Catch:{ ba -> 0x043e }\n r1 = r7.f();\t Catch:{ ba -> 0x043e }\n r1 = r1.ordinal();\t Catch:{ ba -> 0x043e }\n r0 = r0[r1];\t Catch:{ ba -> 0x043e }\n switch(r0) {\n case 1: goto L_0x042f;\n case 2: goto L_0x0440;\n default: goto L_0x0423;\n };\n L_0x0423:\n r0 = r7.f();\n r0 = com.google.f0.a(r0);\n r7.k = r0;\n goto L_0x01ed;\n L_0x042f:\n r0 = r7.c;\t Catch:{ ba -> 0x043e }\n r0 = r0.a();\t Catch:{ ba -> 0x043e }\n r1 = 0;\n r0 = r0.get(r1);\t Catch:{ ba -> 0x043e }\n r7.k = r0;\t Catch:{ ba -> 0x043e }\n goto L_0x01ed;\n L_0x043e:\n r0 = move-exception;\n throw r0;\n L_0x0440:\n r7.k = r5;\n goto L_0x01ed;\n L_0x0444:\n r0 = move-exception;\n throw r0;\n L_0x0446:\n r0 = move-exception;\n throw r0;\t Catch:{ ba -> 0x0448 }\n L_0x0448:\n r0 = move-exception;\n throw r0;\t Catch:{ ba -> 0x044a }\n L_0x044a:\n r0 = move-exception;\n throw r0;\t Catch:{ ba -> 0x044c }\n L_0x044c:\n r0 = move-exception;\n throw r0;\t Catch:{ ba -> 0x022d }\n L_0x044e:\n r0 = new com.google.fc;\n r1 = z;\n r2 = 21;\n r1 = r1[r2];\n r0.<init>(r7, r1, r5);\n throw r0;\n L_0x045a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.dW.i():void\");\n }", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.5747497", "text": "protected void method_3848() {}", "title": "" }, { "docid": "dd324b4cff6bbe7add50c1c9960d112d", "score": "0.57348496", "text": "boolean mo74938a(C29296g gVar);", "title": "" }, { "docid": "f4bccec648e6eb25ae6f4d7165ffc5a1", "score": "0.56853724", "text": "@Override\n\t\t\tpublic void Goruntule() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "3f13fd9a3434beeb7ce7ce1ceacbd194", "score": "0.56764376", "text": "public abstract void mo12772A(C2194gm gmVar);", "title": "" }, { "docid": "4432c18cc1d13727048fc537ee89a433", "score": "0.5656416", "text": "public void t() {\n this.g = this.f14631e;\n }", "title": "" }, { "docid": "702d9bc52f60333d7166cec3ca74228b", "score": "0.5651232", "text": "void mo19177a(C6344g gVar, C6271b bVar);", "title": "" }, { "docid": "3301c4c4dddfe1a81c4ba7122c68338e", "score": "0.56365615", "text": "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "title": "" }, { "docid": "b2732a24403d07303861dde53222f78d", "score": "0.56117964", "text": "public abstract G group();", "title": "" }, { "docid": "66274a2a7f2617224232d8d5f38515ce", "score": "0.5609613", "text": "private void searchegrn() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "03a804e001e079eeb3255d9e18598309", "score": "0.5598899", "text": "@Override\n\tpublic void draw(Graphics g) {\n\n\t}", "title": "" }, { "docid": "2741c20bad1014d612cf142e8b778c8c", "score": "0.5583021", "text": "public com.google.cl g() {\n /*\n r5 = this;\n r0 = 1;\n r2 = new com.google.cl;\n r1 = 0;\n r2.<init>(r5, r1);\n r3 = r5.i;\n r1 = 0;\n r4 = r3 & 1;\n if (r4 != r0) goto L_0x0051;\n L_0x000e:\n r1 = r5.f;\n com.google.cl.a(r2, r1);\n r1 = r3 & 2;\n r3 = 2;\n if (r1 != r3) goto L_0x001a;\n L_0x0018:\n r0 = r0 | 2;\n L_0x001a:\n r1 = r5.h;\n com.google.cl.b(r2, r1);\n r1 = r5.j;\n if (r1 != 0) goto L_0x0041;\n L_0x0023:\n r1 = r5.i;\n r1 = r1 & 4;\n r3 = 4;\n if (r1 != r3) goto L_0x0038;\n L_0x002a:\n r1 = r5.g;\n r1 = java.util.Collections.unmodifiableList(r1);\n r5.g = r1;\n r1 = r5.i;\n r1 = r1 & -5;\n r5.i = r1;\n L_0x0038:\n r1 = r5.g;\n com.google.cl.a(r2, r1);\n r1 = com.google.bA.b;\n if (r1 == 0) goto L_0x004a;\n L_0x0041:\n r1 = r5.j;\n r1 = r1.f();\n com.google.cl.a(r2, r1);\n L_0x004a:\n com.google.cl.a(r2, r0);\n r5.f();\n return r2;\n L_0x0051:\n r0 = r1;\n goto L_0x000e;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.cb.g():com.google.cl\");\n }", "title": "" }, { "docid": "9c662eb85dca3b4241b27ca6f89f2536", "score": "0.5578296", "text": "public void a(g gVar) {\n int length = this.f7927e.length;\n int i2 = 0;\n int i3 = 0;\n while (i2 < length) {\n int[] iArr = this.f7928f;\n int i4 = iArr[length + i2];\n int i5 = iArr[i2];\n x xVar = new x(this.f7927e[i2], i4, (i4 + i5) - i3, true, false);\n x xVar2 = gVar.f7882b;\n if (xVar2 == null) {\n xVar.f7924g = xVar;\n xVar.f7923f = xVar;\n gVar.f7882b = xVar;\n } else {\n xVar2.f7924g.a(xVar);\n }\n i2++;\n i3 = i5;\n }\n gVar.f7883c += (long) i3;\n }", "title": "" }, { "docid": "064f445bb0ca67126c23e9111dd7822c", "score": "0.55699867", "text": "public int b() {\r\n/* 31 */ return this.g;\r\n/* */ }", "title": "" }, { "docid": "ad9b4e54d5d0036d26b35914c6fceb6b", "score": "0.5558407", "text": "int mo30435g();", "title": "" }, { "docid": "2a25b33306879cb78cb3ad6e473c8ba9", "score": "0.55581", "text": "public void setG(int g) {\n this.g = g;\n this.f = (this.g + this.h);\n }", "title": "" }, { "docid": "58b12f5ed837a6b2086f9a57a9519ee0", "score": "0.55562305", "text": "public void mo1567b(ag agVar) {\n }", "title": "" }, { "docid": "ba93fb558de49568d42028ee8a22b41b", "score": "0.555569", "text": "void mo104792b();", "title": "" }, { "docid": "7ba2946d983bb1e7f8bf10a547e6dc3f", "score": "0.554911", "text": "public void mo14489d() {\n }", "title": "" }, { "docid": "0c390879069081102b3475b0b03c9f00", "score": "0.55440086", "text": "C17543j<K, V> mo45066g();", "title": "" }, { "docid": "bc54e00e22e4af57d9a8db9cf58b5dbe", "score": "0.5543033", "text": "C11928d<K, V> mo29498g();", "title": "" }, { "docid": "07a3b51a1f8b32d33fa43c7dbf3686a7", "score": "0.55372196", "text": "private void g(final int r, final int i, final int a, final int b, final int c, final int d) {\r\n int p = i << 1;\r\n v[a] += v[b] + m[sigma[r][p]];\r\n v[d] = rot(v[d] ^ v[a], 16);\r\n v[c] += v[d];\r\n v[b] = rot(v[b] ^ v[c], 12);\r\n v[a] += v[b] + m[sigma[r][p+1]];\r\n v[d] = rot(v[d] ^ v[a], 8);\r\n v[c] += v[d];\r\n v[b] = rot(v[b] ^ v[c], 7);\r\n }", "title": "" }, { "docid": "2f2216d5b5c98690feaa3184c2634e23", "score": "0.5527662", "text": "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "title": "" }, { "docid": "00b6d0c319264e9fb4d9d7f5a01baccf", "score": "0.5526516", "text": "public String getGg() {\n return gg;\n }", "title": "" }, { "docid": "881dabace4a3bd10a93c736ae3eba466", "score": "0.5517013", "text": "void mo19077b();", "title": "" }, { "docid": "8b3d721b1eea281aeed549a0c2e07286", "score": "0.5504353", "text": "private void StartotraL() {\n\t\t\r\n\t}", "title": "" }, { "docid": "20a1777d451996ecb471c42be1b884bf", "score": "0.5473986", "text": "C17553b mo31978og();", "title": "" }, { "docid": "7496827f76c9e11d7af8025f352e2a4b", "score": "0.54656625", "text": "public void e()\r\n/* 16: */ {\r\n/* 17: 24 */ if (this.j.c.h()) {\r\n/* 18: 25 */ this.j.a(new byz(this.j.h));\r\n/* 19: */ }\r\n/* 20: 27 */ g();\r\n/* 21: */ }", "title": "" }, { "docid": "01cb4f98bf03ee2252996fa708c8785e", "score": "0.5462593", "text": "String mo18769a_();", "title": "" }, { "docid": "9693af409d6e67bde86d8791045fc715", "score": "0.5461711", "text": "public float func_147649_g()\r\n/* 698: */ {\r\n/* 699:699 */ return this.sound.func_147649_g();\r\n/* 700: */ }", "title": "" }, { "docid": "7f33b94e05ba0673272b5be32d45ec84", "score": "0.54589736", "text": "public void mo1565c(ag agVar) {\n }", "title": "" }, { "docid": "7f33b94e05ba0673272b5be32d45ec84", "score": "0.54589736", "text": "public void mo1565c(ag agVar) {\n }", "title": "" }, { "docid": "b681948cf3e17e3468c0802fee067e2a", "score": "0.54584074", "text": "public void begingroup() {}", "title": "" }, { "docid": "cd99e99b17a8492776f589dd5fa01c10", "score": "0.5453608", "text": "@Override\n\tpublic void draw(Graphic g) {\n\t}", "title": "" }, { "docid": "d5970510e551766921326e9d9b262f14", "score": "0.5445613", "text": "public i t() {\n while (!this.f15249e) {\n this.f15247c.q(this, this.f15245a);\n }\n if (this.g.length() > 0) {\n String sb = this.g.toString();\n StringBuilder sb2 = this.g;\n sb2.delete(0, sb2.length());\n this.f15250f = null;\n i.c cVar = this.l;\n cVar.p(sb);\n return cVar;\n }\n String str = this.f15250f;\n if (str != null) {\n i.c cVar2 = this.l;\n cVar2.p(str);\n this.f15250f = null;\n return cVar2;\n }\n this.f15249e = false;\n return this.f15248d;\n }", "title": "" }, { "docid": "5ec1fa7e45910ded9fefa3f77046d1d3", "score": "0.5442251", "text": "protected abstract void mo1754m();", "title": "" }, { "docid": "3cf489f64381e5137563821ca98a271c", "score": "0.54400444", "text": "void mo30878b();", "title": "" }, { "docid": "dac917286a3c4c5176d830240b15f242", "score": "0.54334146", "text": "private static void printCode(final BNFGrammar g) {\n\t\tObject[] o = g.getParsedObjects();\n\t\tif (o == null) {\n\t\t\tSystem.out.println(\"ParsedObjects = null\");\n\t\t\treturn;\n\t\t} else if (o.length == 0) {\n\t\t\tSystem.out.println(\"ParsedObjects length = 0\");\n\t\t\treturn;\n\t\t}\n\t\tfor (Object x : o) {\n\t\t\tSystem.out.println(\"\\\"\" + x + \"\\\"\");\n\t\t}\n\t}", "title": "" }, { "docid": "8cd91002074e33fb538d203dcd27c6db", "score": "0.54317003", "text": "protected abstract void mo773k();", "title": "" }, { "docid": "df970d9257b3282612e3b7ad881bca60", "score": "0.54282296", "text": "protected void bhjp5027AcedeMhjj027a() {\n }", "title": "" }, { "docid": "b12373d06f86529bf5b15fef91d55634", "score": "0.54231924", "text": "public void ligar();", "title": "" }, { "docid": "d4e15b200c2022658af267c700b34269", "score": "0.54179937", "text": "@Override\n\tpublic void anlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "8df0b57b62938555d79715899c846875", "score": "0.54155254", "text": "void mo14967b();", "title": "" }, { "docid": "a5c5524a99b256e5208aa795bc116128", "score": "0.5414093", "text": "Data mo98475e();", "title": "" }, { "docid": "466ae73c101dccf0eb3fc03386810935", "score": "0.54115474", "text": "private void m8886p() {\n }", "title": "" }, { "docid": "921acd8cbf90a5e89265be2d35976434", "score": "0.54092693", "text": "public void H() {\n this.f14631e = this.g;\n }", "title": "" }, { "docid": "ebb2e35b926eb136eab910c491096a0d", "score": "0.54017186", "text": "void mo15049d_();", "title": "" }, { "docid": "491d08bc5654d3b218f9d8fab84145b6", "score": "0.539562", "text": "private static HuellaDigital<String> getGLibString() {\n return new HuellaDigital<String>() {\n\t public int huellaDigital(String obj){\n\t\tint h=5381;\n\t\tfor(int i=0; i < obj.length(); i++){\n\t\t char c=obj.charAt(i);\n\t\t h=h*33+c;\n\t\t}\n\t\treturn h;\n\t }\n };\n }", "title": "" }, { "docid": "fc93937b348df91af5e6757c457706d4", "score": "0.5394425", "text": "public /* bridge */ /* synthetic */ void mo43543g() {\n super.mo43543g();\n }", "title": "" }, { "docid": "9b548d9b15e4e11441ff62382d73e05b", "score": "0.53917557", "text": "private void g()\r\n/* 105: */ {\r\n/* 106:114 */ for (int i = 0; i < this.d.size(); i++)\r\n/* 107: */ {\r\n/* 108:115 */ abh localabh = (abh)this.d.get(i);\r\n/* 109:116 */ abi localabi = a(localabh.d(), 32);\r\n/* 110:117 */ if (localabi == null)\r\n/* 111: */ {\r\n/* 112:119 */ localabi = new abi(this.b);\r\n/* 113:120 */ this.e.add(localabi);\r\n/* 114:121 */ c();\r\n/* 115: */ }\r\n/* 116:123 */ localabi.a(localabh);\r\n/* 117: */ }\r\n/* 118:126 */ this.d.clear();\r\n/* 119: */ }", "title": "" }, { "docid": "fa32f830910aeae71dc86bf338a8b0fc", "score": "0.53872955", "text": "@Override\n\tpublic void genrator() {\n\n\t}", "title": "" }, { "docid": "3b6bc4364f81307b5c9254c76565e8a8", "score": "0.53801364", "text": "K mo29495d();", "title": "" }, { "docid": "4fc007457777abc814c9644d4386900a", "score": "0.5375266", "text": "void mo17387r();", "title": "" }, { "docid": "890be9116fd5b154a68918594f13db21", "score": "0.5374232", "text": "private String grenBygger(Node<T> p) {\n TabellStakk stakk = new TabellStakk();\n while (p.forelder!=null ){\n stakk.leggInn(p);\n p=p.forelder;\n }\n StringBuilder sb = new StringBuilder(\"[\");\n sb.append(p);\n while (stakk.antall() != 0){\n sb.append(\", \");\n sb.append(stakk.taUt());\n }\n sb.append(\"]\");\n return sb.toString();\n }", "title": "" }, { "docid": "195f557e82dc6726fbeb5416958565c8", "score": "0.5373915", "text": "private synchronized void m28223g() {\n List<LatLng> b = this.f23912a.mo7181b();\n List list = this.f23913b;\n list.clear();\n C4836a c4836a = new C4836a();\n af afVar = null;\n for (LatLng b2 : b) {\n af b3 = C4754b.m21100b(b2);\n if (afVar != null) {\n if (Math.abs(b3.m21490f() - afVar.m21490f()) > 536870912) {\n float g;\n if (b3.m21490f() - afVar.m21490f() > 536870912) {\n g = ((float) (b3.m21492g() - afVar.m21492g())) / ((float) ((b3.m21490f() - afVar.m21490f()) - 1073741824));\n af afVar2 = new af(-536870912, (int) (((float) afVar.m21492g()) + (((float) (-536870912 - afVar.m21490f())) * g)));\n afVar = new af(536870911, (int) (((float) b3.m21492g()) + (g * ((float) (536870912 - b3.m21490f())))));\n c4836a.m21514a(afVar2);\n list.add(c4836a.m21516c());\n c4836a = new C4836a();\n c4836a.m21514a(afVar);\n c4836a.m21514a(b3);\n } else if (b3.m21490f() - afVar.m21490f() < -536870912) {\n g = ((float) (afVar.m21492g() - b3.m21492g())) / ((float) ((afVar.m21490f() - b3.m21490f()) - 1073741824));\n af afVar3 = new af(536870911, (int) (((float) afVar.m21492g()) + (((float) (536870911 - afVar.m21490f())) * g)));\n afVar = new af(-536870912, (int) (((float) b3.m21492g()) + (g * ((float) (-536870912 - b3.m21490f())))));\n c4836a.m21514a(afVar3);\n list.add(c4836a.m21516c());\n c4836a = new C4836a();\n c4836a.m21514a(afVar);\n c4836a.m21514a(b3);\n } else {\n throw new AssertionError();\n }\n afVar = b3;\n }\n }\n c4836a.m21514a(b3);\n afVar = b3;\n }\n list.add(c4836a.m21516c());\n C6441o.m28222a(this.f23913b, this.f23912a.mo7185f(), this.f23912a.mo7183d(), this.f23914c);\n }", "title": "" }, { "docid": "9b33ba0403503fffa9d6b82f5dcac5ad", "score": "0.5366911", "text": "void mo18870b();", "title": "" }, { "docid": "daffb738763ccf21a7b6a53cb5b8a524", "score": "0.5364625", "text": "int getSOG();", "title": "" }, { "docid": "304b0c01e87d30ddbe15f50c17ad434e", "score": "0.5361199", "text": "@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}", "title": "" }, { "docid": "0fb9b9092437c05a95f54ed884214bc7", "score": "0.5358107", "text": "public int gutteral_b(String g)\r\n\t{\r\n\t\tint end = g.length();\r\n\t\tint y = 0;\r\n\t\tint z = 0;\r\n\t\tif(end < 2)\r\n\t\t{\r\n\t\t\treturn 0; \r\n\t\t}\r\n\t\tint sing = end -2;\r\n\t\tint gen = end -1;\r\n\t\tif((g.substring(gen, end).equals(\"ה\"))||(g.substring(gen, end).equals(\"ת\"))||(g.substring(gen, end).equals(\"י\")))\r\n\t\t{\r\n\t\t\tz = 1;\t\r\n\t\t}\r\n\t\tif((g.substring(0, 1).equals(\"ה\"))||(g.substring(0, 1).equals(\"ל\")||(g.substring(0, 1).equals(\"מ\"))||(g.substring(0, 1).equals(\"ב\")))||(g.substring(0, 1).equals(\"ש\"))||(g.substring(0, 1).equals(\"ו\"))||(g.substring(0, 1).equals(\"י\"))||(g.substring(0, 1).equals(\"ת\"))||(g.substring(0, 1).equals(\"כ\")))\t\r\n\t\t{\r\n\t\t\ty = 1;\t\r\n\t\t}\r\n\t\tif((y ==1)&&(z ==1))\r\n\t\t{\r\n\t\t\treturn 3;\t\r\n\t\t}\r\n\t\tif(y ==1)\r\n\t\t{\r\n\t\t\treturn 1;\t\r\n\t\t}\r\n\t\tif(z ==1)\r\n\t\t{\r\n\t\t\treturn 2;\t\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "284c46a4c307778879e54e251411a82c", "score": "0.5356143", "text": "K mo45062d();", "title": "" }, { "docid": "8dee6d0a104160a7f980896863e05b61", "score": "0.535588", "text": "public void gagne() {\n\t\tout.gagne();\n\t\t\n\t}", "title": "" }, { "docid": "b2fba8c8c9263221319eb66d5758fa1e", "score": "0.5353745", "text": "public String c()\r\n/* 45: */ {\r\n/* 46:116 */ return \"itemGroup.\" + b();\r\n/* 47: */ }", "title": "" }, { "docid": "9fad9541a865a83296c74c2909e39e6b", "score": "0.53501374", "text": "public int gutteral2(String g)\r\n\t{\r\n\t\tint end = g.length();\r\n\t\tif(end < 2)\r\n\t\t{\r\n\t\t\treturn 0; \r\n\t\t}\r\n\t\tint sing = end -2;\r\n\t\tint gen = end -1;\r\n\t\tif((g.substring(0, 1).equals(\"ה\"))||(g.substring(0, 1).equals(\"ל\")||(g.substring(0, 1).equals(\"מ\"))||(g.substring(0, 1).equals(\"ב\")))||(g.substring(0, 1).equals(\"ש\"))||(g.substring(0, 1).equals(\"ו\"))||(g.substring(0, 1).equals(\"י\"))||(g.substring(0, 1).equals(\"ת\"))||(g.substring(0, 1).equals(\"כ\")))\r\n\t\t{\r\n\t\t\treturn 1;\t\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "52e58dc696fa9cd2af7a58ba9fa6c117", "score": "0.5349024", "text": "public abstract C25967i mo109672g();", "title": "" }, { "docid": "4edac04b2cfbe194c1b501ad5334e429", "score": "0.5348685", "text": "public final h g() {\n return this.f6439j;\n }", "title": "" }, { "docid": "4d9e164e4e911df1380f4618e0fe7a08", "score": "0.534525", "text": "OI (){\n\t\t\n\t}", "title": "" }, { "docid": "90381b10e61a234d639c52aa5fdacf1c", "score": "0.5344098", "text": "void mo89628b();", "title": "" }, { "docid": "02b4841be788492bd23ae68407929655", "score": "0.53409016", "text": "public interface C29277b {\n /* renamed from: a */\n boolean mo74938a(C29296g gVar);\n}", "title": "" }, { "docid": "ad69763cd341ad7b111719580428eee5", "score": "0.53232616", "text": "@Override\n\tpublic void draw(Graphics2D g) {\n\t\t\n\t}", "title": "" }, { "docid": "fa3079170ac751c108119dbd53e4c7de", "score": "0.5317149", "text": "public int gutteral2_c(String g)\r\n\t{\r\n\t\tint end = g.length();\r\n\t\tif(end < 2)\r\n\t\t{\r\n\t\t\treturn 0; \r\n\t\t}\r\n\t\tint sing = end -2;\r\n\t\tint gen = end -1;\r\n\t\tif((g.substring(0, 1).equals(\"ה\"))||(g.substring(0, 1).equals(\"ל\")||(g.substring(0, 1).equals(\"מ\"))||(g.substring(0, 1).equals(\"ב\")))||(g.substring(0, 1).equals(\"ש\"))||(g.substring(0, 1).equals(\"י\"))||(g.substring(0, 1).equals(\"ת\"))||(g.substring(0, 1).equals(\"כ\")))\r\n\t\t{\r\n\t\t\treturn 1;\t\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "15b28126c43f4e33a5402ef2f46e9160", "score": "0.5311473", "text": "public void mo31587l() {\n }", "title": "" }, { "docid": "9dc8fa9873f15ed5dedede31f4a557cd", "score": "0.5308592", "text": "void mo19076a();", "title": "" }, { "docid": "8f9a03b64fbf38f13bf58a970e136564", "score": "0.53083056", "text": "public abstract String mo109671f();", "title": "" }, { "docid": "aecd3e53ab227a5b4b643e876fae428e", "score": "0.53050846", "text": "@Deprecated\r\n\tpublic static double converterGramaEmKg(double g) {\r\n\t\treturn (g/1000);\r\n\t}", "title": "" }, { "docid": "7249cd4f3925b2e15f9aabc24f9c4493", "score": "0.53044343", "text": "void mo1746b();", "title": "" }, { "docid": "8f256da498e15283f38a812a0f3eab5c", "score": "0.5299217", "text": "File mo19176a(C6344g gVar);", "title": "" } ]
d7b52c9f5490a069175fc3514a5b107c
father puede ser null
[ { "docid": "b725c9aafe650af8624b639f3b80851d", "score": "0.0", "text": "public Folder createForNewUser() {\n\t\tfinal Collection<Folder> childFolders = new ArrayList<Folder>();\n\t\tfinal Collection<PrivateMessage> messages = new ArrayList<PrivateMessage>();\n\t\tfinal Folder res = new Folder();\n\t\tres.setChildFolders(childFolders);\n\t\tres.setPrivateMessages(messages);\n\t\tres.setOfTheSystem(false);\n\t\treturn res;\n\t}", "title": "" } ]
[ { "docid": "828d08156134af1f67c0af0a82f44386", "score": "0.6315584", "text": "public Node getFather() {\n\t\treturn father;\n\t}", "title": "" }, { "docid": "cb776126685ec306c90d7a8b29be98aa", "score": "0.63013935", "text": "@Override\n public Optional<Node> getParent() {\n return Optional.ofNullable(parent);\n }", "title": "" }, { "docid": "8c0e306487f8225815884059a22c850b", "score": "0.6257098", "text": "Parent getParent();", "title": "" }, { "docid": "f30226c673217d1bd5fc82e0ed347ba1", "score": "0.6252861", "text": "public M spParentNull(){if(this.get(\"spParentNot\")==null)this.put(\"spParentNot\", \"\");this.put(\"spParent\", null);return this;}", "title": "" }, { "docid": "32f5224a08e9c0ac80ee7e3dfb7f40f9", "score": "0.608552", "text": "public Fibonaccipuu getParent(){\r\n return this.parent;\r\n }", "title": "" }, { "docid": "ec4bdc2eaacd218fde8befde30d8f9cd", "score": "0.60264546", "text": "public ParentForeignKey getParentForeignKey();", "title": "" }, { "docid": "84669fb23139873a2c09f9a4443b4596", "score": "0.5961524", "text": "public void setFather(AhnentafelEntry a) {\r\n\t\tthis.father = a;\r\n\t}", "title": "" }, { "docid": "526aebdd9df4184d9eb63ab0c450cbda", "score": "0.5906029", "text": "public void setFather(Node father) {\n\t\tthis.father = father;\n\t}", "title": "" }, { "docid": "1b0423f413225b1238dc4b7401b67d5d", "score": "0.59053606", "text": "INode getParent();", "title": "" }, { "docid": "42fbd23554201ffc39f7deadf1639647", "score": "0.5872396", "text": "public void setFather(Node father)\n {\n m_father = father;\n }", "title": "" }, { "docid": "fe9d808a4e88454b082699a5fe5dfd59", "score": "0.58601433", "text": "T getParent();", "title": "" }, { "docid": "4f4fc19c0cc4caaa39efeef1146d82d0", "score": "0.5858328", "text": "SpoonFolder getParent();", "title": "" }, { "docid": "d87d0b2a8097c8377587f87fd75aab72", "score": "0.57959133", "text": "public AhnentafelEntry getFather() {\r\n\t\treturn father;\r\n\t}", "title": "" }, { "docid": "99421a4c90f860e8d643c01775db4a50", "score": "0.57588655", "text": "public TreeNode getParent();", "title": "" }, { "docid": "f215968263b7b7931e9d3d57f53a4072", "score": "0.5729846", "text": "private void preOrden(Hoja r){\n if(r!=null){\n System.out.println(r.dato); // reemplazar por funcion\n preOrden(r.izquierda);\n preOrden(r.derecha);\n }\n }", "title": "" }, { "docid": "8b361159bed1d0fc15febac072b8d8de", "score": "0.571275", "text": "public void setParent(Fibonaccipuu parent){\r\n this.parent = parent;\r\n }", "title": "" }, { "docid": "f2baafcbc288b03e21fadcecbbab73c4", "score": "0.56573", "text": "public Node<A> getParent();", "title": "" }, { "docid": "7f791919f72f4f809c85ef024bde6d2c", "score": "0.5633635", "text": "public Empleado getChild(int i) {\n return null;\n }", "title": "" }, { "docid": "d2e42ff8a9762d23efe61bf00d5749f5", "score": "0.56289667", "text": "@Override\n\tpublic Object getParent(Object element) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d2e42ff8a9762d23efe61bf00d5749f5", "score": "0.56289667", "text": "@Override\n\tpublic Object getParent(Object element) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f7e244120d9602286ad763517d18eea2", "score": "0.56182355", "text": "@Override\n\tpublic Chain getParent() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ecbe4a132f0a02de5a9767ec1255db0c", "score": "0.5616505", "text": "ClosureTableTreeNode getParent();", "title": "" }, { "docid": "4d62fe144e16fa73e2a5fb289499cead", "score": "0.5597205", "text": "Variable getParentVariable();", "title": "" }, { "docid": "a6a8f771ad1408062ad85950c633e528", "score": "0.5583872", "text": "public int getfather(int[] fa, int i) {\n\t\tif (fa[i] == i) {\n\t\t\treturn i;\n\t\t}\n\t\tfa[i] = getfather(fa, fa[i]);// path compression here\n\t\treturn fa[i];\n\t}", "title": "" }, { "docid": "eb5beec0ebeabcc6989c65930b9e6fd4", "score": "0.5580234", "text": "@Override\n protected boolean hasParentRelationship(Beneficiary beneficiary) {\n return true;\n }", "title": "" }, { "docid": "2fb3422d854a237edb8950e9dd0c283d", "score": "0.5572125", "text": "boolean getDomainTreeNodeIdNull();", "title": "" }, { "docid": "04e6c94f2b54d2e72e8e4e6fa715baca", "score": "0.5563851", "text": "@Override\n\tpublic Node getFirstNode() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5bdd67e0e3782ef847fbb9b10e49ad66", "score": "0.5551446", "text": "@Override\n\tpublic Dinero getDinero() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a289166947f42d058eaca81ae882d36d", "score": "0.55417305", "text": "@Test\n public void testParent() {\n fixture.setRoot(0);\n assertNull(fixture.parent(fixture.root()));\n\n Node<Integer> one = fixture.addLeft(fixture.root(), 1);\n assertNotNull(fixture.parent(one));\n assertEquals(new Integer(0), fixture.parent(one).getElement());\n }", "title": "" }, { "docid": "7af2037451ffaedafb7297f6136b4ada", "score": "0.55371714", "text": "XmlFieldNode getParentNode();", "title": "" }, { "docid": "6399970b8e4f5646652b07f9f4b4d559", "score": "0.5531571", "text": "private CState findCStateBeforeNull(CState state) {\n while (state.getParent() != null && state.getParent().getParent() != null) {\n state = state.getParent();\n }\n return state;\n }", "title": "" }, { "docid": "7c49ff36e9130f857d16bf8cf2061d55", "score": "0.5527139", "text": "public E getParent();", "title": "" }, { "docid": "255ba1f72165af987bbe29e82f702d71", "score": "0.5500485", "text": "private boolean setParentNode(Node father, int value, Node newValue) {\n\t\tboolean result = false;\n\t\tif (father.getLeft() != null) {\n\t\t\tif (father.getLeft().getValue() == value) {\n\t\t\t\tfather.setLeft(newValue);\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\tif (father.getRight() != null) {\n\t\t\tif (father.getRight().getValue() == value) {\n\t\t\t\tfather.setRight(newValue);\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "caccb9681bafd68a5796d340764b02e5", "score": "0.5493381", "text": "private List<TreeNode> getParentage() {\n return getParentage(this, new LinkedList<TreeNode>());\n }", "title": "" }, { "docid": "dd2cc21dbfc1d6f18e2774e79c95e927", "score": "0.54819655", "text": "private Node<T> get(Node<T> parent, T data) {\n Node<T> pred = getPredecessorGivenSentinel(data, parent);\n // check if it hit the end\n if (pred != null && pred.getNext() != null\n && pred.getNext().getData() != null\n && pred.getNext().getData().equals(data)) {\n // check if next is equal else go down a level\n return pred;\n } else if (pred != null && pred.getDown() != null) {\n // if we can go down a level\n return get(pred.getDown(), data);\n }\n return null;\n }", "title": "" }, { "docid": "6bf91326264e9c9e34f46b8610ad5c3f", "score": "0.5474083", "text": "public boolean hasSibling(){\r\n return this.getSiblingL() !=null /*&& this.getSiblingR()!=null*/;\r\n }", "title": "" }, { "docid": "ed534128f4dc6f2c916e6274a6f834f1", "score": "0.54725504", "text": "public String getParent();", "title": "" }, { "docid": "14da29f601c3d03093c9b4f5b3f47832", "score": "0.5458086", "text": "public ConstNode getFatherConst()\n {\n return m_father;\n }", "title": "" }, { "docid": "5421fd6b21b2d631c37724c1fa4f3b11", "score": "0.54474694", "text": "boolean hasParent();", "title": "" }, { "docid": "ed618a642af6473c565eec1c7707ac2f", "score": "0.5445004", "text": "public void EliminarNodoInicial()\n { \n if(primerNodo == null) {\n System.out.print(\"La lista se encuentra vacía \\n\");\n }\n else if(primerNodo !=null) {\n primerNodo = primerNodo.Siguiente;\n primerNodo.Anterior= null;\n System.out.print(\"Se elimina el nodo inicial \\n\"); \n } else{\n System.out.print(\"La lista se encuentra vacia \\n\");\n } \n }", "title": "" }, { "docid": "822c6326ff4653c616e7a1dbcbeb5374", "score": "0.54303735", "text": "public TNode<E> getSuccessor() {\n //System.out.println(\"getSuccessor: Fix me!!!\"); /**************************************************************************************/\n if (left != null) \n return left.getRightmost();\n else {\n TNode<E> child = this;\n while (child.getLeftmost() != null /*&& child.parent.left==child*/) {\n child = child.getLeftmost();\n }\n return child;\n }\n }", "title": "" }, { "docid": "be10127b7ecb6a5a899782c01e2aa18b", "score": "0.54300743", "text": "public TreeNode getParent(){\n return this.parent;\n }", "title": "" }, { "docid": "f1653093769e7f9b0fd84a6a50715af5", "score": "0.54194516", "text": "public TableTreeNode getParentNode();", "title": "" }, { "docid": "2f5402c5821fbe35fc4c29ea4480b266", "score": "0.54135275", "text": "private NodoA predecesor(NodoA tmp){\n if(tmp.der != null)\n return predecesor(tmp.der);\n return tmp;\n }", "title": "" }, { "docid": "ab5b20ca4f6a2c0caf3ee764ff73c33f", "score": "0.5409483", "text": "@Override\n\tpublic CollectionIF<DoctorIF> getSiblings() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "37b8bf091f7b1feae3d909a0722da8f1", "score": "0.5392663", "text": "@Override\n\tpublic default GTGraph\t\t\t\t\t \t\tgetParent() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "39c7d5e18faf09f030f43b3c26498fb6", "score": "0.5390881", "text": "public Id getParentId();", "title": "" }, { "docid": "217a185efc851ac7d6d6a28162dc1782", "score": "0.5379751", "text": "@Override\n public int isThisMother() {\n return 0;\n }", "title": "" }, { "docid": "47e5b4854f2cc2ef372607a93d4d4bcd", "score": "0.5374742", "text": "@Override\n public AJoinPoint getParentImpl() {\n return null;\n }", "title": "" }, { "docid": "0adc5bad5abebed15749c3a64b7e8a6d", "score": "0.5370002", "text": "private AVLTree firstrightAncestor(){\n AVLTree current = this;\n while(current.parent != null){\n if(compare(current, this) == 1) return current;\n current = current.parent;\n }\n return null;\n }", "title": "" }, { "docid": "1f61ed136b94861701b33a022e831e0d", "score": "0.5362116", "text": "public BESVertex getDFSParent() { return dfsParent; }", "title": "" }, { "docid": "3f5acaa2d6e4486d1ad98d8be7b07bbd", "score": "0.53609324", "text": "protected abstract Parent getRoot();", "title": "" }, { "docid": "023438444baeda7cc1f56095fadd14ac", "score": "0.5360811", "text": "public boolean isParent() {\r\n\t\tif (Utils.isStringNullOrEmpty(dependDe)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "652e91acb42da605874407f49dff2024", "score": "0.53541976", "text": "@Override\n\tpublic List<TreeEntity> getQueryTree(Specialty profess) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "45dedf72972d6586e34d8347e515f4c7", "score": "0.534888", "text": "public com.poesys.db.test.ISelf2 getParents2();", "title": "" }, { "docid": "9e8f7f2bde9581f9ee352247b31ba3bc", "score": "0.534013", "text": "@Override\r\n\tpublic Tag getParent() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6b032043be86a8e0bdf760a62f85dd7c", "score": "0.5338295", "text": "private void setSibling(utente sibling) throws SQLException, NotAllowedException {\n\n utente u1 = this; //te stesso\n utente u2 = sibling; //chi ti ha aggiunto\n listautenti u1_parents;\n listautenti u2_parents;\n utente u1_parent = null;\n utente u2_parent = null;\n\n do{\n // Recupera i genitori dei due utenti\n u1_parents = u1.getGenitori();\n u2_parents = u2.getGenitori();\n // Recupera il numero di genitori dei due utenti\n int u1_size = u1_parents.size();\n int u2_size = u2_parents.size();\n // Se {u1} non ha parenti\n if(u1_size == 0){\n for(utente parent: u2_parents){\n u1.setParent(parent);\n }\n }\n\n if(u1_size == 1 && u2_size == 2){\n // Recupera il genitore di {u2} che non ha {u1}\n utente other_parent;\n if(u1.getByParentela(\"madre\") != null){\n other_parent = u2.getByParentela(\"madre\");\n }else{\n other_parent = u2.getByParentela(\"padre\");\n }\n\n u1.setParent(other_parent);\n }\n\n /* \n Le due condizioni vanno considerate anche con gli utenti a parti invertite, \n perciò si fa lo swap dei due utenti\n Alla termine di questa operazione, i due utenti avranno gli stessi genitori\n */\n\n if(u1.equals(sibling)) break;\n\n // Swappa utenti\n u1 = sibling;\n u2 = this;\n\n }while(true);\n \n\n }", "title": "" }, { "docid": "44bd6a026faed3868a3fe7498d460c99", "score": "0.5334073", "text": "@Override\n\tpublic void fetchParent(EntityManager em) {\n\t\t\n\t}", "title": "" }, { "docid": "5fd98f23f8db88416d52c5282b9299a2", "score": "0.5329431", "text": "public List<Person> getPaternalUncle(Person p){\n\t\tList<Person> paternalUncle = new ArrayList<Person>();\n\t\tPerson father = p.getFather();\n\t\tif(!father.equals(null))\n\t\t\tpaternalUncle.addAll(getBrothers(p));\n\t\treturn paternalUncle;\n\t}", "title": "" }, { "docid": "686cc39469ebb1a022e37765d87fd57b", "score": "0.532785", "text": "public Node getRelatedNode();", "title": "" }, { "docid": "352d8e70885d3450f3137006c0b0e768", "score": "0.5318868", "text": "PathNode<T> getParent();", "title": "" }, { "docid": "637b373c2eb00d630360e1e58079427e", "score": "0.5311514", "text": "public boolean hasChild()\r\n {\r\n return child != null;\r\n }", "title": "" }, { "docid": "49c740cf89ec62ae4b77fbfdb19adfbf", "score": "0.529005", "text": "public void nullifyParent() {\n\t\tthis.parent = null;\n\t\tif (items != null) {\n\t\t\tfor (int i = 0; i < items.size(); ++i) {\n\t\t\t\titems.get(i).nullifyParent();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "06d34df374d5a69b02ed9e5909e8ec48", "score": "0.52878124", "text": "public String getParentModel()\n/* 87: */ {\n/* 88:69 */ return this.parentModel;\n/* 89: */ }", "title": "" }, { "docid": "219ab2f65c71928d52d6680bdba56441", "score": "0.52843314", "text": "private int getRoot(int i) {\n while(i != father[i]) {\n father[i] = father[father[i]]; //path compression, optimization per loop to flat the tree\n i = father[i];\n }\n return i;\n }", "title": "" }, { "docid": "b68d912543b828c24cdd1f677ee957af", "score": "0.5282649", "text": "public AbstractShape getLastChild() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "55f5a2ccf6895f9038080b6dfc9ec88b", "score": "0.5273251", "text": "@Override\n\tpublic String getContForeign() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "32a3aae5914484e432f3591a630a0ff1", "score": "0.5269056", "text": "@Override\r\n public Node behind(Node n) {\n try{\r\n if(!isEmpty() && trace(n.getInfo()) != null){\r\n Node aux = head;\r\n while(aux != null){\r\n if(aux.getInfo().equals(n.getInfo())) break;\r\n previous = aux;\r\n aux = aux.getNext();\r\n } \r\n }\r\n }catch(NullPointerException nl){\r\n err(\"El primer nodo no tiene ningun predecesor \" + nl);\r\n }\r\n return previous;\r\n \r\n }", "title": "" }, { "docid": "7f9732730a094beb7e4f1da827fda9a1", "score": "0.52585524", "text": "ClosureTableTreeNode getChild();", "title": "" }, { "docid": "5c8be77dad407e37d1f1dcf9fb6a937f", "score": "0.52526116", "text": "HCNode getParent() {\n return parent;\n }", "title": "" }, { "docid": "a18cc1d848b441a32089badc6570205e", "score": "0.5247571", "text": "public void setParent(Node n);", "title": "" }, { "docid": "22e4d129c7ff51b69219da9d2b6b08b8", "score": "0.5247253", "text": "private void inOrden(Hoja r){\n if(r!=null){\n inOrden(r.izquierda);\n System.out.println(r.dato); // reemplazar por funcion\n inOrden(r.derecha);\n }\n }", "title": "" }, { "docid": "c1c3268703d4ef5631e3347a2691ae58", "score": "0.52389187", "text": "public Folder getParentFolder();", "title": "" }, { "docid": "0f896bc5d577fdf5f26ee8d6ba788291", "score": "0.52373034", "text": "public List<Person> getPaternalAunt(Person p){\n\t\tList<Person> paternalAunt = new ArrayList<Person>();\n\t\tPerson father = p.getFather();\n\t\tif(!father.equals(null))\n\t\t\tpaternalAunt.addAll(getSisters(p));\n\t\treturn paternalAunt;\n\t}", "title": "" }, { "docid": "d36996c3cce131f2892c1ffcc60d3c0d", "score": "0.52356297", "text": "@Override\n\t\t\tpublic Graph graph() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "178bddd19d1873576125835fc0b48983", "score": "0.5233445", "text": "@Override\r\n\tpublic Container getParent() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f668d2a3a8d22b119e286feeb95deacf", "score": "0.5230508", "text": "public abstract Tri isNullish();", "title": "" }, { "docid": "9c2ba14a9b30d0c0db51863b2f5a3e88", "score": "0.5216522", "text": "private WorkEntrySearchNode predecessor() {\r\n \tif(this.left!=null) {\r\n \t\treturn this.left.maximum();\r\n \t}\r\n \tWorkEntrySearchNode res=this.parent;\r\n \tWorkEntrySearchNode temp=this;\r\n \twhile(res!=null&&temp==res.left) {\r\n \t\ttemp=res;\r\n \t\tres=res.parent;\r\n \t}\r\n \treturn res;\r\n }", "title": "" }, { "docid": "d3c02deca7e4a3c1ee1793f7e6d507ce", "score": "0.5214139", "text": "@Override\n public Node getNode(Object value) {\n return null;\n }", "title": "" }, { "docid": "de9ca0ed4886ca4c222e4aad3bbe2068", "score": "0.52139354", "text": "public PositionBT<E> getParent ()\r\n\t{\r\n\t\treturn padre;\r\n\t}", "title": "" }, { "docid": "075fdb642de0b38042d7ac439186b2c4", "score": "0.5210759", "text": "@Nullable\n private TargetNode<?> getVersionedSubGraphParent(TargetNode<?> node) {\n if (!TargetGraphVersionTransformations.isVersionPropagator(node)\n && !TargetGraphVersionTransformations.getVersionedNode(node).isPresent()) {\n return null;\n }\n\n // Otherwise, return any dependent node. For reproducibility/determinism, we sort the list\n // of dependents and return the first one.\n return Iterables.getFirst(ImmutableSortedSet.copyOf(graph.getIncomingNodesFor(node)), null);\n }", "title": "" }, { "docid": "46e8954684e9f8bde41662b8c1e95e8d", "score": "0.5209467", "text": "@Override\r\n public IRState getParent() {\r\n return null; // TODO\r\n }", "title": "" }, { "docid": "c594b364b08c16c7b9115e8c67e8e479", "score": "0.520163", "text": "public void leggTilFørste(T a) {\n if(a != null){\n// Instansierer nye node å legge seg som nåværende hode\n Node currentNode = new Node(a, null, hode);\n if(hode != null ) {\n hode.forrige = currentNode;\n }\n hode = currentNode;\n if(hale == null) {\n hale = currentNode;\n }\n antall++;\n }\n }", "title": "" }, { "docid": "716d9f8ab1744cfa21b60200627d7de0", "score": "0.5200396", "text": "@Test\n public void leftChildNodeCheckRight(){\n Node root = new Node(n[0]);\n Node left = new Node(n[1]);\n root.setLeft(left);\n Assert.assertNull(\n \"Right child have to be null\",\n root.getRight()\n );\n }", "title": "" }, { "docid": "0a5ef03c156bcf263f3fc0fc00a1adff", "score": "0.52001035", "text": "public void addMember(){\n Process.affichage(\"Choisissez son parent\\n\");\n for (int i = 0; i<this.getMembers().size(); i++){\n Process.affichage(i + \"- \" + this.getMembers().get(i) + \"\\n\");\n }\n Process.affichage(this.getMembers().size() + \"- Nouveau root \\n\");\n Process.affichage(\"Veuillez choisir une option... \");\n Integer option = new Scanner(System.in).nextInt();\n if (option < this.getMembers().size()){\n this.getMembers().get(option).addEnfant(new Personne(\"New\"));\n } else {\n Personne newRoot = new Personne(\"New\");\n newRoot.addEnfant(this.root);\n this.root = newRoot;\n }\n\n }", "title": "" }, { "docid": "8bca2bbc20b9c5347491c25556f78437", "score": "0.5196592", "text": "public arvore() \r\n { \r\n root = null; \r\n }", "title": "" }, { "docid": "9fe867f18527f0c8785a8fec46004fe4", "score": "0.51938784", "text": "@Override\n public int isThisFather() {\n return 0;\n }", "title": "" }, { "docid": "75f493bce835eaa863695fa29a524ad1", "score": "0.5192855", "text": "public Human getMother() {\n return this.mother;\n }", "title": "" }, { "docid": "c686f263e0a02bafa540c845a3cf871b", "score": "0.51918966", "text": "public IBinTree leftData() {\r\n\t return null;\r\n }", "title": "" }, { "docid": "f5390764aa92566e057542458eef4173", "score": "0.51893455", "text": "@java.lang.Override\n public boolean hasParent() {\n return parent_ != null;\n }", "title": "" }, { "docid": "1040bf20e0d4ed7b87c95512006972f8", "score": "0.5188856", "text": "@Test\n public void testConvertNullToHierarchical() {\n assertNull(ConfigurationUtils.convertToHierarchical(null));\n }", "title": "" }, { "docid": "c2b7f1443672cb02a51b18c42ed02239", "score": "0.5188497", "text": "public String getCreateParentStemsIfNotExist() {\r\n return this.createParentStemsIfNotExist;\r\n }", "title": "" }, { "docid": "5ea636c2eb8fbeb8e0e448e859b597af", "score": "0.5185434", "text": "public boolean isSelfReferencing();", "title": "" }, { "docid": "5ea636c2eb8fbeb8e0e448e859b597af", "score": "0.5185434", "text": "public boolean isSelfReferencing();", "title": "" }, { "docid": "36c64db471a9e900f22856360e62ee1d", "score": "0.518476", "text": "private void isThereAParent(String parent, Node<String> temp, Boolean[] control){\n if(temp == null)\n return;\n\n else{\n if(temp.data.equals(parent)){\n control[1] = true;\n }\n\n isThereAParent(parent,temp.left,control);\n isThereAParent(parent,temp.right,control);\n }\n }", "title": "" }, { "docid": "a4746f1688cdb78372fdd90124c9d222", "score": "0.51835847", "text": "@Override\n\tpublic IJavaElement getParent() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "771f73c25528918c50215973fc7b3e15", "score": "0.51829696", "text": "public void addFamily(String name, String parent, String nickname, Node <String> temp) {\n\n boolean flag = false;\n\n if (temp == null)\n return;\n\n else {\n if (temp.data.equals(parent)) {\n\n if (nickname.substring(0, 3).equals(ibn)) {\n\n if (nickname.substring(4).equals(temp.parent)) {\n flag = true;\n }\n }\n else if (nickname.substring(0, 3).equals(ebu)) {\n if (nickname.substring(4).equals(name)) {\n flag = true;\n }\n else if (!(temp.left == null)) {\n if (nickname.substring(4).equals(temp.left.data)) {\n flag = true;\n }\n }\n }\n\n if (flag) {\n if (temp.left == null) {\n temp.left = new Node<String>();\n temp = temp.left;\n temp.data = name;\n temp.parent = parent;\n temp.nick = nickname;\n }\n else {\n temp = temp.left;\n while (temp.right != null) {\n temp = temp.right;\n }\n temp.right = new Node<String>();\n temp = temp.right;\n temp.data = name;\n temp.parent = parent;\n temp.nick = nickname;\n }\n }\n }\n else if(!flag) {\n addFamily(name, parent, nickname, temp.left);\n addFamily(name, parent, nickname, temp.right);\n }\n }\n }", "title": "" }, { "docid": "73aefdc9758b09a407025efa5e02056e", "score": "0.5173405", "text": "public int leftChild(int i);", "title": "" }, { "docid": "b0feb51c4849ea896d04ae5c1d8dfb94", "score": "0.51731783", "text": "public static void testNoParent(Membership ms) {\r\n try {\r\n Membership parent = ms.getParentMembership();\r\n Assert.fail(ms + \" has parent mship: \" + parent);\r\n }\r\n catch (MembershipNotFoundException eMNF) {\r\n Assert.assertTrue(\"no parent mship\", true);\r\n }\r\n }", "title": "" }, { "docid": "5afbb4781b03fbf3aa761b6b596194c1", "score": "0.51686937", "text": "private Node getMin(Node h)\n\t{\n\t\twhile (h.left != null) {\n\t\t\th = h.left;\n\t\t}\n\t\treturn h;\n\t}", "title": "" }, { "docid": "3c3a1526a8a28e21e5a7210d3a16a290", "score": "0.51676273", "text": "@Override\n\tpublic ManagedObject getParentManagedObject(User user, ManagedObject child)\n\t\t\tthrows RSuiteException {\n\t\treturn null;\n\t}", "title": "" } ]
82d0625955891809e841a6e4fded39ad
current size of the queue Constructor to initialize queue
[ { "docid": "fd359618a00314535cd29060ee584f04", "score": "0.7391436", "text": "Queue(int capacity) {\n arr = new int[capacity];\n this.capacity = capacity;\n front = 0;\n rear = -1;\n this.currentSize = 0;\n }", "title": "" } ]
[ { "docid": "3d4e84fa55ff045754b2c40731af516d", "score": "0.8358699", "text": "public Queue(){\n\t this(DEFAULT_CAPACITY);\n }", "title": "" }, { "docid": "928ca0d8df06477bc20b814619b0c7e7", "score": "0.7899546", "text": "public LIFOQueue() {\n this.size = 0;\n }", "title": "" }, { "docid": "f62fa54604756355fab0a9ef6d74f2ac", "score": "0.7836424", "text": "queue(int size){\r\n arr=new Node[size];\r\n capacity=size;\r\n front=0;\r\n rear=-1;\r\n count=0;\r\n }", "title": "" }, { "docid": "985bfd93ae1729f4dfc51ac534de1ea6", "score": "0.78007394", "text": "public RandomizedQueue() {\n size = 0;\n }", "title": "" }, { "docid": "b3cd26098102b9c9b13d08a35e06f202", "score": "0.7800421", "text": "public CircularArrayQueue() \n\n { \n this(DEFAULT_CAPACITY);\n }", "title": "" }, { "docid": "38ae3e4b8848e99cef30b23d637ab33c", "score": "0.7792926", "text": "public Queue( int size ) {\r\n\tqueueArray = new int[ size+1 ]; // one extra array position is always empty\r\n\tfront = 0;\r\n\tend = 0;\r\n }", "title": "" }, { "docid": "985f797e6868644c5c5fbf8b73160321", "score": "0.7774694", "text": "Queue(int sizeYouWantYourQueueToBe){\n\n quequeArray = new int [sizeYouWantYourQueueToBe];\n putloc =0;\n getloc =0;\n }", "title": "" }, { "docid": "11abf4e56522f263b0891e638849b53b", "score": "0.7734289", "text": "public Queue(int capacity){\n\t\tarr = new int[capacity];\n\t}", "title": "" }, { "docid": "c80457704c8de8c88166491fddfa3849", "score": "0.7720382", "text": "Queue(int size) {\n arr = new Person[size];\n capacity = size;\n front = 0;\n rear = -1;\n count = 0;\n }", "title": "" }, { "docid": "7b15bf69e44e3fc070b7e8b3ad312779", "score": "0.7702634", "text": "public InternalQueue() {\n _list = new Vector(6);\n }", "title": "" }, { "docid": "95653117050719a7030164c4737effdf", "score": "0.764516", "text": "public Queue() {\r\n\tqueueArray = new int[ MAX_SIZE ];\r\n\tfront = 0;\r\n\tend = 0;\r\n }", "title": "" }, { "docid": "321c55c85875113ad3bbda7bfc078472", "score": "0.762679", "text": "public Queue() {\r\n\t\tqueue = (T[])new Object[this.capacity];\r\n\t\tfront = 0;\r\n\t\trear = 0;\r\n\t\tsize = 0;\r\n\t}", "title": "" }, { "docid": "9c95632ae8e4d29b406ce6bca7a242e8", "score": "0.7605937", "text": "Queue(int size){\n\t\tarray=new int[size];\n\t\tfront=rear=-1;\n\t}", "title": "" }, { "docid": "5e5af2fda083d4520e9a2856e065595e", "score": "0.7599121", "text": "public Queue(int size)\n {\n this.size = size;\n queueAr = new int[this.size]; \n rear = 0;\n front = 0;\n }", "title": "" }, { "docid": "9ea47d587b405f45419478d17580ab55", "score": "0.7595455", "text": "public MessageQueue(int size) {\r\n\t\tMAX_SIZE = size;\r\n\t\tqueue = new Message[MAX_SIZE];\r\n\t\thead = 0;\r\n\t\ttail = 0;\r\n\t}", "title": "" }, { "docid": "5b97ccc945f5d5a006a89ae5f8976b36", "score": "0.75740856", "text": "public MyQueue() {\n\t \n\t \n\t \n\t }", "title": "" }, { "docid": "a795e0e7014a2aeb77bd165c4fcc1605", "score": "0.75427794", "text": "public MyQueue() {\n \n }", "title": "" }, { "docid": "9017ee7f342a71390c1ffc33792bfaa4", "score": "0.7540639", "text": "public MyQueue(int capacity) {\n this.elements = new int[capacity];\n }", "title": "" }, { "docid": "2709b0eb11d4a4e462309ffeca1f1cba", "score": "0.75378746", "text": "public Queue() {}", "title": "" }, { "docid": "9a6f07cadc8e64db631cedde58c18ad2", "score": "0.75353473", "text": "public LinearArrayQueue() {\n this(10);\n }", "title": "" }, { "docid": "39be386e41557f04a0de496c7cdac7c2", "score": "0.74954516", "text": "public QueueClass( int setCapacity )\n {\n queueData = new IteratorClass( setCapacity );\n }", "title": "" }, { "docid": "20d93afebf0afc889aab529ee8e3c291", "score": "0.74551505", "text": "public EventQueue(int size){\n\t\tinit (size);\n\t}", "title": "" }, { "docid": "198a737ae954fd2ef540682fdc0606bf", "score": "0.74512154", "text": "public BlockingQueue(int max_size) {\n this.max_size = max_size;\n number=0;\n // put_count=100;\n // take_count=100;\n\n }", "title": "" }, { "docid": "fd400ae4ce11d310af576d6bcf496a69", "score": "0.7446196", "text": "public MyQueue(final int Capacity) {\n\n this.head = -1;\n this.teil = -1;\n myArrayList = new Object[Capacity];\n\n }", "title": "" }, { "docid": "d5ba17e76004bd95aee24f9a5e22ac0c", "score": "0.74179107", "text": "public MyQueue() {\r\n\r\n\t}", "title": "" }, { "docid": "59705b02cf03e8ba380584b45858b9cd", "score": "0.73872846", "text": "private void initializeQueue()\n {\n queue = new ConcurrentLinkedQueue<ChannelEvent>();\n currentCount.set(0);\n }", "title": "" }, { "docid": "056dd4627965eaa0e2b7a91a47b0594e", "score": "0.7382064", "text": "public MyQueue() {}", "title": "" }, { "docid": "f04edb4362563cf5418776b1c4b8931a", "score": "0.7367092", "text": "public RQueue() { \n\t_front = _end = null;\n\t_size = 0;\n }", "title": "" }, { "docid": "d719190948e7d5010694d86ad0ace854", "score": "0.7356", "text": "public ArrayQueueImp()\n {\n myQ = (T[]) new Object[MAX_DEPTH];//create memory space for the array\n depth = 0;//set depth to number of current items\n }", "title": "" }, { "docid": "c5e616beead9f12def0bcab834c7a4e5", "score": "0.7350499", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic Queue(int size){\n\t\tthis.maxSize = size;\n\t\tthis.queueArray = (E[]) new Object[size];\n\t\tfront = 0; //index position of first slot in array\n\t\trear=-1;//there is no item yet to be the rear\n\t\tnItems =0 ; //no elements in array yet\n\t\t\n\t}", "title": "" }, { "docid": "3622dbbbc8d964a0c80a3516a3df80f1", "score": "0.732816", "text": "public Queue()\n\t{\n\t\tthis.clients = new ArrayList<>();\n\t\tthis.running = true;\n\t\tthis.len = 0;\n\t}", "title": "" }, { "docid": "7fcbdc09e2c080e19e21e00e5855f367", "score": "0.732735", "text": "public MyQueue() {\n\n }", "title": "" }, { "docid": "1de0141d02ce0d303460478e19706f0b", "score": "0.73214924", "text": "public ArrayQueue()\n {\n count = 0;\n queue = (T[]) (new Object[DEFAULT_CAPACITY]);\n }", "title": "" }, { "docid": "b1851c397d8f9938041335c01feed461", "score": "0.7313994", "text": "public MyQueue() {\n stack = new Stack<>();\n }", "title": "" }, { "docid": "dd456117adb337f698c485050c8f523c", "score": "0.7310852", "text": "public Queue() {\n\t\tthis.list = new DoublyLinkedList<>();\n\t}", "title": "" }, { "docid": "1c0dc0a7c7cf92cb05688e5224fb0005", "score": "0.7294885", "text": "public CQueue() {}", "title": "" }, { "docid": "80b2efce6feca25951ec118fd1f11ca6", "score": "0.7289753", "text": "public CircularWorkStealingQueue() {\n\t\tremainingCapacity = new AtomicInteger(capacity);\n\t}", "title": "" }, { "docid": "131ae0a98f65b8c483bb2c004ff16e64", "score": "0.72731215", "text": "public Queue() // constructor\n\t{\n\t\tfirst = null; \n\t\tlast = null; // no element in the Queue yet\n\t}", "title": "" }, { "docid": "2d52828c75abfea2606e2aa39e286703", "score": "0.72335434", "text": "public CircularArrayQueue (int initialCapacity) \n\n { \n\n front = rear = count = 0; \n queue = (T[]) (new Object[initialCapacity]); \n }", "title": "" }, { "docid": "bd4656c6a1fbccc5e456a61a6c8fb57c", "score": "0.7208946", "text": "public CellQueue(int capacity)\n {\n cells = new Cell[capacity];\n this.capacity = capacity;\n }", "title": "" }, { "docid": "36eb67ca1704ff474edb2728b015f1ec", "score": "0.7208397", "text": "public MyQueue() {\n stack = new Stack<>();\n bak_stack = new Stack<>();\n }", "title": "" }, { "docid": "75edf697d43d7639bd38d6b66aad56f4", "score": "0.7203056", "text": "public MessageQueue(int dimension) {\r\n dim = dimension;\r\n queue = new ACLMessage [dim];\r\n size = 0;\r\n head = 0; \r\n tail = dim-1;\r\n }", "title": "" }, { "docid": "3068a49d4ceb75ef9ceb19f1bb60d9a6", "score": "0.7200804", "text": "public BlockingQueue(int limit) {\r\n queue = new Vector(limit);\r\n }", "title": "" }, { "docid": "29132862ab67cf180143fcd9c88af877", "score": "0.7181749", "text": "public RandomizedQueue() {\n first = null;\n last = null;\n size = 0;\n }", "title": "" }, { "docid": "251fb543458c3aecaa7fc68dc88e5c28", "score": "0.7179799", "text": "public Queue(int size)\n {\n elements = (E[]) new Object[size];\n front = rear = count = 0;\n }", "title": "" }, { "docid": "099b6ae8db4386731a650a1e023e0585", "score": "0.7177136", "text": "private void initQueue(int size) throws IllegalArgumentException, QueueIsFullException\r\n\t{\r\n\t\tif (size<MIN_VALUE) throw new IllegalArgumentException(ERROR_QUEUE_SIZE_MINIMUM);\r\n\t\tqueue = new ArrayQueue(size);\r\n\t\tfor (int i =0;i<size;i++)\r\n\t\t{\r\n\t\t\tqueue.add(i);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4c98dbb03bd32ec759260ae2e66f5496", "score": "0.7169667", "text": "public RandomizedQueue() {\n }", "title": "" }, { "docid": "dcd41d10df42544cef8f2b3da3c12c46", "score": "0.7169406", "text": "public Queue() {\n base = new Node();\n }", "title": "" }, { "docid": "3b2c27068ee63d14b4409ba148a9275d", "score": "0.71682566", "text": "public MyQueue(int c) {\n\t\tcapacity = c;\n\t\tqueue = (E[]) new Object[capacity];\n\t\tfront = 0;\n\t\trear = 0;\n\t\tsize = 0;\n\t}", "title": "" }, { "docid": "e3655245be46b08da83b05a8f5904a22", "score": "0.71637183", "text": "public MessageQueue() {\n _queue = new LinkedList();\n }", "title": "" }, { "docid": "559ee971cc5862827434c4eb1f8319ab", "score": "0.716152", "text": "public BTQueue() {}", "title": "" }, { "docid": "c5026006a9a883c76ad7feae02b1fe08", "score": "0.71585387", "text": "public RandomizedQueue() {\n head = 0;\n tail = 0;\n data = new Object[10];\n }", "title": "" }, { "docid": "0639e9b3f0929b3e52da746c1bfc1045", "score": "0.71235645", "text": "public Queue(int capacity) {\r\n\t\tthis.capacity = capacity;\r\n\t\tqueue = (T[])new Object[this.capacity];\r\n\t\tfront = 0;\r\n\t\trear = 0;\r\n\t\tsize = 0;\r\n\t}", "title": "" }, { "docid": "41e33c76b201af1a542f974d26f9cd5f", "score": "0.7100645", "text": "@Override\n public int getQueueSize()\n {\n return sorter.getNumQueued();\n }", "title": "" }, { "docid": "537d0d6a73ac35f5e5492118497d2714", "score": "0.70968825", "text": "public RandomizedQueue() \n {\n \n }", "title": "" }, { "docid": "64ed58af351911d7adaf3cb20368aa56", "score": "0.70856166", "text": "public ConcurrentChannelEventRingQueue()\n {\n currentCount = new AtomicInteger(0);\n maxCount = new AtomicInteger(0);\n capacityIncrement = 1 << 10;\n initializeQueue();\n shuttingDown = false;\n }", "title": "" }, { "docid": "53e4c44c14a6abfaf9e7ee2c0ba4c11b", "score": "0.7082074", "text": "public LinkedQueue() {}", "title": "" }, { "docid": "1ce9caf5493e312025bcfefad91aa5cb", "score": "0.7076578", "text": "public RandomizedQueue() {\r\n deque = new Deque<>();\r\n }", "title": "" }, { "docid": "b2d50145945a13ec5b972f7da839b1b8", "score": "0.70685774", "text": "public ArrayQueue (int initialCapacity)\r\n {\r\n rear = 0;\r\n queue = (T[])(new Object[initialCapacity]);\r\n }", "title": "" }, { "docid": "425a3eba7477aa55991678b843efe89c", "score": "0.7063329", "text": "public RandomizedQueue() {\n capacity = RandomizedQueue.INITIAL_CAPACITY;\n queue = (Item[]) new Object[capacity];\n count = 0;\n }", "title": "" }, { "docid": "113405b75986463505bda219b0969c8b", "score": "0.70568055", "text": "public MyQueue() {\r\n stackAlpha = new Stack<Integer>();\r\n stackBeta = new Stack<Integer>();\r\n }", "title": "" }, { "docid": "fac86daab7d1893d741af8e212efffd9", "score": "0.7035306", "text": "public SymbolQueue(int initSize) {\n super(initSize);\n }", "title": "" }, { "docid": "daf944f02b40e662e087c5f3631066f4", "score": "0.70246685", "text": "public ArrayQueue()\r\n {\r\n rear = 0;\r\n queue = (T[])(new Object[DEFAULT_CAPACITY]);\r\n }", "title": "" }, { "docid": "dd596c718da1c3ddbfa7b66ee24de7f8", "score": "0.70163614", "text": "public CS601BlockingQueue(int size) {\n this.items = (T[]) new Object[size];\n this.start = 0;\n this.end = -1;\n this.size = 0;\n }", "title": "" }, { "docid": "1543490043b1205ddb959638277bdb59", "score": "0.70129067", "text": "public RandomizedQueue() {\n q = (Item[]) new Object[2];\n n = 0;\n }", "title": "" }, { "docid": "5e6afbce93b26abe748a126d4af0b4d4", "score": "0.69973475", "text": "public RandomizedQueue() {\n s = (Item[]) new Object[capacity];\n }", "title": "" }, { "docid": "913b9f731b16531526343f6a0f9d2596", "score": "0.6993874", "text": "@Override\n public int getSize() {\n return queue.size();\n }", "title": "" }, { "docid": "b12d956bb20f6b262de81ee2be66e61c", "score": "0.69930667", "text": "public CustomerQueue(int queueLength, Gui gui) {\n this.maxLength = queueLength;\n this.gui = gui;\n\n this.queue = new Customer[maxLength];\n this.curLength = 0;\n this.startPos = 0;\n this.endPos = 0;\n\t}", "title": "" }, { "docid": "bf1aed567f1340e66ad5568d1bac7d44", "score": "0.69881046", "text": "public RandomizedQueue() {\n this.queue = (Item[]) new Object[2];\n size = 0;\n }", "title": "" }, { "docid": "e5be6cfad6efe6e361a9336004291bd5", "score": "0.69836366", "text": "public RandomizedQueue() {\n rq = (Item[]) new Object[2];\n size = 0;\n head = 0;\n tail = 0;\n }", "title": "" }, { "docid": "2b283c2070cb24a641f05f0cae2c1211", "score": "0.69705856", "text": "@SuppressWarnings({ \"unchecked\" })\n public Queue(int cap) {\n s = (Item[]) new Object[cap];\n Capacity=cap;\n }", "title": "" }, { "docid": "c7f95b8a104b1423a1568f09a646198a", "score": "0.69684714", "text": "public GenericQueue() {\n init();\n status = open;\n }", "title": "" }, { "docid": "121b4722e278406505818b4f926b1db1", "score": "0.6960489", "text": "public LinearArrayQueue(int size) {\n MAX_SIZE = size;\n storage = new int[MAX_SIZE];\n rear = front = -1;\n }", "title": "" }, { "docid": "68cbf827767ab36dc50cd5a023dd48a9", "score": "0.69480884", "text": "public RandomizedQueue() {\n queue = (Item[]) new Object[2];\n len = 0;\n }", "title": "" }, { "docid": "4e993bd3f0a27a7ee07029464524799b", "score": "0.693923", "text": "public Qeueue(int size) {\n\t\tsuper();\n\t\tthis.maxSize = size;\n\t\tthis.queArray = new long[size];\n\t\tfront = 0; //index position of the first slot of the array\n\t\t\n\t\trear = -1; //there is no item in the array yet to be considered as last item\n\t\t\n\t\tnItems = 0; //we dont have an element in the array\n\t}", "title": "" }, { "docid": "d2c0fdb85f073db3f5199332543d4b10", "score": "0.6932405", "text": "public SimpleQueue() {\n\t\titems = (E[])(new Object[INITSIZE]);\n\t\tnumItems = 0;\n\t\tfrontIndex = 0;\n\t\trearIndex = 0;\n\t}", "title": "" }, { "docid": "79bbc41faca5ff07b77b913a6487a4fb", "score": "0.6927979", "text": "int getMaxQueueSize();", "title": "" }, { "docid": "9cb8622cfb649a16581da325011746e0", "score": "0.6917977", "text": "public Queue(int ukuran) {\r\n top = 0;\r\n this.ukuran = ukuran;\r\n Queue = new int[ukuran];\r\n }", "title": "" }, { "docid": "f763d84709b7947df9f09bb95c1f0b93", "score": "0.69150203", "text": "public RandomizedQueue() {\n\t\ts = (Item[]) new Object[1];\n\t\tnums = 0;\n\t\tN = 1;\n\t\ttail = 0;\n\t}", "title": "" }, { "docid": "29721e21a1071b794cb3c9a25b4d2c13", "score": "0.6914151", "text": "public RandomizedQueue() {\n q = (Item[]) new Object[2];\n front = -1;\n rear = -1;\n // resize = true;\n }", "title": "" }, { "docid": "06a3eb3faaa9dce71edfe2ebd566fb0e", "score": "0.6912813", "text": "public OptimisticLinkedQueue() {\n }", "title": "" }, { "docid": "3df99b7d16579249872145447fa232d4", "score": "0.690947", "text": "public PriortyQueue(){\r\n arr=new TwoDArray[capacity];\r\n }", "title": "" }, { "docid": "fb68bbfc9970e72d3c5ffddc52a3bacb", "score": "0.69075567", "text": "public MyQueue() {\n stk = new Stack<Integer>();\n stk2 = new Stack<Integer>();\n }", "title": "" }, { "docid": "e131f47338989b28b041e4ac98dd33ef", "score": "0.6875546", "text": "public RandomizedQueue() {\r\n arr = (Item[]) new Object[1];\r\n rt = 0;\r\n }", "title": "" }, { "docid": "faf5737bb71068403d63a4cb7416c9be", "score": "0.6870269", "text": "public LinkedCircularQueue() { }", "title": "" }, { "docid": "b0bac6c1f554c7d3e37d3ca679f9b1b4", "score": "0.6868462", "text": "public NewQueue(){\n\t\tsuper();\n\t\tsuper.vertices = this.vertices; //overrides the vertices Map in GraphVisualizer\n\t\tsuper.setVisualizerType(\"list\"); //overrides the type of visualizer to be displayed as a queue\n\t}", "title": "" }, { "docid": "2fec8314936484179f7d842076f77246", "score": "0.68598133", "text": "public MyQueue() {\n s = new Stack<>();\n }", "title": "" }, { "docid": "3bfa90cb2d1b92487c43f26e10748e2e", "score": "0.68594074", "text": "public PossibleLocationsQueue(int size){\n\t\tcapacity = size;\n\t\t//set the size to the size of default constructor if parameter is equal to or less than 0\n\t\tif (size <= 0){\n\t\t\tcapacity = 10;\n\t\t}\n\t\tlist = new Location[capacity];\n\t}", "title": "" }, { "docid": "b42088aadf054696c00cc2e3f50ef68c", "score": "0.6854537", "text": "public QueueOfIntegers(){\n //list = new ArrayList<>(); - need to call default super constructor.\n super();\n }", "title": "" }, { "docid": "ec0334e286aec1996a98c13269ab93c0", "score": "0.6852812", "text": "@Test\n\tpublic void testArrayQueueClass () {\n\t\tArrayQueue<Integer> arrayQueue = new ArrayQueue<Integer>(5);\n\t\tassertEquals(0, arrayQueue.size());\n\t\tassertTrue(arrayQueue.isEmpty());\n\t\t\n\t\tarrayQueue.enqueue(1);\n\t\tassertEquals(1, arrayQueue.size());\n\t\tassertFalse(arrayQueue.isEmpty());\n\t\t\n\t\tarrayQueue.enqueue(2);\n\t\tarrayQueue.enqueue(3);\n\t\tarrayQueue.enqueue(4);\n\t\tassertEquals(4, arrayQueue.size());\n\t\t\n\t\tint i = arrayQueue.dequeue();\n\t\tassertEquals(1, i);\n\t\tassertEquals(3, arrayQueue.size());\n\t\t\n\t\tint j = arrayQueue.dequeue();\n\t\tassertEquals(2, j);\n\t\tassertEquals(2, arrayQueue.size());\n\t\t\n\t\ttry\n\t\t{\n\t\t\tarrayQueue.setCapacity(-1);\n\t\t\tarrayQueue.setCapacity(2);\n\t\t} catch(IllegalArgumentException e)\n\t\t{\n\t\t\tassertEquals(2, arrayQueue.size());\n\t\t}\n\t\t\n\t\tarrayQueue.setCapacity(10);\n\t\tassertEquals(2, arrayQueue.size());\n\t}", "title": "" }, { "docid": "dfeb5d362fcc1fc88f0b1b4c14767283", "score": "0.68416643", "text": "public BlockingQueue<Runnable> buildQueue() {\n\t\t\tif(queueSize<1) {\n\t\t\t\treturn new SynchronousQueue<Runnable>(fairQueue);\n\t\t\t} \n\t\t\treturn new ArrayBlockingQueue<Runnable>(queueSize, fairQueue);\t\t\t\n\t\t}", "title": "" }, { "docid": "33fecf8e62536ff3498006fb9f902cfe", "score": "0.6838489", "text": "public MyQueue() {\n stackIn = new Stack<>(); // 负责进栈\n stackOut = new Stack<>(); // 负责出栈\n }", "title": "" }, { "docid": "de8ce387e4ab2c6fb4b65d3e06168d31", "score": "0.6837226", "text": "public ListFIFOQueue() {\n front = null;\n end = null;\n size = 0;\n }", "title": "" }, { "docid": "29c4a013997b04432a8b488d863bf6d3", "score": "0.6835632", "text": "public int getQueueSize() {\n return queue.size();\n }", "title": "" }, { "docid": "2050eca97995d2ded50007fb27900032", "score": "0.6835115", "text": "public QECellQueue(int capacity)\r\n\t{\r\n\t\tsuper(capacity);\r\n\r\n\t\tbuffer = new QECell[capacity];\r\n\r\n\t\tfor (int i = 0; i < capacity; i++)\r\n\t\t{\r\n\t\t\tbuffer[i] = new QECell();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5d590e65c41f39496157c1d5bd245218", "score": "0.682211", "text": "public FastStack() {\n this.initialSize = 10;\n }", "title": "" }, { "docid": "0a0141994fb39677fd358a4251e15dfd", "score": "0.6812603", "text": "public Queue() {\r\n peek = null;\r\n tail = null;\r\n }", "title": "" }, { "docid": "545fd9ebaa9667a4d8379b93ff94541a", "score": "0.68100154", "text": "public ArrayQueue() \r\n { \r\n data = (E[])new Object[CAPACITY];\r\n }", "title": "" }, { "docid": "1fb6b414a050737b49b05a511f1a5225", "score": "0.68079776", "text": "public int getSize(){\n\t\treturn queue.size();\n\t}", "title": "" }, { "docid": "45cb698410c43790522509f6ed63dc4a", "score": "0.68040407", "text": "public CustomerQueue(){\n\t\tsuper();\n\t}", "title": "" } ]
63db6d520fce6fc5622e456765a141e7
Test record folder as user
[ { "docid": "09db19ae7a7e4e7e96488a3420da9fb0", "score": "0.6823591", "text": "public void testRecordFolderAsUser()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n { \r\n AuthenticationUtil.setFullyAuthenticatedUser(rm_user);\r\n setFilingOnRecordFolder(recordFolder_1, rm_user);\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(recordFolder_1);\r\n assertEquals(65, access.size()); // 58 + File\r\n check(access, ACCESS_AUDIT, AccessStatus.DENIED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.DENIED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.DENIED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.DENIED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.DENIED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.DENIED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\r\n check(access, EXPORT_AUDIT, AccessStatus.DENIED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.DENIED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.DENIED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.DENIED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.DENIED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.DENIED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.DENIED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.DENIED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.DENIED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.DENIED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.DENIED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.DENIED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n }", "title": "" } ]
[ { "docid": "5b1bf3d66b44d1c31951be28e1bc4d54", "score": "0.6375", "text": "public abstract String getUserDirectory();", "title": "" }, { "docid": "41812d4e19ee253321d23edb9b9be5c5", "score": "0.6224122", "text": "public void testRecordFolderAsPowerUser()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n { \r\n AuthenticationUtil.setFullyAuthenticatedUser(rm_power_user);\r\n permissionService.setPermission(recordFolder_1, rm_power_user, FILING, true);\r\n permissionService.setPermission(nodeService.getPrimaryParent(recordFolder_1).getParentRef(), rm_power_user, READ_RECORDS, true);\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(recordFolder_1);\r\n assertEquals(65, access.size()); // 58 + File\r\n check(access, ACCESS_AUDIT, AccessStatus.DENIED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.ALLOWED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.DENIED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.DENIED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.ALLOWED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.DENIED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.DENIED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.ALLOWED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\r\n check(access, EXPORT_AUDIT, AccessStatus.DENIED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.DENIED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.DENIED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.DENIED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.DENIED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.DENIED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.DENIED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.DENIED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.DENIED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.DENIED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.DENIED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n }", "title": "" }, { "docid": "f46f3343e5e33c89d00eeb19e454aa32", "score": "0.61258686", "text": "public void registerUser() {\n String[] directories;\n File ff = new File(path);\n directories = ff.list();\n boolean exist = false;\n\n for (String dir : directories) {\n\n if (dir.equals(userName) == true) {\n exist = true;\n }\n }\n if (exist = true) {\n File newDir = new File(path + \"\\\\\" + userName);\n newDir.mkdir();\n }\n }", "title": "" }, { "docid": "350f8f9371a6f78b3789d934547d89c3", "score": "0.5859404", "text": "public void testRecordFolderAsSystem()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n {\r\n AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.SYSTEM_USER_NAME);\r\n \r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(recordFolder_1);\r\n assertEquals(65, access.size());\r\n check(access, ACCESS_AUDIT, AccessStatus.ALLOWED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.ALLOWED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.ALLOWED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.UNDETERMINED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.ALLOWED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.ALLOWED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.ALLOWED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.ALLOWED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.ALLOWED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.ALLOWED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.ALLOWED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.ALLOWED);\r\n check(access, EXPORT_AUDIT, AccessStatus.ALLOWED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.ALLOWED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.ALLOWED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.ALLOWED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.ALLOWED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.ALLOWED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.ALLOWED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.ALLOWED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.ALLOWED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.ALLOWED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.ALLOWED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.ALLOWED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n\r\n }", "title": "" }, { "docid": "131b7638e8f679720ce93c27187b5e5d", "score": "0.5806382", "text": "@Override\r\n\tpublic void execute() {\r\n\t\tif (!fileSystem.getCurrentUser().isRoot) {\r\n\t\t\tErrors.throwError(-10, fullCommand);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (userExists()) {\r\n\t\t\tErrors.throwError(-9, fullCommand);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tUser user = fileSystem.addUser(username);\r\n\t\tDirectory root = fileSystem.getRoot();\r\n\t\tDirectory home = new Directory(username, user, root);\r\n\t\troot.addEntity(home);\r\n\t\tuser.setHome(home);\r\n\t}", "title": "" }, { "docid": "0cd21c0f7df15cb578227ac596f9abe1", "score": "0.5790291", "text": "@Override\r\npublic boolean signUp(String username, String password, String name) {\n\tString path=\"C:\\\\eclipseWorkspace\\\\System\\\\\";//\"C:\\\\eclipseWorkspace\\\\System\\\\parent\\\\\"\r\n\t//add new user\r\n\tApp br=new App();\r\n\tbr.setName(name);\r\n\tbr.setPassword(password);\r\n\tbr.setUserName(username);\r\n\tList<App> _br=Folder.getAppList(path+\"users.json\");\r\n\t_br.add(br);\r\n\tFolder.writeList(_br, path+\"users.json\");\r\n\t//add folder to the user\r\n\tpath+=\"parent\\\\\";\r\n Folder.createDirectory(path,username);\r\n path+=username;\r\n //create the Inbox Folder\r\n Folder.createDirectory(path,\"\\\\inbox\");\r\n Folder.createDirectory(path+\"\\\\inbox\",\"\\\\attachment\");\r\n //create the Trash Folder\r\n Folder.createDirectory(path,\"\\\\trash\");\r\n Folder.createDirectory(path+\"\\\\trash\",\"\\\\attachment\");\r\n //create the Sent Folder\r\n Folder.createDirectory(path,\"\\\\sent\");\r\n Folder.createDirectory(path+\"\\\\sent\",\"\\\\attachment\");\r\n ////create the draft Folder\r\n Folder.createDirectory(path,\"\\\\draft\");\r\n Folder.createDirectory(path+\"\\\\draft\",\"\\\\attachment\");\r\n //create the user folder\r\n Folder.createDirectory(path,\"\\\\user\");\r\n //create Contacts JSON\r\n try {\r\n\t\t(new File(path+\"\\\\contacts.json\")).createNewFile();\r\n\t} catch (IOException e) {\r\n\t\te.printStackTrace();\r\n\t}\r\n\treturn true;\r\n}", "title": "" }, { "docid": "01bac66db38ef253f42f6e4741d42462", "score": "0.5774863", "text": "public Folder(String username){\r\n\t String fileSeparator = System.getProperty(\"file.separator\");\r\n\t this.username = username;\r\n\t this.path = \"System\" + fileSeparator + username;\r\n\t index=new DLinkedList();\r\n\t\r\n }", "title": "" }, { "docid": "03ef3a71e85f6853bdee55e87da1a12d", "score": "0.5726482", "text": "public void testUserBLDrive() {\r\n\t\tUserVO vo = new UserVO(\"jc小金金\",\"JL-00001\",\"123456\",UserJob.MANAGER,100);\r\n\t\tint resultAdd = userBLService.addUser(vo);\r\n\t\tint resultMod = userBLService.modifyUser(vo);\r\n\t\tint resultDel = userBLService.deleteUser(vo.getID());\r\n\t\tint resultLog = userBLService.login(null, null);\r\n\t\tuserBLService.showUser(null);\r\n\r\n\t\tassertEquals(0, resultAdd);\r\n\t\tassertEquals(0, resultMod);\r\n\t\tassertEquals(0, resultDel);\r\n\t\tassertEquals(0, resultLog);\r\n\r\n\t\tassertEquals(\"Add user succeed!\" + line\r\n\t\t\t\t+ \"Modify user succeed!\" + line\r\n\t\t\t\t+ \"delete user succeed!\" + line\r\n\t\t\t\t+ \"Login succeed!\" + line\r\n\t\t\t\t+ \"Show users succeed!\" + line,bytes.toString());\r\n\r\n\t}", "title": "" }, { "docid": "2627b3ba07497da511b4d89039e5b73f", "score": "0.5724251", "text": "public void testRecordFolderAsAdministrator()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n {\r\n AuthenticationUtil.setFullyAuthenticatedUser(rm_administrator);\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(recordFolder_1);\r\n assertEquals(65, access.size());\r\n check(access, ACCESS_AUDIT, AccessStatus.ALLOWED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.ALLOWED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.ALLOWED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.UNDETERMINED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.ALLOWED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.ALLOWED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.ALLOWED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.ALLOWED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.ALLOWED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.ALLOWED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.ALLOWED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.ALLOWED);\r\n check(access, EXPORT_AUDIT, AccessStatus.ALLOWED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.ALLOWED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.ALLOWED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.ALLOWED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.ALLOWED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.ALLOWED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.ALLOWED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.ALLOWED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.ALLOWED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.ALLOWED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.ALLOWED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.ALLOWED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n }", "title": "" }, { "docid": "fae70866018b625d0a057a5c371d67b8", "score": "0.5706323", "text": "public void testRecordFolderAsRecordsManager()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n {\r\n AuthenticationUtil.setFullyAuthenticatedUser(rm_records_manager);\r\n setFilingOnRecordFolder(recordFolder_1, rm_records_manager);\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(recordFolder_1);\r\n assertEquals(65, access.size()); // 58 + File\r\n check(access, ACCESS_AUDIT, AccessStatus.ALLOWED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.ALLOWED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.ALLOWED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.UNDETERMINED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.ALLOWED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.ALLOWED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.ALLOWED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.ALLOWED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.ALLOWED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.ALLOWED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.ALLOWED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.ALLOWED);\r\n check(access, EXPORT_AUDIT, AccessStatus.ALLOWED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.ALLOWED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.ALLOWED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.ALLOWED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.ALLOWED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.ALLOWED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.ALLOWED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.ALLOWED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.ALLOWED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.ALLOWED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.ALLOWED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n }", "title": "" }, { "docid": "ef7b560d7ce712a3a62d0254db3eeaff", "score": "0.56828654", "text": "public void testRecordAsUser()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n {\r\n \r\n AuthenticationUtil.setFullyAuthenticatedUser(rm_user);\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(record_1);\r\n assertEquals(65, access.size()); // 58 + File\r\n check(access, ACCESS_AUDIT, AccessStatus.DENIED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.DENIED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.DENIED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.DENIED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.DENIED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.DENIED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\r\n check(access, EXPORT_AUDIT, AccessStatus.DENIED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.DENIED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.DENIED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.DENIED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.DENIED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.DENIED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.DENIED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.DENIED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.DENIED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.DENIED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.DENIED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.DENIED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n }", "title": "" }, { "docid": "2597393242663c8ce9d1bafa68ff2fe3", "score": "0.5649641", "text": "public void writeuser(User user) \n\tthrows FileNotFoundException {\n\t\ttry {\n\t\t\tString path = System.getProperty(\"user.dir\");\n\t\t\tFileOutputStream fos = new FileOutputStream(path + File.separator + \"data\" + File.separator + user.userID + \".txt\");\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos); \n\t\t\t//System.out.println(\"creating file for user \"+ user.userID);\n\t\t\toos.writeObject(user.albumCollection); //write in the userlist?\n\t\t\toos.close(); \n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "2cae7fd75ee04fa221eb56b20f4e7a1a", "score": "0.5649005", "text": "public void testGetManagingUserProcess() {\n\t\tString manager = \"player1\";\n\t\tgame.setManagingUser(manager);;\n\t\tassertEquals (manager, game.getManagingUser());\n\t}", "title": "" }, { "docid": "368b985307489a26114f6e0f164b4ae1", "score": "0.5647422", "text": "public void testRecordFolderAsAdmin()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n {\r\n AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getAdminUserName());\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(recordFolder_1);\r\n assertEquals(65, access.size());\r\n check(access, ACCESS_AUDIT, AccessStatus.ALLOWED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.ALLOWED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.ALLOWED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.UNDETERMINED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.ALLOWED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.ALLOWED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.ALLOWED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.ALLOWED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.ALLOWED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.ALLOWED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.ALLOWED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.ALLOWED);\r\n check(access, EXPORT_AUDIT, AccessStatus.ALLOWED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.ALLOWED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.ALLOWED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.ALLOWED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.ALLOWED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.ALLOWED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.ALLOWED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.ALLOWED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.ALLOWED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.ALLOWED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.ALLOWED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.ALLOWED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n\r\n }", "title": "" }, { "docid": "fe6e9b3e308365db371ed6a3a1d3f8c3", "score": "0.563107", "text": "private static void setOwner() throws IOException\n {\n Path filePath = Paths.get(PATH);\n UserPrincipal owner = filePath.getFileSystem().getUserPrincipalLookupService()\n .lookupPrincipalByName(\"etroral\");\n\n /*Files.setOwner(filePath, owner);*/\n System.out.println(owner.getName());\n }", "title": "" }, { "docid": "88f3fef2f383e7741b3f3c631ab39b95", "score": "0.5601784", "text": "public void testRecordFolderAsSecurityOfficer()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n { \r\n AuthenticationUtil.setFullyAuthenticatedUser(rm_security_officer);\r\n permissionService.setPermission(recordFolder_1, rm_security_officer, FILING, true);\r\n permissionService.setPermission(nodeService.getPrimaryParent(recordFolder_1).getParentRef(), rm_security_officer, READ_RECORDS, true);\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(recordFolder_1);\r\n assertEquals(65, access.size()); // 58 + File\r\n check(access, ACCESS_AUDIT, AccessStatus.DENIED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.ALLOWED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.DENIED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.DENIED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.ALLOWED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.DENIED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.DENIED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.ALLOWED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\r\n check(access, EXPORT_AUDIT, AccessStatus.DENIED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.DENIED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.DENIED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.DENIED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.DENIED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.DENIED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.DENIED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.DENIED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.ALLOWED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.DENIED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n }", "title": "" }, { "docid": "5fe8dafd24193bc678878da579d6f66a", "score": "0.5581131", "text": "private static File getUserDir(String userId) {\n createUserDir(userId);\n final File appDir = sAppContext.getExternalCacheDir();\n File userDir = null;\n if (appDir == null) {\n L.d(\"-----\", \"external cache dir not found\");\n } else {\n userDir = new File(appDir, userId);\n }\n return userDir;\n }", "title": "" }, { "docid": "1c6bd50cdcbc1f9222db53671c642d6e", "score": "0.5556913", "text": "public void addUserToFolder(String targetPath, String userName)\n throws ManifoldCFException\n {\n // MHL\n }", "title": "" }, { "docid": "b5e3813ded409b21cf7e8e74ef694e1f", "score": "0.55246985", "text": "String getPersonalFolder();", "title": "" }, { "docid": "3f9dc8875d4dc935ccd77194e0d2eb3d", "score": "0.5512064", "text": "private static String getFilePath(String username) {\n return DaoUtils.storageDirectoryName() + File.separator + \"user\" + username + \".txt\";\n }", "title": "" }, { "docid": "38785f0fd49eb02a9048c80afb0f67da", "score": "0.551042", "text": "private String initialFileSetup(String file_path, String user_id) {\r\n\r\n String absolute_path = new File(\"\").getAbsolutePath();\r\n absolute_path = absolute_path.concat(Constants.FOLDER_NAME_FINAL);\r\n new File(absolute_path).mkdirs();\r\n absolute_path = absolute_path.concat(Constants.FOLDER_NAME_ACCELERATION);\r\n new File(absolute_path).mkdirs();\r\n\r\n absolute_path = absolute_path.concat(\"/\".concat(user_id));\r\n new File(absolute_path).mkdirs();\r\n\r\n new File(absolute_path.concat(Constants.FOLDER_NAME_STARTING_ACCELERATION)).mkdirs();\r\n new File(absolute_path.concat(Constants.FOLDER_NAME_ACCELERATION)).mkdirs();\r\n\r\n return absolute_path;\r\n }", "title": "" }, { "docid": "96303733172e3554bedbe8f1463514cb", "score": "0.5509769", "text": "@Override\n public RepositoryResourceUserObject createSubfolder()\n {\n return null;\n }", "title": "" }, { "docid": "271d5a363a52a9d78bc063cdec6062f0", "score": "0.54846305", "text": "public void testSetManagingUserProcess() {\n\t\tString manager = \"player1\";\n\t\tgame.setManagingUser(manager);;\n\t\tassertEquals (manager, game.getManagingUser());\n\t}", "title": "" }, { "docid": "c96471b99b8c240d7c7a4761ad0f7fe2", "score": "0.5476812", "text": "public void testRecordSeriesAsUser()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n {\r\n AuthenticationUtil.setFullyAuthenticatedUser(rm_user);\r\n permissionService.setPermission(recordSeries, rm_user, FILING, true);\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(recordSeries);\r\n assertEquals(65, access.size()); // 58 + File\r\n check(access, ACCESS_AUDIT, AccessStatus.DENIED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.DENIED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.DENIED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.DENIED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.DENIED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.DENIED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\r\n check(access, EXPORT_AUDIT, AccessStatus.DENIED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.DENIED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.DENIED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.DENIED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.DENIED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.DENIED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.DENIED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.DENIED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.DENIED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.DENIED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.DENIED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.DENIED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n }", "title": "" }, { "docid": "24c71d50036887f5dd397791556df362", "score": "0.54734343", "text": "public void testHomeFolder(){\n new FavoritesAction().performShortcut();\n FavoritesOperator fo = FavoritesOperator.invoke();\n File home = new File(System.getProperty(\"user.home\"));\n Node nodeHome = new Node(fo.tree(),home.getName());\n nodeHome.expand();\n nodeHome.collapse();\n }", "title": "" }, { "docid": "11c292a8be16b4d709849c1d33e30956", "score": "0.5457418", "text": "public void testRecordCategoryAsUser()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n {\r\n AuthenticationUtil.setFullyAuthenticatedUser(rm_user);\r\n permissionService.setPermission(recordCategory_1, rm_user, FILING, true);\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(recordCategory_1);\r\n assertEquals(65, access.size()); // 58 + File\r\n check(access, ACCESS_AUDIT, AccessStatus.DENIED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.DENIED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.DENIED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.DENIED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.DENIED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.DENIED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\r\n check(access, EXPORT_AUDIT, AccessStatus.DENIED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.DENIED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.DENIED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.DENIED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.DENIED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.DENIED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.DENIED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.DENIED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.DENIED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.DENIED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.DENIED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.DENIED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n }", "title": "" }, { "docid": "d0a69ba53820fd71fb08695f4eafacde", "score": "0.54544336", "text": "boolean canAccess(LocalUser u, String fileOrDirectory,\n FilesystemPermission accessMode);", "title": "" }, { "docid": "bb6d6beada5cbbc91c999879a09d4566", "score": "0.5444806", "text": "public static void maybeLoadUserFromDisk(Context context) {\n state.signedInUser = CaptureRecord.loadFromDisk(context);\n }", "title": "" }, { "docid": "93e80a3375e71a820c5748207bb15599", "score": "0.5439125", "text": "public static Directory getUserdirectory()\n {\n return userdir;\n }", "title": "" }, { "docid": "54eeb173626e5dcb7011442a5d993486", "score": "0.54282767", "text": "@Test\n void WriteFileTest() throws IOException {\n ReadFile ca = new ReadFile();\n String userHomeDir = System.getProperty(\"user.home\");\n String expected = userHomeDir+\"\\\\Desktop\\\\\"+ca.getName();\n String actual = ca.directoryDos();\n assertEquals(expected, actual);\n }", "title": "" }, { "docid": "c1a42c099f2839c63725ba534f0baf16", "score": "0.5425225", "text": "public RepositoryItem createChildDirItem(User user, String name)\n {\n \n RepositoryItem repositoryItem = null;\n \n try {\n \n String newPath = getFullPath() + \"/\" + name;\n \n //webdav put\n File file = FSConnection.getResource(newPath);\n file.mkdirs();\n \n //getRepositoryItem\n repositoryItem = _repository.getRepositoryItemByPath(user, newPath);\n \n } catch (Exception e) {\n System.out.println(\"Error: FSRepositoryItem : \"+ e.getMessage());\n //e.printStackTrace();\n }\n \n return repositoryItem;\n \n }", "title": "" }, { "docid": "06363ce800b97b120651f77e18201189", "score": "0.5402739", "text": "public UserFile saveUserFile(UserFile userFile);", "title": "" }, { "docid": "8d3c2c6f10ca7bebdf64360c161acb7d", "score": "0.5374059", "text": "public boolean enableUser(String name,String OrganizationalUnitName,int UserAccountControlFlag){\r\n int userAccountControlValue = UserAccountControlFlag;// value: 512\r\n String dn = getUserDN(name,OrganizationalUnitName);\r\ntry{\r\n ModificationItem[] mods = new ModificationItem[1];\r\n mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute(\"userAccountControl\",\"\"+userAccountControlValue));\r\n this.dirContext.modifyAttributes(dn, mods);\r\n System.out.println(\"User's account is enabled\");\r\n return true;\r\n}catch(NamingException e){\r\n System.out.println(\"cannot enable user's account\");\r\n e.printStackTrace();\r\n System.err.println();\r\n return false;\r\n}\r\n}", "title": "" }, { "docid": "74021a1b1e91540a6fae07ef8d674c03", "score": "0.53568286", "text": "private String testFolderPath() {\n return \"/user/azkaban/camus/indata_str_documents_info/hourly/2017-07-06\";\n }", "title": "" }, { "docid": "b4c39f522a51f75263ea008ee000be06", "score": "0.53323877", "text": "public void testFilePlanAsUser()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n { \r\n AuthenticationUtil.setFullyAuthenticatedUser(rm_user);\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(filePlan);\r\n assertEquals(65, access.size()); // 58 + File\r\n check(access, ACCESS_AUDIT, AccessStatus.DENIED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.DENIED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.DENIED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.DENIED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.DENIED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.DENIED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\r\n check(access, EXPORT_AUDIT, AccessStatus.DENIED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.DENIED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.DENIED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.DENIED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.DENIED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.DENIED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.DENIED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.DENIED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.DENIED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.DENIED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.DENIED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.DENIED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n }", "title": "" }, { "docid": "5b88d216ab48f5d591ebd6173d483509", "score": "0.5331889", "text": "@Test\n void ReadFileTest() throws FileNotFoundException {\n ReadFile ca = new ReadFile();\n String userHomeDir = System.getProperty(\"user.home\");\n String expected = userHomeDir+\"\\\\Desktop\\\\exercise45_input.txt\";\n String actual = ca.directory();\n assertEquals(expected, actual);\n }", "title": "" }, { "docid": "b6d0db96ceba03c89ccdae3ed13b4e00", "score": "0.53304493", "text": "public void setUserDirectory(final String path) {\n userDirectory = path;\n userPrefs = userDirectory + pathSeparator + defaultPrefs;\n }", "title": "" }, { "docid": "721a3567a4080f341cf8556ca75ab260", "score": "0.5319902", "text": "private void writeUserToFile() {\n\n File filesDir = new File(this.getFilesDir(), \"userDir\");\n if (!filesDir.exists()) {\n filesDir.mkdir();\n }\n try {\n File file = new File(filesDir, \"userInfoFile\");\n FileWriter writer = new FileWriter(file);\n String user = this.userToJsonObject().toString();\n Log.d(\"##### user:\", user);\n writer.write(user);\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "4106d30c755595e9098361c6e23180cd", "score": "0.52924025", "text": "void setUpUser();", "title": "" }, { "docid": "e711cdc266c0428249d09ff1b681d272", "score": "0.52858317", "text": "public static void testCreateUser() throws RemoteException\n\t{\n\t\tint numberOfUsers = 20;\n\n\t\t// create 20 users\n\t\tfor (int i = 0; i < numberOfUsers; i++)\n\t\t{\n\n\t\t\t// username are: User1 .. User100\n\t\t\tString username = \"User\" + i;\n\t\t\tString homeFolder = \"/home/\" + username;\n\n\t\t\t// create a normal user with password same as username\n\t\t\tUser user = ActuateControl.newUser(username, username, homeFolder);\n\n\t\t\t// Set User0,3,6,... view preference to DHTML\n\t\t\t// Set User1,4,7,... view preference to Default\n\t\t\t// Don't set User2,5,8,... view preference, the server will default it\n\t\t\tswitch (i % 3)\n\t\t\t{\n\t\t\t\tcase 0 :\n\t\t\t\t\tuser.setViewPreference(UserViewPreference.DHTML);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1 :\n\t\t\t\t\tuser.setViewPreference(UserViewPreference.Default);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// set notice option\n\t\t\tuser.setSendNoticeForSuccess(new Boolean((i & 1) > 0));\n\t\t\tuser.setSendNoticeForFailure(new Boolean((i & 2) > 0));\n\n\t\t\t// set email option\n\t\t\tuser.setSendEmailForSuccess(new Boolean((i & 4) > 0));\n\t\t\tuser.setSendEmailForFailure(new Boolean((i & 8) > 0));\n\n\t\t\t// create a fake email address User1@localhost\n\t\t\tuser.setEmailAddress(username + \"@\" + \"localhost\");\n\n\t\t\t// assign different job priority\n\t\t\tuser.setMaxJobPriority(new Long(1000-i));\n\n\t\t\t// create the user\n\t\t\tactuateControl.createUser(user);\n\t\t}\n\n\t\t// create folders for the user\n\t\tfor (int i = 0; i < numberOfUsers; i++)\n\t\t{\n\n\t\t\t// username are: User1, User2, ...\n\t\t\tString username = \"User\" + i;\n\t\t\tString homeFolder = \"/home/\" + username;\n\n\t\t\tactuateControl.setUsername(username);\n\t\t\tactuateControl.setPassword(username);\n\t\t\tactuateControl.login();\n\t\t\t// login as that user and create a report directory in his home folder\n\t\t\tactuateControl.createFolder(homeFolder, \"report\", \"My Reports\");\n\n\t\t}\n\n\t\t// login as Administrator again\n\t\tactuateControl.setUsername(\"Administrator\");\n\t\tactuateControl.setPassword(\"\");\n\t\tactuateControl.login();\n\n\t\t// Create more subfolders\n\t\tactuateControl.createFolder(\"/\", \"report\", \"Main Report Folder\");\n\t\tfor (int i = 0; i < numberOfUsers; i++)\n\t\t\tactuateControl.createFolder(\n\t\t\t\t\"/report\",\n\t\t\t\t\"subfolder\" + i,\n\t\t\t\t\"Sub Folder\");\n\n\t}", "title": "" }, { "docid": "e5bb083f785ae3b3181aee5228dd2d06", "score": "0.5284653", "text": "public boolean saveUserDataFile()\r\n {\r\n UserFileManager userFileManager = new UserFileManager();\r\n return userFileManager.saveUser();\r\n }", "title": "" }, { "docid": "0bc62612fbe187cca3caa209f4e1bfa5", "score": "0.5279154", "text": "private void createDirectories(){\n File foundation = new File(Environment.getExternalStorageDirectory(), \"Fitts\");\n if (!foundation.exists())\n //noinspection ResultOfMethodCallIgnored\n foundation.mkdir();\n int userId = UDPServer.getUserId();\n boolean isCreated = false;\n File baseFolder = new File(foundation, \"User_\"+String.valueOf(userId));\n while (baseFolder.exists()){\n File[] contents = baseFolder.listFiles();\n if (contents.length > 3){\n baseFolder = new File(foundation, \"User_\" + String.valueOf(++userId));\n }\n else {\n isCreated = true;\n break;\n }\n }\n if (!isCreated)\n //noinspection ResultOfMethodCallIgnored\n baseFolder.mkdir();\n\n baseDir = new File(baseFolder, UDPServer.modalityToString()+\"Modality\");\n if (!baseDir.exists())\n //noinspection ResultOfMethodCallIgnored\n baseDir.mkdir();\n createXMLFiles();\n }", "title": "" }, { "docid": "07ea66328d0dfe07cfdf3708c7b057af", "score": "0.52778226", "text": "public static void initialize(UserManager userManager){\r\n //Reading User Folder to initialize users for the userManager \r\n try{\r\n File folder = new File(\"Users\");\r\n File[] listOfUsers = folder.listFiles();\r\n for (File y: listOfUsers){\r\n if (y.isFile()){\r\n try{\r\n String role;\r\n String usern;\r\n String pass;\r\n FileReader fr = new FileReader(\"Users\\\\\"+y.getName()); // Opens the file\r\n BufferedReader br = new BufferedReader(fr);\r\n role = br.readLine();\r\n usern = br.readLine();\r\n pass = br.readLine();\r\n if (role.equals(\"Manager\")){\r\n Manager manager = new Manager(usern, pass, userManager);\r\n }\r\n else if (role.equals(\"Customer\")){\r\n try{\r\n String amount = br.readLine();\r\n double dblAmount = Double.parseDouble(amount);\r\n Customer cust = new Customer(usern,pass,dblAmount, userManager);\r\n userManager.addUser(cust);\r\n }\r\n catch (Exception e){\r\n System.out.println(\"Error with amount\");\r\n }\r\n finally{\r\n br.close();\r\n }\r\n \r\n }\r\n }\r\n catch (Exception e){\r\n System.out.println(\"Error initializing user\");\r\n }\r\n }\r\n }\r\n if (userManager.hasManager() == false){\r\n FileWriter fw = new FileWriter(\"Users\\\\admin.txt\"); // Creates a file\r\n PrintWriter pw = new PrintWriter(fw); // Prints to the file created\r\n pw.println(\"Manager\");\r\n pw.println(\"admin\");\r\n pw.println(\"admin\");\r\n User manager = new Manager(\"admin\", \"admin\", userManager);\r\n pw.close();\r\n }\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Error opening file\");\r\n }\r\n }", "title": "" }, { "docid": "cd91bdcb0bf14bc554f3bdb7b181b302", "score": "0.52735525", "text": "public void testUser() {\n\n ADUserTO adUserTO = adUserTO = userOutput.update(updateUserTO(), getConfigTO());\n\n // ADUserTO adUserTO = adUserTO = userOutput.delete(getDeleteInfo(), null);\n\n logger.info(\"------> this is back key :{} <-------\", adUserTO.getKey());\n logger.info(\"------> this is back TO :{} <-------\", adUserTO);\n\n }", "title": "" }, { "docid": "f091472d9c094c44f435f87b62a8d19e", "score": "0.5241178", "text": "public boolean addUser(User user) throws FileNotFoundException;", "title": "" }, { "docid": "b6bb5f605d46ed5cb8f1758350bd0ccd", "score": "0.52334106", "text": "void createUserBasedPermission(String sourcePath,String objectType,String userName,String permissionType) throws AlfrescoException;", "title": "" }, { "docid": "8d50a8a77f557c62aaa3773b9923228c", "score": "0.5227287", "text": "private static void initUserObjectFile(Context context){\n\t\tuserObjectFile = new File(dataDir,\"user.class\");\n\t\tif(!userObjectFile.exists()){\n\t\t\ttry {\n\t\t\t\tuserObjectFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "342263be42ebdf894bef31f9abeceab0", "score": "0.5208877", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"Tested\");\r\n\t\tSystem.out.println(\"Tested1\");\r\n\t\t\r\n\t\tfolder = new File(UUID.randomUUID().toString());\r\n\t\tfolder.mkdir();\r\n\t\tSystem.out.println(folder.getAbsolutePath());\r\n\t\r\n \r\n\t\t\r\n\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3c43c00285d8dc1d0cc28e4fa183190f", "score": "0.5188292", "text": "private boolean checkPermissions(UserDTO user, File file){\n return (file.getOwner().getUserID() == user.getUserID() || file.getWritePermission() == true);\n }", "title": "" }, { "docid": "a2d65d05eec5270de7a265e507b3f8d3", "score": "0.5181232", "text": "public RepositoryFolderUserObject(DefaultMutableTreeNode defaultMutableTreeNode, Folder folder)\n {\n super(defaultMutableTreeNode, folder);\n\n String iconFile;\n propsBean = MessagesViewsCommonBean.getInstance();\n if (folder.getPath().equals(RepositoryUtility.CORRESPONDENCE_TEMPLATE_FOLDER))\n {\n iconFile = ResourcePaths.I_FOLDER_CORRESPONDANCE;\n permissibleMimeTypes.add(\"text/html\");\n }\n else\n {\n iconFile = ResourcePaths.I_FOLDER;\n }\n setIcon(iconFile);\n defaultMutableTreeNode.setAllowsChildren(true);\n this.setLeaf(false);\n if (getFolder().getPath().equals(\"/\"))\n {\n this.setEditable(false);\n this.setDeletable(false);\n }\n \n handleSystemFolders(folder);\n }", "title": "" }, { "docid": "4dc64ef54383e9128a8427037b8baf32", "score": "0.5176866", "text": "public void testGetUserByName() {\n\t\n\t}", "title": "" }, { "docid": "43e2921ced2633ced58be33eafc2be5c", "score": "0.51651555", "text": "@Override\n public void handleCommand(HttpServletRequest req, HttpServletResponse resp, IUser user) throws IOException {\n\n String path = req.getParameter(\"path\");\n boolean isFolder = Boolean.parseBoolean(req.getParameter(\"isFolder\"));\n IVResource newFile = user.createResource(path,isFolder);\n if (newFile.exists()) {\n responseString = \"EXISTS\";\n } else if (isFolder) {\n if (newFile.mkdir()) {\n responseString = \"OK\";\n } else {\n \tthrow new IOException(\"Failed to create folder. path:\" + path);\n }\n } else {\n newFile.createNewInstance();\n \n /* HACK: this fixes a bug that if a user creates a new / empty resource, then closes it the files working copy isn't removed in windows with the file.delete() call. \n * it seems if you open an IO stream to the resource (without writing anything) then close and flush the stream the problem goes away.\n */\n responseString = \"OK\";\n }\n }", "title": "" }, { "docid": "9bda47e4ee32d4b722aa8285705b3712", "score": "0.51590794", "text": "@Test\r\n\tpublic final void testGetHomeDir() throws Exception {\r\n\r\n\t\tIRODSAccount account = testingPropertiesHelper\r\n\t\t\t\t.buildIRODSAccountFromTestProperties(testingProperties);\r\n\t\tIRODSFileSystem irodsFileSystem = new IRODSFileSystem(account);\r\n\t\tIRODSFile irodsFile = (IRODSFile) FileFactory.newFile(irodsFileSystem,\r\n\t\t\t\tirodsFileSystem.getHomeDirectory());\r\n\t\tboolean canWrite = irodsFile.canWrite();\r\n\t\tirodsFileSystem.close();\r\n\t\tTestCase.assertTrue(\"file should be writable\", canWrite);\r\n\r\n\t}", "title": "" }, { "docid": "72f5fb66acbdf3dc9bb76d50c5c21b08", "score": "0.5143806", "text": "private static void checkDirectoryOnServer(String dir) throws RemoteException {\n\t\tif(!server.isAuthenticated(username)){\n\t\t\tauthenticate(username);\n\t\t}\n\t\ttry {\n\t\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\t\tDataOutputStream dos = new DataOutputStream(out);\n\n\t\t\tdos.writeInt(RequestType.PUT_DIRECTORY);\n\t\t\tdos.writeUTF(dir);\n\t\t\tdos.writeInt(userID);\n\t\t\tbyte[] request = out.toByteArray();\n\t\t\tserver.checkDirectoryOnServer(request, username, mySecret);\n\t\t\tSystem.out.println(\"Directory Created or Checked on Server: \"+ dir);\n\t\t\t// MAYBE DEPOIS METER AQUI UMA ANSWER\n\n\t\t} catch (IOException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "335af44e533a7dcfb86a2077084bf70e", "score": "0.51389277", "text": "public void storeUser() {\n storeUser(false);\n }", "title": "" }, { "docid": "4dd276760d03bbdaf80a58d2dba0584a", "score": "0.5138793", "text": "public MetaDataRecordList[] getPermissions( boolean allUsers )\n throws IOException\n {\n if (allUsers) {\n if (isDirectory()) {\n MetaDataCondition conditions[] = {\n// getZoneCondition(),\n MetaDataSet.newCondition(\n SRBMetaDataSet.ACCESS_DIRECTORY_NAME, MetaDataCondition.EQUAL,\n getAbsolutePath() ),\n };\n MetaDataSelect selects[] = {\n MetaDataSet.newSelection( SRBMetaDataSet.DIRECTORY_ACCESS_CONSTRAINT ),\n MetaDataSet.newSelection( UserMetaData.USER_NAME ),\n MetaDataSet.newSelection( SRBMetaDataSet.USER_DOMAIN )\n };\n return fileSystem.query( conditions, selects );\n }\n else {\n MetaDataSelect selects[] = {\n MetaDataSet.newSelection( SRBMetaDataSet.ACCESS_CONSTRAINT ),\n MetaDataSet.newSelection( UserMetaData.USER_NAME ),\n MetaDataSet.newSelection( SRBMetaDataSet.USER_DOMAIN ),\n };\n return query( selects );\n }\n }\n else {\n String userName = srbFileSystem.getUserName();\n String userDomain = srbFileSystem.getDomainName();\n\n if (isDirectory()) {\n MetaDataCondition conditions[] = {\n// getZoneCondition(),\n MetaDataSet.newCondition(\n SRBMetaDataSet.ACCESS_DIRECTORY_NAME, MetaDataCondition.EQUAL,\n getAbsolutePath() ),\n MetaDataSet.newCondition(\n UserMetaData.USER_NAME, MetaDataCondition.EQUAL, userName ),\n MetaDataSet.newCondition(\n SRBMetaDataSet.USER_DOMAIN, MetaDataCondition.EQUAL, userDomain ),\n };\n MetaDataSelect selects[] = {\n MetaDataSet.newSelection( SRBMetaDataSet.ACCESS_DIRECTORY_NAME ),\n MetaDataSet.newSelection( SRBMetaDataSet.DIRECTORY_ACCESS_CONSTRAINT ),\n MetaDataSet.newSelection( UserMetaData.USER_NAME ),\n MetaDataSet.newSelection( SRBMetaDataSet.USER_DOMAIN ),\n };\n return fileSystem.query( conditions, selects );\n }\n else {\n MetaDataCondition conditions[] = {\n MetaDataSet.newCondition(\n UserMetaData.USER_NAME, MetaDataCondition.EQUAL, userName ),\n MetaDataSet.newCondition(\n SRBMetaDataSet.USER_DOMAIN, MetaDataCondition.EQUAL, userDomain ),\n };\n MetaDataSelect selects[] = {\n MetaDataSet.newSelection( SRBMetaDataSet.ACCESS_CONSTRAINT ),\n MetaDataSet.newSelection( UserMetaData.USER_NAME ),\n MetaDataSet.newSelection( SRBMetaDataSet.USER_DOMAIN ),\n };\n return query( conditions, selects );\n }\n }\n }", "title": "" }, { "docid": "8e6923a9f553c7373e7bd6e3a214ce59", "score": "0.5134135", "text": "public interface UserDirectory\n{\n /**\n * A unique identifier\n * @return The non-null and non-empty identifier\n */\n public String getId();\n \n /**\n * Get the label of the CredentialProvider\n * @return The optionnal label\n */\n public String getLabel();\n \n /**\n * Get the list of all users of one directory.\n * @return list of users as Collection of <code>User</code>s, empty if a problem occurs.\n */\n public Collection<User> getUsers();\n \n /**\n * Get a list of users from a directory given the parameters\n * @param count The limit of users to retrieve\n * @param offset The number of result to ignore before starting to collect users. \n * @param parameters A map of additional parameters, see implementation.\n * @return The list of retrieved {@link User}\n */\n public List<User> getUsers(int count, int offset, Map<String, Object> parameters);\n \n /**\n * Get a particular user by his login.\n * @param login Login of the user to get. Cannot be null.\n * @return User's information as a <code>User</code> instance or null if the user login does not exist.\n */\n public User getUser(String login);\n \n /**\n * Get the id of the {@link UserDirectoryModel} extension point\n * @return the id of extension point\n */\n public String getUserDirectoryModelId();\n \n /**\n * Get the values of parameters (from user directory model)\n * @return the parameters' values\n */\n public Map<String, Object> getParameterValues();\n \n /**\n * Initialize the user's directory with given parameters' values.\n * @param id The non-null and non-empty unique identifier\n * @param udModelId The id of user directory extension point\n * @param paramValues The parameters' values\n * @param label The optional label\n * @throws Exception If an error occurred\n */\n public void init(String id, String udModelId, Map<String, Object> paramValues, String label) throws Exception;\n \n /**\n * Set the value of the id of the population this user directory belong to.\n * @param populationId The id of the population the user directory belongs to.\n */\n public void setPopulationId(String populationId);\n \n /**\n * Get the id of the population this user directory belongs to. \n * @return The id of the population\n */\n public String getPopulationId();\n \n /**\n * Authenticate a user with its credentials\n * @param login The login to check. Cannot be null.\n * @param password The password to check.\n * @return true if the user is authenticated, false otherwise.\n */\n public boolean checkCredentials(String login, String password); \n \n}", "title": "" }, { "docid": "10bb05d7abd3413509b92a651fa772d3", "score": "0.51131654", "text": "public void testRecordAsPowerUser()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n {\r\n \r\n AuthenticationUtil.setFullyAuthenticatedUser(rm_power_user);\r\n setFilingOnRecord(record_1, rm_power_user);\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(record_1);\r\n assertEquals(65, access.size()); // 58 + File\r\n check(access, ACCESS_AUDIT, AccessStatus.DENIED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.DENIED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.DENIED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.DENIED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.ALLOWED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.DENIED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.DENIED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.ALLOWED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\r\n check(access, EXPORT_AUDIT, AccessStatus.DENIED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.DENIED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.DENIED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.DENIED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.DENIED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.DENIED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.ALLOWED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.DENIED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.DENIED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.DENIED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.DENIED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.DENIED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.DENIED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n }", "title": "" }, { "docid": "525e10632950b9046e16bfbc55d9eee5", "score": "0.51100695", "text": "public void setCreateFolderResult(java.lang.String param){\r\n localCreateFolderResultTracker = param != null;\r\n \r\n this.localCreateFolderResult=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "3730256ce8ddef2ed618405276c446e7", "score": "0.5109462", "text": "public void createAccountFileFolder(String account, String name, String password, String userName) {\r\n\r\n\t\t// student\r\n\t\tif (account.equalsIgnoreCase(\"student\")) {\r\n\r\n\t\t\t// write password to database\r\n\t\t\twritePasswordToDataBase(account, userName, password, name);\r\n\t\t\t// create the neccessary files and folders\r\n\t\t\tPath folder = Paths.get(PATH_STUDENT + \"/\" + userName);\r\n\t\t\ttry {\r\n\t\t\t\tFiles.createDirectories(folder);\r\n\t\t\t\tPath classes = Paths.get(PATH_STUDENT + \"/\" + userName + \"/classes\");\r\n\t\t\t\tPath apExams = Paths.get(PATH_STUDENT + \"/\" + userName + \"/ap exams\");\r\n\r\n\t\t\t\tFiles.createDirectories(classes);\r\n\t\t\t\tFiles.createDirectories(apExams);\r\n\t\t\t} catch (IOException e) {\r\n\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\t// end student\r\n\t\t}\r\n\t\t// teacher\r\n\t\telse if (account.equalsIgnoreCase(\"teacher\")) {\r\n\r\n\t\t\t// write password to database\r\n\t\t\twritePasswordToDataBase(account, userName, password, name);\r\n\t\t\t// create the neccessary files and folders\r\n\t\t\tPath folder = Paths.get(PATH_TEACHER + \"/\" + userName);\r\n\t\t\ttry {\r\n\t\t\t\tFiles.createDirectories(folder);\r\n\t\t\t\tPath classes = Paths.get(PATH_TEACHER + \"/\" + userName + \"/classes\");\r\n\r\n\t\t\t\tFiles.createDirectories(classes);\r\n\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t// end teacher\r\n\t\t}\r\n\t\t// Admin\r\n\t\telse {\r\n\t\t\t// write password to database\r\n\t\t\twritePasswordToDataBase(account, userName, password, name);\r\n\t\t\t// create the neccessary files and folders\r\n\t\t\tPath folder = Paths.get(PATH_ADMINSTRATOR + \"/\" + userName);\r\n\t\t\ttry {\r\n\t\t\t\tFiles.createDirectories(folder);\r\n\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\t// end Admin\r\n\t\t}\r\n\r\n\t\t// end createAccountFolders\r\n\t}", "title": "" }, { "docid": "8f897bdca309add99db5f1297716abb6", "score": "0.51076674", "text": "@Test(retryAnalyzer = RerunOnFailure.class, groups = {\"full\"})\r\n public void FileViewDeniedToUnauthenticatedUsers_Test() throws Exception{\r\n \t\r\n \t//Step 1\r\n applib.openSitePage(\"/admin/content/file\");\r\n AccessDenied accessDenied = new AccessDenied(webDriver);\r\n accessDenied.VerifyAccessDeniedTxt();\r\n \r\n //Step 2\r\n UserLogin userLogin = new UserLogin(webDriver);\r\n userLogin.Login(config.getConfigValueString(\"Admin1Username\"), config.getConfigValueString(\"Admin1Password\"));\r\n new WebDriverWait(webDriver, 10).until(ExpectedConditions.titleContains(\"Content\"));\r\n \r\n }", "title": "" }, { "docid": "ae4c45df7195bea7ee488355cfbf6b25", "score": "0.51022243", "text": "public void testCheckEditUser(){\n\t\tmanageUser.navigateToAdminHome();\t\t\r\n\t\t\r\n//\t\t//upload address\r\n//\t\taddressUpload.navigateToAddressUpload();\r\n//\t\tString filepath = costCenterUpload.getAbsolutePath(\"data/addressUpload/positivedata.csv\");\r\n//\t\taddressUpload.uploadCSV(filepath);\r\n//\t\t//address=\"label=ThoughtWorks, Olympia, Guindy, , Chennai\";\r\n\t\t\r\n\t\tusername = \"AddUser\" + manageUser.getRandomNumber();\r\n\t\tpassword = \"pass\" + manageUser.getRandomNumber();\r\n\t\temail = \"id\" + manageUser.getRandomNumber() + \"@a.com\";\r\n//\t\tcostCenter = new CostCenter(\"Automation\",\"98765\",\"test\");\r\n\t\tcostCenter = new CostCenter(\"Chicago\",\"10101\",\"test\");\r\n\t\tUser oldUser = new User(username, username, password, password, email,Status.Active,costCenter,Role.ADMIN,null);\r\n\t\tUser newUser = null ;\r\n\t\tmanageUser.sleep(1000);\r\n\t\tmanageUser.navigateToAdminHome();\r\n\t\tmanageUser.navigateToManageUser();\r\n\t\tmanageUser.navigateToCreateUser();\r\n\t\tmanageUser.addUser(oldUser);\r\n\t\tmanageUser.navigateToManageUser();\r\n\t\tmanageUser.editUser(oldUser,newUser);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0d98bfd332468b6cd3a8a13588bab6fa", "score": "0.50883526", "text": "public List<UserFile> getUserFiles(AppUser user);", "title": "" }, { "docid": "ae6686ee6d145bf08d03c04210f6ca0b", "score": "0.5088079", "text": "public boolean DisableUser(String name,String OrganizationalUnitName){\r\n String dn = getUserDN(name,OrganizationalUnitName);\r\ntry{ \r\n int userAccountControlValue = 514; //to disable user's account set its useraccountcontrol value to 514\r\n ModificationItem[] mods = new ModificationItem[1];\r\n mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute(\"userAccountControl\",\"\"+userAccountControlValue));\r\n this.dirContext.modifyAttributes(dn, mods);\r\n System.out.println(\"User's account is enabled\");\r\n return true;\r\n}catch(NamingException e){\r\n System.out.println(\"cannot enable user's account\");\r\n e.printStackTrace();\r\n return false;\r\n }\r\n}", "title": "" }, { "docid": "816ec2e9cf1f8c3d5734f4296cf1998c", "score": "0.5085583", "text": "@Test\n public void testMixedUserGroupPermissions() throws Exception {\n deny(path, testUser.getPrincipal(), modPropPrivileges);\n /* give MODIFY_PROPERTIES privilege for a Group the test-user is member of */\n allow(path, testGroup.getPrincipal(), modPropPrivileges);\n /*\n since user-permissions overrule the group permissions, testuser must\n not have set_property action / modify_properties privilege.\n */\n assertFalse(testSession.hasPermission(path, Session.ACTION_SET_PROPERTY));\n assertFalse(testAcMgr.hasPrivileges(path, modPropPrivileges));\n }", "title": "" }, { "docid": "2bd817efd9687c8353e5295ca59bfa40", "score": "0.5082515", "text": "public void move(User user, String fullpath)\n {\n \n \n }", "title": "" }, { "docid": "c06faba95f989d8be32642d6b20272f7", "score": "0.50821227", "text": "public String createPathFile(String userName) {\n\n\t\tString pathFile = this.tempDir + File.separator + userName;\n\t\tFile personalDirectory = new File(pathFile);\n\t\tboolean exists = personalDirectory.exists();\n\t\tif (!exists) {\n\t\t\tboolean createDir = personalDirectory.mkdir();\n\t\t\tif (!createDir)\n\t\t\t\tpathFile = null;\n\t\t}\n\n\t\treturn pathFile;\n\t}", "title": "" }, { "docid": "24c15edbcea9d6f0e99356e87e75dff2", "score": "0.5073931", "text": "public void createFiles() {\n if (!folder.exists())\n {\n System.out.print(\"[UserLog] Data folder missing, creating...\");\n folder.mkdir();\n }\n usersFile = new File(folder.getAbsolutePath() + File.separator + users);\n if (!usersFile.exists())\n {\n System.out.print(\"[UserLog] Users file is missing, creating...\");\n try\n {\n usersFile.createNewFile();\n } catch (IOException ex)\n {\n System.out.println(\"[UserLog] Users file creation failed: \" + ex);\n }\n }\n usersInfoFile = new File(folder.getAbsolutePath() + File.separator + usersInfo);\n if (!usersInfoFile.exists())\n {\n System.out.print(\"[UserLog] Users information file is missing, creating...\");\n try\n {\n usersInfoFile.createNewFile();\n } catch (IOException ex)\n {\n System.out.println(\"[UserLog] Users information file creation failed: \" + ex);\n }\n }\n }", "title": "" }, { "docid": "a138e8851fcc691d556072166bf15391", "score": "0.50611496", "text": "private String maskUser(String user) {\n\t\treturn user.replace(\"/\", \":\") + \".json\";\n\t}", "title": "" }, { "docid": "60b8bbd3c24c5716b11c5f29f60a9624", "score": "0.50449246", "text": "private boolean checkIfOwner(File file, UserDTO user){\n return file.getOwner().getUserID() == user.getUserID();\n }", "title": "" }, { "docid": "271827e8891c786d06a2650fedd9b2fd", "score": "0.50404805", "text": "@Test\r\n public void testGetAvatarPath() {\r\n System.out.println(\"getAvatarPath\");\r\n assertEquals(AVATARPATH, user.getAvatarPath());\r\n }", "title": "" }, { "docid": "a12db0c4144a28407f56cc06579cb5ad", "score": "0.5034832", "text": "@Test\n public void testGrantSearchByNameUserDnCase() throws Exception\n {\n // create the non-admin user\n createUser( \"billyd\", \"billyd\" );\n \n // try an add operation which should fail without any ACI\n assertFalse( checkCanSearchAs( \"BillyD\", \"billyd\" ) );\n \n // now add a subentry that enables user billyd to add an entry below ou=system\n createAccessControlSubentry( \"billydSearch\", \"{ \" + \"identificationTag \\\"searchAci\\\", \" + \"precedence 14, \"\n + \"authenticationLevel none, \" + \"itemOrUserFirst userFirst: { \"\n + \"userClasses { name { \\\"uid=billyd,ou=users,ou=system\\\" } }, \" + \"userPermissions { { \"\n + \"protectedItems {entry, allUserAttributeTypesAndValues}, \"\n + \"grantsAndDenials { grantRead, grantReturnDN, grantBrowse } } } } }\" );\n \n // should work now that billyd is authorized by name\n assertTrue( checkCanSearchAs( \"BillyD\", \"billyd\" ) );\n }", "title": "" }, { "docid": "10f091fd923fdb0ccb329979dd5918db", "score": "0.5024793", "text": "public void testUserStoreManagerAccessor() throws Exception {\n System.out.println(\"testUserStoreManagerAccessor\");\n \n \n // initialize the session manager\n ThreadsPermissionContainer permissionContainer = \n new ThreadsPermissionContainer();\n SessionManager.init(permissionContainer);\n SessionManager.getInstance().initSession();\n \n // add a user to the session for the current thread\n RoleManager.getInstance();\n \n // init the user store manager\n UserStoreManager userStoreManager = new UserStoreManager();\n UserStoreManagerAccessor result = UserStoreManagerAccessor.init(userStoreManager);\n \n // first test\n try {\n UserStoreManagerAccessor.getInstance().getUserStoreManager();\n fail(\"Got access to the user store manager\");\n } catch (AuthorizationException ex) {\n // ignore\n }\n \n // add a new user object and add to the permission\n Set set = new HashSet();\n set.add(\"test\");\n UserSession user = new UserSession(\"testuser\", set);\n permissionContainer.putSession(new Long(Thread.currentThread().getId()),\n new ThreadPermissionSession(\n new Long(Thread.currentThread().getId()),user));\n \n // second test\n try {\n UserStoreManagerAccessor.getInstance().getUserStoreManager();\n } catch (AuthorizationException ex) {\n fail(\"Got denied access to the user store manager\");\n }\n }", "title": "" }, { "docid": "0b48a2bb1609e7266cac26f4ab8ff998", "score": "0.5006959", "text": "public UserFile getUserFile(Integer userFileId);", "title": "" }, { "docid": "7d303c641ef7fea9bf6d9f84cb260039", "score": "0.5002615", "text": "@Test\n public void testFindUserByStartWith() {\n String username = testProps.getProperty(\"testUser\", String.class, \"TEST\");\n createTestUser();\n final Attribute expected = AttributeBuilder.build(Name.NAME, username);\n FindUidObjectHandler handler = new FindUidObjectHandler(new Uid(username));\n // attempt to find the newly created object..\n facade.search(ObjectClass.ACCOUNT, new StartsWithFilter(expected), handler, null);\n assertTrue(\"The user was not found\", handler.found);\n final ConnectorObject actual = handler.getFoundObject();\n assertNotNull(actual);\n assertEquals(\"Expected user is not same\", username.toUpperCase(), AttributeUtil\n .getAsStringValue(actual.getName()).toUpperCase());\n }", "title": "" }, { "docid": "06e96208f57a1d227e2b8175c48cdeb0", "score": "0.49970278", "text": "private static void setOwnerGroup1() throws IOException {\n Path file = Paths.get(\"permession.file\");\n GroupPrincipal group =\n file.getFileSystem().getUserPrincipalLookupService()\n .lookupPrincipalByGroupName(\"green\");\n Files.getFileAttributeView(file, PosixFileAttributeView.class)\n .setGroup(group);\n }", "title": "" }, { "docid": "c397d806b26f36ae4f0ea25cfec919b5", "score": "0.499637", "text": "@Test\n public void testAddUser() {\n System.out.println(\"addUser\");\n Moderator mod2 = new Moderator(\"mod\",\"*\",\"*\",\"*\");\n Moderator mod3 = new Moderator(\"mod3\",\"*\",\"*\",\"*\");\n assertFalse(ul.addUser(mod2));\n ul.addUser(mod3);\n assertTrue(ul.getUserList().contains(mod3));\n }", "title": "" }, { "docid": "4bbc7bf8cfb185cbcb89e3859177b8e3", "score": "0.4980106", "text": "public void createRecordFolder(FolderData folder, UserModel userModel, String nameIdentifier, String context,\n long loadFilePlanComponentDelay) throws Exception\n {\n String unique;\n\n String folderPath = folder.getPath();\n unique = UUID.randomUUID().toString();\n String newfilePlanComponentName = nameIdentifier + unique;\n String newfilePlanComponentTitle = \"title: \" + newfilePlanComponentName;\n\n // Build child record folder properties\n RecordCategoryChild recordCategoryChildModel = RecordCategoryChild.builder()\n .name(newfilePlanComponentName)\n .nodeType(RECORD_FOLDER_TYPE)\n .properties(RecordCategoryChildProperties.builder()\n .title(newfilePlanComponentTitle)\n .description(EMPTY)\n .build())\n .build();\n\n RecordCategoryAPI recordCategoryAPI = getRestAPIFactory().getRecordCategoryAPI(userModel);\n RecordCategoryChild childRecordFolder = recordCategoryAPI.createRecordCategoryChild(recordCategoryChildModel, folder.getId());\n String newChildRecordFolderId = childRecordFolder.getId();\n fileFolderService.createNewFolder(newChildRecordFolderId, context, folderPath + \"/\" + newfilePlanComponentName);\n TimeUnit.MILLISECONDS.sleep(loadFilePlanComponentDelay);\n // Increment counts\n fileFolderService.incrementFolderCount(folder.getContext(), folderPath, 1);\n }", "title": "" }, { "docid": "bbda64967955f9d6201b60c7bd4b523d", "score": "0.49793535", "text": "@Override\r\n\tpublic User createNewUser(String usr, String pwd) {\n\t\treturn Test.UserTest.getTestUser();\r\n\t}", "title": "" }, { "docid": "799e960fbf6cc08b481658fdc5b138fd", "score": "0.49783978", "text": "@Test\n void addOwnerToStoreOneOwner() {\n // userSystem <==> ownerUser\n // userSystem1 <==> newManagerUser\n setUpForAddOwnerOne();\n Assertions.assertTrue(tradingSystem.addOwnerToStore(store, userSystem, userSystem1.getUserName()));\n }", "title": "" }, { "docid": "e83361a36673840cf4fe6c16b696f030", "score": "0.4962673", "text": "java.lang.String getExportUser();", "title": "" }, { "docid": "62292f1954d9e9300b2a068ff0380be5", "score": "0.49608117", "text": "@Test\n public void testWriteIfReadingParentIsDenied() throws Exception {\n deny(path, testUser.getPrincipal(), readWritePrivileges);\n /* allow READ/WRITE privilege for testUser at 'childNPath' */\n allow(childNPath, testUser.getPrincipal(), readWritePrivileges);\n \n \n assertFalse(testSession.nodeExists(path));\n \n // reading the node and it's definition must succeed.\n assertTrue(testSession.nodeExists(childNPath));\n Node n = testSession.getNode(childNPath);\n \n n.addNode(\"someChild\");\n n.save();\n }", "title": "" }, { "docid": "01e6d78d79b619060cee3da1d840cf23", "score": "0.49537933", "text": "private boolean createDemoUser() {\n // Do nothing if user store is read-only\n if (UserManager.getUserProvider().isReadOnly()) {\n return false;\n }\n try {\n UserManager.getInstance().createUser(\"demo\", \"demo\", \"Fastpath Demo Account\", \"demo@fastpath.com\");\n return true;\n }\n catch (Exception e) {\n Log.error(e.getMessage(), e);\n }\n return false;\n }", "title": "" }, { "docid": "ecb8952ce8337cf1d9b71c631041214c", "score": "0.49498293", "text": "private static void checkDirectories() throws RemoteException {\n\t\tif(!server.isAuthenticated(username)){\n\t\t\tauthenticate(username);\n\t\t}\n\t\tfor (String a : myDirectories) {\n\t\t\tFile f = new File(myPath + \"/\" + a);\n\t\t\tif (!f.exists() || !f.isDirectory()) {\n\t\t\t\tSystem.out.println(\"Making dir :\"+a+\" on client.\");\n\t\t\t\tf.mkdir();\n\t\t\t}\n\t\t\tcheckDirectoryOnServer(a);\n\t\t}\n\t}", "title": "" }, { "docid": "0fa5e41fb90701231faea6f50b30e128", "score": "0.49494684", "text": "public void createRootUnfiledRecordFolder(FolderData folder, UserModel userModel, String nameIdentifier, String context, long loadFilePlanComponentDelay) throws Exception\n {\n String unique;\n\n String folderPath = folder.getPath();\n unique = UUID.randomUUID().toString();\n String newfilePlanComponentName = nameIdentifier + unique;\n String newfilePlanComponentTitle = \"title: \" + newfilePlanComponentName;\n\n // Build root unfiled records folder properties\n UnfiledContainerChild unfiledContainerChildModel = UnfiledContainerChild.builder()\n .name(newfilePlanComponentName)\n .nodeType(UNFILED_RECORD_FOLDER_TYPE)\n .properties(UnfiledContainerChildProperties.builder()\n .title(newfilePlanComponentTitle)\n .description(EMPTY)\n .build())\n .build();\n\n UnfiledContainerAPI unfiledContainersAPI = getRestAPIFactory().getUnfiledContainersAPI(userModel);\n UnfiledContainerChild unfiledContainerChild = unfiledContainersAPI.createUnfiledContainerChild(unfiledContainerChildModel, folder.getId());\n String newUnfiledContainerChildId = unfiledContainerChild.getId();\n fileFolderService.createNewFolder(newUnfiledContainerChildId, context, folderPath + \"/\" + newfilePlanComponentName);\n TimeUnit.MILLISECONDS.sleep(loadFilePlanComponentDelay);\n\n // Increment counts\n fileFolderService.incrementFolderCount(folder.getContext(), folderPath, 1);\n }", "title": "" }, { "docid": "d0164bf148369213e840157e45bf3695", "score": "0.49460408", "text": "public void uploadFolder()\n {}", "title": "" }, { "docid": "d20f0cea948af425a4a18eb3e4b86b29", "score": "0.49430698", "text": "@Override\r\n public void run() {\n IFolder newFolder = IArchimateFactory.eINSTANCE.createFolder();\r\n newFolder.setName(Messages.NewFolderAction_1);\r\n newFolder.setType(FolderType.USER);\r\n \r\n // Execute Command\r\n Command cmd = new NewFolderCommand(folder, newFolder);\r\n CommandStack commandStack = (CommandStack)folder.getAdapter(CommandStack.class);\r\n commandStack.execute(cmd);\r\n }", "title": "" }, { "docid": "cd80602471949c1fa79841c467cb4d56", "score": "0.4941468", "text": "@Test(groups = {\"needUpdate\"})\n// @Test(groups = {\"smoke4\", \"smoke\", \"all2\", \"all\", \"daily\", \"daily1\"})\n public void editCurrentUser() throws Exception {\n String pageSource;\n\n // ********* Constructor **********\n HelperMethods myHelper = new HelperMethods();\n DirectoryScreen myDirectory = new DirectoryScreen(driver);\n DirectoryEditScreen myEditDirectory = new DirectoryEditScreen(driver);\n BasePage myBasePage = new BasePage(driver);\n MenuScreen myMenu = new MenuScreen(driver);\n\n //Login and enter in PIN\n// myHelper.loginUAT(\"LDSTools44\", \"password1\");\n myHelper.proxyLogin(\"adambee\");\n myHelper.enterPin(\"1\", \"1\", \"3\", \"3\");\n\n myDirectory.searchAndClick(\"Beeson, Adam\");\n\n\n myEditDirectory.clearPhoneAndEmail();\n\n\n myEditDirectory.editUserOpen();\n Thread.sleep(2000);\n\n myEditDirectory.directoryEditPersonalPhone.sendKeys(\"1(801)240-0104\");\n myEditDirectory.directoryEditHouseholdPhone.sendKeys(\"(801) 867-5309\");\n myEditDirectory.directoryEditPersonalEmail.sendKeys(\"personal@gmail.com\");\n if (getRunningOS().equals(\"ios\")) {\n driver.get().findElement(By.name(\"Return\")).click();\n }\n\n myEditDirectory.directoryEditHouseholdEmail.sendKeys(\"home@gmail.com\");\n\n savingMemberInfo();\n\n Thread.sleep(3000);\n\n pageSource = myDirectory.getDirectoryUserData();\n// System.out.println(pageSource);\n\n //pageSource = getSourceOfPage();\n Assert.assertTrue(myBasePage.checkNoCaseList(\"1(801)240-0104\", pageSource, \"Contains\"));\n Assert.assertTrue(myBasePage.checkNoCaseList(\"(801) 867-5309\", pageSource, \"Contains\"));\n Assert.assertTrue(myBasePage.checkNoCaseList(\"personal@gmail.com\", pageSource, \"Contains\"));\n Assert.assertTrue(myBasePage.checkNoCaseList(\"home@gmail.com\", pageSource, \"Contains\"));\n\n\n myBasePage.backToDirectory();\n\n\n //myHelper.runSync();\n myMenu.menuLogOut();\n// myHelper.loginUAT(\"LDSTools44\", \"password1\");\n Thread.sleep(20000);\n\n\n myHelper.proxyLogin(\"adambee\");\n myHelper.enterPin(\"1\", \"1\", \"3\", \"3\");\n\n// listsDirectoryUnit();\n\n\n //Search for logged in user\n// myDirectory.searchAndClick(\"Tools, LDS44\");\n myDirectory.searchAndClick(\"Beeson, Adam\");\n\n\n pageSource = myDirectory.getDirectoryUserData();\n\n Assert.assertTrue(myBasePage.checkNoCaseList(\"Beeson, Adam\", pageSource, \"Contains\"));\n\n //Check the users name, address membership number etc...\n Assert.assertTrue(myBasePage.checkNoCaseList(\"1(801)240-0104\", pageSource, \"Contains\"));\n Assert.assertTrue(myBasePage.checkNoCaseList(\"(801) 867-5309\", pageSource, \"Contains\"));\n Assert.assertTrue(myBasePage.checkNoCaseList(\"personal@gmail.com\", pageSource, \"Contains\"));\n Assert.assertTrue(myBasePage.checkNoCaseList(\"home@gmail.com\", pageSource, \"Contains\"));\n\n Thread.sleep(2000);\n myEditDirectory.clearPhoneAndEmail();\n\n\n Thread.sleep(2000);\n myBasePage.scrollDownTEST(-400);\n Thread.sleep(1000);\n myBasePage.backToDirectory();\n\n //Search for logged in user\n// myDirectory.searchAndClick(\"Tools, LDS44\");\n//\n// pageSource = myDirectory.getDirectoryUserData();\n// Assert.assertTrue(myBasePage.checkNoCaseList(\"Tools, LDS44\", pageSource, \"Contains\"));\n//\n//\n// Thread.sleep(3000);\n// Assert.assertFalse(myBasePage.checkNoCaseList(\"1(801)240-0104\", pageSource, \"Contains\"));\n// Assert.assertFalse(myBasePage.checkNoCaseList(\"(801) 867-5309\", pageSource, \"Contains\"));\n// Assert.assertFalse(myBasePage.checkNoCaseList(\"personal@gmail.com\", pageSource, \"Contains\"));\n// Assert.assertFalse(myBasePage.checkNoCaseList(\"home@gmail.com\", pageSource, \"Contains\"));\n\n\n }", "title": "" }, { "docid": "1ce463d8c6d119e0f1e5bfdeb4617192", "score": "0.49383748", "text": "public void testFilePlanAsPowerUser()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n {\r\n AuthenticationUtil.setFullyAuthenticatedUser(rm_power_user);\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(filePlan);\r\n assertEquals(65, access.size()); // 58 + File\r\n check(access, ACCESS_AUDIT, AccessStatus.DENIED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.DENIED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.DENIED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.DENIED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.DENIED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.DENIED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\r\n check(access, EXPORT_AUDIT, AccessStatus.DENIED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.DENIED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.DENIED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.DENIED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.DENIED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.DENIED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.DENIED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.DENIED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.DENIED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.DENIED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.DENIED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.DENIED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n }", "title": "" }, { "docid": "21bea9a356721af154261b374990ddf2", "score": "0.493372", "text": "public void testRecordCategoryAsPowerUser()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws Throwable\r\n {\r\n AuthenticationUtil.setFullyAuthenticatedUser(rm_power_user);\r\n permissionService.setPermission(recordCategory_1, rm_power_user, FILING, true);\r\n Map<Capability, AccessStatus> access = recordsManagementSecurityService.getCapabilities(recordCategory_1);\r\n assertEquals(65, access.size()); // 58 + File\r\n check(access, ACCESS_AUDIT, AccessStatus.DENIED);\r\n check(access, ADD_MODIFY_EVENT_DATES, AccessStatus.DENIED);\r\n check(access, APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF, AccessStatus.DENIED);\r\n check(access, ATTACH_RULES_TO_METADATA_PROPERTIES, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_ALL_TRANSFERS, AccessStatus.DENIED);\r\n check(access, AUTHORIZE_NOMINATED_TRANSFERS, AccessStatus.DENIED);\r\n check(access, CHANGE_OR_DELETE_REFERENCES, AccessStatus.DENIED);\r\n check(access, CLOSE_FOLDERS, AccessStatus.DENIED);\r\n check(access, CREATE_AND_ASSOCIATE_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_EVENTS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_METADATA, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FILEPLAN_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_FOLDERS, AccessStatus.ALLOWED);\r\n check(access, CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_REFERENCE_TYPES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_ROLES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_TIMEFRAMES, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_DESTROY_USERS_AND_GROUPS, AccessStatus.DENIED);\r\n check(access, CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS, AccessStatus.DENIED);\r\n check(access, CYCLE_VITAL_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_AUDIT_AS_RECORD, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, DECLARE_RECORDS_IN_CLOSED_FOLDERS, AccessStatus.DENIED);\r\n check(access, DELETE_AUDIT, AccessStatus.DENIED);\r\n check(access, DELETE_LINKS, AccessStatus.UNDETERMINED);\r\n check(access, DELETE_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS, AccessStatus.DENIED);\r\n check(access, DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION, AccessStatus.DENIED);\r\n check(access, DISPLAY_RIGHTS_REPORT, AccessStatus.DENIED);\r\n check(access, EDIT_DECLARED_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_NON_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_RECORD_METADATA, AccessStatus.DENIED);\r\n check(access, EDIT_SELECTION_LISTS, AccessStatus.DENIED);\r\n check(access, ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\r\n check(access, EXPORT_AUDIT, AccessStatus.DENIED);\r\n check(access, EXTEND_RETENTION_PERIOD_OR_FREEZE, AccessStatus.DENIED);\r\n check(access, MAKE_OPTIONAL_PARAMETERS_MANDATORY, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_CONTROLS, AccessStatus.DENIED);\r\n check(access, MANAGE_ACCESS_RIGHTS, AccessStatus.DENIED);\r\n check(access, MANUALLY_CHANGE_DISPOSITION_DATES, AccessStatus.DENIED);\r\n check(access, MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\r\n check(access, MAP_EMAIL_METADATA, AccessStatus.DENIED);\r\n check(access, MOVE_RECORDS, AccessStatus.UNDETERMINED);\r\n check(access, PASSWORD_CONTROL, AccessStatus.DENIED);\r\n check(access, PLANNING_REVIEW_CYCLES, AccessStatus.DENIED);\r\n check(access, RE_OPEN_FOLDERS, AccessStatus.DENIED);\r\n check(access, SELECT_AUDIT_METADATA, AccessStatus.DENIED);\r\n check(access, TRIGGER_AN_EVENT, AccessStatus.DENIED);\r\n check(access, UNDECLARE_RECORDS, AccessStatus.DENIED);\r\n check(access, UNFREEZE, AccessStatus.DENIED);\r\n check(access, UPDATE_CLASSIFICATION_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_EXEMPTION_CATEGORIES, AccessStatus.DENIED);\r\n check(access, UPDATE_TRIGGER_DATES, AccessStatus.DENIED);\r\n check(access, UPDATE_VITAL_RECORD_CYCLE_INFORMATION, AccessStatus.DENIED);\r\n check(access, UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS, AccessStatus.DENIED);\r\n check(access, VIEW_RECORDS, AccessStatus.ALLOWED);\r\n check(access, VIEW_UPDATE_REASONS_FOR_FREEZE, AccessStatus.DENIED);\r\n \r\n return null;\r\n }\r\n }, false, true);\r\n }", "title": "" }, { "docid": "01d194fd6635ba0ec95b66536046248b", "score": "0.49298978", "text": "public void WriteUserDataFile(String Arg1) {\n ContextWrapper contextWrapper = new ContextWrapper(getApplicationContext());\n File directory = contextWrapper.getDir(getFilesDir().getName(), ContextWrapper.MODE_PRIVATE);\n File file = new File(directory, UserDataFile);\n String userData = Arg1;\n\n FileOutputStream outputStream;\n try {\n outputStream = openFileOutput(UserDataFile, Context.MODE_PRIVATE);\n outputStream.write(userData.getBytes());\n outputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "59569838efa79edf6148bc5c5303f97e", "score": "0.4926372", "text": "@Test\n public void testGrantSearchAllUsers() throws Exception\n {\n // create the non-admin user\n createUser( \"billyd\", \"billyd\" );\n \n // try an search operation which should fail without any ACI\n assertFalse( checkCanSearchAs( \"billyd\", \"billyd\" ) );\n \n // now add a subentry that enables anyone to search an entry below ou=system\n createAccessControlSubentry( \"anybodySearch\", \"{ \" + \"identificationTag \\\"searchAci\\\", \" + \"precedence 14, \"\n + \"authenticationLevel none, \" + \"itemOrUserFirst userFirst: { \" + \"userClasses { allUsers }, \"\n + \"userPermissions { { \" + \"protectedItems {entry, allUserAttributeTypesAndValues}, \"\n + \"grantsAndDenials { grantRead, grantReturnDN, grantBrowse } } } } }\" );\n \n // see if we can now search that tree which we could not before\n // should work now with billyd now that all users are authorized\n assertTrue( checkCanSearchAs( \"billyd\", \"billyd\" ) );\n }", "title": "" }, { "docid": "c139fa758c23c04bd61e5571eb6eb0c1", "score": "0.49209282", "text": "@BeforeClass(groups = { \"alfresco-one\" })\n public void prepare() throws Exception\n {\n if (logger.isTraceEnabled())\n logger.trace(\"====prepare====\");\n siteName = \"site\" + System.currentTimeMillis();\n folderName = \"The first folder\";\n folderDescription = String.format(\"Description of %s\", folderName);\n DashBoardPage dashBoard = loginAs(username, password);\n UserSearchPage page = dashBoard.getNav().getUsersPage().render();\n NewUserPage newPage = page.selectNewUser().render();\n newPage.createEnterpriseUserWithGroup(userName, firstName, lastName, userName, userName, \"ALFRESCO_ADMINISTRATORS\");\n UserSearchPage userPage = dashBoard.getNav().getUsersPage().render();\n userPage.searchFor(userName).render();\n Assert.assertTrue(userPage.hasResults());\n logout(driver);\n loginAs(userName, userName);\n siteUtil.createSite(driver, username, password, siteName, \"description\", \"Public\");\n }", "title": "" }, { "docid": "85285b585fdf18095670a1610fbd4e05", "score": "0.49205628", "text": "@Test\n public void testFindUserByUid() {\n String username = testProps.getProperty(\"testUser\", String.class, \"TEST\");\n createTestUser();\n final Uid expected = new Uid(username);\n FindUidObjectHandler handler = new FindUidObjectHandler(expected);\n // attempt to find the newly created object..\n facade.search(ObjectClass.ACCOUNT, new EqualsFilter(expected), handler, null);\n assertTrue(\"The testuser was not found\", handler.found);\n final Uid actual = handler.getFoundUID();\n assertNotNull(actual);\n assertTrue(actual.is(expected.getName()));\n }", "title": "" }, { "docid": "b5474650340b51c0e6f41255a892b7d1", "score": "0.49121994", "text": "public ServiceResult<Integer> CreateUser(User newUser)\n {\n int userId = -1;\n try\n {\n userId = dataManager.CreateUser(newUser);\n if(userId == -1)//The userName already exists\n return new ServiceResult<Integer>();\n\n //Now we have to create the user directory structure\n DirectoryManager dirManager = DirectoryManager.GetInstance();\n newUser.setUserId(userId);\n boolean dirResult = dirManager.CreateUserStructure(newUser).getValue();\n if(!dirResult) //We have to manage this in the same way as a DB error\n throw new Exception(\"No se pudo crear la estructura de directorios.\");\n\n //Everything went fine\n return new ServiceResult<Integer>(userId);\n }\n catch(Exception ex)\n {\n if(userId != -1)\n CleanUserData(userId); //An error occurred while trying to create the folder struct\n return CommonFunctions.CreateErrorServiceResult(ex);\n }\n }", "title": "" }, { "docid": "ae6780b946cd5a269b41d2d400d2459d", "score": "0.49116156", "text": "public void login(String userID) throws ClassNotFoundException, IOException {\n\t\tUser u = getUser(userID);\n\t\tu.albumCollection = readuser(userID);\n\t\t\n\t}", "title": "" }, { "docid": "79c4b61ed58f17feb8cd6dfdf8f2fc7c", "score": "0.4910504", "text": "public static void saveUser(UserModel userModel){\n try {\n File file = new File(getFilePath(userModel.getPlayerName()));\n file.createNewFile();\n FileOutputStream fos;\n fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(userModel);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "c1336f1f1dcc8eceea19b04f0b63371e", "score": "0.4902098", "text": "public static String createUserDir(ServletContext servletContext, String username) {\n String userDirPath = servletContext.getRealPath(\"/User/\"+username);\n MiscellaneousUtility.DirCeation(new File(userDirPath));\n return userDirPath;\n }", "title": "" }, { "docid": "9560eb1dc80f3dd842b466154e0710b5", "score": "0.48973334", "text": "public void groupMembershipsInFolderFilter(HttpServletRequest request, HttpServletResponse response) {\r\n final Subject loggedInSubject = GrouperUiFilter.retrieveSubjectLoggedIn();\r\n \r\n GrouperSession grouperSession = null;\r\n \r\n Stem stem = null;\r\n\r\n try {\r\n grouperSession = GrouperSession.start(loggedInSubject);\r\n \r\n stem = retrieveStemHelper(request, false).getStem();\r\n \r\n if (stem == null) {\r\n return;\r\n }\r\n \r\n groupMembershipsInFolderFilterHelper(request, response, stem);\r\n \r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession);\r\n }\r\n \r\n }", "title": "" }, { "docid": "88f2f42f3d14a0e8be1c0095bb44209a", "score": "0.4889625", "text": "@Override\n public Path getUserSavedFilePath() {\n return userStorage.getUserSavedFilePath();\n }", "title": "" } ]
8cc22562c2bc70c0af0814636b4afbac
Dynamic lineups representing the YouTube content viewed by the audience. repeated .google.ads.googleads.v14.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
[ { "docid": "86784f5c4cb868b8f2aec0d92bf107f7", "score": "0.6865832", "text": "public com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup.Builder addDynamicLineupsBuilder(\n int index) {\n return getDynamicLineupsFieldBuilder().addBuilder(\n index, com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup.getDefaultInstance());\n }", "title": "" } ]
[ { "docid": "7368744ee15a29b0deb897a0dcabc5dc", "score": "0.75583285", "text": "@java.lang.Override\n public com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup getDynamicLineups(int index) {\n return dynamicLineups_.get(index);\n }", "title": "" }, { "docid": "cb287a08aaee322bd8c88b48356a399b", "score": "0.74235255", "text": "@java.lang.Override\n public com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineupOrBuilder getDynamicLineupsOrBuilder(\n int index) {\n return dynamicLineups_.get(index);\n }", "title": "" }, { "docid": "7823ce07dcb2e118f4687d9fdc360e03", "score": "0.7416125", "text": "public Builder addDynamicLineups(com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup value) {\n if (dynamicLineupsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDynamicLineupsIsMutable();\n dynamicLineups_.add(value);\n onChanged();\n } else {\n dynamicLineupsBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "1c7a9424e484599f65e7697b85890365", "score": "0.737585", "text": "public com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup.Builder addDynamicLineupsBuilder() {\n return getDynamicLineupsFieldBuilder().addBuilder(\n com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup.getDefaultInstance());\n }", "title": "" }, { "docid": "58de286e80fe3bcd40de3e2f21fe9727", "score": "0.7249884", "text": "public Builder addDynamicLineups(\n int index, com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup value) {\n if (dynamicLineupsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDynamicLineupsIsMutable();\n dynamicLineups_.add(index, value);\n onChanged();\n } else {\n dynamicLineupsBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "7b544ffd840d0fa723759c80ca8b769f", "score": "0.7237959", "text": "@java.lang.Override\n public java.util.List<com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup> getDynamicLineupsList() {\n return dynamicLineups_;\n }", "title": "" }, { "docid": "29b30b01e2fe523df20e6b77031c6dc7", "score": "0.7211952", "text": "@java.lang.Override\n public java.util.List<? extends com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineupOrBuilder> \n getDynamicLineupsOrBuilderList() {\n return dynamicLineups_;\n }", "title": "" }, { "docid": "61c9c6225b26a98e3880d3c06bdf392d", "score": "0.70892173", "text": "public com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup getDynamicLineups(int index) {\n if (dynamicLineupsBuilder_ == null) {\n return dynamicLineups_.get(index);\n } else {\n return dynamicLineupsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "12989f20d6534496268af1363b290e8c", "score": "0.70441777", "text": "public Builder setDynamicLineups(\n int index, com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup value) {\n if (dynamicLineupsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDynamicLineupsIsMutable();\n dynamicLineups_.set(index, value);\n onChanged();\n } else {\n dynamicLineupsBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "83316f07814589e059b56f9892000c01", "score": "0.68498236", "text": "public com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineupOrBuilder getDynamicLineupsOrBuilder(\n int index) {\n if (dynamicLineupsBuilder_ == null) {\n return dynamicLineups_.get(index); } else {\n return dynamicLineupsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "3d2705f6e6a1964e18c0e59440899cdd", "score": "0.6770852", "text": "public Builder addAllDynamicLineups(\n java.lang.Iterable<? extends com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup> values) {\n if (dynamicLineupsBuilder_ == null) {\n ensureDynamicLineupsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, dynamicLineups_);\n onChanged();\n } else {\n dynamicLineupsBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "52b67d07fc0ddeb2f71b020d099997a9", "score": "0.6565304", "text": "public java.util.List<? extends com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineupOrBuilder> \n getDynamicLineupsOrBuilderList() {\n if (dynamicLineupsBuilder_ != null) {\n return dynamicLineupsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(dynamicLineups_);\n }\n }", "title": "" }, { "docid": "91e81409adcd9a55ce8c04713e5a4d3d", "score": "0.6561244", "text": "public java.util.List<com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup> getDynamicLineupsList() {\n if (dynamicLineupsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(dynamicLineups_);\n } else {\n return dynamicLineupsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "3564cb7c6ba0a32b1c0893e1f408268e", "score": "0.6404306", "text": "public Builder addDynamicLineups(\n com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup.Builder builderForValue) {\n if (dynamicLineupsBuilder_ == null) {\n ensureDynamicLineupsIsMutable();\n dynamicLineups_.add(builderForValue.build());\n onChanged();\n } else {\n dynamicLineupsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "40de42ec1019c82b9d9b4cd2dcd3d4ea", "score": "0.637256", "text": "public Builder addDynamicLineups(\n int index, com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup.Builder builderForValue) {\n if (dynamicLineupsBuilder_ == null) {\n ensureDynamicLineupsIsMutable();\n dynamicLineups_.add(index, builderForValue.build());\n onChanged();\n } else {\n dynamicLineupsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "d532c14cb731ee42851b04eb085cf17a", "score": "0.6195884", "text": "public com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup.Builder getDynamicLineupsBuilder(\n int index) {\n return getDynamicLineupsFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "21ad51704dac6b8857053fb612334c69", "score": "0.6164231", "text": "@java.lang.Override\n public int getDynamicLineupsCount() {\n return dynamicLineups_.size();\n }", "title": "" }, { "docid": "ca7e85e8436929a3c5f3ee12f69c0989", "score": "0.60845506", "text": "public Builder setDynamicLineups(\n int index, com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup.Builder builderForValue) {\n if (dynamicLineupsBuilder_ == null) {\n ensureDynamicLineupsIsMutable();\n dynamicLineups_.set(index, builderForValue.build());\n onChanged();\n } else {\n dynamicLineupsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "080fcdea7a67beeffd4f7e80736675c0", "score": "0.58257663", "text": "public java.util.List<com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup.Builder> \n getDynamicLineupsBuilderList() {\n return getDynamicLineupsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "f260bed10e5d22816e715807ba9b868e", "score": "0.5612208", "text": "public int getDynamicLineupsCount() {\n if (dynamicLineupsBuilder_ == null) {\n return dynamicLineups_.size();\n } else {\n return dynamicLineupsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "d4b41ced1d878c91eacab3daac037182", "score": "0.5585622", "text": "public Builder clearDynamicLineups() {\n if (dynamicLineupsBuilder_ == null) {\n dynamicLineups_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000040);\n onChanged();\n } else {\n dynamicLineupsBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "4adef893b0f5202f04c03b5c4cc8aea1", "score": "0.48326272", "text": "public void addDynamicUrls(List dynamicUrls) {\n this.dynamicUrls.addAll(dynamicUrls);\n dynamicParsed = false;\n }", "title": "" }, { "docid": "bb6e190ca5ecdb082d5936a34d4840e7", "score": "0.48147398", "text": "public Builder removeDynamicLineups(int index) {\n if (dynamicLineupsBuilder_ == null) {\n ensureDynamicLineupsIsMutable();\n dynamicLineups_.remove(index);\n onChanged();\n } else {\n dynamicLineupsBuilder_.remove(index);\n }\n return this;\n }", "title": "" }, { "docid": "953387c7f50b226cfdc344659749e2b3", "score": "0.46760544", "text": "private DynamicLineupAttributeMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "56f3d1c18b94882abc27925752e6282f", "score": "0.4386116", "text": "public void addDynamicUrl(String dynamicUrl) {\n if (dynamicUrl != null) {\n dynamicUrls.add(dynamicUrl);\n dynamicParsed = false;\n\n // FIXME: Why do we enforce this? What about {context.root} based relative URLs?\n /*\n if (u.startsWith(\"http://\") || u.startsWith(\"https://\"))\n {\n Don't convert to chars here, we need to translate {context.root} when we know it later...\n char[] urlChars = u.toLowerCase().toCharArray();\n parsedDynamicUrls.add(u);\n parsed = false;\n }\n else\n {\n throw new MessageException(\"Dynamic URL patterns must start with 'http://' or 'https://'\");\n }\n */\n }\n }", "title": "" }, { "docid": "f930c0a61dbaf37d46b7d577e3005096", "score": "0.43469605", "text": "public List getDynamicUrls() {\n return dynamicUrls;\n }", "title": "" }, { "docid": "6878670f2dd5dc56f9be6ac424b74662", "score": "0.43229246", "text": "public Builder addDynamicListeners(io.envoyproxy.envoy.admin.v3.ListenersConfigDump.DynamicListener value) {\n if (dynamicListenersBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDynamicListenersIsMutable();\n dynamicListeners_.add(value);\n onChanged();\n } else {\n dynamicListenersBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "7a39bdd0d3002c49d4fc42a6b0de87d5", "score": "0.4303394", "text": "I_DirectedGraphic addLine(final I_DirectedLine line);", "title": "" }, { "docid": "59365769c5a852629f90c1b77268ce8b", "score": "0.4257514", "text": "public void addLine() {\n\t\ttry {\n\t\t\tfor (int i = 0; i < Assets.BIR; i++) {\n\t\t\t\tint j = 0;\n\t\t\t\twhile (blocks[j++][i])\n\t\t\t\t\t;\n\n\t\t\t\tblocks[j - 1][i] = true;\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\tAssets.engine.gameOver();\n\t\t}\n\n\t\t// System.out.println(\"Added line\"); // Debug:\n\t\tAssets.failCount = 0;\n\t\tAssets.timePassed = 0;\n\t}", "title": "" }, { "docid": "d7f231bb89a2ebb48b89f7aca336ed27", "score": "0.42236102", "text": "public void add( BlinkMScriptLine line) {\n scriptLines.add(line);\n }", "title": "" }, { "docid": "5308dc62778770b304f7ce0c174deaac", "score": "0.4133737", "text": "private void setLines(int add) {\n this.lines += add;\n }", "title": "" }, { "docid": "755e55bd5b6c92996746f7395057fa9f", "score": "0.41102847", "text": "@Override\n\t protected void onCreate(Bundle savedInstanceState) {\n\t super.onCreate(savedInstanceState);\n\t context= this;\n\t \n\t \n\n\n\t \n\t \n /* System.out.println(\"Session Time Out Interval.....\"+\t Localytics.getSessionTimeoutInterval());\n // System.out.println(\"App Key is :::::::::::::::::::::::::::::::::::::::::::::::::::::::\");\n\n\t\n\t getApplication().registerActivityLifecycleCallbacks(new LocalyticsActivityLifecycleCallbacks(getApplicationContext(), LOCALYTICS_APP_KEY));\n\t \n\t \n\t \n\t List custom_dimensions = new ArrayList();\n\tcustom_dimensions.add(\"Trial\");\n\t */\n\t \n\t \n\t //Events\n\t/* Map values = new HashMap ();\n\t values.put(PLAYER_LEVEL, String.valueOf(this.PLAYER_LEVEL ));\n\t \n\t */\n\t setContentView(R.layout.activity_list_view1);\n\t \n\t ActionBar actionBar = getActionBar();\n\t // actionBar.setIcon(R.drawable.menu);\n\t\t// getActionBar().setDisplayShowTitleEnabled(false);\n\t\t \n\t\t /*\n\t\t\tApsalar.setFBAppId(\"411699832323109\");\n\t\t\tApsalar.startSession(context,YourApiKey,SecretKey);\n\t\t\tApsalar.event(\"Completed....\");\n\t\t\t\n\t\t\tApsalar.event(\"__iap__\",\n\t\t\t\t\t \"ps\", \"MyAccountName\",\n\t\t\t\t\t \"pk\", \"MyProductSKU\",\n\t\t\t\t\t \"pn\", \"MyProductName\",\n\t\t\t\t\t \"pc\", \"MyProductCategory\",\n\t\t\t\t\t \"pcc\", \"EUR\",\n\t\t\t\t\t \"pq\", 2,\n\t\t\t\t\t \"pp\", 123.45,\n\t\t\t\t\t \"r\", 296.28);\n\t\t\ttry {\n\t\t\t\t JSONArray contents = new JSONArray();\n\t\t\t\t JSONObject item1 = new JSONObject();\n\n\t\t\t\t item1.put(\"sku\", \"UPC-018627610014\");\n\t\t\t\t item1.put(\"qty\",\t\t\t\t contents.put(item2);\n\n\t\t\t\t JSONObject item3 = new JSONObject(); 2);\n\t\t\t\t item1.put(\"unit_price\", 8.99);\n\t\t\t\t item1.put(\"currency\", \"USD\");\n\t\t\t\t contents.put(item1);\n\n\t\t\t\t JSONObject item2 = new JSONObject();\n\t\t\t\t item2.put(\"sku\", \"UPC-070271003758\");\n\t\t\t\t item2.put(\"qty\", 1);\n\t\t\t\t item2.put(\"unit_price\", 15.99);\n\t\t\t\t item2.put(\"currency\", \"USD\");\n\n\t\t\t\t item3.put(\"sku\", \"UPC-070271003758\");\n\t\t\t\t item3.put(\"qty\", 1);\n\t\t\t\t item3.put(\"unit_price\", 15.99);\n\t\t\t\t item3.put(\"currency\", \"USD\");\n\t\t\t\t contents.put(item3);\n\n\t\t\t\t JSONObject args = new JSONObject();\n\t\t\t\t args.put(\"contents\", contents);\n\t\t\t\t args.put(\"total\", 63.96);\n\t\t\t\t args.put(\"currency\", \"USD\");\n\t\t\t\t args.put(\"member_id\", \"A556740089\");\n\n\t\t\t\t // Record the event with Apsalar\n\t\t\t\t Apsalar.eventJSON(\"Purchase_Complete\", args);\n\t\t\t\t}\n\t\t\t\tcatch(JSONException e) {\n\t\t\t\t android.util.Log.e(\"Now\", \"JSON Exception in cart\");\n\t\t\t\t}\n\t\t\t\n\t\t\tApsalar.endSession();\n\t */\n\t \n\t \n\t actorsList = new ArrayList<OfferWallEntity>();\n\t // actorsList1=new ArrayList<OfferListEntity>();\n\t new JSONAsyncTask().execute();\n\t \n // ListView listview = (ListView)findViewById(R.id.list);\n\t listview=getListView();\n\t \n\t adapter = new OfferWallAdapter(getApplicationContext(), R.layout.new_list_view, actorsList,this);\n\t// adapter1 = new OfferListAdapter(getApplicationContext(), R.layout.new_list_view, actorsList1,this);\n\n\t // listview.setAdapter(adapter);\n\t int modeInt = getIntent().getIntExtra(\"MODE\", 0);\n\t\tSwipeDismissList.UndoMode mode = SwipeDismissList.UndoMode.values()[modeInt];\n\n\t\t\n\n\t\tmSwipeList = new SwipeDismissList(\n\t\t\t\tlistview,\n\t\t\t\n\t\t\tnew SwipeDismissList.OnDismissCallback() {\n\t\t\t\n\t\t\tpublic SwipeDismissList.Undoable onDismiss(AbsListView listView, final int position) {\n\n\t\t\t\t// Get item that should be deleted from the adapter.\n\t\t\t\tfinal OfferWallEntity item = adapter.getItem(position);\n\t\t\t\t// Delete that item from the adapter.\n\t\t\t\tadapter.remove(item);\n\n\t\t\t\t\n\t\t\t\treturn new SwipeDismissList.Undoable() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic String getTitle() {\n\t\t\t\t\t\treturn item + \" deleted\";\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void undo() {\n\t\t\t\t\t\t// Reinsert the item at its previous position.\n\t\t\t\t\t\tadapter.insert(item, position);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void discard() {\n\t\t\t\t\t\t// Just write a log message (use logcat to see the effect)\n\t\t\t\t\t\tLog.w(\"DISCARD\", \"item \" + item + \" now finally discarded\");\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t}\n\t\t},\n\t\t\tmode);\n\n\t\tif (mode == SwipeDismissList.UndoMode.MULTI_UNDO) {\n\t\t\tmSwipeList.setUndoMultipleString(null);\n\t\t}\n\n\t\t// Just reset the adapter.\n\t//\tresetAdapter();\n\t\t //listview.setAdapter(adapter);\n\t\t// SeparatedListAdapter adapter = new SeparatedListAdapter(this);\n\t\t listview.setAdapter(adapter);\n\n\t /* listview.setOnItemClickListener(new OnItemClickListener() {\n\n\t @Override\n\t public void onItemClick(AdapterView<?> arg0, View arg1, int position,\n\t long id) {\n\t // TODO Auto-generated method stub\n\t Intent myIntent = new Intent(context, OfferDescription.class);\n\t \n\t myIntent.putExtra(\"offerName\",actorsList.get(position).getOfferName());\n\t myIntent.putExtra(\"offerImage\",actorsList.get(position).getOfferImage());\n\t myIntent.putExtra(\"offerMoney\",actorsList.get(position).getOfferMoney());\n\t //myIntent.putExtra(\"dob\", actorsList.get(position).getDob());\n\t System.out.println(\"::::::::::::::\"+myIntent.putExtra(\"dob\", actorsList.get(position).getOfferMoney()));\n\t //System.out.println(dob);\n\t startActivity(myIntent);\n\t }\n\t });*/\n\t \n\t }", "title": "" }, { "docid": "8940e102531c01307a3fe9653729d5ab", "score": "0.41061333", "text": "public void setDynamicBreakpoints(com.gensym.util.Sequence dynamicBreakpoints) throws G2AccessException;", "title": "" }, { "docid": "d57b054b499a8f56bcb2ae68f5a528df", "score": "0.40853488", "text": "public void shortenYLine(Line flat) {\n\n double begin = flat.getStartY();\n double end = flat.getEndY();\n if (begin >= end) {\n flat.setStroke(Color.TRANSPARENT);\n delete = true;\n\n }\n else {\n begin += 1;\n flat.setStartY(begin);\n count++;\n if(count > 3)\n collision = false;\n }\n }", "title": "" }, { "docid": "ae37490e5a9723141abf430135462cf3", "score": "0.40796894", "text": "public Builder addDynamicListeners(\n int index, io.envoyproxy.envoy.admin.v3.ListenersConfigDump.DynamicListener value) {\n if (dynamicListenersBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDynamicListenersIsMutable();\n dynamicListeners_.add(index, value);\n onChanged();\n } else {\n dynamicListenersBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "bc3d701a4ee4a3b57d675db9769dde32", "score": "0.40627566", "text": "com.cdiscount.www.SupplyOrderReportLine addNewSupplyOrderReportLine();", "title": "" }, { "docid": "a8ebea2686eef697dbbac95a0b0535b5", "score": "0.40501693", "text": "@VisibleForTesting\n public @Nonnull Builder setLineUp(@Nullable Boolean lineUp) {\n _lineUp = lineUp;\n return this;\n }", "title": "" }, { "docid": "588ba50bc72eb27558cbe9a0d399d976", "score": "0.40333945", "text": "void addAdvertisementRecord(CssAdvertisementRecord record);", "title": "" }, { "docid": "4fd0ce539e4fbeaedae12b37a7fe0cfe", "score": "0.40194687", "text": "public void addYLine(Line flat, double a) {\n double x = flat.getStartY();\n\n if (x == (flat.getStartY() - a)) {\n x = flat.getStartY();\n } else {\n x -= 1;\n flat.setStartY(x);\n\n }\n }", "title": "" }, { "docid": "43eecb564306413a01800fb299f50117", "score": "0.40169892", "text": "public UriBuilder setInLineCountEnabled(boolean enabled){\n\t\toDataBuilder.setInLineCountEnabled(enabled);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "858c50cb04b2fe9d826d6e4d7f7fe788", "score": "0.40081906", "text": "private void drawLine() {\n\t\tint x=DrawingInstructor.nextX(this.getWidth()/2);\n\t\tint y=DrawingInstructor.nextY(this.getHeight()/2);\n\t\tsetColor();\n\t\tif (x==GAP || y==GAP) \n\t\t{ \n\t\t\tgap=true; \n\t\t\treturn; // instead of a long else part\n\t\t}\n\t\t\n\t\tx = translateX(x);\n\t\ty = translateY(y);\n\t\tif (gap) // end point of a gap\n\t\t\tgap=false;\t// start a new line here, but don't draw to here\t \n\t\telse \t\t\n\t\t{\tif (isVisible(x,y)) \n\t\t\t\tgraphics.drawLine(lastX, lastY, x, y); // draw to here\n\t\t \n\t\t}\n\t\tlastX = x; // next line starts here\n\t\tlastY = y;\t\t\n\t}", "title": "" }, { "docid": "5b01d6597497b949547c5cdfa4d9796d", "score": "0.40043578", "text": "@Override\r\n public void setDynamic(boolean dynamic) {\n \r\n }", "title": "" }, { "docid": "0ab784db4debecd7e52467e2b328cafc", "score": "0.3997982", "text": "private void show_legend(Intent intent) {\n String num_readings = \"\" + intent.getIntExtra(\"num_readings\", 0);\n String rawLine = intent.getStringExtra(\"raw_line\");\n String smoothLine = intent.getStringExtra(\"smoothed_line\");\n String averageLine = intent.getStringExtra(\"average_line\");\n\n boolean showRaw = (rawLine != null && rawLine.length() > 0);\n boolean showSmooth = (smoothLine != null && smoothLine.length() > 0);\n boolean showAverage = (averageLine != null && averageLine.length() > 0);\n\n // get the number of readings\n final TextView numReadings = findViewById(R.id.plotTextView00b);\n numReadings.setText(num_readings);\n\n // if a raw line and no smooth line, then switch to show the brighter blue line\n if (showRaw) {\n if (showSmooth) {\n // set the raw line title\n final TextView rawTitle = findViewById(R.id.plotTextView01a);\n rawTitle.setText(rawLine);\n final TextView rawTitle1 = findViewById(R.id.plotTextView01b);\n rawTitle1.setText(R.string.seven_underscores);\n // set the smooth line title\n final TextView smoothTitle = findViewById(R.id.plotTextView02a);\n smoothTitle.setText(smoothLine);\n final TextView smoothTitle1 = findViewById(R.id.plotTextView02b);\n smoothTitle1.setText(R.string.seven_underscores);\n } else {\n // set the smooth line title\n final TextView smoothTitle = findViewById(R.id.plotTextView02a);\n smoothTitle.setText(rawLine);\n final TextView smoothTitle1 = findViewById(R.id.plotTextView02b);\n smoothTitle1.setText(R.string.seven_underscores);\n }\n }\n\n // set the average line title\n if (showAverage) {\n final TextView averageTitle = findViewById(R.id.plotTextView03a);\n averageTitle.setText(averageLine);\n final TextView averageTitle1 = findViewById(R.id.plotTextView03b);\n averageTitle1.setText(R.string.seven_underscores);\n }\n }", "title": "" }, { "docid": "05ba83e03aa09399ccac6229340cdb14", "score": "0.39933968", "text": "void drawLine() {\n for(double x = 0;x<1;x += 0.001) {\r\n plotFrame.append(2, x, x);\r\n }\r\n }", "title": "" }, { "docid": "0815ea9bc296a3f86eadce2600c6f6b0", "score": "0.39848045", "text": "public void setHeight(int n_line) {\n this.height = n_line;\n }", "title": "" }, { "docid": "9ab3fa82f216d11194f772a0901458ed", "score": "0.398292", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public entity.AssessmentItem[] getItemLine() {\n return (entity.AssessmentItem[])__getInternalInterface().getFieldValue(ITEMLINE_PROP.get());\n }", "title": "" }, { "docid": "2dc74d987208a73d228764dd6dc7d769", "score": "0.39689046", "text": "public void addLine(String line) {\n body = body.concat(line).concat(\"\\n\");\n }", "title": "" }, { "docid": "65a89ddfa2f793de4e3562d177b61999", "score": "0.39659634", "text": "public void setLineHight(int lineHight) {\r\n\t\tthis.lineHight = lineHight;\r\n\t}", "title": "" }, { "docid": "4e32ad762fbfff5e1787a529be8dd5a9", "score": "0.3958027", "text": "@Override\n public void onLineEnd() {\n if (mLine.length() > 0) {\n mCurrentLine.add(\n new TextTrackCueSpan(mLine.toString(), mLastTimestamp));\n mLine.delete(0, mLine.length());\n }\n\n TextTrackCueSpan[] spans = new TextTrackCueSpan[mCurrentLine.size()];\n mCurrentLine.toArray(spans);\n mCurrentLine.clear();\n mLines.add(spans);\n }", "title": "" }, { "docid": "8c206212f712110fb13870894ac7ff74", "score": "0.3957077", "text": "private void drawLine(Journey journey){\n ArrayList<LatLng> path = journey.getPathLatLng();\n PolylineOptions polylineOptions = new PolylineOptions().width(6).color(Color.BLUE).geodesic(true);\n LatLngBounds.Builder bounds = new LatLngBounds.Builder();\n LatLng latestPoint = path.get(0);\n float distance = 0;\n for(int i = path.size()-1; i>=0; i--){\n LatLng currentPoint = path.get(i);\n bounds.include(currentPoint);\n polylineOptions.add(currentPoint);\n float currentDistance = Utils.computeDistance(latestPoint, currentPoint);\n distance = distance + currentDistance;\n latestPoint = currentPoint;\n }\n mJourneyMap.addPolyline(polylineOptions);\n LatLngBounds latLngbounds = bounds.build();\n\n mJourneyMap.setInfoWindowAdapter(new CustomInfoWindowAdapter(mActivity, journey));\n addMarker(\n path.get(path.size()-1),\n mActivity.getString(R.string.text_start),\n true\n );\n addMarker(\n path.get(0),\n mActivity.getString(R.string.text_end),\n true\n );\n moveJourneyMapCameraToLocation(latLngbounds);\n }", "title": "" }, { "docid": "664e4b4e7254cb727fe510da4f181159", "score": "0.39564967", "text": "@Override\r\n public boolean isDynamic() {\n return false;\r\n }", "title": "" }, { "docid": "e985247806aa101eb96a8e3458748d74", "score": "0.3936755", "text": "public void customLoadMoreDataFromApi() {\n populateTimeline(TwitterConstants.SCROLL, earliestID - 1);\n }", "title": "" }, { "docid": "9dbbee162c2d3149be0eba886275a32b", "score": "0.39284325", "text": "public void setItemLine(entity.AssessmentItem[] value) {\n __getInternalInterface().setFieldValue(ITEMLINE_PROP.get(), value);\n }", "title": "" }, { "docid": "4b2c6994111bfd473cc3ef0a1ece09bb", "score": "0.39089686", "text": "int getAdBreaksCount();", "title": "" }, { "docid": "34d900b74058f33d48684008cd3a1315", "score": "0.3906006", "text": "java.util.List<com.google.ads.googleads.v14.common.AdTextAsset> \n getHeadlinesList();", "title": "" }, { "docid": "3c6a7e8c088d8ba56d3ea441e15245f0", "score": "0.39050508", "text": "public static void drawLine() {\n System.out.print(\"+\");\n for (int i = 1; i <= (2 * SUB_HEIGHT); i++) {\n System.out.print(\"-\");\n }\n System.out.println(\"+\");\n }", "title": "" }, { "docid": "1a1515b8fdfab606f6a10fe945f6ecd8", "score": "0.3899044", "text": "java.util.List<? extends com.google.ads.googleads.v14.common.AdTextAssetOrBuilder> \n getHeadlinesOrBuilderList();", "title": "" }, { "docid": "4eb0cb3bda076165da0ef6a393354055", "score": "0.38964495", "text": "@JSProperty(\"lineDashStyle\")\n void setLineDashStyle(String value);", "title": "" }, { "docid": "97ae6f5415cc4723bdbabc8adf6493b1", "score": "0.38921824", "text": "com.google.ads.googleads.v14.common.AdTextAsset getHeadlines(int index);", "title": "" }, { "docid": "37bfbe2fd50c88b4d5f834f5522eedea", "score": "0.38853976", "text": "public void addY2Line(Line flat, double a) {\n double x = flat.getEndY();\n\n if (x == 130) {\n x = flat.getEndY();\n } else {\n x += 1;\n flat.setEndY(x);\n }\n }", "title": "" }, { "docid": "e10646261fafba0d1bf86528002d5060", "score": "0.38837063", "text": "public abstract void addLine( int index, ConversationLine line );", "title": "" }, { "docid": "4fdcb9d1592fa6e1092993a2b55096c9", "score": "0.3880911", "text": "private void initPerformanceLineChart() {\n ReactionTimeLineChartWithForecast lineChart = new ReactionTimeLineChartWithForecast(R.id.line_chart_performance, activity);\n\n if (self != null) {\n lineChart.addObserver(self);\n }\n\n }", "title": "" }, { "docid": "3a990d16efc2e53d81e92b84b054727f", "score": "0.3880903", "text": "@Override\r\n\tpublic boolean isDynamic() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "bed04933ebedc70d770c95f80d1f7c7c", "score": "0.3875106", "text": "private void drawGoalLines(Canvas c, int graphHeight, int base, int topline){\n\t\tPaint incPaint = new Paint();\n\t\tincPaint.setColor(colorGreen);\n\t\tincPaint.setStrokeWidth(2);\n\t\t\n\t\tPaint decPaint = new Paint();\n\t\tdecPaint.setColor(colorOrange);\n\t\tdecPaint.setStrokeWidth(2);\n\t\t\n\t\tint startLineX = 40;\n\t\tint endLineX = 100;\n\t\t\n\t\tBitmap incArrow = BitmapFactory.decodeResource(getResources(), R.drawable.cart_increase);\n\t\tBitmap decArrow = BitmapFactory.decodeResource(getResources(), R.drawable.cart_decrease);\n\t\tint bitmapXSpacing = 4;\n\t\tint bitmapYA = 2;\n\t\tint bitmapYB = 18;\n\t\tint minHeight = base - _cap;\n\t\t\n\t\tfor(int i=0; i<reduced.length; i++){\n\t\t\tint spacing = 180*i;\n\t\t\t\n\t\t\tint yPos = base - Math.round(goals.get(reduced[i]) * (float) graphHeight); \n\t\t\tint barHeight = base - (Math.round(ratios.get(reduced[i]) * (float) graphHeight));\n\t\t\n\t\t\t\n\t\t\t//special case numbers for the bad stuff, always set to neg\n\t\t\t//sugar=>5 || sodium=>10 || saturated fat=>19 || cholesterol=>20\n\t\t\tif(i!=5 && i!=10 && i!=19 && i!=20){\n\t\t\t\tif(yPos < minHeight ) {\n\t\t\t\t\t//don't draw an arrow for these, because they are exceeding already\n\t\t\t\t\tyPos = minHeight;\n\t\t\t\t\tc.drawLine(startLineX + spacing, yPos, endLineX + spacing, yPos, incPaint);\n\t\t\t\t} else if ( yPos > minHeight && yPos < (base - 2)){\n\t\t\t\t\t//otherwise, draw an arrow and the line\t\t\n\t\t\t\t\tc.drawLine(startLineX + spacing, yPos, endLineX + spacing, yPos, incPaint);\n\t\t\t\t\tif(yPos < barHeight) {\n\t\t\t\t\t\tc.drawBitmap(incArrow, startLineX + bitmapXSpacing +spacing, yPos - bitmapYB, null);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// draw the arrow on top of the bar to encourage increase only if the\n\t\t\t\t\t\t// bar is below the cap height\n\t\t\t\t\t\tc.drawBitmap(incArrow, startLineX + bitmapXSpacing + spacing, barHeight - bitmapYB, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(yPos < minHeight ) {\n\t\t\t\t\tyPos = minHeight;\n\t\t\t\t\tc.drawLine(startLineX + spacing, yPos, endLineX + spacing, yPos, decPaint);\n\t\t\t\t\tc.drawBitmap(decArrow, startLineX + bitmapXSpacing +spacing, yPos + bitmapYA, null);\n\t\t\t\t} else if ( yPos > minHeight && yPos < (base - 2)){\n\t\t\t\t\t//otherwise, draw an arrow and the line\n\t\t\t\t\tc.drawLine(startLineX + spacing, yPos, endLineX + spacing, yPos, decPaint);\n\t\t\t\t\t\n\t\t\t\t\tif(yPos < barHeight) {\n\t\t\t\t\t\tc.drawBitmap(decArrow, startLineX + bitmapXSpacing +spacing, yPos - bitmapYB, null);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// draw the arrow on top of the bar to encourage increase only if the\n\t\t\t\t\t\t// bar is below the cap height\n\t\t\t\t\t\tc.drawBitmap(decArrow, startLineX + bitmapXSpacing + spacing, barHeight - bitmapYB, null);\n\t\t\t\t\t}\n\t\t\t\t} \t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2f0c1cdb77502f56919115d1d9fecaa2", "score": "0.38739207", "text": "public DotaGcmessagesServer.CMsgGameChatLog.CChatLine.Builder addLinesBuilder() {\n return getLinesFieldBuilder().addBuilder(\n DotaGcmessagesServer.CMsgGameChatLog.CChatLine.getDefaultInstance());\n }", "title": "" }, { "docid": "d81a9f8d2c569b33c6c01853232dfec7", "score": "0.38731375", "text": "public io.envoyproxy.envoy.admin.v3.ListenersConfigDump.DynamicListener.Builder addDynamicListenersBuilder() {\n return getDynamicListenersFieldBuilder().addBuilder(\n io.envoyproxy.envoy.admin.v3.ListenersConfigDump.DynamicListener.getDefaultInstance());\n }", "title": "" }, { "docid": "e6e736f56c53d91759dca60c1c0f6ee7", "score": "0.3870932", "text": "public void addEntries() {\n Log.i(\"Timestep value\", Integer.toString(timeStep));\n predictionSeries.appendData(new DataPoint(timeStep,prediction), true, 1000);\n measurementSeries.appendData(new DataPoint(timeStep, measurement ), true, 1000);\n estimateSeries.appendData(new DataPoint(timeStep, estimate), true, 1000);\n }", "title": "" }, { "docid": "b32f4c4564c55b07b60fe03375a3a1dc", "score": "0.38705915", "text": "ILineTracker createLineTracker(Object element);", "title": "" }, { "docid": "8d01b40b4ac6e203b5b13e8fb39153fb", "score": "0.38670725", "text": "@ApiModelProperty(required = true, value = \"An array of text lines.\")\n public List<TextLine> getLines() {\n return lines;\n }", "title": "" }, { "docid": "9f51e5d73b34a1e6f59cf6c769056372", "score": "0.38664576", "text": "@Override\n public void makeLined(int numLines) {\n lined = true;\n this.numLines = numLines;\n }", "title": "" }, { "docid": "d16e88e49d17273cc042b01412a22dec", "score": "0.38459778", "text": "private void drawline(LatLng endingLocation)\n\t{\n\t\tArrayList<LatLng> directionPoint;\n\t\t\n\t\tPolylineOptions rectLine;\n\t\tendCoordinate = endingLocation;\n\t\n\t\ttry \n\t\t{\n\t\t\tdoc = driving.getDocument(startCoordinate, endCoordinate,\n\t\t\t\t\tDriving.MODE_DRIVING);\n\t\t}\n\n\t\tcatch (Exception e) \n\t\t{\n\t\t\tLog.i(\"Exception is \", \"\"+e);\n\t\t}\n\n\t\tif (doc != null)\n\n\t\t{\n\t\t\tdirectionPoint = driving.getDirection(doc);\n\t\t\trectLine = new PolylineOptions().width(10).color(Color.GRAY);\n\n\t\t\tfor (int i = 0; i < directionPoint.size(); i++)\n\t\t\t{\n\t\t\t\trectLine.add(directionPoint.get(i));\n\t\t\t}\n\n\t\t\tgoogleMap.addPolyline(rectLine);\n\t\t}\n\t}", "title": "" }, { "docid": "9309b430d7adf7bb5a2a5ba48e1faff1", "score": "0.38444743", "text": "public void addToItemLine(entity.AssessmentItem element) {\n __getInternalInterface().addArrayElement(ITEMLINE_PROP.get(), element);\n }", "title": "" }, { "docid": "d1aa0456632b5dabb021739a118cb08e", "score": "0.38436547", "text": "private void showLine(int lineNumber){\n switch (lineNumber){\n\n case 1:\n stationsList=LinesUtilities.getLine1();\n textViewStations.setBackgroundResource(R.drawable.line1_coloers);\n showHandling(stationsList);\n break;\n case 2:\n stationsList=LinesUtilities.getLine2();\n textViewStations.setBackgroundResource(R.drawable.line2_colors);\n showHandling(stationsList);\n break;\n case 3:\n stationsList=LinesUtilities.getLine3();\n textViewStations.setBackgroundResource(R.drawable.line3_colors);\n\n showHandling(stationsList);\n break;\n }\n\n\n }", "title": "" }, { "docid": "5ed094b506b8b3b05c9aa2158bd207d1", "score": "0.38415128", "text": "@Override\n protected void onDraw(Canvas canvas) {\n\n int height = getHeight();\n int line_height = getLineHeight();\n\n int count = height / line_height;\n\n if (getLineCount() > count)\n count = getLineCount();//for long text with scrolling\n\n Rect r = mRect;\n\n Paint paint = mPaint;\n // paint.setStrokeWidth();\n int baseline = getLineBounds(0, r);//first line\n\n for (int i = 0; i < count; i++) {\n\n canvas.drawLine(r.left, baseline + 1, r.right, baseline + 1, paint);\n baseline += getLineHeight();//next line\n }\n\n super.onDraw(canvas);\n }", "title": "" }, { "docid": "779f5f77f05c7589056565aef8c46529", "score": "0.38284612", "text": "private void drawThe(List<Integer> polyline, Graphics2D g) {\n GeneralPath path = new GeneralPath();\n Point2D.Double start = starPoints.get(polyline.get(0));\n path.moveTo(start.x, start.y);\n for(Integer index : polyline.subList(1, polyline.size())) {\n Point2D.Double point = starPoints.get(index);\n path.lineTo(point.x, point.y);\n //find cases where it's a line that crosses the whole chart\n /*\n if (Math.abs(point.x - start.x) > 2500) {\n System.out.println(\"CROSSES THE WHOLE CHART>2500. Poly: \" + polyline + \" index:\" + index + \" point.x:\" + point.x + \" start.x:\" + start.x);\n }\n */\n }\n Stroke orig = g.getStroke();\n //print seems to be finer than screen!\n /*\n * 0.00 is too thin (0 means the minimum possible, to make a mark)\n * 0.25 or 0.35 seem about right\n * let's take 0.25; it matches Edmund Mag 5\n * 1.00 is too thick\n */\n g.setStroke(new BasicStroke(ChartUtil.STROKE_WIDTH_CONSTELLATION_LINE)); \n g.draw(path);\n g.setStroke(orig);\n }", "title": "" }, { "docid": "ab19b5f7d48fbbe6c0635ac0a9c43aeb", "score": "0.38273296", "text": "@Override\n\tpublic boolean isDynamic() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "3b9df6b5a48107c6d477a0e36b282c54", "score": "0.38265708", "text": "private void generateLineData(int color) {\n mChart.cancelDataAnimation();\n\n // Modify data targets\n Line line = lineData.getLines().get(0);// For this example there is always only one line.\n line.setColor(color);\n int count = 0;\n int index = 0;\n for (PointValue value : line.getValues()) {\n // Change target only for Y value.\n float num = mDataList.get(index++);\n count += num;\n value.setTarget(value.getX(), num);\n }\n mOrderCountTv.setText(\"总配送数:\" + count + \"份\");\n // Start new data animation with 300ms duration;\n mChart.startDataAnimation(300);\n Log.d(\"htout\", \"generate\");\n }", "title": "" }, { "docid": "da6e4358ae8b8ad6cbcba87c66970e1e", "score": "0.38244545", "text": "com.cdiscount.www.SupplyOrderReportLine getSupplyOrderReportLineArray(int i);", "title": "" }, { "docid": "80a008b12d9bc03f860955dbaa1899b3", "score": "0.38149747", "text": "private void loadLineChart()\n {\n\n List<Entry> userCredits = new ArrayList<Entry>();\n List<Entry> standardCredits = new ArrayList<Entry>();\n\n UserData dataset = controller.getUserData(); //gets all User Data\n\n\n Entry semester = new Entry(0f, 0);\n userCredits.add(semester);\n Entry normalCredits = new Entry(0f, 0);\n standardCredits.add(normalCredits);\n\n int normalCreditsPerSemester = 0;\n int allCredits = 0;\n\n List<Lecture> pieDataset = controller.getAllLecturesWithGrade(dataset.getCourseId()); //gets List with All Courses from User\n\n\n for(int i = 0; i < dataset.getSemester(); i++)\n {\n\n\n for(Lecture l : pieDataset)\n {\n if(l.getSemesterPassed() == dataset.getCurrentSemesterId()-dataset.getSemester()+i+1)\n {\n if(l.getGrade() <= 4.0) {\n allCredits += l.getCredits();\n }\n }\n\n }\n\n semester = new Entry(i+1, allCredits);\n userCredits.add(semester);\n\n normalCreditsPerSemester += 30;\n normalCredits = new Entry(i+1,normalCreditsPerSemester);\n standardCredits.add(normalCredits);\n }\n\n\n\n LineDataSet setComp1 = new LineDataSet(userCredits, \"Deine CP\");\n setComp1.setAxisDependency(YAxis.AxisDependency.LEFT);\n LineDataSet setComp2 = new LineDataSet(standardCredits, \"Reguläre CP\");\n setComp2.setAxisDependency(YAxis.AxisDependency.LEFT);\n\n int color1 = ContextCompat.getColor(getActivity(), R.color.colorAccent);\n int color2 = ContextCompat.getColor(getActivity(), R.color.colorPrimary);\n\n setComp1.setColor(color1);\n setComp2.setColor(color2);\n\n lineView.setTouchEnabled(false);\n lineView.setNoDataText(\"Noch keine bestandene Prüfung\");\n\n\n\n // use the interface ILineDataSet\n List<ILineDataSet> dataSets = new ArrayList<ILineDataSet>();\n dataSets.add(setComp1);\n dataSets.add(setComp2);\n\n //Set description\n Description description = new Description();\n description.setText(\" \");\n lineView.setDescription(description);\n\n\n //Format the Axis\n String[] xAxisValues = new String[] {\"\", \"Sem. 1\", \"Sem. 2\", \"Sem. 3\", \"Sem. 4\", \"Sem. 5\", \"Sem. 6\"};\n\n XAxis xAxis = lineView.getXAxis();\n xAxis.setGranularity(1.0f);\n xAxis.setGranularityEnabled(true);\n xAxis.setValueFormatter(new XAxisValueFormatterWithStringArray(xAxisValues));\n\n YAxis yAxisLeft = lineView.getAxisLeft();\n YAxis yAxisRight = lineView.getAxisRight();\n\n yAxisRight.setGranularity(30);\n yAxisRight.setGranularityEnabled(true);\n yAxisLeft.setGranularity(30);\n yAxisLeft.setGranularityEnabled(true); // Required to enable granularity\n\n\n LineData data = new LineData(dataSets);\n\n if(allCredits > 0)\n {\n lineView.setData(data);\n\n }\n lineView.invalidate(); // refresh\n }", "title": "" }, { "docid": "ac2eebb78b995864e57a70499e9db326", "score": "0.3811556", "text": "com.google.ads.googleads.v14.common.AdTextAssetOrBuilder getHeadlinesOrBuilder(\n int index);", "title": "" }, { "docid": "90d15c0f1a04eed37a077dd518f8742a", "score": "0.38103592", "text": "x0201.oecdStandardAuditFileTaxPT1.SourceDocumentsDocument.SourceDocuments.SalesInvoices.Invoice.Line addNewLine();", "title": "" }, { "docid": "7150cb57ca9cca6c48d4b2561ffd9e94", "score": "0.38084167", "text": "public void drawBottomLine(Canvas canvas) {\n if (this.chartData != null) {\n int i = this.transitionMode;\n float f = 1.0f;\n if (i == 2) {\n f = 1.0f - this.transitionParams.progress;\n } else if (i == 1) {\n f = this.transitionParams.progress;\n } else if (i == 3) {\n f = this.transitionParams.progress;\n }\n this.linePaint.setAlpha((int) (((float) this.hintLinePaintAlpha) * f));\n this.signaturePaint.setAlpha((int) (this.signaturePaintAlpha * 255.0f * f));\n int textSize = (int) (((float) SIGNATURE_TEXT_HEIGHT) - this.signaturePaint.getTextSize());\n int measuredHeight = (getMeasuredHeight() - this.chartBottom) - 1;\n float f2 = (float) measuredHeight;\n canvas.drawLine(this.chartStart, f2, this.chartEnd, f2, this.linePaint);\n if (!this.useMinHeight) {\n canvas.drawText(\"0\", HORIZONTAL_PADDING, (float) (measuredHeight - textSize), this.signaturePaint);\n }\n }\n }", "title": "" }, { "docid": "d23d63a87238e88f5246f3ce6e660e8a", "score": "0.38028908", "text": "public void createLine(final AFPLineDataInfo lineDataInfo) {\n getPresentationTextObject().createLineData(lineDataInfo);\n }", "title": "" }, { "docid": "ea18cc61f8cdf4d6b28e12973ae80439", "score": "0.3799255", "text": "public void enableTimeline(boolean v) {\n usedConfigs.put(\"enableTimeline\", String.valueOf(v));\n }", "title": "" }, { "docid": "3a563e0e65f6991c7c4517a1b10b0288", "score": "0.3794766", "text": "com.google.cloud.video.transcoder.v1.AdBreak getAdBreaks(int index);", "title": "" }, { "docid": "6d1498c5d6aa907b8ce95d51df7320f0", "score": "0.37830234", "text": "@Override\n public void useLineDrawingMode() {\n useLineDrawingMode = true;\n }", "title": "" }, { "docid": "0a6807ae30f151966b1c0601c817c3b8", "score": "0.37828702", "text": "public Grid setDrawBottomLine(Boolean drawBottomLine) {\n if (jsBase == null) {\n this.drawBottomLine = drawBottomLine;\n } else {\n this.drawBottomLine = drawBottomLine;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".drawBottomLine(%b)\", drawBottomLine));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".drawBottomLine(%b);\", drawBottomLine));\n js.setLength(0);\n }\n }\n return this;\n }", "title": "" }, { "docid": "3470b43710c9f1a59f4d0702711a2d00", "score": "0.37826392", "text": "private void addItemInDynamicMode(StaggeredGridViewItem item) {\n\n int count=mGridViewItems.size();\n\n if (count>showedItemCount) {\n for (int i=showedItemCount; i<count; i++) {\n mColumnIndexToAdd=0;\n int minHeight=mItemsHeight.get(0);\n for (int j=1; j<mColumns; j++) {\n if (minHeight>mItemsHeight.get(j)) {\n minHeight=mItemsHeight.get(j);\n mColumnIndexToAdd=j;\n }\n }\n\n addToLayout(mGridViewItems.get(i), mColumnIndexToAdd);\n }\n showedItemCount=count;\n }\n }", "title": "" }, { "docid": "891345266f2e32b0b6716bc7bcc7fa73", "score": "0.378192", "text": "public boolean isDynamic() {\n return dynamic;\n }", "title": "" }, { "docid": "5d790b191e967ff7db350acdc11dab2a", "score": "0.3780705", "text": "private void drawLine() {\r\n\t\tfinal int x = DrawingInstructor.nextX(this.getWidth()/2);\r\n\t\tfinal int y = DrawingInstructor.nextY(this.getHeight()/2);\r\n\t\tsetColor(DrawingInstructor.nextColor());\r\n\t\tfinal int sketchboardX = translateX(x);\r\n\t\tfinal int sketchboardY = translateY(y);\r\n\t\tif(DrawingInstructor.nextColor() == GAP){\r\n\t\t\tSystem.out.println(\"MainX: \" + x);\r\n\t\t\tSystem.out.println(\"MainY: \" + y);\r\n\t\t}\r\n\t\tif (isVisible(sketchboardX, sketchboardY)) {\t\r\n\t\t\tgraphics.drawLine(lastX, lastY, sketchboardX, sketchboardY); // draw to here\r\n\t\t}\r\n\t\tlastX = sketchboardX; // next line starts here\r\n\t\tlastY = sketchboardY;\t\t\r\n\t}", "title": "" }, { "docid": "b9acbb852741042c3943f08b3f6d4948", "score": "0.37747768", "text": "public void setLineVisible(boolean ctrl)\n\t{\n\t\tinformPreUpdate();\n\t\tlineIsVisible = ctrl;\n\t\tinformPostUpdate();\n\t}", "title": "" }, { "docid": "8613b709cd073b6dac96f8be666548ff", "score": "0.3768582", "text": "private void displayAllNextOptions(ArrayList<Integer> nextLines) {\n for (Integer aNextLineId : nextLines) {\n Line aNextLine = getLine(aNextLineId);\n aNextLine.ExecuteDry();\n }\n }", "title": "" }, { "docid": "2fd961a1a6eeaefdb148c704da74001d", "score": "0.3767401", "text": "public Builder setDynamicListeners(\n int index, io.envoyproxy.envoy.admin.v3.ListenersConfigDump.DynamicListener value) {\n if (dynamicListenersBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDynamicListenersIsMutable();\n dynamicListeners_.set(index, value);\n onChanged();\n } else {\n dynamicListenersBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "5f48680d657b26f6d48877a6abaa09ea", "score": "0.3765957", "text": "public void setDynamicLayout(boolean dynamic) throws HeadlessException {\n lockAWT();\n try {\n bDynamicLayoutSet = dynamic;\n } finally {\n unlockAWT();\n }\n }", "title": "" }, { "docid": "caa2cfe51b71bf146f483fef69943e32", "score": "0.3751311", "text": "public /*virtual*/ void LineDown()\r\n {\r\n SetVerticalOffsetImpl(VerticalOffset + ((Orientation == Orientation.Vertical && !IsPixelBased) ? 1.0 : ScrollViewer._scrollLineDelta)); \r\n SetAnchorInformation(false /*isHorizontalOffset*/);\r\n }", "title": "" }, { "docid": "677cf867970075f31cffb8c28decfdbf", "score": "0.37502757", "text": "public void setNumberOfLines(int n) { this.numberOfLines = n; }", "title": "" }, { "docid": "c41a792aca5fae5286cfef56c1cc25e3", "score": "0.37314713", "text": "public void appendLine(String line) {\r\n\t\tif (!isOn) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\treportContent.append(line);\r\n\t\treportContent.append(\"\\n\");\r\n\t\tif (writeToConsole) {\r\n\t\t\tSystem.out.println(line);\r\n\t\t}\r\n\t\tcontentLineCounter++;\r\n\t\tif (maxLinesPerFile > 0 && contentLineCounter >= maxLinesPerFile) {\r\n\t\t\ttry {\r\n\t\t\t\twriteReport(false);\r\n\t\t\t\tinitNewFile();\r\n\t\t\t\tif (StringUtils.isNotBlank(headerContent)) {\r\n\t\t\t\t\tthis.appendLine(headerContent);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"Can't write current content to create a new file.\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "85b3c2e2f3a7516fbda59fbb375b6f13", "score": "0.3727057", "text": "public io.envoyproxy.envoy.admin.v3.ListenersConfigDump.DynamicListener.Builder addDynamicListenersBuilder(\n int index) {\n return getDynamicListenersFieldBuilder().addBuilder(\n index, io.envoyproxy.envoy.admin.v3.ListenersConfigDump.DynamicListener.getDefaultInstance());\n }", "title": "" }, { "docid": "6fe9411854c48aeaf31b2c9be71ff585", "score": "0.37179607", "text": "public void drawHorizontalLines(android.graphics.Canvas r12, org.telegram.ui.Charts.view_data.ChartHorizontalLinesData r13) {\n /*\n r11 = this;\n int[] r0 = r13.values\n int r1 = r0.length\n r2 = 2\n r3 = 1065353216(0x3var_, float:1.0)\n r4 = 1\n if (r1 <= r2) goto L_0x0025\n r5 = r0[r4]\n r6 = 0\n r0 = r0[r6]\n int r5 = r5 - r0\n float r0 = (float) r5\n float r5 = r11.currentMaxHeight\n float r6 = r11.currentMinHeight\n float r5 = r5 - r6\n float r0 = r0 / r5\n double r5 = (double) r0\n r7 = 4591870180066957722(0x3fb999999999999a, double:0.1)\n int r9 = (r5 > r7 ? 1 : (r5 == r7 ? 0 : -1))\n if (r9 >= 0) goto L_0x0025\n r5 = 1036831949(0x3dcccccd, float:0.1)\n float r0 = r0 / r5\n goto L_0x0027\n L_0x0025:\n r0 = 1065353216(0x3var_, float:1.0)\n L_0x0027:\n int r5 = r11.transitionMode\n if (r5 != r2) goto L_0x0031\n org.telegram.ui.Charts.view_data.TransitionParams r2 = r11.transitionParams\n float r2 = r2.progress\n float r3 = r3 - r2\n goto L_0x003f\n L_0x0031:\n if (r5 != r4) goto L_0x0038\n org.telegram.ui.Charts.view_data.TransitionParams r2 = r11.transitionParams\n float r3 = r2.progress\n goto L_0x003f\n L_0x0038:\n r2 = 3\n if (r5 != r2) goto L_0x003f\n org.telegram.ui.Charts.view_data.TransitionParams r2 = r11.transitionParams\n float r3 = r2.progress\n L_0x003f:\n android.graphics.Paint r2 = r11.linePaint\n int r5 = r13.alpha\n float r5 = (float) r5\n int r6 = r11.hintLinePaintAlpha\n float r6 = (float) r6\n r7 = 1132396544(0x437var_, float:255.0)\n float r6 = r6 / r7\n float r5 = r5 * r6\n float r5 = r5 * r3\n float r5 = r5 * r0\n int r5 = (int) r5\n r2.setAlpha(r5)\n android.graphics.Paint r2 = r11.signaturePaint\n int r5 = r13.alpha\n float r5 = (float) r5\n float r6 = r11.signaturePaintAlpha\n float r5 = r5 * r6\n float r5 = r5 * r3\n float r5 = r5 * r0\n int r0 = (int) r5\n r2.setAlpha(r0)\n int r0 = r11.getMeasuredHeight()\n int r2 = r11.chartBottom\n int r0 = r0 - r2\n int r2 = SIGNATURE_TEXT_HEIGHT\n int r0 = r0 - r2\n boolean r2 = r11.useMinHeight\n r2 = r2 ^ r4\n L_0x0072:\n if (r2 >= r1) goto L_0x009d\n int r3 = r11.getMeasuredHeight()\n int r5 = r11.chartBottom\n int r3 = r3 - r5\n float r3 = (float) r3\n float r5 = (float) r0\n int[] r6 = r13.values\n r6 = r6[r2]\n float r6 = (float) r6\n float r7 = r11.currentMinHeight\n float r6 = r6 - r7\n float r8 = r11.currentMaxHeight\n float r8 = r8 - r7\n float r6 = r6 / r8\n float r5 = r5 * r6\n float r3 = r3 - r5\n int r3 = (int) r3\n float r6 = r11.chartStart\n float r7 = (float) r3\n float r8 = r11.chartEnd\n int r3 = r3 + r4\n float r9 = (float) r3\n android.graphics.Paint r10 = r11.linePaint\n r5 = r12\n r5.drawRect(r6, r7, r8, r9, r10)\n int r2 = r2 + 1\n goto L_0x0072\n L_0x009d:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.Charts.BaseChartView.drawHorizontalLines(android.graphics.Canvas, org.telegram.ui.Charts.view_data.ChartHorizontalLinesData):void\");\n }", "title": "" }, { "docid": "bbf9f4bf833fca480348eb04cb0618a0", "score": "0.37168387", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isIncludeLineItems() {\n return (java.lang.Boolean)__getInternalInterface().getFieldValue(INCLUDELINEITEMS_PROP.get());\n }", "title": "" } ]
08abbc62bb3efe436172e9a5f6ec513b
Handle updating the time periodically in interactive mode.
[ { "docid": "f33247dc1b30e939d55c6d66970c9a6d", "score": "0.6413278", "text": "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS\n - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "title": "" } ]
[ { "docid": "0a2ace9bf709e56d3b0ae98befb89f6e", "score": "0.6956422", "text": "@Override\n\tpublic void run() {\n\t\tThread thisThread = Thread.currentThread();\n\t\t\n\t\twhile( updateTime == thisThread ) {\n\t\t\tthis.time = new GregorianCalendar();\n\t\t\tString hour = String.valueOf(time.get(Calendar.HOUR));\n\t\t\tString min = String.valueOf(time.get(Calendar.MINUTE));\n\t\t\tString sec = String.valueOf(time.get(Calendar.SECOND));\n\t\t\tint meridian = time.get(Calendar.AM_PM);\n\t\t\tString am_pm = \"PM\";\n\t\t\tif(meridian == 0)\n\t\t\t\tam_pm = \"AM\";\n\t\t\t\n\t\t\t//System.out.println(hour + \":\" + min + \":\" + sec);\n\t\t\tthis.timeText.setText(hour + \":\" + min + \":\" + sec + \" \" + am_pm);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "53efe48b429e9f7cdb9bb240aa5c9e3b", "score": "0.687424", "text": "public void update( long time )\n {\n\n }", "title": "" }, { "docid": "6fc8122712cf1e126e4785f641e0c02f", "score": "0.6858943", "text": "@Override\n public void timeChanged(TimeEvent evt) {\n// System.out.println(\"timeChanged\");\n update();\n }", "title": "" }, { "docid": "a43eacf5cd9798b4b469d5c0cad8437b", "score": "0.68342847", "text": "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = mInteractiveUpdateRateMs - (timeMs % mInteractiveUpdateRateMs);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "title": "" }, { "docid": "1840ec6fee6f42e9693e546be0a3e11d", "score": "0.6829277", "text": "public void updateTime()\n\t{\n\t\tlastTimeTouched = Calendar.getInstance().getTimeInMillis()/1000;\n\t}", "title": "" }, { "docid": "1840ec6fee6f42e9693e546be0a3e11d", "score": "0.6829277", "text": "public void updateTime()\n\t{\n\t\tlastTimeTouched = Calendar.getInstance().getTimeInMillis()/1000;\n\t}", "title": "" }, { "docid": "1a696b8d80c29faa79a7c4a36f992d33", "score": "0.6822073", "text": "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = mInteractiveUpdateRateMs\n - (timeMs % mInteractiveUpdateRateMs);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "title": "" }, { "docid": "880cde3af376369474953be15c1554a2", "score": "0.6734828", "text": "private void updateTime() {\r\n //throw new UnsupportedOperationException(\"Not supported yet.\");\r\n //To change body of generated methods, choose Tools | Templates.\r\n _now.setTimeInMillis(System.currentTimeMillis());\r\n \r\n }", "title": "" }, { "docid": "f93f9fa3bc243044e4fca6477d905c9c", "score": "0.67074615", "text": "public void updateTime() {\n this.Time = this.NextEvent + this.NextSCost;\n }", "title": "" }, { "docid": "a06eceed060ea4a9fa6da6350eba5325", "score": "0.65365714", "text": "public void updateTime() {\n\n //Menaikkan nilai detik.\n second++;\n\n //jika jumlah detik lebih besar atau sama dengan 60, inkremen menit dan set detik jadi 0\n if (second >= 60) {\n second = 0;\n minute++;\n }\n\n //jika jumlah menit lebih besar atau sama dengan 60, inkremen jam dan set menit jadi 0\n if(minute >= 60) {\n hour++;\n minute = 0;\n }\n }", "title": "" }, { "docid": "260cc4153782e00880a08e6d2decfb79", "score": "0.6527236", "text": "public void run() {\n\t\t\t\ttimeField.setText(Long.toString((System.currentTimeMillis() - startTime) / 1000));\r\n\t\t\t}", "title": "" }, { "docid": "8c7f94517509848cdc79a7f1e2097688", "score": "0.6520815", "text": "public void refresh() {\n\t\t// System.out.println(\"Time: \" + getTime());\n\t\tif (time == 2300) {\n\t\t\tsetTime(0);\n\t\t} else {\n\t\t\tsetTime(time + 100);\n\t\t}\n\t}", "title": "" }, { "docid": "0ed064cc00105fbe72ff1e3e3f1d3aa9", "score": "0.6504746", "text": "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS\n - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n updateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "title": "" }, { "docid": "edc86f82bb249deecce29c90c904f51c", "score": "0.648868", "text": "public void updateTime() {\n long end = System.currentTimeMillis();\n long frameTime;\n if((end - runTime) <50) {\n waiting(50 -(int)(end - runTime));\n frameTime = 50;\n }\n else {\n frameTime = end - runTime;\n }\n if(paused == false && ingame == true) {\n totalRuntime += (int)frameTime;\n }\n long total = totalRuntime/1000;\n int minutes = 0;\n String seconds;\n while(total>59) {\n minutes += 1;\n total -= 60;\n }\n seconds = Long.toString(total);\n if(total < 10) {\n seconds = \"0\" + seconds ;\n }\n board.getStats().setTime(minutes + \":\" + seconds);\n }", "title": "" }, { "docid": "b0b1c89ce3243ee2650b054a6521e607", "score": "0.6474812", "text": "private void setTime() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n while (true) {\n Date date = new Date();\n String currentdate = new SimpleDateFormat(\"hh:mm:aa\").format(date);\n HOME_TIME.setText(currentdate);\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ex) {\n\n }\n }\n }\n }).start();\n }", "title": "" }, { "docid": "b0b1c89ce3243ee2650b054a6521e607", "score": "0.6474812", "text": "private void setTime() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n while (true) {\n Date date = new Date();\n String currentdate = new SimpleDateFormat(\"hh:mm:aa\").format(date);\n HOME_TIME.setText(currentdate);\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ex) {\n\n }\n }\n }\n }).start();\n }", "title": "" }, { "docid": "d52ec02999cc759d76bbf8a8def52a6b", "score": "0.64601237", "text": "public void updateTime() {\n String instantPatten = accessingChanges.gettPatten();\n\n //updating time every 1 second / 1000 millis\n SimpleDateFormat instantSimpleDateFormat = new SimpleDateFormat(\n instantPatten, Locale.getDefault());\n\n String instantTime = instantSimpleDateFormat.format(new Date());\n\n if (digitalTimeTextView != null) {\n\n digitalTimeTextView.setText(instantTime);\n\n }\n\n\n //Log.d(TAG, \".....................Nothing here\");\n\n }", "title": "" }, { "docid": "c08869a8716cb5dec8e936cf6c2c0e19", "score": "0.64598435", "text": "public void update(long timePassed)\r\n {\n }", "title": "" }, { "docid": "6a29781df129b0df0c72fb826d7e7b34", "score": "0.64517087", "text": "public void update() {\n long millisSinceLastUpdate = System.currentTimeMillis() - lastSecondIncrement;\n\n while (millisSinceLastUpdate > 1000) {\n millisSinceLastUpdate -= 1000;\n RTCReg[SECONDS]++;\n if (RTCReg[SECONDS] == 60) {\n RTCReg[MINUTES]++;\n\tRTCReg[SECONDS] = 0;\n\tif (RTCReg[MINUTES] == 60) {\n RTCReg[HOURS]++;\n\t RTCReg[MINUTES] = 0;\n\t if (RTCReg[HOURS] == 24) {\n\t if (RTCReg[DAYS_LO] == 255) {\n RTCReg[DAYS_LO] = 0;\n\t RTCReg[DAYS_HI] = 1;\n\t } else {\n RTCReg[DAYS_LO]++;\n\t }\n\t RTCReg[HOURS] = 0;\n\t }\n\t}\n }\n lastSecondIncrement = System.currentTimeMillis();\n }\n }", "title": "" }, { "docid": "f41fbfbe4ad80707a4e3adc31394d58e", "score": "0.6427899", "text": "private void tick() {\n this.timer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n if (!isPaused) {\n view.update(beat++);\n }\n if (beat >= model.getDuration()) {\n timer.cancel();\n }\n }\n }, 0, this.model.getTempo() / 1000);\n }", "title": "" }, { "docid": "adea7484296e1109c09178d52a85e874", "score": "0.64173377", "text": "public abstract void update(double dt);", "title": "" }, { "docid": "14821ac26f123b71e5577af49a2a4d8f", "score": "0.63814473", "text": "protected void updateTimer()\n {\n if (this.timerIsRunning)\n setTimer(getCurrentTime() - this.startTime);\n }", "title": "" }, { "docid": "f180db254e583fd8220db09225811ef1", "score": "0.63805616", "text": "public void timeChangedExternally( double t )\n {\n // TODO why can't we use t?\n // turn off the 'now' button\n if (! updatingToNow)\n if (Math.abs( t - ChartWheel.currentJD() ) > 2/1440.0)\n cbNow.setSelected( false );\n // update time display from chart\n setTimeInternal( target.getTime() );\n }", "title": "" }, { "docid": "63e4b1865c6f4d0b5163de11c0154cb6", "score": "0.63306344", "text": "public void tick() {\r\n if (isMilitary) {\r\n if (hour >= 23) {\r\n hour = 0;\r\n } else {\r\n hour++;\r\n }\r\n } else {\r\n if (hour >= 12) {\r\n hour = 1;\r\n } else {\r\n hour++;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "a2a46b40d958c9698c2f0b0164c955eb", "score": "0.63158727", "text": "@Override\r\n\tpublic void update(long timePassed) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5ed03b7bf286090650c08ec0ef2929eb", "score": "0.62547195", "text": "public void updateTime(int arg0, Time arg1) {\n\r\n\t}", "title": "" }, { "docid": "fd0639a9c7d38f81dbb7ea9b3c883a32", "score": "0.62538195", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n SmartDashboard.putString(\"Match Time: \", convertTimeToDMS());\n CommandBase.displayValues(); \n }", "title": "" }, { "docid": "a8e7ac93ae6277eb52245a78b8d14a3c", "score": "0.62466156", "text": "private void handleTimeChange() {\n if(timeIsChanging()){\n handleAlarmMatch();\n }\n }", "title": "" }, { "docid": "c18ec10a68b8141106bb33f251544b28", "score": "0.62363", "text": "private void setTimerTime() {\r\n time += 1;\r\n }", "title": "" }, { "docid": "0db4941cb5c06feeb397f79cf00ca42c", "score": "0.6224097", "text": "public interface TimeChangeListener {\n public void onTick(); //Notify based on interval time\n\n public long getInterval(); //Time that you want to get notified. Default is 1 second.\n}", "title": "" }, { "docid": "3a1d02a74ee7358a25af4f46f33fb63f", "score": "0.62156886", "text": "public void update()\r\n\t{\r\n\t\tif ( this._disabled ) return;\r\n\t\tif ( this._inProtectedZone ) return;\r\n\t\tlong currentTime = ( System.currentTimeMillis() / 1000 );\r\n\t\tint inc = ( int ) ( currentTime - this._lastUpdated );\r\n\t\tthis._timeElapsed += inc;\r\n\t\tthis._lastUpdated = ( System.currentTimeMillis() / 1000 );\r\n\t}", "title": "" }, { "docid": "7809356cab05516579f3f058371dd8bd", "score": "0.62061757", "text": "private void tick( double dt )\n {\n slider.tick( dt );\n if (! editing)\n {\n Date current;\n if (cbNow.isSelected())\n {\n updatingToNow = true;\n // set current time\n current = new Date();\n }\n else if (slider.getValue() != 0)\n {\n // get rate of change\n double rate = slider.getValue() * 86400;\n double change = dt * rate;\n // apply changes\n current = getTime();\n current.setTime( (long)(current.getTime() + change * 1000) );\n }\n else\n return;\n // update time based on change\n if (getTarget() != null)\n getTarget().setTime( current );\n setTimeInternal( current );\n // check whether target time has changed, and update controls\n Date newSnapshot = getTime();\n if (snapshot != null && Math.abs( snapshot.getTime() - newSnapshot.getTime()) > 5000)\n setTimeInternal( newSnapshot );\n snapshot = newSnapshot;\n updatingToNow = false;\n }\n }", "title": "" }, { "docid": "de96452730f85cee70584e408e685a5d", "score": "0.61982214", "text": "public void update() {\n Calendar date = Calendar.getInstance();\n hour = date.get(Calendar.HOUR_OF_DAY);\n minute = date.get(Calendar.MINUTE);\n oldSecond = second;\n second = date.get(Calendar.SECOND);\n if (oldSecond != second) {\n setChanged();\n notifyObservers();\n \n String hoursString = Integer.toString(hour);\n String minutesString = Integer.toString(minute);\n String secondsString = Integer.toString(second);\n \n /**\n * Formats the current time so it can be checked properly\n */\n if (hoursString.length() < 2) {\n hoursString = \"0\" + hoursString;\n }\n if (minutesString.length() < 2) {\n minutesString = \"0\" + secondsString;\n }\n if (secondsString.length() < 2) {\n secondsString = \"0\" + secondsString;\n }\n \n String time = hoursString +\":\"+minutesString+\":\"+secondsString;\n \n /**\n * Checks current time against head of queue - if they match display a pop-up declaring the alarm and remove the head of the queue.\n */\n if(!alarm.isEmpty()){\n if(alarm.head().equals(time)){\n alarm.pop();\n if(!alarm.isEmpty()){\n JOptionPane.showMessageDialog(null, \"It is \"+time+\". Next alarm is: \"+alarm.head()+\". Click view alarms to update next alarm display.\",\"Alarm\", JOptionPane.OK_OPTION); \n }else{\n JOptionPane.showMessageDialog(null, \"It is \"+time+\". There is no next alarm. Click view alarms to update next alarm display.\",\"Alarm\", JOptionPane.OK_OPTION);\n }\n } \n }\n }\n }", "title": "" }, { "docid": "d83162ee445d31cff8beabe95c24cac6", "score": "0.61892796", "text": "public void update(double dt);", "title": "" }, { "docid": "19e32f4975f91f544bd060501db4248f", "score": "0.618793", "text": "void advanceTime(double dt);", "title": "" }, { "docid": "6fdef91ba796105152c016edbb641d38", "score": "0.6170707", "text": "void updateDisplay() throws FileNotFoundException {\n Timeclass tc = new Timeclass();\n timer = new Timer(1000, tc);\n initial = System.currentTimeMillis();\n timer.start();\n }", "title": "" }, { "docid": "ad0f5035cf2d9b98cc0809a96c06d3c2", "score": "0.61700445", "text": "public void updateDisplay() {\r\n\t\tlong now = System.currentTimeMillis(); // current time in ms\r\n\t\tlong elapsed = now - update; // ms elapsed since last update\r\n\t\tremain -= elapsed; // adjust remaining time\r\n\t\tupdate = now; // remember new update time\r\n\r\n\t\t// convert remaining ms to ss format and display\r\n\t\tint sec = (int) ((remain) / 1000);\r\n\t\ttimeLabel.setText(format.format(sec));\r\n\r\n\t\t// stops the count down when it hits 0\r\n\t\tif (remain <= 0) {\r\n\t\t\tlose();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b87edf709e5a95517fc7aee067a308f6", "score": "0.6157337", "text": "protected void tick()\n {\n logicalTime++;\n }", "title": "" }, { "docid": "284f22edb8e896c490b79ea15e43ec4a", "score": "0.61487544", "text": "public void advanceTime () {\n super.advanceTime();\n spaceView.update();\n }", "title": "" }, { "docid": "ad03845a7c4b0a89d91f83f3c683452e", "score": "0.6140786", "text": "private void updateDisplayTime() {\n\t\tmTimeDisplay.setText(new StringBuilder().append(pad(mHour)).append(\":\").append(pad(mMinute)));\n\t}", "title": "" }, { "docid": "2178e8d773df17917ecf43fd3c1e37ea", "score": "0.61371595", "text": "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile(isEnabled){\r\n\t\t\t\t\t\talarmTime(hour, min);\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "title": "" }, { "docid": "1be378ffcaf512130133eaca7e0063bb", "score": "0.6129416", "text": "@Override\n\tpublic void run() {\n\t\twhile(running) {\n\t\t\tlong currentTime = System.currentTimeMillis();\n\t\t\tif(currentTime - this.lastUpdateTime >= MILLIS_PER_UPDATE) {\n\t\t\t\tJIApplication.updateAll(currentTime - this.lastUpdateTime);\n\t\t\t\tthis.lastUpdateTime = currentTime;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9a5da38fcc639815a229300c4c361e46", "score": "0.6128306", "text": "public void clock() {\n Thread clock = new Thread() {\n @Override\n public void run() {\n try {\n while (ulang == true) {\n Calendar cl = Calendar.getInstance();\n jamField.setText(\"Date/Time : \" + dateLong.format(cl.getTime()));\n sleep(1000);\n }\n } catch (InterruptedException e) {\n }\n\n }\n };\n clock.start();\n }", "title": "" }, { "docid": "b5ae59650d79f775b8817cc1cceb1d1a", "score": "0.61213654", "text": "public void updateIdolTime(int t) {\n this.IdleTime += t;\n }", "title": "" }, { "docid": "07e836c2b6ea78b2217ddcba363644e1", "score": "0.609484", "text": "private void updateElapsedTime() {\n Platform.runLater(() -> timeElapsed.setText(timeFormatter.formatTime(mediaPlayer.getCurrentTime())));\n }", "title": "" }, { "docid": "d4d024966e7d124cd41e055dbb670b64", "score": "0.6089706", "text": "private void update() {\n secondsElapsed += tickTimeInSeconds;\n double rotation = secondsElapsed * angleDeltaPerSeconds;\n secondHandImageView.setRotate(rotation);\n int minute = (int) secondsElapsed / 60;\n int timelayout = (int) secondsElapsed % 60;\n formatted = String.format(\"%02d:%02d\", minute, timelayout);\n digitalClock.setText(formatted);\n }", "title": "" }, { "docid": "8b469c9e11dbcb432662bd5bf5e67fe3", "score": "0.6084582", "text": "public void updateActiveTime(int t) {\n this.ActiveTime += t;\n }", "title": "" }, { "docid": "e62dd095534144c6a2f7beb47a9222d1", "score": "0.6078595", "text": "void updateActualTime(ITask task, long actualTime);", "title": "" }, { "docid": "9faf461718e57854b23c9e0534dfbb0b", "score": "0.60774684", "text": "public void update() {\n lastTime = currentTime;\n currentTime = getTime();\n deltaTime = currentTime - lastTime;\n if (deltaTime < 0.0f) {\n deltaTime = 0.0f;\n }\n }", "title": "" }, { "docid": "b2d5bc2eaef3310f6dc1a6e368015ee2", "score": "0.60726094", "text": "public static void tick () {\n getInstance ().currentDate++;\n }", "title": "" }, { "docid": "e10b3bfe04a135a7eb2007c071cf1cd0", "score": "0.6068204", "text": "public void run() {\n\t\tThread hiloActual = Thread.currentThread();\n\t\twhile (hilo == hiloActual) {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\thoraActual = sdf.format(cal.getTime());\n\t\t\trepaint();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "238023e83a91984a6863cbeee14711eb", "score": "0.6064112", "text": "private void updateTimeDisplay() {\n time.setText(new StringBuilder().append(mHours).append(\":\")\n .append(mMinutes));\n }", "title": "" }, { "docid": "eac6f414769aac9dc20fffcf7c1ca24f", "score": "0.6059184", "text": "private void time() {\r\n\t\t// create JLabel to display remaining time\r\n\t\ttimeLabel = new JLabel();\r\n\t\ttimeLabel.setSize(600, 200);\r\n\t\ttimeLabel.setLocation(300, 300);\r\n\t\ttimeLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tadd(timeLabel);\r\n\r\n\t\tformat = NumberFormat.getNumberInstance();\r\n\t\tformat.setMinimumIntegerDigits(0);\r\n\r\n\t\ttime = new Timer(0, this);\r\n\t\ttime.setInitialDelay(0);\r\n\t\tthis.start();\r\n\t}", "title": "" }, { "docid": "549f354441c50f7d8e4e6bb797e2843f", "score": "0.6051844", "text": "public void run() {\n\t\tlong unixTime = System.currentTimeMillis() / 1000L;\n\t\t//Controller.windMap.put(unixTime, \"test\");\n\t\tSystem.out.println(unixTime + \" This is the wind sensor updating every 3 second\" + getWindSpeed());\n\t}", "title": "" }, { "docid": "d053de13c18261eb4f01ecaca14e4929", "score": "0.60496825", "text": "public void updateDuration()\n {\n update();\n }", "title": "" }, { "docid": "fc747659af45aeb0ccc7e1f298d2c76a", "score": "0.60472333", "text": "void updateIdleTime(long idleTime);", "title": "" }, { "docid": "d91ed87ec123a65fe0becb11ca94a631", "score": "0.6046079", "text": "@Override\n public void updateCurrentBeat() {\n\n }", "title": "" }, { "docid": "80074bb795af8df8e616ec1cfcdb2d50", "score": "0.6040183", "text": "private void timeCrio() {\n double newTime = m_timer.get();\n SmartDashboard.putNumber(\"cRIO Timer\", newTime);\n m_timeTicker++;\n m_totalTime = m_totalTime + newTime;\n SmartDashboard.putNumber(\"cRIO Average\", m_totalTime / m_timeTicker);\n m_timer.reset();\n m_timer.start();\n System.out.println(\"cRIO timing: \" + m_totalTime/m_timeTicker);\n }", "title": "" }, { "docid": "f331900bb99cdbb2e22a1101d46bd3d5", "score": "0.6033793", "text": "@Override\n\tpublic void work() {\n\t\tSystem.out.println(\"2 hour\");\n\n\t}", "title": "" }, { "docid": "6fa98775b19ccbe151175a0d46ddbeb3", "score": "0.6030888", "text": "@Override\n public void onTimeChanged(long time) {\n mHandler.obtainMessage(NonUIHandler.MSG_UPDATE_DATE_TIME, new Long(time)).sendToTarget();\n }", "title": "" }, { "docid": "b0dbb7e5bbbb6297c5a09558524ad097", "score": "0.60175437", "text": "public abstract void onTimeUpdate(IModifiablePlacement placement, Time time);", "title": "" }, { "docid": "82f5dc4d75b7bee9b4375b67fa63d7de", "score": "0.60133636", "text": "@Override\r\n public void activeTimeChanged(TimeSpan active)\r\n {\n }", "title": "" }, { "docid": "b9874d5070379499e439c7b5651742e8", "score": "0.6013132", "text": "public void updateNow() {\n\t\t\tif (reentrantLock.tryLock()) {\n\t\t\t\tupdateUI();\n\t\t\t\treentrantLock.unlock();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "8fe66ab3e2bb47d7f2534eca26f94ea3", "score": "0.60112184", "text": "@Override\n public void run() {\n final long newValue= (SystemClock.elapsedRealtime()-mInitialTime)/1000;\n // post value of time with format second\n mElapsedTime.postValue(newValue);\n }", "title": "" }, { "docid": "1cf1238518b4cad2dd0df590008caf54", "score": "0.60031754", "text": "@Override\n public void updateTimer() {\n Platform.runLater(() -> player1Timer.setText(formatTime(model.getCurrentWhiteTimerTime())));\n Platform.runLater(() -> player2Timer.setText(formatTime(model.getCurrentBlackTimerTime())));\n }", "title": "" }, { "docid": "884384109a9af2fc6f6e9b40650c4845", "score": "0.5998221", "text": "@Override protected void updateStatus() {\n super.updateStatus();\n if (readTimesTask != null) {\n if (taskOk(readTimesTask)) {\n setStatus(\"Reading available times from server\");\n }\n } else if (getDoAbsoluteTimes() && !haveTimeSelected()) {\n setStatus(MSG_TIMES);\n }\n enableWidgets();\n }", "title": "" }, { "docid": "6b2f92e3e4dc29e2c3cf2ce75badc76e", "score": "0.59949875", "text": "public void update() {\n\t\t\tcalc.getTimeCalc().tick();\n\t\t\tfsm.fetchAction();\n\t\t\tstateActions.executeAction();\n\t\t}", "title": "" }, { "docid": "331b52204cc97ca4a2a2314e1d2681b3", "score": "0.5989397", "text": "public static void updateTimer(){\n if(isUnsecure() && mTimerStart == -1l) {\n mTimerStart = System.currentTimeMillis();\n } else{\n if(mTimerStart != -1l){\n mTimerDuration += (System.currentTimeMillis() - mTimerStart);\n mTimerStart = -1l;\n }\n }\n\n }", "title": "" }, { "docid": "e9a04de0181bd2d3f9a7bef9ccf44e16", "score": "0.5986329", "text": "@Override\r\n public void run() {\n long millis = System.currentTimeMillis() - startTime;\r\n int seconds = (int) (millis / 1000);\r\n int minutes = seconds / 60;\r\n seconds = seconds % 60;\r\n\r\n // Updates timer with new elapsed time\r\n timer.setText(\"Timer: \" + String.format(\"%d:%02d\", minutes, seconds));\r\n timerHandler.postDelayed(this, 500);\r\n }", "title": "" }, { "docid": "642fc599c02a21450b75146df5747e48", "score": "0.59860945", "text": "private void updateClockDisplay() {\r\n\t\tif (seconds == 60) {\r\n\t\t\tminute++;\r\n\t\t\tseconds = 0;\r\n\t\t\tmillis = 0;\r\n\t\t}\r\n\t\tclockDisplay = String.format(\"%02d:%02d\", minute, seconds);\r\n\t\tmillis += 5;\r\n\t\tseconds = millis / 1000;\r\n\t}", "title": "" }, { "docid": "925027e16b03f7c1344f5e502aea344e", "score": "0.59822994", "text": "public void timeElapse() {}", "title": "" }, { "docid": "0858e3223bcb3083d05d18512313f068", "score": "0.59705824", "text": "public void updateTime(String arg0, Time arg1) {\n\r\n\t}", "title": "" }, { "docid": "1bc09a2db3cc47633943c416385be818", "score": "0.59699357", "text": "public void updateTime() {\n if (!timePaused) {\n int minTid = (int) timeLeftInRoundInSeconds / 60000;\n int sekundTid = (int) timeLeftInRoundInSeconds % 60000 / 1000;\n\n String timeLeft;\n\n timeLeft = \"\" + minTid;\n timeLeft += \":\";\n if (sekundTid < 10) {\n timeLeft += \"0\";\n\n }\n timeLeft += sekundTid;\n time.setText(timeLeft);\n }\n }", "title": "" }, { "docid": "042b6fad72ad8c23c7ea984a49cf3174", "score": "0.59505004", "text": "private void setCurrentTime() {\n Calendar cal = Calendar.getInstance();\n Date d = cal.getTime();\n logVM.setHours(d.getHours());\n logVM.setMinutes(d.getMinutes());\n }", "title": "" }, { "docid": "8ac55334e3862592110ff6283c029b3f", "score": "0.5943036", "text": "public abstract void setTimeTask();", "title": "" }, { "docid": "638cd3725259e3ca373cd0b56509f1f8", "score": "0.5939033", "text": "@Override\r\n\tpublic void setCurrentTime(String time) {\n\t\t\r\n\t}", "title": "" }, { "docid": "d29f083dfeb0b79d4e4d19ecb91cc130", "score": "0.59237564", "text": "private void setUpdatedTime(int value) {\n \n updatedTime_ = value;\n }", "title": "" }, { "docid": "373637800aaa1c3d25cea2acd4931a10", "score": "0.59231263", "text": "private void goToSetThinkingTime() {\n\t\tQuoridorController.initQuoridorAndBoard();\n\t\tSetTotalThinkingTimeAndInitializeBoard.run();\n\t\tthis.setVisible(false);\n\t\tthis.dispose();\n\t\t\n\t}", "title": "" }, { "docid": "6f6a1efad342a2669c914d667cf73413", "score": "0.5922878", "text": "@Override\n public void update(double timestamp) {\n switch (controlMode) {\n case OPEN_LOOP:\n //Fall through, all driver/manipulator input is handled in TeleopPeriodic\n break;\n case VELOCITY:\n double power = new LogitechButtonBoardConfig().getThrottle();\n if (Math.abs(power) <= 0.2){power = 0;}\n power*=12.0*12.0;\n SmartDashboard.putNumber(\"REQUESTED VEL\", power);\n SmartDashboard.putNumber(\"ACTUAL VEL\", getAverageVelocity());\n SmartDashboard.putNumber(\"Vel ERROR\", (getLeftVelocityError()+getRightVelocityError())/2);\n updateVelocitySetpoint(power, power);\n break;\n case DRIVE_STRAIGHT:\n updateDriveStraight();\n break;\n case DRIVE_ARC:\n updateDriveArc();\n break;\n case TURN_TO_ANGLE:\n updateTurnInPlace();\n break;\n case PURE_PURSUIT:\n updatePurePursuit();\n break;\n }\n }", "title": "" }, { "docid": "e71af21a964d28929bfb2095843c6e82", "score": "0.5916322", "text": "@Override\n public void onTimeTick() {\n }", "title": "" }, { "docid": "702eeab59026f99a6fe73c2d8badad24", "score": "0.5913467", "text": "public void updateTime(){\n String hours = String.valueOf(clock.getHours());\n String minutes = String.valueOf(clock.getMinutes());\n if (hours.length() == 1){\n hours = \"0\" + hours;\n }\n if (minutes.length() == 1){\n minutes = \"0\" + minutes;\n }\n String time = hours + \":\" + minutes;\n String day = \"Day \" + String.valueOf(clock.getDays());\n String year = \"Year \" + String.valueOf(clock.getYears());\n TextView dayText = (TextView) findViewById(R.id.dayText);\n TextView timeText = (TextView) findViewById(R.id.timeText);\n TextView yearText = (TextView) findViewById(R.id.yearText);\n dayText.setText(day);\n timeText.setText(time);\n yearText.setText(year);\n\n if (clock.birthday){\n player.incrementAge();\n clock.setBirthday(false);\n String age = String.valueOf(player.getAge()) + \". \";\n String stageChangeText = \"\";\n if(player.isStageChanged()){\n stageChangeText = \"You've grown up. You are now \" + String.valueOf(player.getStageName().toLowerCase() + \" age.\");\n player.setStageChanged(false);\n }\n showEvent(AllEvents.BIRTHDAY.getTitle(), AllEvents.BIRTHDAY.getDescription() + age + stageChangeText);\n }\n }", "title": "" }, { "docid": "f1b6ce52d675419681af852ad821618d", "score": "0.5904766", "text": "public static void updateView(double time, double desired, double measured, double output)\r\n\t{\r\n\t\tif(initialized) {\r\n\t\t\tif(previousTime > time) {\r\n\t\t\t TemperatureAIView.previousTime -= 24.0;\r\n\t\t\t desiredLines.clear();\r\n\t\t\t measuredLines.clear();\r\n\t\t\t outputLines.clear();\r\n\t\t\t}\r\n\t\t\tTemperatureAIView.desired = desired;\r\n\t\t\tTemperatureAIView.time = time;\r\n\t\t\tTemperatureAIView.measured = measured;\r\n\t\t\tTemperatureAIView.output = output;\r\n\t\t\tframe.repaint();\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eb125674164e303d0bf55805c590fd8e", "score": "0.59028524", "text": "private void updateTime() {\n \t tv_horizonStarttime.setText(\"实际施工时间: \" + project.getActualStartTime());\n\t}", "title": "" }, { "docid": "c78983290724818fc388c0fd76192f73", "score": "0.5899105", "text": "void updateGuiTimerFired() {\n // game time\n this.setTime(this.gameWorker.getGameTimeRemaining());\n \n if (this.gameWorker.getPlayer1() instanceof Player){\n double energy = this.gameWorker.getPlayer1().getEnergy();\n this.setEnergy(1, energy);\n this.setLight(1, this.gameWorker.getPlayer1().getLight());\n }\n \n if (this.gameWorker.getPlayer2() instanceof Player){\n double energy = this.gameWorker.getPlayer2().getEnergy();\n this.setEnergy(2, energy);\n this.setLight(2, this.gameWorker.getPlayer2().getLight());\n }\n }", "title": "" }, { "docid": "2bd6147a3434b841610bbe043a1ce39a", "score": "0.589715", "text": "public void refreshTime() {\r\n\t\tthis.minutesToEnd = DataManager.getConfig().getInt(\"session_time\");\r\n\t}", "title": "" }, { "docid": "1fc784b5924478a30c5f1487276deda7", "score": "0.5889619", "text": "public abstract void requestTime() throws FeatureNotSupportedException,\r\n IOException;", "title": "" }, { "docid": "f2f467382d8a821a6c8f4bf0797502a1", "score": "0.58827174", "text": "public void advanceCurrentHour() {\r\n this.t.advanceHour();\r\n }", "title": "" }, { "docid": "9495d2c1e8011e7ee8e35c763c78bd82", "score": "0.5878348", "text": "private void updateTime(long currentTime) {\n mStartTime.setText(\"\" + Utils.milliSecondsToTimer(currentTime));\n\n // Updating progress bar\n mSeekBar.setProgress((int) currentTime);\n\n if (mSeekBar.isIndeterminate())\n mSeekBar.setIndeterminate(false);\n }", "title": "" }, { "docid": "d536591f9f3e6c0da8a249c98a49ccc6", "score": "0.58749795", "text": "private void cronometro(){\r\n\t\tif(segundos==59) { \r\n\t\t\tsegundos=0; \r\n\t\t\tminutos++;\r\n\t\t}\r\n\t\tif(minutos==59) { \r\n\t\t\tminutos=0; \r\n\t\t\thoras++; \r\n\t\t}\r\n\t\tsegundos++;\r\n\t\ttimePanel.repaint();\r\n\t\ttimePanel.setText(horas+\":\"+minutos+\":\"+segundos);\r\n\t}", "title": "" }, { "docid": "a0b5a17538c2f7b4b0ec427f0dc5e384", "score": "0.58742243", "text": "public void run() {\n // Increments the time\n system.checkAlarms();\n updateTimeText();\n updateEditText();\n updateSounding();\n }", "title": "" }, { "docid": "d908aa25b037fbd9535ecf15bf772eb8", "score": "0.5870188", "text": "public void showTime(){\n\t}", "title": "" }, { "docid": "7039fabef4951eb2e1806b0572902e0e", "score": "0.58608925", "text": "public void update() {\n\t\tif(time > 99) {\n\t\t\tspawn = true;\n\t\t\ttime = 0;\n\t\t}\n\t\ttime += rate;\n\t}", "title": "" }, { "docid": "8e4b230a0c3ba5c74b9380dff11fa364", "score": "0.5854227", "text": "void setProcessTime(double time);", "title": "" }, { "docid": "3368892bdcb69364b2c32a77bde07186", "score": "0.58255136", "text": "@Override\n public void update(Observable o, Object arg) {\n Notification.debugMessage(\"Notifying about update!\");\n try {\n NotifyThread nt = (NotifyThread) arg;\n if (nt.getCaller().equals(this)) {\n return;\n }\n outputStream.write(TIMECONTROLL);\n outputStream.write(nt.getRunning());\n outputStream.write(nt.getReset());\n\n } catch (IOException ex) {\n Notification.debugMessage(\"Someting went wrong \"\n + \"when notifying about timer events \"\n + ex.getLocalizedMessage());\n }\n }", "title": "" }, { "docid": "e7ef67fcf2395b066b6fae463c45f7f3", "score": "0.58224124", "text": "public void printInfoUpdating(){\n Timer t = new Timer();\n\n t.schedule(new TimerTask() {\n @Override\n public void run() {\n //adding date to see when it got updated\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n System.out.println(dateFormat.format(date));\n System.out.println(\"Hierarchy Format:\\n\");\n\n printInfo(0);\n\n }\n }, 0, 10000);\n\n }", "title": "" }, { "docid": "227b1c4ae29e5ec84ddb0c34b8097093", "score": "0.58222437", "text": "@Override\n public void updateTimerEnded() {\n }", "title": "" }, { "docid": "e74bb61e4309967acc55726bfa5bf473", "score": "0.5821318", "text": "abstract void update(float elapsedTime);", "title": "" }, { "docid": "4f0c129b8484a6e96c5e1465168388d3", "score": "0.5817303", "text": "public void updateTimeJLabel () {\r\n TestGraph.updateTime(TimeToString(time - timeElapsed));\r\n }", "title": "" } ]
63365decc3616d0b907b988a809463c9
string representation of key value. time complexity is O(N) as we are itearing the whole array.
[ { "docid": "2fae4e894ca7bcbbc687697cba8fb96f", "score": "0.0", "text": "public String display() {\n if (size == 0) {\n return \"{}\";\n }\n String str = \"{\";\n for (String check : keys()) {\n str += check + \":\" + get(check) + \", \";\n }\n str = str.substring(0, str.length() - 2);\n str += \"}\";\n return str;\n }", "title": "" } ]
[ { "docid": "dc1bc95eb23560c619874e39ed689b56", "score": "0.7374169", "text": "@Override\n public String toString ()\n {\n return Arrays.deepToString (key);\n }", "title": "" }, { "docid": "f1893ae92ac093065e5dadd2a46c1410", "score": "0.71716756", "text": "@Override\r\n\t\tpublic String toString() {\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(\"[\" + key.toString() + \"- \" + value.toString() + \"]\");\r\n\t\t\treturn sb.toString();\r\n\t\t}", "title": "" }, { "docid": "a6b1a9810adc052ed273dc867a98a860", "score": "0.69760776", "text": "public String toString() {\r\n\t\tString out = \"[\";\r\n\t\tfor (int i = 1; i < (this.keyTally-1); i++)\r\n\t\t\tout += keys[i-1] + \",\";\r\n\t\tout += keys[keyTally-1] + \"] \";\r\n\t\treturn out;\r\n\t}", "title": "" }, { "docid": "8fc0efb26434e229a01583707bedbc89", "score": "0.6887948", "text": "@Override\n\tpublic String toString() {\n\t\treturn key.toString();\n\t}", "title": "" }, { "docid": "5ff9944969bd960a0b24537a900aa1fc", "score": "0.6807002", "text": "public String toString(){\n return key+\" \"; \n }", "title": "" }, { "docid": "b6b6b44df1c88dbf92079b83f6f4c45d", "score": "0.6702004", "text": "public String toString() {\r\n\t\tString aux = \"[\" + getKey().toString() + \", \" + getValue().toString() + \"]\";\r\n\t\treturn aux;\r\n\t}", "title": "" }, { "docid": "e15f8f82cb42a4da1d3b89049395612b", "score": "0.6688081", "text": "@Override\n public String toString() {\n return key + \"=\" + value;\n }", "title": "" }, { "docid": "73bc184b2b37b32f87650a80b7b42a4c", "score": "0.6682589", "text": "@Override\n\tpublic String toString() {\n\t\treturn key + \"=\" + value;\n\t}", "title": "" }, { "docid": "b5d3b3559c2e8bc66116d80a72b8f95b", "score": "0.6657279", "text": "@Override\r\n\t\tpublic String toString()\r\n\t\t{\r\n\t\t\treturn key;\r\n\t\t}", "title": "" }, { "docid": "ec5dcd19767e955b7ecdb73470778e30", "score": "0.6649048", "text": "public String toString() {\r\n String returnString = \"\";\r\n for (int i = 0; i < key.length; i++) {\r\n for (int j = 0; j < key[0].length; j++) {\r\n returnString += \"\" + this.key[i][j];\r\n if (j != key[0].length - 1) {\r\n returnString += \" \";\r\n }\r\n }\r\n returnString += \"\\n\";\r\n }\r\n return returnString;\r\n }", "title": "" }, { "docid": "fc2290cc559250be6e6f439bfbf5a0fe", "score": "0.6594141", "text": "java.lang.String getStrkey();", "title": "" }, { "docid": "b3b73bb4265a811b974156aa58ed6854", "score": "0.6576611", "text": "public String toString() {\n\t\t\treturn \"{\" + this.key + \"-\" + this.value + \"}\";\n\t\t}", "title": "" }, { "docid": "4d513ffc947bdd9701143bac40a2da49", "score": "0.6562485", "text": "@Override\n public String toString()\n {\n return key.toString() + \" : \" + value.toString();\n }", "title": "" }, { "docid": "a04390ad11a20a61d4fc3db3b1172310", "score": "0.65229344", "text": "public static String keyValue(String key, Object value) {\n return KeyValue.of(key, value).toString(\": \");\n }", "title": "" }, { "docid": "2bb77a1c750ebf674add1f44c5db7573", "score": "0.641252", "text": "protected String keyToString(byte key)\r\n/* 426: */ {\r\n/* 427:513 */ return Byte.toString(key);\r\n/* 428: */ }", "title": "" }, { "docid": "ae007490619076f1f2b0218ec128a90e", "score": "0.63889784", "text": "public String toString() {\n return \"{...(\" + this.size() + \" key(s) mapped to value(s))...}\";\n }", "title": "" }, { "docid": "aac184f798edae83a77ef9d52179f678", "score": "0.6360444", "text": "public static byte[] getKeyValueString() {\n String keyValueString = getRandomString();\n System.out.println(\"Generated String: \" + keyValueString);\n byte[] key = (keyValueString).getBytes(Charset.forName(\"UTF-8\"));\n MessageDigest sha = null;\n try {\n sha = MessageDigest.getInstance(\"SHA-1\"); // produces a 160-bit (20-byte) hash value\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n byte[] keyb = sha.digest(key);\n keyb = Arrays.copyOf(key, 16); // use only first 128 bit\n return keyb;\n }", "title": "" }, { "docid": "af669e8b43e4aa37de3234b611bd3966", "score": "0.6349168", "text": "private String toKeyValueString() {\n StringBuilder stringBuilder = new StringBuilder();\n for (FormParam namePare : mFormParams) {\n stringBuilder.append(\"&\");\n stringBuilder.append(String.format(\"%s=%s\", namePare.name, namePare.value));\n }\n return stringBuilder.toString().replaceFirst(\"&\", \"\");\n }", "title": "" }, { "docid": "e7ee692560c492a9475c8ebc33760eeb", "score": "0.6339867", "text": "@Override \r\n\t\tpublic String toString() {\r\n\t\t\treturn \"(\" + myKey + \", \" + myValue + \")\";\r\n\t\t}", "title": "" }, { "docid": "25707a8ef28be71667a1a611cc3a1b0a", "score": "0.6281757", "text": "@Override\n public String toString()\n {\n StringBuilder sb = new StringBuilder();\n for (String name : keySet())\n {\n sb.append('{');\n sb.append(name);\n sb.append('=');\n Object [] params = getToStringParam(name);\n\n if (params == null)\n {\n sb.append(\"unknown?\");\n }\n else if (params.length == 0)\n {\n sb.append(\"empty\");\n }\n else\n {\n sb.append('[');\n sb.append(StringUtils.join(params, \", \"));\n sb.append(']');\n }\n sb.append(\"}\\n\");\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "41eb795470e0adeef9e2a5036edf4db7", "score": "0.625199", "text": "@Override\n public String toString()\n {\n return _key;\n }", "title": "" }, { "docid": "d8505aa153f9b49e13ec515a9b434c76", "score": "0.61734074", "text": "com.google.protobuf.ByteString\n getStrkeyBytes();", "title": "" }, { "docid": "6cbc6b313f7d55d291557f1ca1ae15c2", "score": "0.6159754", "text": "public String getKeyString();", "title": "" }, { "docid": "62271eb017d7f979548901a4e03308f0", "score": "0.6150334", "text": "public String getValueString(final ValueKeys _key)\n {\n return this.mapString.get(_key.name());\n }", "title": "" }, { "docid": "c43331580031ffe4b32e3fb9023ac22a", "score": "0.61070466", "text": "public String toString() {\n String s = \"KeyIdentifier [\\n\";\n\n HexDumpEncoder encoder = new HexDumpEncoder();\n s += encoder.encodeBuffer(octetString);\n s += \"]\\n\";\n return (s);\n }", "title": "" }, { "docid": "2d0cbe2a19bf01e62fa94f685118dcf5", "score": "0.603799", "text": "public String getString(final Object key)\n {\n return getMixed(key).toString();\n }", "title": "" }, { "docid": "23e3a6f530b91710749e92643e7cb70a", "score": "0.6026109", "text": "java.lang.String getKeyData();", "title": "" }, { "docid": "75ba6704e0b29e4e26c64bccb8e1188a", "score": "0.6015268", "text": "public String getString(String key);", "title": "" }, { "docid": "75ba6704e0b29e4e26c64bccb8e1188a", "score": "0.6015268", "text": "public String getString(String key);", "title": "" }, { "docid": "ee4a38824e911354617ed651815322f1", "score": "0.59599465", "text": "String getString(String key);", "title": "" }, { "docid": "afe97841759193b3a187a218609710d3", "score": "0.59556866", "text": "public String toStringForList() {\r\n\t\tStringBuilder build = new StringBuilder();\r\n\t\tbuild.append(k1 + \"|\");\r\n\t\tbuild.append(k2 + \"|\");\r\n\t\tbuild.append(k3 + \"\");\r\n\t\treturn build.toString();\r\n\t}", "title": "" }, { "docid": "61ec1469672167526e46ba09782d457f", "score": "0.5935435", "text": "@Override \n public String toString() {\n return \"[flag=\"+this.flag.toString()+\",joinKey=\"+this.joinKey.toString()+\"]\"; \n }", "title": "" }, { "docid": "0736a2d4b193505cf4dce30f7b9c1302", "score": "0.5919054", "text": "private String arrayToString(byte[] array){\n String s = \"\";\n for(int i:array){\n s += i+\" \";\n }\n return s;\n }", "title": "" }, { "docid": "a855ca0e661d20b6ddc782077e548185", "score": "0.5913854", "text": "public java.lang.String getStrkey() {\n java.lang.Object ref = strkey_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n strkey_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "82b3638e5e42dd4caeefeaa274d41145", "score": "0.5911886", "text": "public String toString() {\n\t\treturn \"key : \" + key + \" size : \" + treesize();\n\t}", "title": "" }, { "docid": "4201af0905f6a1ba5ab008c5d2721367", "score": "0.59034956", "text": "public java.lang.String getStrkey() {\n java.lang.Object ref = strkey_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n strkey_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "d020281822124014da4e0372ac250f20", "score": "0.58808285", "text": "@Nullable\n String string(@NotNull String key);", "title": "" }, { "docid": "3af8416d66312b65153354dfcec7c8e4", "score": "0.5876086", "text": "public String toString() {\n String s = \"Number: \" + number + \"\\nValidEntries: \" + validEntries + \"\\n\";\n\n for ( int i = 0; i < validEntries; i++ ) {\n s += \"entry: \" + i + \"\\n\";\n\n KeyEntry key = entries[i];\n s += \" lower: \" + key.lower + \"\\n\";\n s += \" record: \" + key.record + \"\\n\";\n s += \" data: \" + key.data + \"\\n\";\n }\n s += \"lower: \" + lastLower;\n return s;\n }", "title": "" }, { "docid": "b976dd071cdeb989cd7b357fcc707cda", "score": "0.5871584", "text": "public static String toString\n\t\t(byte[] val)\n\t\t{\n\t\treturn toString (val, 0, val.length);\n\t\t}", "title": "" }, { "docid": "95b3b32f0e9cd46755ca88d001f322b7", "score": "0.58570415", "text": "public String toString() {\r\n String s = \"[\";\r\n \r\n for (int i = 0; i < table.length; i++) {\r\n if (table[i] == null) {\r\n s += \"null\";\r\n } else {\r\n String keys = \"{\";\r\n Node trav = table[i];\r\n while (trav != null) {\r\n keys += trav.key;\r\n if (trav.next != null) {\r\n keys += \"; \";\r\n }\r\n trav = trav.next;\r\n }\r\n keys += \"}\";\r\n s += keys;\r\n }\r\n \r\n if (i < table.length - 1) {\r\n s += \", \";\r\n }\r\n } \r\n \r\n s += \"]\";\r\n return s;\r\n }", "title": "" }, { "docid": "68f5267ee196a5fc40aebfc717c2214e", "score": "0.58451843", "text": "public java.lang.String getKey() {\n\t\t\tjava.lang.Object ref = key_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\tif (bs.isValidUtf8()) {\n\t\t\t\t\tkey_ = s;\n\t\t\t\t}\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1d293f252fb7fcb5b44eb0ea9b70be7d", "score": "0.5829472", "text": "@Override\r\n public String toString()\r\n {\r\n return String.format(\r\n \"{%s, %s}\"\r\n + (left == null\r\n ? \"\"\r\n : \", \" + left)\r\n + (right == null\r\n ? \"\"\r\n : \", \" + right),\r\n key,\r\n value\r\n );\r\n }", "title": "" }, { "docid": "b5769181835ec420048cb7ddd9836c00", "score": "0.58279437", "text": "public String toString() {\n return Arrays.toString(array);\n }", "title": "" }, { "docid": "3e5a3d0edba0c6542deb87d2abd1453a", "score": "0.5826609", "text": "private static String getToString(IJavaValue value) {\n\t\ttry {\n\t\t\tif (value instanceof IJavaArray) {\n\t\t\t\tIJavaArray arr = (IJavaArray)value;\n\t \t\tStringBuilder sb = new StringBuilder();\n\t \t\tsb.append(\"[\");\n\t \t\tfor (int i = 0; i < 5 && i < arr.getLength(); i++) {\n\t \t\t\tif (i > 0)\n\t \t\t\t\tsb.append(\",\");\n\t \t\t\tsb.append(getToString(arr.getValue(i)));\n\t \t\t}\n\t \t\tif (arr.getLength() > 5)\n\t \t\t\tsb.append(\",\").append(arr.getLength() - 5).append(\" more...\");\n\t \t\tsb.append(\"]\");\n\t \t\treturn sb.toString();\n\t \t} else\n\t \t\treturn value.toString();\n\t\t} catch (DebugException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "db42a4593427e6acf3600708ad44a6d6", "score": "0.5812169", "text": "String key();", "title": "" }, { "docid": "db42a4593427e6acf3600708ad44a6d6", "score": "0.5812169", "text": "String key();", "title": "" }, { "docid": "db42a4593427e6acf3600708ad44a6d6", "score": "0.5812169", "text": "String key();", "title": "" }, { "docid": "200349f1ba03b8555ee31cf9481e30a3", "score": "0.5807588", "text": "String getStringValue(String key);", "title": "" }, { "docid": "f8cfcda0fb7a2179c213cc0013ccc80d", "score": "0.5806416", "text": "public java.lang.String getKey() {\n\t\t\t\tjava.lang.Object ref = key_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tif (bs.isValidUtf8()) {\n\t\t\t\t\t\tkey_ = s;\n\t\t\t\t\t}\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "949fb19d86bcb75701e2997f623c9599", "score": "0.57915866", "text": "public String getAsString(String key){\r\n\t\t\treturn contentValues.getAsString(key);\r\n\t\t}", "title": "" }, { "docid": "ba8b56cc774792dcfe875731db278dee", "score": "0.5785105", "text": "@NativeCallable\n public String getTypeArray() {\n StringBuilder ret = new StringBuilder();\n for (String key : getKeyArray()) {\n Class clazz = get(key).getClass();\n if (clazz == Boolean.class) {\n ret.append('z');\n }\n else if (clazz == Character.class) {\n ret.append('c');\n }\n else if (clazz == String.class) {\n ret.append('x');\n }\n if (clazz == Byte.class) {\n ret.append('b');\n }\n else if (clazz == Short.class) {\n ret.append('s');\n }\n else if (clazz == Integer.class) {\n ret.append('i');\n }\n else if (clazz == Long.class) {\n ret.append('l');\n }\n else if (clazz == Float.class) {\n ret.append('f');\n }\n else if (clazz == Double.class) {\n ret.append('d');\n }\n else {\n ret.append('o');\n }\n }\n return ret.toString();\n }", "title": "" }, { "docid": "0a44fff8bb10079953e382c94ce8991d", "score": "0.5779451", "text": "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"\"+val;\n\t\t}", "title": "" }, { "docid": "75c9e478a8b2893037c8289ec1d60371", "score": "0.5777646", "text": "private static String arrayToString(Object[] arr) {\n return arrayToString(Arrays.asList(arr));\n }", "title": "" }, { "docid": "1edb9e2c455f4dd2667271631bf55c27", "score": "0.5774769", "text": "public String toString(){\n\t\tString str=\"\";\n\t\tstr += \"[\";\n\t\tfor ( int i=0; i<counter; i++){\n\t\t str += array[i];\n\t\t if ( i!= counter -1){\n\t\t\t\tstr +=\", \";\n\t\t\t}\n\t\t}\n\t\tstr += \"]\";\n\t\t\n\t\treturn str;\n\t}", "title": "" }, { "docid": "208a07e2ef4c116152e7431134d3d4fd", "score": "0.5734704", "text": "public String toString()\r\n\t\t\t{\r\n\t\t\t\treturn java.util.Arrays.toString(array);\r\n\t\t\t}", "title": "" }, { "docid": "05457e464cf741822a5441a90c9948dd", "score": "0.57264763", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n key_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "eb04ce847698d692b79bf2943bc9545f", "score": "0.57225263", "text": "public String toString() {\n return \"\"+val;\n }", "title": "" }, { "docid": "c275d794216554ca445457589e1048d5", "score": "0.5722473", "text": "@Test\r\n public void testToString() {\r\n BiMap<Integer, String> biMap = new BiMap();\r\n assertEquals(\"{}\", biMap.toString());\r\n \r\n biMap.put(1, \"One\");\r\n assertEquals(\"{1=One}\", biMap.toString());\r\n \r\n biMap.put(2, \"Two\");\r\n assertEquals(\"{1=One, 2=Two}\", biMap.toString());\r\n \r\n biMap.put(3, \"Three\");\r\n assertEquals(\"{1=One, 2=Two, 3=Three}\", biMap.toString());\r\n \r\n }", "title": "" }, { "docid": "254681f265c6373bba45ab280246a680", "score": "0.5717705", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n key_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "b1f3d5b8c85dfb1d2772bf6e77df0ae1", "score": "0.57063043", "text": "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn \"\" + val;\r\n\t\t}", "title": "" }, { "docid": "87b57cbff766ec9ccffa050075e75539", "score": "0.5703113", "text": "public String getKey(){\n return String.valueOf(x)+\",\"+String.valueOf(y);\n }", "title": "" }, { "docid": "58cb4a3e42b759d554f3c854a9c0953b", "score": "0.5698621", "text": "protected String str(byte[] array) {\n return array != null\n ? Arrays.toString(array) + \"@\" + Integer.toHexString(array.hashCode())\n : \"null\";\n }", "title": "" }, { "docid": "5337498ff3cf00b061813fb7e9b42cea", "score": "0.5690024", "text": "public String toString()\n\t{\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tIterator it = map.entrySet().iterator();\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\tMap.Entry me = (Map.Entry) it.next();\n\t\t\tsb.append(me.getValue());\n\t\t\tsb.append(\"\\t\");\n\t\t\tsb.append(me.getKey());\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "6c664dfcd026dc8ac74f8d5a7b72b05b", "score": "0.56889963", "text": "public String toString() {\n String result = new String();\n Enumeration e = lookupTable.keys();\n if (e != null) {\n while (e.hasMoreElements()) {\n String key = (String) e.nextElement();\n String value = (String) lookupTable.get(key);\n result += \" \" + key + \" --> \" + value + \"\\n\";\n }\n }\n return result;\n }", "title": "" }, { "docid": "46e3ef70834347b55e6e0e612fbc4f14", "score": "0.5681737", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n key_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "d3982d530704452bcb1826261a845e87", "score": "0.5680565", "text": "String keyAndPreconditionToString() {\n return \"key=\" + key + \", precondition=\" + precondition;\n }", "title": "" }, { "docid": "e2dbdf763608f2f02cf7470ea0120260", "score": "0.5669717", "text": "public byte[] serializeKey(String element) {\n\t\t\t\treturn element.getBytes();\n\t\t\t}", "title": "" }, { "docid": "4a15f04cdb611f95cb624632b19f1a91", "score": "0.5666798", "text": "public String toString() {\n\t\tString result = \"{\";\n\t\tfor(int i = 0; i < this.size; i++) {\n\t\t\tresult += this.array[i];\n\t\t\tif(i != this.size-1) result += \", \";\n\t\t}\n\t\tresult += \"}\";\n\t\treturn result;\n\t}", "title": "" }, { "docid": "2d6470b7fecff9f49bf668db72e80252", "score": "0.5653368", "text": "public String toString() {\n\t\treturn \"\" + value;\n\t}", "title": "" }, { "docid": "02137ad1b3284dfe9c8b5d2cc02df683", "score": "0.5645232", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n key_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "02137ad1b3284dfe9c8b5d2cc02df683", "score": "0.5645232", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n key_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "02137ad1b3284dfe9c8b5d2cc02df683", "score": "0.5645232", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n key_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "87dce3cf0d8cf0792886da5dfc027b02", "score": "0.5638661", "text": "private String getKeyString(Object key) throws StoreException {\n\t\tif (key instanceof String) {\n\t\t\treturn \"S:\" + key;\n\t\t}\n\t\telse if (key instanceof Integer) {\n\t\t\treturn \"I:\" + key;\n\t\t}\n\t\telse if (key instanceof Long) {\n\t\t\treturn \"L:\" + key;\n\t\t}\n\t\telse if (key instanceof Double) {\n\t\t\treturn \"D:\" + key;\n\t\t}\n\t\telse if (key instanceof Byte) {\n\t\t\treturn \"B:\" + key;\n\t\t}\n\t\telse if (key instanceof Short) {\n\t\t\treturn \"H:\" + key;\n\t\t}\n\t\telse if (key instanceof Date) {\n\t\t\treturn \"A:\" + ((Date) key).getTime();\n\t\t}\n\t\telse if (key instanceof GlobalPersistentID) {\n\t\t\treturn \"G:\" + key;\n\t\t}\n\t\telse if (key == null) {\n\t\t\tthrow new IllegalArgumentException (\"key is null\");\n\t\t}\n\t\telse {\n\t\t\tClass clazz = key.getClass();\n\t\t\tif(clazz.isAnnotationPresent(PersistentClass.class) || Persistent.class.isAssignableFrom(clazz)) {\n\t\t\t\tGlobalPersistentID gid = store.getGlobalPersistentID(key);\n\t\t\t\treturn \"P:\" + gid;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new StoreException (\"Non-persistent keys of type \" + key.getClass().getName() + \" are not supported by PersistentMap\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1743079f210957b1efbbd4de1d7b8cd6", "score": "0.56362087", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "1743079f210957b1efbbd4de1d7b8cd6", "score": "0.56362087", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "bd8b2fc58e597edd5bef7e827af3855a", "score": "0.5629679", "text": "public com.google.protobuf.ByteString\n getStrkeyBytes() {\n java.lang.Object ref = strkey_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n strkey_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "7858fa81ab1fc231e43f98bf88cb9474", "score": "0.5611087", "text": "public String toString()\r\n {\r\n return \"\" + value;\r\n }", "title": "" }, { "docid": "1002e0ba6b610d94a8d816b30e68918f", "score": "0.5605047", "text": "public String toString(){\n int size = size();\n String s = \"[\";\n for(int i = 0; i < hashArray.length; i++){\n if(hashArray[i] == null){\n continue;\n }\n else if(hashArray[i] != null){\n Node curr = (Node) hashArray[i];\n while(curr != null){\n size--;\n if(size == 0){\n s += curr.toString();\n break;\n }\n s+= (curr.toString() + \", \");\n curr = (Node) curr.next();\n }\n }\n }\n s += \"]\";\n return s;\n }", "title": "" }, { "docid": "6f0374f91a5f7e47f2de46d25fc32519", "score": "0.55963343", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n key_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "6f0374f91a5f7e47f2de46d25fc32519", "score": "0.55963343", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n key_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "9780fbb5a7f4dcb4fa5d46c388651221", "score": "0.5589482", "text": "public String toString() {\n return \"\" + value;\n }", "title": "" }, { "docid": "9df91dba5f1fac49e82a0474e58ddf39", "score": "0.5588695", "text": "public String toString (){\n\t\t\treturn Arrays.toString(tvalores);\n\t\t}", "title": "" }, { "docid": "407a3be644f9782c430fa5e85d06d404", "score": "0.55744445", "text": "String getValueAsString(byte[] raw);", "title": "" }, { "docid": "cdef9451f6fcb9e193b0d8d0efba6746", "score": "0.55690134", "text": "@Override\r\n public String toString() {\r\n ArrayList<E> result = new ArrayList<E>();\r\n for(E key : objectToEntry.keySet())\r\n result.add(key);\r\n Collections.sort(result,cmp);\r\n return result.toString();\r\n }", "title": "" }, { "docid": "9f4812fb203ed1415b344b4678810eeb", "score": "0.5568379", "text": "public String toString(){\n String elements=\"\";\n for(int i=0;i<pos;++i){\n elements+=datastore[i]+\" \";\n }\n return elements;\n }", "title": "" }, { "docid": "2b733e9c611bd52911077c700e09f7fb", "score": "0.55623907", "text": "public String toString() {\n\t\t\treturn myKey + \": \" + myFreq;\n\t\t}", "title": "" }, { "docid": "965cc0789da79e2cf9208b5c711792da", "score": "0.55502963", "text": "@Override\n public String toString () {\n StringBuffer sb = new StringBuffer(\"\");\n sb.append( this.table );\n for ( String keyColumn : this.keyColumns.keySet() ) {\n sb.append (\",\"); \n sb.append( keyColumn );\n sb.append( \"='\" );\n sb.append( this.keyColumns.get( keyColumn ) );\n sb.append( \"'\" );\n }\n return sb.toString ();\n }", "title": "" }, { "docid": "f3990c77c883b82b0145adaadbff883b", "score": "0.55243886", "text": "public com.google.protobuf.ByteString\n getStrkeyBytes() {\n java.lang.Object ref = strkey_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n strkey_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "01c5052fb144e900ddeca4ef5f2deb4f", "score": "0.5523449", "text": "static void printArray(int ints[], int len,String key,FileWriter writer) throws IOException \n {\n int i;\n StringBuilder s = new StringBuilder();\n \n for (i = 1; i < len; i++) \n {\n s.append(ints[i]);\n }\n Encodedtable.put(key,s.toString());\n writer.write(key+ \" ==> \" +s.toString()+\"\\n\");\n \n }", "title": "" }, { "docid": "e74f27ee22342efc0ad080316a0e2803", "score": "0.5517343", "text": "public static String serializeString(String key, String value) {\n\t\t\tif (value == null)\n\t\t\t\treturn (\"\\\"\" + key + \"\\\":null\");\n\t\t\t// Example:\n\t\t\t// \"class\": \"command.pattern.BallMoveCommand\"\n\n\t\t\treturn (\"\\\"\" + key + \"\\\":\\\"\" + value + \"\\\"\");\n\t\t}", "title": "" }, { "docid": "d69756d6197ef13e96e25fd7292f9e66", "score": "0.5509014", "text": "public static String iterable2String(Iterable<ByteString> keys) {\r\n\t\tcheckNotNull(keys, \"The object keys must be provided\");\r\n\t\tStringBuilder b = new StringBuilder();\r\n\t\tfor (ByteString key : keys) {\r\n\t\t\tb.append(checkKey(key)).append('\\n');\r\n\t\t}\r\n\t\treturn b.toString();\r\n\t}", "title": "" }, { "docid": "5c462518bcbbb2f3d523eee46fbbfd63", "score": "0.55076796", "text": "public String toString() {\n StringBuilder log = new StringBuilder();\n for (String key : keys) {\n log.append(dataRow.get(key));\n log.append(\"\\t\");\n log.append(\"|\");\n log.append(\"\\t\");\n }\n return log.toString();\n }", "title": "" }, { "docid": "59ceadbffe2131cf2dd650cf1bbd572f", "score": "0.5507664", "text": "public String getString(Object key) {\r\n Object value = super.get(key.toString().toLowerCase());\r\n if (value == null){\r\n return null;\r\n }\r\n return String.valueOf(super.get(key.toString().toLowerCase()));\r\n }", "title": "" }, { "docid": "f5dfd65ce936cecd50a998999308cb8a", "score": "0.55022615", "text": "public String serializeArrayToString(Object array) {\n return serializeArray(array).toString();\n }", "title": "" }, { "docid": "135649cae778dc949f58b90a93297ec1", "score": "0.5500699", "text": "public String toString() {\n StringBuffer value = new StringBuffer();\n Iterator keys = this.keySet().iterator();\n while (keys.hasNext()) {\n Field field = (Field) this.get(keys.next());\n value.append(field.getName());\n value.append(\":\");\n value.append(field.getValue());\n value.append(\"\\n\");\n }\n return value.toString();\n }", "title": "" }, { "docid": "67e0d92ccfe48beb885c3d3e3bfb9c29", "score": "0.5498559", "text": "public String toString() {\r\n\t\treturn hashTable.toString();\r\n\t}", "title": "" }, { "docid": "9fd7cf39190e61d8b3b7e31ee220f6db", "score": "0.5490131", "text": "@Override\n @SuppressWarnings(\"unchecked\")\n public java.lang.String toString() \n {\n // Creat an empty string\n String outputString = \"\";\n // loop through the array to get values\n int index;\n for(index = 0; index < this.arraySize; index++)\n {\n GenericData gd;\n gd = (GenericData) genericSetArray[index];\n outputString += gd.toString();\n // check if you are at the end of the array to not have an extra ,\n if(index != this.arraySize - 1)\n {\n outputString += \", \";\n }\n }\n // return string of array\n return outputString;\n }", "title": "" }, { "docid": "fca7b8a407af925afe47e7c51314ab84", "score": "0.54886824", "text": "public String toString() {\n return Arrays.toString(data);\n }", "title": "" }, { "docid": "c31f78dcdbbdd083f8ab0a5f3e6a4af1", "score": "0.5483442", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "c31f78dcdbbdd083f8ab0a5f3e6a4af1", "score": "0.5483442", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "7b35f12e8a0ed23e3519e530c5877698", "score": "0.5478777", "text": "@SuppressWarnings(\"unchecked\")\n private Versioned<String> convertObjectToString(String key, Versioned<Object> value) {\n String valueStr = value.getValue().toString();\n\n if(CLUSTER_KEY.equals(key)) {\n valueStr = clusterMapper.writeCluster((Cluster) value.getValue());\n } else if(STORES_KEY.equals(key)) {\n valueStr = storeMapper.writeStoreList((List<StoreDefinition>) value.getValue());\n } else if(REBALANCING_STEAL_INFO.equals(key)) {\n RebalancerState rebalancerState = (RebalancerState) value.getValue();\n valueStr = rebalancerState.toJsonString();\n } else if(SERVER_STATE_KEY.equals(key) || NODE_ID_KEY.equals(key)) {\n valueStr = value.getValue().toString();\n } else {\n throw new VoldemortException(\"Unhandled key:'\" + key\n + \"' for Object to String serialization.\");\n }\n\n return new Versioned<String>(valueStr, value.getVersion());\n }", "title": "" } ]
1e9ba48e54c8195ee80718e3087f1e1d
Draw a picture with a few robots
[ { "docid": "1cd7eba94499bd69da9980ba2ef45aca", "score": "0.7233176", "text": "public static void drawPicture1(Graphics2D g2) {\r\n\r\n\tRobot r1 = new Robot(100,250,50,75);\r\n\tg2.setColor(Color.CYAN); g2.draw(r1);\r\n\t\r\n\t// Make a robot that's half size, \r\n\t// and moved over 150 pixels in x direction\r\n\r\n\tShape r2 = ShapeTransforms.scaledCopyOfLL(r1,0.5,0.5);\r\n\tr2 = ShapeTransforms.translatedCopyOf(r2,150,0);\r\n\tg2.setColor(Color.BLACK); g2.draw(r2);\r\n\t\r\n\t// Here's a robot that's 4x as big (2x the original)\r\n\t// and moved over 150 more pixels to right.\r\n\tr2 = ShapeTransforms.scaledCopyOfLL(r2,4,4);\r\n\tr2 = ShapeTransforms.translatedCopyOf(r2,150,0);\r\n\t\r\n\t// We'll draw this with a thicker stroke\r\n\tStroke thick = new BasicStroke (4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL); \r\n\t\r\n\t// for hex colors, see (e.g.) http://en.wikipedia.org/wiki/List_of_colors\r\n\t// #002FA7 is \"International Klein Blue\" according to Wikipedia\r\n\t// In HTML we use #, but in Java (and C/C++) its 0x\r\n\t\r\n\tStroke orig=g2.getStroke();\r\n\tg2.setStroke(thick);\r\n\tg2.setColor(new Color(0x002FA7)); \r\n\tg2.draw(r2); \r\n\t\r\n\t// Draw two angry robots\r\n\t\r\n\tAngryRobot hw1 = new AngryRobot(50,150,40,75);\r\n\tAngryRobot hw2 = new AngryRobot(200,190,169,169);\r\n\t\r\n\tg2.draw(hw1);\r\n\tg2.setColor(new Color(0x8F00FF)); g2.draw(hw2);\r\n\t\r\n\t\r\n\t\r\n\tg2.setStroke(orig);\r\n\tg2.setColor(Color.BLACK); \r\n\tg2.drawString(\"A few Robots and AngryRobots by Yantsey Tsai\", 20,20);\r\n }", "title": "" } ]
[ { "docid": "9abd942355ee1e218f57a142ec8ebd46", "score": "0.6861721", "text": "public static void drawPicture2(Graphics2D g2) {\r\n\r\n\t// Draw some AngryRobots\r\n\t\r\n AngryRobot h1 = new AngryRobot(100,250,50,75);\r\n\tg2.setColor(Color.CYAN); g2.draw(h1);\r\n\t\r\n\t// Make a black robot that's half the size, \r\n\t// and moved over 150 pixels in x direction\r\n\tShape h2 = ShapeTransforms.scaledCopyOfLL(h1,0.5,0.5);\r\n\th2 = ShapeTransforms.translatedCopyOf(h2,150,0);\r\n\tg2.setColor(Color.BLACK); g2.draw(h2);\r\n\t\r\n\t// Here's a robot that's 4x as big (2x the original)\r\n\t// and moved over 150 more pixels to right.\r\n\th2 = ShapeTransforms.scaledCopyOfLL(h2,4,4);\r\n\th2 = ShapeTransforms.translatedCopyOf(h2,150,0);\r\n\t\r\n\t// We'll draw this with a thicker stroke\r\n\tStroke thick = new BasicStroke (4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL); \r\n\t\r\n\t// for hex colors, see (e.g.) http://en.wikipedia.org/wiki/List_of_colors\r\n\t// #002FA7 is \"International Klein Blue\" according to Wikipedia\r\n\t// In HTML we use #, but in Java (and C/C++) its 0x\r\n\t\r\n\tStroke orig=g2.getStroke();\r\n\tg2.setStroke(thick);\r\n\tg2.setColor(new Color(0x002FA7)); \r\n\tg2.draw(h2); \r\n\t\r\n\t// Draw two angry robots\r\n\t\r\n\tAngryRobot hw1 = new AngryRobot(50,300,40,90);\r\n\tAngryRobot hw2 = new AngryRobot(188,60,200,220);\r\n\t\r\n\tg2.draw(hw1);\r\n\tg2.setColor(new Color(0xFF033E)); \r\n\r\n\t// Rotate the second angry robot 45 degrees around its center.\r\n\tShape hw3 = ShapeTransforms.rotatedCopyOf(hw2, Math.PI/4.0);\r\n\r\n\tg2.draw(hw3);\r\n\t\r\n\t\r\n\t\r\n\tg2.setStroke(orig);\r\n\tg2.setColor(Color.BLACK); \r\n\tg2.drawString(\"A bunch of AngryRobots and a few Robots by Yantsey Tsai\", 20,20);\r\n }", "title": "" }, { "docid": "1cb6d5cc5fbbd1187e111603e4b92cb3", "score": "0.67533445", "text": "private void drawRobot(GL10Graphics g, int x0, int y0, int dir) {\r\n g.setColor(GColor.DARK_GRAY);\r\n int walk = (getFrameNumber() % 12) / 4 - 1;\r\n if (dir == 0 || dir == 2) {\r\n // draw head\r\n g.drawFilledRect(x0 - 8, y0 - 14, 16, 12);\r\n // draw the arms\r\n g.drawFilledRect(x0 - 12, y0 - 6, 4, 12);\r\n g.drawFilledRect(x0 + 8, y0 - 6, 4, 12);\r\n // draw the body\r\n g.drawFilledRect(x0 - 6, y0 - 2, 12, 4);\r\n g.drawFilledRect(x0 - 4, y0 + 2, 8, 6);\r\n // draw the legs\r\n g.drawFilledRect(x0 - 6, y0 + 8, 4, 8 + walk);\r\n g.drawFilledRect(x0 + 2, y0 + 8, 4, 8 - walk);\r\n // draw the feet\r\n g.drawFilledRect(x0 - 8, y0 + 12 + walk, 2, 4);\r\n g.drawFilledRect(x0 + 6, y0 + 12 - walk, 2, 4);\r\n // draw the eyes if walking S\r\n if (dir == 2) {\r\n g.setColor(throbbing_white);\r\n g.drawFilledRect(x0 - 4, y0 - 12, 8, 4);\r\n }\r\n } else {\r\n // draw the robot sideways\r\n \r\n // draw the head\r\n g.drawFilledRect(x0 - 6, y0 - 14, 12, 8);\r\n // draw the body, eyes ect.\r\n if (dir == 1) {\r\n // body\r\n g.drawFilledRect(x0 - 6, y0 - 6, 10, 10);\r\n g.drawFilledRect(x0 - 8, y0 + 4, 14, 4);\r\n // draw the legs\r\n g.drawFilledRect(x0 - 8, y0 + 8, 4, 8 + walk);\r\n g.drawFilledRect(x0 + 2, y0 + 8, 4, 8 - walk);\r\n // draw feet\r\n g.drawFilledRect(x0 - 4, y0 + 12 + walk, 4, 4);\r\n g.drawFilledRect(x0 + 6, y0 + 12 - walk, 4, 4);\r\n // draw the eyes\r\n g.setColor(throbbing_white);\r\n g.drawFilledRect(x0 + 2, y0 - 12, 4, 4);\r\n } else {\r\n // body\r\n g.drawFilledRect(x0 - 4, y0 - 6, 10, 10);\r\n g.drawFilledRect(x0 - 6, y0 + 4, 14, 4);\r\n // draw the legs\r\n g.drawFilledRect(x0 - 6, y0 + 8, 4, 8 + walk);\r\n g.drawFilledRect(x0 + 4, y0 + 8, 4, 8 - walk);\r\n // draw feet\r\n g.drawFilledRect(x0 - 10, y0 + 12 + walk, 4, 4);\r\n g.drawFilledRect(x0, y0 + 12 - walk, 4, 4);\r\n // draw the eyes\r\n g.setColor(throbbing_white);\r\n g.drawFilledRect(x0 - 6, y0 - 12, 4, 4);\r\n }\r\n // draw the arm\r\n g.setColor(GColor.BLACK);\r\n g.drawFilledRect(x0 - 2, y0 - 6, 4, 12);\r\n }\r\n }", "title": "" }, { "docid": "2e2f251f29f7191fc7a9373a7869186e", "score": "0.6750735", "text": "public void draw(){\n\t\tStdDraw.picture(xxPos, yyPos, imgFileName);\n\t}", "title": "" }, { "docid": "4fdbd2d073405f110dd9e2f126d61aaf", "score": "0.6591711", "text": "private void drawParachute() {\n\t\tGImage parachute = new GImage(\"parachute.png\");\n\t\tparachute.setSize(PARACHUTE_WIDTH, PARACHUTE_HEIGHT);\n\t\tcanvas.add(parachute, canvas.getWidth()/2 - PARACHUTE_WIDTH/2, PARACHUTE_Y);\n\t}", "title": "" }, { "docid": "661eb9dcae527a572f0d68f2e3bd8293", "score": "0.6589866", "text": "public void draw(){\n String path = \"./images/\";\n StdDraw.picture(xxPos, yyPos,path+imgFileName);\n }", "title": "" }, { "docid": "62b0bacefd2c65f93151aabe6568ffc6", "score": "0.6580462", "text": "@Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n // see javadoc for more info on the parameters\n for (int i = 0; i < view.model.getPositions().size(); i++){\n int carSpacing = 100 * i;\n Point currentPos = view.model.getPositions().get(i).getCarPoint();\n BufferedImage currentImage = view.model.getPositions().get(i).getImage();\n g.drawImage(currentImage,currentPos.x,currentPos.y + carSpacing, null);\n }\n /*g.drawImage(images.get(0), carPoints.get(0).x, carPoints.get(0).y, null);\n g.drawImage(images.get(1), carPoints.get(1).x , carPoints.get(1).y + 100, null);\n g.drawImage(images.get(2), carPoints.get(2).x , carPoints.get(2).y + 200, null);*/\n\n\n }", "title": "" }, { "docid": "f7a3802df895db4bddfa0642b4703590", "score": "0.6545844", "text": "public void draw() {\r\n\t\tfor (int row = 0; row < map.walls.size(); row++) {\r\n\t\t\tfor (int col = 0; col < map.walls.get(0).size(); col++) {\r\n\t\t\t\tif (map.walls.get(row).contains(col)) {\r\n\t\t\t\t\tif ( (row == 12) && (col == 13 || col == 14) ) {\r\n\t\t\t\t\t\tgraphics2.drawImage(IMAGES[7], col*16, row*16, 16, 16, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tgraphics2.drawImage(IMAGES[5], col*16, row*16, 16, 16, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if (map.dots.get(row).contains(col)) {\r\n\t\t\t\t\tgraphics2.drawImage(IMAGES[8], col*16, row*16, 16, 16, null);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tgraphics2.drawImage(IMAGES[6], col*16, row*16, 16, 16, null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tsetVisible(true);\r\n\t\trepaint();\r\n\t}", "title": "" }, { "docid": "2184247075f98004149e16c3e8eec9a6", "score": "0.65247965", "text": "private void draw(){\r\n String fname = null;\r\n fname = this.imageName + \"/\" + this.direction + \"-\" + this.emotion + \".png\"; \r\n UI.drawImage(fname, this.figureX, this.figureY, this.figureWidth, this.figureHeight);\r\n UI.sleep(500);\r\n }", "title": "" }, { "docid": "b6ffe20c1a26c20995592a878cca84e2", "score": "0.6476218", "text": "public static void drawPicture3(Graphics2D g2) {\r\n\t\r\n\t// label the drawing\r\n\t\r\n\tg2.drawString(\"A bunch of angry robots by Yantsey Tsai\", 20,20);\r\n\r\n\t\r\n\t// Draw some angry robots.\r\n\t\r\n AngryRobot ar1 = new AngryRobot(50,250,40,90);\r\n AngryRobot ar2 = new AngryRobot(320,180,140,190);\r\n Shape ar3 = ShapeTransforms.rotatedCopyOf(ar2, Math.PI/4.0);\r\n g2.setColor(Color.RED); g2.draw(ar1);\r\n g2.setColor(Color.GREEN); g2.draw(ar3);\r\n \r\n \r\n }", "title": "" }, { "docid": "13685dbc35a4155b509502adca2238d7", "score": "0.6408463", "text": "public void draw() {\n image.fillRect(7, 7, 16, 16);//interior\n //image.setColor(new java.awt.Color(0, 0, 0));\n image.fillRect(0, 0, 30, 30);//bodor\n setImage(image);\n }", "title": "" }, { "docid": "db83adb1b9ccb30e9cf7726a1599979f", "score": "0.6388993", "text": "public void drawLogo(){\n monitors.drawPixelAt(1200,50, \"Yellow\");//better way\n }", "title": "" }, { "docid": "ce99625c6c0d5865c9090ce6bd6a0a6c", "score": "0.6366343", "text": "public void render() {\n float theta = vel.heading2D() + radians(90);\n if (!thumbs){\n fill(175);\n stroke(0);\n pushMatrix();\n translate(loc.x,loc.y);\n rotate(theta);\n beginShape(TRIANGLES);\n vertex(0, -r*2);\n vertex(-r, r*2);\n vertex(r, r*2);\n endShape();\n popMatrix();\n } else {\n pushMatrix();\n translate(loc.x,loc.y);\n rotate(theta);\n scale(0.08f,0.08f);\n if(!ext)\n image(yo,0,0);\n else\n image(noyo,0,0);\n popMatrix();\n }\n }", "title": "" }, { "docid": "9b0707b9182aa6ed3f747b87c61718ed", "score": "0.632286", "text": "public void draw() {\n\t\tthis.app.image(this.img,this.app.mouseX*850/1000,this.y,this.WIDTH,this.HEIGHT);\n\t}", "title": "" }, { "docid": "238f9cbdcf4440bcffe8ec23d3a6ae01", "score": "0.631337", "text": "void draw()\n\t{\n\t\t/* Clear the screen */\n\t\tPPSim.dp.clear(canvasColor);\n\n\t\t// Draw predators\n\t\tfor(Predator p: predators)\n\t\t{\n\t\t\tPPSim.dp.drawSquare(p.getAnimalX(), p.getAnimalY(),p.getColor());\n\t\t}\n\t\t//draw prey\n\t\tfor(Prey p: prey)\n\t\t{\n\t\t\tPPSim.dp.drawCircle(p.getAnimalX(), p.getAnimalY(), p.getColor());\n\t\t}\n\t}", "title": "" }, { "docid": "857fcace14219f28de8dfe4482a50dde", "score": "0.6302334", "text": "public void draw() {\n fill(random(0, 255), random(0, 255), random(0, 255));\n ellipse(random(0, 1000), random(0, 1000), 30, 10);\n }", "title": "" }, { "docid": "2fbed0443c1c59763e2d3704e9f0c5f9", "score": "0.6292408", "text": "private void drawImages() {\n // Background image\n host.batch.draw(background,0,0);\n\n // Language buttons\n host.batch.draw(enGBButtonTex, enGBButtonRec.getX(), enGBButtonRec.getY());\n host.batch.draw(fiFIButtonTex, fiFIButtonRec.getX(), fiFIButtonRec.getY());\n\n // Logo picture\n host.batch.draw(logoTex, host.camera.getPositionX() - logoTex.getWidth()/2,host.camera.getPositionY() + 60);\n }", "title": "" }, { "docid": "c6c244fbc9bb82b78175be9772908b00", "score": "0.62875324", "text": "WorldImage drawLoA();", "title": "" }, { "docid": "250504fc1fe71b82dc4170292ce7be33", "score": "0.6225241", "text": "private void setPicture(){\n Random rand=new Random();\n if (shape==0){ //lines\n Color c=new Color(rand.nextInt(256),rand.nextInt(256),rand.nextInt(256),rand.nextInt(256));\n Line line=new Line(rand.nextInt(800),rand.nextInt(800),rand.nextInt(800),rand.nextInt(800),c);\n picture.add(line);\n }\n if (shape==1){ //bounded shapes\n Color c=new Color(rand.nextInt(256),rand.nextInt(256),rand.nextInt(256),rand.nextInt(256));\n boolean randomTheBoundedShape=rand.nextBoolean(); //random chose between oval and rectangle\n if (randomTheBoundedShape){ //chose oval\n Oval oval=new Oval(rand.nextInt(500),rand.nextInt(500),rand.nextInt(500),rand.nextInt(500),c,rand.nextBoolean());\n picture.add(oval);\n }else {//chose rectangle\n Rectangle rect=new Rectangle(rand.nextInt(800),rand.nextInt(500),rand.nextInt(500),rand.nextInt(500),c,rand.nextBoolean());\n picture.add(rect);\n }\n }\n if (shape==2){//all shapes\n shape=rand.nextInt(2);//random the shape and call the set picture method\n setPicture();\n shape=2; //set back the shape to all shapes\n }\n }", "title": "" }, { "docid": "dd8d917487cd44f3fcdf9cd04827c9d1", "score": "0.6217826", "text": "WorldImage draw(int width, int height, Color wireColor) {\n WorldImage background = new RectangleImage(width, \n height, OutlineMode.SOLID, Color.DARK_GRAY);\n \n if (this.right) {\n WorldImage line = new LineImage(new Posn(width / 2, 0),\n wireColor).movePinhole(- width / 4.0, 0);\n background = new OverlayImage(line, background);\n }\n if (this.left) {\n WorldImage line = new LineImage(new Posn(width / 2, 0),\n wireColor).movePinhole(width / 4.0, 0);\n background = new OverlayImage(line, background);\n }\n if (this.top) {\n WorldImage line = new LineImage(new Posn(0, height / 2),\n wireColor).movePinhole(0, height / 4.0);\n background = new OverlayImage(line, background);\n }\n if (this.bottom) {\n WorldImage line = new LineImage(new Posn(0, height / 2),\n wireColor).movePinhole(0, - height / 4.0);\n background = new OverlayImage(line, background);\n }\n \n if (this.powerStation) {\n WorldImage triangle1 = new TriangleImage(new Posn(0, 0), new Posn(0, height),\n new Posn(width * 3 / 10, height), OutlineMode.SOLID, Color.CYAN);\n WorldImage triangle2 = new TriangleImage(new Posn(0, 0), new Posn(0, height),\n new Posn(- width * 3 / 10, height), OutlineMode.SOLID, Color.CYAN);\n \n WorldImage otriangle1 = new TriangleImage(new Posn(0, 0), new Posn(0, height),\n new Posn(width * 3 / 10, height), OutlineMode.OUTLINE, Color.YELLOW);\n WorldImage otriangle2 = new TriangleImage(new Posn(0, 0), new Posn(0, height),\n new Posn(- width * 3 / 10, height), OutlineMode.OUTLINE, Color.YELLOW);\n \n WorldImage mainTriangle = new BesideImage(triangle2,\n triangle1).movePinholeTo(new Posn(0, 20));\n WorldImage oTriangle = new BesideImage(otriangle2,\n otriangle1).movePinholeTo(new Posn(0, 20));\n mainTriangle = new OverlayImage(oTriangle, mainTriangle);\n int angle = 51;\n WorldImage ps = new EmptyImage();\n for (int i = 0; i < 7; i++) {\n ps = new OverlayImage(ps, new RotateImage(mainTriangle, angle * i));\n }\n ps = new ScaleImage(ps, 0.1);\n background = new OverlayImage(ps, background);\n }\n \n return background;\n }", "title": "" }, { "docid": "e46a281198a46300d67ecfd900e07562", "score": "0.6190865", "text": "public void draw ()\r\n {\r\n\t//local colour variable for the sky\r\n\tColor skyBlue = new Color (0, 0, 51);\r\n\t//local colour variable for the grass\r\n\tColor grassGreen = new Color (0, 51, 0);\r\n\t//local colour variable for the moon\r\n\tColor moonGrey = new Color (192, 192, 192);\r\n\t//local colour variable for the stars\r\n\tColor starYellow = new Color (255, 255, 102);\r\n\t//local colour variable for some building walls\r\n\tColor buildingBrown = new Color (205, 184, 135);\r\n\t//local colour variable for the building roofs\r\n\tColor roofBrown = new Color (102, 51, 0);\r\n\t//local colour variable for the building windows\r\n\tColor windowLight = new Color (255, 255, 0);\r\n\t//local colour variable for the pathway\r\n\tColor pathGrey = new Color (50, 50, 50);\r\n\t//local colour variable for the gravestones\r\n\tColor gravestoneGrey = new Color (215, 215, 215);\r\n\r\n\t//loop used to create the sky\r\n\tfor (int x = 0 ; x < 640 ; x++)\r\n\t{\r\n\t c.setColor (skyBlue);\r\n\t c.drawRect (0, 0, x, 500);\r\n\t}\r\n\r\n\t//loop used to create moon\r\n\tfor (int x = 0 ; x < 40 ; x++)\r\n\t{\r\n\t c.setColor (moonGrey);\r\n\t c.drawOval (200 + x, 40 + x, 75 - 2 * x, 75 - 2 * x);\r\n\t}\r\n\r\n\r\n\t//loop used to create the stars\r\n\tfor (int x = 0 ; x < 10 ; x++)\r\n\t{\r\n\t c.setColor (starYellow);\r\n\t c.drawStar (40 + x, 80 + x, 20 - 2 * x, 20 - 2 * x);\r\n\t c.drawStar (120 + x, 160 + x, 20 - 2 * x, 20 - 2 * x);\r\n\t c.drawStar (320 + x, 40 + x, 20 - 2 * x, 20 - 2 * x);\r\n\t c.drawStar (480 + x, 10 + x, 20 - 2 * x, 20 - 2 * x);\r\n\t c.drawStar (560 + x, 60 + x, 20 - 2 * x, 20 - 2 * x);\r\n\t c.drawStar (440 + x, 100 + x, 20 - 2 * x, 20 - 2 * x);\r\n\t c.drawStar (140 + x, 20 + x, 20 - 2 * x, 20 - 2 * x);\r\n\t c.drawStar (20 + x, 180 + x, 20 - 2 * x, 20 - 2 * x);\r\n\t c.drawStar (580 + x, 180 + x, 20 - 2 * x, 20 - 2 * x);\r\n\t c.drawStar (280 + x, 120 + x, 20 - 2 * x, 20 - 2 * x);\r\n\t}\r\n\r\n\r\n\t//loop used to create the building roofs\r\n\tfor (int x = 0 ; x < 30 ; x++)\r\n\t{\r\n\t c.setColor (roofBrown);\r\n\t c.drawLine (265 - 15 + x, 162, 265, 152);\r\n\t c.drawLine (200 - 15 + x, 185, 200, 175);\r\n\t c.drawLine (240 - 15 + x, 165, 240, 155);\r\n\t c.drawLine (250 - 15 + x, 175, 250, 165);\r\n\t c.drawLine (275 - 15 + x, 180, 275, 170);\r\n\t c.drawLine (290 - 15 + x, 170, 290, 160);\r\n\t c.drawLine (367 - 15 + x, 190, 367, 180);\r\n\t c.drawLine (390 - 15 + x, 167, 390, 157);\r\n\t c.drawLine (215 - 15 + x, 188, 215, 178);\r\n\t c.drawLine (350 - 15 + x, 180, 350, 170);\r\n\t c.drawLine (415 - 15 + x, 192, 415, 182);\r\n\t}\r\n\r\n\t//loop used to create the village buildings\r\n\tfor (int x = 0 ; x < 20 ; x++)\r\n\t{\r\n\t c.setColor (Color.gray);\r\n\t c.drawLine (255 + x, 162, 255 + x, 205);\r\n\t c.setColor (buildingBrown);\r\n\t c.drawLine (190 + x, 185, 190 + x, 205);\r\n\t c.drawLine (230 + x, 165, 230 + x, 205);\r\n\t c.drawLine (235 + x, 175, 235 + x, 205);\r\n\t c.drawLine (265 + x, 180, 265 + x, 205);\r\n\t c.drawLine (280 + x, 170, 280 + x, 205);\r\n\t c.drawLine (357 + x, 190, 357 + x, 205);\r\n\t c.drawLine (380 + x, 167, 380 + x, 205);\r\n\t c.setColor (Color.gray);\r\n\t c.drawLine (205 + x, 188, 205 + x, 205);\r\n\t c.drawLine (340 + x, 180, 340 + x, 205);\r\n\t c.drawLine (405 + x, 192, 405 + x, 205);\r\n\t}\r\n\r\n\t//loop used to create the building windows\r\n\tfor (int x = 0 ; x < 8 ; x++)\r\n\t{\r\n\t c.setColor (windowLight);\r\n\t c.drawLine (261 + x, 187, 261 + x, 195);\r\n\t c.drawLine (261 + x, 167, 261 + x, 175);\r\n\t c.drawLine (196 + x, 190, 196 + x, 198);\r\n\t c.drawLine (236 + x, 175, 236 + x, 195);\r\n\t c.drawLine (286 + x, 177, 286 + x, 190);\r\n\t c.drawLine (364 + x, 192, 364 + x, 197);\r\n\t c.drawLine (386 + x, 187, 386 + x, 195);\r\n\t c.drawLine (386 + x, 172, 386 + x, 180);\r\n\t}\r\n\r\n\r\n\t//loop used to create the hill\r\n\tfor (int x = 0 ; x < 1080 ; x++)\r\n\t{\r\n\t c.setColor (grassGreen);\r\n\t c.drawOval (-215 + x, 200 + x, 1080 - 2 * x, 400 - 2 * x);\r\n\t}\r\n\r\n\t//loop used to create the path\r\n\tfor (int x = 0 ; x < 160 ; x++)\r\n\t{\r\n\t c.setColor (pathGrey);\r\n\t c.drawLine (320, 185, 320 - 80 + x, 300);\r\n\t}\r\n\r\n\r\n\t//loop used to erase part of the path\r\n\tfor (int x = 0 ; x < 16 ; x++)\r\n\t{\r\n\t c.setColor (skyBlue);\r\n\t c.drawLine (310, 185 + x, 330, 185 + x);\r\n\t}\r\n\r\n\r\n\t//loop used to create the fence and the gate\r\n\tfor (int x = 0 ; x < 10 ; x++)\r\n\t{\r\n\t c.setColor (Color.black);\r\n\t c.drawLine (x, 200, x, 300);\r\n\t c.drawLine (40 + x, 220, 40 + x, 300);\r\n\t c.drawLine (80 + x, 220, 80 + x, 300);\r\n\t c.drawLine (120 + x, 200, 120 + x, 300);\r\n\t c.drawLine (160 + x, 220, 160 + x, 300);\r\n\t c.drawLine (200 + x, 220, 200 + x, 300);\r\n\t c.drawLine (240 + x, 180, 240 + x, 300);\r\n\t c.drawLine (390 + x, 180, 390 + x, 300);\r\n\t c.drawLine (430 + x, 220, 430 + x, 300);\r\n\t c.drawLine (470 + x, 220, 470 + x, 300);\r\n\t c.drawLine (510 + x, 200, 510 + x, 300);\r\n\t c.drawLine (550 + x, 220, 550 + x, 300);\r\n\t c.drawLine (590 + x, 220, 590 + x, 300);\r\n\t c.drawLine (630 + x, 200, 630 + x, 300);\r\n\t c.drawLine (0, 220 + x, 240, 220 + x);\r\n\t c.drawLine (390, 220 + x, 640, 220 + x);\r\n\t c.drawArc (240 + x, 105, 150, 150, 0, 180);\r\n\t}\r\n\r\n\t//loop used to create the rectangular part of the gravestones\r\n\tfor (int x = 0 ; x < 80 ; x++)\r\n\t{\r\n\t c.setColor (gravestoneGrey);\r\n\t c.drawLine (40 + x, 280, 40 + x, 320);\r\n\t c.drawLine (160 + x, 280, 160 + x, 320);\r\n\t c.drawLine (400 + x, 280, 400 + x, 320);\r\n\t c.drawLine (520 + x, 280, 520 + x, 320);\r\n\t}\r\n\r\n\t//loop used to create the rounded part of the gravestones\r\n\tfor (int x = 0 ; x < 40 ; x++)\r\n\t{\r\n\t c.setColor (gravestoneGrey);\r\n\t c.drawArc (40, 240 + x, 79, 80, 0, 180);\r\n\t c.drawArc (160, 240 + x, 79, 80, 0, 180);\r\n\t c.drawArc (400, 240 + x, 79, 80, 0, 180);\r\n\t c.drawArc (520, 240 + x, 79, 80, 0, 180);\r\n\r\n\t}\r\n\r\n\t//Text\r\n\tc.setColor (Color.black);\r\n\tc.setFont (new Font (\"Cambria\", Font.BOLD, 18));\r\n\tc.drawString (\"Tricker\", 48, 280);\r\n\tc.drawString (\"Treat\", 56, 300);\r\n\tc.drawString (\"By\", 189, 290);\r\n\tc.drawString (\"Juleen\", 414, 290);\r\n\tc.drawString (\"Chen\", 540, 290);\r\n\r\n }", "title": "" }, { "docid": "cd145b07fef8adcc88e3faa36ec4b57b", "score": "0.615244", "text": "@Override\r\n public void draw(Graphics g) {\r\n int asteroidX = ufo.getLocation().getAsteroidView().position.x;\r\n int asteroidY = ufo.getLocation().getAsteroidView().position.y;\r\n BufferedImage image = LoadImages.images.get(imageName);\r\n g.drawImage(image, asteroidX + 4, asteroidY - 1, null);\r\n }", "title": "" }, { "docid": "36e0c096d6ee7b7945fb053ced499c51", "score": "0.6132361", "text": "@Override\r\n protected void paintComponent(Graphics g) {\r\n super.paintComponent(g);\r\n g.drawImage(volvoImage, volvoPoint.x, volvoPoint.y, null); // see javadoc for more info on the parameters\r\n g.drawImage(saabImage, saabPoint.x, saabPoint.y + 100, null);\r\n g.drawImage(scaniaImage, scaniaPoint.x, scaniaPoint.y + 200, null);\r\n\r\n }", "title": "" }, { "docid": "70e8972f500c2dd3af31a6f93c3b736c", "score": "0.6130305", "text": "public void draw() {\n\t\tif (visible) {\n\t\t\tif (chooseEnemy == 0) {\n\t \t\t//naranja\n\t \t\tapp.imageMode(PConstants.CENTER);\n\t \t\tapp.image(enemy1, x, y, width, height);\n\t\t\t} else {\n\t\t\t\t//magenta\n\t\t\t\tapp.imageMode(PConstants.CENTER);\n\t\t\t\tapp.image(enemy2, x, y, width, height);\n\t\t\t}\t\t\n\t\t}\n \n\t}", "title": "" }, { "docid": "11ee1ac5893c8fc227fbe8358e062dd9", "score": "0.6129274", "text": "public void draw() {\n\t\tthis.game.image(bimg, x, y);\n\t}", "title": "" }, { "docid": "b5c0f6e38a0815686935521bbb15562f", "score": "0.6128084", "text": "public void draw() {\n\t\tBufferedImage buffer = new BufferedImage(GraphicsMain.WIDTH, GraphicsMain.HEIGHT, BufferedImage.TYPE_INT_ARGB);\r\n\t\tGraphics2D gBuffer = (Graphics2D)buffer.getGraphics(); \r\n\t\tdrawGround(gBuffer);\r\n\t\tdrawWorld(gBuffer);\r\n\t\tg.drawImage(buffer, 0, 0, GraphicsMain.WIDTH, GraphicsMain.HEIGHT, null);\r\n\t\t//zoom in\r\n\t\t//g.drawImage(buffer, -1200, -1200, 5000, (int)(5000*((double)GraphicsMain.HEIGHT/GraphicsMain.WIDTH)), null);\r\n\t}", "title": "" }, { "docid": "60fc38c68f81566cdf72ae9a37489423", "score": "0.6115583", "text": "public static void drawPicture1(Graphics2D g2) {\r\n\r\n\tGameBoy gb1 = new GameBoy(10,200,100,200);\r\n\tg2.setColor(Color.CYAN); g2.draw(gb1);\r\n\t\r\n\t// Make a black GameBoy that's half the size, \r\n\t// and moved over 150 pixels in x direction\r\n\r\n\tShape gb2 = ShapeTransforms.scaledCopyOfLL(gb1,0.5,0.5);\r\n\tgb2 = ShapeTransforms.translatedCopyOf(gb2,150,0);\r\n\tg2.setColor(Color.BLACK); g2.draw(gb2);\r\n\t\r\n\t// Here's a GameBoy that's 4x as big (2x the original)\r\n\t// and moved over 150 more pixels to right.\r\n\tgb2 = ShapeTransforms.scaledCopyOfLL(gb2,4,4);\r\n\tgb2 = ShapeTransforms.translatedCopyOf(gb2,150,0);\r\n\t\r\n\t// We'll draw this with a thicker stroke\r\n\tStroke thick = new BasicStroke (4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL); \r\n\t\r\n\t// for hex colors, see (e.g.) http://en.wikipedia.org/wiki/List_of_colors\r\n\t// #002FA7 is \"International Klein Blue\" according to Wikipedia\r\n\t// In HTML we use #, but in Java (and C/C++) its 0x\r\n\t\r\n\tStroke orig=g2.getStroke();\r\n\tg2.setStroke(thick);\r\n\tg2.setColor(new Color(0x002FA7)); \r\n\tg2.draw(gb2); \r\n\t\r\n\t\r\n\t// Draw two GameBoys with Buttons\r\n\t\r\n\tGameBoyWithButtons gbb1 = new GameBoyWithButtons(50,50,40,65);\r\n\tGameBoyWithButtons gbb2 = new GameBoyWithButtons(200,50,100,200);\r\n\tg2.setStroke(orig);\r\n\tg2.draw(gbb1);\r\n\tg2.setColor(new Color(0x8F00FF)); g2.draw(gbb2);\r\n\t\r\n\t// @@@ FINALLY, SIGN AND LABEL YOUR DRAWING\r\n\t\r\n\t//g2.setStroke(orig);\r\n\tg2.setColor(Color.BLACK); \r\n\tg2.drawString(\"A few GameBoys by Michele Haque\", 20,20);\r\n }", "title": "" }, { "docid": "4ad5200f373852648236241bd2def14f", "score": "0.6088734", "text": "public void drawNodes(Graphics g, int MAXSIZE, int width, int height) {\n\t\t\n\t\tString fName = \"Tuck\" + MAXSIZEIMAGE + \".png\";\n\t\t//System.out.println(fName);\n\t\tFile cFile = new File(fName);\n\t\t\n\t\t//File cFile = new File(\"Tuck.png\");\n\t\tString filePath = cFile.getAbsolutePath();\n\t\tString newFilePath = filePath.replace(\"bin\\\\\", \"\");\n\t\t\n\t\tBufferedImage image = null;\n\t\ttry {\n\t\t\timage = ImageIO.read(new File(newFilePath));\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//g.drawImage(image, MAXSIZE, 0, null);\n\t\tg.drawImage(image, MAXSIZE + IMAGEX, IMAGEY, null);\n\t\t//System.out.println(\"f: \" + (MAXSIZE + IMAGEX));\n\n\t\tg.setColor(Color.RED);\n\t\t//g.fillOval(MAXSIZE + this.myLocation.getX(), this.myLocation.getY(), width, height);\n\t\t//System.out.println(\"t: \" + (MAXSIZE + IMAGEX + this.myLocation.getX()));\n\t\tg.fillOval(MAXSIZE + IMAGEX + this.myLocation.getX(), IMAGEY + this.myLocation.getY(), width, height);\n\t\tg.setColor(Color.BLACK);\n\n\t\t// need to get the locations of other nodes\n\t\t// need to put them on the screen\n\t\t// for()\n\t\t// need to get the keyset from nodeInfoMap\n\t\t// iterate over it\n\t\t// print a node in the location from the Location within Nodeinfo\n\t\tSet<String> nodeInfoKeys = nodeInfoMap.keySet();\n\t\tint x = 0;\n\t\tint y = 0;\n\t\t// System.out.println(\"I drew something\");\n\t\tfor (String key : nodeInfoKeys) {\n\t\t\tx = nodeInfoMap.get(key).getMyLocation().getX();\n\t\t\ty = nodeInfoMap.get(key).getMyLocation().getY();\n\t\t\tif (!this.nodeID.equals(key)) {\n\t\t\t\tSystem.out.println(MAXSIZE + IMAGEX + x);\n\t\t\t\tg.fillOval(MAXSIZE + IMAGEX + x, IMAGEY + y, width, height);\n\t\t\t}\n\t\t\t// System.out.println(\"I should have drawn other nodes\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "e44dbaf26927cc7e013e6e3f351cc859", "score": "0.6058041", "text": "public void paintComponent(Graphics g){\r\n\t\tr[0] = new Rectangle2D.Double(xPos+5,yPos,30,57);\r\n\t\tr[1] = new Rectangle2D.Double(obx[0],oby[0],36,36);\r\n\t\tr[2] = new Rectangle2D.Double(obx[1],oby[1],32,33);\r\n\t\tr[3] = new Rectangle2D.Double(obx[2],oby[2],32,33);\r\n\t\tr[4] = new Rectangle2D.Double(obx[3],oby[3],32,33);\r\n\t\tr[5] = new Rectangle2D.Double(obx[4],oby[4],32,33);\r\n\t\tr[6] = new Rectangle2D.Double(obx[5],oby[5],32,33);\r\n\t\tr[7] = new Rectangle2D.Double(obx[6],oby[6],10,40);\r\n\t\tr[8] = new Rectangle2D.Double(obx[7],oby[7]+40,20,30);\r\n\t\tr[9] = new Rectangle2D.Double(obx[8],oby[8],36,36);\r\n\t\tr[10] = new Rectangle2D.Double(obx[9],oby[9],37,40);\r\n\t\tr[11] = new Rectangle2D.Double(obx[10],oby[10],35,35);\r\n\t\tr[12] = new Rectangle2D.Double(obx[11],oby[11],36,36);\r\n\t\tr[13] = new Rectangle2D.Double(obx[12],oby[12],36,36);\r\n\t\tr[14] = new Rectangle2D.Double(obx[13],oby[13],70,70);\r\n\t\tr[15] = new Rectangle2D.Double(obx[14],oby[14],110,105);\r\n\t\tr[16] = new Rectangle2D.Double(obx[15],oby[15],35,35);\r\n\t\tr[17] = new Rectangle2D.Double(obx[16],oby[16],35,35);\r\n\t\tr[18] = new Rectangle2D.Double(obx[17],oby[17],35,35);\r\n\t\tr[19] = new Rectangle2D.Double(obx[18],oby[18],35,35);\r\n\t\tr[20] = new Rectangle2D.Double(obx[19],oby[19],35,35);\r\n\t\tr[21] = new Rectangle2D.Double(obx[20],oby[20],35,35);\r\n\t\tr[22] = new Rectangle2D.Double(obx[21],oby[21],35,35);\r\n\t\tr[23] = new Rectangle2D.Double(obx[22],oby[22],35,35);\r\n\t\tr[24] = new Rectangle2D.Double(obx[23],oby[23],70,70);\r\n\t\tr[25] = new Rectangle2D.Double(obx[24],oby[24],99,103);\r\n\t\tr[26] = new Rectangle2D.Double(obx[25],oby[25],142,69);\r\n\t\tr[27] = new Rectangle2D.Double(obx[26],oby[26]+15,40,25);\r\n\t\tr[28] = new Rectangle2D.Double(obx[27]-40,oby[27],10,10);\r\n\t\tr[29] = new Rectangle2D.Double(obx[28]-40,oby[28],10,10);\r\n\t\tr[30] = new Rectangle2D.Double(obx[29]-30,oby[29],30,10);\r\n\t\tr[31] = new Rectangle2D.Double(obx[30],oby[30],40,10);\r\n\t\tr[32] = new Rectangle2D.Double(obx[31],oby[31],10,20);\r\n\t\tr[33] = new Rectangle2D.Double(obx[32],oby[32],40,50);\r\n\r\n\t\t//for 1st jump\r\n\t\tr[34] = new Rectangle2D.Double(obx[33],oby[33],82,10);\r\n\t\t\t\t//\r\n\t\t\t\tr[35] = new Rectangle2D.Double(obx[34],oby[34],31,5);\r\n\t\t\t\tr[36] = new Rectangle2D.Double(obx[35],oby[35],31,20);\r\n\t\t\t\t//calling super to clean slate\r\n\t\t\t\tsuper.paintComponent(g); \r\n\r\n\t\t\t\t//casting from graphics to graphics2d\r\n\t\t\t\tGraphics2D g2d = (Graphics2D) g;\r\n\r\n\t\t\t\tlb5.setBounds(cd,520,53,61);\r\n\t\t\t\tlb6.setBounds(cd2,500,53,61);\r\n\t\t\t\tlb7.setBounds(cd3-45,490,100,100);\r\n\t\t\t\tlb8.setBounds(cd4,510,30,30);\r\n\t\t\t\t//drawing rectangle for collision detection\r\n\r\n\t\t\t\tfor(int i=0; i<=36; i++){\r\n\t\t\t\t\tg2d.draw(r[i]);\r\n\t\t\t\t} \r\n\r\n\t\t\t\t//drawing framesets\r\n\t\t\t\tg2d.drawImage(frame2,f2x,0,null);\r\n\t\t\t\tg2d.drawImage(frame3,f3x,0,null);\r\n\t\t\t\tg2d.drawImage(frame4,f4x,0,null);\r\n\t\t\t\tg2d.drawImage(frame5,f5x,0,null);\r\n\t\t\t\tg2d.drawImage(frame6,f6x,0,null);\r\n\t\t\t\tg2d.drawImage(frame1,f1x,0,null);\r\n\t\t\t\tg2d.drawImage(muimg,708,10,null);\r\n\t\t\t\tg2d.drawImage(eimg,exd-35,eyd,null);\r\n\r\n\r\n\t\t\t\t//drawing mario\r\n\t\t\t\tg2d.drawImage(direction,xPos,yPos,null);\r\n\r\n\t\t\t\t//jumping\r\n\t\t\t\tif((yPos>510)&&(jDown==0)&&arc==0){\r\n\t\t\t\t\tyPos += jump;\r\n\t\t\t\t}\r\n\t\t\t\telse if((yPos>510)&&(jDown==0)&&arc==1){\r\n\t\t\t\t\tyPos += jump;\r\n\t\t\t\t\txPos += 1 ;\r\n\r\n\t\t\t\t\tSystem.out.println(\"arc: \" +arc);\r\n\t\t\t\t}\r\n\t\t\t\telse if((yPos<=509||jDown==1)&&jUp==0&&arc==1){\r\n\t\t\t\t\tyPos -= jump;\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\txPos += 2 ;\r\n\t\t\t\t\t//setting jump face\r\n\t\t\t\t\tif(direction==jumpRight){\r\n\t\t\t\t\t\tdirection = stillRight;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(direction==jumpLeft){\r\n\t\t\t\t\t\tdirection = stillLeft;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(yPos==613){\r\n\t\t\t\t\t\tjUp=1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if((yPos<=509||jDown==1)&&jUp==0){\r\n\t\t\t\t\tyPos -= jump;\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\t//setting jump face\r\n\t\t\t\t\tif(direction==jumpRight){\r\n\t\t\t\t\t\tdirection = stillRight;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(direction==jumpLeft){\r\n\t\t\t\t\t\tdirection = stillLeft;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(yPos==613){\r\n\t\t\t\t\t\tjUp=1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\t\t\t\t//collision detrection starts here\r\n\t\t\t\tif(r[0].intersects(r[35])==true){\r\n\t\t\t\t\tcheck[29]=1;\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\r\n\t\t\t\t\ttry{\r\n\r\n\t\t\t\t\t\tClip coin;\r\n\t\t\t\t\t\tFile cFile=new File(\"resources/sounds/coin.wav\");\r\n\t\t\t\t\t\tAudioInputStream cstream;\r\n\t\t\t\t\t\tAudioFormat cformat;\r\n\t\t\t\t\t\tDataLine.Info cinfo;\r\n\t\t\t\t\t\tcstream = AudioSystem.getAudioInputStream(cFile);\r\n\t\t\t\t\t\tcformat = cstream.getFormat();\r\n\t\t\t\t\t\tcinfo = new DataLine.Info(Clip.class, cformat);\r\n\t\t\t\t\t\tcoin = (Clip) AudioSystem.getLine(cinfo);\r\n\t\t\t\t\t\tcoin.open(cstream);\r\n\t\t\t\t\t\tcoin.loop(0);\r\n\t\t\t\t\t\tcoin.start();\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[29]==1){\r\n\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tcoinUsedPath = \"resources/images/sprites/objects/block.png\";\r\n\t\t\t\t\t\tcoinUsed=ImageIO.read(new File(coinUsedPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinUsed,obx[34],oby[34]-25,null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(r[0].intersects(r[34])==true){\r\n\t\t\t\t\tSystem.out.println(\"Died\");\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\r\n\t\t\t\tif(r[0].intersects(r[33])==true){\r\n\t\t\t\t\tSystem.out.println(\"Died\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(r[0].intersects(r[31])==true){\r\n\t\t\t\t\tscore+=5;\r\n\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\tcheck[28] = 1;\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\tClip coin;\r\n\t\t\t\t\t\tFile cFile=new File(\"resources/sounds/coin.wav\");\r\n\t\t\t\t\t\tAudioInputStream cstream;\r\n\t\t\t\t\t\tAudioFormat cformat;\r\n\t\t\t\t\t\tDataLine.Info cinfo;\r\n\t\t\t\t\t\tcstream = AudioSystem.getAudioInputStream(cFile);\r\n\t\t\t\t\t\tcformat = cstream.getFormat();\r\n\t\t\t\t\t\tcinfo = new DataLine.Info(Clip.class, cformat);\r\n\t\t\t\t\t\tcoin = (Clip) AudioSystem.getLine(cinfo);\r\n\t\t\t\t\t\tcoin.open(cstream);\r\n\t\t\t\t\t\tcoin.loop(0);\r\n\t\t\t\t\t\tcoin.start();\r\n\r\n\t\t\t\t\t}catch (Exception e){} \r\n\t\t\t\t}\r\n\t\t\t\tif(check[28]==1){\r\n\t\t\t\t\tlb6.setLocation(-1000,-1000);\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\t\t\t\tif(r[0].intersects(r[30])==true){\r\n\t\t\t\t\tSystem.out.print(\" Enemy Died\");\r\n\t\t\t\t\tscore+=5;\r\n\t\t\t\t\teyd = 600;\r\n\t\t\t\t\tepath = \"resources/images/denemy.png\";\r\n\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\teimg = ImageIO.read(new File(epath));\r\n\t\t\t\t\t} catch (Exception e){}\r\n\r\n\t\t\t\t\twhile(yPos>512){\r\n\t\t\t\t\t\tyPos--;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(yPos<=512){\r\n\t\t\t\t\t\tyPos++;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tw = new FileWriter(\"Score.txt\");\r\n\t\t\t\t\t\tif(score>=hsp.sint){\r\n\t\t\t\t\t\t\tw.write(\"\"+score);\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\telse { \r\n\t\t\t\t\t\t\tw.write(\"\"+hsp.sint);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tw.close();\r\n\t\t\t\t\t} catch(Exception we){}\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\r\n\t\t\t\tif(r[0].intersects(r[29])==true){\r\n\t\t\t\t\tSystem.out.print(\"Died\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tw = new FileWriter(\"Score.txt\");\r\n\t\t\t\t\t\tif(score>=hsp.sint){\r\n\t\t\t\t\t\t\tw.write(\"\"+score);\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\telse { \r\n\t\t\t\t\t\t\tw.write(\"\"+hsp.sint);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tw.close();\r\n\t\t\t\t\t} catch(Exception we){}\r\n\t\t\t\t\tSystem.exit(1);\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\tif(r[0].intersects(r[28])==true){\r\n\t\t\t\t\tSystem.out.print(\"Died\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tw = new FileWriter(\"Score.txt\");\r\n\t\t\t\t\t\tif(score>=hsp.sint){\r\n\t\t\t\t\t\t\tw.write(\"\"+score); \r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\telse { \r\n\t\t\t\t\t\t\tw.write(\"\"+hsp.sint);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tw.close();\r\n\t\t\t\t\t} catch(Exception we){}\r\n\t\t\t\t\tSystem.exit(1);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(r[0].intersects(r[27])==true){\r\n\t\t\t\t\tscore+=5;\r\n\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\tcheck[27] = 1;\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\tClip coin;\r\n\t\t\t\t\t\tFile cFile=new File(\"resources/sounds/coin.wav\");\r\n\t\t\t\t\t\tAudioInputStream cstream;\r\n\t\t\t\t\t\tAudioFormat cformat;\r\n\t\t\t\t\t\tDataLine.Info cinfo;\r\n\t\t\t\t\t\tcstream = AudioSystem.getAudioInputStream(cFile);\r\n\t\t\t\t\t\tcformat = cstream.getFormat();\r\n\t\t\t\t\t\tcinfo = new DataLine.Info(Clip.class, cformat);\r\n\t\t\t\t\t\tcoin = (Clip) AudioSystem.getLine(cinfo);\r\n\t\t\t\t\t\tcoin.open(cstream);\r\n\t\t\t\t\t\tcoin.loop(0);\r\n\t\t\t\t\t\tcoin.start();\r\n\r\n\t\t\t\t\t}catch (Exception e){} \r\n\t\t\t\t}\r\n\t\t\t\tif(check[27]==1){\r\n\t\t\t\t\tlb5.setLocation(-1000,-1000);\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\r\n\t\t\t\tif(r[0].intersects(r[1])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[0]=1;\r\n\t\t\t\t\ttry{\r\n\r\n\t\t\t\t\t\tcoinAnimPath = \"resources/images/sprites/objects/coin_anim.png\";\r\n\t\t\t\t\t\tcoinAnim=ImageIO.read(new File(coinAnimPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinAnim,obx[0],oby[0]-50,null); \r\n\t\t\t\t\t\tscore+=5;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\r\n\t\t\t\t\t\tClip coin;\r\n\t\t\t\t\t\tFile cFile=new File(\"resources/sounds/coin.wav\");\r\n\t\t\t\t\t\tAudioInputStream cstream;\r\n\t\t\t\t\t\tAudioFormat cformat;\r\n\t\t\t\t\t\tDataLine.Info cinfo;\r\n\t\t\t\t\t\tcstream = AudioSystem.getAudioInputStream(cFile);\r\n\t\t\t\t\t\tcformat = cstream.getFormat();\r\n\t\t\t\t\t\tcinfo = new DataLine.Info(Clip.class, cformat);\r\n\t\t\t\t\t\tcoin = (Clip) AudioSystem.getLine(cinfo);\r\n\t\t\t\t\t\tcoin.open(cstream);\r\n\t\t\t\t\t\tcoin.loop(0);\r\n\t\t\t\t\t\tcoin.start();\r\n\r\n\t\t\t\t\t}catch (Exception e){} \r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[2])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[1]=1;\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tFile bFile=new File(\"resources/sounds/block.wav\");\r\n\t\t\t\t\t\tscore+=6;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tAudioInputStream bstream;\r\n\t\t\t\t\t\tAudioFormat bformat;\r\n\t\t\t\t\t\tDataLine.Info binfo;\r\n\t\t\t\t\t\tClip block1;\r\n\r\n\t\t\t\t\t\tbstream = AudioSystem.getAudioInputStream(bFile);\r\n\t\t\t\t\t\tbformat = bstream.getFormat();\r\n\t\t\t\t\t\tbinfo = new DataLine.Info(Clip.class,bformat);\r\n\t\t\t\t\t\tblock1 = (Clip) AudioSystem.getLine(binfo);\r\n\t\t\t\t\t\tblock1.open(bstream);\r\n\t\t\t\t\t\tblock1.loop(0);\r\n\t\t\t\t\t\tblock1.start();\r\n\t\t\t\t\t}catch (Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[3])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[2]=1;\r\n\t\t\t\t\ttry{\r\n\r\n\t\t\t\t\t\tcoinAnimPath = \"resources/images/sprites/objects/coin_anim.png\";\r\n\t\t\t\t\t\tscore+=3;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tcoinAnim=ImageIO.read(new File(coinAnimPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinAnim,obx[3]-30,oby[3]-50,null);\r\n\r\n\t\t\t\t\t\tClip coin;\r\n\t\t\t\t\t\tFile cFile=new File(\"resources/sounds/coin.wav\");\r\n\t\t\t\t\t\tAudioInputStream cstream;\r\n\t\t\t\t\t\tAudioFormat cformat;\r\n\t\t\t\t\t\tDataLine.Info cinfo;\r\n\t\t\t\t\t\tcstream = AudioSystem.getAudioInputStream(cFile);\r\n\t\t\t\t\t\tcformat = cstream.getFormat();\r\n\t\t\t\t\t\tcinfo = new DataLine.Info(Clip.class, cformat);\r\n\t\t\t\t\t\tcoin = (Clip) AudioSystem.getLine(cinfo);\r\n\t\t\t\t\t\tcoin.open(cstream);\r\n\t\t\t\t\t\tcoin.loop(0);\r\n\t\t\t\t\t\tcoin.start();\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[4])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[3]=1;\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tFile bFile=new File(\"resources/sounds/block.wav\");\r\n\t\t\t\t\t\tscore+=6;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tAudioInputStream bstream;\r\n\t\t\t\t\t\tAudioFormat bformat;\r\n\t\t\t\t\t\tDataLine.Info binfo;\r\n\t\t\t\t\t\tClip block1;\r\n\r\n\t\t\t\t\t\tbstream = AudioSystem.getAudioInputStream(bFile);\r\n\t\t\t\t\t\tbformat = bstream.getFormat();\r\n\t\t\t\t\t\tbinfo = new DataLine.Info(Clip.class,bformat);\r\n\t\t\t\t\t\tblock1 = (Clip) AudioSystem.getLine(binfo);\r\n\t\t\t\t\t\tblock1.open(bstream);\r\n\t\t\t\t\t\tblock1.loop(0);\r\n\t\t\t\t\t\tblock1.start();\r\n\t\t\t\t\t}catch (Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[5])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[4]=1;\r\n\t\t\t\t\ttry{\r\n\r\n\t\t\t\t\t\tcoinAnimPath = \"resources/images/sprites/objects/coin_anim.png\";\r\n\t\t\t\t\t\tscore+=3;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tcoinAnim=ImageIO.read(new File(coinAnimPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinAnim,obx[5]-30,oby[5]-50,null);\r\n\r\n\t\t\t\t\t\tClip coin;\r\n\t\t\t\t\t\tFile cFile=new File(\"resources/sounds/coin.wav\");\r\n\t\t\t\t\t\tAudioInputStream cstream;\r\n\t\t\t\t\t\tAudioFormat cformat;\r\n\t\t\t\t\t\tDataLine.Info cinfo;\r\n\t\t\t\t\t\tcstream = AudioSystem.getAudioInputStream(cFile);\r\n\t\t\t\t\t\tcformat = cstream.getFormat();\r\n\t\t\t\t\t\tcinfo = new DataLine.Info(Clip.class, cformat);\r\n\t\t\t\t\t\tcoin = (Clip) AudioSystem.getLine(cinfo);\r\n\t\t\t\t\t\tcoin.open(cstream);\r\n\t\t\t\t\t\tcoin.loop(0);\r\n\t\t\t\t\t\tcoin.start();\r\n\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[6])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[5]=1;\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tFile bFile=new File(\"resources/sounds/block.wav\");\r\n\t\t\t\t\t\tscore+=6;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tAudioInputStream bstream;\r\n\t\t\t\t\t\tAudioFormat bformat;\r\n\t\t\t\t\t\tDataLine.Info binfo;\r\n\t\t\t\t\t\tClip block1;\r\n\r\n\t\t\t\t\t\tbstream = AudioSystem.getAudioInputStream(bFile);\r\n\t\t\t\t\t\tbformat = bstream.getFormat();\r\n\t\t\t\t\t\tbinfo = new DataLine.Info(Clip.class,bformat);\r\n\t\t\t\t\t\tblock1 = (Clip) AudioSystem.getLine(binfo);\r\n\t\t\t\t\t\tblock1.open(bstream);\r\n\t\t\t\t\t\tblock1.loop(0);\r\n\t\t\t\t\t\tblock1.start();\r\n\t\t\t\t\t}catch (Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[7])==true){\r\n\r\n\t\t\t\t\tcheck[7]=1;\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[8])==true){\r\n\r\n\t\t\t\t\tcheck[8]=1;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[9])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[9]=1;\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tFile bFile=new File(\"resources/sounds/block.wav\");\r\n\t\t\t\t\t\tscore+=6;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tAudioInputStream bstream;\r\n\t\t\t\t\t\tAudioFormat bformat;\r\n\t\t\t\t\t\tDataLine.Info binfo;\r\n\t\t\t\t\t\tClip block1;\r\n\r\n\t\t\t\t\t\tbstream = AudioSystem.getAudioInputStream(bFile);\r\n\t\t\t\t\t\tbformat = bstream.getFormat();\r\n\t\t\t\t\t\tbinfo = new DataLine.Info(Clip.class,bformat);\r\n\t\t\t\t\t\tblock1 = (Clip) AudioSystem.getLine(binfo);\r\n\t\t\t\t\t\tblock1.open(bstream);\r\n\t\t\t\t\t\tblock1.loop(0);\r\n\t\t\t\t\t\tblock1.start();\r\n\t\t\t\t\t}catch (Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[10])==true){\r\n\r\n\t\t\t\t\tcheck[10]=1;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[11])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[11]=1;\r\n\t\t\t\t\ttry{\r\n\r\n\t\t\t\t\t\tcoinAnimPath = \"resources/images/sprites/objects/coin_anim.png\";\r\n\t\t\t\t\t\tscore+=3;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tcoinAnim=ImageIO.read(new File(coinAnimPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinAnim,obx[10],oby[10]-50,null);\r\n\r\n\t\t\t\t\t\tClip coin;\r\n\t\t\t\t\t\tFile cFile=new File(\"resources/sounds/coin.wav\");\r\n\t\t\t\t\t\tAudioInputStream cstream;\r\n\t\t\t\t\t\tAudioFormat cformat;\r\n\t\t\t\t\t\tDataLine.Info cinfo;\r\n\t\t\t\t\t\tcstream = AudioSystem.getAudioInputStream(cFile);\r\n\t\t\t\t\t\tcformat = cstream.getFormat();\r\n\t\t\t\t\t\tcinfo = new DataLine.Info(Clip.class, cformat);\r\n\t\t\t\t\t\tcoin = (Clip) AudioSystem.getLine(cinfo);\r\n\t\t\t\t\t\tcoin.open(cstream);\r\n\t\t\t\t\t\tcoin.loop(0);\r\n\t\t\t\t\t\tcoin.start();\r\n\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[12])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[12]=1;\r\n\t\t\t\t\ttry{\r\n\r\n\t\t\t\t\t\tcoinAnimPath = \"resources/images/sprites/objects/coin_anim.png\";\r\n\t\t\t\t\t\tscore+=3;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tcoinAnim=ImageIO.read(new File(coinAnimPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinAnim,obx[11],oby[11]-50,null);\r\n\r\n\t\t\t\t\t\tClip coin;\r\n\t\t\t\t\t\tFile cFile=new File(\"resources/sounds/coin.wav\");\r\n\t\t\t\t\t\tAudioInputStream cstream;\r\n\t\t\t\t\t\tAudioFormat cformat;\r\n\t\t\t\t\t\tDataLine.Info cinfo;\r\n\t\t\t\t\t\tcstream = AudioSystem.getAudioInputStream(cFile);\r\n\t\t\t\t\t\tcformat = cstream.getFormat();\r\n\t\t\t\t\t\tcinfo = new DataLine.Info(Clip.class, cformat);\r\n\t\t\t\t\t\tcoin = (Clip) AudioSystem.getLine(cinfo);\r\n\t\t\t\t\t\tcoin.open(cstream);\r\n\t\t\t\t\t\tcoin.loop(0);\r\n\t\t\t\t\t\tcoin.start();\r\n\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[13])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[13]=1;\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tFile bFile=new File(\"resources/sounds/block.wav\");\r\n\t\t\t\t\t\tscore+=6;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tAudioInputStream bstream;\r\n\t\t\t\t\t\tAudioFormat bformat;\r\n\t\t\t\t\t\tDataLine.Info binfo;\r\n\t\t\t\t\t\tClip block1;\r\n\r\n\t\t\t\t\t\tbstream = AudioSystem.getAudioInputStream(bFile);\r\n\t\t\t\t\t\tbformat = bstream.getFormat();\r\n\t\t\t\t\t\tbinfo = new DataLine.Info(Clip.class,bformat);\r\n\t\t\t\t\t\tblock1 = (Clip) AudioSystem.getLine(binfo);\r\n\t\t\t\t\t\tblock1.open(bstream);\r\n\t\t\t\t\t\tblock1.loop(0);\r\n\t\t\t\t\t\tblock1.start();\r\n\t\t\t\t\t}catch (Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[14])==true){\r\n\r\n\t\t\t\t\tcheck[14]=1;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[16])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[16]=1;\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tFile bFile=new File(\"resources/sounds/block.wav\");\r\n\t\t\t\t\t\tscore+=6;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tAudioInputStream bstream;\r\n\t\t\t\t\t\tAudioFormat bformat;\r\n\t\t\t\t\t\tDataLine.Info binfo;\r\n\t\t\t\t\t\tClip block1;\r\n\r\n\t\t\t\t\t\tbstream = AudioSystem.getAudioInputStream(bFile);\r\n\t\t\t\t\t\tbformat = bstream.getFormat();\r\n\t\t\t\t\t\tbinfo = new DataLine.Info(Clip.class,bformat);\r\n\t\t\t\t\t\tblock1 = (Clip) AudioSystem.getLine(binfo);\r\n\t\t\t\t\t\tblock1.open(bstream);\r\n\t\t\t\t\t\tblock1.loop(0);\r\n\t\t\t\t\t\tblock1.start();\r\n\t\t\t\t\t}catch (Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[17])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[17]=1;\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tFile bFile=new File(\"resources/sounds/block.wav\");\r\n\t\t\t\t\t\tscore+=6;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tAudioInputStream bstream;\r\n\t\t\t\t\t\tAudioFormat bformat;\r\n\t\t\t\t\t\tDataLine.Info binfo;\r\n\t\t\t\t\t\tClip block1;\r\n\r\n\t\t\t\t\t\tbstream = AudioSystem.getAudioInputStream(bFile);\r\n\t\t\t\t\t\tbformat = bstream.getFormat();\r\n\t\t\t\t\t\tbinfo = new DataLine.Info(Clip.class,bformat);\r\n\t\t\t\t\t\tblock1 = (Clip) AudioSystem.getLine(binfo);\r\n\t\t\t\t\t\tblock1.open(bstream);\r\n\t\t\t\t\t\tblock1.loop(0);\r\n\t\t\t\t\t\tblock1.start();\r\n\t\t\t\t\t}catch (Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[18])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[18]=1;\r\n\t\t\t\t\ttry{\r\n\r\n\t\t\t\t\t\tcoinAnimPath = \"resources/images/sprites/objects/coin_anim.png\";\r\n\t\t\t\t\t\tscore+=3;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tcoinAnim=ImageIO.read(new File(coinAnimPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinAnim,obx[17],oby[17]-50,null);\r\n\r\n\t\t\t\t\t\tClip coin;\r\n\t\t\t\t\t\tFile cFile=new File(\"resources/sounds/coin.wav\");\r\n\t\t\t\t\t\tAudioInputStream cstream;\r\n\t\t\t\t\t\tAudioFormat cformat;\r\n\t\t\t\t\t\tDataLine.Info cinfo;\r\n\t\t\t\t\t\tcstream = AudioSystem.getAudioInputStream(cFile);\r\n\t\t\t\t\t\tcformat = cstream.getFormat();\r\n\t\t\t\t\t\tcinfo = new DataLine.Info(Clip.class, cformat);\r\n\t\t\t\t\t\tcoin = (Clip) AudioSystem.getLine(cinfo);\r\n\t\t\t\t\t\tcoin.open(cstream);\r\n\t\t\t\t\t\tcoin.loop(0);\r\n\t\t\t\t\t\tcoin.start();\r\n\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[19])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[19]=1;\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tFile bFile=new File(\"resources/sounds/block.wav\");\r\n\t\t\t\t\t\tscore+=6;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tAudioInputStream bstream;\r\n\t\t\t\t\t\tAudioFormat bformat;\r\n\t\t\t\t\t\tDataLine.Info binfo;\r\n\t\t\t\t\t\tClip block1;\r\n\r\n\t\t\t\t\t\tbstream = AudioSystem.getAudioInputStream(bFile);\r\n\t\t\t\t\t\tbformat = bstream.getFormat();\r\n\t\t\t\t\t\tbinfo = new DataLine.Info(Clip.class,bformat);\r\n\t\t\t\t\t\tblock1 = (Clip) AudioSystem.getLine(binfo);\r\n\t\t\t\t\t\tblock1.open(bstream);\r\n\t\t\t\t\t\tblock1.loop(0);\r\n\t\t\t\t\t\tblock1.start();\r\n\t\t\t\t\t}catch (Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[20])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[20]=1;\r\n\t\t\t\t\ttry{\r\n\r\n\t\t\t\t\t\tcoinAnimPath = \"resources/images/sprites/objects/coin_anim.png\";\r\n\t\t\t\t\t\tscore+=3;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tcoinAnim=ImageIO.read(new File(coinAnimPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinAnim,obx[19],oby[19]-50,null);\r\n\r\n\t\t\t\t\t\tClip coin;\r\n\t\t\t\t\t\tFile cFile=new File(\"resources/sounds/coin.wav\");\r\n\t\t\t\t\t\tAudioInputStream cstream;\r\n\t\t\t\t\t\tAudioFormat cformat;\r\n\t\t\t\t\t\tDataLine.Info cinfo;\r\n\t\t\t\t\t\tcstream = AudioSystem.getAudioInputStream(cFile);\r\n\t\t\t\t\t\tcformat = cstream.getFormat();\r\n\t\t\t\t\t\tcinfo = new DataLine.Info(Clip.class, cformat);\r\n\t\t\t\t\t\tcoin = (Clip) AudioSystem.getLine(cinfo);\r\n\t\t\t\t\t\tcoin.open(cstream);\r\n\t\t\t\t\t\tcoin.loop(0);\r\n\t\t\t\t\t\tcoin.start();\r\n\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[21])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[21]=1;\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tFile bFile=new File(\"resources/sounds/block.wav\");\r\n\t\t\t\t\t\tscore+=6;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tAudioInputStream bstream;\r\n\t\t\t\t\t\tAudioFormat bformat;\r\n\t\t\t\t\t\tDataLine.Info binfo;\r\n\t\t\t\t\t\tClip block1;\r\n\r\n\t\t\t\t\t\tbstream = AudioSystem.getAudioInputStream(bFile);\r\n\t\t\t\t\t\tbformat = bstream.getFormat();\r\n\t\t\t\t\t\tbinfo = new DataLine.Info(Clip.class,bformat);\r\n\t\t\t\t\t\tblock1 = (Clip) AudioSystem.getLine(binfo);\r\n\t\t\t\t\t\tblock1.open(bstream);\r\n\t\t\t\t\t\tblock1.loop(0);\r\n\t\t\t\t\t\tblock1.start();\r\n\t\t\t\t\t}catch (Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[22])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[22]=1;\r\n\t\t\t\t\ttry{\r\n\r\n\t\t\t\t\t\tcoinAnimPath = \"resources/images/sprites/objects/coin_anim.png\";\r\n\t\t\t\t\t\tscore+=3;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tcoinAnim=ImageIO.read(new File(coinAnimPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinAnim,obx[21],oby[21]-50,null);\r\n\r\n\t\t\t\t\t\tClip coin;\r\n\t\t\t\t\t\tFile cFile=new File(\"resources/sounds/coin.wav\");\r\n\t\t\t\t\t\tAudioInputStream cstream;\r\n\t\t\t\t\t\tAudioFormat cformat;\r\n\t\t\t\t\t\tDataLine.Info cinfo;\r\n\t\t\t\t\t\tcstream = AudioSystem.getAudioInputStream(cFile);\r\n\t\t\t\t\t\tcformat = cstream.getFormat();\r\n\t\t\t\t\t\tcinfo = new DataLine.Info(Clip.class, cformat);\r\n\t\t\t\t\t\tcoin = (Clip) AudioSystem.getLine(cinfo);\r\n\t\t\t\t\t\tcoin.open(cstream);\r\n\t\t\t\t\t\tcoin.loop(0);\r\n\t\t\t\t\t\tcoin.start();\r\n\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(r[0].intersects(r[23])==true){\r\n\r\n\t\t\t\t\tjDown=1;\r\n\t\t\t\t\tjUp=0;\r\n\t\t\t\t\tcheck[23]=1;\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tFile bFile=new File(\"resources/sounds/block.wav\");\r\n\t\t\t\t\t\tscore+=6;\r\n\t\t\t\t\t\tlb4.setText(\"\"+score);\r\n\t\t\t\t\t\tAudioInputStream bstream;\r\n\t\t\t\t\t\tAudioFormat bformat;\r\n\t\t\t\t\t\tDataLine.Info binfo;\r\n\t\t\t\t\t\tClip block1;\r\n\r\n\t\t\t\t\t\tbstream = AudioSystem.getAudioInputStream(bFile);\r\n\t\t\t\t\t\tbformat = bstream.getFormat();\r\n\t\t\t\t\t\tbinfo = new DataLine.Info(Clip.class,bformat);\r\n\t\t\t\t\t\tblock1 = (Clip) AudioSystem.getLine(binfo);\r\n\t\t\t\t\t\tblock1.open(bstream);\r\n\t\t\t\t\t\tblock1.loop(0);\r\n\t\t\t\t\t\tblock1.start();\r\n\t\t\t\t\t}catch (Exception e){}\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\t\t\t\t//drawing secondary objects\r\n\t\t\t\tif(check[0]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tcoinUsedPath = \"resources/images/sprites/objects/block.png\";\r\n\t\t\t\t\t\tcoinUsed=ImageIO.read(new File(coinUsedPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinUsed,obx[0],oby[0],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t} \r\n\t\t\t\tif(check[1]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tbrickBrokePath = \"resources/images/sprites/objects/broken.png\";\r\n\t\t\t\t\t\tbrickBroke=ImageIO.read(new File(brickBrokePath));\r\n\t\t\t\t\t\tg2d.drawImage(brickBroke,obx[1],oby[1],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[2]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tcoinUsedPath = \"resources/images/sprites/objects/block.png\";\r\n\t\t\t\t\t\tcoinUsed=ImageIO.read(new File(coinUsedPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinUsed,obx[2],oby[2],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t} \r\n\t\t\t\tif(check[3]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tbrickBrokePath = \"resources/images/sprites/objects/broken.png\";\r\n\t\t\t\t\t\tbrickBroke=ImageIO.read(new File(brickBrokePath));\r\n\t\t\t\t\t\tg2d.drawImage(brickBroke,obx[3],oby[3],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[4]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tcoinUsedPath = \"resources/images/sprites/objects/block.png\";\r\n\t\t\t\t\t\tcoinUsed=ImageIO.read(new File(coinUsedPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinUsed,obx[4],oby[4],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[5]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tbrickBrokePath = \"resources/images/sprites/objects/broken.png\";\r\n\t\t\t\t\t\tbrickBroke=ImageIO.read(new File(brickBrokePath));\r\n\t\t\t\t\t\tg2d.drawImage(brickBroke,obx[5],oby[5],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[9]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tbrickBrokePath = \"resources/images/sprites/objects/broken.png\";\r\n\t\t\t\t\t\tbrickBroke=ImageIO.read(new File(brickBrokePath));\r\n\t\t\t\t\t\tg2d.drawImage(brickBroke,obx[8],oby[8],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[11]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tcoinUsedPath = \"resources/images/sprites/objects/block.png\";\r\n\t\t\t\t\t\tcoinUsed=ImageIO.read(new File(coinUsedPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinUsed,obx[10],oby[10],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[12]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tcoinUsedPath = \"resources/images/sprites/objects/block.png\";\r\n\t\t\t\t\t\tcoinUsed=ImageIO.read(new File(coinUsedPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinUsed,obx[11],oby[11],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[13]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tbrickBrokePath = \"resources/images/sprites/objects/broken.png\";\r\n\t\t\t\t\t\tbrickBroke=ImageIO.read(new File(brickBrokePath));\r\n\t\t\t\t\t\tg2d.drawImage(brickBroke,obx[12],oby[12],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[16]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tbrickBrokePath = \"resources/images/sprites/objects/broken.png\";\r\n\t\t\t\t\t\tbrickBroke=ImageIO.read(new File(brickBrokePath));\r\n\t\t\t\t\t\tg2d.drawImage(brickBroke,obx[15],oby[15],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[17]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tbrickBrokePath = \"resources/images/sprites/objects/broken.png\";\r\n\t\t\t\t\t\tbrickBroke=ImageIO.read(new File(brickBrokePath));\r\n\t\t\t\t\t\tg2d.drawImage(brickBroke,obx[16],oby[16],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[18]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tcoinUsedPath = \"resources/images/sprites/objects/block.png\";\r\n\t\t\t\t\t\tcoinUsed=ImageIO.read(new File(coinUsedPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinUsed,obx[17],oby[17],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[19]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tbrickBrokePath = \"resources/images/sprites/objects/broken.png\";\r\n\t\t\t\t\t\tbrickBroke=ImageIO.read(new File(brickBrokePath));\r\n\t\t\t\t\t\tg2d.drawImage(brickBroke,obx[18],oby[18],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[20]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tcoinUsedPath = \"resources/images/sprites/objects/block.png\";\r\n\t\t\t\t\t\tcoinUsed=ImageIO.read(new File(coinUsedPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinUsed,obx[19],oby[19],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[21]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tbrickBrokePath = \"resources/images/sprites/objects/broken.png\";\r\n\t\t\t\t\t\tbrickBroke=ImageIO.read(new File(brickBrokePath));\r\n\t\t\t\t\t\tg2d.drawImage(brickBroke,obx[20],oby[20],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[22]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tcoinUsedPath = \"resources/images/sprites/objects/block.png\";\r\n\t\t\t\t\t\tcoinUsed=ImageIO.read(new File(coinUsedPath));\r\n\t\t\t\t\t\tg2d.drawImage(coinUsed,obx[21],oby[21],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\t\t\t\tif(check[23]==1){\r\n\t\t\t\t\ttry{ \r\n\t\t\t\t\t\tbrickBrokePath = \"resources/images/sprites/objects/broken.png\";\r\n\t\t\t\t\t\tbrickBroke=ImageIO.read(new File(brickBrokePath));\r\n\t\t\t\t\t\tg2d.drawImage(brickBroke,obx[22],oby[22],null);\r\n\t\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t}\r\n\r\n\t\t\t\trepaint();\r\n\t}", "title": "" }, { "docid": "46180b60a3cdeef9a6d37ab04816224a", "score": "0.6052623", "text": "public void draw( Graphics2D g )\n {\n // System.out.println(\"HI\");\n // System.out.println(x + \" \" + y);\n showImage = true;\n g.drawImage( image, (int)x, (int)y, 30, 30, null );\n // TELL JOHNSON\n if ( main.getX() >= x - 20 && main.getX() <= x + 20 && main.getY() <= y + 20 && main.getY() >= y - 20 )\n {\n // System.out.println(\"HI\");\n back.setVector( -0.25 );\n main.setAnimation( 30 );\n main.setTime( 0.25 );\n for ( Enemies en : sp.getSpawn() )\n {\n slow( en, 2, 1 );\n }\n sp.setSpeeds( 2, 1 );\n }\n }", "title": "" }, { "docid": "7c13b2c38f6952dc68b9d1a5ba26cb14", "score": "0.60486966", "text": "protected void drawToScreen() {\n\t\tImageUtil.cropFillCopyImage(camDisplaced, p.g, true);\n\t\t\n\t\t// draw debug lines\n\t\tImageUtil.drawImageCropFill(opticalFlow.debugBuffer(), p.g, true);\t\n\t}", "title": "" }, { "docid": "c1796add718cad7962ab3146a086d671", "score": "0.60472006", "text": "public DrawFrame(String title)\n {\n super(title);\n \n int width = 800;\n int height = 600;\n \n // TODO: draw a dog:\n \n // Base head:\n Circle base = new Circle(new Point(200, 100), 400, Color.DARK_GRAY, true);\n \n \n // Ears:\n RightTriangle lEar = new RightTriangle(new Point(250, 210), 25, -130, Color.DARK_GRAY, true);\n RightTriangle rEar = new RightTriangle(new Point(550, 210), -25, -130, Color.DARK_GRAY, true);\n RightTriangle inLEar = new RightTriangle(new Point(255, 188), 12, -100, Color.PINK, true);\n RightTriangle inREar = new RightTriangle(new Point(545, 188), -12, -100, Color.PINK, true);\n // Eyes:\n Oval eye1 = new Oval(new Point(280, 180), 60, 80, Color.WHITE, true);\n Oval eye2 = new Oval(new Point(465, 180), 60, 80, Color.WHITE, true);\n Oval pup1 = new Oval(new Point(283, 187), 35, 60, Color.BLACK, true);\n Oval pup2 = new Oval(new Point(483, 187), 35, 60, Color.BLACK, true);\n // Nose and Mouth:\n Circle nose = new Circle(new Point(375, 280), 50, Color.BLACK, true);\n PolyLine m1 = new PolyLine(new Point(310, 350), new Point(400, 370), 50, Color.BLACK, true);\n PolyLine m2 = new PolyLine(new Point(490, 350), new Point(400, 370), 50, Color.BLACK, true);\n \n // Collar:\n \n Oval collarBase = new Oval(new Point(200, 450), 400, 50, Color.BLUE, true);\n Oval tongue = new Oval(new Point(420, 380), 40, 60, Color.RED, true);\n Circle buttonHigh = new Circle(new Point(370, 440), 60, Color.GREEN, false);\n Circle buttonBase = new Circle(new Point(360, 430), 80, Color.RED, true);\n \n // Square around the dog:\n Square outlineS = new Square(new Point(400, 300), 480, Color.BLUE, false);\n Circle outlineC = new Circle(new Point(50, 0), 700, Color.BLACK, false);\n // initialize the panel and add the shapes to it\n drawPanel = new DrawPanel();\n \n // TODO: add shapes to the panel:\n drawPanel.addShape(base);\n drawPanel.addShape(lEar);\n drawPanel.addShape(rEar);\n drawPanel.addShape(inLEar);\n drawPanel.addShape(inREar);\n drawPanel.addShape(eye1);\n drawPanel.addShape(eye2);\n drawPanel.addShape(pup1);\n drawPanel.addShape(pup2);\n drawPanel.addShape(nose);\n drawPanel.addShape(m1);\n drawPanel.addShape(m2);\n \n drawPanel.addShape(collarBase);\n drawPanel.addShape(tongue); \n \n drawPanel.addShape(buttonBase);\n drawPanel.addShape(buttonHigh);\n drawPanel.addShape(outlineS);\n drawPanel.addShape(outlineC);\n \n \n // set background color\n drawPanel.setBackground(Color.CYAN);\n \n // add panel to frame\n this.add(drawPanel);\n \n // finish setting up the frame\n setSize(width, height);\n setResizable(false);\n setLocationRelativeTo(null);\n setVisible(true);\n }", "title": "" }, { "docid": "ecf75b7061d1680a515394cf3643fba7", "score": "0.6039811", "text": "public void begin() {\n Image ac = getImage(\"racer1.jpg\");\n Image ch = getImage(\"racer2.jpg\");\n top = new HotRod( 0, (canvas.getHeight()-LANESEP)/2, Color.RED, this, ac, canvas);\n bottom = new HotRod( 0, (canvas.getHeight()+LANESEP)/2, Color.BLUE, this, ch, canvas);\n }", "title": "" }, { "docid": "56002b1574e4f32d38a205b3a8b60235", "score": "0.60382384", "text": "private void draw() {\n\t\tGraphics2D g2d = (Graphics2D) imgBuffer.getGraphics();\r\n\t\t//g2d.setBackground(Color.YELLOW);\r\n\t\tg2d.setPaint(dirty);\r\n\t\tg2d.fillRect(0, 0, SIZE.width, SIZE.height);\r\n\t\tfor(int i = 0; i < 11; i++){\r\n\t\t\tfor(int j = 0; j < 5; j++){\r\n\t\t\t\t//g2d.setColor(Color.GREEN);\r\n\t\t\t\t\r\n\t\t\t\tg2d.setPaint(grassOcta);\r\n\t\t\t\tif(game[i][j].isPig())\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse if(game[i][j].isPath() && showPath){\r\n\t\t\t\t\tg2d.fill(game[i][j].getSquareset());\r\n\t\t\t\t\t//g2d.setPaint(null);\r\n\t\t\t\t\tColor pathColor = new Color(255, 255, 0, 100);\r\n\t\t\t\t\tg2d.setColor(pathColor);\r\n\t\t\t\t\t//g2d.fill(game[i][j].getSquareset());\r\n\t\t\t\t}\r\n\t\t\t\telse if(game[i][j].isImpassable()){\r\n\t\t\t\t\t//g2d.setColor(Color.DARK_GRAY);\r\n\t\t\t\t\t\r\n\t\t\t\t\tg2d.setPaint(stoneOcta);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tg2d.fill(game[i][j].getSquareset());\r\n\t\t\t\t\r\n\t\t\t\tg2d.setColor(Color.BLACK);\r\n\t\t\t\tif(game[i][j].isEdge() && !game[i][j].isImpassable())\r\n\t\t\t\t\tg2d.setColor(Color.WHITE);\r\n\t\t\t\tif(game[i][j].isPig())\r\n\t\t\t\t\tg2d.setColor(Color.PINK);\r\n\t\t\t\t\r\n\t\t\t\tg2d.draw(game[i][j].getSquareset());\r\n\t\t\t\t}\r\n\t\t}\r\n\t\tg2d.drawImage(pig, game[PigI][PigJ].getSquareset().xpoints[5], game[PigI][PigJ].getSquareset().ypoints[5], game[PigI][PigJ].getSquareset().xpoints[2], game[PigI][PigJ].getSquareset().ypoints[2], 0, 0, 256, 256, null);\r\n\t\tg2d.setColor(Color.PINK);\r\n\t\tStroke old = g2d.getStroke();\r\n\t\tg2d.setStroke(new BasicStroke(3));\r\n\t\tg2d.draw(game[PigI][PigJ].getSquareset());\r\n\t\tg2d.setStroke(old);\r\n\t\tif(isRunning)\r\n\t\tg2d = (Graphics2D) frame.getGraphics();\r\n\t\tg2d.drawImage(imgBuffer, 0, 0, SIZE.width, SIZE.height, 0, 0, SIZE.width, SIZE.height, null);\r\n\t\tg2d.dispose();\r\n\t}", "title": "" }, { "docid": "0d2ee7855daada9959f700b1259bcdf7", "score": "0.60317653", "text": "public void draw(){\n\t\t\n\t\tif(!l.loaded && still500)\n\t\t\tbackground(loading);\n\t\telse\n\t\t\tbackground(255);\n\t\t\n\t\t\n\t\tif(ready){\n\t\t\ttry{\n\t\t\t\tswitch(gui.screen()){\n\t\t\t\tcase 0://glitch\n\t\t\t\t\timg.drawBig();break;\n\t\t\t\tdefault:\n\t\t\t\t\tsetMouseXY();\n\t\t\t\t\t\n\t\t\t\t\tint temp_h = (height-frameTop)/2;\n\t\t\t\t\tint half_w = width/2;\n\t\t\t\t\t\n\t\t\t\t\tint selected;\t\t\t\n\t\t\t\t\tif(mouseX >= 0 && mouseX < half_w && mouseY >= 0 && mouseY < temp_h){\n\t\t\t\t\t\tselected = 0;\n\t\t\t\t\t}else if(mouseX >= half_w && mouseX <= width && mouseY >= 0 && mouseY < temp_h){\n\t\t\t\t\t\tselected = 1;\n\t\t\t\t\t}else if(mouseX >= 0 && mouseX < half_w && mouseY >= temp_h && mouseY <= height){\n\t\t\t\t\t\tselected = 2;\n\t\t\t\t\t}else if(mouseX >= half_w && mouseX <= width && mouseY >= temp_h && mouseY <= height){\n\t\t\t\t\t\tselected = 3;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tselected = gui.selectedImage();\n\t\t\t\t\t}\n\t\t\t\t\tint x, y;\t\n\n\t\t\t\t\timg.drawSmall();\n\t\t\t\t\tswitch(selected){\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tx = smallborder/2; y = smallborder/2; break;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tx = width/2; y = smallborder/2; break;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tx = smallborder/2; y = temp_h; break;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tx = width/2; y = temp_h; break;\n\t\t\t\t\t}\n\t\t\t\t\tnoFill();\n\t\t\t\t\tstroke(0,255,0);\n\t\t\t\t\tstrokeWeight(smallborder);\n\t\t\t\t\trect(x, y, (width/2)-smallborder/2, ((height-frameTop)/2)-smallborder/2);\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "505942f1d535f17acd2557db21c0daf8", "score": "0.6020424", "text": "public interface ViewRobot {\n public void trackMovement(Graphics2D g2d);\n\n void renderRobot(Graphics2D g2d, ImageObserver board);\n\n void renderSonar(Graphics2D g2d);\n\n int getX();\n\n int getY();\n\n int getDirection();\n}", "title": "" }, { "docid": "96ecf5182badcf47b4c9da7c6a425ec9", "score": "0.60174555", "text": "private void drawSpyOneReal(Graphics g, int i, int j) {\n double jj = j - (i % 2)*0.5;\n int x1 = (int)(topx-2*size*cos30+i*xdiff);\n int y1 = (int)(topy+jj*ydiff-0.5*ydiff);\n \n g.drawImage(spyImage, x1, y1, null);\n }", "title": "" }, { "docid": "e18a672348654401d0ffdbe7e069c415", "score": "0.601503", "text": "public void draw()\r\n\t{\t\r\n\t\tfor(Resistor re: resistor)\r\n\t\t{\r\n\t\t\tre.render();\r\n\t\t}\r\n\r\n // Boxes\r\n\t\t// noFill();\r\n\t\t// for(int i = 0; i < 4; i++)\r\n\t\t// {\r\n\t\t// \trect(200, 0 + space, 100, 100);\r\n\t\t// \tspace = space + 110;\r\n\t\t// }\t\r\n\t}", "title": "" }, { "docid": "d2796a589cb198106b6e18e00c5438f8", "score": "0.6009886", "text": "private void drawObj() {\r\n // Color for background \"sky\".\r\n setBackground(COLOR_SKY);\r\n // Method, that draw ground.\r\n drawGround();\r\n // Method, that draw house.\r\n drawHouse();\r\n // Draw sun and move it\r\n drawSunAndMove();\r\n }", "title": "" }, { "docid": "c0333939eb3b3475891f013e745950ce", "score": "0.59981316", "text": "public void draw(){\n int projectileId = ContentManager.getInstance().getImageId(this.getImageURL());\n float scale = AsteroidsGame.SHIP_SCALE;\n PointF screenPos = ViewPort.convertToScreenCoordinates(position);\n float rotationalDegrees = (float)(angle * (180/Math.PI)) % 360;\n DrawingHelper.drawImage(projectileId, screenPos.x, screenPos.y, rotationalDegrees, scale, scale, 255);\n }", "title": "" }, { "docid": "8e1395f62e2cf604d12eba91eadfd3ae", "score": "0.59905756", "text": "void draw(Graphics g, Model model, View view)\n\t{\n\n\n\t\tif (facingRight && view.controller.keyRight)\n\t\t{\n\t\t\tview.marioImagesIndex++;\n\t\t\tview.marioImagesIndex = view.marioImagesIndex % view.marioArraySize;\n\t\t}\n\t\telse if (view.controller.keyLeft)\n\t\t{\n\t\t\tview.marioImagesIndex--;\n\t\t\tview.marioImagesIndex = view.marioImagesIndex % view.marioArraySize;\n\t\t}\n\n\n\t\tif (facingRight)\n\t\t\tg.drawImage(view.mario_images[Math.abs(view.marioImagesIndex)],\n\t\t\t\t\t\tmodel.mario.x - model.scrollPos, model.mario.y, null);\n\t\telse\n\t\t\tg.drawImage(view.mario_images[Math.abs(view.marioImagesIndex)],\n\t\t\t\t\t\tmodel.mario.x + model.mario.w - model.scrollPos, model.mario.y,\n\t\t\t\t\t\t-model.mario.w, model.mario.h, null);\n\t}", "title": "" }, { "docid": "3021f22ee220f13882f6a41563cd9139", "score": "0.5985168", "text": "private void doDrawing(Graphics g) {\n Graphics2D g1 = (Graphics2D) g; //create graphics 2d\n g2 = g1; //store it in a global variable\n //helps with rendering and makes frames smootther\n g1.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\n g1.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g1.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);\n g1.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);\n g1.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n g1.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n g1.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n g1.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);\n for (int i = 0; i < numBallsInPlay; i++) { //this draws all balls on the screen\n balls[i].draw(g1);\n }\n\n if (power1Active == true) { //drwas a power if it is active\n power1.draw(g1);\n }\n if (power2Active == true) {\n power2.draw(g1);\n }\n if (power3Active == true) {\n power3.draw(g1);\n } \n player.draw(g1); \n }", "title": "" }, { "docid": "ef3397b139da6751b61e440d8e2cbb11", "score": "0.5971485", "text": "@Override\n public void paintComponent(Graphics g) {\n for (int i = 0; i < DIMENSIO; i++) {\n for (int j = 0; j < DIMENSIO; j++) {\n c[i][j].paintComponent(g);\n }\n }\n if (Pictograma.borde) {\n int y = 10;\n while (y <= 500) {\n g.setColor(Color.black);\n g.drawLine(0, y, 500, y);\n g.drawLine(y, 0, y, 500);\n y = y + 10;\n }\n }\n }", "title": "" }, { "docid": "d7a3820f5a969684cb09b890d854333b", "score": "0.5968652", "text": "public MyPicture()\n {\n wall = new Square();\n window = new Square();\n ground = new Square();\n groundtwo = new Square();\n roof = new Triangle();\n rooftwo = new Triangle();\n roofthree = new Triangle();\n rooffour = new Triangle();\n rooffive = new Triangle();\n sun = new Circle();\n drawn = false;\n }", "title": "" }, { "docid": "344443ce17d96524925d63f642be7b4c", "score": "0.5967768", "text": "@Override\n public void paintComponent(Graphics g) {\n Graphics2D graphics2D = (Graphics2D) g;\n\n graphics2D.setColor(Color.darkGray);\n graphics2D.drawRoundRect(140, 50, 365, 20, 15, 15);\n graphics2D.setColor(new Color(16, startPosX/2, 219));\n\n if (startPosX > 1) {\n graphics2D.drawRoundRect(140, 50, startPosX, 20, 15, 15);\n }\n ImageIcon icon = plant.getImageIcon();\n if (icon == null) {\n icon = new ImageIcon(\"./images/plant.jpg\");\n }\n graphics2D.drawImage(icon.getImage(), 17, 10, 105, 100, null);\n }", "title": "" }, { "docid": "97f3c6f8d451bda64fb873891f8f8810", "score": "0.59617835", "text": "void drawRobot(float O, float A, float B, float C,\r\n float alpha, float beta, float gama) {\n drawArm(O, A);\r\n\r\n //myTranslate(A, 0.0f, 0.0f);\r\n //myRotate(beta, 0.0f, 0.0f, 1.0f);\r\n // R_z(alpha)T_x(A)R_z(beta) is on top of the stack\r\n drawArm(A, B);\r\n\r\n //myTranslate(B-A, 0.0f, 0.0f);\r\n //myRotate(gama, 0.0f, 0.0f, 1.0f);\r\n // R_z(alpha)T_x(A)R_z(beta)T_x(B)R_z(gama) is on top\r\n drawArm(B, C);\r\n\r\n //myPopMatrix();\r\n }", "title": "" }, { "docid": "9783128c5b13c04409cf10461e820abf", "score": "0.5961759", "text": "private void drawLogos() {\n\t\tif (bLogo1.isVisible() && logo.isAlive()) {\n\t\t\tbatcher.draw(bonusLogoAndroid, bLogo1.getX(), bLogo1.getY(),\n\t\t\t\t\tbLogo1.getWidth(), bLogo1.getHeight());\n\t\t}\n\n\t\t// Draw the second logo\n\t\tif (bLogo2.isVisible() && logo.isAlive()) {\n\t\t\tbatcher.draw(bonusLogoApple, bLogo2.getX(), bLogo2.getY(),\n\t\t\t\t\tbLogo2.getWidth(), bLogo2.getHeight());\n\t\t}\n\t}", "title": "" }, { "docid": "b9dc1fdc36cbe559d48ab04ef106c84c", "score": "0.59613216", "text": "@Override\n\t\tpublic void draw(Graphics2D g2d) {\n\t\t\tg2d.drawImage(capture_image, 0, 0,300,300, null);\n\t\t\tif(draw_mouse){\n\t\t\t\tg2d.setColor(Color.red);\n\t\t\t\tg2d.drawRect(x-3, y-3, 6, 6);\n\t\t\t}\n\t\t\tfor(int i=0;i<points.size();i++){\n\t\t\t\tg2d.setColor(Color.black);\n\t\t\t\tg2d.drawRect(points.get(i).x-3, points.get(i).y-3, 6, 6);\n\t\t\t}\n\t\t\tif(main.PalmCenter != null){\n\t\t\t\thand_obj.drawHand(g2d, new Point(0,0), 300, capture_image);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "c923ab7d61fece890614ba93663021fb", "score": "0.5959847", "text": "public static void drawPicture2(Graphics2D g2) {\r\n\r\n\tGameBoy gb1 = new GameBoy(100,50,50,75);\r\n\tg2.setColor(Color.RED); g2.draw(gb1);\r\n\t\r\n\t// Make a green GameBoy that's half the size, \r\n\t// and moved down 50 pixels in y direction\r\n\tShape gb2 = ShapeTransforms.scaledCopyOfLL(gb1,0.5,0.5);\r\n\tgb2 = ShapeTransforms.translatedCopyOf(gb2,0,50);\r\n\tg2.setColor(Color.GREEN); g2.draw(gb2);\r\n\t\r\n\t// Here's a GameBoy that's 2x as small (4x smaller than the original)\r\n\t// and moved over 50 more pixels down.\r\n\tgb2 = ShapeTransforms.scaledCopyOfLL(gb2,0.5,0.5);\r\n\tgb2 = ShapeTransforms.translatedCopyOf(gb2,0,50); \r\n\t\r\n\t// for hex colors, see (e.g.) http://en.wikipedia.org/wiki/List_of_colors\r\n\t// #002FA7 is \"International Klein Blue\" according to Wikipedia\r\n\t// In HTML we use #, but in Java (and C/C++) its 0x\r\n\t\r\n\tg2.setColor(new Color(0x002FA7)); \r\n\tg2.draw(gb2); \r\n\t\r\n\t// Draw two GameBoys with Buttons but rotated 90 degrees\r\n\t\r\n\tg2.setColor(Color.GRAY);\r\n\r\n\tGameBoyWithButtons gb3 = new GameBoyWithButtons(50,350,40,75);\r\n\tGameBoyWithButtons gb4 = new GameBoyWithButtons(200,350,20,50);\r\n\t\r\n\tShape gb5 = ShapeTransforms.rotatedCopyOf(gb3, Math.PI/2);\r\n\tShape gb6 = ShapeTransforms.rotatedCopyOf(gb4, Math.PI/2);\r\n\r\n\tg2.draw(gb5);\r\n\tg2.setColor(Color.BLACK);\r\n\tg2.draw(gb6);\r\n\t\r\n\t// @@@ FINALLY, SIGN AND LABEL YOUR DRAWING\r\n\t\r\n\tg2.drawString(\"More GameBoys by Michele Haque\", 20,20);\r\n }", "title": "" }, { "docid": "749555fa7d330f82ce3a7789a6f0501c", "score": "0.59529334", "text": "public static void drawPicture1(Graphics2D g2) {\r\n\t\r\n\tDoor d1 = new Door(100,250,50,75);\r\n\tg2.setColor(Color.CYAN); g2.draw(d1);\r\n\t\r\n\t// Make a black door that's half the size, \r\n\t// and moved over 200 pixels in x direction\r\n\t\r\n\tShape d2 = ShapeTransforms.scaledCopyOfLL(d1,0.5,0.5);\r\n\td2 = ShapeTransforms.translatedCopyOf(d2,200,0);\r\n\tg2.setColor(Color.BLACK); g2.draw(d2);\r\n\t\r\n\t// Here's a door that's 4x as big (2x the original)\r\n\t// and moved over 150 more pixels to right.\r\n\td2 = ShapeTransforms.scaledCopyOfLL(d2,4,4);\r\n\td2 = ShapeTransforms.translatedCopyOf(d2,150,0);\r\n\t\r\n\t// We'll draw this with a thicker stroke\r\n\tStroke thick = new BasicStroke (4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL); \r\n\t\r\n\t// for hex colors, see (e.g.) http://en.wikipedia.org/wiki/List_of_colors\r\n\t// #002FA7 is \"International Klein Blue\" according to Wikipedia\r\n\t// In HTML we use #, but in Java (and C/C++) its 0x\r\n\t\r\n\tStroke orig=g2.getStroke();\r\n\tg2.setStroke(thick);\r\n\tg2.setColor(new Color(0x002FA7)); \r\n\tg2.draw(d2); \r\n\t\r\n\t// Draw two OrnateDoors\r\n\t\r\n\tOrnateDoor OD1 = new OrnateDoor(100,350,20,75);\r\n\tOrnateDoor OD2 = new OrnateDoor(200,300,200,100);\r\n\t\r\n\tg2.draw(OD1);\r\n\tg2.setColor(new Color(0x8F00FF)); g2.draw(OD2);\r\n\t\r\n\t// @@@ FINALLY, SIGN AND LABEL YOUR DRAWING\r\n\t\r\n\tg2.setStroke(orig);\r\n\tg2.setColor(Color.ORANGE); \r\n\tg2.drawString(\"A few door by Charles Lewis\", 20,20);\r\n }", "title": "" }, { "docid": "a5393601f2661abb09d9320662bb2e13", "score": "0.5934143", "text": "public void draw() {\n\t\tbackground(20, 20, 20);\r\n\t\tcontrolP5.draw();\r\n\t}", "title": "" }, { "docid": "fb74d3db820ea5cfa842ac2b1eb17ac0", "score": "0.59320855", "text": "@Override\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tBufferedImage bi = new BufferedImage(this.getWidth(),\n\t\t\t\t\t\t\t\tthis.getHeight(), BufferedImage.TYPE_INT_ARGB );\n\t\tGraphics g2 = bi.getGraphics();\n\t\tg2.drawImage(backGroundImg, 0, 0, 1240, 760, this);\n\t\tg2.drawImage(diceBtn,555,290,this);\n\t\tg2.drawImage(user,ply.get(0).x,ply.get(0).y,this);\n\t\tg2.setColor(new Color(0));\n\t\tfor (Building t : buildingList) {\n\t\t\tfor(int j=0; j<t.buildCnt;j++){\n\t\t\tg2.drawImage(building, mapXY[t.thisXY][0]+j*5,\n\t\t\t\t\tmapXY[t.thisXY][1], this);\n\t\t\t}\n\t\t}\n\t\tg2.setColor(Color.black);\n\t\tg2.drawRect(mapXY[1][0]+30,mapXY[1][1]-10,20,20);\n\t\tg2.drawRect(mapXY[1][0]+50,mapXY[1][1],20,20);\n\t\tg2.drawRect(mapXY[1][0]+70,mapXY[1][1]+10,20,20);\n\t\t\n\t\tg2.drawRect(mapXY[3][0]+35,mapXY[3][1]-10,20,20);\n\t\tg2.drawRect(mapXY[3][0]+55,mapXY[3][1],20,20);\n\t\tg2.drawRect(mapXY[3][0]+75,mapXY[3][1]+10,20,20);\n\t\t\n\t\tg2.drawRect(mapXY[4][0]+30,mapXY[4][1]-15,20,20);\n\t\tg2.drawRect(mapXY[4][0]+50,mapXY[4][1],20,20);\n\t\tg2.drawRect(mapXY[4][0]+70,mapXY[4][1]+15,20,20);\n\t\tg2.setColor(Color.white);\n\t\tg2.drawString(\"1p 가진돈 : \" + ply.get(0).money, 20, 20);\n\t\t//좌표위치 테스트\n\t\t//for(int i=0; i<mapXY.length; i++){\n\t\t//\tg2.drawRect(mapXY[i][0], mapXY[i][1],50, 50);\n\t\t//}\n\t\t\n\t\t\n\t\tg.drawImage(bi,0, 0,this);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c429bea3c8d981f0630683b8ff5e98de", "score": "0.59304947", "text": "public void draw();", "title": "" }, { "docid": "c429bea3c8d981f0630683b8ff5e98de", "score": "0.59304947", "text": "public void draw();", "title": "" }, { "docid": "c429bea3c8d981f0630683b8ff5e98de", "score": "0.59304947", "text": "public void draw();", "title": "" }, { "docid": "743c92046f585a601ec30d409a70055b", "score": "0.5930272", "text": "@Override\n public void paint(Graphics g){\n Color c;\n int posX = 0;\n int posY = 0;\n int cambio = 0;\n for(int y = 0; y<totFil;y++){\n for(int x = 0; x<totCol;x++){\n switch (mat[x][y]) {\n case 0:\n g.setColor(Color.GRAY);\n g.drawRect((tam*x)+100, (tam*y), tam, tam);\n break;\n case 1:\n g.setColor(Color.BLUE);\n g.fillRect((tam*x)+101, (tam*y)+1, tam, tam);\n break;\n case 2:\n g.setColor(Color.red);\n g.fillRect((tam*x)+101, (tam*y)+1, tam, tam);\n break;\n case 3:\n g.setColor(Color.ORANGE);\n g.fillRect((tam*x)+101, (tam*y)+1, tam, tam);\n break;\n default:\n break;\n }\n }\n }\n \n }", "title": "" }, { "docid": "eda977548ceef5239c15be7b087f5abd", "score": "0.5909451", "text": "public void draw() {\n\t\t\t\t\n\t\t\tcontext.setStroke(Color.YELLOW);\n\t\t\tcontext.setLineWidth(2.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t// Field\n\t\t\tcontext.setFill(Color.DARKGREY);\t\n\t\t\tcontext.fillRect(\n\t\t\t\t\t 0.0, \n\t\t\t\t\t 0.0, \n\t\t\t\t\t74.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t\t\t30.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t// Red Alliance \n\t\t\tcontext.setFill(Color.RED);\n\t\t\t\n\t\t\t// Red Alliance Station\n\t\t\tcontext.fillRect(\n\t\t\t\t\t 0.0,\n\t\t\t\t\t 4.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t\t\t10.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t\t\t22.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\n//\t\t\t// Red Exchange Zone\n//\t\t\tcontext.fillRect(\n//\t\t\t\t\t 0.0,\n//\t\t\t\t\t 4.0 * 12.0 * PIXELS_PER_MAP_INCH, \n//\t\t\t\t\t10.0 * 12.0 * PIXELS_PER_MAP_INCH, \n//\t\t\t\t\t22.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t// Red Switch\n\t\t\tcontext.setFill(Color.LIGHTGRAY);\n\t\t\tcontext.fillRect(\n\t\t\t21.7 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t 8.604 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t 4.7 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t12.79 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\tcontext.setFill(Color.DIMGRAY);\n\t\t\tcontext.fillRect(\n\t\t\t22.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t 9.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t 4.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t 3.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\tcontext.fillRect(\n\t\t\t22.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t18.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t 4.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t 3.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t// Blue Alliance\n\t\t\tcontext.setFill(Color.BLUE);\n\n\t\t\t// Blue Alliance Station\n\t\t\tcontext.fillRect(\n\t\t\t\t\t64.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t\t\t 4.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t\t\t10.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t\t\t22.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t// Blue Switch\n\t\t\tcontext.setFill(Color.LIGHTGRAY);\n\t\t\tcontext.fillRect(\n\t\t\t47.7 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t 8.604 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t 4.66 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t12.79 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\tcontext.setFill(Color.DIMGRAY);\n\t\t\tcontext.fillRect(\n\t\t\t48.1 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t 9.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t 4.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t 3.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\tcontext.fillRect(\n\t\t\t48.1 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t18.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t 4.0 * 12.0 * PIXELS_PER_MAP_INCH, \n\t\t\t 3.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t//Platform Zone\n\t\t\tcontext.setFill(Color.LIGHTGRAY);\n\t\t\tcontext.fillRect(\n\t\t\t31.79 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t9.46 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t10.42 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t11.08 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t//Top Scale Plate\n\t\t\tcontext.setFill(Color.DIMGRAY);\n\t\t\tcontext.fillRect(\n\t\t\t35.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t7.5 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t4.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t3.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t//Bottom Scale Plate\n\t\t\tcontext.fillRect(\n\t\t\t35.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t19.5 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t4.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t3.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t//Red Alliance Starting Position\n\t\t\tcontext.setFill(Color.DIMGRAY);\n\t\t\tcontext.fillRect(\n\t\t\t9.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t4.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t1.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t6.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\tcontext.fillRect(\n\t\t\t9.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t20.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t1.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t6.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\tcontext.setFill(Color.LIGHTGRAY);\n\t\t\tcontext.fillRect(\n\t\t\t9.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t14.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t1.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t6.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t//Blue Alliance Starting Position\n\t\t\tcontext.setFill(Color.DIMGRAY);\n\t\t\tcontext.fillRect(\n\t\t\t64.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t4.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t1.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t6.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\tcontext.fillRect(\n\t\t\t64.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t20.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t1.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t6.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\tcontext.setFill(Color.LIGHTGRAY);\n\t\t\tcontext.fillRect(\n\t\t\t64.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t10.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t1.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t6.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\n\t\t\t//Red Alliance Exchange Zone\n\t\t\tcontext.setFill(Color.CRIMSON);\n\t\t\tcontext.fillRect(\n\t\t\t10.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t10.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t3.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t4.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t//Blue Alliance Exchange Zone\n\t\t\tcontext.setFill(Color.CORNFLOWERBLUE);\n\t\t\tcontext.fillRect(\n\t\t\t61.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t16.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t3.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t4.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t\t\t\n\t\t\t// Center Line\n\t\t\tcontext.setFill(Color.DIMGREY);\n\t\t\tcontext.fillRect(\n\t\t\t\t\t(37.0 * 12.0 - 1.0) * PIXELS_PER_MAP_INCH,\n\t\t\t\t\t 1.5 * 12.0\t\t* PIXELS_PER_MAP_INCH, \n\t\t\t\t\t 2.0 \t\t\t\t* PIXELS_PER_MAP_INCH, \n\t\t\t\t\t 27.0 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t// Wall Line\n\t\t\tcontext.setFill(Color.LIGHTGREY);\n\t\t\tcontext.fillRect(\n\t\t\t\t\t(12.0 * 12.0 + 11) \t\t\t\t\t\t\t* PIXELS_PER_MAP_INCH,\n\t\t\t\t\t( 1.5 * 12.0 - 2.0)\t\t\t\t\t\t\t* PIXELS_PER_MAP_INCH, \n\t\t\t\t\t((74.0 * 12.0) - (12.0 * 12.0 + 11) * 2) \t* PIXELS_PER_MAP_INCH, \n\t\t\t\t\t 2.0 \t\t\t \t\t\t\t\t\t\t* PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\tcontext.fillRect(\n\t\t\t\t\t(12.0 * 12.0 + 11) \t\t\t\t\t\t\t* PIXELS_PER_MAP_INCH,\n\t\t\t\t\t 28.5 * 12.0\t\t\t\t\t\t\t\t* PIXELS_PER_MAP_INCH, \n\t\t\t\t\t((74.0 * 12.0) - (12.0 * 12.0 + 11) * 2) \t* PIXELS_PER_MAP_INCH, \n\t\t\t\t\t 2.0 \t\t\t \t\t\t\t\t\t\t* PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\t//Corner Lines\n\t\t\tcontext.strokeLine(\n\t\t\t10.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t4.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t12.92 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t1.5 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\tcontext.strokeLine(\n\t\t\t10.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t26.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t12.92 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t28.5 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\tcontext.strokeLine(\n\t\t\t64.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t4.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t61.08 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t1.5 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\n\t\t\tcontext.strokeLine(\n\t\t\t64.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t26.0 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t61.08 * 12.0 * PIXELS_PER_MAP_INCH,\n\t\t\t28.5 * 12.0 * PIXELS_PER_MAP_INCH);\n\t\t\t\t\t\n\t\t}", "title": "" }, { "docid": "1967472a2f6d33aec1706175b3b1757c", "score": "0.5905296", "text": "@Override\r\n\tpublic void paint(Graphics g){\n if (offscr == null){\r\n //System.out.println(\"OrbitTest.paint() \" + \"w=\" + width + \",h=\" + height);\r\n offscreenImage = createImage(width, height);\r\n offscr = offscreenImage.getGraphics();\r\n }\r\n\r\n if (drawOnScreen){\r\n g.translate(width/2, height/2);\r\n paintObjects(g);\r\n g.translate(-width/2, -height/2);\r\n }\r\n else{\r\n if (clearScreen){//clearScreen\r\n offscr.setColor(getBackground());\r\n offscr.fillRect(0,0, width, height);\r\n offscr.setColor(getForeground());\r\n //clearScreen = trailing;\r\n }\r\n offscr.translate(width/2, height/2);\r\n paintObjects(offscr);\r\n offscr.translate(-width/2, -height/2);\r\n g.drawImage(offscreenImage, 0, 0, width, height, null);\r\n }\r\n\t}", "title": "" }, { "docid": "2620bd2b990534913d55282ba92998a7", "score": "0.5904246", "text": "public static void mainDraw(Graphics graphics) {\n graphics.setColor(Color.BLACK);\n graphics.fillRect(0,0,WIDTH, HEIGHT);\n\n // &&&&&&&&&&& STARS\n\n for (int i = 0; i < 20; i++) {\n Random rand = new Random();\n float r = rand.nextFloat();\n float g = rand.nextFloat();\n float b = rand.nextFloat();\n Color randomColor = new Color(r, g, b);\n\n Double randomXdouble = Math.random()*((WIDTH - 0) + 1);\n Integer randomX = randomXdouble.intValue();\n\n Double randomYdouble = Math.random()*((HEIGHT - 0) + 1);\n Integer randomY = randomYdouble.intValue();\n\n graphics.setColor(randomColor);\n graphics.drawRect(randomX, randomY, 5, 5);\n }\n }", "title": "" }, { "docid": "56fcc261efce1afc24a3e1bf74303a1b", "score": "0.59038264", "text": "@Override\n\t\tpublic void paintImage(WebcamPanel panel, BufferedImage image, Graphics2D g2) {\n\t\t\tif (painter != null) {\n\t\t\t\tpainter.paintImage(panel, image, g2);\n\t\t\t}\n\t\t\t//if there are no found objecs, just don't do anything else here\n\t\t\tif (foundObjects == null)\n\t\t\t\treturn;\n\t\t\t\n\t\t\tIterator<DetectedObject> dfi = foundObjects.iterator();\n\t\t\tint tx = TheWebCamPanel.getWidth();\n\t\t\tint ty = TheWebCamPanel.getHeight();\n\t\t\t\n\t\t\t//go through each detected object in display them on screen\n\t\t\twhile (dfi.hasNext()) {\n\t\t\t\t\n\t\t\t\tDetectedObject currentObject = dfi.next();\n\t\t\t\tRectangle2D.Double box = currentObject.getShape();\n\t\t\t\tdouble scaler = 1.0;\n\t\t\t\t\n\t\t\t\t//if screen width is smaller than screen height\n\t\t\t\tif(tx < ty)\n\t\t\t\t{\n\t\t\t\t\t//handles scaling bounding box position and size according to screen size\n\t\t\t\t\tscaler = tx/WebcamResolution.VGA.getSize().getWidth();\n\t\t\t\t\tdouble extraY = (ty - WebcamResolution.VGA.getSize().getHeight() * scaler)/2;\n\t\t\t\t\tg2.setStroke(currentObject.getStroke());\n\t\t\t\t\tg2.setColor(currentObject.getColor());\n\t\t\t\t\tbox = new Rectangle2D.Double(currentObject.getShape().getX() * scaler,\n\t\t\t\t\t\t\t\t\t\t\t\tcurrentObject.getShape().getY() * scaler + extraY,\n\t\t\t\t\t\t\t\t\t\t\t\tcurrentObject.getShape().getWidth() * scaler,\n\t\t\t\t\t\t\t\t\t\t\t\tcurrentObject.getShape().getHeight() * scaler);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//if screen width is bigger than screen height\n\t\t\t\telse if(tx > ty)\n\t\t\t\t{\n\t\t\t\t\t//handles scaling bounding box position and size according to screen size\n\t\t\t\t\tscaler = ty/WebcamResolution.VGA.getSize().getHeight();\n\t\t\t\t\tdouble extraX = (tx - WebcamResolution.VGA.getSize().getWidth() * scaler)/2;\n\t\t\t\t\tg2.setStroke(currentObject.getStroke());\n\t\t\t\t\tg2.setColor(currentObject.getColor());\n\t\t\t\t\tbox = new Rectangle2D.Double(currentObject.getShape().getX() * scaler + extraX,\n\t\t\t\t\t\t\t\t\t\t\t\tcurrentObject.getShape().getY() * scaler,\n\t\t\t\t\t\t\t\t\t\t\t\tcurrentObject.getShape().getWidth() * scaler,\n\t\t\t\t\t\t\t\t\t\t\t\tcurrentObject.getShape().getHeight() * scaler);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//actually draws scaled elements\n\t\t\t\tg2.draw(box);\t\t\t\t\t\n\t\t\t\tFont font = new Font(\"sans-serif\", Font.BOLD, (int) Math.round(LabelfontSize * scaler));\n\t\t\t\tg2.setFont(font);\n\t\t\t\tFontMetrics metrics = g2.getFontMetrics(font);\n\t\t\t\t//will show label twice overlapping for neat visual effect\n\t\t\t\tg2.drawString(currentObject.getName(), Math.round(box.getX()),\n\t\t\t\t\t\tMath.round(box.getY()) + metrics.getHeight()/2);\n\t\t\t\t\n\t\t\t\tg2.setColor(Color.WHITE);\n\t\t\t\tg2.drawString(currentObject.getName(), Math.round(box.getX()) + (int) Math.ceil(1*scaler),\n\t\t\t\t\t\tMath.round(box.getY()) + metrics.getHeight()/2 + (int) Math.ceil(1*scaler));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5e1446581a289106db15504119dde13e", "score": "0.59011555", "text": "public void updateTurtleImage();", "title": "" }, { "docid": "9530d44a817c3ee0efc284f3b1cc22d5", "score": "0.5900114", "text": "public void drawMoto(Graphics g) {\n\t\tscore++;\n\n\t\tif (this.currentDirection.equals(\"N\")) {\n\t\t\tg.fillRect(motorbike.x, motorbike.y, motorbike.width, motorbike.height+SPEED);\n\t\t}\n\t\telse if (this.currentDirection.equals(\"S\")) {\n\t\t\tg.fillRect(motorbike.x, motorbike.y-SPEED, motorbike.width, motorbike.height+SPEED);\n\t\t}\n\t\telse if (this.currentDirection.equals(\"W\")) {\n\t\t\tg.fillRect(motorbike.x, motorbike.y, motorbike.width+SPEED, motorbike.height);\n\t\t}\n\t\telse if (this.currentDirection.equals(\"E\")) {\n\t\t\tg.fillRect(motorbike.x-SPEED, motorbike.y, motorbike.width+SPEED, motorbike.height);\n\t\t}\n\n\t System.out.println(\"POSIZIONE MOTO PATCH X:\" + motorbike.x/SIZE_MOTO + \" Y:\" + motorbike.y/SIZE_MOTO);\n\t if (this.checkBorder(motorbike.x/SIZE_MOTO, motorbike.y/SIZE_MOTO) || (matrix[motorbike.x/SIZE_MOTO][motorbike.y/SIZE_MOTO] != '0')) {\n\t \tif(this.checkBorder(motorbike.x/SIZE_MOTO, motorbike.y/SIZE_MOTO)){\n\t \t\tSystem.out.println(\"[EXIT] SONO USCITO DAI BORDI!\");\n\t \t}\t \t\t\n\t \telse { \n\t \t\tSystem.out.println(\"[EXIT] SCONTRO CON UN'ALTRA MOTO!\");\n\t \t}\n\t \t\t\n\t \tSystem.exit(0);\n\t }\n\t // Setto la posizione come occupata dalla moto con un suo identificativo\n\t matrix[motorbike.x/SIZE_MOTO][motorbike.y/SIZE_MOTO] = Controller.getInstance().getMyPlayer().getId();\n\t}", "title": "" }, { "docid": "c3bad1212c00086dd0e8714cc9bd689b", "score": "0.5899374", "text": "public static void main(String[] args) {\n\n\t\tList<Arco> listaArcoExterno = new ArrayList<Arco>();\n\t List<Arco> listaArcoInterno = new ArrayList<Arco>();\n\n\t\tBufferedImage bufferImagem = new BufferedImage( WINDOW_WIDTH, WINDOW_HEIGHT, BufferedImage.TYPE_INT_RGB );\n\n\t\tGraphics2D graphics = bufferImagem.createGraphics();\n\t\tgraphics.setPaint ( Color.WHITE);//new Color ( 255, 255, 255 ) );\n\t\tgraphics.fillRect ( 0, 0, bufferImagem.getWidth(), bufferImagem.getHeight() );\n\n\t\tlistaArcoExterno = drawCircleInImage(graphics, 400, 400, 300);\n\n\t\tlistaArcoInterno = drawCircleInImage(graphics, 400, 400, 200);\n/*\n\t\tint[] polygonXs = { -20, 0, +20, 0};\n\t\tint[] polygonYs = { 20, 10, 20, -20};\n\t\tShape shape = new Polygon(polygonXs, polygonYs, polygonXs.length);\n*/\n\t\tString paletaCor[] = {\n\t\t\t\t\"#E3F2FD\",\n\t\t\t\t\"#BBDEFB\",\n\t\t\t\t\"#90CAF9\",\n\t\t\t\t\"#64B5F6\",\n\t\t\t\t\"#42A5F5\",\n\t\t\t\t\"#2196F3\",\n\t\t\t\t\"#1E88E5\",\n\t\t\t\t\"#1976D2\",\n\t\t\t\t\"#1565C0\",\n\t\t\t\t\"#0D47A1\"\n\t\t};\n\n\t\tint[] polygonXs;\n\t\tint[] polygonYs;\n\n\t\tint j = 0;\n\t\tfor(int i = 0 ; i<60 ; i+=6) {\n\n\t\t\tpolygonXs = new int[] {\n\t\t\t\t\tlistaArcoExterno.get(i).getX(),\n\t\t\t\t\tlistaArcoExterno.get(i+1).getX(),\n\t\t\t\t\tlistaArcoExterno.get(i+2).getX(),\n\t\t\t\t\tlistaArcoExterno.get(i+3).getX(),\n\t\t\t\t\tlistaArcoExterno.get(i+4).getX(),\n\t\t\t\t\tlistaArcoExterno.get(i+5).getX(),\n\t\t\t\t\tlistaArcoInterno.get(i+5).getX(),\n\t\t\t\t\tlistaArcoInterno.get(i+4).getX(),\n\t\t\t\t\tlistaArcoInterno.get(i+3).getX(),\n\t\t\t\t\tlistaArcoInterno.get(i+2).getX(),\n\t\t\t\t\tlistaArcoInterno.get(i+1).getX(),\n\t\t\t\t\tlistaArcoInterno.get(i).getX(),\n\n\n\t\t\t};\n\t\t\tpolygonYs = new int[] {\n\t\t\t\t\tlistaArcoExterno.get(i).getY(),\n\t\t\t\t\tlistaArcoExterno.get(i+1).getY(),\n\t\t\t\t\tlistaArcoExterno.get(i+2).getY(),\n\t\t\t\t\tlistaArcoExterno.get(i+3).getY(),\n\t\t\t\t\tlistaArcoExterno.get(i+4).getY(),\n\t\t\t\t\tlistaArcoExterno.get(i+5).getY(),\n\t\t\t\t\tlistaArcoInterno.get(i+5).getY(),\n\t\t\t\t\tlistaArcoInterno.get(i+4).getY(),\n\t\t\t\t\tlistaArcoInterno.get(i+3).getY(),\n\t\t\t\t\tlistaArcoInterno.get(i+2).getY(),\n\t\t\t\t\tlistaArcoInterno.get(i+1).getY(),\n\t\t\t\t\tlistaArcoInterno.get(i).getY(),\n\t\t\t};\n\n\t\t\tShape shape = new Polygon(polygonXs, polygonYs, polygonXs.length);\n\t\t\tgraphics.draw(shape);\n\n\n\n\t\t\t/*\n\t\t\tColor color1 = Color.decode(\"#E3F2FD\");\n\t Color color2 = Color.decode(\"#0D47A1\");\n\n\t \tj = j + 1;\n\n\t float ratio = (float) j / (float) 10;\n\t int red = (int) (color2.getRed() * ratio + color1.getRed() * (1 - ratio));\n\t int green = (int) (color2.getGreen() * ratio + color1.getGreen() * (1 - ratio));\n\t int blue = (int) (color2.getBlue() * ratio + color1.getBlue() * (1 - ratio));\n\t Color stepColor = new Color(red, green, blue);\n\t */\n\n\t graphics.setColor(Color.decode(paletaCor[j++]));\n\n\t\t\tgraphics.fill(shape);\n\n\n\t\t}\n\n\t\t/*\n\t\tAffineTransform tx = new AffineTransform();\n\t\ttx.rotate(0.028, bufferImagem.getWidth() / 2, bufferImagem.getHeight() / 2);\n\n\t\tAffineTransformOp op = new AffineTransformOp(tx,\n\t\t AffineTransformOp.TYPE_BILINEAR);\n\t\tbufferImagem = op.filter(bufferImagem, null);\n\n\t\tgraphics = bufferImagem.createGraphics();\n\t\t*/\n\n\t\t java.awt.Font fontSerasaPontuacao = new java.awt.Font(\"Impact\", Font.HELVETICA, 35);\n\t\t graphics.setColor(Color.BLACK);\n\t\t graphics.setFont(fontSerasaPontuacao);\n\n\t\t graphics.drawString(\"0\", 75, 384);\n\t\t graphics.drawString(\"100\", 55, 307);\n\t\t graphics.drawString(\"200\", 95, 223);\n\t\t graphics.drawString(\"300\", 162, 157);\n\t\t graphics.drawString(\"400\", 250, 114);\n\t\t graphics.drawString(\"500\", 365, 90);\n\t\t graphics.drawString(\"600\", 492, 114);\n\t\t graphics.drawString(\"700\", 576, 157);\n\t\t graphics.drawString(\"800\", 642, 223);\n\t\t graphics.drawString(\"900\", 685, 307);\n\t\t graphics.drawString(\"1000\", 699, 384);\n\n\n\n\n\t\t int score = 900;\n\n\n\n\n\n\t // Desenho da flecha\n\t int[] flechaXs = { -20, 0, +20, 0};\n\t\t int[] flechaYs = { 20, 10, 20, -20};\n\t\t Shape shape = new Polygon(flechaXs, flechaYs, flechaXs.length);\n\n\t\t double indice = 0.1789;\n\t\t int posicaoCentroX = 400;\n\t\t int posicaoCentroY = 400;\n\t\t int raio = 200;\n\n\t\t String textScore = String.valueOf(score);\n\t\t java.awt.Font fontSerasaScore = new java.awt.Font(\"Helvetica\", Font.HELVETICA, 54);\n\t\t\t graphics.setColor(Color.decode(\"#1394D6\"));\n\t\t\t graphics.setFont(fontSerasaScore);\n\t\t\t int posicao = (bufferImagem.getWidth()/2) - ((textScore.length()*36)/2);\n\t\t\t graphics.drawString(textScore, posicao, posicaoCentroY);\n\n\t\t int graus = (int) (180 - (score * indice)); // quantos graus por indice\n\t\t\t double angulo = ((score/1000f) * 180) + 270; // angulo que a flecha será direcionada\n\t\t\t double xd = Math.cos(1 * Math.PI / 180 * -graus); // coordenada onde a fecha ficará no arco.\n\t\t\t double yd = Math.sin(1 * Math.PI / 180 * -graus); // coordenada onde a fecha ficará no arco.\n\t\t\t int x = (int) (xd * raio + posicaoCentroX); // correcao da posicao da flexa dentro da imagem.\n\t\t\t int y = (int) (yd * raio + posicaoCentroY); // correcao da posicao da flexa dentro da imagem.\n\n\t\t\t AffineTransform saveTransform = graphics.getTransform();\n\t\t\t AffineTransform identity = new AffineTransform();\n\t\t\t graphics.setTransform(identity);\n\t\t\t graphics.setColor(Color.BLACK);\n\t\t\t graphics.translate(x, y);\n\t\t\t graphics.rotate(Math.toRadians(angulo));\n\t\t\t graphics.scale(0.95, 0.95);\n\t\t\t graphics.fill(shape);\n\t\t\t graphics.dispose();\n\n\n\n\t\tapresentarImagem(bufferImagem);\n\n\t}", "title": "" }, { "docid": "a01e913356b76e5af657624024782de5", "score": "0.589305", "text": "public void paint(Graphics g)\n {\n if (image == null)\n {\n super.paint(g);\n }\n else\n { \n Rectangle rect = getBounds();\n int w = rect.width;\n int h = rect.height;\n \n \n if (w > width && h > height)\n {\n super.paint(g); \n }\n g.drawImage(image, 10, 30, this); \n \n g.setColor( Color.cyan);//new Color(255, 0, 0));\n \n for(int i = 0; i< 552; i+=2){ \n if((im.coordinateValues[i])> -1) {\n g.fillRect(((im.coordinateValues[i]*20)+11), ((im.coordinateValues[i+1]*20)+31), 19, 19);\n } \n else{\n \n break;\n } \n }\n \n \n /*Drawing horizontal lines\n *The first line has to be drawn carefully\n *The origin of this coordinate system is the canvas and not\n *the rectangle in which the image is enclosed\n */ \n /*\n g.setColor(Color.lightGray); \n \n g.drawLine(29, 29, 29, 389); \n \n int horizontalX = 49;\n int horizontalY = 49;\n for(int i =0; i< 35; i++){\n g.drawLine(horizontalX, 30, horizontalY, 389);\n horizontalX += 20;\n horizontalY += 20;\n }\n \n /*Drawing Vertical lines\n *The first line has to be drawn carefully\n *The origin of this coordinate system is the canvas and not\n *the rectangle in which the image is enclosed\n */\n \n /* g.drawLine(8, 49, 727, 49);\n \n int verticalX = 69;\n int verticalY = 69;\n for(int i =0; i< 17; i++){\n g.drawLine(9, verticalX, 727, verticalY);\n verticalX += 20;\n verticalY += 20;\n }\n */\n }\n }", "title": "" }, { "docid": "fe3e4eaf716d95f9f0787f843e61e9eb", "score": "0.5890465", "text": "public void paint(Graphics g){\r\n\t\t super.paint(g); // Dessine le contenu d'un panel\r\n\t int i,j;\r\n\t //on dessine les taches noirs\r\n\t for(i = 0; i < m.taches.size(); i++){\r\n\t \t // g.drawOval((int)(m.taches.get(i).p.x -m.taches.get(i).diametre/2), (int)(m.taches.get(i).p.y - m.taches.get(i).diametre/2) , m.taches.get(i).diametre,m.taches.get(i).diametre);\r\n\t \t g.setColor(Color.black);\r\n\t \t g.fillOval((int)m.taches.get(i).p.x -m.taches.get(i).diametre/2, (int)m.taches.get(i).p.y - m.taches.get(i).diametre/2 , m.taches.get(i).diametre,m.taches.get(i).diametre);\r\n\t \t //g.fillOval((int)m.taches.get(i).p.x , (int)m.taches.get(i).p.y, m.taches.get(i).diametre,m.taches.get(i).diametre);\r\n \t \r\n\t }\r\n\t //on dessine les obstacles rouges\r\n\t for(j = 0; j <m.obstacles.size();j++){\r\n\t \t g.setColor(Color.red);\r\n\t \t g.fillOval((int)m.obstacles.get(j).p.x - m.obstacles.get(j).diametre/2, (int)m.obstacles.get(j).p.y - m.obstacles.get(j).diametre/2, m.obstacles.get(j).diametre,m.obstacles.get(j).diametre);\r\n\t \t// g.fillOval((int)m.obstacles.get(j).p.x, (int)m.obstacles.get(j).p.y, m.obstacles.get(j).diametre,m.obstacles.get(j).diametre); \r\n\t }\r\n\t \r\n\t // on recupere la zone de dessin\r\n\t Graphics2D g2 = (Graphics2D) g;\r\n\t // on efface une zone un peu plus grande que le cercle\r\n\t g2.setColor(Color.white);\r\n\t g2.fillOval(prev_x, prev_y, 35, 35);\r\n\t // on dessin un disque rouge\r\n\t g2.setColor(Color.blue);\r\n\t g2.drawOval(x, y, m.r.diametre, m.r.diametre);\r\n\t g2.drawLine(x+17,y+17,(int) (x+17+17*Math.cos(m.r.po.getTheta())),(int)(y+17-17*Math.sin(m.r.po.getTheta())));\r\n\t // on rend la main\r\n\t g2.dispose();\r\n\t // on retient x,y pour pouvoir effacer au prochain appel\r\n\t prev_x = x;\r\n\t prev_y = y;\r\n\t}", "title": "" }, { "docid": "70b8d90c6b11259cbb50945ebb45dbc0", "score": "0.5889458", "text": "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n \n Graphics g = jPanel1.getGraphics(); \n \n g.setColor(Color.black);\n g.drawLine(330, 60, 370, 100);\n g.drawLine(330, 60, 290, 100);\n \n g.setColor(Color.blue); \n g.fillOval(280, 90, 20, 20); \n g.fillOval(360, 90, 20, 20); \n g.fillOval(320, 50, 20, 20);\n \n Graphics g1= jPanel1.getGraphics();\n \n g1.setColor(Color.red);\n g1.fillOval(100, 60, 60, 10);\n \n \n //------------------------------\n \n try { \n //la imagen logo.jpg debe estar en la carpeta raiz del proyecto\n BufferedImage img = ImageIO.read( new File(\"logo.jpg\")); \n g.drawImage(img, 170, 150, this);\n } catch (IOException ex) {\n System.out.println(\"Problemas al leer la imagen\");\n }\n \n \n \n }", "title": "" }, { "docid": "9def94e50a778d6590ee31afaf3d3613", "score": "0.5886905", "text": "public static void main(String[] args) {\n Canvas pic = Canvas.getCanvas();\n\n // Set the title and background for the picture\n pic.setTitle(\"My Picture\");\n pic.setBackgroundColor(\"black\");\n\n // Draw my picture\n Circle c = new Circle(100, 230, 90, Canvas.getColor(\"blue\"));\n c.makeVisible();\n Arc b = new Arc(200, 0, 0, 30, 120, Canvas.getColor(\"yellow\"));\n b.makeVisible();\n Triangle a = new Triangle(90, 120, 200, 200, Canvas.getColor(\"magenta\"));\n a.makeVisible();\n Rect d = new Rect(100, 300, 400, 450, Canvas.getColor(\"red\"));\n d.makeVisible();\n Circle i = new Circle(690, 490, 300, Canvas.getColor(\"white\"));\n i.makeVisible();\n Circle f = new Circle(520, 890, 720, Canvas.getColor(\"cyan\"));\n f.makeVisible();\n Arc g = new Arc(300, 200, 200, 80, 320, Canvas.getColor(\"white\"));\n g.makeVisible();\n Arc h = new Arc(20, 500, 700, 35, 90, Canvas.getColor(\"brown\"));\n h.makeVisible();\n Triangle j = new Triangle(100, 200, 500, 100, Canvas.getColor(\"green\"));\n j.makeVisible();\n Triangle k = new Triangle(250, 300, 300, 600, Canvas.getColor(\"yellow\"));\n k.makeVisible();\n Rect l = new Rect(150, 100, 310, 120, Canvas.getColor(\"green\"));\n l.makeVisible();\n Rect m = new Rect(300, 250, 600, 200, Canvas.getColor(\"cyan\"));\n m.makeVisible();\n\n // Get the filename to save to from the command line arguments, defaulting to\n // MyPicture.png if no argument is given\n String filename;\n if (args.length > 0 && args[0] != null && !args[0].isEmpty()) {\n filename = args[0];\n }\n else {\n filename = \"MyPicture.png\";\n }\n\n // Save the picture to a file\n try {\n pic.saveToFile(new File(filename));\n System.out.println(\"Picture saved to \" + filename);\n } catch (IOException e) {\n System.err.println(e);\n System.err.println(\"Could not save file.\");\n }\n }", "title": "" }, { "docid": "6c39847abb66d0024dc60e09e3841ac3", "score": "0.5886734", "text": "private void updateImage()\n {\n img.clear();\n img.setColor(Color.BLACK);\n if(initialized == true)\n {\n List<Buildings> struct = getObjectsInRange(30,Buildings.class);\n if(!struct.isEmpty())\n {\n if(struct.get(0).getPlayer() == 1)\n {\n img.setColor(Color.RED);\n }\n else if(struct.get(0).getPlayer() == 2)\n {\n img.setColor(Color.GREEN);\n }\n else if(struct.get(0).getPlayer() == 3)\n {\n img.setColor(Color.BLUE);\n }\n else\n {\n img.setColor(Color.WHITE);\n }\n }\n }\n img.drawLine(29,0,0,14);\n img.drawLine(0,14,0,44);\n img.drawLine(0,44,29,59);\n img.drawLine(29,59,59,44);\n img.drawLine(59,44,59,14);\n img.drawLine(59,14,29,0);\n img.scale(60,60);\n setImage(img);\n }", "title": "" }, { "docid": "26d6274ec694a54ab976600f728cb098", "score": "0.58824474", "text": "public Picture()\n {\n pumpkin = new Circle();\n stem = new Triangle(); \n leftEye = new Triangle();\n rightEye = new Triangle();\n mouth1 = new Square();\n mouth2 = new Square();\n mouth3 = new Square();\n james = new Person();\n drawn = false;\n }", "title": "" }, { "docid": "a18ad032d4ab318cb9064a3c471ff447", "score": "0.58807486", "text": "public void drawOval(int x, int y, int width, int height);", "title": "" }, { "docid": "b9bca66b4927e06c02836bfc583270e0", "score": "0.5879358", "text": "public void render(Graphics g){\r\n BufferedImage mushroomPic = null;\r\n try{\r\n mushroomPic = ImageIO.read(new File(\"Mushroom.png\"));\r\n } \r\n catch (IOException e) {\r\n }\r\n Random rand = new Random();\r\n \r\n g.drawImage(mushroomPic, x, y, null);\r\n \r\n }", "title": "" }, { "docid": "b1d2065f5f55bb5775538c13b663af90", "score": "0.5877421", "text": "public void draw() {\n\n\t\tbackground(40);\n\t\tcontrolP5.draw();\n\t\t\n\t}", "title": "" }, { "docid": "926529651a3f1c784f347d380dedc3a9", "score": "0.5875561", "text": "@Override\r\n public void paintComponent(Graphics g) {\r\n super.paintComponent(g);\r\n if (arkavquarium.getTelur() >= 3)\r\n {\r\n g.drawImage(winBG, 0, 0, getWidth(), getHeight(), this);\r\n }\r\n else if (arkavquarium.getIkanList().getSize()==0 && arkavquarium.getKoin()<50)\r\n {\r\n g.drawImage(loseBG, 0, 0, getWidth(), getHeight(), this);\r\n }\r\n else\r\n {\r\n createDrawing(g);\r\n }\r\n }", "title": "" }, { "docid": "dac3b5e9040c6d48a59882511bc94148", "score": "0.58739126", "text": "public void drawCharacter(Graphics g, int[] t, Image tileset, int x, int y) {\n\n g.drawImage(img, 0, 0, null);\n\n int mx[] = new int[t.length];\n int my[] = new int[t.length];\n\n for (int i = 0; i < t.length; i++) {\n\n mx[i] = t[i] % 3;\n my[i] = t[i] / 3;\n\n }\n\n //if (t[0].equals(Tile.FRONTHEAD1)){\n\n\n //op basis van bovenste - verkeerd\n //g.drawImage(tileset, x, y, x + 32, y + 32,\n //mx[1]*tW, my[1]*tH, mx[1]*tW+tW, my[1]*tH+tH, this);\n //g.drawImage(tileset, x, y + 32, x + 32, y + 64,\n //mx[4]*tW, my[4]*tH, mx[4]*tW+tW, my[4]*tH+tH, this);\n\n //op basis van voeten - juist (logische)\n\n //voeten gebruik maken van myx[3] -> myx[5]\n\n if (mapmovement == false) {\n g.drawImage(tileset, x, y, x + 32, y + 32,\n mx[charactergif1] * model.gettW(), my[charactergif1] * model.gettH(), mx[charactergif1] * model.gettW() + model.gettW(), my[charactergif1] * model.gettH() + model.gettH(), this);\n g.drawImage(tileset, x, y - 32, x + 32, y,\n mx[charactergif2] * model.gettW(), my[charactergif2] * model.gettH(), mx[charactergif2] * model.gettW() + model.gettW(), my[charactergif2] * model.gettH() + model.gettH(), this);\n try {\n thread.sleep(50);\n } catch (Exception ex) {\n }\n } else {\n switch (model.getRichting()) {\n case 0:\n g.drawImage(tileset, x, y, x + 32, y + 32,\n mx[charactergif1] * model.gettW(), my[charactergif1] * model.gettH(), mx[charactergif1] * model.gettW() + model.gettW(), my[charactergif1] * model.gettH() + model.gettH(), this);\n break;\n case 1:\n g.drawImage(tileset, x + 2 * count, y, x + 32 + 2 * count, y + 32,\n mx[charactergif1] * model.gettW(), my[charactergif1] * model.gettH(), mx[charactergif1] * model.gettW() + model.gettW(), my[charactergif1] * model.gettH() + model.gettH(), this);\n break;\n case 2:\n g.drawImage(tileset, x, y + 2 * count, x + 32, y + 32 + 2 * count,\n mx[charactergif1] * model.gettW(), my[charactergif1] * model.gettH(), mx[charactergif1] * model.gettW() + model.gettW(), my[charactergif1] * model.gettH() + model.gettH(), this);\n break;\n case 3:\n g.drawImage(tileset, x - 2 * count, y, x + 32 - 2 * count, y + 32,\n mx[charactergif1] * model.gettW(), my[charactergif1] * model.gettH(), mx[charactergif1] * model.gettW() + model.gettW(), my[charactergif1] * model.gettH() + model.gettH(), this);\n break;\n case 4:\n g.drawImage(tileset, x, y - 2 * count, x + 32, y + 32 - 2 * count,\n mx[charactergif1] * model.gettW(), my[charactergif1] * model.gettH(), mx[charactergif1] * model.gettW() + model.gettW(), my[charactergif1] * model.gettH() + model.gettH(), this);\n break;\n default:\n break;\n }\n\n //lichaam gebruik maken van myx[0] -> myx [2] (wandeled lichaam)\n\n switch (model.getRichting()) {\n case 0:\n g.drawImage(tileset, x, y - 32, x + 32, y,\n mx[charactergif2] * model.gettW(), my[charactergif2] * model.gettH(), mx[charactergif2] * model.gettW() + model.gettW(), my[charactergif2] * model.gettH() + model.gettH(), this);\n break;\n case 1:\n g.drawImage(tileset, x + 2 * count, y - 32, x + 32 + 2 * count, y,\n mx[charactergif2] * model.gettW(), my[charactergif2] * model.gettH(), mx[charactergif2] * model.gettW() + model.gettW(), my[charactergif2] * model.gettH() + model.gettH(), this);\n break;\n case 2:\n g.drawImage(tileset, x, y - 32 + 2 * count, x + 32, y + 2 * count,\n mx[charactergif2] * model.gettW(), my[charactergif2] * model.gettH(), mx[charactergif2] * model.gettW() + model.gettW(), my[charactergif2] * model.gettH() + model.gettH(), this);\n break;\n case 3:\n g.drawImage(tileset, x - 2 * count, y - 32, x + 32 - 2 * count, y,\n mx[charactergif2] * model.gettW(), my[charactergif2] * model.gettH(), mx[charactergif2] * model.gettW() + model.gettW(), my[charactergif2] * model.gettH() + model.gettH(), this);\n break;\n case 4:\n g.drawImage(tileset, x, y - 32 - 2 * count, x + 32, y - 2 * count,\n mx[charactergif2] * model.gettW(), my[charactergif2] * model.gettH(), mx[charactergif2] * model.gettW() + model.gettW(), my[charactergif2] * model.gettH() + model.gettH(), this);\n break;\n default:\n break;\n }\n }\n\n\n\n }", "title": "" }, { "docid": "8e692650fb453bf767527d4f533bb282", "score": "0.58702046", "text": "protected void drawRobot(RobotInterface Ri) {\r\n\t\tRi.showRobot(x, y, rad, getCol());\r\n\t\tRi.robWheels(x, y, rad, this);\r\n\t}", "title": "" }, { "docid": "d65f72bbd61f88f81e4873ce8f3b7490", "score": "0.58148646", "text": "private void test_draw(){\n setColor(255, 0, 0);\n fillRect(1000, 1000, 50, 50);\n\n setColor(0, 0 , 255);\n fillOval(500, 500, 25, 25);\n\n setColor(0, 255, 0);\n drawLine(1000, 1000, 1000, 0);\n\n setColor(0, 255, 255);\n drawLine(1300, 1300, 100, 100);\n }", "title": "" }, { "docid": "9c6dacad9027dbc58d2bc6856952aa2a", "score": "0.581301", "text": "public void draw()\r\n\t{\t\t\r\n\t\tWindow.out.circle(x, y, 5);\r\n\t}", "title": "" }, { "docid": "0f46ad6509c64ea626d2868af4e2c2a7", "score": "0.5810293", "text": "public void draw(){\n for(Tile tile: rack){\r\n UI.setColor(Color.black);\r\n UI.drawRect(Left-2, Top-2, 7*(40+1)+3, 40+3);\r\n }\r\n }", "title": "" }, { "docid": "35a42ddc7352273ad59a24c9eb5a91ce", "score": "0.580721", "text": "public void draw() {\n\t\tif (introScreen) {\n\t\t\tfill(255, 255, 255, emilColor);\n\t\t\tgm.imageMode(PApplet.CENTER);\n\t\t\tgm.image(emilLogo, width / 2, height / 2);\n\t\t\trect(0, 0, width, height);\n\t\t\temilTimer--;\n\t\t\tif (emilColor > -10 && !emilShown) {\n\t\t\t\temilColor -= 2;\n\t\t\t} else {\n\t\t\t\temilShown = true;\n\t\t\t\temilColor += 6;\n\t\t\t}\n\t\t\tif (emilTimer < 0) {\n\t\t\t\tintroScreen = false;\n\t\t\t\tplaying = true;\n\t\t\t}\n\t\t} else if (playing) {\n\t\t\ttick();\n\t\t} else {\n\t\t\tdefeat();\n\t\t}\n\t}", "title": "" }, { "docid": "89433ac627203305fdc5d9e043b709f5", "score": "0.5805392", "text": "public DrawFrame(String title)\n {\n super(title);\n \n int width = 800;\n int height = 600;\n \n // Base head:\n Circle base = new Circle(new Point(400, 300), 300, Color.BLACK, true);\n \n // Ears:\n RightTriangle outerLeft = new RightTriangle(new Point(275,235), 40, 150, Color.BLACK, true);\n RightTriangle innerLeft = new RightTriangle(new Point(280,235), 20, 100, Color.pink, true);\n\n RightTriangle outerRight = new RightTriangle(new Point(525,235), -40, 150, Color.BLACK, true);\n RightTriangle innerRight = new RightTriangle(new Point(520,235), -20, 100, Color.pink, true);\n \n // Eyes:\n Oval leftWhites = new Oval(new Point(340, 250), 50, 75, Color.WHITE, true);\n Oval leftPupil = new Oval(new Point(340, 250), 25, 65, Color.BLACK, true);\n\n Oval rightWhites = new Oval(new Point(460, 250), 50, 75, Color.WHITE, true);\n Oval rightPupil = new Oval(new Point(460, 250), 25, 65, Color.BLACK, true);\n \n // Nose and Whiskers:\n Circle nose = new Circle(new Point(400, 300), 40, Color.pink, true);\n PolyLine leftMouth = new PolyLine(new Point(330,350), new Point(400,360), 10, Color.white, true);\n PolyLine rightMouth = new PolyLine(new Point(400,360), new Point(470,350), 10, Color.white, true);\n Oval tongue = new Oval(new Point(420,375), 20, 35, Color.red, true);\n\n // Collar: \n Oval collarStrap = new Oval(new Point(400,440), 340, 50, Color.green,true);\n Circle tags = new Circle(new Point(400,440), 60, Color.CYAN, true);\n Circle tagsInner = new Circle(new Point(400,440), 40, Color.red, false);\n\n \n \n // Outlines n stuff:\n Circle bigCirc = new Circle(new Point(400, 300), 600, Color.RED, false);\n Square square = new Square(new Point(400, 300), 424, Color.red, false);\n\n\n // initialize the panel and add the shapes to it\n drawPanel = new DrawPanel();\n \n // Add shapes to the panel:\n drawPanel.addShape(base);\n drawPanel.addShape(outerLeft);\n drawPanel.addShape(innerLeft);\n drawPanel.addShape(outerRight);\n drawPanel.addShape(innerRight);\n drawPanel.addShape(leftWhites);\n drawPanel.addShape(leftPupil);\n drawPanel.addShape(rightWhites);\n drawPanel.addShape(rightPupil);\n drawPanel.addShape(nose);\n drawPanel.addShape(bigCirc);\n drawPanel.addShape(square);\n drawPanel.addShape(leftMouth);\n drawPanel.addShape(rightMouth);\n drawPanel.addShape(tongue);\n drawPanel.addShape(collarStrap);\n drawPanel.addShape(tags);\n drawPanel.addShape(tagsInner);\n \n // set background color\n drawPanel.setBackground(Color.LIGHT_GRAY);\n \n // add panel to frame\n this.add(drawPanel); \n \n // finish setting up the frame\n setSize(width, height);\n setResizable(false);\n setLocationRelativeTo(null);\n setVisible(true);\n }", "title": "" }, { "docid": "c1d8edf0e3087cc5fefff27f158664bd", "score": "0.58028585", "text": "public void drawHere()\r\n {\n this.drawTopV();\r\n this.drawBottomV();\r\n }", "title": "" }, { "docid": "fc00cda1f671223c753bdc32e6c00e6b", "score": "0.58003646", "text": "public void drawWall(Vec2 pos, int size, BufferedImage img, Color c, Graphics2D g) {\n\t\tg.setColor(c);\n\t\tif(world.getGraphicMode() == RobotTextureMod.TEXTURE)\n\t\t\tg.drawImage(img, null, (int)pos.x-5, (int)pos.y-5);\n\t\telse\n\t\t\tg.fillRect((int)pos.x, (int)pos.y, size, size);\n\t}", "title": "" }, { "docid": "cf5c604ae46152c1bffd822293b5add0", "score": "0.5799009", "text": "public JImagePanel() {\n\t\tdrawingRect = new int[(6 * (Global.size * Global.size))][3];\n\t\tint counter = 0;\n\t\tfor (int i = 0; i < 6; i++)\n\t\t\tfor (int j = 0; j < Global.size; j++)\n\t\t\t\tfor (int k = 0; k < Global.size; k++) {\n\t\t\t\t\tdrawingRect[counter][0] = i;\n\t\t\t\t\tdrawingRect[counter][1] = j;\n\t\t\t\t\tdrawingRect[counter][2] = k;\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\tf1 = new Font(\"Arial\", Font.BOLD, 30);\n\t\tf2 = new Font(\"Arial\", Font.BOLD, 15);\n\t}", "title": "" }, { "docid": "b4f49703923c557b7c5094fb79059064", "score": "0.57988214", "text": "public void draw(Graphics g){\n if(this.isAlive()) {\n g.drawImage(_image, _position.getCordX(), _position.getCordY(), 80, 80, null);\n }\n }", "title": "" }, { "docid": "0a849b35c2c433d122da4e941e45f87e", "score": "0.5797522", "text": "public void drawings()\n\t{\n\t\tPolyline bodyToRight = new Polyline(getHandLocation(), getElbowLocation(), getShoulderLocation(),\n\t\t\t\tgetHipLocation(), getRightKneeLocation(), getRightFootLocation());\n\t\tbodyToRightGraphics = new ShapeGraphics(bodyToRight, null, Color.CYAN, .1f, 1.f, 0);\n\t\tbodyToRightGraphics.setParent(getEntity());\n\n\t\t// adds the other leg as polyline whilst going right\n\t\tPolyline leg1 = new Polyline(getHipLocation(), getLeftKneeLocation(), getLeftFootLocation());\n\t\tleg1Graphics = new ShapeGraphics(leg1, null, Color.CYAN, .1f, 1.f, 0);\n\t\tleg1Graphics.setParent(getEntity());\n\n\t\tPolyline bodyToLeft = new Polyline(getHandLocation().add(-1f, 0f), getElbowLocation().add(-0.4f, 0f),\n\t\t\t\tgetShoulderLocation().add(0.4f, 0.0f), getHipLocation().add(0.9f, 0f),\n\t\t\t\tgetRightKneeLocation().add(-0.4f, -0.0f), getRightFootLocation().add(-0.5f, 0));\n\t\tbodyToLeftGraphics = new ShapeGraphics(bodyToLeft, null, Color.CYAN, .1f, 1.f, 0);\n\t\tbodyToLeftGraphics.setParent(getEntity());\n\n\t\t// adds the other leg as polyline whilst going left\n\t\tPolyline leg2 = new Polyline(getHipLocation().add(0.9f, 0), getLeftKneeLocation().add(-0.1f, 0),\n\t\t\t\tgetLeftFootLocation().add(0.1f, 0));\n\t\tleg2Graphics = new ShapeGraphics(leg2, null, Color.CYAN, .1f, 1.f, 0);\n\t\tleg2Graphics.setParent(getEntity());\n\n\t\t// victory position to right\n\t\tPolyline victoryToRight = new Polyline(getHandLocation().add(0.2f, 0.5f), getElbowLocation().add(0.20f, 0.3f),\n\t\t\t\tgetShoulderLocation(), getHipLocation(), getRightKneeLocation(), getRightFootLocation());\n\t\tvictoryToRightGraphics = new ShapeGraphics(victoryToRight, null, Color.CYAN, .1f, 1.f, 0);\n\t\tvictoryToRightGraphics.setParent(getEntity());\n\n\t\t// victory position to left\n\t\tPolyline victoryToLeft = new Polyline(getHandLocation().add(-1f, 0.8f), getElbowLocation().add(-0.6f, 0.5f),\n\t\t\t\tgetShoulderLocation().add(0.4f, 0.0f), getHipLocation().add(0.9f, 0f),\n\t\t\t\tgetRightKneeLocation().add(-0.4f, -0.0f), getRightFootLocation().add(-0.5f, 0));\n\t\tvictoryToLeftGraphics = new ShapeGraphics(victoryToLeft, null, Color.CYAN, .1f, 1.f, 0);\n\t\tvictoryToLeftGraphics.setParent(getEntity());\n\t}", "title": "" }, { "docid": "64b095395de2323950d823760f1cfecb", "score": "0.57943773", "text": "private static void mainDraw(Graphics graphics) {\n\n int n = 0;\n int size = WIDTH/3;\n int x = WIDTH/2;\n int y = HEIGHT/2;\n int iterator = 0;\n magicMethod(graphics, n, size, x, y, iterator);\n }", "title": "" }, { "docid": "111ec85c5fc3dee73333c932b153fb78", "score": "0.5792586", "text": "public void drawRobot(GL2 gl, MyLights lights,boolean robot0){\n\n\t//set arms params\n\n\tgl.glPushMatrix();\n\tanimateRobot(gl);\n\tfinal float scale = 1.0f;\n \n\t//set arms \n\n\tArms leftArm = new Arms(90.0f,0.0f,-90.0f,frame+16, false, robotTex);\n\tArms rightArm = new Arms(-90.0f,0.0f,90.0f,frame, true, robotTex);\n\n\t\tHead rHead = new Head(robot0, robotTex);\n\t\tgl.glScalef(scale, scale, scale);\n\t\trHead.drawRobotHead(gl, lights);\n\t\t\n\t\t//draw left arm\n\t\tgl.glPushMatrix();\n\t\t\tif(frame < 360)\n\t\t\t\twaveHand(gl, leftArm);\n\t\t\telse\n\t\t\t\tarmAnimation(gl, leftArm);\n\t\t\tgl.glTranslated(2,0,0);\n\t\t\t//gl.glScalef(scale, scale, scale);\n\t\t\tleftArm.drawArm(gl);\n\t\tgl.glPopMatrix();\n\t\t\n\t\t\n\t\t\t//draw right arm\n\t\t\tgl.glPushMatrix();\n\t\t\t\n\t\t\t\t\n\t\t\t\tif(frame > 270)\n\t\t\t\t\tarmAnimation(gl, rightArm);\n\t\t\t\tgl.glTranslated(-2,0,0);\n\t\t\t\trightArm.drawArm(gl);\n\t\t\t\t\n\t\t\tgl.glPopMatrix();\n\t\n\tgl.glPopMatrix();\n\n\t\t\n\t\n\t}", "title": "" }, { "docid": "28fc1660125cb9fd304c48795e6f42b4", "score": "0.57791203", "text": "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"this image type is\" + this.strImageType \n\t\t\t\t+ \"image size: \" + nWidth + \"กข\" + nHeight + \",\"\n\t\t\t\t+ \"display position: \" + nPosX + \"กข\" + nPosY + \".\");\n\t}", "title": "" }, { "docid": "e01207e66c281217f3ec7e74daf9154b", "score": "0.57721746", "text": "public void draw() {\n\n\t\t// Save the current matrix data before translating and/or rotating it.\n\t\tglPushMatrix();\n\n\t\t// Get the stick man's center position and move the rendering matrix.\n\t\t// Note: rotation not needed since stick man has a fixed rotation.\n\t\tVec2 bodyPosition = body.getPosition().mul(Doodle.METER_SCALE);\n\t\tglTranslatef(bodyPosition.x, bodyPosition.y, 0);\n\n\t\t// Convert the Box2D center location to openGL edge coordinates.\n\t\tfloat x = -hx * Doodle.METER_SCALE;\n\t\tfloat y = -hy * Doodle.METER_SCALE;\n\t\tfloat x2 = hx * Doodle.METER_SCALE;\n\t\tfloat y2 = hy * Doodle.METER_SCALE;\n\n\t\t// Set a white background and select the texture image.\n\t\tglColor3f(1, 1, 1);\n\t\tglBindTexture(GL_TEXTURE_RECTANGLE_ARB, spritesheet);\n\n\t\t// Get the appropriate coordinates for the selected sprite image.\n\t\tint imgX = currentSprite.getX();\n\t\tint imgY = currentSprite.getY();\n\t\tint imgX2 = imgX + currentSprite.getWidth();\n\t\tint imgY2 = imgY + currentSprite.getHeight();\n\n\t\t// Draws the stick man rectangle from the given vertices\n\t\t// (counter-clockwise) and maps the image coordinates to each\n\t\t// corresponding vertex.\n\t\tglBegin(GL_QUADS);\n\t\tglTexCoord2f(imgX, imgY2); // bottom left\n\t\tglVertex2f(x, y);\n\t\tglTexCoord2f(imgX2, imgY2); // bottom right\n\t\tglVertex2f(x2, y);\n\t\tglTexCoord2f(imgX2, imgY); // top right\n\t\tglVertex2f(x2, y2);\n\t\tglTexCoord2f(imgX, imgY); // top left\n\t\tglVertex2f(x, y2);\n\t\tglEnd();\n\n\t\t// Restore the texture and matrix data.\n\t\tglBindTexture(GL_TEXTURE_RECTANGLE_ARB, 0);\n\t\tglPopMatrix();\n\n\t}", "title": "" }, { "docid": "5f0546630065facc3f11effff0856d13", "score": "0.57720906", "text": "@Override\r\n protected void paintComponent(Graphics g) {\r\n super.paintComponent(g);\r\n for (Car car : imageMap.keySet()) {\r\n g.drawImage(imageMap.get(car), (int) car.getCurrentPosition().x, (int) car.getCurrentPosition().y,null);\r\n }\r\n }", "title": "" }, { "docid": "5b5be435141edaba9b27228d3b8b07ab", "score": "0.5767428", "text": "protected void drawMaze() {\n\t\tbufferGraphics.setColor(Color.BLACK);\n\t\tbufferGraphics.fillRect(0, 0, GV_WIDTH * MAG_SCALE, GV_HEIGHT * MAG_SCALE + 20);\n\n\t\tbufferGraphics.drawImage(scaleImage(images.getMaze(game.getMazeIndex())), 2, 6, null);\n\t}", "title": "" }, { "docid": "da5ef6a274f04a48e72d28098488f46c", "score": "0.57568485", "text": "@Override\n\tpublic void draw(Tracker t, PGraphics g, People p) {\n\t\tif (buffer==null) {\n\t\t\tbuffer = new PImage(g.width/downSample, g.height/downSample);\n\t\t}\n//\t\tif (p.pmap.isEmpty()) {\n//\t\t\tg.background(0, 0, 0); \n//\t\t\tg.colorMode(PConstants.RGB, 255);\n//\t\t\tdrawWelcome(t,g);\n//\t\t\treturn;\n//\t\t}\n\n\t\tdouble dt = 1 / t.frameRate;\n\t\tlong t1 = System.nanoTime();\n\t\tfluidSolver.tick(dt, visc, diff);\n\t\tlong t2 = System.nanoTime();\n\t\tfluidCanvasStep(g);\n\t\tlong t3 = System.nanoTime();\n\t\tstatsTick += t2-t1;\n\t\tstatsStep += t3-t2;\n\n\t\tg.strokeWeight(0.07f);\n\t\tg.colorMode(PConstants.HSB, 255);\n\t\tbordercolor = g.color(rainbow, 255, 255);\n\t\trainbow++;\n\t\trainbow = (rainbow > 255) ? 0 : rainbow;\n\n\t\tdrawBorders(g, 0.05f, bordercolor, 127);\n\n\t\tg.ellipseMode(PConstants.CENTER);\n\n\t\tfor (Person ps: p.pmap.values()) { \n\t\t\tg.fill(0);\n\t\t\tg.stroke(0);\n\t\t\tg.ellipse(ps.getOriginInMeters().x,ps.getOriginInMeters().y, ps.getLegSeparationInMeters(), ps.getLegSeparationInMeters());\n\t\t\tfor (int leg=0;leg<2;leg++) {\n\t\t\t\tint c=(ps.id*17+leg*127)&0xff;\n\t\t\t\t//logger.fine(\"leg \"+leg+\", c=\"+c);\n\t\t\t\tg.fill(c,255,255);\n\t\t\t\tg.stroke(c,255,255);\n\t\t\t\t//logger.fine(\"groupsize=\"+ps.groupsize+\" ellipse at \"+ps.origin.toString());\n\n\t\t\t\t//float sz=.3f;\n\t\t\t\t//if (ps.groupsize > 1)\n\t\t\t\t//\tsz=0.20f*ps.groupsize;\n\t\t\t\t//g.strokeWeight(sz);\n\t\t\t\t//g.line(ps.getOriginInMeters().x, ps.getOriginInMeters().y,ps.getOriginInMeters().x, ps.getOriginInMeters().y);\n\t\t\t\tg.ellipse(ps.legs[leg].getOriginInMeters().x,ps.legs[leg].getOriginInMeters().y, ps.legs[leg].getDiameterInMeters(), ps.legs[leg].getDiameterInMeters());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0cfddf0a2d06e06d71e97cac3ac5a339", "score": "0.5756463", "text": "public static void drawLogo() {\n StdOut.println(\"****************************************************************************\");\n StdOut.println(\"* _______ _______ __ _ __ _ _______ _______ _______ _ ___ *\"\n + \"\\n* | || || | | || | | || || || || | | | *\"\n + \"\\n* | || _ || |_| || |_| || ___|| ||_ _|| |_| | *\"\n + \"\\n* | || | | || || || |___ | | | | | | *\"\n + \"\\n* | _|| |_| || _ || _ || ___|| _| | | |___ | *\"\n + \"\\n* | |_ | || | | || | | || |___ | |_ | | | | *\"\n + \"\\n* |_______||_______||_| |__||_| |__||_______||_______| |___| |___| *\");\n StdOut.println(\"* *\");\n StdOut.println(\"****************************************************************************\");\n\n }", "title": "" }, { "docid": "35d9f29a9fd89f566796a8503f99a83a", "score": "0.5751518", "text": "public static void drawPicture3(Graphics2D g2) {\r\n\t\r\n\t// label the drawing\r\n\t\r\n\tg2.drawString(\"GameBoys in many directions by Michele Haque\", 20,20);\r\n\r\n\t\r\n\t// Draw 2 GameBoys and 2 GameBoysWithButtons\r\n\t\r\n\tGameBoy gb1 = new GameBoy(50,200,75,125);\r\n\tGameBoyWithButtons gb2 = new GameBoyWithButtons(200,50,75,125);\r\n\tShape gb3 = ShapeTransforms.rotatedCopyOf(gb1, Math.PI/2);\r\n\t\r\n\tShape gb4 = ShapeTransforms.rotatedCopyOf(gb3, Math.PI);\r\n\tShape gb5 = ShapeTransforms.translatedCopyOf(gb4, 4*75, 0);\r\n\tShape gb6 = ShapeTransforms.translatedCopyOf(gb2, 0, 2*125);\r\n\tShape gb7 = ShapeTransforms.rotatedCopyOf(gb6, Math.PI);\r\n\r\n \r\n\tg2.setColor(Color.RED); g2.draw(gb2); g2.draw(gb7);\r\n\tg2.setColor(Color.GREEN); g2.draw(gb3); g2.draw(gb5);\r\n \r\n \r\n }", "title": "" }, { "docid": "5a552ee9feacd54d369eda22b07e3750", "score": "0.57486033", "text": "private void drawShooting(Graphics2D g2d){\n\t\tString side = \"\";\n\t\tif(!rightSide)\n\t\t\tside = \"left\";\n\t\telse\n\t\t\tside = \"right\";\n\t\n\t\tif(countMovements < 2)\n\t\t\tg2d.drawImage(animations.get(\"shooting1_\"+side),\n\t\t\t\t\tx + xOffset + tileMap.getX(), \n\t\t\t\t\ty + yOffset + tileMap.getY(),\n\t\t\t\t\tnull);\n\t\telse if(countMovements < 4)\n\t\t\tg2d.drawImage(animations.get(\"shooting2_\"+side),\n\t\t\t\t\tx + xOffset + tileMap.getX(), \n\t\t\t\t\ty + yOffset + tileMap.getY(),\n\t\t\t\t\tnull);\n\t\telse if(countMovements < 6){\n\t\t\tg2d.drawImage(animations.get(\"shooting3_\"+side),\n\t\t\t\t\tx + xOffset + tileMap.getX(), \n\t\t\t\t\ty + yOffset + tileMap.getY(),\n\t\t\t\t\tnull);\n\t\t\tif(countMovements == 5) countMovements = 0;\n\t\t}\n\t\tcountMovements++;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "1a3538f00d5ae27ab3e4ec07b3db7a14", "score": "0.57453823", "text": "public WorldImage draw() {\n\t\t\n\t\tif (!dir) {\n\t\t\treturn new RectangleImage(new Posn(this.x, this.y), 10, 10,\n\t\t\t\t\tnew Red\t());\n\t\t} else {\n\t\t\treturn new RectangleImage(new Posn(this.x, this.y), 10, 10,\n\t\t\t\t\tnew White());\n\t\t}\n\n\t}", "title": "" }, { "docid": "f29475e9e462f5ff80fe7473b04bebbd", "score": "0.57393944", "text": "public void draw() {\r\n //TODO: Implement this method\r\n }", "title": "" }, { "docid": "9a788dd9e5f869acd2751e39c0e043af", "score": "0.57377356", "text": "@Override\r\n public void Draw(Graphics g) {\r\n\r\n try {\r\n g.drawImage(image, 0, 0, null);\r\n\r\n if (refLink.GetGame().getMouseInput().getMx() >= 430 && refLink.GetGame().getMouseInput().getMx() <= 770) {\r\n if (refLink.GetGame().getMouseInput().getMy() >= 353 && refLink.GetGame().getMouseInput().getMy() <= 440) {\r\n g.drawImage(playButtonImage, 0, 0, null);\r\n }\r\n } else {\r\n g.drawImage(image, 0, 0, null);\r\n }\r\n\r\n\r\n if (refLink.GetGame().getMouseInput().getMx() >= 430 && refLink.GetGame().getMouseInput().getMx() < 770) {\r\n if (refLink.GetGame().getMouseInput().getMy() >= 455 && refLink.GetGame().getMouseInput().getMy() <= 545) {\r\n g.drawImage(helpButtonImage, 0, 0, null);\r\n }\r\n } else {\r\n g.drawImage(image, 0, 0, null);\r\n }\r\n\r\n\r\n if (refLink.GetGame().getMouseInput().getMx() >= 430 && refLink.GetGame().getMouseInput().getMx() < 770) {\r\n if (refLink.GetGame().getMouseInput().getMy() >= 560 && refLink.GetGame().getMouseInput().getMy() <= 650) {\r\n g.drawImage(settingsButtonImage, 0, 0, null);\r\n }\r\n } else {\r\n g.drawImage(image, 0, 0, null);\r\n }\r\n\r\n\r\n if (refLink.GetGame().getMouseInput().getMx() >= 430 && refLink.GetGame().getMouseInput().getMx() < 770) {\r\n if (refLink.GetGame().getMouseInput().getMy() >= 665 && refLink.GetGame().getMouseInput().getMx() <= 755) {\r\n g.drawImage(quitButtonImage, 0, 0, null);\r\n }\r\n } else {\r\n g.drawImage(image, 0, 0, null);\r\n }\r\n } catch (Exception e) {\r\n System.err.println(e);\r\n }\r\n }", "title": "" }, { "docid": "3c053f5711b08e1579e4bc80e19b9dbd", "score": "0.5735054", "text": "public static void mirrorArm(){\r\n Picture beach = new Picture(\"snowman.jpg\");\r\n beach.explore();\r\n beach.mirrorArms();\r\n beach.explore();\r\n }", "title": "" }, { "docid": "5fe874c41cba0ffc80ab560a677cfb91", "score": "0.57326216", "text": "public void draw ();", "title": "" }, { "docid": "b05a437553007a7a7912472e02fb1aed", "score": "0.5731092", "text": "@Override\n\t\tpublic void draw(Graphics2D g2d) {\n\t\t\tg2d.setColor(Color.white);\n\t\t\tg2d.drawImage(image1,0,0,200,200,null);\n\t\t\tg2d.drawImage(image2,200,0,200,200,null);\n\t\t\tg2d.drawImage(image3,0,200,200,200,null);\n\t\t\tg2d.drawImage(image4,200,200,200,200,null);\n\t\t\tg2d.setColor(Color.red);\n\t\t\tg2d.drawRect(mx*200/300,my*200/300, 1, 1);\n\t\t\tif(main.hand_obj != null){\n\t\t\t\thand_obj.drawHand(g2d, new Point(0,0), 200, image1);\n\t\t\t\thand_obj.drawHandUnscale(g2d, new Point(200,0), 200, image2);\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" } ]
9e31f5ee9b99c7e8178e797e83229865
required .hbase.pb.UserInformation user_info = 1;
[ { "docid": "f7ba33a3e9e30c4698098dc1284e201d", "score": "0.5765639", "text": "public org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder() {\n return userInfo_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.getDefaultInstance() : userInfo_;\n }", "title": "" } ]
[ { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78403354", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78402174", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78402174", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78402174", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78385943", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78385943", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78385943", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78376704", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78376704", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78376704", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78376704", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "8a3dcd878af403eac3435211fe5957c3", "score": "0.76324475", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo();", "title": "" }, { "docid": "8a3dcd878af403eac3435211fe5957c3", "score": "0.76324475", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo();", "title": "" }, { "docid": "8a3dcd878af403eac3435211fe5957c3", "score": "0.76324475", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo();", "title": "" }, { "docid": "8a3dcd878af403eac3435211fe5957c3", "score": "0.7632196", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo();", "title": "" }, { "docid": "8a3dcd878af403eac3435211fe5957c3", "score": "0.7632196", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo();", "title": "" }, { "docid": "8a3dcd878af403eac3435211fe5957c3", "score": "0.7630549", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo();", "title": "" }, { "docid": "8a3dcd878af403eac3435211fe5957c3", "score": "0.7630549", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo();", "title": "" }, { "docid": "8a3dcd878af403eac3435211fe5957c3", "score": "0.7630549", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo();", "title": "" }, { "docid": "8a3dcd878af403eac3435211fe5957c3", "score": "0.7630549", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo();", "title": "" }, { "docid": "8a3dcd878af403eac3435211fe5957c3", "score": "0.7630549", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo();", "title": "" }, { "docid": "8a3dcd878af403eac3435211fe5957c3", "score": "0.7629638", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo();", "title": "" }, { "docid": "bf766b7c8c6cf3f7c6723770bd4d3b7b", "score": "0.66133416", "text": "fksproto.CsBase.UserInfoOrBuilder getUserOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "cd106cf3aff85b6b464743bcf826446d", "score": "0.64429826", "text": "fksproto.CsBase.BaseUserRequestOrBuilder getUserinfoOrBuilder();", "title": "" }, { "docid": "a4f77794d101a9342a982fedc388c5c8", "score": "0.60770935", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableSchemaOrBuilder getTableSchemaOrBuilder();", "title": "" }, { "docid": "a4f77794d101a9342a982fedc388c5c8", "score": "0.6076849", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableSchemaOrBuilder getTableSchemaOrBuilder();", "title": "" }, { "docid": "a4f77794d101a9342a982fedc388c5c8", "score": "0.6076849", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableSchemaOrBuilder getTableSchemaOrBuilder();", "title": "" }, { "docid": "a2ef06720619fee85988da6ab2f6ed9c", "score": "0.593735", "text": "com.google.protobuf.ByteString\n getUserBytes();", "title": "" }, { "docid": "7a260586d2567eb2c6c8e9b0cdf520b0", "score": "0.58486664", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder();", "title": "" }, { "docid": "7a260586d2567eb2c6c8e9b0cdf520b0", "score": "0.58486664", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder();", "title": "" }, { "docid": "7a260586d2567eb2c6c8e9b0cdf520b0", "score": "0.58483636", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder();", "title": "" }, { "docid": "7a260586d2567eb2c6c8e9b0cdf520b0", "score": "0.5846717", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder();", "title": "" }, { "docid": "7a260586d2567eb2c6c8e9b0cdf520b0", "score": "0.58463556", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder();", "title": "" }, { "docid": "7a260586d2567eb2c6c8e9b0cdf520b0", "score": "0.58463556", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder();", "title": "" }, { "docid": "78a4a769a6070757206647c64fc3f411", "score": "0.581568", "text": "fksproto.CsBase.UserInfo getUser();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "6e2544ded810cd5a8b1ceafbf50326ca", "score": "0.5800171", "text": "fksproto.CsBase.BaseUserRequest getUserinfo();", "title": "" }, { "docid": "29bdc40b2cc3fff7fc8994eccfccae79", "score": "0.5764607", "text": "public static void main(String[] args) throws IOException {\n Scanner scan = new Scanner(System.in);\n\n //Configuration load\n Configuration config = HBaseConfiguration.create();\n\n //Let's create the table that will host our Social Application\n HBaseAdmin admin = new HBaseAdmin(config);\n\n //We don't need to create it if it already exists\n if (admin.tableExists(\"lschoukro\"))\n System.out.println(\"The table already exists, it has not been created\");\n else\n {\n HTableDescriptor myTable = new HTableDescriptor(\"lschoukro\");\n\n //We create one column descriptor per columns we want\n myTable.addFamily(new HColumnDescriptor(\"info\"));\n myTable.addFamily(new HColumnDescriptor(\"friends\"));\n\n admin.createTable(myTable);\n }\n\n //Finally we can open the table\n HTable table = new HTable(config, \"lschoukro\");\n\n //Then we can enter the REPL\n int choice = 9;\n\n while(choice != 0)\n {\n //Show the menu\n printMenu();\n scan.nextLine();\n\n //Get the input\n choice = scan.nextInt();\n\n switch(choice)\n {\n //Loop to add a new row\n case 1:\n //We get all the data\n System.out.println(\"Name: \");\n String name = scan.next();\n System.out.println(\"Age: \");\n int age = scan.nextInt();\n System.out.println(\"Sex: \");\n String sex = scan.next();\n System.out.println(\"Relationship status: \");\n String relation = scan.next();\n System.out.println(\"Best friend 4 ever: \");\n String bestFriend = scan.next();\n System.out.println(\"Other friends (separated by ','): \");\n String otherFriendsString = scan.next();\n scan.next();\n String[] otherFriends = otherFriendsString.split(\",\");\n\n //No we can save it to hbase\n Put put = new Put(Bytes.toBytes(name));\n put.add(Bytes.toBytes(\"info\"), Bytes.toBytes(\"age\"), Bytes.toBytes(age));\n put.add(Bytes.toBytes(\"info\"), Bytes.toBytes(\"sex\"), Bytes.toBytes(sex));\n put.add(Bytes.toBytes(\"info\"), Bytes.toBytes(\"relation\"), Bytes.toBytes(relation));\n put.add(Bytes.toBytes(\"friends\"), Bytes.toBytes(\"bff\"), Bytes.toBytes(bestFriend));\n put.add(Bytes.toBytes(\"friends\"), Bytes.toBytes(\"friends\"), Bytes.toBytes(otherFriendsString));\n table.put(put);\n\n //Feedback\n System.out.println(name + \" was added !\");\n\n break;\n\n //Display the data for all rows\n case 2:\n Scan s = new Scan();\n ResultScanner scanner = table.getScanner(s);\n try {\n for (Result rr = scanner.next(); rr != null; rr = scanner.next()) {\n System.out.println(\"Row: \" + rr);\n }\n }finally {\n scanner.close();\n }\n\n break;\n\n //Delete a row\n case 3:\n System.out.println(\"Who do you want to delete ? \");\n String keyToDelete = scan.next();\n Delete del = new Delete(keyToDelete.getBytes());\n table.delete(del);\n System.out.println(keyToDelete + \" has been deleted.\");\n break;\n\n //Integrity check\n case 4:\n //First we store all the row's ids in a list from which we will check if a bff exists\n List<String> allRows = new ArrayList<String>();\n\n Scan rowScan = new Scan();\n ResultScanner rowScanner = table.getScanner(rowScan);\n try {\n for (Result rr = rowScanner.next(); rr != null; rr = rowScanner.next()) {\n String row = new String(rr.getRow());\n allRows.add(row);\n }\n }finally {\n rowScanner.close();\n }\n\n //Now we get all the bffs and check if they exist\n Scan bffsScan = new Scan();\n bffsScan.addColumn(Bytes.toBytes(\"friends\"), Bytes.toBytes(\"bff\"));\n ResultScanner bffsScanner = table.getScanner(bffsScan);\n try {\n for (Result rr = bffsScanner.next(); rr != null; rr = bffsScanner.next()) {\n String row = new String(rr.getRow());\n String bff = new String(rr.getValue(Bytes.toBytes(\"friends\"), Bytes.toBytes(\"bff\")));\n\n String existsOrNot;\n if(allRows.contains(bff))\n existsOrNot = \": he exists !\";\n else\n existsOrNot = \": he does not exist !\";\n\n System.out.println(row + \"'s BFF is \" + bff + existsOrNot);\n }\n }finally {\n bffsScanner.close();\n }\n break;\n\n default:\n break;\n }\n }\n }", "title": "" }, { "docid": "73620d10208ef21d0d470955927539eb", "score": "0.57215714", "text": "schema.BasicInfoOrBuilder getBasicInfoOrBuilder();", "title": "" }, { "docid": "d5078eda0aa221e2b80502ef5adf603b", "score": "0.5706352", "text": "com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "161b5bb88234b26dc2386b9f2c90c198", "score": "0.5703022", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableSchema getTableSchema();", "title": "" }, { "docid": "161b5bb88234b26dc2386b9f2c90c198", "score": "0.5702947", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableSchema getTableSchema();", "title": "" }, { "docid": "161b5bb88234b26dc2386b9f2c90c198", "score": "0.5702363", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableSchema getTableSchema();", "title": "" }, { "docid": "171bbfa208d6903ca5ad119c866d6752", "score": "0.569058", "text": "private org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder> \n getUserInfoFieldBuilder() {\n if (userInfoBuilder_ == null) {\n userInfoBuilder_ = new org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder>(\n getUserInfo(),\n getParentForChildren(),\n isClean());\n userInfo_ = null;\n }\n return userInfoBuilder_;\n }", "title": "" }, { "docid": "171bbfa208d6903ca5ad119c866d6752", "score": "0.569058", "text": "private org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder> \n getUserInfoFieldBuilder() {\n if (userInfoBuilder_ == null) {\n userInfoBuilder_ = new org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder>(\n getUserInfo(),\n getParentForChildren(),\n isClean());\n userInfo_ = null;\n }\n return userInfoBuilder_;\n }", "title": "" }, { "docid": "171bbfa208d6903ca5ad119c866d6752", "score": "0.569058", "text": "private org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder> \n getUserInfoFieldBuilder() {\n if (userInfoBuilder_ == null) {\n userInfoBuilder_ = new org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder>(\n getUserInfo(),\n getParentForChildren(),\n isClean());\n userInfo_ = null;\n }\n return userInfoBuilder_;\n }", "title": "" }, { "docid": "171bbfa208d6903ca5ad119c866d6752", "score": "0.56893015", "text": "private org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder> \n getUserInfoFieldBuilder() {\n if (userInfoBuilder_ == null) {\n userInfoBuilder_ = new org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder>(\n getUserInfo(),\n getParentForChildren(),\n isClean());\n userInfo_ = null;\n }\n return userInfoBuilder_;\n }", "title": "" }, { "docid": "171bbfa208d6903ca5ad119c866d6752", "score": "0.56893015", "text": "private org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder> \n getUserInfoFieldBuilder() {\n if (userInfoBuilder_ == null) {\n userInfoBuilder_ = new org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder>(\n getUserInfo(),\n getParentForChildren(),\n isClean());\n userInfo_ = null;\n }\n return userInfoBuilder_;\n }", "title": "" }, { "docid": "171bbfa208d6903ca5ad119c866d6752", "score": "0.56893015", "text": "private org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder> \n getUserInfoFieldBuilder() {\n if (userInfoBuilder_ == null) {\n userInfoBuilder_ = new org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder>(\n getUserInfo(),\n getParentForChildren(),\n isClean());\n userInfo_ = null;\n }\n return userInfoBuilder_;\n }", "title": "" }, { "docid": "171bbfa208d6903ca5ad119c866d6752", "score": "0.5688732", "text": "private org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder> \n getUserInfoFieldBuilder() {\n if (userInfoBuilder_ == null) {\n userInfoBuilder_ = new org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder>(\n getUserInfo(),\n getParentForChildren(),\n isClean());\n userInfo_ = null;\n }\n return userInfoBuilder_;\n }", "title": "" }, { "docid": "171bbfa208d6903ca5ad119c866d6752", "score": "0.5688732", "text": "private org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder> \n getUserInfoFieldBuilder() {\n if (userInfoBuilder_ == null) {\n userInfoBuilder_ = new org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder>(\n getUserInfo(),\n getParentForChildren(),\n isClean());\n userInfo_ = null;\n }\n return userInfoBuilder_;\n }", "title": "" }, { "docid": "171bbfa208d6903ca5ad119c866d6752", "score": "0.5688732", "text": "private org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder> \n getUserInfoFieldBuilder() {\n if (userInfoBuilder_ == null) {\n userInfoBuilder_ = new org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder>(\n getUserInfo(),\n getParentForChildren(),\n isClean());\n userInfo_ = null;\n }\n return userInfoBuilder_;\n }", "title": "" }, { "docid": "171bbfa208d6903ca5ad119c866d6752", "score": "0.5688732", "text": "private org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder> \n getUserInfoFieldBuilder() {\n if (userInfoBuilder_ == null) {\n userInfoBuilder_ = new org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder>(\n getUserInfo(),\n getParentForChildren(),\n isClean());\n userInfo_ = null;\n }\n return userInfoBuilder_;\n }", "title": "" }, { "docid": "171bbfa208d6903ca5ad119c866d6752", "score": "0.5688732", "text": "private org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder> \n getUserInfoFieldBuilder() {\n if (userInfoBuilder_ == null) {\n userInfoBuilder_ = new org.apache.hbase.thirdparty.com.google.protobuf.SingleFieldBuilderV3<\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder>(\n getUserInfo(),\n getParentForChildren(),\n isClean());\n userInfo_ = null;\n }\n return userInfoBuilder_;\n }", "title": "" }, { "docid": "5ca7ff6e774f7c89dc5eb1c6cd879d83", "score": "0.567626", "text": "com.google.protobuf.ByteString\n getUserBytes();", "title": "" }, { "docid": "5ca7ff6e774f7c89dc5eb1c6cd879d83", "score": "0.567626", "text": "com.google.protobuf.ByteString\n getUserBytes();", "title": "" }, { "docid": "5ca7ff6e774f7c89dc5eb1c6cd879d83", "score": "0.567626", "text": "com.google.protobuf.ByteString\n getUserBytes();", "title": "" }, { "docid": "93aed8fa9aac6697494314f835f07d03", "score": "0.56300604", "text": "com.google.protobuf.ByteString getInfo();", "title": "" }, { "docid": "93aed8fa9aac6697494314f835f07d03", "score": "0.56300604", "text": "com.google.protobuf.ByteString getInfo();", "title": "" }, { "docid": "5419b5b6b04d11852f391d23a7a19311", "score": "0.5626772", "text": "com.google.cloud.discoveryengine.v1.UserInfo getUserInfo();", "title": "" }, { "docid": "39e9f3b86b58be9d8c9b0d68a93bf295", "score": "0.55926067", "text": "@ThriftService(\"helloService\")\npublic interface HelloService {\n\n @ThriftMethod\n String sayHello(@ThriftField(name = \"user\") User user);\n}", "title": "" }, { "docid": "29a6396d4c0b670ccff0f373f8658699", "score": "0.5576467", "text": "public org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder() {\n if (userInfoBuilder_ != null) {\n return userInfoBuilder_.getMessageOrBuilder();\n } else {\n return userInfo_ == null ?\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.getDefaultInstance() : userInfo_;\n }\n }", "title": "" }, { "docid": "29a6396d4c0b670ccff0f373f8658699", "score": "0.5576467", "text": "public org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder() {\n if (userInfoBuilder_ != null) {\n return userInfoBuilder_.getMessageOrBuilder();\n } else {\n return userInfo_ == null ?\n org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation.getDefaultInstance() : userInfo_;\n }\n }", "title": "" } ]
d3b91a4738e8d5481652f72d08176067
repeated .prometheus.Label labels = 1;
[ { "docid": "76dacaadfb6ab6251e84d099f09b5cb0", "score": "0.5438029", "text": "public Builder addAllLabels(\n java.lang.Iterable<? extends Prometheus.Label> values) {\n if (labelsBuilder_ == null) {\n ensureLabelsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, labels_);\n onChanged();\n } else {\n labelsBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" } ]
[ { "docid": "c67c02831462f1572296ad3b313bdaf3", "score": "0.65489733", "text": "Prometheus.Label getLabels(int index);", "title": "" }, { "docid": "c67c02831462f1572296ad3b313bdaf3", "score": "0.65489733", "text": "Prometheus.Label getLabels(int index);", "title": "" }, { "docid": "b2132550e7ca8ada261e71b0179a5f7e", "score": "0.62900364", "text": "Prometheus.LabelMatcher.Type getType();", "title": "" }, { "docid": "d306038bdb10e509a61a0afd8989b4ca", "score": "0.6126277", "text": "@Test\n public void labelsTest() {\n // TODO: test labels\n }", "title": "" }, { "docid": "bc60d3cab11c843bd9fff5bd3389d353", "score": "0.6118486", "text": "java.util.List<Prometheus.Label> \n getLabelsList();", "title": "" }, { "docid": "bc60d3cab11c843bd9fff5bd3389d353", "score": "0.6118486", "text": "java.util.List<Prometheus.Label> \n getLabelsList();", "title": "" }, { "docid": "c228a92fcf9c9c25bf55a05717cb76af", "score": "0.5841596", "text": "public void documents_per_label_count(){\n // TODO : Implement\n \n System.out.println(\"SPORTS=\" + labelCount.get(l0));\n System.out.println(\"BUSINESS=\" + labelCount.get(l1));\n \n }", "title": "" }, { "docid": "85788767a7cae8f657b97d7dedbebb2f", "score": "0.57886213", "text": "private ImmutableMap getLabelsForPod() {\n return ImmutableMap.of(\"cluster\", this.clusterName);\n }", "title": "" }, { "docid": "3339ced93bf9287655f24cef864129f5", "score": "0.57725555", "text": "@Ignore(\n \"Don't need to run this every CI build, was really to tdd that prometheus could handle the payload.\")\n @Test\n public void\n test_that_prometheus_can_scrape_a_payload_with_2_counters_with_that_have_the_same_name_but_different_tags()\n throws Exception {\n\n startPrometheus();\n\n var expectedScrapeResource =\n this.getClass()\n .getClassLoader()\n .getResource(\n \"io/armory/plugin/observability/prometheus/expected-scrape-with-2-counters-different-tags.txt\");\n\n var expectedContent = Files.readString(Path.of(expectedScrapeResource.toURI()));\n\n // Stub out a mock server to return our expected Prometheus payload\n mockServerClient\n .when(HttpRequest.request(\"/prometheus\"))\n .respond(\n HttpResponse.response(expectedContent)\n .withHeader(\"Content-Type\", \"text/plain;version=0.0.4;charset=utf-8\")\n .withStatusCode(200));\n\n // Make sure that prometheus was able to scrape our mocked expected controller response\n // that has 2 counters with different tag combinations\n do {\n Thread.sleep(1000);\n } while (mockServerClient.retrieveRecordedRequests(HttpRequest.request(\"/prometheus\")).length\n < 1);\n\n var response =\n given()\n .accept(ContentType.JSON)\n .queryParam(\"match[]\", \"foo_total\")\n .port(prometheus.getMappedPort(9090))\n .when()\n .get(\"/api/v1/series\")\n .as(PromTsApiResponse.class);\n\n assertEquals(\"success\", response.getStatus());\n assertEquals(2, response.getData().size());\n\n // Make sure the ts with labels hostname and optionalExtraMetadata is present with the correct\n // values\n var res =\n response.getData().stream()\n .filter(ts -> ts.containsKey(\"hostname\") && ts.containsKey(\"optionalExtraMetadata\"))\n .collect(Collectors.toList());\n assertEquals(1, res.size());\n var data = res.get(0);\n assertEquals(\"localhost\", data.get(\"hostname\"));\n assertEquals(\"my-cool-value\", data.get(\"optionalExtraMetadata\"));\n\n // Make sure the ts without the xxx is present with the correct values\n res =\n response.getData().stream()\n .filter(ts -> ts.containsKey(\"hostname\") && !ts.containsKey(\"optionalExtraMetadata\"))\n .collect(Collectors.toList());\n assertEquals(1, res.size());\n data = res.get(0);\n assertEquals(\"localhost\", data.get(\"hostname\"));\n assertNull(data.get(\"optionalExtraMetadata\"));\n }", "title": "" }, { "docid": "e69f1ac737ac1cecb5eba810ec5a2d6b", "score": "0.5749339", "text": "public Prometheus.Label.Builder addLabelsBuilder() {\n return getLabelsFieldBuilder().addBuilder(\n Prometheus.Label.getDefaultInstance());\n }", "title": "" }, { "docid": "e69f1ac737ac1cecb5eba810ec5a2d6b", "score": "0.5749339", "text": "public Prometheus.Label.Builder addLabelsBuilder() {\n return getLabelsFieldBuilder().addBuilder(\n Prometheus.Label.getDefaultInstance());\n }", "title": "" }, { "docid": "715ea5bb4fa8f7e97a666694d4e7de1d", "score": "0.57303894", "text": "@java.lang.Override\n public Prometheus.Label getLabels(int index) {\n return labels_.get(index);\n }", "title": "" }, { "docid": "715ea5bb4fa8f7e97a666694d4e7de1d", "score": "0.57303894", "text": "@java.lang.Override\n public Prometheus.Label getLabels(int index) {\n return labels_.get(index);\n }", "title": "" }, { "docid": "048f28d9df46eef5f8c655a161d29f81", "score": "0.56462175", "text": "public void words_per_label_count(){\n // TODO : Implement\n \n System.out.println(\"SPORTS=\" + labelWordsCount.get(l0));\n System.out.println(\"BUSINESS=\" + labelWordsCount.get(l1));\n }", "title": "" }, { "docid": "12f1337f42143e3ad91d1cd410b6e5ba", "score": "0.5623927", "text": "java.util.List<? extends Prometheus.LabelOrBuilder> \n getLabelsOrBuilderList();", "title": "" }, { "docid": "12f1337f42143e3ad91d1cd410b6e5ba", "score": "0.5623927", "text": "java.util.List<? extends Prometheus.LabelOrBuilder> \n getLabelsOrBuilderList();", "title": "" }, { "docid": "16c9d954d165cdddc949ee0e8f82a14e", "score": "0.55878615", "text": "Prometheus.LabelMatcher getMatchers(int index);", "title": "" }, { "docid": "98b220e1f531918f64bff51b0eeef579", "score": "0.55745023", "text": "public utiliz_label_v1() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "3d300c72c084494d419ed761301e304e", "score": "0.55658156", "text": "Prometheus.LabelOrBuilder getLabelsOrBuilder(\n int index);", "title": "" }, { "docid": "3d300c72c084494d419ed761301e304e", "score": "0.55658156", "text": "Prometheus.LabelOrBuilder getLabelsOrBuilder(\n int index);", "title": "" }, { "docid": "2884c975fa9c90d33ed1d35437f0d56c", "score": "0.54910934", "text": "void defineLabels() {\n final int numberOfLabels = this.numberOfLabels;\n for (int i = 0; i < numberOfLabels; i++) {\n this.defineLabel(i);\n }\n }", "title": "" }, { "docid": "d44a4c88f047751a3ce17c6840a01e1d", "score": "0.5485799", "text": "public Builder addLabels(Prometheus.Label value) {\n if (labelsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureLabelsIsMutable();\n labels_.add(value);\n onChanged();\n } else {\n labelsBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "d44a4c88f047751a3ce17c6840a01e1d", "score": "0.5485799", "text": "public Builder addLabels(Prometheus.Label value) {\n if (labelsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureLabelsIsMutable();\n labels_.add(value);\n onChanged();\n } else {\n labelsBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "aea60b236ac07d804720fc0c68f27a28", "score": "0.5453996", "text": "@java.lang.Override\n public Prometheus.LabelOrBuilder getLabelsOrBuilder(\n int index) {\n return labels_.get(index);\n }", "title": "" }, { "docid": "aea60b236ac07d804720fc0c68f27a28", "score": "0.5453996", "text": "@java.lang.Override\n public Prometheus.LabelOrBuilder getLabelsOrBuilder(\n int index) {\n return labels_.get(index);\n }", "title": "" }, { "docid": "51920ebc8f127d916f06bb1b4eaf7975", "score": "0.5431618", "text": "public Prometheus.Label getLabels(int index) {\n if (labelsBuilder_ == null) {\n return labels_.get(index);\n } else {\n return labelsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "51920ebc8f127d916f06bb1b4eaf7975", "score": "0.5431618", "text": "public Prometheus.Label getLabels(int index) {\n if (labelsBuilder_ == null) {\n return labels_.get(index);\n } else {\n return labelsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "da618d04133661e6219075034a09ae83", "score": "0.5405995", "text": "private void addLabels(Set<String> labels, AuraTestLabels anno) {\n if (anno != null) {\n String value = anno.value();\n if (value != null && !value.isEmpty()) {\n for (String each : value.split(\"\\\\s+\")) {\n labels.add(each);\n }\n }\n }\n }", "title": "" }, { "docid": "3a46471542fcd47802384d95c2b84a32", "score": "0.5405892", "text": "private static void GetResultsLabels() throws Exception{\n\n int maxResults=10;\n String paginationToken=null;\n GetLabelDetectionResult labelDetectionResult=null;\n\n do {\n if (labelDetectionResult !=null){\n paginationToken = labelDetectionResult.getNextToken();\n }\n\n GetLabelDetectionRequest labelDetectionRequest= new GetLabelDetectionRequest()\n .withJobId(startJobId)\n .withSortBy(LabelDetectionSortBy.TIMESTAMP)\n .withMaxResults(maxResults)\n .withNextToken(paginationToken);\n\n\n labelDetectionResult = rek.getLabelDetection(labelDetectionRequest);\n\n VideoMetadata videoMetaData=labelDetectionResult.getVideoMetadata();\n\n System.out.println(\"Format: \" + videoMetaData.getFormat());\n System.out.println(\"Codec: \" + videoMetaData.getCodec());\n System.out.println(\"Duration: \" + videoMetaData.getDurationMillis());\n System.out.println(\"FrameRate: \" + videoMetaData.getFrameRate());\n\n\n //Show labels, confidence and detection times\n List<LabelDetection> detectedLabels= labelDetectionResult.getLabels();\n\n for (LabelDetection detectedLabel: detectedLabels) {\n long seconds=detectedLabel.getTimestamp();\n Label label=detectedLabel.getLabel();\n System.out.println(\"Millisecond: \" + Long.toString(seconds) + \" \");\n \n System.out.println(\" Label:\" + label.getName()); \n System.out.println(\" Confidence:\" + detectedLabel.getLabel().getConfidence().toString());\n \n List<Instance> instances = label.getInstances();\n System.out.println(\" Instances of \" + label.getName());\n if (instances.isEmpty()) {\n System.out.println(\" \" + \"None\");\n } else {\n for (Instance instance : instances) {\n System.out.println(\" Confidence: \" + instance.getConfidence().toString());\n System.out.println(\" Bounding box: \" + instance.getBoundingBox().toString());\n }\n }\n System.out.println(\" Parent labels for \" + label.getName() + \":\");\n List<Parent> parents = label.getParents();\n if (parents.isEmpty()) {\n System.out.println(\" None\");\n } else {\n for (Parent parent : parents) {\n System.out.println(\" \" + parent.getName());\n }\n }\n System.out.println();\n }\n } while (labelDetectionResult !=null && labelDetectionResult.getNextToken() != null);\n\n }", "title": "" }, { "docid": "6356cc1568bcf21f3b19b771c6d2ef17", "score": "0.5402131", "text": "@java.lang.Override\n public java.util.List<Prometheus.Label> getLabelsList() {\n return labels_;\n }", "title": "" }, { "docid": "6356cc1568bcf21f3b19b771c6d2ef17", "score": "0.5402131", "text": "@java.lang.Override\n public java.util.List<Prometheus.Label> getLabelsList() {\n return labels_;\n }", "title": "" }, { "docid": "a5ba81d47e742bcec6303493f1c4414d", "score": "0.5390057", "text": "int getLabelsCount();", "title": "" }, { "docid": "a5ba81d47e742bcec6303493f1c4414d", "score": "0.5390057", "text": "int getLabelsCount();", "title": "" }, { "docid": "a5ba81d47e742bcec6303493f1c4414d", "score": "0.5390057", "text": "int getLabelsCount();", "title": "" }, { "docid": "a5ba81d47e742bcec6303493f1c4414d", "score": "0.5390057", "text": "int getLabelsCount();", "title": "" }, { "docid": "a5ba81d47e742bcec6303493f1c4414d", "score": "0.5390057", "text": "int getLabelsCount();", "title": "" }, { "docid": "a5ba81d47e742bcec6303493f1c4414d", "score": "0.5390057", "text": "int getLabelsCount();", "title": "" }, { "docid": "a5ba81d47e742bcec6303493f1c4414d", "score": "0.5390057", "text": "int getLabelsCount();", "title": "" }, { "docid": "468741f2eeb577d5aeeffa526e4924c5", "score": "0.532572", "text": "void defineExtraLabels() {\n final int numberOfLabels = this.numberOfLabels;\n for (int i = 0; i < numberOfLabels - 1; i++) {\n this.defineLabel(i);\n }\n }", "title": "" }, { "docid": "6421850f4f9210b51fe1edce67e0c8f9", "score": "0.53142226", "text": "public void setLabel(String label1) {\n this.label = label1;\n }", "title": "" }, { "docid": "6483cf18f3db30e7aababa6c1d5e6dd7", "score": "0.5295604", "text": "public void calculateStats(Instances data, int labels) { \r\n // initialize statistics\r\n numLabels = labels;\r\n numPredictors = data.numAttributes()-numLabels;\r\n labelCardinality=0;\r\n examplesPerLabel = new double[numLabels];\r\n cardinalityDistribution = new double[numLabels+1];\r\n labelsets = new HashMap<LabelSet,Integer>();\r\n \r\n // gather statistics\r\n numInstances = data.numInstances(); \r\n for (int i=0; i<numInstances; i++)\r\n {\r\n int exampleCardinality=0;\r\n double[] dblLabels = new double[numLabels];\r\n for (int j=0; j<numLabels; j++)\r\n {\r\n \tdouble value = Double.parseDouble(data.attribute(numPredictors+j).value((int) data.instance(i).value(numPredictors + j))); \r\n dblLabels[j] = value; \r\n \r\n if (Utils.eq(value, 1.0))\r\n {\r\n exampleCardinality++;\r\n labelCardinality++;\r\n examplesPerLabel[j]++;\r\n }\r\n }\r\n cardinalityDistribution[exampleCardinality]++;\r\n \r\n LabelSet labelSet = new LabelSet(dblLabels);\r\n if (labelsets.containsKey(labelSet))\r\n {\r\n labelsets.put(labelSet, labelsets.get(labelSet) + 1);\r\n }\r\n else labelsets.put(labelSet, 1);\r\n }\r\n \r\n labelCardinality /= numInstances;\r\n labelDensity = labelCardinality / numLabels;\r\n for (int j=0; j<numLabels; j++)\r\n examplesPerLabel[j] /= numInstances; \r\n }", "title": "" }, { "docid": "ec24d8ab90456dd659ea50924fec114d", "score": "0.52704936", "text": "public void label(int label) { }", "title": "" }, { "docid": "a7f384e30fbbd28944081d997e023512", "score": "0.5270481", "text": "@java.lang.Override\n public java.util.List<? extends Prometheus.LabelOrBuilder> \n getLabelsOrBuilderList() {\n return labels_;\n }", "title": "" }, { "docid": "a7f384e30fbbd28944081d997e023512", "score": "0.5270481", "text": "@java.lang.Override\n public java.util.List<? extends Prometheus.LabelOrBuilder> \n getLabelsOrBuilderList() {\n return labels_;\n }", "title": "" }, { "docid": "d28de5efeec0f5c5a13d039e25b35c98", "score": "0.5253587", "text": "public void setResponseLabelAt(VariableName name, String[] respLabel){\n for(int i=0;i<respLabel.length;i++){\n maxResponseLength = Math.max(maxResponseLength, respLabel[i].length());\n }\n responseLabels.put(name, respLabel);\n\n }", "title": "" }, { "docid": "2e0f31b5ca9c3998f97d7f35cb002378", "score": "0.5244458", "text": "public java.util.List<? extends Prometheus.LabelOrBuilder> \n getLabelsOrBuilderList() {\n if (labelsBuilder_ != null) {\n return labelsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(labels_);\n }\n }", "title": "" }, { "docid": "2e0f31b5ca9c3998f97d7f35cb002378", "score": "0.5244458", "text": "public java.util.List<? extends Prometheus.LabelOrBuilder> \n getLabelsOrBuilderList() {\n if (labelsBuilder_ != null) {\n return labelsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(labels_);\n }\n }", "title": "" }, { "docid": "7010ab546044242f84619f1cb24c0ca8", "score": "0.52154833", "text": "@Override\n public String getLabel() {\n return label;\n }", "title": "" }, { "docid": "f6f821a15699ee764d8f4a4c82a27abc", "score": "0.52106684", "text": "public Builder<M> withMetricLabels(String... asLabel)\n {\n m_fMetric = true;\n m_asLabels = asLabel;\n return this;\n }", "title": "" }, { "docid": "a8da0c0010836c0af52b2f4da7894d08", "score": "0.5210557", "text": "public java.util.List<Prometheus.Label> getLabelsList() {\n if (labelsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(labels_);\n } else {\n return labelsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "a8da0c0010836c0af52b2f4da7894d08", "score": "0.5210557", "text": "public java.util.List<Prometheus.Label> getLabelsList() {\n if (labelsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(labels_);\n } else {\n return labelsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "57fc318cb7423df8636e0f85074d8a45", "score": "0.51905715", "text": "@java.lang.Override\n public int getLabelsCount() {\n return labels_.size();\n }", "title": "" }, { "docid": "57fc318cb7423df8636e0f85074d8a45", "score": "0.51905715", "text": "@java.lang.Override\n public int getLabelsCount() {\n return labels_.size();\n }", "title": "" }, { "docid": "49e35a69930d83be52d5015d497def40", "score": "0.5189113", "text": "private String createNewLabel() {\n \t\treturn \"label\" + (labelNum++);\n \t}", "title": "" }, { "docid": "a8a88e9fcc70033cf4deecaac829045f", "score": "0.5186564", "text": "@Test\n void prometheusRequiresMetersWithTheSameNameHaveTheSameLabelKeys() {\n PrometheusMeterRegistry prometheusMeterRegistry = new PrometheusMeterRegistry(PrometheusConfig.DEFAULT);\n\n ThrowableAssert.ThrowingCallable notGonnaWork = () -> {\n prometheusMeterRegistry.counter(\"counter\", \"key\", \"value\");\n prometheusMeterRegistry.counter(\"counter\", \"differentKey\", \"value2\");\n };\n\n assertThatThrownBy(notGonnaWork)\n .hasMessage(\"Prometheus requires that all meters with the same name have the same set of tag keys. \" +\n \"There is already an existing meter named 'counter_total' containing tag keys [key]. \" +\n \"The meter you are attempting to register has keys [differentKey].\");\n }", "title": "" }, { "docid": "eaa2f1ad938489465a8f65005adb64fd", "score": "0.5176724", "text": "public Prometheus.LabelOrBuilder getLabelsOrBuilder(\n int index) {\n if (labelsBuilder_ == null) {\n return labels_.get(index); } else {\n return labelsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "eaa2f1ad938489465a8f65005adb64fd", "score": "0.5176724", "text": "public Prometheus.LabelOrBuilder getLabelsOrBuilder(\n int index) {\n if (labelsBuilder_ == null) {\n return labels_.get(index); } else {\n return labelsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "021d88bb40777c81bc8777eee46e72ca", "score": "0.5149022", "text": "long countByExample(RegistryDefineExample example);", "title": "" }, { "docid": "2d3e4f8d85f463aa82558440d6e568b8", "score": "0.51331145", "text": "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "title": "" }, { "docid": "2d3e4f8d85f463aa82558440d6e568b8", "score": "0.51331145", "text": "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5116353", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5116353", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5116353", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5116353", "text": "String getLabel();", "title": "" }, { "docid": "3f7e3824da44c7f138811363574bff46", "score": "0.5103925", "text": "int getLabelListCount();", "title": "" }, { "docid": "0882f1464f7db5711b636139bac0be84", "score": "0.50969666", "text": "@Override\n public double p_l(Label label) {\n // TODO : Implement\n \n double count = labelCount.get(label);\n \n if (trainingSize==0) return 0;\n else return count/trainingSize;\n \n }", "title": "" }, { "docid": "b01126320b74282d512fe8495bc8cda8", "score": "0.50921947", "text": "private List<MonolingualTextValue> generateLabels(final Resource resource) {\n\n\t\tfinal String resourceURI = resource.getUri();\n\n\t\treturn generateLabels(resourceURI);\n\t}", "title": "" }, { "docid": "cc66444f2f707d0128aa0253b011882e", "score": "0.50900114", "text": "private void initLabels(){\n //define our labels using the String, and a Label style consisting of a font and color\n timerLabel = new Label(String.format(\"%03d\", timer), new Label.LabelStyle(cloudsfont, Color.WHITE));\n scoreLabel =new Label(String.format(\"%06d\", score), new Label.LabelStyle(cloudsfont, Color.WHITE));\n timerNameLabel = new Label(\"Timer: \", new Label.LabelStyle(cloudsfont, Color.WHITE));\n scoreNameLabel = new Label(\"Score: \", new Label.LabelStyle(cloudsfont, Color.WHITE));\n }", "title": "" }, { "docid": "6d4b3d951229c48a6e81db0f47b6b22c", "score": "0.50887406", "text": "public Map<String, String> getLabels() {\n return labels;\n }", "title": "" }, { "docid": "beeed4c8ab19d791b4d443064d778f9b", "score": "0.5085948", "text": "java.util.Map<java.lang.String, java.lang.String>\n getLabelsMap();", "title": "" }, { "docid": "beeed4c8ab19d791b4d443064d778f9b", "score": "0.5085948", "text": "java.util.Map<java.lang.String, java.lang.String>\n getLabelsMap();", "title": "" }, { "docid": "beeed4c8ab19d791b4d443064d778f9b", "score": "0.5085948", "text": "java.util.Map<java.lang.String, java.lang.String>\n getLabelsMap();", "title": "" }, { "docid": "58e36538fa2ce94c9513a0df7b996b43", "score": "0.5080316", "text": "public List<Label> getLabels() {\n return this.labels;\n }", "title": "" }, { "docid": "a2aeaf856c62fdcaef036dbee778b329", "score": "0.5078323", "text": "public Prometheus.Label.Builder addLabelsBuilder(\n int index) {\n return getLabelsFieldBuilder().addBuilder(\n index, Prometheus.Label.getDefaultInstance());\n }", "title": "" }, { "docid": "a2aeaf856c62fdcaef036dbee778b329", "score": "0.5078323", "text": "public Prometheus.Label.Builder addLabelsBuilder(\n int index) {\n return getLabelsFieldBuilder().addBuilder(\n index, Prometheus.Label.getDefaultInstance());\n }", "title": "" }, { "docid": "3b2cb1015fdcc776ae0b8424b836c87e", "score": "0.5075053", "text": "public void setLabel(String value) {\n this.label = value;\n }", "title": "" }, { "docid": "9f323d8c6db443cbc5824b9223bae8a1", "score": "0.5063331", "text": "private void preregisterMetrics() {\n metricRegistry.counter(\"styx.response.status.200\");\n metricRegistry.counter(\"styx.exception.\" + formattedExceptionName(Exception.class));\n }", "title": "" }, { "docid": "25639a9117c11a5b41c20546cde24a2f", "score": "0.5056691", "text": "private static String getLabel(String units){\n if(units.equals(\"Counts\"))\n return \"Scattering Intensity\";\n else if(units.equals(\"Time(us)\"))\n return \"Time-of-flight\";\n else if(units.equals(\"Inverse Angstroms\"))\n return \"Q\";\n else if(units.equals(\"Angstroms\"))\n return \"d-spacing\";\n else\n return null;\n }", "title": "" }, { "docid": "193620a1f719593101276078dc09a855", "score": "0.5052337", "text": "public void setLabel(String label);", "title": "" }, { "docid": "0513a5a352232d85c45e8882498229f9", "score": "0.5047232", "text": "@Test\n public void getLabel() throws Exception {\n\n String label = MemoryMeasureUnit.GIGABYTE.getLabel();\n assertEquals(\"GB\", label);\n }", "title": "" }, { "docid": "c06c66287700fd1b3b5a42e4cfa2d36a", "score": "0.50453436", "text": "public void getgroupTaggedLabels() {\n\n\n }", "title": "" }, { "docid": "90f382e7b20c0acab5b001e26de2d5d3", "score": "0.50443846", "text": "Prometheus.Sample getSamples(int index);", "title": "" }, { "docid": "771ce31dfd6c2b9920f88196a91ee5c1", "score": "0.50433", "text": "public void setLabels(List<String> labels) {\n this.labels = labels;\n }", "title": "" }, { "docid": "e722d77803b8e70ff42e61464fd10a54", "score": "0.5039055", "text": "public int getlabel() {\r\n\t return label;\r\n\t }", "title": "" }, { "docid": "78e740821c9e818350b814a292265894", "score": "0.5038385", "text": "abstract void addLabelsOfPositivePattern(ResolvedTargets<Label> labels);", "title": "" }, { "docid": "6381aed61b6f4bdf0a0b42e59349bea2", "score": "0.50364685", "text": "public Metadata(List<Label> labels) {\n this.labels = labels;\n }", "title": "" }, { "docid": "293aff17882639c737d50e60612f6747", "score": "0.5023093", "text": "@Test\n void butMicrometerAllowsIt() {\n SimpleMeterRegistry registry = new SimpleMeterRegistry();\n registry.counter(\"counter\", \"key\", \"value\");\n registry.counter(\"counter\", \"differentKey\", \"value\");\n }", "title": "" }, { "docid": "e946416afc78b69a7ba897ea7fc16038", "score": "0.50188464", "text": "public ArrayList<Label> getLabs(){\r\n ArrayList<Label> labels = new ArrayList<Label>();\r\n labels.add(lableName1);\r\n labels.add(lableName2);\r\n labels.add(lableName3);\r\n labels.add(lableName4);\r\n labels.add(lableName5);\r\n labels.add(lableName6);\r\n labels.add(lableName7);\r\n labels.add(lableName8);\r\n return labels;\r\n }", "title": "" }, { "docid": "9e90f17bea6969938c620d89c2267a50", "score": "0.5018425", "text": "public String getLabel();", "title": "" }, { "docid": "b884e62a32d74e0dd250ff480c175919", "score": "0.50061244", "text": "String label();", "title": "" }, { "docid": "5e0f154c1f14e466187da8599f9511f3", "score": "0.49993086", "text": "int getMetricNamesCount();", "title": "" }, { "docid": "239467420ce15e33c10b27832355f794", "score": "0.49897283", "text": "protected abstract Iterable<Label> getLabels();", "title": "" }, { "docid": "f564f90a980a061d737f9179ea7e8574", "score": "0.49860647", "text": "Collection<ModuleMetric> metrics();", "title": "" }, { "docid": "7962c9d991c0d7429bbb11cc562f8acc", "score": "0.49794137", "text": "private ImmutableMap getAnnotationsForPod() {\n return ImmutableMap.of();\n }", "title": "" }, { "docid": "296df2b8885998337f198f6257522977", "score": "0.49779433", "text": "public void setLabels(String product[]) {\n testPanel1.setLabelsByArray(product);\n }", "title": "" }, { "docid": "c1c9bd9a96de8d663d0053451e170926", "score": "0.49737966", "text": "public String newLabel() {\n return label(labelCounter++);\n }", "title": "" }, { "docid": "d6041cafae97dd960ad6dad6eae3ff9c", "score": "0.49624145", "text": "@Test\n void canAlsoAddTagsWithTheLongFormBuilder() {\n MeterRegistry registry = new SimpleMeterRegistry();\n Counter.builder(\"counter\")\n .tag(\"key\", \"value\")\n .description(\"some kind of counter\")\n .baseUnit(\"things\")\n .register(registry);\n }", "title": "" }, { "docid": "6563da30af40947b716d627e0031ae0c", "score": "0.4961603", "text": "String getLabel(int index) {\n\t\treturn labels.elementAt(index);\n\t}", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.49572197", "text": "public String getLabel();", "title": "" } ]
30887f0b28881fcf4c3100f2072260be
Finds the correct Java class for the given parameters PCML Description Object Returned type=char String type=byte byte[] type=int length=2 precision=15 Short type=int length=2 precision=16 Integer type=int length=4 precision=31 Integer type=int length=4 precision=32 Long type=int length=8 precision=63 Long type=int length=8 precision=64 BigInteger type=packed BigDecimal type=zoned BigDecimal type=float length=4 Float type=float length=8 Double type=date java.sql.Date type=time java.sql.Time type=timestamp java.sql.Timestamp
[ { "docid": "bc748a2da7b1f4dc194288e90d4b7252", "score": "0.52898383", "text": "private static Class<?> mapToJavaType(String type, String lengthString, String precisionString) {\n Integer length = lengthString != null && !lengthString.isEmpty() ? Integer.valueOf(lengthString) : 4;\n Integer precision = precisionString != null && !precisionString.isEmpty() ? Integer.valueOf(precisionString)\n : 32;\n switch (type) {\n case \"char\":\n return String.class;\n case \"byte\":\n return byte[].class;\n case \"int\":\n switch (length) {\n case 2:\n if (precision < 16) {\n return Short.class;\n } else {\n return Integer.class;\n }\n case 4:\n if (precision < 32) {\n return Integer.class;\n } else {\n return Long.class;\n }\n case 8:\n if (precision < 64) {\n return Long.class;\n } else {\n return BigInteger.class;\n }\n default:\n return Long.class;\n }\n case \"packed\":\n return BigDecimal.class;\n case \"zoned\":\n return BigDecimal.class;\n case \"float\":\n switch (length) {\n case 4:\n return Float.class;\n case 8:\n return Double.class;\n default:\n return Double.class;\n }\n case \"date\":\n return Date.class;\n case \"time\":\n return Time.class;\n case \"timestamp\":\n return Timestamp.class;\n default:\n return String.class;\n }\n }", "title": "" } ]
[ { "docid": "f06fc79a0f31e8478eb6a729de8ed3f7", "score": "0.59021366", "text": "static Class getPrimitiveClass(String parameter) {\n\t\tClass clazz = null;\n\t\t\n\t\tswitch (arrayElement(JAVA_PRIMITIVES, parameter)) {\n\t\t\tcase 0: \n\t\t\t\tclazz = int.class;\n\t\t\t\tbreak;\n\t\t\tcase 1: \n\t\t\t\tclazz = long.class;\n\t\t\t\tbreak;\n\t\t\tcase 2: \n\t\t\t\tclazz = double.class;\n\t\t\t\tbreak;\n\t\t\tcase 3: \n\t\t\t\tclazz = float.class;\n\t\t\t\tbreak;\n\t\t\tcase 4: \n\t\t\t\tclazz = byte.class;\n\t\t\t\tbreak;\n\t\t\tcase 5: \n\t\t\t\tclazz = char.class;\n\t\t\t\tbreak;\n\t\t\tcase 6: \n\t\t\t\tclazz = boolean.class;\n\t\t\t\tbreak;\n\t\t\tcase 7: \n\t\t\t\tclazz = short.class;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t}\n\t\treturn clazz;\n\t}", "title": "" }, { "docid": "1ec22eb0209d7853a1ab9fe4186cf293", "score": "0.58373004", "text": "private String[] parseDescriptorToClassType(String desc) {\n\t Type[] parametersTypes = Type.getArgumentTypes(desc);\n\t String[] parameters2 = new String[parametersTypes.length];\n\n\t\t\tfor(int i = 0 ; i < parametersTypes.length; i++) {\n\t\t\t\tparameters2[i] = parametersTypes[i].getClassName();\n\t\t\t}\n\t\t\t\n\t\t\treturn parameters2;\n\t\t}", "title": "" }, { "docid": "6888e95d8f34c0442972efe711d63769", "score": "0.5287621", "text": "private Class<?>[] getParameterTypes(final String parameterString)\r\n\t\t\tthrows ClassNotFoundException {\r\n\t\tClass<?>[] parameters = new Class[0];\r\n\t\tif (parameterString != null) {\r\n\t\t\t// The parameter types are seperated by \",\"\r\n\t\t\tfinal StringTokenizer stokenizer = new StringTokenizer(\r\n\t\t\t\t\tparameterString, SimConstants.PARAM_TYPE_DELIM);\r\n\t\t\tparameters = new Class[stokenizer.countTokens()];\r\n\t\t\tint index = 0;\r\n\t\t\twhile (stokenizer.hasMoreTokens()) {\r\n\t\t\t\tfinal String className = stokenizer.nextToken();\r\n\r\n\t\t\t\tfinal Class<?> clazz = Class.forName(className);\r\n\t\t\t\tparameters[index] = clazz;\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn parameters;\r\n\t}", "title": "" }, { "docid": "31bcc9eef3d3f077b18ce69c204b535b", "score": "0.52243817", "text": "public interface ObjectClass {\n\n /**\n * The indentifier for a data object or any sub-class of it.\n */\n static public final Long DATA = new Long(PKCS11Constants.CKO_DATA);\n\n /**\n * The indentifier for a certificate object or any sub-class of it.\n */\n static public final Long CERTIFICATE = new Long(PKCS11Constants.CKO_CERTIFICATE);\n\n /**\n * The indentifier for a public key object or any sub-class of it.\n */\n static public final Long PUBLIC_KEY = new Long(PKCS11Constants.CKO_PUBLIC_KEY);\n\n /**\n * The indentifier for a private key object or any sub-class of it.\n */\n static public final Long PRIVATE_KEY = new Long(PKCS11Constants.CKO_PRIVATE_KEY);\n\n /**\n * The indentifier for a secret key object or any sub-class of it.\n */\n static public final Long SECRET_KEY = new Long(PKCS11Constants.CKO_SECRET_KEY);\n\n /**\n * The indentifier for a hardware feature object or any sub-class of it.\n */\n static public final Long HW_FEATURE = new Long(PKCS11Constants.CKO_HW_FEATURE);\n\n /**\n * The indentifier for a domain parameters object or any sub-class of it.\n */\n static public final Long DOMAIN_PARAMETERS = new Long(\n PKCS11Constants.CKO_DOMAIN_PARAMETERS);\n\n /**\n * The indentifier for a mechanism object or any sub-class of it.\n */\n static public final Long MECHANISM = new Long(PKCS11Constants.CKO_MECHANISM);\n\n /**\n * The indentifier for a vendor-defined object. Any Long object with a value bigger than this\n * one is also a valid vendor-defined object class identifier.\n */\n static public final Long VENDOR_DEFINED = new Long(PKCS11Constants.CKO_VENDOR_DEFINED);\n\n }", "title": "" }, { "docid": "697a6e153c8f114ae9b0faa731db9b26", "score": "0.5213944", "text": "public final static Class recommendClassFor(String javaType) {\n\t\ttry {\n\t\t\tif (javaType.indexOf(\".\")>=0)\n\t\t\t\treturn Class.forName(\"jlib.wrappers.\"+javaType+\"Wrapper\");\n\t\t\telse\n\t\t\t\treturn Class.forName(\"jlib.wrappers.prim_\"+javaType);\n\t\t} catch (Exception e) {\n\t\t\tLog.error(\"\"+e);\n\t\t return null;\n\t\t}\n\t}", "title": "" }, { "docid": "c32f1417d3c51899f74e49162a1c8748", "score": "0.5141706", "text": "public Class getDecodeParamClass() {\n return Object.class;\n }", "title": "" }, { "docid": "0d0b1a3229c20bb5367125409d56a9dc", "score": "0.5112816", "text": "public static String getDesc(Class<?> c) {\n\t\tStringBuilder ret = new StringBuilder();\n\n\t\twhile (c.isArray()) {\n\t\t\tret.append('[');\n\t\t\tc = c.getComponentType();\n\t\t}\n\n\t\tif (c.isPrimitive()) {\n\t\t\tString t = c.getName();\n\t\t\tif (\"void\".equals(t)) {\n\t\t\t\tret.append(JVM_VOID);\n\t\t\t} else if (\"boolean\".equals(t)) {\n\t\t\t\tret.append(JVM_BOOLEAN);\n\t\t\t} else if (\"byte\".equals(t)) {\n\t\t\t\tret.append(JVM_BYTE);\n\t\t\t} else if (\"char\".equals(t)) {\n\t\t\t\tret.append(JVM_CHAR);\n\t\t\t} else if (\"double\".equals(t)) {\n\t\t\t\tret.append(JVM_DOUBLE);\n\t\t\t} else if (\"float\".equals(t)) {\n\t\t\t\tret.append(JVM_FLOAT);\n\t\t\t} else if (\"int\".equals(t)) {\n\t\t\t\tret.append(JVM_INT);\n\t\t\t} else if (\"long\".equals(t)) {\n\t\t\t\tret.append(JVM_LONG);\n\t\t\t} else if (\"short\".equals(t)) {\n\t\t\t\tret.append(JVM_SHORT);\n\t\t\t}\n\t\t} else {\n\t\t\tString clazzName = c.getName();\n\n\t\t\tret.append('L');\n\t\t\tret.append(clazzName.replace('.', '/'));\n\t\t\tret.append(';');\n\t\t}\n\t\treturn ret.toString();\n\t}", "title": "" }, { "docid": "dbc67b9918bbb32aa36582a72ed6861f", "score": "0.49777055", "text": "String getParameterClassName(int param) throws SQLException;", "title": "" }, { "docid": "df4f28c80392d161b8b9dfea321247e7", "score": "0.4972853", "text": "com.google.protobuf.Struct getCxParameters();", "title": "" }, { "docid": "45cbd30bcad528faf62da4107c3f9de7", "score": "0.4957606", "text": "com.google.protobuf.StructOrBuilder getCxParametersOrBuilder();", "title": "" }, { "docid": "94483eeafcbfce7e522ccd88be128e96", "score": "0.49252108", "text": "private static ClassInfo findOrCreateClass(String t) {\n if (!t.endsWith(\"[]\")) {\n return ClassInfo.findOrCreateClass(t);\n } else {\n String baseType = t.substring(0, t.indexOf(\"[]\"));\n int level = (t.length() - t.indexOf(\"[]\")) / 2;\n String s = \"\";\n for (int i = 0; i < level; ++i)\n s += \"[\";\n // TODO: map all primitive types to short form\n if (baseType.equals(\"int\"))\n s += \"I\";\n else if (baseType.equals(\"boolean\"))\n s += \"B\";\n else\n s += \"L\" + baseType + \";\";\n return ClassInfo.findOrCreateClass(s);\n }\n }", "title": "" }, { "docid": "8d208d40d6b13ac76499a1515803576a", "score": "0.48910618", "text": "private static String determineType(String fromFile) throws FileNotFoundException, IOException {\n BufferedReader reader = new BufferedReader(new FileReader(fromFile));\n String thisLine;\n String className = null;\n while ((thisLine = reader.readLine()) != null && !thisLine.equals(PARAMS_DEL)) {\n if (thisLine.startsWith(COMMENT_DEL)) {\n continue;\n }\n if (thisLine.startsWith(\"class=\")) {\n className = thisLine.substring(6);\n }\n }\n return className;\n }", "title": "" }, { "docid": "417fe0c5c06713a3c0aa323c3f2ffea3", "score": "0.48699528", "text": "String getResultClass();", "title": "" }, { "docid": "693eb21bcd32510f2c24689144654cf1", "score": "0.4857548", "text": "public static String getWrapperClass(String javaType) {\n if (javaType.equals(\"boolean\")) return \"java.lang.Boolean\";\n if (javaType.equals(\"char\")) return \"java.lang.Character\";\n if (javaType.equals(\"byte\")) return \"java.lang.Byte\";\n if (javaType.equals(\"short\")) return \"java.lang.Short\";\n if (javaType.equals(\"int\")) return \"java.lang.Integer\";\n if (javaType.equals(\"long\")) return \"java.lang.Long\";\n if (javaType.equals(\"float\")) return \"java.lang.Float\";\n if (javaType.equals(\"double\")) return \"java.lang.Double\";\n return \"\";\n }", "title": "" }, { "docid": "1adcd121c1e8866d191508930d3dd733", "score": "0.48425186", "text": "public abstract VmType<?> defineClass(String name, ByteBuffer data, ProtectionDomain protDomain);", "title": "" }, { "docid": "a1d2804944c5779318c0969657b11257", "score": "0.484201", "text": "static public Class getNativeType(DescriptorTypes type){\r\n switch (type){\r\n case NOMINAL_CLASSES:\r\n return ClassesDescriptor.class;\r\n case DATE:\r\n return Date.class;\r\n case INTEGER:\r\n return Integer.class;\r\n case BOOLEAN:\r\n return Boolean.class;\r\n case OBJECT:\r\n return Object.class;\r\n case NUMBER:\r\n case DOUBLE:\r\n default:\r\n return Double.class;\r\n\r\n }\r\n }", "title": "" }, { "docid": "afa669644ffed6064b399d2d2fe10298", "score": "0.4818428", "text": "String getParameterTypeName(int param) throws SQLException;", "title": "" }, { "docid": "196005de21f83c1e220df585740850cd", "score": "0.4815227", "text": "static ParameterMetaData getParameterMetaData(CommandModel.ParamModel paramModel) {\n Param param = paramModel.getParam();\n ParameterMetaData parameterMetaData = new ParameterMetaData();\n\n parameterMetaData.putAttribute(Constants.TYPE, getXsdType(paramModel.getType().toString()));\n parameterMetaData.putAttribute(Constants.OPTIONAL, Boolean.toString(param.optional()));\n String val = param.defaultValue();\n if ((val != null) && (!val.equals(\"\\u0000\"))) {\n parameterMetaData.putAttribute(Constants.DEFAULT_VALUE, param.defaultValue());\n }\n parameterMetaData.putAttribute(Constants.ACCEPTABLE_VALUES, param.acceptableValues());\n\n return parameterMetaData;\n }", "title": "" }, { "docid": "3e9b6a6830db137cfd181b7ed6041934", "score": "0.47970727", "text": "static DbPlatformType parse(String columnDefinition) {\n\n columnDefinition = columnDefinition.trim();\n\n int openPos = columnDefinition.indexOf('(');\n if (openPos == -1) {\n return new DbPlatformType(columnDefinition, false);\n }\n int closePos = columnDefinition.indexOf(')', openPos);\n if (closePos == -1) {\n return new DbPlatformType(columnDefinition, false);\n }\n try {\n int commaPos = columnDefinition.indexOf(',', openPos);\n if (commaPos > -1) {\n String type = columnDefinition.substring(0, openPos);\n int scale = Integer.parseInt(columnDefinition.substring(openPos + 1, commaPos));\n int precision = Integer.parseInt(columnDefinition.substring(commaPos + 1, closePos));\n return new DbPlatformType(type, scale, precision);\n\n } else {\n String type = columnDefinition.substring(0, openPos);\n String strScale = columnDefinition.substring(openPos + 1, closePos);\n int scale = strScale.equalsIgnoreCase(\"max\") ? Integer.MAX_VALUE : Integer.parseInt(strScale);\n return new DbPlatformType(type, scale);\n }\n } catch (RuntimeException e) {\n return new DbPlatformType(columnDefinition, false);\n }\n }", "title": "" }, { "docid": "7521ae8b52614cfae83804e274540699", "score": "0.47839516", "text": "public Class getParameterType(String name) {\n if (params == null || !params.containsKey(name)) {\n throw new OntopiaRuntimeException(\"Parameter with name '\" + name + \"' does not exist.\");\n }\n return (Class)params.get(name);\n }", "title": "" }, { "docid": "345239abd889b91ae1712e184e0331fe", "score": "0.47252738", "text": "String getJavaType();", "title": "" }, { "docid": "b5783a8bb24f61a398789bf101eab8f2", "score": "0.47238684", "text": "@Override\n public List<ClassInformation> selectAllClassInformation(Map allParams) throws Exception {\n final String SQL_QUERY_ALL_CLASSES = StringSQLQueryUtility.buildSqlQueryForInformation(allParams);\n return processStringQuery(SQL_QUERY_ALL_CLASSES);\n }", "title": "" }, { "docid": "ec922bbd546cc08f7299b26111ce939a", "score": "0.47232693", "text": "public static Class<?> getParameterClass(Object object, String methodName)\n {\n logger.trace(\"Getting parameter class for \" +methodName +\" in class \" +object.getClass().getSimpleName());\n\n // Now find the correct method\n Method[] methods = object.getClass().getMethods();\n Class<?> parameter = null;\n for (Method method : methods)\n {\n if (method.getName().equals(methodName))\n {\n parameter = method.getParameterTypes()[0];\n }\n }\n return parameter;\n }", "title": "" }, { "docid": "ef67d251198c819a7e7205c909fd678b", "score": "0.47210613", "text": "public static TypeDescriptor forJavaClass(Class javaClass) {\n if (VOID == null || MaxineVM.isHosted()) {\n if (javaClass.isArray()) {\n return getArrayDescriptorForComponent(javaClass.getComponentType());\n }\n if (javaClass.isPrimitive()) {\n final AtomicTypeDescriptor atom = findAtomicTypeDescriptor(javaClass);\n assert atom != null;\n return atom;\n }\n return getDescriptorForTupleType(javaClass);\n }\n return ClassActor.fromJava(javaClass).typeDescriptor;\n }", "title": "" }, { "docid": "94e8fb08c5a7ddeb599f1a63e13d4fa5", "score": "0.47145975", "text": "public ParameterType() {\r\n\t}", "title": "" }, { "docid": "5dff406f263a1c8534a70558760b8579", "score": "0.47041556", "text": "public Class<?> getParameterClass() {\n\t\treturn parameterClass;\n\t}", "title": "" }, { "docid": "a0b00afa9384efad3360d97e26f2b811", "score": "0.47009495", "text": "java.lang.String getC2SType();", "title": "" }, { "docid": "a4ef72d43486a92c869ef18dc63729cc", "score": "0.46985114", "text": "public static String getObjectClassName(Long objectClass) {\n String objectClassName;\n\n if (objectClass == null) {\n throw new NullPointerException(\"Argument \\\"objectClass\\\" must not be null.\");\n }\n\n if ((objectClass.longValue() & PKCS11Constants.CKO_VENDOR_DEFINED) != 0L) {\n objectClassName = \"Vendor Defined\";\n } else {\n if (objectClassNames_ == null) {\n // setup object class names table\n Hashtable objectClassNames = new Hashtable(7);\n objectClassNames.put(ObjectClass.DATA, \"Data\");\n objectClassNames.put(ObjectClass.CERTIFICATE, \"Certificate\");\n objectClassNames.put(ObjectClass.PUBLIC_KEY, \"Public Key\");\n objectClassNames.put(ObjectClass.PRIVATE_KEY, \"Private Key\");\n objectClassNames.put(ObjectClass.SECRET_KEY, \"Secret Key\");\n objectClassNames.put(ObjectClass.HW_FEATURE, \"Hardware Feature\");\n objectClassNames.put(ObjectClass.DOMAIN_PARAMETERS, \"Domain Parameters\");\n objectClassNames_ = objectClassNames;\n }\n\n objectClassName = (String) objectClassNames_.get(objectClass);\n if (objectClassName == null) {\n objectClassName = \"<unknown>\";\n }\n }\n\n return objectClassName;\n }", "title": "" }, { "docid": "f2d76e6cafd59078e87c8103d1e4e85e", "score": "0.4697104", "text": "public Object getObject(ResultSet rs, int param)\n {\n Object value;\n\n try\n {\n String s = rs.getNString(param);\n\n if (s == null)\n {\n value = null;\n }\n else\n {\n if (getJavaTypeMapping().getJavaType().getName().equals(ClassNameConstants.JAVA_LANG_BOOLEAN))\n {\n if (s.equals(\"Y\"))\n {\n value = Boolean.TRUE;\n }\n else if (s.equals(\"N\"))\n {\n value = Boolean.FALSE;\n }\n else\n {\n throw new NucleusDataStoreException(Localiser.msg(\"055003\",column));\n }\n }\n else if (getJavaTypeMapping().getJavaType().getName().equals(ClassNameConstants.JAVA_LANG_CHARACTER))\n {\n value = Character.valueOf(s.charAt(0));\n }\n else if (getJavaTypeMapping().getJavaType().getName().equals(ClassNameConstants.JAVA_SQL_TIME))\n {\n value = java.sql.Time.valueOf(s);\n }\n else if (getJavaTypeMapping().getJavaType().getName().equals(ClassNameConstants.JAVA_SQL_TIMESTAMP))\n {\n value = java.sql.Timestamp.valueOf(s);\n }\n else if (getJavaTypeMapping().getJavaType().getName().equals(ClassNameConstants.JAVA_SQL_DATE))\n {\n value = java.sql.Date.valueOf(s);\n }\n else if (getJavaTypeMapping().getJavaType().getName().equals(ClassNameConstants.JAVA_UTIL_DATE))\n {\n value = getJavaUtilDateFormat().parse(s);\n }\n else\n {\n value = s;\n }\n }\n }\n catch (SQLException e)\n {\n throw new NucleusDataStoreException(Localiser.msg(\"055002\",\"Object\",\"\" + param, column, e.getMessage()), e);\n }\n catch (ParseException e)\n {\n throw new NucleusDataStoreException(Localiser.msg(\"055002\",\"Object\",\"\" + param, column, e.getMessage()), e);\n }\n\n return value;\n }", "title": "" }, { "docid": "dd742369917eee45bd1f0270a15d2ce5", "score": "0.4694058", "text": "public Class<?> getJavaType() {\nZoaExp.N(ZoaThreadLocal.G_Ins().G_CInf() + \" 1001 268 29 8135540\"); \n return javaType;\n }", "title": "" }, { "docid": "695d48f2d8fcbb1605484dcc2d65da38", "score": "0.46878", "text": "Type getParametersType();", "title": "" }, { "docid": "cbdd610bcfbec6be4ad25cb713eea764", "score": "0.46557724", "text": "java.util.List<com.parameters.Parameters.parameters> \n getPList();", "title": "" }, { "docid": "801580d69f1c5b4e29be82010358f02d", "score": "0.46490815", "text": "private Class getTypeClass( int typeCode )\n \t{\n \t\treturn DataType.getClass( typeCode );\n \t}", "title": "" }, { "docid": "5512015adeb6a611002a6618843057dc", "score": "0.4633308", "text": "public Class<?> getParameterDatatype()\n\t{\n\t\tParameterT tempParameter = getParameter();\n\t\t\n\t\tif ( ( tempParameter == null ) && ( getParameterTypeConverter() != null ) )\n\t\t{\n\t\t\ttempParameter = getParameterTypeConverter().getParameter();\n\t\t}\n\t\t\n\t\tif ( tempParameter != null )\n\t\t{\n\t\t\treturn TypeConverterFactoryConfig.getTypeConverterFactory().getParameterDatatype( tempParameter );\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "bb9bd472889ea5983ce69c57907a0199", "score": "0.46253538", "text": "public interface ResultParameterMetaData\r\n extends DynamicParameterMetaData {\r\n\r\n /**\r\n * Retorna o label de pesquisa para este result parameter.\r\n */\r\n String getSearchLabel();\r\n\r\n /**\r\n * Retorna o label de de retorno para este result parameter.\r\n * Este label é útil em situacões em que o label de pesquisa\r\n * {@link #getSearchLabel()} é diferente do label de retorno.\r\n */\r\n String getResultLabel();\r\n\r\n /**\r\n * Retorna o comprimento do campo de retorno.\r\n */\r\n int getWidth();\r\n\r\n /**\r\n * Retorna a altura do campo de retorno.\r\n */\r\n int getHeight();\r\n\r\n /**\r\n * Retorna o alinhamento do campo de retorno.\r\n */\r\n String getAlign();\r\n\r\n /**\r\n * Retorna o formatador {@link pt.maisis.search.format.Formatter} \r\n * a utilizar para formatar o valor deste campo de retorno.\r\n */\r\n Formatter getFormatter();\r\n\r\n /**\r\n * Retorna o formatador {@link pt.maisis.search.format.Formatter}\r\n * a utilizar para formatar o valor deste campo de retorno.\r\n */\r\n Formatter getExporterFormatter();\r\n\r\n /**\r\n * Retorna o nome do campo da persistência em uso.\r\n * Por exemplo, este campo pode representar a coluna de\r\n * uma dada tabela/view na base de dados.\r\n */\r\n FieldMetaData getFieldMetaData();\r\n\r\n /**\r\n * Identifica se este campo de retorno é composto por mais\r\n * campos de retorno.\r\n */\r\n boolean isComposite();\r\n\r\n /**\r\n * Se o campo de retorno for composto {@link #isComposite()} \r\n * retorna uma lista com os campos de retorno agregados.\r\n * <br/>\r\n * Caso o campo de retorno não for composto, retorna uma lista\r\n * vazia.\r\n */\r\n List getChildren();\r\n\r\n /**\r\n * Identifica se o result param é ou não <i>selectable</i>.\r\n * Isto é, dependendo do interface em que a framework é \r\n * utilizada, pode ser dado a escolher aos utilizadores que\r\n * result params ele deseja ver no resultado de uma pesquisa.\r\n * <br/>\r\n * Neste tipo de ambiente pode ser desejado que nem todos os\r\n * result params possam ser seleccionáveis.\r\n */\r\n boolean isSelectable();\r\n\r\n /**\r\n * Nome do estilo a aplicar ao header do result parameter.\r\n * Em ambiente web, este estilo pode ser o nome de um estilo\r\n * css.\r\n *\r\n * @see #getValueStyle\r\n */\r\n String getHeaderStyle();\r\n\r\n /**\r\n * Nome do estilo a aplicar ao header do result parameter.\r\n * Em ambiente web, este estilo pode ser o nome de um estilo\r\n * css.\r\n *\r\n * @see #getHeaderStyle\r\n */\r\n String getValueStyle();\r\n}", "title": "" }, { "docid": "5c1369627b25f67a0a2bef57aeafd1d0", "score": "0.46196297", "text": "private Object convertStringToObject( Class<?> expectedType, String stringValue )\n\t{\n\t\tString typeName = expectedType.getSimpleName() ;\n\t\tString longTypeName = expectedType.getCanonicalName();\n\t\t\n\t\tlog(\"convertValue(\" + typeName +\", '\" + stringValue + \"')\");\n\t\t\n\t\tif ( \"String\".equals(typeName) ) {\n\t\t\treturn stringValue;\n\t\t}\n\t\t\n\t\tif ( \"int\".equals(typeName) || \"Integer\".equals(typeName) ) {\n\t\t\treturn typeConvertor.toIntegerObject(stringValue);\n\t\t}\n\t\tif ( \"double\".equals(typeName) || \"Double\".equals(typeName) ) {\n\t\t\treturn typeConvertor.toDoubleObject(stringValue);\n\t\t}\n\t\tif ( \"float\".equals(typeName) || \"Float\".equals(typeName) ) {\n\t\t\treturn typeConvertor.toFloatObject(stringValue);\n\t\t}\n\t\tif ( \"long\".equals(typeName) || \"Long\".equals(typeName) ) {\n\t\t\treturn typeConvertor.toLongObject(stringValue);\n\t\t}\n\t\tif ( \"short\".equals(typeName) || \"Short\".equals(typeName) ) {\n\t\t\treturn typeConvertor.toShortObject(stringValue);\n\t\t}\n\t\tif ( \"byte\".equals(typeName) || \"Byte\".equals(typeName) ) {\n\t\t\treturn typeConvertor.toByteObject(stringValue);\n\t\t}\n\t\t\n\t\tif ( \"boolean\".equals(typeName) || \"Boolean\".equals(typeName) ) {\n\t\t\treturn typeConvertor.toBooleanObject(stringValue);\n\t\t}\n\t\t\n\t\tif ( \"BigDecimal\".equals(typeName) ) {\n\t\t\treturn typeConvertor.toBigDecimalObject(stringValue);\n\t\t}\n\t\tif ( \"BigInteger\".equals(typeName) ) {\n\t\t\treturn typeConvertor.toBigIntegerObject(stringValue);\n\t\t}\n\t\t\n\t\tif ( \"java.util.Date\".equals(longTypeName) ) {\n\t\t\treturn typeConvertor.toUtilDateObject(stringValue);\n\t\t}\n\t\tif ( \"java.sql.Date\".equals(longTypeName) ) {\n\t\t\treturn typeConvertor.toSqlDateObject(stringValue);\n\t\t}\n\t\tif ( \"java.sql.Time\".equals(longTypeName) ) {\n\t\t\treturn typeConvertor.toSqlTimeObject(stringValue);\n\t\t}\n\t\tif ( \"java.sql.Timestamp\".equals(longTypeName) ) {\n\t\t\treturn typeConvertor.toSqlTimestampObject(stringValue);\n\t\t}\n\t\t//--- Unknown type !\n\t\tthrow new RuntimeException(\"Unknown type '\" + longTypeName + \"'\", null);\n\t}", "title": "" }, { "docid": "3c4d9d470461d1bb8147a0ecfdeb558d", "score": "0.4604841", "text": "private HashMap buildXMLToJavaTypeMap() {\n HashMap javaTypes = new HashMap();\n // jaxb 1.0 spec pairs \n javaTypes.put(APBYTE, XMLConstants.HEX_BINARY_QNAME);\n javaTypes.put(BIGDECIMAL, XMLConstants.DECIMAL_QNAME);\n javaTypes.put(BIGINTEGER, XMLConstants.INTEGER_QNAME);\n javaTypes.put(PBOOLEAN, XMLConstants.BOOLEAN_QNAME);\n javaTypes.put(PBYTE, XMLConstants.BYTE_QNAME);\n javaTypes.put(CALENDAR, XMLConstants.DATE_TIME_QNAME);\n javaTypes.put(PDOUBLE, XMLConstants.DOUBLE_QNAME);\n javaTypes.put(PFLOAT, XMLConstants.FLOAT_QNAME);\n javaTypes.put(PINT, XMLConstants.INT_QNAME);\n javaTypes.put(PLONG, XMLConstants.LONG_QNAME);\n javaTypes.put(PSHORT, XMLConstants.SHORT_QNAME);\n javaTypes.put(QNAME_CLASS, XMLConstants.QNAME_QNAME);\n javaTypes.put(STRING, XMLConstants.STRING_QNAME);\n // other pairs\n javaTypes.put(ABYTE, XMLConstants.HEX_BINARY_QNAME);\n javaTypes.put(BOOLEAN, XMLConstants.BOOLEAN_QNAME);\n javaTypes.put(BYTE, XMLConstants.BYTE_QNAME);\n javaTypes.put(GREGORIAN_CALENDAR, XMLConstants.DATE_TIME_QNAME);\n javaTypes.put(DOUBLE, XMLConstants.DOUBLE_QNAME);\n javaTypes.put(FLOAT, XMLConstants.FLOAT_QNAME);\n javaTypes.put(INTEGER, XMLConstants.INT_QNAME);\n javaTypes.put(LONG, XMLConstants.LONG_QNAME);\n javaTypes.put(SHORT, XMLConstants.SHORT_QNAME);\n return javaTypes;\n }", "title": "" }, { "docid": "505187f898a718891bfb6e7ed87a6395", "score": "0.4597839", "text": "private void checkMockClass2Parameters(Object[] parameters) {\r\n assertTrue(\"There should be 3 parameters.\", parameters.length == 3);\r\n\r\n ObjectSpecification param1 = (ObjectSpecification) parameters[0];\r\n ObjectSpecification param2 = (ObjectSpecification) parameters[1];\r\n ObjectSpecification param3 = (ObjectSpecification) parameters[2];\r\n\r\n assertEquals(\"The specType is not valid.\", ObjectSpecification.COMPLEX_SPECIFICATION, param1.getSpecType());\r\n assertNull(\"The jar should be null.\", param1.getJar());\r\n assertEquals(\"The type is not valid.\", \"java.lang.StringBuffer\", param1.getType());\r\n assertNull(\"The identifier should be null.\", param1.getIdentifier());\r\n assertNull(\"The value should be null.\", param1.getValue());\r\n assertEquals(\"The dimension is not valid.\", 1, param1.getDimension());\r\n\r\n checkStringBufferParameters(param1.getParameters());\r\n\r\n assertEquals(\"The specType is not valid.\", ObjectSpecification.NULL_SPECIFICATION, param2.getSpecType());\r\n assertNull(\"The jar should be null.\", param2.getJar());\r\n assertEquals(\"The type is not valid.\", \"java.util.ArrayList\", param2.getType());\r\n assertNull(\"The identifier should be null.\", param2.getIdentifier());\r\n assertNull(\"The value should be null.\", param2.getValue());\r\n assertEquals(\"The dimension is not valid.\", 1, param2.getDimension());\r\n assertNull(\"The parameters should be null.\", param2.getParameters());\r\n\r\n assertEquals(\"The specType is not valid.\", ObjectSpecification.COMPLEX_SPECIFICATION, param3.getSpecType());\r\n assertNull(\"The jar should be null.\", param3.getJar());\r\n assertEquals(\"The type is not valid.\", \"java.util.ArrayList\", param3.getType());\r\n assertNull(\"The identifier should be null.\", param3.getIdentifier());\r\n assertNull(\"The value should be null.\", param3.getValue());\r\n assertEquals(\"The dimension is not valid.\", 1, param3.getDimension());\r\n }", "title": "" }, { "docid": "cb9824c69643b219e82593185f705771", "score": "0.45977056", "text": "org.biocatalogue.x2009.xml.rest.SoapOperations.Parameters getParameters();", "title": "" }, { "docid": "8935726acf502ada794dbf07e9a170d9", "score": "0.45872912", "text": "public String getGenericRiskType(Record inputRecord);", "title": "" }, { "docid": "fa8c17dca88d0799d53866f625e93af4", "score": "0.45865756", "text": "public Object getObject(ResultSet rs, int param)\r\n {\r\n Object value;\r\n\r\n try\r\n {\r\n String s = rs.getString(param);\r\n\r\n if (s == null)\r\n {\r\n value = null;\r\n }\r\n else\r\n {\r\n if (getJavaTypeMapping().getJavaType().getName().equals(ClassNameConstants.JAVA_LANG_BOOLEAN))\r\n {\r\n if (s.equals(\"Y\"))\r\n {\r\n value = Boolean.TRUE;\r\n }\r\n else if (s.equals(\"N\"))\r\n {\r\n value = Boolean.FALSE;\r\n }\r\n else\r\n {\r\n throw new NucleusDataStoreException(Localiser.msg(\"055003\", column));\r\n }\r\n }\r\n else if (getJavaTypeMapping().getJavaType().getName().equals(ClassNameConstants.JAVA_LANG_CHARACTER))\r\n {\r\n value = Character.valueOf(s.charAt(0));\r\n }\r\n else if (getJavaTypeMapping().getJavaType().getName().equals(ClassNameConstants.JAVA_SQL_TIME))\r\n {\r\n value = java.sql.Time.valueOf(s);\r\n }\r\n else if (getJavaTypeMapping().getJavaType().getName().equals(ClassNameConstants.JAVA_SQL_TIMESTAMP))\r\n {\r\n value = java.sql.Timestamp.valueOf(s);\r\n }\r\n else if (getJavaTypeMapping().getJavaType().getName().equals(ClassNameConstants.JAVA_SQL_DATE))\r\n {\r\n value = java.sql.Date.valueOf(s);\r\n }\r\n else if (getJavaTypeMapping().getJavaType().getName().equals(ClassNameConstants.JAVA_UTIL_DATE))\r\n {\r\n value = getJavaUtilDateFormat().parse(s);\r\n }\r\n else\r\n {\r\n value = s;\r\n }\r\n }\r\n }\r\n catch (SQLException e)\r\n {\r\n throw new NucleusDataStoreException(Localiser.msg(\"055002\", \"Object\", \"\" + param, column, e.getMessage()), e);\r\n }\r\n catch (ParseException e)\r\n {\r\n throw new NucleusDataStoreException(Localiser.msg(\"055002\", \"Object\", \"\" + param, column, e.getMessage()), e);\r\n }\r\n\r\n return value;\r\n }", "title": "" }, { "docid": "193b4f2461c88ecf686fc5177c54e5e1", "score": "0.4586322", "text": "public abstract VmType<?> defineClass(String name, byte[] data, int offset, int length,\n ProtectionDomain protDomain);", "title": "" }, { "docid": "1394685e66927aea031e4489f4e6a49b", "score": "0.4586002", "text": "public String getClassName(String desc) {\n/* 115 */ String voidDesc = Bytecode.changeDescriptorReturnType(desc, \"V\");\n/* 116 */ String name = (String)this.classNames.get(voidDesc);\n/* 117 */ if (name == null) {\n/* 118 */ name = String.format(\"%s%d\", new Object[] { \"org.spongepowered.asm.synthetic.args.Args$\", Integer.valueOf(this.nextIndex++) });\n/* 119 */ this.classNames.put(voidDesc, name);\n/* */ } \n/* 121 */ return name;\n/* */ }", "title": "" }, { "docid": "1864e354a728f7f6eae805b7b0d661d6", "score": "0.4584979", "text": "Paradesc createParadesc();", "title": "" }, { "docid": "5977e89f6913e91793cc9926d322d0d4", "score": "0.45699993", "text": "gov.nih.nlm.ncbi.www.EMBLBlockDocument.EMBLBlock.Class getClass1();", "title": "" }, { "docid": "bfafcb0abddfb5315afb7f1dc6a3c612", "score": "0.4565663", "text": "java.lang.String getSensortype();", "title": "" }, { "docid": "394aee4793c5927c063561bf7c09551a", "score": "0.45612222", "text": "public abstract Class<?> getJavaClass();", "title": "" }, { "docid": "7a8ca8c6c488cfd9c017aa31814d767c", "score": "0.4556949", "text": "private JavaType getJavaType(Type concreteType, Type... parameterTypes) {\n List<JavaType> javaTypes = new ArrayList<>();\n for (Type parameterType : parameterTypes) {\n if (parameterType instanceof CombineType) {\n CombineType combineType = (CombineType) parameterType;\n javaTypes.add(\n getJavaType(\n combineType.actual, combineType.childTypes.toArray(new Type[0])));\n } else {\n javaTypes.add(getJavaType(parameterType));\n }\n }\n if (javaTypes.size() > 0) {\n Class<?> rawClass = Object.class;\n if (concreteType instanceof Class) {\n rawClass = (Class<?>) concreteType;\n }\n return TypeFactory.defaultInstance()\n .constructParametricType(rawClass, javaTypes.toArray(new JavaType[0]));\n }\n return TypeFactory.defaultInstance().constructType(concreteType);\n }", "title": "" }, { "docid": "42715ba59f5f75339f1d70fea6fa70dc", "score": "0.45466396", "text": "public static Class [] getParameterClasses(String methodName) {\n\t\tDbc.require(\"A method must be specified\", methodName != null && methodName.length() > 0);\n\t\tDbc.require(\"A method must have \" + ParameterStart + \" and \" + ParameterEnd + \" characters\", methodName.contains(ParameterStart) && methodName.contains(ParameterEnd));\n\n\t\tString paramTypes [] = getMethodParameterTypes(methodName);\n\t\tClass paramClasses [] = new Class [paramTypes.length];\n\t\tfor (int i = 0; i < paramTypes.length; i++) {\n\t\t\ttry {\n\t\t\t\tif (arrayContains(JAVA_PRIMITIVES, paramTypes[i])) {\n\t\t\t\t\tparamClasses[i] = getPrimitiveClass(paramTypes[i]);\n\t\t\t\t} else if (arrayContains(JAVA_LANG_CLASSES, paramTypes[i])) {\n\t\t\t\t\tparamClasses[i] = Class.forName(JAVA_LANG_PREFIX + paramTypes[i]);\n\t\t\t\t} else {\n\t\t\t\t\tparamClasses[i] = Class.forName(paramTypes[i]);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn paramClasses;\n\t}", "title": "" }, { "docid": "b4f5247c9508db5f781d5b7edcbd4181", "score": "0.45444503", "text": "public static JDBCType jdbcTypeFor(Class<?> javaClass) {\r\n\t\treturn jdbcTypeForClassNamed(javaClass.getName());\r\n\t}", "title": "" }, { "docid": "ae50addbdfcf29c34ab463c8f41cd8bf", "score": "0.4542242", "text": "private static TypeCode createTypeCodeForClassInternal (ORB orb,\n java.lang.Class c,\n ValueHandler vh,\n IdentityKeyValueStack createdIDs)\n {\n TypeCode tc = null;\n String id = (String)createdIDs.get(c);\n if (id != null) {\n return orb.create_recursive_tc(id);\n } else {\n id = vh.getRMIRepositoryID(c);\n if (id == null) id = \"\";\n // cache the rep id BEFORE creating a new typecode.\n // so that recursive tc can look up the rep id.\n createdIDs.push(c, id);\n tc = createTypeCodeInternal(orb, c, vh, id, createdIDs);\n createdIDs.pop();\n return tc;\n }\n }", "title": "" }, { "docid": "b0b20a5d7d3af5768050d3f114e964f6", "score": "0.45315453", "text": "private Class<?> getClassObj(String type) { \n\t\t\n\t\tif (!validClasses.contains(type)) { // check against list of legit class names for security\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// can convert that into a class object\n\t\tClass<?> c = null;\n\t\t\n\t\ttry {\n\t\t\tc = Class.forName(\"model.\" + type);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn c;\n\t}", "title": "" }, { "docid": "68bd916969cba5f0530e2a6f420e8bef", "score": "0.4529902", "text": "public JDBCTypeDescription readJdbcTypeDescription(final ResultSet remoteColumn) throws SQLException {\n final int jdbcType = readJdbcDataType(remoteColumn);\n final int decimalScale = readScale(remoteColumn);\n final int precisionOrSize = readPrecisionOrSize(remoteColumn);\n final int charOctetLength = readOctetLength(remoteColumn);\n final String typeName = readTypeName(remoteColumn);\n return new JDBCTypeDescription(jdbcType, decimalScale, precisionOrSize, charOctetLength, typeName);\n }", "title": "" }, { "docid": "89e1b287dac93ad9646f0bcd4ca0da81", "score": "0.45280614", "text": "public static TypeDesc getTypeDesc()\r\n/* 151: */ {\r\n/* 152:165 */ return typeDesc;\r\n/* 153: */ }", "title": "" }, { "docid": "ff31b9ba71d872b076df1a6c3145c52a", "score": "0.4526138", "text": "protected Class loadClass() {\n switch (getTypeCode()) {\n case TYPE_VOID: return Null.class;\n case TYPE_BOOLEAN: return boolean.class;\n case TYPE_BYTE: return byte.class;\n case TYPE_CHAR: return char.class;\n case TYPE_SHORT: return short.class;\n case TYPE_INT: return int.class;\n case TYPE_LONG: return long.class;\n case TYPE_FLOAT: return float.class;\n case TYPE_DOUBLE: return double.class;\n default: throw new CompilerError(\"Not a primitive type\");\n }\n }", "title": "" }, { "docid": "acf910e00e97de37771d123832b6a532", "score": "0.45244548", "text": "public static TypeDescription getTypeDescription(){\n\t\tTypeDescription typeDescription = new TypeDescription(ToscaGroupsTopologyTemplateDefinition.class);\n// typeDescription.putMapPropertyType(\"properties\", String.class, Object.class);\n//\t\ttypeDescription.putListPropertyType(\"properties\", ToscaGroupPropertyDefinition.class);\n\t\ttypeDescription.putMapPropertyType(\"interfaces\", String.class, Object.class);\n\t\ttypeDescription.putMapPropertyType(\"targets\", String.class, Object.class);\n// typeDescription.putMapPropertyType(\"metadata\", String.class, String.class);\n\t\ttypeDescription.putMapPropertyType(\"metadata\", String.class, String.class);\n\t\ttypeDescription.putListPropertyType(\"members\", String.class);\n\t\treturn typeDescription;\n\t}", "title": "" }, { "docid": "88c44ba80241bfa138c6390b515219ee", "score": "0.45237562", "text": "public static ParamType parseParamType(String paramType) {\n final ParamType result = types.get(paramType);\n\n if (result == null) {\n throw new QtiParseException(\"Invalid \" + QTI_CLASS_NAME + \" '\" + paramType + \"'.\");\n }\n\n return result;\n }", "title": "" }, { "docid": "a23012e19ec24984de6f582277dc19c2", "score": "0.45145458", "text": "private Class<?> getJavaClass( ClassFactory classFactory, DataTypeDescriptor dtd )\n throws StandardException, ClassNotFoundException\n {\n JSQLType jsqlType = new JSQLType( dtd );\n String javaClassName = MethodCallNode.getObjectTypeName( jsqlType, null );\n\n //\n // The real class name of byte[] is [B. Class.forName( \"byte[]\" ) will throw a\n // ClassNotFoundException.\n //\n if ( DERBY_BYTE_ARRAY_NAME.equals( javaClassName ) )\n { javaClassName = byte[].class.getName(); }\n \n return classFactory.loadApplicationClass( javaClassName );\n }", "title": "" }, { "docid": "3e883bbc9971e8d380c082ec7b2b9725", "score": "0.4512111", "text": "@Override\n public ResponseInformation<List<ClassInformation>> getFromDatabaseAndResponseInfo(Map params) throws Exception{\n List<ClassInformation> allClasses = selectAllClassInformation(params);\n int numberOfRows = allClasses.size();\n log.info(\"Retrieved \" + numberOfRows + \" classes.\");\n return new ResponseInformation<>(numberOfRows, params, allClasses);\n }", "title": "" }, { "docid": "49cd209bcae2584e570ca0d32c42e0a2", "score": "0.44982347", "text": "protected Map<String, Object> extractOutputParameters(CallableStatement cs, List<SqlParameter> parameters)\n\t\t\tthrows SQLException {\n\n\t\tMap<String, Object> returnedResults = new HashMap<String, Object>();\n\t\tint sqlColIndex = 1;\n\t\tfor (SqlParameter param : parameters) {\n\t\t\tif (param instanceof SqlOutParameter) {\n\t\t\t\tSqlOutParameter outParam = (SqlOutParameter) param;\n\t\t\t\tif (outParam.isReturnTypeSupported()) {\n\t\t\t\t\tObject out = outParam.getSqlReturnType().getTypeValue(cs, sqlColIndex, outParam.getSqlType(),\n\t\t\t\t\t\t\toutParam.getTypeName());\n\t\t\t\t\treturnedResults.put(outParam.getName(), out);\n\t\t\t\t} else {\n\t\t\t\t\tObject out = cs.getObject(sqlColIndex);\n\t\t\t\t\tif (out instanceof ResultSet) {\n\t\t\t\t\t\tif (outParam.isResultSetSupported()) {\n\t\t\t\t\t\t\treturnedResults.putAll(processResultSet((ResultSet) out, outParam));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString rsName = outParam.getName();\n\t\t\t\t\t\t\tSqlReturnResultSet rsParam = new SqlReturnResultSet(rsName, new ColumnMapRowMapper());\n\t\t\t\t\t\t\treturnedResults.putAll(processResultSet(cs.getResultSet(), rsParam));\n\t\t\t\t\t\t\tlogger.info(\"Added default SqlReturnResultSet parameter named \" + rsName);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturnedResults.put(outParam.getName(), out);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!(param.isResultsParameter())) {\n\t\t\t\tsqlColIndex++;\n\t\t\t}\n\t\t}\n\t\treturn returnedResults;\n\t}", "title": "" }, { "docid": "da26588ac38d059613ee8eeb0485c3f3", "score": "0.44891945", "text": "public List<Object> selectSQLExecuteQuery(Connection conn,PreparedStatement prst,ResultSet rs,String sql, String path,List<String> parameterList){\r\n List<Object> list1 = new ArrayList<Object>();\r\n try{\r\n System.out.println(sql);\r\n prst = conn.prepareStatement(sql);\r\n rs = prst.executeQuery();\r\n while(rs.next()){\r\n Class claz = Class.forName(path);\r\n Object si = claz.newInstance();\r\n Field[] fields = claz.getDeclaredFields();\r\n Method[] methods = claz.getDeclaredMethods();\r\n List<Field> fieldList = getOrderCollection(fields,BeanField.class);\r\n List<Method> setMethodList = getOrderCollection(methods,BeanSetMethod.class);\r\n for(int i = 0; i < fieldList.size(); i++){\r\n if(parameterList.contains(fieldList.get(i).getName())){\r\n if((int.class).equals(fieldList.get(i).getType())){\r\n setMethodList.get(i).invoke(si,rs.getInt(fieldList.get(i).getName()));\r\n }else if((String.class).equals(fieldList.get(i).getType())){\r\n setMethodList.get(i).invoke(si,rs.getString(fieldList.get(i).getName()));\r\n }else if((double.class).equals(fieldList.get(i).getType())){\r\n setMethodList.get(i).invoke(si,rs.getDouble(fieldList.get(i).getName()));\r\n }else if((Timestamp.class).equals(fieldList.get(i).getType())){\r\n setMethodList.get(i).invoke(si,rs.getTimestamp(fieldList.get(i).getName()));\r\n }\r\n }\r\n }\r\n list1.add(si);\r\n }\r\n\r\n rs.close();\r\n prst.close();\r\n\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return list1;\r\n\r\n }", "title": "" }, { "docid": "839dda2e76cb0ae9df6189cf9f1320f1", "score": "0.44878116", "text": "public void test_getParameterTypes() {\n Class[] types = null;\n try {\n Constructor<? extends ConstructorTest.ConstructorTestHelper> ctor = new ConstructorTest.ConstructorTestHelper().getClass().getConstructor(new Class[0]);\n types = ctor.getParameterTypes();\n } catch (Exception e) {\n TestCase.fail((\"Exception during getParameterTypes test:\" + (e.toString())));\n }\n TestCase.assertEquals(\"Incorrect parameter returned\", 0, types.length);\n Class[] parms = null;\n try {\n parms = new Class[1];\n parms[0] = new Object().getClass();\n Constructor<? extends ConstructorTest.ConstructorTestHelper> ctor = new ConstructorTest.ConstructorTestHelper().getClass().getConstructor(parms);\n types = ctor.getParameterTypes();\n } catch (Exception e) {\n TestCase.fail((\"Exception during getParameterTypes test:\" + (e.toString())));\n }\n TestCase.assertTrue(\"Incorrect parameter returned\", types[0].equals(parms[0]));\n }", "title": "" }, { "docid": "b6453423650749c8426a9f3aa3866d34", "score": "0.44873175", "text": "public static Class<?> guessClass(String className) throws GeneratorException {\n int dim = 0;\n while (className.charAt(className.length() - 1) == ']') {\n className = className.substring(0, className.length() - 2);\n dim++;\n }\n Class<?> baseClass = null;\n List<String> packages = Arrays.asList(\"\", \"java.lang.\", \"java.util.\", \"java.io.\", \"com.onshape.api.types.\");\n for (String pkg : packages) {\n try {\n baseClass = Class.forName(pkg + className);\n break;\n } catch (ClassNotFoundException ex) {\n }\n }\n // Handle primitives\n if (baseClass == null && className.indexOf('.') < 0 && Character.isLowerCase(className.charAt(0))) {\n if (\"char\".equals(className)) {\n baseClass = guessClass(\"Character\");\n } else {\n baseClass = guessClass(new String(new char[]{Character.toUpperCase(className.charAt(0))}) + className.substring(1));\n }\n }\n // Special cases\n if (\"Data\".equals(className)) {\n // We make this an object, because when used as a featureSpec it should be\n // When used as data it will be changed to a Blob in JavaEndpointTarget\n baseClass = Object.class;\n }\n if (\"File\".equals(className)) {\n baseClass = Blob.class;\n }\n if (baseClass == null) {\n return null;\n }\n while (dim > 0) {\n baseClass = Array.newInstance(baseClass, 1).getClass();\n dim--;\n }\n return baseClass;\n }", "title": "" }, { "docid": "272abf7ba5e1365d8caee1e9f0a26da8", "score": "0.44863933", "text": "private final SERVER_PARAMETERS m25517t(String str) throws RemoteException {\n HashMap hashMap;\n if (str != null) {\n try {\n JSONObject jSONObject = new JSONObject(str);\n hashMap = new HashMap(jSONObject.length());\n Iterator keys = jSONObject.keys();\n while (keys.hasNext()) {\n String str2 = (String) keys.next();\n hashMap.put(str2, jSONObject.getString(str2));\n }\n } catch (Throwable th) {\n zzbad.m26356b(\"\", th);\n throw new RemoteException();\n }\n } else {\n hashMap = new HashMap(0);\n }\n Class serverParametersType = this.f24514b.getServerParametersType();\n if (serverParametersType == null) {\n return null;\n }\n SERVER_PARAMETERS server_parameters = (MediationServerParameters) serverParametersType.newInstance();\n server_parameters.mo24944a(hashMap);\n return server_parameters;\n }", "title": "" }, { "docid": "5cc3c314a5509d8b357f566e7de8ad24", "score": "0.44810078", "text": "public abstract Object parseObject(String xml, String objectName,\r\n\t\t\tString classType);", "title": "" }, { "docid": "fdd81efa25066c6cfa761cb64af647e6", "score": "0.44809005", "text": "public ParamInfo(String name, String description, String type)\n\t{\n\t\tthis.name = name;\n\t\tthis.description = description;\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "d1467f5e7497cd3e61a8b81fb6bd49a9", "score": "0.44675133", "text": "public SchemaClass getClassInfo() {\r\n \t\tSchemaClassDefinition def = getType();\r\n \t\tif (def != null)\r\n \t\t\treturn def.getSchemaClass();\r\n \t\treturn null;\r\n \t}", "title": "" }, { "docid": "478da6769b1888e8096c5b8539b58292", "score": "0.4460632", "text": "public static String getVMDescriptorForJavaType(String type) {\n String descriptor = (String) typeToDescriptorTable.get(type);\n if (descriptor == null) {\n // must be a class (non-primitive)\n // replace all . with / and add L ;\n descriptor = \"L\" + type.replace('.','/'); \n if ((descriptor.indexOf(';') == -1)) // class descriptors are terminated with a \";\"\n descriptor += \";\"; // hack - trying to get rid of spurious ';' on end of class descriptors\n }\n return descriptor;\n }", "title": "" }, { "docid": "00a46d8c21267234805640f9f5576bd9", "score": "0.44562218", "text": "@objid (\"55fc031e-41bd-439e-91b1-66af828fd93a\")\r\npublic interface CPSWarmParameters {\r\n @objid (\"c8f5c8f6-14d1-436f-9f07-f52cabe9957b\")\r\n public static final String WORKSPACEPATH = \"WorkspacePath\";\r\n\r\n @objid (\"4ea29abe-2be6-44a3-8f4c-d69938d2d2ab\")\r\n public static final String ROSPATH = \"ROSPath\";\r\n\r\n @objid (\"cf9abfe4-34df-4522-883a-44de86128e48\")\r\n public static final String FREVOPATH = \"FrevoPath\";\r\n\r\n}", "title": "" }, { "docid": "783affc6693cc68799b0a2042b46f754", "score": "0.44542018", "text": "public static IDistanceMeasureBetweenPoints getDMBPfromDescription(Description description){\n\t\tString packageName = \"br.ufsc.trajectoryclassification.model.bo.dmbp.\";\n\t\tString dmbpClassName = \"DMBP\" + description.getPointComparisonDesc().getPointDistance().toLowerCase();\n\t\t\n\t\ttry {\n\t\t\n\t\t\tIDistanceMeasureBetweenPoints dmbp = \n\t\t\t\t\t(IDistanceMeasureBetweenPoints) Class.forName(packageName + dmbpClassName).getConstructor(Description.class).newInstance(description);\n\t\t\n\t\t\treturn dmbp;\n\t\t} catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException\n\t\t\t\t| NoSuchMethodException | SecurityException | ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "892dc1395fb0b65628c1dfc716f21ff5", "score": "0.44386178", "text": "public Class getDataClass();", "title": "" }, { "docid": "41ae2648c257c70a5d59e2ed1c59c14a", "score": "0.44373", "text": "private static final boolean checkClassParameterIsValid(String key, String value, String type) {\n\t\t// We have specified a \"class\" parameter. This may need to be amended to\n\t\t// include the full package.\n\n\t\t// For class parameters, we either take a full package+class or\n\t\t// a value relative from the package of the root class defined as\n\t\t// the type. The chosen class must be assignable to the root class.\n\n\t\t// For relative values, we substitute the full classname into the\n\t\t// command\n\t\t// line arguments for subsequent accesses.\n\t\tClass<?> rootClass = null;\n\t\ttry {\n\t\t\t// Get defined class\n\t\t\trootClass = Class.forName(type);\n\t\t}\n\t\tcatch (ClassNotFoundException e1) {\n\t\t\tlogger.log(Level.WARNING, \"INTERNAL ERROR: Class [{0}]] does not exist, required for property [{1}]\", new Object[]{ type, key });\n\t\t\treturn false;\n\t\t}\n\n\t\t// This check should be generalised or the class renamed\n\t\tif (value.equalsIgnoreCase(\"webspheremq\") && !value.equals(\"WebSphereMQ\")) {\n\t\t\tparms.put(\"pc\", \"WebSphereMQ\");\n\t\t\tparmsInternal.put(\"pc\", \"WebSphereMQ\");\n\t\t\tvalue = \"WebSphereMQ\";\n\t\t\tLog.logger.log(Level.WARNING, \"Parameter -pc ({0}) is case-sensitive and should read WebSphereMQ\", value);\n\t\t}\n\n\t\tif (value.equalsIgnoreCase(\"wbimb\") && !value.equals(\"WBIMB\")) {\n\t\t\tparms.put(\"pc\", \"WMB\");\n\t\t\tparmsInternal.put(\"pc\", \"WMB\");\n\t\t\tvalue = \"WMB\";\n\t\t\tLog.logger.log(Level.WARNING, \"Parameter -pc ({0}) specified WBIMB this class has been renamed to WMB\", value);\n\t\t}\n\n\t\t// Allow null values for classes\n\t\tif (value == null || \"\".equals(value))\n\t\t\treturn true;\n\n\t\tClass<?> clazz;\n\t\ttry {\n\t\t\tclazz = Class.forName(value);\n\t\t}\n\t\tcatch (ClassNotFoundException e2) {\n\t\t\t// Not found, try prepending root package\n\t\t\ttry {\n\t\t\t\tfinal String newvalue = \"com.ibm.uk.hursley.perfharness.\" + value;\n\t\t\t\t// Note: could calculate what the root package is from our own package!\n\t\t\t\tclazz = Class.forName(newvalue);\n\t\t\t\t// replace the default entry\n\t\t\t\tparmsInternal.put(key, newvalue);\n\t\t\t}\n\t\t\tcatch (ClassNotFoundException e3) {\n\t\t\t\t// Not found, now try prepending the package of the rootclass\n\t\t\t\ttry {\n\t\t\t\t\tfinal String newvalue = rootClass.getPackage().getName() + '.' + value;\n\t\t\t\t\tclazz = Class.forName(newvalue);\n\t\t\t\t\tparmsInternal.put(key, newvalue);\n\t\t\t\t}\n\t\t\t\tcatch (ClassNotFoundException e4) {\n\t\t\t\t\t// not found, bail out\n\t\t\t\t\tlogger.log(Level.WARNING, \"Property [{0}] specifies a class [{1}] which cannot be located.\", new Object[] { key, value });\n\t\t\t\t\treturn false;\n\t\t\t\t} // end try catch\n\t\t\t} // end try catch\n\t\t} // end try catch\n\t\tif (!rootClass.isAssignableFrom(clazz)) {\n\t\t\tlogger.log(Level.WARNING, \"Property [{0}={1}] specifies a class that does extend {3}\", new Object[]{ key, value, rootClass });\n\t\t\treturn false;\n\t\t}\n\t\t// success if we passed all tests\n\t\treturn true;\n\t}", "title": "" }, { "docid": "754c7076ada9c95fbd2b44e870d296be", "score": "0.44357178", "text": "private static @NotNull Optional<List<Type>> findTargetTypes(@NotNull Constructor<?> ctor, @NotNull List<String> resultSetColumns) {\n List<Type> constructorParameterTypes = asList(ctor.getGenericParameterTypes());\n\n int constructorParameterCount = constructorParameterTypes.size();\n\n if (constructorParameterCount > resultSetColumns.size()) {\n // We don't have enough columns in ResultSet to instantiate this constructor, discard it.\n return Optional.empty();\n\n } else if (constructorParameterCount == resultSetColumns.size()) {\n // We have exactly enough column in ResultSet. Use the constructor as it is.\n return Optional.of(constructorParameterTypes);\n\n } else {\n // Get the types of remaining properties\n ArrayList<Type> result = new ArrayList<>(resultSetColumns.size());\n result.addAll(constructorParameterTypes);\n\n List<String> propertyNames = resultSetColumns.subList(constructorParameterCount, resultSetColumns.size());\n for (String name : propertyNames) {\n Type type = PropertyAccessor.findPropertyType(ctor.getDeclaringClass(), name).orElse(null);\n if (type != null)\n result.add(type);\n else\n return Optional.empty();\n }\n\n return Optional.of(result);\n }\n }", "title": "" }, { "docid": "453a4a7de506db32315dbecccfb194bc", "score": "0.44334581", "text": "public void setJavaDataType(String javaDataType) {\n this.javaDataType = javaDataType;\n }", "title": "" }, { "docid": "ba0e9bc722d73ad31bc255059a5553ad", "score": "0.4428997", "text": "public abstract VmType<?> defineClass(VmType<?> createdType);", "title": "" }, { "docid": "a76e551cb44906e6c743fa89c1a3ec5e", "score": "0.4428143", "text": "protected ClassDescriptor selectClassDescriptor(Map row) throws PersistenceBrokerException\r\n {\r\n ClassDescriptor result = m_cld;\r\n Class ojbConcreteClass = (Class) row.get(OJB_CONCRETE_CLASS_KEY);\r\n if(ojbConcreteClass != null)\r\n {\r\n result = m_cld.getRepository().getDescriptorFor(ojbConcreteClass);\r\n // if we can't find class-descriptor for concrete class, something wrong with mapping\r\n if (result == null)\r\n {\r\n throw new PersistenceBrokerException(\"Can't find class-descriptor for ojbConcreteClass '\"\r\n + ojbConcreteClass + \"', the main class was \" + m_cld.getClassNameOfObject());\r\n }\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "5f702db6e58e4ca7b25b97da5bdaf4b5", "score": "0.44277614", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic static <T extends SQLDataClass> T fromString(Class<T> c, String s) {\r\n\t\ttry {\r\n\t\t\tString prefix = getTableName(c) + \": \\\\{\";\r\n\r\n\t\t\ts = s.replaceFirst(prefix, \"\");\r\n\t\t\ts = s.substring(0, s.length() - 1);\r\n\t\t\ts = s.replaceAll(\"(PK)\", \"\");\r\n\t\t\tString[] parts = s.split(\", \");\r\n\r\n\t\t\tClass<?>[] parameters = c.getConstructors()[0].getParameterTypes();\r\n\t\t\tObject[] args = new Object[parameters.length];\r\n\r\n\t\t\tint i = 0;\r\n\t\t\tfor (int j = 0; j < c.getDeclaredFields().length; j++) {\r\n\t\t\t\tField field = c.getDeclaredFields()[j];\r\n\t\t\t\tif (field.getAnnotation(NoSave.class) != null)\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tClass<?> paramClass = field.getType();\r\n\r\n\t\t\t\tif (!SQLDataSerialiser.hasMethods(paramClass)) {\r\n\t\t\t\t\tString cName = paramClass.getSimpleName();\r\n\t\t\t\t\tthrow new IllegalArgumentException(\"Parser method for class \" + cName\r\n\t\t\t\t\t\t\t+ \" is not defined. Add it with SQLDataClass.addParserSerializer\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tParserMethod<?> method = SQLDataSerialiser.getParser(paramClass);\r\n\t\t\t\tString serializedObject = parts[i].substring(parts[i].indexOf('=') + 1, parts[i].length());\r\n\t\t\t\ti++;\r\n\t\t\t\tif (isQuoted(paramClass))\r\n\t\t\t\t\tserializedObject = serializedObject.substring(1, serializedObject.length() - 1);\r\n\t\t\t\tif (serializedObject == null)\r\n\t\t\t\t\targs[j] = null;\r\n\t\t\t\telse\r\n\t\t\t\t\targs[j] = cast(paramClass, method.parse(serializedObject));\r\n\t\t\t}\r\n\r\n\t\t\treturn (T) c.getDeclaredConstructors()[0].newInstance(args);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(s);\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5fcae10ebb54afafbca3d671c5bda587", "score": "0.44217783", "text": "public List<Parameter> getParameters(int cid){\n\t\tString selectQuery = \"SELECT * FROM Paramter\" +\n\t\t\t\" WHERE cid = \" + cid;\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tList<Parameter> parameters = new ArrayList<Parameter>();\n\t\tif(cursor.moveToFirst()){\n\t\t\tdo{\n\t\t\t\tParameter parameter = new Parameter();\n\t\t\t\tparameter.setprid(cursor.getInt(0));\n\t\t\t\tparameter.setcid(cursor.getInt(1));\n\t\t\t\tparameter.settype(cursor.getString(2));\n\t\t\t\tparameter.setpercentage(Float.parseFloat(cursor.getString(3)));\n\t\t\t\tparameters.add(parameter);\n\t\t\t}while(cursor.moveToNext());\n\t\t\treturn parameters;\t\n\t\t}\n\t\telse\n\t\t\treturn null;\t\t\n\t}", "title": "" }, { "docid": "4240baf046bb4a6cdce816394be6be0f", "score": "0.4415175", "text": "public static void main(String[] args) {\n\t\tClass recordC = null;\n\t\ttry {\n\t\t\trecordC = Class.forName(\"chapter.sixteen.Record\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"------ 构造方法的描述如下 ------\");\n\t\tConstructor[] declaredConstructors = recordC.getDeclaredConstructors();\n\t\tfor (int i = 0; i < declaredConstructors.length; i++) {\n\t\t\tConstructor constructor = declaredConstructors[i];\n\t\t\tif (constructor.isAnnotationPresent(Constructor_Annotation.class)) {\n\t\t\t\tConstructor_Annotation ca = (Constructor_Annotation) constructor\n\t\t\t\t\t\t.getAnnotation(Constructor_Annotation.class);\n\t\t\t\tSystem.out.println(ca.value());\n\t\t\t}\n\t\t\tAnnotation[][] parameterAnnotations = constructor.getParameterAnnotations();\n\t\t\tfor (int j = 0; j < parameterAnnotations.length; j++) {\n\t\t\t\tint length = parameterAnnotations[j].length;\n\t\t\t\tif (length == 0)\n\t\t\t\t\tSystem.out.println(\" 未添加Annotation的参数\");\n\t\t\t\telse {\n\t\t\t\t\tfor (int k = 0; k <length; k++) {\n\t\t\t\t\t\tField_Method_Parameter_Annotation pa =\n\t\t\t\t\t\t\t\t(Field_Method_Parameter_Annotation) parameterAnnotations[j][k];\n\t\t\t\t\t\tSystem.out.println(\" \" + pa.describe());\n\t\t\t\t\t\tSystem.out.println(\" \" + pa.type());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"-------- 字段的描述如下 --------\");\n\t\tField[] declaredFields = recordC.getDeclaredFields();\n\t\tfor (int i = 0; i < declaredFields.length; i++) {\n\t\t\tField field = declaredFields[i];\n\t\t\tif (field.isAnnotationPresent(Field_Method_Parameter_Annotation.class)) {\n\t\t\t\tField_Method_Parameter_Annotation fa = field\n\t\t\t\t\t\t.getAnnotation(Field_Method_Parameter_Annotation.class);\n\t\t\t\tSystem.out.println(\" \" + fa.describe());\t\n\t\t\t\tSystem.out.println(\" \" + fa.type()); \n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"-------- 方法的描述如下 --------\");\n\t\tMethod[] methods = recordC.getDeclaredMethods();\n\t\tfor (int i = 0; i < methods.length; i++) {\n\t\t\tMethod method = methods[i];\n\t\t\tif(method.isAnnotationPresent(Field_Method_Parameter_Annotation.class)) {\n\t\t\t\tField_Method_Parameter_Annotation ma = method\n\t\t\t\t\t\t.getAnnotation(Field_Method_Parameter_Annotation.class);\n\t\t\t\tSystem.out.println(ma.describe());\n\t\t\t\tSystem.out.println(ma.type());\n\t\t\t}\n\t\t\tAnnotation[][] parameterAnnatations = method.getParameterAnnotations();\n\t\t\tfor (int j = 0; j < parameterAnnatations.length; j++) {\n\t\t\t\tint length = parameterAnnatations[j].length;\n\t\t\t\tif (length == 0)\n\t\t\t\t\tSystem.out.println(\" 未添加Annotation的参数\");\n\t\t\t\telse {\n\t\t\t\t\tfor (int k = 0; k < length; k++) {\n\t\t\t\t\t\tField_Method_Parameter_Annotation pa = (Field_Method_Parameter_Annotation) parameterAnnatations[j][k];\n\t\t\t\t\t\tSystem.out.println(\" \" + pa.describe());\n\t\t\t\t\t\tSystem.out.println(\" \" + pa.type()); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "52c95a00c4bcc2ee8c32e2661930ed87", "score": "0.44097126", "text": "private <T> T createEntitySupporter(ResultSet resultSet, MappedClassInformation<T> classInformation) throws SQLException {\n List<Method> setMethods = classInformation.getSetMethods();\n List<String> columns = classInformation.getColumns();\n T result = null;\n \n try {\n result = classInformation.getConstructor().newInstance();\n \n for (int i = 0; i < columns.size(); ++i) {\n Object data = resultSet.getObject(columns.get(i));\n setMethods.get(i).invoke(result, data);\n }\n } catch (ReflectiveOperationException ex) {\n logger.error(\"Reflective operation exception has occurred\", ex);\n System.exit(-1);\n }\n \n return result;\n }", "title": "" }, { "docid": "3770df161a06d23fc29cc140ac563599", "score": "0.4406622", "text": "@Override\n public List<ClassInformation> retrieveFromResultSet(ResultSet rs) throws SQLException {\n List<ClassInformation> allClassInformation = new LinkedList<>();\n while(rs.next()) {\n ClassInformation c = ClassInformation.getPojoFromResultSet(rs);\n allClassInformation.add(c);\n }\n return allClassInformation;\n }", "title": "" }, { "docid": "eb9bf654c3531ec67b9c75527f0c7d62", "score": "0.44034505", "text": "public static RecordClassDescriptor mkMarketMessageDescriptor (\n Integer staticCurrencyCode,\n Boolean staticOriginalTimestamp,\n Boolean staticNanoTime\n )\n {\n final String name = MarketMessage.class.getName ();\n final List<DataField> fields = new ArrayList<>(4);\n if (staticOriginalTimestamp != null) {\n fields.add (\n staticOriginalTimestamp ?\n new StaticDataField(\n \"originalTimestamp\", \"Original Time\",\n new DateTimeDataType(true), null) :\n new NonStaticDataField(\n \"originalTimestamp\", \"Original Time\",\n new DateTimeDataType(true))\n\n );\n }\n\n\n//nanoTime was removed\n if (staticNanoTime != null) {\n fields.add (\n staticNanoTime ?\n new StaticDataField(\n \"nanoTime\", \"Nano Time\",\n new IntegerDataType(IntegerDataType.ENCODING_INT64, true), null) :\n new NonStaticDataField(\n \"nanoTime\", \"Nano Time\",\n new IntegerDataType(IntegerDataType.ENCODING_INT64, true))\n );\n }\n\n\n fields.add (mkField (\n \"currencyCode\", \"Currency Code\",\n new IntegerDataType (IntegerDataType.ENCODING_INT16, true), null,\n staticCurrencyCode\n ));\n\n fields.add (new NonStaticDataField (\n \"sequenceNumber\", \"Sequence Number\",\n new IntegerDataType (IntegerDataType.ENCODING_INT64, true)\n ));\n \n return (new RecordClassDescriptor (name, name, true, null, fields.toArray(new DataField[fields.size()])));\n }", "title": "" }, { "docid": "a0ffd076a0a9b3cd998953d90fb612f1", "score": "0.4403423", "text": "static final Object convertStringToObject(String stringVal,\n JDBCType jdbcType) throws UnsupportedEncodingException, IllegalArgumentException {\n switch (jdbcType) {\n // Convert String to Numeric types.\n case DECIMAL:\n case NUMERIC:\n case MONEY:\n case SMALLMONEY:\n return new BigDecimal(stringVal.trim());\n case FLOAT:\n case DOUBLE:\n return Double.valueOf(stringVal.trim());\n case REAL:\n return Float.valueOf(stringVal.trim());\n case INTEGER:\n return Integer.valueOf(stringVal.trim());\n case SMALLINT: // small and tinyint returned as short\n case TINYINT:\n return Short.valueOf(stringVal.trim());\n case BIT:\n case BOOLEAN:\n String trimmedString = stringVal.trim();\n return (1 == trimmedString.length()) ? Boolean.valueOf('1' == trimmedString.charAt(0))\n : Boolean.valueOf(trimmedString);\n case BIGINT:\n return Long.valueOf(stringVal.trim());\n\n // Convert String to Temporal types.\n case TIMESTAMP:\n return java.sql.Timestamp.valueOf(stringVal.trim());\n case LOCALDATETIME:\n return parseStringIntoLDT(stringVal.trim());\n case DATE:\n return java.sql.Date.valueOf(getDatePart(stringVal.trim()));\n case TIME: {\n // Accepted character formats for conversion to java.sql.Time are:\n // hh:mm:ss[.nnnnnnnnn]\n // YYYY-MM-DD hh:mm:ss[.nnnnnnnnn]\n //\n // To handle either of these formats:\n // 1) Normalize and parse as a Timestamp\n // 2) Round fractional seconds up to the nearest millisecond (max resolution of java.sql.Time)\n // 3) Renormalize (as rounding may have changed the date) to a java.sql.Time\n java.sql.Timestamp ts = java.sql.Timestamp\n .valueOf(BASE_DATE_1970 + \" \" + getTimePart(stringVal.trim()));\n GregorianCalendar cal = new GregorianCalendar(Locale.US);\n cal.clear();\n cal.setTimeInMillis(ts.getTime());\n if (ts.getNanos() % Nanos.PER_MILLISECOND >= Nanos.PER_MILLISECOND / 2)\n cal.add(Calendar.MILLISECOND, 1);\n cal.set(BASE_YEAR_1970, Calendar.JANUARY, 1);\n return new java.sql.Time(cal.getTimeInMillis());\n }\n\n case BINARY:\n return stringVal.getBytes();\n\n default:\n return stringVal;\n }\n }", "title": "" }, { "docid": "2e48a67f9108a38aff50e035ed9ad3ef", "score": "0.43986246", "text": "String getJavaMiscParams();", "title": "" }, { "docid": "d9474721f2f1cc2414d7f42b0d0d88d5", "score": "0.4395494", "text": "public JavaParameters createJavaParametersObject(String runType) {\n JavaParameters javaParameters = new JavaParameters();\n javaParameters.setRunType(runType);\n javaParameters.setModulePath(false);\n javaParameters.setJvmArgs(\"-xms:50m\");\n javaParameters.setMainArgs(\"-host 127.0.0.1 -port 8080\");\n ResourceInfo resourceJar = new ResourceInfo();\n resourceJar.setId(2);\n resourceJar.setResourceName(\"/opt/share/jar/resource2.jar\");\n resourceJar.setRes(\"I'm resource2.jar\");\n ArrayList<ResourceInfo> resourceInfoArrayList = new ArrayList<>();\n resourceInfoArrayList.add(resourceJar);\n javaParameters.setResourceList(resourceInfoArrayList);\n javaParameters.setRawScript(\n \"import java.io.IOException;\\n\" +\n \"public class JavaTaskTest {\\n\" +\n \" public static void main(String[] args) throws IOException {\\n\" +\n \" StringBuilder builder = new StringBuilder(\\\"Hello: \\\");\\n\" +\n \" for (String arg : args) {\\n\" +\n \" builder.append(arg).append(\\\" \\\");\\n\" +\n \" }\\n\" + \" System.out.println(builder);\\n\" +\n \" }\\n\" +\n \"}\\n\");\n ArrayList<Property> localParams = new ArrayList<>();\n Property property = new Property();\n property.setProp(\"name\");\n property.setValue(\"zhangsan\");\n property.setDirect(IN);\n property.setType(VARCHAR);\n javaParameters.setLocalParams(localParams);\n ResourceInfo mainJar = new ResourceInfo();\n mainJar.setId(1);\n mainJar.setResourceName(\"/opt/share/jar/main.jar\");\n mainJar.setRes(\"I'm main.jar\");\n javaParameters.setMainJar(mainJar);\n return javaParameters;\n }", "title": "" }, { "docid": "8ad18f7a8acd7925fe6f58c2194f693b", "score": "0.43900564", "text": "public static String getBigDecimalString(CallableStatement cs, int parameterIndex, int parameterType) throws SQLException{\n\t\tString bigDecimalString = null;\n\t\t\n\t\tswitch(representation){\n\t\t\tcase BIGDECIMAL_REPRESENTATION:\n\t\t\t\t//Call toString() only for non-null values, else return null\n\t\t\t\tif(cs.getBigDecimal(parameterIndex) != null)\n\t\t\t\t\tbigDecimalString = cs.getBigDecimal(parameterIndex).toString();\n\t\t\t\tbreak;\n\t\t\tcase STRING_REPRESENTATION:\n\t\t\t\tbigDecimalString = cs.getString(parameterIndex);\n\t\t\t\tif((bigDecimalString != null) && !canConvertToDecimal(parameterType))\n\t\t\t\t\tthrow new SQLException(\"Invalid data conversion. Method not called.\");\n\t\t\t\tbreak;\n\t\t\tdefault:\t\n\t\t\t\tnew Exception(\"Failed: Invalid Big Decimal representation\").printStackTrace();\n\t\t}\n\t\treturn bigDecimalString;\n\t}", "title": "" }, { "docid": "63ee04ebb86d38d571e32216ae60ce22", "score": "0.4387955", "text": "public static Object createJavaObject(IDataType dataType) {\n\n Object javaObject = null;\n\n if (dataType instanceof BooleanDataType) {\n\n javaObject = Boolean.parseBoolean(dataType.toString());\n\n } else if (dataType instanceof IntDataType) {\n\n javaObject = Integer.parseInt(dataType.toString());\n } else if (dataType instanceof DoubleDataType) {\n\n javaObject = Double.parseDouble(dataType.toString());\n } else if (dataType instanceof StringDataType) {\n\n javaObject = dataType.toString();\n }\n return javaObject;\n }", "title": "" }, { "docid": "e082870dede0a7942e35896cec7cca9a", "score": "0.43861282", "text": "static DataType fromC(int c) {\n switch (c) {\n case 1:\n return DataType.FLOAT32;\n case 2:\n return DataType.INT32;\n case 3:\n return DataType.UINT8;\n case 4:\n return DataType.INT64;\n case 5:\n return DataType.STRING;\n case 6:\n return DataType.BOOL;\n case 7:\n return DataType.INT16;\n case 9:\n return DataType.INT8;\n default: // continue below to handle unsupported C types.\n }\n throw new IllegalArgumentException(\n \"DataType error: DataType \" + c + \" is not recognized in Java.\");\n }", "title": "" }, { "docid": "ade11fe18f066bfa9b05428252a8c7a5", "score": "0.43828014", "text": "public DynamicObject2D chooseDynamicObject(Class<?> class1, String instr) {\r\n\r\n\t\tif (Measure2D.class.isAssignableFrom(class1)) {\r\n\t\t\tDynamicMeasure2D measure = chooseMeasure(class1, instr);\r\n\r\n\t\t\t// Check null measure case\r\n\t\t\tif (measure==null) {\r\n\t\t\t\tlogger.info(\"Cancel measure selection\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\t// Store parameter\r\n\t\t\treturn measure;\r\n\r\n\t\t} else if (Transform2D.class.isAssignableFrom(class1)) {\r\n\t\t\tDynamicTransform2D transform = chooseTransform(class1, instr);\r\n\r\n\t\t\t// Check null transform case\r\n\t\t\tif (transform==null) {\r\n\t\t\t\tlogger.error(\"null transform\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\t// Store parameter\r\n\t\t\treturn transform;\r\n\r\n\t\t} else if (Vector2D.class.isAssignableFrom(class1)) {\r\n\t\t\tDynamicVector2D vector = chooseVector(class1, instr);\r\n\r\n\t\t\t// Check null transform case\r\n\t\t\tif (vector==null) {\r\n\t\t\t\tlogger.error(\"null vector\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\t// Store parameter, and change the parent class\r\n\t\t\treturn vector;\r\n\r\n\t\t} else if (DynamicPredicate2D.class.isAssignableFrom(class1)) {\r\n\r\n\t\t\tDynamicPredicate2D predicate = choosePredicate(class1, instr);\r\n\r\n\t\t\t// Check null transform case\r\n\t\t\tif (predicate==null) {\r\n\t\t\t\tlogger.error(\"null predicate\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\t// Store parameter, and change the parent class\r\n\t\t\treturn predicate;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e97fb4b5cb8d173a370146fee17fe3d5", "score": "0.43812877", "text": "public Object instantiation(List<Class<?>> parametersType, Object... parameters) throws InstantiationErrorException {\n try {\n Constructor<?> constructor = this.clz.getConstructor(transform(parametersType));//NoSuchMethodException\n return constructor.newInstance(parameters);//IllegalAccessException, InvocationTargetException, InstantiationException\n } catch (ReflectiveOperationException e) {\n throw new InstantiationErrorException(e.getMessage());\n }\n }", "title": "" }, { "docid": "ec885918dfdcee5f69daed67860d13a5", "score": "0.43796948", "text": "public ObjectClassDefinition(java.lang.String r17) {\n /*\n r16 = this;\n r0 = r16\n r16.<init>()\n com.unboundid.util.Validator.ensureNotNull(r17)\n java.lang.String r1 = r17.trim()\n r0.objectClassString = r1\n java.lang.String r1 = r0.objectClassString\n int r1 = r1.length()\n if (r1 == 0) goto L_0x02f5\n java.lang.String r2 = r0.objectClassString\n r3 = 0\n char r2 = r2.charAt(r3)\n r4 = 40\n r5 = 1\n if (r2 != r4) goto L_0x02df\n java.lang.String r2 = r0.objectClassString\n int r2 = skipSpaces(r2, r5, r1)\n java.lang.StringBuilder r4 = new java.lang.StringBuilder\n r4.<init>()\n java.lang.String r6 = r0.objectClassString\n int r2 = readOID(r6, r2, r1, r4)\n java.lang.String r4 = r4.toString()\n r0.oid = r4\n java.util.ArrayList r4 = new java.util.ArrayList\n r4.<init>(r5)\n java.util.ArrayList r6 = new java.util.ArrayList\n r6.<init>(r5)\n java.util.ArrayList r7 = new java.util.ArrayList\n r7.<init>()\n java.util.ArrayList r8 = new java.util.ArrayList\n r8.<init>()\n java.util.LinkedHashMap r9 = new java.util.LinkedHashMap\n r9.<init>()\n r10 = 0\n r11 = r10\n r12 = r11\n L_0x0055:\n java.lang.String r13 = r0.objectClassString\n int r2 = skipSpaces(r13, r2, r1)\n r13 = r2\n L_0x005c:\n if (r13 >= r1) goto L_0x006b\n java.lang.String r14 = r0.objectClassString\n char r14 = r14.charAt(r13)\n r15 = 32\n if (r14 == r15) goto L_0x006b\n int r13 = r13 + 1\n goto L_0x005c\n L_0x006b:\n java.lang.String r14 = r0.objectClassString\n java.lang.String r2 = r14.substring(r2, r13)\n java.lang.String r14 = com.unboundid.util.StaticUtils.toLowerCase(r2)\n java.lang.String r15 = \")\"\n boolean r15 = r14.equals(r15)\n if (r15 == 0) goto L_0x00d7\n if (r13 < r1) goto L_0x00c3\n r0.description = r10\n int r1 = r4.size()\n java.lang.String[] r1 = new java.lang.String[r1]\n r0.names = r1\n java.lang.String[] r1 = r0.names\n r4.toArray(r1)\n int r1 = r6.size()\n java.lang.String[] r1 = new java.lang.String[r1]\n r0.superiorClasses = r1\n java.lang.String[] r1 = r0.superiorClasses\n r6.toArray(r1)\n int r1 = r7.size()\n java.lang.String[] r1 = new java.lang.String[r1]\n r0.requiredAttributes = r1\n java.lang.String[] r1 = r0.requiredAttributes\n r7.toArray(r1)\n int r1 = r8.size()\n java.lang.String[] r1 = new java.lang.String[r1]\n r0.optionalAttributes = r1\n java.lang.String[] r1 = r0.optionalAttributes\n r8.toArray(r1)\n if (r11 == 0) goto L_0x00b8\n r3 = 1\n L_0x00b8:\n r0.isObsolete = r3\n r0.objectClassType = r12\n java.util.Map r1 = java.util.Collections.unmodifiableMap(r9)\n r0.extensions = r1\n return\n L_0x00c3:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r4 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_CLOSE_NOT_AT_END\n java.lang.Object[] r5 = new java.lang.Object[r5]\n java.lang.String r6 = r0.objectClassString\n r5[r3] = r6\n java.lang.String r3 = r4.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r3)\n throw r1\n L_0x00d7:\n java.lang.String r15 = \"name\"\n boolean r15 = r14.equals(r15)\n r5 = 2\n if (r15 == 0) goto L_0x010d\n boolean r2 = r4.isEmpty()\n if (r2 == 0) goto L_0x00f4\n java.lang.String r2 = r0.objectClassString\n int r2 = skipSpaces(r2, r13, r1)\n java.lang.String r5 = r0.objectClassString\n int r2 = readQDStrings(r5, r2, r1, r4)\n goto L_0x02ab\n L_0x00f4:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r4 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_MULTIPLE_ELEMENTS\n java.lang.Object[] r5 = new java.lang.Object[r5]\n java.lang.String r6 = r0.objectClassString\n r5[r3] = r6\n java.lang.String r3 = \"NAME\"\n r6 = 1\n r5[r6] = r3\n java.lang.String r3 = r4.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r3)\n throw r1\n L_0x010d:\n java.lang.String r15 = \"desc\"\n boolean r15 = r14.equals(r15)\n if (r15 == 0) goto L_0x0148\n if (r10 != 0) goto L_0x012f\n java.lang.String r2 = r0.objectClassString\n int r2 = skipSpaces(r2, r13, r1)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n java.lang.String r10 = r0.objectClassString\n int r2 = readQDString(r10, r2, r1, r5)\n java.lang.String r5 = r5.toString()\n r10 = r5\n goto L_0x02ab\n L_0x012f:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r4 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_MULTIPLE_ELEMENTS\n java.lang.Object[] r5 = new java.lang.Object[r5]\n java.lang.String r6 = r0.objectClassString\n r5[r3] = r6\n java.lang.String r3 = \"DESC\"\n r15 = 1\n r5[r15] = r3\n java.lang.String r3 = r4.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r3)\n throw r1\n L_0x0148:\n r15 = 1\n java.lang.String r3 = \"obsolete\"\n boolean r3 = r14.equals(r3)\n if (r3 == 0) goto L_0x0174\n if (r11 != 0) goto L_0x015b\n java.lang.Boolean r2 = java.lang.Boolean.valueOf(r15)\n r11 = r2\n L_0x0158:\n r2 = r13\n goto L_0x02ab\n L_0x015b:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r3 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_MULTIPLE_ELEMENTS\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.String r5 = r0.objectClassString\n r6 = 0\n r4[r6] = r5\n java.lang.String r5 = \"OBSOLETE\"\n r4[r15] = r5\n java.lang.String r3 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r3)\n throw r1\n L_0x0174:\n java.lang.String r3 = \"sup\"\n boolean r3 = r14.equals(r3)\n if (r3 == 0) goto L_0x01aa\n boolean r2 = r6.isEmpty()\n if (r2 == 0) goto L_0x0190\n java.lang.String r2 = r0.objectClassString\n int r2 = skipSpaces(r2, r13, r1)\n java.lang.String r3 = r0.objectClassString\n int r2 = readOIDs(r3, r2, r1, r6)\n goto L_0x02ab\n L_0x0190:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r3 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_MULTIPLE_ELEMENTS\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.String r5 = r0.objectClassString\n r6 = 0\n r4[r6] = r5\n java.lang.String r5 = \"SUP\"\n r6 = 1\n r4[r6] = r5\n java.lang.String r3 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r3)\n throw r1\n L_0x01aa:\n java.lang.String r3 = \"abstract\"\n boolean r3 = r14.equals(r3)\n if (r3 == 0) goto L_0x01ce\n if (r12 != 0) goto L_0x01b8\n com.unboundid.ldap.sdk.schema.ObjectClassType r2 = com.unboundid.ldap.sdk.schema.ObjectClassType.ABSTRACT\n L_0x01b6:\n r12 = r2\n goto L_0x0158\n L_0x01b8:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r3 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_MULTIPLE_OC_TYPES\n r4 = 1\n java.lang.Object[] r4 = new java.lang.Object[r4]\n java.lang.String r5 = r0.objectClassString\n r6 = 0\n r4[r6] = r5\n java.lang.String r3 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r3)\n throw r1\n L_0x01ce:\n java.lang.String r3 = \"structural\"\n boolean r3 = r14.equals(r3)\n if (r3 == 0) goto L_0x01f1\n if (r12 != 0) goto L_0x01db\n com.unboundid.ldap.sdk.schema.ObjectClassType r2 = com.unboundid.ldap.sdk.schema.ObjectClassType.STRUCTURAL\n goto L_0x01b6\n L_0x01db:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r3 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_MULTIPLE_OC_TYPES\n r4 = 1\n java.lang.Object[] r4 = new java.lang.Object[r4]\n java.lang.String r5 = r0.objectClassString\n r6 = 0\n r4[r6] = r5\n java.lang.String r3 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r3)\n throw r1\n L_0x01f1:\n java.lang.String r3 = \"auxiliary\"\n boolean r3 = r14.equals(r3)\n if (r3 == 0) goto L_0x0214\n if (r12 != 0) goto L_0x01fe\n com.unboundid.ldap.sdk.schema.ObjectClassType r2 = com.unboundid.ldap.sdk.schema.ObjectClassType.AUXILIARY\n goto L_0x01b6\n L_0x01fe:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r3 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_MULTIPLE_OC_TYPES\n r4 = 1\n java.lang.Object[] r4 = new java.lang.Object[r4]\n java.lang.String r5 = r0.objectClassString\n r6 = 0\n r4[r6] = r5\n java.lang.String r3 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r3)\n throw r1\n L_0x0214:\n java.lang.String r3 = \"must\"\n boolean r3 = r14.equals(r3)\n if (r3 == 0) goto L_0x024a\n boolean r2 = r7.isEmpty()\n if (r2 == 0) goto L_0x0230\n java.lang.String r2 = r0.objectClassString\n int r2 = skipSpaces(r2, r13, r1)\n java.lang.String r3 = r0.objectClassString\n int r2 = readOIDs(r3, r2, r1, r7)\n goto L_0x02ab\n L_0x0230:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r3 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_MULTIPLE_ELEMENTS\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.String r5 = r0.objectClassString\n r6 = 0\n r4[r6] = r5\n java.lang.String r5 = \"MUST\"\n r6 = 1\n r4[r6] = r5\n java.lang.String r3 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r3)\n throw r1\n L_0x024a:\n java.lang.String r3 = \"may\"\n boolean r3 = r14.equals(r3)\n if (r3 == 0) goto L_0x027f\n boolean r2 = r8.isEmpty()\n if (r2 == 0) goto L_0x0265\n java.lang.String r2 = r0.objectClassString\n int r2 = skipSpaces(r2, r13, r1)\n java.lang.String r3 = r0.objectClassString\n int r2 = readOIDs(r3, r2, r1, r8)\n goto L_0x02ab\n L_0x0265:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r3 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_MULTIPLE_ELEMENTS\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.String r5 = r0.objectClassString\n r6 = 0\n r4[r6] = r5\n java.lang.String r5 = \"MAY\"\n r6 = 1\n r4[r6] = r5\n java.lang.String r3 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r3)\n throw r1\n L_0x027f:\n java.lang.String r3 = \"x-\"\n boolean r3 = r14.startsWith(r3)\n if (r3 == 0) goto L_0x02c7\n java.lang.String r3 = r0.objectClassString\n int r3 = skipSpaces(r3, r13, r1)\n java.util.ArrayList r13 = new java.util.ArrayList\n r13.<init>()\n java.lang.String r14 = r0.objectClassString\n int r3 = readQDStrings(r14, r3, r1, r13)\n int r14 = r13.size()\n java.lang.String[] r14 = new java.lang.String[r14]\n r13.toArray(r14)\n boolean r13 = r9.containsKey(r2)\n if (r13 != 0) goto L_0x02af\n r9.put(r2, r14)\n r2 = r3\n L_0x02ab:\n r3 = 0\n r5 = 1\n goto L_0x0055\n L_0x02af:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r4 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_DUP_EXT\n java.lang.Object[] r5 = new java.lang.Object[r5]\n java.lang.String r6 = r0.objectClassString\n r7 = 0\n r5[r7] = r6\n r6 = 1\n r5[r6] = r2\n java.lang.String r2 = r4.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r2)\n throw r1\n L_0x02c7:\n r6 = 1\n r7 = 0\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r4 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_UNEXPECTED_TOKEN\n java.lang.Object[] r5 = new java.lang.Object[r5]\n java.lang.String r8 = r0.objectClassString\n r5[r7] = r8\n r5[r6] = r2\n java.lang.String r2 = r4.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r2)\n throw r1\n L_0x02df:\n r6 = 1\n r7 = 0\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r3 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_NO_OPENING_PAREN\n java.lang.Object[] r4 = new java.lang.Object[r6]\n java.lang.String r5 = r0.objectClassString\n r4[r7] = r5\n java.lang.String r3 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r3)\n throw r1\n L_0x02f5:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.DECODING_ERROR\n com.unboundid.ldap.sdk.schema.SchemaMessages r3 = com.unboundid.ldap.sdk.schema.SchemaMessages.ERR_OC_DECODE_EMPTY\n java.lang.String r3 = r3.get()\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r3)\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.ldap.sdk.schema.ObjectClassDefinition.<init>(java.lang.String):void\");\n }", "title": "" }, { "docid": "302113a111986c77120ab1826671bb35", "score": "0.43786404", "text": "protected List<Type> convertParameterTypes(List<? extends CharSequence> paramTypes) {\n List<Type> parameterTypes = new ArrayList<Type>();\n if (paramTypes != null) {\n for (CharSequence type : paramTypes) {\n parameterTypes.add(DexType.toSoot(type.toString()));\n }\n }\n return parameterTypes;\n }", "title": "" }, { "docid": "7d0de20c21e2ad963f1091d177a38190", "score": "0.4359973", "text": "public void setClassAndComplex(DataType dataType, String dataTypeString) {\n\n if (dataTypeString.equals(\"text\") || dataTypeString.equals(\"string\")) {\n dataType.setClassName(\"String\");\n }\n\n if (dataTypeString.equals(\"date\")) {\n dataType.setClassName(\"LocalDate\");\n }\n\n if (dataTypeString.equals(\"datetime\")) {\n dataType.setClassName(\"LocalDateTime\");\n }\n\n if (dataTypeString.equals(\"int\")) {\n dataType.setClassName(\"Integer\");\n }\n\n if (dataTypeString.equals(\"bigint\")) {\n dataType.setClassName(\"Long\");\n }\n\n if (dataTypeString.equals(\"decimal\") || dataTypeString.equals(\"double\")) {\n dataType.setClassName(\"Double\");\n }\n\n if (dataTypeString.equals(\"float\")) {\n dataType.setClassName(\"Float\");\n }\n\n if (dataTypeString.equals(\"object\")) {\n dataType.setClassName(\"Object\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"array(int)\")) {\n dataType.setClassName(\"ArrayList<Integer>\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"array(text)\")) {\n dataType.setClassName(\"ArrayList<String>\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"array(decimal)\")) {\n dataType.setClassName(\"ArrayList<Double>\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"map(int,int)\")) {\n dataType.setClassName(\"LinkedHashMap<Integer,Integer>\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"map(int,text)\")) {\n dataType.setClassName(\"LinkedHashMap<Integer,String>\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"map(text,text)\")) {\n dataType.setClassName(\"LinkedHashMap<String,String>\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"map(text,int)\")) {\n dataType.setClassName(\"LinkedHashMap<String, Integer>\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"map(int,decimal)\")) {\n dataType.setClassName(\"LinkedHashMap<Integer,Double>\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"map(decimal,decimal)\")) {\n dataType.setClassName(\"LinkedHashMap<Double,Double>\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"map(decimal,int)\")) {\n dataType.setClassName(\"LinkedHashMap<Double,Integer>\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"map(text,decimal)\")) {\n dataType.setClassName(\"LinkedHashMap<String,Double>\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"map(decimal,text)\")) {\n dataType.setClassName(\"LinkedHashMap<Double,String>\");\n dataType.setComplex(true);\n }\n\n if (dataTypeString.equals(\"map(object,object)\")) {\n dataType.setClassName(\"LinkedHashMap<Object,Object>\");\n dataType.setComplex(true);\n }\n\n }", "title": "" }, { "docid": "0352e91ae55e5f967a48b530e363c805", "score": "0.43556875", "text": "public interface RamlParameter {\r\n /**\r\n * The parameter name\r\n *\r\n * @return the name\r\n */\r\n String getName();\r\n\r\n /**\r\n * The parameter type\r\n *\r\n * @return the type\r\n */\r\n String getType();\r\n\r\n /**\r\n * The parameter display name\r\n *\r\n * @return the display name\r\n */\r\n String getDisplayName();\r\n\r\n /**\r\n * The description of what the parameter represents in Markdown\r\n *\r\n * @return the description markdown\r\n */\r\n String getDescription();\r\n\r\n /**\r\n * The description of what the parameter represents in HTML\r\n *\r\n * @return the description HTML\r\n */\r\n default String getDescriptionHtml() {\r\n return MarkDownHelper.toHtml(getDescription());\r\n }\r\n\r\n /**\r\n * The parameter regex pattern it adheres to\r\n *\r\n * @return the regular expression\r\n */\r\n String getPattern();\r\n\r\n /**\r\n * An example of the parameter\r\n *\r\n * @return the example\r\n */\r\n String getExample();\r\n\r\n /**\r\n * The default value of the parameter\r\n *\r\n * @return the default value\r\n */\r\n String getDefault();\r\n\r\n /**\r\n * A flag indicating if the parameter is compulsory\r\n *\r\n * @return the required flag\r\n */\r\n boolean isRequired();\r\n\r\n /**\r\n * A flag indicating if the parameter can be used to send multiple values\r\n *\r\n * @return the multiple flag\r\n */\r\n boolean isMultiple();\r\n\r\n /**\r\n * The list of allowed values\r\n *\r\n * @return the allowed values\r\n */\r\n List<String> getAllowedValues();\r\n\r\n /**\r\n * The minimum value allowed\r\n *\r\n * @return the minimum\r\n */\r\n Double getMinValue();\r\n\r\n /**\r\n * The maximum value allowed\r\n *\r\n * @return the maximum\r\n */\r\n Double getMaxValue();\r\n\r\n default boolean isNumericType() {\r\n return this.getType().equalsIgnoreCase(\"Number\") || this.getType().equalsIgnoreCase(\"Integer\");\r\n }\r\n}", "title": "" }, { "docid": "beeaed32bef35b09b15d3287eb41ac48", "score": "0.4352403", "text": "@Override\n protected void modifyPrimitiveTypes( Map<Class<?>, SQLDataType> primitiveTypes, Map<Class<?>, Integer> jdbcTypes )\n {\n primitiveTypes.put( String.class, this._vendor.getDataTypeFactory().text() );\n }", "title": "" }, { "docid": "d2508f467525b1c3a4e07f8928b302d8", "score": "0.43505758", "text": "public JCClass getClazz();", "title": "" }, { "docid": "0bfc1b111c6ab23279311558fa131e3b", "score": "0.4346883", "text": "public static <T> T doReadValueIntoComplexJavaType(String source, Class<?> parametrized, Class<?>... parameterClasses) {\n\t\ttry {\n\t\t\tJavaType javaType = getObjectMapper().getTypeFactory().constructParametricType(parametrized, parameterClasses);\n\t\t\treturn getObjectMapper().readValue(source, javaType);\n\t\t} catch (IOException e) {\n\t\t\tlog.error(\"doReadValueIntoComplexJavaType error\", e);\n\t\t\tlog.error(\"source : {}, parametrized : {}, parameterClasses : {}\", source, parametrized, ArrayUtils.toString(parameterClasses));\n\t\t\tThrowables.throwIfUnchecked(e);\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "06a3ea1a6a25592a4dddb0fc834895b8", "score": "0.43459868", "text": "private Class<?> getObjectType(Class<?> cls) {\n if (Integer.class.isAssignableFrom(cls)) {\n return Integer.class;\n }\n\n if (Double.class.isAssignableFrom(cls)) {\n return Double.class;\n }\n\n if (Float.class.isAssignableFrom(cls)) {\n return Float.class;\n }\n\n if (com.vividsolutions.jts.geom.MultiPolygon.class.isAssignableFrom(cls)) {\n return com.vividsolutions.jts.geom.MultiPolygon.class;\n }\n\n if (com.vividsolutions.jts.geom.Polygon.class.isAssignableFrom(cls)) {\n return com.vividsolutions.jts.geom.Polygon.class;\n }\n\n if (com.vividsolutions.jts.geom.MultiLineString.class.isAssignableFrom(cls)) {\n return com.vividsolutions.jts.geom.MultiLineString.class;\n }\n\n if (com.vividsolutions.jts.geom.LineString.class.isAssignableFrom(cls)) {\n return com.vividsolutions.jts.geom.LineString.class;\n }\n\n if (com.vividsolutions.jts.geom.Point.class.isAssignableFrom(cls)) {\n return com.vividsolutions.jts.geom.Point.class;\n }\n\n if (com.vividsolutions.jts.geom.MultiPoint.class.isAssignableFrom(cls)) {\n return com.vividsolutions.jts.geom.MultiPoint.class;\n }\n\n if (MultiPoint.class.isAssignableFrom(cls)) {\n return com.vividsolutions.jts.geom.MultiPoint.class;\n }\n\n if (MultiLine.class.isAssignableFrom(cls)) {\n return com.vividsolutions.jts.geom.MultiLineString.class;\n }\n\n if (MultiPolygon.class.isAssignableFrom(cls)) {\n return com.vividsolutions.jts.geom.MultiPolygon.class;\n }\n\n if (Point.class.isAssignableFrom(cls)) {\n return com.vividsolutions.jts.geom.Point.class;\n }\n\n if (Line.class.isAssignableFrom(cls)) {\n return com.vividsolutions.jts.geom.LineString.class;\n }\n\n if (Polygon.class.isAssignableFrom(cls)) {\n return com.vividsolutions.jts.geom.Polygon.class;\n }\n\n return String.class;\n }", "title": "" }, { "docid": "6f63a6700dd4ba2c7f3b39a173c6560e", "score": "0.43436033", "text": "private static String getMethodSignature(Class[] paramTypes, Class retType) {\n\t\tStringBuffer sbuf = new StringBuffer();\n\t\tsbuf.append('(');\n\t\tfor (int i = 0; i < paramTypes.length; i++) {\n\t\t\tsbuf.append(getClassSignature(paramTypes[i]));\n\t\t}\n\t\tsbuf.append(')');\n\t\tsbuf.append(getClassSignature(retType));\n\t\treturn sbuf.toString();\n\t}", "title": "" }, { "docid": "ce23ec40715c284e212bf048659b199a", "score": "0.43321553", "text": "private Product getProductDetails( Product p, Category c )\n {\n \n String prod =\"\";\n boolean categoryChanged = false;\n String url = p.getRemoteUrl() + NokautConstans.PRODUCT_DESCRIPTION_POSTFIX;\n\n Connection connection = Jsoup.connect( url );\n\n try\n {\n Document doc = connection.get();\n Elements properties = doc.select( NokautConstans.HTML_PARAMETERS_REGEX );\n Elements descriptions = doc.select( NokautConstans.HTML_DESCRIPTION_REGEX );\n Elements producer = doc.select( NokautConstans.HTML_PRODUCER_REGEX );\n\n // String producerSymbol = null;\n\n if ( producer.size() > 0 )\n {\n\n String producerConnectedWithCategory = producer.get( producer.size() - 1 ).text();\n if ( logger.isDebugEnabled() )\n {\n logger.debug( \"Pobrana nazwa producenta : \" + producerConnectedWithCategory );\n }\n\n String catName = c.getName().toLowerCase();\n if ( producerConnectedWithCategory.toLowerCase().contains( catName ) )\n {\n\n // obliczam index\n int idx = producerConnectedWithCategory.toLowerCase().indexOf( catName );\n idx += c.getName().toLowerCase().length();\n\n \n try{\n prod = producerConnectedWithCategory.substring( catName.length()+1 );\n if ( logger.isDebugEnabled() )\n {\n logger.debug( \"Uzyskana nazwa producenta : \" + prod );\n }\n }catch(Exception ex){\n //czyli tutaj nie znajdziemy nazwy produktu\n return null;\n }\n \n\n if ( prod.length() < 2 )\n {\n // mniejsze od 2 jakby to byly jakies smieci\n // zazwyczaj bd to pusty string\n // nie pobieram tego\n return null;\n }\n\n p.addFilterValue( \"producent\", prod );\n \n \n }\n }\n\n if ( descriptions.size() > 0 )\n {\n\n // parametry\n for ( Element element : properties )\n {\n String paramName = element.child( 0 ).text();\n String value = element.child( 1 ).text();\n\n if ( logger.isDebugEnabled() )\n {\n logger.debug( \"Product parameter : \" + paramName + \" value : \" + value );\n }\n\n FilterSet<CategoryFilter> fs = c.getFilters();\n\n // boolean prod_ = false;\n // boolean prop_ = false;\n\n for ( CategoryFilter cf : fs )\n {\n if ( cf.getName().startsWith( paramName ) )\n {\n p.addFilterValue( cf.getSymbol(), value );\n // prop_ = true;\n break;\n }\n\n // if(cf.getName().equals( \"Producent\" )){\n // producerSymbol = cf.getSymbol();\n // prod_ = true;\n // }\n\n // if(prod_ && prop_)\n // break;\n }\n\n // if ( NokautConstans.specialFilters.contains( paramName ) )\n // {\n // // np. System operacyjny\n //\n // if ( logger.isDebugEnabled() )\n // {\n // logger.debug( \"************************* Special filter : \" + paramName );\n // }\n //\n // CategoryFilter cat = new CategoryFilter( paramName, CategoryFilterType.STRING );\n //\n // p.addFilterValue( cat.getSymbol(), value );\n //\n // FilterSet<CategoryFilter> filters = tpl.fetch( c.getFilters() );\n //\n // // sprawdzam jeszcze czy moze tego filtru nie ma juz na liscie\n // if ( !filters.contains( cat ) )\n // {\n // c.addFilter( cat );\n // categoryChanged = true;\n // }\n //\n // }\n }\n\n // FIXME przykladowy opis to : (tak moze byc?)\n /*\n * <article class=\"ShopOfferDescription\"> <header> <h4><a onmousedown=\n * \"clickWrapper(this,'http://www.nokaut.pl/Click/Offer/?click=aCyc*yFMVWnP0RgenwCnN1Xsw1y9htVk4ywQZjNOFYErpZuoUJ1oP6QYQvLF4mWrWSdnZvOqWylOPUXCzm2Q1wwWgZTdreyAZka9q0A8XIE_P._0_0_PictureBrowser_', 0, {o: '1921e586179e428ae424e494482016e1', s: '258', t: 'Samsung Series 7 Chronos (NP770Z7E-S01PL) /Darmowa dostawa wpisz kod 6E9E1X / Warszawa, Poznań, Katowice, Ł&oacute;dź, Gdynia, Krak&oacute;w - ODBI&Oacute;R OSOBISTY GRATIS!', wspolczynnik_dostawy: '0.3', cena: '4798', productId: '51934e952da47c2f07000033'})\"\n * href=\n * \"http://www.nokaut.pl/goClick/?click=aHR0cDovL3d3dy5hZ2l0by5wbC9sYXB0b3Atc2Ftc3VuZy1zZXJpZXMtNy1jaHJvbm9zLW5wNzcwejdlLXMwMXBsLTIyNTEtODU4OTk2Lmh0bWw*dXRtX21lZGl1bT1GZWVkJmFtcDt1dG1fc291cmNlPW5va2F1dC5wbCZhbXA7dXRtX2NhbXBhaWduPXdzenlzdGtpZSZhbXA7dXRtX2NvbnRlbnQ9ODU4OTk2\"\n * data-click-type=\"cpc\" data-place=\"descriptionsFromShops\" class=\"GoToShop\" target=\"_blank\">\n * Agito.pl</a>: Opis Samsung Series 7 Chronos (NP770Z7E-S01PL) /Darmowa dostawa wpisz kod 6E9E1X /\n * Warszawa, Poznań, Katowice, Ł&oacute;dź, Gdynia, Krak&oacute;w - ODBI&Oacute;R OSOBISTY GRATIS!</h4>\n * </header> <p> Elegancki i stylowy laptop o doskonałych parametrach. Został stworzony z myślą o\n * multimedialnym zastosowaniu. Charakteryzuje się ekranem o przekątnej 17.3&quot; o rozdzielczości\n * 1920x1080. Za płynność i stabilność działań odpowiada procesor Intel Core i7 trzeciej generacji oraz\n * pamięć operacyjna RAM 8GB.Duży dysk twardy jest idealnym rozwiązaniem do magazynowania dużych\n * plik&oacute;w, takich jak zdjęcia, filmy, dokumenty.</p> <p>Do dyspozycji pozostaje także wygodna,\n * podświetlana klawiatura wyspowa z blokiem numerycznym, kamera internetowa 720p i niezbędne złącza,\n * dzięki kt&oacute;rym można podłączyć dodatkowe akcesoria. Zainstalowany system operacyjny to Windows\n * 8.</p> </article>\n */\n StringBuilder sb = new StringBuilder();\n for ( Element desc : descriptions )\n {\n sb.append( desc );\n sb.append( \"\\n\\n\" );\n }\n p.setDescription( sb.toString() );\n \n \n if ( prod.length() < 2 )\n {\n // mniejsze od 2 jakby to byly jakies smieci\n // zazwyczaj bd to pusty string\n // nie pobieram tego\n return null;\n }\n tryAddProducerAndPropagateToParent( prod, c );\n \n \n if ( categoryChanged )\n {\n abstractCategoryRepo.save( c );\n }\n \n \n \n \n return p;\n }\n else\n {\n // strona nie istnieje\n return null;\n }\n \n \n\n }\n catch ( IOException e )\n {\n if ( logger.isDebugEnabled() )\n {\n e.printStackTrace();\n }\n return null;\n }\n }", "title": "" } ]
bccb587290c0907dd2e50059be250a9e
Creates the Minecraft session.
[ { "docid": "de9b84721196b844425076f2e268562a", "score": "0.0", "text": "public OCSession(IoSession session) {\n\t\tthis.session = session;\n\t}", "title": "" } ]
[ { "docid": "838fbdbf2a373635deedd1cf826c0c7f", "score": "0.6503337", "text": "public void startSession(){\n sessionID = client.startSession();\n \n //Get system temporary files path\n String temporaryPath = System.getProperty(\"java.io.tmpdir\").replaceAll(\"\\\\\\\\\",\"/\");\n \n //If temporary file path does not end with /, add it\n if(!temporaryPath.endsWith(\"/\"))\n temporaryPath = temporaryPath + \"/\";\n \n //Create session directory\n sessionDirectory = new File(temporaryPath+sessionID);\n sessionDirectory.mkdir();\n \n }", "title": "" }, { "docid": "e2ec8cf7735286f16ebbb9bc7e87cfc9", "score": "0.6146099", "text": "@Override\n public CreateSessionResponse createSession()\n throws EwalletException {\n return null;\n }", "title": "" }, { "docid": "a340235c6680e3d80033c4a653513ef6", "score": "0.61182374", "text": "IDAOSession createNewSession();", "title": "" }, { "docid": "4c581f90ebd98396d43dd0a7c6a06a6c", "score": "0.5955773", "text": "public void makeSessionFile() {\n sessionData = new File(wnwData, \"session.dat\");\n try {\n sessionData.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n sessionData.setWritable(true);\n }", "title": "" }, { "docid": "24e24830f9fa8c1f05eb99f2f83e6abc", "score": "0.58244807", "text": "DefaultSession createSession(String id);", "title": "" }, { "docid": "a50c651d06aa111b8dbec1fceec4fd15", "score": "0.5809288", "text": "public abstract Thread startSession();", "title": "" }, { "docid": "9379084470a03bcef43689319453a0ea", "score": "0.5803758", "text": "public Session createSession() {\n\t\tSession session = new Session();\n\t\tput(session.getId(), session);\n\t\treturn session;\n\t}", "title": "" }, { "docid": "ad8a02af689008a18b15e49f840b665f", "score": "0.5789845", "text": "protected Session createSession (ServerChannel channel) {\n return new Session (channel);\n }", "title": "" }, { "docid": "4c8f94b4ddf4d28e8076a2bfc085ab2c", "score": "0.5738164", "text": "public Session() {\n\t\tLogger.log(\"Creating application session\");\n\t}", "title": "" }, { "docid": "d098a776d485d4ff068cbd9cc1b84f1b", "score": "0.5714178", "text": "private void startNewSession() {\n final FragmentTransaction ft = getFragmentManager().beginTransaction();\n Fragment sessionFragment = null;\n if (mCurrentExperiment.hasSAM()) {\n sessionFragment = new SAMSessionFragment();\n }\n // if there's not hte sam, we start directly with the NASA\n else if (mCurrentExperiment.hasNASATLX()) {\n sessionFragment = new NASATLXSessionFragment();\n }\n ft.replace(R.id.main_content_frame, sessionFragment);\n ft.commit();\n }", "title": "" }, { "docid": "580812232725fb2e190f79a32ec1532d", "score": "0.5706413", "text": "public void createSession(int uid);", "title": "" }, { "docid": "b644c0fc570ac8babc467c33c89a54e8", "score": "0.56892514", "text": "@Override\n\tpublic Session createSession(SessionBasicInfo sessionBasicInfo) {\n\t\tSession session = sessionStore.createSession( sessionBasicInfo);\n\t\tif(session == null)\n\t\t\treturn null;\n\t\tsession._setSessionStore(this);\n\t\tsession.putNewStatus();\n\t\t\n\t\treturn session;\n\t}", "title": "" }, { "docid": "503200f9156c8d9822b43bdf928f5b9f", "score": "0.56815505", "text": "public Session create() {\n // Attempt to generate a random session 5 times then fail\n final int MAX_ATTEMPTS = 5; \n \n // Loop until we have outdone our max attempts\n for(int x = 0; x < MAX_ATTEMPTS; x++) {\n String sessionKey = randomString(SESSION_KEY_SIZE); // SESSION_KEY_SIZE characters\n\n // The session key exists\n if (exists(sessionKey))\n continue;\n\n // Create the new session\n Session session = new Session(sessionKey);\n sessions.put(sessionKey, session, POLICY, EXPIRATION_TIME, EXPIRATION_UNIT); \n return session;\n }\n\n // Failed to generate new session key\n return null;\n }", "title": "" }, { "docid": "4ceb6ed2acc86ee1dbe0388237484ed8", "score": "0.5646396", "text": "public Session createSession(String sessionId);", "title": "" }, { "docid": "c07674691ff32cd8449f917d8ecb2eac", "score": "0.5641278", "text": "private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }", "title": "" }, { "docid": "52836b6af8dceaf5b38b6765bb455df2", "score": "0.5617355", "text": "public void startSession() {\n\t\tSystem.out.println(\"Creating Board\");\n\t\tthis.board = new Board(schoolClass.getTeams(), schoolClass.getClassDeck());\n\t\tSystem.out.println(\"Setting Team Positions.\");\n\t\tinitializeTeamPositions();\n\t\tSystem.out.println(\"Clearing Up To Date Status.\");\n\t\tupToDateIds = new ArrayList<Integer>();\n\t\tteamChallengeOrder = new ArrayList<Integer>();\n\t\tchallengeChains = new HashMap<Integer, Chain>();\n\t\tchallengeSubmissionStatus = new HashMap<Integer, Boolean>();\n\t\tthis.setSessionState(SessionState.PlayerTurn);\n\t}", "title": "" }, { "docid": "ffbda5c0d6a738a02a7e1686ec28c870", "score": "0.5609435", "text": "public Session createSession() {\n\t\treturn this.session;\n\t}", "title": "" }, { "docid": "1f25fd7c7f2cb12ccc15770905053926", "score": "0.56029344", "text": "protected MavenSession createSession( MavenExecutionRequest request, MavenProject project )\n {\n return new MavenSession( project, container, pluginManager, request.getSettings(),\n request.getLocalRepository(), request.getEventDispatcher(), request.getLog(),\n request.getGoals() );\n }", "title": "" }, { "docid": "2b3b56e4827c8301b4c4efa1e8a2f278", "score": "0.5590911", "text": "public void createGame()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyState()\n clientController.startMultiPlayerGame(\"GameLobby\");\n }", "title": "" }, { "docid": "69d7d63098ab6e66f299ac90a4a2e352", "score": "0.5578186", "text": "public void createSession(HttpServletRequest request) {\n\n session = request.getSession();\n writeSessionMessage(session);\n }", "title": "" }, { "docid": "0300fcb89d99231cce96fdb8af012db8", "score": "0.5572201", "text": "protected abstract SESSION newSessionObject() throws EX;", "title": "" }, { "docid": "4c1c8aebfa8cfb0a0f7063a50c546a07", "score": "0.55464256", "text": "InternalSession createSession(String sessionId);", "title": "" }, { "docid": "a40542e3ad60972a74de5160cb7ce385", "score": "0.55378795", "text": "@Override\n public void create() {\n setScreen(new ServerScreen(\n new RemoteGame(),\n new SocketIoGameServer(HOST, PORT)\n ));\n }", "title": "" }, { "docid": "95ec83a2096cfd42407a890310d5361d", "score": "0.552775", "text": "protected Map<String, String> startSession() throws IOException {\n return startSession(null);\n }", "title": "" }, { "docid": "d27682524b211e7f4415d9a2755d95ff", "score": "0.55165416", "text": "public XmlRpcSession createXmlRpcSession(String url);", "title": "" }, { "docid": "a44ce938ed337c7a13643135c17d00be", "score": "0.5453986", "text": "synchronized public Session newSysSession() {\n\n Session session = new Session(sysSession.database,\n sysSession.getUser(), false, false,\n sessionIdCount, null, 0);\n\n session.currentSchema =\n sysSession.database.schemaManager.getDefaultSchemaHsqlName();\n\n sessionMap.put(sessionIdCount, session);\n\n sessionIdCount++;\n\n return session;\n }", "title": "" }, { "docid": "faa18ea6642607ead9647cbedd78df9c", "score": "0.54200506", "text": "static void startSession() {\n /*if(ZeTarget.isDebuggingOn()){\n Log.d(TAG,\"startSession() called\");\n }*/\n if (!isContextAndApiKeySet(\"startSession()\")) {\n return;\n }\n final long now = System.currentTimeMillis();\n\n runOnLogWorker(new Runnable() {\n @Override\n public void run() {\n logWorker.removeCallbacks(endSessionRunnable);\n long previousEndSessionId = getEndSessionId();\n long lastEndSessionTime = getEndSessionTime();\n if (previousEndSessionId != -1\n && now - lastEndSessionTime < Constants.Z_MIN_TIME_BETWEEN_SESSIONS_MILLIS) {\n DbHelper dbHelper = DbHelper.getDatabaseHelper(context);\n dbHelper.removeEvent(previousEndSessionId);\n }\n //startSession() can be called in every activity by developer, hence upload events and sync datastore\n // only if it is a new session\n //syncToServerIfNeeded(now);\n startNewSessionIfNeeded(now);\n\n openSession();\n\n // Update last event time\n setLastEventTime(now);\n //syncDataStore();\n //uploadEvents();\n\n }\n });\n }", "title": "" }, { "docid": "bf9e2209af05cebba6ac15be40433a2d", "score": "0.53951734", "text": "private DefaultSession createDefaultSession(CommandHandler commandHandler) {\n stubSocket = createTestSocket(COMMAND.getName());\n commandHandlerMap.put(commandToRegister, commandHandler);\n initializeConnectCommandHandler();\n return new DefaultSession(stubSocket, commandHandlerMap);\n }", "title": "" }, { "docid": "61f03b4bac25e9f236ab3a20e309e065", "score": "0.533032", "text": "private static void startNewSession(final long timestamp) {\n openSession();\n\n sessionId = timestamp;\n //Log.i(\"sessionId\",\"updated at startNewSession()\");\n SharedPreferences preferences = CommonUtils.getSharedPreferences(context);\n preferences.edit().putLong(Constants.Z_PREFKEY_LAST_END_SESSION_ID, sessionId).apply();\n\n logEvent(START_SESSION_EVENT, null, null, timestamp, false);\n logWorker.post(new Runnable() {\n @Override\n public void run() {\n sendEventToServer(START_SESSION_EVENT, timestamp, Constants.Z_START_SESSION_EVENT_LOG_URL, true);\n }\n });\n\n }", "title": "" }, { "docid": "91b839fe71c0cf92b5040105efd2cf47", "score": "0.53176683", "text": "@Override\r\n\t\tpublic Session newSession(Request request, Response response) {\n\t\t\tLoginSession session = new LoginSession(request);\r\n\t\t\tsession.authenticate(\"scott\", \"tiger\");\r\n\t\t\t\r\n\t\t\treturn session;\r\n\t\t}", "title": "" }, { "docid": "2a77866129e70b479cfe7e99d903ca7e", "score": "0.53142196", "text": "DatastoreSession createSession();", "title": "" }, { "docid": "836aa4a5c791cf538ec08b69df66d5fe", "score": "0.53040814", "text": "public static void createNewSession(Point2D dimensionsCuisine){\n Session s = new Session(dimensionsCuisine);\n loadSession(s);\n s.panneaux.setCuisine();\n Platform.runLater(()->{s.createGestionnaireMeubles();});\n }", "title": "" }, { "docid": "c720d87a7af5eee68458cf0659544634", "score": "0.52955127", "text": "public void startSession() throws UnsupportedEncodingException\r\n {\n clientReader.setStopped(false);\r\n shellOutputWriter.setStopped(false);\r\n // shellErrorWriter.setStopped(false);\r\n shellExitListener.setStopped(false);\r\n tunnelsHandler.getConnection().setControlInputStream(connection.getTunnelControlInputStream());\r\n tunnelsHandler.getConnection().setControlOutputStream(connection.getTunnelControlOutputStream());\r\n tunnelsHandler.getConnection().setDataInputStream(connection.getMultiplexedConnectionInputStream());\r\n tunnelsHandler.getConnection().setDataOutputStream(connection.getMultiplexedConnectionOutputStream());\r\n // socksTunnelsHandler.getConnection().setControlOutputStream(connection.getSocksControlOutputStream());\r\n // socksTunnelsHandler.getConnection().setControlInputStream(connection.getSocksControlInputStream());\r\n // socksTunnelsHandler.getConnection().setDataInputStream(connection.getMultiplexedConnectionInputStream());\r\n // socksTunnelsHandler.getConnection().setDataOutputStream(connection.getMultiplexedConnectionOutputStream());\r\n pingService.setInputStream(connection.getPingInputStream());\r\n pingService.setOutputStream(connection.getPingOutputStream());\r\n // tunnelHandler.getConnection().start();\r\n }", "title": "" }, { "docid": "259e762ae7f17966027b311efb927ecf", "score": "0.5279703", "text": "SessionManagerImpl() {\n }", "title": "" }, { "docid": "af1a48a1cc5a1063aead03fffd19338a", "score": "0.5270312", "text": "public UserSession login () {\n\t\tRandom r = new Random();\n\t\tthis.session_id = Utility.md5(this.avatar + this.alias + System.currentTimeMillis() + r.nextInt());\n\t\tthis.karmaKubes = KarmaKube.find(\"byRecipient_idAndOpenedAndRejected\", this.id, false, false).fetch(1000);\n\t\tthis.lastLogin = Utility.time();\n\t\tthis.populateSuperPowerDetails();\n\t\tthis.excludedUsers = UserExclusion.excludedList(this.id);\n\t\treturn new UserSession(this, this.session_id);\n\t}", "title": "" }, { "docid": "2eee6f3e32fd428927ff4589f5111065", "score": "0.52696145", "text": "private void openSession() {\n \t\tmSession = new ApplicationSession(mCastContext, mSelectedDevice);\n \n \t\tint flags = 0;\n \n \t\t// Comment out the below line if you are not writing your own\n \t\t// Notification Screen.\n \t\tflags |= ApplicationSession.FLAG_DISABLE_NOTIFICATION;\n \n \t\t// Comment out the below line if you are not writing your own Lock\n \t\t// Screen.\n \t\tflags |= ApplicationSession.FLAG_DISABLE_LOCK_SCREEN_REMOTE_CONTROL;\n \t\tmSession.setApplicationOptions(flags);\n \n \t\tmSession.setListener(new com.google.cast.ApplicationSession.Listener() {\n \n \t\t\t@Override\n \t\t\tpublic void onSessionStarted(ApplicationMetadata appMetadata) {\n \t\t\t\tApplicationChannel channel = mSession.getChannel();\n \t\t\t\tif (channel == null) {\n \t\t\t\t\treturn;\n \t\t\t\t}\n \n \t\t\t\ttry {\n \t\t\t\t\tif (simpleWebServer == null) {\n \t\t\t\t\t\tsimpleWebServer = new SimpleWebServer(null, 1993,\n \t\t\t\t\t\t\t\tAndroidFileCache\n \t\t\t\t\t\t\t\t\t\t.getCacheDirectory(MainActivity.this),\n \t\t\t\t\t\t\t\ttrue);\n \t\t\t\t\t\tsimpleWebServer.start();\n \t\t\t\t\t}\n \n \t\t\t\t\tmMessageStream = new MediaProtocolMessageStream();\n \t\t\t\t\tchannel.attachMessageStream(mMessageStream);\n \n \t\t\t\t\tloadMedia(currentPage);\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\te.printStackTrace();\n \n \t\t\t\t\tshowCrouton(R.string.chromecast_failed, null,\n \t\t\t\t\t\t\tAppMsg.STYLE_ALERT);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void onSessionStartFailed(SessionError error) {\n \t\t\t\tshowCrouton(R.string.chromecast_failed, null,\n \t\t\t\t\t\tAppMsg.STYLE_ALERT);\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void onSessionEnded(SessionError error) {\n \t\t\t}\n \t\t});\n \n \t\ttry {\n \t\t\tmSession.startSession(\"c529f89e-2377-48fb-b949-b753d9094119\");\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "title": "" }, { "docid": "2626f007f8c8b7c7fe5c00ecfd3b86f5", "score": "0.526614", "text": "@Override\r\n\tpublic void startup() {\n\t\t\r\n\t\tString wechatID = \"gh_f49bb9a333b3\";\r\n\t\tString Token = \"spotlight-wechat\";\r\n\t\t\r\n\t\tNoIOClient client = new NoIOClient(\"mg.protel.com.hk\",5010);\r\n\t\tclient.addCRouter(wechatID, Token,null,null);\r\n\t\t\r\n\t\tclient.startup();\r\n\r\n\t}", "title": "" }, { "docid": "66e10868da8e21e4229f6c2c05426dfd", "score": "0.5257188", "text": "@Override\n\tpublic void createSession(String customer) {\n\t\t\n\t}", "title": "" }, { "docid": "442b8c3144648a1b4a0d6df022eeb59d", "score": "0.52433497", "text": "@Override\n\tpublic void create() {\n\t\tGdx.app.setLogLevel(Application.LOG_DEBUG);\n\t\t\n\t\t//Load assets\n\t\tAssets.instance.init(new AssetManager());\n\t\t\n\t\t//initialize controller and renderer\n\t\tworldController = new WorldController();\n\t\tworldRenderer= new WorldRenderer(worldController);\n\t\t\n\t\t//The world is not paused on start\n\t\tpaused = false;\n\t}", "title": "" }, { "docid": "c55357a96574778d343c7997fe25a0cf", "score": "0.52308947", "text": "public void createSession(final String targetName) throws Exception;", "title": "" }, { "docid": "9e8db26a28dfbedbed9b4c11ed38d8e2", "score": "0.52199364", "text": "public void startSessionClick(View view)\n {\n Random rand = new Random();\n int id = rand.nextInt(10000);\n\n //what kind of session is this? Check the variable and create an object\n FeedbackSession mySession = new FeedbackSession();\n\n //set the ID\n mySession.setSessionId(id);\n\n //set the session as created now\n mySession.setDateCreated();\n\n //set the session type that the user chose\n mySession.setSessionType(sessionType);\n\n //new session filename\n String filename = Integer.toString(id);\n File file = new File(getFilesDir() + \"/\" + filename);\n\n //create new session object file\n FileOutputStream outputStream;\n\n try\n {\n //write out the contents of the session object to the file\n //so it can be stored and uploaded\n outputStream = openFileOutput(file.getName(), Context.MODE_PRIVATE);\n outputStream.write(mySession.toString().getBytes());\n outputStream.close();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n\n //start a new AWS Session\n AWSHelper.startAWSSession(getApplicationContext());\n\n //upload\n AWSHelper.uploadFile(file, filename, getApplicationContext());\n\n //notify user session is ready\n Toast.makeText(this, \"Your session is ready!\", Toast.LENGTH_LONG).show();\n\n\n //all done? go back to previous activity\n finish();\n\n }", "title": "" }, { "docid": "9bbeddbb79c8172bc48324914611feca", "score": "0.5211975", "text": "public static SessionState newSession(String msg) {\n int newSessionNo = 0;\n synchronized(globalSessionNo) {\n newSessionNo = globalSessionNo++;\n }\n return new SessionState(newSessionNo, NetUtils.getIP(), 1, msg);\n }", "title": "" }, { "docid": "afc3e7dc74aec4013253b987539781de", "score": "0.51667917", "text": "public void testCreateSession() throws Exception {\n assertNotNull(mSession.getSessionToken());\n assertFalse(\"New session should not be active\", mSession.isActive());\n\n // Verify by getting the controller and checking all its fields\n MediaController controller = mSession.getController();\n assertNotNull(controller);\n verifyNewSession(controller, TEST_SESSION_TAG);\n }", "title": "" }, { "docid": "7956e2c4e6d0880dae11e7c5a01fd869", "score": "0.51456606", "text": "static void beginNewSession() {\n SESSION_ID = null;\n Prefs.INSTANCE.setEventPlatformSessionId(null);\n\n // A session refresh implies a pageview refresh, so clear runtime value of PAGEVIEW_ID.\n PAGEVIEW_ID = null;\n }", "title": "" }, { "docid": "c576c0c9e144c8326834129948e61119", "score": "0.51212853", "text": "@Test\r\n public void testInitSession() {\r\n System.out.println(\"initSession\");\r\n assertNotNull(sm);\r\n \r\n boolean result = sm.initSession(\"test1\", programsHome, programsHome + \"files1/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test2\", programsHome, programsHome + \"files2/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test3\", programsHome, programsHome + \"files3/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n assertTrue(result);\r\n \r\n sm.removeSession(\"test4\");\r\n }", "title": "" }, { "docid": "8b5dfc0a0195f9c9a7580361416ad10b", "score": "0.51145184", "text": "public void launchNewSession(){\r\n framework.launchNewMAV(getArrayMappedToData(), this.experiment, \"Multiple Experiment Viewer - Cluster Viewer\", Cluster.GENE_CLUSTER);\r\n }", "title": "" }, { "docid": "6101f69855dfae64dd90a13ebbf3afa3", "score": "0.5101882", "text": "com.weizhu.proto.WeizhuProtos.Session getSession();", "title": "" }, { "docid": "9f281a9b91dec94c1b3f307d0841ce29", "score": "0.5095455", "text": "public MockPIFrame startSession() {\n // 1. driver requests new session\n DriverRequest driverRequest = sendCommand(\"getNewBrowserSession\", \"*dummy\", \"http://x\");\n // 2. server generates new session, awaits browser launch\n sessionId = waitForSessionId(driverRequest);\n LOGGER.debug(\"browser starting session \" + sessionId);\n // 3. browser starts, requests work\n MockPIFrame frame = new MockPIFrame(DRIVER_URL, sessionId, \"frame1\");\n LOGGER.debug(\"browser sending start message\");\n frame.seleniumStart();\n // 4. server requests identification, asks for \"getTitle\"\n LOGGER.debug(\"browser expecting getTitle command, blocking..\");\n frame.expectCommand(\"getTitle\", \"\", \"\");\n // 5. browser replies \"selenium remote runner\" to getTitle\n frame.sendResult(\"OK,selenium remote runner\");\n // 6. server requests setContext\n frame.expectCommand(\"setContext\", sessionId, \"\");\n // 7. browser replies \"OK\" to setContext\n frame.sendResult(\"OK\");\n // 8. server replies \"OK,123\" to driver\n driverRequest.expectResult(\"OK,\" + sessionId);\n return frame;\n }", "title": "" }, { "docid": "93a827618322ee44f33d1cd2cb37c49a", "score": "0.50932306", "text": "@Override\r\n public void start(OpProjectSession session) {\n OpBroker broker = session.newBroker();\r\n try {\r\n if (session.administrator(broker) == null) {\r\n OpUserService.createAdministrator(broker);\r\n }\r\n if (session.everyone(broker) == null) {\r\n OpUserService.createEveryone(broker);\r\n }\r\n\r\n //register system objects with Backup manager\r\n OpBackupManager.addSystemObjectIDQuery(OpUser.ADMINISTRATOR_NAME, OpUser.ADMINISTRATOR_ID_QUERY);\r\n OpBackupManager.addSystemObjectIDQuery(OpGroup.EVERYONE_NAME, OpGroup.EVERYONE_ID_QUERY);\r\n }\r\n finally {\r\n broker.closeAndEvict();\r\n }\r\n }", "title": "" }, { "docid": "90aab785c3bae8598ec7e8ba80b62800", "score": "0.50836784", "text": "Session createSession(Long courseId, Long studentId, Session session);", "title": "" }, { "docid": "54e504da42ddf27981f836dd372cfcac", "score": "0.5073964", "text": "@Override\n public void onCreate(SessionID sessionID) {\n LOG.info(\"Server: onCreate \" + sessionID.toString());\n }", "title": "" }, { "docid": "ab7a049150b92e0fcc4788b1ce5a1a26", "score": "0.50538194", "text": "public void onCreate() {\n Log.i(TAG, \"MinaClient create\");\r\n\r\n Thread thread = new Thread(this);\r\n thread.start();\r\n\r\n CommandHandle.getInstance().setContext(getApplicationContext());\r\n }", "title": "" }, { "docid": "d03ca154652ded45bff6b3dde302ba83", "score": "0.50462484", "text": "public static DefaultSessionIdentityMaker newInstance() { return new DefaultSessionIdentityMaker(); }", "title": "" }, { "docid": "31e8d26f23c41d9ad7ce9dd6d1606542", "score": "0.5045327", "text": "private void initSession(HttpServletRequest request, HttpServletResponse response) throws IOException {\n // create new seassion for user\n HttpSession session = request.getSession();\n if (session != null) {\n _sessionId = session.getId();\n }\n\n response.getWriter().write(_sessionId);\n }", "title": "" }, { "docid": "912b0586ed41883844fbf4c45fa35398", "score": "0.50401366", "text": "public void create() {\n\t\trandomUtil = new RandomUtil();\n\t\t// create the camera using the passed in viewport values\n\t\tcamera = new OrthographicCamera(viewPortWidth, viewPortHeight);\n\t\tbatch.setProjectionMatrix(camera.combined);\n\t\tdebugRender = new Box2DDebugRenderer(true, false, false, false, false, true);\n\t\ttestWorld = new TestWorld(assetManager.blockManager(), new Vector2(0, 0f));\n\t\ttestWorld.genWorld(debugUtil);\n\t\ttestWorld.setCamera(getCamera());\n\t\tplayer.createBody(testWorld.getWorld(), BodyType.DynamicBody);\n\t\ttestWorld.getPlayers().add(player);\n\t\tworldParser = new WorldParser(testWorld, \"Test World\");\n\t\tworldParser = new WorldParser(testWorld, \"Test Write\");\n\t\tworldParser.parseWorld();\n\t\twriter = new WorldWriter(\"Test Write\", testWorld);\n\t}", "title": "" }, { "docid": "ac5ae52f197369cb622f258a8224cd6d", "score": "0.5034848", "text": "public void createTurn() {\n Turn turn = new Turn(this.getOnlinePlayers());\n this.setCurrentTurn(turn);\n }", "title": "" }, { "docid": "26698dd522671b178ba14cb688b1b672", "score": "0.5026", "text": "private Session createMailingSession() {\n final String username = \"EMAIL\";\r\n final String password = \"PASSWORD\";\r\n Properties prop = new Properties();\r\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n prop.put(\"mail.smtp.port\", \"587\");\r\n prop.put(\"mail.smtp.auth\", \"true\");\r\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\r\n return Session.getInstance(prop,\r\n new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(username, password);\r\n }\r\n });\r\n }", "title": "" }, { "docid": "08cfd6b8499c983cc63f3fc48f396ada", "score": "0.5023257", "text": "private HTTPSession ()\n\t{\n\t\tthis (null, false, null);\n\t}", "title": "" }, { "docid": "939c73a3fc5b460d836e74d4da2b3420", "score": "0.50218683", "text": "public static List<CourseSession> createSessions() {\n List<CourseSession> list = new ArrayList<CourseSession>();\n list.add(createSession(\"1\"));\n list.add(createSession(\"2\"));\n return list;\n }", "title": "" }, { "docid": "d6f7dd0bcb93081839cec34a3e82fe6d", "score": "0.50210553", "text": "public Server() {\n\t\tsession = new WelcomeSession();\n\t\tmPort = DEFAULT_PORT;\n\t\texecutor = Executors.newCachedThreadPool();\n\t}", "title": "" }, { "docid": "3ce78c97fd6bd76cbfd8cb79a03d0273", "score": "0.50073195", "text": "public NewSessionGui() {\n initComponents();\n client = new HttpBraimClient();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "1651fe2f42640efb4e8121fe466e5ad9", "score": "0.4979984", "text": "public void createLoginSession(String name, String email, String phone){\n editor.putBoolean(IS_LOGIN, true);\n\n // Storing data in pref\n editor.putString(KEY_NAME, name);\n editor.putString(KEY_EMAIL, email);\n editor.putString(KEY_PHONE, phone);\n\n // commit changes\n editor.commit();\n }", "title": "" }, { "docid": "2b025c2a070b7167ff938d6d2ef7fe8c", "score": "0.4966076", "text": "@Override\n\t\t\tpublic void handleNewSession() throws Exception {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "4991a98b3733cf75dc2804feaf287b75", "score": "0.49659473", "text": "public Session(boolean isgroupchat){\n\t\tthis.isGroupChat = isgroupchat;\n\t\tthis.receivedText=\"Chat log \\n\";\n\t\tthis.sessionID = getNextSessionID();\n\t\tthis.userList = new ArrayList<User>();\n\t\tSystem.out.println(\"SESSION: Session created. Session ID: \"+this.sessionID);\n\t}", "title": "" }, { "docid": "2568963fe1945fe484d3c46a1c23df68", "score": "0.49636644", "text": "public Session(String username, String pwd, String hostname){\n this.username = username;\n this.pwd = pwd;\n this.hostname = hostname;\n }", "title": "" }, { "docid": "f70a967bcf4e868668e1c3b6056447a4", "score": "0.49607298", "text": "private void doLogin() {\n\t\tSharedPreferences.Editor prefEditor = mSP.edit();\n\t\tSession.FirstLogin = true;\n\t\tmUserPin = et_password.getText().toString();\n\t\t// Time to update the session\n\t\tif (inTruckMode) {\n\t\t\tSession.setVehicle(vehicle);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, null);\n\n\t\t\tSession.setType(SessionType.VEHICLE_SESSION);\n\t\t} else {\n\t\t\tSession.setSite(site);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, null);\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, null);\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, site.getId());\n\n\t\t\tSession.setType(SessionType.SITE_SESSION);\n\t\t}\n\n\t\tstartupSync();\n\t\tstartSync();\n\n\t\tprefEditor.putString(Config.USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.LAST_USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.SYNC_SERVICE_KEY, \"yes\");\n\t\tprefEditor.commit();\n\n\t\t// if no VIMEI associated with truck, starting GPSService on SB device\n\t\tif (!vehiclesDao.xergoEsn(getApplicationContext())) {\n\t\t\tvimei = vehiclesDao.getVimei(this);\n\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setAction(GPSService.UPDATE_IMEI_EVENT);\n\t\t\tintent.putExtra(\"Value\", vimei);\n\t\t\tsendBroadcast(intent);\n\n\t\t\tintent = new Intent();\n\t\t\tintent.setAction(GPSService.SEND_IGNITION_ON_EVENT);\n\t\t\tsendBroadcast(intent);\n\t\t}\n\n\t\tstartSession(mUserPin);\n\t\tIntent intent = new Intent(this, MapActivity.class);\n\t\tthis.startActivity(intent);\n\t\tfinish();\n\t}", "title": "" }, { "docid": "047d4d5226b12cb1c9c7c9b98ed75385", "score": "0.49580353", "text": "public SessionCookie createNewSession() {\n\t\tSession session = createSession();\n\t\treturn session.getCookie();\n\t}", "title": "" }, { "docid": "c1d4ff1f94544ca426bd4d97c5147331", "score": "0.495698", "text": "public void login(){\n JSONObject clientInfo = new JSONObject();\n try{\n clientInfo.put(\"username\", mUsername);\n clientInfo.put(\"password\", mPassword);\n clientInfo.put(\"deviceID\", getDeviceID());\n clientInfo.put(\"ipAddress\", getClientIP());\n mSocket.emit(\"login\", clientInfo);\n }catch(JSONException ex){\n throw new RuntimeException(ex);\n }\n }", "title": "" }, { "docid": "3a845c74f344b0218c6eeb3466eebe42", "score": "0.49401486", "text": "public Server()\n {\n clientSessions = new ArrayList();\n }", "title": "" }, { "docid": "3080933294ca0b4cc65575304a164a18", "score": "0.491433", "text": "private void newGame() {\n try {\n toServer.writeInt(READY);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "823380288a29f2e7d009962761ff0f12", "score": "0.49132976", "text": "@Test\r\n public void testAddSimulatorToSession() {\r\n System.out.println(\"addSimulatorToSession\");\r\n assertNotNull(sm);\r\n sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n \r\n boolean result = sm.addSimulatorToSession(\"test4\", Simulators.NUATMOS, \"v1\", true);\r\n assertTrue(result);\r\n \r\n result = sm.addSimulatorToSession(\"test5\", Simulators.NUATMOS, \"v1\", true);\r\n assertFalse(result);\r\n \r\n sm.removeSession(\"test4\");\r\n \r\n }", "title": "" }, { "docid": "48360e0a4975b3952038d94fb47c66a1", "score": "0.49048367", "text": "public SparkSession createSparkSession() {\n logger.info(\"------ Create new SparkSession {} -------\", getProperty(\"master\"));\n\n if (null != SnappyContext.globalSparkContext()) {\n SparkSession.Builder sessionBuilder = SparkSession.builder().sparkContext(SnappyContext.globalSparkContext());\n SparkSession session = sessionBuilder.getOrCreate();\n return session;\n } else {\n //This is needed is user is using Snappydata interpreter without installing cluster\n String execUri = System.getenv(\"SPARK_EXECUTOR_URI\");\n conf.setAppName(getProperty(\"spark.app.name\"));\n\n conf.set(\"spark.repl.class.outputDir\", outputDir.getAbsolutePath());\n\n if (execUri != null) {\n conf.set(\"spark.executor.uri\", execUri);\n }\n\n if (System.getenv(\"SPARK_HOME\") != null) {\n conf.setSparkHome(System.getenv(\"SPARK_HOME\"));\n }\n\n conf.set(\"spark.scheduler.mode\", \"FAIR\");\n conf.setMaster(getProperty(\"master\"));\n\n Properties interpreterProperties = getProperties();\n\n for (Object k : interpreterProperties.keySet()) {\n String key = (String) k;\n String val = toString(interpreterProperties.get(key));\n if (!key.startsWith(\"spark.\") || !val.trim().isEmpty()) {\n logger.debug(String.format(\"SparkConf: key = [%s], value = [%s]\", key, val));\n conf.set(key, val);\n }\n }\n\n //Class SparkSession = ZeppelinIntpUtil.findClass(\"org.apache.spark.sql.SparkSession\");\n SparkSession.Builder builder = SparkSession.builder();\n builder.config(conf);\n\n sparkSession = builder.getOrCreate();\n\n return sparkSession;\n\n }\n\n }", "title": "" }, { "docid": "f9247d75f7211990d795d7b86a34eb29", "score": "0.48992515", "text": "public UserSession initUserSession() {\n return new UserSession(RAND_MAX, RAND_MIN, rand(RAND_MIN, RAND_MAX));\n }", "title": "" }, { "docid": "ffdfa65891560ed8d523884be2bb35e5", "score": "0.48986697", "text": "public static Session openSession() {\n \treturn sessionFactory.openSession();\n }", "title": "" }, { "docid": "ea9d303602cde27769abfe0a3fefa7fc", "score": "0.4892458", "text": "private void login() {\n setCredentials();\n setSysProperties();\n\n Properties sysProperties = System.getProperties();\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n this.session = Session.getInstance(sysProperties,\n new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n }", "title": "" }, { "docid": "768826f6cd35bdfaf589f153c52b20c0", "score": "0.48854402", "text": "protected abstract void createLogin(Socket socket);", "title": "" }, { "docid": "15d4a5e827c18dd70d701a40be099475", "score": "0.48828802", "text": "public HelloControllerSession() {\n }", "title": "" }, { "docid": "e68537264e22beb0070621aeb7f66bd9", "score": "0.48756889", "text": "private Session session(Properties props) {\n return Session.getInstance(props,\n new Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"happinessbarometer@gmail.com\", \"happinessbarometer2014\");\n }\n }\n );\n }", "title": "" }, { "docid": "cb50347ef0da36ca4194124c6ff234af", "score": "0.4872465", "text": "public void addNewSession() {\n //Create an explicit intent for RecordingIntentService\n Intent saveSessionIntent = new Intent(this, RecordingIntentService.class);\n //Set the action of the intent to ACTION_SAVE_SESSION\n saveSessionIntent.setAction(RecordLapTasks.ACTION_SAVE_SESSION);\n\n //add the current session object info to the intent so it can be retrieved\n saveSessionIntent.putExtra(\"session_driver\", mySession.getDriver());\n saveSessionIntent.putExtra(\"session_track\", mySession.getTrackName());\n saveSessionIntent.putExtra(\"session_bestLap\", mySession.getBestLapString());\n saveSessionIntent.putExtra(\"session_laptimes\", mySession.getLaptimesAsString());\n saveSessionIntent.putExtra(\"session_numLaps\", mySession.getNumberOfLaps());\n\n //Call startService and pass the explicit intent\n startService(saveSessionIntent);\n }", "title": "" }, { "docid": "b807a3790fdc9e997cd32a1a81e1f5f4", "score": "0.48686445", "text": "private void initSocket() {\n try {\n rtpSocket = new DatagramSocket(localRtpPort);\n rtcpSocket = new DatagramSocket(localRtcpPort);\n } catch (Exception e) {\n System.out.println(\"RTPSession failed to obtain port\");\n }\n\n rtpSession = new RTPSession(rtpSocket, rtcpSocket);\n rtpSession.RTPSessionRegister(this, null, null);\n\n rtpSession.payloadType(96);//dydnamic rtp payload type for opus\n\n //adding participant, where to send traffic\n Participant p = new Participant(remoteIpAddress, remoteRtpPort, remoteRtcpPort);\n rtpSession.addParticipant(p);\n }", "title": "" }, { "docid": "c28afc800ee30f7fde92c22a62a04e62", "score": "0.4868002", "text": "InternalSession createEmptySession();", "title": "" }, { "docid": "6293a01f99fb7bcd200c30c12cb3b25d", "score": "0.48642826", "text": "public void newSession(String loginMsg)\n {\n System.out.println(loginMsg + '\\n');\n\n while (!login()) {\n System.out.println(\"Invalid currentUser! Please re-enter username.\");\n }\n\n String cmdString = \"\";\n\n while (!\"exit\".equals(cmdString) && !\"logout\".equals(cmdString)) {\n System.out.print(getCmdPromptString());\n cmdString = keyboard.nextLine();\n Visitor command = createCommand(Helpers.parseCommand(cmdString));\n fs.executeCommand(command, currentUser);\n }\n\n if (\"logout\".equals(cmdString)) {\n newSession(loginMsg);\n }\n }", "title": "" }, { "docid": "ff859afcad75d6c2271eb9eb52705911", "score": "0.48627493", "text": "public void startFactory() {\n if (!isStarted) {\n logger.info(\"Starting SessionListenerFactory.\");\n APIEventBus.getInstance().subscribe(this);\n isStarted = true;\n }\n }", "title": "" }, { "docid": "e7159f02329ead966eadb349020d49f1", "score": "0.4861767", "text": "public TcpClient() {\n connector = new NioSocketConnector();\n connector.setHandler(this);\n connector.getFilterChain().addLast(\"codec\", \n new ProtocolCodecFilter(new TextLineCodecFactory(Charset.forName(\"UTF-8\")))); \n ConnectFuture connFuture = connector.connect(new InetSocketAddress(\"localhost\", TcpServer.PORT));\n connFuture.awaitUninterruptibly();\n session = connFuture.getSession();\n }", "title": "" }, { "docid": "adbcecfae91ef08188dc796992d592d2", "score": "0.48606402", "text": "Communicator createCommunicator();", "title": "" }, { "docid": "052f4763a66f076361e3728e4ce153da", "score": "0.48573413", "text": "public SessionPanel() {\n initComponents();\n initProcess();\n }", "title": "" }, { "docid": "44f50aebd8853530f4a505158019b39c", "score": "0.4851974", "text": "public static boolean createSession(String username) {\n\t\tUser user = null;\n\t\tif (Global.Variables.session != null) {\n\t\t\tif (Global.Variables.session.getCurrentUser().getName().equals(username)) {\n\t\t\t\tConsolePrinter.warning(Global.Warnings.ALREADY_CONNECTED);\n\t\t\t} else {\n\t\t\t\tConsolePrinter.warning(Global.Warnings.CANNOT_CONNECT);\n\t\t\t}\n\t\t\treturn false;\n\t\t} else {\n\t\t\tuser = signIn(username);\n\t\t\tif (user == null) {\n\t\t\t\tuser = signUp(username);\n\t\t\t\tGlobal.Variables.session = new Session(user);\n\t\t\t\tGlobal.Variables.registeredUsers.add(user);\n\t\t\t\tUtils.FileUtils.createBlankFile(\n\t\t\t\t\t\tGlobal.Constants.DIRECTORY_LOCATION\n\t\t\t\t\t\t+ username\n\t\t\t\t\t\t);\n\t\t\t\tConsolePrinter.info(Global.Warnings.USER_SIGNED_UP + username);\n\t\t\t} else {\n\t\t\t\tGlobal.Variables.session = new Session(user);\n\t\t\t\tConsolePrinter.info(Global.Warnings.USER_SIGNED_IN + username);\n\t\t\t}\n\t\t\tConsolePrinter.info(Global.Warnings.SESSION_ESTABLISHED);\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "6d4ba327a10c73d4fe4ca1fa55606f7e", "score": "0.48490334", "text": "public HttpSessionManager() {\r\n\r\n }", "title": "" }, { "docid": "17ddc0e9dff1e80a9f50150ae48b38e3", "score": "0.48482186", "text": "Session begin();", "title": "" }, { "docid": "aa146869a6c03d4359b4320d2d7afb01", "score": "0.48462373", "text": "public abstract SessionSpec generateSessionSpec() throws MsControlException;", "title": "" }, { "docid": "e7ca861c40a060b2ff42f3023937fc12", "score": "0.48385963", "text": "public Session createEmptySession();", "title": "" }, { "docid": "bd392aca455a91dfb23a17e002479a29", "score": "0.48326352", "text": "@OnOpen\n\tpublic void onOpen(Session session) {\n\t\tSystem.out.println(session);\n\t\tclients.add(session);\n\t\tsendMessage(\"입장함\");\n\t\t//======\n\t\tThread thread = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(10000);\n\t\t\t\t\t\tsendMessage(\"welcome~~~\");\n\t\t\t\t\t}catch(InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t};\n\t\tthread.start();\n\t\t//======\n\t}", "title": "" }, { "docid": "27e9f38111d5346faa97aac6f4973ff5", "score": "0.48325107", "text": "public WebSession(){\n\tstartmodel = new StartModel();\n\tgraphmodel = new GraphModel();\n\treportmodel = new ReportModel();\n\tsetupmodel = new SetupModel();\n }", "title": "" }, { "docid": "07d3ff69b2647badbf7aaf6cc4fa8a15", "score": "0.4829287", "text": "@Override\n public void run() {\n serverHelper.newGame(game, player);\n }", "title": "" }, { "docid": "b3a63cc61e129275b55d8a7d016dd6e2", "score": "0.48264912", "text": "public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }", "title": "" }, { "docid": "e6fe5ab1347bca09e778c0a122dc973c", "score": "0.48186722", "text": "public void trackNewSession() {\n if(isTelemetryEnabled()){\n new CreateDataTask(CreateDataTask.DataType.NEW_SESSION).execute();\n }\n }", "title": "" }, { "docid": "4f862ac1e48eb5eec88337fd9d960af2", "score": "0.4817679", "text": "private Single<SessionEntity> newSession(UserEntity userEntity) {\n return this.authApi.getToken().flatMap(requestTokenEntity ->\n this.authApi.validateToken(\n new ValidateTokenEntity(\n userEntity.getTMDBUsername(),\n userEntity.getTMDBPassword(),\n requestTokenEntity.getRequestToken()\n )\n ).doOnError((e)-> {\n updateUser(new SessionEntity(false, \"\"), userEntity);\n createUserSession();\n })\n .flatMap(validatedRequestToken ->\n this.authApi.createSession(validatedRequestToken.getRequestToken()).doOnSuccess(sessionEntity -> {\n if (!sessionEntity.isSuccess()) {\n //TODO - refreshSession few times and return guest session.\n }\n\n updateUser(sessionEntity, userEntity);\n }\n )\n ));\n }", "title": "" }, { "docid": "0cd0e5f93e07412394f0a4de8be893de", "score": "0.48143095", "text": "void startAIGame() {\n int status = gameServer.restartServer( true, settingsMenu.getMapSize(),\n settingsMenu.getPlayFor(), settingsMenu.getFirstMove(),\n settingsMenu.getServerName() );\n if( status != 0 ) {\n JOptionPane.showMessageDialog( frame, Language.ERROR_STARTUP,\n Language.CAPTION_ERROR, JOptionPane.PLAIN_MESSAGE );\n } else {\n host = \"127.0.0.1\";\n role = \"admin\";\n password = gameServer.getServerPassword();\n ( new Thread( this ) ).start();\n }\n }", "title": "" }, { "docid": "5efed0d2e13b313349770856947770d8", "score": "0.48137188", "text": "SpawnController createSpawnController();", "title": "" }, { "docid": "81fc9ebc0b0a6b0da8dd65a5db36a275", "score": "0.48087898", "text": "public boolean startSession() {\n boolean success = true;\n if (sc == null) {\n sc = new Scanner(System.in);\n }\n if (sqlMngr == null) {\n sqlMngr = SQLController.getInstance();\n }\n try {\n success = sqlMngr.connect(this.getCredentials());\n } catch (ClassNotFoundException e) {\n success = false;\n System.err.println(\"Establishing connection triggered an exception!\");\n e.printStackTrace();\n sc = null;\n sqlMngr = null;\n }\n return success;\n }", "title": "" }, { "docid": "6e97121f81c024b570dbd2733e9495f8", "score": "0.48040068", "text": "public static void initialise()\n\t{\n\t\tServerConfigurationManager theSCM = ServerConfigurationManager.getInstance();\n\t\tString timeoutMinutes = theSCM.getProperty(theSCM.MAUI_SESSION_TIMEOUT);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tlong minutes = Long.parseLong(timeoutMinutes);\n\t\t\t\n\t\t\tHTTPSession.kDefaultSessionTimeout = minutes * 60 * 1000;\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.err.println(\"[HTTPSession] Bad value for session timeout : \" + timeoutMinutes + \" Defaulting to 5 minutes.\");\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\tsessionMaximum = Integer.parseInt (theSCM.getProperty (theSCM.MAUI_SESSION_MAXIMUM));\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tsessionMaximum = Integer.parseInt (theSCM.MAUI_SESSION_MAXIMUM_VALUE);\n\t\t}\n\t}", "title": "" } ]
a3fbadfc7f742a5a130cc481763cd405
Test if a TypeConversion is necessary.
[ { "docid": "c9110a07d63d49eed9f4d7c9f019fd0a", "score": "0.6846964", "text": "private static boolean testCastNeccessary(final Type toType,final Expression expression) {\n\t\tif (toType == null)\treturn (false);\n\t\tType fromType = expression.type;\n\t\tif(fromType==null) {\n\t\t\tUtil.error(\"Expression \"+expression+\" has no type - can't be converted to \"+toType);\n\t\t\treturn(false);\n\t\t}\n\t\tConversionKind conversionKind = fromType.isConvertableTo(toType);\n\t\tswitch (conversionKind) {\n\t\t\tcase DirectAssignable:\treturn (false);\n\t\t\tcase ConvertValue:\n\t\t\tcase ConvertRef:\t\treturn (true);\n\t\t\tcase Illegal:\n\t\t\t\tUtil.error(\"TypeConversion: Illegal cast: (\" + toType + \") \" + expression);\n\t\t\tdefault: return (false);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "7196973cd73b911398b9328835321c99", "score": "0.6941399", "text": "void checkCast(TypeDesc type);", "title": "" }, { "docid": "f5bebe7115e1b363d07782b15452de7b", "score": "0.6585685", "text": "boolean hasConversionDateTime();", "title": "" }, { "docid": "2d46ebb6b84abb4e377b845283e5c944", "score": "0.6517178", "text": "@Override\n public boolean shouldContinue() {\n return !this.canConvert && super.shouldContinue();\n }", "title": "" }, { "docid": "2be82cafbc2c45f41e545f410b9a3db7", "score": "0.64999", "text": "boolean isConverting();", "title": "" }, { "docid": "78f91ee4064bd8a36ca3908ffc41699a", "score": "0.64629513", "text": "boolean hasConversionEvent();", "title": "" }, { "docid": "ddddd8814c6d8e51ecdcdfa49bf4c649", "score": "0.643864", "text": "boolean hasConversionAction();", "title": "" }, { "docid": "ddddd8814c6d8e51ecdcdfa49bf4c649", "score": "0.643864", "text": "boolean hasConversionAction();", "title": "" }, { "docid": "475ae6103d1fb92837ecd9182b2faa16", "score": "0.64188653", "text": "boolean hasConversionAdjustment();", "title": "" }, { "docid": "8d4f96914479bb909309b3ae22d0819c", "score": "0.58703995", "text": "public boolean castExpressionTypeResolution() {\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.5850152", "text": "boolean hasType();", "title": "" }, { "docid": "5dc097d9c9f9a8b02c6ff93ae4e758e0", "score": "0.5844376", "text": "boolean hasC2SType();", "title": "" }, { "docid": "2f356f9805b1c0c90f259ebcfb93fa21", "score": "0.58350784", "text": "public abstract boolean isConvertable(TransitionType aTransitionType, TraMLType aTraMLType);", "title": "" }, { "docid": "5c4d3cdee930d09dfb45b77d6e005524", "score": "0.5794447", "text": "public boolean isConvertible(Type t, Type s) {\n return isConvertible(t, s, noWarnings);\n }", "title": "" }, { "docid": "11da651e1e79b68fd218b0480f7afc6a", "score": "0.57750785", "text": "@Test\n\tpublic void checkValidTypes() {\n\t\tsimple.checkTypeName(\"String\");\n\t\tsimple.checkTypeName(\"Integer\");\n\t\tsimple.checkTypeName(\"Long\");\n\t\tsimple.checkTypeName(\"Float\");\n\t\tsimple.checkTypeName(\"Double\");\n\t\tsimple.checkTypeName(\"Byte\");\n\t\tsimple.checkTypeName(\"Short\");\n\t\tsimple.checkTypeName(\"Character\");\n\t\tsimple.checkTypeName(\"Boolean\");\n\t}", "title": "" }, { "docid": "e5cc549967f5ae17bc3afe41bcb2b0e2", "score": "0.572574", "text": "private static boolean isCoercibleFrom(Object src, Class<?> target)\n/* */ {\n/* */ try\n/* */ {\n/* 512 */ getExpressionFactory().coerceToType(src, target);\n/* */ } catch (ELException e) {\n/* 514 */ return false;\n/* */ }\n/* 516 */ return true;\n/* */ }", "title": "" }, { "docid": "dac69c21ce7cd4c24f78e283c85e1c36", "score": "0.5721756", "text": "@java.lang.Override\n public boolean hasConversionEvent() {\n return resourceCase_ == 11;\n }", "title": "" }, { "docid": "8b4eb62ab41179f7d0f9b3d242727ed2", "score": "0.56984377", "text": "public static boolean canImplicitCast(IType from, IType to){\n\t\treturn from.canImplicitCastTo(to);\n\t}", "title": "" }, { "docid": "a07653253f36ff4bee955b6f88fa7fea", "score": "0.56874907", "text": "public boolean convertible(TypeId otherType, boolean forDataTypeFunction) {\r\n if (getTypeId().isAnsiUDT()) {\r\n if (!otherType.isAnsiUDT() ) { \r\n return false; \r\n }\r\n return getTypeId().getSQLTypeName().equals(otherType.getSQLTypeName());\r\n }\r\n \r\n /*\r\n ** We are a non-ANSI user defined type, we are\r\n ** going to have to let the client find out\r\n ** the hard way.\r\n */\r\n return true;\r\n }", "title": "" }, { "docid": "ce590ef3c331c5d52e215fdb086e4ed3", "score": "0.56792444", "text": "public boolean isConvertibleTo(Type src, Type dst) {\n \t\tif (src == null || dst == null) {\n \t\t\treturn false;\n \t\t}\n \n \t\tif (src.isBool() && dst.isBool() || src.isFloat() && dst.isFloat()\n \t\t\t\t|| src.isString() && dst.isString()\n \t\t\t\t|| (src.isInt() || src.isUint())\n \t\t\t\t&& (dst.isInt() || dst.isUint())) {\n \t\t\treturn true;\n \t\t}\n \n \t\tif (src.isList() && dst.isList()) {\n \t\t\tTypeList typeSrc = (TypeList) src;\n \t\t\tTypeList typeDst = (TypeList) dst;\n \t\t\t// Recursively check type convertibility\n \t\t\treturn (isConvertibleTo(typeSrc.getType(), typeDst.getType()) && typeSrc\n \t\t\t\t\t.getSize() <= typeDst.getSize());\n \t\t}\n \n \t\treturn false;\n \t}", "title": "" }, { "docid": "4ec139994b5628024f9519e77bf8eefa", "score": "0.56516796", "text": "@java.lang.Override\n public boolean hasConversionEvent() {\n return resourceCase_ == 11;\n }", "title": "" }, { "docid": "d7786004b45346ee8fc6da5449ae8197", "score": "0.56026787", "text": "boolean hasNaewonType();", "title": "" }, { "docid": "7afc712c799ad2371700bb85cb7f4362", "score": "0.5600448", "text": "boolean hasTypeChar();", "title": "" }, { "docid": "d08a3063a73af50dc4c48572b5f8e997", "score": "0.55842185", "text": "public boolean canAdapt(Object input, Class<?> outputType) {\r\n\t\tClass<?> inputType = input.getClass();\r\n\t\tAdapter a = findAdapter(input, inputType, outputType);\r\n\t\treturn a != null;\r\n\t}", "title": "" }, { "docid": "93ab67ce8b68a219a6d4a8417b205ea5", "score": "0.5581378", "text": "boolean hasConversionActionName();", "title": "" }, { "docid": "07824c6859dd35e70297cf16402d3a15", "score": "0.556904", "text": "public void refined_TypeCheck_typeCheck() {\n TypeDecl switchType = switchType();\n TypeDecl type = getValue().type();\n if(!type.assignConversionTo(switchType, getValue()))\n error(\"Constant expression must be assignable to Expression\");\n if(!getValue().isConstant() && !getValue().type().isUnknown()) \n error(\"Switch expression must be constant\");\n }", "title": "" }, { "docid": "5a65df11d5c4f0e04c7ae7ee568b1154", "score": "0.55217516", "text": "private\n\tboolean isConvertableArrayElementType(Type type)\n\t{\n\t\treturn isConvertableType(type);\n\t}", "title": "" }, { "docid": "6ec94ac4ab1e5373ade79e8276342d47", "score": "0.5506485", "text": "public int canCast() { return 1; }", "title": "" }, { "docid": "bc0195ff18c46a601b446a422908410e", "score": "0.5506438", "text": "boolean hasDataType();", "title": "" }, { "docid": "bc0195ff18c46a601b446a422908410e", "score": "0.5506438", "text": "boolean hasDataType();", "title": "" }, { "docid": "bc0195ff18c46a601b446a422908410e", "score": "0.5506438", "text": "boolean hasDataType();", "title": "" }, { "docid": "9281349cf50f90e1e5d6e56e68725fe0", "score": "0.55021584", "text": "boolean hasTypeDatetime();", "title": "" }, { "docid": "7a3971f90fb11bff36bb89fc201a276b", "score": "0.5477969", "text": "public boolean awtWorkaround_isType1();", "title": "" }, { "docid": "74131f208bee6208fa73644e08b997c5", "score": "0.54483086", "text": "public boolean isConvertible(Type t, Type s, Warner warn) {\n if (t.hasTag(ERROR)) {\n return true;\n }\n boolean tPrimitive = t.isPrimitive();\n boolean sPrimitive = s.isPrimitive();\n if (tPrimitive == sPrimitive) {\n return isSubtypeUnchecked(t, s, warn);\n }\n if (!allowBoxing) return false;\n return tPrimitive\n ? isSubtype(boxedClass(t).type, s)\n : isSubtype(unboxedType(t), s);\n }", "title": "" }, { "docid": "02b2f3df538fa2bf420877576b89f4d5", "score": "0.5443634", "text": "boolean hasValType();", "title": "" }, { "docid": "a7cf2b7d756f3c54d58b7b8525aae9cd", "score": "0.54090613", "text": "@Override\n public boolean isWktConform() {\n return (wktType != null);\n }", "title": "" }, { "docid": "01f77e5db5888d6788d88809f99c8fb2", "score": "0.54062533", "text": "@Test\n\tpublic void testKonstruktor() {\n\t\tassertEquals(true, new GoogleBirthdayConverter() instanceof GoogleBirthdayConverter);\n\t}", "title": "" }, { "docid": "e44cd817a0bda44e30ec32bd1d3db730", "score": "0.5393257", "text": "boolean isQueuedForConversion();", "title": "" }, { "docid": "5cf9ec342f532b14bbce38cdd75ec261", "score": "0.53760374", "text": "boolean hasTypeDouble();", "title": "" }, { "docid": "3f589fb253ebc544641249191f3c4169", "score": "0.5374319", "text": "public void typeCheck() { }", "title": "" }, { "docid": "77ed93226bfb46628e3659dbe298517b", "score": "0.5369139", "text": "@Test\n public void hctConverTypeTest() {\n // TODO: test hctConverType\n }", "title": "" }, { "docid": "07cf5bd83d9c8f5236a6e74a62e82dad", "score": "0.5341038", "text": "private boolean supportedType(Class<?> ret)\n/* */ {\n/* 135 */ for (int i = 0; i < supportedTypes.length; i++) {\n/* 136 */ if (ret == supportedTypes[i]) {\n/* 137 */ return true;\n/* */ }\n/* */ }\n/* 140 */ if (isBeanCompatible(ret)) {\n/* 141 */ return true;\n/* */ }\n/* 143 */ return false;\n/* */ }", "title": "" }, { "docid": "10a7406aeb34f287a17f793e81560257", "score": "0.53369975", "text": "boolean hasUniformType();", "title": "" }, { "docid": "69f187abb7e2615ee4de64eaf3132dce", "score": "0.5330351", "text": "public static boolean checkValueToType(String type, String value) {\n //System.out.println(\"checkValueToType: type=\"+type+\" value='\"+value+\"'\");\n // We try to convert it (just like how javaGenLibrary.xsl\n // would generate code for). If an IllegalArgumentException\n // is thrown, then it's the wrong value for that type.\n try { // BEGIN_NOI18N\n if (\"java.lang.String\".equals(type) || \"char[]\".equals(type) \n || \"char []\".equals(type) || \"char\".equals(type)\n || \"Character\".equals(type) || \"String\".equals(type)\n || \"java.lang.Character\".equals(type))\n return true;\n else if (\"long\".equals(type))\n Long.parseLong(value);\n else if (\"int\".equals(type))\n Integer.parseInt(value);\n else if (\"byte\".equals(type))\n Byte.parseByte(value);\n else if (\"short\".equals(type))\n Short.parseShort(value);\n else if (\"float\".equals(type))\n Float.parseFloat(value);\n else if (\"double\".equals(type))\n Double.parseDouble(value);\n else if (\"boolean\".equals(type))\n Boolean.valueOf(value).booleanValue();\n else if (\"java.lang.Double\".equals(type))\n new java.lang.Double(value);\n else if (\"java.lang.Integer\".equals(type))\n new java.lang.Integer(value);\n else if (\"java.lang.Boolean\".equals(type))\n Boolean.valueOf(value);\n else if (\"java.lang.Float\".equals(type))\n new java.lang.Float(value);\n else if (\"java.lang.Short\".equals(type))\n new java.lang.Short(value);\n else if (\"java.lang.Long\".equals(type))\n new java.lang.Long(value);\n else if (\"java.math.BigDecimal\".equals(type))\n new java.math.BigDecimal(value);\n else if (\"java.math.BigInteger\".equals(type))\n new java.math.BigInteger(value);\n else if (\"java.lang.StringBuffer\".equals(type))\n new java.lang.StringBuffer(value);\n else if (\"java.text.MessageFormat\".equals(type))\n new java.text.MessageFormat(value);\n else if (\"java.text.AttributedString\".equals(type))\n new java.text.AttributedString(value);\n else if (\"java.util.StringTokenizer\".equals(type))\n new java.util.StringTokenizer(value);\n else { // END_NOI18N\n /*\n // Should do some reflection and see if a valueOf method\n // exists and takes a single String as an argument.\n Class clz = getClass(type);\n if (clz != null) {\n java.lang.reflect.Method meth = \n clz.getMethod(\"valueOf\", new Class[] {String.class});\n if (meth == null || !Modifier.isStatic(meth.getModifiers())) {\n return false;\n }\n } else {\n return false;\n }\n // Could try to invoke the method too, but do we\n // really want to invoke a method from some random class.\n */\n if (\"\".equals(value)) // NOI18N\n return false; // Hack, should check value\n return true; // for now\n }\n } catch (IllegalArgumentException e) {\n return false;\n /*\n } catch (java.lang.ClassNotFoundException e) {\n LogFlags.lgr.println(LogFlags.DEBUG, LogFlags.module,\n LogFlags.DBG_VALIDATE, 100,\n \"checkValueToType got ClassNotFoundException for type='\"+type+\"' value='\"+value+\"'\");\n return false;\n } catch (NoSuchMethodException e) {\n LogFlags.lgr.println(LogFlags.DEBUG, LogFlags.module,\n LogFlags.DBG_VALIDATE, 100,\n \"checkValueToType got NoSuchMethodException for type='\"+type+\"' value='\"+value+\"'\");\n return false;\n */\n }\n return true;\n }", "title": "" }, { "docid": "8aae1a4a3ab68d8cb1e2d01e000f7573", "score": "0.53096384", "text": "boolean isRegistered(SourceAndConverter src);", "title": "" }, { "docid": "687effd24d1a65d0357cde9d196eb288", "score": "0.5308109", "text": "boolean hasTypeTimestamp();", "title": "" }, { "docid": "549ffe2f66e201f7090197610ba0c1db", "score": "0.5293663", "text": "Class<T> getConversionType();", "title": "" }, { "docid": "1fd14939583c49ac62c3aab8a5e1aad9", "score": "0.52672696", "text": "public boolean checkNodeType() throws TypeCheckingException\n{\n return true;\n}", "title": "" }, { "docid": "c3fccf6d26ea5d4916fca54369595ca4", "score": "0.5255681", "text": "public boolean castExpressionTypeDerivation() {\r\n\t\tthis.getSelf().getType();\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "37fbe1b467d7efb5e2a52213fdde425e", "score": "0.52524126", "text": "boolean hasTypeDate();", "title": "" }, { "docid": "6f288cd4343e8aee5e3aa3878be3b804", "score": "0.52507824", "text": "public boolean containsType (String toCheck) {\r\n return getTypeIndex(toCheck) != -1;\r\n }", "title": "" }, { "docid": "ca8a19aca38aa2db4004b19b860542ee", "score": "0.52425486", "text": "boolean hasTypeText();", "title": "" }, { "docid": "6bba1d6e5fe47d878a93d20f6221ccea", "score": "0.5234998", "text": "private static boolean isCompatibleType(Object value, Class<?> type) {\n // Do object check first, then primitives\n return value == null || type.isInstance(value) || matchesPrimitive(type, value.getClass());\n }", "title": "" }, { "docid": "ae7be876ec63248c280f20d375f2ec31", "score": "0.5211063", "text": "public static boolean canConcatenateCast(IType from, IType to){\n\t\tBasicTypeSet bt = from.getTypeProvider().BASIC;\n\t\tif(from.getBaseType() == bt.TEXT)\n\t\t\treturn to == bt.TEXT;\n\t\t\n\t\tif(to == bt.STRING || to == bt.TEXT)\n\t\t\treturn true;\n\t\t\n\t\treturn CastUtil.canImplicitCast(from, to);\n\t}", "title": "" }, { "docid": "74965b9f6c190001851b3fbb79e443da", "score": "0.52088434", "text": "abstract boolean isValidDirectTCPType();", "title": "" }, { "docid": "6ae138f15ccf6219e300548b57f37842", "score": "0.5206587", "text": "boolean hasColType();", "title": "" }, { "docid": "bcd179ea2e20c1c8f1596398590c0be2", "score": "0.52052826", "text": "public void test018() throws JavaModelException {\n ITypeBinding[] bindings = createTypeBindings(new String[] {}, new String[] { \"I\", \"Ljava/lang/Object;\" });\n assertTrue(\"int should not be cast compatible with Object\", !bindings[0].isCastCompatible(bindings[1]));\n }", "title": "" }, { "docid": "beb034b2d82c38de3002201a6f35f0ef", "score": "0.5201621", "text": "abstract boolean supportsDirectColumnCoercion();", "title": "" }, { "docid": "f760e2ee27f8577bbcf317884d482a01", "score": "0.51995045", "text": "@Test\n public void testConvertToActualType()\n {\n assertThat(ArgumentValidatorUtil.convertToActualType(\"125\", Integer.class), is((Object)125));\n assertThat(ArgumentValidatorUtil.convertToActualType(\"1500\", Long.class), is((Object)1500L));\n assertThat(ArgumentValidatorUtil.convertToActualType(\"12.25\", Double.class), is((Object)12.25));\n assertThat(ArgumentValidatorUtil.convertToActualType(\"122.2\", Float.class), is((Object)122.2F));\n assertThat(ArgumentValidatorUtil.convertToActualType(\"100\", Byte.class), is((Object)(byte)100));\n assertThat(ArgumentValidatorUtil.convertToActualType(\"12\", Short.class), is((Object)(short)12));\n assertThat(ArgumentValidatorUtil.convertToActualType(\"true\", Boolean.class), is((Object)true));\n assertThat(ArgumentValidatorUtil.convertToActualType(\"C\", Character.class), is((Object)'C'));\n assertThat(ArgumentValidatorUtil.convertToActualType(\"test\", String.class), is((Object)\"test\"));\n }", "title": "" }, { "docid": "fe7f66cf57c59a50a4ca52fe62d6ffea", "score": "0.5193767", "text": "boolean hasTypeDecimal();", "title": "" }, { "docid": "a23d8b281f83d7eb1ad11651616edb26", "score": "0.51892173", "text": "void convert(TypeDesc fromType, TypeDesc toType, int fpConvertMode);", "title": "" }, { "docid": "9c9fcf63a827eac3a041c9a6e1bbc84a", "score": "0.518524", "text": "boolean hasTypeTime();", "title": "" }, { "docid": "c788c6cc97b132002c4fa1cb91a342a8", "score": "0.5164033", "text": "boolean hasOpType();", "title": "" }, { "docid": "1576eda1a9dd435c206f570f5813d238", "score": "0.51610494", "text": "public boolean IsValidType(Object value)\r\n { \r\n return IsValidType(value, PropertyType); \r\n }", "title": "" }, { "docid": "40379361efb9b7536fc60ed8b7f8d903", "score": "0.51584417", "text": "public boolean conversionIsDone() {\n return ( getConversionFailed() || getCurrentRomanValue().equals(\"\") );\n }", "title": "" }, { "docid": "3e5a48a0d813cb83e9b5bd3143461b58", "score": "0.5135366", "text": "@Test\n public void testConvert__illegalArgument() {\n Object[] illegals = {\"1.1\", \"9aa\", 0.1d, 0.1f, BigDecimal.ZERO};\n\n // wykonanie testow, oczekujemy wyjatku\n for (Object obj : illegals) {\n try {\n type.convert(obj);\n fail();\n } catch (RuntimeException e) {\n assertTrue(e instanceof IllegalArgumentException || e instanceof NumberFormatException);\n }\n }\n }", "title": "" }, { "docid": "7e33efca76e97a1461afa0cc321bc8dc", "score": "0.5126515", "text": "boolean hasTypeFloat();", "title": "" }, { "docid": "b69c5a7f98e9ac405ddbc6f9c9b67b04", "score": "0.5117864", "text": "private void checkClassConverterType(String field, AbstractClassConverter classConverter) {\n Class<? extends AbstractClassConverter> converterClass = classConverter.getClass();\n Type type = converterClass.getGenericSuperclass();\n while (!(type instanceof ParameterizedType) && AbstractClassConverter.class.isAssignableFrom(converterClass)) {\n converterClass = (Class<? extends AbstractClassConverter>) converterClass.getSuperclass();\n type = converterClass.getGenericSuperclass();\n }\n\n ParameterizedType superclass = (ParameterizedType) type;\n Type[] actualTypeArguments = superclass.getActualTypeArguments();\n if (actualTypeArguments.length == 0) {\n throw new BindingCreationException(\"Can't find converter target type\");\n }\n\n Class bType = (Class) actualTypeArguments[0];\n Class bindingClass = classBinding.getBindingForType();\n Class fieldType = classTreeGetFieldClass(bindingClass, field);\n if (bType != fieldType && !bType.isAssignableFrom(fieldType)) {\n throw new BindingCreationException(\n \"Field type '\" + fieldType.getCanonicalName() + \"' is not instance of '\" + bType.getCanonicalName() + \"'.\");\n }\n\n }", "title": "" }, { "docid": "625a2489abb95304421823495e96b394", "score": "0.5116827", "text": "boolean hasPlcmttype();", "title": "" }, { "docid": "d7a4789cc719aa0af4161f08b1225339", "score": "0.5112201", "text": "public static boolean canExplicitCast(IType from, IType to, boolean unchecked){\n\t\tif(unchecked){\n\t\t\treturn from.accept(uncheckedExplicitChecker, to);\n\t\t} else {\n\t\t\treturn from.accept(checkedExplicitChecker, to);\n\t\t}\n\t}", "title": "" }, { "docid": "c4e8c8c4db71e6eec1410808c5e87b16", "score": "0.51085645", "text": "public boolean visit(CastExpression node) {\n return true;\n }", "title": "" }, { "docid": "4213fc0ae8175fe3de74d4f80ba55eba", "score": "0.5085865", "text": "boolean hasTypeInteger();", "title": "" }, { "docid": "35c58f46ff26dcdb8e4c16ceffdf2dfb", "score": "0.5084764", "text": "void convert(TypeDesc fromType, TypeDesc toType);", "title": "" }, { "docid": "d6923336a0c8b92ab0a87abee474f2f8", "score": "0.5083102", "text": "@Override\n public Object coerceToType(Object object, Class targetType)\n {\n\n // Check for no conversion necessary\n if ((targetType == null) || Object.class.equals(targetType))\n {\n return object;\n }\n\n // Coerce to String if appropriate\n if (String.class.equals(targetType))\n {\n if (object == null)\n {\n return \"\";\n }\n else if (object instanceof String)\n {\n return object;\n }\n else\n {\n return object.toString();\n }\n }\n\n // Coerce to Number (or a subclass of Number) if appropriate\n if (isNumeric(targetType))\n {\n if (object == null)\n {\n return coerce(ZERO, targetType);\n }\n else if (\"\".equals(object))\n {\n return coerce(ZERO, targetType);\n }\n else if (object instanceof String)\n {\n return coerce((String) object, targetType);\n }\n else if (isNumeric(object.getClass()))\n {\n return coerce((Number) object, targetType);\n }\n throw new IllegalArgumentException(\"Cannot convert \" + object\n + \" to Number\");\n }\n\n // Coerce to Boolean if appropriate\n if (Boolean.class.equals(targetType) || (Boolean.TYPE == targetType))\n {\n if (object == null)\n {\n return Boolean.FALSE;\n }\n else if (\"\".equals(object))\n {\n return Boolean.FALSE;\n }\n else if ((object instanceof Boolean)\n || (object.getClass() == Boolean.TYPE))\n {\n return object;\n }\n else if (object instanceof String)\n {\n return Boolean.valueOf((String) object);\n }\n throw new IllegalArgumentException(\"Cannot convert \" + object\n + \" to Boolean\");\n }\n\n // Coerce to Character if appropriate\n if (Character.class.equals(targetType)\n || (Character.TYPE == targetType))\n {\n if (object == null)\n {\n return new Character((char) 0);\n }\n else if (\"\".equals(object))\n {\n return new Character((char) 0);\n }\n else if (object instanceof String)\n {\n return new Character(((String) object).charAt(0));\n }\n else if (isNumeric(object.getClass()))\n {\n return new Character((char) ((Number) object).shortValue());\n }\n else if ((object instanceof Character)\n || (object.getClass() == Character.TYPE))\n {\n return object;\n }\n throw new IllegalArgumentException(\"Cannot convert \" + object\n + \" to Character\");\n }\n \n if (targetType.isEnum())\n {\n if (object == null || \"\".equals(object))\n {\n return null;\n }\n if (targetType.isAssignableFrom(object.getClass()))\n {\n return object;\n }\n \n if (!(object instanceof String))\n {\n throw new IllegalArgumentException(\"Cannot convert \" + object + \" to Enum\");\n }\n\n Enum<?> result;\n try\n {\n result = Enum.valueOf(targetType, (String) object);\n return result;\n }\n catch (IllegalArgumentException iae)\n {\n throw new IllegalArgumentException(\"Cannot convert \" + object + \" to Enum\");\n }\n }\n\n // Is the specified value type-compatible already?\n if ((object != null) && targetType.isAssignableFrom(object.getClass()))\n {\n return object;\n }\n\n // new to spec\n if (object == null)\n {\n return null;\n }\n\n // We do not know how to perform this conversion\n throw new IllegalArgumentException(\"Cannot convert \" + object + \" to \"\n + targetType.getName());\n\n }", "title": "" }, { "docid": "da3e6bd7099e5a91c4f1e8859dc286de", "score": "0.5080906", "text": "@Override\n protected void runTest() throws Throwable {\n //println(super.getName()); // 2600+ printlns is too slow...\n\n final String toName = TYPE_NAME_AND_FIELD[m_toIndex][0];\n final String toField = TYPE_NAME_AND_FIELD[m_toIndex][1];\n final int toCode = getFieldValue(toField);\n\n final String fromName = TYPE_NAME_AND_FIELD[m_fromIndex][0];\n final String fromField = TYPE_NAME_AND_FIELD[m_fromIndex][1];\n final int fromCode = getFieldValue(fromField);\n\n final String propertyName =\n \"dbmd.supports.convert.to.\"\n + toName\n + \".from.\"\n + fromName;\n\n final boolean expectedResult =\n getBooleanProperty(\n propertyName,\n false);\n final boolean actualResult = getMetaData().supportsConvert(\n fromCode,\n toCode);\n\n if (expectedResult != actualResult) {\n System.out.println(\"CHECK FOR MISSING PROPERTY: \" + translatePropertyKey(propertyName) + \"=\" + actualResult);\n }\n assertEquals(expectedResult, actualResult);\n }", "title": "" }, { "docid": "d0f9a361a719bdb233503df9879a1a29", "score": "0.5067478", "text": "public boolean hasType() {\n return imageString.type != null;\n }", "title": "" }, { "docid": "3b4d523aae1ae026229dadc96624dfef", "score": "0.50653934", "text": "boolean hasTypeName();", "title": "" }, { "docid": "3762be6f96ab535e7432a112011cf9ca", "score": "0.5056615", "text": "boolean hasTypeVarchar();", "title": "" } ]
f3f6a91f48e1bf6a92e510a89189c689
conditions 0 branches 1
[ { "docid": "595e3be9b65cd611b7f9acff908832a6", "score": "0.0", "text": "public static Node populateCallEvents(CFG R, Node parent){\r\n\t\tAtomicNode atNode1;\r\n\t\r\n\t\t\r\n//\t\tCFG R =new CFG();\r\n\t\tatNode1=new AtomicNode(\"1511#PCE1\",\"Line:1545-Line1566\");\r\n\t\tR.insert(atNode1, parent);\r\n\t\t\r\n\t\treturn atNode1;\r\n\t}", "title": "" } ]
[ { "docid": "507cfd9d5fb77b1270c4383d2bc107a6", "score": "0.6409069", "text": "private static void branchMain(String... args) {\n if (args.length != 2) {\n System.out.println(\"Incorrect operands.\");\n return;\n }\n Command.branch(args[1]);\n }", "title": "" }, { "docid": "2e2b6ce61dcc06a39e11d27ffb795957", "score": "0.63327247", "text": "public void visit(CondBranch node) {\n println(\"br \" + node.getCond() + \" <\" + node.getIfTrue().getLabel() + \"> <\" + node.getIfFalse().getLabel() + \">\");\n }", "title": "" }, { "docid": "f970d01783b52f0f25c4587d16eff6c7", "score": "0.61103237", "text": "private void detectBranchLoopsWithPreSequence(Branch branch, List<Branch> branchesToCheck) {\n\t\t\n\t}", "title": "" }, { "docid": "756256531227dc72b4d84140139af3c5", "score": "0.59608215", "text": "protected void initiazeBranches() {\n\n\t}", "title": "" }, { "docid": "57abcb292304120bf962e4862c83195c", "score": "0.59192294", "text": "public void setTrueBranch(IAstExpression cond);", "title": "" }, { "docid": "6bf276d7d5ef64af6902cf5466089e82", "score": "0.5855786", "text": "int branchCount();", "title": "" }, { "docid": "2f2cc0ce803612803d543fb1b3565054", "score": "0.5820233", "text": "private void branch(int[] p, int dirForward, int dirBackward) {\r\n\r\n for (int dir=0; dir<2*om.dimMap; dir++) { // no need to consider non-map directions\r\n\r\n // dirForward is the direction already covered by the existing borer\r\n // dirBackward is already known to point to an open cell\r\n // (other directions might point to open cells; those borers will die when used)\r\n //\r\n if (dir == dirForward || dir == dirBackward) continue;\r\n\r\n Borer borer = new Borer(p,dir);\r\n if (random.nextDouble() < singleBranchProbability) {\r\n avail.add(borer);\r\n } else {\r\n reserve.add(borer);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "76f3baa3a66ad60a21d278557fca92d7", "score": "0.5792911", "text": "boolean isBranchCreation();", "title": "" }, { "docid": "5a7a9dcb5b5b18b3ee75d668f2945f91", "score": "0.5787984", "text": "@Test\n\tpublic void testEmptyBranchStatement() {\n\t\tWalk program = compileAndCompare(\"branch\", false, true);\n\t\tassertProgramSize(0, program);\n\t\tSystem.out.println( printTreeStructure (program) );\n\t\t\n\t\t// old version will compile this, but can't walk it\n\t\t// new version omits empty nested branches so don't compare them\n\t\tprogram = newCompile(\"branch {}\");\n\t\tassertProgramSize(1, program);\n\t\tSystem.out.println( printTreeStructure (program) );\n\t}", "title": "" }, { "docid": "e7694fc520b5fe4ff1fb30243b14586f", "score": "0.57579285", "text": "@Override\r\n public int execute(Vcs vcs) {\r\n int exists = 0;\r\n //verificam daca exista deja branch.ul\r\n for (int i = 0; i < vcs.getBranches().size(); i++) {\r\n if (vcs.getBranches().get(i).getName().equals(operationArgs.get(1))) {\r\n exists = 1;\r\n }\r\n }\r\n //daca nu, il cream; altfel returnam eroare\r\n if (exists == 0) {\r\n Branch newBranch = new Branch();\r\n newBranch.setName(operationArgs.get(1));\r\n //il adaugam in lista cu toate branch-urile\r\n vcs.getBranches().add(newBranch);\r\n\r\n } else {\r\n ErrorCodeManager.getInstance().checkExitCode(vcs.getOutputWriter(), VCS_BAD_CMD_CODE);\r\n }\r\n\r\n return 0;\r\n }", "title": "" }, { "docid": "b3394216da0f177dfa19a935a4d9fee7", "score": "0.5705189", "text": "private boolean estilos_1_cond(int index) {\r\n switch (index) {\r\n case 0: return estilos_1_cond_0();\r\n default: return false;\r\n }\r\n }", "title": "" }, { "docid": "33f656cba374f34a82a4531fd22d2bdd", "score": "0.56752014", "text": "private boolean estilos_2_cond(int index) {\r\n switch (index) {\r\n case 0: return estilos_2_cond_0();\r\n default: return false;\r\n }\r\n }", "title": "" }, { "docid": "a3dd7bb8a0ddd0e7b7b96462a8521c1b", "score": "0.5648189", "text": "public List<? extends Branch<L, W, N>> branches();", "title": "" }, { "docid": "8996efbc74ef5f2b8e122b251adc9103", "score": "0.56429017", "text": "public IAstExpression getTrueBranch();", "title": "" }, { "docid": "7b53824c6dac1a2fa8738be687ef83a9", "score": "0.5641617", "text": "public String getFunctionWithBranching(int type,Input[] positive,Input[] negative){\n boolean hasActivators = positive.length > 0;\n boolean hasRepressors = negative.length > 0;\n String functionWithActivatorsAndRepressors = getFunction(type,positive,negative).replaceAll(\";\",\"\");\n boolean mandatoryActivator = false;\n boolean mandatoryRepressor = false;\n //see if we have any mandatory activators\n for(Input input:positive){ if(!input.optional) mandatoryActivator = true;}\n for(Input input:negative){ if(!input.optional) mandatoryRepressor = true;}\n \n //if both are true, return. Also return if there are no repressors at all or no activators at all\n if((mandatoryActivator || !hasActivators) && (mandatoryRepressor || !hasRepressors)){\n return functionWithActivatorsAndRepressors+\";\";\n }\n\n //otherwise we define three more functions\n String functionWithActivatorsOnly = getFunction(type,positive,new Input[0]).replaceAll(\";\",\"\");\n String functionWithRepressorsOnly = getFunction(type,new Input[0],negative).replaceAll(\";\",\"\");\n String functionWithoutActivatorsAndRepressors = getFunction(type,new Input[0],new Input[0]).replaceAll(\";\",\"\");\n\n //we also need the branching conditions\n //This is when all activators are not connected. ie !(A|B|C)\n String noActivators = \"!(\";\n for(int i = 0;i< positive.length;i++){\n if(i!=0) noActivators+=\"|\";\n if(positive[i].optional) noActivators += positive[i].name + \"_connected\";\n }\n noActivators+=\")\";\n //This is when all repressors are not connected. ie !(A|B|C)\n String noRepressors = \"!(\";\n for(int i = 0;i< negative.length;i++){\n if(i!=0) noRepressors+=\"|\";\n if(negative[i].optional) noRepressors += negative[i].name + \"_connected\";\n } \n noRepressors+=\")\";\n //now we explore all three possibilities\n if((!mandatoryActivator && hasActivators) && (!mandatoryRepressor && hasRepressors)){\n //this is the one case of a double branch\n return noRepressors+\"? (\"+noActivators+\"?\"+functionWithoutActivatorsAndRepressors+\":\"+functionWithActivatorsOnly+\") : (\"+noActivators+\"?\"+functionWithRepressorsOnly+\":\"+functionWithActivatorsAndRepressors+\");\";\n }\n \n if(!mandatoryActivator && hasActivators){\n return noActivators+\"?\"+functionWithRepressorsOnly+\":\"+functionWithActivatorsAndRepressors+\";\";\n }\n if(!mandatoryRepressor && hasRepressors){\n return noRepressors+\"?\"+functionWithActivatorsOnly+\":\"+functionWithActivatorsAndRepressors+\";\";\n }\n return null;\n }", "title": "" }, { "docid": "6ef0dc8c1f49b011207ca40072cceced", "score": "0.56100416", "text": "private void setConditions(){\n\t\tint conditionCounter = 0;\n\t\tCondition condition;\n\t\t\n\t\tfor(Cause cause : ceg.getCauseNodes()){\n\t\t\tcondition = DTable.addCondition(conditionCounter,cause);\n\t\t\tcauseConditions.add(condition);\n\t\t\tconditionCounter++;\n\t\t}\n\t\t\n\t\tfor(Intermediate intermediate : ceg.getInterNodes()){\n\t\t\tcondition = DTable.addCondition(conditionCounter,intermediate);\n\t\t\tinterConditions.add(condition);\n\t\t\tconditionCounter++;\n\t\t}\n\t}", "title": "" }, { "docid": "528fc7ccbd3beed0b42ddf8b4faaf1db", "score": "0.5599123", "text": "@Test\n public void branchTest() {\n // TODO: test branch\n }", "title": "" }, { "docid": "41903ceab1bc9ef454964f06a3c9a6c8", "score": "0.5541152", "text": "@Override\n\tpublic void visit(AllComparisonExpression arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "896757a1143a3f9f79481ddc6b93ad44", "score": "0.5524445", "text": "@Override\n public Node visitCond(SoarParser.CondContext ctx) {\n return ctx.positive_cond().accept(this);\n }", "title": "" }, { "docid": "d3079f75db9485a8a7f77536b3709d05", "score": "0.5518339", "text": "void BRANCH() {\n if (beval(splits[1])) {\n new Action(\"GOTO(\" + splits[2] + \")\").execute(parentFun);\n }\n }", "title": "" }, { "docid": "dc173fe25d3aede0b1e6a3dfa88ce2d8", "score": "0.55071956", "text": "@Override\n\tpublic void visit(ConditionalExpr n, Object arg) {\n\t\t\n\t}", "title": "" }, { "docid": "cfe9599d6d41eed47ec54cf4b8e56fc1", "score": "0.54813236", "text": "private boolean estilos_3_cond(int index) {\r\n switch (index) {\r\n case 0: return estilos_3_cond_0();\r\n default: return false;\r\n }\r\n }", "title": "" }, { "docid": "e0b6e4a838364c63400057c4de49cfe5", "score": "0.54758024", "text": "boolean getBranchingLastAlwaysDown();", "title": "" }, { "docid": "2705e1997676785dccf6a2aa18a80d2d", "score": "0.54634684", "text": "public void addNewBranch(String tid, JVM vm){\n\n\t\tif(canLogBranch.containsKey(tid) && canLogBranch.get(tid) >= 0){\n\t\t\t\n\t\t\tString constraint = getPathConditionConstraint(tid, vm);\n\t\t\tif(!constraint.isEmpty()\t//there might be cases where canLogBranch is positive due to state backtracking\n\t\t\t\t\t&& !constraint.contains(\"W-\"))\t\t\t\t//we don't want PCs that are on write events (TODO: is this correct?) <- this causes JPF to still explore unwanted branches \n\t\t\t{ \n\t\t\t\t//save current state for future backtracks\n\t\t\t\tStateInfo curState = getCurStateInfo(tid);\n\t\t\t\tmapStateInfo.get(getCurStateId(tid)).add(new StateInfo(pointerToSS.getId(), curState));\n\t\t\t\t\n\t\t\t\tint choice = canLogBranch.get(tid);\n\t\t\t\tSystem.out.println(\"[\"+getStatePathId(tid,vm.getLastInstruction().getFileLocation())+\"] Log branch (update state with \"+choice+\")\");\n\n\t\t\t\tupdatePathId(tid,choice);\t//update path id according to the choice taken \n\t\t\t\tlogBranch(tid);\n\t\t\t\tcanLogBranch.put(tid, -1);\n\n\t\t\t\t//add this branch condition to the corresponding thread's path in pathPerThread data structure\n\t\t\t\ttry{\n\t\t\t\t\tSystem.out.println(\"PATH CONDITION: \"+constraint);\n\t\t\t\t\tpathPerThread.get(tid+\"_\"+getPathId(tid)).add(constraint);\n\t\t\t\t}\n\t\t\t\tcatch(NullPointerException e){\n\t\t\t\t\tArrayList<String> pathT = new ArrayList<String>();\n\t\t\t\t\tpathT.add(constraint);\n\t\t\t\t\tpathPerThread.put(tid+\"_\"+getPathId(tid), pathT);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"[\"+getCurStateId(tid)+\"] PCs: \"+pathPerThread.get(tid+\"_\"+getPathId(tid)));\n\t\t\t\t\n\t\t\t\t//update number of branches reached, if necessary\n\t\t\t\tif(flipBranchMap.containsKey(tid) && curState.brchsReached < flipBranchMap.get(tid)){\n\t\t\t\t\tincBranchesVisited(tid);\n\t\t\t\t\tSystem.out.println(\"[\"+getStatePathId(tid,vm.getLastInstruction().getFileLocation())+\"] Branches remaining until flip: \"+(flipBranchMap.get(tid)-curState.brchsReached));\n\t\t\t\t} \n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "0e1f1adbcd3c8e6ed5b5323889c19f2f", "score": "0.54618055", "text": "@Test\n public void branchGetAllBranchesTest() {\n String greaterThanValue = null;\n Integer numberToRead = null;\n Integer skipRecords = null;\n String orderBy = null;\n String lastModifiedDateTime = null;\n String lastModifiedDateTimeCondition = null;\n List<BranchDto> response = api.branchGetAllBranches(greaterThanValue, numberToRead, skipRecords, orderBy, lastModifiedDateTime, lastModifiedDateTimeCondition);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "4f8f7565b1243addc298d47399c48312", "score": "0.54508185", "text": "boolean addConditionsForDomain(Condition condSet[][]) {\n \t\tCheckContext cc = (CheckContext) localCheckContext.get();\n \t\tif (cc == null) {\n \t\t\t// We are being invoked in a weird way. Perhaps the ProtectionDomain is\n \t\t\t// getting invoked directly.\n \t\t\treturn false;\n \t\t}\n \t\tVector condSets = (Vector) cc.depthCondSets.get(cc.getDepth());\n \t\tif (condSets == null) {\n \t\t\tcondSets = new Vector(2);\n \t\t\tcc.depthCondSets.set(cc.getDepth(), condSets);\n \t\t}\n \t\tcondSets.add(condSet);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "17028b58377ec6fff6bd7bf889a3d230", "score": "0.5448953", "text": "public boolean cp()\r\n/* 150: */ {\r\n/* 151:153 */ return this.bk > 0;\r\n/* 152: */ }", "title": "" }, { "docid": "4b617df2fe9cd671817dbe8e35b5b9ce", "score": "0.5442984", "text": "private double computeSingleBranchProbability() {\n\r\n if (om.dimMap == 1) return 0; // value doesn't matter\r\n\r\n // when a borer moves, there are 2*dimMap directions in the new cell,\r\n // but one is already covered by the existing borer, and one is backward,\r\n // so there are n = 2*dimMap - 2 possible branches.\r\n\r\n double n = 2*om.dimMap - 2; // use double to avoid 1/n -> 0\r\n\r\n // we want to find a probability for a single branch\r\n // so that the <i>total</i> probability of obtaining one or more branches\r\n // is equal to the branch probability. it goes like this:\r\n //\r\n // branch probability = p(some branches)\r\n // = 1 - p(no branches)\r\n // = 1 - [ p(no single branch) ]^n\r\n // = 1 - [ 1 - p(single branch) ]^n\r\n //\r\n // you can also think about it in terms of risk = -ln(1-p),\r\n // in which case the goal is to divide the risk of branching over n directions\r\n\r\n return 1 - Math.pow(1-om.branchProbability,1/n);\r\n }", "title": "" }, { "docid": "873ab503a9d921c890a06e8504dd8f7c", "score": "0.5437648", "text": "Expression getCond();", "title": "" }, { "docid": "a3fb29bc51553180e68a2b4ac9fad123", "score": "0.5437101", "text": "public NodeOrBoundaryCondition() {\n\tis_node = false;\n }", "title": "" }, { "docid": "3a5a307c3d5fd1ebc990ff81ac88d2ac", "score": "0.54295355", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"i have added this file to check the branch behaviour\");\n\n\t}", "title": "" }, { "docid": "41196f13c4fe7b0ccd2d9cfda290a2bc", "score": "0.5428159", "text": "default void startBranchCodeBlockEvaluation(List<PartialEvaluator.InstructionBlock> branchStack) {}", "title": "" }, { "docid": "16ac99201f2840aef16f2f50ea94baf7", "score": "0.54118115", "text": "@Override\n protected void codeGenCompare(DecacCompiler compiler,Label deb, Label end){\n Label eTrans = new Label(\"Transition\"+ this.getNbOr());\n this.incrementNbOr();\n this.getLeftOperand().codeGenCompare(compiler, deb, eTrans);\n if (this.getLeftOperand() instanceof AbstractOpCmp){///rajouter\n compiler.getCompilerOptions().getRegisterManager().incrementCompteurCourant();\n }\n compiler.addInstruction(new BRA(deb));\n compiler.getLinkedList().getLast().addLabel(eTrans);\n this.getRightOperand().codeGenCompare(compiler, deb, end);\n\n }", "title": "" }, { "docid": "ae355eb2fb8d9c584a375cdc5fdfcf7d", "score": "0.5370728", "text": "private static void checkoutMain(String... args) {\n if (args.length > 4) {\n System.out.println(\"Incorrect operands.\");\n return;\n }\n if (args.length == 3) {\n if (!args[1].equals(\"--\")) {\n System.out.println(\"Incorrect operands.\");\n return;\n }\n checkoutFileV1(args[2]);\n } else if (args.length == 4) {\n if (!args[2].equals(\"--\")) {\n System.out.println(\"Incorrect operands.\");\n return;\n }\n checkoutCommittedFileV2(args[1], args[3]);\n } else if (args.length == 2) {\n checkoutBranchV3(args[1]);\n }\n }", "title": "" }, { "docid": "1af39cec1c1424bfca2366f209832d5e", "score": "0.5301907", "text": "protected boolean branch(int addr, int offset){\n\t\tif(offset < 0){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "e5c8bc05e64535472ebf9223d04acda0", "score": "0.5300912", "text": "@Override\n protected void codeGenCompareMethod(DecacCompiler compiler,Label deb, Label end){\n Label eTrans = new Label(\"Transition\" + this.getNbOr());\n this.incrementNbOr();\n this.getLeftOperand().codeGenCompareMethod(compiler, deb, eTrans);\n /*if (this.getLeftOperand() instanceof AbstractOpCmp){//rajouter\n compiler.getCompilerOptions().getRegisterManager().incrementCompteurCourant();\n }*/\n compiler.addInstruction(new BRA(deb));\n compiler.getLinkedList().getLast().addLabel(eTrans);\n this.getRightOperand().codeGenCompareMethod(compiler, deb, end);\n }", "title": "" }, { "docid": "fb6ef290489ed8fcf12d9635e40b081a", "score": "0.5292497", "text": "@Override\n\tpublic void visit(AnyComparisonExpression arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "162205e68f45738bc87264e3ba096f58", "score": "0.5290711", "text": "public abstract boolean condition();", "title": "" }, { "docid": "4715540c17025eeef467621436191d71", "score": "0.525865", "text": "public boolean Mutate$Status(BFCast new2, boolean changed)\r\n/* */ {\r\n/* 1816 */ boolean bitchanged = false;\r\n/* 1817 */ int[] bitlist = new int[BFParams.condbits];\r\n/* */ \r\n/* 1819 */ bitlist = this.privateParams.getBitListPtr();\r\n/* */ \r\n/* 1821 */ bitchanged = changed;\r\n/* 1822 */ if (BFParams.pmutation > 0.0D)\r\n/* */ {\r\n/* 1824 */ for (int bit = 0; bit < BFParams.condbits; bit++)\r\n/* */ {\r\n/* 1826 */ if ((bitlist[bit] >= 0) && \r\n/* 1827 */ (drand() < BFParams.pmutation))\r\n/* */ {\r\n/* */ \r\n/* */ \r\n/* 1831 */ if (new2.getConditionsbit(bit) > 0)\r\n/* */ {\r\n/* 1833 */ if (irand(3) > 0)\r\n/* */ {\r\n/* */ \r\n/* */ \r\n/* 1837 */ new2.maskConditionsbit(bit);\r\n/* 1838 */ new2.decrSpecificity();\r\n/* */ }\r\n/* */ else\r\n/* */ {\r\n/* 1842 */ new2.switchConditionsbit(bit);\r\n/* */ }\r\n/* 1844 */ bitchanged = changed = true;\r\n/* */ }\r\n/* 1846 */ else if (irand(3) > 0)\r\n/* */ {\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 1851 */ new2.setConditionsbit$FromZeroTo(bit, irand(2) + 1);\r\n/* 1852 */ new2.incrSpecificity();\r\n/* 1853 */ bitchanged = changed = true;\r\n/* */ }\r\n/* */ }\r\n/* */ }\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* 1860 */ double choice = drand();\r\n/* 1861 */ if (choice < BFParams.plong)\r\n/* */ {\r\n/* */ \r\n/* 1864 */ new2.setAval(BFParams.a_min + BFParams.a_range * drand());\r\n/* 1865 */ changed = true;\r\n/* */ }\r\n/* 1867 */ else if (choice < BFParams.plong + BFParams.pshort)\r\n/* */ {\r\n/* */ \r\n/* 1870 */ double temp = new2.getAval() + BFParams.a_range * BFParams.nhood * urand();\r\n/* 1871 */ new2.setAval(\r\n/* 1872 */ temp < BFParams.a_min ? BFParams.a_min : temp > BFParams.a_max ? BFParams.a_max : temp);\r\n/* 1873 */ changed = true;\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 1878 */ choice = drand();\r\n/* 1879 */ if (choice < BFParams.plong)\r\n/* */ {\r\n/* */ \r\n/* 1882 */ new2.setBval(BFParams.b_min + BFParams.b_range * drand());\r\n/* 1883 */ changed = true;\r\n/* */ }\r\n/* 1885 */ else if (choice < BFParams.plong + BFParams.pshort)\r\n/* */ {\r\n/* */ \r\n/* 1888 */ double temp = new2.getBval() + BFParams.b_range * BFParams.nhood * urand();\r\n/* 1889 */ new2.setBval(\r\n/* 1890 */ temp < BFParams.b_min ? BFParams.b_min : temp > BFParams.b_max ? BFParams.b_max : temp);\r\n/* 1891 */ changed = true;\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 1896 */ choice = drand();\r\n/* 1897 */ if (choice < BFParams.plong)\r\n/* */ {\r\n/* */ \r\n/* 1900 */ new2.setCval(BFParams.c_min + BFParams.c_range * drand());\r\n/* 1901 */ changed = true;\r\n/* */ }\r\n/* 1903 */ else if (choice < BFParams.plong + BFParams.pshort)\r\n/* */ {\r\n/* */ \r\n/* 1906 */ double temp = new2.getCval() + BFParams.c_range * BFParams.nhood * urand();\r\n/* 1907 */ new2.setCval(\r\n/* 1908 */ temp < BFParams.c_min ? BFParams.c_min : temp > BFParams.c_max ? BFParams.c_max : temp);\r\n/* 1909 */ changed = true;\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* 1913 */ new2.setCnt(0);\r\n/* */ \r\n/* 1915 */ if (changed)\r\n/* */ {\r\n/* 1917 */ new2.updateSpecfactor();\r\n/* */ }\r\n/* 1919 */ return changed;\r\n/* */ }", "title": "" }, { "docid": "c8249c79a13257bed5052bb2e16b2659", "score": "0.52564174", "text": "CondorStatus() {\n }", "title": "" }, { "docid": "6009df466a9b16a2d062c73181b8721f", "score": "0.5249246", "text": "private boolean condition_op() {\n\t\t\n\t\tif (Proscanner.tokens.get(i).getValue().equals(\"&&\") || Proscanner.tokens.get(i).getValue().equals(\"||\")) {\n\t\t\ti++;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "edae11f19260fc2684c4349f863838c3", "score": "0.52442634", "text": "public NodeOrBoundaryCondition(BoundaryCondition b) {\n\tthis.b = b;\n\tis_node = false;\n }", "title": "" }, { "docid": "7e80f558c8cd007f131cf0f73cd250e8", "score": "0.523953", "text": "private int containsBranch(String name) {\n int index = 0;\n for (Branch b: branches) {\n if (name.equals(b.name)) {\n return index;\n }\n index ++;\n }\n return -1;\n }", "title": "" }, { "docid": "7441c446d7578abe42a8e7dc2e132e9c", "score": "0.5228589", "text": "private void parseConditional(){\n //System.out.println(\"Enter conditional\");\n accept(Token.CONDITIONAL);\n parseExpression();\n parseStmt();\n parseStmt();\n //System.out.println(\"Exit conditional\");\n }", "title": "" }, { "docid": "f69024d46668a8db2caaa820494e7851", "score": "0.5227542", "text": "public void setTrueBranch(IBinaryNode node);", "title": "" }, { "docid": "6b87911ebc23997ed2ad42394a21d033", "score": "0.52274436", "text": "public void setNotFullCond(Condition condition);", "title": "" }, { "docid": "9ca5a3fb58178b4e30939a55be45d616", "score": "0.52114874", "text": "@Test\n public void branchCodeTest() {\n // TODO: test branchCode\n }", "title": "" }, { "docid": "9ab2ae9137876bbd62b32a08f9545b85", "score": "0.51763517", "text": "Branch createBranch();", "title": "" }, { "docid": "4b4f428aae227b9917fb534a7f7e398d", "score": "0.517542", "text": "public Condition getNotFullCond();", "title": "" }, { "docid": "b2fb3ce41d871fc1b0a17139087e4f54", "score": "0.5150834", "text": "public static void main(String[] args) {\n Bank bank = new Bank(\"State Bank of India\");\r\n\r\n if(bank.addBranch(\"Mumbai\")) {\r\n System.out.println(\"Mumbai branch added\");\r\n }\r\n\r\n bank.addCustomer(\"Mumbai\", \"Harsh\", 50.05);\r\n bank.addCustomer(\"Mumbai\", \"Vishal\", 175.34);\r\n bank.addCustomer(\"Mumbai\", \"Mehul\", 220.12);\r\n\r\n bank.addBranch(\"Delhi\");\r\n bank.addCustomer(\"Delhi\", \"Vivek\", 150.54);\r\n\r\n bank.addCustomerTransactions(\"Mumbai\", \"Harsh\", 44.22);\r\n bank.addCustomerTransactions(\"Mumbai\", \"Harsh\", 12.44);\r\n bank.addCustomerTransactions(\"Mumbai\", \"Vishal\", 1.65);\r\n\r\n bank.listCustomers(\"Mumbai\", true);\r\n bank.listCustomers(\"Delhi\", true);\r\n\r\n bank.addBranch(\"Jaipur\");\r\n\r\n if(!bank.addCustomer(\"Jaipur\", \"Nikhil\", 5.56)){\r\n System.out.println(\"Error - Jaipur branch does not exists\");\r\n }\r\n\r\n if(!bank.addBranch(\"Mumbai\")){\r\n System.out.println(\"Mumbai branch already exists\");\r\n }\r\n if(!bank.addCustomerTransactions(\"Mumbai\", \"Singh\", 56.78)){\r\n System.out.println(\"Customer does not exists\");\r\n }\r\n if(!bank.addCustomerTransactions(\"Mumbai\", \"harsh\", 34.78)){\r\n System.out.println(\"Customer Harsh already exits,\");\r\n }\r\n }", "title": "" }, { "docid": "e683a2bfbf2b5b73c1c9e029b4df1473", "score": "0.5146822", "text": "boolean visitConditional(SSAConditionalBranchInstruction instr, IPathInfo info) {\n return true;\n }", "title": "" }, { "docid": "8b052a46561c4a2c53a228cfb224a87f", "score": "0.5143515", "text": "private static boolean conditional_expr_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"conditional_expr_0\")) return false;\n boolean r;\n r = consumeTokenSmart(b, LT);\n if (!r) r = consumeTokenSmart(b, GT);\n if (!r) r = consumeTokenSmart(b, LE);\n if (!r) r = consumeTokenSmart(b, GE);\n if (!r) r = consumeTokenSmart(b, EQ);\n if (!r) r = consumeTokenSmart(b, NE);\n return r;\n }", "title": "" }, { "docid": "96eaadbe1c6cc5ddba4f1b20a6a2afaa", "score": "0.513678", "text": "private Set<Dataset> selectBlockBranch()\r\n\t{\r\n\t\tSet<Dataset> selectedBlockBranch = new HashSet<Dataset>();\r\n\r\n\t\tList<Dataset> branchSuccessors = branchDS.getSuccessors();\r\n\t\tDataset selectedDS = branchSuccessors.get(0);\r\n\t\tselectedBlockBranch.add(selectedDS);\r\n\t\tselectedBlockBranch.addAll(getBlockSuccessors(selectedDS, mergeDS));\r\n\r\n\t\tfor (Dataset aDataset : blockDatasets) \r\n\t\t{\r\n\t\t\tif (!selectedBlockBranch.contains(aDataset))\r\n\t\t\t\taDataset.setMainBranchDS(false);\r\n\t\t}\r\n\r\n\t\treturn selectedBlockBranch;\r\n\t}", "title": "" }, { "docid": "5f2744bb94ffb8e615d9bf4b50199b18", "score": "0.5130082", "text": "public static void pConditions() {\n System.out.println(\"\\nSelect from below options: \");\n System.out.println(\"\\t 1 - Add new record. \");\n System.out.println(\"\\t 2 - Display all records. \");\n System.out.println(\"\\t 3 - Check Status of Vital Signs. \");\n System.out.println(\"\\t 4 - Check BP.\");\n System.out.println(\"\\t 5 - Exit\");\n }", "title": "" }, { "docid": "12236dd5628869e00885b69c0d28d698", "score": "0.5129098", "text": "boolean isUpdateBranchVersions();", "title": "" }, { "docid": "30fc5c53fa8db6c8d003ba74f5711738", "score": "0.5124278", "text": "public NodeOrBoundaryCondition(Node n) {\n\tthis.n = n;\n\tis_node = true;\n }", "title": "" }, { "docid": "71eaa04e87870c36976cc970ebb15d92", "score": "0.5108173", "text": "@Override\n public Node visitCondition_side(SoarParser.Condition_sideContext ctx) {\n Node n = ctx.state_imp_cond().accept(this);\n // TODO: Throws away output-link currently\n if (n != null && n.getProperty(\"ignoring\") != null && getText(n, \"ignoring\").equals(\"output-link\")) {\n return n;\n }\n\n for (SoarParser.CondContext condContext : ctx.cond()) {\n n = condContext.accept(this);\n // TODO: Throws away output-link currently\n if (n != null && n.getProperty(\"ignoring\") != null && getText(n, \"ignoring\").equals(\"output-link\")) {\n return n;\n }\n\n }\n return null;\n }", "title": "" }, { "docid": "5ba3e35dc33b561f0628b3b5fb9bd3fe", "score": "0.51069766", "text": "public static Scenario s5_several_branches() {\r\n return new ScenarioBuilder()\r\n .commit(\"content\", \"A\")\r\n .tag(\"1.0.0\")\r\n .commit(\"content\", \"B\")\r\n .branchOnAppId(\"int\", \"A\")\r\n .commit(\"content\", \"C\")\r\n .branchOnAppId(\"dev\", \"A\")\r\n .commit(\"content\", \"D\")\r\n .master()\r\n .getScenario();\r\n }", "title": "" }, { "docid": "f75b5d3f397ee706d9f24a3d01230355", "score": "0.5096786", "text": "private int cond1(int icon) // current condition status\r\n {\n if (spec_.getD() + spec_.getBD() != 0) {\r\n return icon;\r\n }\r\n\r\n // spec_.D == 0 and spec_.BD == 0 and iround == 2 (cfr TRAMO)\r\n double ar = lastModel_.phi(1), ma = lastModel_.theta(1), sar = 0, sma = 0;\r\n if (seas_) {\r\n sar = lastModel_.bphi(1);\r\n sma = lastModel_.btheta(1);\r\n }\r\n // if cancelation ..., but big initial roots\r\n if ((Math.abs(ar - ma) < c_ || (seas_ && Math.abs(sar - sma) < c_))\r\n && (rmax_ >= 0.9 || rsmax_ >= 0.9)) {\r\n if (useml_ && icon == 1) {\r\n useml_ = false;\r\n } else {\r\n ++icon;\r\n }\r\n if (rmax_ > rsmax_) {\r\n spec_.setD(spec_.getD() + 1);\r\n } else {\r\n spec_.setBD(spec_.getBD() + 1);\r\n }\r\n } // if big initial roots and coef near -1\r\n// else if (((Math.abs(ar + 1) <= 0.15 || (spec_.getFrequency() != 1 && Math.abs(sar + 1) <= 0.16)) && (rmax_ >= 0.9 || rsmax_ >= 0.88))\r\n// || ((Math.abs(ar + 1) <= 0.16 || (spec_.getFrequency() != 1 && Math.abs(sar + 1) <= 0.17)) && (rmax_ >= 0.91 || rsmax_ >= 0.89))) {\r\n// if (useml_ && icon == 1) {\r\n// useml_ = false;\r\n// } else {\r\n// ++icon;\r\n// }\r\n// if (rmax_ > rsmax_) {\r\n// spec_.setD(spec_.getD() + 1);\r\n// } else {\r\n// spec_.setBD(spec_.getBD() + 1);\r\n// }\r\n// }\r\n return icon;\r\n }", "title": "" }, { "docid": "c0bc16898d3c5ab7f94c16f9d5940eae", "score": "0.5095228", "text": "public static void main(String[] args) {\n\t\tMarketBranch rootBranch = new MarketBranch(\"总店\"); \n MarketBranch qhdBranch = new MarketBranch(\"分店\"); \n MarketJoin hgqJoin = new MarketJoin(\"分店一加盟店\"); \n MarketJoin btlJoin = new MarketJoin(\"分店二加盟店\"); \n \n qhdBranch.add(hgqJoin); \n qhdBranch.add(btlJoin); \n rootBranch.add(qhdBranch); \n rootBranch.pay();\n\t}", "title": "" }, { "docid": "f50746301db531e95a5fc96c1253cdbc", "score": "0.5089896", "text": "private void op0() {\n\t\tif (accept(Token.Kind.GREATER_EQUAL));\n\t\telse if(accept(Token.Kind.LESSER_EQUAL));\t\n\t\telse if(accept(Token.Kind.NOT_EQUAL));\n\t\telse if(accept(Token.Kind.EQUAL));\n\t\telse if(accept(Token.Kind.GREATER_THAN));\n\t\telse if(accept(Token.Kind.LESS_THAN));\n\t\telse {\n\t\t\tthrow new QuitParseException(reportSyntaxError(NonTerminal.OP0));\n\t\t}\n }", "title": "" }, { "docid": "73238bb1ad201cd8845695dab58c19ca", "score": "0.5088039", "text": "@Test\n public void branchKanaTest() {\n // TODO: test branchKana\n }", "title": "" }, { "docid": "2b730b111b9c35d5bed76e25bc5e6975", "score": "0.50761706", "text": "public void setFalseBranch(IAstExpression cond);", "title": "" }, { "docid": "8886c7a9cefc133346595fce79aa1df8", "score": "0.50617653", "text": "private int getBranchIndex(int[] evos, T mon)\r\n {\n int out = 0;\r\n\r\n for (int i = 0; i < evos.length; i++)\r\n {\r\n if (mon.getIntIndex() == evos[i])\r\n {\r\n out = i;\r\n break;\r\n }\r\n }\r\n\r\n return out;\r\n }", "title": "" }, { "docid": "c0bb3b031833e9dc1361b3cc2cb43c48", "score": "0.5060679", "text": "@Test\n public void branchGetSpecificBranchBybranchNumberTest() {\n String branchNumber = null;\n String greaterThanValue = null;\n Integer numberToRead = null;\n Integer skipRecords = null;\n String orderBy = null;\n String lastModifiedDateTime = null;\n String lastModifiedDateTimeCondition = null;\n BranchDto response = api.branchGetSpecificBranchBybranchNumber(branchNumber, greaterThanValue, numberToRead, skipRecords, orderBy, lastModifiedDateTime, lastModifiedDateTimeCondition);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "f873bd6ea5b4265328fc01cb945119b6", "score": "0.5058659", "text": "public void setConditions(entity.GL7LineCond[] value);", "title": "" }, { "docid": "4c6226410c89a6439eaefd333e721970", "score": "0.5053676", "text": "public ISet getBranches()\n {\n return null;\n }", "title": "" }, { "docid": "56a056a1d30e00031a7e19b592e2a10e", "score": "0.5052898", "text": "public static void main(String[] args) {\n\t\tIsBalanced m = new IsBalanced();\n\t\t// String str = \"10 true 20 true 40 false false true 50 false false true 30 true 60 false false true 73 false false\";\n\t\t \n\t\t//String str = \"10 true 20 true 40 false false true 50 false false true 30 true 60 false false true 73 false false\";\n\t\tString str = new String();\n\t\tstr = scn.next();\n\t\tBinaryTree bt = m.new BinaryTree(str);\n\t\t// BinaryTree bt1 = m.new BinaryTree();\n\t\t// System.out.println(bt.isBalanced());\n\t\t// bt.LevelsList();\n\t\t// bt.SumofNodes();\n\t\t// bt.SI(bt1);\n\t\t// bt.sibling();\n\t\t// bt.RoottoLeaf(100);\n\t\tbt.LCA(50, 60);\n\t\t// bt.path(60);\n\t\t\tbt.display();\n\n\t}", "title": "" }, { "docid": "c1a5690de2e5761df2f11023eddf8a10", "score": "0.50516385", "text": "@Override\n\tpublic void branchIfFalse(Attrib condition, String label)\n\t\t\tthrows YAPLException {\n\n\t}", "title": "" }, { "docid": "448ab73cefc8868f440f3645caba79aa", "score": "0.5039965", "text": "default void definitiveBranch(Clazz clazz, Method method, int instructionOffset, Instruction instruction,\n TracedVariables variablesAfter, TracedStack stackAfter, InstructionOffsetValue branchTargets) {}", "title": "" }, { "docid": "3f1ba28a4b48ddee1fb4148d25bee1cf", "score": "0.5030835", "text": "public abstract void assertConditions();", "title": "" }, { "docid": "f67d5647512d70a0e3bcdafb77834203", "score": "0.50290525", "text": "private boolean estilos_1_cond_0() {\r\n return (estilo_estrutura_OrdemComposicao_1.equals(new OrdemComposicao(Constantes.ORDEM_COMPOSICAO_1)));\r\n }", "title": "" }, { "docid": "e2d0e5eb5ba05b311a92c8f1602e6067", "score": "0.5024316", "text": "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tSystem.out.println(\"I tester 2 on the UiBranch\");\n//<<<<<<< HEAD\n\t\tSystem.out.println(\"I am tester 1 on On master branch\");\n\n//=======\n System.out.println(\"I am tester2 on Ui branch\");\n//>>>>>>> UiBranch\n\t}", "title": "" }, { "docid": "c678f9a7af3c0bb47e41293264f4fbeb", "score": "0.5023514", "text": "@Override\n public boolean assertBarrier() {\n if (!this.getScope().assertBarrier()) {\n return false;\n }\n\n Conditional current = null;\n\n for (Conditional elseLoop : this.elseLoops) {\n if (!elseLoop.getScope().assertBarrier()) {\n return false;\n }\n current = elseLoop;\n }\n\n return current instanceof Else;\n }", "title": "" }, { "docid": "9ef4d4d966ce827454a4966630e62495", "score": "0.5019478", "text": "private void buildBranchAndLeaves(World world, BlockPos pos){\n Random rand = new Random();\n int randDir = rand.nextInt(3);\n int branch1 = rand.nextInt(5) + 3;\n int randRad = rand.nextInt(2) + 2;\n\n if (randDir == 0) {\n //north\n drawLeafCircle(world, pos.add(branch1, 1, 0), randRad, leaves);\n for(int i = 0; i <= branch1; i++) {\n this.setBlockAndNotifyAdequately(world, pos.add(i, 0, 0), log);\n }\n }\n if (randDir == 1) {\n //east\n drawLeafCircle(world, pos.add(0, 1, branch1), randRad, leaves);\n for(int i = 0; i <= branch1; i++) {\n this.setBlockAndNotifyAdequately(world, pos.add(0, 0, i), log);\n }\n }\n if (randDir == 2) {\n //south\n drawLeafCircle(world, pos.add(-branch1, 1, 0), randRad, leaves);\n for(int i = 0; i <= branch1; i++) {\n this.setBlockAndNotifyAdequately(world, pos.add(-i, 0, 0), log);\n }\n }\n if (randDir == 3) {\n //west\n drawLeafCircle(world, pos.add(0, 1, -branch1), randRad, leaves);\n for(int i = 0; i <= branch1; i++) {\n this.setBlockAndNotifyAdequately(world, pos.add(0, 0, -i), log);\n }\n }\n }", "title": "" }, { "docid": "e53f8d8fdad27fd0ab5404116e516240", "score": "0.50075847", "text": "public static void main(String[] args) {\n\t\tNode root = new Node(8);\n root.left = new Node(3);\n root.right = new Node(10);\n root.left.left = new Node(1);\n root.left.right = new Node(6);\n root.right.right = new Node(14);\n root.right.right.left = new Node(13);\n root.left.right.left = new Node(4);\n root.left.right.right = new Node(7);\n \n boundaryTraversal(root);\n\t}", "title": "" }, { "docid": "2af9297db391147d093490279d3ea1db", "score": "0.49983397", "text": "private ControlBlock traverseComplexIf(NodeBlock block, DJumpCondition jcc) {\n\t\tNodeBlock join = null;\n\t\tLinkedList<Object> listRet = buildLogicChain(block, null, join);\n\t\tLogicChain chain = (LogicChain) listRet.get(1);\n\t\tjoin = (NodeBlock) listRet.get(0);\n\n\t\t// Complex if with no body. Someone wants to fool us?\n\t\t// if(cond && !cond) {}\n\t\tif (join.nodes().last().type() == NodeType.Jump) {\n\t\t\treturn new IfBlock(block, false, chain, null, null, null);\n\t\t}\n\n\t\t// LogicChain assigned to a variable?\n\t\t// new bla = cond1 && cond2;\n\t\tif (join.nodes().first().type() == NodeType.Store) {\n\t\t\tDStore store_ = (DStore) join.nodes().first();\n\t\t\tstore_.setLogicChain(chain);\n\t\t\treturn new StatementBlock(block, traverseBlock(graph_.blocks(join.lir().id())));\n\t\t}\n\n\t\t// complex return conditions\n\t\t// return cond1 && cond2;\n\t\tif (join.nodes().last().type() == NodeType.Return) {\n\t\t\treturn new ReturnBlock(block, chain);\n\t\t}\n\n\t\tDJumpCondition finalJcc = (DJumpCondition) join.nodes().last();\n\t\tassert (finalJcc.spop() == SPOpcode.jzer);\n\n\t\t// The final conditional should have the normal dominator\n\t\t// properties: 2 or 3 idoms, depending on the number of arms.\n\t\t// Because of critical edge splitting, we may have 3 idoms\n\t\t// even if there are only actually two arms.\n\t\tNodeBlock joinBlock = findJoinOfSimpleIf(join, finalJcc);\n\n\t\t// If an AND chain reaches its end, the result is 1. jzer tests\n\t\t// for zero, so this is effectively testing (!success).\n\t\t// If an OR expression reaches its end, the result is 0. jzer\n\t\t// tests for zero, so this is effectively testing if (failure).\n\t\t//\n\t\t// In both cases, the true target represents a failure, so flip\n\t\t// the targets around.\n\t\tNodeBlock trueBlock = finalJcc.falseTarget();\n\t\tNodeBlock falseBlock = finalJcc.trueTarget();\n\n\t\t// If there is no join block, both arms terminate control flow,\n\t\t// eliminate one arm and use the other as a join point.\n\t\tif (joinBlock == null)\n\t\t\tjoinBlock = falseBlock;\n\n\t\t// If the false target is equivalent to the join point, eliminate\n\t\t// it.\n\t\tif (falseBlock == joinBlock)\n\t\t\tfalseBlock = null;\n\n\t\t// If the true target is equivalent to the join point, promote\n\t\t// the false target to the true target and undo the inversion.\n\t\tboolean invert = false;\n\t\tif (trueBlock == joinBlock) {\n\t\t\ttrueBlock = falseBlock;\n\t\t\tfalseBlock = null;\n\t\t\tinvert ^= true;\n\t\t}\n\n\t\tif (join.lir().idominated().length == 2 || BlockAnalysis.EffectiveTarget(falseBlock) == joinBlock) {\n\t\t\tif (join.lir().idominated().length == 3)\n\t\t\t\tjoinBlock = BlockAnalysis.EffectiveTarget(falseBlock);\n\n\t\t\t// One-armed structure.\n\t\t\tpushScope(joinBlock);\n\t\t\tControlBlock trueArm1 = traverseBlock(trueBlock);\n\t\t\tpopScope();\n\n\t\t\tControlBlock joinArm1 = traverseJoin(joinBlock);\n\t\t\treturn new IfBlock(block, invert, chain, trueArm1, joinArm1);\n\t\t}\n\n\t\t// assert(join.lir().idominated().length == 3);\n\n\t\tpushScope(joinBlock);\n\t\tControlBlock trueArm2 = traverseBlock(trueBlock);\n\t\tControlBlock falseArm = traverseBlock(falseBlock);\n\t\tpopScope();\n\n\t\tControlBlock joinArm2 = traverseJoin(joinBlock);\n\t\treturn new IfBlock(block, invert, chain, trueArm2, falseArm, joinArm2);\n\t}", "title": "" }, { "docid": "cb4e17e81b5f56e71f6f48aae47756b8", "score": "0.49862844", "text": "@Test\n\tpublic void testBranchLog() {\n\t\tgitlet(\"init\");\n\t\tString wug = TESTING_DIR + \"wug.txt\";\n\n\t\twriteFile(wug, \"This is a wug\");\n\t\tgitlet(\"add\", wug);\n\t\tgitlet(\"commit\", \"This is a wug\");\n\n\t\tgitlet(\"branch\", \"branch\");\n\n\t\twriteFile(wug, \"This is a wug.\");\n\t\tgitlet(\"add\", wug);\n\t\tgitlet(\"commit\", \"This is a wug.\");\n\n\t\tString[] commitMessages = extractCommitMessages(gitlet(\"log\"));\n\t\tassertTrue(commitMessages[0].equals(\"This is a wug.\"));\n\t\tassertTrue(commitMessages[1].equals(\"This is a wug\"));\n\t\tassertTrue(commitMessages[2].equals(\"initial commit\"));\n\n\t\tgitlet(\"checkout\", \"branch\");\n\n\t\twriteFile(wug, \"This is a wug!\");\n\t\tgitlet(\"add\", wug);\n\t\tgitlet(\"commit\", \"This is a wug!\");\n\n\t\tcommitMessages = extractCommitMessages(gitlet(\"log\"));\n\t\tassertTrue(commitMessages[0].equals(\"This is a wug!\"));\n\t\tassertTrue(commitMessages[1].equals(\"This is a wug\"));\n\t\tassertTrue(commitMessages[2].equals(\"initial commit\"));\n\t}", "title": "" }, { "docid": "51bba0c791be951652811e8db818e729", "score": "0.49851778", "text": "private boolean recursiveCheck(Vector remainingSets, Condition[] conditions, Hashtable condDict, Hashtable condContextDict, CheckContext cc) {\n \t\t// clone condDict and clone each Vector in the condDict\n \t\tif (condDict == null) {\n \t\t\tcondDict = new Hashtable(2);\n \t\t} else {\n \t\t\tHashtable copyCondDict = new Hashtable(2);\n \t\t\tfor (Enumeration keys = condDict.keys(); keys.hasMoreElements();) {\n \t\t\t\tObject key = keys.nextElement();\n \t\t\t\tcopyCondDict.put(key, ((Vector) condDict.get(key)).clone());\n \t\t\t}\n \t\t\tcondDict = copyCondDict;\n \t\t}\n \t\tfor (int i = 0; i < conditions.length; i++) {\n \t\t\tif (conditions[i] == null)\n \t\t\t\tcontinue;\n \t\t\tVector condList = (Vector) condDict.get(conditions[i].getClass());\n \t\t\tif (condList == null) {\n \t\t\t\tcondList = new Vector();\n \t\t\t\tcondDict.put(conditions[i].getClass(), condList);\n \t\t\t}\n \t\t\tcondList.add(conditions[i]);\n \t\t}\n \t\tif (remainingSets.size() > 0) {\n \t\t\tCondition conds[][] = (Condition[][]) remainingSets.get(0);\n \t\t\tVector newSets = (Vector) remainingSets.clone();\n \t\t\tnewSets.remove(0);\n \t\t\tfor (int i = 0; i < conds.length; i++)\n \t\t\t\tif (recursiveCheck(newSets, conds[i], condDict, condContextDict, cc))\n \t\t\t\t\treturn true;\n \t\t\treturn false;\n \t\t}\n \t\tEnumeration keys = condDict.keys();\n \t\twhile (keys.hasMoreElements()) {\n \t\t\tClass key = (Class) keys.nextElement();\n \t\t\tVector conds = (Vector) condDict.get(key);\n \t\t\tif (conds.size() == 0)\n \t\t\t\tcontinue; // This should never happen since we only add to the condDict if there is a condition\n \t\t\tCondition condArray[] = (Condition[]) conds.toArray(new Condition[conds.size()]);\n \t\t\tDictionary context = (Dictionary) condContextDict.get(key);\n \t\t\tif (context == null) {\n \t\t\t\tcontext = new Hashtable(2);\n \t\t\t\tcondContextDict.put(key, context);\n \t\t\t}\n \t\t\tif (cc.CondClassSet == null)\n \t\t\t\tcc.CondClassSet = new ArrayList(2);\n \t\t\tif (cc.CondClassSet.contains(condArray[0].getClass()))\n \t\t\t\treturn false; // doing recursion into same condition class\n \t\t\tcc.CondClassSet.add(condArray[0].getClass());\n \t\t\ttry {\n \t\t\t\tif (!condArray[0].isSatisfied(condArray, context))\n \t\t\t\t\treturn false;\n \t\t\t} finally {\n \t\t\t\tcc.CondClassSet.remove(condArray[0].getClass());\n \t\t\t}\n \t\t}\n \t\treturn true;\n \t}", "title": "" }, { "docid": "c2eaafa2cca92e646907211e1a68c38c", "score": "0.49819708", "text": "@Test\n\tpublic void testBranchHead() {\n\t\tGitlet.init();\n\t\tCommit commit0 = Gitlet.commitTree.get(0);\n\t\tassertTrue(Gitlet.currentBranch == \"master\");\n\t\tassertTrue(Gitlet.branches.get(\"master\")[0].equals(commit0));\n\t\tassertTrue(Gitlet.branches.get(\"master\")[1].equals(commit0));\n\t\t\n\t\tString wugFileName = TESTING_DIR + \"wug.txt\";\n\t\tFile wug = createFile(wugFileName, \"This is a wug.\");\n\t\t\n\t\tGitlet.add(wugFileName);\n\t\tGitlet.commit(\"added a wug\");\n\t\tCommit commit1 = Gitlet.commitTree.get(1);\n\t\tassertTrue(Gitlet.currentBranch == \"master\");\n\t\tassertTrue(Gitlet.branches.get(\"master\")[0].equals(commit0));\n\t\tassertTrue(Gitlet.branches.get(\"master\")[1].equals(commit1));\n\t\t\n\t\tGitlet.branch(\"twig\");\n\n\t\twriteFile(wugFileName, \"This wug is bowing to its master.\");\n\t\tGitlet.add(wugFileName);\n\t\tGitlet.commit(\"the wug worships its master\");\n\t\tCommit commit2 = Gitlet.commitTree.get(2);\n\t\tassertTrue(Gitlet.currentBranch == \"master\");\n\t\tassertTrue(Gitlet.branches.get(\"master\")[0].equals(commit0));\n\t\tassertTrue(Gitlet.branches.get(\"master\")[1].equals(commit2));\n\t\tassertTrue(Gitlet.branches.get(\"twig\")[0].equals(commit1));\n\t\tassertTrue(Gitlet.branches.get(\"twig\")[1].equals(commit1));\n\t\t\n\t\tGitlet.checkout(\"twig\");\n\t\twriteFile(wugFileName, \"This wug is hanging ominously from a tree.\");\n\t\tGitlet.add(wugFileName);\n\t\tGitlet.commit(\"the wug is on a tree\");\n\t\tCommit commit3 = Gitlet.commitTree.get(3);\n\t\tassertTrue(Gitlet.branches.get(\"master\")[0].equals(commit0));\n\t\tassertTrue(Gitlet.branches.get(\"master\")[1].equals(commit2));\n\t\tassertTrue(Gitlet.branches.get(\"twig\")[0].equals(commit1));\n\t\tassertTrue(Gitlet.branches.get(\"twig\")[1].equals(commit3));\n\t}", "title": "" }, { "docid": "25d497b69b00b484c20bf7d42117a3e5", "score": "0.49792418", "text": "private boolean cv()\r\n/* 365: */ {\r\n/* 366:417 */ return this.bs == 0;\r\n/* 367: */ }", "title": "" }, { "docid": "7b864c01e57888f60ff48e39635a9c83", "score": "0.49753273", "text": "public IAstExpression getFalseBranch();", "title": "" }, { "docid": "86b84bee031036eb338377afac1d8682", "score": "0.4973936", "text": "public boolean execute(CtElement element) {\n ControlFlowBuilder builder = new ControlFlowBuilder();\n ControlFlowGraph graph = builder.build(element);\n graph.simplify();\n //System.out.println(graph.toGraphVisText());\n //System.out.println(graph.toGraphVisText());\n\n\n List<ControlFlowNode> exits = graph.findNodesOfKind(BranchKind.EXIT);\n\n int returnCount = 0;\n int incomingCount = -1;\n for (ControlFlowNode n : exits) {\n Set<ControlFlowEdge> edges = graph.incomingEdgesOf(n);\n incomingCount = edges.size();\n for (ControlFlowEdge in : edges) {\n if (in.getSourceNode().getStatement() != null &&\n in.getSourceNode().getStatement() instanceof CtReturn) returnCount++;\n }\n }\n return returnCount == incomingCount || returnCount == 0;\n }", "title": "" }, { "docid": "b19182b02f4c54b3a32f7337a5b7bdd9", "score": "0.49608195", "text": "R visit(ASTCondition node) throws FFaplException;", "title": "" }, { "docid": "544cee4ff891add9d82bf6a473837179", "score": "0.49531588", "text": "@Override\n public Node visitState_imp_cond(SoarParser.State_imp_condContext ctx) {\n String productionName = ((SoarParser.Soar_productionContext) ctx.parent.parent).sym_constant().getText();\n String idTest = ctx.id_test().getText();\n Map<String, String> localVariableDictionary = _variableDictionary.get(productionName);\n ProductionVariables localActualVariables = _actualVariablesPerProduction.get(productionName);\n Map<String, String> attributeVariableToArrayName = _attributeVariableToArrayNamePerProduction.get(productionName);\n\n // TODO: Throws away output-link currently\n if (!innerConditionVisit(ctx.attr_value_tests(), localVariableDictionary, idTest, localActualVariables, attributeVariableToArrayName)) {\n return textAsNode(\"ignoring\", \"output-link\");\n }\n\n\n return null;\n }", "title": "" }, { "docid": "1ee742d8a2bf2bde1abe43b0f49d6595", "score": "0.49519736", "text": "private int breakRule(String text, int[] numConds) throws Exception\n {\n // init\n int upto = text.length();\n\n int x = 0;\n int andOr = 0;\n\n numConds[0] = 0;\n\n while(x <= upto)\n {\n // check element\n\n // check conditions bit\n if(text.charAt(x) == IF || text.charAt(x) == AND || text.charAt(x) == OR)\n ++numConds[0]; \n\n // check and/or bit\n if(text.charAt(x) == AND)\n andOr = 1;\n else andOr = 0; // OR\n\n // step to next relevant element\n while(text.charAt(x) != '\\n' && x != upto)\n ++x;\n ++x;\n }\n\n return andOr;\n }", "title": "" }, { "docid": "d35219a6cfb5a476a85b604563223537", "score": "0.4949352", "text": "@Override\n\tpublic void getNewState(BPPath path, List<BPPath> pathList, boolean cond) {\n\t\tBPState curState = path.getCurrentState();\n\t\tBPCFG cfg = Program.getProgram().getBPCFG();\n\t\tInstruction ins = curState.getInstruction();\n\t\tBPVertex src = cfg.getVertex(curState.getLocation(), ins);\n\n\t\tString className = findClassName(ins);\n\t\tcurrentState = curState;\n\t\t\n\n//\t\tif (curState.getLocation().getValue() >= 0x401af4L && curState.getLocation().getValue() <= 0x401b0dL) {\n//\t\t\tSystem.out.println(\"BUSTED!!!\");\n//\t\t}\n\t\t\n\n\t\tif (className != null) {\n\t\t\ttry {\n\t\t\t\tClass<?> clazz = Class.forName(className);\n\t\t\t\tConstructor<?> ctor = clazz.getConstructor();\n\t\t\t\tAssemblyInstructionStub asmObject = (AssemblyInstructionStub) ctor.newInstance();\n\n\t\t\t\tasmObject.run((X86Instruction) ins, path, pathList, this);\n\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tif (ins instanceof X86ArithmeticInstruction) {\n\t\t\t\tnew X86ArithmeticInterpreter().execute((X86ArithmeticInstruction) ins, path, pathList, this);\n\t\t\t} else if (ins instanceof X86CallInstruction) {\n\t\t\t\tnew X86CallInterpreter().execute((X86CallInstruction) ins, path, pathList, this);\n\t\t\t} else if (ins instanceof X86CondJmpInstruction) {\n\t\t\t\tnew X86ConditionalJumpInterpreter().execute((X86CondJmpInstruction) ins, path, pathList, this);\n\t\t\t} else if (ins instanceof X86JmpInstruction) {\n\t\t\t\tnew X86JumpInterpreter().execute((X86JmpInstruction) ins, path, pathList, this);\n\t\t\t} else if (ins instanceof X86MoveInstruction) {\n\t\t\t\tnew X86MoveInterpreter().execute((X86MoveInstruction) ins, path, pathList, this);\n\t\t\t} else if (ins instanceof X86RetInstruction) {\n\t\t\t\tnew X86ReturnInterpreter().execute((X86RetInstruction) ins, path, pathList, this);\n\t\t\t} else if (ins instanceof X86Instruction) {\n\t\t\t\tnew X86InstructionInterpreter().execute((X86Instruction) ins, path, pathList, this);\n\t\t\t}\n\t\t}\n\n\t\tif (!setCFG) {\n\t\t\tBPVertex dest = new BPVertex(curState.getLocation(), curState.getInstruction());\n\t\t\tdest = cfg.insertVertex(dest);\n\t\t\tif (curState.getLocation() == null || curState.getInstruction() == null) {\n\t\t\t\tdest.setType(BPVertex.UnknownNode);\n\t\t\t\tdest.setProperty(\"Unknown Node\");\n\t\t\t}\n\n\t\t\tBPEdge edge = new BPEdge(src, dest);\n\t\t\tcfg.insertEdge(edge);\n\t\t} else {\n\t\t\tsetCFG = false;\n\t\t}\n\t\t// return curState;\n\t\tif (path.getCurrentState().checkFeasiblePath()) {\n\t\t\tLoopAlgorithm.getInstance().halt(path, this);\n\t\t}\n\t}", "title": "" }, { "docid": "fb3d73c2fe22e0b8a65341519ef60a16", "score": "0.49476516", "text": "private void gaoSe()\n {\n regList.add(小于等于);\n //System.out.println(\"比较规则:(n1:n2:vs, se:e, delta) => (n:vs, e, delta), n = (n1<=n2)\");\n int a = Integer.valueOf(stack[--stacktop]);\n int b = Integer.valueOf(stack[--stacktop]);\n if (a <= b)\n stack[stacktop++] = \"true\";\n else\n stack[stacktop++] = \"false\";\n }", "title": "" }, { "docid": "d6011698841f458127e327fb4249e41e", "score": "0.49365532", "text": "public static void main(String[] args) throws FileNotFoundException {\n Scanner rex = new Scanner(new File(\"input.txt\"));\r\n int turns = Integer.parseInt(rex.next());\r\n int depth = 2 * turns;\r\n branches = Integer.parseInt(rex.next());;\r\n int nodes=(int)(Math.pow(branches, (depth+1))-1)/(branches-1); // (branches^(depth+1))-1\r\n //System.out.println(nodes);\r\n int min = Integer.parseInt(rex.next());\r\n int max = Integer.parseInt(rex.next());\r\n \r\n tree = new int[nodes];\r\n int leaves = (int)Math.pow(branches, depth); // branches^depth\r\n // System.out.println(leaves);\r\n \r\n System.out.println(\"Depth: \"+depth);\r\n System.out.println(\"Branch: \"+branches);\r\n System.out.println(\"Terminal States: \"+leaves);\r\n \r\n String str = \"\";\r\n for (int i = nodes-1; i>=(nodes-leaves); i--) {\r\n tree[i]=min + (int)(Math.random() * ((max - min) + 1));\r\n \r\n //System.out.println(\"tree: \"+tree[i]);\r\n str=tree[i]+\" \"+str;\r\n }\r\n System.out.println(\"leaves values: \"+ str);\r\n \r\n int maxAmount=alphaBeta(0, depth, Integer.MIN_VALUE, Integer.MAX_VALUE, true);\r\n if ( maxAmount != Integer.MIN_VALUE) {\r\n System.out.println(\"Maximum Amount: \"+ maxAmount);\r\n }else{\r\n System.out.println(\"No Solution\");\r\n }\r\n afterPrun=leaves-prunned;\r\n System.out.println(\"Comparisons Before Prunned: \"+ leaves);\r\n System.out.println(\"Prunned: \"+ prunned);\r\n System.out.println(\"Comparison After Prun \"+ afterPrun);\r\n \r\n }", "title": "" }, { "docid": "03619a5678eb18568754d3199ec3d70d", "score": "0.4933322", "text": "public void onFirstBranchClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n\n switch (view.getId()) {\n case R.id.rbFirstBranch1:\n if (checked) {\n\n //Toast.makeText(getApplicationContext(), \"One was Clicked\", Toast.LENGTH_LONG).show();\n branchesValue = \"0\";\n }\n break;\n case R.id.rbFirstBranch2:\n if (checked) {\n\n //Toast.makeText(getApplicationContext(), \"Two was Clicked\", Toast.LENGTH_LONG).show();\n branchesValue = \"1\";\n }\n break;\n case R.id.rbFirstBranch3:\n if (checked) {\n // Toast.makeText(getApplicationContext(), \"Three was Clicked\", Toast.LENGTH_LONG).show();\n branchesValue = \"2\";\n }\n break;\n case R.id.rbFirstBranch4:\n if (checked) {\n // Toast.makeText(getApplicationContext(), \"Three was Clicked\", Toast.LENGTH_LONG).show();\n branchesValue = \"3\";\n }\n break;\n case R.id.rbFirstBranch5:\n if (checked) {\n // Toast.makeText(getApplicationContext(), \"Three was Clicked\", Toast.LENGTH_LONG).show();\n branchesValue = \"4\";\n }\n break;\n case R.id.rbFirstBranch6:\n if (checked) {\n // Toast.makeText(getApplicationContext(), \"Three was Clicked\", Toast.LENGTH_LONG).show();\n branchesValue = \"5\";\n }\n break;\n case R.id.rbFirstBranch7:\n if (checked) {\n // Toast.makeText(getApplicationContext(), \"Three was Clicked\", Toast.LENGTH_LONG).show();\n branchesValue = \"6\";\n }\n break; case R.id.rbFirstBranch8:\n if (checked) {\n // Toast.makeText(getApplicationContext(), \"Three was Clicked\", Toast.LENGTH_LONG).show();\n branchesValue = \"7\";\n }\n break;\n case R.id.rbFirstBranch9:\n if (checked) {\n // Toast.makeText(getApplicationContext(), \"Three was Clicked\", Toast.LENGTH_LONG).show();\n branchesValue = \"8\";\n }\n break;\n case R.id.rbFirstBranch10:\n if (checked) {\n // Toast.makeText(getApplicationContext(), \"Three was Clicked\", Toast.LENGTH_LONG).show();\n branchesValue = \"9\";\n }\n break;\n case R.id.rbFirstBranch11:\n if (checked) {\n // Toast.makeText(getApplicationContext(), \"Three was Clicked\", Toast.LENGTH_LONG).show();\n branchesValue = \"10\";\n }\n break;\n\n }\n\n }", "title": "" }, { "docid": "161f548f22a64fe397e2af4b3b9ed513", "score": "0.4930431", "text": "public static int JumpsAndConditionals(boolean cond) {\n int a, b, c;\n a = 5;\n b = 2;\n if (cond)\n c = a + b;\n else\n c = a - b;\n return c;\n }", "title": "" }, { "docid": "a3ca04bcb7f78e350d283eb10681ff31", "score": "0.49287805", "text": "private void gaoGe()\n {\n regList.add(大于等于);\n //System.out.println(\"比较规则:(n1:n2:vs, ge:e, delta) => (n:vs, e, delta), n = (n1>=n2)\");\n int a = Integer.valueOf(stack[--stacktop]);\n int b = Integer.valueOf(stack[--stacktop]);\n if (a >= b)\n stack[stacktop++] = \"true\";\n else\n stack[stacktop++] = \"false\";\n }", "title": "" }, { "docid": "7ebcb4db92aa06c4b4584e7ad248620b", "score": "0.49278238", "text": "private static void rmBranchMain(String... args) {\n if (args.length != 2) {\n System.out.println(\"Incorrect operands.\");\n return;\n }\n Command.rmBranch(args[1]);\n }", "title": "" }, { "docid": "89f126862de5505c2195b953b04b63dc", "score": "0.4922295", "text": "private void initTruths() {\n for (int i = 0; i < this.clauses.size(); i++) {\n for (int j = 0; j < this.clauses.get(i).length; j++) {\n int k = this.clauses.get(i)[j];\n if (k != 0) {\n this.setTruth(k, false);\n }\n }\n }\n }", "title": "" }, { "docid": "2d8ea48537113184442b0b47e7a58c5c", "score": "0.49167308", "text": "Expr cond();", "title": "" }, { "docid": "a6e42d8cfa61d1eb11aef86b140db27b", "score": "0.491404", "text": "private void cekBranch() {\n try {\n branchMasterList = databaseService.getBranchMasterDao().queryForAll();\n for (int i = 0; i < branchMasterList.size(); i++) {\n branchMaster = branchMasterList.get(i).getBranchPrimary();\n }\n } catch (SQLException e) {\n if (BuildConfig.DEBUG) Log.e(\"Chek branch\", String.valueOf(e));\n Crashlytics.logException(e);\n }\n\n //cek apakah primary key di tabel ao branch false\n List<Aobranch> cekAobranch = new ArrayList<>();\n try {\n cekAobranch = databaseService.getAobranchDao().queryBuilder().where().eq(\"BranchIDAo\", branchMaster).and().eq(\"IsActive\", \"False\").query();\n if (!cekAobranch.isEmpty()) {\n UpdateBuilder<Aobranch, String> updateBuilder = databaseService.getAobranchDao().updateBuilder();\n updateBuilder.where().eq(\"BranchIDAo\", branchMaster);\n updateBuilder.updateColumnValue(\"IsActive\", \"True\");\n updateBuilder.update();\n // result branch\n UpdateBuilder<ResultAobranch, String> updateResult = databaseService.getResultAobranchDao().updateBuilder();\n updateResult.where().eq(\"Branchid\", branchMaster);\n updateResult.updateColumnValue(\"isActive\", \"True\");\n updateResult.update();\n }\n } catch (SQLException e) {\n if (BuildConfig.DEBUG) Log.e(\"Update active branch\", String.valueOf(e));\n Crashlytics.logException(e);\n }\n\n // list ao branch\n aoBranchStrings = databaseService.getAllBranch();\n // swap branch master ke index 0\n for (int i = 0; i < aoBranchStrings.size(); i++) {\n if (branchMaster.equalsIgnoreCase(aoBranchStrings.get(i).getBranchId())) {\n Collections.swap(aoBranchStrings, i, 0);\n }\n }\n cabangAdapter = new ArrayAdapter<AoBranchObjt>(FormPengajuanActivity.this, R.layout.item_dropdown, R.id.id_item, aoBranchStrings);\n spnPilihanCabang.setAdapter(cabangAdapter);\n spnPilihanCabang.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n aoBranch = ((AoBranchObjt) spnPilihanCabang.getSelectedItem()).getBranchId();\n branchNameId = ((AoBranchObjt) spnPilihanCabang.getSelectedItem()).getBranchName();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n }", "title": "" }, { "docid": "dd4fb7f3c6353bd70004cd5d4b1fe2d9", "score": "0.49120447", "text": "public static void main(String[] args) {\n\r\n\t\tcondition(8);\r\n\t\tSystem.out.println(\"Othersssssss :P \");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a245c4766cfb800ced82e6cc430a8ccf", "score": "0.491179", "text": "public RuleCondition() {\r\n\r\n }", "title": "" }, { "docid": "aae8ea89e18c7e64a66085c464a2c311", "score": "0.49106914", "text": "public interface Condition extends TreeNode {\n\n\t/**\n\t* Returns the logic operation relating the children of this condition (node)\n\t* Creation date: (21.12.2001 01:40:36)\n\t* @return org.cocons.uml.ccl.LogicOperation the logic operation.\n\t*/\n\tpublic LogicOperation getLogicOperation();\n\n\t/**\n\t* Checks if this condition is complied with a given model element.\n\t* Creation date: (21.12.2001 13:11:01)\n\t* @return boolean true - if the condtion is complied.\n\t*/\n\tpublic boolean isCompliedWith(MModelElement modelElement);\n\n\t/**\n\t* Checks if this conditional tree is valid.\n\t* Creation date: (23.12.2001 11:38:17)\n\t* @return boolean true - if the tree is valid.\n\t*/\n\tboolean isValid();\n \n\t/**\n\t * Returns a comparison setting up the domain of this condition.\n\t * Creation date: (21.12.2001 00:46:17)\n\t * @return comparison the comparison for this condition .\n\t */\n\tpublic Comparison getComparison();\n}", "title": "" }, { "docid": "407650dd1feafd1c51d6ca2050af4d31", "score": "0.49010974", "text": "public static void main(String[] args) {\n if (1 == 1) {\n System.out.println(\"One equals one\");\n }\n\n if (1 != 1) {\n System.out.println(\"One is not equal to one\");\n }\n\n int accountBalance = 100;\n int itemPrice = 10;\n\n if (accountBalance >= itemPrice) {\n System.out.println(\"you can purchase the item!\");\n } else {\n System.out.println(\"You don't have enough money, get job.\");\n }\n int degrees = 58;\n\n if (degrees >= 70) {\n System.out.println(\"it hot yo..\");\n //&& and - both clauses have to be true\n // || is or\n } else if (degrees < 70 && degrees >= 59) {\n System.out.println(\"You might need a sweater\");\n //else has to be the last one in an elseif chain\n } else {\n System.out.println(\"Put on a heavy coat\");\n }\n\n boolean firstTimeCustomer = false;\n boolean isExecutiveMember = true;\n\n if(firstTimeCustomer == true || isExecutiveMember == true) {\n System.out.println(\"You got a 10% discount\");\n }\n\n //shortcuts to true\n if(firstTimeCustomer || isExecutiveMember) {\n System.out.println(\"You got a 10% discount\");\n }\n\n //if (true == true || false == true && false == true) will not be called because works left to right\n\n\n }", "title": "" }, { "docid": "17647b135249ed00a471e4308efdd669", "score": "0.48891774", "text": "public void checkCompLevel()\r\n/* 172: */ {\r\n/* 173:175 */ if (getCompLevel() != getStorage().getEnergyStored() * 15 / getStorage().getMaxEnergyStored())\r\n/* 174: */ {\r\n/* 175:176 */ this.c = (getStorage().getEnergyStored() * 15 / getStorage().getMaxEnergyStored());\r\n/* 176:177 */ this.worldObj.notifyBlocksOfNeighborChange(x(), y(), z(), getBlockType());\r\n/* 177: */ }\r\n/* 178: */ }", "title": "" } ]
d0939dad549eeeff7d33e0b9215e4568
Detect touch on button
[ { "docid": "6a1d20e08dd9e55861d231c851c32aa6", "score": "0.0", "text": "@Override\n public void onClick(View v) {\n mApp.setGlobalVarValue(Characters.CAT);\n Intent playI = new Intent(MainActivity.this, LevelSelectionActivity.class); //Start next activity\n startActivity(playI);\n }", "title": "" } ]
[ { "docid": "5cdf5a6e5fbf693a8b5bc737aae0e605", "score": "0.7563363", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n switch(event.getAction()){\n case MotionEvent.ACTION_DOWN:\n Log.i(tag, \"testBtn-onTouch-ACTION_DOWN...\");\n break;\n case MotionEvent.ACTION_UP:\n Log.i(tag, \"testBtn-onTouch-ACTION_UP...\");\n break;\n default:break;\n\n }\n return false;\n }", "title": "" }, { "docid": "5f3341ec19b319035cbaca2d3dad4c5e", "score": "0.7396861", "text": "@Override\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "5f3341ec19b319035cbaca2d3dad4c5e", "score": "0.7396861", "text": "@Override\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "5f3341ec19b319035cbaca2d3dad4c5e", "score": "0.7396861", "text": "@Override\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "5f3341ec19b319035cbaca2d3dad4c5e", "score": "0.7396861", "text": "@Override\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "5f3341ec19b319035cbaca2d3dad4c5e", "score": "0.7396861", "text": "@Override\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "5f3341ec19b319035cbaca2d3dad4c5e", "score": "0.7396861", "text": "@Override\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "5f3341ec19b319035cbaca2d3dad4c5e", "score": "0.7396861", "text": "@Override\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "5f3341ec19b319035cbaca2d3dad4c5e", "score": "0.7396861", "text": "@Override\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "5f3341ec19b319035cbaca2d3dad4c5e", "score": "0.7396861", "text": "@Override\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "d56595ccb1bec00833d3bace01e53747", "score": "0.73426336", "text": "@Override\n public boolean touchDown(int screenX, int screenY, int pointer, int button) {\n return true;\n }", "title": "" }, { "docid": "d565dcd22346e47130d6e5dce34a2986", "score": "0.72355914", "text": "public static void touch(MotionEvent e){\r\n // Loop through all active buttons\r\n ArrayList<Button> activeButtons = new ArrayList<>(buttons);\r\n for (Button button : activeButtons){\r\n // Check if the current button is being touched\r\n if (MainView.inBounds((int) e.getX(), (int) e.getX(), (int) e.getY(), (int) e.getY(),\r\n button.getBoundX1(), button.getBoundX2(), button.getBoundY1(), button.getBoundY2())){\r\n // Trigger, if the button previously touched is the same one that the finger is lifted off of\r\n if (button.equals(preTouchButton)){\r\n button.trigger();\r\n }\r\n }\r\n\r\n // Reset alpha in case button was touched beforehand\r\n button.setAlpha(255);\r\n }\r\n preTouchButton = null;\r\n }", "title": "" }, { "docid": "1dac00df8256643571d8c945f57aa3e2", "score": "0.71830684", "text": "@Override\n\tpublic boolean touchDown(float x, float y, int pointer, int button) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0ae6e8bbdc21461c0318772029b0dd38", "score": "0.71396494", "text": "@Override\n public boolean touchDown(int screenX, int screenY, int pointer, int button) {\n return false;\n }", "title": "" }, { "docid": "48f4885e50624e5531fe89ee62cf4db5", "score": "0.7095771", "text": "@Override\n\tpublic boolean touchDown(int screenX, int screenY, int pointer, int button){\n\t\treturn true;\n\t}", "title": "" }, { "docid": "955aac8eb45f53f754fac8144d4144ff", "score": "0.70588523", "text": "@Override\n\tpublic boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n\t\tif (button == this.getButton()) {\n\t\t\tclicked = true;\n\t\t\tactor.setPressed(true);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "42748c2553b090693dfd2517da107965", "score": "0.7014269", "text": "@Override\n\t\t\tpublic boolean touchDown(int screenX, int screenY, int pointer,\n\t\t\t\t\tint button) {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "3a3b95682ec1b3e0754e5b4cd108cdb1", "score": "0.69878775", "text": "@Override\r\n\tpublic boolean touchDown(int screenX, int screenY, int pointer, int button)\r\n\t{\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "8fa82d4dde62f2bcca322d07585d9f0c", "score": "0.69803524", "text": "@Override\n \tpublic boolean touchDown(int screenX, int screenY, int pointer, int button) {\n \t\treturn false;\n \t}", "title": "" }, { "docid": "7742438cbc9ec0b8e512656dc5872428", "score": "0.69692606", "text": "@Override\r\n\t\tpublic boolean touchDown(int screenX, int screenY, int pointer,\r\n\t\t\t\tint button) {\r\n\t\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "503beed839ae7523c8a256afd9c0b822", "score": "0.6926895", "text": "@Override\n public boolean onTouch(View arg0, MotionEvent arg1) {\n return true;\n }", "title": "" }, { "docid": "4a077c550beff3ab3bd7eb02d3002fd5", "score": "0.69216055", "text": "@Override\n\tpublic boolean touchDown(int screenX, int screenY, int pointer, int button) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4a077c550beff3ab3bd7eb02d3002fd5", "score": "0.69216055", "text": "@Override\n\tpublic boolean touchDown(int screenX, int screenY, int pointer, int button) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4a077c550beff3ab3bd7eb02d3002fd5", "score": "0.69216055", "text": "@Override\n\tpublic boolean touchDown(int screenX, int screenY, int pointer, int button) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4a077c550beff3ab3bd7eb02d3002fd5", "score": "0.69216055", "text": "@Override\n\tpublic boolean touchDown(int screenX, int screenY, int pointer, int button) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4a077c550beff3ab3bd7eb02d3002fd5", "score": "0.69216055", "text": "@Override\n\tpublic boolean touchDown(int screenX, int screenY, int pointer, int button) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4a077c550beff3ab3bd7eb02d3002fd5", "score": "0.69216055", "text": "@Override\n\tpublic boolean touchDown(int screenX, int screenY, int pointer, int button) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fb5924fdee18b971a0766a818c7ca721", "score": "0.6919607", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return true;\n }", "title": "" }, { "docid": "4a9a603160ae89c7f33b1dd5751b7dae", "score": "0.6913093", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return true;\n }", "title": "" }, { "docid": "86faeb225b9e0418017c4d99495c13fa", "score": "0.69124204", "text": "@Override\n public boolean onTouch(View v, MotionEvent event)\n {\n return true;\n }", "title": "" }, { "docid": "7475ee1ef312542f43834771e88c942b", "score": "0.6906868", "text": "@Override\n public boolean onTouch(View view, MotionEvent event) {\n return true;\n }", "title": "" }, { "docid": "9558d6a7858c5a66ab13a978637e9941", "score": "0.68824655", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return true;\n }", "title": "" }, { "docid": "5a9ca937fc11b116fce59dc010611f16", "score": "0.6842463", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tif(event.getAction() == 0)\n\t\t\t\t\tisTouch = true;\n\t\t\t\telse if(event.getAction() ==1)\n\t\t\t\t\tisTouch = false;\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "59c4c5e26a5daddf43bbd42dc6f58c89", "score": "0.6841034", "text": "boolean hasTouchEvent();", "title": "" }, { "docid": "934c39d67a8ecd72215414e207f6960e", "score": "0.683932", "text": "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\n\t\tsuper.onTouchEvent(event);\n\n\t\t// if(event.getAction() == MotionEvent.ACTION_UP)\n\t\t// {\n\t\t// triggerClick(event.getX(),event.getY());\n\t\t// }\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e349f93132609cadbf28795702a3ee30", "score": "0.6799889", "text": "public boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "e349f93132609cadbf28795702a3ee30", "score": "0.6799889", "text": "public boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "e349f93132609cadbf28795702a3ee30", "score": "0.6799889", "text": "public boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "ab15f3aae9a6e449b329d7f502b32f83", "score": "0.6787295", "text": "public int onTouchEvent(MotionEvent event) {\n int action = event.getActionMasked();\n switch (action) {\n case MotionEvent.ACTION_DOWN: // First finger\n case MotionEvent.ACTION_POINTER_DOWN: // Second finger and so on\n //Check all the buttons for click effect\n for (ButtonComponent btn : buttonArray) {\n if (isClick(btn, event)) { //Finger down on this button\n btn.setHeldDown(true);\n }\n }\n break;\n case MotionEvent.ACTION_UP: // Last finger up\n case MotionEvent.ACTION_POINTER_UP: // Any other finger up\n //Check all the buttons for click effect\n for (ButtonComponent btn : buttonArray) {\n if (isClick(btn, event)) {\n btn.setHeldDown(false);\n return btn.getSceneId(); //When the finger is up, if any button for a scene change was clicked, change the scene\n }\n }\n break;\n case MotionEvent.ACTION_MOVE: // Any finger moves\n //Check all the buttons for click effect, when entering and exiting buttons\n for (ButtonComponent btn : buttonArray) {\n if (!isClickByAny(btn, event) && btn.isHeldDown()) {\n btn.setHeldDown(false);\n }\n if (isClickByAny(btn, event) && !btn.isHeldDown()) {\n btn.setHeldDown(true);\n }\n }\n break;\n }\n return this.id;\n }", "title": "" }, { "docid": "95a72f5eabb2cee55ab853bc46aa5ae6", "score": "0.67805755", "text": "@Override\n\tpublic boolean tap(float x, float y, int count, int button) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0d25133098bbb458f9c34b0e2c8fef02", "score": "0.6760285", "text": "@Override\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "fcf43fb1cb8cffd69425aec7e0ec1bd1", "score": "0.6740527", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tif (event.getAction() == MotionEvent.ACTION_DOWN) {\n\t\t\t\t\tint x = (int) event.getX();\n\t\t\t\t\tint y = (int) event.getY();\n\t\t\t\t\tRect rect = new Rect();\n\t\t\t\t\tmFloatPanelLayout.getGlobalVisibleRect(rect);\n\t\t\t\t\tif (!rect.contains(x, y)) {\n\t\t\t\t\t\tChangeGoGe2Button();\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9647c1a88fa1b76b5a2c2ea90ddac54d", "score": "0.67255735", "text": "public void onPressed(Button button);", "title": "" }, { "docid": "8a8aefab6d7bf8f5888cb8b868b87912", "score": "0.6722217", "text": "void onButtonPressed(int button);", "title": "" }, { "docid": "69b46380c2eddc0ba9fcbeda8f034296", "score": "0.67142713", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tint action = event.getAction();\n\t\t\t\tswitch (action) {\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\timg_recorder.setVisibility(View.VISIBLE);\n\t\t\t\t\tbtn_hold_speak\n\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.voice_rcd_btn_pressed);\n\t\t\t\t\tif (mMediaRecorder == null) {\n\t\t\t\t\t\tmMediaRecorder = new MediaRecorder();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tFileUtil.resetRec(mMediaRecorder);\n\t\t\t\t\t}\n\t\t\t\t\tFileUtil.startRec(mMediaRecorder);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MotionEvent.ACTION_UP:\n\t\t\t\t\timg_recorder.setVisibility(View.GONE);\n\t\t\t\t\tbtn_hold_speak\n\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.voice_rcd_btn_nor);\n\t\t\t\t\tFileUtil.stopRec(mMediaRecorder);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "55fd47b8b3248b2bca83532f3cb07649", "score": "0.67117286", "text": "@Override\n\t\tpublic void onTouchEvent(Object sender, MotionEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a8b5d1a15e50c48058e9fb6d5275db03", "score": "0.6703291", "text": "public boolean onTouch(View v, MotionEvent event) {\n\n return false;\n }", "title": "" }, { "docid": "8381973459b956f687c29962772e36b3", "score": "0.66728526", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return gestureDetector.onTouchEvent(event);\n }", "title": "" }, { "docid": "e1e337bf0aa6329c0e034dee90d6592c", "score": "0.663267", "text": "@Override\n public boolean touchUp(int screenX, int screenY, int pointer, int button) {\n return false;\n }", "title": "" }, { "docid": "e1e337bf0aa6329c0e034dee90d6592c", "score": "0.663267", "text": "@Override\n public boolean touchUp(int screenX, int screenY, int pointer, int button) {\n return false;\n }", "title": "" }, { "docid": "e1e337bf0aa6329c0e034dee90d6592c", "score": "0.663267", "text": "@Override\n public boolean touchUp(int screenX, int screenY, int pointer, int button) {\n return false;\n }", "title": "" }, { "docid": "5d857f5d2819346fd19649ee5452001a", "score": "0.660991", "text": "@Override\npublic boolean onTouch(View v, MotionEvent event) {\n\tif(event.getAction()==MotionEvent.ACTION_MOVE|event.getAction()==MotionEvent.ACTION_DOWN|event.getAction()==MotionEvent.ACTION_UP){\n\t\tisTouch=true;\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "d20fdd7d11858b157dd4ea878193674c", "score": "0.6595233", "text": "@Override\n\t\t\tpublic boolean onTouch(android.view.View v, android.view.MotionEvent e) {\n\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "ba0d1a4ef32b5d4ed1e21bb98dc46a95", "score": "0.6588397", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return mGestureDetector.onTouchEvent(event);\n }", "title": "" }, { "docid": "966f42d5c78b442df2cf7fcda8e7d2bb", "score": "0.6587197", "text": "public void handleSuppressedTap();", "title": "" }, { "docid": "01e5dc9021503812155692daf788c369", "score": "0.6576235", "text": "public boolean onTouch(View v, MotionEvent event) { \r\n\t return false; \r\n\t }", "title": "" }, { "docid": "01e5dc9021503812155692daf788c369", "score": "0.6576235", "text": "public boolean onTouch(View v, MotionEvent event) { \r\n\t return false; \r\n\t }", "title": "" }, { "docid": "8ffb4b733d5aef227054087d434683e2", "score": "0.6572724", "text": "@Override\n\t\t\tpublic boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\timage.getStage().setScrollFocus(image);\n\t\t\t\treturn super.touchDown(event, x, y, pointer, button);\n\t\t\t}", "title": "" }, { "docid": "548c8ed4bc6ea302e98b70d5248585e8", "score": "0.65671563", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n mDetector.onTouchEvent(event);\n return true;\n }", "title": "" }, { "docid": "bd118d5c35a7e661325a85b13097487b", "score": "0.65497065", "text": "public static void preTouch(MotionEvent e){\n ArrayList<Button> activeButtons = new ArrayList<>(buttons);\r\n for (Button button : activeButtons){\r\n // Check if the current button is being touched (pre touched)\r\n if (MainView.inBounds((int) e.getX(), (int) e.getX(), (int) e.getY(), (int) e.getY(),\r\n button.getBoundX1(), button.getBoundX2(), button.getBoundY1(), button.getBoundY2())){\r\n // This isn't when we want to trigger the button, we just want some visual feedback of the button being pressed\r\n // Set the alpha slightly lower to allow transparency\r\n button.setAlpha(200);\r\n preTouchButton = button;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "9b72ef7b5e7bcc79768d5873980ae929", "score": "0.65414375", "text": "public void onTouch(MotionEvent event) {\n\t}", "title": "" }, { "docid": "710a875ee15722c20c2710eba538cc57", "score": "0.6539105", "text": "@Override\n public boolean onTouchEvent(final MotionEvent event) {\n super.onTouchEvent(event);\n gestureDetector.onTouchEvent(event);\n // need to return true, otherwise we will not be notified of subsequent events of the gesture;\n // see http://stackoverflow.com/questions/12588263/in-ontouchevent-action-up-doesnt-work\n return true;\n }", "title": "" }, { "docid": "1d7f32a1483ca7cb04023471b70d20f3", "score": "0.653217", "text": "@Override\n\tpublic boolean touchDown(int x, int y, int pointer_id, int button)\n\t{\n\t\tv2tmp.x = x;\n\t\tv2tmp.y = screen_height - y;\n\t\tWidget topmost = getTopmostWidget(v2tmp);\n\t\tstoreTopmostWidget(pointer_id, topmost);\n\n\t\t// If there is pointer listener, inform it\n\t\tif (pointer_id < pointerlisteners.size && pointerlisteners.get(pointer_id) != null) {\n\t\t\tpointerlisteners.get(pointer_id).pointerDown(pointer_id, v2tmp);\n\t\t\treturn true;\n\t\t}\n\t\t// Otherwise inform topmost Widget that is under the touch\n\t\telse {\n\t\t\tif (topmost != null) {\n\t\t\t\tif (topmost.pointerDown(pointer_id, v2tmp)) {\n\t\t\t\t\twhile (pointer_id >= pointerlisteners.size) {\n\t\t\t\t\t\tpointerlisteners.add(null);\n\t\t\t\t\t}\n\t\t\t\t\tpointerlisteners.set(pointer_id, topmost);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d9d06fff9c7d3e04efc1fcc44a30509e", "score": "0.6526431", "text": "@Override\n public boolean touchDown(int screenX, int screenY, int pointer, int button) {\n lastX = screenX;\n lastY = screenY;\n return false;\n }", "title": "" }, { "docid": "8818297137a4c7fb9aae4c37047bc1c7", "score": "0.65256", "text": "@Override\r\n public void onTouchDown(float screenX, float screenY, int p)\r\n {\n }", "title": "" }, { "docid": "db9b46b7a546545b39efcb3851525368", "score": "0.652264", "text": "@Override\r\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tint action = event.getAction();\r\n\t\t\t\tswitch(action)\r\n\t\t\t\t{\r\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\r\n\t\t\t\thoutui();\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase MotionEvent.ACTION_UP:\r\n\t\t\t\t\ttingzhi();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "a27ddba2b6411b070641c0ccc57dfbbb", "score": "0.6520397", "text": "@Override\n public boolean touchDown(int screenX, int screenY, int pointer, int button) \n {\n \n // The function occurs when the user clicks the window. Increments the number of mouse clicks.\n \n // Increment the number of mouse clicks.\n clickCount++;\n \n // Return a value.\n return false;\n \n }", "title": "" }, { "docid": "bbc6df34cecb63de743a01c5c4595bc0", "score": "0.6519316", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "ffe137de8946dd88c3c751699d4f1dc1", "score": "0.6509271", "text": "boolean hasMouseButton();", "title": "" }, { "docid": "ffe137de8946dd88c3c751699d4f1dc1", "score": "0.6509271", "text": "boolean hasMouseButton();", "title": "" }, { "docid": "ffe137de8946dd88c3c751699d4f1dc1", "score": "0.6509271", "text": "boolean hasMouseButton();", "title": "" }, { "docid": "f475d93ba83ff2e70304de414eb2cea8", "score": "0.6494404", "text": "@Override\n public boolean touchDown(int screenX, int screenY, int pointer, int button) {\n entity.getEvents().trigger(\"attack\");\n return true;\n }", "title": "" }, { "docid": "2d64b549449551004b98dae4cc670858", "score": "0.64919066", "text": "public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "title": "" }, { "docid": "2d64b549449551004b98dae4cc670858", "score": "0.64919066", "text": "public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "title": "" }, { "docid": "2d4ad514e6efa96a2705c40f89d555b8", "score": "0.6490966", "text": "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn detector.onTouchEvent(event);\n\t}", "title": "" }, { "docid": "17d979b56baf1a1cec98a6a9e11eccce", "score": "0.64884967", "text": "boolean onTouchEvent(VisualizationView view, MotionEvent event);", "title": "" }, { "docid": "6855b42dcc0ca4d99e3d57ff2f9b2651", "score": "0.6479423", "text": "@Override\r\n\tpublic void onTouched(MotionEvent event) {\n\t\t\r\n\t}", "title": "" }, { "docid": "1adfac938882011e5bdb549d2ffa0a1d", "score": "0.64789873", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n\n return false;\n }", "title": "" }, { "docid": "d0d204085d2c609dc2711ebdeb7f84f7", "score": "0.6474665", "text": "@Override\n public boolean onTouch(View arg0, MotionEvent arg1) {\n Log.i(\"mengdd\", \"onTouch : \");\n return false;\n }", "title": "" }, { "docid": "d0d204085d2c609dc2711ebdeb7f84f7", "score": "0.6474665", "text": "@Override\n public boolean onTouch(View arg0, MotionEvent arg1) {\n Log.i(\"mengdd\", \"onTouch : \");\n return false;\n }", "title": "" }, { "docid": "a7897738934d90357f26e4cd670a1ef8", "score": "0.646503", "text": "@Override\n public boolean onSingleTapUp(MotionEvent event)\n {\n Log.d(TAG, \"onSingleTapUp\");\n new AsyncRemoteControl().execute(Method.MOUSE_PRESS, Mouse.BUTTON1_MASK);\n new AsyncRemoteControl().execute(Method.MOUSE_RELEASE, Mouse.BUTTON1_MASK);\n return true;\n }", "title": "" }, { "docid": "11ac410c1adcda08bc83fc08f59a647e", "score": "0.6453135", "text": "@Override\n\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "f58095a7080457c0be0fa8d410eee773", "score": "0.6448875", "text": "@Override\r\n\t\t\tpublic boolean onTouch(View view, MotionEvent event) {\n\t\t\t\tswitch (event.getAction() & MotionEvent.ACTION_MASK) {\r\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\r\n\t\t\t\t\r\n\t\t\t\t\tToast.makeText(Launcher.this, \"Down\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MotionEvent.ACTION_UP:\r\n\t\t\t\t\t\r\n\t\t\t\t\tToast.makeText(Launcher.this, \"UP\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t\tcase MotionEvent.ACTION_MOVE:\r\n\t\t\t\t\tToast.makeText(Launcher.this, \"Move\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}", "title": "" }, { "docid": "80eb968e3ff9708f1e7245dccc9ff9b8", "score": "0.64477956", "text": "@Override\r\n\tpublic boolean touchUp(int screenX, int screenY, int pointer, int button)\r\n\t{\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "5684c4502be7764715f273aac311b3e8", "score": "0.64467376", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "title": "" }, { "docid": "4ca255405f504e392a9ddb4f3f07bc3c", "score": "0.64464027", "text": "@Override\n \tpublic boolean touchUp(int screenX, int screenY, int pointer, int button) {\n \t\treturn false;\n \t}", "title": "" }, { "docid": "83fd639f7e25af3af14b2744585f5be7", "score": "0.644405", "text": "public abstract boolean onTouchRelease();", "title": "" }, { "docid": "ac461db32af28a373365fd1ad9252dd6", "score": "0.6440774", "text": "@Override\r\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tint action = event.getAction();\r\n\t\t\t\tswitch(action)\r\n\t\t\t\t{\r\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\r\n\t\t\t\tzuozhuan();\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase MotionEvent.ACTION_UP:\r\n\t\t\t\t\ttingzhi();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n }", "title": "" }, { "docid": "09706929c5621bed0ae818f796d8c1b3", "score": "0.6437375", "text": "public void touch();", "title": "" }, { "docid": "2c31b4ae22793e753cb96b2715a67e2f", "score": "0.64356726", "text": "@Override\r\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tint action = event.getAction();\r\n\t\t\t\tswitch(action)\r\n\t\t\t\t{\r\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\r\n\t\t\t\tyouzhuan();\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase MotionEvent.ACTION_UP:\r\n\t\t\t\t\ttingzhi();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\treturn false;\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "99e72c2296f29dada077215070824953", "score": "0.64347476", "text": "@Override\r\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "788bfcad60a9cf1fb4a82dd5c27a5ec6", "score": "0.64345926", "text": "@Override\n public boolean onTouchEvent(MotionEvent event) {\n return gestureDetector.onTouchEvent(event);\n }", "title": "" }, { "docid": "36df5e30ebeeca522abf4600e8072b03", "score": "0.642771", "text": "@Override\n\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ea89657c7ff98f0b1770d7cbd1e8e5ba", "score": "0.6425804", "text": "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn ad_detector.onTouchEvent(event); \n\t}", "title": "" }, { "docid": "bb0a02d54263e3513f81fcad31827646", "score": "0.64134085", "text": "@Override\r\n\t\tpublic boolean onTouch(View arg0, MotionEvent event) {\n\t\t\treturn gestureDetector.onTouchEvent(event);\r\n\t\t}", "title": "" }, { "docid": "7c14149fec6361da66c04ab54caa6143", "score": "0.6412793", "text": "@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn gestureDetector.onTouchEvent(event);\r\n\t}", "title": "" }, { "docid": "bc64c5e5d530f19833e3ba2c25243cd1", "score": "0.64046043", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "title": "" }, { "docid": "bc64c5e5d530f19833e3ba2c25243cd1", "score": "0.64046043", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "title": "" }, { "docid": "0e2ed13392299d3a82be8cf8bf23f47e", "score": "0.63997597", "text": "void onButtonReleased(int button);", "title": "" }, { "docid": "dfd3769d3ced47424d4a0ba52e8aa27f", "score": "0.6392102", "text": "@Override\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y,\n\t\t\t\t\tint pointer, int button) {\n\t\t\t\thero.isAttack = true;\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "505bd694757411ad190b2b88c160cf78", "score": "0.63743293", "text": "@Override\n public boolean onTouchEvent(MotionEvent e) {\n int xTouch = 0;\n int yTouch = 0;\n\n if (e.getAction() == MotionEvent.ACTION_DOWN)\n {\n xTouch = (int) e.getX();\n yTouch = (int) e.getY();\n }\n\n checkTouch(xTouch,yTouch);\n\n return true;\n }", "title": "" } ]